﻿:root {
  color-scheme: light;
  --bg: #dde7f7;
  --surface: #ffffff;
  --surface-warm: #f8fbff;
  --primary: #2f6df6;
  --primary-deep: #0b1f4d;
  --text: #10233f;
  --muted: #7a8ba6;
  --line: #d6e3f5;
  --success: #7fa89a;
  --success-deep: #53796e;
  --danger: #d86f5a;
  --accent-gold: #f5a742;
  --accent-blue: #a8c1d4;
  --fill-blue: #eaf2ff;
  --shadow: 0 12px 30px rgba(47, 109, 246, 0.08);
  --soft-shadow: 0 10px 24px rgba(16, 35, 63, 0.08);
  --float-shadow: 0 20px 60px rgba(16, 35, 63, 0.16);
  --card-radius: 24px;
  --keyboard-offset: 0px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 255, 0.96) 48%, rgba(221, 231, 247, 0.98)),
    repeating-linear-gradient(90deg, rgba(47, 109, 246, 0.022) 0 1px, transparent 1px 22px);
  overflow-x: hidden;
}

body.is-sheet-open,
body.is-voice-open,
body.is-screenshot-open,
body.is-settings-open,
body.is-privacy-open,
body.is-detail-open,
body.is-paywall-open,
body.is-notification-primer-open {
  overflow: hidden;
}

button,
textarea,
input {
  font: inherit;
}

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

button:disabled {
  cursor: not-allowed;
}

.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;
}

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

.app-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 10px)
    16px
    calc(132px + env(safe-area-inset-bottom))
    16px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin: 0;
  padding: 0 0 8px;
  background: linear-gradient(180deg, var(--bg) 76%, rgba(248, 251, 255, 0));
}

.brand-lockup {
  flex: 1 1 auto;
  max-width: calc(100% - 56px);
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-lockup > div {
  min-width: 0;
}

.mini-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.mini-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

h1 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-lockup p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(92, 75, 67, 0.08);
}

#settingsButton span,
#sheetCloseButton span,
#screenshotCloseButton span,
#settingsCloseButton span,
#privacyCloseButton span,
#detailCloseButton span,
#paywallCloseButton span {
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
}

#settingsButton span::before,
#settingsButton span::after,
#sheetCloseButton span::before,
#sheetCloseButton span::after,
#screenshotCloseButton span::before,
#screenshotCloseButton span::after,
#settingsCloseButton span::before,
#settingsCloseButton span::after,
#privacyCloseButton span::before,
#privacyCloseButton span::after,
#detailCloseButton span::before,
#detailCloseButton span::after,
#paywallCloseButton span::before,
#paywallCloseButton span::after {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

#settingsButton span::before {
  transform: translateY(-5px);
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

#settingsButton span::after {
  display: none;
}

#sheetCloseButton span::before,
#screenshotCloseButton span::before,
#settingsCloseButton span::before,
#privacyCloseButton span::before,
#detailCloseButton span::before,
#paywallCloseButton span::before {
  transform: rotate(45deg);
}

#sheetCloseButton span::after,
#screenshotCloseButton span::after,
#settingsCloseButton span::after,
#privacyCloseButton span::after,
#detailCloseButton span::after,
#paywallCloseButton span::after {
  transform: rotate(-45deg);
}

.section-kicker {
  display: inline-block;
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-caption {
  display: grid;
  gap: 5px;
  margin: 2px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 227, 245, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.store-caption strong {
  color: var(--text);
  font-size: 18px;
}

.store-caption p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.next-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
  min-height: 158px;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid rgba(214, 227, 245, 0.92);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 249, 0.9)),
    radial-gradient(circle at 86% 14%, rgba(47, 109, 246, 0.12), transparent 34%);
  box-shadow: var(--shadow);
  outline: none;
}

.next-card:focus-visible {
  outline: 3px solid rgba(47, 109, 246, 0.26);
  outline-offset: 4px;
}

.next-copy {
  min-width: 0;
}

