body {
  --gp-gold: #d6b25e;
  --gp-gold-soft: #f4e2ba;
  --gp-ink: #1f2d44;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #070b1a;
  background-image:
    linear-gradient(180deg, rgba(7, 11, 26, 0.72), rgba(17, 28, 69, 0.82)),
    url("./assets/images/krishna-aura-bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

body > main {
  flex: 1 0 auto;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(214, 178, 94, 0.28);
  border-radius: 1.05rem;
  background-image:
    linear-gradient(160deg, rgba(4, 8, 24, 0.72), rgba(8, 14, 33, 0.5)),
    radial-gradient(circle at top center, rgba(214, 178, 94, 0.24), transparent 55%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.site-header h1 {
  flex: 0 0 auto;
  margin: 0;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 0.8rem;
}

.site-header-actions nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-right: auto;
  font-size: 0.84rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.site-header-actions nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.42rem;
  border-radius: 0.45rem;
  transition: background-color 140ms ease, color 140ms ease;
}

.site-header-actions nav a:hover {
  background: rgba(214, 178, 94, 0.16);
}

.welcome-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(214, 178, 94, 0.42);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(7, 11, 30, 0.62), rgba(18, 26, 50, 0.44));
  margin-left: auto;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.welcome-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.user-welcome {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1;
  color: rgba(244, 226, 186, 0.8);
}

.user-name {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  line-height: 1.1;
  font-weight: 700;
  color: #f4e2ba;
}

.user-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(214, 178, 94, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.user-avatar-sm {
  width: 2.1rem;
  height: 2.1rem;
}

.menu-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  width: min(92vw, 420px);
  max-height: 88vh;
  padding: 1rem;
  border: 1px solid rgba(214, 178, 94, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(170deg, rgba(4, 8, 24, 0.95), rgba(7, 13, 35, 0.92)),
    radial-gradient(circle at top, rgba(214, 178, 94, 0.2), transparent 58%);
  transform: translate(-50%, -50%) scale(0.98);
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.menu-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.side-menu-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(214, 178, 94, 0.25);
}

.side-menu-nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.side-menu-nav a {
  color: #f4e2ba;
  font-size: 0.95rem;
  border: 1px solid rgba(214, 178, 94, 0.25);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: rgba(11, 20, 48, 0.4);
}

.side-menu-nav a:hover,
.menu-link-button:hover {
  background: rgba(24, 34, 67, 0.62);
}

.menu-link-button {
  text-align: left;
  color: #f4e2ba;
  font-size: 0.95rem;
  border: 1px solid rgba(214, 178, 94, 0.25);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: rgba(11, 20, 48, 0.4);
}

.menu-close-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 94, 0.35);
  background: rgba(7, 11, 26, 0.7);
  color: #f4e2ba;
  font-size: 0.82rem;
  font-weight: 700;
}

.menu-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.56);
}

.menu-modal-overlay.hidden,
.menu-modal.hidden {
  display: none;
}

.reminder-modal {
  width: min(92vw, 480px);
  padding: 1.2rem 1.15rem 1rem;
  border-radius: 1rem;
}

.header-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#quick-profile-btn,
#quick-reminder-btn,
#share-app-btn,
#install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 2.35rem;
}

#share-app-btn::before,
#install-btn::before,
#speak-shloka-btn::before,
#speak-desc-btn::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 94, 0.45);
  font-size: 0.7rem;
  line-height: 1;
  color: currentColor;
  background: rgba(5, 9, 24, 0.35);
}

#share-app-btn::before {
  content: "↗";
}

#install-btn::before {
  content: "↓";
}

#speak-shloka-btn::before,
#speak-desc-btn::before {
  content: "▷";
}

#speak-shloka-btn.is-speaking::before,
#speak-desc-btn.is-speaking::before {
  content: "■";
}

.profile-panel h2 {
  letter-spacing: 0.012em;
  line-height: 1.25;
  font-weight: 700;
}

