/* The app tokens follow the theme of the desktop app, with the changes in its mail design guidance. */
:root {
	--bg: #f1f1ee; --page: #ffffff; --side: #f5f5f3; --ink: #1d1e20; --ink2: #5d6066; --ink3: #6b6f76;
	--hair: #e4e4e1; --edge: #d2d2cd; --hover: rgba(0, 0, 0, .045); --sel: #eaeefa; --accent: #2d58c8;
	--warn: #fbf2e2; --danger: #b3261e; --ok: #3f9b5f; --on-accent: #ffffff;
	--toast: #1d1e20; --toast-ink: #f2f2f0; --wire: #b4b6bb;
	--shadow-win: 0 0 0 1px var(--hair), 0 20px 50px rgba(0, 0, 0, .12);
	--shadow-pop: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .10);
	--out: cubic-bezier(.23, 1, .32, 1); --standard: cubic-bezier(.2, 0, 0, 1);
	--sans: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--bg: #111213; --page: #1a1b1d; --side: #202124; --ink: #e7e8ea; --ink2: #a4a8ae; --ink3: #868a91;
	--hair: #2e3034; --edge: #4a4d53; --hover: rgba(255, 255, 255, .045); --sel: #292e3d; --accent: #86a6ff;
	--warn: #30281a; --danger: #f28b82; --ok: #5fb37c; --on-accent: #10131a;
	--toast: #2c2e31; --toast-ink: #e7e8ea; --wire: #5a5d63;
	--shadow-win: 0 0 0 1px var(--hair), 0 20px 50px rgba(0, 0, 0, .5);
	--shadow-pop: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .5);
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; flex: none; }
a { color: var(--accent); }
code { font: .92em var(--mono); }
kbd { display: inline-block; min-width: 19px; text-align: center; font: 500 11px/16px var(--sans); padding: 0 5px; border: 1px solid var(--edge); border-bottom-width: 2px; border-radius: 4px; color: var(--ink2); background: var(--page); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

.top { display: flex; align-items: center; gap: 16px; padding: 18px 0 0; font-size: 14px; }
/* The lockup has a file for each theme, because the theme button can differ from the system setting. */
.mark { display: flex; margin-right: auto; }
.mark img { display: block; height: 28px; width: auto; }
:root[data-theme="dark"] .mark .l, :root:not([data-theme="dark"]) .mark .d { display: none; }
.pre { color: var(--ink3); }
.themeb { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--ink2); }
.themeb:hover { background: var(--hover); color: var(--ink); }
:root[data-theme="dark"] .themeb .moon, :root:not([data-theme="dark"]) .themeb .sun { display: none; }
.nbtn { height: 28px; padding: 0 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--edge); background: var(--page); font: 500 13px/28px var(--sans); white-space: nowrap; transition: transform 80ms var(--out); }
.nbtn:hover { background: linear-gradient(var(--hover), var(--hover)) var(--page); }
.nbtn:active { transform: scale(.97); }
.nbtn:disabled { color: var(--ink3); cursor: default; }

.hero { text-align: center; padding: 24px 0 0; }
h1 { margin: 0 auto 12px; font: 700 44px/1.08 var(--sans); letter-spacing: -.03em; }
.hero p { margin: 0 auto; max-width: 58em; color: var(--ink2); font-size: 17px; }

/* Stage: the diagram's nodes are the mock-ups themselves. demo.js measures them and draws the wires. */
.stage { position: relative; margin-top: 30px; padding: 0 14px 14px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke: var(--wire); stroke-width: 1.5; }
.wires path.cut { stroke-dasharray: 3 7; }
.wires #zone { stroke-dasharray: 5 6; stroke-linejoin: round; opacity: .75; }
.zone-label { position: absolute; transform: translateY(-50%); font: 12px var(--mono); color: var(--ink3); background: var(--bg); padding: 0 8px; white-space: nowrap; }
.pkt { position: absolute; left: 0; top: 0; width: 22px; height: 16px; margin: -8px 0 0 -11px; border: 1.5px solid var(--accent); border-radius: 3px; background: var(--page); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); pointer-events: none; z-index: 5; }
.pkt::before { content: ""; position: absolute; left: 4px; top: -6px; width: 11px; height: 11px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.pkt.op { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); }
.pkt.op::before { display: none; }
/* A batch carries its count. */
.pkt[data-n]::after { content: attr(data-n); position: absolute; right: -10px; top: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 600 10px/16px var(--sans); text-align: center; }

