/*
 * Web4 Tools V2
 * Page-scoped layout for the Diagnostic Command Center routing hub.
 */

.page-tools {
  --w4t-blue: #005ff9;
  --w4t-cyan: #0891b2;
  --w4t-purple: #7c3aed;
  --w4t-navy: #041b3d;
  --w4t-red: #dc3347;
  --w4t-ink: #071b47;
  --w4t-muted: #596780;
  --w4t-line: #dce6f5;
  --w4t-surface: #ffffff;
  --w4t-soft: #f5f8ff;
  --w4t-blue-soft: #eef5ff;
  --w4t-cyan-soft: #edfafd;
  --w4t-purple-soft: #f6f1ff;
  --w4t-red-soft: #fff2f3;
  --w4t-accent: var(--w4t-blue);
}

.page-tools .w4t-main {
  min-width: 0;
  overflow: clip;
  background: var(--w4t-surface);
  color: var(--w4t-ink);
}

.page-tools .w4t-main *,
.page-tools .w4t-main *::before,
.page-tools .w4t-main *::after {
  box-sizing: border-box;
  min-width: 0;
}

.page-tools .w4t-main img,
.page-tools .w4t-main svg {
  max-width: 100%;
}

.page-tools .w4t-main h1,
.page-tools .w4t-main h2,
.page-tools .w4t-main h3,
.page-tools .w4t-main h4,
.page-tools .w4t-main p,
.page-tools .w4t-main dl,
.page-tools .w4t-main dd,
.page-tools .w4t-main ol,
.page-tools .w4t-main ul {
  margin-top: 0;
}

.page-tools .w4t-main h1,
.page-tools .w4t-main h2,
.page-tools .w4t-main h3,
.page-tools .w4t-main h4,
.page-tools .w4t-main strong {
  color: inherit;
}

.page-tools .w4t-main p,
.page-tools .w4t-main dd,
.page-tools .w4t-main small,
.page-tools .w4t-main a,
.page-tools .w4t-main span {
  overflow-wrap: anywhere;
}

.page-tools .w4t-main > .w4t-section > .container,
.page-tools .w4t-hero > .container,
.page-tools .w4t-context-rail > .container {
  width: min(100% - 40px, 1320px);
  max-width: 1320px;
  margin-inline: auto;
}

.page-tools .w4t-main a {
  text-underline-offset: 3px;
}

.page-tools .w4t-main a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
  border-radius: 6px;
}

.page-tools .w4t-main .w4-icon {
  flex: 0 0 auto;
  color: var(--w4t-accent);
}

.page-tools .w4t-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--w4t-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.page-tools .w4t-section {
  padding: 56px 0;
}

.page-tools .w4t-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.page-tools .w4t-section-head h2,
.page-tools .w4t-health-copy h2,
.page-tools .w4t-result-copy h2,
.page-tools .w4t-next-layer-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-tools .w4t-section-head p,
.page-tools .w4t-health-copy > p,
.page-tools .w4t-result-copy > p,
.page-tools .w4t-next-layer-grid > div > p {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 16px;
  line-height: 1.7;
}

.page-tools .w4t-hero {
  position: relative;
  padding: 24px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.page-tools .w4i-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--w4t-muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-tools .w4i-breadcrumb a {
  color: #3f4f6c;
  text-decoration: none;
}

.page-tools .w4i-breadcrumb strong {
  font-weight: 700;
}

.page-tools .w4t-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(640px, 1.28fr);
  gap: clamp(30px, 3.7vw, 52px);
  align-items: center;
}

.page-tools .w4t-hero-copy {
  padding-block: 8px;
}

