:root{--brand-main:#68429f;--brand-hover:#583887;--brand-mid:#8554cc;--brand-light:#b89ce1;--brand-pale:#f4f0fa;--brand-bg:#fbfafd;--brand-line:#e1d4f2;--brand-hero:#d4c3ed;--brand-ink:#33204e;--brand-dark:#2b254b;--brand-dark-soft:#3b2e62;}:root[data-theme=light]{--ui-bg:var(--brand-bg);--ui-soft:var(--brand-pale);--ui-hover:var(--brand-pale);--ui-accent:var(--brand-main);--ui-accent-hover:var(--brand-hover);--ui-accent-soft:var(--brand-pale);--ui-accent-text:var(--brand-main);--ui-line:var(--brand-line);--ui-heading:var(--brand-ink);--ui-hero:linear-gradient(115deg,var(--brand-hero),var(--brand-light));--ui-hero-text:var(--brand-ink);--ui-hero-muted:var(--brand-ink);--ui-sidebar-active-text:var(--brand-main);--ui-focus:var(--brand-mid)}
:root[data-theme=dark]{--ui-accent:var(--brand-light);--ui-accent-hover:var(--brand-hero);--ui-accent-text:var(--brand-light);--ui-accent-soft:var(--brand-dark-soft);--ui-soft:var(--brand-dark);--ui-focus:var(--brand-light);--ui-hero:linear-gradient(115deg,var(--brand-dark-soft),var(--brand-dark))}
html[data-theme] .workspace-ui .sidebar{background:linear-gradient(155deg,var(--brand-main),var(--brand-hover));box-shadow:var(--ui-shadow)}
html[data-theme] .workspace-ui .btn-primary,html[data-theme] .entry-button.primary,html[data-theme] .missing-actions .missing-primary{background:linear-gradient(135deg,var(--brand-main),var(--brand-hover));border-color:var(--brand-main);color:#fff;box-shadow:var(--ui-shadow)}
html[data-theme] .workspace-ui .btn-primary:hover,html[data-theme] .entry-button.primary:hover,html[data-theme] .missing-actions .missing-primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
html[data-theme] .identity-mark,html[data-theme] .missing-logo{background:linear-gradient(135deg,var(--brand-main),var(--brand-hover));border-color:var(--brand-main);box-shadow:var(--ui-shadow)}
html[data-theme] .sidebar-profile .profile-portrait{background:linear-gradient(135deg,var(--brand-pale),var(--brand-light));color:var(--brand-ink)}
html[data-theme] .workspace-ui .side-role-badge span{color:var(--brand-light)}
html[data-theme] .workspace-ui .avatar{background:var(--ui-accent-soft);color:var(--ui-accent-text)}
html[data-theme] .workspace-ui .sidebar nav a.active{color:var(--brand-ink);background:var(--brand-pale)}
html[data-theme] .entry-page .identity small{color:var(--ui-muted)}
.site-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.site-settings-grid .field{margin-bottom:20px}
.site-settings-grid label{display:block;margin-bottom:8px}
.site-settings-grid textarea{width:100%;min-height:110px}
.site-setting-note{font-size:12px;color:var(--ui-muted);line-height:1.7}
.site-colors{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.site-colors button{width:35px;height:35px;border:3px solid var(--ui-surface);border-radius:50%;box-shadow:0 0 0 1px var(--ui-line);cursor:pointer}
.site-search-preview{padding:20px;border:1px solid var(--ui-line);background:var(--ui-soft);border-radius:16px;margin-top:22px;overflow-wrap:anywhere}
.site-search-preview strong{display:block;color:var(--ui-accent-text);font-size:20px;margin:8px 0}
.site-search-preview p{font-size:13px;line-height:1.65}
@media(max-width:760px){.site-settings-grid{grid-template-columns:1fr}}

html[data-theme] .sidebar-profile small{color:#fff;background:#ffffff25}html[data-theme] .profile-portrait:after{border-color:var(--brand-light)}html[data-theme] input[type=checkbox]{accent-color:var(--ui-accent)}
