:root {
  --navy: #0a254f;
  --blue: #4d8dff;
  --blue-2: #75d4ff;
  --aqua: #96efff;
  --muted: #617693;
  --panel: rgba(255, 255, 255, 0.64);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(124, 187, 234, 0.24);
  --shadow: 0 22px 58px rgba(88, 160, 220, 0.18);
  --page-start: #ffffff;
  --page-mid: #f4fbff;
  --page-end: #dcf4ff;
  --photo-frame: rgba(255, 247, 225, 0.92);
  --pink-panel: rgba(255, 237, 249, 0.62);
  --wave-top: #a9e3ff;
  --wave-bottom: #76c8ef;
}

:root.deep-theme {
  --navy: #f3fbff;
  --blue: #91c8ff;
  --blue-2: #9ff0ff;
  --aqua: #a7f2ff;
  --muted: #c4d5e8;
  --panel: rgba(14, 36, 70, 0.58);
  --panel-strong: rgba(18, 45, 82, 0.80);
  --line: rgba(167, 224, 255, 0.18);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --page-start: #07182f;
  --page-mid: #12345f;
  --page-end: #1e5f8b;
  --photo-frame: rgba(18, 48, 88, 0.88);
  --pink-panel: rgba(24, 48, 88, 0.66);
  --wave-top: #6eb9e6;
  --wave-bottom: #438fc4;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--page-start);
}

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

.app-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 83% 10%, rgba(141, 220, 255, 0.62), transparent 31%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 52% 48%, rgba(151, 240, 255, 0.26), transparent 34%),
    linear-gradient(90deg, var(--page-start) 0%, var(--page-mid) 55%, var(--page-end) 100%);
}

.deep-theme .app-frame {
  background:
    radial-gradient(circle at 83% 10%, rgba(92, 188, 244, 0.20), transparent 31%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.03), transparent 28%),
    radial-gradient(circle at 52% 48%, rgba(151, 240, 255, 0.10), transparent 34%),
    linear-gradient(90deg, var(--page-start) 0%, var(--page-mid) 55%, var(--page-end) 100%);
}

.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.48) 34%, rgba(255,255,255,0.05) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.58) 78%);
  pointer-events: none;
}

.deep-theme .app-frame::before {
  background:
    linear-gradient(90deg, rgba(4,14,30,0.38) 0%, rgba(4,14,30,0.12) 44%, rgba(255,255,255,0.02) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(4,14,30,0.18) 78%);
}

.app-frame::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -5.6vh;
  z-index: -1;
  height: 15vh;
  min-height: 95px;
  background:
    radial-gradient(circle at 16% 42%, rgba(255,255,255,0.42) 0 9px, transparent 10px),
    radial-gradient(circle at 86% 44%, rgba(255,255,255,0.36) 0 9px, transparent 10px),
    linear-gradient(180deg, var(--wave-top), var(--wave-bottom));
  border-radius: 48% 52% 0 0 / 45% 48% 0 0;
  box-shadow: inset 0 22px 30px rgba(255,255,255,0.25);
}

.topbar {
  position: relative;
  z-index: 10;
  width: min(92vw, 1408px);
  height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 140px;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(74, 157, 214, 0.18));
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: clamp(1.22rem, 1.8vw, 1.58rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.brand strong:last-child {
  color: var(--blue);
}

.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 38px);
}

.nav-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 47px;
  padding: 0 17px;
  border-radius: 18px;
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
}

.nav-pill a.active,
.nav-pill a:hover {
  background: rgba(199, 230, 255, 0.72);
  color: #2875ff;
  box-shadow: 0 12px 28px rgba(77, 141, 255, 0.12);
}

.deep-theme .nav-pill a.active,
.deep-theme .nav-pill a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--blue);
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.circle-button {
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.46),
    0 12px 26px rgba(89, 157, 217, 0.11);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.deep-theme .circle-button {
  background: rgba(255,255,255,0.13);
}
.hero-grid {
  position: relative;
  z-index: 3;
  width: min(76vw, 1168px);
  height: 405px;
  margin: 31px auto 0;
  display: grid;
  grid-template-columns: 41% 39% 20%;
  align-items: start;
}

.hero-grid.no-dock {
  height: 455px;
  margin-top: 24px;
}

.hero-copy {
  padding-top: 78px;
}

.hero-grid.no-dock .hero-copy {
  padding-top: 90px;
}

