@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600&family=DM+Sans:wght@400;500&display=swap');
@import "https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css";

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: #f7f4f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.dm-serif-display-regular {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-display-regular-italic {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: italic;
}

.elms-sans {
  font-family: "Elms Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.playfair-display {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.logo-container {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7f4f0;
  gap: 0;
  margin: 24px 0;
  line-height: 1;
}

.bracket {
  color: #f0d080;
  font-size: 1.4rem;
  line-height: 1;
}

.word-flipper {
  display: inline-grid;
  margin: 0 10px;
  height: 44px;
  overflow: hidden; /* Changed back to hidden */
  color: #f0d080;
  font-weight: 400;
  font-size: 1.4rem;
  font-family: 'Lora', sans-serif;
  min-width: 400px;
  text-align: center;
  align-items: center;
  vertical-align: middle; /* Ensures brackets and text align */
}

.word-flipper span {
  grid-column-start: 1;
  grid-row-start: 1;
  opacity: 0;
  animation: flip 24s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  white-space: nowrap; /* Prevents text wrapping on small screens */
}

.word-flipper span:nth-child(1) { animation-name: flip-first; animation-delay: 0s; }
.word-flipper span:nth-child(2) { animation-delay: 3s; }
.word-flipper span:nth-child(3) { animation-delay: 6s; }
.word-flipper span:nth-child(4) { animation-delay: 9s; }
.word-flipper span:nth-child(5) { animation-delay: 12s; }
.word-flipper span:nth-child(6) { animation-delay: 15s; }
.word-flipper span:nth-child(7) { animation-delay: 18s; }
.word-flipper span:nth-child(8) { animation-delay: 21s; }

@keyframes flip-first {
  0%     { opacity: 1; transform: translateY(0); }   /* already visible on load */
  10.5%  { opacity: 1; transform: translateY(0); }
  12.5%  { opacity: 0; transform: translateY(-20px); }
  100%   { opacity: 0; }
}

@keyframes flip {
  0%     { opacity: 0; transform: translateY(20px); }
  2%     { opacity: 1; transform: translateY(0); }
  10.5%  { opacity: 1; transform: translateY(0); }
  12.5%  { opacity: 0; transform: translateY(-20px); }
  100%   { opacity: 0; }
}

.guide-text {
  margin-left: 5px;
  color: #f7f4f0;
  font-weight: 700;
  font-family: 'Lora', sans-serif;
}


@media (max-width: 600px) {
  .logo-container {
    /* Ensure the container doesn't exceed the viewport width minus padding */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100vw;
    padding: 0 10px;
  }

  .word-flipper {
    /* Allow the width to be fluid but capped */
    min-width: 260px; 
    max-width: 280px; 
    font-size: 1rem; /* Slightly smaller to fit long phrases */
    height: 36px;
    margin: 0 5px;
  }

  .bracket {
    font-size: 1.2rem;
  }
}

@media (max-width: 340px) {
  .word-flipper {
    min-width: 210px;
    font-size: 0.85rem; /* Small enough to keep the longest phrase visible */
  }
}

/* ── TOAST NOTIFICATIONS ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(26, 22, 18, 0.12);
  z-index: 9999;
  max-width: 480px;
  width: calc(100% - 48px);
  animation: toast-in 0.25s ease;
  transition: opacity 0.3s, transform 0.3s;
}

.toast-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.toast-success {
  background: #1a1612;
  color: #f7f4f0;
}

.toast-alert {
  background: #c0392b;
  color: #fff;
}

.toast p {
  flex: 1;
  margin: 0;
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity 0.15s;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 600px) {
  .toast {
    bottom: 16px;
    width: calc(100% - 32px);
  }
}

/* ── NAV ── */
nav:not(.bottom-nav) {
  background: #fff;
  border-bottom: 1px solid #ece8e2;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b6259;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  background: #f7f4f0;
  color: #1a1612;
}

.nav-link-signout {
  color: #1a1612;
  border: 1px solid #ddd8d2;
}

.nav-link-signout:hover {
  background: #1a1612;
  color: #f7f4f0;
}

.nav-link-upgrade {
  background: #f0d080;
  color: #1a1612;
}

.nav-link-upgrade:hover {
  background: #e8c860;
  color: #1a1612;
}

.nav-link-cta {
  background: #1a1612;
  color: #f7f4f0;
}

.nav-link-cta:hover {
  background: #3d2f24;
  color: #f7f4f0;
}

.nav-public {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a1612;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    align-items: flex-start;
  }

  .nav-logo {
    height: 60px;
  }

  .nav-hamburger {
    display: flex;
    height: 60px;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 4px;
  }

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

  .nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    white-space: normal;
  }

  .nav-link-signout {
    margin-top: 4px;
  }

  .nav-public {
    padding: 8px 0 12px;
    width: 100%;
  }

  .nav-public .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
  }
}

/* BOTTOM NAV */
.bottom-nav {
  display: none;
}

@media (max-width: 860px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ece8e2;
    z-index: 200;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 0;
    text-decoration: none;
    color: #a89e94;
    font-size: 0.68rem;
    font-weight: 500;
    transition: color 0.15s;
    min-height: 44px;
  }

  .bottom-nav-item.active {
    color: #1a1612;
  }

  .bottom-nav-item:hover {
    color: #1a1612;
  }

  /* Add padding to main content so it's not hidden behind bottom nav */
  .main-content {
    padding-bottom: calc(80px + max(28px, env(safe-area-inset-bottom)));
  }

  /* Hide the top hamburger nav for signed in users on mobile */
  nav .nav-hamburger {
    display: none;
  }

  nav .nav-links {
    display: none !important;
  }
}

/* Extra padding specifically for PWA standalone mode */
@media (display-mode: standalone) {
  .bottom-nav {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .main-content {
    padding-bottom: calc(80px + max(28px, env(safe-area-inset-bottom)));
  }
}


/* ── LANDING PAGE ── */
.landing-hero {
  background: #1a1612;
  padding: 96px 32px 80px;
  text-align: center;
}

.landing-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.landing-title {
  font-family: 'Lora', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #f7f4f0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.landing-subtitle {
  font-size: 1.05rem;
  color: #a89e94;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-demo-hint {
  margin-top: 16px;
  font-size: 0.88rem;
  color: #433d37;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 600px) {
  .landing-hero {
    padding: 64px 20px 56px;
  }

  .landing-title {
    font-size: 1.9rem;
  }
}

.landing-more {
  background: #fff;
  border-top: 1px solid #ece8e2;
  border-bottom: 1px solid #ece8e2;
  padding: 48px 32px;
  text-align: center;
}

.landing-more-inner {
  max-width: 560px;
  margin: 0 auto;
}

.landing-more-eyebrow {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1612;
}

.landing-more-body {
  font-size: 0.95rem;
  color: #6b6259;
  line-height: 1.7;
  margin-top: 10px;
}

.landing-eyebrow-dark {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0d080;
  margin-bottom: 16px;
}

.landing-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  margin-top: 8px;
}

.landing-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a89e94;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}

