* {
  box-sizing: border-box;
}

:root {
  --gg-bg: #fff4f1;
  --gg-surface: rgba(255, 255, 255, 0.86);
  --gg-card: #ffffff;
  --gg-text: #2f2a2c;
  --gg-muted: #8b7b80;
  --gg-line: rgba(126, 96, 106, 0.12);
  --gg-blue: #6bb7dc;
  --gg-blue-dark: #3c91c4;
  --gg-yellow: #ffd166;
  --gg-orange: #f29c74;
  --gg-pink: #f5b6c3;
  --gg-purple: #9d8189;
  --gg-shadow: 0 18px 55px rgba(96, 71, 81, 0.14);
  --gg-soft-shadow: 0 10px 30px rgba(96, 71, 81, 0.1);
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
  background: #fff;
}

body {
  color: var(--gg-text);
  background: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-soft {
  background: transparent;
}

.text-gray-800,
.text-gray-700 {
  color: var(--gg-text);
}

.text-gray-600,
.text-gray-500,
.text-gray-400 {
  color: var(--gg-muted);
}

.text-primary,
.text-primaryDark,
.text-teal-600 {
  color: var(--gg-blue-dark);
}

.text-purple {
  color: var(--gg-purple);
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.pointer-events-none {
  pointer-events: none;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1 1 0%;
}

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

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

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

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.max-w-md {
  max-width: 30rem;
}

.max-w-sm {
  max-width: 24rem;
}

.w-full {
  width: 100%;
}

.w-8,
.h-8 {
  width: 2rem;
  height: 2rem;
}

.w-10,
.h-10 {
  width: 2.5rem;
  height: 2.5rem;
}

.w-14,
.h-14 {
  width: 3.5rem;
  height: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.w-20 {
  width: 5rem;
}

.h-16 {
  height: 4rem;
}

.h-24 {
  height: 6rem;
}

.object-contain {
  object-fit: contain;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pb-28 {
  padding-bottom: 7rem;
}

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

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-6xl {
  font-size: clamp(3.2rem, 12vw, 4rem);
}

.font-light {
  font-weight: 500;
}

.font-medium {
  font-weight: 600;
}

.font-bold {
  font-weight: 800;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.04em;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.rounded-full {
  border-radius: 999px;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.45rem;
}

.border,
.border-2 {
  border: 1px solid var(--gg-line);
}

.border-t {
  border-top: 1px solid var(--gg-line);
}

.border-b {
  border-bottom: 1px solid var(--gg-line);
}

.last\:border-0:last-child {
  border: 0;
}

.bg-white {
  background: #fff;
}

.bg-gray-100 {
  background: #f7f3f3;
}

.bg-white\/50,
.bg-white\/90 {
  background: transparent;
}

.bg-secondary\/20 {
  background: rgba(255, 209, 102, 0.24);
}

.bg-accent\/20 {
  background: rgba(242, 156, 116, 0.2);
}

.bg-primary\/10 {
  background: rgba(107, 183, 220, 0.12);
}

.bg-secondary\/10 {
  background: rgba(255, 209, 102, 0.14);
}

.bg-pink\/20 {
  background: rgba(245, 182, 195, 0.2);
}

.bg-gradient-to-br,
.bg-gradient-to-r {
  background: linear-gradient(135deg, #fff, #fff);
}

.from-primary.to-primaryDark {
  background: linear-gradient(145deg, var(--gg-blue) 0%, var(--gg-blue-dark) 100%);
}

.from-secondary.to-secondaryDark {
  background: linear-gradient(145deg, var(--gg-yellow) 0%, #f5ad35 100%);
}

.from-accent.to-accentDark {
  background: linear-gradient(145deg, var(--gg-orange) 0%, #e76f51 100%);
}

.from-white.to-\[\#f9f9f9\],
.from-white.to-\[\#f0f9ff\],
.from-white.to-\[\#fff0f9\] {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 250, 0.86));
}

.text-white,
.text-white\/70,
.text-white\/80,
.text-white\/90 {
  color: #fff;
}

.shadow-lg,
.shadow-xl,
.shadow-2xl,
[class*="shadow-"] {
  box-shadow: var(--gg-soft-shadow);
}

.drop-shadow-sm,
.drop-shadow-md {
  filter: drop-shadow(0 10px 18px rgba(90, 73, 78, 0.12));
}

.opacity-30 {
  opacity: 0.3;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-70 {
  opacity: 0.7;
}

.transition-all,
.transition-colors,
.transition-transform,
.transition-opacity {
  transition: all 180ms ease;
}

.scale-110 {
  transform: scale(1.1);
}

.active\:scale-95:active {
  transform: scale(0.96);
}

[class*="h-[100dvh]"] {
  min-height: 100dvh;
}

[class*="backdrop-blur"] {
  backdrop-filter: blur(18px);
}

#root > div > .relative.z-10 {
  width: min(100%, 30rem);
  min-height: 100dvh;
  margin: 0 auto;
  background: transparent !important;
  box-shadow: none;
  border-left: 0;
  border-right: 0;
}

#root > div > .relative.z-10 > .flex-1 {
  padding: 1.5rem 1.2rem 7.5rem;
}

.fixed.inset-0 {
  inset: 0;
}

#root > div > .fixed.inset-0 {
  display: none;
}

.absolute.bottom-0,
nav.absolute {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

nav {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(128, 98, 108, 0.12);
  box-shadow: 0 -18px 42px rgba(80, 54, 64, 0.1);
  padding: 0.55rem 1.25rem max(0.65rem, env(safe-area-inset-bottom));
}

nav > div {
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav button {
  min-width: 4.1rem;
  height: 3.6rem;
  color: #a7979d;
  background: transparent;
  border-radius: 1.25rem;
}

nav button[class*="text-primary"] {
  color: var(--gg-blue-dark);
  background: linear-gradient(180deg, rgba(107, 183, 220, 0.16), rgba(245, 182, 195, 0.12));
  box-shadow: inset 0 0 0 1px rgba(107, 183, 220, 0.16);
}

img[alt="GuanguanLife Logo"] {
  width: min(78vw, 18rem);
  height: auto;
  margin: 0 auto;
  display: block;
  mix-blend-mode: normal;
  filter: none !important;
}

.rounded-3xl,
[class*="rounded-3xl"] {
  border-radius: 1.45rem;
}

[class*="shadow-[0_8px_30px"] {
  background: var(--gg-card);
  border: 1px solid rgba(128, 98, 108, 0.1);
  box-shadow: var(--gg-soft-shadow);
}

[class*="from-primary"][class*="to-primaryDark"] {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.34), transparent 9rem),
    linear-gradient(145deg, #6ebee3 0%, #2f8ec1 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(61, 150, 200, 0.28);
}

.feeding-card {
  padding: 1.45rem 1.35rem 1.45rem;
  transition: background 240ms ease, box-shadow 240ms ease, transform 200ms ease;
}

.feeding-card-idle {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.35), transparent 9rem),
    linear-gradient(145deg, #65bde4 0%, #2d8dbf 100%) !important;
  box-shadow: 0 22px 48px rgba(47, 142, 191, 0.3) !important;
}

.feeding-card-active {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.28), transparent 8rem),
    linear-gradient(145deg, #ffb065 0%, #ee735f 100%) !important;
  box-shadow: 0 24px 52px rgba(238, 115, 95, 0.32) !important;
}

.feeding-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.feeding-card p {
  color: rgba(255, 255, 255, 0.88);
}

.feeding-time-wrap {
  margin-top: 1.15rem;
  margin-bottom: 0;
}

.feeding-timer {
  font-size: clamp(2rem, 9vw, 2.65rem) !important;
  line-height: 1;
  opacity: 0.92;
  text-shadow: 0 8px 18px rgba(32, 56, 75, 0.16);
}

.feeding-action-button {
  min-height: 4.7rem !important;
  border-radius: 1.35rem !important;
  font-size: 1.22rem !important;
  font-weight: 850 !important;
  box-shadow: 0 18px 34px rgba(47, 142, 191, 0.26) !important;
}

.feeding-action-round {
  width: min(44vw, 10.5rem) !important;
  height: min(44vw, 10.5rem) !important;
  min-height: 8.7rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 1.38rem !important;
  line-height: 1;
  letter-spacing: 0;
}

.feeding-action-round span {
  display: block;
}

.feeding-action-round small {
  display: block;
  font-size: 1.38rem;
  font-weight: 850;
  opacity: 1;
}

.feeding-card-idle .feeding-action-button {
  color: #237eaf !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.feeding-card-active .feeding-action-button {
  color: #fff !important;
  background: #cf4c55 !important;
  box-shadow: 0 18px 34px rgba(160, 45, 55, 0.28) !important;
}

.feeding-card-active .feeding-timer {
  text-shadow: 0 8px 20px rgba(126, 54, 45, 0.18);
}

[class*="from-white"][class*="to-"] {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(128, 98, 108, 0.1);
}

button[class*="from-primary"],
button[class*="bg-gradient-to-r"] {
  min-height: 3.2rem;
  color: #fff;
  background: linear-gradient(135deg, #6bb7dc, #3c91c4);
  border-radius: 1rem;
  box-shadow: 0 14px 28px rgba(60, 145, 196, 0.24);
}

button[class*="border-2"][class*="border-primary"] {
  color: var(--gg-blue-dark);
  background: #fff;
  border: 1px solid rgba(60, 145, 196, 0.28);
}

button[class*="text-red"] {
  color: #d84f5f;
  background: #fff7f7;
  border: 1px solid rgba(216, 79, 95, 0.22);
}

.font-cartoon {
  font-family: "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1.text-3xl {
  margin-bottom: 0.4rem;
  font-size: 1.85rem;
  letter-spacing: 0;
}

[class*="text-6xl"] {
  line-height: 1;
  letter-spacing: 0;
}

.h-1 {
  height: 0.25rem;
}

[class*="from-primary"][class*="to-pink"],
.h-1.bg-gradient-to-r {
  background: linear-gradient(90deg, var(--gg-blue), var(--gg-pink));
}

[class*="grid-cols-3"] > button {
  min-height: 6.8rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(128, 98, 108, 0.1);
  box-shadow: 0 10px 24px rgba(96, 71, 81, 0.08);
}

[class*="divide-y"] > * + * {
  border-top: 1px solid var(--gg-line);
}

/* Compact home layout: keep the whole primary workflow visible on phones. */
#root > div > .relative.z-10 > .flex-1 {
  padding-top: 0.75rem;
  padding-bottom: 5.7rem;
}

img[alt="GuanguanLife Logo"] {
  width: min(42vw, 9.4rem);
}

.feeding-card {
  padding: 0.9rem 1.05rem 0.7rem;
  margin-bottom: 1rem !important;
  border-radius: 1.2rem !important;
}

.feeding-card .mb-6 {
  margin-bottom: 0.8rem;
}

.feeding-card h2 {
  font-size: 0.95rem;
}

.feeding-card p {
  font-size: 0.78rem;
}

.feeding-action-round {
  width: min(31vw, 7.65rem) !important;
  height: min(31vw, 7.65rem) !important;
  min-height: 6.45rem !important;
  font-size: 1.12rem !important;
}

.feeding-action-round small {
  font-size: 1.12rem;
}

.feeding-time-wrap {
  margin-top: 0.55rem;
}

.feeding-timer {
  font-size: clamp(1.62rem, 7vw, 2.05rem) !important;
  margin-bottom: -0.1rem;
}

[class*="grid-cols-3"] {
  gap: 0.75rem;
  margin-bottom: 1.15rem !important;
}

[class*="grid-cols-3"] > [class*="rounded-3xl"],
[class*="grid-cols-3"] > button {
  min-height: 5.35rem;
  padding: 0.75rem 0.4rem !important;
  border-radius: 1.05rem !important;
}

[class*="grid-cols-3"] .w-10 {
  width: 2.15rem;
}

[class*="grid-cols-3"] .h-10 {
  height: 2.15rem;
}

nav {
  padding-top: 0.35rem;
}

nav > div {
  height: 3.65rem;
}

nav button {
  height: 3.15rem;
}

.manual-page {
  padding-bottom: 7rem;
}

.manual-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.manual-back-button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: var(--gg-blue-dark);
  background: rgba(107, 183, 220, 0.12);
  font-size: 1.35rem;
  font-weight: 800;
}

.manual-section {
  border-radius: 1.2rem !important;
}

.manual-section-title {
  margin-bottom: 1rem;
  color: var(--gg-text);
  font-size: 0.95rem;
  font-weight: 850;
}

.manual-quick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.manual-quick-row button,
.manual-stepper button {
  min-height: 2.75rem;
  border-radius: 0.95rem;
  color: var(--gg-blue-dark);
  background: rgba(107, 183, 220, 0.12);
  font-weight: 800;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.manual-grid label,
.manual-number-block,
.manual-note {
  display: block;
  border: 1px solid var(--gg-line);
  border-radius: 1.05rem;
  background: rgba(248, 252, 255, 0.72);
}

.manual-grid label {
  padding: 0.75rem;
}

.manual-grid span,
.manual-number-block span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gg-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.manual-grid input,
.manual-stepper input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--gg-text);
  font-weight: 800;
}

.manual-grid input {
  min-height: 2rem;
}

.manual-number-block {
  padding: 0.9rem;
}

.manual-number-block + .manual-number-block {
  margin-top: 0.9rem;
}

.manual-number-block strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gg-blue-dark);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.manual-number-block small {
  margin-left: 0.25rem;
  color: var(--gg-muted);
  font-size: 0.9rem;
}

.manual-stepper {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  gap: 0.55rem;
  align-items: center;
}

.manual-stepper input {
  height: 2.75rem;
  border-radius: 0.95rem;
  text-align: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--gg-line);
}

.manual-note {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.9rem;
  color: var(--gg-text);
  resize: vertical;
}

.manual-save-bar {
  position: fixed;
  right: max(1rem, calc((100vw - 30rem) / 2 + 1rem));
  bottom: 5.25rem;
  left: max(1rem, calc((100vw - 30rem) / 2 + 1rem));
  z-index: 45;
  display: grid;
  grid-template-columns: 0.8fr 1.35fr;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid rgba(128, 98, 108, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(80, 54, 64, 0.12);
  backdrop-filter: blur(18px);
}

.manual-save-bar button {
  min-height: 3.2rem;
}

.stats-chart-card {
  overflow: visible !important;
}

.stats-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.stats-chart-kicker {
  margin-bottom: 0.25rem;
  color: var(--gg-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.stats-chart-header h3 {
  margin: 0;
  color: var(--gg-text);
  font-size: 1.05rem;
  font-weight: 850;
}

.stats-chart-header > span {
  color: var(--gg-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.stats-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-height: 12.5rem;
  padding-top: 0.25rem;
}

.stats-bar-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.stats-bar-value {
  min-height: 1rem;
  margin-bottom: 0.35rem;
  color: var(--gg-blue-dark);
  font-size: 0.68rem;
  font-weight: 850;
}

.stats-bar-track {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1.45rem;
  height: 7.4rem;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(107, 183, 220, 0.12);
}

.stats-bar-fill {
  width: 100%;
  min-height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #74c5e8, #2f8ec1);
  box-shadow: 0 8px 18px rgba(47, 142, 193, 0.22);
}

.stats-bar-label {
  margin-top: 0.45rem;
  color: var(--gg-text);
  font-size: 0.72rem;
  font-weight: 850;
}

.stats-bar-date {
  margin-top: 0.12rem;
  color: var(--gg-muted);
  font-size: 0.62rem;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.stats-mini-day {
  display: flex;
  min-height: 3.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(248, 252, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(126, 96, 106, 0.08);
}

.stats-mini-day strong {
  color: var(--gg-text);
  font-size: 0.9rem;
}

.stats-mini-day span {
  color: var(--gg-muted);
  font-size: 0.58rem;
}

.stats-mini-day em {
  margin-top: 0.1rem;
  color: var(--gg-purple);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.stats-chart-note {
  margin: 0.65rem 0 0;
  color: var(--gg-muted);
  font-size: 0.68rem;
  text-align: center;
}

.bg-black\/20 {
  background: rgba(40, 31, 34, 0.28);
}

.left-1\/2 {
  left: 50%;
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.top-6 {
  top: 1.5rem;
}

.left-4 {
  left: 1rem;
}

.right-4 {
  right: 1rem;
}

.bottom-20 {
  bottom: 5rem;
}

input {
  border-radius: 0;
}

input:focus,
button:focus-visible {
  outline: 3px solid rgba(107, 183, 220, 0.22);
  outline-offset: 2px;
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slideInBottom 360ms ease both;
}

@media (min-width: 760px) {
  #root > div > .relative.z-10 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: calc(100dvh - 3rem);
    border-radius: 2rem;
  }
}

@media (max-width: 390px) {
  #root > div > .relative.z-10 > .flex-1 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-cols-3 {
    gap: 0.75rem;
  }

  .p-8 {
    padding: 1.35rem;
  }
}

/* Final home-card tightening: override generic mobile padding on the timer card. */
.feeding-card.p-8 {
  padding: 0.85rem 1.05rem 0.45rem !important;
}

.feeding-card.p-8 .feeding-time-wrap {
  margin-top: 0.42rem !important;
  margin-bottom: 0 !important;
  line-height: 1;
}

.feeding-card.p-8 .feeding-timer {
  display: block;
  margin-bottom: -0.22rem !important;
  line-height: 0.92 !important;
}
