
/* Reading comes first; editing tools are opened deliberately. */
#section-editor{padding-bottom:120px}
.editor-actionbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;background:var(--calm-panel,#fff);border:1px solid var(--ws-line,#e2e8f0);border-radius:14px}
.editor-actionbar>div:first-child{flex:1;min-width:0}.editor-actionbar>div:last-child{display:flex;gap:8px;align-items:center}
.editor-actionbar .workspace-secondary{font-size:13px;min-height:38px}
.editor-more{position:relative}.editor-more>summary{list-style:none;cursor:pointer;font-size:13px;padding:10px;color:var(--ws-muted,#64748b)}
.editor-more[open]>div{position:absolute;right:0;top:100%;z-index:30;display:flex;flex-direction:column;align-items:stretch;gap:10px;width:min(340px,85vw);padding:18px;border:1px solid var(--ws-line,#e2e8f0);border-radius:12px;background:var(--calm-panel,#fff);box-shadow:0 16px 48px #0f172a26}
#editor-save-actions{display:flex;flex-direction:column;gap:10px;margin:0}#editor-save-actions p{font-size:12px;line-height:1.6}
.editor-view-tabs{display:flex;gap:4px;width:fit-content;max-width:100%;padding:4px;border-radius:10px;background:var(--ws-soft,#f1f5f9)}
.editor-view-tabs button{padding:9px 18px;font-size:14px;border-radius:7px;white-space:nowrap;background:transparent;box-shadow:none;color:var(--ws-muted,#64748b)}
.editor-view-tabs button[aria-pressed=true]{background:var(--calm-panel,#fff);box-shadow:0 1px 3px #0f172a12;color:var(--ws-ink,#0f172a)}
#section-editor[data-editor-view=preview] #editor-pane-edit{display:none!important}
#section-editor[data-editor-view=preview] #editor-pane-preview{display:block!important;grid-column:1/-1;width:100%;max-width:860px;margin:0 auto}
#section-editor[data-editor-view=editor] #editor-pane-edit{display:block!important}
#section-editor[data-editor-view=editor] #editor-pane-preview{display:block!important}
#editor-pane-preview>div:first-child{background:transparent;min-height:44px}#editor-pane-preview>div:first-child .w-3{display:none}
#naver-preview-content{max-width:760px;padding:28px 36px}
#editor-pane-edit label,#editor-pane-edit input,#editor-pane-edit textarea{font-size:14px;line-height:1.65}
.article-writing-notes{font-size:12px;color:#64748b;margin:0 0 24px}.article-writing-notes>summary{cursor:pointer}.article-writing-notes[open]>div{margin-top:12px}
[data-reading-article] .naver-body-p{font-size:var(--article-size,16px);line-height:var(--article-leading,1.85);letter-spacing:-.2px}
[data-reading-article] .naver-quote-box{border-left-color:var(--article-accent);background:var(--article-surface)}
[data-reading-article] .naver-chapter-title{color:var(--article-accent);position:relative}
[data-article-presentation=photo] .naver-image-wrapper{margin:30px -8px}[data-article-presentation=photo]>div:first-child h1{text-align:center}
[data-article-presentation=story] .naver-chapter-title{font-weight:700}[data-article-presentation=story] .naver-body-p{margin-bottom:28px}
.article-edit-section{margin-left:auto;flex-shrink:0;padding:5px 9px;border:1px solid #dbe2ea;border-radius:7px;background:white;color:#475569;font-size:12px;font-weight:500;line-height:1.5}
.photo-toolbar-status.is-ready{color:#176b50;font-size:13px;margin:0!important}
#editor-publish-bar{position:fixed;bottom:0;left:var(--sidebar-width,216px);right:0;z-index:35;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 32px max(16px,env(safe-area-inset-bottom));background:var(--calm-panel,#fff);border-top:1px solid var(--ws-line,#e2e8f0);box-shadow:0 -4px 24px #0f172a08}
#editor-publish-bar>div:first-child{display:flex;flex-direction:column;gap:3px;font-size:14px}#editor-publish-bar>div:first-child span{font-size:12px;color:var(--ws-muted,#64748b)}
.editor-publish-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.editor-publish-actions #journey-save-status:empty{display:none}.editor-publish-actions #journey-save-status{font-size:12px;max-width:220px}.editor-publish-actions button{min-height:44px;font-size:14px!important}
.editor-design-panel{padding:24px;background:var(--calm-panel,#fff);border:1px solid var(--ws-line,#e2e8f0);border-radius:14px}.editor-design-panel>header{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:20px}.editor-design-panel h3{font-size:18px;font-weight:700}.editor-design-panel p{font-size:13px;color:var(--ws-muted,#64748b);margin-top:5px}
.article-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.article-preset{display:flex;flex-direction:column;gap:9px;padding:12px;border:2px solid #e2e8f0;border-radius:12px;text-align:left;background:#fff;color:#334155;font-size:13px}.article-preset[aria-pressed=true]{border-color:#7c3aed;background:#faf7ff}.article-preset-sample{height:230px;width:100%;overflow:hidden;padding:16px;background:var(--preset-surface);border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;gap:8px;pointer-events:none}.preset-category{font-size:10px;color:var(--preset-accent)}.article-preset-sample strong{font-size:14px;line-height:1.5;color:#0f172a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.article-preset-sample img{width:100%;height:76px;object-fit:cover;border-radius:4px}.preset-excerpt{font-size:11px;line-height:1.8;color:#64748b;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.article-preset-name{font-size:14px;font-weight:700;display:flex;gap:8px;align-items:center}.article-preset-name small{font-size:10px;color:#6d28d9;background:#ede9fe;padding:2px 5px;border-radius:4px}.preset-selection{font-size:12px;color:#6d28d9;font-weight:600}
[data-article-preset=photo] .article-preset-sample img{height:108px}[data-article-preset=story] .article-preset-sample{border-left:4px solid var(--preset-accent)}
#editor-cover-dialog{width:min(1080px,94vw);max-height:90dvh;border:0;border-radius:16px;padding:24px;background:var(--calm-panel,#fff);color:var(--ws-ink,#0f172a)}#editor-cover-dialog::backdrop{background:#0f172a80}#editor-cover-dialog>header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}#editor-cover-dialog h2{font-size:20px;font-weight:700}#editor-cover-content #cover-editor-card{box-shadow:none;padding:16px}
@media(max-width:1023px){#section-editor[data-editor-view=editor] #editor-pane-preview{display:none!important}.editor-actionbar{flex-wrap:wrap}.editor-actionbar>div:first-child{flex-basis:100%}}
@media(max-width:600px){#naver-preview-content{padding:20px}.editor-actionbar{padding:12px}.editor-actionbar>div:last-child{width:100%}.editor-actionbar .workspace-secondary{font-size:12px;padding:8px}.editor-view-tabs{width:100%}.editor-view-tabs button{width:50%;padding:10px}.article-preset-grid{grid-template-columns:1fr}.article-preset{display:grid;grid-template-columns:104px 1fr;gap:6px 14px}.article-preset-sample{grid-row:1/5;height:138px;padding:10px}.article-preset-sample strong{font-size:10px}.article-preset-sample img{height:36px}.article-preset-sample .preset-excerpt{font-size:9px;-webkit-line-clamp:2}[data-article-preset=photo] .article-preset-sample img{height:48px}.article-preset-name{flex-wrap:wrap;align-self:end}#editor-publish-bar{padding:10px 16px max(10px,env(safe-area-inset-bottom))}#editor-publish-bar>div:first-child{display:none}.editor-publish-actions{width:100%;gap:8px}.editor-publish-actions #btn-copy-naver{flex:1}.editor-publish-actions #journey-save-status{max-width:none;flex-basis:100%;white-space:normal}#editor-cover-dialog{padding:14px}.editor-design-panel{padding:16px}.editor-design-panel>header{flex-direction:column}}

@media(max-width:959px){#editor-publish-bar{left:0}}
#editor-cover-content #cover-editor-card{background:var(--calm-panel);color:var(--calm-ink)}
#editor-cover-content :is(h3,label,.text-slate-900,.text-slate-700){color:var(--calm-ink)}
#editor-cover-content :is(.text-slate-400,.text-slate-500,.text-slate-600){color:var(--calm-muted)}
#editor-cover-content input{background:var(--calm-input);color:var(--calm-ink);border-color:var(--calm-border-strong)}
:root[data-theme=dark] .article-preset{background:var(--calm-panel);color:var(--calm-ink);border-color:var(--calm-line)}
:root[data-theme=dark] .article-preset[aria-pressed=true]{background:var(--calm-selected);border-color:var(--calm-accent)}
:root[data-theme=dark] .preset-selection{color:var(--calm-accent)}
.editor-publish-actions #working-draft-status-editor:empty{display:none}
.editor-publish-actions #working-draft-status-editor{font-size:12px;max-width:220px}
@media(max-width:600px){.editor-publish-actions #working-draft-status-editor{max-width:none;flex-basis:100%}}
/* The article stays a readable white paper in either application theme. */
:root #naver-preview-content{color:#222;background:#fff;color-scheme:light}
:root #naver-preview-content [data-reading-article]{color:#222}
:root #naver-preview-content [data-reading-article] :is(h1,h2,h3,.naver-chapter-title,.text-slate-900,.text-slate-800,.naver-faq-q){color:#111}
:root #naver-preview-content [data-reading-article] :is(.naver-body-p,.naver-faq-a,.text-slate-700,.text-slate-600){color:#334155}
:root #naver-preview-content [data-reading-article] :is(.text-slate-500,.text-slate-400){color:#64748b}
:root #naver-preview-content [data-reading-article] button{color:#334155;background:#f8fafc;border-color:#cbd5e1}
:root #naver-preview-content .article-writing-notes{color:#64748b}
:root[data-theme=dark] #editor-cover-content :is(.ratio-btn,.bg-source-btn)[aria-pressed=false]{color:var(--calm-ink);background:var(--calm-soft);border-color:var(--calm-line)}
:root[data-theme=dark] .photo-toolbar-status.is-ready{color:#6ee7b7}
.editor-actionbar>div:last-child{flex-direction:row}
.editor-view-tabs button{display:flex;align-items:center;justify-content:center;gap:6px}