.hero-copy h1 {
  margin: 0;
  display: grid;
  gap: 3px;
  color: var(--navy);
  font-size: clamp(3.4rem, 4.35vw, 4.35rem);
  line-height: 0.90;
  letter-spacing: -0.085em;
  font-weight: 900;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 em {
  color: var(--blue);
  font-style: normal;
  text-shadow: 0 8px 22px rgba(77, 141, 255, 0.12);
}

.hero-copy p {
  width: min(390px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.14vw, 1.13rem);
  line-height: 1.55;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
}

.primary-button {
  min-width: 186px;
  color: #fff;
  background: linear-gradient(135deg, #5b96ff, #2875ff);
  box-shadow: 0 18px 34px rgba(77, 141, 255, 0.24);
}

.primary-button span {
  margin-left: 12px;
  font-size: 1.1rem;
}

.secondary-button {
  min-width: 150px;
  background: rgba(255,255,255,0.64);
  color: #506c91;
  backdrop-filter: blur(16px);
}

.deep-theme .secondary-button {
  background: rgba(255,255,255,0.12);
  color: var(--navy);
}

.secondary-button span {
  margin-left: 7px;
  opacity: 0.55;
}

.hero-art {
  position: relative;
  height: 420px;
}

.water-portal {
  position: absolute;
  left: -18px;
  top: 3px;
  width: 370px;
  height: 370px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 30%, rgba(255,255,255,0.86), transparent 22%),
    linear-gradient(135deg, rgba(156,235,255,0.74), rgba(83,166,246,0.24));
  box-shadow:
    0 28px 55px rgba(98, 173, 230, 0.18),
    inset 0 0 0 7px rgba(255,255,255,0.66),
    inset 0 -20px 45px rgba(42, 150, 217, 0.18);
}

.water-portal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  z-index: 3;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.5),
    inset 0 24px 42px rgba(255,255,255,0.24);
  pointer-events: none;
}

.water-portal::after {
  content: "";
  position: absolute;
  inset: auto 8% -8% 8%;
  height: 34%;
  border-radius: 50%;
  background: rgba(87,186,235,0.24);
  filter: blur(4px);
}

.hero-squirtle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 392px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -49%);
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(21, 86, 151, 0.12));
}

.quick-menu {
  position: absolute;
  right: -28px;
  top: 47px;
  width: 248px;
  min-height: 343px;
  padding: 27px 25px;
  border-radius: 24px;
  background: var(--pink-panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.72);
  display: grid;
  gap: 22px;
}

.quick-menu a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}

.menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.68);
  font-size: 1.42rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

.deep-theme .menu-icon {
  background: rgba(255,255,255,0.10);
}

.quick-menu strong,
.quick-menu small {
  display: block;
}

.quick-menu strong {
  margin-bottom: 7px;
  font-size: 0.98rem;
  font-weight: 900;
}

.quick-menu small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.28;
  font-weight: 700;
}

