@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #faf6ee;
  --bg-dot: #ede5d6;
  --surface: #fffdf9;
  --surface-soft: #f4eee2;
  --border: #e8dfd0;
  --border-strong: #d8ccb8;

  --text: #2a332b;
  --text-muted: #667066;

  --brand: #357a54;
  --brand-hover: #296343;
  --brand-soft: #e6f4ec;

  --water: #2d86ae;
  --water-hover: #236e91;
  --water-soft: #e3f3fa;

  --overdue: #c9522d;
  --overdue-bg: #fdebe4;
  --overdue-border: #f4c8b8;

  --soon: #ad730e;
  --soon-bg: #fef4d6;
  --soon-border: #f3dc98;

  --happy: #2b6e4a;
  --happy-bg: #e4f4eb;
  --happy-border: #bce2cc;

  --shadow-sm: 0 4px 14px -4px rgba(68, 55, 35, 0.08);
  --shadow-md: 0 12px 30px -10px rgba(68, 55, 35, 0.13);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  line-height: 1.55;
  overflow-x: clip;
}

button,
a {
  touch-action: manipulation;
}

h1, h2, .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3, strong, b {
  font-weight: 700;
}

.plant-name, .btn, .btn-water, .pill-btn {
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 18px;
}

.main-content {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 56px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.9rem;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.06);
}

.svg-logo {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.topbar .brand-tag {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

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

/* Buttons & Pills */
.pill-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  font-size: 0.94rem;
  padding: 9px 15px;
  white-space: nowrap;
}

.pill-btn:active,
.btn:active,
.btn-water:active {
  transform: scale(0.96);
}

.pill-primary,
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px -5px rgba(53, 122, 84, 0.55);
}

.pill-primary:hover,
.btn-primary:hover {
  background: var(--brand-hover);
}

.pill-ghost,
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.pill-ghost:hover,
.btn-ghost:hover,
.pill-ghost.is-active {
  background: var(--surface-soft);
  border-color: var(--border-strong);
}

