.app {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(233, 226, 212, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--navy);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--navy);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--copper);
}

.demo-banner {
  margin: 0;
  padding: 10px 18px;
  background: var(--sage-soft);
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}

.demo-banner a { font-weight: 700; }

#app {
  padding: 18px 16px var(--tab-h);
  outline: none;
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
  border-radius: 14px;
}

.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.tab.active {
  color: var(--navy);
}

.tab.active svg { stroke: var(--copper); }

.screen-kicker {
  margin: 0 0 6px;
  color: var(--copper-deep);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.stack { display: grid; gap: 14px; margin-top: 18px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body { padding: 16px 16px 18px; }

.card h2 { font-size: 30px; }

.meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
}

.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn:disabled, .btn[aria-disabled="true"] {
  background: #d9d3cb;
  color: #5c6b76;
  cursor: not-allowed;
}

.row-actions { display: flex; gap: 8px; margin-top: 14px; }

.field { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }

.field input, .field select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-weight: 500;
  font-size: 16px;
}

.empty {
  padding: 22px 16px;
  text-align: left;
}

.empty h2 { font-size: 28px; }

.empty p { margin: 8px 0 0; color: var(--muted); }

.video-pending {
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    radial-gradient(circle at 20% 20%, rgba(143, 166, 154, 0.45), transparent 42%),
    linear-gradient(160deg, var(--navy), #1c4a66);
  color: #fff;
  text-align: center;
  padding: 20px;
}

.video-pending strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.video-pending span { display: block; margin-top: 6px; font-size: 14px; color: #e7eeea; }

.video-frame { position: relative; padding-top: 56.25%; background: #000; }

.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cover { width: 100%; height: 168px; object-fit: cover; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.chip.soon { background: #f3ebe4; color: var(--copper-deep); }

.list { display: grid; margin: 0; padding: 0; list-style: none; }

.list .linkish > span { display: grid; }
.list .linkish,
.list a, .list button.linkish {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.list li:first-child a, .list li:first-child button.linkish { border-top: 0; }

.status { color: var(--muted); font-size: 14px; font-weight: 700; }

.error-text { color: var(--danger); font-size: 14px; font-weight: 700; }

.back {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tagline {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 650;
  color: var(--navy);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.lang-toggle button {
  min-width: 40px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.week-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
}

.week-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.week-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.choice-row button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.choice-row button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.price {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
}

.disclaimer {
  margin: 10px 0 0;
  color: var(--copper-deep);
  font-size: 14px;
  font-weight: 650;
}

.rest-count {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--navy);
}

.list .current strong { color: var(--copper-deep); }

.photo-slot {
  min-height: 160px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 20%, rgba(145, 169, 158, 0.7), transparent 42%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
}

.photo-slot strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.photo-slot span { font-size: 14px; }

.chart { width: 100%; height: 140px; margin-top: 8px; }

.chart polyline {
  fill: none;
  stroke: var(--copper);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