.recent-row {
  position: relative;
  z-index: 4;
  width: min(76vw, 1168px);
  height: 214px;
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.recent-row.no-dock-recent {
  margin-top: 22px;
}

.recent-copy {
  padding-top: 10px;
}

.recent-copy p {
  margin: 0 0 17px;
  color: #4d8dff;
  font-size: 0.82rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.recent-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 2.2vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.recent-copy a {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: #3478ff;
  font-weight: 900;
}

.recent-copy a span {
  margin-left: 10px;
  font-size: 1.25rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 24px;
}

.photo-card {
  position: relative;
  display: block;
  height: 180px;
  padding: 5px;
  border-radius: 18px;
  overflow: visible;
  background: var(--photo-frame);
  box-shadow: 0 18px 34px rgba(126, 170, 203, 0.22);
}

.photo-card:nth-child(1),
.photo-card:nth-child(2) {
  border: 2px solid rgba(141, 221, 245, 0.92);
}

.photo-card:nth-child(3),
.photo-card:nth-child(4) {
  border: 2px solid rgba(245, 218, 151, 0.82);
}

.photo-card.offset-card {
  transform: translateY(10px);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 13px;
  object-fit: cover;
}

.photo-card span {
  position: absolute;
  left: 16px;
  bottom: 15px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: rgba(2, 37, 78, 0.34);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.wave-footer {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 74px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.wave-footer img {
  width: 67px;
  height: 67px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(7, 47, 89, 0.14));
}

.placeholder-frame {
  background:
    radial-gradient(circle at 82% 24%, rgba(121, 213, 255, 0.42), transparent 26%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.94), transparent 27%),
    radial-gradient(circle at 50% 50%, rgba(151, 240, 255, 0.28), transparent 38%),
    linear-gradient(180deg, var(--page-start) 0%, var(--page-mid) 50%, #ffffff 73%, var(--page-end) 100%);
}

.placeholder-panel {
  position: relative;
  z-index: 4;
  width: min(74vw, 1120px);
  height: min(610px, calc(100vh - 275px));
  min-height: 430px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 30px;
  padding: clamp(26px, 4.2vw, 54px);
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.placeholder-kicker {
  margin: 0 0 16px;
  color: #4d8dff;
  font-size: 0.82rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.placeholder-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.90;
  letter-spacing: -0.085em;
  font-weight: 900;
}

.placeholder-copy h2 {
  margin: 18px 0 0;
  color: var(--blue);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.placeholder-copy > p:not(.placeholder-kicker) {
  width: min(460px, 100%);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 700;
}

.placeholder-art {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
}

.placeholder-portal {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.placeholder-squirtle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 392px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -49%);
  object-fit: contain;
}

.placeholder-card {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 4%;
  width: 190px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 20px 50px rgba(93, 166, 222, 0.16);
  backdrop-filter: blur(18px);
}

.deep-theme .placeholder-card {
  background: rgba(8,32,66,0.72);
}

.placeholder-card img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  display: block;
}

.placeholder-card strong {
  display: block;
  padding: 13px 14px 15px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 900;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 24, 50, 0.30);
  backdrop-filter: blur(12px);
}

.search-overlay.open {
  display: grid;
}

.search-card {
  position: relative;
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.72);
  background: var(--panel-strong);
  box-shadow: 0 34px 80px rgba(93, 166, 222, 0.18);
}

.search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(77,141,255,0.12);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.45rem;
}

.search-card p {
  margin: 0 0 12px;
  color: var(--blue);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.75rem;
}

.search-card h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.search-card input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--navy);
  background: rgba(255,255,255,0.74);
  font: inherit;
}

.search-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .app-frame { min-height: 740px; }
  .topbar, .hero-grid, .recent-row, .placeholder-panel { width: min(92vw, 1040px); }
  .topbar { grid-template-columns: 220px 1fr 140px; }
  .hero-grid { grid-template-columns: 41% 36% 23%; }
  .quick-menu { right: 0; }
  .photo-strip { gap: 16px; }
}

