/**
 * Bathroom Buddy — watch-style glance (large type, minimal copy, SF-like system feel).
 */

#app.watch-face {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 20px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  min-height: 0;
}

.watch-face.run-mode .stage {
  display: none !important;
}

.run-hud {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
  z-index: 12;
}

.run-hud:not([hidden]) {
  display: flex;
}

.run-hud-head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.run-hud-head.urgency-warn {
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.16) 0%, transparent 88%);
  box-shadow: inset 0 -1px 0 rgba(255, 184, 77, 0.22);
}

.run-hud-head.urgency-hot {
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.2) 0%, transparent 90%);
  box-shadow: inset 0 -1px 0 rgba(255, 69, 58, 0.28);
}

.run-hud-head.urgency-warn .hud-clock {
  color: #ffc46b;
  animation: hud-clock-urgent 1.15s ease-in-out infinite;
}

.run-hud-head.urgency-hot .hud-clock {
  color: #ff8a84;
  animation: hud-clock-hot 0.58s ease-in-out infinite;
}

.run-hud-head.urgency-hot .hud-live-coins {
  animation: hud-coins-pulse 0.58s ease-in-out infinite;
}

@keyframes hud-clock-urgent {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes hud-clock-hot {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 100, 90, 0);
  }
  50% {
    transform: scale(1.07);
    text-shadow: 0 0 14px rgba(255, 90, 80, 0.5);
  }
}

@keyframes hud-coins-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.06);
    filter: brightness(1.2);
  }
}

.hud-clock {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  transition: color 0.28s ease;
}

.hud-live-coins {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffd60a;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .run-hud-head.urgency-warn .hud-clock,
  .run-hud-head.urgency-hot .hud-clock,
  .run-hud-head.urgency-hot .hud-live-coins {
    animation: none !important;
  }

  .trophy-empty-emoji {
    animation: none !important;
  }
}

.run-hud-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: #000;
}

.run-hud-body.is-collapsed {
  flex: 0 0 0;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
}

.run-hud-cam-off {
  flex: 0 0 auto;
  padding: 6px 12px 8px;
}

.run-hud-retry {
  min-height: 40px;
  font-size: 15px;
}

.run-hud-foot {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 6px 10px 8px;
}

.hud-foot-btn {
  flex: 1;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
}

.hud-foot-btn--primary {
  background: #30d158;
  color: #000;
  border-color: #30d158;
}

.scan-video--fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-row--end {
  justify-content: flex-end;
}

.trophy-launcher {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 10px !important;
}

.trophy-launcher-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-ico {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-ico--bolt {
  fill: currentColor;
  stroke: none;
  color: #ffd60a;
}

.ui-ico--clock {
  color: rgba(255, 255, 255, 0.72);
}

.ui-ico--locker {
  width: 18px;
  height: 18px;
  color: #ffd60a;
}

.ui-ico--coin {
  color: #ffd60a;
}

.ui-ico--scan {
  color: #30d158;
}

.ui-ico--hit {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.ui-ico--back {
  width: 20px;
  height: 20px;
  color: #fff;
}

.trophy-badge {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffd60a;
  min-width: 1.1em;
  text-align: center;
}

.modal--home-full,
.modal--trophy-full {
  display: flex !important;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  place-items: unset;
  z-index: 80;
}

.home-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #000;
  padding: 0;
}

.trophy-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background: #000;
  padding: 8px 10px 10px;
}

.trophy-screen-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.back-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.back-btn--ico {
  min-width: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trophy-screen-title {
  margin: 0;
  flex: 1 1 auto;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.trophy-list--full {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.watch-face,
.watch-face button,
.watch-face input {
  font-family: -apple-system, system-ui, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}

.topbar {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: #000;
}

.home-dot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  margin: 0;
  padding: 0 6px;
  border: none;
  border-radius: 999px;
  background: transparent;
}

.home-dot-btn:active {
  background: rgba(48, 209, 88, 0.14);
}

.home-dot-btn .glyph-dot {
  width: 11px;
  height: 11px;
}

.live-caption {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #34d975;
  text-transform: uppercase;
}

.live-caption.hid {
  display: none;
}

.watch-face.is-pend-live .glyph-dot {
  animation: live-pulse 1.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 2px rgba(48, 209, 88, 0.22); }
  50% { opacity: 0.75; box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.12); }
}

