: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;
  -webkit-text-size-adjust: 100%;
}

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: 156px;
  height: 156px;
  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-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(239, 244, 230, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.landing-feature-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.landing-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.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;
}

.landing-launch-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.landing-launch-list li {
  line-height: 1.55;
}

body.app-platform .landing-panel {
  width: min(100%, 520px);
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}

body.app-platform {
  background: #fffdf9;
  background: linear-gradient(180deg, #faf6ef 0%, #f1f5e6 100%);
}

body.app-platform::before {
  display: none;
}

body.app-platform,
body.app-platform html {
  scroll-behavior: auto;
}

body.app-platform .landing-hero,
body.app-platform .partner-card,
body.app-platform #waitlistFormPanel,
body.app-platform #waitlistSuccessPanel {
  display: none !important;
}

body.app-platform #testerAccessPanel {
  display: grid;
}

body.app-platform .landing-signup {
  align-content: start;
}

body.app-platform .signup-card {
  min-height: 0;
  box-shadow: 0 10px 24px rgba(81, 75, 45, 0.06);
}

.app-launch-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: #fffdf9;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.app-launch-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.app-launch-pill {
  width: min(72vw, 260px);
  height: min(72vw, 260px);
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 42px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(243, 247, 236, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 42px rgba(81, 75, 45, 0.08);
}

.app-launch-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

body.app-platform .brand-mark {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-platform .logo {
  width: 78px;
  height: 78px;
  display: block;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
}

body.app-platform .tab-icon-image {
  width: 38px;
  height: 38px;
  display: block;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transform: scale(1.22);
  transform-origin: center;
}

body.app-platform #log.log-panel,
body.app-platform #log.tab-panel,
body.app-platform #log {
  scroll-margin-top: 0;
}

body.app-platform .log-dashboard {
  gap: var(--space-4);
}

body.app-platform .log-overview-card {
  padding: 18px;
}

body.app-platform .log-overview-card .section-heading {
  display: none;
}

body.app-platform .log-switcher {
  margin-top: 0;
  position: sticky;
  top: 8px;
  z-index: 12;
}

body.app-platform .log-view-panel.active {
  gap: var(--space-4);
}

body.app-platform .log-view-panel .card {
  border-radius: 22px;
}

body.app-platform .app-log-subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(237, 243, 223, 0.9));
  border: 1px solid rgba(154, 142, 104, 0.14);
}

body.app-platform .app-log-subnav-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

body.app-platform .app-log-subnav-button.active {
  background: linear-gradient(180deg, #fcf6ea, #e8efda);
  border-color: rgba(154, 142, 104, 0.24);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 10px rgba(154, 142, 104, 0.08);
}

body.app-platform .app-log-subpanel[hidden] {
  display: none !important;
}

body.app-platform .app-input-suggest {
  position: relative;
}

body.app-platform .app-suggestion-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  max-height: 240px;
  padding: 8px;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(154, 142, 104, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(243, 247, 233, 0.98));
  box-shadow: 0 12px 28px rgba(81, 75, 45, 0.12);
}

body.app-platform .app-suggestion-option {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

body.app-platform .app-suggestion-option:hover,
body.app-platform .app-suggestion-option:focus {
  background: rgba(228, 235, 209, 0.8);
  outline: none;
}

body.app-platform input[type="date"],
body.app-platform input[type="time"],
body.app-platform input[type="datetime-local"] {
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  padding-right: 16px;
}

body.app-platform input[type="date"]::-webkit-date-and-time-value,
body.app-platform input[type="time"]::-webkit-date-and-time-value,
body.app-platform input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
}

body.app-platform input[type="date"]::-webkit-datetime-edit,
body.app-platform input[type="time"]::-webkit-datetime-edit,
body.app-platform input[type="datetime-local"]::-webkit-datetime-edit {
  padding: 0;
}

.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;
  position: relative;
}

body.is-native .app-shell {
  padding-top: 0;
}

