/* Jetons et contrôles de la charte « Corporate 2 » (docs/charte.md, maquettes/identite-visuelle.html). */
:root {
  --bg: #f5f7fa; --surface: #ffffff; --surface-2: #f0f3f7; --hover: #eef2f6; --selected: #e8f0f9;
  --text: #0b1f3a; --text-2: #5a6b80; --text-3: #8795a7;
  --border: #e3e8ee; --border-strong: #c5ced9;
  --primary: #0b1f3a; --primary-text: #ffffff; --primary-hover: #17305a;
  --accent: #2f6fad; --accent-soft: #e8f0f9; --focus: #3b82c4;
  --brand: #cc8400;
  --ok: #1e8e5a; --ok-bg: #e1f0e8; --ok-text: #155a38;
  --warn: #b7791f; --warn-bg: #fbf0dc; --warn-text: #7a4f12;
  --info-bg: #e3eef8; --info-text: #1f5a8f;
  --danger: #c8372d; --danger-bg: #fbe4e2; --danger-text: #8a231c;
  --shadow-float: 0 8px 24px rgba(11, 31, 58, 0.12), 0 1px 3px rgba(11, 31, 58, 0.08);
  --veil: rgba(11, 31, 58, 0.4);
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a6b80' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  --r-sm: 4px; --r: 6px; --r-lg: 10px;
  --h: 36px; --h-sm: 28px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #081628; --surface: #0f2340; --surface-2: #13294a; --hover: #163052; --selected: #18365e;
  --text: #e8eef5; --text-2: #9aaabd; --text-3: #6f8199;
  --border: #1f3657; --border-strong: #2d4a70;
  --primary: #e8eef5; --primary-text: #0b1f3a; --primary-hover: #ffffff;
  --accent: #6aa8e0; --accent-soft: #18365e; --focus: #6aa8e0;
  --brand: #f2a81d;
  --ok: #3cb37a; --ok-bg: #12362a; --ok-text: #8fdcb3;
  --warn: #e0a243; --warn-bg: #3a2c12; --warn-text: #f1cd8c;
  --info-bg: #163052; --info-text: #9cc6ee;
  --danger: #e5594f; --danger-bg: #3d1a1a; --danger-text: #f4aaa4;
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.45);
  --veil: rgba(0, 0, 0, 0.55);
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aaabd' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #081628; --surface: #0f2340; --surface-2: #13294a; --hover: #163052; --selected: #18365e;
    --text: #e8eef5; --text-2: #9aaabd; --text-3: #6f8199;
    --border: #1f3657; --border-strong: #2d4a70;
    --primary: #e8eef5; --primary-text: #0b1f3a; --primary-hover: #ffffff;
    --accent: #6aa8e0; --accent-soft: #18365e; --focus: #6aa8e0;
    --brand: #f2a81d;
    --ok: #3cb37a; --ok-bg: #12362a; --ok-text: #8fdcb3;
    --warn: #e0a243; --warn-bg: #3a2c12; --warn-text: #f1cd8c;
    --info-bg: #163052; --info-text: #9cc6ee;
    --danger: #e5594f; --danger-bg: #3d1a1a; --danger-text: #f4aaa4;
    --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.45);
    --veil: rgba(0, 0, 0, 0.55);
    --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aaabd' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
::selection { background: var(--accent-soft); color: var(--text); }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
h1 { font-size: 26px; font-weight: 500; line-height: 1.2; margin: 0 0 8px; }
.lead { color: var(--text-2); margin: 0; }
.muted { color: var(--text-2); font-size: 13px; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }

