:root {
  --navy: #18375f;
  --navy-dark: #10243f;
  --background: #e9eff6;
  --surface: #ffffff;
  --surface-muted: #f3f7fb;
  --border: #cbd7e5;
  --text: #17212f;
  --muted: #5f6f84;
  --accent: #2f6f9f;
  --accent-dark: #245a82;
  --red: #b8343b;
  --gold: #a97831;
  --shadow: 0 10px 28px rgba(16, 36, 63, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 9px clamp(14px, 2.2vw, 34px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(16, 36, 63, 0.04);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--navy-dark);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 850;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  max-width: calc(100vw - 260px);
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a,
.button {
  text-decoration: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid #8aa5c2;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 36, 63, 0.04);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--navy);
  border-color: #9db8d3;
  background: #f5f9fd;
}

.nav-links a[href="#support-development"],
.nav-links a[href="/#support-development"] {
  border-left-color: var(--gold);
}

.nav-links a.crisis-nav-link,
.app-rail a.crisis-rail-link,
.app-rail button.crisis-rail-link {
  color: #ffffff;
  background: #b42318;
  border-color: #8f1c13;
  border-left-color: #ffb4a8;
}

.nav-links a.crisis-nav-link:hover,
.nav-links a.crisis-nav-link:focus-visible,
.nav-links a.crisis-nav-link[aria-current="page"],
.app-rail a.crisis-rail-link:hover,
.app-rail a.crisis-rail-link:focus-visible,
.app-rail a.crisis-rail-link[aria-current="page"] {
  color: #ffffff;
  background: #8f1c13;
  border-color: #8f1c13;
}

.nav-links a.nav-signin {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--gold);
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.18);
}

.nav-links a.nav-signin:hover,
.nav-links a.nav-signin:focus-visible {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.nav-links a.member-active,
.workspace-actions a.member-active {
  background: #e8f6f1;
  border-color: #67b79d;
  border-left-color: #168464;
  color: #063f33;
}

.nav-links a.member-active::after,
.workspace-actions a.member-active::after {
  content: "Signed in";
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #d5f0e7;
  color: #07543f;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav-links a.nav-cta {
  color: var(--navy-dark);
  background: #ffffff;
  border-color: #9db8d3;
  border-left-color: var(--accent);
  box-shadow: 0 6px 16px rgba(23, 36, 58, 0.12);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible {
  color: var(--navy);
  background: #f5f9fd;
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--accent);
  box-shadow: 0 6px 16px rgba(23, 36, 58, 0.12);
}

.nav-links a.active:hover,
.nav-links a.active:focus-visible,
.nav-links a[aria-current="page"]:hover,
.nav-links a[aria-current="page"]:focus-visible {
  color: #ffffff;
  background: var(--accent);
}

@media (max-width: 1520px) and (min-width: 621px) {
  .site-header {
    align-items: center;
    overflow: visible;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
    max-width: calc(100vw - 190px);
    overflow: visible;
  }

  .nav-links a {
    min-height: 32px;
    padding: 6px 7px;
    font-size: 0.74rem;
  }

  .app-rail {
    top: 100px;
    height: calc(100vh - 100px);
  }

  [id] {
    scroll-margin-top: 122px;
  }
}

.app-frame {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 62px);
}

.app-rail {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  padding: 8px 9px;
  background: #f8fbff;
  border-right: 1px solid var(--border);
  overflow: auto;
}

.app-rail-title {
  display: grid;
  gap: 2px;
  margin-bottom: 5px;
  padding: 0 8px 5px;
  border-bottom: 1px solid var(--border);
}

.app-rail-title span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-rail-title strong {
  color: var(--navy-dark);
  font-size: 0.96rem;
}

.app-rail-group {
  display: grid;
  gap: 3px;
  margin-bottom: 5px;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--border);
}

.app-rail-group > span {
  padding: 0 10px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-rail a,
.app-rail button {
  display: flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 8px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 36, 63, 0.04);
}

.app-rail a:hover,
.app-rail a:focus-visible,
.app-rail button:hover,
.app-rail button:focus-visible {
  color: var(--navy-dark);
  border-color: #9db8d3;
  background: #f5f9fd;
}

.app-rail button.active,
.app-rail button[aria-current="true"],
.app-rail a.active,
.app-rail a[aria-current="page"] {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--accent);
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.18);
}

.workspace-actions a {
  border-left-color: #8aa5c2;
}

.workspace-actions a.signin-link {
  color: var(--navy-dark);
  background: #ffffff;
  border-color: #d7c299;
  border-left-color: var(--gold);
}

.workspace-actions a.signin-link:hover,
.workspace-actions a.signin-link:focus-visible {
  color: var(--navy-dark);
  background: #fffaf0;
  border-color: var(--gold);
}

.workspace-actions a.signin-link.active,
.workspace-actions a.signin-link[aria-current="page"] {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--gold);
}

.workspace-actions a.signin-link.member-active {
  color: #063f33;
  background: #e8f6f1;
  border-color: #67b79d;
  border-left-color: #168464;
}

.app-rail-support {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 5px;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.app-rail-support a {
  border-left-color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.hero::after {
  display: none;
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 840px);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px) 0;
}

.hero-logo {
  width: min(170px, 52vw);
}

.hero-inner > *,
.task-grid > *,
.form-row > *,
.tool-layout > * {
  min-width: 0;
}

[data-logo-protected] {
  user-select: none;
  -webkit-user-drag: none;
}

