:root {
  --red: #e94743;
  --red-deep: #c93032;
  --ink: #20262d;
  --muted: #87909a;
  --line: #e9ecef;
  --soft: #f6f7f9;
  --panel: #ffffff;
  --blue: #3974de;
  --shadow: 0 18px 50px rgba(33, 40, 48, 0.12);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f4f5f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { min-height: 100vh; background: #f4f5f7; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.form-error {
  margin-top: 12px;
  color: #c93f3f;
  font-size: 13px;
  line-height: 1.5;
}

.test-ribbon {
  position: fixed;
  z-index: 30;
  top: 13px;
  right: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  color: #fff;
  background: rgba(26, 31, 36, 0.78);
  font-size: 12px;
  letter-spacing: .04em;
  backdrop-filter: blur(12px);
}

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); background: #fff; }
.login-visual { position: relative; overflow: hidden; min-height: 720px; color: #fff; background: #252d35; isolation: isolate; }
.visual-grid { position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 55px 55px; transform: perspective(700px) rotateX(58deg) translateY(37%); transform-origin: bottom; }
.visual-orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(2px); }
.visual-orb-a { width: 760px; height: 760px; left: -220px; bottom: -295px; background: radial-gradient(circle at 40% 32%, #ef6560 0 15%, #b63f4e 35%, rgba(53,63,73,0) 67%); opacity: .95; }
.visual-orb-b { width: 680px; height: 680px; right: -170px; top: -230px; background: radial-gradient(circle at 40% 54%, #4f72be 0 12%, #334d83 35%, rgba(37,45,53,0) 67%); opacity: .82; }
.login-visual::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(122deg, rgba(27,33,41,.72), rgba(27,33,41,.06) 60%, rgba(27,33,41,.55)); }
.visual-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; max-width: 640px; padding: 10vw; }
.brand-mark { display: inline-grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; width: fit-content; line-height: 1; }
.brand-symbol { align-self: center; color: var(--red); font-size: 21px; font-weight: 900; letter-spacing: -.08em; }
.brand-cn { color: inherit; font-size: 23px; font-weight: 750; letter-spacing: .12em; }
.brand-en { grid-column: 2; margin-top: 3px; color: inherit; font-size: 10px; letter-spacing: .15em; opacity: .72; }
.brand-mark-light { margin-bottom: 68px; }
.brand-mark-light .brand-symbol { color: #ff6058; }
.eyebrow { margin: 0 0 22px; color: #ff8079; font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.visual-copy h1 { margin: 0; font-size: clamp(38px, 5vw, 76px); line-height: 1.08; letter-spacing: -.06em; font-weight: 760; }
.visual-note { max-width: 400px; margin: 26px 0 0; color: rgba(255,255,255,.69); font-size: 16px; line-height: 1.85; }
.visual-footer { position: absolute; bottom: 34px; left: 10vw; color: rgba(255,255,255,.42); font-size: 11px; font-weight: 650; letter-spacing: .18em; }
.login-panel { display: flex; min-height: 720px; flex-direction: column; background: #fff; }
.login-panel-inner { width: min(440px, calc(100% - 80px)); margin: auto; padding: 90px 0 40px; }
.brand-mark-dark { margin-bottom: 58px; }
.brand-mark-dark .brand-cn { color: #1c2025; }
.brand-mark-dark .brand-en { color: #666e78; }
.test-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 11px; border-radius: 99px; color: #a32c30; background: #fff1f0; font-size: 12px; font-weight: 700; }
.test-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.login-panel h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.login-subtitle { margin: 10px 0 34px; color: var(--muted); font-size: 15px; }
.login-form { display: grid; gap: 10px; }
.field-label, .json-label { margin-top: 7px; color: #4d5863; font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { width: 100%; height: 50px; padding: 0 50px 0 42px; border: 1px solid #dfe3e7; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.input-wrap input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(233,71,67,.11); }
.input-icon { position: absolute; left: 15px; color: #a2a9b0; font-size: 13px; font-weight: 800; letter-spacing: -.12em; }
.input-action { position: absolute; right: 12px; border: 0; color: #89919a; background: transparent; font-size: 12px; }
.form-meta { display: flex; align-items: center; justify-content: space-between; margin: 7px 0 10px; color: #707983; font-size: 13px; }
.checkbox-label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.checkbox-label input { width: 15px; height: 15px; accent-color: var(--red); }
.link-button, .text-button { padding: 0; border: 0; color: #7b858f; background: transparent; }
.link-button:hover, .text-button:hover { color: var(--red); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 7px; color: #fff; background: var(--red); box-shadow: 0 8px 20px rgba(233,71,67,.2); font-size: 14px; font-weight: 750; transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--red-deep); transform: translateY(-1px); }
.primary-button span { font-size: 18px; line-height: 1; }
.login-safe-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 32px; color: #9299a1; font-size: 12px; line-height: 1.65; }
.safe-icon { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; color: #4f9c72; background: #e8f5ed; text-align: center; font-weight: 800; }
.login-panel-bottom { display: flex; justify-content: center; gap: 29px; padding: 22px; border-top: 1px solid #f0f1f2; color: #8b939b; font-size: 12px; }

.mail-shell { min-height: 100vh; color: #242a31; background: #f2f3f6; }
.topbar { display: flex; align-items: center; height: 66px; padding: 0 24px; color: #f5f7f9; background: #292f34; gap: 30px; }
.topbar-brand { display: flex; align-items: center; min-width: 310px; gap: 8px; }
.topbar-brand .brand-symbol { font-size: 26px; }
.topbar-brand .brand-cn { font-size: 17px; letter-spacing: .08em; }
.topbar-brand .brand-en { margin: 0 0 0 2px; font-size: 8px; }
.topbar-divider { width: 1px; height: 24px; margin: 0 8px; background: rgba(255,255,255,.16); }
.mail-word { color: #cad0d5; font-size: 12px; letter-spacing: .2em; }
.global-search { display: flex; align-items: center; width: min(660px, 48vw); height: 36px; padding: 0 12px; border-radius: 7px; color: #aeb6bd; background: #4a5157; }
.global-search > span { margin-right: 10px; font-size: 24px; transform: rotate(-20deg); }
.global-search input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; font-size: 13px; }
.global-search input::placeholder { color: #adb4ba; }
kbd { padding: 2px 6px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; color: #b9c0c5; font-size: 10px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-left: auto; }
.environment-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; color: #b9e6cd; font-size: 11px; white-space: nowrap; }
.environment-chip i { width: 6px; height: 6px; border-radius: 50%; background: #5bd38b; }
.icon-button, .top-action { border: 0; color: #dbe0e3; background: transparent; font-size: 13px; }
.icon-button { padding: 8px; font-size: 20px; }
.top-action { padding: 8px 5px; }
.top-action:hover, .icon-button:hover { color: #fff; }
.user-avatar { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: #b37552; font-weight: 700; }
.mail-body { display: grid; height: calc(100vh - 66px); grid-template-columns: 224px 360px minmax(0, 1fr); }
.sidebar { overflow-y: auto; padding: 22px 16px; border-right: 1px solid var(--line); background: #fff; }
.compose-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 41px; margin-bottom: 25px; border: 0; border-radius: 99px; color: #fff; background: var(--red); box-shadow: 0 6px 14px rgba(233,71,67,.2); font-weight: 750; }
.compose-button span { margin-right: 6px; font-size: 20px; font-weight: 400; }
.compose-button:hover { background: var(--red-deep); }
.sidebar-section-title { display: flex; align-items: center; justify-content: space-between; margin: 20px 9px 9px; color: #9299a1; font-size: 12px; }
.sidebar-section-title button { border: 0; color: #969da4; background: transparent; font-size: 20px; line-height: 1; }
.folder-nav { display: grid; gap: 3px; }
.folder-item { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; min-height: 37px; padding: 0 10px; border: 0; border-radius: 8px; color: #66717c; background: transparent; text-align: left; font-size: 13px; }
.folder-item:hover, .folder-item.active { color: #262c32; background: #f0f1f3; font-weight: 700; }
.folder-item strong { font-size: 12px; }
.folder-icon { color: #7c858d; font-size: 17px; text-align: center; }
.folder-nav-secondary .folder-item { min-height: 36px; }
.sidebar-label-title { margin-top: 24px; }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 3px 10px; color: #6f7881; font-size: 12px; }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; }
.tag-dot.blue { background: #5c86df; }
.tag-dot.orange { margin-left: 10px; background: #e99a41; }
.feature-title { margin-top: 28px; }
.feature-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; color: #606a74; background: transparent; text-align: left; font-size: 13px; }
.feature-item span { width: 20px; color: #808a92; text-align: center; font-size: 19px; }
.feature-item:hover { color: var(--red); }
.sidebar-footnote { margin: 34px 10px 6px; color: #b4bac0; font-size: 11px; line-height: 1.7; }
.message-column { min-width: 0; border-right: 1px solid #e1e4e8; background: #fff; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 13px; border-bottom: 1px solid var(--line); }
.list-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.list-title strong { color: #77818a; font-size: 12px; font-weight: 500; }
.collapse-icon { color: #67717b; font-size: 19px; }
.list-tools { display: flex; gap: 8px; }
.list-tools button { border: 0; color: #69747d; background: transparent; font-size: 17px; }
.message-list { overflow-y: auto; height: calc(100vh - 114px); }
.message-item { position: relative; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 10px; min-height: 91px; padding: 13px 13px 11px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.message-item:hover { background: #fafbfc; }
.message-item.selected { background: #edf0f3; }
.message-item.unread .message-sender, .message-item.unread .message-subject { font-weight: 750; color: #20262b; }
.unread-dot { align-self: start; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: transparent; }
.message-item.unread .unread-dot { background: var(--red); }
.sender-avatar { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-size: 13px; font-weight: 700; }
.avatar-blue { background: #6972df; }.avatar-orange { background: #f5a11e; }.avatar-red { background: #ec4845; }.avatar-purple { background: #8a70d7; }.avatar-green { background: #5eae7b; }
.message-main { min-width: 0; }
.message-sender { overflow: hidden; margin-bottom: 5px; color: #3c454e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.message-subject { overflow: hidden; margin-bottom: 4px; color: #424c55; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.message-preview { overflow: hidden; color: #929aa2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.message-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; color: #88929a; font-size: 11px; white-space: nowrap; }
.attachment { color: #737d86; font-size: 15px; }
.reading-pane { position: relative; overflow: hidden; background: #f5f6f8; }
.reading-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #aab1b8; }
.reading-empty p { margin: 22px 0 4px; font-size: 16px; }
.reading-empty small { color: #c0c5ca; font-size: 12px; }
.empty-illustration { position: relative; width: 100px; height: 104px; }
.empty-illustration::before { content: ""; position: absolute; left: 33px; top: 26px; width: 37px; height: 51px; border: 2px solid #b8bec4; border-radius: 3px; background: #f5f6f8; transform: rotate(-4deg); }
.empty-illustration::after { content: ""; position: absolute; left: 42px; top: 42px; width: 18px; height: 2px; background: #b8bec4; box-shadow: 0 9px #b8bec4, 0 18px #b8bec4; }
.empty-illustration span, .empty-illustration i, .empty-illustration b { position: absolute; display: block; border-radius: 50%; }
.empty-illustration span { left: 21px; top: 10px; width: 19px; height: 19px; background: #3c76dd; }.empty-illustration i { left: 66px; top: 18px; width: 23px; height: 23px; border: 2px solid #ed6a42; }.empty-illustration b { left: 51px; top: 3px; width: 7px; height: 34px; border-left: 2px solid #3c76dd; transform: rotate(25deg); }
.reading-email { height: 100%; overflow-y: auto; background: #fff; }
.email-toolbar { display: flex; align-items: center; gap: 23px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); color: #65707a; font-size: 13px; }
.email-toolbar button { border: 0; color: inherit; background: transparent; }
.email-toolbar button:hover { color: var(--red); }
.email-header { padding: 18px 28px 20px; border-bottom: 1px solid var(--line); }
.email-subject { margin: 0 0 16px; color: #242a31; font-size: 20px; font-weight: 700; line-height: 1.4; }
.email-meta { display: flex; align-items: center; gap: 12px; color: #707a84; font-size: 12px; }
.email-meta .sender-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.email-meta strong { color: #414a53; }
.email-body { padding: 26px 28px 55px; color: #3c454d; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.email-body .body-label { margin: 0 0 16px; color: #969da4; font-size: 12px; }
.email-body .body-separator { margin: 18px 0; border: 0; border-top: 1px dashed #bbc1c6; }
.reply-pending { display: inline-flex; align-items: center; gap: 7px; margin: 16px 0; padding: 8px 11px; border-radius: 7px; color: #9a6a28; background: #fff6e6; font-size: 12px; }
.reply-pending::before { content: "◷"; font-size: 16px; }
.reply-ready { display: inline-flex; align-items: center; gap: 7px; margin: 16px 0; padding: 8px 11px; border-radius: 7px; color: #367d57; background: #edf9f1; font-size: 12px; }
.reply-ready::before { content: "✓"; font-weight: 800; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(25,29,34,.52); backdrop-filter: blur(5px); }
.modal-card { width: min(620px, 100%); max-height: min(820px, calc(100vh - 44px)); overflow: auto; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 25px 28px 20px; border-bottom: 1px solid var(--line); }
.modal-kicker { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.modal-header h2 { margin: 7px 0 0; font-size: 23px; letter-spacing: -.04em; }
.modal-close { border: 0; color: #8c959d; background: transparent; font-size: 25px; line-height: 1; }
.modal-close:hover { color: var(--red); }
.compose-form, .data-card > .modal-description, .data-import-row, .json-label, .json-input, .json-example, .data-card > .form-error { margin-right: 28px; margin-left: 28px; }
.compose-form { display: grid; gap: 13px; padding: 22px 0 25px; }
.compose-form label { display: grid; gap: 7px; color: #5d6770; font-size: 13px; font-weight: 700; }
.compose-form input, .compose-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #dfe3e7; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 14px; font-weight: 400; resize: vertical; }
.compose-form input:focus, .compose-form textarea:focus, .json-input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(233,71,67,.1); }
.compose-hint { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 7px; color: #8a6e36; background: #fff8ea; font-size: 12px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.secondary-button { min-height: 42px; padding: 0 17px; border: 1px solid #dfe3e7; border-radius: 7px; color: #65707a; background: #fff; font-size: 13px; font-weight: 700; }
.secondary-button:hover { border-color: #b9c0c6; color: #272e35; }
.data-card { width: min(720px, 100%); padding-bottom: 25px; }
.modal-description { margin-top: 20px; color: #7f8991; font-size: 13px; line-height: 1.7; }
.data-import-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.file-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border: 1px solid #dfe3e7; border-radius: 7px; color: #65707a; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.file-button:hover { border-color: var(--red); color: var(--red); }.file-button input { display: none; }
.text-button { margin-left: auto; font-size: 12px; }
.attachment-status { margin: 12px 28px 0; padding: 10px 12px; border-radius: 7px; color: #5f7380; background: #f2f7fa; font-size: 12px; line-height: 1.5; }
.json-label { display: block; margin-top: 20px; }.json-input { display: block; width: calc(100% - 56px); margin-top: 8px; padding: 12px; border: 1px solid #dfe3e7; border-radius: 8px; outline: 0; color: #37414a; background: #fbfcfd; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 12px; line-height: 1.55; resize: vertical; }
.json-example { margin-top: 8px; color: #a0a7ad; font-size: 11px; line-height: 1.5; }.form-error { margin-top: 10px; color: #c64040; font-size: 12px; }
.email-attachment { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 560px; margin-top: 26px; padding: 13px 15px; border: 1px solid #e2e6ea; border-radius: 10px; background: #fbfcfd; }
.attachment-file { display: flex; align-items: center; min-width: 0; gap: 11px; }
.attachment-file-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; color: #fff; background: #2e9b6b; font-size: 10px; font-weight: 800; }
.attachment-file-meta { display: grid; min-width: 0; gap: 3px; }
.attachment-file-meta strong { overflow: hidden; color: #38434b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file-meta small { color: #8d979f; font-size: 11px; }
.attachment-download { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid #d7dfe4; border-radius: 7px; color: #4f6977; background: #fff; font-size: 12px; font-weight: 700; }
.attachment-download:hover { border-color: var(--red); color: var(--red); }
.attachment-download:disabled { cursor: wait; opacity: .65; }
.data-card .modal-footer { margin: 15px 28px 0; }
.toast { position: fixed; z-index: 40; right: 22px; bottom: 24px; max-width: min(420px, calc(100vw - 44px)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; color: #fff; background: rgba(35,40,45,.92); box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .login-shell { grid-template-columns: 1fr; }.login-visual { display: none; }.login-panel-inner { padding-top: 100px; }.test-ribbon { top: 12px; right: 14px; }
  .topbar-brand { min-width: auto; }.mail-word, .topbar-divider { display: none; }.topbar { gap: 18px; }.environment-chip, .top-action { display: none; }.global-search { width: min(100%, 540px); }
  .mail-body { grid-template-columns: 202px 330px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .login-panel-inner { width: min(440px, calc(100% - 44px)); padding-top: 88px; }.brand-mark-dark { margin-bottom: 44px; }
  .topbar { height: 58px; padding: 0 13px; }.topbar-brand .brand-cn { font-size: 14px; }.topbar-brand .brand-en { display: none; }.global-search { display: none; }.topbar-actions { gap: 2px; }.mail-body { display: block; height: calc(100vh - 58px); }.sidebar { display: none; }.message-column { height: 44vh; border-right: 0; border-bottom: 1px solid #dce1e5; }.message-list { height: calc(44vh - 48px); }.reading-pane { height: calc(56vh - 1px); }.reading-empty { position: relative; padding-top: 20px; }
  .email-header, .email-body { padding-right: 18px; padding-left: 18px; }.email-toolbar { gap: 12px; padding: 0 12px; font-size: 12px; overflow-x: auto; white-space: nowrap; }.email-subject { font-size: 17px; }.email-attachment { align-items: flex-start; flex-direction: column; }.attachment-download { width: 100%; }
  .modal-backdrop { padding: 12px; }.modal-header { padding-right: 20px; padding-left: 20px; }.compose-form, .data-card > .modal-description, .data-import-row, .json-label, .json-input, .json-example, .data-card > .form-error { margin-right: 20px; margin-left: 20px; }.json-input { width: calc(100% - 40px); }.data-card .modal-footer { margin-right: 20px; margin-left: 20px; }.data-import-row { flex-wrap: wrap; }.text-button { margin-left: 0; }
}

/* Reference-aligned login layout and four-column message rows. */
.login-shell { display: flex; flex-direction: column; min-height: 100vh; padding: 0 22px 14px; background: #fff; }
.login-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 clamp(18px, 10vw, 140px); background: #fff; }
.login-logo { display: block; width: 198px; height: auto; }
.login-header-brand { display: inline-grid; margin: 0; }
.login-header-brand .brand-cn { color: #1c2025; }
.login-header-brand .brand-en { color: #666e78; }
.login-nav { display: flex; gap: 28px; color: #6d757c; font-size: 12px; }
.login-stage { position: relative; flex: 1; min-height: calc(100vh - 78px); overflow: hidden; }
.login-visual { height: 100%; min-height: calc(100vh - 78px); border-radius: 0; background: #27323b; }
.login-visual::after { z-index: 0; background: linear-gradient(120deg, rgba(27,33,41,.66), rgba(27,33,41,.08) 60%, rgba(27,33,41,.42)); }
.visual-copy, .visual-footer { display: none; }
.login-panel { position: absolute; z-index: 2; top: 16px; right: 11%; width: min(380px, calc(100% - 32px)); min-height: 0; border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgba(19, 25, 31, .16); }
.login-panel-inner { width: auto; margin: 0; padding: 28px 32px 30px; }
.brand-mark-dark { display: none; }
.login-header-brand { display: inline-grid; }
.login-panel-bottom { padding: 16px; font-size: 11px; }
.topbar-logo { display: block; width: 136px; height: auto; padding: 4px 8px; border-radius: 4px; background: #fff; object-fit: contain; }
.topbar-brand { min-width: 310px; gap: 10px; }
.message-item { grid-template-columns: 7px 28px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.message-main { min-width: 0; padding-top: 1px; }
.message-meta { align-self: start; }
.message-sender { font-size: 14px; line-height: 1.3; }
.message-subject { font-size: 14px; line-height: 1.35; }
.message-preview { font-size: 12px; line-height: 1.35; }

@media (max-width: 1050px) {
  .login-shell { padding: 0 14px 14px; }
  .login-header { padding: 0 18px; }
  .login-visual { display: block; }
  .login-panel { right: 6%; }
  .topbar-brand { min-width: auto; }
}

@media (max-width: 760px) {
  .login-shell { padding: 0 10px 10px; }
  .login-header { min-height: 58px; padding: 0 8px; }
  .login-header-brand .brand-cn { font-size: 19px; }
  .login-nav { gap: 12px; font-size: 11px; }
  .login-stage { min-height: calc(100vh - 68px); }
  .login-visual { display: none; }
  .login-panel { position: relative; top: auto; right: auto; width: 100%; max-width: 500px; margin: 18px auto 0; }
  .login-panel-inner { padding: 25px 24px 26px; }
  .topbar-logo { width: 118px; }
  .topbar-brand { min-width: 0; }
  .message-item { grid-template-columns: 7px 28px minmax(0, 1fr) auto; gap: 8px; min-height: 88px; padding: 12px 10px; }
  .message-sender, .message-subject { font-size: 13px; }
  .message-preview { font-size: 11px; }
}