.profile-panel p {
  line-height: 1.65;
}

.profile-form label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.profile-form input[type="text"] {
  min-height: 2.65rem;
  font-size: 0.96rem;
}

.profile-form input[type="file"] {
  font-size: 0.8rem;
  line-height: 1.5;
}

.profile-form button,
.profile-form a {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#profile-form-status {
  line-height: 1.5;
}

body.theme-light .profile-form input[type="text"] {
  background: rgba(255, 250, 237, 0.94);
  border-color: rgba(146, 104, 28, 0.42);
  color: #1f2d44 !important;
}

body.theme-light .profile-form input[type="text"]::placeholder {
  color: rgba(59, 74, 101, 0.7);
}

body.theme-light .profile-form label {
  color: #2a334d !important;
}

body.theme-light #profile-form-status {
  color: #2a334d !important;
}

.reminder-modal h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.reminder-modal p,
.reminder-modal label {
  line-height: 1.55;
}

.reminder-subtitle {
  margin-top: 0.45rem;
  max-width: 34ch;
}

.reminder-toggle {
  margin-top: 1rem;
  font-weight: 600;
}

.reminder-actions {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: minmax(8.4rem, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
}

.reminder-modal input[type="time"] {
  min-height: 2.5rem;
  min-width: 8.3rem;
  font-size: 0.95rem;
  border-radius: 0.65rem;
}

.reminder-modal button {
  min-height: 2.35rem;
}

.reminder-actions #save-reminder-btn,
.reminder-actions #test-reminder-btn {
  min-height: 2.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

#voice-modal {
  width: min(94vw, 560px);
  max-height: 86vh;
}

#voice-modal .reminder-subtitle {
  max-width: none;
}

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

.voice-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 20, 48, 0.4);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.3;
  font-size: 0.78rem;
}

.voice-guide-link:hover {
  background: rgba(24, 34, 67, 0.62);
}

.reminder-status {
  margin-top: 0.65rem;
  line-height: 1.45;
}

.page-title {
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.35;
  letter-spacing: 0.045em;
  font-weight: 700;
  color: #d9c79a;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(214, 178, 94, 0.3);
  background-image:
    linear-gradient(180deg, rgba(4, 8, 24, 0.4), rgba(4, 8, 24, 0.65)),
    radial-gradient(circle at top center, rgba(214, 178, 94, 0.18), transparent 58%);
  text-align: center;
  backdrop-filter: blur(3px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  background: #f0ddb1;
  color: #1b2740;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #f0ddb1;
  outline-offset: 2px;
}

body.theme-dark {
  color: #f4e6c4;
}

body.theme-light {
  color: #1b2740;
  background-image:
    linear-gradient(180deg, rgba(245, 234, 208, 0.62), rgba(230, 219, 188, 0.7)),
    url("./assets/images/krishna-aura-bg.png");
}

body.theme-light .site-header {
  border-color: rgba(146, 104, 28, 0.26);
  background-image:
    linear-gradient(160deg, rgba(247, 239, 215, 0.94), rgba(237, 226, 197, 0.9)),
    radial-gradient(circle at top center, rgba(173, 132, 57, 0.16), transparent 55%);
  box-shadow: 0 14px 28px rgba(84, 61, 20, 0.15);
}

body.theme-light .site-footer {
  border-top-color: rgba(146, 104, 28, 0.28);
  background-image:
    linear-gradient(180deg, rgba(244, 232, 204, 0.56), rgba(233, 220, 190, 0.76)),
    radial-gradient(circle at top center, rgba(173, 132, 57, 0.16), transparent 58%);
}

body.theme-light .site-header h1,
body.theme-light .site-header a,
body.theme-light .site-header p {
  color: #2a334d !important;
}

body.theme-light .page-title {
  color: #334969 !important;
}

body.theme-light .site-header #install-btn {
  border-color: rgba(146, 104, 28, 0.45);
  color: #2a334d;
  background: rgba(255, 245, 220, 0.85);
}

