/* ==========================================================================
   BOITE DE DEV UI — v1.5.0
   Mini CSS framework. Docs: docs.html — Changelog: CHANGELOG.md
   --------------------------------------------------------------------------
   Contents
     1. Tokens (variables) & dark mode
     2. Reset & base
     3. Typography
     4. Layout (container, section, grid, flex, stack)
     5. Components
        5.1 Buttons
        5.2 Navbar
        5.3 Card
        5.4 Badge / Chip / Tag
        5.5 Forms
        5.6 Table
        5.7 Alerts
        5.8 Stat (KPI)
        5.9 Accordion (details/summary)
        5.10 Icons
        5.11 Modal
        5.12 Progress
        5.13 Toast
        5.14 Menu (dropdown)
        5.15 Tabs
        5.16 Empty state
        5.17 Pagination
        5.18 Theme toggle
     6. Utilities (spacing, text, colors, display)
     7. Accessibility
     8. Animations & reduced motion
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   Every design value lives here. Change a token = change the theme
   everywhere. Colors use light-dark(light, dark): the dark value applies
   when <html data-theme="dark">, or with data-theme="auto" when the
   system is in dark mode. Without data-theme, the kit stays light.
   ========================================================================== */
:root {
  color-scheme: light;
  /* Colors — neutrals */
  --ink: light-dark(#16181d, #e6e9ee);
  --ink-2: light-dark(#2e333d, #c3cad4);
  --muted: light-dark(#5e6675, #98a2b1);
  --line: light-dark(#e3e9ef, #2a3039);
  --line-strong: light-dark(#cbd5df, #39414c);
  --line-hover: light-dark(#b4bfcb, #4b5461);
  --row-hover: light-dark(#fafcfd, #1c2128);
  --on-dark-muted: light-dark(#aeb7c4, #5e6675);
  --paper: light-dark(#f6f9fb, #0f1216);
  --white: light-dark(#ffffff, #171b21);

  /* Colors — brand */
  --sky: #0ea5ff;
  --sky-deep: light-dark(#026cb5, #5cc2ff);
  --sky-soft: light-dark(#e4f5ff, #0c2a3e);
  --beam-1: light-dark(#bfe8ff, #164e75);
  --beam-2: #7ad0ff;
  /* Text on --sky / --beam-2 backgrounds, dark in both themes */
  --on-sky: #16181d;

  /* Colors — states */
  --success: light-dark(#16a34a, #4ade80);
  --success-soft: light-dark(#dcfce7, #0f2e1b);
  --warning: light-dark(#8a5a00, #f5c04f);
  --warning-soft: light-dark(#fff1cc, #332708);
  --danger: light-dark(#c0262d, #f87171);
  --danger-soft: light-dark(#fde4e4, #3a1517);
  --info: var(--sky-deep);
  --info-soft: var(--sky-soft);

  /* Translucent navbar background */
  --navbar-bg: light-dark(rgba(246, 249, 251, 0.85), rgba(15, 18, 22, 0.85));

  /* Modal backdrop */
  --overlay: light-dark(rgba(22, 24, 29, 0.5), rgba(0, 0, 0, 0.6));

  /* Focus */
  --focus: var(--sky-deep);

  /* Typography */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: clamp(26px, 3vw, 32px);
  --fs-3xl: clamp(34px, 5vw, 56px);

  /* Spacing (4px scale) */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px light-dark(rgba(22, 24, 29, 0.06), rgba(0, 0, 0, 0.3));
  --shadow:
    0 1px 2px light-dark(rgba(22, 24, 29, 0.04), rgba(0, 0, 0, 0.2)),
    0 12px 32px -12px light-dark(rgba(22, 24, 29, 0.14), rgba(0, 0, 0, 0.5));
  --shadow-lg: 0 20px 40px -16px light-dark(rgba(22, 24, 29, 0.3), rgba(0, 0, 0, 0.7));

  /* Layout */
  --container: 1160px;
  --container-xl: 1300px;
  --gutter: 16px;
  --nav-h: 64px;

  /* Control sizes (square buttons, icon boxes) */
  --control-sm: 32px;
  --control: 40px;
  --control-lg: 48px;
  --icon-box: 40px;

  /* Modal widths */
  --modal-w-sm: 400px;
  --modal-w: 560px;
  --modal-w-lg: 800px;

  /* Toast width */
  --toast-w: 380px;

  /* Dropdown menu min width */
  --menu-w: 200px;

  /* Transitions */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.15s;
  --t: 0.25s;
}

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="auto"] { color-scheme: light dark; }


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-3xl); font-weight: 600; }
h2 { font-size: var(--fs-2xl); font-weight: 600; }
h3 { font-size: var(--fs-xl);  font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-lg);  font-weight: 500; letter-spacing: 0; }

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.85em;
}

code {
  background: var(--sky-soft);
  color: var(--sky-deep);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Small mono eyebrow with a blue line */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sky-deep);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

/* Intro paragraph */
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 60ch;
}

/* Marker-style highlight */
.hl {
  position: relative;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--beam-1);
  border-radius: 4px;
  z-index: -1;
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

/* Centered containers: .container (1160px) or .container-xl (1300px) */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container-xl {
  width: min(var(--container-xl), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Vertical section */
.section {
  padding-block: clamp(32px, 6vw, 64px);
}

/* Section header (eyebrow + title + lead) */
.section-head {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

/* Vertical stack: even spacing between children */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--sp-4));
}

/* Horizontal row that wraps */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--row-gap, var(--sp-3));
}

/* Grid: fixed columns */
.grid {
  display: grid;
  gap: var(--grid-gap, var(--sp-5));
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Auto grid: as many columns as space allows */
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr));
}

/* Fixed grids: responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1 Buttons
   Usage: <button class="btn btn-ink">…</button>
   Variants: .btn-ink, .btn-primary, .btn-ghost, .btn-danger
   Sizes:    .btn-sm, .btn-lg  |  Width: .btn-block
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}
.btn-ink:hover {
  background: var(--ink-2);
}

.btn-primary {
  background: var(--sky);
  color: var(--on-sky);
}
.btn-primary:hover {
  background: var(--beam-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-hover);
}
.btn-ghost:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* Animated arrow inside a button: <span class="arrow">→</span> */
.btn .arrow {
  transition: transform var(--t-fast);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5.2 Navbar
   Usage: <header class="navbar"><div class="container">…</div></header>
   Active link: aria-current="page" (or "location" for in-page anchors)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navbar-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar > .container,
.navbar.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--nav-h);
}
.navbar-links {
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-links::-webkit-scrollbar {
  display: none;
}
.navbar a:not(.btn) {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.navbar a:not(.btn):hover {
  color: var(--sky-deep);
}
.navbar a[aria-current="page"],
.navbar a[aria-current="location"] {
  background: var(--sky-soft);
  color: var(--sky-deep);
}

/* --------------------------------------------------------------------------
   5.3 Card
   Usage: <div class="card"><h2>Title</h2>…</div>
   Variants: .card-flat (no shadow), .card-dark
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card > h2,
.card > h3 {
  font-size: var(--fs-xl);
}
.card p {
  color: var(--muted);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.card-footer {
  display: flex;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
}
.card-flat {
  box-shadow: none;
}
.card-dark {
  --focus: var(--sky); /* bright blue stays readable on dark background */
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.card-dark p {
  color: var(--on-dark-muted);
}

/* Sectioned card: full-width header / body / footer, each can take
   its own background (.bg-*).
   Usage:
     <div class="card card-sectioned">
       <div class="card-header bg-ink"><h2>Title</h2></div>
       <div class="card-body">…</div>
       <div class="card-footer bg-paper">…</div>
     </div> */
.card-sectioned {
  gap: 0;
  padding: 0;
  overflow: hidden; /* backgrounds follow the card's rounded corners */
}
.card-sectioned > .card-header,
.card-sectioned > .card-body,
.card-sectioned > .card-footer {
  padding: var(--sp-4) var(--sp-5);
}
.card-sectioned > .card-header {
  border-bottom: 1px solid var(--line);
}
.card-sectioned > .card-footer {
  border-top: 1px solid var(--line);
}
.card-header > h2,
.card-header > h3 {
  font-size: var(--fs-xl);
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-3);
}
/* Readable text on dark background */
.bg-ink p {
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   5.4 Badge / Chip / Tag
   Badge: status            → <span class="badge badge-success">Signed</span>
   Chip:  keyword list      → <ul class="chips"><li>Go</li></ul>
   Tag:   dark mono label   → <span class="tag">v1.2</span>
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
/* Colored dot before the text */
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.badge-warning { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  border-color: transparent; color: var(--danger); }
.badge-info    { background: var(--info-soft);    border-color: transparent; color: var(--info); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips > li {
  padding: 1px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5.5 Forms
   Usage:
     <div class="field">
       <label for="x">Name</label>
       <input id="x" class="input">
       <small class="hint">Help</small>
     </div>
   Error: aria-invalid="true" on the field + .hint-error
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.field > label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 22px;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--line-hover);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px var(--sky-soft);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.textarea {
  min-height: 112px;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 36px;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%235E6675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right 12px center / 16px no-repeat;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.hint-error {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   5.6 Table
   Usage: <div class="table-wrap"><table class="table">…</table></div>
   The wrapper allows horizontal scrolling on mobile.
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th {
  background: var(--paper);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: var(--row-hover);
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   5.7 Alerts
   Usage: <div class="alert alert-success" role="status">…</div>
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--info);
  font-weight: 500;
  font-size: 15px;
}
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-danger  { background: var(--danger-soft);  color: var(--danger); }

/* --------------------------------------------------------------------------
   5.8 Stat (KPI)
   Usage:
     <div class="stat">
       <span class="stat-label">Monthly revenue</span>
       <strong class="stat-value">4 200 €</strong>
     </div>
   -------------------------------------------------------------------------- */
.stat {
  display: grid;
  gap: 4px;
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.stat-value {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   5.9 Accordion (native details/summary)
   Usage: <div class="accordion"><details><summary>…</summary><p>…</p></details></div>
   -------------------------------------------------------------------------- */
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 16px 0;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 500;
  transition:
    transform var(--t) var(--ease),
    background-color var(--t) var(--ease);
}
.accordion details[open] summary::after {
  transform: rotate(45deg);
  background: var(--sky-soft);
}
.accordion details > :not(summary) {
  padding-bottom: var(--sp-4);
  color: var(--muted);
}


/* --------------------------------------------------------------------------
   5.10 Icons
   Usage: <span class="icon icon-user" aria-hidden="true"></span>
   Color: inherits the text color (currentColor) → .text-sky, etc.
   Sizes: 1.25em by default | .icon-sm, .icon-lg, .icon-xl
          or --icon-size: 20px as inline style
   Icon box: <span class="icon-box"><span class="icon icon-euro"></span></span>
   Square button: <button class="btn btn-ghost btn-icon">…+ .sr-only</button>
   Drawing: 24×24 outline, stroke 2, round caps (inline SVG as mask).
   List: home dashboard menu more chevron-left chevron-right chevron-up chevron-down arrow-left arrow-right external logout plus minus check x edit trash copy search filter sort refresh download upload send link eye settings user users building briefcase mail phone map-pin globe calendar clock file invoice folder euro chart trending-up tag star bell lock info check-circle alert x-circle moon sun
   -------------------------------------------------------------------------- */
.icon {
  --icon-size: 1.25em;
  display: inline-block;
  flex: none;
  width: var(--icon-size);
  height: var(--icon-size);
  vertical-align: -0.25em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-sm { --icon-size: 1em; }
.icon-lg { --icon-size: 1.5em; }
.icon-xl { --icon-size: 2em; }

/* Icon inside a box (KPI, lists) */
.icon-box {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--icon-box);
  height: var(--icon-box);
  border-radius: var(--radius-sm);
  background: var(--sky-soft);
  color: var(--sky-deep);
}
.icon-box.bg-success-soft { color: var(--success); }
.icon-box.bg-warning-soft { color: var(--warning); }
.icon-box.bg-danger-soft  { color: var(--danger); }
.icon-box.bg-ink { color: var(--sky); }

/* Icon-only button (remember the .sr-only text) */
.btn-icon {
  padding: 0;
  width: var(--control);
  height: var(--control);
}
.btn-icon.btn-sm { width: var(--control-sm); height: var(--control-sm); }
.btn-icon.btn-lg { width: var(--control-lg); height: var(--control-lg); }

.icon-home { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 10.5 12 3l9 7.5%22/%3E%3Cpath d=%22M5 9.5V21h14V9.5%22/%3E%3Cpath d=%22M10 21v-6h4v6%22/%3E%3C/svg%3E"); }
.icon-dashboard { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%227%22 height=%229%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%223%22 width=%227%22 height=%225%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%2212%22 width=%227%22 height=%229%22 rx=%221.5%22/%3E%3Crect x=%223%22 y=%2216%22 width=%227%22 height=%225%22 rx=%221.5%22/%3E%3C/svg%3E"); }
.icon-menu { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 6h16M4 12h16M4 18h16%22/%3E%3C/svg%3E"); }
.icon-more { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%225%22 cy=%2212%22 r=%221%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221%22/%3E%3Ccircle cx=%2219%22 cy=%2212%22 r=%221%22/%3E%3C/svg%3E"); }
.icon-chevron-left { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m15 6-6 6 6 6%22/%3E%3C/svg%3E"); }
.icon-chevron-right { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 6 6 6-6 6%22/%3E%3C/svg%3E"); }
.icon-chevron-up { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m6 15 6-6 6 6%22/%3E%3C/svg%3E"); }
.icon-chevron-down { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E"); }
.icon-arrow-left { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 12H5M11 6l-6 6 6 6%22/%3E%3C/svg%3E"); }
.icon-arrow-right { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M13 6l6 6-6 6%22/%3E%3C/svg%3E"); }
.icon-external { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 4h6v6M20 4l-9 9%22/%3E%3Cpath d=%22M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5%22/%3E%3C/svg%3E"); }
.icon-logout { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M15 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4%22/%3E%3Cpath d=%22M10 8l-4 4 4 4M6 12h10%22/%3E%3C/svg%3E"); }
.icon-plus { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5v14M5 12h14%22/%3E%3C/svg%3E"); }
.icon-minus { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14%22/%3E%3C/svg%3E"); }
.icon-check { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 12.5 4.5 4.5L19 7.5%22/%3E%3C/svg%3E"); }
.icon-x { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 6l12 12M18 6 6 18%22/%3E%3C/svg%3E"); }
.icon-edit { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4z%22/%3E%3Cpath d=%22m13.5 6.5 4 4%22/%3E%3C/svg%3E"); }
.icon-trash { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 7h16M10 11v6M14 11v6%22/%3E%3Cpath d=%22M6 7l1 13h10l1-13M9 7V4h6v3%22/%3E%3C/svg%3E"); }
.icon-copy { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%229%22 y=%229%22 width=%2211%22 height=%2211%22 rx=%222%22/%3E%3Cpath d=%22M5 15H4V5a1 1 0 0 1 1-1h10v1%22/%3E%3C/svg%3E"); }
.icon-search { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%226.5%22/%3E%3Cpath d=%22m20 20-4.4-4.4%22/%3E%3C/svg%3E"); }
.icon-filter { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5h16l-6 7.5V19l-4 1.5v-8L4 5z%22/%3E%3C/svg%3E"); }
.icon-sort { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 4v16M3.5 16.5 7 20l3.5-3.5M17 20V4M13.5 7.5 17 4l3.5 3.5%22/%3E%3C/svg%3E"); }
.icon-refresh { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 11a8 8 0 0 0-14.3-4.3L4 8.5%22/%3E%3Cpath d=%22M4 4v4.5h4.5%22/%3E%3Cpath d=%22M4 13a8 8 0 0 0 14.3 4.3l1.7-1.8%22/%3E%3Cpath d=%22M20 20v-4.5h-4.5%22/%3E%3C/svg%3E"); }
.icon-download { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 4v11M7 10.5l5 5 5-5M4 20h16%22/%3E%3C/svg%3E"); }
.icon-upload { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 16V5M7 9.5l5-5 5 5M4 20h16%22/%3E%3C/svg%3E"); }
.icon-send { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 3 10 14%22/%3E%3Cpath d=%22M21 3l-6.5 18-4.5-7-7-4.5L21 3z%22/%3E%3C/svg%3E"); }
.icon-link { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1%22/%3E%3Cpath d=%22M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1%22/%3E%3C/svg%3E"); }
.icon-eye { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2.5 12S6 5 12 5s9.5 7 9.5 7-3.5 7-9.5 7-9.5-7-9.5-7z%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/svg%3E"); }
.icon-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1%22/%3E%3C/svg%3E"); }
.icon-user { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 20a8 8 0 0 1 16 0%22/%3E%3C/svg%3E"); }
.icon-users { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223.5%22/%3E%3Cpath d=%22M2.5 20a6.5 6.5 0 0 1 13 0%22/%3E%3Cpath d=%22M15.5 4.6a3.5 3.5 0 0 1 0 6.8M18 14.3a6.5 6.5 0 0 1 3.5 5.7%22/%3E%3C/svg%3E"); }
.icon-building { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 21V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v17M15 9h4a1 1 0 0 1 1 1v11M2.5 21h19%22/%3E%3Cpath d=%22M8 7h3M8 11h3M8 15h3%22/%3E%3C/svg%3E"); }
.icon-briefcase { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%227%22 width=%2218%22 height=%2213%22 rx=%222%22/%3E%3Cpath d=%22M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18%22/%3E%3C/svg%3E"); }
.icon-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22m3.5 6.5 8.5 6.5 8.5-6.5%22/%3E%3C/svg%3E"); }
.icon-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 3.5h3.5l1.8 4.6-2.3 1.4a11 11 0 0 0 6.5 6.5l1.4-2.3 4.6 1.8V19a1.5 1.5 0 0 1-1.6 1.5A16.5 16.5 0 0 1 3.5 5.1 1.5 1.5 0 0 1 5 3.5z%22/%3E%3C/svg%3E"); }
.icon-map-pin { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z%22/%3E%3Ccircle cx=%2212%22 cy=%229.5%22 r=%222.5%22/%3E%3C/svg%3E"); }
.icon-globe { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z%22/%3E%3C/svg%3E"); }
.icon-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M3 10h18M8 3v4M16 3v4%22/%3E%3C/svg%3E"); }
.icon-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 7v5l3 2%22/%3E%3C/svg%3E"); }
.icon-file { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8l-5-5z%22/%3E%3Cpath d=%22M14 3v5h5%22/%3E%3C/svg%3E"); }
.icon-invoice { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 3h14v18l-2.3-1.5L14.3 21 12 19.5 9.7 21l-2.4-1.5L5 21V3z%22/%3E%3Cpath d=%22M9 8h6M9 12h6M9 16h3%22/%3E%3C/svg%3E"); }
.icon-folder { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 6a1 1 0 0 1 1-1h5l2 2.5h9a1 1 0 0 1 1 1V18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6z%22/%3E%3C/svg%3E"); }
.icon-euro { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17.5 6.5A7 7 0 1 0 17.5 17.5%22/%3E%3Cpath d=%22M4 10h9M4 14h9%22/%3E%3C/svg%3E"); }
.icon-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 4v16h16%22/%3E%3Cpath d=%22M8 16v-4M12 16V8M16 16v-6%22/%3E%3C/svg%3E"); }
.icon-trending-up { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m3 17 6-6 4 4 8-8%22/%3E%3Cpath d=%22M15 7h6v6%22/%3E%3C/svg%3E"); }
.icon-tag { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9-9-9z%22/%3E%3Ccircle cx=%227.5%22 cy=%227.5%22 r=%221.5%22/%3E%3C/svg%3E"); }
.icon-star { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9L12 3z%22/%3E%3C/svg%3E"); }
.icon-bell { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15L6 16z%22/%3E%3Cpath d=%22M10 21h4%22/%3E%3C/svg%3E"); }
.icon-lock { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224.5%22 y=%2210.5%22 width=%2215%22 height=%2210%22 rx=%222%22/%3E%3Cpath d=%22M8 10.5V7a4 4 0 0 1 8 0v3.5%22/%3E%3C/svg%3E"); }
.icon-info { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 11v5.5M12 7.5v.01%22/%3E%3C/svg%3E"); }
.icon-check-circle { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22m8 12.3 2.7 2.7L16 9.5%22/%3E%3C/svg%3E"); }
.icon-alert { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5 2.5 20h19L12 3.5z%22/%3E%3Cpath d=%22M12 10v4.5M12 17.5v.01%22/%3E%3C/svg%3E"); }
.icon-x-circle { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22m9 9 6 6M15 9l-6 6%22/%3E%3C/svg%3E"); }
.icon-moon { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z%22/%3E%3C/svg%3E"); }
.icon-sun { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Cpath d=%22M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4%22/%3E%3C/svg%3E"); }


/* --------------------------------------------------------------------------
   5.11 Modal (native <dialog> + Stimulus "modal" controller)
   Usage:
     <div data-controller="modal">
       <button class="btn btn-ink" data-action="modal#open">Open</button>
       <dialog class="modal" data-modal-target="dialog"
               data-action="click->modal#backdrop" aria-labelledby="m-title">
         <div class="modal-header"><h2 id="m-title">Title</h2>…close button…</div>
         <div class="modal-body">…</div>
         <div class="modal-footer">…buttons…</div>
       </dialog>
     </div>
   Escape closes it (native). A click on the backdrop closes it (controller).
   Sizes: .modal-sm, .modal-lg
   -------------------------------------------------------------------------- */
.modal {
  width: min(var(--modal-w), calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 2 * var(--gutter));
  padding: 0; /* no padding: a click on the dialog itself = a click on the backdrop */
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modalIn var(--t) var(--ease);
}
.modal::backdrop {
  background: var(--overlay);
}
.modal-sm { --modal-w: var(--modal-w-sm); }
.modal-lg { --modal-w: var(--modal-w-lg); }

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}
.modal-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-header > h2,
.modal-header > h3 {
  margin: 0;
  font-size: var(--fs-xl);
}
.modal-body {
  padding: var(--sp-5);
  overflow-y: auto; /* long content scrolls, header and footer stay visible */
}
.modal-footer {
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* Page does not scroll behind an open modal */
body:has(.modal[open]) {
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}


/* --------------------------------------------------------------------------
   5.12 Progress (native <progress>, no JS)
   Usage: <progress class="progress" value="60" max="100">60 %</progress>
   With label:
     <div class="progress-field">
       <div class="progress-label"><span>Goal</span><span>60 %</span></div>
       <progress class="progress" value="60" max="100">60 %</progress>
     </div>
   Colors: .progress-success, .progress-warning, .progress-danger
   Sizes:  .progress-sm, .progress-lg
   Indeterminate (loading): no value attribute → animated bar.
   -------------------------------------------------------------------------- */
.progress {
  --progress-h: var(--sp-2);
  --progress-color: var(--sky);
  appearance: none;
  display: block;
  width: 100%;
  height: var(--progress-h);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
/* Chrome, Safari, Edge */
.progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: var(--radius-pill);
}
.progress::-webkit-progress-value {
  background: var(--progress-color);
  border-radius: var(--radius-pill);
  transition: width var(--t) var(--ease);
}
/* Firefox */
.progress::-moz-progress-bar {
  background: var(--progress-color);
  border-radius: var(--radius-pill);
}

.progress-success { --progress-color: var(--success); }
.progress-warning { --progress-color: var(--warning); }
.progress-danger  { --progress-color: var(--danger); }

.progress-sm { --progress-h: var(--sp-1); }
.progress-lg { --progress-h: var(--sp-3); }

/* Indeterminate: a colored band slides from left to right */
.progress:indeterminate {
  background:
    linear-gradient(90deg, transparent 35%, var(--progress-color) 35% 65%, transparent 65%)
    var(--line);
  background-size: 200% 100%;
  animation: progressSlide 1.2s linear infinite;
}
.progress:indeterminate::-webkit-progress-bar { background: transparent; }
.progress:indeterminate::-moz-progress-bar { background: transparent; }

@keyframes progressSlide {
  from { background-position: 200% 0; }
  to   { background-position: -100% 0; }
}

/* Label + value above the bar */
.progress-field {
  display: grid;
  gap: var(--sp-2);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.progress-label > :last-child {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}


/* --------------------------------------------------------------------------
   5.13 Toast (temporary message + Stimulus "toast" controller)
   Usage:
     <div id="toasts" class="toasts" aria-live="polite">
       <div class="toast toast-success" data-controller="toast">
         <span class="icon icon-check-circle" aria-hidden="true"></span>
         <p class="toast-body">Saved.</p>
         <button class="btn btn-ghost btn-icon btn-sm" data-action="toast#close">
           <span class="icon icon-x icon-sm" aria-hidden="true"></span>
           <span class="sr-only">Close</span>
         </button>
       </div>
     </div>
   The .toasts container is fixed at the bottom right (full width on mobile).
   Put it once in the layout, empty, so screen readers announce what gets added.
   Closes after 5 s (data-toast-delay-value, 0 = stays). Pauses on hover/focus.
   Colors: .toast-success, .toast-warning, .toast-danger (default: info)
   -------------------------------------------------------------------------- */
.toasts {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 90; /* above the navbar, below the skip link */
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: min(var(--toast-w), calc(100% - 2 * var(--gutter)));
  pointer-events: none; /* the empty space between toasts stays clickable */
}
.toasts > * {
  pointer-events: auto;
}

.toast {
  --toast-color: var(--info);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--toast-color);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  animation: toastIn var(--t) var(--ease);
}
.toast > .icon {
  margin-top: 6px;
  color: var(--toast-color);
}
.toast-body {
  flex: 1;
  margin: 0;
  padding-block: 6px;
}
.toast-body > strong {
  display: block;
}
.toast-success { --toast-color: var(--success); }
.toast-warning { --toast-color: var(--warning); }
.toast-danger  { --toast-color: var(--danger); }

/* Added by the controller before removing the toast */
.toast-leaving {
  animation: toastOut var(--t-fast) ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}


/* --------------------------------------------------------------------------
   5.14 Menu (dropdown: native popover + Stimulus "dropdown" controller)
   Usage:
     <div data-controller="dropdown">
       <button class="btn btn-ghost btn-icon btn-sm" data-dropdown-target="button">
         <span class="icon icon-more" aria-hidden="true"></span>
         <span class="sr-only">Actions</span>
       </button>
       <div class="menu" popover data-dropdown-target="menu">
         <a class="menu-item" href="…"><span class="icon icon-edit" aria-hidden="true"></span> Edit</a>
         <hr class="menu-sep">
         <button class="menu-item menu-item-danger">…</button>
       </div>
     </div>
   The browser closes it on outside click and Escape. The controller places it
   under the button (above if there is no room) and handles arrow keys.
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  inset: auto; /* the controller sets top / left */
  margin: 0;
  min-width: var(--menu-w);
  max-width: calc(100vw - 2 * var(--gutter));
  padding: var(--sp-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.menu:popover-open {
  display: grid;
  gap: 2px;
  animation: menuIn var(--t-fast) var(--ease);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--sky-soft);
  color: var(--sky-deep);
}
.menu-item:focus-visible {
  outline-width: 2px;
  outline-offset: -2px; /* stays inside the menu */
}
.menu-item > .icon {
  color: var(--muted);
}
.menu-item:hover > .icon,
.menu-item:focus-visible > .icon {
  color: inherit;
}
.menu-item-danger,
.menu-item-danger > .icon {
  color: var(--danger);
}
.menu-item-danger:hover,
.menu-item-danger:focus-visible {
  background: var(--danger-soft);
  color: var(--danger);
}
.menu-item:disabled,
.menu-item[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}
/* button_to and other forms inside the menu */
.menu > form {
  margin: 0;
}

.menu-sep {
  height: 1px;
  margin: var(--sp-1) calc(-1 * var(--sp-1));
  border: 0;
  background: var(--line);
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}


/* --------------------------------------------------------------------------
   5.15 Tabs (Stimulus "tabs" controller)
   Usage:
     <div data-controller="tabs">
       <div class="tabs" role="tablist" aria-label="…">
         <button class="tab" role="tab" data-tabs-target="tab">Info</button>
         <button class="tab" role="tab" data-tabs-target="tab">Invoices</button>
       </div>
       <div class="tab-panel" role="tabpanel" data-tabs-target="panel">…</div>
       <div class="tab-panel" role="tabpanel" data-tabs-target="panel" hidden>…</div>
     </div>
   Active tab: aria-selected="true" (set by the controller).
   Tabs that are links to other pages: <nav class="tabs" data-controller="nav">
   with <a class="tab"> links, active one = aria-current="page".
   Scrolls horizontally on small screens.
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: -1px; /* the active border covers the .tabs border */
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-selected="true"],
.tab[aria-current="page"] {
  border-bottom-color: var(--sky);
  color: var(--sky-deep);
}
.tab:focus-visible {
  outline-width: 2px;
  outline-offset: -2px; /* the .tabs container cuts what overflows */
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-panel {
  padding-top: var(--sp-5);
}
.tab-panel[hidden] {
  display: none;
}
.tab-panel:focus-visible {
  outline-offset: 6px;
  border-radius: var(--radius-sm);
}


/* --------------------------------------------------------------------------
   5.16 Empty state (no JS)
   Usage:
     <div class="empty">
       <span class="icon-box"><span class="icon icon-invoice" aria-hidden="true"></span></span>
       <h3>No invoice yet</h3>
       <p>Short explanation of what will show up here.</p>
       <a class="btn btn-primary" href="…">New invoice</a>
     </div>
   Every part is optional. .empty-compact: smaller, no border, for a card or a
   table: <tr><td colspan="4"><div class="empty empty-compact">…</div></td></tr>
   -------------------------------------------------------------------------- */
.empty {
  --empty-icon: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-7) var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.empty > .icon-box {
  --icon-box: var(--empty-icon);
  margin-bottom: var(--sp-2);
  border-radius: var(--radius);
  font-size: calc(var(--empty-icon) * 0.43); /* the icon is 1.25em */
}
.empty > h2,
.empty > h3 {
  margin: 0;
  font-size: var(--fs-lg);
}
.empty > p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}
.empty > .btn,
.empty > .row {
  margin-top: var(--sp-3);
}

.empty-compact {
  --empty-icon: var(--icon-box);
  padding: var(--sp-5) var(--sp-4);
  border: 0;
}

/* --------------------------------------------------------------------------
   5.17 Pagination (no JS)
   Usage:
     <nav class="pagination" aria-label="Pagination">
       <a class="page-link" href="?page=1" rel="prev">
         <span class="icon icon-chevron-left" aria-hidden="true"></span>
         <span class="sr-only">Previous page</span>
       </a>
       <a class="page-link" href="?page=1">1</a>
       <a class="page-link" href="?page=2" aria-current="page">2</a>
       <span class="page-gap">…</span>
       <a class="page-link" href="?page=9">9</a>
       <span class="page-link" aria-disabled="true">…next…</span>
     </nav>
   Current page: aria-current="page". Missing previous/next: a <span> with
   aria-disabled="true". With a summary: wrap both in .pagination-bar:
     <div class="pagination-bar"><p>21–40 of 132</p><nav class="pagination">…</nav></div>
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
}
.page-link,
.page-gap {
  display: inline-grid;
  place-items: center;
  min-width: var(--control-sm);
  height: var(--control-sm);
  padding: 0 var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.page-link {
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration: none;
}
a.page-link:hover {
  background: var(--sky-soft);
  color: var(--sky-deep);
}
.page-link[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}
.page-link[aria-disabled="true"] {
  color: var(--line-strong);
}
.page-gap {
  color: var(--muted);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.pagination-bar > p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}


/* --------------------------------------------------------------------------
   5.18 Theme toggle (JS: theme controller)
   Usage:
     <button class="btn btn-ghost btn-icon theme-toggle" data-controller="theme"
             data-action="theme#toggle" aria-label="Mode sombre">
       <span class="icon icon-moon" aria-hidden="true"></span>
       <span class="icon icon-sun" aria-hidden="true"></span>
     </button>
   Shows the moon in light mode, the sun in dark mode.
   -------------------------------------------------------------------------- */
.theme-toggle:not([aria-pressed="true"]) .icon-sun,
.theme-toggle[aria-pressed="true"] .icon-moon {
  display: none;
}


/* ==========================================================================
   6. UTILITIES
   Small single-purpose classes. Use sparingly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Margins & paddings
   Naming: m = margin, p = padding
           (none) = all 4 sides, x = left+right, y = top+bottom,
           t = top, b = bottom, l = left, r = right
   Values: 0, 2, 4, 5, 6 → var(--sp-N)  (8px, 16px, 24px, 32px)
   Order: broadest to most specific, so that "px-4 pl-0" works.
   -------------------------------------------------------------------------- */

/* Margins */
/* all 4 sides */
.m-0 { margin: 0; }
.m-2 { margin: var(--sp-2); }
.m-4 { margin: var(--sp-4); }
.m-5 { margin: var(--sp-5); }
.m-6 { margin: var(--sp-6); }
/* horizontal (left + right) */
.mx-0 { margin-inline: 0; }
.mx-2 { margin-inline: var(--sp-2); }
.mx-4 { margin-inline: var(--sp-4); }
.mx-5 { margin-inline: var(--sp-5); }
.mx-6 { margin-inline: var(--sp-6); }
/* vertical (top + bottom) */
.my-0 { margin-block: 0; }
.my-2 { margin-block: var(--sp-2); }
.my-4 { margin-block: var(--sp-4); }
.my-5 { margin-block: var(--sp-5); }
.my-6 { margin-block: var(--sp-6); }
/* top */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
/* bottom */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
/* left */
.ml-0 { margin-left: 0; }
.ml-2 { margin-left: var(--sp-2); }
.ml-4 { margin-left: var(--sp-4); }
.ml-5 { margin-left: var(--sp-5); }
.ml-6 { margin-left: var(--sp-6); }
/* right */
.mr-0 { margin-right: 0; }
.mr-2 { margin-right: var(--sp-2); }
.mr-4 { margin-right: var(--sp-4); }
.mr-5 { margin-right: var(--sp-5); }
.mr-6 { margin-right: var(--sp-6); }

/* Auto margins */
.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* Paddings */
/* all 4 sides */
.p-0 { padding: 0; }
.p-2 { padding: var(--sp-2); }
.p-4 { padding: var(--sp-4); }
.p-5 { padding: var(--sp-5); }
.p-6 { padding: var(--sp-6); }
/* horizontal (left + right) */
.px-0 { padding-inline: 0; }
.px-2 { padding-inline: var(--sp-2); }
.px-4 { padding-inline: var(--sp-4); }
.px-5 { padding-inline: var(--sp-5); }
.px-6 { padding-inline: var(--sp-6); }
/* vertical (top + bottom) */
.py-0 { padding-block: 0; }
.py-2 { padding-block: var(--sp-2); }
.py-4 { padding-block: var(--sp-4); }
.py-5 { padding-block: var(--sp-5); }
.py-6 { padding-block: var(--sp-6); }
/* top */
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: var(--sp-2); }
.pt-4 { padding-top: var(--sp-4); }
.pt-5 { padding-top: var(--sp-5); }
.pt-6 { padding-top: var(--sp-6); }
/* bottom */
.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: var(--sp-2); }
.pb-4 { padding-bottom: var(--sp-4); }
.pb-5 { padding-bottom: var(--sp-5); }
.pb-6 { padding-bottom: var(--sp-6); }
/* left */
.pl-0 { padding-left: 0; }
.pl-2 { padding-left: var(--sp-2); }
.pl-4 { padding-left: var(--sp-4); }
.pl-5 { padding-left: var(--sp-5); }
.pl-6 { padding-left: var(--sp-6); }
/* right */
.pr-0 { padding-right: 0; }
.pr-2 { padding-right: var(--sp-2); }
.pr-4 { padding-right: var(--sp-4); }
.pr-5 { padding-right: var(--sp-5); }
.pr-6 { padding-right: var(--sp-6); }

/* Gaps (for .row / .stack / .grid) */
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

/* Flex alignment */
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.flex-1 { flex: 1; min-width: 0; }

/* Text */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm  { font-size: var(--fs-sm); }
.text-xs  { font-size: var(--fs-xs); }
.text-lg  { font-size: var(--fs-lg); }
.text-mono { font-family: var(--mono); }
.text-bold { font-weight: 600; }
.text-pre-line { white-space: pre-line; } /* keeps the line breaks typed in the text */
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.text-ink   { color: var(--ink); }
.text-sky   { color: var(--sky-deep); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.nowrap   { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Backgrounds */
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-ink   { background: var(--ink); color: var(--white); }
.bg-sky-soft { background: var(--sky-soft); }
.bg-sky     { background: var(--sky); color: var(--on-sky); }
.bg-success-soft { background: var(--success-soft); }
.bg-warning-soft { background: var(--warning-soft); }
.bg-danger-soft  { background: var(--danger-soft); }

/* Borders & radii */
.border    { border: 1px solid var(--line); }
.rounded   { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow    { box-shadow: var(--shadow); }

/* Divider */
.divider {
  height: 0;
  margin: var(--sp-5) 0;
  border: 0;
  border-top: 1px dashed var(--line-strong);
}

/* Display */
.hidden { display: none !important; }
.w-full { width: 100%; }
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .show-mobile { display: none !important; }
}


/* ==========================================================================
   7. ACCESSIBILITY
   ========================================================================== */

/* Focus ring for keyboard only */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Text for screen readers only */
.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 to content" link, visible on focus */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Anchors don't hide under the sticky navbar */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}


/* ==========================================================================
   8. ANIMATIONS & REDUCED MOTION
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Simple fade-in: <div class="fade-up">…</div> */
.fade-up {
  animation: fadeUp 0.45s var(--ease) both;
}

/* Fade-in on scroll (needs the .js class on <html> + an observer) */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}