:root {
  color-scheme: dark;
  --ink: #10191d;
  --paper: #ecece2;
  --muted: #a7b7ba;
  --line: #3a4b51;
  --serif: 'STKaiti', 'KaiTi', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --sans: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; }
body { min-height: 100vh; min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: var(--paper); background: radial-gradient(ellipse at 18% 48%, #30414965, transparent 60%), linear-gradient(155deg, #10191d, #18262c 56%, #10191d); font: 14px/1.7 var(--sans); }
.access-header, footer { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.access-header { display: flex; align-items: center; gap: 18px; min-height: 108px; border-bottom: 1px solid var(--line); }
.brand-seal { display: grid; place-items: center; width: 44px; height: 48px; background: #88483e; border: 1px solid #ac7165; border-radius: 3px; transform: rotate(-3deg); font: 32px/1 var(--serif); }
.brand-name { font: 24px/1.5 var(--serif); letter-spacing: 3px; }
.brand-name > span { color: #819499; padding-inline: 4px; }
.brand-name small { display: block; color: var(--muted); font: 10px/1.8 var(--sans); letter-spacing: 3px; }
main { flex: 1; display: grid; place-items: center; padding: 48px 24px 64px; }
.access-panel { width: min(100%, 440px); padding: 32px; border: 1px solid var(--line); border-top-color: #798f95; border-radius: 8px; background: linear-gradient(145deg, #b9c9c90a, transparent 60%), #1a272cf5; box-shadow: 0 24px 64px #0003; }
.panel-kicker { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: #b9c9c9; font-size: 10px; letter-spacing: 2px; }
h1 { margin: 0; font: 32px/1.5 var(--serif); letter-spacing: 2px; }
p { margin: 0; }
.intro { margin-top: 12px; color: var(--muted); line-height: 1.9; }
label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 28px 0 8px; font-size: 13px; }
label span { color: var(--muted); font-size: 11px; }
button, input { font: inherit; min-height: 48px; border-radius: 4px; }
input { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #61777f; background: #101b20; color: var(--paper); }
input[aria-invalid='true'] { border-color: #d28d7d; }
.help { margin-top: 8px; color: var(--muted); font-size: 11px; }
button { cursor: pointer; color: var(--paper); }
#access-submit { width: 100%; margin-top: 24px; padding: 12px; background: #88483e; border: 1px solid #b27262; }
#access-submit:not(:disabled):hover { background: #a15749; }
button:disabled { opacity: .6; cursor: not-allowed; }
input:disabled { opacity: .65; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #d5e4e5; outline-offset: 4px; }
.status { min-height: 44px; margin-top: 16px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.status[data-kind='error'] { color: #f0b3a3; }
.status[data-kind='success'] { color: #acc6a9; }
.text-button, .legacy-link { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0; background: none; border: 0; color: #d3dfe0; font-size: 12px; text-underline-offset: 4px; }
.text-button:hover, .legacy-link:hover { color: #fff; }
.panel-foot { display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.panel-foot > span { font-size: 20px; line-height: 1.4; }
footer { padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: 1px; }
@media (max-width: 480px) {
  .access-header, footer { width: calc(100% - 32px); }
  .access-header { min-height: 92px; }
  main { padding: 32px 16px; }
  .access-panel { padding: 24px; }
  h1 { font-size: 28px; }
}
