/* ══════════════════════════════════════════════════════════
   Fluxo Menu — design system
   Base neutra clara, um unico accent, sem gradientes decorativos.
   ══════════════════════════════════════════════════════════ */

:root {
  /* Superficies — cinza levemente quente, nao azulado */
  --bg:        #F7F7F8;
  --surface:   #FFFFFF;
  --surface-2: #FAFAFB;
  --surface-3: #F2F2F4;

  /* Tinta */
  --ink:       #16151A;
  --ink-2:     #4A4854;
  --ink-3:     #78757F;
  --ink-4:     #A5A2AC;

  /* Bordas */
  --line:      #E7E6EA;
  --line-2:    #DCDAE0;

  /* Accent — roxo da marca */
  --accent:      #6D28D9;
  --accent-hover:#5B21B6;
  --accent-soft: #F3EEFE;
  --accent-line: #DCCDFB;
  --accent-ink:  #5B21B6;

  /* Semanticas */
  --ok:        #0F7B4F;
  --ok-soft:   #E6F4EE;
  --warn:      #9A5B00;
  --warn-soft: #FDF1DF;
  --danger:    #B42318;
  --danger-soft:#FDECEA;
  --info:      #175CD3;
  --info-soft: #EAF1FD;

  /* Forma */
  --r-sm: 6px;
  --r:    9px;
  --r-lg: 13px;
  --r-xl: 18px;

  /* Elevacao — discreta, nunca colorida */
  --sh-sm: 0 1px 2px rgba(16,15,25,.05);
  --sh:    0 1px 3px rgba(16,15,25,.07), 0 1px 2px rgba(16,15,25,.04);
  --sh-lg: 0 12px 28px -8px rgba(16,15,25,.16), 0 4px 10px -4px rgba(16,15,25,.08);
  --sh-xl: 0 28px 60px -16px rgba(16,15,25,.26);

  --sidebar-w: 244px;
  --topbar-h:  60px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Numeros tabulares onde houver valor ou contagem */
.tnum, .stat-v, .money, table.tbl td, .price { font-variant-numeric: tabular-nums; }

/* ────────────────────────────────────────────
   Tipografia
   ──────────────────────────────────────────── */
.h1 { font-size: 1.4rem;  font-weight: 700; letter-spacing: -.022em; line-height: 1.25; }
.h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.014em; }
.h3 { font-size: .9rem;   font-weight: 650; letter-spacing: -.008em; }
.sub  { font-size: .875rem; color: var(--ink-3); }
.muted{ color: var(--ink-3); }
.tiny { font-size: .78rem; color: var(--ink-3); }
.eyebrow {
  font-size: .69rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-4);
}

/* ────────────────────────────────────────────
   Botoes
   ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border-radius: var(--r);
  font-size: .875rem; font-weight: 550; letter-spacing: -.006em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .14s var(--ease), border-color .14s var(--ease),
              color .14s var(--ease), box-shadow .14s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary   { background: var(--accent); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-sm); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); border-color: var(--ink-4); }

.btn-ghost     { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }

.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #98211a; }

.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger-soft:hover:not(:disabled) { background: #fbdcd8; }

.btn-sm { height: 31px; padding: 0 11px; font-size: .8125rem; border-radius: var(--r-sm); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: .9375rem; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--r-sm); }
.btn-icon.btn-sm { width: 29px; height: 29px; }
.btn-block { width: 100%; }

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 15px; height: 15px;
  border: 2px solid currentColor; border-radius: 50%;
  border-top-color: transparent; opacity: .9;
  animation: fx-spin .6s linear infinite;
}
.btn-primary.is-loading::after, .btn-danger.is-loading::after { border-color: #fff; border-top-color: transparent; }
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--ink-2); border-top-color: transparent; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

/* ────────────────────────────────────────────
   Cards
   ──────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-hd {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-bd   { padding: 18px; }
.card-ft   { padding: 13px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
             border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-tight .card-bd { padding: 14px; }

/* Stat tile */
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 17px; box-shadow: var(--sh-sm);
}
.stat-l { font-size: .78rem; font-weight: 500; color: var(--ink-3); margin-bottom: 7px; }
.stat-v { font-size: 1.6rem; font-weight: 680; letter-spacing: -.03em; line-height: 1.1; }
.stat-d { font-size: .76rem; color: var(--ink-4); margin-top: 5px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }

/* ────────────────────────────────────────────
   Formularios
   ──────────────────────────────────────────── */
.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.label {
  display: block; font-size: .8125rem; font-weight: 550;
  color: var(--ink-2); margin-bottom: 6px;
}
.label .req { color: var(--danger); }
.hint { font-size: .78rem; color: var(--ink-4); margin-top: 5px; line-height: 1.45; }

.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: .875rem; color: var(--ink);
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 76px; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input:disabled, .select:disabled { background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; }
.input.is-error, .textarea.is-error {
  border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft);
}
.err-msg { font-size: .78rem; color: var(--danger); margin-top: 5px; display: none; }
.err-msg.show { display: block; }

