/* ============================================================
   BoraVoltar — components.css
   Reusable UI primitives
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  min-width: 46px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .08s ease, box-shadow .16s ease;
  user-select: none;
  max-width: 100%;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 6px 18px -8px color-mix(in oklch, var(--primary) 70%, transparent);
}
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 88%, white); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }

.btn-outline {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--surface-2); color: var(--text); }

.btn-whatsapp {
  background: var(--whatsapp-soft);
  color: var(--whatsapp);
  border-color: var(--whatsapp-line);
  font-weight: 600;
  width: 100%;
  height: 46px;
}
.btn-whatsapp:hover { background: color-mix(in oklch, var(--whatsapp) 18%, transparent); }
.btn-whatsapp svg { width: 15px; height: 15px; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: color-mix(in oklch, var(--danger) 88%, black); }

.btn-sm { height: 46px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; }
.btn-icon.btn-sm { width: 46px; }

.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .6s linear infinite;
  color: var(--primary-ink);
}
.btn-ghost.is-loading::after, .btn-outline.is-loading::after { color: var(--text); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards / Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-pad { padding: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.panel-head h3 { font-size: 14.5px; font-weight: 600; }
.panel-title-row { display: flex; align-items: center; gap: 10px; }

/* ---------- Metric card ---------- */
.metric {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.metric::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--st, var(--primary));
}
.metric::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 80px at 12% 0%, var(--st-soft, transparent), transparent 70%);
  opacity: .9; pointer-events: none;
}
.metric:hover { transform: translateY(-2px); border-color: var(--st-line, var(--border-strong)); }
.metric-top { display: flex; align-items: center; gap: 11px; position: relative; }
.metric-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--st-soft, var(--primary-soft));
  color: var(--st, var(--primary));
  border: 1px solid var(--st-line, var(--primary-line));
}
.metric-ico svg { width: 19px; height: 19px; }
.metric-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.metric-value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-top: 9px; position: relative; }
.metric-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; margin-top: 8px; position: relative; }
.metric-delta.up { color: var(--success); }
.metric-delta.down { color: var(--danger); }
.metric-delta .vs { color: var(--text-faint); font-weight: 500; }
.metric-delta svg { width: 12px; height: 12px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0;
  background: var(--st-soft, var(--surface-2));
  color: var(--st, var(--text-soft));
  border: 1px solid var(--st-line, var(--border));
  white-space: nowrap;
  max-width: 100%;
}
.badge-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--st, var(--text-muted));
}
.badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  background: var(--st-soft, var(--surface-2));
  color: var(--st, var(--text-soft));
  border: 1px solid var(--st-line, var(--border));
}
.badge-plain { background: var(--surface-2); color: var(--text-soft); border-color: var(--border); }

.plan-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 10px; border-radius: var(--radius-sm);
  font-size: 11.5px; font-weight: 600;
  background: var(--st-soft); color: var(--st); border: 1px solid var(--st-line);
  max-width: 100%;
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.field-hint { font-size: 11.5px; color: var(--text-faint); }
.field-error { font-size: 11.5px; color: var(--danger); display: flex; gap: 5px; align-items: center; }

.input, .select, .textarea {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-width: 0;
}
.textarea { height: auto; padding: 11px 13px; resize: vertical; min-height: 90px; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-line);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--surface);
}
.input.has-error, .textarea.has-error { border-color: var(--danger-line); box-shadow: 0 0 0 3px var(--danger-soft); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a99ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 36px;
  cursor: pointer;
}

.input-group { position: relative; }
.input-group .input-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); width: 16px; height: 16px; pointer-events: none;
}
.input-group .input { padding-left: 38px; }

/* Toggle / switch */
.switch { position: relative; display: inline-flex; width: 56px; height: 46px; flex: none; align-items: center; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .track {
  position: absolute; left: 5px; right: 5px; top: 9px; height: 28px; border-radius: 999px;
  background: color-mix(in oklch, var(--text-muted) 35%, transparent);
  transition: background .18s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* Checkbox */
.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--text-soft); }
.checkbox input { position: absolute; opacity: 0; width: 46px; height: 46px; }
.checkbox .box {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--border-strong);
  display: grid; place-items: center; transition: all .15s ease; flex: none;
}
.checkbox input:checked + .box { background: var(--primary); border-color: var(--primary); }
.checkbox .box svg { width: 12px; height: 12px; color: var(--primary-ink); opacity: 0; }
.checkbox input:checked + .box svg { opacity: 1; }

