/* Scoped to the existing V4 palette; one-column fallback keeps every action reachable. */
.dhi-workspace{display:block!important;min-width:0}.dhi-root{width:100%;min-width:0;color:var(--ink)}
.dhi-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:12px 12px 0 0;padding:26px 28px}.dhi-eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);margin-bottom:12px}.dhi-hero h2{font-size:22px;font-weight:600;line-height:1.5}.dhi-hero p{color:var(--subtle);font-size:12px;margin-top:8px;line-height:1.7}.dhi-hero-tools{display:grid;gap:10px;min-width:185px}.dhi-hero-tools label{display:grid;gap:6px;color:var(--subtle);font-size:11px}.dhi-hero-tools select{padding:9px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);max-width:100%}.dhi-notice{padding:12px 20px;background:var(--mint);color:var(--subtle);font-size:11px;line-height:1.7;border:1px solid var(--line)}.dhi-notice strong{display:block;color:var(--red)}
.dhi-top-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:16px 0;gap:12px}.dhi-top-stats button{padding:16px 20px;text-align:left;border:1px solid var(--line);background:var(--paper);border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:12px}.dhi-top-stats button[aria-pressed=true]{border-color:var(--green)}.dhi-top-stats span{font-size:12px;color:var(--subtle)}.dhi-top-stats strong{font-size:25px;font-weight:500;color:var(--green)}
.dhi-business{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:12px}.dhi-business small{margin-left:auto;color:var(--subtle);font-size:10px}.dhi-filterbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:20px 0 12px}.dhi-filterbar>div{display:flex;gap:8px}.dhi-filterbar button{font-size:12px}.dhi-filterbar>div button{padding:8px 12px;border-radius:5px;color:var(--subtle)}.dhi-filterbar>div button.active{color:var(--green);background:var(--mint)}
.dhi-columns{display:grid;grid-template-columns:285px minmax(0,1fr);gap:18px;align-items:start}.dhi-list{display:grid;gap:10px}.dhi-list>button{text-align:left;border:1px solid var(--line);border-radius:9px;background:var(--paper);padding:18px}.dhi-list>button.active{border-color:var(--green);box-shadow:inset 3px 0 var(--green)}.dhi-list h3{font-size:14px;font-weight:550;margin:12px 0 8px;line-height:1.6}.dhi-list p{font-size:11px;color:var(--subtle)}.dhi-list footer{display:flex;justify-content:space-between;font-size:11px;color:var(--subtle);border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.dhi-tag{display:inline-flex;font-size:10px;color:var(--subtle);background:var(--bg);padding:4px 7px;border-radius:4px;margin:0 5px 4px 0;white-space:nowrap}.dhi-tag.supported{color:var(--green);background:var(--mint)}.dhi-tag.refuted{color:var(--red);background:color-mix(in srgb,var(--red) 10%,var(--paper))}.dhi-tag.unknown,.dhi-tag.conflict{color:var(--gold);background:color-mix(in srgb,var(--gold) 10%,var(--paper))}
.dhi-detail{border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:0}.dhi-ticket-detail{padding:24px}.dhi-ticket-detail header h2{font-size:20px;line-height:1.6;margin:8px 0}.dhi-ticket-detail header p{font-size:12px;color:var(--subtle);line-height:1.8;margin-bottom:8px}.dhi-steps{display:flex;justify-content:space-between;list-style:none;padding:18px 0;margin:16px 0;border-block:1px solid var(--line);gap:5px}.dhi-steps li{display:grid;justify-items:center;gap:8px;color:var(--subtle);font-size:10px;flex:1}.dhi-steps li>span{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--line);border-radius:50%}.dhi-steps .done{color:var(--green)}.dhi-steps .done>span{background:var(--mint);border-color:var(--green)}
.dhi-responsibility{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:14px;margin:16px 0}.dhi-responsibility dt{font-size:10px;color:var(--subtle);margin-bottom:6px}.dhi-responsibility dd{margin:0;font-size:12px;line-height:1.6}.dhi-explain{font-size:11px;color:var(--subtle);line-height:1.9;margin:12px 0}.dhi-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.dhi-actions button{font-size:12px}.dhi-source{background:var(--bg);border:1px solid var(--line);padding:16px;border-radius:8px;margin:14px 0;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.dhi-source p{margin:6px 0;color:var(--subtle)}.dhi-source pre{white-space:pre-wrap;max-height:240px;overflow:auto;font-size:10px}.dhi-source details{margin-top:12px}.dhi-source summary{cursor:pointer}.dhi-success{color:var(--green);background:var(--mint);padding:12px;font-size:12px;line-height:1.7;border-radius:6px}.dhi-error{color:var(--red);font-size:12px}
.dhi-section-head{margin:24px 0 14px}.dhi-section-head h3{font-size:14px;font-weight:550}.dhi-section-head p{font-size:10px;color:var(--subtle);margin-top:6px;line-height:1.6}.dhi-metrics{display:grid;grid-template-columns:1fr 1fr 1.2fr;border:1px solid var(--line);border-radius:8px;padding:16px 8px}.dhi-metrics>div{padding:0 12px;display:grid;gap:7px;border-right:1px solid var(--line)}.dhi-metrics>div:last-child{border:0}.dhi-metrics span{font-size:10px;color:var(--subtle)}.dhi-metrics strong{font-size:24px;font-weight:500;color:var(--green)}.dhi-metrics strong.dhi-qual{font-size:19px}.dhi-metrics small{font-size:10px;color:var(--subtle)}.dhi-checks{border-top:1px solid var(--line)}.dhi-checks article{padding:13px 0;border-bottom:1px solid var(--line)}.dhi-checks article>div{display:flex;align-items:baseline;gap:6px}.dhi-checks strong{font-size:12px;font-weight:500;line-height:1.7}.dhi-checks p{color:var(--subtle);font-size:11px;margin:5px 0;line-height:1.7;overflow-wrap:anywhere}.dhi-checks small{font-size:10px;color:var(--subtle)}.dhi-critical{font-size:9px;margin-left:8px;color:var(--gold)}.dhi-history article{border-left:2px solid var(--line);padding:2px 0 16px 14px;font-size:11px;line-height:1.8}.dhi-history time{display:block;color:var(--subtle);font-size:10px}.dhi-history p{color:var(--subtle);overflow-wrap:anywhere}.dhi-empty{padding:28px 22px;color:var(--subtle);font-size:12px;line-height:1.9}
@media(max-width:1150px){.dhi-columns{grid-template-columns:245px minmax(0,1fr)}.dhi-hero{padding:22px}.dhi-ticket-detail{padding:18px}.dhi-top-stats button{padding:14px;gap:6px}.dhi-top-stats span{font-size:11px}}
@media(max-width:850px){.dhi-columns{grid-template-columns:1fr}.dhi-list{display:flex;overflow-x:auto;padding-bottom:8px}.dhi-list>button{min-width:250px;flex:1}.dhi-hero{align-items:start}.dhi-hero h2{font-size:18px}.dhi-top-stats{grid-template-columns:repeat(2,1fr)}.dhi-filterbar{flex-wrap:wrap}}
@media(max-width:520px){.dhi-hero{flex-direction:column;gap:16px;padding:18px}.dhi-hero-tools{width:100%;grid-template-columns:1fr auto;align-items:end;min-width:0}.dhi-hero-tools select{width:100%}.dhi-notice{padding:12px 16px}.dhi-top-stats button{padding:12px}.dhi-filterbar>div{gap:2px}.dhi-filterbar>div button{padding:8px}.dhi-business small{margin:0}.dhi-ticket-detail{padding:16px}.dhi-metrics{padding:12px 0}.dhi-metrics>div{padding:0 8px}.dhi-metrics strong{font-size:22px}.dhi-metrics strong.dhi-qual{font-size:17px}.dhi-responsibility{grid-template-columns:1fr 1fr}.dhi-responsibility>div:last-child{grid-column:span 2}.dhi-actions{flex-direction:column}.dhi-checks article>div{align-items:start}.dhi-tag{flex-shrink:0}}

.dhi-badge-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.dhi-badge{display:inline-flex;align-items:center;gap:6px;min-height:30px;max-width:100%;padding:5px 10px;border:1px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:999px;background:var(--bg);color:var(--subtle);font-size:11px;line-height:18px;white-space:nowrap;cursor:pointer}
.dhi-badge strong{font-size:inherit;font-weight:550}.dhi-badge-dot{width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.dhi-badge-divider{opacity:.5}.dhi-badge-demo{font-size:9px;border-left:1px solid currentColor;padding-left:6px}.dhi-badge--healthy{color:var(--green);background:var(--mint)}.dhi-badge--warning{color:var(--gold);background:color-mix(in srgb,var(--gold) 8%,var(--paper))}.dhi-badge--danger{color:var(--red);background:color-mix(in srgb,var(--red) 7%,var(--paper))}.dhi-badge:hover{border-color:currentColor}.dhi-badge:focus-visible{outline:2px solid currentColor;outline-offset:3px}
