* {
  box-sizing: border-box;
}

:root {
  --app-max-width: 430px;

  --text: #171717;
  --muted: rgba(23, 23, 23, 0.62);
  --soft-text: #625b66;

  --pink: #b44aa2;
  --pink-soft: #f4dceb;
  --pink-ink: #8e347f;

  --red: #ff3b30;
  --orange: #ff8a22;
  --yellow: #ffd21f;

  --card: rgba(255, 255, 255, 0.9);
  --modal-card: rgba(255, 246, 253, 0.94);
  --line: rgba(180, 74, 162, 0.22);

  --shadow-card: 0 12px 28px rgba(84, 87, 120, 0.16);
  --shadow-modal: 0 20px 50px rgba(51, 40, 76, 0.28);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --side-padding: clamp(18px, 5.6vw, 34px);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* BASE */

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #eef3ff;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 190, 185, 0.45), transparent 18%),
    radial-gradient(circle at 82% 4%, rgba(255, 190, 185, 0.35), transparent 20%),
    radial-gradient(circle at 50% 72%, rgba(255, 191, 226, 0.32), transparent 28%),
    linear-gradient(180deg, #f1d6de 0%, #c9dcf8 52%, #b9d8fb 100%);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* APP SHELL */

.app {
  width: min(100%, var(--app-max-width));
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  margin: 0 auto;
  padding:
    clamp(14px, 3svh, 28px)
    var(--side-padding)
    max(8px, env(safe-area-inset-bottom));

  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen {
  flex: 1;
  min-height: 0;
}

/* HOME */

.home-screen {
  --home-header-height: clamp(270px, 34svh, 315px);
  display: grid;
  grid-template-rows: var(--home-header-height) auto minmax(0, 1fr);
  overflow: hidden;
}

.home-header {
  position: relative;
  height: var(--home-header-height);
  min-height: 0;
}

.greeting {
  margin: 0;
  font-size: clamp(32px, 8.8vw, 44px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.days-summary {
  position: absolute;
  top: clamp(86px, 10svh, 112px);
  left: 0;
  z-index: 5;
  width: clamp(190px, 48vw, 220px);
}

.days-label {
  margin: 0;
  max-width: 220px;
  font-size: clamp(23px, 5.8vw, 30px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.days-number {
  margin: clamp(14px, 2.2svh, 28px) 0 0;
  font-size: clamp(68px, 18vw, 100px);
  line-height: 0.8;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.08em;
}

.hero {
  position: absolute;
  right: clamp(-6px, -1.5vw, 6px);
  bottom: clamp(-92px, -10svh, -68px);
  z-index: 3;
  width: clamp(168px, 47vw, 214px);
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* CALENDAR */

.calendar-card {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: clamp(12px, 2svh, 18px);
  flex-shrink: 0;

  background: var(--card);
  border-radius: var(--radius-lg);
  padding:
    clamp(13px, 3.4vw, 20px)
    clamp(14px, 4vw, 22px)
    clamp(13px, 3.4vw, 20px);

  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.calendar-hint {
  display: none;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.month-title {
  order: 1;
  margin: 0;
  margin-right: auto;
  font-size: clamp(17px, 4.4vw, 19px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.month-button {
  order: 2;
  width: clamp(34px, 9vw, 40px);
  height: clamp(34px, 9vw, 40px);
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--red);
  font-size: clamp(34px, 9vw, 40px);
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-soft),
    background 180ms var(--ease-soft);
}

#next-month {
  order: 3;
}

.month-button:active {
  transform: scale(0.92);
  background: rgba(255, 59, 48, 0.08);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(2px, 1vw, 6px);
  margin-top: clamp(8px, 2.2vw, 14px);
  color: #b8b8c3;
  font-size: clamp(10px, 2.7vw, 12px);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(1px, 0.8vw, 5px);
  margin-top: clamp(5px, 1.5vw, 10px);
}

.calendar-empty-cell {
  aspect-ratio: 1;
}

.day {
  aspect-ratio: 1;
  min-width: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #161616;
  font-size: clamp(15px, 4.2vw, 19px);
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 180ms var(--ease-soft),
    background 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft);
}

.day:hover {
  background: rgba(255, 255, 255, 0.82);
}

.day:active {
  transform: scale(0.9);
}

.day.mild,
.day.moderate,
.day.severe {
  color: white;
  font-weight: 800;
}

.day.mild {
  background: var(--yellow);
  box-shadow: 0 5px 12px rgba(255, 210, 31, 0.26);
}

.day.moderate {
  background: var(--orange);
  box-shadow: 0 5px 12px rgba(255, 138, 34, 0.26);
}

.day.severe {
  background: var(--red);
  box-shadow: 0 5px 12px rgba(255, 59, 48, 0.26);
}

/* SHARED SCREEN STYLES */

.home-link {
  align-self: flex-start;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  aspect-ratio: 1 / 1;
  border: 1.5px solid rgba(202, 126, 151, 0.52);
  border-radius: 50%;
  background: rgba(255, 246, 253, 0.74);
  color: #c98296;
  cursor: pointer;
  padding: 0;
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(84, 87, 120, 0.12);
  transition:
    transform 180ms var(--ease-soft),
    background 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft);
}

.home-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-link:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.9);
}

.screen-header {
  margin-bottom: 24px;
}

.screen-title {
  margin: 0 0 14px;
  font-size: clamp(38px, 10vw, 48px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.screen-subtitle {
  margin: 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.soft-card,
.stat-card {
  background: rgba(255, 246, 253, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(84, 87, 120, 0.16);
  backdrop-filter: blur(14px);
}

/* PROFILE */

.profile-screen,
.statistics-screen {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  width: 100%;
  padding-top: clamp(20px, 4dvh, 42px);
  padding-bottom: 32px;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.profile-card {
  padding: 22px;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--soft-text);
  font-size: 14px;
  font-weight: 700;
}

.text-input,
.welcome-card input {
  width: 100%;
  border: 1px solid rgba(180, 74, 162, 0.26);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
  transition:
    border 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft);
}

.text-input:focus,
.welcome-card input:focus,
.med-search:focus,
.custom-med-row input:focus {
  border-color: rgba(180, 74, 162, 0.55);
  box-shadow: 0 0 0 4px rgba(180, 74, 162, 0.12);
}

.profile-meta {
  margin: 20px 0;
}

.meta-value {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

/* STATISTICS */

.statistics-screen {
  display: flex;
  flex-direction: column;
}

.statistics-empty {
  position: relative;
  flex: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  text-align: center;
}

.no-data-image {
  width: min(100%, 330px);
  opacity: 0.72;
  margin-bottom: -10px;
}

.statistics-empty h2 {
  margin: 0 0 28px;
  color: var(--pink);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.statistics-empty p {
  margin: 0;
  color: rgba(23, 23, 23, 0.65);
  font-size: 22px;
  line-height: 1.22;
  font-weight: 600;
}

.statistics-content {
  display: grid;
  flex: 0 0 auto;
  gap: 24px;
  padding-bottom: 48px;
}

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

.stat-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f5a63;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-title span {
  color: var(--pink);
  font-size: 22px;
}

.stat-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0 14px;
}

.stat-card p {
  margin: 8px 0 0;
  color: #625b66;
  font-size: 17px;
  line-height: 1.3;
}

.stat-card strong {
  color: #4f4853;
  font-weight: 800;
}

.stat-note {
  color: rgba(98, 91, 102, 0.82) !important;
}

.mini-list,
.insights-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-list p,
.insights-list p {
  margin: 0;
}

.insights-list p {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
}

/* BOTTOM NAV */

.bottom-nav {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 24px;
  padding:
    clamp(8px, 1.8svh, 16px)
    clamp(34px, 10vw, 64px)
    clamp(14px, 2.4svh, 22px);
  background: transparent;
  z-index: 10;
}

.nav-item {
  border: none;
  background: transparent;
  color: #171717;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: clamp(14px, 4vw, 18px);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-soft),
    opacity 180ms var(--ease-soft);
}

.nav-item:active {
  transform: scale(0.94);
}

.nav-item.is-active {
  opacity: 1;
}

.icon-wrap {
  height: clamp(48px, 7svh, 62px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item img {
  width: clamp(44px, 7svh, 52px);
  height: clamp(44px, 7svh, 52px);
  object-fit: contain;
}

.nav-item img.icon-stats {
  width: clamp(52px, 8svh, 64px);
  height: clamp(52px, 8svh, 64px);
}

/* MODALS */

.modal,
.confirm-modal,
.welcome-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  z-index: 20;
}

.confirm-modal,
.welcome-modal {
  z-index: 40;
  background: rgba(32, 28, 45, 0.32);
  backdrop-filter: blur(3px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(32, 28, 45, 0.26);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.day-card {
  position: relative;
  z-index: 2;
  width: min(86vw, 320px);
  border-radius: 24px;
  padding: 16px;
  background: var(--modal-card);
  box-shadow: var(--shadow-modal);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  animation: cardIn 220ms var(--ease-soft);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#selected-date-title {
  margin: 0;
  color: #68606a;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.day-card-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--pink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--pink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(75, 43, 85, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 180ms var(--ease-soft),
    background 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft);
}

.icon-button:active {
  transform: scale(0.9);
}

.icon-button.primary {
  width: auto;
  min-width: 54px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: white;
  font-size: 13px;
  font-weight: 800;
}

.icon-button.danger {
  background: rgba(255, 255, 255, 0.52);
}

.trash-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

/* DAY CARD TABS */

.day-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 14px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(106, 91, 109, 0.08);
}

.day-tab {
  min-height: 34px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #5f5a63;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft),
    transform 180ms var(--ease-soft);
}

.day-tab.active {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(75, 43, 85, 0.12);
}

.day-panel {
  display: none;
  margin-top: 16px;
}

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

/* INTENSITY */

.intensity-options {
  display: grid;
  gap: 10px;
}

.intensity-button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: #6d636f;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 180ms var(--ease-soft),
    background 180ms var(--ease-soft),
    border 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft);
}

.intensity-button:active {
  transform: scale(0.98);
}

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

.intensity-button.mild .intensity-dot {
  background: var(--yellow);
}

.intensity-button.moderate .intensity-dot {
  background: var(--orange);
}

.intensity-button.severe .intensity-dot {
  background: var(--red);
}

.intensity-button.selected {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(180, 74, 162, 0.22);
  transform: scale(1.02);
  animation: selectPulse 360ms var(--ease-soft);
}

.intensity-button.mild.selected {
  box-shadow: 0 7px 18px rgba(255, 210, 31, 0.28);
}

.intensity-button.moderate.selected {
  box-shadow: 0 7px 18px rgba(255, 138, 34, 0.28);
}

.intensity-button.severe.selected {
  box-shadow: 0 7px 18px rgba(255, 59, 48, 0.26);
}

@keyframes selectPulse {
  0% {
    transform: scale(0.98);
  }

  55% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1.02);
  }
}

/* MEDS */

.add-med-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(180, 74, 162, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.3);
  color: var(--pink-ink);
  font-size: 13px;
  cursor: pointer;
}

.selected-meds-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.med-picker {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(75, 43, 85, 0.12);
  animation: cardIn 200ms var(--ease-soft);
}

.med-picker-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.med-search {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(239, 239, 239, 0.88);
  color: var(--text);
  outline: none;
  font-size: 12px;
}

.small-close-button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #625b66;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.med-group {
  margin-top: 12px;
}

.med-group-title {
  margin: 0 0 8px;
  color: #625b66;
  font-size: 12px;
  font-weight: 800;
}

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

.med-chip {
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  background: var(--pink-soft);
  color: var(--pink-ink);
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-soft),
    background 180ms var(--ease-soft),
    color 180ms var(--ease-soft);
}

.med-chip:active {
  transform: scale(0.94);
}

.med-chip.selected {
  color: white;
  background: linear-gradient(135deg, #b44aa2, #d46ac2);
}

.custom-med-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
  padding: 6px;
  border: 1px dashed rgba(180, 74, 162, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.custom-med-row input {
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  padding: 7px 8px;
  font-size: 12px;
}

.custom-med-row button {
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--pink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* WELCOME / CONFIRM */

.confirm-card,
.welcome-card {
  width: min(86vw, 320px);
  padding: 26px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(51, 40, 76, 0.28);
  text-align: center;
  animation: cardIn 220ms var(--ease-soft);
}

.confirm-card h2,
.welcome-card h2 {
  margin: 0 0 8px;
  color: #5f5a63;
  font-size: 24px;
  line-height: 1.1;
}

.confirm-card p,
.welcome-card p {
  margin: 0;
  color: #7a737e;
  font-size: 14px;
  line-height: 1.35;
}

.welcome-card input {
  margin-top: 18px;
  text-align: center;
}

.primary-button,
.danger-button,
.secondary-button {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft),
    background 180ms var(--ease-soft);
}

.primary-button {
  margin-top: 14px;
  border: none;
  background: var(--pink);
  color: white;
  box-shadow: 0 8px 18px rgba(180, 74, 162, 0.22);
}

.primary-button:active,
.danger-button:active,
.secondary-button:active {
  transform: scale(0.97);
}

.danger-button {
  border: none;
  background: var(--pink);
  color: white;
  box-shadow: 0 8px 18px rgba(180, 74, 162, 0.22);
}

.secondary-button {
  border: 1.5px solid var(--pink);
  background: transparent;
  color: var(--pink);
}

.confirm-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.how-list {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #5f5a63;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
}

.how-list li + li {
  margin-top: 10px;
}

/* DESKTOP PHONE FRAME */

@media (min-width: 700px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
  }

  .app {
    height: min(calc(100svh - 48px), 874px);
    max-height: min(calc(100svh - 48px), 874px);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(60, 65, 100, 0.22);
  }

  .modal,
  .confirm-modal,
  .welcome-modal {
    padding: 24px;
  }
}

/* SMALL / LOW SCREENS */

@media (max-height: 760px) {
  .app {
    padding-top: 14px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .home-screen {
    --home-header-height: clamp(252px, 33svh, 286px);
  }

  .greeting {
    font-size: 31px;
  }

  .days-label {
    font-size: 20px;
  }

  .days-number {
    font-size: 62px;
  }

  .calendar-card {
    margin-top: 12px;
    padding: 12px 14px 12px;
    border-radius: 24px;
  }

  .calendar-hint {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .month-button {
    width: 32px;
    height: 32px;
    font-size: 32px;
  }

  .month-title {
    font-size: 17px;
  }

  .weekdays {
    margin-top: 7px;
    font-size: 10px;
  }

  .calendar {
    margin-top: 4px;
    gap: 1px;
  }

  .day {
    font-size: 15px;
  }

  .bottom-nav {
    padding-top: 6px;
  }

  .icon-wrap {
    height: 44px;
  }

  .nav-item {
    font-size: 14px;
  }

  .nav-item img {
    width: 42px;
    height: 42px;
  }

  .nav-item img.icon-stats {
    width: 50px;
    height: 50px;
  }
}

@media (max-height: 680px) {
  .app {
    padding-top: 10px;
  }

  .home-screen {
    --home-header-height: clamp(226px, 32svh, 258px);
  }

  .greeting {
    font-size: 29px;
  }

  .days-label {
    font-size: 18px;
  }

  .days-number {
    font-size: 56px;
  }

  .calendar-card {
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .calendar-hint {
    display: none;
  }

  .day {
    font-size: 14px;
  }

  .icon-wrap {
    height: 40px;
  }

  .nav-item img {
    width: 39px;
    height: 39px;
  }

  .nav-item img.icon-stats {
    width: 46px;
    height: 46px;
  }
}

@media (min-height: 850px) {
  .home-screen {
    --home-header-height: clamp(286px, 32svh, 330px);
  }

  .calendar-card {
    margin-top: 18px;
  }
}

@media (max-width: 380px) {
  :root {
    --side-padding: 16px;
  }

  .days-summary {
    width: clamp(180px, 52vw, 205px);
  }

  .hero {
    right: -10px;
    width: min(50vw, 190px);
  }

  .calendar-card {
    border-radius: 24px;
  }

  .bottom-nav {
    padding-inline: 42px;
  }

  .day-card {
    width: min(92vw, 320px);
  }
}