.hero-copy-block {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker.inverse {
  color: #9be0cc;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 8px;
  color: var(--navy-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  color: var(--navy-dark);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: var(--navy-dark);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: #40506a;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.hero-status-tile {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.hero-status-tile:hover,
.hero-status-tile:focus-visible {
  border-color: rgba(27, 93, 142, 0.45);
  box-shadow: 0 8px 18px rgba(33, 48, 69, 0.11);
  outline: none;
  transform: translateY(-1px);
}

.hero-status-grid span,
.task-grid span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-status-grid strong {
  color: var(--navy-dark);
  line-height: 1.18;
}

.hero-status-tile small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.tool-section,
.sources {
  padding: clamp(24px, 4vw, 42px) 0;
}

.account-band {
  padding: clamp(24px, 4vw, 42px) 0;
  background: #eef4fa;
  border-bottom: 1px solid var(--border);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(390px, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.account-card {
  min-width: 0;
  padding: clamp(14px, 2.4vw, 18px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.member-signed-in .account-layout {
  grid-template-columns: minmax(0, 1fr);
}

.member-signed-in .account-layout > .section-heading.compact {
  display: none;
}

.member-signed-in .account-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.member-workspace {
  display: grid;
  gap: 14px;
}

@media (min-width: 1080px) {
  .member-workspace {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    align-items: start;
  }

  .member-hero-card,
  .member-profile-panel,
  #account-status {
    grid-column: 1 / -1;
  }

  .desktop-license-dashboard {
    grid-column: 1;
  }

  .member-activity-dashboard {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .registry-bridge-card {
    grid-column: 1;
  }
}

.member-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 14px;
  align-items: center;
  padding: clamp(16px, 2.4vw, 22px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.member-hero-card h3 {
  margin: 2px 0 6px;
  color: var(--navy-dark);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.member-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.member-chip-row .status-badge {
  margin-bottom: 0;
}

.member-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.member-fact-strip div {
  min-width: 0;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.member-fact-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-fact-strip strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.member-fact-strip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.screen-name-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid #bfd1e2;
  border-left: 3px solid #2c6f9f;
  border-radius: 7px;
}

.screen-name-console div {
  min-width: 0;
}

.screen-name-console div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-name-console strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.98rem;
  line-height: 1.18;
}

.screen-name-console p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.screen-name-console label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.screen-name-console label span {
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-name-console input {
  min-width: 0;
  width: 100%;
}

.screen-name-console .button {
  white-space: nowrap;
}

.member-account-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: min(320px, 100%);
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.member-account-actions .button {
  width: 100%;
  justify-content: center;
}

.account-callout {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f4f8fc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.account-callout h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 1rem;
}

.account-callout p,
.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.account-path-button {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.account-path-button span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-path-button strong {
  color: var(--navy-dark);
  font-size: 0.92rem;
  line-height: 1.18;
}

.account-path-button small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.account-path-button:hover,
.account-path-button:focus-visible {
  border-color: #93b5d4;
  box-shadow: 0 10px 22px rgba(16, 36, 63, 0.09);
  transform: translateY(-1px);
  outline: none;
}

.account-path-button.helper-path,
.account-path-button.network-path {
  border-left-color: #168464;
}

.account-form {
  display: grid;
  gap: 12px;
}

.member-dashboard {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.member-signed-in .member-dashboard {
  margin: 0;
  padding: clamp(14px, 2vw, 18px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.05);
}

.member-signed-in .member-dashboard h4 {
  font-size: 1.05rem;
}

.member-dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.member-dashboard-head h4 {
  margin: 2px 0 0;
  color: var(--navy-dark);
  font-size: 1rem;
}

.member-dashboard-head .source-note {
  max-width: 72ch;
}

.member-dashboard-head .button {
  flex: 0 0 auto;
}

.member-dashboard-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-activity-dashboard .member-dashboard-grid {
  grid-template-columns: 1fr;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.member-activity-dashboard .member-dashboard-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.desktop-license-dashboard {
  background: #f4f8fb;
}

.member-signed-in .desktop-license-dashboard {
  border-left: 4px solid var(--navy);
}

.member-signed-in .member-activity-dashboard {
  border-left: 4px solid #2c6f9f;
}

.member-signed-in .registry-bridge-card {
  border-left: 4px solid #168464;
}

.license-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.license-status-grid div {
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.license-status-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.license-status-grid strong {
  color: var(--navy-dark);
  font-size: 0.92rem;
}

.license-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.license-help-grid div {
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.license-help-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.license-help-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.desktop-download-card {
  display: grid;
  gap: 12px;
  align-items: start;
  margin: 10px 0 4px;
  padding: 16px;
  background: #f7fbff;
  border: 1px solid #bfd1e2;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 36, 58, 0.08);
}

.member-signed-in .desktop-download-card {
  background:
    linear-gradient(90deg, rgba(244, 248, 252, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
  border-color: #aac2d9;
}

.desktop-download-card:empty {
  display: none;
}

.desktop-download-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.desktop-release-copy {
  min-width: 0;
  max-width: 92ch;
}

.desktop-download-card h5 {
  margin: 4px 0 6px;
  color: var(--navy-dark);
  font-size: 1.15rem;
}

.desktop-download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.desktop-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.desktop-download-actions .button {
  justify-content: center;
  min-width: 132px;
}

.desktop-download-card .desktop-download-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.desktop-download-card .desktop-download-meta span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.desktop-download-card .desktop-download-meta b {
  color: var(--accent);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.desktop-release-bullets {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.desktop-release-bullets li {
  line-height: 1.45;
}

.member-manage-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.member-manage-panel + .member-manage-panel {
  margin-top: 10px;
}

.member-manage-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: var(--navy-dark);
  background: #edf4fb;
  cursor: pointer;
  font-weight: 900;
}

.member-manage-panel > summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.member-manage-panel > .account-form,
.member-manage-panel > .member-dashboard-grid {
  padding: 12px;
}

.member-manage-panel > .member-dashboard-grid {
  grid-template-columns: 1fr;
}

.compact-profile-head {
  margin-top: 8px;
}

.compact-profile-head h4 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 1rem;
}

.dashboard-panel {
  min-width: 0;
  padding: 11px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.member-detail-panel {
  padding: 0;
  overflow: hidden;
}

.member-detail-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  cursor: pointer;
}

.member-detail-panel > summary h5 {
  margin: 0;
}

.member-detail-panel > summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.member-detail-panel > summary span {
  min-width: 28px;
  padding: 3px 8px;
  color: var(--navy-dark);
  background: #edf4fb;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-detail-panel > ul {
  padding: 0 11px 11px;
}

.dashboard-panel h5 {
  margin: 0 0 7px;
  color: var(--navy-dark);
  font-size: 0.9rem;
}

.dashboard-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-panel li {
  display: grid;
  gap: 3px;
  padding: 9px;
  background: #f8fbff;
  border: 1px solid #d7e3ef;
  border-radius: 6px;
}

.dashboard-panel li + li {
  margin-top: 8px;
}

.dashboard-panel strong {
  color: var(--navy-dark);
  font-size: 0.92rem;
}

.dashboard-panel span,
.dashboard-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.desktop-license-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.desktop-license-item .button {
  flex: 0 0 auto;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #eef4fa;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-active {
  border-color: #b8d5c4;
  background: #edf8f0;
  color: #1f6b3a;
}

.status-muted {
  border-color: #cfd9e4;
  background: #f3f6f9;
  color: #607082;
}

.compact-form {
  gap: 10px;
}

.member-access-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.signup-choice-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.signup-choice-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.05);
}

.signup-choice-card:hover,
.signup-choice-card:focus-visible {
  border-color: #9bb7d4;
  background: #fbfdff;
}

.signup-choice-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signup-choice-card strong {
  font-size: 1rem;
}

.signup-choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.signup-choice-card.network-choice {
  border-left-color: #1f6b3a;
}

.member-access-grid div {
  padding: 11px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.member-access-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-access-grid strong {
  display: block;
  color: var(--navy-dark);
}

.member-access-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.primary-tools-band {
  padding: clamp(22px, 4vw, 36px) 0;
  background: #f4f8fc;
  border-bottom: 1px solid var(--border);
}

.primary-tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.primary-tools-panel,
.practice-feature-panel {
  min-width: 0;
  padding: clamp(15px, 2.2vw, 20px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(16, 36, 63, 0.05);
}

.primary-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tool-shortcut {
  min-width: 0;
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  color: var(--text);
  background: #f8fbff;
  border: 1px solid var(--border);
  border-left: 4px solid #9eb4c9;
  border-radius: 6px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.tool-shortcut:hover,
.tool-shortcut:focus-visible {
  background: #edf4fb;
  border-color: #9eb4c9;
  border-left-color: var(--accent);
}

.tool-shortcut.featured {
  background: #edf6fb;
  border-left-color: var(--navy);
}

.tool-shortcut.desktop-upgrade {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 242, 250, 0.96)),
    url("/assets/va-companion-mark-transparent.png") right 12px center / 118px auto no-repeat;
  border-left-color: var(--accent);
}

.tool-shortcut.desktop-upgrade strong {
  max-width: 78%;
  font-size: 1.08rem;
}

.tool-shortcut.desktop-upgrade small {
  max-width: 82%;
}

.tool-shortcut span,
.practice-feature-stats span,
.practice-mini-metrics span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-shortcut strong {
  color: var(--navy-dark);
  font-size: 0.95rem;
  line-height: 1.18;
}

.tool-shortcut small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tool-shortcut-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
  pointer-events: none;
}

.tool-shortcut-metrics b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 6px;
  color: #294664;
  background: #eef5fb;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.tool-shortcut-metrics b span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.practice-feature-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 4px solid var(--accent);
}

.practice-feature-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
}

.practice-feature-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.practice-feature-stats,
.practice-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.practice-feature-stats div,
.practice-mini-metrics div {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.practice-feature-stats strong,
.practice-mini-metrics strong {
  color: var(--navy-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.task-launcher {
  padding: clamp(22px, 4vw, 36px) 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.launch-status-band {
  padding: clamp(26px, 4vw, 42px) 0;
  background: #edf3fa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.launch-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.launch-status-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 158px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 5px 16px rgba(16, 36, 63, 0.05);
}

.launch-status-card span,
.release-ops-grid article > span,
.release-readiness-list span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-status-card strong,
.release-ops-grid strong {
  color: var(--navy-dark);
  line-height: 1.18;
}

.launch-status-card p,
.release-ops-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.launch-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 16px;
}

.section-heading.compact {
  max-width: 720px;
  margin-bottom: 18px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 10px;
}

.task-grid article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 166px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(16, 36, 63, 0.04);
}

.task-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.task-grid p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.task-grid .button {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.tool-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding: 5px;
  background: #dfe8f2;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.tool-tab {
  flex: 1 0 118px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
}

.tool-tab.active {
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(16, 36, 63, 0.16);
}

.tool-pane {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.deep-link-anchor {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.tool-layout.wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

@media (min-width: 961px) {
  .tool-layout.results-workspace {
    height: min(760px, calc(100vh - 156px));
    min-height: 540px;
    align-items: stretch;
  }

  .tool-layout.results-workspace > .tool-form,
  .tool-layout.results-workspace > .tool-output {
    max-height: 100%;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .tool-layout.results-workspace > .tool-form {
    align-self: stretch;
  }

  .tool-layout.results-workspace > .tool-output {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overscroll-behavior: contain;
  }

  .tool-layout.results-workspace .result-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }
}

.tool-form,
.tool-output {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 22px);
  background: var(--surface);
}

.tool-output {
  background: #f7fafc;
}

.tool-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--navy-dark);
  font-weight: 800;
}

.tool-form label span {
  font-size: 0.84rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(16, 36, 63, 0.03);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 111, 159, 0.22);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  gap: 10px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
  white-space: normal;
}

.button.primary {
  color: #ffffff;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--navy-dark);
}

.button.secondary {
  color: var(--navy-dark);
  background: #edf4fb;
  border: 1px solid var(--border);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #9eb4c9;
  background: #dfeaf5;
}

.button.danger {
  color: #8b1e2d;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.button.danger:hover,
.button.danger:focus-visible {
  color: #7f1d1d;
  border-color: #fda4af;
  background: #ffe4e6;
}

.button.ghost {
  color: var(--accent-dark);
  background: #eef6fc;
  border: 1px solid #bcd2e4;
}

.button.disabled {
  color: #576274;
  background: #eef2f7;
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.source-note {
  color: var(--muted);
  min-height: 28px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-line {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 28px;
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.35;
}

.status-line[hidden] {
  display: none;
}

.source-note[hidden] {
  display: none;
}

.form-actions .status-line,
.tool-output > .status-line {
  flex: 1 1 100%;
}

.provider-result-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0 12px;
  padding: 10px 11px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.provider-result-toolbar[hidden] {
  display: none;
}

.provider-result-toolbar strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.94rem;
}

.provider-result-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.provider-result-toolbar .button {
  min-height: 36px;
  white-space: nowrap;
}

.provider-more-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 2px;
  padding: 10px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 0.86rem;
}

@media (max-width: 1100px) {
  .provider-result-toolbar {
    grid-template-columns: 1fr;
  }

  .provider-result-toolbar .button {
    justify-self: start;
  }
}

.source-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.submission-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 24px);
  padding: clamp(16px, 2.4vw, 22px);
  border-top: 1px solid var(--border);
  background: #f7fafc;
}

.member-required-note {
  padding: 9px 11px;
  color: #41516a;
  background: #eef5fb;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
}

.submission-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
  color: var(--navy-dark);
  font-weight: 800;
}

.result-item {
  padding: 12px 13px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.result-item h4 {
  margin: 0 0 6px;
  color: var(--navy-dark);
  font-size: 0.98rem;
}

.result-item p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.honors-workspace {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 961px) {
  #death-tool .tool-layout.results-workspace {
    height: auto;
    min-height: 0;
  }

  #death-tool .tool-layout.results-workspace > .tool-form,
  #death-tool .tool-layout.results-workspace > .tool-output {
    max-height: none;
    overflow-y: visible;
  }

  #death-tool .tool-layout.results-workspace .result-list {
    flex: 0 1 auto;
    max-height: 360px;
    overflow-y: auto;
  }

  #military-honors-directory {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  #death-burial-search {
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
  }
}

.honors-contact-card {
  border-left-color: #2d6f8f;
}

.honors-contact-card .source-link {
  display: inline;
  margin-top: 0;
}

.honors-card-actions {
  margin-top: 10px;
}

.vso-result-card {
  border-left-color: #356d91;
}

.vso-class-county-vso {
  border-left-color: #168464;
}

.vso-class-state-office,
.vso-class-state-regional-vso {
  border-left-color: #2f6f9f;
}

.vso-class-accredited-attorney,
.vso-class-claims-agent {
  border-left-color: #a97831;
}

.vso-class-vso-organization {
  border-left-color: #5b6f8d;
}

.vso-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.result-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vso-card-head .status-badge {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.vso-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0;
}

.vso-detail-grid div {
  min-width: 0;
  padding: 8px 9px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.vso-detail-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vso-detail-grid strong {
  color: var(--navy-dark);
  font-size: 0.85rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.vso-detail-grid .source-link {
  display: inline;
  margin-top: 0;
  font-size: 0.85rem;
}

.vso-guidance,
.vso-search-note {
  padding: 9px 10px;
  background: #eef5fb;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

.empty-result-card {
  border-left-color: #9a6a1f;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfe 100%);
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.decision-strip.four-step-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .decision-strip.four-step-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.decision-strip div {
  padding: 12px;
  background: #f8fbfe;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.decision-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-strip strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.95rem;
}

.decision-strip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.complete-source-card {
  border-left: 4px solid #2f855a;
}

.vso-log-filters {
  margin: 8px 0 12px;
}

.vso-action-row-card {
  background: #fbfdff;
}

.directory-coming-soon {
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  border-left-color: #b8892b;
}

.directory-coming-soon .form-actions {
  margin-top: 10px;
}

.rating-table {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) 92px minmax(140px, 1fr) minmax(112px, 0.8fr) 42px;
  gap: 8px;
  align-items: end;
  padding: 8px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.rating-row label {
  margin-bottom: 0;
}

.remove-row {
  width: 38px;
  min-height: 38px;
  color: #ffffff;
  background: var(--red);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-grid div {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.metric-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-grid strong {
  color: var(--navy-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.steps-box {
  max-height: 300px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.steps-box p {
  margin: 0;
  padding: 10px 12px;
  color: #40506a;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.benefits-workspace .tool-output {
  display: grid;
  align-content: start;
  gap: 12px;
}

.benefits-summary-card {
  padding: 13px 14px;
  color: #213654;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.benefits-summary-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-dark);
  font-size: 1rem;
}

.benefits-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.benefit-results-grid {
  display: grid;
  gap: 12px;
}

.benefit-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fbfdff;
  border: 1px solid var(--border);
  border-left: 4px solid #7f97b2;
  border-radius: 7px;
  box-shadow: 0 5px 18px rgba(16, 36, 63, 0.035);
}

.benefit-group-health {
  border-left-color: #2f6f9f;
}

.benefit-group-family {
  border-left-color: #437d62;
}

.benefit-group-education {
  border-left-color: #5f72a8;
}

.benefit-group-state {
  border-left-color: #b8892b;
}

.benefit-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.benefit-group-head h4 {
  margin: 2px 0 4px;
  color: var(--navy-dark);
  font-size: 1.02rem;
}

.benefit-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.benefit-group-count {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 4px 9px;
  color: #28425f;
  background: #eef5fb;
  border: 1px solid #c5d6e8;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.benefit-group-grid {
  display: grid;
  gap: 10px;
}

.benefit-empty-state {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.benefit-empty-state h4 {
  margin: 0 0 6px;
  color: var(--navy-dark);
}

.benefit-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.benefit-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #7f97b2;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(16, 36, 63, 0.04);
}

.benefit-card.review {
  border-left-color: #2f6f9f;
}

.benefit-card.check {
  border-left-color: #b8892b;
}

.benefit-card.watch {
  border-left-color: #7f97b2;
}

.benefit-card.priority {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
  border-color: #b7cfe5;
  box-shadow: 0 8px 20px rgba(31, 85, 130, 0.08);
}

.benefit-status {
  justify-self: start;
  padding: 3px 8px;
  color: var(--navy-dark);
  background: #edf4fb;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.benefit-card.review .benefit-status {
  color: #0f4b76;
  background: #e4f2fb;
  border-color: #bcd2e4;
}

.benefit-card.check .benefit-status {
  color: #7a4b00;
  background: #fff4dc;
  border-color: #e8c981;
}

.benefit-card.watch .benefit-status {
  color: #43546a;
  background: #f0f4f8;
  border-color: #c8d3de;
}

.benefit-card h4 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.benefit-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.benefit-action-row .button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.benefit-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.benefit-source-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: #24503f;
  background: #e9f7ef;
  border: 1px solid #b7dfc7;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.benefits-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefits-source-list a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  color: var(--accent-dark);
  background: #eef6fc;
  border: 1px solid #bcd2e4;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 8px 9px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.checkbox-grid input {
  width: 18px;
  min-height: 18px;
}

.practice-workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 16px;
  align-items: start;
  padding: clamp(16px, 2.4vw, 22px);
  background: #f7fafc;
  border-bottom: 1px solid var(--border);
}

.practice-workspace-head h3 {
  margin-bottom: 7px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.practice-workspace-head .source-note {
  display: block;
  max-width: 780px;
}

.dbq-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.dbq-summary h4 {
  margin: 0;
  color: var(--navy-dark);
}

.dbq-summary p {
  margin: 0;
  color: var(--muted);
}

.dbq-question-list {
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.dbq-prompt {
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.dbq-prompt h4 {
  margin: 0 0 7px;
  color: var(--navy-dark);
}

.dbq-prompt p {
  margin-bottom: 7px;
  color: var(--muted);
}

.dbq-download-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dbq-download-head h3 {
  margin: 0 0 6px;
  color: var(--navy-dark);
}

.dbq-form-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.dbq-form-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.dbq-form-card h4 {
  margin: 7px 0 6px;
  color: var(--navy-dark);
}

.dbq-form-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.dbq-form-card .form-actions {
  margin-top: 0;
}

.dbq-form-card.empty {
  border-left-color: var(--warning);
}

.crisis-hero {
  order: 1;
  color: #ffffff;
  background: linear-gradient(90deg, #7a1f1a 0%, #8d231d 54%, #6f1c18 100%);
  border-bottom: 5px solid #b42318;
}

#crisis-main {
  display: flex;
  flex-direction: column;
}

.crisis-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 34px;
  align-items: center;
  min-height: 210px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.crisis-hero .section-kicker.inverse {
  color: #ffe7df;
}

.crisis-hero h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.1vw, 3.7rem);
  line-height: 0.98;
}

.crisis-hero p {
  max-width: 720px;
  margin: 0;
  color: #fff4f1;
  font-size: 1.05rem;
}

.crisis-hero-panel {
  display: grid;
  gap: 12px;
}

.crisis-hero-panel img {
  width: min(360px, 100%);
  max-height: 130px;
  object-fit: contain;
  justify-self: center;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 31, 45, 0.18);
}

.crisis-source-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: #25120f;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.crisis-action-band {
  order: 2;
  background: #fff7f5;
  border-bottom: 1px solid var(--border);
}

.crisis-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.crisis-action-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  border-left: 6px solid #2f6f9f;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 36, 63, 0.08);
}

.crisis-action-card.danger {
  border-left-color: #b42318;
}

.crisis-action-card.veteran {
  border-left-color: #17406f;
}

.crisis-action-card.chat {
  border-left-color: #168464;
}

.crisis-action-card.military {
  border-left-color: #556987;
}

.crisis-action-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crisis-action-card h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(1.45rem, 2.45vw, 2.05rem);
}

.crisis-action-card p {
  margin: 0;
  color: var(--muted);
}

.crisis-decision-strip {
  order: 3;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.crisis-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.crisis-decision-grid article {
  padding: 15px;
  background: #f8fbfe;
  border: 1px solid var(--border);
  border-left: 4px solid #17406f;
  border-radius: 8px;
}

.crisis-decision-grid article:first-child {
  border-left-color: #b42318;
}

.crisis-decision-grid span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crisis-decision-grid h2 {
  margin: 4px 0 8px;
  color: var(--navy-dark);
  font-size: 1.25rem;
}

.crisis-decision-grid p {
  margin: 0 0 6px;
  color: var(--muted);
}

.crisis-official-guide {
  order: 6;
  background: #f8fbfe;
}

.crisis-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.crisis-resource-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 220px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #2f6f9f;
  border-radius: 8px;
}

.crisis-resource-card.priority {
  border-left-color: #17406f;
}

.crisis-resource-card.danger {
  border-left-color: #b42318;
}

.crisis-resource-card.military-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.crisis-resource-card.military-wide .crisis-area-map {
  max-width: 760px;
}

.crisis-resource-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crisis-resource-card h3 {
  margin: 0;
  color: var(--navy-dark);
}

.crisis-resource-card p {
  margin: 0;
  color: var(--muted);
}

.crisis-overseas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #f8fbfe;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.crisis-overseas-details {
  padding: 10px;
  background: #f8fbfe;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.crisis-overseas-details summary {
  color: var(--navy-dark);
  cursor: pointer;
  font-weight: 900;
}

.crisis-overseas-details[open] summary {
  margin-bottom: 10px;
}

.crisis-overseas-grid p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
  font-size: 0.86rem;
}

.crisis-overseas-grid strong {
  color: #17406f;
}

.crisis-overseas-grid span,
.crisis-overseas-grid em {
  color: var(--muted);
  font-style: normal;
}

.crisis-overseas-grid b {
  color: var(--navy-dark);
}

.crisis-area-map {
  margin: 2px 0 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.crisis-area-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.crisis-map-open {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.crisis-map-button {
  width: 100%;
  margin-top: 10px;
}

.crisis-area-map figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.crisis-call-note {
  display: grid;
  gap: 8px;
  padding: 10px;
  color: #25120f;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.crisis-call-note summary {
  color: var(--navy-dark);
  cursor: pointer;
  font-weight: 900;
}

.crisis-call-note p {
  margin: 0;
}

@media (max-width: 1100px) {
  .crisis-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.crisis-map-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  background: transparent;
  border: 0;
}

.crisis-map-dialog::backdrop {
  background: rgba(10, 20, 34, 0.72);
}

.crisis-map-dialog-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(10, 20, 34, 0.38);
}

.crisis-map-dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.crisis-map-dialog h2,
.crisis-map-dialog p {
  margin: 0;
}

.crisis-map-dialog img {
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  background: #f8fbfe;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.crisis-map-dialog p {
  color: var(--muted);
}

.crisis-faq-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #17406f;
  border-radius: 8px;
}

.crisis-faq-callout span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crisis-faq-callout h3 {
  margin: 3px 0 6px;
  color: var(--navy-dark);
}

.crisis-faq-callout p {
  margin: 0;
  color: var(--muted);
}

.button.crisis-button,
.crisis-button {
  color: #ffffff;
  background: #17406f;
  border-color: #17406f;
}

.button.crisis-button.danger,
.crisis-button.danger {
  color: #ffffff;
  background: #b42318;
  border-color: #8f1c13;
}

.crisis-workspace {
  order: 4;
  background: var(--background);
}

.crisis-workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
}

.crisis-script-output {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  background: #f8fbfe;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.script-copy-box {
  padding: 14px;
  color: #10243f;
  background: #ffffff;
  border: 1px solid #cbd8e7;
  border-left: 4px solid #b42318;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
}

.crisis-va-followup {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  color: #10243f;
  background: #f8fbfe;
  border: 1px solid var(--border);
  border-left: 4px solid #17406f;
  border-radius: 8px;
}

.crisis-va-followup h3 {
  margin: 0;
  color: var(--navy-dark);
}

.crisis-va-followup p {
  margin: 0;
  color: var(--muted);
}

.crisis-form-note {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.crisis-local-resource-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 0.7fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 4px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.crisis-local-resource-form label {
  display: grid;
  gap: 5px;
  font-weight: 800;
}

.crisis-local-resource-form span {
  color: var(--navy-dark);
  font-size: 0.82rem;
}

.crisis-care-results {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.crisis-result-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #2f6f9f;
  border-radius: 6px;
}

.crisis-result-card span {
  color: #168464;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crisis-result-card h3,
.crisis-guide-grid h3 {
  margin: 0 0 6px;
  color: var(--navy-dark);
}

.crisis-result-card p {
  margin: 0 0 4px;
  color: var(--muted);
}

.crisis-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.crisis-guidance {
  order: 5;
}

.crisis-sources {
  order: 7;
}

.crisis-guide-grid article {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #2f6f9f;
  border-radius: 8px;
}

.crisis-checklist {
  display: grid;
  gap: 10px;
}

.crisis-checklist p {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  background: #f8fbfe;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.crisis-checklist strong {
  color: var(--navy-dark);
}

@media (max-width: 760px) {
  .crisis-hero-inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .crisis-action-card {
    min-height: 0;
  }

  .crisis-care-results {
    max-height: 520px;
  }

  .crisis-faq-callout {
    grid-template-columns: 1fr;
  }

  .crisis-resource-card.military-wide {
    grid-column: auto;
  }

  .crisis-overseas-grid {
    grid-template-columns: 1fr;
  }

  .crisis-map-dialog-head {
    grid-template-columns: 1fr;
  }

  .crisis-faq-callout .button,
  .crisis-local-resource-form .button {
    width: 100%;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  background: #edf5fb;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.soft {
  color: #28516f;
  background: #f4f8fb;
}

.community-section {
  background: var(--background);
}

.forum-section {
  background: #f8fbff;
}

.forum-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.forum-room-list {
  display: grid;
  gap: 8px;
}

.forum-room-card {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.forum-room-card.active {
  border-left-color: var(--navy);
  box-shadow: var(--shadow);
}

.forum-room-card .button[aria-current="true"] {
  color: #ffffff;
  background: var(--navy);
}

.forum-room-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.room-topic-icon {
  width: 48px;
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid #c5d5e5;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
  overflow: hidden;
}

.room-topic-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.forum-room-card h4 {
  margin: 0 0 5px;
  color: var(--navy-dark);
  font-size: 0.95rem;
}

.forum-room-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.forum-room-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.room-icon-field {
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.room-icon-field legend {
  padding: 0 5px;
  color: var(--navy-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.room-icon-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.room-icon-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.room-icon-choice:hover,
.room-icon-choice:focus-within {
  border-color: #8fb0cc;
  background: #f2f7fc;
}

.room-icon-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.room-icon-choice input:checked + .room-topic-icon {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.18);
}

.room-icon-choice .room-topic-icon {
  width: 34px;
}

.room-icon-choice strong {
  min-width: 0;
  color: var(--navy-dark);
  font-size: 0.82rem;
  line-height: 1.2;
}

.room-policy-bar,
.room-policy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.room-policy-bar {
  margin-top: 10px;
}

.room-policy-bar span,
.room-policy-badges span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: var(--navy-dark);
  background: #edf4fb;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
}

.room-policy-badges.compact {
  gap: 5px;
  margin: 7px 0;
}

.room-policy-badges.compact span {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 0.71rem;
}

.room-counts {
  display: inline-flex;
  margin-bottom: 7px;
}

.forum-workspace {
  display: grid;
  gap: 14px;
}

.forum-create-room-panel {
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.forum-create-room-panel summary {
  cursor: pointer;
  color: var(--navy-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-create-room-panel .forum-post-form {
  margin-top: 12px;
  padding-top: 12px;
}

.forum-thread-list,
.forum-reply-list {
  display: grid;
  gap: 9px;
}

.forum-thread-card,
.forum-reply-card {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.forum-thread-card.pinned {
  border-left: 4px solid var(--gold);
}

.forum-thread-card.locked {
  border-left: 4px solid #64748b;
  background: #f8fafc;
}

.forum-thread-card h4,
.forum-reply-card h5 {
  margin: 0 0 6px;
  color: var(--navy-dark);
}

.forum-post-form {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.knowledge-base-section {
  background: var(--background);
}

.knowledge-base-panel {
  gap: 14px;
}

.knowledge-base-scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.knowledge-base-scope-grid button {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 12px;
  text-align: left;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.knowledge-base-scope-grid button:hover,
.knowledge-base-scope-grid button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(44, 111, 159, 0.35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.knowledge-base-scope-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.knowledge-base-scope-grid strong {
  color: var(--navy-dark);
  font-size: 0.95rem;
  line-height: 1.25;
}

.knowledge-base-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.knowledge-base-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-base-grid {
  display: grid;
  gap: 10px;
}

.knowledge-base-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.knowledge-base-card summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  position: relative;
  cursor: pointer;
  list-style: none;
}

.knowledge-base-card summary::-webkit-details-marker {
  display: none;
}

.knowledge-base-card summary::after {
  content: "";
  display: none;
}

.knowledge-base-card[open] summary::after {
  content: "";
}

.knowledge-base-card[open] {
  border-left-color: var(--navy);
}

.knowledge-base-card summary:hover,
.knowledge-base-card summary:focus-visible {
  background: #f8fbff;
}

.knowledge-base-question {
  display: block;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1rem;
}

.knowledge-base-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--navy-dark);
  background: #edf5fc;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.knowledge-base-card[open] .knowledge-base-toggle {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  font-size: 0;
}

.knowledge-base-card[open] .knowledge-base-toggle::after {
  content: "Answer shown";
  font-size: 0.74rem;
}

.knowledge-base-empty {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.knowledge-base-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.knowledge-base-empty h3 {
  margin: 0 0 7px;
  color: var(--navy-dark);
  font-size: 1rem;
}

.knowledge-base-card p,
.knowledge-base-empty p {
  margin: 0;
  color: var(--muted);
}

.knowledge-base-answer {
  display: grid;
  gap: 7px;
  padding: 0 14px 14px;
}

.knowledge-base-answer p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.sync-roadmap-mini {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.sync-roadmap-mini div {
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.sync-roadmap-mini span {
  display: block;
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sync-roadmap-mini p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.knowledge-base-editor-layout {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.compact-toolbar {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
}

.member-badges span {
  padding: 4px 8px;
  color: var(--navy-dark);
  background: #eef7f3;
  border: 1px solid #bfdfd5;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.community-form {
  padding: clamp(16px, 2.4vw, 22px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 10px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.form-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 12px 14px;
  color: var(--navy-dark);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 900;
}

.form-section summary small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.form-section[open] {
  background: #ffffff;
}

.form-section[open] summary {
  border-bottom: 1px solid var(--border);
}

.form-section > .form-row,
.form-section > .checkbox-grid,
.form-section > label,
.form-section > .account-form,
.form-section > .consent-line,
.form-section > .form-actions {
  margin: 12px 14px;
}

.provider-advanced-filters {
  margin-bottom: 0;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  color: var(--navy-dark);
  font-weight: 750;
  font-size: 0.9rem;
}

.consent-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.privacy-band {
  padding: clamp(30px, 5vw, 54px) 0;
  color: #eaf2fb;
  background: var(--navy-dark);
}

.privacy-band h2 {
  color: #ffffff;
}

.privacy-band p {
  color: #dce8f6;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.privacy-list {
  display: grid;
  gap: 10px;
}

.privacy-list p {
  margin: 0;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-weight: 750;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.source-grid a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 11px 13px;
  color: var(--navy-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.source-grid a:hover,
.source-grid a:focus-visible {
  border-color: #afc2d6;
  background: #fbfcfe;
}

.product-band {
  padding: clamp(26px, 4vw, 44px) 0;
  background: #f8fbff;
  border-top: 1px solid var(--border);
}

.quick-links-band {
  padding: clamp(34px, 5vw, 58px) 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.quick-links-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.quick-link-cards,
.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-link-cards article,
.forms-grid article,
.dbq-summary,
.dbq-prompt,
.eob-card {
  padding: 16px;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.quick-link-cards p,
.forms-grid p,
.dbq-summary p,
.dbq-prompt p,
.eob-card p {
  color: var(--muted);
}

.forms-band {
  padding: clamp(34px, 5vw, 58px) 0;
  background: #f7fafc;
  border-bottom: 1px solid var(--border);
}

.forms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.forms-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--navy-dark);
  font-weight: 800;
}

.forms-toolbar select {
  min-width: min(260px, 80vw);
}

.forms-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.forms-grid span {
  width: fit-content;
  padding: 4px 8px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.forms-grid h3 {
  margin: 0;
}

.handoff-domain {
  margin: 18px 0;
  padding: 12px 14px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.guide-points {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.guide-points li {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.guide-points strong {
  color: var(--navy-dark);
  font-size: 0.9rem;
}

.guide-points span {
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-points.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-inline,
.call-script-panel {
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  background: #fbfcfe;
  border-bottom: 1px solid var(--border);
}

.guide-inline > div + div {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-grid article {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}

.info-grid h4 {
  margin: 0 0 7px;
  color: var(--navy-dark);
  font-size: 0.98rem;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
}

.call-script-panel {
  display: grid;
  gap: 16px;
}

.script-builder {
  display: grid;
  gap: 12px;
}

.script-output {
  margin: 0;
  padding: 16px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.55;
}

.dbq-question-list {
  margin-top: 14px;
}

.dbq-prompt h4 {
  margin: 0 0 8px;
  color: var(--navy-dark);
}

.dbq-prompt textarea {
  margin-top: 10px;
}

.dbq-summary {
  background: #f7fafc;
  border-radius: 6px;
}

.dbq-prompt {
  background: #ffffff;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0;
}

.provider-meta span {
  padding: 3px 7px;
  color: var(--navy-dark);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.provider-meta .confidence-high {
  color: #155e42;
  background: #e6f4ee;
  border-color: #b9dccc;
}

.provider-meta .confidence-medium {
  color: #67510b;
  background: #f7f1dc;
  border-color: #dec988;
}

.provider-meta .confidence-low {
  color: #7f1d1d;
  background: #f7e6e8;
  border-color: #e6c0c4;
}

.toxic-metrics,
.exposure-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.toxic-result {
  border-left-color: var(--gold);
}

.toxic-badges span:first-child {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.exposure-hero {
  background:
    linear-gradient(135deg, rgba(34, 53, 84, 0.92), rgba(23, 36, 58, 0.88)),
    url("/assets/va-companion-mark-transparent.png") right 8% center / min(460px, 70vw) auto no-repeat,
    var(--navy-dark);
}

.exposure-hero h1,
.exposure-hero p {
  color: #ffffff;
}

.exposure-hero .section-kicker {
  color: #d9e7ff;
}

.exposure-hero .local-guide-mark small {
  color: var(--muted);
}

.exposure-search-page .tool-form {
  margin-bottom: 16px;
}

.exposure-results {
  margin-top: 14px;
}

.select-record {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--navy-dark);
  background: #f6faf8;
  border: 1px solid #c9ded6;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 850;
}

.select-record input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.tera-builder-section {
  background: #ffffff;
}

.tera-builder-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.tera-builder-form textarea {
  min-height: 92px;
}

.tera-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selected-exposure-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 20px;
}

.selected-exposure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.selected-exposure h4 {
  margin: 0 0 4px;
  color: var(--navy-dark);
}

.selected-exposure p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tera-letter-output {
  min-height: 420px;
  margin-top: 10px;
  font-family: inherit;
}

.feedback-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.feedback-panel summary {
  color: var(--navy-dark);
  cursor: pointer;
  font-weight: 850;
}

.provider-feedback-form,
.accredited-submit-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.provider-feedback-form label,
.accredited-submit-form label {
  display: grid;
  gap: 6px;
  color: var(--navy-dark);
  font-weight: 750;
}

.save-strip {
  margin-top: 12px;
  padding: 12px;
  background: #eef7f3;
  border: 1px solid #bfdfd5;
  border-radius: 8px;
}

.save-strip p {
  margin: 0;
  color: var(--navy-dark);
  font-weight: 750;
}

.eob-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.eob-section {
  grid-template-columns: minmax(0, 1fr);
}

.eob-visual {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.eob-zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
}

.eob-visual img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.eob-zoom-trigger span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  color: #ffffff;
  background: rgba(23, 36, 58, 0.92);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 850;
}

.eob-callouts {
  display: grid;
  gap: 8px;
}

.eob-card {
  padding: 12px;
}

.eob-card strong {
  display: block;
  color: var(--navy-dark);
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 33, 0.78);
}

.image-viewer-dialog {
  position: relative;
  width: min(1180px, 100%);
  height: min(860px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.image-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--border);
}

.image-viewer-toolbar h2 {
  margin: 0;
  font-size: 1.25rem;
}

.image-viewer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.image-viewer-stage {
  overflow: auto;
  padding: 18px;
  background: #eef2f7;
}

.image-viewer-stage img {
  display: block;
  width: calc(var(--eob-zoom, 1) * 100%);
  min-width: 720px;
  max-width: none;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 36, 58, 0.16);
}

.product-band-layout,
.license-layout,
.product-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.product-band-layout h2,
.license-layout h2,
.product-boundary h2 {
  margin-bottom: 12px;
}

.product-band-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-band {
  padding: clamp(32px, 5vw, 60px) 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-support-band {
  background: #f4f8fc;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.support-layout p {
  color: var(--muted);
}

.support-actions,
.support-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.support-notes span {
  padding: 8px 10px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
}

.support-payment-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 250, 0.96)),
    url("/assets/va-companion-mark-transparent.png") right -34px bottom -26px / 220px auto no-repeat;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-payment-card > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-payment-card strong {
  color: var(--navy-dark);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  line-height: 1.16;
  overflow-wrap: break-word;
  word-break: normal;
}

.support-payment-card p,
.support-payment-card small {
  margin: 0;
  color: var(--muted);
}

.support-qr-frame {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed #9eb4c9;
  border-radius: 8px;
  scroll-margin-top: 92px;
}

.support-qr-image {
  width: min(210px, 100%);
  display: block;
  background: #ffffff;
  border: 10px solid #ffffff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--border), 0 8px 18px rgba(23, 36, 58, 0.1);
}

.support-qr-frame p {
  max-width: 280px;
  font-size: 0.9rem;
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 68px) 0;
  background:
    linear-gradient(rgba(244, 247, 251, 0.9), rgba(244, 247, 251, 0.9)),
    url("/assets/va-companion-mark-transparent.png") right -10vw center / min(680px, 55vw) auto no-repeat,
    var(--background);
  border-bottom: 1px solid var(--border);
}

.subpage-frame > main {
  min-width: 0;
}

.subpage-frame .product-hero {
  padding: clamp(28px, 4vw, 56px) 0;
}

.subpage-frame .product-hero-inner,
.subpage-frame .section-inner {
  width: min(1160px, calc(100% - 32px));
}

.subpage-frame .product-hero-inner {
  gap: clamp(20px, 3vw, 42px);
}

.subpage-frame .product-section:not(.manual-section):not(.screen-band):not(.compare-section) > .section-inner {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.local-guide-hero .product-hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.local-guide-mark {
  width: min(320px, 70vw);
  justify-self: end;
}

.local-guide-mark:not(img) {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--navy-dark);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(8, 18, 34, 0.24);
}

.local-guide-mark:not(img) span {
  display: block;
  color: var(--navy);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.9;
  font-weight: 950;
}

.local-guide-mark:not(img) small {
  color: var(--muted);
  font-weight: 850;
}

.local-guide-page {
  background: #ffffff;
}

.local-guide-grid {
  display: grid;
  gap: 16px;
}

.local-guide-article {
  padding: clamp(18px, 3vw, 26px);
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.local-guide-article h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.related-guide-grid {
  margin-top: 16px;
}

.related-guide-card {
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.local-guide-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.local-guide-points li {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.local-guide-points strong {
  color: var(--navy-dark);
}

.local-guide-points span {
  color: var(--muted);
}

.tricare-source-heading {
  margin-top: clamp(24px, 4vw, 40px);
}

.tricare-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.tricare-source-grid article,
.tricare-source-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 36, 63, 0.06);
}

.tricare-source-grid article {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 218px;
  padding: 16px;
}

.tricare-source-grid span,
.tricare-source-panel .section-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tricare-source-grid h3,
.tricare-source-panel h4 {
  margin: 0;
  color: var(--navy-dark);
}

.tricare-source-grid p,
.tricare-source-panel p {
  margin: 0;
  color: var(--muted);
}

.tricare-source-grid .button {
  margin-top: auto;
  justify-content: center;
}

.tricare-source-grid .form-actions {
  margin-top: auto;
}

.tricare-source-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  margin: 16px 0;
  padding: 16px;
}

.tricare-source-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tricare-source-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--navy-dark);
  text-align: center;
  text-decoration: none;
  background: #f4f8fc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 900;
}

.tricare-source-links a:hover,
.tricare-source-links a:focus-visible {
  color: #ffffff;
  background: var(--navy);
  outline: none;
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--navy), var(--accent), var(--red), var(--gold));
}

.product-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin: 0 auto;
}

.product-copy .hero-copy {
  margin-bottom: 20px;
}

.product-copy,
.release-card {
  min-width: 0;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.status-strip span {
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.desktop-preview,
.screen-card,
.feature-grid article,
.release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.desktop-preview {
  overflow: hidden;
}

.app-hero-capture {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
}

.app-hero-capture img {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 696;
  object-fit: cover;
}

.extension-hero-capture img {
  aspect-ratio: 1280 / 800;
}

.extension-hero .product-hero-inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
}

.extension-hero .app-hero-capture span,
.extension-screen-grid .screen-card h3,
.extension-screen-grid .screen-card p {
  overflow-wrap: anywhere;
}

.app-hero-capture span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 16px;
  color: var(--navy-dark);
  background: #ffffff;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 850;
}

.window-bar,
.mini-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  background: var(--navy-dark);
}

.window-bar span,
.mini-window-bar::before,
.mini-window-bar::after {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--accent);
}

.window-bar strong {
  margin-left: auto;
  color: #ffffff;
  font-size: 0.85rem;
}

.preview-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 420px;
}

.preview-shell aside {
  padding: 18px 14px;
  color: #dce8f6;
  background: var(--navy);
}

.preview-shell aside img {
  width: 74px;
  display: block;
  margin-bottom: 18px;
}

.preview-shell aside p {
  margin: 0 0 9px;
  padding: 8px 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 750;
}

.preview-shell section {
  padding: 22px;
  background: #fbfcfe;
}

.preview-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.preview-title span,
.preview-title small {
  color: var(--muted);
  font-weight: 750;
}

.preview-title h2 {
  margin: 4px 0 0;
  font-size: 1.8rem;
}

.preview-banner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.preview-banner img {
  width: 150px;
}

.preview-banner p {
  margin: 0;
  color: #40506a;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-metrics div {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.preview-metrics span,
.release-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-metrics strong,
.release-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy-dark);
  font-size: 2rem;
  line-height: 1;
}

.product-section {
  background: #ffffff;
}

.compare-section {
  padding: clamp(42px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--border);
}

.comparison-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 36, 58, 0.08);
}

.comparison-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.comparison-table thead th {
  color: var(--navy-dark);
  background: #eef4fa;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.comparison-table tbody th {
  width: 24%;
  color: var(--navy-dark);
  font-weight: 900;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.feature-grid,
.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  padding: 18px;
  box-shadow: 0 12px 28px rgba(23, 36, 58, 0.08);
}

.feature-grid p,
.screen-card p,
.release-card p,
.product-band-layout p,
.product-boundary p,
.license-layout p {
  color: var(--muted);
}

.screen-band {
  padding: clamp(44px, 7vw, 82px) 0;
  background: var(--surface-muted);
}

.screen-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-card {
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(23, 36, 58, 0.08);
}

.screen-capture {
  display: block;
  overflow: hidden;
  background: #eef4fa;
  border-bottom: 1px solid var(--border);
}

.screen-capture img {
  display: block;
  width: 100%;
  aspect-ratio: 1180 / 720;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.extension-screen-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.extension-screen-capture img {
  aspect-ratio: 1280 / 800;
}

.extension-status-card {
  margin-top: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(23, 36, 58, 0.08);
}

.store-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.store-proof-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(16, 36, 63, 0.05);
}

.store-proof-card.approved {
  border-left-color: #168464;
  background: #f2fbf7;
}

.store-proof-card.review {
  border-left-color: #c28a2a;
  background: #fffaf0;
}

.store-proof-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-proof-card strong {
  color: var(--navy-dark);
  font-size: 1rem;
}

.store-proof-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .store-proof-grid {
    grid-template-columns: 1fr;
  }
}

.screen-capture:hover img,
.screen-capture:focus-visible img {
  transform: scale(1.015);
  filter: saturate(1.04);
}

.screen-card h3,
.screen-card p {
  padding: 0 18px;
}

.screen-card h3 {
  margin-top: 18px;
}

.screen-card p {
  padding-bottom: 20px;
}

.mini-window {
  min-height: 190px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.mini-window-bar {
  min-height: 26px;
}

.mini-dashboard,
.mini-vault,
.mini-champva {
  padding: 18px;
}

.wide-line {
  height: 34px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  border-radius: 8px;
}

.tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.tile-row span,
.mini-vault span {
  min-height: 46px;
  background: #edf2f7;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.list-lines {
  display: grid;
  gap: 8px;
}

.list-lines i,
.mini-champva p {
  display: block;
  height: 12px;
  margin: 0;
  background: #d8e0ea;
  border-radius: 999px;
}

.mini-vault {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-vault span {
  min-height: 60px;
}

.mini-champva {
  display: grid;
  gap: 12px;
}

.mini-champva strong {
  color: var(--accent);
  font-size: 1.4rem;
}

.mini-manual {
  min-height: 164px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 16px;
  background: #f8fafc;
}

.mini-manual img {
  width: min(220px, 80%);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 36, 58, 0.12);
}

.mini-manual span {
  color: var(--navy-dark);
  font-weight: 900;
  text-align: center;
}

.manual-section {
  padding: clamp(44px, 7vw, 82px) 0;
}

.manual-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.manual-poster {
  margin-top: 18px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.manual-poster img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.manual-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-steps article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 16px;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.manual-steps article span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.manual-steps h3 {
  margin: 0;
  font-size: 1rem;
}

.manual-steps p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.manual-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 16px;
}

.license-band {
  padding: clamp(48px, 7vw, 84px) 0;
  color: #eaf2fb;
  background:
    linear-gradient(rgba(23, 36, 58, 0.95), rgba(23, 36, 58, 0.95)),
    url("/assets/va-companion-mark-transparent.png") right 8% center / min(420px, 38vw) auto no-repeat,
    var(--navy-dark);
}

.license-band h2 {
  color: #ffffff;
}

.license-band p {
  color: #dce8f6;
}

.license-band code {
  color: #ffffff;
  font-weight: 800;
}

.license-band .support-note {
  margin-top: 14px;
  padding: 14px;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.license-band .support-note span {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 900;
}

.license-band .support-note p {
  margin: 0;
}

.license-band .support-note p + p {
  margin-top: 8px;
}

.license-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.license-mode-grid div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.license-mode-grid span {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-weight: 900;
}

.license-mode-grid p {
  margin: 0;
  font-size: 0.92rem;
}

.release-card {
  padding: 22px;
  color: var(--text);
  box-shadow: none;
}

.release-card p {
  margin: 14px 0;
}

.license-band .release-card span,
.license-band .release-card p,
.license-band .release-card .source-note {
  color: #40506a;
}

.license-band .release-card strong {
  color: var(--navy-dark);
}

.release-log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.release-track {
  max-height: min(760px, calc(100vh - 160px));
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 36, 58, 0.08);
  scrollbar-width: thin;
  scrollbar-color: #9db8d3 #eef4fa;
}

.release-track header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 18px;
  background: #eef4fa;
  border-bottom: 1px solid var(--border);
}

.release-track header span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.release-track h3,
.release-track h4 {
  margin: 0 0 8px;
  color: var(--navy-dark);
}

.release-track p,
.release-entry li {
  color: var(--muted);
}

.release-entry {
  padding: 18px;
}

.release-entry time {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.release-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.release-entry-meta span {
  display: inline-flex;
  padding: 3px 7px;
  color: #465c74;
  background: #eef4fa;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.release-entry ul {
  margin: 0;
  padding-left: 20px;
}

.release-entry li + li {
  margin-top: 8px;
}

.subpage-hero.news-hero {
  background:
    linear-gradient(90deg, rgba(239, 246, 252, 0.96), rgba(239, 246, 252, 0.86)),
    url("/assets/app-icon.png") right 8% center / 360px auto no-repeat;
  border-bottom: 1px solid var(--border);
}

.two-column-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: center;
  padding-top: 38px;
  padding-bottom: 38px;
}

.status-card,
.news-status-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 36, 63, 0.08);
}

.status-card span,
.news-status-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card strong,
.news-status-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-dark);
  font-size: 1.55rem;
}

.status-card p,
.news-status-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.news-workspace {
  background: var(--workspace);
  border-top: 1px solid var(--border);
}

.news-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) minmax(180px, 240px) auto auto;
  gap: 10px;
  align-items: end;
  margin: 22px 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 36, 63, 0.06);
}

.news-filter-bar label {
  display: grid;
  gap: 6px;
}

.news-filter-bar label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.news-source-strip article {
  padding: 12px;
  background: #f7fbff;
  border: 1px solid var(--border);
  border-left: 4px solid #2f6f9f;
  border-radius: 8px;
}

.news-source-strip span,
.news-card-meta span,
.news-card-footer span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-source-strip strong {
  display: block;
  margin: 5px 0;
  color: var(--navy-dark);
}

.news-source-strip small {
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card,
.news-empty-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 280px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 36, 63, 0.06);
}

.news-card.featured {
  border-left: 5px solid var(--gold);
}

.news-card-meta,
.news-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.news-card h3,
.news-empty-card h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 1.08rem;
  line-height: 1.3;
}

.news-card p,
.news-empty-card p {
  margin: 0;
  color: #40506a;
}

.news-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-card .tag-row span {
  padding: 4px 8px;
  color: #184265;
  background: #eef6fc;
  border: 1px solid #c9dced;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.subtle-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.compact-reading {
  max-width: 860px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.privacy-list.light p {
  color: var(--navy-dark);
  background: #ffffff;
  border-color: var(--border);
}

.logo-modal[hidden] {
  display: none;
}

.logo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.logo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 33, 0.72);
}

.logo-modal-dialog {
  position: relative;
  width: min(1160px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(300px, 0.9fr);
  gap: 1px;
  overflow: auto;
  background: var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.logo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.logo-modal-art,
.logo-modal-story {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
}

.logo-modal-art {
  display: grid;
  place-items: center;
}

.logo-modal-art img {
  width: min(520px, 100%);
}

.logo-modal-story {
  background: #fbfcfe;
}

.logo-modal-story h2 {
  margin-right: 74px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.logo-modal-story p {
  color: #40506a;
}

.site-footer {
  padding: 26px 0;
  color: #dce8f6;
  background: var(--navy-dark);
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
  max-width: 760px;
  font-size: 0.9rem;
}

.footer-inner a {
  color: #dce8f6;
  font-weight: 800;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: #ffffff;
}

.admin-shell {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 36, 63, 0.07);
}

.admin-header h1 {
  margin-bottom: 5px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.admin-login,
.admin-toolbar,
.admin-tabs,
.admin-session-card,
.admin-active-strip,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.06);
}

.admin-login {
  max-width: 760px;
  padding: clamp(16px, 2.5vw, 22px);
}

.admin-login .form-actions .message {
  flex-basis: 100%;
}

.admin-login label,
.admin-card label {
  display: grid;
  gap: 6px;
  color: var(--navy-dark);
  font-weight: 800;
}

#admin-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#admin-workspace > .admin-session-card {
  grid-column: 1 / -1;
}

#admin-workspace > .admin-module-overview {
  grid-column: 2;
}

#admin-workspace > .admin-tabs {
  grid-column: 1;
  grid-row: 2 / span 32;
}

#admin-workspace > .admin-active-strip,
#admin-workspace > .admin-panel {
  grid-column: 2;
}