body.is-native .main {
  padding-top: 0;
}

body.is-native .app-masthead {
  padding-top: env(safe-area-inset-top, 0px);
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(249, 244, 232, 0.72);
  backdrop-filter: blur(10px);
}

.app-loading-overlay[hidden] {
  display: none !important;
}

.app-loading-card {
  min-width: min(420px, calc(100vw - 48px));
  display: grid;
  gap: 10px;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(238, 243, 225, 0.94));
  box-shadow: 0 14px 34px rgba(81, 75, 45, 0.08);
  text-align: center;
}

.app-loading-card strong {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

body.app-platform .app-masthead {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

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

.brand-link {
  display: grid;
  place-items: center;
  width: auto;
  text-decoration: none;
}

.brand-mark {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, #fffaf0, #e7eed5);
  border: 1px solid rgba(154, 142, 104, 0.18);
  padding: 0;
  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: 94%;
  height: 94%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
}

.nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  align-self: center;
  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);
}

.nav .tab-button {
  min-width: 0;
}

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

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

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

body.app-platform .app-masthead {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "brand actions"
    "nav nav";
  align-items: start;
}

body.app-platform .brand-block {
  grid-area: brand;
}

body.app-platform .logo,
body.app-platform .tab-icon-image,
body.app-platform .menu-icon-image {
  background: #f6f1e6;
  border-radius: 14px;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.app-platform .logo {
  border-radius: 18px;
  padding: 8px;
}

body.app-platform .tab-icon-image {
  border-radius: 12px;
  padding: 5px;
}

body.app-platform #dogFilterButton .menu-icon-image {
  border-radius: 12px;
  padding: 4px;
}

body.app-platform .masthead-actions {
  grid-area: actions;
  justify-self: end;
  align-self: center;
}

body.app-platform .nav {
  grid-area: nav;
}

body.is-native .nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.app-platform #dogFilterButton {
  width: 56px;
  min-width: 56px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

body.app-platform #dogFilterButton .menu-icon-image {
  display: block;
}

body.app-platform #dogFilterButton .masthead-dog-label {
  display: none;
}

.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: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  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-button[data-tab="home"] .tab-icon-image {
  width: 46px;
  height: 46px;
  transform: scale(1.18) translateY(1px);
  transform-origin: center;
}

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

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

.tab-subtitle {
  font-size: 10px;
  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: calc(var(--space-4) + env(safe-area-inset-top, 0px));
  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;
}

.dashboard-topbar-summary {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
  align-items: stretch;
}

.topbar.topbar-home .dashboard-topbar-summary {
  display: grid;
}

.sample-mode-banner {
  margin-top: var(--space-4);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(154, 142, 104, 0.24);
  background: linear-gradient(135deg, rgba(244, 235, 212, 0.92), rgba(232, 240, 210, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  align-items: center;
  justify-content: space-between;
}

.sample-mode-banner span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.account-panel {
  width: 100%;
  display: grid;
  gap: var(--space-5);
  box-sizing: border-box;
  padding: var(--space-6);
  border-radius: 28px;
  border: 1px solid rgba(154, 142, 104, 0.18);
  background:
    radial-gradient(circle at top right, rgba(188, 213, 176, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(244, 247, 235, 0.96));
  box-shadow: 0 24px 60px rgba(53, 46, 24, 0.16);
}

.account-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
}

.account-panel-head h3,
.account-panel-head p {
  margin: 0;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.account-summary-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, #fff9ef, #f3f6e8);
}

.account-summary-card strong {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.account-summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-summary-actions .ghost-button {
  min-height: 44px;
  width: 100%;
}

.account-panel-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.account-detail-card {
  padding: var(--space-5);
}

.account-export-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(174, 200, 164, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(252, 246, 234, 0.98), rgba(232, 239, 218, 0.94));
  border-color: rgba(154, 142, 104, 0.2);
}

.account-share-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: rgba(255, 251, 244, 0.78);
  margin-bottom: var(--space-4);
}

.account-share-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-share-tab.active {
  background: linear-gradient(180deg, rgba(138, 120, 78, 0.14), rgba(188, 213, 176, 0.18));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.account-share-panel {
  display: none;
  gap: var(--space-4);
}

.account-share-panel.active {
  display: grid;
}

.account-export-button {
  min-height: 60px;
  padding-inline: 24px;
  font-size: 16px;
  font-weight: 700;
}

.account-export-secondary {
  min-height: 60px;
  padding-inline: 24px;
  font-weight: 700;
}

.account-share-meta {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.account-share-meta strong,
.account-share-meta small {
  margin: 0;
}

.admin-content-card {
  grid-column: 1 / -1;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.account-settings-grid form {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: 18px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.9), rgba(243, 247, 234, 0.86));
}

.shared-report-body {
  min-height: 100vh;
  padding: 32px 20px 48px;
}

.shared-report-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
}

.shared-report-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.shared-report-brand-mark {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(243, 247, 234, 0.92));
}

