*{box-sizing:border-box}body{--bg:#f0f1f3;--surface:#fff;--side:#f6f7f9;--ink:#202b34;--muted:#74808a;--line:#e6e9ed;--accent:#226de5;--soft:#e8f0ff;margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;transition:background .25s}button,input{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:9px 14px}button:hover{filter:brightness(.96)}button:focus-visible,input:focus-visible{outline:3px solid #6da7ff;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}input{width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:11px}small{display:block;font-size:12px;color:var(--muted);line-height:1.5}strong{font-weight:600}.showcase{max-width:1420px;margin:auto;padding:24px 4%;display:flex;align-items:center;justify-content:space-between;gap:20px}.showcase>div{display:flex;align-items:center;gap:12px}.brand{font-size:25px;font-weight:800}.brand span{color:var(--accent);font-size:12px}.showcase nav{display:flex;background:#e3e6e9;border-radius:10px;padding:4px;gap:3px}.showcase nav button{background:transparent;border:0;color:#66727e;font-size:12px}.showcase nav button[aria-pressed=true]{background:white;color:#202b34;box-shadow:0 1px 4px #0001}.demo{font-size:9px;font-weight:700;letter-spacing:1.5px;color:var(--muted)}.intro{max-width:1180px;margin:35px auto 26px;display:flex;justify-content:space-between;align-items:end;padding:0 24px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--accent)}h1{font-size:34px;letter-spacing:-1.3px;margin:10px 0}p{line-height:1.6}.intro p{color:var(--muted);margin:0}.sample{font-size:11px;line-height:1.7;text-align:right;color:var(--muted)}.window{max-width:1132px;margin:0 auto;background:var(--surface);border:1px solid #00000015;border-radius:14px;overflow:hidden;box-shadow:0 22px 65px #15253417,0 2px 4px #1525340a}.titlebar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:var(--side);border-bottom:1px solid var(--line);font-size:12px;font-weight:600}.titlebar button{font-size:11px;padding:5px 10px;background:transparent}.traffic{display:flex;gap:8px;width:120px}.traffic i{width:11px;height:11px;border-radius:50%;background:#ff625a;border:1px solid #0001}.traffic i:nth-child(2){background:#ffbf43}.traffic i:nth-child(3){background:#2fcb52}.shell{display:grid;grid-template-columns:240px 1fr;min-height:550px}aside{background:var(--side);border-right:1px solid var(--line);padding:24px 14px 16px;display:flex;flex-direction:column}.workspace{display:flex;gap:10px;align-items:center;margin:0 3px 28px}.workspace strong{font-size:12px}.workspace small{font-size:10px}.workspace-icon{display:grid;place-items:center;border-radius:9px;width:32px;height:32px;background:var(--ink);color:var(--surface);font-weight:700}.section-label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.3px;color:var(--muted);margin:0 9px 12px}.search{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:0 8px;margin-bottom:14px}.search input{border:0;font-size:12px;background:transparent;padding:8px}.host{display:flex;width:100%;text-align:left;align-items:center;gap:10px;padding:13px 10px;border:1px solid transparent;background:transparent;margin-bottom:5px}.host.selected{background:var(--soft);border-color:#226de519}.host strong{font-size:12px;display:block}.host small{font-size:10px;margin-top:3px}.host-icon{font-size:19px;color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#9cabb4;margin-right:6px}.green{background:#29a878}.amber{background:#dc9b36}.aside-footer{display:flex;align-items:center;font-size:11px;margin:auto 8px 0;padding-top:30px;color:var(--muted)}.aside-footer small{font-size:9px}.content{padding:27px 34px}.breadcrumb{font-size:10px;color:var(--muted);display:flex;gap:12px}.breadcrumb b{font-weight:500;color:var(--ink)}.host-header{display:flex;align-items:center;justify-content:space-between;margin-top:29px;gap:15px}h2{font-size:27px;letter-spacing:-.8px;margin:8px 0}.host-header p{font-size:12px;color:var(--muted);margin:0}.primary{background:var(--accent);color:white;border-color:transparent;font-weight:500}.statusline{display:flex;align-items:center;gap:12px;margin:19px 0;font-size:10px;color:var(--muted)}.badge{border-radius:5px;padding:5px 8px;background:#e6f5ed;color:#208760}.badge.offline{background:#edf0f3;color:#65737f}.badge.pending{background:#fff1d8;color:#986922}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.metrics article{border:1px solid var(--line);border-radius:9px;padding:18px 16px}.metrics article>span{font-size:10px;color:var(--muted)}.metrics strong{display:block;font-size:18px;margin:10px 0 6px;letter-spacing:-.5px}.metrics small{font-size:9px}.panels{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;margin-top:28px}.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading h3{font-size:12px;margin:0}.panel-heading>span{font-size:9px;color:var(--muted)}dl{display:grid;grid-template-columns:1fr 1fr;font-size:11px;row-gap:16px;margin:22px 0}dt{color:var(--muted)}dd{margin:0;text-align:right}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button{font-size:10px;padding:7px 10px}.activity{border-left:1px solid var(--line);padding-left:22px}ol{list-style:none;padding:0;margin:19px 0}li{font-size:11px;line-height:1.5;margin:0 0 15px;padding-left:13px;border-left:2px solid var(--line)}li small{font-size:9px}.bottom-note{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);margin-top:25px;padding-top:17px;color:var(--muted)}.bottom-note>span{font-size:22px}.bottom-note p{font-size:11px;margin:0}.bottom-note small{font-size:9px}.window-footer{display:flex;justify-content:space-between;align-items:center;padding:10px 17px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.window-footer button{border:0;padding:0;font-size:10px;color:var(--muted)}.page-footer{max-width:1132px;margin:22px auto 40px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted)}.page-footer p{margin:0}.page-footer>span{font-size:10px}#notice:not(:empty){background:#fff4df;border:1px solid #efd6a1;color:#785d28;border-radius:7px;padding:12px;font-size:11px;line-height:1.6;margin-bottom:16px}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:15px;padding:28px;width:min(460px,90vw);box-shadow:0 20px 70px #0003}dialog::backdrop{background:#15253466;backdrop-filter:blur(4px)}dialog p{color:var(--muted);font-size:13px}dialog label{display:block;font-size:12px;margin-top:24px}dialog input{margin:8px 0}dialog h2{font-size:25px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}#nameError{color:#c84444}#verification{padding-top:10px;line-height:1.7;font-size:13px}

.app-layout{display:grid;grid-template-columns:100px minmax(0,1fr)}.section-rail{background:var(--side);border-right:1px solid var(--line);padding:25px 8px}.section-item{border:0;background:var(--soft);color:var(--accent);width:100%;padding:14px 2px}.section-item>span{font-size:27px}.section-item small{font-size:9px;color:inherit;margin-top:7px}.infra-header{padding:25px 28px 15px;display:flex;justify-content:space-between;align-items:center}.infra-header h2{font-size:23px;margin:6px 0}.infra-header button{font-size:11px}.fleet{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:0 28px 22px;border-bottom:1px solid var(--line)}.fleet-item{display:flex;align-items:center;text-align:left;gap:10px;background:var(--surface);padding:12px}.fleet-item strong{font-size:23px}.fleet-item span{font-size:10px;color:var(--muted)}.fleet-item[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}.window{max-width:1250px}.intro{max-width:1298px}.page-footer{max-width:1250px}.shell{grid-template-columns:222px minmax(0,1fr)}.content{padding:25px 28px}.filter{font-size:10px;color:var(--muted);display:block;margin:0 0 15px}.filter select{display:block;width:100%;font:inherit;font-size:11px;border:1px solid var(--line);padding:8px;margin-top:5px;border-radius:6px;background:var(--surface);color:var(--ink)}.host strong{overflow-wrap:anywhere}.host-header h2{overflow-wrap:anywhere}.infrastructure{min-width:0}.host-header>div{min-width:0}.host-header>.primary{flex-shrink:0}body[data-theme=dark]{--bg:#111719;--surface:#192225;--side:#151e21;--ink:#d5e2e1;--muted:#90a7a2;--line:#304044;--accent:#45b49a;--soft:#203b35}body[data-theme=dark] .badge{background:#203b35;color:#77d6b3}body[data-theme=dark] .badge.offline{background:#303b40;color:#a2b3bc}body[data-theme=dark] .badge.pending{background:#3c3524;color:#dfc788}body[data-theme=dark] #notice:not(:empty){background:#3b3423;color:#e2cf9e;border-color:#675c38}
@media(max-width:1050px){.window{margin:0 16px}.app-layout{grid-template-columns:78px minmax(0,1fr)}.section-item small{font-size:8px}.shell{grid-template-columns:190px minmax(0,1fr)}.panels{grid-template-columns:1fr}.activity{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:20px}.metrics{gap:6px}.metrics article{padding:12px}.metrics strong{font-size:15px}.page-footer{margin:20px}.sample{display:none}}
@media(max-width:700px){.showcase{padding:20px}.demo{font-size:8px;max-width:100px;line-height:1.6}.intro{margin-top:12px;padding:0 20px}h1{font-size:29px}.app-layout{display:block}.section-rail{padding:9px 15px;border-right:0;border-bottom:1px solid var(--line)}.section-item{width:auto;display:flex;gap:10px;align-items:center;padding:7px 12px}.section-item>span{font-size:18px}.section-item small{font-size:11px;margin:0}.infra-header{padding:20px 16px 12px}.infra-header h2{font-size:22px}.fleet{padding:0 16px 15px;gap:6px;grid-template-columns:repeat(2,1fr)}.fleet-item{padding:9px}.fleet-item strong{font-size:20px}.shell{display:block}.shell aside{padding:15px;border-right:0;border-bottom:1px solid var(--line)}.section-label,.aside-footer{display:none}#hosts{display:flex;gap:5px;overflow:auto}.host{flex:0 0 180px;padding:10px}.filter{margin-bottom:10px}.content{padding:18px}.host-header{margin-top:20px}.host-header h2{font-size:23px}.metrics{grid-template-columns:1fr}.metrics article{display:flex;justify-content:space-between;align-items:center}.metrics strong{margin:0;font-size:15px}.metrics small{display:none}.traffic{width:auto}.titlebar>span{display:none}.window-footer>span{max-width:65%}.bottom-note small{font-size:10px}.page-footer{display:block}.page-footer>span{display:block;margin-top:9px}}

/* Compact section navigation, shared by future sections. */
.app-layout{grid-template-columns:56px minmax(0,1fr)}
.section-rail{padding:18px 7px;position:relative;z-index:2}
.section-item{position:relative;width:40px;height:40px;padding:0;display:grid;place-items:center}
.section-item>span:first-child{font-size:22px}
.section-item .section-tooltip{position:absolute;left:calc(100% + 9px);top:50%;transform:translateY(-50%);padding:8px 11px;font-size:12px;font-weight:500;white-space:nowrap;background:var(--ink);color:var(--surface);border-radius:6px;box-shadow:0 3px 14px #0002;opacity:0;visibility:hidden;transition:opacity .12s}
.section-tooltip::before{content:"";position:absolute;right:100%;top:0;width:12px;height:100%}
.section-item:not(.tooltip-dismissed):hover .section-tooltip,.section-item:not(.tooltip-dismissed):focus-visible .section-tooltip{opacity:1;visibility:visible}
@media(max-width:700px){.app-layout{display:block}.section-rail{padding:8px 15px}.section-item{width:36px;height:36px}}

.section-rail{display:flex;flex-direction:column;gap:10px}
.settings-button{margin-top:auto;background:transparent;color:var(--muted)}
.settings-button:hover{background:var(--soft);color:var(--accent)}
.appearance{border:0;border-top:1px solid var(--line);padding:18px 0 0;margin:25px 0 0}
.appearance legend{font-weight:600;font-size:14px;padding-right:12px}
.appearance p{margin-top:0}.appearance label{padding:12px;border:1px solid var(--line);border-radius:8px;margin-top:9px;font-size:14px;cursor:pointer}
.appearance label:has(input:checked){background:var(--soft);border-color:var(--accent)}
.appearance input{width:auto;margin:0 7px 0 0;accent-color:var(--accent)}
.appearance small{margin-left:25px}#themeSaved{font-size:12px;min-height:20px}
@media(max-width:700px){.section-rail{flex-direction:row}.settings-button{margin-top:0;margin-left:auto}.settings-button .section-tooltip{left:auto;right:0;top:calc(100% + 8px);transform:none}}

.host-facts{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0 0;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px}.host-facts>div{display:flex;align-items:baseline;gap:7px}.host-facts dd{text-align:left;font-weight:500}.panels{margin-top:20px}

[hidden]{display:none!important}.settings-space{min-width:0}.section-item{background:transparent;color:var(--muted)}.section-item[aria-current=page]{background:var(--soft);color:var(--accent)}.settings-category{width:100%;text-align:left;background:var(--soft);color:var(--accent);border-color:transparent;font-size:12px}.settings-heading{font-size:23px;margin-top:27px}.settings-space .appearance{max-width:440px;margin-top:22px}.settings-space .appearance label{display:block}.settings-space .section-label{display:block}@media(max-width:700px){.settings-category{width:auto}.settings-space .shell aside{padding:15px}}

.login-space{min-height:550px;display:grid;place-items:center;padding:36px 20px}.login-card{width:min(100%,420px)}.login-progress{font-size:11px;color:var(--muted);margin:22px 0 8px}.login-card h2{font-size:27px}.login-card p{color:var(--muted);font-size:13px}.login-label{display:block;font-size:12px;margin:24px 0}.login-label input{margin-top:8px}.login-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.login-disclaimer{margin-top:23px;font-size:11px}.text-button{border:0;background:transparent;color:var(--accent);padding:10px 0;font-size:12px}.login-choice{display:block;border:1px solid var(--line);border-radius:8px;padding:14px;margin-top:10px;font-size:13px;cursor:pointer}.login-choice input{width:auto;margin-right:8px;accent-color:var(--accent)}.login-choice:has(input:checked){border-color:var(--accent);background:var(--soft)}.login-identity{overflow-wrap:anywhere}#methodHint{font-size:12px;line-height:1.6;color:var(--muted);margin-top:18px}.emoji-row{font-size:29px;padding:24px 0;letter-spacing:3px}.verification-state{font-size:12px;color:var(--muted);margin-top:22px}.room-choice small{margin:7px 0 0 25px}#loginError{color:#d36659;font-size:12px}
body{background:var(--surface)}#workspace{min-height:100vh}.shell{min-width:0}#globalError:not(:empty){padding:14px 20px;background:#763e2a;color:white;overflow-wrap:anywhere}#requestError{color:var(--muted)}.content>div>p{max-width:650px;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}details{margin-top:25px}.login-label{display:block;margin:18px 0}.login-label input{margin-top:6px}#settingsView aside{gap:7px}#logout{margin-top:30px}#settingsView form{max-width:480px}

#serverSettings{margin:0 0 18px}
#serverSettings summary{cursor:pointer;color:var(--muted)}
#coordinatorPicker{display:block;width:100%;margin-top:6px;padding:9px;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px}
#coordinatorPickerStatus:empty{display:none}
#settingsView input[type=checkbox]{width:auto}

#hostsView{--host-secondary:#535f69;--host-primary-ink:#fff}
body[data-theme=dark] #hostsView{--host-secondary:#a8bbb6;--host-primary-ink:#102723}

#hostsView .host{display:block;margin:0;padding:9px 10px}
#hostsView .host strong{font-size:14px}
#hostsView .host small{font-size:12px;color:var(--host-secondary)}
#hostsView .host-header{margin-top:0;align-items:flex-start;flex-wrap:wrap}
#hostsView h2{overflow-wrap:anywhere}
#hostState{font-weight:600}
#hostsView #hostOverviewText,#hostsView #hostListState,#hostsView #requestError,#hostsView .host-facts dt{color:var(--host-secondary)}
#hostListState{margin:0;font-size:13px;overflow-wrap:anywhere}
#hostListState:empty,#hostsView #requestError:empty{display:none}
#hostsView .primary{color:var(--host-primary-ink)}
#hostsView .actions{margin-top:14px}
#hostsView .actions button,#hostsView .host-facts{font-size:13px}
#hostsView button:disabled{cursor:default}

#terminalView{
  min-width:0;
  --terminal-bg:#f6f7f8;
  --terminal-prompt-bg:#edf0f2;
  --terminal-ink:#25313a;
  --terminal-command:#205ca4;
  --terminal-muted:#535f69;
  --terminal-scroll:#78858e;
  --terminal-error:#9d3528;
  --terminal-font:ui-monospace,SFMono-Regular,Menlo,monospace;
}
body[data-theme=dark] #terminalView{
  --terminal-bg:#101719;
  --terminal-prompt-bg:#182224;
  --terminal-ink:#d5e2e1;
  --terminal-command:#83dfc5;
  --terminal-muted:#a8bbb6;
  --terminal-scroll:#627873;
  --terminal-error:#ffafa3;
}
.terminal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.terminal-header h2{margin:0;font-size:22px;overflow-wrap:anywhere}
.terminal-actions{display:flex;flex-wrap:wrap;gap:8px}
#terminalPeer,#terminalHint,#terminalDelivery{color:var(--terminal-muted);overflow-wrap:anywhere}
#terminalPeer{margin:4px 0 0;font:13px/1.5 var(--terminal-font)}
.terminal-console{
  display:grid;grid-template-rows:minmax(0,1fr) auto;
  height:max(240px,calc(100vh - 166px));
  min-width:0;border:1px solid var(--line);border-radius:8px;
  background:var(--terminal-bg);color:var(--terminal-ink);
}
#terminalLog{
  min-height:0;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;
  scrollbar-gutter:stable;scrollbar-color:var(--terminal-scroll) var(--terminal-bg);
  padding:14px 16px;user-select:text;
}
#terminalLog:focus-visible{outline:2px solid var(--terminal-command);outline-offset:-3px;border-radius:7px}
#terminalLog pre{margin:0;font:13px/1.6 var(--terminal-font);white-space:pre-wrap;overflow-wrap:anywhere}
#terminalLog pre+pre{margin-top:5px}
#terminalLog pre+pre.terminal-command{margin-top:13px}
#terminalLog .terminal-command{color:var(--terminal-command);font-weight:600}
#terminalLog .terminal-error{color:var(--terminal-error)}
#terminalTrimmed{margin:0 0 10px;color:var(--terminal-muted);font:13px/1.5 var(--terminal-font)}
#terminalDelivery{min-height:20px;margin:5px 0 0;font-size:13px}
.terminal-prompt{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;
  padding:6px 10px 6px 16px;border-top:1px solid var(--line);
  background:var(--terminal-prompt-bg);border-radius:0 0 7px 7px;
}
.terminal-prompt label,.terminal-prompt input,.terminal-prompt button{font:13px/1.5 var(--terminal-font)}
.terminal-prompt label,.terminal-prompt button{color:var(--terminal-command)}
.terminal-prompt input{min-width:0;padding:6px 3px;background:transparent;border:0;color:var(--terminal-ink);caret-color:var(--terminal-command)}
.terminal-prompt input::placeholder{color:var(--terminal-muted);opacity:1}
.terminal-prompt input:focus-visible{outline:2px solid var(--terminal-command);outline-offset:0}
.terminal-prompt button{background:transparent;padding:5px 8px}
#terminalHint{margin:2px 0 0;font-size:13px}
#terminalHint button{padding:2px 0;font:inherit;color:var(--terminal-command);text-decoration:underline;text-underline-offset:3px}

#hostsView .host-facts dd{overflow-wrap:anywhere}

#agentsView{--agent-muted:#535f69;--agent-primary-ink:#fff}
body[data-theme=dark] #agentsView{--agent-muted:#a8bbb6;--agent-primary-ink:#102723}

#agentsView .host{display:block;margin:0;padding:9px 10px}
#agentsView .host strong{font-size:14px}
.agent-identity { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; min-width:0; }
.agent-model-badge { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:3px 8px; border:1px solid var(--line); border-radius:999px; color:var(--ink); font-size:12px; font-weight:500; line-height:16px; overflow-wrap:anywhere; }
.agent-model-badge[hidden] { display:none; }
#agentOpenAiMark { flex:none; }
#agentOpenAiMark svg { display:block; }
#agentsView .agent-name{display:flex;align-items:center;min-width:0;gap:8px}
#agentsView .agent-name > :first-child{min-width:0}
[data-status-dot]{display:inline-flex;align-items:center;gap:6px}
[data-status-dot]::before{content:"";width:9px;height:9px;flex:none;border-radius:50%;background:var(--status-dot,#717780)}
[data-status-dot=on]{--status-dot:#248247}
[data-status-dot=off]{--status-dot:#bf393c}
[data-status-dot=working]{--status-dot:#2867c4}
body[data-theme=dark] [data-status-dot=on]{--status-dot:#5bc67b}
body[data-theme=dark] [data-status-dot=off]{--status-dot:#f57577}
body[data-theme=dark] [data-status-dot=working]{--status-dot:#70a7ff}
body[data-theme=dark] [data-status-dot=unknown]{--status-dot:#979da6}
#agentState{font-size:12px;color:var(--agent-muted);font-weight:500}

#agentsView .host-header{margin-top:0;align-items:flex-start;flex-wrap:wrap}
#agentsView h2,#agentsView .host-facts dd{overflow-wrap:anywhere}
#agentsView #agentOverviewText,#agentsListStatus,#agentNotice,#agentsView dt{color:var(--agent-muted)}
#agentsListStatus,#agentNotice{margin:0 0 10px;overflow-wrap:anywhere}
#agentsListStatus:empty,#agentNotice:empty{display:none}
#agentsView .actions{margin-top:14px}
#agentsView .actions button,#agentsView .host-facts{font-size:13px}
#agentsView .primary{color:var(--agent-primary-ink)}

.agent-chat-open{margin-top:24px}

.host-application { margin: 10px 0; padding: 12px; border: 1px solid var(--border, #555); border-radius: 8px; overflow-wrap: anywhere; }
.host-application p { margin: 5px 0 0; font-size: .9em; }

/* Agent creation follows the existing two-pane workspace. */
#agentsView .primary{color:#fff}
body[data-theme=dark] #agentsView .primary{color:#102723}

.agent-create{max-width:540px}
.agent-create h2{margin:0 0 12px;font-size:24px;letter-spacing:-.02em}
.agent-create-intro{margin:0 0 28px;line-height:1.6;color:var(--ink)}
.agent-create form>label,.agent-create-host-label label{display:block;font-weight:600;font-size:13px}
.agent-create input,.agent-create select{display:block;width:100%;min-height:42px;margin:8px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:inherit}
.agent-create input::placeholder{color:#59656e;opacity:1}
body[data-theme=dark] .agent-create input::placeholder{color:#a8bbb6}
.agent-create small,.agent-create-hint,.agent-create-recipe{display:block;color:var(--ink);font-size:12px;line-height:1.6}
.agent-create small{margin-top:8px}
.agent-create-host-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px}
.agent-create-host-label .text-button{padding:4px 0}
.agent-create-hint{margin:8px 0 0;min-height:20px}
.agent-create-recipe{margin:24px 0 0}
.agent-create-error{color:#b32925;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body[data-theme=dark] .agent-create-error{color:#ffafa3}
.agent-create-error:empty,#agentCreateProgress:empty{display:none}
#agentCreateProgress{font-size:13px;line-height:1.6;color:var(--ink)}
.agent-create-actions{margin-top:26px;display:flex;flex-wrap:wrap;gap:10px}
.agent-create input:focus-visible,.agent-create select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:700px){.agent-create{max-width:none}.agent-create h2{font-size:22px}}

/* Agents assigned to the selected infrastructure host. */
.host-agents{margin:16px 0 0;padding:16px 0;border-block:1px solid var(--line)}
.host-agents-header{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.host-agents-header h3{margin:0;font-size:17px;letter-spacing:-.01em}
#hostAgentsSummary{margin:6px 0 0;color:var(--host-secondary);font-size:12px}
#hostAgentsSummary:empty,#hostAgentsStatus:empty{display:none}
#hostAgentCreate{font-size:13px;min-height:36px}
#hostAgentsStatus{margin:4px 0 0;font-size:13px;line-height:1.6;color:var(--host-secondary);overflow-wrap:anywhere}
.host-agent-list{list-style:none;margin:16px 0 0;padding:0}
.host-agent-list:empty{display:none}
.host-agent-list li{margin:0;padding:0;border:0}
.host-agent-list li+li{border-top:1px solid var(--line)}
.host-agent-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 24px;width:100%;padding:13px 10px;text-align:left;background:transparent;border:0;border-radius:4px;color:var(--ink)}
.host-agent-row strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.host-agent-row small:empty{display:none}
.host-agent-row small{display:block;margin-top:5px;color:var(--host-secondary);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.host-agent-state{font-size:13px;line-height:1.5;color:var(--host-secondary);overflow-wrap:anywhere}
.host-agent-row:hover{background:var(--soft)}
.host-agent-row:hover strong{text-decoration:underline;text-underline-offset:3px}
.host-agent-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;background:var(--soft)}
@media(max-width:700px){.host-agent-row{grid-template-columns:minmax(0,1fr);gap:6px}.host-agents-header{gap:14px}}

.agent-create .agent-create-model-label{margin-top:24px}

/* Touch navigation keeps only icons; accessible names remain on the buttons. */
@media(max-width:700px){
 .section-rail{display:flex;flex-direction:row;gap:10px;padding:8px 15px}
 .section-rail .section-item{width:36px;height:40px;min-width:36px;padding:0;flex-shrink:0}
 .section-rail .settings-button{margin-left:auto}
 .section-rail .section-item .section-tooltip{display:none}
}

body[data-accent] .primary,body[data-accent] #hostsView .primary,body[data-accent] #agentsView .primary,body[data-accent] #chatSend{color:var(--accent-ink)}

.accent-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}
#accentOpen{display:inline-flex;align-items:center;gap:10px}
.accent-swatch{display:inline-block;width:32px;height:32px;min-width:32px;padding:0;border:1px solid var(--muted);border-radius:7px;flex-shrink:0}
#accentDialog{width:min(380px,calc(100vw - 32px));max-height:85dvh;overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:20px}
#accentDialog::backdrop{background:#0008}
#accentDialog h2{font-size:21px;margin:0 0 20px}
#accentDialog label{display:block;border:0;padding:0;margin:16px 0 8px;font-size:14px}
#accentDialog #accentColor{width:160px;min-width:0;margin:0;padding:10px;font-size:16px}
.accent-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.accent-palette .accent-swatch{width:100%;height:44px}
.accent-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}

#cacheNotice{padding:10px 16px;background:var(--soft);color:var(--ink);font-size:13px;border-bottom:1px solid var(--line)}

/* Dense workspace: quiet surfaces, short rows, and compact detail panes. */
body[data-theme=dark]{--bg:#101114;--surface:#17191d;--side:#121418;--ink:#e0e2e6;--muted:#999fa9;--line:#2a2d34}
button{border-radius:5px;padding:6px 10px;min-height:32px}
input{border-radius:5px;padding:8px 10px}
h2{font-size:21px;letter-spacing:-.4px;margin:4px 0 8px}
.shell{grid-template-columns:240px minmax(0,1fr);min-height:100vh}
.shell aside{padding:14px 10px}
.content{padding:18px 22px}
.section-rail{padding:10px 7px;gap:6px}
#hostsView .host,#servicesView .host,#agentsView .host{padding:6px 9px;border-radius:5px;min-height:44px}
#hostsView .host strong,#servicesView .host strong,#agentsView .host strong{font-size:13px}
#hostsView .host small,#servicesView .host small,#agentsView .host small{font-size:11px;margin-top:1px;line-height:1.35}
#hostsView .host-header,#servicesView .host-header,#agentsView .host-header{gap:8px}
#hostsView .host-facts,#servicesView .host-facts,#agentsView .host-facts{font-size:12px;gap:6px 20px;padding:9px 0;margin-top:10px}
#hostsView .actions,#servicesView .actions,#agentsView .actions{margin-top:10px}
.agent-chat-open{margin-top:14px}
.host-agents{margin:18px 0;padding-bottom:14px}
.host-agents-header{gap:8px}
.host-agents-header h3{font-size:14px}
.host-agent-list{margin-top:8px}
.host-agent-row{padding:7px 8px;gap:6px 16px}
.host-agent-row strong{font-size:13px}
.host-agent-row small{font-size:11px;margin-top:2px}
.host-agent-state{font-size:12px}
.host-application{padding:9px;border-color:var(--line);border-radius:5px}
#settingsView aside button{text-align:left;background:transparent;border-color:transparent}
#settingsView aside button:hover{background:var(--soft)}
.appearance{margin-top:18px;padding-top:12px}
.appearance label{display:inline-flex;align-items:center;padding:8px 10px;margin:4px 5px 0 0;font-size:13px}
.appearance legend{font-size:13px}
.accent-controls{gap:8px;margin:8px 0}
.accent-swatch{width:24px;height:24px;min-width:24px;border-radius:4px}
#cacheNotice{padding:6px 12px;font-size:12px}
@media(max-width:700px){
 .shell{display:block;min-height:0}
 .shell aside{padding:10px 12px}
 .content{padding:14px 16px}
 .section-rail{padding:4px 10px;gap:4px}
 .section-rail .section-item{width:44px;min-width:44px;height:44px}
 button{min-height:40px}
 input,select{font-size:16px}

 #hostsView .host,#servicesView .host,#agentsView .host{padding:6px 9px}
 #hosts .host{flex-basis:150px}
 #agentRows{display:flex;gap:5px;overflow:auto}
 #agentRows .host{flex:0 0 auto;width:max-content;min-width:150px;max-width:100%}
 #settingsView aside{display:flex;flex-direction:row;gap:4px;overflow:auto;padding:6px 10px}
 #settingsView aside button{flex:0 0 auto;font-size:12px;padding:6px 10px}
 .host-agent-row{grid-template-columns:minmax(0,1fr) auto;min-height:44px}
 .appearance label{min-height:44px}
}

@keyframes host-refresh-spin{to{transform:rotate(360deg)}}
#agentSearchEmpty{font-size:12px;color:var(--muted);margin:6px 0}

#status{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;padding:7px;border:0;background:transparent}
#status svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#status[aria-busy=true] svg{animation:host-refresh-spin .8s linear infinite}
@media(max-width:700px){#status{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){#status[aria-busy=true] svg{animation:none;opacity:.5}}

.host-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.host-title-row h2{min-width:0;margin:0}
#rename{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:8px;border:0;background:transparent;color:var(--muted)}
#rename svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){#rename{width:40px;height:40px}}
.service-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.service-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.service-row p{margin:3px 0}
#serviceDialog{width:min(660px,92vw);max-height:90dvh;overflow:auto}#serviceForm>label{display:block;margin:8px 0}
#serviceForm input:not([type=checkbox]),#serviceForm select{width:100%;box-sizing:border-box}
.service-model{display:flex;gap:6px;align-items:end;margin:8px 0}.service-model label{flex:1;min-width:0}
.service-grant{padding:8px 0}.service-binding{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.service-binding[hidden]{display:none}.service-binding input{min-width:0}#serviceForm fieldset{margin:12px 0}
@media(max-width:540px){.service-model{flex-wrap:wrap}.service-binding{grid-template-columns:1fr}}

/* Shared entity workspace contract: docs/panel-design.md.
   IDs are behavior hooks; layout belongs to these shared component classes. */
.entity-workspace {
  --entity-control-size: 36px;
  --entity-search-font-size: 13px;
}
.entity-workspace aside { gap: 6px; }
.entity-workspace aside > h2 { font-size: 16px; line-height: 20px; margin: 0; letter-spacing: 0; }
.entity-workspace aside > p:empty { display: none; }
.entity-search-toolbar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.entity-search-toolbar .search {
  flex: 1; box-sizing: border-box; min-width: 0;
  height: var(--entity-control-size); margin: 0; padding: 0 8px;
}
.entity-search-toolbar .search input {
  box-sizing: border-box; min-width: 0; height: 100%; margin: 0; padding: 0 8px;
  font-size: var(--entity-search-font-size); line-height: 20px;
}
.entity-search-toolbar > button, .entity-refresh {
  display: grid; place-items: center; flex: 0 0 var(--entity-control-size);
  width: var(--entity-control-size); height: var(--entity-control-size);
  padding: 7px; border: 0; background: transparent;
}
.entity-search-toolbar svg, .entity-refresh svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.entity-search-toolbar [aria-busy=true] svg, .entity-refresh[aria-busy=true] svg { animation: host-refresh-spin .8s linear infinite; }
.entity-workspace .host { display: block; width: 100%; text-align: left; }
.entity-workspace .host strong, .entity-workspace .host small { display: block; }
.entity-workspace .host-header { margin-top: 0; align-items: flex-start; }
.entity-workspace .host-header h2 { font-size: 23px; margin: 0; }
.entity-workspace .host-header p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
@media(max-width:700px) {
  .entity-workspace { --entity-control-size: 40px; --entity-search-font-size: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .entity-search-toolbar [aria-busy=true] svg, .entity-refresh[aria-busy=true] svg { animation: none; opacity: .5; }
}

.repository-tabs{display:flex;gap:4px;padding:4px 0;overflow-x:auto}
.repository-tabs button{flex-shrink:0;background:transparent;border-color:transparent;color:var(--muted)}
.repository-tabs button[aria-selected=true]{background:var(--soft);color:var(--accent);border-color:var(--line)}

.repository-tabs button{width:40px;height:40px;padding:9px;display:inline-flex;align-items:center;justify-content:center}

.repository-form{display:grid;gap:16px;max-width:720px;margin-top:20px}
.repository-form>label{display:grid;gap:8px}
.repository-form select{display:block;width:100%;min-height:42px;padding:10px 12px;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px}
.repository-form select:focus-visible{outline:3px solid #6da7ff;outline-offset:3px}
.repository-form select:disabled{opacity:.65}
.repository-form>button{justify-self:start}

.repository-form>label[hidden]{display:none}

#verificationInvitation {
  position: fixed;
  z-index: 10;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  max-inline-size: calc(100vw - 32px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
#verificationInvitation p { margin: 0 0 12px; overflow-wrap: anywhere; }

/* Host provider settings and the ordered harness list share the host detail layout. */
.runtime-block{margin:18px 0;padding:12px 0;border-top:1px solid var(--line)}
.runtime-header,.runtime-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.runtime-header{justify-content:space-between}
.runtime-block h3{font-size:14px;margin:0 0 5px}
.runtime-block p:empty,#hostProviderStatus:empty{display:none}
.runtime-block p,.runtime-row small{color:var(--muted);font-size:13px}
.runtime-list{list-style:none;padding:0;margin:8px 0}
.runtime-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding:7px 8px;border-bottom:1px solid var(--line)}
.runtime-row>div{min-width:0;overflow-wrap:anywhere}
.runtime-row strong,.runtime-row small{display:block}
.runtime-row small{margin-top:3px}
.runtime-row .actions,#agentsView .runtime-row .actions{margin-top:0}
.runtime-controls select,.agent-create .runtime-controls select{flex:1 1 180px;min-width:0;width:auto;margin:0}
#hostProviderDetails a{color:var(--accent);text-underline-offset:3px}
#hostProviderDetails .host-header{margin-top:0}
#agentInspect{margin-top:8px}

.runtime-edit {display:grid; gap:12px; max-width:36rem; margin:12px 0;}
.runtime-edit label {display:grid; gap:6px; min-width:0;}
.runtime-edit input {width:100%; min-width:0;}
#runtimeRoutesSave {display:block; margin-top:12px;}

#runtimeProvidersStatus:empty{display:none}
#runtimeProviderAddForm select{width:100%;min-width:0;margin-top:6px}
#hostProviderAccounts{margin-top:16px}
#hostProviderAccounts > .runtime-provider{margin:0;padding:10px 0;border:0;border-bottom:1px solid var(--line)}
#hostsView .runtime-provider .runtime-header .actions{margin:0}
.runtime-provider h3{margin:0;font-size:14px}
.runtime-provider .runtime-header button[aria-expanded]::after{
  content:"";display:inline-block;width:5px;height:5px;margin:0 1px 2px 8px;
  border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)
}
.runtime-provider .runtime-header button[aria-expanded=true]::after{transform:rotate(225deg);margin-bottom:0}
.runtime-provider small{color:var(--muted);overflow-wrap:anywhere}
.runtime-provider-accounts{margin-top:10px;padding:8px 12px;background:var(--side);border-radius:8px}
.runtime-provider-accounts .runtime-list{margin:0}
.runtime-provider-accounts .runtime-row{margin:0;padding:8px 0;border-left:0;overflow-wrap:anywhere}
.compact-provider-accounts .runtime-row>span{font-size:13px}
.runtime-provider-accounts .runtime-row:last-child{border-bottom:0}
.runtime-accounts-header{padding:2px 0 6px}
.runtime-accounts-header strong{font-size:13px}
#hostsView .runtime-account-actions{margin:0;align-items:center}
#hostsView .runtime-icon-button,#runtimeProviderLoginCopy{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;font-size:20px;line-height:1}
#runtimeProviderChallenge a{color:var(--accent);text-underline-offset:3px}
#runtimeProviderChallenge .runtime-controls{margin-top:10px}
#runtimeProviderChallenge code{font-size:16px;overflow-wrap:anywhere}
#runtimeProviderLoginCopyStatus:empty{display:none}
#runtimeProviderDeleteBlockers{color:var(--ink)}
#runtimeProviderLoginCopy svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linejoin:round;stroke-linecap:round}
#hostHarnessDialog{width:min(580px,calc(100vw - 32px));max-height:90vh;overflow:auto}
#hostHarnessDialog label{display:block;margin-top:16px}
#hostHarnessDialog input:not([type=checkbox]):not([type=radio]){width:100%}
#hostHarnessDialog select{display:block;width:100%;min-height:42px;margin-top:8px;padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:inherit}
#hostHarnessDialog select:disabled{color:var(--muted)}
#hostHarnessDialog fieldset{margin:20px 0;padding:12px 16px;border:1px solid var(--line)}
#hostHarnessDialog .host-harness-check{display:flex;gap:10px;align-items:center;margin:10px 0}
#hostHarnessDialog .host-harness-check input{width:auto;margin:0}
#hostHarnessEditStatus:empty,#hostHarnessAccountHint:empty{display:none}
#hostHarnessEditStatus{overflow-wrap:anywhere}
.host-harness-row>div:first-child{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.host-harness-row{align-items:flex-start;flex-direction:column}.host-harness-row .actions{align-self:flex-end}}

.host-harness-row,.host-harness-columns{display:grid;grid-template-columns:minmax(115px,1.3fr) minmax(100px,1fr) minmax(100px,1fr) 264px;gap:24px}
.host-harness-row{align-items:center}
.host-harness-row .actions{margin:0;flex-wrap:nowrap}
.host-harness-account{min-width:0;overflow-wrap:anywhere}
@media(max-width:1000px){.host-harness-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.host-harness-row>div:first-child{grid-column:1}.host-harness-account,.host-harness-access{grid-column:1}.host-harness-row .actions{grid-column:2;grid-row:1 / 4;align-self:start}}
@media(max-width:500px){.host-harness-row{grid-template-columns:minmax(0,1fr)}.host-harness-row .actions{grid-column:1;grid-row:auto;justify-self:start}}

.host-harness-columns{color:var(--muted);font-size:13px;padding:16px 0;border-bottom:1px solid var(--line)}
@media(max-width:1000px){.host-harness-columns{display:none}}

.host-harness-row{border-left:0;padding-left:0}

.agent-create-harness-fields{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.agent-create-harness-fields>div{flex:1 1 155px;min-width:0}
.agent-create-harness-fields label{font-size:13px;font-weight:600}
.agent-create-harness-fields button{min-height:42px}
#agentCreateDirectFields label{font-size:13px;font-weight:600}
#agentCreateDirect{padding-inline:0;margin-top:12px}

#operationsView{min-width:0}
.operations-header,.operation-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.operations-header{margin-bottom:16px}
.operations-header h2{margin:0}
.operation-filters input{width:min(280px,100%)}
.operation-filters select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px}
#operationAsOf{color:var(--muted);font-size:13px}
#operationsError:empty,#operationAsOf:empty{display:none}
#operationRows{overflow-x:auto}
.operations-table{width:100%;border-collapse:collapse;margin-top:16px;font-size:14px}
.operations-table th,.operations-table td{text-align:start;padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.operations-table th,.operations-table small{color:var(--muted);font-size:12px}
.operations-table td:first-child{font-family:ui-monospace,monospace;font-size:12px;max-width:18ch}
.operations-table td:last-child>button{display:block;margin-bottom:3px}
.operations-table .operation-objects{white-space:nowrap}
.operation-objects button{font:inherit;white-space:inherit;min-height:0;border:0;padding:0;background:transparent;text-align:start;color:var(--accent);text-decoration:underline}
.operation-state{white-space:nowrap}
.operation-state::before{display:inline-block;content:"";width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--muted)}
.operation-state[data-status=done]::before{background:#3b9360}
.operation-state[data-status=failed]::before{background:#ca614e}
.operation-state[data-status=running]::before{background:var(--accent)}
@media(max-width:700px){
 .operations-table{min-width:700px}
}
@media(max-width:700px){.section-rail{overflow-x:auto}}
@media(max-width:400px){.section-rail{gap:2px;padding-inline:4px}}

.repository-grants{margin-top:24px;max-width:720px}
.repository-grants header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.repository-grants h3{margin:0}
.repository-grant{margin-top:10px;padding:12px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.repository-grant p{margin:4px 0;color:var(--muted)}
.repository-grant .actions{margin-top:8px}

.agent-detail-links { display:flex; flex-wrap:wrap; gap:6px; }
#agentRepositoriesDialog { width:min(560px, calc(100% - 24px)); max-height:80vh; padding:18px; overflow:auto; }
#agentRepositoriesDialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#agentRepositoriesDialog h2 { margin:0; font-size:18px; }
#repositoryNotice:empty, #repositoryList:empty { display:none; }
#repositoryList { list-style:none; padding:0; margin:12px 0 0; }
#repositoryList > li { border-top:1px solid var(--line); padding:10px 0; overflow-wrap:anywhere; }
#repositoryList > li:last-child { padding-bottom:0; }
#repositoryList small { margin-top:2px; }
#repositoryList p { margin:6px 0 0; white-space:pre-line; }
#repositoryRefresh { margin-top:12px; }

.host-header-actions, .host-id { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#hostPlatform:empty { display:none; }
.host-indicator { font-size:12px; color:var(--host-secondary); }
#hostsView #hosts .host { display:flex; align-items:center; gap:8px; }
#hostsView #hosts .host strong { min-width:0; overflow-wrap:anywhere; }
#hostDetails h3 { margin:0; font-size:15px; }
.host-config, .host-apps { padding:16px 0; border-bottom:1px solid var(--line); }
#hostDetails .host-config h3 { margin-bottom:6px; }
.host-config button { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; max-width:460px; min-height:38px; padding:6px 8px; border:0; text-align:left; background:transparent; }
.host-config button:hover { background:var(--soft); }
.host-config button span + span, #hostAppCount { color:var(--host-secondary); font-weight:400; overflow-wrap:anywhere; }
.host-id { margin:12px 0; }
.host-id code { overflow-wrap:anywhere; min-width:0; user-select:all; }
#hostTechnical { margin-top:16px; }

.permission-page {display:block;overflow:auto;padding:24px;min-width:0}
.permission-header,.permission-filters,#permissionDialog header,#permissionDialog footer {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.permission-header,#permissionDialog header {justify-content:space-between}
.permission-header {margin:20px 0 12px}
.permission-header h2,.permission-header h3,#permissionDialog h2 {margin:0}
.permission-filters label,#permissionFields label {display:block;font-size:13px}
.permission-filters select,#permissionFields select,#permissionFields input:not([type=checkbox]) {display:block;max-width:100%;margin-top:5px}
.permission-table {overflow-x:auto;margin-bottom:20px}
.permission-table table {width:100%;border-collapse:collapse;font-size:13px}
.permission-table td,.permission-table th {padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
.permission-table th {color:var(--muted)}
#permissionDialog {width:min(460px,94vw);max-height:90vh;overflow:auto}
#permissionFields label {margin:12px 0}
#permissionFields .permission-check {display:flex;align-items:center;gap:8px}
.permission-check input {width:auto}
#permissionDialog footer {justify-content:flex-end}
#permissionError {color:var(--danger,#c64d49)}

#trackerView{min-width:0}
#trackerPath,.tracker-heading,#trackerActions,.tracker-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#trackerPath{min-height:24px;color:var(--muted);margin-bottom:12px}
#trackerPath:empty{display:none}
#trackerNotice button{margin-inline-start:8px}
#trackerPath button{padding:0;min-height:24px;border:0;background:transparent;color:var(--accent);text-decoration:underline}
.tracker-heading{justify-content:space-between}
.tracker-list-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 8px}
.tracker-list-heading h3{margin:0}
.tracker-heading h2{margin:0;overflow-wrap:anywhere}
#trackerNotice{color:var(--muted)}
#trackerNotice:empty{display:none}
.tracker-row{display:flex;width:100%;justify-content:space-between;align-items:baseline;gap:16px;padding:13px 2px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;border-radius:0}
.tracker-row:hover{background:var(--soft)}
.tracker-row strong,.tracker-row span{overflow-wrap:anywhere}
.tracker-row span,.tracker-secondary{color:var(--muted)}
.tracker-form{display:grid;gap:14px;max-width:620px;margin-top:18px}
.tracker-form label{display:grid;gap:5px;font-weight:600}
.tracker-form textarea,.tracker-form select,.tracker-assign select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:8px;max-width:100%}
.tracker-description,.tracker-result{white-space:pre-wrap;overflow-wrap:anywhere}
.tracker-assign{margin-block:18px}
.tracker-attempt{border-top:1px solid var(--line);padding-block:10px}
.tracker-attempt p{margin:4px 0}

.tracker-card-meta,.tracker-check{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tracker-card-meta{margin-block:10px 22px}
.tracker-card-section{max-width:900px;border-top:1px solid var(--line);padding-block:10px 16px}
.tracker-card-section .tracker-list-heading{margin-block:0 10px}
.tracker-check{padding-block:6px}
.tracker-check label{flex:1;min-width:10rem;overflow-wrap:anywhere}
.tracker-check input,.tracker-rights input{width:auto}
.tracker-rights{display:grid;gap:8px}
.tracker-rights label{display:block}
.tracker-comment{padding-block:8px}
.tracker-comment time{margin-inline-start:12px;color:var(--muted);font-size:.85em}
.tracker-comment p{margin-block:5px}
#mailboxBody{max-width:90ch}
#mailboxBody article{white-space:pre-wrap;overflow-wrap:anywhere;margin-block:1em}
.tracker-markdown{max-width:90ch;overflow-wrap:anywhere;line-height:1.5}
.tracker-markdown a{color:var(--accent)}
.tracker-markdown blockquote{margin-inline:0;border-inline-start:3px solid var(--line);padding-inline-start:1em}
.tracker-markdown code{background:var(--soft);padding:.1em .25em;border-radius:3px}
.tracker-markdown .markdown-code{background:var(--soft);padding:8px;border-radius:5px}
.tracker-markdown .markdown-code button{display:block;margin-inline-start:auto}
.tracker-markdown pre,.tracker-markdown .markdown-table{overflow-x:auto}
.tracker-markdown pre code{padding:0}
.tracker-markdown table{border-collapse:collapse}
.tracker-markdown :is(th,td){border:1px solid var(--line);padding:4px 8px}

#transferQR,#deviceLoginQR:not([hidden]){display:block;width:min(100%,300px);height:auto;margin:12px auto;image-rendering:pixelated}
