:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --blue: #2f68eb;
  --blue-deep: #2458d5;
  --blue-soft: #eaf1ff;
  --ink: #16243d;
  --text: #2b3850;
  --muted: #8996aa;
  --line: #e1e8f3;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --danger: #b93e4b;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html,
body {
  background: var(--canvas);
  color: var(--text);
  margin: 0;
  min-height: 100%;
  overscroll-behavior-y: none;
}

body { min-height: 100svh; }

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

button,
a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

[hidden] { display: none !important; }

.splash {
  align-items: center;
  background: #fff;
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100svh;
  position: fixed;
  z-index: 1000;
}

.splash-center { margin-top: -62px; text-align: center; }
.splash-center img { border-radius: 24px; box-shadow: 0 20px 45px rgba(40, 92, 210, 0.2); height: 112px; width: 112px; }
.splash-center h1 { color: #101d33; font-size: 31px; letter-spacing: 0.02em; margin: 42px 0 10px; }
.splash-center p { color: #7d899d; font-size: 14px; letter-spacing: 0.12em; margin: 0; }

.splash-status {
  align-items: center;
  bottom: calc(64px + var(--safe-bottom));
  color: #9aa5b6;
  display: flex;
  font-size: 12px;
  gap: 4px;
  position: absolute;
}

.splash-status span { margin-right: 6px; }
.splash-status i { animation: splash-dot 1.1s infinite alternate; background: #cbd1da; border-radius: 50%; height: 8px; width: 8px; }
.splash-status i:first-of-type { background: var(--blue); }
.splash-status i:nth-of-type(2) { animation-delay: 0.18s; }
.splash-status i:nth-of-type(3) { animation-delay: 0.36s; }

@keyframes splash-dot { to { opacity: 0.35; transform: translateY(-2px); } }

.auth-shell {
  background:
    radial-gradient(circle at 90% 5%, rgba(47, 104, 235, 0.11), transparent 29%),
    linear-gradient(180deg, #f9fbff, #f5f7fb 50%, #f3f6fa);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(18px + var(--safe-top)) 18px calc(18px + var(--safe-bottom));
}

.auth-brand,
.app-brand,
.app-header-actions,
.auth-brand > div { align-items: center; display: flex; }

.auth-brand { gap: 10px; margin: 0 auto; max-width: 560px; width: 100%; }
.auth-brand img { border-radius: 12px; height: 43px; width: 43px; }
.auth-brand > div { align-items: flex-start; flex-direction: column; gap: 2px; }
.auth-brand strong { color: var(--ink); font-size: 16px; }
.auth-brand small { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.desktop-link { color: #5f708b; font-size: 12px; margin-left: auto; padding: 9px 4px; text-decoration: none; }

.auth-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(218, 227, 240, 0.92);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(43, 70, 119, 0.11);
  margin: clamp(28px, 7vh, 68px) auto 20px;
  max-width: 560px;
  padding: 28px 22px 25px;
  width: 100%;
}

.auth-heading p { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; margin: 0 0 7px; }
.auth-heading h1 { color: var(--ink); font-size: 28px; margin: 0 0 8px; }
.auth-heading > span { color: var(--muted); font-size: 12px; line-height: 1.65; }

.segmented {
  background: #f2f5fa;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0 18px;
  padding: 4px;
}

.segmented button { background: transparent; border: 0; border-radius: 9px; color: #718098; font-size: 12px; font-weight: 600; height: 38px; }
.segmented button.active { background: #fff; box-shadow: 0 4px 12px rgba(49, 69, 105, 0.1); color: var(--blue); }

.field-line {
  align-items: center;
  background: #f9fbfd;
  border: 1px solid #dfe6f0;
  border-radius: 13px;
  display: flex;
  margin-bottom: 12px;
  min-height: 52px;
  overflow: hidden;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.field-line:focus-within { background: #fff; border-color: #7aa2fb; box-shadow: 0 0 0 3px rgba(47, 104, 235, 0.1); }
.field-icon { align-items: center; background: var(--blue-soft); border-radius: 9px; color: var(--blue); display: flex; font-size: 11px; font-weight: 800; height: 31px; justify-content: center; margin-left: 10px; width: 31px; }
.field-line input { background: transparent; border: 0; color: var(--ink); flex: 1; font-size: 14px; min-width: 0; outline: 0; padding: 0 12px; }
.field-line input::placeholder { color: #a6b0bf; }
.field-action { background: transparent; border: 0; color: #6e7e96; font-size: 11px; height: 50px; padding: 0 13px; white-space: nowrap; }
.code-button { color: var(--blue); font-weight: 700; }

.channel-row { color: #6f7e94; display: flex; font-size: 11px; gap: 18px; margin: -1px 2px 14px; }
.channel-row label { align-items: center; display: flex; gap: 5px; }
.channel-row input { accent-color: var(--blue); }

.consent-row { font-size: 11px; line-height: 1.65; margin: 15px 1px 18px; }
.consent-row label { align-items: flex-start; color: #7c899d; display: flex; gap: 8px; }
.consent-row input { accent-color: var(--blue); flex: 0 0 auto; height: 16px; margin: 1px 0 0; width: 16px; }
.consent-row a { color: var(--blue); text-decoration: none; }
.consent-row.shake { animation: consent-shake 0.35s ease-in-out; }
@keyframes consent-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.form-message { background: #fff5f5; border: 1px solid #f2d5d8; border-radius: 10px; color: #a73d49; font-size: 11px; line-height: 1.55; margin: 0 0 12px; padding: 9px 11px; }
.form-message.success { background: #eefaf4; border-color: #d3eee0; color: #27845c; }

.primary-button { background: linear-gradient(135deg, #3572f1, #2458d5); border: 0; border-radius: 13px; box-shadow: 0 12px 22px rgba(47, 104, 235, 0.22); color: #fff; font-size: 14px; font-weight: 800; height: 51px; width: 100%; }
.primary-button:disabled { box-shadow: none; opacity: 0.58; }

.auth-links { display: flex; justify-content: space-between; margin-top: 17px; }
.auth-links button { background: none; border: 0; color: #65758e; font-size: 11px; padding: 4px 0; }

.social-block { margin-top: 27px; }
.social-title { align-items: center; display: flex; gap: 10px; }
.social-title span { background: #e8edf4; flex: 1; height: 1px; }
.social-title em { color: #9aa5b5; font-size: 10px; font-style: normal; }
.social-actions { display: flex; justify-content: center; margin-top: 17px; gap: 28px; }
.social-actions button { align-items: center; background: none; border: 0; color: #7f8da1; display: flex; flex-direction: column; font-size: 10px; gap: 6px; padding: 0; }
.social-actions img { display: block; height: 38px; object-fit: contain; transition: transform .16s ease, opacity .16s ease; width: 38px; }
.social-actions button:hover img, .social-actions button:focus-visible img { transform: translateY(-1px) scale(1.04); }
.social-actions button.is-unavailable img { opacity: .72; }
.social-actions button.is-unavailable span::after { content: " · 待开通"; }

.auth-footer { color: #9ba5b5; font-size: 9px; margin: auto auto 0; padding-top: 18px; text-align: center; }

.mobile-app { background: var(--canvas); min-height: 100svh; }
.app-header {
  align-items: center;
  background: rgba(245, 247, 251, 0.94);
  backdrop-filter: blur(18px);
  display: flex;
  height: calc(58px + var(--safe-top));
  inset: 0 0 auto;
  padding: var(--safe-top) 15px 0;
  position: fixed;
  z-index: 60;
}

.app-brand { gap: 8px; }
.app-brand img { border-radius: 9px; box-shadow: 0 5px 12px rgba(47, 104, 235, 0.17); height: 33px; width: 33px; }
.app-brand strong { color: var(--ink); font-size: 16px; }
.app-header-actions { gap: 6px; margin-left: auto; }
.app-header-actions button { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #60708a; font-size: 11px; height: 34px; padding: 0 10px; }

.app-screen {
  margin: 0 auto;
  max-width: 720px;
  min-height: 100svh;
  padding: calc(72px + var(--safe-top)) 15px calc(92px + var(--safe-bottom));
}

.bottom-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e6ebf3;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(66px + var(--safe-bottom));
  left: 0;
  padding: 5px 6px var(--safe-bottom);
  position: fixed;
  right: 0;
  z-index: 70;
}

.bottom-nav button { align-items: center; background: none; border: 0; color: #8a97aa; display: flex; flex-direction: column; font-size: 9px; gap: 3px; height: 55px; justify-content: center; }
.bottom-nav i { align-items: center; border-radius: 9px; display: flex; font-size: 12px; font-style: normal; font-weight: 800; height: 26px; justify-content: center; width: 31px; }
.bottom-nav button.active { color: var(--blue); font-weight: 700; }
.bottom-nav button.active i { background: var(--blue-soft); }
.bottom-nav .compose-nav i { background: linear-gradient(135deg, #3572f1, #2458d5); border-radius: 14px; box-shadow: 0 8px 17px rgba(47, 104, 235, 0.26); color: #fff; font-size: 22px; height: 42px; margin-top: -20px; width: 42px; }
.bottom-nav .compose-nav span { margin-top: -2px; }

.account-switcher,
.card,
.mail-item,
.screen-state,
.service-card,
.settings-list,
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 7px 18px rgba(43, 68, 111, 0.055);
}

.account-switcher { align-items: center; border-radius: 14px; display: flex; padding: 12px 13px; width: 100%; }
.account-avatar { align-items: center; background: linear-gradient(135deg, #e8f0ff, #dce8ff); border-radius: 12px; color: var(--blue); display: flex; font-size: 15px; font-weight: 800; height: 39px; justify-content: center; width: 39px; }
.account-switcher .copy { display: flex; flex: 1; flex-direction: column; gap: 3px; margin-left: 10px; min-width: 0; text-align: left; }
.account-switcher small { color: var(--muted); font-size: 9px; }
.account-switcher strong { color: #24324a; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-switcher .chevron { color: #7c8da8; font-size: 16px; }

.folder-strip { background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line); border-radius: 13px; display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.folder-strip::-webkit-scrollbar { display: none; }
.folder-strip button { background: none; border: 0; border-radius: 9px; color: #65748c; flex: 0 0 auto; font-size: 11px; height: 32px; padding: 0 10px; }
.folder-strip button.active { background: var(--blue-soft); color: #245edb; font-weight: 800; }
.folder-strip b { background: #eef3fb; border-radius: 10px; font-size: 8px; margin-left: 3px; padding: 2px 5px; }
.folder-strip button.active b { background: var(--blue); color: #fff; }

.shortcut-strip { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; padding: 1px 0; scrollbar-width: none; }
.shortcut-strip::-webkit-scrollbar { display: none; }
.shortcut-strip button { background: #fff; border: 1px solid #dce5f3; border-radius: 10px; color: #4269bd; flex: 0 0 auto; font-size: 10px; font-weight: 700; height: 34px; padding: 0 11px; }

.section-heading { align-items: flex-end; display: flex; margin: 18px 2px 10px; }
.section-heading > div { display: flex; flex-direction: column; gap: 3px; }
.section-heading h1 { color: var(--ink); font-size: 20px; margin: 0; }
.section-heading p { color: #95a0b2; font-size: 10px; margin: 0; }
.section-actions { display: flex; gap: 6px; margin-left: auto; }
.section-actions button { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #5c6c84; font-size: 10px; height: 34px; padding: 0 10px; }

.date-label { color: #5b6a82; font-size: 10px; font-weight: 800; margin: 14px 3px 7px; }
.mail-list { display: grid; gap: 8px; }
.mail-item { align-items: center; border-radius: 14px; display: flex; min-height: 73px; padding: 11px; position: relative; width: 100%; }
.mail-item.unread { border-color: #cfe0ff; box-shadow: inset 3px 0 0 var(--blue), 0 7px 18px rgba(43, 68, 111, 0.055); }
.mail-mark { align-items: center; background: #edf1f6; border-radius: 10px; color: #8c98aa; display: flex; flex: 0 0 auto; font-size: 11px; font-weight: 800; height: 36px; justify-content: center; width: 36px; }
.mail-item.unread .mail-mark { background: var(--blue-soft); color: var(--blue); }
.mail-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; margin-left: 10px; min-width: 0; text-align: left; }
.mail-topline { align-items: center; display: flex; gap: 6px; min-width: 0; }
.mail-topline strong { color: #344158; flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item.unread .mail-topline strong { color: #1c2b43; font-weight: 800; }
.mail-topline time { color: #98a3b4; flex: 0 0 auto; font-size: 9px; }
.mail-subject { color: #5d6b81; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item.unread .mail-subject { color: #34445e; font-weight: 700; }
.mail-meta { align-items: center; color: #9ba5b5; display: flex; font-size: 8px; gap: 7px; }
.mail-meta b { background: #eff4fc; border-radius: 8px; color: #6680aa; font-weight: 600; max-width: 145px; overflow: hidden; padding: 2px 6px; text-overflow: ellipsis; white-space: nowrap; }
.mail-select { accent-color: var(--blue); height: 18px; margin-right: 8px; width: 18px; }

.selection-bar { align-items: center; background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line); border-radius: 15px; bottom: calc(73px + var(--safe-bottom)); box-shadow: 0 14px 40px rgba(24, 42, 78, 0.18); display: grid; gap: 4px; grid-template-columns: repeat(5, 1fr); left: 12px; padding: 7px; position: fixed; right: 12px; z-index: 65; }
.selection-bar button { background: #f5f7fb; border: 0; border-radius: 9px; color: #5f6e86; font-size: 9px; height: 42px; }
.selection-bar button.danger { color: var(--danger); }

.screen-state { align-items: center; border-radius: 15px; display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 190px; padding: 24px; text-align: center; }
.screen-state b { align-items: center; background: var(--blue-soft); border-radius: 50%; color: var(--blue); display: flex; font-size: 20px; height: 48px; justify-content: center; width: 48px; }
.screen-state strong { color: #66748a; font-size: 12px; }
.screen-state span { color: #98a3b4; font-size: 10px; line-height: 1.6; }
.screen-state button { background: var(--blue); border: 0; border-radius: 9px; color: #fff; font-size: 10px; height: 34px; padding: 0 15px; }

.screen-title { align-items: center; display: flex; margin-bottom: 14px; }
.screen-title h1 { color: var(--ink); font-size: 22px; margin: 0; }
.screen-title p { color: var(--muted); font-size: 10px; margin: 5px 0 0; }
.screen-title > button { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); font-size: 11px; font-weight: 700; height: 36px; margin-left: auto; padding: 0 12px; }

.search-line { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; margin-bottom: 12px; min-height: 44px; padding: 0 12px; }
.search-line span { color: #95a1b3; font-size: 11px; }
.search-line input { border: 0; flex: 1; font-size: 12px; outline: 0; padding: 0 9px; }

.contact-section { margin-top: 15px; }
.contact-section h2 { color: #526078; font-size: 11px; margin: 0 3px 8px; }
.contact-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.contact-row { align-items: center; background: #fff; border: 0; border-bottom: 1px solid #edf1f6; display: flex; min-height: 62px; padding: 9px 12px; width: 100%; }
.contact-row:last-child { border-bottom: 0; }
.contact-avatar { align-items: center; background: var(--blue-soft); border-radius: 11px; color: var(--blue); display: flex; font-size: 12px; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.contact-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; margin-left: 10px; min-width: 0; text-align: left; }
.contact-copy strong { color: #2d3a51; font-size: 12px; }
.contact-copy span { color: #8c98aa; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row > i { color: #a3adbb; font-style: normal; }

.compose-form { display: grid; gap: 10px; }
.compose-form .compose-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.compose-row { align-items: center; border-bottom: 1px solid #edf1f5; display: flex; min-height: 48px; padding: 0 13px; }
.compose-row:last-child { border-bottom: 0; }
.compose-row label { color: #77859a; flex: 0 0 45px; font-size: 11px; }
.compose-row input,
.compose-row select { background: transparent; border: 0; color: #26344c; flex: 1; font-size: 12px; min-width: 0; outline: 0; }
.compose-form textarea { background: #fff; border: 1px solid var(--line); border-radius: 15px; color: #2d3a50; font-size: 12px; line-height: 1.8; min-height: 250px; outline: 0; padding: 14px; resize: vertical; }
.compose-attachments { display: flex; flex-wrap: wrap; gap: 7px; }
.attachment-chip { background: #eef4ff; border: 1px solid #d8e5fb; border-radius: 9px; color: #526d9a; font-size: 9px; padding: 7px 9px; }
.compose-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr 1.3fr; }
.compose-actions button { background: #fff; border: 1px solid var(--line); border-radius: 11px; color: #62718a; font-size: 11px; height: 43px; }
.compose-actions .send { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 800; }

.service-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.service-card { border-radius: 15px; min-height: 118px; padding: 15px; text-align: left; }
.service-card b { align-items: center; background: var(--blue-soft); border-radius: 11px; color: var(--blue); display: flex; font-size: 12px; height: 37px; justify-content: center; width: 37px; }
.service-card strong { color: #29364d; display: block; font-size: 12px; margin-top: 13px; }
.service-card span { color: #929daf; display: block; font-size: 9px; line-height: 1.5; margin-top: 5px; }

.profile-card { align-items: center; background: linear-gradient(145deg, #3673f2, #2559d7); border-radius: 18px; color: #fff; display: flex; padding: 18px 15px; }
.profile-avatar { align-items: center; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.27); border-radius: 14px; display: flex; font-size: 18px; font-weight: 800; height: 48px; justify-content: center; width: 48px; }
.profile-copy { display: flex; flex: 1; flex-direction: column; gap: 5px; margin-left: 12px; min-width: 0; }
.profile-copy strong { font-size: 15px; }
.profile-copy span { font-size: 10px; opacity: 0.78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card em { background: rgba(255, 255, 255, 0.16); border-radius: 12px; font-size: 9px; font-style: normal; padding: 6px 8px; }

.quota-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; padding: 12px 0; }
.quota-card div { align-items: center; border-right: 1px solid #edf1f6; display: flex; flex-direction: column; gap: 4px; }
.quota-card div:last-child { border-right: 0; }
.quota-card strong { color: #2c3a52; font-size: 11px; }
.quota-card span { color: #929daf; font-size: 8px; }

.settings-list { border-radius: 15px; margin-top: 10px; overflow: hidden; }
.settings-row { align-items: center; background: #fff; border: 0; border-bottom: 1px solid #edf1f6; display: flex; min-height: 60px; padding: 10px 13px; width: 100%; }
.settings-row:last-child { border-bottom: 0; }
.settings-icon { align-items: center; background: var(--blue-soft); border-radius: 10px; color: var(--blue); display: flex; font-size: 10px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.settings-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; margin-left: 10px; min-width: 0; text-align: left; }
.settings-copy strong { color: #2b3850; font-size: 11px; }
.settings-copy span { color: #929daf; font-size: 8px; line-height: 1.45; }
.settings-row > i { color: #9ba6b5; font-style: normal; }
.logout-button { background: #fff; border: 1px solid #f1dadd; border-radius: 12px; color: var(--danger); font-size: 12px; font-weight: 700; height: 46px; margin-top: 12px; width: 100%; }
.about-card { align-items: center; color: #98a3b4; display: flex; flex-direction: column; font-size: 9px; gap: 6px; padding: 25px 0 2px; }
.about-card img { border-radius: 12px; height: 45px; width: 45px; }
.about-card strong { color: #344158; font-size: 12px; }
.about-card a { color: var(--blue); text-decoration: none; }

.detail-toolbar { align-items: center; display: flex; margin-bottom: 12px; }
.detail-toolbar button { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #61718a; font-size: 11px; height: 36px; padding: 0 12px; }
.detail-toolbar h1 { color: var(--ink); font-size: 16px; margin: 0 0 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-card { border-radius: 16px; overflow: hidden; }
.detail-head { border-bottom: 1px solid #edf1f6; padding: 15px; }
.detail-head h2 { color: #1f2d45; font-size: 18px; line-height: 1.45; margin: 0 0 12px; }
.detail-head p { color: #65738a; font-size: 10px; line-height: 1.6; margin: 3px 0; word-break: break-all; }
.detail-head time { color: #9aa5b5; display: block; font-size: 9px; margin-top: 8px; }
.detail-body { color: #334158; font-size: 12px; line-height: 1.85; min-height: 180px; overflow-wrap: anywhere; padding: 15px; }
.detail-body img { height: auto; max-width: 100%; }
.detail-attachments { border-top: 1px solid #edf1f6; display: grid; gap: 7px; padding: 12px; }
.detail-attachments button { background: #f5f8fc; border: 1px solid #e3e9f2; border-radius: 9px; color: #5f6f87; font-size: 10px; min-height: 40px; padding: 7px 10px; text-align: left; }
.detail-actions { display: grid; gap: 6px; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.detail-actions button { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #5f6f87; font-size: 10px; height: 42px; }

.sheet-dialog,
.captcha-dialog { background: rgba(12, 22, 41, 0.34); border: 0; height: 100%; margin: 0; max-height: none; max-width: none; padding: 0; width: 100%; }
.sheet-dialog::backdrop,
.captcha-dialog::backdrop { background: rgba(12, 22, 41, 0.34); }
.dialog-card { background: var(--canvas); border-radius: 22px 22px 0 0; bottom: 0; box-shadow: 0 -20px 50px rgba(21, 35, 62, 0.16); left: 0; max-height: min(88svh, 860px); overflow: hidden; position: absolute; right: 0; }
.dialog-card > header { align-items: center; background: #fff; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr 70px; min-height: 53px; padding: 0 12px; }
.dialog-card > header h2 { color: var(--ink); font-size: 15px; margin: 0; text-align: center; }
.dialog-card > header button { background: none; border: 0; color: #7b899d; font-size: 12px; text-align: left; }
.dialog-card > header button:last-child { color: var(--blue); font-weight: 800; text-align: right; }
.dialog-body { max-height: calc(88svh - 53px); overflow: auto; padding: 14px 14px calc(18px + var(--safe-bottom)); }

.dialog-form { display: grid; gap: 11px; }
.dialog-form label { color: #66758c; display: grid; font-size: 10px; gap: 6px; }
.dialog-form input,
.dialog-form select,
.dialog-form textarea { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #2d3a51; font-size: 12px; min-height: 44px; outline: 0; padding: 10px 11px; width: 100%; }
.dialog-form textarea { min-height: 96px; resize: vertical; }
.dialog-form input:focus,
.dialog-form select:focus,
.dialog-form textarea:focus { border-color: #7da4fb; box-shadow: 0 0 0 3px rgba(47, 104, 235, 0.09); }
.dialog-help { color: #8d99aa; font-size: 9px; line-height: 1.65; margin: 0; }
.dialog-list { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.dialog-list-row { align-items: center; border-bottom: 1px solid #edf1f6; display: flex; gap: 10px; min-height: 55px; padding: 10px 12px; }
.dialog-list-row:last-child { border-bottom: 0; }
.dialog-list-row > div { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.dialog-list-row strong { color: #2c3950; font-size: 11px; }
.dialog-list-row span { color: #929daf; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-list-row button { background: #f3f6fb; border: 0; border-radius: 8px; color: #67778f; font-size: 9px; height: 31px; padding: 0 9px; }
.dialog-list-row button.danger { color: var(--danger); }
.wechat-handoff { align-items: center; padding: 16px 4px 8px; text-align: center; }
.wechat-handoff-icon { align-items: center; background: #eefaf0; border-radius: 22px; display: flex; height: 72px; justify-content: center; margin-bottom: 3px; width: 72px; }
.wechat-handoff-icon img { height: 46px; width: 46px; }
.wechat-handoff > strong { color: var(--ink); font-size: 15px; }
.wechat-handoff .dialog-help { font-size: 10px; max-width: 310px; }
.wechat-handoff > a.primary-button { align-items: center; display: flex; justify-content: center; margin-top: 5px; text-decoration: none; }
.wechat-handoff [data-wechat-handoff-status] { font-size: 10px; margin-top: 2px; }

.captcha-card { background: #fff; border-radius: 18px; left: 18px; padding: 18px; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.captcha-card header { align-items: flex-start; display: flex; }
.captcha-card header > div { display: flex; flex-direction: column; gap: 5px; }
.captcha-card header strong { color: var(--ink); font-size: 15px; }
.captcha-card header small { color: var(--muted); font-size: 9px; }
.captcha-card header button { background: #f2f5f9; border: 0; border-radius: 50%; color: #6f7d91; font-size: 18px; height: 30px; margin-left: auto; width: 30px; }
.captcha-stage { background: linear-gradient(135deg, #f1f5fc, #e9f1ff); border: 1px solid #dfe7f3; border-radius: 12px; height: 92px; margin-top: 18px; overflow: hidden; position: relative; }
.captcha-stage::before { color: #9ba9bd; content: "顶呱呱邮箱安全验证"; font-size: 10px; left: 14px; position: absolute; top: 14px; }
.captcha-target { border: 2px dashed var(--blue); border-radius: 8px; bottom: 12px; height: 40px; position: absolute; width: 40px; }
.captcha-track { align-items: center; background: #f1f4f8; border-radius: 10px; display: flex; height: 47px; margin-top: 13px; overflow: hidden; position: relative; }
.captcha-track > span { color: #9aa5b5; font-size: 10px; left: 0; position: absolute; right: 0; text-align: center; }
.captcha-handle { background: var(--blue); border: 0; border-radius: 9px; color: #fff; height: 39px; left: 4px; position: absolute; touch-action: none; width: 42px; z-index: 2; }
.captcha-card > p { color: var(--danger); font-size: 9px; margin: 8px 2px 0; min-height: 14px; }

.toast { background: rgba(18, 29, 49, 0.92); border-radius: 11px; bottom: calc(84px + var(--safe-bottom)); color: #fff; font-size: 11px; left: 50%; max-width: calc(100vw - 40px); padding: 10px 15px; position: fixed; text-align: center; transform: translateX(-50%); z-index: 200; }
.busy-layer { align-items: center; background: rgba(245, 247, 251, 0.73); display: flex; flex-direction: column; inset: 0; justify-content: center; position: fixed; z-index: 500; }
.busy-layer span { animation: busy-spin 0.75s linear infinite; border: 3px solid #dce5f5; border-radius: 50%; border-top-color: var(--blue); height: 34px; width: 34px; }
.busy-layer p { color: #65748c; font-size: 11px; margin: 10px 0 0; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
.noscript { color: var(--danger); padding: 30px; text-align: center; }

@media (min-width: 720px) {
  .bottom-nav { border: 1px solid var(--line); border-radius: 18px 18px 0 0; left: 50%; max-width: 720px; transform: translateX(-50%); }
  .selection-bar { left: calc(50% - 344px); right: calc(50% - 344px); }
  .dialog-card { left: 50%; max-width: 720px; right: auto; transform: translateX(-50%); width: 100%; }
  .captcha-card { left: 50%; max-width: 420px; right: auto; transform: translate(-50%, -50%); width: calc(100% - 36px); }
}

@media (max-width: 380px) {
  .auth-card { padding-left: 18px; padding-right: 18px; }
  .auth-heading h1 { font-size: 25px; }
  .social-actions { gap: 22px; }
  .app-screen { padding-left: 11px; padding-right: 11px; }
  .app-header { padding-left: 11px; padding-right: 11px; }
  .service-grid { gap: 8px; }
}

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