:root {
  --midnight: #061321;
  --navy: #0b2748;
  --navy-2: #102f54;
  --ink: #10213a;
  --muted: #6f7786;
  --paper: #fffdf8;
  --warm: #f7f1e7;
  --line: #e5dac8;
  --gold: #c9953b;
  --gold-2: #e6bd74;
  --jade: #2f8f72;
  --vermillion: #d65b48;
  --blue-grey: #88a9c0;
  --shadow: 0 16px 38px rgba(18, 31, 48, .12);
  --soft-shadow: 0 8px 22px rgba(18, 31, 48, .08);
  --app-width: min(100%, 430px);
  --nav-height: clamp(78px, 22vw, 101px);
  --screen-x: clamp(12px, 4vw, 18px);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #eee6d9;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 149, 59, .12), transparent 34%),
    linear-gradient(135deg, #e8dfd1, #f8f3ea 42%, #e5dbcc);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "PingFang SC", serif;
}

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  line-height: 1.68;
}

.phone-shell {
  width: var(--app-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(201, 149, 59, .13), transparent 18%),
    linear-gradient(180deg, #fffefa 0%, #f8f2e8 100%);
  box-shadow: 0 0 0 1px rgba(6, 19, 33, .05), 0 24px 90px rgba(18, 31, 48, .24);
  padding-bottom: 0;
}

.topbar {
  display: none;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(18px + env(safe-area-inset-top)) var(--screen-x) calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
}

body[data-route="home"] .screen {
  padding: 0;
}

body[data-route="login"] .phone-shell {
  padding-bottom: 0;
}

body[data-route="login"] .screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

body[data-route="login"] .tabbar {
  display: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup.centered {
  justify-content: center;
}

.brand-mark {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(5, 18, 33, .18));
}

.brand-logo-card,
.brand-wordmark-card {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(230, 189, 116, .38);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(230, 189, 116, .12), transparent 48%),
    linear-gradient(180deg, rgba(10, 37, 67, .96), rgba(4, 17, 31, .96));
  box-shadow: 0 12px 28px rgba(6, 19, 33, .18);
}

.brand-logo,
.brand-wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.brand-wordmark-card {
  width: min(76vw, 318px);
  padding: 4px 10px;
  border-radius: 14px;
  border-color: rgba(230, 189, 116, .46);
}

.brand-wordmark {
  aspect-ratio: 3 / 1;
  object-fit: contain;
}

.compact-wordmark-card,
.form-wordmark-card,
.me-wordmark-card {
  width: min(82vw, 360px);
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.form-wordmark-card .brand-wordmark,
.me-wordmark-card .brand-wordmark {
  aspect-ratio: 4.4 / 1;
}

.me-wordmark-card {
  width: min(82vw, 360px);
  flex: 0 1 360px;
}

.brand-lockup h2 {
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  font-weight: 800;
}

.brand-lockup h2 span {
  color: var(--gold);
}

.brand-lockup p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.brand-lockup.compact .brand-mark {
  width: 58px;
  height: 58px;
}

.brand-lockup.compact h2 {
  font-size: 27px;
}

.page-title {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
}

.page-title.large {
  font-size: 32px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.legal-note,
.privacy-line,
.safe-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
}

.legal-note button {
  border: 0;
  color: var(--gold);
  background: transparent;
  padding: 0 2px;
  font-weight: 800;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}

.code-row button {
  min-height: 52px;
  border: 1px solid rgba(201, 149, 59, .56);
  border-radius: 10px;
  color: var(--gold);
  background: #fff8ee;
  font-weight: 800;
}

.code-row button:disabled {
  opacity: .62;
}

.primary,
.composer button,
.inline-composer button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #102f54, #061b31);
  box-shadow: 0 12px 24px rgba(6, 19, 33, .18);
  font-weight: 800;
  font-size: 18px;
}

