/* Mail list geometry and controls, matched against the available original. */
:root{--muted:#6c7076;--hover:#f0f1f4}
.theme-clouds .shell{background:#93bcff url('/assets/clouds.webp') center top/2560px 1600px no-repeat}
.shell{grid-template-columns:232px minmax(0,1fr);grid-template-rows:60px minmax(0,1fr)}
.theme-clouds .topbar{background:transparent;color:#fff;border-bottom:0}
.theme-clouds .top-link{color:#fff;border:0;border-radius:20px;padding:7px 14px;align-self:center}
.theme-clouds .top-link.active{background:#ffffff29}
.theme-clouds .brand{color:white}.topbar .brand span{display:none}.topbar{gap:20px;padding:10px 20px}
.theme-clouds .account-picker .icon,.theme-clouds .mobile-menu{color:#fff}
.theme-clouds .account-menu{color:var(--ink)}
.sidebar{overflow:hidden;padding:2px 12px 12px;gap:0}
.compose-button{min-height:36px;height:36px;margin-bottom:12px;border:0;box-shadow:none;font-weight:400}
.compose-button>.icon{display:none}.nav-group{min-height:0;overflow-y:auto;overflow-x:hidden;flex:1;scrollbar-width:thin;scrollbar-color:#ffffff66 transparent}
.nav-item{min-height:34px;padding:7px 10px;gap:10px;font-size:14px;border-radius:7px}
.nav-item.nested-folder{padding-left:24px}.theme-clouds .sidebar .nav-item,.theme-clouds .sidebar .nav-item svg,.theme-clouds .sidebar .counter{color:#fff}
.theme-clouds .sidebar .nav-item:hover{background:#ffffff18}.theme-clouds .sidebar .nav-item.active{background:#ffffff32}
.sidebar-tools{padding-top:14px;flex-shrink:0}.sidebar-tools .nav-item{min-height:31px;padding-top:6px;padding-bottom:6px}
.sidebar-storage{margin:10px 10px 0;padding-top:8px;font-size:12px}.theme-clouds .sidebar-storage{color:#fff;border-color:#ffffff35}
.sidebar-storage small{display:block;font-size:11px;line-height:1.35;max-height:60px;overflow:auto;margin-top:5px;opacity:.9}.sidebar-tools #nav-capabilities{font-size:12px}.workplace{padding:2px 16px 12px 0}
.mail-work,.settings-content{border-radius:14px}.mail-toolbar{min-height:48px;padding:7px 20px;border:0;gap:16px}
.list-heading{min-height:39px;padding:4px 20px 9px;gap:12px;border:0}.list-heading h1{font-size:14px;font-weight:500}
.list-filter{gap:3px}.filter-chip{font-size:12px;padding:5px 7px;color:var(--muted)}.filter-chip .icon{width:14px;height:14px;vertical-align:middle;margin-right:4px}
.list-total{font-size:12px}.message-list{padding:0 10px 8px;scrollbar-width:thin}
.date-group{font-size:13px;font-weight:400;padding:14px 18px 7px;color:var(--muted);height:39px}
.date-group:first-child{padding-top:7px;height:32px}.message-row{position:relative;grid-template-columns:34px minmax(0,1fr) 24px;gap:12px;padding:0 18px;min-height:42px;border-color:#eceef0;border-radius:0;font-size:14px}
.message-row:hover{border-radius:8px;background:#eef0f4}.message-row.active,.message-row.checked{background:#e5efff}
.message-open{grid-template-columns:minmax(145px,24%) minmax(0,1fr) 18px 58px;gap:12px;min-height:41px}
.message-open time{font-size:12px}.message-row.unread .message-open time{font-weight:400;color:var(--muted)}
.row-select{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:34px;margin:0;cursor:pointer}
.sender-circle{width:32px;height:32px;font-size:17px;font-weight:500;flex-shrink:0;overflow:hidden}.sender-circle img,.sender-detail .avatar img{display:block;max-width:100%;object-fit:contain}
.row-select input{position:absolute;width:18px;height:18px;border-radius:50%;opacity:0;z-index:1}.row-select:focus-within input,.message-row:hover .row-select input,.message-row.checked .row-select input{opacity:1}
.row-select:focus-within .sender-circle,.message-row:hover .row-select:has(input) .sender-circle,.message-row.checked .sender-circle{opacity:0}
.unread-dot{position:absolute;left:2px;width:6px;height:6px;border-radius:50%;background:var(--blue);opacity:0}.message-row.unread .unread-dot{opacity:1}
.row-star{opacity:0;color:#858a91}.row-star.starred{opacity:1;color:#f5475b}.row-star.starred svg{fill:#f5475b;stroke:#f5475b}.message-row:hover .row-star,.row-star:focus-visible,.message-row:focus-within .row-star{opacity:1}
.row-star svg{width:17px;height:17px}.row-quick{position:absolute;right:46px;top:5px;display:none;background:inherit;align-items:center;gap:1px}
.row-quick .icon-button{height:32px;width:32px;color:#747981}.row-quick .icon{width:18px;height:18px}.message-row:hover .row-quick,.message-row:focus-within .row-quick{display:flex;background:var(--hover)}
.message-row:hover .message-open time,.message-row:focus-within .message-open time{visibility:hidden}
.row-snippet{font-size:14px;color:#777c82}.row-main{display:flex;align-items:center;gap:10px}.row-subject{flex:0 1 auto;margin:0;overflow:hidden;text-overflow:ellipsis;max-width:70%}.row-snippet{overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.row-main mark,.row-sender mark{background:#ffedb0;color:inherit;border-radius:2px}
.avatar-tone-0{background:#ffd9e8;color:#bc4476}.avatar-tone-1{background:#dceafa;color:#3f6f9f}.avatar-tone-2{background:#e9dff9;color:#7654aa}.avatar-tone-3{background:#daefdf;color:#468a60}.avatar-tone-4{background:#ffe7c8;color:#ab6e2b}.avatar-tone-5{background:#d8eef0;color:#387c83}.avatar-tone-6{background:#f7dccf;color:#a96843}.avatar-tone-7{background:#e3e6f8;color:#5f6ea9}
.sender-brand{background:#fff}.brand-google{background:#fff}.brand-google img{filter:invert(45%) sepia(72%) saturate(1572%) hue-rotate(196deg)}.brand-cloudflare{background:#fff4e3}.brand-cloudflare img{filter:invert(52%) sepia(97%) saturate(1245%) hue-rotate(352deg)}.brand-wordpress{background:#dff2ff}.brand-wordpress img{filter:invert(35%) sepia(32%) saturate(1667%) hue-rotate(160deg)}.brand-anthropic{background:#e8d8c9}.brand-maildotru{background:#e6efff}.brand-maildotru img{filter:invert(28%) sepia(98%) saturate(3200%) hue-rotate(214deg)}
.list-pagination{border:0;min-height:35px;font-size:12px}.trash-retention-notice{margin:0 18px 6px;padding:7px 4px;border:0;color:var(--muted);font-size:12px}
.reader-toolbar{padding:9px 20px;min-height:50px;flex-shrink:0;border-bottom:0;position:sticky;top:0;background:var(--white);z-index:2}
.reader-toolbar .tool-button{font-size:13px;gap:7px}.reader-toolbar .move-select{border:0;background:transparent;max-width:145px}
.reader-content{padding:13px 30px 28px}.subject-line{margin-bottom:22px}.subject-line h1{font-size:22px;line-height:1.4;font-weight:500}.subject-line .row-star{opacity:1}
.sender-detail{gap:12px}.sender-detail>.avatar{width:34px;height:34px;font-size:17px}.sender-detail strong{font-weight:400;font-size:14px}.sender-detail p{margin-top:4px}.sender-detail time{font-size:12px}
.reader-pager{display:flex;gap:2px;margin-left:auto}.reader-pager .icon{width:17px;height:17px}.message-options{border:0;padding-top:9px;padding-bottom:4px;gap:18px}.message-options .text-button{font-size:12px;color:var(--muted)}
.html-mail{margin-top:18px}.message-body{line-height:1.6;font-size:14px;margin:18px 0 28px}.reader-bottom{background:var(--hover);border-radius:10px;padding:5px 12px;margin-top:30px}.reader-bottom .secondary{background:transparent;border:0;min-height:34px;font-size:13px}.reader-content>.subtle{font-size:11px;color:var(--muted)}
.search-wrap{width:clamp(260px,32vw,510px);border-radius:8px;background:#fff;gap:0;height:38px}.theme-clouds .search-wrap{background:#ffffff35}.search-wrap:focus-within,.theme-clouds .search-wrap:focus-within{background:var(--white);color:var(--ink)}
.search-wrap>svg{position:static;margin-left:12px;flex-shrink:0}.search-wrap input{min-width:0;background:transparent;border:0;padding:8px 6px 8px 10px;font-size:14px;height:38px;color:inherit}.search-wrap input:focus{outline:0}.search-wrap:focus-within{outline:2px solid #b7d4ff}
.theme-clouds .search-wrap input::placeholder{color:#fff}.theme-clouds .search-wrap:focus-within input::placeholder{color:var(--muted)}.theme-clouds .search-wrap>.icon,.theme-clouds .search-wrap>.icon-button{color:#fff}.theme-clouds .search-wrap:focus-within>.icon,.theme-clouds .search-wrap:focus-within>.icon-button{color:var(--muted)}
.search-wrap .icon-button{width:30px;height:30px}.search-wrap .icon-button svg{position:static;left:auto;width:16px;height:16px;color:inherit}.search-submit{height:30px;font-size:13px;padding:0 12px;border-left:1px solid #ffffff33;margin-right:3px}
.search-panel{position:fixed;left:auto;bottom:auto;margin:0;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 86px);overflow:auto;border:0;border-radius:12px;padding:18px 20px;box-shadow:0 8px 24px #13243d33;background:var(--white);color:var(--ink);z-index:40}
.search-panel::backdrop{background:transparent}.search-panel-title{display:flex;align-items:center;justify-content:space-between;font-size:16px;margin-bottom:12px}.search-panel-title .icon{width:18px;height:18px}.search-panel label{font-size:13px;margin-bottom:12px;gap:5px}.search-panel input,.search-panel select{font-size:13px;padding:8px 10px}.search-quick-filters{display:flex;flex-wrap:wrap;gap:9px 14px;border-bottom:1px solid var(--line);margin-bottom:14px;padding-bottom:5px}.search-quick-filters label{flex-direction:row;align-items:center;font-size:12px;gap:7px}.search-date-range{display:flex;gap:12px}.search-date-range label{flex:1;min-width:0}.search-panel-actions{display:flex;align-items:center;gap:18px;margin-top:5px}.search-panel-actions .primary{min-height:35px;font-size:13px}.search-summary{font-size:12px;flex-basis:100%;color:var(--muted);overflow-wrap:anywhere;padding-bottom:5px}
#compose-dialog{width:min(920px,calc(100vw - 32px));border:0;border-radius:12px}#compose-form{padding:20px 28px}#compose-title{font-size:19px}.compose-notice{background:transparent;color:var(--muted);padding:6px 0;font-size:11px}.compose-from{font-size:12px}.dialog-actions .primary{min-width:120px}.attachment-card{border:0;background:var(--hover);border-radius:10px}
#toast{left:50%;bottom:28px;border-radius:9px;padding:12px 20px;font-size:14px;background:#292b30}#toast button{color:#83b8ff;text-decoration:none}
.compact-layout .message-row,.compact-layout .message-open{min-height:34px}.compact-layout .sender-circle{width:26px;height:26px;font-size:14px}.compact-layout .date-group{height:30px;padding-top:7px}.compact-layout .row-quick{top:1px}
.theme-dark .message-row{border-color:var(--line)}.theme-dark .message-row:hover{background:var(--hover)}.theme-dark .message-row.checked,.theme-dark .message-row.active{background:var(--blue-soft)}.theme-dark .row-snippet{color:var(--muted)}.theme-dark .search-wrap{background:var(--hover)}.theme-dark .row-main mark,.theme-dark .row-sender mark{background:#68521e}.theme-dark .row-quick{background:var(--hover)}
@media(min-width:1201px){.preview-layout .message-row{grid-template-columns:32px minmax(0,1fr) 20px;gap:8px;padding:0 12px}.preview-layout .message-open{grid-template-columns:minmax(0,1fr) 50px;grid-template-rows:auto auto;padding:8px 0;gap:6px}.preview-layout .row-sender{grid-column:1;grid-row:1}.preview-layout .row-main{grid-column:1;grid-row:2}.preview-layout .row-subject{max-width:100%}.preview-layout .row-attachment{grid-column:2;grid-row:2}.preview-layout .message-open time{grid-column:2;grid-row:1}.preview-layout .row-quick{right:35px;top:14px}.preview-layout .reader-content{padding:12px 22px}.preview-layout .reader-pager{display:none}}
@media(max-width:1100px){.topbar{gap:12px}.topbar .brand{font-size:20px}.search-wrap{width:min(42vw,480px)}.message-open{grid-template-columns:minmax(120px,22%) minmax(0,1fr) 16px 52px;gap:10px}.row-snippet{font-size:13px}}
@media(max-width:760px){.shell{grid-template-columns:minmax(0,1fr);grid-template-rows:58px minmax(0,1fr)}.topbar{padding:10px 12px;gap:8px}.topbar .brand{display:none}.topbar .search-wrap{height:36px}.search-wrap input{height:36px;font-size:14px}.search-submit{display:none}.workplace{padding:0}.mail-work,.settings-content{border-radius:12px 12px 0 0}.sidebar{top:58px;width:252px;padding:12px;z-index:15}.theme-clouds .sidebar{background:#5376a8}.mail-toolbar{padding:7px 12px;gap:8px;min-height:45px}.list-heading{padding:3px 12px 7px;gap:7px}.list-heading h1{font-size:14px}.list-total{width:auto;font-size:11px;margin-top:0}.list-filter #filter-all{display:none}.filter-chip{font-size:11px;padding:5px}.message-list{padding:0 5px 5px}.date-group{padding-left:14px;font-size:12px;height:31px;padding-top:9px}.message-row{grid-template-columns:34px minmax(0,1fr) 20px;min-height:73px;padding:0 12px;gap:9px}.message-open{min-height:72px;grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:auto auto;gap:6px 7px;padding:11px 0}.row-sender{grid-column:1;grid-row:1;font-size:14px}.row-main{grid-column:1/3;grid-row:2;font-size:13px;display:block;padding-right:18px}.row-subject{max-width:none}.row-snippet{display:none}.message-open time{grid-column:2;grid-row:1;font-size:11px}.row-attachment{grid-column:2;grid-row:2;justify-self:end}.message-row .row-star{width:20px;min-width:20px;opacity:.5}.message-row .row-star.starred{opacity:1}.message-row:hover .row-quick,.message-row:focus-within .row-quick{display:none}.message-row:hover .message-open time,.message-row:focus-within .message-open time{visibility:visible}.row-select input{opacity:0}.message-row.checked .row-select input,.row-select:focus-within input{opacity:1}.message-row:hover:not(.checked) .row-select:not(:focus-within) .sender-circle{opacity:1}.message-row:hover:not(.checked) .row-select:not(:focus-within) input{opacity:0}.reader-toolbar{padding:7px 8px;gap:1px}.reader-toolbar .tool-button{padding:6px;font-size:12px}.reader-toolbar #reply-all{display:none}.reader-toolbar .move-select{max-width:118px;font-size:12px}.reader-pager{display:none}.reader-content{padding:12px 16px 22px}.subject-line h1{font-size:20px}.sender-detail time{margin-left:46px}.message-options{gap:10px}.message-options .text-button{font-size:11px}.compact-layout .message-row,.compact-layout .message-open{min-height:59px}.search-panel{right:12px!important;width:calc(100vw - 24px);padding:16px}.search-date-range{gap:8px}#compose-dialog{width:100%;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}#compose-form{padding:18px 16px}#toast{bottom:16px;width:max-content;max-width:calc(100vw - 24px);gap:12px;font-size:13px}.bulk-actions .tool-button span{display:none}}
@media(prefers-reduced-motion:no-preference){.message-row{transition:background-color .12s ease-out}.row-select input,.row-select .sender-circle{transition:opacity .12s ease-out}}
@media(max-width:760px){.sender-detail{display:grid;grid-template-columns:34px minmax(0,1fr);gap:6px 12px}.sender-detail>.avatar{grid-column:1;grid-row:1/3}.sender-detail>div{grid-column:2;grid-row:1}.sender-detail time{grid-column:2;grid-row:2;margin:0;max-width:none;text-align:left}.reader-toolbar{row-gap:2px}.reader-toolbar .tool-button{flex-shrink:0}}
@media print{.theme-clouds .shell{background:white}.reader-pager{display:none}}
