.purpose-page, .journey-page, .guided-workspace {
  --journey-ink:#262035;
  --journey-muted:#61596e;
  --journey-line:#e7e0ec;
  --journey-plum:#51349f;
}
.purpose-page h1, .journey-card h1, .guided-identity h1 {
  color:var(--journey-ink);
  text-wrap:balance;
  overflow-wrap:anywhere;
}
.workspace:has(.purpose-page) { padding-top:25px; }
.purpose-page { max-width:1290px; margin-inline:auto; }
.purpose-hero { padding:8px 0 24px; }
.purpose-hero h1 {
  margin:0 0 11px; max-width:27ch; font-size:clamp(34px,3.55vw,53px); line-height:1.05; font-weight:730; letter-spacing:-.052em;
}
.purpose-hero p, .purpose-heading p, .journey-instruction, .share-panel header p {
  color:var(--journey-muted); line-height:1.55; margin:0 0 18px; font-size:1rem; max-width:47ch;
}
.purpose-hero p { max-width:72ch; margin:0; }
.sample-link {
  display:inline-flex; align-items:center; gap:8px; color:var(--journey-plum); border:0; background:transparent;
  padding:8px 0; cursor:pointer; font:inherit; font-size:.875rem; font-weight:660;
}
.sample-link svg { width:17px; height:17px; flex:none; }
.sample-link:hover { text-decoration:underline; }
.purpose-heading { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:5px 18px; margin-bottom:15px; }
.purpose-heading h2 { font-size:clamp(23px,2.5vw,32px); letter-spacing:-.035em; margin:0; }
.purpose-heading p { margin:4px 0 0; max-width:none; font-size:.875rem; }
.purpose-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(13px,1.5vw,22px); }
.purpose-card {
  --purpose-accent:#863825;
  --purpose-wash:#fffaf6;
  --purpose-image-bg:#e7ad92;
  display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; min-width:0; overflow:hidden;
  color:var(--journey-ink); background:var(--purpose-wash);
  border:1px solid var(--journey-line); border-radius:16px;
  font:inherit; text-align:left; padding:0;
}
.purpose-card.purpose-ebook {
  --purpose-accent:#3f3b9a;
  --purpose-wash:#f9f8ff;
  --purpose-image-bg:#5951aa;
}
.purpose-card.purpose-printed-book {
  --purpose-accent:#365a4a;
  --purpose-wash:#f6faf6;
  --purpose-image-bg:#a3b5a1;
}
.purpose-image { display:block; width:100%; height:auto; aspect-ratio:2; object-fit:cover; background:var(--purpose-image-bg); }
.purpose-content { display:flex; flex:1; flex-direction:column; width:100%; padding:16px clamp(13px,1.5vw,22px) 13px; }
.purpose-card strong, .purpose-card h3 { margin:0 0 6px; font-size:clamp(18px,2vw,24px); line-height:1.2; letter-spacing:-.028em; font-weight:730; }
.purpose-description { margin:0 0 12px; font-size:.9rem; line-height:1.5; color:var(--journey-muted); }
.purpose-files { margin-top:auto; font-size:.76rem; line-height:1.4; color:var(--journey-muted); }
.purpose-cta {
  display:flex; align-items:center; justify-content:space-between; min-height:34px; margin-top:11px;
  border-top:1px solid var(--journey-line); padding-top:9px; color:var(--purpose-accent); font-size:.87rem; font-weight:680;
}
.purpose-cta span { font-size:1.2rem; line-height:1; }
button.purpose-card { cursor:pointer; transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
button.purpose-card:hover { transform:translateY(-2px); border-color:var(--purpose-accent); box-shadow:0 8px 20px #36244717; }
button.purpose-card:focus-visible { outline:3px solid var(--purpose-accent); outline-offset:3px; }
.purpose-reading { display:inline-block; margin:19px 0 0; font-size:.9rem; color:var(--journey-plum); }
.journey-page { max-width:1110px; margin:auto; }
.journey-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(230px,.75fr); gap:clamp(16px,3vw,32px); align-items:start; }
.journey-card, .share-panel, .guided-plan {
  min-width:0; border:1px solid var(--journey-line); border-radius:15px; background:#fffdfb; padding:clamp(17px,3vw,32px);
}
.journey-card h1 { font-size:clamp(30px,4vw,47px); line-height:1.05; letter-spacing:-.047em; margin:7px 0 10px; }
.journey-card textarea { resize:vertical; }
.journey-context { color:#523791; font-size:.86rem; font-weight:680; }
.journey-source { min-height:145px; }
.journey-page .field { margin-bottom:14px; }
.journey-card .source-options { display:flex; flex-wrap:wrap; align-items:center; gap:5px 15px; }
.source-options small, .journey-note, .journey-image small { font-size:.82rem; color:var(--journey-muted); line-height:1.55; }
.journey-preferences { margin:17px 0 8px; border-top:1px solid var(--journey-line); padding-top:13px; }
.journey-preferences summary, .review-checks summary { cursor:pointer; font-weight:640; }
.journey-preferences[open] summary { margin-bottom:14px; }
.journey-image { margin:12px 0 0; border:1px solid var(--journey-line); border-radius:9px; padding:11px; min-width:0; }
.journey-image #inspiration-preview img { display:block; max-width:130px; max-height:110px; margin-top:6px; border-radius:5px; }
.journey-actions { display:flex; gap:12px; justify-content:space-between; align-items:start; margin-top:18px; }
.journey-actions > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.journey-note { margin:13px 0 0; }
.journey-preview {
  text-align:center; padding:17px; background:#eeebe6; border:1px solid #e4ded6; border-radius:15px;
  position:sticky; top:18px;
}
.journey-preview-title { color:var(--journey-ink); font-size:.84rem; font-weight:690; margin-bottom:14px; }
.journey-preview p { color:var(--journey-muted); font-size:.86rem; line-height:1.47; margin:13px 0 0; }
.journey-preview .journey-examples { border-top:1px solid #dad3cf; padding-top:10px; }
.journey-book-stage { width:min(62%,218px); margin:auto; text-align:left; }
.journey-progress.journey-six .journey-labels { grid-template-columns:repeat(6,minmax(0,1fr)); }
.guided-workspace { max-width:1200px; margin:auto; }
.guided-identity { display:flex; justify-content:space-between; align-items:start; gap:13px; margin-bottom:15px; }
.guided-identity h1 { font-size:clamp(25px,3.6vw,41px); line-height:1.1; letter-spacing:-.045em; margin:0 0 7px; }
.guided-identity .meta { margin-top:8px; }
.guided-identity .primary { flex:none; }
.guided-plan { max-width:910px; margin:0 auto; }
.guided-plan-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(190px,1fr); gap:14px; align-items:start; }
.guided-plan-layout .editor-book-preview { transform:none; }
.guided-plan h2 { margin:0 0 9px; font-size:clamp(23px,3vw,34px); letter-spacing:-.035em; }
.guided-plan p { color:var(--journey-muted); line-height:1.48; }
.guided-plan .field { margin:0 0 11px; }
.guided-plan .outline-card { margin:0 0 10px; }
.guided-plan .outline-card label:last-child { margin-bottom:0; }
.guided-plan-buttons { display:flex; flex-wrap:wrap; gap:9px; margin-top:15px; }
.guided-toolbar {
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin:0 0 12px; align-items:center;
}
.guided-toolbar .tabs { margin:0; }
.guided-toolbar .tabs button[aria-selected=true] { background:#e8defb; color:#402579; }
.guided-more { position:relative; }
.guided-more summary { list-style:none; cursor:pointer; border:1px solid var(--journey-line); border-radius:8px; padding:8px 11px; background:#fff; font-size:.87rem; color:#4b385b; font-weight:620; }
.guided-more summary::-webkit-details-marker { display:none; }
.guided-more[open] .guided-menu {
  position:absolute; z-index:5; right:0; top:calc(100% + 3px); width:190px; display:grid; gap:4px; padding:7px;
  background:#fff; border:1px solid var(--journey-line); border-radius:10px; box-shadow:0 8px 26px #39224925;
}
.guided-menu button { text-align:left; justify-content:start; min-height:34px; }
.guided-review-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(190px,1fr); gap:14px; align-items:start; }
.guided-reading { min-width:0; }
.guided-reading .preview-frame { min-height:670px; width:100%; }
.review-checks {
  border:1px solid var(--journey-line); background:#fff; border-radius:11px; padding:16px;
  color:var(--journey-muted); font-size:.92rem; line-height:1.5;
}
.review-checks h2 { margin:0 0 5px; font-size:1.08rem; color:var(--journey-ink); }
.review-checks p { margin:0 0 11px; }
.review-missing { color:#7a3624; }
.review-checks details { margin-top:12px; }
.review-checks ul { margin:7px 0 0; padding-left:18px; }
.guided-edit-grid { display:grid; grid-template-columns:190px minmax(0,1fr); gap:13px; overflow:visible; }
.guided-edit-grid .chapter-nav { min-width:0; }
.share-panel h2 { margin:0 0 8px; font-size:clamp(25px,3.4vw,37px); letter-spacing:-.04em; }
.share-panel header p { max-width:none; }
.share-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:13px 0 15px; }
.share-card {
  min-width:0; padding:15px; display:flex; flex-direction:column; align-items:start; border:1px solid var(--journey-line);
  border-radius:11px; background:#fff;
}
.share-card.share-first { background:#faf6ff; border-color:#d1bced; }
.share-card h3 { font-size:1.08rem; margin:10px 0 3px; }
.share-card p { flex:1; color:var(--journey-muted); font-size:.87rem; line-height:1.48; margin:0 0 14px; }
.share-card button { min-height:40px; text-align:center; }
.share-plan-note {
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px;
  background:#f6f0fc; border:1px solid #e8d8f7; padding:9px 11px; border-radius:8px; align-items:center;
}
.share-plan-note p { font-size:.87rem; margin:0; color:#56436c; }
.published-urls { margin:0 0 13px; }
.published-urls h3 { margin:0 0 5px; }
.published-urls .link-box { overflow-wrap:anywhere; }
.share-link-box { display:flex; flex-wrap:wrap; gap:7px 12px; align-items:center; justify-content:space-between; }
.guided-return { margin:0 0 12px; }
.draft-references { margin:14px 0 0; }
.draft-references pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; color:var(--journey-muted); max-height:240px; overflow:auto; }

@media (max-width:1000px) {
  .purpose-hero { grid-template-columns:minmax(0,1fr) minmax(0,.75fr); gap:17px; }
  .purpose-hero h1 { font-size:clamp(30px,4.8vw,52px); }
  .share-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:701px) and (max-width:1000px) {
  .purpose-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .purpose-printed-book { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; align-items:center; }
}
@media (max-width:700px) {
  .purpose-hero { padding:4px 0 20px; }
  .purpose-hero h1 { max-width:19ch; font-size:clamp(32px,9.2vw,47px); }
  .purpose-heading { margin-bottom:11px; }
  .purpose-cards, .journey-grid, .guided-plan-layout, .guided-review-grid, .share-options, .guided-edit-grid { grid-template-columns:minmax(0,1fr); }
  .journey-preview { position:static; text-align:left; display:grid; grid-template-columns:91px minmax(0,1fr); gap:4px 10px; align-items:center; }
  .journey-preview-title { grid-area:1/2; margin:0; align-self:end; }
  .journey-book-stage { grid-area:1/1/4; width:100%; }
  .journey-preview p { margin:0; }
  .journey-preview .journey-examples { padding-top:4px; }
  .guided-identity { flex-direction:column; }
  .guided-reading .preview-frame { min-height:525px; }
  .review-checks { grid-row:1; }
  .guided-edit-grid .chapter-nav { position:static; display:flex; overflow:auto; gap:5px; }
  .guided-edit-grid .chapter-button { width:auto; max-width:220px; flex:none; }
}
@media (prefers-reduced-motion:reduce) {
  button.purpose-card { transition:none; }
}
