:root {
  --ink:#16303f; --ink-2:#2b4a5c; --muted:#5a7080; --paper:#f4f7f9; --white:#fff; --line:#d6e0e6; --line-2:#e7edf1;
  --accent:#006d78; --accent-2:#e3f1f2; --accent-ink:#00545d;
  --good:#1f7a4d; --good-bg:#e5f4ec; --warn:#8a5a00; --warn-bg:#fdf1d8; --bad:#a3262a; --bad-bg:#fbe7e7;
  --info:#1f5fa3; --info-bg:#e6f0fb; --neutral:#4b5f6c; --neutral-bg:#eef2f4;
  --radius:8px; --shadow:0 1px 2px rgba(22,48,63,.06), 0 4px 16px rgba(22,48,63,.06);
  --side:248px;
}
* { box-sizing:border-box }
html { scroll-padding-top:80px }
/* The gradient paints the sidebar column so it fills the page however long the content is. */
body { margin:0; color:var(--ink); font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
  background:linear-gradient(to right, var(--ink) var(--side), var(--paper) var(--side)) }
button,input,select,textarea { font:inherit; color:inherit }
a { color:var(--accent) }
:focus-visible { outline:3px solid #e2a74c; outline-offset:2px }
[hidden] { display:none!important }
.spacer { flex:1 }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
.skip { position:absolute; left:-999px; top:8px; background:white; padding:8px 12px; z-index:50 }
.skip:focus { left:8px }

/* ---- buttons ---- */
button, .button { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); background:white; color:var(--ink);
  padding:8px 14px; border-radius:6px; cursor:pointer; text-decoration:none; font-weight:500; line-height:1.3; white-space:nowrap }
