/* Cambeo console, the founders' web console: the app's Corail palette, light by
   default and dark with the system, every text at 4.5:1 at least on its
   background (test/contrast.test.ts). No font loaded: the system's. */

:root {
  color-scheme: light dark;
  --bg: #fffaf8;
  --surface: #ffffff;
  --surface-soft: #fff1ec;
  --border: #ead6cd;
  --field-border: #7a6a64;
  --text: #0f172a;
  --text-body: #334155;
  --text-secondary: #5b6577;
  --link: #b4232f;
  --primary: #c81e3f;
  --on-primary: #ffffff;
  --danger: #a61b1b;
  --on-danger: #ffffff;
  --urgent: #a61b1b;
  --on-urgent: #ffffff;
  --open-bg: #e3edff;
  --open-text: #1e3a8a;
  --neutral-bg: #eceff3;
  --neutral-text: #334155;
  --ok-bg: #e6f4ea;
  --ok-text: #14532d;
  --error-bg: #fdecea;
  --error-text: #8a1c1c;
  --warn-text: #8a4b00;
  --focus: #1d4ed8;
  --chart-1: #c81e3f;
  --chart-2: #1d4ed8;
  --chart-3: #0f766e;
  --chart-track: #f3e5df;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.08);
  --radius: 12px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 100%;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #1e2940;
    --surface-soft: #263350;
    --border: #3e4c66;
    --field-border: #8392ab;
    --text: #f1f5f9;
    --text-body: #e2e8f0;
    --text-secondary: #a9b6c9;
    --link: #fda4af;
    --primary: #e11d48;
    --on-primary: #ffffff;
    --danger: #dc2626;
    --on-danger: #ffffff;
    --urgent: #dc2626;
    --on-urgent: #ffffff;
    --open-bg: #1e3a6e;
    --open-text: #dbeafe;
    --neutral-bg: #334155;
    --neutral-text: #e2e8f0;
    --ok-bg: #12351f;
    --ok-text: #bbf7d0;
    --error-bg: #4a1517;
    --error-text: #fecaca;
    --warn-text: #fcd34d;
    --focus: #93c5fd;
    --chart-1: #fb7185;
    --chart-2: #93c5fd;
    --chart-3: #5eead4;
    --chart-track: #334155;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1.05rem;
}

h4 {
  font-size: 0.95rem;
}

p {
  margin: 0 0 0.5rem;
}

a {
  color: var(--link);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[tabindex='-1']:focus:not(:focus-visible) {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--link);
  border: 2px solid var(--focus);
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.5rem;
}

.muted {
  color: var(--text-secondary);
}

/* The top bar. */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
}

.brand-name {
  font-weight: 700;
  color: var(--text);
}

.brand-sub {
  font-weight: 400;
  color: var(--text-secondary);
}