.next-card h2 {
  margin-top: 6px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.next-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.next-card dl {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.next-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.next-card dt {
  color: var(--muted);
  font-size: 12px;
}

.next-card dd {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.next-logo {
  align-self: start;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 22px;
  background: #eaf2ff;
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.72);
}

.next-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 260ms ease;
}

.next-card.is-happy .next-logo img {
  animation: logoHappy 720ms cubic-bezier(0.2, 1.2, 0.32, 1);
}

.today-section {
  margin-top: 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title-row h2 {
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}

.count-pill,
.status-pill {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 6px 9px;
  border: 1px solid rgba(47, 109, 246, 0.22);
  border-radius: 999px;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 820;
  text-align: center;
  white-space: nowrap;
}

.empty-state {
  padding: 16px;
  border: 1px dashed rgba(214, 227, 245, 0.95);
  border-radius: var(--card-radius);
  color: var(--muted);
  background: rgba(255, 253, 249, 0.72);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.today-list {
  display: grid;
  gap: 10px;
}

.reminder-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(214, 227, 245, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.reminder-time {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-radius: 16px;
  color: var(--primary-deep);
  background: rgba(47, 109, 246, 0.12);
  font-size: 13px;
  font-weight: 860;
}

.reminder-main {
  min-width: 0;
}

.reminder-main strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.reminder-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.more-button,
.item-menu button {
  min-width: 44px;
  min-height: 44px;
}

.more-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(214, 227, 245, 0.52);
  font-size: 20px;
  line-height: 1;
}

.item-menu {
  display: none;
  position: absolute;
  right: 12px;
  top: 56px;
  z-index: 4;
  min-width: 132px;
  overflow: hidden;
  border: 1px solid rgba(214, 227, 245, 0.96);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.reminder-item {
  position: relative;
}

.reminder-item.is-menu-open .item-menu {
  display: grid;
}

.item-menu button {
  color: var(--text);
  background: #fff;
  text-align: left;
  padding: 0 14px;
  font-size: 14px;
}

.item-menu button + button {
  border-top: 1px solid var(--line);
}

.item-menu .danger {
  color: var(--danger);
}

.composer {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + var(--keyboard-offset));
  z-index: 10;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 54px 76px;
  gap: 7px;
  align-items: end;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(214, 227, 245, 0.86);
  background: rgba(248, 251, 255, 0.9);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.composer-input {
  display: block;
  min-height: 56px;
}

.composer textarea {
  width: 100%;
  min-height: 56px;
  max-height: 118px;
  resize: none;
  padding: 15px 14px;
  border: 1px solid rgba(214, 227, 245, 0.95);
  border-radius: 20px;
  color: var(--text);
  background: #fff;
  box-shadow:
    inset 0 2px 6px rgba(92, 75, 67, 0.025),
    0 7px 18px rgba(92, 75, 67, 0.045);
  font-size: 15px;
  line-height: 1.45;
  outline: none;
}

.composer textarea:focus {
  border-color: rgba(47, 109, 246, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.composer textarea::placeholder {
  color: rgba(139, 126, 119, 0.72);
}

.screenshot-button,
.mic-button,
.send-button {
  height: 56px;
  border-radius: 20px;
  font-weight: 860;
}

.screenshot-button,
.mic-button {
  display: grid;
  place-items: center;
}

.screenshot-button {
  width: 52px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(214, 227, 245, 0.96);
  box-shadow:
    0 10px 22px rgba(92, 75, 67, 0.07),
    inset 0 2px 7px rgba(255, 255, 255, 0.72);
}

.screenshot-button.is-loading {
  color: var(--primary-deep);
  pointer-events: none;
}

.screenshot-button.is-loading .screenshot-glyph {
  animation: softSpin 1s linear infinite;
}

.screenshot-glyph {
  position: relative;
  width: 23px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.screenshot-glyph::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -5px;
  width: 9px;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: currentColor;
}

.screenshot-glyph::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.mic-button {
  width: 56px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(77, 140, 255, 0.96), rgba(47, 109, 246, 1)),
    var(--primary);
  box-shadow:
    0 14px 26px rgba(47, 109, 246, 0.25),
    inset 0 3px 7px rgba(255, 255, 255, 0.45);
  touch-action: none;
}

.mic-glyph {
  position: relative;
  width: 19px;
  height: 25px;
}

.mic-glyph::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 10px;
  height: 16px;
  border-radius: 10px;
  background: #fff;
}

.mic-glyph::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 14px;
  width: 17px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.send-button {
  color: #fff;
  background: var(--text);
  box-shadow: 0 12px 24px rgba(92, 75, 67, 0.2);
  font-size: 15px;
}

.send-button:disabled {
  color: rgba(92, 75, 67, 0.38);
  background: rgba(214, 227, 245, 0.92);
  box-shadow: none;
}

.voice-overlay,
.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.voice-overlay.is-open,
.sheet.is-open {
  display: block;
}

.voice-overlay {
  background: rgba(248, 251, 255, 0.96);
}

.voice-panel {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 18px)
    22px
    calc(env(safe-area-inset-bottom) + 24px);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto auto;
  justify-items: center;
  text-align: center;
}

.voice-cancel {
  justify-self: start;
  min-width: 68px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 780;
}

.voice-logo {
  align-self: end;
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 32px;
  background: #eaf2ff;
  box-shadow: var(--soft-shadow);
}

.voice-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transform: scale(0.92);
  animation: voiceLogo 1.6s ease-in-out infinite;
}

.voice-panel h2 {
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.24;
}

.voice-panel p:not(.section-kicker) {
  max-width: 280px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 88px;
  margin-top: 28px;
}

.voice-wave span {
  width: 8px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  transform-origin: center bottom;
  animation: waveBar 760ms ease-in-out infinite;
}

.voice-wave span:nth-child(2) {
  animation-delay: 90ms;
}

.voice-wave span:nth-child(3) {
  animation-delay: 180ms;
}

.voice-wave span:nth-child(4) {
  animation-delay: 270ms;
}

.voice-wave span:nth-child(5) {
  animation-delay: 360ms;
}

.voice-timer {
  margin: 2px 0 24px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 860;
}

.voice-stop {
  width: 100%;
  min-height: 56px;
  border-radius: 22px;
  color: #fff;
  background: var(--text);
  box-shadow: 0 14px 28px rgba(92, 75, 67, 0.22);
  font-size: 16px;
  font-weight: 860;
}

.sheet {
  z-index: 90;
  pointer-events: none;
}

.sheet.is-open {
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(92, 75, 67, 0.22);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + var(--keyboard-offset));
  width: min(100%, 430px);
  max-height: min(86dvh, 760px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -22px 58px rgba(92, 75, 67, 0.18);
  transform: translate(-50%, 100%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet.is-open .sheet-panel {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 10px auto 6px;
  border-radius: 99px;
  background: #eaded5;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 10px;
}

.sheet-header h2 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.sheet-scroll {
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding: 0 16px 14px;
  -webkit-overflow-scrolling: touch;
}

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

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

.mini-info {
  min-width: 0;
  min-height: 54px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 11px 12px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 18px;
  background: var(--surface-warm);
}

.mini-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.mini-info strong {
  color: var(--text);
  font-size: 14px;
}

.field-block {
  display: grid;
  gap: 7px;
}

.field-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.field-block input,
.field-block p {
  min-width: 0;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 18px;
  color: var(--text);
  background: var(--surface-warm);
  font-size: 15px;
  line-height: 1.45;
}

.field-block input {
  outline: none;
}

.field-block input:focus {
  border-color: rgba(47, 109, 246, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.read-only p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.parse-note,
.sheet-error {
  padding: 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.parse-note {
  color: var(--primary-deep);
  background: #fff4e8;
}

.sheet-error {
  color: var(--danger);
  background: rgba(179, 106, 88, 0.08);
}

.sheet-plan {
  display: grid;
  gap: 9px;
}

.sheet-plan h3 {
  color: var(--text);
  font-size: 16px;
}

.sheet-plan ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.plan-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 10px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 18px;
  background: var(--surface-warm);
}

.plan-row strong {
  color: var(--text);
  font-size: 13px;
}

.plan-row time {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.plan-row em {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--primary-deep);
  background: rgba(47, 109, 246, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.plan-row.is-skipped {
  opacity: 0.62;
}

.plan-row.is-skipped em {
  color: var(--muted);
  background: rgba(139, 126, 119, 0.1);
}

.plan-empty {
  margin: 0;
  padding: 10px 11px;
  border: 1px dashed rgba(47, 109, 246, 0.42);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255, 244, 232, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 10px;
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(214, 227, 245, 0.92);
  background: rgba(255, 255, 255, 0.96);
}

.primary-action,
.secondary-action {
  min-height: 54px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 860;
}

.primary-action {
  color: #fff;
  background: var(--text);
  box-shadow: 0 12px 24px rgba(92, 75, 67, 0.2);
}

.primary-action:disabled {
  color: rgba(92, 75, 67, 0.38);
  background: rgba(214, 227, 245, 0.92);
  box-shadow: none;
}

.secondary-action {
  color: var(--text);
  background: rgba(47, 109, 246, 0.12);
}

.screenshot-panel {
  max-height: min(88dvh, 780px);
}

.settings-panel,
.privacy-panel,
.detail-panel,
.paywall-panel {
  max-height: min(88dvh, 780px);
}

.screenshot-scroll {
  gap: 10px;
}

.screenshot-summary-card {
  padding: 13px 14px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.98), rgba(255, 244, 232, 0.88));
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.screenshot-privacy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.screenshot-sheet.is-privacy-step #confirmScreenshotButton {
  display: none;
}

.screenshot-sheet.is-privacy-step #chooseScreenshotButton {
  display: block;
}

.screenshot-sheet:not(.is-privacy-step) #chooseScreenshotButton {
  display: none;
}

.candidate-list {
  display: grid;
  gap: 10px;
}

.recognition-card,
.candidate-card {
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 22px;
  background: var(--surface-warm);
  box-shadow: 0 8px 20px rgba(92, 75, 67, 0.055);
}

.recognition-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 16px;
  text-align: center;
}

.recognition-logo {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 24px;
  background: #eaf2ff;
}

.recognition-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transform: scale(0.92);
  animation: voiceLogo 1.7s ease-in-out infinite;
}

.recognition-card strong {
  color: var(--text);
  font-size: 17px;
}

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

.recognition-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(47, 109, 246, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: softSpin 900ms linear infinite;
}

.candidate-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.candidate-card.is-unselected {
  opacity: 0.66;
}

.candidate-top {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.candidate-check {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.candidate-check input {
  width: 21px;
  height: 21px;
  accent-color: var(--primary);
}

.confidence-pill {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--primary-deep);
  background: rgba(47, 109, 246, 0.12);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.category-pill {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--success-deep);
  background: rgba(123, 196, 127, 0.14);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-delete {
  min-width: 44px;
  min-height: 44px;
  border-radius: 15px;
  color: var(--danger);
  background: rgba(179, 106, 88, 0.08);
  font-size: 18px;
  font-weight: 820;
}

.candidate-field {
  display: grid;
  gap: 6px;
}

.candidate-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.candidate-field input {
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(214, 227, 245, 0.96);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-size: 14px;
}

.candidate-field input:focus {
  border-color: rgba(47, 109, 246, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.candidate-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 8px;
}

.candidate-plan {
  display: grid;
  gap: 6px;
}

.candidate-plan .plan-row {
  grid-template-columns: 80px minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 15px;
  background: #fff;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-chip {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(139, 126, 119, 0.09);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.source-details {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.source-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.source-details p {
  max-height: 116px;
  overflow-y: auto;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.candidate-error {
  padding: 10px;
  border-radius: 14px;
  color: var(--danger);
  background: rgba(179, 106, 88, 0.08);
  font-size: 12px;
  line-height: 1.5;
}

.settings-scroll,
.privacy-scroll {
  gap: 12px;
}

.setting-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 20px;
  background: var(--surface-warm);
}

.setting-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.setting-row strong {
  color: var(--text);
  font-size: 15px;
}

.setting-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.setting-row input {
  width: 46px;
  height: 28px;
  accent-color: var(--primary);
}

.settings-card,
.policy-block {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 20px;
  background: var(--surface-warm);
}

.settings-card h3,
.policy-block h3 {
  color: var(--text);
  font-size: 15px;
}

.settings-card p,
.policy-block p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.permission-list {
  display: grid;
  gap: 8px;
}

.permission-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(214, 227, 245, 0.82);
}

.permission-list div:first-child {
  border-top: 0;
}

.permission-list dt {
  color: var(--muted);
  font-size: 13px;
}

.permission-list dd {
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  text-align: right;
}

.settings-actions-list {
  display: grid;
  gap: 9px;
}

.compact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-actions-list button {
  min-height: 50px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(47, 109, 246, 0.12);
  font-size: 15px;
  font-weight: 820;
}

.settings-actions-list .danger {
  color: #fff;
  background: #e76f51;
}

.ios-test-card[hidden] {
  display: none;
}

.settings-inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.settings-inline-actions button,
.price-options button {
  min-height: 48px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(47, 109, 246, 0.12);
  font-size: 14px;
  font-weight: 820;
}

.pro-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 109, 246, 0.16), transparent 32%),
    var(--surface-warm);
}

.detail-scroll {
  gap: 10px;
}

.detail-hero,
.detail-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 20px;
  background: var(--surface-warm);
}

