/* ============================================================
   SimNapse — Auth & Dashboard styles
   Depends on styles.css for CSS variables
   ============================================================ */

/* ── Auth page layout ───────────────────────────────────────────────────── */
body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  padding: 24px;
  position: relative;
  font-family: var(--font);
}

.auth-bg-glow {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59,130,246,0.07) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.auth-bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.12;
  pointer-events: none; z-index: 0;
}

.auth-card-wrapper {
  width: 100%; max-width: 420px;
  position: relative; z-index: 1;
}

/* Logo */
.auth-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  text-decoration: none; margin-bottom: 28px;
}
.auth-logo-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 10px;
}

/* Card */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.04);
}

.auth-card-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.auth-card-subtitle {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 24px; line-height: 1.5;
}

/* Plan highlight (from pricing page) */
.plan-highlight {
  display: none; align-items: center; gap: 8px;
  padding: 10px 14px; margin-bottom: 16px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r-md);
  font-size: 13px; color: var(--blue-400);
}
.plan-highlight.visible { display: flex; }

/* Global alert */
.auth-alert {
  display: none; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 13.5px; margin-bottom: 16px;
}
.auth-alert.visible { display: flex; }
.auth-alert.alert-error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); color: #F87171; }
.auth-alert.alert-success { background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.2);  color: #34D399; }

/* ── Form ───────────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

.form-row { display: flex; justify-content: space-between; align-items: center; }

.form-input-wrap { position: relative; }

.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 14px; font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
  outline: none;  /* box-shadow is the visual focus indicator; suppress global ring */
}
.form-input.has-suffix { padding-right: 44px; }
.form-input.error { border-color: #F87171; }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(248,113,113,0.12); }

.form-input-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 15px; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s; line-height: 1;
}
.form-input-suffix:hover { color: var(--text-secondary); }

.form-error {
  font-size: 12px; color: #F87171;
  display: none; align-items: center; gap: 4px;
}
.form-error.visible { display: flex; }

.form-forgot {
  font-size: 13px; color: var(--blue-400);
  text-decoration: none; transition: color 0.2s;
}
.form-forgot:hover { color: #93C5FD; }

/* Password strength bar */
.password-strength { margin-top: 6px; }
.strength-bar {
  height: 3px; border-radius: 2px;
  background: var(--border); overflow: hidden; margin-bottom: 4px;
}
.strength-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}
.strength-label { font-size: 11px; color: var(--text-dim); }

/* Submit button */
.auth-submit {
  width: 100%; padding: 12px;
  background: var(--blue-600); color: #fff;
  border: none; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
}
.auth-submit:hover:not(:disabled) {
  background: var(--blue-500);
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
  transform: translateY(-1px);
}
.auth-submit:active:not(:disabled) { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-submit .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none; flex-shrink: 0;
}
.auth-submit.loading .spinner  { display: block; }
.auth-submit.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 8px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* Social buttons */
.social-btns { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
  width: 100%; padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500; font-family: var(--font);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.social-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
}
.social-btn-icon { display: flex; align-items: center; }

/* Switch & terms */
.auth-switch {
  text-align: center; margin-top: 20px;
  font-size: 13.5px; color: var(--text-muted);
}
.auth-switch a { color: var(--blue-400); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

.auth-terms {
  text-align: center; font-size: 11.5px; color: var(--text-dim);
  margin-top: 16px; line-height: 1.6;
}
.auth-terms a { color: var(--text-muted); text-decoration: none; }
.auth-terms a:hover { color: var(--text-secondary); }

/* ── Dashboard Layout ───────────────────────────────────────────────────── */
body.dash-body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.dash-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.dash-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform 0.3s;
}

.dash-sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 16px;
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.dash-sidebar-logo-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(59,130,246,0.2); border-radius: 7px;
}

.dash-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }

.dash-nav-section-title {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-dim);
  padding: 10px 10px 6px; margin-top: 6px;
}

.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none; background: none; width: 100%; text-align: left;
}
.dash-nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.dash-nav-item.active { background: rgba(59,130,246,0.1); color: var(--blue-400); }
.dash-nav-icon { font-size: 16px; flex-shrink: 0; width: 18px; text-align: center; }
.dash-nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 600;
  padding: 2px 6px; border-radius: 10px;
  background: rgba(59,130,246,0.15); color: var(--blue-400);
}

