/* A quiet native workspace. Existing modules own layout, data, focus and controls. */
:root{
  --bg:#14161a;--panel:#1d2026;--border:#333841;--line:#333841;
  --ink:#eef1f6;--muted:#a6afbd;--accent:#9ab8f5;--green:#8ccdad;--amber:#e5bd7e;--red:#efa2aa;
  --cc-soft:#262b34;--pw-soft:#191c22;--pw-elevated:#252a32;
  --pw-accent:#9ab8f5;--pw-accent-ink:#15223c;--pw-shadow:0 12px 36px #00000030;
  --pw-radius:12px;--pw-duration:160ms;--pw-ease:cubic-bezier(.2,.8,.2,1);
  --cc-motion:160ms;--cc-ease:cubic-bezier(.2,.8,.2,1);
  --au-violet:var(--muted);--au-cyan:var(--accent);--au-surface:var(--panel);
  --au-edge:transparent;--au-grid:transparent;--au-shadow:none;--au-tint:transparent;
  --ex-line:#4c596e;--ex-glow:#9ab8f510;color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#f3f4f7;--panel:#ffffff;--border:#d9dde5;--line:#d9dde5;
  --ink:#242b35;--muted:#646f7f;--accent:#365fba;--green:#287d53;--amber:#946316;--red:#b74354;
  --cc-soft:#e9edf3;--pw-soft:#f6f7f9;--pw-elevated:#f0f2f6;
  --pw-accent:#365fba;--pw-accent-ink:#fff;--pw-shadow:0 12px 36px #1a253518;
  --ex-line:#b8c6df;--ex-glow:#365fba0c;color-scheme:light;
}
body.aurora-hub{background:var(--bg);font-family:'Segoe UI Variable Text','Segoe UI',system-ui,sans-serif;font-feature-settings:"ss01" 1;letter-spacing:0}
body.aurora-hub .workspace{background:transparent}
body.aurora-hub :is(.sidebar,.topbar){background:var(--bg);backdrop-filter:none;box-shadow:none}
body.aurora-hub .sidebar{border-right-color:var(--border);padding:16px 12px 12px;background-image:none}
body.aurora-hub .brand{gap:10px;margin-bottom:16px;font-size:24px;letter-spacing:-1px}
body.aurora-hub .brand-mark{width:34px;height:34px;border-radius:10px;background:var(--cc-soft);border:1px solid var(--border);color:var(--accent);box-shadow:none;text-shadow:none}
body.aurora-hub .brand-mark span{color:var(--accent)}
body.aurora-hub .brand-caption{font-size:8px;letter-spacing:1px;margin-top:2px;color:var(--muted)}
body.aurora-hub nav{gap:2px;scrollbar-color:var(--border) transparent;scroll-padding:8px}
body.aurora-hub nav a{min-height:36px;padding:7px 10px;border:1px solid transparent;border-radius:8px;color:var(--muted);transition:background-color 140ms,color 140ms,border-color 140ms;transform:none}
body.aurora-hub nav a .cc-nav-label{font-size:12px;font-weight:500;letter-spacing:0}
body.aurora-hub nav a .cc-icon{width:18px;height:18px;opacity:.85;flex:none}
body.aurora-hub nav a.active{background:var(--cc-soft);border-color:var(--border);color:var(--ink);box-shadow:none}
body.aurora-hub nav a.active::before{display:none}
body.aurora-hub nav a.active .cc-icon{color:var(--accent);opacity:1}
body.aurora-hub nav a:hover{background:var(--pw-elevated);color:var(--ink);transform:none}
body.aurora-hub .pw-nav-section{font-size:9px;font-weight:600;letter-spacing:.8px;color:var(--muted);padding-top:12px}
body.aurora-hub nav small{font-size:9px;font-variant-numeric:tabular-nums;background:var(--panel);border:1px solid var(--border);color:var(--muted)}
body.aurora-hub .sidebar-bottom{padding:10px 8px 0;margin-top:10px;color:var(--muted);font-size:10px;background:transparent}
body.aurora-hub .sidebar-bottom p{font-size:9px;line-height:1.5}
body.aurora-hub .sidebar-bottom button{color:var(--muted);min-height:28px;margin-top:6px}
body.aurora-hub .sidebar-bottom .local-dot{box-shadow:none}
body.aurora-hub .topbar{border-bottom-color:var(--border)}
body.aurora-hub .topbar::after{display:none}
body.aurora-hub .breadcrumb{font-size:11px;color:var(--muted);letter-spacing:0}
body.aurora-hub .breadcrumb strong{font-size:12px;font-weight:600;color:var(--ink)}
body.aurora-hub .breadcrumb span{color:var(--muted)}
body.aurora-hub .mode{font-size:9px;letter-spacing:.7px;color:var(--muted);background:var(--panel);border-color:var(--border);border-radius:5px}
body.aurora-hub :is(.cc-palette-trigger,.pw-activity-button){min-height:32px;color:var(--muted);background:transparent;border-color:var(--border);box-shadow:none}
body.aurora-hub :is(kbd,.cc-palette-trigger kbd){background:var(--pw-soft);border:1px solid var(--border);border-radius:4px;color:var(--muted);box-shadow:none;padding:2px 4px}
@media(min-width:651px){body.aurora-hub .sidebar nav{overflow-x:hidden}}

/* Content hierarchy and density; no decorative hero treatment. */
body.aurora-hub :is(h1,h2,h3){font-family:'Segoe UI Variable Display','Segoe UI',system-ui,sans-serif;letter-spacing:-.025em;color:var(--ink)}
body.aurora-hub :is(h1,.page-head h1,.ex-workspace-head h1){font-size:27px;font-weight:650;line-height:1.2}
body.aurora-hub :is(.page-head,.ex-workspace-head){margin-bottom:18px;gap:14px}
body.aurora-hub .eyebrow{font-size:10px;font-weight:600;letter-spacing:.9px;color:var(--muted)}
body.aurora-hub .intro{font-size:13px;line-height:1.6;color:var(--muted)}
body.aurora-hub :is(.card,.project-card,.stat,.ex-metric,.cc-machine-card,.cc-container-card,.pw-vm-card,.mc-app-card,.mc-title-card,.wr-project-row,.hc-device,.gw-repository-card,.fr-card,.as-card,.sw-card,.mks-job,.hw-profile,.hw-session,.hw-task,.hw-run,.fw-file-card,.ix-indexer,.ix-stat,.pw-rom-card){background:var(--panel);border-color:var(--border);border-radius:12px;box-shadow:none}
body.aurora-hub :is(.ex-metric,.stat){padding:12px 15px}
body.aurora-hub :is(.ex-metric,.stat)::after{display:none}
body.aurora-hub :is(.ex-metric>strong,.stat>strong){font-size:25px;font-weight:600;letter-spacing:-.6px;line-height:1.2;margin:5px 0;font-variant-numeric:tabular-nums}
body.aurora-hub .ex-metric>.cc-icon{color:var(--muted);opacity:.7}
body.aurora-hub :is(.cc-platform-glyph,.cc-container-glyph,.ex-hero-art,.mc-app-glyph,.ex-torrent-type){background:var(--pw-soft);border:1px solid var(--border);border-radius:10px;box-shadow:none}
body.aurora-hub .ex-hero-art{width:50px;height:50px}
body.aurora-hub .ex-hero-art>.ex-art-frame{width:34px;height:34px}
body.aurora-hub .cc-machine-open{padding:16px}
body.aurora-hub .cc-machine-open strong{font-size:15px;font-weight:600;letter-spacing:-.2px;margin-top:12px}
body.aurora-hub .cc-container-open{padding:14px 16px}
body.aurora-hub .cc-container-open strong{font-size:15px;font-weight:600;letter-spacing:-.2px}
body.aurora-hub :is(.cc-machine-address,.cc-machine-roles,.cc-container-open p){color:var(--muted)}
body.aurora-hub :is(.cc-container-actions,.pw-container-access,.card-footer){background:transparent;border-color:var(--border)}
body.aurora-hub .cc-container-actions{padding:10px 16px}
body.aurora-hub .chip{border-radius:5px;font-size:10px;padding:3px 6px;font-weight:500}
body.aurora-hub .chip.running{color:var(--green);background:color-mix(in srgb,var(--green) 8%,var(--panel));border-color:color-mix(in srgb,var(--green) 24%,var(--border))}
body.aurora-hub :is(.chip.attention,.chip.unreachable){color:var(--amber);background:color-mix(in srgb,var(--amber) 8%,var(--panel));border-color:color-mix(in srgb,var(--amber) 24%,var(--border))}
body.aurora-hub .chip.inactive{color:var(--red);background:color-mix(in srgb,var(--red) 7%,var(--panel));border-color:color-mix(in srgb,var(--red) 24%,var(--border))}
body.aurora-hub .chip.unknown{color:var(--muted);background:var(--pw-soft);border-color:var(--border)}
body.aurora-hub :is(.note,.ex-policy,.ex-detail-evidence,.ex-blocks,.wr-advanced-intro a,.hw-notice,.ai-policy){background:var(--pw-soft);border-color:var(--border);border-radius:9px;color:var(--muted)}
body.aurora-hub :is(.attention-row,.ex-error){background:var(--panel);border-color:color-mix(in srgb,var(--amber) 32%,var(--border));border-radius:10px}

