/* Suivi des issues — Evarisk & Eoxia
   Ardoise neutre, un accent sarcelle utilisé avec parcimonie, Geist, bordures fines. Sombre par défaut.
   Couleurs de sens, partout les mêmes : créées = sarcelle, fermées = violet, ouvertes = ambre.
   Les huit plus gros projets ont une couleur fixe (--c1 … --c8), validée pour le daltonisme. */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/Geist-normal-400_700-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: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/Geist-normal-400_700-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: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/GeistMono-normal-400_600-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: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/GeistMono-normal-400_600-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; }

/* ---------------------------------------------------------------- thèmes */
:root {
  color-scheme: dark;
  --bg: #0e1218;
  --surface: #141a22;
  --surface-2: #19202a;
  --line: rgba(148, 163, 184, .09);
  --line-2: rgba(148, 163, 184, .15);
  --line-3: rgba(148, 163, 184, .26);
  --ink: #e7ecf2;
  --ink-2: #b2bccb;
  --ink-3: #7f8a9b;
  --ink-4: #5a6474;
  --accent: #2dd4bf;
  --accent-bg: rgba(45, 212, 191, .10);
  --accent-ring: rgba(45, 212, 191, .30);
  --grid: rgba(148, 163, 184, .10);
  --axis: rgba(148, 163, 184, .30);
  --shadow-pop: 0 14px 36px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);

  --created: #14a397;
  --closed: #8b7cf6;
  --open: #d28e05;
  --up: #eb6263;
  --down: #338ced;

  --c1: #338ced; --c2: #e76624; --c3: #00a888; --c4: #d28e05;
  --c5: #e24d8b; --c6: #0aac23; --c7: #9887ef; --c8: #eb6263;
  --c-other: #64748b;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --radius: 6px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f3f5f8;
  --line: rgba(15, 23, 42, .07); --line-2: rgba(15, 23, 42, .11); --line-3: rgba(15, 23, 42, .2);
  --ink: #0f172a; --ink-2: #3b4658; --ink-3: #64708a; --ink-4: #9aa3b5;
  --accent: #0d9488; --accent-bg: rgba(13, 148, 136, .09); --accent-ring: rgba(13, 148, 136, .26);
  --grid: rgba(15, 23, 42, .07); --axis: rgba(15, 23, 42, .22);
  --shadow-pop: 0 14px 36px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
  --created: #0d9488; --closed: #6d5ce8; --open: #c27c00; --up: #ec4647; --down: #257de0;
  --c1: #257de0; --c2: #f47230; --c3: #00b894; --c4: #f2a600;
  --c5: #ee7fac; --c6: #008a17; --c7: #6a4ce2; --c8: #ec4647;
  --c-other: #94a3b8;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f3f5f8;
    --line: rgba(15, 23, 42, .07); --line-2: rgba(15, 23, 42, .11); --line-3: rgba(15, 23, 42, .2);
    --ink: #0f172a; --ink-2: #3b4658; --ink-3: #64708a; --ink-4: #9aa3b5;
    --accent: #0d9488; --accent-bg: rgba(13, 148, 136, .09); --accent-ring: rgba(13, 148, 136, .26);
    --grid: rgba(15, 23, 42, .07); --axis: rgba(15, 23, 42, .22);
    --shadow-pop: 0 14px 36px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
    --created: #0d9488; --closed: #6d5ce8; --open: #c27c00; --up: #ec4647; --down: #257de0;
    --c1: #257de0; --c2: #f47230; --c3: #00b894; --c4: #f2a600;
    --c5: #ee7fac; --c6: #008a17; --c7: #6a4ce2; --c8: #ec4647;
    --c-other: #94a3b8;
  }
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-ring); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { flex: none; display: block; }
[data-icon] { display: inline-flex; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 6px 10px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- en-tête */
header.top { border-bottom: 1px solid var(--line-2); }
header.top .wrap { display: flex; align-items: stretch; gap: 18px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand > [data-icon] { color: var(--accent); }
.brand-sub { color: var(--ink-3); font-weight: 400; }
nav.tabs { display: flex; align-items: stretch; gap: 4px; }
nav.tabs a {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 10px;
  color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
nav.tabs a:hover { color: var(--ink); text-decoration: none; }
nav.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
header.top .theme { margin-left: auto; align-self: center; }
.theme button { padding: 5px 7px; }

/* ---------------------------------------------------------------- filtres */
.filters {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filters .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 10px; padding-bottom: 10px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.flabel { font-size: 12px; color: var(--ink-3); }
.meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }

.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.seg button {
  font: inherit; font-size: 12.5px; padding: 4px 10px; border: 0; border-radius: 4px;
  background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg button:hover { color: var(--ink); background: var(--surface-2); }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3); font-weight: 500; }

.select {
  font: inherit; font-size: 12.5px; color: var(--ink-2);
  background-color: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 5px 28px 5px 10px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f8a9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.select.on { color: var(--ink); border-color: var(--accent-ring); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.select option { background: var(--surface); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12.5px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 5px 10px; cursor: pointer; white-space: nowrap;
}
.btn:hover { color: var(--ink); border-color: var(--line-3); text-decoration: none; }

/* ---------------------------------------------------------------- contenu */
main { padding-top: 26px; padding-bottom: 24px; min-height: 60vh; }
main:focus { outline: none; }
.loading, .empty { color: var(--ink-3); }
.empty { text-align: center; padding: 28px 0; }
.empty [data-icon], .empty .icon { margin: 0 auto 8px; color: var(--ink-4); }

.intro h1 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.lede { margin: 0; color: var(--ink-2); max-width: 78ch; font-size: 14.5px; }
.lede strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lede a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.lede a:hover { text-decoration-color: var(--accent); }

.kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
  margin: 20px 0 18px;
}
.tile { background: var(--surface); padding: 14px 16px 13px; min-width: 0; }
.tile-label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.tile-label .key { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tile-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile.hero .tile-value { font-size: 28px; }
.tile-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 18px 18px 14px; margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.card h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.card h3 { font-size: 12px; font-weight: 500; color: var(--ink-3); margin: 18px 0 8px; }
.card h3.first { margin-top: 0; }
.note { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); max-width: 80ch; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.search { position: relative; display: inline-flex; align-items: center; }
.search > [data-icon], .search > .icon { position: absolute; left: 9px; color: var(--ink-3); pointer-events: none; }
.search input {
  font: inherit; font-size: 13px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 5px 30px 5px 31px; width: 230px;
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.search .clear { position: absolute; right: 4px; border: 0; background: transparent; color: var(--ink-3); padding: 3px; border-radius: 4px; cursor: pointer; }
.search .clear:hover { color: var(--ink); background: var(--surface-2); }
kbd { font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); margin: 0 0 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-item .key { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.legend-item .key.line { height: 3px; width: 14px; }
.legend-item b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- classement */
.tablewrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
caption { caption-side: bottom; text-align: left; font-size: 12px; color: var(--ink-3); padding-top: 10px; }
th { font-size: 11.5px; font-weight: 500; color: var(--ink-3); text-align: right; padding: 0 10px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.l, td.l { text-align: left; }
th .sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; border-radius: 3px; }
th .sort:hover, th[aria-sort] .sort { color: var(--ink); }
th .sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
tbody tr.go { cursor: pointer; }
tbody tr.go:hover, tbody tr.sel { background: var(--surface-2); }
tfoot td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line-3); border-bottom: 0; }
td.c-rank { color: var(--ink-4); width: 1%; font-size: 12px; }
td.c-name { white-space: normal; min-width: 150px; }
.pname { color: var(--ink); font-weight: 500; }
.porg { font-size: 11.5px; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 400; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
td.c-bar { width: 36%; min-width: 130px; }
.bar { display: flex; align-items: center; gap: 8px; }
.track { flex: 1; display: flex; gap: 2px; height: 12px; min-width: 0; }
.b { height: 100%; min-width: 2px; }
.b.end { border-radius: 0 4px 4px 0; }
.b-created { background: var(--created); }
.b-closed { background: var(--closed); }
.b-open { background: var(--open); }
.bar-val { display: none; font-size: 12px; color: var(--ink-2); min-width: 3.6em; text-align: right; }
td.c-gh { width: 1%; padding-left: 4px; }
td.c-gh a { color: var(--ink-4); display: inline-flex; padding: 3px; border-radius: 4px; }
td.c-gh a:hover { color: var(--accent); background: var(--surface); }

/* ---------------------------------------------------------------- graphiques */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 12.5px; padding: 3px 9px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--ink);
}
.chip:hover { background: var(--surface-2); }
.chip .key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.chip .n { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="false"] { color: var(--ink-4); }
.chip[aria-pressed="false"] .key { opacity: .25; }
.chip.reset { color: var(--ink-3); border-style: dashed; }

.plot { position: relative; }
.plot.h-main { height: 360px; }
.plot.h-mid { height: 230px; }
.plot.h-low { height: 200px; }

.tip {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line-3); border-radius: 8px; box-shadow: var(--shadow-pop);
  padding: 9px 11px; min-width: 160px; max-width: 280px; font-size: 12.5px;
}
@media (prefers-reduced-motion: no-preference) { .tip { transition: opacity .12s ease; } }
.tip-title { font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.tip-row { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.tip-key { width: 10px; height: 3px; border-radius: 2px; flex: none; transform: translateY(-3px); }
.tip-val { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.tip-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-foot { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line-2); color: var(--ink-2); }

/* petits multiples */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 22px; }
.sm { min-width: 0; }
.sm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sm-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-sub { font-size: 11.5px; color: var(--ink-3); margin: 1px 0 8px; }
.spark { position: relative; height: 64px; cursor: crosshair; }
.spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spark .max { position: absolute; top: -2px; left: 0; font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; pointer-events: none; }
.spark .guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--axis); display: none; pointer-events: none; }
.spark .dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 2px solid var(--surface); display: none; pointer-events: none; }
.spark .stip {
  position: absolute; top: -8px; transform: translate(-50%, -100%); display: none; pointer-events: none; z-index: 4;
  background: var(--surface-2); border: 1px solid var(--line-3); border-radius: 6px; box-shadow: var(--shadow-pop);
  padding: 3px 8px; font-size: 12px; white-space: nowrap;
}
.spark .stip b { font-variant-numeric: tabular-nums; }
.spark.on .guide, .spark.on .dot, .spark.on .stip { display: block; }
.more { margin-top: 16px; }

