/*
 * Meros Finance on the Meros Design System 2.3 (Material 3 Expressive).
 * Group-wide screen, so it runs on the Companion scheme. Colours are the
 * system's md-sys-color roles, copied from its tokens.json; charts take
 * their colours from the same roles.
 */

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(/fonts/roboto-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(/fonts/roboto-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Material Symbols Rounded';
	font-style: normal;
	font-weight: 100 700;
	font-display: block;
	src: url(/fonts/material-symbols-rounded.woff2) format('woff2');
}

:root,
:root[data-theme="light"] {
	color-scheme: light;
	--md-sys-color-primary: #4f55c9;
	--md-sys-color-on-primary: #ffffff;
	--md-sys-color-primary-container: #e9eafb;
	--md-sys-color-on-primary-container: #363b9e;
	--md-sys-color-secondary: #ad549c;
	--md-sys-color-on-secondary: #ffffff;
	--md-sys-color-secondary-container: #f8eaf4;
	--md-sys-color-on-secondary-container: #86377a;
	--md-sys-color-tertiary: #1f5fa5;
	--md-sys-color-on-tertiary: #ffffff;
	--md-sys-color-tertiary-container: #dde9ff;
	--md-sys-color-on-tertiary-container: #001c3a;
	--md-sys-color-error: #b3261e;
	--md-sys-color-on-error: #ffffff;
	--md-sys-color-error-container: #f9dedc;
	--md-sys-color-on-error-container: #410e0b;
	--md-sys-color-surface: #ffffff;
	--md-sys-color-surface-container-lowest: #ffffff;
	--md-sys-color-surface-container-low: #f8f9fa;
	--md-sys-color-surface-container: #f1f3f4;
	--md-sys-color-surface-container-high: #e8eaed;
	--md-sys-color-surface-container-highest: #e3e5e8;
	--md-sys-color-on-surface: #202124;
	--md-sys-color-on-surface-variant: #5d6166;
	--md-sys-color-outline: #747775;
	--md-sys-color-outline-variant: #dadce0;
	--md-sys-color-inverse-surface: #303134;
	--md-sys-color-inverse-on-surface: #f1f3f4;
	--md-sys-color-inverse-primary: #bfc2ff;
	/* Finance only: a gain needs a colour Material does not name. Scout's
	   green role, which holds 4.5:1 as text on its container. */
	--finance-gain: #107545;
	--finance-gain-container: #daf1e3;
	--finance-on-gain-container: #0b5733;
	--meros-glow-strength: 16%;
	--icon-grade: 0;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--md-sys-color-primary: #bfc2ff;
	--md-sys-color-on-primary: #262968;
	--md-sys-color-primary-container: #3d4080;
	--md-sys-color-on-primary-container: #e0e0ff;
	--md-sys-color-secondary: #f9afe6;
	--md-sys-color-on-secondary: #511b48;
	--md-sys-color-secondary-container: #6b3260;
	--md-sys-color-on-secondary-container: #ffd7f1;
	--md-sys-color-tertiary: #a5c8ff;
	--md-sys-color-on-tertiary: #00315e;
	--md-sys-color-tertiary-container: #004785;
	--md-sys-color-on-tertiary-container: #d4e3ff;
	--md-sys-color-error: #f2b8b5;
	--md-sys-color-on-error: #601410;
	--md-sys-color-error-container: #8c1d18;
	--md-sys-color-on-error-container: #f9dedc;
	--md-sys-color-surface: #131315;
	--md-sys-color-surface-container-lowest: #0e0e10;
	--md-sys-color-surface-container-low: #1c1b1e;
	--md-sys-color-surface-container: #201f22;
	--md-sys-color-surface-container-high: #2a2a2c;
	--md-sys-color-surface-container-highest: #353437;
	--md-sys-color-on-surface: #e5e1e5;
	--md-sys-color-on-surface-variant: #c8c5cb;
	--md-sys-color-outline: #929095;
	--md-sys-color-outline-variant: #47464b;
	--md-sys-color-inverse-surface: #e5e1e5;
	--md-sys-color-inverse-on-surface: #313033;
	--md-sys-color-inverse-primary: #555899;
	--finance-gain: #8fd8ad;
	--finance-gain-container: #0f3a24;
	--finance-on-gain-container: #b4f1cb;
	--meros-glow-strength: 22%;
	--icon-grade: -25;
}

:root {
	--meros-glow: 0 2px 20px color-mix(in srgb, var(--md-sys-color-primary) var(--meros-glow-strength), transparent);
	--meros-glow-strong: 0 6px 28px color-mix(in srgb, var(--md-sys-color-primary) var(--meros-glow-strength), transparent);
	--shape-small: 8px;
	--shape-medium: 12px;
	--shape-large: 16px;
	--shape-extra-large: 28px;
	--shape-extra-extra-large: 48px;
	--shape-full: 999px;
	/* Fast spatial spring fallback (may overshoot) and effects (never does). */
	--spring-spatial: cubic-bezier(0.34, 1.36, 0.64, 1);
	--spring-spatial-duration: 350ms;
	--spring-effects: cubic-bezier(0.2, 0, 0, 1);
	--spring-effects-duration: 200ms;
	/* Chart roles */
	--chart-revenue: var(--md-sys-color-primary);
	--chart-outgoings: var(--md-sys-color-secondary);
	--chart-profit: var(--md-sys-color-tertiary);
	--chart-loss: var(--md-sys-color-error);
	--chart-target: var(--md-sys-color-on-surface);
	--chart-axis: var(--md-sys-color-outline-variant);
	--page-padding: 16px;
}
@media (min-width: 600px) { :root { --page-padding: 24px; } }
@media (min-width: 840px) { :root { --page-padding: 32px; } }
@media (min-width: 1600px) { :root { --page-padding: 48px; } }

* { box-sizing: border-box; }
html { background: var(--md-sys-color-surface); }
body {
	margin: 0;
	background: var(--md-sys-color-surface);
	color: var(--md-sys-color-on-surface);
	font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.5px;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 3px; }
[hidden] { display: none !important; }

.icon {
	font-family: 'Material Symbols Rounded';
	font-weight: 400;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	direction: ltr;
	display: inline-block;
	flex: none;
	font-feature-settings: 'liga';
	-webkit-font-feature-settings: 'liga';
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' var(--icon-grade), 'opsz' 24;
	user-select: none;
}
.icon.small { font-size: 20px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' var(--icon-grade), 'opsz' 20; }
.icon.tiny { font-size: 18px; font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' var(--icon-grade), 'opsz' 20; }
.icon.filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' var(--icon-grade), 'opsz' 24; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 12px 20px; border-radius: var(--shape-full); background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); }
.skip:focus { top: 16px; box-shadow: var(--meros-glow-strong); }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: max(var(--page-padding), env(safe-area-inset-left)) max(var(--page-padding), env(safe-area-inset-right)); }

/* App bar */
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; padding-block: max(32px, calc(env(safe-area-inset-top) + 16px)) 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mark { width: 56px; height: 56px; flex: none; display: block; border-radius: 13px; box-shadow: var(--meros-glow), 0 0 0 1px rgb(0 0 0 / 0.04); }
.eyebrow { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1px; color: var(--md-sys-color-primary); }
h1 { margin: 0; font-size: 36px; line-height: 44px; font-weight: 500; letter-spacing: 0; }
.sub { margin: 4px 0 0; font-size: 14px; line-height: 20px; letter-spacing: 0.25px; color: var(--md-sys-color-on-surface-variant); }
.actions { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.actions .sub { margin: 0; }

/* Buttons */
button { font: inherit; letter-spacing: inherit; color: inherit; }
.button {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px 0 20px; border: 0; border-radius: var(--shape-full);
	font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1px; text-decoration: none; cursor: pointer;
	transition: border-radius var(--spring-spatial-duration) var(--spring-spatial), box-shadow var(--spring-effects-duration) var(--spring-effects);
	isolation: isolate; overflow: hidden;
}
.button::before, .state::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity var(--spring-effects-duration) var(--spring-effects); pointer-events: none; z-index: -1; border-radius: inherit; }
.button:hover::before, .state:hover::before { opacity: 0.08; }
.button:focus-visible::before, .button:active::before, .state:focus-visible::before, .state:active::before { opacity: 0.1; }
.button:active { border-radius: var(--shape-medium); }
.button.tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: var(--meros-glow); }
.button.filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); box-shadow: var(--meros-glow); }
.button.text { background: none; color: var(--md-sys-color-primary); padding: 0 16px 0 12px; }
.button[aria-busy="true"] { cursor: progress; }
.button[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Navigation: pill tabs, selected one tonal with a filled icon */
.nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding: 4px; border-radius: var(--shape-full); background: var(--md-sys-color-surface-container); width: fit-content; max-width: 100%; }
.tab {
	position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px;
	border-radius: var(--shape-full); color: var(--md-sys-color-on-surface-variant); text-decoration: none;
	font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1px; isolation: isolate; overflow: hidden;
	transition: background-color var(--spring-effects-duration) var(--spring-effects), color var(--spring-effects-duration) var(--spring-effects);
}
.tab[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: var(--meros-glow); }
.tab[aria-current="page"] .icon { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' var(--icon-grade), 'opsz' 24; }
@media (max-width: 599px) {
	.nav { width: 100%; border-radius: var(--shape-extra-large); }
	.tab { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

main { padding-block: 24px 8px; }

/* Notices and state */
.notice { display: flex; align-items: center; gap: 16px; padding: 24px; margin-bottom: 16px; border-radius: var(--shape-extra-large); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); font-size: 16px; }
.notice.loading::before { content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--md-sys-color-secondary-container); border-top-color: var(--md-sys-color-primary); animation: spin 0.9s linear infinite; }
.signin { flex-direction: column; align-items: flex-start; gap: 20px; padding: 48px; border-radius: var(--shape-extra-extra-large); background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); box-shadow: var(--meros-glow); }
.signin h2 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 400; color: inherit; }
.signin p { margin: 0; max-width: 560px; }
.signin .slot:empty { display: none; }
@media (max-width: 599px) { .signin { padding: 32px 24px; border-radius: var(--shape-extra-large); } }
.warning { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; margin-bottom: 12px; border-radius: var(--shape-large); background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); font-size: 14px; line-height: 20px; }
.warning strong { font-weight: 500; }