.admin-tabs {
  position: sticky;
  top: 62px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  max-height: calc(100vh - 78px);
  overflow: auto;
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

.admin-module-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-module-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 13px 14px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border: 1px solid var(--border);
  border-left: 4px solid #8fb2cf;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 36, 63, 0.055);
  cursor: pointer;
}

.admin-module-card span {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-module-card strong {
  color: var(--navy-dark);
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-module-card:hover,
.admin-module-card:focus-visible,
.admin-module-card.active {
  background: #edf4fb;
  border-color: #8fb2cf;
  box-shadow: 0 10px 24px rgba(16, 36, 63, 0.09);
}

.admin-module-card.active {
  background: linear-gradient(180deg, #edf4fb 0%, #ffffff 100%);
  border-left-color: var(--navy);
}

.admin-module-card.active span,
.admin-module-card.active strong {
  color: var(--navy-dark);
}

.admin-tab-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid #dce6f1;
  border-radius: 8px;
}

.admin-tab-group-label {
  padding: 0 2px 4px;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-session-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
}

.admin-session-card h2 {
  margin: 0 0 4px;
  color: var(--navy-dark);
  font-size: 1rem;
}

.admin-active-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 13px 16px;
  background: #f8fbfe;
  border-left: 4px solid var(--navy);
}

.admin-active-strip h2 {
  margin: 0 0 3px;
  color: var(--navy-dark);
  font-size: 1.05rem;
}

.admin-tab {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px 8px 12px;
  color: var(--muted);
  background: #f6f9fc;
  border: 1px solid #e2ebf4;
  border-left: 3px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: left;
}

.admin-tab.active {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--gold);
  box-shadow: 0 6px 16px rgba(16, 36, 63, 0.16);
}

