.theme-preset-picker{border:0;padding:0;margin:24px 0 28px;min-width:0}
.theme-preset-picker legend{font-size:20px;font-weight:650;letter-spacing:-.5px;padding:0;margin-bottom:7px}
.theme-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.theme-preset-option{position:relative;display:block!important;cursor:pointer;min-width:0}
.theme-preset-option>input{position:absolute;width:1px;height:1px;opacity:0}
.theme-preset-card{display:block;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface);transition:border-color .18s,box-shadow .18s,transform .18s}
.theme-preset-option:hover .theme-preset-card{transform:translateY(-2px);border-color:var(--purple)}
.theme-preset-option>input:checked+.theme-preset-card{border-color:var(--purple);box-shadow:0 0 0 1px var(--purple)}
.theme-preset-option>input:focus-visible+.theme-preset-card{outline:3px solid var(--purple);outline-offset:4px}
.theme-preset-sample{display:flex;height:100px;margin:10px 10px 0;border-radius:8px;overflow:hidden;background:var(--sample-bg);border:1px solid var(--sample-line)}
.preset-mini-sidebar{display:flex;width:24%;flex-shrink:0;flex-direction:column;gap:8px;padding:17px 10px;background:var(--sample-sidebar)}
.preset-mini-sidebar>i{height:4px;border-radius:3px;background:var(--sample-text);opacity:.2}
.preset-mini-sidebar>i:first-child{background:var(--sample-accent);height:7px;opacity:1}
.preset-mini-main{display:flex;flex:1;flex-direction:column;gap:11px;padding:17px 13px}
.preset-mini-main>b{width:45%;height:5px;background:var(--sample-text);border-radius:3px}
.preset-mini-main>span{display:flex;gap:7px;flex:1}.preset-mini-main>span>i{flex:1;border-radius:4px;background:var(--sample-surface);border:1px solid var(--sample-line)}
.preset-mini-main>em{height:10px;width:30%;background:var(--sample-accent);border-radius:3px;align-self:flex-end}
.theme-preset-caption{display:flex;justify-content:space-between;gap:8px;padding:13px 13px 8px;align-items:center}
.theme-preset-caption b{font-size:14px;font-weight:650;color:var(--ink)}.theme-preset-caption small{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.45}
.preset-selected{display:grid;place-items:center;width:21px;height:21px;flex-shrink:0;color:var(--primary-button-text);background:var(--primary-button);border-radius:50%;opacity:0}
.preset-selected svg{width:13px;height:13px}.theme-preset-option>input:checked+.theme-preset-card .preset-selected{opacity:1}
.theme-preset-pair{display:flex;align-items:center;gap:5px;padding:0 13px 13px}.theme-preset-pair>i{display:grid;place-items:center;width:22px;height:17px;border:1px solid;border-radius:4px}.theme-preset-pair>i>i{width:10px;height:4px;border-radius:2px}.theme-preset-pair small{margin-left:4px;font-size:10px;color:var(--muted)}
.theme-custom-editor{border-top:1px solid var(--line);padding:20px 0;margin:8px 0 12px}.theme-custom-editor>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;font-size:16px;font-weight:600}.theme-custom-editor>summary::-webkit-details-marker{display:none}.theme-custom-editor>summary small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:5px}.theme-custom-editor[open]>summary{margin-bottom:22px}.theme-custom-editor[open]>summary>svg{transform:rotate(180deg)}
.theme-custom-lock{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.theme-custom-lock>span{display:flex;align-items:center;gap:13px}.theme-custom-lock svg{width:20px;flex-shrink:0;color:var(--muted)}.theme-custom-lock b{display:block;font-size:14px}.theme-custom-lock small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:5px}.theme-custom-lock button{flex-shrink:0}
@media(max-width:1050px){.theme-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.theme-preset-grid{gap:10px}.theme-preset-sample{height:80px;margin:7px 7px 0}.preset-mini-sidebar{padding:12px 7px}.preset-mini-main{padding:12px 8px;gap:7px}.theme-preset-caption{padding:10px 10px 7px}.theme-preset-caption small{font-size:10px}.theme-preset-pair{padding:0 10px 10px}.theme-custom-lock{align-items:flex-start;flex-direction:column}.theme-settings .form-actions{flex-wrap:wrap}}
body:has(#theme-form) #serviq-assistant{bottom:calc(var(--theme-actions-height,64px) + max(36px,env(safe-area-inset-bottom)))}
body:has(#theme-form) #serviq-assistant .serviq-assistant-panel{max-height:calc(100dvh - var(--theme-actions-height,64px) - 122px)}
@media(prefers-reduced-motion:reduce){.theme-preset-card{transition:none}.theme-preset-option:hover .theme-preset-card{transform:none}}
