/* ============================================================
   Артель Красок — ЛК shared styles
   Consumed by: account.html, vendor-dashboard.html,
                curator-dashboard.html, organizer-dashboard.html

   Sections:
   1.  Reset & base
   2.  CSS tokens (:root)
   3.  Proto banner
   4.  Header (56px top-bar)
   5.  Role switcher
   6.  Role themes (body[data-role])
   7.  Sidebar (240 / 64 collapsed)
   8.  Main content wrapper
   9.  Cards
   10. Buttons
   11. Forms (+ Toggle switch)
   11.5 Filter chips
   12. Data tables
   13. Tabs
   14. Modal
   15. Toast
   16. Badges
   17. Commission breakdown (DEC-006)
   18. Payout cards (DEC-008)
   19. Rating / Trust grid (DEC-007)
   20. Kanban / orders (DEC-009)
   21. Wizard progress bar
   22. Empty states
   22.5 Timeline
   23. Sparkline
   24. Mobile bottom-nav
   25. Utility classes
   26. Responsive breakpoints
   27. Reduced motion / color scheme
   ============================================================ */


/* --- 1. Reset & base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }


/* --- 2. CSS tokens --- */
:root {
  /* Colors */
  --bg: #F8F8F5;
  --fg: #1A1A1A;
  --fg-2: #6B6255;
  --muted: #7A7168;
  --primary: #5C3D2E;
  --cta: #A04030;
  --cta-hover: #8A3528;
  --surface: #F0EDE8;
  --surface-2: #EAE5DD;
  --border: #D8D3CC;
  --success: #15803D;
  --warning: #A16207;
  --danger: #B91C1C;
  --info: #1E40AF;

  /* Role accent — overridden by body[data-role] */
  --role-accent: var(--cta);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,26,26,.04);
  --shadow-md: 0 4px 12px rgba(26,26,26,.08);
  --shadow-lg: 0 12px 32px rgba(26,26,26,.12);

  /* Fonts */
  --font-display: 'Oranienbaum', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --header-h: 56px;
  --banner-h: 32px;
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 64px;
  --content-max: 1320px;

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --gap-xl: 48px;

  /* Transitions */
  --tr-fast: 120ms ease;
  --tr: 200ms ease;
  --tr-slow: 320ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-indices */
  --z-banner: 50;
  --z-header: 60;
  --z-sidebar: 40;
  --z-modal: 200;
  --z-toast: 250;
}


/* --- 3. Proto banner --- */
.proto-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--banner-h);
  background: #1A1A1A;
  color: var(--cta);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: var(--z-banner);
}
.proto-banner strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.proto-banner .proto-banner-role {
  color: #c9a96e;
  font-weight: 500;
}


/* --- 4. Header (56px top-bar) --- */
.cab-header {
  position: fixed;
  top: var(--banner-h);
  left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  z-index: var(--z-header);
}
.cab-header-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--fg);
  white-space: nowrap;
}
.cab-header-spacer { flex: 1; }
.cab-header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
  color: var(--muted);
}
.cab-header-nav a {
  position: relative;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--tr);
}
.cab-header-nav a:hover { color: var(--fg); }
.cab-header-nav .badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta);
  border: 2px solid #fff;
}
.cab-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
}


