.live-form{display:grid;gap:15px}.live-form label{display:grid;gap:7px;font-size:13px;color:#456278}.live-form input,.live-form textarea{width:100%;padding:11px;border:1px solid #c1d0dc;border-radius:7px;background:#f8fafc;color:#294a63;font:inherit}.live-form textarea{min-height:170px}.live-form .check{display:flex;align-items:center;gap:8px}.live-form .check input{width:auto}.live-alert{background:#f8e8dd;color:#804630;padding:13px 17px;border-radius:8px;margin:12px 0;font-size:13px;line-height:1.6}.live-error{color:#922f25;white-space:pre-wrap}.live-list{display:grid;gap:12px}.live-job{border:0;border-left:3px solid #8ca9ba;border-radius:10px;background:white;padding:19px;text-align:left;display:flex;justify-content:space-between;gap:20px;align-items:center}.live-job h3{font-size:18px}.live-job small{color:#657f92;display:block;margin-top:7px}.live-job[data-status=review]{border-left-color:#b83d2d}.live-job[data-status=approved]{border-left-color:#4d805d}.live-job[data-status=failed]{border-left-color:#ad332a}.live-field{margin:12px 0;padding-bottom:12px;border-bottom:1px solid #dee6eb}.live-field small{color:#667e90;display:block}.live-field strong{display:block;font-size:14px;font-weight:500;margin:4px 0}.live-field blockquote{font-size:12px;color:#587789;margin:8px 0 0;padding-left:12px;border-left:2px solid #b8ccd8;white-space:pre-wrap}.live-source{white-space:pre-wrap;word-break:break-word;font-size:13px;color:#476477;background:#f2f6f9;padding:13px;border-radius:7px;max-height:240px;overflow:auto}.live-meta{font-size:12px;color:#657e90;line-height:1.8}.live-auth{max-width:460px;margin:30px auto}.live-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.live-toolbar select{padding:10px;border:1px solid #bacddc;border-radius:7px;background:white}.live-toolbar .search{background:white;padding:11px;border-radius:7px;flex:1;width:auto;min-width:180px}.live-state{font-size:12px;color:#5c7384}.live-questions{padding-left:20px;color:#4b687e;font-size:13px;line-height:1.8}.live-result-actions{display:flex;flex-wrap:wrap;gap:9px}.live-test{display:inline-block;background:#e9edf2;color:#536d83;padding:2px 6px;font-size:10px;border-radius:3px;margin-left:8px}.live-detail .case-section label{display:block;margin-top:10px}.live-detail .reason{background:white;border:1px solid #b4c9d9}.live-detail .case-section{min-width:0}.live-detail a{color:#326d92;word-break:break-all}.live-empty{padding:40px 20px;text-align:center;background:white;border-radius:12px;color:#607789}.live-empty h2{margin-bottom:12px}.live-empty .btn{margin-top:15px}button:disabled{opacity:.55;cursor:wait}.live-events{padding:0;list-style:none;font-size:12px;color:#5c778b}.live-events li{padding:10px 0;border-bottom:1px solid #e0e8ee}.live-events time{display:block;color:#8397a5;font-size:10px}.live-state-panel{margin-bottom:22px}.live-form .live-error:empty{display:none}.live-detail textarea{font-size:13px;color:#294a63}.live-heading .subtitle{max-width:70ch}@media(max-width:700px){.live-job{padding:16px;gap:12px;align-items:start}.live-job h3{font-size:16px}.live-job .badge{font-size:9px}.live-toolbar{gap:8px}.live-toolbar .search{width:100%}.live-result-actions .btn{font-size:11px}.live-form{gap:13px}.live-detail .case-layout{display:block}.live-detail .case-column{margin-bottom:15px}}
/* Live workspace sections retain the existing steel/graphite visual system. */
.workspace-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#c5d0d6;border:1px solid #c5d0d6;border-radius:10px;overflow:hidden;margin-bottom:16px}.workspace-stats>div{background:#f6f8f9;padding:22px;display:grid;gap:8px}.workspace-stats strong{font-size:32px;font-weight:500;color:#243b49}.workspace-stats span{font-size:12px;color:#566d7b}.workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.capability{padding:24px;margin-bottom:18px;min-width:0}.workspace-grid .capability{margin-bottom:0}.capability h2,.capability h3{margin:12px 0;font-size:19px}.capability .note{line-height:1.8;margin:12px 0}.capability .actions{flex-wrap:wrap}.result-rows>div{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #dae1e5;font-size:13px}.result-rows strong{text-align:right;overflow-wrap:anywhere}.source-reference{display:grid;gap:8px;background:transparent;border:0;border-bottom:1px solid #dae1e5;width:100%;padding:15px 0;text-align:left;color:#294a63;overflow-wrap:anywhere}.source-reference span{font-size:12px}.nav-item .count{font-size:10px}.rail{overflow-y:auto}.live-empty h2{font-size:20px}@media(max-width:700px){.workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-stats>div{padding:16px}.workspace-grid{grid-template-columns:1fr}.capability{padding:18px}.rail{overflow:visible}#navigation{overflow-x:auto;min-width:0;flex:1}.result-rows>div{font-size:12px}}
/* Agent control: status lines, live run log, numbered sections. */
.agent-status{padding:24px;margin-bottom:18px}.status-lines{display:grid;gap:1px;background:#d3dbe0;border:1px solid #d3dbe0;border-radius:10px;overflow:hidden}.status-line{background:#f7f9fa;padding:14px 18px 14px 22px;position:relative}.status-line::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#b7c3cb}.status-line.ok::before{background:#4d805d}.status-line.bad::before{background:#b93227}.status-line.busy::before{background:#263c4a;animation:pulse 1.4s ease-in-out infinite}.status-line small{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#6a7f8d}.status-line p{margin:5px 0 0;font-size:14px;line-height:1.55;color:#22323d;overflow-wrap:anywhere}@keyframes pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.status-line.busy::before{animation:none}}
.agent-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0 4px}.btn.big{padding:13px 22px;font-size:14px}.schedule-toggle{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-left:auto;font-size:13px;color:#3d5463}
.panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}.run-log-panel{padding:22px 24px;margin-bottom:18px}.run-log-panel h2{font-size:18px;margin:0}.run-log{list-style:none;padding:0;margin:14px 0 0;max-height:320px;overflow:auto;font-size:13px;border-top:1px solid #dde4e8}.run-log li{display:flex;gap:12px;padding:8px 0 8px 10px;border-bottom:1px solid #edf1f3;border-left:3px solid transparent;color:#34495a;line-height:1.5}.run-log time{flex:none;color:#7b8e9b;font-variant-numeric:tabular-nums;font-size:12px;padding-top:1px}.run-log li.found{border-left-color:#4d805d;color:#1f3d2a;background:#f1f7f2}.run-log li.warn{border-left-color:#c58a2b}.run-log li.error{border-left-color:#b93227;color:#7c2a22;background:#fbf1ef}
.agent-sections fieldset{border:0;padding:0;margin:0;min-width:0}.agent-sections .capability{position:relative}.section-index{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#263c4a;color:#fff;font-size:12px;font-weight:600}.agent-sections h2{display:inline-block;margin-left:8px;vertical-align:middle}
.source-switches{display:grid;gap:8px;margin:14px 0 18px}.source-switch{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid #d3dce2;border-radius:8px;background:#fafbfc;cursor:pointer}.source-switch input{margin-top:3px;width:18px;height:18px;accent-color:#b93227;flex:none}.source-switch small{display:block;color:#62788a;font-size:12px;margin-top:4px;line-height:1.5}.source-switch em{font-style:normal;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#8a6d5f;background:#f3e9e3;padding:2px 6px;border-radius:3px;margin-left:6px}.source-switch.off{cursor:default;opacity:.72}.rules{margin:16px 0 0;padding-left:18px;font-size:13px;color:#3d5463;line-height:1.8}
.technical summary{cursor:pointer;font-size:16px;font-weight:600;color:#263c4a}.technical h3{font-size:15px;margin-top:18px}.save-bar{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:rgba(232,235,237,.94);backdrop-filter:blur(6px);padding:12px 16px;border-radius:10px;border:1px solid #cfd8de;margin-bottom:10px}
.run-row{border-bottom:1px solid #dde4e8;padding:10px 0}.run-row summary{cursor:pointer;display:flex;gap:12px;flex-wrap:wrap;align-items:baseline;font-size:13px}.run-row summary .live-meta{flex-basis:100%;line-height:1.5}
.excluded-list{display:grid;font-size:13px;max-height:520px;overflow:auto}.excluded-list>div{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr);gap:12px;padding:9px 0;border-bottom:1px solid #e3e9ec}.excluded-list a{color:#294a63;overflow-wrap:anywhere}.excluded-list span{color:#62788a}.excluded-list em{font-style:normal;color:#7a5244}.source-link{display:inline-block;margin-top:12px;color:#326d92;font-size:13px}
.fit-line{display:block;margin-top:8px;line-height:1.5;color:#3d5463}.fit-line .badge{margin-right:6px}.origin-box{background:#f1f5f7;border-radius:8px;padding:14px 16px}.origin-box p{margin:6px 0;font-size:13px}
@media(max-width:700px){.agent-status,.run-log-panel{padding:16px}.schedule-toggle{margin-left:0}.btn.big{flex:1 1 100%}.excluded-list>div{grid-template-columns:1fr;gap:3px}.run-log li{flex-direction:column;gap:2px}}
/* Agent roster: shared resources strip, one status board per agent. */
.shared-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#d3dbe0;padding:0;overflow:hidden;margin-bottom:18px}.shared-strip>div{background:#f7f9fa;padding:14px 18px;display:grid;gap:5px;min-width:0}.shared-strip small,.agent-board dt{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#6a7f8d}.shared-strip strong{font-size:14px;font-weight:600;color:#22323d;overflow-wrap:anywhere}.shared-strip .ok{color:#3c6e4b}.shared-strip .bad{color:#b93227}
.agent-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:12px}.agent-card{background:#fff;border-radius:12px;padding:22px 24px;border-top:4px solid #263c4a;display:flex;flex-direction:column;gap:12px;min-width:0}.agent-card.active{grid-column:1/-1}.agent-card.planned{background:#f4f6f7;border-top-color:#b7c3cb}.agent-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.agent-card h2{margin:0;font-size:20px}.agent-role{margin:0;color:#3d5463;font-size:14px;line-height:1.6}.agent-card.planned .agent-role{color:#51687a}
.agent-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dde4e8;border:1px solid #dde4e8;border-radius:10px;overflow:hidden;margin:4px 0}.agent-board>div{background:#f9fafb;padding:13px 16px;border-left:3px solid transparent;min-width:0}.agent-board>div.ok{border-left-color:#4d805d}.agent-board>div.bad{border-left-color:#b93227}.agent-board>div.busy{border-left-color:#263c4a}.agent-board dd{margin:6px 0 0;font-size:14px;color:#22323d;overflow-wrap:anywhere}.agent-board dd small{display:block;color:#62788a;font-size:12px;margin-top:4px;line-height:1.5}
.agent-card-actions{display:flex;gap:10px;flex-wrap:wrap}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:6px;animation:pulse 1.4s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.live-dot{animation:none}}
.back-link{background:none;border:0;padding:0;margin-bottom:10px;color:#326d92;font-size:13px;cursor:pointer}
@media(max-width:900px){.agent-board{grid-template-columns:repeat(2,minmax(0,1fr))}.shared-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.agent-roster{grid-template-columns:1fr}.agent-board{grid-template-columns:1fr}.agent-card{padding:18px}.agent-card-actions .btn{flex:1 1 auto}}
/* The theme darkens the first agent card; the roster keeps that for the live agent but not the demo's paragraph spacing. */
.agent-roster .agent-card p{margin:0;line-height:1.6}.agent-roster .agent-card.planned{gap:10px}
/* Procurement details and official contact in the case file. */
.origin-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}.origin-facts>div{background:#fff;border-radius:7px;padding:10px 12px;display:grid;gap:3px}.origin-facts small,.contact-card small{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#6a7f8d}.origin-facts strong{font-size:14px;color:#22323d}
.contact-card{display:grid;gap:4px;background:#fff;border-left:3px solid #4d805d;border-radius:7px;padding:12px 14px;margin-top:12px;font-size:13px}.contact-card strong{color:#22323d}.contact-card a{color:#326d92}
/* Categories: one colour each, used identically on every page. */
.cat-residential{--cat-bg:#e3efe6;--cat-fg:#2f5e3d;--cat-line:#4d805d}.cat-commercial{--cat-bg:#e2ecf4;--cat-fg:#28577a;--cat-line:#326d92}.cat-public{--cat-bg:#f4ead8;--cat-fg:#7a5314;--cat-line:#b07d24}.cat-none{--cat-bg:#eceff1;--cat-fg:#5b6d79;--cat-line:#9aa9b3}
.cat-chip{display:inline-block;background:var(--cat-bg);color:var(--cat-fg);font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:3px 7px;border-radius:4px;vertical-align:middle;white-space:nowrap}
.cat-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.cat-tab{display:inline-flex;align-items:center;gap:8px;border:1px solid #cfd8de;background:#fff;color:#34495a;border-radius:8px;padding:8px 12px;font-size:13px;cursor:pointer}.cat-tab span{background:#eef2f4;border-radius:10px;padding:1px 7px;font-size:11px;color:#51687a}.cat-tab.active{border-color:var(--cat-line,#263c4a);box-shadow:inset 0 -3px 0 var(--cat-line,#263c4a);font-weight:600}.cat-tab.active span{background:var(--cat-bg,#263c4a);color:var(--cat-fg,#fff)}
.cat-switch{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 4px}.cat-switch small{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#6a7f8d;margin-right:4px}.cat-option{border:1px solid #cfd8de;background:#fff;color:#34495a;border-radius:6px;padding:6px 10px;font-size:12px;cursor:pointer}.cat-option.active{background:var(--cat-bg);color:var(--cat-fg);border-color:var(--cat-line);font-weight:600}
.cat-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px}.cat-card{display:grid;gap:6px;justify-items:start;text-align:left;background:#fff;border:0;border-left:4px solid var(--cat-line);border-radius:10px;padding:16px 18px;cursor:pointer;color:#22323d}.cat-card strong{font-size:30px;font-weight:500}.cat-card small{font-size:12px;color:#51687a}.cat-card em{font-style:normal;font-size:11px;color:#7b8e9b}.cat-card:hover{box-shadow:0 2px 10px #26394a14}
.cat-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0 2px}.cat-table{width:100%;border-collapse:collapse;font-size:13px}.cat-table th{text-align:left;font-size:11px;color:#62788a;padding:10px 8px;background:#f5f7f8}.cat-table td{padding:12px 8px;border-bottom:1px solid #e3e9ec}
.live-job h3 .cat-chip{margin-right:6px;position:relative;top:-2px}
@media(max-width:700px){.cat-board{grid-template-columns:1fr}.cat-tab{padding:7px 10px;font-size:12px}}
/* Follow-up: the stage path, form and history in the case file; stage badges in lists. */
.followup{border-top:4px solid #263c4a}.track-path{list-style:none;display:flex;flex-wrap:wrap;gap:4px;padding:0;margin:10px 0 14px;counter-reset:step}.track-path li{counter-increment:step;display:flex;align-items:center;gap:6px;font-size:12px;color:#62788a;background:#f1f4f6;border-radius:14px;padding:5px 10px 5px 6px}.track-path li::before{content:counter(step);display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#d5dde2;color:#34495a;font-size:10px;font-weight:600}.track-path li.done{color:#2f5e3d;background:#e8f1ea}.track-path li.done::before{content:"✓";background:#4d805d;color:#fff}.track-path li.current{color:#fff;background:#263c4a;font-weight:600}.track-path li.current::before{background:#fff;color:#263c4a}.track-path li.won.current{background:#4d805d}
.stage-form{gap:10px;background:#f7f9fa;border-radius:8px;padding:12px}.stage-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.stage-form select,.stage-form input{width:100%;padding:9px;border:1px solid #c1d0dc;border-radius:7px;background:#fff;font:inherit}.stage-form label[hidden]{display:none!important}
.track-history{margin-top:12px}.track-history strong{color:#22323d}.stage-badge{white-space:nowrap}
.funnel td strong{font-size:15px}.funnel th{white-space:normal;min-width:70px}
/* Learning loop: corrections in the case file, test form and comparison on the agent page. */
.correction{border-top:4px solid #b07d24}.correction.saved{border-top-color:#4d805d}.correction .live-form{gap:10px}.correction input,.correction select,.eval-form input,.eval-form select{width:100%;padding:9px;border:1px solid #c1d0dc;border-radius:7px;background:#fff;font:inherit}
.quality .result-rows{margin:10px 0}.eval-form{background:#f7f9fa;border-radius:10px;padding:16px;margin-top:16px}.eval-form h3{margin:0 0 4px;font-size:16px}
.eval-result{margin-top:18px}.eval-result h3{font-size:16px}.eval-table td:first-child{color:#34495a}.delta-up{color:#2f7a45;font-weight:600;font-size:12px}.delta-down{color:#b93227;font-weight:600;font-size:12px}
.eval-details{margin:10px 0}.eval-details summary{cursor:pointer;color:#326d92;font-size:13px}.example-tag{background:#e8f1ea;color:#2f5e3d}
.quality h2{display:inline-block;margin-left:8px;vertical-align:middle}
.prospect-tag{background:#e2ecf4;color:#28577a}
/* Vision overlap check. */
.overlap{border-top:4px solid #9aa9b3}.overlap.match{border-top-color:#b93227;background:#fdf6f4}.overlap.none{border-top-color:#4d805d}.overlap-list{margin:8px 0;padding-left:18px;font-size:13px;line-height:1.7}.overlap-tag{background:#f8e1dc;color:#8a2c22}
