/*
 * Administration — système de design repris de la console TFP (sombre, rose #ff0757, DM Sans + Space Grotesk),
 * avec des tailles de texte lisibles et une mise en page responsive. Aucune dépendance CSS externe.
 */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/vendor/fonts/dm-sans/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  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: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/vendor/fonts/dm-sans/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/vendor/fonts/space-grotesk/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/vendor/fonts/space-grotesk/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: dark;
  --bg: #111114;
  --sidebar: #18181c;
  --topbar: #151519;
  --surface: #1b1b20;
  --surface-2: #202026;
  --raised: #232329;
  --input: #15151a;
  --line: #303037;
  --line-soft: #2a2a32;
  --text: #eeedf2;
  --text-2: #c5c4cf;
  --muted: #8f8f9c;
  --faint: #6d6d7a;
  --accent: #ff0757;
  --accent-hover: #d90046;
  --accent-soft: #ff07571a;
  --accent-text: #ff6b97;
  --green: #80c798;
  --green-bg: #22322a;
  --amber: #e2bb84;
  --amber-bg: #352d22;
  --blue: #8fb6ef;
  --blue-bg: #1f2a3b;
  --red: #f39ab5;
  --red-bg: #3d2431;
  --grey-bg: #2a2a31;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 10px 40px #0007;
  --sidebar-w: 236px;
  --topbar-h: 68px;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
