/* Aparência compartilhada. Sem filtros de cor: arquivos, amostras e resultados mantêm seus valores. */
:root[data-ui-theme]{--ui-bg:#f7f8fc;--ui-surface:#fff;--ui-soft:#f0f3fa;--ui-text:#14203a;--ui-muted:#53627b;--ui-border:#d6deec;--ui-accent-light:#6532df;--ui-accent-dark:#b7a1ff;--ui-secondary:#3478ff;--ui-header-a:#151e38;--ui-header-b:#423078;--ui-accent:var(--ui-accent-light);--ui-on-accent:#fff;--ui-success:#087a4a;--ui-warning:#b44419;--ui-body-size:16px;--ui-label-size:14px;--ui-note-size:14px;
--bg-main:var(--ui-bg);--bg-elevated:var(--ui-soft);--bg-surface:var(--ui-surface);--bg-card:var(--ui-surface);--bg-card-hover:var(--ui-soft);--bg-input:var(--ui-soft);--text-main:var(--ui-text);--text-secondary:var(--ui-muted);--text-muted:var(--ui-muted);--border-subtle:var(--ui-border);--border-hover:var(--ui-muted);--border-focus:var(--ui-accent);--accent:var(--ui-accent);--accent-hover:var(--ui-accent);--accent-soft:var(--ui-soft);--accent-border:var(--ui-border);
--bg:var(--ui-bg);--panel:var(--ui-surface);--surface:var(--ui-surface);--ink:var(--ui-text);--text:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-border);--border:var(--ui-border);--button:var(--ui-accent);--link:var(--ui-accent);--icon:var(--ui-accent)}
:root[data-ui-theme=dark]{--ui-bg:#18191f;--ui-surface:#222329;--ui-soft:#2a2c35;--ui-text:#f2f2fa;--ui-muted:#b8bccd;--ui-border:#424551;--ui-accent:var(--ui-accent-dark);--ui-on-accent:#11182c;--ui-success:#89ebba;--ui-warning:#ffc59d}
:root[data-ui-theme=contrast]{--ui-bg:#000;--ui-surface:#000;--ui-soft:#111;--ui-text:#fff;--ui-muted:#f2f2f2;--ui-border:#fff;--ui-accent:#8ae8ff;--ui-on-accent:#000;--ui-header-a:#000;--ui-header-b:#000;--ui-success:#a4ffcc;--ui-warning:#ffe89a}
:root[data-ui-palette=protan]{--ui-accent-light:#1557a0;--ui-accent-dark:#9fcaff;--ui-secondary:#b97800;--ui-header-a:#11243e;--ui-header-b:#224566;--ui-success:#1557a0;--ui-warning:#ab6400}
:root[data-ui-palette=deutan]{--ui-accent-light:#064fa2;--ui-accent-dark:#91c7ff;--ui-secondary:#996700;--ui-header-a:#15253c;--ui-header-b:#23485e;--ui-success:#064fa2;--ui-warning:#996700}
:root[data-ui-palette=tritan]{--ui-accent-light:#863578;--ui-accent-dark:#e9a9e0;--ui-secondary:#ac4b17;--ui-header-a:#241d35;--ui-header-b:#55334f;--ui-success:#863578;--ui-warning:#ac4b17}
:root[data-ui-palette=mono]{--ui-accent-light:#34445c;--ui-accent-dark:#d7e2f3;--ui-secondary:#65758a;--ui-header-a:#182333;--ui-header-b:#35445b;--ui-success:#34445c;--ui-warning:#34445c}
:root[data-ui-theme=dark]:not([data-ui-palette=standard]){--ui-success:var(--ui-accent-dark);--ui-warning:#f4ce97}
:root[data-ui-theme=contrast]{--ui-accent:#8ae8ff;--ui-success:#a4ffcc;--ui-warning:#ffe89a;--ui-header-a:#000;--ui-header-b:#000}
:root[data-ui-text=large]{--ui-body-size:18px;--ui-label-size:16px;--ui-note-size:16px}
html[data-ui-theme] body{background-color:var(--ui-bg);color:var(--ui-text);font-size:var(--ui-body-size);line-height:1.6}
html[data-ui-theme] .home-v20{--home-bg:var(--ui-bg);--home-ink:var(--ui-text);--home-muted:var(--ui-muted);--home-purple:var(--ui-accent);--home-blue:var(--ui-secondary)}
html[data-ui-theme] body :is(label,input,select,textarea){font-size:var(--ui-label-size)}
html[data-ui-theme] body :is(input:not([type=color]):not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){font-size:var(--ui-body-size)!important;line-height:1.5}
html[data-ui-theme] :is(.home-section-heading p,.home-hero-description,.catalog-main>p,.home-ai-banner p,.home-how p,.home-learn-grid p,.home-access p,.home-final p,.workspace-tool-description,.showcase-card p){font-size:var(--ui-body-size)!important;line-height:1.65!important}
html[data-ui-theme] :is(.hint,.muted,.notice,.empty-hint,.section-desc,.dhp-auth-subtitle,.field-help,.field-hint,.ws-hint,.adv-hint,.home-hero-notes,.home-hero-overline,.home-benefits p,.home-learn-grid a,.home-how article>span,.home-text-link,.home-access .home-text-link,.home-v20 .footer-column a,.home-v20 .footer-brand p,.home-v20 .footer-meta,.showcase-area,.catalog-group h2 small){font-size:var(--ui-note-size)!important;line-height:1.6}
html[data-ui-theme] :is(.home-navigation a,.home-button,.home-task-shortcuts button,.home-task-shortcuts>span,.area-pill,.workspace-back,.workspace-actions,.workspace-actions button,.workspace-actions a,.home-category-grid small,.home-learn-grid summary,.dhp-workflow button,.space-box h3){font-size:var(--ui-label-size)!important;line-height:1.5}
html[data-ui-theme] .home-eyebrow,html[data-ui-theme] .area-hero-kicker{font-size:12px;line-height:1.6}
html[data-ui-theme] .home-area strong{font-size:var(--ui-label-size)}html[data-ui-theme] .home-area small{font-size:var(--ui-label-size)}
html[data-ui-theme] .home-statistics{padding:26px 14px;gap:10px;background:var(--ui-surface);border-color:var(--ui-border)}html[data-ui-theme] .home-statistics>div{gap:16px;padding:0 14px;align-items:center}html[data-ui-theme] .home-statistics strong{font-size:32px;font-weight:800;line-height:1.2;letter-spacing:-.8px;color:var(--ui-text)}html[data-ui-theme] .home-statistics p>span{font-size:var(--ui-body-size);line-height:1.5;color:var(--ui-muted)}html[data-ui-theme] .home-statistics small{display:block;font-size:var(--ui-note-size);line-height:1.5;color:var(--ui-muted)}html[data-ui-theme] .home-statistics>div+div{border-left-color:var(--ui-border)}
/* Cor solicitada no topo da Home, dos catálogos e de cada ferramenta. */
html[data-ui-theme] :is(.home-v20 .home-header,.workspace-top){background:linear-gradient(110deg,var(--ui-header-a),var(--ui-header-b))!important;color:#f6f5ff;border-color:#ffffff20;box-shadow:0 4px 22px #10192c16;backdrop-filter:none}
html[data-ui-theme] :is(.home-header .brand-logo,.home-header .brand-name,.workspace-top .workspace-brand){color:#fff}html[data-ui-theme] :is(.home-header .brand-name span,.workspace-top .workspace-brand span){color:#bea8ff}
html[data-ui-theme] .home-navigation a{color:#f0edff}html[data-ui-theme] .home-navigation a:hover{text-decoration:underline;color:#fff}
html[data-ui-theme] :is(.home-menu-toggle,.home-header .dhp-header-auth-link,.workspace-back,.workspace-actions>button,.workspace-actions>a){background:#ffffff0d!important;border:1px solid #ffffff45!important;color:#f5f4ff!important}
html[data-ui-theme] .home-header-search{background:#ffffff12;border-color:#ffffff25}html[data-ui-theme] .home-header-search input{color:#fff!important;font-size:14px!important}html[data-ui-theme] .home-header-search input::placeholder{color:#d1cce4;opacity:1}html[data-ui-theme] .home-header-search>svg,html[data-ui-theme] .home-header-search button{color:#e0dbf1;stroke:currentColor}html[data-ui-theme] .home-header-search kbd{color:#e1dbee;font-size:11px}
/* Identidade da ferramenta: monograma com duas letras e prévia ilustrativa. */
.workspace-top{gap:18px;flex-wrap:wrap}.workspace-brand{display:inline-flex;align-items:center;gap:8px}.workspace-tool-identity{display:flex;align-items:center;gap:13px;flex:1;min-width:280px;max-width:800px}.tool-heading-monogram{display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--identity-color) 60%,white),var(--identity-color));color:white;font:800 23px/1 Inter,system-ui,sans-serif;letter-spacing:-1px;box-shadow:0 5px 14px #0002}.workspace-tool-identity>div:nth-child(2){flex:1;min-width:0}.workspace-tool-identity .workspace-title{color:#fff!important;font-size:20px!important;line-height:1.3!important;font-weight:750!important;overflow-wrap:anywhere}.workspace-tool-description{font-size:14px!important;line-height:1.5!important;margin:5px 0 0;color:#d4d5ec;max-width:620px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.workspace-tool-thumbnail{width:106px;height:64px;flex:none;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:12px;background:#f7f7fc;border:1px solid #ffffff60;overflow:hidden}.workspace-tool-thumbnail svg{display:block;width:100%;height:100%}.workspace-tool-thumbnail .card-wheel{width:47px;height:47px}.workspace-tool-thumbnail .card-wheel::after{inset:11px}.workspace-tool-thumbnail .card-palette{width:37px;gap:1px}.workspace-tool-thumbnail .card-palette i{width:8px;height:13px}.workspace-tool-thumbnail .card-palette code{font-size:5px;padding:3px 0;margin-top:3px}.workspace-actions{flex-wrap:wrap}.workspace-actions svg{stroke:currentColor}
body.dedicated-tool .modal-window,body.dedicated-tool .modal-window:focus,body.dedicated-tool .modal-window:focus-visible{outline:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}body.dedicated-tool .modal-header[hidden]{display:none!important}
/* Preferências acessíveis em todas as páginas. */
.appearance-trigger{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;padding:9px 11px;min-height:38px;border:1px solid #ffffff45;border-radius:10px;background:#ffffff10;color:#fff;font:600 14px/1.4 Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap}.appearance-trigger svg{width:20px;height:20px;flex:none}.appearance-trigger:hover{background:#ffffff20}.appearance-fab{position:fixed;right:16px;bottom:16px;z-index:999;background:var(--ui-header-a);border-color:var(--ui-border);box-shadow:0 4px 18px #0003}.appearance-dialog{width:min(500px,calc(100% - 28px));max-height:calc(100dvh - 36px);padding:25px;border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 25px 90px #0005;font:var(--ui-body-size)/1.6 Inter,system-ui,sans-serif;overflow:auto;margin:auto}.appearance-dialog::backdrop{background:#0a102b99;backdrop-filter:blur(4px)}.appearance-dialog-top{display:flex;align-items:start;justify-content:space-between;gap:15px}.appearance-eyebrow{font-size:12px;color:var(--ui-accent);font-weight:800;letter-spacing:.08em}.appearance-dialog h2{color:var(--ui-text);font-size:25px;line-height:1.25;margin:7px 0 0;letter-spacing:-.7px}.appearance-close{width:36px;height:36px;display:grid;place-items:center;font-size:26px;border:1px solid var(--ui-border);background:var(--ui-soft);color:var(--ui-text);border-radius:10px;cursor:pointer}.appearance-dialog>p{font-size:var(--ui-label-size);color:var(--ui-muted);line-height:1.6}.appearance-dialog label{display:grid;gap:7px;margin:16px 0;font-size:var(--ui-label-size);font-weight:600;color:var(--ui-text)}.appearance-dialog select{width:100%;min-height:46px;background:var(--ui-soft);border:1px solid var(--ui-border);color:var(--ui-text);border-radius:10px;padding:9px 12px;font:inherit}.appearance-palette-example{display:flex;align-items:center;gap:8px;margin:19px 0}.appearance-palette-example i{width:37px;height:24px;border-radius:6px;background:var(--ui-accent)}.appearance-palette-example i:nth-child(2){background:var(--ui-secondary)}.appearance-palette-example i:nth-child(3){background:var(--ui-text)}.appearance-palette-example span{margin-left:auto;font-size:23px;font-weight:700}.appearance-dialog .appearance-note{font-size:var(--ui-label-size);padding:12px;background:var(--ui-soft);border-radius:10px}.appearance-dialog-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.appearance-dialog-bottom button{border:1px solid var(--ui-border);border-radius:10px;padding:11px 14px;font:600 var(--ui-label-size)/1.4 Inter,system-ui,sans-serif;cursor:pointer}.appearance-reset{background:var(--ui-soft);color:var(--ui-text)}.appearance-done{background:var(--ui-accent);color:var(--ui-on-accent)}.appearance-status{min-height:22px;margin-bottom:0}.appearance-dialog :is(button,select):focus-visible,.appearance-trigger:focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}
/* Superfícies do sistema; não há seletores de amostras, canvas ou valores de cor gerados. */
html[data-ui-theme] :is(.catalog-page,.dhp-auth-page){background:var(--ui-bg);color:var(--ui-text)}
html[data-ui-theme] :is(.showcase-card,.home-area,.home-learn-grid details,.home-access,.home-search-results,.home-task-shortcuts button,.space-box,.dhp-auth-card){background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}
html[data-ui-theme] :is(.showcase-card h3,.home-section-heading h2,.home-how h2,.home-how h3,.home-access h2,.home-final h2,.catalog-main h1,.catalog-group h2,.home-area strong,.home-learn-grid summary,.space-box h3){color:var(--ui-text)}
html[data-ui-theme] :is(.showcase-card p,.showcase-area,.home-section-heading p,.home-area small,.home-access p,.home-final p,.home-how p,.home-learn-grid p,.empty-hint,.catalog-main>p,.dhp-auth-subtitle){color:var(--ui-muted)}
html[data-ui-theme] :is(.catalog-search input,.home-search-results>input,.dhp-auth-field input){background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-text)}html[data-ui-theme] .area-pill{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}html[data-ui-theme] .area-pill.selected{background:var(--ui-accent);color:var(--ui-on-accent);border-color:var(--ui-accent);text-decoration:underline;font-weight:700}
html[data-ui-theme] .dhp-auth-brand,html[data-ui-theme] .dhp-auth-field label{color:var(--ui-text)}html[data-ui-theme] .dhp-auth-links a{color:var(--ui-accent)}
html[data-ui-theme=dark] :is(.home-hero,.home-hero[data-slide]){background:linear-gradient(115deg,#131d30,#25223e,#15273e)}html[data-ui-theme=dark] .home-hero h1{color:var(--ui-text)}html[data-ui-theme=dark] :is(.home-hero-description,.home-hero-overline,.home-hero-notes){color:var(--ui-muted)}html[data-ui-theme=dark] :is(.home-ai-banner,.home-final){background:linear-gradient(110deg,#211c38,#1d2d45);border-color:var(--ui-border)}html[data-ui-theme=dark] :is(.home-ai-banner h2,.home-ai-banner p){color:var(--ui-text)}html[data-ui-theme=dark] .home-button.secondary{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}html[data-ui-theme=dark] .home-v20 .site-footer{background:var(--ui-surface);border-color:var(--ui-border)}html[data-ui-theme=dark] :is(.home-v20 .footer-brand strong,.home-v20 .footer-column h2,.home-v20 .space-section .section-title){color:var(--ui-text)}html[data-ui-theme=dark] .dhp-banner-wrap{background:var(--ui-bg)}html[data-ui-theme=dark] .area-hero-banner{background:linear-gradient(110deg,#1b2437,#29223b);border-color:var(--ui-border)}html[data-ui-theme=dark] .area-hero-copy h2{color:var(--ui-text)}html[data-ui-theme=dark] .area-hero-copy>p,html[data-ui-theme=dark] .area-hero-note{color:var(--ui-muted)}
html[data-ui-theme=dark] :is(.ws-panel,.adv-controls,.adv-results,.panel,.properties,.pc-panel,.cta-panel,.cbv-panel,.csc-panel,.ph-panel,.tone-panel,.gs-panel,.legal-card){background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}html[data-ui-theme=dark] :is(.hint,.muted,.notice,.empty-hint,.section-desc,.field-hint,.ws-hint,.adv-hint){color:var(--ui-muted)}
html[data-ui-theme=contrast] :is(.home-hero,.home-ai-banner,.home-final,.area-hero-banner,.home-benefits,.dhp-banner-wrap){background:#000;border:1px solid #fff}html[data-ui-theme=contrast] :is(.home-hero h1,.home-hero-description,.home-ai-banner h2,.home-ai-banner p,.home-hero-notes,.area-hero-copy h2,.area-hero-copy>p,.home-v20 .site-footer,.home-v20 .footer-brand strong,.home-v20 .footer-column h2){color:#fff;background-color:#000}html[data-ui-theme=contrast] :is(.ws-panel,.adv-controls,.adv-results,.panel,.properties,.pc-panel,.cta-panel,.cbv-panel,.csc-panel,.ph-panel,.tone-panel,.gs-panel){background:#000;border-color:#fff;color:#fff}html[data-ui-theme=contrast] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #ffe163!important;outline-offset:4px}html[data-ui-theme=contrast] .home-button.primary,html[data-ui-theme=contrast] .home-button.secondary{background:#fff;color:#000;border-color:#fff}
html[data-ui-theme] .pass{color:var(--ui-success)}html[data-ui-theme] .fail{color:var(--ui-warning)}
html:not([data-ui-palette=standard])[data-ui-theme] :is(.showcase-monogram,.tool-heading-monogram){background:var(--ui-accent);color:var(--ui-on-accent)}html:not([data-ui-palette=standard])[data-ui-theme] :is(.showcase-symbol,.home-area-icon,.home-stat-icon,.home-text-link,.home-eyebrow){color:var(--ui-accent)}html:not([data-ui-palette=standard])[data-ui-theme] :is(.home-button.primary,.area-hero-cta){background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-on-accent)}
@media(max-width:1200px){.workspace-tool-thumbnail{display:none}.workspace-tool-identity{max-width:none}.workspace-actions{width:100%;justify-content:flex-end}.workspace-tool-description{max-width:none}}
@media(max-width:1120px){html[data-ui-theme] .home-header-inner{gap:12px}.home-menu-toggle{display:block;margin-left:auto}.home-navigation{display:none;position:absolute;left:20px;right:20px;top:78px;padding:20px;margin:0;background:var(--ui-header-a);border:1px solid #ffffff30;border-radius:12px;flex-wrap:wrap;gap:20px}.home-navigation.is-open{display:flex}html[data-ui-theme] .home-statistics{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}html[data-ui-theme] .home-statistics>div:nth-child(3){border-left:0}}
@media(max-width:760px){html[data-ui-theme] .home-statistics{padding:23px 12px;gap:24px 12px}html[data-ui-theme] .home-statistics>div{gap:10px;padding:0 4px;min-width:0}html[data-ui-theme] .home-statistics strong{font-size:28px}html[data-ui-theme] .home-statistics p>span{font-size:14px}html[data-ui-theme] .home-statistics small{font-size:13px}html[data-ui-theme] .home-statistics .home-stat-icon svg{width:24px;height:24px}.appearance-trigger>span{display:none}.appearance-trigger{width:36px;padding:7px;flex:none}.workspace-top{padding:15px 12px;gap:12px}.workspace-tool-identity{order:3;width:100%;flex-basis:100%;min-width:0}.workspace-actions{order:4;justify-content:flex-start}.workspace-tool-identity .workspace-title{font-size:20px!important}.workspace-tool-description{font-size:14px!important}.workspace-tool-thumbnail{display:flex;width:85px;height:58px}.workspace-brand{margin-left:auto}.workspace-actions .appearance-trigger{margin-left:auto}.appearance-dialog{padding:21px}.home-navigation{left:14px;right:14px;top:70px}html[data-ui-theme] .home-header-inner{gap:7px}.home-header .header-actions{gap:7px}.home-header .brand-name{font-size:15px}html[data-ui-theme] .home-header .dhp-header-auth-link{font-size:12px;padding:8px}html[data-ui-theme] .home-header-search button{background:#ffffff12;color:white;border-color:#ffffff30}}
@media(max-width:420px){.workspace-tool-thumbnail{display:none}.appearance-dialog-bottom{flex-wrap:wrap}.appearance-dialog-bottom button{flex:1}.home-statistics .home-stat-icon{display:none}.home-statistics .home-online-dot{margin:0 3px}.home-statistics small{overflow-wrap:anywhere}}

:root[data-ui-theme]{--csc-bg:var(--ui-bg);--csc-surface:var(--ui-surface);--csc-input:var(--ui-soft);--csc-soft:var(--ui-soft);--csc-ink:var(--ui-text);--csc-muted:var(--ui-muted);--csc-border:var(--ui-border);--csc-line:var(--ui-border);--csc-blue:var(--ui-accent);--csc-blue-hover:var(--ui-accent);--csc-blue-dark:var(--ui-accent);--csc-accent:var(--ui-accent);--csc-accent-dark:var(--ui-accent);--csc-focus:var(--ui-accent);}

:root[data-ui-theme]{--ph-bg:var(--ui-bg);--ph-surface:var(--ui-surface);--ph-input:var(--ui-soft);--ph-soft:var(--ui-soft);--ph-ink:var(--ui-text);--ph-muted:var(--ui-muted);--ph-border:var(--ui-border);--ph-line:var(--ui-border);--ph-blue:var(--ui-accent);--ph-blue-hover:var(--ui-accent);--ph-blue-dark:var(--ui-accent);--ph-accent:var(--ui-accent);--ph-accent-dark:var(--ui-accent);--ph-focus:var(--ui-accent);}

:root[data-ui-theme]{--tone-bg:var(--ui-bg);--tone-surface:var(--ui-surface);--tone-input:var(--ui-soft);--tone-soft:var(--ui-soft);--tone-ink:var(--ui-text);--tone-muted:var(--ui-muted);--tone-border:var(--ui-border);--tone-line:var(--ui-border);--tone-blue:var(--ui-accent);--tone-blue-hover:var(--ui-accent);--tone-blue-dark:var(--ui-accent);--tone-accent:var(--ui-accent);--tone-accent-dark:var(--ui-accent);--tone-focus:var(--ui-accent);}

:root[data-ui-theme]{--pc-bg:var(--ui-bg);--pc-surface:var(--ui-surface);--pc-input:var(--ui-soft);--pc-soft:var(--ui-soft);--pc-ink:var(--ui-text);--pc-muted:var(--ui-muted);--pc-border:var(--ui-border);--pc-line:var(--ui-border);--pc-blue:var(--ui-accent);--pc-blue-hover:var(--ui-accent);--pc-blue-dark:var(--ui-accent);--pc-accent:var(--ui-accent);--pc-accent-dark:var(--ui-accent);--pc-focus:var(--ui-accent);}

:root[data-ui-theme]{--cta-bg:var(--ui-bg);--cta-surface:var(--ui-surface);--cta-input:var(--ui-soft);--cta-soft:var(--ui-soft);--cta-ink:var(--ui-text);--cta-muted:var(--ui-muted);--cta-border:var(--ui-border);--cta-line:var(--ui-border);--cta-blue:var(--ui-accent);--cta-blue-hover:var(--ui-accent);--cta-blue-dark:var(--ui-accent);--cta-accent:var(--ui-accent);--cta-accent-dark:var(--ui-accent);--cta-focus:var(--ui-accent);}

:root[data-ui-theme]{--gs-bg:var(--ui-bg);--gs-surface:var(--ui-surface);--gs-input:var(--ui-soft);--gs-soft:var(--ui-soft);--gs-ink:var(--ui-text);--gs-muted:var(--ui-muted);--gs-border:var(--ui-border);--gs-line:var(--ui-border);--gs-blue:var(--ui-accent);--gs-blue-hover:var(--ui-accent);--gs-blue-dark:var(--ui-accent);--gs-accent:var(--ui-accent);--gs-accent-dark:var(--ui-accent);--gs-focus:var(--ui-accent);}
/* Prioridade sobre o estilo legado dos modais, agora usados como páginas. */
html[data-ui-theme] #tool-modal .modal-body :is(.adv-field>label,.ws-field>label,.ws-field label,.adv-result-label){font-size:var(--ui-label-size)!important;line-height:1.6!important;color:var(--ui-text)!important}
html[data-ui-theme] #tool-modal .modal-body :is(input:not([type=range]):not([type=color]):not([type=checkbox]):not([type=radio]),select,textarea){font-size:var(--ui-body-size)!important;line-height:1.5!important}
html[data-ui-theme] #tool-modal .modal-body button{font-size:var(--ui-label-size)!important;line-height:1.5!important}
html[data-ui-theme] :is(.ws-panel>p,.imagecolor-results-heading p,.imagecolor-help,.imagecolor-controls-note,.imagecolor-empty small,.cbv-footnote,.tone-footnote,.ph-footnote){font-size:var(--ui-note-size)!important;line-height:1.6!important}
html[data-ui-theme] :is(.ws-panel>label,.panel>label,.properties>label,.side>label){font-size:var(--ui-label-size);line-height:1.6}
html[data-ui-theme] :is(.btn-primary,.dhp-auth-btn,button.primary,.area-hero-cta,.imagecolor-primary-button){background:var(--ui-accent);color:var(--ui-on-accent);border-color:var(--ui-accent)}
html[data-ui-theme] .home-header-search kbd{background:#ffffff12;border:1px solid #ffffff30;color:#fff;border-radius:4px;padding:2px 4px}
html[data-ui-theme] #tool-modal .modal-window,html[data-ui-theme] #tool-modal .modal-body{background:var(--ui-bg)}
html[data-ui-theme=dark] label,html[data-ui-theme=contrast] label{color:var(--ui-text)}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) :is(.imagecolor-dropzone,.imagecolor-project-bar,.imagecolor-load-controls,.imagecolor-empty,.imagecolor-count){background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-text)}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) :is(.imagecolor-dropzone strong,.imagecolor-empty strong,.imagecolor-project-bar label,.imagecolor-controls label,.imagecolor-load-controls label){color:var(--ui-text)!important}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) :is(.imagecolor-results-heading p,.imagecolor-controls-note,.imagecolor-help,.imagecolor-empty small,.imagecolor-dropzone>span:not(.imagecolor-select-button):not(.imagecolor-upload-icon):not(.imagecolor-dropzone-kicker)){color:var(--ui-muted)!important}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) :is(.ws-input,.ws-select,.imagecolor-project-bar input,.panel input:not([type=color]),.panel select,.properties input:not([type=color])){background:var(--ui-soft);color:var(--ui-text);border-color:var(--ui-border)}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) :is(.imagecolor-secondary-button,.dhp-workflow button){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
@media(max-width:760px){html[data-ui-theme] .home-statistics p>span{font-size:16px}html[data-ui-theme] .home-statistics small{font-size:14px}}
html[data-ui-theme] .legal-page{background:var(--ui-bg);color:var(--ui-text)}html[data-ui-theme] .legal-topbar{background:linear-gradient(110deg,var(--ui-header-a),var(--ui-header-b));border-color:#ffffff25;color:white}html[data-ui-theme] .legal-topbar a{color:#f4f0ff}html[data-ui-theme] :is(.legal-content,.legal-home-card,.legal-nav a,.legal-back){background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}html[data-ui-theme] :is(.legal-content h2,.legal-content strong,.legal-home-card h2){color:var(--ui-text)}html[data-ui-theme] :is(.legal-content p,.legal-content li,.legal-home-card p,.legal-updated,.legal-footer){color:var(--ui-muted);font-size:var(--ui-body-size)}html[data-ui-theme] :is(.legal-content a,.legal-footer a,.legal-home){color:var(--ui-accent)}
@media(max-width:420px){.workspace-tool-identity{display:grid;grid-template-columns:44px minmax(0,1fr) 64px;gap:9px}.tool-heading-monogram{width:44px;height:44px;font-size:21px}.workspace-tool-thumbnail{display:flex;width:64px;height:48px}.workspace-tool-thumbnail .card-palette{display:none}.workspace-tool-thumbnail .card-wheel{width:35px;height:35px}.workspace-tool-thumbnail .card-wheel::after{inset:8px}.workspace-tool-identity>div:nth-child(2){min-width:0}}
html[data-ui-theme] :is(.swatch .hex,.swatch small,.imagecolor-code,.contrast-row,.contrast h3,.property-actions button,.saved-item button,.pc-help,.cta-help,.cbv-help){font-size:var(--ui-note-size);line-height:1.5}
html[data-ui-theme] .workspace-actions kbd{background:#ffffff12;color:#fff;border:1px solid #ffffff30;padding:2px 4px;border-radius:4px;font-size:12px}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) body button:not(:where(.workspace-top *, .home-header *, .appearance-dialog *, .showcase-card *, .home-carousel-controls *, .preview *, .colorlab-preview *, .fc-preview *, [data-color-content] *, [class*="swatch"] *, [style], .btn-primary, .primary, .imagecolor-primary-button, .dhp-auth-btn)){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) :is(.eyebrow,.heading>p,.section-head p,.section-head>p,.preview-head>p,.property-actions>p,.contrast-row){color:var(--ui-muted)}
html[data-ui-theme] :is(.side .eyebrow,.properties>.eyebrow,.section-head .eyebrow,.heading .eyebrow){font-size:12px;line-height:1.6}
html:is([data-ui-theme=dark],[data-ui-theme=contrast]) :is(.cbv-panel h2,.cbv-panel h3,.cbv-page-heading h1,.cbv-page-heading p,.cbv-field label,.cbv-help,.cbv-note){color:var(--ui-text)}
@media(max-width:760px){html[data-ui-theme] .home-header-search kbd{font-size:0!important;padding:0;border:0;background:transparent}html[data-ui-theme] .home-header-search kbd::after{font-size:23px;color:#fff}html[data-ui-theme] .home-header .dhp-header-auth-link{font-size:14px;padding:7px 9px}.appearance-trigger{min-width:38px;min-height:40px}}
