.settings-column{display:contents}.outline-preview,.workspace-switch,.browser-storage-note,.startup-status{display:none}
.web-shell{--shadow:0 5px 24px rgba(35,39,40,.055);background:#f0ece4}
.web-shell main{max-width:1840px;padding:1.4rem 1.6rem 3rem}
.web-shell .topbar{padding:.85rem 1.6rem;background:#111115}
.web-shell .top-actions button{font-size:.82rem;padding:.58rem .9rem}
.web-shell .brand h1{font-size:1.25rem}.web-shell .brand p{font-size:.67rem}
.web-shell .panel{border-radius:12px;background:#fffdf8}
.web-shell .start-view{min-height:calc(100dvh - 145px)}
.web-shell .start-hero{width:min(1000px,100%);padding:2.5rem 2.6rem}
.web-shell .start-hero h2{font-size:2.45rem;letter-spacing:-.035em;line-height:1.12}
.web-shell .start-hero .lede{font-size:1rem;line-height:1.65;max-width:650px;margin-top:.9rem}
.web-shell .start-heading{padding-bottom:1.4rem}.web-shell .start-grid{gap:1rem;margin-top:1.35rem}
.web-shell .start-card{min-height:210px;padding:1.5rem;justify-content:flex-start;transition:border-color .12s,background .12s}
.web-shell .start-card>strong{font-size:1.2rem;line-height:1.3}
.web-shell .start-card>small{font-size:.9rem;line-height:1.6;margin-top:.7rem}
.web-shell .start-action{font-size:.85rem;margin-top:auto;padding-top:1.2rem}
.web-shell #generateStartBtn{border-top:3px solid var(--accent)}
.web-shell .text-button{font-size:.82rem;padding-top:1rem}
.web-shell .plan-chip{font-size:.78rem;padding:.5rem .7rem;margin-left:.8rem}
.web-shell .browser-storage-note{display:flex;justify-content:space-between;gap:1rem;font-size:.77rem;color:var(--muted);line-height:1.6;margin:1.2rem 0 0}
.web-shell #offlineStatus{white-space:nowrap;color:var(--teal)}
.web-shell .startup-status:not([hidden]){display:block;font-size:.85rem;color:var(--muted);padding:.9rem 0 0}
.web-shell .workbench-toolbar{align-items:flex-start;padding:1.15rem 1.3rem;gap:1.4rem}
.web-shell .workbench-title-wrap h2{font-size:1.8rem;white-space:normal;line-height:1.15;max-width:780px;letter-spacing:-.025em}
.web-shell .workbench-title-wrap>p{font-size:.85rem;line-height:1.55;max-width:860px}
.web-shell .title-line{align-items:flex-start;gap:1rem}
.web-shell .toolbar-actions{justify-content:flex-end;max-width:400px;flex-shrink:0}
.web-shell .toolbar-actions #copyBtn,.web-shell .toolbar-actions #pdfBtn{display:none}
.web-shell .toolbar-actions button{font-size:.76rem;min-height:38px}
.web-shell .autosave-status{font-size:.67rem;margin-top:.2rem}
.web-shell .workbench-layout{grid-template-columns:minmax(365px,470px) minmax(0,1fr);gap:1.3rem}
.web-shell .settings-column{display:flex;flex-direction:column;gap:1rem;min-width:0}
.web-shell .architecture-column{order:0;gap:.8rem;min-width:0}
.web-shell .control-rail{order:1;display:grid;grid-template-columns:1fr;position:static;min-width:0}
.web-shell .derived-summary,.web-shell .creative-space{display:none}
.web-shell .lever-section-head{padding:.85rem 1rem}.web-shell .lever-section-head h3{font-size:1.05rem}
.web-shell .lever-row{grid-template-columns:112px minmax(0,1fr) auto;gap:.6rem;padding:.8rem 1rem}
.web-shell .lever-label strong{font-size:.8rem}.web-shell .lever-label small{font-size:.66rem;line-height:1.35}
.web-shell .lever-value strong{font-size:.9rem;white-space:normal;line-height:1.3}
.web-shell .lever-value small{font-size:.7rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.web-shell .lever-actions{gap:.25rem}.web-shell .lever-actions button{min-width:32px;padding:.4rem .38rem}
.web-shell .slider-row{grid-template-columns:105px 1fr 75px;gap:.65rem}
.web-shell .slider-row label{font-size:.8rem}.web-shell .slider-value{font-size:.72rem}
.web-shell .sliders{gap:.9rem}.web-shell .depth-description{font-size:.73rem;line-height:1.55}
.web-shell .helper{font-size:.73rem;line-height:1.55}.web-shell .health-item{font-size:.8rem;line-height:1.5}
.web-shell .outline-preview{display:flex;flex-direction:column;min-width:0;position:sticky;top:92px;max-height:var(--outline-height,calc(100dvh - 110px));overflow:hidden}
.outline-preview-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.3rem;border-bottom:1px solid var(--line);background:#f8f4ec}
.outline-preview-head h3{font-size:1.05rem}.outline-preview-head p{font-size:.7rem;color:var(--muted);margin:.25rem 0 0;line-height:1.4}
.preview-actions{display:flex;gap:.4rem}.preview-actions button{font-size:.76rem;padding:.48rem .66rem}
.outline-scroller{overflow:auto;overscroll-behavior:contain;min-height:300px;scrollbar-gutter:stable}
.outline-page{max-width:82ch;margin:0 auto;padding:2rem 2.3rem 3rem;font-size:.94rem;line-height:1.85;color:#303333;overflow-wrap:anywhere;outline:none}
.outline-page h1,.outline-page h2,.outline-page h3,.outline-page h4{font-family:Georgia,serif;line-height:1.25;letter-spacing:-.015em;color:#20272c}
.outline-page h1{font-size:2rem;margin:0 0 .7rem}.outline-page h2{font-size:1.5rem;margin:2.2rem 0 .8rem;padding-top:.2rem}
.outline-page h3{font-size:1.13rem;margin:1.6rem 0 .6rem}.outline-page h4{font-size:1rem;margin:1.2rem 0 .5rem}
.outline-page p{margin:.7rem 0 1rem}.outline-page h1+p{color:var(--muted);font-size:.8rem;line-height:1.6}
.outline-page li{margin:.45rem 0}.outline-page code{font-size:.86em}.outline-page hr{border:0;border-top:1px solid var(--line);margin:1.5rem 0}
.outline-empty{padding:4rem 2.3rem;color:var(--muted);font-size:.9rem;line-height:1.7;max-width:580px;margin:auto}
.outline-empty h3{color:var(--ink);font-size:1.35rem;margin-bottom:.7rem}
.web-shell .idea-card h3{font-size:1.45rem}.web-shell .idea-pitch{font-size:.93rem;line-height:1.65}
.web-shell .idea-anchor{font-size:.82rem;padding:.55rem}.web-shell .idea-anchor span{font-size:.64rem}
.web-shell .idea-card .use-btn{padding:.8rem;font-size:.87rem}
.web-shell .choose-option small{font-size:.8rem;line-height:1.55}.web-shell .choose-option{padding:.9rem 1rem}
.web-shell .choose-options{max-height:60vh}.web-shell .saved-item{padding:.9rem}.web-shell .saved-item small{font-size:.76rem}
.web-shell .saved-actions button{font-size:.76rem}.web-shell .modal-head h2{font-size:1.4rem}
.web-shell .about-section p,.web-shell .about-section li,.web-shell .legal-body p,.web-shell .legal-body li{font-size:.85rem;line-height:1.65}
.web-shell .paywall-intro,.web-shell .paywall-note{font-size:.87rem;line-height:1.65}
.web-shell .onboarding-card p{font-size:.83rem;line-height:1.55}.web-shell .onboarding-intro{font-size:.9rem;line-height:1.6}
.skip-link{position:fixed;top:-60px;left:12px;z-index:500;background:#fff;padding:.7rem 1rem;color:var(--ink);border:2px solid var(--accent);border-radius:6px}
.skip-link:focus{top:10px}
.purchase-recovery-body{display:grid;gap:1rem}
.purchase-recovery-body label{display:block;font-size:.8rem;font-weight:700;margin:.8rem 0 .4rem}
.purchase-recovery-body textarea,.purchase-recovery-body input{box-sizing:border-box;display:block;width:100%;min-width:0;font:500 .88rem/1.7 ui-monospace,monospace;padding:.8rem;border:1px solid var(--line);border-radius:8px;background:#fffdf8;color:var(--ink);overflow-wrap:anywhere}
.purchase-recovery-body textarea{resize:none;min-height:5rem}.purchase-recovery-body details summary{cursor:pointer;font-weight:700;padding:.4rem 0}.purchase-recovery-body .billing-actions{flex-wrap:wrap;margin-top:.7rem}.purchase-recovery-note{color:var(--muted)}
@media(min-width:1700px){
  .web-shell .settings-column{display:contents}
  .web-shell .workbench-layout{grid-template-columns:430px 290px minmax(0,1fr)}
  .web-shell .control-rail{order:1}.web-shell .architecture-column{order:0}.web-shell .outline-preview{order:2}
  .web-shell .slider-row{grid-template-columns:90px 1fr 62px;gap:.4rem}.web-shell .slider-row label{font-size:.73rem}
}
@media(max-width:1200px){
  .web-shell .workbench-toolbar{flex-direction:column;gap:.8rem}.web-shell .toolbar-actions{max-width:none;justify-content:flex-start}
  .web-shell .workbench-layout{grid-template-columns:minmax(340px,410px) minmax(0,1fr)}
  .outline-page{padding:1.6rem 1.5rem;font-size:.91rem}.outline-preview-head{padding:.9rem 1rem;align-items:flex-start;flex-direction:column;gap:.7rem}
}
@media(max-width:1050px){
  .web-shell main{padding:1rem}.web-shell .workbench-layout{display:block}
  .web-shell .outline-preview{position:static;max-height:none}.outline-scroller{overflow:visible;max-height:none}
  .web-shell .workspace-switch{display:flex;gap:.4rem;margin-bottom:1rem;padding:.35rem;background:#e4ded3;border-radius:10px}
  .workspace-switch button{flex:1;border:0;background:transparent;font-size:.84rem;padding:.7rem}
  .workspace-switch button[aria-pressed="true"]{background:#fffdf8;box-shadow:0 2px 8px #0000000c;font-weight:700}
  .web-shell .workbench-layout[data-workspace-view="edit"] .outline-preview{display:none}
  .web-shell .workbench-layout[data-workspace-view="read"] .settings-column{display:none}
  .web-shell .settings-column{max-width:760px;margin:auto}.outline-preview-head{flex-direction:row;align-items:center}
  .web-shell .control-rail{grid-template-columns:1fr}.web-shell .outline-page{max-width:80ch;padding:2rem}
}
@media(max-width:760px){
  .web-shell .topbar{padding:.65rem .7rem}.web-shell .brand h1{font-size:1.08rem}
  .web-shell .top-actions button{padding:.6rem .4rem;font-size:.75rem}.web-shell main{padding:.7rem .6rem 2.5rem}
  .web-shell .start-view{min-height:calc(100dvh - 150px)}.web-shell .start-hero{padding:1.4rem 1.15rem}
  .web-shell .start-hero h2{font-size:1.95rem}.web-shell .start-hero .lede{font-size:.92rem;line-height:1.65}
  .web-shell .start-card{min-height:175px;padding:1.2rem}.web-shell .start-card>strong{font-size:1.12rem}.web-shell .start-card>small{font-size:.87rem}
  .web-shell .browser-storage-note{flex-direction:column;gap:.35rem}.web-shell .plan-chip{margin-left:0;margin-top:.8rem;display:flex;width:max-content;max-width:100%}
  .web-shell .workbench-title-wrap h2{max-width:none;font-size:1.5rem}.web-shell .workbench-title-wrap>p{font-size:.8rem}
  .web-shell .workbench-toolbar{padding:1rem}.web-shell .toolbar-actions{display:flex;flex-wrap:wrap;width:100%;gap:.4rem}
  .web-shell .toolbar-actions button{width:auto;flex:1;font-size:.72rem;padding:.5rem}.web-shell #fillBtn,.web-shell #rerollAllBtn{flex-basis:42%}
  .web-shell .lever-row{grid-template-columns:90px minmax(0,1fr) auto;padding:.8rem .8rem;gap:.5rem}
  .web-shell .lever-label strong{font-size:.77rem}.web-shell .lever-actions button{min-width:32px;min-height:40px;padding:.4rem .3rem}
  .web-shell .lever-value strong{font-size:.84rem}.web-shell .lever-value small{font-size:.7rem}
  .outline-preview-head{padding:.9rem;gap:.6rem;align-items:flex-start;flex-direction:column}
  .preview-actions{width:100%}.preview-actions button{flex:1;min-height:42px}
  .web-shell .outline-page{padding:1.4rem 1.15rem;font-size:.91rem;line-height:1.85}.outline-page h1{font-size:1.7rem}
  .web-shell .slider-row{grid-template-columns:100px 1fr 70px}.outline-empty{padding:2.5rem 1.2rem}
}
@media print{
  body.web-shell{background:white!important}.web-shell .topbar,.web-shell .workbench-toolbar,.web-shell .workspace-switch,.web-shell .settings-column,.web-shell .outline-preview-head,.web-shell .view:not(#workbenchView),.web-shell .toast,.web-shell dialog,.web-shell .busy{display:none!important}
  .web-shell main,.web-shell .workbench-layout,.web-shell .outline-preview,.web-shell .outline-scroller{display:block!important;max-height:none!important;overflow:visible!important;padding:0!important;border:0!important;box-shadow:none!important;position:static!important}
  .web-shell .outline-page{font-size:10.5pt;line-height:1.6;max-width:none;padding:0!important}.outline-page h2,.outline-page h3{break-after:avoid}.outline-page p{orphans:3;widows:3}
}
