/* Scoped mail UI. Uses the installed Atelier palette; leaves navigation and source forms alone. */
html[data-atelier] body #messageList .message-item{display:block!important;min-width:0;padding:18px 16px!important;border:0!important;border-block-end:1px solid var(--line,#dce4ef)!important;border-radius:0;background:var(--paper,#fff);cursor:default;transition:background .18s ease,box-shadow .18s ease}
html[data-atelier] body #messageList .message-item:hover{background:var(--paper2,#f4f7fc)}
html[data-atelier] body #messageList .message-item.active{box-shadow:inset 3px 0 var(--accent,#2861d7);background:var(--accent-soft,#edf3ff)}
html[dir=rtl][data-atelier] body #messageList .message-item.active{box-shadow:inset -3px 0 var(--accent,#2861d7)}
html[data-atelier] body #messageList .tma-message-open{display:grid!important;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;width:100%;min-height:44px;height:auto!important;text-align:start;padding:0!important;margin:0;border:0!important;border-radius:5px;background:transparent!important;color:var(--ink,#19263c)!important;box-shadow:none!important;font:inherit;cursor:pointer;transform:none!important}
html[data-atelier] body #messageList .tma-message-open:not(:has(.av)){display:block!important}
html[data-atelier] body #messageList .av{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:15px;background:var(--accent-soft,#eaf0fe);color:var(--accent,#2861d7)}
html[data-atelier] body #messageList .message-copy{min-width:0;width:100%;display:block}
html[data-atelier] body #messageList .message-copy>b,html[data-atelier] body #messageList .message-meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;min-width:0}
html[data-atelier] body #messageList .message-from{font-size:14px;line-height:1.6;font-weight:650;overflow-wrap:anywhere;color:var(--ink,#19263c)}
html[data-atelier] body #messageList time{font-size:12px;line-height:1.5;font-weight:400;color:var(--muted,#637086);white-space:nowrap}
html[data-atelier] body #messageList .message-copy>p,html[data-atelier] body #messageList .message-subject{font-size:16px;line-height:1.65;font-weight:650;margin:3px 0!important;overflow-wrap:anywhere;white-space:normal!important;color:var(--ink,#19263c)}
html[data-atelier] body #messageList .message-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;font-size:14px;line-height:1.65;font-weight:400;color:var(--muted,#637086);overflow-wrap:anywhere}
html[data-atelier] body .tma-smart-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:10px;margin-block-start:12px;min-width:0}
html[data-atelier] body .tma-smart-actions[hidden],html[data-atelier] body .tma-smart-detail[hidden]{display:none!important}
html[data-atelier] body .tma-smart-group{display:flex;flex-wrap:wrap;align-items:center;gap:9px;min-width:0;padding:10px 12px;border:1px solid var(--line,#dce4ef);border-radius:12px;background:var(--paper,#fff);color:var(--ink,#19263c)}
html[data-atelier] body .tma-smart-value{display:flex;flex-direction:column;flex:1 1 120px;gap:3px;min-width:0}
html[data-atelier] body .tma-smart-label{font-size:12px;line-height:1.5;font-weight:500;color:var(--muted,#637086)}
html[data-atelier] body .tma-smart-code{font:650 21px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.075em;unicode-bidi:isolate;user-select:all;overflow-wrap:anywhere}
html[data-atelier] body .tma-smart-host{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:isolate}
html[data-atelier] body .tma-smart-action{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:40px;height:auto!important;max-width:100%;flex-shrink:0;border:1px solid var(--line,#dce4ef)!important;border-radius:9px!important;padding:8px 12px!important;margin:0!important;background:var(--accent-soft,#edf3ff)!important;color:var(--at,#294fca)!important;font-family:inherit;font-size:13px!important;line-height:1.45;font-weight:650;white-space:normal!important;box-shadow:none!important;text-decoration:none!important;cursor:pointer;transition:background .18s,transform .18s,box-shadow .18s}
html[data-atelier] body .tma-smart-action:hover{transform:translateY(-1px);box-shadow:0 3px 8px #12254612!important}
html[data-atelier] body :is(.tma-smart-action,.tma-message-open):focus-visible{outline:3px solid var(--accent,#2861d7)!important;outline-offset:3px}
html[data-atelier] body .tma-smart-action[data-feedback=ok]{color:var(--success,#087947)!important}
html[data-atelier] body .tma-smart-action[data-feedback=error]{color:var(--danger,#bc3232)!important}
html[data-atelier] body .tma-smart-detail{padding:16px;border:1px solid var(--line,#dce4ef);border-radius:14px;background:var(--paper2,#f4f7fc);margin:16px 0}
html[data-atelier] body .tma-smart-detail>h3{font-size:14px;line-height:1.6;margin:0;color:var(--ink,#19263c)}
html[data-atelier] body .tma-smart-detail .tma-smart-actions{grid-template-columns:1fr}
html[data-atelier] body #tmaMessageDialog{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;overflow:hidden!important;color:var(--ink,#19263c)}
html[data-atelier] body #tmaMessageDialog::backdrop{background:#0b162cb8;backdrop-filter:blur(5px)}
html[data-atelier] body #tmaMessageDialog:not([open]){display:none!important}
html[data-atelier] body #messageBackdrop.tma-smart-modal{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;max-height:none!important;padding:24px!important;margin:0!important;background:transparent!important;box-sizing:border-box!important;overflow:hidden!important}
html[data-atelier] body #messageBackdrop.tma-smart-modal.hidden{display:none!important}
html[data-atelier] body #messageBackdrop.tma-smart-modal #previewPane{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;width:min(920px,100%)!important;max-width:920px!important;min-width:0!important;height:min(850px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important;padding:20px!important;margin:auto!important;background:var(--paper,#fff)!important;color:var(--ink,#19263c)!important;border:1px solid var(--line,#dce4ef)!important;border-radius:18px!important;box-shadow:0 26px 90px #0004!important;overflow:auto!important;animation:tma-smart-enter .18s ease-out}
html[data-atelier] body #messageBackdrop.tma-smart-modal #messageDetail{display:block;flex:1;min-height:0;overflow:visible!important}
html[data-atelier] body #messageBackdrop.tma-smart-modal #closeMessageBtn{display:inline-flex!important;align-self:flex-end;position:sticky;inset-block-start:0;z-index:5;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin-block-end:6px;background:var(--paper,#fff)!important;color:var(--ink,#19263c)!important;border:1px solid var(--line,#dce4ef)!important;border-radius:10px}
html[data-atelier] body #messageBackdrop.tma-smart-modal #messageDialogTitle{font-size:clamp(20px,2vw,25px)!important;line-height:1.5!important;overflow-wrap:anywhere;margin:0 0 12px}
html[data-atelier] body #messageBackdrop.tma-smart-modal .detail-meta{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
html[data-atelier] body #messageBackdrop.tma-smart-modal .detail-meta>span{min-width:0;overflow-wrap:anywhere}
html[data-atelier] body #messageBackdrop.tma-smart-modal .detail-actions{display:flex;gap:8px;flex-wrap:wrap;padding-block:12px}
html[data-atelier] body #messageBackdrop.tma-smart-modal :is(.detail-actions button,.privacy-strip button){min-height:40px;font-size:13px;white-space:normal}
html[data-atelier] body #messageBackdrop.tma-smart-modal .safe-message-frame{display:block!important;box-sizing:border-box!important;min-height:420px!important;height:480px!important;width:100%!important;max-width:100%!important;background:var(--paper,#fff);border:1px solid var(--line,#dce4ef);border-radius:12px}
html[data-atelier] body :is(#referenceReaderEmpty,#atelierPlusReaderEmpty){display:none!important}
html[data-atelier-family=plus] body #atelierPlusMailBody{display:block!important;min-width:0!important}
body.tma-smart-modal-open{overflow:hidden!important}
html[data-atelier-family=free] body .tma-free-v14-content>.rd,html[data-atelier-family=plus] body .atelier-plus-mail-reader{display:none!important}
html[data-atelier-family=plus] body .atelier-plus-mail-list{width:100%!important;border:0!important;max-height:min(720px,75dvh)!important}
html[data-atelier-family=free][data-tma-free-pro-layout=v14] body #inboxApp .tma-free-v14-content #messageList{padding:0!important;min-height:360px!important;max-height:min(660px,70dvh)!important;overflow-y:auto!important}
@media(max-width:600px){html[data-atelier] body #messageList .message-item{padding:16px 12px!important}html[data-atelier] body .tma-smart-actions{grid-template-columns:1fr}html[data-atelier] body .tma-smart-group{padding:9px;flex-wrap:wrap}html[data-atelier] body .tma-smart-value{min-width:110px}html[data-atelier] body .tma-smart-action{min-height:44px;font-size:13px!important}html[data-atelier] body #messageBackdrop.tma-smart-modal{padding:8px!important}html[data-atelier] body #messageBackdrop.tma-smart-modal #previewPane{padding:12px!important;max-height:calc(100dvh - 16px)!important;height:calc(100dvh - 16px)!important;border-radius:13px!important}html[data-atelier] body #messageBackdrop.tma-smart-modal .safe-message-frame{min-height:350px!important;height:420px!important}}
@keyframes tma-smart-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html[data-atelier] body :is(.message-item,.tma-smart-action,#previewPane){animation:none!important;transition:none!important;transform:none!important}}
html[data-atelier] body .hero:has(.tma-smart-hero-title){display:block!important;text-align:center;padding:22px 20px 18px!important}
html[data-atelier] body .hero .tma-smart-hero-title{font-size:clamp(22px,2.5vw,30px)!important;font-weight:700!important;line-height:1.5!important;color:var(--ink,#19263c)!important;max-width:1000px!important;margin:0 auto 7px!important;letter-spacing:-.015em!important}
html[data-atelier] body .hero .tma-smart-hero-description{font-size:16px!important;line-height:1.8!important;font-weight:400!important;color:var(--muted,#637086)!important;max-width:850px;margin:0 auto;overflow-wrap:anywhere}
html[data-atelier] body .tma-smart-loading{display:block;align-self:center;font-size:12px;line-height:1.6;color:var(--muted,#637086);padding:6px 0}
/* v22.1: override the exact v23 text-only hero selector observed in production. */
html[data-atelier][data-atelier-family="free"] body.reference-home section.hero.tma-v23-text-only:has(h1.tma-smart-hero-title){display:block!important;grid-template-columns:none!important;gap:0!important;padding:20px 20px 16px!important;text-align:center!important}
html[data-atelier][data-atelier-family="free"] body.reference-home section.hero.tma-v23-text-only>h1.tma-v23-hero-text.tma-smart-hero-title{display:block!important;flex:none!important;width:auto!important;max-width:1000px!important;margin:0 auto 8px!important;padding:0!important;font:700 clamp(22px,2.5vw,30px)/1.5 var(--font,system-ui,sans-serif)!important;letter-spacing:-.015em!important;color:var(--ink,#142139)!important;text-align:center!important;overflow-wrap:anywhere!important}
html[data-atelier][data-atelier-family="free"] body.reference-home section.hero.tma-v23-text-only>p.tma-smart-hero-description{display:block!important;flex:none!important;width:auto!important;max-width:850px!important;margin:0 auto!important;padding:0!important;font:400 16px/1.8 var(--font,system-ui,sans-serif)!important;color:var(--muted,#5f6d82)!important;text-align:center!important;overflow-wrap:anywhere!important}
@media(max-width:600px){html[data-atelier][data-atelier-family="free"] body.reference-home section.hero.tma-v23-text-only:has(h1.tma-smart-hero-title){padding:16px 12px 14px!important}}

/* TMA_MESSAGE_CARDS_SAAS_V24 — mail workspaces only; theme tokens and logical directions. */
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-list-header{display:flex;align-items:center;gap:12px;padding:20px 18px 8px;background:var(--paper2,#f5f7fb);min-width:0;flex:none}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-header-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:10px;background:var(--soft,#edf2ff);color:var(--at,#294fca)}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-header-icon svg{width:24px;height:24px}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-header-copy{min-width:0}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-header-copy h2{display:flex;align-items:center;gap:10px;margin:0!important;font-size:21px!important;line-height:1.45!important;color:var(--ink,#142139)}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-total{display:inline-flex;justify-content:center;align-items:center;min-width:28px;min-height:26px;padding:0 7px;background:var(--paper,#fff);border:1px solid var(--line,#dfe5ef);border-radius:8px;font-weight:650;font-size:14px;line-height:1.4}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-header-description{font-size:14px!important;line-height:1.6!important;color:var(--muted,#5f6d82);margin:3px 0 0!important;overflow-wrap:anywhere}
html[data-atelier][data-atelier-family] body :is(#inboxApp,.workspace) #messageList.message-list{display:block!important;padding:16px!important;background:var(--paper2,#f5f7fb)!important;gap:0!important;box-sizing:border-box;min-width:0;overflow-x:hidden!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-item{display:block!important;position:relative;padding:16px!important;margin:0 0 16px!important;border:1px solid var(--line,#dfe5ef)!important;border-radius:12px!important;background:var(--paper,#fff)!important;box-shadow:0 2px 7px #10204406!important;cursor:default;min-width:0;overflow:hidden;box-sizing:border-box;transition:border-color .16s ease,box-shadow .16s ease!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-item:last-child{margin-block-end:0!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-item.unread::before{content:'';position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--accent,#315be8)}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-item:is(:hover,.active){border-color:var(--border,#8090a8)!important;box-shadow:0 3px 10px #1020440a!important;background:var(--paper,#fff)!important;transform:none!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-message-open{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;background:transparent!important;border:0!important;padding:0!important;min-height:44px!important;width:100%!important;text-align:start!important;box-shadow:none!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .av{width:40px!important;height:40px!important;margin:0!important;border-radius:50%!important;background:var(--soft,#edf2ff)!important;color:var(--at,#294fca)!important;display:grid!important;place-items:center}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .av svg{width:22px;height:22px}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-copy{display:block!important;min-width:0!important;width:100%!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px 16px!important;flex-wrap:wrap!important;font-size:14px!important;min-width:0}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-message-identity{display:flex;flex:1 1 170px;align-items:baseline;gap:8px 10px;min-width:0;flex-wrap:wrap}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-from{font-size:16px!important;font-weight:650!important;line-height:1.55!important;color:var(--ink,#142139)!important;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-sender-address{flex:0 1 auto;min-width:0;max-width:min(100%,30ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--muted,#5f6d82)}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-message-status{display:flex;align-items:center;gap:12px;flex:none;color:var(--muted,#5f6d82)}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList time{font-size:14px!important;line-height:1.5!important;color:var(--muted,#5f6d82)!important;font-weight:400}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-unread-label{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--at,#294fca);line-height:1.5}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-unread-label::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-subject{display:block!important;font-size:17px!important;line-height:1.55!important;font-weight:650!important;color:var(--ink,#142139)!important;margin:6px 0 3px!important;overflow-wrap:anywhere!important;white-space:normal!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-preview{font-size:14px!important;line-height:1.65!important;margin:0!important;color:var(--muted,#5f6d82)!important;display:-webkit-box!important;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden!important;overflow-wrap:anywhere;white-space:normal!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-message-rail{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding-block-start:10px;margin-block-start:12px;margin-inline-start:52px;border-block-start:1px solid var(--line,#dfe5ef);min-width:0}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-actions{display:flex!important;flex:1 1 auto;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;margin:0!important;min-width:0!important;max-width:100%}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-actions[hidden]{display:none!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-group{display:flex!important;align-items:center!important;flex:0 1 auto!important;flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;max-width:100%;padding:2px 4px 2px 9px!important;min-height:42px!important;box-sizing:border-box;border:1px solid var(--line,#dfe5ef)!important;border-radius:8px!important;background:var(--paper,#fff)!important}
html[dir=rtl][data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-group{padding:2px 9px 2px 4px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-group>svg{width:18px;height:18px;flex:none;color:var(--at,#294fca)}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-value{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;flex:0 1 auto!important;min-width:0!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-label{font-size:13px!important;line-height:1.5!important;color:var(--muted,#5f6d82)!important;white-space:nowrap;max-width:13ch;overflow:hidden;text-overflow:ellipsis}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-code{font:650 18px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.025em!important;color:var(--ink,#142139)!important;background:var(--soft,#edf2ff);border-radius:6px;padding:3px 7px!important;white-space:nowrap;overflow-wrap:normal!important;flex:none}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-host{font-size:14px!important;line-height:1.5!important;font-weight:650;min-width:0;max-width:22ch;color:var(--ink,#142139)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;min-width:36px!important;min-height:36px!important;height:36px!important;max-width:none!important;padding:6px!important;margin:0!important;border:0!important;border-inline-start:1px solid var(--line,#dfe5ef)!important;border-radius:4px!important;background:transparent!important;color:var(--at,#294fca)!important;box-shadow:none!important;transform:none!important;text-decoration:none!important;font-size:13px!important;line-height:1.4!important;cursor:pointer}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-action svg{width:18px;height:18px;flex:none}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-action:is(:hover,:focus-visible){background:var(--soft,#edf2ff)!important;transform:none!important;box-shadow:none!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-action[data-feedback=ok]{color:var(--positive,#187247)!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-action[data-feedback=error]{color:var(--negative,#ae3042)!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-card-open-link{display:inline-flex!important;align-items:center;gap:6px;justify-content:center;flex:none;min-height:40px!important;padding:7px 2px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:var(--at,#294fca)!important;font:500 14px/1.5 var(--font,system-ui,sans-serif)!important;box-shadow:none!important;transform:none!important;cursor:pointer;margin-inline-start:auto!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-card-open-link:hover{text-decoration:underline}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-card-open-link svg{width:18px;height:18px}
html[dir=rtl][data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-card-open-link svg{transform:scaleX(-1)}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList :is(.tma-card-open-link,.tma-smart-action,.tma-message-open):focus-visible{outline:2px solid var(--at,#294fca)!important;outline-offset:3px!important}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-saas-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html[data-atelier] body :is(#inboxApp,.workspace) [data-mail-filter]::after{content:attr(data-tma-count);display:inline-block;font-size:.875em;margin-inline-start:7px;font-variant-numeric:tabular-nums;opacity:.85}
html[data-atelier] body :is(#inboxApp,.workspace) [data-mail-filter]:not([data-tma-count])::after{content:none}
@media(max-width:700px){
html[data-atelier][data-atelier-family] body :is(#inboxApp,.workspace) #messageList.message-list{padding:12px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-item{padding:12px!important;margin-block-end:12px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-message-rail{margin-inline-start:0!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-message-status{gap:8px}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-group{min-height:48px!important;gap:6px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-action{min-width:44px!important;min-height:44px!important;height:44px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-card-open-link{min-height:44px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-host{max-width:16ch}
html[data-atelier] body :is(#inboxApp,.workspace) .tma-message-list-header{padding:16px 12px 8px}
}
@media(max-width:420px){
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-message-open{grid-template-columns:32px minmax(0,1fr)!important;gap:8px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .av{width:32px!important;height:32px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-label{max-width:7ch}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-value{gap:5px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-host{max-width:10ch}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-group{gap:5px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-code{font-size:17px!important;padding-inline:4px!important}
html[data-atelier] body :is(#inboxApp,.workspace) #messageList .tma-smart-linkgroup>.tma-saas-icon{display:none}
}
@media(prefers-reduced-motion:reduce){html[data-atelier] body :is(#inboxApp,.workspace) #messageList .message-item{transition:none!important}}

/* TMA_MAILBOX_WORKSPACE_V25: remove marked chrome; retain legacy controller hooks. */
html[data-atelier][data-atelier-family][lang] body :is(#premiumWorkspaceToolbar,#tmaMessageListHeader){display:none!important}
html[data-atelier][data-atelier-family=free][lang] body #inboxApp .tma-free-v14-content>.ls>.fl{display:none!important}
html[data-atelier][data-atelier-family][lang] body :is(#inboxApp,.workspace) #messageList.message-list{position:relative!important;display:block!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;scrollbar-width:thin;box-sizing:border-box!important}
html[data-atelier][data-atelier-family][lang] body :is(#inboxApp,.workspace) #messageList.message-list[data-tma-message-scroll=true]{max-height:var(--tma-ten-messages-height,none)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain}
html[data-atelier][data-atelier-family][lang] body :is(#atelierPlusMailBody,.atelier-plus-mail-list){height:auto!important;max-height:none!important;overflow:visible!important;flex:0 0 auto!important}
html[data-atelier][data-atelier-family][lang] body :is(.message-pane,.tma-free-v14-content){height:auto!important;max-height:none!important;overflow:visible!important}
html[data-atelier][data-atelier-family][lang] body #inboxSidebar #inboxSelectionToolbar.tma-inbox-bulk-controls{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:8px!important;flex:none!important;width:100%!important;margin:0 0 8px!important;padding:8px 0!important;background:transparent!important;border:0!important}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar .toolbar-check{display:inline-flex!important;align-items:center;gap:8px;font-size:14px!important;line-height:1.5;color:var(--ink,#142139);cursor:pointer;min-height:40px}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar input,html[data-atelier][data-atelier-family][lang] body #localInboxList .inbox-select{display:inline-block!important;width:18px!important;height:18px!important;min-width:18px;min-height:18px!important;max-height:18px!important;padding:0!important;accent-color:var(--accent,#315be8);cursor:pointer;opacity:1!important;appearance:auto!important}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar #deleteSelectedBtn{display:inline-flex!important;align-items:center;justify-content:center;min-height:40px;font:600 14px/1.5 var(--font,Arial,sans-serif)!important;padding:7px 10px!important;border:1px solid var(--negative,#d23049)!important;border-radius:8px!important;background:var(--paper,#fff)!important;color:var(--negative,#d23049)!important;cursor:pointer;transition:background-color .15s,color .15s}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar #deleteSelectedBtn:disabled{opacity:.45;cursor:not-allowed}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar #deleteSelectedBtn:not(:disabled):hover{background:var(--negative,#d23049)!important;color:#fff!important}
html[data-atelier][data-atelier-family][lang] body #localInboxList .tma-mailbox-card.selected{border-color:var(--accent,#315be8)!important;background:var(--soft,#edf2ff)!important}
@media(prefers-reduced-motion:reduce){html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar #deleteSelectedBtn{transition:none!important}}

/* TMA_INBOX_COMPACT_ROW_V25_1 — selection, usage, tier and delete in one row. */
html[data-atelier][data-atelier-family][lang] body #inboxSidebar #inboxSelectionToolbar.tma-inbox-compact-row{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:8px!important;padding:3px 0!important;margin:0 0 6px!important;min-width:0!important;min-height:40px!important}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .toolbar-check{flex:0 1 auto;min-width:0;gap:6px;min-height:40px;white-space:nowrap;font-size:13px!important;font-weight:500}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .toolbar-check span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .toolbar-check input{flex:none}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .tma-inbox-limit{display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:7px!important;padding:0!important;margin:0!important;min-width:0;white-space:nowrap;line-height:1.5;font-size:13px!important}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .tma-inbox-limit>span{display:inline-flex;align-items:center;gap:0;white-space:nowrap;line-height:1.5;font-size:13px!important}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .tma-inbox-tier{padding-inline-start:7px;border-inline-start:1px solid var(--line,#dce4ef)}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .tma-inbox-tier>span{display:none!important}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row #deleteSelectedBtn{flex:0 0 auto;gap:5px;min-height:36px!important;min-width:46px!important;padding:6px 8px!important;margin-inline-start:auto!important;font-size:13px!important;line-height:1.5!important;white-space:nowrap!important}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row #deleteSelectedBtn svg{width:16px;height:16px;flex:none}
html[data-atelier][data-atelier-family][lang] body #inboxSelectionToolbar.tma-inbox-compact-row .tma-bulk-delete-count{font-variant-numeric:tabular-nums;line-height:1.5;font-size:13px!important}
@media(max-width:380px){html[data-atelier][data-atelier-family][lang] body #inboxSidebar #inboxSelectionToolbar.tma-inbox-compact-row{gap:6px!important}}

/* TMA_ANIMATED_EMPTY_LOGO_V25_2 — existing envelope, continuously animated in empty inboxes. */
html[data-atelier][data-atelier-family][lang] body :is(#inboxApp,.workspace) #messageList>.tma-branded-empty .tma-waiting-logo{display:block!important;flex:none!important;width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;padding:0!important;margin:0 auto 20px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;animation:none!important;transform:none!important}
html[data-atelier][data-atelier-family][lang] body :is(#inboxApp,.workspace) #messageList .tma-waiting-logo svg.tma-waiting-envelope{display:block!important;width:100%!important;height:100%!important;max-width:none!important;overflow:visible!important;fill:none;stroke:none}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-t{fill:var(--accent,#2f5bea)}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-v{fill:none;stroke:var(--accent,#2f5bea);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope :is(.atl-ff,.atl-fb){transform-origin:32px 21px}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-ff{animation:tma-hdr-close 4.4s ease-in-out infinite both}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-fb{opacity:0;transform:scaleY(0);animation:tma-hdr-open 4.4s ease-in-out infinite both}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-lt{animation:tma-hdr-letter 4.4s cubic-bezier(.3,.7,.3,1) infinite both}
@media(max-width:600px){html[data-atelier][data-atelier-family][lang] body :is(#inboxApp,.workspace) #messageList>.tma-branded-empty .tma-waiting-logo{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important}}
@media(prefers-reduced-motion:reduce){
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope :is(.atl-ff,.atl-fb,.atl-lt){animation:none!important;transition:none!important}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-ff{opacity:1;transform:none}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-fb{opacity:0;transform:scaleY(0)}
html[data-atelier][data-atelier-family][lang] body #messageList .tma-waiting-envelope .atl-lt{transform:none}
}
