:root {
  color-scheme: dark;
  --bg: #0d0d0e;
  --sidebar: #111112;
  --panel: #161618;
  --raised: #1f1e20;
  --stroke: #303034;
  --text: #f5f3ef;
  --muted: #aaa6a0;
  --gold: #edc16c;
  --green: #a6d9a3;
  --red: #ffaaa0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin-block: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.1; letter-spacing: -.05em; }
h2 { font-size: 1.12rem; letter-spacing: -.018em; }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }
small { font-size: .8rem; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.warning, .form-error { color: var(--red); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 1rem; left: 1rem; background: var(--panel); z-index: 1; padding: .5rem; }
.shell { display: grid; min-height: 100vh; grid-template-columns: 245px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 2.5rem; background: var(--sidebar); border-right: 1px solid var(--stroke); padding: 1.4rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; padding: .2rem .35rem; }
.brand img { border-radius: 10px; flex: none; }
.brand strong, .profile strong { display: block; font-size: .95rem; line-height: 1.3; }
.brand small, .profile small, td small, th small, .activity small { display: block; color: var(--muted); }
.sidebar nav { display: grid; gap: .3rem; }
.sidebar nav a { display: flex; gap: .65rem; align-items: center; padding: .65rem .75rem; border-radius: .55rem; color: var(--muted); font-weight: 550; font-size: .875rem; }
.sidebar nav a[aria-current], .sidebar nav a:hover { background: var(--raised); color: var(--gold); }
.nav-icon { width: 1.25rem; text-align: center; font-size: 1.1rem; }
.profile { margin-top: auto; display: flex; gap: .65rem; align-items: center; padding: .75rem .3rem 0; border-top: 1px solid var(--stroke); }
.avatar { display: grid; place-items: center; background: #332a1b; color: var(--gold); border-radius: .6rem; width: 34px; height: 34px; flex: none; }
.profile-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.logout { border: 0; color: var(--muted); background: none; padding: .55rem; cursor: pointer; }
.logout:hover { color: var(--gold); }
.workspace { width: min(100%, 1320px); margin-inline: auto; padding: clamp(1.25rem, 4vw, 3.75rem); }
.page-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2rem; }
.page-head p { margin-top: .65rem; }
.button { display: inline-flex; gap: .55rem; justify-content: center; align-items: center; min-height: 42px; border: 1px solid transparent; border-radius: .6rem; padding: .6rem 1rem; font-size: .875rem; font-weight: 680; cursor: pointer; text-align: center; }
.primary { background: var(--gold); color: #1b150b; }
.primary:hover { background: #ffda91; color: #1b150b; }
.secondary { border-color: var(--stroke); color: var(--text); background: var(--raised); }
button:disabled { cursor: default; opacity: .6; }
.panel { border-radius: .9rem; border: 1px solid var(--stroke); background: var(--panel); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1.35rem; }
.metric { padding: 1.15rem; min-height: 114px; }
.metric > span { display: block; font-size: .84rem; color: var(--muted); margin-bottom: .55rem; }
.metric strong { font-size: 1.85rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric .service-state { font-size: .94rem; display: flex; align-items: center; gap: .5rem; min-height: 2rem; overflow-wrap: anywhere; }
.dot { display: inline-block; width: .47rem; height: .47rem; border-radius: 50%; background: currentColor; flex: none; }
.section { margin-bottom: 1.35rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--stroke); }
.text-link, .row-link, .back { color: var(--gold); font-weight: 560; font-size: .85rem; }
.text-link:hover, .row-link:hover, .back:hover, .activity a:hover { text-decoration: underline; }
.table-wrap { position: relative; overflow-x: auto; }
table { border-collapse: collapse; text-align: left; width: 100%; min-width: 520px; }
th, td { padding: .7rem 1.2rem; font-size: .875rem; }
thead th { color: var(--muted); font-size: .8rem; font-weight: 580; background: #18181a; }
tbody th, tbody td { border-top: 1px solid var(--stroke); }
tbody th { overflow-wrap: anywhere; }
tbody th small { font-weight: 400; }
.badge { display: inline-block; border-radius: 99px; padding: .18rem .65rem; font-size: .77rem; font-weight: 620; background: #2a292c; color: #e0dee2; }
.badge.published { background: #213328; color: var(--green); }
.badge.cancelled { background: #402724; color: var(--red); }
.empty { display: grid; justify-items: center; text-align: center; gap: .45rem; padding: 2.2rem 1rem; }
.empty .button { margin-top: .55rem; }
.empty-glyph { display: grid; place-items: center; width: 42px; height: 42px; background: #30281c; border-radius: .7rem; color: var(--gold); font-size: 1.4rem; margin-bottom: .35rem; }
.quiet { padding: 1.15rem 1.2rem; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; align-items: start; gap: .6rem 1rem; flex-wrap: wrap; padding: .8rem 1.2rem; font-size: .88rem; overflow-wrap: anywhere; }
.activity li + li { border-top: 1px solid var(--stroke); }
.activity a { color: var(--gold); margin-left: .2rem; }
.activity time { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--stroke); }
.filters a { border-radius: .45rem; padding: .35rem .6rem; font-size: .85rem; color: var(--muted); }
.filters a[aria-current], .filters a:hover { color: var(--gold); background: var(--raised); }
.back { display: inline-block; margin-bottom: 1rem; }
.editor { display: grid; gap: 1rem; max-width: 820px; }
.form-panel { padding: clamp(1rem, 3vw, 1.4rem); }
.field { margin-top: 1rem; min-width: 0; }
.field label, .login label { display: block; margin-bottom: .32rem; font-size: .87rem; font-weight: 590; }
input, select, textarea { border-radius: .5rem; border: 1px solid var(--stroke); background: var(--bg); width: 100%; padding: .66rem .7rem; color: var(--text); min-height: 42px; }
textarea { resize: vertical; }
.field small { display: block; margin-top: .3rem; color: var(--muted); }
.field .form-error { color: var(--red); }
[aria-invalid="true"] { border-color: var(--red); }
.field-pair { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: .6rem; }
.notice { max-width: 820px; color: var(--green); background: #213328; border-radius: .55rem; margin-bottom: .9rem; padding: .65rem .9rem; }
.notice.form-error { color: var(--red); background: #402724; }
.notice a { text-decoration: underline; }
.entrance { display: grid; align-content: center; justify-items: start; gap: 1.3rem; min-height: 100dvh; width: min(100% - 2rem, 450px); margin-inline: auto; padding-block: 2rem; }
body:has(.entrance) { background: radial-gradient(ellipse at 50% 12%, #262015 0%, var(--bg) 56%); }
.login { width: 100%; padding: clamp(1.3rem, 5vw, 2.25rem); }
.login h1 { font-size: clamp(1.65rem, 6vw, 2.35rem); }
.login p { margin-top: .6rem; }
.login label { margin-top: 1rem; }
.login .button { margin-top: 1.3rem; width: 100%; }
.entrance-link { font-size: .875rem; padding-inline: .35rem; }
.calendar { width: min(100% - 2rem, 970px); margin-inline: auto; padding-block: 1.4rem 3rem; }
.calendar-head { padding: clamp(2rem, 8vw, 5rem) 0 2rem; max-width: 720px; }
.calendar-head h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); }
.calendar-head p { margin-top: .7rem; }
.calendar-section { margin-block: 1rem 2rem; }
.calendar-section h2 { margin-bottom: .8rem; }
.event-list { display: grid; gap: .75rem; }
.event { padding: 1rem 1.25rem; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; overflow-wrap: anywhere; }
.event-date { align-self: start; padding: .65rem .5rem; text-align: center; border-radius: .6rem; background: #31281a; color: var(--gold); font-weight: 640; }
.event-meta { margin-top: .2rem; font-size: .88rem; }
.event-description { white-space: pre-wrap; margin-top: .65rem; color: var(--text); }
.event-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.event-actions:not(:empty) { margin-top: .75rem; }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 670px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { height: auto; position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .8rem; border-right: 0; border-bottom: 1px solid var(--stroke); padding: .8rem 1rem; }
  .sidebar nav { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: .45rem; gap: .25rem; }
  .profile { border: 0; padding: 0; margin: 0; }
  .profile .avatar, .profile small { display: none; }
  .workspace { padding: 1.25rem 1rem; }
  .event { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .event-date { display: none; }
}
@media (max-width: 390px) { .field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.lookup { max-width: 630px; }
.lookup .form-error, .form-panel h2 + p, .deletion summary + p { margin-top: .65rem; }
.account-title { overflow-wrap: anywhere; }
.account-metrics { margin-bottom: 1.25rem; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1.35rem; }
.account-column { display: grid; align-content: start; gap: .85rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .55rem; }
.inline-form input { width: auto; min-width: min(100%, 10rem); flex: 1; }
.account-action { margin-top: .85rem; }
.small { font-size: .8rem; margin-top: .4rem; }
.deletion { border-color: #6d3831; }
.deletion summary { cursor: pointer; font-weight: 620; color: var(--red); }
.danger { background: #6d3831; color: #fff3f1; margin-top: .85rem; }
.danger:hover { background: #824138; }
@media (max-width: 900px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }

.deletion label { overflow-wrap: anywhere; }
