:root {
  color-scheme: light;
  --paper: #fff;
  --canvas: #f4f6f9;
  --rail: #f6f8fa;
  --reader: #f9fafc;
  --field: #f6f8fb;
  --ink: #202e40;
  --muted: #536479;
  --line: #e1e6ee;
  --field-line: #cdd6e1;
  --primary: #2e5686;
  --primary-hover: #234873;
  --on-primary: #fff;
  --accent: #e9f0fa;
  --selected: #edf3fa;
  --focus: #3f6fac;
  --success: #276748;
  --danger: #a53a4e;
  --gold: #97601d;
  --shadow-soft: 0 2px 4px #223b5c07, 0 10px 26px #223b5c0e;
  --shadow-raised: 0 5px 15px #223b5c0e, 0 24px 66px #223b5c16;
  --avatar-blue: #e6eef9;
  --avatar-blue-ink: #365983;
  --avatar-green: #e8f1ed;
  --avatar-green-ink: #3f6258;
  --avatar-lilac: #efedf6;
  --avatar-lilac-ink: #62567e;
  --avatar-sand: #f4eee7;
  --avatar-sand-ink: #76553b;
  --veil: #34465d38;
  --bar: 4.25rem;
  font: 16px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #252e39;
  --canvas: #20272f;
  --rail: #242c36;
  --reader: #212932;
  --field: #2c3744;
  --ink: #edf2f7;
  --muted: #b3c3d3;
  --line: #3a4859;
  --field-line: #59697d;
  --primary: #aecaf0;
  --primary-hover: #c9ddf6;
  --on-primary: #202e40;
  --accent: #344860;
  --selected: #304256;
  --focus: #9fc6f3;
  --success: #9edab9;
  --danger: #ffb3bf;
  --gold: #f1c183;
  --shadow-soft: 0 2px 4px #151d2938, 0 10px 26px #151d293d;
  --shadow-raised: 0 5px 15px #151d2929, 0 24px 66px #151d297a;
  --avatar-blue: #364a63;
  --avatar-blue-ink: #c2daf9;
  --avatar-green: #354d47;
  --avatar-green-ink: #c0e5d7;
  --avatar-lilac: #493f5a;
  --avatar-lilac-ink: #daceed;
  --avatar-sand: #534737;
  --avatar-sand-ink: #eed5b6;
  --veil: #10161d72;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
button, input, textarea, select { color: inherit; font: inherit; }
button { border: 0; background: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--primary); text-underline-offset: .18em; }
::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.2; letter-spacing: -.035em; font-weight: 660; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: .94rem; font-weight: 660; }
.icon-library { position: absolute; overflow: hidden; width: 0; height: 0; }
.glyph { display: block; width: 1.16rem; height: 1.16rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary, .secondary, .icon, #folders button, .sidebar-bottom button, .row {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.55rem; padding: .52rem .87rem; border: 1px solid transparent; border-radius: .6rem;
  font-size: .86rem; font-weight: 630; line-height: 1.25;
}
.primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 2px 4px #1b365426; }
.primary:hover:not(:disabled) { background: var(--primary-hover); }
.secondary { background: var(--paper); border-color: var(--line); }
.secondary:hover, .icon:hover { color: var(--primary); background: var(--accent); }
.icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border-radius: .55rem; color: var(--muted); }
.text-button { color: var(--primary); font-weight: 630; font-size: .83rem; }
.brand { display: flex; align-items: center; gap: .68rem; white-space: nowrap; font-size: 1.13rem; font-weight: 680; letter-spacing: -.045em; }
.brand b { color: var(--primary); font-weight: 640; }
.brand-mark {
  display: grid; place-items: center; width: 2.05rem; height: 2.05rem; flex: 0 0 auto;
  border-radius: .54rem; color: var(--primary); background: var(--accent); border: 1px solid var(--line);
}
.brand-mark .glyph { width: 1.45rem; height: 1.45rem; }