/* Ordinary controls use a small set of stable, native states. */
body.aurora-hub :is(button,.link-button){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
body.aurora-hub :is(.link-button,.cc-primary,.cc-new-chat,.pw-send,.ix-search-submit,.audra-main-play){background:var(--pw-accent);color:var(--pw-accent-ink);border:1px solid transparent;border-radius:8px;box-shadow:none;font-weight:600;min-height:34px}
body.aurora-hub .cc-new-chat{min-height:36px;margin-bottom:12px;font-size:12px;letter-spacing:0}
body.aurora-hub :is(.cc-secondary,.ex-action,.mc-page-button,.tp-control,.sw-control,.ix-button,.audra-button){background:var(--pw-elevated);color:var(--ink);border:1px solid var(--border);border-radius:8px;box-shadow:none;min-height:32px}
body.aurora-hub :is(button,.link-button):not(:disabled):active{transform:scale(.985)}
body.aurora-hub :is(button,.link-button):disabled{opacity:.5;box-shadow:none;filter:none}
body.aurora-hub :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:none}
body.aurora-hub :is(input,select,textarea){border-color:var(--border);background:var(--pw-soft);border-radius:8px;color:var(--ink);caret-color:var(--accent)}
body.aurora-hub :is(input,textarea)::placeholder{color:var(--muted);opacity:.8}
body.aurora-hub :is(input,select,textarea):focus{border-color:var(--accent)}
body.aurora-hub input:is([type="checkbox"],[type="radio"]){accent-color:var(--accent);box-shadow:none}
body.aurora-hub :is(.cc-filters,.ex-filter-bar,.mc-toolbar,.gw-toolbar,.iw-toolbar,.fw-toolbar){background:var(--panel);border-color:var(--border);border-radius:10px;box-shadow:none;padding:10px}
body.aurora-hub :is(.ex-search,.cc-search){background:var(--pw-soft);border-color:var(--border);border-radius:7px}
body.aurora-hub :is(.ex-inventory,.pw-table,.ex-data-scroll,.iw-results,.fw-browser,.gw-list,.sw-list,.mks-jobs){background:var(--panel);border-color:var(--border);border-radius:10px}
body.aurora-hub :is(.ex-resource-row,.wr-project-open,.fw-entry,.iw-release,.gw-repo-row,.sw-unit-row){color:var(--ink);border-bottom-color:var(--border)}
body.aurora-hub :is(.ex-list-head,.pw-table th,.ex-data-table th,.mks-table th){background:var(--pw-soft);color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.03em}
body.aurora-hub :is(.pw-table td,.ex-data-table td,.mks-table td){border-color:var(--border);line-height:1.5}
body.aurora-hub :is(.ex-resource-name strong,.wr-project-copy strong){font-size:12px;font-weight:600}
body.aurora-hub :is(.ex-pager,.mc-pager,.wr-project-pages,.fr-pager){background:var(--pw-soft);color:var(--muted);font-size:11px}
body.aurora-hub :is(.ex-area-tabs,.ex-detail-tabs,.pw-workspace-tabs,.pw-chat-tabs,.mc-segment,.cc-service-switcher){gap:4px}
body.aurora-hub :is(.ex-area-tabs button,.ex-detail-tabs button,.pw-workspace-tabs button,.pw-chat-tabs button,.mc-segment button,.cc-service-switcher button){border-radius:7px;min-height:34px;font-size:12px;color:var(--muted)}
body.aurora-hub :is(.ex-area-tabs button,.ex-detail-tabs button,.pw-workspace-tabs button,.pw-chat-tabs button,.mc-segment button,.cc-service-switcher button):is([aria-selected="true"],[aria-pressed="true"],.active){background:var(--cc-soft);color:var(--ink);border-color:var(--border);box-shadow:none}
body.aurora-hub :is(pre,.cc-log,.tp-terminal,.hm-output,.fw-preview-text){background:#111419;color:#d8e0ec;border-color:var(--border);border-radius:8px;font-family:'Cascadia Code',Consolas,monospace;font-size:11px;line-height:1.6}
:root[data-theme="light"] body.aurora-hub :is(pre,.cc-log,.hm-output,.fw-preview-text){background:var(--pw-soft);color:var(--ink)}

/* The remaining workspaces share the same compact native hierarchy as chat. */
body.aurora-hub.pw-product:not([data-view="chat"]) .workspace{background-image:linear-gradient(155deg,#6a8dc312,transparent 240px),linear-gradient(15deg,#8971b912,transparent 320px);background-size:100% 300px,100% 380px;background-repeat:no-repeat;background-position:top,bottom}
:root[data-theme="light"] body.aurora-hub.pw-product:not([data-view="chat"]) .workspace{background-image:linear-gradient(155deg,#779bdf16,transparent 240px),linear-gradient(15deg,#9b80d216,transparent 320px)}
body.aurora-hub.pw-product:not([data-view="chat"]) main{--surface:var(--panel);--card:var(--panel);--text:var(--ink);--ix-accent:var(--accent);--ex-duration:140ms;max-width:1500px;padding:24px 28px 28px}
body.aurora-hub.pw-product:not([data-view="chat"]) .topbar{height:56px;padding-left:28px;padding-right:28px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.page-head,.ex-workspace-head,.as-heading,.hw-heading,.audra-header){gap:12px;margin-bottom:14px;align-items:center}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(h1,.page-head h1,.ex-workspace-head h1,.audra-header h1,.ix-header h1){font-size:26px;line-height:1.2;margin:0 0 6px;letter-spacing:-.6px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.intro,.ex-workspace-head p:last-child,.ix-header p,.audra-library-count){font-size:12px;line-height:1.5;margin-bottom:0}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.section-head,.pw-resource-heading){margin:18px 0 10px;gap:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.section-head h2,.pw-resource-heading h2){font-size:17px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.toolbar,.manage-toolbar,.cc-page-actions,.hc-toolbar,.fr-toolbar,.fw-file-tools,.sw-actions,.mc-workspace-toolbar,.ex-workspace-command){gap:8px;margin:10px 0 12px;flex-wrap:wrap}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-filters,.ex-filter-bar,.mc-toolbar,.gw-toolbar,.fw-toolbar){gap:8px;padding:8px;border-radius:12px;margin:10px 0 12px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-search,.ex-search,.fw-file-search,.audra-search){min-height:38px;border-radius:19px;background:var(--pw-soft);box-shadow:none}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-search input,.ex-search input){font-size:13px;padding:8px 0;min-width:0}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.fw-file-search,.audra-search){padding:8px 13px;font-size:13px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-filters select,.ex-filter-bar select,.mc-toolbar select,.fr-filters select,.hw-search input,.ix-search input,.ix-search select){min-height:38px;border-radius:9px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-metrics,.stats){gap:10px;margin:12px 0}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-metric,.stat,.ix-stat){padding:10px 13px;border-radius:11px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-metric strong,.stat strong,.ix-stat strong){font-size:23px;margin:3px 0}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-metric>span,.stat-label,.ix-stat span){font-size:11px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-policy,.ex-blocks,.note,.fr-policy,.gw-read-only-note,.hw-boundary){padding:10px 12px;margin:10px 0;font-size:12px;line-height:1.5}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-machine-grid,.cc-docker-grid,.pw-vm-grid,.gw-repository-grid,.sw-grid,.fr-grid,.fw-file-grid){gap:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.card,.project-card,.gw-repository-card,.sw-card,.fr-card,.fw-file-card,.as-card,.hw-profile,.hw-session,.hw-task,.hw-run){padding:14px;border-radius:12px;background:var(--panel);box-shadow:none}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-machine-open,.cc-container-open,.pw-vm-open){padding:14px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-machine-open strong,.cc-container-open strong,.pw-vm-open strong){font-size:15px;margin-top:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-platform-glyph,.pw-vm-glyph){width:40px;height:40px;border-radius:11px}
body.aurora-hub.pw-product:not([data-view="chat"]) .cc-platform-glyph .pw-app-art{width:29px;height:29px}
body.aurora-hub.pw-product:not([data-view="chat"]) .cc-container-card>header{padding:12px 14px 0;gap:8px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-container-actions,.pw-container-access,.pw-open-caption){padding-top:8px;margin-top:10px;font-size:11px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-summary,.sw-page-summary,.gw-freshness,.fr-count,.fw-file-info,.fw-file-extra,.gw-owner,.gw-repository-meta){font-size:11px;line-height:1.5;margin-top:6px;margin-bottom:8px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-list-head,.ex-resource-row,.pw-docker-resource-row){padding-left:14px;padding-right:14px}
body.aurora-hub.pw-product:not([data-view="chat"]) .ex-resource-row{min-height:60px;padding-top:9px;padding-bottom:9px;gap:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .ex-resource-name strong{font-size:13px}
body.aurora-hub.pw-product:not([data-view="chat"]) .ex-resource-row small{font-size:11px}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-docker-resource-row{padding-top:11px;padding-bottom:11px;gap:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-pager,.mc-shelf-pagination,.mc-release-pagination,.gw-pager,.fr-pager,.fw-file-pager,.ix-local-pages){gap:8px;padding:8px 10px;margin:10px 0;border-radius:10px;font-size:11px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.sw-tabs,.fw-files-tabs,.pw-workspace-tabs,.mc-segment,.ex-area-tabs,.hw-tabs,.audra-shelves){gap:4px;margin-bottom:12px;padding-bottom:6px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.sw-tabs [role="tab"],.fw-files-tab,.hw-tab,.audra-shelves .audra-button){min-height:36px;padding:7px 11px;font-size:12px;border-radius:9px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-empty,.empty,.cc-result-empty,.gw-readme-empty,.ix-empty){padding:24px 14px;border-radius:12px}

/* Real artwork stays; oversized decorative page heroes become normal headers. */
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-hero{padding:0 0 12px;margin:0 0 12px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;gap:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-hero-art{display:none}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-hero h1{font-size:26px;margin-bottom:6px}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-hero p{font-size:12px;margin-bottom:8px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.pw-rom-grid,.mc-library-grid){gap:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-art{height:176px;padding:9px}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-open>span:last-child{padding:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-open strong{font-size:13px}
body.aurora-hub.pw-product:not([data-view="chat"]) .mc-title-copy{padding:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .mc-title-copy strong{font-size:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .mc-app-card{padding:14px;gap:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .mc-github-research{padding:12px;margin:12px 0;border-radius:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .mc-settings-layout{gap:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .mc-saved-connections{gap:10px;margin:14px 0}
body.aurora-hub.pw-product:not([data-view="chat"]) .gw-repository-top{gap:9px;margin-bottom:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .gw-repository-card>p{min-height:0;margin-bottom:10px;font-size:12px;line-height:1.5}
body.aurora-hub.pw-product:not([data-view="chat"]) .gw-repository-meta{padding-top:8px}
body.aurora-hub.pw-product:not([data-view="chat"]) .fw-file-art{width:36px;height:36px;margin-bottom:10px;border-radius:9px}
body.aurora-hub.pw-product:not([data-view="chat"]) .fw-file-card h3{font-size:13px;line-height:1.4}
body.aurora-hub.pw-product:not([data-view="chat"]) .fw-card-actions{padding-top:8px;gap:6px}
body.aurora-hub.pw-product:not([data-view="chat"]) .ix-workspace{--ix-accent:var(--accent);--ix-surface:var(--panel);--ix-line:var(--border);gap:12px;color:var(--ink)}
body.aurora-hub.pw-product:not([data-view="chat"]) .ix-header{padding:12px;gap:12px;border-radius:12px;background:var(--panel)}
body.aurora-hub.pw-product:not([data-view="chat"]) .ix-header img{width:44px;height:44px}
body.aurora-hub.pw-product:not([data-view="chat"]) .ix-filter-panel{padding:12px;border-radius:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .ix-indexer{padding:10px;border-radius:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ix-workspace input,.ix-workspace select,.ix-button){padding:8px 11px;border-radius:9px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hw-workspace{gap:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hw-profile{gap:7px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hw-loading{padding:16px 10px;animation:none}
body.aurora-hub.pw-product:not([data-view="chat"]) .hc-toolbar{gap:8px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hc-device{min-height:88px;border-radius:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hc-device-main{padding:12px;gap:10px;border-radius:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hc-device-icon{width:38px;height:38px;border-radius:11px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hc-power-toggle{margin:8px;min-width:44px;min-height:44px}
body.aurora-hub.pw-product:not([data-view="chat"]) .hc-control-status{padding:0 12px 10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .audra-workspace{padding:0 0 100px;max-width:none}
body.aurora-hub.pw-product:not([data-view="chat"]) .audra-brand{gap:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .audra-brand>img{width:44px;height:44px}
body.aurora-hub.pw-product:not([data-view="chat"]) .audra-header h1{font-family:'Segoe UI Variable Display','Segoe UI',system-ui,sans-serif}
body.aurora-hub.pw-product:not([data-view="chat"]) .audra-grid{gap:16px 12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .audra-player{padding:16px;margin:12px 0;gap:16px;border-radius:14px;background:var(--panel)}
body.aurora-hub.pw-product:not([data-view="chat"]) .audra-paging{margin:12px 0;gap:10px;padding:8px 10px;font-size:11px;border-radius:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) .tp-workspace .ex-workspace-head{margin-bottom:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) .tp-toolbar{gap:8px;margin-bottom:8px}
body.aurora-hub.pw-product:not([data-view="chat"]) .tp-tabs button{padding:8px 11px;min-width:130px;border-radius:9px}

/* Existing native inspections keep their data, controls, and inner scroll surfaces. */
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-dialog:not(.pw-console-dialog),.hw-dialog,.ix-dialog){padding:18px;border-radius:14px;border-color:var(--border);background:var(--panel);color:var(--ink)}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-dialog:not(.pw-console-dialog) .cc-dialog-head,.hw-dialog-header){margin-bottom:14px;gap:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-dialog:not(.pw-console-dialog) .cc-dialog-head h2,.hw-dialog-header h2){font-size:21px}
body.aurora-hub.pw-product:not([data-view="chat"]) .pw-native-workspace{padding:18px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-detail-identity,.pw-workspace-identity,.mc-title-heading){gap:12px;margin-bottom:14px;padding-bottom:12px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-detail-grid>div,.pw-hardware>div){padding-top:8px;padding-bottom:8px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-detail-list,.fw-file-metadata){margin:12px 0;gap:8px 12px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-detail-actions,.pw-workspace-bottom,.hc-controls,.mks-form-actions){gap:8px;margin-top:12px;padding-top:10px}
body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-machine-card,.cc-container-card,.pw-vm-card,.gw-repository-card,.mc-app-card,.mc-title-card,.pw-rom-card,.hc-device,.hw-profile){transition:background-color 140ms,border-color 140ms,transform 140ms;box-shadow:none}
@media(hover:hover) and (pointer:fine){
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-machine-card,.cc-container-card,.pw-vm-card,.gw-repository-card,.mc-app-card,.mc-title-card,.pw-rom-card,.hc-device,.hw-profile):hover:not(:disabled){transform:translateY(-1px);box-shadow:none;border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}
}
:root[data-reduced-motion="true"] body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-machine-card,.cc-container-card,.pw-vm-card,.gw-repository-card,.mc-app-card,.mc-title-card,.pw-rom-card,.hc-device,.hw-profile):hover{transform:none!important}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-machine-card,.cc-container-card,.pw-vm-card,.gw-repository-card,.mc-app-card,.mc-title-card,.pw-rom-card,.hc-device,.hw-profile):hover{transform:none!important}}
@media(max-width:1000px){
  body.aurora-hub.pw-product:not([data-view="chat"]) main{padding:20px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.page-head,.ex-workspace-head,.audra-header){flex-wrap:wrap}
  body.aurora-hub.pw-product:not([data-view="chat"]) .audra-search{width:100%;max-width:none}
}
@media(max-width:720px){
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) .sidebar{display:none}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) .workspace{margin-left:0;min-width:0}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) .topbar{position:sticky;top:0;z-index:8;height:52px;min-width:0;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));gap:4px;flex-wrap:nowrap;background:var(--bg)}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) .breadcrumb{flex:1;min-width:0;font-size:0;line-height:1.2;white-space:nowrap;overflow:hidden}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) .breadcrumb strong{display:block;min-width:0;font-size:15px;overflow:hidden;text-overflow:ellipsis}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) .breadcrumb span{display:none}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) :is(.mode,#signout){display:none}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) :is(#au-nav-open,#cc-palette-open,.pw-activity-button,#cc-attention-open){display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;background:transparent;border-radius:50%;color:var(--muted)}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) #cc-palette-open{font-size:0;gap:0}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) #cc-palette-open :is(kbd,.au-search-label){display:none}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) #cc-palette-open .au-search-icon{display:block;width:20px;height:20px}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) #cc-attention-open{font-size:11px}
  body.aurora-hub.au-compact-shell:not([data-view="chat"]) .cc-attention-label{display:none}
  body.aurora-hub.pw-product:not([data-view="chat"]) main{padding:14px 12px 20px;min-height:calc(100dvh - 52px)}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(h1,.page-head h1,.ex-workspace-head h1,.audra-header h1,.ix-header h1,.pw-rom-hero h1){font-size:24px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.page-head,.ex-workspace-head,.audra-header){gap:10px;margin-bottom:12px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;position:relative}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head>.ex-hero-art{width:44px;height:44px;border-radius:12px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head>.ex-hero-art .ex-art-frame{width:30px;height:30px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head>div:nth-child(2){min-width:0;grid-column:2}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head .eyebrow{display:none}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head h1{padding-right:48px;min-height:30px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head>div:nth-child(2)>p:last-child{font-size:12px;line-height:1.45}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-workspace-head>a,.ex-workspace-head>button){margin-left:0;min-height:44px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head>:is(a,button){position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;min-width:44px;max-width:none;font-size:0;padding:0;border-radius:50%}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head>:is(a,button)>span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-workspace-head>:is(a,button)>.cc-icon{width:20px;height:20px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-area-tabs{margin-bottom:6px;padding-bottom:0}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-area-tabs button{min-height:44px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-filters,.ex-filter-bar,.hc-toolbar,.fw-file-tools,.fr-toolbar,.mc-workspace-toolbar){gap:6px;margin:8px 0 10px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-filters,.ex-filter-bar,.hc-toolbar,.mc-toolbar,.fr-toolbar):has(>.au-filter-toggle){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:6px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .au-filter-toggle{grid-column:2;min-width:0;margin:0;padding:0;border:0;background:transparent}
  body.aurora-hub.pw-product:not([data-view="chat"]) .au-filter-toggle>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--pw-elevated);color:var(--ink);font-size:12px;list-style:none;cursor:pointer;touch-action:manipulation}
  body.aurora-hub.pw-product:not([data-view="chat"]) .au-filter-toggle>summary::-webkit-details-marker{display:none}
  body.aurora-hub.pw-product:not([data-view="chat"]) .au-filter-toggle>summary>.cc-icon{width:16px;height:16px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .au-filter-toggle[open]{grid-column:1/-1;grid-row:2}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-filters,.ex-filter-bar,.hc-toolbar,.mc-toolbar,.fr-toolbar):has(>.au-filter-toggle[open])>:not(.au-filter-toggle){grid-column:1/-1}
  body.aurora-hub.pw-product:not([data-view="chat"]) .au-filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}
  body.aurora-hub.pw-product:not([data-view="chat"]) .au-filter-options>select{min-width:0;max-width:none!important;width:100%;min-height:44px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-metric,.stat,.ix-stat){padding:9px 11px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-metric strong,.stat strong,.ix-stat strong){font-size:21px}
  body.aurora-hub.pw-product:not([data-view="chat"]) main>div.ex-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}
  body.aurora-hub.pw-product:not([data-view="chat"]) main>div.ex-metrics .ex-metric{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:7px 10px}
  body.aurora-hub.pw-product:not([data-view="chat"]) main>div.ex-metrics .ex-metric>.cc-icon{display:none}
  body.aurora-hub.pw-product:not([data-view="chat"]) main>div.ex-metrics .ex-metric>span{padding:0;font-size:11px;line-height:1.25}
  body.aurora-hub.pw-product:not([data-view="chat"]) main>div.ex-metrics .ex-metric>strong{margin:0;font-size:20px;line-height:1.2;letter-spacing:-.35px;overflow-wrap:anywhere}
  body.aurora-hub.pw-product:not([data-view="chat"]) main>div.ex-metrics .ex-metric>small{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-resource-row,.pw-docker-resource-row){padding:10px;gap:8px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .ex-resource-row{min-height:70px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.ex-resource-row small,.ex-resource-scope strong,.ex-resource-scope small,.ex-torrent-rates strong,.ex-torrent-rates small){font-size:11px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .pw-rom-art{height:150px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .fw-file-grid{grid-template-columns:minmax(0,1fr)}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.gw-repository-card,.sw-card,.fw-file-card,.fr-card){padding:12px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.hw-profiles,.sw-native .sw-grid){grid-template-columns:minmax(0,1fr)}
  body.aurora-hub.pw-product:not([data-view="chat"]) .as-card{gap:10px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-secondary,.link-button,.text-button,.ex-action,.ex-pager button,.mc-page-button,.mc-pagination button,.gw-pager button,.ix-button,.audra-button,.tp-control-buttons button,.fw-card-actions button,.sw-tabs button,.fw-files-tab,.hw-tab,.hw-pages button,.as-card button,.fr-actions button,.cc-container-actions button){min-height:44px;min-width:44px;font-size:12px}
  body.aurora-hub.pw-product:not([data-view="chat"]) .gw-pager .cc-secondary{min-height:44px!important;min-width:44px;font-size:12px!important;padding:8px 10px!important}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-search,.ex-search,.fw-file-search,.audra-search,.cc-filters select,.ex-filter-bar select,.mc-toolbar select,.ix-search input,.ix-search select){min-height:44px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-dialog:not(.pw-console-dialog),.hw-dialog,.ix-dialog){padding:16px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 20px);border-radius:14px}
  body.aurora-hub.pw-product:not([data-view="chat"]) :is(.cc-dialog:not(.pw-console-dialog) .cc-dialog-head h2,.hw-dialog-header h2){font-size:20px}
  body.aurora-hub .au-navigation{width:min(560px,calc(100vw - 16px));padding:16px}
  body.aurora-hub .au-navigation[open]{display:flex;flex-direction:column}
  body.aurora-hub .au-navigation .cc-dialog-head{margin-bottom:12px}
  body.aurora-hub .au-navigation .au-nav-search{display:inline-flex;align-items:center;gap:8px;flex:none;width:100%;min-height:44px;padding:0 12px;margin-bottom:10px;background:var(--pw-soft);border:1px solid var(--border);border-radius:22px}
  body.aurora-hub .au-navigation .au-nav-search>.cc-icon{flex:none;width:18px;height:18px;color:var(--muted)}
  body.aurora-hub .au-navigation .au-nav-search>input{flex:1;min-width:0;width:100%;min-height:42px;padding:8px 0;border:0;background:transparent;border-radius:0}
  body.aurora-hub .au-navigation nav{display:flex;flex:1;flex-direction:column;gap:4px;overflow-x:hidden;overflow-y:auto;min-height:0}
  body.aurora-hub .au-navigation .au-nav-group{min-width:0}
  body.aurora-hub .au-navigation .au-nav-group>h3{margin:10px 0 6px;padding:0 2px;font-size:10px;font-weight:600;line-height:1.3;letter-spacing:.6px;color:var(--muted);text-transform:uppercase}
  body.aurora-hub .au-navigation nav a{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:8px;min-width:0;min-height:48px;flex:none;width:100%;font-size:13px;padding:8px 10px;white-space:normal}
  body.aurora-hub .au-navigation nav a .cc-nav-label{font-size:12px;line-height:1.3;text-align:left;flex:1;min-width:0}
  body.aurora-hub .au-navigation nav a small{margin-left:auto;font-size:10px}
  body.aurora-hub .au-navigation [hidden]{display:none!important}
  body.aurora-hub .au-nav-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.aurora-hub .au-nav-card{display:flex;align-items:center;gap:10px;min-width:0;min-height:52px;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:var(--pw-soft);color:var(--ink);font-size:13px}
  body.aurora-hub .au-nav-card .cc-icon{width:20px;height:20px;flex:none;color:var(--accent)}
  body.aurora-hub .au-nav-card>span{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:359px){body.aurora-hub .au-navigation .au-nav-grid{grid-template-columns:minmax(0,1fr)}}

/* Marketplace shelves keep their source warnings and actions, without stacked hero spacing. */
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card{gap:8px;padding:14px}
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>.mc-app-glyph{margin:0}
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>.mc-app-category{font-size:10px;line-height:1.4;letter-spacing:.7px}
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>h3{margin:0;font-size:16px;line-height:1.35}
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>p{margin:0;font-size:12px;line-height:1.5}
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>.technical{margin:0;font-size:10px;line-height:1.5}
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>.mc-warning-list{margin:0;padding-left:17px;font-size:11px;line-height:1.45}
body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>div:last-child{margin-top:4px;gap:8px;justify-content:flex-start}
body.aurora-hub.pw-product[data-view="marketplace"] .wr-install-history{margin:12px 0;border:1px solid var(--border);border-radius:12px;background:var(--panel);overflow:hidden}
body.aurora-hub.pw-product[data-view="marketplace"] .wr-install-history>.wr-install-history-summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;font-size:12px;line-height:1.4;color:var(--ink);cursor:pointer;touch-action:manipulation}
@media(max-width:720px){
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-catalog-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;align-items:start;gap:6px 10px;padding:12px}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>.mc-app-glyph{grid-column:1;grid-row:1/3;width:44px;height:44px;padding:5px;align-self:center;border-radius:11px}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-glyph>:is(.ex-art-frame,.pw-app-art){width:32px;height:32px}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>.mc-app-category{grid-column:2;grid-row:1;align-self:end}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>h3{grid-column:2;grid-row:2;min-width:0;overflow-wrap:anywhere}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>:is(p,.technical,.mc-warning-list){grid-column:1/-1}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>.mc-registry-meta{font-size:11px}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>div:last-child{display:grid;grid-template-columns:repeat(auto-fit,minmax(75px,1fr));grid-column:1/-1;width:100%;gap:6px}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>div:last-child :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;font-size:12px;line-height:1.25;padding:8px 4px;white-space:normal;text-align:center}
  body.aurora-hub.pw-product[data-view="marketplace"] .mc-app-card>div:last-child a{font-size:11px}
  body.aurora-hub.pw-product[data-view="marketplace"] #mc-catalog-search:has(>.au-filter-toggle){grid-template-columns:minmax(0,1fr) auto auto;align-items:start}
  body.aurora-hub.pw-product[data-view="marketplace"] #mc-catalog-search>.cc-search{grid-column:1;grid-row:1;min-width:0;min-height:44px}
  body.aurora-hub.pw-product[data-view="marketplace"] #mc-catalog-search>button{grid-column:2;grid-row:1;min-height:44px;margin:0}
  body.aurora-hub.pw-product[data-view="marketplace"] #mc-catalog-search>button:has(>.cc-icon){display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:0;font-size:0;border-radius:12px;gap:0}
  body.aurora-hub.pw-product[data-view="marketplace"] #mc-catalog-search>button>.cc-icon{width:20px;height:20px}
  body.aurora-hub.pw-product[data-view="marketplace"] #mc-catalog-search>.au-filter-toggle{grid-column:3;grid-row:1}
  body.aurora-hub.pw-product[data-view="marketplace"] #mc-catalog-search>.au-filter-toggle[open]{grid-column:1/-1;grid-row:2}
}

/* Chat keeps its existing scroll and draft ownership, with a smaller visual frame. */
body.aurora-hub .pw-chat-workspace{max-width:1180px;padding-left:24px;padding-right:24px}
body.aurora-hub .pw-chat-tabbar{padding-top:8px;border-color:var(--border)}
body.aurora-hub .pw-chat-tabs button{padding:8px 11px 10px;min-height:36px}
body.aurora-hub .pw-chat-tabbar #new-chat{min-height:32px;margin-bottom:6px}
body.aurora-hub .pw-chat-top{padding:10px 3px;gap:10px;border-bottom:0}
body.aurora-hub .pw-chat-top h1{font-size:17px;font-weight:600;letter-spacing:-.3px}
body.aurora-hub .pw-chat-top p{font-size:11px;color:var(--muted)}
/* Explicit rows keep the stream in the flexible track when empty-chat chrome is hidden. */
body.aurora-hub .pw-chat-panel>.pw-chat-top{grid-row:1;grid-column:1}
body.aurora-hub .pw-chat-panel>#chat-messages{grid-row:2;grid-column:1}
body.aurora-hub .pw-chat-panel>#pw-chat-progress{grid-row:3;grid-column:1}
body.aurora-hub .pw-chat-panel>.pw-message-compose{grid-row:4;grid-column:1}
body.aurora-hub .pw-chat-panel>.pw-chat-shortcuts{grid-row:5;grid-column:1}
body.aurora-hub .pw-chat-panel>#action-result{grid-row:6;grid-column:1}
body.aurora-hub .pw-chat-empty .pw-chat-top{display:none}
body.aurora-hub .pw-assistant-avatar{width:32px;height:32px;background:var(--cc-soft);border:1px solid var(--border);color:var(--accent);border-radius:10px;box-shadow:none}
body.aurora-hub .pw-assistant-avatar i{background:var(--green);box-shadow:none;border-color:var(--bg)}
body.aurora-hub .pw-message-stream{padding-top:8px;padding-bottom:16px;scrollbar-color:var(--border) transparent;scroll-behavior:auto}
body.aurora-hub .pw-message-stream .chat-message{background:transparent;border:0;border-radius:0;box-shadow:none;padding:10px 3px!important;margin-bottom:18px!important;animation:au-message-in 140ms ease-out}
body.aurora-hub .pw-message-stream .chat-message-user{background:#284573!important;border:1px solid #4b6b9c55!important;border-radius:18px 18px 5px 18px;max-width:min(85%,720px);padding:10px 15px!important}
:root[data-theme="light"] body.aurora-hub .pw-message-stream .chat-message-user{background:#e8effc!important;border-color:#cbd9f0!important}
body.aurora-hub .pw-message-stream .chat-message-user .pw-message-body{color:#f0f5ff}
:root[data-theme="light"] body.aurora-hub .pw-message-stream .chat-message-user .pw-message-body{color:#243d66}
body.aurora-hub .pw-message-stream .pw-compare-reply{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:14px!important}
body.aurora-hub .pw-message-meta{color:color-mix(in srgb,var(--muted) 78%,var(--bg));font-size:10px;font-weight:400;letter-spacing:0;margin-bottom:6px}
body.aurora-hub .chat-message-user .pw-message-meta{color:#c3d3eb;opacity:.8}
:root[data-theme="light"] body.aurora-hub .chat-message-user .pw-message-meta{color:#647a9d}
body.aurora-hub :is(.pw-message-body,.chat-markdown>p,.chat-markdown li){color:var(--ink);font-size:14px;line-height:1.65}
body.aurora-hub .chat-markdown strong{font-weight:650;color:var(--ink)}
body.aurora-hub .chat-markdown code{background:var(--cc-soft);border:0;border-radius:4px;color:var(--ink);font-size:12px}
body.aurora-hub .chat-markdown pre code{background:transparent;color:inherit}
body.aurora-hub .pw-message-actions{border:0;margin-top:7px;padding-top:0;gap:10px}
body.aurora-hub .pw-message-actions button{min-height:28px;font-size:10px;color:var(--muted)}
body.aurora-hub .pw-message-compose{border:1px solid var(--border);background:var(--panel);border-radius:12px!important;box-shadow:none}
body.aurora-hub .pw-message-compose:focus-within{border-color:var(--accent);box-shadow:none}
body.aurora-hub .pw-message-compose textarea{font-size:14px;line-height:1.5;background:transparent;box-shadow:none;min-height:48px}
body.aurora-hub .pw-compose-tools select{font-size:11px;border-color:var(--border);background:var(--pw-soft);color:var(--ink);border-radius:7px}
body.aurora-hub .pw-send{min-width:36px;height:34px;border-radius:50%}
body.aurora-hub.pw-product[data-view="chat"] #cf-chat-files{padding:0;margin:0 0 4px;background:transparent;border:0;box-shadow:none}
body.aurora-hub.pw-product[data-view="chat"] #cf-chat-files .cf-upload-state:empty{display:none}
body.aurora-hub.pw-product[data-view="chat"] #cf-chat-files .cf-upload-state:not(:empty){display:block;max-width:none;margin:4px 0 0;width:auto;font-size:11px;line-height:1.3;text-align:left}
body.aurora-hub :is(#chat-error,#pw-model-note,#chat-attachment):empty{display:none}
body.aurora-hub .cf-tools button{color:var(--muted);font-size:11px}
body.aurora-hub .cf-file-chip{background:var(--pw-soft);border-color:var(--border);border-radius:7px}
body.aurora-hub .pw-chat-shortcuts{font-size:10px;margin-top:4px}
body.aurora-hub .pw-chat-task{background:var(--pw-soft);border:1px solid var(--border);border-radius:8px;padding:8px 11px;margin-bottom:8px}
body.aurora-hub .pw-chat-task-terminal{border-color:var(--border)}
body.aurora-hub .pw-chat-welcome{max-width:none;margin:10px 3px 14px;text-align:left}
body.aurora-hub .pw-welcome-orbit{display:none}
body.aurora-hub .pw-chat-welcome h2{font-size:23px;font-weight:600;line-height:1.25;letter-spacing:-.5px;max-width:none;margin:0 0 8px}
body.aurora-hub .pw-chat-welcome>p{font-size:12px;line-height:1.6;max-width:none;margin:0 0 14px;color:var(--muted)}
body.aurora-hub .pw-starters{gap:7px;max-width:none}
body.aurora-hub .pw-starters button{background:var(--panel);border:1px solid var(--border);border-radius:9px;font-size:12px;padding:10px 12px;min-height:42px;gap:8px;box-shadow:none;transform:none}
body.aurora-hub .pw-starters button>.cc-icon:first-child{width:17px;height:17px;color:var(--muted)}
body.aurora-hub .pw-starters button>.cc-icon:last-child{color:var(--muted)}
body.aurora-hub .pw-conversation-card{background:var(--panel);border-color:var(--border);border-radius:10px;padding:15px 17px;box-shadow:none;transform:none}
body.aurora-hub .pw-conversation-card[aria-current="true"]{border-color:var(--accent)}
body.aurora-hub .pw-background-jobs{background:transparent;border-color:var(--border);border-radius:8px}
body.aurora-hub .pw-background-job{border-radius:7px}
@media(min-width:1100px){body.aurora-hub .pw-starters{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* A message-sized composer with its real context and timing beneath the pill. */
body.aurora-hub.pw-product[data-view="chat"] .pw-chat-panel{background:linear-gradient(180deg,transparent calc(100% - 160px),#6a8dc31a 88%,#8971b91f)}
:root[data-theme="light"] body.aurora-hub.pw-product[data-view="chat"] .pw-chat-panel{background:linear-gradient(180deg,transparent calc(100% - 160px),#779bdf18 88%,#9b80d21f)}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-message-body,.chat-markdown>p,.chat-markdown li){font-size:16px;line-height:1.6}
body.aurora-hub.pw-product[data-view="chat"] .pw-message-compose:has(.pw-composer-shell,.pw-phone-composer-shell){padding:0!important;border:0;border-radius:0!important;background:transparent;box-shadow:none}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-composer-shell,.pw-phone-composer-shell){display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:2px;min-width:0;min-height:46px;padding:0 2px;border:1px solid color-mix(in srgb,var(--muted) 35%,var(--border));border-radius:25px;background:color-mix(in srgb,var(--panel) 96%,transparent);box-shadow:0 2px 12px #00000018;transition:border-color 140ms,background-color 140ms}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-composer-shell,.pw-phone-composer-shell):focus-within{border-color:color-mix(in srgb,var(--accent) 62%,var(--border));background:var(--panel)}
body.aurora-hub.pw-product[data-view="chat"] #assistant-form :is(.pw-composer-shell,.pw-phone-composer-shell) #assistant-prompt{width:100%;min-width:0;min-height:44px;height:44px;max-height:112px;padding:10px 7px;line-height:24px;font-size:16px;resize:none;border:0;background:transparent;box-shadow:none}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-composer-shell,.pw-phone-composer-shell) :is(.pw-phone-add,#pw-phone-add,#pw-compose-add,#chat-send){display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border-radius:50%;transition:transform 120ms,background-color 140ms}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-phone-add,#pw-phone-add,#pw-compose-add){border:0;background:transparent;color:var(--muted)}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-composer-shell,.pw-phone-composer-shell) #chat-send{background:#a6c2f5;color:#1a3155;border:0;box-shadow:none}
:root[data-theme="light"] body.aurora-hub.pw-product[data-view="chat"] :is(.pw-composer-shell,.pw-phone-composer-shell) #chat-send{background:#365fba;color:#fff}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-composer-shell,.pw-phone-composer-shell) :is(button,label):active:not(:disabled){transform:scale(.96)}
body.aurora-hub.pw-product[data-view="chat"] #pw-chat-metrics{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%;min-height:22px;margin:0;padding:0 14px;color:var(--muted);font-size:11px;line-height:22px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;font-variant-numeric:tabular-nums}
body.aurora-hub.pw-product[data-view="chat"] #pw-chat-metrics :is(.pw-metric,.pw-metric-speed,.pw-metric-context){display:inline-flex;align-items:center;gap:4px;flex:none;max-width:100%;font-size:11px;line-height:22px;white-space:nowrap}
body.aurora-hub.pw-product[data-view="chat"] #pw-chat-metrics .pw-metric :is(strong,b){color:var(--muted);font-weight:500}
body.aurora-hub.pw-product[data-view="chat"] #pw-chat-metrics .cc-icon{width:12px;height:12px;color:var(--muted)}
body.aurora-hub.pw-product[data-view="chat"] #pw-chat-metrics :is(#pw-phone-model,#pw-compose-model){display:inline-flex;align-items:center;flex:none;max-width:100%;min-height:22px;margin:0;padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;line-height:22px;white-space:nowrap}
body.aurora-hub.pw-product[data-view="chat"] #pw-chat-metrics:empty{display:none}
body.aurora-hub.pw-product[data-view="chat"] #pw-compose-options{min-width:0;border:0;margin:0;padding:0;background:transparent}
body.aurora-hub.pw-product[data-view="chat"] #pw-compose-options>summary{display:none}
body.aurora-hub.pw-product[data-view="chat"] #pw-compose-options[open]{margin-top:6px;padding:10px 4px 4px;border-top:1px solid var(--border);max-height:280px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}

/* Recent conversations read as a compact native list, with status and errors intact. */
body.aurora-hub.pw-product[data-view="chat"] .pw-conversations-panel{padding:12px 3px 8px;min-height:0;overflow:auto}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-heading{align-items:center;min-height:44px;gap:8px;margin-bottom:8px}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-heading h1{font-size:20px;line-height:1.2;letter-spacing:-.4px;margin:0}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-heading>div>p{display:none}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-heading button{min-height:44px;padding:6px 9px;font-size:12px}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-search{min-height:44px;padding:0 12px;border-radius:10px}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-search input{min-width:0;padding:10px 0;font-size:16px;line-height:22px}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-status{font-size:11px;line-height:1.4;margin:6px 2px}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-history-busy,.pw-history-error){padding:8px 10px;margin:6px 0;font-size:11px;line-height:1.4;border-radius:8px}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-results{gap:0}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-card{min-height:64px;gap:10px;padding:10px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;transform:none}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-card:is(.active,[aria-current="true"]){background:var(--cc-soft);border-radius:8px;border-bottom-color:transparent}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-card>.cc-icon{width:18px;height:18px;color:var(--muted)}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-copy{gap:1px}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-copy strong{font-size:13px;line-height:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-preview{display:block;font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-meta{gap:8px;flex-wrap:nowrap;font-size:11px;line-height:14px;min-width:0}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-meta time{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-meta>span{flex:none;white-space:nowrap}
body.aurora-hub.pw-product[data-view="chat"] .pw-conversation-open{font-size:11px;color:var(--muted)}
body.aurora-hub.pw-product[data-view="chat"] .pw-history-empty{padding:24px 12px;background:transparent;border-radius:10px}

/* A single motion owner opens each native sheet; CSS does not compete with it. */
body.aurora-hub :is(.cc-dialog,.cc-side-panel,.pw-view-enter,.pw-chat-panel,.pw-conversations-panel){animation:none}
body.aurora-hub .cc-dialog{background:var(--panel);color:var(--ink);border:1px solid var(--border);border-radius:14px;box-shadow:var(--pw-shadow);padding:22px}
body.aurora-hub .cc-side-panel{border-radius:14px 0 0 14px}
body.aurora-hub .cc-dialog::backdrop{background:#080b118a;backdrop-filter:none;animation:none}
body.aurora-hub .cc-dialog-head{border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:16px;align-items:center}
body.aurora-hub .cc-dialog-head h2{font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.4px}
body.aurora-hub .cc-dialog-head>button{border-radius:8px;min-width:32px;width:32px;height:32px;background:var(--pw-soft);color:var(--muted);border:1px solid var(--border);display:grid;place-items:center}
body.aurora-hub .cc-dialog .cc-resource{padding:14px;border-radius:9px;background:var(--pw-soft)}
body.aurora-hub .cc-dialog .cc-resource strong{font-size:23px}
body.aurora-hub .ex-detail-identity{border-color:var(--border);margin-bottom:14px;padding-bottom:14px}
body.aurora-hub :is(.ex-detail-grid dd,.pw-hardware dd,.mks-definition dd){color:var(--ink)}
body.aurora-hub :is(.ex-detail-grid dt,.pw-hardware dt,.mks-definition dt){color:var(--muted)}
body.aurora-hub :is(.pw-workspace-bottom,.ex-detail-actions,.mks-job-actions){border-color:var(--border)}
body.aurora-hub .mks-review-summary{background:var(--pw-soft);border-color:var(--border)}
body.aurora-hub .cc-palette-list button{border-radius:8px}
body.aurora-hub .cc-palette-list button:hover{background:var(--cc-soft)}

/* Native service artwork and truthful busy/error states stay prominent. */
body.aurora-hub .hc-device-main{padding:14px}
body.aurora-hub .hc-device-icon{background:var(--pw-soft);border:1px solid var(--border);color:var(--muted);border-radius:12px}
body.aurora-hub .hc-is-on{background:var(--panel);border-color:color-mix(in srgb,var(--green) 45%,var(--border))}
body.aurora-hub .hc-is-on .hc-device-icon{color:var(--green);box-shadow:none}
body.aurora-hub .hc-power-toggle{min-width:44px;min-height:44px;border-radius:10px;background:var(--pw-soft);border-color:var(--border);color:var(--muted);box-shadow:none}
body.aurora-hub .hc-power-toggle[aria-pressed="true"]{background:color-mix(in srgb,var(--green) 9%,var(--panel));border-color:color-mix(in srgb,var(--green) 35%,var(--border));color:var(--green);box-shadow:none}
body.aurora-hub :is(.hc-setting,.hc-device-hero,.ix-filter-panel,.ix-health,.ix-release,.sw-card-metrics,.hw-search,.fw-file-art,.gw-read-only-note){background:var(--pw-soft);border-color:var(--border);color:var(--ink);box-shadow:none}
body.aurora-hub :is(.hc-device-copy small,.ix-indexer-meta,.ix-release-info,.hw-meta,.gw-owner,.sw-card-footer,.fr-access,.fw-file-extra){color:var(--muted)}
body.aurora-hub :is(.ix-release,.hw-message,.hw-notice,.fw-file-metadata){background:var(--panel);border-color:var(--border)}
body.aurora-hub .hw-message.is-user{background:var(--cc-soft)}
body.aurora-hub .audra-workspace{color:var(--ink);background:transparent;padding-top:6px}
body.aurora-hub :is(.audra-eyebrow,.audra-book-meta,.audra-current-chapter,.audra-library-count,.audra-message,.audra-book>p,.audra-authors,.audra-times,.audra-option,.audra-empty,.audra-description p){color:var(--muted)}
body.aurora-hub .audra-search{background:var(--pw-soft);border-color:var(--border);color:var(--ink)}
body.aurora-hub :is(.audra-player,.audra-mini){background:var(--panel);border-color:var(--border);box-shadow:none;color:var(--ink)}
body.aurora-hub :is(.audra-extras summary,.audra-service-details>summary){color:var(--ink)}
body.aurora-hub :is(.audra-button[aria-pressed="true"],.hw-tab[aria-selected="true"]){background:var(--cc-soft);border-color:var(--border);color:var(--ink)}
body.aurora-hub :is(.audra-option select,.audra-chapter-list button,.audra-bookmark-list button){background:var(--pw-soft);border-color:var(--border);color:var(--ink)}
body.aurora-hub :is(.audra-seek,.audra-timeline){accent-color:var(--accent)}
body.aurora-hub .audra-brand>img{animation:none;filter:none}
body.aurora-hub progress{height:6px;accent-color:var(--accent);background:var(--pw-soft);border-radius:5px}
body.aurora-hub progress::-webkit-progress-bar{background:var(--pw-soft);border-radius:5px}
body.aurora-hub progress::-webkit-progress-value{background:var(--accent);border-radius:5px;transition:none}
body.aurora-hub progress::-moz-progress-bar{background:var(--accent);border-radius:5px}
body.aurora-hub .pw-spinner{border-color:var(--border);border-top-color:var(--accent);border-right-color:var(--accent)}
body.aurora-hub :is(.pw-loading,.ex-loading,.loading){color:var(--muted)}
body.aurora-hub .pw-typing i{background:var(--muted)}
body.aurora-hub footer{background:transparent;border-color:var(--border);color:var(--muted)}
body.aurora-hub ::selection{background:color-mix(in srgb,var(--accent) 25%,transparent);color:var(--ink)}
@keyframes au-message-in{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover) and (pointer:fine){
  body.aurora-hub :is(.cc-machine-card,.cc-container-card,.pw-vm-card,.mc-app-card,.pw-rom-card,.mc-title-card,.hc-device,.pw-conversation-card):hover{border-color:color-mix(in srgb,var(--muted) 48%,var(--border));box-shadow:none;transform:none}
  body.aurora-hub :is(.link-button,.cc-primary,.cc-new-chat,.pw-send):hover:not(:disabled){filter:brightness(1.06);box-shadow:none;transform:none}
  body.aurora-hub :is(.cc-secondary,.ex-action,.pw-starters button):hover:not(:disabled){background:var(--pw-elevated);border-color:var(--muted);transform:none}
  body.aurora-hub :is(.ex-resource-row,.wr-project-open,.fw-entry,.iw-release,.gw-repo-row,.sw-unit-row):hover{background:var(--pw-elevated);box-shadow:none}
  body.aurora-hub .hc-power-toggle:hover:not(:disabled){background:var(--cc-soft);box-shadow:none;transform:none}
}
@media(max-width:1100px){body.aurora-hub .pw-chat-workspace{padding-left:18px;padding-right:18px}}
@media(max-width:650px){
  body.aurora-hub .sidebar{padding:0;border-right:0}
  body.aurora-hub nav a{min-height:44px;padding:9px 11px;border-radius:7px}
  body.aurora-hub nav a:hover{transform:none}
  body.aurora-hub .topbar{min-width:0}
  body.aurora-hub .breadcrumb{flex:1 1 0;min-width:0;white-space:normal;line-height:1.15}
  body.aurora-hub .breadcrumb span{display:none}
  body.aurora-hub .breadcrumb strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.aurora-hub :is(h1,.page-head h1,.ex-workspace-head h1){font-size:24px}
  body.aurora-hub :is(.page-head,.ex-workspace-head){margin-bottom:14px;gap:10px}
  body.aurora-hub .intro{font-size:12px;line-height:1.5}
  body.aurora-hub :is(.ex-metric,.stat){padding:11px 12px}
  body.aurora-hub :is(.ex-metric>strong,.stat>strong){font-size:22px}
  body.aurora-hub .pw-chat-workspace{padding:0 12px 8px}
  body.aurora-hub .pw-chat-top{padding:8px 2px}
  body.aurora-hub .pw-chat-top h1{font-size:16px}
  body.aurora-hub .pw-chat-top p{font-size:10px}
  body.aurora-hub .pw-chat-tabs button{min-height:44px;padding:9px 7px 10px;font-size:11px}
  body.aurora-hub .pw-message-stream{padding-top:6px;padding-bottom:12px}
  body.aurora-hub .pw-message-stream .chat-message{padding:8px 1px!important;margin-bottom:12px!important}
  body.aurora-hub .pw-message-stream .chat-message-user{max-width:92%;padding:9px 12px!important}
  body.aurora-hub :is(.pw-message-body,.chat-markdown>p,.chat-markdown li){font-size:14px;line-height:1.6}
  body.aurora-hub .pw-chat-welcome{margin-top:8px}
  body.aurora-hub .pw-chat-welcome h2{font-size:21px}
  body.aurora-hub .pw-chat-welcome>p{font-size:12px;margin-bottom:12px}
  body.aurora-hub .pw-starters button{min-height:44px;padding:9px 10px;font-size:11px;gap:6px}
  body.aurora-hub .pw-message-actions button{min-height:35px}
  body.aurora-hub .cc-dialog{padding:18px;border-radius:12px}
  body.aurora-hub .cc-side-panel{border-radius:12px 0 0 12px}
  body.aurora-hub .cc-dialog-head h2{font-size:18px}
  body.aurora-hub .cc-dialog-head>button{min-width:44px;width:44px;height:44px}
  body.aurora-hub :is(.cc-secondary,.link-button,.ex-area-tabs button,.ex-detail-tabs button,.pw-workspace-tabs button,.ex-pager button,.mc-pager button){min-height:44px}
  body.aurora-hub .pw-compose-tools :is(select,.pw-attachment-control){min-height:44px}
  body.aurora-hub .pw-send{min-width:44px;min-height:44px;height:44px}
  body.aurora-hub.pw-product[data-view="chat"] #cf-chat-files .cf-tools{flex-wrap:nowrap;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;gap:4px}
  body.aurora-hub.pw-product[data-view="chat"] #cf-chat-files .cf-tools button{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:380px){
  body.aurora-hub.pw-product[data-view="chat"] .pw-compose-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
  body.aurora-hub .pw-compose-tools #chat-mode{grid-column:1/3;grid-row:1}
  body.aurora-hub .pw-compose-tools #chat-model{grid-column:1/3;grid-row:2}
  body.aurora-hub .pw-compose-tools .pw-attachment-control{grid-column:3;grid-row:1}
  body.aurora-hub .pw-compose-tools .pw-send{grid-column:3;grid-row:2}
}
/* The phone chat has its own message-first shell; other routes and desktop keep their layout. */
body.aurora-hub .pw-phone-trace-label{display:none}
@media(max-width:650px){
  body.aurora-hub.pw-product[data-view="chat"]{display:block;position:fixed;top:var(--pw-phone-viewport-top,0px);left:0;width:100%;height:var(--pw-phone-viewport-height,100dvh);min-height:0;overflow:hidden}
  body.aurora-hub.pw-product[data-view="chat"] :is(.sidebar,.topbar){display:none}
  body.aurora-hub.pw-product[data-view="chat"] .workspace{display:block;margin:0;height:100%;min-height:0;min-width:0}
  body.aurora-hub.pw-product[data-view="chat"] main{height:100%;min-height:0;max-width:none;padding:0;margin:0;overflow:hidden}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-workspace{height:100%;max-width:none;min-height:0;grid-template-rows:auto minmax(0,1fr);padding:0 max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabbar{flex-wrap:nowrap;min-height:44px;gap:3px;padding:env(safe-area-inset-top) 0 0;align-items:center}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabs{flex:1;min-width:0;align-self:auto;gap:0}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabs button{flex:1;min-width:0;min-height:44px;padding:0 5px;gap:3px;justify-content:center;font-size:12px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabs #pw-tab-chat{flex:0 0 auto}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabs button>.cc-icon{display:none}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabs small{font-size:10px;padding:1px 3px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabbar :is(#new-chat,#pw-phone-menu,#pw-phone-jobs){display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;font-size:11px;background:transparent;border:0;color:var(--muted)}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabbar #new-chat>.cc-icon{display:block;width:20px;height:20px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-tabbar #new-chat>span{display:none}
  body.aurora-hub.pw-product[data-view="chat"] :is(.pw-chat-top,.pw-chat-shortcuts,#pw-background-jobs){display:none}
  body.aurora-hub.pw-product[data-view="chat"] #chat-messages{padding:10px 4px 8px;min-height:0;scroll-padding:12px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-message-compose{padding:5px!important;border-radius:14px!important}
  body.aurora-hub.pw-product[data-view="chat"] .pw-phone-composer-shell{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:2px;align-items:end;min-width:0}
  body.aurora-hub.pw-product[data-view="chat"] .pw-phone-composer-shell :is(.pw-phone-add,#pw-phone-add,#chat-send){width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;display:grid;place-items:center;border-radius:50%}
  body.aurora-hub.pw-product[data-view="chat"] :is(.pw-phone-add,#pw-phone-add){background:transparent;border:0;color:var(--muted)}
  body.aurora-hub.pw-product[data-view="chat"] #assistant-form .pw-phone-composer-shell #assistant-prompt{width:100%;min-width:0;min-height:44px;height:44px;max-height:112px;padding:10px 6px;resize:none;font-size:16px;line-height:24px}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-model{display:block;max-width:calc(100% - 92px);min-height:24px;margin:0 46px;padding:0 6px;border:0;background:transparent;color:var(--muted);font-size:11px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options{display:block;min-width:0;border:0;background:transparent;margin:0;padding:0}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options>summary{display:none}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options[open]{margin-top:5px;padding:8px 2px 2px;border-top:1px solid var(--border);max-height:min(280px,38dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options .pw-compose-tools{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options .pw-compose-tools #chat-mode{grid-column:2;grid-row:1}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options .pw-compose-tools #chat-model{grid-column:2;grid-row:2}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options .pw-compose-tools .pw-attachment-control{grid-column:1;grid-row:1/3;align-self:start;width:44px;height:44px;padding:0}
  body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options .pw-compose-tools select{width:100%;min-width:0;max-width:none!important;min-height:44px;height:44px;font-size:16px;padding:6px 8px}
  body.aurora-hub.pw-product[data-view="chat"] :is(#chat-error,#pw-model-note,#pw-lane-notice){margin:4px 6px!important;font-size:11px!important;line-height:1.4;overflow-wrap:anywhere}
  body.aurora-hub.pw-product[data-view="chat"] #pw-chat-progress:empty{display:none}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 8px;min-height:36px;padding:0 5px;margin:0 0 4px;border:0;background:transparent}
  body.aurora-hub.pw-product[data-view="chat"] .pw-task-heading{grid-column:1;grid-row:1;min-width:0;gap:6px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-task-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-task-heading>span:last-child{flex:none;font-size:10px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task details{grid-column:2;grid-row:1;margin:0;min-width:0;font-size:11px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task details>summary{display:flex;align-items:center;min-height:44px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task .pw-phone-trace-label{display:inline}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task .pw-trace-label{display:none}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task details[open]{grid-column:1/-1;grid-row:2;width:100%}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task details[open]>summary{max-width:100%}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task details[open]>ol{max-height:min(160px,25dvh);margin:0 0 6px}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task>p{grid-column:1/-1;margin:0;padding:3px 0 5px;font-size:11px;overflow-wrap:anywhere}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task>.result-summary{display:none}
  body.aurora-hub.pw-product[data-view="chat"] .pw-chat-task>.text-button{grid-column:1;grid-row:1;float:none;justify-self:start;min-height:44px;margin:0;padding:0;font-size:11px}
  body.aurora-hub .pw-phone-nav-sheet nav{display:flex;flex-direction:column;min-height:0;padding:0;gap:3px;overflow-x:hidden;overflow-y:auto}
  body.aurora-hub .pw-phone-nav-sheet nav a{width:100%;min-height:44px;flex:none;white-space:normal}
}
/* Keep editable touch controls readable without triggering focus zoom. Native
   terminal IME and non-text controls keep their own geometry and gestures. */
@media(max-width:650px), (hover:none) and (pointer:coarse){
  body.aurora-hub :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="color"],[type="file"],[type="hidden"],[type="button"],[type="submit"],[type="reset"],[type="image"]),select,textarea:not(.xterm-helper-textarea)){font-size:16px!important}
  body.aurora-hub :is(a[href],summary){touch-action:manipulation}
}
/* Preference ownership remains in the app. Full never changes the saved OS choice. */
:root[data-reduced-motion="true"] body.aurora-hub *{scroll-behavior:auto!important;transition-duration:0ms!important;animation:none!important}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) body.aurora-hub *{scroll-behavior:auto!important;transition-duration:0ms!important;animation:none!important}}
