/* ============================================================
   medtool.ro · components.css
   Vocabularul comun. Aceleași nume de clase în MedCheck și Meditecha.
   ------------------------------------------------------------
   CONVENȚIE
     .mt-card            bloc
     .mt-card__head      element (un singur nivel, niciodată __a__b)
     .mt-card--sunk      modificator
     .mt-card.is-open    stare (is-* / has-*, mereu lipită de bloc)

   REGULI (nu se încalcă)
     1. Plafon de specificitate 0,2,0. Zero !important. Zero #id.
     2. Niciun selector descendent între blocuri. Dacă butonul din card diferă,
        primește modificator — nu se scrie .mt-card .mt-btn.
     3. Componentele nu-și setează margin / width / position de plasare.
        Plasarea aparține paginii. Asta face fișierul reutilizabil în ambele
        aplicații fără fork.
     4. px, niciodată rem: MedCheck are html{font-size:14px}, Meditecha 16px.
     5. Mobile-first. Regulile de bază sunt cele de telefon; desktopul e excepția.
   ============================================================ */

@layer components {

  /* ══════════════ BAZĂ ══════════════ */

  .mt-app {
    min-height: 100vh;          /* rezervă */
    min-height: 100dvh;         /* bara de adresă Android nu mai taie ecranul */
    background: var(--mt-bg);
    color: var(--mt-ink);
    font-family: var(--mt-font);
    font-size: var(--mt-fs-base);
    line-height: var(--mt-lh-ui);
    -webkit-text-size-adjust: 100%;
  }

  /* Plasare — singurele trei clase cărora le e permis să atingă layout-ul. */
  .mt-page  { padding: 0 var(--mt-gutter); }
  .mt-stack { display: flex; flex-direction: column; gap: var(--mt-s4); }
  .mt-row   { display: flex; align-items: center; gap: var(--mt-s2); flex-wrap: wrap; }

  /* ══════════════ SEMNĂTURA — utilizarea 1 și 2 din 3 ══════════════ */

  /* 1. Marca de brand */
  .mt-mark {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    flex: none;
    border-radius: 9px;
    background: var(--mt-grad-brand);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
    color: #fff;
    font-weight: 800;
    font-size: var(--mt-fs-lg);
    letter-spacing: -.02em;
  }
  .mt-mark--lg { width: 56px; height: 56px; border-radius: 14px; font-size: var(--mt-fs-3xl); }

  /* 2. Rigla de sub titlu */
  .mt-rule {
    height: 4px;
    width: 52px;
    border-radius: 999px;
    background: var(--mt-grad-brand);
  }

  /* ══════════════ EYEBROW / ETICHETĂ ══════════════ */

  .mt-eyebrow {
    font-size: var(--mt-fs-xs);
    font-weight: 700;
    letter-spacing: var(--mt-track-eyebrow);
    text-transform: uppercase;
    color: var(--mt-accent-deep);
  }
  .mt-label {
    font-size: var(--mt-fs-micro);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mt-label);
  }

  /* ══════════════ HERO ══════════════ */

  .mt-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--mt-s3);
    padding: 12px 16px;
    border: 1px solid var(--mt-accent-line);
    border-radius: 14px;
    background: var(--mt-grad-hero);
    box-shadow: var(--mt-e1);
  }
  /* Blob-urile decorative: profunzime din culoare, nu din imagini. */
  .mt-hero::before,
  .mt-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }
  .mt-hero::before {
    width: 160px; height: 160px;
    top: -70px; right: -40px;
    background: radial-gradient(circle, color-mix(in srgb, var(--mt-accent) 14%, transparent), transparent 70%);
  }
  .mt-hero::after {
    width: 140px; height: 140px;
    bottom: -70px; left: 10%;
    background: radial-gradient(circle, color-mix(in srgb, var(--mt-ok-solid) 12%, transparent), transparent 70%);
  }

  .mt-hero__ic {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    flex: none;
    border-radius: 10px;
    background: var(--mt-accent);
    color: var(--mt-accent-ink);
    font-size: var(--mt-fs-xl);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--mt-accent) 30%, transparent);
  }
  .mt-hero__body  { min-width: 0; flex: 1; position: relative; }
  .mt-hero__title {
    margin: 0;
    font-size: var(--mt-fs-lg);
    font-weight: 800;
    line-height: var(--mt-lh-tight);
    letter-spacing: -.01em;
    color: var(--mt-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Pe telefon headerul stă pe UN rând: subtitlul și cifrele se ascund. */
  .mt-hero__sub   { display: none; margin: 3px 0 0; font-size: var(--mt-fs-meta); color: var(--mt-muted); }
  .mt-hero__stats { display: none; }
  .mt-hero__actions { display: flex; gap: var(--mt-s2); flex: 1 1 100%; position: relative; }

  .mt-hero__stat { display: flex; flex-direction: column; gap: 2px; }
  .mt-hero__num {
    font-size: var(--mt-fs-3xl);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--mt-accent-deep);
    font-variant-numeric: tabular-nums;   /* cifrele nu mai „sar" la actualizare */
  }
  .mt-hero__cap {
    font-size: var(--mt-fs-micro);
    font-weight: 700;
    letter-spacing: var(--mt-track-eyebrow);
    text-transform: uppercase;
    color: var(--mt-muted);
  }

  @media (min-width: 601px) {
    .mt-hero { padding: var(--mt-hero-pad); border-radius: var(--mt-hero-r); gap: var(--mt-s5); flex-wrap: nowrap; }
    .mt-hero__ic { width: 46px; height: 46px; border-radius: 13px; font-size: var(--mt-fs-2xl); }
    .mt-hero__title { font-size: var(--mt-fs-2xl); }
    .mt-hero__sub { display: block; }
    .mt-hero__stats { display: flex; align-items: center; gap: var(--mt-s6); flex: none; position: relative; }
    .mt-hero__actions { flex: none; margin-left: auto; }
  }

  /* ══════════════ CARD ══════════════ */

  .mt-card {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-r-md);
    box-shadow: var(--mt-e1);
  }
  .mt-card--flat { box-shadow: none; }
  .mt-card--sunk { background: var(--mt-surface-sunk); box-shadow: none; }
  .mt-card--float{ box-shadow: var(--mt-e2); border-color: transparent; }

  .mt-card__head {
    display: flex;
    align-items: center;
    gap: var(--mt-s2);
    padding: var(--mt-s3) var(--mt-s4);
    border-bottom: 1px solid var(--mt-divider);
  }
  .mt-card__title { margin: 0; font-size: var(--mt-fs-md); font-weight: 700; color: var(--mt-ink); }
  .mt-card__body  { padding: var(--mt-card-pad); }
  .mt-card__foot  {
    display: flex;
    align-items: center;
    gap: var(--mt-s2);
    padding: var(--mt-s3) var(--mt-s4);
    border-top: 1px solid var(--mt-divider);
  }

  /* ══════════════ BUTON ══════════════ */

  .mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mt-s2);
    min-height: var(--mt-tap);
    padding: 0 var(--mt-s4);
    border: 1px solid transparent;
    border-radius: var(--mt-r-sm);
    background: var(--mt-surface);
    color: var(--mt-ink-soft);
    font-family: inherit;
    font-size: var(--mt-fs-base);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: background var(--mt-dur-fast) var(--mt-ease),
                border-color var(--mt-dur-fast) var(--mt-ease),
                color var(--mt-dur-fast) var(--mt-ease);
  }
  .mt-btn:focus-visible { outline: none; box-shadow: var(--mt-ring); }
  .mt-btn[disabled], .mt-btn.is-disabled { opacity: .5; pointer-events: none; }
  .mt-btn__ic { width: 16px; height: 16px; flex: none; }

  /* Primar — un singur primar pe ecran. Rampă de accent, nu semnătura. */
  .mt-btn--primary {
    background: var(--mt-grad-accent);
    border-color: transparent;
    color: var(--mt-accent-ink);
  }
  .mt-btn--primary:hover { filter: brightness(1.06); }

  /* Ghost — acțiunea secundară obișnuită */
  .mt-btn--ghost { background: var(--mt-surface); border-color: var(--mt-border); }
  .mt-btn--ghost:hover { border-color: var(--mt-accent); color: var(--mt-accent-deep); }

  /* Hero — butonul din antet, identic pe telefon și desktop */
  .mt-btn--hero {
    background: var(--mt-surface);
    border: 1.5px solid var(--mt-accent);
    color: var(--mt-accent-deep);
  }
  .mt-btn--hero:hover { background: var(--mt-accent-tint); }

  /* Confirmare finală — verde brand (Salvează, Finalizează) */
  .mt-btn--ok { background: var(--mt-ok-solid); border-color: transparent; color: #fff; }
  .mt-btn--ok:hover { background: var(--mt-ok-solid-deep); }

  .mt-btn--danger { background: transparent; border-color: var(--mt-danger-line); color: var(--mt-danger); }
  .mt-btn--danger:hover { background: var(--mt-danger-bg); }

  .mt-btn--sm   { font-size: var(--mt-fs-sm); padding: 0 var(--mt-s3); }
  .mt-btn--icon { width: var(--mt-tap); padding: 0; }
  .mt-btn--block{ width: 100%; }

  .mt-btn.is-active { background: var(--mt-accent); border-color: var(--mt-accent); color: var(--mt-accent-ink); }

  @media (min-width: 601px) {
    .mt-btn        { min-height: var(--mt-btn-h); }
    .mt-btn--sm    { min-height: var(--mt-btn-h-sm); }
    .mt-btn--icon  { width: var(--mt-btn-h); }
    .mt-btn--icon.mt-btn--sm { width: var(--mt-btn-h-sm); }
  }

  /* ══════════════ CHIP (filtru / comutator) ══════════════ */

  .mt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--mt-tap);
    padding: 0 var(--mt-s3);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-r-pill);
    background: var(--mt-surface);
    color: var(--mt-ink-soft);
    font-family: inherit;
    font-size: var(--mt-fs-sm);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background var(--mt-dur-fast) var(--mt-ease),
                border-color var(--mt-dur-fast) var(--mt-ease),
                color var(--mt-dur-fast) var(--mt-ease);
  }
  .mt-chip:focus-visible { outline: none; box-shadow: var(--mt-ring); }
  .mt-chip:hover { border-color: var(--mt-accent); color: var(--mt-accent-deep); }
  .mt-chip.is-on {
    background: var(--mt-accent-tint);
    border-color: var(--mt-accent);
    color: var(--mt-accent-deep);
  }
  /* Varianta pentru banda întunecată — chrome rămâne chrome. */
  .mt-chip--chrome { background: var(--mt-chrome-2); border-color: var(--mt-chrome-line); color: var(--mt-chrome-muted); }
  .mt-chip--chrome:hover { color: var(--mt-chrome-text); border-color: var(--mt-accent); }
  .mt-chip--chrome.is-on { background: color-mix(in srgb, var(--mt-accent) 20%, transparent); color: #fff; border-color: var(--mt-accent); }

  @media (min-width: 601px) { .mt-chip { min-height: 30px; } }

  /* ══════════════ STATUS ══════════════
     Niciodată doar culoare: bulină + etichetă, întotdeauna. */

  .mt-status {
    --_t: var(--mt-st-gray);
    --_b: var(--mt-st-gray-bg);
    --_d: var(--mt-st-gray-dot);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--mt-r-pill);
    background: var(--_b);
    color: var(--_t);
    font-size: var(--mt-fs-sm);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
  }
  .mt-status__dot {
    width: 8px; height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--_d);
  }
  .mt-status--green  { --_t: var(--mt-st-green);  --_b: var(--mt-st-green-bg);  --_d: var(--mt-st-green-dot); }
  .mt-status--blue   { --_t: var(--mt-st-blue);   --_b: var(--mt-st-blue-bg);   --_d: var(--mt-st-blue-dot); }
  .mt-status--orange { --_t: var(--mt-st-orange); --_b: var(--mt-st-orange-bg); --_d: var(--mt-st-orange-dot); }
  .mt-status--amber  { --_t: var(--mt-st-amber);  --_b: var(--mt-st-amber-bg);  --_d: var(--mt-st-amber-dot); }
  .mt-status--gray   { --_t: var(--mt-st-gray);   --_b: var(--mt-st-gray-bg);   --_d: var(--mt-st-gray-dot); }
  .mt-status--violet { --_t: var(--mt-st-violet); --_b: var(--mt-st-violet-bg); --_d: var(--mt-st-violet-dot); }
  .mt-status--cyan   { --_t: var(--mt-st-cyan);   --_b: var(--mt-st-cyan-bg);   --_d: var(--mt-st-cyan-dot); }
  .mt-status--rose   { --_t: var(--mt-st-rose);   --_b: var(--mt-st-rose-bg);   --_d: var(--mt-st-rose-dot); }
  .mt-status--accent { --_t: var(--mt-st-accent); --_b: var(--mt-st-accent-bg); --_d: var(--mt-st-accent-dot); }

  /* Bulină liberă, pentru rândurile de listă (fără pastilă) */
  .mt-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mt-st-gray-dot); }
  .mt-dot--green { background: var(--mt-st-green-dot); }
  .mt-dot--blue  { background: var(--mt-st-blue-dot); }
  .mt-dot--amber { background: var(--mt-st-amber-dot); }

  /* ══════════════ ITEM DE LISTĂ — utilizarea 3 din 3 a semnăturii ══════════════ */

  .mt-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--mt-s2);
    min-height: var(--mt-tap);
    padding: var(--mt-s2) var(--mt-s3);
    border-radius: var(--mt-r-sm);
    cursor: pointer;
    color: var(--mt-ink-soft);
    transition: background var(--mt-dur-fast) var(--mt-ease);
  }
  .mt-item:focus-visible { outline: none; box-shadow: var(--mt-ring); }
  .mt-item:hover { background: var(--mt-surface-sunk); }
  .mt-item__title {
    flex: 1;
    min-width: 0;
    font-size: var(--mt-fs-base);
    line-height: 1.3;
    color: var(--mt-ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .mt-item__meta { flex: none; font-size: var(--mt-fs-xs); font-weight: 600; color: var(--mt-muted); }

  .mt-item.is-active { background: var(--mt-accent-tint); }
  .mt-item.is-active::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 999px;
    background: var(--mt-grad-brand);   /* 3/3 — indicatorul de element activ */
  }

  .mt-item--chrome { color: var(--mt-chrome-text); }
  .mt-item--chrome:hover { background: var(--mt-chrome-2); }
  .mt-item--chrome .mt-item__title { color: var(--mt-chrome-text); }
  .mt-item--chrome .mt-item__meta  { color: var(--mt-chrome-muted); }
  .mt-item--chrome.is-active { background: color-mix(in srgb, var(--mt-accent) 18%, transparent); }

  /* ══════════════ TOOLBAR ══════════════ */

  .mt-toolbar {
    position: sticky;
    top: 0;
    z-index: var(--mt-z-topbar);
    display: flex;
    align-items: center;
    gap: var(--mt-s2);
    min-height: 56px;
    padding: var(--mt-s2) var(--mt-gutter);
    border-bottom: 1px solid var(--mt-border);
    background: color-mix(in srgb, var(--mt-bg) 92%, transparent);
    backdrop-filter: blur(8px);
    padding-top: calc(var(--mt-s2) + env(safe-area-inset-top));
  }
  .mt-toolbar__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: var(--mt-fs-md);
    font-weight: 700;
    line-height: var(--mt-lh-tight);
    color: var(--mt-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mt-toolbar__group { display: flex; align-items: center; gap: 6px; flex: none; }
  .mt-toolbar__spacer{ flex: 1; }

  /* ══════════════ CÂMPURI ══════════════ */

  .mt-field { display: flex; flex-direction: column; gap: 6px; }
  .mt-field__label { font-size: var(--mt-fs-meta); font-weight: 600; color: var(--mt-ink-soft); }
  .mt-field__hint  { font-size: var(--mt-fs-sm); color: var(--mt-muted); }
  .mt-field__error { font-size: var(--mt-fs-sm); font-weight: 600; color: var(--mt-danger); }

  .mt-input, .mt-select, .mt-textarea {
    width: 100%;
    min-height: var(--mt-tap);
    padding: 10px 12px;
    border: 1px solid var(--mt-border-strong);
    border-radius: var(--mt-r-sm);
    background: var(--mt-surface);
    color: var(--mt-ink);
    font-family: inherit;
    font-size: 16px;            /* sub 16px, browserul mobil face zoom la focus */
    line-height: 1.4;
    transition: border-color var(--mt-dur-fast) var(--mt-ease),
                box-shadow var(--mt-dur-fast) var(--mt-ease);
  }
  .mt-textarea { min-height: 96px; resize: vertical; }
  .mt-input::placeholder, .mt-textarea::placeholder { color: var(--mt-muted); }
  .mt-input:focus-visible, .mt-select:focus-visible, .mt-textarea:focus-visible {
    outline: none;
    border-color: var(--mt-accent);
    box-shadow: var(--mt-ring);
  }
  .mt-input.is-invalid, .mt-textarea.is-invalid { border-color: var(--mt-danger); }
  .mt-input[disabled], .mt-select[disabled], .mt-textarea[disabled] {
    background: var(--mt-surface-sunk);
    color: var(--mt-muted);
  }
  .mt-select {
    appearance: none;
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 17px) center, calc(100% - 12px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
  }

  @media (min-width: 601px) {
    .mt-input, .mt-select, .mt-textarea {
      min-height: var(--mt-field-h);
      font-size: var(--mt-fs-base);
      padding: 9px 11px;
    }
  }

  /* ══════════════ DIALOG ══════════════
     Pe telefon: foaie de jos. Pe desktop: centrat. Fără modificator. */

  .mt-dialog {
    position: fixed;
    inset: 0;
    z-index: var(--mt-z-dialog);
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: var(--mt-overlay);
  }
  .mt-dialog.is-open { display: flex; }
  .mt-dialog__panel {
    width: 100%;
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
    background: var(--mt-surface);
    border-radius: var(--mt-r-lg) var(--mt-r-lg) 0 0;
    box-shadow: var(--mt-e3);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mt-dialog__head {
    display: flex;
    align-items: center;
    gap: var(--mt-s2);
    padding: var(--mt-s4) var(--mt-s4) var(--mt-s3);
    border-bottom: 1px solid var(--mt-divider);
  }
  .mt-dialog__title { margin: 0; font-size: var(--mt-fs-md); font-weight: 700; color: var(--mt-ink); flex: 1; }
  .mt-dialog__body  { padding: var(--mt-s4); overflow-y: auto; }
  .mt-dialog__foot  {
    display: flex;
    gap: var(--mt-s2);
    padding: var(--mt-s3) var(--mt-s4) var(--mt-s4);
    border-top: 1px solid var(--mt-divider);
  }
  .mt-dialog__foot > .mt-btn { flex: 1; }

  @media (min-width: 601px) {
    .mt-dialog { align-items: center; }
    .mt-dialog__panel { width: min(520px, calc(100% - 48px)); max-height: 84dvh; border-radius: var(--mt-r-lg); }
    .mt-dialog__foot { justify-content: flex-end; }
    .mt-dialog__foot > .mt-btn { flex: none; }
  }

  /* ══════════════ TOAST ══════════════ */

  .mt-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--mt-s4) + env(safe-area-inset-bottom));
    z-index: var(--mt-z-toast);
    max-width: calc(100% - 2 * var(--mt-gutter));
    padding: 11px var(--mt-s4);
    border-radius: var(--mt-r-md);
    background: var(--mt-chrome);
    color: #fff;
    font-size: var(--mt-fs-base);
    font-weight: 600;
    box-shadow: var(--mt-e2);
    transform: translate(-50%, 80px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--mt-dur-slow) var(--mt-ease),
                opacity var(--mt-dur-slow) var(--mt-ease);
  }
  .mt-toast.is-open { transform: translate(-50%, 0); opacity: 1; }
  .mt-toast--ok     { background: var(--mt-ok-solid-deep); }
  .mt-toast--danger { background: var(--mt-danger); }

  /* ══════════════ STARE GOALĂ ══════════════
     E o invitație la acțiune, nu un mesaj trist. */

  .mt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--mt-s3);
    padding: var(--mt-s7) var(--mt-s5);
  }
  .mt-empty__ic {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: var(--mt-r-xl);
    background: var(--mt-accent-tint);
    color: var(--mt-accent-deep);
    font-size: var(--mt-fs-3xl);
  }
  .mt-empty__title { margin: 0; font-size: var(--mt-fs-md); font-weight: 700; color: var(--mt-ink); }
  .mt-empty__text  { margin: 0; max-width: 34ch; font-size: var(--mt-fs-base); line-height: 1.55; color: var(--mt-muted); }

  /* ══════════════ CALLOUT ══════════════ */

  .mt-callout {
    --_c: var(--mt-accent);
    --_b: var(--mt-accent-tint);
    padding: var(--mt-s3) var(--mt-s4);
    border-left: 4px solid var(--_c);
    border-radius: 0 var(--mt-r-sm) var(--mt-r-sm) 0;
    background: var(--_b);
    font-size: var(--mt-fs-base);
    line-height: 1.6;
    color: var(--mt-ink-soft);
  }
  .mt-callout--ok     { --_c: var(--mt-ok);     --_b: var(--mt-ok-bg); }
  .mt-callout--warn   { --_c: var(--mt-warn);   --_b: var(--mt-warn-bg); }
  .mt-callout--danger { --_c: var(--mt-danger); --_b: var(--mt-danger-bg); }
  .mt-callout--info   { --_c: var(--mt-info);   --_b: var(--mt-info-bg); }

  /* ══════════════ EVIDENȚIATOR (doar Meditecha) ══════════════ */

  .mt-hl { border-radius: 3px; padding: 0 2px; color: var(--mt-hl-ink); transition: background var(--mt-dur-fast) var(--mt-ease); }
  .mt-hl--yellow { background: var(--mt-hl-yellow); }
  .mt-hl--green  { background: var(--mt-hl-green); }
  .mt-hl--teal   { background: var(--mt-hl-teal); }
  .mt-hl--pink   { background: var(--mt-hl-pink); }
  .mt-hl.has-note { box-shadow: inset 0 -2px 0 var(--mt-accent-deep); }
  .mt-hl.has-note::after { content: "✦"; font-size: .7em; vertical-align: super; margin-left: 2px; color: var(--mt-accent-deep); }

  /* Coloana de lectură — singurul loc unde trăiește --mt-fs-read */
  .mt-read {
    font-family: var(--mt-font-read);
    font-size: var(--mt-fs-read);
    line-height: var(--mt-lh-read);
    color: var(--mt-ink);
    max-width: var(--mt-measure);
  }

  /* ══════════════ MIȘCARE REDUSĂ ══════════════ */

  @media (prefers-reduced-motion: reduce) {
    .mt-btn, .mt-chip, .mt-item, .mt-input, .mt-select, .mt-textarea, .mt-hl {
      transition-duration: 1ms;
    }
    .mt-toast { transition: opacity var(--mt-dur-base) linear; transform: translate(-50%, 0); }
  }

}