.primary.gold,
.primary-pay {
  background:
    linear-gradient(180deg, rgba(255, 238, 190, .62), transparent 34%),
    linear-gradient(180deg, #e7bd72, #bd8230);
  color: var(--midnight);
  border: 1px solid #f2d69b;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 232, .45), 0 12px 28px rgba(169, 110, 35, .28);
}

.primary.navy {
  background:
    linear-gradient(135deg, rgba(201, 149, 59, .12), transparent 42%),
    linear-gradient(180deg, #09294c, #06182c);
  border: 1px solid rgba(201, 149, 59, .7);
}

.home-hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  align-content: start;
  gap: 0;
  padding: calc(clamp(24px, 6dvh, 44px) + env(safe-area-inset-top)) clamp(14px, 5vw, 22px) calc(var(--nav-height) + clamp(12px, 3dvh, 18px) + env(safe-area-inset-bottom));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(2, 8, 15, .1), rgba(2, 8, 15, .18)),
    url("./assets/bg.png") center top / cover no-repeat,
    linear-gradient(180deg, #06111f 0%, #071a2d 54%, #04101d 100%);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-hero::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 10, 20, .08), rgba(2, 10, 20, .28) 58%, rgba(2, 10, 20, .1));
  opacity: .58;
}

.home-hero::after {
  display: none;
  left: -26%;
  right: -26%;
  bottom: 5px;
  z-index: -1;
  height: 132px;
  background:
    radial-gradient(74px 38px at 12% 92%, transparent 58%, rgba(201, 149, 59, .36) 60% 62%, transparent 64%),
    radial-gradient(92px 46px at 31% 100%, transparent 58%, rgba(201, 149, 59, .3) 60% 62%, transparent 64%),
    radial-gradient(112px 48px at 54% 95%, transparent 59%, rgba(201, 149, 59, .28) 61% 63%, transparent 65%),
    radial-gradient(86px 42px at 78% 100%, transparent 58%, rgba(201, 149, 59, .34) 60% 62%, transparent 64%);
  opacity: .72;
}

.starfield {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: transparent;
  opacity: 1;
}

.home-statusbar,
.home-topline,
.home-title,
.feature-grid,
.price-panel,
.safe-note,
.home-clouds {
  position: relative;
  z-index: 1;
}

.home-statusbar {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 253, 248, .92);
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: .92;
}

.status-icons i {
  display: block;
  position: relative;
  flex: 0 0 auto;
}

.status-icons .signal {
  width: 19px;
  height: 13px;
  background:
    linear-gradient(to top, rgba(255, 253, 248, .92) 0 42%, transparent 42%) 0 100% / 4px 100% no-repeat,
    linear-gradient(to top, rgba(255, 253, 248, .92) 0 58%, transparent 58%) 5px 100% / 4px 100% no-repeat,
    linear-gradient(to top, rgba(255, 253, 248, .92) 0 76%, transparent 76%) 10px 100% / 4px 100% no-repeat,
    linear-gradient(to top, rgba(255, 253, 248, .92) 0 100%, transparent 100%) 15px 100% / 4px 100% no-repeat;
}

.status-icons .wifi {
  width: 16px;
  height: 11px;
  border: 2px solid transparent;
  border-top-color: rgba(255, 253, 248, .92);
  border-radius: 50% 50% 0 0;
}

.status-icons .wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 253, 248, .92);
}

.status-icons .battery {
  width: 25px;
  height: 12px;
  border: 2px solid rgba(255, 253, 248, .88);
  border-radius: 4px;
}

.status-icons .battery::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 253, 248, .92);
}

.status-icons .battery::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -5px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: rgba(255, 253, 248, .88);
}

.home-topline {
  min-height: clamp(54px, 11dvh, 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(4px, 1.2dvh, 8px);
}

.home-brand {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 8px;
}

.home-wordmark-card {
  width: clamp(196px, 58vw, 238px);
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .38));
}

.home-topline .brand-wordmark {
  aspect-ratio: 3 / 1;
}

.mini-program-pill {
  width: 84px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 1px solid rgba(230, 189, 116, .42);
  border-radius: 999px;
  color: rgba(255, 253, 248, .92);
  background: rgba(4, 17, 31, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, .06);
  backdrop-filter: blur(12px);
}

