/* One MailBox Web — thème One MailAdmin / One MailBox (orange #ff4d00, anthracite #373c40). */
:root {
  --brand: #ff4d00; --brand-hover: #e64500; --brand-strong: #c43d00; --brand-soft: #fff1ea; --ink: #373c40;
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f8f9fa; --hover: #f1f2f4; --border: #e3e5e8; --border-strong: #d0d4d9;
  --text: #1d2023; --muted: #6b7177; --faint: #9aa0a6; --sel: #fff1ea; --danger: #d93025; --success: #188038; --warn: #b06000;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-lg: 0 18px 48px rgba(16,24,40,.18);
  --radius: 10px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17191b; --surface: #1b1e20; --surface-2: #212427; --hover: #25292c; --border: #2c3034; --border-strong: #3a3f44;
    --text: #e8eaed; --muted: #a0a6ac; --faint: #7d848a; --sel: #3a2418; --brand-soft: #3a2418; --ink: #e8eaed;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 18px 48px rgba(0,0,0,.55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17191b; --surface: #1b1e20; --surface-2: #212427; --hover: #25292c; --border: #2c3034; --border-strong: #3a3f44;
  --text: #e8eaed; --muted: #a0a6ac; --faint: #7d848a; --sel: #3a2418; --brand-soft: #3a2418; --ink: #e8eaed;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 18px 48px rgba(0,0,0,.55); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo { height: 20px; width: auto; color: var(--ink); display: block; }
.mark { width: 30px; height: 30px; flex: none; }

/* ---------- Démarrage ---------- */
#app { height: 100%; }
#app.boot { display: grid; place-items: center; }
.boot-logo { width: 46px; height: 46px; border-radius: 12px; background: #373c40 url(icon.svg) center/cover; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Boutons, champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--text); }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; height: 42px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: var(--muted); flex: none; position: relative; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.on { color: var(--brand); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.field { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); outline: none; }
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus, .editor:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input:disabled { background: var(--surface-2); color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }

/* ---------- Connexion ---------- */
.auth { height: 100%; overflow: auto; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 30px 28px; display: grid; gap: 16px; }
.auth-brand { display: grid; justify-items: center; gap: 12px; margin-bottom: 4px; }
.auth-brand .company-logo { max-width: 180px; max-height: 64px; }
.auth-brand .logo { height: 24px; }
.auth h1 { font-size: 19px; margin: 0; text-align: center; }
.auth p { margin: 0; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.lang a, .lang strong { padding: 0 3px; }
.lang a { color: var(--muted); text-decoration: none; cursor: pointer; }
.passkey-art { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; justify-self: center; }
.passkey-art svg.i { width: 34px; height: 34px; }

/* ---------- Structure ---------- */
.shell { display: grid; grid-template-columns: 236px 380px 1fr; grid-template-rows: 100%; height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.side-head { min-height: 62px; }
.side-head .company-logo { max-height: 38px; max-width: 100%; object-fit: contain; object-position: left center; }
.compose-btn { margin: 4px 14px 12px; height: 42px; border-radius: 12px; }
.folders { flex: 1; overflow-y: auto; padding: 2px 8px 12px; }
.folder { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; color: var(--text); font-weight: 500; }
.folder:hover { background: var(--hover); }
.folder.active { background: var(--sel); color: var(--brand-strong); font-weight: 650; }
:root[data-theme="dark"] .folder.active { color: #ff8a57; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .folder.active { color: #ff8a57; } }
.folder .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder .count { font-size: 12px; font-weight: 700; color: var(--brand); }
.folder.sub { padding-left: 22px; }
.folders-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 14px 10px 4px; font-weight: 700; }
.side-foot { border-top: 1px solid var(--border); padding: 10px; display: flex; gap: 4px; align-items: center; }
.user-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 8px; text-align: left; }
.user-chip:hover { background: var(--hover); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; text-transform: uppercase; }
.avatar.sm { width: 36px; height: 36px; }
.user-chip .who { min-width: 0; line-height: 1.25; }
.user-chip .who b, .user-chip .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who span { font-size: 12px; color: var(--muted); }

.list-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: var(--surface); }
.list-head { padding: 12px 12px 8px; display: grid; gap: 8px; border-bottom: 1px solid var(--border); }
.list-title { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.list-title h2 { font-size: 17px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { position: relative; }
.search svg.i { position: absolute; left: 11px; top: 11px; color: var(--faint); width: 16px; height: 16px; }
.search input { padding-left: 34px; height: 38px; background: var(--surface-2); border-color: var(--border); }
.filters { display: flex; gap: 6px; }
.chip { height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.bulk { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bulk .n { font-weight: 700; font-size: 13px; padding: 0 8px; flex: 1; }
.list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.row { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 10px; padding: 11px 14px 11px 10px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.row:hover { background: var(--hover); }
.row.active { background: var(--sel); }
.row .sel { grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; }
.row .sel input { margin: 0; opacity: .0; }
.row:hover .sel input, .row .sel input:checked, .list.selecting .sel input { opacity: 1; }
.row .dot { position: absolute; left: 4px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--brand); }
.row:hover .dot, .list.selecting .dot { display: none; }
.row .from { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.row.unread .from { color: var(--text); font-weight: 700; }
.row .date { font-size: 12px; color: var(--faint); white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.row.unread .date { color: var(--brand); font-weight: 600; }
.row .subj { grid-column: 2 / span 2; font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.row.unread .subj { color: var(--text); font-weight: 600; }
.row .subj svg.i, .row .date svg.i { width: 14px; height: 14px; }
.row .flag { color: var(--brand); }
.list-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty svg.i { width: 40px; height: 40px; color: var(--border-strong); display: block; margin: 0 auto 10px; }

.reader { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.reader-bar { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-bottom: 1px solid var(--border); min-height: 53px; }
.reader-bar .grow { flex: 1; }
.reader-body { flex: 1; overflow-y: auto; padding: 18px 24px 30px; }
.msg-subject { font-size: 21px; font-weight: 700; margin: 0 0 14px; line-height: 1.3; word-break: break-word; }
.msg-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.msg-head .meta { flex: 1; min-width: 0; }
.msg-head .meta .line1 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.msg-head .meta b { font-size: 14.5px; }
.msg-head .meta .addr { color: var(--muted); font-size: 12.5px; }
.msg-head .meta .rcpt { color: var(--muted); font-size: 12.5px; margin-top: 2px; word-break: break-word; }
.msg-head .when { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.banner { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; margin-bottom: 12px; }
.banner .grow { flex: 1; }
.banner.warn { background: #fff7e6; border-color: #f5d08a; color: #6b4500; }
:root[data-theme="dark"] .banner.warn { background: #2e2615; border-color: #5c4718; color: #f3d18a; }
.mail-frame { width: 100%; border: 0; display: block; min-height: 120px; background: #fff; border-radius: 6px; color-scheme: light; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.att { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--surface-2); }
.att:hover { border-color: var(--brand); }
.att .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.att .sz { color: var(--muted); font-size: 12px; white-space: nowrap; }
.quick-reply { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.reader-empty { flex: 1; display: grid; place-items: center; color: var(--faint); text-align: center; padding: 24px; }
.reader-empty .logo { height: 22px; margin: 0 auto 10px; opacity: .55; }

/* ---------- Menus, toasts, boîtes de dialogue ---------- */
.menu { position: fixed; z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow-y: auto; }
.menu button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.menu button:hover { background: var(--hover); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 2px; }
.menu .danger { color: var(--danger); }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 480px; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: #26292c; color: #fff; border-radius: 10px; padding: 11px 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: up .18s ease-out; }
.toast.error { background: var(--danger); }
.toast button { background: none; border: 0; color: #ff9c6e; font-weight: 700; cursor: pointer; padding: 0; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15,17,19,.42); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: 100%; max-width: 440px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 14px; }
.dialog h3 { margin: 0; font-size: 17px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; }
.notify-banner { display: flex; gap: 10px; align-items: center; margin: 0 10px 10px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 12.5px; }
.notify-banner .grow { flex: 1; }

/* ---------- Rédaction ---------- */
.composer { position: fixed; z-index: 40; right: 24px; bottom: 0; width: 720px; max-width: calc(100vw - 48px); height: min(680px, calc(100vh - 40px)); background: var(--surface);
  border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.composer.max { right: 50%; transform: translateX(50%); bottom: 20px; border-radius: 14px; border-bottom: 1px solid var(--border); width: min(1040px, calc(100vw - 48px)); height: calc(100vh - 40px); }
.composer.min { height: 48px; overflow: hidden; }
.comp-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--border); cursor: default; }
.comp-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-fields { border-bottom: 1px solid var(--border); }
.comp-row { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border); position: relative; }
.comp-row:last-child { border-bottom: 0; }
.comp-row label { color: var(--muted); font-size: 13px; width: 44px; flex: none; }
.comp-row input { border: 0; height: 40px; padding: 0; background: transparent; box-shadow: none !important; }
.comp-row .links { display: flex; gap: 8px; font-size: 12.5px; }
.comp-row .links button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.suggest { position: absolute; z-index: 5; left: 60px; right: 12px; top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; max-height: 260px; overflow-y: auto; }
.suggest button { display: grid; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.suggest button.on, .suggest button:hover { background: var(--hover); }
.suggest b { font-size: 13.5px; } .suggest span { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar .icon-btn { width: 32px; height: 32px; }
.comp-scroll { flex: 1; overflow-y: auto; }
.editor { min-height: 180px; padding: 14px 16px; outline: none; font: 14px/1.55 Arial, Helvetica, sans-serif; word-wrap: break-word; }
.editor:empty::before { content: attr(data-placeholder); color: var(--faint); }
.editor blockquote, .quote-box blockquote { margin: 0 0 0 4px; padding-left: 12px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.sig-box { margin: 4px 16px 12px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: #fff; color: #1d2023; position: relative; }
.sig-box .tag { position: absolute; top: -10px; left: 12px; background: var(--surface); color: var(--muted); font-size: 11px; padding: 0 6px; border-radius: 4px; font-weight: 600; }
.sig-box.off { opacity: .35; }
.quote-box { margin: 0 16px 16px; font-size: 13px; }
.quote-box .q { border: 1px solid var(--border); border-radius: 10px; padding: 12px; max-height: 340px; overflow: auto; background: var(--surface-2); }
.comp-atts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.comp-atts .att { padding: 6px 8px 6px 10px; }
.comp-atts .att.up { opacity: .6; }
.comp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.comp-foot .grow { flex: 1; }
.drop { outline: 2px dashed var(--brand); outline-offset: -8px; }

/* ---------- Réglages ---------- */
.settings { grid-column: 2 / span 2; overflow-y: auto; background: var(--bg); }
.settings-inner { max-width: 820px; margin: 0 auto; padding: 22px 24px 60px; display: grid; gap: 16px; }
.settings-inner > h2 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: grid; gap: 14px; }
.card h3 { margin: 0; font-size: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sig-view { background: #fff; color: #1d2023; border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow-x: auto; }
.keys { display: grid; gap: 8px; }
.key-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.key-row .grow { flex: 1; min-width: 0; }
.key-row small { display: block; color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.status.ok { background: #e6f4ea; color: var(--success); }
:root[data-theme="dark"] .status.ok { background: #16301e; color: #81c995; }

/* ---------- Tablette (533×815 portrait / 893×455 paysage, jusqu'à 1024 px) ---------- */
[data-layout="tablet"] .shell { grid-template-columns: 320px 1fr; }
[data-layout="tablet"] .side, [data-layout="mobile"] .side { position: fixed; z-index: 45; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
[data-layout="tablet"] .side.open, [data-layout="mobile"] .side.open { transform: none; }
.scrim { display: none; }
[data-layout="tablet"] .scrim.open, [data-layout="mobile"] .scrim.open { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(15,17,19,.4); }
[data-layout="tablet"] .settings { grid-column: 1 / span 2; }
.only-small { display: none; }
[data-layout="tablet"] .only-small, [data-layout="mobile"] .only-small { display: inline-grid; }
[data-layout="tablet"] .composer:not(.min) { right: 0; left: 0; bottom: 0; width: auto; max-width: none; height: 100%; border-radius: 0; transform: none; }

/* ---------- Mobile ---------- */
[data-layout="mobile"] .shell { grid-template-columns: 100%; }
[data-layout="mobile"] .reader { position: fixed; inset: 0; z-index: 30; transform: translateX(102%); transition: transform .2s ease; }
[data-layout="mobile"] .reader.open { transform: none; }
[data-layout="mobile"] .settings { grid-column: 1; }
[data-layout="mobile"] .reader-body { padding: 14px 14px 30px; }
[data-layout="mobile"] .msg-subject { font-size: 18px; }
[data-layout="mobile"] .composer, [data-layout="mobile"] .composer.max { inset: 0; width: auto; max-width: none; height: 100%; border-radius: 0; transform: none; border: 0; }
[data-layout="mobile"] .settings-inner { padding: 16px 14px 60px; }
[data-layout="mobile"] .grid2 { grid-template-columns: 1fr; }
[data-layout="mobile"] .hide-mobile { display: none !important; }
[data-layout="mobile"] .row .sel input { opacity: 0; }
[data-layout="mobile"] .list.selecting .row .sel input { opacity: 1; }
[data-layout="mobile"] .fab { display: grid; }
.fab { display: none; position: fixed; z-index: 20; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--brand); color: #fff; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; }
.fab svg.i { width: 24px; height: 24px; }
@media print { .side, .list-pane, .reader-bar, .composer, .fab { display: none !important; } .shell { display: block; } body { overflow: visible; } .reader-body { overflow: visible; } }