.shared-report-brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.shared-report-hero,
.shared-report-status-card {
  box-shadow: 0 18px 44px rgba(53, 46, 24, 0.12);
}

.shared-report-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.shared-report-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.shared-report-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

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

.admin-content-form,
.admin-content-side,
.admin-content-group,
.admin-content-items,
.admin-content-item,
.admin-content-item-copy {
  display: grid;
  gap: var(--space-3);
}

.admin-content-groups {
  display: grid;
  gap: var(--space-5);
}

.admin-content-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: var(--space-4);
  border-radius: 18px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(243, 247, 234, 0.9));
}

.admin-content-item-copy strong,
.admin-content-item-copy p,
.admin-content-item-copy small {
  margin: 0;
}

.admin-content-item-copy p,
.admin-content-item-copy small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-media-preview {
  display: grid;
  gap: var(--space-2);
}

.admin-media-preview-frame,
.content-media-wrap,
.home-feature-media {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.9), rgba(243, 247, 234, 0.9));
}

.admin-media-preview-frame {
  max-width: 260px;
}

.admin-media-preview-image,
.content-media-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.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;
}

.form-action-area {
  display: grid;
  gap: 10px;
  margin-top: var(--space-3);
}

.form-action-area .status {
  margin: 0;
}

.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;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: start;
}

.masthead-dog-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch;
}

.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);
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  min-width: 0;
  max-width: 100%;
  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;
}

.help-icon-button {
  font-size: 22px;
  font-weight: 800;
}

.help-icon-mark {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

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

.dog-filter-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center;
  justify-self: center;
  align-self: center;
  margin: 0;
}

.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);
}

.quick-action-row {
  align-items: stretch;
}

.log-overview-card {
  display: grid;
  gap: var(--space-4);
}

.log-overview-card .section-heading {
  margin: 0;
}

.log-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: stretch;
  padding: var(--space-3);
  border-radius: 24px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(243, 247, 234, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.log-overview-actions .quick-action-row {
  flex: 0 0 240px;
  width: 240px;
}

.log-overview-actions .quick-action-button {
  width: 100%;
}

.log-overview-actions .log-switcher {
  flex: 1 1 420px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.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;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: var(--space-5);
  align-items: start;
}

.home-dashboard {
  display: grid;
  gap: var(--space-5);
}

.log-dashboard {
  display: grid;
  gap: var(--space-5);
}

.log-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: var(--space-4);
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(237, 243, 223, 0.92));
  border: 1px solid rgba(154, 142, 104, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}