/* Segmented control */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); max-width: 100%; }
.segmented button {
  min-height: 46px; padding: 0 14px; border-radius: 5px; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); transition: all .15s ease;
  white-space: nowrap;
}
.segmented button.active { background: var(--surface-elevated); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; width: 100%; max-width: 100%; }
.table { width: 100%; font-size: 13px; }
.table thead th {
  text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text-soft); vertical-align: middle; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table .td-strong { color: var(--text); font-weight: 500; }
.table .td-right { text-align: right; }
.table .td-time { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--text-muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); max-width: 100%; }
.tabs button {
  position: relative; min-height: 46px; padding: 0 14px; font-size: 13.5px; font-weight: 500;
  color: var(--text-muted); transition: color .15s ease;
}
.tabs button:hover { color: var(--text-soft); }
.tabs button.active { color: var(--text); font-weight: 600; }
.tabs button.active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  background: var(--primary); border-radius: 2px 2px 0 0;
}

/* ---------- Avatar ---------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--primary-ink); overflow: hidden; letter-spacing: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-alt { background: linear-gradient(135deg, var(--purple), #8b5cf6); color: #fff; }

/* ---------- Progress bar ---------- */
.progress { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border-soft); }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--st, var(--primary)); }
.progress.thin { height: 5px; }

/* ---------- Tooltip-ish info ---------- */
.ico-btn {
  width: 46px; height: 46px; border-radius: var(--radius-sm); flex: none;
  display: grid; place-items: center; color: var(--text-muted);
  transition: background .14s ease, color .14s ease;
}
.ico-btn:hover { background: var(--surface-2); color: var(--text); }
.ico-btn svg { width: 17px; height: 17px; }

/* ---------- Empty state ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 44px 24px; gap: 12px;
}
.empty-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.empty-ico svg { width: 24px; height: 24px; }
.empty h4 { font-size: 15px; }
.empty p { font-size: 13px; color: var(--text-muted); max-width: 320px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 7, 12, .62);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(8px) scale(.98); transition: transform .2s ease;
  max-height: calc(100vh - 48px); overflow: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal.lg { max-width: 620px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h3 { font-size: 16px; }
.modal-head p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.modal-body { padding: 16px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
.modal-x { margin-left: auto; }

/* Audit banner inside sensitive modals */
.audit-note {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 12px;
  background: var(--warning-soft); border: 1px solid var(--warning-line); color: var(--warning);
  margin-top: 12px;
}
.audit-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  min-width: 270px; max-width: 360px; padding: 13px 15px;
  background: var(--surface-elevated); border: 1px solid var(--st, var(--primary));
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 13px; color: var(--text);
  animation: toast-in .28s cubic-bezier(.2,.8,.2,1);
  min-width: 0;
}
.toast.out { animation: toast-out .25s ease forwards; }
.toast-ico { width: 18px; height: 18px; color: var(--st, var(--primary)); flex: none; }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } }
@keyframes toast-out { to { transform: translateX(20px); opacity: 0; } }

