:root {
  color-scheme: light;
  --navy: #17233b;
  --navy-2: #233354;
  --ink: #1f2937;
  --muted: #75809a;
  --line: #e5e9f1;
  --canvas: #f5f7fb;
  --white: #ffffff;
  --teal: #2aa996;
  --teal-soft: #e1f5f0;
  --amber: #d58d20;
  --amber-soft: #fff1d7;
  --violet: #8166cf;
  --violet-soft: #eee9ff;
  --blue: #4b83c8;
  --blue-soft: #e6f0fc;
  --red: #d15c6c;
  --shadow: 0 16px 40px rgba(38, 55, 91, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(42,169,150,.28); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(520px, 1fr) minmax(340px, 410px); }
.sidebar { position: sticky; top: 0; align-self: start; background: var(--navy); color: #eaf0ff; padding: 25px 15px 18px; display: flex; flex-direction: column; height: 100vh; min-height: 0; overflow: hidden; }
.brand-lockup { display: flex; gap: 11px; align-items: center; padding: 0 10px 31px; }
.brand-mark { width: 27px; height: 27px; border-radius: 9px; background: var(--teal); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 6px; box-shadow: 0 5px 16px rgba(42,169,150,.28); }
.brand-mark span { display: block; width: 3px; background: #eafff9; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 8px; opacity: .75; }.brand-mark span:nth-child(2) { height: 13px; }.brand-mark span:nth-child(3) { height: 17px; opacity: .85; }
.brand-mark.small { width: 23px; height: 23px; border-radius: 7px; padding: 5px; }
.brand-mark.small span { width: 2px; }.brand-mark.small span:nth-child(1) { height: 6px; }.brand-mark.small span:nth-child(2) { height: 10px; }.brand-mark.small span:nth-child(3) { height: 13px; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }.brand-caption { color: #93a2c2; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; margin-top: 3px; }
.primary-nav { display: grid; gap: 3px; }.nav-item, .account-item, .sidebar-link, .quiet-accounts { background: transparent; color: #aab8d7; display: flex; align-items: center; gap: 10px; width: 100%; border-radius: 9px; text-align: left; padding: 10px 11px; transition: .16s ease; }
.nav-item:hover, .account-item:hover, .sidebar-link:hover, .quiet-accounts:hover { color: #fff; background: rgba(255,255,255,.07); }.nav-item.active { color: #fff; background: var(--navy-2); box-shadow: inset 3px 0 0 var(--teal); }.nav-item b, .account-item b { margin-left: auto; font-size: 11px; font-weight: 600; color: #8392b3; }.nav-item.active b { color: #d8fff7; }.nav-icon { width: 15px; color: #9eb0d4; text-align: center; font-size: 15px; }.nav-item.active .nav-icon { color: #73e0ca; }
.sidebar-section { border-top: 1px solid rgba(255,255,255,.1); margin-top: 25px; padding-top: 18px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }.section-label { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 8px; color: #7485a8; font-size: 10px; letter-spacing: .12em; font-weight: 700; }.icon-button { width: 32px; height: 32px; color: var(--muted); background: transparent; border-radius: 8px; font-size: 18px; }.icon-button:hover { background: var(--line); color: var(--ink); }.sidebar .icon-button:hover { background: rgba(255,255,255,.08); color: #fff; }.icon-button.muted { color: #93a2c2; width: 24px; height: 24px; font-size: 16px; }.account-item { color: #b7c2db; padding: 9px 10px; font-size: 12px; }.account-item b { font-size: 10px; }.domain-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }.dot-teal { background: #5de0c7; }.dot-amber { background: #efb654; }.dot-violet { background: #a692ef; }.dot-blue { background: #7bb4ed; }.quiet-accounts { padding: 9px 10px; color: #7f91b7; font-size: 11px; margin-top: 3px; }.quiet-accounts span { font-size: 15px; color: #a4b2cd; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 17px 9px 0; }.health-line { display: flex; align-items: center; gap: 8px; color: #8fa1c3; font-size: 11px; padding: 0 3px 14px; }.health-dot { width: 7px; height: 7px; border-radius: 50%; background: #51cbb0; box-shadow: 0 0 0 4px rgba(81,203,176,.12); display: inline-block; }.sidebar-link { font-size: 11px; padding: 8px 3px; color: #889abd; }.sidebar-link span { width: 17px; text-align: center; font-size: 15px; }

.mobile-menu-button, .mobile-sidebar-close { display: none; }
.workspace { min-width: 0; background: var(--canvas); }.topbar { position: sticky; top: 0; z-index: 12; height: 74px; padding: 0 29px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 20px; }.mobile-brand { display: none; }.search-box { flex: 1; max-width: 600px; display: flex; align-items: center; gap: 11px; color: #9aa5bb; background: #eef1f7; border: 1px solid transparent; border-radius: 9px; padding: 10px 12px; }.search-box:focus-within { background: #fff; border-color: #cfe6e1; box-shadow: 0 0 0 4px rgba(42,169,150,.08); }.search-box input { border: 0; outline: 0; background: transparent; color: var(--ink); min-width: 0; width: 100%; font-size: 12px; }.search-box kbd { color: #9da7b9; white-space: nowrap; font-size: 10px; border: 1px solid #d5dbe6; border-radius: 5px; padding: 2px 5px; background: #f8f9fc; }.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }.sync-status { color: #8893a8; font-size: 10px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }.topbar .icon-button { color: #8994a8; }.avatar { width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--navy); font-size: 10px; font-weight: 700; }
.content-area { padding: 38px 32px 54px; max-width: 1020px; }.page-heading { display: flex; justify-content: space-between; gap: 20px; }.eyebrow { color: #95a0b2; font-size: 10px; letter-spacing: .13em; font-weight: 750; display: flex; align-items: center; gap: 9px; }.eyebrow-line { height: 1px; width: 24px; background: #ccd3df; display: inline-block; }.page-heading h1 { font-size: 27px; letter-spacing: -.045em; line-height: 1.15; margin: 10px 0 7px; color: #182338; }.page-heading p { color: #7b879b; margin: 0; font-size: 12px; }.heading-actions { display: flex; align-items: flex-start; gap: 7px; padding-top: 21px; }.filter-button { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #69758b; padding: 8px 10px; font-size: 11px; box-shadow: 0 3px 10px rgba(50,65,90,.025); }.filter-button:hover { border-color: #c7d7dc; color: var(--ink); }.focus-strip { display: flex; gap: 8px; padding: 26px 0 20px; border-bottom: 1px solid var(--line); }.focus-chip { color: #79859a; border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 99px; padding: 7px 11px; font-size: 11px; display: flex; align-items: center; gap: 7px; }.focus-chip:hover, .focus-chip.selected { background: #fff; border-color: #c3ded9; color: var(--ink); box-shadow: 0 4px 10px rgba(50,65,90,.04); }.focus-chip b { font-size: 10px; color: #a2acbc; }.chip-marker { width: 6px; height: 6px; border-radius: 50%; }.chip-marker.teal { background: var(--teal); }.chip-marker.amber { background: var(--amber); }.chip-marker.violet { background: var(--violet); }.chip-marker.blue { background: var(--blue); }
.list-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 1px 10px; color: #8290a4; font-size: 11px; }.list-hint { color: #a1aabb; font-size: 10px; }.message-list { display: grid; gap: 7px; }.message-card { position: relative; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 11px; padding: 15px 15px 13px 17px; transition: .16s ease; cursor: pointer; overflow: hidden; }.message-card:hover { background: #fff; border-color: #c9d8df; box-shadow: var(--shadow); transform: translateY(-1px); }.message-card.selected { border-color: #92d3c8; box-shadow: 0 0 0 3px rgba(42,169,150,.1); }.message-card.unread { border-left: 3px solid var(--teal); padding-left: 14px; }.message-card.snoozed { background: #fbfaff; }.message-card.archived { opacity: .68; }.card-main { min-width: 0; }.card-topline { display: flex; align-items: center; gap: 9px; min-width: 0; }.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }.domain-label { font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 700; color: #68758b; letter-spacing: -.02em; }.account-label { border-radius: 4px; padding: 3px 5px; font-size: 9px; color: #6e7b90; background: #eef1f6; }.card-time { margin-left: auto; color: #9aa5b6; font-size: 10px; white-space: nowrap; }.card-subject { display: flex; align-items: baseline; gap: 8px; padding: 8px 0 4px 15px; }.card-subject strong { font-size: 13px; color: #263249; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.message-card.unread .card-subject strong { color: #17233b; }.sender { color: #8b96a8; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.recipient-line { color: #9aa5b6; padding-left: 15px; font-size: 10px; }.recipient-line b { color: #65738b; font-weight: 600; }.card-tags { display: flex; gap: 5px; padding: 10px 0 0 15px; }.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 4px 6px; font-size: 9px; font-weight: 700; letter-spacing: .01em; }.tag.todo { color: #a86a0d; background: var(--amber-soft); }.tag.snooze { color: #6650ae; background: var(--violet-soft); }.tag.catchall { color: #3f72aa; background: var(--blue-soft); }.card-actions { position: absolute; right: 13px; bottom: 11px; display: flex; gap: 3px; opacity: 0; transform: translateY(3px); transition: .15s ease; }.message-card:hover .card-actions, .message-card.selected .card-actions { opacity: 1; transform: translateY(0); }.row-action { width: 28px; height: 26px; border-radius: 6px; background: #f2f5f9; border: 1px solid #e4e9f0; color: #748198; font-size: 13px; }.row-action:hover { background: #e8f5f1; border-color: #c3e5de; color: #277f73; }.row-action.danger:hover { background: #fff0f1; border-color: #f0c9ce; color: var(--red); }.row-action.active { background: var(--amber-soft); border-color: #f0d29d; color: #a86a0d; }
.bulk-toolbar { display: flex; align-items: center; gap: 7px; margin-top: 15px; padding: 8px 10px; border: 1px solid #cfe5e1; border-radius: 9px; background: #f4fbfa; color: #277f73; font-size: 11px; }.bulk-spacer { flex: 1; }.bulk-button { border: 1px solid #cfe1df; border-radius: 6px; padding: 6px 8px; background: #fff; color: #4f7d78; font-size: 10px; }.bulk-button:hover { border-color: #8ccbc1; background: #eff9f7; }.bulk-button.danger { color: #b5243d; border-color: #efcbd1; }.bulk-button.danger:hover { background: #fff0f1; }.message-select-wrap { display: inline-flex; align-items: center; width: 15px; height: 15px; flex: 0 0 auto; cursor: pointer; }.message-select { width: 13px; height: 13px; accent-color: var(--teal); }
.empty-state { text-align: center; padding: 84px 20px; }.empty-orbit { width: 54px; height: 54px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); border: 1px solid #bfe6de; background: var(--teal-soft); font-size: 22px; }.empty-state h2 { font-size: 17px; margin: 0 0 7px; }.empty-state p { color: #8995a9; font-size: 12px; margin: 0; }
.detail-panel { position: sticky; top: 0; align-self: start; height: 100vh; background: #fff; border-left: 1px solid var(--line); min-width: 0; overflow: hidden; }.detail-empty { height: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 45px; color: #a0aabc; }.detail-empty-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #8fa0bb; background: #f3f5f9; font-size: 20px; margin-bottom: 17px; }.detail-empty h2 { color: #69758b; font-size: 15px; margin: 0 0 8px; }.detail-empty p { font-size: 11px; line-height: 1.55; max-width: 220px; margin: 0; }.detail-content { padding: 28px 25px; height: 100%; overflow: auto; }.detail-header { border-bottom: 1px solid var(--line); padding-bottom: 19px; }.detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.detail-back { display: none; }.detail-meta { color: #8f9aab; font-size: 10px; display: flex; align-items: center; gap: 8px; }.detail-nav { display: flex; align-items: center; gap: 4px; }.detail-nav-position { color: #a0aabb; font-size: 10px; min-width: 34px; text-align: center; }.detail-nav-button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #718098; font-size: 15px; line-height: 1; }.detail-nav-button:hover:not(:disabled) { color: var(--teal); border-color: #b9ded8; background: #f3fbf9; }.detail-nav-button:disabled { color: #ccd3de; cursor: default; background: #fafbfc; }.detail-title { font-size: 20px; line-height: 1.24; letter-spacing: -.035em; color: #1d2940; margin: 13px 0 17px; }.detail-participants { display: grid; gap: 5px; color: #7f8ba0; font-size: 11px; }.detail-participants b { color: #4d5c73; font-weight: 650; }.detail-toolbar { display: flex; gap: 6px; padding: 17px 0; border-bottom: 1px solid var(--line); }.detail-action { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; color: #69768b; border-radius: 7px; padding: 7px 9px; font-size: 10px; }.detail-action:hover { border-color: #b9ded8; color: #247e72; background: #f3fbf9; }.detail-action.todo-active { color: #a86a0d; border-color: #efcf97; background: var(--amber-soft); }.detail-body { padding: 22px 0; color: #4c5970; font-size: 12px; line-height: 1.75; }.detail-body p { margin: 0 0 14px; }.detail-body .quote { color: #8a96aa; border-left: 2px solid #dfe5ee; padding-left: 12px; }.detail-footer { border-top: 1px solid var(--line); padding-top: 15px; color: #9aa5b5; font-size: 10px; display: flex; gap: 7px; align-items: center; }.cache-note { display: inline-flex; align-items: center; gap: 5px; color: #7e91a9; }
.mobile-nav-backdrop { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(18,29,49,.46); display: grid; place-items: center; padding: 20px; }.modal { width: min(560px, 100%); max-height: min(690px, 90vh); overflow: auto; background: #fff; border-radius: 15px; box-shadow: 0 30px 80px rgba(14,25,46,.28); padding: 25px; }.modal-header { display: flex; justify-content: space-between; align-items: flex-start; }.modal h2 { color: #1d2940; font-size: 22px; letter-spacing: -.04em; margin: 8px 0 0; }.modal-search { display: flex; gap: 9px; align-items: center; background: #f3f5f9; border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; margin: 22px 0 16px; color: #9aa5b7; }.modal-search:focus-within { border-color: #bfe1dc; background: #fff; }.modal-search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); font-size: 12px; }.account-groups { display: grid; gap: 8px; }.account-group { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }.account-group-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #fbfcfe; }.account-group-head span:nth-child(2) { font-size: 12px; font-weight: 700; color: #45536b; }.account-group-head b { margin-left: auto; color: #9aa5b5; font-size: 10px; }.account-group-items { display: grid; padding: 3px 12px 8px; }.account-group-items div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid #f0f2f6; color: #7e8a9e; font-size: 11px; }.account-group-items div span:last-child { color: #adb6c3; }
.account-mailbox-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 7px 0; border-top: 1px solid #f0f2f6; background: transparent; color: #7e8a9e; font-size: 11px; text-align: left; }.account-mailbox-row:hover { color: #247e72; }.account-mailbox-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.account-mailbox-row span:last-child { color: #adb6c3; white-space: nowrap; }.account-mailbox-row:hover span:last-child { color: #247e72; }
.account-mailbox-open { min-width: 0; flex: 1; display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; background: transparent; color: inherit; font-size: 11px; text-align: left; }.account-mailbox-open:hover { color: #247e72; }.account-mailbox-open span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.account-mailbox-open span:last-child { color: #adb6c3; white-space: nowrap; }
.account-status-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }.account-status-filter { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #fff; color: #7d899d; font-size: 10px; }.account-status-filter:hover { border-color: #b9ded8; color: #247e72; }.account-status-filter.active { border-color: #c8dfdc; background: #eff9f7; color: #176f65; font-weight: 650; }
.mailbox-row-status { align-self: center; color: #adb6c3; font-size: 9px; white-space: nowrap; }.mailbox-sync-status.ok { color: #318c78; }.mailbox-sync-status.error { color: #c50724; }.mailbox-sync-status.syncing { color: #9b6b16; }.account-sync-button { width: 25px; height: 25px; flex: 0 0 auto; align-self: center; border-radius: 6px; background: transparent; color: #9ba7b8; font-size: 14px; line-height: 1; }.account-sync-button:hover { background: #eff9f7; color: #247e72; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 25px; display: flex; align-items: center; gap: 12px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy); color: #fff; border-radius: 8px; padding: 10px 12px 10px 14px; font-size: 11px; box-shadow: 0 12px 30px rgba(17,31,56,.2); transition: .2s ease; }.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }.toast button { border: 1px solid rgba(255,255,255,.35); border-radius: 5px; padding: 4px 7px; background: rgba(255,255,255,.1); color: #fff; font-size: 10px; }.toast button:hover { background: rgba(255,255,255,.2); }.toast button:disabled { opacity: .6; }
[hidden] { display: none !important; }
@media (max-width: 1120px) { .app-shell { grid-template-columns: 220px minmax(480px, 1fr); }.detail-panel { position: fixed; z-index: 10; inset: 0 0 0 auto; width: min(430px, 92vw); box-shadow: -14px 0 40px rgba(20,35,60,.13); transform: translateX(100%); transition: transform .22s ease; }.detail-panel.open { transform: translateX(0); }.detail-back { display: inline-flex; margin-bottom: 18px; } }
@media (max-width: 900px) { .app-shell { display: block; }.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 280px; min-height: 100vh; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 18px 0 40px rgba(15,28,52,.2); }.sidebar.mobile-open { transform: translateX(0); }.mobile-sidebar-close { display: grid; place-items: center; position: absolute; top: 18px; right: 15px; width: 29px; height: 29px; border-radius: 7px; color: #b2bfd7; background: rgba(255,255,255,.08); font-size: 20px; }.mobile-menu-button { display: grid; place-items: center; width: 30px; height: 30px; color: var(--navy); background: transparent; border-radius: 7px; font-size: 19px; }.mobile-menu-button:hover { background: #eef1f6; }.mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 12px; font-weight: 750; white-space: nowrap; }.mobile-nav-backdrop:not([hidden]) { display: block; position: fixed; z-index: 25; inset: 0; background: rgba(18,29,49,.42); }.topbar { height: 64px; padding: 0 16px; gap: 12px; }.detail-panel { width: min(430px, 92vw); } }
@media (max-width: 720px) { .topbar { padding: 0 12px; }.search-box { padding: 8px 9px; }.search-box kbd, .sync-label, .topbar-actions .icon-button { display: none; }.topbar-actions { gap: 7px; }.content-area { padding: 26px 16px 40px; }.page-heading { display: block; }.page-heading h1 { font-size: 23px; }.heading-actions { padding-top: 15px; flex-wrap: wrap; }.focus-strip { overflow-x: auto; padding-top: 20px; }.focus-chip { white-space: nowrap; }.mailbox-folder-tabs { padding-top: 12px; }.list-hint { display: none; }.card-actions { opacity: 1; transform: none; right: 10px; bottom: 10px; }.card-subject { padding-right: 125px; }.detail-panel { width: 100%; }.detail-content { padding: 22px 18px; }.detail-topline { align-items: flex-start; }.detail-nav-position { display: none; }.detail-nav-button { width: 29px; height: 29px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

@media (max-width: 720px) {
  .notification-popover { top: 38px; right: 0; }
}

/* Global header: the brand panel and the workspace controls share one full-width band. */
:root { --topbar-height: 122px; }
.app-shell {
  grid-template-columns: 246px minmax(420px, 1fr) 10px minmax(360px, var(--detail-width));
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  min-height: 100vh;
}
.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar .brand-lockup {
  grid-column: 1;
  width: 246px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 13px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 0;
}
.topbar .brand-logo-frame { width: 220px; height: 100px; }
.topbar .brand-name { font-size: 20px; }
.topbar .brand-caption { font-size: 10px; }
.topbar .search-box {
  grid-column: 2;
  width: auto;
  max-width: none;
  margin-left: 29px;
  margin-right: 20px;
  padding: 14px 16px;
  border-radius: 11px;
}
.topbar .search-box input { font-size: 14px; }
.topbar .search-box kbd { font-size: 11px; padding: 3px 6px; }
.topbar .topbar-actions {
  grid-column: 3;
  margin-right: 29px;
  gap: 15px;
}
.topbar .sync-status { font-size: 12px; }
.topbar .avatar { width: 40px; height: 40px; font-size: 12px; }
.topbar .icon-button { width: 38px; height: 38px; font-size: 21px; }
.sidebar {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  padding-top: 16px;
}
.sidebar-product { display: grid; gap: 4px; padding: 0 10px 17px; margin: 0 0 17px; text-align: center; }
.sidebar-product .brand-name { color: #fff; font-size: 18px; letter-spacing: -.025em; }
.sidebar-product .brand-caption { color: #b8d0d8; font-size: 10px; }
.workspace { grid-column: 2; grid-row: 2; min-height: 0; }
.pane-resizer { grid-column: 3; grid-row: 2; }
.detail-panel {
  grid-column: 4;
  grid-row: 2;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
}
.detail-empty { min-height: calc(100vh - var(--topbar-height)); }

@media (max-width: 1120px) {
  :root { --topbar-height: 122px; }
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  }
  .topbar { grid-template-columns: 220px minmax(0, 1fr) auto; }
  .topbar .brand-lockup { width: 220px; }
  .topbar .brand-logo-frame { width: 196px; height: 94px; }
  .sidebar { grid-column: 1; grid-row: 2; }
  .workspace { grid-column: 2; grid-row: 2; }
  .detail-panel { grid-column: auto; grid-row: auto; top: 0; height: 100vh; }
  .detail-empty { min-height: 100vh; }
}

@media (max-width: 900px) {
  :root { --topbar-height: 64px; }
  .app-shell { display: block; min-height: 100vh; }
  .topbar {
    position: sticky;
    height: var(--topbar-height);
    display: flex;
    padding: 0 16px;
    gap: 12px;
  }
  .topbar .brand-lockup { display: none; }
  .sidebar-product { display: none; }
  .topbar .search-box { flex: 1; width: auto; margin: 0; max-width: none; }
  .topbar .topbar-actions { margin: 0 0 0 auto; }
  .sidebar { position: fixed; inset: 0 auto 0 0; top: 0; height: 100vh; }
  .workspace { min-height: calc(100vh - var(--topbar-height)); }
  .detail-panel { top: 0; height: 100vh; }
}

/* Desktop split view: the mail reader can be widened without sacrificing the inbox. */
:root { --detail-width: 520px; }
@media (min-width: 1121px) {
  .app-shell { grid-template-columns: 246px minmax(420px, 1fr) 10px minmax(360px, var(--detail-width)); }
  .pane-resizer { position: relative; z-index: 13; display: grid; place-items: center; cursor: col-resize; touch-action: none; background: #f1f3f7; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .pane-resizer span { width: 3px; height: 42px; border-radius: 99px; background: #c8d0dc; transition: background .16s ease, height .16s ease; }
  .pane-resizer:hover span, .pane-resizer:focus-visible span, body.is-resizing .pane-resizer span { height: 58px; background: var(--brand-red); }
  .pane-resizer:focus-visible { outline: 3px solid rgba(197,7,36,.18); outline-offset: -3px; }
  body.is-resizing, body.is-resizing * { cursor: col-resize !important; user-select: none !important; }
}
@media (max-width: 1120px) { .pane-resizer { display: none; } }

/* Janzin Holding CI: navy foundation, red action accent, white logo plate. */
:root {
  --brand-blue: #003b52;
  --brand-blue-2: #0b5268;
  --brand-red: #c50724;
  --brand-red-soft: #fbe8ec;
  --navy: var(--brand-blue);
  --navy-2: var(--brand-blue-2);
  --teal: var(--brand-red);
  --teal-soft: var(--brand-red-soft);
  --red: #b00622;
}

.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 10px 31px; }
.brand-logo-frame { width: 142px; height: 72px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-product { min-width: 0; padding-left: 1px; }
.brand-name { font-size: 16px; letter-spacing: -.025em; }
.brand-caption { font-size: 9px; }
.mobile-brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.mobile-logo-frame { width: 64px; height: 25px; display: inline-flex; align-items: center; overflow: hidden; }
.mobile-brand > span:last-child { margin-top: 4px; }
.nav-item.active .nav-icon { color: #ff8095; }
.dot-teal { background: var(--brand-red); }
.search-box:focus-within { border-color: #efc4cc; box-shadow: 0 0 0 4px rgba(197,7,36,.07); }
.message-card.selected { border-color: #e5a4b1; box-shadow: 0 0 0 3px rgba(197,7,36,.1); }
.message-card.unread .card-subject strong { color: var(--brand-blue); }
.row-action:hover { background: var(--brand-red-soft); border-color: #efbdc6; color: var(--brand-red); }
.empty-orbit { color: var(--brand-red); border-color: #efbdc6; background: var(--brand-red-soft); }
.detail-nav-button:hover:not(:disabled) { color: var(--brand-red); border-color: #e5a4b1; background: var(--brand-red-soft); }
.detail-title { color: var(--brand-blue); }
.detail-action:hover { border-color: #e5a4b1; color: var(--brand-red); background: var(--brand-red-soft); }

.mailbox-folder-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.mailbox-folder-tab { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); color: #7d899d; padding: 8px 13px; font-size: 11px; }
.mailbox-folder-tab:hover { border-color: #e5a4b1; color: var(--brand-red); background: #fff; }
.mailbox-folder-tab.active { border-color: #e5a4b1; color: var(--brand-red); background: var(--brand-red-soft); font-weight: 700; box-shadow: 0 3px 10px rgba(197,7,36,.06); }
.folder-loading { padding: 58px 20px; text-align: center; color: #8995a9; font-size: 12px; }
.detail-action.danger { color: var(--brand-red); border-color: #efcbd1; }
.detail-action.danger:hover { background: var(--brand-red-soft); border-color: #e5a4b1; }

/* Brand zones: full-width white panels, centered against the complete sidebar. */
.brand-lockup {
  width: calc(100% + 30px);
  margin: -25px -15px 31px;
  padding: 24px 15px 22px;
  align-items: center;
  text-align: center;
  background: #fff;
}
.brand-logo-frame {
  width: 184px;
  height: 92px;
  justify-content: center;
}
.mobile-logo-frame { width: 74px; height: 29px; }
.brand-product { padding-left: 0; }
.brand-name { color: var(--brand-blue); }
.brand-caption { color: #557181; }
.sidebar-footer {
  width: calc(100% + 30px);
  margin: 0 -15px -18px;
  flex: 0 0 auto;
  padding: 17px 24px 19px;
  background: #fff;
  border-top: 1px solid #dce5ea;
}
.sidebar-footer .health-line { color: #557181; }
.sidebar-footer .sidebar-link { color: #557181; }
.sidebar-footer .sidebar-link:hover { color: var(--brand-blue); background: #edf3f5; }
.account-item.active { color: #fff; background: var(--brand-blue-2); box-shadow: inset 3px 0 0 var(--brand-red); }
.account-item.active b { color: #ffd6dd; }
.account-item.active .domain-dot { background: #ff8095; }

/* Utility panels for the account menu and the small settings surface. */
.view-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.view-title-line h1 { margin-bottom: 0; }
.mailbox-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 6px 9px; border: 1px solid #e8b2bd; border-radius: 7px; color: var(--brand-red); background: #fff7f8; font-size: 10px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 9px rgba(197,7,36,.06); transition: .16s ease; }
.mailbox-link span { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; color: #fff; background: var(--brand-red); font-size: 10px; font-weight: 800; }
.mailbox-link:hover { color: #fff; border-color: var(--brand-red); background: var(--brand-red); transform: translateY(-1px); }
.mailbox-link:hover span { color: var(--brand-red); background: #fff; }
.mailbox-link:focus-visible { outline: 3px solid rgba(197,7,36,.18); outline-offset: 2px; }
.topbar-actions { position: relative; }
.user-menu { position: absolute; z-index: 25; top: 42px; right: 0; width: 208px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 18px 38px rgba(14,25,46,.16); }
.user-menu-identity { display: grid; gap: 3px; padding: 2px 4px 10px; border-bottom: 1px solid #edf0f4; }
.user-menu-identity strong { color: var(--brand-blue); font-size: 12px; }
.user-menu-identity span { color: #8c98aa; font-size: 10px; }
.user-menu-action { width: 100%; margin-top: 9px; padding: 8px 9px; border-radius: 7px; color: #65738a; background: transparent; text-align: left; font-size: 11px; }
.user-menu-action:hover { color: var(--brand-red); background: var(--brand-red-soft); }
.notification-wrap { position: relative; }
.notification-button { position: relative; }
.notification-badge { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; padding: 0 3px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 99px; background: var(--brand-red); color: #fff; font-size: 8px; font-weight: 800; line-height: 1; }
.notification-popover { position: absolute; z-index: 25; top: 42px; right: 42px; width: 320px; max-width: calc(100vw - 28px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 18px 38px rgba(14,25,46,.16); }
.notification-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid #edf0f4; color: var(--brand-blue); font-size: 12px; }
.notification-close { width: 24px; height: 24px; border-radius: 6px; background: transparent; color: #8c98aa; font-size: 18px; line-height: 1; }
.notification-close:hover { color: var(--brand-red); background: var(--brand-red-soft); }
.notification-body { max-height: 390px; overflow: auto; }
.notification-summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff9fa; color: var(--brand-red); text-align: left; font-size: 10px; }
.notification-summary:hover { background: var(--brand-red-soft); }
.notification-summary b { font-size: 14px; margin-right: 4px; }
.notification-summary span:last-child { color: #9a6670; white-space: nowrap; }
.notification-section { padding: 5px 14px 9px; }
.notification-section-title { padding: 8px 0 5px; color: #9aa5b5; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; }
.notification-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f0f2f5; }
.notification-item:last-child { border-bottom: 0; }
.notification-item-dot { width: 6px; height: 6px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--brand-red); }
.notification-item strong, .notification-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item strong { max-width: 260px; color: #344158; font-size: 11px; font-weight: 700; }
.notification-item div span { max-width: 260px; margin-top: 3px; color: #8c98aa; font-size: 10px; }
.notification-error .notification-item-dot { background: #d58d20; }
.notification-empty { display: grid; gap: 5px; padding: 24px 16px; color: #8995a9; text-align: center; font-size: 10px; }
.notification-empty strong { color: #53627a; font-size: 12px; }
.settings-list { display: grid; gap: 0; margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.settings-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 14px; border-bottom: 1px solid #edf0f4; }
.settings-row:last-child { border-bottom: 0; }
.settings-row span { color: #8b97a9; font-size: 11px; }
.settings-row strong { color: #445269; font-size: 11px; font-weight: 650; text-align: right; }
.settings-actions { display: flex; justify-content: flex-end; padding-top: 18px; }
.sync-status { transition: color .16s ease; }
.sync-status.is-error { color: var(--brand-red); }
.sync-status.is-error .health-dot { background: var(--brand-red); box-shadow: 0 0 0 4px rgba(197,7,36,.12); }
.settings-row strong { max-width: 68%; }
.settings-preferences { display: grid; gap: 14px; margin-top: 16px; padding: 16px; border: 1px solid #dfe9e8; border-radius: 12px; background: linear-gradient(135deg, #f6fbfa 0%, #fff 68%); }
.settings-preferences-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-preferences-kicker { color: #6c9b96; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.settings-preferences h3 { margin: 3px 0 0; color: var(--brand-blue); font-size: 14px; letter-spacing: -.02em; }
.settings-preferences-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--brand-red); background: #fff0f2; font: 750 12px/1 Georgia, serif; }
.settings-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #66758a; font-size: 11px; }
.settings-field select { min-width: 138px; border: 1px solid #cfe0de; border-radius: 7px; padding: 8px 9px; color: #42556b; background: #fff; font: inherit; }
.settings-field select:focus, .settings-check input:focus-visible { outline: 3px solid rgba(45, 139, 128, .18); outline-offset: 2px; }
.settings-check { display: flex; align-items: flex-start; gap: 9px; color: #42556b; font-size: 11px; cursor: pointer; }
.settings-check input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--brand-blue); }
.settings-check span { display: grid; gap: 4px; }
.settings-check small { color: #8b97a9; font-size: 10px; line-height: 1.4; }
.account-group-head { padding: 0; flex-wrap: wrap; }
.account-group-select { min-width: 0; width: calc(100% - 54px); max-width: calc(100% - 54px); flex: 1 1 auto; display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: transparent; color: inherit; text-align: left; }
.account-group-select:hover { background: #f3fbf9; }
.account-group-select span:nth-child(2) { font-size: 12px; font-weight: 700; color: #45536b; }
.account-group-select b { margin-left: auto; color: #9aa5b5; font-size: 10px; font-weight: 600; }
.favorite-account { width: 34px; height: 34px; margin-right: 5px; border-radius: 7px; background: transparent; color: #b7c0cc; font-size: 17px; line-height: 1; }
.favorite-account:hover, .favorite-account.active { background: #fff4d8; color: #bd7c13; }
.account-sync-interval { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1 1 100%; order: 3; padding: 7px 12px 8px; border-top: 1px solid #f0f2f6; color: #8996a9; background: #fff; font-size: 10px; white-space: nowrap; }
.favorite-account { order: 2; }
.account-sync-interval select { min-width: 142px; border: 1px solid #dce5eb; border-radius: 6px; padding: 5px 7px; background: #fff; color: #5e6d82; font: inherit; cursor: pointer; pointer-events: auto; }
.account-sync-interval select:focus { outline: 2px solid rgba(45,139,128,.18); border-color: #a6d3cd; }
.account-item.favorite { color: #fff; }
.account-item.favorite b { color: #d8fff7; }
.detail-display-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.snooze-select, .snooze-date-input { border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; background: #fff; color: #69768b; font-size: 10px; }.snooze-select:focus, .snooze-date-input:focus { outline: 2px solid #cfe5e1; border-color: #9ccfc7; }
.detail-display-label { color: #8b97aa; font-size: 10px; margin-right: 3px; }
.detail-view-button { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #68768c; padding: 6px 8px; font-size: 10px; }
.detail-view-button:hover:not(:disabled) { border-color: #b9ded8; color: #247e72; background: #f3fbf9; }
.detail-view-button.active { border-color: #c8dfdc; color: #176f65; background: #eff9f7; font-weight: 650; }
.detail-view-button:disabled { color: #c5cbd5; background: #fafbfc; cursor: default; }
.detail-body .plain-message-body { overflow-wrap: anywhere; }
.detail-body .html-message-body { max-width: 100%; overflow-wrap: anywhere; }
.html-message-body table { max-width: 100%; border-collapse: collapse; }
.html-message-body img { max-width: 100%; height: auto; }
.blocked-image { display: inline-flex; align-items: center; border: 1px dashed #cbd3df; border-radius: 5px; padding: 3px 7px; color: #8c98aa; background: #f8fafc; font-size: 10px; line-height: 1.4; }
.participants-line { display: flex; align-items: baseline; gap: 9px; min-width: 0; padding-left: 15px; color: #9aa5b6; font-size: 10px; white-space: nowrap; overflow: hidden; }
.participants-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.participants-line b { color: #65738b; font: 600 9px/1.3 "SFMono-Regular", Consolas, monospace; }
.participants-line i { flex: 0 0 auto; padding: 0 2px; color: #c0c8d3; font-style: normal; }
