:root {
  color-scheme: light;
  --canvas: #f6f8fc;
  --surface: #fff;
  --search: #e9eef6;
  --read: #f2f6fc;
  --selected: #d3e3fd;
  --action: #0b57d0;
  --action-dark: #0842a0;
  --action-soft: #c2e7ff;
  --ink: #202124;
  --subtle: #444746;
  --muted: #5f6368;
  --rule: #dfe3e9;
  --edge: #747775;
  --sidebar-width: clamp(218px, 19vw, 264px);
  --top-height: 72px;
  --body-font: Roboto, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font: 15px/1.5 var(--body-font);
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: default; opacity: .42; }
input, textarea { min-width: 0; }
button, a, input, summary, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; top: 6px; left: 6px; padding: 10px 16px; z-index: 10; background: var(--surface); color: var(--action); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; align-items: center; flex: none; }
.icon-button, .button { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 8px; }
.icon-button { width: 40px; height: 40px; padding: 0; border-radius: 50%; color: var(--subtle); }
.icon-button:hover:not(:disabled) { background: rgb(60 64 67 / .09); }
.button { min-height: 40px; padding: 8px 18px; border-radius: 24px; font-size: 14px; line-height: 20px; font-weight: 550; }
.button .icon { width: 17px; height: 17px; }
.primary { color: var(--surface); background: var(--action); }
.primary:hover:not(:disabled) { background: var(--action-dark); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.secondary { color: var(--action); }
.secondary:hover:not(:disabled) { background: #edf3fe; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; line-height: 1; }
.brand strong { color: #394454; font-size: 25px; font-weight: 600; letter-spacing: .02em; }
.brand-mark { display: inline-block; width: 34px; height: 25px; position: relative; flex: none; border-radius: 5px; background: #1a73e8; isolation: isolate; overflow: hidden; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; inset: 0; }
.brand-mark::before { background: #8ab4f8; clip-path: polygon(0 0, 100% 0, 50% 69%); }
.brand-mark::after { background: #174ea6; clip-path: polygon(100% 0, 100% 100%, 50% 62%); }
.boot { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.login-page { min-height: 100svh; display: grid; place-items: center; padding: 32px; background: #eef2f9; }
.login-board { width: min(920px, 100%); display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(32px, 7vw, 84px); padding: clamp(38px, 5vw, 64px); background: var(--surface); border-radius: 28px; }
.login-identity .brand { margin-bottom: 32px; }
.login-identity .brand strong { font-size: 22px; }
.login-identity h1 { font-size: clamp(32px, 4vw, 42px); line-height: 1.25; font-weight: 500; letter-spacing: -.035em; }
.intro, .meta, .field-help { color: var(--muted); }
.login-identity .intro { margin-top: 14px; font-size: 15px; }
.login-main { padding-top: 40px; }
.login-actions { display: flex; justify-content: flex-end; margin-top: 27px; }
.login-actions .button { min-height: 44px; }
.field { display: block; margin: 18px 0 0; color: var(--subtle); font-size: 14px; font-weight: 550; }
.field:first-child { margin-top: 0; }
.field input, .field textarea, .field select { width: 100%; display: block; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--edge); background: var(--surface); border-radius: 6px; color: var(--ink); font-size: 15px; font-weight: 400; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--action); outline-offset: -2px; }
.field textarea { resize: vertical; min-height: 66px; }
.field small, .field-help { font-size: 12px; color: var(--muted); font-weight: 400; }
.form-error { margin-top: 12px; color: #b3261e; font-size: 14px; overflow-wrap: anywhere; }
.form-error:empty { margin: 0; }
#workspace { min-height: 100vh; }
.bar { position: sticky; top: 0; z-index: 3; min-height: var(--top-height); display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) auto; align-items: center; background: var(--canvas); padding-right: 24px; }
.bar-brand, .account, .search, .folder-header, .list-tools, .pagination, .nav-head, .dialog-heading, .drawer-head, .dialog-actions, .reader-top { display: flex; align-items: center; }
.bar-brand { gap: 10px; padding-left: 16px; }
.bar-brand > .icon-button { width: 42px; height: 42px; }
.bar-brand .brand { gap: 10px; }
.account { min-width: 0; margin-left: 18px; gap: 9px; }
#unread-bell { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 20px; background: #e4edfd; color: var(--action-dark); white-space: nowrap; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
#unread-bell .icon { width: 17px; height: 17px; }
.avatar, .sender-avatar { display: grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; flex: none; color: #fff; background: #425e91; font-weight: 600; text-transform: uppercase; }
#user-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--subtle); font-size: 14px; }
.account .icon-button { width: 35px; height: 35px; }
.search { gap: 14px; min-width: 0; }
.search input { flex: 1; width: 100%; border: 0; background: transparent; outline: none; padding: 0; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within { outline: 2px solid var(--action); outline-offset: -2px; }
.mail-search { width: 100%; max-width: 720px; height: 48px; padding: 0 18px; border-radius: 28px; background: var(--search); color: var(--subtle); }
.mail-search:focus-within { background: var(--surface); box-shadow: 0 1px 4px rgb(60 64 67 / .23); }
.mail-search .icon { width: 22px; height: 22px; }
.mail-search input { font-size: 16px; }
.workspace-grid { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); align-items: start; padding: 0 16px 16px 0; }
#sidebar { position: sticky; top: var(--top-height); min-width: 0; max-height: calc(100dvh - var(--top-height)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c3cad5 transparent; padding: 0 12px 20px 8px; }
#folder-nav { min-width: 0; }
.nav-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 17px 3px; }
.add-domain, .add-group { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.add-domain { height: 49px; padding: 0 12px; border-radius: 15px; color: #001d35; background: var(--action-soft); font-weight: 600; }
.add-domain:hover { background: #b5dff9; box-shadow: 0 1px 3px rgb(60 64 67 / .2); }
.add-domain .icon, .add-group .icon { width: 18px; height: 18px; }
.add-group { min-height: 44px; padding: 0 8px; border-radius: 14px; color: var(--action-dark); }
.add-group:hover { background: var(--search); }
.nav-entry { display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: 37px; text-align: left; padding: 6px 15px; border-radius: 22px; font-size: 14px; }
.nav-entry > .icon, .nav-entry > [data-icon] { flex: none; color: var(--subtle); }
.nav-entry:hover { background: #e8edf4; }
.nav-entry[aria-current='page'] { background: var(--selected); color: #001d35; font-weight: 650; }
.nav-entry[aria-current='page'] .icon { color: #0c3670; }
#all-folders { margin: 0 0 2px; }
.nav-count { margin-left: auto; padding-left: 1px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.nav-head { margin: 17px 0 2px; }
#folder-toggle { display: flex; align-items: center; width: 100%; gap: 9px; min-height: 44px; padding: 0 15px; border-radius: 22px; text-align: left; font-size: 14px; font-weight: 600; }
#folder-toggle:hover { background: #e8edf4; }
#folder-toggle .icon { width: 16px; height: 16px; color: var(--subtle); }
#folder-toggle[aria-expanded='true'] .icon { transform: rotate(90deg); }
.folder-total { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.search.compact { gap: 8px; background: #edf1f7; color: var(--muted); border-radius: 18px; margin: 4px 7px 8px; padding: 0 11px; height: 33px; }
.search.compact .icon { width: 16px; height: 16px; }
.search.compact input { font-size: 13px; }
.nav-copy { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.domain-section + .domain-section { margin-top: 2px; }
.section-toggle { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 36px; padding: 5px 15px; text-align: left; color: var(--subtle); border-radius: 20px; font-size: 13px; font-weight: 600; }
.section-toggle:hover { background: #e8edf4; }
.section-heading { display: flex; align-items: center; }
.section-heading .section-toggle { flex: 1; min-width: 0; }
.section-heading:has(.group-actions) .section-toggle { padding-right: 4px; }
.section-toggle[aria-expanded='true'] > .icon { transform: rotate(90deg); }
.section-folders { padding-left: 12px; }
.section-folders .nav-note { margin: 2px 0 8px 29px; }
.domain-row { display: flex; align-items: center; border-radius: 22px; }
.domain-row:hover, .domain-row:focus-within { background: #e8edf4; }
.domain-row:has([aria-current='page']) { background: var(--selected); }
#domain-list .nav-entry { flex: 1; padding: 5px 4px 5px 13px; gap: 8px; background: transparent; }
.sidebar-actions { width: 32px; height: 32px; }
.sidebar-actions .icon { stroke-width: 3.3; }
.sidebar-actions[aria-expanded='true'] { background: #d5dfec; color: var(--action-dark); }
#folder-menu { position: fixed; inset: auto; margin: 0; padding: 4px; border: 1px solid var(--rule); border-radius: 11px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px rgb(32 33 36 / .18); }
#folder-menu button { display: flex; align-items: center; gap: 10px; min-height: 36px; width: 100%; padding: 6px 12px; font-size: 14px; border-radius: 7px; white-space: nowrap; }
#folder-menu button:hover, #folder-menu button:focus-visible { background: var(--search); }
#delete-group-action, #delete-domain-action { color: #b3261e; }
#domain-list .icon { width: 17px; height: 17px; }
.nav-entry.domain-tone-0 > .icon { color: #3f779f; }
.nav-entry.domain-tone-1 > .icon { color: #596caa; }
.nav-entry.domain-tone-2 > .icon { color: #4d7d70; }
.nav-entry.domain-tone-3 > .icon { color: #996142; }
.nav-entry.domain-tone-4 > .icon { color: #82629a; }
.nav-note { margin: 8px 15px; color: var(--muted); font-size: 13px; }
main { min-width: 0; min-height: calc(100dvh - var(--top-height) - 16px); background: var(--surface); border-radius: 17px; }
#list-pane, #reader { min-width: 0; }
.folder-header { gap: 16px; justify-content: space-between; min-height: 66px; padding: 12px 18px 8px 25px; }
.folder-heading { min-width: 0; }
.folder-heading h1 { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.folder-heading .intro { margin: 3px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.list-tools { justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.list-tools .meta { padding: 0 6px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-tools .button { padding: 7px 10px; }
.pagination { gap: 1px; }
.pagination .icon-button { width: 32px; height: 32px; }
#filters { display: flex; border-bottom: 1px solid var(--rule); padding: 0 13px; }
#filters button { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 20px; flex: 1 1 0; max-width: 190px; height: 49px; color: var(--subtle); font-size: 14px; font-weight: 550; white-space: nowrap; }
#filters button .icon { width: 19px; height: 19px; }
#filters button:hover { background: var(--canvas); }
#filters button[aria-pressed='true'] { color: var(--action); }
#filters button[aria-pressed='true']::after { content: ''; position: absolute; bottom: -1px; left: 11px; right: 11px; height: 3px; background: var(--action); border-radius: 3px 3px 0 0; }
#trash-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 16px; border-bottom: 1px solid var(--rule); }
.trash-tabs { display: flex; gap: 4px; }
.trash-tabs button { min-height: 40px; padding: 5px 16px; font-size: 14px; border-radius: 20px; }
.trash-tabs button[aria-pressed='true'] { color: var(--action-dark); background: var(--selected); font-weight: 600; }
#trash-domain { max-width: min(300px,100%); min-width: 0; height: 38px; padding: 2px 8px; color: var(--subtle); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.trash-group-row, .trash-domain-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--rule); }
.trash-group-row > .icon, .trash-domain-row > .icon { color: var(--muted); }
.trash-domain-info { color: var(--subtle); font-size: 13px; }
.trash-group-info { display: grid; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.trash-group-info small { color: var(--muted); }
.mail-row { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; padding-inline: 5px; background: var(--read); border-bottom: 1px solid #e0e5ed; }
.mail-row:has(.message.unread) { background: var(--surface); }
.mail-row:hover, .mail-row:focus-within { z-index: 1; box-shadow: 0 1px 3px rgb(60 64 67 / .22); }
.pin-toggle { width: 33px; height: 36px; color: #737d88; }
.pin-toggle .icon { width: 17px; height: 17px; }
.mail-trash-action { width: 33px; height: 36px; color: var(--muted); }
.mail-trash-action .icon { width: 17px; height: 17px; }
.trash-spacer { width: 14px; }
.mail-trash-action[aria-disabled='true'], .trash-group-row button[aria-disabled='true'], .trash-domain-row button[aria-disabled='true'] { cursor: progress; opacity: .6; }
.pin-toggle[aria-pressed='true'] { color: #b3261e; }
.pin-toggle[aria-pressed='true'] .icon { fill: currentColor; }
.pin-toggle[aria-disabled='true'] { cursor: progress; opacity: .6; }
.message { position: relative; width: 100%; display: grid; grid-template-columns: 8px minmax(110px, .85fr) minmax(160px, 2.45fr) auto max-content; align-items: center; gap: 14px; min-height: 50px; text-align: left; padding: 5px 24px 5px 4px; line-height: 1.35; }
.message:focus-visible { outline-offset: -2px; }
.read-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.unread .read-dot { background: var(--action); }
.sender-block, .subject-block { min-width: 0; }
.sender-block { display: grid; }
.sender-line, .row-recipient, .subject-block { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sender-line, .subject-line { font-size: 14px; }
.row-recipient { font-size: 11px; color: var(--muted); }
.message.unread .sender-line, .message.unread .subject-line, .message.unread time { font-weight: 650; }
.excerpt { color: var(--muted); font-size: 14px; }
.excerpt:not(:empty)::before { content: ' — '; }
.message-time { justify-self: end; min-width: 40px; color: var(--subtle); white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.message-status { display: inline-flex; align-items: center; justify-self: end; gap: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.message-status .icon { width: 13px; height: 13px; }
.message-status.handled { color: #196548; }
.empty { display: grid; justify-items: center; align-content: center; text-align: center; min-height: clamp(245px, 43vh, 420px); padding: 32px 20px; }
.folder-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--action); background: #e8f0fe; }
.empty .folder-icon { width: 58px; height: 58px; border-radius: 21px; margin-bottom: 18px; }
.empty .folder-icon .icon { width: 27px; height: 27px; }
.empty h3 { font-weight: 500; font-size: 18px; }
.empty p { max-width: 43ch; margin-top: 6px; color: var(--muted); font-size: 14px; }
.empty .button { margin-top: 12px; }
#reader { padding: 13px 24px 38px; }
.reader-top { justify-content: space-between; gap: 8px; margin: 0 0 19px; }
.reader-actions { display: flex; align-items: center; gap: 6px; }
.reader-back { margin-left: -6px; }
.reader-subject { margin: 0 0 20px 52px; font-weight: 450; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.35; overflow-wrap: anywhere; }
.reader-envelope { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: start; gap: 12px; }
.sender-avatar { width: 40px; height: 40px; background: #d6e3fb; color: #254879; font-size: 17px; }
.reader-sender { display: block; overflow-wrap: anywhere; font-size: 15px; font-weight: 650; }
.reader-address, .reader-date { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.reader-date { padding-top: 3px; text-align: right; }
.reader-state { margin: 8px 0 0 52px; color: var(--muted); font-size: 12px; }
.mail-body { margin: 22px 0 30px 52px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.attachments { margin-left: 52px; border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.attachments h2 { flex-basis: 100%; font-size: 14px; font-weight: 600; }
.attachment { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 15px; border-radius: 10px; border: 1px solid #c4c7c5; color: var(--action); text-decoration: none; overflow-wrap: anywhere; }
.attachment small { white-space: nowrap; color: var(--muted); }
.attachment:hover { background: var(--canvas); }
dialog { border: 0; border-radius: 24px; padding: 26px; width: min(465px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); box-shadow: 0 10px 32px rgb(32 33 36 / .22); }
dialog::backdrop { background: rgb(28 31 35 / .40); }
.dialog-heading, .drawer-head { justify-content: space-between; gap: 12px; }
.dialog-heading { margin-bottom: 12px; }
#editor-title, #group-title, #move-title, #delete-group-title, #delete-domain-title { font-size: 24px; font-weight: 500; overflow-wrap: anywhere; }
#move-context, #delete-group-description, #delete-domain-impact { font-size: 14px; margin: 6px 0 18px; overflow-wrap: anywhere; }
#delete-domain-summary { margin: 10px 0; font-size: 14px; overflow-wrap: anywhere; }
.danger { color: #fff; background: #b3261e; }
.danger:hover:not(:disabled) { background: #8c1d18; }
#editor-intro { font-size: 14px; margin: 4px 0 20px; }
.dialog-actions { justify-content: flex-end; gap: 6px; margin-top: 22px; }
.existing { margin: 15px 0; }
.existing strong { font-size: 14px; }
.existing ul { max-height: 140px; overflow: auto; padding: 0; margin: 4px 0; list-style: none; }
.existing li { color: var(--subtle); font-size: 13px; overflow-wrap: anywhere; }
.field-help { margin-top: 6px; }
details { padding: 10px 14px; background: var(--read); border-radius: 10px; font-size: 13px; margin-top: 14px; }
details p { margin: 6px 0 0; overflow-wrap: anywhere; }
summary { color: var(--subtle); font-weight: 600; }
.toast:not(:empty) { position: fixed; left: 24px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 8; max-width: calc(100% - 48px); border-radius: 8px; background: #303133; color: #fff; padding: 12px 18px; box-shadow: 0 3px 8px rgb(0 0 0 / .2); }
#drawer { margin: 0 auto 0 0; padding: 15px 12px 24px; width: min(310px, 88vw); height: 100dvh; max-height: 100dvh; border-radius: 0 18px 18px 0; background: var(--canvas); }
.drawer-head { margin: 0 3px 16px 12px; }
@media (min-width: 721px) {
  .navigation-hidden .workspace-grid { grid-template-columns: minmax(0,1fr); padding-left: 16px; }
  .navigation-hidden #sidebar { display: none; }
}
@media (min-width: 721px) and (max-width: 999px) {
  :root { --sidebar-width: 205px; }
  .add-group [data-icon] { display: none; }
  .bar { padding-right: 12px; }
  .account { gap: 5px; margin-left: 10px; }
  #user-name { display: none; }
  .message { grid-template-columns: 6px minmax(100px, .9fr) minmax(120px, 1.7fr) auto auto; gap: 8px; padding-inline: 3px 12px; }
  .list-tools { gap: 0; }
}
@media (max-width: 720px) {
  :root { --top-height: 64px; }
  .login-page { padding: 16px; }
  .login-board { width: min(100%, 460px); padding: 32px 25px; grid-template-columns: minmax(0,1fr); gap: 23px; border-radius: 23px; }
  .login-identity .brand { margin-bottom: 21px; }
  .login-identity .intro { margin-top: 9px; }
  .login-main { padding: 0; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .bar { grid-template-columns: auto minmax(0,1fr) auto; gap: 6px; padding: 5px 7px; min-height: var(--top-height); }
  .bar-brand { padding: 0; gap: 0; }
  .bar-brand .brand, #user-name { display: none; }
  .bar-brand > .icon-button, .icon-button, .account .icon-button, .pagination .icon-button { min-width: 44px; min-height: 44px; }
  .account { gap: 0; margin: 0; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }
  .mail-search { height: 45px; padding: 0 12px; gap: 8px; }
  .mail-search .icon { width: 19px; height: 19px; }
  .workspace-grid { display: block; padding: 0; }
  #sidebar { display: none; }
  main { min-height: calc(100dvh - var(--top-height)); border-radius: 16px 16px 0 0; }
  .folder-header { padding: 9px 10px 5px 16px; gap: 6px; min-height: 55px; }
  .folder-heading h1 { font-size: 21px; }
  .folder-heading .intro { font-size: 11px; }
  .list-tools { flex: none; gap: 0; }
  .list-tools .meta { padding: 0 4px; font-size: 12px; }
  .list-tools .button { width: 44px; height: 44px; padding: 0; }
  .manage-label { display: none; }
  #filters { padding: 0 5px; }
  #filters button { justify-content: center; gap: 5px; min-height: 44px; padding: 0 3px; height: 45px; font-size: 13px; }
  #filters button .icon { width: 16px; height: 16px; }
  #filters button[aria-pressed='true']::after { left: 6px; right: 6px; }
  .nav-entry, .section-toggle, #folder-menu button { min-height: 44px; }
  .search.compact { min-height: 44px; }
  .mail-row { padding-left: 1px; }
  .message { grid-template-columns: 6px minmax(0,1fr) auto; grid-template-areas: 'dot sender date' '. subject subject' '. recipient status'; gap: 2px 8px; padding: 9px 15px 10px 0; align-items: center; }
  .read-dot { grid-area: dot; }
  .sender-block { display: contents; }
  .sender-line { grid-area: sender; }
  .row-recipient { grid-area: recipient; }
  .subject-block { grid-area: subject; }
  .message-time { grid-area: date; }
  .message-status { grid-area: status; }
  .message-status, .row-recipient { font-size: 11px; }
  .sender-line, .subject-line, .excerpt { font-size: 14px; }
  #reader { padding: 9px 16px 26px; }
  .reader-subject, .reader-state, .mail-body, .attachments { margin-left: 0; }
  .reader-subject { margin-bottom: 17px; }
  .reader-envelope { grid-template-columns: 34px minmax(0,1fr); gap: 0 9px; }
  .reader-date { grid-column: 2; text-align: left; }
  .sender-avatar { width: 34px; height: 34px; font-size: 15px; }
  .reader-state { margin-left: 43px; }
  .reader-top { margin-bottom: 15px; flex-wrap: wrap; }
  .reader-actions { margin-left: auto; gap: 2px; }
  .trash-tabs button, #trash-domain { min-height: 44px; }
  .reader-top .button, .dialog-actions .button, .add-domain { min-height: 44px; }
  .mail-body { margin-top: 19px; }
}
@media (max-width: 390px) {
  .list-tools { flex-wrap: wrap; flex: 0 1 auto; }
}
@media (forced-colors: active) {
  .read-dot { forced-color-adjust: none; }
  .unread .read-dot, #filters button[aria-pressed='true']::after { background: Highlight; }
  .nav-entry[aria-current='page'] { outline: 1px solid Highlight; }
}