@media (max-width: 600px) {
  .landing-hero-pills {
    gap: 6px;
  }

  .landing-hero-pill {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

/* SAMPLE GUIDES */
.landing-guides {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 32px 48px;
}

.landing-guides-header {
  text-align: center;
  margin-bottom: 36px;
}

.landing-guides-title {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.landing-guides-subtitle {
  font-size: 0.92rem;
  color: #8a7f74;
}

@media (max-width: 600px) {
  .landing-guides {
    padding: 40px 20px 32px;
  }
}

/* ── FEATURE SECTIONS ── */

/* Shared inner layout for all three feature sections */
.landing-feature-guides .landing-journal-inner,
.landing-feature-todo .landing-journal-inner,
.landing-feature-journal .landing-journal-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* GUIDES — dark */
.landing-feature-guides {
  background: #1a1612;
  padding: 80px 32px;
}

.landing-feature-todo {
  background: #1a1612;
  padding: 80px 32px;
}

.landing-feature-journal {
  background: #f7f4f0;
  padding: 80px 32px;
  border-top: 1px solid #ece8e2;
  border-bottom: 1px solid #ece8e2;
}

/* Eyebrow variants */
.landing-eyebrow-dark {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0d080;
  margin-bottom: 16px;
}

.landing-eyebrow-muted {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a89e94;
  margin-bottom: 16px;
}

/* Titles */
.landing-journal-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #f7f4f0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.landing-todo-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* Body text */
.landing-journal-body {
  font-size: 0.95rem;
  color: #a89e94;
  line-height: 1.7;
  margin-bottom: 20px;
}

.landing-todo-body {
  font-size: 0.95rem;
  color: #6b6259;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Lists */
.landing-journal-list,
.landing-todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-journal-list li {
  font-size: 0.9rem;
  color: #a89e94;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.landing-todo-list li {
  font-size: 0.9rem;
  color: #6b6259;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.landing-journal-list li::before,
.landing-todo-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #f0d080;
  font-weight: 500;
}

/* Visual card */
.landing-journal-visual {
  display: flex;
  justify-content: center;
}

.landing-journal-card {
  background: #f7f4f0;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-journal-card-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ece8e2;
}

.landing-journal-card-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.landing-journal-card-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a89e94;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 36px;
}

.landing-journal-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 2px;
}

.landing-journal-card-body {
  font-size: 0.78rem;
  color: #8a7f74;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .landing-feature-guides .landing-journal-inner,
  .landing-feature-todo .landing-journal-inner,
  .landing-feature-journal .landing-journal-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .landing-feature-guides,
  .landing-feature-todo,
  .landing-feature-journal {
    padding: 56px 20px;
  }

  .landing-journal-title,
  .landing-todo-title {
    font-size: 1.5rem;
  }
}



/* ── CTA SECTION ── */
.landing-cta-section {
  background: #f0ece6;
  border-top: 1px solid #e5dfd7;
  padding: 80px 32px;
  text-align: center;
}

.landing-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.landing-cta-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.landing-cta-body {
  font-size: 1rem;
  color: #6b6259;
  line-height: 1.7;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .landing-cta-section {
    padding: 56px 20px;
  }

  .landing-cta-title {
    font-size: 1.5rem;
  }
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  background: #ffcd8a;
  color: #1a1612;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-hero:hover {
  /* background: #e9c2a5; */
  transform: translateY(-1px);
}
.btn-hero-bottom {
  display: inline-flex;
  align-items: center;
  background: #1a1612;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-hero-bottom:hover {
  transform: translateY(-1px);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  background-color: rgb(255, 255, 255);
  color: #1a1612;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn-hero-outline:hover {
  transform: translateY(-1px);
}


/* RESPONSIVE */
@media (max-width: 600px) {
  .landing-hero {
    padding: 64px 20px 56px;
  }

  .landing-title {
    font-size: 1.9rem;
  }

  .landing-hero-actions {
    flex-direction: column;
    align-items: stretch;

  }

  .landing-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }

  .landing-how {
    padding: 40px 20px;
  }

  .landing-how-inner {
    flex-direction: column;
    gap: 24px;
  }

  .landing-how-step {
    padding: 0;
  }

  .landing-how-divider {
    display: none;
  }

  .landing-guides {
    padding: 40px 20px 32px;
  }

  .landing-cta-section {
    padding: 56px 20px;
  }

  .landing-cta-title {
    font-size: 1.5rem;
  }
}


/* ── LANDING JOURNAL ── */
.landing-journal {
  background: #1a1612;
  padding: 80px 32px;
}

.landing-journal-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.landing-eyebrow-dark {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0d080;
  margin-bottom: 16px;
}

.landing-journal-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #f7f4f0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.landing-journal-body {
  font-size: 0.95rem;
  color: #a89e94;
  line-height: 1.7;
  margin-bottom: 20px;
}

.landing-journal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-journal-list li {
  font-size: 0.9rem;
  color: #a89e94;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.landing-journal-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #f0d080;
  font-weight: 500;
}

.landing-journal-visual {
  display: flex;
  justify-content: center;
}

.landing-journal-card {
  background: #f7f4f0;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-journal-card-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ece8e2;
}

.landing-journal-card-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.landing-journal-card-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a89e94;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 36px;
}

.landing-journal-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 2px;
}

.landing-journal-card-body {
  font-size: 0.78rem;
  color: #8a7f74;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .landing-journal-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .landing-journal {
    padding: 56px 20px;
  }

  .landing-journal-title {
    font-size: 1.5rem;
  }
}

/* ── LANDING TODO ── */
.landing-todo {
  background: #f7f4f0;
  padding: 80px 32px;
}

.landing-eyebrow-light {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0d080;
  margin-bottom: 16px;
}

.landing-todo-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.landing-todo-body {
  font-size: 0.95rem;
  color: #6b6259;
  line-height: 1.7;
  margin-bottom: 20px;
}

.landing-todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-todo-list li {
  font-size: 0.9rem;
  color: #6b6259;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.landing-todo-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #f0d080;
  font-weight: 500;
}

@media (max-width: 768px) {
  .landing-todo {
    padding: 56px 20px;
  }

  .landing-todo-title {
    font-size: 1.5rem;
  }
}

/* ── FEATURE SECTION COLOR OVERRIDES ── */

/* Journal is now on light background */
.landing-feature-journal .landing-journal-title {
  color: #1a1612;
}

.landing-feature-journal .landing-journal-body {
  color: #6b6259;
}

.landing-feature-journal .landing-journal-list li {
  color: #6b6259;
}

.landing-feature-journal .landing-eyebrow-dark {
  color: #a89e94;
}

/* To-Do is now on dark background */
.landing-feature-todo .landing-todo-title {
  color: #f7f4f0;
}

.landing-feature-todo .landing-todo-body {
  color: #a89e94;
}

.landing-feature-todo .landing-todo-list li {
  color: #a89e94;
}

.landing-feature-todo .landing-eyebrow-muted {
  color: #f0d080;
}

/* ── ABOUT PAGE ── */
.about-container {
  max-width: 100%;
}

.about-hero {
  background: #1a1612;
  padding: 80px 32px;
  text-align: center;
}

.about-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.about-title {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #f7f4f0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-lead {
  font-size: 1.05rem;
  color: #a89e94;
  line-height: 1.7;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.about-section h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.about-section p {
  font-size: 0.98rem;
  color: #3d3530;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section a {
  color: #1a1612;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-section-title {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.about-beliefs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-belief {
  padding: 24px;
  background: #f7f4f0;
  border-radius: 14px;
  border-left: 3px solid #f0d080;
}

.about-belief h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 8px;
}

