:root {
  --bg: #f5f4ef;
  --panel: #ffffff;
  --line: #e4e1d8;
  --line-soft: #efece4;
  --text: #22211d;
  --muted: #6f6c63;
  --faint: #9a968b;
  --accent: #c96442;
  --accent-soft: #f6e5dd;
  --red: #c4483a;
  --red-soft: #f8e1dd;
  --amber: #c98a17;
  --amber-soft: #fbefd4;
  --green: #3f8a5a;
  --green-soft: #def0e3;
  --grey-cell: #f0eee8;
  --term-bg: #1d1c1a;
  --term-panel: #262522;
  --term-text: #ecebe6;
  --term-muted: #a29f95;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s; }
.btn:hover { background: #faf9f6; border-color: #d4d0c4; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #b9583a; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--line-soft); color: var(--text); }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-rows: 54px 1fr; height: 100vh; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 0 18px; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.project-name { color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.timeline .step { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--faint); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.timeline .step.fired { border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); }
.timeline .step.start { border-style: solid; color: var(--muted); }
.team-chip { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--line-soft); white-space: nowrap; }

.body { display: grid; grid-template-columns: 250px minmax(0, 1fr) var(--agent-w, max(360px, 30vw)); min-height: 0; }

/* ---------- sidebar ---------- */
.sidebar { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.side-head h3 { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.files { list-style: none; margin: 0; padding: 0 8px 8px; overflow: auto; flex: 1; }
.file { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.file:hover { background: var(--line-soft); }
.file.active { background: var(--accent-soft); }
.file .ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; font-family: var(--mono); }
.file .t { min-width: 0; }
.file .t b { display: block; font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .t span { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; text-transform: uppercase; }
.badge.new { background: var(--accent); color: #fff; }
.badge.changed { background: var(--amber-soft); color: #8a5d09; }
.file.flash { animation: flash 1.6s ease 2; }
@keyframes flash { 0%, 100% { background: transparent; } 40% { background: #fde7c4; } }
.dropzone { margin: 8px 12px 14px; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 12px; text-align: center; color: var(--muted); font-size: 12px; cursor: pointer; }
.dropzone:hover { border-color: var(--accent); color: var(--accent); }
.drop-overlay { position: fixed; inset: 0; background: rgba(201, 100, 66, .12); border: 3px dashed var(--accent); z-index: 50; display: grid; place-items: center; font-size: 22px; font-weight: 600; color: var(--accent); pointer-events: none; }

/* kind colours */
.k-wymagania { background: #5b6ee1; } .k-decyzje { background: #7b5ad6; } .k-design { background: #c2569b; }
.k-priorytety { background: #d0732f; } .k-tablica { background: #2f8fa8; } .k-budzet { background: #3f8a5a; }
.k-raport { background: #b48a1c; } .k-kod { background: #3b3a36; } .k-feedback { background: #c4483a; }
.k-spotkanie { background: #6a7f45; } .k-srodowisko { background: #6b7280; } .k-inne { background: #9a968b; }

/* ---------- main ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tabs { display: flex; gap: 2px; padding: 10px 18px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab .count { background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; }
.tab .count.zero { background: var(--line); color: var(--muted); }
.pane { flex: 1; overflow: auto; padding: 20px 26px 40px; }

.file-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.file-head h2 { margin: 0; font-size: 20px; font-weight: 650; }
.file-head .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.file-head .actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.doc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; max-width: 980px; }
.doc h1 { font-size: 20px; margin: 0 0 12px; } .doc h2 { font-size: 17px; margin: 22px 0 8px; } .doc h3 { font-size: 15px; margin: 18px 0 6px; }
.doc p, .doc li { line-height: 1.6; }
.doc table { border-collapse: collapse; font-size: 13px; margin: 10px 0; width: 100%; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.doc th { background: #faf9f5; font-weight: 600; }
.doc td:first-child { white-space: nowrap; }
.doc code { font-family: var(--mono); font-size: 12.5px; background: var(--line-soft); padding: 1px 5px; border-radius: 4px; }
.doc pre { background: #faf9f5; border: 1px solid var(--line); padding: 12px; border-radius: 8px; overflow: auto; }
.doc pre code { background: none; padding: 0; }
.doc blockquote { margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--muted); }
.doc.csv { padding: 0; overflow: auto; }
.doc.csv table { margin: 0; }
.doc.csv td { white-space: nowrap; }
.doc.csv td.wrap { white-space: normal; min-width: 220px; }
.editor { width: 100%; min-height: 60vh; font-family: var(--mono); font-size: 13px; line-height: 1.55; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); resize: vertical; }
.diff { font-family: var(--mono); font-size: 12.5px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-width: 980px; }
.diff div { padding: 1px 14px; white-space: pre-wrap; }
.diff .add { background: #e3f4e6; color: #1f5c32; }
.diff .del { background: #fbe4e1; color: #8c2a1f; text-decoration: line-through; text-decoration-color: rgba(140, 42, 31, .35); }
.diff .ctx { color: var(--muted); }
.diff .gap { color: var(--faint); background: #faf9f5; }
.empty { color: var(--muted); padding: 40px; text-align: center; }

/* ---------- matrix ---------- */
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 14px; align-items: center; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -3px; margin-right: 5px; }
.matrix-wrap { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.matrix { border-collapse: separate; border-spacing: 3px; }
.matrix th { font-size: 11px; font-weight: 550; color: var(--muted); }
.matrix th.row { text-align: right; padding-right: 8px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.matrix th.col { height: 150px; vertical-align: bottom; padding-bottom: 6px; }
.matrix th.col div { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 150px; overflow: hidden; text-overflow: ellipsis; }
.cell { width: 30px; height: 30px; border-radius: 7px; background: var(--grey-cell); text-align: center; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .1s; color: #fff; }
.cell:hover { transform: scale(1.12); }
.cell.diag { background: transparent; cursor: default; color: var(--faint); }
.cell.diag.issue { background: var(--red-soft); color: var(--red); cursor: pointer; }
.cell.issue { background: var(--red); }
.cell.stale { background: var(--amber); }
.cell.ok { background: var(--green); }
.cell.resolved { background: #8fbf9f; }
.cell.sel { outline: 3px solid var(--text); outline-offset: 1px; }
.cell.pulse { animation: pulse 1.2s ease 3; }
@keyframes pulse { 50% { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(201, 138, 23, .35); } }
.pair-panel { flex: 1; min-width: 240px; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pair-panel h3 { margin: 0 0 4px; font-size: 15px; }
.summary-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; flex: 1 1 0; min-width: 110px; }
.stat b { line-height: 1.2; }
.stat b { display: block; font-size: 22px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.red b { color: var(--red); } .stat.amber b { color: var(--amber); } .stat.green b { color: var(--green); }

/* ---------- register ---------- */
.reg-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 5px 12px; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--text); color: #fff; }
.issue { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; max-width: 980px; }
.issue.resolved { border-left-color: var(--green); opacity: .8; }
.issue.rejected { border-left-color: var(--faint); opacity: .65; }
.issue.stale { border-left-color: var(--amber); box-shadow: 0 0 0 1px var(--amber-soft); }
.issue-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.issue-id { font-family: var(--mono); font-weight: 700; color: var(--muted); }
.issue-title { font-weight: 600; flex: 1; min-width: 200px; }
.pill { font-size: 11px; border-radius: 999px; padding: 1px 8px; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.pill.sev-high { background: var(--red-soft); color: var(--red); }
.pill.sev-medium { background: var(--amber-soft); color: #8a5d09; }
.pill.stale { background: var(--amber); color: #fff; }
.pill.st-open { background: var(--red); color: #fff; }
.pill.st-resolved { background: var(--green); color: #fff; }
.pill.st-rejected { background: var(--faint); color: #fff; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0; }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--line-soft); cursor: pointer; border: 0; }
.chip:hover { background: var(--accent-soft); }
.issue-detail { font-size: 13px; color: #3d3b35; }
.issue-detail p { margin: 6px 0; }
.issue-detail blockquote { margin: 6px 0; padding: 2px 10px; border-left: 3px solid var(--line); color: var(--muted); }
.issue-notes { font-size: 12px; color: var(--muted); margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.issue-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.check-row { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 8px; align-items: baseline; }
.form-row { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; max-width: 980px; }
.form-row input, .form-row textarea, .form-row select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; }

/* ---------- agent panel ---------- */
.agent { position: relative; background: var(--term-bg); color: var(--term-text); display: flex; flex-direction: column; min-height: 0; border-left: 1px solid #000; }
.agent-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #34322e; }
.agent-head b { font-weight: 600; }
.agent-head .model { font-family: var(--mono); font-size: 11px; color: var(--term-muted); }
.agent-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #5a5852; }
.agent-head .dot.busy { background: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.log { flex: 1; overflow: auto; padding: 14px 16px 20px; font-size: 13.5px; }
.msg { margin: 0 0 14px; }
.msg.user { background: #2f2d29; border-radius: 10px; padding: 9px 12px; white-space: pre-wrap; border-left: 3px solid var(--accent); }
.msg.assistant { line-height: 1.6; }
.msg.assistant p { margin: 0 0 8px; }
.msg.assistant ul, .msg.assistant ol { margin: 4px 0 8px; padding-left: 20px; }
.msg.assistant code { font-family: var(--mono); font-size: 12px; background: #34322e; padding: 1px 5px; border-radius: 4px; }
.msg.assistant blockquote { margin: 6px 0; padding: 2px 10px; border-left: 3px solid #4a4741; color: var(--term-muted); }
.msg.assistant table { border-collapse: collapse; font-size: 12px; margin: 6px 0; }
.msg.assistant th, .msg.assistant td { border: 1px solid #3d3b36; padding: 3px 7px; }
.msg.assistant strong { color: #fff; }
.msg.assistant h1, .msg.assistant h2, .msg.assistant h3 { font-size: 14px; margin: 10px 0 4px; }
.tool { font-family: var(--mono); font-size: 12px; margin: 0 0 6px; color: var(--term-muted); }
.tool .name { color: var(--term-text); }
.tool .bullet { color: #7fb08c; }
.tool.err .bullet { color: #e07a6a; }
.tool.running .bullet { color: var(--accent); animation: blink 1s infinite; }
.tool .res { padding-left: 16px; color: #807d74; }
.tool.reg .name { color: #f0b49c; }
.event-card { border: 1px solid var(--accent); background: rgba(201, 100, 66, .12); border-radius: 10px; padding: 10px 12px; margin: 4px 0 14px; font-size: 13px; }
.event-card b { color: #f3b79f; display: block; margin-bottom: 3px; }
.event-card .files { padding: 0; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--term-muted); }
.notice { font-size: 12px; color: #e7b36a; margin: 0 0 12px; }
.composer { border-top: 1px solid #34322e; padding: 10px 12px 12px; background: var(--term-panel); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.quick button { background: #34322e; border: 1px solid #45423c; color: var(--term-text); border-radius: 999px; font-size: 12px; padding: 3px 10px; }
.quick button:hover { border-color: var(--accent); }
.quick button.hot { border-color: var(--accent); background: rgba(201, 100, 66, .25); }
.input-row { display: flex; gap: 8px; align-items: flex-end; }
.input-row textarea { flex: 1; resize: none; background: var(--term-bg); color: var(--term-text); border: 1px solid #45423c; border-radius: 10px; padding: 9px 11px; min-height: 42px; max-height: 180px; font-size: 13.5px; }
.input-row textarea:focus { outline: none; border-color: var(--accent); }
.input-row .btn { height: 42px; }
.welcome { color: var(--term-muted); font-size: 13px; line-height: 1.6; }
.welcome b { color: var(--term-text); }

/* ---------- event toast ---------- */
.toast { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); width: min(640px, 92vw); background: var(--panel); border: 2px solid var(--accent); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); padding: 18px 22px; z-index: 60; animation: drop .35s ease; }
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.toast .kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.toast h3 { margin: 4px 0 6px; font-size: 18px; }
.toast p { margin: 0 0 12px; color: #3d3b35; }
.toast .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- landing & admin ---------- */
.landing { max-width: 560px; margin: 12vh auto; padding: 0 20px; }
.landing h1 { font-size: 30px; margin: 18px 0 6px; letter-spacing: -.01em; }
.landing .lead { color: var(--muted); font-size: 16px; margin: 0 0 26px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.join { display: flex; gap: 8px; }
.join input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.team-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.team-list a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--line-soft); color: var(--text); text-decoration: none; font-size: 13px; }
.team-list a:hover { background: var(--accent-soft); }
.admin { max-width: 1200px; margin: 0 auto; padding: 24px; }
.admin h1 { font-size: 22px; margin: 0 0 4px; }
.admin section { margin: 22px 0; }
.admin h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.ev { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; }
.ev.fired { border-color: var(--accent); background: #fffaf7; }
.ev .min { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.ev h4 { margin: 0 0 3px; font-size: 15px; }
.ev p { margin: 0; color: var(--muted); font-size: 13px; }
.ev .ch { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 13px; }
.tbl th, .tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #faf9f5; }
.keydoc { max-height: 70vh; overflow: auto; }

/* ---------- phone layout ---------- */
.mobile-nav { display: none; }
.mdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
@media (max-width: 900px) {
  .app { grid-template-rows: 50px 1fr 56px; height: 100dvh; }
  .topbar { gap: 10px; padding: 0 12px; }
  .brand-text, .project-name { display: none; }
  .timeline { overflow-x: auto; margin-left: 0; flex: 1; scrollbar-width: none; }
  .timeline .step { max-width: 150px; }
  .team-chip { display: none; }
  .body { grid-template-columns: 1fr; }
  .body > * { display: none !important; }
  .body[data-m="files"] > .sidebar, .body[data-m="main"] > .main, .body[data-m="agent"] > .agent { display: flex !important; }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav button { border: 0; background: transparent; font-weight: 600; color: var(--muted); font-size: 14px; }
  .mobile-nav button.on { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
  .pane { padding: 14px 12px 30px; }
  .doc { padding: 16px; }
  .tabs { padding: 6px 8px 0; overflow-x: auto; }
  .tab { padding: 8px 10px; white-space: nowrap; }
  .file-head { flex-wrap: wrap; }
  .file-head .actions { margin-left: 0; justify-content: flex-start; }
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .quick button { white-space: nowrap; }
  .input-row textarea { font-size: 16px; }
  .cell { width: 28px; height: 28px; }
  .matrix th.row { max-width: 120px; }
  .toast { top: 58px; }
}

/* long file names in tool lines must wrap on narrow screens */
.agent, .log, .main { min-width: 0; }
.log { overflow-x: hidden; }
.tool, .msg { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .body { grid-template-columns: minmax(0, 1fr); }
}

/* drag the agent panel's left edge to resize it, like a side panel in an editor */
.resizer { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 5; }
.resizer::after { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.resizer:hover::after, body.resizing .resizer::after { background: var(--accent); }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing iframe { pointer-events: none; }
@media (max-width: 900px) { .resizer { display: none; } }

/* who decides, and issues that wait for that person's answer */
.pill.st-waiting { background: #6b5bd2; color: #fff; }
.pill.dec-client { background: #ece8fb; color: #4b3aa8; font-weight: 600; }
.issue.waiting { border-left-color: #6b5bd2; }

.msg.user details summary { cursor: pointer; color: var(--term-muted); font-size: 12px; margin-top: 4px; }
