html[data-theme] body[data-page-layout] .theme-library{max-width:1280px;padding-block:48px 32px}.theme-library [hidden]{display:none}.theme-library-intro{display:flex;align-items:center;justify-content:space-between;gap:36px;margin-bottom:38px}html[data-theme] body[data-page-layout] .theme-library .theme-eyebrow{color:var(--ui-accent);font:750 .7rem/1.4 var(--font-body,sans-serif);letter-spacing:.15em;margin:0 0 12px;text-transform:uppercase}html[data-theme] body[data-page-layout] .theme-library h1{font-size:clamp(2.4rem,5vw,4rem);line-height:1.05;letter-spacing:-.045em;margin:0 0 18px}.theme-library h1 span{color:var(--ui-accent)}.theme-library .theme-library-lead{font-size:1rem;line-height:1.7;color:var(--ui-subtle);max-width:570px;margin:0}.theme-current-preview{display:flex;align-items:center;gap:18px;flex:0 0 335px;text-align:left;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:14px;padding:14px;font:inherit;cursor:pointer}.theme-current-preview>img{width:132px;height:96px;object-fit:cover;object-position:top;border:1px solid var(--ui-border);border-radius:7px}.theme-current-preview>span{display:flex;flex-direction:column;gap:6px;min-width:0}.theme-current-preview small{font-size:.63rem;letter-spacing:.09em;color:var(--ui-subtle);font-weight:750}.theme-current-preview strong{font-size:.95rem;line-height:1.35}.theme-current-preview>span>span{font-size:.72rem;color:var(--ui-accent)}.theme-current-preview:hover{border-color:var(--ui-accent)}.theme-library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;border-block:1px solid var(--ui-border);padding-block:16px}.theme-filters{display:flex;gap:4px;flex-wrap:wrap}.theme-filters button,.theme-device-switch button{font:700 .8rem/1.3 var(--font-body,sans-serif);min-height:44px;border:1px solid transparent;background:transparent;color:var(--ui-subtle);padding:10px 14px;border-radius:7px;cursor:pointer}.theme-filters button[aria-pressed="true"],.theme-device-switch button[aria-pressed="true"]{background:var(--ui-raised);border-color:var(--ui-border);color:var(--ui-text)}.theme-filters button:hover,.theme-device-switch button:hover{color:var(--ui-accent)}.theme-search{display:flex;align-items:center;gap:8px;min-width:190px;max-width:240px;width:100%;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:8px;padding:0 12px;color:var(--ui-subtle)}.theme-search svg{fill:none;stroke:currentColor;stroke-width:1.7;flex:none}html[data-theme] body[data-page-layout] .theme-search input{width:100%;min-width:0;min-height:44px;margin:0;padding:9px 0;border:0;outline:0;box-shadow:none;background:transparent;color:var(--ui-text);font:400 1rem/1.4 var(--font-body,sans-serif)}.theme-search:focus-within{outline:2px solid var(--ui-accent);outline-offset:3px}.theme-library-results{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:58px}.theme-library-results p{font-size:.75rem;line-height:1.5;color:var(--ui-subtle);margin:12px 0}.theme-library-results strong{font-weight:700;color:var(--ui-text)}.theme-library-results [data-gallery-status]{color:var(--ui-accent);text-align:right}.theme-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.theme-card{min-width:0;overflow:hidden;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:14px;display:flex;flex-direction:column;transition:border-color .15s ease,box-shadow .15s ease}.theme-card:hover{border-color:var(--ui-accent);box-shadow:0 10px 26px #0002}.theme-card.is-current{border-color:var(--ui-accent)}.theme-card-preview{display:block;position:relative;width:100%;padding:0;border:0;border-radius:0;background:var(--ui-raised);cursor:zoom-in;overflow:hidden;aspect-ratio:8/5;isolation:isolate}.theme-card-preview>picture{position:absolute;inset:0;display:block}.theme-card-preview>picture>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}.theme-card-expand{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;gap:10px;background:#0a1322e8;color:#fff;border:1px solid #ffffff40;border-radius:6px;padding:7px 10px;font:650 .7rem/1.4 var(--font-body,sans-serif)}.theme-card-body{display:flex;flex-direction:column;flex:1;padding:20px}.theme-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px;font:600 .68rem/1.4 var(--font-body,sans-serif);color:var(--ui-subtle)}.theme-current-tag{color:var(--ui-accent);font-weight:750}html[data-theme] body[data-page-layout] .theme-library .theme-card h2{font-size:1.12rem;line-height:1.3;letter-spacing:-.025em;margin:9px 0 8px}.theme-card-body>p{font-size:.82rem;line-height:1.6;color:var(--ui-subtle);margin:0 0 20px;flex:1}.theme-card-apply{align-self:flex-start;min-width:130px;min-height:44px;padding:10px 16px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-raised);color:var(--ui-text);font:750 .8rem/1.3 var(--font-body,sans-serif);cursor:pointer}.theme-card-apply:hover{border-color:var(--ui-accent);color:var(--ui-accent)}.theme-card-apply[aria-pressed="true"]{border-color:var(--ui-accent);color:var(--ui-accent);background:var(--ui-surface)}.theme-card-apply:disabled{opacity:.6;cursor:wait}.theme-empty{padding:56px 20px;text-align:center;border:1px dashed var(--ui-border);border-radius:14px}.theme-empty p,.theme-library-note{color:var(--ui-subtle);font-size:.8rem;line-height:1.6}.theme-library-note{margin:30px 0 0}.theme-preview-dialog{width:min(1080px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 28px 100px #0008;overflow:auto}.theme-preview-dialog::backdrop{background:#020812d9;backdrop-filter:blur(5px)}.theme-preview-dialog[open]{display:flex;flex-direction:column}html:has(.theme-preview-dialog[open]){overflow:hidden}.theme-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px 12px;flex:none}.theme-preview-heading .theme-eyebrow{margin-bottom:5px}html[data-theme] body[data-page-layout] .theme-library .theme-preview-heading h2{font-size:1.55rem;line-height:1.3;margin:0}.theme-preview-heading>button{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-raised);color:var(--ui-text);font:400 1.5rem/1 sans-serif;cursor:pointer}.theme-preview-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 26px 16px;flex:none}.theme-preview-controls>p{max-width:600px;margin:0;color:var(--ui-subtle);font-size:.82rem;line-height:1.6}.theme-device-switch{display:flex;flex:none;padding:3px;border:1px solid var(--ui-border);border-radius:9px}.theme-device-switch button{min-height:38px;font-size:.75rem;padding:8px 13px}.theme-preview-canvas{height:min(62dvh,640px);flex:1 1 auto;min-height:160px;overflow:hidden;background:var(--bg);padding:20px;border-block:1px solid var(--ui-border);display:flex;justify-content:center;align-items:center}html[data-theme] body[data-page-layout] .theme-library .theme-preview-canvas>img{width:100%;height:100%;max-width:1280px;display:block;flex:none;object-fit:contain;border-radius:5px}html[data-theme] body[data-page-layout] .theme-library .theme-preview-dialog[data-device="mobile"] .theme-preview-canvas>img{width:auto;max-width:100%}html[data-theme] body[data-page-layout] .theme-library .theme-preview-canvas>[hidden]{display:none}.theme-preview-canvas>p{color:var(--ui-subtle);padding:40px;line-height:1.6;text-align:center}.theme-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 26px;flex:none}.theme-preview-footer>span{color:var(--ui-subtle);font-size:.72rem;line-height:1.5}.theme-preview-footer>button{flex:none;padding:12px 22px;min-height:44px;border:1px solid var(--ui-accent);border-radius:7px;background:var(--ui-accent);color:var(--ui-on-accent,#07111e);font:750 .83rem/1.3 var(--font-body,sans-serif);cursor:pointer}@media(max-width:1080px){.theme-gallery{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.theme-library-toolbar{align-items:flex-start;flex-direction:column}.theme-search{max-width:none}.theme-current-preview{flex-basis:300px;gap:12px}.theme-current-preview>img{width:110px;height:88px}}@media(max-width:650px){html[data-theme] body[data-page-layout] .theme-library{padding-block:28px 24px}.theme-library-intro{display:block;margin-bottom:26px}.theme-library .theme-library-lead{font-size:.9rem}.theme-current-preview{width:100%;margin-top:18px;padding:10px;gap:14px}.theme-current-preview>img{width:80px;height:52px}.theme-current-preview>span{gap:4px}.theme-current-preview strong{font-size:.88rem}.theme-filters{gap:5px}.theme-filters button{font-size:.75rem;padding:9px 11px}.theme-library-toolbar{gap:12px}.theme-gallery{grid-template-columns:1fr;gap:20px}.theme-card-body{padding:18px}.theme-card-body>p{margin-bottom:16px}.theme-card-apply{width:100%}.theme-library-results{align-items:flex-start;flex-direction:column;gap:0;padding:9px 0}.theme-library-results p{margin:4px 0}.theme-library-results [data-gallery-status]{text-align:left}.theme-preview-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.theme-preview-heading{padding:16px 16px 12px;gap:10px}.theme-preview-controls{padding:0 16px 12px;display:block}.theme-device-switch{width:max-content;margin-top:12px}.theme-device-switch button{min-height:44px}.theme-preview-canvas{padding:12px}.theme-preview-footer{padding:14px 16px;gap:14px;flex-wrap:wrap}.theme-preview-footer>button{width:100%}.theme-preview-footer>span{font-size:.7rem}.theme-preview-heading .theme-eyebrow{font-size:.65rem}}@media(prefers-reduced-motion:reduce){.theme-card{transition:none}}.theme-preview-heading button[data-preview-close]{width:auto;min-width:44px;min-height:44px;padding-inline:12px;font-size:.875rem}