/* Published appearance is constrained to validated tokens. */
html.ui-designed{--gold:var(--design-gold);--radius:var(--design-radius);font-size:var(--design-body-size)}html.ui-designed:not([data-theme=light]){--paper:var(--design-dark-background);--emerald:var(--design-dark-background);--jade:var(--design-dark-panel);--ink:var(--design-dark-text);--muted:var(--design-dark-muted)}html.ui-designed[data-theme=light]{--paper:var(--design-light-background);--ink:var(--design-light-text);--muted:var(--design-light-muted)}
html.ui-designed[lang=fa]{--ui-font:'DueBook Digits',var(--design-body-font-fa),Arial,sans-serif;--heading-font:'DueBook Digits',var(--design-heading-font-fa),Arial,sans-serif}
html.ui-designed body{background-color:var(--paper);color:var(--ink)}html.ui-designed :is(.panel,.book-card,.mini-card,.stat,dialog){border-radius:var(--design-radius);padding:var(--design-card-padding);color:var(--ink)}html.ui-designed:not([data-theme=light]) :is(.panel,.book-card,.mini-card,.stat,dialog,.sidebar){background-color:var(--design-dark-panel)}html.ui-designed[data-theme=light] :is(.panel,.book-card,.mini-card,.stat,dialog){background-color:var(--design-light-panel);color:var(--design-light-text)}html.ui-designed :is(.section-head h2,.panel h2,.dialog-top h2){font-size:var(--design-heading-size)}html.ui-designed :is(.primary,.secondary,.quiet,.danger){font-size:var(--design-button-size);min-height:var(--design-control-height)}html.ui-designed .primary{background:var(--gold);color:#001b22}html.ui-designed input,html.ui-designed select,html.ui-designed textarea{min-height:var(--design-control-height);font-size:max(16px,var(--design-body-size))}html.ui-designed .settings-stack,html.ui-designed .grid-two{gap:var(--design-gap)}html.ui-designed:not([data-theme=light]) :is(.field-note,.panel small,.section-head p){color:var(--design-dark-muted)}html.ui-designed[data-theme=light] :is(.field-note,.panel small,.section-head p){color:var(--design-light-muted)}
html.ui-designed[data-show-summary=false] #content .dashboard-hero{display:none}html.ui-designed[data-show-shortcuts=false] #content .dashboard-shortcuts{display:none}html.ui-designed #content .stats>.stat{padding:12px 6px}
@media(min-width:851px){#content>#ad-carousel{width:100%;max-width:var(--design-desktop-ad-width,640px);margin-inline:auto}}
@media(max-width:850px){#content>#ad-carousel{width:var(--design-mobile-ad-percent,100%);max-width:100%;margin-inline:auto}html.ui-designed :is(.panel,.book-card,.mini-card,dialog){padding:min(18px,var(--design-card-padding))}html.ui-designed .section-head h2,html.ui-designed .panel h2{font-size:min(22px,var(--design-heading-size))}}
#page-title[hidden],.footer[hidden]{display:none!important}.topbar{margin-bottom:14px;min-height:44px}.topbar>div:first-child:has(#page-title[hidden]){display:none}.topbar:has(#page-title[hidden]){justify-content:flex-end}#page-title time{font-size:clamp(13px,1.6vw,20px);font-family:var(--ui-font);font-weight:400;line-height:1.7}.dashboard-hero{margin-top:0}.settings-stack .app-version-panel .actions{margin-top:14px}.section-head:empty{display:none}
.studio-shell{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:20px;align-items:start}.studio-controls,.studio-preview{min-width:0}.studio-controls>p{font-size:12px;line-height:1.9;margin-bottom:14px}.studio-controls details{border:1px solid #c6aa6955;border-radius:12px;padding:10px;margin-bottom:10px}.studio-controls summary{cursor:pointer;min-height:40px;font-size:14px}.studio-field{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:8px;margin-bottom:12px}.studio-field input,.studio-field select{min-width:0}.studio-field input[type=color]{padding:4px;height:44px}.studio-field input[type=checkbox]{width:22px;height:22px;min-height:22px}.studio-field select{grid-column:1/-1}.studio-preview-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}.studio-preview-toolbar label{flex:1 1 110px;min-width:0}.studio-preview-toolbar select{min-width:0}.studio-preview-stage{background:#163b4355;border:1px solid #c6aa6955;padding:8px;overflow:hidden;border-radius:14px;min-width:0}.studio-frame-wrap{position:relative;margin-inline:auto;overflow:hidden;background:#001b22}.studio-frame{position:absolute;left:0;top:0;border:0;transform-origin:top left;display:block;background:#001b22}.studio-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.studio-actions button{flex:1 1 130px}.studio-order{display:flex;gap:8px;align-items:center;padding:8px 0}.studio-order strong{flex:1;font-size:12px}.studio-order button{width:40px;min-height:40px}.studio-embedded #app-intro,.studio-embedded #update-notice,.studio-embedded #guide-notice,.studio-embedded #install-notice,.studio-embedded #demo-banner{display:none!important}.studio-embedded body{min-width:0}
@media(max-width:1100px){.studio-shell{grid-template-columns:1fr}.studio-controls{order:2}.studio-preview{order:1}}

#content>.section-head>div>h2,#content>.section-head>h2,#content>.ad-page-heading>h2,body[data-page=quick] #content>.panel>h2{display:none}

html.ui-designed[lang=en],html.ui-designed[lang=tr]{--ui-font:'DueBook Digits',var(--design-latin-font),Times,serif;--heading-font:var(--ui-font)}html.ui-designed[lang=ar]{--ui-font:'DueBook Digits',var(--design-arabic-font),Arial,sans-serif;--heading-font:var(--ui-font)}html.ui-designed[lang=ckb]{--ui-font:'DueBook Digits',var(--design-kurdish-font),Arial,sans-serif;--heading-font:var(--ui-font)}
html.ui-designed:not([data-theme=light]) :is(input,select,textarea,.secondary,.quiet,.avatar){background:var(--design-dark-panel);color:var(--design-dark-text)}html.ui-designed[data-theme=light] :is(input,select,textarea,.secondary,.quiet,.avatar){background:var(--design-light-panel);color:var(--design-light-text)}html.ui-designed :is(.secondary,.quiet,input,select,textarea,.ad-carousel,.panel){border-color:var(--gold)}html.ui-designed .panel :is(h1,h2,h3,p,strong,label){color:inherit}html.ui-designed .studio-field input[type=color]{padding:4px}

html.ui-designed :is(.panel p,.panel label,.row-main strong,.row-end,.book-card p,.quick-card span,.field-note){font-size:var(--design-body-size)}