/* Section headings */
h2 { display: flex; align-items: center; gap: 12px; margin: 48px 0 16px; font-size: 22px; line-height: 28px; font-weight: 400; letter-spacing: 0; color: var(--md-sys-color-on-surface); }
h2::after { content: ''; flex: 1; height: 1px; background: var(--md-sys-color-outline-variant); }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid + .grid { margin-top: 16px; }
.grid.one { grid-template-columns: minmax(0, 1fr); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three > .hero { grid-column: 1 / -1; } }
@media (max-width: 839px) { .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); } }

/* Cards */
.card { position: relative; min-width: 0; padding: 24px; border-radius: var(--shape-extra-large); background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-on-surface); box-shadow: var(--meros-glow); }
.card.hero { border-radius: var(--shape-extra-extra-large); padding: 28px 32px 24px; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); --chart-profit: var(--md-sys-color-primary); --chart-axis: color-mix(in srgb, var(--md-sys-color-on-primary-container) 30%, transparent); --chart-target: var(--md-sys-color-on-primary-container); }
@media (max-width: 599px) { .card { padding: 20px; } .card.hero { padding: 24px; border-radius: var(--shape-extra-large); } }
.card-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: var(--shape-medium); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.card-icon.revenue { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.card-icon.profit { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.hero .card-icon { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.card-title { flex: 1; min-width: 0; font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0.15px; }
.meta { margin: 4px 0 0; font-size: 14px; line-height: 20px; letter-spacing: 0.25px; color: var(--md-sys-color-on-surface-variant); }
.figure { margin: 16px 0 16px; font-size: 45px; line-height: 52px; font-weight: 500; letter-spacing: -0.5px; }
.hero .figure { font-size: 57px; line-height: 64px; letter-spacing: -0.75px; }
.figure.small { font-size: 36px; line-height: 44px; letter-spacing: -0.25px; margin: 16px 0 0; }
.figure.small.text { font-size: 28px; line-height: 36px; letter-spacing: 0; }
.figure.negative, .amount.negative { color: var(--md-sys-color-error); }
@media (max-width: 599px) { .figure, .hero .figure { font-size: 36px; line-height: 44px; } }

/* Year on year marker */
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px 0 6px; border-radius: var(--shape-full); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; white-space: nowrap; }
.chip.good { background: var(--finance-gain-container); color: var(--finance-on-gain-container); }
.chip.bad { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.chip.flat { background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); padding-left: 10px; }
.hero .chip.flat { background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 12%, transparent); color: var(--md-sys-color-on-primary-container); }

/* Monthly bars */
svg.bars { display: block; width: 100%; height: 112px; overflow: visible; }
svg.bars .bar { pointer-events: none; opacity: 0.38; transition: opacity var(--spring-effects-duration) var(--spring-effects); }
svg.bars .bar.last, svg.bars .hit:hover + .bar { opacity: 1; }
svg.bars.revenue .bar { fill: var(--chart-revenue); }
svg.bars.outgoings .bar { fill: var(--chart-outgoings); }
svg.bars.profit .bar { fill: var(--chart-profit); }
svg.bars .bar.neg { fill: var(--chart-loss); }
svg.bars .hit { fill: transparent; }
svg.bars .target { stroke: var(--chart-target); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 4; vector-effect: non-scaling-stroke; pointer-events: none; }
svg.bars .axis { stroke: var(--chart-axis); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ticks { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 12px; font-size: 12px; line-height: 16px; letter-spacing: 0.4px; color: var(--md-sys-color-on-surface-variant); }
.hero .ticks { color: inherit; }
.target-key { display: inline-flex; align-items: center; gap: 6px; text-align: center; }
.target-key i { display: inline-block; width: 18px; border-top: 2px dotted currentColor; }

/* Label and value rows */
.line { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--md-sys-color-outline-variant); font-size: 14px; line-height: 20px; letter-spacing: 0.25px; }
.hero .line { border-top-color: color-mix(in srgb, var(--md-sys-color-on-primary-container) 18%, transparent); }
.line-label { flex: 1; min-width: 0; color: var(--md-sys-color-on-surface-variant); }
.hero .line-label { color: inherit; opacity: 0.85; }
.line-value { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0.15px; }
.line .chip { min-width: 104px; justify-content: center; }

/* Division cards on the group page */
.link-card { display: block; text-decoration: none; isolation: isolate; overflow: hidden; transition: box-shadow var(--spring-effects-duration) var(--spring-effects), border-radius var(--spring-spatial-duration) var(--spring-spatial); }
.link-card:hover { box-shadow: var(--meros-glow-strong); }
.link-card:active { border-radius: var(--shape-large); }
.link-card .card-head { margin-bottom: 12px; }
.link-card .card-title { font-size: 22px; line-height: 28px; font-weight: 400; letter-spacing: 0; }
.open { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 16px; min-height: 40px; border-radius: var(--shape-full); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1px; color: var(--md-sys-color-primary); }
.open .icon { transition: transform var(--spring-spatial-duration) var(--spring-spatial); }
.link-card:hover .open .icon { transform: translateX(4px); }

/* Horizontal bars */
.legend { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; line-height: 16px; letter-spacing: 0.4px; color: var(--md-sys-color-on-surface-variant); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .tip-row i { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 4px; }
.barlist { display: grid; gap: 10px; margin-top: 20px; }
.barlist-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 72px; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; letter-spacing: 0.25px; }
.barlist-row .name { color: var(--md-sys-color-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barlist-row .amount { text-align: end; font-weight: 500; }
@media (max-width: 599px) { .barlist-row { grid-template-columns: 76px minmax(0, 1fr) 56px; gap: 8px; } }
.track { display: flex; gap: 2px; height: 16px; border-radius: var(--shape-full); background: var(--md-sys-color-surface-container-high); overflow: hidden; }
.track.full { height: 28px; }
.track span { display: block; height: 100%; min-width: 2px; font-size: 12px; font-weight: 500; line-height: 28px; padding-inline-start: 8px; overflow: hidden; white-space: nowrap; }
.track span:last-child { border-start-end-radius: var(--shape-full); border-end-end-radius: var(--shape-full); }

.fill-neutral { background: var(--md-sys-color-outline); color: var(--md-sys-color-surface); }
.fill-debt-bank { background: var(--md-sys-color-tertiary); color: var(--md-sys-color-on-tertiary); }
.fill-spend-variable { background: var(--md-sys-color-tertiary); color: var(--md-sys-color-on-tertiary); }
.fill-spend-fixed { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.fill-spend-discretionary { background: var(--md-sys-color-secondary); color: var(--md-sys-color-on-secondary); }

/* Footer */
.footnote { margin: 40px auto 0; font-size: 12px; line-height: 16px; letter-spacing: 0.4px; color: var(--md-sys-color-on-surface-variant); }
.foot { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 16px; padding-block: 16px max(40px, calc(env(safe-area-inset-bottom) + 24px)); border-top: 1px solid var(--md-sys-color-outline-variant); font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); }
.foot #connection { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.foot .button { min-height: 40px; }

/* Rich tooltip */
.tooltip { position: fixed; z-index: 10; pointer-events: none; max-width: 300px; padding: 12px 16px; border-radius: var(--shape-medium); background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); font-size: 14px; line-height: 20px; letter-spacing: 0.25px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2); }
.tooltip b { display: block; margin-bottom: 4px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; opacity: 0.8; }
.tip-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tip-row strong { font-weight: 500; }
.tip-row span { opacity: 0.8; }
.tip-row i.revenue { background: var(--md-sys-color-inverse-primary); }
.tip-row i.outgoings { background: #f9afe6; }
.tip-row i.gain { background: #a5c8ff; }
.tip-row i.loss { background: #f2b8b5; }
:root[data-theme="dark"] .tip-row i.outgoings { background: #ad549c; }
:root[data-theme="dark"] .tip-row i.gain { background: #1f5fa5; }
:root[data-theme="dark"] .tip-row i.loss { background: #b3261e; }
.tip-row i.target { height: 0; width: 14px; border-radius: 0; border-top: 2px dotted currentColor; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
	.card, .button, .tab, .notice, .nav, .mark { box-shadow: none; border: 1px solid CanvasText; }
	.tab[aria-current="page"] { outline: 2px solid Highlight; }
}
.signin h2 { display: block; }
.signin h2::after { display: none; }
