/* Explorateur serveur — interface claire uniquement, même famille que le portail v12, la connexion de
   référence et SpaceD (fond #f7f7f5, panneaux blancs bordés, encre #1c1917). Aucune ressource externe. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-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"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geistmono-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: 100 900; font-display: swap;
  src: url(fonts/geistmono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --panel: #ffffff;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #78716c;
  --text-4: #a8a29e;
  --border: #e4e2df;
  --line: #efedea;
  --field: #d6d3d1;
  --field-hover: #a8a29e;
  --hover: #fafaf8;
  --hover-2: #f3f2ef;
  --current: #ffffff;
  --ring: rgba(28, 25, 23, 0.12);
  --button: #1c1917;
  --button-hover: #33302d;
  --err: #b42318;
  --err-bg: #fef3f2;
  --err-border: #fecdca;
  --warn: #93370d;
  --warn-bg: #fffaeb;
  --warn-border: #fedf89;
  --target: #fdf7e7;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px rgba(28, 25, 23, 0.08);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --top-h: 56px;
  --side-w: 264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input { font: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--button);
  color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--text-3); }
.mono-t { font-family: var(--mono); font-size: 12.5px; }

/* ------------------------------------------------------------------ connexion (modèle commun du groupe) */
.cx { font-size: 15px; line-height: 1.5; }
.cx-page { max-width: 1080px; margin: 0 auto; padding-inline: 40px; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; }
.cx-top { display: flex; align-items: center; height: 68px; border-bottom: 1px solid var(--border); }
.cx-brand { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cx-brand span { color: var(--text-3); font-weight: 500; }
.cx-main { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 48px 72px; }
.cx-panel { width: 100%; max-width: 392px; padding: 32px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; }
.cx-panel.cx-wide { max-width: 560px; }
.cx-panel h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.cx-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.cx-form { margin-top: 28px; display: grid; gap: 18px; }
.cx-form-tight { margin-top: 12px; }
.cx-field { display: grid; gap: 6px; }
.cx-field label { font-size: 13px; font-weight: 500; }
.cx-input { display: block; width: 100%; height: 42px; margin: 0; padding: 0 12px; background: #fff; color: var(--text);
  border: 1px solid var(--field); border-radius: 8px; font: inherit; font-size: 15px;
  transition: border-color .12s ease, box-shadow .12s ease; }
.cx-input::placeholder { color: var(--text-4); }
.cx-input:hover { border-color: var(--field-hover); }
.cx-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.cx-input[aria-invalid="true"] { border-color: var(--err); }
.cx-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.cx-code { font-family: var(--mono); font-size: 17px; letter-spacing: 0.12em; }
.cx-hint { margin: 0; font-size: 12.5px; color: var(--text-3); }
/* calcul de vérification (SVG en ligne, 220 × 64, sans style ni script) */
.cx-captcha { width: 100%; max-width: 222px; background: #fafaf8; border: 1px solid #e5e3de; border-radius: 6px;
  overflow: hidden; }
.cx-captcha svg { display: block; width: 100%; height: auto; }
.cx-captcha-input { font-variant-numeric: tabular-nums; }
.cx-password { position: relative; }
.cx-password .cx-input { padding-right: 88px; }
.cx-toggle { position: absolute; top: 5px; right: 5px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.cx-toggle:hover { background: #f5f5f4; color: var(--text); }
.cx-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 0; }
.cx-submit { display: inline-flex; align-items: center; justify-content: center; height: 42px; width: 100%; margin-top: 6px;
  border: 0; border-radius: 8px; background: var(--button); color: #fff; font: 500 14.5px/1 var(--sans); cursor: pointer;
  transition: background-color .12s ease; }
.cx-submit:hover { background: var(--button-hover); }
.cx-submit:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cx-submit-link { margin-top: 0; }
.cx-secondary { height: 42px; padding: 0 16px; border: 1px solid var(--field); border-radius: 8px; background: #fff;
  font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.cx-secondary:hover { border-color: var(--field-hover); }
.cx-error { margin: 16px 0 0; padding: 10px 12px; background: var(--err-bg); border: 1px solid var(--err-border);
  border-radius: 8px; color: var(--err); font-size: 13.5px; line-height: 1.45; }
.cx-warn { margin: 20px 0 0; padding: 10px 12px; background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: 8px; color: var(--warn); font-size: 13.5px; line-height: 1.45; }
.cx-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.cx-note a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.cx-note a:hover { color: var(--text); }
.cx-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap;
  padding-block: 24px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.cx-foot a { color: var(--text-2); }
.cx-foot a:hover { color: var(--text); }

/* enrôlement */
.enrol { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.enrol > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.enrol > li:first-child { border-top: 0; padding-top: 4px; }
.enrol-n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center;
  font: 500 12px/1 var(--mono); color: var(--text-2); background: var(--hover); }
.enrol h2 { margin: 1px 0 2px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.enrol p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.qr { margin-top: 14px; display: inline-block; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; line-height: 0; }
.qr svg { display: block; width: 220px; height: 220px; }
.secret { display: block; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--hover); font: 500 14.5px/1.5 var(--mono); letter-spacing: 0.06em; word-break: break-all; user-select: all; }
.enrol-meta { margin: 10px 0 0; display: grid; gap: 4px; font-size: 13px; }
.enrol-meta div { display: flex; gap: 10px; min-width: 0; }
.enrol-meta dt { color: var(--text-3); width: 64px; flex: none; }
.enrol-meta dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }

/* codes de secours */
.codes { list-style: none; margin: 20px 0 0; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--hover); }
.codes code { font: 500 15px/1.4 var(--mono); letter-spacing: 0.04em; }
.codes-actions { margin-top: 20px; display: flex; gap: 12px; }
.codes-actions .cx-submit { flex: 1; }

/* ------------------------------------------------------------------ coquille de l'explorateur */
.app-body { overflow: hidden; }
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr);
  height: 100vh; height: 100dvh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--border); background: var(--bg); min-width: 0; }