.admin-tab:hover,
.admin-tab:focus-visible {
  color: var(--navy-dark);
  background: #edf4fb;
  border-color: #a7bfd7;
}

.admin-tab.active:hover,
.admin-tab.active:focus-visible {
  color: #ffffff;
  background: var(--navy);
}

.admin-lock-button {
  width: 100%;
  justify-self: stretch;
  margin-left: 0;
}

.analytics-admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analytics-admin-layout .admin-card {
  box-shadow: none;
}

.analytics-admin-layout h3 {
  margin: 0 0 10px;
}

.analytics-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.analytics-row {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  background: #f8fbfe;
  border: 1px solid #dce6f1;
  border-radius: 6px;
}

.analytics-row strong {
  color: var(--navy-dark);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.analytics-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.analytics-list.recent {
  max-height: 430px;
}

.online-now-card {
  margin: 14px 0;
  background: #f8fbfe;
  border-left: 4px solid var(--accent);
  box-shadow: none;
}

.online-now-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.online-now-layout h4 {
  margin: 0 0 8px;
  color: var(--navy-dark);
  font-size: 0.88rem;
}

.analytics-list.compact {
  max-height: 260px;
}

.admin-panel {
  display: block;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fbfe;
}

.admin-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--navy-dark);
  font-weight: 800;
}

