:root {
  --primary: #9a8e68;
  --primary-strong: #514b2d;
  --primary-soft: rgba(154, 142, 104, 0.12);
  --background: #edf3df;
  --card: #fbf7ef;
  --border: rgba(154, 142, 104, 0.2);
  --border-strong: rgba(154, 142, 104, 0.34);
  --text: #413d29;
  --muted: #666045;
  --muted-soft: #8a8264;
  --success: #7f9a71;
  --warning: #b59b6b;
  --danger: #aa7a6f;
  --surface: #f0f4e5;
  --surface-strong: #fbf7ef;
  --shadow-sm: 0 10px 24px rgba(81, 75, 45, 0.05);
  --shadow-md: 0 18px 40px rgba(81, 75, 45, 0.08);
  --shadow-lg: 0 32px 70px rgba(154, 142, 104, 0.12);
  --radius-card: 18px;
  --radius-button: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --transition-fast: 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(204, 221, 188, 0.42), transparent 28%),
    radial-gradient(circle at top right, rgba(230, 220, 194, 0.6), transparent 26%),
    linear-gradient(180deg, #faf6ef 0%, #f1f5e6 18%, var(--background) 46%, #e5ecd2 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 142, 104, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(81, 75, 45, 0.04) 0 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 20px 20px, 28px 28px;
  mix-blend-mode: soft-light;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-8);
}

.auth-panel,
.card,
.sidebar {
  position: relative;
  overflow: hidden;
}

.auth-panel::before,
.card::before,
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.auth-panel {
  width: min(100%, 560px);
  padding: var(--space-8);
  border-radius: 34px;
  border: 1px solid rgba(154, 142, 104, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(250, 245, 235, 0.98)),
    var(--surface-strong);
  box-shadow: var(--shadow-lg);
}

.landing-panel {
  width: min(100%, 1140px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 28px;
  padding: 30px;
  align-items: stretch;
}

.auth-intro,
.section-heading,
.summary-head {
  display: grid;
  gap: var(--space-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-strong);
}

.auth-panel h2,
.page-title h2,
.section-heading h3,
.summary-head h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-panel h2 {
  font-size: clamp(32px, 6vw, 42px);
  line-height: 1.08;
}

.lead,
.section-heading p,
.page-title p,
.summary-head p,
.sidebar-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-benefits {
  margin: var(--space-8) 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.auth-benefits li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f3eddc, #eaf0d2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-benefits li span {
  font-weight: 600;
}

.auth-benefits li small {
  color: var(--muted);
}

.landing-hero {
  display: grid;
  gap: 20px;
  padding: 12px;
}

.form-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: rgba(255, 252, 246, 0.84);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: 30px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.92), transparent 26%),
    radial-gradient(circle at 80% 25%, rgba(233, 225, 194, 0.8), transparent 24%),
    linear-gradient(145deg, #f7f1e5 0%, #edf3de 52%, #e0e9cb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 18px 44px rgba(81, 75, 45, 0.08);
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(154, 142, 104, 0.16);
}

.hero-orbit-one {
  inset: 42px 110px;
}

.hero-orbit-two {
  inset: 84px 170px;
}

.hero-logo-wrap {
  position: absolute;
  inset: 50%;
  width: 176px;
  height: 176px;
  margin: -88px 0 0 -88px;
  display: grid;
  place-items: center;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(243, 247, 235, 0.96));
  border: 1px solid rgba(154, 142, 104, 0.16);
  box-shadow: 0 16px 40px rgba(81, 75, 45, 0.12);
}

.hero-logo {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.hero-note {
  position: absolute;
  max-width: 220px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: rgba(255, 251, 244, 0.9);
  box-shadow: 0 12px 28px rgba(81, 75, 45, 0.08);
}

.hero-note strong {
  font-size: 15px;
  line-height: 1.2;
}

.hero-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-note-top {
  top: 28px;
  left: 28px;
}

.hero-note-bottom {
  right: 28px;
  bottom: 28px;
}

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

.landing-signup {
  display: grid;
  align-content: center;
}

.signup-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.97), rgba(244, 247, 236, 0.95));
  box-shadow: 0 18px 38px rgba(81, 75, 45, 0.09);
}

.waitlist-panel {
  display: none;
  gap: 20px;
}

.waitlist-panel.active {
  display: grid;
}

