:root { --amber:#B8860B; --purple:#3A2551; --ground:#E0E0DB; --line:#CFCFC8; --soft:#E4E4DE; --ink:#1B1622; --muted:#4A4453; --gold:#8A6602;
  --err:#8A2B14; --err-bg:#FBEDE8; --ok:#1E5A3A; --ok-bg:#E6F2EA; --warn:#5C4300; --warn-bg:#FFF8E6; }
* { box-sizing: border-box; }
body { margin:0; background:var(--ground); color:var(--ink); font:14px/1.45 Inter, system-ui, sans-serif; }
a { color:var(--purple); }
h1 { margin:0; font:400 34px/1.15 'Didact Gothic', sans-serif; color:var(--purple); letter-spacing:-0.01em; }
h2 { margin:0; font-size:17px; font-weight:600; color:var(--purple); }
.muted { color:var(--muted); } .small { font-size:13px; } .pad { padding:24px; } .right { text-align:right; } .num { font-variant-numeric:tabular-nums; }
.bar { background:#fff; border-bottom:1px solid var(--line); } .bar.staff { background:var(--purple); border:0; }
.bar-in { max-width:1200px; margin:0 auto; padding:12px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 28px; }
/* The logo (decided 2026-11-15): the word alone, widely spaced, with a gold line under it. */
.brand { font:24px/1 'Didact Gothic', sans-serif; letter-spacing:.22em; color:var(--purple); text-decoration:none; padding:0 0 6px .02em; border-bottom:2px solid var(--gold); display:inline-block; align-self:flex-start; } .brand::after { content:''; margin-right:-.22em; } .staff .brand { color:#fff; border-bottom-color:#D2AE5C; }
nav { display:flex; flex-wrap:wrap; gap:4px; flex:1; }
nav a { padding:12px 14px; text-decoration:none; color:var(--muted); border-bottom:2px solid transparent; }
nav a.on { font-weight:600; color:var(--purple); border-color:var(--gold); }
.staff nav a { color:#E3DBEC; } .staff nav a.on { color:#fff; border-color:#fff; }
.who { font-size:13px; color:var(--muted); text-align:right; } .staff .who, .staff .who button, .staff .who a { color:#E3DBEC; }
main { max-width:1200px; margin:0 auto; padding:28px 24px 56px; display:flex; flex-direction:column; gap:20px; }
.row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; } .between { justify-content:space-between; } .end { align-items:flex-end; }
.cols { display:flex; flex-wrap:wrap; gap:20px; align-items:flex-start; } .cols > .main { flex:2 1 560px; min-width:0; display:flex; flex-direction:column; gap:20px; } .cols > aside { flex:1 1 300px; min-width:0; display:flex; flex-direction:column; gap:20px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.card > .head { padding:16px 20px; border-bottom:1px solid var(--soft); display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; align-items:center; }
.card > .body { padding:16px 20px; display:flex; flex-direction:column; gap:12px; }
.scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; } th { text-align:left; font-size:12px; font-weight:500; color:var(--muted); padding:10px 8px; } td { padding:10px 8px; border-top:1px solid var(--soft); vertical-align:top; }
th:first-child, td:first-child { padding-left:20px; } th:last-child, td:last-child { padding-right:20px; }
tr.bad > td { background:var(--err-bg); } tr.msg > td { border-top:0; padding-top:0; color:var(--err); background:var(--err-bg); }
tr.click { cursor:pointer; } tr.click:hover > td { background:#F6F4F9; }
input[type=text], input[type=email], input[type=password], select { min-height:40px; border:1px solid #B9B9B1; border-radius:6px; padding:0 10px; font:inherit; background:#fff; }
input.q { width:96px; text-align:right; font-variant-numeric:tabular-nums; } input.invalid { border:2px solid var(--err); }
input[type=checkbox] { width:20px; height:20px; accent-color:var(--purple); }
button { font:inherit; cursor:pointer; } button:disabled { cursor:not-allowed; }
.btn { min-height:44px; padding:0 18px; border-radius:8px; border:1px solid var(--purple); background:var(--purple); color:#fff; font-weight:600; }
.btn.ghost { background:#fff; color:var(--purple); } .btn.dash { background:#fff; color:var(--purple); border-style:dashed; border-color:#8C8C84; }
.btn:disabled { background:#EDEDE8; border-color:#B9B9B1; color:var(--muted); }
.link { background:none; border:0; padding:0; color:var(--purple); text-decoration:underline; }
.pill { font-size:13px; font-weight:600; border-radius:999px; padding:4px 12px; background:#EDEDE8; color:var(--muted); white-space:nowrap; }
.pill.ok { background:var(--ok-bg); color:var(--ok); } .pill.err { background:var(--err-bg); color:var(--err); } .pill.warn { background:var(--warn-bg); color:var(--warn); }
.fact { background:#fff; border:1px solid var(--line); border-radius:8px; padding:10px 14px; display:flex; flex-direction:column; justify-content:center; gap:6px; } .fact b { display:block; }
.facts { display:flex; flex-wrap:wrap; gap:12px; align-items:stretch; }
.note { border-radius:8px; padding:12px 14px; } .note.err { background:var(--err-bg); color:var(--err); } .note.ok { background:var(--ok-bg); color:var(--ok); } .note.warn { background:var(--warn-bg); color:var(--warn); }
label.check { display:flex; gap:10px; align-items:flex-start; min-height:44px; }
.login { max-width:420px; margin:10vh auto; } .login .body { gap:16px; padding:28px; }
:focus-visible { outline:3px solid #7B5BA6; outline-offset:2px; }
.nowrap { white-space:nowrap; }
tr.flagged > td { background:var(--warn-bg); } tr.flagmsg > td { border-top:0; padding-top:0; background:var(--warn-bg); color:var(--warn); }
.sendbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; border-top:1px solid var(--soft); padding-top:14px; }
.note + .note { margin-top:0; }
textarea { width:100%; font:inherit; border:1px solid #B9B9B1; border-radius:6px; padding:8px 10px; }
input[type=date] { min-height:40px; border:1px solid #B9B9B1; border-radius:6px; padding:0 10px; font:inherit; background:#fff; }
.extras { display:flex; flex-direction:column; gap:8px; } .extras > label { font-size:13px; color:var(--muted); }
.chip { display:inline-flex; gap:8px; align-items:center; background:#F3F2EE; border:1px solid var(--soft); border-radius:6px; padding:4px 10px; }
.btn.pick { display:inline-flex; align-items:center; min-height:40px; font-weight:500; cursor:pointer; max-width:260px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
details { border:1px solid var(--soft); border-radius:8px; padding:10px 14px; } summary { cursor:pointer; } .evid { display:flex; flex-direction:column; gap:12px; margin-top:12px; }
.evid table th:first-child, .evid table td:first-child { padding-left:0; }

a.btn { display:inline-flex; align-items:center; }
@media print { .bar, .noprint { display:none !important; } body { background:#fff; } main { padding:0; max-width:none; } .card { border-color:#999; break-inside:avoid; } }
.count { display:inline-block; min-width:20px; padding:1px 7px; margin-left:6px; border-radius:999px; background:var(--gold); color:#fff; font-size:12px; font-weight:600; text-align:center; }
.msg { border-radius:8px; padding:10px 14px; background:#F3F2EE; max-width:760px; } .msg.strukt { background:#F0EBF6; margin-left:auto; } .msg.internal { background:var(--warn-bg); border:1px dashed #C9A227; margin-left:auto; }
.card.internal { border:1px dashed #C9A227; } .card.internal > .head { background:var(--warn-bg); }
input[type=radio] { width:18px; height:18px; accent-color:var(--purple); }

#chat-dock { position:fixed; right:18px; bottom:0; z-index:50; font-size:14px; }
.chat-tab { border:0; border-radius:10px 10px 0 0; padding:10px 16px; background:#4B2E6F; color:#fff; font:inherit; font-weight:600; cursor:pointer; box-shadow:0 -2px 10px rgba(0,0,0,.18); }
.chat-panel { width:340px; max-width:calc(100vw - 24px); height:460px; max-height:calc(100vh - 80px); display:flex; flex-direction:column; background:#fff; border:1px solid #D9D5CC; border-bottom:0; border-radius:10px 10px 0 0; box-shadow:0 -2px 16px rgba(0,0,0,.2); }
.chat-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; padding:10px 12px; background:#4B2E6F; color:#fff; border-radius:10px 10px 0 0; } .chat-head .link { color:#fff; }
.chat-list { flex:1; overflow-y:auto; padding:10px; display:flex; flex-direction:column; gap:6px; }
.chat-day { align-self:center; font-size:12px; color:#777; margin:4px 0; }
.chat-msg { align-self:flex-start; max-width:85%; padding:7px 10px; border-radius:12px; background:#F3F2EE; } .chat-msg.mine { align-self:flex-end; background:#F0EBF6; }
.chat-who { font-size:12px; font-weight:600; } .chat-time { font-size:11px; color:#777; text-align:right; }
.chat-write { display:flex; gap:6px; padding:8px; border-top:1px solid #E6E2D9; align-items:flex-end; } .chat-write textarea { flex:1; resize:none; margin:0; }
@media print { #chat-dock { display:none; } }
.chat-panel.over { outline:3px dashed #C9A227; outline-offset:-3px; } .chat-files { margin-top:4px; font-size:13px; } .chat-msg a { word-break:break-all; }
.chat-pending { display:flex; flex-wrap:wrap; gap:6px; padding:6px 8px 0; align-items:center; }
.chat-attach { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid #D9D5CC; border-radius:8px; font-size:20px; cursor:pointer; color:#4B2E6F; background:#fff; }
.who { display:flex; align-items:center; gap:12px; justify-content:flex-end; } .menu { position:relative; }
.gear { border:1px solid transparent; background:none; font-size:20px; line-height:1; padding:6px 8px; border-radius:8px; cursor:pointer; color:inherit; } .gear:hover, .gear[aria-expanded=true] { border-color:currentColor; }
.menu-list { position:absolute; right:0; top:calc(100% + 6px); min-width:210px; background:#fff; border:1px solid #D9D5CC; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,.18); padding:6px 0; z-index:60; text-align:left; }
.menu-list a, .menu-list button, .staff .who .menu-list a, .staff .who .menu-list button { display:block; width:100%; padding:8px 12px; border:0; background:none; font:inherit; font-size:14px; text-align:left; color:#222; text-decoration:none; cursor:pointer; }
.menu-list a:hover, .menu-list button:hover { background:#F3F2EE; } .staff .who .menu-list .muted { color:#666; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:14px; } .tiles .card { margin:0; } .tiles .body { display:flex; flex-direction:column; gap:2px; }
.tile-link { text-decoration:none; color:inherit; display:block; border-radius:12px; } .tile-link .card { height:100%; transition:border-color .15s, box-shadow .15s; } .tile-link:hover .card, .tile-link:focus-visible .card { border-color:var(--purple); box-shadow:0 2px 10px rgba(0,0,0,.08); }
section.lit { outline:3px solid #C9A227; outline-offset:2px; }
.timeline .head { flex-wrap:wrap; gap:8px 18px; } .tl-legend { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13px; color:var(--muted); } .tl-legend span { display:inline-flex; align-items:center; gap:6px; }
.tl { padding:14px 22px 6px 18px; } .tl-row { display:flex; align-items:stretch; } .tl-name { flex:0 0 150px; padding:10px 12px 10px 0; line-height:1.25; }
.tl-track { position:relative; flex:1; min-height:74px; border-left:1px solid var(--line); } .tl-months .tl-track, .tl-foot .tl-track { min-height:22px; border-left:0; }
.tl-month { position:absolute; top:0; font-size:12px; color:var(--muted); padding-left:6px; border-left:1px solid var(--line); height:22px; white-space:nowrap; }
.tl-line { position:absolute; left:0; right:0; top:21px; height:2px; background:var(--line); }
.tl-today { position:absolute; top:-4px; bottom:-4px; width:2px; background:var(--gold); opacity:.8; } .tl-todaylabel { position:absolute; top:2px; transform:translateX(-50%); font-size:12px; font-weight:600; color:var(--gold); }
.tl-mark { position:absolute; top:11px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:3px; text-decoration:none; color:var(--ink); padding:0 4px; border-radius:8px; }
a.tl-mark:hover, a.tl-mark:focus-visible { background:var(--soft); outline:none; } a.tl-mark:hover .tl-dot { transform:scale(1.15); }
.tl-dot { display:inline-block; width:18px; height:18px; border-radius:50%; border:3px solid var(--purple); background:#fff; box-sizing:border-box; transition:transform .12s; flex:none; }
.tl-dot.done { background:var(--ok); border-color:var(--ok); } .tl-dot.in { border-color:var(--ok); background:var(--ok-bg); } .tl-dot.now { background:var(--purple); border-color:var(--purple); box-shadow:0 0 0 4px rgba(58,37,81,.16); }
.tl-dot.late { background:var(--err); border-color:var(--err); box-shadow:0 0 0 4px rgba(138,43,20,.18); } .tl-dot.later { border-color:#B9B9B0; background:#fff; }
.tl-label { font-size:13px; font-weight:600; line-height:1.1; } .tl-date { font-size:11px; color:var(--muted); line-height:1.1; white-space:nowrap; } .tl-mark.later .tl-label { color:var(--muted); font-weight:400; } .tl-mark.late .tl-label, .tl-mark.late .tl-date { color:var(--err); }
.tl-legend .tl-dot { width:12px; height:12px; border-width:2px; box-shadow:none; }
@media print { .tl { min-width:0 !important; } }
.tl-dot.annual { border-radius:3px; transform:rotate(45deg); background:var(--gold); border-color:var(--gold); width:15px; height:15px; margin:2px 0 1px; } .tl-legend .tl-dot.annual { width:10px; height:10px; margin:0 2px; } .tl-mark.annual .tl-label { color:var(--gold); }
.tl-label { white-space:nowrap; }
/* State colours (README, Design rules): red = act now, amber = act soon, green = nothing to do, purple = neutral. A coloured edge and number, never a filled tile; the words always say the same thing. */
.card[class*="state-"] { border-left-width:5px; } .state-num { color:var(--purple); }
.card.state-red { border-left-color:var(--err); } .card.state-red .state-num { color:var(--err); }
.card.state-amber { border-left-color:var(--amber); } .card.state-amber .state-num { color:var(--warn); }
.card.state-green { border-left-color:#9CC3AC; } .card.state-none { border-left-color:var(--line); }
.tl-dot.soon { background:var(--amber); border-color:var(--amber); box-shadow:0 0 0 4px rgba(184,134,11,.18); } .tl-mark.soon .tl-label { color:var(--warn); }
.chat-tools { display:flex; flex-direction:column; align-items:flex-end; gap:2px; white-space:nowrap; } .chat-tools .link { color:#fff; font-size:13px; }
tr.group th { background:var(--soft); color:var(--purple); font-size:14px; font-weight:600; text-align:left; padding:8px 14px; border-top:1px solid var(--line); }
.chat-sound { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#fff; cursor:pointer; } .chat-sound input { margin:0; accent-color:#C9A227; }

/* Narrow screens: the menu folds into one button that shows the current page; lists scroll sideways inside their card. */
.navtoggle { display:none; }
@media (max-width:760px) {
  .bar-in { padding:8px 16px; gap:8px 12px; flex-wrap:wrap; }
  .brand { font-size:20px; }
  .navtoggle { display:inline-flex; align-items:center; gap:8px; margin-left:auto; padding:8px 12px; border:1px solid currentColor; border-radius:8px; background:none; font:inherit; font-weight:600; color:var(--purple); cursor:pointer; }
  .staff .navtoggle { color:#fff; }
  .who > span { display:none; }
  nav { display:none; order:10; flex:1 0 100%; flex-direction:column; flex-wrap:nowrap; gap:0; padding-bottom:6px; }
  nav.open { display:flex; }
  nav a { padding:13px 4px; border-bottom:1px solid var(--line); } .staff nav a { border-bottom-color:rgba(255,255,255,.18); }
  nav a.on { border-color:var(--line); } .staff nav a.on { border-bottom-color:rgba(255,255,255,.18); }
  main { padding:18px 14px 80px; gap:16px; }
  h1 { font-size:28px; }
  td, th { white-space:nowrap; padding-left:10px; padding-right:10px; } td:first-child, th:first-child { white-space:normal; min-width:150px; }
  .tiles { display:grid; grid-template-columns:1fr 1fr; gap:10px; } .tiles > * { min-width:0; } .tiles .card .body { padding:12px 14px; }
  .tiles .card .body > span[style*="font-size:26px"] { font-size:22px !important; }
  .card .head, .card .body { padding-left:16px; padding-right:16px; }
  .btn { padding-top:11px; padding-bottom:11px; }
  input[type=text], input[type=date], input[type=email], input[type=password], select, textarea { font-size:16px; max-width:100%; }   /* 16px: the phone does not zoom in on focus */
  #chat-dock { right:8px; }
}
