@font-face{font-family:'Grenze Gotisch';src:url('./fonts/grenze-gotisch.woff') format('woff');font-style:normal;font-weight:100 900;font-display:swap}
.inspiration-trigger{color:var(--green)}
.inspiration-trigger[aria-expanded=true]{background:var(--green-soft)}
#inspiration-root{position:fixed;z-index:70;top:73px;right:22px;width:min(340px,calc(100vw - 28px));max-height:calc(100dvh - 90px);overflow:auto}
.inspiration-bubble{border:1px solid var(--line);background:var(--paper);border-radius:14px;box-shadow:0 12px 35px #15241c1a;padding:19px 23px 17px;color:var(--ink)}
.inspiration-bubble>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.inspiration-bubble>header>span{display:flex;align-items:center;gap:7px;color:var(--green);font-size:14px;font-weight:550}
.inspiration-bubble>header>span>svg{height:16px;width:16px}
.inspiration-bubble>header>.icon-btn{width:36px;height:36px;margin:-7px -11px -7px 0;color:var(--muted)}
.inspiration-bubble>header>.icon-btn svg{width:17px;height:17px}
.inspiration-type{font-size:12px;letter-spacing:.05em;color:var(--muted)}
.inspiration-invitation{font:21px/1.5 var(--serif);margin:11px 0 18px;letter-spacing:-.1px}
.inspiration-gentle{font-size:14px;line-height:1.55;color:var(--muted);margin-bottom:19px}
.inspiration-bubble>footer{padding-top:13px;border-top:1px solid var(--line)}
.inspiration-bubble>footer>.text-btn{font-size:14px;min-height:32px;gap:8px;color:var(--green)}
.inspiration-bubble>footer>.text-btn svg{width:15px;height:15px}
.page-only-mode #inspiration-root{display:none}
@media(max-width:760px){.editor-shell .breadcrumb{min-width:0;flex:1;overflow:hidden}.editor-shell .breadcrumb>.icon-btn{flex-shrink:0}.editor-shell .breadcrumb>.scene-crumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-shell .breadcrumb>svg{display:none}.editor-shell .top-actions{flex-shrink:0;gap:0}.editor-shell .topbar{gap:4px;padding-inline:10px}.inspiration-bubble>header>.icon-btn{width:44px;height:44px}.inspiration-bubble>footer>.text-btn{min-height:44px;font-size:15px}.inspiration-invitation{font-size:22px}.inspiration-gentle{font-size:15px}}
[hidden]{display:none!important}

/* The manuscript owns the height of this column. Secondary tools stay small. */
.editor-shell{--side-width:280px}
.editor-sidebar{padding:12px 14px 0;gap:0;overflow:hidden}
.editor-side-top{display:flex;align-items:center;justify-content:space-between;min-height:40px;flex-shrink:0}
.editor-library{display:flex;align-items:center;gap:10px;padding:6px 10px;font-size:20px;letter-spacing:-.4px;font-weight:600;color:var(--side-title)}
.editor-library svg{width:17px;height:17px;color:var(--side-text)}
.sidebar-close{display:none}
.editor-sidebar .outline-title{padding:12px 10px 13px;margin:0;border:0;flex-shrink:0}
.editor-sidebar .outline-title h2{margin:0 0 5px;font-size:21px;line-height:1.23}
.editor-sidebar .project-title-trigger{align-items:flex-start;gap:9px}
.editor-sidebar .project-title-trigger>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.editor-sidebar .project-title-trigger svg{width:14px;height:14px;margin-top:5px;opacity:.6}
.editor-sidebar .outline-title small{font-size:13px;line-height:1.5;color:var(--side-muted)}
.chapter-heading{display:flex;align-items:center;justify-content:space-between;padding:1px 0 3px 10px;flex-shrink:0;border-top:1px solid var(--side-line)}
.chapter-heading h3{font-size:15px;font-weight:600;margin:0;color:var(--side-title)}
.chapter-heading>div{display:flex;align-items:center;gap:0}
.chapter-heading .icon-btn{width:36px;height:38px;color:var(--side-text)}
.chapter-heading .icon-btn svg{width:17px;height:17px}
.chapter-heading span{font-size:12px;min-width:35px;text-align:center;color:var(--side-muted)}
.chapter-search{display:flex;align-items:center;gap:8px;background:var(--side-input);border:1px solid var(--side-line);border-radius:7px;padding:0 10px;margin:3px 5px 10px;min-height:40px;flex-shrink:0;color:var(--side-muted)}
.chapter-search>svg{width:16px;height:16px}
.chapter-search input{width:100%;min-width:0;background:none;border:0;outline-offset:5px;color:var(--side-title);font-size:15px;padding:8px 0}
.chapter-search input::placeholder{color:var(--side-muted);opacity:.9;font-size:14px}
.chapter-search input::-webkit-search-cancel-button{display:none}
.chapter-search .icon-btn{height:27px;width:24px;flex-shrink:0;color:var(--side-muted)}
.chapter-search .icon-btn svg{width:14px;height:14px}
.editor-sidebar .outline-scroll{flex:1 1 0;min-height:0;margin:0 -5px;padding:0 5px 14px;scrollbar-gutter:stable;scrollbar-width:thin;scroll-behavior:auto;overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden}
.chapter-group{padding-bottom:8px}
.editor-sidebar .part-label{width:100%;margin:0 0 3px;padding:9px 9px;gap:6px;min-height:38px;color:var(--side-text);font-size:14px;text-align:left;line-height:1.3}
.part-label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.part-label>small{margin-left:auto;color:var(--side-muted);font-size:12px}
.chapter-row{display:flex;align-items:stretch;border-radius:6px;position:relative}
.chapter-row:hover{background:var(--side-hover)}
.chapter-row.active{background:var(--side-active)}
.editor-sidebar .scene-item{flex:1;min-width:0;width:auto;min-height:55px;padding:9px 6px 9px 10px;gap:10px;font-size:16px;align-items:flex-start;line-height:1.3;background:transparent;color:var(--side-text)}
.editor-sidebar .scene-item.active{color:var(--side-title);background:transparent}
.editor-sidebar .scene-item.active:before{background:var(--side-marker);left:0}
.chapter-number{font-variant-numeric:tabular-nums;font-size:12px;line-height:21px;color:var(--side-muted);flex-shrink:0;min-width:19px}
.chapter-name{min-width:0}
.chapter-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.editor-sidebar .scene-item small{font-size:12px;line-height:1.25;color:var(--side-muted);margin-top:4px}
.chapter-more{flex-shrink:0;align-self:center;display:flex;align-items:center;justify-content:center;min-width:34px;height:44px;color:var(--side-muted);border-radius:5px;opacity:.65}
.chapter-more svg{width:18px;height:18px}
.chapter-row:is(:hover,:focus-within) .chapter-more,.chapter-row.active .chapter-more{opacity:1}
.chapter-more:hover{color:var(--side-title);background:var(--side-hover)}
.chapter-empty{padding:25px 12px;color:var(--side-text);font-size:15px;line-height:1.6}
.chapter-empty p{margin-bottom:8px}
.chapter-add{border-top:1px solid var(--side-line);padding:9px 5px 8px;flex-shrink:0}
.chapter-add .btn{width:100%;justify-content:flex-start;min-height:43px;font-size:15px;color:var(--side-title);background:var(--side-hover);border-color:var(--side-line)}
.editor-side-footer{flex-shrink:0;display:flex;align-items:center;gap:4px;min-height:49px;padding:0 3px 5px;color:var(--side-text)}
.editor-side-footer>.icon-btn{width:36px;height:40px;color:var(--side-text)}
.editor-side-footer>.icon-btn svg{width:18px;height:18px}
.editor-side-footer>[aria-pressed=true]{color:var(--side-title);background:var(--side-active)}
.editor-side-footer>span{flex:1}
.editor-side-footer>.text-btn{font-size:14px;min-height:40px;gap:7px;color:var(--side-text)}
.editor-side-footer>.text-btn svg{width:17px;height:17px}
.chapter-actions{display:grid;gap:5px}
.chapter-actions .editor-option-row{font-size:16px;padding:17px 12px}
.editor-more{display:inline-flex}
.editor-tools{gap:9px}
.editor-tools .spacer{min-width:5px}
.editor-shell .topbar .codex-toggle{font-size:15px;gap:7px;min-height:38px;padding:7px 12px}
.editor-shell .topbar .codex-toggle svg{width:18px;height:18px}
.codex-network-launchers{display:grid;grid-template-columns:1fr;gap:7px;margin:0 0 25px}
.codex-network-launchers .btn{min-height:43px;justify-content:flex-start;background:var(--soft);font-size:15px;gap:10px;border-color:var(--line)}
.codex-network-launchers .btn>svg{width:20px;height:20px;color:var(--green)}
.codex-view-tabs{flex-wrap:wrap;gap:5px}
.codex-view-tabs button{font-size:15px;min-height:44px}
.codex-work{margin-bottom:17px}

/* Page alone changes presentation only; the same textarea retains the text. */
.page-mode-controls,.suspended-sky,.page-custom-head,.page-custom-foot,.page-word-footer{display:none}
.page-only-mode.app-shell{padding-left:0}
.page-only-mode[data-page-paper=white],.suspended-mode.app-shell{--bg:#fff;--paper:#fff;--ink:#303834;--muted:#6e7872;--faint:#9aA29b;--line:#e5e8e3;--green:#476253;--accent:#688b75;--green-soft:#edf2ec;color-scheme:light;background:var(--bg);color:var(--ink)}
.page-only-mode :is(.sidebar,.topbar,.editor-tools,.editor-status,.codex,.mobile-backdrop){display:none}
.page-only-mode .editor-layout{height:100dvh;grid-template-columns:minmax(0,1fr)}
.page-only-mode .writing-scroll{padding:90px clamp(25px,6vw,95px) max(100px,env(safe-area-inset-bottom));scroll-behavior:auto}
.page-only-mode .paper{max-width:740px;min-height:calc(100dvh - 190px);margin:0 auto;padding:0;border:0;box-shadow:none;border-radius:0;background:transparent}
.page-only-mode .paper>:is(.eyebrow,.scene-title,.paper-end,.scene-links){display:none}
.page-only-mode[data-page-header=title] .scene-title,.page-only-mode[data-page-header=full] .scene-title{display:block}
.page-only-mode[data-page-header=full] .paper>.eyebrow{display:block;font-size:11px;margin-bottom:16px;line-height:1.6}
.page-only-mode .scene-title{font-size:clamp(28px,4vw,38px);margin-bottom:40px;color:var(--ink)}
.page-only-mode .prose-editor{min-height:calc(100dvh - 200px)}
.page-only-mode[data-page-header=custom] .page-custom-head{display:block;font-size:15px;letter-spacing:.02em;color:var(--muted);margin-bottom:38px;white-space:pre-wrap;overflow-wrap:anywhere}
.page-only-mode[data-page-footer=custom] .page-custom-foot,.page-only-mode[data-page-footer=words] .page-word-footer{display:block;font-size:13px;color:var(--muted);text-align:center;padding-top:50px;white-space:pre-wrap;overflow-wrap:anywhere}
.page-only-mode .page-mode-controls{display:flex;position:fixed;z-index:48;top:max(14px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));gap:3px;padding:3px;border-radius:28px;background:var(--paper);color:var(--muted);box-shadow:0 1px 8px #182d2306;opacity:.8;transition:opacity .2s}
.page-mode-controls:hover,.page-mode-controls:focus-within{opacity:1}
.page-control{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;border-radius:50%;color:inherit}
.page-control:hover,.page-control[aria-pressed=true]{color:var(--ink);background:var(--green-soft)}
.page-control svg{width:19px;height:19px}
.page-mode-controls .page-sound{display:none}
.page-discovery svg{width:17px;height:17px}
.page-options-preview{margin:10px auto 22px;width:min(220px,70%);height:265px;padding:25px 23px;background:#fff;box-shadow:0 5px 28px #182d2312;border:1px solid #e4e8e1;color:#6b776d;display:flex;flex-direction:column;gap:10px;font-size:11px;overflow:hidden}
.page-options-preview i{display:block;height:2px;width:100%;background:#bdc8bd;opacity:.65}
.page-options-preview i:nth-of-type(1){margin-top:15px}
.page-options-preview i:nth-of-type(4){width:62%}
#page-preview-head{white-space:pre-wrap;overflow-wrap:anywhere;max-height:55px;overflow:hidden}
#page-preview-foot{margin-top:auto;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;max-height:45px;overflow:hidden}
.page-only-mode .error-banner:not([hidden]){position:fixed;top:0;left:0;right:0;z-index:49;padding:10px 20px}

/* A quiet discovery, drawn locally: no download, video or automatic audio. */
.suspended-mode.app-shell{background:#101b22}
.suspended-mode .suspended-sky{display:block;position:fixed;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 20% 98%,#47706c45,transparent 55%),radial-gradient(ellipse at 90% 20%,#38405e38,transparent 60%),linear-gradient(165deg,#111a21,#182a31)}
.sky-glow{position:absolute;inset:25% -20% -50%;border-radius:50%;background:radial-gradient(ellipse,#a2bcb015,transparent 66%);animation:page-breathe 28s ease-in-out infinite alternate;transform-origin:50% 100%}
.sky-stars{position:absolute;inset:0;background-image:radial-gradient(circle at 8% 14%,#c0d1ca99 0 1px,transparent 1.5px),radial-gradient(circle at 90% 22%,#c0d1ca66 0 1px,transparent 1.5px),radial-gradient(circle at 14% 72%,#c0d1ca66 0 1px,transparent 1.5px),radial-gradient(circle at 85% 78%,#c0d1ca99 0 1px,transparent 1.5px),radial-gradient(circle at 4% 48%,#c0d1ca55 0 1px,transparent 1.5px),radial-gradient(circle at 94% 56%,#c0d1ca55 0 1px,transparent 1.5px);opacity:.6}
.sky-orbit{position:absolute;width:min(145vw,1500px);height:min(145vw,1500px);border:1px solid #b7c6b80e;border-radius:50%;left:50%;top:47%;transform:translate(-50%,-50%) rotate(-30deg);box-shadow:0 0 0 100px #adbeaf04}
.suspended-mode .writing-scroll{position:relative;z-index:1;padding:100px clamp(16px,6vw,95px) max(90px,env(safe-area-inset-bottom))}
.suspended-mode .paper{max-width:800px;padding:clamp(30px,5.5vw,68px);background:#faf9f2;border-radius:3px;box-shadow:0 25px 90px #0003;min-height:calc(100dvh - 185px)}
.suspended-mode .prose-editor{min-height:calc(100dvh - 310px)}
.suspended-mode .page-mode-controls{background:#17262c;color:#c3d2ca;--ink:#f0f4e8;--green-soft:#ffffff0e;box-shadow:none;opacity:.7}
.suspended-mode .page-mode-controls .page-sound{display:inline-flex}
@keyframes page-breathe{from{transform:scale(.9);opacity:.55}to{transform:scale(1.15);opacity:1}}
@media(min-width:761px) and (max-width:1100px){.editor-shell{--side-width:250px}.editor-sidebar .outline-title h2{font-size:20px}.editor-tools #font-select{max-width:115px}}
@media(max-width:760px){.editor-shell{--side-width:0px}.editor-sidebar{width:min(330px,90vw);padding:12px 14px 0}.sidebar-close{display:inline-flex;color:var(--side-text);min-width:40px;height:40px}.editor-sidebar .outline-title h2{font-size:22px}.editor-sidebar .scene-item{min-height:59px;font-size:17px}.editor-sidebar .scene-item small{font-size:13px}.chapter-more{min-width:44px;opacity:.9}.chapter-heading .icon-btn{width:40px;height:44px}.chapter-heading h3{font-size:16px}.chapter-search{min-height:44px}.chapter-search input{font-size:16px}.chapter-add .btn{font-size:16px;min-height:46px}.editor-side-footer>.icon-btn{width:44px;height:44px}.editor-side-footer>.text-btn{font-size:15px;min-height:44px}.editor-shell .topbar .codex-toggle{font-size:14px;min-height:42px;padding:6px 9px;gap:5px}.editor-shell .topbar .codex-toggle svg{width:18px;height:18px}.editor-shell .breadcrumb .scene-crumb{max-width:100px}.editor-tools{justify-content:space-between}.editor-tools .editor-more{font-size:14px}.codex-view-tabs button{font-size:15px;gap:7px;flex:1}.codex-view-tabs{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap}.codex-view-tabs button svg{width:17px;height:17px}.codex-network-launchers .btn{font-size:16px;min-height:48px}.page-only-mode .writing-scroll{padding:83px 27px 100px}.page-only-mode .paper{min-height:calc(100dvh - 180px)}.page-only-mode .page-mode-controls{top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));opacity:.8}.suspended-mode .writing-scroll{padding:85px 13px 70px}.suspended-mode .paper{padding:32px 25px;min-height:calc(100dvh - 145px)}}
@media(max-height:560px){.editor-sidebar .editor-side-top{min-height:32px}.editor-sidebar .editor-library{font-size:17px}.editor-sidebar .outline-title{padding-top:6px;padding-bottom:8px}.editor-sidebar .outline-title h2{font-size:19px}.editor-sidebar .outline-title small{display:none}.chapter-heading{padding-top:0}.chapter-search{margin-bottom:6px}.chapter-add{padding-block:6px}.editor-side-footer{min-height:43px;padding-bottom:0}.page-only-mode .writing-scroll{padding-top:75px}.suspended-mode .paper{padding-top:30px}}
@media(prefers-reduced-motion:reduce){.sky-glow,.sound-bars.playing i{animation:none}.page-mode-controls{transition:none}}

.codex-full-profile{max-width:800px;margin:0 auto;padding:0 0 50px}.codex-full-profile .entity-detail{padding:0}.codex-full-profile .codex-back{font-size:16px}.codex-full-profile .entity-profile-heading h2{font-size:34px}.codex-full-profile .entity-description{font-size:18px;line-height:1.8;white-space:pre-wrap}.codex-full-profile .facts{display:flex;gap:40px}.codex-full-profile .entity-actions{display:flex;gap:10px;flex-wrap:wrap;margin-block:25px}.codex-full-profile .entity-actions .btn{font-size:15px;min-height:44px}.codex-full-profile .profile-information,.codex-full-profile .entity-relations{margin-top:34px}.codex-full-profile .entity-network-actions{justify-content:flex-start}.codex-full-profile .profile-information-item>summary{font-size:17px}.codex-full-profile .profile-information-item>p{font-size:17px;line-height:1.8}.codex-full-profile .entity-work-label{font-size:14px}.delete-card-summary p{font-size:16px;line-height:1.7}.page-only-mode .page-mode-controls:is(:hover,:focus-within){opacity:1}

.entity-name-open{text-align:left;padding:0;font:inherit;color:inherit;border-radius:3px}.entity-name-open:hover{text-decoration:underline;text-underline-offset:4px}.entity-form-context{display:flex;align-items:center;gap:10px;font-size:16px;color:var(--muted);padding-bottom:18px;border-bottom:1px solid var(--line)}.entity-form-context>span{overflow-wrap:anywhere}

.entity-card-bottom small{font-size:13px!important;line-height:1.5}.entity-card .entity-name-open:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* Fiches libres and recoverable books. */
.free-codex-intro{font-size:16px;line-height:1.7;color:var(--muted);max-width:650px;margin:4px 0 26px}
.free-card-note{font-size:15px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;margin-top:25px}
.free-version-list,.trash-project-list{display:grid;gap:0}
.free-version-list article,.trash-project-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.free-version-list strong,.trash-project-list strong{font-size:17px;font-weight:550;display:block;overflow-wrap:anywhere}
.free-version-list small,.trash-project-list small{display:block;font-size:13px;line-height:1.6;color:var(--muted);margin-top:4px}
.library-trash{display:flex;justify-content:flex-end;padding-top:26px}.library-trash .text-btn{font-size:15px;min-height:44px;color:var(--muted)}
.codex-work-selector>.text-btn{font-size:14px;min-height:44px;white-space:nowrap}
.space-volume{display:none}
/* Text in open space: deliberately no sheet, rectangle or page furniture. */
.suspended-mode.app-shell{--bg:#030507;--paper:#0b0e13;--ink:#eeeae0;--muted:#b8c0c8;--faint:#8a96a1;--line:#ffffff1a;--accent:#b2c6d4;--green:#c3d7e2;--green-soft:#ffffff12;background:#030507;color:var(--ink);color-scheme:dark}
.suspended-mode .suspended-sky{background:#030507 url('./assets/milky-way.webp') center center/cover no-repeat}
.suspended-mode .suspended-sky::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 48%,#0009 0%,#0004 48%,#0000 76%),linear-gradient(#0002,#0001 50%,#0005)}
.suspended-mode :is(.sky-glow,.sky-stars){display:none}
.suspended-mode .writing-scroll{padding:105px clamp(28px,8vw,130px) 105px}
.suspended-mode .paper{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;max-width:760px;min-height:calc(100dvh - 215px)}
.suspended-mode .paper>:is(.eyebrow,.scene-title,.page-custom-head,.page-custom-foot,.page-word-footer,.paper-end,.scene-links){display:none!important}
.suspended-mode :is(.prose-editor,.prose){color:#eeeae0;text-shadow:0 1px 7px #000,0 0 30px #0009;caret-color:#e0d0a9;background:transparent;min-height:calc(100dvh - 210px);line-height:1.95}
.suspended-mode .prose-editor::placeholder{color:#bac4cd;opacity:.8}
.suspended-mode .prose-editor::selection{background:#6d829870;color:#fff}
.suspended-mode .page-mode-controls{background:#090e15bd;color:#c4d0db;backdrop-filter:blur(10px);box-shadow:none;transition:opacity .7s}
.suspended-mode .page-mode-controls .space-volume{display:flex;align-items:center;padding:0 11px 0 3px}
.space-volume input{width:86px;accent-color:#bdced8;height:32px}
.suspended-mode.space-quiet .page-mode-controls{opacity:0}
.suspended-mode.space-quiet .page-mode-controls:is(:hover,:focus-within){opacity:1}
@media(max-width:760px){.codex-work-selector{flex-wrap:wrap}.codex-work-selector>.text-btn{margin-left:auto}.suspended-mode .writing-scroll{padding:85px 27px 85px}.suspended-mode .paper{padding:0;min-height:calc(100dvh - 175px)}.suspended-mode .suspended-sky{background-position:28% center}.space-volume input{width:65px}.free-version-list article,.trash-project-list article{gap:12px}}
@media(prefers-reduced-motion:reduce){.suspended-mode .page-mode-controls{transition:none}}

.entity-card-bottom{gap:8px;flex-wrap:wrap}.entity-card-bottom>small{flex:1}.entity-card-bottom>.icon-btn{width:40px;height:44px;flex-shrink:0;color:var(--muted)}.entity-card-bottom>.icon-btn svg{width:17px;height:17px}.entity-card-bottom>.icon-btn:hover{color:var(--ink);background:var(--soft)}

.suspended-mode .page-mode-controls>[data-action=page-options]{display:none}

.trash-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.trash-actions .icon-btn{height:44px;width:40px;color:var(--muted)}.trash-actions .icon-btn svg{width:17px;height:17px}@media(max-width:420px){.trash-project-list article{align-items:flex-start;flex-wrap:wrap}.trash-actions{margin-left:auto}}
