/* RYUMOUN OS: one semantic theme for the existing application. No remote fonts or trackers. */
:root{--base:#10121c;--surface:#191c2a;--raised:#242838;--ink:#f2f3fa;--muted:#b5bfd1;--border:#444c64;--accent:#b59aff;--accent-ink:#20103d;--purple:#c3a5ff;--gold:#f0c76f;--danger:#ffb4bf;--shadow:0 16px 48px #0003;--radius:16px;--control-radius:10px;--panel:var(--surface);--focus:var(--accent);--space:24px}
body.light{--base:#f4f5fa;--surface:#fff;--raised:#eceef6;--ink:#202536;--muted:#566078;--border:#c7cddd;--accent:#6940bd;--accent-ink:#fff;--purple:#6940bd;--gold:#795500;--danger:#b42340;--shadow:0 12px 40px #30245210}
body[data-accent=purple]{--accent:#b59aff;--accent-ink:#20103d}body.light[data-accent=purple]{--accent:#6940bd;--accent-ink:#fff}body[data-accent=cyan]{--accent:#6fd9e9;--accent-ink:#092c33}body.light[data-accent=cyan]{--accent:#006b7c;--accent-ink:#fff}body[data-accent=gold]{--accent:#edc679;--accent-ink:#312204}body.light[data-accent=gold]{--accent:#805b06;--accent-ink:#fff}
body{font-family:'Segoe UI',system-ui,sans-serif;font-size:15px;line-height:1.6;background:var(--base);text-rendering:optimizeLegibility}button,input,select,textarea{font-family:inherit}::selection{background:var(--accent);color:var(--accent-ink)}h1,h2,h3,strong{font-weight:650}h1{letter-spacing:-.8px}button,summary,a,input,select,textarea{touch-action:manipulation}button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:disabled{cursor:not-allowed}
.commercial-shell{--menu-muted:var(--muted);--menu-accent:var(--accent);--menu-line:var(--border);background:var(--base)}.commercial-shell .sidebar,body.light .commercial-shell .sidebar{background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--purple) 9%,transparent),transparent 48%),var(--surface);border-color:var(--border)}.commercial-shell .brand strong,body.light .commercial-shell .brand strong{color:var(--ink)}.commercial-shell .brand strong>span,body.light .commercial-shell .brand strong>span{color:var(--accent)}.commercial-shell .brand small,body.light .commercial-shell .brand small{color:var(--muted)}.commercial-shell .brand img{box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 7%,transparent);border-color:var(--border)}.commercial-shell .sidebar-search,body.light .sidebar-search{background:var(--base);color:var(--muted);border:1px solid var(--border);border-radius:var(--control-radius);min-height:44px}.commercial-shell .sidebar-search kbd,body.light .sidebar-search kbd{color:var(--muted);border-color:var(--border)}
.commercial-shell .nav-fold>summary,body.light .commercial-shell .nav-fold>summary{color:var(--ink);font-size:13px;letter-spacing:.2px;font-weight:650;min-height:44px}.commercial-shell nav button,body.light .commercial-shell nav button{font-size:14px;color:var(--muted);min-height:42px;border-radius:var(--control-radius)}.commercial-shell nav button:hover,body.light .commercial-shell nav button:hover{background:var(--raised);color:var(--ink)}.commercial-shell nav button[aria-current=page],body.light .commercial-shell nav button[aria-current=page]{background:color-mix(in srgb,var(--accent) 13%,var(--surface));color:var(--accent);border-color:color-mix(in srgb,var(--accent) 25%,transparent);box-shadow:inset 3px 0 var(--accent)}.commercial-shell nav button[aria-current=page] .menu-icon,body.light .commercial-shell nav button[aria-current=page] .menu-icon{color:var(--accent)}.sidebar-footer,body.light .sidebar-footer{border-color:var(--border);color:var(--muted)}.sidebar-footer small,body.light .sidebar-footer small{color:var(--muted)}
.commercial-shell .topbar{background:var(--surface);border-color:var(--border);min-height:84px}.commercial-shell .main-content{padding:28px 32px 42px}.commercial-shell .heading h1{font-size:clamp(25px,2.3vw,32px);letter-spacing:-.9px;line-height:1.2}.commercial-shell .heading p{font-size:14px;line-height:1.7;color:var(--muted)}.commercial-shell .heading .eyebrow,body.light .commercial-shell .heading .eyebrow{color:var(--accent);font-size:11px}.commercial-shell .access-location{opacity:1;font-size:12px}.commercial-shell .access-tools{gap:8px;margin-bottom:24px}.commercial-shell .access-tools>.btn{font-size:12px;min-height:40px;padding:8px 12px;border-color:var(--border);border-radius:var(--control-radius);background:var(--surface)}.commercial-shell .access-tools .navigation-search-button{background:color-mix(in srgb,var(--accent) 5%,var(--surface));border-color:var(--border)}.commercial-shell .page-footer{opacity:1;font-size:12px;border-color:var(--border);padding-bottom:52px}
.card,.lead-card,.work-card,.inbox-shell,dialog{border-radius:var(--radius);border-color:var(--border);background:var(--surface);box-shadow:0 3px 16px #00000006}.card{padding:var(--space)}.btn{border-radius:var(--control-radius);background:var(--surface);font-size:14px;min-height:42px}.btn:hover{background:var(--raised);border-color:var(--accent)}.btn.primary,.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);box-shadow:none}.btn.primary:hover{background:var(--accent);filter:brightness(1.07)}input,select,textarea{border-radius:var(--control-radius);background:var(--base);border-color:var(--border);color:var(--ink);padding:11px 12px;min-height:44px}.field{color:var(--muted);font-size:14px}input[type=checkbox]{accent-color:var(--accent)}.table-wrap{scrollbar-width:thin;scrollbar-color:var(--border) transparent}th{font-weight:650;color:var(--muted);background:var(--surface);font-size:13px}th,td{padding:15px 12px;border-color:var(--border)}tbody tr:hover{background:color-mix(in srgb,var(--accent) 4%,var(--surface))}.tag{font-size:12px;padding:4px 10px;background:var(--base);color:var(--muted);border-color:var(--border)}.note,.empty,.ryu-fold[open]>summary{border-color:var(--border)}.files-dialog{background:var(--surface);border-color:var(--border)}.attachment-preview,.product-photo,.file-icon{background:var(--base);border-color:var(--border);color:var(--muted)}.photo-empty{color:var(--muted)}.ryu-fold>summary{color:var(--ink);line-height:1.5}.appearance-switch{border-color:var(--border);background:var(--base)}.appearance-switch button{color:var(--muted);font-size:12px;min-height:38px}.appearance-switch button[aria-pressed=true]{color:var(--accent);background:var(--surface);border-color:var(--border)}.interface-customize{width:100%;margin-top:8px;font-size:12px;min-height:36px}.interface-sample{border-radius:var(--radius);border:1px solid var(--border);background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 7%,var(--surface)),var(--surface));padding:20px}.interface-sample p{color:var(--muted);font-size:14px}
.ai-chat-host[data-theme=system]{--chat-bg:var(--surface);--chat-panel:var(--raised);--chat-ink:var(--ink);--chat-muted:var(--muted);--chat-line:var(--border);font-family:inherit}.ai-chat-host{font-family:'Segoe UI',system-ui,sans-serif}.ai-chat-head{background:linear-gradient(115deg,#6340ad,#7c54c4)}.ai-chat-message.is-user>span,.ai-chat-primary,.ai-chat-input-row>button{background:#6940bd;color:#fff}.ai-chat-host[data-theme=system] .ai-chat-message.is-user>span,.ai-chat-host[data-theme=system] .ai-chat-primary,.ai-chat-host[data-theme=system] .ai-chat-input-row>button{background:var(--accent);color:var(--accent-ink)}.ai-chat-compose>small{font-size:11px}.ai-chat-options label{font-size:12px}.ai-chat-tools button{font-size:13px}.inbox-thread-copy small,.inbox-channel-note,.inbox-compose small{font-size:12px}
body[data-density=compact]{--space:18px}body[data-density=compact] .commercial-shell .main-content{padding-top:20px}body[data-density=compact] th,body[data-density=compact] td{padding-top:10px;padding-bottom:10px}body[data-density=compact] .commercial-shell nav button{min-height:36px;padding-top:7px;padding-bottom:7px}body[data-text=large]{font-size:17px}body[data-text=large] .commercial-shell nav button,body[data-text=large] .field,body[data-text=large] .commercial-shell .heading p,body[data-text=large] .btn,body[data-text=large] table{font-size:16px}body[data-text=large] .ai-chat-text{font-size:16px}body[data-contrast=high]{--muted:#dde2ef;--border:#8994ac}body.light[data-contrast=high]{--muted:#353d50;--border:#737d94}body[data-corners=straight]{--radius:7px;--control-radius:5px}
@media(max-width:760px){.commercial-shell .main-content{padding:20px 16px 32px}.commercial-shell .topbar{min-height:72px}.commercial-shell .access-tools>.btn{font-size:12px;min-height:40px}.commercial-shell .heading p{font-size:14px}.commercial-shell .access-location{font-size:11px}.card{padding:18px}input,select,textarea{font-size:16px}.commercial-shell .sidebar{padding-bottom:14px}.sidebar-footer{flex-shrink:0}th,td{padding:12px 10px}}
@media print{body{--ink:#111;--surface:#fff;--base:#fff;--muted:#333;--border:#aaa}.interface-customize,#ai-chat-dock{display:none!important}}
body:not(.light) .ai-chat-host[data-theme=system],body.light .ai-chat-host[data-theme=system]{--chat-bg:var(--surface);--chat-panel:var(--raised);--chat-ink:var(--ink);--chat-muted:var(--muted);--chat-line:var(--border)}
/* Workspace navigation: shared colors, readable controls and restrained hierarchy. */
.commercial-shell input[type=checkbox],.commercial-shell input[type=radio]{width:18px;height:18px;min-height:18px;padding:0;vertical-align:middle;flex-shrink:0}.commercial-shell .checkbox{display:inline-flex;gap:8px;align-items:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.commercial-shell .brand small{font-size:9px;letter-spacing:1.15px;line-height:1.6;margin-top:4px}.commercial-shell .brand strong{letter-spacing:.7px}
.commercial-shell .topbar{gap:24px;position:relative;z-index:12}.workspace-identity{flex:0 1 180px;min-width:110px}.workspace-search{flex:1 1 420px;max-width:620px;min-width:180px;position:relative}.workspace-search form{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;background:var(--base);padding:0 12px;transition:border-color .16s,box-shadow .16s}.workspace-search form:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}.workspace-search .menu-icon{width:18px;flex-shrink:0;color:var(--muted)}.workspace-search input{width:100%;min-width:0;border:0;background:transparent;padding:12px 0;font-size:14px;outline:none!important;box-shadow:none}.workspace-search input::placeholder{color:var(--muted);opacity:1}.workspace-search button{border:0;background:transparent;color:var(--muted);cursor:pointer;min-height:36px}.workspace-search form>button{font-size:20px;padding:4px 8px}.workspace-search-history{position:absolute;top:calc(100% + 8px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px;box-shadow:var(--shadow);max-height:380px;overflow:auto}.workspace-search-history[hidden]{display:none}.search-history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:6px}.search-history-heading button{color:var(--accent);font-size:12px}.workspace-search-history>button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border-radius:8px;padding:8px;overflow-wrap:anywhere}.workspace-search-history>button:hover{background:var(--raised);color:var(--ink)}.workspace-search-history>small,.workspace-search-history>p{display:block;color:var(--muted);font-size:11px;padding:6px;margin:0}.topbar-actions{flex-shrink:0}.commercial-shell .workspace-date{font-size:11px;color:var(--muted)}
.workspace-launchpad{padding:0 0 14px;margin-bottom:8px;border-bottom:1px solid var(--border)}.workspace-launchpad h2{font-size:10px;text-transform:uppercase;letter-spacing:1.3px;color:var(--muted);margin:10px 8px}.workspace-quick{display:grid;grid-template-columns:1fr 1fr;gap:6px}.commercial-shell nav .workspace-quick button{display:flex;align-items:center;gap:8px;min-height:40px;font-size:11px;border:1px solid color-mix(in srgb,var(--border) 65%,transparent);padding:7px 8px;width:100%;margin:0;background:var(--base)}.workspace-quick .menu-icon{width:15px;height:15px;flex-shrink:0}.workspace-apps{border:1px solid color-mix(in srgb,var(--accent) 25%,var(--border));border-radius:12px;margin-top:12px;background:color-mix(in srgb,var(--accent) 4%,var(--surface));overflow:hidden}.workspace-apps>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:12px 10px;font-size:12px;font-weight:650;color:var(--ink);list-style:none}.workspace-apps>summary::-webkit-details-marker{display:none}.workspace-apps>summary .menu-icon{width:16px;height:16px;color:var(--accent)}.workspace-apps>summary small{margin-left:auto;border-radius:6px;background:var(--raised);color:var(--muted);padding:0 6px;font-size:10px}.workspace-apps>div{padding:0 6px 6px}.commercial-shell nav .workspace-apps button{display:flex;gap:9px;align-items:center;width:100%;padding:8px;min-height:48px;text-align:left;margin:0;border:0}.workspace-apps button>.menu-icon{width:18px;height:18px;flex-shrink:0;color:var(--accent)}.workspace-apps button>span:nth-child(2){flex:1}.workspace-apps strong{display:block;font-size:12px;color:var(--ink);font-weight:600}.workspace-apps button small{display:block;font-size:10px;color:var(--muted);line-height:1.5}.commercial-shell .nav-fold{border-top:0;border-bottom:1px solid color-mix(in srgb,var(--border) 45%,transparent)}
@media(min-width:1100px){.commercial-shell .sidebar{width:272px}.commercial-shell{grid-template-columns:272px minmax(0,1fr)}}
@media(max-width:1200px){.workspace-date{display:none}.workspace-identity{flex-basis:120px}.commercial-shell .topbar{gap:14px}.workspace-search{flex-basis:300px}}
@media(max-width:850px){.commercial-shell .topbar{height:auto;flex-wrap:wrap;padding:14px 18px}.workspace-search{order:4;flex:1 0 100%;max-width:none;min-width:0}.workspace-identity{flex:1}.topbar-actions .user-name{display:none}.workspace-search input{font-size:16px}.workspace-search-history{max-height:300px}.commercial-shell .topbar-actions{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.workspace-search form{transition:none}}
/* RYU depth: layered light, small distances and no perpetual animation. */
:root{--ryu-edge:#ffffff0b;--ryu-ambient:0 7px 22px #00000024;--ryu-lift:0 9px 24px #00000030;--ryu-ease:cubic-bezier(.2,.7,.2,1)}
body.light{--ryu-edge:#ffffffd9;--ryu-ambient:0 6px 20px #2939570b;--ryu-lift:0 8px 20px #29395718}
.commercial-shell .card,.commercial-shell .lead-card,.commercial-shell .work-card{box-shadow:inset 0 1px 0 var(--ryu-edge),var(--ryu-ambient)}
.commercial-shell .topbar{box-shadow:0 3px 16px #00000008}.workspace-apps{box-shadow:inset 0 1px 0 var(--ryu-edge),0 4px 18px color-mix(in srgb,var(--accent) 5%,transparent)}
.commercial-shell .btn.primary{background:linear-gradient(165deg,color-mix(in srgb,var(--accent) 88%,white),var(--accent));box-shadow:inset 0 1px 0 #ffffff35,0 3px 8px color-mix(in srgb,var(--accent) 16%,transparent)}
.commercial-shell .systems-kpis article{border-top:2px solid color-mix(in srgb,var(--accent) 65%,var(--border));box-shadow:inset 0 1px 0 var(--ryu-edge),0 4px 12px #0000000a}.systems-kpis strong{color:var(--ink);font-variant-numeric:tabular-nums}
.commercial-shell :is(.btn,.workspace-apps button,.workspace-quick button,.appearance-switch button){transition:transform 150ms var(--ryu-ease),box-shadow 180ms var(--ryu-ease),border-color 180ms ease,background-color 180ms ease,color 180ms ease}
.commercial-shell :is(.btn,.workspace-apps button,.workspace-quick button):active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 1px 3px #00000010}
.commercial-shell .nav-fold>summary::after{transition:transform 180ms var(--ryu-ease)}
.ryu-theme-changing,.ryu-theme-changing :is(.commercial-shell,.sidebar,.topbar,.card,.lead-card,.work-card,.btn,input,select,textarea,th,td,.tag,.workspace-search form,.workspace-apps,.workspace-search-history,.appearance-switch,.sidebar-search,.ai-chat-host,.ai-chat-message>span,.systems-kpis article,dialog){transition:background-color 360ms ease,color 300ms ease,border-color 360ms ease,box-shadow 360ms ease!important}
dialog[open]{animation:ryu-dialog-in 180ms var(--ryu-ease)}.workspace-search-history:not([hidden]){animation:ryu-pop-in 140ms var(--ryu-ease)}
@keyframes ryu-dialog-in{from{opacity:.65;transform:translateY(6px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ryu-pop-in{from{opacity:.65;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover) and (pointer:fine){.commercial-shell :is(.btn,.workspace-apps button,.workspace-quick button):hover:not(:disabled){transform:translateY(-1px);box-shadow:inset 0 1px 0 var(--ryu-edge),var(--ryu-lift)}.commercial-shell .btn.primary:hover{filter:none;border-color:color-mix(in srgb,var(--accent) 80%,white)}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}.commercial-shell *,.commercial-shell *::before,.commercial-shell *::after,dialog,dialog *,#ai-chat-dock *{animation:none!important;transition:none!important}.commercial-shell :is(.btn,.workspace-apps button,.workspace-quick button):is(:hover,:active){transform:none!important}.ryu-theme-changing,.ryu-theme-changing *{transition:none!important}}
@media print{.commercial-shell *{animation:none!important;transition:none!important;box-shadow:none!important}}
/* Chat accent belongs to the user while surfaces follow the CRM's clear/dark theme. */
body .ai-chat-host{--chat-accent:var(--accent);--chat-on-accent:var(--accent-ink)}
body .ai-chat-host[data-accent=violet]{--chat-accent:#b89cf5;--chat-on-accent:#22133c}body.light .ai-chat-host[data-accent=violet]{--chat-accent:#7147b8;--chat-on-accent:#fff}
body .ai-chat-host[data-accent=ocean]{--chat-accent:#70d5df;--chat-on-accent:#082f35}body.light .ai-chat-host[data-accent=ocean]{--chat-accent:#006c7c;--chat-on-accent:#fff}
body .ai-chat-host[data-accent=amber]{--chat-accent:#edc77d;--chat-on-accent:#342405}body.light .ai-chat-host[data-accent=amber]{--chat-accent:#805a12;--chat-on-accent:#fff}
body .ai-chat-host[data-theme=system] :is(.ai-chat-primary,.ai-chat-input-row>button,.ai-chat-message.is-user>span){background:var(--chat-accent);color:var(--chat-on-accent)}
body .ai-chat-host .ai-chat-head{background:linear-gradient(115deg,color-mix(in srgb,var(--chat-accent) 27%,#211335),#39244f);color:#fff}.ai-chat-tools button[aria-pressed=true]{background:color-mix(in srgb,var(--chat-accent) 15%,var(--chat-bg));box-shadow:inset 0 -2px 0 var(--chat-accent)}
.commercial-shell .nav-fold>summary:hover{background:color-mix(in srgb,var(--accent) 4%,transparent);border-radius:10px}.commercial-shell .workspace-apps button:hover>.menu-icon{color:var(--ink)}
@media(prefers-reduced-motion:no-preference){.commercial-shell .nav-fold[open]>button{animation:ryu-nav-reveal 150ms ease-out}.workspace-search form:focus-within .menu-icon{color:var(--accent);transition:color 150ms ease}.ai-chat-context{box-shadow:inset 2px 0 0 color-mix(in srgb,var(--chat-accent) 55%,transparent)}}
@keyframes ryu-nav-reveal{from{opacity:.75}to{opacity:1}}
/* In-place immersion retains the editor; the assistant remains above the workspace. */
.ryu-immersive-launch{display:flex;justify-content:flex-end;margin:0 0 12px;flex-shrink:0}.ryu-immersive-launch .btn{font-size:12px;min-height:40px}
body.ryu-immersive-open{overflow:hidden}.ryu-immersive{position:fixed!important;inset:0!important;width:100vw!important;height:var(--ryu-visible-height,100dvh)!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;padding:76px 16px 12px!important;border:0!important;border-radius:0!important;background:var(--base)!important;z-index:40!important;box-shadow:none!important;overflow:auto!important}
.ryu-immersive-open #notification{z-index:70}.ryu-immersive-open #ai-chat-dock{bottom:calc(64px + env(safe-area-inset-bottom) + var(--ryu-keyboard-inset,0px))}.ryu-immersive-open #ai-chat-dock .ai-chat-host{max-height:calc(var(--ryu-visible-height,100dvh) - 180px);min-height:min(360px,calc(var(--ryu-visible-height,100dvh) - 180px))}
.ryu-immersive-bar{position:absolute;left:0;right:0;top:0;min-height:64px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--surface);border-bottom:1px solid var(--border);z-index:2}.ryu-immersive-bar>div:first-child{min-width:0;flex:1}.ryu-immersive-bar strong{font-size:14px;display:block}.ryu-immersive-bar small{display:block;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55vw}.ryu-immersive-actions{display:flex;align-items:center;gap:8px}.ryu-immersive-actions .btn{white-space:nowrap;min-height:40px;font-size:12px;padding:8px 12px}
.ryu-immersive>.ryu-immersive-launch{display:none}#sheets-workspace.ryu-immersive{display:flex;flex-direction:column}#sheets-workspace.ryu-immersive>.row,#sheets-workspace.ryu-immersive>.note{display:none}#sheets-workspace.ryu-immersive>.sheets-engine{flex:1;min-height:0;height:auto;max-height:none;resize:none;overflow:auto}
#systems-main.ryu-immersive:has(#systems-editor){display:flex;flex-direction:column}#systems-main.ryu-immersive:has(#systems-editor)>:is(.row,.note,.small,#sys-file-status){display:none}#systems-main.ryu-immersive .systems-editor{flex:1;height:auto;min-height:0;max-height:none;margin:0}
.inbox-shell.ryu-immersive{display:grid;grid-template-columns:310px minmax(0,1fr)}.ryu-immersive.ryu-editor-wide iframe{min-width:960px!important}.ryu-immersive.ryu-editor-wide .sheets-engine{overflow:auto!important}
#ai-chat-module.ryu-immersive{display:flex;flex-direction:column}#ai-chat-module.ryu-immersive .ai-chat-host.is-inline{flex:1;height:auto!important;min-height:0!important;max-width:100%;width:100%;resize:none}
@media(max-width:760px){
 .presentation-login{padding:22px 16px;gap:18px;min-height:100svh;align-content:center}.presentation-login .login-wordmark{font-size:20px;letter-spacing:1px;margin-bottom:10px}.presentation-login h1{font-size:26px;letter-spacing:-.7px;margin:8px 0}.presentation-login .login-description{font-size:13px;line-height:1.5}.presentation-login .login-brand .eyebrow,.presentation-login .login-visual,.presentation-login .login-pillars{display:none}.presentation-login .login-card{padding:24px 20px;border-radius:20px}.presentation-login .login-card h2{font-size:22px}.presentation-login .login-badge{margin-bottom:14px}.presentation-login form{margin-top:18px}.presentation-login input{font-size:16px}
 .commercial-shell .sidebar{width:min(332px,calc(100vw - 32px));padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}.commercial-shell .nav-fold>summary{min-height:48px}.commercial-shell nav button{min-height:44px}.commercial-shell .workspace-quick button{min-height:44px;font-size:12px}.commercial-shell .workspace-apps button{min-height:52px}.commercial-shell .workspace-apps strong{font-size:13px}.commercial-shell .workspace-apps button small{font-size:11px}
 .commercial-shell .main-content{padding:18px 12px 32px}.commercial-shell .main-content>.heading{gap:12px}.commercial-shell .main-content .row{flex-wrap:wrap}.commercial-shell .main-content :is(.row,.form-grid,.toolbar)>*{min-width:0}.commercial-shell .heading .btn{min-height:44px}.commercial-shell input:not([type=checkbox],[type=radio],[type=range]),.commercial-shell select,.commercial-shell textarea{font-size:16px;max-width:100%}.commercial-shell .table-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}.commercial-shell .table-actions .btn{min-height:42px}.commercial-shell .toolbar label{min-width:min(130px,100%)}.commercial-shell .form-actions{flex-wrap:wrap;gap:8px}.commercial-shell .form-actions .btn{flex:1 1 140px}
 dialog{width:calc(100vw - 24px)!important;max-width:680px;max-height:calc(var(--ryu-visible-height,100dvh) - 24px);padding:18px!important;margin:auto;overflow:auto}.dialog-head{gap:10px}.dialog-head h2{font-size:20px;overflow-wrap:anywhere}.dialog-head #close-dialog{min-width:44px;min-height:44px;flex-shrink:0}dialog .form-grid{grid-template-columns:minmax(0,1fr)}dialog :is(input,select,textarea){max-width:100%;min-width:0;font-size:16px}
 .ryu-immersive{padding:112px 8px 8px!important}.ryu-immersive-bar{padding:8px 10px;gap:6px;flex-wrap:wrap;min-height:96px}.ryu-immersive-bar>div:first-child{flex:1 0 100%}.ryu-immersive-bar small{max-width:94vw}.ryu-immersive-actions{width:100%;justify-content:flex-end;gap:6px}.ryu-immersive-actions .btn{min-height:44px;padding:8px 10px}.inbox-shell.ryu-immersive{grid-template-columns:minmax(0,1fr)}.inbox-shell:not(.ryu-immersive){height:calc(var(--ryu-visible-height,100dvh) - 200px);min-height:420px}.inbox-compose .btn{min-height:44px}.inbox-tabs button{min-height:46px}.inbox-search{margin:12px}
 .sheets-engine{height:70dvh;min-height:420px;max-height:none}.systems-editor{height:70dvh;min-height:420px}#systems-area .systems-tabs .btn{flex:1 1 135px;min-height:44px}.systems-library{max-height:240px}.systems-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.systems-kpis article{padding:14px}.systems-kpis strong{font-size:1.35em;overflow-wrap:anywhere}.systems-tabs{gap:6px}
 #ai-chat-dock{bottom:calc(12px + env(safe-area-inset-bottom) + var(--ryu-keyboard-inset,0px))}.ai-chat-host:not(.is-inline){height:min(var(--chat-preferred-height,660px),calc(var(--ryu-visible-height,100dvh) - 112px))!important;max-height:calc(var(--ryu-visible-height,100dvh) - 112px);min-height:min(360px,calc(var(--ryu-visible-height,100dvh) - 112px))}.ai-chat-head button,.ai-chat-tools button{min-height:42px}.ai-chat-head button{width:36px}.ai-chat-head{gap:6px}.ai-chat-head>img{width:40px;height:40px}.ai-chat-head strong{font-size:14px}.ai-chat-tools button{font-size:12px}.ai-chat-head small{font-size:10px}
}
@media(max-width:360px){.commercial-shell .topbar{padding:12px}.commercial-shell .access-tools>.btn{flex:1 1 125px}.commercial-shell .heading h1{font-size:24px}.ai-chat-head>img{width:32px;height:32px}.ai-chat-head strong{font-size:12px}.ai-chat-head button{width:32px}.ryu-immersive-bar strong{font-size:13px}}
.sector-pack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:20px 0}.sector-pack{padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--base)}.sector-pack h3{font-size:19px;margin:12px 0 8px}.sector-pack p{color:var(--muted);font-size:14px}.sector-checks{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}.sector-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px}.sector-kind{display:block;width:100%;text-align:left;margin:8px 0;white-space:normal}.sector-kind[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.sector-record{padding:18px 0;border-bottom:1px solid var(--border)}.sector-record h3{margin:0 0 12px;overflow-wrap:anywhere}.sector-record dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px}.sector-record dt{font-size:12px;color:var(--muted)}.sector-record dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.sector-shortcuts{margin-bottom:16px}.sector-layout>*,.sector-layout .field{min-width:0}@media(max-width:850px){.sector-layout{grid-template-columns:1fr}.sector-layout aside{display:flex;gap:8px;overflow:auto;align-items:center}.sector-layout aside h2{font-size:16px;flex-shrink:0}.sector-kind{width:auto;min-width:170px;flex-shrink:0;min-height:48px}.sector-checks{grid-template-columns:1fr}.sector-layout>.card{padding:16px}}

/* Keep long activity fingerprints and receipt payloads inside mobile cards. */
.main-content .card p,.main-content .note{overflow-wrap:anywhere;word-break:normal}

/* Online beta: surfaces remain opaque, readable, and scoped to the current theme. */
body dialog,body .workspace-search-panel,body .dropdown-menu{background:var(--panel,#191d2c);backdrop-filter:none}
body.light dialog,body.light .workspace-search-panel,body.light .dropdown-menu{background:var(--panel,#fff)}
#ai-provider-panel{overflow-wrap:anywhere}#ai-provider-panel input,#ai-provider-panel select{max-width:100%;min-width:0}#ai-provider-panel .row{flex-wrap:wrap}
.ai-chat-host{isolation:isolate}.ai-chat-log,.ai-chat-compose,.ai-chat-settings,.ai-chat-history{background:var(--chat-bg);opacity:1}.ai-chat-head{background:var(--chat-panel)}
@media(max-width:600px){#ai-provider-panel .form-grid{grid-template-columns:1fr}.ai-chat-head small{max-width:220px;white-space:normal;line-height:1.4}}