.glyph-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #30d158;
  box-shadow: 0 0 0 2px rgba(48, 209, 88, 0.22);
}

.hit-icon {
  min-width: 44px;
  min-height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hit-icon--ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.hit-icon.on {
  color: #ff9f0a;
  background: rgba(255, 159, 10, 0.14);
}

.hit-icon.on .ui-ico--hit {
  color: #ff9f0a;
}

.home-close {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 2;
  min-height: 34px;
  min-width: 34px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.home-face {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 38px 14px 12px;
  overflow: hidden;
  text-align: center;
}

.home-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #5ae878 0%, #30d158 55%, #1a9a3f 100%);
  box-shadow:
    0 0 0 3px rgba(48, 209, 88, 0.25),
    0 6px 18px rgba(48, 209, 88, 0.22);
}

.home-app-icon-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
}

.home-title {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.home-tagline {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.2;
}

.home-complications {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 212px;
  margin-top: 4px;
}

.home-comp {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 2px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-comp-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.home-comp-ico .ui-ico {
  width: 18px;
  height: 18px;
}

.home-comp-lab {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.home-blurb {
  margin: 2px 0 0;
  max-width: 200px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.34);
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.main.glance {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 10px 10px;
  gap: 6px;
  background: #000;
}

.glance-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-radius: 22px;
  background: #1c1c1e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glance-card.xp-strip {
  padding: 0;
  overflow: hidden;
}

.glance-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 8px 4px;
}

.glance-dash {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.dash-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}

.dash-cell--end {
  align-items: stretch;
}

.dash-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.dash-value {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.94);
}

.alarm-summary-hit {
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.alarm-summary-hit:disabled {
  opacity: 0.5;
  cursor: default;
}

.alarm-summary-hit.alarm-hit--accent:not(:disabled) {
  box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.45);
  background: rgba(48, 209, 88, 0.09);
}

.alarm-summary-hit:focus-visible {
  outline: 2px solid rgba(48, 209, 88, 0.65);
  outline-offset: 2px;
}

.alarm-summary-hit:active:not(:disabled) {
  opacity: 0.88;
}

.dash-rule {
  flex: 0 0 1px;
  width: 1px;
  margin: 2px 0 4px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

.hero-num {
  font-size: 52px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 0.92;
}

.hero-num.hero-num--compact {
  font-size: 38px;
  letter-spacing: -0.04em;
}

.hero-cap {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: none;
}

.hero-sub {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.03em;
}

.coin-hint {
  margin: 4px 0 0;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffd60a;
  text-align: center;
  line-height: 1.3;
}

.coin-hint.hid {
  display: none;
}

.coin-preview {
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffd60a;
  letter-spacing: 0.02em;
  line-height: 1.28;
}

.scan-coin-hud {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 214, 10, 0.28);
  font-size: 14px;
  font-weight: 700;
  color: #ffd60a;
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
}

.scan-coin-hud.hid {
  display: none;
}

.help-strip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
}

.help-strip[hidden] {
  display: none !important;
}