.env {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

.env.prod {
  background: var(--urgent);
  color: var(--on-urgent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* A part of the console (Modération) with its pages. */
.nav-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.nav-label {
  margin-right: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  background: var(--surface-soft);
}

.nav a[aria-current='page'] {
  background: var(--surface-soft);
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.account {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.who {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

/* The page. */

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

main:focus {
  outline: none;
}

.status {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.status-line {
  margin: 1rem 0 0;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
}

.status-line.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.status-line.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.loading {
  color: var(--text-secondary);
}

.intro {
  max-width: 48rem;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
}

.notice.info {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

.notice.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.notice .button {
  margin-top: 0.25rem;
}

/* Buttons and fields. */

.button {
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}

.button.small {
  min-height: 2.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.button.primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button.danger {
  background: var(--danger);
  color: var(--on-danger);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--field-border);
}

.button.danger-outline {
  background: var(--surface);
  color: var(--error-text);
  border-color: var(--danger);
}

.button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 1rem;
}

.field > label,
.field legend {
  font-weight: 600;
  color: var(--text);
}

legend {
  padding: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

input[type='email'],
input[type='password'],
input[type='text'],
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  width: 100%;
  max-width: 34rem;
}

textarea {
  resize: vertical;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.option input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--primary);
  flex: none;
}

.hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Cards. */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}

.facts {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  gap: 0.35rem 1rem;
  margin: 0;
}

.facts dt {
  color: var(--text-secondary);
}

.facts dd {
  margin: 0;
  color: var(--text-body);
}

.facts.compact {
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  font-size: 0.95rem;
}

.user-text {
  white-space: pre-wrap;
  margin: 0;
}

.message {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--border);
  background: var(--surface-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

ul.plain,
ol.plain {
  margin: 0;
  padding-left: 1.2rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.urgent {
  background: var(--urgent);
  color: var(--on-urgent);
}

.badge.open {
  background: var(--open-bg);
  color: var(--open-text);
}

.badge.neutral {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

/* The queue. */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.toolbar p {
  margin: 0;
}

.queue-section {
  margin: 0 0 1.5rem;
}

.queue-section h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.count {
  font-size: 0.85rem;
  min-width: 1.75rem;
  text-align: center;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

.count.some {
  background: var(--open-bg);
  color: var(--open-text);
}

.empty {
  color: var(--text-secondary);
  margin: 0;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-body);
}

.row:hover {
  border-color: var(--field-border);
}

.row.urgent {
  border-left: 5px solid var(--urgent);
}

.row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.row-label {
  font-weight: 700;
  color: var(--text);
}

.row-title {
  color: var(--text-body);
}

.row-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* A case. */

.back {
  margin: 0 0 0.75rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin: 0 0 1rem;
  color: var(--text-body);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 1.25rem;
}

@media (min-width: 700px) {
  .case-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}

.photos {
  list-style: none;
  margin: 0.75rem 0 0.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-body);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  cursor: zoom-in;
}

.frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 6px;
  background: var(--surface-soft);
  overflow: hidden;
  color: var(--text-secondary);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-failed {
  font-size: 0.8rem;
  text-align: center;
  color: var(--error-text);
}

.photo-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-body);
}

.photo-dialog::backdrop {
  background: rgb(8 13 23 / 0.7);
}

.dialog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dialog-head h2 {
  margin: 0;
}

.dialog-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  margin: 0 auto;
  object-fit: contain;
}

.people,
.history,
.ban-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.person + .person {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.person-role {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin: 0;
}

.person-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.tag {
  font-weight: 400;
  color: var(--text-secondary);
}

.warnings.some {
  font-weight: 700;
  color: var(--warn-text);
}

.history li + li {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.history p {
  margin: 0;
}

.note {
  margin-top: 0.25rem;
  font-style: italic;
}

/* The same photo on two accounts: the two listings side by side, stacked when narrow. */

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.pair-side {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}

.pair-side .photos {
  margin-top: 0.25rem;
}

.pair-side .facts {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 0.5rem;
}

.pair-side .facts dd {
  margin-bottom: 0.4rem;
}

/* The tendency to overvalue (D086), discreet. */

.tendency {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tendency p {
  margin: 0;
}

/* Deciding. */

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.decision-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--bg);
}

.decision-panel.danger {
  border-color: var(--danger);
}

.effect {
  color: var(--text);
}

.preview {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--surface-soft);
}

.preview p {
  margin: 0.25rem 0 0;
}

.notice-title {
  font-weight: 700;
  color: var(--text);
}

.notice-body {
  color: var(--text-body);
}

.panel-error:empty {
  display: none;
}

.panel-error {
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: var(--error-bg);
  color: var(--error-text);
}

.panel-error p {
  margin: 0 0 0.4rem;
}

.progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.clock {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.progress progress {
  width: 8rem;
  accent-color: var(--primary);
}

.panel-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Sign-in and bans. */

.sign-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.test-sign-in {
  max-width: 34rem;
  margin-top: 2rem;
}

.ban,
.calibration-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0 0 0.6rem;
}

.ban-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ban-dates {
  color: var(--text);
  font-weight: 600;
}

.ban p,
.calibration-item p {
  margin: 0;
}

.ban-actions {
  margin-top: 0.5rem;
}

/* Access (M7): the console accounts, the invitations, the link shown once. */

.access-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.access-person + .access-person {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.access-person p {
  margin: 0.25rem 0;
}

.access-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.access-person .action-buttons {
  margin-top: 0.5rem;
}

.invite-form {
  max-width: 40rem;
}

.invitation-link .link-field {
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

/* What « Copier le lien » did, said beside it. */
.invitation-link .link-status .status-line {
  margin: 0.75rem 0 0;
}

/* The founders' dashboard (M7, D096): tiles, curves and bars in SVG, the
   period picker, the definitions. The charts take the palette's tokens. */

.dashboard-toolbar {
  align-items: flex-end;
}

.period-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.period-picker legend {
  width: 100%;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--text);
}

.period-option {
  position: relative;
}

.period-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.period-option span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--field-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.period-option input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.period-option input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem 1rem;
  min-width: 0;
}

.tile-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tile-value {
  margin: 0.1rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.tile-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.measure-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.def-toggle {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--field-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.def-toggle[aria-expanded='true'] {
  background: var(--surface-soft);
}

.def-text {
  margin: 0.4rem 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--border);
  border-radius: 0 8px 8px 0;
  background: var(--surface-soft);
  color: var(--text-body);
  font-size: 0.9rem;
}

.def-text p {
  margin: 0 0 0.3rem;
}

.dashboard-section {
  margin: 1.75rem 0;
}

.dashboard-section > h2 {
  margin-bottom: 0.75rem;
}

.dashboard-card h3 {
  margin-bottom: 0.6rem;
}

.dashboard-facts {
  grid-template-columns: minmax(10rem, 20rem) minmax(0, 1fr);
}

.chart-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.chart-figure {
  min-width: 0;
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chart-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

svg.chart {
  display: block;
  overflow: visible;
}

.chart text {
  font-family: inherit;
  font-size: 12px;
  fill: var(--text-secondary);
}

.chart .chart-grid line {
  stroke: var(--border);
  stroke-width: 1;
}

.chart .chart-baseline line {
  stroke: var(--field-border);
  stroke-width: 1;
}

.chart-series path {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-series circle {
  stroke: var(--surface);
  stroke-width: 1.5;
}

.tone-1 path {
  stroke: var(--chart-1);
}

.tone-1 circle {
  fill: var(--chart-1);
}

.tone-2 path {
  stroke: var(--chart-2);
}

.tone-2 circle {
  fill: var(--chart-2);
}

.tone-3 path {
  stroke: var(--chart-3);
}

.tone-3 circle {
  fill: var(--chart-3);
}

.chart-series circle.partial {
  fill: var(--surface);
  stroke-width: 2;
}

.tone-1 circle.partial {
  stroke: var(--chart-1);
}

.tone-2 circle.partial {
  stroke: var(--chart-2);
}

.tone-3 circle.partial {
  stroke: var(--chart-3);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.35rem;
  border-radius: 3px;
  vertical-align: -0.1em;
}

.swatch.tone-1 {
  background: var(--chart-1);
}

.swatch.tone-2 {
  background: var(--chart-2);
}

.swatch.tone-3 {
  background: var(--chart-3);
}

.swatch.partial {
  border: 2px solid var(--field-border);
  border-radius: 50%;
  background: var(--surface);
}

.bars .bar-label {
  fill: var(--text);
  font-size: 13px;
}

.bars .bar-value {
  fill: var(--text-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bars .bar-track {
  fill: var(--chart-track);
}

.bars .bar {
  fill: var(--chart-1);
}

.chart-table {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.chart-table summary {
  color: var(--link);
  cursor: pointer;
}

.table-scroll {
  overflow-x: auto;
}

.chart-table table,
.data-table {
  width: 100%;
  margin-top: 0.4rem;
  border-collapse: collapse;
}

/* The cells break between words only, never inside one (« Numér o »): the
   body's overflow-wrap: anywhere lets a narrow column split its words. A
   table too wide for a phone scrolls sideways in its .table-scroll. */
.chart-table th,
.chart-table td,
.data-table th,
.data-table td {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}

.chart-table th[scope='row'],
.data-table th[scope='row'] {
  font-weight: 400;
}

.definition-list dt {
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.definition-list dt:first-child {
  margin-top: 0;
}

.definition-list dd {
  margin: 0.25rem 0 0;
}

.definition-list dd p {
  margin: 0 0 0.25rem;
}

/* One column on a phone, and at 200 % zoom on a laptop. */

@media (max-width: 699px) {
  h1 {
    font-size: 1.35rem;
  }

  .facts,
  .facts.compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .facts dd {
    margin-bottom: 0.5rem;
  }

  .account {
    margin-left: 0;
  }

  .frame {
    width: 6rem;
    height: 6rem;
  }

  .panel-buttons .button,
  .action-buttons .button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
