:root {
  --bg: #f6ebe6;
  --bg-elevated: #ffffff;
  --ink: #1b2a4a;
  --ink-secondary: #4d5d73;
  --ink-tertiary: #7a8799;
  --heading: #16324f;
  --accent: #ff7a45;
  --accent-soft: rgba(255, 122, 69, 0.16);
  --fill: #f3ece7;
  --fill-strong: #e7ddd6;
  --separator: rgba(22, 50, 79, 0.08);
  --glass: #ffffff;
  --glass-border: rgba(22, 50, 79, 0.06);
  --shadow: 0 18px 40px rgba(22, 50, 79, 0.08);
  --glow-a: rgba(255, 168, 130, 0.45);
  --glow-b: rgba(127, 211, 194, 0.35);
  --chrome: #ead7cc;
  --card: #ffffff;
  --btn: #1a2744;
  --btn-text: #ffffff;
  --teal: #2bbbad;
  --mint: #c8efe4;
  --peach: #ffd8c4;
  --radius: 28px;
  --page-pad: 24px;
}

html {
  color-scheme: light;
}

body::before {
  background:
    radial-gradient(ellipse 80% 50% at 90% 0%, var(--glow-a), transparent 58%),
    radial-gradient(ellipse 70% 45% at 0% 100%, var(--glow-b), transparent 55%);
}

.device {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, var(--peach) 0%, var(--mint) 42%, var(--bg) 78%);
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
}

.btn-secondary {
  background: var(--card);
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--separator);
}

.card,
.group,
.paste-card {
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.large-title {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.store-date {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--heading) 62%, transparent);
}

.lede {
  margin: 8px 0 0;
  color: var(--ink-secondary);
}

.soft-scroll,
.screen.is-bloom,
.sheet-card,
.preview-pane {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.soft-scroll:hover,
.soft-scroll:focus-within,
.screen.is-bloom:hover,
.sheet-card:hover,
.preview-pane:hover {
  scrollbar-color: rgba(22, 50, 79, 0.22) transparent;
}

.soft-scroll::-webkit-scrollbar,
.screen.is-bloom::-webkit-scrollbar,
.sheet-card::-webkit-scrollbar,
.preview-pane::-webkit-scrollbar {
  width: 4px;
}

.soft-scroll::-webkit-scrollbar-track,
.screen.is-bloom::-webkit-scrollbar-track,
.sheet-card::-webkit-scrollbar-track,
.preview-pane::-webkit-scrollbar-track {
  background: transparent;
}

.soft-scroll::-webkit-scrollbar-thumb,
.screen.is-bloom::-webkit-scrollbar-thumb,
.sheet-card::-webkit-scrollbar-thumb,
.preview-pane::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 99px;
}

.soft-scroll:hover::-webkit-scrollbar-thumb,
.soft-scroll:focus-within::-webkit-scrollbar-thumb,
.screen.is-bloom:hover::-webkit-scrollbar-thumb,
.sheet-card:hover::-webkit-scrollbar-thumb,
.preview-pane:hover::-webkit-scrollbar-thumb {
  background: rgba(22, 50, 79, 0.22);
}

.screen.is-bloom {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

@media (max-width: 839px) {
  html {
    height: 100%;
    height: -webkit-fill-available;
    height: 100dvh;
    min-height: 100dvh;
  }

  body {
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
  }

  .device {
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
  }

  .device.has-tabbar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .device.has-tabbar > .screen,
  .device.has-tabbar > .screen.is-bloom {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(76px + max(12px, env(safe-area-inset-bottom, 0px)));
  }

  .device.has-tabbar > .tabbar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    flex: none;
    transform: none;
    margin: 0;
  }

  .device.has-tabbar .sheet-card {
    margin-bottom: calc(24px + 76px);
  }

  .page-store .store-body {
    padding-bottom: calc(76px + max(12px, env(safe-area-inset-bottom, 0px)));
  }

  .device:not(.has-tabbar) .screen.is-bloom {
    min-height: 100%;
    min-height: -webkit-fill-available;
    max-height: none;
  }
}

.hero-sky {
  position: relative;
  flex: 0 0 auto;
  padding: calc(var(--safe-top) + 20px) 20px 112px;
  overflow: hidden;
}

.hero-sky .home-toolbar {
  position: absolute;
  top: calc(var(--safe-top) + 8px);
  right: 12px;
  z-index: 2;
  margin: 0;
  min-height: 44px;
}

.hero-sky .store-date,
.hero-sky .section-label,
.hero-sky .large-title,
.hero-sky .lede {
  position: relative;
  z-index: 1;
  max-width: 16.5em;
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
  overflow: hidden;
}

