/* A quiet correspondence workspace. All assets are served locally. */
:root {
  --ink: #253045; --muted: #647084; --faint: #8690a1;
  --line: #e3e7ee; --surface: #fff; --canvas: #fafbfc; --sidebar: #f0f3f8;
  --accent: #315bc3; --accent-hover: #264baf; --accent-soft: #e4ebfa;
  --danger: #aa3843; --danger-soft: #fff3f3; --focus: #7296ef;
  --font: "Aptos", "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --reading: "Charter", "Songti SC", "STSong", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea, label.attachment-picker { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, input, textarea { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--accent); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.primary, .secondary { border: 0; border-radius: 8px; padding: 11px 17px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; }
.primary { background: var(--accent); color: #fff; }
.primary:hover:enabled { background: var(--accent-hover); }
.secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.secondary:hover:enabled { background: var(--sidebar); }
.icon-button { border: 0; background: transparent; color: var(--muted); width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; padding: 0; flex: 0 0 auto; }
.icon-button:hover:enabled, .toolbar-button:hover:enabled { background: var(--sidebar); color: var(--ink); }
.text-button { border: 0; background: none; color: var(--accent); padding: 5px 1px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.text-button:hover:enabled { text-decoration: underline; }
.inline-error { font-size: 13px; line-height: 1.7; color: var(--danger); background: var(--danger-soft); border-radius: 6px; padding: 10px 12px; margin: 14px 0; overflow-wrap: anywhere; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.brand-mark .icon { width: 21px; height: 21px; }
.boot { min-height: 100svh; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--muted); }
.spinner { display: inline-block; width: 19px; height: 19px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login has room to breathe without introducing a separate visual language. */
.login-view { min-height: 100svh; display: grid; grid-template-columns: minmax(350px, 1fr) minmax(450px, 1.1fr); }
.login-intro { background: #edf1f8; padding: clamp(36px, 6vw, 90px); display: flex; flex-direction: column; }
.login-message { margin: auto 0; padding: 65px 0; }
.login-message h1 { font-weight: 500; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.45; letter-spacing: -.04em; margin: 24px 0; }
.login-message p { font-size: 16px; color: var(--muted); line-height: 1.9; }
.login-footnote { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.fine-rule { width: 31px; height: 1px; background: #acb9d0; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px; background: #fff; }
.login-form { width: 100%; max-width: 345px; }
.login-form h2 { font-size: 27px; font-weight: 600; letter-spacing: -.035em; margin: 14px 0 7px; }
.form-description { color: var(--muted); margin: 0 0 33px; }
.login-form label { display: block; font-weight: 600; font-size: 13px; margin: 20px 0 8px; }
.login-form input { width: 100%; height: 46px; border: 1px solid #d6dce7; border-radius: 7px; padding: 10px 13px; color: var(--ink); background: var(--canvas); }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-field .icon-button { position: absolute; right: 4px; top: 4px; }
.login-submit { width: 100%; margin-top: 27px; height: 46px; }
.login-privacy { text-align: center; color: var(--muted); font-size: 11px; margin: 18px 0 0; }

/* The shell: navigation, scan, then read. */
.mail-app { display: grid; grid-template-columns: 214px minmax(0, 1fr); height: 100svh; overflow: hidden; }
.skip-link { position: fixed; left: 240px; top: -70px; z-index: 100; padding: 10px 20px; color: #fff; background: var(--accent); border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--sidebar); padding: 27px 16px 18px; border-right: 1px solid var(--line); }
.sidebar-brand { margin: 0 6px 31px; display: flex; justify-content: space-between; align-items: center; }
.compose-open { width: 100%; justify-content: flex-start; padding-left: 23px; height: 45px; }
.sidebar-caption { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; margin: 32px 12px 12px; }
.folder-list { overflow-y: auto; min-height: 100px; }
.folder-button { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: transparent; padding: 11px 12px; border-radius: 7px; color: #536077; text-align: left; margin: 2px 0; font-size: 13px; }
.folder-button:hover { background: #e6ebf3; }
.folder-button[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.folder-button span.folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-count { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); padding-left: 6px; }
.folder-button[aria-current="page"] .folder-count { color: var(--accent); }
.sidebar-error { font-size: 12px; color: var(--danger); padding: 0 12px; }
.sidebar-bottom { margin-top: auto; padding: 28px 7px 0; }
.account { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.account > div { min-width: 0; }
.account-avatar { border: 1px solid #d5ddea; background: #e4eaf5; color: #596d94; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: 0 0 auto; }
.account-caption { color: var(--muted); font-size: 10px; display: block; }
.account-email { display: block; color: #435169; font-size: 11px; max-width: 142px; overflow: hidden; text-overflow: ellipsis; }
.logout-button { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; border: 0; background: none; padding: 5px 0; }
.logout-button .icon { width: 16px; height: 16px; }
.logout-button:hover { color: var(--accent); }
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.workspace-header { display: flex; justify-content: space-between; align-items: center; padding: 23px 28px 18px; min-height: 92px; border-bottom: 1px solid var(--line); background: #fff; }
.workspace-heading, .header-actions { display: flex; align-items: center; gap: 10px; }
.workspace-header h1 { font-size: 22px; font-weight: 650; letter-spacing: -.03em; line-height: 1.3; margin: 0; }
.folder-summary { color: var(--muted); font-size: 11px; margin: 6px 0 0; }
.connection-banner { padding: 8px 20px; background: #fff5df; color: #735a22; font-size: 12px; border-bottom: 1px solid #efdfbd; }
.mail-columns { display: grid; grid-template-columns: 350px minmax(0, 1fr); flex: 1; min-height: 0; }
.list-pane { border-right: 1px solid var(--line); background: #fff; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.search-field { margin: 15px 16px 13px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #f8f9fb; color: var(--faint); padding: 0 10px; min-height: 38px; gap: 8px; }
.search-field:focus-within { border-color: #adc0ed; box-shadow: 0 0 0 2px var(--accent-soft); }
.search-field > .icon { width: 16px; height: 16px; }
.search-field input { border: 0; background: none; color: var(--ink); width: 100%; min-width: 0; height: 37px; font-size: 12px; }
.search-field input:focus-visible { outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field .icon-button { width: 25px; height: 27px; }
.search-field .icon-button .icon { width: 15px; height: 15px; }
.message-list { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding: 0 0 8px; }
.message-row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; color: var(--ink); position: relative; padding: 17px 21px 17px 23px; }
.message-row:hover { background: #f7f9fc; }
.message-row[aria-current="true"] { background: #edf2fc; }
.message-row[aria-current="true"]::before { position: absolute; content: ""; top: 0; bottom: 0; left: 0; width: 3px; background: var(--accent); }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.row-sender { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-date { font-size: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-subject { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13px; margin-bottom: 5px; }
.row-subject > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-subject .icon { width: 13px; height: 13px; margin-left: auto; color: var(--muted); }
.message-row.unread .row-sender, .message-row.unread .row-subject { font-weight: 700; }
.unread-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); top: 25px; left: 10px; }
.row-preview { color: var(--muted); font-size: 11px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.7; }
.pagination { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 7px 15px 7px 20px; min-height: 51px; background: #fff; }
.pagination > span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.pagination > div { display: flex; gap: 4px; }
.pagination .icon-button { width: 32px; height: 32px; }
.pane-state { display: flex; flex: 1; min-height: 160px; padding: 42px 25px; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); gap: 13px; }
.pane-state h2 { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.pane-state p { margin: 0; font-size: 12px; max-width: 28em; overflow-wrap: anywhere; }
.pane-state > .icon { width: 32px; height: 32px; color: #a3aec1; margin-bottom: 5px; }
.pane-state .secondary { margin-top: 5px; font-size: 12px; }

.reader-pane { display: flex; min-width: 0; min-height: 0; background: #fff; position: relative; }
.reader-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; width: 100%; background: #fcfcfd; padding: 35px; }
.letter-outline { display: grid; place-items: center; width: 76px; height: 67px; margin-bottom: 26px; color: #a9b5cc; }
.letter-outline .icon { width: 68px; height: 68px; stroke-width: .7; }
.reader-empty h2 { font-family: var(--reading); font-size: 20px; font-weight: 400; margin: 0 0 12px; color: #536179; }
.reader-empty p { font-size: 12px; color: var(--faint); margin: 0; }
.reader { display: flex; width: 100%; min-width: 0; min-height: 0; flex-direction: column; }
.reader-toolbar { min-height: 65px; padding: 12px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.reader-primary-actions, .reader-secondary-actions { display: flex; align-items: center; gap: 5px; }
.toolbar-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; min-height: 36px; padding: 6px 10px; font-size: 11px; white-space: nowrap; }
.toolbar-button .icon { width: 17px; height: 17px; }
.danger-text { border: 0; color: var(--danger); background: none; font-size: 11px; border-radius: 6px; padding: 7px; }
.danger-text:hover:enabled { background: var(--danger-soft); }
.reader-back { display: none; }
.reader-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 32px clamp(25px, 3vw, 54px) 35px; overscroll-behavior: contain; }
.message-header { margin-bottom: 28px; }
.message-header > .eyebrow { color: var(--faint); margin: 0 0 12px; font-size: 10px; }
.message-header h2 { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.5; letter-spacing: -.035em; font-weight: 600; margin: 0 0 27px; overflow-wrap: anywhere; }
.sender-line { display: flex; align-items: center; gap: 11px; }
.sender-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; background: #edf1f8; color: #6b7d9b; border-radius: 50%; font-size: 13px; }
.sender-detail { flex: 1; min-width: 0; }
.sender-detail strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.sender-address { display: block; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.sender-line time { font-size: 10px; color: var(--muted); text-align: right; line-height: 1.7; margin-left: auto; max-width: 125px; flex: 0 0 auto; }
.recipient-line { display: flex; align-items: baseline; gap: 11px; font-size: 10px; color: var(--muted); margin-top: 12px; padding-left: 46px; }
.recipient-line > span:first-child { white-space: nowrap; color: var(--faint); }
.recipient-line > span:last-child { overflow-wrap: anywhere; }
.body-format-control { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 10px 0 16px; color: var(--faint); font-size: 10px; gap: 14px; }
.body-format-control .text-button { font-size: 10px; }
.message-body { font-family: var(--reading); font-size: 16px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; padding: 5px 0 35px; color: #344057; }
.message-body.no-body { font-family: var(--font); font-size: 13px; color: var(--muted); }
.message-html { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 5px; background: white; margin-bottom: 26px; }
.message-attachments { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 8px; }
.message-attachments h3 { margin: 0 0 13px; font-size: 11px; font-weight: 600; }
.message-attachments h3 span { color: var(--faint); font-weight: 400; margin-left: 6px; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-link { text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; min-width: 160px; max-width: 100%; color: var(--ink); }
.attachment-link:hover { background: var(--canvas); border-color: #beccea; }
.attachment-link > .icon:first-child { color: #7789a9; }
.attachment-link > .icon:last-child { width: 15px; height: 15px; color: var(--muted); margin-left: 10px; }
.attachment-meta { min-width: 0; flex: 1; }
.attachment-name { display: block; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.attachment-size { display: block; font-size: 10px; color: var(--muted); }
.reader-footer { padding-top: 33px; }
.reader-footer button { font-size: 11px; }
.reader-action-error { margin-bottom: 25px; }
.mobile-only, .sidebar-backdrop { display: none; }

/* A draft stays in page memory. The dialog can be folded away, never auto-sent. */
.compose-dialog { width: min(750px, calc(100vw - 64px)); max-width: none; max-height: calc(100svh - 64px); border: 1px solid #dce2ec; border-radius: 12px; padding: 0; color: var(--ink); box-shadow: 0 18px 80px #1c29442b; background: #fff; }
.compose-dialog::backdrop { background: #202d465e; backdrop-filter: blur(2px); }
.compose-form { display: flex; flex-direction: column; max-height: calc(100svh - 68px); }
.compose-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 20px; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.compose-header .eyebrow { font-size: 9px; color: var(--faint); }
.compose-header h2 { font-size: 18px; letter-spacing: -.03em; font-weight: 600; margin: 4px 0 0; }
.compose-fields { padding: 0 26px; }
.address-field { display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 16px; min-height: 46px; }
.address-field label { width: 42px; flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.address-field input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 12px 0; font-size: 12px; }
.address-field input:focus-visible { outline: none; }
.address-field:focus-within { border-bottom-color: var(--accent); }
.address-field .text-button { font-size: 10px; }
.compose-text { border: 0; border-radius: 0; resize: vertical; min-height: 220px; max-height: 55svh; width: 100%; padding: 24px 26px; color: #344057; line-height: 1.9; font-family: var(--reading); font-size: 16px; flex: 1; background: #fff; }
.compose-text:focus-visible { outline: none; box-shadow: inset 3px 0 var(--accent-soft); }
.compose-text::placeholder { color: #a2a9b6; }
.compose-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 25px 5px; border-top: 1px solid var(--line); gap: 12px; }
.compose-send-actions, .compose-draft-actions { display: flex; gap: 13px; align-items: center; }
.compose-footer .primary { font-size: 12px; padding: 10px 15px; }
.compose-footer .primary .icon { width: 16px; height: 16px; }
.draft-note { font-size: 10px; color: var(--faint); }
.compose-privacy { color: var(--faint); margin: 5px 26px 17px; font-size: 10px; line-height: 1.6; }
.attachment-picker { cursor: pointer; }
.attachment-picker.disabled { opacity: .4; cursor: not-allowed; }
.attachment-picker:focus-within { outline: 3px solid var(--focus); }
.compose-attachments { padding: 0 26px; overflow-y: auto; max-height: 130px; flex: 0 0 auto; }
.upload-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 11px; border-top: 1px solid #f0f2f6; }
.upload-row .icon { width: 15px; height: 15px; color: var(--muted); }
.upload-row > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.upload-row small { color: var(--muted); font-size: 10px; margin-left: 8px; }
.upload-row .icon-button { width: 28px; height: 28px; }
.upload-row.error > span, .upload-row.error small { color: var(--danger); }
.upload-row .spinner { width: 13px; height: 13px; }
.compose-error { margin: 10px 26px; }
.compose-status { padding: 13px 26px; font-size: 12px; background: #fff6e3; color: #77571c; border-bottom: 1px solid #eee2c5; }
.compose-status.info { background: #eef3fb; color: #45628b; border-bottom-color: #dfe8f6; }
.compose-form.submission-pending .compose-text, .compose-form.submission-pending .compose-fields { background: #fafbfc; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 80px); transform: translateX(-50%); color: #fff; background: #33435f; border: 1px solid #ffffff30; border-radius: 8px; padding: 12px 18px; font-size: 12px; max-width: min(480px, calc(100vw - 40px)); box-shadow: 0 8px 28px #25304522; z-index: 20; overflow-wrap: anywhere; }
.mail-document { margin: 20px; color: #344057; background: #fff; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.mail-document table { max-width: 100%; }
.mail-document pre { white-space: pre-wrap; }

@media (min-width: 1500px) { .mail-columns { grid-template-columns: 390px minmax(0, 1fr); } .reader-scroll { padding-left: 58px; padding-right: 58px; } }
@media (max-width: 1180px) { .mail-app { grid-template-columns: 195px minmax(0, 1fr); } .mail-columns { grid-template-columns: 310px minmax(0, 1fr); } .sidebar { padding-left: 12px; padding-right: 12px; } .reader-toolbar { padding: 10px 13px; } .toolbar-button { padding: 5px 6px; } .reader-scroll { padding: 27px 25px; } .sender-line { flex-wrap: wrap; } .sender-line time { width: 100%; max-width: none; text-align: left; margin-left: 46px; } }
@media (max-width: 1000px) {
  .mail-columns { display: flex; }
  .list-pane { flex: 1; border-right: 0; }
  .reader-pane { display: none; flex: 1; }
  .workspace.reading .list-pane { display: none; }
  .workspace.reading .reader-pane { display: flex; }
  .reader-back { display: inline-flex; }
  .message-row { padding: 18px 26px; }
  .reader-scroll { padding: 30px clamp(25px, 5vw, 60px); }
  .sender-line time { width: auto; max-width: 170px; margin-left: auto; text-align: right; }
  .reader-toolbar { padding: 10px 20px; }
  .row-preview { -webkit-line-clamp: 1; }
}
@media (max-width: 720px) {
  .login-view { grid-template-columns: 1fr; }
  .login-intro { padding: 29px 29px 20px; }
  .login-message { padding: 31px 0 10px; margin: 0; }
  .login-message .eyebrow, .login-message p, .login-footnote { display: none; }
  .login-message h1 { font-size: 26px; margin: 0; line-height: 1.5; }
  .login-message h1 br { display: none; }
  .login-form-wrap { padding: 35px 29px 45px; align-items: flex-start; }
  .login-form { max-width: 430px; }
  .login-form > .eyebrow { display: none; }
  .login-form h2 { font-size: 23px; margin-top: 0; }
  .form-description { margin-bottom: 26px; }
  .mail-app { display: block; }
  .workspace { height: 100svh; }
  .sidebar { position: fixed; z-index: 31; left: 0; top: 0; bottom: 0; width: 268px; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 14px 0 48px #1c294422; padding: 25px 19px 25px; }
  .mail-app.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { display: block; border: 0; position: fixed; inset: 0; z-index: 30; background: #202d466b; }
  .sidebar-brand { margin-right: 0; }
  .sidebar-caption { margin-top: 27px; }
  .folder-button { padding: 13px 13px; }
  .account-email { max-width: 185px; }
  .mobile-only { display: inline-flex; }
  .icon-button { min-width: 44px; min-height: 44px; }
  .toolbar-button { min-height: 44px; }
  .workspace-header { min-height: 83px; padding: 17px 15px 13px 10px; }
  .workspace-header h1 { font-size: 21px; }
  .workspace-heading { gap: 9px; }
  .header-actions { gap: 1px; }
  .search-field { margin: 12px 15px; min-height: 40px; }
  .search-field input { height: 39px; font-size: 13px; }
  .message-row { padding: 17px 21px 17px 24px; }
  .row-sender { font-size: 13px; }
  .row-subject { font-size: 14px; }
  .row-preview { font-size: 12px; }
  .row-date { font-size: 11px; }
  .message-row .unread-dot { left: 11px; }
  .pagination { padding: 8px 15px 8px 22px; }
  .pagination > span { font-size: 11px; }
  .pagination .icon-button { width: 38px; height: 38px; }
  .reader-toolbar { padding: 8px 9px; gap: 4px; }
  .reader-primary-actions, .reader-secondary-actions { gap: 1px; }
  .toolbar-button { font-size: 11px; padding: 7px 6px; }
  .reader-scroll { padding: 24px 23px 30px; }
  .message-header h2 { font-size: 23px; margin-bottom: 24px; }
  .sender-line { gap: 10px; }
  .sender-detail strong { font-size: 13px; }
  .sender-address { font-size: 11px; }
  .sender-line time { font-size: 11px; width: 100%; max-width: none; text-align: left; margin-left: 45px; }
  .recipient-line { font-size: 11px; padding-left: 45px; }
  .message-body { font-size: 17px; }
  .message-html { height: 65svh; }
  .reader-footer button { font-size: 12px; }
  .skip-link { left: 14px; }
  .compose-dialog { width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border: 0; border-radius: 0; }
  .compose-form { height: 100svh; max-height: 100svh; }
  .compose-header { padding: 18px 20px 16px; }
  .compose-header h2 { font-size: 19px; }
  .compose-fields { padding: 0 20px; }
  .address-field { gap: 10px; }
  .address-field input { font-size: 14px; min-height: 49px; }
  .address-field label { font-size: 12px; }
  .address-field .text-button { font-size: 11px; }
  .address-field input::placeholder { font-size: 12px; }
  .compose-text { min-height: 150px; max-height: none; resize: none; padding: 19px 20px; font-size: 17px; }
  .compose-footer { padding: 12px 18px 4px; }
  .compose-footer .primary { font-size: 13px; }
  .compose-send-actions, .compose-draft-actions { gap: 7px; }
  .draft-note { font-size: 9px; }
  .compose-privacy { margin: 7px 20px 14px; padding-bottom: env(safe-area-inset-bottom); }
  .compose-attachments { padding: 0 20px; max-height: 100px; }
  .compose-error { margin: 8px 20px; }
  .compose-status { padding: 11px 20px; }
  .toast { left: 50%; bottom: 22px; }
}
@media (max-width: 390px) { .reader-toolbar { align-items: flex-start; } .reader-secondary-actions { margin-left: auto; } .draft-note { display: none; } .address-field label { width: 37px; } .toolbar-button { padding-left: 4px; padding-right: 4px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