.log-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: linear-gradient(180deg, rgba(253, 249, 241, 0.85), rgba(242, 247, 233, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.log-switch-button:hover {
  color: var(--text);
  border-color: rgba(154, 142, 104, 0.12);
  background: rgba(255, 255, 255, 0.48);
}

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

.log-overview-card {
  background:
    radial-gradient(circle at top right, rgba(174, 200, 164, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(250, 245, 233, 0.98), rgba(236, 242, 216, 0.92));
}

.quick-log-card {
  display: grid;
  gap: var(--space-4);
  background:
    radial-gradient(circle at top right, rgba(174, 200, 164, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(254, 248, 238, 0.98), rgba(241, 246, 229, 0.94));
}

.heading-with-help {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
}

.inline-help {
  position: relative;
  flex: 0 0 auto;
}

.inline-help summary {
  list-style: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(154, 142, 104, 0.16);
  background: linear-gradient(180deg, #fffbf4, #f5f7eb);
  color: var(--primary-strong);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.inline-help summary::-webkit-details-marker {
  display: none;
}

.inline-help-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, 72vw);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(154, 142, 104, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(244, 247, 236, 0.96));
  box-shadow: var(--shadow-md);
  color: var(--muted);
  line-height: 1.6;
  z-index: 3;
}

.quick-log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.quick-log-group {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  align-self: start;
}

.quick-log-group-head {
  display: grid;
  gap: 4px;
}

.quick-log-group-head strong,
.quick-log-group-head small {
  margin: 0;
}

.quick-log-group-head small {
  color: var(--muted);
}

.quick-log-list {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.quick-log-button {
  position: relative;
  display: grid;
  gap: 6px;
  align-items: start;
  justify-items: start;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(244, 247, 236, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.quick-log-button strong,
.quick-log-button span {
  margin: 0;
}

.quick-log-button span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-log-button:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 142, 104, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 18px rgba(154, 142, 104, 0.08);
}

.quick-log-button::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.quick-log-button.is-saving {
  cursor: wait;
  opacity: 0.78;
}

.quick-log-button.is-saving::after {
  opacity: 1;
  transform: scale(1);
  background: rgba(154, 142, 104, 0.14);
  box-shadow: inset 0 0 0 2px rgba(154, 142, 104, 0.24);
}

.quick-log-button.is-success {
  border-color: rgba(113, 162, 78, 0.34);
  background: linear-gradient(180deg, rgba(251, 255, 246, 0.98), rgba(236, 246, 223, 0.96));
}

.quick-log-button.is-success::after {
  content: "✓";
  display: grid;
  place-items: center;
  opacity: 1;
  transform: scale(1);
  background: #78a85a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.quick-log-button.is-error {
  border-color: rgba(196, 106, 106, 0.3);
}

.log-secondary-grid {
  align-items: start;
}

.log-view-panel {
  display: none;
}

.log-view-panel.active {
  display: grid;
}

.home-hero {
  display: grid;
  gap: var(--space-5);
  background:
    radial-gradient(circle at top right, rgba(188, 213, 176, 0.34), transparent 32%),
    radial-gradient(circle at bottom left, rgba(138, 120, 78, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(253, 247, 237, 0.98), rgba(234, 241, 219, 0.9));
}

.home-hero-copy {
  display: grid;
  gap: var(--space-2);
  max-width: 64ch;
}

.home-hero-copy h3,
.home-hero-copy p {
  margin: 0;
}

.home-hero-copy h3 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-hero-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.home-summary-chip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.9), rgba(243, 247, 234, 0.86));
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.home-summary-chip .stat-label,
.home-summary-chip strong,
.home-summary-chip small {
  margin: 0;
}

.home-summary-chip strong {
  color: var(--primary-strong);
}

.home-summary-chip small {
  color: var(--muted);
  line-height: 1.45;
}

.home-summary-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 142, 104, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 18px rgba(154, 142, 104, 0.08);
}

/* removed top-level quick log button for a cleaner dashboard */

.home-post-list,
.home-partner-list,
.home-sponsor-list {
  display: grid;
  gap: var(--space-4);
}

.home-feature-card {
  background:
    radial-gradient(circle at top right, rgba(188, 213, 176, 0.3), transparent 34%),
    radial-gradient(circle at bottom left, rgba(138, 120, 78, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(253, 247, 237, 0.98), rgba(234, 241, 219, 0.92));
}

.home-feature-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: var(--space-5);
  align-items: stretch;
}

.home-feature-media {
  grid-column: 1 / -1;
}

.home-feature-copy,
.home-feature-aside,
.home-feature-context {
  display: grid;
  gap: var(--space-3);
}

.home-feature-copy h3,
.home-feature-aside strong {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-feature-copy p,
.home-feature-aside small {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-feature-aside {
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.9), rgba(243, 247, 234, 0.9));
}

.home-feature-context strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.home-feature-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.home-post-card,
.sponsor-post-card,
.partner-tile,
.sponsor-spotlight {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(244, 247, 235, 0.94));
}

.home-post-card h4,
.sponsor-post-card h4,
.partner-tile h4,
.sponsor-spotlight h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.home-post-card p,
.sponsor-post-card p,
.partner-tile p,
.sponsor-spotlight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sponsor-post-card {
  background:
    radial-gradient(circle at top right, rgba(154, 142, 104, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.98), rgba(241, 246, 229, 0.94));
}

.sponsor-media-wrap .content-media-image {
  aspect-ratio: 16 / 9;
}

.home-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-card-footer::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a1946c, #7f734d);
}

.partner-tile-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
}

.sponsor-spotlight-card {
  background:
    radial-gradient(circle at top left, rgba(154, 142, 104, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(250, 245, 233, 0.98), rgba(234, 240, 216, 0.94));
}

.rewards-teaser-card {
  background:
    radial-gradient(circle at top right, rgba(224, 210, 170, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(241, 245, 232, 0.95));
}

.rewards-coming-soon-card {
  display: grid;
  gap: var(--space-2);
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(154, 142, 104, 0.14);
  background: rgba(255, 251, 244, 0.88);
}

.rewards-coming-soon-card strong {
  font-size: 24px;
}

.rewards-coming-soon-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dog-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-5);
  background:
    radial-gradient(circle at top right, rgba(204, 221, 188, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(252, 247, 238, 0.98), rgba(236, 242, 216, 0.9));
}

.dog-journey.is-established {
  background:
    radial-gradient(circle at top right, rgba(154, 142, 104, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(250, 245, 233, 0.98), rgba(232, 239, 214, 0.92));
}

.dog-journey-copy {
  display: grid;
  gap: var(--space-2);
}

.dog-journey-copy h3,
.dog-journey-copy p {
  margin: 0;
}

.dog-journey-copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.dog-journey-copy p {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.7;
}

.dog-journey-actions {
  justify-content: flex-end;
}

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

.timeline-collapsible {
  display: grid;
  gap: var(--space-3);
}

.timeline-collapsible-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(154, 142, 104, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(236, 242, 216, 0.92));
  color: var(--primary-strong);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeline-collapsible-summary::after {
  content: "Show timeline";
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.timeline-collapsible[open] .timeline-collapsible-summary::after {
  content: "Hide timeline";
}

.timeline-collapsible-summary::-webkit-details-marker {
  display: none;
}

.help-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));
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.help-step-card,
.help-support-card {
  display: grid;
  gap: var(--space-4);
}

.help-step-number {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #fcf6ea, #e6eed8);
  border: 1px solid rgba(154, 142, 104, 0.18);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.help-step-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.help-step-list li {
  margin: 0;
}

.support-report-form {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(154, 142, 104, 0.16);
}

.support-report-context {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-report-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 142, 104, 0.18);
  background: rgba(250, 246, 236, 0.94);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.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: 0;
}

.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);
}