/* Sidebar bottom */
.dash-sidebar-bottom {
  padding: 14px; border-top: 1px solid var(--border);
}

.dash-plan-card {
  padding: 12px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px;
}
.dash-plan-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-dim); margin-bottom: 3px;
}
.dash-plan-name {
  font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px;
}
.dash-upgrade-btn {
  display: block; text-align: center; padding: 7px;
  background: rgba(29,78,216,0.2); color: var(--blue-400);
  border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(59,130,246,0.2);
  transition: background 0.2s;
}
.dash-upgrade-btn:hover { background: rgba(29,78,216,0.35); }
[data-free-only] { display: block; }

.dash-user-row { display: flex; align-items: center; gap: 10px; }
.dash-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1D4ED8, #7C3AED);
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.dash-user-info { flex: 1; min-width: 0; }
.dash-user-name {
  font-size: 13px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-user-email {
  font-size: 11px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Main content */
.dash-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-width: 0; }

.dash-header {
  padding: 0 28px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  position: sticky; top: 0; z-index: 40;
  gap: 16px;
}
.dash-header-title { font-size: 15px; font-weight: 600; }
.dash-header-actions { display: flex; align-items: center; gap: 10px; }
.dash-header-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1D4ED8, #7C3AED);
  font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  border: 1.5px solid var(--border-light);
  transition: border-color 0.2s;
}
.dash-header-avatar:hover { border-color: var(--blue-500); }

/* User dropdown */
.dash-user-menu { position: relative; }
.dash-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden; z-index: 100;
}
.dash-dropdown.open { display: block; }
.dash-dropdown-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.dash-dropdown-name { font-size: 13px; font-weight: 600; }
.dash-dropdown-email { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.dash-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13.5px; color: var(--text-secondary);
  cursor: pointer; transition: background 0.15s, color 0.15s;
  border: none; background: none; width: 100%; text-align: left;
  text-decoration: none;
}
.dash-dropdown-item:hover { background: var(--bg-card); color: var(--text-primary); }
.dash-dropdown-item.danger { color: #F87171; }
.dash-dropdown-item.danger:hover { background: rgba(248,113,113,0.06); }
.dash-dropdown-divider { height: 1px; background: var(--border); }

/* Content */
.dash-content { padding: 28px; flex: 1; }

/* Welcome header */
.dash-welcome { margin-bottom: 28px; }
.dash-welcome h1 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px;
}
.dash-welcome p { font-size: 14px; color: var(--text-secondary); }

/* Success banner */
.checkout-success-banner {
  display: none; align-items: flex-start; gap: 14px;
  padding: 16px 20px; margin-bottom: 24px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--r-lg);
}
.checkout-success-banner.visible { display: flex; }
.checkout-success-icon { font-size: 20px; flex-shrink: 0; }
.checkout-success-text strong { font-size: 14px; display: block; margin-bottom: 2px; color: #34D399; }
.checkout-success-text span { font-size: 13px; color: var(--text-secondary); }

/* Stats */
.dash-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 22px;
  text-align: center;
}
.stat-label {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-dim); margin-bottom: 8px;
}
.stat-value {
  font-size: 28px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1; margin-bottom: 4px;
}
.stat-sub { font-size: 12px; color: var(--text-muted); }
.stat-plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  padding: 4px 0;
}
.plan-free    { color: var(--text-secondary); }
.plan-pro     { color: var(--blue-400); }
.plan-team    { color: var(--purple-400); }
.plan-enterprise { color: var(--cyan-400); }

/* Models panel */
.models-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; margin-bottom: 24px;
}
.models-panel-header {
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.models-panel-title { font-size: 14px; font-weight: 600; }

/* Upload zone */
.upload-zone {
  margin: 20px; padding: 36px 24px;
  border: 1.5px dashed var(--border-light);
  border-radius: var(--r-lg); text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue-500);
  background: rgba(59,130,246,0.03);
}
.upload-zone-icon { font-size: 32px; margin-bottom: 10px; line-height: 1; }
.upload-zone-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px;
}
.upload-zone-title strong { color: var(--blue-400); cursor: pointer; }
.upload-zone-sub { font-size: 12px; color: var(--text-dim); }
#fileInput { display: none; }