.page-tools .w4t-hero-copy h1 {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: clamp(42px, 3.8vw, 52px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.page-tools .w4t-lead {
  max-width: 610px;
  margin-bottom: 20px;
  color: var(--w4t-muted);
  font-size: 17px;
  line-height: 1.68;
}

.page-tools .w4t-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-tools .w4t-btn {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 18px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-tools .w4t-btn:hover {
  transform: translateY(-1px);
}

.page-tools .w4t-btn-primary {
  border-color: var(--w4t-blue);
  background: var(--w4t-blue);
  box-shadow: 0 10px 24px rgba(0, 95, 249, 0.2);
  color: #ffffff;
}

.page-tools .w4t-btn-primary .w4-icon {
  color: #ffffff;
}

.page-tools .w4t-btn-secondary {
  border-color: #b8cae7;
  background: #ffffff;
  color: var(--w4t-ink);
}

.page-tools .w4t-btn-secondary:hover {
  border-color: var(--w4t-blue);
  color: var(--w4t-blue);
}

.page-tools .w4t-routing-note {
  display: flex;
  max-width: 610px;
  margin: 16px 0 0;
  padding: 12px 14px;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid #dce8fa;
  border-radius: 9px;
  background: var(--w4t-blue-soft);
  color: #3d4d69;
  font-size: 13px;
  line-height: 1.55;
}

.page-tools .w4t-routing-note .w4-icon {
  margin-top: 2px;
}

.page-tools .w4t-command-center {
  overflow: hidden;
  border: 1px solid #cfddf0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 55px rgba(27, 68, 125, 0.12);
}

.page-tools .w4t-command-center-head {
  display: flex;
  padding: 14px 18px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--w4t-line);
  background: #f8fbff;
}

.page-tools .w4t-command-center-head h2 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.page-tools .w4t-command-center-head > span {
  color: var(--w4t-muted);
  font-size: 12px;
  font-weight: 650;
}

.page-tools .w4t-layer-list {
  background: #ffffff;
}

.page-tools .w4t-layer {
  --w4t-accent: var(--w4t-blue);
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.25fr) minmax(170px, 0.95fr);
  min-height: 72px;
  padding: 10px 16px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #e6edf7;
}

.page-tools .w4t-layer:last-child {
  border-bottom: 0;
}

.page-tools .w4t-layer-identity {
  --w4t-accent: var(--w4t-blue);
}

.page-tools .w4t-layer-network {
  --w4t-accent: var(--w4t-cyan);
}

.page-tools .w4t-layer-leaks {
  --w4t-accent: var(--w4t-cyan);
}

.page-tools .w4t-layer-headers {
  --w4t-accent: var(--w4t-blue);
}

.page-tools .w4t-layer-automation {
  --w4t-accent: var(--w4t-purple);
}

.page-tools .w4t-layer-name {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  align-items: center;
}

.page-tools .w4t-layer-name .w4-icon {
  grid-row: 1 / 3;
  font-size: 22px;
}

.page-tools .w4t-layer-name h3 {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.page-tools .w4t-layer-name p {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 11px;
  line-height: 1.35;
}

.page-tools .w4t-layer dl {
  display: grid;
  grid-template-columns: minmax(78px, 0.72fr) minmax(110px, 1.28fr);
  margin-bottom: 0;
  gap: 12px;
}

.page-tools .w4t-layer dl > div {
  display: grid;
  gap: 4px;
}

.page-tools .w4t-layer dt,
.page-tools .w4t-health-layers dt,
.page-tools .w4t-record-anatomy dt {
  color: #334464;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-tools .w4t-layer dd,
.page-tools .w4t-health-layers dd {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 11px;
  line-height: 1.45;
}

.page-tools .w4t-layer > a {
  display: flex;
  min-height: 44px;
  padding: 8px 0;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  color: var(--w4t-accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
  text-decoration: none;
}

.page-tools .w4t-layer > a > span:first-child {
  display: block;
  color: #5d6b82;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-tools .w4t-preview-note {
  display: flex;
  margin-bottom: 0;
  padding: 10px 16px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--w4t-line);
  background: #f8fbff;
  color: #53617a;
  font-size: 11px;
  line-height: 1.5;
}

.page-tools .w4t-context-rail {
  padding: 0 0 14px;
  background: #f8fbff;
}

.page-tools .w4t-context-rail ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--w4t-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(26, 61, 111, 0.06);
  list-style: none;
}

.page-tools .w4t-context-rail li {
  display: flex;
  min-height: 50px;
  padding: 7px 16px;
  gap: 11px;
  align-items: center;
  border-right: 1px solid var(--w4t-line);
}

.page-tools .w4t-context-rail li:last-child {
  border-right: 0;
}

.page-tools .w4t-context-rail .w4-icon {
  color: var(--w4t-blue);
  font-size: 20px;
}

.page-tools .w4t-context-rail span {
  display: grid;
  gap: 3px;
}

.page-tools .w4t-context-rail strong {
  font-size: 13px;
  line-height: 1.3;
}

.page-tools .w4t-context-rail small {
  color: var(--w4t-muted);
  font-size: 12px;
  line-height: 1.35;
}

.page-tools .w4t-quick-paths {
  background: #ffffff;
}

.page-tools .w4t-symptom-map {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(120px, 0.55fr) minmax(280px, 1fr);
  gap: 0;
  align-items: stretch;
}

.page-tools .w4t-symptom-sources,
.page-tools .w4t-symptom-destinations {
  display: grid;
  grid-template-rows: repeat(5, minmax(58px, auto));
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.page-tools .w4t-symptom-source {
  --w4t-accent: var(--w4t-blue);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 58px;
  padding: 7px 14px;
  gap: 10px;
  align-items: center;
  border: 1px solid #dfe8f5;
  border-left: 3px solid var(--w4t-accent);
  border-radius: 8px;
  background: var(--w4t-soft);
}

.page-tools .w4t-symptom-network {
  --w4t-accent: var(--w4t-cyan);
}

.page-tools .w4t-symptom-automation {
  --w4t-accent: var(--w4t-purple);
}

.page-tools .w4t-symptom-compare {
  --w4t-accent: var(--w4t-purple);
}

.page-tools .w4t-symptom-source > .w4-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  font-size: 19px;
}

.page-tools .w4t-symptom-source > .w4-icon::before,
.page-tools .w4t-journey-steps .w4-icon::before {
  display: block;
  width: 20px;
  height: 20px;
}

.page-tools .w4t-symptom-source h3 {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.page-tools .w4t-symptom-source p {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-tools .w4t-symptom-destinations li {
  display: flex;
  align-items: center;
}

.page-tools .w4t-symptom-destination {
  --w4t-accent: var(--w4t-cyan);
  display: flex;
  width: 100%;
  min-height: 52px;
  padding: 9px 14px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--w4t-accent);
  border-radius: 7px;
  color: var(--w4t-accent);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.page-tools .w4t-destination-automation,
.page-tools .w4t-destination-compare {
  --w4t-accent: var(--w4t-purple);
}

.page-tools .w4t-route-field {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.page-tools .w4t-route-path {
  fill: none;
  stroke: var(--w4t-cyan);
  stroke-linecap: round;
  stroke-width: 2;
}

.page-tools .w4t-route-automation,
.page-tools .w4t-route-compare {
  stroke: var(--w4t-purple);
}

.page-tools .w4t-environment-health {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.page-tools .w4t-health-grid {
  --w4t-health-gap: clamp(30px, 3.5vw, 48px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(680px, 1.44fr);
  grid-template-areas:
    "copy preview"
    "close preview";
  grid-template-rows: auto auto;
  gap: var(--w4t-health-gap);
  align-items: center;
}

.page-tools .w4t-health-copy {
  grid-area: copy;
  align-self: end;
}

.page-tools .w4t-health-close {
  display: flex;
  grid-area: close;
  align-self: start;
  flex-direction: column;
}

.page-tools .w4t-health-close > .w4t-actions {
  order: 1;
  margin-top: 20px;
}

.page-tools .w4t-next-check-note {
  order: 2;
  max-width: none;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--w4t-line);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(27, 61, 108, 0.06);
}

.page-tools .w4t-next-check-note::after {
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--w4t-health-gap));
  width: var(--w4t-health-gap);
  border-top: 2px solid var(--w4t-ink);
  content: "";
}

.page-tools .w4t-next-check-note::before {
  position: absolute;
  z-index: 1;
  top: calc(50% - 4px);
  right: calc(-1 * var(--w4t-health-gap) - 1px);
  border: 4px solid transparent;
  border-right: 0;
  border-left-color: var(--w4t-ink);
  content: "";
}

.page-tools .w4t-next-check-note {
  position: relative;
}

.page-tools .w4t-next-check-note h3 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 750;
}

.page-tools .w4t-next-check-note p {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 12px;
  line-height: 1.55;
}

.page-tools .w4t-health-preview {
  overflow: hidden;
  grid-area: preview;
  border: 1px solid #ccdaee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(24, 67, 128, 0.11);
}

.page-tools .w4t-health-preview > header {
  display: flex;
  padding: 14px 18px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--w4t-line);
  background: #f8fbff;
}

.page-tools .w4t-health-preview > header h3 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 760;
}

.page-tools .w4t-health-preview > header > span {
  padding: 5px 8px;
  border: 1px solid var(--w4t-line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--w4t-muted);
  font-size: 10px;
  font-weight: 750;
}

.page-tools .w4t-health-layers > article {
  --w4t-accent: var(--w4t-blue);
  display: grid;
  grid-template-columns: minmax(145px, 0.9fr) minmax(220px, 1.15fr) minmax(150px, 0.8fr);
  min-height: 68px;
  padding: 9px 14px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e7edf6;
}

.page-tools .w4t-health-layers > article:nth-child(2),
.page-tools .w4t-health-layers > article:nth-child(3) {
  --w4t-accent: var(--w4t-cyan);
}

.page-tools .w4t-health-layers > article:last-child {
  border-bottom: 0;
  --w4t-accent: var(--w4t-purple);
}

.page-tools .w4t-health-layers > article > div:first-child {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 9px;
  align-items: center;
}

.page-tools .w4t-health-layers > article > div:first-child .w4-icon {
  grid-row: 1 / 3;
  font-size: 20px;
}

.page-tools .w4t-health-layers h4 {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.page-tools .w4t-health-layers p {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 10px;
  line-height: 1.35;
}

.page-tools .w4t-health-layers dl {
  display: grid;
  grid-template-columns: minmax(82px, 0.8fr) minmax(110px, 1.2fr);
  margin-bottom: 0;
  gap: 10px;
}

.page-tools .w4t-health-layers dl > div {
  display: grid;
  gap: 3px;
}

.page-tools .w4t-health-layers a {
  display: flex;
  min-height: 44px;
  padding: 8px 0;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  color: var(--w4t-accent);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
  text-decoration: none;
}

.page-tools .w4t-tool-territories {
  background: #ffffff;
}

.page-tools .w4t-territory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.page-tools .w4t-territory {
  --w4t-accent: var(--w4t-blue);
  overflow: hidden;
  border: 1px solid var(--w4t-accent);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(24, 61, 112, 0.07);
}

.page-tools .w4t-territory-identity {
  --w4t-accent: var(--w4t-blue);
}

.page-tools .w4t-territory-network {
  --w4t-accent: var(--w4t-cyan);
}

.page-tools .w4t-territory-automation {
  --w4t-accent: var(--w4t-purple);
}

.page-tools .w4t-territory > header {
  min-height: 104px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #e4ebf5;
  background: var(--w4t-soft);
}

.page-tools .w4t-territory-identity > header {
  background: var(--w4t-blue-soft);
}

.page-tools .w4t-territory-network > header {
  background: var(--w4t-cyan-soft);
}

.page-tools .w4t-territory-automation > header {
  background: var(--w4t-purple-soft);
}

.page-tools .w4t-territory h3 {
  margin-bottom: 8px;
  color: var(--w4t-accent);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-tools .w4t-territory header p {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-tools .w4t-territory ul {
  position: relative;
  margin: 0;
  padding: 8px 16px 14px;
  list-style: none;
}

.page-tools .w4t-territory ul::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 34px;
  border-left: 1px solid color-mix(in srgb, var(--w4t-accent) 48%, transparent);
  content: "";
}

.page-tools .w4t-territory li {
  position: relative;
  border-bottom: 1px solid #e9eef6;
}

.page-tools .w4t-territory li::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--w4t-accent);
  border-radius: 50%;
  background: #ffffff;
  content: "";
  transform: translateY(-50%);
}

.page-tools .w4t-territory-identity ul::before {
  top: 50%;
  bottom: auto;
  left: 12px;
  width: 24px;
  border-top: 1px solid color-mix(in srgb, var(--w4t-accent) 48%, transparent);
  border-left: 0;
}

.page-tools .w4t-territory-identity li::before {
  left: 11px;
  width: 25px;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: var(--w4t-accent);
  transform-origin: left center;
}

.page-tools .w4t-territory-identity li:nth-child(1)::before {
  transform: translateY(-50%) rotate(-22deg);
}

.page-tools .w4t-territory-identity li:nth-child(2)::before {
  transform: translateY(-50%);
}

.page-tools .w4t-territory-identity li:nth-child(3)::before {
  transform: translateY(-50%) rotate(22deg);
}

.page-tools .w4t-territory-automation ul::before {
  top: 25px;
  bottom: 25px;
  left: 24px;
  transform: skewY(-12deg);
}

.page-tools .w4t-territory-automation li:nth-child(1)::before {
  left: 10px;
}

.page-tools .w4t-territory-automation li:nth-child(2)::before {
  left: 18px;
}

.page-tools .w4t-territory-automation li:nth-child(3)::before {
  left: 26px;
}

.page-tools .w4t-territory li:last-child {
  border-bottom: 0;
}

.page-tools .w4t-territory a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 9px 4px;
  gap: 10px;
  align-items: center;
  color: var(--w4t-ink);
  text-decoration: none;
}