/* --- 5. Role switcher --- */
.role-switcher {
  position: relative;
}
.role-switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--role-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: filter var(--tr);
}
.role-switcher-pill:hover { filter: brightness(0.92); }
.role-switcher-pill::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.8;
}
.role-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  z-index: calc(var(--z-header) + 1);
}
.role-switcher.open .role-switcher-menu { display: block; }
.role-switcher-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--fg);
  text-align: left;
  transition: background var(--tr-fast);
}
.role-switcher-menu button:hover { background: var(--surface); }
.role-switcher-menu button.current {
  background: var(--surface-2);
  font-weight: 600;
}
.role-switcher-menu .role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* --- 6. Role themes (body[data-role]) --- */
body[data-role="artist"]    { --role-accent: #A04030; } /* terracotta */
body[data-role="curator"]   { --role-accent: #1A1A1A; } /* graphite  */
body[data-role="organizer"] { --role-accent: #5C3D2E; } /* burnt umber */
body[data-role="buyer"]     { --role-accent: #A04030; } /* terracotta */
body[data-role="user"]      { --role-accent: #5C3D2E; } /* brown */


/* --- 7. Sidebar --- */
.cab-sidebar {
  position: fixed;
  top: calc(var(--banner-h) + var(--header-h));
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--banner-h) - var(--header-h));
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: var(--z-sidebar);
  transition: width var(--tr);
}
.cab-sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.cab-sidebar.collapsed:hover { width: var(--sidebar-w); box-shadow: var(--shadow-md); }

.cab-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.cab-sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
  white-space: nowrap;
}
.cab-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  font-size: 14px;
  color: var(--fg);
  white-space: nowrap;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.cab-sidebar-item:hover { background: var(--surface); }
.cab-sidebar-item.active {
  background: var(--surface);
  border-left-color: var(--role-accent);
  color: var(--role-accent);
  font-weight: 600;
}
.cab-sidebar-item-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* DEC-017: SVG-иконки из спрайта _icons.svg в шапке/sidebar/bottom-nav. */
.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.ico-lg { width: 20px; height: 20px; }
.ico-sm { width: 14px; height: 14px; }
.cab-header-nav .ico { width: 18px; height: 18px; }
.cab-sidebar-item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cab-sidebar-item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.cab-sidebar-item-badge {
  background: var(--cta);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.cab-sidebar.collapsed .cab-sidebar-item-label,
.cab-sidebar.collapsed .cab-sidebar-item-count,
.cab-sidebar.collapsed .cab-sidebar-label {
  display: none;
}
.cab-sidebar.collapsed:hover .cab-sidebar-item-label,
.cab-sidebar.collapsed:hover .cab-sidebar-item-count,
.cab-sidebar.collapsed:hover .cab-sidebar-label {
  display: initial;
}


/* --- 8. Main content wrapper --- */
.cab-main {
  margin-top: calc(var(--banner-h) + var(--header-h));
  margin-left: var(--sidebar-w);
  padding: 32px;
  min-height: calc(100vh - var(--banner-h) - var(--header-h));
  transition: margin-left var(--tr);
}
.cab-main.sidebar-collapsed { margin-left: var(--sidebar-w-collapsed); }
.cab-main-container {
  max-width: var(--content-max);
  margin: 0 auto;
}
.cab-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.cab-main-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  margin-bottom: 4px;
}
.cab-main-sub {
  color: var(--muted);
  font-size: 14px;
}
.cab-section { display: none; }
.cab-section.active { display: block; }


/* --- 9. Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}
.card-sub { color: var(--muted); font-size: 13px; }
.card-grid {
  display: grid;
  gap: 16px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }


/* --- 10. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr), filter var(--tr);
  white-space: nowrap;
  min-height: 40px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--role-accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { filter: brightness(0.9); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--role-accent);
  color: var(--role-accent);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover:not(:disabled) { filter: brightness(0.9); }
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover:not(:disabled) { filter: brightness(0.9); }
.btn-sm {
  height: 28px;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}
.btn-lg {
  height: 48px;
  min-height: 48px;
  padding: 14px 28px;
  font-size: 15px;
}
.btn-icon {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}
.btn-block { width: 100%; }


/* --- 11. Forms --- */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}
.form-field label,
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.form-field .hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.form-field input,
.form-field textarea,
.form-field select,
input.cab-input,
textarea.cab-input,
select.cab-input {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
input.cab-input:focus,
textarea.cab-input:focus,
select.cab-input:focus {
  outline: none;
  border-color: var(--role-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-accent) 20%, transparent);
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--danger);
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 2px;
}
.form-char-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* Toggle (iOS-style switch) — shared */
.toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}
.toggle input { display: none; }
.toggle-slider {
  width: 36px; height: 20px;
  background: var(--surface-2);
  border-radius: 999px;
  position: relative;
  transition: background var(--tr);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr);
}
.toggle input:checked + .toggle-slider { background: var(--role-accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }


/* --- 11.5 Filter chips --- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.filter-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-2);
  background: #fff;
  transition: all var(--tr);
}
.filter-chip:hover { border-color: var(--role-accent); color: var(--role-accent); }
.filter-chip.active {
  background: var(--role-accent);
  color: #fff;
  border-color: var(--role-accent);
}


/* --- 12. Data tables --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.data-table thead th {
  background: var(--surface);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface); cursor: pointer; }
.data-table .num {
  font-family: var(--font-mono);
  text-align: right;
}


/* --- 13. Tabs --- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs.sticky {
  position: sticky;
  top: calc(var(--banner-h) + var(--header-h));
  background: var(--bg);
  z-index: 10;
  padding-top: 12px;
}
.tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--tr), border-color var(--tr);
}
.tab:hover { color: var(--fg); }
.tab.active {
  color: var(--role-accent);
  border-bottom-color: var(--role-accent);
  font-weight: 600;
}
.tab-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
  margin-left: 4px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* --- 14. Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.45);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: var(--z-modal);
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background var(--tr-fast);
}
.modal-close:hover { background: var(--surface); color: var(--fg); }
.modal-body { font-size: 14px; }
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}


/* --- 15. Toast --- */
.toast-container {
  position: fixed;
  top: calc(var(--banner-h) + var(--header-h) + 12px);
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: var(--z-toast);
  pointer-events: none;
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 13px;
  min-width: 240px;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
  animation: toast-in 180ms ease-out;
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-error   { border-left-color: var(--danger); }
.toast-icon { font-size: 16px; line-height: 1; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-close { color: var(--muted); font-size: 16px; line-height: 1; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* --- 16. Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  white-space: nowrap;
}
.badge-success { background: rgba(21,128,61,0.12); color: var(--success); }
.badge-warning { background: rgba(161,98,7,0.12); color: var(--warning); }
.badge-danger  { background: rgba(185,28,28,0.12); color: var(--danger); }
.badge-info    { background: rgba(30,64,175,0.12); color: var(--info); }
.badge-neutral { background: var(--surface-2); color: var(--fg-2); }

/* AI-tag badges */
.badge-ai-human   { background: rgba(21,128,61,0.15);  color: var(--success); }
.badge-ai-hybrid  { background: rgba(161,98,7,0.15);   color: var(--warning); }
.badge-ai-full    { background: rgba(30,64,175,0.15);  color: var(--info); }

/* Rank badges */
.badge-rank {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
}
.badge-rank-master { background: #c9a96e; color: #1A1A1A; }
.badge-rank-mir    { background: #1A1A1A; color: #c9a96e; }


/* --- 17. Commission breakdown (DEC-006) --- */
.commission-breakdown {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}
.commission-breakdown .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.commission-breakdown .row .label { color: var(--fg-2); }
.commission-breakdown .row .val { font-weight: 600; color: var(--fg); }
.commission-breakdown .row.deduction .val { color: var(--cta); }
.commission-breakdown .row.total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}
.commission-breakdown .row.total .val { color: var(--success); }
.commission-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}
.commission-static-plate {
  background: var(--surface);
  border-left: 3px solid var(--role-accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.commission-static-plate strong {
  font-family: var(--font-mono);
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
}


/* --- 18. Payout cards (DEC-008) --- */
.payout-next-card {
  background: linear-gradient(135deg, var(--primary), #4a3023);
  color: #f3ede3;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.payout-next-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 8px;
}
.payout-next-card .date {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.payout-next-card .amount {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.payout-next-card .countdown {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c9a96e;
}
.payout-next-breakdown {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono);
  font-size: 13px;
}
.payout-next-breakdown .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: rgba(255,255,255,0.85);
}
.payout-next-breakdown .row.deduction { color: #e8a398; }

.payout-week-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--tr);
}
.payout-week-row:hover { box-shadow: var(--shadow-sm); }
.payout-week-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background var(--tr-fast);
}
.payout-week-head:hover { background: var(--surface); }
.payout-week-range {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}
.payout-week-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.payout-week-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
  min-width: 100px;
  text-align: right;
}
.payout-week-toggle {
  color: var(--muted);
  transition: transform var(--tr);
}
.payout-week-row.expanded .payout-week-toggle { transform: rotate(90deg); }
.payout-details-collapse {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.payout-week-row.expanded .payout-details-collapse { display: block; }

.payout-early-link {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
  text-align: center;
}
.payout-early-link a {
  color: var(--fg-2);
  border-bottom: 1px dotted var(--muted);
}
.payout-early-link a:hover { color: var(--cta); border-bottom-color: var(--cta); }


/* --- 19. Rating / Trust grid (DEC-007) --- */
.rating-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}
.rating-card,
.trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.rating-card { border-left: 4px solid var(--cta); }
.trust-card  { border-left: 4px solid var(--fg); }

.rt-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.rt-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}
.rating-card .rt-value { color: var(--cta); }
.trust-card  .rt-value { color: var(--fg); }
.rt-value .rt-max {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
}
.rt-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 18px;
}
.rt-bar-fill { height: 100%; border-radius: 999px; transition: width var(--tr-slow); }
.rating-card .rt-bar-fill { background: var(--cta); }
.trust-card  .rt-bar-fill { background: var(--fg); }
.rt-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.rt-stats .row {
  display: flex;
  justify-content: space-between;
  color: var(--fg-2);
}
.rt-stats .row .val { font-family: var(--font-mono); font-weight: 600; color: var(--fg); }
.rt-tips {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--fg-2);
}
.rt-tips-title {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

/* Mobile tab-preview for rating/trust (DEC-007) */
.rt-tab-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.rt-trend-arrow { font-size: 10px; }
.rt-trend-arrow.up   { color: var(--success); }
.rt-trend-arrow.down { color: var(--danger); }


/* --- 20. Kanban / orders (DEC-009) --- */
.orders-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-collapse: collapse;
  font-size: 13px;
  overflow: hidden;
}
.orders-table thead th {
  background: var(--surface);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}
