/* Argus mail on the web — option B (docs/design/2026-10-30-mail/index.html),
   the split tabs (splits.html, A: words), remind me and inbox zero
   (remind-and-zero.html). Looks from those pages; tokens from tokens.css. */

:root {
  --ml-b1: rgba(232, 221, 208, 0.06);
  --ml-b2: rgba(232, 221, 208, 0.10);
  --ml-b3: rgba(232, 221, 208, 0.18);
  --ml-t1: #e8ddd0;
  --ml-t2: rgba(232, 221, 208, 0.62);
  --ml-t3: rgba(232, 221, 208, 0.38);
  --ml-amber: #d4840a;
  --ml-amber-l: #f5a623;
  --ml-fill: rgba(212, 132, 10, 0.10);
  --ml-ab: rgba(212, 132, 10, 0.28);
  --ml-card: rgba(20, 18, 16, 0.92);
  --ml-pop: #1d1915;
}

/* ── CHAT | MAIL, beside the mark ─────────────────────────────── */
.ml-switch { display: inline-flex; flex: none; border: 1px solid var(--ml-b2); border-radius: 10px; overflow: hidden; }
.ml-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 10px 13px;
  font: 600 11px/1 var(--f-data); letter-spacing: .14em; color: var(--ml-t3); white-space: nowrap;
}
.ml-switch button:hover { color: var(--ml-t2); }
.ml-switch button[aria-selected="true"] { background: var(--ml-fill); color: var(--ml-t1); box-shadow: inset 0 -2px 0 var(--ml-amber); }
.ml-switch b { color: var(--ml-amber-l); margin-left: 7px; font-weight: 400; }
.ml-switch b:empty { display: none; }
.ml-switch button:focus-visible { outline: 2px solid var(--ml-amber-l); outline-offset: -2px; }
body[data-layout="c"] .arg-header__brand { gap: 10px; }

/* ── The view ─────────────────────────────────────────────────── */
#view-mail { max-width: none; padding: 0; gap: 0; }
.ml-root { position: relative; }
.ml-scroll {
  position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 20px max(16px, calc((100% - 980px) / 2)) 48px;
}
body[data-layout="c"] .ml-scroll {
  padding-top: 76px;
  mask-image: linear-gradient(to bottom, var(--top-fade));
  -webkit-mask-image: linear-gradient(to bottom, var(--top-fade));
}
.ml-root--thread .ml-scroll {
  padding-left: max(16px, calc((100% - 880px) / 2)); padding-right: max(16px, calc((100% - 880px) / 2)); padding-bottom: 24px;
  mask-image: linear-gradient(to bottom, var(--top-fade, transparent 0, black 14px), black calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, var(--top-fade, transparent 0, black 14px), black calc(100% - 36px), transparent 100%);
}
.ml-col { width: 100%; }

/* Search and New */
.ml-top { display: flex; gap: 10px; align-items: center; }
.ml-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px;
  border: 1px solid var(--ml-b2); border-radius: 10px; background: rgba(14, 12, 10, 0.7); color: var(--ml-t3);
}
.ml-search:focus-within { border-color: var(--ml-ab); color: var(--ml-t1); }
.ml-search__i svg { width: 16px; height: 16px; display: block; }
.ml-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ml-t1); font: 13px var(--f-ui); }
.ml-search input::placeholder { color: var(--ml-t3); }
.ml-search input::-webkit-search-cancel-button { display: none; }
.ml-search__x { appearance: none; border: 0; background: none; color: var(--ml-t3); width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; }
.ml-search__x svg { width: 14px; height: 14px; }
.ml-search__x:hover { color: var(--ml-t1); background: rgba(232, 221, 208, .06); }
.ml-new {
  appearance: none; border: 0; cursor: pointer; flex: none; display: inline-flex; gap: 7px; align-items: center; height: 40px; padding: 0 13px;
  border-radius: 9px; background: var(--ml-amber); color: #120d05; font: 700 11px/1 var(--f-data); letter-spacing: .12em;
}
.ml-new svg { width: 14px; height: 14px; }
.ml-new:hover { background: var(--ml-amber-l); }

/* The split tabs (A: words) with Later at the end, and the gear */
.ml-tabrow { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 16px 4px 10px; }
.ml-tabs {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px; overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.ml-tabs::-webkit-scrollbar { display: none; }
.ml-tab, .ml-later {
  appearance: none; border: 0; background: none; cursor: pointer; position: relative; flex: none;
  display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 2px 10px;
  font: 600 18px/1 var(--f-display); letter-spacing: .01em; color: var(--ml-t3);
}
.ml-tab b, .ml-later b { font: 400 12px/1 var(--f-data); color: var(--ml-t3); }
.ml-tab:hover, .ml-later:hover { color: var(--ml-t2); }
.ml-tab.on, .ml-later.on { color: var(--ml-t1); }
.ml-tab.on b, .ml-later.on b { color: var(--ml-amber-l); }
.ml-tab.on::after, .ml-later.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--ml-amber); }
.ml-tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--ic); align-self: center; }
.ml-sep { color: var(--ml-t3); opacity: .45; padding: 0 6px; font-size: 16px; flex: none; }
.ml-later { margin-left: 22px; font-size: 15px; gap: 6px; }
.ml-later svg { width: 13px; height: 13px; align-self: center; }
.ml-tab:focus-visible, .ml-later:focus-visible { outline: 2px solid var(--ml-amber-l); outline-offset: 2px; border-radius: 4px; }
.ml-gear2 {
  appearance: none; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--ml-b2); flex: none;
  display: grid; place-items: center; color: var(--ml-t2); background: rgba(14, 12, 10, .5);
}
.ml-gear2 svg { width: 16px; height: 16px; }
.ml-gear2:hover { color: var(--ml-t1); border-color: var(--ml-b3); }

