:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #6f7782;
  --line: #e5e8ec;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --accent: #2878ff;
  --danger: #d94747;
  --success: #198754;
  --phone-width: 390px;
  --phone-height: 844px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.open-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #c9ccd1;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.85), transparent 35%),
    #c9ccd1;
}

.phone {
  position: relative;
  display: grid;
  grid-template-rows: 32px minmax(0, 1fr) 44px;
  width: min(var(--phone-width), 100vw);
  height: min(var(--phone-height), 100dvh);
  overflow: hidden;
  background: var(--paper);
  border: 8px solid #1f2226;
  border-radius: 42px;
  box-shadow: 0 28px 70px rgba(22, 25, 29, 0.3);
}

.status-bar {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) 18px 0;
  color: #16191d;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 650;
}

.status-icons {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
}

.phone.lock-mode .status-bar,
.phone.lock-mode .system-navigation {
  color: white;
  background: #30455f;
  border-color: transparent;
}

.phone.lock-mode .signal-icon {
  background: linear-gradient(to right, white 18%, transparent 18% 28%, white 28% 50%, transparent 50% 60%, white 60% 82%, transparent 82% 90%, white 90%);
}

.phone.lock-mode .battery-icon {
  border-color: white;
}

.phone.lock-mode .battery-icon::before,
.phone.lock-mode .battery-icon::after {
  background: white;
}

.phone.lock-mode .back-key::before {
  border-color: white;
}

.phone.lock-mode .home-key::before,
.phone.lock-mode .recents-key::before {
  border-color: white;
}

.signal-icon {
  width: 13px;
  height: 10px;
  background: linear-gradient(to right, #17191c 18%, transparent 18% 28%, #17191c 28% 50%, transparent 50% 60%, #17191c 60% 82%, transparent 82% 90%, #17191c 90%);
  clip-path: polygon(0 100%, 0 72%, 18% 72%, 18% 54%, 50% 54%, 50% 30%, 82% 30%, 82% 0, 100% 0, 100% 100%);
}

.battery-icon {
  position: relative;
  width: 20px;
  height: 9px;
  border: 1.4px solid #17191c;
  border-radius: 3px;
}

.battery-icon::before {
  position: absolute;
  inset: 1.5px 3px 1.5px 1.5px;
  content: "";
  background: #17191c;
  border-radius: 1px;
}

.battery-icon::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 4px;
  content: "";
  background: #17191c;
  border-radius: 0 2px 2px 0;
}