.help-teaser {
  margin: 0;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.help-toggle {
  margin: 0;
  padding: 2px 10px 4px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #34d975;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.help-toggle:active {
  opacity: 0.75;
}

.help-detail {
  width: 100%;
  max-height: 68px;
  overflow-y: auto;
  padding: 4px 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.help-detail[hidden] {
  display: none !important;
}

.help-detail-text {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.sound-hint {
  margin: 0 0 4px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.36;
  color: rgba(255, 255, 255, 0.44);
  text-align: center;
}

.sound-hint.hid {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(48, 209, 88, 0.18);
  color: #34d975;
}

.chip.day {
  background: rgba(255, 214, 10, 0.14);
  color: #ffd60a;
}

.chip.streak-chip {
  min-width: 52px;
  text-align: center;
  letter-spacing: 0.02em;
}

.chip.streak-chip--dash {
  padding: 4px 10px;
  font-size: 13px;
  min-width: 0;
}

.chip.streak-hot {
  background: rgba(255, 149, 0, 0.2);
  color: #ffb340;
}

.sheet-full {
  width: 100%;
  min-height: 46px;
  font-size: 17px;
  margin-top: 10px;
}

.trophy-sheet {
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
}

.trophy-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 2px;
  max-height: 200px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.trophy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
}

.trophy-list li:last-child {
  margin-bottom: 0;
}

.trophy-ico-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.trophy-ico-badge--scan {
  background: rgba(48, 209, 88, 0.14);
  box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.28);
}

.trophy-ico-badge--streak {
  background: rgba(255, 214, 10, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.35);
}

.trophy-list .trophy-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.trophy-kind {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1px;
}

.trophy-name-row {
  display: block;
  line-height: 1.28;
}

.trophy-count {
  font-weight: 800;
  color: #ffd60a;
}

.trophy-list li.trophy-empty-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 12px 32px;
  text-align: center;
  background: rgba(48, 209, 88, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.trophy-empty-emoji {
  font-size: 44px;
  line-height: 1;
  animation: trophy-empty-pop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

@keyframes trophy-empty-pop {
  from {
    transform: scale(0.5) rotate(-8deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.trophy-empty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.trophy-empty-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
  max-width: 220px;
}

.help-strip:not([hidden]) + .action-column {
  margin-top: 1px;
}

.action-column {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.max-greeting {
  margin: 0;
  padding: 4px 2px 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.main.glance .action-column .watch-btn.neutral#trophiesBtn {
  min-height: 42px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.watch-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  min-height: 48px;
  padding: 0 16px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.main.glance .watch-btn {
  min-height: 44px;
  font-size: 17px;
}

.watch-btn.neutral {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.watch-btn.accent {
  background: #30d158;
  color: #000;
}

.watch-btn.accent:active {
  opacity: 0.85;
}

.watch-btn.neutral:active {
  opacity: 0.8;
}

.pulse-ring {
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55);
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(48, 209, 88, 0); }
}

.modal[hidden],
.layer[hidden] {
  display: none !important;
}

.modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 40;
}

.sheet {
  width: calc(100% - 28px);
  padding: 18px 16px;
  border-radius: 22px;
  background: #2c2c2e;
}

.sheet-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.sheet input[type="time"] {
  width: 100%;
  margin: 0 0 18px;
  padding: 12px;
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  border-radius: 14px;
  border: none;
  background: #3a3a3c;
  color: #fff;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-half {
  min-height: 46px;
  font-size: 17px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layer.mission-sheet {
  position: absolute;
  inset: 0;
  z-index: 25;
  padding: 16px 14px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.mission-sub {
  margin: -2px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.38);
}

.countdown-hero {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 0.98;
}

.watch-btn.wide {
  min-height: 50px;
}

.watch-btn.xl-text {
  font-size: 22px;
}

.watch-btn.ghost-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 17px;
}

.layer.scan {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #000;
}

.scan-video {
  flex: 1 1 auto;
  min-height: 0;
  width: 240px;
  object-fit: cover;
}

.scan-dock {
  flex: 0 0 auto;
  padding: 8px 12px 12px;
  background: #000;
}

.dock-btn {
  border-radius: 999px;
}

.hid {
  display: none;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  max-width: 226px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(44, 44, 46, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
  color: #fff;
  z-index: 100;
}

.toast.err {
  border-color: rgba(255, 82, 82, 0.35);
  color: #ffb8b8;
}

.toast.hid {
  display: none;
}

.devpad {
  position: absolute;
  bottom: 4px;
  left: 6px;
  right: 6px;
  z-index: 90;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.92);
}

.devpad > div:first-child {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.devpad button {
  font-size: 10px !important;
  padding: 6px !important;
  min-height: 28px !important;
  border-radius: 8px !important;
}
