/* TwoDo — warm couples theme (coral / peach / blush) */

:root,
[data-bs-theme="default"],
[data-bs-theme="light"] {
  --td-coral: #ff5a3c;
  --td-coral-deep: #e8462a;
  --td-peach: #ffb089;
  --td-blush: #ffd6e0;
  --td-cream: #fff6f1;
  --td-ink: #2a1f1c;
  --td-muted: #7a6560;
  --td-soft-pink: #ffe8ef;
  --td-soft-amber: #fff0e0;
  --td-soft-mint: #e8f7f0;
  --td-radius: 1.25rem;
  --td-radius-sm: 0.9rem;
  --td-shadow: 0 12px 32px rgba(232, 70, 42, 0.12);
  --td-shadow-soft: 0 8px 24px rgba(42, 31, 28, 0.06);
  --td-font-display: "Fraunces", Georgia, serif;
  --td-font-body: "Nunito", system-ui, sans-serif;

  --bs-primary: #ff5a3c;
  --bs-primary-rgb: 255, 90, 60;
  --bs-link-color: #e8462a;
  --bs-link-hover-color: #c93720;
  --bs-link-color-rgb: 232, 70, 42;
  --bs-body-color: #2a1f1c;
  --bs-body-bg: #fff6f1;
  --bs-border-radius: 0.9rem;
  --bs-border-radius-lg: 1.25rem;
  --bs-font-sans-serif: "Nunito", system-ui, sans-serif;
}

/* Beat Front theme gold links (theme.min loads after via hs-appearance) */
html[data-bs-theme="light"],
html[data-bs-theme="default"],
html:not([data-bs-theme="dark"]) {
  --bs-primary: #ff5a3c;
  --bs-primary-rgb: 255, 90, 60;
  --bs-link-color: #e8462a;
  --bs-link-hover-color: #c93720;
}

body.twodo-auth a:not(.btn),
body.twodo-app a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
  color: var(--td-coral-deep);
}

body.twodo-auth a:not(.btn):hover,
body.twodo-auth a:not(.btn):focus,
body.twodo-app a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover,
body.twodo-app a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):focus {
  color: var(--td-coral);
}

body.twodo-auth .form-label-link {
  color: var(--td-coral-deep) !important;
}

body.twodo-auth .form-label-link:hover,
body.twodo-auth .form-label-link:focus {
  color: var(--td-coral) !important;
}