.about-belief p {
  font-size: 0.92rem;
  color: #6b6259;
  line-height: 1.7;
  margin: 0;
}

.about-cta {
  background: #f0ece6;
  border-top: 1px solid #e5dfd7;
  padding: 80px 32px;
  text-align: center;
}

.about-cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.about-cta-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.about-cta-body {
  font-size: 0.95rem;
  color: #6b6259;
  margin-bottom: 28px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .about-hero {
    padding: 56px 20px;
  }

  .about-title {
    font-size: 1.8rem;
  }

  .about-content {
    padding: 48px 20px;
    gap: 40px;
  }

  .about-cta {
    padding: 56px 20px;
  }

  .about-cta-title {
    font-size: 1.5rem;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1612;
  color: #f7f4f0;
  padding: 6px 11px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}


.btn:hover { transform: translateY(-1px); }

.btn-outline {
  background: #fff;
  color: #1a1612;
  border: 1px solid #ddd8d2;
}

.btn-outline:hover { background: #f7f4f0; }

.btn-primary { background: #1a1612; color: #f7f4f0; }
.btn-primary:hover { background: #3d2f24; }

.load-older-entries {
  text-align: center;
  padding: 24px 0 8px;
  border-top: 1px solid #ece8e2;
  margin-top: 8px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #6b6259;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid #ddd8d2;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #f0ece6;
  color: #1a1612;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-new-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1612;
  color: #f7f4f0;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-new-guide:hover {
  background: #3d2f24;
  transform: translateY(-1px);
}

.btn-sm {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-edit { background: #f0ece6; color: #1a1612; }
.btn-edit:hover { background: #e5dfd7; }

.btn-publish { background: #e6f4ec; color: #2d7a4f; }
.btn-publish:hover { background: #d0eadb; }

.btn-unpublish { background: #f0ece6; color: #8a7f74; }
.btn-unpublish:hover { background: #e5dfd7; }

.btn-icon-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: #8a7f74;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.btn-icon-publish:hover { color: #1a5c3a; }

.btn-icon-unpublish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: #2d7a4f;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.btn-icon-unpublish:hover { color: #1a1612; }

.btn-delete { background: #fdecea; color: #c0392b; margin-left: auto; }
.btn-delete:hover { background: #f9d6d3; }

.btn-step {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-step-edit { background: #f0ece6; color: #1a1612; }
.btn-step-edit:hover { background: #e5dfd7; }
.btn-step-delete { background: #fdecea; color: #c0392b; }
.btn-step-delete:hover { background: #f9d6d3; }

/* ── BADGES ── */
.badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-draft { background: #f0ece6; color: #8a7f74; }
.badge-published { background: #e6f4ec; color: #2d7a4f; }

/* ── FORMS ── */
.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1612;
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #1a1612;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="number"]:focus,
.field input[type="password"]:focus,
.field textarea:focus,
.field select:focus {
  border-color: #1a1612;
  box-shadow: 0 0 0 3px rgba(26, 22, 18, 0.06);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.field input[type="file"] {
  font-size: 1rem;
  color: #6b6259;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7f74' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-hint {
  font-size: 0.78rem;
  color: #a89e94;
  /* margin-left: 6px; */
}

.field-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.field-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1a1612;
  cursor: pointer;
}

.field-remember label {
  font-size: 0.88rem;
  color: #6b6259;
  cursor: pointer;
}

input[type="submit"],
button[type="submit"] {
  font-family: 'DM Sans', sans-serif;
}

.form-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.form-title {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.form-errors {
  background: #fdecea;
  border: 1px solid #f5c4c4;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.form-errors p {
  font-size: 0.88rem;
  color: #c0392b;
  margin: 0;
  line-height: 1.6;
}

.form-errors-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c0392b;
  margin-bottom: 8px;
}

.form-errors-list {
  padding-left: 18px;
  margin: 0;
}

.form-errors-list li {
  font-size: 0.88rem;
  color: #c0392b;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ece8e2;
}

/* ── AUTH ── */
.auth-container {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.auth-card {
  background: #fff;
  border: 1px solid #ece8e2;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-header { margin-bottom: 32px; }

.auth-title {
  font-family: 'Montserrat', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #8a7f74;
}

.auth-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ece8e2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.auth-links a {
  font-size: 0.88rem;
  color: #6b6259;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-links a:hover {
  color: #1a1612;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal-note {
  font-size: 0.75rem;
  color: #a89e94;
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.auth-legal-note a {
  color: #6b6259;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal-note a:hover {
  color: #1a1612;
}

/* ── GUIDES INDEX ── */
.guides-header {
  padding: 48px 32px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
}

.guides-header p {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #5d564f;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 32px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.guides-empty {
  text-align: center;
  padding: 80px 32px;
  color: #8a7f74;
  max-width: 900px;
  margin: 0 auto;
}

.guides-empty p {
  font-size: 1rem;
  margin-top: 8px;
}

/* ── GUIDE CARD ── */
.guide-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #ece8e2;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guide-card h2 {
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.guide-card h2 a {
  color: inherit;
  text-decoration: none;
}

.guide-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-description {
  font-size: 1rem;
  color: #6b6259;
  line-height: 1.5;
}

.guide-description a {
  text-decoration: none;
  color: inherit;
}

.guide-description a:hover {
  text-decoration: underline;
}

.guide-meta {
  font-size: 0.82rem;
  color: #a89e94;
}

.guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid #f0ece6;
}

.guide-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #453e37;
}

.guide-meta-dot {
  color: #ddd8d2;
}

/* ── GUIDE SHOW ── */
.guide-show { max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; }

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #8a7f74;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;
}

.guide-back:hover { color: #1a1612; }
.guide-back::before { content: "←"; }

.guide-hero { margin-bottom: 32px; }

.guide-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.guide-hero h1 {
  font-family: 'Montserrat', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.guide-hero p {
  font-size: 1.2rem;
  color: #6b6259;
  line-height: 1.6;
  margin-bottom: 16px;
}


.guide-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.divider { border: none; border-top: 1px solid #ece8e2; margin: 28px 0; }

.steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.steps-header h2 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1612;
}

.steps-list { display: flex; flex-direction: column; gap: 16px; }

.new-step-form {
  background: #fff;
  border: 1.5px dashed #ddd8d2;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

/* ── STEPS ── */
.step-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ece8e2;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.step-card:hover { box-shadow: 0 4px 20px rgba(26,22,18,0.06); }

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1612;
  color: #f7f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
}

.step-content { flex: 1; min-width: 0; }

.step-content h3 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.step-content p {
  font-size: 1.2rem;
  color: #6b6259;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

.step-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.step-media-img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  border: 1px solid #ece8e2;
  margin-top: 12px;
  object-fit: cover;
}

.step-audio audio {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 4px;
}

.step-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  justify-content: flex-end;
}

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

/* USER ACCOUNT EDIT */
.danger-link {
  font-size: 0.82rem;
  color: #c0392b;
  text-decoration: none;
}

.danger-link:hover {
  text-decoration: underline;
}
/*  */

/* FILE UPLOAD */
/* ── FILE UPLOAD ── */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0ece6;
  color: #1a1612;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}

.file-upload-label:hover .file-upload-btn {
  background: #e5dfd7;
}

.file-upload-hint {
  font-size: 0.82rem;
  color: #a89e94;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-upload-selected {
  font-size: 0.82rem;
  color: #8a7f74;
  margin-top: 8px;
}
/*  */

/* For uploaded images */
.zoomable-image-link img {
  transition: transform 0.2s;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.zoomable-image-link img:hover {
  transform: scale(1.02);
  border-color: #007bff;
}
/*  */

/* FOR STEP - FORM */
.media-remove-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #c0392b;
  cursor: pointer;
}

.media-remove-checkbox {
  width: 14px;
  height: 14px;
  accent-color: #c0392b;
  cursor: pointer;
}
/*  */

/* GUIDE - SHOW PAGE */
.steps-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps-count {
  font-size: 0.95rem;
  color: #8a7f74;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #2d9f6c;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.3s;
}

.btn-refresh:hover {
  background: #f0ece6;
  color: #1a1612;
  transform: rotate(180deg);
}
/*  */

/* INVITE */
.invite-link-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.invite-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: #1a1612;
  background: #f7f4f0;
  outline: none;
}


/* INVITED MEMEBERS */
/* ── MEMBERS ── */
.members-section { margin-top: 4px; }

.members-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 16px;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f7f4f0;
  border-radius: 12px;
  border: 1px solid #ece8e2;
}

.member-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a1612;
  color: #f7f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.member-info { flex: 1; min-width: 0; }

.member-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1612;
  margin: 0;
}

.member-email {
  font-size: 0.78rem;
  color: #8a7f74;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-joined {
  font-size: 0.75rem;
  color: #a89e94;
  display: block;
  margin-top: 2px;
}

.member-actions {
  flex-shrink: 0;
}

.members-empty {
  text-align: center;
  padding: 32px 16px;
  color: #8a7f74;
}

.members-empty p {
  font-size: 0.88rem;
  margin-bottom: 4px;
}


@media (max-width: 600px) {
  .invite-link-box {
    flex-direction: column;
    align-items: stretch;
  }

  .invite-link-box .btn {
    width: 100%;
    justify-content: center;
  }

  .member-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }

  .member-info {
    flex: 1;
    min-width: calc(100% - 52px);
  }

  .member-actions {
    width: 100%;
  }

  .member-actions form,
  .member-actions button {
    width: 100%;
    justify-content: center;
  }
}
/*  */

/* IMAGE VIEWER */
/* ── IMAGE VIEWER ── */
.step-media-clickable {
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.step-media-clickable:hover {
  opacity: 0.9;
}

.image-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.image-overlay.open {
  display: flex;
}

.image-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  max-width: 100vw;
  max-height: 100vh;
}

.image-overlay-img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.image-overlay-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.image-overlay-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.image-overlay-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}
/*  */

/* ── MEDIA UPLOAD CARDS ── */
.media-upload-card {
  background: #fff;
  border: 1px solid #ece8e2;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.media-upload-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.media-upload-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-upload-icon-photo {
  background: #e6f4ec;
  color: #2d7a4f;
}

.media-upload-icon-audio {
  background: #e6f0fb;
  color: #185fa5;
}

.media-upload-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: #1a1612;
  margin: 0;
}

.media-upload-subtitle {
  font-size: 0.78rem;
  color: #8a7f74;
  margin: 0;
}

.media-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7f4f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.media-preview-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ece8e2;
  flex-shrink: 0;
}

.media-preview-info {
  flex: 1;
  min-width: 0;
}

.media-preview-name {
  font-size: 0.82rem;
  color: #1a1612;
  font-weight: 500;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-audio-preview {
  background: #f7f4f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.file-upload-zone {
  display: block;
  border: 1.5px dashed #ddd8d2;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.file-upload-zone:hover {
  border-color: #1a1612;
  background: #faf9f7;
}

.file-upload-zone.has-file {
  border-color: #2d7a4f;
  background: #f0faf4;
}

.file-upload-zone-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-upload-zone-btn {
  display: inline-flex;
  align-items: center;
  background: #f0ece6;
  color: #1a1612;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

.file-upload-zone:hover .file-upload-zone-btn {
  background: #e5dfd7;
}

.file-upload-zone-hint {
  font-size: 0.78rem;
  color: #a89e94;
}

.file-upload-zone-selected {
  font-size: 0.78rem;
  color: #2d7a4f;
  margin: 8px 0 0;
  min-height: 0;
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #faeeda;
  border: 1px solid #f0d5a0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  color: #854f0b;
}

.disclaimer p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.media-upload-icon-video {
  background: #f0e6fb;
  color: #7a18a5;
}

.media-video-preview {
  background: #f7f4f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

/* ── TASKS ── */
.tasks-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.tasks-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.page-title {
  font-family: 'Montserrat', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin: 0;
}

.tasks-subtitle {
  font-size: 0.95rem;
  color: #8a7f74;
  margin-top: 4px;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-summary-clear {
  background: #f7f4f0;
  color: #6b6259;
  border: 1px solid #ece8e2;
}

.task-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #ece8e2;
  padding: 20px 24px;
  position: relative;
  transition: box-shadow 0.2s;
}

.task-visibility-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #322f2b;
}

.task-visibility-icon-inline {
  color: #d8a76a;
  margin-right: auto;
  display: flex;
  align-items: center;
}

.task-visibility-icon svg {
  display: block;
}

.task-card:hover {
  box-shadow: 0 4px 20px rgba(26,22,18,0.06);
}

.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

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

.task-date {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a1612;
}

.task-author {
  font-size: 0.78rem;
  color: #766d64;
}

.task-actions {
  display: flex;
  gap: 6px;
}

.task-actions-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0ece6;
}

.task-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1612;
  margin: 0 0 6px;
}

.task-description {
  font-size: 0.9rem;
  color: #6b6259;
  line-height: 1.6;
  margin: 0;
}

.tasks-empty {
  text-align: center;
  padding: 80px 32px;
  color: #8a7f74;
}

.tasks-empty p {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .tasks-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tasks-header-row .btn {
    width: 100%;
    justify-content: center;
  }

  .task-card-top {
    flex-wrap: wrap;
  }
}

.tasks-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field input[type="date"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #1a1612;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

.field input[type="date"]:focus {
  border-color: #1a1612;
  box-shadow: 0 0 0 3px rgba(26, 22, 18, 0.06);
}

.task-audio {
  margin-top: 10px;
}

.task-audio audio {
  max-width: 100%;
  border-radius: 8px;
}

.task-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0ece6;
}

.task-logged-date {
  font-size: 0.75rem;
  color: #a89e94;
}

.tasks-month-group {
  margin-bottom: 32px;
}

.task-date-urgent {
  color: #c0392b;
  font-weight: 600;
}

.tasks-month-heading {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a89e94;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
}


/* ── TASK CARD ENTRY LAYOUT ── */
.task-card-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.task-card-entry-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a89e94;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 40px;
  flex-shrink: 0;
}

.task-card-entry-date-empty {
  color: #ddd8d2;
}

.task-date-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  color: #1a1612;
}

.task-date-label-overdue {
  color: #c0392b;
}

.task-card-entry-body {
  flex: 1;
  min-width: 0;
}

.task-card-entry-author {
  font-size: 0.72rem;
  color: #a89e94;
  margin-bottom: 4px;
}

.task-card-entry-title {
  font-family: 'Montserrat', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 6px;
  line-height: 1.4;
}

.task-card-entry-desc {
  font-size: 0.82rem;
  color: #8a7f74;
  line-height: 1.5;
  margin-top: 4px;
}

/* ── LEGAL PAGES ── */
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ece8e2;
}

.legal-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.88rem;
  color: #8a7f74;
}

.legal-notice {
  background: #f7f4f0;
  border-left: 3px solid #1a1612;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 32px;
}

.legal-notice p {
  font-size: 0.92rem;
  color: #1a1612;
  line-height: 1.6;
  margin: 0;
}

.legal-content h2 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1612;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 0.92rem;
  color: #3d3530;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content ul li {
  font-size: 0.92rem;
  color: #3d3530;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content a {
  color: #1a1612;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid #ece8e2;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
}

.footer-link {
  font-size: 0.82rem;
  color: #8a7f74;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #1a1612;
}

.footer-copy {
  font-size: 0.82rem;
  color: #a89e94;
  margin-left: auto;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-copy {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .site-footer {
    display: none;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #ece8e2;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── ERROR PAGES ── */
.error-container {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.error-inner {
  max-width: 400px;
}

.error-code {
  font-family: 'Lora', serif;
  font-size: 5rem;
  font-weight: 600;
  color: #ece8e2;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.error-message {
  font-size: 0.95rem;
  color: #8a7f74;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ── DEMO BANNER ── */
.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1612;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9000;
}

.demo-banner-label {
  font-size: 0.82rem;
  color: #cfc5bc;
  flex: 1;
}

.demo-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;

}

.demo-banner-exit {
  background: white;
  color: #020202;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 200;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.demo-banner-exit:hover {
  background: rgba(255,255,255,0.1);
  color: #f7f4f0;
}

.demo-banner-cta {
  display: inline-flex;
  align-items: center;
  background: #f0d080;
  color: #1a1612;
  padding: 7px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 200;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.demo-banner-cta:hover { background: #e8c860; }

form:has(.demo-banner-exit) {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .demo-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 8px;
  }

  .demo-banner-label { text-align: center; }

  .demo-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .demo-banner-actions form,
  .demo-banner-exit,
  .demo-banner-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ── DANGER ZONE ── */
.danger-zone {
  padding: 20px;
  border: 1px solid #f5c4c4;
  border-radius: 12px;
  background: #fdecea;
  margin-top: 24px;
}

.danger-zone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c0392b;
  margin-bottom: 6px;
}

.danger-zone-body {
  font-size: 0.88rem;
  color: #8a3a2a;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ── DELETE CONFIRM ── */
.delete-confirm-instruction {
  font-size: 0.88rem;
  color: #8a3a2a;
  margin-bottom: 10px;
  line-height: 1.5;
}

.delete-confirm-instruction strong {
  font-family: monospace;
  background: #f5c4c4;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.delete-confirm-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #f5c4c4;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #1a1612;
  background: #fff;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.delete-confirm-input:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  background: #c0392b;
  color: #fff;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.4;
  pointer-events: none;
}

.btn-toggle-private-public {
  display: inline-flex;
  align-items: center;
  background: #c87f77;
  color: #fdfdfd;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
}

.btn-danger-active {
  opacity: 1;
  pointer-events: auto;
}

.btn-danger-active:hover {
  background: #a93226;
}

/* ── INLINE NOTICES ── */
.inline-notice {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-notice-success {
  background: #e6f4ec;
  color: #2d7a4f;
  border: 1px solid #c3e6d0;
}

.inline-notice-alert {
  background: #faeeda;
  color: #854f0b;
  border: 1px solid #f0d5a0;
}

.inline-notice-danger {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c4c4;
}

.inline-notice-public-guide {
  background: #e6f0fb;
  color: #185fa5;
  border: 1px solid #b8d4f5;
}

.inline-notice-private-guide {
  background: #faeeda;
  color: #854f0b;
  border: 1px solid #f0d5a0;
}

.inline-notice strong {
  font-weight: 600;
}

/* ── STEP ATTACHMENT PLACEHOLDERS ── */
.step-attachments-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.step-attachment-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f7f4f0;
  border: 1.5px dashed #ddd8d2;
  border-radius: 100px;
  color: #a89e94;
  font-size: 0.78rem;
}

.step-video { margin-top: 12px; }

.step-video video {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  border: 1px solid #ece8e2;
  display: block;
}


.task-video { margin-top: 10px; }

/* ── WRITING TIPS ── */
.writing-tips {
  margin-bottom: 20px;
  border: 1px solid #e8e0d8;
  border-radius: 12px;
  overflow: hidden;
}

.writing-tips-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #faf7f4;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b6259;
  list-style: none;
  user-select: none;
}

.writing-tips-summary::-webkit-details-marker {
  display: none;
}

.writing-tips-summary:hover {
  background: #f0ece6;
  color: #1a1612;
}

.writing-tips[open] .writing-tips-chevron {
  transform: rotate(180deg);
}

.writing-tips-chevron {
  font-size: 0.82rem;
  transition: transform 0.2s;
  display: inline-block;
}

.writing-tips-body {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e8e0d8;
}

.writing-tips-intro {
  font-size: 0.85rem;
  color: #8a7f74;
  margin-bottom: 14px;
  line-height: 1.5;
}

.writing-tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.writing-tip {
  background: #f7f4f0;
  border-radius: 8px;
  padding: 10px 14px;
}

.writing-tip-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 4px;
}

.writing-tip-body {
  font-size: 0.82rem;
  color: #8a7f74;
  margin-bottom: 6px;
  line-height: 1.5;
}

.writing-tip-avoid {
  font-size: 0.82rem;
  color: #a89e94;
  margin-bottom: 4px;
  text-decoration: line-through;
  text-decoration-color: #c0392b;
}

.writing-tip-better {
  font-size: 0.85rem;
  color: #2d7a4f;
  font-weight: 500;
  margin: 0;
}


.landing-not-sure-yet {
  background: #ebe7de;
  border-top: 1px solid #ece8e2;
  border-bottom: 1px solid #ece8e2;
  padding: 28px 32px;
  text-align: center;
}

.landing-not-sure-yet-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.landing-demo-hint {
  font-size: 1.2rem;
  color: #8a7f74;
}

/* ── SOCIAL PROOF ── */
.landing-proof {
  background: #fff;
  border-top: 1px solid #ece8e2;
  border-bottom: 1px solid #ece8e2;
  padding: 56px 32px;
}

.landing-proof-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.landing-proof-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.landing-proof-metric {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.landing-proof-number {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.landing-proof-label {
  font-size: 0.88rem;
  color: #8a7f74;
}

.landing-proof-divider {
  width: 1px;
  height: 48px;
  background: #ece8e2;
  flex-shrink: 0;
}

.landing-proof-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-proof-testimonial {
  background: #f7f4f0;
  border-radius: 16px;
  padding: 24px;
}

.landing-proof-quote {
  font-size: 0.92rem;
  color: #3d3530;
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.landing-proof-author {
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a7f74;
  margin: 0;
}

@media (max-width: 600px) {
  .landing-proof {
    padding: 40px 20px;
  }

  .landing-proof-metrics {
    flex-direction: column;
    gap: 24px;
  }

  .landing-proof-divider {
    width: 48px;
    height: 1px;
  }

  .landing-proof-testimonials {
    grid-template-columns: 1fr;
  }

  .landing-proof-number {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .landing-proof-testimonials {
    grid-template-columns: 1fr;
  }
}

.landing-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1612;
  color: #f7f4f0;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  opacity: 1;
}

.landing-demo-link:hover {
  background: #3d2f24;
}

/* ── GUIDED MODE ── */
.guided-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  min-height: 36px;
  position: sticky;
  top: 60px;
  background: #f7f4f0;
  z-index: 50;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.guided-mode-active .guided-mode-bar {
  border-bottom-color: #ece8e2;
}

.guided-mode-active .guided-step-active .step-card {
  scroll-margin-top: 140px;
}

.btn-guided-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0ece6;
  color: #1a1612;
  border: none;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-guided-toggle:hover {
  background: #e5dfd7;
}

.guided-mode-active .btn-guided-toggle {
  background: #1a1612;
  color: #f7f4f0;
}

.guided-mode-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guided-mode-counter {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b6259;
  min-width: 80px;
  text-align: center;
}

.btn-guided-nav {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd8d2;
  color: #1a1612;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-guided-nav:hover {
  background: #f7f4f0;
}

.btn-guided-nav-next {
  background: #1a1612;
  color: #f7f4f0;
  border-color: #1a1612;
}

.btn-guided-nav-next:hover {
  background: #3d2f24;
}

/* Hide non-active steps in guided mode */
.guided-mode-active .guided-step-hidden {
  display: none;
}

.guided-mode-active .guided-step-active {
  display: block;
}

.guided-mode-done {
  text-align: center;
  padding: 32px;
  background: #f0faf4;
  border-radius: 16px;
  border: 1px solid #c3e6d0;
  margin-top: 16px;
}

.guided-mode-done p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2d7a4f;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .guided-mode-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .guided-mode-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── TEXT TO SPEECH ── */
.btn-tts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0ece6;
  color: #6b6259;
  border: none;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s, color 0.15s;
}

.btn-tts:hover {
  background: #e5dfd7;
  color: #1a1612;
}

.btn-tts[data-speaking="true"] {
  background: #fdecea;
  color: #c0392b;
}

.btn-tts-speaking {
  background: #fdecea;
  color: #c0392b;
}

/* ── QR CODE ── */
.qr-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.qr-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qr-card {
  background: #fff;
  border: 1px solid #ece8e2;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.qr-header {
  text-align: center;
}

.qr-title {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.qr-hint {
  font-size: 0.88rem;
  color: #8a7f74;
}

.qr-code-wrapper {
  padding: 16px;
  background: #fff;
  border: 1px solid #ece8e2;
  border-radius: 16px;
}

.qr-code-wrapper svg {
  display: block;
  max-width: 100%;
}

.qr-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-url {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #ece8e2;
  width: 100%;
}

.qr-url-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a89e94;
  margin-bottom: 4px;
}

.qr-url-value {
  font-size: 0.82rem;
  color: #6b6259;
  word-break: break-all;
}

.qr-print-hint {
  background: #f7f4f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #6b6259;
  line-height: 1.5;
}

@media print {
  nav, footer, .guide-back, .qr-actions, .qr-print-hint, .qr-url, .qr-hint {
    display: none;
  }

  @page {
    margin: 0.5in;
  }

  .qr-card {
    border: none;
    padding: 0;
    align-items: flex-start;
    gap: 12px;
  }

  .qr-code-wrapper {
    width: 1.5in;
    height: 1.5in;
    padding: 0;
    border: none;
    border-radius: 0;
  }

  .qr-code-wrapper svg {
    width: 1in !important;
    height: 1in !important;
  }
}

.stale-guides-banner {
  max-width: 900px;
  margin: 0 auto 8px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #faeeda;
  border: 1px solid #f0d5a0;
  border-radius: 12px;
  padding: 12px 20px;
}

.stale-guides-text {
  font-size: 0.88rem;
  color: #854f0b;
}

.stale-guides-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #854f0b;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}


/* ── DASHBOARD ── */
.dashboard-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dashboard-subtitle {
  font-size: 0.95rem;
  color: #8a7f74;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.dashboard-stat {
  background: #fff;
  border: 1px solid #ece8e2;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.dashboard-stat-number {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dashboard-stat-label {
  font-size: 0.78rem;
  color: #8a7f74;
}

.dashboard-stat-label-warning {
  color: #854f0b;
}

.dashboard-section {
  margin-bottom: 40px;
}

.dashboard-section-header {
  margin-bottom: 16px;
}

.dashboard-section-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 4px;
}

.dashboard-section-subtitle {
  font-size: 0.85rem;
  color: #8a7f74;
  line-height: 1.5;
}

.dashboard-guides-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-guide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #ece8e2;
  border-radius: 12px;
  padding: 16px 20px;
  transition: box-shadow 0.2s;
}

.dashboard-guide-row:hover {
  box-shadow: 0 4px 16px rgba(26,22,18,0.06);
}

.dashboard-guide-row-stale {
  border-color: #f0d5a0;
  background: #fffdf7;
}

.dashboard-guide-info {
  flex: 1;
  min-width: 0;
}

.dashboard-guide-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dashboard-guide-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1612;
  text-decoration: none;
}

.dashboard-guide-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-guide-meta {
  font-size: 0.78rem;
  color: #a89e94;
}

.dashboard-guide-actions {
  flex-shrink: 0;
}

.guide-actions-delete {
  margin-left: auto;
}

.btn-dashboard-review {
  display: inline-flex;
  align-items: center;
  background: #faeeda;
  color: #854f0b;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-dashboard-review:hover {
  background: #f0d5a0;
}

.btn-dashboard-view {
  display: inline-flex;
  align-items: center;
  background: #f0ece6;
  color: #1a1612;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-dashboard-view:hover {
  background: #e5dfd7;
}

.dashboard-all-good {
  text-align: center;
  padding: 48px 32px;
  background: #f0faf4;
  border-radius: 16px;
  border: 1px solid #c3e6d0;
}

.dashboard-all-good-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.dashboard-all-good-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d7a4f;
  margin-bottom: 6px;
}

.dashboard-all-good-body {
  font-size: 0.88rem;
  color: #6b9e80;
}

@media (max-width: 600px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-guide-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-guide-actions {
    width: 100%;
  }

  .btn-dashboard-review,
  .btn-dashboard-view {
    width: 100%;
    justify-content: center;
  }
}

.btn-qr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 100px;
  border: 1px solid #ddd8d2;
  background: #fff;
  color: #6b6259;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.btn-qr-icon:hover {
  background: #f0ece6;
  color: #1a1612;
}

/* ── UPGRADE PAGE ── */
.upgrade-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.upgrade-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upgrade-header {
  text-align: center;
}

.upgrade-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.upgrade-subtitle {
  font-size: 1rem;
  color: #8a7f74;
}

.upgrade-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1612;
  color: #f7f4f0;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.upgrade-plan-header {
  margin-bottom: 24px;
}

.upgrade-plan-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #8a7f74;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.upgrade-plan-price {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
}

.upgrade-plan-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #8a7f74;
}

.upgrade-plan-savings {
  font-size: 0.78rem;
  color: #2d7a4f;
  font-weight: 500;
  margin-top: 4px;
}

.upgrade-plan-toggle {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  background: #f0ece6;
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
}

.upgrade-toggle-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a7f74;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.upgrade-toggle-btn-active {
  background: #fff;
  color: #1a1612;
}

.upgrade-plan-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #3d3530;
}

.upgrade-feature-missing {
  color: #a89e94;
}

.upgrade-feature-check {
  color: #2d7a4f;
  font-weight: 600;
  flex-shrink: 0;
}

.upgrade-feature-x {
  color: #ddd8d2;
  font-weight: 600;
  flex-shrink: 0;
}

.upgrade-current-plan {
  font-size: 0.85rem;
  color: #a89e94;
  text-align: center;
  padding: 10px;
}

.upgrade-cancel-note {
  font-size: 0.78rem;
  color: #a89e94;
  text-align: center;
  margin-top: 10px;
}

.upgrade-already-premium {
  text-align: center;
  padding: 20px;
  background: #f0faf4;
  border-radius: 12px;
  border: 1px solid #c3e6d0;
  font-size: 0.95rem;
  color: #2d7a4f;
}

.upgrade-email-hint {
  font-size: 0.82rem;
  color: #8a7f74;
  text-align: center;
  margin-top: 12px;
}

/* ── UPGRADE PAGE (REVISED) ── */
.upgrade-comparison {
  background: #fff;
  border: 1px solid #ece8e2;
  border-radius: 20px;
  overflow: hidden;
}

.upgrade-comparison-header {
  display: grid;
  grid-template-columns: 1fr 120px 140px;
  background: #f7f4f0;
  border-bottom: 1px solid #ece8e2;
  padding: 12px 24px;
}

.upgrade-comparison-col-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a7f74;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.upgrade-comparison-col-label:first-child { text-align: left; }

.upgrade-comparison-col-premium { color: #1a1612; }

.upgrade-comparison-row {
  display: grid;
  grid-template-columns: 1fr 120px 140px;
  padding: 14px 24px;
  border-bottom: 1px solid #f0ece6;
  align-items: center;
}

.upgrade-comparison-row:last-child { border-bottom: none; }

.upgrade-comparison-feature {
  font-size: 0.92rem;
  color: #3d3530;
}

.upgrade-comparison-value {
  font-size: 0.92rem;
  color: #8a7f74;
  text-align: center;
}

.upgrade-comparison-value.upgrade-comparison-col-premium {
  font-weight: 600;
  color: #1a1612;
}

.upgrade-cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upgrade-cta-sub {
  font-size: 0.88rem;
  color: #8a7f74;
}

.upgrade-cta-important-note {
  font-size: 0.88rem;
  color: #aa3333;
}

.upgrade-already-premium-note {
  font-size: 0.88rem;
  color: #8a7f74;
}


.upgrade-comparison-hint {
  padding: 0 4px;
}

.upgrade-comparison-hint p {
  font-size: 0.75rem;
  color: #a89e94;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .upgrade-comparison-header,
  .upgrade-comparison-row {
    grid-template-columns: 1fr 80px 100px;
    padding: 12px 16px;
  }

  .upgrade-comparison-feature {
    font-size: 0.85rem;
  }
}

.upgrade-promo-badge {
  display: inline-flex;
  align-items: center;
  background: #f0d080;
  color: #1a1612;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.upgrade-promo-price {
  text-align: center;
  background: #f7f4f0;
  border: 1px solid #ece8e2;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.upgrade-promo-original {
  font-size: 1rem;
  color: #a89e94;
  text-decoration: line-through;
  text-decoration-color: #c0392b;
}

.upgrade-promo-new {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #1a1612;
  letter-spacing: -0.02em;
  line-height: 1;
}

.upgrade-promo-new span {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #6b6259;
}

.upgrade-promo-saving {
  font-size: 0.82rem;
  color: #2d7a4f;
  font-weight: 500;
  background: #e6f4ec;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 4px;
}

/* ── PLAN BANNER ── */
.plan-banner {
  max-width: 900px;
  margin: 0 auto 16px;
  padding: 0 32px;
}

.plan-banner-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #faeeda;
  border: 1px solid #f0d5a0;
  border-radius: 12px;
  padding: 16px 20px;
}

.plan-banner-partial {
  background: #f7f4f0;
  border: 1px solid #ece8e2;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #6b6259;
}

.plan-banner-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #854f0b;
  margin-bottom: 2px;
}

.plan-banner-body {
  font-size: 0.85rem;
  color: #854f0b;
  opacity: 0.8;
}

.plan-upgrade-link {
  color: #1a1612;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  background: #1a1612;
  color: #f7f4f0;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.btn-upgrade:hover {
  background: #3d2f24;
}

@media (max-width: 600px) {
  .plan-banner {
    padding: 0 16px;
  }

  .plan-banner-full {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-upgrade {
    width: 100%;
    justify-content: center;
  }
}

/* ── AI GUIDE ── */
.ai-guide-header {
  margin-bottom: 32px;
}

.ai-guide-subtitle {
  font-size: 0.95rem;
  color: #6b6259;
  line-height: 1.6;
  margin-bottom: 8px;
}

.ai-guide-limit {
  font-size: 0.82rem;
  color: #a89e94;
}

.ai-upload-zone {
  border: 2px dashed #ddd8d2;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color 0.15s;
  cursor: pointer;
}

.ai-upload-zone:hover {
  border-color: #1a1612;
}

.ai-upload-inner {
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ai-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.ai-upload-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1612;
}

.ai-upload-hint {
  font-size: 0.88rem;
  color: #8a7f74;
  margin-bottom: 8px;
}

.ai-upload-btn {
  margin-top: 8px;
  position: relative;
  cursor: pointer;
}

.ai-preview-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #f7f4f0;
  padding: 16px;
}

.ai-examples {
  margin-bottom: 24px;
}

.ai-examples-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a7f74;
  margin-bottom: 10px;
}

.ai-examples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-example-tag {
  background: #f7f4f0;
  border: 1px solid #ece8e2;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: #6b6259;
}

.guides-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── TO-DO ── */
.task-card-today {
  border-left: 3px solid #000000;
  background: #f0faf4;
}

.task-card-overdue {
  border-left: 3px solid #c0392b;
  background: #fffafa;
}

.btn-task-complete {
  display: inline-flex;
  background: none;
  align-items: center;
  color: #2d7a4f;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-task-complete-inline {
  display: inline-flex;
  align-items: center;
  background: #e6f4ec;
  color: #2d7a4f;
  padding: 2px 10px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.btn-task-complete:hover {
  color: #2d9f6c;
}

.task-completed-badge {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e6f4ec;
  color: #2d7a4f;
  padding: 3px 8px;
  border-radius: 100px;
}

.task-private-badge {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f0ece6;
  color: #8a7f74;
  padding: 3px 8px;
  border-radius: 100px;
}

/* ── CATEGORY FILTER ── */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ece8e2;
}

.category-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b6259;
  background: #fff;
  border: 1px solid #ddd8d2;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.category-filter-tab:hover {
  background: #f0ece6;
  color: #1a1612;
  border-color: #c8c0b8;
}

.category-filter-tab.active {
  background: #1a1612;
  color: #f7f4f0;
  border-color: #1a1612;
}

/* ── CATEGORY BADGE ── */
.category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f0ece6;
  color: #8a7f74;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  align-self: flex-start;
}

.btn-icon-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #8a7f74;
  text-decoration: none;
}