/* ---------------------------------------------------------------- page projet */
.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 16px; font-size: 13px; }
.crumbs a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .pn { display: flex; gap: 16px; }
.phead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.phead h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phead h1 .key { width: 12px; height: 12px; border-radius: 3px; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }
.pmeta span { display: inline-flex; align-items: center; gap: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
table.years td.y { font-weight: 500; }
table.years td .partial { color: var(--ink-3); font-weight: 400; font-size: 11.5px; margin-left: 6px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 16px; align-items: start; }

/* ---------------------------------------------------------------- en direct */
.live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.live.is-bad .live-dot { background: var(--up); }
.live.is-warn .live-dot { background: var(--open); }
.live.is-bad { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .live:not(.is-bad):not(.is-warn) .live-dot { animation: live 2.4s ease-in-out infinite; }
  @keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}
.seg button:disabled { color: var(--ink-4); cursor: not-allowed; background: transparent; opacity: .55; }
.small { font-size: 12.5px; }

/* ---------------------------------------------------------------- activité */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed-ico { padding-top: 2px; }
.feed-ico.is-open { color: var(--open); }
.feed-ico.is-closed { color: var(--closed); }
.feed-body { min-width: 0; }
.feed-title { color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-meta { font-size: 12px; color: var(--ink-3); }
.feed-meta a { color: var(--ink-2); }
#activite .feed { columns: 2 380px; column-gap: 28px; }
#activite .feed li { break-inside: avoid; }
.grid2 #activite .feed { columns: auto; }

/* ---------------------------------------------------------------- pied */
footer.foot { border-top: 1px solid var(--line-2); margin-top: 16px; padding: 18px 0 40px; font-size: 12.5px; color: var(--ink-3); }
footer.foot p { margin: 8px 0 0; max-width: 92ch; }
footer.foot summary { cursor: pointer; color: var(--ink-2); }
footer.foot code { font-family: var(--mono); font-size: 11.5px; }

/* ---------------------------------------------------------------- petits écrans */
@media (max-width: 860px) {
  .filters { position: static; }
  .brand-sub { display: none; }
  .meta { margin-left: 0; }
}
@media (max-width: 760px) {
  .c-created, .c-closed, .c-stars, .c-rank { display: none; }
  .bar-val { display: inline; }
  .search input { width: 100%; }
  .search { flex: 1 1 200px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  header.top .wrap { gap: 10px; }
  .brand > span:not([data-icon]) { display: none; }
  nav.tabs a { padding: 0 8px; }
  .c-open, .c-total { display: none; }
  .card { padding: 14px 14px 12px; }
  .tablewrap { margin: 0 -14px; padding: 0 14px; }
  .plot.h-main { height: 300px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.hero { grid-column: 1 / -1; }
  .seg button { padding: 4px 8px; }
  .crumbs .pn { gap: 12px; }
  .tile-value { font-size: 22px; }
  .tile.hero .tile-value { font-size: 24px; }
}
@media print {
  .filters, header.top .theme, .tools, .c-gh { display: none !important; }
  .card { break-inside: avoid; }
}
