/* BEC Builder — structuredcollaboration.com site theme, shared with the other
   Structured Collaboration tools so they look like one family. */
:root {
  --paper: #F7F3EC; --stone: #E9DFCF; --ink: #201E1D; --ink-2: #4A4541; --muted: #706A64;
  --petrol: #1E4B55; --petrol-dark: #13343B; --label: #4F7A80; --mist: #A9C7C9; --mist-pale: #E3ECEC;
  --surface: #FFFFFF; --surface-2: #F1EADF; --line: #E2D8C8; --line-strong: #C9B9A3;
  --danger: #8E2A2A; --danger-pale: #F3E1E1; --amber: #9A6B1F; --amber-pale: #F5E9D2;
  --font: Arial, Helvetica, sans-serif; --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--petrol); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.brand { color: var(--ink); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand-text small { color: var(--label); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.brand-text strong { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -.02em; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--ink); background: transparent; cursor: pointer;
  font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.btn.primary:hover { background: var(--petrol-dark); }
.btn.small { padding: 5px 9px; font-size: 11px; }
.btn.quiet { border-color: var(--line-strong); color: var(--ink-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 26px; height: 26px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; font-size: 13px; line-height: 1; padding: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.del:hover { color: var(--danger); }
.linkish { all: unset; cursor: pointer; color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }
.add { all: unset; cursor: pointer; color: var(--label); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.add:hover { color: var(--petrol); text-decoration: underline; }

main { max-width: 1500px; margin: 0 auto; padding: 22px 20px 40px; }
.site-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1500px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.site-foot span:first-child { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--ink); }

/* Home */
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; margin: 6px 0 10px; max-width: 760px; }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 760px; margin: 0 0 18px; }
.cascade-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 26px; font-family: var(--serif); font-size: 18px; }
.cascade-strip span { border: 1px solid var(--ink); padding: 6px 12px; }
.cascade-strip span.out { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.cascade-strip b { color: var(--muted); font-weight: 400; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; }
.card p, .card li { color: var(--ink-2); font-size: 14.5px; }
.card ul { margin: 0; padding-left: 18px; }
.card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 4px 8px; background: var(--stone); }
.tag.dark { background: var(--ink); color: var(--paper); }
.soon { font-family: var(--serif); color: var(--ink-2); }
.recent { margin-top: 26px; }
.recent h3, .where h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 10px; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: -1px; }
.recent-item a { font-weight: 600; text-decoration: none; color: var(--ink); }
.recent-item small { color: var(--muted); margin-left: auto; }
.where { margin: 28px 0 8px; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.where-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.where-grid b { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--label); margin-bottom: 4px; }
.where-grid p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Editor head */
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.title-input { flex: 1 1 380px; font-family: var(--serif); font-size: 30px; letter-spacing: -.02em; border: 1px solid transparent; background: transparent; padding: 2px 4px; min-width: 0; }
.title-input:hover, .title-input:focus { border-color: var(--line-strong); background: var(--surface); outline: none; }
.mode-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; background: var(--stone); }
.sync { font-size: 13px; color: var(--muted); }
.meta-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--label); }
label.f input, label.f select, label.f textarea { font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); border: 1px solid var(--line-strong); background: var(--surface); padding: 7px 9px; }
.notice { background: var(--mist-pale); color: var(--petrol-dark); padding: 10px 14px; margin: 0 0 14px; font-size: 14px; border-left: 3px solid var(--label); }
.notice.nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notice.nudge .acts { display: flex; gap: 8px; }
.notice.warn { background: var(--amber-pale); color: #5A3E10; border-left-color: var(--amber); }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-strong); margin: 4px 0 16px; overflow-x: auto; }
.tab { all: unset; cursor: pointer; padding: 10px 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--petrol); }
.tab .count { font-weight: 400; color: var(--label); margin-left: 4px; }

