/* EXCON console (Task 5): dense controller tool. Tokens from base.css plus --xc-twist (twists and their options: one
   hue for the tree, its legend and the storyline); due-state colours shared by the Floor, the MEL, the storyline
   markers and the legend. */
/* P9 scheme tokens: light = the colours these rules always used, dark = the shell's dark surfaces. */
:root {
  --excon-blue-line: #b7d7f4;
  --excon-blue-text: #0f172a;
  --excon-blue-text-2: #334155;
  --excon-green-text: #15803d;
  --excon-line: #cfd9e4;
  --excon-surface: #fff;
  --excon-surface-2: #f4f7fa;
  --excon-surface-3: #eaf4ff;
  --excon-surface-4: #cbd5e1;
  --excon-text: #111;
  --excon-tint-yellow: #fff9df;
}
[data-scheme="dark"] {
  --excon-blue-line: #41505e;
  --excon-blue-text: #dce7fd;
  --excon-blue-text-2: #b9cbe3;
  --excon-green-text: #6dc181;
  --excon-line: #444d56;
  --excon-surface: #1a1e23;
  --excon-surface-2: #242628;
  --excon-surface-3: #242a30;
  --excon-surface-4: #434951;
  --excon-text: #ececec;
  --excon-tint-yellow: #282414;
}
.xc-app { --xc-twist: #8a5cf6; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 24px; min-height: 100%; font-size: 13px; color: var(--text); background: var(--surface); }
.xc-app .btn { padding: 4px 10px; font-size: 12px; min-height: 28px; }
.xc-muted { color: var(--muted); }
.xc-empty { color: var(--muted); padding: 10px 2px; margin: 0; }
.xc-mono, .xc-serial, .xc-gclock, .xc-ftime b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.xc-serial { font-size: 11px; font-weight: 600; color: var(--muted); }
.xc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 11px; color: var(--text); cursor: default; }
button.xc-chip { cursor: pointer; }
button.xc-chip:hover { border-color: var(--border-strong); }
.xc-btn-danger { background: var(--danger); color: var(--on-fill); border-color: var(--danger); }
.xc-danger-text { color: var(--danger); }
kbd { font-family: var(--font-mono); font-size: 10px; padding: 0 4px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); }

/* top bar */
.xc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); position: sticky; top: 0; z-index: 5; }
.xc-clockbox { display: flex; flex-direction: column; line-height: 1.1; }
.xc-clockbox b { font-size: 20px; font-family: var(--font-mono); }
.xc-clockbox.is-real b { font-size: 15px; color: var(--muted); }
.xc-clockbox small, .xc-exname small { color: var(--muted); font-size: 11px; }
.xc-exname { display: flex; flex-direction: column; min-width: 140px; flex: 1; }
.xc-ctl { display: flex; gap: 6px; }
.xc-autoplay { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--radius-xs); padding: 4px 10px; font-weight: 700; font-size: 12px; letter-spacing: .02em; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.xc-autoplay.is-on { background: var(--danger); border-color: var(--danger); color: var(--on-fill); }
.xc-autoplay:disabled { opacity: .55; cursor: default; }
.xc-counts { display: flex; gap: 4px; flex-wrap: wrap; }
.xc-count { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: var(--radius-xs); padding: 2px 8px; font-size: 11px; cursor: pointer; display: inline-flex; gap: 4px; align-items: baseline; }
.xc-count b { font-size: 13px; color: var(--text); }
.xc-count.has.is-overdue { border-color: var(--danger); background: var(--danger-soft); }
.xc-count.has.is-due_soon, .xc-count.has.is-held { border-color: var(--warn); background: var(--warn-soft); }
.xc-4eyes { font-size: 11px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.xc-4eyes.is-on { color: var(--brand); font-weight: 600; }
.xc-banner { background: var(--danger); color: var(--on-fill); font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm); display: flex; gap: 8px; align-items: center; }
.xc-conflict { background: var(--warn-soft); border: 1px solid var(--warn); padding: 6px 10px; border-radius: var(--radius-sm); display: flex; gap: 8px; align-items: center; margin: 0; }
.xc-note { background: var(--brand-soft); padding: 5px 8px; border-radius: var(--radius-xs); margin: 0 0 8px; font-size: 12px; }
.xc-warnline { color: var(--danger); font-size: 12px; }