body.theme-light .site-header #share-app-btn {
  border-color: rgba(146, 104, 28, 0.45);
  color: #2a334d;
  background: rgba(255, 245, 220, 0.85);
}

body.theme-light #quick-profile-btn,
body.theme-light #quick-reminder-btn {
  border-color: rgba(146, 104, 28, 0.45);
  color: #2a334d !important;
  background: rgba(255, 245, 220, 0.85);
}

body.theme-light .welcome-trigger {
  border-color: rgba(146, 104, 28, 0.35);
  background: rgba(255, 246, 223, 0.75);
}

body.theme-light .user-name,
body.theme-light .user-welcome {
  color: #2a334d;
}

body.theme-light .menu-modal {
  border-color: rgba(146, 104, 28, 0.35);
  background:
    linear-gradient(170deg, rgba(244, 235, 212, 0.98), rgba(233, 222, 194, 0.96)),
    radial-gradient(circle at top, rgba(173, 132, 57, 0.16), transparent 58%);
}

body.theme-light .side-menu-nav a,
body.theme-light .menu-link-button {
  color: #2a334d;
  border-color: rgba(146, 104, 28, 0.35);
  background: rgba(255, 248, 229, 0.65);
}

body.theme-light .side-menu-nav a:hover {
  background: rgba(245, 233, 202, 0.85);
}

body.theme-light .reminder-modal h2,
body.theme-light .reminder-modal p,
body.theme-light .reminder-modal label,
body.theme-light .reminder-modal #reminder-status {
  color: #23324c !important;
}

body.theme-light .reminder-modal input[type="time"] {
  background: rgba(255, 250, 237, 0.95);
  border-color: rgba(146, 104, 28, 0.42);
  color: #1f2d44 !important;
}

body.theme-light .reminder-modal input[type="checkbox"] {
  accent-color: #caa849;
}

body.theme-light .reminder-modal #save-reminder-btn {
  border-color: rgba(146, 104, 28, 0.45);
  color: #2a334d !important;
  background: rgba(255, 245, 220, 0.88);
}

body.theme-light .reminder-modal #test-reminder-btn {
  border-color: rgba(146, 104, 28, 0.35);
  color: #2a334d !important;
  background: rgba(255, 248, 229, 0.82);
}

@media (display-mode: standalone) {
  body {
    background-image:
      linear-gradient(180deg, rgba(7, 11, 26, 0.7), rgba(17, 28, 69, 0.7)),
      url("./assets/images/splash-gradient.jpeg"),
      url("./assets/images/krishna-aura-bg.png");
  }
}

.sanskrit-text {
  font-family: "Nirmala UI", "Mangal", "Kokila", serif;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#welcome-screen {
  min-height: 220px;
  background-image:
    linear-gradient(145deg, rgba(3, 8, 26, 0.82), rgba(7, 14, 41, 0.68)),
    url("./assets/images/kurukshetra-sunrise-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.theme-light #welcome-screen {
  background-image:
    linear-gradient(145deg, rgba(241, 229, 198, 0.78), rgba(233, 219, 184, 0.62)),
    url("./assets/images/kurukshetra-sunrise-bg.png");
}

#daily-screen {
  background-image:
    linear-gradient(180deg, rgba(8, 13, 35, 0.22), rgba(8, 13, 35, 0.34)),
    url("./assets/images/krishna-aura-bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 1.5rem;
  padding: 0.5rem;
}

body.theme-light #daily-screen {
  background-image:
    linear-gradient(180deg, rgba(241, 231, 205, 0.38), rgba(241, 231, 205, 0.56)),
    url("./assets/images/krishna-aura-bg.png");
}

#verse-card {
  min-height: clamp(560px, 70vh, 880px);
  background-image:
    linear-gradient(140deg, rgba(16, 12, 5, 0.6), rgba(5, 8, 17, 0.72)),
    url("./assets/images/parchment-texture.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#verse-sanskrit {
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#verse-translit {
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#verse-meaning {
  line-height: 1.75;
  letter-spacing: 0.002em;
  overflow-wrap: anywhere;
}

