:root {
  --ink: #17221d;
  --muted: #657069;
  --paper: #f3f1e9;
  --card: #fffdf7;
  --line: #dcded4;
  --acid: #d8ff72;
  --acid-strong: #b8ee32;
  --moss: #244b38;
  --coral: #ff8c6b;
  --lavender: #c8c3ff;
  --shadow: 0 20px 60px rgba(23, 34, 29, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(216, 255, 114, 0.24), transparent 24rem),
    radial-gradient(circle at 88% 80%, rgba(200, 195, 255, 0.19), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid rgba(23, 34, 29, 0.09);
  background: rgba(255, 253, 247, 0.69);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 820; font-size: 20px; letter-spacing: -0.04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--acid); display: grid; place-items: center; font-weight: 900; }
.beta { margin-left: auto; padding: 4px 7px; background: var(--acid); border-radius: 999px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: grid; gap: 7px; margin-top: 38px; }
.nav-button {
  border: 0;
  background: transparent;
  padding: 12px 13px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6e7771;
  cursor: pointer;
  font-weight: 630;
}
.nav-button:hover { background: rgba(23, 34, 29, .05); color: var(--ink); }
.nav-button.active { background: var(--ink); color: white; }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; background: var(--coral); color: var(--ink); font-size: 11px; font-weight: 800; }

.sidebar-foot { margin-top: auto; }
.mini-profile { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.avatar { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); font-weight: 800; }
.profile-copy strong, .profile-copy span { display: block; }
.profile-copy strong { font-size: 13px; }
.profile-copy span { color: var(--muted); font-size: 11px; margin-top: 2px; }

.main { min-width: 0; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 12px 5vw; gap: 18px; }
.topbar-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.focus-pill { min-width: 0; max-width: 690px; border: 1px solid var(--line); background: rgba(255,253,247,.76); border-radius: 14px; padding: 9px 12px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.focus-pill span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.focus-pill strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.focus-pill b { color: var(--moss); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: rgba(255,255,255,.45); border-radius: 50%; cursor: pointer; }
.icon-button:hover { background: white; }

.content { width: min(1120px, calc(100% - 10vw)); margin: 0 auto; padding-bottom: 80px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--moss); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; font-weight: 500; margin-bottom: 20px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 43px); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; }
h3 { font-size: 19px; letter-spacing: -.02em; }
.lede { font-size: 18px; color: var(--muted); line-height: 1.62; max-width: 650px; }

.hero { padding: 28px 0 46px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 48px; align-items: end; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--acid) 62%); }
.week-card { background: var(--ink); color: white; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; min-height: 208px; box-shadow: var(--shadow); }
.week-card:after { content: "?"; position: absolute; right: -4px; bottom: -52px; color: rgba(216,255,114,.13); font: 170px/1 Georgia; }
.week-card .eyebrow { color: var(--acid); }
.week-score { display: flex; align-items: baseline; gap: 9px; margin: 24px 0 8px; }
.week-score strong { font: 58px/1 Georgia; color: var(--acid); }
.week-score span { color: #b8c0bb; }
.progress { height: 7px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--acid); border-radius: inherit; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 26px 0 18px; }
.section-head h2 { margin: 0; }
.text-button { border: 0; background: transparent; color: var(--moss); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 700; }