.detail-hero h3 {
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
}

.detail-hero p,
.detail-block p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-grid .mini-info {
  background: #fff;
}

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

.danger-action {
  min-height: 54px;
  border-radius: 20px;
  color: #fff;
  background: #e76f51;
  font-size: 15px;
  font-weight: 860;
}

.paywall-scroll {
  gap: 12px;
}

.paywall-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 14px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, #fff, #fff7ee),
    radial-gradient(circle at 50% 0, rgba(47, 109, 246, 0.14), transparent 40%);
  text-align: center;
}

.paywall-hero img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  transform: translateY(6px);
}

.paywall-hero h3 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.paywall-hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.benefit-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-list li {
  min-height: 42px;
  padding: 11px 12px 11px 34px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface-warm);
  font-size: 13px;
  line-height: 1.45;
  position: relative;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--success-deep);
  border-bottom: 2px solid var(--success-deep);
  transform: rotate(-45deg);
}

.price-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-options button {
  line-height: 1.35;
}

.price-options span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom) + var(--keyboard-offset));
  z-index: 60;
  width: min(calc(100% - 32px), 398px);
  padding: 13px 15px;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
.next-card:focus-visible {
  outline: 3px solid rgba(47, 109, 246, 0.26);
  outline-offset: 3px;
}