.sign-in {
  width: min(100% - 5rem, 66rem); min-height: 100dvh; margin: 0 auto;
  display: grid; grid-template-rows: auto 1fr; padding: clamp(1.65rem, 5vh, 3.5rem) 0;
}
.sign-in-brand { align-self: start; }
.sign-in-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(21rem, 26rem); align-items: center;
  column-gap: clamp(2.75rem, 7vw, 7rem); padding: 2.8rem 0 3.6rem;
}
.mail-art { position: relative; width: 100%; aspect-ratio: 1.13; max-width: 29rem; isolation: isolate; }
.art-frame {
  position: absolute; inset: 5% 3%; border: 1px solid var(--line); border-radius: 1.5rem;
  background-color: var(--reader);
  background-image: radial-gradient(circle, var(--field-line) 1px, transparent 1.4px);
  background-size: 20px 20px;
}
.art-frame::after {
  content: ""; position: absolute; inset: 10%; border: 1px dashed var(--field-line);
  border-radius: 1.12rem; background: var(--reader);
}
.art-paper, .art-envelope { position: absolute; border: 1px solid var(--field-line); box-shadow: var(--shadow-soft); }
.art-paper {
  width: 52%; height: 52%; top: 18%; left: 24%; border-radius: .72rem;
  transform: rotate(-12deg); background: var(--paper);
}
.art-stamp {
  position: absolute; top: 14%; right: 11%; display: grid; place-items: center;
  width: 22%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: .4rem;
  color: var(--primary); background: var(--accent);
}
.art-stamp .glyph { width: 64%; height: 64%; }
.art-lines { position: absolute; top: 35%; left: 14%; width: 37%; height: 1.9rem; }
.art-lines::before, .art-lines::after {
  display: block; content: ""; height: 2px; background: var(--field-line); border-radius: 2px; margin-bottom: .48rem;
}
.art-lines::after { width: 70%; }
.art-envelope {
  width: 55%; height: 42%; bottom: 19%; left: 25%; border-radius: .69rem;
  transform: rotate(9deg); background: var(--accent); overflow: hidden;
}
.art-envelope::before, .art-envelope::after {
  position: absolute; content: ""; width: 100%; height: 135%; left: 0;
  border: 1px solid var(--field-line); border-radius: .85rem; transform: rotate(36deg) skewX(-18deg);
}
.art-envelope::before { bottom: -106%; background: var(--selected); }
.art-envelope::after { top: -97%; background: var(--field); box-shadow: var(--shadow-soft); }
.art-seal {
  position: absolute; right: 12%; bottom: 17%; display: grid; place-items: center; width: 15%;
  aspect-ratio: 1; border-radius: .9rem; color: var(--primary); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); transform: rotate(9deg);
}
.art-seal .glyph { width: 47%; height: 47%; }
.sign-in-card { padding: clamp(1.45rem, 3.5vw, 2.35rem); border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper); box-shadow: var(--shadow-raised); }
.sign-in-heading { display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.secure-mark {
  width: 2.28rem; height: 2.28rem; border-radius: .58rem; display: grid; place-items: center;
  background: var(--accent); color: var(--primary);
}
.sign-in-card h1 { font-size: clamp(1.56rem, 2.8vw, 1.92rem); }
.sign-in-card form { display: grid; gap: 1rem; }
.sign-in-card label, .admin-form label { display: grid; gap: .33rem; font-size: .84rem; font-weight: 620; }
.sign-in-card label small { color: var(--muted); font-size: .76rem; font-weight: 450; }
.sign-in-card input, .admin-form input, .admin-form textarea, select {
  width: 100%; min-width: 0; min-height: 2.55rem; padding: .52rem .7rem; font-weight: 460;
  background: var(--paper); border: 1px solid var(--field-line); border-radius: .55rem;
}
.sign-in-card input[name="code"] { letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.sign-in-card .primary { min-height: 2.7rem; margin-top: .2rem; }
.sign-in-card .primary .glyph { width: 1.05rem; height: 1.05rem; }
#login-error, #draft-error, #password-error { color: var(--danger); font-size: .84rem; }
#login-error:not(:empty) { margin-top: .85rem; }
#draft-error:not(:empty) { margin: .55rem 1.2rem; }

.mail {
  height: 100dvh; display: grid; min-width: 0;
  grid-template: var(--bar) minmax(0, 1fr) / clamp(12rem, 17vw, 15.25rem) clamp(17.2rem, 28vw, 23rem) minmax(0, 1fr);
}
#sidebar {
  grid-area: 1 / 1 / 3 / 2; display: flex; flex-direction: column; overflow: auto; min-width: 0; scrollbar-width: thin;
  padding: 1.05rem .9rem .85rem; background: var(--rail); border-right: 1px solid var(--line);
}
#sidebar .brand { padding: .05rem .36rem; min-height: 2.1rem; }
.button-compose { width: 100%; justify-content: flex-start; margin: 1.7rem 0 1.45rem; padding-left: .8rem; min-height: 2.7rem; }
.identity-label { color: var(--muted); font-size: .76rem; font-weight: 650; margin: 0 0 .4rem .4rem; }
.mailbox-picker { position: relative; margin-bottom: 1.45rem; }
.mailbox-picker > .glyph { position: absolute; left: .65rem; top: .7rem; pointer-events: none; width: 1rem; height: 1rem; color: var(--muted); }
.mailbox-picker > .select-chevron { left: auto; right: .56rem; }
#mailbox { appearance: none; min-height: 2.44rem; padding: .38rem 1.8rem .38rem 2.03rem; font-size: .8rem; font-weight: 620; border-color: var(--line); text-overflow: ellipsis; }
#folders { display: grid; gap: .15rem; }
#folders button, .sidebar-bottom button {
  display: flex; align-items: center; gap: .61rem; width: 100%; min-height: 2.38rem;
  text-align: left; border-radius: .52rem; padding: .39rem .56rem; font-size: .83rem; color: var(--muted);
}
#folders button span:not(.count) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#folders button:hover, .sidebar-bottom button:hover { color: var(--primary); background: var(--accent); }
#folders button[aria-current] { background: var(--accent); color: var(--primary); font-weight: 680; }
.count { margin-left: auto; padding-inline: .32rem; border-radius: 1rem; font-size: .73rem; font-weight: 720; color: var(--primary); background: var(--paper); }
.sidebar-bottom { display: grid; gap: .15rem; margin-top: auto; padding-top: .85rem; }
.sidebar-bottom::before { content: ""; border-top: 1px solid var(--line); margin: 0 .3rem .55rem; }