.orders-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.orders-table tbody tr { transition: background var(--tr-fast); cursor: pointer; }
.orders-table tbody tr:hover { background: var(--surface); }
.orders-table tbody tr:last-child td { border-bottom: none; }

.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.sla-red    { background: rgba(185,28,28,0.15); color: var(--danger); }
.sla-yellow { background: rgba(161,98,7,0.15);  color: var(--warning); }
.sla-green  { background: rgba(21,128,61,0.12); color: var(--success); }
.sla-grey   { background: var(--surface-2); color: var(--muted); }

/* Kanban (opt-in) */
.orders-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.orders-kanban-col {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 300px;
}
.orders-kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.orders-kanban-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr);
}
.orders-kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.orders-view-toggle {
  display: inline-flex;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.orders-view-toggle button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--muted);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.orders-view-toggle button.active {
  background: #fff;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}


/* --- 21. Wizard progress bar --- */
.wizard-progress {
  position: sticky;
  top: calc(var(--banner-h) + var(--header-h));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 24px;
  z-index: 10;
}
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  border: 2px solid transparent;
  transition: all var(--tr);
}
.wizard-step.active .wizard-step-num {
  background: var(--role-accent);
  color: #fff;
}
.wizard-step.completed .wizard-step-num {
  background: var(--success);
  color: #fff;
}
.wizard-step.active  { color: var(--fg); font-weight: 600; }
.wizard-step.completed { color: var(--fg-2); }
.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border);
}
.wizard-step.completed:not(:last-child)::after { background: var(--success); }

