.hermes-preview{display:grid;grid-template-columns:minmax(190px,245px) minmax(0,1fr);gap:22px;align-items:start}.hermes-rail,.hermes-main{min-width:0}.hermes-rail{position:sticky;top:18px;padding:14px}.hermes-rail-title{padding:5px 10px 12px;color:var(--muted);font-size:.72rem;letter-spacing:.12em}.hermes-rail nav{display:grid;gap:4px}.hermes-rail button{display:flex;align-items:center;gap:11px;text-align:left;width:100%;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--text);padding:10px 11px;cursor:pointer;font:inherit;font-size:.9rem}.hermes-rail button:hover,.hermes-rail button[aria-current=true]{background:rgba(155,124,255,.14);border-color:rgba(155,124,255,.34)}.hermes-rail button .hm-icon{width:25px;text-align:center;color:var(--blue);font-size:1.1rem}.hermes-rail button .hm-count{margin-left:auto;color:var(--muted);font-size:.76rem}.hermes-main{display:grid;gap:18px}.hermes-demo-banner{display:flex;gap:13px;align-items:flex-start;padding:15px 18px;border:1px solid rgba(255,189,54,.32);background:rgba(255,189,54,.08);border-radius:15px}.hermes-demo-banner b{color:var(--amber)}.hermes-demo-banner p{margin:3px 0 0;color:var(--muted);font-size:.88rem}.hermes-module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.hermes-module-head h2{margin:0;font-size:1.55rem}.hermes-module-head p{margin:6px 0 0;color:var(--muted)}.hermes-tag{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 10px;background:rgba(113,201,255,.11);color:var(--blue);font-size:.75rem;white-space:nowrap}.hermes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.hermes-card{padding:18px;min-width:0}.hermes-card h3{margin:0 0 8px;font-size:1.05rem}.hermes-card p{color:var(--muted);line-height:1.55;margin:0 0 12px}.hermes-card small{color:var(--muted)}.hermes-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.hermes-row:first-of-type{border-top:0}.hermes-state{color:var(--mint);font-size:.82rem}.hermes-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.hermes-actions button,.hermes-filter{border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:rgba(255,255,255,.04);color:var(--text);font:inherit;cursor:pointer}.hermes-actions button:hover,.hermes-filter:hover{border-color:var(--violet)}.hermes-actions button:disabled{opacity:.5;cursor:not-allowed}.hermes-chat{display:grid;gap:12px}.hermes-chat-log{display:grid;gap:10px;max-height:390px;overflow:auto}.hermes-bubble{max-width:85%;padding:12px 15px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.04);line-height:1.5}.hermes-bubble.user{justify-self:end;background:rgba(155,124,255,.13)}.hermes-chat-form{display:flex;gap:10px}.hermes-chat-form input,.hermes-search{min-width:0;flex:1;border:1px solid var(--line);border-radius:11px;background:rgba(7,9,17,.65);color:var(--text);padding:12px;font:inherit}.hermes-search{max-width:400px}.hermes-empty{padding:22px;text-align:center;color:var(--muted)}.hermes-kv{display:grid;grid-template-columns:minmax(120px,.7fr) 1.3fr;gap:8px 15px}.hermes-kv span:nth-child(odd){color:var(--muted)}.hermes-code{font-family:ui-monospace,monospace;color:var(--blue)}.hermes-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hermes-lane{padding:13px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.hermes-lane h3{margin:0 0 12px}.hermes-lane article{padding:11px;margin:8px 0;border-radius:10px;background:rgba(255,255,255,.05);line-height:1.4}.hermes-progress{height:9px;border-radius:8px;background:rgba(255,255,255,.08);overflow:hidden}.hermes-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--violet),var(--blue));border-radius:8px}.hermes-notice{color:var(--muted);font-size:.82rem;margin-top:14px}.hermes-preview [hidden]{display:none!important}.hub-live-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:8px}.hub-live-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-width:0}.hub-live-entry{padding:17px;min-width:0;overflow-wrap:anywhere}.hub-live-entry h3{margin:0;font-size:1rem}.hub-live-entry p{margin:9px 0;color:var(--muted);line-height:1.5}.hub-live-entry small{color:var(--muted)}.hub-live-entry-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.hub-live-entry-top .hermes-tag{flex:none}@media(max-width:850px){.hermes-preview{grid-template-columns:1fr}.hermes-rail{position:static}.hermes-rail nav{display:flex;overflow:auto;padding-bottom:5px}.hermes-rail button{width:auto;white-space:nowrap}.hermes-grid{grid-template-columns:1fr}}@media(max-width:680px){.hub-live-list{grid-template-columns:1fr}.hub-live-entry-top{flex-wrap:wrap}.hub-live-toolbar{margin-top:10px;flex-wrap:wrap}}@media(max-width:540px){.hermes-board{grid-template-columns:1fr}.hermes-module-head{display:block}.hermes-chat-form{flex-direction:column}.hermes-kv{grid-template-columns:1fr}.hermes-kv span:nth-child(odd){margin-top:8px}}
.hermes-preview{container-type:inline-size}
@media(max-width:1100px){.hermes-preview{grid-template-columns:1fr}.hermes-rail{position:static}.hermes-rail nav{display:flex;overflow:auto;padding-bottom:5px}.hermes-rail button{width:auto;white-space:nowrap}}


