.comfort-open{white-space:nowrap;min-height:42px}
.comfort-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:26px;background:var(--sec-forms-background,var(--surface));color:var(--sec-forms-text,var(--text));border:1px solid var(--border);border-radius:24px;box-shadow:0 28px 90px #0005;overflow:auto}
.comfort-dialog::backdrop{background:#071e24a6;backdrop-filter:blur(5px)}
.comfort-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.comfort-head h2{margin:4px 0 0;font-size:1.8rem;line-height:1.2}
.comfort-eyebrow{color:var(--muted);font-size:.78rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.comfort-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:18px}
.comfort-tabs button{flex:1;padding:12px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.comfort-tabs button[aria-selected=true]{background:var(--accent);border-color:var(--primary);color:var(--text)}
.comfort-tabs span{font-size:.8em;font-variant-numeric:tabular-nums;margin-left:6px}
.comfort-note{color:var(--muted);font-size:.88rem;line-height:1.6;margin:16px 0}
.comfort-saved-list{display:grid;gap:10px}
.comfort-saved-item{display:flex;gap:16px;align-items:center;padding:15px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.comfort-saved-item a{flex:1;min-width:0;color:var(--text);font-weight:650;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.comfort-saved-item a:hover{text-decoration:underline}
.comfort-saved-item button{flex-shrink:0}
.comfort-empty{text-align:center;padding:30px 12px;color:var(--muted)}
.comfort-empty>span{display:block;font-size:3rem;color:var(--primary)}
.comfort-empty h3{color:var(--text);font-size:1.2rem;margin:12px 0}
.comfort-empty p{line-height:1.7}
.comfort-fieldset{padding:0;border:0;margin:24px 0}
.comfort-fieldset legend{font-weight:700;margin-bottom:12px}
.comfort-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.comfort-options label{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;padding:13px;cursor:pointer}
.comfort-options label:has(input:checked){border-color:var(--primary);background:var(--accent)}
.comfort-options input,.comfort-motion input{width:18px;height:18px;accent-color:var(--primary);flex-shrink:0;margin:0}
.comfort-select{display:grid;gap:10px;font-weight:700;margin:24px 0}
.comfort-select select{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:12px;font:inherit;width:100%}
.comfort-motion{display:flex;align-items:flex-start;gap:12px;margin:24px 0;cursor:pointer}
.comfort-motion small{display:block;font-size:.85rem;color:var(--muted);margin-top:6px;line-height:1.5}
.comfort-save{margin-left:auto;white-space:nowrap}
.comfort-save[aria-pressed=true]{color:var(--primary);background:var(--accent)}
.post-foot{flex-wrap:wrap}
.comfort-draft{border:1px solid var(--sec-forms-border,var(--border));background:var(--accent);color:var(--text);border-radius:12px;padding:12px 15px;margin:0 0 18px;line-height:1.5}
.comfort-draft p{font-size:.9rem;margin:6px 0 12px}
.comfort-draft small{display:block;font-size:.83rem;line-height:1.5}
.comfort-draft [data-draft-status]:empty{display:none}
.post-submit-zone .post-submit-desktop{display:inline-flex!important;justify-content:center}
html[data-reader-active="1"] .block{--block-bg:var(--surface)!important;--block-text:var(--text)!important;--block-button:var(--primary)!important;--block-button-ink:var(--primary-ink)!important}
html[data-reader-active="1"] input,html[data-reader-active="1"] textarea,html[data-reader-active="1"] select{background-color:var(--surface);color:var(--text);border-color:var(--border)}
html[data-reader-active="1"] .muted,html[data-reader-active="1"] .field-help{color:var(--muted)}
html[data-reader-motion="reduce"] *,html[data-reader-motion="reduce"] *::before,html[data-reader-motion="reduce"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.comfort-dialog :focus-visible,.comfort-open:focus-visible,.comfort-save:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
@media(max-width:760px){.header-actions{gap:6px}.header-actions .comfort-open{padding:8px 10px;font-size:.88rem;display:inline-flex}.comfort-dialog{padding:20px 16px;border-radius:20px;max-height:calc(100dvh - 20px)}.comfort-head h2{font-size:1.6rem}.comfort-save{font-size:.82rem}.post-submit-zone .post-submit-desktop{width:100%;min-height:48px;margin-bottom:18px}.post-send-gesture{max-width:320px;margin-inline:auto}.comfort-options label{padding:12px 8px;font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.comfort-dialog *,.comfort-dialog *::before,.comfort-dialog *::after{animation:none!important;transition:none!important}}
