/* The back office: Level 0 wallpaper, a floor plan that runs off the edges, and minutes typed on paper. */
:root {
  color-scheme: light dark;
  --wall: #d8cd8b; --stripe: rgba(77, 69, 39, 0.055);
  --carpet: #cabd77; --empty: rgba(77, 69, 39, 0.045); --dark-room: rgba(58, 52, 26, 0.15); --dim-room: #e6da97;
  --light: #fff3a3; --glow: #fffce6; --tube: #ffffff;
  --poche: #4d4527; --ink: #2a2513; --ink-2: #5d5532; --ink-on-light: #2a2513;
  --paper: #fffdf3; --rule: rgba(77, 69, 39, 0.22); --hover: rgba(77, 69, 39, 0.08);
  --focus: #2a2513; --alarm: #b3361f; --lamp: #e3bf00; --lamp-halo: rgba(227, 191, 0, 0.28);
  --seat-ink: #ffffff;
  --p-sencha: #3f7a35; --p-hojicha: #8e4426; --p-genmai: #2f5f8f;
  --sheet-shadow: 0 1px 0 rgba(77, 69, 39, 0.18), 0 24px 46px -28px rgba(52, 46, 20, 0.65);
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #22200f; --stripe: rgba(255, 240, 170, 0.03);
    --carpet: #2c2914; --empty: rgba(0, 0, 0, 0.16); --dark-room: rgba(0, 0, 0, 0.34); --dim-room: #39341a;
    --light: #ffe57a; --glow: #fff7cf; --tube: #ffffff;
    --poche: #9c9057; --ink: #efe7bd; --ink-2: #b4a977; --ink-on-light: #2a2513;
    --paper: #2b2813; --rule: rgba(239, 231, 189, 0.17); --hover: rgba(239, 231, 189, 0.08);
    --focus: #ffe57a; --alarm: #ef7a5f; --lamp: #ffe57a; --lamp-halo: rgba(255, 229, 122, 0.2);
    --seat-ink: #1f1c0d;
    --p-sencha: #94c784; --p-hojicha: #e59a78; --p-genmai: #94b8e6;
    --sheet-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 24px 46px -28px rgba(0, 0, 0, 0.95);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--wall);
  background-image: repeating-linear-gradient(90deg, transparent 0 21px, var(--stripe) 21px 22px);
  color: var(--ink);
  font: 400 16px/1.5 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }

/* ---------- the top of the page ---------- */
.top {
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  max-width: 1240px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 6px;
}
.brand { flex: 1 1 auto; min-width: 0; }
.mark { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 760; font-stretch: 74%; letter-spacing: -0.005em; }
.purpose { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 560; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px var(--lamp-halo); }
.status.stopped::before { background: var(--alarm); box-shadow: none; }
.button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: transparent; border: 1.5px solid var(--poche); border-radius: 6px; padding: 6px 12px;
}
.button:hover { background: var(--hover); }
.linklike { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }

