/* Wilik — theme tokens.
   Source: "TEMA PROFESIONAL" layer of docs/reference/ui/bandeja-crm-anuncios.html (l.390–413).
   Theme resolution without JS (no flash on load):
   - no data-theme or data-theme="system": follows the OS (prefers-color-scheme)
   - data-theme="light" / "dark": the user's choice, stored on the account */

:root {
  --bg: #f3f3ee; --panel: #fff; --line: #e6e6e0; --text: #1a1a18; --muted: #6f6f68;
  --ink: #1a1a18; --on-ink: #fff; --sel: #e8e8e2;
  --acc: #2457e6; --acc-ink: #1d4bc8; --acc-soft: #e7eefc; --acc-soft2: #f3f7fe; --hover: #f1f1ec;
  --in: #f3f3ee; --out: #dbe7fd; --note: #fdf1c4; --note-line: #ecd98a;
  --ok: #0f8a4f; --ok-s: #e0f4e8; --warn: #a8650a; --warn-s: #fdf0d3; --bad: #c93232; --bad-s: #fbe6e6;
  --r: 10px; --sh: 0 8px 24px rgba(20, 20, 10, .12);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f6f68' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #141413; --panel: #1c1c1a; --line: #2e2e2b; --text: #eeeeea; --muted: #9a9a92;
  --ink: #f2f2ee; --on-ink: #141413; --sel: #2b2b28;
  --acc: #6f95ff; --acc-ink: #9db7ff; --acc-soft: #1d2a4d; --acc-soft2: #182036; --hover: #242422;
  --in: #242422; --out: #1f3158; --note: #3a3416; --note-line: #5b5122;
  --ok: #4cc38a; --ok-s: #12301f; --warn: #e8b04a; --warn-s: #3a2f12; --bad: #f07272; --bad-s: #3b1a1a;
  --sh: 0 8px 24px rgba(0, 0, 0, .5);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a92' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Same dark values when the OS asks for dark and the user did not pick light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --panel: #1c1c1a; --line: #2e2e2b; --text: #eeeeea; --muted: #9a9a92;
    --ink: #f2f2ee; --on-ink: #141413; --sel: #2b2b28;
    --acc: #6f95ff; --acc-ink: #9db7ff; --acc-soft: #1d2a4d; --acc-soft2: #182036; --hover: #242422;
    --in: #242422; --out: #1f3158; --note: #3a3416; --note-line: #5b5122;
    --ok: #4cc38a; --ok-s: #12301f; --warn: #e8b04a; --warn-s: #3a2f12; --bad: #f07272; --bad-s: #3b1a1a;
    --sh: 0 8px 24px rgba(0, 0, 0, .5);
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a92' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