.topbar {
  grid-area: 1 / 2 / 2 / 4; display: flex; align-items: center; gap: 1.15rem; min-width: 0;
  padding: 0 1.4rem; background: var(--paper); border-bottom: 1px solid var(--line);
}
#search {
  display: flex; align-items: center; gap: .5rem; width: min(27.5rem, 68%); min-width: 0;
  border: 1px solid var(--line); border-radius: .64rem; background: var(--field); color: var(--muted); padding: .1rem .7rem;
}
#search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px var(--accent); }
#search-input { min-width: 0; width: 100%; min-height: 2.17rem; border: 0; background: transparent; outline: none; color: var(--ink); font-size: .85rem; }
.session { display: flex; align-items: center; gap: .64rem; min-width: 0; margin-left: auto; }
.session-label { color: var(--muted); font-size: .79rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  position: relative; display: inline-grid; place-items: center; width: 2.12rem; height: 2.12rem; flex: 0 0 auto;
  border-radius: .65rem; background: var(--avatar-blue); color: var(--avatar-blue-ink); font-size: .83rem; font-weight: 660;
}
.tone-1 { background: var(--avatar-green); color: var(--avatar-green-ink); }
.tone-2 { background: var(--avatar-lilac); color: var(--avatar-lilac-ink); }
.tone-3 { background: var(--avatar-sand); color: var(--avatar-sand-ink); }