.mini-program-pill span {
  transform: translateY(-2px);
  font-size: 18px;
  line-height: 1;
}

.mini-program-pill i {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid rgba(255, 253, 248, .92);
  border-radius: 50%;
  position: relative;
}

.mini-program-pill i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: rgba(255, 253, 248, .88);
}

.home-title {
  display: grid;
  justify-items: center;
  gap: clamp(7px, 1.5dvh, 11px);
  margin-top: clamp(10px, 2.2dvh, 18px);
  text-align: center;
}

.home-title h2 {
  color: #f1d184;
  font-size: clamp(22px, 6.4vw, 27px);
  line-height: 1.24;
  font-weight: 800;
  text-shadow:
    0 0 10px rgba(230, 189, 116, .48),
    0 6px 18px rgba(0, 0, 0, .46);
}

.home-title p {
  color: rgba(230, 189, 116, .92);
  font-size: clamp(12px, 3.6vw, 14px);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 0 9px rgba(230, 189, 116, .3), 0 4px 12px rgba(0, 0, 0, .42);
}

.home-brand .brand-mark {
  width: 58px;
  height: 58px;
}

.home-brand h2 {
  color: #fffdf7;
  font-size: 34px;
}

.home-brand p {
  color: rgba(255, 253, 248, .82);
  font-size: 13px;
}

.cosmic-dial {
  width: min(82vw, 320px);
  height: 176px;
  position: relative;
  margin: 0 auto 0;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  box-shadow: none;
}

.cosmic-dial::before,
.cosmic-dial::after {
  display: none;
}

.cosmic-dial > * {
  display: none;
}

.dial-ring,
.dial-core {
  position: absolute;
  border-radius: 50%;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.dial-core {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff7d7;
  background: transparent;
  box-shadow: 0 0 28px rgba(242, 217, 154, .7);
}

.dial-core::before {
  content: "✦";
  color: #fff1bd;
  font-size: 29px;
  line-height: 1;
}

.ring-1 { width: 62%; height: 48%; border: 1px solid rgba(230, 189, 116, .72); }
.ring-2 { width: 42%; height: 34%; border: 1px solid rgba(230, 189, 116, .52); }
.ring-3 { width: 84%; height: 72%; border: 1px solid rgba(230, 189, 116, .36); }

.stem {
  position: absolute;
  color: var(--gold-2);
  font-size: 17px;
  text-shadow: 0 0 10px rgba(230, 189, 116, .5);
}

.s1 { top: 9%; left: 49%; }
.s2 { top: 22%; right: 27%; }
.s3 { top: 48%; right: 20%; }
.s4 { bottom: 22%; right: 27%; }
.s5 { bottom: 9%; left: 49%; }
.s6 { bottom: 22%; left: 27%; }
.s7 { top: 48%; left: 20%; }
.s8 { top: 22%; left: 27%; }

.cosmic-dial .dial-ring,
.cosmic-dial .dial-core,
.cosmic-dial .stem {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 2.2vw, 10px);
  margin-top: clamp(118px, 26dvh, 212px);
}

.feature-grid article {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: rgba(255, 253, 248, .96);
}

.feature-grid article span {
  width: clamp(38px, 11vw, 48px);
  height: clamp(38px, 11vw, 48px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-2);
  border: 1px solid rgba(230, 189, 116, .46);
  background: rgba(255, 253, 248, .12);
  box-shadow: inset 0 0 0 7px rgba(5, 18, 33, .28), 0 8px 18px rgba(0, 0, 0, .22);
  font-weight: 800;
}

.feature-grid strong {
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.25;
}

.feature-grid small {
  color: rgba(255, 253, 248, .58);
  font-size: clamp(9px, 2.7vw, 10px);
  line-height: 1.35;
}

