.theme-settings{display:grid;gap:16px;margin-bottom:16px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text)}.theme-settings button{touch-action:manipulation}.theme-settings h3{display:flex;align-items:baseline;gap:8px;margin:4px 0 0;font-size:14px;font-weight:850}.theme-settings h3 small{color:var(--muted);font-size:12px;font-weight:600}.theme-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 20px}.theme-top>div{display:grid;gap:5px}.theme-top small{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.theme-mode-switch{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.theme-mode-switch button{padding:6px 11px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:750;cursor:pointer}.theme-mode-switch button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.theme-mode-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.theme-recent{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;color:var(--muted);font-size:12px}.theme-recent button{padding:5px 10px;border:1px solid var(--line);border-radius:99px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:700;cursor:pointer}.theme-recent button.active{border-color:var(--accent);color:var(--accent-text,var(--accent))}.theme-mini{display:grid;grid-template-columns:22% 1fr;gap:4px;width:100%;height:58px;padding:5px;border-radius:9px;border:1px solid rgba(0,0,0,.12);box-sizing:border-box;overflow:hidden}.theme-mini i{display:block;border-radius:4px}.theme-mini>span{position:relative;display:grid;align-content:start;gap:4px;padding-top:2px}.theme-mini>span b{display:block;height:6px;width:78%;border-radius:3px}.theme-mini>span em{display:block;height:10px;width:44%;margin-top:3px;border-radius:4px}.theme-mini>span u{position:absolute;right:2px;top:2px;width:8px;height:8px;border-radius:50%}.theme-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.theme-card{display:grid;gap:7px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,transform .15s}.theme-card:hover{border-color:var(--muted-2,var(--muted));transform:translateY(-1px)}.theme-card.active{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent)}.theme-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.theme-card b{display:flex;justify-content:space-between;gap:6px;font-size:12.5px;font-weight:800}.theme-card b span{color:var(--accent-text,var(--accent))}.theme-empty{margin:0;color:var(--muted);font-size:12.5px}.theme-mine{display:grid;gap:8px;margin:0;padding:0;list-style:none}.theme-mine li{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.theme-mine li.active{border-color:var(--accent)}.theme-mine-apply{display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:10px;flex:1;min-width:0;padding:2px;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:8px}.theme-mine-apply:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.theme-mine-apply .theme-mini{height:40px}.theme-mine-apply>span{display:grid;min-width:0}.theme-mine-apply>span b{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.theme-mine-apply>span small{color:var(--muted);font-size:11.5px}.theme-mine-apply input{min-width:0;padding:6px 8px;border:1px solid var(--accent);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}.theme-tick{color:var(--accent-text,var(--accent));font-weight:900}.theme-mine-tools{display:inline-flex;gap:4px}.theme-confirm button,.theme-mine-tools button{min-width:32px;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;cursor:pointer}.theme-confirm button:hover,.theme-mine-tools button:hover{border-color:var(--muted-2,var(--muted))}.theme-confirm{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}.theme-confirm button{font-size:12px;font-weight:750}.theme-confirm button.danger{border-color:#dc2626;color:#dc2626}.theme-advanced{border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.theme-advanced>summary{display:flex;align-items:center;gap:10px;padding:10px 12px;list-style:none;cursor:pointer;border-radius:12px}.theme-advanced>summary::-webkit-details-marker{display:none}.theme-advanced>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.theme-advanced>summary>span:first-child{font-size:15px}.theme-advanced>summary>span:nth-child(2){display:grid;flex:1;min-width:0}.theme-advanced>summary b{font-size:13px;font-weight:800}.theme-advanced>summary small{color:var(--muted);font-size:11.5px}.theme-advanced>summary i{font-style:normal;color:var(--muted);transition:transform .15s}.theme-advanced[open]>summary i{transform:rotate(180deg)}.theme-advanced-body{display:grid;gap:14px;padding:4px 12px 14px}.theme-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-color-grid fieldset{margin:0;padding:8px 10px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.theme-color-grid legend{display:flex;gap:6px;align-items:baseline;padding:0 4px;font-size:12px;font-weight:800}.theme-color-grid legend em{color:var(--muted);font-size:11px;font-style:normal;font-weight:600}.theme-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(26px,1fr));gap:6px}.theme-swatches button{position:relative;width:26px;height:26px;padding:0;border:2px solid transparent;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);cursor:pointer}.theme-swatches button span{display:grid;place-items:center;height:100%;visibility:hidden;color:#fff;font-size:12px;font-weight:900;text-shadow:0 0 3px rgba(0,0,0,.6)}.theme-swatches button.selected{border-color:var(--text)}.theme-swatches button.selected span{visibility:visible}.theme-swatches button.custom-swatch{border-style:dashed}.theme-swatches button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.theme-preview{display:grid;gap:8px;padding:12px;border-radius:12px;border:1px solid rgba(0,0,0,.12)}.theme-preview>small{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;opacity:.75}.theme-preview>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.theme-preview>div>span{position:relative;display:grid;align-content:center;gap:2px;min-height:58px;padding:8px 10px;border-radius:10px;box-shadow:0 1px 2px rgba(0,0,0,.08)}.theme-preview em{font-size:11px;font-style:normal;opacity:.75}.theme-preview b{font-size:18px;font-weight:900}.theme-preview>div>span i{position:absolute;right:10px;bottom:10px;width:28px;height:5px;border-radius:3px}.theme-preview button{justify-self:center;padding:7px 12px;border:0;border-radius:8px;font:inherit;font-size:12px;font-weight:800;pointer-events:none}.theme-contrast-warn{margin:0;padding:8px 10px;border-radius:10px;border:1px solid #d97706;background:#fff7ed;color:#7c2d12;font-size:12.5px}.theme-actions{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:10px}.theme-add{display:grid;grid-template-columns:1fr auto;gap:6px;flex:1;min-width:220px;max-width:420px}.theme-add>span{grid-column:1/-1;font-size:12px;font-weight:800}.theme-add input{min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}.theme-add button{padding:8px 14px;border-radius:9px;font-weight:800}.theme-reset{padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;font-size:12.5px;font-weight:750;cursor:pointer}.theme-reset:disabled{opacity:.5;cursor:default}.theme-notice{margin:0;color:var(--muted);font-size:12.5px}@media (pointer:coarse){.theme-swatches{grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:8px}.theme-swatches button{width:40px;height:40px;justify-self:center}.theme-confirm button,.theme-mine-tools button{min-width:40px;height:40px}}@media (max-width:700px){.theme-settings{padding:14px 12px}.theme-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-color-grid{grid-template-columns:1fr}.theme-preview>div{grid-template-columns:1fr 1fr}.theme-add{max-width:none}.theme-add input{min-height:44px;font-size:16px}.theme-add button,.theme-reset{min-height:44px}}