/* ReasonTank design system (ADR-003 decision 2). Light only. Every color is a token below; pages use nothing else. */
@font-face { font-family:"Inter"; src:url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight:100 900; font-display:swap; }
@font-face { font-family:"Outfit"; src:url("/static/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight:100 900; font-display:swap; }

:root {
  --ground:#EDF0F5; --panel:#FFFFFF; --ink:#0E1A2F; --text-2:#4A5670; --text-3:#66718A;
  --line:#E3E7EF; --line-2:#D5DBE7; --soft:#F4F6FA; --soft-2:#F1F3F8;
  --accent:#2B45D4; --accent-hover:#1F35A8; --accent-tint:#E8ECFD;
  --live:#C2410C; --live-text:#9A3412; --live-tint:#FDEBDD; --reveal:#FDF1E3;
  --ok:#0F6B5F; --ok-tint:#D5F1EC; --bad:#B42318; --bad-tint:#FDE7E5; --warn:#8A5A00; --warn-tint:#FCE8C3;
  --head:"Outfit", "Inter", system-ui, sans-serif; --body:"Inter", system-ui, sans-serif;
  --r-panel:24px; --r-card:20px; --r-inner:16px; --r-ctl:14px;
}
/* One group, one color, on every surface (ADR-003 decision 2). */
.g-product { --tint:#DDEBFA; --deep:#1F5FA8; --av:#1F5FA8; } .g-eng { --tint:#D5F1EC; --deep:#0F6B5F; --av:#0F6B5F; }
.g-arch { --tint:#E8DFFB; --deep:#5B34B5; --av:#5B34B5; } .g-design { --tint:#FBDCEB; --deep:#A3246A; --av:#A3246A; }
.g-ops { --tint:#FCE8C3; --deep:#6B4600; --av:#8A5A00; } .g-tech { --tint:#E3E8EF; --deep:#3D4A5C; --av:#3D4A5C; }
.g-risk { --tint:#FCE2D6; --deep:#9A3412; --av:#9A3412; } .g-ind { --tint:#DDF0D9; --deep:#2F6B1F; --av:#2F6B1F; }
.g-customer { --tint:#F8F1A8; --deep:#615800; --av:#7A6E00; }
.g-other { --tint:#E3E8EF; --deep:#3D4A5C; --av:#3D4A5C; }

* { box-sizing:border-box; }
html { background:var(--ground); }
body { margin:0; background:var(--ground); color:var(--ink); font:14px/1.5 var(--body); -webkit-font-smoothing:antialiased; }
a { color:var(--accent); } a:hover { color:var(--accent-hover); }
h1, h2, h3, .head-font { font-family:var(--head); letter-spacing:-0.01em; }
h1 { font-size:30px; font-weight:600; margin:0; line-height:1.15; }
h2 { font-size:18px; font-weight:600; margin:0 0 12px; }
h3 { font-size:15px; font-weight:600; margin:0 0 6px; }
.kicker { font-family:var(--body); font-size:11px; font-weight:600; letter-spacing:0.07em; text-transform:uppercase; color:var(--text-3); margin:0 0 8px; }
.muted { color:var(--text-2); } .faint { color:var(--text-3); } .small { font-size:13px; } .tiny { font-size:12px; }
ol, ul { margin:4px 0 0; padding-left:20px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- shell ---- */
.app { display:flex; gap:16px; padding:16px; min-height:100vh; align-items:flex-start; }
.rail { flex:0 0 88px; position:sticky; top:16px; min-height:calc(100vh - 32px); background:var(--panel); border-radius:var(--r-panel);
  padding:16px 8px; display:flex; flex-direction:column; gap:6px; box-shadow:0 1px 2px rgba(14,26,47,0.05); }
.rail .logo { display:flex; justify-content:center; padding:4px 0 14px; }
.rail a.item { display:flex; flex-direction:column; align-items:center; gap:5px; padding:10px 2px; border-radius:var(--r-inner);
  font-size:11px; font-weight:600; text-decoration:none; color:var(--text-2); min-height:44px; }
.rail a.item:hover { background:var(--soft); color:var(--ink); }
.rail a.item.on { background:var(--accent-tint); color:var(--accent); }
.rail .foot { margin-top:auto; display:flex; flex-direction:column; align-items:center; gap:8px; }
.rail .me { width:44px; height:44px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:var(--head); font-weight:600; font-size:15px; text-decoration:none; }
.rail .me:hover { color:#fff; background:var(--accent); }
.rail select { width:72px; font-size:11px; padding:6px 4px; min-height:36px; border-radius:10px; }
.rail .signout { background:none; border:0; color:var(--text-3); font:600 11px var(--body); cursor:pointer; padding:6px; min-height:32px; }
.rail .signout:hover { color:var(--ink); }
.main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:16px; }
.page-head { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:6px 8px 0; }
.page-head .title { flex:1 1 260px; min-width:0; }
.page-head p { margin:4px 0 0; color:var(--text-2); }
.crumb { font-size:13px; color:var(--text-3); margin-bottom:2px; } .crumb a { text-decoration:none; font-weight:500; }

/* ---- surfaces ---- */
.panel, .card { background:var(--panel); border-radius:var(--r-panel); padding:20px; }
.card { border-radius:var(--r-card); }
.inset { background:var(--soft); border-radius:var(--r-inner); padding:14px; }
.cols { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; }
.grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap:16px; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:16px; } @media (max-width:760px) { .row { grid-template-columns:1fr; } }
.layout { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); gap:16px; align-items:start; }
@media (max-width:980px) { .layout { grid-template-columns:1fr; } }
.stack { display:flex; flex-direction:column; gap:12px; }

/* ---- controls (44 px targets) ---- */
.btn, button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border-radius:var(--r-ctl);
  border:1px solid transparent; background:var(--accent); color:#fff; font:600 14px var(--body); cursor:pointer; text-decoration:none; white-space:nowrap; }
.btn:hover, button:hover { background:var(--accent-hover); color:#fff; }
.btn.dark, button.dark { background:var(--ink); } .btn.dark:hover, button.dark:hover { background:#1E2B45; }
.btn.ghost, button.ghost, .btn2 { background:var(--panel); color:var(--ink); border-color:var(--line-2); }
.btn.ghost:hover, button.ghost:hover, .btn2:hover { background:var(--soft); color:var(--ink); }
.btn.danger, button.danger { background:var(--panel); color:var(--bad); border-color:var(--line-2); }
.btn.sm, button.sm { min-height:36px; padding:0 12px; font-size:13px; border-radius:12px; }
form.inline { display:inline; }
label { display:block; font-size:13px; font-weight:600; color:var(--ink); margin:12px 0 6px; }
label .hint, .hint { font-weight:400; color:var(--text-2); font-size:12.5px; }
input, select, textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line-2); border-radius:12px; background:var(--panel);
  color:var(--ink); font:14px/1.45 var(--body); }
textarea { min-height:96px; resize:vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
input[type=radio], input[type=checkbox] { width:auto; min-height:0; }
label.inline { display:inline-flex; align-items:center; gap:6px; margin:0 14px 0 0; font-weight:500; min-height:44px; }
.search { display:flex; align-items:center; gap:8px; background:var(--panel); border-radius:var(--r-ctl); padding:0 14px; min-height:44px; flex:0 1 320px; color:var(--text-2); }
.search input { border:0; padding:0; min-height:42px; background:transparent; } .search input:focus { outline:none; }
.search:focus-within { outline:2px solid var(--accent); outline-offset:2px; }

/* ---- chips, notes, status ---- */
.chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; background:var(--soft-2); color:var(--text-2); }
.chip.accent { background:var(--accent-tint); color:var(--accent); } .chip.ok { background:var(--ok-tint); color:var(--ok); }
.chip.bad { background:var(--bad-tint); color:var(--bad); } .chip.live { background:var(--live-tint); color:var(--live-text); }
.chip.warn { background:var(--warn-tint); color:var(--warn); } .chip.group { background:var(--tint); color:var(--deep); }
.tag { font-size:12px; font-weight:600; padding:3px 9px; border-radius:999px; background:var(--soft-2); color:var(--text-2); }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--live); }
.note { padding:12px 16px; border-radius:var(--r-inner); background:var(--panel); font-weight:500; }
.note.ok { background:var(--ok-tint); color:var(--ok); } .note.bad { background:var(--bad-tint); color:var(--bad); }
.pass { color:var(--ok); } .fail { color:var(--bad); }
.s-settled { color:var(--ok); } .s-failed { color:var(--bad); } .s-unknown, .s-reserved { color:var(--warn); }
.err { white-space:normal; max-width:320px; color:var(--bad); }
.big { font-family:var(--head); font-size:32px; font-weight:600; font-variant-numeric:tabular-nums; }
.bar { height:8px; background:var(--soft-2); border-radius:999px; overflow:hidden; margin:10px 0 6px; }
.bar > span { display:block; height:100%; background:var(--accent); border-radius:999px; }

/* ---- tables ---- */
.scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
th, td { text-align:left; padding:10px 10px; border-bottom:1px solid var(--line); white-space:nowrap; vertical-align:top; }
th { color:var(--text-3); font-weight:600; font-size:11px; letter-spacing:0.06em; text-transform:uppercase; }
td.num, th.num { text-align:right; } .dim td { color:var(--text-3); }

/* ---- persona library (ADR-002 functions, ADR-003 look) ---- */
.lib { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; }
.lib .filters { flex:1 1 210px; max-width:250px; min-width:0; background:var(--panel); border-radius:var(--r-panel); padding:14px; display:flex; flex-direction:column; gap:2px; }
.lib .filters a { display:flex; align-items:center; gap:10px; min-height:44px; padding:0 10px; border-radius:12px; text-decoration:none; color:var(--ink); font-weight:500; }
.lib .filters a:hover { background:var(--soft); }
.lib .filters a.on { background:var(--accent-tint); color:var(--accent); font-weight:600; }
.lib .filters .sw { flex:0 0 10px; height:10px; border-radius:4px; background:var(--deep, var(--ink)); }
.lib .filters .n { margin-left:auto; font-size:12px; color:var(--text-3); font-variant-numeric:tabular-nums; }
.lib .filters .kicker { padding:14px 10px 4px; margin:0; }
.lib .cards { flex:999 1 420px; min-width:0; display:flex; flex-direction:column; gap:12px; }
.lib .section-h { display:flex; align-items:baseline; gap:10px; padding:4px 6px 0; } .lib .section-h h2 { margin:0; }
.pgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap:12px; }
.pcard { background:var(--panel); border-radius:22px; padding:6px; display:flex; flex-direction:column; border:2px solid transparent; }
.pcard:hover { border-color:var(--line-2); }
.pcard .top { background:var(--tint); border-radius:var(--r-inner); padding:12px; display:flex; align-items:center; gap:12px; }
.pcard .top .who { min-width:0; display:flex; flex-direction:column; gap:2px; }
.pcard .name { font-family:var(--head); font-size:16px; font-weight:600; color:var(--ink); text-decoration:none; }
.pcard .name:hover { color:var(--accent); }
.pcard .role { font-size:12px; font-weight:500; color:var(--deep); }
.pcard .body { padding:14px 10px 10px; display:flex; flex-direction:column; gap:10px; flex:1; }
.pcard .lens { margin:0; font-size:15px; font-weight:500; line-height:1.4; }
.pcard .pref { margin:0; font-size:12.5px; line-height:1.4; color:var(--text-2); }
.pcard .meta { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:var(--text-2); }
.pcard .meta span { display:inline-flex; align-items:center; gap:4px; }
.pcard .acts { display:flex; gap:6px; margin-top:auto; padding-top:4px; } .pcard .acts .btn { flex:1; }
.avatar { flex:0 0 auto; border-radius:14px; } .avatar .av-bg { fill:var(--av, var(--ink)); }
.lg .avatar { border-radius:18px; }

/* ---- persona page ---- */
.hero { background:var(--tint); border-radius:18px; padding:20px; display:flex; flex-direction:column; gap:12px; }
.hero .id { display:flex; align-items:center; gap:14px; }
.hero .name { font-family:var(--head); font-size:24px; font-weight:600; }
.hero .role { font-size:13px; font-weight:600; color:var(--deep); }
.hero .lens { margin:0; font-family:var(--head); font-size:20px; font-weight:500; line-height:1.3; }
.redline { background:var(--soft); border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:4px; }
.redline b { font-size:13.5px; line-height:1.4; } .redline span { font-size:12.5px; color:var(--text-2); line-height:1.4; }
.trace { font-size:12px; color:var(--text-3); }
.field { margin-bottom:14px; } .field h3 { font-family:var(--body); font-size:11px; font-weight:600; letter-spacing:0.07em; text-transform:uppercase; color:var(--text-3); margin:0 0 6px; }
.field p { margin:0; }
details.optional { border-top:1px solid var(--line); margin-top:18px; padding-top:6px; }
details.optional > summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:600; }
.req { font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; background:var(--accent-tint); color:var(--accent); margin-left:6px; }

/* ---- sessions ---- */
.filters-bar { display:flex; gap:6px; flex-wrap:wrap; }
.filters-bar a { min-height:40px; display:inline-flex; align-items:center; padding:0 14px; border-radius:12px; background:var(--panel); color:var(--text-2); text-decoration:none; font-weight:600; font-size:13px; }
.filters-bar a.on { background:var(--ink); color:#fff; }
.srow { display:flex; align-items:center; gap:14px; padding:14px; border-radius:var(--r-inner); background:var(--soft); text-decoration:none; color:var(--ink); }
.srow:hover { background:var(--soft-2); color:var(--ink); }
.srow.live { background:var(--live-tint); }
.srow .mark { flex:0 0 44px; height:44px; border-radius:14px; background:var(--accent-tint); color:var(--accent); display:flex; align-items:center; justify-content:center; font-family:var(--head); font-weight:600; }
.srow .t { flex:1; min-width:0; } .srow .t b { font-family:var(--head); font-size:16px; font-weight:600; display:block; }
.liveband { background:var(--ink); color:#fff; border-radius:var(--r-panel); padding:22px 26px; display:flex; flex-wrap:wrap; align-items:center; gap:20px; }
.liveband .kick { color:#FDBA8C; font-size:12px; font-weight:600; letter-spacing:0.07em; text-transform:uppercase; display:flex; align-items:center; gap:8px; }
.liveband h2 { color:#fff; font-size:24px; margin:6px 0 4px; } .liveband .sub { color:#B8C2D6; font-size:13px; }
.liveband .btn { background:#fff; color:var(--ink); } .liveband .btn:hover { background:var(--soft); }

/* ---- session page (transcript until ADR-001 items; then the chat of U2) ---- */
.phases { display:flex; gap:8px; flex-wrap:wrap; }
.phases span { flex:1 1 120px; display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border-radius:var(--r-ctl); background:var(--soft); font-weight:600; font-size:13px; color:var(--text-3); }
.phases span i { font-style:normal; width:22px; height:22px; border-radius:7px; background:var(--line-2); color:var(--ink); display:inline-flex; align-items:center; justify-content:center; font-size:12px; }
.phases span.done { color:var(--ink); } .phases span.done i { background:var(--ink); color:#fff; }
.phases span.now { background:var(--accent); color:#fff; } .phases span.now i { background:#fff; color:var(--accent); }
.turn { padding:12px 0; border-top:1px solid var(--line); } .turn:first-child { border-top:0; }
.turn .who { font-weight:600; font-size:13px; margin-bottom:4px; display:flex; align-items:center; gap:8px; }
.turn .body { white-space:pre-wrap; font-size:14px; line-height:1.55; }
.turn.mod .body { background:var(--ink); color:#fff; border-radius:18px 18px 18px 6px; padding:12px 16px; }
.turn.sealed .body { border:1.5px dotted var(--line-2); border-radius:14px; padding:12px 16px; background:var(--soft); }
.turn.yoram .body { background:var(--accent); color:#fff; border-radius:18px 18px 6px 18px; padding:12px 16px; }
.turn.member .body { background:var(--tint, var(--soft)); border-radius:18px 18px 18px 6px; padding:12px 16px; }
.mmark { flex:0 0 28px; width:28px; height:28px; border-radius:9px; background:var(--ink); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-family:var(--head); font-weight:600; font-size:13px; }
.phase-h { display:flex; align-items:center; gap:12px; margin:20px 0 6px; font-size:11px; font-weight:600; letter-spacing:0.07em; text-transform:uppercase; color:var(--text-3); }
.phase-h::before, .phase-h::after { content:""; flex:1; height:1px; background:var(--line); }
.ev { font-size:13px; padding:10px 12px; border-radius:12px; background:var(--soft); margin-bottom:6px; }
.ev .k { font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:2px; }
.obj { background:var(--soft); border-radius:14px; padding:12px; margin-bottom:8px; }
.obj .num { display:inline-flex; width:22px; height:22px; border-radius:7px; background:var(--ink); color:#fff; align-items:center; justify-content:center; font-size:12px; font-weight:600; margin-right:6px; }
.blind { background:var(--reveal); border-radius:var(--r-inner); padding:16px; }
@media (max-width:700px) { .app { flex-direction:column; padding:10px; } .rail { position:static; min-height:0; flex:0 0 auto; width:100%; flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .rail .logo { padding:4px 8px; } .rail .foot { margin:0; flex-direction:row; } }
/* Pages that keep a plain <header>: same layout as .page-head. */
.main > header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:6px 8px 0; }
form > button[type=submit], form > .actions { margin-top:16px; }
.auth { max-width:440px; margin:8vh auto 0; }
details > summary { cursor:pointer; } details.optional > summary { list-style:none; gap:8px; }
details.optional > summary::-webkit-details-marker { display:none; }
details.optional > summary::before { content:"+"; width:24px; height:24px; border-radius:8px; background:var(--soft-2); display:inline-flex; align-items:center; justify-content:center; font-weight:600; }
details.optional[open] > summary::before { content:"\2212"; }
.turn.mod .body, .turn.member .body, .turn.yoram .body { max-width:78%; width:fit-content; }
.turn.yoram { display:flex; flex-direction:column; align-items:flex-end; }
.turn.mod.record .body { max-width:none; }
/* Skills (stars) and traits (five-step slider) in the editor (ADR-003 decision 11). */
.skill, .trait { padding:10px 0; border-bottom:1px solid var(--line); } .skill.spare, .trait.spare { display:none; }
.skill { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; align-items:center; }
.skill .word { grid-column:1 / -1; font-size:12px; color:var(--text-3); }
.stars { border:0; margin:0; padding:0; display:inline-flex; flex-direction:row-reverse; }
.stars input { position:absolute; opacity:0; width:1px; height:1px; }
.stars label { margin:0; font-size:22px; line-height:1; color:var(--line-2); cursor:pointer; padding:6px 2px; min-height:0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color:#C77700; }
.stars input:focus-visible + label { outline:2px solid var(--accent); border-radius:6px; }
.trait input[type=range] { width:100%; min-height:32px; padding:0; border:0; accent-color:var(--accent); }
.trait .word { white-space:nowrap; }
#pform .row textarea { min-height:150px; }
[hidden] { display:none !important; }

/* Compiler-note alert (ADR-004 decision 4a) */
.alert { color:var(--warn); display:inline-flex; align-items:center; gap:4px; vertical-align:-2px; text-decoration:none; min-height:0; }
.alert:hover { color:var(--bad); }

/* Chosen avatars and the picker (ADR-002 decision 5) */
.avatar.face { display:inline-block; border-radius:14px; overflow:hidden; flex:0 0 auto; }
.avatar.face img { display:block; width:100%; height:100%; object-fit:contain; }
.avwrap { position:relative; display:inline-block; line-height:0; }
.pencil { position:absolute; right:-8px; bottom:-8px; width:28px; height:28px; min-height:0; padding:0; border-radius:50%;
  background:var(--panel); color:var(--ink); border:1px solid var(--line-2); display:grid; place-items:center; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.pencil:hover { background:var(--accent-tint); color:var(--accent); }
dialog.picker { border:0; border-radius:24px; padding:24px; width:min(640px, calc(100% - 32px)); line-height:normal; }
dialog.picker::backdrop { background:rgba(17,27,51,.35); }
.picker .swatches { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.picker .sw { position:relative; cursor:pointer; margin:0; }
.picker .sw input, .picker .tile input { position:absolute; opacity:0; width:1px; height:1px; }
.picker .sw span { display:block; width:40px; height:40px; border-radius:50%; border:1px solid rgba(17,27,51,.15); }
.picker .sw.custom span { width:auto; height:auto; border:0; padding:0 2px; color:var(--text-2); }
.picker input[type=color] { width:44px; height:44px; padding:2px; border-radius:12px; border:1px solid var(--line-2); background:var(--panel); }
.picker .sw input:checked + span { outline:3px solid var(--accent); outline-offset:3px; }
.picker .faces { display:grid; grid-template-columns:repeat(auto-fill, minmax(72px, 1fr)); gap:12px; max-height:52vh; overflow:auto; padding:6px; }
.picker .tile { position:relative; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; margin:0; }
.picker .tbg { display:block; width:64px; height:64px; border-radius:16px; overflow:hidden; background:var(--pk, var(--tint)); line-height:0; }
.picker .tbg .avatar { width:64px; height:64px; }
.picker .tile input:checked + .tbg, .picker .tile input:focus-visible + .tbg, .picker .sw input:focus-visible + span { outline:3px solid var(--accent); outline-offset:3px; }

/* Persona page: tests, notes and inspiration as tabs in one panel */
.ptabs .tabs { display:flex; gap:4px; background:var(--soft); border-radius:14px; padding:4px; margin-bottom:16px; }
.ptabs .tabs button { flex:1; background:transparent; color:var(--text-2); border:0; border-radius:10px; min-height:40px; padding:0 10px; font-weight:600; }
.ptabs .tabs button[aria-selected=true] { background:var(--panel); color:var(--ink); box-shadow:0 1px 3px rgba(17,27,51,.12); }
.ptabs .tabs .n { display:inline-block; min-width:18px; padding:0 5px; border-radius:9px; background:var(--warn-tint); color:var(--warn); font-size:11px; }
.ptabs #notes.panel { padding:0; background:none; box-shadow:none; border:0; }
.ptabs #notes.panel > h2 { display:none; }

/* Skill and trait definitions (ADR-004 decision 5) */
.defrow { display:flex; gap:6px; align-items:center; margin-top:6px; grid-column:1 / -1; flex-basis:100%; }
.defrow input { flex:1; font-size:13px; min-height:36px; }
.defrow .suggest { flex:0 0 auto; }

/* The chat view (ADR-001 decision 7; ADR-003 decision 5): who saw what has one look */
.chatbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:14px; }
.chatbar select { width:auto; min-height:40px; }
.seg { display:inline-flex; background:var(--soft); border-radius:12px; padding:3px; gap:3px; }
.seg button { background:transparent; color:var(--text-2); border:0; min-height:36px; padding:0 12px; border-radius:9px; font-weight:600; }
.seg button[aria-pressed=true] { background:var(--panel); color:var(--ink); box-shadow:0 1px 3px rgba(17,27,51,.12); }
.chat { display:flex; flex-direction:column; gap:12px; }
.chat .divider { display:flex; align-items:center; gap:10px; color:var(--text-3); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; margin:10px 0 2px; }
.chat .divider::before, .chat .divider::after { content:""; flex:1; border-top:1px solid var(--line); }
.chat .divider.reveal { color:var(--live-text); }
.msg { display:flex; flex-direction:column; gap:4px; max-width:78%; }
.msg .who { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; flex-wrap:wrap; }
.msg .lock { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:500; color:var(--text-3); }
.msg .bubble { font-size:14px; line-height:1.5; padding:10px 14px; border-radius:18px 18px 18px 6px; white-space:pre-wrap; }
.msg.member .bubble { background:var(--tint, var(--soft)); }
.msg.member.priv .bubble { background:var(--panel); border:1.5px dashed var(--deep, var(--line-2)); }
.msg.member.priv.shown .bubble { background:var(--reveal); border-style:solid; border-color:var(--reveal); }
.msg.mod .bubble { background:var(--ink); color:#fff; }
.msg.mod.priv .bubble { background:var(--panel); color:var(--ink); border:1.5px dashed var(--ink); }
.msg.sealed .bubble { background:var(--soft); border:1.5px dotted var(--line-2); }
.msg.yoram { align-self:flex-end; align-items:flex-end; }
.msg.yoram .bubble { background:var(--accent); color:#fff; border-radius:18px 18px 6px 18px; }
.msg.yoram.priv .bubble { background:var(--panel); color:var(--accent); border:1.5px dashed var(--accent); }
.msg .from { font-size:11.5px; opacity:.75; margin-top:4px; }
.msg .cutmark { font-size:11px; padding:1px 6px; border-radius:6px; background:var(--warn-tint); color:var(--warn); }
.msg.writing .bubble { padding:12px 16px; }
.dots { display:inline-flex; gap:4px; } .dots i { width:6px; height:6px; border-radius:50%; background:var(--text-3); animation:blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay:.2s; } .dots i:nth-child(3) { animation-delay:.4s; }
@keyframes blink { 0%, 80%, 100% { opacity:.25; } 40% { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation:none; } }

/* Scores, outcomes and flags (ADR-005 decisions 4 and 5) */
.msg .val { font-size:11px; vertical-align:1px; margin-left:4px; }
.v-pass, .v-go { background:var(--ok-tint); color:var(--ok); } .v-fail, .v-no-go { background:var(--bad-tint); color:var(--bad); }
.v-uncertain, .v-hold, .v-do-less { background:var(--warn-tint); color:var(--warn); }
.msg .flag { margin-top:6px; font-size:12px; padding:4px 8px; border-radius:8px; background:var(--bad-tint); color:var(--bad); }

/* The project path (ADR-005 decision 1) */
.path { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.path .node { display:flex; gap:14px; align-items:center; padding:12px 14px; border-radius:16px; background:var(--soft); flex-wrap:wrap; }
.path .node.done { background:var(--ok-tint); } .path .node.running, .path .node.waiting { background:var(--live-tint); }
.path .ix { width:32px; height:32px; border-radius:50%; background:var(--panel); display:grid; place-items:center; font-weight:700; flex:0 0 auto; }
.path .body { flex:1 1 240px; min-width:0; }
.path .acts { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }

/* The confidence bar (PROPOSAL-2026-11-21-confidence): color plus words, never color alone. */
.confbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 12px}
.confbar .zbar{flex:0 0 100%;height:8px;border-radius:4px;background:var(--line,#ddd)}
.confbar.z-green .zbar{background:#2e9d5b}.confbar.z-amber .zbar{background:#d99a1e}.confbar.z-red .zbar{background:#c8423b}
.confbar .zlabel{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-left:auto}
.confbar .zev{flex:0 0 100%}.confbar .zev summary{cursor:pointer}
.zone-chip{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle;background:#bbb}
.zone-chip.z-green{background:#2e9d5b}.zone-chip.z-amber{background:#d99a1e}.zone-chip.z-red{background:#c8423b}

.outcome{border:1px solid var(--line,#ddd);border-radius:12px;padding:14px 16px;margin-bottom:14px}
.outcome h2{margin-top:0}.outcome .dl{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}

/* New session (review A U4, B UI): the picker instead of tabs, a form that never outgrows the screen, seats that stack on a phone. */
.main { min-width:0; }
form.panel { max-width:100%; min-width:0; }
form.panel input, form.panel select, form.panel textarea { max-width:100%; min-width:0; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
fieldset.plain legend.label { display:block; font-size:13px; font-weight:600; color:var(--ink); margin:12px 0 6px; padding:0; }
.seats { display:flex; flex-direction:column; gap:8px; }
.seat-head, .seat-row { display:grid; grid-template-columns:minmax(90px,1fr) minmax(0,2.2fr) minmax(0,1.6fr) minmax(90px,.8fr) minmax(70px,.6fr); gap:8px; align-items:end; }
.seat-head span { font-size:12px; font-weight:600; color:var(--text-2); }
.seat-row label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:0; }
@media (max-width:700px) {
  .seat-head { display:none; }
  .seat-row { grid-template-columns:1fr 1fr; background:var(--soft); border-radius:var(--r-inner); padding:10px; }
  .seat-row .c-seat, .seat-row .c-persona, .seat-row .c-model { grid-column:1 / -1; }
  .seat-row label { position:static; width:auto; height:auto; overflow:visible; clip:auto; white-space:normal; margin:4px 0 4px; font-size:12px; }
}

/* ---- picker cards (P2: starting a session; SAP Build's "Create project" pattern) ---- */
.cards-pick { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.pick-card { position:relative; display:flex; flex-direction:column; gap:10px; margin:0; padding:16px; border:1px solid var(--line-2);
  border-radius:var(--r-card); background:var(--panel); font-weight:400; cursor:pointer; min-width:0; }
.pick-card:hover { border-color:var(--accent); }
.pick-card input { position:absolute; opacity:0; width:1px; height:1px; }
.pick-card:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; background:var(--accent-tint); }
.pick-card:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.pick-icon { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:14px;
  background:var(--soft); color:var(--accent); }
.pick-card:has(input:checked) .pick-icon { background:var(--panel); }
.pick-text { display:flex; flex-direction:column; gap:4px; min-width:0; }
.pick-text b { font:600 15px/1.3 var(--head); color:var(--ink); }
.pick-text span { font-size:13px; line-height:1.45; color:var(--text-2); }
.pick-text .pick-step { font-size:12px; font-weight:600; color:var(--text-3); }
.path-cards .pick-card { cursor:default; } .path-cards .pick-card:hover { border-color:var(--line-2); }
.pick-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:16px; }
.pick-steps { font-size:13px; color:var(--text-3); margin:0 0 12px; }
.pick-steps b { color:var(--ink); }
.meeting-chosen { margin-bottom:16px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 16px; }
.meeting-chosen .pick-icon { width:40px; height:40px; }
.meeting-chosen .pick-text { flex:1 1 200px; }
.onebox textarea { min-height:84px; }
@media (max-width:700px) { .pick-card { flex-direction:row; align-items:flex-start; padding:12px; } .pick-icon { flex:0 0 40px; width:40px; height:40px; }
  .pick-actions .btn, .pick-actions button { flex:1 1 0; } }

/* ADR-008: the conversation */
.claim{display:inline-block;font-size:11px;border-radius:999px;padding:0 6px;margin-left:4px;border:1px solid var(--line,#ccc)}
.claim.c-evidence{border-color:#2e9d5b;color:#2e7d4b}.claim.c-assumption{border-color:#d99a1e;color:#9a6a0e}.claim.c-judgment{border-color:#7a7f8a;color:#5a5f6a}
.msg .line+.line{margin-top:6px}
.objcard,.issuecard{border:1px solid var(--line,#ddd);border-radius:10px;padding:8px 10px;margin:10px 0;background:var(--panel,#fff)}
.objcard .num{display:inline-block;min-width:20px;text-align:center;border-radius:50%;background:var(--accent-tint,#eef);margin-right:6px}
.reactions{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;margin-top:6px}
.react.r-agree{color:#2e7d4b}.react.r-disagree{color:#c8423b}.react.r-withdraw{color:#7a7f8a}
.settle .bubble{background:transparent}
.scoretable{border-collapse:collapse;font-size:13px;width:100%}.scoretable th,.scoretable td{padding:4px 6px;border-bottom:1px solid var(--line,#eee);text-align:left}
.cell{display:inline-block;padding:1px 6px;border-radius:6px;font-size:12px}
.cell.v-pass{background:#e3f4ea}.cell.v-fail{background:#f8e1df}.cell.v-uncertain{background:#fbf1dc}
.flag.margin{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;border-left:3px solid #d99a1e;padding-left:6px;margin-top:4px}
.flagbtns{display:inline-flex;gap:4px}
.sealedph .bubble{font-style:italic}

.composer{position:sticky;bottom:0;background:var(--panel,#fff);border:1px solid var(--line,#ddd);border-radius:12px;padding:10px;margin-top:14px;box-shadow:0 -4px 12px rgba(0,0,0,.05)}
.composer .row1{display:flex;gap:8px;align-items:center}.composer .row1 select{flex:1;min-width:0}
.composer textarea{width:100%;margin-top:6px}.composer .row2{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-top:6px}

.msg.mod .line{white-space:pre-wrap}

.walkin{border-color:#2e9d5b}.walkin .wk{margin:6px 0 10px 18px;padding:0}.walkin .wk li{margin-bottom:6px}
.toplabel{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0}.toplabel button.on{outline:2px solid currentColor}
.rloop{border-top:1px solid var(--line,#eee);padding-top:8px;margin-top:6px}

/* ADR-009: orientation, view tabs, recap, prompts and private-round bands */
.orient{padding:18px 20px}
.otitle{font-size:24px;margin:2px 0 6px;overflow-wrap:anywhere}
.ometa{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:4px 0}
.ogrid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;margin:12px 0}
.olabel{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#5b6577)}
.obrief p{margin:2px 0 10px;overflow-wrap:anywhere}
.team{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;align-content:start}
.pcard{display:flex;gap:8px;align-items:center;border:1px solid var(--line,#e3e7ee);border-radius:12px;padding:8px 10px;min-width:0}
.pcard>span:last-child{display:flex;flex-direction:column;min-width:0}
.pcard b{font-size:13px;overflow-wrap:anywhere}
.pcard.mod{background:var(--soft,#f5f7fa)}
.mmark.you{background:var(--accent,#2f6fed);color:#fff}
.vtabs{display:flex;gap:4px;border-bottom:1px solid var(--line,#e3e7ee)}
.vtabs a{padding:8px 14px;border-radius:10px 10px 0 0;text-decoration:none;color:inherit;font-weight:500}
.vtabs a[aria-current]{background:var(--panel,#fff);border:1px solid var(--line,#e3e7ee);border-bottom-color:var(--panel,#fff);margin-bottom:-1px}
.recapview{padding:18px 20px}
.rsec{padding:12px 0;border-top:1px solid var(--line,#e3e7ee)}
.rsec:first-child{border-top:0;padding-top:0}
.rhead{font-size:20px;line-height:1.35;margin:4px 0 6px}
.rlimits{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:8px 0;font-size:14px}
.rlimits dt{font-weight:600}
.rlimits dd{margin:0;overflow-wrap:anywhere}
.move{padding:8px 10px;border-left:3px solid var(--accent,#2f6fed);margin:6px 0;background:var(--soft,#f5f7fa);border-radius:0 8px 8px 0}
.msg.prompt .bubble{background:var(--soft,#f5f7fa);border:1px dashed var(--line,#cfd6e2)}
.msg.prompt .to{color:var(--muted,#5b6577)}
.rchip{display:inline-block;border:1px solid var(--line,#e3e7ee);border-radius:999px;padding:0 7px;margin:1px 0}
details.band{border:1px solid var(--line,#e3e7ee);border-radius:12px;padding:8px 10px;margin:8px 0;background:var(--soft,#f5f7fa)}
details.band>summary{cursor:pointer;font-size:13px}
details.band .bandnote{margin:6px 0}
.msg.hl .bubble{outline:2px solid var(--accent,#2f6fed)}
@media (max-width:760px){.ogrid{grid-template-columns:minmax(0,1fr)}.team{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.rlimits{grid-template-columns:minmax(0,1fr)}}