.price-panel {
  margin-top: clamp(22px, 5dvh, 42px);
  padding: 0 clamp(6px, 3.5vw, 14px);
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.price {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(230, 189, 116, .36), 0 5px 14px rgba(0, 0, 0, .42);
}

.price span {
  color: var(--gold-2);
  font-size: 17px;
}

.price-currency {
  transform: translateY(-2px);
  margin-left: 2px;
}

.price b {
  color: var(--gold-2);
  font-size: clamp(32px, 10vw, 40px);
  line-height: .95;
}

.price-sub {
  margin: 6px 0 clamp(8px, 2dvh, 13px);
  color: var(--gold-2);
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(230, 189, 116, .34), 0 4px 12px rgba(0, 0, 0, .42);
}

.home-hero .primary {
  width: min(100%, 318px);
  min-height: clamp(48px, 7dvh, 54px);
  margin: 0 auto;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(18px, 5vw, 21px);
  text-shadow: 0 2px 10px rgba(6, 19, 33, .42);
}

.safe-note {
  position: relative;
  z-index: 1;
  margin-top: clamp(8px, 2dvh, 14px);
  color: rgba(255, 253, 248, .68);
  font-size: 12px;
  line-height: 1.55;
}

.home-clouds {
  display: none;
}

.page-card,
.form-page,
.order-page,
.report-page,
.chat-page,
.me-page {
  display: grid;
  gap: clamp(14px, 4vw, 18px);
}

.page-card {
  padding: clamp(18px, 5vw, 22px) clamp(14px, 4.5vw, 18px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--shadow);
}

.login-card {
  margin-top: clamp(18px, 5dvh, 24px);
  position: relative;
  z-index: 2;
}

.login-card .compact-wordmark-card {
  width: min(100%, 350px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(18, 31, 48, .1));
  overflow: visible;
}

.login-card label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.login-card input {
  position: relative;
  z-index: 3;
  display: block;
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
  caret-color: var(--gold);
  font-size: 16px;
  line-height: 1.35;
}

.page-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.page-nav h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.nav-back,
.nav-more,
.share-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.nav-back {
  color: var(--gold);
  border: 1px solid rgba(201, 149, 59, .42);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .9), rgba(255, 248, 235, .72));
  box-shadow: 0 8px 18px rgba(18, 31, 48, .08);
}

.nav-more,
.share-button {
  color: var(--gold);
  border: 1px solid rgba(201, 149, 59, .46);
  background: rgba(255, 253, 248, .78);
}

.nav-more {
  font-size: 22px;
}

.share-button {
  border-color: rgba(201, 149, 59, .42);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .9), rgba(255, 248, 235, .72));
  box-shadow: 0 8px 18px rgba(18, 31, 48, .08);
}

.nav-icon,
.share-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon {
  color: var(--gold);
  stroke-width: 2.4;
}

.nav-more .nav-icon {
  fill: currentColor;
  stroke: none;
}

.title-rule {
  width: 180px;
  height: 1px;
  margin: -4px auto 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.title-rule::after {
  content: "◇";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  background: var(--paper);
  padding: 0 8px;
}

.field {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cfd5dc;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 253, 248, .88);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

select {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 149, 59, .16);
}

.choice-row,
.segmented {
  display: grid;
  gap: 10px;
}

.choice-row {
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
}

.topic-row {
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
}

.location-field {
  gap: 10px;
}

.time-mode-field {
  gap: 10px;
}

.location-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.location-select-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.location-select-grid label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.choice-row label,
.segmented label {
  min-width: 0;
}

.choice-row input,
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row span,
.segmented span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd2db;
  border-radius: 10px;
  background: rgba(255, 253, 248, .82);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(13px, 3.8vw, 15px);
}

.choice-row input:checked + span,
.segmented input:checked + span {
  color: #fff;
  border-color: var(--navy);
  background: linear-gradient(180deg, #0b2d53, #06192e);
  box-shadow: 0 8px 16px rgba(6, 19, 33, .14);
}

.topic-row input:checked + span,
.form-page .choice-row input:checked + span,
.form-page .segmented input:checked + span,
.time-mode input:checked + span {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 248, 235, .96);
  box-shadow: none;
}

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