@media (max-width: 900px) {
  html, body { overflow: auto; }

  .app-frame {
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    padding-bottom: 90px;
  }

  .topbar {
    height: auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
  }

  .nav-pill { display: none; }

  .hero-grid,
  .recent-row,
  .placeholder-panel {
    width: min(92vw, 620px);
  }

  .hero-grid,
  .hero-grid.no-dock {
    height: auto;
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-grid.no-dock .hero-copy {
    padding-top: 28px;
  }

  .hero-art {
    height: 380px;
  }

  .water-portal {
    left: 50%;
    transform: translateX(-50%);
    width: min(370px, 90vw);
    height: min(370px, 90vw);
  }

  .quick-menu {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    min-height: auto;
    margin-top: 10px;
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-row {
    height: auto;
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-card.offset-card { transform: none; }

  .placeholder-panel {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    margin-top: 10px;
    padding: 28px;
  }

  .placeholder-art {
    min-height: 360px;
  }

  .placeholder-portal {
    transform: translate(-50%, -50%);
  }

  .placeholder-card {
    right: 0;
    bottom: 0;
    width: 170px;
  }

  .wave-footer { bottom: 0; }
}

@media (max-width: 560px) {
  .brand img { width: 62px; height: 62px; }
  .brand strong { font-size: 1.15rem; }
  .hero-copy h1 { font-size: 3rem; }
  .quick-menu, .photo-strip { grid-template-columns: 1fr; }
  .placeholder-copy h1 { font-size: 3.2rem; }
  .placeholder-copy h2 { font-size: 2rem; }
  .placeholder-card { display: none; }
}

@media (max-height: 820px) and (min-width: 901px) {
  .topbar { height: 84px; }

  .hero-grid,
  .hero-grid.no-dock {
    height: 400px;
    margin-top: 8px;
  }

  .hero-copy,
  .hero-grid.no-dock .hero-copy {
    padding-top: 58px;
  }

  .hero-copy h1 { font-size: clamp(3rem, 4.05vw, 4rem); }
  .hero-copy p { margin-top: 18px; }

  .quick-menu {
    top: 34px;
    min-height: 312px;
    gap: 16px;
    padding: 22px;
  }

  .water-portal {
    width: 340px;
    height: 340px;
  }

  .hero-squirtle,
  .placeholder-squirtle {
    width: 360px;
  }

  .recent-row.no-dock-recent {
    margin-top: 12px;
    height: 190px;
  }

  .photo-card { height: 168px; }
  .wave-footer { height: 60px; }
  .wave-footer img { width: 55px; height: 55px; }

  .placeholder-panel {
    height: min(560px, calc(100vh - 245px));
    min-height: 405px;
    margin-top: 8px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .placeholder-art { min-height: 315px; }
}

@media (max-height: 720px) and (min-width: 901px) {
  .placeholder-panel {
    height: min(500px, calc(100vh - 220px));
    min-height: 360px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .placeholder-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.7rem);
  }

  .placeholder-copy h2 {
    font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  }

  .placeholder-copy > p:not(.placeholder-kicker) {
    margin-top: 16px;
  }

  .placeholder-art {
    min-height: 280px;
  }

  .placeholder-portal {
    width: 295px;
    height: 295px;
  }

  .placeholder-squirtle {
    width: 318px;
  }

  .placeholder-card {
    width: 165px;
  }

  .placeholder-card img {
    height: 88px;
  }
}


.theme-toggle-button {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.theme-toggle-button:hover {
  transform: translateY(-1px) scale(1.04);
}

.theme-toggle-button img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(74, 157, 214, 0.16));
}

.deep-theme .theme-toggle-button {
  background: transparent;
  box-shadow: none;
}

.deep-theme .theme-toggle-button img {
  filter: drop-shadow(0 10px 18px rgba(122, 210, 255, 0.20));
}


body,
button,
input,
textarea,
select,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
strong,
small,
span {
  text-transform: lowercase;
}


/* subpage cleanup: sad placeholder image */
.placeholder-portal {
  overflow: hidden;
}

.placeholder-squirtle {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.placeholder-card {
  display: none;
}

@media (max-width: 900px) {
  .placeholder-squirtle {
    width: 100%;
    height: 100%;
  }
}

@media (max-height: 820px) and (min-width: 901px) {
  .placeholder-squirtle {
    width: 100%;
    height: 100%;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .placeholder-squirtle {
    width: 100%;
    height: 100%;
  }
}


/* new squirtle icon fit */
.brand img {
  object-fit: contain;
}

.wave-footer img {
  object-fit: contain;
}


/* center the top subpage navigation buttons relative to the full page */
.topbar {
  position: relative;
}

.nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-self: auto;
}

.top-actions {
  position: absolute;
  right: 0;
}

@media (max-width: 900px) {
  .nav-pill,
  .top-actions {
    position: static;
    transform: none;
  }
}


/* responsive dynamic header/menu layout */
.topbar {
  position: relative;
  height: auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding-block: 10px;
}

.nav-pill {
  position: static !important;
  transform: none !important;
  justify-self: center;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  row-gap: 8px;
  column-gap: clamp(8px, 1.8vw, 28px);
}

.nav-pill a {
  min-width: auto;
  white-space: nowrap;
}

.top-actions {
  position: static !important;
  justify-self: end;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* medium windows: keep the menu visible by moving it onto its own row */
@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(180px, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 8px;
    min-height: 118px;
  }

  .brand {
    grid-area: brand;
  }

  .top-actions {
    grid-area: actions;
  }

  .nav-pill {
    grid-area: nav;
    width: 100%;
    justify-self: center;
  }

  .nav-pill a {
    height: 40px;
    padding-inline: 14px;
    font-size: 0.94rem;
  }
}

/* small windows: do not hide the menu; let it wrap cleanly */
@media (max-width: 900px) {
  .nav-pill {
    display: flex !important;
    position: static !important;
    transform: none !important;
  }

  .top-actions {
    display: flex !important;
    position: static !important;
  }
}

@media (max-width: 620px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    justify-items: center;
    min-height: auto;
    padding-block: 14px;
  }

  .brand {
    justify-self: center;
  }

  .top-actions {
    justify-self: center;
  }

  .nav-pill {
    gap: 7px;
  }

  .nav-pill a {
    height: 36px;
    padding-inline: 11px;
    font-size: 0.88rem;
  }
}


/* things dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-drop-button {
  min-width: 78px;
  height: 47px;
  padding: 0 17px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-transform: lowercase;
}

.nav-drop-button.active,
.nav-drop-button:hover,
.nav-dropdown.open .nav-drop-button {
  background: rgba(199, 230, 255, 0.72);
  color: #2875ff;
  box-shadow: 0 12px 28px rgba(77, 141, 255, 0.12);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  min-width: 150px;
  padding: 10px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-menu a {
  min-width: 0;
  width: 100%;
  height: 40px;
  justify-content: flex-start;
  padding: 0 12px;
}

.nav-drop-menu a:hover {
  background: rgba(199, 230, 255, 0.58);
}

/* cute tool pages */
.tool-frame {
  min-height: 680px;
}

.tool-panel {
  position: relative;
  z-index: 4;
  width: min(74vw, 1120px);
  height: min(610px, calc(100vh - 275px));
  min-height: 430px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 30px;
  padding: clamp(26px, 4.2vw, 54px);
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.tool-kicker {
  margin: 0 0 16px;
  color: #4d8dff;
  font-size: 0.82rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.tool-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.90;
  letter-spacing: -0.085em;
  font-weight: 900;
}

.tool-copy p:not(.tool-kicker) {
  width: min(440px, 100%);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 700;
}

.calendar-card,
.split-card {
  width: min(100%, 520px);
  justify-self: end;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.72), transparent 28%),
    var(--pink-panel);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.calendar-top {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 14px;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.calendar-top strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.calendar-top small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-tool-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  color: var(--blue);
  background: rgba(255,255,255,0.68);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.48);
  cursor: pointer;
  font-weight: 900;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255,255,255,0.62);
  font-weight: 900;
}

