/* 914 Mail: a light, compact workspace inspired by familiar webmail. */
:root {
  --green: #0b57d0;
  --lime: #c2e7ff;
  --muted: #697386;
  --line: #e8edf4;
  color: #202124;
  background: #f6f8fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body { background: #f6f8fc; }
button { -webkit-user-select: none; user-select: none; }
button:focus-visible, a:focus-visible { outline-color: #1a73e8; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: #8ab4f8; }
.mail-app { background: #f6f8fc; }
.sidebar { width: 246px; padding: 25px 14px 18px; background: transparent; color: #444746; }
.sidebar-top { margin: 0 14px 27px; color: #30343b; }
.wordmark { letter-spacing: -.035em; font-size: 1.35rem; font-weight: 450; gap: 10px; }
.brand-box { background: #1a73e8; color: white; border-radius: 10px; padding: 8px 7px; font-size: .94rem; font-weight: 750; letter-spacing: -.04em; }
.compose-button { margin: 0 0 26px 4px; width: max-content; min-width: 173px; background: #c2e7ff; color: #001d35; border-radius: 17px; padding: 18px 20px; box-shadow: none; font-size: .875rem; gap: 14px; }
.compose-button .icon { width: 22px; height: 22px; }
.compose-button:hover { background: #b5dfff; box-shadow: 0 2px 6px #3c404326; }
.compose-button:active { transform: scale(.98); }
.key-hint { color: #34668b; border-color: #789fbe55; margin-left: 5px; font-size: .75rem; }
.nav-caption { display: none; }
nav { gap: 2px; }
.folder-button { color: #444746; font-size: .875rem; border-radius: 0 22px 22px 0; padding: 11px 19px; margin-left: -14px; width: calc(100% + 14px); gap: 17px; min-height: 42px; }
.folder-button > .icon { color: #626974; opacity: 1; width: 20px; height: 20px; }
.folder-button:hover { background: #e8ebef; color: #1f1f1f; }
.folder-button.active { background: #d3e3fd; color: #001d35; font-weight: 650; }
.folder-button.active > .icon { color: #174ea6; }
.folder-count, .folder-button:not(.active) .folder-count { background: transparent; color: inherit; font-size: .75rem; padding: 0; font-weight: 650; }
.address-caption { font-size: .75rem; letter-spacing: .06em; color: #858c98; line-height: 1.7; }
.address-item { font-size: .75rem; color: #697386; line-height: 2.3; }
.address-mark { color: #8b94a3; }
.sidebar-bottom .credit { font-size: .75rem; color: #808794; margin-bottom: 18px; }
.account-button { border-top: 1px solid #dfe5ef; padding-top: 17px; gap: 10px; }
.account-button strong { font-size: .8rem; color: #3c4043; font-weight: 600; }
.account-button small { color: #7d8593; font-size: .75rem; }
.avatar { background: #dce7fc; color: #345c9d; width: 35px; height: 35px; }
.workspace { background: transparent; }
.preview-banner { background: #edf3ff; color: #60748f; border: 0; height: 28px; font-size: .75rem; }
.topbar { height: 76px; padding: 0 24px 0 6px; gap: 16px; border: 0; }
.workspace-name { display: none; }
.search-box { margin: 0 auto 0 0; width: min(680px, 75%); min-height: 49px; padding: 13px 18px; background: #eaf1fb; border: 1px solid transparent; border-radius: 25px; gap: 15px; color: #5f6877; }
.search-box:focus-within { background: #fff; box-shadow: 0 1px 3px #3c40434d, 0 3px 10px #3c404312; }
.search-box input { font-size: .95rem; color: #202124; }
.search-box input::placeholder { color: #727c8e; }
.search-box .icon { width: 21px; height: 21px; }
.search-box kbd { border: 0; white-space: nowrap; color: #8c96a7; font-size: .75rem; padding: 3px 5px; }
.topbar > .icon-button { width: 38px; height: 38px; }
.icon-button { color: #707782; border-radius: 50%; }
.icon-button:hover { background: #e8edf4; color: #27374d; }
.icon-button:active { background: #d8e4f6; transform: scale(.94); }
.icon-button[aria-pressed=true] { background: #d3e3fd; color: #174ea6; }
.mail-content { margin: 0 20px 18px 0; background: white; border-radius: 19px; overflow: hidden; box-shadow: 0 1px 3px #243d6810; border: 1px solid #edf0f5; }
.message-list-panel { flex: 1; width: 100%; min-width: 0; border: 0; }
.reader { display: none; background: white; }
.reading:not(.split-view) .message-list-panel { display: none; }
.reading:not(.split-view) .reader { display: block; }
.split-view .message-list-panel { width: 390px; min-width: 320px; flex: none; border-right: 1px solid var(--line); }
.split-view .reader { display: block; }
.list-heading { padding: 23px 27px 22px; min-height: 100px; border-bottom: 1px solid #edf0f5; }
.list-heading h1 { margin-bottom: 7px; font-size: 1.4rem; color: #24282f; letter-spacing: -.04em; font-weight: 600; }
.list-heading p { font-size: .8rem; color: #8992a0; }
.filter-segment { display: flex; padding: 3px; background: #f1f4f9; border-radius: 20px; gap: 2px; }
.filter-button { padding: 7px 13px; min-width: 47px; background: transparent; border: 0; border-radius: 18px; color: #7d8696; font-size: .75rem; }
.filter-button[aria-pressed=true] { background: #fff; color: #245eae; box-shadow: 0 1px 4px #3757801a; }
.search-scope { background: #f6f9ff; padding: 10px 27px; color: #6f809a; font-size: .8rem; border-bottom: 1px solid #e9eff9; }
.search-scope button { color: #1a73e8; }
.message-list { scrollbar-color: #d6dde8 transparent; scrollbar-width: thin; }
.message-row { min-height: 59px; border-left: 0; border-bottom: 1px solid #edf0f5; background: #f6f9ff; }
.message-row:first-child { border-top: 0; }
.message-row.unread { background: #fff; }
.message-row:hover { z-index: 1; background: #edf3fd; box-shadow: inset 0 1px #dce5f4, inset 0 -1px #dce5f4, 0 2px 5px #314d7110; }
.message-row.selected { background: #dce9ff; border-left: 0; }
.message-main { display: grid; align-items: center; grid-template-columns: minmax(140px, 205px) minmax(0, 1fr) 70px; gap: 22px; min-height: 59px; padding: 14px 28px 14px 58px; }
.message-row-top { display: contents; }
.message-sender { grid-column: 1; grid-row: 1; max-width: none; color: #535c6a; font-size: .875rem; }
.message-time { grid-column: 3; grid-row: 1; text-align: right; color: #7c8594; font-size: .75rem; }
.message-copy { grid-column: 2; grid-row: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.message-subject { min-width: 0; max-width: 57%; display: block; padding: 0; color: #374151; font-size: .875rem; flex-shrink: 0; }
.message-preview { color: #8992a0; font-size: .875rem; line-height: 1.4; margin: 0; padding: 0; display: block; white-space: nowrap; text-overflow: ellipsis; }
.message-preview::before { content: '— '; color: #b3bac5; }
.unread .message-sender, .unread .message-subject { color: #242933; font-weight: 650; }
.unread .message-time { color: #303846; font-weight: 600; }
.unread .message-main::before { display: none; }
.row-star { left: 14px; right: auto; top: 17px; bottom: auto; color: #bbc2ce; }
.row-star .icon { width: 17px; height: 17px; }
.starred { color: #e4af25; }
.starred .icon { fill: #f7d46c; stroke: #e8b02d; }
.attachment-mark { display: inline-flex; vertical-align: middle; margin-left: 7px; }
.attachment-mark .icon { color: #8090a7; }
.row-quick-actions { position: absolute; right: 14px; top: 10px; display: flex; gap: 2px; opacity: 0; pointer-events: none; background: #edf3fd; border-radius: 20px; padding-left: 7px; }
.message-row:hover .row-quick-actions, .message-row:focus-within .row-quick-actions { opacity: 1; pointer-events: auto; }
.message-row:hover .message-time, .message-row:focus-within .message-time { opacity: 0; }
.row-quick-actions .icon-button { width: 33px; height: 33px; }
.row-quick-actions .icon { width: 18px; height: 18px; }
.message-row.changing { opacity: .45; pointer-events: none; }
.pagination { min-height: 47px; border-color: #f0f3f7; color: #8992a0; padding: 5px 23px; }
.pagination .text-button, .pagination > span { font-size: .75rem; }
.text-button { color: #63738c; border-radius: 18px; }
.text-button:hover { color: #0b57d0; background: #edf3ff; }
.reader-toolbar { background: #fff; padding: 13px 22px; border-color: #edf0f5; gap: 13px; }
.reader-toolbar .mobile-back { display: inline-flex; margin-right: 10px; }
.move-select { background: #f5f7fb; color: #66758d; border: 1px solid #edf0f5; border-radius: 8px; font-size: .8rem; }
.reader-content { max-width: 1040px; padding: 45px 60px 70px; }
.reader-subject { font-size: 1.8rem; color: #272c35; letter-spacing: -.045em; line-height: 1.35; font-weight: 500; margin-bottom: 33px; }
.sender-avatar { background: #e5edff; color: #5173b6; width: 42px; height: 42px; font-weight: 600; }
.sender-details strong { color: #333b48; font-size: .9rem; }
.sender-details span { color: #8c95a3; font-size: .8rem; }
.reader-time { max-width: none; color: #98a0ae; font-size: .75rem; }
.recipient-details { color: #8c96a6; font-size: .8rem; margin-bottom: 35px; }
.message-body { font-size: .98rem; line-height: 1.9; color: #48515f; }
.reply-buttons { border-color: #edf0f5; margin-top: 35px; padding-top: 24px; }
.secondary { color: #3f5f91; border: 1px solid #dce3ee; border-radius: 20px; }
.secondary:hover { background: #f2f6fd; border-color: #c6d8f4; }
.reply-buttons .secondary, .reply-all { font-size: .8rem; }
.primary { background: #0b57d0; border-radius: 22px; color: #fff; }
.primary:hover { background: #1767da; box-shadow: 0 2px 6px #0b57d030; }
.reader-attachments { border-color: #edf0f5; }
.attachment { background: #f7f9fd; border-color: #e5ebf3; border-radius: 12px; color: #3c567c; }
.attachment:hover { background: #edf4ff; border-color: #cbdcf7; }
.attachment .icon { color: #7593bf; }
.reader-placeholder { color: #919cac; }
.placeholder-envelope { background: #f0f5ff; border-color: #e4ecfb; transform: rotate(-9deg); }
.placeholder-envelope .icon { color: #8aa9df; }
.reader-placeholder h2 { font-family: inherit; color: #586b89; font-size: 1.8rem; font-weight: 450; letter-spacing: -.045em; }
.reader-placeholder p { color: #97a4b8; font-size: .875rem; }
.reader-placeholder .eyebrow, .reader-placeholder small { color: #a2afc2; font-size: .75rem; }
.placeholder-line { background: #dfe8f7; }
.reader-skeleton { padding: 70px 60px; }
.skeleton-line { display: block; height: 13px; background: #eef2f8; margin: 20px 0; border-radius: 7px; width: 90%; }
.skeleton-line:first-child { height: 28px; width: 65%; margin-bottom: 45px; }
.skeleton-line:nth-child(2), .skeleton-line:last-child { width: 45%; }
.toast { background: #303640; display: flex; align-items: center; gap: 28px; border-radius: 8px; padding: 16px 22px; box-shadow: 0 5px 20px #26385533; }
.toast-undo { background: none; color: #a8c7fa; font-size: .875rem; padding: 0; font-weight: 600; }
.toast-undo:hover { color: #d9e7ff; }
.composer-dialog { position: fixed; margin: 0; top: auto; left: auto; right: 30px; bottom: 24px; width: min(670px, calc(100vw - 60px)); max-height: calc(100dvh - 70px); border: 1px solid #dce4f0; border-radius: 16px 16px 10px 10px; box-shadow: 0 20px 80px #24365533, 0 5px 20px #24365514; }
.composer-dialog::backdrop { background: #e5edfa35; backdrop-filter: none; }
.composer-dialog.expanded { inset: 40px; margin: auto; width: min(1000px, calc(100vw - 80px)); height: calc(100dvh - 80px); max-height: none; }
.composer-form { min-height: min(620px, calc(100dvh - 72px)); height: 100%; }
.composer-heading { padding: 18px 24px; background: #f2f6fe; border-color: #e6edf8; }
.composer-heading .eyebrow { display: none; }
.composer-heading h2 { margin: 0; font-size: .95rem; color: #3d4b63; letter-spacing: -.02em; font-weight: 550; }
.composer-window-actions { display: flex; align-items: center; gap: 6px; }
.composer-window-actions .icon-button { width: 30px; height: 30px; }
.composer-window-actions .icon { width: 17px; height: 17px; }
.draft-status { font-size: .75rem; color: #95a0b2; margin-right: 6px; }
.compose-fields { padding: 0 25px; }
.field-row { min-height: 49px; border-color: #edf1f7; }
.field-row > span { font-size: .8rem; color: #9099a8; }
.field-row input, .field-row select { color: #43526a; font-size: .875rem; }
.field-row select { border-radius: 5px; }
.composer-form textarea { font-size: .98rem; padding: 23px 25px; color: #434e60; line-height: 1.85; }
.composer-form textarea::placeholder { color: #adb6c4; }
.composer-footer { border-color: #edf0f5; padding: 17px 22px; }
.composer-footer .primary { font-size: .875rem; padding: 13px 21px; }
.composer-footer .text-button { font-size: .8rem; }
.compose-preview-note { background: #f1f5fc; color: #8a99b0; font-size: .75rem; }
.compose-attachment { background: #edf3ff; color: #5a7197; border-radius: 8px; }
.account-dialog, .confirm-dialog { width: min(420px, calc(100vw - 36px)); padding: 28px; border-radius: 20px; border: 1px solid #e1e8f3; color: #33415a; }
.account-note { color: #7c889b; }
.confirm-dialog::backdrop { background: #273d5c55; backdrop-filter: blur(3px); }
.confirm-mark { width: 45px; height: 45px; background: #edf3ff; color: #7594c9; display: grid; place-items: center; border-radius: 14px; margin-bottom: 21px; }
.confirm-dialog h2 { font-size: 1.2rem; font-weight: 550; letter-spacing: -.03em; }
.confirm-dialog p { font-size: .875rem; color: #8491a5; line-height: 1.8; }
.confirm-actions { display: flex; gap: 12px; margin-top: 26px; justify-content: flex-end; }
.confirm-actions button { font-size: .8rem; padding: 11px 16px; }
.split-view .message-main { display: block; min-height: 116px; padding: 21px 23px 21px 50px; }
.split-view .message-row { min-height: 116px; }
.split-view .message-row-top { display: flex; gap: 15px; margin-bottom: 10px; }
.split-view .message-copy { display: block; }
.split-view .message-subject { max-width: none; margin-bottom: 6px; }
.split-view .message-preview::before { display: none; }
.split-view .message-sender { max-width: 70%; }
.split-view .row-star { top: 22px; left: 13px; }
.split-view .row-quick-actions { top: auto; bottom: 12px; }
.split-view .message-row:hover .message-time { opacity: 1; }
.split-view .reader-content { padding: 36px 38px; }
.split-view .reader-subject { font-size: 1.5rem; }
.split-view .list-heading { padding: 24px 22px; }
.split-view .list-heading p { font-size: .75rem; }
@media (prefers-reduced-motion: no-preference) {
  button, a, .search-box, .message-row, .row-quick-actions { transition: background .16s ease, color .16s ease, box-shadow .16s ease, opacity .16s ease, transform .16s ease; }
  .reader-content { animation: reader-enter .18s ease-out; }
  .composer-dialog[open] { animation: compose-enter .2s cubic-bezier(.2,.8,.2,1); }
  .toast:not([hidden]) { animation: toast-enter .18s ease-out; }
  .skeleton-line { animation: skeleton-pulse 1.1s ease-in-out infinite alternate; }
  @keyframes reader-enter { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes compose-enter { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes toast-enter { from { opacity: 0; margin-bottom: -8px; } to { opacity: 1; margin-bottom: 0; } }
  @keyframes skeleton-pulse { from { opacity: .5; } to { opacity: 1; } }
}
@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  .message-main { grid-template-columns: 160px minmax(0, 1fr) 65px; gap: 16px; padding-right: 22px; }
  .message-subject { max-width: 75%; }
  .split-view .message-list-panel { width: 350px; }
  .reader-content { padding: 38px 45px; }
  .draft-status { font-size: .75rem; }
}
@media (max-width: 960px) {
  .message-copy { display: block; }
  .message-subject { max-width: none; margin-bottom: 5px; }
  .message-preview::before { display: none; }
  .message-main { grid-template-columns: 135px minmax(0, 1fr) 60px; min-height: 80px; }
  .message-row { min-height: 80px; }
  .row-star { top: 26px; }
  .row-quick-actions { top: 23px; }
  .split-view .message-list-panel { width: 100%; min-width: 0; border: 0; }
  .split-view .reader { display: none; }
  .split-view.reading .reader { display: block; }
  .split-view.reading .message-list-panel { display: none; }
  .topbar { padding-right: 15px; gap: 8px; }
  .search-box { width: auto; flex: 1; }
  .reader-subject { font-size: 1.6rem; }
}
@media (max-width: 650px) {
  .sidebar { width: 272px; background: #f6f8fc; padding: 26px 18px 20px; }
  .sidebar-close { color: #8591a4; }
  .sidebar-top { margin-left: 10px; }
  .folder-button { margin-left: -18px; width: calc(100% + 18px); font-size: .94rem; }
  .address-item { font-size: .8rem; }
  .account-button strong { font-size: .875rem; }
  .account-button small { font-size: .75rem; }
  .navigation-open .sidebar { box-shadow: 100px 0 0 100vw #26374e55; }
  .topbar { height: 69px; padding: 0 12px; gap: 6px; }
  .topbar > .icon-button { width: 33px; height: 33px; }
  #reading-pane { display: none; }
  .search-box { min-height: 45px; padding: 10px 13px; }
  .search-box input { font-size: 1rem; }
  .preview-banner { height: auto; padding: 7px 12px; min-height: 34px; font-size: .75rem; gap: 8px; }
  .preview-banner span { max-width: 250px; }
  .mail-content { margin: 0 7px 7px; border-radius: 17px; }
  .list-heading { padding: 22px 19px; min-height: 105px; }
  .list-heading h1 { font-size: 1.5rem; }
  .list-heading p { font-size: .75rem; max-width: 190px; line-height: 1.7; }
  .filter-button { padding: 7px 11px; }
  .message-main, .split-view .message-main { display: block; padding: 19px 20px 19px 49px; min-height: 116px; }
  .message-row, .split-view .message-row { min-height: 116px; }
  .message-row-top, .split-view .message-row-top { display: flex; margin-bottom: 9px; gap: 12px; }
  .message-sender { font-size: .875rem; max-width: 75%; }
  .message-time { font-size: .75rem; }
  .message-subject, .message-preview { font-size: .875rem; }
  .message-subject { margin-bottom: 6px; }
  .row-star, .split-view .row-star { top: 20px; left: 13px; }
  .row-quick-actions { display: none; }
  .message-row:hover .message-time { opacity: 1; }
  .reader-toolbar { padding: 11px 10px; gap: 5px; }
  .reader-toolbar .mobile-back { margin-right: 1px; }
  .reader-content, .split-view .reader-content { padding: 29px 23px 45px; }
  .reader-subject, .split-view .reader-subject { font-size: 1.5rem; }
  .reader-time { max-width: 105px; font-size: .75rem; }
  .reader-meta { gap: 10px; }
  .sender-details span { font-size: .75rem; }
  .message-body { font-size: 1rem; }
  .reader-skeleton { padding: 45px 25px; }
  .composer-dialog, .composer-dialog.expanded { inset: 7px; width: calc(100vw - 14px); height: calc(100dvh - 14px); max-height: none; border-radius: 17px; }
  .composer-heading { padding: 16px 17px; }
  .draft-status { display: none; }
  #expand-compose { display: none; }
  .compose-fields { padding: 0 19px; }
  .composer-form textarea { padding: 22px 19px; font-size: 1rem; }
  .composer-footer { padding: 16px 15px; gap: 5px; }
  .field-row input, .field-row select { font-size: 1rem; }
  .composer-footer .primary { font-size: .8rem; padding: 12px 15px; }
  .composer-footer .text-button { font-size: .8rem; }
  .toast { bottom: 20px; width: calc(100vw - 36px); padding: 15px 18px; justify-content: space-between; }
}
