:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --card: #171719;
  --text: #f4f1ea;
  --muted: #aaa7a0;
  --line: #39393b;
  --gold: #e3bc61;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header {
  min-height: 60px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid #29292b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
a { color: var(--gold); text-underline-offset: .17em; }
header a { color: var(--text); text-decoration: none; }
header > a:last-child { font-size: .88rem; }
.brand { font-weight: 760; font-size: 1.36rem; letter-spacing: -.08em; }
.brand span { color: var(--gold); }
main, footer { width: min(100% - 40px, 520px); margin-inline: auto; }
main { padding-top: clamp(26px, 5vw, 68px); }
h1 {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  letter-spacing: -.055em;
  line-height: 1.04;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.intro, .hint, .caption, dt, footer, #past { color: var(--muted); }
.intro { margin: 0 0 24px; }
.event-source { display: inline-block; margin: -8px 0 20px; }
form { display: grid; gap: 0; }
label { display: block; font-size: .92rem; font-weight: 620; margin-bottom: 6px; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  padding: 10px 13px;
}
input, select { min-height: 46px; margin-bottom: 16px; }
input::placeholder { color: #929197; }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.when > div { min-width: 0; }
.when:has(#date-field[hidden]) { grid-template-columns: 1fr; }
.hint { font-size: .83rem; margin: -7px 0 18px; }
button { min-height: 46px; border-radius: 11px; padding: 10px 16px; cursor: pointer; }
.primary { width: 100%; background: var(--gold); color: #171308; border: 1px solid var(--gold); font-weight: 720; }
.primary:hover { background: #edca79; }
.secondary { width: 100%; background: transparent; color: var(--text); border: 1px solid var(--line); margin-top: 10px; }
.secondary:hover { background: var(--card); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1:focus { outline: 0; }
button:disabled { opacity: .55; cursor: default; }
.caption { margin: 0 0 8px; font-size: .9rem; }
dl { padding: 6px 18px; margin: 24px 0; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
dl div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 12px; align-items: baseline; padding: 12px 0; }
dl div + div { border-top: 1px solid var(--line); }
dt { font-size: .87rem; }
dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
#action-hint { margin-bottom: 12px; }
#manual-label { margin-top: 16px; }
.next { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; }
.next a:last-child { color: var(--muted); }
#status { margin-bottom: 0; overflow-wrap: anywhere; }
#status:empty { margin: 0; }
footer { padding: 28px 0; font-size: .79rem; }
footer a { color: var(--muted); }
@media (max-width: 350px) {
  main, footer { width: calc(100% - 28px); }
  .when { gap: 7px; }
  input { padding-inline: 8px; }
}