/* tabs */
.xc-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.xc-tabs button { border: 0; background: none; padding: 7px 12px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.xc-tabs button.is-active { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }
.xc-dot { background: var(--danger); color: var(--on-fill); border-radius: 999px; font-size: 10px; padding: 0 5px; margin-left: 3px; }
.xc-body { min-width: 0; }
.xc-body.has-drawer { margin-right: min(480px, 42vw); }

/* panels */
.xc-panel { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 10px 12px; min-width: 0; }
.xc-panel h3 { margin: 0 0 8px; font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.xc-panel h3 small, .xc-sub small { font-weight: 400; color: var(--muted); font-size: 11px; }
.xc-phead { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.xc-phead h3 { margin: 0; }
.xc-keys { font-size: 11px; color: var(--faint); }
.xc-sub { margin: 12px 0 4px; font-size: 12px; color: var(--muted); }

/* due states */
.xc-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 3px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.xc-badge.is-overdue { background: var(--danger); color: var(--on-fill); }
.xc-badge.is-due_soon { background: var(--warn-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--warn); }
.xc-badge.is-held { background: var(--warn-soft); color: var(--text); border: 1px solid var(--warn); }
.xc-badge.is-draft { background: var(--surface-3); color: var(--text); border: 1px dashed var(--border-strong); }
.xc-badge.is-blocked { background: var(--danger-soft); color: var(--danger); }
.xc-badge.is-fired { background: var(--ok); color: var(--on-fill); }
.xc-badge.is-scheduled { background: var(--brand-soft); color: var(--brand); }
.xc-badge.is-skipped, .xc-badge.is-superseded { text-decoration: line-through; }
.xc-appr { font-size: 11px; color: var(--muted); }
.xc-appr.is-draft { color: var(--warn); font-weight: 600; }
.xc-appr.is-approved { color: var(--ok); }
.xc-arc { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; white-space: nowrap; }
.xc-arc i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.xc-arc.is-none { color: var(--faint); }
.xc-prio { font-size: 10px; font-weight: 700; color: var(--muted); }
.xc-prio.p1 { color: var(--danger); }
.xc-kind, .xc-cell { font-size: 11px; color: var(--muted); }

/* Floor */
.xc-floor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; align-items: start; }
.xc-side { display: flex; flex-direction: column; gap: 10px; }
.xc-frow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 7px 8px; border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius-xs); margin-bottom: 5px; background: var(--surface); }
.xc-frow.is-overdue { border-left-color: var(--danger); background: var(--danger-soft); }
.xc-frow.is-due_soon { border-left-color: var(--warn); }
.xc-frow.is-held { border-left-color: var(--warn); background: var(--warn-soft); }
.xc-frow.is-blocked { border-left-color: var(--faint); background: var(--surface-2); }
.xc-frow.is-cursor { outline: 2px solid var(--brand); outline-offset: 1px; }
.xc-ftime { display: flex; flex-direction: column; }
.xc-ftime b { font-size: 14px; }
.xc-ftime small { font-size: 11px; color: var(--muted); }
.xc-frow.is-overdue .xc-ftime small { color: var(--danger); font-weight: 600; }
.xc-fmain { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xc-fhead { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xc-fname { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xc-fname:hover { text-decoration: underline; }
.xc-fsub { color: var(--muted); font-size: 11px; }
.xc-why { color: var(--danger); }
.xc-fbtns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.xc-go { background: var(--ok); color: var(--on-fill); border: 0; border-radius: var(--radius-xs); font-weight: 800; padding: 4px 14px; cursor: pointer; letter-spacing: .04em; }
.xc-go:disabled { background: var(--surface-3); color: var(--faint); cursor: default; }
.xc-preview { grid-column: 1 / -1; border-top: 1px dashed var(--border); padding-top: 6px; font-size: 12px; }
.xc-preview ol { margin: 4px 0; padding-left: 18px; }
.xc-ptext { color: var(--muted); }
.xc-drain { background: var(--warn-soft); padding: 5px 8px; border-radius: var(--radius-xs); font-size: 12px; margin: 0 0 6px; }
.xc-next { list-style: none; padding: 0; margin: 0; }
.xc-next li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid var(--border); font-size: 12px; flex-wrap: wrap; }
.xc-next li small { color: var(--muted); min-width: 70px; }
.xc-bp p { margin: 2px 0; }
.xc-opts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.xc-acks, .xc-ms { list-style: none; padding: 0; margin: 0; }
.xc-acks li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.xc-acks small, .xc-ms small { color: var(--muted); }
.xc-ackbtns { display: flex; gap: 6px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.xc-outcomes { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.xc-ms li { padding: 3px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xc-ms li.is-done { color: var(--ok); }

/* MEL */
.xc-filters { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: end; margin-bottom: 8px; }
.xc-filter { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); }
.xc-filter select, .xc-filter input, .xc-field input, .xc-field select, .xc-field textarea, .xc-arcrow input, .xc-arcrow select, .xc-modal input {
  font: inherit; font-size: 12px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 4px 6px; min-height: 28px; }
.xc-search { flex-direction: row; align-items: center; gap: 4px; flex: 1; min-width: 200px; }
.xc-search input { flex: 1; }
.xc-num { width: 60px; }
.xc-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 8px; background: var(--brand-soft); border-radius: var(--radius-xs); margin-bottom: 8px; }
.xc-bulk .xc-filter { flex-direction: row; align-items: center; gap: 4px; }
.xc-tablewrap { overflow: auto; max-width: 100%; }
.xc-melwrap .xc-tablewrap { max-height: calc(100vh - 260px); }
.xc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.xc-table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 600; font-size: 11px; color: var(--muted); padding: 5px 6px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; z-index: 1; }
.xc-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.xc-melwrap .xc-table td { white-space: nowrap; }
.xc-melwrap .xc-table td.xc-name { white-space: normal; }
.xc-table tr[data-xc-row] { cursor: pointer; }
.xc-table tr[data-xc-row]:hover td { background: var(--surface-2); }
.xc-table tr.is-open td { background: var(--brand-soft); }
.xc-table tr.is-overdue td:nth-child(-n+4) { color: var(--danger); }
.xc-table tr.is-skipped td, .xc-table tr.is-superseded td { color: var(--faint); }
.xc-name { min-width: 220px; max-width: 380px; }
.xc-name b { display: block; }
.xc-name small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xc-in { white-space: nowrap; color: var(--muted); }
.xc-sm { padding: 1px 8px !important; min-height: 22px !important; }

/* phone: read-only list */
.xc-mlist { display: flex; flex-direction: column; gap: 6px; }
.xc-mcard { border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius-xs); padding: 6px 8px; background: var(--surface); }
.xc-mcard.is-overdue { border-left-color: var(--danger); }
.xc-mcard.is-due_soon, .xc-mcard.is-held { border-left-color: var(--warn); }
.xc-mcard.is-fired { border-left-color: var(--ok); }
.xc-mcard header { display: flex; gap: 8px; align-items: center; }
.xc-mcard h4 { margin: 3px 0; font-size: 13px; }
.xc-mcard p { margin: 0; font-size: 11px; color: var(--muted); }
.xc-app.is-narrow { padding: 8px 10px 20px; }
.xc-app.is-narrow .xc-top { position: static; gap: 6px 10px; }
.xc-app.is-narrow .xc-clockbox b { font-size: 17px; }
.xc-app.is-narrow .xc-exname { min-width: 0; flex-basis: 100%; order: -1; }

/* drawer */
.xc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 42vw); background: var(--surface); border-left: 1px solid var(--border-strong); box-shadow: -8px 0 24px rgba(0, 0, 0, .12); z-index: 70; display: flex; flex-direction: column; }
.xc-dhead { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.xc-dhead > div { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.xc-dhead b { flex-basis: 100%; font-size: 14px; }
.xc-dhead small { color: var(--muted); }
.xc-dtabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--border); }
.xc-dtabs button { border: 0; background: none; padding: 6px 9px; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.xc-dtabs button.is-active { color: var(--text); border-bottom-color: var(--brand); }
.xc-dbody { flex: 1; overflow: auto; padding: 10px 12px; }
.xc-form { display: flex; flex-direction: column; gap: 8px; }
.xc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.xc-span2 { grid-column: 1 / -1; }
.xc-field { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); border: 0; padding: 0; margin: 0; min-width: 0; }
.xc-field em { font-style: normal; color: var(--faint); }
.xc-field textarea { resize: vertical; }
.xc-field legend { padding: 0; margin-bottom: 2px; }
.xc-check { display: inline-flex; gap: 4px; align-items: center; margin-right: 10px; color: var(--text); font-size: 12px; }
.xc-formactions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xc-revs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.xc-revs header { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.xc-revs q { color: var(--muted); }
.xc-diff { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 3px; }
.xc-diff th { text-align: left; color: var(--muted); font-weight: 600; width: 110px; padding: 2px 4px; vertical-align: top; }
.xc-diff td { padding: 2px 4px; word-break: break-word; }
.xc-diff .was { background: var(--danger-soft); text-decoration: line-through; }
.xc-diff .now { background: color-mix(in srgb, var(--ok) 14%, transparent); }

/* modal */
.xc-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: grid; place-items: center; z-index: 90; padding: 16px; }
.xc-modal-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 16px; width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.xc-modal-card h3 { margin: 0; font-size: 15px; }
.xc-modal-card p { margin: 0; }
.xc-presets { display: flex; gap: 5px; flex-wrap: wrap; }
.xc-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* storyline */
.xc-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.xc-legend span { display: inline-flex; gap: 4px; align-items: center; }
.xc-lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.xc-gwrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-xs); }
.xc-gantt { display: block; font-family: inherit; }
.xc-g-lane { fill: var(--surface); }
.xc-g-lane.is-alt { fill: var(--surface-2); }
.xc-g-grid { stroke: var(--border); stroke-width: 1; }
.xc-g-grid.is-major { stroke: var(--border-strong); }
.xc-g-ax { fill: var(--muted); font-size: 10px; font-family: var(--font-mono); }
.xc-g-name { fill: var(--text); font-size: 12px; font-weight: 600; }
.xc-g-lbl { fill: var(--text); font-size: 10px; font-family: var(--font-mono); }
.xc-g-hit { fill: transparent; stroke: none; }
.xc-g-lbl.is-bp { fill: var(--muted); font-family: inherit; }
[data-testid="xc-tree"] .xc-g-lbl { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.xc-g-mark { cursor: pointer; }
.xc-g-mark:hover .xc-g-m, .xc-g-mark:focus .xc-g-m { stroke: var(--text); stroke-width: 2.5; }
.xc-g-m, .xc-lg { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; background: var(--brand); }
.xc-g-m.is-fired, .xc-lg.is-fired { fill: var(--ok); background: var(--ok); }
.xc-g-m.is-overdue, .xc-lg.is-overdue { fill: var(--danger); background: var(--danger); }
.xc-g-m.is-due_soon, .xc-lg.is-due_soon { fill: var(--warn); background: var(--warn); }
.xc-g-m.is-held, .xc-lg.is-held { fill: var(--surface); stroke: var(--warn); stroke-width: 2.5; background: var(--warn-soft); }
.xc-g-m.is-draft, .xc-lg.is-draft { fill: var(--surface); stroke: var(--muted); stroke-dasharray: 2 2; stroke-width: 1.5; background: var(--surface-3); }
.xc-g-m.is-blocked, .xc-lg.is-blocked { fill: var(--faint); background: var(--faint); }
.xc-g-m.is-skipped, .xc-g-m.is-superseded, .xc-lg.is-superseded { fill: var(--surface-3); opacity: .6; background: var(--surface-3); }
.xc-g-bp { cursor: pointer; }
.xc-g-bp .xc-g-hit { fill: transparent; }
.xc-g-bp path { fill: var(--xc-twist); stroke: var(--surface); stroke-width: 1.5; }
.xc-g-bp.is-decided path { fill: var(--muted); }
.xc-g-now line { stroke: var(--danger); stroke-width: 2; }
.xc-g-now rect { fill: var(--danger); }
.xc-g-now text { fill: var(--excon-surface); font-size: 10px; font-family: var(--font-mono); font-weight: 700; }

/* twists */
.xc-twists { display: flex; flex-direction: column; gap: 10px; }
.xc-q { font-size: 14px; margin: 2px 0 8px; }
.xc-decided { background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 6px 8px; border-radius: var(--radius-xs); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.xc-opts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.xc-opt { border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.xc-opt.is-chosen { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.xc-opt.is-dropped { opacity: .6; }
.xc-opt header { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xc-opt p { margin: 0; }
.xc-optinj { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.xc-optinj li { display: flex; gap: 6px; align-items: center; padding: 2px 0; flex-wrap: wrap; }
.xc-newbp summary, .xc-new summary { cursor: pointer; font-weight: 600; display: flex; gap: 5px; align-items: center; list-style: none; margin-top: 6px; }
.xc-newbp summary::-webkit-details-marker, .xc-new summary::-webkit-details-marker { display: none; }

/* evaluation */
.xc-eval-grid { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 10px; align-items: start; }
.xc-span-all { grid-column: 1 / -1; }
.xc-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.xc-seg label { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 3px 8px; font-size: 12px; cursor: pointer; }
.xc-seg label.is-on { border-color: var(--brand); background: var(--brand-soft); }
.xc-seg input { margin: 0; }
.xc-obslist { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; }
.xc-obslist li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.xc-obslist time { font-family: var(--font-mono); color: var(--muted); }
.xc-otext { flex-basis: 100%; }
.xc-ok { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 0 5px; border-radius: 3px; background: var(--surface-3); }
.xc-ok.is-strength { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.xc-ok.is-issue { background: var(--danger-soft); color: var(--danger); }
.xc-ok.is-epa { background: var(--brand-soft); color: var(--brand); }
.xc-r { font-size: 11px; font-weight: 600; }
.xc-r.r-met { color: var(--ok); }
.xc-r.r-partial { color: var(--warn); }
.xc-r.r-not_met { color: var(--danger); }
.xc-r.r-n_a { color: var(--muted); }
td.xc-r.r-met { background: color-mix(in srgb, var(--ok) 12%, transparent); }
td.xc-r.r-partial { background: var(--warn-soft); }
td.xc-r.r-not_met { background: var(--danger-soft); }

/* AAR */
.xc-aar { display: flex; flex-direction: column; gap: 10px; }
.xc-exports { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.xc-stats { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 0; }
.xc-stats dt { font-size: 11px; color: var(--muted); }
.xc-stats dd { margin: 0; font-size: 18px; font-weight: 700; font-family: var(--font-mono); }
.xc-aar-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; align-items: start; }
.xc-tl { list-style: none; padding: 0; margin: 0; max-height: 560px; overflow: auto; }
.xc-tl li { display: grid; grid-template-columns: 70px 90px minmax(0, 1fr); gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.xc-tl time { font-family: var(--font-mono); color: var(--muted); }
.xc-tlk { font-size: 10px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.xc-tl small { color: var(--muted); }
.xc-hot h4 { margin: 8px 0 4px; font-size: 12px; text-transform: capitalize; }
.xc-hot ul { margin: 0; padding-left: 16px; font-size: 12px; }
.xc-hot small { color: var(--muted); }

/* setup */
.xc-setup { display: flex; flex-direction: column; gap: 10px; }
.xc-setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px; align-items: start; }
.xc-arcrow { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.xc-arcrow input[type="color"] { width: 34px; padding: 1px; }
.xc-arcrow input[name="summary"], .xc-arcrow input[name="intent"], .xc-arcrow input[name="text"] { flex: 1; min-width: 140px; }
.xc-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.xc-file { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.xc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.xc-imp { margin-top: 8px; padding: 8px; border-radius: var(--radius-xs); border: 1px solid var(--border); }
.xc-imp.is-ok { border-color: var(--ok); }
.xc-imp.is-bad { border-color: var(--danger); background: var(--danger-soft); }
.xc-imp p { margin: 0 0 6px; }

@media (max-width: 1100px) {
  .xc-floor-grid, .xc-eval-grid, .xc-aar-grid { grid-template-columns: 1fr; }
  .xc-body.has-drawer { margin-right: 0; }
  .xc-drawer { width: min(520px, 100vw); }
}
.xc-app a.btn { text-decoration: none; }
/* fix round 1: MEL fits 1440 (time + countdown in one cell, channel + from/to in one, wrapping arc/teams) */
.xc-melwrap .xc-table td.xc-wrap { white-space: normal; }
.xc-melwrap .xc-table td.xc-wrap .xc-arc { white-space: normal; }
.xc-tcell small, .xc-ft { display: block; font-size: 11px; color: var(--muted); }
.xc-name { min-width: 200px; max-width: 320px; }
.xc-table tr[data-xc-row]:focus-visible td { outline: none; background: var(--brand-soft); box-shadow: inset 0 2px 0 var(--brand), inset 0 -2px 0 var(--brand); }
.xc-fname[tabindex]:focus-visible, .xc-g-bp:focus-visible, .xc-g-mark:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.xc-g-bp:focus path { stroke: var(--text); stroke-width: 2; }
/* storyline legend: the light states (held, draft, superseded) get an outline so the swatch is visible */
.xc-lg { box-sizing: border-box; border: 1.5px solid transparent; }
.xc-lg.is-held { border-color: var(--warn); }
.xc-lg.is-draft { border: 1.5px dashed var(--muted); }
.xc-lg.is-superseded { border-color: var(--faint); opacity: 1; }
/* drawer: a newer version arrived while editing */
.xc-note.is-warn { background: var(--warn-soft); border: 1px solid var(--warn); }
.xc-noteacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
/* twists: what each option's injects say */
.xc-optprev { flex-basis: 100%; color: var(--muted); font-size: 11px; padding-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- team progress: Status, Teams, Tree (excon-progress.js) ---------- */
.xc-status { display: grid; grid-template-columns: 300px minmax(0, 1fr) 380px; gap: 10px; align-items: start; }
.xc-alist, .xc-slist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.xc-alert { display: grid; grid-template-columns: 8px 1fr; gap: 2px 8px; width: 100%; text-align: left; font: inherit; font-size: 12px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius-xs); padding: 5px 8px; }
button.xc-alert { cursor: pointer; }
button.xc-alert:hover, button.xc-alert:focus-visible { border-color: var(--brand); outline: none; }
.xc-alert small { grid-column: 2; color: var(--muted); font-size: 11px; }
.xc-alert.is-high { border-left-color: var(--danger); background: var(--danger-soft); }
.xc-alert.is-med { border-left-color: var(--warn); background: var(--warn-soft); }
.xc-alert.is-low { border-left-color: var(--border-strong); }
.xc-sev { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; background: var(--muted); }
.xc-sev.is-high { background: var(--danger); }
.xc-sev.is-med { background: var(--warn); }
.xc-duebar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 1px; background: var(--surface-3); }
.xc-duebar .xc-lg { height: 100%; width: auto; border-radius: 0; min-width: 4px; }
.xc-duekey { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin: 4px 0 8px; }
.xc-duekey span { display: inline-flex; align-items: center; gap: 4px; }
.xc-sblock { margin-top: 8px; }
.xc-sblock h4 { margin: 0 0 4px; font-size: 12px; }
.xc-sblock h4 small { color: var(--muted); font-weight: 400; }
.xc-sline { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 12px; padding: 3px 6px; border-radius: var(--radius-xs); background: var(--surface-2); }
.xc-sline > a, .xc-sline > span:first-child { flex: 1 1 200px; min-width: 0; color: var(--text); }
.xc-sline small { color: var(--muted); font-size: 11px; }
.xc-sline.is-overdue { background: var(--danger-soft); }
.xc-dec { font-size: 12px; padding: 4px 6px; border-radius: var(--radius-xs); background: var(--surface-2); }
.xc-dec small { color: var(--muted); }
.xc-dec > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.xc-chip.is-held { border-color: var(--warn); background: var(--warn-soft); }
.xc-chip.is-late { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.xc-chip.is-choice { border-color: var(--brand); background: var(--brand-soft); }
.xc-mslist li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.xc-mslist li > span:first-child { flex: 1 1 auto; }
.xc-mslist small { color: var(--muted); }
.xc-mstate { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; background: var(--surface-3); color: var(--muted); }
.xc-mstate.is-on_time, .xc-mstate.is-reached { background: var(--ok); color: var(--on-fill); }
.xc-mstate.is-late { background: var(--warn); color: var(--excon-text); }
.xc-mstate.is-overdue { background: var(--danger); color: var(--on-fill); }
.xc-teamcol { display: flex; flex-direction: column; gap: 8px; }
.xc-tcard { border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 8px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.xc-tcard header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.xc-tcard header > b { flex: 1 1 auto; font-size: 13px; }
.xc-tcard footer { display: flex; gap: 8px; align-items: flex-end; justify-content: space-between; }
.xc-tcard footer small { color: var(--muted); font-size: 11px; text-align: right; }
.xc-late { color: var(--danger); font-weight: 600; }
.xc-idx { white-space: nowrap; }
.xc-idx b { font-size: 18px; font-variant-numeric: tabular-nums; }
.xc-idx small { color: var(--muted); font-size: 11px; }
.xc-idx.is-insufficient b { color: var(--muted); font-weight: 600; }
.xc-insuff { font-size: 10px; padding: 1px 6px; border-radius: 999px; border: 1px dashed var(--border-strong); color: var(--muted); white-space: nowrap; }
.xc-comps { display: flex; flex-direction: column; gap: 3px; }
.xc-comp { display: grid; grid-template-columns: 74px 1fr 64px; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.xc-comp small { text-align: right; font-variant-numeric: tabular-nums; }
.xc-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.xc-bar > i { display: block; height: 100%; background: var(--brand); }
.xc-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.xc-flag { display: inline-flex; flex-direction: column; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-xs); border: 1px solid var(--border); max-width: 100%; }
.xc-flag small { font-weight: 400; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.xc-flag.is-at_risk { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.xc-flag.is-stalled { border-color: var(--warn); background: var(--warn-soft); }
.xc-flag.is-backlog { border-color: var(--border-strong); }
.xc-spark rect { fill: var(--brand); }
.xc-spark rect.is-zero { fill: var(--border); }
@media (max-width: 1200px) {
  .xc-status { grid-template-columns: 280px minmax(0, 1fr); }
  .xc-status .xc-teamcol { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .xc-status .xc-teamcol > h3, .xc-status .xc-teamcol > p { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .xc-status, .xc-status .xc-teamcol { grid-template-columns: minmax(0, 1fr); display: flex; flex-direction: column; }
  .xc-status.is-narrow { margin-bottom: 10px; }
}
/* Teams matrix */
.xc-teams { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.xc-teams.has-panel { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.xc-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 6px; }
.xc-inline { flex-direction: row; align-items: center; gap: 6px; }
.xc-check { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.xc-mlegend { margin: 4px 0 8px; }
.xc-matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.xc-matrix th, .xc-matrix td { border-bottom: 1px solid var(--border); padding: 3px 4px; vertical-align: top; background: var(--surface); }
.xc-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; }
.xc-mteam { min-width: 150px; font-weight: 400; }
.xc-mteam > b { display: block; font-size: 12px; }
.xc-mteam .xc-flag small { display: none; }
.xc-minj { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 400; min-width: 210px; max-width: 260px; border-left: 4px solid var(--arc, transparent); }
.xc-matrix thead .xc-minj { z-index: 3; }
.xc-minj small { display: block; color: var(--muted); font-size: 10px; }
.xc-mna { color: var(--faint); text-align: center; }
.xc-cell { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; width: 100%; min-height: 26px; font: inherit; font-size: 11px; color: var(--text); text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-xs); padding: 2px 4px; cursor: pointer; }
.xc-cell:hover, .xc-cell:focus-visible { border-color: var(--brand); outline: none; }
.xc-cell.is-open { border-color: var(--brand); background: var(--brand-soft); }
.xc-cell.is-overdue { background: var(--danger-soft); }
.xc-g { display: inline-flex; align-items: center; font-size: 10px; color: var(--muted); }
.xc-g.is-on { color: var(--ok); }
.xc-g.is-seen { color: var(--brand); }
.xc-g.is-ni { font-family: var(--font-mono); color: var(--faint); }
.xc-g.is-ack { color: var(--ok); }
.xc-rs { font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 3px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.xc-rs.is-on_time, .xc-rs.is-credited { background: var(--ok); color: var(--on-fill); }
.xc-rs.is-late { background: var(--warn); color: var(--excon-text); }
.xc-rs.is-overdue { background: var(--danger); color: var(--on-fill); }
.xc-rs.is-awaiting { background: var(--brand-soft); color: var(--brand); }
.xc-pips { display: inline-flex; gap: 2px; }
.xc-pip { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--surface-3); border: 1px solid var(--border-strong); box-sizing: border-box; }
.xc-pip.is-met { background: var(--ok); border-color: var(--ok); }
.xc-pip.is-partial { background: var(--warn); border-color: var(--warn); }
.xc-pip.is-not_met { background: var(--danger); border-color: var(--danger); }
.xc-pip.is-n_a { background: var(--surface); border-style: dashed; }
.xc-pip.is-conflict { outline: 1px solid var(--text); }
.xc-dchip { font-size: 10px; padding: 0 4px; border-radius: 3px; border: 1px solid var(--brand); color: var(--brand); white-space: nowrap; }
.xc-cellpanel { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); padding: 10px 12px; position: sticky; top: 8px; max-height: calc(100vh - 140px); overflow: auto; font-size: 12px; }
.xc-cellpanel header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.xc-cellpanel h3 { margin: 0; font-size: 13px; }
.xc-cellpanel h3 small { display: block; color: var(--muted); font-weight: 400; }
.xc-cellpanel h4 { margin: 10px 0 4px; font-size: 12px; }
.xc-celldl { display: grid; grid-template-columns: 96px 1fr; gap: 3px 8px; margin: 8px 0; }
.xc-celldl dt { color: var(--muted); }
.xc-celldl dd { margin: 0; }
.xc-celldl small { color: var(--muted); }
.xc-epalist { list-style: none; margin: 0; padding: 0; }
.xc-epalist li { display: flex; gap: 5px; align-items: baseline; }
.xc-cellacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.xc-siglist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.xc-siglist li { display: flex; gap: 6px; align-items: baseline; justify-content: space-between; padding: 3px 6px; background: var(--surface-2); border-radius: var(--radius-xs); overflow-wrap: anywhere; }
.xc-siglist li.is-void { color: var(--muted); }
.xc-mini { padding: 1px 6px; font-size: 11px; min-height: 0; }
@media (max-width: 1100px) { .xc-teams.has-panel { grid-template-columns: minmax(0, 1fr); } .xc-cellpanel { position: static; max-height: none; } }
/* Storyline view toggle + decision tree */
.xc-sview button { font: inherit; font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 3px 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.xc-sview button.is-on { border-color: var(--brand); background: var(--brand-soft); }
.xc-tree-wrap { display: flex; flex-direction: column; gap: 6px; }
.xc-tlegend { align-items: center; }
.xc-tlegend svg { overflow: visible; }
.xc-le { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--muted); }
.xc-le.is-dep_any { border-top-style: dashed; }
.xc-le.is-condition { border-top-style: dotted; }
.xc-le.is-option { border-top-color: var(--xc-twist); }
.xc-le.is-path { border-top: 4px solid var(--brand); }
.xc-t-e { fill: none; stroke: var(--border-strong); stroke-width: 1.4; }
.xc-t-e.is-dep_any { stroke-dasharray: 5 3; }
.xc-t-e.is-condition { stroke-dasharray: 1.5 3; stroke: var(--muted); }
.xc-t-e.is-option, .xc-t-e.is-leads_to { stroke: var(--xc-twist); }
.xc-t-e.is-poses { stroke: var(--muted); stroke-dasharray: 2 2; }
.xc-t-e.is-path { stroke: var(--brand); stroke-width: 4; opacity: .75; }
.xc-t-arrow { fill: var(--xc-twist); }
.xc-t-node { cursor: pointer; }
.xc-t-n { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; }
.xc-t-node.is-fired .xc-t-n { fill: var(--ok); }
.xc-t-node.is-live .xc-t-n { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.xc-t-node.is-conditional .xc-t-n { fill: color-mix(in srgb, var(--xc-twist) 30%, var(--surface)); stroke: var(--xc-twist); stroke-width: 1.5; stroke-dasharray: 2 1.5; }
.xc-t-node.is-blocked .xc-t-n { fill: var(--danger-soft); stroke: var(--danger); stroke-width: 2; }
.xc-t-node.is-pruned .xc-t-n { fill: var(--surface-3); stroke: var(--faint); }
.xc-t-node.is-pruned text { fill: var(--faint); text-decoration: line-through; }
.xc-t-node.is-unreachable .xc-t-n { fill: var(--surface); stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 1 2; }
.xc-t-node.is-unreachable text { fill: var(--faint); font-style: italic; }
.xc-t-node.is-superseded .xc-t-n, .xc-t-node.is-skipped .xc-t-n { fill: var(--surface-3); opacity: .7; }
.xc-t-node.is-superseded text, .xc-t-node.is-skipped text { fill: var(--faint); text-decoration: line-through; }
.xc-t-node.is-path .xc-t-n { stroke: var(--brand); stroke-width: 3; }
.xc-t-node:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.xc-t-next { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 3 2; }
.xc-t-pt polygon { fill: var(--warn-soft); stroke: var(--warn); stroke-width: 1.5; }
.xc-t-pt.is-chosen polygon { fill: var(--warn); }
.xc-t-chip { fill: var(--text); font-size: 10px; font-weight: 700; }
.xc-t-ms rect { fill: var(--surface); stroke: var(--ok); stroke-width: 1.5; }
.xc-t-ms.is-reached rect, .xc-t-ms.is-on_time rect { fill: var(--ok); }
.xc-t-ms.is-overdue rect { stroke: var(--danger); fill: var(--danger-soft); }
.xc-bf rect { fill: var(--surface-3); stroke: var(--border-strong); }
.xc-bf text { font-size: 9px; font-weight: 700; fill: var(--text); }
.xc-bf.is-drove rect { fill: var(--ok); stroke: var(--ok); } .xc-bf.is-drove text { fill: var(--excon-surface); }
.xc-bf.is-opposed rect { fill: var(--danger); stroke: var(--danger); } .xc-bf.is-opposed text { fill: var(--excon-surface); }
.xc-bf.is-pending rect { fill: var(--brand-soft); stroke: var(--brand); }
.xc-bf-key b { font-size: 10px; text-transform: uppercase; padding: 0 5px; border-radius: 7px; background: var(--surface-3); color: var(--text); }
.xc-bf-key.is-drove b { background: var(--ok); color: var(--on-fill); }
.xc-bf-key.is-opposed b { background: var(--danger); color: var(--on-fill); }
.xc-bf-key.is-pending b { background: var(--brand-soft); color: var(--brand); }
/* Twists: what the teams chose */
.xc-rec { font-size: 12px; margin: 0 0 8px; padding: 5px 8px; border-radius: var(--radius-xs); background: var(--brand-soft); display: flex; gap: 6px; align-items: baseline; }

/* ---------- Planning (excon-plan.js, MEL/MIL planning spec 2026-11-19): Plan tab, storyline Matrix/Lanes/Groups/Chrono,
   drawer Links, Brief deck. Same tokens; link kinds: sequence = text, feeds = brand, conditional = --xc-twist,
   access chain = danger, gate = warn. Blocking kinds draw solid, informational ones dashed. */
.xc-class { text-align: center; font: 700 11px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-radius: var(--radius-xs); padding: 1px 8px; }
.xp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.xp-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-xs); background: var(--surface-2); padding: 6px 10px; color: var(--text); cursor: pointer; font: inherit; }
.xp-tile:hover { border-color: var(--border-strong); }
.xp-tile b { font-size: 18px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.xp-tile small { color: var(--muted); font-size: 11px; }
.xp-tile.is-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.xp-plan { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.xp-subs { display: flex; gap: 4px; flex-wrap: wrap; }
.xp-subs button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: var(--radius-xs); padding: 4px 10px; font-size: 12px; cursor: pointer; }
.xp-subs button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--text); font-weight: 600; }
.xp-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.xp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.xp-wide { grid-column: 1 / -1; }
.xp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; font-size: 12px; }
.xp-dl dt { color: var(--muted); }
.xp-dl dd { margin: 0; }
.xp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xp-acts { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.xp-add { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 8px; }
.xp-days tr.is-frozen td { background: var(--surface-3); color: var(--muted); }
.xp-set { margin-top: 8px; }
.xp-set h4, .xp-group h4, .xp-thread h4 { margin: 0 0 4px; font-size: 12px; }
.xp-setrow td:first-child { font-weight: 600; }
.xp-task { border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 6px; background: var(--surface); }
.xp-task header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.xp-task ul { margin: 4px 0 0; padding-left: 18px; font-size: 12px; }
.xp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.xp-cov { display: inline-block; min-width: 54px; text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; background: var(--surface-3); color: var(--muted); }
.xp-cov.is-met { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.xp-cov.is-partial { background: var(--warn-soft); color: var(--text); }
.xp-cov.is-not_met { background: var(--danger-soft); color: var(--danger); }
.xp-cov.is-planned { background: var(--brand-soft); color: var(--brand); }
.xp-cov.is-gap { background: var(--danger-soft); color: var(--danger); border: 1px dashed var(--danger); }
.xp-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.xp-covt td, .xp-covt th { white-space: nowrap; }
.xp-bad { color: var(--danger); font-weight: 600; }
.xp-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.xp-chip, .xp-lk { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 11px; background: var(--surface-2); color: var(--text); }
.xp-chip.is-feeds, .xp-lk.is-feeds { border-color: var(--brand); border-style: dashed; }
.xp-chip.is-conditional, .xp-lk.is-conditional { border-color: var(--xc-twist); }
.xp-chip.is-access_chain, .xp-lk.is-access_chain { border-color: var(--danger); border-style: dashed; }
.xp-chip.is-gate, .xp-lk.is-gate { border-color: var(--warn); background: var(--warn-soft); }
.xp-lsw { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--text); vertical-align: middle; }
.xp-lsw.is-feeds { border-top: 2px dashed var(--brand); }
.xp-lsw.is-conditional { border-top-color: var(--xc-twist); }
.xp-lsw.is-access_chain { border-top: 2px dashed var(--danger); }
.xp-lsw.is-gate { border-top: 3px solid var(--warn); }
.xp-links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.xp-links li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.xp-lnk { border: 0; background: none; padding: 0; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.xp-lnk:hover { text-decoration: underline; }
.xp-linkform { border-top: 1px dashed var(--border); padding-top: 8px; margin: 8px 0; }
.xp-impact { border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 8px; background: var(--surface-2); }
.xp-impact h4 { margin: 0 0 4px; font-size: 12px; }
.xp-eff { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 0 5px; border-radius: 3px; }
.xp-eff.is-certain { background: var(--danger-soft); color: var(--danger); }
.xp-eff.is-maybe { background: var(--warn-soft); color: var(--text); }
.xp-kfilter { display: flex; gap: 4px; flex-wrap: wrap; }
.xp-kfilter button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: var(--radius-xs); padding: 2px 8px; font-size: 11px; cursor: pointer; }
.xp-kfilter button.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.xp-cklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.xp-ck { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.xp-ck.is-done b { text-decoration: line-through; color: var(--muted); }
.xp-ck > div { flex: 1; min-width: 0; }
.xp-ck p { margin: 2px 0; }
.xp-box { width: 20px; height: 20px; margin: 0; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--ok); cursor: pointer; padding: 0; }
.xp-ck.is-done .xp-box { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.xp-box:disabled { cursor: default; }
.xp-group { border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-xs); padding: 6px 8px; background: var(--surface); }
.xp-prods { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.xp-state { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 0 5px; border-radius: 3px; }
.xp-state.is-todo { background: var(--warn-soft); color: var(--text); }
.xp-state.is-ready { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.xp-thread { border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 8px; background: var(--surface); }
.xp-thread.is-resolved { background: var(--surface-2); }
.xp-replies { list-style: none; margin: 6px 0; padding: 0 0 0 10px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.xp-body-text { white-space: pre-wrap; margin: 4px 0; font-size: 12px; }
.xp-injs { display: flex; gap: 4px; flex-wrap: wrap; }
/* storyline views */
.xp-mxbar { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.xc-mx { position: relative; display: grid; gap: 0; min-width: max-content; font-size: 12px; }
.xc-mx.is-lanes { min-width: 0; }
.xp-mh { position: sticky; top: 0; z-index: 2; background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 4px 8px; font-weight: 600; }
.xp-mh.is-frozen, .xp-mc.is-frozen { background: var(--surface-3); }
.xp-mh small { color: var(--muted); font-weight: 400; }
.xp-ml { position: sticky; left: 0; z-index: 1; background: var(--surface); padding: 6px 8px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.xp-ml i { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 3px; }
.xp-ml small { color: var(--muted); font-weight: 400; }
.xp-mc { padding: 6px 18px 6px 8px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xc-mx.is-lanes .xp-mc { flex-direction: row; flex-wrap: wrap; gap: 6px 28px; }
.xc-mx-card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; font-size: 12px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--et, var(--border-strong)); border-radius: var(--radius-xs); padding: 4px 8px; cursor: pointer; max-width: 230px; transition: opacity .12s; }
.xc-mx-card:hover, .xc-mx-card:focus-visible { border-color: var(--border-strong); box-shadow: 0 0 0 2px var(--brand-soft); }
.xc-mx-card.is-overdue { outline: 1px solid var(--danger); }
.xc-mx-card.is-fired { background: var(--surface-2); }
.xc-mx-card.is-skipped, .xc-mx-card.is-superseded { opacity: .55; }
.xc-mx-card:disabled { cursor: default; }
.xp-cardtop { display: flex; justify-content: space-between; gap: 8px; }
.xp-cardtags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.xp-cardtags i { font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 3px; background: var(--surface-3); color: var(--muted); }
.xc-mx-svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.xp-ln { fill: none; stroke: var(--text); stroke-width: 1.4; opacity: .55; }
.xp-ln.is-feeds { stroke: var(--brand); stroke-dasharray: 5 3; }
.xp-ln.is-conditional { stroke: var(--xc-twist); }
.xp-ln.is-access_chain { stroke: var(--danger); stroke-dasharray: 2 3; }
.xp-ln.is-gate { stroke: var(--warn); stroke-width: 2.4; }
.xp-ah { fill: var(--text); }
.xp-ah.is-feeds { fill: var(--brand); }
.xp-ah.is-conditional { fill: var(--xc-twist); }
.xp-ah.is-access_chain { fill: var(--danger); }
.xp-ah.is-gate { fill: var(--warn); }
.xc-mx.is-hl .xc-mx-card:not(.is-chain) { opacity: .3; }
.xc-mx.is-hl .xp-ln { opacity: .1; }
.xc-mx.is-hl .xp-ln.is-chain { opacity: 1; stroke-width: 2.4; }
.xp-phone { display: flex; flex-direction: column; gap: 10px; }
.xp-pday h4 { margin: 0 0 4px; font-size: 12px; }
.xp-pcard { border: 1px solid var(--border); border-left: 4px solid var(--et, var(--border-strong)); border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 6px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
/* 1.1.0 Plan › Presentation (port of the reference presentation workspace): toolbar, utility row, slide card, tool rail */
.xp-pres { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; outline: none; }
.xp-pres:fullscreen { overflow: auto; border-radius: 0; }
.xp-pres-toolbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 18px; min-height: 58px; padding: 0 22px; border-bottom: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.xp-pres-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.xp-pres-name { font-weight: 750; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.xp-pres-views { display: flex; gap: 2px; }
.xp-pres-view { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 650; padding: 6px 9px; border-radius: 7px; cursor: pointer; }
.xp-pres-view:hover { background: var(--surface-2); color: var(--text); }
.xp-pres-view.is-active { color: var(--brand); background: var(--brand-soft); cursor: default; }
.xp-pres-counter { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.xp-pres-counter strong { color: var(--text); }
.xp-pres-right, .xp-pres-cluster { display: flex; align-items: center; gap: 2px; }
.xp-pres-right { gap: 8px; }
.xp-pres-tbtn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.xp-pres-tbtn:hover:not(:disabled), .xp-pres-tbtn[aria-pressed="true"] { border-color: var(--border); background: var(--surface-2); color: var(--text); }
.xp-pres-tbtn:disabled { opacity: .45; cursor: default; }
.xp-pres-arrow { font-size: 14px; line-height: 1; }
.xp-pres-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 4px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }
.xp-pres-close:hover { color: var(--danger); background: var(--danger-soft); }
.xp-pres-util { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 26px 10px; flex-wrap: wrap; }
.xp-pres-back { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid #12336b; border-radius: 7px; color: #fff; background: #12336b; font: inherit; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-soft); cursor: pointer; }
.xp-pres-back:hover { background: #0b2450; }
.xp-pres-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.xp-pres-body { display: flex; gap: 12px; align-items: flex-start; padding: 0 14px 30px 26px; min-width: 0; }
.xp-pres-main { position: relative; flex: 1; min-width: 0; }
.xp-pres-card, .xp-pres-brief { padding: 18px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 12px; }
.xp-pres-brief { min-height: 420px; padding: 34px 40px; justify-content: center; border-top: 6px solid var(--brand); }
.xp-pres-brief h1 { margin: 0; font-size: 30px; }
.xp-pres-sub { margin: 0; color: var(--muted); font-size: 15px; }
.xp-pres-blist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.xp-pres-blist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.xp-pres-blist li svg { flex: none; margin-top: 4px; color: var(--brand); }
.xp-pres-head { display: grid; grid-template-columns: 148px 96px minmax(260px, 1fr) 66px 62px 78px 88px 120px minmax(130px, .65fr); gap: 11px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.xp-pres-head span, .xp-pres-subhead span, .xp-pres-extra span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.xp-pres-head strong { font-size: 13px; overflow-wrap: anywhere; }
.xp-pres-thumb { position: relative; overflow: hidden; height: 82px; border-radius: 4px; background: linear-gradient(135deg, #0b1220, color-mix(in srgb, var(--arc) 70%, #0b1220)); color: #fff; }
.xp-pres-thumb b { position: absolute; left: 10px; top: 8px; font-size: 20px; letter-spacing: .06em; }
.xp-pres-thumb span { position: absolute; left: 8px; bottom: 7px; right: 6px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-pres-id, .xp-pres-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xp-pres-id strong { font: 700 15px var(--font-mono); }
.xp-pres-id small { color: var(--muted); font-size: 11px; }
.xp-pres-title { min-width: 0; }
.xp-pres-title h1 { margin: 2px 0 6px; font-size: 17px; line-height: 1.3; }
.xp-pres-title p { margin: 0; font-size: 12px; color: var(--text); line-height: 1.45; }
.xp-pres-title p span { display: inline; margin-right: 4px; }
.xp-pres-et { display: inline-block; padding: 1px 7px; border-radius: 3px; background: color-mix(in srgb, var(--et) 16%, var(--surface)); border-left: 3px solid var(--et); font-size: 12px; }
.xp-pres-subhead { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 13px; }
.xp-pres-class { font-size: 11px; font-weight: 750; letter-spacing: .06em; color: var(--danger); }
.xp-pres-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xp-pres-ic { min-height: 86px; padding: 10px 12px; border: 1px solid; border-radius: 4px; color: var(--excon-blue-text-2); }
.xp-pres-ic.is-yellow { border-color: #e7d391; background: var(--excon-tint-yellow); }
.xp-pres-ic.is-blue { border-color: var(--excon-blue-line); background: var(--excon-surface-3); }
.xp-pres-ic.is-grey { border-color: var(--excon-line); background: var(--excon-surface-2); }
.xp-pres-ic h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--excon-blue-text); font-size: 12px; font-weight: 750; }
.xp-pres-ic p { margin: 0; font-size: 12px; line-height: 1.45; }
.xp-pres-ic p + p { margin-top: 6px; }
.xp-pres-ic strong { color: var(--excon-blue-text); }
.xp-pres-wghead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.xp-pres-wghead h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.xp-pres-wghead p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.xp-pres-add { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--brand); cursor: pointer; }
.xp-pres-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.xp-pres-primary { display: grid; grid-template-columns: minmax(0, var(--split, 52%)) 14px minmax(0, 1fr); gap: 0; align-items: stretch; }
.xp-pres-primary > .xp-pres-prod:only-child { grid-column: 1 / -1; }
.xp-pres-split { display: flex; align-items: stretch; justify-content: center; cursor: col-resize; touch-action: none; border-radius: 999px; outline-offset: 2px; }
.xp-pres-split span { width: 2px; min-height: 90px; border-radius: 999px; background: var(--border); }
.xp-pres-split:hover span, .xp-pres-split:focus-visible span { background: var(--brand); }
.xp-pres-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xp-pres-prod { display: flex; min-width: 0; min-height: 122px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); overflow: hidden; }
.xp-pres-prod[draggable="true"] { cursor: grab; }
.xp-pres-prod[draggable="true"]:active { cursor: grabbing; }
.xp-pres-prod:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.xp-pres-glabel { display: flex; align-items: center; justify-content: center; width: 29px; min-width: 29px; padding: 7px 0; color: var(--text); background: color-mix(in srgb, var(--g) 18%, var(--surface)); border-right: 4px solid var(--g); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: hidden; }
.xp-pres-pbody { position: relative; flex: 1; min-width: 0; padding: 12px 14px; }
.xp-pres-pbody p { margin: 0; font-size: 13px; line-height: 1.5; padding-right: 54px; white-space: pre-wrap; }
.xp-pres-pacts { position: absolute; top: 8px; right: 8px; display: flex; gap: 3px; }
.xp-pres-pacts button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--muted); cursor: pointer; }
.xp-pres-pacts button:hover { color: var(--brand); }
.xp-pres-pacts button.is-danger:hover { color: var(--danger); background: var(--danger-soft); }
.xp-pres-ready { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--brand); font-weight: 700; }
.xp-pres-none { margin: 0; }
.xp-pres-rail { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-soft); }
.xp-pres-rbtn { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.xp-pres-rbtn:hover { color: var(--brand); background: var(--brand-soft); }
.xp-pres-rbtn.is-danger:hover { color: var(--danger); background: var(--danger-soft); }
.xp-pres-hidden { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; text-align: center; }
.xp-pres-hidden h2 { margin: 0; font-size: 18px; }
.xp-pres-hidden p { margin: 0; color: var(--muted); }
.xp-pres-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13px; }
.xp-pres-extra .is-wide { grid-column: 1 / -1; }
.xp-pres-rlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; max-height: 50vh; overflow: auto; }
@media (max-width: 1350px) {
  .xp-pres-tbtn span:not(.xp-pres-arrow) { display: none; }
  .xp-pres-tbtn { min-width: 30px; justify-content: center; padding: 0 6px; }
  .xp-pres-head { grid-template-columns: 120px 90px minmax(220px, 1fr) repeat(3, 72px); }
}
@media (max-width: 1050px) {
  .xp-pres-toolbar { flex-wrap: wrap; gap: 8px; padding: 9px 16px; }
  .xp-pres-left { gap: 10px; }
  .xp-pres-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-pres-head { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); }
  .xp-pres-title { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .xp-pres-rail { display: none; }
  .xp-pres-left, .xp-pres-right { width: 100%; }
  .xp-pres-right { overflow-x: auto; }
  .xp-pres-counter { margin-left: 0; }
  .xp-pres-name { max-width: 100%; }
  .xp-pres-body { padding: 0 10px 20px; }
  .xp-pres-util { padding: 10px; }
  .xp-pres-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .xp-pres-thumb { display: none; }
  .xp-pres-primary, .xp-pres-grid, .xp-pres-info, .xp-pres-extra { grid-template-columns: minmax(0, 1fr); }
  .xp-pres-split { display: none; }
  .xp-pres-primary { gap: 12px; }
  .xp-pres-brief { padding: 20px; min-height: 0; }
  .xp-pres-brief h1 { font-size: 22px; }
}
@media (max-width: 720px) {
  .xp-cols { grid-template-columns: minmax(0, 1fr); }
  .xp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-ntabs button { flex: 1; }
}
@media print {
  body * { visibility: hidden; }
  .xp-pres-main, .xp-pres-main * { visibility: visible; }
  .xp-pres-main { position: absolute; left: 0; top: 0; width: 100%; }
  .xp-pres-hidden, .xp-pres-pacts, .xp-pres-add, .xp-pres-split, .xp-pres-wghead p { display: none !important; }
  .xp-pres-card, .xp-pres-brief { box-shadow: none; }
}
.xp-mxlinks { margin-top: 10px; } .xp-mxlinks summary { cursor: pointer; font-weight: 600; font-size: 12px; padding: 4px 0; } .xp-mxlinks .xp-links { margin-top: 6px; max-height: 320px; overflow: auto; }

/* 1.1.0 Plan › Timeline (port of the reference planning tool): view switch, Storylines board, Gantt, Chronological */
.xp-empty { padding: var(--space-4, 16px); }
.xp-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.xp-tlpage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xp-tlpage h2 { margin: 2px 0 0; font-size: 18px; }
.xp-tvs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); width: fit-content; max-width: 100%; }
.xp-tvb { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-xs); cursor: pointer; }
.xp-tvb.is-active { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.12); color: var(--brand); font-weight: 600; }
.xp-tvb:focus-visible, .xp-mini:focus-visible, .xp-slbtn:focus-visible, .xp-gchip:focus-visible, .xp-chev:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.xp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px 2px 10px; background: var(--surface); }
.xp-pill select { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; padding: 3px 4px; }
.xp-pill-seg { padding: 2px; border-radius: var(--radius-sm); }
.xp-storybar { display: flex; justify-content: flex-end; margin-bottom: 8px; min-width: 0; }
.xp-storybar .xc-seg, .xp-pill-seg .xc-seg { flex-wrap: wrap; }
.xp-mini { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; }
.xp-mini:hover { border-color: var(--border-strong); }
.xp-soft { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3, var(--surface-2)); color: var(--text); text-transform: capitalize; }
.xp-cap { text-transform: capitalize; }
.xp-sltool { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.xp-sltool p { margin: 2px 0 0; }
.xp-sltool .xp-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xp-slboard { display: flex; flex-direction: column; gap: 14px; position: relative; }
.xp-slrow { display: grid; grid-template-columns: 194px 1fr; border: 1px solid var(--border); border-top: 2px solid var(--thread-color); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.xp-slhead { padding: 10px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xp-sltop { display: flex; align-items: center; gap: 6px; }
.xp-slicon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--thread-color); color: #fff; }
.xp-slhead h3 { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.xp-slhead p { margin: 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.xp-slhead p b { color: var(--text); font-weight: 600; }
.xp-sltrack { list-style: none; margin: 0; padding: 10px; display: flex; gap: 7px; min-height: 126px; overflow-x: auto; align-items: stretch; min-width: 0; }
.xp-sltrack.is-over { outline: 2px dashed var(--brand); outline-offset: -4px; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.xp-sltrack.is-wrap { flex-wrap: wrap; overflow-x: visible; min-height: 0; align-content: flex-start; }
.xp-sltrack.is-end::after { content: ''; flex: 0 0 4px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.xp-slnone { font-size: 12px; align-self: center; padding: 0 6px; }
/* event card: bright tint of the event-type colour, a full frame in that colour, a solid stripe, an ID pill, the time
   in bold, the thread badge filled in the thread colour; it lifts on hover and while dragged */
.xp-slc { flex: 0 0 172px; display: flex; position: relative; transition: opacity .15s, filter .15s; }
.xp-slc[data-drag] .xp-slbtn { cursor: grab; }
.xp-slc.is-drag { opacity: .3; }
.xp-slc.is-dim { opacity: .25; filter: grayscale(.7); }
.xp-slc.is-before::before { content: ''; position: absolute; left: -6px; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.xp-slc.is-menu .xp-slbtn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); }
.xp-slbtn { position: relative; display: flex; width: 100%; min-height: 92px; text-align: left; font: inherit; font-size: 12px; color: var(--text); padding: 0; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--event-color) 11%, var(--surface)) 0%, var(--surface) 70%);
  border: 2px solid color-mix(in srgb, var(--event-color) 78%, var(--surface)); border-radius: 9px;
  box-shadow: 0 1px 2px rgb(15 23 42 / .07), 0 2px 8px -4px color-mix(in srgb, var(--event-color) 45%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; user-select: none; -webkit-user-select: none; }
.xp-slbtn:hover { transform: translateY(-2px); border-color: var(--event-color); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--event-color) 70%, transparent), 0 0 0 1px var(--event-color); }
.xp-slbtn:disabled { cursor: default; opacity: 1; transform: none; }
.xp-slc.is-fired .xp-slbtn { filter: saturate(.55); }
.xp-slstripe { flex: 0 0 22px; border-radius: 6px 0 0 6px; background: var(--event-color, var(--border-strong)); display: flex; align-items: center; justify-content: center; }
.xp-slstripe span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--event-ink, #fff); white-space: nowrap; overflow: hidden; max-height: 88px; }
.xp-slstripe[data-none] { background: var(--surface-3, var(--surface-2)); }
.xp-slstripe[data-none] span { color: var(--text); }
.xp-slbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 7px 9px 8px; }
.xp-slmeta { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.xp-slid { display: inline-block; padding: 1px 6px; border-radius: 5px; font-weight: 800; font-size: 10.5px; letter-spacing: .02em; background: var(--event-color, var(--brand)); color: var(--event-ink, #fff); }
.xp-slfired { display: inline-flex; color: var(--brand); }
.xp-slmeta small { margin-left: auto; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp-sltitle { font-size: 12.5px; font-weight: 600; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.xp-slbadge { margin-top: auto; align-self: flex-end; font-size: 10px; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 5px; background: var(--thread-color); color: var(--thread-ink, #fff); }
.xp-tlwarn { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; line-height: 1; background: var(--danger); color: var(--on-fill); box-shadow: 0 0 0 2px var(--surface); }
.xp-slc.is-warn .xp-slbtn { border-style: solid; outline: 1px dashed color-mix(in srgb, var(--danger) 70%, transparent); outline-offset: 2px; }
/* the drag ghost and the page while dragging */
.xp-ghost { position: fixed; z-index: 1300; pointer-events: none; list-style: none; margin: 0; transform: rotate(2.5deg) scale(1.04); filter: drop-shadow(0 18px 24px rgb(15 23 42 / .35)); opacity: .96; }
body.xp-dragging, body.xp-dragging * { cursor: grabbing !important; user-select: none; }
/* day board */
.xp-chrow.is-un { --thread-color: var(--muted); }
.xp-chrow.is-frozen .xp-slhead { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--muted) 10%, transparent) 8px 16px); }
.xp-chrow .xp-sltrack { min-height: 72px; }
/* find box */
.xp-find { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); }
.xp-find:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.xp-find input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text); width: 190px; }
.xp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* right-click menu */
.xp-cmenu { position: fixed; z-index: 1250; min-width: 232px; max-width: 300px; max-height: min(72vh, 560px); overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 18px 44px -14px rgb(15 23 42 / .4); font-size: 13px; }
.xp-cmhead { display: flex; flex-direction: column; padding: 4px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.xp-cmhead b { color: var(--brand); font-size: 11px; }
.xp-cmhead span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-cmi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.xp-cmi:hover, .xp-cmi:focus-visible { background: var(--brand-soft); outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.xp-cmi:hover { box-shadow: none; }
.xp-cmi:disabled { color: var(--muted); cursor: default; background: none; box-shadow: none; }
.xp-cmi.is-danger { color: var(--danger); font-weight: 700; }
.xp-cmlabel { margin: 6px 8px 2px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.xp-cmsep { height: 1px; margin: 4px 2px; background: var(--border); }
.xp-cmdot { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
/* event dialog: the form on the left, the event's info and tools on the right */
.xp-evform.has-info { width: min(940px, 100%); }
.xp-evgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.xp-evfields, .xp-evplain { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.xp-evinfo { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-top: 4px solid var(--event-color); border-radius: 10px; background: color-mix(in srgb, var(--event-color) 5%, var(--surface-2)); font-size: 12px; }
.xp-evhero { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xp-evdl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; }
.xp-evdl div { display: contents; }
.xp-evdl dt { color: var(--muted); }
.xp-evdl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.xp-evdl small { color: var(--muted); font-weight: 400; }
.xp-evsum { line-height: 1.45; max-height: 130px; overflow: auto; color: var(--text); }
.xp-evwarn { margin: 0; padding: 8px 10px 8px 26px; border-radius: 8px; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.xp-evok { color: var(--muted); }
.xp-evtools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xp-evtools .xp-eyebrow { grid-column: 1 / -1; margin: 0; }
.xp-evtools .btn { justify-content: flex-start; }
@media (max-width: 820px) { .xp-evgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .xp-slbtn, .xp-slc { transition: none; } .xp-slbtn:hover { transform: none; } .xp-ghost { transform: none; } }
.xp-evform { width: min(560px, 100%); }
.xp-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xp-grow1 { flex: 1; }
.xc-modal-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.xp-gtool { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.xp-gleft, .xp-gright { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xp-gtool select { font: inherit; font-size: 12px; padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface); color: var(--text); }
.xp-glayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.xp-gcard { min-width: 0; }
.xp-glegend { margin-bottom: 8px; }
.xp-gshell { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-xs); }
.xp-ghead, .xp-grow { display: flex; width: max-content; min-width: 100%; }
.xp-ghead { background: var(--surface-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.xp-gcorner, .xp-glane { flex: 0 0 170px; position: sticky; left: 0; z-index: 1; background: var(--surface-2); border-right: 1px solid var(--border); padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.xp-gcorner { flex-direction: column; align-items: flex-start; gap: 0; font-size: 12px; font-weight: 600; }
.xp-gcorner small, .xp-glane small { color: var(--muted); font-weight: 400; display: block; font-size: 11px; }
.xp-glane { background: var(--surface); font-size: 13px; }
.xp-gdot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.xp-gdays { display: flex; }
.xp-gday { flex: 0 0 auto; padding: 6px 8px; border-right: 1px solid var(--border); display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
.xp-gday strong { color: var(--text); font-size: 12px; }
.xp-gday.is-frozen, .xp-gcell.is-frozen { background: repeating-linear-gradient(135deg, transparent 0 8px, var(--brand-soft) 8px 9px); }
.xp-grow + .xp-grow { border-top: 1px solid var(--border); }
.xp-gstrip { display: flex; }
.xp-gcell { flex: 0 0 auto; padding: 6px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-height: 58px; }
.xp-gempty { color: var(--faint); font-size: 12px; align-self: center; margin: auto 0; }
.xp-gchip { display: flex; flex-direction: column; text-align: left; font: inherit; font-size: 11px; color: var(--text); padding: 4px 6px; border: 1px solid var(--border); border-left: 4px solid var(--lane); border-radius: var(--radius-xs); background: color-mix(in srgb, var(--lane) 10%, var(--surface)); cursor: pointer; min-width: 0; }
.xp-gchip.is-sel { box-shadow: 0 0 0 2px var(--brand); }
.xp-gchip.is-twist, .xp-gchip.is-incident { border-style: dashed; border-left-style: solid; }
.xp-gtime { font-family: var(--font-mono); color: var(--muted); font-size: 10px; }
.xp-gtitle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-gun { margin: 8px 0 0; font-size: 12px; }
.xp-epanel { position: sticky; top: 8px; min-width: 0; }
.xp-epanel h2 { font-size: 16px; margin: 8px 0 4px; }
.xp-ephead { display: flex; justify-content: space-between; align-items: center; }
.xp-epgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.xp-epgrid span { display: block; font-size: 11px; color: var(--muted); }
.xp-epgrid strong { font-size: 13px; font-weight: 600; }
.xp-epacts { display: flex; gap: 6px; flex-wrap: wrap; }
.xp-epempty { text-align: center; padding: 20px 8px; color: var(--muted); }
.xp-epempty h3 { color: var(--text); margin: 8px 0 4px; font-size: 14px; }
.xp-empty-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); }
.xp-phead2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
@media (max-width: 1100px) { .xp-glayout { grid-template-columns: 1fr; } .xp-epanel { position: static; } }
@media (max-width: 720px) {
  .xp-slrow { grid-template-columns: 1fr; }
  .xp-slhead { border-right: 0; border-bottom: 1px solid var(--border); }
  .xp-slc { flex-basis: 148px; }
  .xp-f2 { grid-template-columns: 1fr; }
  .xp-gcorner, .xp-glane { flex-basis: 120px; }
}

/* 1.1.0 Plan > Overview: the scenario detail view (plan-overview.js) */
.xo-page { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.xo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xo-name { margin: 0; font-size: 20px; }
.xo-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xo-out { background: var(--surface); }
.xo-shell { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.xo-tabwrap { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.xo-tabs { display: flex; align-items: center; gap: 3px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.xo-tabs::-webkit-scrollbar { display: none; }
.xo-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--muted); background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.xo-tab:hover { color: var(--text); background: var(--surface); }
.xo-tab.is-active { color: var(--brand); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-soft); }
.xo-tab small { padding: 2px 6px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 10.5px; font-weight: 700; }
.xo-tab.is-active small { background: var(--brand-soft); color: var(--text); }
.xo-next { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); flex: none; cursor: pointer; }
.xo-panel { padding: 20px; min-height: 360px; min-width: 0; }
.xo-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.xo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xo-head h2 { margin: 2px 0 4px; font-size: 18px; }
.xo-head p { margin: 0; max-width: 70ch; }
.xo-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; min-width: 0; }
.xo-card h3 { margin: 0; font-size: 15px; }
.xo-card p { margin: 0; }
.xo-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xo-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.xo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 240px; }
.xo-empty p { max-width: 440px; color: var(--muted); font-size: 13px; }
.xo-eicon, .xo-ficon, .xo-ticon { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); }
.xo-eicon { width: 52px; height: 52px; }
.xo-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.xo-seg button { border: 0; background: transparent; padding: 6px 12px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; min-height: 32px; }
.xo-seg button.is-active { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow-soft); }
.xo-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 8px; background: var(--surface); color: var(--muted); min-height: 32px; }
.xo-search input { border: 0; background: transparent; font: inherit; color: var(--text); min-width: 0; width: 180px; outline-offset: 2px; }
.xo-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.xo-meta span { display: inline-flex; align-items: center; gap: 4px; }
.xo-nocap { text-transform: none; }
.xo-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.xo-dot.is-blue { background: var(--brand); } .xo-dot.is-amber { background: #d97706; } .xo-dot.is-grey { background: var(--excon-surface-4); } .xo-dot.is-navy { background: var(--text); }
.xo-dot.is-large { width: 18px; height: 18px; }
.xo-track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.xo-track > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.xo-track.is-large { height: 12px; }
.xo-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
/* Details */
.xo-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.xo-dmain { padding: 22px; }
.xo-identity { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.xo-logo { width: 150px; height: 96px; border-radius: var(--radius); flex: none; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #0f172a)); box-shadow: var(--shadow-soft); }
.xo-dgrid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.xo-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xo-field.is-wide { grid-column: 1 / -1; }
.xo-field span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.xo-field strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.xo-dsec { padding-top: 18px; }
.xo-dsec + .xo-dsec { margin-top: 18px; border-top: 1px solid var(--border); }
.xo-dsechead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xo-etchips, .xo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.xo-etchip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); padding: 6px 12px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; min-height: 32px; }
.xo-etchip i { width: 10px; height: 10px; border-radius: 50%; }
.xo-etchip.is-off { opacity: .7; border-style: dashed; }
.xo-etchip:disabled { cursor: default; }
.xo-etinfo { display: flex; align-items: center; gap: 10px; }
.xo-days h3 small { font-weight: 400; }
/* Coverage */
.xo-covlayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.xo-covaside { display: flex; flex-direction: column; gap: 14px; }
.xo-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.xo-metrics > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.xo-metrics span { color: var(--muted); font-size: 12px; font-weight: 600; }
.xo-chart { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.xo-sun { width: min(100%, 340px); height: auto; }
.xo-sun path { stroke: var(--surface); stroke-width: 1.5; }
.xo-sunv { font-size: 26px; font-weight: 800; fill: var(--text); }
.xo-sunl { font-size: 11px; fill: var(--muted); }
.xo-bars { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.xo-barrow { display: grid; grid-template-columns: minmax(90px, 180px) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.xo-barrow .xo-stack { flex-direction: row; gap: 0; height: 16px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.xo-cmatrix { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xo-cmcard { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.xo-mhead { display: flex; align-items: center; gap: 8px; }
.xo-mhead span { margin-left: auto; font-weight: 700; }
.xo-legend { display: flex; flex-direction: column; gap: 12px; }
.xo-legend > div { display: flex; gap: 10px; align-items: flex-start; }
.xo-legend .xo-dot { margin-top: 5px; }
.xo-legend p, .xo-callout p { color: var(--muted); font-size: 12.5px; }
.xo-callout { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border-color: transparent; color: var(--text); }
.xo-covdetail { margin-top: 14px; }
.xo-covdetail summary { cursor: pointer; font-weight: 700; }
.xo-covdetail summary small { font-weight: 400; color: var(--muted); }
.xp-covhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
/* Aliases, threads, groups, files */
.xo-alias { display: flex; flex-direction: column; gap: 6px; }
.xo-ahead, .xo-thead, .xo-ghead, .xo-ftop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xo-alias > strong { font-size: 15px; }
.xo-alias small { color: var(--muted); font-weight: 400; }
.xo-thread, .xo-group, .xo-file { display: flex; flex-direction: column; gap: 8px; position: relative; }
.xo-thread.is-resolved { background: color-mix(in srgb, var(--ok) 4%, var(--surface)); }
.xo-tstate { color: var(--warn); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.xo-tstate.is-resolved { color: var(--ok); }
.xo-thread > p, .xo-group > p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.xo-tacts, .xo-gacts, .xo-ffoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.xo-tacts { justify-content: flex-start; }
.xo-replies { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--border); }
.xo-replies p { margin: 2px 0 0; font-size: 13px; }
.xo-reply { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; }
.xo-reply textarea, .xo-reply input, .xo-reply select { flex: 1 1 180px; min-width: 0; font: inherit; }
.xo-gcolor { display: block; width: 34px; height: 4px; border-radius: 999px; }
.xo-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--on-fill); background: var(--brand); flex: none; }
.xo-avatar.is-tint { background: color-mix(in srgb, var(--g) 18%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 2px var(--g); }
.xo-avatar.is-small { width: 30px; height: 30px; font-size: 11px; }
.xo-lead { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.xo-lead strong { color: var(--text); }
.xo-gopen { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.xo-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; max-height: 180px; overflow: auto; }
.xo-ficon { width: 34px; height: 34px; }
.xo-ftop .xp-soft { margin-left: auto; }
.xo-file h3 { font-size: 13.5px; overflow-wrap: anywhere; }
.xo-upload { cursor: pointer; }
.xo-upload:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
/* Checklists */
.xo-cksum { display: flex; flex-direction: column; gap: 8px; }
.xo-ckph { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.xo-ckph strong { color: var(--text); font-size: 20px; }
.xo-ckctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.xo-cklist { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.xo-ckrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.xo-ckrow:last-child { border-bottom: 0; }
.xo-ckrow.is-done { background: color-mix(in srgb, var(--ok) 4%, var(--surface)); }
.xo-ckrow.is-done .xo-ckcopy strong { color: var(--muted); text-decoration: line-through; }
.xo-ckrow.is-done .xp-box { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.xo-ckcopy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.xo-ckcopy p { color: var(--muted); font-size: 12.5px; margin: 0; }
.xo-ckacts { display: flex; align-items: center; gap: 6px; flex: none; }
/* Statistics */
.xo-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.xo-tile { display: flex; flex-direction: column; gap: 3px; }
.xo-ticon { width: 30px; height: 30px; margin-bottom: 6px; }
.xo-tile > span:not(.xo-ticon) { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.xo-tile > strong { font-size: 24px; letter-spacing: -.02em; }
.xo-tile > small { color: var(--muted); font-size: 12px; }
.xo-tile.is-green .xo-ticon { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.xo-tile.is-amber .xo-ticon { background: var(--warn-soft); color: var(--warn); }
.xo-tile.is-red .xo-ticon { background: var(--danger-soft); color: var(--danger); }
.xo-tile.is-slate .xo-ticon { background: var(--surface-3); color: var(--muted); }
.xo-breakdown { display: flex; flex-direction: column; gap: 12px; }
.xo-blabel { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.xo-ready { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xo-ready > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.xo-ready span { color: var(--muted); font-size: 12px; }
.xo-ready strong { font-size: 20px; }
/* Participants */
.xo-ptool { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.xo-ibtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; }
.xo-person { display: flex; align-items: center; gap: 10px; }
.xo-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.xo-person small { color: var(--muted); overflow-wrap: anywhere; }
.xo-sort { border: 0; background: transparent; font: inherit; font-weight: 700; color: inherit; cursor: pointer; padding: 0; }
.xo-status { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.xo-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.xo-status.is-active i { background: var(--ok); } .xo-status.is-invited i { background: var(--warn); }
.xo-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
/* Comments drawer */
.xo-drawer-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .3); z-index: 60; }
.xo-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow); z-index: 61; display: flex; flex-direction: column; }
.xo-dhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 16px; border-bottom: 1px solid var(--border); }
.xo-dhead h2 { margin: 0; font-size: 17px; }
.xo-dhead p { margin: 2px 0 0; }
.xo-clist { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.xo-comment { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-2); }
.xo-chead { display: flex; justify-content: space-between; gap: 8px; }
.xo-chead small { color: var(--muted); }
.xo-comment p { margin: 6px 0 0; font-size: 13px; white-space: pre-wrap; }
.xo-cempty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); padding: 40px 0; text-align: center; }
.xo-compose { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-top: 1px solid var(--border); }
.xo-compose textarea { font: inherit; }
@media (max-width: 1100px) {
  .xo-covlayout { grid-template-columns: minmax(0, 1fr); }
  .xo-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .xo-panel { padding: 12px; }
  .xo-grid2, .xo-grid3, .xo-cmatrix, .xo-dgrid, .xo-ready { grid-template-columns: minmax(0, 1fr); }
  .xo-tiles, .xo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xo-identity { flex-direction: column; }
  .xo-logo { width: 100%; height: 72px; }
  .xo-search input { width: 120px; }
  .xo-barrow { grid-template-columns: minmax(0, 1fr) auto; }
  .xo-barrow .xo-stack { grid-column: 1 / -1; order: 3; }
  .xo-ptable th:nth-child(3), .xo-ptable td:nth-child(3) { display: none; }
  .xo-acts .btn { flex: 1 1 auto; }
}

/* 1.1.0 Plan › METL (port of the reference Tasks & Measures Management screen) */
.xp-met { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xp-met-head h2 { margin: 0; font-size: 18px; }
.xp-met-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.xp-met-std { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.xp-met-std label { font-weight: 700; font-size: 13px; }
.xp-met-std select { min-width: min(320px, 100%); max-width: 100%; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); background: var(--surface); color: var(--text); font: inherit; }
.xp-met-bar { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.xp-met-bar > div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.xp-met-bar .is-active { background: var(--surface-2); }
.xp-met-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.xp-met-row + .xp-met-row { border-top: 1px solid var(--border); }
.xp-met-main { display: grid; grid-template-columns: 32px 96px minmax(0, 1fr) auto auto; gap: 10px; align-items: start; padding: 10px 12px; }
.xp-met-expand { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text); cursor: pointer; }
.xp-met-expand:hover { background: var(--surface-2); }
.xp-met-expand svg { transform: rotate(-90deg); transition: transform .15s; }
.xp-met-expand[aria-expanded="true"] svg { transform: none; }
.xp-met-code { font-weight: 700; padding-top: 5px; overflow-wrap: anywhere; }
.xp-met-copy { min-width: 0; }
.xp-met-copy p { margin: 3px 0 0; font-size: 13px; }
.xp-met-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.xp-met-tag, .xp-met-set { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.xp-met-set { background: transparent; color: var(--muted); }
.xp-met-note { color: var(--muted); font-size: 12px !important; }
.xp-met-counts { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); padding-top: 5px; white-space: nowrap; }
.xp-met-acts { display: flex; gap: 2px; }
.xp-met-exp { padding: 4px 12px 10px 150px; display: flex; flex-direction: column; gap: 4px; }
.xp-met-exprow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13px; padding: 4px 0; border-top: 1px dashed var(--border); }
.xp-met-exprow small { color: var(--muted); }
.xp-met-chip { font-family: var(--font-mono, monospace); font-size: 11px; padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-2); justify-self: start; }
.xp-met-tree, .xp-met-tree ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.xp-met-card { width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.xp-met-io { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.xp-met-io p { margin: 0; }
@media (max-width: 720px) {
  .xp-met-main { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .xp-met-code { grid-column: 2; }
  .xp-met-copy { grid-column: 1 / -1; }
  .xp-met-counts { grid-row: 1; grid-column: 3; flex-direction: row; gap: 8px; }
  .xp-met-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .xp-met-exp { padding-left: 12px; }
  .xp-met-exprow { grid-template-columns: 80px minmax(0, 1fr); }
  .xp-met-exprow small { grid-column: 2; }
}

/* 1.2.0 Timeline: card signals, connection lines, the tabbed info column (Details / Connections / Media / Actions) */
.xp-slsum { font-size: 11px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.xp-sltitle { -webkit-line-clamp: 2; }
.xp-slfoot { margin-top: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.xp-slfoot .xp-slbadge { margin: 0 0 0 auto; }
.xp-sig { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 6px 1px 5px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.xp-sig.is-media { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); background: var(--brand-soft); }
.xp-sig.is-act { color: var(--warn-ink, var(--text)); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.xp-sig.is-act.is-done { color: var(--success, var(--excon-green-text)); border-color: color-mix(in srgb, var(--success, #15803d) 45%, var(--border)); }
.xp-sig.is-link { color: var(--muted); }
.xp-slc { z-index: 1; }
.xp-tlsvg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.xp-tlsvg .xp-ln { transition: opacity .15s, stroke-width .15s; }
.xp-tlsvg .xp-ln.is-dep { stroke-dasharray: 1 3; }
.xp-tlsvg .xp-ln.is-off { opacity: .15; }
.xp-slboard.is-hl .xp-slc:not(.is-chain) { opacity: .35; filter: grayscale(.6); }
.xp-slboard.is-hl .xp-ln { opacity: .08; }
.xp-slboard.is-hl .xp-ln.is-chain { opacity: 1; stroke-width: 2.4; }
.xp-slboard.is-hl .xp-slc.is-chain .xp-slbtn { box-shadow: 0 0 0 2px var(--event-color); }
.xp-ltog.is-on { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.xp-ltog b, .xp-itab b, .xp-cmn { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 10.5px; background: var(--surface-3, var(--surface-2)); color: var(--text); }
.xp-llegend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; margin: -4px 0 0; }
.xp-llegend span { display: inline-flex; align-items: center; gap: 6px; }
.xp-lsw { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--text); opacity: .75; }
.xp-lsw.is-feeds { border-top: 2px dashed var(--brand); }
.xp-lsw.is-conditional { border-color: var(--xc-twist); }
.xp-lsw.is-access_chain { border-top: 2px dotted var(--danger); }
.xp-lsw.is-gate { border-top-width: 3px; border-color: var(--warn); }
.xp-itabs { display: grid; grid-template-columns: repeat(4, minmax(min-content, auto)); gap: 2px; padding: 3px; border-radius: 9px; background: var(--surface-2); }
.xp-itab { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; min-width: 0; }
.xp-itab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-itab:hover { color: var(--text); }
.xp-itab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(15 23 42 / .14); }
.xp-itab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.xp-ipanel { display: flex; flex-direction: column; gap: 10px; min-height: 180px; max-height: 58vh; overflow: auto; padding-right: 2px; }
.xp-ipanel .xp-eyebrow { margin: 0 0 4px; }
.xp-inone { margin: 0; font-size: 12px; }
.xp-evnavs { display: grid; gap: 4px; }
.xp-evnav { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 4px; align-items: center; font-size: 11.5px; }
.xp-evnav > span { color: var(--muted); }
.xp-navb { font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-navb:hover { border-color: var(--brand); color: var(--brand); }
.xp-navx { color: var(--muted); text-align: center; }
.xp-evex ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.xp-cnl, .xp-mdl, .xp-actl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xp-cn { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.xp-cn .xp-lnk { text-align: left; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-cn small { grid-column: 2; color: var(--muted); font-size: 11px; }
.xp-cn > :last-child:not(small) { grid-row: 1 / span 2; grid-column: 3; }
.xp-cnk { grid-row: 1 / span 2; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border-left: 3px solid var(--text); }
.xp-cnk.is-feeds { border-color: var(--brand); }
.xp-cnk.is-conditional { border-color: var(--xc-twist); }
.xp-cnk.is-access_chain { border-color: var(--danger); }
.xp-cnk.is-gate { border-color: var(--warn); }
.xp-cndep { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); }
.xp-iform { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: 9px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.xp-iform .xp-eyebrow { margin: 0; }
.xp-iform .btn { justify-self: start; }
.xp-md { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.xp-md.is-spec { border-style: dashed; }
.xp-mdic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.xp-mdb { min-width: 0; display: grid; gap: 2px; }
.xp-mdb p { margin: 0; }
.xp-mdtop { display: flex; gap: 6px; align-items: baseline; font-size: 12px; min-width: 0; }
.xp-mdtop span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-mdtop small { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.xp-mdtxt { font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.xp-mdsrc { font-size: 10.5px; color: var(--muted); }
.xp-mdsrc.is-eff { color: var(--brand); }
.xp-actbar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.xp-actbar i { display: block; height: 100%; background: var(--success, #15803d); border-radius: inherit; }
.xp-act { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.xp-act.is-ready { border-color: color-mix(in srgb, var(--success, #15803d) 45%, var(--border)); }
.xp-act.is-ready .xp-actb p { color: var(--muted); text-decoration: line-through; }
.xp-actst { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.xp-act.is-ready .xp-actst { background: var(--success, #15803d); border-color: var(--success, #15803d); color: #fff; }
.xp-actst:disabled { cursor: default; }
.xp-actb { min-width: 0; font-size: 12px; }
.xp-actb p { margin: 1px 0 0; overflow-wrap: anywhere; }
@media (max-width: 820px) { .xp-itab span { display: none; } }

/* EXCON Profile tab (P5-T2/T3, excon-profile.js): counts per measure and team, a slim share bar, low evidence in grey.
   Rating hues as the EEG (ok / warn / danger), unobserved grey. No total, no ranking. */
.xe-wrap { display: grid; gap: 12px; }
.xe-runs button { min-height: 32px; padding: 0 10px; }
.xe-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 10px; font-size: 11.5px; color: var(--muted); }
.xe-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.xe-obj h4 { margin: 14px 0 6px; font-size: 13px; }
.xe-table th[scope="row"], .xe-table th[scope="rowgroup"] { text-align: left; font-weight: 500; }
.xe-table .xe-task th { background: var(--surface-2); font-size: 12px; }
.xe-table .xe-m { min-width: 14em; font-size: 12.5px; }
.xe-cell { min-width: 8.5em; vertical-align: middle; }
.xe-nums { display: flex; gap: 8px; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; }
.xe-n.is-met { color: var(--ok); }
.xe-n.is-partial { color: var(--warn); }
.xe-n.is-not_met { color: var(--danger); }
.xe-n.is-unobserved { color: var(--muted); font-weight: 500; }
.xe-bar { display: flex; height: 3px; margin-top: 4px; border-radius: 2px; overflow: hidden; background: var(--surface-3); }
.xe-bar i, .xe-legend i { background: var(--muted); }
.xe-bar i.is-met, .xe-legend i.is-met { background: var(--ok); }
.xe-bar i.is-partial, .xe-legend i.is-partial { background: var(--warn); }
.xe-bar i.is-not_met, .xe-legend i.is-not_met { background: var(--danger); }
.xe-bar i.is-unobserved, .xe-legend i.is-unobserved { background: var(--surface-3); }
.xe-cell.is-low { color: var(--muted); font-size: 12px; }
.xe-num { font-variant-numeric: tabular-nums; }
.xe-lattable td.xe-lat { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xe-lattable td.xe-lat small { margin-left: 4px; }
.xe-lattable td.is-none { color: var(--muted); }
.xe-lattable thead th:not(:first-child):not(:last-child) { text-align: right; }
.xe-lattable th[scope="row"] { text-align: left; font-weight: 500; }
.xe-pack { white-space: nowrap; }
.xe-pack a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 6px; }
@media (max-width: 820px) { /* phone: one card per measure, the teams stacked under it in the same fixed order */
  .xe-table thead { display: none; }
  .xe-table, .xe-table tbody, .xe-table tr, .xe-table th, .xe-table td { display: block; width: auto; min-width: 0; }
  .xe-table tr { border-bottom: 1px solid var(--border); padding: 4px 0; }
  .xe-table .xe-m { min-width: 0; border: 0; }
  .xe-cell { display: grid !important; grid-template-columns: 7.5em 1fr; align-items: center; gap: 2px 8px; border: 0; }
  .xe-cell::before { content: attr(data-team); grid-row: span 2; font-size: 11.5px; color: var(--muted); }
  .xe-runs { flex-wrap: wrap; }
  .xe-lattable thead { display: none; } /* phone: one card per team, each time labelled */
  .xe-lattable, .xe-lattable tbody, .xe-lattable tr { display: block; }
  .xe-lattable tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .xe-lattable th[scope="row"], .xe-lattable td.xe-pack { grid-column: 1 / -1; border: 0; padding: 0; }
  .xe-lattable td.xe-lat { text-align: left; border: 0; padding: 0; white-space: normal; }
  .xe-lattable td.xe-lat::before { content: attr(data-k); display: block; font-size: 11px; color: var(--muted); }
}
