:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #19271f;
  background: #f5f5ee;
  --ink: #19271f;
  --muted: #4b6054;
  --accent: #d9f588;
  --line: #dce2d7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.frame { max-width: 1160px; padding-inline: clamp(18px, 5vw, 48px); margin-inline: auto; }
.topbar { background: var(--ink); color: white; }
.bar, .row, .brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar { min-height: 72px; }
.brand { font-size: 1.2rem; }
.brand img { border-radius: 9px; }
main { padding-bottom: 48px; }
.login-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 7vw, 96px); align-items: center; min-height: 72vh; padding-block: 45px; }
.intro > p:last-child { font-size: 1.1rem; max-width: 30ch; }
h1 { margin: 8px 0 12px; font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1; letter-spacing: -.06em; }
h2 { margin: 0 0 14px; font-size: 1.35rem; letter-spacing: -.025em; }
h3 { margin: 16px 0 6px; font-size: 1rem; }
p { line-height: 1.5; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); min-width: 0; }
label { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 650; font-size: .9rem; }
small { color: var(--muted); }
input, select, button { font: inherit; border-radius: 10px; min-height: 44px; }
input, select { border: 1px solid #aebbb2; padding: 8px 10px; width: 100%; min-width: 0; color: var(--ink); background: white; }
button { cursor: pointer; padding: 10px 16px; border: 1px solid transparent; color: var(--ink); background: var(--accent); font-weight: 750; }
button:hover:not(:disabled) { background: #c9e879; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #487957; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
.quiet { background: transparent; color: white; border-color: #748277; }
.quiet:hover:not(:disabled) { background: #344e3b; }
details { margin-top: 16px; color: var(--muted); }
summary { cursor: pointer; }
.page-heading { padding-block: 26px 20px; }
.page-heading h1 { font-size: clamp(2.45rem, 6vw, 4rem); }
.layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.full { grid-column: 1 / -1; }
.locker { background: var(--ink); color: #fff; }
.locker .eyebrow { color: #c3d2c6; }
.locker h2 { font-size: clamp(2.6rem, 7vw, 4.75rem); letter-spacing: -.065em; margin-top: 24px; }
.locker button { width: 100%; }
.badge { border-radius: 30px; padding: 5px 11px; font-size: .76rem; font-weight: 800; background: #e5e9e1; color: var(--ink); }
.badge[data-online="true"] { background: var(--accent); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.box { border: 1px solid var(--line); padding: 10px; border-radius: 10px; background: #f5f6f2; display: grid; gap: 3px; }
.box[data-state="CLOSED"] { background: #e8f2e7; }
.box[data-state="OPEN"], .box[data-state="DOOR_LEFT_OPEN"] { background: #fbefd0; }
.box[data-state="ERROR"] { background: #ffe1db; }
.box span { font-size: .76rem; color: var(--muted); }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { padding-block: 9px; border-bottom: 1px solid var(--line); font-size: .88rem; line-height: 1.4; }
.lines button { margin-left: 8px; font-size: .8rem; }
.message, .error { margin-block: 10px 0; overflow-wrap: anywhere; }
.message:empty, .error:empty { display: none; }
.error { color: #a22313; }
#pin-result { font-weight: 750; white-space: pre-line; }
@media (max-width: 700px) {
  .login-layout, .layout { grid-template-columns: 1fr; }
  .login-layout { min-height: auto; }
}
@media (max-width: 405px) { .pair { grid-template-columns: 1fr; gap: 0; } }
body { padding-bottom: env(safe-area-inset-bottom); }
.frame { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.install-help { margin-top: 20px; }
.install-help details { margin-top: 0; }
a { color: #285535; }
.live-summary { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.live-summary p { margin: 0; color: var(--muted); }
.live-summary strong { display: block; font-size: 2rem; color: var(--ink); line-height: 1.2; }
.box { min-height: 125px; transition: background-color .25s; }
.box strong { font-size: 1.1rem; }
.box .command-state { color: #745014; font-weight: 700; }
#session-label { margin-left: auto; font-size: .9rem; color: #dce2d7; }
#last-update { font-size: .7rem; }
@media (min-width: 900px) { .boxes { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
