:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--ink: #12110e;--ink-2: #1d1b16;--panel: #242119;--panel-2: #2f2a20;--line: #51483a;--text: #fff8e8;--muted: #cfc2a3;--gold: #e2b84c;--green: #5da37a;--red: #c65a4a;--blue: #5b9bb8;--focus: #f6d66d;background:var(--ink)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;color:var(--text);background:linear-gradient(135deg,#12110ef0,#1d1b16fa),repeating-linear-gradient(90deg,rgba(226,184,76,.08) 0 1px,transparent 1px 84px),repeating-linear-gradient(0deg,rgba(93,163,122,.05) 0 1px,transparent 1px 76px)}button,input,textarea{font:inherit}button{border:0}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.app-shell{width:min(1760px,100%);margin:0 auto;padding:24px}.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.topbar h1,.section-heading h2,.w-card h3{margin:0;letter-spacing:0}.topbar h1{max-width:820px;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.1rem,4vw,4.7rem);line-height:.98}.eyebrow{margin:0 0 8px;color:var(--gold);font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.topbar-actions,.section-heading,.control-grid,.segmented-control,.segment,.progress-pill,.primary-action,.secondary-action,.w-card-heading,.idea-chip,.upgrade-button,.story-row{display:flex;align-items:center}.topbar-actions{gap:12px;flex-wrap:wrap;justify-content:flex-end}.progress-pill,.count-badge{border:1px solid rgba(226,184,76,.45);color:#ffe7a1;background:#e2b84c1a}.progress-pill{gap:8px;min-height:42px;padding:0 14px;border-radius:8px;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(300px,.88fr) minmax(460px,1.35fr) minmax(310px,.78fr);gap:18px;align-items:start}.panel,.w-card{border:1px solid rgba(255,248,232,.13);border-radius:8px;background:linear-gradient(180deg,#2f2a20f0,#1d1b16f5);box-shadow:0 18px 50px #00000047}.panel{padding:18px}.section-heading{justify-content:space-between;gap:14px;margin-bottom:16px}.section-heading h2{font-family:Georgia,Times New Roman,serif;font-size:1.45rem}.primary-action,.secondary-action,.icon-button,.segment,.idea-chip,.upgrade-button,.story-row{cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}.primary-action,.secondary-action{gap:9px;min-height:42px;border-radius:8px;padding:0 15px;font-weight:800}.primary-action{color:#17120a;background:var(--gold)}.secondary-action{border:1px solid rgba(255,248,232,.16);color:var(--text);background:#fff8e814}.icon-button{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,248,232,.16);border-radius:8px;color:var(--text);background:#fff8e814}.icon-button.small{width:32px;height:32px;flex:0 0 auto}.primary-action:hover,.secondary-action:hover,.icon-button:hover,.segment:hover,.idea-chip:hover,.upgrade-button:hover,.story-row:hover{transform:translateY(-1px)}.w-list{display:grid;gap:12px}.w-card{padding:14px;background:#242119e0}.w-card-heading{gap:10px}.w-card-heading h3{font-size:1rem}.w-card-heading p,.quiet-copy,.upgrade-button small,.story-row small{color:var(--muted)}.w-card-heading p{margin:2px 0 0;font-size:.82rem}.w-card-heading .icon-button{margin-left:auto}.suggestion-row{display:grid;gap:8px;margin:12px 0}.idea-chip{gap:8px;width:100%;min-height:38px;border:1px solid rgba(255,248,232,.13);border-radius:8px;padding:8px 10px;color:var(--text);text-align:left;background:#fff8e80f}.idea-chip.selected{border-color:#5da37acc;background:#5da37a29}.text-field{display:grid;gap:7px}.text-field span,.segmented-control legend{color:#e8dcbf;font-size:.78rem;font-weight:800}.text-field input,.manuscript{width:100%;border:1px solid rgba(255,248,232,.16);border-radius:8px;color:var(--text);background:#0a09076b}.text-field input{min-height:41px;padding:0 12px}.writer-panel{min-height:calc(100vh - 160px)}.title-field{margin-bottom:14px}.control-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:12px;margin-bottom:14px}.segmented-control{gap:7px;min-width:0;margin:0;padding:6px;border:1px solid rgba(255,248,232,.14);border-radius:8px;background:#fff8e80d}.segmented-control legend{padding:0 6px}.segment{justify-content:center;gap:7px;min-width:0;min-height:36px;flex:1 1 0;border-radius:6px;color:var(--muted);background:transparent}.segment.selected{color:#16110a;background:var(--gold)}.manuscript{min-height:58vh;resize:vertical;padding:18px;font-family:Georgia,Times New Roman,serif;font-size:1.13rem;line-height:1.65}.side-stack{display:grid;gap:18px}.assistant-panel .section-heading{color:var(--gold)}.assistant-nudge{margin:0 0 14px;padding-left:12px;border-left:3px solid var(--blue);color:#eff7f5;line-height:1.5}.upgrade-list,.story-list{display:grid;gap:9px}.upgrade-button{align-items:flex-start;gap:4px;flex-direction:column;width:100%;border:1px solid rgba(255,248,232,.14);border-radius:8px;padding:11px 12px;color:var(--text);text-align:left;background:#5b9bb81c}.quiet-copy{margin:0;line-height:1.5}.cover-preview{display:block;width:100%;aspect-ratio:3 / 4;object-fit:cover;border:1px solid rgba(255,248,232,.16);border-radius:8px;background:#14110d}.count-badge{display:inline-grid;place-items:center;min-width:34px;min-height:34px;border-radius:8px;font-weight:800}.story-row{gap:10px;width:100%;min-height:70px;border:1px solid rgba(255,248,232,.13);border-radius:8px;padding:8px;color:var(--text);text-align:left;background:#fff8e80d}.story-row img{width:44px;height:58px;border-radius:5px;object-fit:cover}.story-row span{display:grid;gap:3px;min-width:0;flex:1}.story-row strong,.story-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:1180px){.workspace{grid-template-columns:1fr 1fr}.side-stack{grid-column:1 / -1;grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:820px){.app-shell{padding:16px}.topbar{align-items:stretch;flex-direction:column}.topbar-actions{justify-content:flex-start}.workspace,.side-stack,.control-grid{grid-template-columns:1fr}.writer-panel{min-height:auto}.manuscript{min-height:420px}}@media(max-width:520px){.app-shell{padding:12px}.topbar h1{font-size:2.15rem}.panel,.w-card{padding:12px}.primary-action,.secondary-action,.progress-pill{width:100%;justify-content:center}.segmented-control{flex-wrap:wrap}}