.wordmark { display: inline-flex; align-items: baseline; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark .wm-l { display: inline-block; }
.wordmark .wm-i { position: relative; }
.wordmark .wm-dot { position: absolute; left: 50%; top: 0.06em; width: 0.13em; height: 0.13em; margin-left: -0.065em; background: currentColor; }
.wordmark .wm-last .wm-dot { background: var(--brand); }

/* Boutons : quatre styles, deux hauteurs. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 16px;
  font: inherit; font-size: 14px; font-weight: 500; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.12s, border-color 0.12s;
}
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--hover); }
.btn-publish { background: #b45309; color: #fff; }
.btn-publish:hover { background: #92400e; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 88%, #000); }
.btn-danger-outline { background: var(--surface); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.btn-danger-outline:hover { background: var(--danger-bg); }
.btn-danger-ghost { background: transparent; color: var(--danger-text); }
.btn-danger-ghost:hover { background: var(--danger-bg); }

/* Application marks: a coloured round with a white pictogram (charte, « Icônes d'applications »). */
.app-dot { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; }
.app-dot .i { width: 18px; height: 18px; stroke-width: 2; }
.app-dot.sm { width: 22px; height: 22px; }
.app-dot.sm .i { width: 12px; height: 12px; }
.app-image { background: #f0a92e; }
.app-video { background: #7b5cc4; }
.app-composition { background: #4f6bed; }
.btn-small { height: var(--h-sm); padding: 0 10px; font-size: 13px; gap: 6px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--h-sm); height: var(--h-sm); padding: 0; border-radius: var(--r);
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; background: transparent; }
.link, .link-button { color: var(--accent); text-decoration: none; font-size: 13px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Champs : même hauteur, même rayon, même contour. */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: 13px; color: var(--text-2); }
.field :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not(.stepper-value)), .field select, .field textarea, .input {
  height: var(--h); width: 100%; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 0 12px;
}
.field select, select.input { appearance: none; padding-right: 36px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; }
.field input:hover, .field select:hover { border-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus);
}
.field input:disabled, .field select:disabled { background: var(--surface-2); color: var(--text-3); }
.field .hint { font-size: 12px; color: var(--text-2); }
.field.invalid input, .field.invalid select, .field.invalid .stepper { border-color: var(--danger); }
.field .error { font-size: 12px; color: var(--danger-text); }
.field .meta { display: flex; justify-content: space-between; gap: 12px; }
.field .counter { font-size: 12px; color: var(--text-2); }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix span { color: var(--text-2); font-size: 13px; }

/* Champ numérique − valeur + (Linkivi.Ui/Stepper.razor, app.js). */
.stepper { display: inline-flex; align-items: stretch; height: var(--h); border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); overflow: hidden; align-self: flex-start; }
.stepper:focus-within { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
.stepper button { width: 34px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.stepper button:hover { background: var(--hover); color: var(--text); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; background: transparent; }
.stepper button:focus-visible { outline: none; background: var(--hover); }
.field .stepper input.stepper-value, .stepper input.stepper-value {
  width: 64px; height: auto; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0;
  background: transparent; text-align: center; font-size: 14px; padding: 0 4px; outline: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums;
}
.stepper .stepper-unit { display: flex; align-items: center; padding: 0 10px; font-size: 13px; color: var(--text-2); border-right: 1px solid var(--border); }

/* Cases, boutons radio, listes de choix. */
input[type=checkbox], input[type=radio] {
  appearance: none; margin: 0; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--border-strong);
  background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle;
}
input[type=checkbox] { border-radius: var(--r-sm); }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked { background: var(--primary) var(--check-mark) center / 12px no-repeat; border-color: var(--primary); }
input[type=radio]:checked { border: 5px solid var(--primary); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choice legend { font-size: 13px; color: var(--text-2); padding: 0; margin-bottom: 4px; }
.choice-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; }
.choice-option:hover { background: var(--hover); }
.choice-option:has(input:checked) { border-color: var(--focus); background: var(--selected); }
.choice-option input { margin-top: 2px; }
.choice-option b { display: block; font-weight: 500; }
.choice-option .hint { display: block; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.choice .error { font-size: 12px; color: var(--danger-text); }
.choice > .hint { font-size: 12px; color: var(--text-2); }
.zone-checks { display: flex; flex-direction: column; gap: 8px; margin-left: 30px; }
.zone-checks label { display: flex; gap: 10px; align-items: center; }

/* Liste déroulante redessinée (app.js remplace la liste du navigateur). */
.select { position: relative; }
.select-button {
  display: flex; align-items: center; gap: 8px; width: 100%; height: var(--h); padding: 0 36px 0 12px; font: inherit; font-size: 14px;
  color: var(--text); text-align: left; background: var(--surface) var(--chevron) right 12px center no-repeat;
  border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer;
}
.select-button.compact { height: var(--h-sm); font-size: 13px; }
.select-button:hover { border-color: var(--text-3); }
.select-button:focus-visible, .select-button[aria-expanded="true"] { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
.select-button:disabled { background-color: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
.select-button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow: auto; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
}
.select-list li { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: var(--r-sm); font-size: 14px; cursor: pointer; }
.select-list li[aria-selected="true"] { font-weight: 500; }
.select-list li[aria-selected="true"]::after { content: ""; margin-left: auto; width: 14px; height: 14px; background: var(--text); -webkit-mask: var(--check-mark) center / 14px no-repeat; mask: var(--check-mark) center / 14px no-repeat; }
.select-list li.active { background: var(--hover); }
.select-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* Import de fichiers. */
.file-drop { border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; background: var(--surface-2); }
.file-drop.over { border-color: var(--focus); background: var(--selected); }
.file-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop .file-names { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.file-drop:focus-within .btn { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Pastilles d'état, étiquettes, messages. */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-ok { background: var(--ok-bg); color: var(--ok-text); }
.tag-warn { background: var(--warn-bg); color: var(--warn-text); }
.tag-sync { background: var(--info-bg); color: var(--info-text); }
.tag-off { background: var(--danger-bg); color: var(--danger-text); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 400; }
.alert { font-size: 13px; padding: 12px 14px; border-radius: var(--r); line-height: 1.45; margin: 0; }
.alert-error { background: var(--danger-bg); color: var(--danger-text); }
.alert-success { background: var(--ok-bg); color: var(--ok-text); }
.alert-warn { background: var(--warn-bg); color: var(--warn-text); }
.alert .row-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty { background: var(--surface); border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty b { font-weight: 500; font-size: 16px; }
.empty p { margin: 0; color: var(--text-2); font-size: 14px; max-width: 420px; line-height: 1.5; }
.empty .empty-icon { width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.empty .empty-icon .i { width: 24px; height: 24px; }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; font-size: 13px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.file-drop .empty-icon { width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--surface); display: grid; place-items: center; color: var(--text-2); }
.file-drop b { font-weight: 500; }
.field.search { position: relative; }
.field.search > .i { position: absolute; left: 12px; top: 10px; color: var(--text-3); pointer-events: none; }
.field.search input[type=search] { padding-left: 36px; }
.select-list .select-filter { width: 100%; height: 32px; margin-bottom: 6px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); outline: 0; }
.select-list .select-filter:focus { border-color: var(--focus); }
.select-list ul { list-style: none; margin: 0; padding: 0; }
.select-list li[hidden] { display: none; }
/* Rich list (select-rich): a picture and two lines for each choice. */
.select-button.rich { height: 48px; padding-left: 6px; }
.select-button.rich > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.select-button .select-thumb, .select-thumb { flex: none; width: 52px; height: 34px; border-radius: 4px; overflow: hidden; background: #111821; display: grid; place-items: center; }
.select-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.select-thumb:empty::after { content: ""; width: 22px; height: 3px; border-radius: 2px; background: #f2a81d; }
.select-button .select-text, .select-text { flex: 1; display: flex; flex-direction: column; min-width: 0; text-align: left; }
.select-text b, .select-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-text b { font-weight: 500; }
.select-text small { font-size: 12px; color: var(--text-2); font-weight: 400; }
.select-list li .select-thumb { width: 44px; height: 28px; }
.select-list li:has(.select-thumb) { min-height: 44px; }

/* Filtres en pastilles (Tout / Images / Vidéos) et barre d'avancement (envoi, conversion). */
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { height: var(--h-sm); padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip:hover { background: var(--hover); }
.chip[aria-current="page"] { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.progress { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--focus); border-radius: 3px; transition: width 0.3s; }

/* Messages en pop-up (charte « Messages ») : app.js place ici les messages d'une page ; ils partent seuls. */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toasts .alert { pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-float); animation: toast-in 0.2s ease-out; }
.toasts .alert > :first-child { flex: 1; min-width: 0; }
.toasts .alert.leaving { opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s; }
.toast-close { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 0; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.toast-close:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.toast-close::before { content: "\00d7"; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .toasts .alert { animation: none; } .toasts .alert.leaving { transition: none; } }

/* Where an item is used: tag and bubble (interface.md, rule 12) */
.usage { position: relative; z-index: 1; display: inline-flex; align-self: flex-start; }
.usage-tag { border: 0; font: inherit; font-size: 12px; font-weight: 500; }
.usage-tag .i { width: 14px; height: 14px; }
button.usage-tag { cursor: pointer; }
button.usage-tag:hover { filter: brightness(0.97); }
button.usage-tag:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.usage-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: -8px; width: min(280px, calc(100vw - 32px)); display: none; flex-direction: column; gap: 6px; padding: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(11, 31, 58, 0.18); font-size: 13px; text-align: left; }
.usage-pop::before { content: ""; position: absolute; top: -6px; left: 22px; width: 10px; height: 10px; background: var(--surface); border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong); transform: rotate(45deg); }
.usage-pop::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.usage:hover .usage-pop, .usage:focus-within .usage-pop { display: flex; }
.usage-pop-title { font-weight: 500; font-size: 12px; color: var(--text-2); }
.usage-rows { display: flex; flex-direction: column; }
.usage-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px; margin: 0 -6px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
.usage-row:hover, .usage-row:focus-visible { background: var(--surface-2); }
.usage-row .i { width: 14px; height: 14px; color: var(--text-2); }
.usage-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.usage-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.usage-sub.is-none { color: var(--text-3); }
.usage-dot { width: 8px; height: 8px; border-radius: 50%; justify-self: center; }
.dot-ok { background: var(--ok); }
.dot-off { background: var(--danger); }
.dot-wait { background: var(--warn); }
.usage-more, .usage-note { font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 8px; }
.usage-note { color: var(--text-3); }
.tabs-sep { width: 1px; align-self: center; height: 18px; background: var(--border-strong); flex: none; }
.settings-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: start; }