.privacy-line {
  color: var(--muted);
}

.deluxe {
  display: grid;
  gap: clamp(14px, 4vw, 18px);
  padding: clamp(18px, 5vw, 24px) clamp(14px, 4.5vw, 18px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 4%, rgba(201, 149, 59, .12), transparent 24%),
    rgba(255, 253, 248, .92);
  box-shadow: var(--shadow);
}

.order-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.order-brand .brand-wordmark {
  width: min(76vw, 314px);
  padding: 5px 10px;
  border: 1px solid rgba(230, 189, 116, .42);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(230, 189, 116, .12), transparent 48%),
    linear-gradient(180deg, #0b294b, #061525);
}

.order-brand h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.order-amount {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: clamp(42px, 14vw, 54px);
  line-height: 1;
}

.included-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 253, 248, .7);
}

.included-list article {
  display: grid;
  grid-template-columns: 50px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
}

.included-list article + article {
  border-top: 1px solid var(--line);
}

.included-list article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--gold-2);
  border: 1px solid rgba(201, 149, 59, .7);
  font-size: 14px;
  font-weight: 800;
}

.included-list b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.included-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.included-list i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: #f6ead7;
  font-style: normal;
  font-weight: 800;
}

.ai-notice {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.ai-notice span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid #8c929a;
  border-radius: 16px;
  color: #8c929a;
  font-weight: 800;
}

.pay {
  min-height: 52px;
  border-radius: 10px;
  font-weight: 800;
}

.ghost-pay {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 253, 248, .72);
}

.report-brand-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 16%, rgba(201, 149, 59, .12), transparent 24%),
    rgba(255, 253, 248, .92);
}

.report-wordmark {
  width: 100%;
  max-width: 272px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.report-code {
  appearance: none;
  min-width: 0;
  width: 100%;
  max-width: 118px;
  justify-self: end;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 253, 248, .78);
  font-family: inherit;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.summary-board {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(201, 149, 59, .18), transparent 42%),
    linear-gradient(180deg, #0f3157, #071c32);
  box-shadow: var(--shadow);
}

.summary-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}

.summary-birth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-birth span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(230, 189, 116, .18);
  border-radius: 10px;
  background: rgba(255, 253, 248, .07);
  color: rgba(255, 253, 248, .92);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.summary-birth b {
  display: block;
  color: var(--gold-2);
  font-size: 11px;
}

.summary-facts span {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 8px;
  border: 1px solid rgba(230, 189, 116, .24);
  border-radius: 10px;
  background: rgba(255, 253, 248, .08);
  color: rgba(255, 253, 248, .9);
  font-size: 12px;
  line-height: 1.45;
}

.summary-facts b {
  display: block;
  color: var(--gold-2);
  font-size: 11px;
}

.summary-board h3 {
  margin-top: 8px;
  font-size: 20px;
}

.summary-board .profile-line,
.summary-board #creditLine {
  color: rgba(255, 253, 248, .84);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid rgba(230, 189, 116, .5);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(5, 18, 33, .24);
  font-size: 12px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.report-page,
.report-page > *,
.report,
.metric-card,
.basic-board,
.luck-strip,
.report-section,
.followup-panel {
  min-width: 0;
}

.metric-card,
.basic-board,
.luck-strip,
.report-section,
.followup-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--soft-shadow);
}

.metric-card h3,
.basic-board h3,
.luck-strip h3,
.report-section h3,
.followup-panel h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--ink);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 2vw, 8px);
}

