:root {
  color-scheme: dark;
  --bg: #141416;
  --surface: #202024;
  --line: #36343a;
  --text: #f8f4ef;
  --muted: #bbb5b2;
  --accent: #ffad75;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
header { border-bottom: 1px solid var(--line); }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.brand { min-height: 72px; display: flex; align-items: center; gap: 12px; letter-spacing: .09em; font-size: .87rem; }
.brand strong span, .card-title h2 span { color: var(--accent); }
.brand a { margin-left: auto; font-weight: 600; color: var(--muted); letter-spacing: normal; }
.mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--accent); color: var(--bg); font-size: 1.16rem; }
main { padding: 40px 0 64px; }
.hero { padding: 32px 0 28px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.07; letter-spacing: -.055em; margin: 8px 0 12px; }
h2 { font-size: 1.24rem; line-height: 1.2; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .09em; }
.muted, .hero > p:last-child { color: var(--muted); }
.card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.schedule { width: 100%; max-width: 680px; }
.card-title, .share { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-title h2 { margin-top: 7px; font-size: 1.45rem; }
dl { margin: 16px 0 0; }
dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; border-top: 1px solid var(--line); padding: 8px 0; }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; overflow-wrap: anywhere; }
.person { display: block; }
.highlight { color: var(--accent); font-weight: 700; }
.share, .filters { margin-bottom: 22px; }
.share p { margin-top: 5px; }
.filters, .fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 14px; align-items: end; }
.fields { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 26px; }
label { display: grid; gap: 6px; min-width: 0; font-weight: 650; font-size: .92rem; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #514d53; border-radius: 9px; padding: 10px 12px; background: var(--bg); color: var(--text); font: inherit; }
textarea { resize: vertical; }
a { color: var(--accent); }
button, .quiet, .primary { display: inline-block; border: 1px solid #514d53; border-radius: 9px; padding: 9px 12px; font: 650 .88rem/1.4 system-ui, sans-serif; text-decoration: none; color: var(--text); background: transparent; cursor: pointer; }
button:hover, .quiet:hover { border-color: var(--accent); }
.primary { color: #26170d; background: var(--accent); border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share .actions { margin: 0; }
.inline { display: inline; }
.pill { background: #444149; border-radius: 30px; font-size: .75rem; padding: 4px 10px; }
.live { background: #293e32; color: #b9edcf; }
.editor { margin-top: 22px; max-width: 850px; }
.editor p { margin: 8px 0 15px; }
.roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.login { margin: 40px auto; max-width: 480px; padding: 30px; }
.login button { margin-top: 16px; }
.error { color: #ffb4a2; margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); margin: 24px auto; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--accent); color: #26170d; padding: 10px 18px; border-radius: 12px; }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  main { padding-top: 18px; }
  .hero { padding-top: 22px; }
  .card { padding: 17px; }
  .share { flex-direction: column; }
  .filters, .fields, .roster { grid-template-columns: 1fr 1fr; }
  .filters label:first-child, .fields label:first-child { grid-column: 1 / -1; }
}