.insights-summary-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.summary-risk-card {
  height: 100%;
}

.trend-summary-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid rgba(154, 142, 104, 0.12);
  background: linear-gradient(180deg, #fff9ef, #f3f6e8);
}

.trend-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.trend-summary-head p {
  margin: 0;
  color: var(--muted);
}

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

.trend-summary-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trend-summary-item strong {
  display: block;
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.trend-summary-item small {
  color: var(--muted);
  display: block;
}

.button,
.ghost-button,
.small-button,
.danger-button,
.quick-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.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);
}

#quickLogStatus {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 1200;
  width: min(calc(100vw - 32px), 460px);
  min-height: 0;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(154, 142, 104, 0.2);
  border-radius: 16px;
  background: rgba(255, 251, 244, 0.98);
  box-shadow: 0 16px 34px rgba(70, 56, 37, 0.16);
  color: var(--text);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

#quickLogStatus.toast-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

#quickLogStatus.success {
  border-color: rgba(113, 162, 78, 0.28);
  background: rgba(247, 255, 241, 0.98);
}

#quickLogStatus.error {
  border-color: rgba(196, 106, 106, 0.28);
  background: rgba(255, 244, 244, 0.98);
}

.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);
}

.optional-label {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.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);
}

.dog-profile-checkbox-row {
  min-height: 48px;
  padding: 12px var(--space-4);
}