body.twodo-app {
  font-family: var(--td-font-body);
  color: var(--td-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 176, 137, 0.45), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 214, 224, 0.55), transparent 50%),
    linear-gradient(180deg, #fff8f4 0%, #fff6f1 40%, #ffefe8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Solid chrome so the iOS status bar (black-translucent) matches the nav — no black bleed */
body.twodo-app {
  --td-chrome: #fff8f4;
}

body.twodo-app .navbar-fixed,
body.twodo-app .navbar-vertical-aside {
  background: var(--td-chrome) !important;
  backdrop-filter: none;
  border-color: rgba(255, 90, 60, 0.08) !important;
  box-shadow: var(--td-shadow-soft);
}

/* Home-screen / iOS PWA: extend the fixed header under the transparent status bar */
@supports (padding: env(safe-area-inset-top)) {
  html {
    background-color: var(--td-chrome, #fff8f4);
  }

  body.twodo-app .navbar-fixed.navbar-height {
    height: calc(3.875rem + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  body.twodo-app .navbar-fixed ~ .main {
    padding-top: calc(3.875rem + env(safe-area-inset-top));
  }

  body.twodo-app {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

body.twodo-app .navbar-brand-logo,
body.twodo-app .navbar-brand-logo-mini {
  filter: none;
}

body.twodo-app .navbar-brand-logo {
  display: block;
  width: auto;
  min-width: 9.5rem;
  max-width: none;
}

body.twodo-app .navbar-brand-logo-mini {
  width: auto;
  min-width: 0;
  max-width: none;
}

/* Brand lockup — matches SVG preview (italic Two + upright Do) */
.td-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1;
  text-decoration: none !important;
}

.td-brand-mark {
  display: block;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.td-brand-sm .td-brand-mark {
  width: 1.85rem;
  height: 1.85rem;
}

.td-brand-lg .td-brand-mark {
  width: 3.25rem;
  height: 3.25rem;
}

.td-brand-mini .td-brand-mark {
  width: 1.9rem;
  height: 1.9rem;
}

.td-brand-wordmark {
  font-family: var(--td-font-display);
  font-weight: 700;
  font-style: normal;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--td-coral-deep);
  white-space: nowrap;
}

.td-brand-sm .td-brand-wordmark {
  font-size: 1.35rem;
}

.td-brand-lg .td-brand-wordmark {
  font-size: 2.15rem;
}

.td-brand-wordmark em {
  font-family: var(--td-font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--td-coral);
  margin-right: 0;
}

/* Light lockup — coral hero panel only */
.td-brand-light .td-brand-wordmark {
  color: #ffe5d4;
}

.td-brand-light .td-brand-wordmark em {
  color: #ffffff;
}

/* App chrome in dark mode (not auth) */
[data-bs-theme="dark"] body.twodo-app .td-brand:not(.td-brand-light) .td-brand-wordmark {
  color: #ffe5d4;
}

[data-bs-theme="dark"] body.twodo-app .td-brand:not(.td-brand-light) .td-brand-wordmark em {
  color: #ffffff;
}

/*
 * Auth form / waiting lockup — always coral Fraunces (cream or espresso panels).
 * Never use the white/peach “light” lockup here; it disappears on cream.
 */
body.twodo-auth .form-panel .td-brand .td-brand-wordmark,
body.twodo-auth .td-brand-wrap .td-brand .td-brand-wordmark,
body.twodo-auth .td-brand-auth .td-brand-wordmark {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #e8462a !important;
  -webkit-text-fill-color: #e8462a !important;
  opacity: 1 !important;
}

body.twodo-auth .form-panel .td-brand .td-brand-wordmark em,
body.twodo-auth .td-brand-wrap .td-brand .td-brand-wordmark em,
body.twodo-auth .td-brand-auth .td-brand-wordmark em {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: #ff5a3c !important;
  -webkit-text-fill-color: #ff5a3c !important;
  opacity: 1 !important;
}

/* Hero panel keeps the light lockup on coral */
body.twodo-auth .auth-hero .td-brand-light .td-brand-wordmark {
  color: #ffe5d4 !important;
  -webkit-text-fill-color: #ffe5d4 !important;
}

body.twodo-auth .auth-hero .td-brand-light .td-brand-wordmark em {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.navbar-brand .td-brand {
  margin: 0;
}

.navbar-brand-logo .td-brand,
.navbar-brand-logo-mini .td-brand {
  display: inline-flex;
}

body.twodo-app .main {
  background: transparent !important;
}

body.twodo-app .content {
  padding-bottom: 3rem;
}

body.twodo-app h1,
body.twodo-app h2,
body.twodo-app .page-header-title,
body.twodo-app .td-display {
  font-family: var(--td-font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--td-ink);
}

body.twodo-app .page-header-title {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
}

body.twodo-app .page-header-text,
body.twodo-app .text-muted {
  color: var(--td-muted) !important;
}

body.twodo-app .td-accent {
  color: var(--td-coral);
  font-style: italic;
}

body.twodo-app .card {
  border: 0;
  border-radius: var(--td-radius);
  box-shadow: var(--td-shadow-soft);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.twodo-app .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--td-shadow);
}

body.twodo-app .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(42, 31, 28, 0.06);
}

body.twodo-app .btn-primary {
  --bs-btn-bg: var(--td-coral);
  --bs-btn-border-color: var(--td-coral);
  --bs-btn-hover-bg: var(--td-coral-deep);
  --bs-btn-hover-border-color: var(--td-coral-deep);
  --bs-btn-active-bg: var(--td-coral-deep);
  --bs-btn-active-border-color: var(--td-coral-deep);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 90, 60, 0.28);
}

body.twodo-app .btn-white,
body.twodo-app .btn-outline-secondary,
body.twodo-app .btn-ghost-secondary {
  border-radius: 999px;
  font-weight: 650;
}

body.twodo-app .btn-outline-secondary {
  --bs-btn-color: var(--td-ink);
  --bs-btn-border-color: rgba(42, 31, 28, 0.12);
  --bs-btn-hover-bg: var(--td-soft-amber);
  --bs-btn-hover-border-color: rgba(255, 90, 60, 0.25);
  --bs-btn-hover-color: var(--td-ink);
}

body.twodo-app .btn-success {
  border-radius: 999px;
}

body.twodo-app .form-control,
body.twodo-app .form-select,
body.twodo-app .ts-control {
  border-radius: var(--td-radius-sm) !important;
  border-color: rgba(42, 31, 28, 0.1);
  background: #fff;
}

body.twodo-app .form-control:focus,
body.twodo-app .form-select:focus {
  border-color: var(--td-peach);
  box-shadow: 0 0 0 0.25rem rgba(255, 90, 60, 0.15);
}

body.twodo-app .nav-pills .nav-link {
  border-radius: 1rem;
  color: var(--td-muted);
  font-weight: 650;
  margin-bottom: 0.25rem;
}

body.twodo-app .nav-pills .nav-link .nav-icon {
  color: var(--td-coral);
  opacity: 0.85;
}

body.twodo-app .nav-pills .nav-link.active {
  background: linear-gradient(135deg, rgba(255, 90, 60, 0.14), rgba(255, 176, 137, 0.22));
  color: var(--td-coral-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 60, 0.12);
}

body.twodo-app .nav-pills .nav-link.active .nav-icon {
  opacity: 1;
}

body.twodo-app .avatar-initials {
  background: linear-gradient(135deg, var(--td-coral), var(--td-peach)) !important;
  color: #fff !important;
  font-weight: 700;
}

body.twodo-app .table thead th {
  background: rgba(255, 214, 224, 0.35);
  color: var(--td-muted);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  border: 0;
}

body.twodo-app .alert {
  border: 0;
  border-radius: var(--td-radius-sm);
}

body.twodo-app .alert-soft-warning {
  background: var(--td-soft-amber);
  color: var(--td-ink);
}

body.twodo-app .alert-soft-success {
  background: var(--td-soft-mint);
}

body.twodo-app .badge.bg-soft-success {
  background: var(--td-soft-mint) !important;
}

/* Home tiles */
.td-hero {
  position: relative;
  border-radius: calc(var(--td-radius) + 0.25rem);
  padding: 1.75rem 1.75rem 1.5rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 240, 244, 0.92) 45%, rgba(255, 228, 220, 0.88) 100%),
    radial-gradient(circle at 96% 100%, rgba(255, 90, 60, 0.42), transparent 52%),
    radial-gradient(circle at 78% 92%, rgba(255, 140, 105, 0.28), transparent 46%);
  box-shadow: var(--td-shadow);
  overflow: hidden;
  animation: td-rise 0.55s ease both;
}

.td-hero::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -2.75rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 60, 0.34), rgba(255, 176, 137, 0.16) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.td-hero-content {
  position: relative;
  z-index: 1;
}

.td-hero-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 0;
  position: relative;
}

.td-hero-has-art .td-hero-actions {
  min-height: 6.5rem;
  padding-right: min(42%, 15rem);
}

.td-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 auto;
  min-width: 0;
}

.td-hero-art {
  position: absolute;
  right: -1.75rem;
  bottom: -1.5rem;
  width: min(46%, 16rem);
  margin: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  line-height: 0;
}

.td-hero-art img {
  display: block;
  width: 100%;
  max-height: 13.5rem;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 10px 18px rgba(42, 31, 28, 0.12));
}

@media (max-width: 575.98px) {
  .td-hero-has-art .td-hero-actions {
    min-height: 5.25rem;
    padding-right: 7rem;
  }

  .td-hero-art {
    width: 8rem;
    right: -1rem;
    bottom: -1.5rem;
  }

  .td-hero-art img {
    max-height: 8rem;
  }
}

.td-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--td-coral);
  background: rgba(255, 90, 60, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}