.pillar-grid span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: clamp(8px, 2.8vw, 10px) clamp(4px, 1.8vw, 6px);
  border-radius: 10px;
  border: 1px solid #eadfcd;
  background: #fffaf1;
  text-align: center;
  color: var(--ink);
  font-size: clamp(15px, 4.6vw, 18px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pillar-grid b,
.pillar-grid small {
  color: var(--muted);
  font-size: clamp(10px, 2.8vw, 11px);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.basic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.basic-grid p {
  min-width: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(201, 149, 59, .45);
  background: rgba(255, 248, 238, .72);
  line-height: 1.45;
}

.basic-grid b {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.basic-grid span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.donut {
  width: 112px;
  height: 112px;
  margin: 6px auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper) 0 45%, transparent 46%),
    conic-gradient(#45a477 0 28%, #e85d4f 28% 50%, #d9a349 50% 70%, #d5d4cf 70% 86%, #5f91a8 86% 100%);
}

.donut span {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.donut b {
  color: var(--ink);
  font-size: 18px;
}

.metric-card p {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.metric-list {
  display: grid;
  gap: 5px;
}

.metric-list p {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 36px;
  gap: 4px;
}

.metric-list span,
.metric-card p span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.metric-list em {
  color: var(--ink);
  font-style: normal;
  text-align: right;
}

.metric-card p i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 4px;
}

.bars p {
  display: grid;
  grid-template-columns: minmax(30px, 38px) minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.bars p b {
  height: 8px;
  width: var(--w);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4fa37a, #e0b35f);
}

.bars p em {
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.empty-row {
  display: block !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.luck-strip div {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.luck-strip div::-webkit-scrollbar {
  display: none;
}

.luck-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f5f0e8;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
}

.luck-strip span.active {
  color: var(--ink);
  background: linear-gradient(180deg, #f2dfc2, #e8d2ad);
  border: 1px solid rgba(201, 149, 59, .4);
}

.luck-strip small {
  color: inherit;
  opacity: .72;
  font-size: 10px;
}

.report {
  display: grid;
  gap: 10px;
}

.report-section {
  overflow: hidden;
}

.report-section .section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.report-section .section-head h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-section .section-head span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 13px;
}

.report-section .section-body {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-section .section-body h4 {
  margin: 10px 0 4px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
}

.report-section p + p,
.report-section ul + p,
.report-section p + ul {
  margin-top: 8px;
}

.report-section ul {
  margin: 0;
  min-width: 0;
  padding-left: 18px;
}

.report-section li {
  margin: 4px 0;
}

.report-section strong {
  color: var(--gold);
}

.markdown-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid rgba(229, 218, 200, .86);
  border-radius: 12px;
  background: rgba(255, 253, 248, .72);
  scrollbar-width: none;
}

.markdown-table-wrap::-webkit-scrollbar {
  display: none;
}

.markdown-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  line-height: 1.55;
}

.markdown-table th,
.markdown-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(229, 218, 200, .72);
  color: var(--ink);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.markdown-table th {
  color: var(--gold);
  background: rgba(255, 248, 235, .72);
  font-weight: 800;
  white-space: nowrap;
}

.markdown-table tr:last-child td {
  border-bottom: 0;
}

.quick-questions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.quick-questions::-webkit-scrollbar {
  display: none;
}

.quick-questions button {
  white-space: nowrap;
  border: 1px solid #cbd2db;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 253, 248, .85);
  padding: 8px 12px;
}

.inline-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  margin-top: 12px;
}

.inline-composer input {
  min-height: 50px;
}

.inline-composer button {
  min-height: 50px;
  font-size: 15px;
}

.chat-page {
  min-height: calc(100vh - var(--nav-height) - 28px);
  min-height: calc(100dvh - var(--nav-height) - 28px);
}

.messages {
  display: grid;
  gap: 10px;
  padding: 4px 0 calc(var(--nav-height) + 88px + env(safe-area-inset-bottom));
}

.message {
  max-width: 88%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--soft-shadow);
  line-height: 1.65;
  font-size: 14px;
}

.message.user {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(180deg, #102f54, #061b31);
  border-color: rgba(201, 149, 59, .5);
}

.message.assistant {
  margin-right: auto;
}

.composer {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100vw - 26px), calc(430px - 26px));
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.chat-notice {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 76px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100vw - 42px), calc(430px - 42px));
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--soft-shadow);
  z-index: 4;
}

.composer input,
.composer button {
  min-height: 44px;
}

.composer button {
  font-size: 15px;
}

