/* Logiciax Mail — couleurs de marque pleines, pas de dégradés ni de lueurs. */
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-ext.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --accent: #0b5cd8; --accent-hover: #0a50bd; --accent-soft: #e7effc; --accent-ink: #0a3f94;
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #f0eee9; --hover: #f3f1ec;
  --text: #17181b; --text-2: #4a4c52; --text-3: #74767d;
  --border: #e2dfd8; --border-strong: #cfcbc2;
  --rail: #13151a; --rail-text: #c9ccd3; --rail-hover: #22252c;
  --green: #1f8f55; --red: #d13b3b; --red-soft: #fbe7e7; --yellow: #b7791f; --star: #d99a06;
  --radius: 12px; --radius-s: 8px;
  --font: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo', 'Figtree', 'Segoe UI', sans-serif;
  --shadow: 0 8px 28px rgba(15, 17, 22, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3b82f0; --accent-hover: #5593f3; --accent-soft: #15233b; --accent-ink: #9cc0ff;
    --bg: #0f1012; --surface: #17181b; --surface-2: #1f2024; --hover: #1d1f23;
    --text: #ececee; --text-2: #b4b6bc; --text-3: #8a8c93; --border: #2a2c31; --border-strong: #3a3c42;
    --rail: #0a0b0d; --rail-hover: #1b1d22; --red-soft: #3a1b1b; --shadow: 0 8px 28px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #3b82f0; --accent-hover: #5593f3; --accent-soft: #15233b; --accent-ink: #9cc0ff;
  --bg: #0f1012; --surface: #17181b; --surface-2: #1f2024; --hover: #1d1f23;
  --text: #ececee; --text-2: #b4b6bc; --text-3: #8a8c93; --border: #2a2c31; --border-strong: #3a3c42;
  --rail: #0a0b0d; --rail-hover: #1b1d22; --red-soft: #3a1b1b; --shadow: 0 8px 28px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2 { font-family: var(--font-display); letter-spacing: -.01em; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.strong { font-weight: 650; }
.grow { flex: 1 1 auto; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* icônes */
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic.tiny { width: 14px; height: 14px; color: var(--text-3); }
.ic.big { width: 44px; height: 44px; color: var(--border-strong); }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; height: 42px; }
.btn:disabled { opacity: .6; cursor: default; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-s); border: 0; background: transparent; color: var(--text-2); text-decoration: none; flex: none; }
.ib:hover { background: var(--hover); color: var(--text); }
.ib.sm { width: 30px; height: 30px; }
.ib.xs { width: 24px; height: 24px; }
.ib.xs .ic { width: 14px; height: 14px; }
.ib.dis { opacity: .35; pointer-events: none; }
.ib.light { color: #fff; }
.ib.light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ib.rot .ic { transform: rotate(90deg); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent); font-weight: 600; padding: 6px 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.sm { font-size: 12.5px; padding: 2px 4px; }
.only-mobile { display: none; }

/* démarrage + connexion */
.boot { position: fixed; inset: 0; display: grid; place-items: center; gap: 12px; align-content: center; }
.boot-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 800 26px var(--font-display); }
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; overflow: auto; }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.login-card h1 { font-size: 22px; margin: 22px 0 4px; }
.login-card .muted { margin: 0 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-name { font: 600 18px var(--font-display); }
.brand-name b { color: var(--accent); }
.login-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.login-form .field { margin: 0; }
.field > span { font-weight: 600; font-size: 13px; color: var(--text-2); }
.field input, .field textarea, .field select, .login-form input[type="email"], .login-form input[type="password"] {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-s); background: var(--surface); }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[readonly] { background: var(--surface-2); color: var(--text-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.check input { margin-top: 2px; accent-color: var(--accent); }
.form-err { margin: 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 13px; }
.lang-switch { display: flex; gap: 4px; justify-content: center; margin-top: 22px; }
.lang-switch button { border: 0; background: none; color: var(--text-3); padding: 4px 8px; border-radius: 6px; }
.lang-switch button.on { color: var(--text); font-weight: 650; background: var(--surface-2); }

/* grille principale */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: 68px 236px minmax(330px, 420px) minmax(0, 1fr); }
.rail { background: var(--rail); color: var(--rail-text); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 10px; min-height: 0; }
.rail-logo { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 6px; flex: none; }
.rail-accounts { display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; padding: 4px 0; width: 100%; scrollbar-width: none; }
.rail-accounts::-webkit-scrollbar { display: none; }
.acc { position: relative; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; background: transparent; display: grid; place-items: center; flex: none; }
.acc::before { content: ''; position: absolute; left: -11px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: #fff; transform: translateY(-50%); transition: height .15s; }
.acc:hover::before { height: 16px; }
.acc.on::before { height: 32px; }
.acc .av { width: 42px; height: 42px; border-radius: 50%; font-size: 15px; transition: border-radius .15s; }
.acc:hover .av, .acc.on .av { border-radius: 13px; }
.acc.add { color: var(--rail-text); background: var(--rail-hover); border-radius: 50%; width: 42px; height: 42px; }
.acc.add:hover { background: var(--accent); color: #fff; border-radius: 13px; }
.badge { position: absolute; right: -4px; bottom: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--rail); }
.badge.warn { background: var(--yellow); }
.rail-bottom { display: flex; flex-direction: column; gap: 4px; flex: none; }
.rail-bottom .ib { color: var(--rail-text); }
.rail-bottom .ib:hover { background: var(--rail-hover); color: #fff; }

.av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; flex: none; letter-spacing: .02em; user-select: none; }
.av.sm { width: 32px; height: 32px; font-size: 12px; }

/* colonne des dossiers */
.side { background: var(--surface-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; padding: 16px 10px; gap: 12px; overflow-y: auto; }
.side-head { padding: 0 8px; }
.side-who { display: grid; min-width: 0; }
.side-who strong { font: 650 16px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.side-who span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compose-btn { height: 44px; border-radius: 12px; justify-content: flex-start; padding: 0 16px; font-size: 14.5px; }
.folders { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.folder { position: relative; border-radius: var(--radius-s); }
.folder-btn { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-s); background: none; color: var(--text-2); text-align: left; }
.folder-btn:hover { background: var(--hover); color: var(--text); }
.folder.on .folder-btn { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.folder.lvl-1 .folder-btn { padding-left: 26px; } .folder.lvl-2 .folder-btn { padding-left: 42px; } .folder.lvl-3 .folder-btn, .folder.lvl-4 .folder-btn { padding-left: 58px; }
.folder-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.count.soft { color: var(--text-3); font-weight: 600; }
.folder-tools { position: absolute; right: 4px; top: 6px; display: none; gap: 2px; background: var(--surface-2); border-radius: 6px; }
.folder:hover .folder-tools, .folder:focus-within .folder-tools { display: flex; }
.folder.on .folder-tools { background: var(--accent-soft); }
.folder.drop .folder-btn { background: var(--accent); color: #fff; }

/* liste */
.list { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--border); }
.list-top { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; flex-wrap: wrap; }
.search { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; color: var(--text-3); }
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search-input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-2); gap: 2px; }
.seg button { border: 0; background: none; height: 28px; padding: 0 10px; border-radius: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.list-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px 14px; border-bottom: 1px solid var(--border); min-height: 46px; }
.list-title { font-size: 15px; margin: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.sel-count { font-weight: 650; font-size: 13.5px; white-space: nowrap; margin: 0 6px 0 4px; }
.list-bar.selecting .tools { justify-content: flex-start; }
.tools { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.pager { display: flex; align-items: center; gap: 2px; font-size: 12px; white-space: nowrap; }
.pager .muted { margin-right: 4px; }
.cb { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; cursor: pointer; }
.move-sel { height: 32px; max-width: 150px; border: 1px solid var(--border-strong); border-radius: var(--radius-s); background: var(--surface); padding: 0 6px; font-size: 13px; }
.move-sel.compact { max-width: 130px; }
.rows { flex: 1 1 auto; overflow-y: auto; min-height: 0; position: relative; }
.rows.loading { opacity: .65; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.row:hover { background: var(--hover); }
.row.open { background: var(--accent-soft); }
.row.sel { background: var(--accent-soft); }
.row.unread::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.row-main { flex: 1 1 auto; min-width: 0; }
.row-line { display: flex; align-items: center; gap: 6px; }
.row-from { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.row-date { font-size: 12px; color: var(--text-3); white-space: nowrap; flex: none; }
.row-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); font-size: 13.5px; }
.row.unread .row-from { color: var(--text); font-weight: 700; }
.row.unread .row-subject { color: var(--text); font-weight: 600; }
.row.unread .row-date { color: var(--accent-ink); font-weight: 700; }
.star { border: 0; background: none; padding: 2px; color: var(--border-strong); display: inline-flex; border-radius: 6px; flex: none; }
.star:hover { color: var(--star); }
.star.on { color: var(--star); }
.star.on svg { fill: currentColor; }
.star.big .ic { width: 22px; height: 22px; }
.empty { display: grid; place-items: center; gap: 6px; padding: 60px 20px; color: var(--text-3); text-align: center; }
.skel-row { display: flex; gap: 12px; align-items: center; padding: 16px 14px; border-bottom: 1px solid var(--border); }
.skel-row span { height: 12px; border-radius: 6px; background: var(--surface-2); }
.skel-row span:nth-child(1) { width: 32px; height: 32px; border-radius: 50%; }
.skel-row span:nth-child(2) { width: 30%; } .skel-row span:nth-child(3) { flex: 1; }

/* lecture */
.reader { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); }
.reader.loading .reader-scroll, .reader.loading .reader-empty { opacity: .5; }
.reader-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 30px; }
.reader-empty p { margin: 0; max-width: 420px; }
.reader-bar { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.reader-scroll { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.msg-head { padding: 18px 24px 12px; }
.msg-title { display: flex; align-items: flex-start; gap: 10px; }
.msg-title h1 { margin: 0 0 14px; font-size: 21px; line-height: 1.3; flex: 1; overflow-wrap: anywhere; }
.msg-from { display: flex; gap: 12px; align-items: flex-start; }
.msg-from-text { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.rcpt { font-size: 13px; color: var(--text-2); }
.msg-date { white-space: nowrap; }
.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 24px 12px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.atts { margin: 0 24px 12px; display: grid; gap: 6px; }
.att-list { display: flex; gap: 8px; flex-wrap: wrap; }
.att { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-s); color: var(--text); text-decoration: none; background: var(--surface); }
.att:hover { border-color: var(--accent); background: var(--accent-soft); }
.att-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 600; font-size: 13px; }
.att-size { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.frame-wrap { flex: 1 1 auto; min-height: 380px; margin: 0 16px 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; }
.mail-frame { flex: 1; width: 100%; min-height: 380px; border: 0; background: #fff; }

/* rédaction */
.compose-host { position: fixed; right: 16px; bottom: 0; display: flex; gap: 12px; align-items: flex-end; z-index: 40; pointer-events: none; }
.composer { pointer-events: auto; width: 560px; height: min(620px, calc(100vh - 40px)); background: var(--surface); border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.composer.min { height: 44px; width: 300px; }
.composer.min .c-body, .composer.min .c-foot { display: none; }
.composer.max { position: fixed; inset: 40px 8vw 0; width: auto; height: auto; z-index: 50; }
.composer.drop { outline: 3px dashed var(--accent); outline-offset: -6px; }
.c-head { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 6px 0 16px; background: var(--rail); color: #fff; flex: none; cursor: default; }
.c-title { flex: 1; min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.c-row { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); min-height: 40px; }
.c-row > span { width: 44px; color: var(--text-3); font-size: 13px; flex: none; }
.c-in, .c-from { flex: 1; min-width: 0; border: 0; background: none; height: 38px; outline: none; }
.c-from { cursor: pointer; }
.c-from option { background: var(--surface); color: var(--text); }
.c-ccbcc { display: flex; gap: 4px; flex: none; }
.c-tools { display: flex; gap: 2px; padding: 4px 10px; border-bottom: 1px solid var(--border); flex: none; }
.c-editor { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; outline: none; line-height: 1.55; min-height: 120px; overflow-wrap: anywhere; }
.c-editor p { margin: 0 0 .6em; }
.c-editor blockquote { margin: 0 0 0 .4em; padding-left: .8em; border-left: 3px solid var(--border-strong); color: var(--text-2); }
.c-editor img { max-width: 100%; }
.c-editor .lx-sig { color: var(--text-2); }
.c-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; flex: none; max-height: 96px; overflow-y: auto; }
.c-files:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 16px; background: var(--surface-2); font-size: 12.5px; max-width: 100%; }
.chip > span:not(.ic) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-foot { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--border); flex: none; }

/* fenêtres */
.modal-wrap { position: fixed; inset: 0; background: rgba(10, 11, 14, .5); display: grid; place-items: center; padding: 16px; z-index: 80; }
.modal { width: min(440px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); outline: none; }
.modal.wide { width: min(600px, 100%); }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px 22px; }
.modal-head h2 { margin: 0; flex: 1; font-size: 18px; }
.modal-body { padding: 8px 22px 18px; overflow-y: auto; }
.modal-body p { margin: 0 0 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 20px; }
.settings .tabs { margin-bottom: 18px; }
.settings small { display: block; margin-top: 2px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.acc-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.acc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: var(--radius-s); }
.acc-list li:hover { background: var(--hover); }
.drawer-shade { position: fixed; inset: 0; background: rgba(10, 11, 14, .45); z-index: 29; }

/* messages éphémères */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 10px; background: var(--rail); color: #fff; font-weight: 600; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; max-width: min(520px, 92vw); }
.toast.err { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(6px); }

/* écrans moyens : la lecture prend la place de la liste */
@media (max-width: 1180px) {
  .app { grid-template-columns: 68px 220px minmax(0, 1fr); }
  .app[data-view="list"] .reader { display: none; }
  .app[data-view="reader"] .list { display: none; }
  .app[data-view="reader"] .reader .only-mobile { display: inline-flex; }
}
/* téléphone */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail, .side { position: fixed; top: 0; bottom: 0; z-index: 30; transform: translateX(calc(-100% - 80px)); transition: transform .2s; visibility: hidden; }
  .app.drawer .rail, .app.drawer .side { visibility: visible; }
  .rail { left: 0; width: 68px; }
  .side { left: 68px; width: min(280px, calc(100vw - 68px)); }
  .app.drawer .rail, .app.drawer .side { transform: none; }
  .only-mobile { display: inline-flex; }
  .list, .reader { grid-column: 1; grid-row: 1; border: 0; }
  .list-bar .pager .muted { display: none; }
  .list-top .search { flex-basis: 0; }
  .list-top .seg { order: 3; }
  .composer, .composer.max { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; z-index: 60; }
  .composer.min { inset: auto 0 0 auto; width: 260px; height: 44px; }
  .compose-host { right: 0; }
  .msg-head { padding: 14px 16px 10px; }
  .notice, .atts { margin-left: 16px; margin-right: 16px; }
  .frame-wrap { margin: 0 8px 8px; }
  .reader-bar .move-sel { display: none; }
}