/* Model list */
.model-list { display: flex; flex-direction: column; }
.model-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.model-row:last-child { border-bottom: none; }
.model-row:hover { background: var(--bg-elevated); }
.model-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,0.1); font-size: 16px; flex-shrink: 0;
}
.model-info { flex: 1; min-width: 0; }
.model-name {
  font-size: 14px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.model-meta { font-size: 12px; color: var(--text-dim); }
.model-actions { display: flex; gap: 6px; flex-shrink: 0; }
.model-action-btn {
  font-size: 12px; padding: 5px 10px; border-radius: var(--r-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.model-action-btn:hover { border-color: var(--blue-500); color: var(--blue-400); }
.model-action-btn--danger { color: var(--red-400); border-color: var(--border); }
.model-action-btn--danger:hover { border-color: var(--red-400); color: var(--red-400); background: rgba(239,68,68,.08); }

/* Upgrade banner */
.upgrade-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: var(--r-xl);
}
[data-free-only].upgrade-banner { display: flex; }
.upgrade-banner-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.upgrade-banner-content p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.upgrade-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Subscription card */
.subscription-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px; margin-bottom: 24px;
  text-align: center;
}
.subscription-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.subscription-detail { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.subscription-detail:last-of-type { border-bottom: none; }
.subscription-detail-label { color: var(--text-secondary); }
.subscription-detail-value { font-weight: 500; }

/* Responsive */
@media (max-width: 768px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.4); }
  .dash-main { margin-left: 0; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-content { padding: 18px; }
  .upgrade-banner { flex-direction: column; }
  .upgrade-banner-actions { width: 100%; }
  .upgrade-banner-actions .btn { flex: 1; justify-content: center; }
  .dash-mobile-toggle {
    display: flex !important; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--r-sm);
    background: var(--bg-elevated); border: 1px solid var(--border);
    cursor: pointer; font-size: 18px; color: var(--text-secondary);
  }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit .spinner { animation-duration: 1.5s; }
}

/* ── Folder cards ───────────────────────────────────────────────────────── */
.folder-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 22px; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.folder-card:hover { background: var(--bg-elevated); }
.folder-card-icon { font-size: 22px; flex-shrink: 0; width: 36px; text-align: center; cursor: pointer; }
.folder-card-info { flex: 1; min-width: 0; cursor: pointer; }
.folder-card-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.folder-card-meta { font-size: 12px; color: var(--text-dim); }
.folder-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Models panel header layout ─────────────────────────────────────────── */
.models-panel-header { flex-wrap: wrap; gap: 8px; }
.models-panel-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.models-panel-header-right { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.models-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb-link {
  background: none; border: none; cursor: pointer;
  color: var(--blue-400); font-size: 13px; padding: 0; font-family: var(--font);
  transition: color 0.15s;
}
.breadcrumb-link:hover { color: #93c5fd; text-decoration: underline; }
.breadcrumb-sep { color: var(--text-dim); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

/* ── Generic small modal ────────────────────────────────────────────────── */
.sn-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
}
.sn-modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 360px; max-width: calc(100vw - 32px);
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}
.sn-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
}
.sn-modal-title { font-size: 15px; font-weight: 600; }
.sn-modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 16px; padding: 4px 6px;
  border-radius: var(--r-sm); transition: color 0.15s, background 0.15s; line-height: 1;
}
.sn-modal-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.sn-modal-body { padding: 20px; }
.sn-modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}

/* ── Multi-select / compress ────────────────────────────────────────────── */
.model-select-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: rgba(59,130,246,0.06);
  border-bottom: 1px solid rgba(59,130,246,0.2); flex-wrap: wrap;
}
.sel-check-all-wrap { display: flex; align-items: center; flex-shrink: 0; }
.sel-check-all-wrap input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue-500); }
.model-select-count { font-size: 13px; font-weight: 600; color: var(--blue-400); min-width: 90px; }
.sel-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-bar-btn { font-size: 12px; padding: 4px 10px; }
.sel-bar-btn--danger { color: var(--red-400); border-color: var(--red-400); }
.sel-bar-btn--danger:not(:disabled):hover { background: rgba(239,68,68,0.08); }

.model-row.selectable { cursor: default; }
.model-row .row-select-check {
  width: 18px; height: 18px; cursor: pointer; flex-shrink: 0;
  accent-color: var(--blue-500);
}
.folder-card .row-select-check {
  width: 18px; height: 18px; cursor: pointer; flex-shrink: 0;
  accent-color: var(--blue-500);
}
.model-row.selected,
.folder-card.selected { background: rgba(59,130,246,0.06); }
