:root{font-family:"Inter",system-ui,sans-serif;color:#1d2944;background:#eff4ff;--blue:#2f60ec;--muted:#5e6b84;--line:#e8edf6;--soft:#eef3ff}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.symbols{display:none}h1,h2,p{margin:0}.app{min-height:100dvh;display:grid;grid-template-columns:229px minmax(0,1fr);max-width:1800px;margin:auto}aside{display:flex;flex-direction:column;padding:27px 18px 18px;gap:26px;min-height:100dvh}.brand{display:flex;align-items:center;gap:11px;padding-left:9px;font-size:23px;letter-spacing:-.8px;font-weight:750}.logo{background:linear-gradient(145deg,#6287ff,#2457ea);box-shadow:0 5px 12px #2f60ec38;color:white;border-radius:11px;display:grid;place-items:center;width:36px;height:36px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:10px;background:var(--blue);color:white;padding:11px 16px;font-weight:650;box-shadow:0 4px 12px #2f60ec25}.primary:hover{background:#234fd5}.compose{width:100%;min-height:45px}nav,.side-bottom{display:grid;gap:4px}nav button,#install{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:10px 11px;min-height:43px;border-radius:9px;color:#485875;font-size:.9rem}nav button:hover,#install:hover,.icon:hover{background:#e6edff}nav button.active{background:#dce7ff;color:#244fc7;font-weight:700}nav .count{margin-left:auto;font-size:.8rem}.side-bottom{margin-top:auto}.profile{display:flex;align-items:center;gap:10px;margin-top:8px;padding:13px 4px 2px;border-top:1px solid #dce5f7;font-size:.83rem}.profile small{display:block;color:var(--muted);margin-top:2px}.avatar{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:13px;font-size:.78rem;font-weight:750}.violet{color:#6538a7;background:#eee4ff}.blue{color:#2454ad;background:#e0ebff}.mint{color:#14715a;background:#daf4eb}.peach{color:#9a4b27;background:#ffebdc}.pink{color:#a23e6f;background:#fce6f2}main{min-width:0;padding:16px 16px 16px 0;display:flex;flex-direction:column}.top{display:flex;align-items:center;gap:14px;min-height:58px;padding:0 6px 13px}.search{display:flex;align-items:center;gap:10px;color:var(--muted);background:#fff;border:1px solid #e1e8f6;border-radius:10px;padding:8px 12px;width:min(100%,430px)}.search input{min-width:0;flex:1;border:0;background:none;color:inherit;outline:none}.search:focus-within{border-color:var(--blue)}kbd{border:1px solid #e6ebf4;border-radius:4px;padding:1px 6px;color:var(--muted)}.workspace{margin-left:auto;color:var(--muted);font-size:.83rem;white-space:nowrap}.panes{display:grid;grid-template-columns:minmax(300px,39%) minmax(0,1fr);background:white;border:1px solid #e1e8f6;border-radius:17px;min-height:calc(100dvh - 90px);overflow:hidden;box-shadow:0 8px 32px #223d6c09}.listing{min-width:0;border-right:1px solid var(--line)}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 19px 17px;gap:5px}h1{font-size:26px;letter-spacing:-.8px}.list-heading p{font-size:.82rem;color:var(--muted);margin-top:4px}.icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:9px;flex:none;color:#4b5c7c}.tabs{display:flex;gap:4px;background:#f2f5fb;border-radius:9px;padding:4px;margin:0 17px 13px}.tabs button{flex:1;padding:7px;font-size:.85rem;border-radius:6px;color:var(--muted)}.tabs button.active{color:#2855cd;background:white;box-shadow:0 1px 4px #182e5a19;font-weight:700}.group{padding:13px 18px 7px;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.row{width:100%;display:flex;text-align:left;align-items:flex-start;gap:10px;padding:12px 15px 12px 18px;border-bottom:1px solid #f1f3f8;border-left:3px solid transparent}.row:hover,.row.selected{background:#f2f6ff}.row.selected{border-left-color:var(--blue)}.row .details{min-width:0;flex:1}.row .line{display:flex;align-items:center;gap:6px;justify-content:space-between}.row strong,.row .subject,.row .snippet{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row strong,.row .subject{font-size:.88rem}.row time,.snippet{color:var(--muted);font-size:.76rem}.row time{white-space:nowrap}.snippet,.subject{margin-top:3px}.unread{width:7px;height:7px;background:var(--blue);border-radius:50%;flex:none}.subject{font-weight:550}.row[data-unread=true] .subject{font-weight:750}#reader{min-width:0}.toolbar{display:flex;align-items:center;gap:4px;padding:13px 20px;border-bottom:1px solid var(--line)}.toolbar .highlight{background:#e8efff;color:var(--blue)}.reader-content{max-width:805px;padding:27px 32px 45px}.reader-content h2{font-size:clamp(1.4rem,2.4vw,2rem);letter-spacing:-.045em;overflow-wrap:anywhere}.sender{display:flex;align-items:center;gap:11px;margin:20px 0 24px;padding-bottom:20px;border-bottom:1px solid var(--line)}.sender span small{display:block;color:var(--muted);font-size:.81rem;margin-top:3px;overflow-wrap:anywhere}.sender time{margin-left:auto;font-size:.8rem;color:var(--muted);white-space:nowrap}.body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:1rem;color:#34435e}.reply{margin-top:26px;display:flex;gap:10px;flex-wrap:wrap}.secondary{padding:9px 14px;border:1px solid #dae4f5;border-radius:8px;font-weight:650;color:#2855cd;background:#fff}.secondary:hover{background:var(--soft)}.empty{padding:34px 18px;text-align:center;color:var(--muted)}#reader>.empty{height:100%;display:grid;place-content:center;justify-items:center;gap:14px}#reader>.empty svg{width:36px;height:36px;color:var(--blue)}.mobile{display:none!important}[hidden]{display:none!important}dialog{width:min(540px,calc(100vw - 28px));border:1px solid var(--line);border-radius:16px;padding:24px;color:inherit;box-shadow:0 18px 60px #182e5a30}dialog::backdrop{background:#15264959}dialog h2{margin-bottom:15px}dialog p{line-height:1.55;margin:10px 0}dialog label{display:grid;gap:5px;margin:11px 0;font-size:.89rem}dialog input,dialog textarea{border:1px solid #cfdaf0;border-radius:8px;padding:9px;width:100%;background:#fff;color:inherit}dialog textarea{resize:vertical;min-height:135px}.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:15px}#toast{position:fixed;z-index:2;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;background:#192841;color:white;padding:10px 15px;border-radius:10px;max-width:calc(100% - 26px);width:max-content}#toast button{color:#bdd0ff;padding:4px}
@media(max-width:1080px){.app{grid-template-columns:185px minmax(0,1fr)}aside{padding-inline:12px}.panes{grid-template-columns:minmax(270px,43%) minmax(0,1fr)}.reader-content{padding-inline:21px}}
@media(max-width:760px){.app{display:block}main{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.top{position:sticky;top:0;background:#eff4ff;z-index:1;padding:8px;min-height:62px;gap:5px}.search{width:100%}.workspace,kbd{display:none}.mobile{display:inline-grid!important}aside{position:fixed;z-index:3;inset:0 auto 0 0;width:min(270px,85vw);background:#eff4ff;box-shadow:0 0 0 100vmax #1b284456;display:none;overflow:auto;padding-top:max(20px,env(safe-area-inset-top))}aside.open{display:flex}.panes{display:block;border:0;border-radius:0;min-height:calc(100dvh - 62px)}.listing{border:0}#reader{display:none}body.reading .listing{display:none}body.reading #reader{display:block}.reader-content{padding:21px 18px 32px}.toolbar{padding:7px 8px}.row{padding-block:14px}.search input,dialog input,dialog textarea{font-size:16px}}

/* Cool porcelain surfaces, blue controls and iOS-style navigation. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  color: #16273c;
  background: #f0f5fb;
  color-scheme: light;
  --surface: #fcfdff;
  --blue: #4079bf;
  --muted: #52637a;
  --line: #e1eaf4;
  --soft: #e8f0fa;
}
.app { grid-template-columns: 238px minmax(0,1fr); }
aside { background: #f0f5fb; }
.brand { font-size: 25px; font-weight: 740; letter-spacing: -.065em; }
.logo { background: linear-gradient(150deg,#6496d5,#4079bf 85%); width: 39px; height: 39px; border-radius: 13px; box-shadow: 0 5px 12px #4079bf37; }
.primary { background: #4079bf; box-shadow: 0 5px 12px #4079bf2b; border-radius: 12px; }
.primary:hover { background: #2e629f; }
nav button, #install, .icon { color: #405774; }
nav button:hover, #install:hover, .icon:hover { background: #e4eefb; }
nav button.active { background: #dceafa; color: #28568d; }
.profile { border-color: #dce7f3; }
.top { padding-inline: 5px 11px; min-height: 64px; }
.search { background: #e6eef8; border-color: transparent; border-radius: 12px; min-height: 40px; }
.search input { color: #243b57; }
.search input::placeholder { color: var(--muted); }
kbd { border-color: #cad9ec; }
.panes { background: var(--surface); border-color: #dbe6f2; border-radius: 22px; box-shadow: 0 15px 48px #26497210; }
.list-heading { padding: 26px 23px 16px; }
h1 { font-size: clamp(31px,4vw,39px); letter-spacing: -.065em; line-height: 1.02; font-weight: 760; }
.list-heading p { margin-top: 7px; }
.tabs { margin: 0 22px 16px; background: #e6eff9; padding: 3px; gap: 2px; }
.tabs button { min-height: 34px; }
.tabs button.active { color: #28568d; background: #fbfdff; box-shadow: 0 1px 4px #263f6024; }
.group { padding: 13px 23px 8px; text-transform: none; letter-spacing: 0; font-size: .83rem; background: #f5f9fe; }
.row { padding: 15px 18px 15px 20px; border-bottom-color: #eaf0f7; }
.row:hover, .row.selected { background: #eaf3fe; }
.row.selected { border-left-color: #4079bf; }
.row strong { font-weight: 720; }
.avatar { border-radius: 50%; }
.violet { color: #70385e; background: #f1ddec; }
.blue { color: #375b73; background: #e1edf2; }
.mint { color: #2b6252; background: #e0eee5; }
.peach { color: #874b37; background: #f7e1d6; }
.pink { color: #8b415d; background: #f8dfe7; }
.toolbar .highlight { background: #e0edfb; }
.reader-content { padding-top: 35px; }
.reader-content h2 { font-size: clamp(1.65rem,3vw,2.4rem); }
.body { color: #334962; }
.secondary { border-color: #d5e3f3; color: #28568d; background: #fbfdff; border-radius: 11px; }
.secondary:hover { background: var(--soft); }
dialog { background: var(--surface); border-radius: 21px; }
dialog::backdrop { background: #162c4763; }
dialog input, dialog textarea, dialog select { border: 1px solid #cbdcf0; border-radius: 10px; padding: 10px; min-height: 42px; color: inherit; background: #fff; width: 100%; }
dialog p { color: var(--muted); }
#toast { background: #213b5a; border-radius: 15px; box-shadow: 0 7px 20px #213b5a33; }
#toast button { color: #d6eaff; }
.tab-bar { display: none; }
@media (max-width:1080px) {
  .app { grid-template-columns: 192px minmax(0,1fr); }
}
@media (max-width:760px) {
  :root { background: var(--surface); }
  main { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .top { background: #fcfdffed; padding: 8px 10px; min-height: 57px; border-bottom: 1px solid #e1eaf48c; }
  @supports (backdrop-filter: blur(16px)) {
    .top, .tab-bar { backdrop-filter: blur(16px); }
  }
  aside { background: #edf4fd; width: min(298px,85vw); border-radius: 0 24px 24px 0; }
  .panes { border: 0; border-radius: 0; box-shadow: none; min-height: calc(100dvh - 122px); }
  .list-heading { padding: 19px 18px 14px; }
  h1 { font-size: 38px; }
  .tabs { margin-inline: 17px; }
  .row { padding-inline: 15px; min-height: 69px; }
  .group { padding-inline: 18px; }
  .tab-bar {
    position: fixed; z-index: 2; bottom: 0; inset-inline: 0;
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
    background: #fcfdffed; border-top: 1px solid #dbe6f2;
    padding: 3px max(10px,env(safe-area-inset-left)) max(5px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right));
  }
  .tab-bar button {
    display: grid; justify-items: center; align-content: center; gap: 3px; text-align: center;
    min-height: 49px; font-size: .72rem; border-radius: 11px;
  }
  .tab-bar button svg { width: 21px; height: 21px; }
  .tab-bar button.current { color: #28568d; font-weight: 750; }
  .tab-bar button.current svg { stroke-width: 2.2; }
  #toast { z-index: 4; bottom: calc(63px + env(safe-area-inset-bottom)); }
  dialog { margin: auto auto 0; width: min(100%,540px); max-width: 100%; max-height: calc(100dvh - env(safe-area-inset-top) - 16px); border-radius: 24px 24px 0 0; padding: 23px 20px max(20px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:no-preference) {
  .primary,.secondary,.row,nav button { transition: background-color .16s ease; }
  dialog[open] { animation: sheet-in .2s ease-out both; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
}

.live-inbox { display: grid; gap: 5px; margin-top: 10px; }
.live-inbox button { display: grid; text-align: left; gap: 4px; padding: 12px; border-radius: 10px; background: var(--soft); }
.live-inbox button:hover { background: #dceafa; }
.live-inbox small { color: var(--muted); }
.live-body { margin-block: 15px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.account-section { padding-block: 12px; border-bottom: 1px solid var(--line); }

.welcome {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 8%,#dceafb 0%,transparent 64%),#f2f6fb;
}
.welcome-card {
  width: min(100%,430px);
  text-align: center;
  padding: 42px 32px 27px;
  border: 1px solid #dbe6f2;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 20px 80px #4079bf20;
}
.welcome-logo img {
  display: inline-block;
  border-radius: 20px;
  box-shadow: 0 7px 20px #4079bf39;
}
.welcome h1 { font-size: clamp(1.9rem,8vw,2.45rem); margin: 24px 0 10px; }
.welcome p { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.welcome-sign-in { width: 100%; min-height: 50px; margin-top: 28px; background: #3269ab; }
.welcome-sign-in:disabled { opacity: .65; cursor: wait; }
.welcome-link { min-height: 44px; margin-top: 7px; color: #28568d; font-weight: 650; }
#welcomeStatus { font-size: .9rem; margin-top: 6px; }
.welcome-settings { border-top: 1px solid var(--line); margin-top: 16px; text-align: left; }
.welcome-settings summary { padding: 13px 0 0; color: var(--muted); cursor: pointer; font-size: .88rem; }
.welcome-settings form { display: grid; gap: 9px; margin-top: 12px; font-size: .9rem; }
.welcome-settings input { width: 100%; min-height: 44px; border: 1px solid #cbdcf0; border-radius: 10px; padding: 8px; font-size: 1rem; }
#returnSignIn { display: flex; align-items: center; gap: 11px; padding: 10px 11px; min-height: 43px; color: #405774; border-radius: 9px; }
#returnSignIn:hover { background: #e4eefb; }
@media (max-width:430px) {
  .welcome-card { padding: 34px 21px 22px; border-radius: 23px; }
}
.provider-options { display: grid; gap: 8px; margin-top: 9px; }
.provider-options button { min-height: 46px; }
.account-section { display: flex; flex-wrap: wrap; gap: 7px; }

.welcome-footer { margin-top: 15px; font-size: .85rem; }
.welcome-footer a, .policy-page a { color: #28568d; text-underline-offset: 3px; }
.policy-page { max-width: 710px; margin: auto; padding: 38px 20px 60px; }
.policy-page h1 { margin: 26px 0 15px; }
.policy-page h2 { margin: 24px 0 8px; font-size: 1.25rem; }
.policy-page p { line-height: 1.65; }

.logo img { display: block; width: 100%; height: 100%; border-radius: inherit; }

/* The connected Gmail workspace uses the same list and reader layout as Postlight. */
.gmail-top { gap: 10px; justify-content: space-between; }
.gmail-top .search { min-width: 0; }
.gmail-top .search button { padding: 5px 9px; }
#gmailSignOut { white-space: nowrap; }
#gmailAddress, #gmailMobileAddress { overflow-wrap: anywhere; }
#gmailApp .profile > div { min-width: 0; }
.gmail-list-status { margin: 0; padding: 0 18px; color: var(--muted); }
.gmail-list-status:not(:empty) { padding-bottom: 12px; }
.gmail-list-footer { padding: 12px 18px; }
.gmail-row { display: block; text-align: left; }
.gmail-row > div { overflow: hidden; }
.gmail-row-line { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.gmail-row-line strong { min-width: 0; }
.gmail-row-subject, .gmail-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmail-row small { margin-top: 3px; color: var(--muted); }
.gmail-unread .gmail-row-subject { font-weight: 700; }
.gmail-row[aria-current] { background: #eaf3fe; border-inline-start: 3px solid #4079bf; }
#gmailReader { min-width: 0; }
#gmailReader > .empty { min-height: 35vh; display: grid; place-items: center; padding: 18px; color: var(--muted); }
#gmailReader .sender, #gmailReader .body { overflow-wrap: anywhere; }
#gmailReader .body { white-space: pre-wrap; }
.gmail-reader-back, .gmail-folder-picker, .gmail-mobile-account { display: none; }
@media (max-width:760px) {
  #gmailApp main { padding-bottom: env(safe-area-inset-bottom); }
  .gmail-folder-picker { display: flex; align-items: center; gap: 8px; margin: 0 18px 12px; }
  .gmail-folder-picker select { min-height: 36px; border: 1px solid #d5e3f3; border-radius: 8px; background: var(--surface); color: inherit; padding: 4px 8px; }
  .gmail-mobile-account { display: block; }
  #gmailApp #gmailReader { display: none; }
  #gmailApp.gmail-reading #gmailListing { display: none; }
  #gmailApp.gmail-reading #gmailReader { display: block; }
  .gmail-reader-back { display: inline-block; margin-bottom: 14px; }
}

.welcome-settings-link { color: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.account-switch-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 8px 0; overflow-wrap: anywhere; }
.account-switch-row button { text-align: start; }
#gmailApp .gmail-top { flex-wrap: wrap; }
#gmailApp .gmail-top .search { flex: 1 1 208px; margin-inline-end: auto; }
[data-theme="dark"] { color-scheme: dark; --surface: #192433; --muted: #a9bad1; background: #141d2b; color: #edf4ff; }
[data-theme="dark"] :is(body,main,aside,.top,.welcome,.welcome-card,.panes,.listing,.reader-content,.row,.search,dialog,input,textarea,select,.live-inbox button) { background: #192433; color: #edf4ff; border-color: #32445c; }
[data-theme="dark"] :is(.top,.welcome) { background: #141d2b; }
[data-theme="dark"] :is(.secondary,.row:hover,.gmail-row[aria-current],nav button.active,nav button:hover) { background: #243b56; color: #eef5ff; border-color: #435d7b; }
[data-theme="dark"] :is(.gmail-row small,.sender,.body,.welcome p,.list-heading p,.workspace,.profile small,nav button) { color: #bdcce0; }
[data-theme="dark"] :is(a,.welcome-footer a,.policy-page a,.welcome-settings-link) { color: #a8ceff; }
@media (max-width:760px) {
  #gmailApp .gmail-top { flex-wrap: wrap; }
  #gmailApp .gmail-top .search { flex-basis: 100%; }
}

.mobile-mail-only, .mobile-mail-bar { display: none; }
#mailboxSwitcher { border-bottom: 1px solid #dae6f4; padding-bottom: 10px; }
#mailboxSwitcher button { overflow-wrap: anywhere; width: 100%; }
#mailboxSwitcher .mail-alias-choice { padding-inline-start: 26px; font-size: .85rem; }
#mailDrawer { gap: .45rem; }
#mailboxFolderStatus { padding: 0 .55rem; font-size: .82rem; color: var(--muted); }
#mailDrawer #gmailFolders button { overflow-wrap: anywhere; }
.inbox-modes { display: flex; gap: 6px; padding: 0 18px 12px; }
.inbox-modes button { background: transparent; border: 1px solid #c4d8ee; border-radius: 999px; color: inherit; padding: 8px 12px; font-size: .85rem; }
.inbox-modes button[aria-pressed="true"] { background: #dceaff; border-color: #dceaff; color: #174980; font-weight: 700; }
.mail-category summary { cursor: pointer; padding: 13px 18px; background: #eaf3fc; font-size: .94rem; font-weight: 700; }
.mail-category summary::marker { color: #4079bf; }
.mail-row-account { font-size: .72rem; overflow-wrap: anywhere; }
#mailOpenProvider { text-decoration: none; }
[data-theme="dark"] .mail-category summary { background: #24364d; }
[data-theme="dark"] .inbox-modes button[aria-pressed="true"] { background: #2c4b71; border-color: #435d7b; color: #edf4ff; }
[data-theme="dark"] #mailboxSwitcher { border-color: #32445c; }
@media (max-width:760px) {
  #gmailApp main { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  #gmailApp .gmail-top > button { display: none; }
  #gmailApp .gmail-top .search { margin-block: 5px; }
  #gmailApp .mobile-mail-only { display: block; }
  #mailDrawer {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0;
    width: min(86vw,332px); overflow-y: auto; z-index: 22; padding: 14px 12px calc(20px + env(safe-area-inset-bottom));
    transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s;
    box-shadow: 5px 0 26px #162d4a2e;
  }
  #gmailApp.mail-drawer-open #mailDrawer { transform: translateX(0); visibility: visible; }
  #mailDrawerClose { align-self: end; }
  #mailDrawerShade { position: fixed; inset: 0; z-index: 21; width: 100%; border: none; border-radius: 0; background: #14284280; }
  .mobile-mail-bar {
    display: flex; align-items: end; justify-content: space-between; position: fixed; pointer-events: none;
    z-index: 10; inset-inline: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobile-mail-bar button {
    pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; justify-content: center;
    min-height: 48px; padding: 0 14px; border-radius: 18px; border: 1px solid #bed5ee;
    background: #f7fbff; color: #1e487a; box-shadow: 0 4px 16px #20395733; font-weight: 700;
  }
  #mobileMailCompose { min-width: 52px; min-height: 52px; background: #2f66a6; color: white; border-color: #2f66a6; }
  #mobileMailCompose svg { width: 24px; height: 24px; }
  [data-theme="dark"] #mailDrawerToggle { background: #243b56; border-color: #435d7b; color: #edf4ff; }
}
@media (prefers-reduced-motion: reduce) {
  #mailDrawer { transition: none; }
}

#mailtoForm .actions a { text-decoration: none; }

.settings-checkbox { display: flex; align-items: center; gap: 9px; }
.settings-checkbox input { width: auto; }
.mail-reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.mail-reader-toolbar nav { display: flex; gap: 7px; margin-inline-start: auto; }
.mail-reader-toolbar .reader-nav { min-width: 40px; min-height: 40px; padding: 0; text-align: center; font-size: 1.35rem; }
.mail-reader-toolbar .reader-nav:disabled { opacity: .4; cursor: default; }
.mail-reader-header { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #dce7f3; }
.mail-reader-header h2 { overflow-wrap: anywhere; margin: 0 0 17px; }
.mail-sender-block { display: flex; align-items: start; gap: 10px; }
.mail-sender-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #deebfa; color: #204976; font-weight: 750; }
.mail-sender-info { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.mail-sender-info span, #mailDate, .mail-images-notice { color: var(--muted); font-size: .83rem; }
#mailDate { margin-inline-start: auto; text-align: end; }
.mail-images-notice { margin-top: 13px; }
#gmailReader .mail-document { color: inherit; line-height: 1.55; overflow-wrap: anywhere; }
#gmailReader .mail-document.mail-html { white-space: normal; }
.mail-document :is(p,blockquote,ul,ol,pre,table) { margin: 0 0 1em; }
.mail-document blockquote { padding-inline-start: .9em; border-inline-start: 2px solid #a6bdd8; }
.mail-document pre { white-space: pre-wrap; }
.mail-document table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.mail-document :is(th,td) { padding: .25em .5em; vertical-align: top; }
.mail-document a { color: #20558d; text-decoration: underline; }
[data-theme="dark"] .mail-document a { color: #a8ceff; }
[data-theme="dark"] .mail-reader-header { border-color: #32445c; }
@media (max-width:760px) {
  .mail-reader-toolbar .gmail-reader-back { margin-bottom: 0; }
  .mail-sender-block { flex-wrap: wrap; }
  .mail-sender-info { flex: 1 1 calc(100% - 55px); }
  #mailDate { margin-inline-start: 48px; text-align: start; }
  #gmailArticle { touch-action: pan-y; }
}