.episode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.episode-card { border: 1px solid var(--line); background: rgba(255,253,247,.8); border-radius: 18px; padding: 20px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 236px; display: flex; flex-direction: column; text-align: left; }
.episode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bcc4b9; }
.show-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.show-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: white; font-weight: 850; font-size: 12px; flex: 0 0 auto; }
.show-meta strong { display: block; font-size: 12px; }
.show-meta span { color: var(--muted); font-size: 11px; }
.episode-card h3 { line-height: 1.35; margin-bottom: 18px; }
.episode-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.insight-count { background: #edf2e9; color: var(--moss); padding: 6px 9px; border-radius: 99px; font-weight: 750; }

.action-strip { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--acid); border: 1px solid #c4e86a; padding: 22px 24px; border-radius: 18px; }
.action-strip h3 { margin-bottom: 7px; }
.action-strip p { margin: 0; color: #4f5b52; font-size: 13px; }
.action-meta { display: flex; gap: 18px; align-items: center; font-size: 12px; font-weight: 730; }
.ready-strip { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--ink); color: white; padding: 22px 24px; border-radius: 18px; box-shadow: var(--shadow); }
.ready-strip .eyebrow { color: var(--acid); }
.ready-strip h3 { margin: 6px 0; }
.ready-strip p { margin: 0; color: #b8c0bb; font-size: 13px; }

.button { border: 0; border-radius: 12px; padding: 12px 17px; font-weight: 760; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, background .15s; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: default; opacity: .72; transform: none; }
.button.primary { background: var(--ink); color: white; }
.button.acid { background: var(--acid); color: var(--ink); }
.button.secondary { background: #ebeee7; color: var(--ink); }
.button.ghost { background: transparent; border: 1px solid var(--line); }
.button.coral { background: var(--coral); }
.button.small { padding: 9px 12px; font-size: 12px; }

.page-head { padding: 25px 0 28px; }
.page-head h1 { font-size: clamp(42px, 5vw, 62px); }
.breadcrumb { border: 0; background: transparent; padding: 0; margin-bottom: 28px; color: var(--muted); cursor: pointer; }
.episode-hero { display: grid; grid-template-columns: 1fr 280px; gap: 44px; padding: 15px 0 34px; border-bottom: 1px solid var(--line); }
.episode-hero h1 { font-size: clamp(36px, 4.5vw, 58px); }
.episode-cover { min-height: 240px; border-radius: 22px; padding: 24px; background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.episode-cover .show-logo { width: 52px; height: 52px; }
.cover-quote { font: 26px/1.08 Georgia; color: var(--acid); }
.episode-details { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.demo-note { margin: 22px 0; padding: 12px 15px; border: 1px dashed #aeb6ab; border-radius: 12px; color: var(--muted); font-size: 12px; background: rgba(255,255,255,.35); }

.insights { display: grid; gap: 18px; margin-top: 24px; }
.insight-card { display: grid; grid-template-columns: 60px 1fr; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; }
.insight-number { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--acid); font: 24px/1 Georgia; }
.insight-card h3 { font: 28px/1.14 Georgia; margin-bottom: 10px; }
.insight-card p { color: #526058; line-height: 1.62; }
.why { border-left: 3px solid var(--lavender); padding-left: 14px; margin: 16px 0; }
.why strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.source { color: var(--muted); font-size: 11px; margin: 16px 0; }
.selection-reason { display: inline-flex; margin-bottom: 10px; padding: 5px 8px; border-radius: 99px; background: #ece9ff; color: #4c4580; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.selection-explainer { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; max-width: 620px; }
.insight-head { gap: 20px; }
.mode-switch { flex: 0 0 auto; display: flex; flex-wrap: wrap; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mode-switch button { border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 760; }
.mode-switch button.active { background: var(--ink); color: white; }
.card-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.reflection-box { margin-top: 18px; padding: 18px; background: #f2f1ff; border-radius: 14px; }
.reflection-box label { display: block; font: 21px/1.3 Georgia; margin-bottom: 12px; }
textarea, input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; background: white; color: var(--ink); outline: 0; }
textarea:focus, input:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(36,75,56,.1); }
textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
.reflection-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.cards-list { display: grid; gap: 14px; }
.plain-card { background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.plain-card-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.plain-card p { color: var(--muted); line-height: 1.55; }
.status { padding: 6px 9px; border-radius: 99px; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; white-space: nowrap; }
.status.open { background: #fff0bf; }
.status.done { background: #dff6dc; }
.status.review { background: #e8e5ff; }
.status.replaced, .status.abandoned { background: #edf0eb; color: var(--muted); }
.action-outcome { color: var(--muted); font-size: 12px; font-style: italic; }
.commitment-cap { width: fit-content; margin-top: 22px; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 9px; padding: 12px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 13px; }
.commitment-cap strong { font: 22px/1 Georgia; }
.commitment-cap span { color: var(--muted); font-size: 12px; }
.cap-dots { grid-column: 1 / -1; display: flex; gap: 5px; margin-top: 4px; }
.cap-dots i { width: 38px; height: 5px; border-radius: 99px; background: #dfe3dc; }
.cap-dots i.filled { background: var(--moss); }
.capacity-list { display: grid; gap: 10px; margin-top: 22px; }
.capacity-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.capacity-action strong, .capacity-action span { display: block; }
.capacity-action strong { line-height: 1.35; }
.capacity-action span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.capacity-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.calendar-preview { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.calendar-preview p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.calendar-date { height: 58px; display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--acid); }
.calendar-date strong { font: 24px/1 Georgia; }
.calendar-date span { margin-top: 3px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.calendar-copy { margin: 18px 0; font-size: 14px; }
.calendar-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.empty { text-align: center; padding: 60px 24px; border: 1px dashed #afb7ad; border-radius: var(--radius); color: var(--muted); }
.empty strong { display: block; font: 28px Georgia; color: var(--ink); margin-bottom: 10px; }

.podcast-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.podcast-row { display: flex; gap: 15px; align-items: center; }
.podcast-row .show-logo { width: 50px; height: 50px; border-radius: 14px; }
.podcast-row-copy { flex: 1; min-width: 0; }
.podcast-row-copy h3 { margin: 0 0 4px; }
.podcast-row-copy p { margin: 0; font-size: 12px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.catalog-search { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.catalog-search:focus-within { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(36,75,56,.1); }
.catalog-search input { border: 0; box-shadow: none; background: transparent; padding-left: 0; }
.catalog-search input:focus { border: 0; box-shadow: none; }
.catalog-search.compact { max-width: none; margin: 0 0 16px; }
.catalog-stats { color: var(--muted); font-size: 12px; white-space: nowrap; }
.catalog-stats strong { color: var(--ink); }
.catalog-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.catalog-title h3 { margin: 0; }
.catalog-badge { padding: 4px 7px; border-radius: 99px; font-size: 8px; line-height: 1; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; white-space: nowrap; }
.catalog-badge.ready { background: #dff6dc; color: #285b31; }
.catalog-badge.chart { background: #e8e5ff; color: #463e88; }
.catalog-badge.request { background: #edf0eb; color: var(--muted); }

.overlay { position: fixed; inset: 0; background: rgba(13,22,17,.56); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 100; animation: fade .18s ease-out; }
.modal { width: min(590px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; background: var(--card); border-radius: 26px; box-shadow: 0 28px 90px rgba(0,0,0,.25); padding: 27px; animation: rise .22s ease-out; }
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-head h2 { margin: 0; font-size: 34px; }
.close { border: 0; background: #eceee9; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 780; margin-bottom: 7px; }
.field small { color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.choice { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 13px 9px; cursor: pointer; text-align: center; font-size: 12px; }
.choice.selected { border-color: var(--moss); background: #edf4ed; box-shadow: inset 0 0 0 1px var(--moss); }
.choice strong { display: block; margin: 5px 0 3px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.welcome { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--paper); }
.welcome-art { padding: 7vw; background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.welcome-art:after { content: "?"; position: absolute; right: -4vw; bottom: -12vw; color: rgba(216,255,114,.1); font: min(50vw, 670px)/1 Georgia; }
.welcome-art .brand { color: white; z-index: 1; }
.welcome-art .brand-mark { background: var(--acid); color: var(--ink); }
.welcome-quote { position: relative; z-index: 1; max-width: 610px; }
.welcome-quote h1 { font-size: clamp(50px, 6vw, 92px); }
.welcome-quote h1 span { color: var(--acid); }
.welcome-quote p { color: #b9c4be; font-size: 18px; line-height: 1.6; max-width: 510px; }
.welcome-form { padding: 6vw; display: flex; justify-content: center; flex-direction: column; }
.step { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.welcome-form h2 { font-size: clamp(34px, 4vw, 52px); }
.goal-options { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 24px; }
.goal-chip { border: 1px solid var(--line); background: var(--card); padding: 11px 14px; border-radius: 99px; cursor: pointer; }
.goal-chip.selected { background: var(--ink); color: white; border-color: var(--ink); }
.focus-history { display: grid; gap: 7px; }
.focus-history button { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 12px; text-align: left; color: var(--muted); cursor: pointer; font-size: 12px; }
.focus-history button:hover { color: var(--ink); border-color: #aeb7ad; }
.welcome-actions { display: flex; align-items: center; gap: 12px; }
.code-input { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.auth-alternatives { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.auth-message { margin-top: 16px; }

.share-card { background: var(--ink); color: white; padding: 28px; border-radius: 18px; margin: 14px 0; }
.share-card .eyebrow { color: var(--acid); }
.share-card blockquote { font: 28px/1.25 Georgia; margin: 30px 0; }
.share-card footer { color: #aeb9b2; font-size: 12px; }
.copy-row { display: flex; gap: 8px; }

.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: white; padding: 13px 17px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }

@media (max-width: 980px) {
  .shell { grid-template-columns: 84px 1fr; }
  .sidebar { padding: 25px 13px; align-items: center; }
  .brand > span, .beta, .nav-button > span:not(.nav-icon), .nav-badge, .profile-copy { display: none; }
  .nav-button { padding: 12px; }
  .episode-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .week-card { min-height: 170px; }
  .welcome { grid-template-columns: 1fr; }
  .welcome-art { min-height: 46vh; padding: 40px 7vw; }
  .welcome-art:after { font-size: 55vw; }
  .welcome-form { padding: 45px 7vw; }
}

@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: fixed; top: auto; bottom: 0; width: 100%; height: 68px; flex-direction: row; justify-content: center; border: 0; border-top: 1px solid var(--line); padding: 8px 12px; }
  .sidebar .brand, .sidebar-foot { display: none; }
  .nav { margin: 0; grid-template-columns: repeat(5, 1fr); width: 100%; gap: 3px; }
  .nav-button { display: grid; justify-items: center; padding: 5px; gap: 2px; font-size: 9px; text-align: center; }
  .nav-button > span:not(.nav-icon) { display: block; }
  .nav-icon { font-size: 16px; }
  .topbar { height: 62px; padding: 0 20px; }
  .focus-pill { grid-template-columns: minmax(0,1fr) auto; }
  .focus-pill span { display: none; }
  .content { width: calc(100% - 32px); padding-bottom: 100px; }
  .hero { padding-top: 18px; gap: 20px; }
  .episode-grid, .podcast-list { grid-template-columns: 1fr; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search { max-width: none; }
  .episode-card { min-height: 210px; }
  .action-strip { grid-template-columns: 1fr; }
  .ready-strip { grid-template-columns: 1fr; }
  .episode-hero { grid-template-columns: 1fr; gap: 20px; }
  .episode-cover { min-height: 190px; }
  .insight-card { grid-template-columns: 1fr; }
  .insight-head { align-items: stretch; flex-direction: column; }
  .mode-switch { align-self: flex-start; }
  .insight-number { width: 42px; height: 42px; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .welcome-art { min-height: 50vh; }
  .welcome-quote h1 { font-size: 48px; }
  .welcome-actions { align-items: stretch; flex-direction: column; }
  .welcome-actions .button { width: 100%; }
  .modal { padding: 20px; border-radius: 20px; }
  .capacity-action { align-items: stretch; flex-direction: column; }
  .calendar-options { grid-template-columns: 1fr; }
}
