:root {
  color-scheme: dark;
  --ink: #eaf3f2;
  --muted: #a2b5ba;
  --mint: #86ddc2;
  --edge: #344950;
  --surface: #132129;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #0b151b; font: 16px/1.65 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 18 24 / 82%), rgb(8 18 24 / 58%)), url("glass-atrium.webp") center/cover; opacity: .8; pointer-events: none; }
button, input, select, textarea { font: inherit; }
::selection { color: #08291f; background: var(--mint); }
input, textarea { caret-color: var(--mint); }
.bot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#recoveryPanel { margin-top: 24px; }
#recoveryPanel .form-field { margin-top: 24px; }
#recoveryPanel .consent { margin-top: 20px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--mint); text-underline-offset: 5px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.22; letter-spacing: -.03em; }
h2 { font-size: 24px; line-height: 1.4; letter-spacing: -.02em; }
h3 { font-size: 18px; }
.account-nav { min-height: 100px; max-width: 1360px; margin: auto; padding: 24px 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 750; display: inline-flex; align-items: center; gap: 14px; }
.brand>svg { color: var(--mint); width: 32px; height: 32px; flex-shrink: 0; }
.arrow-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.quiet-link { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.quiet-link:hover { color: var(--mint); }
.muted, .field-help { color: var(--muted); }
.field-help { font-size: 14px; line-height: 1.6; margin-top: 8px; }
.auth-layout { max-width: 1256px; margin: 52px auto 100px; padding: 0 48px; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.auth-intro { padding-top: 24px; }
.auth-intro h1 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.4; }
.auth-intro h1 span { color: var(--mint); }
.intro-description { max-width: 380px; color: var(--muted); margin-top: 24px; font-size: 18px; }
.intro-steps { list-style: none; padding: 0; margin: 44px 0 32px; }
.intro-steps li { padding: 19px 0; border-top: 1px solid var(--edge); }
.intro-steps p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.intro-footnote { font-size: 14px; color: var(--muted); }
.auth-panel { padding: 40px; background: rgb(19 33 41 / 96%); border: 1px solid var(--edge); border-radius: 18px; }
.auth-panel h2 { font-size: 30px; margin-bottom: 10px; }
.auth-panel form { margin-top: 28px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
label { font-size: 14px; color: var(--ink); }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink); background: #0e1b23; border: 1px solid #49606a; border-radius: 8px; transition: border-color 160ms ease; }
input::placeholder, textarea::placeholder { color: #92a6ae; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); }
textarea { resize: vertical; min-height: 124px; }
input[readonly] { font-size: 14px; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 8px; padding: 11px 20px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid transparent; transition: background 160ms ease, border-color 160ms ease; }
.primary-button { background: var(--mint); color: #08291f; }
.primary-button:hover { background: #a1e8d2; }
.secondary-button { background: #1b3037; border-color: #486269; color: var(--ink); }
.secondary-button:hover { background: #284349; border-color: #86ddc2; }
button:disabled { cursor: not-allowed; opacity: .58; }
button[aria-busy="true"] { cursor: wait; }
.full-width { width: 100%; }
.text-button { background: none; border: 0; color: var(--mint); min-height: 44px; padding: 8px 0; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.consent { display: flex; align-items: flex-start; gap: 12px; line-height: 1.65; margin: 8px 0 24px; color: var(--muted); }
.consent input { accent-color: var(--mint); width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; }
.auth-notes { color: var(--muted); font-size: 14px; padding: 24px 0; }
.auth-notes p+p { margin-top: 10px; }
.auth-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; border-top: 1px solid var(--edge); padding-top: 16px; }
.auth-switch>span { font-size: 14px; color: var(--muted); }
.message { padding: 14px 16px; border: 1px solid #386457; border-radius: 8px; background: #14342d; color: #c7f1e5; margin: 20px 0; overflow-wrap: anywhere; }
.message.is-error { background: #352b20; border-color: #7d6640; color: #f7d8a1; }
.beta-layout { max-width: 1200px; margin: 40px auto 0; padding: 0 48px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 52px; }
.page-title h1 { margin-bottom: 14px; }
.status-pill { color: #c5e4dc; background: #1c3b37; border: 1px solid #416158; border-radius: 6px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading>.muted { font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--edge); border-radius: 12px; background: rgb(19 33 41 / 95%); overflow: hidden; }
.metric { padding: 28px; }
.metric-state { grid-column: 1/-1; padding: 28px; }
.metric+.metric { border-left: 1px solid var(--edge); }
.metric-label { font-size: 14px; color: var(--muted); }
.metric-value { font-size: 38px; line-height: 1.3; font-weight: 700; color: var(--mint); margin: 10px 0; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.metric .field-help { margin-top: 0; }
.beta-section { border-top: 1px solid var(--edge); margin-top: 40px; padding-top: 32px; }
.policy-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--edge); }
.policy-row p { font-size: 14px; margin-top: 4px; }
.invite-form { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 16px; align-items: end; margin: 24px 0; }
.invite-form .form-field { margin: 0; }
.invite-result { border: 1px solid #496c64; border-radius: 8px; background: #172e33; padding: 24px; margin-bottom: 24px; }
.invite-result input { margin-top: 10px; }
.invite-result-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.record-list { margin-top: 20px; }
.record { padding: 22px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-bottom: 1px solid var(--edge); }
.record-detail { min-width: 0; flex: 1; }
.record .record-message { flex-basis: 100%; margin: 0; color: #c7f1e5; }
.record .record-message.is-error { color: #f7d8a1; }
.record strong, .record p { overflow-wrap: anywhere; }
.record p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.record-text { white-space: pre-wrap; color: var(--ink) !important; font-size: 16px !important; max-width: 900px; }
.empty-state { padding: 24px 0; color: var(--muted); font-size: 14px; }
.feedback-section { display: grid; grid-template-columns: .8fr 1fr; gap: 64px; }
.feedback-section h2 { margin-bottom: 14px; }
.feedback-section form { max-width: 620px; }
.beta-footer { margin: 64px 0 32px; padding-top: 24px; border-top: 1px solid var(--edge); color: var(--muted); font-size: 14px; }
.data-layout { max-width: 860px; }
.data-layout>p { margin-top: 16px; }
.data-layout .beta-section h2 { margin-bottom: 16px; }
.data-layout .beta-section p { color: var(--muted); max-width: 72ch; }
@media (max-width: 960px) {
  .auth-layout { gap: 40px; padding: 0 32px; }
  .account-nav { padding: 24px 32px; }
  .auth-panel { padding: 28px; }
  .beta-layout { padding: 0 32px; }
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form .primary-button { grid-column: 1/-1; justify-self: start; }
  .feedback-section { gap: 32px; }
}
@media (max-width: 700px) {
  .account-nav { padding: 16px 20px; min-height: 80px; }
  .brand { font-size: 22px; gap: 10px; }
  .quiet-link, .nav-actions .text-button { font-size: 14px; }
  .nav-actions { gap: 16px; }
  .auth-layout { display: flex; flex-direction: column; gap: 32px; margin: 20px auto 48px; padding: 0 20px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { font-size: 36px; line-height: 1.35; }
  .auth-intro h1 br { display: initial; }
  .intro-description { font-size: 16px; margin-top: 16px; }
  .intro-steps, .intro-footnote { display: none; }
  .auth-panel { width: 100%; padding: 26px 22px; border-radius: 12px; }
  .auth-panel h2 { font-size: 26px; }
  .auth-switch { flex-wrap: wrap; gap: 8px; }
  .beta-layout { margin-top: 24px; padding: 0 20px; }
  .page-title { flex-direction: column; margin-bottom: 32px; gap: 18px; }
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { padding: 22px; }
  .metric+.metric { border-left: 0; border-top: 1px solid var(--edge); }
  .metric-value { font-size: 34px; }
  .policy-row { align-items: flex-start; gap: 16px; }
  .policy-row .secondary-button { padding: 10px 14px; flex-shrink: 0; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .primary-button { justify-self: stretch; }
  .invite-result { padding: 20px 16px; }
  .invite-result-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .record { align-items: flex-start; gap: 12px; }
  .record .text-button { flex-shrink: 0; }
  .feedback-section { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