.td-hero-kicker-couple {
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--td-font-display);
  font-weight: 650;
  font-size: 0.95rem;
}

.page-header-title .td-accent {
  font-style: italic;
}

.td-star-picker {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.td-star-btn {
  border: 0;
  background: transparent;
  color: var(--td-peach);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.td-star-btn:hover,
.td-star-btn.is-active {
  color: var(--td-coral);
  transform: scale(1.08);
}

.td-rating-avg {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--td-coral-deep);
}

.td-rating-avg .bi-star-fill {
  color: var(--td-coral);
}

.td-rating-count,
.td-rating-empty {
  color: var(--td-muted);
  font-weight: 600;
}

.td-notif-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--td-coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.td-notif-item {
  white-space: normal;
  border-bottom: 1px solid rgba(255, 90, 60, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.td-notif-unread {
  background: rgba(255, 90, 60, 0.06);
}

.td-nickname-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--td-radius);
  background:
    linear-gradient(135deg, rgba(255, 246, 241, 0.95), rgba(255, 232, 224, 0.88));
  border: 1px solid rgba(255, 90, 60, 0.14);
  box-shadow: var(--td-shadow-soft);
}

.td-nickname-banner-empty {
  background: rgba(255, 255, 255, 0.72);
  border-style: dashed;
}

.td-nickname-banner-label {
  color: var(--td-muted);
  font-size: 0.95rem;
}

.td-nickname-banner-name {
  font-family: var(--td-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  font-style: italic;
  color: var(--td-coral-deep);
  line-height: 1.2;
}

[data-bs-theme="dark"] .td-nickname-banner {
  background: linear-gradient(135deg, rgba(54, 34, 36, 0.95), rgba(42, 30, 27, 0.9));
  border-color: rgba(255, 90, 60, 0.22);
}

[data-bs-theme="dark"] .td-nickname-banner-empty {
  background: rgba(42, 30, 27, 0.65);
}

.td-feed-card {
  border: 0;
  border-radius: var(--td-radius);
  box-shadow: var(--td-shadow-soft);
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.85rem;
}

.td-feed-card .card-body {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.td-feed-corny {
  font-family: var(--td-font-display);
  font-size: 0.95rem;
  color: var(--td-muted);
  margin: 0.35rem 0 0;
}

.td-feed-corny .td-accent {
  color: var(--td-coral);
}

.td-corny-from {
  display: inline-block;
  margin: 0 0.5rem 0.15rem 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 90, 60, 0.1);
  color: var(--td-coral-deep, #e8462a);
  font-family: var(--td-font-sans, inherit);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.page-header-title .td-corny-from {
  display: block;
  width: fit-content;
  margin: 0 0 0.55rem;
}

.td-corny-preview {
  padding: 1.1rem 1.25rem;
  border-radius: var(--td-radius, 1rem);
  background: linear-gradient(180deg, #fff6f1 0%, #ffe8e0 100%);
  border: 1px solid rgba(255, 90, 60, 0.14);
  /* Partner-facing surface: keep light-theme text even in dark mode */
  --td-ink: #2a1f1c;
  --td-coral: #ff5a3c;
  --td-coral-deep: #e8462a;
  --td-muted: #8a7268;
}

.td-corny-preview .text-muted {
  color: var(--td-muted) !important;
}

.td-corny-preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-coral);
  margin-bottom: 0.65rem;
}

.td-corny-preview-text {
  font-family: var(--td-font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--td-ink, #2a1f1c);
  margin: 0;
}

.td-corny-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.td-corny-chip-btn {
  border: 1px solid rgba(255, 90, 60, 0.22);
  background: #fff;
  color: var(--td-coral-deep, #e8462a);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.td-corny-chip-btn:hover {
  background: rgba(255, 90, 60, 0.08);
}

.td-corny-line-card .td-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.td-corny-line-card .td-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(42, 31, 28, 0.06);
  color: var(--td-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.td-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .td-tile-grid {
    grid-template-columns: 1fr;
  }
}

.td-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--td-radius);
  padding: 1.25rem;
  min-height: 0;
  box-shadow: var(--td-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: td-rise 0.6s ease both;
}

.td-tile:nth-child(1) { animation-delay: 0.05s; background: linear-gradient(160deg, #ffe8ef, #fff); }
.td-tile:nth-child(2) { animation-delay: 0.12s; background: linear-gradient(160deg, #fff0e0, #fff); }
.td-tile:nth-child(3) { animation-delay: 0.18s; background: linear-gradient(160deg, #e8f7f0, #fff); }

.td-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--td-shadow);
  color: inherit;
}

.td-tile-main {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  width: 100%;
}

.td-tile-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--td-coral), var(--td-peach));
  box-shadow: 0 8px 18px rgba(255, 90, 60, 0.25);
}

.td-tile:nth-child(2) .td-tile-icon {
  background: linear-gradient(135deg, #ff8a3d, #ffd27a);
}

.td-tile:nth-child(3) .td-tile-icon {
  background: linear-gradient(135deg, #3ecf8e, #8be0c0);
}

.td-tile-copy {
  min-width: 0;
  flex: 1;
}

.td-tile h3 {
  font-family: var(--td-font-display);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  color: var(--td-ink);
}

.td-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 90, 60, 0.1);
  color: var(--td-coral-deep);
}

.td-list-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 60, 0.12);
  color: var(--td-coral);
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.td-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.td-section-title i {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 90, 60, 0.16), rgba(255, 176, 137, 0.28));
  color: var(--td-coral-deep);
}

@keyframes td-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-hero,
  .td-tile,
  body.twodo-app .card {
    animation: none;
    transition: none;
  }
}

/* Auth / waiting */
body.twodo-auth {
  font-family: var(--td-font-body);
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(255, 176, 137, 0.5), transparent 55%),
    radial-gradient(800px 480px at 100% 10%, rgba(255, 214, 224, 0.6), transparent 50%),
    #fff6f1;
}

body.twodo-auth .auth-hero {
  background:
    linear-gradient(155deg, rgba(255, 90, 60, 0.92) 0%, rgba(255, 140, 105, 0.88) 55%, rgba(255, 176, 137, 0.9) 100%) !important;
  min-height: 100vh;
}

