/* SFOLAN manager – dark theme, same family as the client shell (design mockup 2026-11-20). */
:root {
    --bg: #0E1116;
    --sidebar: #12161C;
    --surface: #161B23;
    --surface2: #1C2330;
    --field: #0F1319;
    --border: #222934;
    --border2: #2B3340;
    --text: #E6E9EF;
    --muted: #9AA4B2;
    --accent: #2563EB;
    --accent-text: #93B8FF;
    --accent-soft: #15264A;
    --ok: #4ADE80;
    --ok-soft: #10301F;
    --warn: #FBBF24;
    --warn-bar: #F59E0B;
    --error: #FCA5A5;
    --error-soft: #3A1D1D;
    --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.45; }
a { color: #7FB0FF; }
a:hover { color: #A9C9FF; }
h1 { font-size: 28px; font-weight: 700; margin: 0; }
h1:focus { outline: none; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 4px; }
pre { background: var(--field); border: 1px solid var(--border2); border-radius: 8px; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--error); }
.ok { color: var(--ok); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- layout */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 220px; max-width: 100%; background: var(--sidebar); border-right: 1px solid var(--border); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.content { flex: 999 1 560px; min-width: 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.content > * { margin-top: 0; margin-bottom: 0; }
.centered { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
@media (min-width: 900px) { .sidebar { flex: 0 0 240px; } }
@media (max-width: 600px) { .content { padding: 24px 16px; } }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.brand-name { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; letter-spacing: .04em; line-height: 1.2; }
.brand-name span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: #fff; background: var(--surface2); font-weight: 600; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 12px; margin-bottom: 2px; }
.center-list { display: flex; flex-direction: column; gap: 4px; }
.center-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.center-list a:hover, .center-list a.active { background: var(--surface); color: var(--text); }
.center-list .state { font-size: 12px; white-space: nowrap; color: var(--muted); }
.center-list .state.on { color: var(--ok); }
.me { margin-top: auto; border-top: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.me-name { font-size: 13px; word-break: break-all; }

/* ---------------------------------------------------------------- page header + tabs */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head .title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.page-head .title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb a { text-decoration: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 12px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: #fff; font-weight: 600; border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- pills, avatars, bars */
.badge, .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface2); color: #B4BCC8; white-space: nowrap; }
.badge.on, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.badge.off, .pill.danger { background: var(--error-soft); color: var(--error); }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.pill.tag { background: #1F2633; color: #C9D1DC; font-weight: 500; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #233047; color: #C7D7F5; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.avatar.large { width: 56px; height: 56px; font-size: 20px; }
.bar { height: 6px; border-radius: 3px; background: #252C37; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); }
.bar > div.low { background: var(--warn-bar); }
.bar.thick { height: 8px; }
.warn-text { color: var(--warn); }

/* ---------------------------------------------------------------- buttons, fields */
button, a.button, label.button { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--border2); background: var(--surface); color: var(--text); display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
button:hover:not(:disabled), a.button:hover, label.button:hover { border-color: #3A4454; color: var(--text); }
button.primary, a.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled), a.button.primary:hover { background: #1D4ED8; color: #fff; }
button.danger { background: transparent; border-color: #5B2A2A; color: var(--error); }
button.danger:hover:not(:disabled) { background: var(--error-soft); }
button.small, a.button.small, label.button.small { height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; }
button.ghost { background: transparent; }
button.icon { width: 36px; height: 36px; padding: 0; }
button.link { background: none; border: 0; height: auto; padding: 0; color: #7FB0FF; font-weight: 500; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 14px; min-height: 36px; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--field); border: 1px solid var(--border2); border-radius: 8px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select { height: 44px; padding: 0 12px; }
textarea { padding: 10px 12px; resize: vertical; }
input.inline { height: 36px !important; width: 160px; }
.search { flex: 1 1 320px; display: flex; flex-direction: row; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border2); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 42px !important; padding: 0 !important; }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.inline-label { flex-direction: row; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- cards, forms */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card > h2, .card > p { margin: 0; }
.card.form { max-width: 560px; }
.card.form.wide { max-width: none; }
.card.login { width: 380px; max-width: 100%; }
.card.login form { display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.columns { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.columns > .main { flex: 2 1 480px; min-width: 0; }
.columns > .side { flex: 1 1 300px; min-width: 0; }
.columns > .wide { flex: 3 1 440px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-actions.split { justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toolbar .group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; flex: 1 1 auto; }
.row-item { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--sidebar); }
.row-item .grow { flex: 1 1 180px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.usage { display: flex; flex-direction: column; gap: 8px; }
.usage .line { display: flex; justify-content: space-between; gap: 8px; }
.divider { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* weekday toggles */
fieldset.days { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.days legend { color: var(--muted); font-size: 13px; padding: 0; margin-bottom: 6px; }
.day-row { display: flex; gap: 4px; flex-wrap: wrap; }
button.day { width: 44px; height: 44px; padding: 0; font-size: 12px; background: transparent; color: var(--muted); }
button.day[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- stats + PC cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
a.stat:hover { border-color: var(--border2); color: var(--text); }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 28px; font-weight: 700; }
.stat .value small { font-size: 15px; color: var(--muted); font-weight: 500; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
button.chip { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: transparent; }
button.chip[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 176px; }
.pc-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-card h3 { margin: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-card .who { display: flex; flex-direction: column; gap: 2px; }
.pc-card .who strong { font-weight: 600; }
.pc-card .line { display: flex; justify-content: space-between; font-size: 13px; }
.pc-card .foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pc-card .foot button { flex: 1 1 auto; }
.pc-card .result { font-size: 12px; }

/* ---------------------------------------------------------------- tables */
.table-box { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; }
.table-box table.grid { min-width: 720px; }
table.grid th { text-align: left; padding: 14px 20px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
table.grid td { text-align: left; padding: 14px 20px; border-bottom: 1px solid #1E2530; vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid.compact th, table.grid.compact td { padding: 10px 14px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #1A202A; }
td.actions { white-space: nowrap; }
td.actions button { margin-right: 4px; }
.who-cell { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.who-cell:hover { color: var(--text); }
.who-cell .names { display: flex; flex-direction: column; }
.who-cell strong { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.today { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }

/* ---------------------------------------------------------------- apps */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-content: start; }
button.cover-card { height: auto; padding: 6px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; white-space: normal; text-align: left; font-weight: 400; }
button.cover-card[aria-pressed=true] { border-color: var(--accent); background: var(--surface2); }
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 8px; background: #1F2633; }
.cover.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; }
.cover.small { width: 96px; flex: none; }
.cover-card .name { font-weight: 600; font-size: 14px; color: var(--text); padding: 10px 4px 0; }
.cover-card .meta { font-size: 12px; color: var(--muted); padding: 2px 4px 4px; }
.cover-card.hidden-app .cover { opacity: .45; }
.editor-head { display: flex; gap: 16px; align-items: flex-start; }
.editor-head .info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.editor-head h2 { margin: 0; font-size: 20px; }
.exe-list { display: flex; flex-direction: column; gap: 10px; }
.exe { border: 1px solid var(--border); border-radius: 10px; background: var(--sidebar); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.exe-head { display: flex; gap: 8px; align-items: center; }
.exe-head .num { color: #6B7686; font-size: 12px; width: 18px; text-align: center; flex: none; }
.exe-head .summary { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.exe-head .path { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload:focus-within label.button { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- feedback, overview, Blazor */
.feedback { padding: 10px 14px; border-radius: 8px; }
.feedback.error { background: var(--error-soft); color: var(--error); }
.feedback.ok { background: var(--ok-soft); color: var(--ok); }
.empty { color: var(--muted); padding: 24px; text-align: center; background: var(--surface); border: 1px dashed var(--border2); border-radius: var(--radius); }
.center-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.center-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
a.center-card:hover { border-color: var(--border2); color: var(--text); }
.center-card .head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.center-card h3 { margin: 0; font-size: 17px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 20px; background: #E0B23A; color: #000; z-index: 10; }
#blazor-error-ui .reload { color: #000; font-weight: 600; margin-left: 8px; }

/* PC actions (Phase 2) */
.pc-card.selected { border-color: var(--accent); }
.pc-card label.pick { flex-direction: row; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.pc-card label.pick input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pc-card .pills { display: flex; gap: 6px; flex: none; }
.pc-card .foot.more { margin-top: 0; border-top: 1px solid var(--border); padding-top: 12px; }
.pc-card .foot button.icon { flex: none; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #23407A; position: sticky; top: 8px; z-index: 5; }
.bulk-bar strong { margin-right: 8px; }

/* add PCs (approval) */
ol.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
ol.steps pre { margin-top: 8px; }
details summary { cursor: pointer; }
.pending-info { display: flex; flex-direction: column; gap: 6px; flex: 2 1 260px; align-self: center; }
.pending-info .pill { align-self: flex-start; }
.row-item.compact-row { align-items: center; padding: 10px 14px; gap: 14px; }

/* scripts + branding (Phase 2 steps 7-8) */
textarea.code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; line-height: 1.45; white-space: pre; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.brand-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.brand-card .preview { height: 160px; border-radius: 8px; background: #0b0e14; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-card .preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-card .preview.wide img { width: 100%; height: 100%; object-fit: cover; }

/* Phase 4: script output, health line, floorplan */
pre.script-output { background: #0b0e14; border: 1px solid var(--border); border-radius: 8px; padding: 12px; max-height: 420px; overflow: auto; font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; white-space: pre-wrap; }
pre.wrap { white-space: pre-wrap; margin: 0; font-family: inherit; font-size: 12.5px; }
.health { display: block; }
.floor { display: grid; gap: 6px; overflow: auto; padding: 4px; }
.floor .cell { min-height: 64px; border: 1px dashed var(--border2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 4px; text-align: center; background: transparent; color: var(--text); height: auto; font-weight: 600; }
.floor .cell.pc { border-style: solid; background: var(--surface); }
.floor .cell.pc.use { border-color: var(--accent); }
.floor .cell.pc.off { opacity: .5; }
.floor .cell.picked { outline: 2px solid var(--accent); }
.floor-side { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }

/* ---- center server details (ServerPanel) */
.server-panel summary { cursor: pointer; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kv-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.disk { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.disk .bar { grid-column: 1 / -1; }
.spark-row { display: flex; flex-wrap: wrap; gap: 24px; color: var(--accent); }
.spark-row figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.center-card .server-line { font-size: 12px; color: var(--muted); }

/* 0.13: PCs page redesign (always-visible action bar, clickable cards), screenshots */
.bulk-bar.sticky { position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.bulk-bar .sep { width: 1px; align-self: stretch; background: var(--border2); margin: 0 4px; }
.bulk-bar button:disabled { opacity: .45; cursor: not-allowed; }
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .menu { position: absolute; z-index: 10; top: 110%; left: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.danger-outline { border-color: var(--error); color: var(--error); }
.pc-card.clickable { cursor: pointer; user-select: none; }
.pc-card.clickable:focus-visible { outline: 2px solid var(--accent); }
.pc-card.off { opacity: .75; }
.pc-card dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0 0; font-size: 12px; }
.pc-card dl.facts dt { color: var(--muted); }
.pc-card dl.facts dd { margin: 0; overflow-wrap: anywhere; }
img.screenshot { max-width: 100%; border-radius: 8px; border: 1px solid var(--border2); }

/* 0.13: teacher view */
.today { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .today { grid-template-columns: 1fr; } }
table.selectable tbody tr { cursor: pointer; }
table.selectable tbody tr.selected { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.floor .cell.pc { flex-direction: column; gap: 2px; cursor: pointer; }
.floor .cell.pc.free { border-color: var(--ok); }

/* 0.13: touch booking screen (light, Danish, big targets) */
.bk { position: fixed; inset: 0; overflow: auto; background: #F5F7FB; color: #1B2230; font-size: 18px; padding: 28px 36px; z-index: 50; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.bk-head h1 { font-size: 40px; margin: 0; color: #1B2230; }
.bk-head p { margin: 4px 0 0; color: #5B6577; }
.bk-head-right { display: flex; align-items: center; gap: 20px; }
.bk-clock { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-switch { display: flex; background: #E6EAF2; border-radius: 999px; padding: 4px; }
.bk-switch button { border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; font-size: 18px; color: #1B2230; min-height: 48px; }
.bk-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bk-plan { display: grid; gap: 12px; }
.bk-gap { min-height: 120px; }
.bk-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-height: 120px; padding: 18px 20px;
  border-radius: 16px; border: 2px solid #DDE3EE; background: #fff; color: #1B2230; font-size: 18px; cursor: pointer; height: auto; }
.bk-tile .bk-name { font-size: 24px; font-weight: 700; }
.bk-tile .bk-state { font-weight: 600; }
.bk-tile .bk-next { font-size: 15px; color: #5B6577; }
.bk-tile.free { border-color: #2EA05A; }
.bk-tile.free .bk-state { color: #1F7F45; }
.bk-tile.busy .bk-state { color: #B45309; }
.bk-tile.booked { border-color: #3B6FE0; }
.bk-tile.booked .bk-state { color: #2C56B8; }
.bk-tile.off { opacity: .5; cursor: default; }
.bk-tile:active:not(:disabled) { transform: scale(.98); }
.bk-sheet-bg { position: fixed; inset: 0; background: rgba(20,26,38,.45); z-index: 60; }
.bk-sheet { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 94vw); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 24px; padding: 28px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: #1B2230; }
.bk-sheet h2 { font-size: 32px; margin: 0 0 8px; color: #1B2230; }
.bk-sheet h3 { font-size: 18px; margin: 20px 0 10px; color: #5B6577; font-weight: 600; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-chips button { min-height: 56px; min-width: 88px; padding: 0 18px; border-radius: 14px; border: 2px solid #DDE3EE; background: #fff; font-size: 20px; color: #1B2230; }
.bk-chips button[aria-pressed="true"] { border-color: #3B6FE0; background: #EAF0FF; font-weight: 700; }
.bk-input { width: 100%; font-size: 26px; padding: 14px 16px; border-radius: 14px; border: 2px solid #C9D2E1; background: #fff; color: #1B2230; }
.bk-input:focus { outline: none; border-color: #3B6FE0; }
.bk-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.bk-primary, .bk-ghost { min-height: 60px; padding: 0 28px; border-radius: 16px; font-size: 22px; font-weight: 700; border: 0; }
.bk-primary { background: #2F6FEB; color: #fff; }
.bk-primary:disabled { opacity: .45; }
.bk-ghost { background: #EEF1F6; color: #1B2230; }
.bk-error { color: #B42318; font-weight: 600; margin: 12px 0 0; }
.bk-done { text-align: center; padding: 12px 0; }
.bk-check { width: 84px; height: 84px; border-radius: 50%; background: #2EA05A; color: #fff; font-size: 48px; display: grid; place-items: center; margin: 0 auto 12px; }
.bk-empty { padding: 60px; text-align: center; color: #5B6577; font-size: 22px; }

/* 0.13: reports */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-bottom: 16px; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr minmax(120px, auto); gap: 10px; align-items: center; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: var(--surface2); border-radius: 5px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.floor .cell.pc img.thumb { width: 100%; max-width: 240px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
h3.block-head { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }

/* 0.14: save games editor, app scripts */
.save-entries { display: flex; flex-direction: column; gap: 10px; }
.save-entry { border: 1px solid var(--border2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.save-entry label.grow { flex: 1 1 320px; }
details.game-scripts { border: 1px solid var(--border2); border-radius: 10px; padding: 10px 12px; }
details.game-scripts > summary { cursor: pointer; font-weight: 600; }
details.game-scripts[open] { display: flex; flex-direction: column; gap: 10px; }

.lang-pick { display: block; margin-top: .3rem; font-size: .85em; }