/* ---------- PWA ---------- */
.pwa-status-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pwa-install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pwa-install-card .btn {
  flex: none;
}
.pwa-install-prompt {
  position: fixed;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top));
  bottom: auto;
  z-index: 260;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 42px 1fr auto 46px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  transform: translateX(-50%);
  background: var(--surface-elevated);
  border: 1px solid var(--primary-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
body[data-shell="app"] .pwa-install-prompt,
body[data-shell="gov"] .pwa-install-prompt {
  top: calc(66px + env(safe-area-inset-top));
}
.pwa-install-prompt-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
}
.pwa-install-prompt-ico svg {
  width: 20px;
  height: 20px;
}
.pwa-install-prompt-copy {
  min-width: 0;
}
.pwa-install-prompt-copy strong,
.pwa-install-prompt-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pwa-install-prompt-copy strong {
  font-size: 13.5px;
  line-height: 1.2;
}
.pwa-install-prompt-copy small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}
.btn.is-disabled,
.btn:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.offline-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  background-image: var(--grad-app);
}
.offline-shell > .brand {
  position: fixed;
  top: 22px;
  left: 22px;
}
.offline-panel {
  width: min(100%, 430px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 30px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.offline-panel .metric-ico {
  width: 56px;
  height: 56px;
}
.offline-panel h1 {
  font-size: 24px;
}
.offline-panel p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Responsive component behavior ---------- */
@media (max-width: 760px) {
  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .panel-head > .row,
  .panel-head > .row-between {
    flex-wrap: wrap;
  }
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { height: 0; }
  .tabs button { flex: none; }
  .segmented {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .segmented::-webkit-scrollbar { height: 0; }
  .segmented button { min-height: 46px; }
}

@media (max-width: 640px) {
  .btn {
    white-space: nowrap;
    height: 42px;
    min-height: 42px;
    padding: 0 13px;
    line-height: 1.2;
  }
  .btn-sm {
    height: 40px;
    min-height: 40px;
    min-width: 40px;
    padding: 0 11px;
  }
  .btn-lg {
    min-height: 46px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .btn-icon,
  .ico-btn {
    white-space: nowrap;
    padding: 0;
    min-width: 46px;
    min-height: 46px;
  }
  .badge,
  .plan-badge {
    height: auto;
    min-height: 22px;
    padding-top: 3px;
    padding-bottom: 3px;
    white-space: normal;
    line-height: 1.15;
  }
  .modal-overlay {
    align-items: end;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .modal {
    border-radius: 14px 14px 0 0;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  body.has-page-fab .toast-stack {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
  .toast {
    width: 100%;
    max-width: none;
  }
  .pwa-install-card {
    align-items: stretch;
    flex-direction: column;
  }
  .pwa-install-card .btn {
    width: 100%;
  }
  .pwa-install-prompt {
    top: calc(10px + env(safe-area-inset-top));
    bottom: auto;
    grid-template-columns: 38px minmax(0, 1fr) auto 42px;
    width: calc(100vw - 20px);
  }
  body[data-shell="app"] .pwa-install-prompt,
  body[data-shell="gov"] .pwa-install-prompt {
    top: calc(64px + env(safe-area-inset-top));
  }
  .pwa-install-prompt .btn {
    min-width: 86px;
  }
  .offline-shell {
    padding: 18px;
  }
  .offline-shell > .brand {
    position: static;
    margin-bottom: 18px;
  }
  .offline-panel {
    padding: 22px 18px;
  }
}

@media (display-mode: standalone) {
  .pwa-install-prompt {
    display: none;
  }
}

.inline-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.inline-empty strong {
  color: var(--text-soft);
  font-size: 13.5px;
}
.inline-empty .btn {
  margin-top: 4px;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 1.5px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -26px; top: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--st, var(--primary)); box-shadow: 0 0 0 3px var(--bg);
}
.timeline-time { font-size: 11.5px; color: var(--text-faint); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.timeline-title { font-size: 13.5px; font-weight: 500; color: var(--text); margin-top: 2px; }
.timeline-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Dropdown menu ---------- */
.menu {
  position: fixed; z-index: 180; min-width: 184px;
  top: 0; left: 0;
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu button, .menu a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 46px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-soft);
  line-height: 1.2;
  text-align: left; transition: background .12s ease, color .12s ease;
}

.table a,
.info-row a,
.info-row button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
}

.panel a:not(.btn),
.panel button:not(.btn):not(.ico-btn):not(.chip):not(.var-chip):not(.tmpl-item),
.status-col button:not(.btn):not(.ico-btn),
.checkbox a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
}

.info-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: none;
}
.info-row input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: none;
}
.menu button:hover, .menu a:hover { background: var(--surface-2); color: var(--text); }
.menu button svg, .menu a svg { width: 15px; height: 15px; color: var(--text-muted); }
.menu .menu-sep { height: 1px; background: var(--border-soft); margin: 5px 2px; }
.menu .danger { color: var(--danger); }
.menu .danger svg { color: var(--danger); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-soft); }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-hover) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
