@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
  --ink: #16302d;
  --ink-soft: #5d6c68;
  --paper: #f7f6f1;
  --surface: #fffef9;
  --surface-2: #efeee7;
  --line: rgba(19, 49, 45, .13);
  --deep: #0b2e2a;
  --deep-2: #0d3c36;
  --sage: #97aa8e;
  --lime: #dbe8a7;
  --gold: #d5a754;
  --red: #c86452;
  --yellow: #d3a643;
  --green: #4c8b67;
  --blue: #5b7f91;
  --shadow: 0 28px 80px rgba(11, 46, 42, .12);
  --font-display: 'Fraunces', 'Noto Serif Display', 'EB Garamond', Georgia, serif;
  --font-ui: 'DM Sans', 'Inter', 'Lato', Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #edf3ee;
  --ink-soft: #a7b4b0;
  --paper: #0d1716;
  --surface: #121f1d;
  --surface-2: #182724;
  --line: rgba(236, 245, 239, .12);
  --deep: #071b19;
  --deep-2: #0c302c;
  --shadow: 0 26px 70px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: pan-y; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

body.app-open { overflow: hidden; }

/* Landing — apresentação enxuta e humana */
.landing { min-height: 760px; height: 100svh; max-height: 980px; color: #f6f1df; background: #0b302c; position: relative; overflow: hidden; isolation: isolate; }
.landing::before { content: ''; position: absolute; width: 620px; height: 620px; right: -170px; top: -270px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); z-index: -1; }
.landing::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(1,18,16,.2)); z-index: -2; }
.landing-header { width: min(1240px, calc(100% - 64px)); height: 94px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.11); position: relative; z-index: 2; }
.landing-header > .button { justify-self: end; min-height: 40px; padding-inline: 20px; }
.landing-nav { display: flex; gap: 32px; font-size: 12px; }
.landing-nav a { color: rgba(255,255,255,.7); transition: color .2s ease; }
.landing-nav a:hover { color: #fff; }
.landing-hero { width: min(1240px, calc(100% - 64px)); height: calc(100% - 94px); margin: auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); align-items: center; gap: clamp(64px, 9vw, 140px); padding: 54px 0 74px; }
.landing-hero-copy { max-width: 760px; }
.landing-hero h1 { max-width: 760px; margin: 0; font-family: var(--font-display); font-size: clamp(58px, 6vw, 82px); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.landing-lead { max-width: 630px; margin: 28px 0 0; color: rgba(255,255,255,.7); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.landing-actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; }
.landing-reassurance { margin: 32px 0 0; color: rgba(255,255,255,.46); font-size: 12px; }
.landing-visual { align-self: center; min-height: 475px; padding: 34px; color: var(--ink); background: #f8f6ef; box-shadow: 0 34px 90px rgba(0,0,0,.22); display: flex; flex-direction: column; transform: rotate(1.2deg); }
.journey-preview-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(16,48,44,.13); }
.journey-preview-head span { font-family: var(--font-display); font-size: 27px; }
.journey-preview-head small, .journey-preview-reading small, .journey-preview-progress small { color: var(--ink-soft); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.journey-preview-reading { padding: 42px 0 34px; }
.journey-preview-reading strong { display: block; margin-top: 15px; font-family: var(--font-display); font-size: 47px; font-weight: 400; }
.journey-preview-reading p { max-width: 360px; margin: 12px 0 0; color: var(--ink-soft); font-family: var(--font-display); font-size: 18px; line-height: 1.55; }
.journey-preview-progress > span { display: block; height: 3px; margin-bottom: 12px; background: #deddd5; }
.journey-preview-progress i { display: block; height: 100%; background: var(--gold); }
.journey-preview-next { margin-top: auto; padding-top: 25px; border-top: 1px solid rgba(16,48,44,.13); display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.journey-preview-next span { color: var(--ink-soft); }
.journey-preview-next strong { font-weight: 600; }

.marketing { background: var(--paper); }
.landing-intro-section, .landing-features-section { width: min(1160px, calc(100% - 64px)); margin: auto; }
.landing-intro-section { padding: 135px 0; }
.landing-intro-section > h2, .landing-section-head h2, .final-cta h2 { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 5vw, 68px); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.landing-intro-copy { max-width: 690px; margin: 34px 0 70px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.simple-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.simple-steps article { min-height: 245px; padding: 32px 36px 20px 0; }
.simple-steps article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.simple-steps span { color: var(--gold); font-size: 11px; letter-spacing: .12em; }
.simple-steps h3, .landing-feature-list h3 { margin: 42px 0 13px; font-family: var(--font-display); font-size: 27px; font-weight: 400; }
.simple-steps p, .landing-feature-list p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.landing-features-section { padding: 20px 0 140px; }
.landing-section-head { max-width: 760px; margin-bottom: 65px; }
.landing-feature-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.landing-feature-list article { min-height: 210px; padding: 38px 46px 38px 0; display: grid; grid-template-columns: 42px 1fr; gap: 25px; border-bottom: 1px solid var(--line); }
.landing-feature-list article:nth-child(even) { padding-left: 46px; border-left: 1px solid var(--line); }
.landing-feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.landing-feature-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.landing-feature-list h3 { margin: 2px 0 12px; }
.final-cta { width: min(1240px, calc(100% - 64px)); margin: 0 auto 70px; padding: 70px; background: var(--deep); color: #f6f1df; display: flex; justify-content: space-between; align-items: end; gap: 60px; }
.final-cta > div { max-width: 790px; }
.final-cta h2 { color: #f6f1df; }
.final-cta p:last-child { margin: 22px 0 0; color: rgba(255,255,255,.62); }
.final-cta > .button { flex: 0 0 auto; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img, .mobile-brand img { width: 37px; height: 37px; color: currentColor; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.brand small { margin-top: 5px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; opacity: .62; }
.brand-light { color: #f7f1de; }

.button { border: 0; cursor: pointer; min-height: 48px; padding: 0 24px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 5px; font-weight: 600; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary-light { background: #f3edd8; color: #14312e; }
.button-ghost-light { color: #f3edd8; background: transparent; border: 1px solid rgba(255,255,255,.32); min-height: 42px; }
.button-dark { background: var(--deep); color: #f5f0df; }
.button-soft { background: var(--surface-2); color: var(--ink); }
.button-outline { background: transparent; border: 1px solid var(--line); }
.button-full { width: 100%; }
.text-button { border: 0; background: none; cursor: pointer; padding: 0; color: var(--ink); font-weight: 600; }
.text-button-light { color: #fff8e6; display: inline-flex; gap: 18px; align-items: center; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; border-radius: 50%; font-size: 18px; }

.eyebrow, .section-kicker { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 600; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(3,21,19,.74); backdrop-filter: blur(15px); display: grid; place-items: center; padding: 20px; }
.login-modal { width: min(960px, 100%); min-height: 560px; background: var(--surface); display: grid; grid-template-columns: 1.05fr .95fr; box-shadow: 0 40px 100px rgba(0,0,0,.35); position: relative; }
.login-brand { padding: 75px; background: var(--deep); color: #f4efdf; position: relative; overflow: hidden; }
.login-brand::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -180px; bottom: -250px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.login-brand img { width: 56px; height: 56px; margin-bottom: 80px; }
.login-brand h2 { font-family: var(--font-display); font-size: 54px; font-weight: 400; line-height: .98; margin: 0 0 24px; }
.login-brand p:last-child { opacity: .65; max-width: 360px; }
.login-form { padding: 90px 65px 60px; display: flex; flex-direction: column; justify-content: center; gap: 23px; }
.login-form label:not(.check-label), .field { display: grid; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.login-form input, .field input, .field select, .field textarea, .select-control, .search-input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); min-height: 45px; padding: 7px 0; outline: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.login-form input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.login-error { margin: -8px 0 0; color: var(--red); font-size: 12px; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.check-label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.modal-close { position: absolute; z-index: 3; right: 18px; top: 18px; }

.app { height: 100svh; display: grid; grid-template-columns: 260px 1fr; grid-template-rows: 76px 1fr; background: var(--paper); overflow: hidden; }
.sidebar { grid-row: 1 / -1; background: var(--surface); border-right: 1px solid var(--line); padding: 27px 23px 20px; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 8px 27px; border-bottom: 1px solid var(--line); }
.main-nav { display: grid; gap: 3px; padding: 24px 0; }
.main-nav button { height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 13px; padding: 0 12px; color: var(--ink-soft); text-align: left; border-left: 2px solid transparent; }
.main-nav button:hover, .main-nav button.active { color: var(--ink); background: var(--surface-2); border-left-color: var(--gold); }
.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; }
.nav-icon svg, .summary-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 15px; }
.theme-switch, .profile-mini { border: 0; background: transparent; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 8px; cursor: pointer; }
.theme-copy, .profile-mini > span:not(.avatar) { display: grid; min-width: 0; }
.theme-copy strong, .profile-mini strong { font-size: 12px; font-weight: 600; }
.theme-copy small, .profile-mini small { color: var(--ink-soft); font-size: 10px; margin-top: 3px; }
.profile-mini i { margin-left: auto; color: var(--ink-soft); font-style: normal; }
.avatar, .header-avatar { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--deep); color: #f6efda; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.app-header { grid-column: 2; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; padding: 0 32px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(18px); }
.global-search { display: flex; align-items: center; gap: 10px; width: min(560px, 55%); }
.global-search input { width: 100%; border: 0; background: transparent; outline: 0; color: var(--ink); }
.global-search input::placeholder { color: var(--ink-soft); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-avatar { cursor: pointer; width: 40px; height: 40px; }
.mobile-brand, .mobile-nav { display: none; }
.reader-header-controls { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.reader-header-controls[hidden] { display: none; }
.reader-header-controls .reader-version-select { min-height: 38px; max-width: 96px; padding: 0 9px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); }
.reader-header-controls .icon-button { width: 38px; height: 38px; background: transparent; }
.reader-header-controls .icon-button:hover { background: var(--surface-2); }
.reader-header-controls .icon-button.active { background: var(--deep); border-color: var(--deep); color: #f5efde; }
.app-content { overflow-y: auto; overflow-x: hidden; position: relative; min-width: 0; }
.page { width: min(1280px, calc(100% - 64px)); margin: auto; padding: 54px 0 80px; animation: pageIn .32s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-head { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 34px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(42px, 4.7vw, 68px); font-weight: 400; letter-spacing: -.045em; line-height: .96; margin: 0; }
.page-head p { color: var(--ink-soft); max-width: 560px; margin: 13px 0 0; }
.page-actions { display: flex; gap: 10px; }

.home-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.summary-card { min-width: 0; min-height: 120px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 22px; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 16px; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.summary-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.summary-card > span:last-child { min-width: 0; display: grid; }
.summary-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--green); }
.summary-card small { color: var(--ink-soft); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.summary-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 21px; font-weight: 400; margin-top: 8px; }
.summary-card em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 11px; font-style: normal; margin-top: 5px; }

.home-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: start; margin-bottom: 42px; }
.continue-panel { min-height: 240px; background: var(--deep); color: #f5efdd; padding: 32px; position: relative; overflow: hidden; cursor: pointer; }
.continue-panel::after { content: ''; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.02); }
.panel-label { font-size: 10px; letter-spacing: .17em; text-transform: uppercase; opacity: .62; }
.continue-panel h2 { font-family: var(--font-display); font-size: 42px; font-weight: 400; line-height: 1.05; margin: 28px 0 10px; }
.continue-panel > p { color: rgba(255,255,255,.66); }
.continue-panel .continue-bottom { position: absolute; left: 32px; right: 32px; bottom: 26px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.round-arrow { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.progress-panel { border-top: 3px solid var(--gold); background: var(--surface); padding: 38px; display: flex; flex-direction: column; justify-content: space-between; }
.big-progress { font-family: var(--font-display); font-size: 84px; font-weight: 400; line-height: 1; margin: 38px 0 8px; }
.progress-line { height: 3px; background: var(--surface-2); overflow: hidden; }
.progress-line span { height: 100%; display: block; width: 3%; background: var(--gold); }
.progress-panel p { color: var(--ink-soft); }
.journey-dashboard { background: var(--surface); border-top: 3px solid var(--green); padding: 34px 38px 38px; margin-bottom: 25px; min-height: 330px; }
.journey-summary { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.journey-summary strong { display: block; font-family: var(--font-display); font-size: 72px; font-weight: 400; line-height: .9; margin-top: 22px; }
.journey-summary p { color: var(--ink-soft); margin: 0; max-width: 290px; text-align: right; }
.journey-dots { display: grid; grid-template-columns: repeat(auto-fill, 9px); grid-auto-rows: 9px; align-content: start; gap: 5px; min-height: 170px; padding-top: 28px; }
.journey-dot { width: 9px; height: 9px; background: color-mix(in srgb, var(--ink-soft) 26%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ink-soft) 12%, transparent); border-radius: 2px; }
.journey-dot.complete { background: var(--green); border-color: var(--green); }
.journey-dots.empty { display: grid; place-items: center; color: var(--ink-soft); font-size: 12px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; margin: 0 0 20px; }
.section-title-row h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 0; }
.home-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 45px; }
.current-plan { border-top: 1px solid var(--line); }
.plan-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 22px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.plan-date { display: grid; color: var(--ink-soft); }
.plan-date strong { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: var(--ink); }
.plan-info strong { display: block; font-size: 15px; }
.plan-info small { color: var(--ink-soft); }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); }
.status-dot.green { background: var(--green); }
.status-dot.red { background: var(--red); }

.reader-page { width: 100%; max-width: 100%; padding: 0; min-height: 100%; display: block; overflow-x: clip; }
.reader-empty-page { min-height: 100%; display: grid; place-items: center; position: relative; }
.reader-library-trigger { width: 210px; height: 210px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 8px; cursor: pointer; }
.reader-library-trigger span { font-family: var(--font-display); font-size: 92px; font-weight: 300; line-height: .8; }
.reader-library-trigger strong { font-size: 12px; font-weight: 600; }
.reader-library-trigger:hover { border-color: var(--gold); background: var(--surface-2); }
.reader-index { border-right: 1px solid var(--line); padding: 34px 25px 80px; background: var(--surface); }
.reader-index-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.reader-index h2 { font-family: var(--font-display); font-size: 27px; font-weight: 400; margin: 0; }
.testament-title { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 25px 0 10px; }
.book-list { display: grid; gap: 2px; }
.book-list button { width: 100%; border: 0; background: transparent; padding: 9px 10px; text-align: left; cursor: pointer; color: var(--ink-soft); display: flex; justify-content: flex-start; gap: 12px; }
.book-list button.active, .book-list button:hover { color: var(--ink); background: var(--surface-2); }
.reader-main { position: relative; min-width: 0; width: 100%; max-width: 100%; overflow-x: clip; }
.reader-toolbar { min-height: 72px; border-bottom: 1px solid var(--line); padding: 0; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(16px); }
.reader-toolbar-inner { width: min(940px, calc(100% - 64px)); min-height: 72px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 24px; min-width: 0; }
.plan-reader-toolbar .reader-toolbar-inner { justify-content: flex-start; }
.plan-reading-bar { min-height: 64px; position: sticky; top: 72px; z-index: 4; display: grid; grid-template-columns: minmax(180px,1fr) minmax(160px,auto) auto; align-items: center; gap: 22px; padding: 10px 42px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); }
.plan-reading-copy { min-width: 0; display: grid; gap: 3px; }
.plan-reading-copy small { color: var(--ink-soft); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-reading-copy strong { font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.plan-reading-status { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--ink-soft); font-size: 10px; }
.plan-reading-dots { max-width: 260px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
.plan-reading-dots span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--line); }
.plan-reading-dots span.complete { background: var(--green); }
.plan-reading-dots span.current { outline: 1px solid var(--gold); outline-offset: 2px; }
.plan-reading-actions { display: flex; align-items: center; gap: 8px; }
.reader-navigation { min-width: 0; display: flex; align-items: center; gap: 8px; }
.reader-location { min-width: 0; height: 42px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 0 15px; }
.reader-location > span { width: 1px; height: 17px; margin: 0 9px; background: var(--line); }
.reader-location-select, .reader-version-select { border: 0; outline: 0; background-color: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; }
.reader-book-select { width: clamp(100px, 14vw, 175px); }
.reader-chapter-select { width: 46px; }
.reader-chapter-step { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; font-family: Arial, sans-serif; font-size: 25px; line-height: 1; }
.reader-chapter-step:hover { background: var(--surface-2); color: var(--ink); }
.reader-version-select { min-height: 36px; max-width: 92px; padding: 0 7px; color: var(--ink-soft); }
.reader-library-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.plan-reader-identity { min-width: 0; display: grid; gap: 3px; }
.plan-reader-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.reader-breadcrumb { margin: 0; }
.reader-breadcrumb strong { font-family: var(--font-ui); font-size: 10px; }
.plan-back-button { min-height: 36px; padding: 0 14px; font-size: 10px; white-space: nowrap; }
.reader-canvas { width: min(740px, calc(100% - 64px)); max-width: 100%; margin: 0 auto; padding: 68px 0 120px; overflow-wrap: anywhere; }
.reader-canvas.large-text h1 { font-size: 76px; }
.reader-canvas.large-text .verse { font-size: 29px; line-height: 1.9; }
.reader-canvas.large-text .verse sup { font-size: 11px; }
.reader-loading { color: var(--ink-soft); text-align: center; padding: 80px 0; }
.bible-attribution { border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--font-ui); font-size: 10px; line-height: 1.6; margin-top: 55px; padding-top: 20px; }
.plan-reading-footer { margin-top: 60px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.plan-reading-footer > div { min-width: 0; display: grid; gap: 5px; }
.plan-reading-footer strong { font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.plan-reading-footer small { color: var(--ink-soft); font-family: var(--font-ui); font-size: 10px; }
.plan-stage-complete-backdrop { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 24px; background: rgba(8,23,22,.7); backdrop-filter: blur(10px); }
.plan-stage-complete { width: min(500px, 100%); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.3); padding: 38px; text-align: center; }
.plan-stage-complete-check { width: 50px; height: 50px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 23px; }
.plan-stage-complete h2 { margin: 8px 0 12px; font-family: var(--font-display); font-size: 38px; font-weight: 400; line-height: 1.05; }
.plan-stage-complete > p:not(.section-kicker) { max-width: 360px; margin: 0 auto; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.plan-stage-complete-actions { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.bible-attribution a { color: inherit; }
.bible-library { position: fixed; inset: 76px 0 0 260px; z-index: 45; background: var(--paper); padding: 42px clamp(24px, 5vw, 72px) 70px; overflow: auto; }
.bible-library-head { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.bible-library-head h2 { font-family: var(--font-display); font-size: 46px; font-weight: 400; margin: 4px 0 0; }
.bible-version-list { display: grid; max-width: 980px; margin-top: 12px; }
.bible-version-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.bible-version-item h3 { font-family: var(--font-display); font-size: 27px; font-weight: 400; margin: 4px 0 7px; }
.bible-version-item p { color: var(--ink-soft); margin: 0 0 7px; }
.bible-version-item small { color: var(--ink-soft); }
.version-abbr { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.version-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.version-actions a { color: var(--ink-soft); font-size: 11px; }
.version-actions .button { min-width: 96px; }
.chapter-overline { text-align: center; color: var(--ink-soft); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.reader-canvas h1 { text-align: center; font-family: var(--font-display); font-size: 64px; font-weight: 400; letter-spacing: -.04em; margin: 10px 0 52px; }
.verse { display: block; font-family: var(--font-display); font-size: 23px; line-height: 1.78; margin: 0 0 17px; padding: 3px 4px; cursor: pointer; position: relative; transition: background .15s ease; }
.verse:hover { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.verse.verse-focused { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.verse.verse-focused .verse-copy { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent); }
.verse sup { font-family: var(--font-ui); font-size: 9px; color: var(--gold); font-weight: 600; margin-right: 8px; vertical-align: super; }
.verse-copy { padding: .08em .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.verse.highlight-yellow .verse-copy { background: linear-gradient(transparent 18%, rgba(218,199,89,.35) 18%, rgba(218,199,89,.35) 88%, transparent 88%); }
.verse.highlight-green .verse-copy { background: linear-gradient(transparent 18%, rgba(115,165,121,.29) 18%, rgba(115,165,121,.29) 88%, transparent 88%); }
.verse.highlight-blue .verse-copy { background: linear-gradient(transparent 18%, rgba(92,135,155,.26) 18%, rgba(92,135,155,.26) 88%, transparent 88%); }
.verse.highlight-rose .verse-copy { background: linear-gradient(transparent 18%, rgba(187,112,105,.24) 18%, rgba(187,112,105,.24) 88%, transparent 88%); }
.verse.has-comment::after { content: '•'; font-family: var(--font-ui); position: absolute; right: 0; top: 4px; color: var(--gold); }
.verse-comment-tip { position: absolute; right: 0; top: calc(100% + 6px); width: min(260px, calc(100vw - 40px)); padding: 13px 15px; background: var(--deep); color: #f5efde; font-family: var(--font-ui); font-size: 11px; line-height: 1.45; box-shadow: var(--shadow); z-index: 4; }
.verse-action-menu { position: fixed; z-index: 20; background: var(--deep); color: #f6f0df; padding: 9px; display: flex; gap: 3px; box-shadow: 0 15px 45px rgba(0,0,0,.25); }
.verse-action-menu button { border: 0; background: transparent; color: inherit; padding: 8px 10px; cursor: pointer; font-size: 11px; }
.verse-action-menu button:hover { background: rgba(255,255,255,.1); }
.color-dots { display: flex; gap: 6px; align-items: center; padding: 0 8px; border-left: 1px solid rgba(255,255,255,.15); }
.color-dot { width: 16px; height: 16px; padding: 0 !important; border-radius: 50% !important; position: relative; overflow: hidden; }
.color-dot.yellow { background: #dac759 !important; }.color-dot.green { background: #73a579 !important; }.color-dot.blue { background: #5c879b !important; }.color-dot.rose { background: #bb7069 !important; }
.color-dot.no-highlight { background: #fff !important; border: 1px solid rgba(255,255,255,.72) !important; }
.color-dot.no-highlight::after { content: ''; position: absolute; left: 1px; right: 1px; top: 6px; height: 2px; background: #c94f4f; transform: rotate(-45deg); transform-origin: center; }
body.comment-composer-open { overflow: hidden; }
.comment-composer-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(8, 23, 22, .66); display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; overscroll-behavior: contain; }
.comment-composer { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: color-mix(in srgb, var(--surface) 96%, white 4%); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.28); padding: 34px 34px 28px; position: relative; }
.comment-composer-head { padding-right: 34px; }
.comment-composer-head h2 { font-family: var(--font-display); font-size: 38px; font-weight: 400; line-height: 1; margin: 8px 0 14px; }
.comment-composer-head p:last-child { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin: 0; }
.comment-field { margin-top: 26px; }
.comment-field textarea { min-height: 170px; padding: 16px 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 78%, var(--surface) 22%); line-height: 1.7; resize: vertical; }
.comment-field textarea:focus { border-color: var(--gold); }
.comment-composer-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.comment-composer-foot small { color: var(--ink-soft); font-size: 11px; }
.comment-composer-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.plans-page { width: min(1080px, calc(100% - 64px)); padding: 34px 0 64px; }
.page-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--ink-soft); font-size: 10px; }
.page-breadcrumb button { border: 0; background: transparent; color: inherit; padding: 3px 0; cursor: pointer; font: inherit; }
.page-breadcrumb button:hover { color: var(--ink); }
.page-breadcrumb strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.breadcrumb-separator { opacity: .62; }
.plans-page .page-head { align-items: center; margin-bottom: 22px; }
.plans-page .page-head h1 { font-size: 42px; letter-spacing: 0; line-height: 1; }
.plans-page .page-head p { display: none; }
.plans-page .page-actions .button { min-height: 40px; padding: 0 18px; }
.plans-page .page-actions { align-items: center; }
.plans-new-button { min-height: 36px !important; padding: 0 15px !important; font-size: 11px; }
.plans-manage-toggle { min-height: 30px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink-soft); padding: 0 2px; cursor: pointer; font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.plans-manage-toggle:hover, .plans-manage-toggle.active { color: var(--ink); border-bottom-color: var(--gold); }
.plan-builder { display: grid; grid-template-columns: minmax(340px, .95fr) minmax(320px, .75fr); gap: 24px; align-items: start; max-width: 920px; }
.plans-empty-page { width: min(1080px, calc(100% - 64px)); min-height: calc(100vh - 76px); padding: 34px 0 64px; display: flex; flex-direction: column; }
.plans-empty-page .page-head { margin-bottom: 0; }
.plans-empty-page .page-head h1 { font-size: 42px; letter-spacing: 0; }
.create-plan-button { width: 140px; height: 140px; margin: auto; flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.create-plan-button span { font-family: var(--font-display); font-size: 82px; font-weight: 300; line-height: 1; transform: translateY(-4px); }
.create-plan-button:hover { border-color: var(--gold); background: var(--surface-2); transform: translateY(-3px); }
.create-plan-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.builder-panel { background: var(--surface); padding: 26px; position: sticky; top: 24px; }
.builder-panel h2 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin: 0 0 8px; }
.builder-panel > p { color: var(--ink-soft); margin: 0 0 32px; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); margin-top: 10px; }
.segmented button { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 12px 8px; cursor: pointer; font-size: 11px; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--deep); color: #f5efdc; }
.builder-panel .field { margin-bottom: 17px; }
.plan-calendar { min-width: 0; }
.calendar-summary { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.calendar-summary h2 { font-family: var(--font-display); font-size: 38px; font-weight: 400; margin: 0; }
.calendar-summary p { color: var(--ink-soft); margin: 5px 0 0; }
.plan-total { text-align: right; }
.plan-total strong { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 400; }
.plan-total small { color: var(--ink-soft); }
.calendar-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.calendar-day { min-height: 195px; background: var(--surface); padding: 18px; border-top: 3px solid var(--line); display: flex; flex-direction: column; cursor: pointer; transition: transform .2s ease; }
.calendar-day:hover { transform: translateY(-3px); }
.calendar-day.low { border-top-color: var(--red); }.calendar-day.partial { border-top-color: var(--yellow); }.calendar-day.done { border-top-color: var(--green); }
.calendar-day .date { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.calendar-day h3 { font-family: var(--font-display); font-size: 23px; font-weight: 400; line-height: 1.12; margin: 25px 0 10px; }
.calendar-day p { color: var(--ink-soft); font-size: 11px; margin: 0; }
.calendar-progress { margin-top: auto; }
.calendar-progress strong { display: block; font-size: 12px; margin-bottom: 8px; }
.mini-progress { height: 3px; background: var(--surface-2); }
.mini-progress span { height: 100%; display: block; background: var(--red); }
.calendar-day.partial .mini-progress span { background: var(--yellow); }.calendar-day.done .mini-progress span { background: var(--green); }
.day-detail { background: var(--surface); margin-top: 14px; padding: 18px; border-left: 2px solid var(--gold); }
.day-detail-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.day-detail h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin: 0; }
.day-detail-head small { color: var(--ink-soft); display: block; margin-top: 4px; font-size: 10px; }
.day-detail-actions { display: flex; justify-content: flex-end; margin: -2px 0 12px; }
.chapter-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chapter-check { min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.chapter-check strong { overflow-wrap: anywhere; font-size: 11px; }
.chapter-check.complete { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.chapter-check.complete span { color: var(--green); }
.field-help { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 400; line-height: 1.5; margin-top: 9px; text-transform: none; }
.plan-form-preview { min-height: 270px; background: var(--deep); color: #f5efde; padding: 28px; position: sticky; top: 24px; }
.plan-form-preview h2 { font-family: var(--font-display); font-size: 34px; font-weight: 400; margin: 24px 0 0; }
.plan-form-preview dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 0; }
.plan-form-preview dl div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.plan-form-preview dt { color: rgba(255,255,255,.55); font-size: 10px; text-transform: uppercase; }
.plan-form-preview dd { font-family: var(--font-display); font-size: 17px; margin: 6px 0 0; }
.plan-form-preview .plan-preview-pace { grid-column: 1 / -1; }
.reading-plans { display: grid; gap: 9px; }
.reading-plan { background: var(--surface); border: 1px solid var(--line); }
.reading-plan.open { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.reading-plan-head { min-height: 70px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.reading-plan-toggle { min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 13px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; text-align: left; cursor: pointer; }
.reading-plan-toggle > span:first-child { min-width: 0; display: grid; gap: 4px; }
.reading-plan-toggle small { color: var(--ink-soft); font-size: 9px; font-style: normal; letter-spacing: 0; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reading-plan-toggle strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 21px; font-weight: 400; }
.plan-card-progress { color: var(--green); font-size: 13px; font-weight: 700; }
.reading-plan-actions { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-left: 1px solid var(--line); }
.plan-manage-action { min-height: 30px; border: 0; background: transparent; color: var(--ink-soft); padding: 0 9px; cursor: pointer; font-size: 9px; font-weight: 600; }
.plan-manage-action:hover { color: var(--ink); background: var(--surface-2); }
.plan-manage-action.danger { color: var(--red); }
.reading-plan-actions .confirm-delete { width: auto; border-radius: 2px; color: var(--red); font-size: 10px; padding: 0 12px; }
.reading-plan-detail-head { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-left: 18px; border-bottom: 1px solid var(--line); }
.reading-plan-detail-head > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 10px; }
.reading-plan-detail-head .reading-plan-actions { align-self: stretch; }
.plan-detail-card .reading-plan-body { border-top: 0; }
.plan-detail-page .page-head { margin-bottom: 16px; }
.plan-detail-page .page-head h1 { overflow-wrap: anywhere; }
.reading-plan-body { padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.plan-overview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.plan-progress-copy { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.plan-progress-value { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1; }
.plan-progress-count { color: var(--ink-soft); font-size: 10px; }
.plan-overview-meta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; color: var(--ink-soft); font-size: 10px; }
.plan-start-button { min-height: 38px; padding: 0 16px; }
.reading-plan-body > .progress-line { margin-top: 11px; }
.story-resume-slot { margin-top: 16px; }
.story-resume { width: 100%; min-height: 66px; border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); background: color-mix(in srgb, var(--green) 8%, var(--surface)); color: var(--ink); padding: 11px 14px; display: grid; gap: 3px; text-align: left; cursor: pointer; }
.story-resume:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.story-resume strong, .story-resume small { display: block; overflow-wrap: anywhere; }
.story-resume strong { font-size: 14px; font-weight: 600; line-height: 1.2; }
.story-resume small { color: var(--ink-soft); font-size: 9px; }
.story-resume.complete { cursor: default; }
.story-schedule-meta { color: var(--ink-soft); font-size: 10px; margin-top: 9px; }
.plan-day-jump { display: none; }
.plan-day-map { display: grid; grid-template-columns: repeat(auto-fill, 14px); gap: 4px; padding-top: 15px; }
.plan-day-dot { width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); color: transparent; padding: 0; cursor: pointer; font-size: 0; }
.plan-day-dot.partial { background: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 75%, var(--ink)); color: var(--deep); }
.plan-day-dot.complete { background: var(--green); border-color: var(--green); color: white; }
.plan-day-dot.selected { outline: 2px solid var(--gold); outline-offset: 2px; }
.plan-milestones { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding-top: 16px; }
.plan-milestone { min-width: 0; min-height: 54px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 10px 12px; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 8px; text-align: left; cursor: pointer; }
.plan-milestone.complete { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.plan-milestone.partial { background: color-mix(in srgb, var(--yellow) 13%, var(--surface)); border-color: color-mix(in srgb, var(--yellow) 55%, var(--line)); }
.plan-milestone strong, .plan-milestone small { display: block; overflow-wrap: anywhere; }
.plan-milestone strong { font-size: 12px; }
.plan-milestone small { color: var(--ink-soft); font-size: 10px; line-height: 1.45; margin-top: 4px; }
.milestone-check { color: var(--green); font-size: 17px; line-height: 1; }
.story-day-detail .plan-milestones { padding-top: 0; }
.story-reading-list { border-top: 1px solid var(--line); }
.story-reading-row { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 4px; }
.story-reading-row.complete { background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.story-reading-row > span { min-width: 0; }
.story-reading-row strong, .story-reading-row small { display: block; overflow-wrap: anywhere; }
.story-reading-row strong { font-size: 12px; }
.story-reading-row small { color: var(--ink-soft); font-size: 10px; line-height: 1.45; margin-top: 4px; }
.story-reading-check { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--green); display: grid; place-items: center; cursor: pointer; }

.danger-button { color: var(--red); border-color: color-mix(in srgb, var(--red) 42%, var(--line)); }
.danger-button[data-confirm="true"] { background: var(--red); border-color: var(--red); color: white; }

.content-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 35px; }
.content-tabs button { border: 0; background: transparent; padding: 0 0 14px; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; }
.content-tabs button.active { color: var(--ink); border-bottom-color: var(--gold); }
.study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.study-card { min-width: 0; background: var(--surface); min-height: 350px; padding: 0; display: flex; flex-direction: column; border: 0; color: var(--ink); cursor: pointer; text-align: left; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.study-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.study-card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.study-card-copy { flex: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; }
.study-card.course { border-top-color: var(--gold); }
.study-card .kind { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.study-card h3 { font-family: var(--font-display); font-size: 25px; font-weight: 400; line-height: 1.08; margin: 14px 0 20px; }
.study-card p { color: var(--ink-soft); margin: 0; font-size: 13px; line-height: 1.55; }
.study-card footer { margin-top: auto; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); }
.empty-state { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; align-content: center; text-align: center; background: var(--surface); padding: 35px; }
.empty-state h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 0; }
.empty-state p { color: var(--ink-soft); margin: 8px 0 24px; }

.article-page { width: min(1120px, calc(100% - 64px)); padding-top: 34px; }
.article-header { max-width: 900px; margin: 60px auto 45px; text-align: center; }
.article-header h1 { font-family: var(--font-display); font-size: clamp(48px, 6vw, 76px); font-weight: 400; line-height: .99; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.article-header > p:last-child { max-width: 680px; margin: 24px auto 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.article-hero { width: 100%; max-height: 650px; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.article-layout { display: grid; grid-template-columns: 235px minmax(0, 690px); justify-content: center; gap: 70px; margin-top: 70px; }
.article-aside { align-self: start; position: sticky; top: 30px; display: grid; }
.article-aside > a { border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.article-aside > a:hover { color: var(--ink); }
.article-aside > p { color: var(--ink-soft); font-size: 10px; line-height: 1.6; margin-top: 28px; }
.article-aside > p strong { display: block; color: var(--ink); margin-bottom: 7px; }
.article-lead { font-family: var(--font-display); font-size: 25px; line-height: 1.65; margin: 0 0 60px; }
.article-body > section { scroll-margin-top: 30px; margin: 0 0 55px; }
.article-body > section > span { color: var(--gold); font-size: 10px; letter-spacing: .16em; }
.article-body h2 { font-family: var(--font-display); font-size: 37px; font-weight: 400; line-height: 1.1; margin: 10px 0 18px; }
.article-body > section p { color: var(--ink-soft); font-size: 17px; line-height: 1.82; margin: 0; }
.article-body blockquote { margin: 70px 0 55px; padding: 35px 38px; background: var(--deep); color: #f5efde; }
.article-body blockquote > span { opacity: .6; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.article-body blockquote p { font-family: var(--font-display); font-size: 27px; line-height: 1.45; margin: 18px 0 0; }
.article-finish { border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: flex-end; }
.article-finish strong { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.article-finish p { color: var(--ink-soft); font-size: 11px; margin: 5px 0 0; }

.planner-layout { display: grid; grid-template-columns: 1fr 310px; gap: 42px; }
.message-editor { background: var(--surface); padding: 45px; }
.message-editor .field { margin-bottom: 28px; }
.message-editor .title-input { font-family: var(--font-display); font-size: 45px; }
.outline-points { display: grid; gap: 10px; }
.outline-point { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.outline-point span { color: var(--gold); font-family: var(--font-display); font-size: 20px; }
.outline-point input { border: 0; background: transparent; outline: 0; color: var(--ink); }
.outline-point button { border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); }
.verse-basket { background: var(--deep); color: #f5efde; padding: 30px; position: sticky; top: 30px; }
.verse-basket h3 { font-family: var(--font-display); font-size: 29px; font-weight: 400; margin: 0 0 10px; }
.verse-basket > p { opacity: .62; font-size: 12px; }
.basket-verse { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; }
.basket-verse strong { font-size: 11px; }
.basket-verse p { font-family: var(--font-display); font-size: 16px; opacity: .83; }

.kids-hero { background: #e3dfb7; color: #263a34; min-height: 300px; padding: 50px; display: grid; grid-template-columns: 1fr .7fr; align-items: end; position: relative; overflow: hidden; }
.kids-hero::after { content: ''; position: absolute; right: -40px; top: -80px; width: 330px; height: 330px; border: 1px solid rgba(38,58,52,.18); border-radius: 50%; box-shadow: 0 0 0 45px rgba(38,58,52,.04), 0 0 0 90px rgba(38,58,52,.025); }
.kids-hero h2 { font-family: var(--font-display); font-size: 57px; line-height: .98; font-weight: 400; margin: 0; }
.kids-hero p { max-width: 430px; }
.kids-progress { align-self: stretch; justify-self: end; display: flex; flex-direction: column; justify-content: end; min-width: 200px; z-index: 1; }
.kids-progress strong { font-family: var(--font-display); font-size: 58px; font-weight: 400; }
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.story-card { min-height: 315px; background: var(--surface); position: relative; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.story-cover { height: 145px; background: linear-gradient(140deg, #6f9485, #d7d1a8); position: relative; }
.story-cover::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -30px; top: 20px; background: rgba(255,255,255,.25); }
.story-card:nth-child(2) .story-cover { background: linear-gradient(140deg, #b58666, #e5d2a9); }
.story-card:nth-child(3) .story-cover { background: linear-gradient(140deg, #5c7790, #c3d6d0); }
.story-card:nth-child(4) .story-cover { background: linear-gradient(140deg, #8b796b, #d3bc89); }
.story-copy { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.story-copy small { color: var(--ink-soft); }
.story-copy h3 { font-family: var(--font-display); font-size: 27px; font-weight: 400; line-height: 1.08; margin: 13px 0; }
.story-copy p { color: var(--ink-soft); font-size: 12px; }
.story-copy span { margin-top: auto; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.more-page { display: none; }
.search-results { position: fixed; top: 76px; left: 260px; right: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 38px; box-shadow: var(--shadow); }
.search-results h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin: 0 0 15px; }
.search-result-row { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.search-result-row small { color: var(--ink-soft); }
.toast { position: fixed; z-index: 200; bottom: 26px; left: 50%; transform: translate(-50%, 25px); background: var(--deep); color: #f5efde; padding: 13px 18px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .landing-header { grid-template-columns: 1fr auto; }
  .landing-nav { display: none; }
  .landing-hero { gap: 48px; grid-template-columns: minmax(0, 1fr) 360px; }
  .home-intro { grid-template-columns: 1fr; }
  .progress-panel { min-height: 250px; }
  .plan-builder { grid-template-columns: 1fr; }
  .builder-panel { position: static; }
  .calendar-grid { grid-template-columns: repeat(3, 1fr); }
  .study-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .landing { height: auto; min-height: 0; max-height: none; }
  .landing-header, .landing-hero, .landing-intro-section, .landing-features-section, .final-cta { width: calc(100% - 36px); }
  .landing-header { height: 82px; }
  .landing-header .brand small { display: none; }
  .landing-hero { height: auto; grid-template-columns: 1fr; margin: auto; padding: 72px 0 80px; }
  .landing-hero h1 { font-size: clamp(52px, 11vw, 68px); }
  .landing-visual { width: min(500px, 100%); min-height: 420px; transform: none; }
  .landing-intro-section { padding: 95px 0; }
  .simple-steps { grid-template-columns: 1fr; }
  .simple-steps article { min-height: 0; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
  .simple-steps article + article { padding-left: 0; border-left: 0; }
  .simple-steps h3 { margin-top: 24px; }
  .landing-feature-list { grid-template-columns: 1fr; }
  .landing-feature-list article, .landing-feature-list article:nth-child(even) { padding: 30px 0; border-left: 0; }
  .final-cta { padding: 45px 30px; flex-direction: column; align-items: start; }
  .login-modal { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .login-brand { padding: 45px; min-height: 300px; }
  .login-brand img { margin-bottom: 35px; }
  .login-form { padding: 45px; }

  .app { grid-template-columns: 1fr; grid-template-rows: 64px 1fr 67px; }
  .sidebar { display: none; }
  .app-header { grid-column: 1; padding: 0 17px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; }
  .mobile-brand img { width: 31px; height: 31px; }
  .global-search { display: none; }
  .app-content { grid-row: 2; }
  .mobile-nav { grid-row: 3; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); z-index: 20; }
  .mobile-nav button { border: 0; background: transparent; color: var(--ink-soft); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; font-size: 9px; }
  .mobile-nav button .nav-icon { width: 19px; height: 19px; }
  .mobile-nav button .nav-icon svg { width: 18px; height: 18px; }
  .nav-more-icon { height: 19px; font-size: 14px; letter-spacing: 2px; }
  .mobile-nav button.active { color: var(--ink); }
  .page { width: calc(100% - 34px); padding: 32px 0 60px; }
  .page-head { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .page-head h1 { font-size: 45px; }
  .home-summary-grid { grid-template-columns: 1fr; gap: 9px; }
  .summary-card { min-height: 108px; padding: 20px; align-items: center; }
  .summary-card strong { font-size: 24px; margin-top: 9px; }
  .home-grid, .planner-layout { grid-template-columns: 1fr; gap: 25px; }
  .journey-dashboard { min-height: 300px; padding: 28px 24px; }
  .journey-summary { align-items: start; flex-direction: column; gap: 18px; }
  .journey-summary strong { font-size: 60px; }
  .journey-summary p { text-align: left; }
  .plan-form-preview { min-height: 320px; padding: 32px 26px; position: static; }
  .plan-form-preview h2 { font-size: 44px; margin-top: 42px; }
  .reading-plan-head { min-height: 92px; }
  .reading-plan-toggle { padding: 18px; }
  .reading-plan-toggle strong { font-size: 24px; }
  .reading-plan-actions { padding: 0 12px; }
  .reading-plan-body { padding: 25px 18px 28px; }
  .plan-overview { align-items: start; flex-direction: column; }
  .plan-overview-meta { justify-content: flex-start; }
  .plan-milestones { grid-template-columns: 1fr; }
  .story-resume { min-height: 100px; padding: 19px 18px; }
  .story-resume strong { font-size: 22px; }
  .continue-panel { min-height: 260px; padding: 28px; }
  .continue-panel h2 { font-size: 38px; margin-top: 26px; }
  .continue-panel .continue-bottom { left: 28px; right: 28px; bottom: 24px; }
  .reader-page { grid-template-columns: 1fr; }
  .reader-index { display: none; }
  .reader-toolbar { min-height: 64px; padding: 10px 0; }
  .reader-toolbar-inner { width: calc(100% - 24px); min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .reader-navigation { min-width: 0; }
  .reader-location { flex: 1; min-width: 0; padding: 0 12px; }
  .reader-book-select { min-width: 0; width: 100%; }
  .reader-chapter-step { flex: 0 0 32px; width: 32px; }
  .reader-header-controls { margin-left: auto; margin-right: 0; gap: 5px; }
  .reader-header-controls .reader-version-select { width: 62px; max-width: 62px; min-height: 34px; padding: 0 5px; font-size: 10px; }
  .reader-header-controls .icon-button { width: 34px; height: 34px; font-size: 14px; }
  .plan-reading-bar { top: 64px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 10px 17px; }
  .plan-reading-status { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .plan-reading-dots { max-width: 100%; justify-content: flex-start; }
  .plan-reading-footer { align-items: flex-start; flex-direction: column; }
  .plan-reading-footer .button { width: 100%; }
  .plan-stage-complete { padding: 32px 22px 24px; }
  .plan-stage-complete h2 { font-size: 32px; }
  .plan-stage-complete-actions { flex-direction: column-reverse; }
  .plan-stage-complete-actions .button { width: 100%; }
  .plan-reader-identity strong { max-width: 52vw; font-size: 17px; }
  .reader-canvas { width: min(680px, calc(100% - 34px)); padding: 45px 0 100px; }
  .reader-canvas h1 { font-size: 50px; }
  .reader-canvas.large-text h1 { font-size: 58px; }
  .verse { font-size: 21px; line-height: 1.72; }
  .reader-canvas.large-text .verse { font-size: 25px; line-height: 1.82; }
  .comment-composer { padding: 28px 22px 22px; }
  .comment-composer-head h2 { font-size: 31px; }
  .comment-composer-foot { align-items: flex-start; flex-direction: column; }
  .comment-composer-actions { width: 100%; }
  .bible-library { inset: 64px 0 67px; padding: 30px 22px 55px; }
  .bible-version-item { grid-template-columns: 1fr; gap: 18px; }
  .version-actions { justify-content: space-between; }
  .calendar-grid { grid-template-columns: 1fr 1fr; }
  .chapter-checks { grid-template-columns: 1fr 1fr; }
  .study-grid, .story-grid { grid-template-columns: 1fr; }
  .study-card { min-height: 0; }
  .article-page { width: calc(100% - 30px); padding-top: 24px; }
  .article-header { margin: 38px auto 28px; }
  .article-header h1 { font-size: 44px; }
  .article-header > p:last-child { font-size: 15px; }
  .article-hero { width: calc(100% + 30px); max-width: none; margin-left: -15px; }
  .article-layout { display: block; margin-top: 42px; }
  .article-aside { display: none; }
  .article-lead { font-size: 22px; margin-bottom: 45px; }
  .article-body h2 { font-size: 31px; }
  .article-body > section p { font-size: 16px; }
  .article-body blockquote { margin: 55px -15px 45px; padding: 30px 24px; }
  .article-body blockquote p { font-size: 23px; }
  .article-finish { align-items: stretch; flex-direction: column; }
  .article-finish .button { width: 100%; }
  .kids-hero { grid-template-columns: 1fr; gap: 35px; }
  .kids-progress { justify-self: start; }
  .more-page { display: block; }
  .more-profile { min-height: 76px; margin-bottom: 24px; padding: 14px 4px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
  .more-profile > span:last-child { display: grid; }
  .more-profile strong { font-size: 13px; }
  .more-profile small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
  .more-links { display: grid; border-top: 1px solid var(--line); }
  .more-links button { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 20px 5px; text-align: left; display: flex; justify-content: space-between; }
  .more-links button small { color: var(--ink-soft); font-size: 10px; }
  .search-results { top: 64px; left: 0; }
}

@media (max-width: 540px) {
  .landing-actions { align-items: flex-start; flex-direction: column; }
  .landing-lead { font-size: 16px; }
  .landing-hero { padding: 58px 0 64px; gap: 52px; }
  .landing-hero h1 { font-size: 47px; }
  .landing-actions { gap: 22px; }
  .landing-visual { min-height: 385px; padding: 26px; }
  .journey-preview-reading { padding: 32px 0 28px; }
  .journey-preview-reading strong { font-size: 40px; }
  .landing-intro-section > h2, .landing-section-head h2, .final-cta h2 { font-size: 41px; }
  .landing-intro-copy { font-size: 16px; margin-bottom: 48px; }
  .landing-feature-list article { grid-template-columns: 38px 1fr; gap: 18px; }
  .final-cta { margin-bottom: 18px; }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-day { min-height: 165px; }
  .create-plan-button { width: 150px; height: 150px; }
  .create-plan-button span { font-size: 90px; }
  .segmented { grid-template-columns: 1fr; }
  .segmented button { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; padding-inline: 12px; }
  .reading-plan-head { grid-template-columns: 1fr; }
  .reading-plan-actions { justify-content: flex-end; border-left: 0; border-top: 1px solid var(--line); padding: 8px 14px; }
  .plan-form-preview dl { grid-template-columns: 1fr; }
  .message-editor { padding: 28px 22px; }
  .message-editor .title-input { font-size: 35px; }
  .reader-library-trigger { width: 170px; height: 170px; }
  .reader-library-trigger span { font-size: 76px; }
  .bible-library-head h2 { font-size: 38px; }
  .login-brand h2 { font-size: 43px; }
  body.reader-open .app-header { padding-inline: 10px; }
  body.reader-open .mobile-brand { gap: 5px; }
  body.reader-open .mobile-brand img { width: 29px; height: 29px; }
}

@media (max-width: 370px) {
  body.reader-open .mobile-brand strong { display: none; }
  body.reader-open .reader-header-controls { margin-left: 4px; margin-right: 4px; }
}

/* Plans use a denser workspace layout at each device size. */
@media (min-width: 821px) and (max-width: 1100px) {
  .plans-page { width: calc(100% - 48px); padding-top: 30px; }
  .plans-page .page-head h1 { font-size: 38px; }
  .plan-builder { grid-template-columns: 1fr; max-width: 760px; }
  .builder-panel, .plan-form-preview { position: static; }
  .plan-form-preview { min-height: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: end; padding: 24px 28px; }
  .plan-form-preview .panel-label { grid-column: 1 / -1; }
  .plan-form-preview h2 { margin: 0; font-size: 30px; }
  .plan-form-preview dl { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
  .plan-form-preview .plan-preview-pace { grid-column: auto; }
  .plan-form-preview { display: none; }
}

@media (max-width: 820px) {
  .plans-empty-page { width: calc(100% - 24px); padding: 20px 0 30px; }
  .plans-empty-page .page-head h1 { font-size: 31px; }
  .plans-empty-page .create-plan-button { width: 118px; height: 118px; }
  .plans-empty-page .create-plan-button span { font-size: 70px; }
  .plans-page { width: calc(100% - 24px); padding: 20px 0 30px; }
  .plans-page .page-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 16px; }
  .plans-page .page-head > div:first-child { min-width: 0; }
  .plans-page .page-head h1 { font-size: 31px; white-space: nowrap; }
  .page-breadcrumb { gap: 6px; margin-bottom: 9px; font-size: 10px; overflow: hidden; }
  .page-breadcrumb strong { max-width: 42vw; }
  .plan-detail-page .page-head h1 { font-size: 28px; white-space: normal; line-height: 1.08; }
  .plans-page .page-actions { width: auto; flex: 0 0 auto; }
  .plans-page .page-actions { gap: 8px; }
  .plans-page .page-actions .button { min-height: 34px; padding: 0 11px; font-size: 9px; white-space: nowrap; }
  .plans-manage-toggle { min-height: 28px; font-size: 8px; white-space: nowrap; }
  .plan-builder { display: block; max-width: none; }
  .builder-panel { position: static; padding: 18px; }
  .builder-panel h2 { font-size: 25px; }
  .builder-panel .field { margin-bottom: 15px; }
  .builder-panel .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-panel .segmented button { border-right: 1px solid var(--line); border-bottom: 0; }
  .builder-panel .segmented button:last-child { border-right: 0; }
  #plan-method-description { display: none; }
  .plan-form-preview { display: none; }
  .reading-plans { gap: 7px; }
  .reading-plan-head { min-height: 62px; grid-template-columns: minmax(0, 1fr) auto; }
  .reading-plan-toggle { padding: 10px 11px; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .reading-plan-toggle strong { font-size: 18px; }
  .reading-plan-toggle small { font-size: 8px; }
  .plan-card-progress { font-size: 11px; }
  .reading-plan-actions { justify-content: center; gap: 0; padding: 0 5px; border-top: 0; border-left: 1px solid var(--line); }
  .plan-manage-action { min-height: 28px; padding: 0 6px; font-size: 8px; }
  .reading-plan-detail-head { min-height: 46px; padding-left: 12px; }
  .reading-plan-detail-head > small { font-size: 9px; }
  .reading-plan-body { padding: 13px 12px 16px; }
  .plan-overview { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .plan-progress-copy { gap: 6px; }
  .plan-progress-value { font-size: 24px; }
  .plan-progress-count { font-size: 9px; }
  .plan-overview-meta { justify-content: flex-end; gap: 3px 8px; text-align: right; font-size: 9px; }
  .plan-start-button { grid-column: 1 / -1; width: 100%; min-height: 36px; }
  .reading-plan-body > .progress-line { margin-top: 9px; }
  .story-resume-slot { margin-top: 12px; }
  .story-resume { min-height: 58px; padding: 9px 11px; }
  .story-resume strong { font-size: 13px; }
  .plan-day-jump { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-soft); font-size: 10px; }
  .plan-day-jump select { width: 100%; min-width: 0; min-height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 30px 0 10px; font-size: 11px; }
  .plan-day-map { grid-template-columns: repeat(auto-fill, 10px); gap: 3px; padding-top: 12px; }
  .plan-day-dot { width: 10px; height: 10px; }
  .day-detail { margin-top: 12px; padding: 13px; }
  .day-detail-head { margin-bottom: 11px; }
  .day-detail h3 { font-size: 17px; }
  .chapter-checks { gap: 6px; }
  .chapter-check { min-height: 38px; padding: 7px 8px; }
  .plan-milestones { grid-template-columns: 1fr; gap: 6px; padding-top: 12px; }
  .plan-milestone { min-height: 50px; padding: 9px 10px; }
  .story-reading-row { min-height: 54px; }
}

@media (max-width: 430px) {
  .plans-page .page-head h1 { font-size: 28px; }
  .plans-page .page-actions .button { padding: 0 10px; }
  .reading-plan-toggle { gap: 7px; }
  .reading-plan-toggle strong { font-size: 17px; }
  .reading-plan-toggle small { max-width: 205px; }
  .plan-overview-meta { max-width: 132px; }
  .chapter-checks { grid-template-columns: 1fr 1fr; }
}