.calendar-day.empty {
  background: transparent;
}

.calendar-day.today {
  color: #fff;
  background: linear-gradient(135deg, #5b96ff, #75d4ff);
  box-shadow: 0 10px 20px rgba(77, 141, 255, 0.22);
}

.split-card {
  display: grid;
  gap: 16px;
}

.split-card label {
  display: grid;
  gap: 8px;
}

.split-card label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.split-card input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  background: rgba(255,255,255,0.72);
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  outline: none;
}

.split-card input:focus {
  border-color: rgba(77,141,255,0.55);
  box-shadow: 0 0 0 4px rgba(77,141,255,0.12);
}

.split-result {
  margin-top: 6px;
  padding: 22px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255,255,255,0.70);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.48);
}

.split-result span,
.split-result small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.split-result strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
}

@media (max-width: 900px) {
  .tool-panel {
    width: min(92vw, 620px);
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    margin-top: 10px;
    padding: 28px;
  }

  .calendar-card,
  .split-card {
    justify-self: stretch;
  }

  .nav-drop-menu {
    top: calc(100% + 6px);
  }
}

@media (max-width: 620px) {
  .nav-dropdown {
    width: auto;
  }

  .nav-drop-button {
    height: 36px;
    padding-inline: 11px;
    font-size: 0.88rem;
  }

  .calendar-card,
  .split-card {
    padding: 18px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    border-radius: 11px;
    font-size: 0.88rem;
  }
}


/* things menu: hover-friendly dropdown */
.nav-dropdown {
  padding-block: 12px;
  margin-block: -12px;
}

.nav-drop-menu {
  top: calc(100% - 2px);
}

/* invisible bridge so the menu does not close while moving mouse downward */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  top: 100%;
  height: 20px;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu,
.nav-drop-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-drop-button,
.nav-dropdown:focus-within .nav-drop-button {
  background: rgba(199, 230, 255, 0.72);
  color: #2875ff;
  box-shadow: 0 12px 28px rgba(77, 141, 255, 0.12);
}