@keyframes waveBar {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1.35);
  }
}

@keyframes voiceLogo {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(0.98);
  }
}

@keyframes softSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoHappy {
  0% {
    transform: scale(0.92);
  }
  46% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.92);
  }
}

@media (min-width: 700px) {
  body {
    display: grid;
    justify-items: center;
  }

  .app-shell {
    border-inline: 1px solid rgba(214, 227, 245, 0.82);
    background: rgba(248, 251, 255, 0.72);
  }
}

@media (max-width: 370px) {
  .app-shell {
    padding-inline: 14px;
  }

  .composer {
    padding-inline: 14px;
    grid-template-columns: minmax(0, 1fr) 48px 52px 58px;
    gap: 6px;
  }

  .screenshot-button {
    width: 48px;
  }

  .mic-button {
    width: 52px;
  }

  .field-grid,
  .sheet-actions,
  .candidate-time-grid,
  .sheet-meta-grid,
  .detail-grid,
  .detail-actions,
  .settings-inline-actions,
  .price-options {
    grid-template-columns: 1fr;
  }

  .plan-row {
    grid-template-columns: 1fr;
  }

  .candidate-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .category-pill {
    grid-column: 2;
  }

  .brand-lockup p {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .app-shell {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .next-card {
    min-height: 128px;
  }

  .voice-panel {
    grid-template-rows: auto auto auto auto auto;
  }

  .voice-logo {
    width: 82px;
    height: 82px;
    margin-bottom: 8px;
  }

  .voice-logo img {
    width: 82px;
    height: 82px;
  }

  .voice-wave {
    height: 48px;
    margin-top: 12px;
  }
}

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

/* Visual system v2: blue-white glass mobile app direction from the supplied design package. */
.app-shell {
  width: min(100%, 430px);
  padding:
    calc(env(safe-area-inset-top) + 18px)
    22px
    calc(186px + env(safe-area-inset-bottom))
    22px;
}

.top-bar {
  min-height: 72px;
  padding: 8px 0 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 62%, rgba(248, 251, 255, 0));
}

.brand-lockup {
  gap: 12px;
}

.mini-logo {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.08);
}

.mini-logo img {
  width: 36px;
  height: 36px;
}

h1 {
  color: var(--primary-deep);
  font-size: 28px;
  font-weight: 860;
  letter-spacing: 0;
}

.brand-lockup p {
  color: #667897;
  font-size: 13px;
  font-weight: 520;
}

.icon-button {
  border: 1px solid rgba(214, 227, 245, 0.8);
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.08);
  backdrop-filter: blur(18px);
}

.section-kicker {
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: none;
}

.store-caption,
.next-card,
.quick-create-card,
.reminder-item,
.empty-state,
.settings-card,
.policy-block,
.candidate-card,
.detail-hero,
.detail-block,
.mini-info,
.screenshot-summary-card {
  border: 1px solid rgba(214, 227, 245, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.store-caption {
  border-radius: 24px;
}

.next-card {
  min-height: 196px;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 4px;
  padding: 28px 18px 24px 24px;
  border-radius: 28px;
  overflow: hidden;
}

.next-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: rgba(77, 140, 255, 0.08);
  filter: blur(0.1px);
  pointer-events: none;
}

.next-card h2 {
  margin-top: 12px;
  color: var(--primary-deep);
  font-size: clamp(46px, 14vw, 60px);
  line-height: 0.92;
  font-weight: 880;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.next-card p {
  max-width: 210px;
  margin-top: 16px;
  color: #273a5c;
  font-size: 16px;
  font-weight: 650;
}

.next-card dl {
  gap: 5px;
  margin-top: 14px;
}

.next-card dl div {
  grid-template-columns: 68px minmax(0, 1fr);
}

.next-card dt,
.next-card dd {
  font-size: 12px;
}

.next-card dd {
  color: #31435f;
}

.next-logo {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 112px;
  height: 132px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.next-logo img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  transform: translate(-10px, 8px);
  filter: drop-shadow(0 16px 24px rgba(47, 109, 246, 0.12));
}

.quick-create-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 28px;
}

.quick-create-card h2 {
  margin-top: 2px;
  color: var(--primary-deep);
  font-size: 22px;
  line-height: 1.2;
}

.quick-create-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.quick-input-preview {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(214, 227, 245, 0.9);
  border-radius: 24px;
  color: #7a8ba6;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.quick-input-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-input-preview i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4d8cff, #2468e8);
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.22);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-actions button {
  min-height: 82px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 10px 6px;
  border: 1px solid rgba(214, 227, 245, 0.8);
  border-radius: 22px;
  color: var(--primary-deep);
  background: linear-gradient(145deg, rgba(234, 242, 255, 0.88), rgba(255, 255, 255, 0.76));
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.08);
}

.quick-actions i {
  width: 30px;
  height: 30px;
  display: block;
  color: var(--primary);
}

.quick-actions span {
  font-size: 14px;
  font-weight: 780;
}

.voice-line-icon,
.scan-line-icon,
.create-line-icon {
  position: relative;
}