.brand { display: flex; align-items: baseline; gap: 8px; font-size: 15px; white-space: nowrap; width: calc(var(--side-w) - 36px); flex: none; }
.brand-group { color: var(--text-3); font-weight: 500; }
.brand-sep { color: var(--text-4); }
.brand-app { font-weight: 600; letter-spacing: -0.01em; }
.search { flex: 1; max-width: 520px; min-width: 0; position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }
.search input[type="search"] { width: 100%; height: 36px; padding: 0 34px 0 36px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel); color: var(--text); font-size: 14px; transition: border-color .12s, box-shadow .12s; }
.search input::placeholder { color: var(--text-3); }
.search input:hover { border-color: var(--field); }
.search input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.search input::-webkit-search-cancel-button { display: none; }
.search-kbd { position: absolute; right: 9px; font: 500 11px/1 var(--mono); color: var(--text-3); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 5px; background: var(--bg); }
.search input:focus ~ .search-kbd { display: none; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ro-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--panel); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ro-pill .i { width: 15px; height: 15px; color: var(--text-3); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--hover-2); color: var(--text); }
.user { position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel);
  font: 600 13px/1 var(--sans); color: var(--text-2); cursor: pointer; }
.avatar:hover { border-color: var(--field); color: var(--text); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 240px; padding: 6px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.menu-head { display: grid; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu-head strong { font-size: 13.5px; font-weight: 600; }
.menu-head span { color: var(--text-3); font-size: 11.5px; overflow-wrap: anywhere; }
.menu form { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; font-size: 13.5px; color: var(--text); text-align: left; cursor: pointer; }
.menu-item .i { width: 16px; height: 16px; color: var(--text-3); }
.menu-item:hover { background: var(--hover-2); }

/* barre latérale */
.sidebar { grid-row: 2; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: var(--bg); }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 16px; overscroll-behavior: contain; }
.side-title { margin: 16px 10px 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projects, .tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.proj { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 7px; color: var(--text-2);
  font-size: 13.5px; white-space: nowrap; }
.proj .i { width: 16px; height: 16px; color: var(--text-3); }
.proj span { overflow: hidden; text-overflow: ellipsis; }
.proj:hover { background: var(--hover-2); color: var(--text); }
.proj.current { background: var(--current); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--border); }
.proj.current .i { color: var(--text-2); }
.tree ul { padding-left: 14px; }
.trow { display: flex; align-items: center; height: 30px; border-radius: 7px; padding-right: 8px; }
.trow:hover { background: var(--hover-2); }
.trow.current { background: var(--current); box-shadow: inset 0 0 0 1px var(--border); }
.twisty { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0;
  border-radius: 5px; background: transparent; color: var(--text-4); cursor: pointer; flex: none; }
button.twisty:hover { color: var(--text); background: var(--line); }
.twisty .i { width: 14px; height: 14px; transition: transform .12s ease; }
.tnode[aria-expanded="true"] > .trow .twisty .i { transform: rotate(90deg); }
.tnode[aria-expanded="false"] > ul { display: none; }
.tlabel { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; height: 100%; font-size: 13.5px; color: var(--text-2); }
.tlabel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlabel .i { width: 16px; height: 16px; color: var(--text-4); }
.trow.current .tlabel { color: var(--text); font-weight: 500; }
.trow.current .tlabel .i { color: var(--text-2); }
.tlabel:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: 6px; }
.side-empty { margin: 4px 10px; font-size: 13px; color: var(--text-3); }
.side-foot { border-top: 1px solid var(--border); padding: 10px; }
.side-link { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; color: var(--text-2); }
.side-link .i { width: 16px; height: 16px; color: var(--text-3); }
.side-link:hover { background: var(--hover-2); color: var(--text); }
.side-link.current { background: var(--current); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--border); }
.side-note { margin: 6px 10px 2px; font-size: 12px; color: var(--text-3); }
.scrim { display: none; }