.btn-icon-edit:hover {
  color: #1a1612;
}

.btn-icon-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: #a89e94;
  cursor: pointer;
  padding: 0;
}

.btn-icon-delete:hover {
  color: #c0392b;
}

.btn-icon-undo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: #a89e94;
  cursor: pointer;
  padding: 0;
}

.btn-icon-undo:hover {
  color: #2d7a4f;
}


/* ── CATEGORY CHIPS ── */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b6259;
  background: #fff;
  border: 1px solid #ddd8d2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.category-chip:hover {
  background: #f0ece6;
  color: #1a1612;
  border-color: #c8c0b8;
}

.category-chip-active {
  background: #1a1612;
  color: #f7f4f0;
  border-color: #1a1612;
}

.category-text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #1a1612;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.category-text-input:focus {
  border-color: #1a1612;
  box-shadow: 0 0 0 3px rgba(26, 22, 18, 0.06);
}

.category-text-input::placeholder {
  color: #a89e94;
}

/* GUIDE STATUS */
.guide-status-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge-public {
  background: #e6f0fb;
  color: #185fa5;
}

.badge-private {
  background: #faeeda;
  color: #854f0b;
}

/* ── PUBLIC GUIDE ── */
.public-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #a89e94;
  margin-top: 12px;
}

