:root{color-scheme:dark;--shell-bg:#15132b;--shell-card:#1e1737;--shell-header:#0c0b1b;--shell-accent:#7b5af4;--shell-text:#f3efff;--shell-muted:#b6afc8;--shell-lite:#19173a;--shell-border:#2d255733;--outer-bg:#15132b80;font-family:"Segoe UI",Tahoma,Arial,"Noto Sans",sans-serif;line-height:1.4;background:var(--shell-bg);color:var(--shell-text)}
:root{font-family:"Segoe UI",Tahoma,Arial,"Noto Sans","Nexus Sans Fallback","Nexus Arabic Fallback","Nexus Devanagari Fallback","Nexus CJK Fallback",sans-serif}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);direction:ltr}button,input,textarea,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}button,input,textarea{touch-action:manipulation}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,pre:focus-visible{outline:2px solid var(--shell-accent);outline-offset:3px}button:disabled:focus-visible{outline:none}[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:16px;top:-100px;z-index:500;background:var(--shell-card);padding:12px;color:var(--shell-text);border-radius:8px}.skip-link:focus{top:10px}.startup{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;height:100%;padding:24px;flex-wrap:wrap}.spinner{border:2px solid var(--shell-lite);border-top-color:var(--shell-accent);border-radius:50%;width:23px;height:23px;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.outer-shell{height:100%;padding:8px;border:1px solid var(--shell-lite);border-radius:25px;background:var(--outer-bg)}.shell-clip{height:100%;display:grid;grid-template-columns:100px minmax(0,1fr);overflow:hidden;border:1px solid var(--shell-lite);border-radius:20px;isolation:isolate}.rail{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;background:var(--shell-header);border-radius:25px 0 0 18px}.window-actions{display:flex;justify-content:center;gap:10px;margin:30px 0 40px;height:8px}.window-dot{width:8px;height:8px;min-width:8px;border-radius:50%;padding:0;position:relative}.window-dot::before{content:"";position:absolute;inset:-10px}.close-dot{background:#eb1700}.minimize-dot{background:#ffaf01}.maximize-dot{background:#009d00}.navigation{overflow-y:auto;overflow-x:hidden;padding:12px 0;scrollbar-width:thin;scrollbar-color:var(--shell-accent) transparent}.nav-button{display:flex;align-items:center;justify-content:center;width:50px;height:50px;min-height:50px;margin:10px auto 0;position:relative;background:transparent;border-radius:15px;color:var(--shell-text);padding:0}.nav-button::before{position:absolute;content:"";inset:3px;border-radius:15px;background:var(--shell-accent);opacity:0;z-index:-1}.nav-button:hover,.nav-button:focus-visible{color:var(--shell-accent)}.nav-button:hover::before,.nav-button:focus-visible::before{opacity:.09}.nav-button:active::before{opacity:.19}.nav-button:disabled{color:var(--shell-muted)}.nav-button:disabled::before{opacity:0}.nav-button[aria-current=page]{color:var(--shell-accent)}.nav-caption{display:none}.store-navigation{margin-bottom:20px}.navigation svg,.store-navigation svg{pointer-events:none;overflow:visible;flex:none}.navigation .installed{animation:insert-module .3s ease-out}@keyframes insert-module{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.shell-main{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--shell-bg)}.topbar{height:95px;flex:none;display:flex;align-items:center;padding:12px;background:var(--shell-header);border-radius:0 20px 0 0;gap:0}.search-form{min-width:0;flex:1;position:relative;margin-right:20px;max-width:calc(100% - 236px)}.search-form input{width:100%;height:49px;background:var(--shell-bg);color:var(--shell-muted);font-size:12px;padding:15px 65px 15px 40px;border:1px solid var(--shell-border);border-radius:7px;outline-offset:0}.search-form input::placeholder{color:var(--shell-muted);opacity:.95}.search-icon{position:absolute;left:15px;top:50%;width:15px;height:15px;transform:translateY(-50%);pointer-events:none;color:var(--shell-text)}.search-icon svg{width:15px;height:15px}.search-icon.typing{animation:search-pulse .4s ease-in-out}@keyframes search-pulse{50%{opacity:.6}100%{opacity:1}}.search-count{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--shell-muted);font-size:11px;pointer-events:none}.header-actions{display:flex;gap:0;align-items:center;margin-left:auto;flex:none}.header-button{background:transparent;border-radius:22px;width:45px;height:45px;display:flex;justify-content:center;align-items:center;margin:0 3px;padding:0;position:relative;color:var(--shell-text)}.header-button:hover,.header-button:focus-visible{color:var(--shell-accent);background:color-mix(in srgb,var(--shell-accent) 9%,transparent)}.header-button:active{background:color-mix(in srgb,var(--shell-accent) 18%,transparent)}.header-button svg{width:18px;height:18px;overflow:visible;pointer-events:none}.gpt-button{margin-right:13px}.gpt-button svg{width:25px;height:25px}.profile-chrome{border:1px solid var(--shell-border);border-radius:25px;background:var(--shell-bg);height:51px;width:53px;display:flex;align-items:center;justify-content:center}.profile-chrome .header-button{margin:0}.menu-button,.search-expand{display:none}.page-stage{min-height:0;min-width:0;flex:1;position:relative;overflow:hidden;outline:none}.page-frame,.auth-frame{border:0;width:100%;height:100%;display:block;background:var(--shell-bg);color-scheme:normal}.auth-stage{height:100%;width:100%}.page-frame[hidden]{display:none!important}.frame-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--shell-muted);pointer-events:none}.drawer-shade{display:none}.lease-banner{background:var(--shell-card);padding:8px 16px;display:flex;align-items:center;gap:14px;font-size:12px;flex:none;border-bottom:1px solid var(--shell-accent)}.lease-banner .text-button{margin-left:auto}.lease-banner .icon-button{width:44px;height:44px}
dialog{padding:0;background:var(--shell-card);color:var(--shell-text);border:1px solid var(--shell-lite);border-radius:18px;box-shadow:0 20px 70px #0006;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:hidden}dialog::backdrop{background:#0006;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;gap:12px;padding:10px 14px;flex:none}.dialog-heading h2{font-size:16px;font-weight:600;margin:0;flex:1}.icon-button{display:flex;align-items:center;justify-content:center;min-width:44px;height:44px;background:transparent;border-radius:12px;font-size:22px;flex:none;padding:8px}.icon-button:hover{background:color-mix(in srgb,var(--shell-accent) 12%,transparent)}.icon-button svg{width:19px;height:19px}.text-button{background:transparent;color:var(--shell-accent);padding:10px 12px;min-height:44px;border-radius:7px}.text-button:hover{background:color-mix(in srgb,var(--shell-accent) 9%,transparent)}.primary-button,.secondary-button{min-height:44px;padding:8px 16px;border-radius:7px;font-weight:500;flex:none}.primary-button{background:var(--shell-accent);color:#fff}.secondary-button{background:var(--shell-bg);color:var(--shell-text);border:1px solid var(--shell-border)}.context-menu{position:fixed;z-index:200;min-width:195px;max-width:calc(100vw - 20px);padding:6px;border:1px solid var(--shell-lite);border-radius:12px;background:var(--shell-card);box-shadow:0 12px 35px #0006}.context-menu button{display:block;text-align:start;width:100%;min-height:44px;padding:10px 14px;background:transparent;border-radius:7px;color:var(--shell-text)}.context-menu button:hover,.context-menu button:focus-visible{background:var(--shell-lite)}.context-menu hr{border:0;border-top:1px solid var(--shell-lite);margin:6px}.chat-dialog{width:780px;height:680px;min-width:min(500px,calc(100vw - 32px));min-height:min(460px,calc(100dvh - 32px));background:var(--shell-bg)}.chat-layout{display:flex;flex-direction:column;height:100%;padding:22px;min-height:0}.chat-heading{display:grid;grid-template-columns:1fr auto;flex:none;margin-bottom:16px}.chat-heading h1{font-size:25px;line-height:1.3;font-weight:600;margin:0}.chat-heading p{opacity:.7;margin:6px 0 0}.chat-heading #request-details{grid-column:1/-1;justify-self:end}.chat-heading .icon-button{margin:-10px -10px 0 0}.chat-history{overflow:auto;flex:1;min-height:70px;overscroll-behavior:contain}.chat-message{margin:0 0 16px}.chat-message strong{display:block;opacity:.75;margin-bottom:5px;font-weight:600}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;max-height:460px;overflow:auto;user-select:text}.chat-composer{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;flex:none}.chat-composer textarea{min-height:70px;max-height:160px;resize:vertical;padding:12px;background:var(--shell-card);color:var(--shell-text);border:1px solid var(--shell-border);border-radius:4px;overflow:auto}.composer-controls{display:flex;flex-direction:column;gap:6px}.chat-composer #chat-status{grid-column:1/-1;opacity:.75;margin:8px 0 0;font-size:13px;overflow-wrap:anywhere}.proposal{border:1px solid var(--shell-accent);border-radius:12px;padding:14px;margin-top:12px;flex:none;max-height:40%;overflow:auto}.proposal h2{font-size:14px;font-weight:600;margin:0 0 8px}.proposal pre{max-height:200px;overflow:auto;white-space:pre-wrap;word-break:break-word;font:inherit;margin:0;user-select:text}.proposal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.details-dialog{width:740px;height:620px}.details-dialog[open]{display:flex;flex-direction:column}.details-dialog pre{flex:1;overflow:auto;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,Consolas,monospace;font-size:12px;padding:18px;margin:0}.mfa-dialog{width:440px;padding:14px 20px 22px}.mfa-dialog .dialog-heading{padding:0 0 12px}.mfa-dialog label{display:block;margin:8px 0}.mfa-dialog input{width:100%;height:48px;background:var(--shell-bg);border:1px solid var(--shell-border);border-radius:6px;color:var(--shell-text);padding:10px}.mfa-actions{display:flex;gap:10px;flex-wrap:wrap}.mfa-dialog p{overflow-wrap:anywhere;font-size:13px}
.voice-panel{position:fixed;z-index:80;left:50%;top:50%;transform:translate(-50%,-50%);width:min(700px,100vw);height:min(610px,100dvh);pointer-events:none}.voice-stage{position:absolute;inset:0;pointer-events:auto}.voice-stage iframe{background:transparent;border:0;width:100%;height:100%;display:block}.voice-actions{display:flex;flex-direction:column;position:absolute;right:28px;top:50%;transform:translateY(-50%);pointer-events:auto;gap:0;opacity:0;transition:opacity .22s ease,translate .3s ease;translate:18px 0}.voice-panel:hover .voice-actions,.voice-panel:focus-within .voice-actions{opacity:1;translate:0}.voice-actions .icon-button{color:#ddebff;background:#00000001;margin:5px}.voice-actions .icon-button:hover,.voice-actions .icon-button:focus-visible{color:#57c9ff;background:#15132b88}.voice-panel.docked{left:auto;top:auto;right:12px;bottom:10px;transform:none;width:310px;height:270px}.voice-panel.docked .voice-actions{right:0}.subtitle-stage{position:absolute;left:0;right:0;bottom:-5px;height:90px;pointer-events:none}.subtitle-stage iframe{width:100%;height:100%;border:0;background:transparent}.toast{position:fixed;z-index:400;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(600px,calc(100vw - 24px));background:var(--shell-card);color:var(--shell-text);border:1px solid var(--shell-accent);display:flex;align-items:center;gap:10px;padding:5px 6px 5px 14px;border-radius:12px;box-shadow:0 8px 30px #0004;overflow-wrap:anywhere}
.page-dialog.maximized{width:calc(100vw - 20px);height:calc(100dvh - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);margin:10px}
.workspace-dialog{width:900px;height:720px}.workspace-dialog[open]{display:flex;flex-direction:column;overflow:auto}.workspace-dialog>.dialog-heading{position:sticky;top:0;background:var(--shell-card);z-index:1}.workspace-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px}.workspace-dialog select,.tenant-dialog select{background:var(--shell-bg);color:var(--shell-text);border:1px solid var(--shell-border);border-radius:7px;min-height:44px;padding:8px;max-width:100%}.workspace-usage,.workspace-status{padding:0 18px;margin:10px 0;font-size:13px}.workspace-items{padding:0 18px;overflow:visible}.workspace-item{padding:14px 0;border-top:1px solid var(--shell-lite);display:flex;gap:12px;align-items:flex-start}.workspace-item>div{min-width:0;flex:1}.workspace-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;max-height:180px;overflow:auto;user-select:text}.workspace-item small{opacity:.7}.workspace-item .secondary-button{margin-left:auto}.workspace-item.conflict{border-left:3px solid var(--shell-accent);padding-left:10px}.transfer-panel{border-top:1px solid var(--shell-border);margin:16px 18px;padding:16px 0}.transfer-panel h2{font-size:18px}.transfer-panel p{font-size:13px}.transfer-panel fieldset{border:1px solid var(--shell-border);border-radius:8px;margin:12px 0;padding:10px;display:grid;grid-template-columns:1fr 1fr}.transfer-panel fieldset label{display:flex;align-items:center;gap:8px;min-height:44px}.transfer-panel input[type=checkbox]{width:18px;height:18px;accent-color:var(--shell-accent)}.transfer-panel dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}.transfer-panel dt{opacity:.7}.transfer-panel dd{margin:0;overflow-wrap:anywhere;user-select:text}.transfer-actions{display:flex;flex-wrap:wrap;gap:8px}.transfer-panel table{width:100%;border-collapse:collapse}.transfer-panel td,.transfer-panel th{padding:8px;text-align:start;border-bottom:1px solid var(--shell-border)}#tenant-choice{width:100%;min-height:44px;margin-bottom:18px;background:var(--shell-bg);color:var(--shell-text);border:1px solid var(--shell-border);padding:8px;border-radius:7px}
.checkout-dialog{width:min(980px,calc(100vw - 32px));height:calc(100dvh - 40px)}.checkout-dialog[open]{display:flex;flex-direction:column}.checkout-summary,.checkout-status{margin:0;padding:8px 18px;flex:none}.checkout-status{font-size:13px;min-height:36px}.checkout-frame{width:100%;flex:1;min-height:0;border:0;background:#fff}
.clipboard-preview{display:block;width:100%;min-height:200px;max-height:380px;resize:vertical;white-space:pre-wrap;background:var(--shell-bg);color:var(--shell-text);border:1px solid var(--shell-border);border-radius:8px;padding:12px;margin-bottom:14px;font:inherit;user-select:text}
@media(max-width:767px){.workspace-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:100%;max-height:100%;margin:0;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.workspace-toolbar{padding:0 12px}.workspace-items,.workspace-usage,.workspace-status{padding-inline:12px}.workspace-item{flex-wrap:wrap}.transfer-panel{margin-inline:12px}.transfer-panel fieldset{grid-template-columns:1fr}}
@media(max-width:767px){.checkout-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:100%;max-height:100%;margin:0;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}}
@media(min-width:768px) and (max-width:1023px){.shell-clip{grid-template-columns:76px minmax(0,1fr)}.window-actions{gap:8px}.topbar{height:82px}.search-form{margin-right:8px}.header-button{margin:0}.gpt-button{margin-right:6px}.page-dialog.small{margin-top:94px}.outer-shell{padding:6px}.navigation{padding-top:4px}}
@media(max-width:767px){.outer-shell{padding:0;border:0;border-radius:0}.shell-clip{display:block;border:0;border-radius:0}.shell-main{height:100%}.rail{position:absolute;z-index:150;left:0;top:0;bottom:0;width:min(280px,calc(100vw - 56px));transform:translateX(-101%);transition:transform .25s ease;border-radius:0;box-shadow:12px 0 30px #0005;padding-bottom:env(safe-area-inset-bottom)}.rail.drawer-open{transform:none}.window-actions{margin:28px 0 24px;justify-content:flex-start;padding-left:28px;gap:18px}.window-dot{width:12px;height:12px}.nav-button{width:calc(100% - 24px);margin:8px 12px 0;justify-content:flex-start;padding:0 20px;gap:22px}.nav-caption{display:inline;font-size:14px}.nav-button::before{inset:0}.store-navigation{margin-bottom:12px}.drawer-shade:not([hidden]){display:block;position:fixed;inset:0;z-index:140;background:#0007;backdrop-filter:blur(2px);padding:0}.topbar{height:72px;border-radius:0;padding:10px 8px;gap:2px;position:relative}.menu-button,.search-expand{display:flex}.header-button{min-width:44px;width:44px;height:44px;margin:0}.gpt-button{margin-right:2px}.profile-chrome{height:49px;width:49px}.header-actions{gap:0}.search-form{display:none;max-width:none;margin:0;position:absolute;left:8px;right:8px;top:calc(100% + 4px);z-index:30;filter:drop-shadow(0 4px 12px #0005)}.topbar.search-open .search-form{display:block}.search-form input{font-size:16px;height:50px;background:var(--shell-card)}.search-expand svg{width:18px;height:18px}.page-dialog,.page-dialog.cloud,.chat-dialog,.details-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;min-width:0;min-height:0;max-width:100%;max-height:100%;margin:0;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.chat-layout{padding:18px 14px calc(12px + env(safe-area-inset-bottom));height:100%}.chat-heading{margin-bottom:10px}.chat-heading h1{font-size:24px}.chat-heading p{font-size:13px}.chat-composer{margin-top:10px;gap:0 8px}.chat-composer textarea{font-size:16px}.primary-button,.secondary-button{padding:8px 12px}.proposal{max-height:35%;padding:10px}.proposal-actions{flex-wrap:wrap}.voice-panel{width:100vw;height:min(610px,90dvh)}.voice-actions{right:8px;opacity:1;translate:0}.voice-panel.docked{width:260px;height:230px;right:0;bottom:20px}.subtitle-stage{bottom:0}.lease-banner{padding:6px 8px;gap:4px}.lease-banner span{font-size:11px}.lease-banner .text-button{padding:8px}.mfa-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.context-menu{font-size:14px}.toast{bottom:calc(12px + env(safe-area-inset-bottom))}}
@media(pointer:coarse){.voice-actions{opacity:1;translate:0}.window-dot::before{inset:-15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:768px){.shell-clip:has(.rail.compact-labels){grid-template-columns:64px minmax(0,1fr)}.rail.compact-labels .window-actions{gap:6px}}
#draft-notice{grid-column:1/-1;font-size:12px;margin-top:6px;overflow-wrap:anywhere}.mfa-actions{flex-wrap:wrap}
.lease-banner select{min-width:0;max-width:220px;min-height:44px;background:var(--shell-bg);color:var(--shell-text);border:1px solid var(--shell-border);border-radius:7px;padding:6px}.lease-banner{flex-wrap:wrap}.lease-banner span{min-width:0;flex:1}
.nav-caption{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:768px){.window-dot::before{inset:-10px -4px}.rail.compact-labels .window-dot::before{inset:-10px -2px}}

/* Browser shell: the viewport owns the frame; navigation owns its width. */
:root{font-family:var(--nexus-font-active,"Segoe UI",Tahoma,Arial,sans-serif)}
.outer-shell{padding:0;border:0;border-radius:0;background:var(--shell-header)}
.shell-clip{grid-template-columns:76px minmax(0,1fr);border:0;border-radius:0;transition:grid-template-columns .22s ease}
.rail{border-radius:0;border-right:1px solid var(--shell-border)}
.rail-brand{height:72px;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding:12px}
.rail-brand img{width:32px;height:32px;object-fit:contain;flex:none}
.rail-brand-name{display:none;font-size:16px;font-weight:650;letter-spacing:-.3px;white-space:nowrap}
.rail-close{display:none}
.topbar{height:72px;border-radius:0;padding:12px 18px;gap:8px}
.menu-button{display:flex;flex:none}
.search-form{max-width:none;margin-right:12px}
.navigation{padding:8px 0}
.nav-button{margin-top:8px}
.nav-button[aria-current=page]{background:color-mix(in srgb,var(--shell-accent) 12%,transparent)}



@media(min-width:768px){
  .nav-expanded .shell-clip{grid-template-columns:244px minmax(0,1fr)}
  .nav-expanded .rail-brand{justify-content:flex-start;padding-inline:22px}
  .nav-expanded .rail-brand-name{display:block}
  .nav-expanded .nav-button{width:calc(100% - 24px);margin-inline:12px;justify-content:flex-start;gap:18px;padding:0 18px}
  .nav-expanded .nav-caption{display:block;font-size:14px}
  .nav-expanded .nav-button::before{inset:0}
}
@media(max-width:767px){
  .shell-clip{display:block}
  .rail-brand{height:72px;justify-content:flex-start;padding:10px 16px}
  .rail-brand-name{display:block}
  .rail-close{display:flex;margin-left:auto;width:48px;height:48px;min-width:48px;flex:0 0 48px;padding:12px}
  .topbar{height:64px;padding:8px;gap:2px}
  .search-form{margin:0}
  .page-dialog.settings{width:100%;height:100dvh;max-width:100%;max-height:100%;margin:0;border-radius:0}
}
@media(prefers-reduced-motion:reduce){.shell-clip{transition:none}}
.chat-dialog{width:min(720px,calc(100vw - 32px));height:auto;min-width:0;min-height:0;max-height:calc(100dvh - 32px)}
.chat-dialog .chat-layout{height:auto;max-height:calc(100dvh - 34px)}
.chat-dialog .proposal{max-height:60dvh}
.chat-dialog #chat-status{margin:12px 0 0;color:var(--shell-muted);font-size:13px}


/* The canonical window is the visible surface. The dialog provides focus and local acrylic. */
.page-dialog {
  width:min(1000px,calc(100vw - 48px));
  height:min(760px,calc(100dvh - 48px));
  background:transparent;
  border:0;
  border-radius:20px;
  box-shadow:none;
  backdrop-filter:blur(20px) saturate(1.12);
}
.page-dialog::backdrop {
  background:color-mix(in srgb,var(--shell-bg) 14%,transparent);
  backdrop-filter:none;
}
.page-dialog[open]{display:flex;flex-direction:column}
.overlay-stage{flex:1;min-height:0;min-width:0;border-radius:inherit}
.overlay-stage .page-frame{background:transparent;color-scheme:inherit;border-radius:inherit}
.overlay-close{position:absolute;inset-block-start:4px;inset-inline-end:4px;z-index:1}
@media(max-width:300px){
  .topbar{display:grid;grid-template-columns:44px minmax(0,1fr);height:auto;min-height:48px;padding:2px;gap:2px;align-items:start}
  .topbar>.header-button,.topbar>.search-expand,.topbar>.header-actions{flex:0 0 auto}
  .topbar>.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px;min-width:0;height:auto}
  .topbar .header-button{min-width:44px;width:44px;height:44px}
  .topbar.search-open .search-form{position:fixed;top:50px;left:6px;right:6px;z-index:40}
  .rail{width:calc(100vw - 12px);max-width:260px}
  .rail-brand{height:48px;padding:2px 6px}
  .rail-brand-name{font-size:12px;min-width:0;overflow:hidden}
  .page-dialog.small{width:calc(100vw - 8px);height:calc(100dvh - 56px);margin:52px 4px 4px}
  .context-menu,.nexus-profile-menu{min-width:0;max-width:calc(100vw - 12px);max-height:calc(100dvh - 52px);overflow:auto}
}
.page-dialog.small{width:min(420px,calc(100vw - 24px));height:min(600px,calc(100dvh - 110px));margin-block:82px auto;margin-inline:auto 16px}
.page-dialog.settings{width:min(1100px,calc(100vw - 48px));height:min(720px,calc(100dvh - 48px))}
.page-dialog.cloud{width:min(1390px,calc(100vw - 40px));height:min(900px,calc(100dvh - 40px))}
.page-dialog.maximized{width:calc(100vw - 20px);height:calc(100dvh - 20px)}
.toast .icon-button{font-size:20px}
@media(max-width:767px){
  .page-dialog:not(.small),.page-dialog.settings,.page-dialog.cloud,.page-dialog.maximized{inset:0;width:100%;height:100dvh;max-width:100%;max-height:100%;margin:0;border-radius:0}
  .page-dialog.small{inset:0;width:min(420px,calc(100vw - 16px));height:min(600px,calc(100dvh - 84px));margin-block:68px auto;margin-inline:auto 8px}
}
