/* Hermes Delegator: uses Planck's own tokens (--surface, --line, --teal, --mono...) from app.html. */
.hz-pill{gap:6px;font-family:var(--mono);font-size:11.5px;font-weight:500;padding-inline:10px}
.hz-dot{width:8px;height:8px;border-radius:50%;background:var(--muted);flex:none;box-shadow:0 0 0 3px transparent;transition:background .2s}
[data-hz="online"] .hz-dot{background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
[data-hz="degraded"] .hz-dot{background:var(--amber);box-shadow:0 0 0 3px var(--amber-soft)}
[data-hz="offline"] .hz-dot{background:var(--red);box-shadow:0 0 0 3px var(--red-soft)}
[data-hz="checking"] .hz-dot{background:var(--teal);animation:hzPulse 1s ease-in-out infinite}
@keyframes hzPulse{50%{opacity:.35}}
@media(max-width:520px){.hz-pill .hz-long{display:none}}
@media(max-width:420px){.hz-pill{min-width:40px;padding-inline:0}.hz-pill .hz-word{display:none}.hz-pill .hz-dot{width:10px;height:10px}}

dialog#hermesDlg{width:calc(100% - 24px);max-width:520px;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink);box-shadow:var(--shadow)}
dialog#hermesDlg::backdrop{background:rgba(5,12,11,.55)}
.hz-dlg-body{padding:6px 16px 18px}
.hz-dlg-body label{font-size:13px;color:var(--muted);display:grid;gap:4px}
.hz-dlg-body input[type=password]{font:inherit;font-size:16px;padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:100%}
.hz-dlg-body select{font:inherit;font-size:16px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:100%;min-height:44px}
.hz-dlg-body textarea{min-height:64px;font-family:var(--mono);font-size:13px}
.hz-result{font-family:var(--mono);font-size:12px;line-height:1.5;padding:9px 11px;border-radius:10px;background:var(--surface);border:1px solid var(--line);color:var(--muted);overflow-wrap:anywhere;white-space:pre-wrap}
.hz-result.ok{background:var(--green-soft);border-color:var(--green);color:var(--green)}
.hz-result.bad{background:var(--red-soft);border-color:var(--red);color:var(--red)}
.hz-row-between{display:flex;align-items:center;justify-content:space-between;gap:8px}

.hz-routes{margin:4px 0 10px}
.hz-routes .chip{min-height:34px;padding:6px 11px;font-size:12.5px}
.hz-chat{display:grid;gap:10px;margin-bottom:10px}
.hz-msg{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 13px;min-width:0}
.hz-msg.user{background:var(--teal-soft);border-color:var(--teal);margin-left:12%}
.hz-msg.err{border-color:var(--red);background:var(--red-soft);color:var(--red)}
.hz-msg-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px;font-family:var(--mono);font-size:11px;color:var(--muted)}
.hz-badge{font-family:var(--mono);font-size:10.5px;padding:1px 7px;border-radius:99px;background:var(--teal-soft);color:var(--teal-ink);border:1px solid var(--teal);white-space:nowrap}
.hz-md{font-size:14.5px;overflow-wrap:anywhere}
.hz-md p{margin:6px 0}.hz-md ul,.hz-md ol{margin:6px 0;padding-left:20px}.hz-md li{margin:2px 0}
.hz-md h3,.hz-md h4,.hz-md h5{font-family:var(--display);margin:10px 0 4px;font-size:15px}
.hz-md code{font-family:var(--mono);font-size:12.5px;background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:0 4px}
.hz-md pre{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:9px 11px;overflow-x:auto;margin:8px 0}
.hz-md pre code{border:0;padding:0;background:none;font-size:12.5px}
.hz-caret::after{content:"\258D";color:var(--teal);animation:hzPulse .9s steps(1) infinite;margin-left:1px}
details.hz-steps{background:var(--bg);border-radius:10px;margin:6px 0 4px}
details.hz-steps summary{min-height:32px;padding:6px 10px;font-family:var(--mono);font-size:11.5px;font-weight:500;color:var(--muted)}
.hz-step-list{display:flex;flex-wrap:wrap;gap:5px;padding:0 10px 8px}
.hz-step{font-family:var(--mono);font-size:11px;padding:2px 8px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hz-step.running{border-color:var(--teal);color:var(--teal-ink)}
.hz-step.running::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--teal);margin-right:5px;vertical-align:middle;animation:hzPulse 1s infinite}
.hz-step.failed{border-color:var(--red);color:var(--red)}
.hz-step.sub{border-style:dashed}
details.hz-think{margin:4px 0;background:transparent;border:0}
details.hz-think summary{min-height:0;padding:2px 0;font-family:var(--mono);font-size:11px;color:var(--muted)}
details.hz-think summary::after{content:none}
details.hz-think .hz-think-txt{font-size:12.5px;color:var(--muted);white-space:pre-wrap;max-height:180px;overflow:auto;padding:4px 0}
.hz-compose{display:grid;gap:8px;padding:2px 0 4px}
.hz-compose textarea{min-height:64px}
.hz-worker{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 12px;margin-bottom:6px}
.hz-worker .hz-w-main{flex:1;min-width:0}
.hz-worker .hz-w-goal{font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hz-worker .hz-w-sub{font-family:var(--mono);font-size:11px;color:var(--muted)}
.hz-feed{list-style:none;margin:0;padding:0;font-size:13px}
.hz-feed li{display:grid;grid-template-columns:58px 1fr;gap:8px;padding:6px 0;border-bottom:1px dashed var(--line)}
.hz-feed time{font-family:var(--mono);font-size:11px;color:var(--muted);padding-top:2px}
.hz-feed .r{color:var(--red)}.hz-feed .g{color:var(--green)}