/* things apps: stacked layout with no outer box */
.tool-panel {
  width: min(82vw, 1040px);
  height: auto;
  min-height: 0;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.tool-copy {
  width: min(820px, 100%);
}

.tool-copy h1 {
  font-size: clamp(3.6rem, 7vw, 6.4rem);
}

.tool-copy p:not(.tool-kicker) {
  width: min(720px, 100%);
  margin-top: 14px;
}

.calendar-card,
.split-card {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

/* keep the actual app as the main cute card */
.calendar-card,
.split-card {
  background: linear-gradient(180deg, rgba(255, 242, 250, 0.82), rgba(232, 249, 255, 0.72));
}

.deep-theme .calendar-card,
.deep-theme .split-card {
  background: linear-gradient(180deg, rgba(24, 56, 100, 0.92), rgba(13, 36, 72, 0.92));
}

.deep-theme .calendar-top strong,
.deep-theme .tool-copy h1,
.deep-theme .split-result strong {
  color: var(--navy);
}

.deep-theme .tool-copy p,
.deep-theme .calendar-top small,
.deep-theme .calendar-weekdays span,
.deep-theme .split-card label span,
.deep-theme .split-result span,
.deep-theme .split-result small {
  color: var(--muted);
}

.deep-theme .calendar-day {
  color: #eaf8ff;
  background: rgba(255, 255, 255, 0.12);
}

.deep-theme .calendar-day.empty {
  background: transparent;
}

.deep-theme .calendar-day.today {
  color: #06172d;
  background: linear-gradient(135deg, #9ee7ff, #91c8ff);
}

.deep-theme .split-card input {
  color: #eaf8ff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 224, 255, 0.22);
}

.deep-theme .split-result {
  background: rgba(255, 255, 255, 0.12);
}

.deep-theme .split-result strong {
  color: #9ee7ff;
}

@media (max-width: 900px) {
  .tool-panel {
    width: min(92vw, 720px);
    margin-top: 12px;
    padding: 0;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .tool-panel {
    width: min(94vw, 560px);
    gap: 18px;
  }

  .tool-copy h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }
}


/* compact things apps so they stay above the footer */
.tool-panel {
  width: min(78vw, 980px);
  margin-top: 10px;
  gap: 14px;
}

.tool-copy h1 {
  font-size: clamp(3rem, 5.7vw, 5.1rem);
  line-height: 0.9;
}

.tool-copy p:not(.tool-kicker) {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.tool-kicker {
  margin-bottom: 8px;
}

/* calendar: shorter card, smaller cells, less padding */
.calendar-card {
  padding: 18px 22px;
}

.calendar-top {
  margin-bottom: 12px;
}

.calendar-top strong {
  font-size: 1.18rem;
}

.calendar-top small {
  font-size: 0.74rem;
}

.mini-tool-button {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.calendar-weekdays,
.calendar-grid {
  gap: 7px;
}

/* override square/tall cells so the whole calendar fits above the footer */
.calendar-day {
  aspect-ratio: auto !important;
  height: clamp(34px, 5.4vh, 54px);
  min-height: 0 !important;
  border-radius: 13px;
  font-size: 0.92rem;
}

/* split: keep it compact too */
.split-card {
  padding: 20px 22px;
  gap: 12px;
}

.split-card input {
  height: 46px;
}

.split-result {
  min-height: 96px;
  padding: 16px;
}

.split-result strong {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

/* keep footer below the compact app visually */
.tool-frame .wave-footer {
  bottom: 4px;
}

.tool-frame .wave-footer img {
  width: 58px;
  height: 58px;
}

/* shorter screens get a more compact layout */
@media (max-height: 820px) and (min-width: 901px) {
  .tool-panel {
    margin-top: 2px;
    gap: 10px;
  }

  .tool-copy h1 {
    font-size: clamp(2.7rem, 5.1vw, 4.5rem);
  }

  .tool-copy p:not(.tool-kicker) {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .calendar-card {
    padding: 14px 18px;
  }

  .calendar-top {
    margin-bottom: 8px;
  }

  .calendar-day {
    height: clamp(30px, 4.8vh, 46px);
    border-radius: 11px;
    font-size: 0.86rem;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 6px;
  }

  .split-card {
    padding: 16px 18px;
  }

  .split-result {
    min-height: 82px;
  }
}

@media (max-width: 900px) {
  .tool-panel {
    width: min(92vw, 680px);
    margin-top: 8px;
  }

  .calendar-day {
    height: clamp(32px, 6.4vw, 48px);
  }
}

@media (max-width: 620px) {
  .tool-panel {
    width: min(94vw, 540px);
    gap: 12px;
  }

  .calendar-card,
  .split-card {
    padding: 14px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    height: 32px;
    border-radius: 10px;
    font-size: 0.8rem;
  }
}


/* split page: ez / ai-erp modes */
.split-mode-card {
  width: 100%;
  display: grid;
  gap: 14px;
}

.split-mode-toggle {
  width: fit-content;
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 20px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 12px 28px rgba(77,141,255,0.10);
}

.split-mode-button {
  height: 42px;
  min-width: 92px;
  border: 0;
  border-radius: 15px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-transform: lowercase;
}

.split-mode-button.active {
  color: #2875ff;
  background: rgba(199, 230, 255, 0.82);
  box-shadow: 0 10px 22px rgba(77,141,255,0.13);
}

.split-mode-panel {
  display: none;
}

.split-mode-panel.active {
  display: block;
}

.split-card-ez {
  width: 100%;
}

.ai-erp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 242, 250, 0.82), rgba(232, 249, 255, 0.72));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 14px 30px rgba(77,141,255,0.10);
}

.ai-erp-toolbar strong,
.ai-erp-summary strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
}

.ai-erp-toolbar small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 2px;
}

.ai-erp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ai-erp-actions .mini-tool-button {
  width: auto;
  padding: 0 14px;
  white-space: nowrap;
}

.ai-erp-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 242, 250, 0.82), rgba(232, 249, 255, 0.72));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
}

