/* Brightery Mail Premium 4.7 — optional, local stylesheet; classic rules remain unchanged. */
/* Shared appearance selector. */
.interface-theme-picker{border:0;padding:0;margin:0 0 28px;min-width:0}
.interface-theme-picker legend{font-size:15px;font-weight:700;color:var(--text)}
.interface-theme-picker>p{font-size:13px;color:var(--muted);line-height:1.6;margin:8px 0 16px}
.interface-theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.interface-theme-option{min-width:0;display:flex;flex-direction:column;gap:12px;position:relative;padding:12px;border:1px solid var(--border);border-radius:12px;cursor:pointer;background:var(--surface2)}
.interface-theme-option:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 2px var(--blue-bg)}
.interface-theme-option:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.interface-theme-option input{position:absolute;top:18px;right:18px;accent-color:var(--accent);width:18px;height:18px;z-index:1}
.theme-mini{display:block;position:relative;height:100px;overflow:hidden;background:#f1f5f9;border:1px solid #dbe2eb;border-radius:7px}
.theme-mini i{position:absolute;left:0;top:0;right:0;height:20px;background:#fff;border-bottom:1px solid #e2e8f0}
.theme-mini b{position:absolute;left:0;top:20px;bottom:0;width:25%;background:#e2e8f0}
.theme-mini em{position:absolute;left:32%;right:8%;top:34px;height:8px;background:#93b4eb;border-radius:3px;box-shadow:0 17px #d5deec,0 34px #d5deec,0 51px #d5deec}
.theme-mini-classic{background:#17243a;border-color:#334155}.theme-mini-classic i{background:#0f172a;border-color:#334155}.theme-mini-classic b{background:#24354d}.theme-mini-classic em{background:#638fe2;box-shadow:0 17px #435673,0 34px #435673,0 51px #435673}
.theme-option-text strong,.theme-option-text small{display:block}.theme-option-text strong{font-size:14px;color:var(--text)}.theme-option-text small{font-size:12px;color:var(--muted);line-height:1.5;margin-top:5px}
@media(max-width:430px){.interface-theme-options{grid-template-columns:1fr}}
body[data-interface-theme="premium"]{--ui-radius:10px;--ui-radius-lg:16px;--ui-gap:8px;--ui-touch:40px;--ui-focus:var(--accent);--ui-primary:#2563eb;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}
body[data-interface-theme="premium"][data-theme="light"]{--page:#f3f6fa;--surface:#fff;--surface2:#f8fafc;--surface3:#eef2f7;--hover:#edf2f8;--border:#dbe3ed;--muted:#52637a;--text:#17243a;--accent:#1d4ed8;--blue-bg:#eaf1ff;--ui-danger:#b4233b;--shadow:0 18px 55px #17243a1a}
body[data-interface-theme="premium"][data-theme="dark"]{--page:#0b111c;--surface:#141e2e;--surface2:#101a29;--surface3:#202e42;--hover:#26364c;--border:#344258;--muted:#b1bfd2;--text:#f0f4fa;--accent:#9ac0ff;--blue-bg:#243b60;--ui-danger:#ff9aab;--shadow:0 18px 55px #0008}
body[data-interface-theme="premium"] :is(button,a,input,select,textarea,[tabindex],[contenteditable]):focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
body[data-interface-theme="premium"] :is(button,input,textarea,select){font-family:inherit}
body[data-interface-theme="premium"] :is(button,.secondary){touch-action:manipulation}
body[data-interface-theme="premium"] .topbar{height:64px;min-height:64px;padding-inline:24px;gap:20px;background:var(--surface)}
body[data-interface-theme="premium"] .wordmark strong{font-size:15px;font-weight:700;letter-spacing:-.025em}
body[data-interface-theme="premium"] .brand-icon{background:transparent url("/assets/favicon.svg?v=4.7.1") center/contain no-repeat;font-size:0;box-shadow:none}
body[data-interface-theme="premium"] .brand-icon.small{width:36px;height:36px;border-radius:10px}
body[data-interface-theme="premium"] .submark{display:none}
body[data-interface-theme="premium"] .search-shell{min-width:0;max-width:640px}
body[data-interface-theme="premium"] .search-shell input{height:42px;font-size:14px;padding-inline-start:42px;border:1px solid var(--border);background:var(--surface2)}
body[data-interface-theme="premium"] .search-shell>span{top:11px;left:13px;width:20px;height:20px}
body[data-interface-theme="premium"] .top-actions{gap:6px}
body[data-interface-theme="premium"] .icon-button{width:40px;min-width:40px;height:40px;border-radius:var(--ui-radius)}
body[data-interface-theme="premium"] .avatar{width:38px;height:38px}
body[data-interface-theme="premium"] .workspace{background:var(--page);min-width:0}
body[data-interface-theme="premium"] .sidebar{width:248px;background:var(--surface);border-color:var(--border)}
body[data-interface-theme="premium"] .sidebar-scroll{padding-block:16px}
body[data-interface-theme="premium"] .sidebar-padding{padding:8px 16px 14px}
body[data-interface-theme="premium"] .compose-launch .compose-cta{min-height:44px;font-size:14px;background:var(--ui-primary);box-shadow:none;border-radius:var(--ui-radius)}
body[data-interface-theme="premium"] .compose-launch .compose-picker{min-height:44px}
body[data-interface-theme="premium"] .nav-caption{font-size:11px;letter-spacing:.06em;font-weight:700;padding:19px 20px 9px}
body[data-interface-theme="premium"] .nav-list{padding:0 12px;gap:4px}
body[data-interface-theme="premium"] .nav-list button{min-height:42px;padding:9px 12px;font-size:14px;font-weight:500;border-radius:8px;gap:12px}
body[data-interface-theme="premium"] .nav-list button.active{font-weight:650}
body[data-interface-theme="premium"] .nav-list button .count{font-size:12px}
body[data-interface-theme="premium"] .sidebar-footer{margin:12px;padding:12px;gap:10px}
body[data-interface-theme="premium"] .sidebar-footer strong,body[data-interface-theme="premium"] .sidebar-footer small{font-size:12px}
body[data-interface-theme="premium"] .sidebar-footer button{min-width:32px;min-height:36px}
body[data-interface-theme="premium"] .mail-panel{min-width:0;flex-basis:420px;background:var(--surface)}
body[data-interface-theme="premium"] .list-header{padding:20px 20px 0}
body[data-interface-theme="premium"] .heading-line h2{font-size:25px;font-weight:700;letter-spacing:-.035em;margin:4px 0 16px}
body[data-interface-theme="premium"] .heading-line small{font-size:11px;letter-spacing:.07em}
body[data-interface-theme="premium"] .chips{gap:6px;padding-bottom:14px}
body[data-interface-theme="premium"] .chips button{min-height:34px;font-size:13px;border-radius:8px;padding:5px 12px}
body[data-interface-theme="premium"] .chips button.active{background:var(--blue-bg);color:var(--accent);border-color:transparent;box-shadow:none}
body[data-interface-theme="premium"] .inbox-command-bar{flex-wrap:wrap;overflow:visible;gap:8px;padding:8px;border-radius:10px;min-height:48px}
body[data-interface-theme="premium"] .inbox-command-bar .bulk-toolbar:not(.hidden){min-width:0;max-width:100%;flex:1 1 auto;flex-wrap:wrap;gap:6px}
body[data-interface-theme="premium"] .inbox-command-bar .bulk-toolbar .bulk-actions{flex-wrap:wrap;min-width:0;max-width:100%;padding:0;border:0}
body[data-interface-theme="premium"] .inbox-command-bar .bulk-toolbar:not(.has-selection) .bulk-actions{display:none}
body[data-interface-theme="premium"] .inbox-command-bar .bulk-toolbar .select-all,body[data-interface-theme="premium"] .inbox-command-bar .bulk-toolbar .bulk-actions button{min-height:36px;font-size:12px}
body[data-interface-theme="premium"] .inbox-command-bar .bulk-toolbar .bulk-count{font-size:12px}
body[data-interface-theme="premium"] .inbox-command-bar .view-preferences{min-width:0;max-width:100%;flex:0 1 auto;flex-wrap:wrap;border:0;padding:0;margin-inline-start:auto}
body[data-interface-theme="premium"] .inbox-command-bar .view-switch button{min-height:32px;font-size:12px}
body[data-interface-theme="premium"] .list-controls{font-size:12px;min-height:44px}
body[data-interface-theme="premium"] .list-controls button{width:34px;height:34px}
body[data-interface-theme="premium"] .message-row,body[data-interface-theme="premium"] .message-list.compact .message-row{padding:14px 20px}
body[data-interface-theme="premium"] .message-row .sender,body[data-interface-theme="premium"] .message-row h3{font-size:14px;line-height:1.5}
body[data-interface-theme="premium"] .message-row p{font-size:13px;line-height:1.55}
body[data-interface-theme="premium"] .message-row .row-top time.message-timestamp,body[data-interface-theme="premium"] .message-row .message-absolute-date,body[data-interface-theme="premium"] .message-row .message-clock-and-age{font-size:11px}
body[data-interface-theme="premium"] .message-footer,body[data-interface-theme="premium"] .mailbox-tag,body[data-interface-theme="premium"] .unread-pill,body[data-interface-theme="premium"] .spam-score-badge{font-size:11px}
body[data-interface-theme="premium"] .message-footer .star{min-width:32px;min-height:32px}
body[data-interface-theme="premium"] .avatar-select{width:40px;height:40px;flex-basis:40px}
body[data-interface-theme="premium"] .message-row.unread{background:color-mix(in srgb,var(--blue-bg) 48%,var(--surface))}
body[data-interface-theme="premium"] .message-row.active,body[data-interface-theme="premium"] .message-row.bulk-selected{background:var(--blue-bg)}
body[data-interface-theme="premium"] .reader{background:var(--page)}
body[data-interface-theme="premium"] .reader-tools{flex-wrap:wrap;gap:8px;padding:14px 0;background:var(--page)}
body[data-interface-theme="premium"] .reader-tools button,body[data-interface-theme="premium"] .reader-tools .reader-quick-tools button{min-height:36px;font-size:13px}
body[data-interface-theme="premium"] .reader-tools button.danger{color:var(--ui-danger)}
body[data-interface-theme="premium"] .reader-tools button.danger:hover{color:white}
body[data-interface-theme="premium"] .reader-content .read-title{font-size:clamp(23px,2.1vw,30px);font-weight:700;line-height:1.3;overflow-wrap:anywhere}
body[data-interface-theme="premium"] .thread-card{border-radius:var(--ui-radius-lg);box-shadow:none}
body[data-interface-theme="premium"] .thread-sender{padding:16px;gap:12px}
body[data-interface-theme="premium"] .thread-sender-info strong{font-size:14px}
body[data-interface-theme="premium"] .thread-sender-info small,body[data-interface-theme="premium"] .thread-time,body[data-interface-theme="premium"] .thread-meta{font-size:12px}
body[data-interface-theme="premium"] .thread-content{padding:8px 20px 24px}
body[data-interface-theme="premium"] .read-body{font-size:15px;line-height:1.75}
body[data-interface-theme="premium"] .empty-reader{max-width:380px}
body[data-interface-theme="premium"] .empty-reader .empty-graphic{display:grid;place-items:center;background:var(--blue-bg);border-radius:20px;width:72px;height:72px;margin:0 auto 20px;color:var(--accent)}
body[data-interface-theme="premium"] .empty-reader h2{font-size:20px;letter-spacing:-.02em}
body[data-interface-theme="premium"] .empty-reader p{font-size:14px}
body[data-interface-theme="premium"] .primary{min-height:40px;border-radius:var(--ui-radius);background:var(--ui-primary);box-shadow:none;font-size:14px;font-weight:650}
body[data-interface-theme="premium"] .secondary{min-height:36px;border-radius:var(--ui-radius);font-size:13px}
body[data-interface-theme="premium"] .field{font-size:13px;color:var(--text);font-weight:600}
body[data-interface-theme="premium"] .field :is(input,select,textarea){font-size:14px;min-height:42px;background:var(--surface);border-radius:8px}
body[data-interface-theme="premium"] .settings-main,body[data-interface-theme="premium"] .compose-page-body,body[data-interface-theme="premium"] .settings-nav{border-radius:var(--ui-radius-lg);box-shadow:none}
body[data-interface-theme="premium"] .settings-nav button{font-size:14px;min-height:44px}
body[data-interface-theme="premium"] .settings-section-heading h2{font-size:22px}
body[data-interface-theme="premium"] .settings-section-heading p,body[data-interface-theme="premium"] .settings-hint,body[data-interface-theme="premium"] .settings-bottom-actions .helper{font-size:13px}
body[data-interface-theme="premium"] .settings-account-info strong,body[data-interface-theme="premium"] .admin-user-details strong{font-size:14px}
body[data-interface-theme="premium"] .settings-account-info small,body[data-interface-theme="premium"] .admin-user-details small{font-size:12px}
body[data-interface-theme="premium"] .admin-mailcow-toggle input{accent-color:var(--accent)}
body[data-interface-theme="premium"] .modal{border-radius:var(--ui-radius-lg)}
body[data-interface-theme="premium"] .modal-header h2{font-size:21px}
body[data-interface-theme="premium"] .modal-header small{font-size:11px}
body[data-interface-theme="premium"] .html-editor{font-size:15px;line-height:1.7}
body[data-interface-theme="premium"] .editor-toolbar button{min-width:36px;height:36px;font-size:14px}
body[data-interface-theme="premium"] .studio-hint,body[data-interface-theme="premium"] .studio-footer .helper,body[data-interface-theme="premium"] .compose-settings{font-size:12px}
body[data-interface-theme="premium"] .toast{font-size:14px;max-width:min(440px,calc(100vw - 24px));right:12px;bottom:16px}
body[data-interface-theme="premium"] .menu-pop{border-radius:var(--ui-radius-lg);max-width:calc(100vw - 24px)}
body[data-interface-theme="premium"] [data-premium-icon]{font-size:0}
body[data-interface-theme="premium"] [data-premium-icon]::before{content:"";display:inline-block;width:20px;height:20px;vertical-align:middle;background:currentColor;mask:var(--premium-icon) center/contain no-repeat;-webkit-mask:var(--premium-icon) center/contain no-repeat}
body[data-interface-theme="premium"] .empty-graphic[data-premium-icon]::before{width:36px;height:36px}
body[data-interface-theme="premium"] .nav-list button>span[data-premium-icon]:first-child{font-size:0;width:20px;flex:0 0 20px}
body[data-interface-theme="premium"] .compose-cta>span[data-premium-icon]:first-child{font-size:0}
body[data-interface-theme="premium"] .sidebar-footer button[data-premium-icon]{font-size:0}
body[data-interface-theme="premium"] [data-premium-icon="menu"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16M4%2012h16M4%2018h16%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="search"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22m16%2016%204%204%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="settings"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M12%202v3m0%2014v3M2%2012h3m14%200h3M5%205l2%202m10%2010%202%202M5%2019l2-2M17%207l2-2%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="plus"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="inbox"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204h16l2%2010v6H2v-6zM2%2014h6l2%203h4l2-3h6%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="send"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m22%202-7%2020-4-9-9-4%2020-7ZM22%202%2011%2013%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="clock"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="file"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h10l4%204v14H5zM15%203v5h4M8%2012h8M8%2016h8%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="archive"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%225%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M5%208v13h14V8M10%2012h4%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="trash"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7M14%2010v7%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="shield"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%204%206v6c0%205%204%208%208%2010%204-2%208-5%208-10V6zM12%208v5m0%204h.01%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="layers"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%2010%205-10%205L2%208zM2%2012l10%205%2010-5M2%2016l10%205%2010-5%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="mail"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%206%209%207%209-7%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="star"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%203%206%207%201-5%205%201%207-6-3-6%203%201-7-5-5%207-1z%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="paperclip"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%2013%207-7a4%204%200%200%201%206%206L10%2023a6%206%200%200%201-8-8L13%204a2%202%200%200%201%203%203l-9%209%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"] [data-premium-icon="refresh"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207V3m0%204h-4M4%2017v4m0-4h4M20%207a9%209%200%200%200-15-2M4%2017a9%209%200%200%200%2015%202%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"][data-theme="light"] [data-premium-icon="color-mode"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2015a9%209%200%200%201-11-11%209%209%200%201%200%2011%2011z%22%2F%3E%3C%2Fsvg%3E")}
body[data-interface-theme="premium"][data-theme="dark"] [data-premium-icon="color-mode"]{--premium-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%202v2m0%2016v2M2%2012h2m16%200h2M5%205l2%202m10%2010%202%202M5%2019l2-2M17%207l2-2%22%2F%3E%3C%2Fsvg%3E")}
@media (min-width:761px) and (max-width:1100px){body[data-interface-theme="premium"] .sidebar{width:210px}body[data-interface-theme="premium"] .mail-panel{flex-basis:350px}body[data-interface-theme="premium"] .topbar{padding-inline:16px;gap:12px}}
@media (max-width:760px){
body[data-interface-theme="premium"] .topbar{height:64px;min-height:64px;gap:6px;padding-inline:10px}
body[data-interface-theme="premium"] .sidebar{top:64px;width:248px}
body[data-interface-theme="premium"] .mail-panel{flex-basis:100%;max-width:none}
body[data-interface-theme="premium"] .list-header{padding:14px 12px 0}
body[data-interface-theme="premium"] .message-row,body[data-interface-theme="premium"] .message-list.compact .message-row,body[data-interface-theme="premium"] .app.full-list-mode .message-list:not(.compact) .message-row{padding:12px}
body[data-interface-theme="premium"] .inbox-command-bar .bulk-toolbar .bulk-actions button{min-width:40px;min-height:40px}
body[data-interface-theme="premium"] .inbox-command-bar .view-switch button{min-height:36px}
body[data-interface-theme="premium"] .reader-tools .reader-quick-tools button{min-height:40px}
body[data-interface-theme="premium"] .thread-content{padding:8px 12px 20px}
body[data-interface-theme="premium"] .field :is(input,select,textarea),body[data-interface-theme="premium"] .search-shell input{font-size:16px}
}
@media (max-width:480px){
body[data-interface-theme="premium"] .topbar{display:grid;grid-template-columns:auto auto minmax(0,1fr);grid-template-rows:44px 42px;min-height:100px;height:auto;gap:4px 8px;padding:4px 10px 8px}
body[data-interface-theme="premium"] .topbar .mobile-menu{grid-column:1;grid-row:1}
body[data-interface-theme="premium"] .topbar .wordmark{grid-column:2;grid-row:1}
body[data-interface-theme="premium"] .topbar .top-actions{grid-column:3;grid-row:1;justify-content:flex-end;gap:2px}
body[data-interface-theme="premium"] .topbar .search-shell{grid-row:2;grid-column:1/-1;max-width:none;width:100%;margin:0}
body[data-interface-theme="premium"] .search-shell input{padding-inline-end:12px;height:40px}
body[data-interface-theme="premium"] .sidebar{top:100px}
body[data-interface-theme="premium"] .top-actions .icon-button{width:36px;min-width:36px;height:40px}
body[data-interface-theme="premium"] .inbox-command-bar .view-preferences{margin-inline-start:0}
body[data-interface-theme="premium"] .heading-line h2{font-size:23px}
body[data-interface-theme="premium"] .message-row .row-top time.message-timestamp{max-width:44%}
body[data-interface-theme="premium"] .message-row .message-clock-and-age{font-size:10px}
body[data-interface-theme="premium"] .settings-main,body[data-interface-theme="premium"] .compose-page-body{padding:14px}
}
@media (prefers-reduced-motion:reduce){body[data-interface-theme="premium"] :is(button,.message-row,.sidebar,.nav-list button){transition:none!important;scroll-behavior:auto!important}}
@media print{body[data-interface-theme="premium"] .read-body{color:#111}}

/* v4.8.0 compact inbox controls */
body .mail-panel .list-header.compact-inbox-header{padding:7px 12px 0;position:relative;z-index:3}
body .compact-inbox-header .inbox-command-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:37px;padding:3px 0 7px;margin:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;overflow:visible}
body .compact-inbox-header .compact-inbox-title{display:flex;align-items:center;margin:0;min-width:0;flex:0 1 auto;padding:0}
body .compact-inbox-header .compact-inbox-title>div{display:flex;align-items:baseline;gap:7px;min-width:0}
body .compact-inbox-header .heading-line h2{margin:0;font-size:18px;line-height:1.2;letter-spacing:-.035em;white-space:nowrap}
body .compact-inbox-header .heading-line small{font-size:9px;letter-spacing:.035em;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;order:2;color:var(--muted)}
body .compact-inbox-header .inbox-command-bar .bulk-toolbar:not(.hidden){display:flex;flex:0 0 auto;min-width:0;max-width:100%;gap:5px;padding:0;margin:0;border:0;background:transparent}
body .compact-inbox-header .inbox-command-bar .select-all{padding:5px 6px;min-height:30px;border-radius:6px;border:0;background:transparent}
body .compact-inbox-header .inbox-command-bar .select-all span{display:none!important}
body .compact-inbox-header .inbox-command-bar .bulk-count{min-height:0;min-width:0;padding:2px 5px;font-size:10px;border:0;background:transparent}
body .compact-inbox-header .inbox-command-bar .bulk-count.hidden,body .compact-inbox-header .bulk-close.hidden,body .compact-inbox-header .bulk-toolbar:not(.has-selection) .bulk-menu{display:none!important}
body .compact-inbox-header .inbox-command-bar .bulk-close{width:26px;height:28px;flex-basis:26px}
body .compact-inbox-header .inbox-menu{position:relative;flex:0 0 auto;min-width:0}
body .compact-inbox-header .inbox-menu summary{display:flex;align-items:center;gap:5px;min-height:30px;padding:4px 7px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);font-size:11px;font-weight:650;cursor:pointer;list-style:none;white-space:nowrap}
body .compact-inbox-header .inbox-menu summary::-webkit-details-marker{display:none}
body .compact-inbox-header .inbox-menu[open] summary{color:var(--accent);background:var(--blue-bg)}
body .compact-inbox-header .inbox-menu:not([open])>.inbox-menu-popup{display:none!important}
body .compact-inbox-header .inbox-menu-popup{position:absolute;top:calc(100% + 5px);left:0;z-index:25;min-width:148px;padding:7px!important;border:1px solid var(--border)!important;border-radius:10px!important;background:var(--surface)!important;box-shadow:0 8px 28px #0002}
body .compact-inbox-header .inbox-menu-popup .chips,body .compact-inbox-header .inbox-menu-popup.bulk-actions{display:grid;gap:3px;width:max-content;min-width:145px;max-width:250px;margin:0;padding:0;background:transparent;overflow:visible}
body .compact-inbox-header .inbox-menu-popup .chips button,body .compact-inbox-header .inbox-menu-popup.bulk-actions button{display:flex;justify-content:flex-start;gap:8px;width:100%;min-height:32px;padding:6px 9px;border:0;border-radius:6px;font-size:12px;text-align:left;white-space:nowrap}
body .compact-inbox-header .inbox-menu-popup.bulk-actions .action-label{display:inline!important}
body .compact-inbox-header .view-popup{min-width:202px;left:auto;right:0}
body .compact-inbox-header .view-popup>small{display:block;padding:4px 6px;font-size:9px;color:var(--muted)}
body .compact-inbox-header .view-popup .view-preferences{display:grid;gap:6px;padding:0;margin:0;min-width:0;border:0}
body .compact-inbox-header .view-popup .view-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}
body .compact-inbox-header .view-popup .view-switch button{min-height:29px;padding:5px 7px;font-size:11px}
body .compact-inbox-header .inbox-toolbar-spacer{flex:1 1 0}
body .compact-inbox-header .inbox-sync-activity{flex:0 1 auto;min-width:0;max-width:200px;min-height:0;margin:0;padding:0;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
body .compact-inbox-header .inbox-sync-activity::before{margin-right:5px;vertical-align:middle}
body .compact-inbox-header .list-controls{display:flex;align-items:center;flex:0 0 auto;gap:5px;width:auto;margin:0;padding:0;border:0;min-height:0;font-size:10px;white-space:nowrap}
body .compact-inbox-header .list-controls #listCount,body .compact-inbox-header .list-controls #listPage{margin:0}
body .compact-inbox-header .list-controls button,body .compact-inbox-header #listRefresh{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;margin:0;border-radius:6px;font-size:15px}
body .compact-inbox-header .bulk-scope:not(.hidden),body .compact-inbox-header .bulk-job-progress:not(.hidden){margin:5px 0;padding:5px 8px;font-size:11px}
@media(max-width:760px){body .mail-panel .list-header.compact-inbox-header{padding:5px 9px 0}body .compact-inbox-header .inbox-command-bar{gap:4px}body .compact-inbox-header .heading-line h2{font-size:16px}body .compact-inbox-header .heading-line small{display:none}body .compact-inbox-header .inbox-menu summary{min-height:36px}body .compact-inbox-header .list-controls button,body .compact-inbox-header #listRefresh{width:36px;height:36px}body .compact-inbox-header .inbox-sync-activity{max-width:none;flex:1 1 100%;order:9}body .compact-inbox-header .inbox-sync-activity[data-mode=idle]{display:none}body .compact-inbox-header .list-controls{margin-left:auto}}

body .compact-inbox-header .inbox-menu[open]>.inbox-menu-popup.bulk-actions{display:grid;position:absolute;top:calc(100% + 5px);left:0;z-index:25;min-width:145px;width:max-content;margin:0;padding:7px!important;border:1px solid var(--border)!important;border-radius:10px!important;background:var(--surface)!important;box-shadow:0 8px 28px #0002}
body .compact-inbox-header .inbox-menu[open]>.inbox-menu-popup.bulk-actions button{justify-content:flex-start;width:100%;padding:6px 9px;min-height:32px}
body .compact-inbox-header .inbox-command-bar .bulk-toolbar .select-all{min-height:30px;padding:4px 6px}
body .compact-inbox-header .inbox-command-bar .bulk-toolbar .bulk-count{font-size:10px;padding:2px 4px}
body .compact-inbox-header .inbox-command-bar .bulk-toolbar:not(.hidden){flex:0 0 auto;min-width:0}
body .compact-inbox-header .inbox-sync-activity[data-mode=idle]{display:block;max-width:170px}
@media(max-width:760px){body .compact-inbox-header .inbox-sync-activity[data-mode=idle]{display:block;flex:0 1 auto;max-width:100%;font-size:10px;order:9}}

/* v4.8.1: direct one-click archive, delete and spam controls. */
body .compact-inbox-header .bulk-direct{display:flex;align-items:center;gap:2px;flex:0 0 auto}
body .compact-inbox-header .bulk-direct button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;min-width:30px;padding:5px 7px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font-size:11px;font-weight:650;white-space:nowrap}
body .compact-inbox-header .bulk-direct button svg{width:16px;height:16px;flex-shrink:0}
body .compact-inbox-header .bulk-direct button:disabled{opacity:.38;cursor:default}
body .compact-inbox-header .bulk-direct button:hover:not(:disabled){background:var(--blue-bg);color:var(--accent);border-color:var(--border)}
body .compact-inbox-header .bulk-direct .bulk-danger{color:#c84d61}
body .compact-inbox-header .bulk-direct button.hidden{display:none!important}
body .compact-inbox-header .bulk-direct .action-label{display:none}
body .compact-inbox-header .bulk-direct #bulkSpam .action-label{display:inline;font-size:10px}
@media(min-width:1200px){body .compact-inbox-header .bulk-direct .action-label{display:inline}}
@media(max-width:760px){body .compact-inbox-header .bulk-direct button{min-width:34px;min-height:36px;padding:5px}body .compact-inbox-header .bulk-direct #bulkSpam .action-label{display:none}}

/* v4.8.3: safety circle and dedicated trailing timestamp column. */
.mail-safety-score{display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:2px solid currentColor;border-radius:50%;font:750 11px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;vertical-align:middle;box-sizing:border-box}
.mail-safety-score strong{font:inherit}
.mail-safety-score.safety-safe{color:#16794b;background:#e6f6ee}
.mail-safety-score.safety-review{color:#a55a0a;background:#fff1d9}
.mail-safety-score.safety-danger{color:#ba3048;background:#ffebef}
.mail-safety-score.safety-pending{color:var(--muted);background:var(--surface3);border-style:dashed}
body[data-theme=dark] .mail-safety-score.safety-safe{color:#77e2a6;background:#153c2d}
body[data-theme=dark] .mail-safety-score.safety-review{color:#ffc174;background:#4c321a}
body[data-theme=dark] .mail-safety-score.safety-danger{color:#ffa1af;background:#49232e}
body .message-list .message-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);column-gap:12px;align-items:center}
body .message-list .message-row>.row-top,body .message-list .message-row>h3,body .message-list .message-row>p,body .message-list .message-row>.message-footer{grid-column:1;min-width:0}
body .message-list .message-row>.message-end-time{grid-column:2;grid-row:1 / span 4;align-self:center;justify-self:end;min-width:0;max-width:116px;text-align:right}
body .message-row .message-end-time time.message-timestamp{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted);line-height:1.3}
body .message-row .message-end-time .message-clock-and-age{flex-direction:column;align-items:flex-end;gap:2px}
body .message-row .message-end-time .message-time-separator{display:none}
body .message-row .message-footer{min-width:0;gap:6px}
body .message-row .message-footer .mailbox-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .message-row .message-footer .star{margin-left:0}
@media(min-width:761px){
 body .app.full-list-mode .message-list.compact .message-row{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(100px,1.8fr) minmax(0,auto) minmax(100px,auto);gap:12px;align-items:center}
 body .app.full-list-mode .message-list.compact .message-row>.row-top{grid-column:1;grid-row:1}
 body .app.full-list-mode .message-list.compact .message-row>h3{grid-column:2;grid-row:1}
 body .app.full-list-mode .message-list.compact .message-row>.message-footer{grid-column:3;grid-row:1;justify-content:flex-end}
 body .app.full-list-mode .message-list.compact .message-row>.message-end-time{grid-column:4;grid-row:1;max-width:150px}
}
@media(max-width:480px){body .message-list .message-row{column-gap:7px}body .message-list .message-row>.message-end-time{max-width:92px}body .message-row .message-end-time time.message-timestamp,body .message-row .message-end-time .message-absolute-date,body .message-row .message-end-time .message-clock-and-age{font-size:9px}}

/* v4.8.4 compact reader toolbar: pinned primary icons, scrollable labeled actions. */
body .app .reader-content .reader-tools.compact-reader-tools{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-height:44px;padding:5px 0;margin:0;position:sticky;top:0;z-index:4;border-bottom:1px solid var(--border);background:var(--page);max-width:100%;min-width:0}
body .app .compact-reader-tools .reader-primary-actions{display:flex;align-items:center;flex:0 0 auto;gap:3px;padding-right:7px;border-right:1px solid var(--border)}
body .app .compact-reader-tools button.reader-icon-action{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;margin:0;border:0;border-radius:7px;box-shadow:none;background:transparent;color:var(--text)}
body .app .compact-reader-tools button.reader-icon-action.danger{color:#c43b50}
body .app .compact-reader-tools button.reader-icon-action:hover:not(:disabled){background:var(--blue-bg);color:var(--accent)}
body .app .compact-reader-tools button.reader-icon-action.danger:hover:not(:disabled){background:#b93b53;color:white}
body .app .compact-reader-tools .reader-action-scroll{display:flex;align-items:center;flex:1 1 auto;gap:4px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--border) transparent;padding:2px 0;overscroll-behavior-x:contain}
body .app .compact-reader-tools .reader-quick-tools{display:flex;flex-wrap:nowrap;align-items:center;flex:0 0 auto;width:auto;order:0;gap:3px;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body .app .compact-reader-tools .reader-quick-tools button,body .app .compact-reader-tools .reader-layout-action{flex:0 0 auto;display:inline-flex;gap:4px;align-items:center;min-height:34px;min-width:0;padding:5px 8px;border:0;border-radius:7px;background:transparent;color:var(--text);font-size:12px;font-weight:650;white-space:nowrap}
body .app .compact-reader-tools .reader-quick-tools button:disabled{opacity:.38}
body .app .compact-reader-tools button:focus-visible,body .app .reader-action-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body .app .reader-content .read-title{margin:12px 0 5px;overflow-wrap:anywhere}
body .app .reader-thread-count{margin:0 0 12px;font-size:11px;color:var(--muted)}
@media(max-width:760px){body .app .reader-content .reader-tools.compact-reader-tools{gap:4px;padding:4px 0;min-height:46px}body .app .compact-reader-tools .reader-primary-actions{gap:1px;padding-right:4px}body .app .compact-reader-tools button.reader-icon-action{width:38px;height:38px;min-width:38px;min-height:38px}body .app .compact-reader-tools .reader-quick-tools button{min-height:38px;font-size:11px;padding:5px 7px}body .app .compact-reader-tools .reader-layout-action{display:none}}
@media print{body .app .reader-content .reader-tools.compact-reader-tools{display:none!important}}

/* v4.8.8: compact connected conversation with repeatable message actions. */
body .app .reader-content .thread-timeline{gap:3px;padding-bottom:10px}
body .app .reader-content .thread-timeline>.thread-card{border-radius:9px;box-shadow:none}
body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .thread-sender{min-height:0;padding:9px 12px;gap:9px;align-items:center}
body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .sender-avatar.large{width:34px;height:34px;flex-basis:34px}
body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .thread-sender-info small{margin-top:2px;line-height:1.35}
body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .thread-time{font-size:10px;line-height:1.35}
body .app .reader-content .thread-timeline>.thread-card.expanded{margin:3px 0;box-shadow:0 2px 8px #0000000a;overflow:visible}
body .app .reader-content .thread-timeline>.thread-card:first-child{border-top-left-radius:13px;border-top-right-radius:13px}
body .app .reader-content .thread-timeline>.thread-card:last-child{border-bottom-left-radius:13px;border-bottom-right-radius:13px}
.message-card-controls.message-card-footer{margin-top:14px;padding:10px 0 0;border-top:1px solid var(--border)}
.message-card-footer .message-more-menu{top:auto;bottom:calc(100% + 4px);max-height:min(60vh,440px);overflow:auto;overscroll-behavior:contain}
@media(max-width:760px){
 body .app .reader-content .thread-timeline{gap:2px}
 body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .thread-sender{padding:8px 10px;gap:7px}
 body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .sender-avatar.large{width:32px;height:32px;flex-basis:32px}
 body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .thread-sender-info strong{font-size:12px}
 body .app .reader-content .thread-timeline>.thread-card:not(.expanded) .thread-time{font-size:9px}
}
@media print{
 body .message-card-controls,body .message-inspections{display:none!important}
 body.print-single-message .thread-timeline>.thread-card:not(.print-message-target){display:none!important}
 body.print-single-message .reader-content>.read-title{display:block!important;margin:0 0 12px!important}
 body.print-single-message .reader-content>.reader-thread-count,body.print-single-message .reader-content>.reader-history-notice,body.print-single-message .reader-content>:not(.read-title):not(.thread-timeline){display:none!important}
 body.print-single-message .thread-card.print-message-target{display:block!important;border:0!important}
 body.print-single-message .thread-card.print-message-target .thread-sender{padding:0 0 10px!important}
 body.print-single-message .thread-card.print-message-target .thread-sender-info small{white-space:normal;overflow:visible}
 body.print-single-message .thread-card.print-message-target .thread-content{border:0!important}
 body.print-single-message .thread-card.print-message-target .read-body.hidden{display:none!important}
}
