:root {
  color-scheme: light;
  --blue-900: #083678;
  --blue-700: #0b4fb3;
  --blue-600: #1764c4;
  --blue-100: #eaf2ff;
  --aqua-700: #087d85;
  --aqua-100: #dff6f5;
  --ink: #10243b;
  --muted: #52677b;
  --line: #d8e3ec;
  --surface: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(8, 54, 120, 0.12);
  --shell: min(1160px, calc(100% - 40px));
  --radius: 18px;

  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f4b740;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(216, 227, 236, 0.8);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-900);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 800;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #314a62;
  font-size: 0.94rem;
  font-weight: 650;
}

.primary-nav a { text-decoration: none; }
.primary-nav a:not(.button):hover { color: var(--blue-700); }
.primary-nav [aria-current="page"] { color: var(--blue-700); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  border: 2px solid var(--blue-700);
  border-radius: 11px;
  background: var(--blue-700);
  box-shadow: 0 8px 20px rgba(11, 79, 179, 0.18);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover { background: var(--blue-900); border-color: var(--blue-900); transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }

.text-link {
  color: var(--blue-700);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--aqua-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.08; letter-spacing: -0.035em; }
h1 { margin-bottom: 26px; font-size: clamp(2.65rem, 5.6vw, 4.9rem); font-weight: 780; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 760; }
h3 { margin-bottom: 8px; font-size: 1.3rem; font-weight: 740; }

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
  padding-block: 82px 92px;
}

.hero-copy { max-width: 670px; }
.hero-lede { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.quiet-proof { margin: 28px 0 0; color: #687b8d; font-size: 0.9rem; font-weight: 600; }

.path-preview {
  position: relative;
  padding: 30px;
  border: 1px solid #ccdae6;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.path-preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 36px -24px -28px 34px;
  border-radius: 26px;
  background: var(--aqua-100);
}

.preview-header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.preview-kicker { margin: 0 0 5px; color: var(--muted); font-size: 0.8rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.1em; }
.preview-header h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.025em; }
.status-dot { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: var(--aqua-100); color: #086b71; font-size: 0.76rem; font-weight: 800; white-space: nowrap; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-700); }

.path-steps { list-style: none; margin: 0; padding: 12px 0 6px; }
.path-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 15px; padding: 17px 0; }
.path-step:not(:last-child)::after { content: ""; position: absolute; top: 51px; bottom: -4px; left: 16px; width: 1px; background: var(--line); }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #bfceda; border-radius: 50%; background: var(--white); color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.path-step.is-current .step-number { border-color: var(--blue-700); background: var(--blue-700); color: var(--white); }
.path-step strong, .path-step small { display: block; }
.path-step strong { margin: 2px 0 3px; color: var(--ink); font-size: 0.98rem; }
.path-step small { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.preview-note { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface); }
.note-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--aqua-100); color: var(--aqua-700); font-weight: 900; }
.preview-note p { margin: 0; color: var(--ink); font-size: 0.88rem; line-height: 1.45; }
.preview-note span { color: var(--muted); }