.ml-lh { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; font: 600 11px/1 var(--f-data); letter-spacing: .16em; color: var(--ml-t3); text-transform: uppercase; }
.ml-card { background: var(--ml-card); border: 1px solid var(--ml-b2); border-radius: 14px; overflow: hidden; }
.ml-card:empty { display: none; }
.ml-dg { font: 600 10.5px/1 var(--f-data); letter-spacing: .14em; color: var(--ml-t3); text-transform: uppercase; padding: 14px 18px 8px; }
.ml-card > .ml-dg:first-child { padding-top: 12px; }
.ml-dg + .ml-row { border-top: 0; }
.ml-foot { display: flex; justify-content: center; padding: 14px 0 0; }
.ml-morebtn, .ml-link {
  appearance: none; background: none; cursor: pointer; border: 1px solid var(--ml-b2); border-radius: 8px; padding: 8px 14px;
  font: 600 11px/1 var(--f-data); letter-spacing: .12em; color: var(--ml-t2);
}
.ml-link { border: 0; padding: 0; color: var(--ml-amber-l); letter-spacing: .04em; font: 600 13px var(--f-ui); }
.ml-empty { padding: 28px 18px; text-align: center; color: var(--ml-t3); font-size: 14px; }
.ml-note { padding: 12px 14px; color: var(--ml-t3); font-size: 12.5px; }
.ml-loading { height: 120px; background: linear-gradient(90deg, transparent, rgba(232, 221, 208, .035), transparent) 0 0 / 50% 100% no-repeat; animation: ml-shimmer 1.2s linear infinite; }
@keyframes ml-shimmer { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.ml-banner { margin-bottom: 12px; }
.ml-ban {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--ml-b2); border-radius: 14px;
  background: var(--ml-card); color: var(--ml-t2); font-size: 14px;
}
.ml-ban > span { flex: 1; min-width: 0; }
.ml-ban b { color: var(--ml-t1); }
.ml-ban svg { width: 22px; height: 22px; color: var(--ml-amber-l); flex: none; }
.ml-ban--connect { max-width: 520px; margin: 60px auto 0; }

