.header-actions.svelte-qcodbz{display:flex;align-items:center;gap:8px}.mode-badge.svelte-qcodbz{font-size:.68rem;font-weight:600;letter-spacing:.1em;color:var(--ui-text);background:#ffffff0f;border:1px solid var(--ui-surface-active);padding:2px 8px;border-radius:var(--radius-xs);text-transform:uppercase}.settings-body.svelte-qcodbz{padding:12px 14px 32px;display:flex;flex-direction:column;gap:16px}.settings-section.svelte-qcodbz{display:flex;flex-direction:column;gap:10px;padding:12px 12px 14px;border:1px solid #1a1a22;border-radius:var(--radius-md);background:#0c0c10}.settings-section.current.svelte-qcodbz{border-color:var(--ui-surface-active);background:#0e0e14}.section-head.svelte-qcodbz{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title.svelte-qcodbz{margin:0;font-size:.85rem;font-weight:600;color:var(--ui-text);letter-spacing:.02em;display:flex;align-items:baseline;gap:8px}.section-hint.svelte-qcodbz{font-size:.68rem;font-weight:400;color:#55555c;letter-spacing:.02em}.reset-btn.svelte-qcodbz{background:transparent;border:1px solid var(--ui-surface-hover);color:var(--ui-text-dim);font-size:.72rem;padding:3px 8px;border-radius:var(--radius-xs);cursor:pointer;transition:color var(--dur-fast) ease,border-color var(--dur-fast) ease,background var(--dur-fast) ease}.reset-btn.svelte-qcodbz:hover{color:var(--ui-text-strong);border-color:var(--ui-border-mid);background:var(--ui-border)}.row.svelte-qcodbz{display:flex;flex-direction:column;gap:4px}.row-label.svelte-qcodbz{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:.78rem;color:var(--ui-text-soft)}.row-value.svelte-qcodbz{font-variant-numeric:tabular-nums;font-size:.72rem;color:#6a6a72;letter-spacing:.02em}.row-select.svelte-qcodbz{width:100%;background:#101014;border:1px solid var(--ui-border-strong);border-radius:var(--radius-sm);padding:5px 9px;color:var(--ui-text);font-size:.82rem;font-family:inherit;outline:none;transition:border-color var(--dur-fast) ease}.row-select.svelte-qcodbz:focus{border-color:var(--ui-border-focus)}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz){-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:18px;background:transparent;cursor:pointer;outline:none;--pct: 0%;--gold: var(--ui-accent);--gold-bright: #e8c65a;--track: #1e1e26}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz)::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,var(--gold) 0%,var(--gold) var(--pct),var(--track) var(--pct),var(--track) 100%);border-radius:2px}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz)::-moz-range-track{height:3px;background:var(--track);border-radius:2px;border:none}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz)::-moz-range-progress{height:3px;background:var(--gold);border-radius:2px}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz)::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;margin-top:-4.5px;background:var(--gold);border-radius:var(--radius-full);border:none;box-shadow:0 0 0 1px #00000059;transition:background var(--dur-fast) ease,transform var(--dur-fast) ease}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz)::-moz-range-thumb{width:12px;height:12px;background:var(--gold);border-radius:var(--radius-full);border:none;box-shadow:0 0 0 1px #00000059;transition:background var(--dur-fast) ease,transform var(--dur-fast) ease}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz):hover::-webkit-slider-thumb{background:var(--gold-bright);transform:scale(1.1)}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz):hover::-moz-range-thumb{background:var(--gold-bright);transform:scale(1.1)}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz):focus-visible::-webkit-slider-thumb{background:var(--gold-bright);box-shadow:0 0 0 2px #d4af3759}.row.svelte-qcodbz input[type=range]:where(.svelte-qcodbz):focus-visible::-moz-range-thumb{background:var(--gold-bright);box-shadow:0 0 0 2px #d4af3759}:root{--top-bar-h: 60px;--mo-footer-peek: 32px;--font-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;--font-body-mo: var(--font-body);--text-primary: #ececf0;--body-size: 17px;--body-line: 1.9;--body-tracking: 0em;--body-max: 920px;--body-size-mo: 14px;--body-line-mo: 1.7;--body-tracking-mo: -.01em;--body-max-mo: 920px;--ui-surface-rail: #0d0d0d;--ui-surface: #0f0f0f;--ui-surface-raised: #131313;--ui-surface-elevated: #171717;--ui-surface-hover: #232323;--ui-surface-active: #2a2a2a;--ui-border: #1c1c1c;--ui-border-rail: #1f1f1f;--ui-border-strong: #262626;--ui-border-mid: #3a3a3a;--ui-border-focus: #4a4a4a;--ui-text: #e5e5e5;--ui-text-strong: #fff;--ui-text-muted: #d4d4d4;--ui-text-soft: #a3a3a3;--ui-text-dim: #737373;--ui-text-faint: #525252;--ui-accent: #d4af37;--ui-accent-rgb: 212, 175, 55;--ui-accent-deep: #c19a3b;--radius-xs: 3px;--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px;--radius-xl: 12px;--radius-full: 50%;--radius-pill: 999px;--dur-fast: .12s;--dur-base: .15s;--dur-slow: .2s}*{box-sizing:border-box;margin:0;padding:0}html,body,#app{height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,sans-serif;font-size:14px;background:var(--ui-surface);color:var(--ui-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.6}button,input,textarea{font-family:inherit;color:inherit}.app{display:flex;flex-direction:column;height:100vh;overflow:hidden;position:relative}.app-body{flex:1;display:flex;min-height:0;overflow:hidden;position:relative}.top-bar{flex-shrink:0;min-height:var(--top-bar-h);background:var(--ui-surface-rail);display:flex;align-items:center;padding:12px 20px;gap:12px;transition:transform var(--dur-slow) ease,opacity var(--dur-slow) ease}.top-bar-spacer{flex:1}.max-btn{background:transparent;border:1px solid transparent;color:var(--ui-text-dim);cursor:pointer;padding:3px 8px;font-size:.9rem;line-height:1;border-radius:var(--radius-xs);margin-right:8px}.max-btn:hover{background:var(--ui-surface-hover);color:var(--ui-text);border-color:var(--ui-border-mid)}.max-btn[aria-pressed=true]{color:var(--ui-accent);border-color:var(--ui-border-mid)}.app-title{font-size:.82rem;font-weight:700;color:var(--ui-text-strong);letter-spacing:.08em;text-transform:uppercase;flex-shrink:0}.activity-bar{width:48px;flex-shrink:0;background:var(--ui-surface-rail);border-right:1px solid var(--ui-border-rail);display:flex;flex-direction:column;align-items:center;padding:10px 0;gap:4px}.activity-bar-right{border-right:none;border-left:1px solid var(--ui-border-rail)}.activity-btn{width:34px;height:34px;background:transparent;border:none;border-radius:var(--radius-lg);color:var(--ui-text-dim);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:all var(--dur-base)}.activity-btn:hover{background:var(--ui-border);color:var(--ui-text)}.activity-btn.active{background:var(--ui-surface-hover);color:var(--ui-accent)}.search-box{position:relative;width:100%;display:flex;align-items:center;background:var(--ui-surface-elevated);border:1px solid var(--ui-border-strong);border-radius:var(--radius-md);padding:0 10px;height:30px;transition:border-color var(--dur-base) ease}.search-box:focus-within{border-color:var(--ui-border-focus);background:var(--ui-border)}.search-icon{color:var(--ui-text-dim);font-size:.95rem;margin-right:8px;flex-shrink:0}.search-input{flex:1;background:transparent;border:none;outline:none;color:var(--ui-text-strong);font-size:.85rem;min-width:0}.search-input::placeholder{color:var(--ui-text-faint);font-size:.8rem}.search-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:min(60vh,520px);overflow-y:auto;background:var(--ui-surface-elevated);border:1px solid var(--ui-border-strong);border-radius:var(--radius-md);box-shadow:0 24px 48px #0000008c;z-index:500}.sidebar{flex-shrink:0;background:var(--ui-surface-elevated);border-right:1px solid var(--ui-border-strong);display:flex;flex-direction:column;overflow:hidden;min-width:0}.sidebar.maximized{flex:1;width:auto;border-right:none}.sidebar-header{padding:14px 16px;border-bottom:1px solid var(--ui-border-strong);display:flex;align-items:center;justify-content:space-between;gap:8px}.sidebar-title{font-size:.9rem;font-weight:600;letter-spacing:.02em;color:var(--ui-text)}.icon-btn{background:none;border:none;color:var(--ui-text-dim);width:30px;height:30px;border-radius:var(--radius-sm);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:.85rem;padding:0;transition:background var(--dur-base) ease,color var(--dur-base) ease}.icon-btn:hover{color:var(--ui-text-strong);background:#ffffff0f}.icon-btn.danger:hover{color:#ff6b6b;background:#ff6b6b14}.icon-btn.wide{width:auto;min-width:26px;padding:0 10px;font-size:.78rem}.sidebar-body{flex:1;overflow-y:auto;padding:6px 0 24px}.sidebar-body:focus,.sidebar-body:focus-visible{outline:none}.header-actions{display:inline-flex;gap:4px}.icon-btn:disabled{opacity:.35;cursor:default;background:transparent}.icon-btn:disabled:hover{color:var(--ui-text-dim);background:transparent}.sidebar-filter{position:relative;padding:6px 12px 8px;border-bottom:1px solid var(--ui-border-strong)}.sidebar-filter-input{width:100%;box-sizing:border-box;background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:var(--radius-sm);padding:5px 26px 5px 9px;color:var(--ui-text);font-size:.8rem;font-family:inherit;outline:none;transition:border-color var(--dur-fast) ease}.sidebar-filter-input::placeholder{color:#55555c}.sidebar-filter-input:focus{border-color:var(--ui-border-focus)}.sidebar-filter-clear{position:absolute;top:50%;right:18px;transform:translateY(-50%);background:none;border:none;color:#7a7a82;font-size:.95rem;line-height:1;cursor:pointer;padding:0 4px}.sidebar-filter-clear:hover{color:var(--ui-text-strong)}.tree-empty{padding:20px 16px;color:#6a6a72;font-size:.82rem;text-align:center}.tree-row{display:flex;align-items:center;gap:6px;padding-top:4px;padding-bottom:4px;padding-right:10px;margin:0 6px;border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1.4;transition:background var(--dur-fast)}.tree-row.folder-row{padding-top:5px;padding-bottom:5px}.tree-row.folder-row .node-name{color:#b8b8be;font-weight:500;font-size:.86rem}.tree-row.note-row .node-name{color:#96969e;font-weight:400;font-size:.84rem}.tree-row:hover{background:var(--ui-surface-hover)}.tree-row.note-row:hover .node-name{color:var(--ui-text)}.tree-row.note-row.active .node-name{color:var(--ui-text-strong)}.tree-row.selected,.tree-row.selected.active{background:var(--ui-surface-active)}.tree-row.cut{opacity:.45}.tree-row.drop-target{background:var(--ui-surface-hover);box-shadow:inset 0 0 0 1px var(--ui-text)}.tree-row.reorder-before{box-shadow:inset 0 2px 0 0 var(--ui-text)}.tree-row.reorder-after{box-shadow:inset 0 -2px 0 0 var(--ui-text)}.tree-row.story{margin-bottom:2px}.tree-row.story:hover{background:var(--ui-surface-hover)}.tree-row.story .node-name{color:var(--ui-text-strong);font-weight:600;letter-spacing:.02em}.tree-row.story .caret{color:var(--ui-text)}.story-badge{display:inline-block;font-size:.6rem;font-weight:700;letter-spacing:.12em;color:var(--ui-text);background:#ffffff14;border:1px solid var(--ui-border-mid);padding:0 5px;border-radius:var(--radius-xs);margin-right:6px;vertical-align:1px}.tree-row.in-story{padding-top:2px;padding-bottom:2px}.tree-row.in-story .node-name{color:#b8b8be;font-size:.85rem}.chapter-marker{display:inline-block;width:4px;height:4px;border-radius:var(--radius-full);background:var(--ui-text);margin-right:8px;vertical-align:3px;opacity:.6}.chapter-num{display:inline-block;font-size:.72rem;font-weight:600;color:var(--ui-text);background:#ffffff14;padding:1px 6px;border-radius:var(--radius-xs);margin-right:6px;min-width:28px;text-align:center;vertical-align:1px}.read-progress{display:inline-block;margin-left:6px;font-size:.68rem;font-weight:500;color:var(--ui-text-dim);letter-spacing:.02em;vertical-align:1px}.char-count{display:inline-block;margin-left:6px;font-size:.68rem;font-weight:400;color:var(--ui-text-dim);letter-spacing:.02em;vertical-align:1px;font-variant-numeric:tabular-nums}.folder-count{display:inline-block;margin-left:6px;font-size:.68rem;font-weight:500;color:#7a7a82;letter-spacing:.02em;vertical-align:1px;font-variant-numeric:tabular-nums;padding:0 5px;border-radius:var(--radius-lg);background:#ffffff0d;min-width:14px;text-align:center}.tree-row.empty-folder .folder-count{color:#55555c;background:transparent}.tree-row.empty-folder .folder-icon{color:var(--ui-border-focus)}.tree-row.empty-folder .node-name{color:#7a7a82}.editor-chapter-num{display:inline-block;font-size:.85rem;font-weight:600;color:var(--ui-text);background:#ffffff14;padding:2px 8px;border-radius:var(--radius-sm);margin-right:10px;vertical-align:2px}.root-drop-zone{min-height:60px;margin-top:4px;display:flex;align-items:center;justify-content:center;color:var(--ui-text);font-size:.75rem;border-radius:var(--radius-sm);transition:background var(--dur-fast) ease,box-shadow var(--dur-fast) ease}.root-drop-zone.drop-target{background:var(--ui-surface-hover);box-shadow:inset 0 0 0 1px var(--ui-text);min-height:40px}.caret{width:12px;color:#6a6a72;font-size:.65rem;transition:transform var(--dur-base) ease;flex-shrink:0;display:inline-flex;justify-content:center}.caret.expanded{transform:rotate(90deg)}.caret-spacer{width:12px;flex-shrink:0}.node-name{flex:1;font-size:.88rem;color:var(--ui-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-row .folder-icon{display:inline-block;vertical-align:-3px;color:var(--ui-text-dim);margin-right:6px}.tree-row.active .folder-icon,.tree-row:hover .folder-icon{color:var(--ui-text)}.tree-row.active .node-name{color:var(--ui-text-strong)}.actions{display:inline-flex;gap:3px;visibility:hidden;opacity:0;transition:opacity var(--dur-fast) ease;flex-shrink:0}.tree-row:hover .actions{visibility:visible;opacity:1}.inline-input{flex:1;min-width:0;background:var(--ui-surface-rail);border:1px solid var(--ui-border-focus);color:var(--ui-text-strong);font-size:.85rem;padding:2px 6px;border-radius:var(--radius-xs);outline:none}.inline-input::placeholder{color:var(--ui-text-faint)}.inline-input.error{border-color:#d97a6c;background:#1c0f10}.inline-error{font-size:.75rem;color:#d97a6c;padding-top:2px;padding-bottom:4px;padding-right:12px;line-height:1.3}.editor{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--ui-surface)}.editor-header{display:flex;align-items:center;gap:12px;padding:14px 24px;border-bottom:1px solid var(--ui-border)}.editor-crumb{font-size:.78rem;color:var(--ui-text-dim)}.editor-title{flex:1;font-size:1.05rem;font-weight:600;color:var(--ui-text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-status{font-size:.75rem;color:var(--ui-text-dim);min-width:60px;text-align:right}.editor-status.error{color:#ff6b6b}.editor-body{flex:1;overflow:hidden;display:flex}.editor-textarea{flex:1;width:100%;background:transparent;border:none;outline:none;resize:none;padding:24px 32px 40px;font-family:var(--font-body);font-size:calc(var(--body-size) * var(--font-scale, 1));line-height:var(--body-line);letter-spacing:var(--body-tracking);color:var(--text-primary);-moz-tab-size:2;tab-size:2}.editor.editor-scroll{overflow-y:auto;display:block}.editor-scroll .note-section{display:flex;flex-direction:column;min-height:calc(100vh - var(--top-bar-h));border-bottom:1px solid var(--ui-border)}.editor-scroll .note-section:last-of-type{border-bottom:none}.editor-scroll .note-section .editor-header{position:sticky;top:0;background:var(--ui-surface-raised);z-index:5}.editor-scroll .note-section.active .editor-title{color:var(--ui-text-strong)}.editor-scroll .note-section:not(.active) .editor-title,.editor-scroll .note-section:not(.active) .editor-crumb{opacity:.55}.editor-scroll .editor-body{display:flex;flex-direction:column;flex:1;overflow:visible}.editor-textarea-flow{flex:0 0 auto;min-height:240px}.editor-top-sentinel,.editor-bottom-sentinel{height:1px;width:100%;pointer-events:none}.editor-scroll .note-section.entity-section{height:calc(100vh - var(--top-bar-h));min-height:0;overflow:hidden}.editor-empty{flex:1;display:flex;align-items:center;justify-content:center;color:var(--ui-text-faint);font-size:.95rem}.palette-hint{padding:20px;color:var(--ui-text-dim);font-size:.82rem;text-align:center}.palette-item{padding:10px 18px;cursor:pointer;border-bottom:1px solid var(--ui-border)}.palette-item.selected{background:var(--ui-surface-hover)}.palette-item-title{font-size:.92rem;color:var(--ui-text-strong);font-weight:500}.palette-item-crumb{font-size:.72rem;color:var(--ui-text-dim);margin-top:2px}.palette-item-snippet{font-size:.8rem;color:var(--ui-text-soft);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.palette-item mark{background:#ffffff2e;color:var(--ui-text-strong);padding:0 2px;border-radius:2px}.app.reading-mode .top-bar,.app.reading-mode .activity-bar,.app.reading-mode .sidebar,.app.story-mode .top-bar,.app.story-mode .activity-bar,.app.story-mode .sidebar,.app.story-mode .editor{display:none}.reading-exit{position:fixed;top:16px;right:20px;width:32px;height:32px;background:#1e1e24b3;border:1px solid var(--ui-surface-active);color:var(--ui-text-dim);border-radius:var(--radius-full);cursor:pointer;font-size:1.1rem;display:flex;align-items:center;justify-content:center;z-index:1000;transition:background var(--dur-base) ease,color var(--dur-base) ease,border-color var(--dur-base) ease}.reading-exit:hover{background:var(--ui-surface-hover);color:var(--ui-text-strong);border-color:var(--ui-border-mid)}.reading-view{width:100%;max-width:var(--body-max);margin:0 auto;padding:72px 48px 120px;color:var(--ui-text-muted);overflow-y:auto;height:100%;box-sizing:border-box}.reading-body{font-family:var(--font-body);font-size:calc(var(--body-size) * var(--font-scale, 1));line-height:var(--body-line);letter-spacing:var(--body-tracking);color:var(--text-primary);white-space:pre-wrap;word-break:break-word;margin:0;-moz-tab-size:2;tab-size:2}.story-stage{position:fixed;top:0;right:0;bottom:0;left:0;background:#000;z-index:900;display:flex;flex-direction:column}.story-interstitial{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:48px;text-align:center;animation:story-fade .35s ease}.story-chapter-label{font-size:1rem;letter-spacing:.35em;color:var(--ui-text-dim);text-transform:uppercase}.story-chapter-title{font-size:2.6rem;font-weight:600;color:var(--ui-text-strong);letter-spacing:-.02em;max-width:80vw;line-height:1.35}.story-hint{margin-top:24px;font-size:.82rem;color:var(--ui-text-faint);letter-spacing:.08em}.story-content{flex:1;width:100%;padding:72px 48px 40px;overflow-y:auto;color:var(--ui-text-muted);box-sizing:border-box;animation:story-fade .35s ease}.story-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:12px 24px;border-top:1px solid var(--ui-border);background:#101013}.story-progress{font-size:.78rem;color:var(--ui-text-dim);letter-spacing:.06em}.story-nav{display:flex;gap:8px}.story-nav-btn{background:transparent;border:1px solid var(--ui-surface-active);color:#b0b0b8;border-radius:var(--radius-sm);padding:6px 14px;font-size:.82rem;cursor:pointer;transition:background var(--dur-base) ease,color var(--dur-base) ease,border-color var(--dur-base) ease}.story-nav-btn:hover:not(:disabled){background:var(--ui-surface-hover);color:var(--ui-text-strong);border-color:var(--ui-border-mid)}.story-nav-btn:disabled{opacity:.35;cursor:default}@keyframes story-fade{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--ui-surface-active);border-radius:var(--radius-sm)}::-webkit-scrollbar-thumb:hover{background:var(--ui-border-mid)}::-webkit-scrollbar-track{background:transparent}.app.mode-mo .top-bar{position:fixed;top:0;left:0;right:0;z-index:20;justify-content:space-between}.app.mode-mo .top-bar.top-bar-hidden{transform:translateY(-100%);opacity:0;pointer-events:none}.top-bar-title{flex:1;min-width:0;text-align:center;color:var(--ui-text-dim);font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px;pointer-events:none}.mo-body{background:#000;position:absolute;top:0;right:0;bottom:0;left:0}.app.mode-mo .editor{width:100%;height:100%;background:#000;overflow:hidden;display:flex;flex-direction:column;position:relative}.app.mode-mo .mo-scroll{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding-bottom:var(--mo-footer-peek)}.app.mode-mo .editor-header{display:none}.app.mode-mo .editor-body{max-width:var(--body-max-mo);margin:0 auto;padding:calc(var(--top-bar-h) + 12px) 24px calc(40px + var(--mo-kbd-h, 0px));display:block;overflow:visible}.editor-textarea.mo-guarded{position:relative}.edit-guard{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;cursor:text;background:transparent;pointer-events:auto;touch-action:manipulation}.gray-cursor{position:absolute;width:2px;background:var(--ui-text-dim);pointer-events:none;transform:translate(-1px);animation:cursor-pulse 1.05s ease-in-out infinite;border-radius:1px}@keyframes cursor-pulse{0%,to{opacity:.5}50%{opacity:1}}.app.mode-mo .editor-textarea{padding:0;color:var(--text-primary);background:transparent;min-height:60vh;display:block;width:100%}.app.mode-mo .editor-textarea .cm-scroller{font-family:var(--font-body-mo);font-size:calc(var(--body-size-mo) * var(--font-scale, 1));line-height:var(--body-line-mo);letter-spacing:var(--body-tracking-mo)}.app.mode-mo .editor-empty{color:var(--ui-text-faint)}.app.mode-mo .reading-view{padding:calc(var(--top-bar-h) + 16px) 16px 96px;max-width:var(--body-max-mo);margin:0 auto}.app.mode-mo .reading-body{font-family:var(--font-body-mo);font-size:calc(var(--body-size-mo) * var(--font-scale, 1));line-height:var(--body-line-mo);letter-spacing:var(--body-tracking-mo);color:var(--text-primary)}.app.mode-mo .story-content{padding:48px 20px 32px;max-width:var(--body-max-mo);margin:0 auto}.app.mode-mo .story-chapter-title{font-size:1.8rem;max-width:90vw}.app.mode-mo .story-footer{padding:10px 16px}.app.mode-mo .reading-exit{top:12px;right:12px}.app.mode-mo,.app.mode-mo *{scrollbar-width:none;-ms-overflow-style:none}.app.mode-mo ::-webkit-scrollbar,.app.mode-mo::-webkit-scrollbar{width:0;height:0;display:none}.mo-footer-overlay{position:absolute;left:0;right:0;bottom:0;z-index:20;width:100%;padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px));background:#000000eb;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:1px solid var(--ui-border);box-sizing:border-box;max-height:50vh;overflow-y:auto;transition:max-height var(--dur-slow) ease-out,padding var(--dur-slow) ease-out}.mo-footer-overlay.mo-footer-overlay-hidden{max-height:calc(var(--mo-footer-peek) + env(safe-area-inset-bottom,0px));padding-top:8px;padding-bottom:env(safe-area-inset-bottom,0px);overflow:hidden}.mo-footer-overlay.mo-footer-overlay-expanded{max-height:75vh;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}.mo-footer-drag-handle{display:flex;align-items:center;justify-content:center;padding:6px 0 10px;margin:-8px -16px 6px;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.mo-footer-drag-handle:active{cursor:grabbing}.mo-footer-grabber{width:36px;height:4px;background:var(--ui-surface-active);border-radius:var(--radius-pill);transition:background var(--dur-base) ease,width var(--dur-base) ease}.mo-footer-drag-handle:hover .mo-footer-grabber,.mo-footer-drag-handle:active .mo-footer-grabber{background:var(--ui-border-focus);width:48px}.mo-footer-drag-handle.expanded .mo-footer-grabber{background:#5a6a8a;width:44px}.mo-footer-tree-wrap{margin-top:12px;padding-top:12px;border-top:1px solid var(--ui-border)}.mo-footer-label{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ui-text-faint);margin-bottom:10px}.mo-footer-chips{display:flex;flex-wrap:wrap;gap:6px}.mo-footer-chip{display:inline-flex;align-items:center;gap:6px;background:transparent;border:1px solid var(--ui-surface-active);color:var(--ui-text-soft);padding:6px 10px;border-radius:5px;font-size:.82rem;cursor:pointer;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:background var(--dur-fast) ease,color var(--dur-fast) ease,border-color var(--dur-fast) ease}.mo-footer-chip:hover{background:var(--ui-border);color:var(--ui-text-strong);border-color:var(--ui-border-mid)}.mo-footer-chip.current{color:var(--ui-text-strong);border-color:var(--ui-text-strong);background:#ffffff0f}.mo-footer-chip.current .mo-footer-chapter{color:var(--ui-text-strong)}.reader-branches{max-width:var(--body-max-mo);width:100%;margin:auto auto 24px;padding:20px 24px;background:var(--ui-surface-rail);border:1px solid var(--ui-border);box-sizing:border-box}.branches-header{color:var(--ui-text-faint);font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:16px}.branches-list{display:flex;flex-direction:column;gap:8px}.branch-btn{display:flex;flex-direction:column;gap:8px;background:transparent;border:1px solid var(--ui-surface-active);color:var(--ui-text);padding:14px 16px;border-radius:var(--radius-sm);cursor:pointer;text-align:left;transition:background var(--dur-fast) ease,border-color var(--dur-fast) ease,color var(--dur-fast) ease}.branch-btn:hover{background:var(--ui-border);border-color:var(--ui-border-mid);color:var(--ui-text-strong)}.branch-prompt{font-size:.95rem;font-weight:500}.branch-chapter{display:inline-block;font-size:.7rem;font-weight:600;color:var(--ui-text-dim);letter-spacing:.06em;margin-right:6px}.branch-btn:hover .branch-chapter{color:var(--ui-text)}.branch-preview{font-size:.82rem;color:var(--ui-text-dim);line-height:1.6;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mo-footer-flow{align-items:center}.mo-footer-flow .flow-arrow{color:var(--ui-text-faint);font-size:.8rem;align-self:center}.mo-footer-chapter{font-size:.66rem;font-weight:600;color:var(--ui-text-dim);letter-spacing:.04em;flex-shrink:0}.boot.svelte-s6it1w{position:fixed;top:0;right:0;bottom:0;left:0;background:#000;z-index:9999;display:flex;align-items:center;justify-content:center;animation:svelte-s6it1w-fade-in .3s ease-out both}.boot.leaving.svelte-s6it1w{animation:svelte-s6it1w-fade-out .4s ease-in both}.stack.svelte-s6it1w{display:flex;flex-direction:column;align-items:center;gap:24px}.wordmark.svelte-s6it1w{font-family:Noto Sans KR,-apple-system,BlinkMacSystemFont,sans-serif;font-size:1.5rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ui-text-strong);line-height:1}.progress.svelte-s6it1w{width:140px;height:2px;background:#ffffff1f;border-radius:var(--radius-pill);overflow:hidden}.progress-fill.svelte-s6it1w{display:block;height:100%;width:0;background:var(--ui-text-strong);border-radius:var(--radius-pill);animation:svelte-s6it1w-fill 1.7s cubic-bezier(.4,0,.2,1) forwards}@keyframes svelte-s6it1w-fade-in{0%{opacity:0}to{opacity:1}}@keyframes svelte-s6it1w-fade-out{0%{opacity:1}to{opacity:0}}@keyframes svelte-s6it1w-fill{0%{width:0}to{width:100%}}.mobile-notice.svelte-12qhfyh{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#000;display:flex;align-items:center;justify-content:center;padding:24px}.notice-card.svelte-12qhfyh{max-width:400px;width:100%;text-align:center;color:var(--ui-text)}.notice-logo.svelte-12qhfyh{display:inline-flex;align-items:center;justify-content:center;margin-bottom:32px;opacity:.9}.notice-title.svelte-12qhfyh{font-size:1.35rem;font-weight:700;color:var(--ui-text-strong);margin:0 0 16px;letter-spacing:-.02em}.notice-body.svelte-12qhfyh{font-size:.9rem;color:var(--ui-text-dim);line-height:1.7;margin:0 0 28px}.cta.svelte-12qhfyh{display:block;width:100%;background:#1f6feb;border:1px solid #388bfd;color:var(--ui-text-strong);border-radius:10px;padding:14px 20px;font-size:.95rem;font-weight:600;cursor:pointer;font:inherit;transition:background var(--dur-base),transform var(--dur-base),box-shadow var(--dur-base);box-shadow:0 6px 20px #1f6feb40}.cta.svelte-12qhfyh:hover:not(:disabled){background:#388bfd;transform:translateY(-1px);box-shadow:0 10px 28px #1f6feb59}.cta.svelte-12qhfyh:disabled{background:var(--ui-border);border-color:var(--ui-surface-active);color:var(--ui-text-dim);cursor:not-allowed;box-shadow:none}.dismiss.svelte-12qhfyh{display:block;width:100%;margin-top:12px;background:transparent;border:none;color:var(--ui-text-dim);font-size:.82rem;padding:10px;cursor:pointer;font:inherit;transition:color var(--dur-base)}.dismiss.svelte-12qhfyh:hover{color:var(--ui-text)}