.select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378757F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}

/* Input com prefixo fixo (ex: URL, R$) */
.input-group { display: flex; align-items: stretch; }
.input-group .addon {
  display: flex; align-items: center; padding: 0 11px;
  background: var(--surface-3); border: 1px solid var(--line-2); border-right: none;
  border-radius: var(--r) 0 0 var(--r);
  font-size: .8125rem; color: var(--ink-3); white-space: nowrap;
}
.input-group .input { min-width: 0; border-radius: 0 var(--r) var(--r) 0; }
.input-group .input:focus { position: relative; z-index: 1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 36px; height: 21px; border-radius: 999px; background: var(--line-2);
  position: relative; transition: background .16s var(--ease); flex-shrink: 0;
}
.switch-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-sm); transition: transform .16s var(--ease);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(15px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--accent-soft); }
.switch-lbl { font-size: .8125rem; color: var(--ink-2); }

/* Checkbox */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .8125rem; color: var(--ink-2); }
.check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Color picker */
.color-field { display: flex; gap: 9px; align-items: center; }
.color-field input[type=color] {
  width: 38px; height: 38px; padding: 3px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
}

/* ────────────────────────────────────────────
   Badges e chips
   ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  white-space: nowrap;
}
.badge-neutral { background: var(--surface-3); color: var(--ink-3); }
.badge-accent  { background: var(--accent-soft); color: var(--accent-ink); }
.badge-ok      { background: var(--ok-soft);     color: var(--ok); }
.badge-warn    { background: var(--warn-soft);   color: var(--warn); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); }
.badge-info    { background: var(--info-soft);   color: var(--info); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 31px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
  transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease);
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .count {
  font-size: .72rem; padding: 0 5px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.chip.active .count { background: rgba(255,255,255,.22); color: #fff; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }

/* ────────────────────────────────────────────
   Tabelas
   ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.tbl th {
  text-align: left; padding: 10px 14px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-4); background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl .num { text-align: right; }

/* ────────────────────────────────────────────
   Modal / Drawer
   ──────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(20, 19, 28, .5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  width: 100%; max-width: 520px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  transform: translateY(10px) scale(.985);
  transition: transform .18s var(--ease);
}
.overlay.open .modal { transform: none; }
.modal-lg { max-width: 680px; }
.modal-sm { max-width: 400px; }

.modal-hd {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  flex-shrink: 0;
}
.modal-hd h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.014em; }
.modal-hd .sub { margin-top: 3px; font-size: .8125rem; }
.modal-bd { padding: 22px; overflow-y: auto; flex: 1; }
.modal-ft {
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2);
  display: flex; gap: 9px; justify-content: flex-end; flex-shrink: 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.modal-x {
  width: 30px; height: 30px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--ink-4);
}
.modal-x:hover { background: var(--surface-3); color: var(--ink); }
.modal-x svg { width: 17px; height: 17px; }

/* Drawer — desliza pela direita no desktop */
.overlay.as-drawer { align-items: stretch; justify-content: flex-end; padding: 0; }
.overlay.as-drawer .modal {
  max-width: 560px; max-height: 100vh; height: 100vh; border-radius: 0;
  transform: translateX(24px);
}
.overlay.as-drawer .modal-ft { border-radius: 0; }
.overlay.as-drawer.open .modal { transform: none; }

/* ────────────────────────────────────────────
   Toast
   ──────────────────────────────────────────── */
.toast-host {
  position: fixed; top: 16px; right: 16px; z-index: 900;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 250px; max-width: 380px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-left: 3px solid var(--ink-4);
  border-radius: var(--r); box-shadow: var(--sh-lg);
  font-size: .875rem; color: var(--ink);
  pointer-events: auto;
  animation: fx-toast-in .22s var(--ease);
}
.toast.leaving { animation: fx-toast-out .18s var(--ease) forwards; }
.toast-ok     { border-left-color: var(--ok); }
.toast-error  { border-left-color: var(--danger); }
.toast-warn   { border-left-color: var(--warn); }
.toast-info   { border-left-color: var(--info); }
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast-ok svg { color: var(--ok); } .toast-error svg { color: var(--danger); }
.toast-warn svg { color: var(--warn); } .toast-info svg { color: var(--info); }
.toast-txt { flex: 1; line-height: 1.45; }
@keyframes fx-toast-in  { from { opacity: 0; transform: translateX(16px); } }
@keyframes fx-toast-out { to   { opacity: 0; transform: translateX(16px); } }

/* ────────────────────────────────────────────
   Skeleton
   ──────────────────────────────────────────── */
