:root {
  --bg: #f8f7f2;
  --panel: #fffdf8;
  --panel-strong: #ffffff;
  --ink: #18211f;
  --muted: #66716e;
  --line: #ddd8ce;
  --brand: #2f7e86;
  --brand-dark: #22636a;
  --brand-deep: #1d5960;
  --gold: #d4a653;
  --rose: #af5e5e;
  --blue: #2f7e86;
  --soft-green: #e5f1f0;
  --soft-gold: #f4ead7;
  --soft-rose: #f3e3df;
  --shadow: 0 18px 48px rgba(24, 33, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

html {
  scroll-behavior: smooth;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.mobile-app-header {
  display: none;
}

.sidebar {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #2f7e86, #1d5960);
  color: #f8f4ea;
  padding: 28px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fffdf8;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.brand h1 {
  font-size: 1.25rem;
  margin: 0;
}

.brand p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  color: #fffdf8;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav button:hover,
.nav button.active {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: #fffdf8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.main {
  padding: 32px;
  max-width: 1480px;
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.75rem;
}

h2,
h3,
h4,
p {
  margin-top: 0;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 3.15rem);
  line-height: 1.06;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

h4 {
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.card,
.auth-box {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 6px;
}

.panel {
  padding: 22px;
}

.card {
  padding: 16px;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}

.auth-screen-menu {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
}

.auth-hero {
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 35%),
    linear-gradient(180deg, #378792, #23656d);
  color: #fffaf0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.auth-hero::after {
  content: "15";
  position: absolute;
  right: -28px;
  bottom: -56px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: min(38vw, 440px);
  line-height: 0.78;
  color: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.auth-hero h1 {
  max-width: 620px;
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  line-height: 1.02;
  margin: 18px 0;
  position: relative;
  z-index: 1;
}

.auth-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.6;
}

.landing-page {
  background: #fbfaf6;
  color: var(--ink);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.landing-brand,
.landing-links,
.landing-footer div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-brand,
.landing-links button,
.landing-footer button {
  background: transparent;
  color: inherit;
}

.landing-brand {
  font-weight: 900;
}

.landing-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.app-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(24, 33, 31, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.app-menu-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.landing-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.landing-brand .mark {
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  box-shadow: none;
  border: 1px solid var(--line);
}

.landing-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-links button,
.landing-footer button {
  padding: 9px 10px;
}

.landing-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: clamp(54px, 8vw, 112px) clamp(18px, 5vw, 72px) 48px;
  background:
    linear-gradient(135deg, rgba(229, 241, 240, 0.95), transparent 42%),
    linear-gradient(180deg, #fffdf8 0%, #f8f7f2 100%);
}

.landing-hero h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 980px;
}

.hero-subhead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--muted);
  max-width: 720px;
  line-height: 1.55;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}

.hero-bullets span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: #31413d;
  box-shadow: 0 8px 22px rgba(24, 33, 31, 0.06);
}

.hero-product-visual {
  position: relative;
  min-height: 560px;
}

.desktop-mockup,
.phone-mockup,
.flow-card,
.feature-card,
.ecosystem-card,
.book-card,
.impact-landing-card,
.price-card,
.action-plan-demo,
.faq-grid details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.desktop-mockup {
  padding: 14px;
  transform: rotate(-1deg);
}

.mockup-bar {
  display: flex;
  gap: 7px;
  padding-bottom: 12px;
}

.mockup-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.mockup-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 420px;
  border-radius: 6px;
  overflow: hidden;
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fffdf8;
}

.mock-sidebar span {
  opacity: 0.84;
  font-size: 0.88rem;
}

.mock-main {
  padding: 26px;
  background: #fffdf8;
}

.mock-main h3 {
  font-size: 1.7rem;
}

.mock-progress {
  height: 12px;
  background: #e8e2d7;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0;
}

.mock-progress i {
  display: block;
  height: 100%;
  background: var(--brand);
}

.mock-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-card-row b,
.mock-ai {
  padding: 14px;
  background: #f6fbfa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mock-ai {
  margin-top: 12px;
  line-height: 1.5;
}

.mock-ai span {
  color: var(--muted);
}

.phone-mockup {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 210px;
  padding: 12px;
  background: #17211f;
  border-color: #17211f;
  transform: rotate(4deg);
}

.phone-screen {
  min-height: 360px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffdf8, #e5f1f0);
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.phone-lines {
  display: grid;
  gap: 8px;
}

.phone-lines span {
  height: 9px;
  border-radius: 999px;
  background: #d7dedb;
}

.phone-screen button {
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 10px;
}

.landing-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.origin-band h2,
.action-plan-band h2,
.lead-magnet h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  margin-bottom: 12px;
}

.origin-band,
.action-plan-band,
.lead-magnet {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  background: #ffffff;
}

.origin-band p,
.action-plan-band p,
.lead-magnet p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.flow-grid,
.feature-grid,
.book-grid,
.impact-landing-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-card {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.flow-card span {
  color: var(--brand);
  font-weight: 900;
}

.flow-card div {
  min-height: 110px;
  display: grid;
  place-items: center;
  background: #f6fbfa;
  border-radius: 6px;
  color: var(--brand-deep);
  font-weight: 800;
  text-align: center;
}

.feature-grid,
.impact-landing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.impact-landing-card,
.price-card,
.book-card,
.ecosystem-card {
  padding: 22px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: #ffffff;
}

.ecosystem-grid .section-heading {
  grid-column: 1 / -1;
}

.ecosystem-visual {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--soft-green), var(--soft-gold));
}

.visual-1 {
  background: linear-gradient(135deg, #e5f1f0, #d6e9ec);
}

.visual-2 {
  background: linear-gradient(135deg, #f4ead7, #f3e3df);
}

.books-showcase,
.pricing-section {
  background: #f8f7f2;
}

.book-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-cover {
  min-height: 260px;
  margin-bottom: 16px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fffdf8;
  border-radius: 6px;
}

.book-cover span {
  font-size: 3rem;
  font-family: Georgia, serif;
}

.impact-landing-card ul,
.price-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.action-plan-band {
  background: linear-gradient(135deg, #ffffff, #e5f1f0);
}

.action-plan-demo {
  padding: 28px;
  transform: rotate(1deg);
}

.action-plan-demo strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-deep);
}

.price-card.featured {
  border-color: rgba(47, 126, 134, 0.35);
  box-shadow: 0 24px 80px rgba(47, 126, 134, 0.18);
}

.email-capture {
  display: flex;
  gap: 10px;
  align-items: center;
}

.email-capture input {
  min-width: 280px;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid details {
  padding: 18px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 900;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: var(--brand-deep);
  color: #fffdf8;
}

.landing-footer div:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resources-hero {
  padding: clamp(64px, 9vw, 128px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(244, 234, 215, 0.78), transparent 42%),
    linear-gradient(180deg, #fffdf8, #f8f7f2);
}

.resources-hero h1,
.article-header h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  max-width: 980px;
  margin: 0 0 16px;
}

.resources-hero p,
.article-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: grid;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-image,
.article-featured {
  min-height: 180px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(47, 126, 134, 0.16), rgba(212, 166, 83, 0.18)),
    #fffdf8;
  color: var(--brand-deep);
  font-weight: 900;
}

.article-image img,
.article-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.resource-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 240px;
  gap: 12px;
  margin-bottom: 14px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.category-pills button {
  padding: 8px 11px;
  border-radius: 999px;
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
}

.category-pills button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fffdf8;
}

.article-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) 18px;
}