.level-band { padding-block: 72px; border-block: 1px solid #dbe7ef; background: #f4f9fc; }
.level-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 72px; align-items: center; }
.level-layout h2 { max-width: 420px; margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.level-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.level-list li { min-height: 116px; display: flex; flex-direction: column; justify-content: center; padding: 12px 22px; border-left: 1px solid #cfdde8; }
.level-list strong { color: var(--blue-900); font-size: 1.22rem; }
.level-list span { margin-top: 4px; color: var(--muted); font-size: 0.79rem; line-height: 1.4; }

.approach { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(56px, 9vw, 130px); padding-block: 118px; }
.section-intro { max-width: 590px; }
.section-intro > p:last-child { color: var(--muted); font-size: 1.04rem; }
.approach-rows { border-top: 1px solid var(--line); }
.approach-rows article { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.approach-rows article p { margin: 0; color: var(--muted); }
.row-index { padding-top: 2px; color: var(--aqua-700); font-size: 0.77rem; font-weight: 850; letter-spacing: 0.1em; }

.clarity-section { padding-block: 104px; background: var(--blue-900); color: var(--white); }
.clarity-layout { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(56px, 10vw, 140px); align-items: start; }
.clarity-copy h2 { max-width: 500px; margin: 0; color: var(--white); }
.clarity-section .section-label { color: #74dde0; }
.principles { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.principles div { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 23px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.principles strong { color: var(--white); }
.principles span { color: #d5e2ee; }

.closing { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding-block: 92px; }
.closing h2 { max-width: 720px; margin: 0; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.closing .button { flex: 0 0 auto; }

.site-footer { padding-block: 54px; border-top: 1px solid var(--line); background: #f7fafc; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 0.7fr 0.35fr 1.1fr; gap: 56px; align-items: start; }
.brand-footer { margin-bottom: 12px; }
.site-footer p { margin: 0; font-size: 0.82rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.86rem; font-weight: 650; }
.site-footer nav a { text-underline-offset: 4px; }
.disclaimer { line-height: 1.65; }

.track-hero { display: grid; grid-template-columns: 1.1fr 0.74fr; gap: clamp(56px, 9vw, 120px); align-items: center; padding-block: 92px; }
.track-hero h1 { margin-bottom: 22px; }
.beta-callout { padding: 28px; border-left: 4px solid var(--aqua-700); background: var(--surface); }
.beta-callout h2 { margin: 22px 0 12px; font-size: 1.5rem; letter-spacing: -0.02em; }
.beta-callout p { margin: 0; color: var(--muted); }
.track-levels { padding-block: 82px; }
.section-intro.compact { max-width: 760px; margin-bottom: 42px; }
.section-intro.compact h2 { margin-bottom: 0; }
.level-definitions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid #cbdbe6; }
.level-definitions div { padding: 26px 22px; border-left: 1px solid #cbdbe6; }
.level-definitions div:first-child { border-left: 0; }
.level-definitions dt { color: var(--blue-900); font-size: 1.25rem; font-weight: 800; }
.level-definitions dd { margin: 5px 0 0; color: var(--muted); font-size: 0.84rem; }

.scope-section { padding-block: 112px; }
.scope-section .section-intro { margin-bottom: 46px; }
.scope-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
caption { padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.9rem; font-weight: 750; text-align: left; }
th, td { padding: 20px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #fbfdff; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody th { width: 23%; color: var(--ink); font-size: 0.95rem; }
tbody td { color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.availability { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.availability.available { background: var(--aqua-100); color: #086b71; }
.availability.planned { background: #edf1f5; color: #53687b; }

.track-principles { padding-block: 104px; background: var(--blue-900); color: var(--white); }
.track-principles h2 { max-width: 480px; color: var(--white); }
.track-principles .section-label { color: #74dde0; }
.split-principles { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 100px; }
.split-principles ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.split-principles li { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.split-principles strong, .split-principles span { display: block; }
.split-principles strong { color: var(--white); }
.split-principles span { margin-top: 4px; color: #d5e2ee; }
.legal-note { display: flex; gap: 18px; margin-block: 80px; padding: 26px 28px; border: 1px solid #cddde8; border-radius: var(--radius); background: #f7fbfd; }
.legal-note h2 { margin-bottom: 8px; font-size: 1.18rem; letter-spacing: -0.015em; }
.legal-note p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-grid-simple { grid-template-columns: 1fr auto; }

.error-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 80px; text-align: center; }
.error-main h1 { margin-bottom: 16px; font-size: clamp(2.65rem, 6vw, 4.8rem); }
.error-main > p:not(.section-label) { max-width: 520px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.route-line { width: min(420px, 80vw); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-bottom: 34px; color: var(--blue-700); }
.route-line span { height: 1px; background: var(--line); }
.route-line b { font-size: 0.8rem; letter-spacing: 0.14em; }
.error-footer { padding-block: 26px; text-align: center; }

@media (max-width: 900px) {
  .primary-nav > a:first-child { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 72px 90px; }
  .path-preview { max-width: 620px; }
  .level-layout, .approach, .clarity-layout, .track-hero, .split-principles { grid-template-columns: 1fr; }
  .level-layout, .approach, .clarity-layout, .track-hero, .split-principles { gap: 48px; }
  .level-list, .level-definitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-list li:nth-child(3), .level-definitions div:nth-child(3) { border-left: 0; }
  .level-list li:nth-child(n+3), .level-definitions div:nth-child(n+3) { border-top: 1px solid #cfdde8; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .disclaimer { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1160px); }
  html { scroll-behavior: auto; }
  .header-inner { min-height: 68px; }
  .primary-nav { gap: 12px; }
  .primary-nav > a:not(.button) { display: none; }
  .button-small { min-height: 38px; padding: 8px 12px; }
  .hero { padding-block: 58px 76px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .path-preview { padding: 22px; }
  .path-preview::before { inset: 24px -8px -15px 16px; }
  .preview-header { flex-direction: column; }
  .level-band, .track-levels { padding-block: 58px; }
  .level-list, .level-definitions { grid-template-columns: 1fr; }
  .level-list li, .level-definitions div { min-height: 92px; border-left: 0; border-top: 1px solid #cfdde8; }
  .level-list li:first-child, .level-definitions div:first-child { border-top: 0; }
  .approach, .scope-section { padding-block: 78px; }
  .clarity-section, .track-principles { padding-block: 76px; }
  .principles div { grid-template-columns: 1fr; gap: 5px; }
  .closing { align-items: stretch; flex-direction: column; padding-block: 72px; }
  .closing .button { width: 100%; }
  .footer-grid, .footer-grid-simple { grid-template-columns: 1fr; gap: 34px; }
  .track-hero { padding-block: 62px; }
  .legal-note { margin-block: 56px; padding: 22px; }
  .scope-table { overflow: visible; }
  .scope-table table { min-width: 0; }
  .scope-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .scope-table tbody { display: block; }
  .scope-table tbody tr {
    display: grid;
    gap: 7px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .scope-table tbody tr:last-child { border-bottom: 0; }
  .scope-table tbody th,
  .scope-table tbody td {
    width: auto;
    padding: 0;
    border: 0;
  }
  .scope-table tbody td:last-child { margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Certivo Admin: private, read-only operator workspace. */
.admin-page {
  min-height: 100vh;
  background: #eef4f8;
  overflow-x: hidden;
}

.admin-page [hidden] { display: none !important; }

.admin-header {
  min-height: 68px;
  border-bottom: 1px solid #cbd9e4;
  background: var(--white);
}

.admin-header-inner {
  width: min(1440px, calc(100% - 40px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.admin-environment,
.admin-read-only {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--aqua-100);
  color: #086b71;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.admin-main { min-height: calc(100vh - 68px); }

.admin-gate {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.admin-gate-card {
  width: min(100%, 520px);
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid #cfdae4;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(8, 54, 120, 0.1);
}

.admin-gate-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.admin-gate-card > p:not(.section-label) { color: var(--muted); }
.admin-gate-copy { margin: 0 0 26px; }
.admin-help { margin: 22px 0 0; font-size: 0.82rem; line-height: 1.55; }

.admin-spinner {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 26px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: admin-spin 900ms linear infinite;
}

@keyframes admin-spin { to { transform: rotate(360deg); } }

.admin-form { display: grid; gap: 20px; }
.admin-field { display: grid; gap: 7px; }
.admin-field label { color: var(--ink); font-size: 0.9rem; font-weight: 750; }
.admin-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #aebfcd;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-field input:focus-visible,
.admin-nav button:focus-visible,
.admin-text-button:focus-visible,
.admin-secondary-action:focus-visible,
.admin-primary-action:focus-visible {
  outline: 3px solid #f4b740;
  outline-offset: 3px;
}

.admin-primary-action { width: 100%; margin-top: 4px; }
.admin-primary-action:disabled,
.admin-text-button:disabled,
.admin-secondary-action:disabled { cursor: wait; opacity: 0.58; }

.admin-notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-left: 4px solid var(--aqua-700);
  border-radius: 8px;
  background: var(--aqua-100);
  color: #075d64;
  overflow-wrap: anywhere;
}

.admin-workspace {
  width: min(1440px, 100%);
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  margin-inline: auto;
}

.admin-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 34px 22px 24px;
  border-right: 1px solid #cbd9e4;
  background: #f8fbfd;
}

.admin-sidebar-heading { padding: 0 10px 26px; }
.admin-sidebar-heading .section-label { margin-bottom: 8px; }
.admin-sidebar-heading h1 { margin-bottom: 6px; font-size: 1.7rem; }
.admin-sidebar-heading > p:last-child { margin: 0; color: var(--muted); font-size: 0.82rem; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #314a62;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-nav button:hover { background: var(--blue-100); color: var(--blue-900); }
.admin-nav button.is-active { background: var(--blue-700); color: var(--white); }
.admin-sidebar-footer { margin-top: auto; padding: 26px 10px 0; border-top: 1px solid var(--line); }
.admin-sidebar-footer p { margin: 0 0 9px; color: var(--muted); font-size: 0.76rem; overflow-wrap: anywhere; }

.admin-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.admin-content { min-width: 0; padding: clamp(28px, 5vw, 64px); }
.admin-content-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.admin-content-header h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.15rem); }
.admin-content-header p:last-child { max-width: 680px; margin: 0; color: var(--muted); }
.admin-module { min-width: 0; }

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd9e4;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 54, 120, 0.06);
}

.admin-table { min-width: 720px; table-layout: auto; }
.admin-table caption { background: #f8fbfd; }
.admin-table th,
.admin-table td { padding: 16px 18px; overflow-wrap: anywhere; }
.admin-table thead th { color: #40576d; }
.admin-table tbody th,
.admin-table tbody td { color: #334d64; font-size: 0.87rem; }
.admin-empty-row td { padding-block: 34px; color: var(--muted); text-align: center; }

.admin-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9eef3;
  color: #455d72;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status[data-tone="positive"] { background: var(--aqua-100); color: #086b71; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.admin-metrics div { padding: 20px; border: 1px solid #cbd9e4; border-radius: 12px; background: var(--white); }
.admin-metrics dt { color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.admin-metrics dd { margin: 4px 0 0; color: var(--blue-900); font-size: 1.8rem; font-weight: 800; }

.admin-secondary-action {
  min-height: 40px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid #aebfcd;
  border-radius: 9px;
  background: var(--white);
  color: var(--blue-900);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 920px) {
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 20px; border-right: 0; border-bottom: 1px solid #cbd9e4; }
  .admin-sidebar-heading { padding: 0 4px 16px; }
  .admin-sidebar-heading h1 { font-size: 1.45rem; }
  .admin-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .admin-nav button { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .admin-sidebar-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 16px 4px 0; }
  .admin-sidebar-footer p { margin: 0; }
}

@media (max-width: 700px) {
  .admin-header-inner { width: min(100% - 28px, 1440px); }
  .admin-environment { max-width: 156px; white-space: normal; text-align: center; }
  .admin-content { padding: 28px 14px 48px; }
  .admin-content-header { flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-table-wrap { overflow: visible; }
  .admin-table { min-width: 0; }
  .admin-table caption { padding: 14px 16px; }
  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .admin-table tbody { display: block; }
  .admin-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
  }
  .admin-table tbody tr:last-child { border-bottom: 0; }
  .admin-table tbody td {
    display: grid;
    grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
    gap: 14px;
    padding: 0;
    border: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .admin-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }
  .admin-empty-row td { display: block; padding-block: 12px; text-align: left; }
  .admin-empty-row td::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-spinner { animation-duration: 0.01ms; }
}
