:root {
  --bg: #f4efe6;
  --panel: rgba(255, 255, 255, 0.9);
  --ink: #163028;
  --muted: #587264;
  --accent: #1f6b55;
  --danger: #b73b2d;
  --today: #d94a38;
  --week: #f1992d;
  --month: #3f9a4a;
  --line: rgba(22, 48, 40, 0.12);
  --shadow: 0 12px 32px rgba(47, 63, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(140deg, #edf3e7 0%, #f7efe6 50%, #f2f5f7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.12), rgba(244, 239, 230, 0.5)),
    url("/serene-garden.svg") center top / cover no-repeat,
    url("/botanical-corner.svg") right -6rem top -2rem / min(36vw, 420px) no-repeat;
  opacity: 0.68;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.6), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(255, 247, 230, 0.48), transparent 22%);
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.95);
}

textarea {
  resize: vertical;
}

.topbar,
.page-shell,
.auth-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.reminder-stack {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  display: grid;
  gap: 0.8rem;
}

.reminder-stack-empty {
  display: none;
}

.reminder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.reminder-toolbar-copy {
  margin: 0;
  color: var(--muted);
}

.reminder-browser-toggle-hidden {
  display: none;
}

.reminder-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  gap: 0.75rem;
  width: min(24rem, calc(100% - 2rem));
}

.reminder-toast {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.reminder-toast strong {
  display: block;
}

.reminder-toast p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.reminder-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.88);
}

.reminder-card strong {
  display: block;
}

.reminder-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.reminder-planning {
  border-left: 4px solid #b26b13;
}

.reminder-schedule {
  border-left: 4px solid #456ea6;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 44px;
  display: block;
}

.tagline,
.small-copy,
.user-badge span,
.mini-list,
.timeline-row span,
.card p,
.todo-copy p,
.panel-note,
.muted-line,
.manage-row p {
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: grid;
  text-align: right;
}

.page-shell,
.auth-shell {
  padding-bottom: 3rem;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4rem);
}

.auth-card,
.panel,
.hero-card,
.signal,
.quadrant-cell,
.chain-card,
.chain-level {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(520px, 100%);
  padding: 2rem;
  border-radius: 28px;
}

.auth-copy h1,
.hero-card h1,
.panel h1,
.panel h2 {
  margin-bottom: 0.35rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.button,
.button-secondary,
.link-button,
.checkbox-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.button,
.button-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
}

.button {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: rgba(31, 107, 85, 0.08);
  color: var(--accent);
}

.alert {
  border: 1px solid rgba(183, 59, 45, 0.2);
  background: rgba(183, 59, 45, 0.08);
  color: var(--danger);
  padding: 0.9rem 1rem;
  border-radius: 16px;
}

.alert-success {
  border-color: rgba(31, 107, 85, 0.18);
  background: rgba(31, 107, 85, 0.09);
  color: var(--accent);
}

.hero-card {
  border-radius: 28px;
  padding: 1.5rem 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 248, 0.7)),
    url("/serene-garden.svg") center center / cover no-repeat;
}

.landing-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3.5rem;
  display: grid;
  gap: 1.35rem;
}

.landing-hero,
.landing-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.2rem;
  align-items: stretch;
}

.landing-hero {
  padding: 1.7rem;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 245, 0.72)),
    url("/serene-garden.svg") center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.landing-hero-copy,
.landing-section-copy,
.landing-feature-list,
.landing-pricing-grid,
.landing-grid,
.landing-proof-row,
.landing-process-grid,
.landing-faq-grid,
.landing-side-stack {
  display: grid;
  gap: 1rem;
}

.landing-hero-copy h1,
.landing-story h2,
.landing-pricing h2,
.landing-process h2,
.landing-faq h2,
.landing-final-cta h2,
.landing-proof-card h2 {
  margin: 0;
}

.landing-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.landing-wordmark {
  width: auto;
  height: 52px;
  display: block;
}

.landing-kicker-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(31, 107, 85, 0.08);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.landing-hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.landing-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.landing-actions,
.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.landing-trust {
  color: var(--muted);
  font-size: 0.95rem;
}