.wizard-draft-banner {
  background: rgba(161,98,7,0.1);
  border: 1px solid rgba(161,98,7,0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.wizard-draft-banner .icon { font-size: 18px; }


/* --- 22. Empty states --- */
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 8px;
}
.empty-state-text {
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto 20px;
  line-height: 1.5;
}


/* --- 22.5 Timeline (order / event timeline with dots) --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 4px;
}
.timeline-step {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px; top: 34px; bottom: -10px;
  width: 2px;
  background: var(--border);
}
.timeline-step.done:not(:last-child)::after { background: var(--success); }
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  z-index: 1;
}
.timeline-step.done .timeline-dot {
  background: var(--success); color: #fff; border-color: var(--success);
}
.timeline-step.current .timeline-dot {
  background: var(--role-accent); color: #fff; border-color: var(--role-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-accent) 22%, transparent);
}
.timeline-body { flex: 1; }
.timeline-title { font-size: 14px; font-weight: 600; }
.timeline-meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.timeline-tracking {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}


/* --- 23. Sparkline --- */
.sparkline {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  vertical-align: middle;
}
.sparkline-bar {
  width: 4px;
  background: var(--role-accent);
  border-radius: 1px;
  opacity: 0.8;
}
.sparkline-sm { height: 20px; }
.sparkline-sm .sparkline-bar { width: 3px; }
.sparkline-lg { height: 60px; }
.sparkline-lg .sparkline-bar { width: 6px; }


/* --- 24. Mobile bottom-nav --- */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    z-index: var(--z-sidebar);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    min-height: 44px;
    font-size: 10px;
    color: var(--muted);
    gap: 2px;
    transition: color var(--tr-fast);
  }
  .bottom-nav-item-icon {
    font-size: 20px;
    line-height: 1;
  }
  .bottom-nav-item.active { color: var(--role-accent); }
}


