/* SWAP OS 43.07.0 — UI Shell 6: cumulative visual refinement.
 * Existing screens only. No new modules, data structures, or workflow hooks.
 */
:root {
  --swap-ui6-ink: #17243b;
  --swap-ui6-muted: #64748b;
  --swap-ui6-line: #e4eaf3;
  --swap-ui6-surface: #ffffff;
  --swap-ui6-soft: #f5f8fd;
  --swap-ui6-blue: #285ee8;
  --swap-ui6-radius: 15px;
}
.swap-os-body .swap-os-content {
  min-width: 0;
  color: var(--swap-ui6-ink);
}
.swap-os-body .swap-os-content :where(.panel, .card, .task-row, .project-card, .finance-card, .crm-card, .calendar-card) {
  min-width: 0;
  border-color: var(--swap-ui6-line);
  border-radius: var(--swap-ui6-radius);
  box-shadow: 0 5px 20px rgba(24, 43, 78, .045);
}
.swap-os-body .swap-os-content :where(.panel-head, .card-head, .module-header, .page-head) {
  min-width: 0;
}
.swap-os-body .swap-os-content :where(.panel-head h2, .panel-head h3, .card-head h2, .card-head h3) {
  color: var(--swap-ui6-ink);
  letter-spacing: -.018em;
  line-height: 1.3;
}
.swap-os-body .swap-os-content :where(.muted, .helper-text, .field-help, .description, .empty-state small) {
  color: var(--swap-ui6-muted);
  line-height: 1.55;
}
.swap-os-body .swap-os-content :where(.kpi-grid, .focus-kpi-grid, .decision-command-kpis, .decision-portfolio-kpis, .crm-kpi-strip, .dash-kpi-row) {
  align-items: stretch;
  min-width: 0;
}
.swap-os-body .swap-os-content :where(.kpi-grid > *, .focus-kpi-grid > *, .decision-command-kpis > *, .decision-portfolio-kpis > *, .crm-kpi-strip > *, .dash-kpi-row > *) {
  min-width: 0;
  border: 1px solid var(--swap-ui6-line);
  border-radius: 13px;
  background: var(--swap-ui6-surface);
  box-shadow: 0 3px 14px rgba(24, 43, 78, .04);
}
.swap-os-body .swap-os-content :where(.kpi-grid strong, .focus-kpi-grid strong, .decision-command-kpis strong, .decision-portfolio-kpis strong, .crm-kpi-strip strong, .dash-kpi-row strong) {
  color: var(--swap-ui6-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}
.swap-os-body .swap-os-content :where(.btn, button, input[type="button"], input[type="submit"]) {
  border-radius: 10px;
  transition: box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.swap-os-body .swap-os-content :where(.btn.primary, button.primary, input[type="submit"]) {
  box-shadow: 0 3px 10px rgba(40, 94, 232, .15);
}
.swap-os-body .swap-os-content :where(.toolbar, .hero-actions, .form-actions, .page-head .toolbar) {
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.swap-os-body .swap-os-content :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  max-width: 100%;
  border-radius: 10px;
  border-color: #d8e0ec;
  box-sizing: border-box;
}
.swap-os-body .swap-os-content :where(input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .btn:focus-visible) {
  outline: 3px solid rgba(40, 94, 232, .26);
  outline-offset: 2px;
}
.swap-os-body .swap-os-content :where(.table-wrap, .table-responsive, .data-table-wrap, .table-container) {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 12px;
}
.swap-os-body .swap-os-content table {
  max-width: 100%;
  border-color: var(--swap-ui6-line);
}
.swap-os-body .swap-os-content :where(th) {
  color: #43536d;
  font-weight: 650;
  background: #f5f8fd;
}
.swap-os-body .swap-os-content :where(td, th) {
  overflow-wrap: anywhere;
}
.swap-os-body .swap-dashboard-new {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}
.swap-os-body .swap-dashboard-new .dash-hero {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(29, 76, 174, .14);
}
.swap-os-body .swap-dashboard-new :where(.dash-attention-grid, .dash-section-grid, .dash-domain-grid, .dash-visual-grid) {
  min-width: 0;
  align-items: stretch;
}
.swap-os-body .swap-dashboard-new .dash-card {
  min-width: 0;
  border: 1px solid var(--swap-ui6-line);
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(24, 43, 78, .05);
}
.swap-os-body .swap-dashboard-new .dash-card-head {
  gap: 10px;
}
.swap-os-body .swap-dashboard-new .dash-card-head h2 {
  color: var(--swap-ui6-ink);
  letter-spacing: -.02em;
}
.swap-os-body .swap-dashboard-new :where(.dash-focus-row, .focus-row, .schedule-row, .timeline-item, .daily-plan-row) {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 1200px) {
  .swap-os-body .swap-os-content {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .swap-os-body .swap-dashboard-new {
    max-width: none;
  }
}
@media (max-width: 900px) {
  .swap-os-body .swap-os-content :where(.toolbar, .hero-actions, .form-actions, .page-head .toolbar) {
    gap: 8px;
  }
  .swap-os-body .swap-os-content :where(.panel, .card, .task-row, .project-card, .finance-card, .crm-card, .calendar-card) {
    border-radius: 13px;
  }
}
@media (max-width: 760px) {
  .swap-os-body .swap-os-content {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  .swap-os-body .swap-os-content :where(.btn, button, input[type="button"], input[type="submit"], a[role="button"]) {
    min-height: 44px;
  }
  .swap-os-body .swap-os-content :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 44px;
    font-size: 16px;
  }
  .swap-os-body .swap-os-content :where(.kpi-grid, .focus-kpi-grid, .decision-command-kpis, .decision-portfolio-kpis, .crm-kpi-strip, .dash-kpi-row) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .swap-os-body .swap-os-content :where(.toolbar, .hero-actions, .form-actions) > * {
    max-width: 100%;
  }
  .swap-os-body .swap-os-content :where(.page-head, .module-header) {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 390px) {
  .swap-os-body .swap-os-content :where(.kpi-grid, .focus-kpi-grid, .decision-command-kpis, .decision-portfolio-kpis, .crm-kpi-strip, .dash-kpi-row) {
    gap: 7px;
  }
  .swap-os-body .swap-os-content :where(.kpi-grid > *, .focus-kpi-grid > *, .decision-command-kpis > *, .decision-portfolio-kpis > *, .crm-kpi-strip > *, .dash-kpi-row > *) {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .swap-os-body .swap-os-content :where(*) {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