.voice-line-icon::before {
  content: "";
  position: absolute;
  inset: 5px 13px;
  border-radius: 99px;
  background: currentColor;
  box-shadow:
    -8px 5px 0 -1px currentColor,
    8px 5px 0 -1px currentColor,
    -13px 9px 0 -2px currentColor,
    13px 9px 0 -2px currentColor;
}

.scan-line-icon::before,
.scan-line-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.scan-line-icon::after {
  inset: 12px 7px;
  border-width: 0 0 3px;
  border-radius: 0;
}

.create-line-icon::before,
.create-line-icon::after {
  content: "";
  position: absolute;
  inset: 13px 5px auto;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.create-line-icon::after {
  transform: rotate(90deg);
}

.today-section {
  margin-top: 28px;
}

.section-title-row {
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin-top: 2px;
  color: var(--primary-deep);
  font-size: 24px;
  font-weight: 840;
}

.count-pill {
  min-height: 32px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #60708c;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(214, 227, 245, 0.8);
}

.today-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 227, 245, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.reminder-item {
  min-height: 74px;
  grid-template-columns: 68px minmax(0, 1fr) 44px;
  padding: 14px 14px 14px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reminder-item + .reminder-item {
  border-top: 1px solid rgba(214, 227, 245, 0.72);
}

.reminder-time {
  color: var(--primary-deep);
  font-size: 20px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.reminder-main strong {
  color: var(--primary-deep);
  font-size: 17px;
  font-weight: 800;
}

.reminder-main span {
  color: #6d7e99;
  font-size: 12px;
}

.more-button,
.candidate-delete {
  border: 1px solid rgba(214, 227, 245, 0.82);
  color: #7485a2;
  background: rgba(234, 242, 255, 0.72);
}

.item-menu {
  right: 12px;
  top: 56px;
  border-color: rgba(214, 227, 245, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--float-shadow);
}

.composer {
  bottom: calc(82px + env(safe-area-inset-bottom) + var(--keyboard-offset));
  grid-template-columns: minmax(0, 1fr) 52px 56px 86px;
  gap: 8px;
  padding: 10px 16px 10px;
  border: 1px solid rgba(214, 227, 245, 0.76);
  border-inline: 0;
  background: rgba(248, 251, 255, 0.82);
  box-shadow: 0 -12px 34px rgba(16, 35, 63, 0.08);
}

.composer textarea {
  min-height: 54px;
  border: 1px solid rgba(214, 227, 245, 0.86);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.86);
}

.composer textarea:focus,
.candidate-field input:focus,
.field-block input:focus {
  border-color: rgba(47, 109, 246, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.composer textarea::placeholder {
  color: rgba(122, 139, 166, 0.78);
}

.screenshot-button,
.mic-button {
  border: 1px solid rgba(214, 227, 245, 0.86);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.1);
}

.mic-button {
  color: #fff;
  background: linear-gradient(135deg, #4d8cff, #2468e8);
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.22);
}

.send-button,
.primary-action {
  color: #fff;
  background: linear-gradient(135deg, #4d8cff, #2468e8);
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.22);
}

.send-button {
  min-width: 0;
  padding-inline: 10px;
  border-radius: 20px;
  font-size: 14px;
}

.secondary-action {
  color: var(--primary-deep);
  background: rgba(234, 242, 255, 0.82);
}

.danger-action,
.settings-actions-list .danger {
  color: #fff;
  background: var(--danger);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 9;
  width: min(100%, 430px);
  min-height: calc(74px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 2px;
  padding: 9px 18px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(214, 227, 245, 0.78);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -18px 36px rgba(16, 35, 63, 0.08);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.bottom-nav button {
  min-width: 0;
  min-height: 56px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 18px;
  color: #72819e;
  background: transparent;
}

.bottom-nav button.is-active {
  color: var(--primary);
  background: rgba(234, 242, 255, 0.86);
}

.bottom-nav em {
  font-style: normal;
  font-size: 12px;
  font-weight: 760;
}

.sheet-backdrop {
  background: rgba(16, 35, 63, 0.22);
  backdrop-filter: blur(8px);
}

.sheet-panel {
  width: min(calc(100% - 16px), 430px);
  max-height: min(88dvh, 780px);
  border: 1px solid rgba(214, 227, 245, 0.9);
  border-radius: 32px 32px 0 0;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 255, 0.96));
  box-shadow: var(--float-shadow);
}

.sheet-handle {
  background: #c8d7ed;
}

.sheet-header h2 {
  color: var(--primary-deep);
  font-size: 24px;
}

.field-block,
.read-only,
.setting-row {
  border: 1px solid rgba(214, 227, 245, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.field-block input,
.candidate-field input {
  border: 1px solid rgba(214, 227, 245, 0.9);
  color: var(--text);
  background: rgba(248, 251, 255, 0.9);
}

.sheet-plan h3,
.detail-block h3,
.settings-card h3,
.policy-block h3 {
  color: var(--primary-deep);
}

.plan-row {
  border-color: rgba(214, 227, 245, 0.84);
  background: rgba(255, 255, 255, 0.72);
}

.plan-row.is-skipped {
  color: #8fa0ba;
  background: rgba(234, 242, 255, 0.56);
}

.plan-row strong {
  color: var(--primary-deep);
}

.voice-overlay {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(221, 231, 247, 0.98));
}

.voice-panel {
  padding-inline: 28px;
}

.voice-logo {
  width: 136px;
  height: 136px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px rgba(47, 109, 246, 0.11);
}

.voice-logo img {
  width: 150px;
  height: 150px;
  transform: translateY(8px) scale(0.94);
}

.voice-panel h2 {
  color: var(--primary-deep);
  font-size: 28px;
}

.voice-wave span {
  background: linear-gradient(180deg, #4d8cff, #2468e8);
}

.voice-stop {
  background: linear-gradient(135deg, #4d8cff, #2468e8);
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.22);
}

.voice-cancel {
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 227, 245, 0.82);
}

.recognition-card {
  border: 1px solid rgba(214, 227, 245, 0.84);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.74));
  box-shadow: var(--shadow);
}

.recognition-logo {
  width: 112px;
  height: 112px;
  border-radius: 30px;
  background: rgba(234, 242, 255, 0.78);
}

.recognition-logo img {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.scan-stage {
  display: grid;
  gap: 16px;
}

.scan-frame {
  position: relative;
  min-height: 282px;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(92, 109, 133, 0.18), rgba(92, 109, 133, 0.08)),
    rgba(238, 245, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(214, 227, 245, 0.78);
}

.scan-preview {
  max-width: 100%;
  max-height: 270px;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(16, 35, 63, 0.12);
}

.scan-mascot {
  width: 142px;
  height: 142px;
  object-fit: contain;
}

.scan-line {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 24px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(47, 109, 246, 0.92), transparent);
  box-shadow: 0 0 20px rgba(47, 109, 246, 0.42);
  animation: scanLine 1.9s ease-in-out infinite;
}

.scan-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--primary);
  border-style: solid;
}

