@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root{font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#15171c;background:#fff;font-synthesis:none;font-size:17px;--sans:Manrope,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--serif:var(--sans);--ink:#15171c;--navy:#2e2b36;--muted:#626875;--line:#e4e7ee;--action:#007d85;--action-hover:#006971;--action-text:#056970;--action-soft:#e8f7f6;--focus:#056970;--progress:#535363;--notification:#292735;--danger:#b3362d;--danger-soft:#fff5f1;--success:#246349;--success-soft:#e9f6ef;--accent:var(--action);--accent-hover:var(--action-hover);--blue:var(--action);--paper:#fff;--surface:#fff;--canvas:#f8f8fa;--moss:var(--action);--sage:var(--action);--sage-soft:var(--action-soft);--teal:#087f79;--violet:#7251c9;--sun:#f7bd36;--radius:16px}

*{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit}
button{cursor:pointer;touch-action:manipulation}
a{color:inherit}
button:disabled{cursor:not-allowed;opacity:.5}
button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}
button,a{transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
h1,h2,h3,p{margin-top:0}
h1{font-size:40px;line-height:1.17;letter-spacing:-1.6px;font-weight:750;margin-bottom:16px}
h2{font-size:20px;letter-spacing:-.5px;font-weight:750}
h3{font-size:16px;letter-spacing:-.2px}
p{line-height:1.65}
.muted,.help{color:var(--muted)}
.help{font-size:16px;line-height:1.65}
.eyebrow{display:flex;align-items:center;gap:10px;font-size:14px;letter-spacing:1.75px;text-transform:uppercase;font-weight:750;color:var(--muted);margin-bottom:18px}
.lead{max-width:630px;color:var(--muted);font-size:17px;line-height:1.8;margin-bottom:30px}
.icon{width:20px;height:20px;flex:none;display:inline-block;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:17px;font-weight:800;letter-spacing:-.55px;text-decoration:none;white-space:nowrap}
.brand-mark{width:35px;height:39px;display:inline-grid;place-items:center;color:var(--accent);flex:none}
.brand-mark svg{width:100%;height:100%}
.text-btn{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:var(--muted);font-size:16px;font-weight:650;padding:9px 0;min-height:36px;text-decoration:none}
.text-btn:hover{color:var(--ink)}
.text-btn .icon{width:16px;height:16px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border:1px solid transparent;border-radius:10px;padding:12px 20px;font-size:16px;font-weight:750;background:var(--moss);color:#fff;text-decoration:none;line-height:1.45}
.btn:hover{background:var(--action-hover);box-shadow:0 3px 9px #20396a12}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--accent);color:#fff}
.btn.primary:hover{background:var(--action-hover)}
.btn.secondary{background:#fff;border-color:#dce0e8;color:var(--ink)}
.btn.secondary:hover{background:#f6f8fc;border-color:#acb7cd}
.btn.danger{color:var(--danger);background:var(--danger-soft);border-color:#efd7d0}
.btn.danger:hover{color:#982c25;background:#ffe8e1;border-color:#dca59a}
.btn.small{min-height:35px;padding:8px 12px;font-size:14px}
.btn .icon{width:17px;height:17px}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:27px;margin-bottom:20px}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.section-number{font-size:14px;color:var(--muted)}
.fields{display:grid;gap:22px}
.fields>.help{margin:0}
.fields>details{margin-top:0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
label.field{display:flex;flex-direction:column;gap:9px;font-size:16px;font-weight:700}
.field>small{font-size:14px;line-height:1.6;font-weight:400;color:var(--muted)}
.field input,.field textarea,.field select,.search-input{width:100%;border:1px solid #d5dbe6;border-radius:9px;background:#fff;color:var(--ink);padding:12px 13px;line-height:1.6;font-weight:450;font-size:17px;min-width:0;transition:border-color .2s,box-shadow .2s}
.field textarea{resize:vertical;min-height:108px}
.field input:focus,.field textarea:focus,.field select:focus,.search-input:focus{border-color:var(--focus);box-shadow:0 0 0 3px #007d8518}
.field input::placeholder,.field textarea::placeholder,.search-input::placeholder{color:#737b8b}
.chips{display:flex;flex-wrap:wrap;gap:9px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #dce2ee;border-radius:8px;background:#fff;color:var(--muted);font-size:16px}
.chip[aria-pressed=true]{background:var(--action-soft);color:var(--action-text);border-color:var(--action-text)}
.chip[aria-pressed=true]:before{content:'✓';font-weight:700}
.chip:hover{border-color:var(--action-text)}
.label{font-size:16px;font-weight:700;display:block;margin-bottom:12px}
.form-section+.form-section{margin-top:24px}
.divider{border:0;border-top:1px solid var(--line);margin:24px 0}
.avatar{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:50%;font-size:17px;font-weight:650;background:#f1eafb;color:#7251c9;flex:none;overflow:hidden;border:2px solid #fff}
.avatar:nth-child(2n){background:#dff5ed;color:#266452}
.avatar:nth-child(3n){background:#fee8e4;color:#933d37}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar-stack{display:flex;margin-top:20px}
.avatar-stack .avatar+.avatar{margin-left:-8px}
.badge{font-size:14px;font-weight:650;line-height:1.5;border-radius:5px;display:inline-flex;align-items:center;gap:5px;padding:4px 7px;color:#626875;background:#f0f2f7}
.badge.done{color:var(--success);background:var(--success-soft)}
.badge.open{color:#665483;background:#f2eef9}
.item-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;min-width:0;transition:border-color .2s,box-shadow .2s}
.item-card:hover{border-color:#b5c3e1;box-shadow:0 5px 16px #20396a08}
.item-card h3{font-size:18px;margin-bottom:6px;overflow-wrap:anywhere}
.item-card p{font-size:16px;line-height:1.7;color:var(--muted);white-space:pre-line;overflow-wrap:anywhere;margin-bottom:15px}
.item-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
.item-card .actions{margin-top:18px}
.card-subtitle,.reference-count,.file-meta{font-size:14px;color:var(--muted);line-height:1.6}
.add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;border:1px dashed #bdc8df;border-radius:14px;background:#f8f9fc;color:#655d71;min-height:180px;font-size:16px;font-weight:650}
.add-card:hover{background:var(--action-soft);border-color:var(--action-text)}
.add-card>span{width:40px;height:40px;display:grid;place-items:center;border:1px solid #d8e1f6;border-radius:50%;font-size:23px;font-weight:400}
.check-list{list-style:none;padding:0;margin:0}
.check-list li{font-size:16px;padding:11px 0;display:flex;gap:10px;align-items:baseline;line-height:1.6}
.check-icon{font-size:16px;width:20px;flex:none;color:#8c96a9}
.check-icon.done{color:var(--success)}
.notice{padding:16px 18px;background:#f5f5f7;border:1px solid #e6e5e9;border-radius:10px;font-size:16px;color:#57545f;line-height:1.75;margin:18px 0}
.notice.warn{background:#fff5ef;border-color:#f6dfd1;color:#895737}
.file-preview{width:100%;height:165px;border-radius:10px;background:#f3f5fa;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:20px}
.file-preview img{width:100%;height:100%;object-fit:contain}
.file-preview audio{width:95%}
.file-preview span{font-size:17px;color:var(--muted)}
details{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}
summary{cursor:pointer;font-size:16px;font-weight:650;line-height:1.6}
details[open]>summary{margin-bottom:20px}
.row{display:flex;align-items:center;gap:12px}
.wrap{flex-wrap:wrap}
.spacer{height:12px}
.upload-progress{font-size:16px;margin-top:14px}
.reading-list li{font-size:17px;line-height:1.6;padding:5px 0}
.link-list a{display:block;font-size:16px;line-height:1.6;padding:7px 0;color:var(--action-text);text-decoration:underline;text-underline-offset:4px}
.link-list a:hover{color:var(--action-hover)}
.callout{padding:24px;color:var(--muted);font-size:16px}
.callout p{margin:0}
.choice-description{font-size:16px;color:var(--muted)}
.hero-thumb{width:56px;height:56px;border-radius:12px;object-fit:cover}
.error{color:var(--danger);font-size:16px;line-height:1.7}
.error[hidden]{display:none}
.account-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:14px}
.account-controls .icon{width:15px;height:15px}
.storage-pill{display:inline-flex;align-items:center;gap:7px;font-size:14px;white-space:nowrap;color:var(--muted)}
.status-dot{width:6px;height:6px;border-radius:50%;background:#28a36e;display:inline-block;flex:none}

/* Overlays, recovery and keyboard navigation. */
.boot{max-width:540px;margin:12vh auto;padding:36px}
.boot h1{font-family:var(--sans);font-size:38px;font-weight:750;letter-spacing:-1.4px;margin-top:20px}
.auth-page{background:#fff;border:1px solid var(--line);border-radius:22px;padding:44px}
.auth-page>.btn{margin:12px 0 22px}
#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);max-width:min(520px,calc(100vw - 28px));padding:13px 20px;border-radius:11px;background:var(--notification);color:#fff;font-size:16px;line-height:1.65;box-shadow:0 8px 24px #15234a26;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:99}
#toast.show{opacity:1;transform:translate(-50%,0)}
dialog{padding:0;border:1px solid #e4e7ee;border-radius:18px;width:min(600px,calc(100vw - 28px));max-height:88vh;box-shadow:0 25px 90px #15234a2e;color:var(--ink);background:#fff}
dialog::backdrop{background:#10182f66;backdrop-filter:blur(5px)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 29px;border-bottom:1px solid var(--line)}
.dialog-head h2{margin:0;font-size:20px}
.dialog-body{padding:27px 29px}
.dialog-body p{font-size:17px;line-height:1.75}
.dialog-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:18px 29px;background:#f8f8fa;border-top:1px solid var(--line);position:sticky;bottom:0}
.icon-btn{width:32px;height:32px;display:grid;place-items:center;background:#f0f3fa;color:#56637d;border:0;border-radius:50%;font-size:22px;flex:none}
.icon-btn:hover{background:#e2e9fa}
.mono{padding:16px;border:1px solid var(--line);border-radius:8px;background:#f8f8fa;font-family:ui-monospace,monospace;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto}
.recipe{list-style:none;counter-reset:recipe;padding:0;display:grid;gap:20px}
.recipe li{position:relative;padding-left:36px;font-size:17px;line-height:1.7;counter-increment:recipe}
.recipe li:before{content:counter(recipe);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:#f0f0f4;color:#535363;display:grid;place-items:center;font-size:14px}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;top:14px;left:14px;background:var(--moss);color:#fff;padding:13px 20px;z-index:100;border-radius:8px}

/* Home: a white sketchbook unfolding into a colourful world. */
.home-page{max-width:1360px;margin:0 auto;padding:0 48px}
.home-header{position:relative;height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px}
.brand{font-size:22px;gap:12px;letter-spacing:-.7px}
.brand-mark{width:38px;height:38px;color:var(--accent)}
.home-nav,.home-account{display:flex;gap:28px;align-items:center}
.home-nav{position:absolute;left:50%;transform:translateX(-50%)}
.home-account{margin-left:auto}
.home-nav .text-btn{font-size:16px;font-weight:650;min-height:44px}
.home-nav .nav-current{position:relative;color:var(--ink)}
.home-nav .nav-current:after{content:"";position:absolute;left:0;right:0;bottom:2px;height:3px;border-radius:2px;background:linear-gradient(90deg,#ff6757 0 25%,#ffc540 25% 50%,#12a59c 50% 75%,#9471d3 75%)}
.home-account .storage-pill{font-size:14px}
.home-content{padding-top:44px}
.home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);align-items:center;gap:40px;padding:8px 0 36px}
.hero-copy{min-width:0}
.hero-copy .eyebrow{font-size:15px;letter-spacing:.3px;text-transform:none;color:var(--muted);font-weight:600;margin-bottom:20px}
.hero-title{font-family:var(--sans);font-size:clamp(48px,4.7vw,68px);font-weight:800;letter-spacing:-3px;line-height:1.08;margin:0 0 24px;max-width:620px}
.hero-title em{font-style:normal;color:var(--ink)}
.hero-description{font-size:18px;line-height:1.65;color:var(--muted);max-width:540px;margin:0 0 28px}
.hero-create{max-width:560px}
.hero-create label{display:block;font-size:16px;font-weight:700;color:var(--ink);margin-bottom:10px}
.create-input-wrap{display:flex;align-items:flex-start;border:1px solid #cfd6e5;background:#fff;border-radius:14px;padding:14px 16px;gap:12px;transition:border-color .2s,box-shadow .2s}
.create-input-wrap:focus-within{border-color:var(--focus);box-shadow:0 0 0 4px #007d8512}
.create-input-wrap .icon{color:#687891;width:20px;height:20px;margin-top:4px}
.create-input-wrap textarea{display:block;resize:vertical;width:100%;min-width:0;min-height:72px;max-height:220px;padding:0;border:0;background:transparent;font-size:17px;line-height:1.6;color:var(--ink);outline:none}
.create-input-wrap textarea::placeholder{color:#737b8b}
.hero-create>.btn{width:100%;min-height:54px;font-size:17px;justify-content:space-between;margin-top:12px;padding:14px 20px;border-radius:12px}
.hero-fineprint{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.5;color:var(--muted);margin:12px 0 0}
.hero-fineprint .icon{width:17px;height:17px;margin-top:2px}
.hero-art{min-width:0;position:relative;width:100%;margin:0;justify-self:end}
.world-illustration{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}

.art-note{display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;line-height:1.5;color:var(--muted);margin:12px 0 0}
.home-utility{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 28px;border-bottom:1px solid var(--line)}
.home-utility .text-btn,.demo-link{font-size:15px;min-height:44px}
.demo-link{display:inline-flex;align-items:center;gap:10px;border:0;background:none;color:var(--ink);font-weight:650;padding:8px 0;text-align:left}
.demo-link .icon{color:var(--teal);width:20px;height:20px}
.demo-link:hover{color:var(--accent-hover)}
.home-utility .utility-right{display:flex;align-items:center;gap:20px}
.workflow-section{padding:28px 0 32px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.section-heading h2{font-size:20px;font-weight:750;letter-spacing:-.4px;margin:0}
.section-note{font-size:14px;color:var(--muted)}
.workflow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.workflow-step{display:flex;gap:14px;align-items:flex-start;min-width:0}
.workflow-num{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:#fff0ed;color:#b1392e;font-size:14px;font-weight:700;line-height:1}
.workflow-step:nth-child(2) .workflow-num{background:#e6f5f2;color:#08706b}
.workflow-step:nth-child(3) .workflow-num{background:#f1ebfb;color:#7251c9}
.workflow-step h3{font-size:17px;line-height:1.5;margin:3px 0 8px;font-weight:750}
.workflow-step p{font-size:15px;line-height:1.65;color:var(--muted);margin:0}
.home-footer{border-top:1px solid var(--line);padding:24px 0 28px;display:flex;justify-content:space-between;align-items:flex-start;gap:32px}
.home-footer p{font-size:14px;line-height:1.6;max-width:730px;margin:0;color:var(--muted)}
.home-footer .text-btn{font-size:14px;white-space:nowrap;padding:0;min-height:28px}
.home-returning .home-hero{grid-template-columns:1.35fr 1fr;gap:72px;padding-bottom:36px}
.home-returning .hero-title{font-size:54px;letter-spacing:-2.5px}
.home-returning .hero-description{margin-bottom:24px}
.home-returning .hero-art{max-width:440px;justify-self:end;width:100%}

.hero-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.hero-actions .btn{font-size:17px;min-height:52px;border-radius:12px}
.hero-actions .text-btn{font-size:15px}
.project-shelf{border-top:1px solid var(--line);padding:28px 0 36px}
.project-shelf h2{display:flex;gap:10px;align-items:center;font-size:22px}
.project-count{display:inline-grid;place-items:center;min-width:28px;height:26px;background:#f0f0f4;color:#535363;font-size:14px;border-radius:7px}
.project-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.project-open{display:block;min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left;padding:0;overflow:hidden;color:var(--ink)}
.project-open:hover{transform:translateY(-3px);border-color:#cdbddb;box-shadow:0 12px 28px -14px #253a633d}
.project-cover{display:flex;align-items:flex-end;position:relative;overflow:hidden;height:150px;background:#efe7fb;padding:16px}
.project-cover>img{position:absolute;inset:0;object-fit:cover;width:100%;height:100%}
.cover-tag{position:relative;z-index:1;display:inline-block;font-size:13px;line-height:1.5;font-weight:650;color:#534961;background:#fff;padding:5px 10px;border-radius:6px}
.paper-forms{position:absolute;inset:0;overflow:hidden}
.paper-forms:before{content:'';position:absolute;width:220px;height:220px;border-radius:45px;transform:rotate(30deg);background:#c3aceb;right:-24px;top:38px;box-shadow:-90px 100px 0 15px #8868c4}
.paper-forms:after{content:'';position:absolute;width:64px;height:64px;border-radius:50%;background:#fff;right:85px;top:26px}
.cover-1{background:#d9f1ef}.cover-1 .paper-forms:before{background:#94ceca;box-shadow:-90px 100px 0 15px #388581}
.cover-2{background:#ffe5dc}.cover-2 .paper-forms:before{background:#f5b3a0;box-shadow:-90px 100px 0 15px #d67962}
.project-info{display:block;padding:20px}
.project-info strong{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:20px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.project-info strong .icon{width:20px;height:20px;flex:none;color:var(--muted)}
.project-info small{display:block;font-size:14px;color:var(--muted);margin-top:10px}
.project-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.project-meta span{font-size:13px;color:var(--muted);line-height:1.5}
.new-project-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:280px;padding:28px;gap:16px;text-align:center;border:1px dashed #bdc8df;border-radius:16px;background:#fafafb;color:var(--muted)}
.new-project-tile:hover{border-color:var(--action-text);background:var(--action-soft);color:var(--action-text)}
.new-project-tile>.icon{width:44px;height:44px;padding:10px;border-radius:12px;background:#f1e9f8}
.new-project-tile strong{font-size:17px;font-weight:700}
.new-project-tile small{max-width:230px;font-size:14px;line-height:1.6;color:var(--muted)}

/* Shared type rhythm and touch sizes. */
.text-btn{min-height:44px;font-size:15px}
.btn{min-height:48px;font-size:16px;padding:12px 20px}
.btn.small{min-height:40px;font-size:14px;padding:8px 12px}
label.field{font-size:16px;gap:10px}
.field>small,.help{font-size:14px;line-height:1.65}
.field input,.field textarea,.field select,.search-input{font-size:17px;line-height:1.6;padding:12px 14px;background:#fff}
.eyebrow{font-size:14px;letter-spacing:.8px}
.lead{font-size:18px;line-height:1.65;max-width:720px;margin-bottom:28px}
.chip{font-size:15px;padding:11px 14px}
.badge{font-size:13px;padding:5px 8px}
.icon-btn{width:40px;height:40px;font-size:24px}
.panel{padding:28px}
.item-card p{font-size:16px}
.dialog-body p,.recipe li{font-size:16px}
.recipe li{padding-left:42px}
.recipe li:before{width:28px;height:28px;font-size:14px}
.dialog-head,.dialog-body{padding:24px 28px}
.dialog-footer{padding:20px 28px}
.boot h1{font-family:var(--sans);font-weight:750}

@media(min-width:1700px){.home-page{max-width:1360px;padding:0 48px}.home-hero{gap:48px}.hero-description{font-size:19px}}
@media(max-width:1100px){.home-page{padding:0 32px}.home-hero{gap:36px;grid-template-columns:1.1fr 1fr}.hero-title{font-size:48px;letter-spacing:-2.1px}.home-header{height:80px}.home-nav{gap:20px}.home-nav .text-btn{font-size:15px}.brand{font-size:20px}.hero-description{font-size:17px}.home-returning .hero-title{font-size:46px}.workflow-grid{gap:24px}.workflow-step{gap:10px}.project-list{gap:20px}}
@media(max-width:860px){.home-nav{display:none}.home-hero{grid-template-columns:1fr;gap:36px;padding-bottom:28px}.hero-copy{max-width:none}.hero-art{max-width:580px;width:100%;justify-self:center}.home-returning .home-hero{grid-template-columns:1fr;gap:0}.home-returning .hero-art{display:none}.home-returning .hero-title{font-size:48px}.hero-create{max-width:none}.workflow-grid{grid-template-columns:1fr;gap:24px}.workflow-step p{max-width:600px}.project-list{grid-template-columns:repeat(2,minmax(0,1fr))}.home-footer{flex-direction:column;gap:12px}}
@media(max-width:600px){h1{font-size:34px;letter-spacing:-1.3px}h2{font-size:21px}.home-page{padding:0 24px}.home-header{height:76px;gap:16px}.brand{font-size:19px;gap:9px}.brand-mark{width:32px;height:32px}.home-account{gap:0}.home-account .storage-pill{font-size:13px;max-width:95px;white-space:normal;line-height:1.4;gap:6px}.home-content{padding-top:28px}.home-hero{gap:28px;padding-top:0}.hero-copy .eyebrow{font-size:13px;margin-bottom:16px}.hero-title{font-size:44px;letter-spacing:-1.9px;margin-bottom:20px}.hero-description{font-size:17px;line-height:1.6;margin-bottom:24px}.hero-create label{font-size:16px}.create-input-wrap{padding:14px 12px;gap:10px}.create-input-wrap textarea{font-size:16px;min-height:76px}.hero-fineprint{font-size:14px}.hero-art{margin:0;width:100%;max-width:460px}.art-note{margin-top:14px;font-size:14px}.home-utility{align-items:flex-start;flex-direction:column;gap:8px;padding-bottom:24px}.home-utility .text-btn,.demo-link{font-size:14px}.workflow-section{padding:24px 0 28px}.section-heading{align-items:flex-start;gap:12px;margin-bottom:24px}.section-heading h2{font-size:20px}.section-note{font-size:13px}.workflow-step{gap:14px}.home-footer{padding:20px 0 24px}.home-footer p{font-size:13px}.home-footer .text-btn{font-size:14px}.home-returning .hero-title{font-size:42px;letter-spacing:-1.8px}.hero-actions{gap:12px}.hero-actions .btn{font-size:16px}.hero-actions .text-btn{font-size:15px}.project-list{grid-template-columns:1fr;gap:20px}.project-shelf{padding:24px 0 28px}.project-info{padding:20px}.project-info strong{font-size:20px}.project-info small{font-size:14px}.new-project-tile{min-height:180px;gap:12px}.two-col{grid-template-columns:1fr;gap:20px}.panel,.item-card{padding:20px}.panel-heading{flex-wrap:wrap}.dialog-head,.dialog-body{padding:20px}.dialog-footer{padding:16px 20px}.field input,.field textarea,.field select{font-size:16px}.auth-page{margin:7vh 20px;padding:24px}.row{gap:10px}.lead{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Film-first context and optional continuation share the same spacing rhythm. */
.idea-reminder{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;background:#f8f3fc;border:1px solid #e6e5e9;border-radius:12px;margin-bottom:18px}
.idea-reminder>.icon{color:var(--muted);width:20px;height:20px;margin-top:2px}
.idea-reminder>div{flex:1;min-width:0}
.idea-reminder small{font-size:14px;font-weight:650;color:#655d71}
.idea-reminder p{font-size:15px;line-height:1.55;margin:3px 0 0;overflow-wrap:anywhere}
.idea-reminder .text-btn{font-size:14px;min-height:32px;padding:2px 0;color:var(--action-text);text-decoration:underline;text-underline-offset:4px}
.continuation-card{display:flex;gap:16px;padding:24px 0;border-top:1px solid var(--line);margin-top:28px}
.continuation-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:10px;background:var(--action-soft);color:var(--action-text)}
.continuation-card p{font-size:16px;color:var(--muted);margin:0 0 8px;line-height:1.6}
.continuation-card h3{font-size:18px;margin:0 0 8px}
@media(max-width:600px){.idea-reminder{flex-wrap:wrap;padding:16px;gap:10px}.idea-reminder>.text-btn{margin-left:30px}.continuation-card{gap:12px}.continuation-card p{font-size:15px}}

.field input:focus-visible,.field textarea:focus-visible,.field select:focus-visible,.search-input:focus-visible{outline:2px solid var(--focus);outline-offset:0;box-shadow:none}

@media(max-width:600px){.home-header{gap:12px}.home-account .storage-pill{white-space:nowrap;max-width:none}.home-account .account-controls>.icon,.home-account .account-controls>span{display:none}.home-account .account-controls{gap:0}}

/* One idea branches into three readable, working formats. */
.fork-page{max-width:1328px}
.fork-page .home-content{padding-top:22px}
.idea-studio{padding-bottom:18px}
.idea-heading{text-align:center}
.idea-heading h1{font-size:clamp(40px,3.5vw,52px);line-height:1.13;letter-spacing:-2.3px;font-weight:800;margin:0 0 10px;text-wrap:balance}
.idea-description{max-width:720px;margin-left:auto;margin-right:auto;font-size:17px;line-height:1.55;color:var(--muted);margin:0 auto 40px;text-wrap:balance}
.idea-origin{position:relative;z-index:1;max-width:620px;margin:0 auto;text-align:left}
.idea-origin>label{display:block;font-size:16px;font-weight:700;margin:0 0 8px}
.idea-input-wrap{display:flex;gap:13px;align-items:flex-start;padding:16px 18px;border:2px solid #b8d7d4;border-radius:16px;background:#f8fcfb;box-shadow:0 12px 30px -22px #075f654d;transition:border-color .18s,box-shadow .18s,background .18s}
.idea-input-wrap>.icon{width:20px;height:20px;color:var(--action);margin-top:6px}
.idea-input-wrap:focus-within{border-color:var(--focus);background:#fff;box-shadow:0 0 0 4px #007d8514,0 14px 32px -22px #075f654d}
.idea-input-wrap textarea{font-size:17px;line-height:1.55;width:100%;min-width:0;height:56px;min-height:56px;max-height:190px;padding:0;border:0;resize:vertical;background:transparent;color:var(--ink);outline:none}
.idea-input-wrap textarea::placeholder{color:#626875;opacity:1}
.idea-input-wrap textarea:focus-visible{outline:none}
.fork-label{position:relative;display:block;width:max-content;margin:28px auto 0;background:#fff;color:var(--muted);font-size:14px;line-height:20px}
.format-fork{margin:0 auto;max-width:1128px}
.fork-lines{display:block;width:100%;height:32px;overflow:visible}
.fork-lines path{fill:none;stroke-width:1.7;vector-effect:non-scaling-stroke}
.format-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.format-choice{--format-color:#08706b;--format-tint:#e6f5f2;position:relative;min-width:0;background:#fff;border:1px solid transparent;border-radius:20px;padding:0 12px 14px;text-align:left;color:var(--ink);transition:transform .2s,border-color .2s,box-shadow .2s}
.format-comic .format-art{clip-path:inset(0 13% 0 14%)}
.format-comic{--format-color:#7251c9;--format-tint:#f1ebfb}
.format-film{--format-color:#bd3d31;--format-tint:#fff0ed}
.format-choice:before{z-index:2;content:'';position:absolute;top:-4px;left:calc(50% - 4px);width:8px;height:8px;border-radius:50%;background:var(--format-color);box-shadow:0 0 0 5px #fff}
.format-choice:hover{border-color:var(--format-color);box-shadow:0 10px 30px -24px var(--format-color);transform:translateY(-3px)}
.format-choice:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.format-art{display:block;aspect-ratio:1;width:184px;max-width:100%;margin:0 auto;background-image:url('/assets/story-formats-v005.webp');background-size:300% auto;background-repeat:no-repeat;background-position:50% 50%}
.format-illustrated-story .format-art{background-size:270% auto;background-position:0 50%}
.format-film .format-art{background-size:285% auto;background-position:100% 50%}
.format-choice-copy{display:block;max-width:290px;margin:0 auto}
.format-choice-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:24px;font-weight:800;line-height:1.3;letter-spacing:-.6px}
.format-arrow{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--format-tint);color:var(--format-color)}
.format-arrow>.icon{width:19px;height:19px}
.format-description{display:block;font-size:15px;line-height:1.5;color:var(--muted);margin-top:6px}
@media(min-width:701px){.format-choice-copy{text-align:center}.format-choice-title{position:relative;justify-content:center;min-height:34px;padding:0 44px}.format-arrow{position:absolute;right:0;top:0}}
.fork-page .project-shelf{margin-top:8px}
.fork-page .home-utility{padding:10px 0 18px;border-bottom:0}
.fork-page .home-footer{padding:22px 0}
@media(min-width:1600px){.fork-page{max-width:1400px}.format-art{width:194px}.idea-heading h1{font-size:54px}.idea-studio{padding-bottom:24px}}
@media(max-width:1100px){.format-choices{gap:16px}.format-choice-title{font-size:23px}.format-art{width:176px}.fork-page .home-nav{gap:18px}.format-description{font-size:15px}}
@media(max-width:700px){.fork-page{padding:0 24px}.fork-page .home-content{padding-top:24px}.idea-heading{text-align:left}.idea-heading .eyebrow{display:none}.idea-heading h1{max-width:460px;font-size:36px;letter-spacing:-1.4px;line-height:1.13}.idea-description{font-size:17px;margin-bottom:26px}.idea-origin{max-width:none}.idea-input-wrap{padding:12px 14px;gap:10px;border-radius:14px}.idea-input-wrap>.icon{width:19px;height:19px;margin-top:8px}.idea-input-wrap textarea{font-size:16px;line-height:1.5;height:60px;min-height:60px;padding:6px 0}.fork-label{margin:24px 0 0;font-size:14px}.fork-lines{display:none}.format-fork{position:relative;margin-top:18px;padding-left:18px}.format-fork:before{display:none}.format-choice:after{content:'';position:absolute;left:-19px;top:-13px;bottom:-13px;width:1px;background:#d8d3df}.format-choice:first-child:after{top:-19px}.format-choice:last-child:after{bottom:50%}.format-choices{grid-template-columns:1fr;gap:12px}.format-choice{display:flex;align-items:center;gap:14px;padding:9px 10px 9px 2px;border:1px solid #e5e1e9;border-radius:15px;min-height:108px}.format-choice:before{left:-19px;top:50%;width:18px;height:1px;box-shadow:none;border-radius:0;background:var(--format-color)}.format-art{width:86px;flex:none;margin:0}.format-choice-copy{max-width:none;width:100%;min-width:0;margin:0}.format-choice-title{font-size:21px;letter-spacing:-.4px}.format-arrow{width:29px;height:29px}.format-arrow>.icon{width:17px;height:17px}.format-description{font-size:14px;line-height:1.5;margin-top:5px}.format-hint{display:none}.format-stage-note{text-align:left;font-size:14px;margin:18px 0 0}.idea-studio{padding-bottom:20px}.fork-page .home-utility{gap:4px;padding-top:0}}
@media(max-width:380px){.fork-page{padding:0 20px}.idea-heading h1{font-size:34px}.format-art{width:80px}.format-choice{gap:10px;min-height:102px}.format-choice-title{font-size:20px}.format-description{font-size:14px}}
