/* Kanbios UI theme « amalti » — primary #FEF047, secondary #FEF047 — shape sharp, font geist, density compact, depth flat, neutral cool, motion subtle (personality encre) (generated by createTheme) */
[data-brand="amalti"] {
  --bg: #F0F5F9;
  --surface: #FFFFFF;
  --surface-2: #ECF1F5;
  --line: #D9E1EA;
  --line-strong: #868D95;
  --line-2: #E9EEF2;
  --ink: #111418;
  --ink-2: #3A4148;
  --mute: #60676F;
  --dot-neutral: #60676F;
  --brand: #998F12;
  --on-brand: #FFFFFF;
  --brand-strong: #7F7709;
  --brand-50: #FAF8E1;
  --brand-100: #EDE9B3;
  --brand-ink: #706910;
  --brand-400: #C8BC22;
  --brand-300: #FFFFFD;
  --accent: #FEF047;
  --on-accent: #141414;
  --accent-50: #FAF8E1;
  --accent-100: #EDE9B3;
  --accent-ink: #706910;
  --accent-400: #C8BC22;
  --accent-300: #FFFFFD;
  --toast-action: #FFFFFD;
  --avatar-1: #7F7709;
  --shell: #1F2322;
  --shell-raised: #292D2C;
  --shell-hover: #2B2F2E;
  --shell-divider: #2E3231;
  --shell-active: #333736;
  --shell-line: #353938;
  --shell-ring: #3F4443;
  --shell-accent: #3D4140;
  --shell-ink: #F4F4F4;
  --shell-ink-2: #BABFBE;
  --shell-label: #8F9493;
  --shell-mute: #929796;
  --shell-count: #FFFFFD;
  --radius-badge: 2px;
  --radius-chip: 2px;
  --radius-control-sm: 2px;
  --radius-control: 2px;
  --radius-inner: 2px;
  --radius-tile: 4px;
  --radius-card: 4px;
  --font-sans: "Geist", system-ui, sans-serif;
  --control-sm: 28px;
  --control-md: 32px;
  --control-lg: 34px;
  --row-compact: 30px;
  --row-default: 36px;
  --row-comfortable: 44px;
  --duration-instant: 80ms;
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 280ms;
  --duration-exit-fast: 90ms;
  --duration-exit: 130ms;
  --duration-stamp: 180ms;
  --duration-settle: 560ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: none;
}
[data-theme="dark"] [data-brand="amalti"], [data-theme="dark"][data-brand="amalti"] {
  --bg: #111418;
  --surface: #181C20;
  --surface-2: #1D2329;
  --line: #292F36;
  --line-strong: #6A7179;
  --line-2: #21272D;
  --ink: #E9EEF2;
  --ink-2: #BBC3CC;
  --mute: #959DA5;
  --dot-neutral: #959DA5;
  --brand: #FEF047;
  --on-brand: #FFFFFF;
  --brand-strong: #7F7709;
  --brand-50: #262300;
  --brand-100: #363200;
  --brand-ink: #FBF06F;
  --brand-400: #C8BC22;
  --brand-300: #FFFFFD;
  --accent: #FEF047;
  --on-accent: #141414;
  --accent-50: #262300;
  --accent-100: #363200;
  --accent-ink: #FBF06F;
  --accent-400: #C8BC22;
  --accent-300: #FFFFFD;
  --toast-action: #706910;
  --avatar-1: #7F7709;
  --shell: #1F2322;
  --shell-raised: #292D2C;
  --shell-hover: #2B2F2E;
  --shell-divider: #2E3231;
  --shell-active: #333736;
  --shell-line: #353938;
  --shell-ring: #3F4443;
  --shell-accent: #3D4140;
  --shell-ink: #F4F4F4;
  --shell-ink-2: #BABFBE;
  --shell-label: #8F9493;
  --shell-mute: #929796;
  --shell-count: #FFFFFD;
  --shadow: none;
}

