:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", "Liberation Sans", Arial, system-ui, sans-serif;
  color: #ecf0f6;
  background: #101217;
  --surface: #181c24;
  --raised: #202531;
  --line: #333b4b;
  --muted: #a6b1c3;
  --accent: #7be0c3;
  --blue: #adbfff;
  --danger: #ff9aab;
  --warning: #ffd293;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); font-weight: 680; letter-spacing: -.045em; line-height: 1.12; }
h2 { font-size: 1.13rem; font-weight: 650; letter-spacing: -.015em; }
h3 { font-size: 1.04rem; font-weight: 650; }
h4 { font-size: .92rem; font-weight: 650; }
p { line-height: 1.55; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
button, summary { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
a { color: var(--accent); text-decoration: none; }
.shell { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 3.8vw, 3rem); }
.top { background: #141820; border-bottom: 1px solid #282f3d; }
.bar, .heading, .session { display: flex; align-items: center; gap: .85rem; }
.bar { justify-content: space-between; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { position: relative; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: .52rem; background: #23433f; border: 1px solid #3f6a60; }
.brand-mark::before { content: ""; width: .67rem; height: .75rem; border: 2px solid var(--accent); border-radius: .15rem; transform: skewY(-9deg); }
.brand-mark::after { content: ""; position: absolute; width: .14rem; height: .14rem; border-radius: 100%; background: var(--accent); transform: translate(.12rem, .04rem); }
.session { font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--muted); }
main { padding-top: clamp(1.35rem, 4vw, 3.1rem); padding-bottom: 3.5rem; }
.heading { justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.65rem; }
.indicator { display: flex; align-items: center; gap: .48rem; color: var(--accent); border: 1px solid var(--line); border-radius: 99rem; padding: .25rem .72rem; font-size: .88rem; background: var(--surface); }
.indicator::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.indicator[data-mode="administration"] { color: var(--blue); }
.indicator[data-mode="locked"] { color: var(--danger); }
.navigation { display: flex; flex-wrap: wrap; gap: 1.55rem; border-bottom: 1px solid var(--line); margin-bottom: 1.35rem; }
.navigation a { color: var(--muted); padding: .15rem .05rem .62rem; border-bottom: 2px solid transparent; font-size: .94rem; }
.navigation a:first-child { display: inline-flex; align-items: baseline; gap: .4rem; }
.navigation a:hover { color: #fff; }
.navigation a[aria-current] { color: #fff; border-bottom-color: var(--accent); }
.view { display: grid; gap: 1.15rem; scroll-margin-top: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 2.4vw, 1.55rem); }
.card > h2 { margin-bottom: 1.05rem; }
.signin { max-width: 30rem; margin: clamp(1rem, 12vh, 7rem) auto; display: grid; gap: 1.45rem; justify-items: start; padding: clamp(1.5rem, 5vw, 2.5rem); }
.signin h1 { font-size: 2rem; }
.mode-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.mode-picker button { --mode: var(--accent); display: grid; gap: .32rem; align-content: start; text-align: left; min-height: 5.5rem; padding: .85rem .9rem; border-radius: .65rem; background: #141820; border: 1px solid var(--line); font: inherit; color: inherit; }
.mode-picker button:hover:not(:disabled) { background: var(--raised); }
.mode-picker button[data-mode="administration"] { --mode: var(--blue); }
.mode-picker button[data-mode="locked"] { --mode: var(--danger); }
.mode-picker button[aria-pressed="true"] { border-color: var(--mode); background: color-mix(in srgb, var(--mode) 8%, #141820); }
.mode-picker button[aria-pressed="true"] strong { color: var(--mode); }
.mode-picker strong { font-weight: 650; overflow-wrap: anywhere; }
.mode-picker span, .meta { color: var(--muted); font-size: .9rem; line-height: 1.45; }
h4 { overflow-wrap: anywhere; }
.plan { margin: 0; display: grid; gap: .45rem; }
.plan dt { color: var(--muted); font-size: .84rem; font-weight: 650; }
.plan dd { margin: -.2rem 0 .35rem; line-height: 1.45; overflow-wrap: anywhere; }
.request-details dd { white-space: pre-wrap; }
pre { margin: .1rem 0 0; padding: .65rem .8rem; border: 1px solid #2d3747; border-radius: .48rem; background: #0d1017; color: #dce7ff; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font: .89rem/1.5 "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 625; font-size: .9rem; padding: .5rem .8rem; border-radius: .5rem; background: var(--raised); border: 1px solid var(--line); color: inherit; }
.button:hover:not(:disabled) { background: #2a3241; }
.button.primary { color: #10251e; background: var(--accent); border-color: var(--accent); }
.button.primary:hover:not(:disabled) { background: #a4f1da; }
.button.quiet { background: transparent; }
.tree, .tree ul { list-style: none; margin: .25rem 0; padding: 0; }
.tree ul { padding-left: clamp(.35rem, 2vw, 1.05rem); margin-left: .48rem; border-left: 1px solid var(--line); }
.node, .grant { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; min-height: 2.45rem; border-bottom: 1px solid #2b3341; padding: .45rem .2rem; overflow-wrap: anywhere; }
.node strong { font-weight: 620; }
details { color: var(--muted); font-size: .89rem; }
details summary { width: fit-content; padding-block: .35rem; }
details[open] > .grant { margin-inline-start: .55rem; }
details .plan { padding-block: .4rem; }
.grant-label { color: #e5ecf8; margin-right: .4rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
td, th { border-bottom: 1px solid var(--line); padding: .65rem .45rem; vertical-align: top; }
th { font-weight: 630; color: var(--muted); }
time { white-space: nowrap; }
#notice, #refresh-status { padding: .7rem .9rem; background: #252130; border: 1px solid #564864; color: #f2dfff; border-radius: .55rem; margin-bottom: 1rem; }
@media (max-width: 45rem) {
  .mode-picker { grid-template-columns: 1fr; }
  .mode-picker button { min-height: auto; }
}
@media (max-width: 26rem) {
  .session { gap: .45rem; font-size: .8rem; }
  .heading { gap: .65rem; }
}
@media (max-width: 21rem) {
  .session > span { display: none; }
}