button:hover:not(:disabled), .button:hover { border-color:var(--accent); color:var(--accent-ink) }
button:disabled { opacity:.55; cursor:not-allowed }
button.primary, .button.primary { background:var(--accent); color:white; border-color:var(--accent) }
button.primary:hover:not(:disabled) { background:var(--accent-ink); color:white }
button.danger { color:var(--bad); border-color:#e8b8b8 }
button.danger.solid { background:var(--bad); color:white; border-color:var(--bad) }
button.good { color:var(--good); border-color:#a9d6bd }
button.ghost { border-color:transparent; background:transparent }
button.danger-text { color:var(--bad) }
button.danger-text:hover { background:var(--bad-bg) }
.push-right { margin-left:auto }
button.small, .button.small { padding:4px 10px; font-size:13px }
button.link { border:0; background:none; padding:0; color:var(--accent); font-weight:500; text-decoration:underline; white-space:normal; text-align:left }
kbd { font:12px ui-monospace,monospace; border:1px solid var(--line); border-bottom-width:2px; border-radius:4px; padding:0 5px; background:white; color:var(--muted) }
button kbd { margin-left:4px }
button.primary kbd { background:transparent; color:#cfe9eb; border-color:#4b9aa2 }

/* ---- sidebar ---- */
aside { position:fixed; inset:0 auto 0 0; width:var(--side); background:var(--ink); color:white; padding:20px 14px;
  display:flex; flex-direction:column; gap:16px; overflow-y:auto; z-index:10 }
.brand-row { display:flex; align-items:center; justify-content:space-between; gap:8px }
.brand { display:block; line-height:0; padding:2px 4px }
.brand img { width:200px; height:auto; max-width:100% }
aside small { color:#a9c0cc }
#globalNav, #nav { display:grid; gap:2px }
#globalNav { padding-bottom:14px; border-bottom:1px solid #2c4c60 }
#nav h3 { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#88a6b5; margin:12px 10px 4px; font-weight:600 }
#nav a, #globalNav a { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 10px; border-radius:6px; color:#d6e4eb; text-decoration:none }
#nav a:hover, #globalNav a:hover { background:#21445a }
#nav a.active, #globalNav a.active { background:#2f5469; color:white; box-shadow:inset 3px 0 #70c6c9 }
.count { font-size:12px; background:#2f5469; color:#d6e4eb; padding:0 7px; border-radius:10px; min-width:22px; text-align:center }
#nav a.active .count { background:#70c6c9; color:var(--ink) }
.project-card { display:grid; gap:2px; padding:12px; border-radius:var(--radius); background:#21445a }
.project-card strong { font-size:15px; overflow-wrap:anywhere }
.foot { margin-top:auto; display:grid; gap:8px }
#userBox:empty { display:none }
#userBox { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; color:#d6e4eb }
#userBox button { color:#d6e4eb; border-color:#3d6075; background:transparent }
#menu { display:none; color:white; border-color:#3d6075 }

/* ---- main ---- */
main { margin-left:var(--side); min-width:0; min-height:100vh; background:var(--paper) }
header { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:rgba(255,255,255,.92); backdrop-filter:blur(6px); border-bottom:1px solid var(--line); padding:12px 28px; min-height:52px }
.crumbs { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:13px }
.crumbs a { text-decoration:none }
.crumbs span[aria-hidden] { color:var(--muted) }
.crumbs [aria-current] { font-weight:600 }
#content { padding:24px 28px 80px; max-width:1440px; margin:auto; outline:0 }
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:8px }
.page-head .actions { margin:4px 0 0 }
h1 { font-size:26px; letter-spacing:-.5px; margin:0 0 4px }
h2 { font-size:16px; margin:0 0 12px }
h3 { font-size:14px; margin:0 0 8px }
p { line-height:1.55; margin:0 0 10px }
small,.muted { color:var(--muted) }
code { font:12.5px ui-monospace,monospace; background:var(--neutral-bg); padding:1px 5px; border-radius:4px }
section, .card { background:white; border:1px solid var(--line); padding:20px; border-radius:var(--radius); margin:16px 0; min-width:0; box-shadow:var(--shadow) }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px }
.section-head h2 { margin:0 }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start }
.grid > section { margin:0 }
.grid.wide-left { grid-template-columns:minmax(0,3fr) minmax(0,2fr) }
.stack { display:grid; gap:16px }
.stack > section { margin:0 }
.form { max-width:640px }
.form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px }

/* ---- form controls ---- */
label { display:block; font-weight:600; margin:12px 0 5px }
label.check { display:flex; gap:8px; align-items:flex-start; font-weight:500 }
label.check input { margin-top:3px }
.hint { display:block; font-size:12.5px; color:var(--muted); margin-top:4px; font-weight:400 }
input,select,textarea { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:white }
input:focus, select:focus, textarea:focus { border-color:var(--accent); outline:2px solid var(--accent-2); outline-offset:0 }
input[type=checkbox], input[type=radio] { width:auto; accent-color:var(--accent) }
textarea { min-height:100px; resize:vertical; line-height:1.5 }
textarea.code, pre { font:12.5px/1.5 ui-monospace,monospace }
pre { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--paper); border:1px solid var(--line-2); border-radius:6px; padding:12px; max-height:520px; overflow:auto; margin:0 }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:14px 0 0 }
.actions .spacer { flex:1 }

/* ---- pills, badges, stats ---- */
.pill { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:600;
  background:var(--neutral-bg); color:var(--neutral); white-space:nowrap; vertical-align:middle }