/* Panels and editable text */
.panel { background: var(--surface); border: 1px solid var(--line-strong); margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0; }
.panel-head .spacer { flex: 1; }
.panel-head .hint { font-size: 13px; color: var(--muted); }
.panel-body { padding: 12px 14px; }
textarea.t, input.t { width: 100%; border: 1px solid transparent; background: transparent; padding: 4px 6px; resize: none; overflow: hidden; line-height: 1.35; font-size: 14px; }
textarea.t:hover, input.t:hover { border-color: var(--line); background: #FBF8F3; }
textarea.t:focus, input.t:focus { border-color: var(--petrol); background: #fff; outline: none; }
textarea.t::placeholder, input.t::placeholder { color: #A59E96; }
.purpose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.purpose > div { padding: 10px 14px; border-right: 1px solid var(--line); }
.purpose > div:last-child { border-right: none; }
.lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--label); margin: 0 0 4px; }
.lbl.light { color: var(--muted); }

/* The cascade */
.cascade-head { display: grid; grid-template-columns: 24% 30.4% 45.6%; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; position: sticky; top: 58px; z-index: 5; }
.cascade-head div { padding: 9px 12px; border-right: 1px solid rgba(255,255,255,.2); }
.cascade-head small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mist); font-size: 12px; margin-top: 2px; }
.objective { display: grid; grid-template-columns: 24% 76%; background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--petrol); margin-top: 12px; }
.obj-cell { padding: 10px 12px; border-right: 1px solid var(--line); background: #FCFAF6; }
.num { font-family: var(--serif); font-size: 18px; color: var(--petrol); min-width: 34px; display: inline-block; }
.num.small { font-size: 15px; min-width: 42px; }
.item-head { display: flex; align-items: flex-start; gap: 4px; }
.item-head textarea.t { flex: 1; }
.item-head.obj textarea.t { font-family: var(--serif); font-size: 17px; }
.tools { display: inline-flex; opacity: 0; transition: opacity .15s; }
.objective:hover > .obj-cell .item-head > .tools, .strategy:hover > .str-cell .item-head > .tools, .project:hover .item-head > .tools, .tools:focus-within { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px 38px; }
.chip { font-size: 11px; padding: 2px 7px; background: var(--stone); color: var(--ink); white-space: nowrap; }
.chip.goal { background: var(--mist-pale); color: var(--petrol-dark); }
.chip.warn { background: var(--amber-pale); color: #5A3E10; }
.inds { margin: 8px 0 0 38px; }
.inds .lbl { margin: 6px 0 2px; }
.ind { border-top: 1px dashed var(--line); padding: 3px 0 4px; }
.ind-text { display: flex; align-items: flex-start; gap: 2px; }
.ind-text textarea.t { flex: 1; font-size: 13.5px; }
.ind-vals { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-left: 6px; font-size: 11px; color: var(--muted); }
.ind-vals label { display: inline-flex; align-items: center; gap: 3px; }
.ind-vals input.t { width: 78px; font-size: 12.5px; padding: 2px 4px; }
.ind:hover .tools { opacity: 1; }
select.rag, select.status, select.s { border: 1px solid var(--line); background: #fff; font-size: 12px; padding: 3px 4px; max-width: 100%; }
.rag-green { background: var(--mist-pale) !important; } .rag-amber { background: var(--amber-pale) !important; } .rag-red { background: var(--danger-pale) !important; }
.strategies { display: flex; flex-direction: column; }
.strategy { display: grid; grid-template-columns: 40% 60%; border-bottom: 1px solid var(--line); }
.strategy:last-of-type { border-bottom: none; }
.str-cell { padding: 10px 12px; border-right: 1px solid var(--line); }
.resp { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 46px; font-size: 12px; color: var(--muted); }
.resp input.t { font-size: 13px; padding: 2px 4px; }
.prj-cell { padding: 6px 10px 8px; }
.project { border-bottom: 1px dashed var(--line); padding: 4px 0; }
.project:last-child { border-bottom: none; }
.prj-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 2px 0 2px 46px; font-size: 11.5px; color: var(--muted); }
.prj-line label { display: inline-flex; align-items: center; gap: 4px; }
.prj-line input.t { font-size: 13px; padding: 2px 4px; width: auto; }
.prj-line input.t[data-f="leader"] { width: 130px; }
.prj-line input.t[type="date"] { width: 138px; }
.prj-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 10px; margin: 6px 0 4px 46px; padding: 8px 10px; background: #FBF8F3; border: 1px solid var(--line); }
.prj-details label.f input, .prj-details label.f select, .prj-details label.f textarea { font-size: 13px; padding: 4px 6px; }
.prj-details .wide { grid-column: span 4; }
.status-pill, select.status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.st-not-started { background: #fff !important; } .st-on-track { background: var(--mist-pale) !important; color: var(--petrol-dark); }
.st-at-risk { background: var(--amber-pale) !important; color: #5A3E10; } .st-late { background: var(--danger-pale) !important; color: var(--danger); }
.st-done { background: var(--petrol) !important; color: #fff; } .st-parked { background: var(--surface-2) !important; color: var(--muted); }
.empty-hint { color: var(--muted); font-size: 13px; padding: 4px 0; }
.add-row { display: flex; gap: 16px; padding: 4px 0 0; }
.below { padding: 14px 0; }

/* Goals */
.goal-list { display: flex; flex-direction: column; }
.goal-row { display: grid; grid-template-columns: 110px 1fr 300px auto; gap: 8px; align-items: start; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.goal-row:last-child { border-bottom: none; }
.links { display: flex; flex-wrap: wrap; gap: 4px; }
.links label { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 2px 6px; border: 1px solid var(--line); cursor: pointer; background: #fff; }
.links label.on { background: var(--mist-pale); border-color: var(--mist); }

/* Tables (risks, actions) */
.grid-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.grid-table th { text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--label); background: var(--surface-2); padding: 7px 6px; border-bottom: 1px solid var(--line-strong); }
.grid-table td { border-bottom: 1px solid var(--line); padding: 3px 4px; vertical-align: top; }
.grid-table td.c { text-align: center; }
.grid-table input.t, .grid-table textarea.t, .grid-table select { font-size: 13px; }
.grid-table tr.overdue td { background: #FDF6F6; }
.score { display: inline-block; min-width: 30px; text-align: center; font-weight: 800; padding: 3px 4px; }
.band-high { background: var(--danger-pale); color: var(--danger); } .band-medium { background: var(--amber-pale); color: #5A3E10; } .band-low { background: var(--mist-pale); color: var(--petrol-dark); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); }
.heat { display: grid; grid-template-columns: 26px repeat(5, 52px); gap: 3px; font-size: 12px; }
.heat div { height: 40px; display: grid; place-items: center; }
.heat .ax { color: var(--muted); font-size: 11px; }
.heat .cell { font-weight: 800; font-size: 15px; }
.risk-top { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }

/* Plan (Gantt) */
.gantt { background: var(--surface); border: 1px solid var(--line-strong); overflow-x: auto; }
.g-row { display: grid; min-width: 900px; border-bottom: 1px solid var(--line); }
.g-row.head { position: sticky; top: 0; background: var(--surface-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--label); }
.g-row.group { background: #FCFAF6; font-family: var(--serif); font-size: 15px; }
.g-label { padding: 6px 10px; font-size: 13px; border-right: 1px solid var(--line); overflow: hidden; }
.g-label small { color: var(--muted); display: block; font-size: 11.5px; }
.g-track { position: relative; min-height: 34px; }
.g-month { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.g-month span { position: absolute; top: 8px; left: 4px; white-space: nowrap; }
.g-bar { position: absolute; top: 9px; height: 16px; min-width: 6px; }
.g-mark { position: absolute; top: 9px; width: 14px; height: 14px; transform: translateX(-7px) rotate(45deg); }
.g-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--danger); opacity: .6; }
.b-not-started { background: var(--line-strong); } .b-on-track { background: var(--label); } .b-at-risk { background: #C9A15A; }
.b-late { background: var(--danger); } .b-done { background: var(--petrol); } .b-parked { background: var(--stone); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font-size: 13px; }
.filters select { border: 1px solid var(--line-strong); background: #fff; padding: 4px 6px; }

/* Review */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.kpis div { background: var(--surface); border: 1px solid var(--line-strong); padding: 12px; }
.kpis b { font-family: var(--serif); font-size: 30px; font-weight: 400; display: block; }
.kpis span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list li { padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.review-list li:last-child { border-bottom: none; }
.review-list .who { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.review-list .none { color: var(--muted); }

/* Dialog, toast */
dialog { border: 1px solid var(--ink); padding: 0; max-width: 620px; width: calc(100% - 32px); background: var(--paper); }
dialog::backdrop { background: rgba(32,30,29,.45); }
#dialogBody { padding: 20px 22px; }
dialog h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }

@media (max-width: 1000px) {
  .cards, .where-grid, .purpose, .review-grid { grid-template-columns: 1fr; }
  .purpose > div { border-right: none; border-bottom: 1px solid var(--line); }
  .meta-row { grid-template-columns: 1fr 1fr; }
  .cascade-head { display: none; }
  .objective, .strategy { grid-template-columns: 1fr; }
  .obj-cell, .str-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .prj-line { margin-left: 0; }
  .prj-details { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .prj-details .wide { grid-column: span 2; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .goal-row { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .tabs, .site-foot, .tools, .add, .add-row, .notice, .btn, .icon-btn, #saveNudge, .filters { display: none !important; }
  main { padding: 0; max-width: none; }
  .cascade-head { position: static; }
  textarea.t, input.t { border: none !important; }
  .panel, .objective { break-inside: avoid; }
}

.goal-ref input.t { font-family: var(--serif); font-size: 16px; color: var(--petrol); }
.goal-ref input.t::placeholder { color: var(--petrol); opacity: .8; }

/* ---------- organisation list (shared screens, org-ui.js) ---------- */
.def-use { font-size: 12px; color: var(--muted); }
.badge.link { all: unset; cursor: pointer; font-size: 11px; padding: 1px 6px; background: #EFE7F5; color: #4B2E66; border: 1px dashed #B79CCB; white-space: nowrap; }
.badge.link:hover { background: #E3D6EE; }
dialog { max-width: 760px; }
textarea.s, select.s { font: inherit; font-size: 13px; }
.pillar-head { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; padding: 8px 12px; background: var(--petrol-dark, #1f4e57); color: var(--paper); }
.pillar-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.pillar-head small { color: var(--mist); font-size: 12px; }
.pillar-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 4px 0 2px; }
.pillar-field input { flex: 1; min-width: 0; }
.name-field { display: inline-flex; align-items: center; gap: 4px; }
/* ranks read back from the Priority Decision Matrix */
.chip.rank { background: #E6EEF0; color: var(--petrol-dark, #1f4e57); font-weight: 700; }
.chip.rank.top { background: var(--petrol, #2b6670); color: var(--paper); }
.chip.rank.none { background: var(--stone); color: var(--muted); font-weight: 400; }
/* team OKR progress read back from the Structured Collaboration Canvas */
.chip.okr { background: #E8EFE6; color: #2F4A2A; }
.chip.okr.good { background: #CFE3C8; }
.chip.okr.low { background: var(--amber-pale); color: #5A3E10; }
.chip.okr.none { background: var(--stone); color: var(--muted); }

/* ---------- Forum Decision Canvas ---------- */
.grid-table.log td { vertical-align: top; }
.grid-table.log td input.t, .grid-table.log td select { width: 100%; }
.grid-table.log td .t + .t { margin-top: 4px; }
.grid-table tr.to-decide td:nth-child(6) { background: #FFF9EC; }
small.ref { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
input.t.late { color: var(--danger); font-weight: 700; }
select.st-open { background: var(--surface-2, #EEE9E1); }
select.st-progress { background: var(--mist-pale); color: var(--petrol-dark); }
select.st-closed { background: #CFE3C8; color: #2F4A2A; }
select.st-escalated { background: var(--danger-pale); color: var(--danger); }
.agenda-item .panel-head h3 .num { margin-right: 6px; }
.agenda-item .panel-body textarea { width: 100%; }
.why { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; margin-right: 4px; background: var(--stone); }
.why.to { background: #FFF1D6; color: #5A3E10; } .why.overdue { background: var(--danger-pale); color: var(--danger); } .why.closed { background: #CFE3C8; color: #2F4A2A; }
.duties { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 12px 14px; }
.duty { border: 1px solid var(--line); padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.duty span { font-size: 13px; color: var(--muted); } .duty em { font-style: normal; font-size: 12px; color: var(--label); }
@media print { .filters, .dlg-actions, .tabs, .topbar-actions, #saveNudge { display: none !important; } }

/* ---------- Kata Storyboard ---------- */
.credit-line { font-size: 12px; color: var(--muted); max-width: 360px; line-height: 1.3; }
.credit { margin: 26px 0 8px; border-top: 1px solid var(--line-strong); padding-top: 14px; max-width: 900px; }
.credit b { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--label); margin-bottom: 4px; }
.credit p { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.meta-row.two { grid-template-columns: 2fr 2fr; }
.board-head { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 12px; }
.board-head .name-field { display: flex; }
.board-head .name-field input.t, .board-head select { background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 6px 8px; }
.cycle-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; background: var(--mist-pale); border-left: 3px solid var(--petrol); margin-bottom: 14px; font-size: 13.5px; color: var(--petrol-dark); }
.cycle-bar .spacer { flex: 1; }
label.f.inline { flex-direction: row; align-items: center; gap: 8px; }
label.f.inline input.t { width: 150px; background: #fff; border-color: var(--line-strong); }
.step-band { display: grid; grid-template-columns: 200px 1fr 200px; background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); margin-bottom: 14px; }
.step-band > div { padding: 12px 14px; }
.step-label { font-family: var(--serif); font-size: 19px; border-right: 1px solid var(--line); }
.step-label .num, .col-head .num { display: inline-grid; place-items: center; width: 26px; height: 26px; min-width: 0; margin-right: 8px; background: var(--petrol); color: #fff; font-family: var(--font); font-size: 13px; font-weight: 800; }
.step-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
textarea.t.big { font-family: var(--serif); font-size: 18px; }
.storyboard { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--petrol); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.col-head { display: flex; align-items: center; gap: 6px; }
.col-head h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0; }
.col-head .spacer { flex: 1; }
.col label.f textarea.t, .col label.f input.t { font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); border-color: var(--line); }
.measure-row { display: grid; grid-template-columns: 1fr 70px 80px; gap: 4px; margin-top: 4px; }
.measure-row input.t { border-color: var(--line); font-size: 13.5px; }
.measure-row input.t.val { font-weight: 700; }
.row-acts { display: flex; gap: 6px; flex-wrap: wrap; }
details.history summary, details.numbers summary { cursor: pointer; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--label); }
details.history ul { margin: 6px 0 0; padding-left: 0; list-style: none; font-size: 13px; }
details.history li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.chip.ok { background: #CFE3C8; color: #2F4A2A; }
.num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 8px; }
.num-grid label.f input.t, .num-grid select { border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); }
.num-grid label.f:last-child { grid-column: span 2; }
.calc { margin-top: 8px; border-top: 1px solid var(--line); }
.calc div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.calc b { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--petrol); }
.runs { display: grid; gap: 8px; }
figure.run { margin: 0; border: 1px solid var(--line); padding: 6px 8px; background: #FCFAF6; }
figure.run figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--label); }
figure.run figcaption span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
figure.run svg { width: 100%; height: 90px; display: block; }
figure.run small { font-size: 11px; color: var(--muted); }
.rline { fill: none; stroke: var(--petrol); stroke-width: 2; }
figure.run circle { fill: var(--petrol); }
.tline { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; }
.hint-p { margin: 0; font-size: 12.5px; color: var(--muted); }
ul.obstacles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul.obstacles li { border: 1px solid var(--line); padding: 4px 6px; background: #FCFAF6; }
ul.obstacles li.ob-working { border-left: 3px solid var(--petrol); background: var(--mist-pale); }
ul.obstacles li.ob-cleared textarea { text-decoration: line-through; color: var(--muted); }
ul.obstacles li.ob-escalated { border-left: 3px solid var(--danger); }
.ob-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.ob-meta input.t { width: 130px; font-size: 12.5px; border-color: var(--line); }
.ob-meta .icon-btn { margin-left: auto; }
select.st-parked { background: var(--surface-2); } select.st-working { background: var(--mist-pale); color: var(--petrol-dark); }
select.st-cleared { background: #CFE3C8; color: #2F4A2A; } select.st-escalated { background: var(--danger-pale); color: var(--danger); }
.grid-table.pdca th.evidence, .grid-table.pdca td.evidence { background: #F7F9F9; }
.grid-table.pdca tr.planned td { background: #FFF9EC; }
.grid-table.pdca td select { width: 100%; }
.review-list .why { white-space: nowrap; }
ol.questions { margin: 0; padding: 12px 14px 12px 34px; }
ol.questions > li { padding: 6px 0; font-size: 15px; }
ol.questions span { color: var(--muted); font-size: 13px; }
ol.reflect { margin: 6px 0 4px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); list-style: lower-alpha; }
ol.reflect.big { font-size: 15px; }
.cycle-dlg .cy-progress { display: flex; gap: 4px; margin-bottom: 14px; }
.cycle-dlg .cy-progress span { flex: 1; height: 4px; background: var(--line); }
.cycle-dlg .cy-progress span.done { background: var(--mist); } .cycle-dlg .cy-progress span.on { background: var(--petrol); }
.cy-label { margin: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--label); }
h2.cy-q { font-size: 26px; margin: 4px 0 4px; }
.cy-note { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.cy-show { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; font-size: 14px; white-space: pre-wrap; }
.cy-show b { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--label); padding-top: 2px; }
.cycle-dlg label.f { margin-top: 8px; }
.cycle-dlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cy-obs { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cy-obs > label:not(.f) { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
@media (max-width: 1100px) {
  .board-head { grid-template-columns: repeat(3, 1fr); }
  .storyboard { grid-template-columns: 1fr; }
  .step-band { grid-template-columns: 1fr; }
  .step-label, .step-side { border: none; }
  .credit-line { display: none; }
}
@media (max-width: 640px) {
  .board-head, .meta-row.two, .cycle-dlg .two, .num-grid { grid-template-columns: 1fr; }
  .cy-show { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
@media print {
  .site-foot { display: flex !important; border-top: 1px solid #999; }   /* the credit to Mike Rother prints with every page (D48) */
  .cycle-bar, .row-acts, details.numbers summary { display: none !important; }
  .storyboard { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- BEC Builder ---------- */
:root { --strong: #2F6B4F; --strong-pale: #D9EBDD; --fragile: #B07A1F; --fragile-pale: #F6E7C8; --missing: #8E2A2A; --missing-pale: #F3DCDC;
  /* the diagnostic report's five bands, chosen so people with colour blindness can tell them apart */
  --h1: #D73027; --h2: #FC8D59; --h3: #FEE090; --h4: #91BFDB; --h5: #2C5A9E; --h1t: #fff; --h2t: #1d2540; --h3t: #1d2540; --h4t: #1d2540; --h5t: #fff;
  --c1: #1F4E8C; --c2: #6CB4E8; --c3: #E69F00; --c4: #A63C06; --warn: #C4500F; }
.canvas-head { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr 1.3fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.canvas-head .name-field { display: flex; }
.canvas-head input.t, .canvas-head select, .canvas-head input { background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 6px 8px; }
.abec-kpis b small { font-size: 16px; color: var(--muted); }
.abec-kpis b.small { font-size: 18px; line-height: 1.6; }
.legend i.b-h1 { background: var(--h1); } .legend i.b-h2 { background: var(--h2); } .legend i.b-h3 { background: var(--h3); } .legend i.b-h4 { background: var(--h4); } .legend i.b-h5 { background: var(--h5); } .legend i.b-unknown { background: var(--line-strong); }
.abec { margin: 6px 0 16px; }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pillar, .platform { background: var(--surface); border: 1px solid var(--line-strong); border-top: 4px solid var(--petrol); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pillar header, .platform header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 8px; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); }
.pillar header small, .platform header small { grid-column: 1; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--label); }
.pillar header h3, .platform header h3 { grid-column: 1; margin: 0; font-family: var(--serif); font-weight: 400; font-size: 18px; }
.pscore { grid-column: 2; grid-row: 1 / span 2; font-family: var(--serif); font-size: 24px; min-width: 44px; text-align: right; }
.pscore { padding: 0 6px; } .pscore.b-h1 { background: var(--h1); color: var(--h1t); } .pscore.b-h2 { background: var(--h2); color: var(--h2t); } .pscore.b-h3 { background: var(--h3); color: var(--h3t); } .pscore.b-h4 { background: var(--h4); color: var(--h4t); } .pscore.b-h5 { background: var(--h5); color: var(--h5t); } .pscore.b-unknown { color: var(--muted); }
.platform { margin-top: 8px; border-top-color: var(--ink); background: #FCFAF6; }
.platform-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.platform-base .tile { width: 100%; }
.tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 8px 9px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); min-height: 70px; }
.tile:hover { border-color: var(--petrol); border-left-width: 4px; }
.tile:focus-visible { outline: 2px solid var(--petrol); outline-offset: 1px; }
.tile.on { box-shadow: 0 0 0 2px var(--petrol); }
.tile.b-h1 { border-left-color: var(--h1); } .tile.b-h2 { border-left-color: var(--h2); } .tile.b-h3 { border-left-color: #E3BE3C; } .tile.b-h4 { border-left-color: var(--h4); } .tile.b-h5 { border-left-color: var(--h5); }
.tname { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.tbar { position: relative; height: 5px; background: var(--surface-2); }
.tbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--label); }
.tile.b-h1 .tbar i { background: var(--h1); } .tile.b-h2 .tbar i { background: var(--h2); } .tile.b-h3 .tbar i { background: #E3BE3C; } .tile.b-h4 .tbar i { background: var(--h4); } .tile.b-h5 .tbar i { background: var(--h5); }
.tbar em { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--ink); transform: translateX(-1px); }
.tmeta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.tmeta b { margin-left: auto; font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--ink); }
.tmeta .nact { background: var(--ink); color: var(--paper); font-size: 10px; padding: 0 5px; }
.st { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 5px; background: var(--surface-2); color: var(--muted); }
.st-draft { background: var(--fragile-pale); color: #5A3E10; } .st-agreed { background: var(--mist-pale); color: var(--petrol-dark); } .st-in-use { background: var(--strong-pale); color: #1F4A35; }
select.st-draft { background: var(--fragile-pale); } select.st-agreed { background: var(--mist-pale); } select.st-in-use { background: var(--strong-pale); }
.pick-hint { text-align: center; padding: 10px; }
.comp { scroll-margin-top: 70px; }
.comp .panel-head h3 { font-size: 22px; }
.comp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.comp-main { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.comp-side { padding: 12px 14px; background: #FCFAF6; }
.comp label.f textarea.t, .comp label.f input.t { font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); border-color: var(--line); }
.comp .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comp .name-field { display: flex; }
.refs b, .lbl { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--label); margin-bottom: 4px; }
.lbl small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.refs ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.refs small { color: var(--muted); }
.tool-hint { margin: 0; font-size: 13px; color: var(--muted); }
.actions-box .grid-table td { vertical-align: top; }
ol.levels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ol.levels li { border: 1px solid var(--line); background: #fff; padding: 6px 8px; font-size: 13px; color: var(--ink-2); }
ol.levels li.cur { border-color: var(--petrol); box-shadow: inset 3px 0 0 var(--petrol); }
ol.levels li.tgt { background: var(--mist-pale); }
.lv-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.lv-head b { font-family: var(--serif); font-size: 17px; color: var(--petrol); min-width: 16px; }
button.mini { all: unset; cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border: 1px solid var(--line-strong); color: var(--muted); }
button.mini.on { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.diag-line { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
details.deep { margin-top: 10px; font-size: 13px; }
details.deep summary { cursor: pointer; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--label); }
details.deep ul { padding-left: 18px; color: var(--ink-2); }
.gapbar { display: inline-block; width: 70px; height: 7px; background: var(--surface-2); vertical-align: middle; position: relative; }
.gapbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fragile); }
.gapbar.wide { width: 100%; }
.gapbar.b-h1 i { background: var(--h1); } .gapbar.b-h2 i { background: var(--h2); } .gapbar.b-h3 i { background: #E3BE3C; } .gapbar.b-h4 i { background: var(--h4); } .gapbar.b-h5 i { background: var(--h5); } .gapbar.b-unknown i { background: var(--line-strong); }
.pbars { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.pbars > div { display: grid; grid-template-columns: 220px 1fr 40px 110px; gap: 10px; align-items: center; font-size: 13.5px; }
.pbars b { font-family: var(--serif); font-weight: 400; font-size: 17px; text-align: right; }
.pbars small { color: var(--muted); }
.sc { display: inline-block; min-width: 30px; padding: 1px 4px; font-weight: 700; }
.sc.b-h1, .hm td.b-h1 { background: var(--h1); color: var(--h1t); } .sc.b-h2, .hm td.b-h2 { background: var(--h2); color: var(--h2t); } .sc.b-h3, .hm td.b-h3 { background: var(--h3); color: var(--h3t); } .sc.b-h4, .hm td.b-h4 { background: var(--h4); color: var(--h4t); } .sc.b-h5, .hm td.b-h5 { background: var(--h5); color: var(--h5t); } .sc.b-unknown { color: var(--muted); }

/* ---------- Results: the same sections as the diagnostic's report ---------- */
.rep-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin-bottom: 12px; }
.rep-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.rep-head .lead { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.rep-head label.f { min-width: 170px; }
.rep-read { background: var(--surface); border: 1px solid var(--line-strong); padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.rep-read p { margin: 4px 0; }
.rep-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rep-tiles > div { background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rep-tiles .l { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--label); }
.rep-tiles .v { font-family: var(--serif); font-size: 34px; line-height: 1.1; } .rep-tiles .v small { font-size: 15px; color: var(--muted); }
.rep-tiles .s { font-size: 12.5px; color: var(--muted); }
.chip.up, .chip.down, .chip.flat { font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 9px; margin-right: 4px; }
.chip.up { background: #DCEFF0; color: #00676B; } .chip.down { background: #FBE3DA; color: #9A3A10; } .chip.flat { background: var(--surface-2); color: var(--muted); }
.chip.real { outline: 1.5px solid currentColor; }
.rep-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.rep-two > .panel { margin-bottom: 0; }
.rep-sec { margin: 18px 0 8px; }
.rep-sec h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 4px; }
.rep-sec .note { font-size: 13.5px; color: var(--ink-2); margin: 0 0 8px; max-width: 900px; }
.rep-body { padding: 12px 14px; }
.rep-body svg { display: block; width: 100%; height: auto; }
.rep-body svg text { font-family: var(--sans, system-ui), sans-serif; font-size: 12px; fill: var(--ink-2); }
.rep-body svg text.strong { fill: var(--ink); font-weight: 700; }
.seg { display: inline-flex; gap: 2px; border: 1px solid var(--line-strong); padding: 2px; margin: 0 8px 8px 0; }
.seg button { all: unset; cursor: pointer; font-size: 12.5px; padding: 3px 10px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hm { border-collapse: collapse; width: 100%; font-size: 13px; }
.hm th { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--label); padding: 6px; text-align: center; border-bottom: 1px solid var(--line-strong); }
.hm th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.hm td { padding: 5px 6px; border-bottom: 1px solid #fff; text-align: center; }
.hm td.dim { text-align: left; color: var(--ink); white-space: nowrap; }
.hm tr.grp td { background: var(--surface-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--label); text-align: left; }
.hm td.all { font-weight: 800; }
.hm td.sd { color: var(--muted); } .hm td.sd.hi { color: var(--warn); font-weight: 700; } .hm td.sd.hi::after { content: " ▲"; font-size: 10px; }
.review { background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--petrol); padding: 14px 18px; }
.review h4 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 14px 0 6px; } .review h4:first-child { margin-top: 0; }
.review ol { padding-left: 20px; margin: 0; } .review li { margin-bottom: 8px; font-size: 14px; color: var(--ink-2); } .review li b { color: var(--ink); }
.review p { font-size: 14px; color: var(--ink-2); }
.review .foot { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; }
.rep-rounds { font-size: 13px; color: var(--ink-2); }
.rep-rounds li { margin-bottom: 4px; }
@media (max-width: 700px) { .rep-tiles { grid-template-columns: 1fr; } }
ul.plain { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
ul.plain li { margin-bottom: 6px; }
@media (max-width: 1100px) {
  .canvas-head { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .platform-row { grid-template-columns: repeat(2, 1fr); }
  .comp-grid { grid-template-columns: 1fr; }
  .comp-main { border-right: none; }
  .pbars > div { grid-template-columns: 1fr 1fr 40px; } .pbars small { display: none; }
}
@media (max-width: 640px) {
  .canvas-head, .pillars, .platform-row, .comp .two { grid-template-columns: 1fr; }
}
@media print {
  .abec { break-inside: avoid; }
  .pillars { grid-template-columns: repeat(5, 1fr); } .platform-row { grid-template-columns: repeat(5, 1fr); }
  .comp-side button.mini { display: none; }
  .pick-hint { display: none; }
}

/* ---------- Build: writing the canvas from scratch ---------- */
.build { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.build > * { min-width: 0; }
.build-nav { position: sticky; top: 8px; background: var(--surface); border: 1px solid var(--line-strong); padding: 10px; max-height: calc(100vh - 24px); overflow-y: auto; }
.build-prog { font-size: 13px; color: var(--ink-2); padding: 2px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.build-prog b { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink); }
.bn-group { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 1px; }
.bn-group small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--label); padding: 2px 4px; }
.bn-step { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13.5px; color: var(--ink-2); }
.bn-step:hover { background: var(--surface-2); }
.bn-step.on { background: var(--ink); color: #fff; }
.bn-step i { font-style: normal; font-size: 11px; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--muted); }
.bn-step.done i { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.bn-step.on i { border-color: #fff; color: #fff; }
.bn-step em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.bn-step.on em { color: #fff; }
.bn-step:focus-visible { outline: 2px solid var(--petrol); }
.build-intro { padding: 10px 16px 4px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.build-intro p { margin: 4px 0 8px; max-width: 900px; } .build-intro ul { margin: 0 0 10px; padding-left: 18px; } .build-intro li { margin-bottom: 3px; }
.build-intro .note { font-size: 12.5px; color: var(--muted); }
.entries { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.entry { border: 1px solid var(--line-strong); border-left: 3px solid var(--petrol); background: #fff; }
.entry-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--surface-2); font-size: 13.5px; }
.entry-head b { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--petrol); }
.entry-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 12px; padding: 10px; }
.entry-grid .ent-f.wide { grid-column: span 2; }
.entry-grid .ent-f input, .entry-grid .ent-f select, .entry-grid .ent-f textarea { width: 100%; box-sizing: border-box; }
.build-foot { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 20px; }
.tlines { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }
.tlines span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tlines .more { color: var(--muted); }
@media (max-width: 900px) {
  .build { grid-template-columns: 1fr; }
  .build-nav { position: static; max-height: 240px; }
  .entry-grid .ent-f.wide { grid-column: auto; }
}
