/* HAL M23 shared website/Desktop dispatcher: scoped to this native control plane. */
/* The main chat is a height-constrained flex column. A normal flex child is
   compressed to ~50–90px. Make the owner workspace an anchored overlay so the
   chat/composer remain mounted and its content gets the available main area. */
.hdh-panel{position:absolute;top:var(--hdh-top,144px);bottom:12px;left:14px;right:14px;
 margin:0;padding:16px;box-sizing:border-box;min-width:0;min-height:0;max-height:none;
 width:auto;overflow:auto;overscroll-behavior:contain;flex:0 0 auto;
 color:var(--text,#edf4ff);background:linear-gradient(130deg,#172b43 0%,#0f1b2f 45%,#141a2d 100%);
 border:1px solid #41678a;border-radius:16px;box-shadow:0 16px 48px #0009;z-index:31;
 font:500 13px/1.42 system-ui,Segoe UI,sans-serif;scrollbar-color:#466481 transparent}
.hdh-panel[hidden]{display:none!important}
.hdh-panel:focus-visible{outline:2px solid #74dfff}
.hdh-main-tab[aria-pressed=true]{border-color:#75d8ff!important;background:#23425e!important;color:#fff!important}
.hdh-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.hdh-head-left{min-width:0}
.hdh-kicker{font:780 10px/1.35 ui-monospace,monospace;letter-spacing:.13em;color:#7bddfa}
.hdh-header h2{font:800 clamp(18px,2.3vw,27px)/1.14 system-ui,Segoe UI,sans-serif;color:#f2f8ff;margin:4px 0}
.hdh-header p,.hdh-note{color:#b8c8dc;margin:5px 0 10px;font-size:12px}
.hdh-controls,.hdh-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.hdh-button{border:1px solid #42647e;border-radius:8px;color:#e3f0ff;background:#1b344a;padding:7px 11px;font:700 12px system-ui;cursor:pointer;min-height:34px;white-space:normal;text-align:center}
.hdh-button:hover{background:#2a4c68;border-color:#7bb9dd}
.hdh-button:focus-visible,.hdh-mode:focus-visible,.hdh-search:focus-visible{outline:2px solid #78dfff;outline-offset:2px}
.hdh-button.primary{background:#1b678c;border-color:#66caff;color:#fff}
.hdh-button.danger{background:#38202b;color:#ffc3cb;border-color:#a75a69}
.hdh-button.quiet{background:transparent;color:#b5c9db}
.hdh-button:disabled{opacity:.5;cursor:wait}
.hdh-setting{border-top:1px solid #30465d;border-bottom:1px solid #30465d;padding:9px 0;margin:0 0 12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hdh-setting[hidden]{display:none!important}
.hdh-setting label{font:700 12px system-ui;color:#b9d5ed}
.hdh-mode,.hdh-search{color:#eef9ff;background:#132942;border:1px solid #41637b;border-radius:8px;padding:7px 10px;min-height:35px}
.hdh-mode{margin-left:9px;max-width:215px}
.hdh-search{width:min(400px,100%);margin-bottom:11px}
.hdh-sections{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 11px}
.hdh-section{border-radius:7px}
.hdh-section[aria-pressed=true]{background:#244a6a;border-color:#7ad9fe;color:#fff}
.hdh-status{margin:6px 0 12px;font:650 11px/1.5 system-ui;color:#98cff0;min-height:19px}
.hdh-status[data-error=true],.hdh-warning{color:#ffcf8b}
.hdh-content{display:grid;gap:8px;min-width:0}
.hdh-content h3{font:800 15px/1.2 system-ui;margin:10px 0 3px;color:#f6faff}
.hdh-content p{max-width:100ch}
.hdh-list{display:grid;gap:7px}
.hdh-row{display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap;justify-content:space-between;
 background:#102339;border:1px solid #28415a;border-radius:10px;padding:10px}
.hdh-row-copy{min-width:190px;flex:1 1 260px;display:grid;gap:4px;overflow-wrap:anywhere}
.hdh-row-copy strong{font-weight:760;line-height:1.3;color:#ecf5ff}
.hdh-row-copy small{color:#a1bbd6;line-height:1.45}
.hdh-pill{font:750 10px ui-monospace,monospace;border-radius:999px;border:1px solid #42647c;
 background:#22394e;color:#d0e8fa;padding:5px 8px;align-self:flex-start}
.hdh-pill[data-state=blocked],.hdh-pill[data-state=waiting],.hdh-pill[data-state=attention],
.hdh-pill[data-state=stale],.hdh-pill[data-state=high]{color:#ffd59c;border-color:#af7b48}
.hdh-pill[data-state=error],.hdh-pill[data-state=failed],.hdh-pill[data-state=denied]{color:#ffb0c2;border-color:#a85166}
.hdh-pill[data-state=ready],.hdh-pill[data-state=accepted],.hdh-pill[data-state=ok]{color:#9df4ca;border-color:#368962}
.hdh-row .hdh-actions,.hdh-row .hdh-inspect{flex:1 0 100%}
.hdh-inspect{border-top:1px solid #30465e;padding-top:8px}
.hdh-inspect summary{cursor:pointer;font-weight:670;color:#aadaf7}
.hdh-inspect pre{background:#06111e;color:#deefff;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere;
 border-radius:6px;padding:10px;font:11px/1.55 ui-monospace,monospace;max-height:200px;overflow-y:auto}
.hdh-empty{border:1px dashed #496780;background:#142a42;padding:18px;border-radius:11px;color:#b9cce0}
.hdh-empty strong{display:block;color:#eef7ff;margin:0 0 5px}
.hdh-empty p{margin:0}
.hdh-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:9px}
.hdh-metric{min-width:0;border:1px solid #315273;background:#142c46;border-radius:9px;padding:10px;display:grid;gap:3px}
.hdh-metric small{color:#a1c8e3;font:680 10px system-ui}
.hdh-metric strong{font:820 clamp(16px,1.9vw,24px) system-ui;color:#f4faff;overflow-wrap:anywhere}
.hdh-metric span{font:600 10px system-ui;color:#9bb3c6}
.hdh-warning{padding:10px;border:1px solid #ad7847;border-radius:8px;background:#392b22;font-weight:650}
.hdh-outlink{color:#7fdbfc;font-weight:780}
.hdh-panel[data-busy=true] .hdh-header h2:after{content:' · refreshing';font:600 10px system-ui;color:#83beda}
html.hx-command-center-ready .hb-key{display:flex!important}
@media(max-width:1100px){.hdh-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.hdh-panel{left:8px;right:8px;bottom:8px;margin:0;padding:11px;border-radius:10px;max-height:none}
.hdh-header{flex-direction:column;gap:9px}.hdh-controls{align-self:flex-start}
.hdh-main-tab{min-width:65px}.hdh-main-tab .hx-command-sub{display:none}
.hdh-row{padding:9px}.hdh-setting{align-items:flex-start}
.hdh-mode{margin-top:5px}.hdh-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.hdh-panel{scroll-behavior:auto}}
