:root {
  --ink: #17201c;
  --ink-soft: #34413a;
  --muted: #66716b;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #f0f3f1;
  --line: #dfe5e1;
  --green: #147253;
  --green-dark: #0d513a;
  --green-bright: #d9f0e5;
  --amber: #b86418;
  --red: #a33a2d;
  --shadow: 0 8px 24px rgba(22, 35, 28, 0.06);
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
}
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h2 { margin-bottom: 0; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.03em; }
h3 { font-size: 1.08rem; line-height: 1.25; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 72px;
  padding: 0 max(4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 850; letter-spacing: -0.025em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
}
.header-side, .header-account, .header-nav { display: flex; align-items: center; }
.header-side { gap: 1.25rem; }
.header-account { gap: 0.65rem; font-size: 0.88rem; }
.header-nav { gap: 0.95rem; }
.header-nav a { padding: 0.4rem 0; color: var(--muted); font-size: 0.84rem; font-weight: 750; }
.header-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--green-bright); }
.role-pill, .count-chip {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  white-space: nowrap;
}
.page-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: clamp(3rem, 7vw, 5.8rem) 0 7rem; }
.standalone-shell { min-height: 100vh; }
.site-body .standalone-shell { width: min(100% - 32px, 1240px); margin: 0 auto; padding: 32px 0; display: grid; place-items: center; }
.presentation-body .standalone-shell { width: 100%; padding: 0; display: block; }

