:root {
  color-scheme: light;
  --ink: #241c21;
  --muted: #7b7077;
  --line: #ece5e9;
  --paper: #fffdfc;
  --wash: #fbf7f9;
  --rose: #ef476f;
  --rose-dark: #d72d59;
  --rose-pale: #fff0f4;
  --plum: #5a3154;
  --mint: #20ad8b;
  --mint-pale: #eaf9f5;
  --amber: #f6a623;
  --shadow: 0 10px 28px rgba(78, 40, 63, .11);
  --nav-h: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #eee8ec;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body { overscroll-behavior: none; }

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239, 71, 111, .28);
  outline-offset: 2px;
}

svg { display: block; }

.device {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background: var(--wash);
}

.statusbar {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  background: rgba(255, 253, 252, .96);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal { display: flex; align-items: end; gap: 1.5px; height: 10px; }
.signal i { width: 2.5px; border-radius: 2px; background: var(--ink); }
.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 6px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 10px; }
.wifi { width: 13px; height: 9px; border: 2px solid var(--ink); border-width: 2px 0 0; border-radius: 50% 50% 0 0; position: relative; }
.wifi::after { content: ""; position: absolute; left: 5px; bottom: 0; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.battery { width: 21px; height: 10px; padding: 1px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.battery::before { content: ""; display: block; width: 14px; height: 5px; border-radius: 1px; background: var(--ink); }
.battery::after { content: ""; position: absolute; right: -3px; top: 2.5px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: var(--ink); }

.app-header {
  position: absolute;
  z-index: 15;
  inset: 28px 0 auto;
  height: 56px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 253, 252, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.app-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.35px;
}

.header-wordmark {
  justify-self: start;
  color: var(--plum);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -1px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  background: transparent;
}

.icon-btn:active { background: #f3edf0; transform: scale(.96); }
.icon-btn svg { width: 24px; height: 24px; }

.screen {
  position: absolute;
  z-index: 1;
  inset: 84px 0 var(--nav-h);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  background: var(--wash);
}

.screen::-webkit-scrollbar { display: none; }
.screen.no-nav { bottom: 0; }
.screen.chat-screen { overflow: hidden; }

.page-pad { padding: 16px 17px 28px; }
.home-page { padding-top: 14px; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hero-card,
.action-card,
.soft-card {
  width: 100%;
  border-radius: 22px;
  text-align: left;
}

.hero-card {
  position: relative;
  min-height: 146px;
  padding: 20px 18px;
  overflow: hidden;
  background: linear-gradient(140deg, #f64f7b 0%, #e73969 54%, #9d3e7e 100%);
  box-shadow: 0 13px 30px rgba(216, 45, 89, .25);
  color: white;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}

.hero-card::before { width: 150px; height: 150px; right: -38px; top: -58px; }
.hero-card::after { width: 92px; height: 92px; right: 42px; bottom: -56px; }

.hero-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.8px;
}

.hero-sub {
  position: relative;
  z-index: 2;
  margin: 10px 0 0 61px;
  font-size: 13px;
  font-weight: 750;
  opacity: .92;
}

.hero-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 17px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
}
.hero-icon svg { width: 29px; height: 29px; }
.hero-arrow { position: absolute; z-index: 2; right: 18px; bottom: 19px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--rose-dark); }
.hero-arrow svg { width: 19px; }

.video-home {
  position: relative;
  width: 100%;
  min-height: 128px;
  margin-top: 13px;
  padding: 17px 16px;
  overflow: hidden;
  border: 1px solid #e8dfe5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(71, 45, 61, .06);
  text-align: left;
}

.card-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; letter-spacing: -.4px; }
.small-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #f1ebff; color: #6d45a8; }
.small-icon svg { width: 21px; }
.release-badge { position: absolute; top: 15px; right: 14px; padding: 6px 9px; border-radius: 99px; background: #2e2530; color: white; font-size: 10px; font-weight: 850; }
.mini-flow { display: flex; align-items: center; gap: 5px; margin: 16px 0 0 44px; }
.mini-step { min-width: 63px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: #f7f2f5; color: #665b62; font-size: 11px; font-weight: 800; }
.mini-flow svg { width: 12px; color: #aa9ca5; }

.concierge-entry {
  width: 100%;
  margin-top: 13px;
  padding: 12px;
  border-radius: 20px;
  background: var(--plum);
  color: white;
  text-align: left;
}
.concierge-label { display: flex; align-items: center; gap: 8px; padding: 0 3px 10px; font-size: 14px; font-weight: 850; }
.concierge-label svg { width: 20px; }
.fake-input { height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 15px; border-radius: 15px; background: #fff; color: #877a82; font-size: 13px; }
.send-dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--rose); color: white; }
.send-dot svg { width: 18px; }

.score-row { display: flex; align-items: center; justify-content: space-between; margin: 17px 3px 0; color: var(--muted); font-size: 12px; font-weight: 750; }
.score-line { width: 96px; height: 5px; overflow: hidden; border-radius: 99px; background: #eadfe5; }
.score-line i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #8b51bb); }
.score-value { color: var(--ink); font-weight: 900; }
.recent-row { margin-top: 19px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 900; }
.section-head button { min-height: 36px; padding: 0 8px; background: transparent; color: var(--rose-dark); font-size: 12px; font-weight: 850; }
.recent-strip { display: flex; gap: 9px; }
.recent-photo { position: relative; width: 78px; height: 88px; overflow: hidden; border-radius: 15px; background: #e9e0e5; box-shadow: 0 4px 12px rgba(65,43,56,.08); }
.recent-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) contrast(1.04); }
.recent-photo::after { content: "もう一枚"; position: absolute; inset: auto 5px 5px; padding: 4px; border-radius: 7px; background: rgba(36,28,33,.72); color: white; text-align: center; font-size: 9px; font-weight: 800; }
.recent-placeholder { flex: 1; height: 88px; display: grid; place-items: center; border: 1px dashed #d9ccd3; border-radius: 15px; color: #998c94; font-size: 11px; font-weight: 750; }

.bottom-nav {
  position: absolute;
  z-index: 30;
  inset: auto 0 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px 4px max(4px, env(safe-area-inset-bottom));
  background: rgba(255,253,252,.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -5px 20px rgba(68, 42, 57, .045);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 1px 0 0;
  border-radius: 14px;
  background: transparent;
  color: #8b7f86;
  font-size: 10px;
  font-weight: 750;
}
.nav-item svg { width: 23px; height: 23px; }
.nav-item.active { color: var(--rose-dark); font-weight: 900; }
.nav-dot { position: absolute; top: 5px; left: calc(50% + 9px); width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--rose); }

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 900;
}
.primary-btn { background: var(--rose); color: white; box-shadow: 0 8px 18px rgba(216, 45, 89, .18); }
.primary-btn:active { background: var(--rose-dark); transform: scale(.985); }
.secondary-btn { background: var(--rose-pale); color: var(--rose-dark); }
.ghost-btn { border: 1px solid var(--line); background: white; color: var(--ink); }
.primary-btn svg,
.secondary-btn svg,
.ghost-btn svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}
.wide { width: 100%; }
.button-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; }
.button-row.equal { grid-template-columns: 1fr 1fr; }
.btn-icon svg { width: 21px; height: 21px; }

.add-photo {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  background: var(--rose);
  color: white;
  box-shadow: 0 9px 22px rgba(216,45,89,.2);
  font-size: 17px;
  font-weight: 900;
}
.add-photo svg { width: 25px; }
.photo-label { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 11px; }
.photo-label h2 { margin: 0; font-size: 15px; font-weight: 900; }
.photo-count { color: var(--muted); font-size: 12px; font-weight: 800; }

.empty-state {
  min-height: 172px;
  display: grid;
  place-items: center;
  border: 1.5px dashed #dacdd4;
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  color: #94868e;
  text-align: center;
}
.empty-visual { width: 64px; height: 54px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 17px; background: #f3ebef; }
.empty-visual svg { width: 32px; }
.empty-state p { margin: 0; font-size: 13px; font-weight: 800; }

.photo-card { padding: 11px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 5px 17px rgba(62,40,53,.055); }
.photo-preview { position: relative; width: 100%; height: 300px; overflow: hidden; border-radius: 16px; background: #d9d0d5; }
.photo-preview.compact { height: 235px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.photo-preview.generated img { filter: contrast(1.11) brightness(1.05) sepia(.22) saturate(.84); transform: scale(1.025); }
.photo-preview.generated::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,220,232,.18), transparent 48%, rgba(87,44,96,.11)); pointer-events: none; }
.photo-badge { position: absolute; top: 11px; left: 11px; z-index: 2; padding: 7px 10px; border-radius: 99px; background: rgba(35,27,32,.78); color: white; backdrop-filter: blur(8px); font-size: 11px; font-weight: 900; }
.photo-badge.ready { background: var(--mint); }
.photo-card .button-row { margin-top: 10px; }
.generated-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.generated-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: #e5dce1; }
.generated-tile img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) contrast(1.08); }
.generated-tile:nth-child(2) img { transform: scale(1.18) translateX(5px); filter: sepia(.12) contrast(1.12) brightness(1.1); }
.save-pill { position: absolute; right: 8px; bottom: 8px; z-index: 2; min-height: 34px; padding: 0 10px; border-radius: 11px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11px; font-weight: 900; box-shadow: 0 4px 10px rgba(43,29,37,.14); }
.save-pill svg { width: 17px; height: 17px; }

