:root{--theme-hue:347;--bg:#f1eeef;--panel:#e5e1e2;--paper:#faf9fa;--paper-subtle:#f6f4f4;--ink:#2b2728;--ink-secondary:#94898c;--muted:#94898c;--subtle:#94898c;--surface-hover:#932f4414;--surface-active:#932f4421;--accent:#932f44;--accent-ink:#551b28;--accent-soft:#932f4414;--accent-glow:#932f4429;--accent-fg:#fff;--danger:#a3334c;--danger-soft:#a3334c1a;--warning:#ba3b56;--border-subtle:#2b27281f;--line-subtle:#2b27281a;--overlay:#2b272829;--scrollbar-thumb:#2b27281f;--green:#932f44;--green-soft:#932f4414;--save-ok:#932f44;--save-saving:#ba3b56;--z-header:10;--z-footer:30;--z-side-panel:40;--z-resize-handle:41;--z-focus-bar:100;--z-modal-backdrop:190;--z-modal:200;--mobile-nav-height:56px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--space-8:64px;--radius-xs:4px;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-xl:20px;--shadow-xs:0 1px 3px #2b27280d;--shadow-sm:0 2px 8px #2b27280d, 0 1px 2px #2b27280d;--shadow-md:0 6px 18px #2b27280d, 0 2px 4px #2b27280d;--shadow-lg:0 16px 36px #2b27280d, 0 4px 8px #2b27280d;--paper-shadow:0 1px 3px #2b27280d, 0 6px 18px #2b27280d, 0 16px 36px #2b27280d;--ease:cubic-bezier(.16, 1, .3, 1);--motion-fast:.12s var(--ease);--motion:.2s var(--ease);--motion-slow:.35s var(--ease);--motion-caret:.11s var(--ease);--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;--font-serif:"Yu Mincho", "Hiragino Mincho ProN", "Shippori Mincho", "Noto Serif JP", "Times New Roman", Georgia, serif;--font-mono:ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;color:var(--ink);background:var(--bg);font-family:var(--font-sans)}*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0}html,body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;width:100%;height:100%;margin:0;padding:0;overflow:hidden}#root{width:100%;height:100%;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit;border:0;outline:none}button{cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:0;display:inline-flex}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--muted)}@media (prefers-reduced-motion:reduce){*{transition:none;animation:none}}.app-shell{background:var(--bg);grid-template-rows:44px 1fr;grid-template-columns:minmax(0,1fr);width:100%;height:100vh;display:grid;position:relative;overflow:hidden}@supports (height:100dvh){.app-shell{height:var(--visual-viewport-height,100dvh)}}.app-header{padding:0 var(--space-4);background:var(--panel);z-index:var(--z-header,10);-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;display:flex}.header-left,.header-right{align-items:center;gap:var(--space-3);min-width:0;display:flex}.bookshelf-nav-btn{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--muted);transition:background var(--motion-fast), color var(--motion-fast);background:0 0;place-items:center;display:grid;position:relative}.bookshelf-nav-btn:hover{color:var(--ink);background:var(--surface-hover)}.brand-lockup{align-items:center;gap:var(--space-2);min-width:0;display:flex}.brand-mark{border-radius:var(--radius-xs);background:var(--ink);width:24px;height:24px;color:var(--paper);font-family:var(--font-serif);place-items:center;font-size:12px;font-weight:700;display:grid}.brand-info{align-items:baseline;gap:var(--space-2);min-width:0;display:flex}.brand-title{font-family:var(--font-sans);letter-spacing:-.01em;color:var(--ink);font-size:13px;font-weight:600}.document-title{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:240px;font-size:12px;overflow:hidden}.header-actions{align-items:center;gap:var(--space-1);display:flex}.character-count{font-variant-numeric:tabular-nums;color:var(--muted);padding:0 var(--space-1);font-size:12px}.save-state{align-items:center;gap:var(--space-1);color:var(--subtle);padding:0 var(--space-1);transition:color var(--motion);font-size:12px;display:flex}.save-check-icon{align-items:center;display:inline-flex}.save-dot{background:var(--save-ok,var(--green));width:6px;height:6px;transition:background var(--motion), transform var(--motion-fast), opacity var(--motion);border-radius:50%;display:inline-block}.save-dot.is-saving{background:var(--save-saving,var(--warning));animation:save-pulse .8s var(--ease) infinite alternate}.save-dot.is-error{background:var(--danger)}@keyframes save-pulse{0%{opacity:.35;transform:scale(.85)}to{opacity:1;transform:scale(1.15)}}.app-footer{align-items:center;gap:var(--space-5);height:28px;padding:0 var(--space-4);background:var(--panel);box-shadow:var(--shadow-sm);color:var(--subtle);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;z-index:var(--z-footer,30);opacity:0;pointer-events:none;font-size:12px;transition:opacity .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1);display:flex;position:absolute;bottom:0;left:48px;right:0;transform:translateY(100%)}.app-footer.is-hidden{display:none}.app-footer.is-pointer-visible,.app-footer:hover,.app-footer:focus-within{opacity:1;pointer-events:auto;transform:translateY(0)}.goal-control,.goal-editor{align-items:center;gap:var(--space-2);color:inherit;font:inherit;font-variant-numeric:tabular-nums;display:inline-flex}.goal-control{cursor:pointer;background:0 0;border:0;padding:0}.goal-control:hover,.goal-control:focus-visible{color:var(--text)}.progress-ring{background:conic-gradient(var(--accent) var(--progress), var(--border-subtle) 0);border-radius:50%;place-items:center;width:16px;height:16px;display:inline-grid}.progress-ring span{background:var(--panel);border-radius:50%;width:8px;height:8px}.goal-editor{right:0;bottom:calc(100% + var(--space-2));width:224px;padding:var(--space-3);background:var(--panel);box-shadow:var(--shadow-lg);color:var(--text);border:0;border-radius:6px;margin:0;position:absolute}.goal-editor-popover{position:relative}.goal-editor legend{color:var(--text);padding:0;font-size:13px;font-weight:600}.goal-editor-row{align-items:center;gap:var(--space-2);margin-top:var(--space-3);font-size:14px;display:flex}.goal-input{width:128px;min-height:36px;padding:0 var(--space-2);border:1px solid var(--border-subtle);background:var(--panel);color:inherit;font:inherit;font-variant-numeric:tabular-nums;border-radius:4px}.goal-input:focus{border-color:var(--accent);outline:2px solid color-mix(in srgb, var(--accent) 24%, transparent);outline-offset:1px}.goal-input::-webkit-inner-spin-button{appearance:none;margin:0}.goal-input::-webkit-outer-spin-button{appearance:none;margin:0}.goal-input{appearance:textfield}.goal-editor-hint{margin-top:var(--space-2);color:var(--muted);font-size:11px;display:block}.workspace{background:var(--panel);height:100%;min-height:0;transition:grid-template-columns var(--motion);grid-template-columns:48px minmax(0,1fr);display:grid;position:relative;overflow:hidden}.workspace.has-activity-view{grid-template-columns:48px minmax(0,1fr)}.workspace>.side-panel{background:var(--panel);z-index:2;grid-area:1/2;width:100%;height:100%;min-height:0;overflow:hidden}.workspace.has-activity-view>.side-panel{width:var(--side-panel-width,280px);height:auto;z-index:var(--z-side-panel,40);box-shadow:var(--shadow-lg);grid-area:1/1;animation:.2s cubic-bezier(.2,0,0,1) both side-panel-expand;position:absolute;top:0;bottom:0;left:48px}.mobile-panel-backdrop{display:none}.sidebar-resize-handle{top:0;bottom:0;left:calc(48px + var(--side-panel-width,280px) - var(--space-2));z-index:var(--z-resize-handle,41);width:var(--space-4);cursor:col-resize;touch-action:none;border:0;margin:0;position:absolute}.sidebar-resize-handle:after{background:var(--accent);content:"";opacity:0;width:2px;transition:opacity var(--motion-fast);position:absolute;top:0;bottom:0;left:calc(50% - 1px)}.sidebar-resize-handle:hover:after,.sidebar-resize-handle:focus-visible:after{opacity:.45}@keyframes side-panel-expand{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}.workspace.has-activity-view>.side-panel.is-closing{pointer-events:none;animation:.1s cubic-bezier(.4,0,1,1) both side-panel-collapse}@keyframes side-panel-collapse{0%{clip-path:inset(0)}to{clip-path:inset(0 100% 0 0)}}.workspace>.editor-column{background:var(--bg);flex-direction:column;grid-area:1/2;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.workspace-tabs{align-items:end;gap:var(--space-1);height:38px;padding:var(--space-1) var(--space-4) 0;background:var(--panel);-webkit-user-select:none;user-select:none;flex-shrink:0;display:flex}.workspace-tab{align-items:center;gap:var(--space-2);max-width:240px;height:32px;padding:0 var(--space-3);border-radius:var(--radius-sm) var(--radius-sm) 0 0;color:var(--muted);transition:background var(--motion-fast), color var(--motion-fast);font-size:12px;display:inline-flex;overflow:hidden}.workspace-tab span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workspace-tab:hover{background:var(--surface-hover);color:var(--ink)}.workspace-tab.active{background:var(--bg);color:var(--accent);font-weight:500}.activity-bar{align-items:center;gap:var(--space-1);padding:var(--space-2) 0;background:var(--bg);flex-direction:column;display:flex}.activity-spacer{flex:1}.activity-button{border-radius:var(--radius-sm);width:40px;height:40px;color:var(--subtle);transition:background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);background:0 0;place-items:center;display:grid;position:relative}.activity-button:hover{background:var(--surface-hover);color:var(--ink);transform:translateY(-1px)}.activity-button.active{background:var(--accent-soft);color:var(--accent)}.activity-button.active:before{content:"";background:var(--accent);width:2px;height:20px;animation:activity-indicator .15s var(--ease) both;border-radius:2px;position:absolute;left:-4px}@keyframes activity-indicator{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}@media (hover:hover) and (min-width:761px){.bookshelf-nav-btn:after,.activity-button:after{left:calc(100% + var(--space-2));z-index:20;padding:var(--space-1) var(--space-2);border-radius:var(--radius-xs);background:var(--ink);box-shadow:var(--shadow-sm);color:var(--paper);content:attr(data-tooltip);opacity:0;pointer-events:none;transition:opacity var(--motion-fast), transform var(--motion-fast);white-space:nowrap;font-size:12px;line-height:1.5;position:absolute;transform:translate(-2px)}.bookshelf-nav-btn:hover:after,.bookshelf-nav-btn:focus-visible:after,.activity-button:hover:after,.activity-button:focus-visible:after{opacity:1;transform:translate(0)}}@media (max-width:760px),(max-height:540px) and (orientation:landscape){.app-shell{grid-template-rows:40px minmax(0,1fr)}.app-header{padding-inline:var(--space-2)}.header-left,.header-right,.brand-lockup{gap:var(--space-1)}.brand-title{display:none}.document-title{max-width:min(42vw,208px)}.header-right .save-state{text-overflow:ellipsis;white-space:nowrap;max-width:80px;overflow:hidden}.app-header .icon-button,.app-header .bookshelf-nav-btn{width:40px;height:40px}.side-panel .panel-heading{height:48px;min-height:48px;padding:var(--space-4) var(--space-3) var(--space-2)}.side-panel .quiet-button{width:40px;height:40px}.workspace,.workspace.has-activity-view{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0, 1fr) calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))}.workspace>.editor-column{grid-area:1/1}.activity-bar{z-index:var(--z-header,10);justify-content:flex-start;align-items:center;gap:var(--space-1);min-height:var(--mobile-nav-height);padding:var(--space-1) var(--space-2) env(safe-area-inset-bottom);background:var(--panel);box-shadow:var(--shadow-sm);flex-direction:row;grid-area:2/1;overflow:auto hidden}.activity-button{flex:0 0 40px}.activity-spacer{flex:0 0 var(--space-2)}.activity-button.active:before{top:auto;right:auto;bottom:calc(-1 * var(--space-1));width:20px;height:2px;left:50%;transform:translate(-50%)}.mobile-panel-backdrop{inset:0 0 calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));z-index:calc(var(--z-side-panel,40) - 20);background:color-mix(in srgb, var(--ink) 18%, transparent);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);animation:mobile-panel-backdrop-open .18s var(--ease) both;display:block;position:absolute}.workspace.has-activity-view>.side-panel{top:auto;right:0;bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));width:100%;height:min(78dvh, calc(100% - var(--space-6)));max-height:calc(100% - var(--space-6));z-index:calc(var(--z-side-panel,40) - 1);border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:var(--shadow-lg);animation:mobile-sheet-open .24s var(--ease) both;left:0;overflow:hidden}.workspace.has-activity-view>.side-panel:before{top:var(--space-2);width:var(--space-7);height:var(--space-1);border-radius:var(--radius-xl);background:var(--muted);content:"";opacity:.55;position:absolute;left:50%;transform:translate(-50%)}.workspace.has-activity-view>.side-panel.is-closing{animation:mobile-sheet-close .16s var(--ease) both}.app-shell.is-keyboard-open .workspace,.app-shell.is-keyboard-open .workspace.has-activity-view{grid-template-rows:minmax(0,1fr)}.app-shell.is-keyboard-open .activity-bar,.app-shell.is-keyboard-open .app-footer{display:none}.app-shell.is-keyboard-open .mobile-panel-backdrop{inset:0}.app-shell.is-keyboard-open .workspace.has-activity-view>.side-panel{bottom:0}.app-footer{right:0;bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));gap:var(--space-3);height:24px;padding-inline:var(--space-3);white-space:nowrap;left:0;overflow-x:auto}.sidebar-resize-handle{display:none}}@media (max-width:400px){.brand-mark,.character-count{display:none}.document-title{max-width:32vw}.header-right .save-state{max-width:64px}}@keyframes mobile-panel-backdrop-open{0%{opacity:0}to{opacity:1}}@keyframes mobile-sheet-open{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes mobile-sheet-close{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (max-height:540px) and (orientation:landscape){.app-header{padding-inline:var(--space-3)}.workspace-tabs,.editor-toolbar{display:none}}.side-panel{background:var(--panel);-webkit-user-select:none;user-select:none;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.panel-heading{height:40px;padding:0 var(--space-3);font-family:var(--font-sans);letter-spacing:.01em;color:var(--muted);flex-shrink:0;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;display:flex}.panel-heading-actions{align-items:center;gap:var(--space-1);display:flex}.panel-content-scroll{min-height:0;padding:var(--space-2) var(--space-2) var(--space-4);flex:1;overflow:hidden auto}.icon-button{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--muted);transition:background var(--motion-fast), color var(--motion-fast);background:0 0;place-items:center;display:grid}.icon-button:hover{background:var(--surface-hover);color:var(--ink)}.icon-button.active,.icon-button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}.quiet-button{border-radius:var(--radius-xs);width:24px;height:24px;color:var(--subtle);transition:all var(--motion-fast);background:0 0;place-items:center;display:grid}.quiet-button:hover{background:var(--surface-hover);color:var(--ink)}.outline-panel{background:var(--panel)}.project-label{padding:var(--space-2) var(--space-3);color:var(--muted);justify-content:space-between;align-items:center;font-size:12px;font-weight:500;display:flex}.project-label .item-count{color:var(--subtle);font-variant-numeric:tabular-nums;font-size:12px}.outline-list{gap:var(--space-1);display:grid}.outline-row{border-radius:var(--radius-sm);transition:background var(--motion-fast);align-items:center;display:flex;position:relative}.outline-row:hover,.outline-row:focus-within{background:var(--surface-hover)}.outline-item{align-items:center;gap:var(--space-2);min-height:32px;padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);color:var(--ink);text-align:left;white-space:nowrap;text-overflow:ellipsis;transition:all var(--motion-fast);background:0 0;flex:1;font-size:12px;display:flex;overflow:hidden}.outline-item.active{background:var(--paper);color:var(--accent);box-shadow:var(--shadow-xs);font-weight:600}.outline-item.active .item-count{color:var(--accent);font-weight:600}.outline-item.chapter{margin-top:var(--space-1);font-weight:600}.outline-item .item-count{color:var(--subtle);font-variant-numeric:tabular-nums;margin-left:auto;font-size:12px}.outline-title-text{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.outline-inline-rename-form{align-items:center;gap:var(--space-1);flex:1;padding:2px 4px;display:flex}.outline-rename-input{min-width:0;height:24px;padding:0 var(--space-1);box-shadow:0 0 0 1px var(--accent);border-radius:var(--radius-xs);background:var(--paper);color:var(--ink);border:none;outline:none;flex:1;font-size:12px}.chapter-toggle-btn{border-radius:var(--radius-xs);cursor:pointer;width:20px;height:24px;color:var(--muted);background:0 0;flex-shrink:0;place-items:center;display:grid}.chapter-toggle-placeholder{flex-shrink:0;width:20px;height:24px}.chapter-toggle-btn:hover{background:var(--surface-active);color:var(--ink)}.reorder-controls{opacity:0;transition:opacity var(--motion-fast);align-items:center;padding-right:2px;display:flex}.outline-row:hover .reorder-controls,.outline-row:focus-within .reorder-controls{opacity:1}.reorder-controls button,.rename-btn{border-radius:var(--radius-xs);width:20px;height:24px;color:var(--muted);background:0 0;place-items:center;display:grid}.reorder-controls button:hover,.rename-btn:hover{background:var(--surface-active);color:var(--ink)}.reorder-controls button:hover{color:var(--accent);background:var(--surface-active)}.reorder-controls .delete-outline-item-btn:hover{color:var(--accent)}.outline-delete-description{margin:var(--space-2) 0 var(--space-4);color:var(--ink-secondary);font-size:13px}.outline-delete-confirm-button{gap:var(--space-1);padding:var(--space-2) var(--space-4);border-radius:var(--radius-sm);background:var(--accent);color:var(--accent-fg);display:inline-flex}.outline-delete-confirm-button:disabled{cursor:wait;opacity:.7}.theme-picker{position:relative}.theme-menu{top:calc(100% + var(--space-2));z-index:100;gap:var(--space-1);min-width:160px;padding:var(--space-2);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-lg);display:grid;position:absolute;right:0}.theme-option{align-items:center;gap:var(--space-2);border-radius:var(--radius-xs);color:var(--ink);text-align:left;transition:background var(--motion-fast);background:0 0;padding:8px 12px;font-size:12px;display:flex}.theme-option:hover,.theme-option.selected{background:var(--accent-soft);color:var(--accent);font-weight:600}.theme-swatch{width:12px;height:12px;box-shadow:0 0 0 1px var(--border-subtle);background:linear-gradient(135deg, var(--paper) 50%, var(--panel) 50%);border-radius:50%}.theme-custom{justify-content:space-between;align-items:center;gap:var(--space-2);margin-top:var(--space-2);padding:var(--space-2) var(--space-1) 0;color:var(--muted);font-size:12px;display:flex}.theme-custom input[type=color]{border-radius:var(--radius-xs);cursor:pointer;background:0 0;width:28px;height:24px;padding:0}.goal-input{border-radius:var(--radius-xs);width:64px;height:24px;padding:0 var(--space-1);color:var(--ink);background:var(--panel);text-align:right;font-size:12px}.notes-panel{background:var(--panel)}.panel-tabs{align-items:center;gap:var(--space-1);height:40px;padding:0 var(--space-2);background:0 0;flex-shrink:0;display:flex;overflow-x:auto}.panel-tab{align-items:center;gap:var(--space-1);border-radius:var(--radius-xs);height:28px;color:var(--muted);white-space:nowrap;transition:all var(--motion-fast);background:0 0;padding:0 8px;font-size:12px;font-weight:500;display:inline-flex}.panel-tab:hover{color:var(--ink);background:var(--surface-hover)}.panel-tab.active{background:var(--paper);color:var(--accent);box-shadow:var(--shadow-xs);font-weight:600}.reference-card,.prompt-card{margin-bottom:var(--space-4);padding:var(--space-3);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-xs)}.reference-card strong{color:var(--ink);margin-bottom:var(--space-1);font-size:12px;font-weight:600;display:block}.reference-card p,.note-copy{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.eyebrow{letter-spacing:.06em;color:var(--accent);margin-bottom:var(--space-2);text-transform:uppercase;font-size:12px;font-weight:700}.reference-card select{border-radius:var(--radius-xs);background:var(--panel);width:100%;color:var(--ink);padding:4px 8px;font-size:12px}.section-heading{justify-content:space-between;align-items:flex-start;gap:var(--space-2);display:flex}.section-heading .toolbar-button{flex:none}.linter-issue-list,.dictionary-rule-list,.replacement-preview{gap:var(--space-1);margin-top:var(--space-2);display:grid}.lint-header-tools{align-items:center;gap:var(--space-1);display:flex;position:relative}.lint-filter-btn{position:relative}.lint-filter-btn.is-active{color:var(--accent)}.lint-filter-dot{background:var(--accent,#06c);border-radius:50%;width:5px;height:5px;position:absolute;top:3px;right:3px}.lint-filter-popover{z-index:50;background:var(--paper,#fff);border:1px solid var(--line,#00000014);border-radius:var(--radius-sm,8px);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);flex-direction:column;gap:1px;min-width:210px;padding:4px;animation:.12s ease-out popoverFadeIn;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 10px 30px #0000001f,0 2px 8px #0000000a}@keyframes popoverFadeIn{0%{opacity:0;transform:translateY(-3px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.lint-menu-header{text-transform:uppercase;letter-spacing:.05em;color:var(--subtle);padding:6px 8px 3px;font-size:10px;font-weight:700}.lint-menu-item{border-radius:var(--radius-xs,5px);width:100%;color:var(--ink);cursor:pointer;text-align:left;box-sizing:border-box;background:0 0;border:0;justify-content:space-between;align-items:center;gap:8px;padding:5px 8px;font-size:12px;transition:background .1s;display:flex}.lint-menu-item:hover{background:var(--paper-subtle,#0000000a)}.lint-menu-item.active{color:var(--accent,#06c);font-weight:600}.lint-menu-left{align-items:center;gap:7px;display:flex}.lint-menu-icon{color:var(--muted);align-items:center;display:flex}.lint-menu-item.active .lint-menu-icon{color:var(--accent,#06c)}.lint-menu-right{align-items:center;gap:4px;display:flex}.lint-menu-count{background:var(--line,#0000000f);color:var(--muted);border-radius:4px;padding:0 4px;font-size:10px;font-weight:600}.lint-menu-check{color:var(--accent,#06c);align-items:center;display:flex}.lint-menu-divider{background:var(--line,#0000000f);height:1px;margin:3px 0}.lint-menu-reset{border-radius:var(--radius-xs,5px);width:100%;color:var(--muted);cursor:pointer;text-align:center;background:0 0;border:0;padding:5px 8px;font-size:11px;transition:all .1s;display:block}.lint-menu-reset:hover{background:var(--paper-subtle,#0000000a);color:var(--ink)}.lint-muted-note{color:var(--subtle);margin:var(--space-2) 0;font-size:.75rem}.linter-issue{gap:var(--space-1) var(--space-2);width:100%;padding:var(--space-2);border-radius:var(--radius-sm);background:var(--panel);color:var(--ink);text-align:left;grid-template-columns:auto 1fr;display:grid}.linter-issue-main{color:inherit;cursor:pointer;align-items:flex-start;gap:var(--space-1);text-align:left;background:0 0;border:0;width:100%;padding:0;display:grid}.linter-issue:has(.linter-issue-main){grid-template-columns:1fr}.linter-issue-main>span{padding:2px var(--space-1);border-radius:var(--radius-xs);background:var(--accent-soft);color:var(--accent);justify-self:start;font-size:12px;font-weight:600}.linter-issue.severity-error .linter-issue-main>span{background:var(--accent);color:var(--accent-fg,var(--paper))}.lint-issue-actions{gap:var(--space-1);margin-top:var(--space-2);flex-wrap:wrap;display:flex}.lint-issue-actions button{background:var(--paper);border-radius:var(--radius-xs);padding:var(--space-1) var(--space-2);font-size:.72rem}.linter-issue:hover{background:var(--surface-hover)}.linter-issue>span{padding:2px var(--space-1);border-radius:var(--radius-xs);background:var(--accent-soft);color:var(--accent);grid-row:1/span 2;font-size:12px;font-weight:600}.linter-issue.severity-error>span{background:var(--accent);color:var(--accent-fg,var(--paper))}.linter-issue strong,.linter-issue small{font-size:12px;display:block}.linter-issue small,.dictionary-rule small,.replacement-preview small{color:var(--muted)}.dict-form-card{gap:var(--space-2);margin-top:var(--space-2);padding:var(--space-3);background:var(--paper-subtle,#00000008);border:1px solid var(--line,#00000014);border-radius:var(--radius-sm,6px);flex-direction:column;display:flex}.dict-input{background:var(--paper,#fff);border:1px solid var(--line,#0000001f);border-radius:var(--radius-xs,4px);width:100%;color:var(--ink);box-sizing:border-box;padding:6px 10px;font-family:inherit;font-size:12px;transition:all .15s}.dict-input::placeholder{color:var(--subtle)}.dict-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft,#0064ff26);outline:none}.dict-form-footer{align-items:center;gap:var(--space-2);margin-top:2px;display:flex}.dict-select{appearance:none;background:var(--paper,#fff);border:1px solid var(--line,#0000001f);border-radius:var(--radius-xs,4px);color:var(--ink);cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 6px center;background-repeat:no-repeat;flex:auto;padding:5px 22px 5px 8px;font-family:inherit;font-size:11px;transition:all .15s}.dict-select:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft,#0064ff26);outline:none}.dict-btn-group{align-items:center;gap:var(--space-1);flex-shrink:0;display:flex}.dict-btn-primary{background:var(--accent,#06c);color:var(--accent-fg,#fff);border-radius:var(--radius-xs,4px);cursor:pointer;border:0;padding:5px 12px;font-size:11px;font-weight:600;transition:opacity .15s}.dict-btn-primary:hover{opacity:.9}.dict-btn-cancel{color:var(--muted);border-radius:var(--radius-xs,4px);cursor:pointer;background:0 0;border:0;padding:5px 8px;font-size:11px;transition:color .15s}.dict-btn-cancel:hover{color:var(--ink)}.dictionary-rule-list{margin-top:var(--space-2);flex-direction:column;gap:4px;display:flex}.dictionary-rule{justify-content:space-between;align-items:center;gap:var(--space-2);background:var(--paper-subtle,#00000005);border:1px solid var(--line,#0000000d);border-radius:var(--radius-xs,4px);color:var(--ink);padding:6px 8px;font-size:12px;display:flex}.dict-rule-content{align-items:center;gap:6px;display:flex;overflow:hidden}.dict-rule-from{color:var(--muted);text-decoration:line-through;-webkit-text-decoration-color:var(--subtle);text-decoration-color:var(--subtle)}.dict-rule-arrow{color:var(--subtle);font-size:10px}.dict-rule-to{color:var(--ink);font-weight:600}.dict-rule-badge{background:var(--line,#0000000f);color:var(--muted);white-space:nowrap;border-radius:3px;padding:1px 5px;font-size:10px}.dict-rule-scope{color:var(--muted);white-space:nowrap;font-size:11px}.dictionary-help{margin-top:var(--space-2)}.replacement-preview p{gap:var(--space-1);padding:var(--space-2);border-radius:var(--radius-sm);background:var(--panel);color:var(--ink);margin:0;font-size:12px;display:grid}.replacement-preview .primary-button{margin-top:var(--space-1);justify-self:start}.reference-notes-card{height:100%;min-height:100%;box-shadow:none;background:0 0;flex:1;margin-bottom:0;padding:0;display:flex}.notes-reference-content{flex-direction:column;min-height:100%;display:flex}.field-label{color:var(--muted);font-size:12px;font-weight:600;display:block}.choice-menu{width:100%;position:relative}.choice-menu-trigger{width:100%;min-height:36px;padding:0 var(--space-3);border-radius:var(--radius-sm);background:var(--paper-subtle);color:var(--ink);text-align:left;justify-content:space-between;align-items:center;font-size:13px;display:flex}.choice-menu-trigger:hover{background:var(--surface-hover)}.choice-menu-list{z-index:20;top:calc(100% + var(--space-1));max-height:240px;padding:var(--space-1);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-md);display:grid;position:absolute;left:0;right:0;overflow-y:auto}.choice-menu-option{min-height:36px;padding:0 var(--space-2);border-radius:var(--radius-xs);color:var(--muted);text-align:left;background:0 0;justify-content:flex-start}.choice-menu-option:hover,.choice-menu-option.selected{background:var(--accent-soft);color:var(--accent)}.workspace-utility-panel .panel-heading{display:none}.notes-view{height:100%;min-height:0;padding:var(--space-5) var(--space-6);flex-direction:column;display:flex}.reference-notes-card>.notes-view{flex:1;width:100%}.workspace-view-header{justify-content:space-between;align-items:center;gap:var(--space-4);padding-bottom:var(--space-4);display:flex}.workspace-view-header>div{gap:var(--space-1);display:grid}.workspace-view-header strong{font-size:16px}.workspace-view-header span{color:var(--muted);font-size:12px}.notes-layout{gap:var(--space-5);flex:1;grid-template-columns:minmax(180px,.3fr) minmax(0,1fr);min-height:0;display:grid}.notes-view-actions,.note-list-toolbar,.note-bulk-actions{align-items:center;gap:var(--space-2);display:flex}.notes-view-actions{margin-left:auto}.note-filter-button,.note-bulk-action{width:auto;min-width:0;min-height:32px;padding:0 var(--space-2);border-radius:var(--radius-sm);color:var(--subtle);font:inherit;white-space:nowrap;transition:background var(--motion-fast), color var(--motion-fast);background:0 0;border:0;justify-content:center;align-items:center;line-height:1;display:inline-flex}.note-filter-button:hover,.note-bulk-action:hover{background:var(--surface-hover);color:var(--ink)}.notes-view-actions .active{color:var(--accent);background:var(--accent-soft)}.note-list-toolbar{min-height:32px;padding:0 var(--space-1);color:var(--muted);justify-content:space-between;font-size:12px}.note-list-toolbar label{align-items:center;gap:var(--space-1);display:inline-flex}.note-bulk-actions{align-items:center;gap:var(--space-1);display:flex}.note-bulk-actions .danger{color:var(--danger)}.note-list{align-content:start;gap:var(--space-1);display:grid;overflow-y:auto}.note-editor{min-height:0;padding:var(--space-5);border-radius:var(--radius-lg);background:color-mix(in srgb, var(--note-color) 20%, var(--paper));box-shadow:var(--shadow-xs);grid-template-rows:auto minmax(0,1fr) auto;display:grid}.note-editor>input{padding:0 0 var(--space-3);color:var(--ink);background:0 0;font-size:18px;font-weight:600}.note-editor>textarea{min-height:0;padding:var(--space-3) 0;resize:none;color:var(--ink);font-family:var(--font-sans);background:0 0;font-size:14px;line-height:1.8}.note-editor footer{color:var(--muted);justify-content:space-between;align-items:center;font-size:12px;display:flex}.note-editor label{align-items:center;gap:var(--space-2);display:inline-flex}.workspace-empty{color:var(--muted);place-items:center;display:grid}.notes-empty-create{justify-content:center;align-items:center;gap:var(--space-2);min-height:calc(var(--space-5) + var(--space-3));padding:0 var(--space-3);border-radius:var(--radius-md);background:var(--accent-soft);color:var(--accent);font:inherit;transition:background var(--motion-fast), color var(--motion-fast);border:0;font-weight:600;display:inline-flex}.notes-empty-create:hover{background:var(--surface-hover);color:var(--ink)}.side-panel .notes-view{padding:var(--space-4)}.side-panel .workspace-view-header{padding-bottom:var(--space-3);flex-wrap:wrap;justify-content:flex-start}.side-panel .notes-view-actions{width:100%;margin-left:0}.side-panel .note-filter-button{flex:1}.notes-heading-mark{border-radius:var(--radius-sm);background:var(--accent-soft);width:32px;height:32px;color:var(--accent);place-items:center;display:grid}.side-panel .notes-layout{gap:var(--space-2);flex-direction:column;display:flex;overflow-y:visible}.side-panel .note-list{gap:var(--space-1);flex-shrink:0;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));max-height:144px;padding:0;display:grid}.side-panel .note-list-toolbar{grid-column:1/-1}.side-panel .note-list-item{border-radius:var(--radius-md);background:0 0;justify-content:center;align-items:center;width:100%;height:40px;margin:0;padding:0;display:flex;position:relative}.side-panel .note-list-select{border-radius:var(--radius-md);width:40px;height:40px;color:var(--muted);cursor:pointer;transition:background var(--motion-fast), color var(--motion-fast);background:0 0;border:0;justify-content:center;align-items:center;margin:0;padding:0;display:flex;position:relative}.side-panel .note-list-select:hover,.side-panel .note-list-item.active .note-list-select{background:var(--surface-hover);color:var(--ink)}.side-panel .note-list-glyph{border-radius:var(--radius-md);width:32px;height:32px;color:var(--ink);font-family:var(--font-sans);text-align:center;box-shadow:var(--shadow-xs);-webkit-user-select:none;user-select:none;flex:none;justify-content:center;align-items:center;margin:0;padding:0;font-size:13px;font-weight:700;line-height:1;display:flex}.side-panel .note-list-pin{background:var(--paper);width:14px;height:14px;box-shadow:var(--shadow-xs);color:var(--accent);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;bottom:2px;right:2px}.side-panel .note-list-item>input{opacity:0;pointer-events:none;width:1px;height:1px;margin:0;position:absolute;top:0;left:0}.side-panel .note-list-item:has(>input:focus-visible) .note-list-select{outline:2px solid var(--accent);outline-offset:2px}.side-panel .note-editor{padding:var(--space-3);flex:1;min-height:180px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.memory-map-list{gap:var(--space-1);margin-top:var(--space-3);display:grid}.memory-map-row{align-items:center;gap:var(--space-2);width:100%;padding:var(--space-2);border-radius:var(--radius-xs);background:var(--panel);color:var(--ink);text-align:left;transition:all var(--motion-fast);grid-template-columns:1fr 64px 24px;font-size:12px;display:grid}.memory-map-row:hover{background:var(--paper);box-shadow:var(--shadow-xs)}.memory-map-row small{color:var(--muted);grid-column:1/-1;font-size:12px}.memory-bar{background:var(--border-subtle);border-radius:2px;height:4px;overflow:hidden}.memory-bar i{background:var(--accent);border-radius:2px;height:100%;display:block}.export-card{margin-top:var(--space-3)}.export-actions-grid{gap:var(--space-2);margin-top:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(130px,1fr));display:grid}.export-action-btn{background:var(--paper-subtle,#00000008);border:1px solid var(--line,#00000014);border-radius:var(--radius-xs,4px);color:var(--ink);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:6px;padding:6px 10px;font-size:11px;font-weight:500;transition:all .12s;display:inline-flex}.export-action-btn:hover{background:var(--line,#0000000f);color:var(--ink)}.note-editor-header{margin-bottom:var(--space-2);justify-content:space-between;align-items:center;gap:8px;display:flex}.note-editor-title{min-width:0;color:var(--ink);background:0 0;border:0;flex:1;padding:2px 0;font-family:inherit;font-size:14px;font-weight:600}.note-editor-title:focus{outline:none}.note-editor-status{flex-shrink:0;font-size:11px}.note-status-saving{color:var(--muted)}.note-status-saved{color:var(--accent);align-items:center;display:flex}.note-status-error{color:var(--danger)}.note-editor-body{width:100%;color:var(--ink);resize:vertical;box-sizing:border-box;background:0 0;border:0;min-height:80px;padding:4px 0;font-family:inherit;font-size:13px;line-height:1.6}.note-editor-body:focus{outline:none}.note-editor-footer{padding-top:var(--space-2);margin-top:var(--space-2);border-top:0;justify-content:space-between;align-items:center;display:flex}.note-pin-label{color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:6px;font-size:11px;display:inline-flex}.side-panel .workspace-empty{min-height:calc(var(--space-8) + var(--space-8) + var(--space-5));flex:1}.side-panel .note-editor>input,.side-panel .note-editor-title{font-size:14px;font-weight:600}.side-panel .note-editor>textarea{min-height:90px;font-size:13px}.side-panel .note-editor-footer{padding-top:var(--space-2);margin-top:var(--space-2);border-top:0}.side-panel .note-pin-label{border-radius:var(--radius-sm);justify-content:center;width:32px;height:32px}.side-panel .note-pin-label:has(input:checked){background:var(--accent-soft);color:var(--accent)}.side-panel .note-pin-label input{opacity:0;width:1px;height:1px;position:absolute}.side-panel .reference-notes-card{box-shadow:none;background:0 0;padding:0}.side-panel .notes-view{container-type:inline-size}.side-panel .notes-view-actions{width:auto;margin-left:auto;display:flex}.side-panel .note-header-action,.side-panel .note-bulk-action{border-radius:var(--radius-sm);width:32px;min-width:32px;height:32px;min-height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.side-panel .note-header-action:hover,.side-panel .note-header-action.active,.side-panel .note-bulk-action:hover,.side-panel .note-bulk-action.active{background:var(--accent-soft);color:var(--accent)}.side-panel .note-selection-toolbar{min-height:32px;padding:0 var(--space-1);color:var(--muted);grid-column:1/-1;justify-content:space-between;align-items:center;font-size:12px;display:flex}.side-panel .note-list-item.selected .note-list-select{background:var(--accent-soft);color:var(--accent)}.side-panel .note-list-check{background:var(--accent);width:16px;height:16px;color:var(--paper);box-shadow:var(--shadow-xs);border-radius:50%;place-items:center;display:grid;position:absolute;top:0;right:0}.side-panel .note-list-title{min-width:0;color:var(--ink);text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;display:none;overflow:hidden}.side-panel .note-editor{padding:var(--space-3);border-radius:var(--radius-md);background:var(--paper);box-shadow:0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), var(--shadow-xs)}.side-panel .note-editor-header{padding-left:var(--space-2);border-radius:var(--radius-xs)}.side-panel .note-editor-header:before{width:var(--space-1);height:var(--space-4);border-radius:var(--radius-xs);background:var(--note-color);content:""}.side-panel .note-editor:focus-within{box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent), var(--shadow-xs)}.side-panel .note-color-picker{align-items:center;gap:var(--space-1);border:0;margin-left:auto;padding:0;display:inline-flex}.side-panel .note-color-option{width:var(--space-4);min-width:var(--space-4);height:var(--space-4);min-height:var(--space-4);background:var(--note-option-color);box-shadow:0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.side-panel .note-color-option:hover,.side-panel .note-color-option:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.side-panel .note-color-option.active{box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--note-option-color)}.side-panel .note-editor-title:focus-visible,.side-panel .note-editor-body:focus-visible{outline:none}@container (width>=360px){.side-panel .note-list{grid-template-columns:minmax(0,1fr);max-height:176px}.side-panel .note-list-select{justify-content:flex-start;gap:var(--space-2);width:100%;padding:0 var(--space-2)}.side-panel .note-list-title{display:block}}.history-heading{margin-bottom:var(--space-3);padding:0 var(--space-1);color:var(--ink);justify-content:space-between;align-items:center;gap:var(--space-2);font-size:12px;font-weight:600;display:flex}.history-actions{flex-shrink:0;align-items:center;gap:4px;display:flex}.history-action-btn{border-radius:var(--radius-xs,4px);background:var(--paper);border:1px solid var(--line,#00000014);color:var(--muted);cursor:pointer;transition:all var(--motion-fast);white-space:nowrap;align-items:center;gap:4px;padding:3px 8px;font-size:11px;font-weight:500;display:inline-flex}.history-action-btn:hover{color:var(--accent);background:var(--accent-soft);border-color:#0000}.history-list{gap:var(--space-2);display:grid}.history-row{justify-content:space-between;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--paper);border:1px solid var(--line,#0000000f);box-shadow:var(--shadow-xs);min-width:0;font-size:12px;display:flex}.history-version{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;font-weight:600;overflow:hidden}.history-row-actions{flex-shrink:0;align-items:center;gap:2px;display:flex}.history-restore,.history-compare,.history-delete{border-radius:var(--radius-xs);min-height:24px;color:var(--muted);cursor:pointer;transition:all var(--motion-fast);background:0 0;border:0;align-items:center;gap:2px;padding:2px 6px;font-size:11px;display:inline-flex}.history-restore:hover{background:var(--accent);color:var(--accent-fg,#fff)}.history-delete:hover{background:var(--danger-soft);color:var(--danger)}.history-compare:hover{background:var(--surface-hover);color:var(--ink)}.history-compare[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.search-label{color:var(--muted);margin-bottom:var(--space-1);padding:0 var(--space-1);text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:600;display:block}.search-input{border-radius:var(--radius-sm);background:var(--paper);border:1px solid var(--line,#0000001f);width:100%;color:var(--ink);margin-bottom:var(--space-3);box-sizing:border-box;padding:7px 10px;font-family:inherit;font-size:12px;transition:all .15s}.search-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft,#0064ff26);outline:none}.search-result{width:100%;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--paper);border:1px solid var(--line,#0000000f);text-align:left;color:var(--ink);box-shadow:var(--shadow-xs);cursor:pointer;transition:all var(--motion-fast);box-sizing:border-box;margin-bottom:var(--space-2);font-size:12px;display:block}.search-result:hover{border-color:var(--accent);background:var(--paper);box-shadow:var(--shadow-sm)}.search-result strong{color:var(--ink);margin-bottom:2px;font-size:12px;font-weight:600;display:block}.search-result small{color:var(--muted);margin-bottom:3px;font-size:11px;display:block}.search-result span{color:var(--subtle);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.4;display:block;overflow:hidden}.workspace-form-field{gap:var(--space-1);color:var(--muted);font-size:12px;display:grid}.editor-column{background:var(--bg);flex-direction:column;height:100%;min-height:0;display:flex;position:relative;overflow:hidden}.editor-toolbar{height:40px;padding:0 var(--space-6);-webkit-user-select:none;user-select:none;background:0 0;flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.breadcrumb{align-items:center;gap:var(--space-2);color:var(--muted);font-family:var(--font-sans);font-size:12px;display:flex}.breadcrumb strong{color:var(--ink);font-weight:600}.editor-status{color:var(--subtle);font-size:12px}.toolbar-button{align-items:center;gap:var(--space-1);border-radius:var(--radius-sm);color:var(--muted);transition:all var(--motion-fast);background:0 0;padding:4px 8px;font-size:12px;font-weight:500;display:inline-flex}.toolbar-button:hover{background:var(--surface-hover);color:var(--ink)}.toolbar-button.active,.toolbar-button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);font-weight:600}.shortcut{color:var(--subtle);font-size:12px;font-family:var(--font-mono);background:var(--surface-hover);border-radius:2px;padding:2px 4px}.editor-host{min-height:0;padding:var(--space-4) clamp(16px, 4vw, 64px) var(--space-8);cursor:text;background:var(--bg);flex:1;overflow:hidden}.editor-frame{flex-direction:column;height:100%;min-height:0;display:flex;position:relative}.editor-footer{justify-content:flex-end;align-items:center;gap:var(--space-4);height:24px;padding:0 var(--space-5);color:var(--subtle);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;flex-shrink:0;font-size:12px;display:flex}.cm-editor{background:var(--paper);border-radius:var(--radius-sm);max-width:800px;height:100%;min-height:0;box-shadow:var(--paper-shadow);letter-spacing:.03em;transition:box-shadow var(--motion);margin:0 auto;font-size:clamp(16px,1.1vw,18px);line-height:2.2;overflow:hidden}.cm-editor .cm-scroller{height:100%;overflow-y:auto}.cm-editor.cm-focused{outline:none}.cm-editor .cm-activeLine{background:var(--accent-soft);border-radius:var(--radius-xs)}.cm-editor .cm-content{min-height:100%;padding:calc(var(--space-6) + var(--typewriter-leading-space,0px)) clamp(24px, 5vw, 56px) var(--typewriter-trailing-space,360px);caret-color:var(--accent);color:var(--ink);font-family:var(--font-serif)}@media (max-width:760px),(max-height:540px) and (orientation:landscape){.workspace-tabs{height:32px;padding-inline:var(--space-2)}.workspace-tab{max-width:min(70vw,240px);height:28px;padding-inline:var(--space-2)}.editor-toolbar{height:32px;padding-inline:var(--space-3)}.breadcrumb{white-space:nowrap;min-width:0;max-width:72%;overflow:hidden}.breadcrumb span,.breadcrumb strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-status{flex:none;font-size:11px}.editor-host{padding:var(--space-2) var(--space-2) var(--space-5)}.cm-editor{border-radius:var(--radius-xs);max-width:none;font-size:clamp(16px,4.7vw,18px)}.cm-editor .cm-content{padding:calc(var(--space-5) + var(--typewriter-leading-space,0px)) var(--space-4) var(--typewriter-trailing-space,240px)}.editor-footer{display:none}.selection-tools{right:var(--space-2);bottom:var(--space-2);left:var(--space-2);max-width:none;overflow-x:auto;transform:none}.ruby-popover{min-width:min(260px, calc(100% - var(--space-4)))}}@media (max-height:540px) and (orientation:landscape){.workspace-tabs,.editor-toolbar{display:none}.editor-host{padding-top:var(--space-2);padding-bottom:var(--space-3)}.cm-editor .cm-content{padding-top:var(--space-4);padding-bottom:var(--typewriter-trailing-space,160px)}}.cm-editor.has-smooth-caret .cm-content{caret-color:#0000}.cm-editor .novel-smooth-caret{border-left:2px solid var(--accent);transition:left var(--motion-caret), top var(--motion-caret), height var(--motion-caret);will-change:left, top, height;margin-left:-1px}.cm-editor .cm-scroller{font-family:var(--font-serif);min-height:100%}.cm-editor .cm-placeholder{color:var(--muted);font-family:var(--font-serif)}.cm-syntax-mark{color:var(--muted);opacity:.45;-webkit-user-select:text;user-select:text;font-style:normal;font-weight:400}.cm-live-bold{color:var(--ink);font-weight:700}.cm-live-italic{font-style:italic}.cm-live-strikethrough{color:var(--muted);text-decoration:line-through}.cm-live-ruby{ruby-position:over;ruby-align:center}.cm-live-ruby rt{font-size:.55em;line-height:1;font-family:var(--font-sans);color:var(--muted);-webkit-user-select:none;user-select:none;text-align:center;font-weight:400}.cm-live-emphasis{-webkit-text-emphasis:var(--cm-live-emphasis-mark);text-emphasis:var(--cm-live-emphasis-mark);-webkit-text-emphasis:var(--cm-live-emphasis-mark);-webkit-text-emphasis-position:over;text-emphasis-position:over}.cm-live-heading{color:var(--ink);letter-spacing:.03em;font-weight:700}.cm-live-heading-1,.cm-live-chapter{color:var(--ink);letter-spacing:.04em;padding-bottom:2px;font-size:1.3rem;font-weight:700}.cm-live-heading-2{color:var(--ink);letter-spacing:.03em;padding-bottom:2px;font-size:1.2rem;font-weight:700}@keyframes search-hit-flash{0%{background-color:var(--accent-glow)}to{background-color:#0000}}.cm-search-hit-flash{animation:.35s ease-out forwards search-hit-flash}.cm-live-heading-3{color:var(--ink);font-size:1.1rem;font-weight:700}.cm-live-heading-4,.cm-live-heading-5,.cm-live-heading-6{color:var(--ink);font-size:1.05rem;font-weight:600}.cm-line.cm-live-pagebreak-line,.cm-line.cm-live-pagebreak-active{box-sizing:border-box;min-height:var(--space-7);align-items:center;display:flex}.cm-line.cm-live-pagebreak-line{gap:var(--space-3);color:var(--subtle);-webkit-user-select:none;user-select:none;justify-content:center}.cm-line.cm-live-pagebreak-line:before,.cm-line.cm-live-pagebreak-line:after{content:"";background:var(--line);flex:1;height:1px}.cm-live-pagebreak-source{font-size:0}.cm-live-pagebreak-source:after{content:"改ページ";font-size:11px;font-family:var(--font-sans);border-radius:var(--radius-xs);background:var(--surface-hover);color:var(--muted);letter-spacing:.05em;padding:2px 8px;display:inline-block}.cm-live-link{color:var(--accent);text-underline-offset:3px;cursor:pointer;transition:opacity var(--motion-fast);text-decoration:underline}.cm-live-link:hover{opacity:.8}.bracket-palette{top:var(--space-3);z-index:50;align-items:center;gap:var(--space-2);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-lg);padding:8px 12px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.palette-label{color:var(--muted);font-size:12px;font-weight:600}.palette-options{gap:4px;display:flex}.palette-options button{border-radius:var(--radius-xs);min-width:32px;height:28px;color:var(--ink);transition:all var(--motion-fast);background:0 0;font-size:14px}.palette-options button:hover{background:var(--accent-soft);color:var(--accent)}.ruby-popover{top:var(--space-3);z-index:50;gap:var(--space-2);min-width:260px;padding:var(--space-3);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-lg);grid-template-columns:1fr auto;display:grid;position:absolute;left:50%;transform:translate(-50%)}.ruby-popover label{color:var(--muted);grid-column:1/-1;font-size:12px;font-weight:500}.ruby-popover input{border-radius:var(--radius-xs);background:var(--panel);min-width:0;color:var(--ink);padding:4px 8px;font-size:12px}.ruby-popover input:focus{background:var(--paper-subtle);box-shadow:0 0 0 2px var(--accent)}.ruby-popover button{border-radius:var(--radius-xs);padding:0 var(--space-3);background:var(--accent);color:var(--accent-fg);font-size:12px;font-weight:500}.selection-tools{bottom:var(--space-4);z-index:40;gap:var(--space-1);padding:var(--space-1);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-lg);display:flex;position:absolute;left:50%;transform:translate(-50%)}.selection-tools button{align-items:center;gap:var(--space-2);min-height:32px;padding:0 var(--space-3);border-radius:var(--radius-sm);color:var(--ink);background:0 0;font-size:12px;font-weight:600;display:inline-flex}.selection-tools-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.selection-tools button:hover,.selection-tools button:focus-visible{background:var(--accent-soft);color:var(--accent)}.selection-tools span{color:var(--subtle);font-family:var(--font-mono);font-size:11px;font-weight:400}.command-palette-layer{z-index:var(--z-modal,200);padding:clamp(48px, 12vh, 128px) var(--space-4) var(--space-4);animation:command-palette-fade .15s var(--ease) both;place-items:start center;display:grid;position:fixed;inset:0}.command-palette-backdrop{background:color-mix(in srgb, var(--ink) 16%, transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border:0;width:100%;height:100%;position:absolute;inset:0}.command-palette{border-radius:var(--radius-lg);background:var(--paper);width:min(560px,100%);box-shadow:var(--shadow-lg);animation:command-palette-pop .18s var(--ease) both;position:relative;overflow:hidden}@keyframes command-palette-fade{0%{opacity:0}to{opacity:1}}@keyframes command-palette-pop{0%{opacity:0;transform:translateY(-6px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.command-palette-heading{align-items:center;gap:var(--space-3);min-height:48px;padding:0 var(--space-4);color:var(--muted);display:flex}.command-palette-heading input{width:100%;color:var(--ink);font:inherit;background:0 0;border:0;outline:0}.command-palette-list{max-height:min(384px,52vh);padding:var(--space-2);overflow-y:auto}.command-palette-item{align-items:center;gap:var(--space-2);width:100%;min-height:40px;padding:0 var(--space-3);border-radius:var(--radius-sm);color:var(--ink);text-align:left;background:0 0;grid-template-columns:20px minmax(0,1fr) auto;display:grid}.command-palette-item:hover,.command-palette-item:focus-visible{background:var(--accent-soft);outline:0}.command-palette-item small,.command-palette-hint{color:var(--subtle);font-size:12px}.command-palette-hint{padding:var(--space-3) var(--space-4);background:var(--panel);margin:0}.command-palette-hint kbd{padding:2px var(--space-1);border-radius:var(--radius-xs);background:var(--surface-hover);font-family:var(--font-mono)}.app-shell.is-focus-mode{grid-template-rows:1fr}.app-shell.is-focus-mode .app-header,.app-shell.is-focus-mode .app-footer,.app-shell.is-focus-mode .activity-bar,.app-shell.is-focus-mode .outline-panel,.app-shell.is-focus-mode .notes-panel,.app-shell.is-focus-mode .sidebar-resize-handle,.app-shell.is-focus-mode .workspace-tabs,.app-shell.is-focus-mode .editor-toolbar,.app-shell.is-focus-mode .editor-footer{display:none}.app-shell.is-focus-mode .workspace{grid-template-columns:1fr}.app-shell.is-focus-mode .workspace>.editor-column{grid-column:1}.cm-proofing-issue{-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;cursor:text}.cm-proofing-error{-webkit-text-decoration:underline wavy var(--danger);text-decoration:underline wavy var(--danger);text-underline-offset:3px;text-decoration-thickness:1.5px}.cm-proofing-warning{-webkit-text-decoration:underline wavy var(--warning);text-decoration:underline wavy var(--warning);text-underline-offset:3px;text-decoration-thickness:1.5px}.cm-proofing-info{-webkit-text-decoration:underline dotted var(--muted);text-decoration:underline dotted var(--muted);text-underline-offset:3px;text-decoration-thickness:1.5px}.home-shell{background:var(--bg);flex-direction:column;width:100%;height:100vh;display:flex;overflow:hidden}@supports (height:100dvh){.home-shell{height:var(--visual-viewport-height,100dvh)}}.home-header{background:0 0;flex-shrink:0;justify-content:space-between;align-items:center;height:72px;padding:0 clamp(24px,6vw,80px);display:flex}.home-brand{align-items:center;gap:var(--space-3);display:flex}.home-brand .brand-mark{border-radius:var(--radius-sm);background:var(--ink);width:32px;height:32px;color:var(--paper);font-family:var(--font-serif);box-shadow:var(--shadow-xs);place-items:center;font-size:14px;font-weight:700;display:grid}.home-brand .brand-info{flex-direction:column;gap:2px;display:flex}.home-brand .brand-title{font-family:var(--font-sans);letter-spacing:-.01em;color:var(--ink);font-size:14px;font-weight:600}.home-brand .home-view-title{color:var(--muted);font-size:12px}.home-content{min-height:0;padding:var(--space-6) clamp(24px, 6vw, 80px) var(--space-8);flex:1;overflow-y:auto}.home-container{max-width:1120px;margin:0 auto}.home-section-header{margin-bottom:var(--space-5);justify-content:space-between;align-items:center;display:flex}.home-section-header h2{margin:var(--space-1) 0 0;font-family:var(--font-sans);letter-spacing:-.01em;color:var(--ink);font-size:18px;font-weight:600}.home-eyebrow,.novel-card-resume-label{color:var(--accent);letter-spacing:.08em;font-size:12px;font-weight:600;display:block}.home-stats-badge{color:var(--subtle);font-variant-numeric:tabular-nums;margin-left:var(--space-2);font-size:12px}.primary-button{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);background:var(--ink);color:var(--paper);letter-spacing:.01em;box-shadow:var(--shadow-xs);transition:background var(--motion), transform var(--motion-fast), box-shadow var(--motion);border:0;padding:8px 16px;font-size:13px;font-weight:500;display:inline-flex}.primary-button:hover{background:var(--accent);color:var(--accent-fg);box-shadow:var(--shadow-sm);transform:translateY(-1px)}.primary-button:active{box-shadow:var(--shadow-xs);transform:translateY(0)}.secondary-button{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);background:var(--surface-hover);color:var(--ink-secondary);transition:all var(--motion-fast);border:0;padding:8px 16px;font-size:13px;font-weight:500;display:inline-flex}.secondary-button:hover{background:var(--surface-active);color:var(--ink)}.backdrop-dismiss{cursor:default;background:0 0;border:0;width:100%;height:100%;position:absolute;inset:0}.bookshelf-grid{align-items:stretch;gap:var(--space-6) var(--space-5);padding:0 var(--space-3) var(--space-7);isolation:isolate;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));display:grid;position:relative}.bookshelf-grid:after{right:0;bottom:var(--space-2);height:var(--space-2);border-radius:var(--radius-xs);background:var(--panel);box-shadow:0 4px 0 var(--accent-soft), 0 8px 16px var(--accent-glow);content:"";z-index:-1;position:absolute;left:0}.loading-state{color:var(--muted);padding:var(--space-7) var(--space-4);text-align:center;border-radius:var(--radius-md);background:var(--panel);grid-column:1/-1;font-size:13px}.novel-card{border-radius:var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);background:linear-gradient(105deg, var(--paper-subtle) 0 10px, var(--paper) 10px);min-height:256px;box-shadow:4px 4px 0 var(--panel), var(--shadow-xs);transition:transform var(--motion-fast), box-shadow var(--motion), background var(--motion);flex-direction:column;display:flex;position:relative;overflow:hidden}.novel-card.is-recent{box-shadow:var(--shadow-sm)}.novel-card:hover{box-shadow:5px 7px 0 var(--panel), var(--shadow-md);transform:translateY(-4px)rotate(-.3deg)}.novel-card-accent-strip{opacity:.85;height:4px;position:absolute;top:0;left:10px;right:0}.novel-card:before{background:linear-gradient(90deg, var(--accent-soft), transparent);content:"";pointer-events:none;width:10px;position:absolute;top:0;bottom:0;left:0}.novel-card-main-action{width:100%;height:100%;padding:var(--space-5) var(--space-4) var(--space-2) var(--space-5);text-align:left;cursor:pointer;background:0 0;flex-direction:column;flex:1;display:flex}.novel-card-header{justify-content:space-between;align-items:flex-start;gap:var(--space-2);margin-bottom:var(--space-2);display:flex}.novel-card-title{font-family:var(--font-serif);letter-spacing:.02em;color:var(--ink);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:18px;font-weight:600;line-height:1.45;display:-webkit-box;overflow:hidden}.novel-card-resume-label{margin-bottom:var(--space-1)}.novel-card-desc{color:var(--muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-bottom:auto;font-size:12px;line-height:1.6;display:-webkit-box;overflow:hidden}.novel-card-footer{padding:0 var(--space-4) var(--space-3) var(--space-5);color:var(--subtle);justify-content:space-between;align-items:center;font-size:12px;display:flex}.novel-card-footer time{font-variant-numeric:tabular-nums}.novel-card-writing-summary{color:var(--subtle);font-variant-numeric:tabular-nums;margin-top:var(--space-3);font-size:12px}.novel-card-actions{align-items:center;gap:var(--space-1);display:flex}.novel-card-actions .icon-btn-danger{border-radius:var(--radius-xs);width:28px;height:28px;color:var(--subtle);transition:all var(--motion-fast);place-items:center;display:grid}.novel-card-actions .icon-btn-danger:hover{background:var(--accent-soft);color:var(--accent)}.create-novel-dialog-backdrop{z-index:var(--z-modal,200);padding:var(--space-4);background:var(--overlay);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);place-items:center;display:grid;position:fixed;inset:0;overflow-y:auto}.create-novel-dialog{z-index:1;overscroll-behavior:contain;width:min(480px,92vw);max-height:calc(100vh - 32px);padding:var(--space-5);border-radius:var(--radius-lg);background:var(--paper);box-shadow:var(--shadow-lg);position:relative;overflow-y:auto}@supports (height:100dvh){.create-novel-dialog{max-height:calc(100dvh - 32px)}}.create-novel-dialog-header{margin-bottom:var(--space-4);justify-content:space-between;align-items:center;display:flex}.create-novel-dialog-header h3{font-family:var(--font-sans);color:var(--ink);margin:0;font-size:16px;font-weight:600}.form-group{margin-bottom:var(--space-4);gap:8px;display:grid}.form-group label{color:var(--muted);letter-spacing:.01em;font-size:12px;font-weight:600}.form-group input[type=text],.form-group textarea{border-radius:var(--radius-sm);background:var(--panel);color:var(--ink);transition:background var(--motion-fast), box-shadow var(--motion-fast);padding:8px 12px;font-size:13px}.form-group input[type=text]:focus,.form-group textarea:focus{background:var(--paper-subtle);box-shadow:0 0 0 2px var(--accent)}.form-group input[type=color]{border-radius:var(--radius-sm);background:var(--panel);cursor:pointer;width:40px;height:32px;padding:2px}@media (max-width:760px){.create-novel-dialog .quiet-button,.novel-card-actions .icon-btn-danger{width:40px;height:40px}}.form-group textarea{resize:vertical;min-height:80px;line-height:1.6}.form-actions{justify-content:flex-end;gap:var(--space-2);margin-top:var(--space-5);display:flex}@media (max-width:640px){.home-header{height:64px;padding-inline:var(--space-4)}.home-content{padding:var(--space-4) var(--space-4) var(--space-7)}.home-section-header{align-items:flex-start;gap:var(--space-3)}.home-section-header .primary-button span{display:none}.bookshelf-grid{grid-template-columns:1fr;padding-inline:0}}.mac-settings-shell{background:var(--bg);width:100%;min-width:0;height:100vh;color:var(--ink);font-family:var(--font-sans);display:flex;overflow:hidden}@supports (height:100dvh){.mac-settings-shell{height:var(--visual-viewport-height,100dvh)}}.mac-settings-sidebar{background:var(--panel);width:240px;min-width:220px;max-width:280px;height:100%;padding:var(--space-4) var(--space-3);-webkit-user-select:none;user-select:none;flex-direction:column;flex-shrink:0;display:flex}.mac-settings-sidebar-header{gap:var(--space-3);margin-bottom:var(--space-4);padding:0 var(--space-2);flex-direction:column;display:flex}.mac-sidebar-back-btn{align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);color:var(--muted);cursor:pointer;transition:all var(--motion-fast);background:0 0;border:none;align-self:flex-start;font-size:12px;font-weight:500;display:inline-flex}.mac-sidebar-back-btn:hover{background:var(--surface-hover);color:var(--ink)}.mac-settings-title-group{justify-content:space-between;align-items:center;display:flex}.mac-settings-app-title{letter-spacing:-.02em;color:var(--ink);margin:0;font-size:18px;font-weight:700}.mac-settings-nav{flex-direction:column;gap:2px;display:flex;overflow-y:auto}.mac-nav-item{align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);color:var(--ink-secondary);text-align:left;cursor:pointer;transition:all var(--motion-fast);background:0 0;border:none;font-size:13px;font-weight:500;display:flex}.mac-nav-item:hover{background:var(--surface-hover);color:var(--ink)}.mac-nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.mac-nav-icon{color:inherit;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.mac-nav-label{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.mac-settings-main{overscroll-behavior:contain;height:100%;padding:var(--space-6) var(--space-7) var(--space-8);-webkit-overflow-scrolling:touch;flex:1;overflow-y:auto}.mac-settings-container{max-width:680px;margin:0 auto}.mac-pane-header{margin-bottom:var(--space-6)}.mac-pane-header h2{margin:0 0 var(--space-1);letter-spacing:-.02em;color:var(--ink);font-size:22px;font-weight:700}.mac-pane-header p{color:var(--muted);margin:0;font-size:13px;line-height:1.5}.mac-group-label{margin:var(--space-5) 0 var(--space-2) var(--space-2);text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-size:11px;font-weight:600}.mac-group{background:var(--paper);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);margin-bottom:var(--space-4);border:0;overflow:hidden}.mac-row{justify-content:space-between;align-items:center;gap:var(--space-4);padding:var(--space-3) var(--space-4);min-height:48px;display:flex}.mac-row+.mac-row{margin-top:1px}.mac-row-block{align-items:stretch;gap:var(--space-3);flex-direction:column}.mac-row-text{flex-direction:column;flex:1;gap:2px;display:flex}.mac-row-title{color:var(--ink);font-size:13px;font-weight:500}.mac-row-desc{color:var(--muted);font-size:12px;line-height:1.45}.theme-color-list{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.theme-color-item{align-items:center;gap:var(--space-2);padding:var(--space-2);border-radius:var(--radius-sm);background:var(--paper-subtle);grid-template-columns:auto minmax(0,1fr) 88px auto auto;display:grid}.theme-color-swatch{border-radius:var(--radius-sm);width:32px;height:32px;box-shadow:var(--shadow-xs);cursor:pointer;border:0}.theme-color-swatch:focus-visible,.theme-color-name:focus-visible,.theme-color-code:focus-visible,.theme-color-item input[type=color]:focus-visible,.theme-color-remove:focus-visible,.settings-add-theme-color:focus-visible,.theme-color-swatch.selected{outline:2px solid var(--accent);outline-offset:2px}.theme-color-name{border-radius:var(--radius-xs);min-width:0;padding:var(--space-2);background:var(--paper);color:var(--ink);font:inherit;border:0}.theme-color-code,.mac-color-code{border-radius:var(--radius-xs);min-width:0;padding:var(--space-2);background:var(--paper);color:var(--ink);font-family:var(--font-mono);text-transform:lowercase;border:0;font-size:12px}.mac-color-code:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.theme-color-item input[type=color]{border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:0;width:32px;height:32px;padding:0}.theme-color-remove,.settings-add-theme-color{justify-content:center;align-items:center;gap:var(--space-1);border-radius:var(--radius-sm);color:var(--muted);cursor:pointer;background:0 0;border:0;display:inline-flex}.theme-color-remove{width:32px;height:32px}.theme-color-remove:hover:not(:disabled),.settings-add-theme-color:hover{background:var(--surface-hover);color:var(--accent)}.theme-color-remove:disabled{cursor:not-allowed;opacity:.45}.settings-add-theme-color{padding:var(--space-2);font:inherit;align-self:flex-start;font-size:12px}.settings-replacement-form{align-items:center;gap:var(--space-2);grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(120px,auto) auto;display:grid}.settings-replacement-input{min-width:0;padding:var(--space-2);border-radius:var(--radius-xs);background:var(--paper-subtle);color:var(--ink);font:inherit;border:0}.settings-replacement-input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.settings-replacement-scope{color:var(--muted);white-space:nowrap;font-size:12px}.settings-replacement-arrow{color:var(--muted)}.settings-replacement-list{gap:var(--space-1);flex-direction:column;display:flex}.settings-replacement-rule{align-items:center;gap:var(--space-2);padding:var(--space-2);border-radius:var(--radius-xs);background:var(--paper-subtle);color:var(--ink);grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto auto;display:grid}@media (max-width:640px){.settings-replacement-form{grid-template-columns:1fr auto 1fr}.settings-replacement-scope{grid-column:1/-1}.settings-replacement-submit{grid-column:1/-1;justify-self:end}}.mac-switch{--bookmark-switch-motion:.18s var(--ease);border-radius:var(--radius-md);background:var(--panel);cursor:pointer;width:40px;height:24px;padding:var(--space-1);transition:background-color var(--bookmark-switch-motion), box-shadow var(--bookmark-switch-motion), transform var(--motion-fast);border:0;outline:none;flex-shrink:0;align-items:center;display:inline-flex;position:relative;overflow:hidden}@media (hover:hover){.mac-switch:hover{box-shadow:0 0 0 2px var(--accent-soft)}}.mac-switch:active{transform:scale(.98)}.mac-switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mac-switch-thumb{top:var(--space-1);left:var(--space-1);width:var(--space-4);height:var(--space-4);border-radius:var(--radius-xs) var(--radius-xs) var(--radius-sm) var(--radius-sm);background:var(--paper);box-shadow:var(--shadow-xs);transition:transform var(--bookmark-switch-motion), background-color var(--bookmark-switch-motion), box-shadow var(--bookmark-switch-motion);position:absolute;transform:translate(0)}.mac-switch-thumb:after{top:var(--space-1);right:var(--space-1);left:var(--space-1);background:var(--accent-soft);border-radius:var(--radius-xs);content:"";opacity:.72;height:1px;transition:opacity var(--bookmark-switch-motion);position:absolute}.mac-switch.active{background:var(--accent)}.mac-switch.active .mac-switch-thumb{background:var(--accent-fg);box-shadow:0 1px 3px var(--accent-glow);transform:translate(16px)}.mac-switch.active .mac-switch-thumb:after{opacity:.24}.mac-theme-grid{gap:var(--space-2);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.mac-preset-card{align-items:center;gap:var(--space-1);padding:var(--space-3) var(--space-2);border-radius:var(--radius-sm);background:var(--paper-subtle);cursor:pointer;-webkit-user-select:none;user-select:none;transition:all var(--motion-fast);border:0;flex-direction:column;display:flex;position:relative}.mac-preset-card input{cursor:pointer;opacity:0;width:100%;height:100%;position:absolute;inset:0}.mac-preset-card:hover{background:var(--surface-hover)}.mac-preset-card.selected{background:var(--accent-soft);box-shadow:0 0 0 2px var(--accent)}.mac-preset-swatch{width:32px;height:32px;box-shadow:var(--shadow-xs);background:linear-gradient(135deg, var(--paper) 50%, var(--panel) 50%);border:0;border-radius:50%}.mac-theme-name{color:var(--ink);font-size:12px;font-weight:500}.mac-preset-description{color:var(--muted);text-align:center;font-size:11px;line-height:1.35}.mac-color-picker-wrap{align-items:center;gap:var(--space-2);display:inline-flex}.mac-color-picker-wrap input[type=color]{border-radius:var(--radius-xs);background:var(--paper-subtle);cursor:pointer;width:36px;height:28px;box-shadow:var(--shadow-xs);border:0;padding:2px}.mac-color-value{width:88px;font-size:12px;font-family:var(--font-mono);color:var(--muted)}.mac-segmented-control{background:var(--panel);border-radius:var(--radius-sm);border:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:3px;display:grid}.mac-segment-btn{min-height:28px;padding:0 var(--space-2);border-radius:var(--radius-xs);color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;transition:all var(--motion-fast);justify-content:center;align-items:center;font-size:12px;font-weight:500;display:inline-flex}.mac-segment-btn input{opacity:0;pointer-events:none;position:absolute}.mac-segment-btn:hover{color:var(--ink)}.mac-segment-btn.selected{background:var(--paper);color:var(--ink);box-shadow:var(--shadow-xs);font-weight:600}.mac-input-group{align-items:center;gap:var(--space-1);display:inline-flex}.mac-number-input{border-radius:var(--radius-xs);width:90px;min-height:30px;padding:0 var(--space-2);background:var(--paper-subtle);color:var(--ink);text-align:right;font-size:13px;font-family:var(--font-mono);border:0}.mac-number-input:focus{outline:2px solid var(--accent);outline-offset:-1px}.mac-shortcut-button{border:1px solid var(--line,#00000024);border-radius:var(--radius-xs,5px);background:var(--paper-subtle,#00000008);min-width:112px;color:var(--ink);font:inherit;cursor:pointer;padding:7px 10px;font-size:12px;font-weight:600}.mac-shortcut-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mac-inline-error{color:var(--warning,#a33);margin:0;font-size:12px}.mac-shortcut-hint{margin:var(--space-2) var(--space-4) var(--space-3);display:block}.mac-input-unit{color:var(--muted);font-size:12px}.mac-backup-input-row{gap:var(--space-2);display:flex}.mac-text-input{border-radius:var(--radius-xs);min-height:32px;padding:0 var(--space-3);background:var(--paper-subtle);color:var(--ink);border:0;flex:1;font-size:13px}.mac-text-input:focus{outline:2px solid var(--accent);outline-offset:-1px}.mac-action-btn{min-height:32px;padding:0 var(--space-4);border-radius:var(--radius-xs);cursor:pointer;transition:all var(--motion-fast);white-space:nowrap;border:none;justify-content:center;align-items:center;font-size:12px;font-weight:500;display:inline-flex}.mac-action-btn.primary{background:var(--accent);color:var(--accent-fg)}.mac-action-btn.primary:hover{filter:brightness(1.08)}.mac-status-text{margin:var(--space-1) 0 0;color:var(--muted);font-size:12px}.slideshow-interval-row{position:relative}.novel-select-trigger{justify-content:space-between;align-items:center;gap:var(--space-2);min-width:88px;padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);background:var(--paper-subtle);box-shadow:var(--shadow-xs);color:var(--ink);text-align:left;transition:background-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);display:inline-flex}.novel-select-trigger:hover,.novel-select-trigger[aria-expanded=true]{background:var(--accent-soft);box-shadow:var(--shadow-sm)}.novel-select-trigger:active{transform:scale(.98)}.novel-select-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.novel-select-trigger svg{color:var(--accent);transition:transform var(--motion-fast)}.novel-select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.novel-select-value{font-size:13px;font-weight:500}.novel-select-menu{z-index:var(--z-modal);width:96px;padding:var(--space-1);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--paper-shadow);transform-origin:100% 0;animation:novel-select-menu-open var(--motion-fast) both;flex-direction:column;display:flex;position:fixed}.novel-select-option{width:100%;padding:var(--space-2);border-radius:var(--radius-sm);color:var(--ink);text-align:left;transition:background-color var(--motion-fast), transform var(--motion-fast);justify-content:flex-start;display:flex}.novel-select-option:hover,.novel-select-option:focus-visible{background:var(--surface-hover)}.novel-select-option:active{transform:scale(.99)}.novel-select-option.selected{background:var(--accent-soft)}@keyframes novel-select-menu-open{0%{opacity:0;transform:translateY(calc(-1 * var(--space-1))) scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.mac-select{appearance:none;background:var(--paper,#fff);border:1px solid var(--line,#00000026);border-radius:var(--radius-xs,5px);font:inherit;color:var(--ink);cursor:pointer;transition:all var(--motion-fast);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;padding:5px 26px 5px 10px;font-size:13px}.mac-select:hover{border-color:var(--muted)}.mac-select:focus-visible{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft,#0064ff26);outline:none}.lint-category-chips{gap:var(--space-1);margin-top:var(--space-2);flex-wrap:wrap;display:flex}.lint-category-chip{background:var(--paper-subtle,#0000000a);border:1px solid var(--line,#00000014);border-radius:var(--radius-xs,4px);color:var(--ink);align-items:center;padding:4px 10px;font-size:12px;font-weight:500;display:inline-flex}.lint-metrics-grid{gap:var(--space-2);width:100%;margin-top:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));display:grid}.lint-metric-card{padding:var(--space-2) var(--space-3);background:var(--paper-subtle,#00000008);border:1px solid var(--line,#00000014);border-radius:var(--radius-xs,5px);justify-content:space-between;align-items:center;display:flex}.lint-metric-info{flex-direction:column;gap:1px;display:flex}.lint-metric-label{color:var(--muted);font-size:11px}.lint-metric-value{color:var(--ink);font-size:14px;font-weight:700}.mac-action-btn:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}@media (max-width:680px){.mac-settings-shell{flex-direction:column}.mac-settings-sidebar{width:100%;max-width:none;height:auto;padding:var(--space-3);border-right:none}.mac-settings-nav{flex-direction:row;overflow-x:auto}.mac-settings-main{padding:var(--space-4)}.mac-theme-grid,.mac-segmented-control{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-color-item{grid-template-columns:auto minmax(0,1fr) auto auto}.theme-color-code{grid-area:2/2/auto/-1}}
