html[data-smartbiz-task="mail"] body:not(.task-login) #layout-list #messagelist tr.message[data-sbz-row] { min-height:90px!important; }
html[data-smartbiz-task="mail"] body:not(.task-login) #layout-list #messagelist tr.message[data-sbz-row] > td.subject { grid-template-rows:22px 22px 18px!important; gap:1px 8px!important; }
html[data-smartbiz-task="mail"] body:not(.task-login) #layout-list #messagelist tr.message[data-sbz-row] > td.subject::after {
  content:attr(data-sbz-excerpt); display:block!important; grid-column:1 / -1; grid-row:3;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;
  font:400 12px/18px system-ui,sans-serif; color:var(--sbz-muted,#9aaca4);
}
#sbz-compose-status { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:10000; padding:14px 22px; border-radius:12px; background:#ffcb05; color:#102019; font-weight:650; box-shadow:0 4px 24px #0004; }
.smartbiz-mobile-refresh[aria-busy="true"] svg { animation:smartbizSpin .8s linear infinite; }
.smartbiz-mobile-refresh:focus-visible, #messagelist a:focus-visible { outline:2px solid #ffcb05!important; outline-offset:3px; }
@media(max-width:960px) {
 html[data-smartbiz-task="mail"] body.smartbiz-direct-message #layout-content > .header { overflow-x:auto!important; min-height:56px!important; height:auto!important; }
 html[data-smartbiz-task="mail"] body.smartbiz-direct-message #layout-content .toolbar { display:flex!important; flex-wrap:nowrap!important; width:max-content!important; max-width:none!important; gap:6px!important; }
 html[data-smartbiz-task="mail"] body.smartbiz-direct-message #layout-content .toolbar a,
 html[data-smartbiz-task="mail"] body.smartbiz-direct-message #layout-content .toolbar button { flex:0 0 auto!important; width:auto!important; min-width:44px!important; min-height:44px!important; padding:8px 12px!important; overflow:visible!important; }
 html[data-smartbiz-task="mail"] body.smartbiz-direct-message #layout-content .toolbar .smartbiz-icon { display:inline-block!important; width:18px!important; height:18px!important; }
 #sbz-compose-status { bottom:82px; width:max-content; max-width:85vw; }
}
#sbz-reader-actions { display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px 12px 64px; min-height:60px; box-sizing:border-box; }
#sbz-reader-actions button { background:#ffcb05; color:#102019; border:0; border-radius:9px; padding:10px 12px; min-height:44px; font:600 13px/1.3 system-ui,sans-serif; cursor:pointer; }
@media(max-width:960px) {
 html[data-smartbiz-task="mail"] body.smartbiz-direct-message #toolbar-menu { display:none!important; }
 html[data-smartbiz-task="mail"] body.smartbiz-direct-message #layout-content:has(#sbz-reader-actions) > .header { display:none!important; }
}
@media(min-width:961px) { #sbz-reader-actions { display:none; } }
/* Keep the native send command reachable on desktop as well as mobile. */
@media(min-width:961px) {
 html[data-smartbiz-task="mail"] body.action-compose #smartbiz-mobile-compose-header {
  visibility:visible!important; display:flex!important; flex:0 0 auto!important; justify-content:flex-end!important; align-items:center!important;
  position:relative!important; padding:10px 20px!important; min-height:64px!important; border-bottom:1px solid var(--sbz-line,#263b32);
 }
 html[data-smartbiz-task="mail"] body.action-compose #smartbiz-mobile-compose-header > :not(.smartbiz-mobile-send-inline) { display:none!important; }
 html[data-smartbiz-task="mail"] body.action-compose #smartbiz-mobile-compose-header .smartbiz-mobile-send-inline {
  display:inline-flex!important; align-items:center!important; gap:8px!important; min-height:44px!important; padding:10px 24px!important;
  border:0!important; border-radius:10px!important; background:#ffcb05!important; color:#102019!important; font:700 15px/1.4 system-ui,sans-serif!important; cursor:pointer;
 }
 #smartbiz-mobile-compose-header .smartbiz-mobile-send-inline svg { width:20px; height:20px; }
}

@media(max-width:960px) {
 #sbz-folder-picker { box-sizing:border-box; width:calc(100% - 32px); max-width:440px; max-height:80dvh; padding:20px; border:1px solid var(--sbz-line,#314339); border-radius:16px; background:var(--sbz-panel,#0d1d17); color:var(--sbz-ink,#f4f6f4); }
 #sbz-folder-picker::backdrop { background:#0009; }
 #sbz-folder-picker h2 { margin:0 0 14px; }
 #sbz-folder-picker button { min-height:44px; padding:8px 16px; float:right; border:0; border-radius:8px; background:#ffcb05; color:#102019; }
 #sbz-folder-picker a { display:block; clear:both; min-height:44px; padding:12px 4px; box-sizing:border-box; color:inherit; border-bottom:1px solid var(--sbz-line,#314339); }
}
