/* TMA_FREE_PRO_LAYOUT_V14 — Free inbox ONLY, Pro Plus proportions, existing logic. */
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp{
  overflow:hidden; border:1px solid var(--line,#dce3ee); border-radius:14px;
  background:var(--paper,#fff);
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.workspace-top{display:none!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body{
  display:grid!important; grid-template-columns:360px minmax(0,1fr)!important;
  grid-template-areas:"side main"!important; gap:0!important;
  min-height:530px!important; height:auto!important; max-height:none!important;
  direction:ltr!important; overflow:hidden!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body>*{min-width:0; direction:ltr}
html[data-atelier-family="free"][dir="rtl"][data-tma-free-pro-layout="v14"] body #inboxApp>.body>*{direction:rtl}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxSidebar.tma-free-v14-sidebar{
  grid-area:side; display:flex!important; flex-direction:column; gap:12px;
  position:static!important; transform:none!important; inset:auto!important;
  width:100%!important; min-width:0!important; max-width:none!important;
  background:var(--paper2,#f5f7fb); border:0!important;
  border-inline-end:1px solid var(--line,#e0e5ee)!important;
  border-radius:0!important; padding:18px 14px!important;
  height:auto!important; max-height:none!important; overflow:visible!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxSidebar :is(.side-title,.inbox-heading,.sidebar-usage,.ad-slot,.side-add-wrap){display:none!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxSidebar #tmaInboxTopbar{width:100%;margin:0!important;flex:none}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxSidebar #localInboxList{
  display:flex!important; flex-direction:column!important; align-items:stretch;
  gap:7px!important; margin:0!important; padding:0!important; padding-inline-end:8px!important;
  min-height:0!important; max-height:var(--tma-free-five-cards-height,640px)!important;
  height:auto!important; overflow-y:auto!important; overflow-x:hidden!important;
  overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#8f9aaa transparent;
  scroll-snap-type:none!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxSidebar #localInboxList .tma-mailbox-card{flex:0 0 auto!important; width:100%!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main{
  grid-area:main; display:flex; flex-direction:column; min-width:0; min-height:530px;
  background:var(--paper,#fff);
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main>.bar{
  display:flex!important; flex:0 0 auto; align-items:center; gap:10px;
  padding:16px 18px!important; margin:0!important; border:0!important;
  border-bottom:1px solid var(--line,#e1e7f0)!important; background:var(--paper,#fff)!important;
  border-radius:0; min-width:0;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main>.bar>.ad2{
  display:flex!important; flex:1 1 auto; min-width:0; width:0;
  height:auto!important; min-height:44px; padding:3px 0!important;
  background:transparent!important; border:0!important; border-radius:0!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main #emailAddress{
  font-size:clamp(16px,1.7vw,22px)!important; font-weight:700!important;
  min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main .bar>.bt:is(#newInboxBtn,#changeDomainBtn,#historyBtn,#notifyBtn){display:none!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main #copyEmailBtn{
  display:inline-flex!important; flex:none; justify-content:center; align-items:center;
  min-width:80px; min-height:44px; background:#315be8!important; color:#fff!important;
  border:0!important; border-radius:9px; font-weight:700;
  transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main #copyEmailBtn:is(:hover,:focus-visible){background:#2149c7!important; transform:translateY(-1px);box-shadow:0 3px 8px #315be829}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main .tma-free-v14-refresh{
  flex:none; display:grid;place-items:center; width:44px; height:44px;
  border:1px solid var(--line,#dce3ee); border-radius:9px; background:var(--paper,#fff);
  color:var(--text,#4b5970); padding:9px; cursor:pointer;
  transition:background-color .18s ease,color .18s ease;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main .tma-free-v14-refresh svg{width:19px;height:19px}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main .tma-free-v14-refresh:is(:hover,:focus-visible){background:var(--soft,#eef3ff);color:#315be8}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content{display:flex;flex-direction:column; min-width:0; flex:1}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls{
  display:flex!important;flex:1; flex-direction:column;min-width:0; min-height:450px;
  width:100%!important; border:0!important; overflow:visible!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls>.lh,
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls>.atelier-mail-search{display:none!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls>.fl{
  display:flex!important;flex:0 0 auto;align-items:center; gap:7px;
  min-height:62px; padding:10px 14px!important; margin:0!important;
  background:var(--paper2,#f5f7fb); border-bottom:1px solid var(--line,#e2e8f0);
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls>.fl button{
  min-height:40px; padding:8px 13px; border-radius:9px; color:var(--text,#52607a);
  transition:background-color .18s ease,color .18s ease;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls>.fl button:is(.on,[aria-pressed="true"]){color:#315be8!important;background:#eef2ff!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls>.fl button:hover{color:#315be8;background:#eef2ff}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content #messageList{
  flex:1 1 auto!important; display:block!important; height:auto!important;
  min-height:360px!important;max-height:none!important; width:100%;
  padding:16px!important;overflow-y:auto!important;overflow-x:hidden!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.rd{
  display:none!important; background:var(--paper,#fff);border:0!important; padding:20px!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content:has(#messageBackdrop:not(.hidden))>.rd{display:block!important;min-height:350px}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content:has(#messageBackdrop:not(.hidden)) #messageList{max-height:260px!important;min-height:130px!important;flex:none!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.rd #messageBackdrop{position:static!important;width:100%!important;background:transparent!important;padding:0!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.rd #previewPane{max-width:none!important;max-height:none!important;width:100%!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body>.adc{display:none!important}
@media(max-width:1100px) and (min-width:701px){
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body{grid-template-columns:312px minmax(0,1fr)!important}
}
@media(max-width:700px){
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"side" "main"!important;min-height:0!important;overflow:visible!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxSidebar.tma-free-v14-sidebar{border-inline-end:0!important;border-bottom:1px solid var(--line,#e0e5ee)!important;padding:12px!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main{min-height:470px}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main>.bar{padding:12px!important;gap:6px}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main>.bar>.ad2>.i{display:none}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main #emailAddress{font-size:15px!important}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main #copyEmailBtn{min-width:60px;min-height:40px;padding:8px}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main .tma-free-v14-refresh{width:40px;height:40px}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-content>.ls{min-height:380px}
}
@media(max-width:420px){
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main .tm{font-size:11px!important;max-width:88px;overflow:hidden;text-overflow:ellipsis}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body .tma-free-v14-main #copyEmailBtn{min-width:52px}
}
@media(prefers-reduced-motion:reduce){html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body :is(.tma-free-v14-refresh,#copyEmailBtn,.fl button){transition:none!important;transform:none!important}}
/* v10 uses two :has() selectors with !important to collapse empty message reader.
   Override their specificity after the DOM moves to the two-column layout. */
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body:has(#messageList):has(#messageBackdrop){
  display:grid!important;grid-template-columns:360px minmax(0,1fr)!important;
  grid-template-areas:"side main"!important;height:auto!important;
}
@media(max-width:1100px) and (min-width:701px){
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body:has(#messageList):has(#messageBackdrop){grid-template-columns:312px minmax(0,1fr)!important}
}
@media(max-width:700px){
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp>.body:has(#messageList):has(#messageBackdrop){grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"side" "main"!important}
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxApp #inboxSidebar.tma-free-v14-sidebar{box-sizing:border-box!important;max-width:100%!important}

/* Match the Pro Plus card's 360px sidebar / 324px inner card, including scrollbar gutter. */
html[data-atelier-family="free"][dir="rtl"][data-tma-free-pro-layout="v14"] body #inboxApp>.body{
  direction:rtl!important;
}
html[data-atelier-family="free"][data-tma-free-pro-layout="v14"] body #inboxSidebar #localInboxList{
  box-sizing:border-box!important;
}
