.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.theme-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.9fr);gap:24px;align-items:start}
.theme-editor,.theme-preview-card{min-width:0;margin:0}
.theme-editor fieldset{border:0;margin:0;padding:0;min-width:0}
.theme-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:26px 0}
.theme-color-field{min-width:0}.theme-color-field label{margin-bottom:9px}
.theme-color-inputs{display:flex;align-items:center;gap:10px;direction:rtl}
.theme-color-inputs input{margin:0}
.theme-color-inputs input[type=color]{appearance:none;width:48px;height:46px;flex:0 0 48px;padding:5px;cursor:pointer;border:1px solid var(--line);border-radius:10px}
.theme-color-inputs input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.theme-color-inputs input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
.theme-color-inputs input[type=color]::-moz-color-swatch{border:0;border-radius:5px}
.theme-color-inputs input[type=text]{text-align:left;font-family:Consolas,monospace;direction:ltr;min-width:0}
.theme-status{font-size:12px;color:var(--description);margin:18px 0 0;min-height:24px}
.theme-preview-card>p{font-size:12px;color:var(--description)}
.theme-preview{background:var(--background);color:var(--ink);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-top:22px}
.theme-preview-bar{background:var(--background-top);border-bottom:1px solid var(--line);padding:16px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700}
.theme-preview-bar .icon{color:var(--brand)}
.theme-preview-body{padding:20px}.theme-preview-card-sample{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px}
.theme-preview-card-sample small{display:block;color:var(--muted);font-size:11px}
.theme-preview-card-sample strong{display:block;color:var(--ink);font-size:19px;margin:10px 0}
.theme-preview-card-sample p{color:var(--description);font-size:12px;line-height:2}
.theme-preview-cta{display:inline-flex;align-items:center;gap:8px;border-radius:9px;padding:10px 14px;background:var(--button);color:var(--button-text);font-size:12px;font-weight:700}
@media(max-width:1200px){.theme-layout{grid-template-columns:1fr}.theme-preview-card{max-width:none}.theme-preview{max-width:560px}}
@media(max-width:680px){.theme-fields{gap:18px 12px}.theme-color-field label{font-size:11px}.theme-color-inputs{gap:6px}.theme-color-inputs input[type=color]{width:38px;flex-basis:38px;height:44px;padding:4px}.theme-color-inputs input[type=text]{padding:10px 7px;font-size:13px}.theme-editor .form-actions{align-items:stretch}.theme-editor .form-actions button{flex:1 1 auto;font-size:11px;padding:10px}.theme-preview-body{padding:14px}}
@media(max-width:360px){.theme-fields{grid-template-columns:1fr}}

.theme-mode-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px}
.theme-mode-options label{display:flex;align-items:center;gap:10px;padding:15px 12px;margin:0;border:1px solid var(--line);border-radius:12px;cursor:pointer;color:var(--ink);font-size:13px}
.theme-mode-options label:hover{background:var(--hover)}
.theme-mode-options label:has(:checked){background:var(--selected);border-color:var(--focus)}
.theme-mode-options input[type=radio]{width:16px;height:16px;flex:0 0 16px;padding:0;margin:0;accent-color:var(--button)}
.theme-mode-options input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.theme-mode-options small{font-size:10px;font-weight:400;display:block;color:var(--muted);margin-top:3px}
.theme-system-hint{font-size:11px;color:var(--description);margin:12px 0 22px}
.theme-customize{border-top:1px solid var(--line);margin:20px 0}
.theme-customize summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;font-size:12px;padding:19px 0;color:var(--ink)}
.theme-customize summary::-webkit-details-marker{display:none}.theme-customize summary>span:last-child{margin-inline-start:auto}
.theme-customize[open] summary>span:last-child{transform:rotate(180deg)}
.theme-palette-tabs{display:flex;gap:10px;margin-top:18px}
.theme-palette-tabs button{flex:1;background:var(--background-secondary);border:1px solid var(--line);color:var(--description);font-weight:500;font-size:12px}
.theme-palette-tabs button:hover{background:var(--hover)}
.theme-palette-tabs button[aria-pressed=true]{background:var(--selected);color:var(--focus);border-color:var(--focus)}
.theme-preview-cta:hover{background:var(--button-hover)}
.theme-preview-link{color:var(--focus);display:block;font-size:11px;margin-top:15px}
.theme-preview-states{display:grid;gap:8px;margin-top:16px;background:var(--background-secondary);padding:12px;border-radius:10px;font-size:11px}
.theme-preview-states>span{padding:9px;border-radius:7px;color:var(--ink)}
.theme-preview-states>span:first-child{background:var(--selected);color:var(--focus)}
.theme-preview-states>span:last-child{background:var(--hover)}
@media(max-width:680px){.theme-mode-options{gap:7px}.theme-mode-options label{flex-direction:column;gap:6px;padding:12px 4px;text-align:center;font-size:12px}.theme-mode-options small{font-size:9px}}
