.system-theme-toggle{display:inline-grid;place-items:center;flex-shrink:0;width:34px;height:34px;padding:7px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#795a81;cursor:pointer;font-size:20px;line-height:1}
.access-theme-toggle{float:right;margin:-10px -10px 0 0}
@media(max-width:700px){.system-theme-toggle{width:30px;height:32px;padding:5px;font-size:18px}.topbar-tools{gap:6px}}
@media screen{
html[data-theme=dark]{--primary:#cfacd8;--primary-dark:#e3c6e9;--soft:#3a2e43;--ink:#f0e9f3;--muted:#bdafc5;--line:#493c53;--canvas:#201b25;color-scheme:dark;color:var(--ink);background:var(--canvas)}
html[data-theme=dark] body{color:var(--ink);background:var(--canvas)}
html[data-theme=dark] :is(.sidebar,.topbar,.panel,.action-dock,.account-dropdown,.access-card,.manual-copy-dialog,.action-launcher,.dashboard-customize>div,.production-base,.quick-client-dialog){background:#29232f;color:var(--ink);border-color:var(--line);box-shadow:none}
html[data-theme=dark] :is(.dashboard-metrics article,.production-metrics article,.workflow-shortcuts>a,.upcoming-orders>a,.dashboard-plan,.order-totals,.order-occasion,.global-launcher-button,.launcher-results a,.table-wrap,.search-toolbar,.calendar-day,.calendar-empty,.account-menu>summary,.production-card,.base-card){background:#302837;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(h1,h2,h3,h4,strong,.record-title,.courtesy-message strong,.dashboard-intro h1,.section-heading h2,.account-name,.calendar-number,.dashboard-overview-heading h2,.launcher-results strong){color:#f0e9f3}
html[data-theme=dark] :is(p,label,legend,small,.muted,.section-caption,.eyebrow,.nav-caption,.main-nav a,.nav-group>summary,.nav-group-toggle,.page-footer,.courtesy-message small,.dashboard-metrics article>div>span,.dashboard-metrics article small,.workflow-shortcuts small,.calendar-week,.calendar-help,.action-dock p,.dock-order-summary>span,.account-dropdown a,.dashboard-intro p,.copy-destination-settings){color:#bdb0c7}
html[data-theme=dark] :is(input,textarea,select){background:#221c29;color:#f0e9f3;border-color:#5c4b69}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a797b3;opacity:1}
html[data-theme=dark] :is(th,thead,.section-heading,.form-end,.access-logout,fieldset){border-color:var(--line)}
html[data-theme=dark] :is(th,thead){background:#342b3d;color:#e7d6ed}
html[data-theme=dark] :is(td,tr){border-color:#493c53;color:#e7ddeb}
html[data-theme=dark] :is(tr[data-row-href]:hover,.listing-suggestions,.product-suggestions,.listing-suggestions [role=option],.product-suggestions button,.launcher-results a:hover){background:#3b2f47;color:#f0e9f3}
html[data-theme=dark] .button{background:#805887;border-color:#9569a0;color:#fff}
html[data-theme=dark] :is(.button.secondary,.system-theme-toggle,.calendar-arrow,.calendar-today,.icon-action,.list-toggle,.pagination a,.dashboard-customize>summary,.sidebar-shortcut,.nav-toggle,.nav-close,.text-button,.production-tabs a){background:#372c40;color:#e3c6e9;border-color:#594763}
html[data-theme=dark] :is(.main-nav a[aria-current],.nav-group a[aria-current],.main-nav a.active){background:#44314e;color:#f4ddfb}
html[data-theme=dark] :is(.metric-icon,.workflow-icon,.page-mark,.count-badge,.account-avatar){background:#49364f;color:#e7c8f1}
html[data-theme=dark] :is(.calendar-day.load-low,.calendar-day.has-orders.load-low){background:#21453c;border-color:#3b7564}
html[data-theme=dark] :is(.calendar-day.load-medium,.calendar-day.has-orders.load-medium){background:#51452a;border-color:#8d7540}
html[data-theme=dark] :is(.calendar-day.load-high,.calendar-day.has-orders.load-high){background:#443359;border-color:#80639e}
html[data-theme=dark] :is(.calendar-day.is-today,.calendar-day.is-selected){outline-color:#ca9fdf}
html[data-theme=dark] .calendar-tooltip{background:#493652;color:#fff}
html[data-theme=dark] .access-page{background:radial-gradient(ellipse at 20% 0%,#3b2940,transparent 60%),#201b25}
html[data-theme=dark] :is(.access-note,.production-balance){background:#253d32;color:#d0efdb}
html[data-theme=dark] .production-balance.is-short{background:#513b2d;color:#f6d6bb}
html[data-theme=dark] :is(.notice,.save-toast,.document-copy-notice){background:#243e30;border-color:#416c51;color:#d2efdc}
html[data-theme=dark] :is(.notice.error,.error){background:#512e36;color:#ffccd3;border-color:#83505c}
html[data-theme=dark] .document-copy-notice strong{color:#d2efdc}
html[data-theme=dark] :is(.brand img,.platform-mobile-brand img,.access-brand img){background:#fff;border-radius:9px}
html[data-theme=dark] .company-avatar{background:#fff}
html[data-theme=dark] :is(.document-preview,.budget-preview){background:#3a3340}
html[data-theme=dark] :is(.document-preview canvas,.document-preview pre,.budget-preview img){background:#fff;color:#161616}
html[data-theme=dark] .dashboard-help-tip{color:#bdb0c7;border-color:var(--line)}
}
@media print{.system-theme-toggle{display:none!important}}

@media screen{html[data-theme=dark] :is(fieldset,article,dialog,[role=listbox],.product-picker-footer,.order-item,.setting-card,.settings-card,.document-settings,.production-base-card,.production-group,.association-card){background:#302837;color:#eee5f3;border-color:#493c53}html[data-theme=dark] .sidebar :is(summary,a){color:#d2c4dc}html[data-theme=dark] .sidebar details[open]>summary,html[data-theme=dark] .sidebar a[aria-current=page]{background:#44314e;color:#f4ddfb}html[data-theme=dark] .library-icon{filter:brightness(0) invert(.85)}html[data-theme=dark] :is(.environment,kbd,.upcoming-date){background:#43344b;color:#e2d0eb;border-color:#594763}html[data-theme=dark] .order-document-dock>p:first-child{display:none}}

@media screen{html[data-theme=dark] th a{color:#e3c6e9!important}html[data-theme=dark] .listing-sort{color:#cdb2d9;opacity:1}}

/* SysCake: marca negativa em superfícies escuras. */
@media screen{html[data-theme=dark] :is(.brand img,.platform-mobile-brand img,.access-brand img){content:url("/assets/brand/syscake-logo-negative.svg?v=2");background:transparent;border-radius:0;filter:none}}

@media screen{html[data-theme=dark] .platform-mobile-brand img{content:url("/assets/brand/syscake-symbol-negative.svg?v=2")}}