.admin-grid {
  display: grid;
  gap: 12px;
}

.admin-command-center {
  margin-bottom: 14px;
}

.admin-command-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.admin-command-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 144px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 36, 63, 0.06);
}

.admin-command-card.priority-card {
  border-left: 4px solid var(--navy);
}

.admin-command-card h2,
.admin-command-card h3 {
  margin: 0;
  color: var(--navy-dark);
}

.admin-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-mini-metrics div {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #eef4fa;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.admin-mini-metrics strong {
  color: var(--navy-dark);
  font-size: 1.2rem;
}

.admin-mini-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-actions.tight {
  gap: 7px;
  margin-top: 0;
}

.admin-stack {
  display: grid;
  gap: 12px;
}

.admin-stack.compact-stack {
  padding: 12px;
}

.admin-stack h3 {
  margin: 12px 0 0;
  color: var(--navy-dark);
  font-size: 1rem;
}

.admin-accordion {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.05);
}

.admin-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--navy-dark);
  font-weight: 950;
}

.admin-accordion summary span {
  padding: 4px 8px;
  color: var(--accent-dark);
  background: #edf4fb;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-accordion[open] summary {
  border-bottom: 1px solid var(--border);
}

.selected-member-card .admin-accordion {
  margin-top: 14px;
  box-shadow: none;
}