.scan-corner-tl {
  left: 16px;
  top: 16px;
  border-width: 4px 0 0 4px;
  border-radius: 11px 0 0 0;
}

.scan-corner-tr {
  right: 16px;
  top: 16px;
  border-width: 4px 4px 0 0;
  border-radius: 0 11px 0 0;
}

.scan-corner-bl {
  left: 16px;
  bottom: 16px;
  border-width: 0 0 4px 4px;
  border-radius: 0 0 0 11px;
}

.scan-corner-br {
  right: 16px;
  bottom: 16px;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 11px 0;
}

.scan-progress-card {
  display: grid;
  gap: 9px;
  padding: 16px 22px;
  border: 1px solid rgba(214, 227, 245, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.scan-progress-card strong {
  color: var(--primary-deep);
  font-size: 22px;
}

.scan-progress-card p {
  color: var(--muted);
  font-size: 13px;
}

.scan-steps {
  display: grid;
  gap: 8px;
}

.scan-steps span {
  min-height: 30px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  color: #617390;
  font-size: 15px;
  font-weight: 640;
}

.scan-steps span::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid #8fa4c4;
  border-radius: 50%;
}

.scan-steps span::after {
  content: "";
  width: 18px;
  height: 18px;
}

.scan-steps span.is-done::before {
  border-color: var(--primary);
  background:
    linear-gradient(135deg, transparent 45%, #fff 46% 58%, transparent 59%),
    var(--primary);
}

.scan-steps span.is-done::after {
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(45deg) translate(-2px, -2px);
}

.scan-steps span.is-active::after {
  border: 3px solid rgba(47, 109, 246, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.78s linear infinite;
}

.candidate-list {
  gap: 14px;
}

.candidate-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
}

.candidate-top {
  grid-template-columns: 48px minmax(0, auto) minmax(0, 1fr) 44px;
}

.candidate-check input {
  accent-color: var(--primary);
}

.confidence-pill,
.category-pill,
.status-tag {
  color: #506584;
  background: rgba(234, 242, 255, 0.94);
  border: 1px solid rgba(214, 227, 245, 0.86);
}

.candidate-field span {
  color: #60708c;
}

.candidate-error,
.sheet-error {
  color: var(--danger);
  background: rgba(216, 111, 90, 0.09);
}

.source-details {
  color: #60708c;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.detail-hero::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -22px;
  width: 110px;
  height: 110px;
  background: url("./public/assets/ip/cat_halfbody.png") center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.detail-hero h3 {
  max-width: calc(100% - 70px);
  color: var(--primary-deep);
  font-size: 28px;
}

.settings-brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.settings-brand img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.12);
}

.setting-row input {
  accent-color: var(--primary);
}

.settings-actions-list button,
.settings-inline-actions button,
.price-options button {
  border: 1px solid rgba(214, 227, 245, 0.86);
  color: var(--primary-deep);
  background: rgba(234, 242, 255, 0.82);
}

.paywall-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 18px 20px 20px;
  border: 1px solid rgba(214, 227, 245, 0.86);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(234, 242, 255, 0.78));
  box-shadow: var(--shadow);
  text-align: center;
}

.paywall-hero img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(47, 109, 246, 0.12));
}

.paywall-hero h3 {
  max-width: 290px;
  color: var(--primary-deep);
  font-size: 20px;
  line-height: 1.25;
}

.paywall-hero p {
  max-width: 300px;
  color: #617390;
}

.splash-screen,
.onboarding-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top) + 24px) 28px calc(env(safe-area-inset-bottom) + 28px);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(221, 231, 247, 0.98));
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.splash-screen.is-open,
.onboarding-screen.is-open {
  opacity: 1;
  pointer-events: auto;
}

.splash-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.08);
  filter: blur(18px);
}

.splash-icon {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 30px;
  box-shadow: 0 24px 55px rgba(47, 109, 246, 0.16);
  animation: floatIn 760ms ease both;
}

.splash-logo {
  position: relative;
  width: min(260px, 78vw);
  height: auto;
  margin-top: 28px;
  object-fit: contain;
}

.splash-screen p {
  position: relative;
  margin-top: 12px;
  color: #31435f;
  font-size: 18px;
  font-weight: 680;
}

.splash-screen small {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: calc(env(safe-area-inset-bottom) + 34px);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.onboarding-card {
  width: min(100%, 386px);
  max-height: min(88dvh, 760px);
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(214, 227, 245, 0.9);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--float-shadow);
}

.onboarding-card > img {
  justify-self: center;
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(47, 109, 246, 0.12));
}

.onboarding-pages {
  display: grid;
  gap: 14px;
}

.onboarding-pages article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(234, 242, 255, 0.66);
}

.onboarding-pages span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 820;
}

.onboarding-pages h2 {
  color: var(--primary-deep);
  font-size: 18px;
  line-height: 1.25;
}

.onboarding-pages p {
  color: #617390;
  font-size: 13px;
  line-height: 1.55;
}

.toast {
  bottom: calc(154px + env(safe-area-inset-bottom) + var(--keyboard-offset));
  border-color: rgba(214, 227, 245, 0.94);
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--float-shadow);
}

