/* fix12 (2026-12-04) - presentation only. Linked by tempixo/fix12.py (the Free page loads it from tma-fix12.js). */

/* 12a: the inbox card action row (Delete / Verify / Copy / Share) never splits a word on wider screens either.
   Same rules as tma-cardfix99.css (phones, max-width 700px, unchanged) for 701px and up: labels stay on one line;
   in a narrow card (330px or less, e.g. the desktop sidebar) the icon sits above its label; a label that still
   does not fit moves its whole button to a second row.
   Not on the wide desktop layout (html.dk97, tma-desk97.css), where the actions sit in one line beside the counters. */
@media (min-width:701px){
  html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card{container-type:inline-size}
  html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-actions{display:flex!important;flex-wrap:wrap!important;grid-template-columns:none!important}
  html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-action{flex:1 1 0!important;min-width:min-content!important;width:auto!important;gap:4px!important;padding:7px 4px!important;box-sizing:border-box!important}
  html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-action span:not(.copy-icon){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-action svg,html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-action .copy-icon{flex:none!important}
}
@media (min-width:701px){
  @container (max-width:330px){
    html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-action{flex-direction:column!important;gap:2px!important;padding:6px 2px!important;font-size:.78rem!important;line-height:1.25!important;min-height:48px!important}
    html:not(.dk97)[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-action svg{width:16px!important;height:16px!important}
  }
}

/* 12a, wide desktop (tma-desk97.css, 1180px and up): the card was as wide as its one-line content (min-width:
   max-content), so in German, French, Russian... it grew past the inbox column and "Löschen" was cut off. The card now
   keeps the column's width and, only when the line does not fit, the Copy/Delete group moves under the counters.
   English (and every language whose line fits) looks exactly as before. */
html.dk97.dk97.dk97[data-atelier][lang] body #localInboxList .tma-mailbox-card{min-width:0!important}
html.dk97.dk97.dk97[data-atelier][lang] body #localInboxList .tma-mailbox-card .tma-card-meta{flex-wrap:wrap!important;row-gap:6px!important;height:auto!important}

/* 12b: start failure - one Retry button under the address */
.tma-fix12-retry{display:inline-flex;align-items:center;justify-content:center;margin:10px 0 0;min-height:40px;padding:8px 18px;border:1px solid var(--line,#d6deea);border-radius:10px;background:var(--surface,#fff);color:var(--accent,#315be8);font:inherit;font-weight:600;cursor:pointer}
.tma-fix12-retry:hover,.tma-fix12-retry:focus-visible{background:var(--soft,#eef2ff)}
.tma-fix12-retry[hidden]{display:none}

/* 3: Pro - while the clicked inbox's messages load, the list shows this instead of the previous inbox's mail */
.tma-fix12-shimmer{display:grid;gap:14px;padding:18px 16px}
.tma-fix12-line{display:block;height:58px;border-radius:12px;background:linear-gradient(90deg,var(--line,#e6ebf3) 0%,var(--soft,#f3f6fb) 50%,var(--line,#e6ebf3) 100%);background-size:200% 100%;animation:tma-fix12-shimmer 1.1s linear infinite}
.tma-fix12-line:nth-child(2){opacity:.75}.tma-fix12-line:nth-child(3){opacity:.5}
@keyframes tma-fix12-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.tma-fix12-line{animation:none}}

/* 5: Pro Dashboard opens BELOW the workspace (the mail list stays where it is) and its button looks active */
html[data-plus-workspace="true"] body #plusDashboard[open]{display:block;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;max-height:none!important;margin:18px 0 0!important;overflow:visible!important;transform:none!important}
html[data-plus-workspace="true"] body #plusDashboardButton.plus-nav-active,
html[data-plus-workspace="true"] body #plusDashboardButton[aria-current="page"]{color:var(--at,#315be8)!important;background:var(--soft,#eef2ff)!important;border-color:color-mix(in srgb,var(--at,#315be8) 35%,transparent)!important;font-weight:650}
html[data-plus-workspace="true"] body #plusDashboardButton.plus-nav-active svg{stroke:currentColor!important}

/* 6: a signed-in Pro page never shows the Free numbers ("0 of 3", "Creating your inbox…") while the account loads */
html[data-plus-workspace="true"] body:has(#emailAddress.skeleton) #emailAddress.skeleton{color:transparent!important}
html[data-plus-workspace="true"] body:has(#emailAddress.skeleton) :is(#inboxCounter,#tmaInboxHeading98>span,#usageText,.tma-inbox-limit){visibility:hidden!important}

/* 7: the Dashboard link that public pages show to a signed-in subscriber */
html[data-atelier] body .atelier-primary-nav a.tma-fix12-dashboard{font-weight:650}

/* 9: the sign-in / account page keeps the site header */
html[data-tma-reference-auth="v13"] body header.site-header.atelier-header{display:block!important}

/* 8: the 404 page */
html[data-atelier] body .tma-fix12-404{display:grid;place-items:center;min-height:52vh;padding:48px 18px}
html[data-atelier] body .tma-fix12-404-card{max-width:560px;text-align:center}
html[data-atelier] body .tma-fix12-404-code{margin:0 0 6px;font-size:clamp(56px,10vw,92px);font-weight:800;line-height:1;color:var(--accent,#315be8);letter-spacing:-.04em}
html[data-atelier] body .tma-fix12-404-card h1{margin:0 0 10px;font-size:clamp(24px,4vw,32px)}
html[data-atelier] body .tma-fix12-404-card p:not(.tma-fix12-404-code):not(.tma-fix12-404-actions){margin:0 0 18px;color:var(--muted,#55627a)}
html[data-atelier] body .tma-fix12-404-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
