.allocation-toolbar .resource-toolbar-main{align-items:end}.allocation-toolbar label{display:grid;gap:5px;font-size:11px;font-weight:600;color:var(--muted)}.allocation-toolbar input,.allocation-toolbar select{min-height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 11px;color:var(--ink);max-width:280px}.allocation-help{margin:10px 0}.allocation-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:12px 0}.allocation-scroll{position:relative;isolation:isolate;overflow:auto;max-height:calc(100dvh - 325px);min-height:240px;border:1px solid var(--line);border-radius:12px;background:#fff;scrollbar-gutter:stable}.allocation-matrix{table-layout:fixed;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.allocation-matrix th,.allocation-matrix td{width:210px;min-width:210px;max-width:210px;vertical-align:top;text-align:left;padding:12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.allocation-matrix thead th{position:sticky;top:0;z-index:4;background:#f3f4f9;height:84px;vertical-align:middle}.allocation-matrix .allocation-component-heading{position:sticky;left:0;width:280px;min-width:280px;max-width:280px;z-index:3;background:#f9f9fc}.allocation-matrix .allocation-unassigned{position:sticky;left:280px;width:210px;min-width:210px;z-index:3;background:#faf9f5}.allocation-matrix thead .allocation-component-heading,.allocation-matrix thead .allocation-unassigned{z-index:6}.allocation-component-title,.allocation-resource-title{display:flex;align-items:center;gap:9px;line-height:1.4;text-align:left;white-space:normal}.allocation-component-title .geometry-icon,.allocation-resource-title .geometry-icon{width:28px;height:28px;flex:none}.allocation-matrix small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px;line-height:1.45;overflow-wrap:anywhere}.allocation-source-label{max-width:250px}.allocation-chip{display:flex;align-items:center;gap:7px;background:var(--purple-light);border:1px solid #d8cff4;border-radius:9px;min-height:42px;padding:9px 8px;line-height:1.4;font-weight:550;overflow-wrap:anywhere}.allocation-chip .geometry-icon{width:22px;height:22px;flex:none}.allocation-chip>span{min-width:0;flex:1}.allocation-chip[draggable=true]{cursor:grab}.allocation-remove{border:0;background:transparent;color:var(--muted);border-radius:5px;font-size:18px;line-height:1;min-width:24px;min-height:24px;padding:2px}.allocation-remove:hover{color:var(--red);background:#fff}.allocation-add{display:block;width:100%;min-height:42px;border:1px dashed #d7dbe7;border-radius:9px;background:#fbfbfd;color:var(--purple);font-size:20px}.allocation-add:hover{background:var(--purple-light);border-color:var(--purple)}.allocation-empty{color:#c3c7d1;display:block;text-align:center;padding:11px}.allocation-matrix .allocation-missing{background:#fff8f2}.allocation-missing .allocation-chip{background:#fff0df;border-color:#ecd6b7}.allocation-matrix .allocation-highlight{background:#f8f6fe}.allocation-matrix .allocation-drop-active{background:#ece5ff!important;outline:2px solid var(--purple);outline-offset:-3px}.allocation-dragging{opacity:.55}.allocation-pagination{margin-top:10px;gap:12px;justify-content:flex-end}.allocation-pagination span{font-size:11px;color:var(--muted)}#allocation-status:empty{display:none}#allocation-status{min-height:18px;margin:8px 0}#allocation-surface[aria-busy=true] .allocation-matrix{opacity:.75}@media(max-width:1100px){.allocation-matrix .allocation-component-heading{width:220px;min-width:220px;max-width:220px}.allocation-matrix .allocation-unassigned{left:220px;width:180px;min-width:180px}.allocation-toolbar input,.allocation-toolbar select{max-width:220px}.allocation-scroll{max-height:calc(100dvh - 360px)}}

.metrics:empty{display:none}

.coverage-result{margin-top:8px;font-weight:400}.coverage-result .test-result-indicator{margin-top:3px}.coverage-result .test-result-context small{font-size:9px;line-height:1.3}.coverage-no-cases{color:var(--amber)!important}.coverage-unlinked-toggle input{min-height:18px!important;width:18px;justify-self:start}.link-matrix thead .type-pill{margin-top:6px}.link-matrix .allocation-chip small{font-size:9px;color:var(--muted)}#coverage-status:empty{display:none}

.matrix-action{display:inline-flex;align-items:center;justify-content:center;gap:7px}.matrix-action-icon{flex:none;vertical-align:middle}#relation-matrix-status:empty{display:none}#relation-matrix-surface[aria-busy=true] .allocation-matrix,#coverage-surface[aria-busy=true] .allocation-matrix{opacity:.75}

/* Row headers contain descriptions and evidence, not single-line table labels. */
.link-matrix th{white-space:normal;overflow-wrap:anywhere}
.link-matrix tbody .allocation-component-heading{color:var(--ink);font-weight:400;letter-spacing:normal}
.link-matrix .allocation-component-title,.link-matrix .allocation-resource-title{width:100%;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
.link-matrix button.allocation-component-title,.link-matrix button.allocation-resource-title{border:0;background:transparent;padding:0;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
.link-matrix .allocation-component-title>span,.link-matrix .allocation-resource-title>span{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
.link-matrix .allocation-component-heading>small,.link-matrix .allocation-source-label{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.link-matrix .coverage-result{min-width:0;max-width:100%;white-space:normal}
.link-matrix .coverage-result .test-result-indicator{display:flex;width:100%;max-width:100%;min-width:0;justify-content:flex-start;white-space:normal}
.link-matrix .coverage-result .test-result-context{flex:1;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