.signup-card-head {
  display: grid;
  gap: 8px;
}

.signup-card-head h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.signup-card-head p,
.auth-switch {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-note {
  justify-self: start;
}

.waitlist-success {
  display: none;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(127, 154, 113, 0.28);
  background: linear-gradient(180deg, rgba(245, 251, 240, 0.98), rgba(233, 244, 223, 0.98));
  box-shadow: 0 16px 34px rgba(81, 75, 45, 0.08);
}

.waitlist-success.active {
  display: grid;
  animation: fade-slide-up var(--transition-base);
}

.waitlist-success h3,
.waitlist-success p {
  margin: 0;
}

.waitlist-success h3 {
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.waitlist-success p {
  color: var(--muted);
  line-height: 1.7;
}

.inline-link {
  color: var(--primary-strong);
  font-weight: 700;
}

.privacy-policy {
  padding: 0 var(--space-8) var(--space-8);
}

.privacy-card {
  width: min(100%, 1140px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 24px 28px 30px;
  border-radius: 28px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(239, 244, 229, 0.94));
  box-shadow: 0 16px 34px rgba(81, 75, 45, 0.07);
}

.privacy-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}

.privacy-footnote {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 600;
}

.partner-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: linear-gradient(180deg, rgba(252, 247, 238, 0.92), rgba(237, 243, 223, 0.88));
  box-shadow: 0 12px 28px rgba(81, 75, 45, 0.06);
}

.partner-card h3,
.partner-card p {
  margin: 0;
}

.partner-card h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.partner-card p {
  color: var(--muted);
  line-height: 1.6;
}

.app-shell {
  min-height: 100vh;
  display: block;
}

.app-masthead {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 30;
}

.brand-block {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0;
  margin: 0;
  justify-self: stretch;
  align-self: center;
  width: 100%;
}

.brand-mark {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin-inline: 0 auto;
  border-radius: 30px;
  background: linear-gradient(180deg, #fffaf0, #e7eed5);
  border: 1px solid rgba(154, 142, 104, 0.18);
  padding: 4px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(154, 142, 104, 0.07);
}

.logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.9), rgba(240, 244, 231, 0.92));
  box-shadow: 0 8px 20px rgba(81, 75, 45, 0.035);
}

.masthead-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  align-self: stretch;
  align-items: stretch;
  gap: 10px;
}

.masthead-actions .user-menu-wrap {
  display: flex;
  align-items: stretch;
}

.masthead-actions .secondary-select,
.masthead-actions .icon-button {
  min-height: 100%;
  height: 100%;
}

.visually-hidden-control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tab-button {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-3);
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(154, 142, 104, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 247, 238, 0.76), rgba(241, 246, 231, 0.88));
  color: var(--text);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.tab-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fdf8ef, #f0f4e3);
  border-color: rgba(154, 142, 104, 0.18);
}

.tab-button.active {
  background: linear-gradient(180deg, #fcf6ea, #e8efda);
  border-color: rgba(154, 142, 104, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 14px rgba(154, 142, 104, 0.08);
}

.tab-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0, #eef3e1);
  border: 1px solid rgba(154, 142, 104, 0.12);
  overflow: hidden;
}

.tab-icon-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  filter: saturate(0.96) contrast(1.02);
}

.tab-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.tab-title {
  font-size: 14px;
  font-weight: 600;
}

.tab-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.sidebar-note {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #faf4e8, #edf2df);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.main {
  padding: 40px 48px 56px;
}

.topbar {
  --topbar-progress: 0;
  position: sticky;
  top: var(--space-4);
  z-index: 20;
  display: block;
  margin-bottom: 26px;
  padding: 14px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: linear-gradient(180deg, rgba(253, 248, 239, 0.94), rgba(242, 246, 232, 0.9));
  box-shadow: 0 3px 8px rgba(81, 75, 45, 0.035);
  opacity: calc(1 - var(--topbar-progress));
  transform: translateY(calc(var(--topbar-progress) * -24px)) scale(calc(1 - (var(--topbar-progress) * 0.035)));
  filter: blur(calc(var(--topbar-progress) * 5px));
  transition:
    opacity 180ms linear,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
}

.topbar.topbar-dissolved {
  pointer-events: none;
  visibility: hidden;
}

.page-title {
  display: grid;
  gap: 4px;
}