.article-header {
  margin-bottom: 28px;
}

.article-featured {
  min-height: 320px;
  margin-bottom: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.article-content {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #263330;
}

.article-content h2,
.article-content h3 {
  margin-top: 34px;
}

.article-content p,
.article-content ul {
  max-width: 780px;
}

.article-cta {
  margin: 34px 0;
  padding: 24px;
  background: var(--soft-green);
  border: 1px solid #c6ddda;
  border-radius: 8px;
}

.share-row {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.article-admin-card details {
  margin-top: 12px;
}

.auth-side {
  display: grid;
  place-items: center;
  padding: 30px;
}

.auth-box {
  width: min(760px, 100%);
  padding: 34px;
  position: relative;
}

.close-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4f3;
  color: var(--brand-deep);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.close-btn:hover {
  background: #dceceb;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.78rem;
  color: #334541;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc8ba;
  background: #fffefa;
  color: var(--ink);
  border-radius: 6px;
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 126, 134, 0.14);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compact-actions {
  gap: 8px;
}

.dashboard-control-row {
  padding-top: 4px;
  margin-top: 2px;
}

.dashboard-grid {
  gap: 18px;
}

.dashboard-project-panel .asset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-action-grid {
  align-items: start;
}

.compact-dashboard-list {
  gap: 8px;
}

.dashboard-list-row,
.dashboard-roadmap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-roadmap-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.dashboard-list-row:last-child,
.dashboard-roadmap-row:last-child {
  border-bottom: 0;
}

.dashboard-roadmap-list {
  gap: 0;
}

.dashboard-buddy-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
}

.btn {
  background: var(--brand);
  color: white;
  padding: 11px 16px;
  border-radius: 4px;
  font-weight: 900;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.compact-actions .btn,
.btn-small {
  padding: 8px 12px;
  font-size: 0.92rem;
  min-height: 38px;
}

.compact-actions .pill {
  padding: 7px 11px;
  font-size: 0.82rem;
}

.column-head .btn-small {
  align-self: flex-start;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  background: #fffdf8;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: #243431;
}

.btn.added-action {
  background: #eef8f4;
  border-color: #9fcfc2;
  color: #245d4c;
}

.btn.warn {
  background: var(--rose);
}

.link-btn {
  background: none;
  color: var(--brand);
  font-weight: 900;
  padding: 0;
}

.progress-track {
  height: 10px;
  background: #e4ded2;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #8abec2);
  width: 0%;
}

.stat {
  display: grid;
  gap: 4px;
}

.stat strong {
  font-size: 1.45rem;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
  background: var(--soft-green);
  color: #244c41;
  width: fit-content;
}

.status.in-progress {
  background: var(--soft-gold);
  color: #6f4d1e;
}

.status.ai-draft-created {
  background: #dbe9ef;
  color: #2e5368;
}

.status.edited {
  background: var(--soft-rose);
  color: #7a3f3f;
}

.status.completed,
.status.saved {
  background: var(--soft-green);
  color: #24513f;
}

.roadmap-phase {
  display: grid;
  gap: 10px;
}

.step-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 6px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5f1f0;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.tabs,
.segmented {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tabs button,
.segmented button {
  background: #eef4f3;
  color: #34423c;
  border-radius: 4px;
  padding: 8px 12px;
  font-weight: 900;
}

.tabs button.active,
.segmented button.active {
  background: var(--brand);
  color: white;
}

.split-editor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.prompt-preview,
.output-editor,
.chat-window {
  min-height: 340px;
}

.output-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}

.compact-strategy-field {
  min-height: 150px;
  line-height: 1.5;
}

.generated-output-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #b8d8cd;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #f5fbf8;
  display: grid;
  gap: 12px;
}

.feedback-card {
  gap: 12px;
}

.feedback-screenshot {
  display: block;
  width: min(100%, 760px);
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  margin-top: 10px;
}

.next-step-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fbfb;
  display: grid;
  gap: 4px;
  color: var(--ink);
}