.pill.good { background:var(--good-bg); color:var(--good) }
.pill.warn { background:var(--warn-bg); color:var(--warn) }
.pill.bad { background:var(--bad-bg); color:var(--bad) }
.pill.info { background:var(--info-bg); color:var(--info) }
.pills { display:flex; gap:6px; flex-wrap:wrap; align-items:center }
.error { color:var(--bad) }
.tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0 }
.tile { display:block; background:white; border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; color:var(--ink); text-decoration:none; text-align:left; box-shadow:var(--shadow); white-space:normal }
a.tile:hover, button.tile:hover { border-color:var(--accent) }
.tile small { display:block }
.tile b { display:block; font-size:26px; margin-top:4px; letter-spacing:-.5px }
.bar { display:flex; height:8px; border-radius:6px; overflow:hidden; background:var(--line-2); margin:8px 0 }
.bar span { display:block; height:100% }
.bar .good { background:var(--good) } .bar .bad { background:#d9787b } .bar .neutral { background:#9fb3bf } .bar .info { background:var(--info) }
.legend { display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--muted) }
.legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px }
.legend .good { background:var(--good) } .legend .bad { background:#d9787b } .legend .neutral { background:#9fb3bf }
progress { width:100%; height:8px; accent-color:var(--accent) }

/* ---- empty states, next step, checklist ---- */
.empty { text-align:center; padding:28px 16px; color:var(--muted) }
.empty strong { display:block; color:var(--ink); font-size:15px; margin-bottom:4px }
.empty .actions { justify-content:center }
.next-step { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  background:linear-gradient(135deg,#e3f1f2,#f2f8f9); border-color:#b8dcdf }
.next-step small { text-transform:uppercase; letter-spacing:.06em; font-weight:600; color:var(--accent-ink) }
.next-step h2 { margin:2px 0 4px; font-size:18px }
.next-step p { margin:0 }
.checklist { list-style:none; margin:0; padding:0; display:grid; gap:2px }
.checklist li { display:flex; gap:10px; align-items:center; padding:7px 4px; border-bottom:1px solid var(--line-2) }
.checklist li:last-child { border:0 }
.checklist .tick { width:20px; height:20px; border-radius:50%; border:2px solid var(--line); display:inline-grid; place-items:center; font-size:12px; flex:none }
.checklist .done .tick { background:var(--good); border-color:var(--good); color:white }
.checklist .done span.label { color:var(--muted); text-decoration:line-through }
.pipeline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px }
.pipeline a { display:block; padding:14px; border:1px solid var(--line); border-radius:var(--radius); text-decoration:none; color:var(--ink); position:relative }
.pipeline a:hover { border-color:var(--accent) }
.pipeline small { display:block }
.pipeline strong { display:block; font-size:15px; margin:2px 0 }
.pipeline .num { font-size:22px; font-weight:700 }

/* ---- tables ---- */
.toolbar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px }
.toolbar input[type=search] { max-width:280px }
.toolbar select { width:auto; max-width:220px }
.toolbar .spacer { flex:1 }
.segmented { display:inline-flex; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:white }
.segmented button { border:0; border-radius:0; border-right:1px solid var(--line); padding:6px 12px }
.segmented button:last-child { border-right:0 }
.segmented button[aria-pressed=true] { background:var(--accent-2); color:var(--accent-ink); font-weight:600 }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius) }
table { width:100%; border-collapse:collapse; background:white }
th, td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line-2); vertical-align:top }
th { font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:#f8fafb; font-weight:600; white-space:nowrap }
th button.sort { border:0; background:none; padding:0; font:inherit; color:inherit; text-transform:inherit; letter-spacing:inherit }
tr:last-child td { border-bottom:0 }
tbody tr:hover { background:#f8fbfc }
tr.selected { background:#eef7f8 }
td.check, th.check { width:36px }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums }
td .clip { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-width:520px }
.bulkbar { position:sticky; top:60px; z-index:4; display:flex; gap:8px; flex-wrap:wrap; align-items:center; background:var(--ink); color:white;
  padding:8px 12px; border-radius:var(--radius); margin-bottom:12px; box-shadow:var(--shadow) }
.bulkbar button { background:transparent; color:white; border-color:#3d6075 }
.bulkbar button:hover:not(:disabled) { color:white; border-color:#70c6c9 }
.bulkbar strong { margin-right:6px }

/* ---- lists ---- */
article { border-top:1px solid var(--line-2); padding:12px 0; overflow-wrap:anywhere }
article:first-of-type { border-top:0; padding-top:0 }
.job .head { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:4px }
.recipe-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px }
.recipe-grid .card { margin:0; display:flex; flex-direction:column; gap:6px }
.recipe-grid .card p.instr { color:var(--muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:0 }
.recipe-grid .card .actions { margin-top:auto; padding-top:8px }
.lib-group { border:0; padding:0; margin:18px 0 0 }
.lib-group legend { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding:0; margin-bottom:6px }
.lib-item { display:flex; gap:10px; align-items:flex-start; justify-content:space-between; padding:10px 0; border-top:1px solid var(--line) }
.lib-item label.check { margin:0; flex:1; cursor:pointer }
.lib-item label.check > span { display:flex; flex-direction:column; gap:2px }
.lib-item .hint { margin:0 }
.lib-item label.check > span > .pill { align-self:flex-start; margin:2px 0 }
.lib-item.added label.check { cursor:default; opacity:.75 }
.lib-item button { flex:none }

/* ---- projects ---- */
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:14px; margin:16px 0 }
.project-tile { display:block; background:white; border:1px solid var(--line); border-radius:var(--radius); padding:18px; color:var(--ink); text-decoration:none; box-shadow:var(--shadow) }
.project-tile:hover { border-color:var(--accent) }
.project-tile strong { display:block; font-size:16px; margin-bottom:2px; overflow-wrap:anywhere }
.project-tile dl { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:14px 0 0 }
.project-tile dt { font-size:12px; color:var(--muted) }
.project-tile dd { margin:0; font-size:18px; font-weight:700 }

/* ---- dropzone ---- */
.dropzone { display:grid; place-items:center; gap:6px; border:2px dashed var(--line); border-radius:var(--radius); padding:26px; text-align:center;
  background:var(--paper); cursor:pointer; font-weight:500; margin:0 }
.dropzone.over { border-color:var(--accent); background:var(--accent-2) }
.dropzone input { position:absolute; width:1px; height:1px; opacity:0 }
.file-list { list-style:none; padding:0; margin:8px 0 0; font-size:13px }
.file-list li { display:flex; justify-content:space-between; gap:8px; padding:4px 0; border-bottom:1px solid var(--line-2) }

/* ---- review ---- */
.review-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px }
.review-bar select { width:auto; max-width:240px }
.focus-summary { margin:0; color:var(--muted); display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; min-width:0 }
.focus-summary b { color:var(--ink) }
.review-bar .reviewer { display:flex; align-items:center; gap:6px }
.review-bar .reviewer label { margin:0; font-weight:500; white-space:nowrap }
.review-bar .reviewer input { width:170px }
.review { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start }
.review > section { margin:0 }
.evidence { position:sticky; top:68px; max-height:calc(100vh - 160px); display:flex; flex-direction:column }
.evidence pre { flex:1; max-height:none; font:13.5px/1.6 system-ui,sans-serif; white-space:pre-wrap; background:white; border:0; padding:0 }
mark { background:#fff1b8; color:inherit; border-radius:2px; padding:0 1px }
mark.quote { background:#c8ecd6 }
.editor .field { margin-bottom:10px }
.editor .field label { display:flex; gap:8px; align-items:center; margin:8px 0 4px; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted) }
.editor textarea { min-height:70px }
.role-user textarea { background:#f7fafc }
.flags { display:grid; gap:8px; margin:10px 0 }
.flag-box { border:1px solid var(--line); border-radius:6px; padding:10px 12px; background:#fffdf6 }
.flag-box.bad { background:#fff8f8; border-color:#f0caca }
.flag-box.good { background:#f6fcf8; border-color:#c3e5cf }
.flag-box ul { margin:6px 0 0; padding-left:18px }
.decision { position:sticky; bottom:0; z-index:3; display:flex; gap:8px; flex-wrap:wrap; align-items:center; background:rgba(255,255,255,.96);
  border-top:1px solid var(--line); margin:16px -20px -20px; padding:12px 20px; border-radius:0 0 var(--radius) var(--radius) }
.decision button { padding:8px 12px }
.decision #prevRec, .decision #nextRec { padding:8px 10px }
.decision .pos { color:var(--muted); font-variant-numeric:tabular-nums; margin-right:auto }
.history { list-style:none; padding:0; margin:8px 0 0; font-size:13px }
.history li { padding:6px 0; border-bottom:1px solid var(--line-2) }
.cheats { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; align-items:center }

/* ---- dialogs ---- */
dialog { border:0; padding:0; border-radius:var(--radius); box-shadow:0 20px 60px rgba(0,0,0,.25); color:var(--ink); max-width:min(560px,calc(100vw - 24px)); width:100% }
dialog::backdrop { background:rgba(22,48,63,.45) }
dialog .dlg-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line) }
dialog .dlg-head h2 { margin:0 }
dialog .dlg-body { padding:16px 20px 20px }
dialog .dlg-foot { display:flex; justify-content:flex-end; gap:8px; padding:12px 20px; border-top:1px solid var(--line); background:#f8fafb }
dialog.drawer { margin:0 0 0 auto; height:100vh; max-height:100vh; max-width:min(640px,100vw); border-radius:0; display:none; flex-direction:column }
dialog.drawer[open] { display:flex }
dialog.drawer.wide { max-width:min(960px,100vw) }
dialog.drawer .dlg-body { overflow-y:auto; flex:1 }

/* ---- toasts ---- */
.toasts { position:fixed; right:20px; bottom:20px; display:grid; gap:8px; z-index:100; max-width:min(440px,calc(100vw - 40px)) }
.toast { display:flex; gap:10px; align-items:center; background:var(--ink); color:white; padding:10px 12px 10px 14px; border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(0,0,0,.2); border-left:4px solid #70c6c9; animation:rise .18s ease-out; white-space:pre-wrap; overflow-wrap:anywhere }
.toast.bad { border-left-color:#ff8a8d }
.toast.warn { border-left-color:#f2c060 }
.toast span { flex:1 }
.toast button { background:transparent; color:white; border-color:#3d6075; padding:4px 10px }
.toast button.x { border:0; padding:2px 6px; font-size:16px }
@keyframes rise { from { transform:translateY(8px); opacity:0 } }
@media (prefers-reduced-motion:reduce) { .toast { animation:none } }

/* ---- responsive ---- */
@media(max-width:1100px) {
  .tiles, .pipeline { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .review { grid-template-columns:1fr }
  .evidence { position:static; max-height:none }
  .evidence pre { max-height:320px; overflow:auto }
}
@media(max-width:850px) {
  body { background:var(--paper) }
  aside { position:static; width:auto; padding:12px 14px; gap:10px; overflow:visible }
  aside #nav, aside .project-card { display:none }
  aside.open #nav { display:grid; grid-template-columns:repeat(2,1fr) }
  aside.open #nav h3 { grid-column:1/-1 }
  #globalNav { grid-template-columns:repeat(2,1fr); padding-bottom:0; border:0 }
  #globalNav a { justify-content:center }
  aside .foot { display:none }
  #menu { display:inline-flex }
  .brand img { width:140px }
  main { margin:0 }
  header { padding:10px 16px; position:static }
  #content { padding:16px 16px 90px }
  .grid, .grid.wide-left, .form-row { grid-template-columns:1fr }
  .decision { position:fixed; left:0; right:0; bottom:0; margin:0; border-radius:0; box-shadow:0 -4px 16px rgba(0,0,0,.08); flex-wrap:nowrap; gap:6px; padding:10px 12px }
  .decision kbd { display:none }
  .decision .pos { font-size:12px }
  .bulkbar { top:0 }
  .toasts { left:12px; right:12px; bottom:76px; max-width:none }
}
@media(max-width:420px) {
  .tiles .tile { padding:10px 12px }
  .tile b { font-size:22px }
  h1 { font-size:22px }
  section { padding:14px }
  .decision { margin:0 }
  .review-bar .reviewer input { width:120px }
}

/* pagination */
.pager { display:flex; align-items:center; gap:8px 14px; flex-wrap:wrap; margin-top:12px; font-size:13px; color:var(--muted) }
.pager .pages { display:flex; gap:2px; align-items:center; margin-left:auto }
.pager .pages button { min-width:30px; justify-content:center }
.pager .pages button.current { background:var(--accent-2); color:var(--accent-ink); border-color:transparent; font-weight:700 }
.pager .pages button:disabled { opacity:.4 }
.pager .gap { padding:0 4px }
.pager-size { display:flex; align-items:center; gap:6px; margin:0; font-weight:400 }
.pager-range + .pager-size { margin-left:auto }
.pager-size select { width:auto; padding:3px 6px; font-size:13px }
.pick-list { max-height:none }
@media (max-width: 700px) { .pager .pages { margin-left:0; order:3; width:100% } }

/* recipe form: suggest with AI */
.label-row { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:12px 0 5px }
.label-row label { margin:0 }
.suggest-note { margin-top:10px; padding:10px 12px; border-radius:8px; background:var(--accent-2); color:var(--accent-ink); font-size:13.5px }
.suggest-note p { margin:0 0 8px }

/* 3D scenes (static/js/scene3d.js): decoration, fading in once the models have loaded */
.scene { position:relative; pointer-events:auto }
.scene canvas { display:block; width:100%; height:100%; opacity:0; transition:opacity .6s ease }
.scene.scene-ready canvas { opacity:1 }
.empty .scene { width:min(360px,100%); height:200px; margin:0 auto 10px }
.empty .scene-hero { width:min(560px,100%); height:280px }
.welcome { background:radial-gradient(120% 120% at 50% 0%, #e3f1f2 0%, #fff 60%) }
.working { display:flex; align-items:center; gap:4px; color:var(--muted) }
.working { flex-direction:row-reverse }
.working .scene { width:84px; height:84px; margin:-12px -8px -36px 0 }
aside small a { color:inherit }
@media (prefers-reduced-motion: reduce) { .scene canvas { transition:none } }

/* Dashboard (all projects) */
.dash-tiles { grid-template-columns:repeat(5,minmax(0,1fr)) }
.dash-tiles .tile small.muted { margin-top:2px; font-size:12px; overflow-wrap:anywhere }
.pill.neutral { background:var(--neutral-bg); color:var(--neutral) }
a.pill { text-decoration:none }
a.pill:hover { text-decoration:underline }
.progress-rows { display:grid; gap:6px }
.progress-row { display:grid; grid-template-columns:minmax(0,180px) minmax(0,1fr) minmax(0,150px); gap:12px; align-items:center; padding:4px 0 }
.progress-row > a { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.progress-row small { color:var(--muted); text-align:right; white-space:nowrap }
.progress-row .track .bar { width:max(var(--w), 6px); margin:0; height:10px; gap:2px; background:none }
.progress-row .track .bar span:first-child { border-radius:4px 0 0 4px }
.progress-row .track .bar span:last-child { border-radius:0 4px 4px 0 }
.progress-row .track .bar span:only-child { border-radius:4px }
.activity { position:relative; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:6px; height:170px; padding:18px 0 0; border-bottom:1px solid var(--line) }
.activity .axis-top { position:absolute; top:0; left:0; font-size:11.5px; color:var(--muted) }
.activity .day { display:grid; grid-template-rows:1fr auto; min-width:0; cursor:default; border-radius:4px }
.activity .day:hover { background:var(--accent-2) }
.activity .bars { display:flex; align-items:flex-end; justify-content:center; gap:2px; height:100% }
.activity .bars span { width:min(10px, 40%); border-radius:4px 4px 0 0 }
.activity .day small { height:0; overflow:visible; white-space:nowrap; font-size:11px; color:var(--muted); text-align:center; transform:translateY(4px) }
.activity { margin-bottom:22px }
.activity .day:last-of-type small { text-align:right } .activity .day:first-of-type small { text-align:left }
.act-generated { background:#00909c } .act-reviewed { background:#b86e12 }
.legend i.act-generated { background:#00909c } .legend i.act-reviewed { background:#b86e12 }
.all-projects { background:none; border:0; box-shadow:none; padding:0; margin-top:24px }
@media(max-width:1100px) { .dash-tiles { grid-template-columns:repeat(3,minmax(0,1fr)) } }
@media(max-width:700px) {
  .dash-tiles { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .progress-row { grid-template-columns:minmax(0,1fr) auto }
  .progress-row .track { grid-column:1/-1; grid-row:2 }
}
