:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  --ground: #151007;
  --panel: #20170b;
  --input: #171108;
  --line: #453521;
  --text: #f7f2e9;
  --soft: #c3b6a1;
  --gold: #efba70;
  --danger: #ffb7a6;
  --good: #b5dfa8;
  background: var(--ground);
  color: var(--text);
}
:root[data-palette="eclipse"] {
  --ground: #04070e;
  --panel: #0a1026;
  --input: #0d1532;
  --line: rgb(110 122 156 / 26%);
  --text: #f4efe6;
  --soft: #a3acc4;
  --gold: #dfa34d;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--gold); text-underline-offset: .19em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; padding: 0 5vw; border-bottom: 1px solid var(--line); }
.wordmark { display: block; width: 9rem; height: auto; margin-inline-start: -.55rem; transform: translateY(-.2rem); }
h1, h2, h3, p { margin: 0; }
h1 { font: 400 clamp(2.1rem, 5vw, 3.7rem)/1.06 Georgia, serif; letter-spacing: -.025em; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; }
.guest main { min-height: calc(100svh - 4rem); display: grid; place-items: center; padding: 3rem 1.25rem 7rem; }
.guest { background: radial-gradient(ellipse at 52% 36%, #2c1d0c, var(--ground) 58%); }
.guest-panel { width: min(100%, 31rem); }
.guest-panel h1 { color: var(--gold); }
.guest-panel p, .page-heading p { color: var(--soft); margin-top: .8rem; }
.guest-panel .primary { margin-top: 1.2rem; text-align: center; }
.guest-form { display: grid; margin-top: 1.6rem; }
.guest-form button { justify-self: start; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .36rem; }
input, select { padding: .6rem .8rem; width: 100%; border: 1px solid var(--line); border-radius: .38rem; color: var(--text); background: var(--input); }
input::placeholder { color: #a59883; }
.primary, .quiet, .danger { display: inline-block; border: 1px solid transparent; padding: .58rem .84rem; border-radius: .38rem; text-decoration: none; font-weight: 600; white-space: nowrap; }
.primary { background: var(--gold); color: #211303; }
.primary:hover { background: #f9cd8e; }
.quiet { background: transparent; border-color: var(--line); color: var(--text); }
.quiet:hover { background: #352519; }
.danger { background: transparent; border-color: #a66657; color: var(--danger); }
.danger:hover { background: #38231a; }
.error, .guest-panel .error { color: var(--danger); padding-block: .5rem; }
[data-palette="eclipse"] .guest {
  background: radial-gradient(ellipse at 50% 43%, rgb(31 50 122 / 23%), transparent 58%), var(--ground);
}
[data-palette="eclipse"] .guest main { padding-bottom: clamp(3rem, 10vh, 7rem); }
[data-palette="eclipse"] .guest-panel {
  width: min(100%, 33rem);
  padding: clamp(1.4rem, 5vw, 2.65rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--panel);
  box-shadow: 0 1.5rem 4.5rem rgb(0 0 0 / 33%);
}
[data-palette="eclipse"] .guest-panel h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); text-wrap: balance; }
[data-palette="eclipse"] .guest-form input { min-height: 3.125rem; }
[data-palette="eclipse"] .guest-form input::placeholder { color: var(--soft); }
[data-palette="eclipse"] .guest-form .primary { justify-self: stretch; min-height: 3rem; color: var(--ground); }
[data-palette="eclipse"] .guest-form .primary:hover { background: #edb969; }
.admin main { width: min(94%, 76rem); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) 0 5rem; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.page-heading h1 { overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: 2rem; }
.metrics div { padding: .9rem 1rem .95rem; display: grid; gap: .12rem; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics span, .muted { color: var(--soft); }
.metrics strong { font-size: 1.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.panel, .notice { border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); overflow: hidden; margin-top: 1.25rem; }
.panel-head { padding: 1rem 1.15rem; }
.notice { padding: 1.05rem 1.15rem; border-color: #a4783f; }
.notice h2 { margin-bottom: .5rem; }
.notice p { margin: .2rem 0 .5rem; color: var(--soft); }
.notice #copy-status:empty { display: none; }
.new-link, .inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem; }
.new-link { padding: 0 1.15rem 1rem; }
.new-link > div:first-child, .notice input { flex: 1 1 14rem; }
.new-link > div:nth-child(2) { flex: 0 1 8rem; }
.empty { padding: .15rem 1.15rem 1.2rem; color: var(--soft); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
th, td { padding: .85rem 1.15rem; border-top: 1px solid var(--line); vertical-align: middle; }
thead th { color: var(--soft); font-weight: 500; }
tbody th { font-weight: 600; overflow-wrap: anywhere; }
.state { font-size: .86rem; color: var(--soft); }
.state.active { color: var(--good); }
.state.revoked { color: var(--danger); }
.breadcrumb { display: inline-block; margin-bottom: .85rem; }
.session { border-top: 1px solid var(--line); padding: .85rem 1.15rem; }
.session summary { cursor: pointer; }
.session summary span { display: inline-block; margin-left: .8rem; color: var(--soft); }
.session[open] summary { margin-bottom: .8rem; }
.session-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; }
.timeline h3 { margin-top: .5rem; }
.timeline ol { padding-left: 1.25rem; font-size: .9rem; }
.timeline li { padding: .15rem 0; }
.timeline time { display: block; color: var(--soft); }
@media (max-width: 720px) {
  .session-detail { grid-template-columns: minmax(0, 1fr); }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metrics div { padding-inline: .6rem; }
  .metrics span { font-size: .9rem; }
  .session summary span { margin-left: .45rem; }
}
