/* Scoped to the editor. The public site and dashboard retain their existing design. */
.editor-destination { padding: 12px 0 4px; }
#preview-area { flex-direction:column; justify-content:flex-start; padding:66px 16px 36px; min-width:0; }
#preview-area .preview-stage { flex:1; min-height:0; align-items:center; }
#preview-outer,#post-card { overflow:clip; }
#preview-area.is-website .preview-stage { flex:none; }
.editor-toolbar,.editor-slide-strip,.editor-message { flex-shrink:0; }
.editor-destination .mode-note { display:none; }
.editor-destination [data-output-mode="story"] { display:none; }
.editor-controls { padding:14px; margin-bottom:12px; border:1px solid var(--border); border-radius:16px; background:var(--panel-bg); }
.editor-controls label { display:block; font-size:12px; font-weight:700; margin:12px 0 5px; }
.editor-controls .editor-toggle { display:flex; gap:8px; align-items:center; }
.editor-controls .editor-toggle input { width:16px; height:16px; accent-color:var(--accent-ui); }
.editor-content-label { display:block; margin-top:18px; }
.editor-controls select,.editor-controls textarea { width:100%; border:1px solid var(--border); background:var(--bg-input); border-radius:8px; padding:8px; color:var(--text); font:inherit; font-size:13px; }
.editor-controls textarea { resize:vertical; }
.editor-controls p { font-size:12px; line-height:1.5; color:var(--muted); margin:8px 0; }
.editor-controls button,.editor-toolbar button,.editor-slide-strip button { border:1px solid var(--border); border-radius:9px; padding:7px 10px; background:var(--bg-input); color:var(--text); font:600 12px 'Source Sans 3',sans-serif; cursor:pointer; }
.editor-controls button:disabled,.editor-toolbar button:disabled { opacity:.45; cursor:default; }
.editor-toolbar { display:flex; gap:6px; flex-wrap:wrap; align-items:center; justify-content:center; padding:6px 12px; }
.editor-toolbar button[aria-pressed="true"],.editor-slide-strip button[aria-selected="true"] { border-color:var(--accent-ui); background:#fce3ef; }
.editor-slide-strip { display:flex; justify-content:center; gap:7px; padding:8px; flex-wrap:wrap; }
.editor-slide-strip button { min-width:76px; text-align:left; }
.editor-slide-strip small { display:block; font-weight:400; color:var(--muted); }
.editor-message { font-size:12px; color:#8b5210; text-align:center; padding:4px 12px; min-height:22px; }
.editor-legacy-text { display:none !important; }
#post-card [data-editor-field],#website-module [data-editor-field] { white-space:pre-wrap; overflow-wrap:anywhere; }
#post-card [contenteditable="true"]:hover,#website-module [contenteditable="true"]:hover { outline:2px dashed #eb5a99; outline-offset:5px; }
#post-card [contenteditable="true"]:focus,#website-module [contenteditable="true"]:focus { outline:2px solid #eb5a99; outline-offset:5px; }
#post-card [data-editor-field]:empty::before { content:attr(data-placeholder); color:#958d88; opacity:.6; }
.editor-position-mode [data-movable] { cursor:grab; touch-action:none; outline:2px dashed #eb5a9970; outline-offset:5px; }
.editor-position-mode [data-movable]:active { cursor:grabbing; outline-color:#eb5a99; }
#editor-text-slot { flex:1; display:flex; flex-direction:column; justify-content:center; min-height:0; }
#editor-text-card { display:flex; flex-direction:column; gap:30px; }
#editor-slide-body { font-size:56px; line-height:1.25; font-weight:600; }
#editor-slide-attribution { font-size:28px; line-height:1.4; }
#editor-text-card[data-kind="quote"] #editor-slide-body { font-style:italic; }
#editor-text-card[data-kind="quote"] #editor-slide-body::before { content:'“'; display:block; font-size:110px; line-height:.7; color:var(--accent-ui); }
#post-card[data-composition="mixed"] #editor-text-slot { flex:0 0 auto; padding-top:12px; }
#post-card[data-composition="mixed"] #editor-text-card { gap:12px; }
#post-card[data-composition="mixed"] #editor-text-card[data-kind="quote"] #editor-slide-body::before { font-size:64px; }
#editor-text-card[data-kind="context"] #editor-slide-body { font-weight:400; line-height:1.4; }
#post-chart-group { margin-top:0; }
.editor-guide { position:absolute; background:#eb5a99; pointer-events:none; z-index:30; }
#editor-guide-x { width:1px; top:20px; bottom:20px; left:50%; }
#editor-guide-y { height:1px; left:20px; right:20px; top:50%; }
.editor-exporting [contenteditable],.editor-exporting [data-movable] { outline:none !important; box-shadow:none !important; }
.editor-exporting [data-editor-field]:empty::before { content:none !important; }
.editor-exporting .editor-guide { display:none !important; }
#post-chart-group { align-self:center; }
#post-content { gap:24px; }
#post-content .post-top-group { flex-shrink:0; }
[hidden] { display:none !important; }
@media(max-width:900px) { #preview-area { padding:66px 8px 70px; } .editor-toolbar { padding:4px; gap:4px; } .editor-toolbar button { font-size:11px; padding:5px 7px; } }