p a, .link, td a.link { color: var(--accent-text); }
p a:hover, .link:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
img, svg, video, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--raised); padding: 1px 5px; border-radius: 4px; color: var(--text-2); }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 11px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
::selection { background: #ff075755; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-fill { fill: currentColor; stroke: none; }

.sr-only, .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ Structure */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-w);
  background: var(--sidebar); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 24px 14px 18px; overflow-y: auto;
}
.brand { display: flex; align-items: baseline; gap: 10px; padding: 0 10px; margin-bottom: 26px; }
.brand-mark { font: 700 34px/.9 var(--display); letter-spacing: -2px; color: var(--text); }
.brand-mark b { color: var(--accent); font-weight: 700; }
.brand-sub { color: var(--muted); font-size: 13px; }
.nav-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 20px 12px 8px; }
.nav-label:first-of-type { margin-top: 0; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0;
  border-radius: var(--radius-sm); color: #a3a3b0; font-size: 14px;
}
.nav-item:hover { background: #25252b; color: var(--text); }
.nav-item[aria-current='page'] { background: var(--accent-soft); color: var(--accent-text); }
.nav-item[aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--muted); background: #2c2c35; padding: 1px 7px; border-radius: 10px; }
.nav-item .count.alert { background: var(--red-bg); color: var(--red); }
.sidebar-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 12px; }
.disk-mini { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 12px; color: var(--muted); }
.disk-mini strong { display: flex; justify-content: space-between; color: var(--text-2); font-weight: 500; margin-bottom: 7px; }
.meter { height: 5px; background: #2b2b33; border-radius: 4px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.meter > i.warn { background: var(--amber); }
.meter > i.danger { background: var(--accent); }
.sidebar-link { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: var(--muted); }
.sidebar-link:hover { color: var(--text); }

.main-col { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); padding: 0 28px; gap: 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--topbar) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; }
.breadcrumb .sep { color: #4d4d59; }
.breadcrumb strong { color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle { display: none; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: 12px; color: var(--muted); }
.lang-switch a:hover { color: var(--text); background: #25252b; }
.lang-switch a[aria-current='true'] { background: #2f2530; color: var(--accent-text); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: #9a9aa7;
}
.icon-btn:hover { background: #2c2c34; color: var(--text); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--topbar); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #4a3443; background: #382633; color: #f48db2; font-weight: 700; font-size: 13px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 240px; max-width: min(380px, 90vw);
  background: #1c1b22; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.menu-panel .menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.menu-panel .menu-head strong { display: block; color: var(--text); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: none; text-align: left; font-size: 14px; color: var(--text-2); }
.menu-item:hover { background: #2a2a32; color: var(--text); }
.activity-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.activity-list li { display: flex; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-2); }
.activity-list li + li { border-top: 1px solid var(--line-soft); }
.activity-list time { display: block; color: var(--faint); font-size: 12px; }
.activity-list .icon { color: var(--muted); margin-top: 2px; }

.page { width: 100%; max-width: 1480px; margin: 0 auto; padding: 30px 28px 48px; flex: 1; }
.app-footer { padding: 16px 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ En-tête de page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.page-head h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.04em; margin: 4px 0 6px; }
.page-head p { color: var(--muted); font-size: 14px; max-width: 760px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.back-link:hover { color: var(--text); }

/* ------------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 15px;
  border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.secondary { background: #222228; border-color: #393941; color: var(--text-2); }
.btn.secondary:hover { background: #2e2e36; color: var(--text); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: #26262d; color: var(--text); }
.btn.danger { background: transparent; border-color: #5b2a3c; color: var(--red); }
.btn.danger:hover { background: var(--red-bg); color: #ffc7d7; }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 13px; font-weight: 500; }
.btn.xs { min-height: 26px; padding: 2px 8px; font-size: 12px; font-weight: 500; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-row.end { justify-content: flex-end; }
form.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------------ Panneaux et grilles */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; letter-spacing: -.02em; }
.panel-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.panel-body { padding: 0 20px 20px; }
.panel-body.flush { padding: 0; }
.panel-foot { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.panel > .table-wrap:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* ------------------------------------------------------------------ Indicateurs */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metrics.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.metric-top .icon { color: #777786; }
.metric-value { display: block; font: 500 30px/1.1 var(--display); letter-spacing: -.04em; margin: 12px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--muted); }
.ok-text { color: var(--green); }
.err-text { color: var(--red); }
.warn-text { color: var(--amber); }

/* ------------------------------------------------------------------ Graphiques (SVG rendu côté serveur) */
.chart { padding: 6px 16px 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #2b2b33; stroke-width: 1; }
.chart .axis { fill: var(--faint); font: 11px var(--font); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.alt { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .area { fill: url(#chart-fill); }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .bar { fill: var(--accent); opacity: .85; }
.chart .bar:hover { opacity: 1; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.chart-legend i.alt { background: var(--blue); }
.bar-list { display: grid; gap: 12px; }
.bar-list .bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 13px; }
.bar-list .bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bar-list .bar-row > span:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-list .bar-track { grid-column: 1 / -1; height: 6px; background: #2b2b33; border-radius: 4px; overflow: hidden; }
.bar-list .bar-track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff5c8e); border-radius: 4px; }
.spark { width: 100%; height: 36px; display: block; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; }

/* ------------------------------------------------------------------ Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .02em; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
td { padding: 12px 16px; color: var(--text-2); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td { background: #1f1f25; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nowrap, .nowrap { white-space: nowrap; }
tfoot td { font-weight: 600; color: var(--text); background: var(--surface-2); border-top: 1px solid var(--line); }
th a.sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
th a.sort:hover { color: var(--text); }
th a.sort[aria-sort] { color: var(--accent-text); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.cell-media { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-media .title { font-weight: 500; color: var(--text); }
.cell-media small, .sub { display: block; color: var(--faint); font-size: 12px; }
tr.disabled > td { opacity: .55; }
.table-empty { padding: 28px 20px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------------ Badges, puces */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; border: 1px solid transparent;
  font-size: 12px; line-height: 1.4; white-space: nowrap; background: var(--grey-bg); color: #a7a6b3;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.ready, .badge.done, .badge.published, .badge.active, .badge.ok { background: var(--green-bg); color: #a7d6b6; }
.badge.processing, .badge.running, .badge.queued, .badge.info { background: var(--blue-bg); color: var(--blue); }
.badge.uploaded, .badge.draft, .badge.warn, .badge.pending { background: var(--amber-bg); color: var(--amber); }
.badge.archived, .badge.paused, .badge.disabled, .badge.off { background: var(--grey-bg); color: #9d9ca9; }
.badge.error { background: var(--red-bg); color: var(--red); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px; border-radius: 6px; border: 1px solid #3a3a44;
  background: #24242b; color: var(--text-2); font-size: 12px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.chip:hover { border-color: #55555f; color: var(--text); }
.chip.person { border-color: #33476a; background: #1d2636; color: #a9c6f3; }
.chip.country { border-color: #2f5540; background: #1c2c23; color: #a6d8b8; }
.chip.edition { border-color: #5d4630; background: #2e241b; color: #ecc49b; }
.chip.practice { border-color: #4b3a63; background: #241d31; color: #cdb5f2; }
.chip.is-active { box-shadow: 0 0 0 1px currentColor inset; }
.chip .x { opacity: .7; margin-left: 2px; }
.chip .n { color: var(--faint); font-size: 11px; }
.chip-line { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.feat { font-size: 12px; color: var(--faint); align-self: center; }

/* ------------------------------------------------------------------ Formulaires */
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; align-content: start; }
.field > label, .field > .label, legend { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field .hint, .hint { font-size: 12px; color: var(--faint); }
.field .error, .field-error { font-size: 12px; color: var(--red); }
input:not([type]), input[type='text'], input[type='search'], input[type='url'], input[type='email'], input[type='password'], input[type='number'],
input[type='date'], input[type='time'], input[type='month'], select, textarea {
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid #36363f; border-radius: var(--radius-sm);
  background: var(--input); color: var(--text); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
textarea.code { font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: #c4406d; box-shadow: 0 0 0 3px #ff07571f; }
input::placeholder, textarea::placeholder { color: #6a6a76; }
input[readonly], textarea[readonly] { color: var(--text-2); background: #18181d; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: #b8476c; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8f9c' 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 10px center; background-size: 16px; }
input[type='color'] { width: 46px; height: 40px; padding: 3px; border: 1px solid #36363f; border-radius: var(--radius-sm); background: var(--input); cursor: pointer; }
input[type='file'] { font-size: 13px; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-section { font: 600 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 8px 0 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; }
.check small { display: block; color: var(--faint); font-size: 12px; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.switch-row:last-child { border-bottom: 0; }
.switch-row > div { min-width: 0; }
.switch-row strong { display: block; font-weight: 500; color: var(--text); font-size: 14px; }
.switch-row small { display: block; color: var(--faint); font-size: 12px; }
input.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 22px; background: #44434f; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
input.switch::before { content: ''; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #c5c1cf; transition: transform .2s, background .2s; }
input.switch:checked { background: var(--accent); }
input.switch:checked::before { transform: translateX(16px); background: #fff; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice-card { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; background: var(--surface-2); cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { display: block; font-weight: 500; font-size: 14px; color: var(--text); }
.choice-card small { display: block; color: var(--faint); font-size: 12px; margin-top: 3px; }
.choice-card:has(input:checked) { border-color: var(--accent); background: #26161f; }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.input-group { display: flex; gap: 8px; }
.input-group > input, .input-group > select { flex: 1; }
.search-field { position: relative; flex: 1; min-width: 200px; max-width: 460px; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-field input { padding-left: 38px; }
.search-field kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ Avis, alertes, notifications */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 15px; margin-bottom: 18px; border: 1px solid #34343e; border-radius: var(--radius-sm); background: #1e1e26; color: var(--text-2); font-size: 14px; }
.notice > .icon { margin-top: 2px; color: var(--muted); }
.notice.ok { border-color: #2f4a3a; background: #1c2a22; color: #c6e5d1; }
.notice.ok > .icon { color: var(--green); }
.notice.err { border-color: #5b2a3c; background: #2a1820; color: #ffc4d4; }
.notice.err > .icon { color: var(--red); }
.notice.warn { border-color: #57462b; background: #29231a; color: #f1d7b1; }
.notice.warn > .icon { color: var(--amber); }
.notice .notice-close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; padding: 0 2px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toasts .notice { margin: 0; box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ Onglets, segments, pagination */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current='page'] { color: var(--text); border-bottom-color: var(--accent); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.segmented a, .segmented button { padding: 7px 12px; font-size: 13px; color: var(--muted); background: none; border: 0; border-right: 1px solid var(--line); }
.segmented > :last-child { border-right: 0; }
.segmented a:hover, .segmented button:hover { color: var(--text); background: #2a2a31; }
.segmented [aria-current='true'], .segmented [aria-pressed='true'] { color: var(--text); background: #33242e; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px; font-size: 13px; color: var(--muted); }
.pagination .pages { display: flex; gap: 6px; align-items: center; }
.pagination a, .pagination span.cur { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pagination a:hover { border-color: #52525c; color: var(--text); }
.pagination span.cur { border-color: var(--accent); color: var(--text); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ------------------------------------------------------------------ Médiathèque */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 4px; margin-bottom: 16px; }
.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 14px; }
.filter-grid .field { margin-bottom: 12px; }
.filter-grid .field > label { font-size: 12px; color: var(--muted); font-weight: 400; }
.filter-grid .span-2 { grid-column: span 2; }
.filter-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line-soft); padding: 12px 0; }
details.filters > summary { list-style: none; }
details.filters > summary::-webkit-details-marker { display: none; }
.active-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.result-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.result-line strong { color: var(--text); font-weight: 600; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.media-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, transform .15s; }
.media-card:hover { border-color: #46464f; }
.media-card.selected, .media-card:has(.select-box:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.media-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0e0e12 center / cover no-repeat; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.media-card:hover .media-thumb img { transform: scale(1.03); }
.media-thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #4e4e5a; }
.media-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #000a, transparent 45%); pointer-events: none; }
.thumb-badge { position: absolute; z-index: 2; font-size: 11px; padding: 2px 7px; border-radius: 4px; background: #0d0d12c4; color: #e6e3ea; backdrop-filter: blur(4px); }
.thumb-badge.tl { top: 9px; left: 9px; }
.thumb-badge.tr { top: 9px; right: 9px; }
.thumb-badge.bl { bottom: 9px; left: 9px; }
.thumb-badge.br { bottom: 9px; right: 9px; font-variant-numeric: tabular-nums; }
.select-box { position: absolute; z-index: 3; top: 9px; left: 9px; width: 18px; height: 18px; margin: 0; opacity: 0; transition: opacity .15s; }
.media-card:hover .select-box, .select-box:checked, .select-box:focus-visible, .selecting .select-box { opacity: 1; }
.media-card:has(.select-box) .thumb-badge.tl { left: 36px; }
.fav-btn { position: absolute; z-index: 3; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #0d0d1299; color: #d8d6de; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.fav-btn.on, .media-card:hover .fav-btn, .fav-btn:focus-visible { opacity: 1; }
.fav-btn.on { color: #ffc84a; }
.fav-btn.on .icon { fill: currentColor; }
.media-card-body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.media-card-body h3 { font: 500 14px/1.4 var(--font); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card-body .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--faint); font-size: 12px; }
.counters { display: flex; gap: 12px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.counters span { display: inline-flex; align-items: center; gap: 4px; }
.thumb { width: 96px; height: 54px; border-radius: 5px; object-fit: cover; background: #0e0e12; flex: none; display: block; }
.thumb.placeholder { display: grid; place-items: center; color: #4e4e5a; font-size: 11px; }
.bulk-bar {
  position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px;
  padding: 10px 14px; border: 1px solid #6c344e; border-radius: var(--radius); background: #2c1b26f2; color: #f3b5ca; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.bulk-bar strong { margin-right: auto; font-weight: 600; }
.bulk-bar select { min-height: 32px; width: auto; padding: 4px 30px 4px 10px; font-size: 13px; }
.bulk-bar input[type='text'] { min-height: 32px; width: 200px; padding: 4px 10px; font-size: 13px; }

/* ------------------------------------------------------------------ Fiche média */
.preview-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.preview-frame.portrait { aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; }
.preview-frame.square { aspect-ratio: 1; max-height: 70vh; margin: 0 auto; }
.preview-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview-photo { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; background: #000; }
dl.kv { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.code-box { position: relative; }
.code-box textarea, .code-box pre { width: 100%; margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; background: #131317; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: #d6d3df; white-space: pre-wrap; word-break: break-all; }
.code-box .copy { position: absolute; top: 8px; right: 8px; }
pre.log { max-height: 340px; overflow: auto; background: #101013; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-size: 12px; color: #b9b6c3; white-space: pre-wrap; }
.url-list { display: grid; gap: 8px; }
.url-list .url-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.url-row input { min-height: 34px; font-size: 12.5px; font-family: var(--mono); }
progress { width: 100%; max-width: 160px; height: 6px; border: 0; border-radius: 4px; background: #2b2b33; overflow: hidden; vertical-align: middle; appearance: none; }
progress::-webkit-progress-bar { background: #2b2b33; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.progress-cell { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------------ Créateurs */
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.creator-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; align-content: start; }
.creator-card:hover { border-color: #46464f; }
.creator-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.creator-head h3 { font: 600 16px/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-head .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creator-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #3b2134, #1f1d33); color: #f6a5c4; font: 600 18px var(--display); border: 1px solid #4a3443; }
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.stat-row > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; }
.stat-row small { display: block; color: var(--faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-row strong { display: block; font: 500 16px var(--display); white-space: nowrap; }

/* ------------------------------------------------------------------ Répertoire de tags */
.taxonomy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud .chip { font-size: 13px; }
.tag-table td:first-child { width: 40%; }

/* ------------------------------------------------------------------ Lecteur : aperçu */
.player-art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: radial-gradient(ellipse at 63% 78%, var(--player-accent, #ff0757) 0, #751e51 23%, #271e3d 60%, #111224 90%); }
.player-art .play-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 14px; border-radius: 999px; background: var(--player-accent, #ff0757); color: #fff; font-weight: 600; box-shadow: 0 4px 24px #0008; white-space: nowrap; }
.player-art .play-pill.round { width: 64px; height: 64px; padding: 0; justify-content: center; }
.player-art .play-pill::before { content: ''; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
.player-art .bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 4px; border-radius: 4px; background: #ffffff33; }
.player-art .bar i { display: block; width: 38%; height: 100%; border-radius: 4px; background: var(--player-accent, #ff0757); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.swatches button:hover, .swatches button[aria-pressed='true'] { border-color: #fff; }

/* ------------------------------------------------------------------ Publicité */
.format-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.format-tile { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.format-tile[aria-current='true'] { border-color: var(--accent); background: #26161f; }
.format-tile .icon-wrap { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.format-tile strong { display: block; font: 600 16px var(--display); }
.format-tile small { color: var(--faint); font-size: 12px; }
.format-tile .big { margin-left: auto; font: 500 26px var(--display); }

/* ------------------------------------------------------------------ Imports */
.drop-zone { border: 1.5px dashed #46464f; border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: #18181d; min-width: 0; }
.drop-zone input[type='file'] { max-width: 100%; }
.drop-zone.over { border-color: var(--accent); background: #26161f; }
.import-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.import-counts > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.import-counts small { display: block; color: var(--faint); font-size: 12px; }
.import-counts strong { font: 500 20px var(--display); }
.error-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 13px; color: var(--red); max-height: 260px; overflow: auto; }

/* ------------------------------------------------------------------ États vides, modales, divers */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: #55555f; margin-bottom: 10px; stroke-width: 1.4; }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty p { max-width: 460px; margin: 0 auto 16px; }
dialog.modal { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 12px; padding: 0; background: #1c1b22; color: var(--text); box-shadow: var(--shadow); }
dialog.modal.wide { width: min(820px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: #07060bba; backdrop-filter: blur(4px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 18px 20px; max-height: 70vh; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
details.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
details.disclosure > summary { cursor: pointer; padding: 11px 14px; font-size: 14px; color: var(--text-2); }
details.disclosure[open] > summary { border-bottom: 1px solid var(--line); }
details.disclosure > div { padding: 14px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbd-hint { font-size: 12px; color: var(--faint); }
.qr { background: #fff; padding: 10px; border-radius: var(--radius-sm); width: 240px; max-width: 100%; }
.secret { font-family: var(--mono); letter-spacing: .08em; font-size: 15px; word-break: break-all; }

/* ------------------------------------------------------------------ Authentification */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% -10%, #3a1328 0, transparent 55%), var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; padding: 0; margin-bottom: 22px; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-card > p { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth-foot { margin-top: 18px; display: flex; justify-content: center; }
.otp-input { text-align: center; letter-spacing: .5em; font: 600 22px var(--mono); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1400px) {
  .metrics.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  :root { --sidebar-w: 212px; }
  .grid-main, .grid-side { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  #nav-toggle:checked ~ .shell .sidebar { transform: none; box-shadow: var(--shadow); }
  #nav-toggle:checked ~ .shell .nav-shade { display: block; }
  .nav-shade { display: none; position: fixed; inset: 0; z-index: 25; background: #0009; }
  .main-col { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .page { padding: 22px 16px 40px; }
  .grid-2, .grid-3, .form-grid, .form-grid.three { grid-template-columns: minmax(0, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-md { display: none !important; }
  .page-head h1 { font-size: 26px; }
}
@media (max-width: 560px) {
  .metrics, .metrics.five { grid-template-columns: minmax(0, 1fr); }
  .filter-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-grid .span-2 { grid-column: auto; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .url-list .url-row { grid-template-columns: minmax(0, 1fr) auto; }
  .url-list .url-row > span { grid-column: 1 / -1; }
  .hide-sm { display: none !important; }
  .breadcrumb .crumb-root, .breadcrumb .sep { display: none; }
  .topbar-right { gap: 6px; }
  dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  .bulk-bar input[type='text'] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ Éditeur de tags (public/admin/tags.js) */
.tag-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 4px 6px; border: 1px solid #36363f; border-radius: var(--radius-sm); background: var(--input); cursor: text; }
.tag-box:focus-within { border-color: #c4406d; box-shadow: 0 0 0 3px #ff07571f; }
.tag-box > input[type='text'] { flex: 1; min-width: 120px; border: 0; background: transparent; min-height: 30px; padding: 2px 4px; box-shadow: none; }
.tag-chips { display: contents; list-style: none; margin: 0; padding: 0; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 9px; border-radius: 6px; border: 1px solid #3a3a44; background: #24242b; color: var(--text-2); font-size: 12.5px; line-height: 1.7; }
.tag-chip.tag-person { border-color: #33476a; background: #1d2636; color: #a9c6f3; }
.tag-chip.tag-country { border-color: #2f5540; background: #1c2c23; color: #a6d8b8; }
.tag-chip.tag-edition { border-color: #5d4630; background: #2e241b; color: #ecc49b; }
.tag-chip.tag-practice { border-color: #4b3a63; background: #241d31; color: #cdb5f2; }
.tag-chip.tag-invalid { border-style: dashed; border-color: var(--red); color: var(--red); }
.tag-remove { width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: inherit; opacity: .75; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.tag-remove:hover { opacity: 1; background: #ffffff14; }
.uppy-Dashboard-inner { border-color: var(--line) !important; background-color: var(--surface-2) !important; }
.uppy-Dashboard-browse, .uppy-Dashboard-browse:hover { color: var(--accent) !important; }
.bulk-bar[hidden] { display: none !important; }
