.theme-reference-title{margin:0 0 12px;color:var(--ink,#eaf0f8);font:700 18px/1.3 var(--font-sans,Inter,Arial,sans-serif)}
.theme-reference-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-items:start}
.theme-reference-card{min-width:0;padding:12px;border:1px solid var(--line,#24364d);border-radius:10px;background:var(--surface,#0f1a2a);color:var(--ink,#eaf0f8);box-shadow:var(--elevation-card,0 4px 12px rgba(0,0,0,.24))}
.theme-reference-card h4{margin:0 0 6px;color:var(--ink,#eaf0f8);font:600 13px/1.35 var(--font-sans,Inter,Arial,sans-serif)}
.theme-reference-card p,.theme-appearance-panel>strong{display:block;margin:0 0 10px;color:var(--muted,#98a8ba);font:400 11px/1.45 var(--font-sans,Inter,Arial,sans-serif)}
.theme-choice-panel{grid-column:span 4;display:grid;gap:7px}
.theme-appearance-panel{grid-column:span 8}
.theme-scale-panel,.theme-menu-panel,.theme-nav-panel{grid-column:span 6}
.theme-color-panel{grid-column:span 12}
.theme-choice-panel>label,.theme-color-row>strong{color:var(--muted,#98a8ba);font-size:11px;font-weight:600}
.theme-choice-panel select{width:100%;min-width:0;min-height:34px;padding:6px 9px;border:1px solid var(--line,#24364d);border-radius:7px;background:var(--bg,#0a121f);color:var(--ink,#eaf0f8);font:12px var(--font-sans,Inter,Arial,sans-serif)}
.theme-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.theme-mode-card{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:9px;border:1px solid var(--line,#24364d);border-radius:8px;background:var(--surface-2,#17243a);cursor:pointer}
.theme-mode-card:has(input:checked){border-color:var(--brand-2,#60a5fa);background:color-mix(in srgb,var(--brand,#2864e8) 12%,var(--surface-2,#17243a))}
.theme-mode-card input,.theme-menu-options input,.theme-nav-options input{accent-color:var(--brand,#2864e8);flex:0 0 auto;margin:2px 0 0}
.theme-mode-card span{display:grid;gap:3px;min-width:0}
.theme-mode-card b{font-size:12px;color:var(--ink,#eaf0f8)}
.theme-mode-card small{font-size:10px;line-height:1.4;color:var(--muted,#98a8ba)}
.theme-scale-row{display:grid;grid-template-columns:14px minmax(0,1fr) 14px auto;align-items:center;gap:8px;color:var(--muted,#98a8ba);font:11px var(--font-mono,"JetBrains Mono",monospace)}
.theme-scale-row input{width:100%;min-width:0;accent-color:var(--brand,#2864e8)}
.theme-scale-row output{padding:4px 7px;border-radius:6px;background:var(--surface-2,#17243a);color:var(--brand-2,#60a5fa);font-weight:700}
.theme-menu-options,.theme-nav-options{display:flex;flex-wrap:wrap;gap:8px}
.theme-menu-options label,.theme-nav-options label{display:flex;align-items:center;gap:6px;min-width:0;padding:7px 9px;border:1px solid var(--line,#24364d);border-radius:7px;background:var(--surface-2,#17243a);color:var(--ink,#eaf0f8);font-size:11px;cursor:pointer}
.theme-color-row{display:grid;gap:8px;padding:9px 0;border-top:1px solid var(--line,#24364d)}
.theme-color-row>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.theme-swatch{width:20px;height:20px;flex:0 0 20px;border:2px solid var(--line,#24364d);border-radius:50%;background:var(--swatch);cursor:pointer}
.theme-swatch:hover,.theme-swatch[aria-pressed=true]{outline:2px solid var(--brand-2,#60a5fa);outline-offset:2px}
.theme-reference-card button.secondary,.theme-reset{min-height:30px;padding:5px 8px;border:1px solid var(--line,#24364d);border-radius:6px;background:var(--surface-2,#17243a);color:var(--ink,#eaf0f8);font:600 10px var(--font-sans,Inter,Arial,sans-serif);cursor:pointer}
.theme-reference-card button.secondary:hover,.theme-reset:hover{border-color:var(--brand-2,#60a5fa);color:var(--brand-2,#60a5fa)}
.theme-reference-card [type=color]{width:1px;height:1px;padding:0;border:0;opacity:0}
.theme-reference-card :focus-visible{outline:2px solid var(--brand-2,#60a5fa);outline-offset:2px}
.settings-content:has(.theme-reference-grid){padding:12px;background:var(--bg,#0a121f);border-color:var(--line,#24364d)}
@media(max-width:980px){.theme-choice-panel{grid-column:span 5}.theme-appearance-panel{grid-column:span 7}.theme-scale-panel,.theme-menu-panel,.theme-nav-panel{grid-column:span 6}}
@media(max-width:760px){.theme-reference-title{font-size:16px}.theme-reference-grid{grid-template-columns:minmax(0,1fr);gap:8px}.theme-reference-card,.theme-choice-panel,.theme-appearance-panel,.theme-scale-panel,.theme-menu-panel,.theme-nav-panel,.theme-color-panel{grid-column:1;padding:10px}.theme-choice-grid{grid-template-columns:minmax(0,1fr)}.theme-color-row>div{gap:6px}.settings-content:has(.theme-reference-grid){padding:9px}}
@media(max-width:420px){.theme-scale-row{grid-template-columns:12px minmax(0,1fr) 12px;gap:6px}.theme-scale-row output{grid-column:1/-1;justify-self:end}.theme-menu-options,.theme-nav-options{display:grid;grid-template-columns:minmax(0,1fr)}.theme-reference-card button.secondary,.theme-reset{flex:1 1 auto}}
html body{font-family:var(--app-font-family,Inter,"Segoe UI",system-ui,sans-serif)}
html body :is(button,input,select,textarea){font-family:inherit}
html body[data-page="settings"] .settings-content{font-size:calc(var(--app-font-size,11pt) * var(--app-scale-factor,1))}
html body[data-page="settings"] .settings-content :is(h1,h2,h3,h4){font-size:calc(var(--app-heading-size,14pt) * var(--app-scale-factor,1))}
html[data-appearance-mode="classic"] body{--elevation-card:none;--elevation-modal:none}
html[data-display-profile="laptop"] body[data-page="settings"] .settings-layout{grid-template-columns:minmax(180px,220px) minmax(0,1fr)}
html[data-display-profile="desktop"] body[data-page="settings"] .settings-layout{grid-template-columns:minmax(250px,300px) minmax(0,1fr)}
html[data-display-profile="laptop"] body[data-page="settings"] .settings-content{font-size:calc(12px * var(--app-scale-factor,1))}
html[data-display-profile="desktop"] body[data-page="settings"] .settings-content{font-size:calc(14px * var(--app-scale-factor,1))}
html[data-show-feature-info="0"] .status-wall-marquee{display:none!important}
#topNav{display:none;grid-column:1/-1;position:sticky;top:82px;z-index:19;min-width:0;max-height:54px;overflow-x:auto;overflow-y:visible;flex-direction:row;align-items:center;gap:4px;padding:5px 14px;border-bottom:1px solid var(--line);background:var(--surface);color:var(--ink)}
#topNav .nav-group-title{flex:0 0 auto;padding:6px;color:var(--muted);font-size:9px}
body[data-page="settings"] .settings-launchpad-subhead{margin:18px 0 0}
#topNav .nav-button{flex:0 0 auto;width:auto;min-height:36px;padding:8px 10px;white-space:nowrap;color:var(--ink)}
#topNav .nav-button.active{background:color-mix(in srgb,var(--brand) 14%,var(--surface));color:var(--brand)}
#topNav .nav-parent{position:relative}
#topNav .submenu{display:none;position:absolute;top:100%;left:0;z-index:30;min-width:210px;max-height:min(55vh,520px);overflow:auto;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow)}
#topNav .submenu.open{display:grid!important;grid-template-columns:minmax(0,1fr)}
#topNav .submenu .nav-button{width:100%;justify-content:flex-start}
html[data-nav-mode="her_ikisi"] #topNav,html[data-nav-mode="ust_bar"] #topNav{display:flex}
html[data-nav-mode="ust_bar"] .app-shell{grid-template-columns:minmax(0,1fr)}
html[data-nav-mode="ust_bar"] .app-shell>.sidebar{display:none}
html[data-nav-mode="her_ikisi"] #topNav{grid-row:2}
html[data-nav-mode="her_ikisi"] .app-shell>.sidebar,html[data-nav-mode="her_ikisi"] .app-shell>.main{grid-row:3}
body[data-page="settings"] .theme-typography-panel,body[data-page="settings"] .theme-display-panel{grid-column:span 6}
body[data-page="settings"] .theme-display-panel .setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink)}
body[data-page="settings"] .theme-display-panel .field.full{grid-column:1/-1}
body[data-page="settings"] .theme-display-panel textarea{min-height:76px;resize:vertical}
body[data-page="settings"] .theme-display-panel [data-settings-section]{margin-top:10px}
@media(max-width:760px){body[data-page="settings"] .theme-typography-panel,body[data-page="settings"] .theme-display-panel{grid-column:1}}
.proforma-legacy-image{display:inline-flex;max-width:100%;padding:6px 9px;border:1px dashed #b45309;border-radius:4px;background:#fffbeb;color:#92400e;cursor:pointer;font:12px/1.4 Arial,sans-serif}.proforma-legacy-image:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

.settings-central-license-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.settings-central-license-card>.badge{grid-column:1/-1;justify-self:start}.settings-central-license-card>strong{font-size:16px}.settings-central-license-orders{margin-top:22px}.settings-central-license-orders h4{margin:0 0 10px}.settings-content:has(.settings-central-license-status){min-width:0}.settings-central-license-orders .table-wrap{max-width:100%;overflow-x:auto}@media(max-width:620px){.settings-central-license-card{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}.settings-central-license-card>.badge{grid-column:1}}