/* Three columns of nodes. tailmaild sits in the middle one, above the switch on the wire to the desktop. The third is empty, and the wire to the phone crosses it. */
.nodes { position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(124px, 1fr) minmax(0, 300px) minmax(124px, 1fr) minmax(0, 300px); }
.node { flex: 0 1 300px; min-width: 0; position: relative; z-index: 1; border: 1px solid var(--edge); border-radius: 10px; background: var(--page); padding: 10px 14px 12px; transition: border-color .2s, box-shadow .2s; }
.node.pulse { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.node h3 { margin: 0; font: 600 14px/20px var(--sans); }
.node h3 code { font: 600 13.5px var(--mono); }
.node p { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink3); }
.nrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 28px; min-width: 0; }
.nchip { position: absolute; top: 10px; right: 12px; font: 12px var(--mono); padding: 2px 8px; border-radius: 4px; color: var(--accent); background: var(--sel); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.nchip.on { opacity: 1; }
.stat { font: 12px/16px var(--mono); color: var(--ink2); }
.wl { position: relative; flex: 1 0 124px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 8px 50px; font: 12px/1.3 var(--mono); color: var(--ink3); }

.between { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; }
.conn { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 9px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--edge); font: 500 12.5px var(--sans); color: var(--ink2); white-space: nowrap; }
.conn b { color: var(--ink); font-weight: 600; min-width: 1.6em; text-align: left; }
.sw { width: 24px; height: 14px; border-radius: 7px; background: var(--ok); position: relative; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 12px; width: 10px; height: 10px; border-radius: 5px; background: #fff; transition: left .15s var(--out); }
[aria-pressed="false"] > .sw { background: var(--edge); }
[aria-pressed="false"] > .sw::after { left: 2px; }
/* The same switch, alone, on the wire between the mailbox and tailmaild. */
.swb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 38px; height: 24px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--edge); display: grid; place-items: center; }

.devices { display: flex; gap: 28px; align-items: stretch; }

/* The desktop app. This is the Ledger design: a rail, one list grouped by date, and a thread that replaces the list. */
.win { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; height: clamp(380px, calc(100vh - 392px), 620px); background: var(--page); color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-win); font: 13px/18px var(--sans); }
.win:focus-visible { outline: none; box-shadow: var(--shadow-win), 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.rail { width: 212px; flex: none; background: var(--side); border-right: 1px solid var(--hair); display: flex; flex-direction: column; transition: width 180ms var(--standard); overflow: hidden; }
.rtop { padding: 12px; }
.compose { width: 100%; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: var(--page); box-shadow: 0 0 0 1px var(--edge); font-weight: 600; transition: transform 80ms var(--out); white-space: nowrap; }
.compose:active, .btn:active { transform: scale(.97); }
.compose kbd { margin-left: auto; }
.boxes { flex: 1; overflow: hidden auto; padding: 0 8px 8px; }
.box { position: relative; height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 8px; color: var(--ink2); white-space: nowrap; width: 100%; }
.box:hover { background: var(--hover); }
.box.on { background: var(--sel); color: var(--ink); font-weight: 600; }
.box .n { margin-left: auto; font-size: 12px; color: var(--ink3); font-weight: 500; font-variant-numeric: tabular-nums; }
.box.on .n, .box .n.unread { color: var(--ink); font-weight: 600; }
.box .n.bump { animation: bump 900ms var(--out); }
@keyframes bump { 0% { transform: scale(1.7); color: var(--accent); } 60% { color: var(--accent); } }
.box .ic { width: 16px; display: flex; justify-content: center; }
.railctl { padding: 0 8px 6px; }
.railctl kbd { margin-left: auto; }
.foot { border-top: 1px solid var(--hair); padding: 10px 16px; display: flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 12px; white-space: nowrap; }
.foot .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--ok); flex: none; }
.foot.sync .dot { background: var(--accent); }
.foot.off .dot { background: none; box-shadow: inset 0 0 0 1.5px var(--ink3); }
.rail .label { transition: opacity 120ms var(--out); }
.win.rail-mini .rail { width: 57px; }
.win.rail-mini .rail .label, .win.rail-mini .compose kbd { opacity: 0; pointer-events: none; }
.win.rail-mini .compose { width: 36px; padding: 0 10px; }
.win.rail-mini .foot { padding: 10px 0 10px 25px; }
/* With the labels gone, a count shows as a dot on its icon. */
.win.rail-mini .box .n { position: absolute; left: 29px; top: 5px; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); overflow: hidden; text-indent: 20px; }

.main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.layers { position: relative; flex: 1; min-height: 0; }
.layer { position: absolute; inset: 0; overflow: auto; scrollbar-gutter: stable; }
.layer[hidden] { display: block; visibility: hidden; pointer-events: none; }