.list-pane { grid-area: 2 / 2 / 3 / 3; min-width: 0; overflow: auto; scrollbar-width: thin; border-right: 1px solid var(--line); background: var(--paper); }
.pane-head {
  position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; align-items: center; gap: .45rem;
  min-height: 4.32rem; padding: .65rem .87rem .65rem 1.02rem; border-bottom: 1px solid var(--line); background: var(--paper);
}
.pane-head h1 { font-size: clamp(1.04rem, 1.42vw, 1.29rem); }
.row { display: grid; grid-template-columns: minmax(0,1fr) 2.05rem; align-items: start; border-bottom: 1px solid var(--line); }
.row:hover { background: var(--rail); }
.row.current { background: var(--selected); box-shadow: inset 2px 0 var(--primary); }
.open-message {
  display: grid; align-items: start; grid-template-columns: auto minmax(0, 1fr); gap: .65rem;
  width: 100%; padding: .88rem .15rem .83rem 1rem; min-width: 0; text-align: left;
}
.open-message:focus-visible { outline-offset: -3px; border-radius: .4rem; }
.row-text { display: grid; gap: .12rem; min-width: 0; }
.row-sender, .row-subject { display: flex; align-items: baseline; gap: .35rem; min-width: 0; }
.row-sender { justify-content: space-between; }
.row-sender strong, .subject-text, .row-preview { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sender strong { font-size: .84rem; font-weight: 660; }
.row-sender time { flex: 0 0 auto; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.subject-text { color: var(--ink); font-size: .835rem; }
.row-preview { color: var(--muted); font-size: .77rem; }
.thread-count, .row-attachment { flex: 0 0 auto; color: var(--muted); font-size: .72rem; }
.row-attachment .glyph { width: .83rem; height: .83rem; vertical-align: middle; }
.row.unread .subject-text, .row.unread .row-sender strong { font-weight: 730; }
.row.unread .avatar::after {
  position: absolute; content: ""; width: .5rem; height: .5rem; top: -.15rem; right: -.18rem; box-sizing: content-box;
  background: var(--primary); border-radius: 100%; border: 2px solid var(--paper);
}
.star-button { width: 1.8rem; height: 1.8rem; margin-top: .55rem; }
.star-button .glyph { width: .96rem; height: .96rem; }
.star-button.active { color: var(--gold); }
.star-button.active .glyph { fill: currentColor; }
.list-empty { display: grid; justify-items: center; gap: .55rem; color: var(--muted); padding: 3.4rem 1rem; font-size: .84rem; text-align: center; }
.list-empty > .glyph { width: 1.38rem; height: 1.38rem; color: var(--primary); }
.more { display: block; padding: .7rem; margin: .35rem auto; color: var(--primary); font-size: .86rem; font-weight: 630; }

.reader {
  grid-area: 2 / 3 / 3 / 4; min-width: 0; overflow: auto; scrollbar-width: thin;
  padding: clamp(1rem, 3vw, 2.75rem); background: var(--reader);
}
.reader:has(.blank:not([hidden])) { display: grid; place-items: center; }
.blank { display: grid; justify-items: center; text-align: center; gap: .88rem; margin-top: -2.15rem; }
.blank h2 { color: var(--muted); font-size: 1.06rem; letter-spacing: -.017em; font-weight: 620; }
.mail-symbol {
  width: 3.75rem; height: 3.75rem; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 1rem; color: var(--primary); background: var(--paper); box-shadow: var(--shadow-soft);
}
.mail-symbol .glyph { width: 1.88rem; height: 1.88rem; stroke-width: 1.38; }
#reader-detail { width: min(100%, 52rem); margin: 0 auto; }
#reader-detail:empty { display: none; }
.message-title { font-size: clamp(1.36rem, 2vw, 1.94rem); margin: 0 0 .95rem; overflow-wrap: anywhere; }
.reader-actions { display: flex; gap: .34rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.reader-actions:empty { display: none; }
.reader-actions .secondary, .reader-back { font-size: .76rem; gap: .31rem; padding: .36rem .52rem; min-height: 2.15rem; }
.reader-actions .secondary .glyph { width: .94rem; height: .94rem; color: var(--primary); }
.reader-actions select { width: auto; min-height: 2.15rem; padding: .3rem .36rem; font-size: .76rem; border-color: var(--line); }
.message { border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); padding: .98rem clamp(.85rem, 2.2vw, 1.55rem); margin: 0 0 .7rem; }
.message[open] { box-shadow: var(--shadow-soft); }
.message-meta { color: var(--muted); font-size: .81rem; overflow-wrap: anywhere; margin: .4rem 0; }
.message-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .55rem; cursor: pointer; list-style: none; }
.message-head::-webkit-details-marker { display: none; }
.message-head strong { color: var(--ink); font-size: .87rem; font-weight: 660; overflow-wrap: anywhere; }
.message-head time { text-align: right; }
.message-head > .glyph { width: .9rem; color: var(--muted); transition: transform .16s ease; }
.message[open] .message-head > .glyph { transform: rotate(180deg); }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: .85rem 0 .55rem; padding-top: .86rem; border-top: 1px solid var(--line); line-height: 1.67; font-size: .92rem; }
.message time { color: var(--muted); font-size: .74rem; }
.state { font-size: .77rem; font-weight: 650; color: var(--success); }
.state.problem { color: var(--danger); }
.files { display: flex; flex-wrap: wrap; gap: .38rem; margin: .52rem 0 .12rem; }
.files:empty { display: none; }
.file {
  display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; overflow-wrap: anywhere;
  padding: .3rem .51rem; background: var(--field); border-radius: .5rem; border: 1px solid var(--line); font-size: .8rem;
}
.file .glyph { width: .9rem; height: .9rem; color: var(--muted); }
.file .icon { width: 1.65rem; height: 1.65rem; }
#notice {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 5; padding: .65rem .85rem; max-width: min(30rem, 90vw);
  border-radius: .65rem; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-raised); font-size: .87rem;
}

