:root {
  /* dark is the default */
  --bg: #0b0c0e; --panel: #121418; --panel-2: #191c21; --hover: #1d2127; --sel: #1c2333;
  --line: #23272e; --text: #e9ebee; --muted: #9ba1a9; --faint: #5d636c;
  --accent: #8ea8ff; --accent-ink: #0b0c0e; --accent-soft: #1b2338;
  --danger: #ff7b72; --star: #f2c14e;
  --shadow: 0 12px 40px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35);
  --radius: 12px; --nav-w: 236px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f1f2f5; --hover: #eceef2; --sel: #e4e9fb;
  --line: #e3e5ea; --text: #16181c; --muted: #5d636c; --faint: #9aa0a8;
  --accent: #3657e8; --accent-ink: #ffffff; --accent-soft: #e4e9fb;
  --danger: #c0352b; --star: #d99a00;
  --shadow: 0 12px 36px rgba(15, 20, 30, .14), 0 2px 6px rgba(15, 20, 30, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f1f2f5; --hover: #eceef2; --sel: #e4e9fb;
    --line: #e3e5ea; --text: #16181c; --muted: #5d636c; --faint: #9aa0a8;
    --accent: #3657e8; --accent-ink: #ffffff; --accent-soft: #e4e9fb;
    --danger: #c0352b; --star: #d99a00;
    --shadow: 0 12px 36px rgba(15, 20, 30, .14), 0 2px 6px rgba(15, 20, 30, .06);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.err { color: var(--danger); min-height: 1.2em; margin: 0; }
.spacer { flex: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--muted); flex: none;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.small { width: 28px; height: 28px; }
.icon-btn.small svg { width: 17px; height: 17px; }
.icon-btn.on { color: var(--star); }
.icon-btn:disabled { opacity: .4; cursor: default; background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* gate */
.gate { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.gate-card {
  width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow);
}
.gate-card p { margin: 0; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.field input, .field textarea, .field select, .input {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); outline: none;
}
.field textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* layout */
.app {
  height: 100%; display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr);
  grid-template-areas: "top top" "nav main";
}
.top {
  grid-area: top; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px;
  background: var(--bg);
}
.top .brand { width: calc(var(--nav-w) - 24px); }
.search {
  flex: 1; max-width: 720px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 14px;
  background: var(--panel-2); border-radius: 999px; border: 1px solid transparent; color: var(--muted);
}
.search:focus-within { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; font-size: 15px; color: var(--text); }
.me-chip { margin-left: 4px; font-size: 12.5px; color: var(--muted); }

.nav { grid-area: nav; overflow-y: auto; padding: 4px 8px 24px 8px; }
.compose-btn {
  height: 44px; padding: 0 20px 0 16px; border-radius: 12px; margin: 6px 0 16px 6px; font-weight: 600;
  background: var(--accent); border-color: transparent; color: var(--accent-ink);
}
.compose-btn:hover { background: var(--accent); filter: brightness(1.08); }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-list .nav-more {
  display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 12px 0 16px; border-radius: 0 999px 999px 0;
  margin-left: -8px; color: var(--text); text-decoration: none; cursor: pointer; background: none; border: 0; width: calc(100% + 8px); text-align: left;
}
.nav-list a:hover, .nav-list .nav-more:hover { background: var(--hover); }
.nav-list a.active { background: var(--sel); font-weight: 600; color: var(--accent); }
.nav-list a.active svg { color: var(--accent); }
.nav-list a svg { color: var(--muted); width: 18px; height: 18px; }
.nav-list a .count { margin-left: auto; font-size: 12.5px; font-weight: 650; }
.nav-list a .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-list .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; margin: 0 5px; }
.nav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 4px 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.scrim { display: none; }

.main { grid-area: main; min-width: 0; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; margin: 0 12px 12px 0; }
.list-view, .thread-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.thread-view { overflow-y: auto; }