.making-card { padding: 16px; border-radius: 22px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.making-top { display: flex; align-items: center; gap: 14px; }
.making-thumb { width: 82px; height: 102px; flex: 0 0 auto; overflow: hidden; border-radius: 14px; background: #ddd3d8; }
.making-thumb img { width: 100%; height: 100%; object-fit: cover; filter: blur(1px) brightness(.9); }
.making-copy { flex: 1; }
.making-copy strong { display: block; font-size: 18px; font-weight: 950; }
.making-copy span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.progress { height: 8px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #eee7eb; }
.progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #9054bd); animation: breathe 1.8s ease-in-out infinite; }
.making-meta { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
@keyframes breathe { 50% { opacity: .7; } }

.finish-page { padding-bottom: 30px; }
.finish-preview { position: relative; width: calc(100% + 34px); height: 360px; margin: -16px -17px 0; overflow: hidden; background: #211b1f; }
.finish-preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 33%; transition: filter .2s; }
.face-mask { position: absolute; left: 50%; top: 37%; width: 108px; height: 112px; border-radius: 50%; transform: translate(-50%,-50%); backdrop-filter: blur(12px); background: rgba(226,215,220,.26); border: 1px dashed rgba(255,255,255,.85); opacity: 0; }
.face-mask.show { opacity: 1; }
.mosaic-mask { position: absolute; right: 17px; bottom: 34px; width: 114px; height: 80px; background: repeating-conic-gradient(#9d9297 0 25%, #c5b9be 0 50%) 50% / 14px 14px; mix-blend-mode: normal; border-radius: 10px; opacity: 0; }
.mosaic-mask.show { opacity: .9; }
.finish-tools { padding-top: 16px; }
.tool-card { padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.tool-card + .tool-card { margin-top: 10px; }
.tool-title { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 900; }
.range { width: 100%; height: 28px; margin-top: 11px; accent-color: var(--rose); }
.toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.toggle-chip { min-height: 46px; border: 1px solid var(--line); border-radius: 14px; background: white; color: #62565d; font-size: 13px; font-weight: 850; }
.toggle-chip svg { display: inline-block; width: 19px; height: 19px; margin-right: 5px; vertical-align: middle; }
.toggle-chip.active { border-color: var(--rose); background: var(--rose-pale); color: var(--rose-dark); }
.finish-save { margin-top: 13px; }

.video-progress { display: flex; justify-content: center; gap: 6px; margin: 2px 0 14px; }
.video-progress i { width: 21px; height: 5px; border-radius: 99px; background: #e5dce1; }
.video-progress i.done { background: var(--plum); }
.video-stage-title { margin: 0 0 12px; font-size: 22px; font-weight: 950; letter-spacing: -.7px; }
.video-canvas { position: relative; width: min(248px, 72vw); aspect-ratio: 9 / 13.5; margin: 0 auto; overflow: hidden; border-radius: 24px; background: #2a2328; box-shadow: 0 13px 30px rgba(54,35,47,.18); }
.video-canvas img { width: 100%; height: 100%; object-fit: cover; }
.video-canvas .portrait-layer { position: absolute; left: 50%; bottom: -4px; width: 72%; height: 75%; object-fit: cover; object-position: 50% 28%; transform: translateX(-50%); border-radius: 45% 45% 0 0; filter: sepia(.28) saturate(.65); }
.video-canvas.blur-bg > img:first-child { filter: blur(13px) brightness(.82); transform: scale(1.15); }
.video-face-mask { position: absolute; left: 50%; top: 42%; width: 76px; height: 76px; transform: translate(-50%,-50%); border-radius: 50%; backdrop-filter: blur(11px); background: rgba(246,236,240,.25); border: 1px solid rgba(255,255,255,.68); }
.subtitle-strip { position: absolute; left: 14px; right: 14px; bottom: 24px; padding: 9px 8px; border-radius: 9px; background: rgba(22,17,20,.74); color: white; text-align: center; font-size: 12px; font-weight: 900; }
.play-button { position: absolute; inset: 50% auto auto 50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--plum); transform: translate(-50%,-50%); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.play-button svg { width: 25px; transform: translateX(2px); }
.select-video { min-height: 335px; display: grid; align-content: center; justify-items: center; border: 1.5px dashed #d7cbd2; border-radius: 24px; background: white; }
.select-video-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; background: #f1eaf8; color: #68459b; }
.select-video-icon svg { width: 34px; }
.select-video strong { margin-top: 18px; font-size: 18px; font-weight: 950; }
.video-tools { margin-top: 15px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; border-radius: 16px; background: #eee7eb; }
.segment { min-height: 43px; border-radius: 12px; background: transparent; color: #72666d; font-size: 13px; font-weight: 850; }
.segment.active { background: white; color: var(--rose-dark); box-shadow: 0 2px 7px rgba(58,38,50,.09); }
.subtitle-input { width: 100%; min-height: 51px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; background: white; font-size: 14px; font-weight: 750; }
.video-next { margin-top: 13px; }
.draft-card { padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.draft-card .video-canvas { width: 190px; border-radius: 19px; }
.draft-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.draft-meta strong { font-size: 16px; font-weight: 950; }
.draft-meta span { color: var(--mint); font-size: 12px; font-weight: 900; }
.success-mark { width: 92px; height: 92px; display: grid; place-items: center; margin: 50px auto 20px; border-radius: 50%; background: var(--mint-pale); color: var(--mint); }
.success-mark svg { width: 47px; }
.success-title { margin: 0; text-align: center; font-size: 25px; font-weight: 950; }
.success-actions { margin-top: 28px; }

.chat-band { height: 28px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--mint); color: white; font-size: 11px; font-weight: 850; }
.online-dot { width: 7px; height: 7px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: #bff5e7; }
.chat-wrap { position: absolute; inset: 28px 0 67px; overflow-y: auto; padding: 15px 13px 18px; background: #f4f1f2; }
.chat-day { width: max-content; margin: 1px auto 13px; padding: 4px 9px; border-radius: 99px; background: rgba(84,70,78,.1); color: #756971; font-size: 10px; font-weight: 800; }
.message-row { display: flex; align-items: flex-end; gap: 7px; margin: 9px 0; }
.message-row.me { justify-content: flex-end; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--plum); color: white; font-size: 11px; font-weight: 950; }
.avatar.staff { background: #307e68; }
.bubble { max-width: 76%; padding: 10px 12px; border-radius: 7px 17px 17px 17px; background: white; box-shadow: 0 1px 2px rgba(49,34,43,.07); font-size: 13px; font-weight: 650; line-height: 1.55; }
.message-row.me .bubble { border-radius: 17px 7px 17px 17px; background: #d7f4e9; }
.message-name { display: block; margin-bottom: 4px; color: #29715e; font-size: 10px; font-weight: 900; }
.handoff { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px auto; color: #857880; font-size: 10px; font-weight: 800; }
.handoff::before, .handoff::after { content: ""; width: 32px; height: 1px; background: #d8ced3; }
.chat-compose { position: absolute; inset: auto 0 0; height: 67px; display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; background: white; border-top: 1px solid var(--line); }
.chat-compose input { min-width: 0; height: 45px; flex: 1; padding: 0 13px; border: 1px solid #ded4da; border-radius: 16px; background: #f8f5f6; font-size: 13px; }
.chat-send { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; background: var(--rose); color: white; }
.chat-send svg { width: 20px; }

.menu-page { padding: 10px 15px 30px; }
.profile-mini { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 19px; background: linear-gradient(130deg, var(--plum), #76466e); color: white; }
.profile-dot { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.16); font-weight: 950; }
.profile-mini strong { display: block; font-size: 15px; font-weight: 900; }
.profile-mini span { display: block; margin-top: 3px; font-size: 11px; opacity: .78; }
.menu-list { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.menu-item { width: 100%; min-height: 55px; display: grid; grid-template-columns: 38px 1fr 22px; align-items: center; gap: 8px; padding: 0 13px; border-bottom: 1px solid #f0eaed; background: white; text-align: left; font-size: 14px; font-weight: 850; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: #faf5f7; }
.menu-symbol { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #f7eef2; color: var(--rose-dark); }
.menu-symbol svg { width: 18px; }
.menu-item > svg { width: 17px; color: #a99ca3; }
.menu-foot { margin: 15px 5px; color: #9a8e95; text-align: center; font-size: 10px; font-weight: 700; }

.onboard-screen { inset: 28px 0 0; background: #fffaf8; }
.onboard { min-height: 100%; padding: 28px 20px 24px; display: flex; flex-direction: column; }
.onboard-logo { color: var(--plum); font-size: 21px; font-weight: 950; letter-spacing: -1px; }
.onboard-hero { margin-top: 43px; }
.onboard-kicker { color: var(--rose-dark); font-size: 12px; font-weight: 900; }
.onboard h1 { margin: 10px 0 0; font-size: 32px; line-height: 1.25; letter-spacing: -1.4px; }
.onboard-plan { margin-top: 28px; padding: 20px; border: 2px solid var(--rose); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.plan-name { font-size: 20px; font-weight: 950; }
.plan-points { display: flex; gap: 7px; margin-top: 15px; }
.plan-points span { padding: 7px 9px; border-radius: 9px; background: var(--rose-pale); color: var(--rose-dark); font-size: 11px; font-weight: 850; }
.onboard-bottom { margin-top: auto; padding-top: 24px; }
.link-card { margin-top: 50px; padding: 22px 18px; border-radius: 24px; background: white; box-shadow: var(--shadow); text-align: center; }
.link-visual { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 26px; background: var(--mint-pale); color: var(--mint); }
.link-visual svg { width: 39px; }
.link-card h1 { margin: 0; font-size: 23px; }
.link-card p { margin: 10px 0 21px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pin-head { margin: 50px 0 22px; text-align: center; }
.pin-head h1 { margin: 0; font-size: 24px; }
.pin-head p { margin: 8px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.pin-dots { display: flex; justify-content: center; gap: 15px; margin: 24px 0 25px; }
.pin-dots i { width: 15px; height: 15px; border: 2px solid #c8bbc2; border-radius: 50%; background: transparent; }
.pin-dots i.filled { border-color: var(--rose); background: var(--rose); }
.keypad { width: 270px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 17px; margin: 0 auto; }
.key { height: 52px; border-radius: 18px; background: white; box-shadow: 0 3px 10px rgba(66,43,56,.07); font-size: 19px; font-weight: 850; }
.key.blank { pointer-events: none; box-shadow: none; background: transparent; }
.key.delete { color: var(--muted); font-size: 12px; }

.toast {
  position: absolute;
  z-index: 90;
  left: 50%;
  bottom: 89px;
  min-width: 174px;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border-radius: 13px;
  background: rgba(36,28,33,.92);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(30,21,27,.2);
  animation: toast-in .18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 7px); } }

@media (min-width: 700px) {
  body { display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 30% 10%, #fff7fa, #e7dfe4 65%); }
  .device { width: 430px; height: min(844px, calc(100dvh - 36px)); min-height: 620px; border: 8px solid #2d262a; border-radius: 38px; box-shadow: 0 30px 70px rgba(51,34,44,.25); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