.me-hero,
.me-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.me-hero {
  justify-content: center;
}

.me-title-row {
  align-items: center;
}

.new-profile {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(180deg, #102f54, #061b31);
  box-shadow: var(--soft-shadow);
  font-weight: 800;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) minmax(96px, 112px);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--soft-shadow);
}

.profile-orbit {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-2);
  background:
    radial-gradient(circle, rgba(230, 189, 116, .2) 0 7px, transparent 8px),
    repeating-conic-gradient(rgba(230, 189, 116, .72) 0 2deg, transparent 2deg 18deg),
    linear-gradient(180deg, #082644, #061421);
  border: 2px solid #ead2a6;
  font-weight: 800;
}

.profile-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-title strong {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  color: var(--ink);
}

.profile-title small {
  padding: 2px 7px;
  border: 1px solid rgba(201, 149, 59, .35);
  border-radius: 6px;
  color: var(--gold);
  background: #fff8ee;
}

.profile-main p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-actions {
  display: grid;
  gap: 8px;
}

.profile-actions button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.open-reading {
  border: 1px solid #9aa8bb;
  color: var(--ink);
  background: transparent;
}

.continue-chat {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #102f54, #061b31);
}

.continue-payment,
.buy-extra,
.support-link {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #102f54, #061b31);
}

.disabled-action {
  border: 1px solid #d5d8de;
  color: var(--muted);
  background: #f3f0eb;
  cursor: not-allowed;
}

.history-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 253, 248, .72);
  line-height: 1.7;
}

.compliance {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--soft-shadow);
}

.link-row {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  padding: 0 14px;
  text-align: left;
}

.link-row:last-child {
  border-bottom: 0;
}

.link-row b {
  color: var(--muted);
  font-size: 20px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100vw - 20px), calc(430px - 20px));
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr 1fr 1.24fr 1fr 1fr;
  align-items: end;
  gap: 0;
  padding: clamp(10px, 3.6vw, 16px) clamp(12px, 4.2vw, 18px) calc(8px + env(safe-area-inset-bottom));
  border: 0;
  background: transparent;
  filter: drop-shadow(0 14px 30px rgba(6, 19, 33, .18));
  z-index: 8;
}

.tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/nav-b.png");
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .72;
  pointer-events: none;
}

body:not([data-route="home"]) .tabbar::before {
  background-image: url("./assets/nav-w.png");
  opacity: .82;
}

.tabbar button {
  min-width: 0;
  height: clamp(48px, 15vw, 64px);
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.tabbar button::before {
  display: none;
}

.tabbar button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tabbar button.active {
  background: transparent;
}

.tabbar button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #0b2748;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.tabbar button.active::after {
  transform: translateX(-50%) scaleX(1);
}

body[data-route="home"] .tabbar button::after {
  background: var(--gold-2);
  box-shadow: 0 0 8px rgba(230, 189, 116, .45);
}

.tabbar .tabbar-center {
  height: clamp(68px, 21vw, 92px);
  transform: translateY(clamp(-10px, -2.4vw, -6px));
}

.tabbar .tabbar-center::after {
  display: none;
}

.toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 390px);
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(6, 19, 33, .94);
  box-shadow: var(--shadow);
  z-index: 20;
}

.generation-float {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 19, 33, .38);
  backdrop-filter: blur(9px);
  z-index: 18;
}

.generation-float[hidden] {
  display: none;
}

.generation-card {
  width: min(calc(100vw - 44px), 366px);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(230, 189, 116, .55);
  border-radius: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 149, 59, .16), transparent 32%),
    rgba(255, 253, 248, .97);
  box-shadow: 0 22px 58px rgba(6, 19, 33, .28);
}

.generation-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.generation-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.generation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
}

.generation-card small {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--gold);
  background: #fff6e7;
  font-size: 12px;
  font-weight: 800;
}

