/* Scoped styles: the existing inbox and its HTML mail previews are untouched. */
.pickup-settings { margin-top: 24px; }
.pickup-section-head, .pickup-list-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pickup-section-head .muted { margin-bottom: 0; }
.pickup-status-badge { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid #c3ecdc; border-radius: 30px; background: #eaf8f1; color: #147454; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pickup-status-badge.pickup-inactive { background: #f2f3f6; border-color: #e2e5eb; color: #737d8f; }
.pickup-how { display: flex; gap: 24px; padding: 20px 0; margin: 18px 0 8px; border-top: 1px solid var(--border, #e2e8f2); border-bottom: 1px solid var(--border, #e2e8f2); color: var(--muted, #66748d); font-size: 13px; }
.pickup-how span { display: inline-flex; align-items: center; gap: 9px; }
.pickup-how b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eef0ff; color: #5458de; font-size: 12px; }
.pickup-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; }
.pickup-full { grid-column: 1 / -1; }
.pickup-field { min-width: 0; }
.pickup-field small { display: block; margin-top: 7px; color: var(--muted, #66748d); font-size: 12px; line-height: 1.65; }
.pickup-field label span { color: #94a0b3; font-size: 12px; font-weight: 400; margin-left: 6px; }
.pickup-field textarea { min-height: 84px; }
.pickup-options { margin: 14px 0 0; border: 1px solid var(--border, #e2e8f2); border-radius: 12px; padding: 14px 18px; }
.pickup-options summary, .pickup-help summary { color: #4d5e83; cursor: pointer; font-size: 13px; font-weight: 650; line-height: 1.7; }
.pickup-options summary span { margin-left: 8px; color: #8d99ad; font-weight: 400; }
.pickup-options[open] > summary { margin-bottom: 4px; }
.pickup-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 17px; }
.pickup-form-actions p { flex: 1; min-width: 210px; font-size: 13px; color: #627491; line-height: 1.65; margin: 0; }
.pickup-error { color: #b6404e !important; }
.pickup-created { margin-top: 24px; padding: 22px; border: 1px solid #b5ddcc; border-radius: 15px; background: #f5fcf8; }
.pickup-created h3 { margin: 0; color: #19664d; font-size: 18px; }
.pickup-created p { color: #507965; font-size: 13px; line-height: 1.75; }
.pickup-created .pickup-binding { font-weight: 650; overflow-wrap: anywhere; }
.pickup-address-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-top: 20px; }
.pickup-address-row > span { grid-column: 1 / -1; color: #386553; font-size: 12px; font-weight: 650; }
.pickup-address-row input { min-width: 0; font-family: Consolas, monospace; font-size: 12px; background: #fff; border-color: #cbdfd3; }
.pickup-address-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pickup-open { display: inline-flex; align-items: center; text-decoration: none; }
.pickup-text-button { background: none; color: #4e7161; border: 0; padding: 0; margin-top: 18px; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.pickup-list-head { margin-top: 32px; }
.pickup-list-head h3 { margin: 0; }
.pickup-count { display: inline-block; margin-left: 7px; padding: 4px 9px; border-radius: 20px; background: #eff2fc; color: #7280aa; font-size: 12px; font-weight: 550; white-space: nowrap; }
.pickup-link-list { display: grid; gap: 10px; margin-top: 15px; }
.pickup-saved-link { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border: 1px solid var(--border, #e2e8f2); border-radius: 12px; padding: 17px 18px; }
.pickup-saved-copy { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.pickup-saved-copy strong { font-size: 14px; }
.pickup-saved-copy > span { color: #4c628a; font-size: 13px; }
.pickup-saved-copy small { color: var(--muted, #78869b); font-size: 12px; line-height: 1.6; }
.pickup-saved-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
.pickup-revoke { padding: 7px 10px; border: 1px solid #ebced1; border-radius: 8px; background: transparent; color: #b65560; font-size: 12px; }
.pickup-revoke:hover { background: #fff1f3; }
.pickup-empty { margin: 0; padding: 28px 20px; color: #8290a7; font-size: 13px; line-height: 1.8; text-align: center; }
.pickup-help { margin-top: 24px; border-top: 1px solid var(--border, #e2e8f2); padding-top: 20px; }
.pickup-help p, .pickup-help li { color: var(--muted, #66748d); font-size: 13px; line-height: 1.85; }
.pickup-help pre { overflow-x: auto; padding: 14px; background: #f3f5fa; border: 1px solid var(--border, #e2e8f2); border-radius: 9px; color: #475a80; font-size: 12px; }
body.dark .pickup-status-badge { background: #193d34; color: #8cd9b8; border-color: #326352; }
body.dark .pickup-created { background: #162e2b; border-color: #326352; }
body.dark .pickup-created h3, body.dark .pickup-created p, body.dark .pickup-address-row > span { color: #aadbc5; }
body.dark .pickup-options summary, body.dark .pickup-help summary, body.dark .pickup-saved-copy > span, body.dark .pickup-text-button { color: #b2c4e4; }
body.dark .pickup-how b, body.dark .pickup-count { background: #2b3555; color: #b5c3f4; }
body.dark .pickup-help pre { background: #182338; color: #b2c4e4; }

/* The capability page has no external fonts, scripts or remote images. */
body.pickup-page { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 12% 0%, #e9ecff 0, transparent 48%), #f6f8fc; color: #24334e; font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.pickup-page * { box-sizing: border-box; }
.pickup-page [hidden] { display: none !important; }
.pickup-page button, .pickup-page input, .pickup-page textarea { font: inherit; }
.pickup-page button { cursor: pointer; }
.pickup-page button:disabled { cursor: wait; opacity: .55; }
.pickup-page :focus-visible { outline: 3px solid #9daffa; outline-offset: 3px; }
.pickup-page-header { display: flex; align-items: center; justify-content: space-between; padding: 22px max(24px, calc((100vw - 1080px) / 2)); border-bottom: 1px solid #e4e8f2; background: rgba(255,255,255,.86); }
.pickup-brand { display: flex; align-items: center; gap: 12px; color: #253454; font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pickup-brand > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: linear-gradient(135deg,#596dff,#7e51dc); color: #fff; font-size: 22px; box-shadow: 0 5px 13px #4f60da29; }
.pickup-header-label { color: #8491a7; font-size: 13px; }
.pickup-shell { width: min(1080px, calc(100% - 48px)); margin: 52px auto 32px; }
.pickup-hero { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.pickup-eyebrow { color: #777ddd; font-size: 12px; font-weight: 650; letter-spacing: .1em; }
.pickup-hero h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.3; margin: 12px 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pickup-hero p { margin: 0; color: #74829a; font-size: 14px; overflow-wrap: anywhere; }
.pickup-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; border: 1px solid #dbe1ee; border-radius: 10px; padding: 9px 13px; color: #526287; background: #fff; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.pickup-button:hover { background: #f2f5ff; border-color: #aebbdf; }
.pickup-primary { padding: 13px 20px; color: #fff; background: linear-gradient(135deg,#5869f0,#4c4cce); border: 0; box-shadow: 0 8px 20px #4e5bd132; font-size: 14px; min-width: 126px; }
.pickup-primary:hover { color: #fff; background: #4a52ce; }
.pickup-query-status { margin: 24px 0; padding: 14px 18px; border: 1px solid #e0e6f5; border-radius: 12px; color: #6d7b97; background: #ffffffa8; font-size: 13px; line-height: 1.75; }
.pickup-query-status.pickup-error { background: #fff5f6; border-color: #eed1d6; }
.pickup-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 28px; }
.pickup-highlight { display: grid; align-content: center; justify-items: start; gap: 13px; border-radius: 18px; padding: 24px 28px; background: linear-gradient(130deg,#eefaf4,#e4f5ee); border: 1px solid #c9e9da; }
.pickup-highlight-label { color: #2c8865; font-size: 13px; font-weight: 650; }
.pickup-code { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #bee3cf; border-radius: 10px; color: #177853; background: #eaf8ef; padding: 8px 13px; font-family: Consolas,monospace !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: .04em; }
.pickup-code:hover { background: #dcf2e4; border-color: #8fc5a8; }
.pickup-code small { font-family: "Segoe UI","Microsoft YaHei",sans-serif; font-size: 11px; font-weight: 550; letter-spacing: 0; opacity: .7; }
.pickup-code-large { gap: 18px; padding: 0; border: 0; background: transparent; font-size: 36px !important; letter-spacing: .12em; }
.pickup-code-large:hover { background: transparent; color: #105d40; }
.pickup-highlight-hint { color: #729584; font-size: 12px; }
.pickup-key-link { padding: 0; border: 0; background: transparent; color: #207a59; font-size: 25px !important; font-weight: 700 !important; }
.pickup-key-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.pickup-results-panel { background: #fff; border: 1px solid #e0e6f0; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 42px #21356506; }
.pickup-results-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 23px 28px; border-bottom: 1px solid #edf0f6; }
.pickup-results-head h2 { margin: 0; font-size: 18px; }
.pickup-results-head p { margin: 7px 0 0; font-size: 12px; line-height: 1.65; color: #8b97ac; }
.pickup-message { padding: 28px; border-bottom: 1px solid #edf0f6; }
.pickup-message:last-child { border-bottom: 0; }
.pickup-message-heading { display: flex; align-items: flex-start; gap: 15px; }
.pickup-message-heading h3 { flex: 1; margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.pickup-message-heading .pickup-status-badge { padding: 4px 10px; }
.pickup-message-meta { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 5px; margin: 9px 0 20px; color: #8a96ab; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.pickup-message-meta time { margin-left: auto; }
.pickup-code-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.pickup-label { color: #7d899f; font-size: 12px; margin-right: 3px; }
.pickup-link-group { margin-top: 18px; }
.pickup-link-group h4 { color: #60718f; font-size: 12px; font-weight: 600; margin: 0 0 9px; }
.pickup-result-link { display: flex; align-items: center; gap: 16px; margin-top: 7px; padding: 13px 15px; background: #f8faff; border: 1px solid #e9edf5; border-radius: 11px; }
.pickup-result-link-copy { flex: 1; min-width: 0; }
.pickup-result-link-copy strong { font-size: 13px; font-weight: 550; color: #465c87; overflow-wrap: anywhere; }
.pickup-link-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8595b0; font: 11px/1.8 Consolas, monospace; margin-top: 3px; }
.pickup-other-links { margin-top: 18px; }
.pickup-other-links summary { color: #8b97ac; cursor: pointer; font-size: 12px; line-height: 1.8; }
.pickup-other-links .pickup-result-link { background: #fbfcfe; }
.pickup-message-empty { text-align: left; padding: 0; font-size: 12px; }
.pickup-body-details { margin-top: 24px; border-top: 1px solid #edf0f6; padding-top: 18px; }
.pickup-body-details > summary { cursor: pointer; color: #4d5ed0; font-weight: 650; font-size: 13px; padding: 4px 0; }
.pickup-preview-toolbar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 18px; }
.pickup-preview-toolbar .active { background: #eef1ff; color: #3f50ce; border-color: #a8b5ee; }
.pickup-load-images { margin-left: auto; }
.pickup-image-note { color: #8b96a8; font-size: 11px; line-height: 1.75; margin: 10px 0 14px; }
.pickup-preview-content { background: #fff; border: 1px solid #e6eaf3; border-radius: 12px; overflow: hidden; }
.pickup-mail-frame { display: block; width: 100%; height: min(760px, 78vh); min-height: 420px; border: 0; background: #fff; }
.pickup-mail-source { margin: 0; padding: 20px; max-height: 760px; min-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #35465f; background: #f8faff; font: 13px/1.8 Consolas, "Microsoft YaHei", monospace; }
.pickup-attachments { margin-top: 16px; }
.pickup-attachments h4 { font-size: 13px; color: #65718a; }
.pickup-attachment { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #edf0f6; font-size: 13px; overflow-wrap: anywhere; }
.pickup-attachment small { color: #8794aa; }
.pickup-page-footnote { margin: 22px 8px; text-align: center; color: #95a0b3; font-size: 12px; line-height: 1.8; }
.pickup-toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%,10px); z-index: 20; max-width: min(500px,90vw); background: #253858; color: #fff; padding: 12px 20px; border-radius: 10px; box-shadow: 0 8px 26px #162b4a25; opacity: 0; pointer-events: none; transition: .2s; font-size: 13px; }
.pickup-toast.pickup-visible { opacity: 1; transform: translate(-50%,0); }
.pickup-clipboard { position: fixed; opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
  .pickup-form { grid-template-columns: 1fr; gap: 3px; }
  .pickup-full { grid-column: auto; }
  .pickup-section-head { align-items: flex-start; }
  .pickup-section-head > .pickup-status-badge { display: none; }
  .pickup-how { flex-wrap: wrap; gap: 12px 20px; font-size: 12px; }
  .pickup-address-row { grid-template-columns: 1fr; }
  .pickup-address-row > span { grid-column: auto; }
  .pickup-options summary span { display: block; margin-left: 0; }
  .pickup-created { padding: 17px; }
  .pickup-saved-link { flex-direction: column; gap: 13px; }
  .pickup-saved-actions { width: 100%; justify-content: space-between; }
  .pickup-page-header { padding: 16px 20px; }
  .pickup-brand { font-size: 14px; gap: 8px; }
  .pickup-header-label { font-size: 11px; }
  .pickup-shell { width: calc(100% - 30px); margin-top: 30px; }
  .pickup-hero { align-items: flex-start; flex-direction: column; gap: 20px; }
  .pickup-hero > .pickup-primary { width: 100%; }
  .pickup-highlight { padding: 20px; }
  .pickup-highlights { grid-template-columns: 1fr; }
  .pickup-results-head, .pickup-message { padding: 20px; }
  .pickup-message-meta { flex-direction: column; }
  .pickup-message-meta time { margin-left: 0; }
  .pickup-result-link { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pickup-result-link-copy { width: 100%; }
  .pickup-result-link .pickup-address-actions { width: 100%; justify-content: flex-end; }
  .pickup-load-images { margin-left: 0; }
  .pickup-mail-frame { min-height: 400px; }
}
@media (prefers-reduced-motion: reduce) { .pickup-toast, .pickup-button { transition: none; } }