.page-tools .w4t-territory a:hover strong {
  color: var(--w4t-accent);
}

.page-tools .w4t-territory a > .w4-icon {
  font-size: 20px;
}

.page-tools .w4t-territory a > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.page-tools .w4t-territory strong {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.page-tools .w4t-territory small {
  color: var(--w4t-muted);
  font-size: 11px;
  line-height: 1.4;
}

.page-tools .w4t-territory a > span:last-child {
  color: var(--w4t-accent);
  font-weight: 800;
}

.page-tools .w4t-diagnostic-journey {
  background: #ffffff;
}

.page-tools .w4t-diagnostic-journey > .container {
  padding: 40px 32px;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
  background: #f8fbff;
}

.page-tools .w4t-journey-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.page-tools .w4t-journey-steps::before {
  position: absolute;
  top: 23px;
  right: 9%;
  left: 9%;
  border-top: 2px dashed #76a8f7;
  content: "";
}

.page-tools .w4t-journey-steps li {
  --w4t-accent: var(--w4t-blue);
  position: relative;
  display: grid;
  z-index: 1;
  padding: 0 10px;
  gap: 10px;
  justify-items: center;
  background: transparent;
  text-align: center;
}

.page-tools .w4t-journey-steps li:nth-child(2) {
  --w4t-accent: var(--w4t-cyan);
}

.page-tools .w4t-journey-steps li:nth-child(3) {
  --w4t-accent: var(--w4t-cyan);
}

.page-tools .w4t-journey-steps li:nth-child(4) {
  --w4t-accent: var(--w4t-purple);
}

.page-tools .w4t-journey-steps li:nth-child(5) {
  --w4t-accent: var(--w4t-blue);
}

.page-tools .w4t-journey-steps .w4-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w4t-accent);
  border-radius: 50%;
  background: #ffffff;
  font-size: 21px;
}

