/* Owner-only presentation consolidation. Model, warnings and history remain intact. */
body .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
body:has(.dc-org)>header{padding:14px 0 10px;}
body:has(.dc-org)>header h1{font-size:26px;letter-spacing:-.03em;}
body .owner-account{display:block;margin:0 0 8px;text-align:right;font-size:13px;color:#647585;}
body .owner-account summary{cursor:pointer;}
body .owner-account button{margin:8px 0 0 8px;min-height:32px;font-size:13px;}
body:has(.dc-org) .dashboard-heading{display:none;}
body .dc-owner-summary{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #e3e9ed;}
body .dc-owner-counter{display:flex;gap:7px;align-items:baseline;font-size:14px;color:#5d6e7a;}
body .dc-owner-counter strong{font-size:23px;color:#1c3641;}
body .dc-owner-updated{margin-left:auto;font-size:13px;color:#667783;}
body .dc-owner-action{margin:10px 0;padding:12px 16px;background:#fff0d6;border-left:3px solid #b77918;color:#795013;font-weight:600;}
body .dc-controls{flex-wrap:wrap;margin-bottom:0;}
body .dc-controls button,body .dc-controls label,body .dc-controls select{font-size:14px;}
body .dc-controls .dc-refresh{margin-left:auto;}
body .dc-layers{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0;}
body .dc-layer strong{font-size:14px;}body .dc-layer>span:empty{display:none;}
body .dc-intake-actions button,body .dc-doc-open{font-size:13px;min-height:32px;}
body .dc-role h4{font-size:16px;line-height:1.3;}
body .dc-role-count,body .dc-assignment .dc-work,body .dc-assignment .dc-next,body .dc-row-meta,body .dc-context,body .dc-blocker,body .dc-project-stage{font-size:13px;line-height:1.4;}
body .dc-band,body .dc-elapsed,body .dc-structural-note,body .dc-legend,body .dc-selection{font-size:12px;}
body .dc-diagnostic-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #e3e9ed;color:#61727e;font-size:13px;}
body .dc-debug-toggle{margin-top:0;font-size:13px;min-height:32px;}
body .dc-cleanup-history{margin:12px 0;padding:12px;border:1px solid #e3e9ed;border-radius:8px;font-size:14px;}
body .dc-warning-coverage{font-size:14px;}
@media(max-width:700px){body .dc-owner-summary{gap:12px;}body .dc-owner-updated{margin-left:0;width:100%;}body .dc-controls label{width:100%;margin-left:0;}body .dc-controls .dc-refresh{margin-left:0;}}
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f4f6fa;
  color: #101828;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header, main { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 0 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 6vw, 42px); letter-spacing: -0.04em; }
h2 { font-size: 20px; }
.eyebrow { margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #475467; }
.badge { border-radius: 999px; padding: 8px 12px; background: #e4e7ec; color: #344054; font-size: 13px; white-space: nowrap; }
.badge.online { background: #dcfae6; color: #067647; }
.service-statuses { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.service-statuses .badge { padding: 6px 9px; font-size: 11px; }
.service-statuses [data-state="AUTHENTICATED"], .service-statuses [data-state="DATA_FRESH"] { background: #dcfae6; color: #067647; }
.service-statuses [data-state="DATA_LOADING"], .service-statuses [data-state="DATA_RETRYING"] { background: #fef0c7; color: #b54708; }
.service-statuses [data-state="AUTH_DEPENDENCY_UNAVAILABLE"], .service-statuses [data-state="AUTH_ERROR"],
.service-statuses [data-state="DATA_STALE"], .service-statuses [data-state="DATA_SOURCE_UNAVAILABLE"],
.service-statuses [data-state="DATA_ERROR"] { background: #fee4e2; color: #b42318; }
.card { margin-bottom: 18px; padding: 22px; border: 1px solid #e4e7ec; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(16, 24, 40, .06); }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 12px; padding: 0 14px; font: inherit; }
input { min-height: 48px; }
textarea { resize: vertical; padding-block: 12px; line-height: 1.45; }
input:focus, textarea:focus { outline: 3px solid #d1e9ff; border-color: #1570ef; }
button { min-height: 48px; border: 0; border-radius: 12px; padding: 0 18px; background: #1570ef; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.ghost { min-height: 38px; background: #f2f4f7; color: #344054; }
.danger { min-height: 38px; background: #fee4e2; color: #b42318; }
form > button { margin-top: 12px; }
.composer-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.composer-actions button { margin: 0; }
.microphone { min-height: 58px; background: #7f56d9; font-size: 17px; }
.microphone.listening { background: #d92d20; box-shadow: 0 0 0 5px #fee4e2; }
.diagnostics { margin-top: 18px; border-top: 1px solid #eaecf0; padding-top: 14px; color: #667085; }
.diagnostics summary { cursor: pointer; font-size: 13px; }
.diagnostics form { margin-top: 14px; color: #101828; }
#login-form label:not(:first-child) { margin-top: 14px; }
.task-entry { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.task-entry button { margin: 0; }
.context-row, .section-title, .task-meta { display: flex; align-items: center; gap: 10px; }
.context-row { margin-bottom: 18px; padding-inline: 4px; flex-wrap: wrap; }
.context-row strong { flex: 1; font-size: 13px; }
.section-title { justify-content: space-between; }
.handoff-actions, .clipboard-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.handoff-actions { justify-content: flex-end; }
.clipboard-panel { display: grid; gap: 10px; margin: 16px 0; border: 1px solid #b2ccff; border-radius: 14px; padding: 14px; background: #f8faff; }
.clipboard-panel[hidden] { display: none; }
.clipboard-panel h3, .clipboard-panel p { margin: 0; }
.clipboard-preview { max-height: 120px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.clipboard-actions button { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-top: 1px solid #eaecf0; }
li:first-child { border-top: 0; }
.task-title { margin-bottom: 6px; font-weight: 750; }
.task-meta { color: #667085; font-size: 12px; flex-wrap: wrap; }
.handoff-outcome { display: grid; gap: 2px; margin-top: 10px; border-radius: 10px; padding: 10px 12px; background: #f8fafc; font-size: 13px; }
.handoff-outcome strong { color: #101828; }
.handoff-outcome span { color: #475467; line-height: 1.4; }
.handoff-outcome.warning { background: #fffaeb; }
.handoff-outcome.success { background: #ecfdf3; }
.task-done .task-title { text-decoration: line-through; color: #667085; }
.muted { color: #667085; }
.small { font-size: 13px; margin-top: 16px; margin-bottom: 0; }
.small-inline { margin: 4px 0 0; font-size: 13px; }
.assistant-card { border-color: #b2ccff; }
.dashboard-card { border-color: #a9d18e; }
.dashboard-heading { align-items: flex-start; }
.dashboard-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dashboard-status-fresh { background: #dcfae6; color: #067647; }
.dashboard-status-stale { background: #fef0c7; color: #b54708; }
.dashboard-status-unavailable { background: #fee4e2; color: #b42318; }
.dashboard-mobile-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.dashboard-summary-panel { min-width: 0; border: 1px solid #eaecf0; border-radius: 14px; padding: 12px; }
.dashboard-summary-panel h3 { margin: 0 0 6px; color: #475467; font-size: 13px; }
.dashboard-summary-panel strong, .dashboard-summary-panel p { overflow-wrap: anywhere; }
.dashboard-tone-good { border-color: #abefc6; background: #ecfdf3; }
.dashboard-tone-waiting { border-color: #fedf89; background: #fffaeb; }
.dashboard-tone-problem { border-color: #fecdca; background: #fef3f2; }
.dashboard-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.dashboard-counts div { min-width: 0; border-radius: 12px; padding: 12px 8px; background: #f2f4f7; text-align: center; }
.dashboard-counts strong, .dashboard-counts span { display: block; }
.dashboard-counts strong { margin-bottom: 4px; font-size: 22px; }
.dashboard-counts span { color: #667085; font-size: 11px; overflow-wrap: anywhere; }
.dashboard-primary { border-radius: 14px; padding: 14px; background: #f8fafc; }
.dashboard-primary h3, .dashboard-state-panel h3 { margin: 0 0 8px; font-size: 15px; }
.dashboard-human-state { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.dashboard-state-panel { min-width: 0; border: 1px solid #eaecf0; border-radius: 14px; padding: 14px; }
.dashboard-state-panel p { margin: 7px 0 0; }
.dashboard-technical-details { margin-top: 8px; overflow-wrap: anywhere; }
.dashboard-technical-details summary { min-height: 32px; color: #475467; cursor: pointer; }
.dashboard-technical-details pre { max-height: 220px; overflow: auto; white-space: pre-wrap; font-size: 11px; }
.dashboard-list li { display: block; padding: 12px 0; }
.dashboard-list .task-title { overflow-wrap: anywhere; }
.dashboard-details { display: grid; gap: 8px; margin-top: 14px; }
.dashboard-details details { border-top: 1px solid #eaecf0; padding-top: 10px; }
.dashboard-details summary { min-height: 36px; font-weight: 750; cursor: pointer; }
.messages { display: grid; gap: 10px; max-height: 360px; margin: 16px 0; overflow-y: auto; }
.message { max-width: 88%; border-radius: 14px; padding: 12px 14px; background: #f2f4f7; }
.message-user { justify-self: end; background: #d1e9ff; }
.message-assistant { justify-self: start; }
.message-role { margin-bottom: 4px; color: #475467; font-size: 12px; font-weight: 800; }
.message-text { white-space: pre-wrap; line-height: 1.45; }
.success { color: #067647; }
.warning { color: #b54708; }
.notice { min-height: 24px; color: #b42318; font-size: 14px; }

@media (max-width: 560px) {
  header { align-items: flex-start; }
  .task-entry { grid-template-columns: 1fr; }
  .composer-actions { grid-template-columns: 1fr; }
  .dashboard-heading { display: grid; }
  .dashboard-actions { justify-content: flex-start; }
  .dashboard-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-mobile-summary { grid-template-columns: 1fr; }
  .dashboard-human-state { grid-template-columns: 1fr; }
  .handoff-actions, .clipboard-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .handoff-actions button, .clipboard-actions button { width: 100%; }
  .task-entry button { width: 100%; }
  .card { padding: 18px; border-radius: 16px; }
}

.organization-header,.organization-controls{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.organization-bands{display:grid;gap:.6rem;margin:1rem 0}.organization-band{border-left:3px solid #6e85aa;padding-left:.7rem}
.organization-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.6rem}
.organization-role{border:1px solid #5e6b8233;border-radius:12px;padding:.7rem;background:#f5f7fc;color:#18243b}
.organization-assignment{padding:.55rem 0;border-top:1px solid #5e6b8222}.organization-assignment p{margin:.25rem 0}
.organization-state{font-weight:700}.organization-state[data-state=STALE],.organization-state[data-state=UNKNOWN]{color:#946000}
.organization-state[data-state=RUNNING]{color:#117146}.organization-state[data-state=REVIEW]{color:#6843a7}
.organization-state[data-state=BLOCKED],.organization-state[data-state=PAUSED]{color:#a22}
.organization-role details{font-size:.8rem}.organization-role pre{white-space:pre-wrap;overflow-wrap:anywhere}
.organization-legend{font-size:.85rem;border:1px dashed #789;padding:.5rem}.organization-infra{font-size:.85rem}
.organization-overview{display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;background:#e8eef8;border-radius:12px;color:#192b49}
.organization-interface{margin:1rem 0;padding:1rem;border:1px solid #9cacc5;border-radius:12px;background:#eef4fb}
.organization-interface p{margin:.5rem 0 0;font-size:.85rem}
.organization-band{background:#f8fafc;border-radius:8px;padding:.6rem .8rem;border-left:4px solid #7899b8}
.organization-band[data-band=execution]{border-color:#39846b}.organization-band[data-band=knowledge]{border-color:#9278b8}
.organization-role-summary{font-size:.82rem;font-weight:700;color:#344054}
.organization-state{display:inline-block;border-radius:4px;padding:3px 7px;background:#e8edf3;font-size:.78rem}
.organization-state[data-state=RUNNING]{background:#dcf3e7}.organization-state[data-state=REVIEW]{background:#efe5fa}
.organization-state[data-state=BLOCKED],.organization-state[data-state=PAUSED]{background:#fee4e2}
.organization-state[data-state=WAITING],.organization-state[data-state=WAITING_MODEL_CAPACITY]{color:#704400;background:#fff0cc}
.organization-state[data-state=STALE],.organization-state[data-state=UNKNOWN]{color:#713f12;background:repeating-linear-gradient(135deg,#fff7df,#fff7df 6px,#f3e5be 6px,#f3e5be 8px)}
.organization-transfer{border-left:2px solid #7489aa;padding-left:.5rem;font-size:.83rem}
.organization-flows{padding:.5rem .8rem;border:1px solid #d0d9e6;border-radius:10px;margin:1rem 0}
.organization-flow{font-size:.84rem;overflow-wrap:anywhere}.organization-flow[data-edge-type=EXPECTED_NEXT]{border-bottom:1px dashed #91a0b6}
.organization-assignment p{font-size:.86rem;overflow-wrap:anywhere}.organization-role h4{margin:.25rem 0 .55rem}
@media(max-width:600px){.organization-cards{grid-template-columns:1fr}.organization-controls{align-items:stretch}.organization-controls label{width:100%}.organization-controls select{max-width:100%}}


/* Owner visual rework v2: presentation only; no source or authority mutation. */
body:has(.dc-org) > header, body:has(.dc-org) > main {width:calc(100% - 40px);max-width:1680px;}
body:has(.dc-org) > header {padding:16px 0 10px;}
.dc-org {--dc-line:#dce3e9;--dc-muted:#617080;--dc-green:#176b58;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#162b37;font-size:13px;line-height:1.3;width:100%;}
.dc-org h3,.dc-org h4,.dc-org p {margin:0;}
.dc-org button,.dc-org select {font:inherit;}
.dc-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:12px;}
.dc-title h3 {font-size:26px;letter-spacing:-.03em;}
.dc-eyebrow {display:block;font-size:10px;font-weight:800;letter-spacing:.14em;color:#718493;margin-bottom:3px;}
.dc-summary {display:flex;flex-direction:column;align-items:flex-end;gap:4px;}
.dc-summary small {font-size:11px;color:var(--dc-muted);}
.dc-pill {display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:750;border-radius:6px;background:#edf1f4;color:#64717d;padding:4px 6px;line-height:1.2;}
.dc-pill[data-state=RUNNING],.dc-pill[data-state=REVIEW],.dc-pill[data-state=CONFIRMED] {background:#e4f2ec;color:#14644d;}
.dc-pill[data-state=BLOCKED],.dc-pill[data-state=PAUSED] {background:#fff0e8;color:#a34920;}
.dc-pill[data-state^=WAITING] {background:#fff4d9;color:#8e650f;}
.dc-pill[data-state=TEST] {color:#725000;background:#fff0b3;border:1px solid #e2c668;font-size:12px;}
.dc-controls {display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--dc-line);padding-bottom:10px;margin-bottom:10px;}
.dc-controls button {min-height:32px;padding:0 12px;border-radius:7px;background:#eef2f4;color:#536575;font-size:12px;}
.dc-controls button[aria-pressed=true] {background:#1c3c45;color:#fff;}
.dc-controls label {display:flex;gap:7px;align-items:center;margin:0 0 0 16px;font-size:11px;color:var(--dc-muted);}
.dc-controls select {background:#fff;border:1px solid var(--dc-line);border-radius:6px;padding:6px 8px;max-width:300px;}
.dc-count {margin-left:auto;font-size:11px;color:var(--dc-muted);}
.dc-layers {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 17px;}
.dc-layer {display:flex;align-items:center;gap:9px;border-left:2px solid #afbdc8;padding:7px 10px;background:#f4f7f9;border-radius:0 6px 6px 0;}
.dc-layer strong {font-size:12px;white-space:nowrap;}
.dc-layer span {font-size:10px;color:var(--dc-muted);}
.dc-layer[data-layer=interface] {border-color:#679cb0;}
.dc-layer[data-layer=dispatcher] {border-color:#8e83ae;}
.dc-map {position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:42px 32px;padding:20px 12px 12px;isolation:isolate;}
.dc-links {position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;pointer-events:none;}
.dc-edge {stroke-linejoin:round;stroke-linecap:round;}
.dc-role {min-width:0;position:relative;border:1px solid #d4dfe6;border-radius:10px;background:#fff;box-shadow:0 3px 9px #122e3b08;padding:12px;}
.dc-role[data-state=RUNNING],.dc-role[data-state=REVIEW] {border-top:3px solid #39846d;padding-top:10px;background:#fbfefc;}
.dc-role[data-state^=WAITING] {border-top:3px solid #c89b3a;padding-top:10px;}
.dc-role[data-state=BLOCKED],.dc-role[data-state=PAUSED] {border-top:3px solid #c9784e;padding-top:10px;}
.dc-role[data-state=FREE] {background:#f8fafb;}
.dc-role[data-state=UNKNOWN],.dc-role[data-state=STALE] {border-style:dashed;}
.dc-role-top {display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:7px;}
.dc-band {font-size:9px;color:#798895;text-transform:uppercase;letter-spacing:.08em;}
.dc-role h4 {font-size:14px;line-height:1.2;min-height:34px;letter-spacing:-.01em;max-width:230px;}
.dc-role-count {font-size:10px;color:var(--dc-muted);margin-top:5px!important;}
.dc-assignment {font-size:11px;display:grid;gap:5px;margin-top:10px;padding-top:10px;border-top:1px solid #e4ece7;}
.dc-assignment + .dc-assignment {margin-top:9px;padding-top:9px;}
.dc-row-top {display:flex;justify-content:space-between;align-items:center;}
.dc-row-top .dc-pill {padding:2px 5px;font-size:9px;}
.dc-elapsed {font-size:11px;font-weight:800;color:#3a5d67;white-space:nowrap;}
.dc-work {font-weight:650;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.dc-row-meta {display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:9px;color:var(--dc-muted);}
.dc-context {font-size:10px;color:#607681;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dc-next {font-size:10px;color:#417161;border-left:2px solid #bbd7c9;padding-left:6px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.dc-blocker,.dc-hold {font-size:10px;color:#9b5c23;background:#fff6e8;padding:4px 6px;border-radius:4px;}
.dc-tech {font-size:10px;color:#70818c;margin-top:8px;}
.dc-tech summary {cursor:pointer;list-style:revert;}
.dc-tech pre {font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5f7;border-radius:5px;padding:9px;max-height:320px;overflow:auto;margin:7px 0 0;}
.dc-legend {display:flex;align-items:center;justify-content:center;gap:23px;padding:9px 0 11px;color:#6e7e8b;font-size:10px;flex-wrap:wrap;}
.dc-legend-edge {display:flex;align-items:center;gap:7px;}
.dc-legend-edge i {display:block;width:29px;border-top:2px solid #176b58;position:relative;}
.dc-legend-edge i:after {content:'';position:absolute;right:-2px;top:-4px;border-left:5px solid #176b58;border-top:3px solid transparent;border-bottom:3px solid transparent;}
.dc-legend-edge[data-edge-type=EXPECTED_NEXT] i {border-top-style:dashed;border-color:#c17c18;}
.dc-legend-edge[data-edge-type=EXPECTED_NEXT] i:after {border-left-color:#c17c18;}
.dc-legend-edge[data-edge-type=DEPENDS_ON] i {border-top-style:dotted;border-color:#8795a9;}
.dc-legend-edge[data-edge-type=DEPENDS_ON] i:after {border-left-color:#8795a9;}
.dc-legend-edge[data-edge-type=GOVERNANCE] i {border-top-style:double;border-top-width:3px;border-color:#7854a3;}
.dc-legend-edge[data-edge-type=GOVERNANCE] i:after {border-left-color:#7854a3;}
.dc-infra {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;border-top:1px solid var(--dc-line);padding:11px 0 0;}
.dc-health {display:flex;align-items:center;gap:7px;font-size:10px;}
.dc-health:before {content:'';width:5px;height:5px;border-radius:50%;background:#b6bec7;}
.dc-health[data-state=CONFIRMED]:before {background:#479879;}
.dc-health strong {font-size:10px;color:#536a76;}
.dc-health span {color:#84909b;font-size:9px;}
.dc-projects {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:12px 0;}
.dc-projects > .dc-muted {grid-column:1/-1;}
.dc-project {padding:15px;border:1px solid var(--dc-line);border-radius:10px;}
.dc-project h4 {font-size:16px;}
.dc-project-row {padding-top:10px;}
.dc-project-row > strong {font-size:12px;color:#648070;}
.dc-muted {font-size:11px;color:var(--dc-muted);}
.dc-unmapped {border:1px dashed #bd886d;border-radius:8px;padding:12px;margin:10px 0;}
@media(min-width:1100px){body:has(.dc-org) .dashboard-card {padding:18px;}}
@media(max-width:1099px){.dc-map {grid-template-columns:repeat(2,minmax(0,1fr));}.dc-layer {flex-direction:column;align-items:flex-start;gap:3px;}.dc-summary small {max-width:270px;text-align:right;}}
@media(max-width:600px){body:has(.dc-org)>header,body:has(.dc-org)>main {width:calc(100% - 20px);}.dc-heading{align-items:flex-start;}.dc-title h3{font-size:21px;}.dc-summary small{max-width:160px;}.dc-map{grid-template-columns:1fr;padding:16px 6px;gap:32px;}.dc-controls{flex-wrap:wrap;}.dc-controls label{margin-left:0;}.dc-count{margin-left:0;}.dc-layers{gap:6px;}.dc-layer{padding:6px;}.dc-layer strong{font-size:10px;}.dc-layer span{font-size:9px;}.dc-infra{grid-template-columns:repeat(2,minmax(0,1fr));}.dc-projects{grid-template-columns:1fr;}.dc-links{overflow:visible;}}


/* v3 navigation only: user/interface pair, routing is compact operational text. */
.dc-layers {display:flex;align-items:center;gap:12px;padding:8px 0 10px;border-bottom:1px solid #edf1f4;}
.dc-layer {display:flex;flex-direction:row;align-items:center;gap:7px;border:0;padding:0;background:transparent;border-radius:0;}
.dc-layer strong {font-size:11px;color:#4d6470;}
.dc-layer span {font-size:10px;color:#85939b;}
.dc-interaction-arrow {font-size:16px;color:#9aa8b0;}
.dc-routing-status {margin-left:auto;font-size:10px;color:#74878f;}
.dc-role[data-state=FREE] .dc-role-top {min-height:20px;}
@media(max-width:700px){.dc-layers{gap:8px;flex-wrap:wrap;}.dc-layer{flex-direction:column;align-items:flex-start;gap:2px;}.dc-routing-status{margin-left:auto;max-width:140px;text-align:right;}}


/* v4: existing intake affordances and compact contract-bound project stages. */
.dc-intake-actions{display:flex;gap:5px;margin-left:8px;flex-wrap:wrap;}
.dc-intake-actions button{min-height:28px;padding:4px 8px;border:1px solid #c8d9de;border-radius:6px;font-size:10px;background:#f2f7f8;color:#245562;}
.dc-intake-actions button:first-child{background:#285e67;border-color:#285e67;color:white;}
.dc-layer[data-layer=interface]{flex-wrap:wrap;}
.dc-project-stage{display:grid;grid-template-columns:minmax(100px,1fr) auto;gap:6px 12px;padding:12px 0;border-top:1px solid #e6ecef;font-size:11px;}
.dc-project-stage:first-of-type{margin-top:12px;}
.dc-project-stage .dc-stage-work,.dc-project-stage .dc-stage-executor,.dc-project-stage .dc-next,.dc-project-stage .dc-tech{grid-column:1/-1;}
.dc-stage-executor{font-size:10px;color:#7d8e97;}

/* v5: explanatory paths stay pale even under project selection; live proof is separate. */
.dc-background-links{z-index:-2;}
.dc-live-links{z-index:-1;}
.dc-structural-edge{opacity:.52;stroke-linecap:round;stroke-linejoin:round;}
.dc-structural-note{font-size:10px;color:#8b99a3;line-height:1.45;margin:4px 0!important;max-width:1050px;}
.dc-selection{display:flex;align-items:center;gap:12px;min-height:26px;margin:1px 0 7px;font-size:10px;color:#7b8e98;}
.dc-selection button,.dc-debug-toggle{min-height:24px;padding:3px 7px;border:1px solid #dbe3e7;border-radius:5px;font-size:10px;background:#f8fafb;color:#607680;}
.dc-selection button[hidden]{display:none;}
.dc-debug-toggle{margin-top:12px;}
.dc-assignment{gap:4px;margin-top:8px;padding:8px 5px 0;border-radius:4px;}
.dc-assignment + .dc-assignment{margin-top:7px;padding-top:8px;}
.dc-assignment .dc-next{font-size:9px;-webkit-line-clamp:1;}
.dc-assignment .dc-work{font-size:10px;}
[data-project-select=true]{cursor:pointer;}
[data-project-select=true]:focus-visible{outline:2px solid #367e91;outline-offset:3px;}
.dc-assignment[data-project-emphasis=selected],.dc-project-stage[data-project-emphasis=selected]{background:#edf7f7;box-shadow:inset 3px 0 #2f8794;}
.dc-assignment[data-project-emphasis=dimmed],.dc-project-stage[data-project-emphasis=dimmed],.dc-project[data-project-emphasis=dimmed]{opacity:.26;}
.dc-edge[data-project-emphasis=dimmed]{opacity:.13;}
.dc-edge[data-project-emphasis=selected]{stroke-width:3;}
.dc-project h4[data-project-emphasis=selected]{color:#176d80;}
.dc-projects{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.dc-project{padding:12px;}
.dc-project h4{font-size:14px;}
.dc-owner-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px;padding:8px 0;font-size:14px;line-height:1.35;}
.dc-owner-answer p{margin:3px 0!important;color:#536673;}
.dc-operational-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:6px 0;font-size:13px;}
.dc-operational-metadata>.dc-tech{margin:0;}
.dc-operational-metadata>.dc-tech[open]{flex-basis:100%;}
.dc-owner-inbox{padding:8px 0;}
.dc-owner-inbox>h3{font-size:18px;margin:4px 0;}
.dc-owner-inbox>p{font-size:13px;margin:4px 0 8px!important;}
.dc-owner-inbox>.dc-project{padding:10px 14px;border-left:3px solid #b77918;}
.dc-owner-inbox h4{font-size:16px;margin:0 0 4px;}
.dc-owner-inbox .dc-project>p{font-size:14px;line-height:1.35;margin:4px 0!important;}
.dc-owner-recommendation{color:#516741;}
.dc-owner-explanation{font-size:14px;margin-top:6px;}
.dc-owner-explanation>summary,.dc-tech>summary{cursor:pointer;min-height:24px;}
.dc-owner-options{padding-left:24px;line-height:1.45;}
.dc-owner-options li{padding:5px 0;}
.dc-owner-explanation p{margin:4px 0!important;}
.dc-work-owner{color:#536673;}
body .dc-assignment .dc-work{font-size:14px;font-weight:600;}
body .dc-assignment .dc-next,body .dc-assignment .dc-blocker,body .dc-work-owner{font-size:14px;line-height:1.4;display:block;-webkit-line-clamp:unset;}
body .dc-project-stage .dc-stage-work,body .dc-project-stage .dc-next{font-size:14px;line-height:1.4;display:block;-webkit-line-clamp:unset;}
body .dc-project-stage .dc-stage-executor,body .dc-row-meta,body .dc-context,body .dc-tech{font-size:12px;}
@media(max-width:700px){.dc-owner-answers{grid-template-columns:1fr;gap:6px;}.dc-operational-metadata{align-items:flex-start;}.dc-owner-inbox .dc-project{padding:10px;}}
.dc-project-summary{font-size:10px;color:#7d8d96;margin:6px 0!important;}
.dc-project-stage{padding:9px 4px;gap:4px 8px;font-size:10px;}
.dc-project-stage .dc-stage-work{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;}
@media(max-width:1050px){.dc-projects{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.dc-projects{grid-template-columns:1fr;}.dc-selection{align-items:flex-start;}.dc-map{gap:32px;}}
/* v6 original-document access, independent from knowledge freshness and role state. */
.dc-doc-open{margin:6px 0;padding:5px 10px;font-size:12px}.dc-infra-summary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #e1e6e9;margin-top:12px;padding:10px 0;color:#687782;font-size:12px}.dc-infra-summary small{font-size:11px}.dc-doc-panel{background:#fff;border:1px solid #d5e0e5;border-radius:12px;padding:20px;margin:18px auto;max-width:1400px;scroll-margin-top:15px}.dc-doc-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.dc-doc-heading h3{margin:0}.dc-doc-source{color:#206048;font-size:13px}.dc-doc-error{color:#a3312c}.dc-doc-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.dc-document{border:1px solid #e0e6eb;border-radius:8px;padding:14px}.dc-document h4{font-size:14px;margin:0 0 7px}.dc-doc-meta{font-size:12px;color:#435960}.dc-doc-history{font-size:11px;color:#6c7882;line-height:1.45}.dc-document button,.dc-doc-panel>div>button{font-size:12px;padding:6px 10px}@media(max-width:800px){.dc-doc-list{grid-template-columns:1fr}}


.dc-doc-panel{max-width:none}.dc-doc-toolbar{display:flex;justify-content:flex-end;margin:10px 0}
.dc-doc-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}
.dc-doc-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#526371}
.dc-doc-controls label:first-child{flex:1;min-width:220px}.dc-doc-controls input,.dc-doc-controls select{min-height:36px;padding:7px 10px;border:1px solid #cad5dc;border-radius:7px;background:#fff;color:#263d48}
.dc-doc-sort-note,.dc-doc-result-count{font-size:12px;color:#62737e;margin:8px 0}
.dc-doc-table-wrap{overflow-x:auto;border:1px solid #d8e1e6;border-radius:10px}.dc-doc-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;min-width:760px}
.dc-doc-table caption{text-align:left;padding:12px;font-weight:600;background:#f7f9fa}
.dc-doc-table th,.dc-doc-table td{padding:9px 12px;vertical-align:top;border-bottom:1px solid #e4eaee}
.dc-doc-table thead th{font-weight:600;color:#536874;font-size:12px}.dc-doc-table .dc-doc-group th{background:#edf3f5;color:#415d6a;font-size:12px;padding:8px 12px}
.dc-doc-title{font-weight:500;min-width:220px;max-width:480px}.dc-doc-table td:nth-child(3),.dc-doc-table td:nth-child(5){white-space:nowrap}
.dc-doc-current{color:#285f50;font-size:12px}.dc-doc-history{margin:4px 0 0;font-size:11px;color:#667783}.dc-doc-history summary{cursor:pointer}.dc-doc-history p{max-width:260px;overflow-wrap:anywhere;margin:5px 0}
.dc-doc-table button{white-space:nowrap;font-size:12px;padding:6px 9px}.dc-doc-empty{text-align:center;padding:24px!important;color:#62737e}
/* Scoped Owner Inbox: same Portal surface, no alternate owner decision store. */
.dc-owner-inbox { scroll-margin-top: 1rem; }
.dc-owner-inbox:focus,.dc-owner-decision:focus { outline: 2px solid #2563eb; outline-offset: 4px; }
.dc-owner-decision { padding: 1rem 1.15rem; border: 1px solid #cbd5e1; border-radius: .65rem; background: #fff; margin: .8rem 0; }
.dc-owner-decision h4 { margin: 0 0 .55rem; font-size: 1.1rem; }
.dc-owner-decision p { line-height: 1.5; margin: .45rem 0; }
.dc-owner-boundary { color: #475569; font-size: .875rem; }
.dc-owner-login { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; padding: .85rem; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: .5rem; margin: .8rem 0; }
.dc-owner-login > strong,.dc-owner-login > p { flex-basis: 100%; margin: 0; }
.dc-owner-login label { display: grid; gap: .3rem; font-size: .9rem; }
.dc-owner-login input { min-height: 2.25rem; padding: .3rem .5rem; font: inherit; max-width: 100%; box-sizing: border-box; }
.dc-owner-login button { min-height: 2.4rem; }
.dc-owner-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.dc-owner-actions button,.dc-owner-answer-form button { min-height: 2.5rem; padding: .5rem .85rem; font-size: .9rem; }
.dc-owner-actions button:first-child:not(.dc-owner-danger) { background: #1d4ed8; color: #fff; border: 1px solid #1d4ed8; }
.dc-owner-danger { background: #fff !important; color: #991b1b !important; border: 1px solid #b91c1c !important; }
.dc-owner-actions button:disabled { opacity: .55; cursor: not-allowed; }
.dc-owner-evidence,.dc-owner-decision > details { margin: .6rem 0; }
.dc-owner-evidence > summary { color: #1d4ed8; cursor: pointer; font-weight: 600; }
.dc-evidence-group { padding: .8rem; margin: .8rem 0; background: #f8fafc; border-left: 3px solid #94a3b8; }
.dc-evidence-group h5 { font-size: 1rem; margin: 0 0 .5rem; }
.dc-evidence-group dl { display: grid; grid-template-columns: minmax(140px,1fr) 3fr; gap: .45rem 1rem; font-size: .9rem; }
.dc-evidence-group dt { font-weight: 600; }
.dc-evidence-group dd { margin: 0; overflow-wrap: anywhere; }
.dc-evidence-subset { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .4rem 0; }
.dc-owner-answer-form { padding: .85rem; border: 1px solid #94a3b8; border-radius: .5rem; margin: .75rem 0; }
.dc-owner-answer-form label { display: grid; gap: .5rem; }
.dc-owner-answer-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .5rem; margin: .5rem 0; }
.dc-owner-answer-form button { margin-right: .5rem; }
.dc-owner-error { color: #991b1b; background: #fef2f2; padding: .55rem; }
.dc-owner-warning { color: #713f12; }
.dc-owner-saved { color: #14532d; background: #f0fdf4; padding: .7rem; border-left: 3px solid #15803d; }
.dc-owner-decision-history { margin-top: 1rem; }
.dc-owner-decision-history article { padding: .7rem 0; border-bottom: 1px solid #cbd5e1; }
.dc-owner-question-link { font-size: .875rem; }
@media (max-width: 600px) { .dc-evidence-group dl { grid-template-columns: 1fr; gap: .3rem; } .dc-evidence-group dd { margin-bottom: .5rem; } .dc-owner-actions { flex-direction: column; } }

/* Owner execution observability: compact by default, identifiers stay in diagnostics. */
.dc-execution-observation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px;padding:8px 9px;border-radius:7px;background:#f4f7f8;color:#526873;font-size:11px;line-height:1.35}
.dc-execution-observation strong{grid-column:1/-1;color:#235b4d;font-size:12px}
.dc-execution-observation[data-health=STALLED] strong,.dc-execution-observation[data-health=RECOVERING] strong{color:#a45b20}
.dc-execution-observation[data-health=OWNER_ACTION] strong{color:#8a4d19}
.dc-execution-system{margin-left:auto;font-size:12px}.dc-execution-system>summary{cursor:pointer;color:#355e69;font-weight:600}
.dc-execution-system-grid{display:grid;grid-template-columns:auto minmax(260px,1fr);gap:5px 12px;min-width:min(620px,80vw);padding:10px 0;color:#5e707a}
.dc-execution-system-grid strong{color:#314f59}
@media(max-width:600px){.dc-execution-observation{grid-template-columns:1fr}.dc-execution-system{margin-left:0;width:100%}.dc-execution-system-grid{grid-template-columns:1fr;min-width:0}}