.sk {
  background: linear-gradient(90deg, var(--surface-3) 25%, #EAE9ED 37%, var(--surface-3) 63%);
  background-size: 400% 100%;
  animation: fx-sk 1.3s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes fx-sk { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.sk-line { height: 11px; margin-bottom: 8px; }
.sk-line:last-child { margin-bottom: 0; }
.sk-w40 { width: 40%; } .sk-w60 { width: 60%; } .sk-w80 { width: 80%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ────────────────────────────────────────────
   Estado vazio
   ──────────────────────────────────────────── */
.empty { text-align: center; padding: 46px 24px; }
.empty-ico {
  width: 44px; height: 44px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg); background: var(--surface-3); color: var(--ink-4);
}
.empty-ico svg { width: 21px; height: 21px; }
.empty-t { font-size: .9375rem; font-weight: 600; margin-bottom: 5px; }
.empty-d { font-size: .875rem; color: var(--ink-3); max-width: 340px; margin: 0 auto 18px; line-height: 1.55; }

/* ────────────────────────────────────────────
   Utilitarios
   ──────────────────────────────────────────── */
.row     { display: flex; align-items: center; gap: 9px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap{ display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.col     { display: flex; flex-direction: column; gap: 9px; }
.spacer  { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.hidden  { display: none !important; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:14px}.mt-3{margin-top:22px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:14px}.mb-3{margin-bottom:22px}
.text-ok{color:var(--ok)} .text-danger{color:var(--danger)} .text-accent{color:var(--accent-ink)}

/* ────────────────────────────────────────────
   Responsivo
   ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* Campos legíveis no iOS e alvos de toque também no tablet. */
@media (max-width: 820px) {
  .input, .select, .textarea { min-width: 0; min-height: 44px; font-size: 16px; }
  .btn { min-height: 44px; height: auto; padding-block: 8px; white-space: normal; }
  .btn-icon { min-width: 44px; flex-shrink: 0; }
  .switch, .check { min-height: 44px; }
}

@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card-hd, .row-between { flex-wrap: wrap; }
  .card-hd > div, .row-between > *, .grid-2 > *, .grid-stats > * { min-width: 0; overflow-wrap: anywhere; }

  /* Modais e drawers sobem por baixo, ocupando a tela */
  .overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%; max-height: 92vh; max-height: 92dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(24px);
  }
  .modal-ft { border-radius: 0; }
  .overlay.as-drawer .modal {
    height: auto; max-height: 92vh; max-height: 92dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(24px);
  }
  .modal-hd, .modal-bd, .modal-ft { padding-left: 17px; padding-right: 17px; }

  /* Rodape de modal com botoes em largura cheia — nada sai da tela */
  .modal-ft { flex-direction: column-reverse; }
  .modal-ft .btn { width: 100%; }

  .toast-host { top: auto; bottom: 12px; left: 12px; right: 12px; align-items: stretch; }
  .toast { max-width: 100%; min-width: 0; }
}

/* Símbolo da plataforma; não afeta as logos enviadas pelos restaurantes. */
img.fm-brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}
.fx-marca img.fm-brand-icon,
.sb-brand img.fm-brand-icon { width: 32px; height: 32px; }
/* Refinamento dos componentes compartilhados — identidade Fluxo Menu. */
:root {
  --bg: #F6F5F9;
  --ink-3: #625E70;
  --ink-4: #706B7C;
  --r: 11px;
  --r-lg: 16px;
  --r-xl: 22px;
}
.h1 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); letter-spacing: -.035em; }
.sub, .hint { line-height: 1.6; }
.btn { min-height: 42px; height: auto; padding-block: 9px; font-weight: 600; }
.btn-sm { min-height: 36px; padding-block: 7px; }
.btn-primary { box-shadow: 0 2px 3px #37126a14; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .65; }
.btn.is-loading::after { border-color: var(--ink-2); border-top-color: transparent; }
.btn-primary.is-loading::after, .btn-danger.is-loading::after { border-color: #fff; border-top-color: transparent; }
.input, .select { height: 44px; }
.input, .select, .textarea { border-color: #CCC8D5; }
.input::placeholder, .textarea::placeholder { color: #757080; }
.card-hd { padding: 18px 20px; }
.card-bd { padding: 20px; }
.card-hd > *, .page-hd > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.stat { padding: 20px; }
.stat-v { font-size: clamp(1.3rem, 2.4vw, 1.8rem); overflow-wrap: anywhere; }
.stat-l { color: var(--ink-2); }
.empty { padding: 32px 20px; }
.empty-ico { background: var(--accent-soft); color: var(--accent); }
.empty-t { line-height: 1.4; }
.empty-d { max-width: 36ch; margin-inline: auto; }
table.tbl th { color: var(--ink-2); }
.table-wrap { max-width: 100%; border-radius: inherit; }
.overlay { visibility: hidden; }
.overlay.open { visibility: visible; }
.modal-bd { min-height: 0; overscroll-behavior: contain; }
.modal-x { width: 44px; height: 44px; color: var(--ink-2); }
.modal-ft { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.toast-txt { overflow-wrap: anywhere; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: 10px; background: var(--accent); color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
@media (max-width: 860px) {
  .btn, .btn-sm, .chip { min-height: 44px; }
  .btn-icon, .btn-icon.btn-sm { width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .input, .select, .textarea { font-size: 16px; }
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px 14px; }
  .stat-l { font-size: .78rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .toast-host { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
  .btn:active:not(:disabled) { transform: none; }
}