.landing-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.landing-stat-pill {
  padding: 0.85rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 48, 40, 0.08);
  box-shadow: 0 10px 28px rgba(47, 63, 55, 0.06);
}

.landing-stat-pill strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.landing-stat-pill span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-hero-art {
  display: grid;
  justify-items: stretch;
  gap: 0.9rem;
}

.landing-hero-image {
  width: min(100%, 470px);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(47, 63, 55, 0.12));
}

.landing-hero-image-photo {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  filter: drop-shadow(0 20px 34px rgba(47, 63, 55, 0.14));
}

.landing-visual-frame {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 0.9rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(160deg, rgba(232, 241, 233, 0.92), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.landing-visual-caption {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 48, 40, 0.08);
}

.landing-visual-caption strong {
  display: block;
}

.landing-visual-caption p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-grid,
.landing-proof-row,
.landing-pricing-grid,
.landing-process-grid,
.landing-faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card,
.landing-proof-card,
.landing-mini-card,
.landing-price-card,
.landing-contact-card,
.landing-process-card,
.landing-faq-card,
.landing-feature-panel {
  border-radius: 26px;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.landing-card h2,
.landing-proof-card h2,
.landing-mini-card h3,
.landing-price-card h3,
.landing-contact-card h3,
.landing-process-card h3,
.landing-faq-card h3,
.landing-feature-panel h3 {
  margin-top: 0;
}

.landing-card p,
.landing-proof-card p,
.landing-mini-card p,
.landing-price-card p,
.landing-contact-card p,
.landing-process-card p,
.landing-faq-card p,
.landing-feature-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.landing-proof-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 244, 0.84));
}

.landing-proof-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-story-spotlight {
  padding: 1.35rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 246, 242, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.landing-highlight-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.landing-highlight-item {
  padding-left: 1rem;
  border-left: 3px solid rgba(31, 107, 85, 0.18);
}

.landing-highlight-item strong {
  display: block;
  margin-bottom: 0.22rem;
}

.landing-highlight-item p {
  margin: 0;
  color: var(--muted);
}

.landing-feature-column {
  display: grid;
}

.landing-feature-panel {
  background: linear-gradient(180deg, rgba(31, 107, 85, 0.08), rgba(255, 255, 255, 0.92));
}

.landing-pricing {
  display: grid;
  gap: 1rem;
}

.landing-pricing-premium {
  padding: 1.4rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.94), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.landing-pricing-grid-premium {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.landing-price-card strong {
  display: block;
  font-size: 2.2rem;
  margin: 0.25rem 0 0.45rem;
}

.landing-price-card strong span {
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 0.2rem;
}

.landing-price-card-featured {
  background: linear-gradient(180deg, rgba(31, 107, 85, 0.14), rgba(255, 255, 255, 0.92));
  position: relative;
  transform: translateY(-0.15rem);
}

.landing-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.landing-list li + li {
  margin-top: 0.45rem;
}

.landing-story-alt {
  align-items: start;
}

.landing-story-wide {
  padding: 1.35rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 249, 247, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.landing-side-stack {
  align-content: start;
}

.landing-process,
.landing-faq {
  display: grid;
  gap: 1rem;
}

.landing-section-copy-centered {
  justify-items: center;
  text-align: center;
}

.landing-section-copy-centered p:last-child {
  max-width: 66ch;
}

.landing-process-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: rgba(31, 107, 85, 0.1);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.landing-final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(23, 58, 48, 0.96), rgba(31, 107, 85, 0.9));
  color: #f7f4ee;
  box-shadow: var(--shadow);
}

.landing-final-cta p,
.landing-final-cta .eyebrow,
.landing-final-cta a {
  color: inherit;
}

.landing-final-cta .button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 245, 237, 0.88) 0%, rgba(248, 245, 237, 0.4) 42%, rgba(248, 245, 237, 0.08) 100%),
    url("/botanical-corner.svg") right -3.5rem bottom -3rem / 320px no-repeat;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 0.72rem;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.signal-grid,
.dashboard-grid,
.focus-layout,
.side-stack,
.grid,
.smart-grid,
.quadrant-grid {
  display: grid;
  gap: 1rem;
}

.signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.signal {
  border-radius: 20px;
  padding: 1rem 1.1rem;
}