.next-step-note span {
  color: var(--muted);
  font-weight: 700;
}

.action-context-note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  display: grid;
  gap: 3px;
}

.action-context-note span {
  color: var(--muted);
}

.reflection-response-field {
  margin-top: 10px;
}

.reflection-response-field textarea {
  min-height: 120px;
}

.dashboard-output-editor {
  min-height: 260px;
  background: #fffefa;
}

.dashboard-generated-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  color: #334541;
  line-height: 1.45;
}

.dashboard-output-details {
  display: grid;
  gap: 10px;
}

.dashboard-output-details summary {
  cursor: pointer;
  font-weight: 900;
}

.chat-log {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

.message {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fffefa;
}

.message.ai {
  background: #edf5ef;
}

.posted-area {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.posted-area .eyebrow {
  margin-bottom: 0;
}

.posted-output {
  border-left: 3px solid var(--brand);
  background: #f6fbfa;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.posted-output-list,
.posted-output-scroll {
  display: grid;
  gap: 8px;
}

.posted-output-scroll {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
}

.posted-output p {
  margin-bottom: 0;
  color: #334541;
  line-height: 1.45;
}

.posted-output pre,
.card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8f7f2;
  border: 1px solid var(--line);
  padding: 12px;
  max-height: 360px;
  overflow: auto;
}

.small-note {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.prompt-posted {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.book-day-card {
  display: grid;
  gap: 12px;
}

.milestone-journey-section {
  display: grid;
  gap: 14px;
}

.milestone-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.milestone-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.milestone-day-list {
  gap: 14px;
}

.book-session {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.placeholder-editor {
  display: grid;
  gap: 8px;
}

.placeholder-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
}

.next-action-box {
  background: #f6fbfa;
  border-left: 3px solid var(--brand);
  padding: 12px;
}

.empty-workspace {
  display: grid;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.empty-workspace h3 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  max-width: 760px;
}

.empty-workspace p {
  max-width: 780px;
  line-height: 1.6;
}

.list {
  display: grid;
  gap: 10px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.action-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.action-board-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.action-board-hero h3 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.impact-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.impact-workspace-single {
  display: block;
}

.impact-main,
.impact-side {
  display: grid;
  gap: 16px;
}

.subtle-panel {
  box-shadow: none;
  background: #f6fbfa;
}

.compact-chat {
  max-height: 260px;
}

.filters {
  display: grid;
  gap: 8px;
}

.action-column {
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.action-column.drag-over {
  outline: 3px solid rgba(47, 126, 134, 0.28);
  background: #f6fbfa;
}

.column-head,
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quick-form,
.habit-form {
  display: grid;
  gap: 8px;
}

.habit-form textarea {
  min-height: 72px;
}

.day-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-selector label {
  background: #eef4f3;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
}

.action-card {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.task-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.6em;
  margin-bottom: 0;
}

.task-linked-output,
.linked-output-detail {
  border: 1px solid var(--line);
  background: #f6fbfa;
  padding: 9px 10px;
  display: grid;
  gap: 6px;
}

.task-linked-output {
  font-size: 0.92rem;
}

.task-linked-output .eyebrow {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.task-linked-output strong {
  line-height: 1.25;
}

.task-linked-output p {
  margin-bottom: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.linked-output-detail {
  margin-top: 14px;
  max-width: 100%;
  overflow: hidden;
}

.linked-output-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
  background: #fbfaf6;
  border: 1px solid var(--line);
  padding: 12px;
  line-height: 1.45;
  color: #263633;
}

.action-card[draggable="true"] {
  cursor: grab;
}

.habit-instance {
  border-left: 3px solid var(--gold);
}

.accountability-grid {
  align-items: start;
}

.buddy-filters {
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 12px;
}

.buddy-card {
  display: grid;
  gap: 10px;
}

.buddy-card-head,
.buddy-mini > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buddy-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.completed-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.completed-section .action-card {
  opacity: 0.82;
}

.premium-lock {
  display: grid;
  gap: 8px;
  padding: 14px;
  margin: 12px 0;
  background: var(--soft-gold);
  border: 1px solid #ead8ad;
  border-radius: 6px;
}

.premium-pill {
  background: #fff6df;
  border-color: #e4c879;
  color: #7b5a12;
}

.profile-menu {
  position: relative;
}

.avatar,
.avatar-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fffdf8;
  font-weight: 900;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.avatar.large {
  width: 84px;
  height: 84px;
  font-size: 1.4rem;
  border-color: var(--line);
}

.avatar-button {
  padding: 0;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown button,
.sidebar-account-actions button {
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 9px 10px;
  border-radius: 4px;
}

.profile-dropdown button:hover,
.sidebar-account-actions button:hover {
  background: #eef4f3;
}

.sidebar-account-actions {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.sidebar-account-actions button {
  color: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-header,
.profile-identity,
.avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-header {
  justify-content: space-between;
}

.profile-tabs {
  margin-bottom: 18px;
}

.success-message {
  padding: 12px 14px;
  border: 1px solid #b8d8cd;
  background: #eef8f4;
  color: #245d4c;
  border-radius: 6px;
  font-weight: 800;
}

.error-message {
  padding: 12px 14px;
  border: 1px solid #dfb3ae;
  background: #fff1ef;
  color: #8c332b;
  border-radius: 6px;
  font-weight: 800;
}

.reset-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
}

.toggle-row input {
  width: auto;
}

.billing-panel .asset-grid {
  margin: 14px 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(24, 33, 31, 0.36);
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(24, 33, 31, 0.22);
  border-radius: 6px;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
}

.mobile-top {
  display: none;
}

@media (max-width: 980px) {
  .shell,
  .auth-wrap,
  .landing-hero,
  .origin-band,
  .action-plan-band,
  .lead-magnet,
  .two,
  .three,
  .four,
  .action-board,
  .impact-workspace,
  .buddy-filters,
  .dashboard-project-panel .asset-grid,
  .dashboard-buddy-list,
  .split-editor {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .feature-grid,
  .ecosystem-grid,
  .book-grid,
  .impact-landing-grid,
  .pricing-grid,
  .faq-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-product-visual {
    min-height: 520px;
  }

  .sidebar {
    display: none;
    position: sticky;
    top: 74px;
    z-index: 39;
    height: calc(100vh - 74px);
    padding: 14px;
    overflow-y: auto;
  }

  .shell.app-menu-open .sidebar {
    display: flex;
  }

  .mobile-app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #2f7e86, #1d5960);
    color: #fffdf8;
  }

  .mobile-app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
  }

  .mobile-app-brand .mark {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    box-shadow: none;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 16px;
  }

  .action-board-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-hero {
    min-height: 420px;
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .form-grid,
  .step-row,
  .flow-grid,
  .feature-grid,
  .ecosystem-grid,
  .book-grid,
  .impact-landing-grid,
  .pricing-grid,
  .faq-grid,
  .article-grid,
  .resource-tools,
  .dashboard-list-row,
  .dashboard-roadmap-row,
  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .milestone-header {
    display: grid;
  }

  .milestone-meta {
    justify-content: flex-start;
  }

  .landing-nav {
    align-items: center;
    flex-direction: row;
    position: sticky;
    padding: 12px 18px;
  }

  .auth-screen-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .landing-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 12px 18px 16px;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(24, 33, 31, 0.10);
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .landing-nav.menu-open .landing-links {
    display: flex;
  }

  .landing-links button {
    width: 100%;
    text-align: left;
    padding: 12px 10px;
  }

  .landing-hero {
    padding-top: 34px;
  }

  .hero-product-visual {
    min-height: auto;
  }

  .desktop-mockup,
  .phone-mockup,
  .action-plan-demo {
    transform: none;
  }

  .phone-mockup {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }

  .mock-card-row,
  .email-capture {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .email-capture input {
    min-width: 0;
  }

  .landing-footer {
    flex-direction: column;
  }

  .landing-footer div:last-child {
    justify-content: flex-start;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-header,
  .profile-identity,
  .avatar-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-dropdown {
    left: 0;
    right: auto;
  }

.nav {
    grid-template-columns: 1fr;
  }
}

.checkbox-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.checkbox-list label {
  align-items: center;
  display: flex;
  gap: 8px;
  line-height: 1.35;
}

.compact-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.saved-output-filters {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(150px, 1fr)) auto;
  margin: 14px 0 18px;
}

@media (max-width: 980px) {
  .saved-output-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .saved-output-filters {
    grid-template-columns: 1fr;
  }
}

.messages-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
}

.conversation-list {
  align-content: start;
  display: grid;
  gap: 14px;
}

.conversation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.conversation-card.active {
  border-color: var(--teal);
  box-shadow: inset 4px 0 0 var(--teal);
}

.conversation-title {
  font-weight: 800;
}

.chat-panel,
.team-panel {
  display: grid;
  gap: 14px;
}

.chat-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.message-thread {
  display: grid;
  gap: 12px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}

.message-bubble {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.message-bubble.mine {
  background: #eef8f6;
  border-color: rgba(47, 132, 139, 0.35);
}

.message-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-content {
  line-height: 1.5;
}

.message-composer {
  display: grid;
  gap: 10px;
}

.message-composer textarea {
  min-height: 96px;
}

.linked-message-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.compact-card {
  padding: 12px;
}

.compact-actions {
  gap: 8px;
}

@media (max-width: 980px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .chat-header {
    flex-direction: column;
  }
}
