:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #fffefa;
  --ink: #202b27;
  --muted: #68716a;
  --accent: #254e40;
  --accent-hover: #193d30;
  --soft: #eef1e9;
  --line: #dedfd6;
  --danger: #a33d39;
  --danger-soft: #f7eae5;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.shell { width: 100%; max-width: 480px; margin: auto; padding: 0 22px 26px; min-height: 100dvh; display: flex; flex-direction: column; }
main { min-width: 0; flex: 1; }
a { color: var(--accent); text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #97b5a2; outline-offset: 3px; }
input, select { width: 100%; min-width: 0; background: var(--surface); border: 1px solid #cfd5ca; border-radius: 8px; padding: 12px; min-height: 48px; font-size: 16px; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
input::placeholder { color: #798078; font-weight: 400; font-size: 14px; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #254e400b; }
input[readonly] { background: var(--soft); }
label { display: block; font-size: 13px; font-weight: 600; }
label input, label select { display: block; margin-top: 8px; }
h1, h2, p { margin: 0; }
h1 { font-size: 27px; font-weight: 650; line-height: 1.35; letter-spacing: -.025em; margin: 14px 0; text-wrap: pretty; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.55; }
p+p { margin-top: 8px; }
.topbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); display: grid; place-items: center; }
.text-button { background: transparent; border: 0; color: var(--accent); padding: 10px 6px; min-height: 44px; font-size: 13px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 17px; border-radius: 8px; font-weight: 600; font-size: 14px; text-align: center; white-space: nowrap; border: 1px solid transparent; transition: background .16s, border-color .16s, transform .16s; }
.primary { color: #fffefa; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 3px #1837280b; }
.secondary { background: #f0f1e9; color: var(--accent); border-color: #d8dfd2; }
.primary:active:not(:disabled), .secondary:active:not(:disabled) { transform: translateY(1px); }
.compact { padding: 9px 15px; min-height: 44px; }
.stack { display: grid; gap: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 20px 0; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.7; }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .13em; }
.login-intro { padding: 35px 2px 18px; }
.login-intro h1 { font-size: 38px; font-weight: 650; letter-spacing: -.045em; color: var(--ink); margin: 12px 0 10px; }
.heading-dot { color: #789269; margin-left: 4px; }
.login-intro p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 30em; }
.login-panel { padding: 27px 24px 22px; margin: 10px 0 0; box-shadow: 0 8px 28px #2f403305; }
.login-panel input { background: #fbfbf6; min-height: 52px; }
.login-panel .primary { min-height: 52px; margin-top: 3px; }
.login-alternate { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 16px 2px; font-size: 12px; color: var(--muted); }
.login-alternate a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.notice { padding: 12px 14px; border-left: 3px solid #79967b; border-radius: 4px; background: #eaf0e5; color: var(--accent); margin: 16px 0; font-size: 13px; overflow-wrap: anywhere; }
.error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.error-text, .danger-text { color: var(--danger); font-size: 13px; }
.page-heading, .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.page-heading { margin-bottom: 14px; }
.page-heading h1 { margin-bottom: 0; }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.input-action { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.input-action input { flex: 1; width: 0; margin: 0; }
.input-action button { flex-shrink: 0; }
.join-form { background: #edf0e6; padding: 18px; border: 0; }
.join-form label { font-size: 13px; }
.event-list { display: grid; gap: 14px; margin-top: 25px; }
.event-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; color: var(--ink); }
.event-card h2 { margin: 15px 0 20px; overflow-wrap: anywhere; text-wrap: balance; }
.event-list .event-card { transition: border-color .16s, box-shadow .16s; }
.event-card .row:has(.total) { padding-top: 12px; border-top: 1px solid #eaeae2; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; color: #375d46; background: #e8efdf; font-size: 11px; font-weight: 550; }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.muted { background: #efeee7; color: #696e65; }
.total { font-size: 26px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.arrow { color: #73836e; font-size: 17px; }
.empty { text-align: center; padding: 38px 20px; color: var(--muted); background: #efefe8; border: 1px dashed #d5d8cc; border-radius: 10px; margin: 20px 0; font-size: 13px; }
.empty h2 { color: var(--ink); font-weight: 500; }
.empty p { margin-top: 10px; }
.empty button { margin-top: 16px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
.event-title { font-size: 23px; font-weight: 600; line-height: 1.45; margin: 7px 0 22px; overflow-wrap: anywhere; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-radius: var(--radius); background: #e9eee2; border: 1px solid #dce4d5; padding: 20px; }
.summary .hint { color: #55694f; font-size: 12px; }
.hero-total { display: block; margin-top: 4px; font-size: 48px; font-weight: 600; color: #264a35; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.summary .primary { color: var(--accent); background: var(--surface); border-color: #d4ddcc; box-shadow: none; min-width: 72px; }
#updated { margin: 9px 2px 24px; font-size: 11px; color: #68715f; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.switch input { appearance: none; -webkit-appearance: none; width: 32px; height: 20px; min-height: 20px; padding: 0; margin: 0; flex-shrink: 0; border-radius: 12px; background: #d9ded2; border: 1px solid #c7cfc0; position: relative; cursor: pointer; }
.switch input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #28392b20; transition: transform .16s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::before { transform: translateX(12px); }
.sort-label { font-size: 0; }
.sort-label select { font-size: 12px; min-height: 40px; padding: 8px; border-color: var(--line); margin: 0; }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
th { background: #e9ede3; color: #4b6050; font-size: 11px; font-weight: 600; padding: 13px 5px; border-bottom: 1px solid #dce2d5; }
th:first-child { width: 14%; }
th:nth-child(2) { width: 59%; }
th:last-child { width: 27%; }
td { padding: 13px 6px; font-size: 12px; color: #4f594e; overflow-wrap: anywhere; }
td:first-child { color: #677161; font-size: 11px; }
td:last-child { font-size: 16px; font-weight: 600; color: var(--accent); }
tbody tr:nth-child(even) { background: #f4f5ee; }
.refund td, .refund td:last-child { color: var(--danger); }
.refund td:first-child { box-shadow: inset 2px 0 var(--danger); }
td small { display: block; font-size: 10px; font-weight: 400; }
.date-part, .time-part { display: inline-block; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0; }
.pagination button { font-size: 12px; padding: 8px 12px; min-height: 42px; }
.pagination span { font-size: 11px; color: var(--muted); }
.pagination button:disabled { background: transparent; border-color: transparent; opacity: .5; }
.explanation { font-size: 12px; color: var(--muted); padding: 17px 0; border-top: 1px solid var(--line); }
.explanation summary { cursor: pointer; min-height: 24px; }
.explanation p { margin-top: 12px; line-height: 1.8; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -8px 0 25px; }
.tabs a { flex: 1; text-align: center; padding: 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.key-label { margin-top: 17px; font-size: 11px; color: var(--muted); }
.key-label input { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px; min-height: 44px; }
.key-label .secondary { padding: 9px 12px; min-height: 44px; font-size: 12px; max-width: 98px; white-space: normal; }
.channel-summary { display: grid; gap: 5px; border-top: 1px solid var(--line); padding: 15px 0 3px; margin-top: 17px; font-size: 12px; }
.channel-summary b { color: var(--ink); font-size: 13px; font-weight: 600; }
.channel-summary .hint { font-size: 11px; }
.channel-form { display: grid; gap: 18px; min-width: 0; }
.channel-form legend { padding: 0 7px; color: var(--accent); font-size: 12px; font-weight: 550; }
.channel-form .text-button { justify-self: end; }
.account-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.account-row p { margin: 9px 0 14px; overflow-wrap: anywhere; }
.account-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.account-row .secondary { font-size: 12px; padding: 8px 13px; }
.credentials { border-color: #bdcfb3; background: #edf2e5; }
.credentials label { margin: 14px 0; }
.credentials button { width: 100%; }
.end-confirm { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 7px; }
.end-confirm summary { cursor: pointer; }
.end-confirm p { margin: 4px 0 12px; }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; color: #697162; font-size: 10px; padding-top: 36px; margin-top: 22px; }
.skip-link { position: fixed; z-index: 10; top: -80px; left: 16px; padding: 10px 16px; background: var(--accent); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
@media (hover: hover) { .primary:hover:not(:disabled) { background: var(--accent-hover); }.secondary:hover:not(:disabled) { background: #e3eadb; }.event-list .event-card:hover { border-color: #aaba9f; box-shadow: 0 5px 18px #254e4006; }.tabs a:hover { color: var(--accent); }.text-button:hover, .login-alternate a:hover { text-decoration: underline; text-underline-offset: 4px; }.summary .primary:hover { color: #fffefa; } }
@media (max-width: 350px) { .shell { padding-inline: 16px; }.brand { font-size: 14px; }.panel { padding: 18px; }.login-intro h1 { font-size: 34px; }.login-intro { padding-top: 25px; }.date-part, .time-part { display: block; }.table-tools { gap: 5px; }.summary { padding: 17px; }.hero-total { font-size: 42px; }.login-alternate { font-size: 11px; } }
@media (min-width: 600px) { .auth-page .shell { padding-top: 16px; }.auth-page .login-intro { padding-top: 48px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.table-zone { display: block; font-size: 10px; font-weight: 400; }
.brand-logo { display: block; width: 36px; height: 36px; }
textarea { display:block; width:100%; min-height:130px; padding:12px; margin-top:8px; border:1px solid #cfd5ca; border-radius:8px; background:var(--surface); color:var(--ink); font:16px/1.5 ui-monospace,monospace; resize:vertical; }
textarea:focus-visible { outline:3px solid #97b5a2; outline-offset:3px; }
.source-status:empty { display:none; }
