/* Saved application themes. Office document content keeps its own formatting. */
html,body{background:var(--ui-bg);color:var(--ui-text)}#rail,html.office-studio .editor-bar{background:var(--ui-header)}p,.heading p,.app-card p,.settings-card p{color:var(--ui-muted)}.brand-mark,.studio-emblem,.primary,html.office-studio #editor-save,html.office-studio #modal.studio-inspector .primary{background:var(--ui-accent);color:var(--ui-accent-text)}.brand-mark>span,.studio-emblem>span{color:var(--ui-accent-text)}
.topbar,.app-card,.file-panel,.settings-card,.prompt-box,.answer,dialog,#modal,html.office-studio #modal.studio-inspector,#studio-navigator,html.office-studio #phone-editor-tools,html[data-editor-layout="compact"] #phone-editor-tools{background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-border)}
.heading h1,.app-card h3,.section-header h2,.studio-product,.studio-navigation-items>button,.studio-nav-footer button,html.office-studio #modal.studio-inspector h2{color:var(--ui-text)}.studio-product small,.studio-nav-heading,.studio-nav-footer>small,.studio-index,html.office-studio #modal.studio-inspector p{color:var(--ui-muted)}
.secondary,.filters button,input,textarea,select,.sheet-switcher button,html.office-studio #modal.studio-inspector input,html.office-studio #modal.studio-inspector select,html.office-studio #modal.studio-inspector textarea,html.office-studio #modal.studio-inspector .presentation-tool-grid button,.presentation-tool-grid>button{background:var(--ui-soft);color:var(--ui-text);border-color:var(--ui-border)}
.assistant-strip,.notice,.filters button.active,.presentation-panel-tabs button.active,.studio-navigation-items>button:hover,.studio-navigation-items>button.selected,html.office-studio #phone-editor-tools button:first-child,html.office-studio #phone-editor-tools button:hover,html.office-studio #modal.studio-inspector .presentation-tool-grid button:hover{background:var(--ui-tint);color:var(--ui-accent);border-color:var(--ui-border)}
.text-button,.licenses a,html[data-layout="phone"] #bottom-nav button.active{color:var(--ui-accent)}.assistant-strip .ai-symbol{background:var(--ui-tint);color:var(--ui-accent)}#desktop-nav button.active{box-shadow:inset 3px 0 var(--ui-accent);background:#ffffff12}
html.office-studio #phone-editor-tools button,html[data-editor-layout="compact"] #phone-editor-tools button{color:var(--ui-text);border-color:var(--ui-border)}html[data-editor-layout="compact"] #phone-editor-tools button{background:var(--ui-soft)}#studio-navigator,.studio-nav-footer,.studio-nav-heading{border-color:var(--ui-border)}
.appearance-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.appearance-fields label{font-size:12px;color:var(--ui-muted)}.appearance-fields select,.appearance-fields input{display:block;width:100%;min-height:42px;margin-top:9px;border:1px solid var(--ui-border);border-radius:7px;padding:9px}.appearance-fields input[type="color"]{padding:4px;cursor:pointer}.appearance-preview{display:flex;align-items:center;gap:10px;padding:14px;margin-top:18px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-soft);font-size:12px;color:var(--ui-text)}.appearance-preview:before{content:'';height:18px;width:18px;border-radius:5px;background:var(--ui-accent)}
html[data-color-mode="dark"] .flow-paragraph,html[data-color-mode="dark"] .slide-text,html[data-color-mode="dark"] .slide-title{color:var(--ui-text)}html[data-color-mode="dark"] #compact-editor,html[data-color-mode="dark"] .compact-present,html[data-color-mode="dark"] .slide-content-card,html[data-color-mode="dark"] .flow-paragraph:hover,html[data-color-mode="dark"] .slide-text:hover{background:var(--ui-panel)!important;color:var(--ui-text)}html[data-color-mode="dark"] .responsive-grid td button,html[data-color-mode="dark"] .responsive-grid th{background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-border)}html[data-color-mode="dark"] #bottom-nav{background:var(--ui-panel);border-color:var(--ui-border)}html[data-color-mode="dark"] .file-row strong{color:var(--ui-text)}
@media(max-width:600px){.appearance-fields{grid-template-columns:1fr}.appearance-fields input[type="color"]{max-width:100px}}

html[data-color-mode="dark"] .topbar{background:var(--ui-panel)!important;border-color:var(--ui-border)}html[data-color-mode="dark"] .breadcrumb,html[data-color-mode="dark"] .breadcrumb b,html[data-color-mode="dark"] .mobile-brand strong{color:var(--ui-text)!important}html[data-color-mode="dark"] input,html[data-color-mode="dark"] textarea,html[data-color-mode="dark"] select{background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}html[data-color-mode="dark"] .icon-button{color:var(--ui-muted);background:var(--ui-soft);border-color:var(--ui-border)}
