:root {
  --cream: #FAF6EF;
  --cream-mid: #F0E4D0;
  --cream-deep: #E8E0D0;
  --terracotta: #C97B5A;
  --terracotta-dark: #A85F40;
  --sage: #7F9277;
  --ink: #2A2418;
  --ink-soft: #3A322A;
  --stone-dark: #6B6358;
  --stone-mid: #9C9185;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Jost', sans-serif;
  --muted: var(--stone-dark);
  --paper: var(--cream);
  --white: var(--cream);
  --sage-2: #E4E8DF;
  --berry: var(--terracotta);
  --gold: var(--terracotta);
  --line: var(--cream-deep);
  --shadow: 0 18px 55px rgba(42, 36, 24, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); font-weight: 300; line-height: 1.8; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.serif { font-family: var(--font-serif); }
.eyebrow { color: var(--terracotta-dark); font-size: 11px; font-weight: 400; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.eyebrow::after { content: ''; display: block; width: 40px; height: 1px; margin-top: 11px; background: var(--terracotta); }
.container { width: min(1100px, calc(100% - 128px)); margin: 0 auto; }
.site-header { height: 76px; display: flex; align-items: center; position: absolute; inset: 0 0 auto; z-index: 5; color: var(--ink); background: rgba(250,246,239,.96); border-bottom: 1px solid rgba(42,36,24,.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: 26px; }
.brand { font-style: italic; }
.brand-domain { min-width: 0; font-family: var(--font-serif); font-size: 25px; font-style: italic; font-weight: 400; letter-spacing: 0; overflow-wrap: anywhere; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-nav a { opacity: .84; }
.site-nav a:hover { opacity: 1; }
.home-account { padding: 8px 0; border: 0; border-bottom: 1px solid #171310; background: transparent; color: #171310; font-size: 15px; font-weight: 500; line-height: 1.2; }
.home-account:hover { color: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.site-header .btn-light { color: var(--cream); background: var(--ink); }
.btn { min-height: 44px; border: 1px solid transparent; padding: 13px 32px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 2px; font-size: 12px; font-weight: 400; letter-spacing: .08em; line-height: 1; text-transform: uppercase; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--cream); background: var(--ink); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-accent { color: var(--cream); background: var(--terracotta); }
.btn-accent:hover { background: var(--terracotta-dark); }
.btn-secondary { background: transparent; border-color: currentColor; }
.btn-secondary:hover { color: var(--cream); background: var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-quiet { border-color: var(--cream-deep); background: var(--cream); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--white); font-size: 19px; }
.hero { min-height: min(790px, 96vh); color: var(--ink); position: relative; display: flex; align-items: center; background: var(--cream) url('assets/hero-livre-portrait.jpg') center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(250,246,239,.78); }
.hero .container { position: relative; z-index: 1; padding-top: 86px; }
.hero-copy { width: min(700px, 67vw); }
.hero .eyebrow { color: var(--terracotta-dark); }
.hero .eyebrow::after { background: var(--terracotta); }
.hero h1 { font-size: clamp(52px, 6vw, 84px); line-height: 1.08; font-weight: 400; font-style: italic; margin: 20px 0 26px; }
.hero p { font-size: 19px; line-height: 1.7; max-width: 620px; color: var(--stone-dark); }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn-secondary { color: var(--ink); background: rgba(250,246,239,.55); }
.hero-trust { margin-top: 34px; display: flex; gap: 24px; color: var(--stone-dark); font-size: 13px; }
.promise { padding: 112px 0; background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin: 8px 0 14px; font-size: clamp(32px, 4vw, 42px); line-height: 1.2; font-weight: 400; font-style: italic; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 30px 36px 10px 0; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line); }
.step-num { color: var(--gold); font: 38px "Fraunces"; }
.step h3 { margin: 24px 0 10px; font-size: 20px; }
.step p { color: var(--muted); line-height: 1.6; }
.person-manifesto { margin-top: 70px; padding: 46px 0 0 20%; border-top: 1px solid var(--line); }
.person-manifesto p { color: var(--muted); font-size: 16px; margin: 0 0 8px; }
.person-manifesto strong { display: block; max-width: 760px; font: 42px/1.12 "Fraunces"; font-weight: 400; }
.person-manifesto div { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.person-manifesto span { padding: 8px 12px; border: 1px solid var(--cream-deep); color: var(--terracotta-dark); font-size: 12px; font-weight: 400; }
.cover-collection { padding: 104px 0 86px; background: var(--cream-mid); }
.cover-collection .container { width: min(1320px, calc(100% - 64px)); }
.cover-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; margin-bottom: 72px; }
.cover-intro h2 { margin: 18px 0 0; max-width: 600px; font: 400 52px/1.08 var(--font-serif); }
.cover-intro > p { max-width: 390px; margin: 0 0 4px auto; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cover-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 30px; }
.cover-option { min-width: 0; }
.cover-option h3 { margin: 16px 0 3px; font: 500 13px/1.25 var(--font-sans); }
.cover-option > p { margin: 0; color: var(--muted); font-size: 12px; }
.cover-art { aspect-ratio: 2 / 3; min-height: 0; padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(42,36,24,.12); border-radius: 5px; box-shadow: 0 12px 20px rgba(42,36,24,.11); }
.cover-art small, .cover-art i { font-size: 7px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.cover-art strong { font: italic 400 27px/1.04 var(--font-serif); }
.cover-linon { color: var(--ink); background: #E9E1D2; text-align: center; align-items: center; }
.cover-linon::after { content:''; position:absolute; inset:14px; border:1px solid rgba(42,36,24,.28); pointer-events:none; }
.cover-portrait { padding: 0; color: var(--cream); justify-content: flex-end; }
.cover-portrait img, .cover-archive img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cover-portrait::after, .cover-archive::after { content:''; position:absolute; inset:0; background:rgba(42,36,24,.35); }
.cover-portrait span, .cover-archive span, .cover-archive small { position:relative; z-index:1; padding:20px; font: italic 400 23px/1.08 var(--font-serif); }
.cover-portrait span b { display:block; margin-top:5px; font: 10px var(--font-sans); letter-spacing:.22em; text-transform:uppercase; }
.cover-heritage { align-items:center; color:#D9B56D; background:#4B1F27; text-align:center; }
.cover-heritage small { width:54px; height:54px; display:grid; place-items:center; border:1px solid #D9B56D; border-radius:50%; font:18px var(--font-serif); }
.cover-manifeste { color:var(--ink); background:var(--cream); }
.cover-manifeste::before { content:''; position:absolute; inset:0 0 0 56%; background:var(--terracotta); }
.cover-manifeste > * { position:relative; z-index:1; }
.cover-manifeste strong { font-size:31px; }
.cover-jardin { color:var(--cream); background:var(--sage) url('assets/livre-voyage.jpg') center/cover no-repeat; }
.cover-jardin::after { content:''; position:absolute; inset:0; background:rgba(47,57,44,.5); }
.cover-jardin > * { position:relative; z-index:1; }
.cover-archive { padding:0; color:var(--cream); justify-content:flex-end; }
.cover-archive small { padding-top:0; font:10px var(--font-sans); }
.illustrated-covers { margin-top:72px; display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.illustrated-covers article { display:grid; grid-template-columns:.9fr 1.1fr; min-height:360px; background:var(--cream); border:1px solid var(--cream-deep); }
.illustrated-covers img { width:100%; height:100%; object-fit:cover; }
.illustrated-covers article > div { padding:34px; align-self:center; }
.illustrated-covers h3 { margin:10px 0; font:italic 400 31px/1.1 var(--font-serif); }
.illustrated-covers p { color:var(--muted); line-height:1.6; }
.collection-note { margin-top:46px; padding-top:26px; border-top:1px solid var(--cream-deep); display:flex; align-items:center; justify-content:space-between; gap:24px; color:var(--muted); font-size:13px; }
.product-band { background: var(--ink-soft); color: var(--cream); padding: 112px 0; }
.product-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: center; }
.book-stage { min-height: 490px; display: grid; place-items: center; position: relative; }
.book-stage img { width: 100%; min-height: 420px; object-fit: cover; box-shadow: 0 28px 60px rgba(5,12,21,.32); }
.book-stage-square img { aspect-ratio: 1; min-height: 0; }
.book { width: 300px; height: 420px; background: #ece5d5; color: #363c37; padding: 46px 34px; box-shadow: 18px 24px 30px rgba(0,0,0,.28); position: relative; z-index: 1; border-left: 10px solid #c8bda8; display: flex; flex-direction: column; justify-content: space-between; }
.book small { letter-spacing: .18em; text-transform: uppercase; }
.book-title { font: 42px/1.02 "Fraunces"; }
.book-line { height: 1px; background: #8f8c82; }
.product-copy h2 { font: 52px/1.05 "Fraunces"; margin: 12px 0 20px; }
.product-copy h2, .books-intro h2, .person-manifesto strong, .format-copy h3 { font-style: italic; }
.product-copy > p { color: rgba(255,255,255,.78); line-height: 1.7; font-size: 17px; }
.feature-list { margin: 34px 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-list li { display: flex; gap: 10px; align-items: center; }
.feature-list i { color: var(--terracotta); font-style: normal; }
.family-workshop { padding: 112px 0; background: var(--cream); }
.workshop-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 88px; align-items: center; }
.workshop-copy h2 { max-width: 650px; margin: 12px 0 22px; font: italic 400 52px/1.06 var(--font-serif); }
.workshop-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.workshop-points { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 32px; border-top: 1px solid var(--cream-deep); border-bottom: 1px solid var(--cream-deep); }
.workshop-points span { min-height: 118px; padding: 23px 20px; display: flex; flex-direction: column; justify-content: center; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workshop-points span:first-child { padding-left: 0; }
.workshop-points span + span { border-left: 1px solid var(--cream-deep); }
.workshop-points strong { display: block; margin-bottom: 4px; color: var(--terracotta); font: 400 34px/1 var(--font-serif); }
.workshop-ledger { padding: 30px; background: var(--cream-mid); border: 1px solid var(--cream-deep); box-shadow: 0 24px 50px rgba(42,36,24,.08); }
.workshop-ledger header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 25px; }
.workshop-ledger header small, .workshop-ledger header strong { display: block; }
.workshop-ledger header small { margin-bottom: 6px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.workshop-ledger header strong { font: 400 24px/1.2 var(--font-serif); }
.workshop-ledger header > span { padding: 6px 9px; color: var(--sage); border: 1px solid rgba(70,91,70,.32); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ledger-progress { padding: 22px 0 27px; border-top: 1px solid var(--cream-deep); }
.ledger-progress > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.ledger-progress > div strong { color: var(--ink); font-size: 13px; }
.ledger-progress > i { display: block; height: 6px; overflow: hidden; background: var(--cream-deep); }
.ledger-progress > i > b { display: block; width: 64%; height: 100%; background: var(--terracotta); }
.ledger-row { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--cream-deep); color: var(--muted); font-size: 13px; }
.ledger-row strong { color: var(--ink); font: 400 22px var(--font-serif); }
.workshop-ledger footer { padding-top: 20px; border-top: 1px solid var(--cream-deep); color: var(--muted); font-size: 11px; line-height: 1.5; }
.pricing { padding: 112px 0; }
.books-showcase { padding: 112px 0; background: var(--cream-mid); }
.books-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: end; margin-bottom: 42px; }
.books-intro h2 { font: 54px/1.02 "Fraunces"; margin: 8px 0 0; }
.books-intro p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0; max-width: 600px; }
.format-switch { display: inline-flex; border: 1px solid var(--cream-deep); padding: 4px; margin-bottom: 24px; background: var(--cream-deep); border-radius: 2px; }
.format-switch button { min-height: 42px; padding: 0 20px; border: 0; background: transparent; color: var(--stone-dark); border-radius: 2px; font-weight: 400; }
.format-switch button.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(30,40,50,.1); }
.format-showcase { display: grid; grid-template-columns: 1.3fr .7fr; min-height: 570px; background: var(--cream); border: 1px solid var(--cream-deep); }
.format-image { border: 0; padding: 0; background: var(--ink-soft); overflow: hidden; }
.format-image img { width: 100%; height: 100%; object-fit: contain; }
.format-copy { padding: 46px 40px; display: flex; flex-direction: column; justify-content: center; }
.format-copy h3 { font: 38px/1.08 "Fraunces"; margin: 12px 0 16px; }
.format-copy p { color: var(--muted); line-height: 1.7; margin: 0; }
.format-copy ul { list-style: none; padding: 0; margin: 24px 0 30px; color: var(--stone-dark); font-size: 13px; line-height: 2.1; }
.format-copy li::before { content:'—'; color: var(--berry); margin-right: 9px; }
.format-copy .btn { align-self: flex-start; }
.book-gallery { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.book-example { border: 0; padding: 0; background: transparent; text-align: left; color: var(--ink); }
.book-example:first-child { grid-row: span 2; }
.book-example figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.book-example img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.book-example:first-child img { min-height: 620px; }
.book-example:hover img { transform: scale(1.012); filter: contrast(1.03); }
.book-example figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 2px 2px; }
.book-example figcaption strong { font: 23px "Fraunces"; }
.book-example figcaption span { color: var(--muted); font-size: 12px; }
.book-proof { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cream-deep); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.price { padding: 34px; background: var(--white); min-height: 390px; display: flex; flex-direction: column; }
.price + .price { border-left: 1px solid var(--line); }
.price.featured { background: var(--ink); color: var(--cream); position: relative; border-color: var(--ink); }
.price.featured .eyebrow, .price.featured ul { color: var(--cream-mid); }
.price.featured .btn-primary { background: var(--terracotta); }
.price-badge { position: absolute; top: 0; right: 22px; transform: translateY(-50%); background: var(--terracotta); color: var(--cream); padding: 7px 10px; font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.price h3 { font: 500 18px/1.4 var(--font-sans); margin: 10px 0 4px; }
.price .amount { font: 42px "Fraunces"; margin: 18px 0; }
.price ul { padding: 0; list-style: none; color: var(--muted); line-height: 2; margin-bottom: 28px; }
.price .btn { margin-top: auto; }
.quote { padding: 112px 0; background: var(--cream-mid); text-align: center; }
.quote blockquote { font: italic 400 36px/1.8 var(--font-serif); max-width: 760px; margin: 0 auto 20px; }
.quote blockquote::before { content: ''; display: block; width: 40px; height: 1px; margin: 0 auto 28px; background: var(--terracotta); }
.quote p { color: var(--muted); }
.footer { padding: 42px 0; background: var(--ink-soft); color: var(--cream); }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer small { color: rgba(255,255,255,.56); }

/* Editorial home */
.home-container { width: min(1760px, calc(100% - 112px)); margin: 0 auto; }
.home-page { overflow-x: hidden; overflow-y: visible; background: #fbf9f5; }
html.landing-snap { scroll-snap-type: none; scroll-behavior: smooth; }
body.landing-snap { overscroll-behavior-y: auto; }
html.landing-snap .home-page > section,
html.landing-snap .footer { scroll-snap-align: none; }
html.landing-snap .home-hero { scroll-margin-top: 112px; }
html.landing-snap .home-page > section { min-height: 100svh; display: grid; align-items: center; }
html.landing-snap .quote { min-height: 72svh; }
html.landing-snap .footer { min-height: 46svh; }
.site-header { height: 112px; position: relative; background: #fbf9f5; border: 0; }
.site-header .home-container { display: flex; align-items: center; justify-content: space-between; }
.home-brand { display: inline-flex; align-items: center; color: #171310; font: italic 400 25px/1 var(--font-serif); letter-spacing: 0; }
.home-brand::before { content: none; }
.site-nav { gap: 48px; color: #171310; font-size: 17px; font-weight: 500; }
.home-pill { min-height: 56px; padding: 0 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ded9d2; border-radius: 999px; background: transparent; color: #171310; font-size: 15px; font-weight: 500; line-height: 1.2; }
.home-pill:hover { transform: translateY(-1px); }
.home-pill-dark { border-color: #171310; background: #171310; color: #fff; }
.home-pill-light { background: #fbf9f5; }
.home-hero { min-height: 760px; padding: 88px 0 108px; background: #fbf9f5; }
.home-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: center; }
.home-hero-copy h1 { max-width: 920px; margin: 0; color: #171310; font: 400 84px/1.18 var(--font-serif); letter-spacing: 0; }
.home-hero-copy h1 em { font-weight: 400; }
.home-hero-copy p { max-width: 760px; margin: 48px 0 0; color: #69645f; font-size: 22px; line-height: 1.65; }
.home-actions { display: flex; gap: 18px; margin-top: 52px; }
.home-hero-visual { height: 720px; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 55px rgba(40,28,20,.12); }
.home-hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 68%; transform: translate3d(0,calc(var(--book-shift, 0px) - 54px),0) scale(1.08); will-change: transform; }
.home-hero-copy > * { animation: home-rise .82s cubic-bezier(.22,.72,.24,1) both; }
.home-hero-copy > :nth-child(2) { animation-delay: .11s; }
.home-hero-copy > :nth-child(3) { animation-delay: .2s; }
.home-hero-visual { animation: home-book-in 1s .12s cubic-bezier(.22,.72,.24,1) both; }
@keyframes home-rise { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes home-book-in { from { opacity:0; transform:translateY(28px) scale(.975); } to { opacity:1; transform:translateY(0) scale(1); } }
.home-page.motion-ready [data-reveal] { opacity:0; transform:translateY(28px); transition:opacity .72s cubic-bezier(.22,.72,.24,1), transform .72s cubic-bezier(.22,.72,.24,1); transition-delay:var(--reveal-delay,0ms); }
.home-page.motion-ready [data-reveal].is-visible { opacity:1; transform:translateY(0); }
.home-kicker { color: #9c6847; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.home-process { padding: 144px 0 158px; background: #f8f3eb; border-top: 5px solid #292724; }
.home-process h2 { margin: 24px 0 118px; font: 400 66px/1.14 var(--font-serif); }
.home-steps { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #e0d9cf; }
.home-steps article { padding: 72px 68px 0 0; }
.home-steps article + article { padding-left: 28px; }
.home-steps span { color: #a16d49; font: italic 400 38px/1 var(--font-serif); }
.home-steps h3 { margin: 42px 0 17px; font-size: 20px; font-weight: 500; }
.home-steps p { max-width: 315px; margin: 0; color: #746f69; font-size: 16px; line-height: 1.65; }
.platform-preview { padding: 126px 0; overflow: hidden; background: #fbf9f5; }
.preview-heading { display: grid; grid-template-columns: .9fr .75fr; gap: 100px; align-items: end; margin-bottom: 60px; }
.preview-heading h2 { max-width: 760px; margin: 24px 0 0; font: italic 400 62px/1.15 var(--font-serif); }
.preview-heading p { max-width: 610px; margin: 0; color: #716d68; font-size: 18px; line-height: 1.7; }
.preview-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(330px, 420px); gap: 22px; overflow-x: auto; padding: 6px 0 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.preview-slide { min-height: 420px; padding: 28px; display: flex; flex-direction: column; border: 1px solid #dfd8ce; border-radius: 18px; background: #f5eddf; box-shadow: 0 18px 34px rgba(42,36,24,.08); scroll-snap-align: start; }
.preview-slide header { padding-bottom: 22px; border-bottom: 1px solid rgba(100,80,60,.16); }
.preview-slide small { display: block; color: #9c6847; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.preview-slide header strong { display: block; margin-top: 8px; font: 400 28px/1.16 var(--font-serif); }
.preview-slide h3 { margin: 28px 0 22px; font: italic 400 29px/1.28 var(--font-serif); }
.preview-slide p { margin: 0; color: #716d68; font-size: 15px; line-height: 1.62; }
.preview-slide footer { margin-top: auto; padding-top: 22px; color: #9c6847; font-size: 13px; font-weight: 500; }
.preview-slide-question { background: #332b22; color: #fbf9f5; }
.preview-slide-question header { border-color: rgba(255,255,255,.14); }
.preview-slide-question small, .preview-slide-question footer { color: #e0a07b; }
.preview-options { display: grid; gap: 10px; }
.preview-options button { min-height: 50px; padding: 0 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: #fbf9f5; color: #241f1a; font-weight: 500; }
.preview-drop { min-height: 210px; margin: 28px 0 0; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed #bda88f; border-radius: 16px; background: #fbf9f5; text-align: center; }
.preview-drop span { color: #c87552; font: 400 42px/1 var(--font-serif); }
.preview-drop p { color: #241f1a; font-weight: 500; }
.preview-drop small { letter-spacing: .08em; }
.preview-wave { height: 142px; margin: 30px 0 24px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 16px; background: #fbf9f5; }
.preview-wave i { width: 8px; border-radius: 999px; background: #c87552; }
.preview-wave i:nth-child(1), .preview-wave i:nth-child(7) { height: 32px; opacity:.45; }
.preview-wave i:nth-child(2), .preview-wave i:nth-child(6) { height: 62px; opacity:.65; }
.preview-wave i:nth-child(3), .preview-wave i:nth-child(5) { height: 96px; }
.preview-wave i:nth-child(4) { height: 118px; background:#332b22; }
.preview-progress { height: 10px; margin: 36px 0 24px; overflow: hidden; border-radius: 999px; background: #e4d7c5; }
.preview-progress span { display: block; height: 100%; border-radius: inherit; background: #c87552; }
.preview-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.preview-stats article { padding: 18px 12px; border: 1px solid #e1d5c4; border-radius: 14px; background: #fbf9f5; }
.preview-stats strong { display: block; font: 400 34px/1 var(--font-serif); }
.preview-stats span { display: block; margin-top: 8px; color: #716d68; font-size: 12px; line-height: 1.35; }
.cover-collection { padding: 112px 0 132px; background: #fbf9f5; }
.cover-collection .home-container { width: min(1760px, calc(100% - 112px)); }
.cover-intro { grid-template-columns: 1fr .7fr; gap: 120px; align-items: end; margin-bottom: 104px; }
.cover-intro h2 { max-width: 680px; margin: 28px 0 0; font: 400 62px/1.2 var(--font-serif); }
.cover-intro > p { max-width: 480px; margin: 0 0 8px auto; color: #716d68; font-size: 18px; line-height: 1.6; }
.cover-grid { gap: 44px; }
.cover-option { position: relative; perspective:900px; }
.cover-option::before {
  content:'';
  position:absolute;
  z-index:0;
  top:0;
  left:0;
  width:100%;
  aspect-ratio:2 / 3;
  border-radius:7px;
  background:
    linear-gradient(90deg, rgba(42,36,24,.16), rgba(42,36,24,0) 11%),
    repeating-linear-gradient(0deg, #f9f1e2 0 3px, #efe3d1 3px 4px);
  box-shadow:10px 15px 22px rgba(42,36,24,.10);
  opacity:0;
  transform:translate3d(2px,0,-18px) rotateY(0deg);
  transform-origin:left center;
  transition:opacity .45s ease, transform .55s cubic-bezier(.22,.72,.24,1);
  pointer-events:none;
}
.cover-art { z-index:1; border-radius: 7px; box-shadow: 0 16px 24px rgba(42,36,24,.12); transform-origin:left center; transform-style:preserve-3d; transition:transform .55s cubic-bezier(.22,.72,.24,1), box-shadow .55s ease; }
.cover-option h3 { position:relative; z-index:1; margin-top: 20px; color: #27231f; font-size: 14px; }
.cover-option > p { position:relative; z-index:1; font-size: 13px; line-height: 1.4; }
.cover-linon { background: #eee8dd; }
.cover-linon::after { border: 0; background: repeating-linear-gradient(45deg, transparent 0 2px, rgba(40,30,20,.018) 2px 3px); }
.cover-portrait img { object-position: center 35%; }
.cover-archive { margin: 0; padding: 16px; justify-content: flex-end; background: #eee3d2; color: #201c19; text-align: center; }
.cover-archive::after { display: none; }
.cover-archive img { inset: 16px 16px auto; width: calc(100% - 32px); height: 64%; border: 8px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.14); filter: grayscale(1); }
.cover-archive span { margin-top: auto; padding: 0; font-size: 18px; }
.cover-archive small { padding: 0; }
.cover-manifeste { color: #fff; background: #171210; }
.cover-manifeste::before { inset: 0 0 51% 0; background: #9a6d4e; }
.cover-jardin { align-items: center; justify-content: flex-end; color: #181512; background: #afc4ac; text-align: center; }
.cover-jardin::after { background: rgba(175,196,172,.62); }
.cover-jardin strong { font-size: 20px; }
.home-page .family-workshop { padding: 128px 0; background: #f8f3eb; }
.home-page .family-workshop .container { width: min(1560px, calc(100% - 112px)); }
.home-page .workshop-grid { gap: 120px; }
.home-page .workshop-copy h2 { font-size: 68px; line-height: 1.14; }
.home-page .workshop-copy > p { max-width: 720px; font-size: 19px; }
.home-page .workshop-ledger { padding: 42px; }
.illustrated-universe { padding: 12px 0; background: #fbf9f5; }
.illustrated-panel { width: min(1380px, calc(100% - 80px)); margin: 0 auto; padding: 62px; border: 1px solid #ded7cc; border-radius: 12px; background: #f8efdf; }
.illustrated-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 100px; align-items: center; margin-bottom: 64px; }
.illustrated-heading span { display: inline-flex; padding: 4px 15px; border-radius: 999px; background: #ef5e4e; color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.illustrated-heading h2 { margin: 22px 0 0; font: italic 400 52px/1.22 var(--font-serif); }
.illustrated-heading p { max-width: 500px; margin: 0; color: #716d68; font-size: 17px; line-height: 1.55; }
.illustrated-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.illustrated-grid article { overflow: hidden; border: 1px solid #d4cec5; border-radius: 8px; background: #fbf9f5; box-shadow: 0 18px 32px rgba(42,36,24,.10); }
.illustrated-grid article > button { width: 100%; height: 390px; padding: 0; border: 0; background: #eee; overflow: hidden; }
.illustrated-grid article > button img { width: 100%; height: 100%; object-fit: cover; transition:transform .65s cubic-bezier(.22,.72,.24,1); }
.illustrated-grid article:nth-child(3) > button img { object-position: center 35%; }
.illustrated-grid article > div { padding: 30px 34px 34px; }
.illustrated-grid small { color: #8b7d73; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.illustrated-grid article:nth-child(3) small, .illustrated-grid article:nth-child(3) .text-arrow { color: #e24e3d; }
.illustrated-grid h3 { margin: 13px 0 12px; font: italic 400 25px/1.25 var(--font-serif); }
.illustrated-grid p { margin: 0 0 22px; color: #716d68; font-size: 15px; line-height: 1.6; }
.text-arrow { padding: 0; border: 0; background: transparent; color: #1d1916; font-weight: 500; }
.home-reader { display:grid; grid-template-columns:1fr 1fr; min-height:560px; background:#d7c8b4; box-shadow:0 28px 70px rgba(42,36,24,.16); border:1px solid #c9baa8; }
.home-reader-page { position:relative; padding:72px 74px; background:linear-gradient(90deg,#fff9ec 0%,#fbf3e5 82%,#efe3d1 100%); color:#2b261f; box-shadow:inset -18px 0 38px rgba(42,36,24,.08); }
.home-reader-page + .home-reader-page { background:linear-gradient(90deg,#efe3d1 0%,#fff9ec 16%,#fbf3e5 100%); box-shadow:inset 18px 0 38px rgba(42,36,24,.08); }
.home-reader-page small { color:#a16d49; font-size:11px; letter-spacing:.18em; text-transform:uppercase; }
.home-reader-page h3 { max-width:390px; margin:28px 0 24px; font:italic 400 42px/1.12 var(--font-serif); }
.home-reader-page p { max-width:430px; color:#5f584f; font:400 18px/1.85 var(--font-serif); }
.home-reader-page.illustrated { display:flex; flex-direction:column; justify-content:center; gap:24px; }
.home-reader-page.illustrated img { width:100%; max-height:360px; object-fit:cover; border:1px solid #d5c7b8; box-shadow:0 18px 40px rgba(42,36,24,.13); }
.legal-header { position: fixed; }
.legal-page { min-height: 100vh; padding: 150px 0 90px; background: #fbf9f5; }
.legal-layout { display: grid; grid-template-columns: minmax(260px,.56fr) minmax(0,1fr); gap: 82px; align-items: start; }
.legal-title { position: sticky; top: 120px; }
.legal-title small { color: var(--terracotta-dark); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.legal-title h1 { margin: 18px 0 18px; font: italic 400 clamp(42px, 5vw, 72px)/1.03 var(--font-serif); }
.legal-title p { margin: 0; max-width: 430px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal-document { padding: 46px 52px; background: var(--cream); border: 1px solid var(--cream-deep); box-shadow: 0 22px 55px rgba(42,36,24,.08); }
.legal-document a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin: 0 0 34px; color: var(--stone-mid); font-size: 13px; }
.legal-document section { padding: 28px 0; border-top: 1px solid var(--cream-deep); }
.legal-document section:first-of-type { border-top: 0; padding-top: 0; }
.legal-document h2 { margin: 0 0 12px; font: 400 25px/1.2 var(--font-serif); }
.legal-document p { margin: 0 0 12px; color: var(--stone-dark); font-size: 15px; line-height: 1.72; }
.legal-document p:last-child { margin-bottom: 0; }
.pricing { padding: 150px 0 170px; background: #fbf9f5; }
.pricing .home-container { width: min(1380px, calc(100% - 112px)); }
.pricing-title { margin-bottom: 84px; text-align: center; }
.pricing-title h2 { margin: 0; font: 400 50px/1.2 var(--font-serif); }
.pricing-title p { margin: 12px 0 0; color: #77716b; font-size: 17px; }
.price-grid { gap: 32px; border: 0; }
.price { min-height: 420px; padding: 44px; border: 1px solid #e3ded7; border-radius: 8px; background: #fbf9f5; }
.price + .price { border-left: 1px solid #e3ded7; }
.price.featured { background: #fbf9f5; color: #171310; border-color: #d7bfae; box-shadow: 0 18px 30px rgba(42,36,24,.14); }
.price h3 { margin: 0; font-size: 19px; }
.price .amount { margin: 14px 0 22px; font-size: 32px; }
.price ul, .price.featured ul { margin: 0 0 30px; color: #6d6862; font-size: 14px; line-height: 2.35; }
.price ul li::before { content: '•'; margin-right: 7px; }
.price-option { margin: -12px 0 24px; color: #9c6b49; font-size: 13px; line-height: 1.45; }
.price-badge { top: 0; right: 0; transform: none; padding: 5px 18px; background: #9c6b49; border-radius: 0 8px 0 0; font-size: 10px; }
.price .home-pill { width: 100%; min-height: 50px; margin-top: auto; }
.quote { padding: 164px 0 150px; background: #f8f3eb; }
.quote blockquote { max-width: 1030px; margin: 0 auto 38px; font-size: 32px; line-height: 1.65; }
.quote blockquote::before { display: none; }
.quote p { color: #a16d49; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.footer { padding: 82px 0 28px; background: #fbf9f5; color: #171310; border-top: 1px solid #eee9e2; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 100px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid p { max-width: 330px; margin: 15px 0 0; color: #77716b; font-size: 14px; line-height: 1.55; }
.footer-grid small { margin-bottom: 4px; color: #aaa39b; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a:not(.home-brand) { font-size: 14px; }
.footer-bottom { margin-top: 66px; padding-top: 25px; display: flex; justify-content: space-between; border-top: 1px solid #eee9e2; }
.footer-bottom small { color: #aaa39b; }
.footer-bottom span { display: flex; gap: 28px; color: #aaa39b; font-size: 11px; }

@media (hover:hover) and (pointer:fine) {
  .cover-option:hover::before { opacity:1; transform:translate3d(10px,-7px,-18px) rotateY(0deg); }
  .cover-option:hover .cover-art { transform:translateY(-10px) rotateY(-8deg); box-shadow:18px 26px 34px rgba(42,36,24,.18); }
  .illustrated-grid article:hover > button img { transform:scale(1.035); }
}

@media (max-width: 900px), (max-height: 620px) {
  html.landing-snap { scroll-snap-type: none; }
  body.landing-snap { overscroll-behavior-y: auto; }
  html.landing-snap .home-page > section,
  html.landing-snap .footer { scroll-snap-align: none; scroll-snap-stop: normal; }
  html.landing-snap .home-hero { scroll-margin-top: 0; }
  html.landing-snap .home-page > section { min-height: 0; display: block; }
  html.landing-snap .quote,
  html.landing-snap .footer { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.landing-snap { scroll-snap-type: none; }
  body.landing-snap { overscroll-behavior-y: auto; }
  .home-hero-copy > *, .home-hero-visual { animation:none !important; }
  .home-page.motion-ready [data-reveal] { opacity:1; transform:none; transition:none; }
  .home-hero-visual img, .cover-art, .cover-option::before, .illustrated-grid article > button img { transform:none; transition:none; }
}

/* Application */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; background: var(--cream); }
.sidebar { background: var(--ink-soft); color: var(--cream); padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 10px 30px; font-size: 23px; }
.sidebar .brand-domain { font-size: 24px; line-height: 1.15; white-space: nowrap; }
.project-switch { margin: 0 5px 24px; padding: 12px; width: calc(100% - 10px); color: var(--cream); text-align: left; background: rgba(250,246,239,.07); border: 1px solid rgba(250,246,239,.16); border-radius: 2px; }
.project-switch:hover { background: rgba(255,255,255,.12); }
.project-switch small { color: rgba(255,255,255,.55); }
.project-switch strong { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 14px; }
.side-nav { display: grid; gap: 4px; }
.side-nav button { border: 0; background: transparent; color: rgba(255,255,255,.65); padding: 11px 12px; text-align: left; border-radius: 2px; display: flex; gap: 11px; align-items: center; }
.side-nav button:hover, .side-nav button.active { background: rgba(250,246,239,.10); color: var(--cream); }
.side-nav .nav-icon { width: 20px; text-align: center; }
.sidebar-bottom { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.profile { display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta); color: var(--cream); font-size: 12px; font-weight: 500; flex: 0 0 auto; }
.profile small { display: block; color: rgba(255,255,255,.5); }
.signout { margin-top: 14px; padding: 8px 0; border: 0; background: transparent; color: rgba(255,255,255,.55); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.signout:hover { color: var(--cream); }
.btn:disabled { cursor: wait; opacity: .6; transform: none; }
.auth-intro { margin-top: 0; color: var(--muted); }
.auth-stack { display: grid; gap: 18px; }
.oauth-btn { min-height: 52px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 500; }
.oauth-btn::before { content: 'G'; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; border: 1px solid var(--line); font-family: Arial, sans-serif; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.join-auth-choice { margin: 22px 0 4px; display: grid; gap: 14px; }
.join-auth-choice .oauth-btn { width: 100%; }
.auth-actions { align-items: center; }
.auth-secondary { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding-top: 4px; }
.auth-secondary button { border: 0; background: transparent; color: var(--terracotta); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.privacy-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-success { display: grid; justify-items: center; gap: 18px; text-align: center; }
.auth-success > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-2); color: var(--sage); font-size: 22px; }
.auth-success p { margin: 0; }
.app-main { min-width: 0; }
.app-topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(250,246,239,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; backdrop-filter: blur(10px); }
.app-topbar h1 { font: italic 400 28px/1.2 var(--font-serif); margin: 0; }
.top-actions { display: flex; gap: 10px; }
.app-content { padding: 48px; max-width: 1164px; margin: auto; }
.welcome { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 30px; }
.welcome h2 { font: italic 400 40px/1.2 var(--font-serif); margin: 6px 0; }
.welcome p { color: var(--muted); margin: 0; }
.progress-card { background: var(--ink-soft); color: var(--cream); padding: 36px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; border-radius: 2px; }
.progress-card h3 { font: italic 400 30px/1.2 var(--font-serif); margin: 8px 0 12px; }
.progress-card p { color: rgba(255,255,255,.68); margin: 0 0 20px; }
.progress-visual { position: relative; display: grid; place-items: center; }
.progress-ring { width: 136px; height: 136px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--terracotta) 0 68%, rgba(250,246,239,.12) 68%); }
.progress-ring::before { content:""; width: 104px; height: 104px; background: var(--ink-soft); border-radius: 50%; position: absolute; }
.progress-ring strong { position: relative; font: 28px "Fraunces"; }
.access-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 0 0 18px; }
.access-overview article, .join-panel, .readonly-note, .invite-code-preview { background: var(--cream-mid); border: 1px solid var(--line); padding: 18px; border-radius: 2px; }
.access-overview small, .join-panel small, .invite-code-preview small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.access-overview strong, .join-panel strong, .invite-code-preview strong { display: block; margin: 5px 0 6px; font: 400 26px/1.1 var(--font-serif); }
.access-overview p, .join-panel p, .readonly-note p, .invite-code-preview span { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.join-code { border: 0; padding: 0; background: transparent; color: var(--terracotta-dark); font: 400 28px/1.1 var(--font-serif); letter-spacing: .08em; }
.portrait-overview { margin: 0 0 18px; min-height: 184px; display: grid; grid-template-columns: 132px minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.portrait-overview figure { width: 132px; height: 150px; margin: 0; display: grid; place-items: center; overflow: hidden; background: var(--cream-mid); border: 1px solid var(--cream-deep); box-shadow: 0 12px 28px rgba(42,36,24,.08); }
.portrait-overview figure.has-portrait { background: var(--ink-soft); }
.portrait-overview img { width: 100%; height: 100%; object-fit: cover; }
.portrait-overview figure span { color: var(--terracotta-dark); font: italic 400 36px/1 var(--font-serif); }
.portrait-drop { display: block; width: 132px; }
.portrait-drop figure { cursor: pointer; border-style: dashed; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.portrait-drop figure:hover, .portrait-drop.dragging figure { border-color: var(--terracotta); background: var(--cream); transform: translateY(-2px); }
.portrait-drop small { margin-top: -38px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.portrait-overview h3 { margin: 6px 0 8px; font: italic 400 28px/1.16 var(--font-serif); }
.portrait-overview p { margin: 0; max-width: 620px; color: var(--muted); line-height: 1.55; }
.portrait-upload { white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 30px; }
.metric { background: var(--cream-mid); border: 1px solid var(--line); padding: 20px; border-radius: 2px; }
.metric strong { font: 30px "Fraunces"; display: block; }
.metric span { color: var(--muted); font-size: 13px; }
.content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.panel-head { min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-head h3 { font-size: 16px; margin: 0; }
.text-link { border: 0; background: transparent; color: var(--berry); font-weight: 600; padding: 8px 0; }
.activity { padding: 4px 20px; }
.activity-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border: 0; }
.activity-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--sage-2); border-radius: 50%; }
.activity-item p { margin: 0; font-size: 14px; }
.activity-item small { color: var(--muted); }
.prompt-box { padding: 20px; }
.prompt-box .eyebrow { font-size: 10px; }
.prompt-box blockquote { font: italic 400 24px/1.8 var(--font-serif); margin: 16px 0 22px; }
.view-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.view-head h2 { font: italic 400 40px/1.2 var(--font-serif); margin: 5px 0 0; }
.view-head p { color: var(--muted); margin: 8px 0 0; }
.timeline { max-width: 900px; position: relative; margin-left: 115px; }
.timeline::before { content:""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--cream-deep); }
.memory { position: relative; margin: 0 0 24px 28px; background: var(--white); border: 1px solid var(--line); padding: 24px; border-radius: 2px; }
.memory::before { content:""; width: 11px; height: 11px; border: 3px solid var(--paper); border-radius: 50%; background: var(--berry); position: absolute; left: -34px; top: 28px; }
.memory-year { position: absolute; right: calc(100% + 65px); top: 20px; font: 22px "Fraunces"; color: var(--sage); }
.memory-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.memory h3 { margin: 0 0 9px; font: 500 18px/1.4 var(--font-sans); }
.memory h3 { padding-right: 42px; overflow-wrap: anywhere; }
.memory p { margin: 0; line-height: 1.8; color: var(--stone-dark); }
.tag { display: inline-flex; padding: 4px 8px; margin-top: 14px; background: var(--sage-2); color: var(--sage); font-size: 11px; font-weight: 600; border-radius: 2px; }
.family-grid, .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person-card { position: relative; background: var(--white); border: 1px solid var(--line); padding: 22px; border-radius: 2px; }
.person-card.current-user { border-color: var(--terracotta); box-shadow: 0 12px 26px rgba(201,123,90,.12); }
.person-card .avatar { width: 48px; height: 48px; margin-bottom: 18px; }
.person-card h3 { margin: 0 0 3px; }
.person-card p, .person-card small { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; margin-top: 16px; }
.status::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.status.pending::before { background: var(--gold); }
.invite-copy-link { display: block; margin-top: 10px; font-size: 12px; text-align: left; }
.join-panel { margin: -8px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.join-panel strong { letter-spacing: .08em; color: var(--terracotta-dark); }
.readonly-note { margin-bottom: 18px; }
.invite-code-preview { margin: 2px 0 18px; }
.invite-code-preview strong { color: var(--terracotta-dark); letter-spacing: .08em; }
.media-card { aspect-ratio: 4/3; background: var(--cream-mid); overflow: hidden; position: relative; border-radius: 2px; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-caption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: var(--cream); background: linear-gradient(transparent, rgba(42,36,24,.78)); font-size: 13px; overflow-wrap: anywhere; }
.rename-icon { width: 34px; height: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; border-radius: 2px; font-size: 15px; }
.rename-icon:hover { color: var(--terracotta-dark); border-color: var(--terracotta); }
.memory > .rename-icon, .person-card > .rename-icon, .media-card > .rename-icon { position: absolute; z-index: 2; top: 12px; right: 12px; }
.memory > .rename-icon { top: 18px; }
.upload-card { border: 1px dashed var(--stone-mid); display: grid; place-items: center; text-align: center; background: transparent; }
.upload-card input { position: absolute; opacity: 0; inset: 0; width: 100%; cursor: pointer; }
.upload-card strong { display: block; font-size: 32px; font-weight: 400; color: var(--sage); }
.audio-list { display: grid; gap: 12px; }
.record-studio { margin-bottom: 28px; min-height: 210px; background: var(--ink-soft); color: var(--cream); display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 28px; padding: 34px; border-radius: 2px; overflow: hidden; position: relative; }
.record-studio::after { content:''; position:absolute; right:0; bottom:0; width:42%; height:58px; opacity:.16; background:repeating-linear-gradient(90deg, transparent 0 8px, white 8px 10px, transparent 10px 16px); }
.record-studio.recording { background: var(--terracotta-dark); }
.record-control { position: relative; z-index: 1; display: grid; place-items: center; }
.record-button { width: 82px; height: 82px; border: 1px solid rgba(250,246,239,.42); border-radius: 50%; background: var(--cream); color: var(--terracotta); display: grid; place-items: center; font-size: 28px; box-shadow: 0 0 0 9px rgba(250,246,239,.08); }
.record-button:hover { transform: scale(1.03); }
.record-button .stop-mark { width: 22px; height: 22px; background: var(--berry); border-radius: 2px; display: none; }
.record-studio.recording .record-button .mic-mark { display: none; }
.record-studio.recording .record-button .stop-mark { display: block; }
.record-studio.recording .record-button { animation: recordPulse 1.7s infinite; }
.record-copy { position: relative; z-index: 1; }
.record-copy .eyebrow { color: var(--cream-mid); }
.record-copy h3 { font: 500 18px/1.4 var(--font-sans); margin: 8px 0; }
.record-copy p { color: rgba(255,255,255,.68); margin: 0; line-height: 1.55; }
.record-time { display: inline-block; min-width: 52px; margin-top: 16px; font-variant-numeric: tabular-nums; font-size: 15px; color: rgba(255,255,255,.88); }
@keyframes recordPulse { 0%,100% { box-shadow:0 0 0 9px rgba(255,255,255,.08); } 50% { box-shadow:0 0 0 17px rgba(255,255,255,.03); } }
.audio-row { background: var(--white); border: 1px solid var(--line); padding: 18px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center; border-radius: 2px; }
.audio-row.has-transcript { align-items: flex-start; }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); border: 0; }
.audio-wave { height: 25px; background: repeating-linear-gradient(90deg, var(--sage) 0 2px, transparent 2px 6px); opacity: .7; }
.audio-row p { margin: 0 0 7px; font-weight: 600; overflow-wrap: anywhere; }
.audio-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.audio-analysis { display: block; margin-top: 10px; max-width: 680px; color: var(--terracotta-dark); line-height: 1.45; }
.audio-transcript { margin-top: 10px; color: var(--muted); font-size: 12px; }
.audio-transcript summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.audio-transcript p { margin-top: 8px; font-weight: 400; color: var(--muted); line-height: 1.55; }
.book-workspace { display: grid; grid-template-columns: 360px 1fr; gap: 28px; }
.book-preview { background: var(--cream-mid); padding: 26px; min-height: 520px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--cream-deep); }
.book-preview h2 { font: italic 400 45px/1.12 var(--font-serif); margin: 20px 0; }
.manuscript-status { margin-bottom: 18px; padding: 26px 28px; background: var(--ink-soft); color: var(--cream); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.manuscript-status-copy { min-width: 0; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-line small { color: rgba(255,255,255,.56); margin-left: auto; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 5px rgba(201,123,90,.15); }
.status-dot.ready { background: #AFC19F; box-shadow: 0 0 0 5px rgba(175,193,159,.14); }
.book-progress { height: 7px; margin: 16px 0 10px; overflow: hidden; background: rgba(255,255,255,.12); }
.book-progress span { display: block; height: 100%; background: var(--terracotta); transition: width .45s ease; }
.manuscript-status p { margin: 0; color: rgba(255,255,255,.63); font-size: 13px; }
.generate-book { min-width: 238px; }
.book-source-grid { margin-bottom: 28px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border: 1px solid var(--line); background: var(--cream-mid); }
.book-source { min-width: 0; padding: 16px; display: flex; align-items: center; gap: 10px; }
.book-source + .book-source { border-left: 1px solid var(--line); }
.book-source > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; background: var(--cream); color: var(--terracotta-dark); border: 1px solid var(--cream-deep); font-size: 11px; font-weight: 500; }
.book-source strong, .book-source small { display: block; overflow-wrap: anywhere; }
.book-source strong { font-size: 12px; }
.book-source small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.chapter-needs { margin: -8px 0 28px; padding: 24px; display: grid; grid-template-columns: 280px 1fr; gap: 26px; border: 1px solid var(--cream-deep); background: #f8efe2; }
.chapter-needs.complete { display: block; background: var(--cream-mid); }
.chapter-needs h3 { margin: 6px 0 10px; font: italic 400 27px/1.2 var(--font-serif); }
.chapter-needs p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.chapter-need-list { display: grid; gap: 10px; }
.chapter-need-list article { padding: 16px; background: var(--white); border: 1px solid var(--line); }
.chapter-need-list span { color: var(--terracotta-dark); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.chapter-need-list strong { display: block; margin: 6px 0 8px; }
.chapter-heading { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.chapter-heading h3 { margin: 8px 0 0; font: italic 400 27px/1.2 var(--font-serif); }
.chapter-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chapter-list { background: var(--white); border: 1px solid var(--line); }
.chapter { padding: 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.chapter span { color: var(--muted); font-size: 13px; }
.chapter strong { display: block; margin-top: 4px; }
.generation-summary { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.generation-summary p { margin: 0 0 10px; color: var(--muted); }
.generation-score { width: 120px; height: 120px; display: grid; place-content: center; text-align: center; border: 1px solid var(--terracotta); background: var(--cream-mid); }
.generation-score strong { font: 34px var(--font-serif); }
.generation-score span { color: var(--muted); font-size: 10px; }
.book-generating, .generation-complete { padding: 24px 8px; text-align: center; }
.book-generating h3, .generation-complete h3 { margin: 18px 0 8px; font: italic 400 28px/1.2 var(--font-serif); }
.book-generating p, .generation-complete p { color: var(--muted); }
.book-generating .book-progress { background: var(--cream-deep); }
.generation-loader { width: 48px; height: 48px; display: inline-block; border: 2px solid var(--cream-deep); border-top-color: var(--terracotta); border-radius: 50%; animation: spin .8s linear infinite; }
.generation-complete > span { width: 52px; height: 52px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: var(--sage-2); color: var(--sage); font-size: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.manuscript-modal { width: min(860px,100%); }
.chapter-reader { max-width: 680px; margin: auto; padding: 12px 16px 34px; }
.chapter-reader > p { font: 400 18px/1.85 var(--font-serif); }
.chapter-reader > p:first-of-type { margin-top: 28px; }
.chapter-break { margin: 30px 0; color: var(--terracotta); text-align: center; }
.source-note { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.manuscript-preview > header { padding: 50px 36px; background: var(--ink-soft); color: var(--cream); text-align: center; }
.manuscript-preview > header h2 { margin: 12px 0 4px; font: italic 400 48px/1.1 var(--font-serif); }
.manuscript-preview > header p { margin: 0; color: rgba(255,255,255,.65); }
.manuscript-toc { padding: 30px; }
.manuscript-toc button { width: 100%; padding: 16px 0; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.manuscript-toc button span, .manuscript-toc button small { color: var(--muted); font-size: 11px; }
.modal.book-reader-modal { width: min(1480px, calc(100vw - 28px)); max-width: none; background: #efe7d8; }
.book-reader-modal .modal-body { padding: 22px; overflow-x: auto; }
.book-reader-toolbar, .book-reader-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.book-reader-toolbar { margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.book-reader-nav { margin-top: 18px; }
.book-spread { width: min(100%, 1280px); min-width: min(960px, calc(100vw - 72px)); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; aspect-ratio: 1.58 / 1; background: #d7c8b4; box-shadow: 0 28px 70px rgba(42,36,24,.22); }
.book-page { position: relative; min-height: 0; padding: clamp(34px, 3.3vw, 56px) clamp(30px, 3.1vw, 54px) 42px; background: #fbf6eb; border: 1px solid rgba(42,36,24,.08); color: var(--ink); overflow: hidden; }
.book-page:nth-child(1) { box-shadow: inset -12px 0 24px rgba(42,36,24,.07); }
.book-page:nth-child(2) { box-shadow: inset 12px 0 24px rgba(42,36,24,.07); }
.book-page-number { position: absolute; bottom: 20px; left: 0; right: 0; color: var(--stone-mid); font-size: 11px; text-align: center; }
.book-page small { display: block; color: var(--terracotta-dark); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.book-page h2, .book-page h3 { font-family: var(--font-serif); font-weight: 400; }
.book-page h2 { margin: 16px 0; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.08; font-style: italic; }
.book-page h3 { margin: 14px 0 18px; font-size: clamp(23px, 2vw, 31px); line-height: 1.2; font-style: italic; }
.book-page p { max-width: 34ch; margin: 0 auto; color: var(--stone-dark); font: 400 clamp(15px, 1.18vw, 18px)/1.78 var(--font-serif); }
.book-page-cover { display: flex; flex-direction: column; justify-content: flex-end; background: #3a2a24; color: var(--cream); }
.book-page-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.book-page-cover > div { position: relative; z-index: 1; }
.book-page-cover small, .book-page-cover p { color: rgba(255,255,255,.72); }
.book-page-title, .book-page-dedication, .book-page-chapter, .book-page-quote { display: grid; align-content: center; text-align: center; }
.book-page-dedication p, .book-page-quote blockquote { font: italic 400 25px/1.75 var(--font-serif); color: var(--ink); }
.book-page-quote p { margin-top: 20px; font-size: 13px; font-family: var(--font-sans); }
.book-page-toc div { padding: 12px 0; display: grid; grid-template-columns: 42px 1fr; gap: 14px; border-bottom: 1px solid rgba(42,36,24,.1); }
.book-page-toc span { color: var(--stone-mid); font-size: 11px; }
.book-page-toc strong { font-weight: 500; }
.book-page-image { padding: 0; background: var(--ink-soft); }
.book-page-image figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: 1fr auto; }
.book-page-image img { width: 100%; height: 100%; object-fit: cover; }
.book-page-image figcaption { padding: 16px 24px 36px; background: #fbf6eb; color: var(--muted); font-size: 12px; }
.book-page-blank { background: #f7efe2; }
.privacy-box { max-width: 760px; background: var(--white); border: 1px solid var(--line); padding: 28px; }
.privacy-row { display: flex; justify-content: space-between; gap: 25px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.privacy-row h3 { margin: 0 0 6px; font-size: 16px; }
.privacy-row p { margin: 0; color: var(--muted); font-size: 13px; }
.toggle { width: 42px; height: 24px; border: 0; border-radius: 20px; background: #bdc2be; padding: 3px; flex: 0 0 auto; }
.toggle::after { content:""; display: block; width: 18px; height: 18px; background: var(--cream); border-radius: 50%; transition: .2s; }
.toggle.on { background: var(--sage); }
.toggle.on::after { transform: translateX(18px); }
.share-link { margin-top: 20px; background: var(--cream-mid); padding: 14px; display: flex; align-items: center; gap: 12px; }
.share-link code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sage); }
.platform-admin { display: grid; gap: 22px; }
.platform-head { align-items: flex-start; }
.platform-head h2 { max-width: 740px; }
.platform-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.admin-mode-switch { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--white); border: 1px solid var(--line); }
.admin-mode-switch small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-mode-switch div div { display: inline-flex; padding: 4px; gap: 4px; background: var(--cream-mid); border: 1px solid var(--line); }
.admin-mode-switch button { min-height: 36px; padding: 0 18px; border: 0; background: transparent; color: var(--muted); font-weight: 500; }
.admin-mode-switch button.active { background: var(--ink-soft); color: var(--cream); }
.admin-mode-switch p { max-width: 460px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-filter-bar { margin-top: -8px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--cream-mid); border: 1px solid var(--line); }
.admin-filter-bar small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-filter-bar div div { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-filter-bar button { min-height: 34px; padding: 0 11px; border: 1px solid var(--cream-deep); background: var(--cream); color: var(--muted); font-size: 12px; }
.admin-filter-bar button.active { color: var(--cream); background: var(--ink-soft); border-color: var(--ink-soft); }
.admin-filter-bar p { margin: 0; color: var(--muted); font-size: 12px; }
.platform-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.platform-metrics article { min-height: 134px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--cream-mid); border: 1px solid var(--line); }
.platform-metrics article.warning { border-color: rgba(151,68,55,.3); background: #f6e8e2; }
.platform-metrics small { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.platform-metrics strong { font: 400 34px/1 var(--font-serif); }
.platform-metrics span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 20px; align-items: start; }
.admin-grid-secondary { grid-template-columns: 1fr 1fr; }
.admin-client-panel { min-width: 0; }
.admin-table { display: grid; }
.admin-row { width: 100%; min-height: 76px; padding: 14px 20px; display: grid; grid-template-columns: 1.35fr .85fr .9fr .62fr 22px; gap: 16px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.admin-row:not(.admin-row-head):hover { background: var(--cream-mid); }
.admin-row-head { min-height: 44px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.admin-row strong, .admin-row small, .admin-row b { display: block; min-width: 0; overflow-wrap: anywhere; }
.admin-row strong, .admin-row b { font-size: 13px; }
.admin-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.mini-progress { display: block; height: 7px; overflow: hidden; background: var(--cream-deep); }
.mini-progress em { display: block; height: 100%; background: var(--terracotta); }
mark { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 2px; font-size: 11px; font-weight: 500; color: var(--ink); background: var(--cream-deep); }
mark.paid { color: var(--sage); background: var(--sage-2); }
mark.late { color: #8d3f32; background: #f3d6cc; }
.admin-side-panel { position: sticky; top: 92px; }
.monthly-panel { overflow: hidden; }
.monthly-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 18px 20px 22px; }
.monthly-grid article { min-height: 112px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: var(--cream-mid); border: 1px solid var(--line); }
.monthly-grid small { color: var(--muted); text-transform: capitalize; }
.monthly-grid strong { font: 400 30px/1 var(--font-serif); }
.monthly-grid span { color: var(--muted); font-size: 12px; }
.monthly-grid i, .monthly-grid em { display: block; height: 6px; }
.monthly-grid i { background: var(--cream-deep); overflow: hidden; }
.monthly-grid em { background: var(--terracotta); }
.admin-tasks { display: grid; padding: 8px; }
.admin-tasks button { padding: 16px 12px; display: grid; gap: 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.admin-tasks button:last-child { border-bottom: 0; }
.admin-tasks button:hover { background: var(--cream-mid); }
.admin-tasks span { color: var(--terracotta-dark); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-tasks strong { font-size: 14px; }
.admin-tasks small { color: var(--muted); line-height: 1.4; }
.invoice-list, .plan-list, .order-list { display: grid; padding: 10px 20px 18px; }
.invoice-list button, .plan-list button, .order-list button { min-height: 66px; padding: 13px 0; display: grid; grid-template-columns: 72px minmax(0,1fr) auto auto; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.order-list button { grid-template-columns: 1fr 1.1fr auto 18px; }
.invoice-list button:last-child, .plan-list button:last-child, .order-list button:last-child { border-bottom: 0; }
.invoice-list button:hover, .plan-list button:hover, .order-list button:hover { background: var(--cream-mid); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.invoice-list span, .invoice-list small, .plan-list small { color: var(--muted); font-size: 11px; }
.invoice-list strong, .plan-list strong, .order-list strong, .order-list b { display: block; overflow-wrap: anywhere; }
.order-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.plan-list button { grid-template-columns: minmax(0,1fr) auto; }
.plan-list button:hover { color: var(--terracotta-dark); }
.plan-list small { grid-column: 1 / -1; }
.promo-list { display: grid; padding: 10px 20px 18px; }
.promo-list article { min-height: 68px; padding: 13px 0; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.promo-list article:last-child { border-bottom: 0; }
.promo-list strong, .promo-list small, .promo-list span { display: block; min-width: 0; overflow-wrap: anywhere; }
.promo-list strong { font-size: 14px; letter-spacing: .08em; }
.promo-list small, .promo-list article > span:nth-child(2) { color: var(--muted); font-size: 12px; line-height: 1.4; }
.empty-inline { padding: 28px 0; color: var(--muted); text-align: center; }
.admin-client-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-client-sheet section, .invoice-sheet div, .order-sheet section { padding: 16px; background: var(--cream-mid); border: 1px solid var(--line); }
.admin-client-sheet small, .admin-client-sheet span, .invoice-sheet span, .order-sheet small, .order-sheet span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-client-sheet strong, .invoice-sheet strong, .order-sheet strong { display: block; margin: 5px 0; font: 400 22px/1.12 var(--font-serif); overflow-wrap: anywhere; }
.invoice-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.danger-action { color: #8d3f32 !important; border-color: #d9a99e !important; }
.btn-primary.danger-action { background: #8d3f32 !important; color: #fff8f0 !important; border-color: #8d3f32 !important; }
.delete-warning { padding: 22px; border: 1px solid #d9a99e; background: #f8e7df; color: var(--ink); }
.delete-warning strong { display: block; margin-bottom: 10px; font: 400 28px/1.1 var(--font-serif); }
.delete-warning p { margin: 0 0 14px; color: #6e5047; line-height: 1.55; }
.delete-warning ul { margin: 0; padding-left: 18px; color: #6e5047; }
.modal-subtitle { margin: 24px 0 12px; font-size: 15px; }
.delivery-list { display: grid; gap: 10px; }
.delivery-list article { padding: 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; border: 1px solid var(--line); background: var(--cream-mid); }
.delivery-list strong, .delivery-list span, .delivery-list small { display: block; }
.delivery-list span, .delivery-list small { color: var(--muted); font-size: 12px; }
.delivery-list .text-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* Editorial workspace refresh */
.app-shell {
  grid-template-columns: 278px 1fr;
  background:
    linear-gradient(90deg, rgba(42,36,24,.035) 0 1px, transparent 1px 100%),
    #f8f3eb;
  background-size: 72px 72px;
}
.sidebar {
  padding: 0;
  color: #171310;
  background: #eee8dc;
  border-right: 1px solid rgba(23,19,16,.28);
}
.sidebar .brand {
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  color: #171310;
  border-bottom: 1px solid rgba(23,19,16,.18);
}
.sidebar .brand-domain {
  font-size: 24px;
  letter-spacing: 0;
}
.project-switch {
  width: calc(100% - 32px);
  margin: 24px 16px 26px;
  padding: 16px 16px 15px;
  color: #171310;
  background: #f8f3eb;
  border: 1px solid rgba(23,19,16,.18);
  box-shadow: inset 3px 0 #171310;
}
.project-switch:hover { background: #fbf9f5; }
.project-switch small {
  color: #8d857a;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-switch strong {
  margin-top: 7px;
  font: 500 18px/1.24 var(--font-serif);
}
.side-nav {
  gap: 0;
  padding: 0 16px;
}
.side-nav button {
  min-height: 58px;
  padding: 0 14px;
  color: #716d68;
  border-bottom: 1px solid rgba(23,19,16,.10);
  border-radius: 0;
  font-size: 13px;
  letter-spacing: .02em;
}
.side-nav button:hover,
.side-nav button.active {
  color: #171310;
  background: rgba(251,249,245,.56);
  box-shadow: inset 3px 0 #171310;
}
.side-nav .nav-icon {
  width: 24px;
  color: #a46d4c;
  font-size: 13px;
}
.sidebar-bottom {
  margin: auto 16px 20px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(23,19,16,.18);
}
.profile {
  align-items: flex-start;
  color: #171310;
}
.profile small {
  margin-top: 3px;
  color: #8d857a;
  line-height: 1.45;
}
.avatar {
  border-radius: 2px;
  color: #fffaf2;
  background: #c87552;
  box-shadow: inset 3px 0 rgba(23,19,16,.35);
}
.signout {
  display: block;
  width: fit-content;
  color: #716d68;
}
.signout + .signout {
  margin-top: 6px;
}
.signout:hover { color: #171310; }
.app-main { background: rgba(251,249,245,.58); }
.app-topbar {
  height: 72px;
  padding: 0 36px;
  color: #171310;
  background: rgba(248,243,235,.92);
  border-bottom: 1px solid rgba(23,19,16,.20);
}
.app-topbar h1 {
  font-size: 30px;
  color: #171310;
}
.top-actions .btn,
.platform-actions .btn {
  min-height: 44px;
  border-color: rgba(23,19,16,.16);
}
.app-content {
  width: min(1280px, 100%);
  max-width: none;
  padding: 44px 56px 72px;
}
.welcome,
.view-head {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(23,19,16,.16);
}
.welcome h2,
.view-head h2 {
  color: #171310;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.08;
}
.welcome p,
.view-head p { color: #716d68; }
.access-overview {
  gap: 0;
  margin: 0 0 28px;
  border-top: 1px solid rgba(23,19,16,.13);
  border-bottom: 1px solid rgba(23,19,16,.13);
}
.access-overview article {
  min-height: 150px;
  padding: 24px 26px;
  background: transparent;
  border: 0;
}
.access-overview article + article { border-left: 1px solid rgba(23,19,16,.13); }
.access-overview strong { font-size: 32px; }
.portrait-overview,
.panel,
.memory,
.person-card,
.audio-row,
.privacy-box,
.chapter-list,
.questionnaire-toolbar,
.empty-questionnaire {
  background: #fbf9f5;
  border-color: rgba(23,19,16,.14);
  border-radius: 0;
  box-shadow: none;
}
.portrait-overview {
  min-height: 172px;
  margin-bottom: 28px;
  padding: 0;
  grid-template-columns: 156px minmax(0,1fr) auto;
}
.portrait-overview figure,
.portrait-drop,
.portrait-drop figure {
  width: 156px;
  height: 172px;
}
.portrait-overview > div { padding: 22px 0; }
.portrait-overview h3 { font-size: 31px; }
.portrait-upload { margin-right: 26px; }
.progress-card {
  margin-bottom: 28px;
  padding: 40px 46px;
  color: #fffaf2;
  background: #332d25;
  border-radius: 0;
  box-shadow: 0 20px 50px rgba(42,36,24,.12);
}
.progress-card h3 { font-size: 36px; }
.progress-ring::before { background: #332d25; }
.quick-question {
  margin: 28px 0;
  padding: 30px 34px;
  background: #87987e;
  border: 1px solid rgba(23,19,16,.12);
}
.quick-options { gap: 10px; }
.quick-options button {
  min-height: 56px;
  background: #fbf9f5;
  border-color: rgba(23,19,16,.08);
}
.metric-grid {
  gap: 0;
  margin: 0 0 34px;
  border-top: 1px solid rgba(23,19,16,.13);
  border-bottom: 1px solid rgba(23,19,16,.13);
}
.metric {
  min-height: 118px;
  padding: 24px 28px;
  background: transparent;
  border: 0;
}
.metric + .metric { border-left: 1px solid rgba(23,19,16,.13); }
.metric strong {
  color: #c87552;
  font-size: 42px;
}
.panel-head {
  min-height: 68px;
  padding: 0 24px;
  border-color: rgba(23,19,16,.12);
}
.panel-head h3 {
  font: 500 17px/1.2 var(--font-sans);
}
.activity { padding: 4px 24px; }
.activity-item,
.guided-question,
.chapter,
.invoice-list button,
.plan-list button,
.order-list button,
.promo-list article {
  border-color: rgba(23,19,16,.11);
}
.activity-icon {
  border-radius: 2px;
  background: #e8ebdf;
}
.prompt-box { padding: 26px 24px 28px; }
.prompt-box blockquote { font-size: 29px; line-height: 1.65; }
.platform-admin {
  gap: 28px;
}
.platform-head {
  min-height: 210px;
  align-items: flex-end;
}
.platform-head h2 {
  max-width: 940px;
  font-size: clamp(42px, 5vw, 70px);
}
.admin-mode-switch,
.admin-filter-bar {
  background: transparent;
  border-width: 1px 0;
  border-color: rgba(23,19,16,.16);
}
.admin-mode-switch div div,
.admin-filter-bar button {
  background: #fbf9f5;
  border-color: rgba(23,19,16,.14);
}
.admin-mode-switch button.active,
.admin-filter-bar button.active {
  background: #171310;
  border-color: #171310;
  color: #fffaf2;
}
.platform-metrics {
  gap: 0;
  border-top: 1px solid rgba(23,19,16,.13);
  border-bottom: 1px solid rgba(23,19,16,.13);
}
.platform-metrics article {
  min-height: 154px;
  padding: 26px 28px;
  background: transparent;
  border: 0;
}
.platform-metrics article + article { border-left: 1px solid rgba(23,19,16,.13); }
.platform-metrics article.warning { background: #f3e1d9; }
.platform-metrics strong {
  color: #171310;
  font-size: 46px;
}
.admin-grid { gap: 28px; }
.admin-row {
  min-height: 88px;
  padding: 18px 24px;
  border-color: rgba(23,19,16,.11);
}
.admin-row:not(.admin-row-head):hover,
.admin-tasks button:hover,
.invoice-list button:hover,
.plan-list button:hover,
.order-list button:hover {
  background: rgba(240,228,208,.55);
}
.admin-row strong,
.admin-row b { font-size: 15px; }
.admin-row-head {
  min-height: 48px;
  color: #8d857a;
}
.admin-side-panel { top: 96px; }
.monthly-grid article,
.admin-client-sheet section,
.invoice-sheet div,
.order-sheet section,
.delivery-list article {
  background: #f3eadb;
  border-color: rgba(23,19,16,.12);
}
.admin-tasks { padding: 8px 18px 14px; }
.admin-tasks button { padding: 18px 4px; }
.mini-progress,
.monthly-grid i { background: #e2d7c7; }
mark {
  border-radius: 0;
  background: #eee4d5;
}
mark.paid {
  color: #52694d;
  background: #e4e8df;
}
mark.late {
  color: #8d3f32;
  background: #f1d3c7;
}

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(20,25,22,.55); display: grid; place-items: center; padding: 20px; }
.modal { width: min(580px, 100%); max-height: 92vh; overflow: auto; background: var(--white); box-shadow: var(--shadow); border-radius: 2px; }
.modal-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font: italic 400 28px/1.2 var(--font-serif); margin: 0; }
.modal-body { padding: 24px; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--cream-deep); border-radius: 2px; padding: 12px; background: var(--cream); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(201,123,90,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.conditional-field { display: none; }
.conditional-field.visible { display: grid; }
.invitation-identifier input { color: var(--muted); background: var(--cream-mid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-field { margin: 0 0 20px; padding: 0; border: 0; }
.choice-field legend { margin-bottom: 9px; font-size: 13px; font-weight: 500; }
.segmented-choice { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 4px; background: var(--cream-deep); }
.segmented-choice label, .distribution-choice label { cursor: pointer; }
.segmented-choice input, .distribution-choice input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-choice span { min-height: 52px; display: grid; place-content: center; text-align: center; background: var(--cream-mid); border: 1px solid transparent; font-size: 12px; }
.segmented-choice span strong { font: 22px var(--font-serif); }
.segmented-choice input:checked + span { background: var(--cream); border-color: var(--terracotta); color: var(--terracotta-dark); }
.distribution-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.distribution-choice span { min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid var(--cream-deep); background: var(--cream); }
.distribution-choice strong, .distribution-choice small { display: block; }
.distribution-choice small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.distribution-choice input:checked + span { border-color: var(--terracotta); background: var(--cream-mid); box-shadow: inset 3px 0 var(--terracotta); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.project-list { display: grid; gap: 9px; margin-bottom: 18px; }
.project-choice { width: 100%; border: 1px solid var(--line); background: var(--cream); padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; text-align: left; border-radius: 2px; }
.project-choice:hover, .project-choice.active { border-color: var(--terracotta); background: var(--cream-mid); }
.project-choice-avatar { width: 40px; height: 40px; display: grid; place-items: center; background: var(--sage-2); color: var(--sage); border-radius: 50%; font-weight: 700; font-size: 12px; }
.project-choice strong, .project-choice small { display: block; }
.project-choice small { color: var(--muted); margin-top: 3px; }
.project-choice .current { color: var(--berry); font-size: 11px; font-weight: 700; }
.question-mode { display: grid; gap: 5px; min-width: 230px; }
.question-mode label { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.question-mode select { min-height: 44px; padding: 0 12px; border: 1px solid var(--cream-deep); background: var(--cream); }
.question-tabs { margin: 0 0 28px; display: inline-flex; padding: 4px; background: var(--cream-deep); border: 1px solid var(--cream-deep); }
.question-tabs button { min-height: 46px; padding: 0 22px; border: 0; background: transparent; color: var(--muted); }
.question-tabs button.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(30,40,50,.08); }
.questionnaire-toolbar { margin-bottom: 22px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 32px; border: 1px solid var(--line); background: var(--cream-mid); }
.questionnaire-toolbar strong { font: 400 21px/1.3 var(--font-serif); }
.questionnaire-toolbar p { max-width: 660px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.testimony-progress { background: var(--sage); }
.compact-question-head { margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.compact-question-head h3 { margin: 6px 0; font: 400 28px/1.25 var(--font-serif); }
.compact-question-head p { margin: 0; }
.empty-questionnaire { padding: 60px 28px; text-align: center; border: 1px solid var(--line); background: var(--cream-mid); }
.empty-questionnaire h3 { margin: 0 0 8px; font: 400 28px var(--font-serif); }
.empty-questionnaire p { max-width: 540px; margin: 0 auto 24px; color: var(--muted); line-height: 1.6; }
.segmented-choice small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.quick-question { margin: 22px 0; padding: 26px 28px 28px; color: var(--cream); background: var(--sage); }
.quick-question header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.quick-question .eyebrow { color: var(--cream-mid); }
.quick-question .eyebrow::after { background: var(--terracotta); }
.quick-question header span { color: rgba(255,255,255,.68); font-size: 12px; }
.quick-question h3 { max-width: 860px; margin: 25px 0 22px; font: italic 400 27px/1.3 var(--font-serif); }
.quick-refresh { min-height: 38px; padding: 0 12px; flex: 0 0 auto; color: var(--cream); border: 1px solid rgba(255,255,255,.3); background: transparent; }
.quick-refresh:hover { background: rgba(255,255,255,.08); }
.quick-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.quick-options button { min-height: 50px; padding: 10px 12px; color: var(--ink); background: var(--cream); border: 1px solid transparent; font-size: 12px; line-height: 1.3; }
.quick-options button:hover { color: var(--terracotta-dark); border-color: var(--terracotta); background: var(--cream-mid); }
.quick-complete { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--cream-mid); color: var(--ink); border: 1px solid var(--line); }
.quick-complete h3 { margin: 10px 0 0; }
.question-progress { margin-bottom: 22px; padding: 24px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; background: var(--ink-soft); color: var(--cream); }
.question-progress > div:first-child strong, .question-progress > div:first-child span { display: block; }
.question-progress > div:first-child strong { font: 30px var(--font-serif); }
.question-progress > div:first-child span, .question-progress p { margin: 0; color: rgba(255,255,255,.6); font-size: 11px; }
.question-progress .book-progress { margin: 0; }
.question-list { border-top: 1px solid var(--line); }
.guided-question { min-height: 132px; padding: 20px 0; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.guided-question.answered { background: linear-gradient(90deg,var(--sage-2),transparent 60%); }
.question-number { color: var(--terracotta); font: 22px var(--font-serif); }
.question-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.question-meta span { padding: 3px 7px; background: var(--cream-mid); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.guided-question h3 { margin: 8px 0 0; font: 400 19px/1.4 var(--font-serif); }
.question-answer { margin: 8px 0 0; color: var(--sage); font-size: 13px; }
.question-row-actions { display: grid; justify-items: stretch; gap: 8px; min-width: 170px; }
.question-row-actions .text-link { font-size: 12px; text-align: center; }
.anecdote-saved { display: inline-block; margin-top: 7px; color: var(--terracotta-dark); }
.answer-followup { padding: 10px 0 20px; text-align: center; }
.answer-followup > span { width: 48px; height: 48px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-2); color: var(--sage); font-size: 22px; }
.answer-followup p { margin: 8px auto; max-width: 430px; color: var(--muted); }
.answer-followup p strong { color: var(--ink); font: 400 24px/1.3 var(--font-serif); }
.question-context { margin-bottom: 22px; padding: 18px; display: grid; gap: 7px; background: var(--cream-mid); border-left: 3px solid var(--terracotta); }
.question-context small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.question-context strong { font: 400 18px/1.35 var(--font-serif); }
.question-context span { color: var(--terracotta-dark); font-size: 13px; }
.question-pagination { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.question-pagination span { color: var(--muted); font-size: 12px; text-align: center; }
.question-modal-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.question-modal-title { margin: 14px 0 24px; font: italic 400 27px/1.35 var(--font-serif); }
.qcm-options { display: grid; gap: 8px; }
.qcm-options label { cursor: pointer; }
.qcm-options input { position: absolute; opacity: 0; }
.qcm-options span { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; border: 1px solid var(--cream-deep); background: var(--cream); }
.qcm-options input:checked + span { border-color: var(--terracotta); background: var(--cream-mid); box-shadow: inset 3px 0 var(--terracotta); }

/* Workspace palette without green */
.app-shell {
  --workspace-ink: #171310;
  --workspace-coffee: #332d25;
  --workspace-paper: #fbf9f5;
  --workspace-paper-deep: #f0e5d4;
  --workspace-tan: #d8c5aa;
  --workspace-caramel: #bf744f;
  --workspace-rust: #9f5438;
  --workspace-line: rgba(23,19,16,.14);
  --workspace-ok: #7c4a32;
  --workspace-ok-bg: #ead7c9;
}
.app-shell .quick-question,
.app-shell .testimony-progress {
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(191,116,79,.18), transparent 44%),
    #3b3027;
  border-color: rgba(23,19,16,.18);
}
.app-shell .quick-question .eyebrow,
.app-shell .quick-question header span,
.app-shell .testimony-progress p,
.app-shell .question-progress > div:first-child span,
.app-shell .question-progress p {
  color: rgba(255,250,242,.64);
}
.app-shell .quick-question .eyebrow::after { background: var(--workspace-caramel); }
.app-shell .quick-options button {
  color: var(--workspace-ink);
  background: var(--workspace-paper);
  border-color: rgba(255,250,242,.24);
}
.app-shell .quick-options button:hover {
  color: var(--workspace-rust);
  background: #f2e7d8;
  border-color: var(--workspace-caramel);
}
.app-shell .quick-refresh {
  color: #fffaf2;
  border-color: rgba(255,250,242,.28);
}
.app-shell .quick-complete {
  color: var(--workspace-ink);
  background: var(--workspace-paper-deep);
}
.app-shell .question-progress,
.app-shell .manuscript-status,
.app-shell .record-studio {
  color: #fffaf2;
  background: var(--workspace-coffee);
}
.app-shell .status-dot.ready,
.app-shell .status::before {
  background: var(--workspace-caramel);
  box-shadow: 0 0 0 5px rgba(191,116,79,.14);
}
.app-shell mark.paid {
  color: var(--workspace-ok);
  background: var(--workspace-ok-bg);
}
.app-shell .guided-question.answered {
  background: linear-gradient(90deg, rgba(191,116,79,.13), transparent 62%);
}
.app-shell .question-answer,
.app-shell .tag,
.app-shell .share-link code,
.app-shell .memory-year,
.app-shell .upload-card strong,
.app-shell .audio-analysis {
  color: var(--workspace-rust);
}
.app-shell .tag,
.app-shell .activity-icon,
.app-shell .auth-success > span,
.app-shell .generation-complete > span,
.app-shell .project-choice-avatar {
  background: #ead7c9;
  color: var(--workspace-rust);
}
.app-shell .activity-icon,
.app-shell .project-choice-avatar,
.app-shell .auth-success > span,
.app-shell .generation-complete > span {
  border-radius: 2px;
}
.app-shell .audio-wave {
  background: repeating-linear-gradient(90deg, var(--workspace-caramel) 0 2px, transparent 2px 6px);
}
.app-shell .toggle.on { background: var(--workspace-caramel); }
.app-shell .platform-metrics article.warning { background: #f2ddd3; }
.app-shell .monthly-grid article,
.app-shell .admin-client-sheet section,
.app-shell .invoice-sheet div,
.app-shell .order-sheet section,
.app-shell .delivery-list article {
  background: #f1e4d2;
}
.app-shell .mini-progress em,
.app-shell .monthly-grid em,
.app-shell .book-progress span {
  background: var(--workspace-caramel);
}

/* Roman workspace softness */
.app-shell {
  background:
    linear-gradient(90deg, rgba(42,36,24,.026) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fbf7ef 0%, #f4eadb 100%);
  background-size: 78px 78px, auto;
}
.sidebar {
  color: var(--workspace-ink);
  background: #f0e5d4;
  border-right: 1px solid rgba(23,19,16,.13);
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sidebar .brand,
.sidebar-bottom {
  border-color: rgba(23,19,16,.10);
}
.sidebar .brand,
.sidebar a,
.sidebar-bottom,
.sidebar-bottom p,
.sidebar-bottom small,
.sidebar-bottom button {
  color: var(--workspace-ink);
}
.sidebar-bottom .avatar {
  background: var(--workspace-caramel);
  color: #fffaf2;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.project-switch {
  border-radius: 8px;
  background: rgba(255,250,242,.58);
  border-color: rgba(23,19,16,.12);
  box-shadow: inset 3px 0 var(--workspace-caramel), 0 18px 36px rgba(42,36,24,.06);
}
.project-switch small,
.project-switch select,
.side-nav button {
  color: var(--workspace-ink);
}
.side-nav {
  gap: 6px;
}
.side-nav button {
  min-height: 52px;
  border-bottom: 0;
  border-radius: 8px;
}
.side-nav button:hover,
.side-nav button.active {
  background: rgba(255,250,242,.7);
  box-shadow: inset 3px 0 var(--workspace-caramel), 0 10px 24px rgba(42,36,24,.05);
}
.app-topbar {
  background: rgba(251,247,239,.9);
  border-bottom-color: rgba(23,19,16,.10);
  backdrop-filter: blur(12px);
}
.app-content {
  padding-top: 50px;
}
.welcome,
.view-head {
  margin-bottom: 34px;
  border-bottom: 0;
}
.welcome h2,
.view-head h2,
.platform-head h2 {
  font-style: italic;
  letter-spacing: 0;
}
.portrait-overview,
.panel,
.memory,
.person-card,
.audio-row,
.privacy-box,
.chapter-list,
.questionnaire-toolbar,
.empty-questionnaire,
.join-panel,
.readonly-note,
.invite-code-preview,
.monthly-grid article,
.admin-client-sheet section,
.invoice-sheet div,
.order-sheet section,
.delivery-list article,
.admin-mode-switch,
.admin-filter-bar {
  border-radius: 8px;
  background: rgba(255,250,242,.7);
  border-color: rgba(23,19,16,.10);
  box-shadow: 0 18px 44px rgba(42,36,24,.055);
}
.portrait-overview {
  overflow: hidden;
}
.portrait-overview figure,
.portrait-drop figure {
  border-radius: 8px;
}
.access-overview,
.metric-grid,
.platform-metrics,
.content-grid,
.admin-grid,
.admin-grid-secondary {
  gap: 22px;
  border: 0;
}
.access-overview article,
.metric,
.platform-metrics article {
  border: 1px solid rgba(23,19,16,.10);
  border-radius: 8px;
  background: rgba(255,250,242,.64);
  box-shadow: 0 18px 44px rgba(42,36,24,.052);
}
.access-overview article + article,
.metric + .metric,
.platform-metrics article + article {
  border-left: 1px solid rgba(23,19,16,.10);
}
.progress-card,
.quick-question,
.question-progress,
.manuscript-status,
.record-studio {
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(42,36,24,.13);
}
.panel-head {
  border-bottom-color: rgba(23,19,16,.08);
}
.panel-head h3,
.admin-row strong,
.admin-row b {
  font-family: var(--font-serif);
  font-weight: 400;
}
.activity-item,
.admin-row,
.guided-question,
.chapter,
.invoice-list button,
.plan-list button,
.order-list button,
.promo-list article {
  border-bottom-color: rgba(23,19,16,.08);
}
.quick-options button,
.qcm-options span,
.segmented-choice span,
.distribution-choice span,
.field input,
.field textarea,
.field select,
.question-tabs,
.format-switch,
.admin-mode-switch div div,
.admin-filter-bar button,
mark,
.share-link,
.modal,
#toast {
  border-radius: 8px;
}
.admin-row:not(.admin-row-head):hover,
.admin-tasks button:hover,
.invoice-list button:hover,
.plan-list button:hover,
.order-list button:hover {
  background: rgba(255,250,242,.58);
}
.app-shell .activity-icon,
.app-shell .project-choice-avatar,
.app-shell .auth-success > span,
.app-shell .generation-complete > span {
  border-radius: 8px;
}
#toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; background: var(--ink-soft); color: var(--cream); padding: 14px 18px; border-radius: 8px; box-shadow: var(--shadow); transform: translateY(100px); opacity: 0; transition: .25s; }
#modal-root .book-lightbox { width: min(1120px, 100%); background: var(--ink-soft); color: var(--cream); }
.book-lightbox .modal-head { border-color: rgba(255,255,255,.14); }
.book-lightbox .modal-body { padding: 0; }
.book-lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
#toast.show { transform: translateY(0); opacity: 1; }
.mobile-menu { display:none; }
.sidebar-scrim { display: none; }

@media (max-width: 900px) {
  .container { width: min(1100px, calc(100% - 48px)); }
  .site-nav a:not(.btn) { display:none; }
  .hero { min-height: 720px; background-position: 62% center; align-items: flex-end; }
  .hero::after { background: rgba(250,246,239,.82); }
  .hero .container { padding-bottom: 55px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 52px; }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .access-overview { grid-template-columns: 1fr; }
  .join-panel { align-items: stretch; flex-direction: column; }
  .step + .step, .price + .price { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .workshop-grid { grid-template-columns: 1fr; gap: 44px; }
  .format-showcase { grid-template-columns: 1fr; }
  .record-studio { grid-template-columns: 92px 1fr; }
  .format-image { min-height: 420px; }
  .books-intro, .book-gallery { grid-template-columns: 1fr; gap: 20px; }
  .cover-intro { grid-template-columns:1fr; gap:20px; }
  .cover-collection .container { width: min(100% - 48px, 1100px); }
  .cover-grid { grid-template-columns:repeat(6,190px); gap:20px; overflow-x:auto; padding:0 0 22px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
  .cover-option { scroll-snap-align:start; }
  .illustrated-covers { grid-template-columns:1fr; }
  .book-example:first-child { grid-row: auto; }
  .book-example:first-child img, .book-example img { min-height: 360px; }
  .book-stage { min-height: 430px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 11; width: min(82vw, 300px); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 18px 0 40px rgba(10,18,25,.2); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 10; border: 0; background: rgba(15,20,24,.48); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .sidebar.open + .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .mobile-menu { display: grid; }
  .sidebar > .mobile-menu { display: none; }
  .sidebar.open > .mobile-menu { display: grid; }
  .sidebar .sidebar-close { position: absolute; top: 18px; right: 16px; color: var(--cream); background: rgba(250,246,239,.08); border-color: rgba(250,246,239,.2); }
  .app-topbar { padding: 0 18px; }
  .app-content { padding: 24px 18px; }
  .portrait-overview { grid-template-columns: 112px minmax(0,1fr); }
  .portrait-drop { width: 112px; }
  .portrait-overview figure { width: 112px; height: 132px; }
  .portrait-upload { grid-column: 1 / -1; justify-self: start; }
  .platform-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-mode-switch, .admin-filter-bar { align-items: stretch; flex-direction: column; }
  .monthly-grid { grid-template-columns: 1fr; }
  .admin-grid, .admin-grid-secondary { grid-template-columns: 1fr; }
  .admin-side-panel { position: static; }
  .admin-row { grid-template-columns: 1fr 1fr; }
  .admin-row span:last-child { display: none; }
  .admin-row-head { display: none; }
  .order-list button { grid-template-columns: 1fr 1fr; }
  .order-list button > span:last-child { display: none; }
  .promo-list article { grid-template-columns: 1fr; }
  .progress-card, .content-grid, .book-workspace { grid-template-columns: 1fr; }
  .book-source-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .book-source + .book-source { border-left: 0; border-top: 1px solid var(--line); }
  .family-grid, .media-grid { grid-template-columns: repeat(2, 1fr); }
  .question-progress { grid-template-columns: auto 1fr; }
  .question-progress p { grid-column: 1 / -1; }
  .quick-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .container { width: min(100% - 40px, 1100px); }
  .site-header .btn { padding: 0 12px; min-height: 38px; }
  .site-header .brand { font-size: 22px; }
  .site-nav { gap: 10px; }
  .hero { min-height: 680px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .hero-trust { display: grid; gap: 8px; }
  .promise, .pricing, .quote, .books-showcase, .cover-collection, .family-workshop { padding: 72px 0; }
  .product-band { padding: 72px 0; }
  .product-copy h2 { font-size: 42px; }
  .workshop-copy h2 { font-size: 42px; }
  .workshop-points { grid-template-columns: 1fr; }
  .workshop-points span { min-height: 82px; padding: 18px 0; }
  .workshop-points span + span { border-left: 0; border-top: 1px solid var(--cream-deep); }
  .workshop-ledger { padding: 24px 20px; }
  .books-intro { gap: 16px; }
  .books-intro h2 { font-size: 42px; }
  .cover-intro h2 { font-size:42px; }
  .cover-collection .container { width: min(100% - 40px, 1100px); }
  .cover-intro { margin-bottom:42px; }
  .cover-grid { gap:16px; }
  .cover-art { padding:20px; }
  .cover-art strong { font-size:27px; }
  .cover-manifeste strong { font-size:34px; }
  .illustrated-covers article { grid-template-columns:1fr; }
  .illustrated-covers img { aspect-ratio:1; }
  .collection-note { align-items:stretch; flex-direction:column; }
  .collection-note .btn { width:100%; }
  .book-example:first-child img, .book-example img { min-height: 250px; }
  .book-proof { flex-direction: column; gap: 8px; }
  .feature-list { grid-template-columns: 1fr; }
  .person-manifesto { padding-left: 0; margin-top: 48px; }
  .person-manifesto strong { font-size: 34px; }
  .format-switch { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; }
  .format-switch button { min-height: 54px; padding: 6px 8px; white-space: normal; line-height: 1.2; }
  .format-showcase { min-height: 0; }
  .format-image { min-height: 270px; }
  .format-copy { padding: 30px 24px; }
  .format-copy h3 { font-size: 32px; }
  .record-studio { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; }
  .footer .container { align-items: flex-start; gap: 24px; flex-direction: column; }
  .welcome, .view-head { align-items: stretch; flex-direction: column; }
  .view-head > .btn, .view-head > label.btn { width: 100%; }
  .portrait-overview { grid-template-columns: 1fr; }
  .portrait-drop { width: 100%; }
  .portrait-overview figure { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .portrait-upload { width: 100%; }
  .platform-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .admin-filter-bar { align-items: stretch; flex-direction: column; }
  .platform-metrics { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; gap: 8px; }
  .invoice-list button { grid-template-columns: 1fr auto; }
  .invoice-list span, .invoice-list small { grid-column: 1; }
  .order-list button { grid-template-columns: 1fr; }
  .plan-list button { grid-template-columns: 1fr auto; }
  .admin-client-sheet, .invoice-sheet, .order-sheet { grid-template-columns: 1fr; }
  .delivery-list article { grid-template-columns: 1fr; }
  .delivery-list .text-link { grid-column: auto; grid-row: auto; justify-self: start; }
  .top-actions .btn span { display: none; }
  .icon-btn, .app-topbar .btn { min-width: 44px; min-height: 44px; }
  .app-topbar .top-actions .btn { width: 44px; padding: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:last-child { grid-column: 1 / -1; }
  .family-grid, .media-grid { grid-template-columns: 1fr; }
  .timeline { margin-left: 55px; }
  .memory-year { right: calc(100% + 48px); font-size: 17px; writing-mode: vertical-rl; }
  .book-workspace { display: block; }
  .manuscript-status { grid-template-columns: 1fr; padding: 24px 20px; }
  .manuscript-status .generate-book { width: 100%; }
  .status-line small { width: 100%; margin-left: 19px; }
  .book-source-grid { grid-template-columns: 1fr 1fr; }
  .book-source { padding: 12px; }
  .book-source:last-child { grid-column: 1 / -1; }
  .chapter-needs { grid-template-columns: 1fr; padding: 20px; }
  .chapter-heading { margin-top: 26px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .generation-summary { grid-template-columns: 1fr; }
  .generation-score { margin: auto; }
  .manuscript-preview > header { padding: 38px 22px; }
  .manuscript-preview > header h2 { font-size: 38px; }
  .manuscript-toc { padding: 20px; }
  .manuscript-toc button { grid-template-columns: 30px 1fr; }
  .manuscript-toc button small { grid-column: 2; }
  .book-reader-modal .modal-body { padding: 14px; }
  .book-spread { min-width: 860px; }
  .book-page { padding: 40px 34px 38px; }
  .book-reader-toolbar, .book-reader-nav { align-items: stretch; flex-direction: column; }
  .book-reader-toolbar .btn, .book-reader-nav .btn { width: 100%; }
  .chapter-list { margin-top: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .distribution-choice { grid-template-columns: 1fr; }
  .question-mode { width: 100%; }
  .quick-question { padding: 22px 18px; }
  .quick-question header { align-items: stretch; flex-direction: column; gap: 16px; }
  .quick-question h3 { font-size: 24px; }
  .quick-refresh { align-self: flex-start; }
  .quick-options { grid-template-columns: 1fr; }
  .quick-complete { align-items: stretch; flex-direction: column; }
  .quick-complete .btn { width: 100%; }
  .question-tabs { width: 100%; display: grid; grid-template-columns: 1fr; }
  .question-tabs button { padding: 8px 12px; }
  .questionnaire-toolbar { padding: 22px 18px; align-items: stretch; flex-direction: column; gap: 18px; }
  .question-progress { grid-template-columns: 1fr; gap: 12px; }
  .question-progress p { grid-column: auto; }
  .guided-question { grid-template-columns: 42px 1fr; }
  .guided-question > .btn { grid-column: 2; justify-self: stretch; }
  .guided-question .question-row-actions { grid-column: 2; width: 100%; min-width: 0; }
  .question-pagination { display: grid; grid-template-columns: 1fr 1fr; }
  .question-pagination span { grid-column: 1 / -1; grid-row: 1; }
  .audio-row { padding: 14px; gap: 11px; }
  .audio-actions { gap: 8px; }
  .privacy-row { align-items: flex-start; }
  .share-link { flex-wrap: wrap; }
  .share-link code { flex: 1 1 180px; }
  .share-link .btn { flex: 1 0 auto; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { max-height: 94vh; border-radius: 2px 2px 0 0; }
  .modal-head { padding: 18px 20px; position: sticky; top: 0; z-index: 2; background: var(--white); }
  .modal-body { padding: 20px; }
  #toast { left: 14px; right: 14px; bottom: 14px; text-align: center; }
}
@media (max-width: 360px) {
  .site-header .brand { font-size: 20px; gap: 8px; }
  .site-header .btn { padding: 0 10px; font-size: 13px; }
  .hero h1 { font-size: 39px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .app-topbar { padding: 0 12px; }
  .app-topbar h1 { font-size: 24px; line-height: 1.05; }
  .top-actions { gap: 6px; }
  .app-content { padding: 22px 14px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric:last-child { grid-column: auto; }
  .timeline { margin-left: 46px; }
  .memory { margin-left: 24px; padding: 20px 18px; }
  .memory-year { right: calc(100% + 40px); }
  .audio-row { grid-template-columns: 40px minmax(0,1fr); }
  .audio-row > small, .audio-actions { grid-column: 2; justify-content: flex-end; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

@media (max-width: 1100px) {
  .home-container { width: min(100% - 64px, 980px); }
  .site-nav { gap: 24px; }
  .home-hero { padding-top: 56px; }
  .home-hero-grid { gap: 50px; }
  .home-hero-copy h1 { font-size: 62px; }
  .home-hero-copy p { font-size: 18px; }
  .home-hero-visual { height: 600px; }
  .cover-collection .home-container, .home-page .family-workshop .container { width: min(100% - 64px, 980px); }
  .home-steps article { padding-right: 26px; }
  .preview-heading { grid-template-columns: 1fr; gap: 28px; }
  .preview-heading h2 { font-size: 52px; }
  .home-page .workshop-copy h2 { font-size: 52px; }
}

@media (max-width: 800px) {
  .site-header { height: 82px; }
  .site-header .home-container { width: calc(100% - 40px); }
  .home-brand { font-size: 22px; }
  .site-nav a { display: none; }
  .site-nav .home-pill { min-height: 44px; padding: 0 18px; font-size: 12px; }
  .home-container { width: calc(100% - 40px); }
  .home-hero { min-height: 0; padding: 52px 0 76px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .home-hero-copy h1 { font-size: 50px; line-height: 1.12; }
  .home-hero-copy p { margin-top: 28px; font-size: 17px; }
  .home-actions { margin-top: 34px; }
  .home-hero-visual { height: auto; aspect-ratio: 4 / 5; border-radius: 12px; }
  .home-process { padding: 84px 0; }
  .home-process h2 { margin-bottom: 62px; font-size: 48px; }
  .home-steps { grid-template-columns: 1fr 1fr; }
  .home-steps article { padding: 38px 28px 30px 0; }
  .home-steps article + article { padding-left: 0; }
  .home-steps article:nth-child(even) { padding-left: 24px; border-left: 1px solid #e0d9cf; }
  .home-steps article:nth-child(n+3) { border-top: 1px solid #e0d9cf; }
  .home-steps h3 { margin-top: 24px; }
  .platform-preview { padding: 84px 0; }
  .preview-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 42px; }
  .preview-heading h2 { font-size: 48px; }
  .preview-carousel { grid-auto-columns: minmax(300px, 78vw); gap: 16px; margin-right: -20px; padding-right: 20px; }
  .preview-slide { min-height: 390px; padding: 24px; border-radius: 14px; }
  .preview-stats { grid-template-columns: 1fr 1fr; }
  .cover-collection { padding: 84px 0; }
  .cover-collection .home-container, .home-page .family-workshop .container { width: calc(100% - 40px); }
  .cover-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 54px; }
  .cover-intro h2 { font-size: 48px; }
  .cover-intro > p { margin: 0; }
  .cover-grid { grid-template-columns: repeat(6, 210px); overflow-x: auto; gap: 18px; padding-bottom: 22px; scroll-snap-type: x mandatory; }
  .cover-option { scroll-snap-align: start; }
  .home-page .family-workshop { padding: 84px 0; }
  .home-page .workshop-grid { grid-template-columns: 1fr; gap: 50px; }
  .home-page .workshop-copy h2 { font-size: 48px; }
  .illustrated-universe { padding: 0; }
  .illustrated-panel { width: 100%; padding: 72px 32px; border-width: 1px 0; border-radius: 0; }
  .illustrated-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 42px; }
  .illustrated-heading h2 { font-size: 44px; }
  .illustrated-grid { grid-template-columns: 1fr; }
  .home-reader { grid-template-columns: 1fr; min-height: 0; }
  .home-reader-page { padding: 48px 36px; }
  .home-reader-page h3 { font-size: 34px; }
  .legal-page { padding: 124px 0 72px; }
  .legal-layout { grid-template-columns: 1fr; gap: 38px; }
  .legal-title { position: static; }
  .legal-document { padding: 34px 30px; }
  .pricing { padding: 96px 0; }
  .pricing .home-container { width: calc(100% - 40px); }
  .price-grid { grid-template-columns: 1fr; }
  .price + .price { border-top: 1px solid #e3ded7; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-nav { gap: 10px; }
  .home-brand { font-size: 20px; }
  .site-nav .home-account { min-width: 58px; padding: 8px 4px; font-size: 0; }
  .site-nav .home-account::after { content: 'Compte'; font-size: 11px; }
  .site-nav .home-pill { width: 44px; padding: 0; font-size: 0; }
  .site-nav .home-pill::before { content: '+'; font-size: 22px; }
  .home-hero { padding: 34px 0 42px; }
  .home-hero-grid { gap: 28px; }
  .home-hero-copy h1 { font-size: 41px; }
  .home-hero-copy p { margin-top: 20px; font-size: 15px; line-height: 1.55; }
  .home-actions { display: grid; gap: 10px; margin-top: 26px; }
  .home-actions .home-pill { width: 100%; }
  .home-actions .home-pill { min-height: 50px; }
  .home-hero-visual { height: 220px; aspect-ratio: auto; }
  .home-hero-visual img { object-position: 42% 68%; transform: translate3d(0,-22px,0) scale(1.08); }
  .home-process h2, .preview-heading h2, .cover-intro h2, .home-page .workshop-copy h2, .illustrated-heading h2 { font-size: 40px; }
  .home-steps { grid-template-columns: 1fr; }
  .home-steps article, .home-steps article:nth-child(even) { padding: 32px 0; border-left: 0; border-top: 1px solid #e0d9cf; }
  .home-steps article:first-child { border-top: 0; }
  .preview-heading p { font-size: 15px; line-height: 1.6; }
  .preview-carousel { grid-auto-columns: minmax(270px, 86vw); }
  .preview-slide { min-height: 370px; padding: 22px 20px; }
  .preview-slide h3 { font-size: 25px; }
  .preview-stats { grid-template-columns: 1fr; }
  .home-page .workshop-points { grid-template-columns: 1fr; }
  .home-page .workshop-ledger { padding: 24px 20px; }
  .illustrated-panel { padding: 64px 20px; }
  .illustrated-grid article > button { height: 310px; }
  .home-reader-page { padding: 38px 24px; }
  .home-reader-page p { font-size: 16px; line-height: 1.7; }
  .home-reader-page.illustrated img { max-height: 260px; }
  .legal-page { padding-top: 108px; }
  .legal-title h1 { font-size: 38px; }
  .legal-title p { font-size: 15px; }
  .legal-document { padding: 28px 20px; }
  .legal-document h2 { font-size: 22px; }
  .legal-document p { font-size: 14px; }
  .illustrated-grid article > div { padding: 26px 24px 30px; }
  .pricing-title { margin-bottom: 52px; }
  .pricing-title h2 { font-size: 40px; }
  .price { min-height: 400px; padding: 34px 28px; }
  .quote { padding: 96px 0; }
  .quote blockquote { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 430px) {
  .book-spread { min-width: 0; grid-template-columns: 1fr; aspect-ratio: auto; }
  .book-page { min-height: 560px; }
  .book-page:nth-child(1), .book-page:nth-child(2) { box-shadow: none; }
}
