:root{color:#102f2b;background:#fff8ea;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;font-synthesis:none;line-height:1.5;letter-spacing:0;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--paper: #fff8ea;--porcelain: #fffcf6;--surface: #ffffff;--ink: #102f2b;--muted: #526661;--line: #d9e3dc;--teal: #0b7c78;--teal-dark: #075d59;--teal-soft: #d9f0ec;--rose: #c85a6a;--rose-dark: #9b3146;--rose-soft: #f8dfe3;--sage-soft: #e4eedc;--sky: #d8ecf5;--marigold: #f0b83c;--marigold-soft: #fff1c9;--marigold-dark: #8a5a00;--shadow: 0 16px 44px rgba(16, 47, 43, .12);--shadow-soft: 0 12px 30px rgba(16, 47, 43, .08)}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit;letter-spacing:0}button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:.5rem;border:1px solid transparent;border-radius:8px;padding:.65rem 1rem;background:var(--teal);color:#fff;font-weight:700;cursor:pointer}button:hover:not(:disabled),button:focus-visible:not(:disabled){background:var(--teal-dark)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--marigold);outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.42}img{display:block;max-width:100%}.gate-screen{display:grid;min-height:100vh;place-items:center;padding:1.5rem;background:linear-gradient(180deg,#d8ecf5b8,#d9f0ec94),var(--paper)}.gate-card{width:min(100%,520px);border:1px solid var(--line);border-radius:8px;padding:2rem;background:var(--porcelain);box-shadow:var(--shadow)}.gate-brand-mark{display:block;width:64px;height:64px;object-fit:contain}.gate-brand-mark.is-loading{position:relative;width:72px;height:72px}.gate-brand-mark.is-loading img{width:64px;height:64px}.gate-spinner{position:absolute;right:0;bottom:0;color:var(--teal)}.brand-header{display:grid;min-width:0;gap:.45rem}.brand-header-logo{display:block;width:min(18rem,64vw);height:auto}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gate-card h1,.top-bar h1,.reader-title h1{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-weight:600;font-size:2rem;line-height:1.1}.gate-card h1{margin-top:1rem;margin-bottom:1.5rem}.auth-flow-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;border:1px solid var(--line);border-radius:8px;padding:.25rem;background:var(--surface)}.auth-flow-toggle button{min-height:38px;border-color:transparent;padding:.45rem .65rem;background:transparent;color:var(--muted)}.auth-flow-toggle button[aria-pressed=true]{background:var(--teal-soft);color:var(--teal-dark)}.auth-flow-toggle button:hover:not(:disabled),.auth-flow-toggle button:focus-visible:not(:disabled){background:var(--teal-soft);color:var(--teal-dark)}.gate-card label{display:block;margin-top:.9rem;margin-bottom:.5rem;color:var(--muted);font-weight:700}.gate-card>input{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:.6rem .75rem;color:var(--ink);background:var(--surface)}.setup-panel{display:grid;width:min(100%,560px);gap:.85rem;border:1px solid var(--line);border-radius:8px;padding:1.25rem;background:var(--porcelain);box-shadow:var(--shadow-soft)}.setup-panel h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-weight:600;font-size:1.45rem;line-height:1.2}.setup-panel label{color:var(--muted);font-weight:700}.setup-panel input{min-width:0;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:.6rem .75rem;color:var(--ink);background:var(--surface)}.gate-card>button{width:100%;margin-top:1rem}.gate-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem}.gate-input-row input{min-width:0;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:.6rem .75rem;color:var(--ink);background:var(--surface)}.gate-input-row input[aria-invalid=true]{border-color:var(--rose)}.form-error{margin:.75rem 0 0;color:var(--rose-dark);font-weight:700}.form-success{margin:0;color:var(--teal);font-weight:700}.app-shell,.reader-shell{width:min(1180px,calc(100% - 2rem));margin:0 auto;padding:1.5rem 0 2.5rem}.top-bar,.reader-top-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0 1.5rem}.reader-top-bar{display:grid;grid-template-columns:minmax(0,1fr) auto}.reader-title{min-width:0;text-align:left}.reader-title>p:last-child{margin:.4rem 0 0;color:var(--muted)}.eyebrow{margin:0 0 .35rem;color:var(--rose-dark);font-size:.78rem;font-weight:800;text-transform:uppercase}.secondary-button{border-color:var(--line);background:var(--surface);color:var(--teal)}.secondary-button:hover:not(:disabled),.secondary-button:focus-visible:not(:disabled){border-color:var(--teal);background:var(--teal-soft)}.book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.book-card{display:grid;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow-soft)}.book-card img{width:100%;aspect-ratio:3 / 2;object-fit:cover;background:var(--sky)}.book-card-copy{display:grid;gap:.85rem;padding:1rem}.book-card-copy h2,.empty-state h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-weight:600;font-size:1.35rem;line-height:1.2}.book-card-copy p{margin:0;color:var(--muted)}.book-card-footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;color:var(--teal);font-weight:800}.empty-state{display:grid;min-height:280px;place-items:center;border:1px dashed #a9c9c3;border-radius:8px;color:var(--muted);text-align:center}.empty-state-mark{width:88px;height:88px;object-fit:contain}.one-question-shell{display:grid;width:min(100%,430px);min-height:100svh;margin:0 auto;gap:.62rem;padding:.95rem 1rem 5.85rem;background:var(--paper)}.one-question-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.one-question-logo{display:block;width:min(12.5rem,60vw);height:auto}.one-question-header-actions{display:inline-flex;align-items:center;gap:.45rem}.one-question-header-actions button{min-width:44px;border-color:transparent;padding:.35rem;background:transparent;color:var(--ink)}.one-question-header-actions button:hover:not(:disabled),.one-question-header-actions button:focus-visible:not(:disabled){background:var(--teal-soft)}.one-question-popover{display:grid;gap:.35rem;border:1px solid var(--line);border-radius:8px;padding:.65rem .75rem;background:var(--porcelain);box-shadow:var(--shadow-soft)}.one-question-popover strong{color:var(--ink)}.one-question-popover p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.35}.one-question-popover button{width:fit-content;min-height:2.2rem;justify-self:start;padding:.35rem .65rem;background:var(--teal)}.one-question-progress{display:grid;grid-template-columns:auto repeat(7,minmax(0,1fr));gap:.45rem;align-items:center}.progress-count{display:inline-flex;min-width:3.75rem;align-items:center;gap:.55rem;color:var(--ink);font-weight:800}.progress-count strong{display:grid;width:1.9rem;height:1.9rem;place-items:center;border-radius:999px;background:var(--teal);color:#fff;font-size:.96rem;line-height:1}.progress-count span{font-size:.88rem}.progress-track{height:.24rem;border-radius:999px;background:#e9dfd3}.progress-track.is-current{background:var(--teal)}.one-question-intro{display:grid;gap:.55rem}.one-question-intro h2,.one-question-preview h4{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-weight:600;letter-spacing:0}.one-question-intro h2{font-size:clamp(1.88rem,8.5vw,2.25rem);line-height:1.05}.one-question-intro p,.one-question-preview>p,.one-question-trust p{margin:0;color:var(--muted)}.one-question-intro p{font-size:.78rem;line-height:1.28}.one-question-protagonist-card{display:grid;grid-template-columns:4.7rem minmax(0,1fr);gap:.6rem;align-items:center;border:1px solid #b8d7d2;border-radius:8px;padding:.6rem;background:linear-gradient(180deg,#d9f0ecbd,#fffcf6db);box-shadow:var(--shadow-soft)}.one-question-avatar{width:4.7rem;height:4.7rem;border-radius:999px;object-fit:cover}.one-question-protagonist-fields{display:grid;min-width:0;gap:.35rem}.one-question-protagonist-fields label{color:var(--ink);font-size:.78rem;font-weight:800}.one-question-protagonist-fields input{width:100%;min-width:0;min-height:2.4rem;border:1px solid #b9c3bd;border-radius:8px;padding:.75rem .85rem;background:var(--surface);color:var(--ink);font-size:1rem}.one-question-profile-details{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:.45rem}.one-question-profile-details label{display:grid;gap:.25rem}.one-question-profile-details select{width:100%;min-height:2.4rem;border:1px solid #b9c3bd;border-radius:8px;padding:.55rem .7rem;background:var(--surface);color:var(--ink);font:inherit}.one-question-stereotype-note{margin:0;border-radius:8px;padding:.42rem .5rem;background:var(--sky);color:var(--sky-dark);font-size:.66rem;line-height:1.3}.one-question-upload{width:100%;min-height:2.3rem;border-color:var(--teal);background:var(--surface);color:var(--teal-dark);font-size:.84rem;white-space:nowrap}.one-question-upload:hover:not(:disabled),.one-question-upload:focus-visible:not(:disabled){background:var(--teal-soft)}.one-question-upload.is-complete{background:var(--sage-soft)}.one-question-trust{display:grid;grid-column:1 / -1;grid-template-columns:auto minmax(0,1fr);gap:.55rem;align-items:center;padding-top:.2rem}.one-question-trust svg{width:1.5rem;height:1.5rem;color:var(--teal-dark)}.one-question-trust p{font-size:.68rem;line-height:1.28}.one-question-preview{display:grid;gap:.6rem}.one-question-preview h3{margin:0;color:var(--ink);font-size:.94rem;font-weight:850}.one-question-preview img{width:100%;height:16.2rem;overflow:hidden;border-radius:8px;object-fit:cover;object-position:center bottom;box-shadow:var(--shadow-soft)}.one-question-preview-meta{display:grid;grid-template-columns:minmax(0,.55fr) minmax(0,1.45fr);gap:.5rem}.one-question-preview-meta label{display:inline-flex;min-width:0;min-height:3.25rem;align-items:center;justify-content:center;gap:.5rem;border-color:var(--line);border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--teal-dark);font-size:.8rem;font-weight:700;box-shadow:none}.one-question-preview-meta label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.one-question-preview-meta select{min-width:0;border:0;padding:.25rem .2rem;background:transparent;color:var(--teal-dark);font:inherit}.one-question-preview>p{font-size:.88rem}.one-question-sticky-action{position:fixed;right:0;bottom:0;left:0;z-index:10;display:grid;justify-items:center;padding:.55rem 1rem .75rem;background:#fff8eaeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.one-question-sticky-action button{display:grid;width:min(100%,396px);min-height:3.7rem;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center;border-color:transparent;padding:.6rem 1rem;background:var(--teal);box-shadow:0 14px 34px #102f2b33}.one-question-sticky-action button:hover:not(:disabled),.one-question-sticky-action button:focus-visible:not(:disabled){background:var(--teal-dark)}.one-question-sticky-action button>span{display:grid;gap:.25rem;text-align:center}.one-question-sticky-action strong{font-size:1.05rem;line-height:1.2}.one-question-sticky-action small{display:inline-flex;justify-content:center;gap:.45rem;color:#ffffffeb;font-size:.78rem;font-weight:700}.starter-studio-shell{display:grid;width:min(100%,430px);min-height:100svh;margin:0 auto;gap:.38rem;padding:.7rem 1rem 5.45rem;background:var(--paper)}.starter-studio-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.starter-studio-logo{width:min(11.6rem,54vw);height:auto}.starter-studio-header-actions{display:inline-flex;align-items:center;gap:.45rem}.starter-studio-header-actions button{min-width:2.4rem;min-height:2.4rem;border-color:transparent;padding:.25rem;background:transparent;color:var(--ink)}.starter-studio-header-actions button:hover:not(:disabled),.starter-studio-header-actions button:focus-visible:not(:disabled){background:var(--teal-soft)}.starter-studio-header-actions button[aria-label=Help] svg{width:1.15rem;height:1.15rem}.starter-studio-header-actions button[aria-label=Menu] svg{width:1.35rem;height:1.35rem}.starter-studio-header-actions button[aria-label="Sign out"] svg{width:1.1rem;height:1.1rem}.starter-studio-popover{display:grid;gap:.35rem;border:1px solid var(--line);border-radius:8px;padding:.65rem .75rem;background:var(--porcelain);box-shadow:var(--shadow-soft)}.starter-studio-popover strong{color:var(--ink)}.starter-studio-popover p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.35}.starter-studio-popover button{width:fit-content;min-height:2.2rem;justify-self:start;padding:.35rem .65rem}.starter-studio-progress{display:grid;grid-template-columns:auto repeat(6,auto minmax(0,1fr)) auto;gap:.42rem;align-items:center;padding:.08rem .2rem 0}.step-five-progress,.step-six-progress,.step-seven-progress{margin-bottom:.35rem}.manuscript-onboarding-intro{margin-bottom:1rem}.starter-studio-progress-count{color:var(--teal);font-size:.86rem;font-weight:850;white-space:nowrap}.starter-studio-progress-step{display:grid;width:1.5rem;min-width:1.5rem;height:1.5rem;min-height:1.5rem;place-items:center;border:1px solid #e7dcca;border-radius:999px;padding:0;background:var(--porcelain);color:var(--muted);font-weight:800;line-height:1;box-shadow:none;text-decoration:none}.starter-studio-progress-step.is-complete,.starter-studio-progress-step.is-current{border-color:var(--teal);background:var(--teal);color:#fff}.starter-studio-progress-step svg{width:.98rem;height:.98rem}.starter-studio-progress-step.is-complete:hover,.starter-studio-progress-step.is-complete:focus-visible{border-color:var(--teal-dark);background:var(--teal-dark);color:#fff;transform:translateY(-1px)}.starter-studio-progress-step.is-static:hover{border-color:var(--teal);background:var(--teal);transform:none}.saved-direction-next-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.75rem;align-items:center;margin:.9rem 0 1.25rem;border:1px solid #badbd5;border-radius:10px;padding:.85rem;background:var(--teal-soft)}.saved-direction-next-step>svg{color:var(--teal-dark)}.saved-direction-next-step strong{color:var(--ink)}.saved-direction-next-step p{margin:.2rem 0 0;color:var(--muted);font-size:.88rem;line-height:1.4}.saved-direction-next-step .primary-link-button{white-space:nowrap}.saved-direction-meta{display:flex;flex-wrap:wrap;gap:.3rem .45rem;align-items:center;margin-top:.8rem;color:var(--ink-muted);font-size:.86rem}.saved-direction-meta span:first-child{color:var(--teal-dark);font-weight:800}.saved-direction-checkpoint{scroll-margin-top:1rem}.starter-studio-progress-line{height:.13rem;border-radius:999px;background:#e9dfd3}.starter-studio-progress-line.is-complete{background:var(--teal)}.starter-studio-protagonist-summary{display:grid;grid-template-columns:3.35rem minmax(0,1fr) auto;gap:.52rem;align-items:center;border:1px solid #eadfce;border-radius:8px;padding:.35rem .55rem;background:var(--porcelain);box-shadow:var(--shadow-soft)}.starter-studio-protagonist-summary img{width:3.35rem;height:3.35rem;border-radius:999px;object-fit:cover}.starter-studio-protagonist-summary h2{margin:0;color:var(--ink);font-size:.92rem;font-weight:850;line-height:1.18}.starter-studio-protagonist-summary p{display:flex;flex-wrap:wrap;align-items:center;gap:.26rem;margin:.12rem 0 0;color:var(--muted);font-size:.62rem;font-weight:650}.starter-studio-protagonist-summary p svg{width:.74rem;height:.74rem;color:var(--ink)}.starter-studio-protagonist-summary button{min-height:2rem;padding:.25rem 0;border-color:transparent;background:transparent;color:var(--teal-dark);font-size:.76rem}.starter-studio-protagonist-summary button:hover:not(:disabled),.starter-studio-protagonist-summary button:focus-visible:not(:disabled){background:transparent;color:var(--teal)}.starter-studio-intro{display:grid;gap:.18rem;padding-top:.08rem}.starter-studio-title-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem;align-items:center}.starter-studio-title-row svg{width:1.14rem;height:1.14rem;color:#f6a900}.starter-studio-intro h1,.starter-studio-live-preview h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-weight:600;line-height:1.05;letter-spacing:0}.starter-studio-intro h1{font-size:clamp(1.68rem,7vw,1.86rem)}.starter-studio-intro p{margin:0;color:var(--muted);font-size:.68rem;line-height:1.25}.starter-studio-list,.starter-studio-custom,.starter-studio-live-preview,.starter-studio-accordions article{border:1px solid #eadfce;border-radius:8px;background:var(--porcelain);box-shadow:var(--shadow-soft)}.starter-studio-list{overflow:hidden}.starter-studio-starter{display:grid;width:100%;min-height:3.6rem;grid-template-columns:2.52rem minmax(0,1fr) auto;gap:.55rem;align-items:center;justify-content:stretch;border:0;border-radius:0;padding:.36rem .68rem;background:transparent;color:var(--ink);text-align:left;box-shadow:none}.starter-studio-starter+.starter-studio-starter{border-top:1px solid #eadfce}.starter-studio-starter:hover:not(:disabled),.starter-studio-starter:focus-visible:not(:disabled){background:#fffaf0}.starter-studio-starter.is-selected{background:#fffaf0}.starter-studio-starter img{width:2.52rem;height:2.52rem;border-radius:8px;object-fit:cover}.starter-studio-custom-icon{display:grid;width:2.52rem;height:2.52rem;place-items:center;border-radius:8px;background:var(--sky);color:var(--teal-dark)}.starter-studio-starter span{display:grid;min-width:0;gap:.05rem}.starter-studio-starter small{overflow:hidden;color:var(--muted);font-size:.58rem;font-weight:750;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.starter-studio-starter strong{overflow:hidden;color:var(--rose-dark);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:.9rem;font-weight:600;line-height:1.08;text-overflow:ellipsis;white-space:nowrap}.starter-studio-starter>svg{width:1.22rem;height:1.22rem;color:var(--ink)}.starter-studio-selected-icon{width:1.08rem;height:1.08rem;color:var(--teal)}.starter-studio-custom{display:grid;gap:.2rem;padding:.34rem .65rem .4rem}.starter-studio-family-origin{display:grid;gap:.35rem;border:1px solid var(--line);border-radius:8px;padding:.65rem;background:var(--teal-soft)}.starter-studio-family-origin label{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;color:var(--teal-dark);font-size:.78rem;font-weight:800}.starter-studio-family-origin label small{font-size:.65rem}.starter-studio-family-origin textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:.55rem;background:#fff;color:var(--ink);font:inherit}.starter-studio-family-origin p{margin:0;color:var(--teal-dark);font-size:.68rem}.starter-studio-textbox{position:relative}.starter-studio-textbox textarea{display:block;width:100%;height:3.25rem;min-height:0;resize:none;border:1px solid #c7d0cb;border-radius:8px;padding:.42rem .6rem 1rem;background:#fff;color:var(--muted);font-size:.74rem;line-height:1.26}.starter-studio-textbox span{position:absolute;right:.72rem;bottom:.45rem;color:var(--muted);font-size:.64rem}.starter-studio-ai-note{display:inline-flex;align-items:center;gap:.5rem;min-height:1.72rem;margin:0;border-radius:8px;padding:.22rem .55rem;background:var(--sky);color:var(--teal-dark);font-size:.66rem;font-weight:800}.starter-studio-ai-note svg{flex:0 0 auto}.starter-studio-live-preview{display:grid;grid-template-columns:minmax(0,.32fr) minmax(0,.68fr);overflow:hidden;min-height:8.5rem}.starter-studio-live-preview>div{display:grid;align-content:center;gap:.34rem;min-width:0;padding:.5rem .62rem}.starter-studio-preview-badge{display:inline-flex;width:fit-content;align-items:center;gap:.35rem;margin:0;border-radius:999px;padding:.22rem .48rem;background:var(--marigold-soft);color:var(--marigold-dark);font-size:.58rem;font-weight:850;white-space:nowrap}.starter-studio-live-preview h2{font-size:1rem}.starter-studio-live-preview>div>p:not(.starter-studio-preview-badge){margin:0;color:var(--muted);font-size:.62rem;line-height:1.28}.starter-studio-live-preview img{width:100%;height:100%;min-height:8.5rem;object-fit:cover}@media(max-width:480px){.starter-studio-live-preview{grid-template-columns:minmax(8.4rem,.42fr) minmax(0,.58fr);min-height:10.5rem}.starter-studio-live-preview>div{align-content:start;padding:.65rem}.starter-studio-live-preview h2{font-size:clamp(.92rem,4.7vw,1.12rem);overflow-wrap:anywhere}.starter-studio-live-preview img{min-height:10.5rem}}.starter-studio-accordions{display:grid;gap:.2rem}.starter-studio-accordions article{overflow:hidden}.starter-studio-accordions button{display:grid;width:100%;min-height:2.7rem;grid-template-columns:auto minmax(0,1fr) auto;gap:.55rem;align-items:center;justify-content:stretch;border:0;border-radius:0;padding:.36rem .68rem;background:transparent;color:var(--ink);text-align:left}.starter-studio-accordions button:hover:not(:disabled),.starter-studio-accordions button:focus-visible:not(:disabled){background:#fffaf0}.starter-studio-accordions button>svg:first-child{color:var(--teal)}.starter-studio-accordions button>svg:last-child{justify-self:end;color:var(--ink)}.starter-studio-accordions span{display:grid;min-width:0;color:var(--muted);font-size:.62rem;font-weight:650;line-height:1.2}.starter-studio-accordions strong{display:flex;min-width:0;align-items:center;gap:.38rem;color:var(--ink);font-size:.8rem;font-weight:850}.starter-studio-accordions small{border-radius:8px;padding:.12rem .34rem;background:var(--teal-soft);color:var(--teal-dark);font-size:.56rem;font-weight:750}.starter-studio-accordions article:last-child small{background:var(--sage-soft);color:#4f772d}.starter-studio-accordion-detail{margin:0;border-top:1px solid #eadfce;padding:.45rem .75rem .65rem 3.55rem;color:var(--muted);font-size:.78rem;line-height:1.35}.starter-studio-accordion-detail p{margin:0 0 .5rem}.starter-studio-accordion-detail>button{display:inline-flex;width:auto;min-height:2.3rem;margin-top:.35rem;border:1px solid var(--line);border-radius:8px;padding:.42rem .62rem;background:var(--porcelain);color:var(--ink);font-size:.76rem;font-weight:800;text-align:center}.guide-input-row{display:grid;gap:.32rem;margin-top:.45rem}.guide-input-row label{color:var(--ink);font-size:.68rem;font-weight:800}.guide-input-row input{width:100%;min-height:2.4rem;border:1px solid var(--line);border-radius:8px;padding:.5rem .62rem;background:var(--white);color:var(--ink);font:inherit}.starter-studio-sticky-action{position:fixed;right:0;bottom:0;left:0;z-index:10;display:grid;justify-items:center;padding:.42rem 1rem .55rem;background:#fff8eaeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.starter-studio-sticky-action button{display:grid;width:min(100%,398px);min-height:3.1rem;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center;border-color:transparent;padding:.42rem .82rem;background:var(--teal);box-shadow:0 14px 34px #102f2b33}.starter-studio-sticky-action button:hover:not(:disabled),.starter-studio-sticky-action button:focus-visible:not(:disabled){background:var(--teal-dark)}.starter-studio-sticky-action button>span{display:grid;gap:.16rem;text-align:center}.starter-studio-sticky-action strong{font-size:.94rem;line-height:1.12}.starter-studio-sticky-action small{display:inline-flex;justify-content:center;gap:.35rem;color:#ffffffeb;font-size:.58rem;font-weight:700;white-space:nowrap}.starter-studio-sticky-action button>svg{width:1.25rem;height:1.25rem}.starter-studio-sticky-action small svg{width:.76rem;height:.76rem}.preview-roadmap-shell{display:grid;width:min(100%,430px);min-height:100svh;margin:0 auto;gap:.34rem;padding:.75rem 1.35rem 5.2rem;background:var(--paper)}.preview-roadmap-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.preview-roadmap-logo{width:min(10rem,52vw);height:auto}.preview-roadmap-header-actions{display:inline-flex;align-items:center;gap:.42rem}.preview-roadmap-header-actions button{min-width:2rem;min-height:2rem;border-color:transparent;padding:.25rem;background:transparent;color:var(--ink)}.preview-roadmap-header-actions button:hover:not(:disabled),.preview-roadmap-header-actions button:focus-visible:not(:disabled){background:var(--teal-soft)}.preview-roadmap-header-actions button[aria-label=Help] svg{width:1.05rem;height:1.05rem}.preview-roadmap-header-actions button[aria-label=Menu] svg{width:1.25rem;height:1.25rem}.preview-roadmap-header-actions button[aria-label="Sign out"] svg{width:1.05rem;height:1.05rem}.preview-roadmap-popover{display:grid;gap:.4rem;border:1px solid var(--line);border-radius:8px;padding:.65rem .75rem;background:var(--porcelain);box-shadow:var(--shadow-soft)}.preview-roadmap-popover strong{color:var(--ink)}.preview-roadmap-popover p{margin:0;color:var(--muted);font-size:.78rem;line-height:1.35}.preview-roadmap-popover>div{display:flex;flex-wrap:wrap;gap:.45rem}.preview-roadmap-popover button{min-height:2.15rem;padding:.35rem .6rem}.preview-roadmap-kicker{display:inline-flex;align-items:center;gap:.42rem;padding-top:.05rem;color:var(--teal-dark);font-size:.82rem;font-weight:850}.preview-roadmap-progress{margin-top:.05rem}.preview-roadmap-kicker svg{width:1.28rem;height:1.28rem;border-radius:999px;background:var(--marigold);color:#fff}.preview-roadmap-intro{display:grid;gap:.16rem}.preview-roadmap-intro h1,.preview-roadmap-summary h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-weight:600;letter-spacing:0}.preview-roadmap-intro h1{font-size:1.36rem;line-height:1.04}.preview-roadmap-intro p{margin:0;color:var(--muted);font-size:.74rem;line-height:1.28}.preview-roadmap-cover{position:relative;overflow:hidden;border-radius:8px;box-shadow:var(--shadow-soft)}.preview-roadmap-cover img{width:100%;height:12.85rem;border-radius:8px;object-fit:cover;object-position:center bottom}.preview-roadmap-cover:after{position:absolute;inset:0;content:"";background:linear-gradient(180deg,transparent 28%,rgb(15 35 42 / 82%) 100%);pointer-events:none}.preview-roadmap-cover-title{position:absolute;z-index:1;right:1rem;bottom:1rem;left:1rem;color:#fffdf8;text-shadow:0 2px 12px rgb(10 30 37 / 55%)}.preview-roadmap-cover-title span{display:block;margin-bottom:.2rem;font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.preview-roadmap-cover-title strong{display:block;max-width:28ch;margin:0;color:inherit;font-family:var(--font-heading);font-size:clamp(1.3rem,4vw,2rem);line-height:1.04}.preview-roadmap-checklist{display:grid;gap:0}.preview-roadmap-check-row{display:grid;min-height:2.2rem;grid-template-columns:1.85rem minmax(5.3rem,.64fr) minmax(0,1fr) auto;gap:.45rem;align-items:center;border-bottom:1px solid #e2d7c9}.preview-roadmap-check-row>span{display:grid;width:1.55rem;height:1.55rem;place-items:center;border-radius:999px;background:var(--sage-soft);color:var(--ink)}.preview-roadmap-check-row strong{color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:.84rem;font-weight:600;line-height:1}.preview-roadmap-check-row p{overflow:hidden;margin:0;color:var(--muted);font-size:.76rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.preview-roadmap-check-row>svg{width:1.02rem;height:1.02rem;color:var(--teal)}.preview-roadmap-summary{display:grid;gap:.08rem;border:1px solid #e7ded2;border-left:.18rem solid #b8e4dc;border-radius:8px;padding:.42rem .6rem;background:var(--porcelain);box-shadow:var(--shadow-soft)}.preview-roadmap-summary p,.preview-roadmap-pages h2{margin:0;color:var(--teal-dark);font-size:.62rem;font-weight:850;letter-spacing:.02em;text-transform:uppercase}.preview-roadmap-summary h2{font-size:1.17rem;line-height:1.05}.preview-roadmap-summary span{color:var(--muted);font-size:.72rem;line-height:1.22}.preview-roadmap-pages{display:grid;gap:.28rem}.preview-roadmap-page-list{overflow:hidden;border:1px solid #e7ded2;border-radius:8px;background:var(--porcelain);box-shadow:var(--shadow-soft)}.preview-roadmap-page{display:grid;grid-template-columns:4.9rem minmax(0,1fr);gap:.55rem;align-items:center;padding:.25rem}.preview-roadmap-page+.preview-roadmap-page{border-top:1px solid #e7ded2}.preview-roadmap-page.is-compact{grid-template-columns:minmax(0,1fr);padding:.48rem .58rem;content-visibility:auto;contain-intrinsic-size:auto 4.5rem}.preview-roadmap-page img{width:4.9rem;height:3.55rem;border-radius:6px;object-fit:cover}.preview-roadmap-page div{display:grid;min-width:0;gap:.18rem}.preview-roadmap-page p{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.42rem;align-items:start;margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:.68rem;line-height:1.12}.preview-roadmap-page p span{border-radius:8px;padding:.14rem .32rem;background:var(--sky);color:var(--sky-dark, #27627b);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.6rem;font-weight:800;white-space:nowrap}.preview-roadmap-page p strong{font-weight:700}.preview-roadmap-page small{color:var(--muted);font-size:.62rem;line-height:1.16}.preview-roadmap-page small b{color:var(--teal)}.preview-roadmap-trust{display:grid;min-height:2.45rem;grid-template-columns:auto minmax(0,1fr);gap:.55rem;align-items:center;border:1px solid #dce3d0;border-radius:8px;padding:.42rem .65rem;background:#f3f6e8}.preview-roadmap-trust svg{color:#4f772d}.preview-roadmap-trust p{margin:0;color:var(--muted);font-size:.68rem;line-height:1.18}.preview-roadmap-sticky-action{position:fixed;right:0;bottom:0;left:0;z-index:10;display:grid;justify-items:center;padding:.38rem 1rem .52rem;background:#fff8eaeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.preview-roadmap-sticky-action button{display:grid;width:min(100%,346px);min-height:2.86rem;grid-template-columns:auto minmax(0,1fr);gap:.75rem;align-items:center;padding:.42rem .82rem;background:var(--teal);box-shadow:0 14px 34px #102f2b33}.preview-roadmap-sticky-action button:hover:not(:disabled),.preview-roadmap-sticky-action button:focus-visible:not(:disabled),.preview-roadmap-sticky-action button.is-approved{background:var(--teal-dark)}.preview-roadmap-sticky-action button>svg{justify-self:end}.preview-roadmap-sticky-action span{display:grid;gap:.1rem;text-align:center}.preview-roadmap-sticky-action strong{font-size:.82rem;line-height:1.15}.preview-roadmap-sticky-action small{color:#ffffffeb;font-size:.6rem;font-weight:650}.onboarding-shell{width:min(1180px,calc(100% - 2rem));margin:0 auto;padding:1.25rem 0 2.5rem}.onboarding-top-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0 1.25rem}.onboarding-status-pill{display:inline-flex;min-height:44px;align-items:center;gap:.5rem;border:1px solid var(--line);border-radius:999px;padding:.55rem .9rem;background:var(--surface);color:var(--teal-dark);font-weight:800;box-shadow:var(--shadow-soft)}.onboarding-protagonist{display:grid;grid-template-columns:minmax(0,.95fr) minmax(360px,1.05fr);gap:1rem;align-items:end;padding:.75rem 0 1.25rem}.onboarding-protagonist h2,.preview-cover-overlay h3,.book-preview h3,.onboarding-step-panel h3,.review-summary h4{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-weight:600;line-height:1.12}.onboarding-protagonist h2{font-size:clamp(2rem,4vw,3.1rem)}.onboarding-protagonist p{max-width:42rem;margin:.7rem 0 0;color:var(--muted);font-size:1.02rem}.onboarding-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.onboarding-progress button{min-width:0;justify-content:flex-start;border-color:var(--line);padding:.7rem;background:var(--surface);color:var(--ink);text-align:left;box-shadow:none}.onboarding-progress button.is-current{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark)}.onboarding-progress span{display:grid;min-width:0}.onboarding-progress strong,.onboarding-progress small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.onboarding-progress small{color:var(--muted);font-size:.72rem;font-weight:700}.onboarding-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.45fr);gap:1rem;align-items:start}.onboarding-workspace,.book-preview{display:grid;gap:1rem;min-width:0}.guide-thread,.onboarding-step-panel,.book-preview,.story-roadmap-card,.revision-card,.role-note,.trust-note,.sample-preview-card,.assistant-response{border:1px solid var(--line);border-radius:8px;background:var(--porcelain);box-shadow:var(--shadow-soft)}.guide-thread{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.8rem;padding:1rem}.guide-avatar{display:grid;width:44px;height:44px;place-items:center;border-radius:8px;background:var(--teal);color:#fff}.guide-messages{display:grid;min-width:0;gap:.65rem}.guide-name{margin:0;color:var(--teal-dark);font-weight:800}.guide-messages>p:not(.guide-name),.parent-request span,.step-heading p,.onboarding-step-panel label,.review-summary p,.story-roadmap-card p,.role-note p,.sample-preview-card p,.revision-card p,.trust-note p,.assistant-response p,.status-row small{margin:0;color:var(--muted)}.parent-request{display:inline-flex;width:fit-content;max-width:100%;align-items:flex-start;gap:.45rem;border-radius:8px;padding:.55rem .65rem;background:var(--sky)}.parent-request svg{flex:0 0 auto;color:var(--teal-dark)}.guide-upload-button{width:fit-content;border-color:var(--teal);background:var(--surface);color:var(--teal-dark)}.guide-upload-button:hover:not(:disabled),.guide-upload-button:focus-visible:not(:disabled){background:var(--teal-soft)}.guide-upload-button.is-complete{background:var(--sage-soft)}.onboarding-step-panel{display:grid;gap:1rem;padding:1rem}.step-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;align-items:start}.step-heading>svg{width:44px;height:44px;border-radius:8px;padding:.65rem;background:var(--marigold-soft);color:var(--marigold-dark, #8a5a00)}.onboarding-step-panel h3{font-size:1.55rem}.onboarding-step-panel label,.segmented-field>p{color:var(--ink);font-weight:800}.onboarding-step-panel input,.onboarding-step-panel textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface)}.onboarding-step-panel input{min-height:48px;padding:.65rem .75rem}.onboarding-step-panel textarea{resize:vertical;min-height:112px;padding:.75rem}.segmented-field{display:grid;gap:.55rem}.segmented-field>p{margin:0}.segmented-field>div,.edit-intent-list{display:flex;flex-wrap:wrap;gap:.5rem}.segmented-field button,.edit-intent-list button{border-color:var(--line);background:var(--surface);color:var(--ink)}.segmented-field button.is-selected,.edit-intent-list button.is-selected{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark)}.character-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.character-choice{min-height:92px;justify-content:flex-start;border-color:var(--line);background:var(--surface);color:var(--ink);text-align:left}.character-choice.is-selected{border-color:var(--teal);background:var(--teal-soft)}.character-choice img{width:58px;height:58px;flex:0 0 auto;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:var(--sky)}.character-choice span,.upload-reference span,.status-row span{display:grid;min-width:0;gap:.15rem}.character-choice small,.upload-reference small{color:var(--muted);font-size:.82rem;font-weight:700}.character-choice svg{margin-left:auto;color:var(--teal)}.role-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.6rem;padding:.75rem;background:var(--sky);box-shadow:none}.role-note svg{color:var(--teal-dark)}.upload-reference{justify-content:flex-start;border-color:var(--line);background:var(--surface);color:var(--ink);text-align:left}.upload-reference.is-complete{border-color:var(--teal);background:var(--sage-soft);color:var(--teal-dark)}.trust-note,.assistant-response{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;padding:.8rem;background:var(--teal-soft);color:var(--teal-dark);box-shadow:none}.trust-note p,.assistant-response p{color:var(--teal-dark)}.trust-note.is-plain{background:var(--sage-soft)}.starter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.starter-choice{display:grid;min-height:188px;justify-items:start;align-content:start;border-color:var(--line);padding:.8rem;background:var(--surface);color:var(--ink);text-align:left}.starter-choice.is-selected{border-color:var(--teal);background:var(--teal-soft)}.starter-choice span{color:var(--rose-dark);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1.1rem;font-weight:600;line-height:1.15}.starter-choice small{color:var(--muted);font-weight:700}.starter-sample{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.45rem;align-items:start;margin-top:.45rem;border-top:1px solid var(--line);padding-top:.55rem}.starter-sample svg{color:var(--teal-dark)}.starter-sample p{margin:0;color:var(--muted);font-size:.82rem;font-weight:700;line-height:1.35}.sample-preview-card{display:grid;gap:.75rem;padding:.85rem;background:var(--surface);box-shadow:none}.sample-preview-card h4,.roadmap-card-heading h4{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1.25rem;font-weight:600;line-height:1.15}.sample-image-plan{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.55rem;align-items:start;border-radius:8px;padding:.65rem;background:var(--sky);color:var(--teal-dark);font-weight:800}.story-chat{display:grid;gap:.75rem;border:1px solid var(--line);border-radius:8px;padding:.85rem;background:var(--surface)}.chat-bubble{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.55rem;align-items:start;border-radius:8px;padding:.75rem}.chat-bubble p{margin:0}.chat-bubble.is-guide{background:var(--teal-soft);color:var(--teal-dark);font-weight:800}.follow-up-card{display:grid;gap:.6rem;border:1px solid var(--line);border-radius:8px;padding:.75rem;background:var(--porcelain)}.follow-up-grid{display:grid;gap:.5rem}.follow-up-grid button{justify-content:flex-start;border-color:var(--line);background:var(--surface);color:var(--ink);text-align:left}.follow-up-grid button.is-selected{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark)}.edit-intent-list button{flex:1 1 180px}.review-summary{display:grid;gap:.75rem}.review-summary>div{display:grid;gap:.25rem;border:1px solid var(--line);border-radius:8px;padding:.8rem;background:var(--surface)}.review-summary h4{font-size:1.25rem}.approval-stack,.trust-checklist{display:grid;gap:.55rem}.status-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.6rem;align-items:start;border:1px solid var(--line);border-radius:8px;padding:.65rem;background:var(--surface)}.status-row.is-info{border-color:#badbd5;background:var(--teal-soft)}.status-row.is-review{border-color:#efc3cc;background:var(--rose-soft)}.status-row.is-waiting{border-color:#f0ddab;background:var(--marigold-soft)}.status-row strong{color:var(--ink)}.status-row svg{color:var(--teal-dark)}.approval-button{width:100%}.approval-button.is-approved{background:var(--teal-dark)}.picture-plan-helper{display:block;margin-top:.4rem;color:var(--ink-muted)}.picture-plan-edit-button{margin-top:.85rem}.picture-plan-editor{display:grid;gap:.6rem;margin-top:.85rem;border-top:1px solid var(--line);padding-top:.85rem}.picture-plan-editor label{color:var(--ink);font-weight:800}.picture-plan-editor textarea{width:100%;resize:vertical}.picture-plan-editor>small{color:var(--ink-muted);text-align:right}.picture-plan-editor>div{display:flex;flex-wrap:wrap;gap:.6rem}.onboarding-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;border:1px solid var(--line);border-radius:8px;padding:.75rem;background:#fffcf6f0;box-shadow:var(--shadow-soft)}.onboarding-actions button:last-child{justify-self:end}.book-preview{position:sticky;top:1rem;overflow:hidden;padding:0;background:var(--surface)}.preview-cover{position:relative;overflow:hidden;min-height:260px;background:var(--sky)}.preview-cover img{width:100%;height:100%;min-height:260px;object-fit:cover}.preview-cover-overlay{position:absolute;right:0;bottom:0;left:0;padding:1rem;background:linear-gradient(180deg,#102f2b00,#102f2bdb)}.preview-cover-overlay .eyebrow,.preview-cover-overlay h3{color:#fff}.preview-cover-overlay h3{font-size:1.65rem}.preview-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;padding:0 1rem}.preview-meta-grid span{display:grid;min-height:44px;place-items:center;border:1px solid var(--line);border-radius:8px;padding:.45rem;background:var(--porcelain);color:var(--teal-dark);font-size:.8rem;font-weight:800;text-align:center}.preview-character-strip{display:flex;gap:.5rem;padding:0 1rem}.preview-character-strip img{width:64px;height:64px;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:var(--sky)}.story-roadmap-card,.revision-card,.trust-checklist{margin:0 1rem}.story-roadmap-card,.revision-card{display:grid;gap:.65rem;padding:.85rem;background:var(--porcelain);box-shadow:none}.roadmap-card-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.6rem;align-items:start}.roadmap-card-heading svg{color:var(--teal-dark)}.roadmap-button{width:100%}.roadmap-list{display:grid;gap:.55rem}.roadmap-page{display:grid;gap:.45rem;border:1px solid var(--line);border-radius:8px;padding:.65rem;background:var(--surface)}.roadmap-page p,.roadmap-page small{margin:0;color:var(--muted)}.roadmap-page p{color:var(--ink);font-weight:800}.roadmap-page small{line-height:1.35}.manuscript-shell{width:min(760px,calc(100% - 2rem));margin:0 auto;padding:1.25rem 0 2.5rem}.manuscript-header,.manuscript-navigation{display:flex;align-items:center;justify-content:space-between;gap:1rem}.manuscript-header{padding-bottom:1.25rem}.secondary-link{color:var(--teal-dark);font-weight:800}.manuscript-review,.manuscript-title,.manuscript-page{display:grid;gap:1rem}.manuscript-review-layout,.manuscript-reading-column,.manuscript-review-column{display:grid;gap:1rem;align-items:start}.manuscript-title h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:clamp(1.8rem,5vw,2.5rem);font-weight:600;line-height:1.12}.manuscript-reading-column>progress{width:100%;height:.65rem;accent-color:var(--rose)}.manuscript-page-status{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:var(--muted);font-weight:800}.manuscript-page-status p{margin:0}.manuscript-page-status span{display:inline-flex;align-items:center;gap:.35rem;color:var(--teal-dark)}.manuscript-page{border:1px solid var(--line);border-radius:8px;padding:clamp(1.25rem,4vw,2.5rem);background:var(--porcelain);box-shadow:var(--shadow-soft)}.manuscript-page-number{margin:0;color:var(--rose-dark);font-size:.78rem;font-weight:800;text-transform:uppercase}.manuscript-text{color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1.25rem;line-height:1.75;white-space:pre-wrap}.picture-plan{border-top:1px solid var(--line);padding-top:.85rem}.picture-plan h3{margin:0;color:var(--teal-dark);font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:1rem;font-weight:800}.picture-plan p{margin:.5rem 0 0;color:var(--muted)}.manuscript-navigation{padding-top:.25rem}.manuscript-review-prompt{display:grid;gap:.75rem;border:1px solid #efc3cc;border-radius:8px;padding:1rem;background:var(--rose-soft)}.manuscript-review-prompt h3,.manuscript-review-prompt p{margin:0}.manuscript-review-prompt>p{color:var(--muted)}.manuscript-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.manuscript-review-actions button{width:100%}.revision-status,.revision-form,.manuscript-approval{display:grid;gap:.85rem;border:1px solid var(--line);border-radius:8px;padding:1rem;background:var(--rose-soft);color:var(--ink)}.revision-status h3,.revision-status p,.revision-status small,.revision-form h3,.revision-form p{margin:0}.revision-status small,.revision-form>div>p:not(.eyebrow){color:var(--muted)}.revision-form textarea{width:100%;min-height:8rem;resize:vertical}.manuscript-review-prompt .revision-form{margin-top:.25rem;border-width:1px 0 0;border-radius:0;padding:1rem 0 0;background:transparent}.manuscript-approval{background:var(--teal-soft)}.manuscript-approval.is-approved{background:var(--sage-soft)}.manuscript-approval h3,.manuscript-approval p{margin:0}.manuscript-approval-dialog-backdrop{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:1rem;background:#102f2bb8}.manuscript-approval-dialog{display:grid;width:min(100%,440px);gap:1.25rem;border:1px solid var(--line);border-radius:12px;padding:clamp(1.25rem,4vw,1.75rem);background:var(--porcelain);box-shadow:var(--shadow)}.manuscript-approval-dialog h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1.65rem;line-height:1.2}.manuscript-approval-dialog p{margin:.6rem 0 0;color:var(--muted)}.manuscript-approval-dialog .form-error{margin:0}.manuscript-approval-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.manuscript-approval-dialog-actions button{width:100%}@media(max-width:420px){.manuscript-approval-dialog-actions{grid-template-columns:1fr}}@media(min-width:700px){.manuscript-review-layout{grid-template-columns:minmax(0,1fr) 230px;gap:1.25rem}.manuscript-review-column{position:sticky;top:1rem}.manuscript-review-actions{grid-template-columns:1fr}}.trust-checklist{margin-bottom:1rem}.page-chip{display:inline-flex;width:fit-content;align-items:center;gap:.35rem;border-radius:999px;padding:.35rem .55rem;background:var(--sky);color:var(--teal-dark);font-size:.78rem;font-weight:800}.reader-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:1.25rem;align-items:stretch}.page-art,.page-copy{margin:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow-soft)}.page-art{display:grid;overflow:hidden;align-content:center;background:var(--sky)}.page-art img{width:100%;aspect-ratio:3 / 2;object-fit:contain}.production-review-shell,.operator-shell{width:min(960px,calc(100% - 2rem));margin:0 auto;padding:1.25rem 0 7rem}.production-review-shell.is-wide{width:min(1180px,calc(100% - 2rem))}.production-review-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:1.25rem}.review-intro,.operator-task-heading{display:grid;gap:.65rem;margin-bottom:1.25rem}.review-intro h2,.operator-task-heading h2,.operator-gate h2,.publish-card h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:clamp(1.85rem,5vw,2.75rem);font-weight:600;line-height:1.1}.review-intro>p:not(.eyebrow),.operator-task-heading>p:not(.eyebrow),.operator-gate>p:not(.eyebrow),.publish-card>p:not(.eyebrow){max-width:72ch;margin:0;color:var(--muted)}.workflow-notice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;align-items:start;border:1px solid #badbd5;border-radius:10px;padding:.9rem;background:var(--teal-soft);color:var(--teal-dark)}.workflow-notice.is-ready_for_review,.workflow-notice.is-approved,.workflow-notice.is-published{border-color:#c4d7b4;background:var(--sage-soft)}.workflow-notice.is-recovery,.workflow-notice.is-revision_in_progress{border-color:#efc3cc;background:var(--rose-soft);color:var(--rose-dark)}.workflow-notice strong,.workflow-notice p{margin:0}.workflow-notice p{margin-top:.2rem;color:var(--muted)}.onboarding-generation-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.onboarding-generation-status article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:start;border:1px solid #badbd5;border-radius:10px;padding:.85rem;background:var(--teal-soft);color:var(--teal-dark)}.onboarding-generation-status article.is-working svg{animation:gentle-spin 2.2s linear infinite}.onboarding-generation-status article.is-ready{border-color:#c4d7b4;background:var(--sage-soft)}.onboarding-generation-status article.is-action-needed{border-color:#d8b75b;background:var(--marigold-soft);color:var(--ink)}.status-inline-action{display:inline-flex;min-height:40px;align-items:center;gap:.35rem;margin-top:.55rem;color:var(--teal-dark);font-weight:800}.onboarding-generation-status strong,.onboarding-generation-status p,.generation-wait-note{margin:0}.onboarding-generation-status p,.generation-wait-note{color:var(--muted)}.character-reference-checkpoint{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.8rem;align-items:start;border:1px solid #d8b75b;border-radius:10px;padding:1rem;background:var(--marigold-soft);color:var(--ink)}.character-reference-checkpoint h3,.character-reference-checkpoint p{margin:0}.character-reference-checkpoint h3{margin-top:.15rem;font-size:1.1rem}.character-reference-checkpoint div>p:last-child{margin-top:.35rem;color:var(--muted)}@keyframes gentle-spin{to{transform:rotate(360deg)}}.review-feedback{margin:0 0 1rem;border-radius:8px;padding:.75rem .9rem;background:var(--sage-soft)}.form-error.review-feedback{background:var(--rose-soft)}.character-sheet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.character-sheet-card{display:grid;align-content:start;gap:.9rem;overflow:hidden;border:1px solid var(--line);border-radius:12px;padding:1rem;background:var(--surface);box-shadow:var(--shadow-soft)}.character-sheet-heading{display:flex;align-items:start;justify-content:space-between;gap:.75rem}.character-sheet-heading h3,.operator-target-card h3,.complete-book-cover-card h3{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1.4rem;line-height:1.15}.review-status-tag{flex:0 0 auto;border-radius:999px;padding:.32rem .55rem;background:var(--marigold-soft);color:var(--marigold-dark);font-size:.74rem;font-weight:800}.review-status-tag.is-approved{background:var(--sage-soft);color:var(--teal-dark)}.character-sheet-figure{display:grid;gap:.45rem;margin:0}.character-sheet-preview-trigger{position:relative;display:block;width:100%;min-height:0;overflow:hidden;border:0;padding:0;background:transparent;color:var(--ink)}.character-sheet-preview-trigger:hover:not(:disabled),.character-sheet-preview-trigger:focus-visible:not(:disabled){background:transparent}.character-sheet-preview-cue{position:absolute;right:.65rem;bottom:.65rem;display:inline-flex;min-height:36px;align-items:center;gap:.4rem;border-radius:999px;padding:.42rem .68rem;background:#102f2be6;color:#fff;font-size:.78rem;font-weight:800;box-shadow:var(--shadow-soft)}.character-sheet-figure img,.operator-target-card img{width:100%;aspect-ratio:4 / 5;border-radius:8px;object-fit:cover;background:var(--sky)}.character-sheet-figure figcaption,.illustration-page-card small,.operator-target-card small{color:var(--muted);font-size:.78rem}.character-sheet-lightbox{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;padding:clamp(.65rem,2vw,1.5rem);background:#102f2bc7}.character-sheet-lightbox-panel{display:grid;width:min(100%,1100px);max-height:calc(100dvh - 1.3rem);overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.character-sheet-lightbox-header{position:sticky;z-index:1;top:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.8rem 1rem;background:var(--surface)}.character-sheet-lightbox-header .eyebrow,.character-sheet-lightbox-header h2{margin:0}.character-sheet-lightbox-header h2{color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1.35rem;line-height:1.2}.character-sheet-lightbox-close{flex:0 0 auto}.character-sheet-lightbox-image{display:grid;min-height:0;place-items:center;padding:clamp(.5rem,2vw,1rem);background:var(--paper)}.character-sheet-lightbox-image img{width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 7.5rem);border-radius:8px;object-fit:contain;background:var(--porcelain)}.character-sheet-placeholder,.review-artwork-unavailable{display:grid;min-height:220px;place-items:center;align-content:center;gap:.55rem;border:1px dashed #a9c9c3;border-radius:8px;padding:1rem;background:var(--sky);color:var(--muted);text-align:center}.character-sheet-placeholder p{margin:0}.character-sheet-placeholder.is-reference-ready{border-style:solid;border-color:var(--sage);background:var(--sage-soft);color:var(--teal-dark)}.uploaded-reference-preview{display:grid;gap:0;overflow:hidden;margin:0;border:1px solid var(--sage);border-radius:8px;background:var(--sage-soft)}.uploaded-reference-preview img{width:100%;max-height:360px;aspect-ratio:4 / 3;object-fit:cover;background:var(--sky)}.uploaded-reference-preview figcaption{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:start;padding:.8rem;color:var(--teal-dark)}.uploaded-reference-preview figcaption>span{display:grid;gap:.18rem}.uploaded-reference-preview strong{color:var(--ink)}.uploaded-reference-preview small{color:var(--muted)}.character-sheet-placeholder.is-generating{position:relative;overflow:hidden;border-style:solid;border-color:#8fcac2;background:radial-gradient(circle at 50% 25%,rgba(255,255,255,.82),transparent 38%),var(--teal-soft);color:var(--teal-dark)}.character-sheet-generation-orbit{display:grid;width:64px;height:64px;place-items:center;border:2px solid rgba(11,124,120,.2);border-top-color:var(--teal);border-radius:999px;animation:gentle-spin 2.2s linear infinite}.character-sheet-generation-orbit svg{animation:gentle-counter-spin 2.2s linear infinite}.character-sheet-generation-copy{display:grid;max-width:34rem;gap:.35rem}.character-sheet-generation-copy strong{color:var(--ink);font-size:1.05rem}.character-sheet-generation-shimmer{display:grid;width:min(100%,300px);gap:.4rem}.character-sheet-generation-shimmer span{height:8px;overflow:hidden;border-radius:999px;background:#0b7c7824}.character-sheet-generation-shimmer span:after{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,transparent,rgba(11,124,120,.5),transparent);content:"";animation:character-sheet-shimmer 1.8s ease-in-out infinite}.character-sheet-generation-shimmer span:nth-child(2){width:82%}.character-sheet-generation-shimmer span:nth-child(3){width:64%}.character-sheet-generation-shimmer span:nth-child(2):after{animation-delay:.18s}.character-sheet-generation-shimmer span:nth-child(3):after{animation-delay:.36s}@keyframes gentle-counter-spin{to{transform:rotate(-360deg)}}@keyframes character-sheet-shimmer{0%{transform:translate(-120%)}to{transform:translate(340%)}}@media(prefers-reduced-motion:reduce){.character-sheet-generation-orbit,.character-sheet-generation-orbit svg,.character-sheet-generation-shimmer span:after,.reference-upload-feedback.is-working svg{animation:none}}.character-review-actions,.operator-action-row{display:flex;flex-wrap:wrap;gap:.55rem}.character-review-actions button,.operator-action-row button{flex:1 1 150px}.inline-revision-form,.pet-companion-form{display:grid;gap:.65rem;border-radius:8px;padding:.8rem;background:var(--rose-soft)}.inline-revision-form label,.pet-companion-form label{color:var(--ink);font-weight:800}.inline-revision-form textarea,.pet-companion-form textarea,.pet-companion-form input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:.65rem .75rem;background:var(--surface);color:var(--ink);resize:vertical}.reference-upload-control{position:relative;display:flex;min-height:44px;align-items:center;justify-content:center;gap:.5rem;overflow:hidden;border:1px solid var(--teal);border-radius:8px;color:var(--teal-dark);font-weight:800;cursor:pointer}.reference-upload-control:focus-within{outline:3px solid var(--marigold);outline-offset:2px}.reference-upload-control input{position:absolute;width:1px;height:1px;opacity:0}.reference-upload-feedback{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem;align-items:start;margin:0;border-radius:8px;padding:.7rem .75rem;color:var(--teal-dark)}.reference-upload-feedback.is-working{background:var(--teal-soft)}.reference-upload-feedback.is-working svg{animation:gentle-spin 2.2s linear infinite}.reference-upload-feedback.is-success{background:var(--sage-soft)}.reference-upload-feedback.is-error{background:var(--rose-soft);color:var(--rose-dark)}.pet-companion-panel{display:grid;gap:.75rem;margin-top:1rem;border:1px solid var(--line);border-radius:10px;padding:1rem;background:var(--porcelain)}.pet-companion-panel>button{justify-self:start}.sticky-review-action{position:sticky;z-index:4;bottom:.75rem;display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.25rem;border:1px solid var(--line);border-radius:10px;padding:.75rem;background:#fffcf6f5;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.illustration-return-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto;min-width:min(100%,20rem);gap:.7rem;align-items:center;border-radius:8px;padding:.72rem .85rem;background:var(--teal);color:#fff;text-decoration:none;box-shadow:0 5px 14px #044c492e}.illustration-return-link>span{display:grid;gap:.08rem}.illustration-return-link strong{color:inherit;font-size:.95rem;line-height:1.25}.illustration-return-link small{color:#ffffffd1;font-size:.75rem;line-height:1.3}.illustration-return-link:hover,.illustration-return-link:focus-visible{background:var(--teal-dark);color:#fff;transform:translateY(-1px)}.character-choice-action{display:flex;width:100%;align-items:center;justify-content:space-between;gap:1rem}.character-choice-action p{margin:0;color:var(--muted)}.character-choice-action button{flex:0 0 auto}.generation-wait-note{padding:.65rem;text-align:center}.primary-link-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;border-radius:8px;padding:.75rem 1rem;background:var(--teal);color:var(--porcelain);font-weight:700;text-decoration:none}.primary-link-button:hover{background:var(--teal-dark)}.artwork-qa-status{color:var(--teal-dark);font-weight:700}.illustration-generation-progress{display:grid;gap:.5rem;margin-top:.8rem}.illustration-generation-progress>div{display:flex;justify-content:space-between;gap:1rem;font-size:.9rem}.illustration-generation-progress>div strong,.illustration-generation-progress>div span{color:var(--teal-dark)}.illustration-generation-progress progress{width:100%;height:.55rem;overflow:hidden;border:0;border-radius:999px;background:#0b7c7824;color:var(--teal)}.illustration-generation-progress progress::-webkit-progress-bar{border-radius:999px;background:#0b7c7824}.illustration-generation-progress progress::-webkit-progress-value{border-radius:999px;background:var(--teal);transition:width .4s ease}.illustration-generation-progress progress::-moz-progress-bar{border-radius:999px;background:var(--teal)}.illustration-generation-progress small{color:var(--muted);font-size:.8125rem;line-height:1.45}.review-artwork-unavailable.is-generating{position:relative;overflow:hidden;border-style:solid;border-color:#8fcac2;background:radial-gradient(circle at 50% 25%,rgba(255,255,255,.82),transparent 38%),var(--teal-soft);color:var(--teal-dark)}.review-artwork-unavailable.is-generating p{margin:0}.complete-book-gallery{display:grid;gap:1.25rem}.complete-book-cover-card,.illustration-page-card{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-soft)}.complete-book-cover-card{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);align-items:center}.complete-book-cover-card>img,.complete-book-cover-card>.review-artwork-unavailable{width:100%;min-height:360px;height:100%;border:0;border-radius:0;object-fit:cover}.complete-book-cover-card>div:last-child,.illustration-page-card>div:last-child{display:grid;gap:.55rem;padding:1rem}.complete-book-cover-card p,.illustration-page-card p,.illustration-page-card small{margin:0}.illustration-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.illustration-page-card{display:grid;align-content:start}.illustration-page-card>img,.illustration-page-card>.review-artwork-unavailable{width:100%;min-height:280px;aspect-ratio:3 / 2;border:0;border-radius:0;object-fit:cover}.illustration-page-text{color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1.08rem;line-height:1.55}.production-review-shell>.revision-status,.production-review-shell>.revision-form{margin-top:1.25rem}.preview-shell .complete-book-gallery.is-read-only{pointer-events:none}.publish-shell{width:min(720px,calc(100% - 2rem))}.publish-card,.operator-gate{display:grid;gap:1rem;border:1px solid var(--line);border-radius:12px;padding:clamp(1.25rem,5vw,2.5rem);background:var(--surface);box-shadow:var(--shadow-soft)}.publish-checklist{display:grid;gap:.55rem;margin:0;padding:0;list-style:none}.publish-checklist li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.6rem;align-items:center;border:1px solid #c4d7b4;border-radius:8px;padding:.7rem;background:var(--sage-soft);color:var(--teal-dark);font-weight:800}.publish-image-count{border-radius:8px;padding:.7rem;background:var(--teal-soft);color:var(--teal-dark)!important;font-weight:800;text-align:center}.operator-shell{width:min(980px,calc(100% - 2rem));padding-bottom:2.5rem}.operator-gate{width:min(620px,100%);margin:2rem auto;justify-items:start}.operator-target-list,.operator-step-list{display:grid;gap:1rem;margin:0;padding:0;list-style:none}.operator-revision-panel{display:grid;gap:.7rem;margin-bottom:1rem;border:1px solid #efc3cc;border-radius:10px;padding:1rem;background:var(--rose-soft)}.operator-recovery-callout{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;border:1px solid #efc3cc;border-radius:10px;padding:1rem;background:var(--rose-soft)}.operator-recovery-callout p{margin:0 0 .2rem}.operator-revision-panel h3,.operator-revision-panel p{margin:0}.operator-revision-panel label{color:var(--ink);font-weight:800}.operator-revision-panel select,.operator-revision-panel textarea{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:.65rem .75rem;background:var(--surface);color:var(--ink);font:inherit}.operator-revision-panel textarea{resize:vertical}.operator-art-review{display:grid;gap:1rem;margin-bottom:1rem;border:1px solid var(--line);border-radius:10px;padding:1rem;background:var(--porcelain)}.operator-art-review-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.operator-art-review-heading h3,.operator-art-review-heading p,.operator-art-card figcaption{margin:0}.operator-art-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.operator-art-card{overflow:hidden;margin:0;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.operator-art-card>img,.operator-art-card>.review-artwork-unavailable{width:100%;min-height:150px;aspect-ratio:3 / 2;border:0;border-radius:0;object-fit:cover}.operator-art-card figcaption{display:grid;gap:.25rem;padding:.65rem}.operator-art-card figcaption span{color:var(--muted);font-size:.8rem;line-height:1.35}.operator-target-card,.operator-step-list>li{display:grid;gap:1rem;border:1px solid var(--line);border-radius:10px;padding:1rem;background:var(--surface);box-shadow:var(--shadow-soft)}.operator-target-card{grid-template-columns:minmax(220px,.7fr) minmax(260px,1fr);align-items:start}.operator-target-card>.operator-action-row{grid-column:1 / -1}.operator-target-card p,.operator-step-list p{margin:0;color:var(--muted)}.operator-step-list>li{grid-template-columns:minmax(0,1fr) auto;align-items:center}.page-copy{display:flex;min-height:100%;flex-direction:column;justify-content:center;padding:1.25rem}.page-copy p{margin:0;color:var(--ink);font-size:1.18rem;line-height:1.65}.reader-book-cover,.reader-page{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-soft)}.reader-book-cover{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);align-items:center;margin-bottom:1.5rem}.reader-book-cover img{width:100%;aspect-ratio:3 / 2;object-fit:cover}.reader-book-cover>div:last-child{padding:clamp(1.25rem,4vw,3rem)}.reader-book-cover h2{margin:0;color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:clamp(1.8rem,4vw,3.2rem);line-height:1.05}.reader-pages{display:grid;gap:1.5rem}.reader-page{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);align-items:stretch}.reader-page:nth-child(2n) img,.reader-page:nth-child(2n) .reader-image-unavailable{order:2}.reader-page img{width:100%;height:100%;min-height:340px;object-fit:cover}.reader-page-copy{display:grid;align-content:center;gap:.65rem;padding:clamp(1.25rem,4vw,3rem)}.reader-page-copy p{margin:0}.reader-page-copy>p:last-child{color:var(--ink);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:clamp(1.2rem,2.5vw,1.65rem);line-height:1.55}.reader-image-unavailable{display:grid;min-height:300px;place-items:center;padding:1rem;background:var(--sky);color:var(--muted);text-align:center}.library-status-chip{width:fit-content;margin:0 0 .35rem;border-radius:999px;padding:.32rem .58rem;background:var(--rose-soft);color:var(--rose-dark);font-size:.78rem;font-weight:800;line-height:1.2}.library-status-chip.is-approved{background:var(--sage-soft);color:var(--teal-dark)}.library-primary-action{display:inline-flex;width:fit-content;align-items:center;gap:.35rem;border-radius:8px;padding:.65rem .85rem;background:var(--teal-dark);color:#fff;font-weight:800;text-decoration:none}.library-universe-shell{width:min(1240px,calc(100% - 2rem));margin:0 auto;padding:1rem 0 2.5rem}.library-universe{position:relative;overflow:hidden;min-height:780px;border-radius:20px;padding:0 2rem 2rem;background-color:var(--ink);background-position:center;background-size:cover;color:var(--paper);box-shadow:0 24px 70px #102f2b38}.library-universe:after{position:absolute;inset:0;z-index:0;background:#072d2924;content:"";pointer-events:none}.library-universe>*{position:relative;z-index:1}.library-universe-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:92px;border-bottom:1px solid rgba(255,248,234,.18)}.library-universe-logo{display:block;width:min(260px,48vw);height:auto;filter:brightness(0) invert(1) sepia(.15)}.library-account-actions{display:flex;align-items:center;gap:.75rem;color:#fff8ead1;font-size:.82rem;font-weight:700}.library-account-actions .header-sign-out{border-color:#fff8ea47;background:#fffcf61a;color:var(--paper)}.library-account-actions .header-sign-out:hover,.library-account-actions .header-sign-out:focus-visible{border-color:var(--marigold);background:#fffcf62b}.library-universe-intro,.library-universe-empty{text-align:center}.library-universe-intro{padding:2.3rem 1rem .5rem}.library-universe-intro h1,.library-universe-empty h1{margin:0;color:var(--paper);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:clamp(2.35rem,5vw,4.15rem);font-weight:600;line-height:1.02}.library-universe-intro>p:last-child,.library-universe-empty>p:last-of-type{margin:.7rem auto 0;color:#fff8eac7;line-height:1.5}.library-universe-eyebrow{margin:0 0 .55rem;color:var(--marigold);font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.library-universe-empty{display:grid;min-height:620px;place-items:center;align-content:center;gap:1rem}.library-orbit-stage{position:relative;min-height:560px;margin:0 auto}.library-orbit-node{position:absolute;z-index:3;display:flex;width:112px;height:112px;align-items:center;justify-content:center;flex-direction:column;gap:.18rem;border:1px solid rgba(255,248,234,.35);border-radius:999px;padding:.75rem;color:var(--paper);text-align:center;text-decoration:none;box-shadow:0 0 36px #0b7c7847;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.library-orbit-node:hover,.library-orbit-node:focus-visible{border-color:var(--marigold);transform:translateY(-4px) scale(1.03);box-shadow:0 0 48px #f0b83c57}.library-orbit-node strong{display:block;max-width:9ch;overflow:hidden;font-size:.82rem;line-height:1.1;text-overflow:ellipsis}.library-orbit-node span{color:#fff8eac7;font-size:.7rem;line-height:1.2}.library-orbit-node.is-protagonist{top:8%;left:4%;background:#9b3146eb}.library-orbit-node.is-characters{top:9%;right:4%;background:#0b7c78eb}.library-orbit-node.is-reader{bottom:9%;left:8%;background:#27627bf0}.library-orbit-node.is-create{right:8%;bottom:8%;background:#8a5a00f2}.library-orbit-node.is-unavailable{opacity:.84}.library-orbit-book{position:absolute;top:48%;left:50%;z-index:2;display:grid;width:min(330px,38vw);justify-items:center;transform:translate(-50%,-50%);text-align:center}.library-cover-button{overflow:visible;width:min(218px,24vw);min-height:0;border:0;border-radius:9px 16px 16px 9px;padding:0;background:transparent;box-shadow:0 17px 42px #0006;transition:transform .18s ease,box-shadow .18s ease}.library-cover-button:hover,.library-cover-button:focus-visible{transform:translateY(-5px) rotate(-1deg);box-shadow:0 24px 54px #0000007a}.library-cover-button img{display:block;width:100%;aspect-ratio:4 / 5;border:5px solid var(--porcelain);border-radius:inherit;object-fit:cover}.library-orbit-book .library-status-chip{margin:1rem auto .55rem}.library-orbit-book h2{margin:0;color:var(--paper);font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:clamp(1.35rem,2.4vw,1.9rem);font-weight:600;line-height:1.08;text-wrap:balance}.library-orbit-book-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.55rem;margin-top:.85rem}.library-universe-primary,.library-universe-secondary{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:.3rem;border-radius:8px;padding:.65rem .85rem;font-weight:800;text-decoration:none}.library-universe-primary{background:var(--teal);color:#fff}.library-universe-secondary{border:1px solid rgba(255,248,234,.34);background:#fffcf61a;color:var(--paper)}.library-universe-primary:hover,.library-universe-primary:focus-visible{background:var(--teal-dark)}.library-universe-secondary:hover,.library-universe-secondary:focus-visible{border-color:var(--marigold);background:#fffcf62e}.library-book-switcher{width:min(920px,100%);margin:0 auto;border-top:1px solid rgba(255,248,234,.18);padding-top:1.2rem}.library-book-switcher>p{margin:0 0 .7rem;color:#fff8eac2;font-size:.78rem;font-weight:700;text-align:center}.library-book-switcher>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.65rem}.library-book-switcher article{display:grid;gap:.35rem;border:1px solid rgba(255,248,234,.2);border-radius:10px;padding:.5rem;background:#fffcf614}.library-book-switcher article.is-selected{border-color:var(--marigold);background:#fff1c91f}.library-book-switcher button{display:grid;width:100%;justify-items:start;border:0;padding:.45rem;background:transparent;color:var(--paper);text-align:left}.library-book-switcher button span{font-family:Fraunces,Georgia,Times New Roman,ui-serif,serif;font-size:1rem;line-height:1.2}.library-book-switcher small{margin-top:.25rem;color:#fff8eaad}.library-book-switcher a{color:var(--marigold);font-size:.74rem;font-weight:800;text-decoration:none}@media(max-width:820px){.library-universe-shell{width:min(100%,680px);padding-top:0}.library-universe{min-height:100vh;border-radius:0;padding:0 1rem 1.25rem;background-position:center top}.library-universe-header{min-height:72px}.library-universe-logo{width:min(205px,54vw)}.library-account-actions>span{display:none}.library-universe-intro{padding:1.65rem .25rem .25rem}.library-universe-intro h1{font-size:clamp(2.05rem,9vw,3rem)}.library-universe-intro>p:last-child{max-width:30ch;font-size:.88rem}.library-orbit-stage{min-height:610px}.library-orbit-node{width:84px;height:84px;padding:.4rem}.library-orbit-node svg{width:19px;height:19px}.library-orbit-node strong{max-width:8ch;font-size:.7rem}.library-orbit-node span{font-size:.62rem}.library-orbit-node.is-protagonist{top:3%;left:0}.library-orbit-node.is-characters{top:4%;right:0}.library-orbit-node.is-reader{bottom:3%;left:1%}.library-orbit-node.is-create{right:1%;bottom:3%}.library-orbit-book{top:49%;width:min(250px,66vw)}.library-cover-button{width:min(154px,42vw)}.library-orbit-book .library-status-chip{margin-top:.7rem}.library-orbit-book h2{font-size:clamp(1.1rem,5vw,1.45rem)}.library-orbit-book-actions{display:grid;width:100%}.library-universe-primary,.library-universe-secondary{width:100%}.library-book-switcher{margin-top:.5rem}}@media(max-width:420px){.library-universe{padding-inline:.75rem}.library-orbit-stage{min-height:585px}.library-orbit-book{width:min(225px,65vw)}.library-cover-button{width:min(142px,41vw)}}.intake-question-shell{min-height:100vh}.intake-question-card{display:grid;width:min(680px,calc(100% - 2rem));gap:1rem;margin:2rem auto;border:1px solid var(--line);border-radius:12px;padding:clamp(1.25rem,4vw,2.5rem);background:var(--surface);box-shadow:var(--shadow-soft)}.intake-question-card h2,.intake-question-card p{margin:0}.intake-question-card textarea{width:100%;resize:vertical}.page-copy p+p{margin-top:1rem}.page-copy .eyebrow{color:var(--teal);font-size:.78rem;line-height:1.2}.reader-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:1rem;align-items:center;padding-top:1.25rem}.page-progress{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem}.page-progress button{width:.8rem;min-width:0;height:.8rem;min-height:0;border:1px solid var(--line);border-radius:999px;padding:0;background:var(--surface)}.page-progress button.is-current{border-color:var(--rose);background:var(--rose)}@media(max-width:820px){.gate-input-row,.onboarding-protagonist,.onboarding-layout,.reader-layout,.reader-book-cover,.reader-page,.complete-book-cover-card,.operator-target-card,.operator-step-list>li,.reader-controls,.reader-top-bar{grid-template-columns:1fr}.illustration-page-grid,.character-sheet-grid{grid-template-columns:1fr}.operator-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operator-target-card>.operator-action-row{grid-column:auto}.top-bar,.onboarding-top-bar{align-items:flex-start}.brand-header-logo{width:min(16rem,72vw)}.onboarding-progress,.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-preview{position:static}.reader-title{text-align:left}.reader-page:nth-child(2n) img,.reader-page:nth-child(2n) .reader-image-unavailable{order:initial}.reader-page img{min-height:0;aspect-ratio:3 / 2}.reader-controls{gap:.75rem}.reader-controls>button{width:100%}}@media(max-width:520px){.gate-card{padding:1.25rem}.gate-card h1,.top-bar h1,.reader-title h1{font-size:1.6rem}.top-bar,.onboarding-top-bar,.manuscript-header,.production-review-header{flex-direction:column}.manuscript-header,.production-review-header{align-items:flex-start}.illustrations-review-intro>p:not(.eyebrow),.illustrations-review-intro .workflow-notice>div>p{font-size:.75rem;line-height:1.45}.manuscript-navigation{display:grid;grid-template-columns:1fr 1fr}.onboarding-shell{width:min(100% - 1rem,1180px);padding-top:.75rem}.onboarding-status-pill{width:100%;justify-content:center}.onboarding-progress,.character-choice-grid,.starter-grid,.onboarding-actions,.preview-meta-grid,.onboarding-generation-status{grid-template-columns:1fr}.onboarding-actions{gap:.55rem}.operator-art-grid{grid-template-columns:1fr}.onboarding-actions button,.onboarding-actions button:last-child,.guide-upload-button,.segmented-field button,.edit-intent-list button{width:100%;justify-self:stretch}.guide-thread,.step-heading,.role-note,.trust-note,.starter-sample,.chat-bubble,.sample-image-plan,.roadmap-card-heading,.assistant-response{grid-template-columns:1fr}.preview-cover,.preview-cover img{min-height:220px}.book-card-footer{align-items:stretch;flex-direction:column}.book-card-footer button,.top-bar button,.sticky-review-action,.sticky-review-action button,.sticky-review-action a,.character-review-actions button,.operator-action-row button,.operator-step-list button{width:100%}.sticky-review-action,.character-choice-action,.character-review-actions,.operator-action-row,.operator-recovery-callout{align-items:stretch;flex-direction:column}.saved-direction-next-step{grid-template-columns:auto minmax(0,1fr)}.saved-direction-next-step .primary-link-button{grid-column:1 / -1;width:100%}.page-copy{padding:1rem}.page-copy p{font-size:1.05rem}}