/* Hermes tools are first-class entries directly below Library in the primary rail. */
@media(min-width:851px){
 #app-shell .tabs{max-height:calc(100vh - 235px);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#5a4b79 transparent}
 #app-shell .hermes-menu-group{display:grid;gap:5px;padding-top:9px;margin-top:4px;}
 #app-shell .hermes-menu-title{display:flex;align-items:center;gap:14px;min-height:34px;padding:3px 13px;color:#9c94ae;font:600 11px/1.3 system-ui,sans-serif;letter-spacing:1.6px}
 #app-shell .hermes-menu-title .nav-icon{border:0!important;background:transparent!important;color:#71c9ff!important}
 #app-shell .hermes-menu-items{display:grid;gap:5px}
 #app-shell .hermes-menu-item{width:100%;min-height:48px;display:flex;align-items:center;justify-content:flex-start;gap:14px;padding:8px 13px;border:1px solid transparent;border-radius:11px;color:#a7a2b2;text-decoration:none;font:600 16px/1.35 system-ui,sans-serif;letter-spacing:.2px;text-align:left}
 #app-shell .hermes-menu-item[aria-current="page"]{background:#f6f5fa;color:#17151e}
 #app-shell .hermes-menu-item .nav-icon{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border:1px solid #ffffff24;border-radius:9px;color:#c5a8ff;font-size:20px;line-height:1}
 #app-shell.nav-collapsed .hermes-menu-title{justify-content:center;padding-inline:8px}
 #app-shell.nav-collapsed .hermes-menu-title .nav-label,#app-shell.nav-collapsed .hermes-menu-item .nav-label{display:none!important}
}
@media(max-width:850px){
 #app-shell .hermes-menu-group{display:contents}
 #app-shell .hermes-menu-title{display:none}
 #app-shell .hermes-menu-items{display:contents}
 #app-shell .hermes-menu-item{display:flex;align-items:center;min-height:43px;gap:9px;white-space:nowrap}
}
/* Orientação e foco para a navegação demonstrativa. */
#app-shell .hermes-menu-item:hover{background:rgba(155,124,255,.14);color:var(--text)}
#app-shell .hermes-menu-item:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
#app-shell .hermes-menu-item[aria-current="page"]{background:#d8c5ff;color:#21162f;border-color:#c5a8ff}
#app-shell .hermes-menu-item[aria-current="page"] .nav-icon{color:#44286d;border-color:#44286d55}
#app-shell .hermes-module-head{flex-wrap:wrap}
#app-shell .hermes-tag{white-space:normal;overflow-wrap:anywhere;max-width:100%}
#app-shell .hermes-card h3{overflow-wrap:anywhere}
#app-shell .connection-pill{white-space:normal;text-align:center}
@media(max-width:1100px){#app-shell .hermes-grid{grid-template-columns:1fr}}

/* Sem submenu interno: o conteudo ocupa toda a largura disponivel. */
#app-shell .hermes-preview{grid-template-columns:minmax(0,1fr)}

#app-shell.engine-focused .system-state,#app-shell.engine-focused .preview-notice{display:none}
.hub-engine-frame{display:block;width:100%;height:max(560px,calc(100dvh - 180px));border:1px solid var(--line);border-radius:16px;background:#11111b;min-width:0}
.hub-engine-status{padding:10px 14px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:.9rem}
.hub-engine-status[hidden]{display:none!important}
@media(max-width:540px){.hub-engine-frame{height:max(580px,calc(100dvh - 150px));border-radius:12px}}

/* Recuperação do painel sem alterar sessão ou dados. */
.hub-engine-status{margin-bottom:12px;background:#eef3fb;color:#26374e;border-color:#b9c9df;line-height:1.6}.hub-engine-status p{margin:0 0 8px}.hub-engine-status p:last-child{margin-bottom:0}.hub-engine-status[data-state=error],.hub-engine-status[data-state=timeout]{background:#fff4d6;color:#5b3900;border-color:#c79a37}.hub-engine-status[data-state=login]{background:#edf4ff;color:#26374e}.hub-engine-status button{min-height:44px;color:#26374e;background:#fff;border:1px solid #8a9eb8;border-radius:8px;padding:8px 14px;font:inherit;cursor:pointer}.hub-engine-status button:focus-visible{outline:3px solid #6c49a5;outline-offset:3px}.hub-engine-guide{color:#46516a;line-height:1.6;margin:0 0 12px;overflow-wrap:anywhere}

.hub-engine-status [hidden]{display:none!important}

/* Painéis próprios do Hub360 — sem frontend incorporado. */
.hub-native-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.hub-live-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.hub-native-search{flex:1;min-width:180px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font:inherit}.hub-native-feedback{color:var(--muted);font-size:.85rem;margin-bottom:12px}.hub-native-dialog{width:min(620px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--text);background:var(--bg);box-shadow:0 20px 80px #0006}.hub-native-dialog::backdrop{background:#0008}.hub-native-dialog form{display:grid;gap:16px}.hub-native-dialog h2,.hub-native-dialog p{margin:0}.hub-native-dialog label{display:grid;gap:7px}.hub-native-dialog input,.hub-native-dialog textarea,.hub-native-dialog select{width:100%;padding:12px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:inherit}.hub-native-dialog textarea{min-height:200px;resize:vertical}.hub-native-log{white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:12px;max-height:65dvh;overflow:auto}.hub-native-actions button,.hub-native-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.hub-live-entry{overflow-wrap:anywhere}.hub-native-dialog :focus-visible,.hub-native-search:focus-visible{outline:2px solid var(--violet);outline-offset:3px}

/* Fluxos próprios: formulários longos e edição acessíveis. */
.hub-native-dialog{max-height:90dvh;overflow-y:auto}.hub-native-dialog textarea{min-height:180px;resize:vertical;white-space:pre-wrap}.hub-native-dialog input[type=file]{max-width:100%;padding:12px 0}.hub-native-dialog label{overflow-wrap:anywhere}.hub-live-toolbar{flex-wrap:wrap}.hub-native-actions{flex-wrap:wrap}.hub-live-entry h3,.hub-live-entry p{overflow-wrap:anywhere}.hub-native-dialog button:disabled{opacity:.6;cursor:wait}

/* Clareza de acesso e estados de integrações — Hub360. */
.hub-native-access{padding:10px 14px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--panel);font-size:.88rem;line-height:1.5;overflow-wrap:anywhere}.hub-native-access[data-state=admin],.hub-native-access[data-state=expired]{border-left:3px solid var(--violet)}.hub-integration-state{display:grid;grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr);gap:7px 14px;margin:14px 0;font-size:.88rem;line-height:1.5}.hub-integration-state dt{color:var(--muted)}.hub-integration-state dd{margin:0;color:var(--text);overflow-wrap:anywhere}.hub-integration-hint{font-size:.84rem}.hub-native-dialog [role=alert]{line-height:1.5;overflow-wrap:anywhere}.hub-native-dialog [role=alert] button{margin-top:10px;min-height:44px}.hub-native-access[hidden]{display:none!important}@media(max-width:540px){.hub-integration-state{grid-template-columns:minmax(0,1fr);gap:3px}.hub-integration-state dd{margin-bottom:8px}.hub-native-search{min-width:0;width:100%}}

.hub-native-dialog[data-native-login]{padding:20px;font-size:16px}.hub-native-dialog[data-native-login] form{gap:12px}.hub-native-dialog[data-native-login] h2{font-size:1.35rem;line-height:1.25}.hub-native-dialog[data-native-login] p{font-size:.9rem;line-height:1.5}.hub-native-dialog[data-native-login] :is(input,select){font-size:16px;min-height:44px}.hub-native-dialog[data-native-login] .hub-native-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:4px}.hub-native-dialog[data-native-login] .hub-native-actions button{width:100%;min-width:0;min-height:44px;font-size:16px;padding:10px;white-space:normal}

html[data-theme="light"] .hub-native-access{background:#f7f7f8;color:#242424;border-color:#d3d3d8}html[data-theme="light"] .hub-integration-state dt{color:#565660}html[data-theme="light"] .hub-integration-state dd{color:#242424}html[data-theme="light"] #hermes-preview :is(.hub-live-toolbar,.hub-native-actions) .hermes-filter{color:#303039;background:#fff;border-color:#bfc0c9}html[data-theme="light"] #hermes-preview .hermes-tag{color:#185573;background:#edf5fa}html[data-theme="light"] .hub-native-dialog[data-native-login]{background:#fff;color:#242424;border-color:#bfc0c9}html[data-theme="light"] .hub-native-dialog[data-native-login] :is(input,select){background:#fff;color:#242424;border-color:#a7a7b2}html[data-theme="light"] .hub-native-dialog[data-native-login] .hermes-filter{background:#f7f7f8;color:#242424;border-color:#bfc0c9}html[data-theme="light"] .hub-native-dialog[data-native-login] .primary-action{color:#21162f}@media(max-width:540px){#hermes-preview .hub-native-search{flex:1 0 100%;width:100%;order:2}}

.hub-operation-list{display:grid;gap:12px;min-width:0}.hub-operation-list .hub-live-entry{padding:12px}.hub-operation-list .hub-live-entry-top{flex-wrap:wrap}.hub-operation-list button{min-height:44px}.hub-native-dialog .hub-operation-list .hermes-tag{white-space:normal}html[data-theme="light"] .hub-operation-list .hermes-filter{color:#242424;background:#fff;border-color:#bfc0c9}

.hub-native-dialog [hidden]{display:none!important}

/* Histórico compacto, com ações sempre acessíveis e lista com rolagem própria. */
.hub-native-dialog:is([data-operation-history],[data-operation-result]){font-size:16px;padding:20px}
.hub-native-dialog:is([data-operation-history],[data-operation-result]) h2{font-size:24px;line-height:1.25}
.hub-native-dialog:is([data-operation-history],[data-operation-result]) p{font-size:15px;line-height:1.5}
.hub-native-dialog:is([data-operation-history],[data-operation-result]) [role=alert]:empty{display:none}
.hub-native-dialog[data-operation-history] form{height:min(78dvh,650px);max-height:calc(90dvh - 40px);display:flex;flex-direction:column;gap:12px;overflow:hidden}
.hub-native-dialog[data-operation-history] form>h2,.hub-native-dialog[data-operation-history] form>p,.hub-native-dialog[data-operation-history] form>.hub-native-actions{flex-shrink:0}
.hub-native-dialog[data-operation-history] .hub-operation-list{flex:1;min-height:0;overflow:auto;padding-right:4px;align-content:start}
.hub-native-dialog[data-operation-history] .hub-native-actions{margin-top:0}
.hub-operation-list .hub-live-entry h3{font-size:16px}
.hub-native-dialog .hub-operation-list .hub-live-entry p{font-size:14px}
.hub-native-dialog:is([data-operation-history],[data-operation-result]) button{font-size:16px;min-height:44px}
.hub-native-dialog[data-operation-result] textarea{font-size:16px;min-height:230px;max-height:45dvh}
html[data-theme="light"] .hub-native-dialog:is([data-operation-history],[data-operation-result]){background:#fff;color:#242424;border-color:#bfc0c9}
html[data-theme="light"] .hub-operation-list .hub-live-entry{background:#fff;background-image:none;border-color:#d3d3d8;color:#242424}
html[data-theme="light"] .hub-operation-list .hub-live-entry :is(h3,p){color:#303039}
html[data-theme="light"] .hub-operation-list .hermes-tag{background:#edf5fa;color:#185573}
html[data-theme="light"] .hub-native-dialog[data-operation-result] :is(textarea,.hermes-filter){background:#fff;color:#242424;border-color:#bfc0c9}

html[data-theme="light"] .hub-native-dialog[data-operation-history] .hub-native-actions .hermes-filter{background:#fff;color:#242424;border-color:#bfc0c9}

/* M07: revisão de conexão com conteúdo compacto e ações legíveis nos dois temas. */
.hub-native-dialog[data-mcp-review]{font-size:16px;padding:20px}
.hub-native-dialog[data-mcp-review] form{gap:12px;min-width:0}
.hub-native-dialog[data-mcp-review] h2{font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.hub-native-dialog[data-mcp-review] p{font-size:14px;line-height:1.5}
.hub-native-dialog[data-mcp-review] label{font-size:15px;min-width:0}
.hub-native-dialog[data-mcp-review] textarea{font-size:15px;line-height:1.5;min-height:130px;max-height:25dvh}
.hub-native-dialog[data-mcp-review] :is(select,button){font-size:16px;min-height:44px;max-width:100%}
.hub-native-dialog[data-mcp-review] [role=alert]:empty{display:none}
html[data-theme=light] .hub-native-dialog[data-mcp-review]{background:#fff;color:#242424;border-color:#bfc0c9}
html[data-theme=light] .hub-native-dialog[data-mcp-review] :is(textarea,select,.hermes-filter){background:#fff;color:#242424;border-color:#bfc0c9}
@media(max-width:540px){.hub-native-dialog[data-mcp-review]{padding:16px}.hub-native-dialog[data-mcp-review] .hub-native-actions{display:grid;grid-template-columns:1fr;gap:8px}}

/* M08: autorização OAuth com conteúdo compacto e ações legíveis nos dois temas. */
.hub-native-dialog[data-mcp-oauth]{font-size:16px;padding:20px}
.hub-native-dialog[data-mcp-oauth] form{gap:12px;min-width:0}
.hub-native-dialog[data-mcp-oauth] h2{font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.hub-native-dialog[data-mcp-oauth] p{font-size:14px;line-height:1.5}
.hub-native-dialog[data-mcp-oauth] label{font-size:15px;min-width:0}
.hub-native-dialog[data-mcp-oauth] textarea{font-size:15px;line-height:1.5;min-height:130px;max-height:25dvh}
.hub-native-dialog[data-mcp-oauth] :is(select,button){font-size:16px;min-height:44px;max-width:100%}
.hub-native-dialog[data-mcp-oauth] [role=alert]:empty{display:none}
html[data-theme=light] .hub-native-dialog[data-mcp-oauth]{background:#fff;color:#242424;border-color:#bfc0c9}
html[data-theme=light] .hub-native-dialog[data-mcp-oauth] :is(textarea,select,.hermes-filter){background:#fff;color:#242424;border-color:#bfc0c9}
@media(max-width:540px){.hub-native-dialog[data-mcp-oauth]{padding:16px}.hub-native-dialog[data-mcp-oauth] .hub-native-actions{display:grid;grid-template-columns:1fr;gap:8px}}

html[data-theme=light] .hub-native-dialog[data-mcp-oauth] .hub-live-entry{background:#fff;background-image:none;border-color:#d3d3d8;color:#242424}
html[data-theme=light] .hub-native-dialog[data-mcp-oauth] .hub-live-entry :is(h3,p){color:#303039}

/* M12: scoped file consultation, existing layout/tokens preserved. */
.hub-native-dialog[data-file-versions] :is(h2,h3,p,label,button){overflow-wrap:anywhere;min-width:0}
.hub-native-dialog[data-file-versions] :is(select,textarea){width:100%;min-width:0;max-width:100%;font-size:15px}
.hub-native-dialog[data-file-versions] textarea{line-height:1.5;min-height:120px;max-height:30dvh;white-space:pre-wrap}
.hub-native-dialog[data-file-versions] .hub-native-actions{flex-wrap:wrap}
html[data-theme=light] .hub-native-dialog[data-file-versions]{background:#fff;color:#242424;border-color:#bfc0c9}
html[data-theme=light] .hub-native-dialog[data-file-versions] :is(textarea,select,.hermes-filter,.hub-live-entry){background:#fff;color:#242424;border-color:#bfc0c9}
html[data-theme=light] .hub-native-dialog[data-file-versions] .hub-live-entry :is(h3,p){color:#303039}
@media(max-width:540px){.hub-native-dialog[data-file-versions]{padding:16px}.hub-native-dialog[data-file-versions] .hub-native-actions{display:grid;grid-template-columns:1fr;gap:8px}.hub-native-dialog[data-file-versions] button{width:100%;min-height:44px}}

/* M13: keep source results readable inside the existing dialog. */
.hub-native-dialog[data-skill-search] :is(h2,h3,p,button){overflow-wrap:anywhere;min-width:0}
.hub-native-dialog[data-skill-search] :is(input,select){min-width:0;max-width:100%;width:100%}
.hub-native-dialog[data-skill-search] .hub-native-actions{flex-wrap:wrap}

.hub-native-dialog[data-skill-search] :is(form,section,label,.hub-live-entry,.hub-native-actions){min-width:0;max-width:100%}
.hub-native-dialog[data-skill-search] .hub-live-entry-top{flex-wrap:wrap;min-width:0}
.hub-native-dialog[data-skill-search] .hermes-tag{white-space:normal;overflow-wrap:anywhere;max-width:100%}
@media(max-width:540px){.hub-native-dialog[data-skill-search]{padding:16px}.hub-native-dialog[data-skill-search] .hub-native-actions{display:grid;grid-template-columns:1fr;gap:8px}.hub-native-dialog[data-skill-search] button{min-height:44px}}

/* M14: routine metadata and forms, existing layout/tokens preserved. */
[data-cron-routine] :is(h3,p,dd,dt,.hermes-tag){overflow-wrap:anywhere;min-width:0;white-space:normal}
[data-cron-routine] .hub-live-entry-top{flex-wrap:wrap}
.hub-native-dialog[data-cron-form] :is(h2,h3,p,label,button,textarea){overflow-wrap:anywhere;min-width:0}
.hub-native-dialog[data-cron-form] :is(form,select,input,textarea){min-width:0;max-width:100%}
.hub-native-dialog[data-cron-form] label[hidden]{display:none}
.hub-native-dialog[data-cron-form] textarea[readonly]{max-height:30dvh;min-height:140px;white-space:pre-wrap}
@media(max-width:540px){.hub-native-dialog[data-cron-form]{padding:16px}.hub-native-dialog[data-cron-form] .hub-native-actions{display:grid;grid-template-columns:1fr;gap:8px}.hub-native-dialog[data-cron-form] button{min-height:44px}}

/* M15: read-only webhook diagnostics and local signature check. */
.hub-native-dialog[data-webhook-diagnostics] :is(h2,h3,p,label,button,textarea){overflow-wrap:anywhere;min-width:0}
.hub-native-dialog[data-webhook-diagnostics] :is(form,input,select,textarea){min-width:0;max-width:100%}
.hub-native-dialog[data-webhook-diagnostics] label[hidden]{display:none}
.hub-native-dialog[data-webhook-diagnostics] textarea[readonly]{max-height:40dvh;min-height:160px;white-space:pre-wrap}
.hub-native-dialog[data-webhook-diagnostics] .hub-native-actions{flex-wrap:wrap}
@media(max-width:540px){.hub-native-dialog[data-webhook-diagnostics]{padding:16px}.hub-native-dialog[data-webhook-diagnostics] .hub-native-actions{display:grid;grid-template-columns:1fr;gap:8px}.hub-native-dialog[data-webhook-diagnostics] button{min-height:44px}}

/* M16: scoped log filters and bounded page, retaining current theme tokens. */
.hub-log-filters{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.hub-log-filters label{display:flex;flex-direction:column;gap:6px;min-width:150px;flex:1}.hub-log-filters input,.hub-log-filters select{box-sizing:border-box;width:100%;min-height:42px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:inherit;font:inherit;color-scheme:dark light}.hub-log-items{display:grid;gap:12px}.hub-log-items .hermes-card{min-width:0;overflow-wrap:anywhere}.hub-log-status{overflow-wrap:anywhere}.hub-log-filters input[type=date]{min-width:0}@media(max-width:500px){.hub-log-filters label{flex-basis:100%;min-width:0}.hub-log-items .hermes-card{width:100%;box-sizing:border-box}}

/* M17: visible focus and reflow, without changing stored preferences or layout. */
:root{--hub-focus:#8ed7ff}html[data-theme=light]{--hub-focus:#1855a5}
#app-shell :is(a,button,input,select,textarea,[tabindex]):focus-visible,.hub-native-dialog :focus-visible{outline:3px solid var(--hub-focus)!important;outline-offset:3px}
.hub-skip-link{position:fixed;top:8px;left:72px;z-index:1000;padding:12px 18px;border-radius:8px;background:#fff;color:#202020;font-weight:600;transform:translateY(-180%)}.hub-skip-link:focus{transform:none}
.hub-native-dialog{box-sizing:border-box;max-width:calc(100vw - 24px);scroll-padding:18px}.hub-native-dialog :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%}.hub-native-dialog :is(h2,p,label,[role=alert],[role=status]){overflow-wrap:anywhere}.hub-native-dialog [role=alert]:empty,.hub-native-dialog [data-form-progress]:empty{display:none}.hub-native-dialog [role=alert]{color:#ffb9b9}.hub-native-dialog [data-form-progress]{color:var(--text)}
html[data-theme=light] .hub-native-dialog{background:#fff;color:#242424;border-color:#71717a}html[data-theme=light] .hub-native-dialog :is(input,select,textarea){background:#fff;color:#242424;border-color:#71717a}html[data-theme=light] .hub-native-dialog [role=alert]{color:#9b1c1c}
.hub-log-filters :is(input,select){border-color:var(--line);color:var(--text)}
@media(max-width:640px){.hub-native-dialog{padding:16px}.hub-native-dialog .hub-native-actions{flex-wrap:wrap}.hub-native-dialog .hub-native-actions>*{max-width:100%;white-space:normal;overflow-wrap:anywhere}.minimal-pagebar{min-width:0}}

/* M20: bounded read-only search, scoped to its existing native dialog. */
.hub-native-dialog[data-cross-search]{width:760px}.hub-cross-coverage{font-size:.9em}.hub-cross-results{display:grid;gap:12px;margin:14px 0}.hub-cross-results .hub-live-entry{min-width:0;overflow-wrap:anywhere}.hub-cross-results button{min-height:44px}.hub-native-dialog[data-cross-search] :is(h3,p,span){overflow-wrap:anywhere}.hub-native-dialog[data-cross-search] .hub-native-actions{flex-wrap:wrap;gap:8px}
