/* Authenticated workspace: EO colour system, quiet surfaces and consistent density. */
body.authenticated:not(.guest-mode){font-size:14px;--admin-gap:24px;--admin-muted-line:color-mix(in srgb,var(--text-primary) 7%,transparent);}
body.authenticated .workspace{padding:24px 32px 40px;background:var(--page-bg);}
body.authenticated .sidebar{padding:28px 16px;background:var(--surface-1);border-right:0;}
@media(min-width:781px){body.authenticated .sidebar{overflow-x:hidden;overflow-y:auto;overscroll-behavior:auto;}body.authenticated .sidebar>:is(.brand,.nav-list,.sidebar-footer){flex-shrink:0;}}
body.authenticated .sidebar .brand{padding:0 12px;margin-bottom:36px;gap:10px;}
body.authenticated .sidebar .brand strong{font-size:16px;font-weight:500;letter-spacing:-.3px;}
body.authenticated .sidebar .brand span{font-size:11px;line-height:1.6;}
body.authenticated .sidebar .brand-mark{width:38px;height:38px;flex-basis:38px;}
body.authenticated .sidebar-collapse-button{width:36px;height:36px;min-height:36px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text-secondary);box-shadow:none;}
body.authenticated .nav-list{gap:6px;}
body.authenticated .nav-item{min-height:48px;padding:10px 16px;border:0;border-radius:999px;background:transparent;color:var(--text-secondary);font-size:14px;font-weight:400;line-height:1.5;gap:12px;box-shadow:none;}
body.authenticated .nav-item.active{background:var(--accent-soft);color:var(--accent-blue);font-weight:500;}
body.authenticated .nav-item:hover{background:var(--surface-2);transform:none;}
body.authenticated .nav-item.active:hover{background:var(--accent-soft);}
body.authenticated .nav-icon svg{width:19px;height:19px;stroke-width:1.75;}
body.authenticated .sidebar-footer{padding:16px;border:0;border-radius:20px;background:var(--surface-2);box-shadow:none;font-size:12px;}
body.authenticated .topbar{padding:0 0 24px;min-height:92px;gap:24px;align-items:center;background:transparent;border:0;}
body.authenticated .topbar-greeting-line{font-size:12px;font-weight:400;color:var(--text-secondary);gap:7px;}
body.authenticated .topbar-greeting-line strong{font-weight:400;}
body.authenticated .topbar-title-line{gap:16px;align-items:baseline;flex-wrap:wrap;margin-top:6px;}
body.authenticated .topbar-title-line h1{font-size:28px;font-weight:500;line-height:1.4;letter-spacing:-.7px;}
body.authenticated .topbar-context{font-size:12px;color:var(--text-secondary);font-weight:400;}
body.authenticated .top-user-badge{border:0;background:var(--surface-1);border-radius:999px;box-shadow:none;}
body.authenticated :is(.top-user-avatar,.account-popover-avatar){border-radius:50%;}
body.authenticated .topbar :is(.text-button,.icon-button){border:0;box-shadow:none;background:var(--surface-1);}
body.authenticated :is(.panel,.aurora-kpi,.metric-card,.backend-workspace){border:1px solid transparent;border-radius:24px;background:var(--surface-1);box-shadow:0 4px 20px #0c0c3104;}
body.authenticated .panel{padding:28px;}
body.authenticated .panel-heading{margin-bottom:24px;gap:16px;align-items:center;}
body.authenticated .panel h2{font-size:18px;font-weight:500;line-height:1.5;letter-spacing:-.2px;}
body.authenticated .panel h3{font-size:16px;font-weight:500;line-height:1.6;}
body.authenticated :is(.panel-subtitle,.chart-summary,.empty-state){font-size:13px;line-height:1.8;font-weight:400;color:var(--text-secondary);}
body.authenticated .eyebrow{font-size:10px;font-weight:500;letter-spacing:.12em;color:var(--text-secondary);}
body.authenticated :is(.primary-button,.text-button,.compact-button,.filter-button,.backend-tab){min-height:44px;border-radius:999px;font-size:13px;font-weight:500;line-height:1.4;box-shadow:none;}
body.authenticated .primary-button{border:0;padding:0 22px;background:var(--accent-blue);color:var(--on-accent);box-shadow:inset 0 1px 1px #ffffff40;}
body.authenticated .primary-button:hover{background:var(--accent-hover);}
body.authenticated .primary-button.destructive{background:var(--status-danger);color:var(--surface-1);}
body.authenticated .primary-button.destructive:hover{background:var(--status-danger);filter:brightness(.95);}
body.authenticated .text-button.danger{color:var(--status-danger);}
body.authenticated .text-button{border:0;padding:0 16px;background:var(--surface-2);color:var(--text-secondary);}
body.authenticated .text-button:hover{background:var(--surface-hover);color:var(--text-primary);}
body.authenticated .icon-button{width:44px;height:44px;min-height:44px;min-width:44px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text-secondary);padding:0;}
body.authenticated .primary-button:disabled{box-shadow:none;}
body.authenticated :is(.workspace,.modal,.account-editor-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea){box-sizing:border-box;border:1px solid transparent;background-color:var(--surface-2);color:var(--text-primary);border-radius:16px;min-height:44px;padding:10px 14px;font:400 14px/1.6 var(--font-ui);box-shadow:none;}
body.authenticated .workspace select:not([multiple]),body.authenticated .modal select:not([multiple]),body.authenticated .account-editor-dialog select:not([multiple]){padding-right:44px;appearance:none;background-image:var(--select-arrow);background-repeat:no-repeat;background-position:right 16px center;background-size:16px;}
body.authenticated :is(input,textarea)::placeholder{color:#929298;opacity:1;font-weight:400;}
body.authenticated .workspace :is(input,textarea,select):focus{outline:none;border-color:var(--border-strong);box-shadow:none;}
body.authenticated :is(.search-box,.global-search){display:flex;align-items:center;min-height:44px;padding:0 14px;gap:10px;border:0;border-radius:999px;background:var(--surface-2);box-shadow:none;}
body.authenticated :is(.search-box,.global-search) input{border:0;background:transparent;padding:0;min-height:42px;box-shadow:none;}
body.authenticated :is(.search-box,.global-search) input:focus{border:0;outline:none;}
body.authenticated .pill{border:0;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:400;line-height:1.5;}
body.authenticated :is(.aurora-kpi,.metric-card){position:relative;min-height:124px;padding:24px;}
body.authenticated :is(.aurora-kpi,.metric-card)::before,body.authenticated :is(.aurora-kpi,.metric-card)::after{display:none;}
body.authenticated :is(.aurora-kpi,.metric-card) strong{font-size:34px;font-weight:500;letter-spacing:-.8px;line-height:1.3;color:var(--text-primary);}
body.authenticated :is(.aurora-kpi-label,.metric-card>span){font-size:12px;color:var(--text-secondary);font-weight:400;line-height:1.5;}
body.authenticated :is(.aurora-kpi,.metric-card) small{display:block;font-size:11px;color:var(--text-secondary);font-weight:400;line-height:1.6;margin-top:4px;}
body.authenticated .aurora-kpi-icon{right:20px;top:20px;width:32px;height:32px;border-radius:12px;background:var(--accent-soft);color:var(--accent-blue);}
body.authenticated .aurora-kpi-icon svg{width:18px;height:18px;}
body.authenticated :is(.aurora-kpi-grid,.metrics-grid){gap:16px;}
body.authenticated :is(.aurora-dashboard-grid,.dashboard-bottom,.library-command-grid,.knowledge-ops-layout,.insights-diagnostic-grid,.insights-ops-grid){gap:24px;}
body.authenticated :is(.chart-empty,.empty-state,.chart-placeholder,.viz-empty){border:0;border-radius:16px;background:transparent;color:var(--text-secondary);font-size:13px;line-height:1.8;}
body.authenticated .chart-canvas{min-height:200px;height:220px;background:transparent;}
body.authenticated #dashboard .dashboard-activity-panel{display:grid;min-height:0;grid-template-rows:auto minmax(200px,1fr) auto;gap:16px;align-content:start;}
body.authenticated #dashboard .dashboard-activity-panel .panel-heading{margin-bottom:0;}
body.authenticated #dashboard .dashboard-health-panel .chart-canvas{height:150px;min-height:150px;}
body.authenticated #dashboard :is(.dashboard-review-panel,.dashboard-quality-panel) .chart-canvas{height:160px;min-height:160px;}
body.authenticated .health-grid{gap:10px;}
body.authenticated .health-grid article{border-radius:14px;padding:12px 14px;background:var(--surface-2);}
body.authenticated .health-grid article span{font-size:11px;}
body.authenticated .health-grid article strong{font-size:13px;font-weight:500;}
body.authenticated :is(.quick-grid button,.todo-item){border:0;border-radius:16px;background:var(--surface-2);padding:16px;font-size:13px;box-shadow:none;}
body.authenticated .todo-item strong{font-weight:500;line-height:1.7;}
body.authenticated .activity-strip article{border:0;border-bottom:1px solid var(--admin-muted-line);border-radius:0;box-shadow:none;background:transparent;padding:14px 0;}
body.authenticated .library-command-grid .chart-canvas{height:200px;min-height:200px;}
body.authenticated .library-command-grid>.panel{min-height:0;}
body.authenticated :is(.library-toolbar,.library-organizer,.library-folders){border:0;background:var(--surface-2);border-radius:20px;padding:16px;}
body.authenticated .library-organizer{gap:20px;margin-top:16px;}
body.authenticated .library-facet-controls label>span,body.authenticated .library-sort-controls label>span{font-size:11px;}
body.authenticated .library-folder{border:0;border-radius:14px;box-shadow:none;}
body.authenticated .library-folder.active{background:var(--surface-1);color:var(--accent-blue);box-shadow:0 2px 8px #0c0c3105;}
body.authenticated :is(.library-filter-group,.library-view-toggle){display:flex;padding:4px;gap:2px;border:0;border-radius:999px;background:var(--surface-2);}
body.authenticated .library-filter-group .text-button,body.authenticated .library-view-toggle .text-button{min-height:36px;background:transparent;border:0;font-size:12px;}
body.authenticated :is(.library-filter-group,.library-view-toggle) .active{background:var(--surface-1);color:var(--text-primary);box-shadow:0 2px 6px #0c0c3105;}
body.authenticated :is(.doc-card,.document-card,.knowledge-source-card,.knowledge-gap-card,.knowledge-candidate-card,.account-directory-card){border:1px solid var(--admin-muted-line);border-radius:18px;box-shadow:none;}
body.authenticated :is(.knowledge-source-card,.knowledge-gap-card,.knowledge-candidate-card){padding:20px;}
body.authenticated .knowledge-source-form{gap:12px;padding:20px;background:var(--surface-2);border-radius:20px;}
body.authenticated .knowledge-source-form .primary-button{grid-column:1/-1;justify-self:start;}
body.authenticated .knowledge-ops-hero{margin-bottom:0;}
body.authenticated .knowledge-ops-metrics{margin-bottom:0;}
body.authenticated .knowledge-ops-metrics .metric-card{border-left:1px solid transparent;}
body.authenticated .knowledge-ops-layout{align-items:start;}
body.authenticated .knowledge-gap-list .empty-state{padding:24px;line-height:1.9;}
body.authenticated :is(.brand-assets-heading,.brand-asset-toolbar,.brand-asset-albums-panel){border:0;border-radius:24px;background:var(--surface-1);box-shadow:var(--shadow-card);}
body.authenticated :is(.brand-asset-filters,.brand-asset-management-toolbar){border:0;border-radius:20px;background:var(--surface-1);padding:16px;}
body.authenticated .brand-asset-card{border:0;border-radius:20px;box-shadow:none;}
body.authenticated .brand-asset-card-shell{border:0;border-radius:20px;background:var(--surface-1);}
body.authenticated .brand-asset-card.selected{box-shadow:0 0 0 1px var(--border-strong);border-color:transparent;}
body.authenticated :is(.brand-asset-album,.brand-asset-album-card){border:0;border-radius:18px;box-shadow:none;}
body.authenticated .brand-asset-detail-preview{border-radius:18px;}
body.authenticated .image-studio-toolbar{border:0;border-radius:24px;background:var(--surface-1);padding:16px 20px;gap:12px;box-shadow:var(--shadow-card);}
body.authenticated .image-chat-panel{border:0;border-radius:24px;box-shadow:none;}
body.authenticated .image-chat-panel textarea{border:0;background:transparent;}
body.authenticated .image-chat-composer{border:0;border-radius:24px;background:var(--surface-2);box-shadow:none;}
body.authenticated .image-canvas-empty{border:0;background:var(--surface-1);border-radius:24px;padding:28px;box-shadow:var(--shadow-card);}
body.authenticated .image-artboard-area{background:var(--page-bg);background-image:none;}
/* Reserve space for the shared header before sizing the bounded canvas. */
body.authenticated.image-studio-active{overflow-y:auto;}
body.authenticated.image-studio-active .workspace{height:max(100dvh,680px);min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:clip;}
body.authenticated .image-studio-view.active{height:auto;min-height:0;overflow:hidden;}
body.authenticated .image-editor-screen{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);}
body.authenticated .image-studio-shell{height:auto;min-height:0;}
body.authenticated .image-chat-messages{overscroll-behavior:auto;}
@media(max-width:780px){body.authenticated.image-studio-active .workspace{height:auto;min-height:100dvh;display:block;overflow:visible;}body.authenticated .image-studio-view.active{height:auto;overflow:visible;}body.authenticated .image-editor-screen{height:auto;min-height:0;grid-template-rows:auto auto;}body.authenticated .image-studio-shell{grid-template-rows:minmax(300px,45dvh) clamp(360px,70dvh,560px);overflow:visible;}}
body.authenticated #generate .generator-layout{grid-template-columns:268px minmax(0,1fr);gap:24px;align-items:start;}
body.authenticated #generate .template-list{gap:8px;}
body.authenticated #generate .template-card{padding:16px;border:0;border-radius:16px;background:var(--surface-2);box-shadow:none;min-height:0;}
body.authenticated #generate .template-card.active{background:var(--accent-soft);color:var(--text-primary);}
body.authenticated #generate .template-card strong{font-size:14px;font-weight:500;}
body.authenticated #generate .template-card span{font-size:12px;line-height:1.8;color:var(--text-secondary);}
body.authenticated .generation-controls{gap:12px;align-items:end;}
body.authenticated .generation-controls label{gap:8px;}
body.authenticated .generation-controls label>span{font-size:12px;font-weight:400;color:var(--text-secondary);}
body.authenticated :is(.generation-history,.generation-visual-prompt){margin-top:24px;}
body.authenticated .review-workspace-tabs{display:flex;gap:4px;border:0;border-radius:24px;padding:6px;background:var(--surface-2);margin-bottom:24px;}
body.authenticated .review-workspace-tab{flex:1;min-height:64px;border:1px solid transparent;border-radius:20px;background:transparent;color:var(--text-secondary);padding:12px 20px;gap:10px;box-shadow:none;}
body.authenticated .review-workspace-tab.active{background:var(--surface-1);color:var(--text-primary);border-color:var(--admin-muted-line);box-shadow:0 2px 8px #0c0c3105;}
body.authenticated .review-workspace-tab span{font-size:14px;font-weight:500;}
body.authenticated .review-workspace-tab small{font-size:11px;font-weight:400;}
body.authenticated .review-workspace-tab .lucide{color:inherit;}
body.authenticated #reviewWorkspaceAcceptance{height:auto;min-height:0;overflow:visible;overscroll-behavior:auto;}
body.authenticated .acceptance-overview{margin-bottom:24px;}
body.authenticated .acceptance-summary{border:0;background:var(--surface-2);border-radius:16px;padding:18px 20px;font-size:13px;line-height:1.8;max-width:640px;}
body.authenticated .acceptance-workspace-grid{gap:24px;min-height:0;grid-template-columns:1fr 1.5fr;align-items:start;}
body.authenticated :is(.acceptance-history-block,.acceptance-detail-pane){min-height:240px;padding:20px;border:0;border-radius:20px;background:var(--surface-2);}
body.authenticated .acceptance-detail-scroll,body.authenticated .acceptance-history{min-height:140px;}
body.authenticated .acceptance-history{max-height:none;overflow:visible;overscroll-behavior:auto;}
body.authenticated .acceptance-detail-scroll{max-height:none;overflow:visible;overscroll-behavior:auto;}
body.authenticated .subsection-title{font-size:14px;font-weight:500;padding:12px 0;gap:12px;}
body.authenticated .subsection-title>span{font-size:12px;font-weight:400;color:var(--text-secondary);}
body.authenticated :is(.account-directory-toolbar,.audit-toolbar,.review-toolbar){gap:12px;padding:16px;border:0;border-radius:20px;background:var(--surface-2);margin-block:16px;}
body.authenticated .account-directory-summary{gap:12px;}
body.authenticated .account-directory-summary>article{padding:20px;border:0;border-radius:18px;background:var(--surface-2);box-shadow:none;}
body.authenticated .account-directory-actions{margin-top:24px;align-items:center;gap:20px;}
body.authenticated .account-directory-actions p{font-size:13px;color:var(--text-secondary);line-height:1.8;}
body.authenticated :is(.account-directory-card,.user-card){padding:20px;border-radius:20px;}
body.authenticated :is(.account-directory-card,.user-card) strong{font-weight:500;}
body.authenticated .audit-list article{border:0;border-bottom:1px solid var(--admin-muted-line);border-radius:0;box-shadow:none;padding:16px 0;}
body.authenticated :is(.account-editor-dialog,.modal,.image-history-dialog){border:0;border-radius:24px;background:var(--surface-raised);box-shadow:var(--shadow-raised);}
body.authenticated .account-dialog-header{padding:24px 28px;border-color:var(--admin-muted-line);}
body.authenticated .account-dialog-header h2{font-size:24px;font-weight:500;}
body.authenticated .account-editor-dialog label{font-size:12px;line-height:1.8;}
body.authenticated :is(.account-editor-dialog,.modal) :is(input,textarea)::placeholder{color:#929298;}
body.authenticated .account-editor-dialog :is(button,input,select,textarea):focus{box-shadow:none;}
body.authenticated .insights-command{border:0;background:var(--surface-1);}
body.authenticated .insights-diagnostic-grid .chart-canvas{height:220px;min-height:200px;}
body.authenticated .insights-ops-grid .ops-grid>article{border:0;border-radius:16px;background:var(--surface-2);}
body.authenticated .workspace :is(th,td){border-color:var(--admin-muted-line);padding:14px 16px;font-size:13px;line-height:1.7;}
body.authenticated .workspace th{background:var(--surface-2);font-weight:500;color:var(--text-secondary);}
body.authenticated .workspace td{background:transparent;}
body.authenticated .assistant-launcher{border:0;border-radius:50%;box-shadow:0 8px 24px #0c0c3110;}
html[data-theme=dark] body.authenticated :is(input,textarea)::placeholder{color:#9ba6bd;}
@media(max-width:1200px){body.authenticated .workspace{padding:24px;}body.authenticated .panel{padding:24px;}body.authenticated #generate .generator-layout{grid-template-columns:240px minmax(0,1fr);}}
@media(max-width:1000px){body.authenticated #generate .generator-layout{grid-template-columns:1fr;}body.authenticated #generate .template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}body.authenticated .review-workspace-tab{padding:12px;min-height:60px;}body.authenticated .review-workspace-tab span{font-size:13px;}}
@media(max-width:780px){body.authenticated .workspace{padding:16px 16px 88px;}body.authenticated .topbar{padding:0 0 20px;min-height:76px;gap:12px;}body.authenticated .topbar-title-line h1{font-size:24px;}body.authenticated .topbar-context{display:none;}body.authenticated .topbar-greeting-line{font-size:11px;}body.authenticated .panel{padding:20px;}body.authenticated .panel-heading{margin-bottom:20px;gap:12px;}body.authenticated .panel h2{font-size:17px;}body.authenticated .sidebar{padding:0;}body.authenticated .sidebar .nav-list{gap:4px;}body.authenticated .nav-item{min-height:48px;padding:10px 14px;}body.authenticated :is(.aurora-kpi,.metric-card){padding:20px;min-height:116px;}body.authenticated :is(.aurora-kpi,.metric-card) strong{font-size:30px;}body.authenticated .aurora-kpi-icon{right:16px;top:16px;width:28px;height:28px;}body.authenticated :is(.metrics-grid,.aurora-kpi-grid){gap:12px;}body.authenticated :is(.aurora-dashboard-grid,.dashboard-bottom,.knowledge-ops-layout,.library-command-grid,.insights-diagnostic-grid){gap:16px;}body.authenticated #generate .template-list{grid-template-columns:1fr;}body.authenticated .review-workspace-tabs{padding:4px;border-radius:20px;gap:2px;}body.authenticated .review-workspace-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:5px;padding:10px 8px;border-radius:16px;min-width:0;}body.authenticated .review-workspace-tab span{font-size:11px;line-height:1.5;}body.authenticated .review-workspace-tab small{display:none;}body.authenticated .review-workspace-tab svg{width:18px;height:18px;}body.authenticated .acceptance-workspace-grid{grid-template-columns:1fr;gap:16px;}body.authenticated :is(.acceptance-history-block,.acceptance-detail-pane){min-height:200px;}body.authenticated .account-directory-actions{align-items:flex-start;flex-direction:column;}body.authenticated .account-directory-actions>div{display:flex;gap:8px;flex-wrap:wrap;}body.authenticated .generation-controls{grid-template-columns:1fr 1fr;}body.authenticated .knowledge-source-form{padding:16px;grid-template-columns:1fr;}body.authenticated .account-dialog-header{padding:20px;}body.authenticated .account-dialog-header h2{font-size:22px;}body.authenticated .workspace :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea){font-size:16px;}body.authenticated .image-studio-toolbar{padding:14px;gap:8px;}}
/* Header columns are explicit: identity, search, then account controls. */
body.authenticated .topbar{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px) auto;grid-template-rows:auto;gap:20px;margin:0 0 24px;padding:0;min-height:72px;width:auto;overflow:visible;}
body.authenticated .topbar-identity{grid-column:1;grid-row:1;min-width:0;}
body.authenticated .topbar>.global-search{display:flex;grid-column:2;grid-row:1;min-width:0;width:100%;max-width:none;height:44px;justify-self:stretch;}
body.authenticated .topbar .top-actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;width:auto;}
body.authenticated #returnPublicChatBtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 14px;min-height:44px;}
body.authenticated .top-user-badge{display:grid;height:44px;min-height:44px;padding:4px 12px 4px 6px;gap:8px;}
body.authenticated .top-user-avatar{width:32px;height:32px;flex:0 0 32px;font-size:12px;}
body.authenticated .top-user-copy strong{font-size:12px;font-weight:500;}.top-user-copy small{font-size:10px;}
body.authenticated .account-menu-chevron{width:14px;height:14px;}
body.authenticated .topbar-context{display:none;}
body.authenticated .library-command-grid{align-items:start;}
body.authenticated .board-knowledge-dashboard{border:0;background:transparent;padding:0;box-shadow:none;}
body.authenticated .library-kpis .aurora-kpi{box-shadow:var(--shadow-card);}
body.authenticated #generatedOutput{background:var(--surface-2);border:0;border-radius:20px;padding:24px;font:400 15px/1.85 var(--font-ui);color:var(--text-primary);white-space:pre-wrap;min-height:240px;}
body.authenticated #generatedOutput:empty{display:grid;place-content:center;min-height:200px;}
body.authenticated #generatedOutput:empty::after{content:"生成的内容会显示在这里";font-size:13px;color:var(--text-secondary);}
@media(max-width:1250px){body.authenticated .topbar{grid-template-columns:minmax(0,1fr) auto;row-gap:16px;}body.authenticated .topbar .top-actions{grid-column:2;}body.authenticated .topbar>.global-search{grid-column:1/-1;grid-row:2;max-width:480px;justify-self:start;}}
@media(max-width:780px){body.authenticated .topbar{grid-template-columns:1fr;gap:16px;margin-bottom:20px;}body.authenticated .topbar-identity{grid-column:1;grid-row:1;}body.authenticated .topbar>.global-search{display:none;}body.authenticated .topbar .top-actions{grid-column:1;grid-row:2;justify-content:flex-start;gap:8px;flex-wrap:wrap;}body.authenticated .top-user-copy{display:none;}body.authenticated .top-user-badge{width:44px;min-width:44px;padding:6px;justify-content:center;}body.authenticated .account-menu-chevron{display:none;}body.authenticated #returnPublicChatBtn{padding:0 12px;font-size:12px;}body.authenticated .topbar-greeting-line #topWelcome{display:none;}body.authenticated .topbar-title-line h1{font-size:24px;}body.authenticated .generator-layout{gap:16px;}}
body.authenticated .topbar #globalSearchInput{min-width:0;width:100%;padding:0;background:transparent;border:0;}
body.authenticated .global-search kbd{white-space:nowrap;flex:none;font-size:10px;padding:2px 5px;}
body.authenticated #dashboard .dashboard-activity-panel .chart-canvas{height:100%;min-height:200px;}
body.authenticated .chart-canvas[data-chart-state]:not([data-chart-state=ready]){display:grid;place-content:center;background:transparent;border:0;border-radius:16px;font-size:13px;color:var(--text-secondary);}
body.authenticated #review{height:auto;min-height:0;grid-template-rows:auto auto;align-content:start;overflow:visible;}
body.authenticated .review-workspace-panel{height:auto;min-height:0;align-self:start;overflow:visible;overscroll-behavior:auto;}
body.authenticated .review-admin-layout{grid-template-columns:1fr;align-items:start;}
body.authenticated .board-position-card{padding:20px;border:0;border-radius:20px;background:var(--surface-2);box-shadow:none;}
body.authenticated .board-position-card h3{font-size:15px;font-weight:500;line-height:1.6;}
body.authenticated .board-position-card .text-button{background:var(--surface-1);}
body.authenticated #brand-assets .brand-asset-command{background:var(--surface-1);border:0;}
body.authenticated #brand-assets .brand-asset-command::after{display:none;}
body.authenticated .account-dialog-footer{background:var(--surface-1);border-color:var(--admin-muted-line);}
body.authenticated .account-editor-dialog :is(input,select,textarea):focus{outline:none;border-color:var(--border-strong);box-shadow:none;}
body.authenticated .account-editor-dialog .inline-check input{min-height:0;padding:0;border-radius:4px;}
body #accountPopover #logoutBtn{display:flex;}
body.authenticated #deploy :is(.ops-summary,.ops-check,.roadmap article){border:0;border-radius:18px;background:var(--surface-2);box-shadow:none;padding:20px;}
body.authenticated #deploy .ops-check strong{font-size:22px;font-weight:500;}
@media(max-width:780px){body.authenticated .topbar .top-actions>#accountMenu{display:block;}body.authenticated .account-editor-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;}body.authenticated .account-popover{position:fixed;top:150px;left:16px;right:16px;width:auto;max-width:none;}body.authenticated #deploy :is(.ops-summary,.ops-check,.roadmap article){padding:16px;}}
@media(max-width:780px){body.authenticated #dashboard .dashboard-activity-panel{grid-template-rows:auto 200px auto;}}

/* Focused spacing pass on the restored layout. */
body.authenticated .panel-heading{align-items:flex-start;}
body.authenticated .panel-heading>div:first-child{min-width:0;flex:1;}
body.authenticated .panel-heading>button{flex-shrink:0;}
body.authenticated .panel-heading :is(h2,h3,p){text-align:left;}
body.authenticated .panel-subtitle{margin:8px 0 0;}
body.authenticated :is(.panel,.panel-heading,.form-grid,.generation-controls)>*{min-width:0;}
body.authenticated :is(.panel,.account-editor-dialog) :is(h2,h3,p,label,strong,small){overflow-wrap:anywhere;}
body.authenticated .view.active{gap:24px;}
body.authenticated .view>.panel,body.authenticated .view>.metrics-grid{margin-bottom:0;}
body.authenticated .knowledge-ops-hero{margin-bottom:0;}
body.authenticated .knowledge-ops-metrics{margin-bottom:0;}
body.authenticated .library-upload-panel{container-type:inline-size;}
body.authenticated .library-upload-panel>h2{margin:0 0 20px;}
body.authenticated .library-upload-panel .form-grid{gap:16px;margin-top:20px;}
body.authenticated .library-upload-panel .form-grid label{display:grid;gap:8px;}
body.authenticated .library-upload-panel :is(.upload-tags-field,.upload-options-grid){margin-top:20px;}
@container(max-width:420px){body.authenticated .library-upload-panel .form-grid{grid-template-columns:minmax(0,1fr);}}
body.authenticated #dashboard .dashboard-health-panel{grid-template-rows:auto 150px auto auto;min-height:0;align-content:start;gap:12px;}
body.authenticated #dashboard .dashboard-health-panel .panel-heading{margin-bottom:0;}
body.authenticated #dashboard .dashboard-health-grid{margin-top:0;gap:10px;}
body.authenticated #dashboard :is(.dashboard-review-panel,.dashboard-quality-panel){grid-template-rows:auto minmax(160px,1fr) auto;}
body.authenticated #dashboard :is(.dashboard-review-panel,.dashboard-quality-panel) .chart-summary{margin-top:16px;}
body.authenticated #dashboard .dashboard-todo-panel{align-content:start;grid-template-rows:auto auto;}
body.authenticated #dashboard .todo-list{gap:0;overflow:visible;}
body.authenticated #dashboard .todo-list article{--todo-color:var(--accent-blue);grid-template-columns:28px minmax(0,1fr);padding:16px 0;gap:14px;min-height:0;align-items:start;border:0;border-bottom:1px solid var(--admin-muted-line);border-radius:0;background:transparent;box-shadow:none;}
body.authenticated #dashboard .todo-list article:first-child{padding-top:0;}
body.authenticated #dashboard .todo-list article:last-child{padding-bottom:0;border-bottom:0;}
body.authenticated #dashboard .todo-list article:nth-child(4n+2){--todo-color:var(--accent-cyan);}
body.authenticated #dashboard .todo-list article:nth-child(4n+3){--todo-color:var(--accent-orange);}
body.authenticated #dashboard .todo-list article:nth-child(4n+4){--todo-color:var(--accent-pink);}
body.authenticated #dashboard .todo-list article>span{width:28px;height:28px;margin-top:1px;border-radius:10px;font-size:12px;font-weight:500;color:color-mix(in srgb,var(--todo-color) 70%,var(--text-primary));background:color-mix(in srgb,var(--todo-color) 12%,var(--surface-1));}
body.authenticated #dashboard .todo-list article strong{margin:0;font-size:14px;font-weight:400;line-height:1.65;}
body.authenticated #dashboard .todo-list article small{margin-top:6px;font-size:12px;line-height:1.6;color:var(--text-muted);}
body.authenticated #dashboardTodoCount{color:var(--accent-blue);background:var(--accent-soft);}
body.authenticated #dashboard .aurora-dashboard-bottom{height:auto;min-height:0;align-items:start;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);}
body.authenticated #dashboard .aurora-dashboard-bottom>.panel{height:auto;min-height:0;overflow:visible;}
body.authenticated #dashboard .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;height:auto;}
body.authenticated #dashboard .quick-grid button{height:auto;min-height:108px;padding:18px;text-align:left;border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;overflow:visible;}
body.authenticated #dashboard .quick-grid button strong{font-size:14px;font-weight:500;line-height:1.6;}
body.authenticated #dashboard .quick-grid button span{font-size:12px;line-height:1.7;color:var(--text-muted);}
body.authenticated #dashboard .activity-strip{display:grid;grid-template-columns:minmax(0,1fr);height:auto;gap:0;overflow:visible;}
body.authenticated #dashboard .activity-strip article{grid-template-columns:32px minmax(0,1fr);gap:14px;align-items:start;padding:14px 0;min-height:0;overflow:visible;}
body.authenticated #dashboard .activity-strip article:first-child{padding-top:0;}
body.authenticated #dashboard .activity-strip article:last-child{padding-bottom:0;border-bottom:0;}
body.authenticated #dashboard .activity-strip article>span{width:32px;height:32px;background:var(--accent-soft);color:var(--accent-blue);font-size:10px;font-weight:500;border-radius:12px;}
body.authenticated #dashboard .activity-strip article:nth-child(even)>span{background:color-mix(in srgb,var(--accent-cyan) 12%,var(--surface-1));color:var(--accent-cyan);}
body.authenticated #dashboard .activity-strip strong{font-size:14px;font-weight:400;line-height:1.6;margin-bottom:5px;}
body.authenticated #dashboard .activity-strip small{font-size:12px;line-height:1.65;color:var(--text-muted);}
body.authenticated #dashboard :is(.quick-grid button strong,.quick-grid button span,.activity-strip strong,.activity-strip small){display:block;max-height:none;overflow:visible;-webkit-line-clamp:unset;}
@media(max-width:1000px){body.authenticated #dashboard .aurora-dashboard-bottom{grid-template-columns:minmax(0,1fr);}}
@media(max-width:480px){body.authenticated #dashboard .quick-grid{grid-template-columns:minmax(0,1fr);}body.authenticated #dashboard .quick-grid button{min-height:0;padding:16px;}}
body.authenticated #dashboard .chart-summary{margin:0;}
/* Auxiliary colour is confined to small icons; cards and navigation retain v21. */
body.authenticated .aurora-kpi:nth-child(5n+2) .aurora-kpi-icon{color:var(--accent-cyan);background:color-mix(in srgb,var(--accent-cyan) 10%,var(--surface-1));}
body.authenticated .aurora-kpi:nth-child(5n+3) .aurora-kpi-icon{color:var(--accent-orange);background:color-mix(in srgb,var(--accent-orange) 10%,var(--surface-1));}
body.authenticated .aurora-kpi:nth-child(5n+4) .aurora-kpi-icon{color:var(--accent-pink);background:color-mix(in srgb,var(--accent-pink) 10%,var(--surface-1));}
body.authenticated .aurora-kpi:nth-child(5n+5) .aurora-kpi-icon{color:var(--status-warning);background:color-mix(in srgb,var(--chart-6) 13%,var(--surface-1));}
body.authenticated .aurora-kpi-label{padding-right:0;}
body.authenticated .account-editor-dialog .user-form{padding-top:4px;gap:20px;}
body.authenticated .account-form-section{margin:4px 0 0;padding-top:16px;}
body.authenticated .account-dialog-footer{padding-block:16px;}
@media(min-width:1280px){body.authenticated .library-command-grid:not(.is-read-only)>:is(.library-coverage-panel,.library-ingestion-panel,.library-upload-panel){grid-column:span 4;}body.authenticated .library-command-grid:not(.is-read-only)>.library-format-panel{grid-column:span 8;}}
@media(max-width:780px){body.authenticated .view.active{gap:16px;}body.authenticated .view>.panel,body.authenticated .view>.metrics-grid{margin-bottom:0;}body.authenticated .panel-heading{justify-content:space-between;gap:12px;flex-wrap:wrap;text-align:left;}body.authenticated .panel-heading>div:first-child{flex-basis:180px;}body.authenticated .panel-heading>button{margin:0;}body.authenticated #brandAssetAlbums{display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;overflow:visible;padding:0;}body.authenticated #brandAssetAlbumList{display:contents;}body.authenticated #brandAssetAlbums :is(.brand-asset-album,.brand-asset-management-album){width:100%;min-width:0;max-width:100%;margin:0;flex:none;}body.authenticated #brandAssetAlbums .brand-asset-album{height:100%;}body.authenticated .brand-asset-album strong{overflow-wrap:anywhere;}body.authenticated .brand-asset-management-menu>div{position:static;width:100%;min-width:0;display:grid;gap:8px;}body.authenticated .brand-asset-management-menu>div button{white-space:normal;max-width:100%;}body.authenticated .panel>h2{ text-align:left;}body.authenticated .account-editor-dialog .user-form{gap:16px;}}

body.authenticated :is(.library-command-grid,.board-knowledge-dashboard){margin-bottom:0;}

@media(min-width:1280px){body.authenticated .library-command-grid:not(.is-read-only){grid-template-rows:min-content 1fr;}}

@media(max-width:780px){body.authenticated .assistant-launcher{bottom:calc(80px + env(safe-area-inset-bottom));right:16px;}}

/* Consistent system controls, with one surface around the account initial. */
body.authenticated .topbar .top-actions{gap:8px;align-items:center;}
body.authenticated .topbar #returnPublicChatBtn>svg{width:20px;height:20px;stroke-width:1.75;flex-shrink:0;}
body.authenticated #currentUserBadge .top-user-avatar{border:0;background:transparent;box-shadow:none;color:var(--accent-blue);font-size:14px;font-weight:500;}
body.authenticated .topbar :is(#returnPublicChatBtn,#currentUserBadge):hover{background:var(--surface-hover);box-shadow:none;}
@media(max-width:1180px){body.authenticated .topbar #returnPublicChatBtn{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:50%;}body.authenticated #returnPublicChatBtn>span{display:none;}body.authenticated #currentUserBadge{width:44px;min-width:44px;max-width:44px;height:44px;padding:0;display:grid;place-items:center;grid-template-columns:1fr;gap:0;border:0;border-radius:50%;}body.authenticated #currentUserBadge .top-user-avatar{width:44px;height:44px;display:grid;place-items:center;}body.authenticated #currentUserBadge :is(.top-user-copy,.account-menu-chevron){display:none;}}

/* Q&A shortcut and account: independent circles with a single centred grid. */
body.authenticated .topbar .top-actions{gap:8px;flex-wrap:nowrap;align-items:center;}
body.authenticated .topbar :is(#returnPublicChatBtn){display:grid;grid-template:1fr / 1fr;place-items:center;gap:0;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:var(--surface-1);color:var(--text-secondary);box-shadow:none;line-height:1;}
body.authenticated #returnPublicChatBtn>span{display:none;}
body.authenticated .topbar #returnPublicChatBtn>svg{grid-area:1 / 1;place-self:center;position:static;inset:auto;width:20px;height:20px;margin:0;padding:0;transform:none;stroke-width:1.75;}
body.authenticated .topbar :is(#returnPublicChatBtn):hover{background:var(--surface-hover);}
body.authenticated .topbar #currentUserBadge{display:grid;place-items:center;width:44px;height:44px;min-width:44px;max-width:44px;grid-template-columns:1fr;margin:0;padding:0;gap:0;border:0;border-radius:50%;background:var(--accent-blue);box-shadow:none;}
body.authenticated .topbar #currentUserBadge .top-user-avatar{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:var(--on-accent);font-size:14px;font-weight:500;}
body.authenticated .topbar #currentUserBadge :is(.top-user-copy,.account-menu-chevron){display:none;}
body.authenticated .topbar #currentUserBadge:hover{background:var(--accent-hover);}

body.authenticated .topbar .topbar-identity{min-width:0;}

/* Personal centre: preferences, security and account actions in one panel. */
body #accountPopover{width:336px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--admin-muted-line);border-radius:24px;background:var(--surface-raised);box-shadow:var(--shadow-raised);backdrop-filter:none;}
body #accountPopover .account-popover-heading{padding:4px 4px 16px;gap:12px;}
body #accountPopover .account-popover-avatar{border:0;border-radius:50%;background:var(--accent-soft);color:var(--accent-blue);}
body #accountPopover .account-popover-heading strong{font-size:15px;font-weight:500;}
body #accountPopover .account-popover-status{padding:14px 4px;margin:0;font-size:12px;}
body #accountSystemSettings{padding:16px 0;border-block:1px solid var(--admin-muted-line);margin-bottom:8px;}
body #accountSettingsTitle{font-size:12px;font-weight:500;color:var(--text-muted);margin:0 4px 14px;}
body .account-setting-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:0 4px;}
body .account-setting-row+.account-setting-row{margin-top:14px;}
body .account-setting-label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary);}
body .account-setting-label>.lucide{width:18px;height:18px;flex-shrink:0;}
body .account-setting-options{display:flex;align-items:center;gap:2px;border-radius:999px;padding:3px;background:var(--surface-2);}
body .account-setting-options>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;min-width:72px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--text-secondary);font:400 12px/1.4 var(--font-ui);white-space:nowrap;}
body .account-setting-options>button[aria-pressed=true]{background:var(--surface-1);color:var(--accent-blue);box-shadow:0 1px 4px #0c0c3108;}
body .account-setting-options>button:hover{color:var(--accent-blue);}
body .account-setting-options>button>.lucide{display:block;width:16px;height:16px;flex-shrink:0;stroke-width:1.75;}
body #accountPopover .account-popover-action{min-height:44px;padding:10px 8px;gap:12px;border-radius:12px;font-size:13px;}
body #accountPopover .account-popover-action>.lucide{width:18px;height:18px;}
body #accountPopover .account-popover-action.danger{border-top:1px solid var(--admin-muted-line);border-radius:0;margin-top:8px;padding-top:16px;}
body.authenticated #backendStatus[hidden]{display:none;}
@media(max-width:780px){body #accountPopover{width:auto;max-width:none;max-height:calc(100dvh - 166px);}}
@media(max-width:360px){body .account-setting-row{grid-template-columns:1fr;gap:10px;}body .account-setting-options>button{flex:1;min-height:40px;}}

body #accountPopover .account-popover-action>span{display:inline;}

/* Empty charts carry one message on the panel surface, without a second grey box. */
:is(#dashboardActivityChart,#dashboardReviewChart,#dashboardQualityChart,#insightsActivityChart)[data-chart-state="missing-data"] + .chart-summary{display:none;}
