/* Harbor Mail */
:root {
	--font-ui: 'Figtree', 'Segoe UI', 'Helvetica Neue', sans-serif;
	--font-display: 'Bricolage Grotesque', 'Figtree', 'Segoe UI', sans-serif;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);

	--bg: #f4f6f7;
	--surface: #ffffff;
	--surface-2: #eef2f3;
	--surface-3: #e3e9ec;
	--ink: #16202a;
	--muted: #55626e;
	--border: #d5dbe0;
	--border-strong: #b7c1c9;
	--accent: #0d6b73;
	--accent-hover: #0a5960;
	--accent-ink: #ffffff;
	--accent-soft: #dcefef;
	--danger: #b42318;
	--danger-hover: #93190f;
	--danger-soft: #fdecea;
	--warn: #8a5a00;
	--warn-soft: #fdf3dc;
	--success: #1d7a46;
	--success-soft: #e3f4ea;
	--shadow-sm: 0 1px 2px rgba(22, 40, 50, 0.08);
	--shadow-md: 0 10px 30px -12px rgba(22, 40, 50, 0.28), 0 2px 6px rgba(22, 40, 50, 0.08);
	--focus: 0 0 0 3px rgba(13, 107, 115, 0.35);
	--radius: 10px;
	--radius-sm: 7px;
	--acct: var(--accent);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0f1418;
	--surface: #161d22;
	--surface-2: #1c252b;
	--surface-3: #243038;
	--ink: #e6ecef;
	--muted: #9aa8b2;
	--border: #2d3a42;
	--border-strong: #42525c;
	--accent: #4fb3b9;
	--accent-hover: #6cc6cb;
	--accent-ink: #062326;
	--accent-soft: #163a3d;
	--danger: #f2877c;
	--danger-hover: #f6a198;
	--danger-soft: #3a1d1a;
	--warn: #e9b94f;
	--warn-soft: #362b13;
	--success: #6fcf97;
	--success-soft: #15301f;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 14px 34px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
	--focus: 0 0 0 3px rgba(79, 179, 185, 0.45);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-sm);
	text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 8px 16px;
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink);
	font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
	cursor: pointer;
	transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-sm { min-height: 34px; padding: 6px 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--surface); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--muted); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost.is-on { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
:root[data-theme="dark"] .btn-danger { color: #2a0b07; }
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-danger-text { color: var(--danger); }
.btn-icon { min-width: 40px; min-height: 40px; padding: 8px; background: transparent; border-color: transparent; }
.btn-icon.btn-sm { min-width: 34px; min-height: 34px; padding: 6px; }
.btn-icon:hover:not(:disabled) { background: var(--surface-2); }

/* ---------- form controls ---------- */
.input, .select {
	width: 100%; min-height: 40px; padding: 7px 11px;
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink); font-size: 15px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input:focus-visible, .select:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-weight: 600; font-size: 14px; }
.field-hint { color: var(--muted); font-size: 14px; }
.field-wide { grid-column: 1 / -1; }
.field-narrow { max-width: 260px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; align-items: start; }
.form-section { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; min-width: 0; }
.form-section legend { font-family: var(--font-display); font-weight: 650; font-size: 17px; padding: 0 6px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.form-advanced { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; }
.form-advanced summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.form-advanced[open] summary { margin-bottom: 12px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }
.pw-toggle:active:not(:disabled) { transform: translateY(-50%) scale(0.95); }

/* ---------- notices, banners, badges ---------- */
.notice {
	display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
	padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--accent);
	border-radius: var(--radius-sm); background: var(--surface);
}
.notice-text { flex: 1 1 240px; min-width: 0; }
.notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.notice-success { border-left-color: var(--success); background: var(--success-soft); }
.notice-quiet { border-left-color: var(--border-strong); background: var(--surface-2); }
.badge {
	display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
	font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.badge-warn { background: var(--warn-soft); color: var(--warn); }

.banners:empty { display: none; }
.banners { display: flex; flex-direction: column; }
.banner {
	display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
	padding: 8px 16px; border-bottom: 1px solid var(--border);
}
.banner-text { flex: 1 1 260px; min-width: 0; }
.banner-warn { background: var(--warn-soft); }
.banner-danger { background: var(--danger-soft); }

.acct-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acct); flex: none; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.status-dot[data-status="connected"], .status-dot[data-status="syncing"] { background: var(--success); }
.status-dot[data-status="delayed"] { background: var(--warn); }
.status-dot[data-status="error"], .status-dot[data-status="needs_reconnect"] { background: var(--danger); }
.status-dot[data-status="syncing"] { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- skeletons & states ---------- */
.skeleton-line, .skeleton-block {
	display: block; border-radius: 6px;
	background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
	background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.skeleton-line { height: 12px; width: 80%; margin: 8px 0; }
.skeleton-line.short { width: 45%; }
.skeleton-line.tall { height: 22px; }
.skeleton-line.w30 { width: 30%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w90 { width: 90%; }
.skeleton-block { height: 160px; width: 100%; margin-top: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.state-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 32px 20px; max-width: 520px; }
.state-title { font-family: var(--font-display); font-size: 19px; font-weight: 650; }
.state-text { color: var(--muted); }
.state-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- app shell ---------- */
body.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
	position: relative; z-index: 30;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin: 0; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
	width: 28px; height: 28px; border-radius: 8px; flex: none; position: relative;
	background: linear-gradient(160deg, var(--accent) 0%, var(--accent-hover) 100%);
	overflow: hidden;
}
.brand-mark::before, .brand-mark::after {
	content: ''; position: absolute; left: -10%; right: -10%; height: 40%;
	border-top: 2px solid var(--accent-ink); border-radius: 50%; opacity: 0.85;
}
.brand-mark::before { top: 42%; }
.brand-mark::after { top: 64%; opacity: 0.5; }
.brand-mark-lg { width: 72px; height: 72px; border-radius: 20px; }
.brand-mark-lg::before, .brand-mark-lg::after { border-top-width: 4px; }
.nav-toggle { display: none; }

.search { position: relative; flex: 1 1 320px; max-width: 640px; display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.search-icon { position: absolute; left: 11px; display: flex; color: var(--muted); pointer-events: none; }
.search-input {
	flex: 1; min-width: 0; min-height: 40px; padding: 7px 12px 7px 40px;
	border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 15px;
	transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.search-input:focus-visible { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: var(--focus); }

.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; position: relative; }
.account-select { width: auto; max-width: 200px; }
.avatar {
	width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px;
}
.user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

.popover {
	position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
	min-width: 280px; max-width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto;
	padding: 14px; display: flex; flex-direction: column; gap: 10px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	transform-origin: top right;
	animation: pop-in 170ms var(--ease-out);
}
.filters-pop { left: 0; right: auto; width: min(560px, calc(100vw - 24px)); max-width: none; transform-origin: top left; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.popover-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pop-title { font-weight: 700; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.filters-checks { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.user-email { color: var(--muted); font-size: 13px; word-break: break-all; }
.theme-pick { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; margin: 0; display: flex; flex-direction: column; }
.theme-pick legend { font-weight: 600; padding: 0 4px; }
.status-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.status-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.status-row-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-row-detail { color: var(--muted); font-size: 13px; }

.workspace {
	flex: 1; min-height: 0;
	display: grid; grid-template-columns: 260px var(--list-w, minmax(320px, 400px)) minmax(0, 1fr);
}
body.pane-off .workspace { grid-template-columns: 260px minmax(0, 1fr); }
body.pane-off[data-pane="reader"] .list-pane, body.pane-off[data-pane="list"] .reader-pane { display: none; }
body.pane-off .reader-back { display: inline-flex; }
body.pane-off .pane-resizer { display: none; }
.pane-resizer {
	position: absolute; top: 0; bottom: 0; right: -4px; width: 8px; z-index: 5; cursor: col-resize; touch-action: none;
}
.pane-resizer::after { content: ''; position: absolute; inset: 0 3px; background: transparent; transition: background 150ms ease; }
.pane-resizer:hover::after, .pane-resizer:focus-visible::after, body.resizing .pane-resizer::after { background: var(--accent); }
.pane-resizer:focus-visible { outline: none; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing .reader-frame { pointer-events: none; }
.sidebar, .list-pane, .reader-pane { min-height: 0; min-width: 0; }

/* ---------- sidebar ---------- */
.sidebar {
	overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px;
	background: var(--bg); border-right: 1px solid var(--border);
}
.sidebar-compose { min-height: 44px; }
.sidebar-empty { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; color: var(--muted); }
.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-heading { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 8px; }
.nav-item { display: flex; align-items: center; padding-left: calc(var(--depth, 0) * 14px); border-radius: var(--radius-sm); position: relative; }
.nav-link {
	flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
	min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm);
	background: transparent; text-align: left; cursor: pointer; font-size: 15px;
	transition: background-color 120ms ease;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-item.is-active .nav-link { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 13px; font-weight: 700; color: var(--accent); }
.nav-count.is-total { color: var(--muted); font-weight: 500; }
.nav-more { opacity: 0; }
.nav-item:hover .nav-more, .nav-more:focus-visible, .nav-item.is-active .nav-more { opacity: 1; }
@media (hover: none) { .nav-more { opacity: 1; } }
.label-mark { width: 10px; height: 10px; border-radius: 3px; background: var(--acct); flex: none; transform: rotate(45deg); }
.nav-group { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); padding-top: 8px; }
.nav-group-head { display: flex; align-items: center; gap: 2px; }
.nav-group-toggle {
	flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
	min-height: 36px; padding: 6px 8px; border: 0; border-radius: var(--radius-sm);
	background: transparent; cursor: pointer; font-weight: 700; text-align: left;
}
.nav-group-toggle:hover { background: var(--surface-2); }
.nav-group-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-group-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { width: 16px; height: 16px; transition: transform 160ms var(--ease-out); transform: rotate(90deg); }
.nav-group.is-collapsed .chevron { transform: rotate(0deg); }
.nav-group-list { display: flex; flex-direction: column; gap: 1px; padding-left: 6px; }
.nav-error { color: var(--danger); font-size: 13px; padding: 4px 10px; }
.scrim { display: none; }

/* ---------- list ---------- */
.list-pane { position: relative; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); }
.list-head { padding: 12px 14px 8px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.list-title-row { display: flex; align-items: center; gap: 10px; }
.list-title { font-size: 22px; flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-scope { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.select-all { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.select-all .row-check { margin: 0; }
.bulk-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--accent-soft); border-radius: var(--radius-sm); }
.bulk-count { font-weight: 700; padding: 0 6px; margin-right: auto; }
.list-notices { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.list-notices:not(:empty) { padding-top: 10px; }
.list-notices .notice { --acct: inherit; }
.coverage-list { margin: 4px 0 0; padding-left: 20px; font-size: 13px; width: 100%; }
.message-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.message-list:focus-visible { outline: none; box-shadow: inset var(--focus); }

.row {
	display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; gap: 4px 10px;
	padding: 10px 12px 10px 10px; border-bottom: 1px solid var(--border);
	cursor: pointer; position: relative;
	transition: background-color 100ms ease;
}
.row:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.row:hover { background: var(--surface-2); }
.row.is-open { background: var(--accent-soft); }
.row.is-cursor { box-shadow: inset 3px 0 0 var(--accent); }
.row[aria-selected="true"] { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.row-check-hit { display: flex; cursor: pointer; }
.row-check { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.acct-badge { width: 4px; align-self: stretch; border-radius: 2px; background: var(--acct); }
.row:not(.is-unified) .row-main { grid-column: 2 / 4; }
.row-main { min-width: 0; display: flex; flex-direction: column; }
.row-top { display: flex; align-items: baseline; gap: 8px; }
.row-from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-clip { display: flex; color: var(--muted); align-self: center; }
.row-clip .icon { width: 16px; height: 16px; }
.row-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.row-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-snippet { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.is-unread .row-from, .row.is-unread .row-subject { font-weight: 700; }
.row.is-unread .row-date { color: var(--accent); font-weight: 700; }
.row.is-unread::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.row-actions { display: flex; align-items: center; margin: -4px -6px 0 0; }
.row-pin, .row-star {
	display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
	border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
	transition: transform 140ms var(--ease-out), color 150ms ease;
}
.row-pin:hover, .row-star:hover { background: var(--surface-3); }
.row-pin:active, .row-star:active { transform: scale(0.9); }
.row-pin:focus-visible, .row-star:focus-visible { outline: none; box-shadow: var(--focus); }
.row-pin { opacity: 0; transition: opacity 120ms ease, transform 140ms var(--ease-out); }
.row:hover .row-pin, .row-pin:focus-visible, .row-pin.is-on { opacity: 1; }
.row-pin.is-on { color: var(--accent); }
.row-pin.is-on .icon { fill: currentColor; }
.row.is-pinned { background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); }
.row.is-pinned + .row:not(.is-pinned) { border-top: 2px solid var(--border); }
.row-star.is-on { color: #c98a00; }
.row-star.is-on .icon { fill: currentColor; }
@media (hover: none) { .row-pin { opacity: 1; } }
.row { touch-action: pan-y; }
.row > * { transition: transform 180ms ease; }
.row.is-swiping { box-shadow: inset var(--swipe, 0) 0 0 var(--danger); overflow: hidden; }
.row.is-swiping > * { transform: translateX(var(--swipe, 0)); }
.row.is-swiping.no-anim > * { transition: none; }
.row.is-swiping::after {
	content: attr(data-swipe-label); position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	color: var(--surface); font-weight: 600; font-size: 16px; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .row > * { transition: none; } }
.is-pulling::before {
	content: attr(data-pull); display: block; flex: none; height: var(--pull, 0); line-height: var(--pull, 0); overflow: hidden;
	text-align: center; color: var(--muted); font-size: 14px; font-weight: 600;
}
.row-skeleton { cursor: default; display: block; padding: 14px 16px; }
.row-skeleton:hover { background: transparent; }
.list-more { padding: 12px; display: flex; justify-content: center; }
.list-error { color: var(--danger); padding: 12px 16px; }

/* ---------- reader ---------- */
.reader-pane { overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 0 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.reader-toolbar {
	position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
	padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--border);
}
.toolbar-group { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tb-more-wrap { display: none; position: relative; }
.tb-menu { min-width: 200px; padding: 6px; gap: 2px; }
.reader-back { display: none; }
.reader-head { display: flex; flex-direction: column; gap: 10px; }
.reader-subject { font-size: 25px; overflow-wrap: anywhere; }
.reader-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-badge-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px;
	border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface);
}
.reader-date { color: var(--muted); font-size: 13px; }
.reader-addrs { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; }
.addr-row { display: contents; }
.addr-row dt { color: var(--muted); font-weight: 600; }
.addr-row dd { margin: 0; overflow-wrap: anywhere; }
.reader-frame-wrap { flex: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.reader-frame { display: block; width: 100%; height: 160px; border: 0; background: #fff; }
.reader-section { display: flex; flex-direction: column; gap: 8px; }
.reader-section-title { font-size: 17px; }
.attachments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.attachment, .compose-file {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.attachment-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.attachment-size { color: var(--muted); font-size: 13px; }
.attachment-actions { display: flex; gap: 6px; width: 100%; justify-content: flex-end; }
.thread-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.thread-item {
	width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; text-align: left;
	padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.thread-item:hover:not(:disabled) { background: var(--surface-2); }
.thread-item:focus-visible { outline: none; box-shadow: var(--focus); }
.thread-item.is-current { border-color: var(--accent); background: var(--accent-soft); cursor: default; }
.thread-item.is-unread .thread-from { font-weight: 700; }
.thread-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-date { color: var(--muted); font-size: 13px; }
.thread-snippet { grid-column: 1 / -1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 40px 20px; }
.reader-empty-mark {
	width: 96px; height: 64px; border-radius: 14px; border: 2px solid var(--border-strong); position: relative;
	background: repeating-linear-gradient(0deg, transparent 0 14px, var(--surface-3) 14px 16px);
}
.reader-empty-mark::after { content: ''; position: absolute; inset: 8px 22px auto; height: 22px; border: 2px solid var(--border-strong); border-top: 0; border-radius: 0 0 40px 40px; }
.reader-loading { padding-top: 20px; }

/* ---------- dialogs & toasts ---------- */
.dialog {
	width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0;
	border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink);
	box-shadow: var(--shadow-md);
	animation: dialog-in 200ms var(--ease-out);
}
.dialog-wide { width: min(640px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(10, 20, 26, 0.45); animation: fade-in 200ms ease; }
@keyframes dialog-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes fade-in { from { opacity: 0; } }
.dialog-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.dialog-title { font-size: 20px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.picker-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.picker-item { justify-content: flex-start; width: 100%; padding-left: calc(12px + var(--depth, 0) * 16px); }
.picker-check { padding: 2px 4px; }
.picker-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; align-items: center; }
.shortcuts dd { margin: 0; }
kbd {
	display: inline-block; min-width: 30px; padding: 2px 8px; text-align: center;
	font-family: ui-monospace, 'Cascadia Mono', monospace; font-size: 13px;
	border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2);
}

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast {
	pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px;
	background: var(--ink); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-md);
	animation: toast-in 220ms var(--ease-out);
}
.toast > span { flex: 1; min-width: 0; }
.toast .btn-ghost, .toast .btn-icon { color: inherit; }
.toast .btn-ghost:hover, .toast .btn-icon:hover { background: rgba(127, 127, 127, 0.25); }
.toast-error { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .toast-error { color: #2a0b07; }
.toast-success { border-left: 5px solid var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- compose ---------- */
.compose {
	position: fixed; right: 20px; bottom: 20px; z-index: 50;
	width: min(680px, calc(100vw - 40px)); height: min(720px, calc(100dvh - 90px));
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--acct);
	border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden;
	animation: compose-in 220ms var(--ease-out);
}
@keyframes compose-in { from { opacity: 0; transform: translateY(16px); } }
.compose.is-drop { outline: 3px dashed var(--accent); outline-offset: -8px; }
.compose-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.compose-title { font-size: 17px; flex: 1; }
.compose-fields { display: flex; flex-direction: column; }
.compose-row { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-bottom: 1px solid var(--border); min-height: 46px; }
.compose-label { width: 58px; flex: none; color: var(--muted); font-weight: 600; }
.compose-row .select, .compose-subject { border-color: transparent; background: transparent; padding-left: 4px; }
.compose-row .select:hover, .compose-subject:hover { border-color: var(--border); }
.chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; cursor: text; }
.chip {
	display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
	padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px;
}
.chip.is-invalid { background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger); }
.chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x { display: flex; border: 0; padding: 3px; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.chip-x .icon { width: 14px; height: 14px; }
.chip-x:hover { background: var(--surface-3); color: var(--ink); }
.chip-x:focus-visible { outline: none; box-shadow: var(--focus); }
.chip-input { flex: 1 1 140px; min-width: 120px; min-height: 32px; border: 0; background: transparent; font-size: 15px; padding: 2px 4px; }
.compose-tools { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.fmt-btn { min-width: 36px; }
.fmt-glyph { font-family: var(--font-display); font-size: 16px; line-height: 1; }
.fmt-bold { font-weight: 800; }
.fmt-italic { font-style: italic; font-family: Georgia, serif; }
.fmt-underline { text-decoration: underline; }
.compose-body { flex: 1; min-height: 120px; overflow-y: auto; }
.compose-editor, .sig-editor {
	min-height: 100%; padding: 14px 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere;
}
.compose-editor:focus-visible, .sig-editor:focus-visible { outline: none; }
.compose-editor blockquote, .hm-quote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.hm-attribution, .hm-forward { color: var(--muted); margin-top: 12px; }
.hm-signature { color: var(--muted); margin-top: 8px; }
.compose-editor ul, .sig-editor ul { padding-left: 24px; }
.compose-files { list-style: none; margin: 0; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--border); max-height: 120px; overflow-y: auto; }
.compose-file { flex: 1 1 220px; flex-wrap: nowrap; padding: 4px 4px 4px 10px; }
.compose-alert { margin: 0 12px 8px; padding: 10px 14px; border-left: 4px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.compose-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); }
.compose-foot .btn-primary { min-width: 110px; }
.compose-status { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }

/* ---------- settings ---------- */
.settings-view { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 16px 48px; }
.settings-view > * { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.settings-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.settings-title { font-size: 28px; }
.settings-notice { margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab {
	flex: none; min-height: 44px; padding: 8px 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
	background: transparent; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px 6px 0 0; }
.settings-panel { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-title { font-size: 25px; }

.mailbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.mailbox-card {
	display: flex; flex-direction: column; gap: 12px; padding: 16px;
	background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--acct);
	border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.mailbox-head { display: flex; align-items: center; gap: 10px; }
.mailbox-head .acct-dot { width: 14px; height: 14px; }
.mailbox-names { flex: 1; min-width: 0; }
.mailbox-label { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-email { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mailbox-status { display: flex; align-items: center; gap: 8px; }
.mailbox-actions, .mailbox-prefs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mailbox-prefs { padding-top: 12px; border-top: 1px solid var(--border); }
.mailbox-prefs .btn-danger-text { margin-left: auto; }
.color-field {
	display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 3px 12px 3px 4px;
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
}
.color-field:focus-within { box-shadow: var(--focus); }
.color-input { width: 28px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; }

.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.provider-card {
	display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.provider-card.is-disabled { background: var(--surface-2); border-style: dashed; }
.provider-name { font-size: 19px; }
.imap-form { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.imap-form.is-busy .form-section, .imap-form.is-busy .form-advanced { opacity: 0.6; }
.connect-progress { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.progress-bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-3); position: relative; overflow: hidden; }
.progress-bar::after {
	content: ''; position: absolute; top: 0; bottom: 0; width: 35%; border-radius: 2px; background: var(--accent);
	animation: progress 1.2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.sig-account { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.sig-account-title { display: flex; align-items: center; gap: 10px; font-size: 19px; overflow-wrap: anywhere; }
.sig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.sig-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.sig-email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.sig-card .compose-tools { border: 1px solid var(--border-strong); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface-2); }
.sig-editor { min-height: 120px; border: 1px solid var(--border-strong); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--surface); }
.sig-editor:focus-visible { border-color: var(--accent); box-shadow: var(--focus); }

.theme-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.theme-cards legend { grid-column: 1 / -1; }
.theme-card {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 10px 12px; align-items: center;
	padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface);
	transition: border-color 150ms ease, background-color 150ms ease;
}
.theme-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.theme-card:focus-within { box-shadow: var(--focus); }
.theme-card input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.theme-swatch { grid-column: 1 / -1; grid-row: 1; height: 64px; border-radius: 8px; border: 1px solid var(--border); }
.theme-card input { grid-row: 2; }
.theme-card-text { grid-row: 2; display: flex; flex-direction: column; }
.theme-swatch-light { background: linear-gradient(90deg, #f4f6f7 0 28%, #ffffff 28% 62%, #0d6b73 62% 66%, #ffffff 66%); }
.theme-swatch-dark { background: linear-gradient(90deg, #0f1418 0 28%, #161d22 28% 62%, #4fb3b9 62% 66%, #161d22 66%); }
.theme-swatch-system { background: linear-gradient(135deg, #f4f6f7 0 50%, #0f1418 50% 100%); }

/* ---------- login ---------- */
.login-page {
	min-height: 100vh; min-height: 100dvh; display: flex;
	background:
		radial-gradient(1200px 600px at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
		repeating-linear-gradient(170deg, transparent 0 34px, color-mix(in srgb, var(--accent) 7%, transparent) 34px 36px),
		var(--bg);
}
.login-shell { display: flex; flex-direction: column; align-items: center; gap: 28px; width: min(440px, 100%); margin: auto; padding: 40px 16px 56px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: dialog-in 260ms var(--ease-out); }
.login-brand .brand-mark-lg { margin-bottom: 6px; box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 30%, transparent); }
.login-wordmark { font-family: var(--font-display); font-size: 32px; font-weight: 650; line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
.login-tagline { color: var(--muted); font-size: 18px; line-height: 1.4; margin: 0; text-wrap: balance; }
.login-card {
	width: 100%; display: flex; flex-direction: column; gap: 18px; padding: 28px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md);
	animation: dialog-in 260ms var(--ease-out);
}
.login-title { font-size: 28px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .btn-primary, .login-card > .btn-primary { min-height: 46px; margin-top: 4px; }
.login-lead { margin: -6px 0 0; color: var(--muted); }
.login-foot { margin: 0; text-align: center; color: var(--muted); }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.login-link { color: var(--accent); font-weight: 600; text-decoration: none; border-radius: 4px; }
.login-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
	.workspace { grid-template-columns: 240px var(--list-w, minmax(300px, 360px)) minmax(0, 1fr); }
	body.pane-off .workspace { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 1023px) {
	.nav-toggle { display: inline-flex; }
	.workspace { grid-template-columns: minmax(0, 1fr); position: relative; }
	.sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(300px, 86vw);
		background: var(--surface); box-shadow: var(--shadow-md);
		transform: translateX(-105%); visibility: hidden;
		transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 260ms;
	}
	body.drawer-open .sidebar { transform: none; visibility: visible; transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1); }
	.scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 20, 26, 0.45); animation: fade-in 200ms ease; }
	.list-pane { border-right: 0; }
	.pane-resizer, .pane-toggle { display: none; }
	body[data-pane="reader"] .list-pane { display: none; }
	body[data-pane="list"] .reader-pane { display: none; }
	.reader-back { display: inline-flex; }
	.reader-pane { padding: 0 16px 20px; }
}

@media (max-width: 720px) {
	.topbar { padding: 8px 12px; gap: 6px; }
	.brand-name { font-size: 17px; }
	input, select, textarea { font-size: 16px; }
	.search { order: 10; flex: 1 1 100%; max-width: none; margin-left: 0; }
	.topbar-actions { gap: 2px; }
	.topbar-actions .btn-label { display: none; }
	.compose-btn { min-width: 40px; padding: 8px; }
	.status-btn, .user-btn { padding: 6px 8px; min-width: 40px; justify-content: center; }
	.row-check-hit { padding: 13px 8px 13px 10px; margin: -13px -8px -13px -10px; }
	.tabs { padding-right: 32px; mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
	.account-select { max-width: 130px; }
	.popover { position: fixed; top: 112px; left: 12px; right: 12px; max-width: none; min-width: 0; width: auto; }
	.reader-toolbar { flex-wrap: nowrap; gap: 6px; }
	.reader-toolbar .toolbar-group { flex-wrap: nowrap; }
	.reader-toolbar .toolbar-group:last-child { margin-left: auto; }
	.tb-extra { display: none; }
	.tb-icon { min-width: 40px; padding: 6px 8px; justify-content: center; }
	.tb-icon .btn-label, .reader-toolbar .reader-back .btn-label { display: none; }
	.reader-toolbar .reader-back { min-width: 40px; padding: 6px 8px; }
	.tb-more-wrap { display: block; }
	.tb-more svg { stroke-width: 3.5; }
	.reader-toolbar .tb-menu { position: absolute; top: calc(100% + 6px); left: auto; right: 0; width: min(240px, calc(100vw - 32px)); }
	.filters-pop { width: auto; }
	.list-head { padding: 10px 12px 6px; }
	.list-title { font-size: 20px; }
	.reader-subject { font-size: 22px; }
	.reader-frame { height: max(360px, 62vh); }
	.compose { inset: 0; width: 100%; height: 100%; border-radius: 0; border-left: 0; border-right: 0; }
	.compose-label { width: 50px; }
	.compose-foot { flex-wrap: wrap; }
	.compose-status { order: 3; flex-basis: 100%; }
	.settings-title { font-size: 25px; }
	.panel-title { font-size: 22px; }
	.login-shell { gap: 20px; padding: 24px 16px 40px; }
	.login-brand .brand-mark-lg { width: 52px; height: 52px; border-radius: 15px; }
	.login-wordmark { font-size: 26px; }
	.login-tagline { font-size: 16px; }
	.login-card { padding: 22px 18px; }
	.mailbox-prefs .btn-danger-text { margin-left: 0; }
}

@media (max-width: 420px) {
	.account-select { display: none; }
	.attachments { grid-template-columns: minmax(0, 1fr); }
	.row { padding-right: 8px; gap: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.btn:active:not(:disabled) { transform: none; }
}

@media print {
	.topbar, .sidebar, .list-pane, .reader-toolbar, .banners, .toasts, .compose-root { display: none !important; }
	body.app { height: auto; overflow: visible; }
	.workspace { display: block; }
}