.generation-spinner {
  width: 48px;
  height: 48px;
  display: block;
  position: relative;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--gold), rgba(201, 149, 59, .18) 32%, var(--navy) 58%, rgba(201, 149, 59, .18) 76%, var(--gold));
  box-shadow: 0 0 0 1px rgba(201, 149, 59, .2), 0 10px 24px rgba(6, 19, 33, .18);
  transform: translateZ(0);
  transform-origin: center;
  will-change: transform;
  animation: generation-spin .86s linear infinite;
  animation-play-state: running;
}

.generation-spinner::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 149, 59, .18), transparent 46%),
    rgba(255, 253, 248, .96);
}

.generation-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 43, 70, .1);
  box-shadow: inset 0 0 0 1px rgba(15, 43, 70, .05);
}

.generation-progress span {
  width: 18%;
  min-width: 24px;
  height: 100%;
  display: block;
  overflow: hidden;
  color: transparent;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f1d08b, var(--navy));
  transition: width .45s ease;
}

.generation-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.generation-steps li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #718094;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.generation-steps li span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(113, 128, 148, .28);
}

.generation-steps li.done,
.generation-steps li.active {
  color: var(--navy);
}

.generation-steps li.done span,
.generation-steps li.active span {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 149, 59, .16);
}

@keyframes generation-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(6, 19, 33, .42);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.legal-modal {
  width: min(100%, 398px);
  max-height: min(72vh, 620px);
  overflow: auto;
  position: relative;
  padding: 22px 18px 18px;
  border: 1px solid rgba(230, 189, 116, .46);
  border-radius: 18px 18px 12px 12px;
  background:
    radial-gradient(circle at 86% 0%, rgba(201, 149, 59, .12), transparent 28%),
    var(--paper);
  box-shadow: 0 -18px 58px rgba(6, 19, 33, .22);
}

.legal-modal h2 {
  padding-right: 42px;
  color: var(--ink);
  font-size: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 253, 248, .86);
  font-size: 22px;
}

.legal-body {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.legal-body p {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 248, 238, .68);
  font-size: 14px;
}

@media (max-width: 380px) {
  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-wordmark-card {
    width: 214px;
  }

  .home-title {
    gap: 9px;
    margin-top: 14px;
  }

  .feature-grid {
    gap: 6px;
    margin-top: clamp(96px, 23dvh, 178px);
  }

  .price-panel {
    margin-top: clamp(18px, 4dvh, 32px);
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

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

  .profile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .inline-composer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .brand-wordmark-card,
  .compact-wordmark-card,
  .form-wordmark-card,
  .me-wordmark-card {
    width: min(100%, 272px);
  }

  .home-wordmark-card {
    width: 196px;
  }

  .report-brand-card {
    grid-template-columns: 1fr;
  }

  .report-code {
    justify-self: start;
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: clamp(78px, 18dvh, 122px);
  }

  .feature-grid article {
    gap: 4px;
  }

  .code-row,
  .inline-composer,
  .composer,
  .location-select-grid {
    grid-template-columns: 1fr;
  }

  .composer button {
    min-height: 42px;
  }
}

@media (max-height: 760px) {
  .feature-grid {
    margin-top: clamp(72px, 16dvh, 118px);
  }

  .price-panel {
    margin-top: clamp(14px, 3.2dvh, 24px);
  }
}

@media (max-height: 700px) {
  .home-hero {
    padding-top: calc(clamp(18px, 4dvh, 30px) + env(safe-area-inset-top));
  }

  .home-topline {
    min-height: clamp(44px, 9dvh, 58px);
  }

  .home-title {
    margin-top: clamp(7px, 1.4dvh, 12px);
  }

  .feature-grid {
    margin-top: clamp(76px, 18dvh, 132px);
  }

  .price-panel {
    margin-top: clamp(16px, 3.5dvh, 28px);
  }

  .safe-note {
    margin-top: 8px;
  }
}

@media (max-height: 620px) {
  .home-title p,
  .feature-grid small,
  .safe-note {
    display: none;
  }

  .feature-grid {
    margin-top: clamp(54px, 14dvh, 88px);
  }

  .price-panel {
    margin-top: clamp(12px, 3dvh, 20px);
  }
}