.toolbar {
  display: flex; align-items: center; gap: 2px; padding: 6px 10px; min-height: 48px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.check { display: inline-grid; place-items: center; width: 36px; height: 36px; cursor: pointer; border-radius: 50%; }
.check:hover { background: var(--hover); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.sel-actions { display: flex; align-items: center; gap: 2px; }
.view-banner { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.thread-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.row {
  display: grid; grid-template-columns: 36px 30px minmax(120px, 200px) 1fr auto; align-items: center; gap: 4px;
  height: 44px; padding: 0 14px 0 10px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative;
  background: var(--panel); color: var(--muted);
}
.row.unread { color: var(--text); }
.row:hover { background: var(--hover); }
.row.selected { background: var(--sel); }
.row.cursor::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.row .who, .row .what { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.row .who { padding-right: 12px; }
.row .who .n { color: var(--muted); font-size: 12px; margin-left: 4px; font-weight: 400; }
.row .who .draft { color: var(--danger); }
.row.unread .who, .row.unread .subj, .row.unread .date { font-weight: 650; color: var(--text); }
.row.unread .who::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 0 8px 1px 0; vertical-align: middle; }
.row .snip { opacity: .8; }
.row .what { display: flex; align-items: center; gap: 6px; min-width: 0; }
.row .what .subj { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.row .what .snip { color: var(--faint); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .date { font-size: 12.5px; color: var(--muted); padding-left: 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.row.unread .date { color: var(--text); }
.row .clip svg { width: 15px; height: 15px; color: var(--faint); }
.row .hover-acts { display: none; position: absolute; right: 8px; top: 3px; background: inherit; padding-left: 8px; }
.row:hover .hover-acts { display: flex; }
.row:hover .date { visibility: hidden; }
.row .star { color: var(--faint); }
.row .star.on { color: var(--star); }
.row .star.on svg { fill: var(--star); }
.lchip {
  display: inline-block; font-size: 11.5px; line-height: 18px; padding: 0 7px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); flex: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.loading-bar { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; animation: slide 1s linear infinite; }
@keyframes slide { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* thread view */
.thread-head { padding: 18px 24px 6px 72px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.thread-head h1 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 0; word-break: break-word; flex: 1; min-width: 200px; }
.thread-head .lchip { font-size: 12px; margin-top: 6px; }
.msg { border-bottom: 1px solid var(--line); padding: 0 24px; }
.msg-head { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 14px 0 6px 0; cursor: pointer; align-items: start; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; color: #fff; font-size: 16px; }
.msg-who { min-width: 0; }
.msg-who .from { font-weight: 650; }
.msg-who .addr { color: var(--muted); font-size: 12.5px; }
.msg-who .to { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-who .snip { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-meta { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.msg.collapsed .msg-head { padding-bottom: 14px; }
.msg-body { padding: 4px 0 18px 52px; }
.msg-details { font-size: 12.5px; color: var(--muted); background: var(--panel-2); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.msg-details b { font-weight: 550; text-align: right; }
.mail-frame { width: 100%; border: 0; display: block; min-height: 40px; background: #fff; border-radius: 10px; color-scheme: light; }
.mail-text { white-space: pre-wrap; word-wrap: break-word; font: inherit; margin: 0; }
.mail-text .q { color: var(--muted); }
.quote-toggle { margin-top: 8px; height: 22px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; color: var(--muted); }
.img-banner { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.atts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.att {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 8px 12px;
  max-width: 280px; background: var(--panel); cursor: pointer; text-align: left;
}
.att:hover { background: var(--hover); }
.att .meta { min-width: 0; }
.att .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.att .sz { font-size: 12px; color: var(--muted); }
.att .thumb { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex: none; background: var(--panel-2); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.thread-foot { padding: 18px 24px 120px 76px; display: flex; gap: 10px; flex-wrap: wrap; }
.draft-note { color: var(--danger); font-weight: 600; }

/* compose */
.composes { position: fixed; right: 16px; bottom: 0; display: flex; align-items: flex-end; gap: 12px; z-index: 30; pointer-events: none; }
.compose {
  pointer-events: auto; width: 540px; height: 560px; max-height: calc(100vh - 70px); background: var(--panel);
  border-radius: 12px 12px 0 0; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0;
}
.compose.min { height: 42px; width: 300px; }
.compose.max {
  position: fixed; inset: 5vh 8vw; width: auto; height: auto; max-height: none; border-radius: 12px; border-bottom: 1px solid var(--line);
}
.c-head { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 14px; height: 42px; background: var(--panel-2); cursor: pointer; flex: none; font-weight: 600; }
.c-head .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-head .icon-btn { width: 30px; height: 30px; }
.c-head .icon-btn svg { width: 17px; height: 17px; }
.c-row { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.c-row > .lbl { color: var(--muted); width: 38px; flex: none; font-size: 13px; }
.c-row select, .c-row .plain { flex: 1; border: 0; background: transparent; outline: none; height: 36px; min-width: 0; }
.c-row .ccs { display: flex; gap: 6px; font-size: 13px; color: var(--muted); }
.c-row .ccs button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.c-row .ccs button:hover { color: var(--text); background: var(--hover); }
.chips { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px 0; position: relative; min-width: 0; }
.chips input { flex: 1; min-width: 120px; border: 0; outline: none; background: transparent; height: 28px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; max-width: 100%; }
.chip.bad { border-color: var(--danger); color: var(--danger); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.chip button:hover { background: var(--hover); }
.chip button svg { width: 12px; height: 12px; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 5; list-style: none; margin: 2px 0 0; padding: 4px 0; max-height: 240px; overflow-y: auto; }
.suggest li { padding: 6px 12px; cursor: pointer; display: grid; }
.suggest li.on, .suggest li:hover { background: var(--hover); }
.suggest li small { color: var(--muted); }
.c-body { flex: 1; min-height: 80px; overflow-y: auto; padding: 10px 14px; outline: none; word-wrap: break-word; }
.c-body:empty::before { content: attr(data-ph); color: var(--faint); }
.c-body blockquote { margin: 0 0 0 .8ex; border-left: 1px solid #ccc; padding-left: 1ex; }
.c-body img { max-width: 100%; }
.c-quoted { padding: 0 14px 8px; flex: none; }
.c-quoted iframe { width: 100%; border: 1px solid var(--line); border-radius: 6px; height: 180px; background: #fff; margin-top: 6px; }
.c-atts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; flex: none; max-height: 120px; overflow-y: auto; }
.c-att { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 4px 4px 10px; font-size: 12.5px; max-width: 240px; }
.c-att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-att .sz { color: var(--muted); flex: none; }
.c-fmt { display: flex; gap: 0; padding: 2px 10px; flex: none; flex-wrap: wrap; border-top: 1px solid var(--line); }
.c-fmt button { width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 700; display: grid; place-items: center; }
.c-fmt button:hover { background: var(--hover); color: var(--text); }
.c-fmt button svg { width: 17px; height: 17px; }
.c-foot { display: flex; align-items: center; gap: 4px; padding: 8px 10px 10px 14px; flex: none; }
.c-foot .status { font-size: 12px; color: var(--muted); margin-left: 6px; }
.compose.drag .c-body { outline: 2px dashed var(--accent); outline-offset: -6px; }

/* toasts, menus, modals */
.toasts { position: fixed; left: 24px; bottom: 24px; display: grid; gap: 8px; z-index: 60; }
.toast { background: #1e2228; border: 1px solid #2d323a; color: #eef0f3; padding: 12px 14px 12px 18px; border-radius: 8px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; min-width: 260px; max-width: calc(100vw - 32px); }
.toast button { background: none; border: 0; color: #a9bcff; font-weight: 650; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.toast button:hover { background: rgba(255, 255, 255, .08); }
.toast.err { background: #5b1a14; }
.menu {
  position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 6px 0; min-width: 200px; max-height: 70vh; overflow-y: auto;
}
.menu button, .menu label { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 16px; cursor: pointer; }
.menu button:hover, .menu label:hover { background: var(--hover); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu input[type=checkbox] { accent-color: var(--accent); }
.menu .menu-search { padding: 4px 10px 6px; }
.modal-scrim { position: fixed; inset: 0; background: rgba(10, 14, 18, .45); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; padding: 14px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 650; flex: 1; }
.modal-body { padding: 16px 20px 20px; overflow-y: auto; display: grid; gap: 16px; }
.modal-body h3 { margin: 6px 0 0; font-size: 14px; }
.tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.sig-edit { min-height: 100px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: none; }
.sig-edit:focus { border-color: var(--accent); }
.row2 { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row2 > * { flex: 1; min-width: 160px; }
.filter-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.kbd-table { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
kbd { font: 12px ui-monospace, Menlo, monospace; background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }

/* narrow screens */
.only-narrow { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; grid-template-rows: 56px minmax(0, 1fr); }
  .only-narrow { display: inline-grid; }
  .hide-narrow { display: none; }
  .top { padding: 0 8px; gap: 2px; min-width: 0; }
  .search { min-width: 0; height: 40px; padding-left: 10px; }
  .search [data-act="search-help"] { display: none; }
  .top .brand { width: auto; }
  .nav {
    position: fixed; top: 0; bottom: 0; left: 0; width: 280px; z-index: 50; background: var(--bg); padding-top: 12px;
    transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow);
  }
  body.nav-open .nav { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .35); }
  .main { border-radius: 0; border: 0; margin: 0; }
  .row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto auto; height: auto; padding: 8px 12px 8px 4px; row-gap: 0; }
  .row .check { grid-row: 1 / 3; width: 30px; }
  .row .star { display: none; }
  .row .who { grid-column: 2; }
  .row .date { grid-column: 3; grid-row: 1; }
  .row .what { grid-column: 2 / 4; grid-row: 2; }
  .row .what .subj { max-width: 70%; }
  .row:hover .hover-acts { display: none; }
  .row:hover .date { visibility: visible; }
  .thread-head { padding: 14px 16px 4px; }
  .msg { padding: 0 12px; }
  .msg-body { padding-left: 0; }
  .thread-foot { padding: 14px 12px 120px; }
  .composes { right: 0; left: 0; gap: 0; }
  .compose, .compose.max { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; }
  .compose.min { inset: auto 0 0 0; height: 42px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
}