.page-tools .w4t-journey-steps span {
  display: grid;
  gap: 6px;
}

.page-tools .w4t-journey-steps strong {
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

.page-tools .w4t-journey-steps small {
  color: var(--w4t-muted);
  font-size: 11px;
  line-height: 1.5;
}

.page-tools .w4t-journey-steps a {
  color: var(--w4t-blue);
  font-weight: 700;
}

.page-tools .w4t-result-guide {
  padding-block: 48px;
  background: #ffffff;
  color: #ffffff;
}

.page-tools .w4t-result-guide > .container {
  padding: 40px 32px;
  border-radius: 14px;
  background: var(--w4t-navy);
}

.page-tools .w4t-result-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.5fr) minmax(680px, 1.5fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: center;
}

.page-tools .w4t-result-copy .w4t-kicker {
  color: #72d9ee;
}

.page-tools .w4t-result-copy > p {
  color: #c7d6ec;
}

.page-tools .w4t-result-copy > .w4t-btn {
  margin-top: 18px;
  border-color: #6e8bb5;
  background: #0c2d59;
  color: #ffffff;
}

.page-tools .w4t-result-copy > .w4t-btn .w4-icon {
  color: #72d9ee;
}

.page-tools .w4t-help-route {
  margin: 14px 0 0;
}

.page-tools .w4t-help-route a {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  color: #c8d8ee;
  font-size: 12px;
  line-height: 1.45;
}

.page-tools .w4t-record-anatomy {
  overflow: hidden;
  border: 1px solid #416287;
  border-radius: 10px;
  background: #0b2b57;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.page-tools .w4t-record-anatomy > header {
  display: flex;
  padding: 17px 18px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #416287;
}

.page-tools .w4t-record-anatomy h3 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 740;
}