.page-home:not(.page-login):not(.page-store) .hero-sky:has(.hero-art-fill) {
  padding-bottom: 160px;
}

.page-home:not(.page-login):not(.page-store) .hero-art-fill {
  height: 220px;
}

.page-home:not(.page-login):not(.page-store) .hero-sky:has(.hero-art-fill) + .sheet-card {
  margin-top: -96px;
}

.hero-art .hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform-origin: center;
}

.hero-glow {
  animation: hero-glow-pulse 10s ease-in-out infinite;
}

.hero-sun {
  animation: hero-sun-bob 9s ease-in-out infinite;
}

.hero-hill-back {
  animation: hero-hill-back 32s ease-in-out infinite;
}

.hero-hill-far {
  animation: hero-hill-far 22s ease-in-out infinite;
}

.hero-hill-near {
  animation: hero-hill-near 14s ease-in-out infinite;
}

.hero-grove {
  animation: hero-grove 11s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6px, -10px, 0) scale(1.08); }
}

@keyframes hero-sun-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, -18px, 0); }
}

@keyframes hero-hill-back {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-28px, 0, 0); }
}

@keyframes hero-hill-far {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(40px, 0, 0); }
}

@keyframes hero-hill-near {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-52px, 0, 0); }
}

@keyframes hero-grove {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(36px, -6px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .hero-layer {
    animation: none;
  }
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.hero-chip {
  appearance: none;
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-chip.is-soft {
  background: var(--fill);
  color: var(--heading);
}

.sheet-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin: -40px 16px 20px;
  padding: 22px 20px 20px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.sheet-card > [data-compose-form] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.sheet-card > [data-compose-form] > .btn {
  margin-top: auto;
}

.sheet-card .section-label:first-child {
  margin-top: 0;
}

.sheet-card .paste-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.sheet-card .field {
  padding: 0;
  background: transparent;
}

.sheet-card .field + .field {
  border-top: 0;
  padding-top: 14px;
}

.sheet-card > .btn,
.sheet-card .stack > .btn {
  width: 100%;
}

.device.has-tabbar .screen.is-bloom {
  padding-bottom: calc(76px + max(12px, env(safe-area-inset-bottom, 0px)));
}

.device.has-tabbar .sheet-card {
  margin-bottom: calc(24px + 76px);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 10px;
}

.stat-card {
  padding: 14px 12px 12px;
  border-radius: 22px;
  background: #fff6ef;
  min-height: 92px;
}

.stat-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.stat-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.stat-card.is-coral { background: #ffe6d8; }
.stat-card.is-mint { background: #ddf6ef; }
.stat-card.is-sun { background: #fff1c9; }

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

.pill-row,
.swipe-item .swipe-front,
.confirm-item,
.group > .row {
  border-radius: 22px;
  background: var(--fill);
}

.pill-row {
  cursor: default;
  align-items: flex-start;
}

.pill-row .avatar-dot {
  margin-top: 2px;
}

.confirm-item + .confirm-item {
  border-top: 0;
}

.confirm-item .avatar-dot {
  margin: 4px 0 0;
}

.share-stats-empty {
  margin: 12px 4px 4px;
}

.preview-tabs {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.seg {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  background: var(--fill);
  border-radius: 999px;
}

.seg-item {
  flex: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.preview-pane {
  display: none;
}

#preview-tab-activity:checked ~ .preview-pane-activity,
#preview-tab-points:checked ~ .preview-pane-points {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -12px;
  padding-right: 12px;
}

#preview-tab-activity:checked ~ .seg [for="preview-tab-activity"],
#preview-tab-points:checked ~ .seg [for="preview-tab-points"] {
  background: var(--card);
  color: var(--heading);
  box-shadow: 0 6px 16px rgba(22, 50, 79, 0.08);
}

.page-login .sheet-card.login-panel {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  align-self: stretch;
  margin: -40px 16px calc(var(--safe-bottom) + 16px);
  padding: 22px 32px 20px 20px;
}

.page-login .sheet-card.login-panel > form {
  flex: 0 0 auto;
  gap: 8px;
}

.page-login .sheet-card.login-panel .field + .field {
  padding-top: 0;
}

.page-login .sheet-card.login-panel .field label {
  margin-bottom: 4px;
}

.page-login .sheet-card.login-panel > form > .btn {
  margin-top: 4px;
}

.page-login .login-panel .lede {
  text-align: left;
}

.page-login .login-admin {
  text-align: left;
  margin: 14px 0 0;
}

form.hero-actions {
  width: 100%;
}

.share-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

body.page-prayer .device {
  background:
    linear-gradient(180deg, var(--peach) 0%, var(--mint) 32%, var(--bg) 70%);
}

.prayer-list .section-heading {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dock .btn-primary {
  border-radius: 999px;
  min-width: 96px;
  background: var(--btn);
  color: var(--btn-text);
}

.group {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group > .row,
.group > .swipe-item {
  border-radius: 22px;
  overflow: hidden;
}

.swipe-item + .swipe-item {
  box-shadow: none;
}

.swipe-item .swipe-front {
  background: var(--fill);
}

.row + .row {
  border-top: 0;
}

.row,
.row .row-title,
.swipe-front,
.confirm-item .row-title {
  color: var(--heading);
}

.row .row-meta {
  color: var(--ink-secondary);
}

.chevron {
  color: var(--ink-tertiary);
}

.avatar-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.avatar-dot.t0 { background: #2bbbad; }
.avatar-dot.t1 { background: #ff7a45; }
.avatar-dot.t2 { background: #7c6cff; }
.avatar-dot.t3 { background: #3ecf8e; }
.avatar-dot.t4 { background: #f5b400; }
.avatar-dot.t5 { background: #ff6b9d; }

.tabbar {
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  box-shadow: 0 12px 32px rgba(22, 50, 79, 0.14);
}

.tabbar-item.is-active {
  color: var(--accent);
}

form[data-lifetime-form] {
  margin: 0 0 18px;
}

form[data-lifetime-form] .lifetime-field {
  margin-top: 0;
}

.lifetime-field {
  margin: 8px 0 0;
}

.lifetime-field .section-label {
  display: block;
}

.lifetime-field select {
  width: 100%;
  min-height: 48px;
  margin: 0 0 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: var(--fill);
  color: var(--heading);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2316324f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.lifetime-hint {
  margin: 0 4px 4px;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.store-cta.is-open {
  background: var(--card);
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--separator);
}

body.page-store .screen.is-bloom {
  overflow: hidden;
}

body.page-store .hero-sky {
  padding-bottom: 8px;
}

.page-store .hero-sky .lede {
  max-width: 22em;
}

.page-store .store-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px calc(76px + max(12px, env(safe-area-inset-bottom, 0px)));
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.page-store .store-body:hover {
  scrollbar-color: rgba(22, 50, 79, 0.22) transparent;
}

.page-store .store-sticky {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 -16px;
  padding: 4px 16px 20px;
  background: linear-gradient(
    180deg,
    rgb(255 216 196 / 0.42) 0%,
    rgb(232 246 241 / 0.55) 48%,
    transparent 100%
  );
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.store-search-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.55);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
  color: var(--ink-tertiary);
}

.page-store .store-sticky .store-chips {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  padding: 0 0 2px;
}

.store-search-wrap svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.page-store .store-search-wrap .store-search {
  flex: 1;
  width: auto;
  margin: 0;
  padding: 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--heading);
  font-size: 16px;
}

.page-store .store-search-wrap .store-search:focus {
  border: 0;
  box-shadow: none;
}

.page-store .store-chips {
  margin: 0 0 18px;
  padding: 0 0 2px;
}

.page-store .store-chip {
  background: rgba(255, 255, 255, 0.72);
  color: var(--heading);
}

.page-store .store-chip.is-on {
  background: var(--btn);
  color: var(--btn-text);
}

.page-store .store-hero {
  position: static;
}

.store-kicker-featured {
  margin: 0 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--heading) 55%, transparent);
}

.store-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.store-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 4px 12px;
}

.store-hero + .store-collection .store-heading-row {
  margin-top: 26px;
}

.store-see-all {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.store-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.store-back svg {
  width: 18px;
  height: 18px;
}

.page-store .store-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 20px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.page-store .store-rail::-webkit-scrollbar {
  display: none;
}

.page-store .store-page {
  flex: 0 0 calc(100% - 28px);
  width: calc(100% - 28px);
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-store .theme-card.is-rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 14px 16px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.page-store .theme-card.is-rail + .theme-card.is-rail {
  position: relative;
}

.page-store .theme-card.is-rail + .theme-card.is-rail::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 102px;
  height: 1px;
  background: var(--separator);
}

.page-store .theme-card.is-rail .theme-art {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
}

.page-store .theme-card.is-rail .theme-bar {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.page-store .theme-card.is-rail .theme-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-store .theme-card.is-rail .theme-meta {
  margin-top: 2px;
  font-size: 13px;
}

.page-store .theme-card.is-rail .store-cta {
  width: auto;
  min-width: 68px;
  min-height: 28px;
  padding: 0 16px;
  font-size: 13px;
}

.theme-card[hidden],
.page-store .store-chips[hidden],
.page-store .store-empty[hidden] {
  display: none !important;
}

.theme-card {
  display: block;
  margin: 0 0 12px;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.theme-art {
  height: 124px;
  overflow: hidden;
}

.theme-card.is-featured .theme-art {
  height: 168px;
}

.theme-cover {
  display: block;
  width: 100%;
  height: 100%;
}

.theme-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
}

.theme-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.theme-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.theme-card.is-featured .theme-title {
  font-size: 18px;
}

.theme-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.theme-card .store-cta {
  min-height: 30px;
  padding: 0 14px;
  font-size: 13px;
}

.store-empty {
  margin: 12px 4px;
  color: var(--ink-secondary);
  font-size: 14px;
}

@media (min-width: 840px) {
  .device.has-tabbar .store-body {
    margin-bottom: 12px;
    padding-bottom: 20px;
  }
}

.topbar {
  background: color-mix(in srgb, var(--peach) 70%, transparent);
  border-bottom: 0;
}

.prayer-body {
  padding: 12px 16px 20px;
}

.prayer-list {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.prayer-list .section-title-row {
  padding: 4px 8px 16px;
}

.prayer-list .pray-item,
.group .pray-item {
  background: var(--card);
  border-radius: 22px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  border-top: 0;
}

.pray-item + .pray-item {
  border-top: 0;
}

.pray-item.is-checked .tick::before {
  background: var(--teal);
  border-color: var(--teal);
}

.dock {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-top: 0;
}

.share-link {
  background: var(--fill);
}

.share-copy {
  background: var(--btn);
  color: var(--btn-text);
}

.page-login .screen {
  padding: 0;
}

.page-login .hero-sky {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.page-login .hero-art-slot {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  margin: 6px -20px -112px;
  overflow: hidden;
}

.page-login .hero-art {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.welcome-card {
  background: var(--card);
  border-radius: 28px;
}

.icon-btn.ink {
  color: var(--heading);
}

@media (min-width: 840px) {
  body {
    background: var(--chrome);
  }

  .device:not(.is-wide) {
    width: min(calc(100vw - 56px), 390px);
    height: min(calc(100dvh - 56px), 844px);
  }

  .device > .screen.is-bloom {
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
  }

  .device,
  .device.is-wide {
    background:
      linear-gradient(180deg, var(--peach) 0%, var(--mint) 40%, var(--bg) 78%);
  }

  .page-login .device {
    height: auto;
    min-height: 0;
    max-height: min(calc(100dvh - 56px), 844px);
  }

  .page-login .screen,
  .page-login .screen.is-bloom {
    overflow-y: auto;
  }

  .home-guides .group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .device.has-tabbar .sheet-card {
    margin-bottom: 12px;
  }

  .page-store .store-body {
    padding-bottom: 20px;
  }

  .page-login .login-layout,
  .page-login .login-visual,
  .page-login .login-hero,
  .page-login .login-heading {
    display: none;
  }
}

@media (display-mode: standalone),
       (display-mode: fullscreen),
       (display-mode: minimal-ui) {
  html {
    height: 100%;
    height: -webkit-fill-available;
    height: 100dvh;
    height: 100lvh;
    min-height: 100lvh;
  }

  html,
  body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    display: block;
    height: 100%;
    height: 100dvh;
    height: 100lvh;
    min-height: 100lvh;
    padding: 0;
    background: var(--bg);
  }

  .device,
  .device.is-wide,
  .device:not(.is-wide),
  .page-login .device,
  .page-login .device:not(.is-wide) {
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    height: 100lvh;
    min-height: 100lvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .device.has-tabbar > .tabbar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    margin: 0;
  }
}

html.is-pwa {
  height: 100%;
  height: -webkit-fill-available;
  height: 100dvh;
  height: 100lvh;
  min-height: 100lvh;
}

html.is-pwa,
html.is-pwa body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-pwa body {
  display: block;
  height: 100%;
  height: 100dvh;
  height: 100lvh;
  min-height: 100lvh;
  padding: 0;
  background: var(--bg);
}

html.is-pwa .device,
html.is-pwa .device.is-wide,
html.is-pwa .device:not(.is-wide),
html.is-pwa .page-login .device,
html.is-pwa .page-login .device:not(.is-wide) {
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  height: 100lvh;
  min-height: 100lvh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

html.is-pwa .device.has-tabbar > .tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: none;
  margin: 0;
}

@media (max-width: 839px) {
  body.page-store .device.has-tabbar > .screen,
  body.page-store .device.has-tabbar > .screen.is-bloom {
    overflow: hidden;
  }
}
