/**
 * Cliente VIX — Design system do painel admin
 * Escopo: .vix-scope--admin (carregado após app.css)
 */

.vix-scope--admin {
  --admin-sidebar-w: 280px;
  --admin-sidebar-w-collapsed: 72px;
  --admin-topbar-h: 56px;
  --admin-radius: 12px;
  --admin-radius-lg: 16px;
  --admin-border: var(--border);
  --admin-glass: color-mix(in srgb, var(--surface) 88%, transparent);
  --admin-accent: var(--primary);
  --admin-accent-2: var(--primary-2);
  --admin-font: "Inter", system-ui, sans-serif;
}

.vix-scope--admin .skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}
.vix-scope--admin .skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ─── Layout shell ─────────────────────────────────────────────────────── */
.vix-admin-wrap {
  display: flex;
  min-height: 100vh;
  font-family: var(--admin-font);
}

.vix-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--admin-sidebar-w);
  transition: margin-left 0.25s ease;
}

body.vix-sidebar-collapsed .vix-main {
  margin-left: var(--admin-sidebar-w-collapsed);
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.vix-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--admin-sidebar-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, #000 5%), var(--surface));
  border-right: 1px solid var(--admin-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s ease, width 0.25s ease;
}

.vix-sidebar--open {
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .vix-main {
    margin-left: 0 !important;
  }
  .vix-sidebar {
    transform: translateX(-100%);
    width: min(300px, 92vw);
  }
  .vix-sidebar.vix-sidebar--open {
    transform: translateX(0);
  }
}

.vix-sidebar-head {
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--admin-border);
}

.vix-sidebar-logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.vix-sidebar-logo span {
  color: var(--admin-accent);
}

.vix-sidebar-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--admin-accent) 22%, transparent);
  color: var(--text);
}

.vix-sidebar-toggle {
  position: absolute;
  right: 8px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  display: none;
}
@media (min-width: 1025px) {
  .vix-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.vix-sidebar-close {
  display: none;
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 1024px) {
  .vix-sidebar-close {
    display: block;
  }
}

.vix-sidebar-search {
  position: relative;
  padding: 0.65rem 0.85rem;
}
.vix-sidebar-search .vsearch-ico {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.vsearch-input {
  width: 100%;
  padding: 0.55rem 0.65rem 0.55rem 2.1rem;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
}
.vsearch-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--admin-accent) 55%, var(--admin-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-accent) 18%, transparent);
}

.vix-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.35rem 0.5rem 1rem;
  scrollbar-width: thin;
}

.vsb-group {
  margin-bottom: 0.35rem;
}

.vsb-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
}
.vsb-group-head:hover {
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--text);
}

.vsb-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.2rem 0 0.4rem 0.25rem;
}

.vsb-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.vsb-link:hover {
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  color: var(--text);
}
.vsb-link--active {
  background: linear-gradient(105deg, color-mix(in srgb, var(--admin-accent) 35%, transparent), color-mix(in srgb, var(--admin-accent-2) 22%, transparent));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--admin-accent) 35%, transparent);
}
.vsb-link--active .vsb-link-ico {
  color: inherit;
}

.vsb-link-ico {
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
}
.vsb-badge {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
}

.vix-sidebar-logout {
  margin-top: auto;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--admin-border);
}
.vsb-link--danger {
  color: var(--danger) !important;
}
.vsb-link--danger:hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent) !important;
}

.vix-sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.sidebar-open .vix-sidebar-scrim {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1025px) {
  body.sidebar-open .vix-sidebar-scrim {
    display: none;
  }
}

/* Sidebar recolhida (desktop) */
@media (min-width: 1025px) {
  body.vix-sidebar-collapsed {
    --admin-sidebar-w: 72px;
  }
  body.vix-sidebar-collapsed .vix-sidebar {
    width: 72px;
  }
  body.vix-sidebar-collapsed .vix-sidebar-logo span,
  body.vix-sidebar-collapsed .vix-sidebar-tag,
  body.vix-sidebar-collapsed .vix-sidebar-search,
  body.vix-sidebar-collapsed .vsb-group-head .vsb-group-label,
  body.vix-sidebar-collapsed .vsb-group-head .vsb-group-arrow,
  body.vix-sidebar-collapsed .vsb-link-label,
  body.vix-sidebar-collapsed .vsb-badge {
    display: none !important;
  }
  body.vix-sidebar-collapsed .vsb-link {
    justify-content: center;
  }
  body.vix-sidebar-collapsed .vsb-group-head {
    justify-content: center;
    padding: 0.35rem;
  }
  body.vix-sidebar-collapsed .vix-main {
    margin-left: 72px !important;
  }
  body.vix-sidebar-collapsed .vix-sidebar-toggle svg {
    transform: rotate(180deg);
  }
}

/* ─── Topbar ──────────────────────────────────────────────────────────────── */
.vix-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--admin-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: var(--admin-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--admin-border);
}

.vix-topbar-left,
.vix-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.vix-topbar-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
@media (min-width: 1025px) {
  .vix-topbar-burger {
    display: none;
  }
}

.vix-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.vix-breadcrumb a:hover {
  color: var(--admin-accent);
}
.vbc-current {
  color: var(--text);
  font-weight: 600;
}
.vbc-sep {
  opacity: 0.45;
}

.vix-topbar-search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: var(--surface-2);
  max-width: 280px;
}
.vix-topbar-search-form svg {
  flex-shrink: 0;
  color: var(--muted);
}
.vtb-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}
.vtb-search-input:focus {
  outline: none;
}

