/* Melt product UI: the design tokens of the themelt.ai demo app (Inter, JetBrains Mono, zinc, violet). */
:root {
  --ink: #18181B; --body: #52525B; --sec: #71717A; --muted: #A1A1AA;
  --border: #E4E4E7; --divider: #ECECEF; --hover: #FAFAFB; --canvas: #FFFFFF;
  --violet: #8041EE; --violet-hov: #6D32D8; --violet-dim: #F1EBFF;
  --green: #16803C; --green-dim: #EEF8F1; --warn-ink: #8A5A12; --warn-dim: #FFF8EC; --warn-line: #F0D9B5;
  --danger: #B42318; --danger-dim: #FDECEC;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.5 Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--violet-hov); }
.mono, .code { font-family: var(--mono); }
.code { font-size: 12px; color: var(--sec); }
.muted { color: var(--sec); }
.small { margin: 0; font-size: 12px; color: var(--sec); }

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 0 1 272px; border-right: 1px solid var(--border); padding: 20px 16px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navlabel { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--sec); padding: 0 10px 6px; }
.navitem { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--body); text-decoration: none; }
.navitem:hover { background: var(--hover); }
.navitem.active { background: var(--violet-dim); color: var(--violet-hov); font-weight: 600; }
.count { font-family: var(--mono); font-size: 11px; background: var(--violet); color: #fff; border-radius: 10px; padding: 1px 8px; }
.signout { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--divider); padding: 12px 8px 0; font-size: 13px; color: var(--sec); }
.signout button { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; min-height: 36px; }
.ws-switch { margin: auto 0 0; padding: 12px 8px 0; }
.ws-switch + .ws-switch { margin-top: 6px; padding-top: 0; }
.ws-switch + .signout { margin-top: 8px; }
.ws-switch button { width: 100%; background: none; border: 1px dashed var(--border); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--sec); cursor: pointer; min-height: 36px; text-align: left; }
.ws-switch button:hover { color: inherit; border-style: solid; }

.content { flex: 999 1 560px; min-width: 0; max-width: 1168px; padding: 28px 40px 56px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--sec); }
.crumbs a { color: var(--sec); text-decoration: none; }
.crumbs .mono { font-size: 12px; color: var(--body); }
.status { margin-left: auto; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 10px; }
.status.open { color: var(--violet-hov); background: var(--violet-dim); }
.status.answered { color: var(--green); background: var(--green-dim); }
.head h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.head p { margin: 0; color: var(--body); max-width: 72ch; }

.deadline { display: flex; flex-wrap: wrap; gap: 16px 32px; border: 1px solid var(--warn-line); background: var(--warn-dim); border-radius: 8px; padding: 14px 18px; }
.deadline > div { display: flex; flex-direction: column; }
.deadline .k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--warn-ink); }
.deadline .v { font-size: 18px; font-weight: 600; }
.deadline .n { font-size: 12px; color: var(--body); }

