/* Pillminder — monochrome editorial, one cobalt accent, green/red only for dose status. */

:root {
	--bg: #f5f5f4;
	--surface: #ffffff;
	--ink: #111111;
	--ink-2: #4b4b48;
	--ink-3: #8a8a86;
	--line: #e6e6e3;
	--line-strong: #cfcfcb;
	--accent: #0f47c2;
	--accent-ink: #ffffff;
	--good: #16a34a;
	--bad: #dc2626;
	--dark: #141414;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--topbar: 60px;
	--tabbar: 72px;
	--safe-b: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e0e0e;
		--surface: #181818;
		--ink: #f2f2f0;
		--ink-2: #b8b8b4;
		--ink-3: #77776f;
		--line: #262626;
		--line-strong: #363636;
		--accent: #4f7cff;
		--dark: #202020;
		--shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss01", "tnum";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
small { font-size: 12px; color: var(--ink-3); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
strong { font-weight: 700; }

/* ---- Shell: phone column centred on larger screens ------------------------ */
.app {
	position: relative;
	max-width: 430px;
	min-height: 100dvh;
	margin: 0 auto;
	background: var(--surface);
	display: flex;
	flex-direction: column;
}
@media (min-width: 768px) {
	body { background: var(--bg); }
	.app {
		min-height: calc(100dvh - 48px);
		margin: 24px auto;
		border: 1px solid var(--line);
		border-radius: 36px;
		box-shadow: var(--shadow);
		overflow: hidden;
	}
	.app .tabbar { position: sticky; }
}
.main {
	flex: 1;
	padding: 20px 20px calc(var(--tabbar) + var(--safe-b) + 24px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.no-chrome .main { justify-content: center; padding-bottom: 32px; }

/* ---- Top bar --------------------------------------------------------------- */
.topbar {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; justify-content: space-between;
	height: var(--topbar);
	padding: 0 14px 0 20px;
	background: color-mix(in srgb, var(--surface) 86%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.brand-mark {
	width: 30px; height: 30px; border-radius: 9px;
	display: inline-grid; place-items: center;
	background: var(--ink); color: var(--surface);
}
.brand-mark-lg { width: 44px; height: 44px; border-radius: 13px; }
.topbar-actions { display: flex; gap: 2px; }
.iconbtn {
	width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent;
	display: inline-grid; place-items: center; color: var(--ink-2);
	transition: background .15s, color .15s;
}
.iconbtn:hover, .iconbtn:focus-visible { background: var(--bg); color: var(--ink); outline: none; }
.iconbtn:disabled { opacity: .3; cursor: default; }
.iconbtn-danger:hover { color: var(--bad); }

/* ---- Flash ----------------------------------------------------------------- */
.flash {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 10px 12px 16px;
	border-radius: var(--radius-sm);
	background: var(--ink); color: var(--surface);
	font-weight: 500; font-size: 14px;
	animation: rise .25s ease-out;
}
.flash-err { background: var(--bad); color: #fff; }
.flash-close { background: transparent; border: 0; color: inherit; opacity: .7; padding: 4px; display: grid; }
.flash-close:hover { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Typography blocks ----------------------------------------------------- */
.eyebrow {
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.hero { padding: 8px 0 4px; }
.hero-title {
	margin-top: 6px;
	font-size: clamp(30px, 8.5vw, 36px);
	font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
}
.hero-sub { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.hint, .muted { color: var(--ink-3); font-size: 13px; }
.hint { text-align: center; padding: 4px 0 8px; }
.center { text-align: center; }
.tick {
	display: inline-grid; place-items: center; vertical-align: -3px; margin-right: 6px;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--good); color: #fff;
}
.tick svg { stroke-width: 3; }

/* Hero state toggling via data attribute (JS updates without reload). */
[data-taken="1"] .hero-state-pending, [data-taken="0"] .hero-state-taken { display: none; }

/* ---- Stats ----------------------------------------------------------------- */
.stats {
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 14px 0; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 16px; }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-num small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 1px; }
.stat-label { font-size: 12px; color: var(--ink-3); }

/* ---- Cards ----------------------------------------------------------------- */
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	display: flex; flex-direction: column; gap: 12px;
}
.card-title {
	display: flex; align-items: center; gap: 8px;
	font-size: 15px; font-weight: 700; letter-spacing: -.01em;
}
.card-quiet { background: var(--bg); }
.card-dark {
	position: relative; overflow: hidden;
	background: var(--dark); color: #fff; border-color: var(--dark);
	padding: 22px 20px; gap: 6px;
	transition: transform .15s;
}
.card-dark:active { transform: scale(.985); }
.card-dark-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.card-dark-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.card-dark-sub { font-size: 13px; color: rgba(255,255,255,.65); max-width: 26ch; }
.card-dark-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.18); }

/* ---- Calendar -------------------------------------------------------------- */
.calendar { gap: 8px; padding: 14px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.cal-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-weekdays span { text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-3); padding-bottom: 4px; }
.cal-grid { row-gap: 2px; }
.cal-cell {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	aspect-ratio: 1 / 1.05;
	border: 0; background: transparent; border-radius: 12px;
	color: var(--ink); padding: 0;
	transition: background .12s, transform .12s;
}
button.cal-cell:hover, button.cal-cell:focus-visible { background: var(--bg); outline: none; }
button.cal-cell:active { transform: scale(.94); }
.cal-cell.is-loading { opacity: .4; }
.cal-num { font-size: 14px; font-weight: 500; line-height: 1; }
.cal-cell.is-future .cal-num, .cal-cell.is-before .cal-num { color: var(--ink-3); font-weight: 400; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.cal-cell.is-taken .cal-dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 18%, transparent); }
.cal-cell.is-missed .cal-dot { background: var(--bad); }
.cal-cell.is-pending .cal-dot { background: transparent; border: 1.5px dashed var(--ink-3); box-sizing: border-box; }
.cal-cell.is-today .cal-num {
	display: inline-grid; place-items: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--ink); color: var(--surface); font-weight: 700;
	margin: -6px 0;
}
.cal-cell.is-today.is-taken .cal-num { background: var(--good); color: #fff; }
.cal-cell.is-today { padding-top: 8px; }
.cal-legend {
	display: flex; align-items: center; gap: 14px;
	padding: 6px 6px 0; border-top: 1px solid var(--line); margin-top: 4px;
	font-size: 11px; color: var(--ink-3);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-stats { margin-left: auto; font-weight: 700; color: var(--ink); font-size: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-taken { background: var(--good); }
.dot-missed { background: var(--bad); }
.dot-pending { border: 1.5px dashed var(--ink-3); box-sizing: border-box; }

/* ---- Lists ----------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-row {
	display: flex; align-items: center; gap: 12px;
	padding: 11px 0; border-top: 1px solid var(--line);
	font-size: 14px;
}
.list-row:first-child { border-top: 0; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 500; }
.list-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-meta { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13px; }
.badge {
	font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2);
}
.badge-accent { border-color: var(--accent); color: var(--accent); }
.avatar {
	width: 34px; height: 34px; border-radius: 50%; flex: none;
	display: inline-grid; place-items: center;
	background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.verified {
	display: inline-grid; place-items: center; vertical-align: -2px; margin-left: 4px;
	width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff;
}
.verified svg { stroke-width: 3.5; }
.kv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.kv span { color: var(--ink-3); }
.kv code { color: var(--accent); }

/* ---- Forms ----------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-inline { flex-direction: row; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.form-inline .input { flex: 1 1 120px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field-help { font-size: 12px; color: var(--ink-3); }
.field-check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.field-check > span { display: flex; flex-direction: column; gap: 2px; }
.input {
	width: 100%; min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink);
	font: inherit; font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input-code {
	text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .35em;
	font-variant-numeric: tabular-nums; padding-left: .35em;
}
select.input { appearance: none; -webkit-appearance: none; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 20px;
	border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: 15px; white-space: nowrap;
	transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; }
.row-between { justify-content: space-between; }

.linkbox {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 8px 8px 12px;
	border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
	background: var(--bg);
}
.linkbox-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.linkbox .btn { flex: none; }
.btn.is-copied { border-color: var(--accent); color: var(--accent); }

/* ---- Auth ------------------------------------------------------------------ */
.auth { display: flex; flex-direction: column; gap: 14px; padding: 12px 4px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.auth-title { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.auth-sub { color: var(--ink-2); margin-bottom: 8px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-3); }
.auth-foot a { color: var(--accent); font-weight: 500; }
.auth-lock { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; font-size: 12px; color: var(--ink-3); }

/* ---- NFC tap page ---------------------------------------------------------- */
.tap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 8px; }
.tap-mark {
	width: 96px; height: 96px; border-radius: 50%;
	display: grid; place-items: center; color: #fff;
	background: var(--good);
	box-shadow: 0 0 0 12px color-mix(in srgb, var(--good) 14%, transparent);
	margin-bottom: 14px;
	animation: pop .4s cubic-bezier(.2,.9,.3,1.3);
}
.tap-mark svg { stroke-width: 3; }
.tap.is-bad .tap-mark { background: var(--ink-3); box-shadow: 0 0 0 12px color-mix(in srgb, var(--ink-3) 14%, transparent); }
.tap-title { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.tap-sub { color: var(--ink-2); max-width: 30ch; margin-bottom: 14px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Tab bar + cobalt FAB -------------------------------------------------- */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
	max-width: 430px; margin: 0 auto;
	height: calc(var(--tabbar) + var(--safe-b));
	padding: 0 6px var(--safe-b);
	display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-top: 1px solid var(--line);
}
.tab {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
	color: var(--ink-3);
	transition: color .15s;
}
.tab:hover { color: var(--ink-2); }
.tab.is-active { color: var(--ink); }
.tab.is-active svg { stroke-width: 2.2; }
.tab-fab { position: relative; }
.fab-form { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); }
.fab {
	width: 60px; height: 60px; border-radius: 50%; border: 0;
	display: grid; place-items: center;
	background: var(--accent); color: var(--accent-ink);
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 5px var(--surface);
	transition: transform .15s, background .2s, box-shadow .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: scale(.94); }
.fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.fab > span { grid-area: 1 / 1; display: grid; transition: transform .25s, opacity .2s; }
.fab-check { opacity: 0; transform: scale(.4) rotate(-40deg); }
.fab.is-taken { background: var(--good); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--good) 70%, transparent), 0 0 0 5px var(--surface); }
.fab.is-taken .fab-plus { opacity: 0; transform: scale(.4) rotate(40deg); }
.fab.is-taken .fab-check { opacity: 1; transform: none; }
.fab.is-busy { pointer-events: none; opacity: .7; }

/* ---- Small screens --------------------------------------------------------- */
@media (max-width: 360px) {
	.main { padding-left: 14px; padding-right: 14px; }
	.stat + .stat { padding-left: 10px; }
	.stat-num { font-size: 22px; }
	.calendar { padding: 12px 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Email settings -------------------------------------------------------- */
.muted .dot { margin-right: 6px; vertical-align: 1px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---- Modals ---------------------------------------------------------------- */
dialog.modal {
	border: 0; padding: 0; margin: auto;
	width: min(calc(100vw - 32px), 398px);
	background: transparent; color: var(--ink);
}
dialog.modal::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.modal[open] .modal-card { animation: rise .2s ease-out; }
.modal-card {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: 22px; padding: 20px;
	display: flex; flex-direction: column; gap: 14px;
	box-shadow: 0 24px 60px -20px rgba(0,0,0,.4);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -8px 0 0; }
.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.modal-text { color: var(--ink-2); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.form-error { color: var(--bad); font-size: 13px; font-weight: 500; }
@media (max-width: 480px) {
	dialog.modal { margin: auto auto 0; width: 100vw; max-width: 100vw; }
	.modal-card { border-radius: 22px 22px 0 0; padding-bottom: calc(20px + var(--safe-b)); }
}

/* ---- Blood pressure -------------------------------------------------------- */
.bp-card .row-between .card-title { margin: 0; }
.bp-reading { display: flex; flex-direction: column; gap: 6px; }
.bp-value { font-size: 44px; font-weight: 800; letter-spacing: -.045em; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.bp-value-slash { color: var(--ink-3); font-weight: 400; margin: 0 2px; }
.bp-value small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.bp-value-empty { color: var(--ink-3); }
.bp-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--ink-3); }
.cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--ink-3); }
.cat-normal { background: var(--good); }
.cat-elevated { background: var(--ink-2); }
.cat-high1 { background: #d97706; }
.cat-high2, .cat-crisis { background: var(--bad); }
.cat-text-normal { color: var(--good); }
.cat-text-high1 { color: #d97706; }
.cat-text-high2, .cat-text-crisis { color: var(--bad); }
.cat-dot-normal { background: var(--good); }
.cat-dot-elevated { background: var(--ink-2); }
.cat-dot-high1 { background: #d97706; }
.cat-dot-high2, .cat-dot-crisis { background: var(--bad); }
.tap-cat-high1 .tap-mark { background: #d97706; box-shadow: 0 0 0 12px rgba(217,119,6,.14); }
.tap-cat-high2 .tap-mark, .tap-cat-crisis .tap-mark { background: var(--bad); box-shadow: 0 0 0 12px color-mix(in srgb, var(--bad) 14%, transparent); }
.tap-cat-elevated .tap-mark { background: var(--ink-2); box-shadow: 0 0 0 12px color-mix(in srgb, var(--ink-2) 14%, transparent); }
.tap .row { margin-top: 4px; }

.bp-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.bp-pair-minor { grid-template-columns: 1fr 1fr; }
.bp-slash { font-size: 32px; font-weight: 300; color: var(--ink-3); padding-bottom: 6px; }
.input-num { font-size: 28px; font-weight: 700; text-align: center; letter-spacing: -.02em; min-height: 60px; }
.field-label small { font-weight: 400; color: var(--ink-3); }

.chart-card { gap: 8px; }
.chart { width: 100%; height: auto; display: block; }
.chart-ref { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-lbl { font-size: 8px; fill: var(--ink-3); font-weight: 600; }
.chart-sys { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart-dia { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.chart-dot-high1 { fill: #d97706; stroke: #d97706; }
.chart-dot-high2, .chart-dot-crisis { fill: var(--bad); stroke: var(--bad); }
.chart-dot-normal { fill: var(--good); stroke: var(--good); }
.chart-legend { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2); }
.swatch { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.swatch-sys { background: var(--ink); }
.swatch-dia { background: var(--accent); }
.chart-legend .muted { margin-left: auto; }
.test-mail { gap: 10px; }
