/* OneSAM AI Brain — calm, dense where it matters, generous where it decides.
   One accent colour, reserved exclusively for "Potřebuje tebe". */

:root {
  --bg: #f6f4f1;
  --surface: #fffdfa;
  --surface-2: #f0ece7;
  --line: #e2dcd4;
  --line-strong: #cfc7bc;
  --text: #1b1917;
  --muted: #736b62;
  --faint: #9a928a;

  --accent: #a33f1c;          /* needs you — nowhere else */
  --accent-soft: #fbeee7;
  --ok: #2c6650;
  --ok-soft: #e8f1ec;
  --wait: #7d7161;            /* calm, deliberately not a warning */
  --wait-soft: #f1ece4;
  --bad: #8a2f2c;
  --bad-soft: #f7eae9;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 24, 20, .05), 0 8px 24px -14px rgba(28, 24, 20, .25);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1c1a18;
    --surface-2: #232120;
    --line: #302d2a;
    --line-strong: #423e3a;
    --text: #ece7e0;
    --muted: #a49a90;
    --faint: #7b736b;
    --accent: #e2764a;
    --accent-soft: #33211a;
    --ok: #6cb695;
    --ok-soft: #1b2a24;
    --wait: #a29585;
    --wait-soft: #262320;
    --bad: #d98079;
    --bad-soft: #2b1e1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -16px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 620; letter-spacing: -0.014em; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

.rail {
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; margin: 2px 8px 26px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(150deg, var(--text) 30%, var(--muted));
  flex: none;
}
.brand-name { font-size: 13px; line-height: 1.15; color: var(--muted); }
.brand-name b { color: var(--text); font-weight: 640; font-size: 15px; }

.rail-link {
  padding: 8px 10px; border-radius: 8px; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .12s, color .12s;
}
.rail-link:hover { background: var(--surface-2); color: var(--text); }
.rail-link.active { background: var(--surface); color: var(--text); font-weight: 560; box-shadow: var(--shadow); }

.badge {
  background: var(--accent); color: #fff; border-radius: 99px;
  font-size: 11.5px; font-weight: 640; padding: 1px 7px; min-width: 20px; text-align: center;
}

.rail-cta {
  margin-top: 14px; padding: 9px 12px; border-radius: 8px;
  border: 1px dashed var(--line-strong); color: var(--muted); text-align: center;
}
.rail-cta:hover { border-color: var(--text); color: var(--text); }
.rail-foot { margin-top: auto; font-size: 12px; color: var(--faint); line-height: 1.45; }

.view { padding: 34px 40px 90px; max-width: 1120px; }
.loading { color: var(--faint); padding: 40px 0; }

/* ---------- inbox ---------- */

.page-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; }

.section { margin-bottom: 34px; }
.section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); font-weight: 620; margin-bottom: 12px;
}

/* the one dominant block */
.needs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
.needs-card .q { font-size: 17px; font-weight: 560; letter-spacing: -.01em; }
.needs-card .meta { color: var(--muted); font-size: 13px; margin-top: 5px; }
.needs-card .actions { display: flex; gap: 8px; }

.calm-empty {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--muted); display: flex; align-items: center; gap: 12px;
}
.calm-empty b { color: var(--text); font-weight: 560; }
.tick { color: var(--ok); font-size: 17px; }