.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.box { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.box > h2 { margin: 0; padding: 12px 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--sec); background: var(--hover); border-bottom: 1px solid var(--divider); }
.pad { padding: 16px 18px; }
.box.pad { display: flex; flex-direction: column; gap: 12px; }
.box > h2.plain, h2.plain { margin: 0; padding: 0; background: none; border: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
h2.plain-k { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--sec); }
.grid { padding: 16px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.grid > div { display: flex; flex-direction: column; gap: 2px; }
.k { font-size: 12px; color: var(--sec); }
.delta { font-size: 12px; font-weight: 600; color: var(--danger); background: var(--danger-dim); border-radius: 4px; padding: 1px 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; color: var(--body); border: 1px solid var(--border); border-radius: 10px; padding: 2px 10px; }
.chip.ok { color: var(--green); background: var(--green-dim); border-color: #C9E7D3; font-weight: 600; }
.chip.off { border-style: dashed; color: var(--sec); }
.t td.ind { padding-left: 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pad p { margin: 0 0 10px; max-width: 72ch; }

fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
legend { margin-bottom: 4px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.opt:has(input:checked) { border-color: var(--violet); background: #F7F2FF; }
.opt.late { opacity: 0.6; cursor: not-allowed; }
.opt input { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; }
.opt-main { flex: 1 1 160px; display: flex; flex-direction: column; }
.opt-label { font-weight: 600; }
.opt-detail { font-size: 12px; color: var(--body); }
.opt-num { font-size: 12px; }
.tag { font-size: 11px; font-weight: 600; color: var(--violet-hov); background: var(--violet-dim); border-radius: 10px; padding: 1px 8px; margin-left: 8px; }
textarea, input[type=email], input[type=password], input[inputmode=numeric] { font: inherit; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; width: 100%; }
textarea:focus, input:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }
button.primary { min-height: 44px; border: 0; border-radius: 8px; background: var(--violet); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button.primary:hover { background: var(--violet-hov); }
button.secondary { min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.done { display: flex; flex-direction: column; gap: 2px; border: 1px solid #C9E7D3; background: var(--green-dim); border-radius: 8px; padding: 10px 12px; color: var(--green); }
.done span { color: var(--body); font-size: 13px; }
.hist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.hist li { display: flex; flex-direction: column; }
.hist span { color: var(--sec); }

.login { max-width: 420px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.login h1 { margin: 0; font-size: 22px; }
.login p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.error { color: var(--danger); background: var(--danger-dim); border-radius: 6px; padding: 8px 10px; }

@media (max-width: 720px) {
  .content { padding: 20px 16px 40px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .side { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
}
.confirm { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 44px; }
.confirm input { accent-color: var(--danger); width: 16px; height: 16px; }
button.danger { min-height: 44px; border: 1px solid var(--danger); border-radius: 8px; background: #fff; color: var(--danger); font: inherit; font-weight: 600; cursor: pointer; align-self: flex-start; padding: 0 18px; }
button.danger:hover { background: var(--danger-dim); }
p.done { margin: 0; }
.run { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--divider); }
.pad h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
button.pad-x { padding: 0 18px; align-self: flex-start; }

/* ---- discovery workspace, after Michal's themelt.ai/demo: tabs, workflow rail, branch, findings, drawer ---- */
.crumbs .cur { color: var(--ink); font-weight: 500; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-hov); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #B45309; white-space: nowrap; }
.st i { width: 7px; height: 7px; border-radius: 50%; background: #EA580C; }
.st.st-bp { color: #2F61AC; } .st.st-bp i { background: #3B73C9; }
.st.st-live { color: var(--green); } .st.st-live i { background: var(--green); }
a.strong, .strong { color: var(--ink); font-weight: 600; text-decoration: none; }
a.strong:hover { color: var(--violet-hov); }
b.big { font-size: 18px; }
.lead { font-size: 15px; }
.btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 6px; background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--violet-hov); }
.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; font-variant-numeric: tabular-nums; }
.xt { width: 100%; border-collapse: collapse; }
.xt thead th { padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
.xt th.xn, .xt td.xn { text-align: right; width: 128px; font-variant-numeric: tabular-nums; }
.xt td { padding: 7px 10px; font-size: 13px; line-height: 18px; color: var(--ink); border-bottom: 1px solid #F1F1F4; }
.xt th:first-child, .xt td:first-child { padding-left: 0; }
.xt th:last-child, .xt td:last-child { padding-right: 0; }
.xt tr.xr.on .xp { font-weight: 600; }
.xt tr.tot td { border-top: 1px solid var(--border); border-bottom: 0; font-weight: 600; }
/* initiative header and tabs */
.head.ini { display: flex; flex-direction: column; gap: 14px; }
.head.ini h1 { font-size: 25px; font-weight: 700; letter-spacing: -0.025em; }
details.fold > summary { cursor: pointer; padding: 12px 18px; list-style: none; display: flex; align-items: baseline; gap: 10px; }
details.fold > summary::after { content: "View"; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--violet-hov); }
details.fold[open] > summary::after { content: "Hide"; }
details.fold > summary::-webkit-details-marker { display: none; }
details.det > summary { font-weight: 600; }
.kpi { display: flex; align-items: center; gap: 14px; }
.kpi-v { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; color: var(--violet); }
.kpi-k { color: var(--body); font-size: 13.5px; line-height: 1.5; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 10px 0; color: var(--sec); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--violet); }
.ctx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; border-top: 1px solid var(--divider); }
.ctx h3 { margin: 0; font-size: 14px; }
.ctx .xt { margin: 8px 0 10px; }
.note { font-size: 13px; color: var(--body); }
/* observed workflow: equal columns, each stage's dot on one rail */
.wf { margin: 10px 0 0; }
.wf-stages { list-style: none; margin: 0; padding: 0; display: grid; }
.wf-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wf-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wf-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .wf-n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wf-n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } .wf-n8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.wf-stages li { position: relative; display: flex; flex-direction: column; padding: 0 8px 18px 0; min-width: 0; }
.wf-stages li::after { content: ""; position: absolute; left: 0; bottom: 0; width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid #A5A7B0; background: #fff; box-sizing: border-box; z-index: 1; }
.wf-stages li::before { content: ""; position: absolute; left: 4px; right: -4px; bottom: 3.7px; height: 1.6px; background: #A5A7B0; }
.wf-stages li:last-child::before { display: none; }
.wf-k { font-size: 12.5px; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; }
.wf-k .tip { display: inline-flex; color: var(--muted); cursor: help; }
.ico-i { width: 13px; height: 13px; }
.wf-v { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; }
.wf-s { font-size: 12px; color: var(--sec); }
.wf-stages li.good .wf-v { color: var(--green); }
/* the branch off the rail: event, then a fork into two outcomes */
.br-in { position: relative; display: flex; align-items: center; height: 124px; margin-top: -4px; }
.br-elb { position: absolute; left: 4px; top: 0; width: 40px; height: 62px; overflow: visible; }
.br-ev { margin-left: 46px; display: flex; flex-direction: column; padding-right: 12px; background: #fff; }
.br-ev b { font-size: 17px; color: #E0342F; } .br-ev span { font-size: 12.5px; font-weight: 600; } .br-ev small { font-size: 11.5px; color: var(--sec); }
.br-fk { width: 110px; height: 124px; flex: 0 0 auto; overflow: visible; }
.br-out { height: 124px; display: flex; flex-direction: column; justify-content: space-between; padding-left: 8px; }
.br-out > div { display: flex; flex-direction: column; }
.br-out b { font-size: 16px; } .br-out span { font-size: 12.5px; font-weight: 600; } .br-out small { font-size: 11.5px; color: var(--sec); }
.br.wf-n3 .br-at1 { margin-left: calc(100% * 1 / 3); }
.br.wf-n3 .br-at2 { margin-left: calc(100% * 2 / 3); }
.br.wf-n4 .br-at1 { margin-left: calc(100% * 1 / 4); }
.br.wf-n4 .br-at2 { margin-left: calc(100% * 2 / 4); }
.br.wf-n4 .br-at3 { margin-left: calc(100% * 3 / 4); }
.br.wf-n5 .br-at1 { margin-left: calc(100% * 1 / 5); }
.br.wf-n5 .br-at2 { margin-left: calc(100% * 2 / 5); }
.br.wf-n5 .br-at3 { margin-left: calc(100% * 3 / 5); }
.br.wf-n5 .br-at4 { margin-left: calc(100% * 4 / 5); }
.br.wf-n6 .br-at1 { margin-left: calc(100% * 1 / 6); }
.br.wf-n6 .br-at2 { margin-left: calc(100% * 2 / 6); }
.br.wf-n6 .br-at3 { margin-left: calc(100% * 3 / 6); }
.br.wf-n6 .br-at4 { margin-left: calc(100% * 4 / 6); }
.br.wf-n6 .br-at5 { margin-left: calc(100% * 5 / 6); }
.br.wf-n7 .br-at1 { margin-left: calc(100% * 1 / 7); }
.br.wf-n7 .br-at2 { margin-left: calc(100% * 2 / 7); }
.br.wf-n7 .br-at3 { margin-left: calc(100% * 3 / 7); }
.br.wf-n7 .br-at4 { margin-left: calc(100% * 4 / 7); }
.br.wf-n7 .br-at5 { margin-left: calc(100% * 5 / 7); }
.br.wf-n7 .br-at6 { margin-left: calc(100% * 6 / 7); }
.br.wf-n8 .br-at1 { margin-left: calc(100% * 1 / 8); }
.br.wf-n8 .br-at2 { margin-left: calc(100% * 2 / 8); }
.br.wf-n8 .br-at3 { margin-left: calc(100% * 3 / 8); }
.br.wf-n8 .br-at4 { margin-left: calc(100% * 4 / 8); }
.br.wf-n8 .br-at5 { margin-left: calc(100% * 5 / 8); }
.br.wf-n8 .br-at6 { margin-left: calc(100% * 6 / 8); }
.br.wf-n8 .br-at7 { margin-left: calc(100% * 7 / 8); }
/* numbered sections, findings, operational model */
.sx { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 10px; }
.sx-n { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--violet); }
.sx-t { font-size: 15px; font-weight: 600; }
.sx-s { margin-top: 2px; font-size: 13px; color: var(--sec); }
.box > .sx { margin: 16px 18px 10px; }
.fnds { border-bottom: 1px solid var(--border); }
details.fnd { border-top: 1px solid var(--border); }
details.fnd:first-child { border-top: 0; }
details.fnd > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 16px; padding: 14px 0; }
details.fnd > summary::-webkit-details-marker { display: none; }
.fnd-t { flex: 1; font-size: 13.5px; }
.fnd-x { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sec); white-space: nowrap; }
.fnd-chev { width: 14px; height: 14px; transition: transform .15s; }
details.fnd[open] .fnd-chev { transform: rotate(180deg); }
.fnd-in { padding: 0 0 16px; }
.nxt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nxt .sx { margin-bottom: 26px; }
.qbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 6px; background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; }
.qbtn:hover { background: var(--violet-hov); }
.inv-rec { list-style: none; margin: 0; padding: 4px 18px 16px; display: flex; flex-direction: column; }
.inv-rec li { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-top: 1px solid var(--divider); }
.inv-rec li:first-child { border-top: 0; }
.inv-rec b { font-size: 13.5px; }
.inv-rec span { font-size: 13px; color: var(--body); max-width: 78ch; }
.inv-rec span.pending { color: #B7791F; }
.inv-rec small { font-size: 11.5px; color: var(--muted); }
/* control point opened beside its list */
.cpd { padding: 22px 32px 32px; min-width: 0; }
.cpd-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cpd-h h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cpd-h p { margin: 3px 0 0; color: var(--sec); font-size: 13.5px; }
.live { border-color: #C9E7D3; background: var(--green-dim); margin-top: 16px; }
form.inv { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.inv-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--sec); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--divider); }
.inv-q { font-size: 16px; line-height: 23px; font-weight: 600; margin-bottom: 10px; }
.inv-why { margin: 0 0 14px; font-size: 12.5px; line-height: 19px; color: var(--muted); padding-left: 11px; border-left: 2px solid var(--border); max-width: 70ch; }
.inv-opts { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.inv-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font-size: 13.5px; cursor: pointer; min-height: 40px; }
.inv-opt:hover { border-color: #C4B5F0; background: #FDFCFF; }
.inv-opt:has(input:checked) { border-color: var(--violet); background: #F7F3FF; color: var(--ink); }
.inv-opt input { accent-color: var(--violet); width: 15px; height: 15px; margin: 0; }
.inv-opts textarea { margin-top: 4px; }
.inv-acts { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
/* blueprint */
.bars { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.bars label { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 48px; align-items: center; gap: 12px; font-size: 13px; }
.bars progress { width: 100%; height: 12px; appearance: none; border: 0; border-radius: 6px; background: var(--divider); overflow: hidden; }
.bars progress::-webkit-progress-bar { background: var(--divider); border-radius: 6px; }
.bars progress::-webkit-progress-value { background: var(--muted); border-radius: 6px; }
.bars progress::-moz-progress-bar { background: var(--muted); }
.bars progress.v::-webkit-progress-value { background: var(--violet); }
.bars progress.v::-moz-progress-bar { background: var(--violet); }
.cases td, .cases th { padding: 0; }
.cases-h, .cases details > summary { display: grid; gap: 10px; padding: 10px 14px; font-size: 13px; }
.c7 { grid-template-columns: 70px 1.1fr 1fr 1.4fr 1fr 1fr 80px; }
.cases-h .r, .cases summary .r { text-align: right; }
.cases details > summary { cursor: pointer; list-style: none; }
.cases details > summary::-webkit-details-marker { display: none; }
.cases details[open] > summary { background: #F6F2FE; }
span.bad { color: var(--danger); }
.rec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 12px 18px 16px; background: var(--hover); border-top: 1px solid var(--divider); }
.rec h3 { margin: 0 0 8px; font-size: 11px; color: var(--sec); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.rec ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.rec li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; }
.rec li > span { color: var(--sec); font-family: var(--mono); font-size: 11.5px; }
.rec li b { font-family: var(--mono); font-size: 11.5px; margin-right: 6px; }
.rec li i { display: block; color: var(--sec); }
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lanes h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--sec); text-transform: uppercase; }
.comp { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.comp .tag { align-self: flex-end; margin: 0 0 2px; }
@media (max-width: 980px) {
}
@media (max-width: 720px) {
  .ctx, .rec, .lanes { grid-template-columns: minmax(0, 1fr); }
  .wf-stages { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 14px; }
  .wf-stages li::before { display: none; }
  .br-in { margin-left: 0 !important; height: auto; flex-wrap: wrap; gap: 8px; }
  .br-elb, .br-fk { display: none; }
  .br-ev { margin-left: 0; }
  .br-out { height: auto; gap: 8px; }
  .cases-h { display: none; }
  .cases details > summary { grid-template-columns: 1fr 1fr; }
  .t { display: block; overflow-x: auto; }
  .cpd { padding: 18px 16px 24px; }
}
.wf-n6 .wf-k, .wf-n7 .wf-k, .wf-n8 .wf-k { white-space: normal; overflow: visible; }
.xt tr.sub td { font-weight: 600; background: var(--hover); }
.fnd-note { margin: 10px 0 0; font-size: 13px; color: var(--body); }
.inv-why b, .then b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.inv-rec .then { color: var(--body); }
.opt-then { display: block; margin-top: 2px; font-size: 12px; color: var(--sec); }
.inv-opt { align-items: flex-start; }
.inv-opt input { margin-top: 3px; }
.note-demo { margin: 4px 0 12px; display: inline-block; font-size: 12.5px; color: var(--violet-hov); background: var(--violet-dim); border-radius: 4px; padding: 4px 8px; }

/* ---------------- Layout from Michal's demo handoff (2 Nov 2026) ---------------- */
.content { max-width: 1240px; gap: 22px; }
.content > .crumbs:first-child { margin: -28px -40px 0; padding: 0 36px; min-height: 52px; border-bottom: 1px solid var(--border); }
.crumbs .cur { font-weight: 600; }

.navlabel { color: var(--muted); letter-spacing: 0.04em; }
.navitem { justify-content: flex-start; gap: 10px; min-height: 38px; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.navitem .count { margin-left: auto; }
.navitem.active { background: var(--hover); color: var(--ink); border-left: 2px solid var(--violet); padding-left: 12px; border-radius: 0 6px 6px 0; }
.nav-icon { width: 17px; height: 17px; flex: none; color: var(--muted); }
.navitem.active .nav-icon { color: var(--violet); }

.st { padding: 3px 10px; border-radius: 6px; background: var(--warn-dim); color: #B7791F; font-size: 12px; font-weight: 500; }
.st i { background: #EA8A0C; }
.st.st-live { background: var(--green-dim); }
.st.st-ana { background: var(--violet-dim); color: var(--violet-hov); }
.st.st-ana i { display: none; }
.st.st-fail { background: var(--danger-dim); color: var(--danger); }
.st.st-fail i { background: var(--danger); }
.st.st-id { background: #F4F4F5; color: var(--sec); }
.st.st-id i { background: var(--muted); }

.pf-stats { margin-top: 10px; color: var(--body); font-size: 14px; }
.pf-stats b { margin-right: 2px; font-size: 20px; font-weight: 700; color: var(--ink); }
.pf-stats span { margin: 0 6px; color: var(--muted); }
h2.plain.sect-t { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.small.sect-sub { margin: -8px 0 14px; }
.sect-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sect-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { display: flex; gap: 8px; }
.search input[type="search"] { width: 210px; min-height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 13px; }
.search button, .btn-sec { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.search button:hover, .btn-sec:hover { background: var(--hover); }

.t.rows tbody tr { position: relative; }
.t.rows tbody tr:hover { background: var(--hover); }
.t.rows td { vertical-align: middle; padding: 16px 14px; }
.rowlink { color: var(--ink); text-decoration: none; }
.rowlink::after { content: ""; position: absolute; inset: 0; }
.rowlink:focus-visible::after { outline: 2px solid var(--violet); outline-offset: -2px; }
.row-chev { width: 15px; height: 15px; color: var(--muted); vertical-align: middle; }

.ph-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: relative; }
.ph-row h1 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -0.025em; }
.idt > summary { display: inline-flex; align-items: center; gap: 5px; color: var(--sec); font-size: 13px; cursor: pointer; list-style: none; }
.idt > summary::-webkit-details-marker { display: none; }
.idt .ico-i { width: 14px; height: 14px; }
.idt-body { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 8px; padding: 6px 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(24, 24, 27, 0.08); }

.hero { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; padding: 26px 30px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.hero-main { flex: 1 1 380px; min-width: 0; }
.hero-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; }
.hero-v { font-size: 46px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.hero-u { font-size: 15px; font-weight: 600; }
.hero-bar, .qcard-bar, .btc-bar { -webkit-appearance: none; appearance: none; display: block; border: 0; background: #EDEDF2; border-radius: 3px; overflow: hidden; }
.hero-bar { width: 100%; max-width: 420px; height: 6px; margin: 11px 0 8px; }
.hero-bar::-webkit-progress-bar, .qcard-bar::-webkit-progress-bar, .btc-bar::-webkit-progress-bar { background: #EDEDF2; }
.hero-bar::-webkit-progress-value, .qcard-bar::-webkit-progress-value, .btc-bar.v::-webkit-progress-value { background: var(--violet); }
.hero-bar::-moz-progress-bar, .qcard-bar::-moz-progress-bar, .btc-bar.v::-moz-progress-bar { background: var(--violet); }
.hero-d { margin: 0; color: var(--sec); font-size: 13px; font-weight: 500; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-left: 28px; border-left: 1px solid var(--divider); }
.hfact { display: flex; gap: 8px; }
.hfact svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--muted); }
.hfact b { display: block; font-size: 13px; font-weight: 600; }
.hfact span { display: block; margin-top: 2px; color: var(--sec); font-size: 12.5px; }

.tabs { gap: 26px; }
.tabs a { padding: 0 0 10px; }
.tabs a.on { color: var(--violet); font-weight: 600; }
.tab-n { display: inline-block; margin-left: 7px; padding: 0 7px; border-radius: 10px; background: var(--violet-dim); color: var(--violet-hov); font-size: 11px; font-weight: 600; }

.card { padding: 26px 30px 30px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.card-t { margin: 0 0 26px; font-size: 17px; font-weight: 700; }
h2.card-t + .small { margin-top: -18px; margin-bottom: 14px; }
.card h3 { margin: 0; font-size: 14px; }
.card .xt { margin: 10px 0; }
.pb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.fb { list-style: none; display: flex; align-items: flex-end; gap: 6px; margin: 0; padding: 0; }
.fb-stage { flex: 1 1 0; min-width: 0; text-align: center; }
.fb-track { display: flex; align-items: flex-end; height: 215px; }
.fb-box { display: flex; align-items: center; justify-content: center; width: 100%; border-radius: 10px; background: #E9E0FC; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fb-stage.last .fb-box { background: var(--violet); color: #fff; }
.fb-name { margin-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--body); }
.fb-pct { font-size: 12px; color: var(--muted); }
.fb-arrow { flex: 0 0 22px; align-self: center; margin-bottom: 44px; color: #C3C5CD; }
.fb-arrow svg { display: block; width: 22px; height: 10px; }
.fb-box.h20 { height: 43px; }
.fb-box.h25 { height: 54px; }
.fb-box.h30 { height: 64px; }
.fb-box.h35 { height: 75px; }
.fb-box.h40 { height: 86px; }
.fb-box.h45 { height: 97px; }
.fb-box.h50 { height: 108px; }
.fb-box.h55 { height: 118px; }
.fb-box.h60 { height: 129px; }
.fb-box.h65 { height: 140px; }
.fb-box.h70 { height: 150px; }
.fb-box.h75 { height: 161px; }
.fb-box.h80 { height: 172px; }
.fb-box.h85 { height: 183px; }
.fb-box.h90 { height: 194px; }
.fb-box.h95 { height: 204px; }
.fb-box.h100 { height: 215px; }
.sdef { width: 100%; margin-top: 30px; border: 1px solid var(--border); border-radius: 8px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.sdef th { padding: 10px 16px; background: #FAFAFC; border-bottom: 1px solid #E5E5E8; color: #686873; font-size: 12px; font-weight: 500; text-align: left; }
.sdef td { padding: 13px 16px; border-bottom: 1px solid var(--divider); color: var(--body); vertical-align: top; }
.sdef tr:last-child td { border-bottom: 0; }
td.sdef-step { width: 24%; color: var(--ink); font-weight: 600; }

.cpd { padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cpd .tabs { margin-top: 12px; }
.qcard { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.qcard fieldset { margin: 0; padding: 0; border: 0; }
.qcard-top { display: flex; justify-content: space-between; gap: 12px; }
.qcard-top span { color: var(--sec); font-size: 12.5px; }
.qcard-bar { width: 100%; height: 4px; }
.inv-why { color: var(--body); }
.mdone { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.mdone > div { flex: 1 1 280px; min-width: 0; }
.mdone-i { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--green-dim); color: var(--green); font-weight: 700; }
.fnds { display: flex; flex-direction: column; gap: 28px; border: 0; }
.fnd { border: 0; min-width: 0; overflow-x: auto; }
.pb > .card { min-width: 0; overflow-x: auto; }
.cpd { min-width: 0; }
.fnd h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.fnd-t { margin: 0 0 12px; display: block; color: var(--body); font-size: 13px; }
.fnd-note { margin: 10px 0 0; }

.btc { padding: 6px 24px; border: 1px solid var(--border); border-radius: 12px; background: #FCFCFD; }
.btc-row { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr) 90px; gap: 0 18px; align-items: center; padding: 18px 0; }
.btc-row + .btc-row { border-top: 1px solid var(--divider); }
.btc-lab b { display: block; font-size: 13px; }
.btc-lab span, .btc-pct span, .btc-delta span { display: block; color: var(--sec); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.btc-pct { text-align: right; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.btc-bar { width: 100%; height: 8px; border-radius: 4px; }
.btc-bar::-webkit-progress-value { background: #A1A1AA; }
.btc-bar::-moz-progress-bar { background: #A1A1AA; }
.btc-delta { text-align: center; }
.btc-delta b { color: var(--violet); font-size: 20px; font-weight: 700; }
.btc-sub { max-width: 90ch; }

.arch { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 40px; padding: 4px 0; }
.arch-col { display: flex; flex-direction: column; min-width: 0; }
.arch-col h3 { margin: 0 0 14px; color: var(--sec); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.arch-nodes { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.arch-node { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.arch-node b { padding-right: 34px; font-size: 13px; font-weight: 600; }
.arch-node i { position: absolute; top: 0; bottom: 0; width: 20px; }
.arch-node i.o { left: 100%; } .arch-node i.n { right: 100%; }
.arch-node i::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #C9C2E0; }
.arch-node i::after { content: ""; position: absolute; top: -13px; bottom: -13px; border-left: 1px solid #C9C2E0; }
.arch-node i.o::after { right: 0; } .arch-node i.n::after { left: 0; }
.arch-node:first-child i::after { top: 50%; }
.arch-node:last-child i::after { bottom: 50%; }
.arch-col:first-child i.n, .arch-col:last-child i.o { display: none; }
.pill { position: absolute; top: -8px; right: 8px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 600; background: var(--violet-dim); color: var(--violet-hov); }
.pill.exists { background: var(--green-dim); color: var(--green); }
.logic { margin-bottom: 34px; }
.logic ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.logic li small { margin-left: 4px; color: var(--muted); font-size: 11.5px; }
.logic li.pending { color: #B7791F; }
.logic td > p.small { margin: 6px 0 0; }
.fix { margin-top: 4px; }
.fix summary { cursor: pointer; font-size: 12px; color: var(--sec); }
.fix form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 6px; }
.fix label { display: flex; flex-direction: column; gap: 4px; }
.fix textarea, .fix input, .fix select { font: inherit; min-width: 220px; max-width: 100%; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--sec); font-size: 13px; text-decoration: none; }
.tile:hover { background: var(--hover); }
.tile b { color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lib-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.lib-card:hover { background: var(--hover); }
.lib-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider); }

td.sdef-f span, td.sdef-f b { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 400; }
td.sdef-f b { color: var(--ink); font-weight: 600; }
.upf label:not(.confirm) { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
.upf input[type="text"], .upf textarea, .del input[type="text"] { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-weight: 400; }
.btc-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.upf button { align-self: flex-start; }
.card-t-rows th { width: 170px; text-align: left; vertical-align: top; white-space: normal; }
.op-banner { margin: 0 0 18px; padding: 10px 14px; border-radius: 6px; background: #1f1b2e; color: #ffffff; font-size: 13px; }
.navgroup.review { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.del { text-align: left; }
.del > summary { color: var(--danger); cursor: pointer; text-align: right; }
.del form { margin-top: 8px; min-width: 240px; }
.del label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

@media (max-width: 720px) {
  .content > .crumbs:first-child { margin: -28px -16px 0; padding: 12px 16px; }
  .hero { padding: 20px 16px; }
  .hero-facts { padding-left: 0; border-left: 0; }
  .card { padding: 20px 16px; }
  .pb { grid-template-columns: minmax(0, 1fr); }
  .fb { flex-direction: column; align-items: stretch; }
  .fb-arrow { display: none; }
  .fb-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; text-align: left; }
  .fb-track { grid-column: 1 / -1; height: auto; }
  .fb-name, .fb-pct { margin-top: 6px; }
  .tabs { overflow-x: auto; gap: 20px; }
  .tabs a { white-space: nowrap; }
  .fb-box { height: 44px !important; }
  .btc-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .btc-bar { grid-column: 1 / -1; }
  .btc-delta { grid-column: 1 / -1; text-align: left; }
  .btc-delta:empty { display: none; }
  .arch { grid-auto-flow: row; gap: 18px; }
  .arch-node i { display: none; }
  .search input[type="search"] { width: 100%; min-width: 0; }
  .search { flex: 1 1 100%; }
}

/* ===== Demo look and feel (FR-UI-07, FR-UI-08) =====================================================
   The values the Scenario Planner demo (themelt.ai/demo?d=planner) renders, as read from its live DOM on
   21 Nov 2026. Later rules win, so this layer overrides the older component rules above. Inter only; mono
   only for raw source data (table, field and file names, record ids). */
:root {
  --violet-2: #7B2CFF; --violet-2-hov: #6A1FE8; --violet-text: #6D32D8;
  --tint: #F5F0FF; --tint-2: #F8F5FF; --violet-line: #DDD3F7;
  --green: #15803D; --green-dim: #EAF7EE; --warn-ink: #8A5A12; --warn-dim: #FFF8E7; --warn-line: #EFDFB4;
  --danger: #B4232C; --danger-dim: #FDECEC; --grey-dim: #F4F4F5;
}
body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }

/* Shell: a 272px sidebar, a 52px top bar, then the page. */
.shell { flex-wrap: nowrap; align-items: stretch; }
.side { flex: 0 0 272px; width: 272px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 0 0 20px; gap: 0; background: #fff; z-index: 20; }
.brand { padding: 20px 24px 14px; margin: 0 0 4px; gap: 9px; font-size: 25px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.navgroup { gap: 0; }
.navlabel { margin: 20px 0 6px; padding: 0 24px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.navgroup:first-of-type .navlabel { margin-top: 4px; }
.navitem { min-height: 38px; margin: 1px 12px; padding: 6px 14px; gap: 10px; justify-content: flex-start; border-radius: 0; font-size: 13px; font-weight: 500; color: var(--body); }
.navitem .nav-l { flex: 1; }
.navitem:hover { background: #F7F7F8; color: var(--ink); }
.navitem.active { background: var(--hover); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--violet); }
.nav-icon { width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted); }
.navitem.active .nav-icon { color: var(--violet-text); }
.navitem .count { font-size: 11px; font-weight: 600; background: var(--violet-dim); color: var(--violet-text); border-radius: 10px; padding: 1px 8px; }
.ws-switch { margin: auto 12px 0; padding: 12px 0 0; }
.ws-switch + .ws-switch { margin-top: 6px; }
.signout { margin: auto 0 0; padding: 14px 24px 0; gap: 10px; justify-content: flex-start; border-top: 1px solid var(--divider); }
.ws-switch + .signout, .navgroup + .signout { margin-top: 16px; }
.signout .who { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signout button { min-height: 30px; padding: 4px 10px; border-radius: 5px; font-size: 12px; font-weight: 500; color: var(--sec); }
.signout button:hover { background: var(--hover); color: var(--ink); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet-dim); color: var(--violet); font-size: 12px; font-weight: 700; }

.mainwrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 36px; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.bc-sec { color: var(--sec); font-weight: 500; white-space: nowrap; }
.bc-sep { color: #C4C4CC; }
.bc-cur { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-icons { display: flex; align-items: center; gap: 6px; }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: var(--sec); }
.tb-btn:hover { background: var(--hover); color: var(--ink); }
.tb-sep { width: 1px; height: 22px; margin: 0 8px; background: var(--border); }
.tb-user { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.content { flex: 1 1 auto; width: 100%; max-width: 1240px; padding: 28px 36px 56px; }

/* Page head: 20/600 titles, grey 14px lede. */
.head h1, .ph-row h1, .cpd-h h1, .login h1 { font-size: 20px; line-height: 32px; font-weight: 600; letter-spacing: -0.3px; }
.head p, .cpd-h p { font-size: 14px; line-height: 21px; color: var(--sec); max-width: 780px; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.07em; color: var(--muted); }

/* Cards and boxes: hairline borders, no shadow. */
.box { border-radius: 8px; }
.box > h2 { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: var(--hover); padding: 12px 16px; }
.card, .hero { border-radius: 14px; padding: 22px 24px; }
.card-t { font-size: 17px; font-weight: 600; margin-bottom: 18px; }

/* Tables: 10.5px uppercase grey header on #FAFAFB, 16px cells, #ECECEF row lines. */
.t { font-size: 13.5px; color: var(--body); }
.t th { padding: 12px 14px; background: var(--hover); font-size: 10.5px; letter-spacing: 0.07em; color: var(--muted); }
.t td { padding: 16px 14px; }
.t td b, .t td strong, .t td a.strong { color: var(--ink); }
.t.rows tbody tr:hover td { background: var(--hover); }
.box > .t, .card > .t { margin: 0; }

/* Buttons: 36px, radius 5, 14/600. */
button.primary, .btn { min-height: 36px; padding: 0 16px; border-radius: 5px; font-size: 14px; font-weight: 600; gap: 7px; background: var(--violet); }
button.primary:hover, .btn:hover { background: var(--violet-hov); }
button.primary:disabled { background: var(--grey-dim); color: var(--muted); cursor: not-allowed; }
button.secondary, .search button, .btn-sec { min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
button.secondary:hover, .search button:hover, .btn-sec:hover { background: var(--hover); }
button.danger { border-radius: 5px; min-height: 36px; }
.login button.primary { min-height: 40px; }

/* Pills: flat tints, no borders, radius 5 for status. */
.status, .tag, .chip.ok { border-radius: 5px; border: 0; font-weight: 500; }
.status { font-size: 12.5px; padding: 3px 10px; }
.status.open, .tag { background: var(--violet-dim); color: var(--violet-text); }
.status.answered, .chip.ok { background: var(--green-dim); color: var(--green); }
.st { border-radius: 5px; padding: 3px 10px; font-size: 12.5px; }
.st.st-live { background: var(--green-dim); color: var(--green); }
.st.st-fail { background: var(--danger-dim); color: var(--danger); }
.chip { border-radius: 6px; border: 0; background: var(--grey-dim); color: var(--body); font-size: 12.5px; padding: 3px 9px; }
.chip.off { background: #fff; border: 1px dashed #D4D4D8; color: var(--sec); }
.delta { border-radius: 5px; }

/* Tabs: 14px underline tabs, gap 24, active 600 ink with a 2px violet underline. */
.tabs { gap: 24px; margin: 4px 0 4px; }
.tabs a { padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--sec); }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--violet); }

/* Inputs: 40px, radius 8, violet focus ring. */
textarea, input[type=email], input[type=password], input[inputmode=numeric], input[type=text], input[type=search], select { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 14px; background: #fff; }
input[type=email], input[type=password], input[inputmode=numeric], input[type=text] { min-height: 40px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px #EDE4FF; }
.opt { border-radius: 10px; }
.opt:has(input:checked) { border-color: var(--violet); background: var(--tint); }
.opt input, .inv-opt input { accent-color: var(--violet-2); }

/* Banners and callouts: violet tints. */
.deadline { border-radius: 12px; border-color: var(--warn-line); background: var(--warn-dim); }
.note-demo, .callout-v { border: 1px solid #E9E1FB; background: var(--tint-2); border-radius: 12px; padding: 14px 18px; }
.op-banner { margin: 0; border-radius: 8px; }

/* Empty states (FR-UI-09): one line of what is missing, one of what to do. */
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 24px; border: 1px dashed #D4D4D8; border-radius: 12px; background: #fff; }
.empty b, .empty .empty-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.empty p, .empty .empty-s { margin: 0; max-width: 460px; font-size: 13.5px; line-height: 20px; color: var(--sec); }
.empty .btn, .empty button.primary { margin-top: 10px; }
.hero-empty { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; margin: 12px auto 0; }
.hero-empty img { width: 100%; max-width: 580px; height: auto; margin-bottom: 30px; }
.hero-empty h1 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.hero-empty > p { margin: 14px 0 30px; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--sec); }
.hero-empty .btn { min-height: 48px; padding: 0 26px; border-radius: 8px; font-size: 15px; }
.hero-pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--divider); text-align: left; }
.hero-pts > div { padding: 0 16px; font-size: 13px; color: var(--sec); }
.hero-pts > div + div { border-left: 1px solid var(--divider); }
.hero-pts b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }

/* Team cards (Agent Teams), as the demo's Workshop. */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tc-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--violet-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(76,29,149,.06), 0 6px 18px -8px rgba(76,29,149,.14); }
.tc-card.off { border-color: #EDEDF0; background: #FCFCFD; box-shadow: none; }
.tc-top { display: flex; align-items: center; gap: 12px; }
.tc-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--violet-text); flex: 0 0 40px; }
.tc-card.off .tc-ic { background: var(--grey-dim); color: #8B8B94; }
.tc-nm { font-size: 15px; font-weight: 600; line-height: 19.5px; color: var(--ink); }
.tc-ds { margin: 0; font-size: 13px; line-height: 19.5px; color: var(--sec); }
.tc-ms { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--body); }
.tc-ms > div { display: flex; justify-content: space-between; gap: 12px; }
.tc-ms b { color: var(--ink); font-weight: 600; }
.tc-btn { display: flex; align-items: center; justify-content: center; min-height: 36px; margin-top: auto; border: 1px solid var(--violet-line); border-radius: 5px; color: var(--violet-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.tc-btn:hover { background: var(--tint-2); }
.tc-soon { display: flex; align-items: center; justify-content: center; min-height: 36px; margin-top: auto; border-radius: 5px; background: var(--grey-dim); color: var(--muted); font-size: 14px; font-weight: 600; }

@media (max-width: 860px) {
  .shell { flex-wrap: wrap; }
  .side { position: static; height: auto; flex-basis: 100%; width: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
  .hero-pts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-pts > div + div { border-left: 0; }
}
.tc-add { width: 100%; margin-top: auto; }
/* The page's own breadcrumb was stretched to look like a top bar; the real top bar now does that job. */
.content > .crumbs:first-child { margin: 0; padding: 0; min-height: 0; border-bottom: 0; }

/* Team page (demo #screen-team): icon-tile head, "Agents in this team" table. */
.ws-head { display: flex; align-items: flex-start; gap: 16px; }
.ws-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ws-title h1 { margin: 0; }
.ws-ic { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: var(--tint); color: var(--violet-text); }
.ws-ic-t { width: 56px; height: 56px; border-radius: 12px; margin-top: 2px; }
.ws-ic-t svg { width: 28px; height: 28px; }
.ws-desc { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); max-width: 820px; }
.tm-h { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; }
.ws-tbl td { vertical-align: middle; }
.ws-ag { display: flex; align-items: center; gap: 12px; }
.ws-an { font-size: 14px; font-weight: 600; color: var(--ink); }
.ws-as { margin-top: 2px; font-size: 12.5px; color: var(--sec); }
.ws-ev { margin: 0; padding-left: 16px; }
.ws-ev li { font-size: 13px; line-height: 1.55; color: var(--body); }
.ws-st { font-size: 12.5px; color: var(--sec); white-space: nowrap; }
.ws-go { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 5px; background: var(--violet); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ws-go:hover { background: var(--violet-hov); }
.ws-how { margin-top: 6px; }
.ws-how > summary { font-size: 12.5px; color: var(--violet-text); cursor: pointer; }
.ws-how p { margin: 6px 0 0; }

/* Operational Model page (demo #screen-model, built state). */
.om-head { gap: 16px; }
.om-ht { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.om-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; }
.om-meta .k { font-size: 12px; }
.om-sub { margin: -14px 0 0; font-size: 14px; line-height: 21px; color: var(--sec); max-width: 780px; }
.om-assess { display: flex; align-items: center; gap: 22px; padding: 16px 20px; border: 1px solid #ECE4FB; border-radius: 12px; background: linear-gradient(90deg, #F6F1FF, #FBF9FF); }
.om-assess > div { flex: 1; min-width: 0; }
.oma-art { position: relative; flex: 0 0 96px; width: 96px; height: 52px; }
.oma-art i { position: absolute; bottom: 4px; width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 2px 6px rgba(76,29,149,.12); }
.oma-art i:nth-child(1) { left: 6px; background: linear-gradient(160deg, #F4EDE4, #E9DFD2); }
.oma-art i:nth-child(2) { left: 35px; bottom: 16px; width: 28px; height: 28px; background: linear-gradient(160deg, #8B45FF, #6A1FE6); }
.oma-art i:nth-child(3) { left: 66px; background: linear-gradient(160deg, #F4EDE4, #E9DFD2); }
.oma-div { align-self: stretch; width: 1px; background: #E4DAF8; }
.oma-h { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.oma-s { margin: 2px 0 0; font-size: 13.5px; line-height: 20px; color: var(--body); }
.oma-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #D9CCFB; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.oma-btn:hover { background: var(--tint-2); }
.om-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; }
.om-sc { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; min-width: 0; }
.om-sc + .om-sc { border-left: 1px solid var(--divider); }
.om-sv { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.om-sl { font-size: 12px; color: var(--sec); }
.of-switch { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--hover); align-self: flex-start; }
.of-sw { padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--sec); text-decoration: none; }
.of-sw.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(12,8,26,.08); }
@media (max-width: 860px) {
  .om-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .om-sc + .om-sc { border-left: 0; }
  .om-assess { flex-wrap: wrap; }
  .oma-div { display: none; }
}

/* No blue anywhere (FR-UI-07): "Blueprint ready" takes the demo's violet tint, as its "Analysis" pill does,
   and a button with no class looks like the demo's secondary button instead of the browser's default. */
.st.st-bp { background: var(--violet-dim); color: var(--violet-text); }
.st.st-bp i { background: var(--violet); }
main button:not([class]) { min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
main button:not([class]):hover { background: var(--hover); }
.ws-how > summary::after { content: none !important; }
.bc-link { color: var(--sec); font-weight: 500; text-decoration: none; white-space: nowrap; }
.bc-link:hover { color: var(--violet-hov); text-decoration: underline; }
/* A box's own uppercase label, inside its padding: an eyebrow, not a grey strip. */
.box.pad > h2 { margin: 0; padding: 0; background: none; border: 0; }

/* Activity & Performance: the demo's metric strip, measured values only (FR-OUT-02). */
.ov-metric { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.ov-metric-caption { margin: 0; padding: 16px 24px 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; color: var(--muted); }
.ov-metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ov-metric-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 24px 22px; border-right: 1px solid var(--divider); }
.ov-metric-tile:last-child { border-right: 0; }
.ov-metric-val { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-metric-val.is-on { color: var(--ink); }
.ov-metric-label { font-size: 12px; font-weight: 600; color: var(--sec); }

/* Reports: the demo's card list. */
.reports-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.reports-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.rep-ic { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--violet-dim); color: var(--violet); }
.rep-main { flex: 1; min-width: 0; }
.rep-t { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.rep-d { margin: 2px 0 0; font-size: 13px; line-height: 20px; color: var(--body); }
.link-action { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--violet); text-decoration: none; white-space: nowrap; }
.link-action:hover { text-decoration: underline; }

/* Workforce: the demo's count card and agent grid. */
.dc2 { display: flex; align-items: center; gap: 16px; padding: 22px 28px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.dc2-i { color: var(--violet); }
.dc2-n { font-size: 30px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.dc2-n span { margin-left: 6px; font-size: 16px; font-weight: 500; color: var(--body); }
.dc2-s { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--sec); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--green); }
.dot.bp { background: var(--violet); }
.dw-table { display: flex; flex-direction: column; }
.dw-thead, .dw-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 120px 130px 22px; gap: 14px; align-items: center; }
.dw-thead { padding: 0 12px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 500; color: var(--sec); }
.dw-row { position: relative; min-height: 92px; padding: 14px 12px; border-bottom: 1px solid var(--divider); }
.dw-row:hover { background: var(--hover); }
.dw-name { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.dw-name::after { content: ""; position: absolute; inset: 0; }
.dw-sub { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.dw-own { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--body); min-width: 0; }
.dw-av { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #F1F1F3; color: var(--body); font-size: 12px; font-weight: 600; }
.dw-st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.dw-impact b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dw-impact span { font-size: 12px; color: var(--sec); }
.dw-chev { width: 7px; height: 7px; border-right: 1.5px solid #C3C7D0; border-bottom: 1.5px solid #C3C7D0; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .dw-thead { display: none; }
  .dw-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dw-own, .dw-chev { display: none; }
}

/* Agent page (demo .ag2): name, status and action in one row; tabs; open sections instead of boxes. */
.ag2-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ag2-name { margin: 0; font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -0.52px; }
.ag2-act { margin-left: auto; }
.ag2-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.ag2-tabs a { padding: 0 0 12px; font-size: 14px; color: var(--sec); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ag2-tabs a.on { color: var(--violet-text); font-weight: 500; border-bottom-color: var(--violet); }
.ag2-tabs a:hover { color: var(--ink); }
.ov-sec { max-width: 760px; padding-bottom: 20px; border-bottom: 1px solid #EFEFF3; display: flex; flex-direction: column; gap: 8px; }
.ov-sec p, .ov-sec ul { margin: 0; font-size: 14px; line-height: 23px; color: var(--sec); }
.ov-h { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); scroll-margin-top: 64px; }
.box > h2, .box.pad > h2 { scroll-margin-top: 64px; }
.callout-warn { border-color: var(--warn-line); background: var(--warn-dim); border-radius: 12px; }
.callout-warn > h2 { color: var(--warn-ink); font-size: 14px; letter-spacing: 0; text-transform: none; }

/* The demo's violet banner (Workshop's operational model, readiness's starting point). */
.tc-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 16px 20px; border: 1px solid #E9E1FB; border-radius: 12px; background: var(--tint-2); }
.tc-bic { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; background: #EFE8FD; color: var(--violet-text); font-size: 20px; }
.tc-bic svg { width: 24px; height: 24px; }
.tc-bt { flex: 1 1 280px; min-width: 0; }
.tc-bh { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.tc-act { padding: 2px 9px; border-radius: 999px; background: var(--green-dim); color: var(--green); font-size: 12px; font-weight: 500; }
.tc-bs { margin: 2px 0 0; font-size: 13px; color: var(--sec); }
.tc-bdiv { align-self: stretch; width: 1px; background: #E4DAF8; }
.tc-upd { display: flex; flex-direction: column; }
.tc-upd-k { font-size: 12.5px; color: var(--sec); }
.tc-upd-v { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1400px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tc-grid { grid-template-columns: minmax(0, 1fr); } }
.tc-act.tc-off { background: var(--grey-dim); color: var(--body); }
@media (max-width: 860px) {
  .ws-tbl thead { display: none; }
  .ws-tbl, .ws-tbl tbody, .ws-tbl tr, .ws-tbl td { display: block; width: 100%; }
  .ws-tbl tr { border-bottom: 1px solid var(--divider); padding: 6px 0; }
  .ws-tbl td { border: 0; padding: 6px 14px; }
  .ws-tbl td.r { text-align: left; }
}

/* Agent workspace header (demo .aas-head and .aas-tabs, FR-UI-12). */
.aas { display: flex; flex-direction: column; gap: 18px; }
.aas-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.aas-ic { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--violet-text); }
.aas-main { flex: 1 1 320px; min-width: 0; }
.aas-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.aas-t { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.aas-d { margin: 2px 0 0; font-size: 13.5px; color: var(--sec); max-width: 780px; }
.aas-cta { flex: 0 0 auto; }
.aas-tabs { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--border); }
.aas-tabs a { padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--sec); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.aas-tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--violet); }
.aas-tabs a:hover { color: var(--ink); }
/* Under the shared header, a page's own title is its lead, not a second header. */
.aas ~ .cpd > .cpd-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aas ~ .head h1 { font-size: 24px; line-height: 32px; letter-spacing: -0.48px; }
.aas ~ .head .eyebrow { color: var(--muted); }
/* A page's own sub-tabs under the shared header read as the demo's segmented switch, not a second tab strip. */
.aas ~ .cpd nav.tabs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--hover); }
.aas ~ .cpd nav.tabs a { padding: 6px 12px; margin: 0; border: 0; border-radius: 6px; font-size: 13px; color: var(--sec); }
.aas ~ .cpd nav.tabs a.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(12,8,26,.08); }
.breadcrumb { overflow: hidden; flex: 1 1 auto; }
@media (max-width: 860px) {
  .breadcrumb .bc-sec, .breadcrumb .bc-sec + .bc-sep { display: none; }
  .breadcrumb .bc-link:not(:nth-last-child(3)), .breadcrumb .bc-link:not(:nth-last-child(3)) + .bc-sep { display: none; }
}

/* Team card meters (demo .tc-m / .tc-seg): the rating's step in five segments. */
.tc-ms > .tc-m { display: flex; flex-direction: column; gap: 6px; }
.tc-mh { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--body); }
.tc-mv { font-size: 13px; font-weight: 600; color: var(--ink); }
.tc-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tc-seg i { height: 6px; border-radius: 3px; background: #DCD3F5; }
.tc-seg i.on { background: var(--violet-2); }
.tc-seg.off i { background: #ECECEF; }
.tc-card.off .tc-seg i.on { background: #A1A1AA; }

/* ===== Operational Model page, 23 Nov demo pass ===== */
/* Tabs: the demo's .om2-tab (14px, 10px 0, 24px gap, active 600 ink with a 2px violet underline). */
.om2-tabs { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 4px 0 -4px; border-bottom: 1px solid var(--border); }
.om2-tab { margin-bottom: -1px; padding: 10px 0; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--sec); text-decoration: none; }
.om2-tab:hover { color: var(--ink); }
.om2-tab.on { color: var(--ink); font-weight: 600; border-bottom-color: #8041EE; }
.om2-intro { margin: 0; font-size: 14px; color: var(--sec); }
/* Flow: the happy flow on the demo's dotted canvas, white node cards joined by grey connectors. */
.om2-canvas { position: relative; padding: 18px 18px 12px; border: 1px solid var(--border); border-radius: 12px; background-color: #FBFBFC;
  background-image: radial-gradient(#D6D6DC 1px, transparent 1.2px); background-size: 18px 18px; min-width: 0; }
.om2-canvas-empty { padding: 24px; }
.om2-lane { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); overflow-wrap: anywhere; }
.om2-flow { display: flex; align-items: center; gap: 40px; margin: 0; padding: 0 0 4px; list-style: none; }
.om2-node { position: relative; flex: 0 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 220px; min-height: 60px; padding: 12px 16px 12px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 1.5px 4px rgba(24,24,27,.07); transition: border-color .15s; }
.om2-node:hover, .om2-node:focus-visible { outline: none; border-color: #C9B4F5; }
.om2-node.off { border-style: dashed; }
.om2-node + .om2-node::before { content: ""; position: absolute; left: -36px; top: 50%; width: 30px; height: 0; border-top: 1.75px solid #B4B4BC; }
.om2-node + .om2-node::after { content: ""; position: absolute; left: -9px; top: calc(50% - 4px); width: 0; height: 0;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 7px solid #A1A1AA; }
.om2-ic { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #F3EEFE; color: #6D32D8; font-size: 12.5px; font-weight: 600; }
.om2-lab { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.om2-end { background: #FBF9FF; border-color: #E9E1FB; }
.om2-end .om2-ic { background: #EDE4FD; }
.om2-tip { position: absolute; z-index: 5; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 240px; padding: 7px 10px; border-radius: 7px;
  background: #18181B; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4; opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.om2-node:hover .om2-tip, .om2-node:focus-visible .om2-tip { opacity: 1; visibility: visible; }
.om2-hint { margin: 12px 2px 0; font-size: 12.5px; color: var(--sec); }
/* Source data: one row per entity that opens to its source tables and links. */
.om2-src-head, .om2-src > summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1.6fr) minmax(0, .8fr) 16px; gap: 12px; align-items: center; padding: 11px 18px; }
.om2-src-head { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.om2-src-head::after { content: ""; }
.om2-src { border-bottom: 1px solid var(--divider); }
.om2-src > summary { list-style: none; cursor: pointer; font-size: 13px; }
.om2-src > summary::-webkit-details-marker { display: none; }
.om2-src > summary::after { content: "›"; color: var(--muted); text-align: right; transition: transform .15s; }
.om2-src[open] > summary::after { transform: rotate(90deg); }
.om2-src > summary:hover { background: var(--hover); }
.om2-src > summary > * { min-width: 0; overflow-wrap: anywhere; }
.om2-src .r { text-align: right; }
.om2-src-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 18px 16px; background: var(--hover); }
.om2-src-body .t { background: #fff; border: 1px solid var(--divider); border-radius: 8px; }
/* A flow of more than five nodes, and any flow on a phone, runs top to bottom. */
.om2-flow.long { flex-direction: column; align-items: flex-start; gap: 26px; }
.om2-flow.long .om2-node { max-width: 420px; }
.om2-flow.long .om2-node + .om2-node::before { left: 27px; top: -24px; width: 0; height: 18px; border-top: 0; border-left: 1.75px solid #B4B4BC; }
.om2-flow.long .om2-node + .om2-node::after { left: 23px; top: -8px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid #A1A1AA; border-bottom: 0; }
@media (max-width: 720px) {
  .om2-flow { flex-direction: column; align-items: stretch; gap: 26px; }
  .om2-node, .om2-flow.long .om2-node { max-width: none; }
  .om2-node + .om2-node::before { left: 27px; top: -24px; width: 0; height: 18px; border-top: 0; border-left: 1.75px solid #B4B4BC; }
  .om2-node + .om2-node::after { left: 23px; top: -8px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid #A1A1AA; border-bottom: 0; }
  .om2-src-head { display: none; }
  .om2-src > summary { grid-template-columns: minmax(0, 1fr) auto 16px; row-gap: 2px; }
  .om2-src > summary > :nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .om2-src > summary > :nth-child(4) { display: none; }
  .om2-src > summary::after { grid-column: 3; grid-row: 1; }
  .om2-src-body { overflow-x: auto; }
}
/* ===== Agent Teams and team page, 23 Nov demo pass ===== */
/* Cards: 4 in a row as the demo's Workshop, 2 below 1180px, 1 on a phone. */
.tc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tc-grid { grid-template-columns: minmax(0, 1fr); } }
.tc-card { gap: 0; }
.tc-card.tc-live { border-color: #DDD3F7; transition: transform .15s ease, box-shadow .15s ease; }
.tc-card.tc-live:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(76,29,149,.08), 0 10px 24px -10px rgba(76,29,149,.2); }
.tc-top { align-items: flex-start; }
.tc-nm { min-width: 0; overflow-wrap: anywhere; }
.tc-ds { flex: 1 0 auto; margin: 12px 0 0; min-height: 58px; }
.tc-ms { gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #ECECEF; color: #52525B; }
.tc-ms > .tc-m { gap: 7px; }
.tc-card .tc-mh { color: #52525B; }
.tc-card .tc-mv { font-weight: 500; color: var(--ink); }
.tc-btn, .tc-soon, .tc-addf, .tc-note { margin-top: 20px; }
.tc-btn { gap: 6px; border-color: #D9CCFB; color: #6D32D8; font-size: 13.5px; background: #fff; }
.tc-soon { display: flex; gap: 6px; width: 100%; margin-top: 20px; margin-bottom: 0; border: 1px solid #F4F4F5; background: #F4F4F5; color: #A1A1AA; font: inherit; font-size: 13.5px; font-weight: 600; cursor: not-allowed; }
.tc-addf { margin-bottom: 0; }
.tc-addf .tc-add { min-height: 36px; margin: 0; font-size: 13.5px; }
.tc-note { margin-bottom: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Team page: the model strip, the Team assessment row and the agents table as the demo's. */
.tm-banner { margin: 22px 0 28px; }
.tm-mbtn { gap: 7px; white-space: nowrap; }
.tm-as { margin: 0 0 28px; }
.tm-asr { display: flex; flex-wrap: wrap; padding: 2px 0; }
.tm-asc { padding: 2px 28px 2px 0; min-width: 0; }
.tm-asc + .tm-asc { padding-left: 28px; border-left: 1px solid #ECECEF; }
.tm-ask { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #A1A1AA; cursor: help; }
.tm-asl { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.tm-asv { min-width: 76px; font-size: 15px; font-weight: 600; color: var(--ink); }
.tm-asv.off { color: #A1A1AA; }
.tm-seg { display: grid; grid-template-columns: repeat(5, 18px); gap: 4px; }
.tm-seg i { height: 4px; border-radius: 2px; background: #DCD3F5; }
.tm-seg i.on { background: var(--violet-2); }
.tm-seg.off i { background: #E4E4E7; }
.tm-tbl th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #A1A1AA; }
.tm-tbl td { padding-top: 16px; padding-bottom: 16px; }
.tm-nd { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 5px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tm-nd-hi { background: #FEF3F2; color: #B42318; }
.tm-nd-na { background: #F4F4F5; color: #52525B; }
.tm-needs { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--sec); max-width: 26ch; }
.tm-tbl .ws-go { min-height: 36px; padding: 0 16px; font-size: 14px; }
.tm-tbl .ws-go.tm-open { background: #fff; border: 1px solid #D9CCFB; color: #6D32D8; }
.tm-tbl .ws-go.tm-open:hover { background: var(--tint-2); }
.tm-tbl .ws-go.tm-off { background: #F4F4F5; color: #A1A1AA; cursor: not-allowed; }
@media (max-width: 640px) {
  .tm-asr { flex-direction: column; gap: 12px; }
  .tm-asc, .tm-asc + .tm-asc { padding: 0; border-left: 0; }
  .tm-banner .tc-bdiv { display: none; }
}
@media (max-width: 860px) { .tm-tbl td { padding-top: 6px; padding-bottom: 6px; } }
/* ===== Workforce, agent page, sidebar, 23 Nov demo pass ===== */
/* Values read from the live Scenario Planner demo (themelt.ai/demo?d=planner) on 23 Nov 2026. */

/* Sidebar: the demo's six items, with the product's other pages folded in as sub-items (demo .nv-c): indented,
   a 5px dot instead of an icon, violet text on a light tint when current. A parent whose sub-item is current
   keeps its label dark and its icon violet, without the active bar. */
.nv-kids { display: flex; flex-direction: column; padding: 0 0 4px; }
.nv-kids .navitem { min-height: 0; margin: 1px 12px 1px 36px; padding: 7px 10px; gap: 10px; border-radius: 6px; font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--body); }
.nv-kids .navitem::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #C4C4CC; }
.nv-kids .navitem:hover { background: var(--hover); color: var(--ink); }
.nv-kids .navitem.active { background: #F7F3FF; color: var(--violet-text); font-weight: 500; box-shadow: none; }
.nv-kids .navitem.active::before { background: var(--violet); }
.navitem.nv-open { color: var(--ink); font-weight: 600; }
.navitem.nv-open .nav-icon { color: var(--violet-text); }

/* Workforce (/agents): demo .dw-title, .dw-lede, a count card that hugs its content, and the toolbar. */
.head.dw-head { margin-bottom: 26px; }
.head.dw-head h1.dw-title { margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.56px; }
.head.dw-head p.dw-lede { margin: 6px 0 0; font-size: 14.5px; line-height: 22px; color: var(--sec); }
.dw-summary { display: flex; margin: 4px 0 30px; }
.dw-summary .dc2 { flex: 0 1 330px; width: 330px; max-width: 100%; gap: 22px; }
.dw-summary .dc2-i { display: grid; place-items: center; width: 40px; color: var(--violet-text); }
.dw-summary .dc2-n { display: flex; align-items: baseline; gap: 9px; line-height: 30px; letter-spacing: -0.9px; }
.dw-summary .dc2-n span { margin: 0; letter-spacing: 0; color: var(--ink); }
.dw-summary .dc2-s { margin-top: 10px; }
.dw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; }
.dw-search { position: relative; flex: 1 1 260px; max-width: 480px; min-width: 0; }
.dw-search-i { position: absolute; left: 14px; top: 50%; margin-top: -8px; color: var(--muted); pointer-events: none; }
.dw-search input[type=search] { width: 100%; min-height: 40px; padding: 10px 14px 10px 38px; border-radius: 9px; font-size: 13.5px; }
.dw-selw { display: flex; min-width: 0; }
select.dw-sel { min-height: 40px; max-width: 100%; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--ink); }
.dw-tools .dw-go { min-height: 40px; border-radius: 9px; font-size: 13.5px; font-weight: 500; }
.dw-clear { font-size: 13px; color: var(--sec); }
.dw-clear:hover { color: var(--ink); }
.dw-found { margin: -8px 0 14px; color: var(--sec); }
@media (max-width: 720px) {
  .dw-search { flex-basis: 100%; max-width: none; }
  .dw-selw { flex: 1 1 0; }
  select.dw-sel { width: 100%; }
}

/* Agent page: the name at 26px, the status as plain text with a dot on the right (demo .ag2-st-lbl), not a pill. */
.ag2-head .ag2-top { gap: 10px 24px; }
.ag2-head .ag2-name { margin: 0; font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -0.52px; }
.ag2-head .ag2-st { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: 17px; line-height: 24px; font-weight: 500; color: #3F3F46; }
.ag2-head .ag2-st .dot { width: 8px; height: 8px; }
.ag2-head .ag2-act { margin-left: 0; }
.ag2-tabs a { color: var(--sec); }
.ag2-tabs a.on { color: var(--violet); font-weight: 500; }
@media (max-width: 720px) {
  .ag2-head .ag2-st { margin-left: 0; }
}

/* ===== Agent workspace, 23 Nov demo pass ===== */
/* The header title is the page's h1 (FR-UI-12); the tab strip always carries the demo's four tabs. */
h1.aas-t { font-size: 20px; line-height: 28px; }
.aas-tabs { overflow-x: auto; scrollbar-width: none; }
.aas-tabs a { white-space: nowrap; }
.aas-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 36px 40px; border: 1px dashed #D9CCFB; border-radius: 12px; background: #FDFCFF; }
.aas-empty-i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--violet-dim); color: var(--violet-hov); }
.aas-empty h2 { margin: 4px 0 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.aas-empty p { margin: 0; max-width: 640px; font-size: 14px; line-height: 1.6; color: var(--sec); }
.aas-empty .btn { margin-top: 6px; }

/* Historical Analysis (demo .ha): the question, the donut and the two outcomes, then the evidence side by side. */
.cpd.ha { gap: 22px; }
.ha-top { display: grid; grid-template-columns: minmax(0, 1fr) 184px minmax(0, 1fr); gap: 40px; align-items: center; padding: 26px 28px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.ha-q { margin: 0; font-size: 26px; line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.ha-qs { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--sec); }
.ha-donut { position: relative; width: 184px; height: 184px; }
.ha-donut svg { display: block; width: 100%; height: 100%; }
.ha-dm { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ha-dm b { font-size: 26px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ha-dm span { font-size: 13px; color: var(--sec); }
.ha-leg { display: flex; flex-direction: column; justify-content: center; padding-left: 32px; border-left: 1px solid var(--divider); }
.ha-li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; }
.ha-li + .ha-li { border-top: 1px solid var(--divider); }
.ha-k { width: 12px; height: 12px; border-radius: 50%; align-self: start; margin-top: 9px; background: #E3D3FB; }
.ha-k.on { background: #7B2CFF; }
.ha-pc { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ha-li.on .ha-pc { color: var(--violet-hov); }
.ha-ll { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.ha-n { font-size: 14px; color: var(--sec); white-space: nowrap; }
.ha-n b { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ev-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; }
.ev-card { padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff; min-width: 0; }
.ev-ch { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ev-ch h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.ev-ci { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: #F5F0FF; color: var(--violet-hov); }
.ev-ci svg { width: 18px; height: 18px; }
.ev-card .fnd-t { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.ev-scroll { overflow-x: auto; }
.ev-card .xt th.xn, .ev-card .xt td.xn { width: auto; }
.ev-card .fnd-note { margin: 10px 0 0; font-size: 12.5px; color: var(--sec); }
.ha-wf { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* "Complete the model" as the demo's configure step (.cfx): progress track, question count, violet evidence, flat options. */
.qcard.cfx { gap: 10px; padding: 26px 28px 20px; }
.cfx-sh { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.cfx-ss { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--sec); }
.cfx-track { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 5px; border: 0; border-radius: 3px; background: #EDEDF2; overflow: hidden; }
.cfx-track::-webkit-progress-bar { background: #EDEDF2; }
.cfx-track::-webkit-progress-value { background: #7B2CFF; border-radius: 3px; }
.cfx-track::-moz-progress-bar { background: #7B2CFF; border-radius: 3px; }
.cfx-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.cfx-qn { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cfx-q { margin: 0 0 16px; padding: 0; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.cfx-ev { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: #F8F5FF; margin-bottom: 16px; }
.cfx-ev > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: #7B2CFF; }
.cfx-ev b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cfx-ev p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.cfx-ev p b { display: inline; margin-right: 4px; }
.cfx-ops { display: flex; flex-direction: column; max-width: 680px; }
.cfx-op { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.cfx-op + .cfx-op { border-top: 1px solid var(--divider); }
.cfx-op:hover { background: #FAFAFC; }
.cfx-op:has(input:checked) { background: #F3EEFE; border-top-color: transparent; }
.cfx-op:has(input:checked) + .cfx-op { border-top-color: transparent; }
.cfx-op input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #7B2CFF; }
.cfx-op span { display: flex; flex-direction: column; gap: 3px; }
.cfx-op .opt-then { font-size: 12.5px; color: var(--sec); }
.cfx-ops textarea { margin-top: 8px; border-radius: 10px; }
.cfx-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.cfx-back { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); text-decoration: none; background: #fff; }
.cfx-back:hover { background: var(--hover); }
.cfx-foot .small { flex: 1 1 auto; text-align: right; }
button.cfx-next { min-height: 42px; border-radius: 8px; background: #7B2CFF; align-self: auto; }
button.cfx-next:hover { background: #6A1FE8; }

/* Simulation Results (demo .sr3 / .sr2): the hero card, what changes, then the decision examples with a case drawer. */
.sim-h { display: flex; flex-direction: column; gap: 4px; }
.sim-h .eyebrow { margin: 0; }
.sim-lead { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); }
.sr3 { padding: 22px 32px 18px; border: 1px solid #E9E1FB; border-radius: 14px; background: radial-gradient(300px at 120px 62%, rgba(123,44,255,.16) 0%, rgba(123,44,255,.1) 38%, rgba(123,44,255,.04) 70%, rgba(123,44,255,0) 100%), #FDFCFF; }
.sr3-ttl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sr3-ttl h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.sr3-ttl span { font-size: 13.5px; color: var(--sec); }
.sr3-row { display: grid; grid-template-columns: 34fr 42fr 24fr; align-items: center; margin-top: 16px; }
.sr3-hero { padding-right: 32px; }
.sr3-big { font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: #7B2CFF; font-variant-numeric: tabular-nums; }
.sr3-bl { margin-top: 10px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.sr3-mid { padding: 0 32px 0 40px; border-left: 1px solid #ECE6F8; border-right: 1px solid #ECE6F8; }
.sr3-m { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(64px, 32%); align-items: center; gap: 14px; padding: 12px 0; }
.sr3-m + .sr3-m { border-top: 1px solid #ECE6F8; }
.sr3-m .v { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sr3-m .l b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sr3-m .l small { display: block; font-size: 12.5px; color: var(--sec); }
.sr3-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: #EEE8FA; overflow: hidden; }
.sr3-bar::-webkit-progress-bar { background: #EEE8FA; }
.sr3-bar::-webkit-progress-value { background: #A1A1AA; border-radius: 3px; }
.sr3-bar::-moz-progress-bar { background: #A1A1AA; border-radius: 3px; }
.sr3-bar.better::-webkit-progress-value { background: #7FB894; }
.sr3-bar.better::-moz-progress-bar { background: #7FB894; }
.sr3-side { padding-left: 32px; }
.sr3-side .v { font-size: 28px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sr3-side .l { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sr3-side .s { font-size: 12.5px; color: var(--sec); }
.sr3-note { margin-top: 14px; }
.sr2-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--divider); min-width: 0; }
.sr2-t, .sr2-exh h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.sr2-exh p { margin: 4px 0 0; }
.sr-scroll { overflow-x: auto; max-height: 560px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.sr-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sr-tbl th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 12px; font-weight: 500; color: var(--sec); padding: 11px 12px; background: #fff; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sr-tbl td { padding: 12px; border-bottom: 1px solid var(--divider); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.sr-tbl td.md { white-space: normal; min-width: 220px; }
.sr-tbl tr:last-child td { border-bottom: 0; }
.sr-tbl tbody tr:hover td { background: #F8F5FF; }
.sr-tbl td:first-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-tbl td:first-child a { color: var(--ink); text-decoration: none; }
.sr-tbl td.go { width: 28px; text-align: right; }
.sr-tbl td.go a { color: #7B2CFF; font-size: 16px; text-decoration: none; }
.sr-oc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.sr-oc svg { width: 13px; height: 13px; }
.sr-oc.better { background: #EAF7EE; color: #15803D; }
/* The case drawer: a :target panel on the right, closed by the link back to the table (the CSP allows no script). */
.srd-ov { display: none; position: fixed; inset: 0; z-index: 320; justify-content: flex-end; background: rgba(24,24,27,.18); }
.srd-ov:target { display: flex; }
.srd-bg { position: absolute; inset: 0; }
.srd { position: relative; width: min(500px, 100vw); height: 100%; background: #fff; box-shadow: -16px 0 40px rgba(12,8,26,.14); display: flex; flex-direction: column; }
.srd-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 26px 16px; }
.srd-t { font-size: 21px; font-weight: 600; color: var(--ink); }
.srd-ts { margin-top: 2px; font-size: 13px; color: var(--sec); }
.srd-x { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; font-size: 24px; line-height: 1; color: var(--body); text-decoration: none; }
.srd-x:hover { background: var(--hover); }
.srd-b { flex: 1 1 0; overflow: auto; padding: 0 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.srd-call { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; }
.srd-call > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.srd-call b { display: block; font-size: 14px; }
.srd-call p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--body); }
.srd-call.better { background: #EEF9F1; border: 1px solid #CDEBD6; color: #15803D; }
.srd-sh { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.srd-kv { margin: 0; display: flex; flex-direction: column; }
.srd-kv > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; }
.srd-kv dt { color: var(--body); }
.srd-kv dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.srd-cmp { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; }
.srd-cmp > div { padding: 14px 16px; min-width: 0; }
.srd-cmp > div + div { border-left: 1px solid var(--border); background: #FBF9FF; }
.srd-cmp .k { font-size: 13px; font-weight: 600; color: var(--ink); }
.srd-cmp ol { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--body); }
.srd-cmp li span { color: var(--sec); }
.srd-cmp li i { display: block; color: var(--danger); font-style: normal; }
.srd-why { padding: 16px 18px; border-radius: 10px; background: #F8F5FF; }
.srd-why .srd-sh { margin-bottom: 6px; }
.srd-why p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--body); }

/* Agent Blueprint: the Trigger → Context → Decision → Action diagram (demo .arch3) leads, above the decision logic. */
.arch3-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.arch3-card .sect-t { margin: 0; }
.arch3-card .sect-sub { margin: 2px 0 18px; }
.arch3 .arch-col h3 { margin-bottom: 16px; color: #71717A; letter-spacing: 0.08em; }
.arch3 .arch-node { padding: 12px 14px; }
.arch3 .arch-node b { font-size: 14px; line-height: 1.3; }
.arch3 .arch-node .small { font-size: 12px; }
.arch3 .pill { top: -8px; right: 0; padding: 2px 6px; border: 1px solid #fff; border-radius: 10px; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.arch3 .arch-col + .arch-col .arch-node::before { content: ""; position: absolute; left: -6px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 5px solid #C9C2E0; border-right: 0; }

/* Configuration (demo two-column card): Scope, a read-only authority grid, Business rules; status and history after it. */
.cfgc { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.cfgc-sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 22px 26px; }
.cfgc-sec + .cfgc-sec { border-top: 1px solid var(--divider); }
.cfgc-lab h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.cfgc-lab p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--sec); }
.cfgc-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cfgc-body > p { margin: 0; }
.cfgc-kv { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 13.5px; }
.cfgc-kv > span { color: var(--sec); }
.cfgc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cfgc-chip { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--hover); font-size: 12.5px; color: var(--ink); }
.cfgc-scroll { overflow-x: auto; }
.cfgc-auth { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cfgc-auth th { padding: 8px 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sec); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cfgc-auth td { padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.cfgc-auth th:first-child, .cfgc-auth td:first-child { padding-left: 0; }
.cfgc-on { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--violet-dim); color: var(--violet-hov); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.cfgc-off { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1100px) {
  .ha-top { grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; }
  .ha-qw { grid-column: 1 / -1; }
  .ha-donut { width: 160px; height: 160px; order: 2; }
  .ha-leg { padding-left: 0; border-left: 0; }
  .sr3-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sr3-hero { padding-right: 0; }
  .sr3-mid { padding: 0; border: 0; border-top: 1px solid #ECE6F8; border-bottom: 1px solid #ECE6F8; }
  .sr3-side { padding-left: 0; }
}
@media (max-width: 860px) {
  .ev-pair { grid-template-columns: minmax(0, 1fr); }
  .cfgc-sec { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
}
@media (max-width: 720px) {
  .aas-empty { padding: 24px 18px; }
  .ha-top { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; justify-items: start; }
  .ha-q { font-size: 21px; }
  .ha-donut { order: 0; }
  .ha-leg { width: 100%; }
  .ev-card { padding: 16px; }
  .qcard.cfx { padding: 20px 16px 16px; }
  .cfx-foot .small { flex-basis: 100%; order: 3; text-align: left; }
  .sr3 { padding: 18px 16px; }
  .sr3-big { font-size: 46px; }
  .sr3-m { grid-template-columns: 62px minmax(0, 1fr); gap: 6px 12px; }
  .sr3-m .v, .sr3-side .v { font-size: 22px; }
  .sr3-bar { grid-column: 1 / -1; }
  .srd-h { padding: 18px 16px 12px; }
  .srd-b { padding: 0 16px 22px; }
  .srd-cmp { grid-template-columns: minmax(0, 1fr); }
  .srd-cmp > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .arch3-card { padding: 18px 16px; }
  .arch3 .arch-node::before { display: none; }
  .cfgc-kv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ===== In-app upload and help, 23 Nov ===== */
/* Drawers on the right (the demo's .oc-drawer), opened by their #id with :target, closed by a link (no script). */
.dr-ov, .hp-ov { display: none; position: fixed; inset: 0; z-index: 330; justify-content: flex-end; background: rgba(24, 24, 27, .32); }
.dr-ov:target, .dr-ov.dr-open, .hp-ov:target { display: flex; }
.dr-bg, .hp-bg { position: absolute; inset: 0; }
.dr, .hp { position: relative; height: 100%; background: #fff; box-shadow: -16px 0 40px rgba(12, 8, 26, .16); display: flex; flex-direction: column; min-width: 0; }
.dr { width: min(980px, calc(100vw - 300px)); }
.dr-h, .hp-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 32px 16px; border-bottom: 1px solid var(--divider); }
.dr-h > div, .hp-h > div { min-width: 0; }
.dr-t, .hp-t { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.dr-s { margin: 2px 0 0; font-size: 13px; color: var(--sec); overflow-wrap: anywhere; }
.dr-x, .hp-x { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; font-size: 20px; line-height: 1; color: var(--body); text-decoration: none; }
.dr-x:hover, .hp-x:hover { background: var(--hover); }
.dr-b { flex: 1 1 0; overflow: auto; padding: 16px 32px 24px; display: flex; flex-direction: column; gap: 14px; }
.dr-b .upf { padding: 0; gap: 12px; }
.dr-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 32px; border-top: 1px solid var(--divider); background: #fff; }
.dr-f .btn, .dr-f .btn-sec, .dr-f button { gap: 8px; }
.up-ico { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-sec .up-ico { width: 15px; height: 15px; }
/* The dropzone: the native file input sits in it, so a drop on the input and the chosen file names both work without script. */
.up-dz { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 20px; border: 1.5px dashed #D3C1FA; border-radius: 14px; background: #FCFAFF; text-align: center; cursor: pointer; }
.up-dz:hover, .up-dz:focus-within { border-color: var(--violet); }
.up-dz .up-ico { width: 26px; height: 26px; color: var(--violet); }
.up-dz-t { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.up-dz-s { font-size: 13.5px; color: var(--sec); }
.up-dz input[type="file"] { margin-top: 14px; max-width: 100%; font: inherit; font-size: 13px; color: var(--body); }
.up-dz input[type="file"]::file-selector-button { margin-right: 10px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 5px; background: var(--violet); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.up-dz:has(input:valid) { border-style: solid; border-color: var(--violet); }
.up-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.up-stats b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-stats span { display: block; font-size: 12.5px; color: var(--sec); }
.up-fwrap { border: 1px solid var(--border); border-radius: 10px; overflow: auto; }
.up-ftbl { width: 100%; }
.up-ftbl thead th { position: sticky; top: 0; background: #FAFAFB; }
.up-ix { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.up-fnm { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.up-fsz { font-size: 13px; color: var(--sec); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The Data received state: a three-step rail, then what Melt received beside where the analysis stands. */
.ocr-rail { display: flex; align-items: center; margin: 4px 0 0; padding: 20px 0; list-style: none; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.ocr-s { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; }
.ocr-s:last-child { flex: 0 0 auto; }
.ocr-s:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 32px; height: 2px; margin: 0 20px; background: #E4E4E7; }
.ocr-s.is-done::after { background: #7B2CFF; }
.ocr-s b { display: block; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ocr-s small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.ocr-d { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #E4E4E7; font-size: 13px; font-weight: 600; color: var(--muted); }
.ocr-d svg { width: 16px; height: 16px; }
.ocr-s.is-done b { color: var(--ink); } .ocr-s.is-done small { color: var(--sec); }
.ocr-s.is-done .ocr-d { background: #7B2CFF; border-color: #7B2CFF; color: #fff; }
.ocr-s.is-now b { color: var(--violet-hov); } .ocr-s.is-now small { color: var(--sec); }
.ocr-s.is-now .ocr-d { border-color: #7B2CFF; color: var(--violet-hov); box-shadow: 0 0 0 4px var(--violet-dim); }
.ocr-s.is-fail b { color: var(--danger); } .ocr-s.is-fail small { color: var(--sec); }
.ocr-s.is-fail .ocr-d { border-color: var(--danger); color: var(--danger); }
.ocr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ocr-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-right: 48px; }
.ocr-col + .ocr-col { padding: 0 0 0 48px; border-left: 1px solid var(--divider); }
.ocr-k { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ocr-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 20px; }
.ocr-stats b { display: block; font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ocr-stats span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sec); }
.ocr-files { align-self: stretch; margin-bottom: 14px; border-top: 1px solid var(--border); }
.ocr-f { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; color: var(--ink); }
.ocr-f span { min-width: 0; overflow-wrap: anywhere; }
.ocr-f em { font-style: normal; color: var(--sec); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ocr-more { font-size: 13.5px; font-weight: 500; color: var(--violet-hov); text-decoration: none; }
.ocr-more:hover { text-decoration: underline; }
.ocr-t { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ocr-p { margin: 0 0 16px; font-size: 14px; color: var(--sec); }
.ocr-ul { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.ocr-ul li { display: flex; gap: 14px; align-items: flex-start; }
.ocr-ul svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; color: #7B2CFF; }
.ocr-ul b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.ocr-ul span { display: block; margin-top: 2px; font-size: 13px; color: var(--sec); }
.ocr-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ocr-cta .btn { min-height: 44px; padding: 0 22px; border-radius: 8px; font-size: 14.5px; gap: 9px; }
.ocr-cta .btn-sec { min-height: 44px; }
.ocr-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.om-head .btn-sec { gap: 7px; }
/* The help panel: narrower than the data drawer, opened from the top bar's "?" */
.hp { width: min(440px, 100vw); }
.hp-k { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hp-b { flex: 1 1 0; overflow: auto; padding: 18px 32px 28px; }
.hp-what { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.hp-sh { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hp-parts { margin: 0 0 22px; border-top: 1px solid var(--divider); }
.hp-parts > div { padding: 10px 0; border-bottom: 1px solid var(--divider); }
.hp-parts dt { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hp-parts dd { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--body); }
.hp-next { margin: 0 0 22px; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--body); display: flex; flex-direction: column; gap: 6px; }
.hp-foot { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F8F5FF; font-size: 13px; font-weight: 500; color: var(--violet-hov); }
.up-fwrap .t { display: table; width: 100%; }
.dr-f button.primary { display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .dr { width: 100%; }
  .dr-h, .hp-h { padding: 16px 16px 12px; }
  .dr-b, .hp-b { padding: 14px 16px 20px; }
  .dr-f { padding: 12px 16px; }
  .ocr-cols { grid-template-columns: minmax(0, 1fr); }
  .ocr-col { padding: 0 0 28px; }
  .ocr-col + .ocr-col { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--divider); }
  .ocr-rail { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ocr-s, .ocr-s:last-child { flex: 0 0 auto; }
  .ocr-s:not(:last-child)::after { display: none; }
}

/* ===== Generate agent, add an agent, 23 Nov ===== */
/* FR-UI-14. The configure step's last button generates the agent; the results page then shows what Melt did and a toast.
   No script: the toast fades with a CSS animation, the Add an agent modal is a :target panel and its rows open with :checked. */
.gen-form { display: inline-flex; margin: 0; }
.gen-form .btn, .aam-f .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; gap: 6px; }
.gen-st { margin-left: 8px; font-size: 13px; color: var(--sec); white-space: nowrap; }
.gen-stale { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 16px;
  border: 1px solid var(--warn-line); border-radius: 10px; background: var(--warn-dim); color: var(--warn-ink); }
.gen-stale > div { flex: 1 1 280px; min-width: 0; }
.gen-stale .small { color: var(--body); margin-top: 2px; }
.gen-did { margin: 0 0 20px; padding: 18px 20px; border: 1px solid var(--violet-line); border-radius: 12px; background: linear-gradient(180deg, var(--tint), #fff); }
.gen-h { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.gen-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gen-steps li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.gen-steps li > div { display: flex; flex-direction: column; min-width: 0; }
.gen-steps b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.gen-steps span:not(.gen-tick) { font-size: 12.5px; line-height: 18px; color: var(--sec); overflow-wrap: anywhere; }
.gen-tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--violet-2); color: #fff; font-size: 12px; font-weight: 700; }
.gen-note { margin-top: 12px; max-width: 900px; }
.gen-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; margin: 0; padding: 10px 16px; max-width: calc(100vw - 32px);
  width: max-content; border-radius: 8px; background: #3F3F46; color: #fff; font-size: 13px; box-shadow: 0 8px 24px rgba(24, 24, 27, .18);
  animation: gen-toast 5s ease forwards; pointer-events: none; }
@keyframes gen-toast { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .gen-toast { animation: none; } }

/* Workforce: the demo's "+ Add an agent" and its modal */
.head.dw-head.dw-head-add { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.head.dw-head.dw-head-add > div { flex: 1 1 320px; min-width: 0; }
.dw-add { gap: 6px; min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.aam-ov { display: none; position: fixed; inset: 0; z-index: 70; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.aam-ov:target { display: flex; }
.aam-bg { position: fixed; inset: 0; background: rgba(24, 24, 27, .32); }
.aam { position: relative; width: 100%; max-width: 640px; margin: 0; padding: 24px; border-radius: 14px; background: #fff;
  box-shadow: 0 24px 60px -12px rgba(24, 24, 27, .28); display: flex; flex-direction: column; gap: 16px; }
.aam-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.aam-h h2 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.3px; text-transform: none; color: var(--ink); }
.aam-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--sec); }
.aam-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: var(--ink);
  font-size: 22px; line-height: 1; text-decoration: none; }
.aam-x:hover { background: var(--hover); }
.aam-body { display: flex; flex-direction: column; gap: 14px; }
.aam-list { margin: 0; padding: 0; border: 0; min-width: 0; }
.aam-scroll { display: flex; flex-direction: column; gap: 14px; max-height: min(40vh, 400px); overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 6px 2px 2px; }
.aam-lg { padding: 0; margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.aam-team h3 { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sec); }
.aam-team { display: flex; flex-direction: column; gap: 6px; }
.aam-op { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; min-width: 0; }
.aam-op:hover { border-color: var(--violet-line); }
.aam-op input { flex: none; margin: 3px 0 0; accent-color: var(--violet-2); }
.aam-op.soon { cursor: default; background: var(--hover); }
.aam-op.soon:hover { border-color: var(--border); }
.aam-op:has(input:checked) { border-color: var(--violet-2); background: var(--tint-2); }
.aam-op:has(input:focus-visible) { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.aam-ob { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.aam-on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.aam-on b { font-size: 14px; font-weight: 600; color: var(--ink); }
.aam-op.soon .aam-on b { color: var(--body); }
.aam-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.aam-chip.ok { background: var(--violet-dim); color: var(--violet-text); }
.aam-chip.have { background: var(--green-dim); color: var(--green); }
.aam-chip.soon { background: var(--grey-dim); color: var(--sec); }
.aam-dec { font-size: 13px; line-height: 19px; color: var(--body); }
.aam-w { font-size: 12px; color: var(--sec); overflow-wrap: anywhere; }
.aam-w .mono { font-size: 11.5px; color: var(--body); }
.aam-more { display: none; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--violet-line); }
.aam-op input:checked + .aam-ob .aam-more { display: flex; }
.aam-hl { font-size: 12px; font-weight: 600; color: var(--ink); }
.aam-helps { display: flex; flex-direction: column; gap: 3px; }
.aam-helps span { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--body); }
.aam-helps span::before { content: "✓"; position: absolute; left: 0; color: var(--violet-2); font-weight: 700; }
.aam-next { font-size: 12.5px; color: var(--sec); }
.aam-help { padding: 14px 16px; border-radius: 10px; background: var(--tint-2); border: 1px solid var(--violet-line); display: flex; flex-direction: column; gap: 4px; }
.aam-help b { font-size: 13px; color: var(--ink); }
.aam-help p { margin: 0 0 6px; font-size: 12.5px; line-height: 19px; color: var(--body); }
.aam-help p:last-child { margin-bottom: 0; }
.aam-f { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--divider); }
.aam-f .btn { min-height: 38px; }
.tm-hrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.tm-add { font-size: 13.5px; font-weight: 600; color: var(--violet-text); text-decoration: none; }
.tm-add:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .gen-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gen-steps { grid-template-columns: minmax(0, 1fr); }
  .gen-st { display: block; margin: 4px 0 0; white-space: normal; }
  .aam-ov { padding: 16px 12px; }
  .aam { padding: 18px 16px; }
  .aam-f { flex-direction: column-reverse; }
  .aam-f .btn, .aam-f .btn-sec { justify-content: center; }
}

/* ===== Model breakdowns, fill rates, lanes, 23 Nov ===== */
/* Flow lanes: one row per business area a step's evidence comes from, the steps in order across the columns. Rows are
   a fixed height so a connector between lanes can be drawn from classes alone (no style attribute, no script). */
.om3-grid { --om3-row: 104px; --om3-gap: 34px; position: relative; display: grid; grid-template-columns: 128px; column-gap: var(--om3-gap); align-items: center; min-width: 0; }
.om3-n2 { grid-template-columns: 128px repeat(2, minmax(0, 1fr)); }
.om3-n3 { grid-template-columns: 128px repeat(3, minmax(0, 1fr)); }
.om3-n4 { grid-template-columns: 128px repeat(4, minmax(0, 1fr)); }
.om3-n5 { grid-template-columns: 128px repeat(5, minmax(0, 1fr)); }
.om3-l2 { grid-template-rows: repeat(2, var(--om3-row)); }
.om3-l3 { grid-template-rows: repeat(3, var(--om3-row)); }
.om3-l4 { grid-template-rows: repeat(4, var(--om3-row)); }
.om3-l5 { grid-template-rows: repeat(5, var(--om3-row)); }
.om3-l6 { grid-template-rows: repeat(6, var(--om3-row)); }
.om3-r1 { grid-row: 1; } .om3-r2 { grid-row: 2; } .om3-r3 { grid-row: 3; } .om3-r4 { grid-row: 4; } .om3-r5 { grid-row: 5; } .om3-r6 { grid-row: 6; }
.om3-c2 { grid-column: 2; } .om3-c3 { grid-column: 3; } .om3-c4 { grid-column: 4; } .om3-c5 { grid-column: 5; } .om3-c6 { grid-column: 6; }
.om3-flow { display: contents; margin: 0; padding: 0; list-style: none; }
.om3-band { grid-column: 1 / -1; align-self: stretch; margin: 0 -18px; border-top: 1px dashed #DCDCE2; background: rgba(255,255,255,.45); }
.om3-band.om3-r1 { border-top: 0; }
.om3-lh { grid-column: 1; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); overflow-wrap: anywhere; }
.om3-lh .mono { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.om3-node { max-width: none; align-self: center; }
.om3-node + .om3-node::before, .om3-node + .om3-node::after { display: none; }
.om3-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om3-fact { font-size: 11.5px; color: var(--sec); }
.om3-tag { display: none; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.om3-tag.om3-show { display: block; }
/* Connectors: flat within a lane; an elbow from the lane above (om3-dn) or below (om3-up), d rows away. */
.om3-ln { position: absolute; left: calc(-1 * var(--om3-gap)); width: calc(var(--om3-gap) / 2); pointer-events: none; }
.om3-flat { top: 50%; width: calc(var(--om3-gap) - 4px); height: 0; border-top: 1.75px solid #B4B4BC; }
.om3-flat::after { content: ""; position: absolute; right: -4px; top: -5.5px; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 7px solid #A1A1AA; }
.om3-dn { border-top: 1.75px solid #B4B4BC; border-right: 1.75px solid #B4B4BC; border-top-right-radius: 6px; }
.om3-up { top: 50%; border-bottom: 1.75px solid #B4B4BC; border-right: 1.75px solid #B4B4BC; border-bottom-right-radius: 6px; }
.om3-dn.om3-d1 { top: calc(50% - var(--om3-row)); height: var(--om3-row); }
.om3-dn.om3-d2 { top: calc(50% - 2 * var(--om3-row)); height: calc(2 * var(--om3-row)); }
.om3-dn.om3-d3 { top: calc(50% - 3 * var(--om3-row)); height: calc(3 * var(--om3-row)); }
.om3-dn.om3-d4 { top: calc(50% - 4 * var(--om3-row)); height: calc(4 * var(--om3-row)); }
.om3-dn.om3-d5 { top: calc(50% - 5 * var(--om3-row)); height: calc(5 * var(--om3-row)); }
.om3-up.om3-d1 { height: var(--om3-row); } .om3-up.om3-d2 { height: calc(2 * var(--om3-row)); } .om3-up.om3-d3 { height: calc(3 * var(--om3-row)); }
.om3-up.om3-d4 { height: calc(4 * var(--om3-row)); } .om3-up.om3-d5 { height: calc(5 * var(--om3-row)); }
.om3-dn::before, .om3-up::before { content: ""; position: absolute; left: 100%; width: calc(var(--om3-gap) / 2 - 8px); border-top: 1.75px solid #B4B4BC; }
.om3-dn::before { top: calc(100% - 1px); }
.om3-up::before { top: -1.75px; }
.om3-dn::after, .om3-up::after { content: ""; position: absolute; left: calc(100% + var(--om3-gap) / 2 - 9px); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 7px solid #A1A1AA; }
.om3-dn::after { top: calc(100% - 5.5px); }
.om3-up::after { top: -6px; }
/* Data breakdowns: a value clearly off the rest; Source data: where Melt found each field and how filled it is. */
.om3-flag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-family: inherit; font-size: 11px; font-weight: 600; white-space: nowrap; }
.om3-lower { background: #FEF3F2; color: #B42318; }
.om3-higher { background: #ECFDF3; color: #067647; }
.om3-off td:first-child { font-weight: 600; }
.om3-found { display: flex; flex-direction: column; gap: 6px; }
.om3-found-h { margin: 4px 0 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.om3-low td { background: #FFFBFA; }
.om3-found td:last-child { white-space: nowrap; }
/* FR-DSC-40: a step the customer combined or renamed, and the step edit forms. */
.chip.om3-fixed { border: 1px solid #D9CCFB; background: #F8F5FF; }
.om3-by { font-size: 11px; font-weight: 600; color: #6D32D8; }
.om3-edit form.row { flex-wrap: wrap; align-items: flex-end; }
.om3-edit select { max-width: 100%; }
@media (max-width: 1100px) {
  .om3-grid { --om3-gap: 26px; grid-template-columns: 96px; }
  .om3-n2 { grid-template-columns: 96px repeat(2, minmax(0, 1fr)); }
  .om3-n3 { grid-template-columns: 96px repeat(3, minmax(0, 1fr)); }
  .om3-n4 { grid-template-columns: 96px repeat(4, minmax(0, 1fr)); }
  .om3-n5 { grid-template-columns: 96px repeat(5, minmax(0, 1fr)); }
  .om3-node .om2-ic { display: none; }
  .om3-node { padding: 10px 12px; }
}
@media (max-width: 720px) {
  .om3-grid { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .om3-band, .om3-lh, .om3-ln { display: none; }
  .om3-tag { display: block; }
  .om3-node .om2-ic { display: grid; }
  .om3-node + .om3-node::before, .om3-node + .om3-node::after { display: block; }
  .om3-bd th:nth-child(4), .om3-bd td:nth-child(4) { display: none; }
  .om3-found thead { display: none; }
  .om3-found table, .om3-found tbody, .om3-found tr, .om3-found td { display: block; }
  .om3-found tr { padding: 8px 0; border-bottom: 1px solid var(--divider); }
  .om3-found td { padding: 1px 12px; border: 0; text-align: left; }
  .om3-found td:nth-child(2) { display: none; }
}
