/* The app's own colours (Palette in Color.kt), so the reports look like part of it. */
:root {
  color-scheme: dark;
  --background: #0A1A42; --surface: #123070; --raised: #1B3F8C; --outline: #33599F;
  --ink: #FFFFFF; --soft: #C3D3F5; --link: #7DB2FF; --action: #2563EB;
  --gold: #F0B24B; --gold-tint: #3A2C10; --gold-text: #F4C676;
  --profit: #52D39A; --loss: #FF9A8E; --loss-tint: #4A2030;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { background: var(--surface); border-bottom: 1px solid var(--outline); }
.bar, nav, main { max-width: 960px; margin: 0 auto; padding-inline: 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px 4px; font-size: 18px; }
nav { display: flex; gap: 4px; overflow-x: auto; }
nav a { padding: 12px; color: var(--soft); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
nav a[aria-current] { color: var(--ink); font-weight: 600; border-color: var(--gold); }
main { padding-block: 24px 64px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 20px; margin: 0; }
main > * + h1 { margin-top: 40px; }
.soft { color: var(--soft); margin: 0 0 16px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 20px; }
.figures div { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 14px 16px; }
dt { color: var(--soft); font-size: 14px; }
dd { margin: 2px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.profit { color: var(--profit); }
.loss { color: var(--loss); }
.heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.switch { display: flex; background: var(--surface); border-radius: 12px; padding: 4px; }
.switch a { padding: 8px 14px; border-radius: 9px; color: var(--soft); text-decoration: none; }
.switch a[aria-current] { background: var(--action); color: var(--ink); font-weight: 600; }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--outline); }
td:first-child { min-width: 150px; }
th { color: var(--soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 99px; background: var(--gold-tint); color: var(--gold-text); font-size: 13px; font-weight: 600; }
.tag.bad { background: var(--loss-tint); color: var(--loss); }
.note { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface); color: var(--soft); border: 1px solid var(--outline); }
.note.bad { background: var(--loss-tint); color: var(--loss); border-color: var(--loss); }
.login { max-width: 400px; padding-top: 14vh; }
.login form { display: grid; gap: 10px; }
label { font-weight: 600; }
input { height: 52px; padding: 0 14px; border: 1px solid var(--outline); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
button { height: 52px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--action); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
button.quiet { height: 44px; background: none; color: var(--link); font-size: 15px; font-weight: 600; padding-inline: 8px; }
@media (max-width: 480px) {
  th, td { padding: 11px 12px; }
  dd { font-size: 21px; }
  .figures div { padding: 10px 14px; }
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