.muted { color: var(--muted); }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-page {
  width: min(860px, 100%);
  min-height: 520px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(380px, 1.12fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-product {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d7e2dc;
  background: #edf4f0;
}
.auth-product-mark {
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--green);
  font-size: 0.86rem;
  font-weight: 850;
}
.auth-product h1 { margin: 6px 0 12px; font-size: 1.8rem; line-height: 1.15; letter-spacing: -0.035em; }
.auth-product > p:not(.auth-boundary) { margin: 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.65; }
.auth-module-list { margin: 28px 0 0; padding: 0; display: grid; gap: 4px; list-style: none; }
.auth-module-list li { padding: 10px 0; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(23, 32, 28, 0.09); }
.auth-module-list li > span { display: grid; gap: 2px; }
.auth-module-list strong { font-size: 0.76rem; }
.auth-module-list small { color: var(--muted); font-size: 0.66rem; }
.auth-module-list .icon { color: var(--green); }
.auth-boundary { margin: auto 0 0; padding-top: 24px; color: var(--muted); font-size: 0.66rem; line-height: 1.5; }
.auth-panel { padding: 38px 36px; display: grid; align-content: center; gap: 17px; }
.auth-panel-heading h1, .auth-panel-heading h2 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.025em; }
.auth-panel-heading p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.55; }
.focused-kicker { color: var(--green); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.focused-footnote { margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.55; }
.focused-footnote strong { color: var(--ink-soft); }
.focused-page, .account-security-page {
  min-height: calc(100vh - 230px);
  display: grid;
  place-items: center;
}
.focused-card {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 36px);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.focused-card h1 { margin: 0; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.03em; }
.focused-card > p:not(.focused-footnote) { margin: -7px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.focused-icon { width: 28px; height: 28px; color: var(--green); }
.focused-icon.success-icon { color: var(--green); }
.focused-icon.error-icon { color: var(--red); }
.account-security-card { width: min(560px, 100%); }
.secret-reveal-card { width: min(680px, 100%); }
.verification-card { width: min(420px, 100%); }
.totp-input { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 1.2rem; letter-spacing: 0.32em; text-align: center; }
.centered-action { justify-self: center; }
.secret-endpoint { margin: 0; padding: 12px 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.secret-endpoint dt { color: var(--muted); font-size: 0.7rem; }
.secret-endpoint dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 0.72rem; text-align: right; }

label { display: grid; gap: 0.45rem; color: #3d463f; font-size: 0.8rem; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.82rem;
  border: 1px solid #c9cdc5;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 95, 66, 0.13);
}

.button {
  min-height: 42px;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 820;
  line-height: 1;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid rgba(21, 95, 66, 0.28);
  outline-offset: 3px;
}
.button:disabled { cursor: not-allowed; opacity: 0.42; transform: none; }
.button.primary { color: #0e291b; background: var(--green-bright); }
.button.primary:hover { background: #c9e8d9; }
.button.dark { color: white; background: var(--ink); }
.button.dark:hover { background: var(--green-dark); }
.button.ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.button.ghost:hover { border-color: #aeb4ac; background: rgba(255, 255, 255, 0.5); }
.button.secondary { border: 1px solid #cbd5d0; color: var(--ink); background: var(--surface); }
.button.secondary:hover { border-color: #97a79f; background: var(--surface-soft); }
.button.compact { min-height: 36px; padding: 0.55rem 0.75rem; font-size: 0.78rem; }
.button .icon { margin-right: 0.42rem; }
.button.small { min-height: 36px; padding: 0.5rem 0.7rem; font-size: 0.75rem; }
.button.wide { width: 100%; }

/* Shared console shell: a dense, route-oriented application frame. */
.console-body { color: var(--ink); background: #f6f8f7; }
.console-shell { min-height: 100vh; }
.console-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
}
.console-brand {
  min-height: 48px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}
.console-brand:hover { background: var(--surface-soft); }
.console-brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-size: 0.84rem;
  font-weight: 850;
}
.console-brand > span:last-child, .console-account-identity > span:last-child { min-width: 0; display: grid; }
.console-brand strong { font-size: 0.88rem; }
.console-brand small, .console-account small { margin-top: 1px; color: var(--muted); font-size: 0.68rem; font-weight: 500; }
.console-nav { margin-top: 22px; display: grid; gap: 4px; }
.console-nav a, .console-account > a, .console-account form button {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  color: #53605a;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
}
.console-nav a:hover, .console-account > a:hover, .console-account form button:hover { color: var(--ink); background: var(--surface-soft); }
.console-nav a[aria-current="page"] { color: #0d5d43; background: #e4f1eb; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.console-account { margin-top: auto; padding-top: 12px; display: grid; gap: 3px; border-top: 1px solid var(--line); }
.console-account-identity { min-height: 52px; padding: 5px 8px 10px; display: flex; align-items: center; gap: 10px; }
.console-account-identity strong { overflow: hidden; font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #0d5d43; background: #dcece4; font-size: 0.75rem; font-weight: 800; }
.console-account form { margin: 0; }
.console-account form button { cursor: pointer; }
.console-frame { min-height: 100vh; margin-left: 232px; }
.console-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 56px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}
.console-header-title { font-size: 0.86rem; font-weight: 750; }
.console-header-user { color: var(--muted); font-size: 0.78rem; }
.console-menu-button { display: none; }
.console-content { width: min(1480px, 100%); margin: 0 auto; padding: 28px 32px 64px; }
.console-page-header { min-height: 62px; margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.console-page-header h1 { margin: 0 0 5px; font-size: 1.65rem; line-height: 1.2; letter-spacing: -0.025em; }
.console-page-header p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.resource-count { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 0.72rem; white-space: nowrap; }
.inline-alert { margin-bottom: 16px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #ead4b7; border-radius: 8px; color: #704918; background: #fff8ec; font-size: 0.78rem; }
.inline-alert strong { flex: 0 0 auto; }
.onboarding-heading { min-height: 54px; }
.onboarding-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; }
.onboarding-guide, .onboarding-key-panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: white; }
.onboarding-endpoint { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr); align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.onboarding-endpoint h2, .onboarding-key-panel h2 { margin: 5px 0; font-size: 0.98rem; letter-spacing: -0.015em; }
.onboarding-endpoint p { margin: 0; color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.step-number { color: var(--green); font-size: 0.68rem; font-weight: 800; }
.copy-value-row { min-width: 0; padding: 8px 9px 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f8; }
.copy-value-row code { min-width: 0; overflow: hidden; color: var(--green-dark); font-size: 0.74rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-steps { min-width: 0; margin: 0; padding: 0; list-style: none; }
.onboarding-steps > li { padding: 24px 22px; border-bottom: 1px solid var(--line); }
.onboarding-steps > li:last-child { border-bottom: 0; }
.step-heading { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; }
.step-heading > span { width: 24px; height: 24px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-bright); font-size: 0.7rem; font-weight: 850; }
.step-heading h2 { margin: 1px 0 4px; font-size: 0.9rem; letter-spacing: -0.01em; }
.step-heading p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.code-block { min-width: 0; position: relative; overflow: hidden; border: 1px solid #d8dfdb; border-radius: 8px; background: #18231e; }
.code-block pre { margin: 0; padding: 15px 48px 15px 16px; overflow-x: auto; color: #e6f0ea; font-size: 0.72rem; line-height: 1.65; }
.code-block button { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #46534d; border-radius: 6px; color: #dce7e1; background: #26332d; cursor: pointer; }
.code-block button:hover { background: #34433c; }
.code-block button .icon { width: 15px; height: 15px; }
.sdk-example { margin-top: 13px; }
.sdk-example summary { cursor: pointer; color: var(--green-dark); font-size: 0.73rem; font-weight: 750; }
.sdk-example[open] summary { margin-bottom: 10px; }
.onboarding-key-panel { position: sticky; top: 76px; padding: 18px; display: grid; gap: 16px; }
.onboarding-key-select { min-width: 0; padding: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.onboarding-key-select label { grid-column: 1 / -1; }
.onboarding-key-select select { min-width: 0; }
.onboarding-key-summary { margin: 0; }
.onboarding-key-summary div { padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0ee; }
.onboarding-key-summary dt { color: var(--muted); font-size: 0.7rem; }
.onboarding-key-summary dd { margin: 0; font-size: 0.74rem; font-weight: 700; text-align: right; }
.onboarding-key-panel > p { margin: -5px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.compact-empty-state { padding: 16px 0 4px; border-top: 1px solid var(--line); }
.compact-empty-state strong { font-size: 0.82rem; }
.compact-empty-state p { margin: 7px 0 15px; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.field-caption { color: var(--muted); font-size: 0.68rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.resource-table-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.table-toolbar { min-height: 64px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.table-toolbar h2 { margin: 0 0 3px; font-size: 0.92rem; letter-spacing: -0.01em; }
.table-toolbar p { margin: 0; color: var(--muted); font-size: 0.72rem; }
.table-scroll { overflow-x: auto; }
.resource-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 0.76rem; }
.resource-table th { padding: 10px 14px; color: #65716b; background: #f7f9f8; font-size: 0.66rem; font-weight: 750; text-align: left; text-transform: none; letter-spacing: 0.02em; }
.resource-table td { padding: 13px 14px; border-top: 1px solid #edf0ee; vertical-align: middle; }
.resource-table tbody tr:hover { background: #fafcfb; }
.resource-table tbody tr:target { scroll-margin-top: 76px; background: #eef8f3; box-shadow: inset 3px 0 var(--green); }
.resource-table td strong { display: block; font-size: 0.78rem; }
.resource-table td small { margin-top: 3px; display: block; color: var(--muted); font-size: 0.66rem; line-height: 1.4; }
.key-mobile-meta { display: none; }
.key-mask { color: #4c5b54; font-size: 0.72rem; }
.actions-column { width: 172px; }
.resource-actions { display: flex; align-items: center; gap: 10px; }
.resource-actions form { margin: 0; }
.text-action { padding: 0; border: 0; color: #0f6b4d; background: transparent; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
.text-action:hover { color: #093f2e; text-decoration: underline; text-underline-offset: 3px; }
.console-empty-state { min-height: 280px; padding: 48px 24px; display: grid; place-items: center; align-content: center; border: 1px dashed #cbd4cf; border-radius: 9px; color: var(--muted); background: white; text-align: center; }
.console-empty-state h2 { margin: 10px 0 6px; color: var(--ink); font-size: 1rem; }
.console-empty-state p { max-width: 420px; margin: 0 0 18px; font-size: 0.78rem; line-height: 1.55; }
.empty-state-icon { width: 28px; height: 28px; color: #7b8881; }
.console-overlay { display: none; }
.console-back-link { margin-bottom: 14px; display: inline-flex; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.console-back-link:hover { color: var(--ink); }
.settings-heading { min-height: 50px; }
.inline-alert.error { border-color: #e7c6c1; color: #7d2e24; background: #fff4f2; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 20px; }
.settings-form, .policy-panel { border: 1px solid var(--line); border-radius: 9px; background: white; }
.settings-form { overflow: hidden; }
.settings-section { padding: 22px; border-bottom: 1px solid var(--line); }
.settings-section-heading { margin-bottom: 16px; }
.settings-section-heading h2 { margin: 0 0 4px; font-size: 0.92rem; letter-spacing: -0.01em; }
.settings-section-heading p { margin: 0; color: var(--muted); font-size: 0.73rem; line-height: 1.5; }
.settings-fields { display: grid; gap: 14px; }
.two-column-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-fields textarea { min-height: 132px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.78rem; line-height: 1.5; }
.group-choice-list { min-width: 0; padding: 0; display: grid; gap: 8px; border: 0; }
.group-choice {
  min-height: 66px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}
.group-choice:hover { border-color: #a9b8b0; background: #fbfdfc; }
.group-choice:has(input:checked) { border-color: #72a38e; box-shadow: inset 3px 0 var(--green); background: #f7fbf9; }
.group-choice input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--green); }
.group-choice > span { display: grid; gap: 3px; }
.group-choice strong { font-size: 0.8rem; }
.group-choice small { color: var(--muted); font-size: 0.7rem; font-weight: 500; line-height: 1.4; }
.group-choice code { color: var(--muted); font-size: 0.7rem; font-weight: 500; }
.group-choice-list:disabled .group-choice { cursor: default; opacity: 0.65; }
.field-warning { margin: 10px 0 0; color: var(--amber); font-size: 0.72rem; line-height: 1.5; }
.advanced-settings { padding: 0; }
.advanced-settings > summary { min-height: 66px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.advanced-settings > summary::-webkit-details-marker { display: none; }
.advanced-settings > summary > span:first-child { display: grid; gap: 3px; }
.advanced-settings > summary strong { font-size: 0.82rem; }
.advanced-settings > summary small, .advanced-settings > summary > span:last-child { color: var(--muted); font-size: 0.69rem; font-weight: 500; }
.advanced-settings[open] > summary { border-bottom: 1px solid var(--line); }
.advanced-settings[open] > summary > span:last-child { font-size: 0; }
.advanced-settings[open] > summary > span:last-child::after { content: "收起"; font-size: 0.69rem; }
.advanced-settings-content { padding: 22px; }
.settings-submit-row { min-height: 70px; padding: 14px 22px; display: flex; align-items: center; gap: 14px; }
.settings-submit-row span { color: var(--muted); font-size: 0.72rem; }
.policy-panel { position: sticky; top: 76px; padding: 18px; }
.policy-list { margin: 0; border-top: 1px solid var(--line); }
.policy-list div { padding: 11px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0ee; }
.policy-list dt { color: var(--muted); font-size: 0.72rem; }
.policy-list dd { margin: 0; font-size: 0.75rem; font-weight: 700; text-align: right; }
.policy-note { margin: 14px 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }

/* Admin console: resource routes and the live activity workspace. */
.phase-live { color: #0d5d43; background: #d9f3df; }
.phase-correction { color: #725019; background: #f5e6c3; }
.phase-scheduled { color: #285676; background: #dcebf5; }
.phase-expired, .phase-closed { color: #59605a; background: #e2e4df; }
.admin-activity-table { min-width: 880px; }
.admin-mobile-meta { display: none; }
.admin-form { width: min(900px, 100%); }
.admin-form label > small { color: var(--muted); font-size: 0.68rem; font-weight: 500; line-height: 1.45; }
.field-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.activity-detail-heading { min-height: 54px; }
.activity-live-shell { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.activity-live-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.activity-live-summary > div { min-height: 106px; padding: 16px 18px; display: grid; align-content: start; border-right: 1px solid var(--line); }
.activity-live-summary > div:last-child { border-right: 0; }
.activity-live-summary span { color: var(--muted); font-size: 0.7rem; }
.activity-live-summary strong { margin-top: 8px; font-size: 1.5rem; line-height: 1; letter-spacing: -0.035em; }
.activity-live-summary small { margin-top: 7px; color: var(--muted); font-size: 0.66rem; }
.live-refresh-status { margin: 0; padding: 9px 18px; border-top: 1px solid var(--line); color: var(--muted); background: #fafcfb; font-size: 0.68rem; }
.activity-control-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 16px; }
.compact-admin-table { min-width: 620px; }
.activity-operations { display: grid; gap: 12px; }
.operation-panel { padding: 16px; display: grid; gap: 14px; box-shadow: none; }
.operation-panel .stack-form { padding-top: 0; border-top: 0; }
.operation-feedback { min-height: 1rem; margin: -5px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.4; }
.danger-panel { border-color: #ead4d0; }
.danger-panel h2, .admin-danger-zone h2 { color: #7d2e24; }
.admin-entry-grid { margin-bottom: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-entry-panel { box-shadow: none; }
.admin-entry-panel > summary { min-height: 64px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.admin-entry-panel > summary::-webkit-details-marker { display: none; }
.admin-entry-panel > summary > span:first-child { display: grid; gap: 3px; }
.admin-entry-panel > summary strong { font-size: 0.8rem; }
.admin-entry-panel > summary small, .admin-entry-panel > summary > span:last-child { color: var(--muted); font-size: 0.68rem; }
.admin-entry-panel[open] > summary { border-bottom: 1px solid var(--line); }
.admin-entry-panel[open] > summary > span:last-child { font-size: 0; }
.admin-entry-panel[open] > summary > span:last-child::after { content: "收起"; font-size: 0.68rem; }
.admin-entry-panel > form { padding: 15px; border-top: 0; }
.admin-entry-panel > form p { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.admin-filter-toolbar { gap: 18px; }
.resource-filter { display: grid; grid-template-columns: minmax(170px, 240px) 140px auto; gap: 8px; }
.resource-filter input, .resource-filter select { min-height: 36px; padding: 0.5rem 0.65rem; font-size: 0.74rem; }
.member-admin-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.member-admin-summary > div { min-height: 82px; padding: 15px 16px; display: grid; align-content: center; gap: 6px; border-right: 1px solid var(--line); }
.member-admin-summary > div:last-child { border-right: 0; }
.member-admin-summary span { color: var(--muted); font-size: 0.68rem; }
.member-admin-summary strong { font-size: 0.88rem; }
.preparation-form { margin-bottom: 16px; }
.admin-danger-zone { width: min(900px, 100%); margin-top: 16px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #ead4d0; border-radius: 9px; background: #fffafa; }
.admin-danger-zone h2 { margin: 0 0 4px; font-size: 0.9rem; }
.admin-danger-zone p { margin: 0; color: var(--muted); font-size: 0.72rem; }
.filter-tabs { width: fit-content; margin-bottom: 16px; padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.filter-tabs a { padding: 8px 12px; border-radius: 6px; color: var(--muted); font-size: 0.74rem; font-weight: 750; }
.filter-tabs a[aria-current="page"] { color: var(--green-dark); background: white; box-shadow: 0 1px 2px rgba(17, 35, 25, 0.08); }
.admin-rewards-table { min-width: 940px; }
.audit-table { min-width: 980px; }
.audit-table code { overflow-wrap: anywhere; word-break: break-word; }
.audit-details summary { cursor: pointer; color: var(--green-dark); font-weight: 750; }
.audit-details pre { max-width: 360px; margin: 8px 0 0; padding: 10px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: #f7f9f8; font-size: 0.64rem; line-height: 1.45; }

/* Privacy-safe, operator-only projection surface. */
.presentation-body { color: var(--ink); background: #eef3f0; }
.presentation-shell { height: 100vh; min-height: 0; padding: clamp(28px, 4vw, 64px); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(24px, 4vh, 52px); overflow: hidden; }
.presentation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.presentation-header > div > span { color: var(--green); font-size: clamp(0.8rem, 1vw, 1.1rem); font-weight: 800; letter-spacing: 0.08em; }
.presentation-header h1 { margin: 8px 0 10px; font-size: clamp(2.2rem, 4vw, 4.8rem); line-height: 1; }
.presentation-header p { margin: 0; color: var(--muted); font-size: clamp(0.85rem, 1.2vw, 1.15rem); }
.presentation-fullscreen { min-height: 42px; padding: 0 16px; border: 1px solid #c4cec9; border-radius: 8px; color: var(--ink); background: white; cursor: pointer; font-weight: 750; }
.presentation-grid { min-height: 0; display: grid; grid-template-columns: minmax(420px, 1fr) minmax(300px, 0.68fr); align-items: stretch; gap: clamp(24px, 4vw, 64px); }
.presentation-qr-panel, .presentation-stats { min-height: 0; border: 1px solid var(--line); border-radius: 16px; background: white; }
.presentation-qr-panel { padding: clamp(18px, 2vw, 30px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.presentation-phase { min-height: 34px; }
.presentation-qr { min-height: 0; display: grid; place-items: center; }
.presentation-qr > * { grid-area: 1 / 1; }
.presentation-qr img { width: min(52vh, 100%); max-height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-blocking-message { width: min(420px, 90%); padding: 28px; display: grid; gap: 8px; border: 1px solid #e1c9c4; border-radius: 12px; color: #7d2e24; background: #fff6f4; text-align: center; }
.qr-blocking-message strong { font-size: clamp(1rem, 1.5vw, 1.35rem); }
.qr-blocking-message span { color: var(--muted); font-size: 0.82rem; }
.presentation-refresh { margin: 12px 0 0; color: var(--muted); font-size: 0.72rem; text-align: center; }
.presentation-stats { padding: clamp(28px, 4vw, 64px); display: grid; place-items: center; align-content: center; text-align: center; }
.presentation-stats > span { color: var(--muted); font-size: clamp(0.9rem, 1.2vw, 1.2rem); }
.presentation-stats > strong { margin-top: 14px; font-size: clamp(5rem, 12vw, 11rem); line-height: 0.82; letter-spacing: -0.07em; }
.presentation-stats > small { margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.5rem); }
.presentation-stats > div { width: 100%; margin-top: clamp(28px, 5vh, 56px); padding-top: clamp(24px, 4vh, 40px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.presentation-stats > div span { color: var(--muted); font-size: clamp(0.85rem, 1.1vw, 1.05rem); }
.presentation-stats > div b { font-size: clamp(1.2rem, 2vw, 2rem); }

.flash-stack { position: fixed; z-index: 40; top: 84px; right: 4vw; width: min(430px, 90vw); display: grid; gap: 0.55rem; }
.flash { padding: 0.9rem 1rem; border-left: 4px solid var(--green); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.flash.error { border-left-color: var(--red); }
.flash.warning { border-left-color: var(--amber); }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.stack-form { display: grid; gap: 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.status {
  width: fit-content;
  padding: 0.28rem 0.56rem;
  display: inline-flex;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #e8e9e4;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}
.status-applied, .status-open, .status-active { color: #184c37; background: #d9f3df; }
.status-available { color: #3d5013; background: #e5f7ae; }
.status-failed { color: #7d2e24; background: #f5d7d2; }
.status-pending { color: #725019; background: #f5e6c3; }
.status-expired, .status-closed, .status-inactive, .status-revoked, .status-disabled { color: #59605a; background: #e2e4df; }
.status-provisioning, .status-updating, .status-revoking, .status-delivering { color: #725019; background: #f5e6c3; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th { color: var(--muted); background: var(--surface-soft); font-size: 0.65rem; font-weight: 820; text-align: left; text-transform: uppercase; letter-spacing: 0.1em; }
th, td { padding: 0.88rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(201, 244, 91, 0.06); }
td small { margin-top: 0.25rem; display: block; color: var(--muted); font-size: 0.69rem; line-height: 1.45; }
.error-copy { max-width: 340px; color: var(--red); }
.empty-cell { padding: 2rem; color: var(--muted); text-align: center; }
.row-actions { display: flex; align-items: center; gap: 0.45rem; }

.row-menu { position: relative; }
.row-menu > summary {
  padding: 0.55rem 0.68rem;
  cursor: pointer;
  list-style-position: inside;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 780;
  white-space: nowrap;
}
.row-menu-panel { min-width: 240px; margin-top: 0.6rem; padding: 0.8rem; display: grid; gap: 0.65rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.danger-menu > summary { color: var(--red); }

.error-page { min-height: 60vh; }
.secret-value { margin: 1.2rem 0; padding: 1rem; overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); font-size: 0.88rem; }
.usage-page-heading { min-height: 50px; }
.usage-page-heading p strong { color: var(--ink); }
.usage-toolbar { min-height: 62px; margin-bottom: 16px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.usage-key-filter { min-width: 0; display: grid; grid-template-columns: auto minmax(220px, 360px) auto; align-items: center; gap: 9px; }
.usage-key-filter > label, .usage-key-identity > span { color: var(--muted); font-size: 0.68rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.usage-key-filter select { min-height: 36px; padding: 0.45rem 2rem 0.45rem 0.7rem; font-size: 0.76rem; }
.usage-key-identity { display: grid; gap: 2px; }
.usage-key-identity strong { font-size: 0.8rem; }
.range-switch { padding: 0.25rem; display: flex; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.range-switch a { padding: 0.5rem 0.7rem; border-radius: 7px; color: var(--muted); font-size: 0.73rem; font-weight: 780; }
.range-switch a[aria-current="page"] { color: #0d5d43; background: white; box-shadow: 0 1px 2px rgba(17, 35, 25, 0.08); }
.usage-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.usage-summary-grid.period-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage-summary-grid article { min-height: 104px; padding: 15px 16px; display: grid; align-content: start; border: 1px solid var(--line); border-radius: 9px; background: white; }
.usage-summary-grid article > span { color: var(--muted); font-size: 0.7rem; }
.usage-summary-grid article > strong { margin-top: 9px; overflow-wrap: anywhere; font-size: 1.42rem; line-height: 1; letter-spacing: -0.035em; }
.usage-summary-grid article > small { margin-top: 7px; color: var(--muted); font-size: 0.66rem; }
.usage-surface { margin-top: 16px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.usage-section-heading { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.usage-section-heading h2 { margin: 0 0 4px; font-size: 0.94rem; letter-spacing: -0.01em; }
.usage-section-heading p, .usage-section-heading > span { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.quota-row { margin-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.quota-row > div { display: grid; gap: 4px; }
.quota-row > div strong, .rate-limit-row strong { font-size: 0.78rem; }
.quota-row span, .rate-limit-row span { color: var(--muted); font-size: 0.68rem; }
.quota-row > strong { font-size: 0.84rem; }
.usage-surface progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: var(--surface-soft); }
.usage-surface progress::-webkit-progress-bar { border-radius: 999px; background: var(--surface-soft); }
.usage-surface progress::-webkit-progress-value { border-radius: 999px; background: var(--green); }
.usage-surface progress::-moz-progress-bar { border-radius: 999px; background: var(--green); }
.rate-limit-list { margin-top: 16px; border-top: 1px solid var(--line); }
.rate-limit-row { min-height: 58px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0ee; }
.rate-limit-row:last-child { border-bottom: 0; }
.rate-limit-row > div { display: grid; gap: 3px; }
.rate-limit-row > div:last-child { text-align: right; }
.usage-chart-scroll { overflow-x: auto; }
.usage-chart-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.usage-chart-scale { padding: 2px 0 8px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 0.62rem; }
.usage-trend-chart { width: 100%; min-width: 620px; height: 150px; display: block; }
.usage-trend-chart line { stroke: #dbe2de; stroke-width: 1; }
.usage-trend-chart rect { fill: #4d9a79; rx: 2px; }
.usage-chart-axis { margin: 5px 0 0 52px; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.65rem; }
.usage-details { margin: 16px -18px -18px; border-top: 1px solid var(--line); }
.usage-details > summary { padding: 13px 18px; cursor: pointer; font-size: 0.74rem; font-weight: 750; }
.usage-details[open] > summary { border-bottom: 1px solid var(--line); }
.usage-details:not([open]) > .table-scroll { display: none; }
.usage-table { min-width: 760px; }
.usage-empty-inline { min-height: 110px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.usage-empty-inline strong { color: var(--ink); font-size: 0.82rem; }
.usage-empty-inline span { margin-top: 4px; font-size: 0.7rem; }
.usage-unavailable { min-height: 250px; padding: 36px; display: grid; place-items: center; align-content: center; border: 1px dashed #c7d1cc; border-radius: 9px; background: white; text-align: center; }
.usage-unavailable h2 { margin: 0 0 7px; font-size: 1rem; }
.usage-unavailable p { max-width: 480px; margin: 0 0 16px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }

.checkin-flow-card { width: min(560px, 100%); }
.checkin-flow-card.invalid { width: min(460px, 100%); }
.checkin-details { margin: 2px 0 0; border-top: 1px solid var(--line); }
.checkin-details div { padding: 10px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); font-size: 0.75rem; text-align: left; }
.checkin-details dt { color: var(--muted); }
.checkin-details dd { margin: 0; text-align: right; font-weight: 700; }
.accent-value { color: var(--green); font-size: 0.9rem; }
.checkin-button { padding: 0.9rem; }

@media (max-width: 1180px) {
  .settings-layout { grid-template-columns: 1fr; }
  .policy-panel { position: static; }
  .activity-control-grid { grid-template-columns: 1fr; }
  .activity-operations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; }
  .onboarding-layout { grid-template-columns: 1fr; }
  .onboarding-key-panel { position: static; grid-row: 1; }
  .auth-product { border-right: 0; border-bottom: 1px solid #d7e2dc; }
  .auth-boundary { margin-top: 24px; }
  .presentation-grid { grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.6fr); gap: 20px; }
}

@media (max-width: 1080px) {
  .console-sidebar { transform: translateX(-100%); transition: transform 180ms ease; }
  .console-shell.sidebar-open .console-sidebar { transform: translateX(0); }
  .console-frame { margin-left: 0; }
  .console-header { padding: 0 20px; }
  .console-menu-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--ink); background: transparent; cursor: pointer; }
  .console-menu-button:hover { background: var(--surface-soft); }
  .console-shell.sidebar-open .console-overlay { position: fixed; z-index: 40; inset: 0; display: block; border: 0; background: rgba(16, 25, 20, 0.38); }
  .console-content { padding: 24px 24px 56px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 64px; padding: 0 16px; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 30px; height: 30px; }
  .header-side { gap: 0.55rem; }
  .header-nav, .account-name { display: none; }
  .header-account { gap: 0.45rem; }
  .role-pill { display: none; }
  .page-shell { width: min(100% - 32px, 1240px); padding-top: 2.4rem; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .auth-page { min-height: 0; }
  .auth-product { display: none; }
  .auth-panel { padding: 26px 22px; }
  .focused-page, .account-security-page { min-height: calc(100vh - 175px); }
  .focused-card { padding: 22px 18px; }
  .secret-endpoint { grid-template-columns: 1fr; gap: 5px; }
  .secret-endpoint dd { text-align: left; }
  .field-pair { grid-template-columns: 1fr; }
  .field-triple, .admin-entry-grid, .activity-operations { grid-template-columns: 1fr; }
  .row-actions { flex-wrap: wrap; }
  .usage-toolbar { align-items: stretch; flex-direction: column; }
  .usage-key-filter { grid-template-columns: 1fr auto; }
  .usage-key-filter > label { grid-column: 1 / -1; }
  .range-switch { width: 100%; }
  .range-switch a { flex: 1; text-align: center; }
  .usage-summary-grid article { min-height: 96px; padding: 13px; }
  .usage-summary-grid.period-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-summary-grid.period-summary article:first-child { grid-column: 1 / -1; }
  .usage-summary-grid article > strong { font-size: 1.2rem; }
  .usage-surface { padding: 16px; }
  .quota-row, .rate-limit-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rate-limit-row > div:last-child { text-align: left; }
  .usage-details { margin-right: -16px; margin-bottom: -16px; margin-left: -16px; }
  th, td { padding: 0.75rem 0.8rem; }
  .console-header { padding: 0 14px; }
  .console-header-user { display: none; }
  .console-content { padding: 20px 16px 48px; }
  .console-page-header { min-height: 0; margin-bottom: 18px; align-items: flex-start; }
  .console-page-header h1 { font-size: 1.38rem; }
  .console-page-header > .button { flex: 0 0 auto; white-space: nowrap; }
  .admin-filter-toolbar { align-items: stretch; flex-direction: column; }
  .resource-filter { grid-template-columns: 1fr; }
  .member-admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-admin-summary > div { border-bottom: 1px solid var(--line); }
  .member-admin-summary > div:nth-child(2) { border-right: 0; }
  .member-admin-summary > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .admin-danger-zone { align-items: stretch; flex-direction: column; }
  .filter-tabs { width: 100%; overflow-x: auto; }
  .filter-tabs a { flex: 1 0 auto; text-align: center; }
  .inline-alert { align-items: flex-start; flex-direction: column; gap: 3px; }
  .onboarding-endpoint { padding: 18px 16px; grid-template-columns: 1fr; gap: 14px; }
  .copy-value-row { align-items: stretch; flex-direction: column; }
  .copy-value-row code { overflow-wrap: anywhere; white-space: normal; }
  .copy-value-row .button { width: 100%; }
  .onboarding-steps > li { padding: 20px 16px; }
  .code-block pre { font-size: 0.68rem; }
  .table-scroll { overflow: visible; }
  .responsive-table { min-width: 0; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; }
  .responsive-table tr { padding: 11px 14px; border-top: 1px solid var(--line); }
  .responsive-table tr:first-child { border-top: 0; }
  .responsive-table td { min-height: 34px; padding: 6px 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; border: 0; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.67rem; font-weight: 650; }
  .responsive-table td.resource-actions { display: flex; padding-top: 10px; border-top: 1px solid #edf0ee; }
  .responsive-table td.resource-actions::before { display: none; }
  .responsive-table td.mobile-hide { display: none; }
  .key-mobile-meta { margin-top: 4px; display: block; color: var(--muted); font-size: 0.68rem; }
  .admin-mobile-meta { margin-top: 5px; display: block; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
  .resource-actions .button { min-height: 38px; }
  .resource-table-shell { border-radius: 8px; }
  .table-toolbar { min-height: 58px; }
  .settings-section { padding: 18px 16px; }
  .two-column-fields { grid-template-columns: 1fr; }
  .settings-submit-row { padding: 14px 16px; align-items: stretch; flex-direction: column; }
  .settings-submit-row .button { width: 100%; }
  .group-choice { grid-template-columns: 18px minmax(0, 1fr); }
  .group-choice code { grid-column: 2; }
  .presentation-body { overflow: auto; }
  .presentation-shell { height: auto; min-height: 100vh; padding: 18px; gap: 18px; overflow: visible; }
  .presentation-header h1 { font-size: 1.8rem; }
  .presentation-grid { grid-template-columns: 1fr; }
  .presentation-qr-panel { min-height: 520px; }
  .presentation-stats { min-height: 300px; }
}

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