:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#fafafa;--fg:#151515;--muted:#5c5c5c;--border:#c9c9c9;--accent:#5b3df5;--accent-fg:#fff;--error:#b3261e;--success:#1d7a46;--surface:#fff;--surface-2:#f0f0f0;--border-subtle:#e3e3e3;--bezel:#1c1c1e;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#121212;--fg:#f0f0f0;--muted:#a8a8a8;--border:#444;--accent:#8f7bff;--accent-fg:#101010;--error:#ff8a80;--success:#6fcf97;--surface:#1a1a1a;--surface-2:#262626;--border-subtle:#2e2e2e;--bezel:#2c2c2e}}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0;line-height:1.5}.page{max-width:28rem;margin:0 auto;padding:2rem 1rem}.form{flex-direction:column;gap:1rem;display:flex}label{flex-direction:column;gap:.25rem;font-weight:600;display:flex}input[type=text],input[type=email],input[type=url],textarea,select{border:1px solid var(--border);width:100%;color:inherit;font:inherit;background:0 0;border-radius:.5rem;padding:.65rem .75rem}fieldset{border:0;flex-direction:column;gap:.5rem;margin:0;padding:0;display:flex}legend{margin-bottom:.25rem;font-weight:600}.choice{flex-direction:row;align-items:center;gap:.5rem;font-weight:400}button{background:var(--accent);min-height:2.75rem;color:var(--accent-fg);font:inherit;cursor:pointer;border:0;border-radius:.5rem;padding:.7rem 1rem;font-weight:600}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.hint,.error{min-height:1.5em;margin:0;font-size:.9rem}.hint{color:var(--muted)}.error{color:var(--error)}textarea{resize:vertical}select{background:var(--surface);min-height:2.75rem}[aria-invalid=true]{border-color:var(--error)}.button-secondary{background:var(--surface);color:var(--fg);border:1px solid var(--border)}.button-secondary:hover{border-color:var(--fg)}.button-link{border-radius:8px;align-items:center;min-height:2.75rem;padding:0 16px;font-weight:600;text-decoration:none;display:inline-flex}.page-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.page-row p{margin:0}.page-address{overflow-wrap:anywhere;font-weight:600}.page-row .hint{font-size:.875rem}.page-actions{gap:12px;margin-top:8px;display:flex}.button-quiet{min-height:2.75rem;color:var(--fg);background:0 0;border-radius:8px;align-items:center;padding:0 12px;font-weight:600;text-decoration:none;display:inline-flex}.button-quiet:hover,.icon-button:hover,.drag-handle:hover{background:var(--surface-2);color:var(--fg)}.icon-button,.drag-handle{width:2.75rem;height:2.75rem;color:var(--muted);background:0 0;border-radius:8px;place-items:center;padding:0;display:grid}.drag-handle{cursor:grab;touch-action:none}.editor{min-height:100vh}.editor :is(input,textarea,select){scroll-margin-top:160px}.editor-sticky{z-index:10;background:var(--bg);border-bottom:1px solid var(--border-subtle);position:sticky;top:0}.topbar-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"back actions""handle pill";align-items:center;gap:4px 12px;padding:8px 16px;display:grid}.topbar-back{min-height:2.75rem;color:var(--muted);grid-area:back;justify-self:start;align-items:center;gap:4px;padding-right:8px;font-size:.875rem;font-weight:500;text-decoration:none;display:inline-flex}.topbar-back:hover{color:var(--fg)}.topbar-handle{text-overflow:ellipsis;white-space:nowrap;grid-area:handle;font-weight:600;overflow:hidden}.status-pill{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.8125rem;font-weight:500;display:inline-flex}.topbar-row .status-pill{grid-area:pill;justify-self:end}.topbar-actions{grid-area:actions;align-items:center;gap:8px;display:flex}.topbar-notice{margin:0;padding:0 16px 12px;font-size:.875rem}.topbar-notice-success{color:var(--success)}.topbar-notice-error{color:var(--error)}.status-pill:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.status-pill[data-status=saved]{color:var(--success)}.status-pill:is([data-status=invalid],[data-status=stale],[data-status=error]){color:var(--error)}.panel-switch{background:var(--surface-2);border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;margin:0 16px 12px;padding:4px;display:grid}.panel-switch button{color:var(--muted);background:0 0;font-weight:500}.panel-switch button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:0 0 0 1px var(--border-subtle)}.editor-body{padding:24px 16px 96px}.editor[data-panel=edit] .preview-column,.editor[data-panel=preview] .editor-column{display:none}.editor-section{margin:0 0 32px}.section-label{color:var(--muted);margin:0 0 8px;padding:0;font-size:.8125rem;font-weight:600}.card{border:1px solid var(--border-subtle);background:var(--surface);border-radius:12px;padding:16px}.stack{flex-direction:column;gap:16px;display:flex}.field{flex-direction:column;gap:4px;display:flex}.field-label-row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.field-label{font-size:.875rem;font-weight:500;display:block}.field-count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.75rem}.field-error{color:var(--error);margin:0;font-size:.8125rem}.swatches{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.swatch{cursor:pointer;gap:8px;font-size:.8125rem;font-weight:500;position:relative}.swatch input,.toggle input{opacity:0;width:1px;height:1px;margin:0;position:absolute}.swatch-sample{border:1px solid var(--border-subtle);background:var(--swatch-bg);border-radius:10px;flex-direction:column;justify-content:center;gap:4px;height:64px;padding:8px 12px;display:flex}.swatch input:checked+.swatch-sample{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.toggle-track{background:var(--border);border-radius:10px;flex:none;width:32px;height:20px;transition:background .15s;position:relative}.swatch input:focus-visible+.swatch-sample,.toggle input:focus-visible+.toggle-track{outline:3px solid var(--accent);outline-offset:2px}.swatch-line{background:var(--swatch-fg);opacity:.6;border-radius:2px;width:50%;height:4px;margin:0 auto 2px}.swatch-button{background:var(--swatch-button);border-radius:4px;height:8px}.swatch-name{text-align:center}.swatch-sample[data-outline] .swatch-button{border:2px solid var(--swatch-button);background:0 0}.preset-confirm{border:1px solid var(--border-subtle);margin:16px 0 0;padding:12px 16px;display:block}.preset-confirm legend{float:left;width:100%;margin:0 0 12px;padding:0;font-weight:500}.customize{margin-top:16px}.customize>summary{cursor:pointer;align-items:center;gap:8px;width:fit-content;min-height:2.75rem;font-size:.875rem;font-weight:600;display:flex}.customize>summary::marker{color:var(--muted)}.customize[open]>summary{margin-bottom:8px}.segmented{background:var(--surface-2);border-radius:12px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segmented button{min-height:2.5rem;color:var(--muted);background:0 0;padding:.5rem;font-weight:500}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:0 0 0 1px var(--border-subtle)}.color-field{gap:8px;display:flex}.color-field input[type=color]{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:.5rem;flex:none;width:2.75rem;height:2.75rem;padding:2px}.color-field input[type=text]{font-family:ui-monospace,Menlo,Consolas,monospace}.customize input[type=range]{width:100%;min-height:2.75rem;accent-color:var(--accent);margin:0}.customize .hint{min-height:0}.font-sample{background:var(--surface-2);overflow-wrap:anywhere;border-radius:8px;margin:4px 0 0;padding:12px;font-size:1.125rem}.block-list{flex-direction:column;gap:12px;margin:0 0 16px;padding:0;list-style:none;display:flex}.block-card{border:1px solid var(--border-subtle);background:var(--surface);border-radius:12px;position:relative}.block-card[data-dragging]{z-index:2;border-color:var(--accent);box-shadow:0 8px 24px #0000001f}.block-card-body{flex-direction:column;gap:16px;padding:16px;display:flex}.block-card[data-hidden] .block-card-body{opacity:.55}.block-card-head{border-bottom:1px solid var(--border-subtle);align-items:center;gap:4px;padding:4px;display:flex}.block-kind{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:.875rem;font-weight:600;overflow:hidden}.schedule-badge{background:var(--border-subtle);border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:600}.schedule-badge[data-status=live]{color:var(--success)}.schedule-badge[data-status=ended]{color:var(--muted)}.schedule-fields{grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:16px;display:grid}.block-card-actions{align-items:center;display:flex}.block-card-actions .icon-button:hover{color:var(--error)}.toggle{cursor:pointer;flex-direction:row;align-items:center;gap:6px;min-height:2.75rem;padding:0 6px;font-size:.8125rem;font-weight:500;position:relative}.block-card-body .toggle{align-self:flex-start;padding:0}.toggle-track:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:2px;left:2px}.toggle input:checked+.toggle-track{background:var(--accent)}.toggle input:checked+.toggle-track:after{transform:translate(12px)}.social-items{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.social-item{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.social-item>button{margin-top:calc(1.3125rem + 4px)}.add-block{border:1px dashed var(--border);border-radius:12px;flex-direction:column;gap:12px;padding:16px;display:flex}.add-block-title{margin:0 0 8px;font-size:.875rem;font-weight:600}.add-block-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.add-block-status:has(p,button){grid-column:1/-1}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.field-hint{color:var(--muted);margin:0;font-size:.8125rem}.file-picker{cursor:pointer;border-radius:.5rem;justify-content:center;align-items:center;min-height:2.75rem;padding:.7rem 1rem;font-weight:600;display:inline-flex;position:relative}.file-picker:focus-within{outline:3px solid var(--accent);outline-offset:2px}.upload-row{align-items:center;gap:16px;display:flex}.upload-preview{background:var(--surface-2);flex:none;overflow:hidden}.upload-preview img{object-fit:cover;width:100%;height:100%;display:block}.upload[data-variant=avatar] .upload-preview{border-radius:50%;width:96px;height:96px}.upload[data-variant=thumb] .upload-preview{border-radius:8px;width:40px;height:40px}.upload[data-variant=wide] .upload-row{flex-direction:column;align-items:stretch}.upload[data-variant=wide] .upload-preview{border-radius:8px}.upload[data-variant=wide] .upload-preview[data-empty]{display:none}.upload[data-variant=wide] .upload-preview img{height:auto;max-height:240px}.upload-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.upload-status:empty{position:absolute}.upload-status p{min-height:0;font-size:.8125rem}.upload-retry{align-self:flex-start}.empty-note{color:var(--muted);margin:0 0 16px;font-size:.875rem}.notice{border:1px solid var(--border-subtle);background:var(--surface);border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;padding:12px 16px;display:flex}.notice p{margin:0}.notice-error{border-color:var(--error)}.phone-frame{border:10px solid var(--bezel);background:var(--surface);border-radius:44px;width:min(410px,100%);height:min(800px,100dvh - 200px);min-height:480px;margin:0 auto;overflow:hidden}.phone-frame iframe{border:0;width:100%;height:100%;display:block}.preview-empty{height:100%;color:var(--muted);text-align:center;place-items:center;margin:0;padding:24px;font-size:.875rem;display:grid}.toast{bottom:calc(16px + env(safe-area-inset-bottom));z-index:20;background:var(--fg);max-width:calc(100% - 32px);color:var(--bg);border-radius:12px;align-items:center;gap:12px;padding:4px 4px 4px 16px;display:flex;position:fixed;left:50%;transform:translate(-50%)}.toast-action{color:inherit;background:0 0;text-decoration:underline}.dialog{width:calc(100% - 32px);max-width:24rem;color:var(--fg);border:1px solid var(--border-subtle);background:var(--surface);border-radius:16px;padding:24px}.dialog::backdrop{background:#0006}.dialog p{margin:0 0 24px;font-weight:500}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.preset-confirm .dialog-actions{clear:both;flex-wrap:wrap}@media (width>=480px){.add-block-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=960px){.topbar-row{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"back handle pill actions";padding:8px 32px}.panel-switch{display:none}.editor-body{justify-content:center;align-items:flex-start;gap:32px;padding:32px 32px 96px;display:flex}.editor[data-panel] :is(.editor-column,.preview-column){display:block}.editor-column{flex:auto;min-width:0;max-width:560px}.preview-column{flex:none;position:sticky;top:96px}.phone-frame{width:410px;height:800px}}@media (prefers-reduced-motion:reduce){.toggle-track,.toggle-track:after{transition:none}}.subscribers-head{flex-direction:column;gap:12px;display:flex}.subscribers-head h1,.subscribers-head .hint{margin:0}.subscriber-table{border-collapse:collapse;width:100%}.subscriber-table thead{display:none}.subscriber-table tr{border-bottom:1px solid var(--border-subtle);flex-direction:column;gap:4px;padding:12px 0;display:flex}.subscriber-table td{text-align:left;justify-content:space-between;gap:12px;display:flex}.subscriber-table td[data-label]:before{content:attr(data-label);color:var(--muted)}.subscriber-email{overflow-wrap:anywhere;font-weight:600}.subscriber-confirm{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.subscriber-confirm p{overflow-wrap:anywhere;flex-basis:100%;margin:0}@media (width>=640px){.subscribers-head{flex-direction:row;justify-content:space-between;align-items:center}.subscriber-table thead{display:table-header-group}.subscriber-table th,.subscriber-table td{text-align:left;padding:12px 8px}.subscriber-table tr{padding:0;display:table-row}.subscriber-table td{border-bottom:1px solid var(--border-subtle);display:table-cell}.subscriber-table td[data-label]:before{content:none}}.page-wide{max-width:56rem}.range-control{border:1px solid var(--border-subtle);background:var(--surface-2);border-radius:10px;flex-direction:row;align-self:flex-start;gap:0;margin:0;padding:2px;display:inline-flex}.range-option{margin:0;display:flex;position:relative}.range-option input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.range-option span{white-space:nowrap;border-radius:8px;padding:6px 12px;font-size:.875rem}.range-option input:checked+span{background:var(--surface);box-shadow:0 0 0 1px var(--border-subtle);font-weight:600}.range-option input:focus-visible+span{outline:2px solid var(--accent);outline-offset:1px}.stat-tiles{grid-template-columns:repeat(2,1fr);gap:12px;margin:0;padding:0;list-style:none;display:grid}.stat-tile{flex-direction:column;gap:4px;display:flex}.stat-tile strong{font-size:1.5rem}.chart-scroll{overflow-x:auto}.daily-chart{width:100%;min-width:600px;height:auto;display:block}.bar-views{fill:var(--accent)}.bar-clicks{fill:var(--success)}.chart-label{fill:var(--muted);font-size:12px}.chart-legend{align-items:center;gap:8px;margin:8px 0 0;display:flex}.legend-swatch{border-radius:2px;width:10px;height:10px;display:inline-block}.legend-views{background:var(--accent)}.legend-clicks{background:var(--success)}.analytics-table{border-collapse:collapse;width:100%}.analytics-table th,.analytics-table td{border-bottom:1px solid var(--border-subtle);text-align:right;font-variant-numeric:tabular-nums;padding:10px 8px}.analytics-table th:first-child{overflow-wrap:anywhere;text-align:left;font-weight:400}.analytics-table thead th{color:var(--muted);font-size:.8125rem;font-weight:600}.bar-track{background:var(--surface-2);border-radius:2px;height:4px;margin-top:6px;display:block}.bar-fill{background:var(--accent);border-radius:2px;height:100%;display:block}.tabs{border-bottom:1px solid var(--border-subtle);gap:4px;display:flex;overflow-x:auto}.tab{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:8px 12px}.tab[aria-selected=true],.tab[aria-current=page]{border-bottom-color:var(--accent);color:var(--fg);font-weight:600}@media (width>=640px){.stat-tiles{grid-template-columns:repeat(4,1fr)}}.notice-banner{border:1px solid var(--error);background:var(--surface);border-radius:12px;padding:16px}.notice-banner h2{margin:0}.qr-dialog{max-width:28rem}.qr-dialog h2{margin:0 0 16px}.qr-preview{width:100%;max-width:16rem;height:auto;margin:16px auto;display:block}.qr-hint{margin:4px 0 0;font-size:.875rem;font-weight:400}.qr-url{overflow-wrap:anywhere;font-weight:400}.qr-dialog .dialog-actions{flex-wrap:wrap}.export-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.export-row .hint{margin:0}.danger-zone{border:1px solid var(--error);background:var(--surface);border-radius:12px;padding:16px}.danger-zone h2{margin:0}.button-danger{background:var(--error);color:var(--surface)}
