/* Embed customizer page (/tools/<slug>/embed/). Preview first on phones, preview left and settings right from 1000 px. */
.cz-page{max-width:1240px;margin:0 auto;padding:16px 16px 48px}
.cz-head h1{margin:8px 0 6px;font-size:clamp(26px,4vw,38px)}
.cz-head p{max-width:720px;margin:0 0 20px;color:#4f5b6b}
.cz{display:grid;gap:20px}
@media (min-width:1000px){.cz{grid-template-columns:minmax(0,1fr) 360px;align-items:start}.cz-panel{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}}
.cz-preview{min-width:0}
.cz-widths{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.cz-chip,.cz-preset{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #d9d2c6;background:#fff;color:#172033;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.cz-chip[aria-pressed=true],.cz-preset[aria-pressed=true]{border-color:#1550b8;background:#e8f0ff;color:#0f3f94}
.cz-stage{padding:16px;border-radius:16px;background:repeating-linear-gradient(45deg,#f3eee5 0 12px,#efe9de 12px 24px);overflow:auto}
.cz-frame{display:block;max-width:100%;margin:0 auto;border:0;background:transparent;transition:width .2s}
.cz-panel{display:grid;gap:16px;padding:16px;border:1px solid #e8e1d6;border-radius:16px;background:#fff}
.cz-group{display:grid;gap:12px;margin:0;padding:0;border:0;min-width:0}
.cz-group legend{padding:0;margin-bottom:4px;font-weight:700;font-size:17px;color:#172033}
.cz-presets{display:flex;flex-wrap:wrap;gap:8px}
.cz-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cz-color{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer}
.cz-color input{width:44px;height:36px;padding:2px;border:1px solid #d9d2c6;border-radius:8px;background:#fff;cursor:pointer}
.cz-field{display:grid;gap:6px;font-size:14px;font-weight:600;color:#172033}
.cz-field select,.cz-field textarea{min-height:44px;padding:8px 10px;border:1px solid #d9d2c6;border-radius:10px;font:inherit;font-weight:400;background:#fff;color:#172033}
.cz-field textarea{font-family:ui-monospace,Menlo,monospace;font-size:13px;resize:vertical}
.cz-field input[type=range]{width:100%;min-height:44px;accent-color:#1550b8}
.cz-field output{font-weight:400;color:#4f5b6b}
.cz-seg{display:flex;flex-wrap:wrap;gap:6px}
.cz-seg label{position:relative}
.cz-seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.cz-seg span{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border:1px solid #d9d2c6;border-radius:10px;background:#fff;font-weight:500}
.cz-seg input:checked+span{border-color:#1550b8;background:#e8f0ff;color:#0f3f94;font-weight:700}
.cz-seg input:focus-visible+span,.cz-check input:focus-visible+span{outline:3px solid #1550b8;outline-offset:2px}
.cz-check{display:flex;align-items:center;gap:10px;min-height:40px;font-size:15px}
.cz-check input{width:20px;height:20px;accent-color:#1550b8}
.cz-warn{margin:0;padding:10px 12px;border-radius:10px;background:#fff1e6;color:#7a3300;font-size:14px}
.cz-note,.cz-status{margin:0;font-size:14px;color:#4f5b6b}
.cz-status:empty{display:none}
.cz-copy{width:100%}
.cz-copy[aria-disabled=true]{opacity:.7}
.cz-link{justify-self:start;min-height:40px;padding:0;border:0;background:none;color:#1550b8;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
.cz-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cz-help{max-width:760px;margin-top:32px}
.cz-help li{margin-bottom:8px}
html[data-theme=dark] .cz-head p,html[data-theme=dark] .cz-note,html[data-theme=dark] .cz-status,html[data-theme=dark] .cz-field output{color:#a9b3c2}
html[data-theme=dark] .cz-panel,html[data-theme=dark] .cz-chip,html[data-theme=dark] .cz-preset,html[data-theme=dark] .cz-seg span,html[data-theme=dark] .cz-field select,html[data-theme=dark] .cz-field textarea{background:#1a1f29;border-color:#2c3547;color:#eef2f8}
html[data-theme=dark] .cz-group legend,html[data-theme=dark] .cz-field{color:#eef2f8}
html[data-theme=dark] .cz-chip[aria-pressed=true],html[data-theme=dark] .cz-preset[aria-pressed=true],html[data-theme=dark] .cz-seg input:checked+span{background:#23406f;border-color:#7aa7ff;color:#eef2f8}
html[data-theme=dark] .cz-stage{background:repeating-linear-gradient(45deg,#161a22 0 12px,#1a1f29 12px 24px)}
html[data-theme=dark] .cz-link{color:#7aa7ff}
html[data-theme=dark] .cz-warn{background:#3a2412;color:#ffd7b5}
