/* =====================================================================
   Osly Registre — styles
   Signature : l'étiquette de clé (.tag), avec son œillet. Tout le reste
   reste sobre : l'outil est fait pour être lu vite, au bureau.
   ===================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("../vendor/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../vendor/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs Osly */
  --ink: #0A0E1A;          /* navy Osly : texte, barre latérale */
  --ink-2: #1B2233;        /* navy éclairci : survols sur fond navy */
  --orange: #F5A623;       /* orange Osly : action principale uniquement */
  --orange-press: #DE9112;
  --slate: #586274;        /* texte secondaire */
  --line: #DFE3EA;         /* filets */
  --ground: #F2F4F7;       /* fond de page, gris froid */
  --paper: #FFFFFF;        /* surfaces */
  --ok: #1E8A5F;
  --ok-tint: #E6F4EE;
  --warn: #9A5B00;
  --warn-tint: #FDF1DC;
  --bad: #C23B3B;
  --bad-tint: #FBE9E9;
  --info: #2C5BCF;
  --info-tint: #E8EEFC;
  --focus: #2C5BCF;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Échelle typographique (rapport ~1,2) */
  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.1875rem;
  --t-xl: 1.5rem;
  --t-2xl: 2.25rem;
  --t-hero: clamp(2.5rem, 5vw, 4rem);

  --r-sm: 6px;
  --r-md: 10px;
  --sidebar: 232px;
  --shadow-pop: 0 12px 32px rgba(10, 14, 26, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* l'attribut hidden l'emporte toujours sur les classes */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  font-feature-settings: "tnum" 1;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--slate); }
.small { font-size: var(--t-sm); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------------------------------------------------------------------
   Étiquette de clé : la signature
   --------------------------------------------------------------------- */
.tag {
  --tag-bg: var(--ground);
  --tag-fg: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 8px;
  border-radius: 4px 12px 12px 4px;
  background: var(--tag-bg);
  color: var(--tag-fg);
  font-size: var(--t-xs);
  font-weight: 550;
  white-space: nowrap;
}
.tag::before {           /* l'œillet */
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--tag-fg);
  flex: none;
}
.tag.ok   { --tag-bg: var(--ok-tint);   --tag-fg: var(--ok); }
.tag.warn { --tag-bg: var(--warn-tint); --tag-fg: var(--warn); }
.tag.bad  { --tag-bg: var(--bad-tint);  --tag-fg: var(--bad); }
.tag.info { --tag-bg: var(--info-tint); --tag-fg: var(--info); }

/* ---------------------------------------------------------------------
   Boutons et champs
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-weight: 600;
  font-size: var(--t-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { border-color: #C5CBD6; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--orange-press); border-color: var(--orange-press); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--ground); }
.btn.block { width: 100%; min-height: 48px; font-size: var(--t-md); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

.field { display: grid; gap: 6px; }
.field > label { font-size: var(--t-sm); font-weight: 600; }
.hint { font-size: var(--t-xs); color: var(--slate); }
.hint.warn { color: var(--warn); }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #C9CFD9;
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: var(--t-md);
}
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(44, 91, 207, 0.18); }
.input.code { font-size: 1.5rem; letter-spacing: 0.3em; text-align: center; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.form-error {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bad-tint);
  color: var(--bad);
  font-size: var(--t-sm);
}
.notice {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--info-tint);
  color: #1F3F8F;
  font-size: var(--t-sm);
}
.notice.warn { background: var(--warn-tint); color: #6E4100; }

/* ---------------------------------------------------------------------
   Écrans d'accès (connexion, bienvenue)
   --------------------------------------------------------------------- */