body.twodo-auth .btn-primary {
  border-radius: 999px;
  background: var(--td-coral);
  border-color: var(--td-coral);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 90, 60, 0.28);
}

body.twodo-auth h1,
body.twodo-auth h2 {
  font-family: var(--td-font-display);
}

body.twodo-auth .form-control {
  border-radius: 999px;
  padding-inline: 1.1rem;
  border-color: rgba(255, 90, 60, 0.14);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--td-ink);
  box-shadow: none;
}

body.twodo-auth .form-control:focus {
  border-color: rgba(255, 90, 60, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(255, 90, 60, 0.12);
}

/* Password + eye toggle as one pill matching email inputs */
body.twodo-auth .input-group.input-group-merge {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  border: 0.0625rem solid rgba(255, 90, 60, 0.14);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

body.twodo-auth .input-group.input-group-merge:focus-within {
  border-color: rgba(255, 90, 60, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(255, 90, 60, 0.12);
}

body.twodo-auth .input-group.input-group-merge .form-control,
body.twodo-auth .input-group.input-group-merge .form-control:focus {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-right: 0.35rem;
}

body.twodo-auth .input-group.input-group-merge .input-group-text,
body.twodo-auth .input-group.input-group-merge #togglePassword {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--td-muted);
  padding: 0.75rem 1.1rem 0.75rem 0.55rem;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 1;
}

body.twodo-auth .input-group.input-group-merge #togglePassword:hover,
body.twodo-auth .input-group.input-group-merge #togglePassword:focus {
  color: var(--td-coral-deep);
  outline: none;
}

body.twodo-auth .input-group.input-group-merge #togglePassword i {
  font-size: 1.15rem;
}

[data-bs-theme="dark"] body.twodo-auth .form-control,
[data-bs-theme="dark"] body.twodo-auth .input-group.input-group-merge {
  background-color: rgba(36, 28, 25, 0.92);
  border-color: rgba(255, 122, 92, 0.22);
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-auth .input-group.input-group-merge .input-group-text,
[data-bs-theme="dark"] body.twodo-auth .input-group.input-group-merge #togglePassword {
  color: var(--td-muted);
}

/* Filters, empty states, suggestion rows */
.td-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--td-shadow-soft);
}

.td-filters .btn {
  border: 0;
  box-shadow: none;
}

.td-filters .btn-primary {
  box-shadow: 0 6px 16px rgba(255, 90, 60, 0.22);
}

.td-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--td-muted);
}

.td-empty-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--td-coral), var(--td-peach));
  box-shadow: 0 10px 22px rgba(255, 90, 60, 0.22);
}

.td-empty strong {
  display: block;
  font-family: var(--td-font-display);
  font-size: 1.15rem;
  color: var(--td-ink);
  margin-bottom: 0.25rem;
}

.td-row-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.td-row-title .td-list-icon {
  margin-right: 0;
}

.td-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--td-coral);
  margin-bottom: 0.35rem;
}

.td-idea-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(42, 31, 28, 0.06);
}

.td-idea-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.td-idea-item:first-child {
  padding-top: 0;
}

.td-provider-card {
  border-radius: var(--td-radius-sm);
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(160deg, rgba(255, 232, 239, 0.65), #fff);
  border: 1px solid rgba(255, 90, 60, 0.08);
}

.td-provider-card:last-child {
  margin-bottom: 0;
}

.td-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: var(--td-radius-sm);
  padding: 0.95rem 1.1rem;
  background: var(--td-soft-amber);
  color: var(--td-ink);
  margin-bottom: 1.25rem;
}

.td-callout i {
  color: var(--td-coral);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

body.twodo-app .badge.bg-soft-primary {
  background: rgba(255, 90, 60, 0.12) !important;
  color: var(--td-coral-deep) !important;
}

body.twodo-app .list-group-item {
  background: transparent;
  border-color: rgba(42, 31, 28, 0.06);
}

body.twodo-app .breadcrumb-item a {
  color: var(--td-coral);
  font-weight: 650;
}

/* -------------------------------------------------------------------------
   Dark mode — warm espresso + coral (overrides light TwoDo surfaces)
   ------------------------------------------------------------------------- */
[data-bs-theme="dark"] {
  --td-coral: #ff7a5c;
  --td-coral-deep: #ff9a82;
  --td-peach: #ffb089;
  --td-blush: #4a3036;
  --td-cream: #161110;
  --td-ink: #fff3ec;
  --td-muted: #b7a29a;
  --td-soft-pink: #3a2428;
  --td-soft-amber: #3a2c1c;
  --td-soft-mint: #1c332a;
  --td-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --td-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.32);

  --bs-primary: #ff7a5c;
  --bs-primary-rgb: 255, 122, 92;
  --bs-link-color: #ff9a82;
  --bs-link-hover-color: #ffb89f;
  --bs-body-color: #fff3ec;
  --bs-body-bg: #161110;
}

html[data-bs-theme="dark"] {
  --bs-primary: #ff7a5c;
  --bs-primary-rgb: 255, 122, 92;
  --bs-link-color: #ff9a82;
  --bs-link-hover-color: #ffb89f;
}

html[data-bs-theme="dark"] {
  --td-chrome: #2a211e;
  background-color: #2a211e;
}