/* contenu */
.main { grid-row: 2; min-width: 0; min-height: 0; overflow: auto; padding: 24px 32px 56px; outline: none; }
.ro-strip { display: none; }
.page-head { margin-bottom: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 6px; padding: 0; list-style: none; font-size: 13px; color: var(--text-3); }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 6px; color: var(--text-4); }
.crumbs a { color: var(--text-2); border-radius: 4px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--field); }
.crumbs [aria-current] { color: var(--text-3); overflow-wrap: anywhere; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-width: 0; }
.title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; min-width: 0; }
.title-file { display: flex; align-items: center; gap: 10px; }
.title-file .i { width: 22px; height: 22px; color: var(--text-3); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.dot-sep { margin: 0 8px; color: var(--text-4); }
.filter { position: relative; display: flex; align-items: center; width: 240px; max-width: 100%; }
.filter .i { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.filter input { width: 100%; height: 34px; padding: 0 10px 0 32px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel); font-size: 13.5px; color: var(--text); }
.filter input:hover { border-color: var(--field); }
.filter input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.filter input::-webkit-search-cancel-button { display: none; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.list { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.list th { height: 38px; padding: 0 16px; text-align: left; background: var(--hover); border-bottom: 1px solid var(--border);
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); white-space: nowrap; }
.list td { height: 42px; padding: 6px 16px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.list tbody tr:first-child td { border-top: 0; }
.list .row { position: relative; }
.list .row:hover td { background: var(--hover); }
.list .c-name { width: auto; }
.list .c-size { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.list .c-date { width: 190px; white-space: nowrap; }
.list .c-count { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.list .c-path { width: 34%; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list th.c-size, .list th.c-count { text-align: right; }
.name-link { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; color: var(--text); font-weight: 450; }
.name-link::after { content: ""; position: absolute; inset: 0; }
.name-link:focus-visible { outline: none; }
.name-link:focus-visible::after { outline: 2px solid var(--text); outline-offset: -2px; border-radius: 4px; }
.name-link .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-link .i { color: var(--text-3); }
.name-link .k-dossier { color: #8a6d3b; }
.list .sub { display: none; }
.sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.sort:hover { color: var(--text); }
.sort-i { width: 12px; height: 12px; opacity: 0; transform: rotate(90deg); transition: transform .12s; }
.sort.on { color: var(--text); }
.sort.on .sort-i { opacity: 1; }
th[aria-sort="descending"] .sort-i { transform: rotate(-90deg); }
.empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty-state .i { width: 28px; height: 28px; color: var(--text-4); margin-bottom: 6px; }
.empty-state p { margin: 0; }
.empty-state .btn { margin-top: 12px; }
.hint { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-size: 12.5px; color: var(--text-3); }
.hint .i { width: 15px; height: 15px; }
.notice { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--warn-border); background: var(--warn-bg); border-radius: 8px;
  color: var(--warn); font-size: 13px; }

.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--panel); font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; cursor: pointer; }
.btn .i { width: 16px; height: 16px; color: var(--text-3); }
.btn:hover { border-color: var(--field); background: var(--hover); }
.file-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--hover); }
.seg a { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 6px; font-size: 13px; color: var(--text-2); }
.seg a.on { background: var(--panel); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }
.badge-mask { display: inline-flex; align-items: center; gap: 6px; height: 22px; margin-left: 12px; padding: 0 9px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--hover); color: var(--text-2); font-size: 12px; }
.badge-mask .i { width: 14px; height: 14px; color: var(--text-3); }

/* visionneuse */
.viewer { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; overflow: clip; }
.codebar { border-radius: 10px 10px 0 0; }
.code-scroll { overflow: auto; max-width: 100%; }
.code { border-collapse: collapse; min-width: 100%; font: 400 12.5px/20px var(--mono); color: var(--text); tab-size: 4; -moz-tab-size: 4; }
.code td { padding: 0; vertical-align: top; }
.code .ln { position: sticky; left: 0; width: 1%; min-width: 48px; padding: 0 12px 0 16px; text-align: right; background: #fbfbfa;
  border-right: 1px solid var(--line); color: var(--text-4); user-select: none; -webkit-user-select: none; white-space: nowrap; }
.code .ln a { color: inherit; display: block; }
.code .ln a:hover { color: var(--text-2); }
.code .lc { padding: 0 20px 0 16px; white-space: pre; }
.code tr:first-child td { padding-top: 10px; }
.code tr:last-child td { padding-bottom: 12px; }
.code tr:target td { background: var(--target); }
.code tr:target .ln { color: var(--text-2); }
.mask { display: inline-block; padding: 0 5px; margin: 0 1px; border: 1px solid var(--border); border-radius: 4px; background: #f5f4f2;
  color: var(--text-2); font-style: normal; font-weight: 500; line-height: 16px; letter-spacing: 0; white-space: nowrap; }
.hl .c { color: #8a847e; font-style: italic; }
.hl .k { color: #a4262c; }
.hl .s { color: #0b5394; }
.hl .n { color: #0b6b5f; }
.hl .f { color: #5b3a9e; }
.hl .t { color: #8a4b08; }
.hl .b { color: #5b3a9e; }
.hl .g { color: #1f6f3f; }
.hl .a { color: #0b5394; }
.hl .v { color: #8a4b08; }
.hl .d { color: #8a4b08; }
.hl .p { color: #8a847e; }
.hl .gd { color: #b42318; background: #fef3f2; }
.hl .gi { color: #15803d; background: #ecfdf3; }
.hl .gh { font-weight: 600; }

.md { max-width: 860px; padding: 28px 40px 40px; font-size: 15px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3, .md h4 { margin: 1.6em 0 0.5em; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.md h1 { font-size: 24px; }
.md h2 { font-size: 19px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.md h3 { font-size: 16px; }
.md h4 { font-size: 15px; color: var(--text-2); }
.md p, .md ul, .md ol, .md blockquote, .md table, .md pre { margin: 0 0 1em; }
.md ul, .md ol { padding-left: 1.4em; }
.md li + li { margin-top: 0.25em; }
.md a { color: #0b5394; text-decoration: underline; text-decoration-color: #b8cde6; text-underline-offset: 3px; }
.md a:hover { text-decoration-color: currentColor; }
.md code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--hover); font: 0.86em/1.5 var(--mono); }
.md pre { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbfa; overflow: auto; }
.md pre code { padding: 0; border: 0; background: none; font-size: 12.5px; white-space: pre; }
.md blockquote { padding: 2px 16px; border-left: 3px solid var(--border); color: var(--text-2); }
.md table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 14px; }
.md th, .md td { padding: 7px 12px; border: 1px solid var(--border); text-align: left; }
.md th { background: var(--hover); font-weight: 600; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.md img { max-width: 100%; height: auto; border-radius: 6px; }
.md .md-img-ext { display: inline-block; padding: 2px 8px; border: 1px dashed var(--border); border-radius: 6px; font-size: 13px; color: var(--text-3); }
.media { display: flex; justify-content: center; padding: 24px; background: var(--hover); }
.media img, .media video { max-width: 100%; max-height: 72vh; height: auto; border-radius: 4px; }
.media audio { width: min(100%, 520px); }
.pdf { display: block; width: 100%; height: calc(100dvh - 210px); min-height: 480px; border: 0; background: var(--hover); }

/* journal */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; }
.stats div { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.stats div:first-child { border-left: 0; }
.stats dt { font-size: 12px; color: var(--text-3); }
.stats dd { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  border: 1px solid transparent; }
.tabs a:hover { color: var(--text); background: var(--hover-2); }
.tabs a.on { background: var(--panel); border-color: var(--border); color: var(--text); font-weight: 500; }
.list-log .c-when { width: 196px; color: var(--text-3); white-space: nowrap; }
.list-log .c-event { width: 230px; }
.list-log .c-detail { color: var(--text-2); overflow-wrap: anywhere; }
.list-log .c-ip { width: 130px; color: var(--text-3); }
.ev { color: var(--text); }
.ev-bad { color: var(--err); }

/* ------------------------------------------------------------------ v2 : composants communs */
kbd { display: inline-block; min-width: 18px; padding: 2px 5px; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 4px; background: var(--panel); font: 500 11px/1.2 var(--mono); color: var(--text-2); text-align: center; }
.kbd-inline { margin: 0 2px; }
.menu-kbd { margin-left: auto; }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline;
  text-decoration-color: var(--field); text-underline-offset: 3px; }
.linkish kbd { font-size: 10px; padding: 0 4px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { border-color: var(--border); background: var(--panel); color: var(--text); }
.btn-dark { background: var(--button); border-color: var(--button); color: #fff; }
.btn-dark .i { color: #d6d3d1; }
.btn-dark:hover { background: var(--button-hover); border-color: var(--button-hover); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.is-disabled { opacity: .45; cursor: default; pointer-events: none; }
.btn[hidden] { display: none !important; }
.i.flip { transform: rotate(180deg); }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-icons a { width: 32px; justify-content: center; padding: 0; }
.seg-icons .i { width: 16px; height: 16px; color: var(--text-3); }
.seg-icons a.on .i { color: var(--text); }
.side-overview { margin: 0 0 4px; }
.only-mobile-flex { display: none !important; }
.ok-t { color: #15803d; }
.warn-t { color: var(--warn); }
.err-t { color: var(--err); }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 6px; border-radius: 999px;
  background: var(--hover-2); border: 1px solid var(--border); font-size: 11.5px; font-weight: 500; color: var(--text-2); vertical-align: 1px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); margin: 0; padding: 9px 14px;
  border-radius: 8px; background: var(--button); color: #fff; font-size: 13px; box-shadow: var(--shadow); }

/* onglets de projet */
.ptabs { display: flex; gap: 2px; margin: 0 0 14px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.ptabs a .i { width: 16px; height: 16px; color: var(--text-3); }
.ptabs a:hover { color: var(--text); }
.ptabs a.on { border-bottom-color: var(--text); color: var(--text); font-weight: 500; }
.ptabs a.on .i { color: var(--text-2); }

/* grille avec vignettes */
.grid { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.card-link { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 8px 8px 10px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--panel); min-width: 0; }
.card-link:hover { border-color: var(--field); background: var(--hover); }
.thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 6px; background: var(--hover-2); overflow: hidden; }
.thumb .i { width: 30px; height: 30px; color: var(--text-4); }
.thumb .k-dossier { color: #8a6d3b; }
.thumb-img { background: #f3f2ef repeating-conic-gradient(#ecebe8 0 25%, #f6f5f3 0 50%) 0 0 / 16px 16px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-name { font-size: 13px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid .card[hidden] { display: none; }

/* pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pager-info { font-size: 13px; color: var(--text-3); text-align: center; }

/* fichier : Git, barre d'outils du code, sélection de lignes, recherche */
.gitline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 0; padding: 8px 12px; max-width: 100%;
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel); font-size: 13px; color: var(--text-2); }
.gitline .i { width: 16px; height: 16px; color: var(--text-3); }
.git-msg { color: var(--text); font-weight: 450; min-width: 0; overflow-wrap: anywhere; }
.git-meta { color: var(--text-3); }
.codebar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px;
  border-bottom: 1px solid var(--border); background: var(--hover); }
.find { display: flex; align-items: center; gap: 4px; margin: 0; flex: 1 1 260px; min-width: 0; }
.find-field { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; max-width: 340px; }
.find-field .i { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.find-field input, .goto input { width: 100%; height: 30px; padding: 0 8px 0 30px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--panel); font-size: 13px; color: var(--text); }
.find-field input:focus, .goto input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.find-field input::-webkit-search-cancel-button { display: none; }
.find-count { min-width: 64px; font: 500 12px/1 var(--mono); color: var(--text-3); text-align: center; white-space: nowrap; }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .i { width: 16px; height: 16px; }
.goto { margin: 0; }
.goto label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.goto input { width: 84px; padding: 0 8px; font-family: var(--mono); }
.codebar-sel { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--text-3); }
.code tr.sel td { background: var(--target); }
.code tr.sel .ln { color: var(--text-2); background: #f7efd9; }
.code tr.found td.lc { background: #fdf6dd; }
.code tr.found-current td.lc { background: #fbe8a6; }
::highlight(trouve) { background-color: #fde68a; color: inherit; }
::highlight(trouve-actif) { background-color: #f59e0b; color: #1c1917; }
.code .ln a { cursor: pointer; }

/* CSV en tableau */
.csv-scroll { overflow: auto; max-height: calc(100dvh - 250px); }
.csv { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13px; }
.csv th, .csv td { padding: 7px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left;
  white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.csv thead th { position: sticky; top: 0; z-index: 1; background: var(--hover); font-weight: 600; color: var(--text); border-bottom-color: var(--border); }
.csv .csv-n { position: sticky; left: 0; background: #fbfbfa; color: var(--text-4); font: 400 12px/1.5 var(--mono); text-align: right; }
.csv thead .csv-n { z-index: 2; }
.csv tbody tr:hover td { background: var(--hover); }
.csv-foot { margin: 0; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); background: var(--hover); }

/* recherche */
.tabs-search { margin: 12px 0 10px; }
.search-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.filter-wide { width: min(100%, 460px); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: #1c1917; }
.hits { list-style: none; margin: 0; padding: 0; }
.hit-file { border-top: 1px solid var(--line); }
.hit-file:first-child { border-top: 0; }
.hit-name { display: flex; align-items: center; gap: 9px; padding: 10px 16px 6px; font-size: 13.5px; font-weight: 500; color: var(--text); min-width: 0; }
.hit-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-name .i { width: 16px; height: 16px; color: var(--text-3); }
.hit-name:hover .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--field); }
.hit-lines { list-style: none; margin: 0 0 8px; padding: 0 12px 0 16px; }
.hit-lines a { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 3px 6px; border-radius: 6px; }
.hit-lines a:hover { background: var(--hover); }
.hit-ln { font: 400 12px/1.6 var(--mono); color: var(--text-4); text-align: right; }
.hit-code { font: 400 12.5px/1.6 var(--mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.hit-code mark { background: #fde68a; color: var(--text); border-radius: 3px; padding: 0 1px; }

/* aperçu de projet */
.stats-project dd { font-variant-numeric: tabular-nums; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.panel-title { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 11px/1.2 var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-right: 12px; }
.panel-title-row .panel-title { border-bottom: 0; }
.panel-actions { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; }
.ov-list { list-style: none; margin: 0; padding: 6px; }
.ov-list a { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 10px; border-radius: 7px; font-size: 13.5px; color: var(--text); min-width: 0; }
.ov-list a:hover { background: var(--hover); }
.ov-list .i { width: 16px; height: 16px; color: var(--text-3); }
.ov-list .k-dossier { color: #8a6d3b; }
.ov-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-sub { flex: none; font-size: 12px; color: var(--text-3); }
.ov-more a { color: var(--text-3); font-size: 12.5px; }
.ov-readme .md { max-width: none; }

/* sécurité */
.flash { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; }
.flash .i { width: 18px; height: 18px; margin-top: 1px; }
.flash p { margin: 4px 0 0; }
.flash-ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.flash-err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err); }
.sec { margin-bottom: 16px; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.sec-form { padding-bottom: 18px; }
.sec-text { margin: 12px 16px 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.sec-fields { display: grid; gap: 14px; margin: 14px 16px 0; }
.sec-fields .cx-input { height: 38px; font-size: 14px; }
.sec-fields .cx-code { font-size: 15px; }
.sec-fields .btn { justify-self: start; height: 36px; padding: 0 14px; }
.sec-fields .cx-error { margin: 0; }
.sec .codes { margin: 14px 16px 0; }
.sec .cx-warn { margin: 12px 16px 0; }
.form-actions { margin: 12px 16px 0; }
.list-sessions .c-act { width: 130px; text-align: right; }
.list-sessions .c-act form { margin: 0; }
.list-sessions .c-ip { width: 150px; }
.list-sessions .c-date { width: 150px; }
.dev { color: var(--text); font-weight: 450; }
.checks { list-style: none; margin: 0; padding: 6px 16px 12px; }
.checks li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks .i { margin-top: 1px; }
.checks div { display: grid; gap: 2px; font-size: 13.5px; }
.checks span { color: var(--text-3); font-size: 13px; }
.incidents { margin: 0 16px 14px; font-size: 13px; color: var(--text-2); }
.incidents summary { cursor: pointer; color: var(--text-2); }
.incidents ul { margin: 8px 0 0; padding-left: 18px; }

/* fenêtres : aller à un fichier, raccourcis */
.overlay { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px;
  background: rgba(28, 25, 23, 0.28); }
.dialog { width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.finder-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.finder-head .i { color: var(--text-3); }
.finder-head input { flex: 1; min-width: 0; height: 50px; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--text); }
.finder-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.finder-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; min-width: 0; }
.finder-list li .i { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.finder-list li .fn { color: var(--text); font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.lbl-short { display: none; }
.finder-list li .fp { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 3 auto; }
.finder-list li b { font-weight: 600; color: var(--text); background: #fdf1c7; border-radius: 2px; }
.finder-list li[aria-selected="true"] { background: var(--hover-2); }
.finder-foot { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.dialog-help { width: min(520px, 100%); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.keys { margin: 0; padding: 8px 18px 16px; display: grid; }
.keys div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.keys div:first-child { border-top: 0; }
.keys dt { font-size: 12.5px; color: var(--text-3); }
.keys dd { margin: 0; font-size: 13.5px; color: var(--text); }

/* ------------------------------------------------------------------ mobile : tiroir latéral, aucun défilement horizontal */
.only-mobile { display: none; }
@media (max-width: 860px) {
  :root { --top-h: 56px; }
  .only-mobile { display: inline-grid; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar { gap: 8px; padding: 0 12px 0 8px; }
  .brand { width: auto; }
  .brand-group, .brand-sep { display: none; }
  .search { max-width: none; }
  .search input[type="search"] { font-size: 16px; padding-right: 10px; }
  .search-kbd, .ro-pill { display: none; }
  .sidebar { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(86vw, 320px); transform: translateX(-102%);
    transition: transform .18s ease; box-shadow: var(--shadow); visibility: hidden; }
  .sidebar.open { transform: none; visibility: visible; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(28, 25, 23, 0.28); }
  .scrim[hidden] { display: none; }
  .main { grid-row: 2; padding: 12px 16px 40px; }
  .ro-strip { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 12px; color: var(--text-3); }
  .ro-strip .i { width: 14px; height: 14px; }
  .title { font-size: 19px; }
  .filter { width: 100%; }
  .filter input { font-size: 16px; }
  .list .c-size, .list .c-date, .list .c-path, .list .c-count, .list-log .c-detail, .list-log .c-ip { display: none; }
  .list td { padding: 8px 14px; height: auto; }
  .list .sub { display: block; margin: 2px 0 0 28px; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .list-log .c-when { width: 118px; font-size: 11.5px; }
  .list-log .c-event { width: auto; }
  .list-log .sub { margin-left: 0; white-space: normal; overflow-wrap: anywhere; }
  .code { font-size: 12px; line-height: 19px; }
  .code .ln { min-width: 40px; padding: 0 8px 0 10px; }
  .code .lc { padding: 0 14px 0 10px; }
  .md { padding: 20px 18px 28px; font-size: 14.5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .badge-mask { margin-left: 0; margin-top: 6px; }
  .meta .badge-mask { flex-basis: auto; }
  .cx-page { padding-inline: 16px; }
  .cx-top { height: 60px; }
  .cx-main { align-items: flex-start; padding-block: 32px 48px; }
  .cx-panel { padding: 24px 20px; }
  .cx-input { font-size: 16px; }
  .codes { grid-template-columns: 1fr; }
  .codes-actions { flex-direction: column-reverse; }
  .qr svg { width: 200px; height: 200px; }
  .only-mobile-flex { display: flex !important; }
  .portal-btn { display: none; }
  .head-actions { width: 100%; }
  .head-actions .filter { flex: 1 1 180px; width: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 10px; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .pager-info { order: -1; width: 100%; }
  .file-actions { width: 100%; }
  .file-actions .btn span { display: inline; }
  .gitline { font-size: 12.5px; }
  .codebar { gap: 8px; padding: 8px; }
  .find { flex-basis: 100%; }
  .find-field { max-width: none; }
  .codebar-sel { display: none; }
  .csv-scroll { max-height: 70vh; }
  .ov-grid, .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .list-sessions .c-ip, .list-sessions .c-date { display: none; }
  .list-sessions .c-act { width: 112px; }
  .search-inline .filter-wide { width: 100%; }
  .hit-lines { padding: 0 6px 0 8px; }
  .hit-lines a { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .keys div { grid-template-columns: 120px minmax(0, 1fr); }
  .overlay { padding-top: 8vh; }
  .stats-project { grid-template-columns: 1fr 1fr; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .panel-title-row .panel-actions { margin: 0 0 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