/* ── A thread in the list ─────────────────────────────────────── */
.ml-row { position: relative; border-top: 1px solid var(--ml-b1); cursor: pointer; overflow: hidden; touch-action: pan-y; }
.ml-card > .ml-row:first-child { border-top: 0; }
.ml-row__in {
  position: relative; display: grid; grid-template-columns: 12px 200px minmax(0, 1fr) auto minmax(64px, auto); gap: 14px; align-items: center;
  padding: 13px 18px; background: transparent; font-size: 13px;
}
.ml-row.swiping .ml-row__in { background: #171411; }
.ml-row__dot { width: 7px; height: 7px; border-radius: 50%; }
.ml-row.un .ml-row__dot { background: var(--ml-amber); }
.ml-row__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ml-t2); font-weight: 500; }
.ml-row.un .ml-row__who { color: var(--ml-t1); font-weight: 700; }
.ml-n { font: 11px/1 var(--f-data); color: var(--ml-t3); margin-left: 7px; font-weight: 400; }
.ml-row__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ml-row__sj { color: var(--ml-t2); }
.ml-row.un .ml-row__sj { color: var(--ml-t1); font-weight: 600; }
.ml-row__sn { color: var(--ml-t3); }
.ml-row__sn:not(:empty)::before { content: ' — '; }
.ml-row__rt { display: flex; gap: 10px; align-items: center; justify-content: flex-end; min-width: 0; }
.ml-row__tm { text-align: right; font: 11px/1 var(--f-data); color: var(--ml-t3); white-space: nowrap; }
.ml-row.un .ml-row__tm, .ml-row.back .ml-row__tm, .ml-row.later .ml-row__tm { color: var(--ml-amber-l); }
.ml-row.sel .ml-row__in { background: var(--ml-fill); box-shadow: inset 2px 0 0 var(--ml-amber); }
.ml-row.back .ml-row__in { background: rgba(212, 132, 10, .06); }
.ml-row.back.sel .ml-row__in { background: var(--ml-fill); }
.ml-cmk { display: inline-flex; color: var(--ml-amber-l); margin-right: 6px; vertical-align: -2px; }
.ml-cmk svg { width: 13px; height: 13px; }
.ml-cmk--q { color: var(--ml-t3); }
.ml-att-i { color: var(--ml-t3); display: inline-flex; }
.ml-att-i svg { width: 13px; height: 13px; }
.ml-acc { display: inline-flex; align-items: center; gap: 5px; font: 10px/1 var(--f-data); letter-spacing: .03em; color: var(--ml-t3); white-space: nowrap; }
.ml-acc i { width: 6px; height: 6px; border-radius: 50%; background: var(--ic); flex: none; }
.ml-tag { font: 600 9.5px/1 var(--f-data); letter-spacing: .1em; padding: 3px 5px; border-radius: 4px; border: 1px solid var(--ml-b2); color: var(--ml-t3); white-space: nowrap; }
.ml-tag--in { color: var(--ml-amber-l); border-color: var(--ml-ab); }
.ml-row__hk { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: none; gap: 6px; }
.ml-hb {
  appearance: none; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--ml-b3);
  display: grid; place-items: center; color: var(--ml-t1); background: var(--c-elevated, #1e1a17);
}
.ml-hb:first-child { border-color: var(--ml-ab); color: var(--ml-amber-l); background: #261d12; }
.ml-hb svg { width: 14px; height: 14px; }
.ml-hb:hover { border-color: var(--ml-amber); color: var(--ml-amber-l); }
@media (hover: hover) {
  .ml-row:hover .ml-row__in { background: rgba(232, 221, 208, .04); }
  .ml-row.sel:hover .ml-row__in { background: var(--ml-fill); }
  .ml-row:hover .ml-row__tm, .ml-row:hover .ml-row__rt { visibility: hidden; }
  .ml-row:hover .ml-row__hk { display: flex; }
}
.ml-row:focus-within .ml-row__hk { display: flex; }
.ml-row:focus-within .ml-row__tm, .ml-row:focus-within .ml-row__rt { visibility: hidden; }

/* Under a finger: swipe left = Done (amber), drag right = Move (blue), hold = Remind */
.ml-under { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; color: #120d05; font: 700 12px/1 var(--f-data); letter-spacing: .14em; }
.ml-under--done { justify-content: flex-end; padding-right: 20px; background: linear-gradient(270deg, #a5650a, #d4840a); }
.ml-under--move { justify-content: flex-start; padding-left: 20px; background: linear-gradient(90deg, #34507d, #4a6aa3); color: #eef2fa; }
.ml-under:not(.armed) { filter: saturate(.55) brightness(.8); }
.ml-row.held .ml-row__in { background: #241e19; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }

/* ── The thread ───────────────────────────────────────────────── */
.ml-tbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ml-tbar__sp { flex: 1; }
.ml-acts-slot { display: flex; gap: 8px; align-items: center; }
.ml-back {
  appearance: none; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 11px/1 var(--f-data); letter-spacing: .12em; color: var(--ml-t2); border: 1px solid var(--ml-b2); border-radius: 8px; padding: 10px 12px;
}
.ml-back svg { width: 13px; height: 13px; }
.ml-back:hover { color: var(--ml-t1); border-color: var(--ml-b3); }
.ml-hint { font: 11px/1.3 var(--f-data); color: var(--ml-t3); white-space: nowrap; }
.ml-th { display: flex; align-items: flex-start; gap: 14px; }
.ml-th__t { flex: 1; min-width: 0; }
.ml-th h3 { font: 700 19px/1.3 var(--f-display); letter-spacing: .01em; margin: 0; text-transform: none; overflow-wrap: anywhere; }
.ml-meta { font: 11px/1.4 var(--f-data); color: var(--ml-t3); margin-top: 5px; letter-spacing: .03em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ml-meta__rem { display: inline-flex; align-items: center; gap: 5px; color: var(--ml-amber-l); }
.ml-meta__rem svg { width: 12px; height: 12px; }
.ml-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.ml-done {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--ml-ab); border-radius: 10px; background: var(--ml-fill); font: 700 11px/1 var(--f-data); letter-spacing: .14em; color: var(--ml-amber-l); white-space: nowrap;
}
.ml-done svg { width: 16px; height: 16px; }
.ml-done:hover { background: rgba(212, 132, 10, .18); border-color: var(--ml-amber); }
.ml-clockbtn {
  appearance: none; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ml-b3);
  display: grid; place-items: center; color: var(--ml-t1); background: rgba(232, 221, 208, .03); flex: none;
}
.ml-clockbtn svg { width: 18px; height: 18px; }
.ml-clockbtn:hover { border-color: var(--ml-ab); color: var(--ml-amber-l); background: var(--ml-fill); }
.ml-msgs { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }

.ml-fm {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--ml-b1);
  border-radius: 10px; background: rgba(20, 18, 16, .6); cursor: pointer; min-width: 0;
}
.ml-fm:hover, .ml-fm:focus-visible { border-color: var(--ml-b3); background: rgba(30, 26, 23, .8); outline: none; }
.ml-fm__nm { font-weight: 600; white-space: nowrap; }
.ml-fm__sn { color: var(--ml-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ml-fm__dt { font: 11px/1 var(--f-data); color: var(--ml-t3); white-space: nowrap; }
.ml-fm__mini { display: none; gap: 4px; }
@media (hover: hover) { .ml-fm:hover .ml-fm__dt { display: none; } .ml-fm:hover .ml-fm__mini { display: flex; } }
.ml-mini { appearance: none; background: none; cursor: pointer; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--ml-b2); display: grid; place-items: center; color: var(--ml-t2); }
.ml-mini svg { width: 14px; height: 14px; }
.ml-mini:hover { color: var(--ml-t1); border-color: var(--ml-b3); }
.ml-more {
  appearance: none; cursor: pointer; text-align: left; font: 11px/1 var(--f-data); color: var(--ml-t3); letter-spacing: .06em;
  padding: 9px 14px; border: 1px dashed var(--ml-b2); border-radius: 10px; background: none;
}
.ml-more:hover { color: var(--ml-t2); }
.ml-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--f-ui); color: #14100b; flex: none; }

.ml-om {
  position: relative; display: flex; flex-direction: column; margin-top: 2px; border: 1px solid var(--ml-b2); border-radius: 12px;
  background: rgba(20, 18, 16, .94); padding: 16px 18px;
}
.ml-om__hd { display: flex; align-items: flex-start; gap: 12px; padding-right: 300px; min-width: 0; }
.ml-om__who { min-width: 0; flex: 1; }
.ml-om__nm { font-weight: 700; }
.ml-om__em { color: var(--ml-t3); font-size: 12px; }
.ml-om__to { font: 11px/1.45 var(--f-data); color: var(--ml-t3); margin-top: 3px; overflow-wrap: anywhere; }
.ml-om__acts { position: absolute; top: 14px; right: 16px; display: flex; gap: 6px; }
.ml-act {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 11px;
  border: 1px solid var(--ml-b2); border-radius: 8px; font: 600 12px/1 var(--f-ui); color: var(--ml-t1); white-space: nowrap; background: rgba(232, 221, 208, .02);
}
.ml-act svg { width: 14px; height: 14px; color: var(--ml-t2); }
.ml-act:hover { border-color: var(--ml-b3); background: rgba(232, 221, 208, .05); }
.ml-imgoff {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding: 8px 12px; border-radius: 8px;
  background: rgba(232, 221, 208, .035); border: 1px dashed var(--ml-b2); font-size: 12px; color: var(--ml-t2);
}
.ml-imgoff svg { width: 16px; height: 16px; color: var(--ml-t3); }
.ml-imgoff button { appearance: none; border: 0; background: none; cursor: pointer; padding: 0; color: var(--ml-amber-l); font: 600 12px var(--f-ui); }
.ml-imgoff button:hover { color: #ffc35a; }
.ml-om__bd { margin-top: 12px; color: var(--ml-t1); font-size: 14px; line-height: 1.6; min-width: 0; }
.mtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.mtext a, .ml-om__bd a { color: var(--ml-amber-l); }
.mquote { margin-top: 8px; }
.mquote summary {
  list-style: none; display: inline-block; cursor: pointer; font: 11px/1 var(--f-data); color: var(--ml-t3);
  border: 1px solid var(--ml-b2); border-radius: 6px; padding: 5px 9px; letter-spacing: .1em;
}
.mquote summary::-webkit-details-marker { display: none; }
.mquote .mtext { color: var(--ml-t3); margin-top: 8px; border-left: 2px solid var(--ml-b2); padding-left: 12px; }
.ml-quote { appearance: none; cursor: pointer; margin-top: 8px; font: 11px/1 var(--f-data); color: var(--ml-t3); border: 1px solid var(--ml-b2); border-radius: 6px; padding: 5px 9px; background: none; letter-spacing: .1em; }
.ml-iframe { display: block; width: 100%; height: 120px; border: 0; border-radius: 10px; background: transparent; color-scheme: normal; }
.ml-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ml-att {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--ml-b2);
  border-radius: 10px; background: var(--c-elevated, #1e1a17); color: var(--ml-t1); text-align: left; max-width: 100%; min-width: 0;
}
.ml-att:hover { border-color: var(--ml-b3); }
.ml-att__k { width: 30px; height: 34px; border-radius: 5px; display: grid; place-items: center; font: 700 9px/1 var(--f-data); color: #e8ddd0; flex: none; }
.ml-att__t { min-width: 0; }
.ml-att__t b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ml-att__t small { color: var(--ml-t3); font: 11px/1 var(--f-data); }
.ml-att--all svg { width: 18px; height: 18px; color: var(--ml-amber-l); }
.ml-sending { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--ml-ab); border-radius: 10px; background: rgba(212, 132, 10, .05); }
.ml-sending__t { min-width: 0; font-size: 13px; }
.ml-sending__t span { font: 11px/1.3 var(--f-data); color: var(--ml-t3); }
.ml-wait { margin-left: auto; font: 700 10px/1 var(--f-data); letter-spacing: .12em; color: var(--ml-amber-l); white-space: nowrap; }

/* ── The reply box: the chat's own box with a mail line on top ─── */
.composer--mail .media-plus,
.composer--mail .audio-toggle,
.composer--mail .composer__live,
.composer--mail .composer__divider,
.composer--mail .chat-latest,
.composer--mail .composer__tray { display: none !important; }
.composer--mail .composer__box { border-color: var(--ml-b3); }
.composer--mail .composer__box:focus-within { border-color: var(--ml-ab); }
.mc { min-width: 0; }
.mc-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--ml-b1); font: 700 12px/1.2 var(--f-data); letter-spacing: .1em; color: var(--ml-t2); }
.mc-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sp { flex: 1; }
.mc-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-ib {
  appearance: none; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none;
  display: grid; place-items: center; color: var(--ml-t2); flex: none;
}
.mc-ib svg { width: 15px; height: 15px; }
.mc-ib:hover, .mc-ib.on { background: rgba(232, 221, 208, .08); color: var(--ml-t1); }
.mc-type { appearance: none; cursor: pointer; border: 0; background: none; display: inline-flex; align-items: center; gap: 1px; color: var(--ml-t1); padding: 4px 5px; border-radius: 8px; flex: none; }
.mc-type:hover { background: rgba(232, 221, 208, .08); }
.mc-type__ic svg { width: 18px; height: 18px; display: block; }
.mc-cv svg { width: 13px; height: 13px; display: block; color: var(--ml-t2); }
.mc-to {
  appearance: none; cursor: pointer; border: 0; background: none; padding: 0; text-align: left; color: var(--ml-t1);
  font: 600 14px var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto;
}
.mc-to small { color: var(--ml-t3); font-weight: 400; font-size: 13px; }
.mc-lab { font: 600 10px/1 var(--f-data); letter-spacing: .16em; color: var(--ml-t3); text-transform: uppercase; flex: none; width: 58px; }
.mc-tolab { width: auto; margin-left: 4px; }
.mc-in { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ml-t1); font: 14px var(--f-ui); padding: 4px 2px; }
.mc-in::placeholder { color: var(--ml-t3); }
.mc-in--bad { color: #ff8a8a; text-decoration: underline wavy rgba(255, 59, 59, .6); }
.mc-toin { flex: 1 1 120px; }
.mc-opts { margin: 8px 0 2px; border-top: 1px solid var(--ml-b1); border-bottom: 1px solid var(--ml-b1); padding: 4px 0; }
.mc-o { display: flex; align-items: center; gap: 10px; padding: 4px 2px; min-width: 0; }
.mc-o .mc-in { flex: 1; }
.mc-full {
  appearance: none; cursor: pointer; border: 0; background: none; padding: 4px 2px; color: var(--ml-t1);
  display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px var(--f-ui); min-width: 0; white-space: nowrap; overflow: hidden;
}
.mc-full i { width: 8px; height: 8px; border-radius: 50%; background: var(--ic); flex: none; }
.mc-full svg { width: 13px; height: 13px; color: var(--ml-amber-l); flex: none; }
.mc-full__a { overflow: hidden; text-overflow: ellipsis; }
.mc-subj { display: block; width: 100%; font-weight: 600; font-size: 14.5px; padding: 8px 2px; border-bottom: 1px solid var(--ml-b1); }
/* The From badge: the short name of the address you send as, in its colour. */
.fbadge {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; flex: none;
  font: 700 11px/1 var(--f-data); letter-spacing: .05em; white-space: nowrap;
  color: color-mix(in srgb, var(--ic, #8fa3bf) 72%, #fff); background: color-mix(in srgb, var(--ic, #8fa3bf) 17%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic, #8fa3bf) 50%, transparent);
}
.fbadge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ic, #8fa3bf); }
.fbadge:hover, .fbadge[aria-expanded="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ic, #8fa3bf) 30%, transparent); }
.composer--mail .composer__input { padding-top: 8px; }

/* Expanded, and every new email: the same box over the page. */
.arg-footer.mail-full { animation: none !important; transform: none !important; opacity: 1 !important; }
.mc-dim { position: fixed; inset: 0; z-index: 62; background: rgba(6, 5, 4, .62); }
.composer--full { position: fixed; z-index: 63; left: 50%; transform: translateX(-50%); top: 96px; bottom: 24px; width: min(780px, calc(100vw - 32px)); margin: 0; }
.composer--full .composer__box { height: 100%; display: flex; flex-direction: column; padding: 0; border-radius: 16px; background: rgba(22, 19, 17, .99); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.composer--full .mc-line { padding: 10px 12px; border-bottom: 1px solid var(--ml-b1); }
.composer--full .mc-opts { margin: 0; border-top: 0; padding: 4px 16px; }
.composer--full .mc-subj { padding: 10px 16px; }
.composer--full .composer__input { flex: 1 1 auto; height: auto !important; min-height: 120px; padding: 12px 16px; overflow-y: auto !important; }
.composer--full .composer__row { padding: 10px 12px; border-top: 1px solid var(--ml-b1); }
.mc-head[hidden] { display: none; }
.composer--mail:not(.composer--full) .mc-head { display: none; }

/* ── What floats: dims, menus, sheets, panels, toasts ─────────── */
.ml-layer { position: relative; z-index: 64; }
.ml-dim { position: fixed; inset: 0; z-index: 65; background: rgba(6, 5, 4, .55); }
.ml-dim--clear { background: transparent; }
.ml-dim--modal { background: rgba(6, 5, 4, .62); }
.ml-pop {
  position: fixed; z-index: 66; background: var(--ml-pop); border: 1px solid var(--ml-b3); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .65); max-height: calc(100vh - 16px); overflow-y: auto;
}
.ml-pop--sheet {
  left: 0; right: 0; bottom: 0; top: auto; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 0 8px calc(18px + env(safe-area-inset-bottom));
  max-height: 85vh; background: rgba(24, 21, 18, .995); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: ml-up 180ms ease;
}
@keyframes ml-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.ml-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ml-b3); margin: 9px auto 4px; }
.ml-menu { padding: 6px; min-width: 250px; }
.ml-pop--sheet .ml-menu { min-width: 0; }
.ml-mh { font: 600 10px/1 var(--f-data); letter-spacing: .16em; color: var(--ml-t3); padding: 9px 10px 7px; }
.ml-mi {
  appearance: none; cursor: pointer; width: 100%; border: 0; background: none; text-align: left; color: var(--ml-t1);
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font: 13.5px var(--f-ui); white-space: nowrap; min-width: 0;
}
.ml-mi:hover:not(:disabled), .ml-mi.on { background: var(--ml-fill); }
.ml-mi:disabled { cursor: default; color: var(--ml-t3); }
.ml-mi > i { width: 8px; height: 8px; border-radius: 50%; background: var(--ic, transparent); flex: none; }
.ml-mi svg { width: 16px; height: 16px; color: var(--ml-t2); flex: none; }
.ml-mi b { font: 700 12px var(--f-data); letter-spacing: .04em; }
.ml-mi small { color: var(--ml-t3); font: 10px/1 var(--f-data); margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.ml-ma { color: var(--ml-t3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ml-ck { margin-left: auto; color: var(--ml-amber-l); display: inline-flex; }
.ml-ck svg { color: var(--ml-amber-l); }
.ml-n2 { margin-left: auto; font: 11px/1 var(--f-data); color: var(--ml-t3); }
.ml-sepl { height: 1px; background: var(--ml-b1); margin: 4px 0; }
.ml-menu--from { width: 372px; max-width: calc(100vw - 16px); }
.ml-pop--sheet .ml-menu--from { width: auto; }
.ml-mvmenu { width: 270px; }
.ml-pop--sheet .ml-mvmenu { width: auto; }
.ml-mvfor { padding: 6px 12px 4px; font-size: 13px; color: var(--ml-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-mvfor b { color: var(--ml-t1); }

.ml-toasts {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 64; display: flex; flex-direction: column; align-items: center;
  gap: 8px; pointer-events: none; max-width: calc(100vw - 20px);
}
body.ml-thread-open .ml-toasts { bottom: calc(var(--ml-footer-h, 120px) + 10px); }
.ml-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; border-radius: 12px; background: #241f1a;
  border: 1px solid var(--ml-b3); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); font-size: 13px; color: var(--ml-t1); white-space: nowrap; max-width: 100%;
  animation: ml-toast-in 160ms ease;
}
.ml-toast--out { opacity: 0; transform: translateY(6px); transition: opacity 160ms ease, transform 160ms ease; }
@keyframes ml-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ml-toast__ic { display: inline-flex; color: var(--ml-amber-l); }
.ml-toast__ic svg { width: 16px; height: 16px; }
.ml-toast__tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ml-toast__tx b { font-weight: 700; }
.ml-toast__mark { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ml-t3); position: relative; flex: none; }
.ml-toast__mark::before, .ml-toast__mark::after { content: ''; position: absolute; left: 4.5px; bottom: 4.5px; width: 1.5px; background: var(--ml-t3); transform-origin: bottom; }
.ml-toast__mark::before { height: 4px; }
.ml-toast__mark::after { height: 3px; transform: rotate(90deg); }
.ml-cd { font: 11px/1 var(--f-data); color: var(--ml-t3); margin-left: 6px; }
.ml-toast__btn {
  appearance: none; cursor: pointer; flex: none; font: 700 11px/1 var(--f-data); letter-spacing: .14em; color: var(--ml-amber-l);
  border: 1px solid var(--ml-ab); border-radius: 7px; padding: 8px 10px; background: none;
}
.ml-toast__btn:hover { background: var(--ml-fill); }
.ml-toast__btn--q { color: var(--ml-t2); border-color: var(--ml-b2); }

.ml-modal {
  position: fixed; z-index: 66; left: 50%; top: 72px; transform: translateX(-50%); width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 100px);
  display: flex; flex-direction: column; background: rgba(23, 20, 17, .995); border: 1px solid var(--ml-b3); border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); overflow: hidden;
}
.ml-modal > * { min-height: 0; display: flex; flex-direction: column; }
.ml-modal__h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--ml-b1); flex: none; }
.ml-pt { font: 700 15px/1 var(--f-display); letter-spacing: .16em; }
.ml-flex { flex: 1; }
.ml-x { appearance: none; cursor: pointer; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--ml-b2); display: grid; place-items: center; color: var(--ml-t2); background: none; flex: none; }
.ml-x svg { width: 15px; height: 15px; }
.ml-x:hover { color: var(--ml-t1); border-color: var(--ml-b3); }
.ml-addbtn, .ml-save {
  appearance: none; cursor: pointer; border: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px;
  background: var(--ml-amber); color: #120d05; font: 700 11px/1 var(--f-data); letter-spacing: .12em; white-space: nowrap; flex: none;
}
.ml-addbtn svg { width: 14px; height: 14px; }
.ml-addbtn:hover, .ml-save:hover { background: var(--ml-amber-l); }
.ml-save { padding: 0 18px; }
.ml-save:disabled { opacity: .5; cursor: default; }
.ml-btn2 { appearance: none; cursor: pointer; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--ml-b2); background: none; font: 600 11px/1 var(--f-data); letter-spacing: .12em; color: var(--ml-t2); white-space: nowrap; }
.ml-btn2--danger, .ml-danger { color: #ff8a8a !important; border-color: rgba(255, 59, 59, .35) !important; }

/* The list of splits */
.ml-srows { overflow-y: auto; }
.ml-srow { display: grid; grid-template-columns: 14px 170px minmax(0, 1fr) 46px 20px; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--ml-b1); cursor: pointer; position: relative; background: rgba(23, 20, 17, .995); transition: transform 120ms ease; }
.ml-srow:first-child { border-top: 0; }
.ml-srow:hover { background: #1c1815; }
.ml-srow.lift { z-index: 2; background: #29221c; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); transition: none; border-top-color: transparent; }
.ml-srow.sys { cursor: pointer; }
.ml-grip-h { cursor: grab; touch-action: none; padding: 6px 2px; margin: -6px -2px; }
.ml-grip { display: grid; grid-template-columns: 3px 3px; gap: 3px; }
.ml-grip i { width: 3px; height: 3px; border-radius: 50%; background: var(--ml-t3); }
.ml-srow__nm { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; }
.ml-srow__nm i { width: 8px; height: 8px; border-radius: 50%; background: var(--ic); flex: none; }
.ml-srow__rule { font: 11.5px/1.3 var(--f-data); color: var(--ml-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-srow__cnt { font: 12px/1 var(--f-data); color: var(--ml-t2); text-align: right; }
.ml-srow__bell { color: var(--ml-amber-l); display: inline-flex; }
.ml-srow__bell svg { width: 14px; height: 14px; }
.ml-tpl { width: 400px; max-width: calc(100vw - 16px); }
.ml-pop--sheet .ml-tpl { width: auto; }
.ml-ti { appearance: none; cursor: pointer; width: 100%; border: 0; background: none; color: var(--ml-t1); text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; min-width: 0; }
.ml-ti:hover { background: var(--ml-fill); }
.ml-ti__ico { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--ml-b2); display: grid; place-items: center; color: var(--ml-t2); flex: none; }
.ml-ti__ico svg { width: 16px; height: 16px; }
.ml-ti__tx { min-width: 0; }
.ml-ti__tx b { display: block; font-size: 13.5px; }
.ml-ti__tx small { display: block; font: 11px/1.35 var(--f-data); color: var(--ml-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ml-dots6 { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; }
.ml-dots6 i { width: 6px; height: 6px; border-radius: 50%; background: var(--ic); }
.ml-ti-sub { padding: 0 0 6px 44px; }

/* The editor */
.ml-modal--editor { top: 56px; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 84px); }
.ml-ed { flex: 1; min-height: 0; }
.ml-ed__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow-y: auto; }
.ml-ed__body > div { padding: 18px 20px; min-width: 0; }
.ml-ed__body > div + div { border-left: 1px solid var(--ml-b1); }
.ml-fld { display: block; margin-bottom: 16px; }
.ml-lab { display: block; font: 600 10px/1 var(--f-data); letter-spacing: .16em; color: var(--ml-t3); text-transform: uppercase; margin-bottom: 8px; }
.ml-inp {
  display: block; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--ml-b3); border-radius: 10px; background: rgba(14, 12, 10, .7);
  color: var(--ml-t1); font: 600 14px var(--f-ui); outline: 0;
}
.ml-inp:focus { border-color: var(--ml-ab); }
.ml-inp--mono { height: auto; padding: 10px 12px; font: 12px/1.55 var(--f-data); font-weight: 400; border-color: var(--ml-b2); resize: vertical; }
.ml-inp--bad { border-color: rgba(255, 59, 59, .55) !important; }
.ml-bad { display: block; margin-top: 6px; font-size: 12px; color: #ff8a8a; }
.ml-rr--bad .ml-vals { border-color: rgba(255, 59, 59, .55); }
.ml-rrow { display: grid; grid-template-columns: 148px minmax(0, 1fr) 26px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ml-sel {
  height: 38px; padding: 0 10px; border: 1px solid var(--ml-b2); border-radius: 9px; background: rgba(14, 12, 10, .6); color: var(--ml-t1);
  font: 13px var(--f-ui); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ml-t2) 50%), linear-gradient(135deg, var(--ml-t2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat;
}
.ml-sel option { background: #1d1915; }
.ml-vals { display: flex; flex-wrap: wrap; gap: 6px; min-height: 38px; align-items: center; padding: 4px 8px; border: 1px solid var(--ml-b2); border-radius: 9px; background: rgba(14, 12, 10, .6); cursor: text; min-width: 0; }
.ml-vals:focus-within { border-color: var(--ml-ab); }
.ml-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border-radius: 999px; background: rgba(232, 221, 208, .06); border: 1px solid var(--ml-b2); font-size: 12px; white-space: nowrap; max-width: 100%; overflow: hidden; }
.ml-pill button { appearance: none; border: 0; background: none; cursor: pointer; color: var(--ml-t3); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.ml-pill button svg { width: 10px; height: 10px; }
.ml-pill button:hover { color: var(--ml-t1); background: rgba(232, 221, 208, .1); }
.ml-vin { flex: 1 1 60px; min-width: 60px; border: 0; outline: 0; background: transparent; color: var(--ml-t1); font: 13px var(--f-ui); padding: 4px 2px; }
.ml-vin::placeholder { color: var(--ml-t3); }
.ml-rx { appearance: none; cursor: pointer; border: 0; background: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--ml-t3); }
.ml-rx svg { width: 13px; height: 13px; }
.ml-rx:hover { color: var(--ml-t1); background: rgba(232, 221, 208, .06); }
.ml-addc { appearance: none; cursor: pointer; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--f-ui); color: var(--ml-amber-l); padding: 6px 2px; }
.ml-addc svg { width: 14px; height: 14px; }
.ml-prevh { display: flex; align-items: baseline; gap: 8px; font: 600 11px/1 var(--f-data); letter-spacing: .14em; color: var(--ml-t3); text-transform: uppercase; margin-bottom: 10px; }
.ml-prevh b { color: var(--ml-amber-l); font: 700 18px/1 var(--f-display); letter-spacing: 0; }
.ml-pcard { border: 1px solid var(--ml-b2); border-radius: 12px; overflow: hidden; background: rgba(14, 12, 10, .45); }
.ml-pcard:empty { display: none; }
.ml-pcard .ml-row { cursor: default; }
.ml-pcard .ml-row__in { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who rt tm" "txt txt txt"; gap: 2px 8px; padding: 10px 12px 10px 22px; }
.ml-pcard .ml-row__dot { position: absolute; left: 9px; top: 16px; }
.ml-pcard .ml-row__who { grid-area: who; } .ml-pcard .ml-row__rt { grid-area: rt; } .ml-pcard .ml-row__tm { grid-area: tm; }
.ml-pcard .ml-row__txt { grid-area: txt; }
.ml-pcard .ml-row__hk { display: none !important; }
.ml-pcard .ml-row__tm { visibility: visible !important; }
.ml-trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ml-b1); font-size: 14px; margin-top: 14px; }
.ml-tog { appearance: none; cursor: pointer; border: 0; position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(232, 221, 208, .14); flex: none; padding: 0; }
.ml-tog::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ml-t2); transition: left 120ms ease; }
.ml-tog[aria-checked="true"] { background: var(--ml-amber); }
.ml-tog[aria-checked="true"]::after { left: 19px; background: #120d05; }
.ml-tog:focus-visible { outline: 2px solid var(--ml-amber-l); outline-offset: 2px; }
.ml-mfoot { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 20px; border-top: 1px solid var(--ml-b1); flex: none; flex-direction: row !important; }

/* The remind box */
.ml-pop--remind { width: 380px; max-width: calc(100vw - 16px); overflow: hidden; border-radius: 14px; }
.ml-pop--remind.ml-pop--sheet { width: auto; max-width: none; border-radius: 22px 22px 0 0; }
.ml-rbox__for { padding: 6px 16px 4px; font-size: 13px; color: var(--ml-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-rbox__for b { color: var(--ml-t1); }
.ml-rbox__in { display: flex; align-items: center; gap: 10px; padding: 14px 16px 13px; border-bottom: 1px solid var(--ml-b1); }
.ml-rbox__in svg { width: 18px; height: 18px; color: var(--ml-amber-l); flex: none; }
.ml-rbox__in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ml-t1); font: 17px var(--f-ui); }
.ml-rbox__in input::placeholder { color: var(--ml-t3); }
.ml-rbox__in.bad input { color: var(--ml-t2); }
.ml-rbox__list { padding: 4px 0; }
.ml-ri { appearance: none; cursor: pointer; width: 100%; border: 0; background: none; color: var(--ml-t1); display: flex; align-items: center; gap: 10px; padding: 11px 16px; font: 14px var(--f-ui); text-align: left; }
.ml-ri__w { margin-left: auto; font: 12px/1 var(--f-data); color: var(--ml-t3); white-space: nowrap; }
.ml-ri.on, .ml-ri:hover { background: var(--ml-fill); box-shadow: inset 2px 0 0 var(--ml-amber); }
.ml-ri.on .ml-ri__w, .ml-ri--hit .ml-ri__w { color: var(--ml-amber-l); }
.ml-rbox__sep { height: 1px; background: var(--ml-b1); margin: 4px 0; }
.ml-rsw { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--ml-b1); font-size: 14px; }

/* The keys, behind ? */
.ml-modal--keys { width: min(440px, calc(100vw - 32px)); top: 90px; }
.ml-keys dl { margin: 0; padding: 10px 20px 18px; display: grid; gap: 8px; overflow-y: auto; }
.ml-keys dl > div { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.ml-keys dt { display: flex; gap: 5px; flex-wrap: wrap; }
.ml-keys dd { margin: 0; color: var(--ml-t2); font-size: 13.5px; }
.ml-keys kbd { font: 11px/1 var(--f-data); border: 1px solid var(--ml-b3); border-bottom-width: 2px; border-radius: 5px; padding: 4px 6px; color: var(--ml-t1); background: rgba(232, 221, 208, .04); }

/* ── Inbox zero: the day's photograph ─────────────────────────── */
.ml-zero { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ml-zpic { position: absolute; inset: 0; background-size: cover; background-position: center; animation: ml-fade 600ms ease; }
@keyframes ml-fade { from { opacity: 0; } to { opacity: 1; } }
.ml-ztop { position: absolute; left: 0; right: 0; top: 0; height: 300px; background: linear-gradient(180deg, rgba(6, 5, 4, .86) 0%, rgba(6, 5, 4, .68) 38%, rgba(6, 5, 4, .32) 68%, rgba(6, 5, 4, 0) 100%); }
.ml-zbot { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: linear-gradient(0deg, rgba(6, 5, 4, .82) 0%, rgba(6, 5, 4, .42) 50%, rgba(6, 5, 4, 0) 100%); }
.ml-streak { position: absolute; left: 28px; bottom: 28px; z-index: 2; font: 600 16px/1.3 var(--f-display); letter-spacing: .01em; color: #f6efe6; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.ml-streak b { color: var(--ml-amber-l); font-weight: 700; }
.ml-credit { position: absolute; right: 26px; bottom: 30px; z-index: 2; font: 11px/1.3 var(--f-data); letter-spacing: .04em; color: rgba(246, 239, 230, .6); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); white-space: nowrap; text-decoration: none; }
a.ml-credit[href]:hover { color: rgba(246, 239, 230, .9); }
.ml-onpic .ml-scroll { -webkit-mask-image: none; mask-image: none; }
.ml-onpic .ml-tab, .ml-onpic .ml-later { color: rgba(246, 239, 230, .74); text-shadow: 0 1px 10px rgba(0, 0, 0, .75); }
.ml-onpic .ml-tab b, .ml-onpic .ml-later b { color: rgba(246, 239, 230, .62); }
.ml-onpic .ml-tab.on, .ml-onpic .ml-later.on { color: #fff; }
.ml-onpic .ml-tab.on b, .ml-onpic .ml-later.on b { color: var(--ml-amber-l); }
.ml-onpic .ml-sep { color: rgba(246, 239, 230, .6); }
.ml-onpic .ml-search { background: rgba(14, 12, 10, .62); border-color: rgba(246, 239, 230, .18); color: rgba(246, 239, 230, .7); }
.ml-onpic .ml-gear2 { background: rgba(14, 12, 10, .55); border-color: rgba(246, 239, 230, .2); color: rgba(246, 239, 230, .85); }
.ml-onpic .ml-tabs { -webkit-mask-image: none; mask-image: none; }

/* ── Phone width ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* The corner at phone width: the switch and the status share one row. A
     link that is off says nothing there (it shows again the moment one opens);
     in mail the corner is the mark, the switch and the gear, as drawn. */
  .ml-switch button { padding: 9px 8px; letter-spacing: .06em; font-size: 10.5px; }
  .ml-switch b { margin-left: 5px; }
  body[data-layout="c"] .arg-header__brand { padding: 6px 8px; gap: 8px; }
  body[data-layout="c"] #linkstate:not([data-open]) { display: none !important; }
  body.ml-on[data-layout="c"] #status, body.ml-on[data-layout="c"] #linkq { display: none !important; }
  body.ml-on[data-layout="c"] .status-cluster:not(:has(#linkstate[data-open])) { display: none !important; }
  body[data-layout="c"] .ml-scroll { padding-top: 70px; }
  .ml-scroll { padding-left: 0; padding-right: 0; padding-bottom: 24px; }
  .ml-top { padding: 0 14px; }
  .ml-tabrow { padding: 12px 10px 6px 16px; }
  .ml-tab { font-size: 16px; }
  .ml-later { margin-left: 14px; font-size: 14px; }
  .ml-lh { padding: 12px 16px 8px; }
  .ml-card { border-radius: 0; border-left: 0; border-right: 0; background: transparent; }
  .ml-dg { padding: 12px 16px 6px; }
  .ml-row__in { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who rt tm" "txt txt txt"; gap: 3px 8px; padding: 11px 14px 11px 24px; }
  .ml-row.sel .ml-row__in { box-shadow: none; background: transparent; }
  .ml-row__dot { position: absolute; left: 10px; top: 17px; }
  .ml-row__who { grid-area: who; } .ml-row__rt { grid-area: rt; } .ml-row__tm { grid-area: tm; }
  .ml-row__txt { grid-area: txt; white-space: normal; display: flex; flex-direction: column; }
  .ml-row__sj, .ml-row__sn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ml-row__sn { font-size: 12.5px; }
  .ml-row__sn:not(:empty)::before { content: none; }
  .ml-row { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
  .ml-root--thread .ml-scroll { padding: 0 14px 16px; }
  body.ml-thread-open[data-layout="c"] .arg-header { display: none; }
  body.ml-thread-open[data-layout="c"] .ml-scroll { padding-top: calc(10px + env(safe-area-inset-top)); --top-fade: transparent 0, black 10px; }
  .ml-tbar { margin-bottom: 10px; }
  .ml-tbar .ml-back { padding: 10px 11px; }
  .ml-acts-slot .ml-done { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .ml-acts-slot .ml-done span { display: none; }
  .ml-acts-slot .ml-done svg { width: 20px; height: 20px; }
  .ml-acts-slot .ml-clockbtn { width: 44px; height: 44px; border-radius: 50%; }
  .ml-acts-slot { order: 9; }
  .ml-th h3 { font-size: 17px; }
  .ml-fm__dt { display: none; }
  .ml-om { padding: 14px; }
  .ml-om__hd { padding-right: 0; }
  .ml-om__em { display: none; }
  .ml-om__acts { position: static; order: 9; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
  .ml-om__acts .ml-act { height: 40px; }
  .ml-att__t b { max-width: 180px; }
  .composer--full { top: 0; bottom: 0; left: 0; right: 0; transform: none; width: auto; }
  .composer--full .composer__box { border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .mc-to { font-size: 13.5px; }
  .ml-modal, .ml-modal--editor, .ml-modal--keys { left: 0; right: 0; top: 0; bottom: 0; transform: none; width: auto; max-height: none; border-radius: 0; border: 0; }
  .ml-ed__body { grid-template-columns: 1fr; }
  .ml-ed__body > div + div { border-left: 0; border-top: 1px solid var(--ml-b1); }
  .ml-rrow { grid-template-columns: 118px minmax(0, 1fr) 22px; }
  .ml-srow { grid-template-columns: 12px minmax(0, 1fr) 34px 18px; gap: 10px; padding: 12px 14px; }
  .ml-srow__nm { grid-column: 2; grid-row: 1; }
  .ml-srow__rule { grid-column: 2; grid-row: 2; }
  .ml-srow__cnt { grid-column: 3; grid-row: 1 / span 2; }
  .ml-srow__bell { grid-column: 4; grid-row: 1 / span 2; }
  .ml-srow > .ml-grip-h, .ml-srow > .ml-grip-sp { grid-row: 1 / span 2; }
  .ml-toasts { left: 10px; right: 10px; transform: none; align-items: stretch; }
  body.ml-zero-on .ml-toasts { bottom: 86px; }
  .ml-toast { white-space: normal; flex-wrap: wrap; gap: 8px 10px; }
  .ml-toast__tx { flex: 1 1 180px; }
  .ml-row.later .ml-acc, .ml-row .ml-tag ~ .ml-acc { font-size: 0; gap: 0; }
  .ml-streak { left: 18px; bottom: 48px; font-size: 15px; }
  .ml-credit { right: 16px; bottom: 24px; font-size: 10px; }
  .ml-ztop { height: 300px; }
  .ml-zbot { height: 220px; }
}