.public-guide-badge-link {
  color: #6b6259;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-guide-badge-link:hover {
  color: #1a1612;
}

.public-guide-footer {
  margin-top: 48px;
  padding: 32px;
  background: #f7f4f0;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #ece8e2;
}

.public-guide-footer p {
  font-size: 0.95rem;
  color: #6b6259;
  margin-bottom: 16px;
}


/* TO DO QUICK ADD FEATURE */

.quick-add-form {
  margin-bottom: 20px;
}

.quick-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-add-row:focus-within {
  border-color: #1a1612;
  box-shadow: 0 0 0 3px rgba(26, 22, 18, 0.06);
}

.quick-add-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #1a1612;
  background: transparent;
  padding: 8px 0;
}

.quick-add-input::placeholder { color: #a89e94; }

.quick-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1a1612;
  color: #f7f4f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.quick-add-btn:hover { background: #3d2f24; }

.quick-add-extras-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 4px;
}

.quick-add-date {
  flex: 1;
  border: none;
  border-bottom: 1px solid #ddd8d2;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #1a1612;
  background: transparent;
  padding: 4px 0;
}

.quick-add-date::placeholder { color: #a89e94; }

.quick-add-private {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #6b6259;
  cursor: pointer;
  white-space: nowrap;
}

/* ── TASK SUMMARY ── */
.task-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.task-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
}