.access {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
}
.access-hero {
  background: var(--ink);
  color: #fff;
  padding: 48px clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.access-hero h1 {
  font-size: var(--t-hero);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 11ch;
}
.access-hero .lede { font-size: var(--t-lg); color: #C4CAD6; max-width: 34ch; margin-top: 20px; }
.access-hero .facts { display: grid; gap: 10px; color: #C4CAD6; font-size: var(--t-sm); }
.access-hero .facts .tag { --tag-bg: var(--ink-2); --tag-fg: var(--orange); }
.access-hero .facts .tag::before { background: var(--ink); }
.access-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.access-card { width: 100%; max-width: 400px; }
.access-card h2 { font-size: var(--t-xl); margin-bottom: 8px; }
.access-card form { margin-top: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: var(--t-lg); text-decoration: none; }
.brand svg { flex: none; }
.brand small { font-weight: 500; color: inherit; opacity: 0.7; font-size: var(--t-sm); }
@media (max-width: 860px) {
  .access { grid-template-columns: 1fr; }
  .access-hero { padding: 28px 20px 32px; gap: 20px; }
  .access-hero .facts { display: none; }
  .access-hero h1 { font-size: 2.25rem; }
  .access-hero .lede { font-size: var(--t-md); margin-top: 12px; }
}

/* ---------------------------------------------------------------------
   Coque de l'application
   --------------------------------------------------------------------- */
.shell {
  min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr);
  /* la colonne navy descend jusqu'en bas, même sur une page longue */
  background: linear-gradient(to right, var(--ink) var(--sidebar), transparent var(--sidebar));
}
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  padding: 20px 12px;
}
.sidebar .brand { padding: 0 8px 20px; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: var(--r-sm);
  color: #C4CAD6; text-decoration: none; font-weight: 550; font-size: var(--t-sm);
}
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--ink-2); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav svg { flex: none; }
.sidebar .who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--ink-2); font-size: var(--t-sm); color: #C4CAD6; }
.sidebar .who strong { display: block; color: #fff; font-weight: 600; }
.sidebar .who .btn { margin-top: 10px; background: transparent; border-color: var(--ink-2); color: #C4CAD6; min-height: 34px; }
.sidebar .who .btn:hover { color: #fff; border-color: #3A4459; }

.main { padding: 32px clamp(16px, 4vw, 48px) 64px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .titles { flex: 1; min-width: 220px; }
.page-head .titles p { margin-top: 4px; }
.crumbs { font-size: var(--t-sm); color: var(--slate); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.mobile-bar, .tabbar { display: none; }
@media (max-width: 860px) {
  .shell { display: block; background: none; }
  .page-head > .row { width: 100%; }
  .page-head > .row > .btn, .page-head > .btn { flex: 1; }
  .sidebar { display: none; }
  .mobile-bar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 10;
    background: var(--ink); color: #fff; padding: 12px 16px;
  }
  .mobile-bar .who { margin-left: auto; font-size: var(--t-xs); color: #C4CAD6; text-align: right; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
    background: var(--paper); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px;
    font-size: 0.75rem; font-weight: 600; color: var(--slate); text-decoration: none;
  }
  .tabbar a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--orange); }
  .main { padding: 20px 16px 96px; }
}

/* ---------------------------------------------------------------------
   Panneaux et tableaux
   --------------------------------------------------------------------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-pad { padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.toolbar .input { max-width: 340px; min-height: 40px; }

.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th {
  text-align: left; font-weight: 600; color: var(--slate);
  padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.link { cursor: pointer; }
.table tbody tr.link:hover td { background: #F8F9FB; }
.table .primary-cell strong { display: block; font-weight: 600; font-size: var(--t-md); }
.table .primary-cell { min-width: 150px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
@media (max-width: 720px) {
  .table.responsive thead { display: none; }
  .table.responsive tr { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table.responsive td { padding: 0; border: 0; }
  .table.responsive td:empty { display: none; }
  .table.responsive td.num { text-align: left; }
  .table.responsive td[data-label]::before { content: attr(data-label) " : "; color: var(--slate); }
  .table.responsive .actions { text-align: left; }
}

.empty { padding: 40px 24px; text-align: center; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--slate); max-width: 46ch; margin: 0 auto; }
.empty .row { justify-content: center; margin-top: 20px; }

/* Premiers pas : une vraie séquence, donc numérotée */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 650; font-size: var(--t-sm);
  background: var(--ground); color: var(--slate);
}
.steps li.done::before { content: "✓"; background: var(--ok-tint); color: var(--ok); }
.steps li strong { display: block; }
@media (max-width: 560px) { .steps li { grid-template-columns: 36px 1fr; } .steps li > :last-child { grid-column: 2; } }

/* ---------------------------------------------------------------------
   Fenêtres, notifications, suggestions d'adresse
   --------------------------------------------------------------------- */
dialog.modal {
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); color: var(--ink);
}
dialog.modal::backdrop { background: rgba(10, 14, 26, 0.45); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: #FAFBFC; }

.toasts { position: fixed; z-index: 100; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); }
.toast { padding: 12px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: var(--t-sm); box-shadow: var(--shadow-pop); }
.toast.bad { background: var(--bad); }
@media (max-width: 860px) { .toasts { bottom: 84px; } }

.suggest { position: relative; }
.suggest-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-pop);
}
.suggest-list li { padding: 8px 10px; border-radius: 4px; cursor: pointer; font-size: var(--t-sm); }
.suggest-list li[aria-selected="true"], .suggest-list li:hover { background: var(--ground); }

.copybox { display: flex; gap: 8px; }
.copybox .input { font-size: var(--t-sm); }
.message-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; background: var(--ground); border-radius: var(--r-sm); font-size: var(--t-sm); }

