.ow-account-gate{min-height:100dvh;display:grid;place-items:center;padding:1rem;box-sizing:border-box}.ow-account-card,.ow-account-dialog{padding:clamp(1.25rem,3vw,2.2rem);border:1px solid #565863;border-radius:1rem;background:#22232b;color:#f3efed;box-shadow:0 1rem 4rem #0005}.ow-account-card{max-width:27rem;width:100%;box-sizing:border-box}.ow-account-card>small{letter-spacing:.12em;text-transform:uppercase}.ow-account-dialog{width:min(36rem,90vw);max-height:85dvh;overflow:auto}.ow-account-dialog::backdrop{background:#101018aa}.ow-account-dialog header,.ow-account-actions,.ow-accounts form{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.ow-account-dialog header{justify-content:space-between}.ow-account-form,.ow-account-form label,.ow-accounts form label{display:grid;gap:.45rem}.ow-account-form{gap:1rem;margin:1rem 0}.ow-account-dialog input,.ow-account-card input{color:inherit;background:#181921;border:1px solid #6a6974;padding:.65rem;border-radius:.4rem;min-width:0}.ow-account-dialog details,.ow-accounts li{margin-block:.8rem}.ow-account-dialog summary{cursor:pointer}.ow-accounts ul{padding:0;list-style:none}.ow-accounts li{padding:.8rem 0;border-top:1px solid #55545d}.ow-accounts small{margin-inline-start:.65rem}.ow-accounts li p{font-size:.9em}.ow-credential{border-inline-start:.25rem solid #b6a290;padding:.6rem 1rem;margin:1rem 0}.ow-credential output{display:block;margin:.5rem 0;overflow-wrap:anywhere;font-family:monospace;-webkit-user-select:all;user-select:all}.ow-account-dialog [role=alert],.ow-account-card [role=alert]{color:#ffc2b4}.guide-main{width:min(100%,52rem);margin:0 auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:1rem;padding:clamp(14px,3vw,32px);overflow:auto}.guide-toolbar,.guide-buttons,.guide-review{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}.guide-toolbar{justify-content:space-between}.guide-toolbar label{display:flex;align-items:center;gap:.6rem;min-width:0}.guide-toolbar select{max-width:min(56vw,29rem)}.guide-log{min-height:7rem;flex:1;overflow:auto;scrollbar-gutter:stable;border-block:1px solid var(--border);padding:.8rem 0}.guide-message{padding:.6rem 0}.guide-message strong,.guide-compose small{color:var(--muted)}.guide-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:.25rem 0}.guide-compose{display:grid;gap:.6rem}.guide-review h3,.guide-review p{width:100%;margin:0}.preset-footer .guide-notice{flex:1 0 100%;margin:0;color:var(--muted)}.ow-choice-menu.branch-menu{flex-direction:column;overflow:hidden;padding:0;max-width:calc(100vw - 16px);color:var(--reader-ink)}.branch-menu:not([popover]){display:flex}.branch-menu:popover-open{display:flex}.branch-menu-header{flex:none;display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:14px 16px 11px;border-bottom:1px solid var(--border)}.branch-menu-header h2{margin:0;font:500 19px/1.25 Lora,Georgia,serif}.branch-menu-header>span,.branch-details{color:var(--ink-secondary);font-size:12px}input.branch-search{flex:none;display:block;width:calc(100% - 24px);margin:10px 12px 4px;padding:8px 11px;font:inherit;color:var(--reader-ink);background:var(--paper);border:1px solid var(--edge);border-radius:var(--ow-fields-radius, 7px)}.branch-options{position:relative;min-height:0;padding:5px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.branch-options:focus-visible{outline:none}.branch-options:focus-visible .branch-option[data-active]{outline:2px solid var(--ow-focus);outline-offset:-2px}.ow-choice-menu .branch-option[role=option]{position:relative;display:grid;justify-content:stretch;gap:3px;min-width:0;padding:9px 11px;overflow-wrap:anywhere}.branch-option+.branch-option{border-top:1px solid var(--border)}.branch-option:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}.branch-option-heading,.branch-details{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}.branch-option-heading{justify-content:space-between;color:var(--reader-ink)}.branch-option-heading strong{font-size:14px;font-weight:600}.branch-current{color:var(--accent);font-size:11px;white-space:nowrap}.branch-details{justify-content:space-between;font-variant-numeric:tabular-nums;line-height:1.45}.branch-option p.branch-excerpt,.branch-empty{margin:1px 0 0;font-size:13px;line-height:1.45;color:var(--muted)}.branch-empty{padding:12px}@media(max-width:520px){.branch-option .branch-details{display:grid;gap:1px}input.branch-search{font-size:16px}}.last-turn-cost,.wall-counter{font-variant-numeric:tabular-nums;white-space:nowrap}.debug-section,.debug-wall,.debug-changes{margin-block:0 1rem}.debug-section{background:#201a27;border:1px solid #493d50;border-radius:9px;padding:.85rem}.debug-section>summary,.debug-turn-status{color:#efe4ef;font-weight:650}.debug-section summary,.debug-change>summary,.debug-call>summary{cursor:pointer}.debug-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.6rem;margin:1rem 0}.debug-controls label,.debug-selector{display:grid;gap:.3rem;font-size:.76rem}.debug-controls form{display:flex;align-items:end;gap:.4rem}.debug-controls input{width:4.6rem}.debug-controls input,.debug-controls select,.debug-controls button,.debug-selector select{font-size:.76rem;padding:.45rem}.debug-total{display:grid;gap:.35rem;padding:.7rem .8rem;border-left:2px solid #baa0c6;background:#ffffff06}.debug-total>div{display:grid;gap:.25rem}.debug-total strong,.elapsed-total{color:#f3e6f4;font-size:1.5rem;font-weight:550;font-variant-numeric:tabular-nums}.debug-total span,.debug-total small,.debug-stats dt,.debug-caption,.debug-id,.debug-note{color:#beafc4;font-size:.73rem;line-height:1.5}.debug-total strong small{font-weight:400}.debug-caption,.debug-note{margin:.45rem 0}.debug-note{color:#ddbe91}.debug-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.7rem 0}.debug-stats dd{margin:.15rem 0;font-size:.95rem;font-variant-numeric:tabular-nums}.debug-call{padding:.55rem 0;border-top:1px solid #443848}.debug-call summary{font-size:.76rem}.debug-call summary b{float:right;margin-left:.25rem;font-variant-numeric:tabular-nums}.pricing-scroll{overflow-x:auto}.debug-price-table{width:100%;font-size:.7rem;border-collapse:collapse;font-variant-numeric:tabular-nums}.debug-price-table caption{text-align:left;padding:.4rem 0;color:#c7b9d0}.debug-price-table th,.debug-price-table td{text-align:right;padding:.36rem .12rem;border-bottom:1px solid #ffffff10}.debug-price-table th{font-weight:500}.debug-price-table th:first-child{text-align:left}.debug-id{display:block;font-size:.65rem;overflow-wrap:anywhere}.debug-wall{padding:.7rem 0;border-block:1px solid #443848}.debug-wall h4,.debug-changes h4{margin:.4rem 0 .55rem;font-size:.9rem}.debug-wall h4 small,.debug-changes h4 small{margin-left:.3rem;color:#bbabc5;font-size:.68rem;font-weight:400}.debug-milestones{margin:.7rem 0;padding:0;list-style:none}.debug-milestones li,.debug-measure{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;font-size:.74rem}.debug-milestones li{padding:.24rem 0 .24rem .7rem;border-left:2px solid #887194}.debug-milestones b,.debug-measure b{font-variant-numeric:tabular-nums;font-weight:550}.debug-measure{margin:.3rem 0;color:#bdadca}.debug-change{margin:.4rem 0;border:1px solid #473a4e;border-radius:5px;padding:.55rem .6rem}.debug-change summary small{font-size:.68rem;color:#c2a9cf}.debug-change>summary>span{display:block;font-size:.82rem;line-height:1.45;overflow-wrap:anywhere}.debug-change summary i{font-style:normal;font-size:.68rem;color:#b3c8b2}.debug-field{padding:.55rem 0;border-top:1px solid #ffffff0d;overflow-wrap:anywhere}.debug-field b{font-size:.72rem;font-weight:550}.debug-field>div{display:grid;grid-template-columns:2.8rem minmax(0,1fr);gap:.3rem;margin-top:.2rem;font-size:.76rem;line-height:1.5;white-space:pre-wrap}.debug-field>div>span{color:#bb9fa3}.debug-field>div:last-child>span{color:#adc5b1}.debug-field em{color:#baadc1}.debug-change-group h5{margin:.85rem 0 .25rem;font-size:.78rem;color:#dfd0e5}.debug-change-group h5 small{margin-left:.3rem;font-weight:400;color:#b6a7bc}.debug-impression{padding:.4rem .6rem;border-left:2px solid #887194}.debug-impression dt{font-size:.68rem;color:#bbabc5}.debug-impression dd{margin:.12rem 0 .5rem;font-size:.78rem;overflow-wrap:anywhere}.mini-shelf{min-width:0}.shelf-home{width:min(100%,68rem);padding:clamp(1.25rem,5vw,4rem);align-self:center;overflow:auto}.shelf-drawer{padding:4px 0 16px}.shelf-header,.shelf-resume,.shelf-list>li,.shelf-resume-actions,.preset-workspace-heading,.preset-footer{display:flex;gap:12px;align-items:center;justify-content:space-between}.shelf-header{flex-wrap:wrap}.shelf-header h2,.shelf-resume h3,.preset-workspace-heading h2,.preset-proof>h3,.preset-form section>h3{font-family:Lora,Georgia,serif;font-weight:400;margin:0}.shelf-header h2{font-size:clamp(26px,4vw,40px)}.shelf-drawer .shelf-header h2{font-size:24px}.shelf-tabs{display:flex;gap:16px;margin:16px 0;border-bottom:1px solid var(--border)}.shelf-tabs button{border:0;background:transparent;border-radius:0;padding:9px 0;border-bottom:2px solid transparent;color:var(--muted)}.shelf-tabs button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent)}.shelf-tabs small{margin-inline-start:3px;font-size:11px;font-variant-numeric:tabular-nums}.shelf-empty{margin:24px 0}.shelf-empty p,.shelf-preset>small,.shelf-resume small,.shelf-resume p{color:var(--muted)}.shelf-empty h3,.shelf-empty p,.shelf-preset h3{margin:0 0 6px}.shelf-resume{padding:clamp(14px,2vw,24px) 0;gap:16px;flex-wrap:wrap}.shelf-resume h3{font-size:clamp(24px,3vw,38px);overflow-wrap:anywhere}.shelf-resume p{margin:2px 0 0}.shelf-list{margin:0;padding:0;list-style:none}.shelf-list>li{min-width:0;align-items:start;border-bottom:1px solid var(--border);padding:10px 0}.shelf-list .story-link{padding:3px 0}.shelf-list .story-link[aria-current=true] strong{color:var(--accent)}.shelf-list .story-link strong{font-size:15px;white-space:normal;overflow-wrap:anywhere}.shelf-list .story-link small{font-size:12px;margin-top:3px;color:var(--muted)}.shelf-preset{min-width:0;display:grid;justify-items:start;gap:3px}.shelf-preset h3{margin:0;overflow-wrap:anywhere}.shelf-preset>button{margin-top:5px}.shelf-actions{flex:none;text-align:end}.shelf-actions summary{list-style:none;padding:4px 8px;font-size:20px;line-height:1;border-radius:6px;cursor:pointer;color:var(--muted)}.shelf-actions summary::-webkit-details-marker{display:none}.shelf-actions summary:hover,.shelf-actions[open] summary{color:inherit;background:var(--panel)}.shelf-actions>div{display:grid;gap:6px;margin-top:6px}.shelf-drawer .shelf-list>li:has(.shelf-actions[open]){flex-wrap:wrap}.shelf-drawer .shelf-list>li:has(.shelf-actions[open]) .shelf-actions{flex:1}.shelf-drawer .shelf-list>li:has(.shelf-actions[open]) .shelf-actions>div{display:flex;flex-wrap:wrap;justify-content:flex-end}.preset-workspace{color:inherit;background:#19171e;border:0;margin:0;padding:0;width:100%;max-width:none;height:100dvh;max-height:none}.preset-workspace[open]{display:flex;flex-direction:column}.preset-workspace-heading,.preset-footer{flex:none;flex-wrap:wrap;padding:14px clamp(16px,4vw,54px);background:var(--panel)}.preset-workspace-heading{border-bottom:1px solid var(--border)}.preset-workspace-heading h2{font-size:24px}.preset-footer{border-top:1px solid var(--border);padding-bottom:max(14px,env(safe-area-inset-bottom))}.preset-footer .check{margin:0}.preset-footer small{margin-inline-start:auto;color:var(--muted)}.preset-footer .error-text{flex:1 0 100%;margin:0;overflow-wrap:anywhere}.preset-pages{flex:1;min-height:0;width:min(100%,90rem);margin:auto;display:grid;grid-template-columns:138px minmax(0,1.2fr) minmax(0,.85fr)}.preset-outline{padding:24px 14px;display:flex;flex-direction:column;align-items:stretch;gap:4px}.preset-outline button{background:transparent;color:var(--muted);text-align:start;border-color:transparent;padding:8px}.preset-outline button:hover,.preset-outline button:focus-visible{color:inherit;background:var(--panel)}.preset-form,.preset-proof{min-height:0;overflow:auto;padding:clamp(18px,3vw,44px);overflow-wrap:anywhere;scrollbar-gutter:stable}.preset-form{border-inline:1px solid var(--border)}.preset-edit-fields{margin:0;padding:0;border:0;min-width:0}.preset-form section{margin-bottom:34px}.preset-form section>h3{font-size:23px;margin:0 0 19px;scroll-margin-top:18px}.preset-form details{padding:8px 0;border-top:1px solid var(--border)}.preset-form details>summary{cursor:pointer;margin-bottom:8px}.preset-form details>summary button{margin-inline-start:8px}.preset-proof{background:#1c1a21}.preset-proof>small,.preset-proof>time{display:block;color:var(--muted)}.preset-proof>h3{font-size:clamp(25px,3vw,35px);line-height:1.16;margin:20px 0 8px}.preset-proof>time{font-size:12px;margin-bottom:24px}.preset-proof-text{min-width:0;margin:0;padding:0;border:0}.preset-proof-text button:disabled{opacity:1;cursor:default}.preset-view-switch{display:none}@media(max-width:860px){.preset-pages{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-rows:auto minmax(0,1fr)}.preset-outline{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;padding:5px 10px;border-bottom:1px solid var(--border)}}@media(max-width:650px){.preset-view-switch{display:flex;justify-content:center;gap:6px;padding:6px}.preset-view-switch button{font-size:13px;padding:6px 12px;background:transparent;border-color:transparent}.preset-view-switch button[aria-pressed=true]{background:var(--panel);border-color:var(--border)}.preset-pages{grid-template-columns:1fr}.preset-pages .preset-proof{display:none}.preset-pages.show-preview{grid-template-rows:minmax(0,1fr)}.preset-pages.show-preview .preset-proof{display:block}.preset-pages.show-preview .preset-form,.preset-pages.show-preview .preset-outline{display:none}.preset-form{border:0}.preset-outline{gap:0}.preset-outline button{font-size:12px;padding:6px 8px}.preset-footer{gap:8px}.preset-footer small{display:none}.preset-form .two-cols{grid-template-columns:1fr;gap:0}}@media(pointer:coarse){.mini-shelf summary,.mini-shelf button,.preset-workspace button,.preset-workspace summary{min-height:44px}.preset-workspace .field input,.preset-workspace .field textarea,.preset-workspace select{font-size:16px}}.shelf-drawer .shelf-resume{display:block;padding:8px 0 18px}.shelf-drawer .shelf-resume h3{font-size:19px}.shelf-drawer .shelf-resume-actions{margin-top:9px}
