.sidebar-account-summary{flex-shrink:0;gap:8px;padding-block:14px 6px;display:grid}.sidebar-balance-row{gap:8px;display:flex}.sidebar-balance-pill,.sidebar-membership-button{border:1px solid #dedcd3;border-radius:22px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 14px;display:flex}.sidebar-balance-pill{background:#e9e7df;flex:1;justify-content:flex-start;min-width:0}.sidebar-balance-pill strong{overflow-wrap:anywhere;font-size:16px}.sidebar-gem-icon{flex-shrink:0;width:20px;height:20px}.sidebar-membership-button{color:#796127;background:#fff1bb;border-color:#e6d595;flex-shrink:0;font-size:14px;font-weight:600}.sidebar-home-row,.sidebar-profile-link{color:var(--muted);border-radius:16px;align-items:center;gap:12px;padding:12px 14px;display:flex}.sidebar-home-row:hover,.sidebar-balance-pill:hover{background:#e3e1d8}.sidebar-membership-button:hover{background:#ffe89a}.sidebar-account-navigation{flex-shrink:0;gap:4px;margin-top:8px;display:grid}.sidebar-profile-link:hover{color:var(--ink);background:#e3e1d8}.sidebar-home-row[aria-current=page],.sidebar-profile-link[aria-current=page]{color:#fff;background:#171714}@media (max-width:700px){.sidebar-account-summary,.sidebar-account-navigation{display:none}}.workspace-sidebar.is-guest,.workspace-drawer-content.is-guest{position:relative}.is-guest .workspace-sidebar-brand{margin-top:56px;position:static}.workspace-sidebar.is-guest.is-collapsed .workspace-sidebar-brand{margin-top:0}.is-guest .workspace-sidebar-brand .round-button{right:18px}.selected-app{grid-template-columns:264px minmax(0,1fr)}.workspace-sidebar,.workspace-drawer-content{background:#f2f1ec;padding-inline:18px}.workspace-sidebar-brand{justify-content:center;height:190px;padding:30px 0 18px;position:relative}.workspace-sidebar-brand .brand{letter-spacing:-.7px;flex-direction:column;gap:12px;font-size:23px}.workspace-sidebar-brand .brand img{border-radius:50%;width:66px;height:66px}.workspace-sidebar-brand .round-button{background:#e9e7df;border:0;width:36px;min-width:36px;height:36px;min-height:36px;position:absolute;top:12px;right:0}.sidebar-create-actions{flex-shrink:0;gap:10px;display:grid}.sidebar-login:disabled{cursor:wait;opacity:1}.sidebar-login-spinner{border:2px solid #fff5;border-top-color:currentColor;border-radius:50%;width:18px;height:18px;animation:.8s linear infinite sidebar-login-spin}@keyframes sidebar-login-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.sidebar-login-spinner{animation:none}}.sidebar-create{border:1px solid var(--ink);background:var(--ink);color:#fff;border-radius:24px;justify-content:center;align-items:center;gap:12px;min-height:44px;padding:10px 18px;font-size:14px;font-weight:600;display:flex}.sidebar-create:hover{color:#fff;background:#474337}.sidebar-recent-label{letter-spacing:1.2px;color:var(--muted);border-top:1px solid #dedcd2;flex-shrink:0;margin:0 12px 8px;padding-top:14px;font-size:10px;font-weight:600}.workspace-story-scroll{scrollbar-width:none;padding-top:0}.workspace-story-scroll::-webkit-scrollbar{display:none}.workspace-story-link{border-radius:10px;min-height:40px;padding:5px 14px}.sidebar-story-row:has(.workspace-story-link.active){background:#fff1b3}.sidebar-story-row{border-radius:10px;align-items:center;gap:2px;padding:6px;display:flex}.sidebar-story-row.is-archived .sidebar-story-copy,.sidebar-story-row.is-archived .sidebar-story-copy small{color:#a5a69e}.sidebar-story-row.is-archived .sidebar-story-cover{filter:grayscale();opacity:.55}.sidebar-story-row .workspace-story-link{flex:1;min-width:0;padding:0 4px 0 0}.sidebar-story-row .sidebar-story-more{width:24px;min-width:24px;height:24px;min-height:24px;color:var(--muted);background:0 0;border:1px solid;border-radius:50%;flex:0 0 24px;padding:3px}.sidebar-story-row .sidebar-story-more .ui-icon{width:16px;height:16px}.sidebar-story-row.is-showing-actions .sidebar-story-copy{display:none}.sidebar-story-row.is-showing-actions .workspace-story-link{flex:none}.sidebar-story-actions{flex:1;justify-content:center;align-items:center;gap:10px;display:flex;position:relative}.sidebar-story-actions>button{border:0;border-radius:50%;place-items:center;width:36px;height:36px;padding:8px;display:grid}.story-inline-archive{color:#58684c;background:#e4e8df}.story-inline-delete{color:#a6534c;background:#f3e1df}.sidebar-story-actions .ui-icon{width:20px;height:20px}.sidebar-story-actions .form-error{z-index:2;background:var(--paper);padding:6px;position:absolute;top:100%}@media (min-width:701px){.selected-app.sidebar-collapsed{grid-template-columns:80px minmax(0,1fr)}.workspace-sidebar.is-collapsed{padding-inline:12px}.is-collapsed .workspace-sidebar-brand{height:146px;padding-top:48px}.is-collapsed .workspace-sidebar-brand .round-button{left:50%;right:auto;transform:translate(-50%)}.is-collapsed .workspace-sidebar-brand .brand img{border-radius:50%;width:44px;height:44px}.is-collapsed .brand>span,.is-collapsed .sidebar-create-actions a>span:not(.icon-wrap),.is-collapsed .workspace-link>span:last-child{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.is-collapsed .sidebar-create{justify-content:center;width:44px;height:44px;min-height:44px;margin-inline:auto;padding:0}.is-collapsed .workspace-library{margin-top:16px}.is-collapsed .workspace-story-scroll{padding:4px}.is-collapsed .workspace-story-list{gap:10px}.is-collapsed .sidebar-story-row{background:0 0;justify-content:center;padding:0}.is-collapsed .sidebar-story-row:has(.workspace-story-link.active){background:0 0}.is-collapsed .sidebar-story-row .workspace-story-link{background:0 0;border-radius:7px;flex:0 0 44px;width:44px;padding:0}.is-collapsed .workspace-story-link .sidebar-story-cover{border-radius:7px;flex-basis:44px;width:44px;height:60px}.is-collapsed .workspace-story-link.active{outline:2px solid var(--ink);outline-offset:2px}.is-collapsed .sidebar-story-copy,.is-collapsed .sidebar-story-more,.is-collapsed .sidebar-story-actions,.is-collapsed .sidebar-library-empty,.is-collapsed .sidebar-account-summary,.is-collapsed .sidebar-profile-link>span:not(.icon-wrap){display:none}.is-collapsed .sidebar-home-row,.is-collapsed .sidebar-profile-link{background:#e3e1d8;border-radius:50%;justify-content:center;width:44px;height:44px;min-height:44px;margin-inline:auto;padding:0}.is-collapsed .sidebar-home-row:hover,.is-collapsed .sidebar-profile-link:hover{background:#d8d5ca}.is-collapsed .sidebar-home-row[aria-current=page],.is-collapsed .sidebar-profile-link[aria-current=page]{color:#fff;background:#171714}}@media (min-width:701px) and (max-width:1000px){.selected-app{grid-template-columns:232px minmax(0,1fr)}.workspace-sidebar{padding-inline:14px}}@media (max-width:700px){.workspace-drawer{width:min(300px,100vw - 32px)}.workspace-drawer .workspace-sidebar-brand{height:160px;padding-top:24px}.workspace-drawer .workspace-sidebar-brand .brand img{border-radius:50%;width:58px;height:58px}.workspace-drawer-content{overflow-y:auto}}@media (max-height:650px){.workspace-sidebar-brand,.workspace-drawer .workspace-sidebar-brand{height:120px;padding-top:20px}.workspace-sidebar-brand .brand{gap:6px;font-size:18px}.workspace-sidebar-brand .brand img,.workspace-drawer .workspace-sidebar-brand .brand img{border-radius:50%;width:44px;height:44px}.workspace-sidebar,.workspace-drawer-content{overflow-y:auto}.workspace-library:has(.sidebar-recent-label){min-height:90px}}@media (min-width:701px){.is-collapsed .sidebar-create-actions .sidebar-login>span{clip-path:none;white-space:normal;overflow-wrap:anywhere;width:auto;height:auto;position:static;overflow:visible}.is-collapsed .sidebar-login{text-align:center;width:100%;height:auto;min-height:44px;padding:8px 3px;font-size:11px}}.workspace-story-link .sidebar-story-cover{object-fit:cover;border-radius:6px;flex:0 0 32px;width:32px;height:44px}.workspace-story-link .sidebar-story-placeholder{background:#e2e2dc}.workspace-story-link .sidebar-story-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.sidebar-story-copy>span{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.sidebar-story-copy small{color:var(--muted);font-size:11px;font-weight:400}.workspace-sidebar:not(.is-guest):not(.is-collapsed) .workspace-sidebar-brand,.workspace-drawer-content:not(.is-guest) .workspace-sidebar-brand{justify-content:flex-start;height:64px;min-height:64px;padding:12px 44px 12px 0}.workspace-sidebar:not(.is-guest):not(.is-collapsed) .workspace-sidebar-brand .brand,.workspace-drawer-content:not(.is-guest) .workspace-sidebar-brand .brand{letter-spacing:-.5px;white-space:nowrap;flex-direction:row;gap:10px;font-size:20px}.workspace-sidebar:not(.is-guest):not(.is-collapsed) .workspace-sidebar-brand .brand img,.workspace-drawer-content:not(.is-guest) .workspace-sidebar-brand .brand img{border-radius:50%;width:36px;height:36px}.sidebar-list-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:0;display:flex}.sidebar-list-heading .sidebar-recent-label{margin:0}.sidebar-archive-toggle{background:0 0;flex:0 0 34px;width:34px;height:44px;padding:0;position:relative}.sidebar-archive-toggle:before{content:"";background:#d5d4cc;border-radius:20px;position:absolute;inset:12px 0}.sidebar-archive-toggle span{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:14px;left:2px;box-shadow:0 1px 3px #0002}.sidebar-archive-toggle[aria-checked=true]:before{background:var(--yellow)}.sidebar-archive-toggle[aria-checked=true] span{transform:translate(14px)}.is-collapsed .sidebar-list-heading{display:none}.sidebar-list-heading{border-top:1px solid #dedcd2;margin-top:12px;padding-top:8px}.sidebar-list-heading .sidebar-recent-label{border-top:0;padding-top:0;line-height:20px}.sidebar-library-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:360px;padding:32px 12px;display:flex}.sidebar-library-empty img{object-fit:contain;width:112px;height:112px}.sidebar-library-empty h3{color:var(--ink);margin:20px 0 10px;font-size:18px;line-height:1.5}.sidebar-library-empty p{max-width:240px;color:var(--muted);margin:0;font-size:13px;line-height:1.7}
dialog.reader-sheet.dialog-fullscreen{border:0;border-radius:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;position:fixed;inset:0}dialog.dialog-fullscreen[open]{flex-direction:column;display:flex}dialog.dialog-fullscreen .dialog-top{flex-shrink:0}dialog.dialog-fullscreen .dialog-body{min-height:0;padding-bottom:max(12px, env(safe-area-inset-bottom));flex-direction:column;flex:1;display:flex;overflow:hidden}.reader-navigation{align-items:center;gap:8px;display:flex}.writer-mode .margin-workspace{grid-template-columns:minmax(0,1fr)}.reader-settings-compact{display:none}.reader-compact-thumbnail{background:var(--soft);border:0;border-radius:50%;flex-shrink:0;width:44px;height:44px;padding:0}.reader-people .reader-settings-compact .person-avatar{flex-basis:44px;width:44px;height:44px;display:block}.reader-compact-group{flex-direction:column;flex-shrink:0;align-items:center;gap:8px;display:flex}.reader-compact-label{color:var(--muted);text-align:center;font-size:10px;font-weight:400;line-height:1.4}.setting-detail-card.is-inactive>img,.reader-compact-thumbnail.is-inactive>img{filter:grayscale();opacity:.55}.reader-toolbar .language-trigger{background:var(--soft);border:0;border-radius:24px}.margin-workspace>.reader-toolbar{justify-content:space-between;gap:12px;display:flex}@media (max-width:700px){.writer-mode .workspace-mobile-controls{display:none}.reader-toolbar .actions{gap:8px}.reader-toolbar .language-trigger{padding:8px 12px;font-size:12px}}.structure-save-footer{z-index:1;background:inherit;flex-shrink:0;padding:12px 0;position:relative}.structure-save-footer .button{border:0;border-radius:999px;width:100%;min-height:44px;padding:8px 16px}.structure-save-footer .icon-wrap{display:none}.reader-setting-tabs{gap:8px;margin-bottom:12px;display:flex}.reader-setting-tabs button{background:var(--soft);min-width:0;min-height:44px;color:var(--muted);border:0;border-radius:999px;flex:1;padding:10px 4px;font-size:13px}.reader-setting-tabs button[aria-selected=true]{color:var(--ink);background:var(--yellow);font-weight:600}.reader-people [role=tabpanel][hidden]{display:none}.reader-people [role=tabpanel]{overflow-wrap:anywhere}.reader-people .person-avatar{object-fit:cover;background:var(--soft);border-radius:50%;flex:0 0 48px;width:48px;height:48px}.reader-people .setting-detail-card{gap:12px;display:flex}.reader-people [role=tabpanel]>.setting-detail-card:first-child{margin-top:0}.setting-portrait{aspect-ratio:9/16;object-fit:cover;border-radius:8px;flex-shrink:0;width:44%;max-width:120px}.setting-detail-card>div{min-width:0}.setting-placeholder{background:#e2e2dc;display:block}.reader-people .setting-detail-card{align-items:stretch}.setting-card-copy{flex-direction:column;align-items:flex-start;display:flex}.setting-enabled-label{background:var(--soft);color:var(--muted);border:0;border-radius:8px;margin-top:auto;padding:5px 10px;font-size:11px;line-height:1.4}.setting-enabled-label.is-enabled{background:var(--yellow);color:var(--ink)}.setting-enabled-label:not(.is-enabled){color:#777870;background:#e2e2dc}.setting-card-copy>p{padding-bottom:12px}.setting-detail-card.is-inactive .setting-card-copy>h3,.setting-detail-card.is-inactive .setting-card-copy>p{color:#999a93}.guest-reader-prompt{border:1px solid var(--line);background:#fff;border-radius:24px;flex-direction:column;align-items:center;gap:16px;padding:20px 16px;display:flex}.guest-reader-character-viewport{min-width:0;max-width:100%;position:relative;overflow:hidden}.guest-reader-character-viewport:before,.guest-reader-character-viewport:after{content:"";z-index:1;pointer-events:none;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:linear-gradient(90deg,#fff,#0000);width:24px;position:absolute;inset-block:0;-webkit-mask-image:linear-gradient(90deg,#000,#0000);mask-image:linear-gradient(90deg,#000,#0000)}.guest-reader-character-viewport:before{left:0}.guest-reader-character-viewport:after{right:0;transform:rotate(180deg)}.guest-reader-characters{scrollbar-width:none;gap:24px;max-width:100%;padding:5px 18px;display:flex;overflow-x:auto}.guest-reader-characters::-webkit-scrollbar{display:none}.guest-reader-characters button{color:var(--muted);background:0 0;border:0;flex-direction:column;flex:0 0 80px;align-items:center;gap:8px;padding:4px 0;font-size:14px;display:flex}.guest-reader-characters img,.guest-avatar-placeholder{object-fit:cover;outline:2px solid var(--line);outline-offset:3px;background:var(--soft);border-radius:50%;place-items:center;width:64px;height:64px;display:grid}.guest-reader-characters button[aria-pressed=true]{color:var(--ink);font-weight:600}.guest-reader-characters button[aria-pressed=true] img,.guest-reader-characters button[aria-pressed=true] .guest-avatar-placeholder{outline:3px solid var(--yellow)}.guest-reader-prompt h3{white-space:nowrap;text-align:center;width:100%;min-width:0;margin:0;font-size:22px;line-height:1.4}.guest-reader-prompt h3>span{white-space:nowrap;display:inline-block}.guest-reader-prompt .guest-reader-login{background:var(--ink);color:#fff;border:0;border-radius:16px;width:100%;min-height:48px}.margin-workspace .composer:has(>.guest-reader-prompt){box-shadow:none;background:0 0;border:0;border-radius:24px;padding:0}.reader-opening-cover{float:left;aspect-ratio:9/16;object-fit:contain;border-radius:12px;width:36%;max-width:230px;height:auto;margin:0 24px 16px 0}.prose:has(.reader-opening-cover){display:flow-root}.prose section:has(.reader-opening-cover){display:flow-root}@media (max-width:700px){.reader-opening-cover{border-radius:8px;width:38%;margin:0 16px 12px 0}}.margin-workspace{grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;padding-bottom:0;overflow:hidden}.margin-workspace>.writer{height:100%;min-height:0;overflow:hidden}.margin-workspace .manuscript-scroll{scrollbar-width:none;overscroll-behavior-y:contain;flex:1 1 0;min-height:0;overflow-y:auto}.margin-workspace .manuscript-scroll::-webkit-scrollbar{display:none}.margin-workspace .composer-wrap{z-index:2;padding-bottom:max(8px, env(safe-area-inset-bottom));flex:none}.margin-workspace .reader-people{max-height:100%;overflow-y:auto}@media (max-height:700px){.guest-reader-prompt{gap:10px;padding:12px}.guest-reader-characters img,.guest-avatar-placeholder{width:44px;height:44px}.guest-reader-characters button{font-size:12px}.guest-reader-prompt h3{font-size:18px}}.margin-workspace>.reader-toolbar{z-index:10;background:var(--paper);position:sticky;top:0}.margin-workspace>.writer{position:relative}.margin-workspace .manuscript-scroll{padding-bottom:calc(var(--composer-height,280px) + 24px);scroll-padding-bottom:calc(var(--composer-height,280px) + 24px)}.margin-workspace .composer-wrap{box-shadow:none;isolation:isolate;background:0 0;position:absolute;bottom:0;left:0;right:0}.margin-workspace .composer-wrap:before{content:"";pointer-events:none;opacity:0;background:linear-gradient(to bottom, transparent, var(--paper) 100px);-webkit-backdrop-filter:blur(18px);position:absolute;inset:-64px 0 0;-webkit-mask-image:linear-gradient(#0000,#000 64px);mask-image:linear-gradient(#0000,#000 64px)}.margin-workspace .composer-wrap.has-more-content:before{opacity:1}.margin-workspace .composer-wrap>.reader-scroll-to-end{border:1px solid var(--yellow);background:var(--yellow);width:44px;height:44px;color:var(--ink);z-index:2;border-radius:50%;place-items:center;display:grid;position:absolute;top:-52px;left:50%;transform:translate(-50%);box-shadow:0 3px 12px #20251c14}.reader-scroll-to-end .ui-icon{width:24px;height:24px}@media (prefers-reduced-transparency:reduce){.margin-workspace .composer-wrap:before{-webkit-backdrop-filter:none;background:#fff}}.margin-workspace .composer{-webkit-backdrop-filter:blur(12px);background:#fffdf2e6}.margin-workspace .composer-wrap:before{z-index:0}.margin-workspace .composer-wrap>*{z-index:1;position:relative}.margin-workspace .writer-tools{flex-wrap:nowrap;gap:4px}.margin-workspace .writer-tools button,.margin-workspace .writer-tools button:last-child{isolation:isolate;min-height:44px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:8px;gap:6px;margin-left:0;padding:6px 10px;font-size:12px;font-weight:400;position:relative}.margin-workspace .writer-tools button:before{content:"";z-index:-1;background:var(--soft);border-radius:8px;position:absolute;inset:6px 0}.margin-workspace .writer-tools button .icon-wrap,.margin-workspace .writer-tools button .ui-icon{width:16px;height:16px}.margin-workspace .writer-tools button:disabled{opacity:.35}.margin-workspace .writer-tools button:not(:disabled):hover:before{background:var(--line)}.margin-workspace .read-footer{min-width:0}.margin-workspace .writer-tools{max-width:100%;overflow-x:auto}.margin-workspace .writer-tools button{flex-shrink:0}.margin-workspace .writer-tools{scrollbar-width:none}.margin-workspace .writer-tools::-webkit-scrollbar{display:none}dialog.reader-sheet{background:var(--paper);border-radius:24px;width:min(560px,100vw - 32px);max-height:88dvh;padding:0}.reader-sheet .dialog-top{z-index:2;background:var(--paper);position:sticky;top:0}.reader-sheet .sheet-save{background:var(--soft);border-radius:24px;min-height:40px;padding:8px 14px;font-weight:600}.reader-sheet .dialog-body{padding:8px 20px 24px}.reader-sheet h3{margin:20px 0 12px;font-size:15px}.reader-sheet .model-choices{gap:8px;margin:20px 0;display:grid}.reader-sheet .choice{text-align:left;background:#fff;border:0;border-radius:12px;min-height:56px;padding:16px}.reader-sheet .choice.active,.reader-sheet .active{background:var(--yellow)}.reader-sheet .model-choices .choice{justify-content:space-between;align-items:center;gap:12px;display:flex}.reader-sheet .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.reader-sheet .choice-grid .choice{text-align:center;padding:12px 6px}.reader-sheet .choice small{color:var(--muted);margin-top:4px;display:block}.reader-sheet input[type=range]{accent-color:var(--yellow);width:100%;min-height:44px}.effort-labels{color:var(--muted);justify-content:space-between;font-size:11px;display:flex}.reader-sheet .context-usage{background:var(--soft);border:0;border-radius:16px;margin-top:20px;padding:16px}.sheet-option-strip{scrollbar-width:none;gap:10px;padding-bottom:4px;display:flex;overflow-x:auto}.sheet-option-strip::-webkit-scrollbar{display:none}.ratio-choice{background:#fff;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:88px;min-height:72px;display:flex}.ratio-shape{border:1.5px solid;border-radius:3px;max-width:48px;height:22px;display:block}.style-choice{background:#fff;border-radius:12px;flex:0 0 96px;padding:0;overflow:hidden}.style-choice img{object-fit:cover;width:96px;height:112px}.style-choice span{padding:8px 4px;font-size:13px;display:block}@media (max-width:700px){dialog.reader-sheet{border-radius:24px 24px 0 0;width:100%;max-width:100%;max-height:90dvh;margin:auto 0 0}.reader-sheet .dialog-body{padding-bottom:max(24px, env(safe-area-inset-bottom))}}.image-model-cost{color:var(--muted);align-items:center;gap:5px;font-size:12px;display:inline-flex}.image-model-cost .ui-icon{width:16px;height:16px}.reader-sheet input[type=range]{appearance:none;background:0 0}.reader-sheet input[type=range]::-webkit-slider-runnable-track{background:#ddddd5;border-radius:20px;height:24px}.reader-sheet input[type=range]::-webkit-slider-thumb{appearance:none;background:#fff;border-radius:50%;width:32px;height:32px;margin-top:-4px;box-shadow:0 1px 4px #0003}.image-model-summary{align-items:center;gap:10px;min-width:0;display:flex}.image-model-preview{object-fit:cover;border-radius:6px;flex:0 0 40px;width:40px;height:52px}.reader-sheet .image-model-summary small{font-size:12px;font-weight:400;line-height:1.5}.image-model-cost{flex-shrink:0}.reader-sheet .sheet-save.sheet-generate{background:var(--yellow);color:var(--ink)}.margin-workspace .read-footer{border-top:0}.margin-workspace .manuscript{position:relative}.margin-workspace .chapter-label{margin:0;position:absolute;top:10px;right:0}.margin-workspace .prose>section:first-child>h2{margin-top:0;padding-right:90px}@media (max-width:700px){.margin-workspace .chapter-label{font-size:10px;top:8px}.margin-workspace .prose>section:first-child>h2{padding-right:72px}}.images-toolbar{z-index:5;background:var(--paper);margin-bottom:24px;position:sticky;top:0}@media (max-width:700px){.images-toolbar{margin-bottom:16px}}.dialog-fullscreen .image-detail-fullscreen{object-fit:contain;flex:1;width:100%;height:100%;min-height:0;max-height:none;margin:0 auto 16px}.dialog-fullscreen .image-detail-fullscreen+.actions{flex-shrink:0;justify-content:center}.image-preview-actions .round-button{background:var(--soft);border:0;border-radius:50%;width:44px;min-width:44px;height:44px;padding:10px}.image-preview-actions .image-delete-action{color:#b45b52;background:#f5e4e1}.margin-workspace .manuscript-archived .chapter-label{justify-content:flex-end;margin-bottom:12px;display:flex;position:static}.reader-archive-notice{flex-wrap:wrap;align-items:center;gap:4px 12px;margin-bottom:16px;display:flex}.reader-archive-notice .text-link{font:inherit;color:inherit;padding:0}.margin-workspace>.writer[hidden],.story-settings-page[hidden]{display:none}.reader-toolbar .story-settings-link{margin-left:auto}.story-settings-title{text-align:center;margin:0;font-size:18px;line-height:1.4}.margin-workspace>.story-settings-toolbar{grid-template-columns:1fr auto 1fr;display:grid}.story-settings-toolbar>:last-child{justify-self:end}.story-settings-page{grid-area:2/1;align-self:stretch;height:100%;min-height:0;display:flex;overflow:hidden}.story-settings-page>.reader-people{flex-direction:column;flex:1;width:100%;min-width:0;max-width:980px;min-height:0;margin:0 auto;display:flex;position:relative;overflow:hidden}.story-settings-page .material-sections{min-height:0;padding:20px 0 calc(104px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(104px + env(safe-area-inset-bottom));scrollbar-width:none;flex:1;overflow-y:auto}.story-settings-overview{margin-bottom:24px}.story-settings-summary{grid-template-columns:min(38%,180px) minmax(0,1fr);align-items:start;gap:20px;display:grid}.story-settings-cover{aspect-ratio:9/16;object-fit:contain;border-radius:12px;width:100%;display:block}.story-settings-copy{flex-direction:column;align-self:stretch;align-items:flex-start;min-width:0;display:flex}.story-settings-actions{gap:8px;margin-top:auto;padding-top:12px;display:flex}.story-settings-actions .round-button{border-radius:12px;width:44px;height:44px}.story-settings-copy h2{overflow-wrap:anywhere;margin:0 0 12px;font-size:clamp(20px,2.4vw,28px);line-height:1.35}.story-settings-genre{background:var(--line);max-width:100%;color:var(--muted);overflow-wrap:anywhere;border-radius:50px;padding:5px 10px;font-size:12px;display:inline-block}.story-settings-copy .story-settings-synopsis{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:12px 0 0;font-size:15px;line-height:23px;display:-webkit-box;overflow:hidden}.material-section{margin-bottom:28px}.material-section-heading{align-items:center;gap:16px;margin-bottom:12px;display:flex}.story-settings-page .material-section-heading h3{white-space:nowrap;margin:0;font-size:18px}.material-section-heading h3 span{color:var(--muted);margin-left:6px;font-size:14px;font-weight:400}.material-avatar-index{scrollbar-width:none;gap:4px;display:flex;overflow-x:auto}.material-avatar-index button{background:0 0;border:0;border-radius:50%;flex-shrink:0;width:44px;height:44px;padding:6px}.material-avatar-index .person-avatar{object-fit:cover;border-radius:50%;width:32px;height:32px}.material-avatar-index .is-inactive{filter:grayscale();opacity:.48}.material-card-track{scroll-snap-type:x mandatory;scrollbar-width:none;gap:16px;display:flex;overflow-x:auto}.story-settings-page .reader-people .setting-detail-card{scroll-snap-align:start;background:0 0;flex:0 0 300px;gap:12px;margin:0;padding:0}.story-settings-page .setting-portrait{border-radius:8px;flex-shrink:0;width:120px;height:214px}.setting-image-preview{cursor:zoom-in;background:0 0;border:0;border-radius:8px;flex:0 0 120px;align-self:flex-start;padding:0;display:block}.setting-image-preview .setting-portrait{display:block}.story-settings-page .setting-card-copy{flex:1;min-width:0;height:214px;container-type:inline-size}.story-settings-page .reader-people .setting-card-copy h3{overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex-shrink:0;max-width:100%;margin:0 0 8px;font-size:clamp(18px,12cqi,20px);line-height:1.35;display:-webkit-box;overflow:hidden}.story-settings-page .reader-people .setting-card-copy>p{-webkit-line-clamp:unset;overflow-wrap:anywhere;flex:1;width:100%;min-height:0;margin:0;padding:0;font-size:13px;line-height:1.6;display:block;position:relative;overflow:hidden;-webkit-mask-image:linear-gradient(#000 calc(100% - 28px),#0000);mask-image:linear-gradient(#000 calc(100% - 28px),#0000)}.story-settings-page .setting-card-copy>p:after{content:"";-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:none;height:28px;position:absolute;inset:auto 0 0;-webkit-mask-image:linear-gradient(#0000,#000);mask-image:linear-gradient(#0000,#000)}.setting-card-actions{flex-shrink:0;align-items:stretch;gap:8px;width:100%;margin-top:auto;padding-top:12px;display:flex}.setting-card-actions .setting-view-all{border-radius:12px;flex:0 0 44px;width:44px;height:44px}.story-settings-page .setting-enabled-label{border-radius:12px;flex:1;min-width:0;min-height:44px;margin-top:0;font-size:13px;font-weight:600}.material-description{white-space:pre-wrap;line-height:1.9}.story-background-document{overflow-wrap:anywhere;line-height:1.8}.story-background-document>:first-child{margin-top:0}.story-background-document :is(h1,h2,h3,h4,h5,h6){margin-block:1.4em .6em;line-height:1.4}.story-background-document h1{font-size:1.5em}.story-background-document h2{font-size:1.3em}.story-background-document h3{font-size:1.15em}.story-background-document p{margin-block:.8em}.story-background-document :is(ul,ol){padding-left:1.5em}.story-background-document blockquote{border-left:3px solid var(--line);color:var(--muted);margin-inline:0;padding-left:1em}.story-background-document pre{background:var(--soft);border-radius:8px;padding:12px;overflow-x:auto}.story-background-document code{background:var(--soft);font-size:.9em}.story-background-document table{border-collapse:collapse;display:block;overflow-x:auto}.story-background-document :is(th,td){border:1px solid var(--line);padding:8px 12px}.story-background-document img{max-width:100%;height:auto}.story-settings-page .structure-save-footer{padding:12px 20px max(12px, env(safe-area-inset-bottom));background:0 0;position:absolute;inset:auto 0 0}.story-settings-page .structure-save-footer:before{content:"";z-index:-1;pointer-events:none;background:linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paper) 75%, transparent) 50%, var(--paper));-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);position:absolute;inset:-32px 0 0;-webkit-mask-image:linear-gradient(#0000,#000 45%);mask-image:linear-gradient(#0000,#000 45%)}.story-settings-page .structure-save-footer .button{background:var(--ink);width:min(100%,760px);color:var(--yellow);min-height:48px;margin:auto;display:flex}@media (max-width:700px){dialog.dialog-mobile-fullscreen{border:0;border-radius:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}dialog.dialog-mobile-fullscreen[open]{flex-direction:column;display:flex}dialog.dialog-mobile-fullscreen .dialog-top{padding-top:max(var(--workspace-nav-padding), env(safe-area-inset-top));flex-shrink:0}dialog.dialog-mobile-fullscreen .dialog-body{overscroll-behavior:contain;min-height:0;padding-bottom:max(24px, env(safe-area-inset-bottom));flex:1;overflow-y:auto}.story-settings-title{font-size:14px}.story-settings-page .reader-people .setting-detail-card{flex-basis:280px}.story-settings-page .structure-save-footer{padding-inline:8px}}
.account-identity-details{flex:1;min-width:0}.account-avatar-edit{flex:0 0 64px;width:64px;height:64px;position:relative}.account-avatar-edit .mobile-profile-avatar{display:block}.account-avatar-edit .account-identity-action{box-shadow:0 0 0 2px var(--paper);opacity:.65;transition:opacity .15s;position:absolute;bottom:-3px;right:-3px}.account-avatar-edit .account-identity-action:hover,.account-avatar-edit .account-identity-action:focus-visible{opacity:1}.account-name-row,.account-id-row{align-items:center;gap:6px;display:flex}.account-name-row{transform:translateY(4px)}.account-id-row{color:var(--muted);margin-top:4px;font-size:13px}.account-id-row>span{overflow-wrap:anywhere;min-width:0}.account-identity-action{background:var(--soft);width:26px;height:26px;color:var(--muted);cursor:pointer;border:0;border-radius:50%;flex:0 0 26px;justify-content:center;align-items:center;padding:6px;display:inline-flex}.account-identity-action:hover{background:var(--soft);color:var(--ink)}.account-identity-action .icon-wrap,.account-identity-action .ui-icon{width:12px;height:12px}.profile-popup .account-grid{grid-template-columns:minmax(0,1fr);gap:26px}.profile-popup .panel{padding:20px}.profile-popup .panel:not(.wallet){box-shadow:none;background:0 0;border:0;padding:0}.profile-popup .panel:not(.wallet)>h3{color:var(--muted);margin:0 12px 10px;font-size:13px;font-weight:500}.profile-popup .panel>.list-action{border-bottom:1px solid var(--line);background:#fff;border-radius:0;min-height:58px;margin:0;padding:12px 16px;font-size:14px}.profile-popup .panel>h3+.list-action{border-radius:16px 16px 0 0}.profile-popup .panel>.list-action:last-child{border-bottom:0;border-radius:0 0 16px 16px}.profile-popup .action-label{gap:12px}.profile-popup .action-label>.icon-wrap{background:var(--paper);border-radius:7px;place-items:center;width:28px;height:28px;padding:4px;display:grid}.profile-popup [hidden]{display:none!important}dialog.reader-sheet:has(.profile-pages){width:min(580px,100vw - 32px)}.reader-sheet:has(.profile-pages) .dialog-body{padding:0}.profile-pages{min-height:0;padding:0;display:block}.profile-page-content{min-width:0;padding:0 24px 28px}.profile-inline-edit{background:0 0;border:0;flex-direction:column;margin-bottom:12px;padding:0;display:flex}.profile-inline-edit .field{border:0;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:0;font-size:13px;display:flex}.profile-inline-edit .field input{background:var(--paper);border:0;border-radius:16px;min-width:0;height:56px;min-height:56px;padding:12px 16px;font-size:18px}.profile-inline-edit>.button{border:0;border-radius:10px;align-self:flex-end;width:auto;min-width:88px;min-height:36px;margin-top:16px;padding:8px 20px;font-size:13px}@media (max-width:700px){dialog.reader-sheet:has(.profile-pages){width:100%}.profile-page-content{padding:0 18px max(24px, env(safe-area-inset-bottom))}}.account-menu{position:relative}.account-menu summary{cursor:pointer;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-menu nav{z-index:40;border:1px solid var(--line);background:#fff;border-radius:14px;min-width:180px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 12px 36px #24241d20}.account-menu nav a,.account-menu nav button{white-space:nowrap;border-radius:8px;align-items:center;gap:12px;padding:12px;font-size:14px;display:flex}.account-menu nav a:hover,.account-menu nav a:focus-visible,.account-menu nav button:not(:disabled):hover,.account-menu nav button:focus-visible{background:var(--soft)}.profile-pages[hidden]{display:none!important}.profile-popup .profile-page-content{padding-top:20px}.avatar-upload{color:var(--muted);cursor:pointer;background:0 0;border:0;flex-direction:column;align-self:center;align-items:center;gap:16px;padding:12px 8px 28px;font-size:14px;display:flex;position:relative}.avatar-upload img{object-fit:cover;border:4px solid #fff;border-radius:50%;width:112px;height:112px}.avatar-camera{background:var(--ink);color:#fff;border:3px solid #fff;border-radius:50%;place-items:center;width:34px;height:34px;display:grid;position:absolute;top:90px;left:calc(50% + 23px)}.avatar-camera svg{width:19px;height:19px}.profile-edit-card{background:#fff;border-radius:24px;padding:24px}.profile-inline-edit>.profile-bottom-save{border-radius:14px;width:100%;min-height:48px;margin-top:24px;font-size:15px}.profile-editor-page .profile-popup{width:100%}.profile-editor-page .reader-toolbar{position:relative}.profile-editor-page .profile-page-content{max-width:688px;margin:0 auto;padding-inline:0}.profile-field-heading{justify-content:space-between;align-items:center;margin-bottom:6px;font-size:15px;display:flex}.profile-field-heading small,.profile-field-hint{color:var(--muted);font-size:13px}.profile-field-hint{margin:10px 0 24px}.profile-gender{border:0;border-top:1px solid var(--line);min-width:0;margin:0;padding:22px 0 0}.profile-gender legend{float:left;width:100%;margin-bottom:14px;font-size:15px;font-weight:600}.profile-gender>div{clear:both;gap:10px;display:flex}.profile-gender button{background:var(--paper);min-width:0;min-height:46px;color:var(--ink);border:0;border-radius:14px;flex:1;font-weight:600}.profile-gender button[aria-pressed=true]{background:var(--yellow)}.avatar-upload small{color:var(--muted);font-size:12px}.account-menu nav button{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0}.account-menu nav button:disabled{opacity:.4;cursor:default}.reader-actions-menu nav button .icon-wrap{order:-1}.account-delete-challenge{color:#25251f;text-align:center;letter-spacing:8px;background:#fff5d6;border-radius:16px;margin:16px 0 24px;padding:18px 12px;font-family:monospace;font-size:32px}.account-orders-page{width:100%;max-width:800px;margin:0 auto;padding:24px}.order-history{margin-top:24px}.order-history h2{font-size:24px}.order-history article{background:var(--paper,#fffef7);border:1px solid var(--border);border-radius:16px;margin:16px 0;padding:20px!important}.order-number{overflow-wrap:anywhere;color:var(--secondary,#68685e);display:block}.order-channel-hint,.order-empty{color:var(--secondary,#68685e)}@media (max-width:700px){.account-orders-page{padding:16px}}
.reader-loading{width:100%;max-width:var(--page-max-width,1600px);min-height:calc(100dvh - 32px);margin-inline:auto;padding:24px;position:relative}.reader-loading-header{align-items:center;gap:24px;margin-bottom:24px;display:flex}.reader-loading-title{background:#e8e8e3;border-radius:4px;width:140px;height:18px}.reader-loading-paper{flex-direction:column;gap:24px;max-width:960px;margin:auto;display:flex}.reader-loading-cover{aspect-ratio:16/9;background:#e8e8e3;border-radius:12px;max-height:320px}.reader-loading-heading{background:#e8e8e3;border-radius:4px;width:150px;height:14px}.reader-loading-paragraph{gap:14px;display:grid}.reader-loading-paragraph span{background:#e8e8e3;border-radius:4px;height:18px;display:block}.reader-loading-paragraph span:last-child{width:65%}.reader-loading-composer{background:#e8e8e3;border-radius:12px;height:76px;margin-top:16px}.reader-loading-hud{pointer-events:none;background:#171714e6;border-radius:16px;place-items:center;width:88px;height:88px;margin:-88px auto 0;display:grid;position:sticky;bottom:calc(50dvh - 44px);box-shadow:0 4px 16px #0002}.reader-loading-spinner{border:3px solid #ffffff40;border-top-color:#fff;border-radius:50%;width:32px;height:32px;animation:.8s linear infinite reader-loading-spin}@keyframes reader-loading-spin{to{transform:rotate(360deg)}}@media (max-width:700px){.reader-loading{padding:16px}.reader-loading-header{margin-bottom:20px}}@media (prefers-reduced-motion:reduce){.reader-loading-spinner{border-right-color:#fff;animation:none}}