dialog {
  margin: auto; width: min(42rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: .94rem; box-shadow: var(--shadow-raised);
}
dialog::backdrop { background: var(--veil); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); padding: .68rem 1.2rem; }
.editor-fields { padding: .4rem 1.2rem 0; }
.draft-origin, .editor-fields label {
  display: grid; grid-template-columns: 4.15rem minmax(0, 1fr); align-items: center; min-height: 2.65rem;
  font-size: .79rem; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 600;
}
.draft-origin span { padding-left: .48rem; color: var(--ink); overflow-wrap: anywhere; font-weight: 450; }
.editor-fields input { min-width: 0; padding: .42rem .48rem; border: 0; background: transparent; color: var(--ink); font-weight: 450; }
#show-cc { margin: .29rem 0; padding-left: 0; }
#draft-form textarea { width: 100%; resize: vertical; padding: .85rem 1.2rem; background: transparent; border: 0; display: block; min-height: 7.5rem; font-size: .88rem; }
#draft-files { padding: 0 1.2rem; }
.dialog-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding: .77rem 1.2rem; border-top: 1px solid var(--line); }
.attach { position: relative; cursor: pointer; }
.attach input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.attach:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
#admin-body { padding: 1rem 1.2rem; }
#password-dialog { width: min(29rem, calc(100% - 2rem)); }
#password-form { margin: 0; padding: 1rem 1.2rem; border: 0; }
#password-error:empty { display: none; }
.admin-form { display: grid; gap: .66rem; border: 1px solid var(--line); padding: .82rem; border-radius: .65rem; margin-bottom: .7rem; }
.admin-form :is(h3, .admin-status) { overflow-wrap: anywhere; }
.admin-form .check { display: flex; align-items: center; }
.admin-form .check input { width: auto; min-height: auto; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .46rem; margin-bottom: .78rem; }
.admin-status { font-size: .81rem; color: var(--muted); margin: .3rem 0 .55rem; }
.mobile, #nav-shade { display: none; }

@media (max-width: 880px) {
  .sign-in { width: min(100% - 3rem, 52rem); }
  .sign-in-layout { gap: 2rem; }
  .mail { grid-template-columns: 11.6rem minmax(15.5rem, 36%) minmax(0, 1fr); }
  .topbar { padding-inline: .9rem; }
  .open-message { padding-left: .73rem; gap: .48rem; }
  .open-message .avatar { width: 1.85rem; height: 1.85rem; }
}
@media (max-width: 760px) {
  :root { --bar: 3.65rem; }
  .sign-in { width: min(100% - 2rem, 28rem); padding: 1.5rem 0; }
  .sign-in-layout { grid-template-columns: minmax(0, 1fr); padding: 1.65rem 0 3rem; }
  .mail-art { display: none; }
  .sign-in-card input { font-size: 1rem; }
  .mail { grid-template-columns: minmax(0, 1fr); }
  .topbar { grid-area: 1 / 1; gap: .55rem; padding-inline: .62rem; z-index: 3; }
  #search { width: 100%; }
  .session-label { display: none; }
  .session .avatar { width: 1.88rem; height: 1.88rem; }
  .list-pane, .reader { grid-area: 2 / 1; border-right: 0; }
  .mail:not(.show-reader) .reader, .mail.show-reader .list-pane { display: none; }
  #sidebar { position: fixed; z-index: 3; inset: var(--bar) auto 0 0; width: min(17rem, 84vw); box-shadow: var(--shadow-raised); display: none; }
  .mail.nav-open #sidebar { display: flex; }
  #nav-shade { position: fixed; z-index: 2; display: block; inset: var(--bar) 0 0; background: var(--veil); }
  .mobile { display: inline-flex; align-items: center; justify-content: center; }
  .pane-head { padding-inline: .95rem; min-height: 3.75rem; }
  .open-message { padding-left: .95rem; }
  .reader { padding: .85rem; }
  .reader-back { margin-bottom: .7rem; }
  .reader-actions { column-gap: .28rem; }
  .reader-actions .secondary { padding-inline: .4rem; }
  dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
}
@media (max-width: 370px) {
  .session { display: none; }
  .message-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .message-head time { grid-column: 2; grid-row: 2; text-align: left; }
  .message-head > .glyph { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