/* ===== Charte AMALTI, direction « Grand livre » (design/direction-visuelle.md) =====
   Généré par : kanbios-ui-theme --name amalti --primary "#FEF047" --secondary "#FEF047" --shell "#1F2322"
     --personality encre --shape sharp --font geist --density compact --depth flat --neutral cool
   puis surchargé ci-dessous.
   L'encre #1F2322 porte la structure (texte, onglet actif, focus, progression, liens, barre de navigation active) ;
   le jaune #FEF047 n'apparaît qu'en aplat (logo, bouton principal, surlignage pâle des filtres et sélections),
   jamais en texte ni en trait fin sur fond clair (1,17:1). Le générateur assombrissait le jaune en olive (#998F12, #706910) :
   ce kaki n'appartient pas à la charte, il est remplacé par l'encre.
   Neutres teintés de l'encre (vert-gris) au lieu des gris bleutés du réglage « cool » : filets visibles (1,4:1 au lieu de 1,3:1). */
[data-brand="amalti"], :root[data-brand="amalti"] {
  --ink: #1F2322; --ink-2: #3A403E; --mute: #575E5B;
  --bg: #F3F4F2; --surface: #FFFFFF; --surface-2: #EEF0ED;
  --line: #D3D8D4; --line-2: #E4E7E4; --line-strong: #7A827F;
  --brand: #1F2322 !important; --brand-ink: #1F2322 !important; --brand-400: #3A403E; --brand-300: #1F2322;
  --brand-strong: #FEF047 !important; --on-brand: #1F2322 !important;
  --brand-50: #FFF9C7; --brand-100: #FDF08A;
  --accent: #FEF047 !important; --on-accent: #1F2322 !important;
  --accent-50: #FFF9C7; --accent-100: #FDF08A; --accent-ink: #1F2322; --accent-300: #1F2322; --accent-400: #3A403E;
  --state-selected: color-mix(in srgb, #FEF047 30%, transparent);
  --avatar-1: #1F2322; --toast-action: #FEF047;
  --dot-neutral: #575E5B;
  --shadow: 0 1px 0 rgba(31, 35, 34, .05);
  --shadow-pop: 0 1px 2px rgba(31, 35, 34, .08), 0 12px 32px -8px rgba(31, 35, 34, .22);
  /* Barre latérale à l'encre (direction C retenue le 25/11) : le jaune y devient lisible (13,4:1), en trait comme en compteur */
  --shell-accent: #FEF047; --shell-count: #1F2322;
}
/* Typographie : une vraie échelle (26 / 15,5 / 13), chiffres tabulaires partout, navigation en 400 et état actif en 600 */
.kui { font-variant-numeric: tabular-nums; }
.kui-pagehead__title { font-size: 26px; letter-spacing: -0.03em; font-weight: 600; }
.kui-pagehead__eyebrow { color: var(--ink-2); letter-spacing: 0.08em; font-size: 11.5px; }
.kui-panel__title { font-size: 15.5px; letter-spacing: -0.01em; }
.kui-dt-head { color: var(--mute); font-weight: 600; border-bottom-color: var(--ink); }
.kui-tab { color: var(--mute); }
.kui-tab--active { color: var(--ink); font-weight: 600; }
.kui-link { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 55%, transparent); }
/* Navigation : 400 au repos, 600 à l'état actif ; repère jaune (barre, icône, compteur) sur l'encre */
.kui-nav { font-weight: 400; height: 32px; }
.kui-nav--active { font-weight: 600; }
.kui-nav--active .kui-icon { color: #FEF047; }
.kui-nav--active .kui-nav__bar { background: #FEF047; }
.kui-sidebar .kui-nav__count { background: transparent; color: var(--shell-ink-2); font-weight: 500; }
.kui-sidebar .kui-nav--active .kui-nav__count { background: #FEF047; color: #1F2322; font-weight: 600; }
.kui-sidebar__label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; font-weight: 600; padding-top: 6px; }