.pill-user {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.pill-user:hover {
  background: var(--brand-soft);
  border-color: var(--happy-border);
}

.pill-user.is-missing-name {
  background: var(--soon-bg);
  border-color: var(--soon-border);
  color: var(--soon);
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.btn-soft:hover {
  background: #ebe2d2;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-danger-ghost {
  background: transparent;
  color: var(--overdue);
  border-color: var(--overdue-border);
}

.btn-danger-ghost:hover {
  background: var(--overdue-bg);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-inline {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}

.btn-water-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.log-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.log-icon-water {
  background: var(--water-soft);
  color: var(--water);
}

.log-icon-fertilize {
  background: var(--brand-soft);
  color: var(--brand);
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.leaderboard-rank.rank-0 { background: #fce6a0; color: #7a5400; }
.leaderboard-rank.rank-1 { background: #e3e7ea; color: #45525c; }
.leaderboard-rank.rank-2 { background: #f2d2bc; color: #78421f; }

/* =========================
   Landing Page (Calm & Handcrafted)
   ========================= */
body[data-page="landing"] .main-content {
  padding-top: 14px;
  padding-bottom: 28px;
}

.lp {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

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

.lp-nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

.lp-nav-link:hover {
  color: var(--brand);
}

/* Hero */
.lp-hero {
  padding: 16px 0 8px;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.lp-headline {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 6.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--text);
}

.lp-highlight {
  position: relative;
  display: inline-block;
  color: var(--brand);
}

.lp-underline {
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -6px;
  width: calc(100% + 6px);
  height: 13px;
}

.lp-underline path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawStroke 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

.lp-lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.lp-start-area {
  max-width: 500px;
}

.lp-form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 9px;
  color: var(--text);
}

.lp-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-form-input {
  flex: 1 1 230px;
  box-shadow: var(--shadow-sm);
}

.lp-submit-btn {
  flex: 0 0 auto;
}

/* Interactive Demo Sheet (flat warm paper card, no fake browser chrome) */
.lp-demo-sheet {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.lp-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--border);
}

.lp-demo-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.94rem;
}

.lp-demo-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lp-demo-status-dot.is-overdue { background: var(--overdue); }
.lp-demo-status-dot.is-happy { background: var(--brand); }

.lp-demo-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lp-demo-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-demo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lp-demo-card.is-overdue {
  border-color: var(--overdue-border);
  background: #fff7f3;
}

.lp-demo-card.is-celebrating {
  animation: happyBounce 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-demo-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.lp-demo-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-demo-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.lp-demo-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
}

.lp-demo-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.lp-demo-water-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 13px;
  padding: 9px 14px;
  background: var(--water);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease;
}

.lp-demo-water-btn:hover {
  background: var(--water-hover);
}

.lp-demo-water-btn:active {
  transform: scale(0.96);
}

.lp-demo-water-btn.is-done {
  background: var(--happy-bg);
  color: var(--happy);
  border: 1.5px solid var(--happy-border);
}

.lp-demo-footer {
  display: flex;
  justify-content: flex-end;
  min-height: 22px;
  padding-top: 10px;
}

.lp-demo-reset {
  border: none;
  background: transparent;
  color: var(--brand);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.lp-demo-reset:hover {
  text-decoration: underline;
}

/* Section Headers */
.lp-section-head {
  max-width: 560px;
  margin: 0 auto 24px;
  text-align: center;
}

.lp-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.lp-section-head p {
  margin: 0;
}

/* Infinite Plant Marquee */
.lp-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.lp-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: lpMarquee 64s linear infinite;
}

.lp-marquee:hover .lp-marquee-track {
  animation-play-state: paused;
}

@keyframes lpMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lp-marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 102px;
  padding: 12px 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lp-marquee-svg {
  width: 64px;
  height: 64px;
}

/* Calm Editorial Feature List (borderless on warm canvas) */
.lp-editorial {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
  padding-top: 32px;
  border-top: 1.5px solid var(--border);
}

.lp-editorial-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.18;
}

.lp-editorial-intro p {
  margin: 0;
  font-size: 1rem;
  max-width: 34ch;
}

.lp-feature-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.lp-feature-row {
  padding: 18px 0;
  border-bottom: 1.5px solid var(--border);
}

.lp-feature-row:first-child {
  padding-top: 4px;
}

.lp-feature-row:last-child {
  border-bottom: none;
}

.lp-feature-row dt {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
}

.lp-feature-row dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Calm Closing Invitation (no gradient box) */
.lp-closing-plain {
  text-align: center;
  padding: 36px 0 8px;
  border-top: 1.5px solid var(--border);
}

.lp-closing-plain h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.lp-closing-plain p {
  margin: 0 0 20px;
}

.lp-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

/* Subtle Scroll Reveal */
.lp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .lp-hero-grid,
  .lp-editorial {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Standalone Card (used on 404 page) */
.landing-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.landing-mascot {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
}

.landing-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: var(--brand);
}

.landing-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.landing-locked {
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.landing-locked p {
  margin: 0 0 6px;
}

.landing-locked p:last-child {
  margin-bottom: 0;
}

.recent-tenants {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--border);
  text-align: left;
}

.recent-tenants-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.recent-tenants-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.recent-tenant-item {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  border: 1.5px solid var(--happy-border);
  overflow: hidden;
}

.recent-tenant-link {
  padding: 8px 10px 8px 14px;
  color: var(--happy);
  font-weight: 700;
  font-size: 0.92rem;
}

.recent-tenant-link:hover {
  background: #d5ecdf;
}

.recent-tenant-forget {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 8px 10px 8px 4px;
  cursor: pointer;
}

.recent-tenant-forget:hover {
  color: var(--overdue);
}

.recent-tenants-clear {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recent-tenants-clear:hover {
  color: var(--text);
}

.alert-notice {
  background: #eff9f3;
  border: 1.5px solid var(--happy-border);
  color: var(--happy);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.qr-detail-panels {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

/* Secret Link Welcome Banner */
.welcome-banner {
  background: #eff9f3;
  border: 1.5px solid var(--happy-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.welcome-banner-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.welcome-link-input {
  flex: 1 1 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  background: #fff;
}

/* Hero Summary Card */
.hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-card.mood-overdue {
  border-color: var(--overdue-border);
  background: linear-gradient(135deg, #fffdf9 0%, #fff4ef 100%);
}

.hero-card.mood-soon {
  border-color: var(--soon-border);
  background: linear-gradient(135deg, #fffdf9 0%, #fffaf0 100%);
}

.hero-card.mood-happy {
  border-color: var(--happy-border);
  background: linear-gradient(135deg, #fffdf9 0%, #f1faf4 100%);
}

.hero-mascot {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stat-overdue { background: var(--overdue-bg); color: var(--overdue); }
.stat-overdue .stat-dot { background: var(--overdue); }

.stat-soon { background: var(--soon-bg); color: var(--soon); }
.stat-soon .stat-dot { background: #e09c24; }

.stat-happy { background: var(--happy-bg); color: var(--happy); }
.stat-happy .stat-dot { background: var(--brand); }

/* Room Filter Bar */
.room-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.room-filter::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Plant Grid & Cards */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.plant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plant-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plant-card.status-overdue {
  border-color: var(--overdue-border);
}

.plant-card.is-celebrating {
  animation: happyBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes happyBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.03) translateY(-4px); }
  70% { transform: scale(0.99); }
  100% { transform: scale(1); }
}

.plant-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 184px;
  background: var(--surface-soft);
  overflow: hidden;
}

.plant-avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plant-card.status-overdue .plant-card-media {
  background: #fbf0e9;
}

.plant-card.status-overdue .plant-avatar-wrap {
  transform: rotate(-3deg);
}

.plant-card:hover .plant-avatar-wrap {
  transform: scale(1.06) rotate(-2deg);
}

.detail-avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.thirsty-bubble {
  position: absolute;
  top: 2px;
  right: -2px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--water);
  border: 2px solid var(--overdue-border);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(201, 82, 45, 0.16);
  animation: thirstyBob 2.4s ease-in-out infinite;
}

.thirsty-bubble .icon-inline {
  width: 14px;
  height: 14px;
}

.lp-demo-bubble {
  top: -5px;
  right: -6px;
  width: 24px;
  height: 24px;
}

.lp-demo-bubble .icon-inline {
  width: 11px;
  height: 11px;
}

@keyframes thirstyBob {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-4px) rotate(-3deg); }
}

.svg-avatar {
  width: 100%;
  height: 100%;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.plant-card-media .status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-overdue { background: var(--overdue-bg); color: var(--overdue); }
.badge-overdue .status-dot { background: var(--overdue); }

.badge-soon { background: var(--soon-bg); color: var(--soon); }
.badge-soon .status-dot { background: #e09c24; }

.badge-happy { background: var(--happy-bg); color: var(--happy); }
.badge-happy .status-dot { background: var(--brand); }

.plant-card-body {
  padding: 16px 18px 10px;
  flex: 1;
}

.plant-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.plant-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.plant-name:hover {
  color: var(--brand);
}

.room-chip {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.plant-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plant-extra-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--soon);
}

.plant-card-footer {
  padding: 8px 16px 16px;
}

/* Primary 1-Click Watering Button */
.btn-water {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 16px;
  background: var(--water);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(45, 134, 174, 0.55);
  transition: transform 0.14s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-water:hover {
  background: var(--water-hover);
}

.btn-water.is-watered-today {
  background: var(--happy-bg);
  color: var(--happy);
  box-shadow: none;
  border: 1.5px solid var(--happy-border);
}

.btn-water.is-watered-today:hover {
  background: #d5ecdf;
}

.btn-water.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.btn-water-lg {
  min-height: 54px;
  font-size: 1.08rem;
  border-radius: 18px;
}

/* Empty State */
.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  max-width: 560px;
  margin: 24px auto;
}

.empty-art {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--text-muted);
}

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

/* Detail Page */
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.back-link {
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 2px;
}

.back-link:hover {
  color: var(--brand);
}

.detail-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.detail-hero.status-overdue {
  border-color: var(--overdue-border);
}

.detail-media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-avatar-wrap {
  position: relative;
  width: 184px;
  height: 184px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.detail-meta {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions .btn-water {
  flex: 1 1 220px;
}

.btn-secondary-care {
  min-height: 54px;
  border-radius: 18px;
  padding: 0 16px;
}

/* Monthly Leaderboard */
.leaderboard-card {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}

.leaderboard-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

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

.leaderboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.leaderboard-count {
  color: var(--brand);
  font-weight: 700;
}

/* Known Team Names in Modal */
.known-names-wrap {
  margin-bottom: 14px;
  text-align: left;
}

.known-names-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.known-names-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.known-name-chip {
  border: 1.5px solid var(--happy-border);
  background: var(--brand-soft);
  color: var(--happy);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.14s ease;
}

.known-name-chip:hover {
  background: #d2ebd9;
  transform: translateY(-1px);
}

/* 404 Art */
.not-found-art {
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
}

/* Footer Rename Link */
.footer-sep {
  opacity: 0.5;
}

.footer-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--brand);
}

.fertilize-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.fertilize-status.is-due {
  color: var(--soon);
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.panel-note {
  background: #fffbeb;
  border-color: #f3e09f;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 600;
}

.care-notes-text {
  margin: 0;
  white-space: pre-line;
  color: #4a432b;
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}

.log-icon {
  font-size: 1.25rem;
}

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

.log-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.log-delete-btn {
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.log-delete-btn:hover {
  color: var(--overdue);
  border-color: var(--overdue-border);
  background: var(--overdue-bg);
}

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

.qr-box {
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  margin: 10px 0 14px;
}

.qr-img {
  display: block;
  width: 170px;
  height: 170px;
}

/* Forms */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.form-sub {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.alert-error {
  background: var(--overdue-bg);
  color: var(--overdue);
  border: 1.5px solid var(--overdue-border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  margin-bottom: 18px;
  font-weight: 700;
}

.plant-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-weight: 700;
  font-size: 0.95rem;
}

.input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(53, 122, 84, 0.14);
}

.input-narrow {
  max-width: 140px;
}

.textarea {
  resize: vertical;
  min-height: 86px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.chip-btn:hover,
.chip-btn.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 9px;
  margin-top: 4px;
}

.avatar-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 5px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.avatar-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.avatar-tile .svg-avatar {
  width: 54px;
  height: 54px;
}

.avatar-tile-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.avatar-option input:checked + .avatar-tile {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.avatar-option input:checked + .avatar-tile .avatar-tile-label {
  color: var(--brand);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-card {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--water-soft);
  border: 1.5px solid #c3e4f2;
}

.extra-details {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 12px 16px;
}

.extra-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.extra-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.danger-zone {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Toast */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 28px);
  max-width: 460px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #233127;
  color: #fff;
  padding: 13px 16px;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(24, 34, 27, 0.35);
  animation: toastIn 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast[hidden] {
  display: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-message {
  flex: 1;
  font-weight: 600;
  font-size: 0.94rem;
}

.toast-undo-btn {
  border: none;
  background: #77cbeb;
  color: #16303d;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.toast-undo-btn:hover {
  background: #96d8f2;
}

.toast-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

/* Name Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(34, 42, 35, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.modal-mascot {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
}

.modal-card h2 {
  margin: 0 0 6px;
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal-error {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--overdue);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer */
.footer {
  border-top: 1.5px solid var(--border);
  background: rgba(250, 246, 238, 0.7);
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Print QR Sheet */
.print-toolbar {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.print-toolbar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.print-toolbar-head h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
}

.print-toolbar-head p {
  margin: 0;
}

.print-selector-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.print-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.qr-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.qr-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 2px dashed #b9ae9b;
  border-radius: 20px;
  padding: 18px 20px;
  break-inside: avoid;
}

.qr-tag.is-hidden {
  display: none;
}

.qr-tag-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.qr-tag-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  flex-shrink: 0;
}

.qr-tag-name {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.qr-tag-room {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.qr-tag-interval {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--water);
  margin-bottom: 8px;
}

.qr-tag-cta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qr-tag-img {
  width: 118px;
  height: 118px;
  display: block;
  flex-shrink: 0;
}

/* Water Droplet Burst Particle (pure CSS teardrop) */
.droplet-particle {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  width: 11px;
  height: 11px;
  background: #4db1da;
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  animation: dropletFly 0.68s ease-out forwards;
}

.droplet-particle.is-leaf {
  background: #58b073;
}

@keyframes dropletFly {
  0% { opacity: 0.95; transform: translate(0, 0) rotate(45deg) scale(0.75); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(45deg) scale(1.15); }
}

/* Responsive */
@media (max-width: 780px) {
  .hide-md {
    display: none;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .detail-media {
    max-width: 220px;
    margin: 0 auto;
  }
  .detail-badges,
  .detail-actions {
    justify-content: center;
  }
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .qr-sheet {
    grid-template-columns: 1fr;
  }
  .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .container {
    padding-inline: 14px;
  }
  .main-content {
    padding-top: 20px;
  }
  .hide-sm,
  .hide-xs {
    display: none;
  }
  .topbar-inner {
    min-height: 60px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .topbar .brand-tag {
    display: none;
  }
  .topbar-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .pill-btn {
    padding: 8px 11px;
    font-size: 0.85rem;
    min-height: 38px;
  }
  .pill-icon-sm,
  .pill-icon-xs {
    width: 38px;
    height: 38px;
    padding: 0;
  }
  #name-chip-label {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .detail-avatar-wrap {
    width: 156px;
    height: 156px;
  }
  .lp {
    gap: 42px;
  }
  .lp-lead {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .lp-submit-btn {
    width: 100%;
  }
  .lp-demo-sheet {
    padding: 15px;
    border-radius: 22px;
  }
  .lp-demo-head {
    flex-wrap: wrap;
    gap: 4px;
  }
  .lp-demo-card {
    flex-wrap: wrap;
  }
  .lp-demo-water-btn {
    width: 100%;
    padding: 10px 14px;
  }
  .detail-hero {
    padding: 18px 16px;
  }
  .detail-actions .btn-water {
    flex: 1 1 100%;
  }
  .btn-secondary-care {
    flex: 1 1 calc(50% - 5px);
    min-height: 46px;
    font-size: 0.88rem;
    padding: 0 10px;
  }
  .panel {
    padding: 16px;
  }
  .log-item {
    padding: 10px 11px;
    gap: 9px;
  }
  .form-card,
  .landing-card {
    padding: 20px 16px;
  }
  .welcome-link-row .btn {
    width: 100%;
  }
  .leaderboard-card {
    padding: 14px 16px;
  }
}

@media (max-width: 360px) {
  .topbar .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Layout */
@media print {
  body {
    background: #fff !important;
  }
  .no-print {
    display: none !important;
  }
  .container,
  .main-content {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .qr-sheet {
    grid-template-columns: repeat(2, 1fr);
    gap: 12mm;
  }
  .qr-tag {
    border: 1.5px dashed #777;
    padding: 12px 14px;
    page-break-inside: avoid;
  }
}
