:root {
  --bg: #f0f0f3;
  --panel: #ffffff;
  --line: #e3e8f1;
  --text: #10203a;
  --muted: #68758b;
  --accent: #2f6df6;
  --accent-dark: #1f57d6;
  --accent-soft: #eaf1ff;
  --success: #0a9b6a;
  --danger: #d9475c;
  --shadow: 0 20px 55px rgba(28, 56, 112, .1);
  --radius: 14px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
code { font-family: "Cascadia Code", Consolas, monospace; }

.brand-lockup { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; }
.brand-mark { display: inline-block; width: 38px; height: 38px; border-radius: 11px; background: url('/static/logo-20260813.webp') center / contain no-repeat; color: transparent; font-size: 0; box-shadow: 0 5px 15px rgba(9,31,56,.16); }
.brand-logo { display: block; width: 38px; height: 38px; border-radius: 11px; object-fit: contain; box-shadow: 0 5px 15px rgba(9,31,56,.16); }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 650; white-space: nowrap; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.985); }
.button-primary { color: white; background: var(--accent); box-shadow: 0 8px 20px rgba(47,109,246,.18); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--accent); background: var(--accent-soft); border-color: #d6e3ff; }
.button-quiet { color: #526078; background: white; border-color: var(--line); }
.button-large { min-height: 50px; padding: 0 24px; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 13px; }
.text-button, .icon-button { border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 650; }

.alert { margin: 18px 0; padding: 13px 15px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.alert-error { color: #9a2739; background: #fff0f2; border: 1px solid #ffd4db; }
.alert-success { color: #087552; background: #eafaf4; border: 1px solid #c8f0e1; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 11px 18px; border-radius: 9px; color: white; background: #10203a; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Public pickup */
.pickup-body { background: #f0f0f3; }
.pickup-shell { display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
.pickup-brand { display: none; }
.pickup-panel { display: grid; place-items: center; width: 100%; padding: 0; }
.pickup-card { width: min(520px, 100%); padding: 42px; border: 1px solid rgba(224,231,242,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.pickup-card-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.pickup-topbar-actions, .public-header-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pickup-mini-brand { display: inline-flex; align-items: center; gap: 9px; color: #35445c; font-size: 13px; font-weight: 750; }
.pickup-mini-brand .brand-mark, .pickup-mini-brand .brand-logo { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.pickup-notice-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid #d9e2f0; border-radius: 9px; color: #40506a; background: rgba(255,255,255,.74); font-size: 13px; font-weight: 700; transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease; }
.pickup-notice-trigger:hover { border-color: #b8cae8; color: var(--accent); background: white; transform: translateY(-1px); }
.pickup-notice-trigger:focus-visible { outline: 3px solid rgba(47,109,246,.16); outline-offset: 2px; }
.card-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.card-heading h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.card-heading p { margin: 0; color: var(--muted); }
.step-chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.pickup-form { display: grid; }
.pickup-form label, .stack-form label, .import-form label, .inline-form label { display: grid; gap: 8px; color: #283852; font-size: 14px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid #d8dfeb; border-radius: 9px; color: var(--text); background: white; outline: 0; transition: .15s ease; }
input { height: 46px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,109,246,.12); }
.pickup-form input {
  height: 58px;
  border-color: #c8cbd2;
  background: #f0f0f3;
  font: 700 19px "Cascadia Code", Consolas, monospace;
  letter-spacing: .04em;
}
.pickup-form input::placeholder { color: #687080; opacity: 1; }
.pickup-form input:hover { border-color: #aeb5c1; background: #ececee; }
.pickup-form input:focus { background: #ffffff; }
.field-help { margin: 9px 0 24px; color: var(--muted); font-size: 13px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.security-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* Shared public navigation */
.public-nav {
  position: sticky;
  top: 8px;
  z-index: 40;
  width: min(1380px, calc(100% - 48px));
  margin: 8px auto 0;
}
.public-nav-inner {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 5px 8px 5px 14px;
  border: 1px solid rgba(213,220,231,.95);
  border-radius: 999px;
  background: #f0f0f3;
  box-shadow: 0 8px 22px rgba(28,56,112,.08), 0 2px 5px rgba(28,56,112,.06);
  backdrop-filter: blur(18px);
  animation: publicNavIn .42s cubic-bezier(.22,.8,.28,1) both;
}
.public-nav-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
  color: #10203a;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.public-nav-brand .brand-logo { width: 34px; height: 34px; border-radius: 11px; }
.public-nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #edf0f5;
  border-radius: 999px;
  background: #f0f0f3;
}
.public-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #667085;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.public-nav-link:hover { color: #17396e; background: rgba(255,255,255,.86); transform: translateY(-1px); }
.public-nav-link.is-active { color: var(--accent); border-color: #e4ebf8; background: white; box-shadow: 0 4px 12px rgba(28,56,112,.08); }
.public-nav-link:focus-visible,
.public-nav-context-button:focus-visible { outline: 3px solid rgba(47,109,246,.18); outline-offset: 2px; }
.public-nav-icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.public-nav-context { display: flex; justify-content: flex-end; min-width: 0; }
.public-nav-context-button,
.public-nav-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid #dce4f1;
  border-radius: 999px;
  color: #526078;
  background: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.public-nav-context-button:hover { color: var(--accent); border-color: #bfd0ef; background: white; transform: translateY(-1px); }
.public-nav-status { gap: 7px; color: #087552; background: #edf9f4; border-color: #d5f0e5; }
.public-nav-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(10,155,106,.1); animation: publicNavStatusPulse 2.4s ease-in-out infinite; }
@keyframes publicNavIn {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes publicNavStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(10,155,106,.08); }
  50% { box-shadow: 0 0 0 6px rgba(10,155,106,.15); }
}

/* Notice and download dialogs */
.notice-modal[hidden] { display: none; }
.notice-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px; }
.notice-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(31,43,60,.28); cursor: default; }
.notice-modal-dialog { position: relative; width: min(800px, 100%); border: 1px solid rgba(218,227,241,.95); border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(28,43,67,.22); overflow: hidden; animation: noticeModalIn .22s cubic-bezier(.22,.8,.28,1) both; }
.notice-modal-head { padding: 25px 40px 19px; border-bottom: 1px solid var(--line); }
.notice-kicker { color: #6d7582; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.notice-modal-head h2 { display: flex; align-items: center; gap: 9px; margin: 8px 0 0; color: #101a2c; font-size: 28px; letter-spacing: -.04em; }
.notice-modal-body { padding: 28px 40px 18px; }
.notice-modal-body h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: #1f2b40; font-size: 17px; }
.notice-modal-body p { margin: 19px 0 28px; color: #667085; font-size: 15px; line-height: 1.75; }
.notice-modal-body p strong { color: var(--accent); }
.notice-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.notice-modal-actions .button { min-height: 44px; padding: 0 17px; }
.notice-modal-actions .button:focus-visible { outline: 2px solid rgba(47,109,246,.4); outline-offset: 2px; }
.notice-modal-actions .button-primary { border-radius: 99px; }
.notice-modal-foot { margin: 0; padding: 0 40px 24px; color: #778195; font-size: 12px; text-align: right; }
.download-modal-dialog { width: min(690px, 100%); }
body.notice-modal-open { overflow: hidden; }
@keyframes noticeModalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notice-modal-dialog { animation: none; } }

/* Copy-all format picker */
.copy-format-modal .notice-modal-dialog { width: min(720px, 100%); }
.copy-format-description { margin-bottom: 18px !important; }
.copy-format-options { display: grid; gap: 10px; }
.copy-format-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 14px; width: 100%; padding: 14px 16px; border: 1px solid #dce4f1; border-radius: 13px; color: var(--text); background: #fbfcff; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.copy-format-option:hover, .copy-format-option:focus-visible { border-color: #a9c3f4; background: #f2f6ff; box-shadow: 0 8px 20px rgba(47,109,246,.09); transform: translateY(-1px); outline: none; }
.copy-format-option strong { min-width: 0; color: #17396e; font-size: 15px; }
.copy-format-option span { min-width: 0; overflow-wrap: anywhere; color: #667085; font-size: 12px; line-height: 1.45; }
.copy-format-option em { grid-column: 2; grid-row: 1 / span 2; min-width: 48px; color: var(--accent); font-size: 12px; font-style: normal; font-weight: 800; text-align: right; }
.copy-format-empty { margin: 0 !important; padding: 22px 14px; border: 1px dashed #dce4f1; border-radius: 12px; color: var(--muted) !important; text-align: center; }
.copy-format-actions { margin-top: 18px; }
@media (max-width: 560px) {
  .copy-format-option { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .copy-format-option em { grid-column: 1; grid-row: auto; text-align: left; }
}

/* Browser-local card vault */
.card-vault[hidden] { display: none; }
.card-vault { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 20px; }
.card-vault-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(31,43,60,.34); cursor: default; }
.card-vault-dialog { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(680px, 100%); max-height: min(740px, calc(100dvh - 40px)); border: 1px solid rgba(218,227,241,.95); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(28,43,67,.24); overflow: hidden; animation: noticeModalIn .2s cubic-bezier(.22,.8,.28,1) both; }
.card-vault-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 23px 26px 18px; border-bottom: 1px solid var(--line); }
.card-vault-head h2 { margin: 8px 0 5px; color: #101a2c; font-size: 24px; letter-spacing: -.035em; }
.card-vault-head p { margin: 0; color: var(--muted); font-size: 13px; }
.card-vault-close { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #526078; background: white; font-size: 22px; line-height: 1; }
.card-vault-body { min-height: 0; padding: 22px 26px 26px; overflow: auto; overscroll-behavior: contain; }
.card-vault-form { display: grid; gap: 9px; }
.card-vault-form > label { color: #283852; font-size: 13px; font-weight: 750; }
.card-vault-form-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(130px, .75fr) auto; gap: 8px; }
.card-vault-form-row input { height: 42px; min-width: 0; }
.card-vault-form-row .button { min-height: 42px; }
.card-vault-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; color: var(--muted); font-size: 13px; }
.card-vault-list { display: grid; gap: 8px; }
.card-vault-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e1e7f0; border-radius: 11px; background: #fbfcfe; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.card-vault-item:hover, .card-vault-item.is-current { border-color: #c8d9fb; background: #f2f6ff; }
.card-vault-item:hover { transform: translateY(-1px); }
.card-vault-select { display: grid; min-width: 0; padding: 0; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.card-vault-select strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #17396e; font: 700 14px "Cascadia Code", Consolas, monospace; }
.card-vault-select small { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.card-vault-action { min-height: 31px; padding: 0 10px; border: 1px solid #d6e3ff; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 700; }
.card-vault-action:hover { background: #dfeaff; }
.card-vault-remove { color: #b13b4c; border-color: #ffd4db; background: #fff4f5; }
.card-vault-remove:hover { background: #ffe6e9; }
.card-vault-empty { padding: 30px 16px; border: 1px dashed #dbe3ef; border-radius: 11px; color: var(--muted); text-align: center; }
.card-vault-empty[hidden] { display: none; }
body.card-vault-open { overflow: hidden; }

/* Public result */
.result-body { background: #f0f0f3; }
.public-header { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); border-bottom: 1px solid var(--line); background: white; }
.result-shell, .mail-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 70px; }
.result-hero, .mail-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.pickup-notice-strip { flex: 1 1 auto; padding: 17px 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 10px 26px rgba(28,56,112,.1); }
.pickup-notice-title { display: flex; align-items: center; gap: 9px; color: #1f2b40; font-size: 16px; }
.pickup-notice-title strong { font-weight: 800; }
.pickup-notice-strip p { margin: 12px 0 0; color: #667085; font-size: 14px; line-height: 1.6; }
.pickup-notice-important { color: #d92d20 !important; font-weight: 800; }
.pickup-notice-strip .notice-link { color: var(--accent); font-weight: 700; }
.result-hero h1, .mail-heading h1 { margin: 12px 0 7px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.result-hero p, .mail-heading p { margin: 0; color: var(--muted); }
.success-pill { display: inline-flex; padding: 5px 10px; border-radius: 99px; color: #087552; background: #dcf8ed; font-size: 12px; font-weight: 750; }
.result-actions, .action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.card-code-bar { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 13px 18px; border: 1px solid #d7e4fa; border-radius: 11px; color: var(--muted); background: #edf4ff; font-size: 13px; }
.card-code-bar strong { color: #17396e; font-family: "Cascadia Code", Consolas, monospace; font-size: 16px; }
.mailbox-search { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.mailbox-search label { font-size: 14px; font-weight: 700; white-space: nowrap; }
.mailbox-search input { height: 42px; }
.mailbox-search span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.mailbox-search-empty { padding: 34px 18px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
.mailbox-search-empty[hidden] { display: none; }
.mailbox-list-header { display: grid; grid-template-columns: 54px minmax(240px,1.4fr) minmax(150px,.75fr) minmax(240px,auto); align-items: center; gap: 15px; padding: 0 16px 9px; color: #7c8492; font-size: 13px; font-weight: 700; }
.mailbox-grid { display: grid; gap: 13px; }
.mailbox-card { display: grid; grid-template-columns: 54px minmax(240px,1.4fr) minmax(150px,.75fr) minmax(240px,auto); align-items: center; gap: 15px; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 14px rgba(29,55,100,.035); content-visibility: auto; contain-intrinsic-block-size: auto 76px; }
.mailbox-card[hidden] { display: none !important; }
.mailbox-index { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.mailbox-email-cell, .mailbox-password-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mailbox-credential-stack { display: grid; gap: 3px; min-width: 0; }
.credential-secondary { color: #667085; font-size: 13px; font-weight: 600; }
.credential-label { color: #8a94a6; font-size: 12px; font-weight: 700; }
.mailbox-email-cell .credential-copy, .mailbox-password-cell .credential-copy { min-width: 0; }
.mailbox-credentials { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.credential-copy { appearance: none; -webkit-appearance: none; position: relative; max-width: 100%; margin: 0; padding: 2px 0; border: 0 !important; border-radius: 0; color: var(--text); background: none !important; box-shadow: none !important; font: 650 16px/1.35 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; overflow-wrap: anywhere; text-align: left; cursor: copy; transition: color .16s ease; }
.credential-copy:hover { color: #315f9f; }
.credential-copy:focus-visible { border-radius: 4px; outline: 2px solid rgba(47,109,246,.35); outline-offset: 3px; }
.credential-copy.is-copied .credential-value { visibility: hidden; }
.credential-copy.is-copied::after { position: absolute; inset: 2px 0 auto; color: var(--success); content: '已复制'; white-space: nowrap; }
.credential-divider { color: #b4bdca; font-size: 16px; line-height: 1; user-select: none; }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 99px; color: #087552; background: #e7f8f2; font-size: 12px; font-weight: 700; }
.status-disabled, .status-invalid { color: #a32c3e; background: #ffebee; }
.status-available, .status-active { color: #1762cd; background: #e9f1ff; }
.secret-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.secret-row code { color: #33425b; }
.mailbox-actions { display: flex; justify-content: flex-end; gap: 9px; min-width: 0; }
.mailbox-pagination[hidden] { display: none; }
.mailbox-pagination { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 10px 14px; border: 1px solid #e1e2e7; border-radius: 12px; background: #ffffff; color: #687080; font-size: 13px; }
.mailbox-page-size, .mailbox-page-jump { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mailbox-page-size select { width: 64px; height: 34px; padding: 0 8px; border-color: #d7dbe4; border-radius: 7px; background: #ffffff; color: var(--text); font-size: 13px; }
.mailbox-page-buttons { display: inline-flex; align-items: center; gap: 3px; min-height: 34px; }
.mailbox-page-button { display: inline-grid; min-width: 32px; height: 32px; place-items: center; padding: 0 7px; border: 0; border-radius: 7px; color: #526078; background: transparent; font-size: 13px; }
.mailbox-page-button:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.mailbox-page-button.is-current { color: var(--accent); background: #ffffff; box-shadow: 0 2px 8px rgba(28,56,112,.08); font-weight: 800; }
.mailbox-page-button:disabled { color: #b9bfca; cursor: not-allowed; }
.mailbox-page-ellipsis { display: inline-grid; width: 24px; height: 32px; place-items: center; color: #8d95a4; }
.mailbox-page-jump { margin-left: auto; }
.mailbox-page-jump input { width: 58px; height: 34px; padding: 0 8px; border-color: #d7dbe4; border-radius: 7px; background: #ffffff; text-align: center; }
.mailbox-page-jump-button { height: 34px; padding: 0 10px; border: 1px solid #d7dbe4; border-radius: 7px; color: var(--accent); background: #ffffff; font-size: 13px; font-weight: 700; }
.mailbox-page-jump-button:hover { border-color: #b8c7e2; background: var(--accent-soft); }

/* Mail reader */
.mail-folder { margin-top: 24px; }
.folder-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.folder-heading h2 { margin: 0; font-size: 18px; }
.folder-heading span { color: var(--muted); font-size: 13px; }
.message-card { margin-bottom: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; content-visibility: auto; contain-intrinsic-block-size: auto 106px; }
.message-card summary { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.message-card summary::-webkit-details-marker { display: none; }
.sender-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.message-summary { display: grid; min-width: 0; gap: 4px; }
.message-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-summary small, .message-summary span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-chip { padding: 7px 10px; border-radius: 8px; color: #087552; background: #e7f8f2; font: 700 13px "Cascadia Code", monospace; }
.message-body { padding: 18px; border-top: 1px solid var(--line); background: #fbfcfe; }
.message-body pre { margin: 16px 0 0; color: #33425b; font: 13px/1.7 "Segoe UI", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-list { display: flex; gap: 8px; flex-wrap: wrap; }
.code-list button { padding: 8px 13px; border: 1px solid #bfe9da; border-radius: 8px; color: #087552; background: #e7f8f2; font: 800 15px "Cascadia Code", monospace; }
.mail-modal[hidden] { display: none; }
.mail-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 22px; }
.mail-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(31,43,60,.7); }
.mail-modal-dialog { position: relative; display: grid; grid-template-rows:auto minmax(0,1fr); width: min(920px,100%); max-height: min(820px,calc(100dvh - 44px)); border: 1px solid rgba(218,227,241,.95); border-radius: 18px; background: #f7f9fc; box-shadow: 0 24px 64px rgba(8,24,48,.24); overflow: hidden; animation: mailModalFade .12s ease-out both; }
.mail-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 19px; border-bottom: 1px solid var(--line); background: white; }
.mail-modal-bar div { display: grid; gap: 3px; min-width: 0; }
.mail-modal-bar span { color: var(--muted); font-size: 12px; }
.mail-modal-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-modal-close { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #526078; background: white; font-size: 24px; line-height: 1; }
.mail-modal-content { min-height: 240px; padding: 20px; overflow: auto; overscroll-behavior: contain; }
.mail-modal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.mail-modal-heading h2 { margin: 7px 0 4px; font-size: clamp(20px,3vw,29px); overflow-wrap: anywhere; }
.mail-modal-heading p { margin: 0; color: var(--muted); }
.mail-modal-loading { display: grid; min-height: 230px; place-items: center; color: var(--muted); text-align: center; }
.mail-modal-loading span { display: block; width: 34px; height: 34px; margin: 0 auto 13px; border: 3px solid #dbe7fb; border-top-color: var(--accent); border-radius: 50%; animation: mailSpin .7s linear infinite; }
.mail-modal-loading strong, .mail-modal-loading small { display: block; }
.mail-modal-loading strong { margin-bottom: 6px; color: var(--text); }
.mail-modal-loading small { color: var(--muted); }
.mail-modal-error { display: grid; min-height: 230px; place-items: center; text-align: center; }
.mail-modal-error div { max-width: 430px; }
.mail-modal-error h3 { margin: 0 0 8px; }
.mail-modal-error p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
body.mail-modal-open { overflow: hidden; }
@keyframes mailModalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes mailModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mailSpin { to { transform: rotate(360deg); } }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 18px 12px; border-right: 1px solid var(--line); background: white; }
.sidebar-brand { padding: 2px 10px 26px; }
.nav-group { display: grid; gap: 4px; margin-bottom: 20px; }
.nav-label { padding: 0 10px 7px; color: #8a96a9; font-size: 11px; font-weight: 700; }
.nav-group a { padding: 10px 12px; border-radius: 8px; color: #40506a; font-size: 14px; font-weight: 600; }
.nav-group a:hover { color: var(--accent); background: var(--accent-soft); }
.sidebar-footer { display: grid; gap: 4px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-footer a, .sidebar-footer button { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; color: #526078; background: transparent; text-align: left; font-size: 14px; }
.sidebar-footer a:hover, .sidebar-footer button:hover { background: #f5f7fb; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 26px; border-bottom: 1px solid var(--line); background: white; }
.admin-topbar div { display: grid; gap: 2px; }
.admin-topbar span { color: var(--muted); font-size: 12px; }
.admin-chip { padding: 6px 10px; border-radius: 99px; color: var(--accent) !important; background: var(--accent-soft); font-weight: 700; }
.admin-content { width: min(1500px, 100%); padding: 28px 26px 70px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.stat-grid article { display: grid; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.stat-grid span { color: var(--muted); font-size: 13px; }
.stat-grid strong { margin: 9px 0 5px; font-size: 30px; }
.stat-grid small { color: #91a0b5; }
.panel { margin-bottom: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0 0 4px; font-size: 17px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.panel-heading > a { color: var(--accent); font-size: 13px; font-weight: 650; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 13px 16px; color: #68758b; background: #fafbfd; text-align: left; font-weight: 650; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--line); color: #40506a; }
td strong, td code { color: var(--text); }
.empty-state { padding: 42px 18px; color: #98a3b4; text-align: center; }
.import-form { display: grid; grid-template-columns: 220px 1fr 220px auto; align-items: end; gap: 14px; padding: 18px; }
.import-form .wide { grid-row: span 2; }
.filter-row { display: flex; gap: 7px; }
.filter-row a { padding: 6px 9px; border-radius: 7px; color: #526078; background: #f2f5f9; font-size: 12px; }
.inline-form { display: flex; align-items: end; gap: 18px; padding: 18px; }
.inline-form label { width: 280px; }
.inline-form span { padding-bottom: 12px; color: var(--muted); font-size: 13px; }
.check-all { color: #526078; font-size: 13px; }
.check-all input { width: auto; height: auto; }
.selection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; max-height: 480px; padding: 16px; overflow-y: auto; }
.select-card { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.select-card:has(input:checked) { border-color: #aac7ff; background: var(--accent-soft); }
.select-card input { width: 17px; height: 17px; }
.select-card span { display: grid; min-width: 0; gap: 4px; }
.select-card strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.select-card small { color: var(--muted); }
.sticky-actions { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px 16px; border: 1px solid #d6e3ff; border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.sticky-actions span { color: var(--muted); font-size: 13px; }
.created-card { display: grid; justify-items: center; width: min(680px,100%); margin: 70px auto; padding: 48px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); text-align: center; }
.success-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%; color: white; background: var(--success); font-size: 28px; }
.created-card h1 { margin: 10px 0; font-size: 34px; }
.created-card p { margin: 0; color: var(--muted); }
.generated-code { margin: 28px 0; padding: 15px 22px; border: 1px dashed #9ab9f4; border-radius: 10px; color: #17396e; background: #edf4ff; font: 800 23px "Cascadia Code", monospace; letter-spacing: .05em; }

/* Login */
.login-body { display: grid; place-items: center; padding: 30px; background: #edf2fa; background-image: radial-gradient(circle at 50% 0, #d9e8ff, transparent 45%); }
.login-shell { width: min(460px,100%); }
.login-panel { display: grid; gap: 30px; padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.login-panel h1 { margin: 10px 0; font-size: 30px; }
.login-panel p { margin: 0; color: var(--muted); line-height: 1.7; }
.stack-form { display: grid; gap: 17px; }

@media (max-width: 1000px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .import-form { grid-template-columns: 1fr 1fr; }
  .import-form .wide { grid-column: 1 / -1; grid-row: auto; }
  .selection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .admin-layout { display: block; }
  .sidebar { position: static; width: 100%; height: auto; }
  .sidebar .nav-group, .sidebar-footer { display: none; }
  .sidebar-brand { padding-bottom: 2px; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 22px 14px 60px; }
  .page-heading, .result-hero, .mail-heading { align-items: stretch; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .mailbox-list-header { grid-template-columns: 42px minmax(0,1fr) minmax(110px,.7fr); }
  .mailbox-list-header span:last-child { display: none; }
  .mailbox-card { grid-template-columns: 42px minmax(0,1fr) minmax(110px,.7fr); }
  .mailbox-actions { grid-column: 1 / -1; }
  .mailbox-actions .button { flex: 1; }
  .card-code-bar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .card-code-bar span:last-child { margin-left: 0; }
  .selection-grid { grid-template-columns: 1fr; }
  .import-form { grid-template-columns: 1fr; }
  .import-form .wide { grid-column: auto; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form label { width: 100%; }
  .message-card summary { grid-template-columns: 38px 1fr; }
  .code-chip { grid-column: 2; justify-self: start; }
  .mail-modal { padding: 10px; }
  .mail-modal-dialog { max-height: calc(100dvh - 20px); border-radius: 14px; }
  .mail-modal-content { padding: 15px; }
  .mail-modal-heading { align-items: stretch; flex-direction: column; }
  .mailbox-search { grid-template-columns: 1fr auto; }
  .mailbox-search label { grid-column: 1 / -1; }
  .mailbox-pagination { align-items: stretch; flex-wrap: wrap; gap: 9px 14px; }
  .mailbox-page-buttons { order: 3; width: 100%; justify-content: center; }
  .mailbox-page-jump { margin-left: auto; }
}

@media (max-width: 480px) {
  .pickup-shell { padding: 14px; }
  .pickup-card { padding: 26px 20px; }
  .public-header { padding: 0 16px; }
  .public-header { align-items: flex-start; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .public-header-actions { gap: 6px; }
  .public-header-actions .button { min-height: 34px; padding: 0 9px; font-size: 12px; }
  .result-shell, .mail-shell { width: min(100% - 28px,1200px); padding-top: 28px; }
  .stat-grid { grid-template-columns: 1fr; }
  .result-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mailbox-credentials { align-items: flex-start; gap: 7px 8px; }
  .credential-copy { font-size: 15px; }
  .mailbox-actions { flex-direction: column; }
  .created-card { margin: 20px auto; padding: 30px 18px; }
  .generated-code { font-size: 18px; }
}

@media (max-width: 720px) {
  .public-nav {
    top: 6px;
    width: calc(100% - 28px);
    margin-top: 6px;
  }
  .public-nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    min-height: 54px;
    padding: 5px 7px 5px 11px;
    border-radius: 26px;
  }
  .public-nav-brand { gap: 8px; font-size: 15px; }
  .public-nav-brand .brand-logo { width: 30px; height: 30px; border-radius: 9px; }
  .public-nav-links {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .public-nav-links::-webkit-scrollbar { display: none; }
  .public-nav-link { flex: 1 0 auto; min-height: 32px; padding: 0 10px; font-size: 13px; }
  .public-nav-icon { width: 15px; height: 15px; }
  .public-nav-context-button,
  .public-nav-status { min-height: 32px; padding: 0 10px; font-size: 12px; }
  .pickup-shell { min-height: calc(100dvh - 80px); padding-top: 18px; }
}

/* Archived KLPlus dark public theme. Kept for rollback, but intentionally disabled. */
@media not all {
.pickup-body,
.result-body {
  --bg: #071018;
  --panel: rgba(10, 29, 38, .92);
  --line: rgba(117, 255, 203, .18);
  --text: #effff9;
  --muted: #93b8b2;
  --accent: #00e676;
  --accent-dark: #00c96b;
  --accent-soft: rgba(0, 230, 118, .1);
  --success: #00e676;
  --danger: #ff758d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36), 0 0 48px rgba(0, 230, 118, .06);
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  color: var(--text);
  color-scheme: dark;
  background: linear-gradient(135deg, #06151a 0%, #080e18 52%, #071821 100%);
  overflow-x: hidden;
}

.result-body:not(.mail-modal-open) {
  overflow-y: auto;
}

.pickup-body::before,
.result-body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(118deg, transparent 49.4%, rgba(0, 230, 118, .055) 49.8%, transparent 50.2%),
    linear-gradient(28deg, transparent 49.4%, rgba(25, 217, 255, .04) 49.8%, transparent 50.2%),
    radial-gradient(circle, rgba(117, 255, 203, .58) 0 1px, transparent 1.6px);
  background-size: 310px 220px, 370px 260px, 142px 116px;
  opacity: .72;
  animation: publicNetworkDrift 28s linear infinite;
}

.pickup-body::after,
.result-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 230, 118, .07), transparent 28%, transparent 72%, rgba(25, 217, 255, .06)),
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, .008) 7px);
}

.pickup-body .pickup-shell,
.result-body .public-header,
.result-body .result-shell,
.result-body .mail-shell,
.result-body .mail-modal,
.pickup-body .toast,
.result-body .toast {
  position: relative;
  z-index: 1;
}

.pickup-body .pickup-card {
  border: 1px solid rgba(117, 255, 203, .24);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(0, 230, 118, .055), transparent 40%),
    rgba(8, 25, 34, .9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: publicPanelIn .65s cubic-bezier(.16, 1, .3, 1) both;
}

.pickup-body .pickup-mini-brand,
.result-body .brand-lockup {
  color: #eafff7;
}

.pickup-body .pickup-notice-trigger {
  border-color: rgba(117,255,203,.24);
  color: #c8eee3;
  background: rgba(6,34,41,.62);
}

.pickup-body .pickup-notice-trigger:hover {
  border-color: rgba(117,255,203,.5);
  color: #effff9;
  background: rgba(9,47,54,.86);
}

.pickup-body .brand-logo,
.result-body .brand-logo {
  box-shadow: 0 0 22px rgba(0, 230, 118, .2);
}

.pickup-body .card-heading h2,
.result-body .result-hero h1,
.result-body .mail-heading h1,
.result-body .mail-modal-heading h2 {
  color: #effff9;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(0, 230, 118, .12);
}

.pickup-body .card-heading p,
.pickup-body .field-help,
.pickup-body .security-note,
.result-body .result-hero p,
.result-body .mail-heading p,
.result-body .folder-heading span,
.result-body .message-summary small,
.result-body .message-summary span,
.result-body .mail-modal-heading p,
.result-body .mail-modal-bar span,
.result-body .mail-modal-error p {
  color: var(--muted);
}

.pickup-body .step-chip,
.result-body .mailbox-index,
.result-body .sender-avatar {
  border: 1px solid rgba(117, 255, 203, .2);
  border-radius: 8px;
  color: #75ffcb;
  background: linear-gradient(145deg, rgba(0, 230, 118, .12), rgba(25, 217, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.pickup-body .pickup-form label {
  color: #dfffee;
}

.pickup-body .pickup-form input {
  border-color: rgba(117, 255, 203, .2);
  border-radius: 8px;
  color: #f2fff9;
  background: rgba(3, 12, 19, .76);
  caret-color: #75ffcb;
}

.pickup-body .pickup-form input::placeholder {
  color: #648a87;
  opacity: 1;
}

.pickup-body .pickup-form input:focus {
  border-color: rgba(0, 230, 118, .68);
  background: rgba(3, 14, 21, .94);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, .1), 0 0 28px rgba(0, 230, 118, .09);
}

.pickup-body .security-dot {
  background: #00e676;
  box-shadow: 0 0 14px rgba(0, 230, 118, .75);
  animation: publicStatusPulse 2.4s ease-in-out infinite;
}

.pickup-body .alert-error,
.result-body .alert-error {
  color: #ffd8df;
  border-color: rgba(255, 117, 141, .34);
  background: rgba(116, 31, 50, .25);
}

.pickup-body .button,
.result-body .button,
.result-body .icon-button,
.result-body .code-list button,
.result-body .mail-modal-close {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.pickup-body .button-primary,
.result-body .button-primary {
  border-color: rgba(117, 255, 203, .38);
  color: #02150d;
  background: linear-gradient(135deg, #00e676, #19d9ff);
  box-shadow: 0 12px 32px rgba(0, 230, 118, .22), 0 0 26px rgba(25, 217, 255, .08);
}

.pickup-body .button-primary::before,
.result-body .button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .34) 43%, transparent 68%);
  transform: translateX(-125%);
  pointer-events: none;
}

.pickup-body .button-primary:hover,
.result-body .button-primary:hover {
  color: #02150d;
  background: linear-gradient(135deg, #10ef82, #29e0ff);
  box-shadow: 0 17px 42px rgba(0, 230, 118, .29), 0 0 32px rgba(25, 217, 255, .12);
}

.pickup-body .button-primary:hover::before,
.result-body .button-primary:hover::before {
  animation: publicButtonSweep .78s ease both;
}

.result-body .button-secondary,
.result-body .button-quiet {
  color: #cffff0;
  border-color: rgba(117, 255, 203, .22);
  background: rgba(0, 230, 118, .07);
}

.result-body .button-secondary:hover,
.result-body .button-quiet:hover {
  color: #effff9;
  border-color: rgba(117, 255, 203, .48);
  background: rgba(0, 230, 118, .12);
  box-shadow: 0 10px 28px rgba(0, 230, 118, .1);
}

.result-body .public-header {
  border-bottom-color: rgba(117, 255, 203, .15);
  background: rgba(6, 18, 26, .78);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: publicHeaderIn .52s ease both;
}

.result-body .result-hero,
.result-body .mail-heading {
  animation: publicPanelIn .62s cubic-bezier(.16, 1, .3, 1) both;
}

.result-body .success-pill,
.result-body .status-badge {
  border: 1px solid rgba(0, 230, 118, .2);
  border-radius: 999px;
  color: #75ffcb;
  background: rgba(0, 230, 118, .09);
}

.result-body .success-pill {
  animation: publicSuccessGlow 1.4s ease-out both;
}

.result-body .card-code-bar {
  border-color: rgba(117, 255, 203, .2);
  border-radius: 8px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(0, 230, 118, .085), rgba(25, 217, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: publicPanelIn .68s .05s cubic-bezier(.16, 1, .3, 1) both;
}

.result-body .card-code-bar strong {
  color: #bfffe7;
}

.result-body .mailbox-search {
  border-color: rgba(117, 255, 203, .2);
  color: #dfffee;
  background: rgba(6, 22, 30, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.result-body .mailbox-search input {
  border-color: rgba(117, 255, 203, .2);
  color: #effff9;
  background: rgba(2, 11, 18, .72);
  caret-color: #75ffcb;
}

.result-body .mailbox-search input::placeholder {
  color: #648a87;
}

.result-body .mailbox-search input:focus {
  border-color: rgba(0, 230, 118, .62);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, .1);
}

.result-body .mailbox-search-empty {
  border-color: rgba(117, 255, 203, .2);
  color: var(--muted);
  background: rgba(6, 22, 30, .66);
}

.result-body .mailbox-card,
.result-body .message-card {
  border-color: rgba(117, 255, 203, .16);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(0, 230, 118, .045), transparent 42%),
    rgba(9, 27, 36, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 15px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.result-body .mailbox-card {
  animation: publicItemIn .55s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc((var(--public-item-index, 0) * 55ms) + 90ms);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.result-body .mailbox-card:nth-child(1) { --public-item-index: 1; }
.result-body .mailbox-card:nth-child(2) { --public-item-index: 2; }
.result-body .mailbox-card:nth-child(3) { --public-item-index: 3; }
.result-body .mailbox-card:nth-child(4) { --public-item-index: 4; }
.result-body .mailbox-card:nth-child(5) { --public-item-index: 5; }
.result-body .mailbox-card:nth-child(n+6) { --public-item-index: 6; }

.result-body .mailbox-card:hover,
.result-body .message-card:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 255, 203, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 20px 50px rgba(0, 0, 0, .24), 0 0 26px rgba(0, 230, 118, .055);
}

.result-body .mailbox-title h2,
.result-body .folder-heading h2,
.result-body .message-summary strong,
.result-body .mail-modal-bar strong,
.result-body .mail-modal-error h3 {
  color: #effff9;
}

.result-body .secret-row {
  color: var(--muted);
}

.result-body .secret-row code,
.result-body .message-body pre {
  color: #cbe4df;
}

.result-body .icon-button {
  color: #75ffcb;
}

.result-body .icon-button:hover {
  color: #effff9;
  text-shadow: 0 0 14px rgba(0, 230, 118, .42);
}

.result-body .code-chip,
.result-body .code-list button {
  color: #75ffcb;
  border-color: rgba(117, 255, 203, .26);
  background: rgba(0, 230, 118, .09);
}

.result-body .message-body {
  border-top-color: rgba(117, 255, 203, .14);
  background: rgba(2, 11, 18, .48);
}

.result-body .mail-modal-backdrop {
  background: rgba(1, 8, 13, .76);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.result-body .mail-modal-dialog {
  border-color: rgba(117, 255, 203, .26);
  border-radius: 8px;
  background: #081923;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .56), 0 0 48px rgba(0, 230, 118, .08);
  animation: publicModalIn .3s cubic-bezier(.16, 1, .3, 1) both;
}

.result-body .mail-modal-bar {
  border-bottom-color: rgba(117, 255, 203, .15);
  background: rgba(7, 22, 30, .96);
}

.result-body .mail-modal-close {
  color: #cffff0;
  border-color: rgba(117, 255, 203, .22);
  background: rgba(0, 230, 118, .07);
}

.result-body .mail-modal-content {
  scrollbar-color: rgba(0, 230, 118, .46) rgba(3, 12, 18, .72);
}

.pickup-body .toast,
.result-body .toast {
  color: #dfffee;
  border: 1px solid rgba(117, 255, 203, .24);
  background: rgba(5, 22, 29, .96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .4), 0 0 24px rgba(0, 230, 118, .09);
}

@keyframes publicNetworkDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(70px, 54px, 0); }
}

@keyframes publicPanelIn {
  from { opacity: 0; transform: translateY(18px) scale(.992); }
  to { opacity: 1; transform: none; }
}

@keyframes publicHeaderIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes publicItemIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes publicModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes publicButtonSweep {
  from { transform: translateX(-125%); }
  to { transform: translateX(145%); }
}

@keyframes publicStatusPulse {
  0%, 100% { transform: scale(1); opacity: .82; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes publicSuccessGlow {
  0% { box-shadow: 0 0 0 rgba(0, 230, 118, 0); }
  45% { box-shadow: 0 0 28px rgba(0, 230, 118, .22); }
  100% { box-shadow: 0 0 0 rgba(0, 230, 118, 0); }
}

@media (max-width: 760px) {
  .pickup-body::before,
  .result-body::before {
    background-size: 250px 180px, 310px 220px, 120px 102px;
    opacity: .52;
  }

  .result-body .mailbox-card:hover,
  .result-body .message-card:hover {
    transform: none;
  }

  .result-hero { align-items: stretch; flex-direction: column; gap: 14px; }
  .pickup-notice-strip { border-radius: 16px; }
}

@media (max-width: 480px) {
  .pickup-body .pickup-card {
    border-radius: 8px;
  }

  .notice-modal {
    padding: 12px;
  }

  .notice-modal-head {
    padding: 20px 22px 15px;
  }

  .notice-modal-head h2 {
    font-size: 24px;
  }

  .notice-modal-body {
    padding: 20px 22px 13px;
  }

  .notice-modal-body p {
    margin: 15px 0 22px;
    font-size: 14px;
  }

  .notice-modal-foot {
    padding: 0 22px 18px;
    font-size: 11px;
  }

  .result-body .result-hero h1,
  .result-body .mail-heading h1 {
    font-size: 30px;
  }

  .result-body .mailbox-search {
    grid-template-columns: 1fr;
  }

  .result-body .mailbox-search span {
    white-space: normal;
  }

  .pickup-card-topbar { align-items: flex-start; }
  .pickup-topbar-actions { display: grid; gap: 6px; }
  .pickup-topbar-actions .pickup-notice-trigger { min-height: 31px; padding: 0 9px; font-size: 12px; }
  .card-vault { padding: 12px; }
  .card-vault-dialog { max-height: calc(100dvh - 24px); border-radius: 16px; }
  .card-vault-head, .card-vault-body { padding-left: 18px; padding-right: 18px; }
  .card-vault-form-row { grid-template-columns: 1fr; }
  .card-vault-item { grid-template-columns: minmax(0, 1fr) auto; }
  .card-vault-item .card-vault-remove { grid-column: 2; grid-row: 1; }
  .card-vault-item .card-vault-action:not(.card-vault-remove) { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .pickup-body::before,
  .result-body::before,
  .pickup-body .pickup-card,
  .pickup-body .security-dot,
  .pickup-body .button-primary:hover::before,
  .result-body .button-primary:hover::before,
  .result-body .public-header,
  .result-body .result-hero,
  .result-body .mail-heading,
  .result-body .success-pill,
  .result-body .card-code-bar,
  .result-body .mailbox-card,
  .result-body .mail-modal-dialog {
    animation: none !important;
  }

  .public-nav-inner,
  .public-nav-status i {
    animation: none !important;
  }

  .pickup-body *,
  .result-body * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
}