/* --- 24.5 Tasks (DEC-013) --- */
.tasks-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
.tasks-limit {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.tasks-limit.tasks-limit-warn { color: var(--warning); }
.tasks-limit.tasks-limit-full { color: var(--danger); }

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap-md);
}
.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.task-card.task-paired { border-left: 3px solid var(--role-accent); }
.task-card.task-admin { border-left: 3px solid var(--warning); }
.task-card.task-overdue { background: rgba(185, 28, 28, 0.04); border-color: var(--danger); }
.task-card.task-completed { opacity: 0.65; }

.task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.task-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  flex: 1;
}
.task-card-icons {
  display: flex;
  gap: 4px;
  font-size: 14px;
  flex-shrink: 0;
}
.task-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.task-card-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
}
.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.task-pts {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
}
.task-pts-start { color: var(--muted); font-weight: 400; }
.task-countdown {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.task-countdown.task-countdown-red { background: rgba(185, 28, 28, 0.12); color: var(--danger); }
.task-countdown.task-countdown-yellow { background: rgba(161, 98, 7, 0.12); color: var(--warning); }
.task-countdown.task-countdown-green { background: rgba(21, 128, 61, 0.12); color: var(--success); }

.task-pair-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}
.task-pair-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.task-pair-status.pair-waiting .dot { background: var(--warning); animation: pulse 1.6s ease-in-out infinite; }
.task-pair-status.pair-done .dot { background: var(--success); }
.task-pair-status.pair-overdue .dot { background: var(--danger); }
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.task-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
.task-counter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.task-counter-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--role-accent);
}
.task-counter-num.counter-warn { color: var(--warning); }
.task-counter-num.counter-bad { color: var(--danger); }
.task-counter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--gap-sm);
}
.achievement-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  position: relative;
}
.achievement-badge.locked { opacity: 0.45; }
.achievement-badge.tier-bronze { border-top: 3px solid #B87333; }
.achievement-badge.tier-silver { border-top: 3px solid #BFC1C2; }
.achievement-badge.tier-gold { border-top: 3px solid #D4AF37; }
.achievement-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.achievement-name {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 4px;
}
.achievement-cond {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.achievement-pts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
  margin-top: 4px;
}

@media (max-width: 767px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-counters { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
}


/* --- 24.6 Admin KPI / Status markers (DEC-016) --- */

/* Role accent for admin */
body[data-role="admin"] {
  --role-accent: #2C3E50;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
.admin-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}
.admin-kpi-card.alert { border-color: var(--danger); border-left-width: 3px; }
.admin-kpi-card.warn { border-color: var(--warning); border-left-width: 3px; }
.admin-kpi-card.ok { border-color: var(--success); border-left-width: 3px; }

.admin-kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.admin-kpi-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 6px;
  line-height: 1.1;
}
.admin-kpi-sub {
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 4px;
}
.admin-kpi-trend {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 6px;
}
.admin-kpi-trend.up { color: var(--success); }
.admin-kpi-trend.down { color: var(--danger); }
.admin-kpi-trend.flat { color: var(--muted); }

.admin-chart-placeholder {
  height: 180px;
  background: repeating-linear-gradient(
    45deg,
    var(--surface),
    var(--surface) 8px,
    var(--surface-2) 8px,
    var(--surface-2) 16px
  );
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-red    { background: var(--danger); animation: pulse 1.6s ease-in-out infinite; }
.status-yellow { background: var(--warning); }
.status-green  { background: var(--success); }

.dispute-row { transition: background 0.15s; }
.dispute-row:hover { background: var(--surface); }
.dispute-row.urgent td { background: rgba(185, 28, 28, 0.04); }

.admin-task-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: var(--gap-lg);
}
.admin-task-form .form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  align-items: start;
}
.admin-task-form label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 8px;
}

@media (max-width: 767px) {
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .admin-task-form .form-row { grid-template-columns: 1fr; }
  .admin-task-form label { padding-top: 0; }
}


/* --- 25. Utility classes --- */
.u-mono { font-family: var(--font-mono); }
.u-display { font-family: var(--font-display); }
.u-mute { color: var(--muted); }
.u-caps {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-family: var(--font-mono);
}
.u-hide { display: none !important; }
.u-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.u-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u-mt-sm { margin-top: var(--gap-sm); }
.u-mt    { margin-top: var(--gap); }
.u-mt-md { margin-top: var(--gap-md); }
.u-mt-lg { margin-top: var(--gap-lg); }
.u-mb-sm { margin-bottom: var(--gap-sm); }
.u-mb    { margin-bottom: var(--gap); }
.u-mb-md { margin-bottom: var(--gap-md); }
.u-mb-lg { margin-bottom: var(--gap-lg); }
.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-gap-sm { gap: var(--gap-sm); }
.u-gap    { gap: var(--gap); }
.u-gap-md { gap: var(--gap-md); }
.u-grow { flex: 1; }
.u-center { text-align: center; }
.u-right { text-align: right; }
.u-success { color: var(--success); }
.u-warning { color: var(--warning); }
.u-danger  { color: var(--danger); }


/* --- 26. Responsive --- */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --sidebar-w: 0px; }
  .cab-sidebar { display: none; }
  .cab-main { margin-left: 0; padding: 20px 16px 72px; }
  .cab-main-head { flex-direction: column; align-items: flex-start; }
  .card-grid-4, .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .rating-trust-grid { grid-template-columns: 1fr; }
  .orders-kanban { grid-template-columns: 1fr; }
  .cab-header { padding: 0 16px; gap: 12px; }
  .cab-header-logo { font-size: 18px; }
  .role-switcher-pill { padding: 5px 10px; font-size: 12px; }
  .modal-dialog { padding: 20px; }
  .wizard-steps { gap: 0; }
  .wizard-step { font-size: 10px; }
}
@media (max-width: 480px) {
  .cab-main-title { font-size: 24px; }
  .btn { padding: 10px 16px; }
  .data-table { font-size: 12px; }
  .data-table thead th,
  .data-table tbody td { padding: 10px 8px; }
}


/* --- 27. Reduced motion / color scheme --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
