:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f5f6ef;
  color: #173a33;
  font-synthesis: none;
  --ink: #173a33;
  --forest: #10352c;
  --quiet: #536a60;
  --line: #dce5d9;
  --paper: #fffefa;
  --accent: #e4f48c;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
a { color: #215b47; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #508875; outline-offset: 3px; }
.shell { width: min(calc(100% - 64px), 1160px); margin: 0 auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-inner { display: flex; align-items: center; gap: 30px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 770; white-space: nowrap; }
.brand-mark { display: grid; place-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: var(--forest); }
nav { display: flex; gap: 24px; margin-left: 16px; margin-right: auto; }
nav a { padding: 7px 0; text-decoration: none; font-size: 14px; font-weight: 650; color: var(--quiet); }
nav a:hover { color: #227353; }
.button { border: 1px solid transparent; border-radius: 8px; min-height: 39px; padding: 8px 13px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.button:hover:not(:disabled) { filter: brightness(.96); }
.button:disabled { opacity: .55; cursor: default; }
.primary { color: #172b07; background: var(--accent); }
.primary span { margin-left: 8px; }
.solid { color: #fff; background: #205946; }
.outline { color: var(--ink); background: var(--paper); border-color: #d1ded1; }
.quiet { color: var(--quiet); background: transparent; }
.quiet:hover:not(:disabled) { background: #eaf0e8; }
.on-dark { color: #e7f3e9; background: #ffffff09; border-color: #ffffff50; }
.workspace { padding-top: 34px; padding-bottom: 42px; }
.hero { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: end; grid-template-columns: minmax(0,1fr) 220px; gap: 22px; padding: 34px 38px; color: #f3f8ef; border-radius: 23px; background: linear-gradient(116deg,#102d26 15%,#17483c 100%); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border: 1px solid #b9e1a63a; border-radius: 50%; width: 470px; height: 470px; right: -62px; top: -165px; }
.hero::after { width: 540px; height: 540px; top: -200px; right: -97px; box-shadow: 0 0 0 29px #c3f0aa13, 0 0 0 60px #c3f0aa0a; }
.hero-date { color: #ceead5; font-size: 13px; font-weight: 650; }
.hero h1 { margin: 8px 0 8px; font-size: clamp(30px, 6vw, 53px); line-height: 1.05; letter-spacing: -.045em; }
.hero-description { color: #dae9de; font-size: 14px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.schedule { padding: 15px 17px; border: 1px solid #b0d2ba58; border-radius: 14px; background: #0e3029bc; }
.schedule-label { display: flex; gap: 8px; align-items: center; color: #e0f1e2; font-size: 12px; }
.live-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: #e7af7e; }
.live-dot.ready { background: #dcf386; box-shadow: 0 0 0 4px #d9fc6830; }
.schedule-time { color: var(--accent); font-size: 32px; letter-spacing: .025em; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.38; }
.schedule p:last-child { color: #e0ebe2; font-size: 12px; }
.summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 12px; padding: 17px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.summary > div { padding: 0 20px; }
.summary > div + div { border-left: 1px solid var(--line); }
.summary-label { display: block; font-size: 13px; color: var(--quiet); }
.summary strong { display: block; margin-top: 5px; font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.notice { padding: 12px 15px; margin-top: 16px; border: 1px solid #bad3c6; border-radius: 9px; color: #245548; background: #eaf5ed; font-size: 14px; line-height: 1.5; }
.notice.warn { color: #783d1a; background: #fff2df; border-color: #e9c9a4; }
.section { margin-top: 30px; scroll-margin: 18px; }
.section-head { margin-bottom: 13px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.section-head h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.section-head p { font-size: 13px; color: var(--quiet); margin-top: 5px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px),1fr)); gap: 13px; }
.account-grid:has(.account-card:only-child) { grid-template-columns: minmax(0, 520px); }
.account-card, .history-panel, .empty, .login-card { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.account-card { padding: 16px; }
.account-head { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 9px; align-items: center; }
.avatar { height: 35px; display: grid; place-items: center; border-radius: 10px; background: #e3ede0; color: #255347; font-weight: 760; }
.avatar.accent { background: #eaf1cd; color: #425318; }
.avatar.soft { background: #e2eced; color: #245157; }
.account-head h3 { overflow-wrap: anywhere; font-size: 15px; line-height: 1.25; }
.account-subtitle { margin-top: 3px; font-size: 11px; color: var(--quiet); }
.pill { display: inline-flex; min-height: 22px; align-items: center; border-radius: 99px; background: #ebefe8; color: #40564c; padding: 2px 8px; font-size: 11px; font-weight: 680; white-space: nowrap; }
.pill.good { background: #e2f2e7; color: #215841; }
.pill.bad { background: #f9e8df; color: #833720; }
.pill.pending { background: #f7edda; color: #6c4f1e; }
.sign-list { display: grid; gap: 8px; margin: 14px 0 13px; padding: 11px 0; border-block: 1px solid #e6ece2; }
.sign-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; min-height: 24px; font-size: 13px; }
.reward { flex-basis: 100%; color: var(--quiet); font-size: 11px; overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.account-actions .button { min-height: 31px; padding: 5px 8px; font-size: 12px; }
.empty { display: grid; place-content: center; gap: 7px; text-align: center; min-height: 132px; padding: 18px; }
.empty h3 { font-size: 15px; }
.empty p { color: var(--quiet); font-size: 13px; }
.history-panel > .empty { border: 0; }
.history-filter { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--quiet); }
select { min-width: 100px; max-width: 170px; min-height: 37px; padding: 4px 9px; background: var(--paper); border: 1px solid #d1ded1; border-radius: 8px; color: var(--ink); }
.table-wrap { overflow: auto; border-radius: 14px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 11px 15px; border-bottom: 1px solid #eaece6; }
th { background: #eff4eb; color: #485e53; font-weight: 670; white-space: nowrap; }
td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
td:nth-child(2) { overflow-wrap: anywhere; }
.history-footer { text-align: center; padding: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at top right,#d9e9d5,#f5f6ef 60%); }
.login-card { width: min(100%, 400px); padding: 29px; }
.login-card h1 { margin: 20px 0 6px; font-size: 26px; }
.login-card p { font-size: 14px; color: var(--quiet); line-height: 1.55; }
.login-card form { margin-top: 19px; }
.login-card .primary { background: #205946; color: #fff; }
.login-card .primary, dialog form .solid { width: 100%; margin-top: 10px; }
form label:not(.checkbox-label) { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 690; }
input:not([type="hidden"],[type="checkbox"]) { display: block; width: 100%; min-height: 41px; padding: 8px 10px; margin-bottom: 12px; border: 1px solid #ccdace; border-radius: 8px; color: var(--ink); background: #fff; }
.checkbox-label { display: flex; align-items: center; gap: 7px; min-height: 35px; font-size: 14px; }
dialog { width: min(calc(100% - 30px), 430px); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #112e26a8; }
.modal-inner { padding: 16px 20px 21px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { font-size: 19px; }
.modal-head .quiet { min-width: 35px; font-size: 23px; padding: 0; }
.method { display: flex; gap: 4px; background: #edf2e9; border-radius: 9px; padding: 4px; margin-bottom: 12px; }
.method button { flex: 1; min-height: 32px; padding: 4px; color: var(--quiet); background: transparent; }
.method button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--line); }
.help { background: #eef4e9; padding: 9px 11px; border-radius: 8px; margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
.help p { margin-top: 3px; color: var(--quiet); }
.form-message { margin-top: 9px; font-size: 13px; color: #245548; overflow-wrap: anywhere; }
.form-message.error { color: #833720; }
@media(max-width: 600px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 53px; gap: 8px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 29px; height: 29px; }
  nav { margin-left: auto; margin-right: 0; gap: 11px; }
  nav a, .topbar .button { font-size: 12px; }
  .topbar .button { padding-inline: 6px; }
  .workspace { padding-top: 17px; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 14px; padding: 19px 17px; border-radius: 16px; }
  .hero-actions { margin-top: 14px; }
  .schedule { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 9px 10px; }
  .schedule-time { grid-column: 2; grid-row: span 2; font-size: 23px; }
  .schedule p:last-child { margin-left: 16px; }
  .summary { padding: 11px 0; }
  .summary > div { padding: 0 6px; text-align: center; }
  .summary-label { font-size: 10px; }
  .summary strong { font-size: 19px; }
  .account-grid { grid-template-columns: 1fr; }
  .section { margin-top: 24px; }
  .section-head h2 { font-size: 20px; }
  th, td { padding-inline: 10px; }
}