#verse-reflection {
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.reading-content h2 {
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.reading-content h3 {
  line-height: 1.35;
  letter-spacing: 0.006em;
}

.reading-content p,
.reading-content li {
  line-height: 1.9;
  letter-spacing: 0.004em;
}

.reading-content p {
  max-width: 70ch;
}

body.theme-light #verse-card {
  background-image:
    linear-gradient(140deg, rgba(250, 244, 226, 0.84), rgba(239, 230, 204, 0.84)),
    url("./assets/images/parchment-texture.png");
}

body.theme-light #verse-meta,
body.theme-light #verse-sanskrit,
body.theme-light #verse-translit,
body.theme-light #verse-meaning,
body.theme-light #verse-reflection,
body.theme-light #share-status,
body.theme-light #speech-status {
  color: #1b2a43 !important;
}

body.theme-light #verse-translit {
  color: #2f3f5d !important;
}

body.theme-light .section-kicker {
  color: #324765 !important;
  font-weight: 700;
}

body.theme-light #verse-reflection {
  border-color: rgba(146, 104, 28, 0.3);
  background-image:
    radial-gradient(circle at top right, rgba(197, 148, 52, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(235, 216, 170, 0.5), rgba(232, 212, 166, 0.38));
}

body.theme-light #streak-card,
body.theme-light #settings-card {
  background: linear-gradient(145deg, rgba(41, 49, 68, 0.92), rgba(54, 64, 90, 0.88));
  border-color: rgba(255, 228, 166, 0.4);
}

body.theme-light #streak-card p,
body.theme-light #settings-card p,
body.theme-light #settings-card button {
  color: #f6edd7;
}

body.theme-light #settings-card button.bg-gp-gold {
  color: #1f1908;
}

#settings-card input[type="text"],
#settings-card input[type="time"] {
  color-scheme: dark;
}

#settings-card #lang-select {
  color-scheme: dark;
  background: rgba(16, 22, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f7edd6;
}

#settings-card #lang-select option {
  background-color: #101624;
  color: #f7edd6;
}

body.theme-light #settings-card input[type="text"],
body.theme-light #settings-card input[type="time"] {
  background: rgba(23, 30, 45, 0.55);
  border-color: rgba(255, 227, 164, 0.35);
  color: #f7edd6;
}

body.theme-light #settings-card #lang-select {
  background: rgba(23, 30, 45, 0.55);
  border-color: rgba(255, 227, 164, 0.35);
  color: #f7edd6;
}

body.theme-light #settings-card #lang-select option {
  background-color: #1a2336;
  color: #f7edd6;
}

#verse-reflection {
  background-image:
    radial-gradient(circle at top right, rgba(214, 178, 94, 0.25), transparent 50%),
    linear-gradient(180deg, rgba(214, 178, 94, 0.11), rgba(214, 178, 94, 0.06));
}

.control-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  min-width: 7.2rem;
  padding: 0.45rem 0.9rem !important;
  gap: 0.42rem;
  font-weight: 600;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

body.theme-dark .control-chip {
  color: #f7e7bd !important;
  border-color: rgba(230, 194, 104, 0.62) !important;
  background-image: linear-gradient(145deg, rgba(16, 23, 48, 0.92), rgba(25, 17, 9, 0.78)) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

body.theme-light .control-chip {
  color: #243451 !important;
  border-color: rgba(146, 104, 28, 0.45) !important;
  background-image: linear-gradient(145deg, rgba(255, 248, 229, 0.96), rgba(244, 231, 199, 0.9)) !important;
  box-shadow: 0 4px 10px rgba(116, 82, 24, 0.14);
}

.section-kicker {
  font-weight: 700;
}

body.theme-dark .section-kicker {
  color: #e4d8b2 !important;
}

#streak-card {
  overflow: hidden;
  position: relative;
}

