:root {
  --red: #94070A; --red-deep: #6f0407; --red-bright: #b31217;
  --gold: #c9a45c; --paper: #faf7f2; --ink: #2b2320; --muted: #8a7d74;
  --line: #e8dfd4; --ok: #2f7d4f; --warn: #b07908;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; }
#app { max-width: 560px; margin: 0 auto; padding: 0 16px 64px; }
.loading { text-align: center; color: var(--muted); padding: 48px 0; }

.brand { padding: 28px 0 18px; border-bottom: 2px solid var(--red); margin-bottom: 20px; }
.brand h1 { font-size: 22px; color: var(--red); letter-spacing: 1px; }
.brand .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.panel h2 { font-size: 17px; margin-bottom: 8px; color: var(--red-deep); }
.panel h3 { font-size: 15px; margin: 12px 0 6px; }
.muted { color: var(--muted); font-size: 13px; }
.subtitle { color: var(--muted); font-size: 14px; }

.cover { width: 100%; border-radius: 12px; margin-bottom: 14px; display: block; }
.event-head { padding: 24px 0 16px; }
.event-head .org { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.event-head h1 { font-size: 24px; color: var(--red-deep); margin: 4px 0 6px; }
.meta { font-size: 14px; color: var(--muted); }
.meta div { margin-top: 4px; }
.body-text { white-space: pre-wrap; font-size: 15px; margin-top: 8px; }

.badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #f3ece1; color: var(--muted); }
.badge.red { background: #f7e3e3; color: var(--red); }
.badge.green { background: #e2f0e7; color: var(--ok); }
.badge.amber { background: #f7edd8; color: var(--warn); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-family: inherit; background: #fff; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.suffix-input { letter-spacing: 8px; text-align: center; font-size: 22px !important; }

.btn { display: block; width: 100%; padding: 13px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:active { background: var(--red-deep); }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.small { width: auto; display: inline-block; padding: 7px 14px; font-size: 13px; font-weight: 400; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.actions .btn { margin: 0; }

.error { background: #fbeaea; color: var(--red); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.notice { background: #fdf6e7; border: 1px solid var(--gold); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; }
table.list td .muted { font-size: 12px; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row + .row { margin-top: 8px; }
.event-item { display: block; text-decoration: none; color: inherit; }
.event-item:active { opacity: .7; }
.checks label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 14px; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.topbar .who { font-size: 13px; color: var(--muted); }
.topbar a { color: var(--red); font-size: 13px; text-decoration: none; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.footer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 32px; }
