:root{--title-bar-height: 44px;--activity-rail-width: 58px;--explorer-width: clamp(18rem, 20vw, 20rem);--inspector-width: minmax(21rem, 26rem);--font-ui: Inter, "SF Pro Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;--font-editor: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;--type-ui-primary: clamp(.84375rem, .825rem + .06vw, .875rem);--type-ui-secondary: clamp(.78125rem, .765625rem + .05vw, .8125rem);--type-ui-control: clamp(.8125rem, .79rem + .06vw, .875rem);--type-ui-caption: .75rem;--type-ui-micro: .75rem;--type-ui-heading: clamp(.9375rem, .9rem + .1vw, 1rem);--type-ui-title: var(--type-ui-heading);--radius-xs: 8px;--radius-sm: 12px;--radius-md: 18px;--radius-lg: 26px;--motion-fast: .14s;--motion-normal: .22s;--scrollbar-size: .625rem;--scrollbar-thumb: color-mix(in srgb, var(--text) 24%, transparent);--scrollbar-thumb-hover: color-mix(in srgb, var(--text) 42%, transparent);--scrollbar-thumb-active: color-mix(in srgb, var(--accent) 72%, transparent);--scrollbar-track: transparent;--source-syntax-heading: var(--accent-strong);--source-syntax-markup: color-mix(in srgb, var(--accent) 78%, var(--text));--source-syntax-link: var(--link);--source-syntax-code: color-mix(in srgb, var(--warning) 72%, var(--text));--source-syntax-metadata: var(--text-soft);--source-syntax-comment: var(--text-muted);--editor-quote-border: color-mix(in srgb, var(--accent) 74%, var(--border-strong));--editor-quote-surface: color-mix(in srgb, var(--accent-soft) 58%, var(--paper));--surface: color-mix(in srgb, var(--surface-solid) 86%, transparent);--surface-strong: color-mix(in srgb, var(--surface-strong-solid) 95%, transparent);--surface-elevated: var(--surface-strong);--surface-soft: color-mix(in srgb, var(--text) 5.5%, transparent);--surface-hover: color-mix(in srgb, var(--text) 9%, transparent);--surface-selected: var(--accent-soft);--accent-soft: color-mix(in srgb, var(--accent) 17%, transparent);--accent-glow: color-mix(in srgb, var(--accent) 25%, transparent);--border-soft: color-mix(in srgb, var(--text) 9%, transparent);--field-border: var(--border-soft);--field-background: color-mix(in srgb, var(--surface-soft) 72%, transparent);--field-icon: var(--text-muted);--field-focus-border: color-mix(in srgb, var(--accent) 52%, var(--border-strong));--field-focus-ring: 0 0 0 .125rem color-mix(in srgb, var(--focus) 18%, transparent);--field-placeholder: color-mix(in srgb, var(--text-muted) 62%, transparent);--selection-surface: color-mix(in srgb, var(--selection) 88%, var(--focus));--selection-glow: color-mix(in srgb, var(--focus) 32%, transparent);--focus-outline-width: .0625rem;--focus-outline-offset: .0625rem;--focus-outline-color: color-mix(in srgb, var(--focus) 58%, var(--border-strong));--focus-outline: var(--focus-outline-width) solid var(--focus-outline-color);--focus-ring: var(--focus-outline-color);--shadow-window: 0 28px 90px color-mix(in srgb, var(--shadow-color) 34%, transparent);--shadow-panel: 0 18px 44px color-mix(in srgb, var(--shadow-color) 18%, transparent);--shadow-soft: 0 .5rem 1.5rem color-mix(in srgb, var(--shadow-color) 12%, transparent);--glass-highlight: inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent);--layer-title-bar: 20;--layer-floating-control: 40;--layer-popover: 50;--layer-drag-overlay: 60;--layer-modal: 70;--layer-tooltip: 80}:root:not([data-theme-family]),:root[data-theme-family=graphite-ember][data-color-scheme=dark]{color-scheme:dark;--bg: #121418;--bg-elevated: #1a1d22;--surface-solid: #23262c;--surface-strong-solid: #2a2d34;--canvas: #202329;--paper: #292c32;--text: #f2f0eb;--text-soft: #b8b6b1;--text-muted: #99979a;--text-disabled: #77767b;--border-strong: #85858a;--accent: #ff784d;--accent-strong: #ff5d2e;--on-accent: #25130d;--link: #ff916f;--focus: #ff8c68;--selection: #5a3329;--success: #8fbe92;--warning: #e0b469;--danger: #ef8a8d;--conflict: #d996b7;--diff-added: #283b2c;--diff-removed: #452c2b;--code-surface: #211f1c;--shadow-color: #000000;--atmosphere-a: #6d3d2d;--atmosphere-b: #4e4840}:root[data-theme-family=graphite-ember][data-color-scheme=light]{color-scheme:light;--bg: #e8e7e3;--bg-elevated: #f0efeb;--surface-solid: #f1f0ec;--surface-strong-solid: #faf9f5;--canvas: #dededb;--paper: #f5f3ee;--text: #24262b;--text-soft: #575961;--text-muted: #6d6e74;--text-disabled: #929398;--border-strong: #7d7e83;--accent: #a44023;--accent-strong: #843018;--on-accent: #fff9f5;--link: #91361e;--focus: #9f3c21;--selection: #edcabc;--success: #456b4b;--warning: #805412;--danger: #a33f42;--conflict: #824765;--diff-added: #d9e7d9;--diff-removed: #efd9d5;--code-surface: #eeeae3;--shadow-color: #3d3934;--atmosphere-a: #c98b70;--atmosphere-b: #aba49a}:root[data-theme-family=linen-clay][data-color-scheme=light]{color-scheme:light;--bg: #ded8cf;--bg-elevated: #e8e2d9;--surface-solid: #eee8df;--surface-strong-solid: #f5f0e8;--canvas: #d4cec5;--paper: #fbf8f1;--text: #27231f;--text-soft: #5d564c;--text-muted: #746b60;--text-disabled: #938a7e;--border-strong: #8c8378;--accent: #955033;--accent-strong: #7f3f27;--on-accent: #fff9f2;--link: #87452d;--focus: #9f5335;--selection: #e8cfc0;--success: #456b4b;--warning: #805412;--danger: #a33f42;--conflict: #824765;--diff-added: #d9e7d9;--diff-removed: #efd9d5;--code-surface: #eee8de;--shadow-color: #44372d;--atmosphere-a: #c99678;--atmosphere-b: #b8a486}:root[data-theme-family=linen-clay][data-color-scheme=dark]{color-scheme:dark;--bg: #171512;--bg-elevated: #1f1c18;--surface-solid: #28241e;--surface-strong-solid: #312c25;--canvas: #201d19;--paper: #29251f;--text: #f3ede2;--text-soft: #c7bdad;--text-muted: #a59a8a;--text-disabled: #786f63;--border-strong: #81766a;--accent: #dc9069;--accent-strong: #f0a078;--on-accent: #251914;--link: #e59a73;--focus: #f0a078;--selection: #5d3c2e;--success: #8fbe92;--warning: #e0b469;--danger: #ef8a8d;--conflict: #d996b7;--diff-added: #283b2c;--diff-removed: #452c2b;--code-surface: #211f1c;--shadow-color: #000000;--atmosphere-a: #8e5438;--atmosphere-b: #6b5d45}:root[data-theme-family=pebble-sand][data-color-scheme=light]{color-scheme:light;--bg: #dbdad5;--bg-elevated: #e7e5df;--surface-solid: #ebe9e3;--surface-strong-solid: #f2efe8;--canvas: #d2d0ca;--paper: #faf8f2;--text: #24231f;--text-soft: #57544c;--text-muted: #706b61;--text-disabled: #908b82;--border-strong: #837e74;--accent: #806547;--accent-strong: #684d31;--on-accent: #fffaf2;--link: #735638;--focus: #87694a;--selection: #dfd2bf;--success: #496a50;--warning: #775216;--danger: #9d4242;--conflict: #765064;--diff-added: #dae5d8;--diff-removed: #ecd8d4;--code-surface: #ebe8e0;--shadow-color: #38342e;--atmosphere-a: #b7a78f;--atmosphere-b: #9d9488}:root[data-theme-family=pebble-sand][data-color-scheme=dark]{color-scheme:dark;--bg: #161513;--bg-elevated: #1d1c19;--surface-solid: #25231f;--surface-strong-solid: #2d2a25;--canvas: #1e1d1a;--paper: #272520;--text: #f0ede5;--text-soft: #c3bdb1;--text-muted: #9e978b;--text-disabled: #746f66;--border-strong: #7a7367;--accent: #c7a678;--accent-strong: #ddb986;--on-accent: #211a12;--link: #d5b181;--focus: #dfbd8d;--selection: #534631;--success: #8cb792;--warning: #d7ad67;--danger: #e68a8b;--conflict: #c99ab8;--diff-added: #293a2b;--diff-removed: #432d2c;--code-surface: #201f1c;--shadow-color: #000000;--atmosphere-a: #76624a;--atmosphere-b: #625d55}:root[data-theme-family=fog-taupe][data-color-scheme=light]{color-scheme:light;--bg: #dcdbd8;--bg-elevated: #e8e6e2;--surface-solid: #eceae6;--surface-strong-solid: #f3f1ec;--canvas: #d4d3cf;--paper: #faf9f5;--text: #242321;--text-soft: #575450;--text-muted: #706c66;--text-disabled: #918d87;--border-strong: #827e78;--accent: #71645a;--accent-strong: #584b42;--on-accent: #fffaf6;--link: #65574d;--focus: #76685e;--selection: #d9d2cb;--success: #496b50;--warning: #795318;--danger: #9e4244;--conflict: #755166;--diff-added: #dae6da;--diff-removed: #ecd8d5;--code-surface: #ebe9e5;--shadow-color: #373331;--atmosphere-a: #aaa19a;--atmosphere-b: #b8aa94}:root[data-theme-family=fog-taupe][data-color-scheme=dark]{color-scheme:dark;--bg: #151514;--bg-elevated: #1c1b1a;--surface-solid: #242321;--surface-strong-solid: #2c2a28;--canvas: #1d1c1b;--paper: #262422;--text: #f0eeea;--text-soft: #c3bfba;--text-muted: #9e9992;--text-disabled: #736f69;--border-strong: #79736d;--accent: #b8a69a;--accent-strong: #cdb9ac;--on-accent: #211b18;--link: #c5b1a4;--focus: #d1beb1;--selection: #4a423d;--success: #8db793;--warning: #d7ad68;--danger: #e68a8c;--conflict: #c79ab8;--diff-added: #293a2c;--diff-removed: #432d2d;--code-surface: #201f1e;--shadow-color: #000000;--atmosphere-a: #685d56;--atmosphere-b: #736754}*{box-sizing:border-box}::selection{color:var(--text);background:var(--selection-surface);text-shadow:0 0 .35rem var(--selection-glow)}::-moz-selection{color:var(--text);background:var(--selection-surface);text-shadow:0 0 .35rem var(--selection-glow)}@media(forced-colors:active){:root{--focus-outline-color: Highlight;--focus-ring: Highlight}::selection,::-moz-selection{color:HighlightText;background:Highlight;text-shadow:none}.app-field-surface:-webkit-autofill,.app-field-surface :is(input,textarea):-webkit-autofill,.app-field-surface:autofill,.app-field-surface :is(input,textarea):autofill{-webkit-text-fill-color:CanvasText;box-shadow:none;forced-color-adjust:none}}.application-tooltip{position:fixed;z-index:var(--layer-tooltip);max-inline-size:min(22rem,calc(100vw - 1rem));padding:.42rem .62rem;border:.0625rem solid color-mix(in srgb,var(--border-strong) 72%,transparent);border-radius:var(--radius-xs);color:var(--text);background:var(--surface-strong-solid);box-shadow:var(--shadow-panel),var(--glass-highlight);font-family:var(--font-ui);font-size:var(--type-ui-caption);font-weight:520;line-height:1.35;overflow-wrap:anywhere;pointer-events:none;translate:0 0;opacity:1;transition:opacity var(--motion-fast) ease,translate var(--motion-fast) ease}.application-tooltip[data-positioned=false]{opacity:0}.application-tooltip[data-placement=top]{transform-origin:50% 100%}.application-tooltip[data-placement=bottom]{transform-origin:50% 0%}@media(prefers-reduced-motion:reduce){.application-tooltip{transition:none}}@supports not selector(::-webkit-scrollbar){*{scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track);scrollbar-width:thin}}*::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:var(--scrollbar-track)}*::-webkit-scrollbar-thumb{min-width:2rem;min-height:2rem;border:.125rem solid transparent;border-radius:999rem;background:var(--scrollbar-thumb);background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover)}*::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active)}*::-webkit-scrollbar-button{display:none;width:0;height:0}.app-field-surface{box-sizing:border-box;border:.0625rem solid var(--field-border);border-radius:var(--radius-xs);background:var(--field-background);box-shadow:var(--glass-highlight);transition:border-color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.app-field-surface:focus-visible,.app-field-surface:focus-within{border-color:var(--field-focus-border);outline:none;background:var(--surface-soft);box-shadow:var(--field-focus-ring),var(--glass-highlight)}.app-focus-surface{box-sizing:border-box;border:.0625rem solid transparent;transition:border-color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.app-focus-surface:focus-visible{border-color:var(--field-focus-border);outline:none;box-shadow:var(--field-focus-ring),var(--glass-highlight)}.app-field-surface::placeholder,.app-field-surface :where(input,textarea)::placeholder{color:var(--field-placeholder);opacity:1}.app-search-field{display:grid;min-width:0;grid-template-columns:1.75rem minmax(0,1fr) 1.75rem;align-items:center}.app-search-field[data-field-size=regular]{min-height:2.5rem}.app-search-field[data-field-size=compact]{min-height:2rem;grid-template-columns:2rem minmax(0,1fr) 2rem}.app-search-field__icon{width:.9375rem;height:.9375rem;justify-self:center;color:var(--text-muted)}.app-search-field[data-icon-tone=accent] .app-search-field__icon{color:var(--accent-strong)}.app-search-field__input{min-width:0;height:2.375rem;padding:0 .25rem;border:0;outline:0;color:var(--text);background:transparent;font:inherit;font-size:var(--type-ui-primary)}.app-search-field[data-field-size=compact] .app-search-field__input{height:1.875rem;font-size:.82rem}.app-search-field__input::-webkit-search-cancel-button,.app-search-field__input::-webkit-search-decoration,.app-search-field__input::-webkit-search-results-button,.app-search-field__input::-webkit-search-results-decoration{display:none;appearance:none}.app-field-surface:-webkit-autofill,.app-field-surface :is(input,textarea):-webkit-autofill,.app-field-surface:autofill,.app-field-surface :is(input,textarea):autofill{-webkit-text-fill-color:var(--text);caret-color:var(--accent);box-shadow:inset 0 0 0 100vmax var(--surface-soft)}.app-search-field__clear{display:grid;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:.4rem;place-items:center;color:var(--text-muted);background:transparent;cursor:pointer;transition:color var(--motion-fast),background var(--motion-fast)}.app-search-field[data-field-size=compact] .app-search-field__clear{width:2rem;height:2rem}.app-search-field__clear:hover{color:var(--text);background:var(--surface-hover)}.app-search-field__clear:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.app-search-field__clear svg{width:.9375rem;height:.9375rem}.app-checkbox{--app-checkbox-size: 1.2rem;position:relative;display:grid;grid-template-columns:var(--app-checkbox-size) minmax(0,1fr);align-items:center;gap:.55rem;cursor:pointer}.app-checkbox>input[type=checkbox],.tiptap-editor .markdown-task-item>label>input[type=checkbox]{position:absolute;inset-block-start:0;inset-inline-start:0;width:var(--app-checkbox-size);height:var(--app-checkbox-size);margin:0;padding:0;appearance:none;border:0;background:transparent;opacity:0;cursor:inherit}.app-checkbox__indicator,.tiptap-editor .markdown-task-item>label:before{display:grid;width:var(--app-checkbox-size);height:var(--app-checkbox-size);place-items:center;border:.0625rem solid var(--border-strong);border-radius:.3rem;background:var(--paper);box-shadow:inset 0 0 0 .0625rem color-mix(in srgb,var(--paper) 72%,transparent);transition:border-color var(--motion-fast) ease,background-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,opacity var(--motion-fast) ease}.tiptap-editor .markdown-task-item>label:before{grid-area:1 / 1;content:""}.app-checkbox__indicator:after,.tiptap-editor .markdown-task-item>label:after{width:calc(var(--app-checkbox-size) * .46);height:calc(var(--app-checkbox-size) * .25);border-block-end:.125rem solid var(--accent-strong);border-inline-start:.125rem solid var(--accent-strong);content:"";transform:translateY(-.08rem) rotate(-45deg) scale(0);transition:transform var(--motion-fast) ease}.tiptap-editor .markdown-task-item>label:after{grid-area:1 / 1;justify-self:center}.app-checkbox>input[type=checkbox]:checked+.app-checkbox__indicator,.tiptap-editor .markdown-task-item[data-checked=true]>label:before{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 .125rem var(--accent-soft)}.app-checkbox>input[type=checkbox]:checked+.app-checkbox__indicator:after,.tiptap-editor .markdown-task-item[data-checked=true]>label:after{transform:translateY(-.08rem) rotate(-45deg) scale(1)}.app-checkbox>input[type=checkbox]:indeterminate+.app-checkbox__indicator:after{height:0;border-inline-start:0;transform:rotate(0) scale(1)}.app-checkbox:not(:has(>input[type=checkbox]:disabled)):hover .app-checkbox__indicator,.tiptap-editor .markdown-task-item>label:hover:before{border-color:var(--accent);background:var(--surface-hover)}.app-checkbox:not(:has(>input[type=checkbox]:disabled)):hover>input[type=checkbox]:checked+.app-checkbox__indicator,.tiptap-editor .markdown-task-item[data-checked=true]>label:hover:before{background:color-mix(in srgb,var(--accent-soft) 76%,var(--surface-hover))}.app-checkbox>input[type=checkbox]:focus-visible+.app-checkbox__indicator,.tiptap-editor .markdown-task-item>label:has(input:focus-visible):before{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.app-checkbox:has(>input[type=checkbox]:disabled){color:var(--text-disabled);cursor:not-allowed}.app-checkbox>input[type=checkbox]:disabled+.app-checkbox__indicator{opacity:.58}.app-disclosure{display:inline-flex;align-items:center;gap:.45rem;list-style:none}.app-disclosure::-webkit-details-marker{display:none}.app-disclosure::marker{content:""}.app-disclosure:before{width:.42rem;height:.42rem;flex:0 0 auto;border:solid currentColor;border-width:0 .0875rem .0875rem 0;content:"";rotate:-45deg;transition:rotate var(--motion-fast) ease}details[open]>.app-disclosure:before{rotate:45deg}.app-select{position:relative;display:inline-flex;min-width:0;align-items:center;justify-content:space-between;padding:.45rem 1.75rem .45rem .65rem;gap:.5rem;appearance:none;border:.0625rem solid var(--field-border);border-radius:var(--radius-xs);color:var(--text);background-color:var(--field-background);box-shadow:var(--glass-highlight);color-scheme:inherit;font:inherit;transition:border-color var(--motion-fast) ease,background-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,color var(--motion-fast) ease}.app-select:after{position:absolute;inset-block-start:50%;inset-inline-end:.65rem;width:.4rem;height:.4rem;border:solid currentColor;border-width:0 .0875rem .0875rem 0;content:"";color:var(--text-muted);opacity:.8;pointer-events:none;rotate:45deg;translate:0 -65%;transition:rotate var(--motion-fast) ease,color var(--motion-fast) ease}.app-select:not(:disabled){cursor:pointer}.app-select:not(:disabled):hover,.app-select[data-open=true]{border-color:var(--border-strong);color:var(--text);background-color:var(--surface-hover)}.app-select[data-open=true]:after{color:var(--accent-strong);rotate:225deg}.app-select:disabled{cursor:not-allowed;opacity:.68}.app-select:focus-visible{border-color:var(--field-focus-border);outline:none;box-shadow:var(--field-focus-ring),var(--glass-highlight)}.app-select__trigger-content{display:inline-flex;min-width:0;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-select__listbox{position:fixed;z-index:var(--layer-popover);display:grid;width:max-content;min-width:0;max-width:min(22rem,calc(100vw - 1rem));padding:.35rem;overflow:hidden auto;overscroll-behavior:contain;border:.0625rem solid var(--border-strong);border-radius:var(--radius-sm);color:var(--text);background:var(--surface-strong-solid);box-shadow:var(--shadow-panel),var(--glass-highlight);font-family:var(--font-ui);font-size:var(--type-ui-control);line-height:1.25}.app-select__option{display:grid;min-height:2.25rem;grid-template-columns:minmax(0,1fr) 1rem;align-items:center;padding:.55rem .65rem;gap:.65rem;border-radius:var(--radius-xs);color:var(--text-soft);background:transparent;cursor:pointer;-webkit-user-select:none;user-select:none}.app-select__option>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-select__option:after{grid-column:2;content:"";color:var(--accent-strong);font-weight:700}.app-select__option[aria-selected=true]{color:var(--text);background:var(--accent-soft);font-weight:600}.app-select__option[aria-selected=true]:after{content:"✓"}.app-select__option[data-active=true],.app-select__option:not([aria-disabled=true]):hover{color:var(--text);background:var(--surface-hover);box-shadow:inset 0 0 0 var(--focus-outline-width) var(--focus-outline-color)}.app-select__option[aria-disabled=true]{color:var(--text-disabled);cursor:not-allowed}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:var(--font-ui);color:var(--text);background:var(--bg);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}.bootstrap-state{display:grid;width:100%;height:100%;place-content:center;gap:.75rem;padding:2rem;color:var(--text-soft);background:radial-gradient(circle at 30% 20%,color-mix(in srgb,var(--atmosphere-a) 22%,transparent),transparent 36%),var(--bg);text-align:center}.bootstrap-state strong{color:var(--text);font-size:var(--type-ui-heading)}.bootstrap-state p{max-width:32rem;margin:0;line-height:1.6}.bootstrap-state--error{color:var(--danger)}.application-error-state{padding:clamp(1rem,4vw,3rem)}.application-error-state__panel{display:grid;width:min(30rem,calc(100vw - 2rem));gap:.875rem;padding:clamp(1.5rem,5vw,2.5rem);border:.0625rem solid var(--border-soft);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:var(--shadow-panel),var(--glass-highlight);text-align:left;-webkit-backdrop-filter:blur(1.5rem);backdrop-filter:blur(1.5rem)}.application-error-state__panel .eyebrow{color:var(--accent-strong)}.application-error-state__actions{display:flex;flex-wrap:wrap;gap:.625rem;margin-top:.375rem}button{font:inherit;color:inherit}button:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.app{position:relative;width:100%;height:100%;overflow:hidden;background:radial-gradient(circle at 17% 4%,color-mix(in srgb,var(--atmosphere-a) 22%,transparent),transparent 29%),radial-gradient(circle at 91% 100%,color-mix(in srgb,var(--atmosphere-b) 18%,transparent),transparent 27%),var(--bg)}.app:before{position:absolute;inset:0;pointer-events:none;content:"";background-image:linear-gradient(120deg,rgba(255,255,255,.018),transparent 32%);opacity:.75}.title-bar{position:relative;z-index:var(--layer-title-bar);display:flex;height:var(--title-bar-height);align-items:center;justify-content:space-between;padding-left:15px;background:color-mix(in srgb,var(--surface-strong-solid) 58%,transparent);box-shadow:var(--glass-highlight);-webkit-app-region:drag;-webkit-backdrop-filter:blur(24px) saturate(1.15);backdrop-filter:blur(24px) saturate(1.15)}.title-bar[data-platform=darwin]{padding-left:5.25rem}.title-bar__brand{display:flex;align-items:center;gap:9px;font-size:var(--type-ui-primary);font-weight:600;letter-spacing:.015em}.title-bar__mark{width:18px;height:20px;color:var(--text)}.title-bar__phase{padding:3px 8px;border-radius:999px;color:var(--text-muted);background:var(--surface-soft);font-size:var(--type-ui-caption);font-weight:500}.window-controls{display:flex;height:100%;-webkit-app-region:no-drag}.window-control{display:grid;width:46px;height:100%;padding:0;border:0;place-items:center;color:var(--text-soft);background:transparent;transition:color var(--motion-fast),background var(--motion-fast)}.window-control svg{width:14px;height:14px;stroke-width:1.65}.window-control svg.is-maximized{width:12px;height:12px}.window-control:hover{color:var(--text);background:var(--surface-hover)}.window-control--close:hover{color:#fff;background:#d94b4b}.app-shell{position:relative;z-index:1;display:grid;height:calc(100% - var(--title-bar-height));grid-template-columns:var(--activity-rail-width) var(--explorer-width) minmax(0,1fr);padding:.3125rem .5rem .5rem;gap:.5rem;transition:grid-template-columns var(--motion-normal) ease}.app-shell--explorer-closed{grid-template-columns:var(--activity-rail-width) 0 minmax(0,1fr)}.activity-rail,.explorer,.workspace{min-height:0;border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--glass-highlight),var(--shadow-panel);-webkit-backdrop-filter:blur(28px) saturate(1.12);backdrop-filter:blur(28px) saturate(1.12)}.activity-rail{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:12px 8px}.activity-rail__top,.activity-rail__bottom{display:flex;flex-direction:column;gap:8px}.rail-button,.icon-button{display:grid;width:2.375rem;height:2.375rem;padding:0;border:0;border-radius:var(--radius-sm);place-items:center;color:var(--text-muted);background:transparent;transition:color var(--motion-fast),background var(--motion-fast),transform var(--motion-fast)}.rail-button svg,.icon-button svg{width:1.125rem;height:1.125rem;stroke-width:1.7}.rail-button:not(:disabled):hover,.icon-button:hover{color:var(--text);background:var(--surface-hover)}.rail-button.is-active{position:relative;color:var(--accent);background:var(--accent-soft)}.rail-button.is-active:before{position:absolute;left:-8px;width:3px;height:18px;border-radius:0 4px 4px 0;content:"";background:var(--accent);box-shadow:0 0 16px var(--accent-glow)}.rail-button:disabled{cursor:default;opacity:.42}.explorer{display:flex;min-width:0;flex-direction:column;overflow:hidden;padding:18px 16px 14px;opacity:1;transition:opacity var(--motion-fast),padding var(--motion-normal)}.app-shell--explorer-closed .explorer{padding-right:0;padding-left:0;pointer-events:none;opacity:0}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.panel-heading__actions{display:flex;flex:0 0 auto;align-items:center;gap:.125rem}.eyebrow{display:block;margin-bottom:5px;color:var(--accent);font-size:var(--type-ui-micro);font-weight:650;letter-spacing:.12em;text-transform:uppercase}.panel-heading h1{margin:0;overflow:hidden;font-size:clamp(1rem,.95rem + .12vw,1.0625rem);font-weight:580;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}.icon-button--subtle{width:32px;height:32px;border-radius:var(--radius-xs)}.quick-actions{display:grid;grid-template-columns:1fr 1fr;margin:22px 0 20px;gap:8px}.quick-actions[data-single=true]{grid-template-columns:1fr}.quick-actions .soft-button{min-width:0;padding-inline:clamp(.625rem,4cqi,.8125rem);white-space:nowrap}.quick-action__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.soft-button{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:8px;padding:8px 13px;border:0;border-radius:var(--radius-sm);color:var(--text-soft);background:var(--surface-soft);box-shadow:var(--glass-highlight);font-size:var(--type-ui-control);font-weight:550;cursor:pointer;transition:color var(--motion-fast),background var(--motion-fast),transform var(--motion-fast)}.soft-button:hover{color:var(--text);background:var(--surface-hover);transform:translateY(-1px)}.soft-button svg{width:15px;height:15px}.soft-button--primary{color:var(--accent);background:var(--accent-soft)}.explorer-section{margin-bottom:18px}.explorer-section--grow{display:flex;min-height:0;flex:1;flex-direction:column;margin-bottom:.75rem;overflow:hidden}.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:var(--text-muted);font-size:var(--type-ui-caption);font-weight:600;letter-spacing:.075em;text-transform:uppercase}.empty-copy{max-width:210px;margin:0;color:inherit;font-size:var(--type-ui-secondary);line-height:1.55}.explorer-empty-action{display:grid;width:100%;min-width:0;min-height:4.5rem;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.625rem;padding:.625rem .75rem;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--accent-strong);background:transparent;text-align:left;cursor:pointer;transition:border-color var(--motion-fast),color var(--motion-fast),background var(--motion-fast)}.explorer-empty-action svg{width:.9375rem;height:.9375rem;margin-top:.1875rem;color:var(--accent)}.explorer-empty-action:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent-strong);background:var(--accent-soft)}.explorer-empty-action:focus-visible{border-color:color-mix(in srgb,var(--accent) 44%,var(--border-soft));outline:var(--focus-outline);outline-offset:var(--focus-outline-offset);background:var(--accent-soft)}.explorer-empty-action:disabled{cursor:not-allowed;opacity:.48}.explorer-section--grow>.explorer-empty-action{min-height:4rem;flex:1}.resource-list{display:flex;flex-direction:column;gap:3px}.explorer-section--grow .resource-list{min-height:0;padding-right:.25rem;overflow:hidden auto}.resource-row{display:flex;width:100%;min-width:0;align-items:center;gap:.5625rem;padding:.5rem .5625rem;border:0;border-radius:var(--radius-xs);color:var(--text-soft);background:transparent;font-size:var(--type-ui-primary);text-align:left;cursor:pointer;transition:color var(--motion-fast),background var(--motion-fast)}.resource-row svg{width:.9375rem;height:.9375rem;flex:0 0 auto;color:var(--text-muted)}.resource-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resource-row:hover,.resource-row[data-active=true]{color:var(--text);background:var(--surface-hover)}.resource-row[data-active=true] svg{color:var(--accent)}.resource-row--folder{cursor:default}.explorer-footnote{display:flex;flex:0 0 auto;align-items:center;gap:8px;padding:10px;border-radius:var(--radius-sm);color:var(--text-muted);background:var(--surface-soft);font-size:var(--type-ui-caption)}.explorer-footnote svg{width:14px;height:14px;color:var(--accent)}.workspace{display:grid;grid-column:3;container-name:workspace;container-type:inline-size;min-width:0;overflow:hidden;grid-template-rows:2.75rem auto auto minmax(0,1fr) minmax(3.75rem,auto);background:color-mix(in srgb,var(--surface) 74%,var(--canvas))}.workspace__editing{display:contents}.workspace__editing[hidden],.history-review-host[hidden]{display:none}.history-review-host{grid-row:1 / 5;min-width:0;min-height:0;overflow:hidden}.workspace-top{display:flex;min-width:0;align-items:center;grid-row:1;padding:.375rem .5rem;gap:.375rem}.document-tabs{display:grid;min-width:0;flex:1;align-items:center;grid-template-columns:0 minmax(0,1fr) 0 auto;column-gap:.125rem;transition:grid-template-columns var(--motion-fast)}.document-tabs[data-overflowing=true]{grid-template-columns:1.625rem minmax(0,1fr) 1.625rem auto}.document-tabs__scroll-button{display:grid;width:1.625rem;height:1.75rem;padding:0;place-items:center;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;cursor:pointer;transition:opacity var(--motion-fast),color var(--motion-fast),background var(--motion-fast)}.document-tabs__scroll-button:hover{color:var(--text);background:var(--surface-hover);box-shadow:var(--glass-highlight)}.document-tabs__scroll-button:disabled{visibility:hidden;opacity:0;pointer-events:none}.document-tabs__scroll-button svg{width:.875rem;height:.875rem}.tabs{display:flex;min-width:0;gap:.3125rem;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{display:flex;width:clamp(7.5rem,16cqi,13.75rem);min-width:0;flex:0 0 auto;align-items:center;justify-content:space-between;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font-size:var(--type-ui-control);transition:color var(--motion-fast),background var(--motion-fast)}.tab__label{display:flex;min-width:0;flex:1;align-items:center;gap:.625rem;padding:.4375rem .25rem .4375rem .75rem;border:0;color:inherit;background:transparent;font:inherit;text-align:left;cursor:pointer}.tab__label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-drag-image{position:fixed;z-index:var(--layer-drag-overlay);display:flex;min-width:0;min-height:1.875rem;align-items:center;padding:.4375rem .75rem;gap:.625rem;overflow:hidden;border:1px solid var(--border-strong);border-radius:var(--radius-xs);color:var(--text);background:var(--surface-strong-solid);box-shadow:var(--shadow-panel),var(--glass-highlight);font-size:var(--type-ui-control);pointer-events:none;-webkit-user-select:none;user-select:none}.tab-drag-image:before{width:.3125rem;height:.3125rem;flex:0 0 auto;border-radius:50%;content:"";background:var(--text-muted)}.tab-drag-image[data-dirty=true]:before{background:var(--accent);box-shadow:0 0 .625rem var(--accent-glow)}.tab-drag-image>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(forced-colors:active){.tab-drag-image{border-color:CanvasText;color:CanvasText;background:Canvas;box-shadow:none;forced-color-adjust:none}.tab-drag-image:before{background:CanvasText}.tab-drag-image[data-dirty=true]:before{background:Highlight;box-shadow:none}}.tab:hover{color:var(--text-soft);background:var(--surface-soft)}.tab[data-selected=true]{color:var(--text);background:var(--surface-hover);box-shadow:var(--glass-highlight)}.tab[data-selected=true] .tab__label:before,.tab[data-dirty=true] .tab__label:before{width:.3125rem;height:.3125rem;flex:0 0 auto;border-radius:50%;content:"";background:var(--accent);box-shadow:0 0 .625rem var(--accent-glow)}.tab[data-selected=true][data-dirty=false] .tab__label:before{background:var(--text-muted);box-shadow:none}.tab__close{display:grid;width:1.1875rem;height:1.1875rem;flex:0 0 auto;margin-right:.375rem;padding:0;border:0;border-radius:.375rem;color:inherit;background:transparent;place-items:center;cursor:pointer}.tab__close:hover{background:var(--surface-hover)}.tab__close svg{width:.75rem;height:.75rem}.tab-actions{position:relative;display:grid;flex:0 0 auto;place-items:center}.tab-actions__trigger{display:grid;width:1.75rem;height:1.75rem;padding:0;place-items:center;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;cursor:pointer;transition:color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.tab-actions__trigger:hover,.tab-actions__trigger[aria-expanded=true]{color:var(--text);background:var(--surface-hover);box-shadow:var(--glass-highlight)}.tab-actions__trigger svg{width:.95rem;height:.95rem}.tab-actions__menu{position:fixed;z-index:var(--layer-popover);display:grid;width:min(16rem,calc(100vw - 2rem));max-height:min(20rem,calc(100dvh - var(--title-bar-height) - 2rem));padding:.35rem;overflow:hidden auto;gap:.2rem;border:1px solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-strong);box-shadow:var(--glass-highlight),var(--shadow-window);-webkit-backdrop-filter:blur(1.5rem) saturate(1.08);backdrop-filter:blur(1.5rem) saturate(1.08)}.tab-actions__menu button{display:grid;width:100%;min-width:0;grid-template-columns:1rem minmax(0,1fr) auto;align-items:center;padding:.55rem .6rem;gap:.55rem;border:0;border-radius:var(--radius-xs);color:var(--text-soft);background:transparent;font-size:var(--type-ui-control);text-align:left;cursor:pointer}.tab-actions__menu button:hover,.tab-actions__menu button:focus-visible{color:var(--text);background:var(--surface-hover)}.tab-actions__menu button:disabled{opacity:.42;cursor:default}.tab-actions__menu button:disabled:hover{color:var(--text-soft);background:transparent}.tab-actions__menu svg{width:.9rem;height:.9rem;color:var(--accent)}.tab-actions__menu span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-actions__menu kbd,.keyboard-shortcut-settings kbd{padding:.2rem .35rem;border:1px solid var(--border-soft);border-radius:.35rem;color:var(--text-muted);background:var(--bg-elevated);font:inherit;font-size:var(--type-ui-caption);white-space:nowrap}.toolbar-toggle{position:relative;display:grid;width:1.5rem;height:1.5rem;flex:0 0 auto;padding:0;place-items:center;border:0;border-radius:50%;color:var(--text-muted);background:transparent;cursor:pointer;transition:color var(--motion-fast) ease,background-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease}.toolbar-toggle:before{width:.4rem;height:.4rem;border:solid currentColor;border-width:0 .0875rem .0875rem 0;content:"";rotate:45deg;translate:0 -.1rem;transition:rotate var(--motion-fast) ease,translate var(--motion-fast) ease}.toolbar-toggle[aria-expanded=true]:before{rotate:225deg;translate:0 .1rem}.toolbar-toggle:not(:disabled):hover{color:var(--accent-strong);background:var(--accent-soft)}.toolbar-toggle:disabled{cursor:default;opacity:.4}:where(.document-canvas__meta--editor,.authoring-toolbar--formatting) button{height:2rem;min-width:0;padding:0 .625rem;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font-size:var(--type-ui-control);white-space:nowrap;transition:color var(--motion-fast) ease,background-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease}:where(.document-canvas__meta--editor,.authoring-toolbar--formatting) button:disabled{cursor:not-allowed;opacity:.48}:where(.document-canvas__meta--editor,.authoring-toolbar--formatting) button:not(:disabled):hover,:where(.document-canvas__meta--editor,.authoring-toolbar--formatting) button[aria-pressed=true],:where(.document-canvas__meta--editor,.authoring-toolbar--formatting) button[aria-pressed=mixed]{color:var(--accent-strong);background:var(--accent-soft);box-shadow:var(--glass-highlight)}.editor-mode-controls{display:inline-flex;min-width:0;align-items:center;gap:.25rem}.editor-mode-switch{display:inline-grid;min-width:0;flex:0 0 auto;padding:.125rem;border:.0625rem solid var(--border-soft);border-radius:calc(var(--radius-xs) + .125rem);grid-template-columns:repeat(2,2rem);background:color-mix(in srgb,var(--bg-elevated) 48%,transparent);box-shadow:inset 0 .0625rem color-mix(in srgb,var(--text) 5%,transparent)}.document-canvas__meta--editor .editor-mode-switch__option{position:relative;display:inline-grid;width:2rem;height:1.625rem;padding-inline:0;overflow:hidden;place-items:center;font-size:var(--type-ui-caption)}.editor-mode-switch__option:before{display:block;width:.875rem;height:.875rem;flex:0 0 auto;box-sizing:border-box}.editor-mode-switch__option[data-command=editor-visual]:before{position:absolute;width:.55rem;height:.55rem;border:.0875rem solid currentColor;border-radius:75% 0;content:"";rotate:45deg}.editor-mode-switch__option[data-command=editor-visual]:after{position:absolute;width:.1875rem;height:.1875rem;border-radius:50%;content:"";background:currentColor}.editor-mode-switch__option[data-command=editor-source]:before{content:"</>";font-family:var(--font-mono);font-size:.625rem;font-weight:650;letter-spacing:-.08em;line-height:.875rem}.source-preview-toggle:before{content:"◧";font-size:.75rem;line-height:.875rem}.document-canvas__meta--editor .source-preview-toggle{display:inline-grid;width:2rem;height:1.875rem;padding-inline:0;place-items:center}.editor-mode-switch__option[aria-pressed=true]{font-weight:650;box-shadow:inset 0 0 0 .0625rem color-mix(in srgb,var(--accent) 72%,var(--border-strong)),var(--glass-highlight)}.authoring-toolbar{position:relative;display:flex;min-width:0;align-items:center;gap:.25rem}.authoring-toolbar--utilities{flex:0 0 auto;justify-content:flex-start;margin-inline-start:0;gap:.125rem}.authoring-toolbar--formatting,.authoring-toolbar-placeholder--formatting{width:auto;block-size:calc(2.75rem + var(--scrollbar-size));justify-self:stretch;grid-row:3;margin:0 .5625rem .5rem .5rem}.authoring-toolbar--formatting{max-width:none;align-items:flex-start;padding:.25rem .375rem .5rem;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;border-radius:var(--radius-xs);background:color-mix(in srgb,var(--surface-soft) 88%,var(--canvas));box-shadow:var(--glass-highlight)}.authoring-toolbar__group{display:flex;flex:0 0 auto;align-items:center;gap:.25rem}.authoring-toolbar__group--block-style,.authoring-toolbar__code-language-control{position:relative}.authoring-toolbar__group+.authoring-toolbar__group{margin-inline-start:.125rem;padding-inline-start:.375rem;border-inline-start:.0625rem solid var(--border-soft)}.authoring-toolbar .app-select{display:inline-flex;position:relative;height:1.875rem;min-width:0;align-items:center;overflow:hidden;border-color:transparent;font-size:var(--type-ui-caption);line-height:1;text-overflow:ellipsis;white-space:nowrap;background-color:var(--surface-soft)}.authoring-toolbar .app-select:not(:disabled):hover,.authoring-toolbar .app-select[data-open=true]{border-color:var(--border-soft);color:var(--accent-strong);background-color:var(--accent-soft)}.authoring-toolbar .authoring-toolbar__block-style{width:3.75rem;min-width:3.75rem;max-width:3.75rem;padding:0 1.5rem 0 .5rem;text-align:start}.authoring-toolbar .authoring-toolbar__code-language{width:3.5rem;min-width:3.5rem;max-width:3.5rem;padding:0 1.5rem 0 .5rem;text-align:start}.authoring-toolbar__block-style-symbol,.authoring-toolbar__code-language-symbol{position:absolute;z-index:1;inset-block-start:50%;inset-inline-start:.5rem;color:var(--text-muted);font-size:var(--type-ui-caption);font-weight:650;line-height:1;pointer-events:none;translate:0 -50%}.authoring-toolbar__code-language-symbol{font-family:var(--font-mono);font-size:.625rem;letter-spacing:-.05em}.authoring-toolbar__code-language-symbol:before{content:"</>"}.authoring-toolbar .app-select:not(:disabled):hover .authoring-toolbar__block-style-symbol,.authoring-toolbar .app-select[data-open=true] .authoring-toolbar__block-style-symbol,.authoring-toolbar .app-select:not(:disabled):hover .authoring-toolbar__code-language-symbol,.authoring-toolbar .app-select[data-open=true] .authoring-toolbar__code-language-symbol{color:var(--accent-strong)}.authoring-toolbar .app-select:disabled .authoring-toolbar__block-style-symbol,.authoring-toolbar .app-select:disabled .authoring-toolbar__code-language-symbol{opacity:.68}.authoring-toolbar__command{display:inline-flex;min-width:2rem;align-items:center;justify-content:center;padding-inline:.45rem!important;white-space:nowrap}.authoring-toolbar__command svg{width:.875rem;height:.875rem;flex:0 0 auto;stroke-width:1.8}.authoring-toolbar__command[data-authoring-search=replace]:before{display:inline-grid;min-width:.875rem;place-items:center;content:"⇄";font-size:.9375rem;font-weight:600;line-height:1}.authoring-toolbar__command[data-authoring-command=bold]:before,.authoring-toolbar__command[data-authoring-command=italic]:before,.authoring-toolbar__command[data-authoring-command=strikethrough]:before,.authoring-toolbar__command[data-authoring-command=inline-code]:before,.authoring-toolbar__command[data-authoring-command=code-block]:before,.authoring-toolbar__command[data-authoring-command=hard-break]:before,.authoring-toolbar__command[data-authoring-command=thematic-break]:before,.authoring-toolbar__command[data-authoring-command=footnote]:before{display:inline-grid;min-width:.875rem;place-items:center;font-family:var(--font-ui);font-size:.875rem;font-weight:650;line-height:1}.authoring-toolbar__command[data-authoring-command=bold]:before{content:"B"}.authoring-toolbar__command[data-authoring-command=italic]:before{content:"I";font-style:italic}.authoring-toolbar__command[data-authoring-command=strikethrough]:before{content:"S";text-decoration:line-through}.authoring-toolbar__command[data-authoring-command=inline-code]:before{content:"</>";font-family:var(--font-mono);font-size:.6875rem;letter-spacing:-.04em}.authoring-toolbar__command[data-authoring-command=code-block]:before{content:"{ }";font-family:var(--font-mono);font-size:.6875rem;letter-spacing:-.08em}.authoring-toolbar__command[data-authoring-command=hard-break]:before{content:"↵";font-size:1rem;font-weight:500}.authoring-toolbar__command[data-authoring-command=thematic-break]:before{content:"—";font-size:1rem;font-weight:500}.authoring-toolbar__command[data-authoring-command=footnote]:before{content:"¹";font-family:var(--font-ui);font-size:1rem;font-weight:700}.authoring-toolbar-placeholder{display:block;min-width:0}.authoring-toolbar-placeholder--utilities{width:8.375rem;height:2rem;margin-inline-start:0}.authoring-popover{position:fixed;z-index:var(--layer-popover);overflow:auto;border:.0625rem solid var(--border-strong);border-radius:var(--radius-sm);color:var(--text);background:var(--surface-strong-solid);box-shadow:var(--shadow-panel)}.table-size-popover{display:grid;width:min(17.25rem,calc(100vw - 1rem));padding:.65rem;overscroll-behavior:contain;scrollbar-gutter:stable;gap:.45rem}.table-size-popover__status{display:grid;min-height:1.25rem;align-items:center;color:var(--text-soft);font-size:var(--type-ui-secondary);font-variant-numeric:tabular-nums;font-weight:650}.table-size-popover__error{display:flex;align-items:flex-start;margin-block-start:.2rem;gap:.35rem;color:var(--danger);font-size:var(--type-ui-caption);font-weight:500;line-height:1.35}.table-size-popover__error svg{width:1rem;height:1rem;flex:0 0 auto;margin-block-start:.1rem;stroke-width:2}.table-size-grid{display:grid;width:max-content;max-width:100%;padding:.1rem;overflow-x:auto;gap:.2rem}.table-size-grid__row{display:grid;width:max-content;grid-template-columns:repeat(10,1.375rem);gap:.2rem}.table-size-grid__cell{width:1.375rem;min-height:1.375rem;padding:0;border:.0625rem solid var(--border-soft);border-radius:.2rem;background:var(--surface-soft);cursor:pointer;transition:border-color 90ms ease,background 90ms ease,box-shadow 90ms ease}.table-size-grid__cell[data-table-size-highlighted=true]{border-color:color-mix(in srgb,var(--accent) 72%,var(--border-strong));background:var(--accent-soft)}.table-size-grid__cell[aria-selected=true]{box-shadow:inset 0 0 0 .0625rem var(--accent)}.table-size-popover__custom{padding-block-start:.45rem;border-block-start:.0625rem solid var(--border-soft)}.table-size-popover__custom>summary{color:var(--text-soft);cursor:pointer;font-size:var(--type-ui-caption);font-weight:650}.table-size-popover__custom>summary:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.table-size-popover__custom[open]>summary{margin-block-end:.55rem}.table-size-popover__custom form{display:grid;gap:.45rem}.table-size-popover__custom-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.table-size-popover__custom-fields label{display:grid;min-width:0;gap:.25rem;color:var(--text-soft);font-size:var(--type-ui-caption)}.table-size-popover__custom-fields input{width:100%;min-width:0;min-height:2.25rem;padding:.4rem .5rem;color:var(--text);caret-color:var(--accent);font:inherit;font-size:var(--type-ui-primary);font-variant-numeric:tabular-nums}.table-size-popover__custom-fields input[aria-invalid=true]{border-color:var(--danger)}.table-size-popover__custom-status,.table-size-popover__custom-help,.table-size-popover__custom-error{margin:0;font-size:var(--type-ui-caption);line-height:1.4}.table-size-popover__custom-status{color:var(--text-soft);font-variant-numeric:tabular-nums;font-weight:650}.table-size-popover__custom-help{color:var(--text-muted)}.table-size-popover__custom-error{color:var(--danger)}.table-size-popover__custom-submit{min-height:2.25rem;padding:.4rem .7rem;border:.0625rem solid color-mix(in srgb,var(--accent) 48%,var(--border-soft));border-radius:var(--radius-xs);color:var(--accent-strong);background:var(--accent-soft);cursor:pointer;font:inherit;font-size:var(--type-ui-caption);font-weight:700;transition:border-color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.table-size-popover__custom-submit:hover:not(:disabled){border-color:var(--accent);background:color-mix(in srgb,var(--accent-soft) 72%,var(--surface-hover))}.table-size-popover__custom-submit:focus-visible{outline:none;box-shadow:var(--field-focus-ring)}.table-size-popover__custom-submit:disabled{opacity:.46;cursor:default}.structured-popover{width:min(24rem,calc(100vw - 1rem));padding:.55rem}.structured-popover form{display:grid;gap:.45rem}.structured-popover__field{display:grid;grid-template-columns:1.2rem minmax(0,1fr);align-items:center;gap:.45rem}.structured-popover__field>svg{width:1rem;height:1rem;color:var(--text-muted);stroke-width:1.8;transition:color .12s ease}.structured-popover__field:focus-within>svg{color:var(--accent)}.structured-popover__field input{width:100%;min-width:0;min-height:2.75rem;padding:.55rem .7rem;border:.0625rem solid var(--border-strong);border-radius:var(--radius-xs);color:var(--text);caret-color:var(--accent);background:var(--paper);font:inherit;line-height:1.35}.structured-popover__field input::placeholder{color:var(--field-placeholder);opacity:1}.structured-popover__field input[aria-invalid=true]{border-color:var(--danger)}.structured-popover__image-source-hint{display:grid;margin:-.1rem 0 .05rem;margin-inline-start:1.65rem;gap:.1rem;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.4}.structured-popover__actions{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem}.structured-popover__action-spacer{flex:1}.structured-popover__actions button{display:grid;width:2rem;height:2rem;place-items:center;padding:0;border:.0625rem solid transparent;border-radius:var(--radius-xs);color:var(--text-soft);background:transparent;cursor:pointer;transition:color .12s ease,background .12s ease,border-color .12s ease}.structured-popover__actions .structured-popover__local-image{display:inline-flex;width:auto;max-width:100%;height:auto;min-height:2.25rem;flex:0 1 auto;align-items:center;justify-content:center;gap:.4rem;padding:.375rem .625rem;font:inherit;font-size:var(--type-ui-caption);font-weight:650;line-height:1.25;text-align:start}.structured-popover__actions button:hover,.structured-popover__actions button[aria-expanded=true]{border-color:var(--border-soft);color:var(--text);background:var(--surface-hover)}.structured-popover__actions button:disabled{opacity:.4;cursor:default}.structured-popover__actions svg{width:1rem;height:1rem;stroke-width:2}.structured-popover__actions .structured-popover__confirm{border-color:color-mix(in srgb,var(--accent) 42%,var(--border-soft));color:var(--accent);background:var(--accent-soft)}.structured-popover__actions .structured-popover__danger{color:var(--danger)}.structured-popover__actions .structured-popover__danger:hover,.structured-popover__actions .structured-popover__danger:focus-visible{border-color:color-mix(in srgb,var(--danger) 62%,var(--border-strong));color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,var(--bg-elevated))}.structured-popover__error{margin:0;color:var(--danger);font-size:var(--type-ui-caption);line-height:1.45}.footnote-popover{width:min(22rem,calc(100vw - 1rem));padding:.875rem}.authoring-popover__header{display:flex;align-items:flex-start;justify-content:space-between}.footnote-popover__header{gap:.75rem}.authoring-popover__header h2,.authoring-popover__header p{margin:0}.authoring-popover__header h2{font-size:var(--type-ui-title)}.footnote-popover__header p{margin-block-start:.25rem;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.45}.footnote-popover form,.footnote-popover label{display:grid;gap:.35rem}.footnote-popover form{margin-block-start:.75rem;gap:.55rem}.footnote-popover label>span{color:var(--text-soft);font-size:var(--type-ui-caption)}.footnote-popover input:not([type=checkbox]),.footnote-popover textarea{width:100%;min-width:0;padding:.55rem .625rem;border:.0625rem solid var(--border-strong);border-radius:var(--radius-xs);color:var(--text);background:var(--paper);font:inherit}.footnote-popover textarea{min-height:5.25rem;max-height:12rem;overflow:auto;line-height:1.45;resize:none}.footnote-popover :where(input,textarea)[aria-invalid=true]{border-color:var(--danger)}.authoring-popover :where(button,input:not(.app-field-surface),textarea:not(.app-field-surface),summary):focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.footnote-popover button{min-height:2rem;padding:.35rem .65rem;border:.0625rem solid var(--border-strong);border-radius:var(--radius-xs);color:var(--text);background:var(--surface-hover);font:inherit;cursor:pointer}.footnote-popover button.soft-button--primary{color:var(--accent);background:var(--accent-soft)}.footnote-popover__field-help,.footnote-popover__advanced p,.footnote-popover__error{margin:0;font-size:var(--type-ui-caption);line-height:1.45}.footnote-popover__field-help,.footnote-popover__advanced p{color:var(--text-muted)}.footnote-popover__error{color:var(--danger)}.footnote-popover__advanced{padding-block:.25rem}.footnote-popover__advanced summary{width:fit-content;cursor:pointer;color:var(--text-soft);font-size:var(--type-ui-caption)}.footnote-popover__advanced[open]{display:grid;gap:.45rem}.footnote-popover__advanced[open] summary{margin-block-end:.15rem}.footnote-popover__checkbox{grid-template-columns:var(--app-checkbox-size) minmax(0,1fr);align-items:start}.footnote-popover__utilities,.footnote-popover__actions{display:flex;flex-wrap:wrap;gap:.4rem}.footnote-popover__utilities{padding-block-start:.2rem;border-block-start:.0625rem solid var(--border-soft)}.footnote-popover__actions{justify-content:flex-end;margin-block-start:.15rem}.footnote-popover .footnote-popover__danger{color:var(--danger)}.table-boundary-controls{position:fixed;z-index:var(--layer-floating-control);inset:0;pointer-events:none}.table-boundary-controls__insert,.table-boundary-controls__axis{position:fixed;transform:translate(-50%,-50%);pointer-events:auto}.table-boundary-controls[data-discovery-visible=false]:not(:focus-within) :where(.table-boundary-controls__insert,.table-boundary-controls__axis){opacity:0;pointer-events:none}.table-boundary-controls__insert,.table-boundary-controls__handle,.table-boundary-controls__action{display:grid;box-sizing:border-box;width:var(--table-control-size);height:var(--table-control-size);place-items:center;padding:0;border:.0625rem solid var(--border-strong);border-radius:999px;color:var(--text-soft);background:var(--bg-elevated);box-shadow:0 .2rem .65rem #0000002e;cursor:pointer;transition:opacity var(--motion-fast) ease,color var(--motion-fast) ease,background var(--motion-fast) ease,border-color var(--motion-fast) ease,transform var(--motion-fast) ease}.table-boundary-controls :where(svg){width:.82rem;height:.82rem;stroke-width:2}.table-boundary-controls__handle{opacity:0}.table-boundary-controls__insert{border-color:transparent;color:transparent;background:transparent;box-shadow:none}.table-boundary-controls__insert:before{position:absolute;width:.38rem;height:.38rem;border-radius:50%;content:"";background:var(--accent-strong);box-shadow:0 0 0 .16rem var(--accent-soft),0 0 .65rem var(--accent-glow);transition:opacity var(--motion-fast) ease,transform var(--motion-fast) ease}.table-boundary-controls__insert>svg{opacity:0;transform:scale(.72);transition:opacity var(--motion-fast) ease,transform var(--motion-fast) ease}.table-boundary-controls__insert:hover,.table-boundary-controls__insert:focus-visible,.table-boundary-controls__axis:hover>.table-boundary-controls__handle,.table-boundary-controls__handle:focus-visible,.table-boundary-controls__axis[data-active=true]>.table-boundary-controls__handle{opacity:1}.table-boundary-controls__insert:hover,.table-boundary-controls__insert:focus-visible{border-color:color-mix(in srgb,var(--accent) 72%,var(--border-strong));color:var(--accent);background:var(--accent-soft);box-shadow:0 .2rem .65rem color-mix(in srgb,var(--shadow-color) 24%,transparent);transform:translate(-50%,-50%)}.table-boundary-controls__insert:hover:before,.table-boundary-controls__insert:focus-visible:before{opacity:0;transform:scale(.5)}.table-boundary-controls__insert:hover>svg,.table-boundary-controls__insert:focus-visible>svg{opacity:1;transform:scale(1)}.table-boundary-controls__insert:disabled{display:none}.table-boundary-controls__axis{display:grid;place-items:center}.table-boundary-controls__handle:hover,.table-boundary-controls__handle:focus-visible,.table-boundary-controls__handle[aria-pressed=true],.table-boundary-controls__action:hover,.table-boundary-controls__action:focus-visible,.table-boundary-controls__action[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.table-boundary-controls__handle--destructive{color:var(--danger)}.table-boundary-controls__handle--destructive:hover,.table-boundary-controls__handle--destructive:focus-visible{border-color:color-mix(in srgb,var(--danger) 62%,var(--border-strong));color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,var(--bg-elevated))}.table-boundary-controls__handle--destructive[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.table-boundary-controls__handle--destructive:disabled{display:none}.table-boundary-controls__actions{position:absolute;display:flex;align-items:center;padding:.16rem;gap:.12rem;border:.0625rem solid var(--border-soft);border-radius:999px;background:color-mix(in srgb,var(--bg-elevated) 94%,transparent);box-shadow:var(--shadow-panel)}.table-boundary-controls__axis--column .table-boundary-controls__actions{inset-block-start:calc(100% + .3rem);inset-inline-start:50%;transform:translate(-50%)}.table-boundary-controls__action{width:1.6rem;height:1.6rem;border-color:transparent;box-shadow:none}.table-boundary-controls__action--danger{color:var(--danger)}.table-boundary-controls__action--danger:hover,.table-boundary-controls__action--danger:focus-visible{border-color:color-mix(in srgb,var(--danger) 62%,var(--border-strong));color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,var(--bg-elevated))}.table-boundary-controls__action--danger[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.find-replace-panel{position:absolute;z-index:var(--layer-floating-control);inset-block-start:.75rem;inset-inline-end:.75rem;display:grid;width:min(34rem,calc(100% - 1.5rem));max-height:calc(100% - 1.5rem);padding:.625rem;overflow:auto;gap:.4375rem;border:.0625rem solid var(--border-strong);border-radius:var(--radius-sm);color:var(--text);background:color-mix(in srgb,var(--surface-strong-solid) 94%,transparent);box-shadow:var(--shadow-panel),var(--glass-highlight);-webkit-backdrop-filter:blur(1rem) saturate(1.08);backdrop-filter:blur(1rem) saturate(1.08)}.find-replace-panel__query,.find-replace-panel__replacement{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,2rem);align-items:center;gap:.3125rem}.find-replace-panel__query{grid-template-columns:minmax(0,1fr) auto repeat(3,2rem)}.find-replace-panel__search-field,.find-replace-panel__replacement-label,.find-replace-panel__replacement-field{min-width:0}.find-replace-panel__replacement-field{display:grid;width:100%;grid-template-columns:2rem minmax(0,1fr);align-items:center;height:2rem;color:var(--text-muted)}.find-replace-panel__replacement-field>svg{width:.9375rem;height:.9375rem;justify-self:center}.find-replace-panel__replacement-field input{min-width:0;height:1.875rem;padding:0 .25rem;border:0;outline:0;color:var(--text);background:transparent;font:inherit;font-size:.82rem}.find-replace-panel__icon-button{display:grid;width:2rem;height:2rem;padding:0;border:.0625rem solid transparent;border-radius:var(--radius-xs);color:var(--text-soft);background:transparent;place-items:center;cursor:pointer;transition:border-color var(--motion-fast),color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.find-replace-panel__icon-button svg{width:.9375rem;height:.9375rem}.find-replace-panel__icon-button:not(:disabled):hover{border-color:var(--border-soft);color:var(--text);background:var(--surface-hover)}.find-replace-panel__icon-button:disabled{cursor:default;opacity:.42}.find-replace-panel__icon-button:focus-visible,.find-replace-panel__option:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.find-replace-panel__options{display:flex;align-items:center;flex-wrap:wrap;gap:.3125rem;color:var(--text-muted);font-size:var(--type-ui-caption)}.find-replace-panel__option{display:inline-flex;min-height:1.75rem;align-items:center;gap:.3125rem;padding:.1875rem .5rem;border:.0625rem solid transparent;border-radius:999rem;color:var(--text-muted);background:transparent;font:inherit;cursor:pointer;transition:border-color var(--motion-fast),color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.find-replace-panel__option svg{width:.875rem;height:.875rem}.find-replace-panel__option:hover{border-color:var(--border-soft);color:var(--text-soft);background:var(--surface-hover)}.find-replace-panel__option[aria-pressed=true]{border-color:color-mix(in srgb,var(--accent) 48%,var(--border-soft));color:var(--accent-strong);background:var(--accent-soft);box-shadow:inset 0 0 0 .0625rem color-mix(in srgb,var(--accent) 18%,transparent)}.find-replace-panel__status{display:inline-flex;min-width:3rem;height:1.625rem;align-items:center;justify-content:center;gap:.25rem;padding-inline:.4375rem;border:.0625rem solid var(--border-soft);border-radius:999rem;color:var(--text-muted);background:var(--surface-soft);font-size:var(--type-ui-caption);font-variant-numeric:tabular-nums;white-space:nowrap}.find-replace-panel__status svg{width:.75rem;height:.75rem;color:var(--accent-strong)}.find-replace-panel__status[data-find-match-count="0"][data-find-query-empty=false]{color:var(--warning)}@container editor-stage (max-width: 38rem){.find-replace-panel{inset-block-start:.5rem;inset-inline:.5rem;width:auto;max-height:calc(100% - 1rem)}.find-replace-panel__query{grid-template-columns:minmax(0,1fr) auto repeat(3,2rem)}}:where(.document-canvas__meta--editor,.authoring-toolbar--formatting) button:not(:disabled){cursor:pointer}.document-canvas__document-actions{display:flex;min-width:0;flex:0 0 auto;gap:.125rem}.document-canvas__document-actions button{display:inline-flex;width:2rem;flex:0 0 auto;align-items:center;justify-content:center;padding-inline:0}.document-canvas__document-actions svg{width:.8125rem;height:.8125rem;flex:0 0 auto}.editor-stage{position:relative;display:grid;container-name:editor-stage;container-type:inline-size;min-height:0;overflow:auto;scrollbar-gutter:stable;place-items:center;grid-row:4;margin:0 .5625rem .5rem;border-radius:var(--radius-md);background:radial-gradient(circle at 50% 0%,var(--surface-soft),transparent 35%),var(--canvas);box-shadow:inset 0 1px 0 var(--border-soft)}.welcome{display:grid;width:min(680px,calc(100% - 56px));grid-template-columns:84px minmax(0,1fr);padding:38px;border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--glass-highlight),var(--shadow-window);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px)}.welcome__mark{width:56px;height:64px;margin-top:4px;color:var(--text);opacity:.92}.welcome__copy h2{max-width:480px;margin:0;font-family:var(--font-editor);font-size:clamp(1.75rem,3.25vw,2.625rem);font-weight:500;line-height:1.08;letter-spacing:-.035em}.welcome__copy p{max-width:500px;margin:16px 0 0;color:var(--text-soft);font-size:var(--type-ui-primary);line-height:1.65}.welcome__actions{display:flex;flex-wrap:wrap;grid-column:2;margin-top:1.5rem;gap:.5rem}.document-canvas{width:min(760px,calc(100% - 64px));min-height:min(650px,calc(100% - 52px));padding:clamp(42px,6vw,78px);border-radius:var(--radius-sm);color:var(--text);background:var(--paper);box-shadow:var(--glass-highlight),0 24px 70px #00000029}.document-canvas--editor,.history-review{--editor-visual-font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--editor-source-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;--editor-text-size: 1rem;--editor-line-height: 1.62;--editor-block-spacing: .8em;--editor-heading-spacing: 1.4em;--editor-heading-after: .55em;--editor-table-control-clearance: 1.5rem;--editor-content-block-start: 1.75rem;--editor-content-block-end: 4rem;--editor-content-inline-padding: clamp(1.5rem, 4cqi, 3rem)}.document-canvas--editor{position:relative;display:grid;inline-size:clamp(min(32rem,calc(100% - 1.5rem)),min(var(--editor-canvas-inline-size, 90%),calc(var(--editor-canvas-text-span, 64) * var(--editor-text-size) + var(--editor-canvas-fluid-size, 40cqi))),calc(100% - 1.5rem));block-size:calc(100% - 1.5rem);min-block-size:min(22.5rem,calc(100% - 1.5rem));grid-template-rows:3rem minmax(0,1fr) 3rem;padding:0;overflow:hidden}:is(.document-canvas--editor,.history-review)[data-editor-font-profile=modern-sans],.typography-preview[data-font-profile=modern-sans],.typography-font-option[data-font-profile=modern-sans]{--editor-visual-font: Inter, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif}:is(.document-canvas--editor,.history-review)[data-editor-font-profile=classic-serif],.typography-preview[data-font-profile=classic-serif],.typography-font-option[data-font-profile=classic-serif]{--editor-visual-font: Charter, Cambria, Georgia, "Times New Roman", serif}:is(.document-canvas--editor,.history-review)[data-editor-text-scale="-2"],.typography-preview[data-text-scale="-2"]{--editor-text-size: .82rem}:is(.document-canvas--editor,.history-review)[data-editor-text-scale="-1"],.typography-preview[data-text-scale="-1"]{--editor-text-size: .9rem}:is(.document-canvas--editor,.history-review)[data-editor-text-scale="1"],.typography-preview[data-text-scale="1"]{--editor-text-size: 1.12rem}:is(.document-canvas--editor,.history-review)[data-editor-text-scale="2"],.typography-preview[data-text-scale="2"]{--editor-text-size: 1.25rem}:is(.document-canvas--editor,.history-review)[data-editor-density=compact],.typography-preview[data-density=compact]{--editor-line-height: 1.46;--editor-block-spacing: .55em;--editor-heading-spacing: 1.05em;--editor-heading-after: .4em}:is(.document-canvas--editor,.history-review)[data-editor-density=airy],.typography-preview[data-density=airy]{--editor-line-height: 1.82;--editor-block-spacing: 1.05em;--editor-heading-spacing: 1.75em;--editor-heading-after: .7em}.document-lifecycle{align-self:center}.document-lifecycle .eyebrow{display:block;margin-bottom:22px}.document-lifecycle .soft-button{margin-top:4px}.document-lifecycle__actions{display:flex;gap:8px}.document-canvas__meta{display:flex;justify-content:space-between;margin-bottom:54px;color:var(--text-muted);font-size:var(--type-ui-caption);letter-spacing:.04em}.document-canvas__meta--editor{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin:0;padding:0 1.125rem;gap:.625rem;border-bottom:1px solid var(--border-soft)}.document-canvas__primary-actions,.document-canvas__persistence{display:flex;min-width:0;align-items:center;gap:.625rem}.document-canvas__persistence{justify-self:end}.document-canvas__save-state{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:end}.editor-adapter-host,.editor-split,.editor-split__source,.preview-pane,.outline-panel{min-inline-size:0;min-block-size:0;overflow:hidden}.editor-split{position:relative;display:flex}.editor-split__source{position:relative;display:grid;flex:1 1 100%}.document-scroll-top{position:absolute;z-index:2;inset-inline-end:1.25rem;inset-block-end:min(1.25rem,10%);background:var(--surface-elevated);box-shadow:var(--shadow-soft)}.document-scroll-top[hidden]{display:none}.document-scroll-top:hover{background:var(--surface-strong)}.editor-split[data-source-preview-visible=true] .editor-split__source{flex:var(--editor-split-source, 50) 1 0;min-inline-size:16ch}.app-split-divider{position:relative;display:flex;flex:0 0 auto;align-items:center;justify-content:center;inline-size:.5rem;cursor:col-resize;touch-action:none}.app-split-divider:before{inline-size:.0625rem;block-size:100%;content:"";background:var(--border-soft);transition:background .12s ease}.app-split-divider[aria-orientation=horizontal]{inline-size:100%;block-size:.5rem;cursor:row-resize}.app-split-divider[aria-orientation=horizontal]:before{inline-size:100%;block-size:.0625rem}.app-split-divider:hover:before,.app-split-divider:focus-visible:before{inline-size:.125rem;background:var(--accent)}.app-split-divider[aria-orientation=horizontal]:hover:before,.app-split-divider[aria-orientation=horizontal]:focus-visible:before{inline-size:100%;block-size:.125rem}.app-split-divider:focus-visible{border-radius:var(--radius-xs);outline:var(--focus-outline);outline-offset:calc(-1 * var(--focus-outline-offset))}.preview-pane{position:relative;display:grid;flex:var(--editor-split-preview, 50) 1 0;grid-template-rows:auto minmax(0,1fr);min-inline-size:16ch}.preview-pane__status{display:grid;gap:.25rem;justify-items:end;pointer-events:none}.preview-pane__status:not(:empty){padding:.5rem .75rem}.preview-pane__status>:where(span){max-inline-size:100%;padding:.2rem .55rem;border:.0625rem solid var(--border-soft);border-radius:var(--radius-xs);background:var(--surface-elevated);color:var(--text-muted);font-size:.72rem}.preview-pane__failure{border-color:var(--danger);color:var(--text)}.preview-pane__surface{min-inline-size:0;min-block-size:0;overflow:auto;scrollbar-gutter:stable;-webkit-user-select:text;user-select:text}.document-outline-toggle{flex:0 0 auto}.document-outline-toggle svg,.outline-panel__close svg{inline-size:.875rem;block-size:.875rem;stroke-width:1.8}.outline-panel{display:grid;flex:0 0 clamp(14rem,24cqi,18rem);grid-template-rows:2.75rem auto minmax(0,1fr);border-inline-start:.0625rem solid var(--border-soft);background:var(--surface)}.outline-panel__header{display:flex;align-items:center;justify-content:space-between;min-inline-size:0;padding-inline:.75rem .45rem;border-block-end:.0625rem solid var(--border-soft)}.outline-panel__header h2{min-inline-size:0;margin:0;overflow:hidden;font-family:var(--font-ui);font-size:var(--type-ui-primary);font-weight:650;text-overflow:ellipsis;white-space:nowrap}.outline-panel__close{display:inline-grid;inline-size:2rem;block-size:2rem;flex:0 0 auto;padding:0;place-items:center}.outline-panel__status{display:grid;min-block-size:0;color:var(--text-muted);font-size:var(--type-ui-caption)}.outline-panel__status:not(:empty){padding:.4rem .75rem;border-block-end:.0625rem solid var(--border-soft)}.outline-panel__scroll{min-inline-size:0;min-block-size:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.outline-panel__entry{display:flex;inline-size:100%;block-size:2rem;align-items:center;justify-content:flex-start;padding:.25rem .65rem;overflow:hidden;border:0;border-radius:0;background:transparent;color:var(--text-soft);font-family:var(--font-ui);font-size:var(--type-ui-caption);text-align:start}.outline-panel__entry span{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outline-panel__entry:hover:not(:disabled){background:var(--surface-soft);color:var(--text)}.outline-panel__entry:focus-visible{position:relative;z-index:1;outline:var(--focus-outline);outline-offset:calc(-1 * var(--focus-outline-offset))}.outline-panel__entry:disabled{cursor:wait;opacity:.55}.outline-panel__empty{margin:0;padding:1rem .75rem;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.5}.outline-panel__spacer{pointer-events:none}.preview-pane__surface [data-outline-target=true]{border-radius:var(--radius-xs);outline:var(--focus-outline-width) solid color-mix(in srgb,var(--accent) 56%,transparent);outline-offset:.2rem}@container editor-stage (max-width: 52rem){.outline-panel{position:absolute;z-index:4;inset-block:0;inset-inline-end:0;inline-size:min(20rem,100%);box-shadow:var(--shadow-window)}.editor-split[data-source-preview-visible=true]{flex-direction:column}.editor-split[data-source-preview-visible=true] :is(.editor-split__source,.preview-pane){flex:1 1 50%;min-block-size:8rem}.editor-split[data-source-preview-visible=true] .app-split-divider{display:none}}.preview-surface__projection{block-size:100%;overflow:hidden}.tiptap-editor.preview-projection>*{content-visibility:auto;contain-intrinsic-block-size:auto 2.5rem}.preview-draft-block{display:grid;gap:.65rem;margin-block:.75rem;padding:.85rem;border:.1rem dashed color-mix(in srgb,var(--accent) 62%,var(--border-soft));border-radius:var(--radius-sm);background:color-mix(in srgb,var(--accent) 8%,var(--surface-elevated));color:var(--text)}.preview-draft-block__header{display:grid;gap:.2rem}.preview-draft-block__label{color:var(--accent);font:650 .78rem/1.2 var(--font-ui)}.preview-draft-block__description{color:var(--text-muted);font:500 .72rem/1.35 var(--font-ui)}.preview-draft-block__source{margin:0;padding:.65rem;border-radius:var(--radius-xs);background:var(--surface-soft);font-family:var(--editor-source-font);font-size:calc(var(--editor-text-size) * .82);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.preview-surface__fallback{position:relative;block-size:100%;overflow:hidden}.preview-surface__source-fallback{block-size:100%;margin:0;padding:var(--editor-content-block-start) var(--editor-content-inline-padding) var(--editor-content-block-end);overflow:auto;color:var(--text);font-family:var(--editor-source-font);font-size:calc(var(--editor-text-size) * .92);line-height:var(--editor-line-height);white-space:pre-wrap;overflow-wrap:anywhere}.tiptap-editor{position:relative;height:100%;padding:var(--editor-content-block-start) var(--editor-content-inline-padding) var(--editor-content-block-end);overflow:auto;scrollbar-gutter:stable;color:var(--text);font-family:var(--editor-visual-font);font-size:var(--editor-text-size);font-variant-ligatures:none;font-feature-settings:"liga" 0;line-height:var(--editor-line-height);white-space:pre-wrap;white-space:break-spaces;word-wrap:break-word;-webkit-font-variant-ligatures:none;caret-color:var(--accent)}.tiptap-editor:not(.preview-projection):focus-visible{outline:none}.tiptap-editor.preview-projection{caret-color:transparent;overflow-anchor:none}.tiptap-editor [contenteditable=false]{white-space:normal}.tiptap-editor [contenteditable=false] [contenteditable=true],.tiptap-editor pre{white-space:pre-wrap}.tiptap-editor img.ProseMirror-separator{display:inline!important;width:0!important;height:0!important;margin:0!important;border:0!important}.tiptap-editor .ProseMirror-gapcursor{position:absolute;display:none;margin:0;pointer-events:none}.tiptap-editor .ProseMirror-gapcursor:after{position:absolute;inset-block-start:-.125rem;display:block;inline-size:1.25rem;border-block-start:.125rem solid var(--accent);content:"";animation:tiptap-gapcursor-blink 1.1s steps(2,start) infinite}.tiptap-editor.ProseMirror-focused .ProseMirror-gapcursor{display:block}.tiptap-dropcursor{background:var(--accent);box-shadow:0 0 0 .0625rem color-mix(in srgb,var(--paper) 72%,transparent);pointer-events:none}.tiptap-editor.ProseMirror-hideselection *:not(.protected-markdown *)::selection,.tiptap-editor.ProseMirror-hideselection *:not(.protected-markdown *)::-moz-selection{background:transparent}.tiptap-editor.ProseMirror-hideselection *{caret-color:transparent}.tiptap-editor .ProseMirror-selectednode{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}@keyframes tiptap-gapcursor-blink{to{visibility:hidden}}@media(prefers-reduced-motion:reduce){.tiptap-editor .ProseMirror-gapcursor:after{animation:none}}@media(forced-colors:active){.tiptap-editor .ProseMirror-gapcursor:after{border-block-start-color:CanvasText}.tiptap-dropcursor{background:Highlight;box-shadow:none;forced-color-adjust:none}}.tiptap-editor .tiptap-search-match{border-radius:.12em;background:color-mix(in srgb,var(--selection) 82%,transparent);box-shadow:inset 0 -.0625rem color-mix(in srgb,var(--focus) 58%,transparent)}.tiptap-editor .tiptap-search-match--active{background:color-mix(in srgb,var(--accent) 34%,var(--selection));box-shadow:inset 0 -.125rem 0 var(--accent)}.tiptap-editor>*{inline-size:100%;max-inline-size:100%;margin-inline:0}.tiptap-editor>:first-child{margin-top:0}.tiptap-editor :where(p,ul,ol,blockquote,pre){margin-block:0 var(--editor-block-spacing)}.tiptap-editor blockquote{padding:.72em .95em;border-inline-start:.22em solid var(--editor-quote-border);border-radius:var(--radius-xs);background:var(--editor-quote-surface)}.tiptap-editor blockquote>p{font-style:italic}.tiptap-editor blockquote>:last-child{margin-block-end:0}.tiptap-editor details[data-markdown-details]{margin-block:0 var(--editor-block-spacing);padding:.72em .95em;border:.0625rem solid color-mix(in srgb,var(--accent) 42%,var(--border-soft));border-radius:var(--radius-xs);background:color-mix(in srgb,var(--accent-soft) 36%,var(--paper))}.tiptap-editor details[data-markdown-details]>summary{cursor:pointer;color:color-mix(in srgb,var(--text) 88%,var(--accent));font-family:var(--font-ui);font-weight:650}.tiptap-editor details[data-markdown-details]>summary:focus-visible{border-radius:.2em;outline:var(--focus-outline);outline-offset:.18em}.tiptap-editor [data-markdown-details-body]{margin-block-start:.72em}.tiptap-editor [data-markdown-details-body]>:last-child{margin-block-end:0}.tiptap-editor aside[data-github-alert]{--github-alert-tone: var(--accent);margin-block:0 var(--editor-block-spacing);padding:.72em .95em;border:.0625rem solid color-mix(in srgb,var(--github-alert-tone) 30%,var(--border-soft));border-inline-start:.22em solid var(--github-alert-tone);border-radius:var(--radius-xs);background:color-mix(in srgb,var(--github-alert-tone) 8%,var(--paper))}.tiptap-editor aside[data-github-alert=tip]{--github-alert-tone: var(--success)}.tiptap-editor aside[data-github-alert=important]{--github-alert-tone: var(--conflict)}.tiptap-editor aside[data-github-alert=warning]{--github-alert-tone: var(--warning)}.tiptap-editor aside[data-github-alert=caution]{--github-alert-tone: var(--danger)}.tiptap-editor aside[data-github-alert]>header{margin-block-end:.42em;color:color-mix(in srgb,var(--github-alert-tone) 84%,var(--text));font-family:var(--font-ui);font-size:var(--type-ui-caption);font-weight:750;letter-spacing:.045em}.tiptap-editor [data-github-alert-body]>:last-child{margin-block-end:0}.tiptap-editor :where(h1,h2,h3,h4,h5,h6){margin-block:calc(var(--editor-heading-spacing) * .65) var(--editor-heading-after);font-weight:600;line-height:1.25;letter-spacing:-.012em}.tiptap-editor h1{margin-block-start:var(--editor-heading-spacing);padding-block-end:.28em;border-bottom:.0625rem solid var(--border-soft);font-size:2em}.tiptap-editor h2{margin-block-start:calc(var(--editor-heading-spacing) * .85);font-size:1.5em}.tiptap-editor h3{font-size:1.25em}.tiptap-editor h4{margin-block-start:calc(var(--editor-heading-spacing) * .5);font-size:1.08em}.tiptap-editor h5{margin-block-start:calc(var(--editor-heading-spacing) * .5);font-size:1em}.tiptap-editor h6{margin-block-start:calc(var(--editor-heading-spacing) * .5);color:var(--text-soft);font-size:.92em}.tiptap-editor li+li{margin-top:calc(var(--editor-block-spacing) * .3)}.tiptap-editor li>p{margin-block:0}.tiptap-editor a{color:var(--accent)}.tiptap-editor a:focus-visible{border-radius:.16em;outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.tiptap-editor :not(pre)>code{padding:.12em .3em;border:.0625rem solid color-mix(in srgb,var(--border-soft) 76%,transparent);border-radius:.3em;color:color-mix(in srgb,var(--text) 88%,var(--accent));background:color-mix(in srgb,var(--surface-hover) 72%,transparent);font-family:var(--editor-source-font);font-size:.88em}.tiptap-editor pre{position:relative;padding:1em 1.15em;overflow:auto hidden;border:.0625rem solid var(--border-soft);border-left:.1875rem solid color-mix(in srgb,var(--accent) 72%,var(--border-strong));border-radius:var(--radius-sm);color:var(--text-soft);background:color-mix(in srgb,var(--bg-elevated) 72%,var(--paper));box-shadow:inset 0 .0625rem color-mix(in srgb,white 5%,transparent),0 .45rem 1.35rem #00000014;font-family:var(--editor-source-font);font-size:.88em;line-height:1.55;tab-size:4;white-space:pre}.tiptap-editor pre code{padding:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;white-space:inherit}.tiptap-editor .diagram-projection{display:grid;max-inline-size:100%;margin-block:calc(var(--editor-block-spacing) * 1.2);overflow:hidden;border:.0625rem solid var(--border-soft);border-radius:var(--radius-sm);background:color-mix(in srgb,var(--surface-soft) 74%,var(--paper));box-shadow:0 .5rem 1.4rem #00000014;font-family:var(--font-ui)}.tiptap-editor .diagram-projection__header{display:flex;min-width:0;align-items:center;padding:.55em .7em;gap:.65em;border-bottom:.0625rem solid var(--border-soft);background:color-mix(in srgb,var(--accent-soft) 42%,transparent)}.tiptap-editor .diagram-projection__label{flex:0 0 auto;color:var(--text);font-size:var(--type-ui-caption);font-weight:700}.tiptap-editor .diagram-projection__status{min-width:0;flex:1 1 auto;overflow:hidden;color:var(--text-muted);font-size:var(--type-ui-caption);text-overflow:ellipsis;white-space:nowrap}.tiptap-editor .diagram-projection__source-action{min-height:2rem;flex:0 0 auto;padding:.38em .68em;font-size:var(--type-ui-caption);white-space:nowrap}.tiptap-editor .diagram-projection__viewport{display:grid;max-block-size:min(70vh,52rem);min-block-size:5.5rem;overflow:auto;place-items:center}.tiptap-editor .diagram-projection__image,.tiptap-editor .diagram-projection__canvas{box-sizing:border-box;display:block;max-inline-size:100%;block-size:auto;padding:1em}.tiptap-editor .diagram-projection__canvas{inline-size:min(100%,42rem);aspect-ratio:16 / 9}.tiptap-editor .diagram-projection__summary{box-sizing:border-box;inline-size:100%;margin:0;padding:.55em 1em .7em;color:var(--text-muted);font-size:var(--type-ui-caption);text-align:center}.tiptap-editor .diagram-projection__image[hidden],.tiptap-editor .diagram-projection__canvas[hidden],.tiptap-editor .diagram-projection__summary[hidden],.tiptap-editor .diagram-projection__source[hidden]{display:none}.tiptap-editor pre.diagram-projection__source{box-sizing:border-box;inline-size:100%;min-block-size:5.5rem;margin:0;padding:1em 1.15em;border:0;border-radius:0;background:transparent;box-shadow:none;white-space:pre}.tiptap-editor .diagram-projection[data-diagram-state]:not([data-diagram-state=deferred]):not([data-diagram-state=loading]):not([data-diagram-state=rendered]){border-color:color-mix(in srgb,var(--warning) 58%,var(--border-soft))}.tiptap-editor .diagram-projection[aria-busy=true] .diagram-projection__viewport{background:linear-gradient(110deg,transparent 15%,color-mix(in srgb,var(--accent-soft) 32%,transparent) 45%,transparent 75%);background-size:220% 100%;animation:diagram-projection-loading 1.4s ease-in-out infinite}@keyframes diagram-projection-loading{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tiptap-editor .diagram-projection[aria-busy=true] .diagram-projection__viewport{animation:none}}.tiptap-editor .tableWrapper{box-sizing:border-box;inline-size:calc(100% + var(--editor-table-control-clearance) + var(--editor-table-control-clearance));max-inline-size:none;margin-block:0;margin-inline:calc(0rem - var(--editor-table-control-clearance));padding:var(--editor-table-control-clearance);max-block-size:min(65dvh,36rem);overflow:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-gutter:stable;background:transparent}.tiptap-editor .tableWrapper:focus-visible{outline:var(--focus-outline);outline-offset:calc(-1 * var(--focus-outline-offset))}.tiptap-editor table{width:100%;min-width:100%;table-layout:fixed;border-collapse:collapse;border-radius:var(--radius-xs);background:color-mix(in srgb,var(--paper) 82%,var(--surface-soft));box-shadow:inset 0 0 0 .0625rem var(--border-strong);font-family:var(--editor-visual-font)}.tiptap-editor :where(th,td){min-width:7ch;padding:.55em .7em;border:.0625rem solid var(--border-strong);overflow-wrap:anywhere;text-align:left;vertical-align:top}.tiptap-editor th{color:var(--text);background:transparent;font-weight:650;border-block-end-width:.125rem}.tiptap-editor :where(th,td)[style*="text-align: center"]{text-align:center}.tiptap-editor :where(th,td)[style*="text-align: right"]{text-align:right}.tiptap-editor .selectedCell{outline:var(--focus-outline);outline-offset:calc(-1 * var(--focus-outline-offset));background:color-mix(in srgb,var(--selection) 72%,transparent)}.tiptap-editor .opaque-html--block{display:grid;grid-template-areas:"summary action" "reason action";grid-template-columns:minmax(0,1fr) auto;align-items:center;margin-block:calc(var(--editor-block-spacing) * .85);padding:.65em .75em;gap:.28em .8em;border:.0625rem dashed color-mix(in srgb,var(--warning) 58%,var(--border-soft));border-inline-start:.1875rem solid var(--warning);border-radius:var(--radius-xs);color:var(--text-soft);background:color-mix(in srgb,var(--warning) 7%,var(--paper));font-family:var(--font-ui)}.tiptap-editor .opaque-html__summary{display:flex;grid-area:summary;min-width:0;align-items:baseline;gap:.5em}.tiptap-editor .opaque-html__symbol{flex:0 0 auto;color:color-mix(in srgb,var(--warning) 82%,var(--text));font-family:var(--editor-source-font);font-size:.78em;font-weight:700}.tiptap-editor .opaque-html__label{flex:0 0 auto;color:var(--text-soft);font-size:var(--type-ui-caption);font-weight:650}.tiptap-editor :not(pre)>code.opaque-html__preview{min-width:0;padding:0;overflow:hidden;border:0;border-radius:0;color:var(--text-muted);background:transparent;font-family:var(--editor-source-font);font-size:.72em;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.tiptap-editor .opaque-html__reason{grid-area:reason;min-width:0;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.4}.tiptap-editor .protected-markdown{position:relative;min-inline-size:0;margin-block:var(--editor-block-spacing);padding:.55rem .7rem .35rem;border:.0625rem solid color-mix(in srgb,var(--accent) 14%,transparent);border-radius:var(--radius-sm);background:color-mix(in srgb,var(--accent) 2%,transparent);box-shadow:0 0 .8rem color-mix(in srgb,var(--accent) 7%,transparent);cursor:text}.tiptap-editor .protected-markdown:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.tiptap-editor .protected-markdown__content{min-inline-size:0;white-space:break-spaces;caret-color:transparent}.tiptap-editor .protected-markdown__content>:last-child{margin-block-end:0}.tiptap-editor .protected-markdown__source-action{display:block;max-inline-size:100%;min-block-size:1.75rem;margin-block-start:.25rem;margin-inline-start:auto;padding:.25em .5em;font-family:var(--font-ui);font-size:var(--type-ui-caption);white-space:normal;opacity:0}.tiptap-editor .protected-markdown:is(:hover,:focus-within)>.protected-markdown__source-action{opacity:1}@media(hover:none){.tiptap-editor .protected-markdown>.protected-markdown__source-action{opacity:1}}@media(forced-colors:active){.tiptap-editor .protected-markdown{border-color:CanvasText;box-shadow:none}}.tiptap-editor .opaque-html__source-action{grid-area:action;min-height:2rem;padding:.38em .68em;font-size:var(--type-ui-caption);white-space:nowrap}.tiptap-editor .opaque-html--inline{display:inline-flex;max-width:min(22rem,80%);align-items:baseline;margin-inline:.12em;padding:.08em .38em;gap:.36em;border:.0625rem dashed color-mix(in srgb,var(--warning) 58%,var(--border-soft));border-radius:.35em;color:var(--text-soft);background:color-mix(in srgb,var(--warning) 7%,var(--paper));font-family:var(--font-ui);line-height:1.35;vertical-align:baseline;cursor:pointer}.tiptap-editor .opaque-html--inline:hover{border-color:var(--warning);color:var(--text);background:color-mix(in srgb,var(--warning) 12%,var(--paper))}.tiptap-editor .markdown-image{display:grid;justify-items:center;max-inline-size:100%;margin-block:calc(var(--editor-block-spacing) * 1.2);overflow:hidden;border:.0625rem solid var(--border-soft);border-radius:var(--radius-sm);background:linear-gradient(135deg,color-mix(in srgb,var(--surface-soft) 90%,transparent),color-mix(in srgb,var(--paper) 92%,transparent));box-shadow:0 .5rem 1.4rem #00000014}.tiptap-editor .markdown-image img{display:block;max-width:100%;max-height:min(65vh,48rem);object-fit:contain}.tiptap-editor .markdown-image:not([data-image-state=loaded]):not([data-image-state=loading]) img{display:none}.tiptap-editor .markdown-image__placeholder{display:grid;justify-items:center;max-inline-size:40rem;padding:1.5em;gap:.55em;color:var(--text-soft);text-align:center}.tiptap-editor .markdown-image__placeholder strong{color:var(--text);font-family:var(--font-ui);font-size:var(--type-ui-primary)}.tiptap-editor .markdown-image__placeholder span{font-family:var(--font-ui);font-size:var(--type-ui-caption);line-height:1.5}.tiptap-editor .markdown-image[data-image-state=loaded] .markdown-image__placeholder{display:none}.tiptap-editor .markdown-image__load{margin-block-start:.35em}.tiptap-editor .markdown-image figcaption{display:flex;width:100%;align-items:center;justify-content:space-between;padding:.55em .75em;gap:1em;border-top:.0625rem solid var(--border-soft);color:var(--text-soft);background:color-mix(in srgb,var(--surface-soft) 84%,transparent);font-family:var(--font-ui);font-size:.72em}.tiptap-editor .markdown-image figcaption code{max-width:55%;overflow:hidden;color:var(--text-muted);font-family:var(--editor-source-font);text-overflow:ellipsis;white-space:nowrap}.tiptap-editor .markdown-task-list{padding:0;list-style:none}.tiptap-editor .markdown-task-item{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.65em}.tiptap-editor .markdown-task-item>label{--app-checkbox-size: 1.1em;position:relative;display:grid;width:var(--app-checkbox-size);height:var(--app-checkbox-size);margin-top:.24em;place-items:center;cursor:pointer}.tiptap-editor .markdown-task-item[data-checked=true]>div{color:var(--text-muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--text-muted) 70%,transparent)}.tiptap-editor sup[data-footnote-reference]{margin-inline:.08em;padding:.08em .28em;border-radius:999px;color:var(--accent);background:var(--accent-soft);font-family:var(--font-ui);font-size:.62em;font-weight:700;line-height:1.35;vertical-align:super;cursor:default}.tiptap-editor aside[data-footnote-definition]{display:grid;grid-template-columns:minmax(2.4em,auto) minmax(0,1fr);align-items:start;margin-block:calc(var(--editor-block-spacing) * .65);padding:.7em .85em;gap:.75em;border:.0625rem solid var(--border-soft);border-inline-start:.18rem solid var(--accent);border-radius:var(--radius-xs);background:color-mix(in srgb,var(--surface-soft) 82%,transparent);font-size:.86em}.tiptap-editor [data-footnote-label]{color:var(--accent);font-family:var(--font-ui);font-size:.78em;font-weight:700}.tiptap-editor [data-footnote-label]:before{content:"["}.tiptap-editor [data-footnote-label]:after{content:"]"}.tiptap-editor [data-footnote-content]{min-width:0;overflow-wrap:anywhere}.tiptap-editor [data-footnote-content]>:first-child{margin-block-start:0}.tiptap-editor [data-footnote-content]>:last-child{margin-block-end:0}.tiptap-editor section[data-frontmatter]{margin-block:0 calc(var(--editor-block-spacing) * 1.4);overflow:hidden;border:.0625rem solid color-mix(in srgb,var(--accent) 30%,var(--border-soft));border-radius:var(--radius-sm);background:color-mix(in srgb,var(--surface-soft) 84%,var(--paper));box-shadow:0 .42rem 1.15rem #0000000f}.tiptap-editor section[data-frontmatter]>header{display:flex;align-items:baseline;justify-content:space-between;padding:.55em .8em;border-bottom:.0625rem solid var(--border-soft);color:var(--accent);background:color-mix(in srgb,var(--accent-soft) 55%,transparent);font-family:var(--font-ui)}.tiptap-editor section[data-frontmatter]>header span{font-size:.72em;font-weight:750;letter-spacing:.08em}.tiptap-editor section[data-frontmatter]>header small{color:var(--text-muted);font-size:.68em}.tiptap-editor section[data-frontmatter]>pre{margin:0;padding:.9em 1em;overflow:auto hidden;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text-soft)}.document-foundation-note{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr);align-items:center;gap:.75rem;min-block-size:3rem;padding:.375rem 1.125rem;color:var(--text-muted);background:var(--surface-soft);font-size:var(--type-ui-caption)}.document-foundation-note__mode,.document-foundation-note__location{min-inline-size:0;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-foundation-note__mode{grid-column:1;justify-self:start;color:var(--accent);font-weight:600}.document-foundation-note__location{grid-column:3;justify-self:end;text-align:end}.document-foundation-note__link{display:flex;grid-column:2;min-width:0;max-width:100%;align-items:center;gap:.4375rem;justify-self:center;padding:.25rem .3125rem .25rem .5625rem;border:.0625rem solid color-mix(in srgb,var(--link) 38%,var(--border-soft));border-radius:var(--radius-xs);background:color-mix(in srgb,var(--link) 8%,var(--surface-strong-solid));box-shadow:var(--glass-highlight)}.document-foundation-note__link-label{flex:none;color:var(--text-soft);font-weight:650;white-space:nowrap}.document-foundation-note__link code{min-width:0;overflow:hidden;color:var(--link);font-family:var(--font-mono);font-size:.95em;text-overflow:ellipsis;white-space:nowrap}.document-foundation-note__link-hint{flex:none;color:var(--text-muted);white-space:nowrap}.document-foundation-note__open-link{display:inline-grid;inline-size:1.625rem;block-size:1.625rem;flex:none;place-items:center;padding:0;border:.0625rem solid color-mix(in srgb,var(--link) 42%,var(--border-soft));border-radius:var(--radius-xs);color:var(--link);background:color-mix(in srgb,var(--link) 10%,transparent);cursor:pointer}.document-foundation-note__open-link:hover{border-color:color-mix(in srgb,var(--link) 68%,var(--border-strong));background:color-mix(in srgb,var(--link) 18%,transparent)}.document-foundation-note__open-link:focus-visible{outline:.125rem solid var(--focus-ring);outline-offset:.125rem}.document-foundation-note__open-link svg{inline-size:.875rem;block-size:.875rem}@container editor-stage (max-width: 52rem){.document-foundation-note{grid-template-columns:minmax(0,auto) minmax(0,1fr)}.document-foundation-note__location,.document-foundation-note__link-hint{display:none}.document-foundation-note__link{grid-column:2;width:100%;max-width:none;justify-self:stretch}.document-foundation-note__link[data-link-outcome]:not([data-link-outcome=navigated]) .document-foundation-note__link-hint{display:inline;flex:0 1 auto;min-inline-size:0;white-space:normal;overflow-wrap:anywhere}}.document-editor-error{position:absolute;z-index:2;right:16px;bottom:48px;left:16px;padding:10px 12px;border-radius:var(--radius-xs);color:var(--text);background:var(--surface-strong);box-shadow:var(--shadow-window);font-size:var(--type-ui-secondary)}.portability-paste-offer{position:absolute;z-index:3;right:16px;bottom:48px;display:flex;max-width:min(28rem,calc(100% - 32px));align-items:center;gap:10px;padding:8px 8px 8px 12px;border:1px solid var(--border-soft);border-radius:var(--radius-xs);color:var(--text);background:var(--surface-strong);box-shadow:var(--shadow-window);font-size:var(--type-ui-secondary)}.portability-paste-offer>span{min-width:0;flex:1 1 auto}.portability-paste-offer__actions{display:flex;flex:0 0 auto;gap:4px}.portability-paste-offer__actions button{display:grid;inline-size:30px;block-size:30px;padding:0;border:0;border-radius:var(--radius-xs);place-items:center;color:var(--text-muted);background:transparent}.portability-paste-offer__actions button:hover{color:var(--text);background:var(--surface-hover)}.portability-paste-offer__actions button:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}.portability-paste-offer__actions svg{inline-size:16px;block-size:16px}.document-lifecycle h2{margin:0 0 20px;font-family:var(--font-editor);font-size:2.5rem;font-weight:500;letter-spacing:-.035em}.document-lifecycle p{max-width:590px;margin:0 0 36px;color:var(--text-soft);font-family:var(--font-editor);font-size:1.0625rem;line-height:1.75}.skeleton-line{width:76%;height:8px;margin-top:12px;border-radius:999px;background:var(--surface-hover)}.skeleton-line--long{width:93%}.skeleton-line--short{width:52%}.status-bar{display:flex;min-width:0;align-items:center;justify-content:space-between;grid-row:5;padding:0 .75rem;gap:.75rem;color:var(--text-muted);font-size:var(--type-ui-caption)}.status-bar>span:first-child{overflow:hidden;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap}.status-bar__details{display:flex;min-width:0;align-items:center;gap:1rem}.portability-control{display:inline-flex;min-width:0;max-width:13rem;align-items:center;gap:.3rem;padding:.25rem .4rem;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font:inherit;cursor:pointer}.portability-control:hover,.portability-control[aria-expanded=true]{color:var(--text-soft);background:var(--surface-soft)}.portability-control:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.portability-control>svg{width:.8rem;height:.8rem;flex:0 0 auto}.portability-control>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portability-control[data-portability-state=issues]{color:var(--warning)}.portability-control[data-portability-state=failed]{color:var(--danger)}.portability-control__spinner{animation:portability-spin .9s linear infinite}@keyframes portability-spin{to{rotate:1turn}}.portability-popover{position:fixed;z-index:var(--layer-popover);display:flex;min-width:19rem;flex-direction:column;overflow:hidden;padding:.75rem;border:1px solid var(--border-soft);border-radius:var(--radius-md);color:var(--text);background:var(--surface-strong-solid);box-shadow:var(--shadow-window);font-family:var(--font-ui);font-size:var(--type-ui-control)}.portability-popover__heading{display:grid;grid-template-columns:1.1rem minmax(0,1fr);align-items:center;gap:.5rem}.portability-popover__heading>svg{width:1rem;height:1rem;color:var(--accent-strong)}.portability-popover__target{width:100%}.portability-popover__description,.portability-popover__specification,.portability-popover__notice,.portability-popover__result>p{margin:.55rem 0 0;line-height:1.4}.portability-popover__description{color:var(--text-soft)}.portability-popover__specification{color:var(--text-muted);font-size:var(--type-ui-caption)}.portability-popover__notice{padding:.45rem .55rem;border-radius:var(--radius-xs);color:var(--warning);background:color-mix(in srgb,var(--warning) 12%,transparent)}.portability-popover__compliant{display:flex;align-items:center;gap:.4rem}.portability-popover__compliant>svg{width:.9rem;height:.9rem;color:var(--success)}.portability-popover__issues{display:grid;max-height:min(18rem,45vh);margin:.65rem -.25rem -.25rem;padding:0 .25rem .25rem;gap:.2rem;overflow:auto;list-style:none}.portability-popover__issues>li{display:grid;grid-template-columns:.9rem minmax(0,1fr) 1.75rem;align-items:start;gap:.45rem;padding:.45rem;border-radius:var(--radius-xs)}.portability-popover__issues>li:hover{background:var(--surface-hover)}.portability-popover__issues>li>svg{width:.85rem;height:.85rem;margin-top:.16rem;color:var(--warning)}.portability-popover__issues span{display:grid;gap:.1rem;min-width:0;line-height:1.35}.portability-popover__issues strong{color:var(--text-muted);font-size:var(--type-ui-caption)}.portability-popover__issues button{display:inline-grid;width:1.75rem;height:1.75rem;place-items:center;padding:0;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;cursor:pointer}.portability-popover__issues button:hover{color:var(--accent-strong);background:var(--accent-soft)}.portability-popover__issues button:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.portability-popover__issues button>svg{width:.9rem;height:.9rem}.cm-portability-issue{text-decoration-line:underline;text-decoration-style:wavy;text-decoration-thickness:.08rem;text-underline-offset:.16rem}.cm-portability-issue--warning{text-decoration-color:var(--warning)}.cm-portability-issue--error{text-decoration-color:var(--danger)}@media(prefers-reduced-motion:reduce){.portability-control__spinner{animation:none}}.spellcheck-control{display:inline-flex;min-width:0;align-items:center;gap:.3rem;padding:.25rem .4rem;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font:inherit;cursor:pointer}.spellcheck-control:hover:not(:disabled),.spellcheck-control[aria-pressed=true]{color:var(--text-soft);background:var(--surface-soft)}.spellcheck-control:focus-visible{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.spellcheck-control:disabled{color:var(--text-disabled);cursor:not-allowed}.spellcheck-control svg{width:.75rem;height:.75rem;flex:0 0 auto}.spellcheck-control strong{color:var(--text-soft);font-size:var(--type-ui-caption);font-weight:600}.spellcheck-control:disabled strong{color:var(--text-disabled)}.editor-width-control{display:grid;width:clamp(18rem,28vw,23rem);min-width:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.75rem}.editor-width-control>label{display:flex;min-width:6.25rem;flex-direction:column;line-height:1.15}.editor-width-control>label span{color:var(--text-muted);font-size:var(--type-ui-caption)}.editor-width-control>label strong{overflow:hidden;color:var(--text-soft);font-size:var(--type-ui-secondary);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.editor-width-control__slider{display:grid;min-width:0;grid-template-rows:1.15rem minmax(1.5rem,auto);align-items:center}.editor-width-control__slider>input,.editor-width-control__ticks{grid-area:1 / 1}.editor-width-control input[type=range]{--editor-width-progress: 52%;--editor-width-track-active: color-mix(in srgb, var(--accent) 68%, var(--text-muted));--editor-width-track-rest: color-mix(in srgb, var(--border-strong) 52%, transparent);--editor-width-thumb: color-mix(in srgb, var(--accent) 78%, var(--surface-strong-solid));appearance:none;width:100%;height:1.25rem;min-width:0;margin:0;background:linear-gradient(to right,var(--editor-width-track-active) 0 var(--editor-width-progress),var(--editor-width-track-rest) var(--editor-width-progress) 100%) center / 100% .1875rem no-repeat;cursor:ew-resize}.editor-width-control input[type=range]:focus-visible{outline:none}.editor-width-control input[type=range]::-webkit-slider-runnable-track{height:.1875rem;border:0;border-radius:999px;background:transparent}.editor-width-control input[type=range]::-webkit-slider-thumb{width:.875rem;height:.875rem;margin-top:-.34375rem;appearance:none;border:1px solid color-mix(in srgb,var(--accent) 76%,var(--border-strong));border-radius:50%;background:var(--editor-width-thumb);box-shadow:0 .0625rem .1875rem color-mix(in srgb,var(--shadow-color) 28%,transparent);transition:background .12s ease,box-shadow .12s ease,transform .12s ease}.editor-width-control input[type=range]:hover::-webkit-slider-thumb{background:var(--accent)}.editor-width-control input[type=range]:active::-webkit-slider-thumb{transform:scale(1.08)}.editor-width-control input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 .0625rem var(--surface-strong-solid),var(--field-focus-ring);transform:scale(1.04)}.editor-width-control input[type=range]::-moz-range-track{height:.1875rem;border:0;border-radius:999px;background:transparent}.editor-width-control input[type=range]::-moz-range-thumb{width:.875rem;height:.875rem;border:1px solid color-mix(in srgb,var(--accent) 76%,var(--border-strong));border-radius:50%;background:var(--editor-width-thumb);box-shadow:0 .0625rem .1875rem color-mix(in srgb,var(--shadow-color) 28%,transparent);transition:background .12s ease,box-shadow .12s ease,transform .12s ease}.editor-width-control input[type=range]::-moz-range-progress{height:.1875rem;border-radius:999px;background:var(--editor-width-track-active)}.editor-width-control input[type=range]:hover::-moz-range-thumb{background:var(--accent)}.editor-width-control input[type=range]:active::-moz-range-thumb{transform:scale(1.08)}.editor-width-control input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 .0625rem var(--surface-strong-solid),var(--field-focus-ring);transform:scale(1.04)}.editor-width-control input[type=range]:disabled{cursor:not-allowed;opacity:.62}.editor-width-control input[type=range]:disabled::-webkit-slider-thumb,.editor-width-control input[type=range]:disabled::-moz-range-thumb{border-color:var(--border-strong);background:var(--text-disabled);box-shadow:none;transform:none}.editor-width-control__ticks{position:relative;height:.1875rem;margin-inline:.4375rem;pointer-events:none}.editor-width-control__ticks>span{--editor-width-tick-position: 0%;position:absolute;inset-block-start:50%;inset-inline-start:var(--editor-width-tick-position);width:.125rem;height:.4375rem;border-radius:999px;background:color-mix(in srgb,var(--text-muted) 62%,var(--paper));transform:translate(-50%,-50%)}.editor-width-control__references{display:flex;flex-wrap:wrap;gap:.125rem;min-width:0;grid-area:2 / 1;justify-content:space-between;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.2}.editor-width-control__references button{min-block-size:1.5rem;padding:.125rem .2rem;border:.0625rem solid transparent;border-radius:var(--radius-xs);background:transparent;cursor:pointer}.editor-width-control__references button:hover,.editor-width-control__references button:active{background:var(--surface-hover);color:var(--text)}.editor-width-control__references button[aria-pressed=true]{border-color:var(--border-strong);background:var(--surface-soft);color:var(--text)}@media(forced-colors:active){.editor-width-control__references button[aria-pressed=true]{border-color:Highlight}.editor-width-control input[type=range]{--editor-width-track-active: Highlight;--editor-width-track-rest: CanvasText;--editor-width-thumb: ButtonFace;forced-color-adjust:none}.editor-width-control input[type=range]::-webkit-slider-thumb,.editor-width-control input[type=range]::-moz-range-thumb{border-color:CanvasText;background:ButtonFace}.editor-width-control input[type=range]:hover::-webkit-slider-thumb,.editor-width-control input[type=range]:hover::-moz-range-thumb{background:Highlight}.editor-width-control input[type=range]:focus-visible::-webkit-slider-thumb,.editor-width-control input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 .125rem Highlight}.editor-width-control input[type=range]:disabled::-webkit-slider-thumb,.editor-width-control input[type=range]:disabled::-moz-range-thumb{border-color:GrayText;background:GrayText}.editor-width-control__ticks>span{border-color:CanvasText;background:CanvasText}.editor-width-control input[type=range]:disabled+.editor-width-control__ticks>span{border-color:GrayText;background:GrayText}}.editor-width-control[data-save-failed=true]>label strong{color:var(--danger)}.editor-width-control[data-surface=settings]{width:100%;padding:.42rem .5rem;border-radius:var(--radius-xs);background:color-mix(in srgb,var(--bg-elevated) 56%,transparent)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@container workspace (max-width: 42rem){.status-bar{padding-block:.375rem}.status-bar__details{flex:1;flex-wrap:wrap;justify-content:flex-end;gap:.375rem}.status-bar__details>span{display:none}.spellcheck-control__label{display:none}.editor-width-control{width:100%;flex:1 0 100%}}@container workspace (max-width: 30rem){.editor-width-control{grid-template-columns:minmax(0,1fr);gap:.125rem}.editor-width-control>label span{display:none}.editor-width-control>label{min-width:0;flex-direction:row}}.document-external-status{display:flex;min-width:0;align-items:center;justify-content:space-between;grid-row:2;margin:0 .5625rem .375rem .5rem;padding:.5rem .625rem .5rem .75rem;gap:.75rem;border:.0625rem solid color-mix(in srgb,var(--warning) 42%,var(--border-soft));border-radius:var(--radius-sm);color:var(--text-soft);background:color-mix(in srgb,var(--warning) 10%,var(--surface-strong-solid));box-shadow:var(--glass-highlight);font-size:var(--type-ui-control)}.document-external-status[data-tone=danger]{border-color:color-mix(in srgb,var(--danger) 48%,var(--border-soft));background:color-mix(in srgb,var(--danger) 10%,var(--surface-strong-solid))}.document-external-status[data-tone=neutral]{border-color:var(--border-soft);background:var(--surface-soft)}.document-external-status>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.document-external-status__actions{display:flex;flex:0 0 auto;align-items:center;gap:.375rem}.document-external-status .soft-button{min-height:2rem;padding:.375rem .625rem;white-space:nowrap}.document-external-status .soft-button:disabled{cursor:not-allowed;opacity:.52;transform:none}@container workspace (max-width: 44rem){.document-external-status{align-items:stretch;flex-direction:column}.document-external-status__actions{min-width:0;flex-wrap:wrap}}.document-canvas__save-state{display:grid}.document-canvas__save-state-label{grid-area:1 / 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-canvas__save-state-label[data-active=false]{visibility:hidden}.document-status-stack{display:grid;min-width:0;grid-row:2;margin:0 .5625rem .375rem .5rem;gap:.375rem}.document-status-stack:empty{display:none}.document-status-stack .document-external-status{grid-row:auto;margin:0}.document-autosave-status{min-width:0;padding:.4rem .75rem;overflow:hidden;border:.0625rem solid var(--border-soft);border-radius:var(--radius-sm);color:var(--text-soft);background:var(--surface-soft);box-shadow:var(--glass-highlight);font-size:var(--type-ui-caption);text-overflow:ellipsis;white-space:nowrap}.document-autosave-status[data-tone=attention]{border-color:color-mix(in srgb,var(--warning) 42%,var(--border-soft));background:color-mix(in srgb,var(--warning) 10%,var(--surface-strong-solid))}.disk-autosave-settings{min-width:0;margin:1rem 0;padding:0;border:0}.disk-autosave-settings legend{padding:0;color:var(--text);font-size:var(--type-ui-primary);font-weight:650}.disk-autosave-options,.disk-autosave-presets{display:grid;gap:.45rem}.disk-autosave-options button{display:flex;width:100%;align-items:center;justify-content:space-between;padding:.7rem .75rem;gap:.75rem;border:.0625rem solid transparent;border-radius:var(--radius-xs);color:var(--text);background:var(--bg-elevated);text-align:left;cursor:pointer}.disk-autosave-options button:hover{border-color:var(--border-strong)}.disk-autosave-options button[data-selected=true]{border-color:var(--focus);background:var(--accent-soft)}.disk-autosave-options button span{display:grid;gap:.18rem}.disk-autosave-options button strong{font-size:var(--type-ui-control)}.disk-autosave-options button small{color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.4}.disk-autosave-options button svg{width:.95rem;height:.95rem;flex:0 0 auto;color:var(--accent)}.disk-autosave-presets{grid-template-columns:repeat(3,minmax(0,1fr));padding-top:.45rem}.disk-autosave-presets button{justify-content:center;text-align:center}.autosave-control{min-width:0}.autosave-control>button{max-width:100%;white-space:normal;font-size:var(--type-ui-caption)}.autosave-control__popover{position:fixed;z-index:var(--layer-popover);width:24rem;overflow:auto;padding:1rem;border:.0625rem solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface-strong-solid);color:var(--text);box-shadow:var(--shadow-window)}.autosave-control__popover header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.autosave-control__popover h2{margin:0;font-size:1rem}.autosave-control__popover p{font-size:var(--type-ui-secondary);line-height:1.6}.autosave-control__note{color:var(--text-muted)}.autosave-control__popover .disk-autosave-presets{grid-template-columns:repeat(auto-fit,minmax(5rem,1fr))}.tab{position:relative}.tab[data-drop-before=true]:before,.tab[data-drop-after=true]:after{position:absolute;top:.1875rem;bottom:.1875rem;width:.1875rem;border-radius:999px;content:"";background:var(--accent);box-shadow:0 0 .625rem var(--accent-glow)}.tab[data-drop-before=true]:before{left:-.25rem}.tab[data-drop-after=true]:after{right:-.25rem}.editor-workspace-groups{position:relative;display:grid;min-width:0;min-height:0;grid-row:1 / 5;grid-template-rows:minmax(0,1fr)}.editor-workspace-groups[data-compact=true]{grid-template-rows:auto minmax(0,1fr)}.editor-workspace-groups__track{position:relative;display:flex;min-width:0;min-height:0;overflow:hidden}.editor-workspace-groups__track[data-split-orientation=stacked]{flex-direction:column}.editor-workspace-groups[data-compact=true] .editor-workspace-groups__track{grid-row:2}.editor-group-surface{position:relative;display:grid;min-width:0;min-height:0;overflow:hidden;border:.0625rem solid transparent;grid-template-rows:2.75rem auto auto minmax(0,1fr)}.editor-workspace-groups[data-group-count="2"]:not([data-compact=true]) .editor-group-surface[data-active-group=true]{border-color:color-mix(in srgb,var(--accent) 44%,var(--border-soft));box-shadow:inset 0 0 0 .0625rem color-mix(in srgb,var(--accent) 18%,transparent)}.editor-group-surface[data-file-drop-active=true]:after{position:absolute;z-index:8;inset:.5rem;border:.125rem dashed var(--accent);border-radius:var(--radius-md);pointer-events:none;content:"";background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:inset 0 0 1.5rem var(--accent-glow)}.editor-group-surface>.editor-stage{min-width:0}.editor-workspace-groups__track>.app-split-divider{z-index:3;order:2;background:var(--surface)}.editor-group-actions{display:flex;flex:0 0 auto;gap:.125rem}.editor-group-actions button{display:grid;width:1.75rem;height:1.75rem;padding:0;place-items:center;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;cursor:pointer}.editor-group-actions button:hover:not(:disabled),.editor-group-actions button:focus-visible{color:var(--text);background:var(--surface-hover)}.editor-group-actions button:focus-visible{outline:var(--focus-outline);outline-offset:calc(-1 * var(--focus-outline-offset))}.editor-group-actions button:disabled{opacity:.36;cursor:default}.editor-group-actions svg{width:.9375rem;height:.9375rem}.editor-group-switcher{display:inline-flex;z-index:4;width:fit-content;max-width:calc(100% - 1rem);margin:.25rem auto;padding:.1875rem;gap:.125rem;border:.0625rem solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-soft)}.editor-group-switcher button{min-width:0;padding:.3rem .625rem;overflow:hidden;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.editor-group-switcher button[aria-pressed=true]{color:var(--text);background:var(--surface);box-shadow:var(--shadow-soft)}.editor-group-switcher button:focus-visible{outline:var(--focus-outline);outline-offset:0}.editor-group-split-target{position:absolute;z-index:5;display:flex;padding:clamp(.625rem,1.5cqi,1rem);align-items:center;justify-content:center;flex-direction:column;gap:.4rem;border:.125rem solid transparent;border-radius:var(--radius-md);opacity:0;pointer-events:none;color:var(--text-muted);background:transparent;font-size:.75rem;font-weight:650;text-align:center;transform:translate3d(var(--split-target-shift-x, 0),var(--split-target-shift-y, 0),0);transition:opacity var(--motion-fast),transform var(--motion-fast),border-color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.editor-group-split-target[data-split-orientation=side-by-side]{--split-target-shift-x: .5rem;inset-block:3rem clamp(6rem,22%,12rem);inset-inline-end:.75rem;inline-size:clamp(5.75rem,16%,11rem)}.editor-group-split-target[data-split-orientation=stacked]{--split-target-shift-y: .5rem;inset-block-end:.75rem;inset-inline:.75rem calc(clamp(5.75rem,16%,11rem) + 1.5rem);block-size:clamp(5rem,18%,9rem)}.editor-workspace-groups[data-split-targets-visible=true] .editor-group-split-target{opacity:1;pointer-events:auto;border-color:color-mix(in srgb,var(--accent) 54%,var(--border-soft));background:color-mix(in srgb,var(--accent) 8%,var(--surface));transform:translateZ(0)}.editor-group-split-target[data-drop-active=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--surface));box-shadow:0 0 1.25rem var(--accent-glow)}.editor-group-split-target svg{inline-size:1.25rem;block-size:1.25rem;color:var(--accent)}.tab[data-temporary=true] .tab__label>span:first-child{font-style:italic}.source-diff,.source-diff__hunk{display:grid}.source-diff__hunk>[role=row]{display:grid;grid-template-columns:minmax(0,1fr)}.source-diff[data-layout=side-by-side] .source-diff__hunk>[role=row]{grid-template-columns:repeat(2,minmax(0,1fr))}.source-diff__hunk+.source-diff__hunk{border-top:.0625rem solid var(--border-strong)}.source-diff__cell{display:grid;min-width:0;grid-template-columns:3.25rem 1.25rem minmax(0,1fr) auto;align-items:start;border-bottom:.0625rem solid var(--border-soft)}.source-diff[data-layout=side-by-side] .source-diff__cell+.source-diff__cell{border-left:.0625rem solid var(--border-strong)}.source-diff__cell[data-kind=removed]{background:var(--diff-removed)}.source-diff__cell[data-kind=added]{background:var(--diff-added)}.source-diff__cell[data-kind=empty]{min-height:1.75rem;background:color-mix(in srgb,var(--text) 3%,transparent)}.source-diff__line-number,.source-diff__change-marker,.source-diff__line-ending{color:var(--text-muted);font:.75rem/1.75rem ui-monospace,Cascadia Code,Consolas,monospace}.source-diff__line-number{padding-inline:.5rem;text-align:end;-webkit-user-select:none;user-select:none}.source-diff__change-marker{color:var(--text);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none}.source-diff__cell code{min-width:0;padding-block:.25rem;overflow-wrap:anywhere;white-space:pre-wrap;font:.8125rem/1.25rem ui-monospace,Cascadia Code,Consolas,monospace}.source-diff__line-ending{margin:.25rem .375rem;padding-inline:.25rem;border:.0625rem solid var(--border-soft);border-radius:.25rem;line-height:1rem}.source-diff__omitted{grid-template-columns:1fr!important;padding:.375rem 1rem;color:var(--text-muted);background:var(--surface-soft);font-size:var(--type-ui-caption);text-align:center}@media(max-width:48rem){.source-diff[data-layout=side-by-side] .source-diff__hunk>[role=row]{grid-template-columns:minmax(0,1fr)}.source-diff[data-layout=side-by-side] .source-diff__cell+.source-diff__cell{border-left:0}}.history-recovery{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--glass-highlight),var(--shadow-panel);-webkit-backdrop-filter:blur(28px) saturate(1.12);backdrop-filter:blur(28px) saturate(1.12)}.history-recovery__header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem 1rem .75rem;gap:.75rem;border-bottom:.0625rem solid var(--border-soft)}.history-recovery__header h2,.history-recovery__section-heading h3,.history-recovery__section-heading p,.history-recovery__empty p{margin:0}.history-recovery__header h2{font-size:1rem;font-weight:620;letter-spacing:-.02em}.history-recovery__scroll{display:grid;align-content:start;overflow:auto;scrollbar-gutter:stable}.history-recovery__section{display:grid;padding:1rem;gap:.75rem}.history-recovery__section+.history-recovery__section{border-top:.0625rem solid var(--border-soft)}.history-recovery__section-heading{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.625rem}.history-recovery__section-icon{display:grid;width:1.75rem;height:1.75rem;border-radius:var(--radius-xs);place-items:center;color:var(--accent);background:var(--accent-soft)}.history-recovery__section-icon svg{width:.9375rem;height:.9375rem;stroke-width:1.8}.history-recovery__section-heading h3{font-size:var(--type-ui-primary);font-weight:620}.history-recovery__section-heading p{margin-top:.1875rem;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.35}.history-recovery__empty{margin:0;color:var(--text-muted);font-size:var(--type-ui-secondary);line-height:1.4}.history-recovery__empty{display:grid;justify-items:start;gap:.5rem;padding:.75rem;border-radius:var(--radius-sm);background:var(--surface-soft)}.history-recovery__cards,.history-recovery__review-actions,.history-recovery__confirm{display:grid;gap:.5rem}.history-recovery__card{display:grid;justify-items:start;padding:.75rem;gap:.25rem;border:.0625rem solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-soft)}.history-recovery__card--warning{border-color:color-mix(in srgb,var(--danger) 35%,var(--border-soft))}.history-recovery__card strong{max-width:100%;overflow:hidden;font-size:var(--type-ui-secondary);text-overflow:ellipsis;white-space:nowrap}.history-recovery__card>span{color:var(--text-muted);font-size:var(--type-ui-caption)}.history-recovery__card .history-recovery__rename-name{white-space:normal;overflow-wrap:anywhere}.history-recovery__card>.soft-button{margin-top:.375rem}.history-recovery__segmented{display:inline-flex;padding:.1875rem;border:.0625rem solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-soft)}.history-recovery__segmented button{padding:.375rem .5rem;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font:inherit;font-size:var(--type-ui-caption)}.history-recovery__segmented button[aria-pressed=true]{color:var(--text);background:var(--surface-strong-solid);box-shadow:0 .125rem .5rem color-mix(in srgb,var(--shadow-color) 16%,transparent)}.history-recovery__review-actions{justify-items:start}.history-recovery__confirm{width:100%;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;padding:.5rem;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--danger) 8%,var(--surface-soft));font-size:var(--type-ui-caption)}.soft-button--danger{color:var(--danger)}.soft-button--danger:hover,.soft-button--danger:focus-visible{border-color:color-mix(in srgb,var(--danger) 58%,var(--border-strong));background:color-mix(in srgb,var(--danger) 12%,var(--surface-strong-solid))}.history-sidebar{container:history-sidebar / inline-size;grid-template-rows:auto auto minmax(0,1fr) auto;padding:0;gap:0}.history-sidebar:not(:has(.history-sidebar__filter)){grid-template-rows:auto minmax(0,1fr) auto}.history-sidebar__heading-actions{display:flex;flex-shrink:0}.history-sidebar .history-recovery__header{align-items:center}.history-sidebar .history-recovery__header>div:first-child{min-width:0}.history-sidebar__hint{margin:.375rem 0;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.5;overflow-wrap:anywhere}.history-sidebar__filter{min-width:0;padding:.75rem}.history-sidebar__catalog{min-width:0;padding:.5rem .625rem 1rem}.history-sidebar__list-label{display:flex;justify-content:space-between;margin:.5rem;gap:.5rem;color:var(--text-muted);font-size:var(--type-ui-caption)}.history-sidebar__documents{display:grid;gap:.25rem}.history-sidebar__file.app-disclosure{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:start;padding:.625rem .375rem;gap:.375rem}.history-sidebar__file>svg{width:1rem;height:1rem;margin-top:.125rem;color:var(--text-muted)}.history-sidebar__file>span{display:grid;min-width:0;gap:.1875rem}.history-sidebar__file strong{overflow-wrap:anywhere;font-size:var(--type-ui-secondary);line-height:1.4}.history-sidebar__file small{color:var(--text-muted);font-size:var(--type-ui-micro);overflow-wrap:anywhere}.history-sidebar__versions{display:grid;margin:.25rem .125rem .75rem 1.25rem;padding-left:.625rem;border-left:.0625rem solid var(--border-strong);gap:.25rem}.history-sidebar__version{display:grid;grid-template-columns:minmax(0,1fr) auto;min-width:0;padding:.625rem;gap:.25rem;border:.0625rem solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--text);font:inherit;font-size:var(--type-ui-caption);text-align:start;overflow-wrap:anywhere;cursor:pointer}.history-sidebar__version:hover{background:var(--surface-hover)}.history-sidebar__version[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.history-sidebar__version small{grid-column:1 / -1;color:var(--text-muted);font-size:var(--type-ui-micro)}.history-sidebar__version svg{width:.875rem;height:.875rem;color:var(--accent)}.history-sidebar__recovery>.app-disclosure{font-size:var(--type-ui-secondary)}.history-sidebar .history-recovery__section{padding:.75rem}.history-sidebar__recovery .history-recovery__card{padding:.625rem}.history-sidebar .history-recovery__card strong{white-space:normal;overflow-wrap:anywhere}.history-sidebar__footer{padding:.625rem .875rem;border-top:.0625rem solid var(--border-soft);color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.45}.history-sidebar__footer p{margin:.25rem 0}.history-sidebar__footer small{font-size:var(--type-ui-micro)}.history-sidebar .history-recovery__confirm{grid-template-columns:1fr}.history-review{display:flex;flex-direction:column;height:100%;min-width:0;min-height:0;padding:clamp(.75rem,2cqi,1.5rem);gap:.75rem}.history-review__header,.history-review__identity,.history-review__toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}.history-review__readonly{display:inline-flex;align-items:center;gap:.375rem;color:var(--text-muted);font-size:var(--type-ui-caption)}.history-review__readonly svg,.history-review__notice svg{width:1rem;height:1rem;flex-shrink:0}.history-review__identity>div{min-width:0;flex:1 1 16rem}.history-review__identity h1{margin:0;font-size:clamp(1rem,3cqi,1.375rem);overflow-wrap:anywhere}.history-review__identity button[hidden]{display:none}.history-review__identity p{margin:.375rem 0 0;color:var(--text-muted);font-size:var(--type-ui-caption)}.history-review__notice{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:0;padding:.5rem .75rem;border-radius:var(--radius-sm);background:var(--surface-soft);color:var(--text-soft);font-size:var(--type-ui-secondary);line-height:1.5}.history-review__body{flex:1;min-width:0;min-height:0;overflow:auto;border:.0625rem solid var(--border-soft);border-radius:var(--radius-md);background:var(--canvas)}.history-review__body>p{padding:.75rem}.history-review__source{min-height:100%;margin:0;padding:1rem;color:var(--text);background:var(--code-surface);font:.8125rem/1.6 var(--font-mono, ui-monospace, monospace);white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4}.history-review__source:focus-visible{outline:var(--focus-outline);outline-offset:calc(-1 * var(--focus-outline-offset))}.history-review__diff-labels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.75rem;gap:.75rem;color:var(--text-muted);font-size:var(--type-ui-caption);border-bottom:.0625rem solid var(--border-soft)}.history-review__confirmation{width:min(30rem,calc(100dvw - 2rem));max-height:100%;grid-template-rows:auto minmax(0,1fr) auto}.history-review__confirmation .app-modal__scroll-region{padding:.5rem 1rem}.history-review__confirmation .app-modal__footer{flex-wrap:wrap;justify-content:flex-end}.history-review__body>.preview-pane{height:100%;min-inline-size:0}.history-review__confirmation p{overflow-wrap:anywhere;line-height:1.6}.history-recovery__segmented{max-width:100%;flex-wrap:wrap}@container workspace (max-width: 38rem){.history-review .source-diff[data-layout=side-by-side] .source-diff__hunk>[role=row]{grid-template-columns:minmax(0,1fr)}.history-review .source-diff[data-layout=side-by-side] .source-diff__cell+.source-diff__cell{border-left:0}}@media(max-height:35rem){.history-sidebar__footer small{display:none}.history-review{gap:.375rem;padding:.625rem}}.appearance{position:relative}.appearance-menu{position:absolute;z-index:var(--layer-popover);bottom:0;left:2.9rem;width:min(24rem,calc(100vw - 5.5rem));max-height:calc(100dvh - var(--title-bar-height) - 1rem);padding:.85rem;overflow:auto;border:1px solid var(--border-soft);border-radius:var(--radius-md);background:var(--surface-strong);box-shadow:var(--glass-highlight),var(--shadow-window);-webkit-backdrop-filter:blur(2rem) saturate(1.12);backdrop-filter:blur(2rem) saturate(1.12);-webkit-app-region:no-drag}.appearance-menu__header{display:flex;align-items:flex-start;justify-content:space-between;margin:.1rem .2rem .7rem;gap:.75rem}.appearance-menu__header>div{display:flex;min-width:0;flex-direction:column;gap:.15rem}.appearance-menu__header strong{color:var(--text);font-size:var(--type-ui-primary);font-weight:600}.appearance-menu__header small,.appearance-menu__header>span{color:var(--text-muted);font-size:var(--type-ui-caption)}.appearance-menu__header>span{flex:0 0 auto;padding:.25rem .4rem;border-radius:999rem;background:var(--surface-soft)}.appearance-menu__families{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.theme-family{display:grid;min-width:0;grid-template-columns:3rem minmax(0,1fr) 1rem;align-items:center;padding:.55rem;border:1px solid transparent;border-radius:var(--radius-sm);color:var(--text-soft);background:var(--surface-soft);text-align:left;cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast),transform var(--motion-fast)}.theme-family:hover{background:var(--surface-hover);transform:translateY(-.06rem)}.theme-family[data-selected=true]{border-color:var(--focus);background:var(--accent-soft)}.theme-family>span:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:.2rem}.theme-family strong{color:var(--text);font-size:var(--type-ui-control);font-weight:600}.theme-family small{color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.35}.theme-family>svg{width:.85rem;height:.85rem;color:var(--accent)}.theme-preview{--preview-bg: #121418;--preview-panel: #2a2d34;--preview-paper: #f5f3ee;--preview-ink: #24262b;--preview-accent: #ff784d;--preview-atmosphere: #6d3d2d;position:relative;width:2.55rem;height:2.2rem;overflow:hidden;border:1px solid color-mix(in srgb,var(--preview-paper) 14%,transparent);border-radius:.68rem;background:radial-gradient(circle at 86% 18%,color-mix(in srgb,var(--preview-atmosphere) 82%,transparent),transparent 52%),var(--preview-bg);box-shadow:inset 0 1px #ffffff14,0 .3rem .75rem #00000029}.theme-preview__rail{position:absolute;top:.32rem;bottom:.32rem;left:.3rem;width:.45rem;border-radius:.22rem;background:var(--preview-panel)}.theme-preview__rail:before,.theme-preview__rail:after{position:absolute;left:50%;width:.16rem;height:.16rem;border-radius:50%;content:"";background:var(--preview-paper);transform:translate(-50%)}.theme-preview__rail:before{top:.28rem}.theme-preview__rail:after{top:.62rem;background:var(--preview-accent);box-shadow:0 0 .3rem var(--preview-accent)}.theme-preview__paper{position:absolute;inset:.34rem .3rem .34rem .92rem;border-radius:.32rem;background:var(--preview-paper);box-shadow:0 .2rem .45rem #0003}.theme-preview__paper:before{position:absolute;top:.38rem;right:.28rem;left:.28rem;height:.12rem;border-radius:999rem;content:"";background:var(--preview-ink);box-shadow:0 .31rem color-mix(in srgb,var(--preview-ink) 55%,transparent),0 .62rem color-mix(in srgb,var(--preview-ink) 28%,transparent)}.theme-preview__paper:after{position:absolute;right:.26rem;bottom:.22rem;width:.48rem;height:.15rem;border-radius:999rem;content:"";background:var(--preview-accent);box-shadow:0 0 .28rem color-mix(in srgb,var(--preview-accent) 55%,transparent)}.theme-preview--linen-clay{--preview-bg: #171512;--preview-panel: #312c25;--preview-paper: #fbf8f1;--preview-ink: #27231f;--preview-accent: #dc9069;--preview-atmosphere: #8e5438}.theme-preview--pebble-sand{--preview-bg: #161513;--preview-panel: #2d2a25;--preview-paper: #faf8f2;--preview-ink: #24231f;--preview-accent: #c7a678;--preview-atmosphere: #76624a}.theme-preview--fog-taupe{--preview-bg: #151514;--preview-panel: #2c2a28;--preview-paper: #faf9f5;--preview-ink: #242321;--preview-accent: #b8a69a;--preview-atmosphere: #685d56}.scheme-switch{display:grid;grid-template-columns:repeat(3,1fr);margin-top:.55rem;padding:.25rem;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--bg-elevated) 58%,transparent)}.scheme-switch button{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.5rem .65rem;border:0;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font-size:var(--type-ui-control);cursor:pointer}.scheme-switch button[data-selected=true]{color:var(--text);background:var(--surface-hover);box-shadow:var(--glass-highlight)}.scheme-switch svg{width:.85rem;height:.85rem}.appearance-menu__note{margin:.55rem .2rem .05rem;color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.4}.settings{position:relative}.settings-menu{position:absolute;z-index:var(--layer-popover);bottom:0;left:2.9rem;display:grid;width:min(38rem,calc(100vw - 5.5rem));block-size:min(42rem,calc(100dvh - var(--title-bar-height) - 1rem));grid-template-rows:auto minmax(0,1fr) auto;padding:1rem;overflow:hidden;border:1px solid var(--border-soft);border-radius:var(--radius-md);background:var(--surface-strong);box-shadow:var(--glass-highlight),var(--shadow-window);-webkit-backdrop-filter:blur(2rem) saturate(1.12);backdrop-filter:blur(2rem) saturate(1.12);-webkit-app-region:no-drag}.settings-menu__header{display:flex;align-items:center;justify-content:space-between;margin:.1rem .25rem .9rem;gap:1rem}.settings-menu__header>div{display:flex;min-width:0;flex-direction:column;gap:.15rem}.settings-menu__header strong,.settings-menu__section>strong{color:var(--text);font-size:var(--type-ui-heading);font-weight:600}.settings-menu__header small,.settings-menu__section p,.settings-menu__note,.settings-menu__saving,.settings-menu__error{color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.5}.settings-menu__saving{flex:0 0 auto;padding:.3rem .55rem;border-radius:999rem;background:var(--surface-soft);color:var(--accent)}.settings-menu__body{display:grid;min-height:0;grid-template-columns:minmax(9.25rem,.38fr) minmax(0,1fr);gap:.75rem}.settings-menu__navigation{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden auto;gap:.3rem}.settings-menu__navigation button{display:flex;min-width:0;align-items:center;gap:.55rem;padding:.65rem .7rem;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--text-muted);background:transparent;font-size:var(--type-ui-control);text-align:left;cursor:pointer}.settings-menu__navigation button:hover{color:var(--text-soft);background:var(--surface-soft)}.settings-menu__navigation button[aria-selected=true]{border-color:color-mix(in srgb,var(--focus) 55%,transparent);color:var(--text);background:var(--accent-soft)}.settings-menu__section{min-width:0;min-height:0;padding:1rem;overflow:hidden auto;border-radius:var(--radius-sm);background:var(--surface-soft)}.settings-menu__section p{margin:.35rem 0 .85rem}.privacy-settings{display:grid;gap:.75rem}.privacy-settings>p,.privacy-settings .settings-callout{margin:0}.privacy-settings__choice,.privacy-settings__actions,.privacy-documents{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.privacy-settings__choice>span{margin-right:auto;font-weight:650}.privacy-settings button,.privacy-consent button{min-height:2.25rem;padding:.45rem .75rem;border:.0625rem solid var(--border-soft);border-radius:var(--radius-xs);color:var(--text);background:var(--bg-elevated);cursor:pointer}.privacy-settings button[aria-pressed=true]{border-color:var(--focus);background:var(--accent-soft)}.privacy-settings button:disabled,.privacy-consent button:disabled{opacity:.55;cursor:default}.privacy-documents a{color:var(--accent)}.line-ending-settings,.compatibility-target-settings{min-width:0;margin:1rem 0;padding:0;border:0}.line-ending-settings legend,.compatibility-target-settings legend{padding:0;color:var(--text);font-size:var(--type-ui-primary);font-weight:650}.compatibility-target-settings .app-select{width:min(100%,22rem)}.line-ending-options{display:grid;gap:.45rem}.line-ending-options button{display:flex;width:100%;align-items:center;justify-content:space-between;padding:.7rem .75rem;gap:.75rem;border:.0625rem solid transparent;border-radius:var(--radius-xs);color:var(--text);background:var(--bg-elevated);text-align:left;cursor:pointer}.line-ending-options button:hover{border-color:var(--border-strong)}.line-ending-options button[data-selected=true]{border-color:var(--focus);background:var(--accent-soft)}.line-ending-options button span{display:grid;gap:.18rem}.line-ending-options button strong{font-size:var(--type-ui-control)}.line-ending-options button small{color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.4}.line-ending-options button svg{width:.95rem;height:.95rem;flex:0 0 auto;color:var(--accent)}.settings-menu__footer{display:grid;gap:.45rem}.settings-summary{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.8rem}.settings-summary span{padding:.35rem .55rem;border-radius:999rem;color:var(--text-soft);background:color-mix(in srgb,var(--bg-elevated) 62%,transparent);font-size:var(--type-ui-caption)}.settings-action{display:inline-flex;align-items:center;gap:.45rem;padding:.6rem .75rem;border:1px solid var(--border-soft);border-radius:var(--radius-xs);color:var(--text);background:var(--surface-hover);font-size:var(--type-ui-control);cursor:pointer}.settings-action:hover{border-color:var(--focus)}.settings-action svg{width:.9rem;height:.9rem;color:var(--accent)}.keyboard-shortcut-settings{display:grid;gap:.35rem}.keyboard-shortcut-settings>div{display:flex;min-width:0;align-items:center;justify-content:space-between;padding:.6rem .7rem;gap:.75rem;border-radius:var(--radius-xs);color:var(--text-soft);background:var(--bg-elevated);font-size:var(--type-ui-control)}.keyboard-shortcut-settings span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-values{display:grid;margin:0;gap:.4rem}.settings-values>div{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.5rem .6rem;border-radius:var(--radius-xs);background:color-mix(in srgb,var(--bg-elevated) 56%,transparent)}.settings-values dt,.settings-values dd{margin:0;font-size:var(--type-ui-secondary)}.settings-values--secondary{margin-top:.8rem}.editor-behavior-settings{display:grid;margin-bottom:1rem;gap:.7rem}.editor-behavior-settings p{margin-bottom:0}.editor-behavior-settings__mode{min-width:0;margin:0;padding:0;border:0}.editor-behavior-settings__mode legend{margin-bottom:.4rem;color:var(--text-muted);font-size:var(--type-ui-caption)}.editor-behavior-settings__mode>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.editor-behavior-settings__mode button{padding:.5rem;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--text-muted);background:color-mix(in srgb,var(--bg-elevated) 58%,transparent);font-size:var(--type-ui-control);cursor:pointer}.editor-behavior-settings__mode button[data-selected=true]{border-color:var(--accent);color:var(--text);background:var(--accent-soft)}.editor-behavior-settings__mode button:disabled{color:var(--text-disabled);cursor:default}.editor-behavior-settings__toggle{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.5rem .6rem;border-radius:var(--radius-xs);background:color-mix(in srgb,var(--bg-elevated) 56%,transparent);color:var(--text-muted);font-size:var(--type-ui-secondary)}.typography-settings{display:grid;gap:.8rem}.typography-settings__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.typography-settings__heading>div{min-width:0}.typography-settings__heading p{margin-bottom:0}.typography-reset{display:inline-flex;flex:0 0 auto;align-items:center;gap:.35rem;padding:.4rem .5rem;border:1px solid var(--border-soft);border-radius:var(--radius-xs);color:var(--text-soft);background:transparent;font-size:var(--type-ui-control);cursor:pointer}.typography-reset:disabled,.typography-group button:disabled{color:var(--text-disabled);cursor:default}.typography-reset svg{width:.82rem;height:.82rem}.typography-group{min-width:0;margin:0;padding:0;border:0}.typography-group legend,.typography-preview>span{margin-bottom:.4rem;color:var(--text-muted);font-size:var(--type-ui-caption)}.typography-font-options,.typography-density-options,.typography-scale-options{display:grid;gap:.4rem}.typography-font-options,.typography-density-options{grid-template-columns:repeat(3,minmax(0,1fr))}.typography-scale-options{grid-template-columns:repeat(5,minmax(0,1fr))}.typography-group button{min-width:0;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--text-muted);background:color-mix(in srgb,var(--bg-elevated) 58%,transparent);cursor:pointer}.typography-group button:hover:not(:disabled){background:var(--surface-hover)}.typography-group button[data-selected=true]{border-color:var(--focus);color:var(--text);background:var(--accent-soft)}.typography-font-option{position:relative;display:flex;--editor-visual-font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;align-items:center;justify-content:space-between;gap:.35rem;padding:.6rem;text-align:left}.typography-font-option>span{display:flex;min-width:0;flex-direction:column;gap:.22rem}.typography-font-option strong{font-size:var(--type-ui-control);font-weight:600}.typography-font-option__sample{font-family:var(--editor-visual-font);font-size:.9rem}.typography-font-option svg{width:.78rem;height:.78rem;flex:0 0 auto;color:var(--accent)}.typography-scale-options button,.typography-density-options button{padding:.45rem .3rem;font-size:var(--type-ui-control)}.typography-preview{--editor-visual-font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--editor-text-size: 1rem;--editor-line-height: 1.62;--editor-block-spacing: .8em;padding:.7rem .8rem;border:1px solid var(--border-soft);border-radius:var(--radius-xs);background:color-mix(in srgb,var(--paper) 60%,transparent)}.typography-preview>span{display:block}.typography-preview p{margin:0;color:var(--text);font-family:var(--editor-visual-font);font-size:var(--editor-text-size);line-height:var(--editor-line-height)}.typography-settings>.settings-callout{margin:0}.spellcheck-settings{display:grid;gap:.7rem}.spellcheck-settings__heading,.spellcheck-settings__languages-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.7rem}.spellcheck-settings__heading>div,.spellcheck-settings__languages-heading>div{min-width:0}.spellcheck-settings__heading strong,.spellcheck-settings__languages-heading strong,.spellcheck-settings__unavailable strong{color:var(--text);font-size:var(--type-ui-primary);font-weight:600}.spellcheck-settings__heading p{margin-bottom:0}.settings-switch{position:relative;display:inline-flex;flex:0 0 auto;cursor:pointer}.settings-switch input{position:absolute;opacity:0;pointer-events:none}.settings-switch>span:last-child{position:relative;width:2rem;height:1.05rem;border:1px solid var(--border-strong);border-radius:999rem;background:var(--bg-elevated);transition:background-color .14s ease,border-color .14s ease}.settings-switch>span:last-child:after{position:absolute;top:.12rem;left:.12rem;width:.69rem;height:.69rem;border-radius:50%;background:var(--text-muted);content:"";transition:transform .14s ease,background-color .14s ease}.settings-switch input:checked+span{border-color:var(--focus);background:var(--accent-soft)}.settings-switch input:checked+span:after{background:var(--accent);transform:translate(.92rem)}.settings-switch input:focus-visible+span{outline:var(--focus-outline);outline-offset:var(--focus-outline-offset)}.settings-switch input:disabled+span{opacity:.55;cursor:not-allowed}.spellcheck-settings__languages-heading{align-items:center}.spellcheck-settings__languages-heading>div{display:flex;flex-direction:column;gap:.15rem}.spellcheck-settings__languages-heading small,.spellcheck-settings__state,.spellcheck-settings__provider,.spellcheck-settings__unavailable p{color:var(--text-muted);font-size:var(--type-ui-caption);line-height:1.45}.spellcheck-language-options{display:grid;padding-right:.25rem;gap:.3rem}.spellcheck-language-options label{--app-checkbox-size: 1rem;display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:.48rem .55rem;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--text-soft);background:color-mix(in srgb,var(--bg-elevated) 58%,transparent);font-size:var(--type-ui-control)}.spellcheck-language-options label[data-selected=true]{border-color:color-mix(in srgb,var(--focus) 58%,transparent);background:var(--accent-soft)}.spellcheck-language-options code,.spellcheck-settings__unavailable code{color:var(--text-muted);font-family:var(--editor-source-font, ui-monospace, monospace);font-size:var(--type-ui-caption)}.spellcheck-settings__state,.spellcheck-settings__provider,.spellcheck-settings__unavailable p,.spellcheck-settings>.settings-callout{margin:0}.spellcheck-settings__provider{padding:.55rem .6rem;border-radius:var(--radius-xs);background:color-mix(in srgb,var(--paper) 55%,transparent)}.spellcheck-settings__unavailable{padding:.6rem;border-left:.12rem solid var(--warning);border-radius:0 var(--radius-xs) var(--radius-xs) 0;background:color-mix(in srgb,var(--warning) 9%,transparent)}.spellcheck-settings__unavailable>div{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.45rem}.spellcheck-settings__unavailable code{padding:.25rem .35rem;border-radius:999rem;background:var(--surface-soft)}.settings-values dt{color:var(--text-muted)}.settings-values dd{color:var(--text-soft);text-align:right}.settings-callout{padding:.65rem;border-left:.12rem solid var(--accent);border-radius:0 var(--radius-xs) var(--radius-xs) 0;background:color-mix(in srgb,var(--accent-soft) 55%,transparent)}.locale-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.locale-option{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:.55rem;padding:.65rem .75rem;border:1px solid transparent;border-radius:var(--radius-xs);color:var(--text-soft);background:color-mix(in srgb,var(--bg-elevated) 58%,transparent);font-size:var(--type-ui-control);text-align:left;cursor:pointer}.locale-option:hover{background:var(--surface-hover)}.locale-option[data-selected=true]{border-color:var(--focus);color:var(--text);background:var(--accent-soft)}.locale-option svg{width:.9rem;height:.9rem;flex:0 0 auto;color:var(--accent)}.settings-menu__note{margin:.7rem .25rem .05rem}.settings-menu__error{display:flex;align-items:center;gap:.45rem;margin:.7rem .25rem 0;color:var(--danger)}.settings-menu__error>span{display:inline-grid;width:1rem;height:1rem;flex:0 0 auto;border:.1rem solid currentcolor;border-radius:50%;font-weight:700;line-height:1;place-items:center}.drop-overlay{position:absolute;z-index:var(--layer-drag-overlay);inset:calc(var(--title-bar-height) + 13px) 13px 13px;display:grid;border-radius:var(--radius-lg);place-items:center;background:color-mix(in srgb,var(--bg) 48%,transparent);box-shadow:inset 0 0 0 2px var(--accent);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);pointer-events:none}.drop-overlay>div{display:flex;min-width:290px;flex-direction:column;align-items:center;padding:32px 38px;border-radius:var(--radius-lg);color:var(--text);background:var(--surface-strong);box-shadow:var(--shadow-window)}.drop-overlay svg{width:34px;height:34px;margin-bottom:14px;color:var(--accent);filter:drop-shadow(0 0 12px var(--accent-glow))}.drop-overlay strong{font-size:1rem;font-weight:600}.drop-overlay span{margin-top:6px;color:var(--text-muted);font-size:var(--type-ui-caption)}@media(max-width:44rem){.appearance-menu{width:min(20rem,calc(100vw - 5rem))}.appearance-menu__families{grid-template-columns:1fr}.settings-menu{width:min(34rem,calc(100vw - 5rem))}.settings-menu__body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.settings-menu__navigation{flex-direction:row;overflow:auto hidden;scrollbar-gutter:stable}.settings-menu__navigation button{flex:0 0 auto;flex-direction:column;justify-content:center;gap:.3rem;padding:.5rem .65rem;text-align:center}}@media(max-width:1080px){.welcome{grid-template-columns:64px minmax(0,1fr);padding:30px}.welcome__mark{width:44px;height:52px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important}}.app-modal-backdrop{position:fixed;z-index:var(--layer-modal);inset:var(--title-bar-height) 0 0;display:grid;place-items:center;padding:clamp(.75rem,3vw,2rem);background:color-mix(in srgb,var(--bg) 72%,transparent);-webkit-backdrop-filter:blur(.375rem);backdrop-filter:blur(.375rem)}.app-modal{display:grid;overflow:hidden;border:.0625rem solid var(--border-strong);border-radius:var(--radius-md);color:var(--text);background:var(--surface-strong-solid);box-shadow:var(--shadow-window),var(--glass-highlight)}.app-modal__header,.app-modal__footer{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem}.app-modal__header{justify-content:space-between;border-bottom:.0625rem solid var(--border-soft)}.app-modal__header h2,.app-modal__header p{margin:0}.app-modal__header h2{font-size:var(--type-ui-heading)}.app-modal__close{display:grid;width:2.25rem;height:2.25rem;place-items:center;flex:0 0 auto;border:.0625rem solid transparent;border-radius:var(--radius-xs);color:var(--text-soft);background:transparent;font-size:1.375rem;cursor:pointer}.app-modal__close:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}.app-modal__scroll-region{min-height:0;overflow:auto}.app-modal__footer{border-top:.0625rem solid var(--border-soft)}.privacy-consent__dialog{width:min(32rem,100%);max-height:min(42rem,100%)}.privacy-consent__body{display:grid;gap:.85rem;padding:1rem}.privacy-consent__body p{margin:0}.privacy-consent__acknowledgement{align-items:flex-start;line-height:1.45}.privacy-consent__acknowledgement .app-checkbox__indicator{margin-top:.2rem}.privacy-consent__actions{justify-content:flex-end}.privacy-consent .primary-action{border-color:var(--focus);background:var(--accent-soft)}.privacy-confirmation__dialog{width:min(30rem,100%)}.privacy-confirmation__body{padding:1rem}.privacy-confirmation__body p{margin:0}.privacy-confirmation__actions{justify-content:flex-end}.retention-close{grid-template-rows:auto minmax(0,1fr) auto;width:min(42rem,100%);max-height:min(36rem,100%)}.retention-close__footer{justify-content:space-between}.retention-close__header h2,.retention-close__body p{margin:0}.retention-close__body{display:grid;gap:.75rem;padding:1rem}.retention-close__recovery,#retention-close-status{color:var(--text-soft);font-size:var(--type-ui-secondary)}.retention-close__resource-list{display:grid;gap:.35rem;max-height:min(16rem,40vh);margin:0;padding:0 0 0 1.25rem;overflow-y:auto}.retention-close__discard-confirm{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem;border:.0625rem solid color-mix(in srgb,var(--danger) 48%,var(--border-soft));border-radius:var(--radius-sm);background:color-mix(in srgb,var(--danger) 10%,var(--surface-strong-solid))}.retention-close__retention-actions,.retention-close__exit-actions{display:flex;flex-wrap:wrap;gap:.375rem}.retention-close__danger{color:var(--danger)}@media(max-width:42rem),(max-height:28rem){.retention-close{max-height:100%}.retention-close__footer,.retention-close__discard-confirm{align-items:stretch;flex-direction:column}}.portability-persistence-dialog{width:min(30rem,calc(100vw - 2rem))}.portability-persistence-dialog__header>div{display:grid;gap:.2rem}.portability-persistence-dialog__target{color:var(--text-muted);font-size:.75rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.portability-persistence-dialog__body{display:grid;gap:.75rem}.portability-persistence-dialog__body p{margin:0}.portability-persistence-dialog__note{color:var(--text-muted);font-size:.82rem}.portability-persistence-dialog__footer{justify-content:flex-end}.portability-persistence-dialog__footer .soft-button{display:inline-flex;align-items:center;gap:.4rem}.portability-persistence-dialog__footer svg{width:1rem;height:1rem}
