/* Optional Dustworks studio theme. Load via DUSTY_SITE['stylesheets']; no scripts or behavior changes.
   Extra specificity deliberately beats framework styles loaded later and saved inline branding.
   Sites customize --studio-* tokens separately. Personal Light/Dark/Auto choices remain supported. */
:root {
  --studio-canvas: #ece8df; --studio-surface: #f8f5ef; --studio-raised: #e7e1d6;
  --studio-text: #25221d; --studio-muted: #6e6559; --studio-line: #d0c6b7;
  --studio-accent: #745734; --studio-accent-fill: #cbb28d; --studio-on-accent: #191610;
  --studio-header: #151619; --studio-header-text: #f1ede5; --studio-radius: 8px;
}
html[data-theme=dark] {
  --studio-canvas: #111214; --studio-surface: #191a1d; --studio-raised: #25231f;
  --studio-text: #f1ede5; --studio-muted: #bbb1a1; --studio-line: #4a4338;
  --studio-accent: #d1b58d;
}
html:root body.dusty-theme.dusty-theme {
  background:var(--studio-canvas)!important;color:var(--studio-text);font-family:system-ui,sans-serif;
  --dusty-link:var(--studio-accent);--dusty-brand:var(--studio-accent);--dusty-surface:var(--studio-surface);
  --primary-color:var(--studio-accent);line-height:1.6;
}
html:root body.dusty-theme.dusty-theme :is(.center-container,.border-container,.viewport,.tab-content,.tab-container,main,article,.settings-panel,.settings-hub,.files-panel,.files-list,.admin-layout,.manage-users,.workspace,.documentation,.site-toolbar,.dusty-breadcrumbs) {
  background-color:var(--studio-surface)!important;color:var(--studio-text);border-color:var(--studio-line);box-shadow:none;
}
html:root body.dusty-theme.dusty-theme .border-container{width:min(1400px,94%);margin:24px auto;border:1px solid var(--studio-line);border-radius:var(--studio-radius);overflow:visible}
html:root body.dusty-theme.dusty-theme .header-container{background:var(--studio-header)!important;border:0}
html:root body.dusty-theme.dusty-theme .header.brand{width:min(1400px,94%);max-width:100%;background:transparent!important;color:var(--studio-header-text);padding:22px 0;font-size:25px;letter-spacing:3px;text-transform:uppercase;min-height:84px}
html:root body.dusty-theme.dusty-theme .header.brand img{max-width:160px;max-height:48px}
html:root body.dusty-theme.dusty-theme :is(h1,h2,h3,legend){color:var(--studio-text);text-shadow:none}
html:root body.dusty-theme.dusty-theme h1{font-weight:500;letter-spacing:-1px}
html:root body.dusty-theme.dusty-theme :is(.settings-intro,.settings-help,.settings-hub>p,.file-date,.file-size,.file-name small,.files-heading p,.settings-logo-preview span,.build-info){color:var(--studio-muted)!important}
html:root body.dusty-theme.dusty-theme :is(a,.admin-navigation a,.settings-hub-account a,.settings-hub-back,.dusty-breadcrumbs a){color:var(--studio-accent)}
html:root body.dusty-theme.dusty-theme :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px}
html:root body.dusty-theme.dusty-theme :is(.app-navigation,.site-tools,.site-toolbar){background:var(--studio-surface)!important;color:var(--studio-text);border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme .app-navigation a{color:var(--studio-muted)}
html:root body.dusty-theme.dusty-theme .app-navigation a[aria-current=page]{background:var(--studio-raised)!important;color:var(--studio-accent);border-color:var(--studio-accent)}
html:root body.dusty-theme.dusty-theme :is(.settings-gear,.help-link,.help-book,.alerts-trigger,.alerts-bell){color:var(--studio-accent)!important}
html:root body.dusty-theme.dusty-theme :is(.site-tools,.site-toolbar) svg{color:var(--studio-accent);stroke:currentColor}
html:root body.dusty-theme.dusty-theme .settings-hub{max-width:1100px;padding:36px}
html:root body.dusty-theme.dusty-theme .settings-hub h1{font-size:36px;margin-bottom:12px}
html:root body.dusty-theme.dusty-theme .settings-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html:root body.dusty-theme.dusty-theme .settings-hub-grid>a{flex-direction:row;text-align:left;justify-content:flex-start;gap:18px;padding:20px;background:var(--studio-surface);border:1px solid var(--studio-line);border-radius:var(--studio-radius);color:var(--studio-text);min-height:90px;font-size:14px}
html:root body.dusty-theme.dusty-theme .settings-hub-grid>a:hover{background:var(--studio-raised);border-color:var(--studio-accent);text-decoration:none}
html:root body.dusty-theme.dusty-theme .settings-hub-icon{width:44px;height:44px;flex-shrink:0;font-size:23px;background:var(--studio-raised)!important;color:var(--studio-accent)!important;border:0;border-radius:6px;box-shadow:none}
html:root body.dusty-theme.dusty-theme .settings-hub-account{border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme .admin-layout{padding:32px;gap:32px}
html:root body.dusty-theme.dusty-theme .admin-navigation{border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme .admin-navigation a[aria-current=page]{color:var(--studio-text);border-color:var(--studio-accent);background:var(--studio-raised)}
html:root body.dusty-theme.dusty-theme :is(fieldset,.settings-form,.settings-logo-preview,.settings-context,.files-toolbar,.files-empty,.file-card,.user-card,.users-filter,.users-toolbar,.account-start-page){background:var(--studio-raised)!important;color:var(--studio-text);border-color:var(--studio-line);border-radius:var(--studio-radius)}
html:root body.dusty-theme.dusty-theme :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]),select,textarea){background:var(--studio-surface)!important;color:var(--studio-text)!important;border:1px solid var(--studio-line)!important;border-radius:5px;box-shadow:none;accent-color:var(--studio-accent)}
html:root body.dusty-theme.dusty-theme :is(input[type=checkbox],input[type=radio]){accent-color:var(--studio-accent)}
html:root body.dusty-theme.dusty-theme :is(.dusty-button,.files-toolbar button,.file-actions button,.account-start-page button){background:var(--studio-accent-fill);color:var(--studio-on-accent);border:1px solid var(--studio-accent);border-radius:5px;min-height:44px;text-shadow:none;box-shadow:none}
html:root body.dusty-theme.dusty-theme :is(.dusty-button-secondary,.files-view-switch button){background:var(--studio-surface);color:var(--studio-text);border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme :is(button,input,select):disabled{opacity:.55;cursor:default}
html:root body.dusty-theme.dusty-theme .settings-actions :is(a,button){color:var(--studio-accent)!important}
html:root body.dusty-theme.dusty-theme .files-panel{max-width:none;margin:0;padding:32px}
html:root body.dusty-theme.dusty-theme .files-heading h1{font-size:34px}
html:root body.dusty-theme.dusty-theme .files-toolbar{margin-bottom:22px;gap:14px;padding:18px}
html:root body.dusty-theme.dusty-theme .file-download{color:var(--studio-text)}
html:root body.dusty-theme.dusty-theme .files-list li.file-card{background:var(--studio-surface)!important;color:var(--studio-text);border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme .files-list li.file-card:hover{border-color:var(--studio-accent);box-shadow:none}
html:root body.dusty-theme.dusty-theme .files-list-head{color:var(--studio-muted);border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme .files-view-switch [aria-pressed=true]{background:var(--studio-accent-fill);color:var(--studio-on-accent);border-color:var(--studio-accent)}
html:root body.dusty-theme.dusty-theme :is(dialog,.dusty-drawer,.cyborg,.alerts-panel,.app-create-dialog){background:var(--studio-surface)!important;color:var(--studio-text);border-color:var(--studio-line);scrollbar-color:var(--studio-muted) var(--studio-surface)}
html:root body.dusty-theme.dusty-theme :is(dialog,.dusty-drawer,.alerts-panel) :is(header,footer,.cyborg-controls,.drawer-header,.drawer-footer,.drawer-content,.drawer-actions){background:var(--studio-surface)!important;color:var(--studio-text);border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme :is(dialog,.dusty-drawer) button.close{background:var(--studio-raised)!important;color:var(--studio-text)!important;border-color:var(--studio-line)!important}
html:root body.dusty-theme.dusty-theme dialog::backdrop{background:#111214b8}
html:root body.dusty-theme.dusty-theme .site-signature{background:var(--studio-canvas);border-color:var(--studio-line);color:var(--studio-muted)}
html:root body.dusty-theme.dusty-theme .site-signature :is(a,span,small,strong){color:var(--studio-muted)!important}
@media(max-width:900px){html:root body.dusty-theme.dusty-theme .settings-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html:root body.dusty-theme.dusty-theme .border-container{width:96%;margin:14px auto}html:root body.dusty-theme.dusty-theme :is(.settings-hub,.files-panel,.admin-layout){padding:20px 14px}html:root body.dusty-theme.dusty-theme .settings-hub-grid{grid-template-columns:1fr}html:root body.dusty-theme.dusty-theme .settings-hub-grid>a{min-height:74px;padding:14px}.settings-hub-icon{width:38px;height:38px}}
@media print{html:root body.dusty-theme.dusty-theme{background:white!important;color:black}html:root body.dusty-theme.dusty-theme :is(main,article,.center-container,.border-container){background:white!important;color:black}}
/* Upload pickers and release notices are legacy fixed-light islands inside dark drawers. */
html:root body.dusty-theme.dusty-theme :is(.file-picker,.build-notice,.build-notice-wrapper,.build-notice-delivery,.app-create-choices a,.dusty-field-help-bubble){background:var(--studio-raised)!important;color:var(--studio-text)!important;border-color:var(--studio-line)}
html:root body.dusty-theme.dusty-theme .file-picker :is(label,p,small){color:var(--studio-text)}
html:root body.dusty-theme.dusty-theme input[type=file]::file-selector-button{background:var(--studio-accent-fill);color:var(--studio-on-accent);border:0;padding:10px 14px;border-radius:4px;cursor:pointer}
html:root body.dusty-theme.dusty-theme :is(.build-notice-dismiss,.build-notice-summary,.dusty-field-help-trigger,.alerts-panel button){color:var(--studio-accent)!important}