.task-summary-overdue {
  background: #fdecea;
  color: #c0392b;
}

.task-summary-today {
  background: #e6f4ec;
  color: #2d7a4f;
}

/* ── INSTALL PROMPT ── */
.install-float-btn {
  position: fixed;
  bottom: 65px;
  right: 20px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #f7f4f0;
  color: #1a1612;
  border: 1px solid #ddd8d2;
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.install-float-btn:hover {
  background: #ece8e2;
  transform: scale(1.05);
}

.install-panel {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: #f7f4f0;
  color: #1a1612;
  border: 1px solid #ece8e2;
  border-radius: 14px;
  padding: 20px;
  max-width: 260px;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.install-panel-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #a89e94;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.install-panel-close:hover { color: #1a1612; }

.install-panel-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 14px;
  padding-right: 20px;
}

.install-panel-item {
  margin-bottom: 12px;
}

.install-panel-item:last-child { margin-bottom: 0; }

.install-panel-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #ece8e2;
  color: #6b6259;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.install-panel-text {
  font-size: 0.85rem;
  color: #6b6259;
  line-height: 1.5;
  margin: 0;
}

.install-panel-text strong { color: #1a1612; }

.install-panel::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #f7f4f0;
}


/* ── SEARCH ── */
.search-bar {
  margin-bottom: 20px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #1a1612;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23a89e94' width='16' height='16'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3E%3C/svg%3E") no-repeat 12px center;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  border-color: #1a1612;
  box-shadow: 0 0 0 3px rgba(26, 22, 18, 0.06);
}

