/* A quiet, consistent workspace: neutral surfaces, one blue, clear type. */
:root{--muted:#64717e;--line:#e6eaf0;--wash:#f7f9fc;--radius:12px}
body{--sidebar:248px}
h1{font-size:1.875rem;letter-spacing:-.04em;line-height:1.4}
h2{line-height:1.5}
.page{padding:32px;max-width:1472px;container-type:inline-size}
.page-header{margin-bottom:28px;gap:24px}
.page-header>div:first-child{min-width:0}
.page-header h1,.page-header p{word-break:keep-all;overflow-wrap:break-word}
.section-heading p,.card-header p,.modal-header p,.home-heading p{word-break:keep-all;overflow-wrap:break-word}
.page-header p{line-height:1.75}
.eyebrow{color:#64717e;font-size:.8125rem;font-weight:550;letter-spacing:.06em;margin-bottom:8px}
.btn{min-height:44px;flex-shrink:0}
.icon-button{width:40px;height:40px}
.card-header{padding:24px 24px 16px}
.card-body{padding:0 24px 24px}
.card-header p,.company-switch .subtext,.capture-option span{font-size:.875rem;color:var(--muted)}
.table-sub,th,.notice-row .date,.announcement-card .date,.login-notes span,.source-caption,.login-account div>span{color:var(--muted)}
th{font-size:.875rem;font-weight:550}
.source-caption{font-size:.875rem;line-height:1.7}
.tag.gray{color:#5e6d7c;background:#f0f3f7}
.tag.blue{color:#365cae;background:#edf2ff}
.tag.teal{color:#16725e;background:#e9f5f0}
.tag.amber{color:#885d1e;background:#fff5e5}
.tag.rose{color:#a04455;background:#fceff2}
.table-merchant>span,.approval-subject{min-width:0;overflow-wrap:anywhere}
.todo-row strong{white-space:nowrap;flex-shrink:0}
.todo-row>span{word-break:keep-all}
.topbar{height:76px;padding:0 32px;gap:16px}
.topbar-search{min-width:0}
.topbar-actions{gap:12px}
.profile-button{min-height:44px;max-width:220px}
.profile-button .name{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-account{display:flex;align-items:center;gap:10px;width:100%;min-height:58px;text-align:left;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:#344761;margin-top:6px}
.sidebar-account:hover{background:#f2f5fa}
.sidebar-account .avatar{width:32px;height:32px;flex:none;font-size:12px}
.sidebar-account-text{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.sidebar-account-text strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-account-text small{font-size:12px;color:#64717e}
.sidebar-account>.icon{width:16px;height:16px;flex:none;color:#7b8ca2}
.account-signing-out #app,.account-signing-out #overlays{visibility:hidden!important}
@media(min-width:761px){.sidebar-collapsed .sidebar-account{justify-content:center;padding:9px 0}.sidebar-collapsed .sidebar-account-text,.sidebar-collapsed .sidebar-account>.icon{display:none}}
.breadcrumb{min-width:0;flex-shrink:1}
.breadcrumb span:first-child{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.breadcrumb span:last-child{white-space:nowrap;color:#516172}
.sidebar{padding:0 16px;height:100dvh;transition:width .2s ease}
.sidebar-brand-row{flex:none;position:relative}
.brand{height:76px;padding:0 12px;min-width:0}
.brand-mark{height:36px;width:36px;object-fit:contain;flex:none}
.brand-word{font-size:1.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.brand-word span{font-size:.625rem;line-height:1.6;letter-spacing:.16em;margin-top:-2px;color:#657489}
.company-switch{margin:8px 0 24px;padding:12px;flex:none;min-height:70px}
.company-switch .stack{min-width:0;gap:3px}
.company-switch strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.9375rem}
.company-icon{flex:none}
.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d9e1eb transparent;padding-bottom:8px}
.nav-label{font-size:.8125rem;color:#758195;font-weight:500;padding:0 14px;margin-bottom:8px;letter-spacing:0}
.nav-group{gap:4px;margin-bottom:24px}
.nav-link{height:46px;border-radius:8px;font-size:.9375rem;color:#59697b;position:relative}
.nav-link.active{background:#edf2ff;color:#365fc3}
.nav-link .icon{width:20px;height:20px;stroke-width:1.65}
.nav-link .count{font-size:.75rem}
.sidebar-bottom{flex:none;margin:0;padding:12px 0 16px;border-top:1px solid var(--line)}
.workspace-caption{padding:18px 14px 0;font-size:.75rem;color:#6b788b;display:flex;justify-content:space-between;gap:8px}
.workspace-caption span{color:#6b788b}
.desktop-menu-toggle{flex:none;border:1px solid transparent}
.desktop-menu-toggle:hover{border-color:var(--line)}
.main-shell{transition:margin-left .2s ease}
.nav-tooltip{position:fixed;z-index:80;padding:8px 12px;background:#263448;color:#fff;font-size:.875rem;border-radius:6px;box-shadow:0 4px 16px #17263d1a;pointer-events:none;white-space:nowrap;transform:translateY(-50%)}
.nav-tooltip[hidden]{display:none}
.pilot-banner{background:#f8faff;border-color:#e4ebf9;color:#516581;border-radius:8px;line-height:1.6}
.pilot-banner>.icon{width:18px;height:18px;color:#5273b6}
.demo-footer{color:#6c7a8b;font-size:.8125rem;line-height:1.6;margin-top:32px}
.settings-layout.refined-settings{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:start}
.refined-settings .lower-main{display:flex;flex-direction:column;gap:24px}
.settings-section{padding:24px;margin-bottom:0}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}
.section-heading h2{font-size:1.0625rem}
.section-heading p{font-size:.875rem;margin-top:6px;line-height:1.65}
.section-heading>.tag{flex:none;font-size:.8125rem}
.branding-upload{display:flex;align-items:center;gap:24px;padding-bottom:24px}
.logo-preview{width:116px;height:116px;display:grid;place-items:center;flex:none;border:1px solid var(--line);border-radius:14px;background:#fafbfe;padding:20px}
.logo-preview img{width:100%;height:100%;object-fit:contain}
.logo-controls{min-width:0}
.logo-controls strong{font-size:.9375rem;font-weight:600}
.logo-controls p{font-size:.875rem;line-height:1.7;margin:8px 0 14px}
.logo-file-label{cursor:pointer;position:relative;overflow:hidden;width:max-content}
.logo-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.logo-file-label:focus-within{outline:3px solid #91adff;outline-offset:3px}
.logo-file-label.is-disabled{opacity:.5}
.logo-save-bar{border:1px solid #dbe5fe;border-radius:10px;background:#f6f8ff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px;margin-bottom:24px}
.logo-save-bar>span{font-size:.875rem;line-height:1.6;color:#486391}
.workspace-name-form{display:flex;align-items:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:24px}
.workspace-name-form .field{flex:1;min-width:0;margin:0}
.workspace-name-form input{width:100%;height:46px}
.workspace-name-form>.btn{height:46px}
.settings-scope{margin-top:20px;display:flex;align-items:flex-start;gap:8px;font-size:.875rem;line-height:1.65;color:var(--muted)}
.settings-scope>.icon{margin-top:3px}
.settings-row{gap:16px;min-height:62px;padding:16px 0}
.settings-row>span:first-child{min-width:0;overflow-wrap:anywhere;font-size:.9375rem}
.settings-row>.tag{flex-shrink:0;font-size:.8125rem}
.settings-text-link{display:flex;align-items:center;justify-content:space-between;padding:20px 0 0;color:var(--accent-strong);font-size:.9375rem;font-weight:550}
.account-card{margin:0 0 20px;min-width:0}
.account-card>div{min-width:0}
.account-card strong{overflow-wrap:anywhere}
.account-description{font-size:1rem;line-height:1.8}
.settings-account-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.scope-item{display:flex;gap:14px;padding:0 0 24px}
.scope-item:last-child{padding-bottom:0}
.scope-item>.icon{width:20px;height:20px;color:#6d87b8;margin-top:3px}
.scope-item strong{font-size:.9375rem;font-weight:550}
.scope-item p{font-size:.875rem;line-height:1.75;margin-top:6px}
.login-notes b{color:#38485e}
.login-switch{color:#4e6487;font-size:.875rem;min-height:44px;display:flex;align-items:center;justify-content:center}
.login-card .login-footnote,.login-footer{color:#64717e;font-size:.8125rem}
.login-paper>span,.login-paper footer{color:#66768c}
.login-card{box-shadow:0 12px 36px #23324c05;border-radius:16px}
@media(min-width:761px){
 .sidebar-brand-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:4px}
 .sidebar-brand-row .brand{min-width:0;padding:0 0 0 12px}
 .sidebar-brand-row .brand-word{min-width:0;max-width:none}
 .sidebar-brand-row .desktop-menu-toggle{width:44px;height:44px;padding:0;justify-self:center}
 .sidebar-collapsed .sidebar-brand-row{grid-template-columns:minmax(0,1fr);justify-items:center;gap:0;padding-bottom:8px}
 .sidebar-collapsed .sidebar-brand-row .brand{width:100%;height:76px;padding:0;justify-content:center}
 body.sidebar-collapsed{--sidebar:80px}
 .sidebar-collapsed .sidebar{padding:0 12px}
 .sidebar-collapsed .brand{padding:0;justify-content:center}
 .sidebar-collapsed .brand-word,.sidebar-collapsed .company-switch .stack,.sidebar-collapsed .company-switch .spacer,.sidebar-collapsed .company-switch>.icon,.sidebar-collapsed .nav-text,.sidebar-collapsed .nav-link .count,.sidebar-collapsed .workspace-caption{display:none}
 .sidebar-collapsed .company-switch{padding:0;justify-content:center;border-color:transparent;min-height:48px;margin-bottom:20px}
 .sidebar-collapsed .nav-label{font-size:0;margin:16px 12px 12px;padding:0;height:1px;background:var(--line)}
 .sidebar-collapsed .nav-label:first-child{margin-top:0}
 .sidebar-collapsed .nav-link{justify-content:center;padding:0;gap:0;height:46px;width:52px}
 .sidebar-collapsed .nav-group{margin-bottom:16px}
 .sidebar-collapsed .sidebar-bottom{padding-bottom:16px}
}
@media(min-width:761px) and (max-width:1199px){.topbar{padding:0 24px}.page{padding:28px 24px}.refined-settings.settings-layout{grid-template-columns:1fr}.topbar-search{width:220px}.breadcrumb span:first-child{display:none}.breadcrumb>.icon{display:none}}
@media(max-width:760px){
 .sidebar{width:280px;max-width:calc(100vw - 48px);padding:0 16px;z-index:60;transition:transform .2s}
 .sidebar-brand-row .brand{height:76px;padding-left:12px;padding-right:44px}
 .sidebar-close{top:18px;right:0;display:grid}
 .sidebar.is-open+.sidebar-scrim{z-index:55;background:#1d2b4052;backdrop-filter:blur(2px)}
 body.menu-is-open{overflow:hidden}
 .desktop-menu-toggle{display:none}
 .topbar{height:68px;padding:0 16px;gap:8px}
 .topbar-search{min-width:0;max-width:none;width:auto;flex:1}
 .topbar-search input{height:42px;font-size:1rem;padding-right:12px}
 .topbar-search kbd{display:none}
 .topbar-actions{margin-left:0;gap:0}
 .topbar-actions>.icon-button{display:none}
 .topbar .icon-button,.profile-button{width:44px;height:44px;flex:none}
 .profile-button{justify-content:center}
 .profile-button .avatar{width:34px;height:34px;font-size:.8125rem}
 .icon-button{min-width:44px;min-height:44px}
 .calendar-heading button{width:44px;height:44px}
 .page{padding:24px 20px calc(104px + env(safe-area-inset-bottom))}
 .page-header{align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:24px}
 .page-header h1{font-size:1.5rem}
 .page-header p{font-size:1rem;line-height:1.7}
 .header-actions{gap:8px;max-width:100%;flex-wrap:wrap}
 .header-actions .btn{height:44px;font-size:.875rem}
 .card-header{padding:20px 20px 16px}.card-body{padding:0 20px 20px}
 .card-header p{font-size:.875rem}
 .pilot-banner{font-size:.875rem;padding:14px;gap:10px}
 .pilot-banner a{margin-left:28px}
 .mobile-nav{height:calc(68px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fffffffa;backdrop-filter:blur(14px)}
 .mobile-nav a,.mobile-nav button{font-size:.875rem;min-height:60px;color:#68788e;gap:3px}
 .mobile-nav .icon{width:20px;height:20px}
 .mobile-nav .capture{margin-top:-14px;width:50px;height:50px;border-radius:18px}
 .mobile-nav .capture-label{margin-top:-3px}
 #toast{bottom:calc(84px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);width:max-content;font-size:.875rem;line-height:1.7;white-space:normal}
 .settings-layout.refined-settings{grid-template-columns:1fr;gap:20px}
 .refined-settings .lower-main{gap:20px}
 .settings-section{padding:20px}
 .section-heading{margin-bottom:20px;gap:12px}
 .branding-upload{gap:20px}
 .logo-preview{width:96px;height:96px;padding:16px;border-radius:12px}
 .logo-controls p{font-size:.875rem}
 .workspace-name-form{flex-wrap:wrap;padding-top:20px}
 .workspace-name-form .field{flex-basis:100%}
 .workspace-name-form>.btn{margin-left:auto}
 .logo-save-bar>.row{width:100%;justify-content:flex-end}
 .settings-scope{font-size:.875rem}
 .settings-row{gap:12px}
 .account-card .avatar{width:48px;height:48px}
 .demo-footer{font-size:.8125rem;margin-top:28px;text-align:center}
 .overlay{padding:12px}.modal{max-height:calc(100dvh - 24px)}
 .modal-footer{flex-wrap:wrap;gap:8px}.modal-footer .btn{min-height:44px}
 .ocr-fields .field{min-width:0}.ocr-fields input{width:100%;min-width:0}
}
@media(max-width:374px){.page{padding-left:16px;padding-right:16px}.branding-upload{gap:14px}.logo-preview{width:80px;height:80px;padding:12px}.section-heading>.tag{font-size:.75rem}.settings-row>span:first-child{font-size:.875rem}}
@container(max-width:650px){.dashboard-top{grid-template-columns:1fr}.page-header{flex-wrap:wrap;align-items:flex-start}.calendar-card{display:block}.calendar-card .schedule-list{border-top:1px solid var(--line);padding-top:24px}.work-body{display:flex;flex-wrap:wrap}.work-actions{margin-top:0;margin-left:auto}.page-header>div:first-child{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.sidebar,.main-shell{transition:none}}

/* Administrator chat storage status: isolated updates preserve branding drafts. */
.workspace-chat-security .workspace-security-status{display:grid;gap:0;border:1px solid #e6edf6;border-radius:10px;overflow:hidden;margin:5px 0 18px}
.workspace-chat-security .workspace-security-status>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid #edf2f8;font-size:14px;line-height:1.6}
.workspace-chat-security .workspace-security-status>div:last-child{border-bottom:0}
.workspace-chat-security .workspace-security-status span{color:#6f829d}
.workspace-chat-security .workspace-security-status strong{font-weight:600;color:#3c587a;white-space:nowrap}
.workspace-chat-security .workspace-security-status strong.needs-action{color:#a86a31}
.workspace-chat-security .workspace-security-explanation{font-size:14px;line-height:1.8;color:#72849e;word-break:keep-all;margin-bottom:14px}
.workspace-chat-security .workspace-security-notice,.workspace-chat-security .workspace-security-error{padding:12px 14px;border-radius:9px;background:#fff8ef;color:#93663d;font-size:14px;line-height:1.8;margin-bottom:14px;overflow-wrap:anywhere}
.workspace-chat-security .workspace-security-error{background:#fff3f4;color:#a15d67}
.workspace-chat-security .workspace-security-complete{font-size:14px;color:#417e73;line-height:1.8;margin-bottom:12px}
.workspace-chat-security .workspace-security-loading,.workspace-chat-security .workspace-security-progress{font-size:14px;line-height:1.8;color:#607d9e;margin:0 0 14px;overflow-wrap:anywhere}
.workspace-chat-security .workspace-security-progress:empty{display:none}
.workspace-chat-security .workspace-security-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.workspace-chat-security .workspace-security-actions .btn{min-height:44px;font-size:14px;white-space:normal}
@media(max-width:560px){.workspace-chat-security .workspace-security-actions .btn{flex:1 1 100%}.workspace-chat-security .workspace-security-status>div{padding:12px;gap:10px}}

/* One app tab bar; the conversation owns its own header and scroll surface. */
@media(max-width:760px){
 body{--mobile-nav-height:calc(64px + env(safe-area-inset-bottom,0px))}
 .mobile-nav{height:var(--mobile-nav-height);padding:3px 6px calc(3px + env(safe-area-inset-bottom,0px));background:#ffffffed;border-color:#e8ecf2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
 .mobile-nav a,.mobile-nav button{height:58px;min-height:44px;gap:3px;font-size:.8125rem;line-height:1.2;font-weight:500;color:#67758a;border-radius:12px;touch-action:manipulation;user-select:none;-webkit-user-select:none}
 .mobile-nav .icon{width:24px;height:24px;stroke-width:1.8}
 .mobile-nav .capture{width:24px;height:24px;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit}
 .mobile-nav .capture-label{margin:0;color:inherit}
 .mobile-nav a.active{color:#4169d8;font-weight:650}
 .mobile-nav a:active,.mobile-nav button:active{background:#eef3fd;transform:scale(.97)}
 body.is-chat-route{height:100%;overflow:hidden;overscroll-behavior:none;font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',Pretendard,sans-serif;letter-spacing:-.015em}
 .is-chat-route #app{position:fixed;inset:var(--app-viewport-top,0px) 0 auto;height:var(--app-viewport-height,100dvh);overflow:hidden}
 .is-chat-route .main-shell{height:calc(100% - var(--mobile-nav-height));min-height:0;margin:0;overflow:hidden}
 .is-chat-route .topbar{display:none}
 .is-chat-route #main.page{height:100%;max-width:none;min-height:0;margin:0;padding:0;overflow:hidden;animation:none}
 .is-chat-route .mobile-nav{position:absolute;bottom:0}
 .is-chat-route.keyboard-is-open{--mobile-nav-height:0px}
 .is-chat-route.keyboard-is-open .mobile-nav{display:none}
 .is-chat-route.keyboard-is-open #toast{bottom:16px}
 .is-chat-route .sidebar{height:100%;top:0;bottom:0}
 .is-chat-route .sidebar-scrim{position:absolute;inset:0}
 .is-chat-route .sidebar .sidebar-scroll{-webkit-overflow-scrolling:touch}
}