.page-tools .w4t-record-anatomy h3 small,
.page-tools .w4t-record-anatomy > header > span {
  color: #a9c1de;
  font-size: 10px;
  font-weight: 600;
}

.page-tools .w4t-record-anatomy dl {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  margin: 0;
  padding: 16px;
  gap: 1px;
  background: #416287;
}

.page-tools .w4t-record-anatomy dl > div {
  grid-column: span 4;
  min-height: 72px;
  padding: 11px;
  background: #0b2b57;
}

.page-tools .w4t-record-anatomy dl > div:nth-child(n + 6) {
  grid-column: span 5;
}

.page-tools .w4t-record-anatomy dt {
  margin-bottom: 8px;
  color: #9db8d8;
}

.page-tools .w4t-record-anatomy dd {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.page-tools .w4t-record-anatomy > p {
  display: flex;
  margin-bottom: 0;
  padding: 11px 16px;
  gap: 9px;
  align-items: center;
  border-top: 1px solid #416287;
  color: #b9cee7;
  font-size: 11px;
  line-height: 1.5;
}

.page-tools .w4t-record-anatomy > p .w4-icon {
  color: #72d9ee;
}

.page-tools .w4t-relationship-boundary {
  background: #ffffff;
}

.page-tools .w4t-boundary-model {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.page-tools .w4t-boundary-model article {
  --w4t-accent: var(--w4t-blue);
  display: flex;
  min-height: 112px;
  padding: 16px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--w4t-accent);
  border-radius: 10px;
  background: var(--w4t-soft);
}

.page-tools .w4t-boundary-model .w4t-boundary-configured {
  --w4t-accent: var(--w4t-blue);
  background: var(--w4t-blue-soft);
}

.page-tools .w4t-boundary-model .w4t-boundary-observed {
  --w4t-accent: var(--w4t-cyan);
  background: var(--w4t-cyan-soft);
}

.page-tools .w4t-boundary-model .w4t-boundary-external {
  --w4t-accent: var(--w4t-red);
  background: var(--w4t-red-soft);
}

.page-tools .w4t-boundary-model article > .w4-icon {
  margin-top: 2px;
  font-size: 24px;
}

.page-tools .w4t-boundary-model h3 {
  margin-bottom: 5px;
  color: var(--w4t-accent);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.25;
}

.page-tools .w4t-boundary-model p {
  margin-bottom: 0;
  color: var(--w4t-muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-tools .w4t-boundary-model > b {
  align-self: center;
  color: var(--w4t-ink);
  font-size: 32px;
  font-weight: 700;
}

.page-tools .w4t-next-layer {
  padding-top: 0;
  padding-bottom: 24px;
  background: #ffffff;
}

.page-tools .w4t-next-layer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(560px, 1.28fr);
  padding: 16px 18px;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--w4t-line);
  border-radius: 11px;
  background: #f8fbff;
}

.page-tools .w4t-next-layer-grid h2 {
  margin-bottom: 6px;
  font-size: clamp(22px, 2vw, 28px);
}

.page-tools .w4t-next-layer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-tools .w4t-next-layer-actions a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 12px;
  gap: 10px;
  align-items: center;
  border: 1px solid #cbd9ed;
  border-radius: 8px;
  background: #ffffff;
  color: var(--w4t-ink);
  text-decoration: none;
}

.page-tools .w4t-next-layer-actions a:hover {
  border-color: var(--w4t-blue);
}

.page-tools .w4t-next-layer-actions a > .w4-icon,
.page-tools .w4t-next-layer-actions a > span:last-child {
  color: var(--w4t-blue);
  font-size: 20px;
}

.page-tools .w4t-next-layer-actions a > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.page-tools .w4t-next-layer-actions strong {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.page-tools .w4t-next-layer-actions small {
  color: var(--w4t-muted);
  font-size: 11px;
  line-height: 1.4;
}

.page-tools .w4i-cta {
  padding: 78px 0 96px;
  background: #fff;
}

.page-tools .w4i-cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  padding: 44px 48px;
  gap: 70px;
  align-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #071a34, #0b2c56);
  box-shadow: 0 25px 60px rgba(7, 31, 64, 0.14);
}

.page-tools .w4i-cta-panel::after {
  position: absolute;
  right: -8%;
  bottom: -95%;
  width: 55%;
  aspect-ratio: 1;
  border: 2px solid rgba(0, 133, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(0, 135, 255, 0.22), inset 0 0 50px rgba(0, 135, 255, 0.12);
  content: "";
}

.page-tools .w4i-cta-panel > div {
  position: relative;
  z-index: 1;
}

.page-tools .w4i-cta h2 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 3.6vw, 50px);
  font-weight: 750;
  letter-spacing: -0.042em;
  line-height: 1.06;
}

.page-tools .w4i-cta p {
  max-width: 680px;
  margin: 15px 0 0;
  color: #a8bbd2;
  font-size: 14px;
  line-height: 1.65;
}

.page-tools .w4i-cta-actions {
  display: flex;
  min-width: 240px;
  gap: 9px;
  align-items: stretch;
  flex-direction: column;
}

