@font-face { font-family: "HuS Grotesk"; src: url('/fonts/HuSGrotesk-Regular.ttf'); font-weight: 400; }
@font-face { font-family: "HuS Grotesk"; src: url('/fonts/HuSGrotesk-Bold.ttf'); font-weight: 700; }
:root { --brand: #244AA5; --brand-dark: #1B3A85; --tint: #E8EEF8; --text: #0E2334; --muted: #5A6B78; --slate: #5B7A93; --surface: #FFFFFF; --backdrop: #E6EDF3; --nav-text: rgba(255,255,255,.82); --nav-line: rgba(255,255,255,.3); --nav-hover: rgba(255,255,255,.12); --shadow: rgba(20,44,102,.18); --dialog-backdrop: rgba(14,35,52,.55); --ok: #0B7A57; --ok-tint: #E6F7F1; --error: #C62828; --error-back: #FDECEC; --warning: #8A5300; --warning-back: #FFF4E0; --alt: #F5F7F9; --line: #E4E8EC; --border: #778592; }
* { box-sizing: border-box; border-radius: 0; }
body { margin: 0; padding: 12px; font: 14px "HuS Grotesk", sans-serif; color: var(--text); background: var(--backdrop); }
button, input, select { font: inherit; }
button, a { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.shell { display: flex; align-items: flex-start; gap: 12px; }
nav { position: sticky; top: 12px; width: 232px; height: calc(100vh - 24px); flex: 0 0 232px; display: flex; flex-direction: column; overflow-y: auto; padding: 20px 12px 12px; background: var(--brand); color: var(--surface); border-radius: 12px; box-shadow: 0 4px 16px var(--shadow); }
.nav-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px 12px; }
.nav-brand svg { height: 20px; fill: var(--surface); }
.product { font-size: 18px; }
.context { color: var(--nav-text); font-size: 12px; text-transform: uppercase; }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--nav-text); padding: 16px 12px 4px; }
nav a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; color: var(--nav-text); text-decoration: none; }
nav a:hover { background: var(--nav-hover); }
nav a.on { background: var(--surface); color: var(--brand); font-weight: 700; }
nav :focus-visible { outline-color: var(--surface); outline-offset: -2px; }
.nav-footer { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--nav-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.user { flex: 1; overflow-wrap: anywhere; }
.bar-button { color: var(--surface); border: 1px solid var(--surface); background: transparent; min-height: 32px; padding: 0 8px; }
.bar-button:hover { background: var(--nav-hover); }
.embedded .nav-footer { display: none; }
.workspace { flex: 1; min-width: 0; min-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.session { margin-bottom: 12px; }
main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cmd { min-height: 56px; display: flex; align-items: center; padding: 0 20px; background: var(--surface); box-shadow: 0 4px 16px var(--shadow); }
h1 { font-size: 20px; margin: 0; }
h2, .lab { font-size: 15px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.content h2:first-child { margin-top: 0; }
.content { flex: 1; margin-top: 12px; padding: 24px; background: var(--surface); box-shadow: 0 4px 16px var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { width: 140px; height: 72px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.tile.on { border: 2px solid var(--brand); background: var(--tint); color: var(--brand); font-weight: 700; }
.field { display: inline-flex; flex-direction: column; gap: 4px; margin: 0 12px 12px 0; color: var(--muted); }
.field input { height: 32px; border: 1px solid var(--border); padding: 0 8px; color: var(--text); background: var(--surface); }
.btn { min-height: 32px; padding: 0 12px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn:hover, .chip:hover { background: var(--alt); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.btn.primary:hover { background: var(--brand-dark); }
.list .row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row .name { font-weight: 700; min-width: 160px; }
.row .details { color: var(--muted); flex: 1; }
.row.busy .name { color: var(--muted); font-weight: 400; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.message, .session { background: var(--tint); border-left: 3px solid var(--brand); padding: 10px 12px; }
.error { color: var(--error); font-weight: 700; }
dialog { border: 1px solid var(--border); padding: 24px; color: var(--text); max-width: min(500px, 95vw); width: 100%; }
dialog::backdrop { background: var(--dialog-backdrop); }
dialog h2 { font-size: 18px; text-transform: none; letter-spacing: normal; color: var(--text); margin: 0 0 16px; }
dialog .field { display: flex; margin-right: 0; }
dialog .actions { justify-content: flex-end; margin-top: 16px; }
.search-results { display: flex; flex-direction: column; align-items: stretch; }
.search-results button { text-align: left; padding: 8px; border: 1px solid var(--line); background: var(--surface); }
.field select { height: 32px; border: 1px solid var(--border); padding: 0 8px; color: var(--text); background: var(--surface); }
.admin-category { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); }
.admin-category form { flex: 1; }
.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; text-align: left; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody th { background: var(--alt); }
.admin-table small { display: block; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 760px) { .shell { flex-direction: column; } nav { position: static; width: 100%; height: auto; flex: none; } .nav-links, #admin-nav { display: flex; flex-wrap: wrap; align-items: center; } .nav-label { padding: 8px 12px; } .nav-footer { margin-top: 12px; } .workspace { width: 100%; } .grid2 { grid-template-columns: 1fr; gap: 0; } .row { flex-wrap: wrap; } }

.overview-controls { gap: 16px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.overview-filters, .overview-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.overview-filters { flex: 1; }
.overview-chips { margin-right: auto; }
.chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.chip.on { background: var(--tint); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.seg { display: inline-flex; }
.seg .chip + .chip { margin-left: -1px; }
.seg .chip.on { background: var(--tint); color: var(--brand); border-color: var(--brand); }
.timeline-scroll { overflow-x: auto; }
.timeline-table { min-width: 950px; }
.timeline-table.day { min-width: 2100px; }
.timeline-row { display: flex; min-height: 42px; border-bottom: 1px solid var(--line); }
.timeline-heading { min-height: 30px; background: var(--alt); font-weight: 700; }
.timeline-resource { position: sticky; left: 0; z-index: 2; flex: 0 0 180px; padding: 6px 8px; background: var(--surface); }
.timeline-heading .timeline-resource { background: var(--alt); }
.timeline-resource small { display: block; color: var(--muted); }
.timeline-track { display: flex; position: relative; flex: 1; min-width: 0; }
.timeline-column { flex: none; border-left: 1px solid var(--line); padding: 6px 4px; }
.timeline-bar { position: absolute; z-index: 1; top: 6px; bottom: 6px; border: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; text-align: left; background: var(--slate); color: var(--surface); }
.timeline-bar.mine { background: var(--brand); font-weight: 700; }