.dog-profile-checkbox-row label {
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.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;
}

.monitoring-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.monitoring-focus-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 120, 78, 0.16);
  background: linear-gradient(180deg, #f7f1e2, #edf2de);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 600;
}

.monitoring-focus-button {
  cursor: pointer;
}

.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;
  overflow-wrap: anywhere;
}

.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);
  overflow-wrap: anywhere;
}

.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);
}

.timeline-entry.exposure-entry .timeline-entry-badge {
  color: #5c6235;
  background: linear-gradient(180deg, #e8efd1, #dce6bd);
}

.legend-dot.exposure-dot {
  background: linear-gradient(180deg, #aab879, #889652);
}

.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-flag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(109, 101, 64, 0.08);
  color: #6d6540;
  font-size: 12px;
  font-weight: 700;
}

.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,
  .home-layout,
  .timeline-layout,
  .insights-summary-row,
  .summary-stats,
  .trend-summary-grid,
  .insight-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-shell {
    grid-template-columns: 1fr;
  }

  .dog-journey {
    grid-template-columns: 1fr;
  }

  .dog-journey-actions {
    justify-content: flex-start;
  }

  .form-card {
    position: static;
  }
}

@media (max-width: 840px) {
  .shared-report-brand {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .shared-report-brand-mark {
    margin: 0 auto;
  }

  .shared-report-footer,
  .shared-report-footer-links {
    justify-content: center;
    text-align: center;
  }

  .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .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: 126px;
    height: 126px;
  }

  .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: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    justify-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    align-items: start;
  }

  .brand-block {
    grid-area: brand;
    place-items: start;
    text-align: left;
    order: 0;
    justify-self: start;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    gap: 8px;
    width: 100%;
    justify-self: stretch;
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .nav .tab-button {
    width: 100%;
  }

  .masthead-actions {
    grid-area: actions;
    width: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: end;
    align-items: center;
    gap: 8px;
  }

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

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

  .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;
  }

  .sample-mode-banner {
    gap: 12px;
  }

  .sample-mode-banner .button-row {
    width: 100%;
  }

  .sample-mode-banner .ghost-button {
    flex: 1 1 180px;
  }

  .dog-journey-copy p,
  .page-title p {
    max-width: none;
  }

  .quick-action-row {
    width: 100%;
  }

  .log-overview-actions {
    flex-direction: column;
    width: 100%;
  }

  .log-overview-actions .quick-action-row,
  .log-overview-actions .log-switcher {
    width: 100%;
    flex: 1 1 auto;
  }

  .log-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  .log-switcher--sticky {
    display: none;
  }

  .quick-log-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }

  .quick-log-group {
    min-width: 0;
    width: 100%;
    justify-self: stretch;
  }

  .quick-log-group:nth-child(3) {
    grid-column: 1 / -1;
  }

  .quick-log-group-head {
    text-align: left;
  }

  .quick-log-button {
    justify-items: start;
    text-align: left;
    padding: 10px 10px 12px;
    border-radius: 16px;
    min-height: 116px;
  }

  .quick-log-button strong {
    font-size: 13px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .quick-log-button span {
    font-size: 11px;
    line-height: 1.35;
  }

  #quickSymptomLogList {
    width: 100%;
    justify-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #quickSymptomLogList .quick-log-button {
    justify-items: center;
    text-align: center;
  }

  .quick-log-card {
    padding: 12px;
  }

  .log-dashboard {
    gap: var(--space-4);
  }

  .log-overview-card .section-heading .eyebrow,
  .log-overview-card .section-heading p,
  .quick-log-heading .eyebrow,
  .quick-log-heading p,
  .quick-log-group-head small {
    display: none;
  }

  .log-overview-card .section-heading h3,
  .quick-log-heading h3 {
    font-size: 18px;
    margin-bottom: 0;
  }

  .log-switch-button {
    min-height: 44px;
    font-size: 13px;
    padding: 10px 12px;
  }

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

  .heading-with-help {
    align-items: center;
  }

  .dashboard-topbar-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

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

  .app-masthead .nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    justify-items: stretch;
    padding: 10px !important;
    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);
  }

  .app-masthead .tab-button {
    width: 100% !important;
  }

  .dashboard-topbar-summary .home-summary-chip small {
    display: none;
  }


  .quick-action-button {
    flex: 1 1 180px;
  }

  .home-hero-copy,
  .home-post-card,
  .partner-tile,
  .sponsor-spotlight,
  .account-panel {
    gap: var(--space-3);
  }

  .account-summary-grid,
  .account-panel-body,
  .account-panel-head,
  .admin-content-layout {
    grid-template-columns: 1fr;
  }

  .account-panel {
    padding: 20px 18px;
  }

  .account-summary-card,
  .account-detail-card {
    padding: 18px;
  }

  .account-summary-card strong {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .user-menu-dropdown {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .menu-item {
    min-height: 46px;
  }

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

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

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

  .tab-icon-image {
    width: 42px;
    height: 42px;
  }

  .tab-button[data-tab="home"] .tab-icon-image {
    width: 46px;
    height: 46px;
    transform: scale(1.12);
  }
}

@media (max-width: 560px) {
  .shared-report-body {
    padding: 20px 14px 32px;
  }

  .auth-shell {
    padding: 24px 16px 32px;
  }

  .auth-panel {
    gap: 18px;
  }

  .waitlist-panel,
  .waitlist-success {
    width: 100%;
  }

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

  .landing-feature-card {
    padding: 16px;
  }

  .tab-subtitle {
    display: none;
  }

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

  .tab-button {
    gap: 8px;
  }

  .app-masthead {
    gap: 8px;
  }

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

  .masthead-actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

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

  .quick-action-button {
    flex: 1 1 auto;
  }

  .log-overview-actions {
    flex-direction: column;
    width: 100%;
  }

  .log-overview-actions .quick-action-row,
  .log-overview-actions .log-switcher {
    width: 100%;
    flex: 1 1 auto;
  }

  .log-switch-button {
    min-height: 48px;
    width: 100%;
  }

  .log-switcher {
    gap: 6px;
    padding: 6px;
  }

  .quick-log-card {
    gap: var(--space-3);
  }

  .quick-log-group {
    gap: var(--space-2);
  }

  .quick-log-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .quick-log-group,
  .quick-log-group:nth-child(3) {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .quick-log-group-head {
    text-align: left;
  }

  .quick-log-button {
    justify-items: start;
    text-align: left;
    min-height: 88px;
    padding: 12px 44px 14px 14px;
  }

  #quickSymptomLogList {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #quickSymptomLogList .quick-log-button {
    justify-items: start;
    text-align: left;
  }

  .quick-log-button::after {
    right: 12px;
  }

  .content-grid,
  .log-secondary-grid {
    gap: 16px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .dog-item,
  .meal-item,
  .symptom-item,
  .risk-item,
  .timeline-entry {
    padding: 16px;
    border-radius: 16px;
  }

  .timeline-day {
    padding-left: 28px;
  }

  .timeline-entry::before {
    left: -28px;
  }

  .timeline-entry-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-entry-badge {
    align-self: flex-start;
  }

  .timeline-day::before {
    left: 8px;
  }

  .timeline-day {
    padding-left: 24px;
  }

  .timeline-entry::before {
    left: -24px;
  }

  .admin-content-form,
  .admin-content-side {
    gap: 16px;
  }

  .admin-media-preview-frame {
    max-width: 100%;
  }

  .account-summary-actions {
    width: 100%;
  }

  .account-summary-actions .ghost-button {
    width: 100%;
  }

  .account-panel-head {
    grid-template-columns: 1fr;
  }

  .account-share-tabs {
    grid-template-columns: 1fr;
  }

  .account-export-button,
  .account-export-secondary {
    min-height: 52px;
    width: 100%;
  }

  .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: 108px;
    height: 108px;
  }

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

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

  .account-panel {
    width: 100%;
    padding: 18px 16px;
  }

  .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;
  }

  .dog-profile-checkbox-row label,
  .optional-label {
    white-space: normal;
  }

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

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

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

  .tab-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .tab-icon-image {
    width: 40px;
    height: 40px;
  }

  .tab-button[data-tab="home"] .tab-icon-image {
    width: 42px;
    height: 42px;
    transform: scale(1.14);
  }

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

  .home-hero-copy h3,
  .home-post-card h4,
  .partner-tile h4,
  .sponsor-spotlight h4,
  .account-summary-card strong {
    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) auto auto;
    gap: 8px;
    align-items: stretch;
  }

  .masthead-actions #dogFilterButton {
    width: 52px;
    min-width: 52px;
    padding: 0;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dog-filter-icon {
    width: 56px;
    height: 56px;
    transform: scale(1.5);
    clip-path: inset(10%);
  }

  .masthead-dog-label {
    display: none;
  }

  .user-menu-wrap:first-child {
    width: auto;
    min-width: auto;
  }

  .masthead-actions .user-menu-wrap:not(:first-child),
  .masthead-actions .user-menu-wrap:not(:first-child) .icon-button {
    width: 52px;
    height: 52px;
  }

  .user-menu-dropdown {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 10px);
    bottom: auto;
    width: max-content;
    min-width: 180px;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(81, 75, 45, 0.16);
    padding: 10px;
  }

  #dogFilterDropdown.user-menu-dropdown {
    left: 0;
    right: auto;
    width: max(100%, 220px);
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
  }

  body.app-platform .masthead-actions .user-menu-wrap:first-child {
    width: auto;
    min-width: auto;
  }

  body.app-platform .masthead-actions .user-menu-wrap {
    position: relative;
  }

  .brand-mark {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .logo,
  body.app-platform .logo {
    width: 78px;
    height: 78px;
  }

  body.app-platform .tab-icon-image {
    width: 40px;
    height: 40px;
    transform: scale(1.08);
  }

  .heading-with-help {
    align-items: start;
  }

  .inline-help-panel {
    right: 0;
    width: min(240px, calc(100vw - 48px));
  }

  body.app-platform #dogFilterDropdown.user-menu-dropdown,
  body.app-platform #helpMenuDropdown.user-menu-dropdown,
  body.app-platform #userMenuDropdown.user-menu-dropdown {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 10px);
    bottom: auto;
    width: max-content;
    min-width: 180px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
  }

  body.app-platform #dogFilterDropdown.user-menu-dropdown {
    left: 0;
    right: auto;
    width: max(100%, 220px);
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
  }

  .menu-item {
    min-height: 48px;
  }

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

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

  .card {
    padding: 18px;
  }

  .summary-stats {
    gap: 12px;
  }
}

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