.admin-card {
  padding: 15px;
}

.admin-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-card h2 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.admin-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-inline-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: #f8fbfe;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.people-dedupe-card {
  border-left: 4px solid var(--steel);
}

.people-dedupe-card[data-people-dedupe-kind="shared-office"] {
  border-left-color: #168464;
}

.people-dedupe-card[data-people-dedupe-kind="exact-duplicate"],
.people-dedupe-card[data-people-dedupe-kind="member-link"] {
  border-left-color: #b7791f;
}

.people-dedupe-filter-bar {
  justify-content: flex-start;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.people-dedupe-row h3 {
  margin: 2px 0 4px;
  color: var(--navy-dark);
  font-size: 0.98rem;
  line-height: 1.25;
}

.people-dedupe-facts {
  margin-top: 8px;
}

.people-dedupe-actions {
  min-width: 170px;
  justify-content: flex-end;
}

.people-dedupe-rows {
  grid-template-columns: 1fr;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.compact-grid {
  gap: 8px;
  margin-top: 10px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-info-item {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.admin-info-item strong {
  color: var(--navy-dark);
  font-size: 0.88rem;
}

.admin-info-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.honors-parent-compare {
  margin: 12px 0;
}

.honors-parent-compare .admin-info-grid {
  padding-top: 10px;
}

.honors-parent-compare .admin-info-item.wide {
  grid-column: 1 / -1;
}

.data-hygiene-hero {
  border-left: 4px solid var(--accent);
}

.dedupe-candidate-card {
  border-left: 4px solid #b7791f;
}

.dedupe-source-list {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.dedupe-source-list p {
  margin: 0;
  padding: 9px 10px;
  color: #40506a;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.86rem;
}

.registered-user-card {
  border-left: 4px solid var(--accent);
}

.member-support-workspace {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.member-support-workspace > .selected-member-card,
.member-support-workspace > .member-empty-state {
  grid-column: 1;
}

.selected-member-card {
  border-left: 4px solid var(--navy);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.support-brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

#account-support-form label.wide {
  grid-column: 1 / -1;
  max-width: 780px;
}

.member-support-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.member-support-hero h2 {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.member-support-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  background: #edf4fb;
  border: 1px solid #bfd1e2;
  border-radius: 7px;
}

.selected-member-card .member-command-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.member-command-grid div {
  min-width: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid #2c6f9f;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.04);
}

.member-command-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.member-command-grid strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.88rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.member-command-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.member-status-grid,
.member-result-facts,
.member-empty-steps {
  display: grid;
  gap: 8px;
}

.member-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.member-status-grid div,
.member-result-facts div,
.member-empty-steps span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  background: #eef4fa;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.member-status-grid span,
.member-result-facts span {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.member-status-grid strong,
.member-result-facts strong {
  color: var(--navy-dark);
  font-size: 0.84rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.member-result-card {
  box-shadow: none;
}

.member-directory-card {
  border-left: 4px solid var(--accent);
}

.member-directory-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.member-directory-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--navy-dark);
  font-size: 0.86rem;
}

.member-directory-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  background: #e8f0f8;
  border-bottom: 1px solid #bfd1e2;
  text-align: left;
}

.member-directory-table th button {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  color: var(--navy-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  text-align: left;
}

.member-directory-table th button:hover,
.member-directory-table th button:focus-visible {
  background: #d9e7f4;
  outline: none;
}

.member-directory-activity-sort {
  min-width: 150px;
}

.member-directory-activity-sort button {
  min-height: 32px;
  padding: 7px 12px;
}

.member-directory-table td {
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid #e3edf6;
  background: #ffffff;
}

.member-directory-table tbody tr:nth-child(even) td {
  background: #f8fbfe;
}

.member-directory-table tbody tr:hover td {
  background: #eef5fb;
}

.member-directory-table td strong,
.member-directory-table td span {
  display: block;
}

.member-directory-table td strong {
  margin-bottom: 3px;
  font-weight: 950;
}

.member-directory-table td span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.member-directory-table td .badge {
  display: inline-flex;
  margin: 0 0 5px;
}

.member-directory-table th:nth-child(1),
.member-directory-table td:nth-child(1) {
  width: 17%;
}

.member-directory-table th:nth-child(2),
.member-directory-table td:nth-child(2) {
  width: 22%;
}

.member-directory-table th:nth-child(3),
.member-directory-table td:nth-child(3) {
  width: 10%;
}

.member-directory-table th:nth-child(4),
.member-directory-table td:nth-child(4) {
  width: 20%;
}

.member-directory-table th:nth-child(5),
.member-directory-table td:nth-child(5) {
  width: 18%;
}

.member-directory-table th:nth-child(6),
.member-directory-table td:nth-child(6) {
  width: 13%;
}

.member-directory-actions {
  white-space: normal;
}

.member-directory-actions .button {
  width: 100%;
  min-height: 34px;
  margin: 0 0 6px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.member-directory-empty {
  padding: 22px !important;
  color: var(--muted);
  text-align: center;
}

.member-result-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0 12px;
}

.member-empty-steps {
  margin-top: 12px;
}

.member-empty-steps span {
  color: var(--navy-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.support-side-panel {
  overflow: hidden;
}

.support-side-panel > .compact-stack {
  max-height: 520px;
  overflow: auto;
  padding-right: 8px;
}

.support-side-panel .admin-card {
  padding: 12px;
}

.support-side-panel .admin-actions {
  margin-top: 8px;
}

.audit-row-card {
  background: #fbfdff;
}

.member-empty-state {
  border-style: dashed;
  background: #f8fbfe;
}

.member-access-grid {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.badge-choice-field {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.badge-choice-field legend {
  padding: 0 4px;
  color: var(--navy-dark);
  font-weight: 900;
}

.badge-choice-field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.badge-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.badge-choice-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 8px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 850;
}

.badge-choice-grid input {
  width: 16px;
  min-height: 16px;
}

.room-management-panel {
  margin-bottom: 12px;
}

.room-management-form {
  padding: 14px;
}

.room-active-toggle {
  align-self: end;
}

.room-active-toggle input {
  width: 18px;
  min-height: 18px;
}

.room-management-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.room-management-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  color: var(--text);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}

.room-management-row .room-topic-icon {
  width: 36px;
}

.room-management-row:hover,
.room-management-row:focus-visible,
.room-management-row.active {
  background: #eef6fc;
  border-color: #8fb2cf;
}

.room-management-row strong,
.room-management-row small,
.room-management-row em {
  display: block;
}

.room-management-row strong {
  color: var(--navy-dark);
  font-size: 0.9rem;
}

.room-management-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.room-management-row em {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.admin-field-grid label.wide {
  grid-column: span 2;
}

.admin-field-grid label.full {
  grid-column: 1 / -1;
}

.admin-field-grid .full {
  grid-column: 1 / -1;
}

.site-settings-form {
  align-items: end;
}

.site-settings-form label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.site-settings-form .setting-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.setting-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.site-settings-form .setting-toggle input {
  width: 18px;
  min-height: 18px;
}

.site-settings-form .setting-toggle span {
  color: var(--navy-dark);
  font-weight: 900;
}

.content-editor-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: start;
}

.content-block-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.content-block-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px;
  color: var(--text);
  text-align: left;
  background: #f8fbfe;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.content-block-button:hover,
.content-block-button:focus-visible,
.content-block-button.active {
  border-color: #8fb2cf;
  background: #eef6fc;
}

.content-block-button span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-block-button strong {
  color: var(--navy-dark);
  font-size: 0.9rem;
}

.content-block-button small {
  color: var(--muted);
  font-weight: 700;
}

.admin-card code {
  padding: 2px 5px;
  color: var(--navy-dark);
  background: #edf4fb;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.import-card {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.import-run-card .source-link {
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--navy-dark);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.approved {
  color: #155e42;
  background: #e6f4ee;
  border-color: #b9dccc;
}

.badge.needs-verification,
.badge.running {
  color: #67510b;
  background: #f7f1dc;
  border-color: #dec988;
}

.badge.completed {
  color: #155e42;
  background: #e6f4ee;
  border-color: #b9dccc;
}

.badge.active {
  color: #155e42;
  background: #e6f4ee;
  border-color: #b9dccc;
}

.badge.applied {
  color: #155e42;
  background: #e6f4ee;
  border-color: #b9dccc;
}

.badge.rejected {
  color: #7b1d22;
  background: #f7e6e8;
  border-color: #e6c0c4;
}

.badge.revoked {
  color: #7b1d22;
  background: #f8e1e3;
  border-color: #efbec3;
}

.badge.failed {
  color: #7b1d22;
  background: #f8e1e3;
  border-color: #efbec3;
}

.release-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 12px;
  margin: 14px 0 16px;
}

.release-ops-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.release-readiness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.release-readiness-list span {
  padding: 5px 7px;
  color: var(--navy-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.69rem;
}

.release-readiness-list .ready {
  color: #155e42;
  background: #e6f4ee;
  border-color: #b9dccc;
}

.release-readiness-list .waiting {
  color: #67510b;
  background: #f7f1dc;
  border-color: #dec988;
}

.message {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 960px) {
  .app-frame {
    display: block;
  }

  .app-rail {
    display: grid;
    gap: 8px;
    z-index: 9;
    height: auto;
    padding: 8px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-rail::-webkit-scrollbar {
    display: none;
  }

  .app-rail-title {
    display: none;
  }

  .app-rail-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-rail-group::-webkit-scrollbar {
    display: none;
  }

  .app-rail-group > span {
    flex: 0 0 auto;
    padding: 0 2px;
  }

  .app-rail a,
  .app-rail button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-inner,
  .product-hero-inner,
  .extension-hero .product-hero-inner,
  .local-guide-hero .product-hero-inner,
  .tool-layout,
  .tool-layout.wide,
  .eob-layout,
  .submission-panel,
  .info-grid,
  .primary-tools-layout,
  .practice-workspace-head,
  .account-layout,
  .privacy-layout,
  .quick-links-layout,
  .product-band-layout,
  .license-layout,
  .product-boundary,
  .manual-layout,
  .tricare-source-panel,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-logo {
    width: min(250px, 72vw);
  }

  .tool-tabs,
  .source-grid,
  .knowledge-base-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-row {
    grid-template-columns: minmax(150px, 1fr) 92px;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: 1fr;
  }

  #admin-workspace {
    grid-template-columns: 1fr;
  }

  #admin-workspace > .admin-session-card,
  #admin-workspace > .admin-module-overview,
  #admin-workspace > .admin-tabs,
  #admin-workspace > .admin-active-strip,
  #admin-workspace > .admin-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-module-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tab-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .admin-tab {
    width: auto;
    text-align: center;
  }

  .admin-lock-button {
    width: 100%;
    justify-self: stretch;
  }

  .admin-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-support-workspace {
    grid-template-columns: 1fr;
  }

  .member-support-workspace > .selected-member-card,
  .member-support-workspace > .member-empty-state {
    grid-column: 1;
    grid-row: auto;
  }

  .member-status-grid,
  .member-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-download-main,
  .desktop-download-card .desktop-download-meta,
  .member-hero-card,
  .member-account-actions,
  .room-icon-picker {
    grid-template-columns: 1fr;
  }

  .member-fact-strip,
  .member-activity-dashboard .member-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-download-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .rating-row label:nth-child(3),
  .rating-row label:nth-child(4) {
    grid-column: span 1;
  }

  .remove-row {
    grid-column: 2;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .member-dashboard-grid,
  .license-help-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .admin-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-management-catalog {
    grid-template-columns: 1fr;
  }

  .room-management-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .room-management-row em {
    grid-column: 2;
  }

  .admin-toolbar .message {
    flex-basis: 100%;
  }

  .feature-grid,
  .screen-grid,
  .manual-steps,
  .launch-status-grid,
  .release-log-grid,
  .news-grid,
  .news-source-strip,
  .quick-link-cards,
  .primary-tools-grid,
  .task-grid,
  .release-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-hero,
  .news-filter-bar {
    grid-template-columns: 1fr;
  }

  .local-guide-points,
  .guide-points.compact {
    grid-template-columns: 1fr;
  }

  .tricare-source-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-guide-mark {
    justify-self: start;
  }

  .product-hero {
    background:
      linear-gradient(rgba(244, 247, 251, 0.94), rgba(244, 247, 251, 0.94)),
      url("/assets/va-companion-mark-transparent.png") center top / min(520px, 90vw) auto no-repeat,
      var(--background);
  }

  .exposure-hero {
    background:
      linear-gradient(135deg, rgba(34, 53, 84, 0.94), rgba(23, 36, 58, 0.9)),
      url("/assets/va-companion-mark-transparent.png") right 10% top 20px / min(380px, 80vw) auto no-repeat,
      var(--navy-dark);
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  .app-rail {
    display: grid;
    gap: 8px;
    position: sticky;
    top: 0;
    max-width: 100vw;
    padding: 8px 10px;
    overflow-x: auto;
    background: #f8fbff;
    box-shadow: 0 8px 20px rgba(16, 36, 63, 0.08);
  }

  [id] {
    scroll-margin-top: 154px;
  }

  .app-rail-group {
    gap: 5px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    scroll-snap-type: x proximity;
  }

  .app-rail-group + .app-rail-group {
    margin-top: 5px;
  }

  .app-rail-group > span {
    display: none;
  }

  .app-rail a,
  .app-rail button {
    justify-content: center;
    min-height: 44px;
    padding: 8px 7px;
    text-align: center;
    line-height: 1.15;
    scroll-snap-align: start;
  }

  .hero {
    background: var(--background);
  }

  .app-rail {
    top: 0;
  }

  .app-frame > main,
  .section-inner,
  .product-hero-inner,
  .extension-hero .product-hero-inner,
  .local-guide-hero .product-hero-inner,
  .subpage-frame .section-inner,
  .subpage-frame .product-hero-inner {
    width: min(100%, calc(100vw - 20px));
    max-width: min(100%, calc(100vw - 20px));
    min-width: 0;
  }

  .section-inner,
  .product-hero-inner,
  .extension-hero .product-hero-inner,
  .local-guide-hero .product-hero-inner,
  .subpage-frame .section-inner,
  .subpage-frame .product-hero-inner {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero-inner {
    width: min(100%, calc(100vw - 20px));
    max-width: min(100%, calc(100vw - 20px));
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px 0 22px;
  }

  .hero-logo {
    width: 82px;
  }

  .hero-copy-block {
    display: contents;
  }

  .hero-copy-block > .eyebrow,
  .hero-copy-block > h1,
  .hero-copy-block > .hero-copy {
    grid-column: 2;
  }

  .hero-copy-block,
  .hero-copy,
  .hero-actions,
  .hero-status-grid {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    max-width: min(100%, 36ch);
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .product-hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 7vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .release-card {
    width: 100%;
    max-width: 100%;
  }

  .release-card p {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .tool-tabs,
  .hero-status-grid,
  .form-row.two,
  .form-row.three,
  .metric-grid,
  .member-dashboard-metrics,
  .license-status-grid,
  .license-help-grid,
  .source-grid,
  .feature-grid,
  .screen-grid,
  .manual-steps,
  .launch-status-grid,
  .release-log-grid,
  .news-grid,
  .news-source-strip,
  .quick-link-cards,
  .forms-grid,
  .primary-tools-grid,
  .primary-tools-layout,
  .practice-workspace-head,
  .practice-feature-stats,
  .practice-mini-metrics,
  .task-grid,
  .local-guide-points,
  .guide-points.compact,
  .preview-shell,
  .preview-banner,
  .desktop-download-card,
  .account-path-grid,
  .screen-name-console,
  .member-hero-card,
  .member-account-actions,
  .member-fact-strip,
  .logo-modal-dialog,
  .preview-metrics,
  .license-mode-grid,
  .forum-layout,
  .desktop-download-main,
  .desktop-download-card .desktop-download-meta,
  .room-icon-picker,
  .knowledge-base-toolbar,
  .knowledge-base-scope-grid,
  .knowledge-base-editor-layout,
  .release-ops-grid,
  .analytics-admin-layout,
  .online-now-layout,
  .crisis-hero-inner,
  .crisis-action-grid,
  .crisis-decision-grid,
  .crisis-resource-grid,
  .crisis-workspace-grid,
  .crisis-local-resource-form,
  .crisis-guide-grid,
  .admin-module-overview,
  .member-command-grid,
  .member-status-grid,
  .member-result-facts,
  .vso-detail-grid {
    grid-template-columns: 1fr;
  }

  .news-filter-bar,
  .two-column-hero {
    grid-template-columns: 1fr;
  }

  .decision-strip,
  .decision-strip.four-step-strip,
  .vso-card-head {
    grid-template-columns: 1fr;
  }

  .vso-card-head {
    display: grid;
  }

  .news-card-meta,
  .news-card-footer {
    display: grid;
    justify-content: stretch;
  }

  .launch-status-actions .button {
    width: 100%;
  }

  .forum-room-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .room-topic-icon {
    width: 40px;
  }

  .forum-room-card .form-actions,
  .forum-thread-card .form-actions {
    gap: 7px;
  }

  .manual-steps article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .form-actions .button {
    width: 100%;
  }

  .hero-actions .button,
  .hero-actions a {
    width: 100%;
  }

  .tool-shortcut.desktop-upgrade {
    grid-column: span 1;
    background-size: 96px auto;
  }

  .tool-shortcut.desktop-upgrade strong,
  .tool-shortcut.desktop-upgrade small {
    max-width: 100%;
  }

  .section-heading,
  .primary-tools-panel,
  .practice-feature-panel,
  .tool-shortcut,
  .tool-form,
  .tool-output,
  .result-item,
  .source-note,
  .status-line {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .tool-form,
  .tool-output,
  .primary-tools-panel,
  .practice-feature-panel,
  .member-command-card,
  .local-guide-card,
  .release-card {
    border-radius: 7px;
  }

  .tool-form,
  .tool-output {
    padding: 14px;
  }

  .local-guide-mark {
    width: min(190px, 58vw);
    justify-self: center;
    margin-top: 6px;
  }

  .task-grid article {
    min-height: auto;
  }

  .rating-row {
    grid-template-columns: 1fr;
  }

  .remove-row {
    width: 100%;
    grid-column: auto;
  }

  .admin-header,
  .admin-card-header,
  .member-support-hero,
  .admin-inline-record,
  .admin-active-strip {
    display: grid;
  }

  .admin-inline-record {
    grid-template-columns: 1fr;
  }

  .admin-action-row {
    justify-content: stretch;
  }

  .admin-action-row .button {
    width: 100%;
  }

  .admin-command-grid,
  .admin-mini-metrics {
    grid-template-columns: 1fr;
  }

  .admin-module-card {
    min-height: 0;
  }

  .admin-tab-group {
    align-items: stretch;
  }

  .admin-tab-group-label {
    width: 100%;
  }

  .admin-tab {
    flex: 1 1 86px;
  }

  .admin-field-grid,
  .admin-field-grid label.wide,
  .admin-info-grid,
  .setting-toggle-grid {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }

  .badge-choice-grid {
    grid-template-columns: 1fr;
  }

  .room-management-form {
    padding: 12px;
  }

  .content-editor-layout {
    grid-template-columns: 1fr;
  }

  .preview-shell aside {
    display: none;
  }

  .product-actions .button,
  .product-band-actions .button {
    width: 100%;
  }

  .selected-exposure {
    grid-template-columns: 1fr;
  }

  .selected-exposure .button {
    width: 100%;
  }

  .tera-letter-output {
    min-height: 340px;
  }
}

@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-frame,
  .app-frame > main,
  .subpage-frame > main,
  .site-header,
  .app-rail,
  .hero,
  .product-hero,
  .primary-tools-band,
  .task-launcher,
  .tool-section,
  .account-band,
  .sources,
  .product-section {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .app-rail {
    padding-right: 8px;
    padding-left: 8px;
  }

  .app-rail-group {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .app-rail a,
  .app-rail button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-inner {
    width: min(100%, calc(100vw - 28px));
    max-width: min(100%, calc(100vw - 28px));
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .hero-logo {
    width: 72px;
  }

  .hero-copy-block {
    display: block;
    min-width: 0;
  }

  .hero-copy-block > .eyebrow,
  .hero-copy-block > h1,
  .hero-copy-block > .hero-copy {
    grid-column: auto;
  }

  .section-inner,
  .product-hero-inner,
  .subpage-frame .section-inner,
  .subpage-frame .product-hero-inner,
  .extension-hero .product-hero-inner,
  .local-guide-hero .product-hero-inner {
    width: min(100%, calc(100vw - 28px));
    max-width: min(100%, calc(100vw - 28px));
    padding-right: 0;
    padding-left: 0;
  }

  .hero-copy,
  .product-copy,
  .product-copy .hero-copy,
  .source-note,
  .local-guide-article p,
  .product-copy p,
  .section-heading p {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-actions .button,
  .product-actions a {
    grid-column: auto !important;
  }
}

@media (max-width: 430px) {
  .hero-logo {
    width: 66px;
  }

  .hero h1 {
    font-size: 1.62rem;
  }
}

@media (max-width: 620px) {
  .app-frame {
    display: block;
  }

  .app-frame > main,
  .subpage-frame > main,
  main {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-inner,
  .section-inner,
  .product-hero-inner,
  .subpage-frame .section-inner,
  .subpage-frame .product-hero-inner,
  .extension-hero .product-hero-inner,
  .local-guide-hero .product-hero-inner {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .product-actions,
  .product-band-actions,
  .launch-status-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .tricare-source-links {
    grid-template-columns: 1fr;
  }

  .hero-actions .button:first-child,
  .hero-actions a:first-child,
  .product-actions .button:first-child,
  .product-actions a:first-child,
  .product-band-actions .button:first-child,
  .product-band-actions a:first-child,
  .launch-status-actions .button:first-child,
  .form-actions .button:first-child {
    grid-column: auto;
  }

  .hero-actions .button,
  .hero-actions a,
  .product-actions .button,
  .product-actions a,
  .product-band-actions .button,
  .product-band-actions a,
  .launch-status-actions .button,
  .form-actions .button {
    max-width: 100%;
  }

  .primary-tools-layout,
  .tool-grid,
  .guide-grid,
  .local-guide-grid,
  .release-layout,
  .product-band-layout,
  .support-layout,
  .license-layout,
  .product-boundary {
    grid-template-columns: 1fr;
  }

  .primary-tools-panel,
  .practice-feature-panel,
  .tool-form,
  .tool-output,
  .account-card,
  .release-track,
  .release-card,
  .local-guide-article,
  .local-guide-card,
  .support-payment-card,
  .tool-shortcut,
  .result-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .app-frame > main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-inner,
  .section-inner,
  .product-hero-inner,
  .extension-hero .product-hero-inner,
  .local-guide-hero .product-hero-inner,
  .subpage-frame .section-inner,
  .subpage-frame .product-hero-inner {
    width: min(100%, calc(100vw - 14px));
    max-width: min(100%, calc(100vw - 14px));
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero-inner {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .tool-shortcut,
  .primary-tools-panel,
  .practice-feature-panel,
  .release-card,
  .guide-inline article,
  .local-guide-card,
  .product-section article {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 52px;
    padding: 9px 12px;
    border-bottom-color: #d7e1ec;
  }

  .brand {
    gap: 8px;
    font-size: 0.94rem;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .app-rail {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(248, 251, 255, 0.98);
    border-bottom: 1px solid #c7d6e6;
    box-shadow: 0 8px 16px rgba(16, 36, 63, 0.08);
    scrollbar-width: none;
  }

  .app-rail::-webkit-scrollbar {
    display: none;
  }

  .app-rail-group {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
  }

  .app-rail a,
  .app-rail button {
    min-height: 36px;
    max-width: 190px;
    padding: 7px 9px;
    font-size: 0.82rem;
    line-height: 1.12;
    white-space: nowrap;
    box-shadow: none;
  }

  .app-rail a[aria-current="page"],
  .app-rail button[aria-current="true"],
  .app-rail a.active,
  .app-rail button.active {
    box-shadow: 0 6px 14px rgba(16, 36, 63, 0.18);
  }

  [id] {
    scroll-margin-top: 76px;
  }

  .hero {
    border-bottom-color: #d4dfec;
  }

  .hero-inner {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0 18px;
  }

  .hero-logo {
    width: 62px;
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 5px;
    font-size: 0.68rem;
  }

  .hero h1 {
    margin-bottom: 6px;
    font-size: 1.82rem;
    line-height: 1.02;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 0.91rem;
    line-height: 1.38;
  }

  .hero-actions,
  .product-actions,
  .product-band-actions,
  .launch-status-actions,
  .form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-actions .button:first-child,
  .hero-actions a:first-child,
  .product-actions .button:first-child,
  .product-actions a:first-child,
  .product-band-actions .button:first-child,
  .product-band-actions a:first-child,
  .launch-status-actions .button:first-child,
  .form-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .hero-actions .button,
  .hero-actions a,
  .product-actions .button,
  .product-actions a,
  .product-band-actions .button,
  .product-band-actions a,
  .launch-status-actions .button,
  .form-actions .button {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    line-height: 1.15;
  }

  .product-hero {
    padding: 22px 0 26px;
    background: var(--background);
  }

  .subpage-frame .product-hero {
    padding: 20px 0 24px;
  }

  .product-hero-inner {
    gap: 12px;
  }

  .product-copy .hero-copy {
    margin-bottom: 12px;
  }

  .product-hero h1 {
    margin-bottom: 7px;
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .local-guide-mark {
    display: none;
  }

  .product-hero::after {
    height: 5px;
  }

  .hero-status-grid,
  .preview-metrics,
  .practice-feature-stats,
  .license-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .support-notes,
  .product-status-pills {
    gap: 6px;
  }

  .support-notes span,
  .product-status-pills span {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .primary-tools-band,
  .task-launcher,
  .tool-section,
  .account-band,
  .sources,
  .product-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .primary-tools-panel,
  .practice-feature-panel,
  .tool-form,
  .tool-output,
  .account-card,
  .release-track,
  .local-guide-article,
  .support-payment-card {
    padding: 12px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2,
  .primary-tools-panel h2,
  .practice-feature-panel h2 {
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .tool-shortcut,
  .result-item,
  .forum-room-card,
  .release-card,
  .local-guide-card {
    padding: 12px;
  }

  .tool-shortcut strong,
  .result-item strong {
    line-height: 1.15;
  }

  input,
  select,
  textarea {
    min-height: 42px;
  }
}

@media (max-width: 430px) {
  .app-rail a,
  .app-rail button {
    max-width: 172px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.8rem;
  }

  .hero-inner {
    grid-template-columns: 56px minmax(0, 1fr);
    padding-top: 14px;
  }

  .hero-logo {
    width: 56px;
  }

  .hero h1 {
    font-size: 1.68rem;
  }

  .hero-copy {
    font-size: 0.9rem;
  }

  .product-hero h1 {
    font-size: 1.62rem;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-rail {
    display: grid;
    gap: 4px;
    overflow-x: hidden;
  }

  .app-rail-group {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-rail-group::-webkit-scrollbar {
    display: none;
  }

  .app-rail a,
  .app-rail button {
    max-width: none;
    min-width: max-content;
  }

  .app-rail-support {
    margin-top: 0;
  }

  .app-rail-support a {
    min-width: 140px;
  }

  .button,
  .product-actions a,
  .product-actions .button,
  .hero-actions a,
  .hero-actions .button,
  .form-actions .button {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-copy,
  .hero-copy-block,
  .product-copy .hero-copy,
  .local-guide-page,
  .local-guide-article,
  .tool-form,
  .tool-output {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Enterprise phone hardening: final mobile guard layer. */
@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-frame {
    display: block;
  }

  .app-frame,
  .app-frame > main,
  .subpage-frame > main,
  main,
  .site-header,
  .app-rail,
  .hero,
  .product-hero,
  .primary-tools-band,
  .task-launcher,
  .tool-section,
  .account-band,
  .sources,
  .product-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .app-rail {
    padding-right: 8px;
    padding-left: 8px;
  }

  .app-rail-group {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .app-rail a,
  .app-rail button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-inner,
  .section-inner,
  .product-hero-inner,
  .subpage-frame .section-inner,
  .subpage-frame .product-hero-inner,
  .extension-hero .product-hero-inner,
  .local-guide-hero .product-hero-inner {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .hero-logo {
    width: 72px;
  }

  .hero-copy-block {
    display: block;
    min-width: 0;
  }

  .hero-copy-block > .eyebrow,
  .hero-copy-block > h1,
  .hero-copy-block > .hero-copy {
    grid-column: auto;
  }

  .hero-actions,
  .product-actions,
  .product-band-actions,
  .launch-status-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .button:first-child,
  .hero-actions a:first-child,
  .product-actions .button:first-child,
  .product-actions a:first-child,
  .product-band-actions .button:first-child,
  .product-band-actions a:first-child,
  .launch-status-actions .button:first-child,
  .form-actions .button:first-child {
    grid-column: auto;
  }

  .hero-actions .button,
  .hero-actions a,
  .product-actions .button,
  .product-actions a,
  .product-band-actions .button,
  .product-band-actions a,
  .launch-status-actions .button,
  .form-actions .button {
    max-width: 100%;
  }

  .primary-tools-layout,
  .tool-grid,
  .guide-grid,
  .local-guide-grid,
  .release-layout,
  .product-band-layout,
  .support-layout,
  .license-layout,
  .product-boundary {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .product-copy,
  .product-copy .hero-copy,
  .source-note,
  .local-guide-article p,
  .product-copy p,
  .section-heading p,
  .primary-tools-panel,
  .practice-feature-panel,
  .tool-form,
  .tool-output,
  .account-card,
  .release-track,
  .release-card,
  .local-guide-article,
  .local-guide-card,
  .support-payment-card,
  .tool-shortcut,
  .result-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .hero-logo {
    width: 66px;
  }

  .hero h1 {
    font-size: 1.62rem;
  }
}
