/* ============================================================
   Meridian — Mail
   ============================================================ */

.mail-app {
  flex: 1; min-width: 0; display: grid;
  grid-template-columns: var(--folder-w) minmax(360px, 1fr) minmax(420px, 1.45fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%; position: relative; background: var(--bg);
}
.mail-app[data-pane="bottom"] {
  grid-template-columns: var(--folder-w) 1fr;
  grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr);
}
.mail-app[data-pane="bottom"] .list-pane { grid-row: 1; grid-column: 2; }
.mail-app[data-pane="bottom"] .read-pane { grid-row: 2; grid-column: 2; border-left: 1px solid var(--line); }
.mail-app[data-pane="off"] { grid-template-columns: var(--folder-w) 1fr; }

/* ============================= Folder pane ============================= */
.folder-pane {
  background: var(--surface-0); border-right: 1px solid var(--line);
  overflow-y: auto; padding: 12px 10px 16px; display: flex; flex-direction: column; gap: 14px;
  min-height: 0;
}
.folder-new { padding: 0 2px 4px; }
.folder-new .btn { width: 100%; justify-content: center; height: 36px; font-size: 13.5px; }

.pane-group-title {
  font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); padding: 2px 10px 6px;
}

.folder-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--ink-2); font-weight: 540;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  position: relative;
}
.folder-row:hover { background: var(--surface-hover); color: var(--ink-1); }
.folder-row.is-active { background: var(--surface-active); color: var(--ink-1); font-weight: 660; }
.folder-row.is-active::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 3px; height: 16px; border-radius: 3px; background: var(--accent);
}
.folder-ico { display: flex; color: var(--ink-3); }
.folder-row.is-active .folder-ico { color: var(--accent); }
.folder-ico.cat-gold { color: var(--cat-gold); }
.folder-ico.cat-green { color: var(--cat-green); }
.folder-ico.cat-orange { color: var(--cat-orange); }
.folder-ico.cat-teal { color: var(--cat-teal); }
.folder-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.folder-count {
  min-width: 20px; height: 19px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.folder-count.soft { background: var(--ink-4); }

.acct-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px 6px; color: var(--ink-2); border-radius: var(--r-sm); text-align: left;
}
.acct-head:hover { background: var(--surface-hover); }
.acct-chevron { display: flex; color: var(--ink-4); transition: transform var(--t-med) var(--ease); }
.acct-head.is-collapsed .acct-chevron { transform: rotate(-90deg); }
.acct-badge {
  width: 24px; height: 24px; border-radius: var(--r-sm); color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.acct-name { font-size: 12.5px; font-weight: 680; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-mail { font-size: 11px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
.folder-new-link {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-top: 2px;
  font-size: 12.5px; color: var(--ink-3); border-radius: var(--r-sm);
}
.folder-new-link:hover { color: var(--accent); background: var(--accent-softer); }

.pane-foot { margin-top: auto; padding: 10px 10px 2px; }
.storage-bar { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.storage-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #9b5cff)); }
.storage-text { font-size: 11px; color: var(--ink-3); margin-top: 6px; }

/* ============================= List pane ============================= */
.list-pane {
  display: flex; flex-direction: column; min-width: 0; background: var(--surface-1);
  border-right: 1px solid var(--line); position: relative; min-height: 0;
}
.list-head { padding: 10px 12px 0; border-bottom: 1px solid var(--line-soft); flex: none; }
.lh-row { display: flex; align-items: center; gap: 8px; }
.lh-title { font-size: 16px; font-weight: 700; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.lh-actions { display: flex; gap: 2px; }

.focused-tabs { display: flex; gap: 22px; margin-top: 8px; border-bottom: 1px solid var(--line-soft); }
.ftab {
  padding: 6px 2px 9px; font-size: 13.5px; font-weight: 590; color: var(--ink-3); position: relative;
  transition: color var(--t-fast) var(--ease);
}
.ftab:hover { color: var(--ink-1); }
.ftab.is-on { color: var(--accent); font-weight: 680; }
.ftab.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px;
  background: var(--accent); animation: tabIn var(--t-med) var(--ease);
}
@keyframes tabIn { from { transform: scaleX(.4); opacity: 0; } }

.lh-search { position: relative; margin: 10px 0 10px; }
.lh-search-glyph { position: absolute; left: 9px; top: 50%; translate: 0 -50%; color: var(--ink-3); display: flex; }
.lh-search input {
  width: 100%; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface-sunken); padding: 0 10px 0 32px; font-size: 13px; color: var(--ink-1);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.lh-search input:focus { outline: none; border-color: var(--accent-line); background: var(--surface-1); box-shadow: 0 0 0 3px var(--accent-softer); }

.list-body { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 6px 14px; }

.list-group { animation: riseIn var(--t-med) var(--ease); }
.list-group + .list-group { margin-top: 6px; }
.list-group-label {
  font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 10px 10px 5px;
}

/* ---- message rows ---- */
.msg-row {
  --row-h: var(--mail-row-min);
  display: flex; align-items: flex-start; gap: 10px;
  min-height: var(--row-h); padding: 10px 10px 10px 6px; margin-bottom: 2px;
  border-radius: var(--r-md); cursor: default; position: relative;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  border: 1px solid transparent;
  animation: rowIn var(--t-slow) var(--ease) backwards;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }
.msg-row:hover { background: var(--surface-hover); }
.msg-row:focus-visible { box-shadow: var(--focus-ring); }
.msg-row.is-selected { background: var(--accent-softer); border-color: var(--accent-line); }
.msg-row.is-open { background: var(--surface-sunken); box-shadow: inset 3px 0 0 -1px var(--accent); }

.row-check {
  width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; flex: none;
  border: 1.5px solid var(--line-strong); background: var(--surface-1);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transition: opacity var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.msg-row:hover .row-check, .row-check.is-on, .msg-row:focus-within .row-check { opacity: 1; }
.row-check:hover { border-color: var(--accent); }
.row-check.is-on { background: var(--accent); border-color: var(--accent); }

.row-ava { margin-top: 1px; }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; align-items: center; gap: 6px; }
.row-from { font-size: 13.5px; color: var(--ink-2); font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.msg-row.is-unread .row-from { color: var(--ink-1); font-weight: 740; }
.conv-count {
  font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 1px 7px; border-radius: var(--r-pill); flex: none;
}
.row-right { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none; }
.row-time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg-row.is-unread .row-time { color: var(--accent); font-weight: 660; }

.row-actions {
  display: inline-flex; gap: 1px; opacity: 0; transform: translateX(4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.msg-row:hover .row-actions, .msg-row:focus-within .row-actions { opacity: 1; transform: none; }
.ra {
  width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: all var(--t-fast) var(--ease);
}
.ra:hover { background: var(--surface-active); color: var(--ink-1); }
.ra.is-on { color: var(--warning); }
.row-flag { color: var(--warning); display: inline-flex; }
.imp { display: inline-flex; }
.imp-high { color: var(--danger); }
.imp-low { color: var(--ink-4); }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.row-attach { color: var(--ink-3); display: inline-flex; }

.row-subject {
  font-size: 13.5px; color: var(--ink-2); font-weight: 560; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px;
}
.msg-row.is-unread .row-subject { color: var(--ink-1); font-weight: 700; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; animation: popIn var(--t-med) var(--ease); }
.row-preview {
  font-size: 12.5px; color: var(--ink-3); margin-top: 1px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

:root[data-density="compact"] .msg-row { padding-top: 6px; padding-bottom: 6px; align-items: center; }
:root[data-density="compact"] .row-preview { display: none; }
:root[data-density="compact"] .row-ava { display: none; }

/* ---- bulk bar ---- */
.bulk-bar {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 12;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); padding: 8px 10px;
  animation: toastIn var(--t-med) var(--ease);
}
.bulk-count { font-size: 12.5px; font-weight: 700; color: var(--accent); padding: 0 8px 0 4px; }
.bulk-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: var(--r-sm); font-size: 12.5px; font-weight: 590; color: var(--ink-1);
  transition: background var(--t-fast) var(--ease);
}
.bulk-btn:hover { background: var(--surface-hover); }
.bulk-btn.is-danger { color: var(--danger); }
.bulk-btn.is-danger:hover { background: var(--danger-soft); }
.bulk-x { margin-left: auto; width: 28px; height: 28px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.bulk-x:hover { background: var(--surface-hover); color: var(--ink-1); }

/* ---- skeleton ---- */
.skeleton-list { padding: 10px 6px; }
.skel-row { display: flex; gap: 12px; padding: 14px 10px; align-items: center; }
.skel-ava { width: 36px; height: 36px; border-radius: 50%; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skel-line { height: 11px; }
.skel-line.short { width: 45%; }
.skel-row { animation: riseIn var(--t-med) var(--ease) backwards; animation-delay: calc(var(--i) * 30ms); }

/* ============================= Reading pane ============================= */
.read-pane {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: var(--surface-1);
}
.read-empty { padding: 24px; }
.read-head { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); flex: none; }
.read-actions { display: flex; align-items: center; gap: 6px; }
.read-actions .btn { height: 32px; font-size: 13px; }
.read-back { display: none; }
.read-actions-right { margin-left: auto; display: flex; gap: 1px; }
.read-scroll { flex: 1; overflow-y: auto; padding: 20px 26px 28px; min-height: 0; }

.read-subject-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.read-subject { font-size: 20px; line-height: 1.3; font-weight: 720; margin: 0; letter-spacing: -.012em; flex: 1; min-width: 240px; }
.read-cats { display: flex; gap: 6px; }
.cat-chip { color: var(--ink-2); }
.cat-chip .cat-dot { background: currentColor; }

.read-meta { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.read-meta-main { flex: 1; min-width: 0; }
.read-from { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.read-from-name { font-weight: 700; font-size: 14.5px; }
.read-from-email { font-size: 12.5px; color: var(--ink-3); }
.read-to { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.read-when { text-align: right; flex: none; }
.read-date { font-size: 12.5px; color: var(--ink-2); font-weight: 590; }
.read-time { font-size: 12px; color: var(--ink-3); margin-top: 1px; font-variant-numeric: tabular-nums; }
.conv-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--ink-3); }

.conv-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0;
  font-size: 12.5px; font-weight: 640; color: var(--accent);
  padding: 6px 10px; border-radius: var(--r-sm); background: var(--accent-softer);
  transition: background var(--t-fast) var(--ease);
}
.conv-toggle:hover { background: var(--accent-soft); }
.conv-toggle .icon:last-child { transition: transform var(--t-med) var(--ease); }
.conv-toggle.is-open .icon:last-child { transform: rotate(180deg); }
.conv-history { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; animation: riseIn var(--t-med) var(--ease); }
.conv-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface-sunken); }
.conv-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.conv-item-from { font-size: 13px; font-weight: 660; }
.conv-item-time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* ---- message body typography ---- */
.msg-body { font-size: 14.5px; line-height: 1.66; color: var(--ink-1); padding-top: 14px; }
.msg-body.small { font-size: 13px; padding-top: 0; color: var(--ink-2); }
.msg-body p { margin: 0 0 12px; }
.msg-body ul, .msg-body ol { margin: 0 0 14px; padding-left: 22px; }
.msg-body li { margin-bottom: 5px; }
.msg-body b, .msg-body strong { font-weight: 680; }
.msg-body blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--accent-line);
  background: var(--surface-sunken); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-2); font-size: 13.5px;
}
.msg-body blockquote p { margin: 0 0 8px; }
.msg-body blockquote p:last-child { margin: 0; }
.msg-body .sig { color: var(--ink-3); font-size: 13px; margin-top: 18px; }
.msg-body .sig span { font-size: 12px; color: var(--ink-4); }
.msg-body code { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-sunken); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.msg-body .quote-head { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-bottom: 6px; }
.msg-body .btn-mini {
  display: inline-block; padding: 6px 14px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--on-accent-soft); font-size: 12.5px; font-weight: 650;
}

/* attachments */
.read-attachments { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ra-title { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .03em; }
.ra-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.att-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 10px 8px 9px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-1);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  max-width: 250px;
}
.att-chip:hover { border-color: var(--accent-line); background: var(--accent-softer); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.att-ico { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.att-main { min-width: 0; display: flex; flex-direction: column; }
.att-name { font-size: 12.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-size { font-size: 11px; color: var(--ink-3); }
.att-dl { color: var(--ink-3); }

.read-quick { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.read-quick-label { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-right: 6px; }

/* ============================= Composer ============================= */
.composer-layer { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.composer { display: flex; flex-direction: column; pointer-events: auto; background: var(--surface-3); }
.composer.is-inline { height: 100%; border-radius: 0; }
.composer.is-window {
  position: fixed; width: 540px; height: min(560px, calc(100dvh - 80px));
  border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-3);
  overflow: hidden; animation: popIn var(--t-med) var(--ease); z-index: 110;
}
.comp-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--line-soft); cursor: grab; user-select: none;
  background: var(--surface-2);
}
.comp-head:active { cursor: grabbing; }
.comp-title { font-size: 13.5px; font-weight: 700; }
.comp-from { font-size: 12px; color: var(--ink-3); }
.comp-head-actions { margin-left: auto; display: flex; gap: 2px; }
.comp-fields { padding: 6px 16px 0; border-bottom: 1px solid var(--line-soft); }
.comp-field {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line-soft); padding: 4px 0;
}
.comp-field span { font-size: 12px; font-weight: 650; color: var(--ink-3); width: 52px; flex: none; }
.comp-field input { flex: 1; border: 0; background: none; padding: 7px 0; font-size: 13.5px; color: var(--ink-1); }
.comp-field input:focus { outline: none; }
.comp-field input::placeholder { color: var(--ink-4); }
.linklike { color: var(--accent); font-size: 11.5px; font-weight: 650; }
.linklike:hover { text-decoration: underline; }

.comp-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 12px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.cfmt {
  width: 30px; height: 30px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: all var(--t-fast) var(--ease);
}
.cfmt:hover { background: var(--surface-hover); color: var(--ink-1); }
.cfmt:active { transform: scale(.92); }
.csep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }

.comp-body {
  flex: 1; overflow-y: auto; padding: 14px 18px; font-size: 14px; line-height: 1.6;
  min-height: 120px; background: var(--surface-3);
}
.comp-body:focus { outline: none; }
.comp-body:empty::before { content: 'Write your message…'; color: var(--ink-4); }
.comp-body blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--line-strong); background: var(--surface-sunken); font-size: 13px; color: var(--ink-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.comp-body .quote-head { font-size: 11.5px; color: var(--ink-4); margin-bottom: 4px; }

.comp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.comp-hint { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; color: var(--ink-3); }

.emoji-grid { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 6px; }
.emoji-cell { width: 34px; height: 34px; border-radius: var(--r-sm); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.emoji-cell:hover { background: var(--surface-hover); transform: scale(1.15); }

/* reading pane hidden mode — slide-over */
.mail-app[data-pane="off"] .read-pane {
  position: absolute; inset: 0; z-index: 24; transform: translateX(102%);
  transition: transform var(--t-lazy) var(--ease); box-shadow: var(--shadow-3);
}
.mail-app[data-pane="off"] .read-pane.has-open { transform: none; }

/* ============================= Responsive ============================= */
@media (max-width: 1280px) {
  .mail-app { grid-template-columns: var(--folder-w) minmax(320px, 1fr) minmax(360px, 1.3fr); }
}
@media (max-width: 1080px) {
  .mail-app { grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.2fr); }
  .mail-app .folder-pane {
    position: absolute; inset: 0 auto 0 0; width: 272px; z-index: 22;
    transform: translateX(-102%); transition: transform var(--t-slow) var(--ease);
    box-shadow: var(--shadow-3);
  }
  .app[data-nav-open="1"] .mail-app .folder-pane { transform: none; }
  .mail-app .list-pane { grid-column: 1; }
  .mail-app .read-pane { grid-column: 2; }
  .mail-app[data-pane="bottom"] { grid-template-columns: 1fr; grid-template-rows: minmax(44%, 1fr) minmax(46%, 1fr); }
  .mail-app[data-pane="bottom"] .list-pane, .mail-app[data-pane="bottom"] .read-pane { grid-column: 1; }
}
@media (max-width: 860px) {
  .mail-app, .mail-app[data-pane="bottom"], .mail-app[data-pane="off"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .mail-app .list-pane, .mail-app .read-pane, .mail-app[data-pane] .read-pane { grid-column: 1; grid-row: 1; }
  .mail-app .read-pane { transform: translateX(102%); transition: transform var(--t-lazy) var(--ease); z-index: 20; box-shadow: var(--shadow-3); }
  .mail-app .read-pane.has-open { transform: none; }
  .read-scroll { padding: 16px 16px 22px; }
  .composer.is-window { width: min(540px, calc(100vw - 16px)); }
  .read-back { display: inline-flex; }
}
