/* Shared compact control scale: matches the Scriptorium sidebar.
   Keep artwork, charts, multiline editors and native checkboxes at their own sizes. */
body :is(aside:not(.detail),.controls,.topbar,.toolbar,.control-group,.filter-panel,.filters,.search-toolbar,.cast-actions,.cast-inputs,.reading-actions,.ogham-controls-fields,.hunger-controls,.cloud-toolbar,.birth-actions,.moon-controls,.correspondence-controls,.reading-tab-panel,.draw-panel,.oracle-panel,.auth-card,.editor-card,.profile-form,.admin-toolbar,.quote-filters,.control-fields,.manual-entry,.casting-controls) :is(button,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]),a.button,.save-reading-button,.share-reading-button):not(:has(img,canvas)):not(.cloud-node):not(.cloud-edge){box-sizing:border-box;min-height:24px!important;height:24px!important;padding:2px 8px!important;border-radius:5px;font-size:12px!important;line-height:18px!important}
body :is(aside:not(.detail),.controls,.topbar,.toolbar,.control-group,.filter-panel,.filters,.search-toolbar,.cast-actions,.cast-inputs,.reading-actions,.ogham-controls-fields,.hunger-controls,.cloud-toolbar,.birth-actions,.moon-controls,.correspondence-controls,.reading-tab-panel,.draw-panel,.oracle-panel,.auth-card,.editor-card,.profile-form,.admin-toolbar,.quote-filters,.control-fields,.manual-entry,.casting-controls) select{padding-right:28px!important;background-position:right 8px center!important;background-size:12px 8px!important}
body :is(aside:not(.detail),.controls,.topbar,.toolbar,.control-group,.filter-panel,.filters,.search-toolbar,.cast-actions,.cast-inputs,.reading-actions,.ogham-controls-fields,.hunger-controls,.cloud-toolbar,.birth-actions,.moon-controls,.correspondence-controls,.reading-tab-panel,.draw-panel,.oracle-panel,.auth-card,.editor-card,.profile-form,.admin-toolbar,.quote-filters,.control-fields,.manual-entry,.casting-controls) :is(label,.control-label){font-size:12px;line-height:1.4}
body :is(aside:not(.detail),.controls,.topbar,.toolbar,.control-group,.filter-panel,.filters,.search-toolbar,.cast-actions,.cast-inputs,.reading-actions,.ogham-controls-fields,.hunger-controls,.cloud-toolbar,.birth-actions,.moon-controls,.correspondence-controls,.reading-tab-panel,.draw-panel,.oracle-panel,.auth-card,.editor-card,.profile-form,.admin-toolbar,.quote-filters,.control-fields,.manual-entry,.casting-controls) :is(.control-label,label>span:first-child){font-size:10px;letter-spacing:.08em}
body :is(aside:not(.detail),.controls,.topbar,.toolbar,.control-group,.filter-panel,.filters,.search-toolbar,.cast-actions,.cast-inputs,.reading-actions,.ogham-controls-fields,.hunger-controls,.cloud-toolbar,.birth-actions,.moon-controls,.correspondence-controls,.reading-tab-panel,.draw-panel,.oracle-panel,.auth-card,.editor-card,.profile-form,.admin-toolbar,.quote-filters,.control-fields,.manual-entry,.casting-controls) :is(.settings-button,.instrument-settings-button,.sidebar-toggle,.instrument-sidebar-toggle,.practice-info-link,.scriptorium-sidebar-toggle){flex:0 0 24px!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;font-size:16px!important}
body :is(aside:not(.detail),.controls,.topbar,.toolbar,.control-group,.filter-panel,.filters,.search-toolbar,.cast-actions,.cast-inputs,.reading-actions,.ogham-controls-fields,.hunger-controls,.cloud-toolbar,.birth-actions,.moon-controls,.correspondence-controls,.reading-tab-panel,.draw-panel,.oracle-panel,.auth-card,.editor-card,.profile-form,.admin-toolbar,.quote-filters,.control-fields,.manual-entry,.casting-controls) .practice-info-link svg{width:16px;height:16px}
body :is(aside:not(.detail),.controls,.topbar,.toolbar,.control-group,.filter-panel,.filters,.search-toolbar,.cast-actions,.cast-inputs,.reading-actions,.ogham-controls-fields,.hunger-controls,.cloud-toolbar,.birth-actions,.moon-controls,.correspondence-controls,.reading-tab-panel,.draw-panel,.oracle-panel,.auth-card,.editor-card,.profile-form,.admin-toolbar,.quote-filters,.control-fields,.manual-entry,.casting-controls) :is(.sidebar-toggle,.instrument-sidebar-toggle) span{font-size:20px;line-height:1}
body.has-reading-tabs :is(.tarot-sidebar,.instrument-sidebar){padding:12px}
body.has-reading-tabs :is(.tarot-sidebar,.instrument-sidebar) h1,body .sigil-practice-heading h1{font-size:24px;line-height:1.1}
body.has-reading-tabs :is(.title-row,.instrument-title-row){gap:8px}
body.has-reading-tabs :is(.title-actions,.instrument-title-actions){gap:6px}
body.has-reading-tabs .reading-tabs{gap:6px;margin:10px 0 8px}
body.has-reading-tabs .reading-tabs [role=tab]{min-height:24px;height:24px;padding:2px 4px;font-size:12px;border-radius:0}
body.has-reading-tabs :is(.reading-tab-panel,.draw-controls){gap:8px}
body.has-reading-tabs .reading-tab-panel :is(.control,.deck-picker,.layout-picker,.keyword-picker,.card-picker){gap:4px;min-width:0}
body.has-reading-tabs :is(.tarot-sidebar,.instrument-sidebar) :is(.controls,.topbar){padding-bottom:12px}
body.has-reading-tabs :is(.interpretations,.interpretations-panel){padding-top:12px}
body.has-reading-tabs :is(.interpretations,.interpretations-panel) h2{font-size:10px;margin-bottom:8px}
body.has-reading-tabs :is(.reading-study-help,.keyword-display-toggle,.display-keywords-option,.custom-runes-option){font-size:12px;line-height:1.5}
body .app>aside:has(.sigil-practice-heading){padding:12px}
body .app>aside .control-group{margin-bottom:12px;padding-bottom:12px}
body .app>aside .control-group h2{font-size:10px;margin-bottom:8px}
body .app>aside :is(.buttons,.style-field){gap:8px}
body .sigil-practice-heading{margin-bottom:12px}
body :is(.toolbar,.cast-actions,.reading-actions,.ogham-controls-fields,.correspondence-controls){gap:8px}