/* ---------- the floor plan ---------- */
.plan {
  margin: 6px 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.plan svg { display: block; width: 100%; height: clamp(320px, 36vw, 470px); overflow: hidden; }
.plan text { font-family: "Archivo", system-ui, sans-serif; }
.plan .corridor { fill: var(--carpet); }
.plan .empty { fill: var(--empty); }
.plan .dark { fill: var(--dark-room); }
.plan .lit { fill: var(--light); }
.plan .dim { fill: var(--dim-room); }
.plan .g0 { stop-color: var(--glow); stop-opacity: 1; }
.plan .g1 { stop-color: var(--glow); stop-opacity: 0; }
.plan .wall { fill: none; stroke: var(--poche); stroke-width: 7; stroke-linecap: square; }
.plan .door { fill: none; stroke: var(--poche); stroke-width: 1.4; }
.plan .door-leaf { stroke-width: 3; }
.plan .furn { fill: none; stroke: var(--poche); stroke-width: 1.5; opacity: 0.6; }
.plan .furn.bold { stroke-width: 4; }
.plan .faint { opacity: 0.28; }
.plan .table { fill: #fffdf3; stroke: var(--ink-on-light); stroke-width: 2; }
.plan .spill { opacity: 0.8; }
.plan .tube { fill: var(--tube); stroke: rgba(42, 37, 19, 0.35); stroke-width: 1; }
.plan .seat-letter { fill: var(--seat-ink); font-size: 15px; font-weight: 760; pointer-events: none; }
.plan .you circle { fill: none; stroke: var(--ink-on-light); stroke-width: 2; stroke-dasharray: 4 4; }
.plan .label { fill: var(--ink); font-size: 22px; font-weight: 680; font-stretch: 80%; }
.plan .sub { fill: var(--ink-2); font-size: 13px; font-weight: 450; }
.plan .on-light { fill: var(--ink-on-light); }
.plan .sub.on-light { fill: #5d5532; }
.plan .clock circle { fill: var(--paper); stroke: var(--poche); stroke-width: 1.5; }
.plan .clock path { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.plan .room-link { cursor: pointer; }
.plan .room-link:focus { outline: none; }
.plan .room-link:focus-visible .room-fill { stroke: var(--focus); stroke-width: 5; }
.plan .room-link:hover .room-fill.dark { fill: var(--hover); }
.plan .lit-glow { animation: tube-on 1.5s linear 0.25s 1 both; }
@keyframes tube-on {
  0% { opacity: 0; } 6% { opacity: 0.85; } 10% { opacity: 0.1; } 17% { opacity: 0.75; } 21% { opacity: 0.15; }
  34% { opacity: 1; } 40% { opacity: 0.5; } 52%, 100% { opacity: 1; }
}
@media (max-width: 899px) {
  .plan svg { height: 290px; }
  .plan .label { font-size: 27px; }
  .plan .sub { font-size: 17px; }
  .plan .far { display: none; }
}

/* ---------- the office: minutes, and what's around them ---------- */
.office {
  max-width: 1240px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start;
}
.room-col { min-width: 0; }
.notice { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--alarm); background: var(--hover); max-width: 760px; }
.sheet {
  position: relative; max-width: 760px;
  background: var(--paper); border-radius: 3px; box-shadow: var(--sheet-shadow);
  padding: clamp(22px, 4vw, 44px);
}
.sheet:focus { outline: none; }
.loading { margin: 0; color: var(--ink-2); }
.sheet-head h2 { margin: 0; font-size: 44px; line-height: 1; font-weight: 740; font-stretch: 70%; letter-spacing: -0.01em; }
.sheet-head .when { margin: 10px 0 0; font-size: 18px; }
.sheet-head .outcome { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.sheet-head .outcome.off { color: var(--alarm); }
.sheet-actions { margin: 16px 0 0; }

.item { margin-top: 34px; }
.item h3 {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; padding-bottom: 8px;
  border-bottom: 1px solid var(--rule); font-size: 19px; font-weight: 660; font-stretch: 86%; line-height: 1.25;
}
.item h3 .n { min-width: 1.1em; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.item h3 .t { min-width: 0; overflow-wrap: anywhere; }
.line { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 18px; padding: 11px 0; }
.who { display: flex; flex-direction: column; gap: 1px; padding-left: 10px; border-left: 3px solid var(--who); min-width: 0; }
.who .name { font-weight: 680; font-size: 15px; color: var(--who); }
.who .meta { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.said { margin: 0; font-family: "Courier Prime", "Courier New", ui-monospace, monospace; font-size: 16px; line-height: 1.58; overflow-wrap: anywhere; }
.line.pass .said { color: var(--ink-2); font-style: italic; }
.capline { margin: 14px 0 0; padding: 8px 12px; border-left: 3px solid var(--alarm); color: var(--alarm); font-weight: 560; }

.came { margin-top: 38px; padding-top: 18px; border-top: 2px solid var(--ink); }
.came h3 { margin: 0 0 10px; font-size: 19px; font-weight: 660; font-stretch: 86%; }
.filed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.filed li { padding-left: 12px; border-left: 3px solid var(--who); }
.filed a { font-weight: 560; }
.filed .meta, .steps .meta { display: block; font-size: 13px; color: var(--ink-2); }
.remember { margin: 18px 0 0; max-width: 64ch; }
.remember b { font-weight: 660; }
.briefed { margin-top: 22px; font-size: 15px; }
.briefed summary { cursor: pointer; color: var(--ink-2); font-weight: 560; }
.briefed dl { margin: 12px 0 0; }
.briefed dt { font-weight: 640; margin-top: 12px; }
.briefed dd { margin: 4px 0 0; }
.briefed ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.briefed li { margin: 2px 0; }

.side { display: grid; gap: 36px; min-width: 0; }
.side h2 { margin: 0 0 12px; font-size: 19px; font-weight: 680; font-stretch: 84%; line-height: 1.2; }
.empty-note { margin: 0; color: var(--ink-2); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { padding-left: 12px; border-left: 3px solid var(--who); }
.steps a { font-weight: 560; }
.done { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.done summary { cursor: pointer; }
.done ul { margin: 8px 0 0; padding-left: 18px; }
.done a { text-decoration: line-through; text-decoration-color: var(--ink-2); }

.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center;
  background: var(--paper); border-radius: 7px; padding: 24px 6px 12px; box-shadow: 0 1px 0 var(--rule), 0 10px 18px -16px rgba(42, 37, 19, 0.7);
}
.badge::before { content: ""; position: absolute; top: 9px; left: 50%; width: 24px; height: 5px; border-radius: 3px; background: var(--wall); transform: translateX(-50%); }
.badge .mono { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 7px; background: var(--who); color: var(--seat-ink); font-weight: 760; font-size: 18px; }
.badge .name { font-weight: 700; font-size: 15px; }
.badge .role { font-size: 13px; }
.badge .model, .badge .mem { font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.badge .mem { margin-top: 6px; }

.spend p { margin: 0; }
.meter { height: 8px; margin: 10px 0; border-radius: 4px; background: var(--rule); overflow: hidden; }
.meter span { display: block; height: 100%; width: calc(var(--used, 0) * 100%); min-width: 2px; background: var(--ink); border-radius: 4px; }
.spend .meta { font-size: 13px; color: var(--ink-2); }

.runs ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.runs a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.runs a:hover { background: var(--hover); }
.runs a[aria-current="page"] { background: var(--paper); font-weight: 640; }
.runs .state { font-size: 13px; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.runs .keys { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
kbd { font-family: inherit; font-size: 12px; padding: 0 5px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }

.foot {
  max-width: 1240px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px) 44px;
  display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2);
}
.foot p { margin: 0; }
.toast, .pill {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  max-width: min(92vw, 540px); padding: 10px 14px; border-radius: 8px; font-size: 14px;
  background: var(--ink); color: var(--wall); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.pill { display: flex; align-items: center; gap: 12px; }
.pill .button { color: var(--wall); border-color: var(--wall); padding: 4px 10px; }
.noscript { max-width: 640px; margin: 20px auto; padding: 0 20px; }

@media (max-width: 899px) {
  .office { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sheet-head h2 { font-size: 38px; }
}
@media (max-width: 560px) {
  .line { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; }
  .who { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .purpose { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan .lit-glow { animation: none; }
  * { scroll-behavior: auto !important; }
}
