.themeNav{display:flex;gap:12px;align-items:center}.themeBtn{font:inherit;font-size:12px;padding:6px 10px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);white-space:nowrap}.numbers{grid-template-columns:repeat(7,minmax(0,1fr))}.numbers button:last-child{font-size:12px}.brand-mark{box-sizing:content-box}html[data-theme=dark]{color-scheme:dark;--paper:#14222d;--ink:#edf3f5;--muted:#b6c6d0;--line:#435662;--blue:#92bfff;background:var(--paper);color:var(--ink)}html[data-theme=dark] .brand-mark{background:#f6f5f0;padding:4px 7px;border-radius:5px}html[data-theme=dark] :is(.card,#sharing,dialog,.editor){background:#20323e;color:var(--ink);border-color:var(--line)}html[data-theme=dark] :is(input,select,textarea,.secondary,.card-actions button,#x,.numbers button){background:#263c4a;color:#f0f5f7;border-color:#607581}html[data-theme=dark] :is(.primary,.numbers button[aria-pressed=true]){background:#b0cef6;color:#112b41}html[data-theme=dark] :is(.cat-head small,.legend,.stage-code,footer,.meta,.index-line){color:#b7c7d0}html[data-theme=dark] #sharing :is(input,select){background:#263c4a;color:white}html[data-theme=light] .reader{background:#dae1e4}html[data-theme=light] .reader-footer,html[data-theme=light] .readerbar{background:#243b50;color:white}html[data-theme=dark] .reader{background:#101d28}.editor{background:var(--paper);border:1px solid var(--line);padding:15px;border-radius:8px;margin:16px 0}.editor summary{cursor:pointer;font-weight:700}.editor label{display:grid;gap:4px;font-size:13px;margin:10px 0}.editor input,.editor select,.editor textarea{font:inherit;min-width:0;width:100%;padding:7px;border:1px solid var(--line);border-radius:4px}.editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:0 12px}.editor fieldset{margin:14px 0;border:1px solid var(--line);padding:12px}.editor small{color:var(--muted)}#coverPreview{display:block;max-width:100%;max-height:200px;margin:8px 0}.editor-actions{display:flex;gap:8px;flex-wrap:wrap}.editor [role=status]{min-height:1.5em}@media(max-width:500px){.themeNav{gap:5px}.themeBtn{font-size:11px;padding:4px 7px}.brand{gap:5px}.numbers button{padding:3px}}

#numbers,#cards{direction:ltr}#numbers button,#cards .card{direction:rtl;text-align:right}#numbers button{text-align:center}