.rows { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.row {
  display: grid; grid-template-columns: 14px 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row .title { font-weight: 545; }
.row .line { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.row .when { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.row.sleeping .title, .row.sleeping .line { opacity: .72; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.running { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.dot.waiting_external { background: transparent; box-shadow: inset 0 0 0 1.5px var(--wait); }
.dot.needs_human { background: var(--accent); }
.dot.done { background: var(--ok); opacity: .45; }
.dot.failed, .dot.cancelled { background: var(--bad); }

@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.ghost-btn, .btn {
  border-radius: 8px; padding: 8px 14px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-weight: 520;
}
.ghost-btn:hover { border-color: var(--text); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { opacity: .88; }
.btn.small, .ghost-btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }

.collapsed-summary {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 14px 16px; color: var(--muted); display: flex; justify-content: space-between; align-items: center;
}
.collapsed-summary b { color: var(--text); }

/* ---------- case detail ---------- */

.case-head { margin-bottom: 22px; }
.case-head .crumbs { color: var(--faint); font-size: 13px; margin-bottom: 8px; }
.case-head .row2 { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

.pill {
  font-size: 12px; padding: 3px 9px; border-radius: 99px; font-weight: 560;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.pill.needs_human { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.waiting_external { background: var(--wait-soft); color: var(--wait); border-color: transparent; }
.pill.failed, .pill.cancelled { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

.decision {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 26px;
}
.decision-grid { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
.evidence { border-right: 1px solid var(--line); background: var(--surface-2); }
.pane-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint);
  font-weight: 620; padding: 14px 18px 8px;
}
.scan {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7; white-space: pre-wrap;
  padding: 0 18px 18px; margin: 0; color: var(--muted); max-height: 460px; overflow: auto;
}
.scan mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.scan mark.hot { background: var(--accent); color: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.proposal { padding: 4px 0 0; }

.otable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.otable th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); font-weight: 620; padding: 6px 10px; border-bottom: 1px solid var(--line);
}
.otable td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.otable td:first-child, .otable th:first-child { padding-left: 18px; }
.otable td:last-child, .otable th:last-child { padding-right: 18px; }
/* Alignment follows the column's type, not its position. A one-column table
   used to be right-aligned purely because its only column was also its last. */
.otable td.num, .otable th.num { text-align: right; }
.otable tr:hover td { background: var(--surface-2); }
.cellval { display: block; }
.cellval.verify { border-bottom: 1.5px dotted var(--accent); cursor: help; }
.cellval.unknown { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 4px; }
.tag {
  display: inline-block; font-size: 10.5px; margin-top: 3px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px;
}
.tag.changed { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.summary-strip {
  display: flex; gap: 22px; padding: 12px 18px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.summary-strip b { color: var(--text); }

.decision-foot {
  border-top: 1px solid var(--line); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface);
}
.decision-foot .what { color: var(--muted); font-size: 13px; }
.decision-foot .buttons { display: flex; gap: 8px; flex: none; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 16px 18px; }
.option {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--surface);
  text-align: left; display: block; width: 100%;
}
.option:hover { border-color: var(--text); }
.option.recommended { border-color: var(--accent); }
.option .lab { font-weight: 560; }
.option .con { color: var(--muted); font-size: 13px; margin-top: 4px; }
.option .rec { font-size: 11px; color: var(--accent); margin-top: 6px; }

.draft { padding: 16px 18px; }
.draft .to { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.draft textarea {
  width: 100%; min-height: 190px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); color: var(--text); padding: 12px; font: inherit; font-size: 13.5px; resize: vertical;
}
.fill-form { padding: 16px 18px; display: grid; gap: 10px; }
.fill-form label { font-size: 13px; color: var(--muted); }
.fill-form input {
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px;
  background: var(--surface); color: var(--text); font: inherit; width: 220px;
}

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--wait); border-radius: var(--radius);
  background: var(--surface); padding: 13px 16px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px;
}
.notice b { color: var(--text); font-weight: 560; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; }
.card + .card { margin-top: 12px; }

.result-bar {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid var(--ok);
  border-radius: var(--radius); background: var(--surface); padding: 14px 18px; margin-bottom: 22px;
}
.result-bar b { font-weight: 580; }
.result-bar .sep { color: var(--faint); }

/* ---------- timeline ---------- */

.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20, 17, 14, .32); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(620px, 94vw);
  background: var(--bg); border-left: 1px solid var(--line); overflow: auto; padding: 26px 28px 60px;
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .5);
}

.tl { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl li { position: relative; padding: 0 0 16px 30px; }
.tl .node {
  position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; font-size: 9px; color: var(--muted);
}
.tl .txt { font-size: 14px; }
.tl .when { color: var(--faint); font-size: 12px; margin-top: 2px; }

.tl li.replan { padding-left: 30px; }
.tl li.replan .node { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tl li.replan .txt {
  background: var(--accent-soft); border-radius: 8px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.tl li.replan .kicker {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); font-weight: 640; display: block; margin-bottom: 3px;
}
.tl li.human { margin-left: 22px; }
.tl li.human .node { border-color: var(--text); }
.tl li.human .txt { color: var(--muted); font-style: italic; }
.tl li.sleep .node, .tl li.wake .node { border-style: dashed; }
.tl li.close .node { border-color: var(--ok); color: var(--ok); }
.tl li.security .node { border-color: var(--accent); color: var(--accent); }

.cost-line { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }

/* ---------- missions & composer ---------- */

.composer { max-width: 720px; margin: 8vh auto 0; text-align: center; }
.composer h1 { font-size: 30px; margin-bottom: 22px; }
.composer textarea {
  width: 100%; min-height: 108px; padding: 16px 18px; font: inherit; font-size: 16.5px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  color: var(--text); resize: vertical; box-shadow: var(--shadow);
}
.composer textarea:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.examples { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0 20px; }
.example {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 99px; padding: 5px 13px; font-size: 13px;
}
.example:hover { border-color: var(--text); color: var(--text); }
.reassure { color: var(--faint); font-size: 12.5px; margin-top: 26px; }

.mcard { text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 24px 26px; margin-top: 24px; }
.mcard h2 { margin-bottom: 18px; }
.mblock { margin-bottom: 18px; }
.mblock .lab {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint);
  font-weight: 620; margin-bottom: 6px;
}
.mblock ol, .mblock ul { margin: 0; padding-left: 20px; }
.mblock li { margin: 3px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-size: 12.5px; color: var(--muted); }

.autonomy p { margin: 0 0 12px; font-size: 15px; }
.autonomy .fixed { color: var(--muted); }
.autonomy input {
  border: none; border-bottom: 1.5px dashed var(--line-strong); background: transparent;
  color: var(--text); font: inherit; font-weight: 580; width: 92px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.autonomy input:focus { outline: none; border-bottom-color: var(--text); }

.ladder { display: flex; gap: 6px; margin-top: 6px; }
.rung { height: 4px; flex: 1; border-radius: 99px; background: var(--line); }
.rung.on { background: var(--text); }

.grad {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.grad h2 { margin-bottom: 10px; }
.grad .why { color: var(--muted); margin-bottom: 14px; }
.pips { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 6px; }
.pip { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.pip.off { background: var(--line); }
.grad .count { font-size: 12.5px; color: var(--faint); margin-bottom: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; }
.stat .n { font-size: 26px; font-weight: 620; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; }
.tab { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; padding: 6px 12px; }
.tab.on { background: var(--surface); border-color: var(--line); color: var(--text); font-weight: 550; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 99px;
  font-size: 13.5px; z-index: 60; box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center;
    overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 18px 0 0; }
  .rail-cta, .rail-foot { display: none; }
  .view { padding: 22px 18px 80px; }
  .decision-grid { grid-template-columns: 1fr; }
  .evidence { border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-foot { position: sticky; bottom: 0; flex-direction: column; align-items: stretch; }
}

/* ---------- connections ---------- */

.field { margin-bottom: 12px; max-width: 560px; }
.field input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 9px 11px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
}
.field input:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.field .hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; line-height: 1.45; }
.field .hint b { color: var(--muted); font-weight: 560; }

.actions-row { display: flex; gap: 8px; margin-top: 12px; }

.ready-row {
  display: grid; grid-template-columns: 10px 160px 1fr; gap: 12px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.ready-row:last-child { border-bottom: 0; }
.ready-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ready-dot.ok { background: var(--ok); }
.ready-label { font-weight: 545; }
.ready-detail { color: var(--muted); }

.systems { display: grid; gap: 10px; margin: 12px 0; }

.system {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 16px 20px;
}
.system.on { border-left: 3px solid var(--ok); }

.sys-head { display: flex; align-items: center; gap: 10px; }
.sys-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.sys-dot.on { background: var(--ok); box-shadow: none; }
.sys-dot.pending { background: var(--wait); box-shadow: none; }
.sys-name { font-weight: 570; font-size: 15.5px; }
.sys-account { color: var(--muted); font-size: 13px; }
.sys-action { margin-left: auto; }
.sys-own, .sys-off { color: var(--faint); font-size: 12.5px; }

.sys-grants { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.sys-grants li { margin: 3px 0; }
.sys-note { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

@media (max-width: 700px) {
  .ready-row { grid-template-columns: 10px 1fr; }
  .ready-detail { grid-column: 2; }
  .sys-head { flex-wrap: wrap; }
  .sys-action { margin-left: 0; width: 100%; }
}

.hits { display: grid; gap: 2px; margin-top: 4px; }
.hit {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.hit:last-child { border-bottom: 0; }
.hit-name { font-weight: 550; }
.hit-desc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-on { color: var(--ok); font-size: 12.5px; }

@media (max-width: 700px) {
  .hit { grid-template-columns: 1fr auto; }
  .hit-desc { display: none; }
}

/* ---------- hand-entered case ---------- */

.handbox { margin-bottom: 18px; }
.handbox-open {
  border: 1px dashed var(--line-strong); background: transparent; color: var(--muted);
  border-radius: 8px; padding: 9px 14px; font-size: 13.5px;
}
.handbox-open:hover { border-color: var(--text); color: var(--text); }
.handbox-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.handbox-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; resize: vertical;
}
.handbox-form textarea:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.handbox-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.handbox-row select {
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px;
}
.handbox-form .hint { font-size: 12.5px; color: var(--faint); margin-top: 8px; }

.group-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); font-weight: 620; padding: 14px 18px 4px;
}
.factlist {
  display: grid; grid-template-columns: 170px 1fr; gap: 2px 14px;
  margin: 0; padding: 12px 18px; font-size: 13.5px;
}
.factlist dt { color: var(--muted); }
.factlist dd { margin: 0; }

/* Before sign-in there is nothing to navigate to. */
body.locked .rail-link,
body.locked .rail-cta,
body.locked .rail-foot { display: none; }
body.locked .composer { margin-top: 16vh; }

/* ---------- plan on the case ---------- */

.plan-steps { margin: 0; padding: 0; list-style: none; }
.ps { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; align-items: baseline; }
.ps-mark { width: 16px; flex: none; text-align: center; color: var(--faint); font-size: 12px; }
.ps.done .ps-mark { color: var(--ok); }
.ps.failed .ps-mark, .ps.failed .ps-err { color: var(--bad); }
.ps.blocked .ps-mark { color: var(--wait); }
.ps.running .ps-mark { color: var(--ok); }
.ps.pending, .ps.skipped { color: var(--muted); }
.ps.skipped { text-decoration: line-through; opacity: .6; }
.ps-err { color: var(--bad); font-size: 12.5px; }

.sys-sweep { font-size: 11.5px; color: var(--faint); }
.sys-sweep.bad { color: var(--accent); }

/* ---------- clarifying dialogue ---------- */

.clarify { text-align: left; }
.clarify-q { font-size: 16px; font-weight: 560; margin-bottom: 12px; }
.clarify input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 11px 13px; font: inherit; font-size: 15px; background: var(--surface);
  color: var(--text); margin-bottom: 10px;
}
.clarify input:focus { outline: 2px solid var(--text); outline-offset: -1px; }

.answered { margin-bottom: 16px; }
.answered-row {
  display: flex; gap: 10px; font-size: 13px; padding: 5px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.answered-q { color: var(--muted); flex: 1; }
.answered-a { font-weight: 560; }

/* ---------- case goal ---------- */

.case-goal {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 10px; font-size: 15.5px; font-weight: 545;
}
.case-goal-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); font-weight: 660; flex: none;
}

/* --- knowledge ------------------------------------------------------------ */
#noteText, #learnText {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; resize: vertical;
}
#noteText:focus, #learnText:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.note-card .note-text { font-size: 15px; line-height: 1.5; }
.note-card .note-meta {
  display: flex; gap: 8px; align-items: center; margin-top: 8px;
  font-size: 12.5px; color: var(--faint);
}
.note-card .note-meta a { color: var(--muted); text-decoration: underline; }
.learnbox { margin-top: 14px; }
.hint { font-size: 12.5px; color: var(--faint); line-height: 1.45; }

/* --- decline with a reason ------------------------------------------------ */
.decline-form {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 10px 18px 14px; border-top: 1px dashed var(--line);
}
.decline-form input {
  flex: 1; min-width: 240px; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px;
}
.decline-form input:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.linklike {
  background: none; border: none; padding: 0; color: var(--faint); font: inherit;
  font-size: 12.5px; text-decoration: underline; cursor: pointer;
}

/* --- original attachments in the approval card ---------------------------- */
.orig-att { margin-top: 12px; }
.orig-att-links { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.orig-att-links a {
  color: var(--text); font-size: 13.5px; text-decoration: underline;
  text-underline-offset: 3px;
}
.orig-att-none { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* --- resolution chips on done rows ---------------------------------------- */
.resolution { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.res-chip {
  font-size: 11.5px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
  white-space: nowrap;
}