.vix-topbar-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.vix-topbar-btn:hover {
  transform: translateY(-1px);
}
.vix-topbar-btn--link {
  position: relative;
  text-decoration: none;
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface);
}
.notif-dot[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.vix-topbar-notif .notif-dot[data-count="0"] {
  display: none;
}

.vix-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 260px;
  max-height: 320px;
  overflow: auto;
  padding: 0.5rem 0;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 200;
}
.vix-topbar-notif,
.vix-topbar-avatar {
  position: relative;
}
.vdp-head {
  padding: 0.35rem 1rem 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vdp-empty {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}
.vix-dropdown-panel a,
.vix-dropdown-panel button.vdp-danger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}
.vix-dropdown-panel a:hover,
.vix-dropdown-panel button:hover {
  background: var(--surface-2);
}
.vdp-sep {
  border: 0;
  border-top: 1px solid var(--admin-border);
  margin: 0.35rem 0;
}
button.vdp-danger {
  color: var(--danger) !important;
}

.vix-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.vix-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.vix-avatar-role {
  font-size: 0.72rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .vix-avatar-role {
    display: none;
  }
  .vix-topbar-search-form {
    display: none;
  }
}

/* ─── Content ─────────────────────────────────────────────────────────────── */
/* Largura total da área útil (sem “faixa” central estreita nas laterais) */
.vix-scope--admin .vix-content,
.vix-content {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.15rem clamp(1rem, 2.2vw, 2.25rem) 2rem;
  box-sizing: border-box;
}

.vix-page-header {
  margin-bottom: 1.25rem;
}
.vix-page-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ─── KPI grid ───────────────────────────────────────────────────────────── */
.vix-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.vix-kpi-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--admin-radius-lg);
  border: 1px solid var(--admin-border);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 85%, var(--surface-2)));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.vix-kpi-ico {
  flex-shrink: 0;
}
.vix-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}
.vix-kpi-label {
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.vix-kpi-delta {
  font-size: 0.72rem;
  margin-top: 0.35rem;
  font-weight: 600;
}
.kpi-up {
  color: var(--success);
}
.kpi-down {
  color: var(--danger);
}

/* ─── Section cards ──────────────────────────────────────────────────────── */
.vix-section-card {
  border-radius: var(--admin-radius-lg);
  border: 1px solid var(--admin-border);
  background: var(--surface);
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.vix-section-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.vix-section-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.vix-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--surface);
}
.vix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.vix-table thead th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  border-bottom: 1px solid var(--admin-border);
}
.vix-table tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--admin-border) 70%, transparent);
  vertical-align: middle;
}
.vix-table tbody tr:hover td {
  background: color-mix(in srgb, var(--surface-2) 40%, transparent);
}
.vix-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.vix-form-card {
  max-width: 920px;
  padding: 1.25rem 1.35rem;
  border-radius: var(--admin-radius-lg);
  border: 1px solid var(--admin-border);
  background: var(--surface);
  display: grid;
  gap: 1rem;
}

.vix-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.vix-field label,
.vix-form-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.vix-scope--admin .input,
.vix-scope--admin .vix-form-card input[type="text"],
.vix-scope--admin .vix-form-card input[type="email"],
.vix-scope--admin .vix-form-card input[type="password"],
.vix-scope--admin .vix-form-card input[type="number"],
.vix-scope--admin .vix-form-card input[type="date"],
.vix-scope--admin .vix-form-card input[type="url"],
.vix-scope--admin .vix-form-card select,
.vix-scope--admin .vix-form-card textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
.vix-scope--admin .vix-form-card textarea {
  min-height: 100px;
  resize: vertical;
}
.vix-scope--admin .vix-form-card input:focus,
.vix-scope--admin .vix-form-card select:focus,
.vix-scope--admin .vix-form-card textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--admin-accent) 50%, var(--admin-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-accent) 15%, transparent);
}

.vix-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

/* ─── Toolbar / filters ───────────────────────────────────────────────────── */
.toolbar.filters-toolbar,
.vix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
}

/* ─── Pagination ──────────────────────────────────────────────────────────── */
.vix-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  justify-content: flex-end;
}
.vp-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}
.vp-btn:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}
.vp-btn.vp-active {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-2));
  border-color: transparent;
  color: #fff;
}

/* ─── Module stub & generic ───────────────────────────────────────────────── */
.vix-module-stub,
.vix-generico-modulo {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--admin-radius-lg);
  border: 1px dashed color-mix(in srgb, var(--muted) 45%, var(--admin-border));
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-2));
  max-width: 560px;
  margin: 2rem auto;
}
.vms-ico,
.vgm-ico {
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--admin-accent) 35%, transparent), color-mix(in srgb, var(--admin-accent-2) 25%, transparent));
  color: var(--text);
}
.vix-generico-modulo h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.vix-generico-modulo .vgm-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.vgm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ─── Modais ──────────────────────────────────────────────────────────────── */
.vix-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.vix-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.vix-modal {
  width: min(520px, 100%);
  max-height: min(88vh, 640px);
  overflow: auto;
  border-radius: var(--admin-radius-lg);
  border: 1px solid var(--admin-border);
  background: var(--surface);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}
.vix-modal-backdrop.is-open .vix-modal {
  transform: translateY(0);
}

.vix-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--admin-border);
}
.vix-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.vix-modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}
.vix-modal-body {
  padding: 1.15rem;
}
.vix-modal-foot {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ─── Alerts inline ──────────────────────────────────────────────────────── */
.vix-alert-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vix-alert-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.84rem;
}
.vai--danger {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}
.vai--warning {
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
}

/* ─── Toast (admin) ──────────────────────────────────────────────────────── */
.vix-scope--admin .toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--admin-border);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
}
.vix-scope--admin .toast.hidden {
  display: none;
}

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.vix-scope--admin .muted {
  color: var(--muted);
}
.vix-scope--admin .btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 9px;
}