/* Import */
.dropzone {
  display: grid; place-items: center; gap: 8px; text-align: center;
  padding: 40px 20px; border: 2px dashed #C9CFD9; border-radius: var(--r-md); background: var(--paper);
  cursor: pointer;
}
.dropzone.over { border-color: var(--orange); background: #FFF8EC; }
.progress { height: 8px; background: var(--ground); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--orange); width: 0; transition: width 0.2s; }
.mapping { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sequence { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.sequence li { font-size: var(--t-sm); color: var(--slate); padding: 4px 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.sequence li[aria-current="step"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }

.loading { padding: 64px 24px; text-align: center; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------------
   Traceurs : QR à l'écran, suivi de l'association
   --------------------------------------------------------------------- */
.qr svg { width: 100%; height: 100%; display: block; }
.pair-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 560px) { .pair-layout { grid-template-columns: 1fr; justify-items: center; } }
.pair-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.pair-log li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pair-url { font-size: var(--t-xs); color: var(--slate); overflow-wrap: anywhere; }
.or { display: flex; align-items: center; gap: 12px; color: var(--slate); font-size: var(--t-sm); margin: 20px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-list input { margin-top: 3px; }
.radio-list small { display: block; color: var(--slate); }
.section-gap { margin-top: 16px; }

/* ---------------------------------------------------------------------
   Impression : seule la zone à imprimer apparaît
   --------------------------------------------------------------------- */
.print-area { display: none; }
@media print {
  body.printing > :not(.print-area) { display: none !important; }
  body.printing .print-area { display: block; }
  body.printing { background: #fff; }
  .label-key {
    display: flex; gap: 4mm; align-items: center;
    width: 90mm; padding: 4mm; border: 0.3mm dashed #999; border-radius: 3mm;
    font-family: var(--font); color: #000;
  }
  .label-key .qr { width: 32mm !important; height: 32mm !important; flex: none; }
  .label-key strong { display: block; font-size: 13pt; }
  .label-key span { display: block; font-size: 9pt; }
  .label-key .label-code { font-weight: 700; margin-top: 2mm; letter-spacing: 0.1em; }
  .label-key .label-hint { color: #444; margin-top: 1mm; }
  .poster { width: 148mm; min-height: 200mm; margin: 0 auto; text-align: center; font-family: var(--font); color: #000; }
  .poster h1 { font-size: 24pt; line-height: 1.15; margin: 4mm 0 8mm; }
  .poster .qr { width: 90mm !important; height: 90mm !important; margin: 0 auto; }
  .poster-kicker { font-size: 13pt; font-weight: 600; }
  .poster-steps { font-size: 13pt; max-width: 120mm; margin: 8mm auto 0; }
  .poster-foot { font-size: 9pt; color: #555; margin-top: 10mm; }
  @page { margin: 12mm; }
}

/* ---------------------------------------------------------------------
   Tableau de bord
   --------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  display: grid; gap: 2px; text-align: left; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; text-decoration: none; color: var(--ink);
}
.tile:hover { border-color: #C5CBD6; }
.tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tile-n { font-size: 2rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.tile-l { font-size: var(--t-sm); color: var(--slate); }
.tile.bad .tile-n { color: var(--bad); }
.tile.warn .tile-n { color: var(--warn); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles > :last-child { grid-column: span 2; } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.dash-grid > .stack > * + * { margin-top: 16px; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }

/* Historique */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.feed-item:first-child { border-top: 0; }
@media (max-width: 560px) { .feed-item { grid-template-columns: 1fr; gap: 2px; } }

/* Inventaire */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.check-list li.done { background: #F7FBF9; }
.check-list input { width: 20px; height: 20px; }
.check-list .what { flex: 1; }
.progress-line { display: flex; align-items: center; gap: 12px; }
.progress-line .progress { flex: 1; }

/* ---------------------------------------------------------------------
   Passerelle Osly : le seul bloc sombre de l'application
   --------------------------------------------------------------------- */
.osly-panel {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 24px;
  background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 28px;
}
.osly-panel h2 { font-size: var(--t-xl); letter-spacing: -0.02em; max-width: 22ch; }
.osly-copy { display: grid; gap: 12px; align-content: start; }
.osly-copy p { color: #C4CAD6; max-width: 52ch; }
.osly-facts { color: var(--orange) !important; font-weight: 600; }
.osly-small { font-size: var(--t-sm); color: #9AA3B5 !important; }
.osly-quote { background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 20px; display: grid; gap: 14px; align-content: start; }
.osly-quote .osly-small { color: var(--slate) !important; }
.osly-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.osly-line small { display: block; color: var(--slate); font-size: var(--t-xs); }
.osly-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
.osly-stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.osly-stepper button:hover { background: var(--ground); }
.osly-qty { min-width: 28px; text-align: center; font-weight: 650; }
.osly-sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.osly-total { font-size: 1.75rem; letter-spacing: -0.02em; }
.osly-sent { padding: 12px; border-radius: var(--r-sm); background: var(--ok-tint); color: var(--ok); font-weight: 600; }
.osly-status { font-size: var(--t-sm); color: var(--slate); }
.osly-status:empty { display: none; }
@media (max-width: 760px) { .osly-panel { grid-template-columns: 1fr; padding: 20px; } }
.osly-callout { padding: 20px; border-radius: var(--r-md); background: #FFF6E6; border: 1px solid #F7D9A3; display: grid; gap: 10px; }
.osly-callout h2 { font-size: var(--t-lg); }

/* Back-office */
.bo-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.bo-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: var(--t-sm); cursor: pointer; }
.bo-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.bo-score { font-weight: 700; font-size: var(--t-lg); }
.codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-sm); display: flex; flex-wrap: wrap; gap: 6px 12px; }