.page-tools .w4i-kicker {
  display: flex;
  margin-bottom: 17px;
  gap: 11px;
  align-items: center;
  color: var(--w4t-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-tools .w4i-kicker::before {
  width: 31px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.page-tools .w4i-kicker-dark {
  color: #55a8ff;
}

.page-tools .w4i-btn {
  display: inline-flex;
  min-height: 48px;
  padding: 13px 20px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.page-tools .w4i-btn:hover {
  transform: translateY(-1px);
}

.page-tools .w4i-btn-light {
  background: #fff;
  color: #0a2850;
}

.page-tools .w4i-btn-light:hover {
  color: #0a2850;
}

.page-tools .w4i-btn-ghost {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, 0.04);
  color: #dce8f7;
}

.page-tools .w4i-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.page-tools .w4i-cta-actions small {
  color: #7892b2;
  font-size: 10px;
  text-align: center;
}

/* readable-copy-floor */
.page-tools .w4t-layer-name p,
.page-tools .w4t-layer dt,
.page-tools .w4t-layer dd,
.page-tools .w4t-layer > a > span:first-child,
.page-tools .w4t-preview-note,
.page-tools .w4t-health-preview > header > span,
.page-tools .w4t-health-layers p,
.page-tools .w4t-health-layers dt,
.page-tools .w4t-health-layers dd,
.page-tools .w4t-health-layers a,
.page-tools .w4t-territory small,
.page-tools .w4t-journey-steps small,
.page-tools .w4t-record-anatomy h3 small,
.page-tools .w4t-record-anatomy > header > span,
.page-tools .w4t-record-anatomy dt,
.page-tools .w4t-record-anatomy > p,
.page-tools .w4t-next-layer-actions small {
  font-size: 12px;
}

.page-tools .w4i-cta-actions small {
  font-size: 12px;
}

@media (max-width: 1199px) {
  .page-tools .w4t-hero-grid,
  .page-tools .w4t-health-grid,
  .page-tools .w4t-result-grid {
    gap: 34px;
  }

  .page-tools .w4t-health-grid {
    --w4t-health-gap: 34px;
  }

  .page-tools .w4t-hero-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
  }

  .page-tools .w4t-hero-copy h1 {
    font-size: 50px;
  }

  .page-tools .w4t-layer,
  .page-tools .w4t-health-layers > article {
    gap: 12px;
    padding-inline: 14px;
  }

  .page-tools .w4t-context-rail li {
    padding-inline: 12px;
  }
}

@media (max-width: 991px) {
  .page-tools .w4t-main > .w4t-section > .container,
  .page-tools .w4t-hero > .container,
  .page-tools .w4t-context-rail > .container {
    width: min(100% - 32px, 820px);
  }

  .page-tools .w4t-section {
    padding-block: 46px;
  }

  .page-tools .w4t-diagnostic-journey > .container,
  .page-tools .w4t-result-guide > .container {
    padding: 32px 24px;
  }

  .page-tools .w4t-hero {
    padding-top: 24px;
  }

  .page-tools .w4t-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-tools .w4t-health-grid {
    grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  }

  .page-tools .w4t-hero-grid {
    gap: 28px;
  }

  .page-tools .w4t-hero-copy {
    max-width: 720px;
    padding-bottom: 0;
  }

  .page-tools .w4t-hero-copy h1 {
    font-size: clamp(44px, 7vw, 56px);
  }

  .page-tools .w4t-layer,
  .page-tools .w4t-health-layers > article {
    grid-template-columns: minmax(130px, 0.9fr) minmax(240px, 1.25fr) minmax(150px, 0.85fr);
    gap: 10px;
  }

  .page-tools .w4t-health-layers > article {
    grid-template-columns: minmax(105px, 0.75fr) minmax(190px, 1.3fr) minmax(0, 0.85fr);
  }

  .page-tools .w4t-layer dl,
  .page-tools .w4t-health-layers dl {
    grid-template-columns: minmax(82px, 0.8fr) minmax(110px, 1.2fr);
    padding: 0;
    gap: 8px;
  }

  .page-tools .w4t-health-layers dl {
    grid-template-columns: minmax(70px, 0.8fr) minmax(0, 1.2fr);
  }

  .page-tools .w4t-layer dl > div,
  .page-tools .w4t-health-layers dl > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .page-tools .w4t-layer > a,
  .page-tools .w4t-health-layers a {
    min-height: 44px;
    padding: 8px 0;
    justify-content: flex-end;
    border: 0;
    text-align: right;
  }

  .page-tools .w4t-layer > a > span:first-child {
    display: block;
  }

  .page-tools .w4t-context-rail ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-block: 8px;
  }

  .page-tools .w4t-context-rail li {
    min-height: 50px;
    border-right: 1px solid var(--w4t-line);
    border-bottom: 0;
  }

  .page-tools .w4t-context-rail li:last-child {
    border-bottom: 0;
  }

  .page-tools .w4t-territory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-tools .w4t-territory > header {
    min-height: 0;
  }

  .page-tools .w4t-journey-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-tools .w4t-journey-steps li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .page-tools .w4t-record-anatomy dl {
    grid-template-columns: repeat(20, minmax(0, 1fr));
  }

  .page-tools .w4t-boundary-model {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .page-tools .w4t-boundary-model article {
    min-height: 0;
  }

  .page-tools .w4t-boundary-model > b {
    justify-self: auto;
    transform: none;
  }

  .page-tools .w4t-next-layer {
    padding-bottom: 24px;
  }

  .page-tools .w4t-next-check-note {
    max-width: none;
  }

  .page-tools .w4i-cta-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-tools .w4t-result-grid {
    grid-template-columns: minmax(210px, 0.48fr) minmax(0, 1.52fr);
  }

  .page-tools .w4t-next-layer-grid {
    grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  }

  .page-tools .w4i-cta-actions {
    max-width: 290px;
  }
}

@media (max-width: 767px) {
  .page-tools .w4t-main > .w4t-section > .container,
  .page-tools .w4t-hero > .container,
  .page-tools .w4t-context-rail > .container {
    width: min(100% - 28px, 540px);
  }

  .page-tools .w4t-section {
    padding-block: 34px;
  }

  .page-tools .w4t-section-head {
    margin-bottom: 18px;
  }

  .page-tools .w4t-section-head h2,
  .page-tools .w4t-health-copy h2,
  .page-tools .w4t-result-copy h2,
  .page-tools .w4t-next-layer-grid h2 {
    font-size: 26px;
  }

  .page-tools .w4t-section-head p,
  .page-tools .w4t-health-copy > p,
  .page-tools .w4t-result-copy > p,
  .page-tools .w4t-next-layer-grid > div > p {
    font-size: 14px;
  }

  .page-tools .w4t-hero {
    padding: 14px 0 24px;
  }

  .page-tools .w4t-main .w4i-breadcrumb {
    display: none !important;
  }

  .page-tools .w4t-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tools .w4t-hero-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(31px, 9vw, 36px);
    line-height: 1.04;
  }

  .page-tools .w4t-lead {
    font-size: 14px;
    line-height: 1.6;
  }

  .page-tools .w4t-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-tools .w4t-btn {
    width: 100%;
    min-height: 48px;
  }

  .page-tools .w4t-routing-note {
    min-height: 0;
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .page-tools .w4t-command-center-head,
  .page-tools .w4t-health-preview > header,
  .page-tools .w4t-record-anatomy > header {
    align-items: center;
    flex-direction: row;
  }

  .page-tools .w4t-command-center-head {
    padding: 12px;
  }

  .page-tools .w4t-command-center-head h2 {
    font-size: 17px;
  }

  .page-tools .w4t-layer,
  .page-tools .w4t-health-layers > article {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 8px;
  }

  .page-tools .w4t-layer-name,
  .page-tools .w4t-health-layers > article > div:first-child {
    grid-template-columns: 36px 1fr;
  }

  .page-tools .w4t-layer-name h3,
  .page-tools .w4t-health-layers h4 {
    font-size: 15px;
  }

  .page-tools .w4t-layer-name p,
  .page-tools .w4t-health-layers p,
  .page-tools .w4t-layer dd,
  .page-tools .w4t-health-layers dd {
    font-size: 12px;
  }

  .page-tools .w4t-layer dl,
  .page-tools .w4t-health-layers dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    gap: 8px;
    background: transparent;
  }

  .page-tools .w4t-layer dl > div,
  .page-tools .w4t-health-layers dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .page-tools .w4t-layer > a,
  .page-tools .w4t-health-layers a {
    min-height: 44px;
    padding: 7px 10px;
    justify-content: space-between;
    border: 1px solid var(--w4t-accent);
    border-radius: 7px;
    font-size: 12px;
    text-align: left;
  }

  .page-tools .w4t-layer > a > span:first-child {
    display: inline;
  }

  .page-tools .w4t-preview-note {
    padding: 9px 12px;
    align-items: flex-start;
    font-size: 12px;
  }

  .page-tools .w4t-context-rail {
    padding-bottom: 10px;
  }

  .page-tools .w4t-context-rail ol {
    grid-template-columns: 1fr;
    padding: 6px 10px;
  }

  .page-tools .w4t-context-rail li {
    min-height: 42px;
    padding: 6px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--w4t-line);
  }

  .page-tools .w4t-context-rail strong {
    font-size: 13px;
  }

  .page-tools .w4t-context-rail small {
    font-size: 12px;
  }

  .page-tools .w4t-symptom-map {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.88fr);
    gap: 8px;
  }

  .page-tools .w4t-symptom-sources,
  .page-tools .w4t-symptom-destinations {
    display: contents;
  }

  .page-tools .w4t-symptom-source {
    grid-column: 1;
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 62px;
    padding: 6px 8px;
    gap: 8px;
    background: var(--w4t-soft);
  }

  .page-tools .w4t-symptom-destinations li {
    grid-column: 2;
    align-items: stretch;
  }

  .page-tools .w4t-symptom-source:nth-child(1),
  .page-tools .w4t-symptom-destinations li:nth-child(1) {
    grid-row: 1;
  }

  .page-tools .w4t-symptom-source:nth-child(2),
  .page-tools .w4t-symptom-destinations li:nth-child(2) {
    grid-row: 2;
  }

  .page-tools .w4t-symptom-source:nth-child(3),
  .page-tools .w4t-symptom-destinations li:nth-child(3) {
    grid-row: 3;
  }

  .page-tools .w4t-symptom-source:nth-child(4),
  .page-tools .w4t-symptom-destinations li:nth-child(4) {
    grid-row: 4;
  }

  .page-tools .w4t-symptom-source:nth-child(5),
  .page-tools .w4t-symptom-destinations li:nth-child(5) {
    grid-row: 5;
  }

  .page-tools .w4t-symptom-destination {
    min-height: 44px;
    padding: 7px 8px;
  }

  .page-tools .w4t-route-field {
    display: none;
  }

  .page-tools .w4t-symptom-source h3 {
    font-size: 15px;
  }

  .page-tools .w4t-symptom-source p {
    font-size: 12px;
  }

  .page-tools .w4t-health-grid {
    --w4t-health-gap: 0px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "preview"
      "close";
    grid-template-rows: auto auto auto;
    gap: 0;
    overflow: hidden;
    border: 1px solid #ccdaee;
    border-radius: 12px;
    background: #ffffff;
  }

  .page-tools .w4t-health-copy {
    padding: 16px;
    align-self: stretch;
  }

  .page-tools .w4t-health-close {
    align-self: stretch;
    border-top: 1px solid #ccdaee;
  }

  .page-tools .w4t-health-close > .w4t-actions {
    order: 2;
    margin: 0;
    padding: 14px 16px 16px;
    border-top: 1px solid #e4ebf5;
  }

  .page-tools .w4t-next-check-note {
    order: 1;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
    background: #f8fbff;
    box-shadow: none;
  }

  .page-tools .w4t-next-check-note::before,
  .page-tools .w4t-next-check-note::after {
    display: none;
  }

  .page-tools .w4t-health-preview {
    border: 0;
    border-top: 1px solid #ccdaee;
    border-radius: 0;
    box-shadow: none;
  }

  .page-tools .w4t-health-preview > header {
    padding: 12px;
  }

  .page-tools .w4t-territory-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-tools .w4t-territory {
    display: grid;
    grid-template-columns: minmax(108px, 0.76fr) minmax(0, 1.48fr);
  }

  .page-tools .w4t-territory > header {
    min-height: 0;
    padding: 14px 12px;
    border-right: 1px solid #e4ebf5;
    border-bottom: 0;
  }

  .page-tools .w4t-territory h3 {
    font-size: 17px;
  }

  .page-tools .w4t-territory a {
    min-height: 52px;
    padding-block: 7px;
  }

  .page-tools .w4t-territory strong,
  .page-tools .w4t-territory small {
    font-size: 12px;
  }

  .page-tools .w4t-journey-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 8px 0;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .page-tools .w4t-journey-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-tools .w4t-journey-steps::before {
    top: 18px;
    right: auto;
    bottom: 18px;
    left: 17px;
    border-top: 0;
    border-left: 2px dashed #76a8f7;
  }

  .page-tools .w4t-journey-steps .w4-icon {
    width: 34px;
    height: 34px;
  }

  .page-tools .w4t-journey-steps small {
    font-size: 12px;
  }

  .page-tools .w4t-journey-steps a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .page-tools .w4t-result-guide {
    padding-block: 38px;
  }

  .page-tools .w4t-diagnostic-journey > .container,
  .page-tools .w4t-result-guide > .container {
    padding: 24px 14px;
    border-radius: 12px;
  }

  .page-tools .w4t-result-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-tools .w4t-record-anatomy dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .page-tools .w4t-record-anatomy dl > div {
    grid-column: auto;
    min-height: 68px;
    padding: 9px;
  }

  .page-tools .w4t-record-anatomy dl > div:nth-child(n + 6) {
    grid-column: auto;
  }

  .page-tools .w4t-record-anatomy dl > div:last-child {
    grid-column: 1 / -1;
  }

  .page-tools .w4t-record-anatomy dd {
    font-size: 12px;
  }

  .page-tools .w4t-record-anatomy > p {
    align-items: flex-start;
    font-size: 12px;
  }

  .page-tools .w4t-boundary-model article {
    min-height: 0;
    padding: 12px 14px;
  }

  .page-tools .w4t-boundary-model {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-tools .w4t-boundary-model > b {
    justify-self: center;
    line-height: 20px;
    transform: none;
  }

  .page-tools .w4t-boundary-model h3 {
    font-size: 16px;
  }

  .page-tools .w4t-boundary-model p {
    font-size: 12px;
  }

  .page-tools .w4t-next-layer {
    padding-bottom: 24px;
  }

  .page-tools .w4t-next-layer-grid {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .page-tools .w4t-next-layer-actions {
    grid-template-columns: 1fr;
  }

  .page-tools .w4t-next-layer-actions a {
    min-height: 56px;
  }

  .page-tools .w4t-next-layer-actions strong,
  .page-tools .w4t-next-layer-actions small {
    font-size: 12px;
  }

  .page-tools .w4i-cta {
    padding: 62px 0 76px;
  }

  .page-tools .w4i-cta-panel {
    padding: 30px 23px;
    border-radius: 20px;
  }

  .page-tools .w4i-cta h2 {
    font-size: clamp(31px, 9vw, 39px);
  }

  .page-tools .w4i-btn {
    width: 100%;
  }

  .page-tools .w4i-cta-actions {
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 389px) {
  .page-tools .w4t-main > .w4t-section > .container,
  .page-tools .w4t-hero > .container,
  .page-tools .w4t-context-rail > .container {
    width: min(100% - 24px, 540px);
  }

  .page-tools .w4t-hero-copy h1 {
    font-size: 35px;
  }

  .page-tools .w4t-layer dl > div,
  .page-tools .w4t-health-layers dl > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-tools .w4t-main *,
  .page-tools .w4t-main *::before,
  .page-tools .w4t-main *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    transition-delay: 0ms;
  }
}