.col { margin: 0 auto; padding: 0 24px 96px; }
.col.list { max-width: 960px; }
.listbar { position: sticky; top: 0; z-index: 3; background: var(--page); padding: 14px 0 6px; display: flex; align-items: center; gap: 12px; }
.listbar h2 { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.3px; margin: 0; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 32px; width: 260px; min-width: 0; padding: 0 10px; border-radius: 8px; background: var(--side); color: var(--ink3); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 120ms var(--out), width 200ms var(--out); }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--accent); background: var(--page); width: 320px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.search input::placeholder, .cf input::placeholder, .win textarea::placeholder { color: var(--ink3); opacity: 1; }
.sec { position: sticky; top: 52px; z-index: 2; background: var(--page); padding: 18px 0 6px 24px; display: flex; align-items: baseline; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink2); }
.sec.first { padding-top: 6px; }
.sec::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); opacity: 0; transition: opacity 120ms; }
.sec.stuck::after { opacity: 1; }
.sec .cnt { color: var(--ink3); font-variant-numeric: tabular-nums; }

.row { position: relative; display: flex; align-items: center; height: 40px; padding: 0 8px 0 0; margin: 0 -8px; border-radius: 8px; cursor: default; overflow: hidden; font-size: 13px; line-height: 20px; letter-spacing: -.013em; transition: background-color 150ms var(--out); }
.row:hover { background: var(--hover); transition: none; }
.row.cursor { background: var(--sel); }
.row.fresh { animation: fresh 2s var(--out); }
@keyframes fresh { from { background: color-mix(in srgb, var(--accent) 26%, transparent); } }
.row .gut { width: 32px; flex: none; display: grid; place-items: center; }
.row .udot { width: 7px; height: 7px; border-radius: 4px; background: var(--accent); transform: scale(0); transition: transform 220ms var(--out); }
.row.unread .udot { transform: scale(1); }
.row .who { width: 188px; flex: none; color: var(--ink); padding-right: 16px; }
.win.narrow .row .who { width: 140px; }
.row .who, .row .subj, .row .snip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .line { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.row .subj { flex: none; max-width: 60%; color: var(--ink); }
.row .sep { flex: none; width: 11px; height: 1px; background: var(--ink3); }
.row .snip { color: var(--ink3); }
.row .right { display: flex; align-items: center; gap: 10px; margin-left: 16px; justify-content: flex-end; width: 104px; flex: none; }
.row .date { font-size: 12px; color: var(--ink3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row.unread .who, .row.unread .subj { font-weight: 600; }
.row.unread .date { color: var(--ink); font-weight: 600; }
.row.cursor .snip, .row.cursor .date { color: var(--ink2); }
.row .tc { color: var(--ink3); font-weight: 500; font-size: 12px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.row .draftlbl { color: var(--danger); }
.row .acts { display: none; gap: 2px; margin-left: auto; }
.flags { display: flex; gap: 6px; color: var(--ink3); align-items: center; }
.flags .star { color: var(--accent); }
@media (hover: hover) {
	.row:hover .acts { display: flex; }
	.row:hover .date, .row:hover .flags { display: none; }
}
.ibtn { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--ink2); }
.ibtn:hover { background: var(--page); color: var(--ink); box-shadow: 0 0 0 1px var(--hair); }
.ibtn.on { color: var(--accent); }
.empty { text-align: center; padding: 90px 24px; }
.empty h3 { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink2); margin: 0 0 4px; }
.empty p { margin: 0 auto; color: var(--ink3); max-width: 320px; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--hover); color: var(--ink2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }

.tbar { position: sticky; top: 0; z-index: 4; height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 16px; background: var(--page); }
.tbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); opacity: 0; transition: opacity 120ms; }
.tbar.stuck::after { opacity: 1; }
.tbar .ttl { margin-left: 8px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity 140ms var(--out), transform 140ms var(--out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tbar.stuck .ttl { opacity: 1; transform: none; }
.tbar .pos { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--ink3); font-size: 12px; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tbar .pos span { margin-right: 6px; }
.tsep { width: 1px; height: 18px; background: var(--hair); margin: 0 6px; flex: none; }
.col.thread { max-width: 768px; padding-top: 20px; }
.subject { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.4px; margin: 0; }
.tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 24px; color: var(--ink3); font-size: 12px; }
.tmeta .people { margin-right: 4px; }
.av { width: 32px; height: 32px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.msg { position: relative; border-top: 1px solid var(--hair); }
.msg:first-of-type { border-top: 0; }
.msg.focus::before { content: ""; position: absolute; left: -14px; top: 18px; width: 3px; height: 18px; border-radius: 2px; background: var(--accent); }
/* The avatar and the gap add up to the 48px text indent, so the body lines up with the sender's name. */
.mhead { display: flex; align-items: center; gap: 16px; min-height: 52px; cursor: pointer; }
.mhead .who { font-weight: 600; white-space: nowrap; }
.mhead .addr, .mhead .tome { color: var(--ink3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead .snip { color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mhead .mid { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.mhead .date { color: var(--ink3); font-size: 12px; white-space: nowrap; margin-left: auto; font-variant-numeric: tabular-nums; display: flex; gap: 6px; align-items: center; }
.msg:not(.open) .addr, .msg:not(.open) .tome { display: none; }
.msg.open .snip { display: none; }
.grow { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--out); }
.grow > div { overflow: hidden; min-height: 0; }
.msg.open .grow { grid-template-rows: 1fr; }
.mbody { padding: 2px 0 20px 48px; font-size: 14px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 720px; }
.mbody .q { display: inline-flex; margin-top: 6px; height: 16px; padding: 0 8px; align-items: center; border-radius: 8px; background: var(--hover); color: var(--ink2); font-size: 14px; letter-spacing: 1px; line-height: 0; }
.mbody .q:hover { background: var(--sel); }
.quoted { display: none; border-left: 2px solid var(--hair); padding-left: 12px; color: var(--ink3); margin-top: 8px; }
.quoted.show { display: block; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; white-space: normal; }
.att { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; line-height: 16px; }
.att .ft { width: 24px; height: 28px; border-radius: 4px; background: var(--sel); color: var(--accent); font-size: 8.5px; font-weight: 700; display: grid; place-items: center; }
.att small { display: block; color: var(--ink3); font-size: 11.5px; }
.fold { position: relative; height: 28px; display: flex; align-items: center; justify-content: center; }
.fold::before, .fold::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--hair); }
.fold::after { top: calc(50% + 4px); }
.fold button { position: relative; z-index: 1; height: 24px; padding: 0 12px; border-radius: 12px; background: var(--page); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink2); font-size: 12px; font-weight: 500; }
.fold button:hover { background: linear-gradient(var(--hover), var(--hover)) var(--page); }

.replybar { display: flex; gap: 8px; margin: 8px 0 0 48px; }
.btn { height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px 0 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font-weight: 500; transition: transform 80ms var(--out); background: var(--page); white-space: nowrap; }
.btn:hover { background: linear-gradient(var(--hover), var(--hover)) var(--page); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; padding: 0 14px; }
.btn.primary:hover { background: var(--accent); filter: brightness(1.07); }
.composer { border-radius: 12px; background: var(--page); box-shadow: 0 0 0 1px var(--edge), var(--shadow-pop); margin: 8px 0 0 48px; overflow: hidden; }
.composer .to { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; color: var(--ink3); font-size: 12px; }
.win textarea { display: block; width: 100%; resize: none; border: 0; outline: 0; background: none; padding: 10px 16px; font: 14px/22px var(--sans); color: var(--ink); }
.composer textarea { min-height: 96px; }
.cb { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px 16px; }
.cb .hint2 { color: var(--ink3); font-size: 12px; line-height: 16px; margin-right: auto; }
.cb .hint2.bad { color: var(--danger); }

/* A new message is a sheet docked at the bottom right, so the list stays visible. */
.sheetc { position: absolute; right: 24px; bottom: 0; width: min(520px, calc(100% - 32px)); height: min(460px, calc(100% - 28px)); background: var(--page); border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--edge), 0 12px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; z-index: 10; }
.sheetc .h { height: 40px; flex: none; display: flex; align-items: center; padding: 0 8px 0 16px; font-weight: 600; border-bottom: 1px solid var(--hair); }
.sheetc .h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheetc .h .x { margin-left: auto; }
.cf { display: flex; align-items: center; gap: 10px; height: 40px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--hair); color: var(--ink3); }
.cf input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.sheetc textarea { flex: 1; min-height: 0; padding: 14px 16px; }

.toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 14px; height: 40px; max-width: calc(100% - 24px); padding: 0 8px 0 16px; border-radius: 10px; background: var(--toast); color: var(--toast-ink); box-shadow: var(--shadow-pop); overflow: hidden; white-space: nowrap; }
.toast > span:first-child { padding-right: 8px; overflow: hidden; text-overflow: ellipsis; }
.toast button { color: #9db8ff; font-weight: 600; height: 28px; padding: 0 8px; border-radius: 6px; display: flex; gap: 6px; align-items: center; }
.toast button:hover { background: rgba(255, 255, 255, .08); }
.toast kbd { background: transparent; color: #b9bbbf; border-color: #55585e; }
.toast .prog { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgba(255, 255, 255, .35); transform-origin: left; }
/* The subject that travels from the clicked row into the thread's title. */
.flyer { position: fixed; z-index: 50; margin: 0; pointer-events: none; transform-origin: 0 0; white-space: nowrap; font: 600 22px/28px var(--sans); letter-spacing: -.4px; color: var(--ink); }

/* Below 560px of window there is no room for one-line rows, so the sender and the subject stack. */
.win.tiny .col { padding: 0 12px 80px; }
.win.tiny .search { width: 150px; }
.win.tiny .search kbd, .win.tiny .tbar .pos span, .win.tiny .mhead .addr { display: none; }
.win.tiny .sec { padding-left: 20px; }
.win.tiny .row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: 20px 20px; align-content: center; height: 52px; }
.win.tiny .row .gut { width: 20px; }
.win.tiny .row .who { width: auto; padding-right: 8px; }
.win.tiny .row .line { grid-column: 2 / 4; grid-row: 2; }
.win.tiny .row .right { grid-column: 3; grid-row: 1; width: auto; margin-left: 0; }
.win.tiny .tbar { padding: 0 8px; }
.win.tiny .mbody, .win.tiny .replybar, .win.tiny .composer { padding-left: 0; margin-left: 0; }
.win.tiny .sheetc { right: 8px; width: calc(100% - 16px); }

/* The phone shows the server's copy. */
.phone { position: relative; z-index: 1; width: 236px; flex: none; display: flex; flex-direction: column; border-radius: 28px; background: var(--page); color: var(--ink); box-shadow: 0 0 0 1px var(--edge), 0 20px 50px rgba(0, 0, 0, .12); padding: 12px 0 0; overflow: hidden; font: 13px/18px var(--sans); }
.phead { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 16px 8px; }
.phead h2 { margin: 0; font: 600 18px/24px var(--sans); letter-spacing: -.3px; }
.phead span { font-size: 11.5px; color: var(--ink3); }
.prows { flex: 1; min-height: 0; overflow: hidden; }
.prow { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; padding: 7px 14px 7px 4px; letter-spacing: -.013em; }
.prow.fresh { animation: fresh 2s var(--out); }
.prow .udot { width: 7px; height: 7px; border-radius: 4px; margin: 6px 0 0 6px; }
.prow.unread .udot { background: var(--accent); }
.prow .who, .prow .subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow.unread .who { font-weight: 600; }
.prow .date { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; padding-left: 8px; }
.prow .subj { grid-column: 2 / 4; color: var(--ink3); }
.prow.unread .subj { color: var(--ink); }
.pempty { padding: 40px 16px; text-align: center; color: var(--ink3); }
.ptabs { display: flex; border-top: 1px solid var(--hair); background: var(--side); }
.ptabs button { flex: 1; padding: 9px 0 13px; font-size: 12px; color: var(--ink3); }
.ptabs button.on { color: var(--ink); font-weight: 600; }
.ptabs button.bump { animation: bump 900ms var(--out); }

.note { color: var(--ink3); font-size: 14px; margin: 12px 0 0; }

.more { margin-top: 88px; }
.more > h2 { font: 700 27px/1.2 var(--sans); letter-spacing: -.02em; margin: 0 0 20px; }
.more h3 { margin: 0 0 6px; font: 600 17px/1.35 var(--sans); }
.more p { margin: 0 0 12px; color: var(--ink2); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cells { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.cells > div { background: var(--page); padding: 20px 24px 12px; }
.status p { max-width: 44em; }
footer { margin: 72px 0 0; padding: 24px 0 44px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; color: var(--ink3); font-size: 14px; }
footer span:first-child { font-weight: 700; color: var(--ink2); }

@media (max-width: 900px) {
	h1 { font-size: 34px; }
	.wrap { padding: 0 16px; }
	.stage { padding: 0 10px 14px 24px; }
	.nodes { display: flex; flex-direction: column; }
	.node { flex: none; }
	.wl { flex: none; min-height: 40px; justify-content: flex-start; text-align: left; padding: 0 0 0 calc(50% + 30px); }
	.between { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; height: auto; padding: 22px 0 14px; }
	.devices { flex-direction: column; gap: 28px; }
	.win { flex: none; height: 520px; }
	.phone { width: min(236px, 100%); height: 400px; align-self: center; }
	.cols, .cells { grid-template-columns: 1fr; }
	.cols { gap: 22px; }
	.more { margin-top: 64px; }
}
@media (max-width: 560px) {
	h1 { font-size: 30px; }
	.hero { padding-top: 24px; }
	.hero p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