.phone-content {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.phone-content.intro-transition-out,
.phone-content.intro-transition-in {
  pointer-events: none;
  will-change: opacity, transform, border-radius;
}

.phone-content[data-intro-transition="notification"].intro-transition-out {
  animation: androidNotificationOut 210ms cubic-bezier(0.4, 0, 1, 1) both;
}

.phone-content[data-intro-transition="notification"].intro-transition-in {
  animation: androidNotificationIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phone-content[data-intro-transition="activity"].intro-transition-out {
  animation: androidActivityOut 210ms cubic-bezier(0.4, 0, 1, 1) both;
}

.phone-content[data-intro-transition="activity"].intro-transition-in {
  animation: androidActivityIn 430ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phone-content[data-intro-transition="unlock"].intro-transition-out {
  animation: androidUnlockOut 260ms cubic-bezier(0.4, 0, 1, 1) both;
}

.phone-content[data-intro-transition="unlock"].intro-transition-in {
  animation: androidUnlockIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes androidNotificationOut {
  to { opacity: 0; transform: translateX(-18px) scale(0.992); }
}

@keyframes androidNotificationIn {
  from { opacity: 0; transform: translateX(28px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes androidActivityOut {
  to { opacity: 0; border-radius: 24px; transform: translateY(10px) scale(0.94); }
}

@keyframes androidActivityIn {
  0% { opacity: 0; border-radius: 28px; transform: translateY(24px) scale(0.9); }
  72% { opacity: 1; border-radius: 5px; transform: translateY(-2px) scale(1.006); }
  100% { opacity: 1; border-radius: 0; transform: translateY(0) scale(1); }
}

@keyframes androidUnlockOut {
  to { opacity: 0; transform: translateY(-58px) scale(1.015); }
}

@keyframes androidUnlockIn {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.android-lock-screen {
  position: relative;
  height: 100%;
  padding: 48px 16px 28px;
  color: white;
  background:
    linear-gradient(180deg, rgba(12, 28, 48, 0.12), rgba(8, 18, 34, 0.62)),
    radial-gradient(circle at 72% 18%, #7899bd, transparent 35%),
    linear-gradient(145deg, #243a56, #6d748f 52%, #293b52);
}

.lock-clock {
  display: grid;
  margin-bottom: 36px;
  justify-items: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.lock-clock strong {
  font-size: 58px;
  font-weight: 320;
  letter-spacing: -2px;
}

.lock-clock span {
  font-size: 14px;
}

.lock-notification {
  padding: 14px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.lock-notification-head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.lock-app-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: white;
  background: var(--lock-icon);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.lock-app-icon .open-icon {
  width: 16px;
  height: 16px;
}

.lock-notification-head strong {
  font-size: 13px;
}

.lock-notification-head small {
  color: #727b85;
  font-size: 11px;
}

.lock-notification p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.65;
}

.lock-notification-action {
  width: 100%;
  padding: 10px 12px;
  color: #2468d8;
  background: transparent;
  border: 0;
  border-top: 1px solid #e3e7eb;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.lock-hint {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  font-size: 12px;
  text-align: center;
  opacity: 0.78;
}

.intro-app-screen {
  height: 100%;
  background: #f5f6f7;
}

.intro-android-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  height: 58px;
  padding: 0 12px;
  background: white;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.intro-session-card {
  padding: 52px 24px 24px;
  text-align: center;
}

.intro-session-card h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

.intro-session-card p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.safety-notice-screen {
  position: absolute;
  z-index: 32;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(24, 33, 45, 0.42), rgba(16, 24, 34, 0.72)),
    radial-gradient(circle at 72% 18%, #7899bd, transparent 38%),
    linear-gradient(145deg, #243a56, #6d748f 52%, #293b52);
}

.safety-notice-dialog {
  width: 100%;
  max-width: 310px;
  padding: 25px 22px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 27px;
  box-shadow: 0 22px 58px rgba(8, 16, 28, 0.34);
  text-align: center;
  animation: systemDialogIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.safety-notice-dialog .brand-mark {
  margin: 0 auto 17px;
}

.safety-notice-dialog h1 {
  margin-bottom: 10px;
  font-size: 22px;
}

.safety-notice-dialog p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.system-navigation {
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(250, 250, 250, 0.96);
  border-top: 1px solid rgba(20, 24, 28, 0.06);
}

.system-key {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
}

.back-key::before {
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  content: "";
  border-bottom: 2px solid #282c31;
  border-left: 2px solid #282c31;
  transform: rotate(45deg);
}

.home-key::before {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  content: "";
  border: 2px solid #282c31;
  border-radius: 50%;
}

.recents-key::before {
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
  content: "";
  border: 2px solid #282c31;
  border-radius: 3px;
}

.screen-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.home-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 18px;
  color: white;
  background:
    linear-gradient(160deg, rgba(17, 31, 46, 0.1), rgba(17, 31, 46, 0.62)),
    radial-gradient(circle at 72% 22%, #9fcac0 0 12%, transparent 32%),
    linear-gradient(145deg, #618c95, #344c64 55%, #253449);
}

.home-clock {
  margin: 14px 0 40px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.home-clock strong {
  display: block;
  font-size: 54px;
  font-weight: 320;
  letter-spacing: -2px;
}

.home-clock span {
  font-size: 14px;
  opacity: 0.86;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 12px;
}

.app-shortcut {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: white;
  background: transparent;
  border: 0;
  font-size: 12px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
}

.app-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: white;
  background: var(--icon-color, #718096);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 8px 18px rgba(0, 0, 0, 0.16);
  font-size: 23px;
  font-weight: 750;
}

.app-icon .open-icon {
  width: 27px;
  height: 27px;
}

.app-shortcut {
  transition: transform 130ms ease, opacity 130ms ease;
}

.app-shortcut:active,
.app-shortcut.launching {
  opacity: 0.86;
  transform: scale(0.9);
}

.app-launch-layer {
  position: absolute;
  z-index: 40;
  top: var(--launch-top);
  left: var(--launch-left);
  display: grid;
  width: var(--launch-width);
  height: var(--launch-height);
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--launch-color);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(18, 24, 31, 0.2);
  pointer-events: auto;
  transition:
    top 330ms cubic-bezier(0.2, 0.8, 0.2, 1),
    left 330ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 330ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 330ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-radius 300ms ease,
    box-shadow 300ms ease;
  will-change: top, left, width, height, border-radius;
}

.app-launch-layer.expanded {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.app-launch-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: width 300ms ease, height 300ms ease, transform 300ms ease;
}

.app-launch-icon .open-icon {
  width: 100%;
  height: 100%;
}

.app-launch-layer.expanded .app-launch-icon {
  width: 62px;
  height: 62px;
  transform: translate(-50%, -66%);
}

.app-launch-layer > strong {
  position: absolute;
  top: calc(50% + 39px);
  opacity: 0;
  font-size: 14px;
  transform: translateY(8px);
  transition: opacity 160ms ease 150ms, transform 180ms ease 150ms;
}

.app-launch-layer.expanded > strong {
  opacity: 0.92;
  transform: translateY(0);
}

.app-launch-content-enter {
  animation: appLaunchContentEnter 180ms ease-out both;
}

@keyframes appLaunchContentEnter {
  from {
    opacity: 0.82;
    transform: scale(0.992);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shortcut,
  .app-launch-layer,
  .app-launch-icon,
  .app-launch-layer > strong,
  .app-launch-content-enter {
    animation: none;
    transition: none;
  }

  .phone-content.intro-transition-out,
  .phone-content.intro-transition-in {
    animation: none;
  }
}

.app-badge {
  position: absolute;
  top: -5px;
  right: 4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: white;
  background: #e54343;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  font-size: 10px;
  text-shadow: none;
}

.dock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding: 14px 10px 10px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

.dock .app-shortcut span:last-child {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  height: 100%;
  background: var(--surface);
}

.app-header {
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.app-header h1 {
  overflow: hidden;
  font-size: 17px;
  font-weight: 680;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-action {
  width: 40px;
  height: 40px;
  color: #29313a;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
}

.app-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.mail-splash-ad {
  position: relative;
  display: flex;
  grid-row: 1 / -1;
  flex-direction: column;
  min-height: 0;
  padding: 62px 28px 28px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 72% 22%, rgba(164, 210, 255, 0.9), transparent 28%),
    linear-gradient(150deg, #15366e, #3478f6 58%, #73b9ff);
}

.mail-ad-visual {
  display: flex;
  gap: 10px;
  margin-bottom: 56px;
}

.mail-ad-visual span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(10, 38, 90, 0.25);
  font-size: 27px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.mail-ad-copy small {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 3px;
  opacity: 0.82;
}

.mail-ad-copy h1 {
  margin: 12px 0 16px;
  font-size: 37px;
  line-height: 1.18;
  letter-spacing: -1px;
}

.mail-ad-copy p {
  font-size: 14px;
  opacity: 0.8;
}

.mail-ad-skip {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  color: #174a91;
  background: white;
  border: 0;
  border-radius: 14px;
  font-weight: 750;
}

.mail-ad-skip:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(15, 44, 94, 0.28);
}

.mail-ad-label {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  font-size: 10px;
  opacity: 0.72;
}

.panel {
  padding: 24px 22px 32px;
}

.brand-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 10px auto 18px;
  place-items: center;
  color: white;
  background: #111820;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(17, 24, 32, 0.2);
  font-size: 31px;
  font-weight: 800;
}

.brand-mark .open-icon {
  width: 34px;
  height: 34px;
}

.center-title {
  margin-bottom: 8px;
  font-size: 23px;
  font-weight: 720;
  text-align: center;
}

.center-copy {
  max-width: 290px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  margin: 0 0 7px 3px;
  color: #4f5965;
  font-size: 12px;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f5f6f7;
  border: 1px solid transparent;
  border-radius: 13px;
  outline: none;
  resize: none;
  user-select: text;
}

.field input:focus,
.field textarea:focus {
  background: white;
  border-color: var(--accent);
}

.primary-button,
.secondary-button,
.text-button {
  width: 100%;
  min-height: 46px;
  border-radius: 13px;
  font-weight: 680;
}

.primary-button {
  color: white;
  background: #171d24;
  border: 0;
}

.primary-button:disabled {
  opacity: 0.45;
}

.secondary-button {
  color: #222b34;
  background: #eef0f2;
  border: 0;
}

.text-button {
  color: var(--accent);
  background: transparent;
  border: 0;
}

.privacy-tip {
  margin: 10px auto 0;
  color: #8b949e;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.word-captcha-panel {
  padding-top: 24px;
}

.word-captcha-targets {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 13px 0 18px;
}

.word-captcha-targets span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #20262d;
  background: #eef0f2;
  border: 1px solid #d8dce0;
  border-radius: 8px;
  font-size: 21px;
  font-weight: 720;
}

.word-captcha-board {
  position: relative;
  height: 224px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(45, 98, 91, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 64%, rgba(112, 65, 55, 0.13) 0 2px, transparent 3px),
    repeating-linear-gradient(23deg, transparent 0 17px, rgba(54, 65, 74, 0.045) 18px 19px),
    linear-gradient(145deg, #e5e1d7, #d7dfdc 52%, #ece5db);
  border: 1px solid #ccd1d2;
  border-radius: 13px;
  box-shadow: inset 0 0 30px rgba(42, 52, 57, 0.08);
}

.word-captcha-board::after {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 30% 40%, transparent 0 7px, rgba(35, 45, 52, 0.025) 8px 9px);
  content: "";
  pointer-events: none;
}

.word-captcha-character {
  position: absolute;
  z-index: 1;
  top: var(--captcha-y);
  left: var(--captcha-x);
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--captcha-color);
  background: transparent;
  border: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: var(--captcha-size);
  font-weight: 760;
  text-shadow: 1px 1px rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) rotate(var(--captcha-rotation));
}

.word-captcha-character:active {
  opacity: 0.7;
}

.word-captcha-character i {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: white;
  background: #3478f6;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(26, 54, 94, 0.26);
  font: 700 10px/1 "Microsoft YaHei UI", sans-serif;
}

.word-captcha-status {
  min-height: 22px;
  margin: 13px 0 2px;
  color: #727c86;
  font-size: 12px;
  text-align: center;
}

.word-captcha-status.success { color: #248253; }
.word-captcha-status.error { color: #c64c45; }

.word-captcha-refresh {
  min-height: 34px;
  font-size: 12px;
}

.button-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.notice {
  margin: 14px 0;
  padding: 13px 14px;
  color: #505965;
  background: #f1f3f5;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.notice.error {
  color: #9c2929;
  background: #fff0f0;
}

.notice.success {
  color: #146c43;
  background: #eaf8f0;
}

.password-rule-overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 31, 0.46);
  backdrop-filter: blur(3px);
  animation: paymentOverlayIn 180ms ease both;
}

.password-rule-dialog {
  width: min(100%, 330px);
  padding: 24px 20px 20px;
  text-align: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(18, 24, 31, 0.26);
}

.password-rule-dialog .brand-mark {
  margin: 0 auto 14px;
}

.password-rule-dialog h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.password-rule-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.system-dialog-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 31, 0.48);
  backdrop-filter: blur(4px);
  animation: paymentOverlayIn 180ms ease both;
}

.system-dialog-card {
  width: min(100%, 330px);
  padding: 24px 20px 18px;
  text-align: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 58px rgba(18, 24, 31, 0.3);
  animation: systemDialogIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.system-dialog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: #fff;
  background: #202832;
  border-radius: 17px;
}

.system-dialog-icon .open-icon {
  width: 26px;
  height: 26px;
}

.system-dialog-card h2 {
  margin: 0 0 9px;
  font-size: 20px;
}

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

.system-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.system-dialog-actions button {
  margin: 0;
}

.primary-button.danger-button {
  background: #d84d46;
}

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

.sms-slider-overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 24, 31, 0.48);
  backdrop-filter: blur(3px);
  animation: paymentOverlayIn 180ms ease both;
}

.sms-slider-dialog {
  width: min(100%, 350px);
  padding: 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 54px rgba(18, 24, 31, 0.28);
}

.sms-slider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.sms-slider-head div {
  display: grid;
  gap: 4px;
}

.sms-slider-head strong {
  font-size: 17px;
}

.sms-slider-head small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.sms-slider-head button {
  padding: 3px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 13px;
}

.sms-slider-puzzle {
  position: relative;
  height: 142px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 239, 174, 0.95) 0 11px, transparent 12px),
    linear-gradient(155deg, #7ec0df 0%, #b9d9dd 52%, #d8caa7 53%, #a58c62 100%);
  border-radius: 13px;
}

.sms-slider-landscape {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52px;
  background:
    linear-gradient(135deg, transparent 0 12%, #536d57 13% 34%, transparent 35%),
    linear-gradient(45deg, #3f5b4b 0 30%, #71805e 31% 55%, #405542 56% 100%);
  clip-path: polygon(0 58%, 12% 30%, 25% 65%, 40% 14%, 54% 55%, 68% 22%, 83% 62%, 100% 32%, 100% 100%, 0 100%);
}

.sms-slider-hole,
.sms-slider-piece {
  position: absolute;
  top: 47px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.sms-slider-hole {
  z-index: 2;
  left: var(--slider-target-left);
  background: rgba(23, 35, 42, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 2px 8px rgba(18, 24, 31, 0.28);
}

.sms-slider-piece {
  z-index: 3;
  left: 0;
  background: linear-gradient(145deg, #d7e5dc 0%, #738d71 58%, #445d4b 100%);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(18, 24, 31, 0.28);
  transition: transform 90ms linear;
}

.sms-captcha-slider {
  --slider-progress: 0%;
  width: 100%;
  height: 42px;
  margin: 15px 0 0;
  appearance: none;
  background: linear-gradient(90deg, #9ecbb0 0 var(--slider-progress), #e8ebee var(--slider-progress) 100%);
  border: 1px solid #d9dde1;
  border-radius: 10px;
  cursor: grab;
}

.sms-captcha-slider:active {
  cursor: grabbing;
}

.sms-captcha-slider::-webkit-slider-thumb {
  width: 48px;
  height: 40px;
  appearance: none;
  background: #fff;
  border: 1px solid #cbd2d8;
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(18, 24, 31, 0.18);
}

.sms-captcha-slider::-moz-range-thumb {
  width: 48px;
  height: 40px;
  background: #fff;
  border: 1px solid #cbd2d8;
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(18, 24, 31, 0.18);
}

.sms-captcha-slider.error {
  background: #f5cccc;
}

.sms-slider-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.sms-slider-status.error {
  color: #a72e2e;
}

.captcha-prompt {
  margin: 22px 0 14px;
  font-size: 15px;
  font-weight: 650;
}

.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.captcha-cell {
  aspect-ratio: 1;
  color: #232a32;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(233, 236, 240, 0.96)),
    #f0f1f3;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 760;
}

.captcha-cell.selected {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.traffic-captcha {
  padding: 14px 14px 20px;
  background: #f5f6f7;
}

.traffic-captcha-prompt {
  display: block;
  padding: 16px 18px;
  color: white;
  background: #3977d4;
  border-radius: 4px 4px 0 0;
}

.traffic-captcha-prompt small,
.traffic-captcha-prompt strong,
.traffic-captcha-prompt span {
  display: block;
}

.traffic-captcha-prompt small {
  font-size: 14px;
}

.traffic-captcha-prompt strong {
  margin: 2px 0;
  font-size: 30px;
  line-height: 1.1;
}

.traffic-captcha-prompt span {
  font-size: 13px;
  line-height: 1.45;
}

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  background: white;
}

.traffic-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #d8dde1;
  border: 0;
  touch-action: manipulation;
}

.traffic-tile-image {
  position: absolute;
  inset: 0;
  background-image: url("./captcha-streets.webp");
  background-repeat: no-repeat;
  background-position: var(--sprite-x) var(--sprite-y);
  background-size: 400% 400%;
  opacity: 1;
  transition: transform 120ms ease, opacity 680ms ease;
}

.traffic-tile:active .traffic-tile-image {
  transform: scale(0.94);
}

.traffic-tile.fading-out .traffic-tile-image,
.traffic-tile.waiting .traffic-tile-image {
  opacity: 0;
}

.traffic-tile.waiting {
  background: #edf0f2;
}

.traffic-tile.fading-in .traffic-tile-image {
  animation: trafficImageFadeIn 700ms ease both;
}

@keyframes trafficImageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.traffic-tile.selected::after {
  position: absolute;
  inset: 5px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: white;
  content: "✓";
  background: #3977d4;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  font-weight: 800;
}

.traffic-captcha-footer {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: white;
  border-top: 1px solid #dfe3e8;
  border-radius: 0 0 4px 4px;
}

.traffic-refresh {
  height: 42px;
  color: #66717c;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.traffic-refresh .open-icon,
.payment-delete .open-icon {
  margin: auto;
}

.traffic-verify {
  justify-self: end;
  min-width: 92px;
  height: 42px;
  color: white;
  background: #3977d4;
  border: 0;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 750;
}

.hold-button {
  position: relative;
  width: 100%;
  height: 58px;
  overflow: hidden;
  color: #202832;
  background: #e8ebef;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  touch-action: none;
}

.hold-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #9de1bd;
  transition: width 60ms linear;
}

.hold-label {
  position: relative;
  z-index: 1;
}

.circle-challenge {
  padding: 18px 16px 22px;
  overflow-y: auto;
  background: white;
}

.circle-challenge-head {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.circle-challenge-head > div {
  padding: 10px 12px;
  background: #f1f4f7;
  border-radius: 12px;
}

.circle-challenge-head small,
.circle-challenge-head strong {
  display: block;
}

.circle-challenge-head small {
  color: var(--muted);
  font-size: 11px;
}

.circle-challenge-head strong {
  margin-top: 2px;
  font-size: 25px;
}

.circle-challenge > p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.circle-canvas {
  display: block;
  width: 100%;
  height: 330px;
  background: #f8fafc;
  border: 2px solid #dce2e8;
  border-radius: 18px;
  touch-action: none;
}

.circle-canvas.success {
  border-color: var(--success);
}

.circle-result {
  min-height: 42px;
  padding: 11px 4px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.circle-result.success {
  color: var(--success);
}

.circle-result.error {
  color: var(--danger);
}

.security-question {
  margin: 18px 0;
  padding: 18px;
  background: #fff9e9;
  border: 1px solid #f0dfad;
  border-radius: 16px;
}

.security-question small {
  display: block;
  margin-bottom: 6px;
  color: #8a7138;
  font-weight: 700;
}

.security-question p {
  font-size: 14px;
  line-height: 1.65;
}

.code-block {
  margin-top: 10px;
  padding: 10px 12px;
  color: #2c3440;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  user-select: text;
}

.note-paper {
  min-height: 100%;
  padding: 28px 24px 40px;
  background:
    linear-gradient(#f0e9ca 1px, transparent 1px) 0 42px / 100% 30px,
    #fffdf4;
}

.note-paper h2 {
  margin-bottom: 20px;
  font-family: ui-serif, "Songti SC", serif;
  font-size: 24px;
}

.note-paper p {
  min-height: 30px;
  line-height: 30px;
  user-select: text;
}

.list {
  background: white;
}

.account-strip {
  position: sticky;
  z-index: 3;
  top: 0;
  padding: 11px 16px;
  background: #f4f6f8;
  border-bottom: 1px solid var(--line);
}

.account-address {
  width: 100%;
  padding: 3px 6px;
  color: #27313b;
  background: transparent;
  border: 0;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
}

.account-address:focus {
  color: var(--accent);
}

.list-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 10px 16px;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.list-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: #637c90;
  border-radius: 14px;
  font-weight: 800;
}

.list-avatar .open-icon {
  width: 21px;
  height: 21px;
}

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

.list-main strong,
.list-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-main strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.contact-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 5px;
  color: #54705d;
  background: #e8f1eb;
  border-radius: 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  vertical-align: 1px;
}

.list-main span,
.list-meta {
  color: var(--muted);
  font-size: 12px;
}

.mail-detail {
  padding: 20px 18px 36px;
}

.mail-detail h2 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
}

.mail-meta {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.attachment {
  margin-top: 22px;
  padding: 18px;
  background: #f3f4f6;
  border: 1px solid #e0e3e7;
  border-radius: 16px;
  text-align: center;
}

.qr-code {
  display: grid;
  width: 230px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 14px auto;
  place-items: center;
  background: white;
  border: 12px solid white;
  box-shadow: 0 4px 18px rgba(18, 23, 30, 0.08);
}

.qr-code svg,
.qr-code img {
  width: 100%;
  height: 100%;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.avatar-choice {
  display: grid;
  gap: 8px;
  padding: 9px;
  background: white;
  border: 2px solid #e5e8eb;
  border-radius: 16px;
  font-size: 11px;
}

.avatar-choice.selected {
  border-color: var(--accent);
}

.avatar-grid.images-unavailable .avatar-choice {
  background: #f0f2f4;
  border-color: #e1e4e7;
}

.avatar-load-error {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: #e4e7ea;
  border-radius: 12px;
}

.avatar-load-error::before {
  width: 28px;
  height: 22px;
  content: "";
  border: 2px solid #a1a8b0;
  border-radius: 3px;
}

.avatar-load-error::after {
  position: absolute;
  width: 19px;
  height: 12px;
  content: "";
  border-bottom: 2px solid #a1a8b0;
  border-left: 2px solid #a1a8b0;
  transform: rotate(-45deg) translate(1px, 1px);
}

.avatar-load-error i {
  position: absolute;
  top: 35%;
  right: 32%;
  width: 5px;
  height: 5px;
  background: #a1a8b0;
  border-radius: 50%;
}

.avatar-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--avatar-bg, #dfe8ea);
  border-radius: 12px;
}

.avatar-art::before {
  position: absolute;
  top: 25%;
  left: 27%;
  width: 46%;
  height: 46%;
  content: "";
  background: var(--avatar-face, #6d8292);
  border-radius: 48% 48% 44% 44%;
  box-shadow: -10px -10px 0 -5px var(--avatar-face, #6d8292), 10px -10px 0 -5px var(--avatar-face, #6d8292);
}

.avatar-art::after {
  position: absolute;
  bottom: 18%;
  left: 21%;
  width: 58%;
  height: 14%;
  content: "";
  background: var(--avatar-accent, #fff);
  border-radius: 12px;
  transform: rotate(-5deg);
}

.scarf-cat {
  --avatar-bg: #bad7d1;
  --avatar-face: #d9803f;
  --avatar-accent: #f2c94c;
}

.blue-cat {
  --avatar-bg: #d9e6f5;
  --avatar-face: #6a88aa;
  --avatar-accent: #f7f9fb;
}

.red-fox {
  --avatar-bg: #f3d9d1;
  --avatar-face: #b9513c;
  --avatar-accent: #263546;
}

.green-bear {
  --avatar-bg: #d9e9cb;
  --avatar-face: #6b805d;
  --avatar-accent: #ffecbc;
}

.gray-rabbit {
  --avatar-bg: #e5e2ef;
  --avatar-face: #807a92;
  --avatar-accent: #e1a3b2;
}

.black-dog {
  --avatar-bg: #dedede;
  --avatar-face: #34383d;
  --avatar-accent: #65b0d2;
}

.chat-screen {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  background: #eef0f2;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 18px 14px;
  overflow-y: auto;
}

.message {
  max-width: 78%;
  padding: 10px 13px;
  background: white;
  border-radius: 5px 16px 16px 16px;
  font-size: 14px;
  line-height: 1.55;
  user-select: text;
}

.message.me {
  align-self: flex-end;
  background: #95e17e;
  border-radius: 16px 5px 16px 16px;
}

.chat-options {
  display: grid;
  gap: 8px;
  max-height: 210px;
  padding: 10px 10px 14px;
  overflow-y: auto;
  background: white;
  border-top: 1px solid var(--line);
  overscroll-behavior: contain;
}

.snowfall-account-form {
  display: grid;
  gap: 10px;
}

.chat-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: #1e6140;
  background: #f3faf6;
  border: 1px solid #cce8d7;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
}

.chat-option:active {
  background: #dff2e6;
}

.chat-option:disabled {
  color: #8b949d;
  background: #f2f3f4;
  border-color: #e1e4e7;
}

.red-packet-option {
  color: #a84237;
  background: #fff1ec;
  border-color: #f2c0b4;
}

.red-packet-card {
  display: grid;
  padding: 14px;
  color: white;
  background: linear-gradient(135deg, #eb6956, #d8493b);
  border-radius: 14px;
}

.red-packet-card small,
.red-packet-card span {
  font-size: 11px;
  opacity: 0.86;
}

.red-packet-card strong {
  margin: 4px 0;
  font-size: 28px;
}

.payment-overlay {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(18, 24, 31, 0.48);
  backdrop-filter: blur(2px);
  animation: paymentOverlayIn 180ms ease both;
}

.payment-sheet {
  width: 100%;
  padding: 14px 14px 16px;
  background: #f7f8f9;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 40px rgba(18, 24, 31, 0.22);
  animation: paymentSheetIn 240ms ease both;
}

.payment-sheet-head {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  text-align: center;
}

.payment-sheet-head strong {
  font-size: 16px;
}

.payment-sheet-head small {
  color: var(--muted);
  font-size: 11px;
}

.payment-sheet .red-packet-card {
  padding: 11px 14px;
}

.payment-sheet .red-packet-card strong {
  font-size: 25px;
}

.payment-dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 52px;
  margin: 13px 0;
  overflow: hidden;
  background: white;
  border: 1px solid #cfd5dc;
  border-radius: 10px;
}

.payment-dots span {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid #dde1e5;
}

.payment-dots span:last-child {
  border-right: 0;
}

.payment-dots span.filled::after {
  width: 10px;
  height: 10px;
  content: "";
  background: #171d24;
  border-radius: 50%;
}

.payment-dots.error {
  border-color: var(--danger);
  animation: paymentErrorShake 300ms ease;
}

.payment-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.payment-keypad button,
.payment-key-empty {
  min-height: 48px;
  background: white;
  border: 1px solid #e0e3e7;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 580;
}

.payment-keypad button:active {
  background: #dfe4e9;
  transform: scale(0.97);
}

.payment-key-empty,
.payment-delete {
  background: #e9edf1 !important;
  border-color: #e9edf1 !important;
}

.payment-delete {
  font-size: 20px !important;
}

@keyframes paymentOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes paymentSheetIn {
  from { transform: translateY(20%); }
  to { transform: translateY(0); }
}

@keyframes paymentErrorShake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.camera-screen {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  color: white;
  background: #06080a;
}

.camera-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 32px;
  place-content: center;
  text-align: center;
}

.camera-placeholder p {
  margin-bottom: 20px;
  color: #b8c0c8;
  line-height: 1.6;
}

.camera-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: 20px 18px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.74));
}

.camera-control {
  min-height: 44px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
}

.scan-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(68vw, 250px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -54%);
  pointer-events: none;
}

.scan-frame::after {
  position: absolute;
  top: 10%;
  right: 8%;
  left: 8%;
  height: 2px;
  content: "";
  background: #64e4a0;
  box-shadow: 0 0 10px #64e4a0;
  animation: scanLine 2.2s ease-in-out infinite alternate;
}

@keyframes scanLine {
  to { transform: translateY(178px); }
}

.feed {
  min-height: 100%;
  background: #f5f6f7;
}

.welcome-card {
  margin: 18px;
  padding: 22px;
  color: white;
  background: #17212b;
  border-radius: 20px;
}

.welcome-card h2 {
  margin-bottom: 8px;
  font-size: 23px;
}

.post-card {
  margin: 0 18px 14px;
  padding: 18px;
  background: white;
  border-radius: 18px;
}

.post-card p {
  color: #515b65;
  line-height: 1.65;
}

.circle-inbox {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 54px;
  min-height: 0;
  background: #f5f6f7;
}

.circle-conversation-list {
  min-height: 0;
  overflow-y: auto;
  background: white;
}

.circle-conversation-list .list-item {
  position: relative;
}

.circle-ta-avatar {
  background: linear-gradient(145deg, #dc6a88, #a74372);
  font-size: 13px;
}

.circle-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  color: #858d96;
  background: white;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
}

.circle-tabs strong {
  color: #171d24;
}

.circle-chat-screen {
  background: #eef0f2;
}

.circle-ending-messages {
  padding-top: 28px;
}

.ending-chat-actions {
  max-height: none;
}

.ending-chat-actions .chat-option {
  color: #4e5965;
  background: #f2f3f5;
  border-color: #e0e3e7;
  text-align: center;
}

.settings-group {
  margin: 16px;
  overflow: hidden;
  background: white;
  border-radius: 16px;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
}

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

.settings-row-copy {
  display: grid;
  gap: 3px;
}

.settings-row-copy strong {
  font-size: 14px;
}

.settings-row-copy small {
  color: var(--muted);
  font-size: 11px;
}

.settings-phone-number {
  color: #303943;
  font-variant-numeric: tabular-nums;
  user-select: text;
}

.settings-meta-action {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.settings-meta-action .open-icon,
.settings-row > .open-icon,
.settings-row > span > .open-icon {
  width: 16px;
  height: 16px;
}

.maintenance-setting-row {
  min-height: 76px;
}

.maintenance-setting-copy {
  gap: 5px;
}

.maintenance-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #dce4ec;
  border-top-color: #3478f6;
  border-radius: 50%;
  animation: maintenanceSpin 850ms linear infinite;
}

.maintenance-progress-track {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #e6eaed;
  border-radius: 999px;
}

.maintenance-progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3478f6, #69a0ff);
  border-radius: inherit;
  transition: width 90ms linear;
}

.maintenance-percent {
  min-width: 34px;
  color: #3478f6;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.danger-text {
  color: var(--danger);
}

.completion-report-screen {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  background: var(--paper);
}

.app-shell.completion-report-mode {
  grid-template-rows: minmax(0, 1fr);
}

.completion-report-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 10px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.completion-report-header h1 {
  font-size: 17px;
  font-weight: 650;
  text-align: center;
}

.completion-report-header > span:last-child {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #343b43;
}

.completion-report-header .open-icon {
  width: 20px;
  height: 20px;
}

.completion-report-content {
  min-height: 0;
  padding: 26px 16px 18px;
  overflow-y: auto;
}

.completion-report-hero {
  display: grid;
  justify-items: center;
  padding: 0 12px 25px;
  text-align: center;
}

.completion-success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  place-items: center;
  color: var(--success);
  background: #e0f3e7;
  border-radius: 50%;
}

.completion-success-mark .open-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

.completion-report-hero h2 {
  margin-bottom: 7px;
  font-size: 25px;
  letter-spacing: -0.02em;
}

.completion-report-hero p {
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.completion-primary-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 6px 14px;
}

.completion-primary-stat span {
  color: var(--muted);
  font-size: 13px;
}

.completion-primary-stat strong {
  font-size: 27px;
  font-weight: 660;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.completion-summary-list {
  overflow: hidden;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(25, 31, 38, 0.04);
}

.completion-summary-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  padding: 9px 15px 9px 12px;
}

.completion-summary-row + .completion-summary-row .completion-summary-copy,
.completion-summary-row + .completion-summary-row .completion-summary-value {
  border-top: 1px solid var(--line);
}

.completion-metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #3f5267;
  background: #e9edf2;
  border-radius: 10px;
}

.completion-metric-icon .open-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.completion-summary-copy,
.completion-summary-value {
  display: flex;
  min-height: 55px;
  align-items: center;
}

.completion-summary-copy {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.completion-summary-copy strong {
  font-size: 14px;
  font-weight: 620;
}

.completion-summary-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.completion-summary-value {
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

.completion-verdict {
  margin: 15px 2px 0;
  padding: 15px 16px;
  background: #eef4ff;
  border-radius: 14px;
}

.completion-verdict small {
  color: #52647b;
  font-size: 11px;
}

.completion-verdict strong {
  display: block;
  margin: 4px 0;
  color: #205ec8;
  font-size: 17px;
}

.completion-verdict p {
  color: #52606f;
  font-size: 12px;
  line-height: 1.5;
}

.completion-report-action {
  padding: 12px 16px 16px;
  background: linear-gradient(transparent, var(--paper) 18%);
}

.completion-report-action .primary-button {
  margin: 0;
}

.floating-notification {
  position: absolute;
  z-index: 90;
  top: 38px;
  right: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  color: #1b222a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(30, 38, 47, 0.1);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(20, 26, 33, 0.24);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-125%);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.floating-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-notification.actionable.visible {
  cursor: pointer;
  pointer-events: auto;
}

.floating-notification.actionable.visible:active {
  transform: translateY(0) scale(0.98);
}

.notification-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--notification-color, #202832);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 800;
}

.notification-icon .open-icon {
  width: 20px;
  height: 20px;
}

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

.notification-copy strong,
.notification-copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-copy strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.notification-copy > span,
.floating-notification small {
  color: #68717b;
  font-size: 11px;
}

.visually-hidden {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 600px), (max-height: 760px) {
  .phone {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

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