:root {
  color-scheme: light;
  --ink: #172b24;
  --muted: #52675e;
  --paper: #f7f6ef;
  --white: #fffefa;
  --forest: #123e35;
  --dark: #092920;
  --gold: #d5b46e;
  --line: #d8ded3;
  --serif: 'Songti SC', 'Noto Serif CJK SC', 'Noto Serif SC', SimSun, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .28em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid #9e7323; outline-offset: 4px; }
.wrap { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 5; padding: 12px; background: var(--white); }
.masthead { background: var(--dark); color: #f4f3ec; }
.nav { position: relative; z-index: 2; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #426156; }
.wordmark { font: 600 33px/.9 Georgia, serif; letter-spacing: -.08em; text-decoration: none; }
.wordmark span { color: var(--gold); padding-left: 2px; }
.nav-links { display: flex; align-self: stretch; gap: clamp(4px, 1.5vw, 22px); font-size: 14px; }
.nav-links a, .nav-links button { display: flex; align-items: center; padding-inline: clamp(8px, 2vw, 22px); border-bottom: 2px solid transparent; color: #c4d7cc; text-decoration: none; white-space: nowrap; }
.nav-links button { background: transparent; border: 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links button:hover, .nav-links a[aria-current='page'] { color: #f4f3ec; background: #153329; }
.nav-links a[aria-current='page'] { border-bottom-color: var(--gold); }
.github-link { gap: 6px; }
.github-link svg { flex-shrink: 0; }
.hero { background: var(--dark); color: #f4f3ec; overflow: hidden; }
.hero-inner { isolation: isolate; position: relative; display: grid; grid-template-columns: 53% 47%; min-height: 580px; align-items: center; }
.hero-copy { z-index: 1; padding-block: 72px 88px; }
.overline { color: #3b6958; font-size: 13px; font-weight: 700; letter-spacing: .15em; margin: 0 0 12px; }
.hero .overline { color: #d5b46e; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(3rem, 5.35vw, 5.25rem); letter-spacing: -.055em; }
.hero-description { color: #c4d7cc; font-size: clamp(15px, 1.45vw, 19px); margin: 25px 0 30px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 21px; min-height: 45px; border: 0; border-radius: 40px; font-size: 15px; font-weight: 700; text-decoration: none; }
.gold { background: var(--gold); color: #15271e; }
.gold:hover { background: #e3c88d; }
.green { background: var(--forest); color: var(--white); }
.green:hover { background: #1d5346; }
.green:disabled { opacity: .75; }
.hero-link { font-size: 14px; color: #dae6dd; }
.hero-art { margin: 0; position: absolute; z-index: 0; inset: 0 -6vw 0 33%; background: linear-gradient(90deg, var(--dark), transparent 29%), linear-gradient(0deg, var(--dark), transparent 20%, transparent 81%, var(--dark)), url('/hero.webp') 60% 50% / cover no-repeat; }
.workspace { padding-block: 64px 76px; scroll-margin-top: 20px; }
.section-head, .field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head { margin-bottom: 24px; align-items: end; }
.section-head > p { color: var(--muted); margin: 0 0 4px; font-size: 14px; }
.workspace h1, h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); letter-spacing: -.045em; }
.account-page { max-width: 520px; }
.account-detail, .account-status { color: var(--muted); }
.account-status:empty { display: none; }
.account-page .text-button { display: inline-block; margin-top: 18px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.panel { min-width: 0; padding: clamp(20px, 2.6vw, 35px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend, .result-head h3 { padding: 0; margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
legend { margin-bottom: 20px; }
.field { margin-bottom: 17px; }
label { font-size: 15px; font-weight: 700; }
input, select, textarea { margin-top: 6px; width: 100%; padding: 10px 13px; border: 1px solid #c7d1c5; background: #fff; color: var(--ink); border-radius: 8px; }
input, select { min-height: 44px; }
textarea { display: block; resize: vertical; font-family: var(--mono); line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #65746b; }
.hint { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.hint:empty { display: none; }
.text-button { border: 0; background: transparent; padding: 2px 0; font-size: 14px; color: #255844; text-decoration: underline; text-underline-offset: 3px; }
.result-panel { display: flex; flex-direction: column; }
.result-head { align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.state { flex: 1; min-height: 280px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 24px 8px; }
.state h4 { font-size: 19px; margin: 0 0 5px; }
.state p { color: var(--muted); margin: 0; font-size: 14px; }
.state .overline { margin-bottom: 9px; font-size: 13px; }
.rank-icon, .signal { display: flex; align-items: end; gap: 5px; height: 33px; margin-bottom: 18px; }
.rank-icon i, .signal i { width: 8px; border-radius: 7px; background: #729785; height: 100%; }
.rank-icon i:nth-child(2), .signal i:nth-child(2n) { height: 72%; }
.rank-icon i:nth-child(3) { height: 44%; background: var(--gold); }
.signal i { animation: pulse 1.6s infinite alternate ease-in-out; transform-origin: bottom; }
.signal i:nth-child(2n) { animation-delay: -.7s; }
.signal i:nth-child(3n) { background: #af8a3e; animation-delay: -1.1s; }
@keyframes pulse { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.failure .text-button { margin-top: 10px; }
.result-meta { font-size: 14px; color: var(--muted); margin: 14px 0; overflow-wrap: anywhere; }
.table-scroll { overflow: auto; max-height: 380px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
th, td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--white); color: var(--muted); font-size: 13px; }
th:first-child { width: 48px; }
th:last-child { width: 80px; }
th:last-child, td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
td { font-size: 14px; }
td strong, td code { display: block; overflow-wrap: anywhere; }
td code { font-size: 12px; color: var(--muted); }
#quota { margin-top: 12px; }
.about { background: #e8eee4; padding-block: 70px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.about h2 { margin-bottom: 20px; }
.about a { color: #245841; font-size: 14px; }
dl { margin: 0; }
dl > div { border-top: 1px solid #bdccbf; padding: 14px 0; }
dt { font-weight: 700; }
dd { margin: 4px 0 0; color: var(--muted); }
.footer { min-height: 85px; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero-inner { min-height: 505px; }
  .hero-art { inset-inline-start: 29%; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 64px; }
  .nav-links a, .nav-links button { padding-inline: 8px; }
  .wordmark { font-size: 28px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding: 48px 0 0; }
  h1 { font-size: clamp(2.45rem, 8.9vw, 4rem); }
  .hero-description { margin: 18px 0 22px; }
  .desktop-break { display: none; }
  .hero-art { position: relative; inset: auto; margin-inline: -18px; margin-top: 8px; min-height: 300px; background-position: center; background-image: linear-gradient(0deg, var(--dark), transparent 20%, transparent 77%, var(--dark)), url('/hero.webp'); }
  .workspace { padding-block: 43px 50px; }
  .section-head { align-items: start; flex-direction: column; gap: 7px; }
  .work-grid, .about-grid { grid-template-columns: 1fr; }
  .state { min-height: 235px; }
  .about { padding-block: 44px; }
}
@media (max-width: 420px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; }
  .nav-links { gap: 0; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal i { animation: none; }
}