[data-bs-theme="dark"] body.twodo-app {
  --td-chrome: #2a211e;
  color: var(--td-ink);
  background-color: #2a211e;
  background-image:
    radial-gradient(1000px 560px at 8% -12%, rgba(255, 90, 60, 0.22), transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(255, 140, 105, 0.14), transparent 50%),
    linear-gradient(180deg, #2a211e 0%, #1c1512 42%, #161110 100%);
}

[data-bs-theme="dark"] body.twodo-app .navbar-fixed,
[data-bs-theme="dark"] body.twodo-app .navbar-vertical-aside {
  background: var(--td-chrome) !important;
  backdrop-filter: none;
  border-color: rgba(255, 122, 92, 0.12) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] body.twodo-app .card {
  background: rgba(36, 28, 25, 0.94);
  box-shadow: var(--td-shadow-soft);
}

[data-bs-theme="dark"] body.twodo-app .card-header {
  border-bottom-color: rgba(255, 243, 236, 0.08);
}

[data-bs-theme="dark"] body.twodo-app .form-control,
[data-bs-theme="dark"] body.twodo-app .form-select,
[data-bs-theme="dark"] body.twodo-app .ts-control {
  background: #2a211e !important;
  border-color: rgba(255, 243, 236, 0.2) !important;
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-app .form-control::placeholder {
  color: rgba(183, 162, 154, 0.72);
}

[data-bs-theme="dark"] body.twodo-app .form-label,
[data-bs-theme="dark"] body.twodo-app .form-check-label {
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-app .form-check-input {
  background-color: #2a211e;
  border: 1px solid rgba(255, 243, 236, 0.38);
}

[data-bs-theme="dark"] body.twodo-app .form-check-input:checked {
  background-color: var(--td-coral);
  border-color: var(--td-coral);
}

[data-bs-theme="dark"] body.twodo-app .form-check-input:focus {
  border-color: var(--td-peach);
  box-shadow: 0 0 0 0.25rem rgba(255, 122, 92, 0.28);
}

[data-bs-theme="dark"] body.twodo-app .form-switch .form-check-input {
  background-color: #3a302c;
  border-color: rgba(255, 243, 236, 0.28);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255,243,236,0.75%29'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] body.twodo-app .form-switch .form-check-input:checked {
  background-color: var(--td-coral);
  border-color: var(--td-coral);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] body.twodo-app .form-text {
  color: var(--td-muted);
}

[data-bs-theme="dark"] body.twodo-app .form-control:focus,
[data-bs-theme="dark"] body.twodo-app .form-select:focus {
  border-color: var(--td-peach) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 122, 92, 0.2);
}

[data-bs-theme="dark"] body.twodo-app .btn-white {
  --bs-btn-bg: #2a211e;
  --bs-btn-border-color: rgba(255, 243, 236, 0.12);
  --bs-btn-color: var(--td-ink);
  --bs-btn-hover-bg: #342926;
  --bs-btn-hover-border-color: rgba(255, 122, 92, 0.28);
  --bs-btn-hover-color: #fff;
  background: #2a211e;
  border-color: rgba(255, 243, 236, 0.12);
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-app .btn-outline-secondary {
  --bs-btn-color: var(--td-ink);
  --bs-btn-border-color: rgba(255, 243, 236, 0.16);
  --bs-btn-hover-bg: rgba(255, 122, 92, 0.14);
  --bs-btn-hover-border-color: rgba(255, 122, 92, 0.35);
  --bs-btn-hover-color: #fff;
}

[data-bs-theme="dark"] body.twodo-app .nav-pills .nav-link {
  color: var(--td-muted);
}

[data-bs-theme="dark"] body.twodo-app .nav-pills .nav-link.active {
  background: linear-gradient(135deg, rgba(255, 90, 60, 0.22), rgba(255, 176, 137, 0.16));
  color: #ffd2c4;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 92, 0.22);
}

[data-bs-theme="dark"] body.twodo-app .table thead th {
  background: rgba(255, 122, 92, 0.12);
  color: var(--td-muted);
}

[data-bs-theme="dark"] body.twodo-app .table,
[data-bs-theme="dark"] body.twodo-app .table > :not(caption) > * > * {
  color: var(--td-ink);
  border-color: rgba(255, 243, 236, 0.08);
}

[data-bs-theme="dark"] body.twodo-app .list-group-item {
  border-color: rgba(255, 243, 236, 0.08);
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-app .alert-soft-warning {
  background: var(--td-soft-amber);
  color: #ffe1c8;
}

[data-bs-theme="dark"] body.twodo-app .alert-soft-success {
  background: var(--td-soft-mint);
  color: #d7f5e7;
}

[data-bs-theme="dark"] body.twodo-app .badge.bg-soft-primary {
  background: rgba(255, 122, 92, 0.18) !important;
  color: #ffd2c4 !important;
}

[data-bs-theme="dark"] body.twodo-app .badge.bg-soft-success {
  background: rgba(62, 207, 142, 0.18) !important;
  color: #b8f0d4 !important;
}

[data-bs-theme="dark"] body.twodo-app .dropdown-menu {
  background: #241c19;
  border-color: rgba(255, 243, 236, 0.1);
  box-shadow: var(--td-shadow);
}

[data-bs-theme="dark"] body.twodo-app .dropdown-item {
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-app .dropdown-item:hover,
[data-bs-theme="dark"] body.twodo-app .dropdown-item:focus {
  background: rgba(255, 122, 92, 0.14);
  color: #fff;
}

[data-bs-theme="dark"] .td-hero {
  background:
    linear-gradient(145deg, rgba(42, 30, 27, 0.97) 0%, rgba(48, 32, 30, 0.94) 50%, rgba(54, 34, 36, 0.92) 100%),
    radial-gradient(circle at 96% 100%, rgba(255, 90, 60, 0.4), transparent 52%),
    radial-gradient(circle at 78% 92%, rgba(255, 140, 105, 0.22), transparent 46%);
  box-shadow: var(--td-shadow);
}

[data-bs-theme="dark"] .td-hero::after {
  background: radial-gradient(circle, rgba(255, 90, 60, 0.28), transparent 70%);
}

[data-bs-theme="dark"] .td-hero-kicker {
  color: #ffb89f;
  background: rgba(255, 90, 60, 0.18);
}

[data-bs-theme="dark"] .td-feed-card {
  background: rgba(36, 28, 25, 0.94);
}

[data-bs-theme="dark"] .td-notif-item {
  border-bottom-color: rgba(255, 243, 236, 0.08);
}

[data-bs-theme="dark"] .td-notif-unread {
  background: rgba(255, 90, 60, 0.12);
}

[data-bs-theme="dark"] .td-tile:nth-child(1) {
  background: linear-gradient(160deg, #3a2428, #241c19);
}

[data-bs-theme="dark"] .td-tile:nth-child(2) {
  background: linear-gradient(160deg, #3a2c1c, #241c19);
}

[data-bs-theme="dark"] .td-tile:nth-child(3) {
  background: linear-gradient(160deg, #1c332a, #241c19);
}

[data-bs-theme="dark"] .td-chip {
  background: rgba(255, 90, 60, 0.18);
  color: #ffd2c4;
}

[data-bs-theme="dark"] .td-list-icon {
  background: rgba(255, 90, 60, 0.18);
  color: #ffb89f;
}

[data-bs-theme="dark"] .td-section-title i {
  background: linear-gradient(135deg, rgba(255, 90, 60, 0.24), rgba(255, 176, 137, 0.18));
  color: #ffd2c4;
}

[data-bs-theme="dark"] .td-filters {
  background: rgba(36, 28, 25, 0.9);
}

[data-bs-theme="dark"] .td-callout {
  background: var(--td-soft-amber);
  color: #ffe1c8;
}

[data-bs-theme="dark"] .td-empty strong,
[data-bs-theme="dark"] .td-tile h3 {
  color: var(--td-ink);
}

[data-bs-theme="dark"] .td-card-label {
  color: var(--td-muted);
}

[data-bs-theme="dark"] .td-provider-card {
  background: linear-gradient(160deg, rgba(255, 90, 60, 0.14), rgba(36, 28, 25, 0.96));
  border-color: rgba(255, 122, 92, 0.16);
}

[data-bs-theme="dark"] .td-idea-item {
  border-bottom-color: rgba(255, 243, 236, 0.08);
}

[data-bs-theme="dark"] .td-recipe-card {
  background: rgba(36, 28, 25, 0.94);
  border-color: rgba(255, 122, 92, 0.14);
  box-shadow: var(--td-shadow-soft);
}

[data-bs-theme="dark"] .td-recipe-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .td-recipe-card-media,
[data-bs-theme="dark"] .td-recipe-hero-empty,
[data-bs-theme="dark"] .td-activity-cover-empty,
[data-bs-theme="dark"] .td-recipe-attach-thumb-empty {
  background: rgba(255, 90, 60, 0.12);
}

[data-bs-theme="dark"] .td-recipe-card-title {
  color: var(--td-ink);
}

[data-bs-theme="dark"] .td-recipe-history-item + .td-recipe-history-item {
  border-top-color: rgba(255, 243, 236, 0.08);
}

[data-bs-theme="dark"] body.twodo-app .modal-content {
  background: rgba(36, 28, 25, 0.98);
  border: 1px solid rgba(255, 122, 92, 0.14);
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-app .modal-header,
[data-bs-theme="dark"] body.twodo-app .modal-footer {
  border-color: rgba(255, 243, 236, 0.08);
}

[data-bs-theme="dark"] body.twodo-app .modal-title {
  color: var(--td-ink);
}

[data-bs-theme="dark"] body.twodo-app .btn-close {
  filter: invert(1) grayscale(1) brightness(1.4);
}

[data-bs-theme="dark"] body.twodo-app .modal-content .form-control,
[data-bs-theme="dark"] body.twodo-app .modal-content .form-select {
  background: #322824 !important;
  border-color: rgba(255, 243, 236, 0.28) !important;
}

[data-bs-theme="dark"] body.twodo-app .modal-content .form-check-input {
  background-color: #322824;
  border-color: rgba(255, 243, 236, 0.42);
}

[data-bs-theme="dark"] .td-corny-chip-btn {
  background: rgba(255, 122, 92, 0.12);
  border-color: rgba(255, 122, 92, 0.35);
  color: #ffb89f;
}

[data-bs-theme="dark"] .td-corny-chip-btn code {
  color: #ff9a82;
}

[data-bs-theme="dark"] .td-corny-chip-btn:hover {
  background: rgba(255, 122, 92, 0.22);
  color: #ffd2c4;
}

[data-bs-theme="dark"] body.twodo-auth {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(255, 90, 60, 0.22), transparent 55%),
    radial-gradient(800px 480px at 100% 10%, rgba(255, 140, 105, 0.14), transparent 50%),
    #161110;
}

[data-bs-theme="dark"] body.twodo-auth .form-panel {
  background-color: #241c19 !important;
  color: var(--td-ink);
}

body.twodo-auth .form-panel {
  background: transparent;
}

/* -------------------------------------------------------------------------
   Grand welcome — water bubbles drifting at the edges
   ------------------------------------------------------------------------- */
.content.td-grand-welcome {
  position: relative;
  overflow: clip;
}

.td-hero-grand {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 236, 240, 0.94) 42%, rgba(255, 220, 210, 0.9) 100%),
    radial-gradient(circle at 96% 100%, rgba(255, 90, 60, 0.48), transparent 54%),
    radial-gradient(circle at 12% 18%, rgba(255, 176, 137, 0.22), transparent 40%);
  box-shadow: 0 18px 40px rgba(232, 70, 42, 0.16);
}

.td-hero-grand .page-header-title {
  max-width: 36rem;
}

.td-float-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.td-float-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.75rem;
  height: 8.75rem;
  padding: 1.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.2) 18%, transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(255, 90, 60, 0.12), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(255, 248, 244, 0.42), rgba(186, 230, 253, 0.28) 55%, rgba(255, 176, 137, 0.22) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.35),
    inset 0 -10px 18px rgba(255, 90, 60, 0.08),
    0 10px 24px rgba(42, 31, 28, 0.08);
  color: var(--td-ink);
  font-family: var(--td-font-display);
  font-size: 0.66rem;
  line-height: 1.3;
  font-weight: 650;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: td-water-bubble 11s ease-in-out infinite;
  opacity: 0.9;
}

.td-float-bubble-shine {
  position: absolute;
  top: 16%;
  left: 22%;
  width: 28%;
  height: 16%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transform: rotate(-28deg);
  pointer-events: none;
}

.td-float-bubble-text {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
}

.td-float-bubble .td-accent {
  color: var(--td-coral-deep);
  font-style: italic;
}

/* Spread: edges + one middle bubble */
.td-float-bubble-1 { top: 6%; right: 1%; width: 9.25rem; height: 9.25rem; animation-delay: 0s; }
.td-float-bubble-2 { top: 68%; left: 1%; width: 8.25rem; height: 8.25rem; animation-delay: 1.4s; }
.td-float-bubble-3 {
  top: 42%;
  left: 50%;
  width: 9.75rem;
  height: 9.75rem;
  margin-left: -4.875rem;
  animation-delay: 0.7s;
  z-index: 2;
  opacity: 0.88;
}

/* Fixed single bubble on non-home app pages */
.td-float-stage-page {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.td-float-bubble-page {
  top: auto;
  bottom: 12%;
  right: 1.25rem;
  left: auto;
  width: 9rem;
  height: 9rem;
  margin: 0;
  animation-delay: 0.4s;
}

@keyframes td-water-bubble {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(4px, -14px, 0) scale(1.03);
  }
  50% {
    transform: translate3d(-3px, -22px, 0) scale(1.01);
  }
  75% {
    transform: translate3d(5px, -10px, 0) scale(1.04);
  }
}

[data-bs-theme="dark"] .td-hero-grand {
  background:
    linear-gradient(145deg, rgba(42, 30, 27, 0.97) 0%, rgba(50, 32, 34, 0.95) 50%, rgba(54, 34, 36, 0.94) 100%),
    radial-gradient(circle at 96% 100%, rgba(255, 90, 60, 0.44), transparent 54%),
    radial-gradient(circle at 12% 18%, rgba(255, 140, 105, 0.18), transparent 40%);
}

[data-bs-theme="dark"] .td-float-bubble {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(56, 42, 38, 0.55), rgba(40, 54, 62, 0.45) 60%, rgba(54, 34, 36, 0.55) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--td-ink);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (max-width: 991.98px) {
  .td-float-bubble {
    width: 7.5rem;
    height: 7.5rem;
    font-size: 0.6rem;
    padding: 0.9rem;
  }

  .td-float-bubble-3 {
    width: 8rem;
    height: 8rem;
    margin-left: -4rem;
  }

  .td-float-bubble-page {
    bottom: 10%;
    right: 0.75rem;
    width: 7.75rem;
    height: 7.75rem;
  }
}

@media (max-width: 575.98px) {
  .td-float-bubble {
    width: 6.75rem;
    height: 6.75rem;
    font-size: 0.56rem;
    opacity: 0.86;
  }

  .td-float-bubble-1 { top: 3%; right: 0.2rem; }
  .td-float-bubble-2 { top: auto; bottom: 10%; left: 0.2rem; }
  .td-float-bubble-3 {
    top: 46%;
    width: 7.25rem;
    height: 7.25rem;
    margin-left: -3.625rem;
  }

  .td-float-bubble-page {
    bottom: 8%;
    right: 0.35rem;
    width: 6.75rem;
    height: 6.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-float-bubble {
    animation: none;
  }
}

/* Recipes + activity photos */
.td-recipe-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(42, 31, 28, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42, 31, 28, 0.08);
  color: inherit;
}

.td-recipe-card-media {
  aspect-ratio: 4 / 3;
  background: #fff6f1;
  overflow: hidden;
}

.td-recipe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.td-recipe-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2rem;
  color: #ff5a3c;
}

.td-recipe-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.td-recipe-card-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  margin: 0;
}

.td-recipe-form-cover {
  width: 100%;
  max-width: 16rem;
  max-height: 10rem;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
}

/* Compact recipe/movie selects as removable tags */
.td-compact-select-wrap .ts-wrapper,
.td-compact-select-wrap .ts-control,
.td-recipe-select-wrap .ts-wrapper,
.td-recipe-select-wrap .ts-control {
  min-height: calc(1.5em + 0.875rem + 2px);
}

.td-compact-select-wrap .ts-wrapper .ts-control,
.td-recipe-select-wrap .ts-wrapper .ts-control {
  max-height: none;
  overflow: visible;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
}

.td-compact-select-wrap .ts-wrapper .ts-control > .item,
.td-recipe-select-wrap .ts-wrapper .ts-control > .item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff6f1;
  border: 1px solid rgba(255, 90, 60, 0.22);
  color: #e8462a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.td-compact-select-wrap .ts-wrapper.plugin-remove_button .item .remove,
.td-recipe-select-wrap .ts-wrapper.plugin-remove_button .item .remove {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  margin-left: 0.1rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.td-compact-select-wrap .ts-wrapper.plugin-remove_button .item .remove:hover,
.td-recipe-select-wrap .ts-wrapper.plugin-remove_button .item .remove:hover {
  opacity: 1;
  color: #2a1f1c;
}

.td-compact-select-wrap select.js-recipe-select:not(.tomselected),
.td-compact-select-wrap select.js-movie-select:not(.tomselected),
.td-recipe-select-wrap select.js-recipe-select:not(.tomselected) {
  height: calc(1.5em + 0.875rem + 2px);
  min-height: calc(1.5em + 0.875rem + 2px);
}

.td-recipe-hero,
.td-activity-cover {
  width: 100%;
  border-radius: 1rem;
  display: block;
  object-fit: cover;
  max-height: 18rem;
}

.td-recipe-hero-empty,
.td-activity-cover-empty {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff6f1;
  color: #ff5a3c;
  font-size: 2rem;
  max-height: none;
}

.td-recipe-prose {
  white-space: pre-wrap;
  line-height: 1.55;
}

.td-recipe-history-item + .td-recipe-history-item {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(42, 31, 28, 0.08);
}

.td-masonry {
  column-count: 2;
  column-gap: 0.65rem;
}

@media (min-width: 768px) {
  .td-masonry {
    column-count: 3;
  }
}

.td-masonry-tile {
  break-inside: avoid;
  position: relative;
  margin: 0 0 0.65rem;
}

.td-masonry-item {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.td-masonry-item img {
  width: 100%;
  display: block;
  vertical-align: top;
}

.td-masonry-label {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  max-width: calc(100% - 0.8rem);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(42, 31, 28, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-masonry-delete {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  margin: 0;
}

.td-masonry-delete-btn {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 31, 28, 0.72);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.td-masonry-delete-btn:hover {
  background: #ff5a3c;
  color: #fff;
}

.td-video-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .td-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.td-video-tile {
  min-width: 0;
}

.td-video-player-wrap {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #1c1512;
}

.td-video-player {
  display: block;
  width: 100%;
  max-height: 18rem;
  background: #1c1512;
}

.td-video-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  max-width: calc(100% - 1rem);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(42, 31, 28, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.td-video-delete {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  margin: 0;
}

.td-video-delete-btn {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 31, 28, 0.72);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.td-video-delete-btn:hover {
  background: #ff5a3c;
  color: #fff;
}

.td-video-caption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--td-muted, #8a7268);
}

[data-bs-theme="dark"] .td-video-player-wrap,
[data-bs-theme="dark"] .td-video-player {
  background: #120e0c;
}

.td-activity-page {
  padding-top: 0 !important;
}

.td-activity-shell {
  background: #fff;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .td-activity-shell {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  .td-activity-shell {
    border-radius: var(--td-radius);
    box-shadow: var(--td-shadow-soft);
    border: 1px solid rgba(42, 31, 28, 0.06);
  }
}

.td-activity-hero {
  position: relative;
  min-height: clamp(16rem, 42vw, 22rem);
  color: #fff;
  isolation: isolate;
}

.td-activity-hero-media,
.td-activity-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.td-activity-hero-media {
  background-color: #3a2a26;
  background-image:
    linear-gradient(135deg, rgba(255, 90, 60, 0.35), rgba(42, 31, 28, 0.55)),
    var(--td-activity-hero-image, none);
  background-size: cover;
  background-position: center;
}

.td-activity-shell.no-cover .td-activity-hero-media {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 176, 137, 0.35), transparent 45%),
    linear-gradient(145deg, #5a342c 0%, #2a1f1c 55%, #ff5a3c 160%);
}

.td-activity-hero-overlay {
  background:
    linear-gradient(180deg, rgba(20, 12, 10, 0.28) 0%, rgba(20, 12, 10, 0.18) 35%, rgba(20, 12, 10, 0.72) 100%);
}

.td-activity-hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.1rem 1.35rem;
}

@media (min-width: 768px) {
  .td-activity-hero-inner {
    padding: 1.25rem 1.5rem 1.75rem;
  }
}

.td-activity-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.td-activity-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: rgba(20, 12, 10, 0.42);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.td-activity-hero-chip:hover,
.td-activity-hero-chip:focus {
  background: rgba(20, 12, 10, 0.58);
  color: #fff !important;
}

.td-activity-hero-chip-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.td-activity-hero-chip-icon {
  width: 2.35rem;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}

.td-activity-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.td-activity-hero-title {
  margin: 0;
  font-family: var(--td-font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.td-activity-hero-subtitle {
  margin: 0.55rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.98rem;
  line-height: 1.45;
}

.td-activity-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.td-activity-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 90, 60, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.td-activity-hero-rating .btn {
  border-radius: 999px;
}

.td-activity-hero .td-rating-count,
.td-activity-hero .td-rating-empty {
  color: rgba(255, 255, 255, 0.92) !important;
}

.td-activity-hero .td-rating-summary .js-change-rating {
  color: #ffd0c4 !important;
}

.td-activity-hero .td-rating-summary .js-change-rating:hover {
  color: #fff !important;
}

.td-activity-body {
  background: var(--td-cream);
  padding: 1.25rem 1.1rem 1.75rem;
}

.td-activity-desc {
  margin: 0 0 1.25rem;
  color: var(--td-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .td-activity-body {
    padding: 1.5rem 1.5rem 2rem;
  }
}

.td-activity-body .card {
  border: 1px solid rgba(42, 31, 28, 0.06);
  box-shadow: none;
}

.td-section-edit-panel {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(42, 31, 28, 0.08);
}

.td-activity-body > .td-section-edit-panel {
  padding: 1rem;
  border: 1px solid rgba(42, 31, 28, 0.08);
  border-radius: var(--td-radius-sm);
  background: #fff;
}

.td-recipe-attach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(42, 31, 28, 0.08);
}

.td-recipe-attach-row:last-of-type {
  border-bottom: 0;
}

.td-recipe-attach-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.td-recipe-attach-link:hover {
  color: #ff5a3c;
}

.td-recipe-attach-thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
}

.td-recipe-attach-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff6f1;
  color: #ff5a3c;
}

.td-recipe-attach-panel {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(42, 31, 28, 0.08);
}

.td-section-edit-panel {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(42, 31, 28, 0.08);
}

.td-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 12, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.td-lightbox[hidden] {
  display: none !important;
}

.td-lightbox-img {
  max-width: min(96vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.td-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(96vw, 1100px);
}

.td-lightbox-caption-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  width: min(100%, 32rem);
  margin: 0.7rem 0 0;
  padding: 0 0.5rem;
}

.td-lightbox-caption-wrap[hidden] {
  display: none !important;
}

.td-lightbox-caption {
  margin: 0;
  max-width: calc(100% - 2rem);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--td-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.td-lightbox-caption[hidden] {
  display: none !important;
}

.td-lightbox-caption-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--td-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.td-lightbox-caption-edit:hover,
.td-lightbox-caption-edit:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.td-lightbox-caption-edit i {
  font-size: 0.78rem;
}

.td-lightbox-caption-edit:not(.is-empty) .td-lightbox-caption-hint {
  display: none;
}

.td-lightbox-caption-hint {
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.td-lightbox-caption-edit[hidden] {
  display: none !important;
}

.td-lightbox-caption-form {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  width: min(100%, 28rem);
}

.td-lightbox-caption-form[hidden] {
  display: none !important;
}

.td-lightbox-caption-input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}

.td-lightbox-caption-cancel {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.td-lightbox-caption-cancel:hover {
  color: #fff;
}

.td-lightbox-close,
.td-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.td-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.td-lightbox-prev {
  left: 1rem;
}

.td-lightbox-next {
  right: 1rem;
}

body.td-lightbox-open {
  overflow: hidden;
}