.ai-erp-table {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  padding: 12px;
}

.ai-erp-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
  padding: 8px 8px 10px;
}

.ai-erp-table td {
  padding: 6px;
  vertical-align: middle;
}

.ai-erp-table input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 10px;
  background: rgba(255,255,255,0.72);
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  outline: none;
}

.ai-erp-table input:focus {
  border-color: rgba(77,141,255,0.55);
  box-shadow: 0 0 0 4px rgba(77,141,255,0.12);
}

.ai-row-total {
  display: inline-flex;
  min-width: 92px;
  height: 42px;
  align-items: center;
  color: var(--blue);
  font-weight: 900;
}

.ai-row-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.68);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.ai-row-remove:hover {
  color: #2875ff;
  background: rgba(199, 230, 255, 0.72);
}

.ai-erp-summary {
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow: 0 14px 30px rgba(77,141,255,0.10);
}

.ai-erp-summary span {
  color: var(--muted);
  font-weight: 900;
}

.ai-erp-summary strong {
  color: var(--blue);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.deep-theme .split-mode-toggle,
.deep-theme .ai-erp-toolbar,
.deep-theme .ai-erp-table-wrap {
  background: linear-gradient(180deg, rgba(24, 56, 100, 0.92), rgba(13, 36, 72, 0.92));
  border-color: rgba(167, 224, 255, 0.18);
}

.deep-theme .split-mode-button {
  color: var(--muted);
}

.deep-theme .split-mode-button.active {
  color: #06172d;
  background: linear-gradient(135deg, #9ee7ff, #91c8ff);
}

.deep-theme .ai-erp-toolbar strong,
.deep-theme .ai-erp-summary strong {
  color: #9ee7ff;
}

.deep-theme .ai-erp-toolbar small,
.deep-theme .ai-erp-table th,
.deep-theme .ai-erp-summary span {
  color: var(--muted);
}

.deep-theme .ai-erp-table input {
  color: #eaf8ff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(167, 224, 255, 0.22);
}

.deep-theme .ai-row-remove,
.deep-theme .ai-erp-summary {
  background: rgba(255,255,255,0.12);
}

@media (max-width: 720px) {
  .split-mode-toggle {
    width: 100%;
  }

  .split-mode-button {
    flex: 1;
    min-width: 0;
  }

  .ai-erp-toolbar,
  .ai-erp-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-erp-actions {
    justify-content: flex-start;
  }
}


/* ai-erp receipt table like a receipt spreadsheet */
.ai-erp-column-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(255,255,255,0.72);
}

.ai-erp-column-controls label {
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  background: rgba(255,255,255,0.42);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.ai-erp-column-controls input {
  accent-color: #5b96ff;
}

.ai-erp-table {
  min-width: 760px;
}

.ai-erp-table th {
  vertical-align: bottom;
}

.ai-erp-table th span {
  display: block;
  margin-bottom: 5px;
}

.ai-erp-table th label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.ai-erp-table th input {
  width: 58px;
  height: 30px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.ai-erp-table td,
.ai-erp-table th {
  border-bottom: 1px solid rgba(111, 142, 179, 0.13);
}

.ai-erp-table tbody tr:last-child td {
  border-bottom-color: rgba(111, 142, 179, 0.22);
}

.ai-erp-table tfoot td {
  padding: 10px 6px;
  border-top: 2px solid rgba(12, 42, 84, 0.18);
  border-bottom: 0;
}

.ai-erp-table tfoot strong {
  color: var(--navy);
  font-weight: 900;
}

.ai-erp-table td span,
.ai-erp-table td strong {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--navy);
  font-weight: 900;
}

.ai-erp-table .ai-row-total {
  color: var(--blue);
}

.ai-col-hidden {
  display: none !important;
}

.ai-erp-summary {
  display: none;
}

.deep-theme .ai-erp-column-controls {
  background: rgba(255,255,255,0.10);
  border-color: rgba(167, 224, 255, 0.18);
}

.deep-theme .ai-erp-column-controls label {
  color: var(--muted);
  background: rgba(255,255,255,0.10);
}

.deep-theme .ai-erp-table td,
.deep-theme .ai-erp-table th {
  border-bottom-color: rgba(167, 224, 255, 0.13);
}

.deep-theme .ai-erp-table tfoot td {
  border-top-color: rgba(167, 224, 255, 0.25);
}

.deep-theme .ai-erp-table td span,
.deep-theme .ai-erp-table td strong,
.deep-theme .ai-erp-table tfoot strong {
  color: #eaf8ff;
}

.deep-theme .ai-erp-table .ai-row-total {
  color: #9ee7ff;
}


/* calendar: bc/richmond holiday labels */
.calendar-day {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
  text-align: center;
}

.calendar-day-number {
  line-height: 1;
  font-weight: 900;
}

.calendar-day.has-holiday {
  background: rgba(255, 247, 215, 0.92);
  box-shadow: inset 0 0 0 2px rgba(255, 204, 105, 0.32);
}

.calendar-day.today.has-holiday {
  background: linear-gradient(135deg, #5b96ff, #75d4ff);
}

.calendar-holiday-list {
  width: 100%;
  display: grid;
  gap: 2px;
}

.calendar-holiday {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9b6b00;
  font-size: clamp(0.48rem, 0.72vw, 0.68rem);
  line-height: 1.05;
  font-weight: 900;
}

.calendar-holiday.observed {
  color: #2875ff;
}

.calendar-day.today .calendar-holiday,
.calendar-day.today .calendar-holiday.observed {
  color: #ffffff;
}

.deep-theme .calendar-day.has-holiday {
  background: rgba(255, 213, 109, 0.20);
  box-shadow: inset 0 0 0 2px rgba(255, 213, 109, 0.22);
}

.deep-theme .calendar-holiday {
  color: #ffe3a1;
}

.deep-theme .calendar-holiday.observed {
  color: #9ee7ff;
}

@media (max-height: 820px) and (min-width: 901px) {
  .calendar-day {
    gap: 2px;
    padding: 4px;
  }

  .calendar-holiday {
    font-size: 0.48rem;
  }
}

@media (max-width: 620px) {
  .calendar-holiday {
    display: none;
  }

  .calendar-day.has-holiday::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffbc42;
  }

  .calendar-day.has-holiday.today::after {
    background: #ffffff;
  }
}


/* calendar: recurring birthday labels */
.calendar-holiday.birthday {
  color: #d94f9b;
}

.calendar-day.has-holiday:has(.calendar-holiday.birthday) {
  background: rgba(255, 232, 246, 0.94);
  box-shadow: inset 0 0 0 2px rgba(255, 148, 206, 0.28);
}

.calendar-day.today .calendar-holiday.birthday {
  color: #ffffff;
}

.deep-theme .calendar-holiday.birthday {
  color: #ffaddd;
}

.deep-theme .calendar-day.has-holiday:has(.calendar-holiday.birthday) {
  background: rgba(255, 148, 206, 0.18);
  box-shadow: inset 0 0 0 2px rgba(255, 148, 206, 0.20);
}

@media (max-width: 620px) {
  .calendar-day.has-holiday:has(.calendar-holiday.birthday)::after {
    background: #ff7ac3;
  }
}