.page-title h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.04;
  font-weight: 700;
}

.page-title p {
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.35;
}

.context-row,
.topbar-actions,
.button-row,
.item-actions,
.quick-action-row,
.timeline-legend {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.context-pill,
.summary-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, #fdf8ef, #f2f5e6);
  border: 1px solid var(--border);
}

.context-date {
  color: var(--primary-strong);
  border-color: rgba(138, 120, 78, 0.22);
  background: linear-gradient(180deg, #edf3d8, #dbe6c6);
}

.masthead-actions .user-menu-wrap:first-of-type {
  min-width: 0;
}

.masthead-actions #dogFilterButton {
  width: auto;
  min-width: 56px;
  padding: 0 14px;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 10px;
}

.masthead-dog-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.secondary-select,
.icon-button,
.button,
.ghost-button,
.small-button,
.danger-button,
.quick-action-button,
.link-button {
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

.secondary-select,
.icon-button,
input,
textarea,
select {
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: linear-gradient(180deg, #fffbf4, #f5f7eb);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input,
textarea,
select {
  width: 100%;
}

textarea {
  padding: var(--space-3) var(--space-4);
  min-height: 116px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.secondary-select:focus,
.icon-button:focus,
.button:focus,
.ghost-button:focus,
.quick-action-button:focus,
.small-button:focus,
.danger-button:focus,
.link-button:focus {
  outline: none;
  border-color: rgba(138, 120, 78, 0.44);
  box-shadow: 0 0 0 4px rgba(174, 200, 164, 0.28);
}

.secondary-select:hover,
.icon-button:hover,
input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

.icon-button {
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.image-icon-button {
  overflow: hidden;
}

.menu-icon-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.icon-button:hover,
.button:hover,
.ghost-button:hover,
.small-button:hover,
.danger-button:hover,
.quick-action-button:hover {
  transform: translateY(-1px);
}

.icon-button:active,
.button:active,
.ghost-button:active,
.small-button:active,
.danger-button:active,
.quick-action-button:active {
  transform: scale(0.98);
}

.user-menu-wrap {
  position: relative;
  z-index: 2;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  gap: var(--space-1);
  min-width: 190px;
  padding: var(--space-2);
  border-radius: 18px;
  border: 1px solid rgba(138, 120, 78, 0.22);
  background: linear-gradient(180deg, #fdf8ed, #f1f5e6);
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.user-menu-dropdown.open {
  display: grid;
  animation: fade-slide-up var(--transition-base);
}

.menu-item {
  border: 0;
  border-radius: 12px;
  background: transparent;
  min-height: 42px;
  padding: 0 var(--space-3);
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.menu-item:hover {
  background: #e4ebd1;
}

.dog-filter-item.active {
  background: #dde6c8;
  font-weight: 600;
}

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

.danger-item:hover {
  background: rgba(140, 74, 61, 0.1);
}

.tab-panel {
  display: none;
  animation: panel-enter var(--transition-slow);
}

.tab-panel.active {
  display: block;
}

.content-grid,
.timeline-layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.timeline-dashboard,
.stack,
.list,
.summary-stats,
.insight-grid {
  display: grid;
  gap: var(--space-5);
}

.card {
  padding: var(--space-6);
  border-radius: 22px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(248, 243, 232, 0.98)),
    var(--surface-strong);
  box-shadow: 0 10px 28px rgba(81, 75, 45, 0.04);
}

.form-card {
  position: sticky;
  top: 134px;
}

.section-heading {
  position: relative;
  padding-bottom: 14px;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(154, 142, 104, 0.6), rgba(204, 221, 188, 0.18));
}

.timeline-hero {
  background:
    radial-gradient(circle at top right, rgba(174, 200, 164, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(138, 120, 78, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(249, 243, 230, 0.98), rgba(236, 242, 214, 0.86));
}

.summary-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.summary-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-tile,
.insight-card {
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, #fff9ef, #f3f6e8);
}

.stat-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.stat-tile strong,
.insight-card h3 {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-tile small,
.insight-card p {
  color: var(--muted);
}

.button,
.ghost-button,
.small-button,
.danger-button,
.quick-action-button {
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.button {
  color: #fff;
  background: linear-gradient(180deg, #a1946c, #6d6540);
  box-shadow: 0 10px 18px rgba(154, 142, 104, 0.16);
}

.button:hover {
  box-shadow: 0 14px 22px rgba(154, 142, 104, 0.2);
}

.ghost-button,
.small-button,
.quick-action-button,
.secondary-select {
  background: linear-gradient(180deg, #fffaf1, #f2f5e8);
  border-color: var(--border);
  color: var(--text);
}

.ghost-button:hover,
.small-button:hover,
.quick-action-button:hover,
.secondary-select:hover {
  background: linear-gradient(180deg, #fcf6ea, #edf2e1);
  border-color: rgba(138, 120, 78, 0.24);
}

.danger-button {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.16);
}

.danger-button:hover {
  background: rgba(239, 68, 68, 0.12);
}

.status {
  min-height: 24px;
  margin: var(--space-2) 0 0;
  font-size: 14px;
  color: var(--muted);
}

.status.success {
  color: var(--success);
}

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

form {
  display: grid;
  gap: var(--space-4);
}

label {
  display: block;
  margin-bottom: -8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field-group {
  display: grid;
  gap: var(--space-2);
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.checkbox-group {
  display: grid;
  gap: var(--space-3);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-button);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fbf6ea, #eef2dd);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-row label {
  margin: 0;
  cursor: pointer;
}

.marketing-row {
  align-items: flex-start;
  min-height: auto;
  padding: var(--space-4);
}

.edit-banner {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: 14px;
  border: 1px solid rgba(138, 120, 78, 0.2);
  background: linear-gradient(180deg, #f2f5e4, #e5edd4);
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 600;
}

.edit-banner.active {
  display: block;
  animation: fade-slide-up var(--transition-base);
}

.list {
  min-height: 96px;
}

.dog-item,
.meal-item,
.symptom-item,
.risk-item,
.timeline-entry {
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, #fffaf2, #f7f3e8);
  box-shadow: 0 6px 16px rgba(81, 75, 45, 0.04);
  animation: fade-slide-up var(--transition-slow);
}

.dog-item strong,
.meal-item strong,
.symptom-item strong,
.risk-item strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.dog-meta,
.meal-meta,
.symptom-meta,
.risk-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.empty {
  padding: var(--space-8);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  background: linear-gradient(180deg, #f6f0e2, #edf2da);
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-weight: 600;
  cursor: pointer;
}

.timeline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.timeline-legend {
  color: var(--muted);
  font-size: 13px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: var(--space-2);
  border-radius: 999px;
}

.meal-dot {
  background: var(--primary);
}

.symptom-dot {
  background: var(--warning);
}

.timeline-list {
  position: relative;
  gap: 28px;
}

.timeline-day {
  position: relative;
  padding-left: 42px;
  display: grid;
  gap: 14px;
}

.timeline-day::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 13px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(138, 120, 78, 0.32), rgba(174, 200, 164, 0.22));
}

.timeline-day:last-child::before {
  bottom: var(--space-5);
}

.timeline-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 2px;
  padding-bottom: 8px;
}

.timeline-day-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

.timeline-day-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(204, 221, 188, 0.18);
}

.timeline-entry {
  position: relative;
  margin-bottom: var(--space-5);
  padding: 22px 22px 20px;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 4px solid rgba(250, 245, 233, 0.96);
  box-shadow: 0 0 0 1px rgba(138, 120, 78, 0.18);
}

.timeline-entry.meal-entry::before {
  background: var(--primary);
}

.timeline-entry.symptom-entry::before {
  background: var(--warning);
}

.timeline-entry-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-3);
}

.timeline-entry-title {
  display: grid;
  gap: var(--space-1);
}

.timeline-entry-title strong {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.timeline-entry-title span,
.timeline-entry-time,
.timeline-entry-body,
.risk-score {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.timeline-entry-time {
  font-size: 13px;
  color: var(--muted);
}

.timeline-entry-body {
  color: var(--muted);
}

.timeline-entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-entry.meal-entry .timeline-entry-badge {
  color: var(--primary-strong);
  background: linear-gradient(180deg, #edf3da, #dbe5c6);
}

.timeline-entry.symptom-entry .timeline-entry-badge {
  color: var(--primary-strong);
  background: linear-gradient(180deg, #f0e3ca, #ead9ba);
}

.risk-item {
  display: grid;
  gap: var(--space-2);
  padding: 18px 18px 16px;
}

.risk-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.risk-badge.high {
  color: #6a2f25;
  background: linear-gradient(180deg, #f3dfda, #ecd2cb);
}

.risk-badge.medium {
  color: var(--primary-strong);
  background: linear-gradient(180deg, #f3e8d4, #edddc2);
}

.risk-badge.low {
  color: var(--primary-strong);
  background: linear-gradient(180deg, #f0f5e3, #e2ebd2);
}

.skeleton {
  position: relative;
  overflow: hidden;
  color: transparent;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(229, 234, 210, 0.8), rgba(249, 243, 231, 0.98), rgba(229, 234, 210, 0.8));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1120px) {
  .landing-panel {
    grid-template-columns: 1fr;
  }

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

  .content-grid,
  .timeline-layout,
  .summary-stats,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    position: static;
  }
}

@media (max-width: 840px) {
  .landing-panel {
    padding: 18px;
    gap: 20px;
  }

  .landing-hero {
    padding: 4px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-logo-wrap {
    width: 144px;
    height: 144px;
    margin: -72px 0 0 -72px;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-note {
    position: static;
    max-width: none;
    margin: 14px;
  }

  .hero-orbit-one {
    inset: 24px 60px;
  }

  .hero-orbit-two {
    inset: 62px 104px;
  }

  .app-masthead {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .brand-block {
    place-items: center;
    text-align: center;
    order: -1;
    justify-self: stretch;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    gap: 8px;
    width: 100%;
  }

  .masthead-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .masthead-actions .secondary-select,
  .masthead-actions .icon-button {
    min-height: 48px;
    height: 48px;
  }

  .tab-button {
    grid-template-columns: 44px 1fr;
    padding: 11px 12px;
  }

  .main,
  .auth-shell {
    padding: var(--space-5);
  }

  .signup-card {
    padding: 22px;
  }

  .waitlist-success {
    padding: 20px;
  }

  .partner-card {
    padding: 18px 20px;
  }

  .privacy-policy {
    padding: 0 var(--space-5) var(--space-5);
  }

  .privacy-card {
    padding: 22px;
  }

  .topbar,
  .summary-head,
  .timeline-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    position: static;
    margin-bottom: 16px;
    padding: 12px 14px;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .brand-mark {
    width: 116px;
    height: 116px;
    border-radius: 26px;
    margin-inline: auto;
  }

  .logo {
    width: 102px;
    height: 102px;
  }
}

@media (max-width: 560px) {
  .landing-panel {
    padding: 14px;
    gap: 16px;
  }

  .form-note {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
  }

  .hero-orbit {
    display: none;
  }

  .hero-logo-wrap {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    width: 132px;
    height: 120px;
    margin: 0;
    border-radius: 28px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }

  .hero-note {
    margin: 0;
    width: 100%;
  }

  .landing-hero,
  .landing-signup {
    gap: 16px;
  }

  .signup-card,
  .waitlist-success,
  .partner-card,
  .privacy-card {
    padding: 18px;
    border-radius: 22px;
  }

  .signup-card-head h3,
  .waitlist-success h3,
  .partner-card h3,
  .privacy-card h2 {
    font-size: 26px;
  }

  .signup-card-head p,
  .waitlist-success p,
  .partner-card p,
  .auth-switch {
    font-size: 14px;
    line-height: 1.6;
  }

  .partner-card {
    gap: 8px;
  }

  .checkbox-row {
    align-items: flex-start;
    padding: 14px;
  }

  .checkbox-row label {
    font-size: 14px;
    line-height: 1.5;
  }

  input,
  select {
    font-size: 16px;
  }

  .privacy-card h2 {
    font-size: 26px;
  }

  .tab-button {
    grid-template-columns: 42px 1fr;
  }

  .page-title h2 {
    font-size: 24px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row .button,
  .button-row .ghost-button {
    width: 100%;
  }

  .masthead-actions {
    justify-content: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px 52px;
    gap: 8px;
  }

  .masthead-actions #dogFilterButton {
    width: 100%;
    justify-content: center;
    padding: 0 12px;
  }

  .masthead-dog-label {
    font-size: 13px;
  }

  .user-menu-wrap,
  .icon-button {
    width: 52px;
    height: 52px;
  }

  .menu-icon-image {
    width: 32px;
    height: 32px;
  }

  .main {
    padding: 20px 16px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