#streak-card.milestone-active::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(170deg, rgba(5, 9, 24, 0.48), rgba(5, 9, 24, 0.12)),
    url("./assets/images/kurukshetra-sunrise-bg.png");
  background-position: center;
  background-size: cover;
}

#streak-card.milestone-active::after {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("./assets/images/golden-celebration-glow.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: milestoneGlow 3.2s ease-in-out infinite;
}

@keyframes milestoneGlow {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.05); opacity: 0.75; }
}

@media (max-width: 900px) {
  .site-header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.55rem;
  }

  .site-header-actions nav {
    gap: 0.55rem;
  }
}

@media (max-width: 640px) {
  main {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
  }

  .site-header {
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
  }

  .site-header-top {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    gap: 0.65rem;
  }

  .site-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.6rem;
  }

  .welcome-trigger {
    justify-content: center;
    margin-left: 0;
  }

  .site-header-actions nav {
    justify-content: flex-start;
    row-gap: 0.45rem;
    font-size: 0.78rem;
  }

  .header-action-buttons {
    width: 100%;
    display: flex;
    gap: 0.45rem;
  }

  #quick-profile-btn,
  #quick-reminder-btn {
    display: none !important;
  }

  .site-header #install-btn,
  .site-header #share-app-btn,
  .site-header #menu-toggle,
  .site-header #quick-profile-btn,
  .site-header #quick-reminder-btn {
    width: 100%;
  }

  .page-title {
    font-size: 0.84rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  .profile-panel {
    padding: 1.05rem !important;
    border-radius: 1rem;
  }

  .profile-panel h2 {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
  }

  .profile-panel p {
    font-size: 0.88rem;
  }

  .profile-form {
    gap: 0.8rem;
  }

  .profile-form button,
  .profile-form a {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.84rem !important;
  }

  .reminder-modal {
    width: min(94vw, 360px);
    padding: 1rem 0.92rem 0.88rem;
  }

  #voice-modal {
    width: min(95vw, 380px);
    max-height: 88vh;
  }

  .reminder-modal h2 {
    font-size: 1.25rem;
  }

  .reminder-modal p {
    font-size: 0.8rem;
  }

  .reminder-actions {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .reminder-actions #save-reminder-btn,
  .reminder-actions #test-reminder-btn {
    width: 100%;
    justify-content: center;
  }

  .voice-guide-grid {
    grid-template-columns: 1fr;
  }

  #daily-screen {
    border-radius: 0.9rem;
    padding: 0.2rem;
  }

  #verse-card {
    min-height: 0;
    padding: 0.85rem !important;
    border-radius: 1rem;
  }

  #verse-card > div:first-child,
  #verse-card > div:nth-of-type(2) {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  #verse-meta {
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .section-kicker {
    font-size: 0.68rem !important;
    letter-spacing: 0.06em;
  }

  #verse-sanskrit {
    font-size: 1.24rem !important;
    line-height: 1.6;
  }

  #verse-translit {
    font-size: 0.88rem !important;
    line-height: 1.65;
  }

  #verse-meaning {
    font-size: 0.93rem !important;
    line-height: 1.78;
  }

  #verse-reflection {
    font-size: 0.86rem !important;
    line-height: 1.75;
    padding: 0.78rem;
  }

  .control-chip {
    min-width: 5.8rem;
    min-height: 2.1rem;
    font-size: 0.72rem !important;
    padding: 0.28rem 0.58rem !important;
  }

  #share-btn,
  #download-btn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .site-header h1 {
    font-size: 1.85rem !important;
  }

  .site-header-actions nav {
    font-size: 0.78rem;
    gap: 0.5rem;
  }

  .control-chip {
    min-width: 5.7rem;
    font-size: 0.72rem !important;
  }

  #share-btn,
  #download-btn {
    width: 100%;
    flex: 1 1 100%;
  }
}

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