button,
.next-card,
.reminder-item {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

button:active,
.next-card:active,
.reminder-item:active {
  transform: scale(0.985);
}

@keyframes scanLine {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(304px);
    opacity: 1;
  }
}

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

@keyframes floatIn {
  from {
    transform: translateY(14px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 370px) {
  .app-shell {
    padding-inline: 18px;
  }

  .next-card {
    grid-template-columns: minmax(0, 1fr) 92px;
    padding: 24px 14px 22px 20px;
  }

  .next-card h2 {
    font-size: 44px;
  }

  .next-logo,
  .next-logo img {
    width: 98px;
    height: 112px;
  }

  .composer {
    grid-template-columns: minmax(0, 1fr) 48px 50px 64px;
    padding-inline: 10px;
  }

  .send-button {
    font-size: 12px;
  }

  .quick-actions {
    gap: 8px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .app-shell {
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }

  .composer {
    bottom: calc(70px + env(safe-area-inset-bottom) + var(--keyboard-offset));
  }

  .bottom-nav {
    min-height: calc(64px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-line,
  .scan-steps span.is-active::after,
  .splash-icon,
  .voice-logo img,
  .voice-wave span {
    animation: none !important;
  }
}

.app-shell {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.quick-create-card .composer,
.composer {
  position: static;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px 84px;
  transform: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.quick-create-card .composer > *,
.composer > * {
  min-width: 0;
}

.quick-create-card .composer textarea {
  min-height: 58px;
  padding-inline: 14px;
}

.quick-create-card .screenshot-button,
.quick-create-card .mic-button,
.quick-create-card .send-button {
  min-height: 58px;
}

.quick-create-card .send-button {
  width: 100%;
  font-size: 13px;
}

.screenshot-sheet.is-loading-step .sheet-actions {
  display: none;
}

.screenshot-sheet.is-loading-step .screenshot-privacy {
  display: none;
}

.toast {
  bottom: calc(96px + env(safe-area-inset-bottom) + var(--keyboard-offset));
}

@media (max-width: 370px) {
  .quick-create-card .composer,
  .composer {
    grid-template-columns: minmax(0, 1fr) 46px 48px 56px;
    gap: 6px;
  }

  .quick-create-card .send-button {
    font-size: 12px;
    padding-inline: 4px;
  }
}

/* Mobile app polish: refined empty states, real tabs, and cleaner navigation. */
[hidden] {
  display: none !important;
}

.next-card.is-empty {
  min-height: 164px;
  grid-template-columns: minmax(0, 1fr) 86px;
  padding: 22px 16px 20px 20px;
  align-items: center;
}

.next-card.is-empty::before {
  width: 92px;
  height: 92px;
  opacity: 0.72;
}

.next-card.is-empty h2 {
  max-width: 220px;
  margin-top: 9px;
  color: var(--primary-deep);
  font-size: 19px;
  line-height: 1.28;
  font-weight: 820;
  letter-spacing: 0;
  font-variant-numeric: normal;
}

.next-card.is-empty p {
  max-width: 232px;
  margin-top: 9px;
  color: #667792;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 520;
}

.next-card.is-empty dl {
  margin-top: 12px;
  opacity: 0.78;
}

.next-card.is-empty .next-logo {
  width: 82px;
  height: 98px;
}

.next-card.is-empty .next-logo img {
  width: 104px;
  height: 104px;
  transform: translate(-12px, 4px) scale(0.98);
}

.next-cta,
.empty-cta {
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #4d8cff, #2468e8);
  box-shadow: 0 10px 20px rgba(47, 109, 246, 0.18);
  font-size: 13px;
  font-weight: 820;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 18px 22px;
  border: 1px solid rgba(214, 227, 245, 0.84);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 251, 255, 0.64));
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.06);
  text-align: center;
}

.empty-visual {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.empty-visual img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(47, 109, 246, 0.12));
}

.empty-state h3,
.soft-empty h3 {
  color: var(--primary-deep);
  font-size: 19px;
  line-height: 1.28;
  font-weight: 820;
}

.empty-state p,
.soft-empty p {
  max-width: 268px;
  color: #73849e;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 480;
}

.empty-state .empty-cta {
  margin-top: 8px;
}

.tab-page {
  display: grid;
  gap: 14px;
  animation: tabFade 190ms ease both;
}

.page-hero,
.me-profile-card,
.calendar-card,
.me-group {
  border: 1px solid rgba(214, 227, 245, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-hero {
  padding: 18px;
}

.page-hero h2,
.me-profile-card h2 {
  margin-top: 3px;
  color: var(--primary-deep);
  font-size: 24px;
  line-height: 1.22;
  font-weight: 850;
}

.page-hero p,
.me-profile-card p {
  margin-top: 7px;
  color: #6d7e99;
  font-size: 13px;
  line-height: 1.5;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(214, 227, 245, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.segmented-tabs button {
  min-height: 38px;
  border-radius: 14px;
  color: #70819b;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
}

.segmented-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #4d8cff, #2468e8);
  box-shadow: 0 8px 16px rgba(47, 109, 246, 0.18);
}

.all-reminder-list,
.calendar-day-list {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(214, 227, 245, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.all-reminder-list.is-empty-list,
.calendar-day-list.is-empty-list {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.soft-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 18px;
  border: 1px solid rgba(214, 227, 245, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.reminder-item {
  grid-template-columns: 58px minmax(0, 1fr) auto 44px;
  gap: 9px;
}

.status-chip {
  justify-self: end;
  align-self: center;
  max-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.status-active {
  color: #2468e8;
  background: rgba(47, 109, 246, 0.1);
}

.status-completed {
  color: #4f8175;
  background: rgba(127, 168, 154, 0.16);
}

.status-expired {
  color: #b15d4b;
  background: rgba(216, 111, 90, 0.12);
}

.calendar-card {
  padding: 14px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.calendar-toolbar strong {
  color: var(--primary-deep);
  font-size: 18px;
  text-align: center;
}

.calendar-nav-button {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--primary);
  background: rgba(234, 242, 255, 0.82);
  font-size: 26px;
  line-height: 1;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  margin-top: 12px;
  color: #8291a9;
  font-size: 11px;
  font-weight: 760;
  text-align: center;
}

.calendar-grid {
  gap: 5px;
  margin-top: 8px;
}

.calendar-day {
  position: relative;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #31435f;
  background: transparent;
  font-size: 14px;
  font-weight: 760;
}

.calendar-day.is-muted {
  color: #b4c0d0;
}

.calendar-day.is-today {
  color: var(--primary);
  background: rgba(47, 109, 246, 0.08);
}

.calendar-day.is-selected {
  color: #ffffff;
  background: linear-gradient(135deg, #4d8cff, #2468e8);
  box-shadow: 0 8px 16px rgba(47, 109, 246, 0.18);
}

.calendar-day i {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.calendar-day-panel {
  display: grid;
  gap: 10px;
}

.compact-title-row {
  margin-bottom: 0;
}

.me-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.me-profile-card img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(47, 109, 246, 0.14);
}

.me-page-content {
  display: grid;
  gap: 12px;
}

.me-group {
  overflow: hidden;
}

.me-group h3 {
  padding: 14px 16px 7px;
  color: var(--primary-deep);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 840;
}

.me-group-list {
  display: grid;
}

.me-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid rgba(214, 227, 245, 0.66);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.me-row strong {
  display: block;
  color: var(--primary-deep);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 790;
}

.me-row em {
  display: block;
  margin-top: 3px;
  color: #72819e;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.me-row > em {
  max-width: 150px;
  text-align: right;
}

.me-action b {
  color: #9aacbf;
  font-size: 22px;
  font-weight: 480;
}

.me-action.danger strong,
.me-action.danger b {
  color: var(--danger);
}

.me-toggle-row input {
  position: relative;
  width: 48px;
  height: 28px;
  appearance: none;
  border: 1px solid rgba(214, 227, 245, 0.94);
  border-radius: 999px;
  background: #dce8f8;
  outline: none;
  transition: background 180ms ease;
}

.me-toggle-row input::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 35, 63, 0.12);
  transition: transform 180ms ease;
}

.me-toggle-row input:checked {
  background: var(--primary);
}

.me-toggle-row input:checked::after {
  transform: translateX(20px);
}

.bottom-nav {
  min-height: calc(72px + env(safe-area-inset-bottom));
  align-items: start;
  gap: 4px;
  padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(214, 227, 245, 0.72);
  background: rgba(248, 251, 255, 0.78);
  box-shadow:
    0 -18px 38px rgba(16, 35, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.16);
}

.bottom-nav button {
  min-height: 54px;
  gap: 3px;
  border-radius: 18px;
  color: #7f8fa9;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.bottom-nav button.is-active {
  color: var(--primary);
  background: rgba(234, 242, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.08);
}

.bottom-nav button:active {
  transform: translateY(1px) scale(0.96);
}

.bottom-nav em {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 760;
}

.bottom-nav {
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 50;
  width: min(calc(100% - 24px), 406px);
  min-height: 68px;
  padding: 8px 10px;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(214, 227, 245, 0.9);
  border-radius: 24px;
  background: rgba(248, 251, 255, 0.86);
  box-shadow:
    0 16px 40px rgba(47, 109, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.bottom-nav__item,
.bottom-nav button {
  min-width: 0;
  min-height: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 18px;
  color: #8797b4;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  line-height: 1;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.bottom-nav__item.is-active,
.bottom-nav button.is-active {
  color: #2f6df6;
  background: linear-gradient(180deg, rgba(234, 242, 255, 0.95), rgba(255, 255, 255, 0.68));
  box-shadow:
    inset 0 0 0 1px rgba(47, 109, 246, 0.08),
    0 8px 18px rgba(47, 109, 246, 0.08);
}

.bottom-nav__item:active,
.bottom-nav button:active {
  transform: scale(0.96);
}

.bottom-nav__icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}

.nav-svg {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    filter 160ms ease;
}

.nav-svg--selected {
  opacity: 0;
  transform: translateY(1px) scale(0.96);
}

.nav-svg--unselected {
  opacity: 1;
}

.bottom-nav__item.is-active .nav-svg--selected,
.bottom-nav button.is-active .nav-svg--selected {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 4px 8px rgba(47, 109, 246, 0.18));
}

.bottom-nav__item.is-active .nav-svg--unselected,
.bottom-nav button.is-active .nav-svg--unselected {
  opacity: 0;
  transform: translateY(-1px) scale(0.96);
}

.bottom-nav em {
  color: currentColor;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0;
}

.bottom-nav__item.is-active em,
.bottom-nav button.is-active em {
  font-weight: 760;
}

body.is-sheet-open .bottom-nav,
body.is-screenshot-open .bottom-nav,
body.is-settings-open .bottom-nav,
body.is-privacy-open .bottom-nav,
body.is-detail-open .bottom-nav,
body.is-paywall-open .bottom-nav,
body.is-notification-primer-open .bottom-nav,
body.is-voice-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
}

.next-logo,
.voice-logo,
.empty-visual,
.onboarding-card img {
  isolation: isolate;
}

.next-logo img,
.voice-logo img,
.empty-visual img,
.onboarding-card img {
  image-rendering: auto;
  mix-blend-mode: normal;
}

@keyframes tabFade {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 370px) {
  .next-card.is-empty {
    grid-template-columns: minmax(0, 1fr) 72px;
    padding: 20px 14px 18px 18px;
  }

  .next-card.is-empty h2 {
    font-size: 18px;
  }

  .next-card.is-empty p,
  .empty-state p,
  .soft-empty p {
    font-size: 13px;
  }

  .reminder-item {
    grid-template-columns: 50px minmax(0, 1fr) 44px;
  }

  .reminder-item .status-chip {
    display: none;
  }

  .segmented-tabs button {
    font-size: 12px;
  }

  .me-row > em {
    max-width: 118px;
  }
}