.signal h2,
.signal strong {
  margin: 0;
}

.signal strong {
  display: block;
  font-size: 1.7rem;
  margin-top: 0.2rem;
}

.signal-red {
  background: linear-gradient(135deg, rgba(217, 74, 56, 0.12), rgba(255, 255, 255, 0.94));
}

.signal-orange {
  background: linear-gradient(135deg, rgba(241, 153, 45, 0.12), rgba(255, 255, 255, 0.94));
}

.signal-green {
  background: linear-gradient(135deg, rgba(63, 154, 74, 0.12), rgba(255, 255, 255, 0.94));
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

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

.focus-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  align-items: start;
  margin-bottom: 1.5rem;
}

.side-stack {
  align-items: start;
}

.panel {
  border-radius: 24px;
  padding: 1.15rem;
}

.panel-main {
  padding: 1.25rem;
}

.panel-compact {
  padding: 1rem 1.05rem;
}

.panel-header,
.manage-row,
.todo-row,
.timeline-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.inline-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.link-button {
  background: transparent;
  color: var(--accent);
  padding: 0;
}

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

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 107, 85, 0.12);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #76bd86 0%, #1f6b55 100%);
}

.todo-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.todo-stack,
.timeline-stack {
  gap: 0.3rem;
}

.todo-row.done .todo-copy h3,
.todo-row.done .todo-copy p {
  text-decoration: line-through;
  opacity: 0.65;
}

.todo-empty {
  margin: 0;
  color: var(--muted);
}

.checkbox-button {
  width: 34px;
  height: 34px;
  background: rgba(31, 107, 85, 0.12);
  color: var(--accent);
  font-weight: 800;
}

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

.quadrant-cell {
  border-radius: 18px;
  padding: 0.95rem;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.64);
}

.quadrant-list {
  display: grid;
  gap: 0.7rem;
}

.quadrant-item-card {
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  cursor: grab;
}

.quadrant-item-card:active {
  cursor: grabbing;
}

.quadrant-item-card.dragging {
  opacity: 0.55;
}

.quadrant-item-copy strong {
  display: block;
}

.drop-zone.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  background: rgba(216, 234, 223, 0.45);
}

.quadrant-empty {
  margin: 0;
}

.chain-card {
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 243, 0.82));
  box-shadow: 0 10px 28px rgba(47, 63, 55, 0.08);
}

.accordion-card {
  padding: 0;
  overflow: hidden;
}

.accordion-card summary {
  list-style: none;
}

.accordion-card summary::-webkit-details-marker {
  display: none;
}

