.workbench { padding-block: 44px; }
.workbench-intro { max-width: 780px; margin-bottom: 28px; }
.workbench-intro h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 58px); line-height: 1.1; margin: 12px 0 20px; }
.workbench-intro p { margin-bottom: 10px; }
.wb-caption { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.wb-launch { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.wb-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.wb-panel h3 { font-family: var(--font-display); font-size: 25px; font-weight: 500; margin: 0 0 12px; }
.workbench summary { cursor: pointer; font-weight: 600; padding-block: 8px; }
.workbench form { margin-block: 14px; }
.workbench label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.workbench input, .workbench select, .workbench textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; padding: 10px 12px; font: inherit; font-size: 14px; }
.workbench textarea { resize: vertical; min-height: 60px; }
.workbench select { text-overflow: ellipsis; }
.workbench form > button { margin-top: 14px; }
.wb-inline { display: flex; gap: 8px; align-items: center; }
.wb-inline input { min-width: 0; }
.workbench .button { font-size: 13px; white-space: nowrap; cursor: pointer; min-height: 40px; }
.workbench button:disabled { opacity: .5; cursor: wait; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.wb-chips li { background: var(--paper-2); border-radius: 8px; padding: 5px 9px; font-size: 13px; }
.wb-chips button { border: 0; background: transparent; cursor: pointer; margin-left: 6px; }
.wb-choice, .wb-catalog-row { display: block; width: 100%; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; overflow-wrap: anywhere; }
.wb-choice strong, .wb-catalog-row strong { display: block; line-height: 1.5; }
.wb-catalog-row:hover, .wb-choice:hover { color: var(--forest-2); }
.wb-more { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; margin-top: 14px; }
.wb-investigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 42px 0 20px; }
.wb-investigation h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; font-family: var(--font-display); font-weight: 500; margin: 10px 0; overflow-wrap: anywhere; }
.wb-coverage { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wb-coverage div { padding: 16px; background: var(--card); border-right: 1px solid var(--line); }
.wb-coverage div:last-child { border: 0; }
.wb-coverage dt { font-size: 12px; color: var(--ink-2); }
.wb-coverage dd { font-size: 25px; font-weight: 600; margin: 0; }
.wb-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 20px; align-items: start; margin-top: 24px; }
.wb-workspace { display: grid; gap: 20px; min-width: 0; }
.wb-node { padding-block: 14px; border-bottom: 1px solid var(--line); }
.wb-node strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.wb-node .wb-actions { margin-top: 9px; gap: 5px; }
.wb-node .button { padding: 6px 9px; min-height: 32px; font-size: 12px; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.wb-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.wb-connection { border-top: 1px solid var(--line); padding: 18px 0; font-size: 14px; overflow-wrap: anywhere; }
.wb-connection h4 { margin: 8px 0; font-size: 17px; line-height: 1.5; }
.wb-connection .wb-neighbor { display: inline-block; margin: 4px 5px 4px 0; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; background: var(--paper); cursor: pointer; font-size: 12px; }
.wb-connection .evidence-body { font-size: 13px; }
.wb-json { white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 550px; padding: 16px; background: var(--paper); border-radius: 9px; font-size: 12px; line-height: 1.55; font-family: var(--font-mono); }
.wb-empty { padding-block: 18px; color: var(--ink-2); font-size: 14px; }
#message, .wb-warning { padding: 14px 18px; background: var(--paper-2); border-radius: 10px; margin-bottom: 18px; font-size: 14px; overflow-wrap: anywhere; }
#message[data-error="true"], .wb-warning { background: var(--amber-soft); border: 1px solid var(--amber); }
.wb-footer { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--ink-2); }
.wb-footer a { text-decoration: underline; }
.wb-panel a.wb-source { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wb-map-panel { margin-top: 24px; }
.wb-map-panel .eyebrow { margin: 0 0 8px; }
.wb-view-switch { margin: 0; }
.wb-map-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; }
.wb-map-controls label { margin: 8px 0; font-size: 12px; }
.wb-map-controls select { display: block; margin-top: 6px; padding: 8px; width: auto; max-width: 100%; }
.wb-map-controls .wb-map-check { display: flex; align-items: center; gap: 8px; min-height: 38px; font-weight: 500; }
.wb-map-check input { width: 16px; height: 16px; accent-color: var(--forest); padding: 0; }
.wb-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wb-map-toolbar .wb-actions { margin: 8px 0; }
.wb-map-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
#mechanism-map { display: block; width: 100%; height: 560px; background: radial-gradient(circle, #d8dfd1 1px, transparent 1px) 0 0 / 18px 18px, #f4f6ee; touch-action: none; cursor: grab; user-select: none; }
#mechanism-map:active { cursor: grabbing; }
#map-inspector { padding: 18px; background: var(--card); border-left: 1px solid var(--line); max-height: 560px; overflow-y: auto; overflow-wrap: anywhere; }
#map-inspector h4 { font-size: 20px; font-family: var(--font-display); font-weight: 500; margin: 8px 0; }
#map-inspector .button { white-space: normal; }
#map-inspector .wb-catalog-row { font-size: 12px; }
.wb-map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 0; }
.map-edge { fill: none; stroke: var(--forest); stroke-width: 1.7; }
.map-edge-unsigned { stroke: var(--sky); stroke-dasharray: 5 4; stroke-width: 1.3; }
.map-edge-hit { fill: none; stroke: transparent; stroke-width: 18; cursor: pointer; }
.map-edge-label { font-size: 10px; font-family: var(--font-body); fill: var(--forest); paint-order: stroke; stroke: #f4f6ee; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.map-edges g { cursor: pointer; }
.map-edges g:hover .map-edge, .map-edges g:focus .map-edge { stroke: var(--amber); stroke-width: 3; }
.map-node { cursor: pointer; }
.map-node rect { fill: var(--card); stroke: #adc1af; stroke-width: 1.5; }
.map-hub rect { fill: #eaf0f3; stroke: #96adba; stroke-dasharray: 4 3; }
.map-focused rect { fill: var(--forest); stroke: var(--forest); stroke-width: 3; }
.map-node:hover rect, .map-node:focus rect { stroke: var(--amber); stroke-width: 3; }
.map-node text { fill: var(--ink); pointer-events: none; font-family: var(--font-body); }
.map-node-name { font-size: 12px; font-weight: 600; }
.map-node-status { font-size: 10px; fill: var(--ink-2) !important; }
.map-focused text { fill: white !important; }
.map-empty { fill: var(--ink-2); font-size: 14px; }
.wb-connection.map-highlight { background: var(--amber-soft); padding-inline: 12px; border-radius: 8px; }
[hidden] { display: none !important; }
@media (max-width: 960px) { .wb-map-grid { grid-template-columns: minmax(0,1fr); } #map-inspector { border-left: 0; border-top: 1px solid var(--line); max-height: 320px; } #mechanism-map { height: 480px; } }
@media (max-width: 720px) { #mechanism-map { height: 400px; } .wb-map-controls label:first-child { width: 100%; } .wb-map-controls select { width: 100%; } .wb-map-toolbar .wb-caption { font-size: 11px; } }
@media (max-width: 960px) { .wb-layout { grid-template-columns: 250px minmax(0,1fr); } .wb-section-head { flex-wrap: wrap; } }
@media (max-width: 720px) { .wb-launch, .wb-layout { grid-template-columns: minmax(0,1fr); } .wb-coverage { grid-template-columns: 1fr 1fr; } .wb-investigation { align-items: start; flex-direction: column; } .wb-panel { padding: 16px; } .wb-frontier { max-height: 650px; overflow-y: auto; } .wb-inline { flex-wrap: wrap; } .wb-inline input { flex: 1 1 160px; } }