.search-input::placeholder {
  color: #a89e94;
}
.search-results-info {
  font-size: 0.88rem;
  color: #6b6259;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-clear-link {
  font-size: 0.82rem;
  color: #c0392b;
  text-decoration: none;
  font-weight: 500;
}

.search-clear-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* DIRECT UPLOAD */
.direct-upload-progress {
  height: 4px;
  background: #ece8e2;
  border-radius: 100px;
  margin-top: 8px;
  overflow: hidden;
}

.direct-upload-progress-bar {
  height: 100%;
  background: #1a1612;
  border-radius: 100px;
  width: 0%;
  transition: width 0.1s ease;
}

.direct-upload-progress-active .direct-upload-progress-bar {
  background: #2d7a4f;
}

.direct-upload-progress-error .direct-upload-progress-bar {
  background: #c0392b;
  width: 100%;
}

.direct-upload-progress-complete .direct-upload-progress-bar {
  background: #2d7a4f;
  width: 100%;
}

.btn-uploading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.direct-upload-progress {
  margin-top: 8px;
}

.direct-upload-progress-label {
  display: block;
  font-size: 0.78rem;
  color: #6b6259;
  margin-top: 4px;
}

.direct-upload-progress-error .direct-upload-progress-label {
  color: #c0392b;
}

.direct-upload-progress-complete .direct-upload-progress-label {
  color: #2d7a4f;
}

/* ── SIGNUP READER NOTICE ── */
.signup-reader-notice {
  background: #f7f4f0;
  border: 1px solid #ece8e2;
  border-left: 3px solid #f0d080;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin-top: -8px;
  margin-bottom: 20px;
}

.signup-reader-notice-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 4px;
}

.signup-reader-notice-body {
  font-size: 0.82rem;
  color: #6b6259;
  line-height: 1.6;
  margin: 0;
}

/* INVITE PAGE */

.invite-hint {
  font-size: 0.82rem;
  color: #8a7f74;
  margin-bottom: 10px;
  line-height: 1.5;
}

.invite-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1612;
  color: #f7f4f0;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.invite-copy-btn:hover { background: #3d2f24; }

.account-invite-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.account-invite-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 2px;
}

.account-invite-body {
  font-size: 0.82rem;
  color: #8a7f74;
  margin: 0;
}

.account-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.account-signout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a7f74;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid #ddd8d2;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.account-signout-btn:hover {
  background: #1a1612;
  color: #f7f4f0;
  border-color: #1a1612;
}