.accordion-summary {
  margin-top: 0;
  border-radius: 0;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.accordion-body {
  padding: 0 1rem 1rem;
}

.accordion-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accordion-count {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.accordion-icon {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.accordion-card[open] .accordion-icon {
  transform: rotate(225deg);
}

.done-accordion {
  margin-top: 0.6rem;
  border-radius: 18px;
  background: rgba(238, 243, 240, 0.88);
  border: 1px solid var(--line);
  box-shadow: none;
}

.done-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.done-summary h3 {
  margin: 0 0 0.2rem;
}

.done-body {
  padding-top: 0;
}

.nested-completed-accordion,
.manage-completed-accordion,
.completed-goal-card {
  margin-top: 0.8rem;
}

.short-goal-accordion {
  margin-top: 0.2rem;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.short-goal-summary {
  padding: 0;
}

.short-goal-summary .accordion-meta {
  justify-content: flex-end;
}

.short-goal-body {
  padding: 0.75rem 0 0;
}

.chain-branch-completed {
  margin-left: 0;
  padding-left: 0;
}

.chain-branch-completed::before {
  display: none;
}

.chain-branch,
.chain-leaf {
  position: relative;
  margin-left: 1.4rem;
  padding-left: 1.1rem;
}

.chain-branch::before,
.chain-leaf::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.2rem;
  bottom: 0.7rem;
  width: 2px;
  background: rgba(31, 107, 85, 0.18);
}

.chain-branch::after,
.chain-leaf::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.8rem;
  height: 2px;
  background: rgba(31, 107, 85, 0.18);
}

.chain-level {
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.chain-long {
  background: linear-gradient(135deg, rgba(31, 107, 85, 0.12), rgba(255, 255, 255, 0.95));
}

.chain-short {
  background: linear-gradient(135deg, rgba(241, 153, 45, 0.1), rgba(255, 255, 255, 0.95));
}

.chain-todo {
  background: linear-gradient(135deg, rgba(98, 144, 208, 0.09), rgba(255, 255, 255, 0.95));
}

.chain-done {
  opacity: 0.72;
}

.chain-copy h3,
.chain-copy h4,
.chain-copy h5 {
  margin: 0.2rem 0;
}

.chain-copy p {
  margin: 0.2rem 0 0;
}

.chain-tag {
  display: inline-block;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--accent);
}

.chain-progress {
  min-width: 190px;
  display: grid;
  gap: 0.3rem;
  justify-items: end;
}

.chain-progress input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.chain-empty {
  margin-top: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line);
}

.chain-empty-nested {
  margin-left: 1.4rem;
}

.manage-list {
  display: grid;
  gap: 0.55rem;
}

.manage-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.manage-row p {
  margin: 0.25rem 0 0;
}

.admin-user-row {
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-head {
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 0.35rem;
}

.calendar-cell {
  min-height: 100px;
  border-radius: 14px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.calendar-cell.empty {
  background: transparent;
  border-style: dashed;
}

.calendar-list,
.mini-list {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  margin: 0.18rem 0.18rem 0 0;
}

.chip-today {
  background: rgba(217, 74, 56, 0.16);
  color: var(--today);
}

.chip-week {
  background: rgba(241, 153, 45, 0.18);
  color: #b26b13;
}

.chip-month {
  background: rgba(63, 154, 74, 0.16);
  color: var(--month);
}

.timeline-row {
  border-left: 4px solid transparent;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.schedule-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.schedule-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.schedule-nav-row,
.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.schedule-tab {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 107, 85, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.schedule-tab.active {
  background: var(--accent);
  color: #fff;
}

.schedule-window-copy {
  text-align: right;
}

.schedule-layout {
  margin-top: 0;
}

.schedule-calendar-panel {
  margin-bottom: 1rem;
}

.schedule-calendar-grid {
  align-items: stretch;
}

.schedule-calendar-cell {
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.schedule-calendar-cell.today {
  background: linear-gradient(180deg, rgba(216, 234, 223, 0.58), rgba(255, 255, 255, 0.84));
}

.schedule-calendar-date {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.schedule-calendar-date strong {
  font-size: 1.05rem;
}

.schedule-calendar-date span {
  color: var(--muted);
  font-size: 0.82rem;
}

.schedule-calendar-list {
  display: grid;
  gap: 0.45rem;
}

.schedule-calendar-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  background: rgba(31, 107, 85, 0.08);
}

.schedule-calendar-item strong {
  font-size: 0.78rem;
  color: var(--accent);
}

.schedule-calendar-item span {
  font-size: 0.84rem;
}

.schedule-day-stack {
  gap: 1.15rem;
}

.schedule-day-card {
  border-radius: 22px;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.schedule-day-card.today {
  background: linear-gradient(180deg, rgba(216, 234, 223, 0.58), rgba(255, 255, 255, 0.8));
}

.schedule-day-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.schedule-day-header h3,
.schedule-entry-copy h4 {
  margin: 0;
}

.schedule-entry-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.schedule-entry-time {
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
}

.schedule-entry-copy {
  display: grid;
  gap: 0.4rem;
}

.schedule-entry-copy p,
.schedule-tips p {
  margin: 0;
}

.schedule-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.schedule-kind-plan {
  border-left: 4px solid #6c9b81;
}

.schedule-kind-focus {
  border-left: 4px solid #1f6b55;
}

.schedule-kind-meeting {
  border-left: 4px solid #456ea6;
}

.schedule-kind-block {
  border-left: 4px solid #b26b13;
}

.schedule-kind-reminder {
  border-left: 4px solid #b73b2d;
}

.schedule-all-day {
  align-self: end;
  padding-bottom: 0.35rem;
}

.reflection-layout {
  margin-top: 0;
}

.reflection-form,
.reflection-week-grid {
  margin-top: 1rem;
}

.reflection-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
}

.reflection-insights-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1rem;
}

.reflection-day-card,
.reflection-win-card {
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.reflection-day-card.today {
  background: linear-gradient(180deg, rgba(216, 234, 223, 0.6), rgba(255, 255, 255, 0.85));
}

.reflection-day-card p,
.reflection-win-card p {
  margin: 0.35rem 0 0;
}

.reflection-gratitude {
  padding-top: 0.15rem;
  color: #1f6b55;
  font-style: italic;
}

.reflection-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
  min-height: 240px;
}

.reflection-chart-column {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.reflection-bars {
  height: 180px;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.15rem;
}

.reflection-bar {
  width: 20px;
  min-height: 6px;
  border-radius: 999px 999px 6px 6px;
}

.reflection-bar-mood {
  background: linear-gradient(180deg, #82b89b, #1f6b55);
}

.reflection-bar-completion {
  background: linear-gradient(180deg, #f1c36b, #b26b13);
}

.reflection-summary-text {
  margin: 0;
  line-height: 1.65;
}

.insights-layout,
.insights-grid,
.insights-pattern-grid,
.insights-stuck-grid,
.insights-summary-grid {
  display: grid;
  gap: 1rem;
}

.insights-layout {
  margin-top: 0;
}

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

.insight-stat-card {
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.insight-stat-card strong,
.insight-pattern-row strong,
.insight-stuck-card h3 {
  display: block;
}

.insight-stat-card p,
.insight-pattern-row p,
.insight-stuck-card p,
.insight-term-card p {
  margin: 0.35rem 0 0;
}

.insights-grid {
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 1rem;
}

.insight-stack {
  display: grid;
  gap: 0.85rem;
}

.insight-mix-list,
.insight-term-list {
  display: grid;
  gap: 0.7rem;
}

.insight-mix-row,
.insight-pattern-row {
  display: grid;
  gap: 0.45rem;
}

.insight-mix-meta,
.insight-pattern-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.insight-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(26, 37, 31, 0.08);
}

.insight-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #82b89b, #1f6b55);
}

.insight-progress-bar-done {
  background: linear-gradient(90deg, #82b89b, #1f6b55);
}

.insight-progress-bar-partial {
  background: linear-gradient(90deg, #f1c36b, #b26b13);
}

.insight-progress-bar-carried {
  background: linear-gradient(90deg, #d8907f, #b73b2d);
}

.insight-progress-bar-active {
  background: linear-gradient(90deg, #98adc2, #456ea6);
}

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

.insight-term-list {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.insight-term-card,
.insight-stuck-card {
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

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

.insight-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.micro-goal-layout {
  margin-top: 0;
}

.micro-goal-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.micro-goal-card-done h3,
.micro-goal-card-done p {
  text-decoration: line-through;
  opacity: 0.72;
}

.micro-goal-copy {
  display: grid;
  gap: 0.35rem;
}

.micro-goal-copy h3,
.micro-goal-copy p {
  margin: 0;
}

.todo-history-card {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.urgency-today {
  border-left-color: var(--today);
}

.urgency-week {
  border-left-color: var(--week);
}

.urgency-month {
  border-left-color: var(--month);
}

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

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

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.weekday-picker {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.weekday-picker legend {
  padding: 0 0.4rem;
  font-weight: 700;
}

.weekday-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.weekday-option {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(244, 239, 230, 0.2), rgba(244, 239, 230, 0.56)),
      url("/serene-garden.svg") center top / auto 100% no-repeat;
    opacity: 0.58;
  }

  .hero-card::after {
    background:
      linear-gradient(180deg, rgba(248, 245, 237, 0.92), rgba(248, 245, 237, 0.45)),
      url("/botanical-corner.svg") right -5rem bottom -2rem / 240px no-repeat;
  }

  .signal-grid,
  .dashboard-grid,
  .focus-layout,
  .landing-hero,
  .landing-story,
  .landing-grid,
  .landing-proof-row,
  .landing-pricing-grid,
  .landing-process-grid,
  .landing-faq-grid,
  .insights-grid,
  .insights-pattern-grid,
  .insights-stuck-grid,
  .insights-summary-grid,
  .reflection-insights-grid,
  .schedule-toolbar,
  .grid.two,
  .grid.three,
  .smart-grid,
  .quadrant-grid,
  .hero-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar,
  .topbar-actions,
  .reminder-card,
  .reminder-toolbar,
  .landing-actions,
  .landing-trust,
  .landing-final-cta,
  .panel-header,
  .calendar-nav,
  .schedule-nav-row,
  .schedule-day-header,
  .manage-row,
  .chain-level,
  .accordion-meta,
  .schedule-entry-card,
  .todo-row,
  .timeline-row {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-window-copy {
    text-align: left;
  }

  .schedule-entry-card {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    align-items: stretch;
  }

  .topbar-actions {
    gap: 0.75rem;
  }

  .topbar-actions .button,
  .topbar-actions form,
  .schedule-toolbar .button,
  .schedule-nav-row .button,
  .calendar-nav .button,
  .hero-actions .button {
    width: 100%;
  }

  .topbar-actions form {
    display: contents;
  }

  .topbar-actions .user-badge,
  .schedule-window-copy {
    text-align: left;
  }

  .hero-card,
  .panel,
  .auth-card,
  .landing-hero,
  .landing-story-spotlight,
  .landing-story-wide,
  .landing-pricing-premium,
  .landing-card,
  .landing-proof-card,
  .landing-mini-card,
  .landing-price-card,
  .landing-contact-card,
  .landing-process-card,
  .landing-faq-card,
  .landing-feature-panel {
    padding: 1.1rem;
  }

  .chain-branch,
  .chain-leaf {
    margin-left: 0.9rem;
    padding-left: 0.8rem;
  }

  .chain-level,
  .schedule-day-card,
  .micro-goal-card,
  .insight-stat-card,
  .insight-term-card,
  .insight-stuck-card,
  .reflection-day-card,
  .reflection-win-card {
    padding: 0.85rem;
  }

  .schedule-scope-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .schedule-tab {
    white-space: nowrap;
  }

  .reflection-chart {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    padding-bottom: 0.35rem;
  }

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

  .landing-hero-art {
    justify-items: center;
  }

  .landing-hero-copy h1 {
    max-width: none;
  }

  .landing-stat-strip,
  .landing-pricing-grid-premium {
    grid-template-columns: 1fr;
  }

  .chain-progress {
    min-width: 0;
    justify-items: stretch;
  }
}

@media (max-width: 640px) {
  .topbar,
  .page-shell,
  .auth-shell,
  .reminder-stack,
  .landing-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .brand {
    font-size: 1.35rem;
  }

  .brand-logo {
    height: 40px;
  }

  .tagline {
    margin: 0.35rem 0 0;
  }

  .hero-card h1 {
    font-size: 1.65rem;
    line-height: 1.15;
  }

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

  .inline-actions {
    flex-wrap: wrap;
  }

  .inline-actions .button,
  .inline-actions .button-secondary,
  .inline-actions .link-button {
    width: 100%;
    justify-content: center;
  }

  .todo-row,
  .timeline-row,
  .manage-row,
  .chain-level {
    gap: 0.7rem;
  }

  .accordion-summary,
  .accordion-body,
  .done-summary,
  .done-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .calendar-grid,
  .weekday-picker-grid,
  .insights-summary-grid,
  .landing-grid,
  .landing-proof-row,
  .landing-pricing-grid,
  .landing-process-grid,
  .landing-faq-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-copy h1,
  .landing-final-cta h2 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .landing-wordmark {
    height: 46px;
  }

  .landing-final-cta .landing-actions {
    width: 100%;
  }

  .landing-final-cta .button,
  .landing-final-cta .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .calendar-cell,
  .schedule-calendar-cell {
    min-height: 0;
  }

  .schedule-calendar-grid {
    grid-template-columns: 1fr;
  }

  .schedule-calendar-item strong,
  .schedule-calendar-item span {
    font-size: 0.85rem;
  }

  .reflection-week-grid,
  .insight-term-list {
    grid-template-columns: 1fr;
  }

  .reminder-toast-stack {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }
}
