/* Burgos Design System — neutral surfaces, restrained color, consistent outlines. */
:root {
  --bs-canvas: #f4f6f6;
  --bs-line: #e2e7e8;
  --bs-surface-soft: #f8f9f9;
  --bs-blue-soft: #e8f0fb;
  --bs-mint-soft: #e4f3ec;
  --bs-lilac-soft: #eee9f8;
  --bs-amber-soft: #fbf0dc;
  --bs-icon-weight: 1.85;
}
:root[data-theme="light"] {
  --bg: var(--bs-canvas);
  --surface: #fff;
  --surface-2: var(--bs-surface-soft);
  --surface-3: #eef1f1;
  --line: var(--bs-line);
  --muted: #707980;
  --shadow: 0 18px 46px rgba(35, 47, 52, .075);
  --shadow-sm: 0 6px 18px rgba(35, 47, 52, .065);
}
:root[data-theme="dark"] {
  --bg: #15191c;
  --surface: #1d2226;
  --surface-2: #242a2f;
  --surface-3: #2c3338;
  --line: #343d43;
  --muted: #a7b0b5;
  --shadow: 0 18px 46px rgba(0, 0, 0, .28);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .2);
}
body { background: radial-gradient(ellipse at 10% 0%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 34%), var(--bg); }
.app { background: transparent; border: 0; box-shadow: none; }
.sidebar { background: color-mix(in srgb, var(--surface) 97%, var(--bs-blue-soft)); border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-group h4 { color: var(--muted); }
.nav-btn { color: var(--muted); }
.nav-btn:hover { background: var(--surface-2); color: var(--primary); }
.nav-btn.active { color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent); }
.nav-btn.active .icon { color: var(--primary); }
.icon, .burgos-icon { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: var(--bs-icon-weight); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nav-btn .icon { width: 20px; height: 20px; }
.page-head h1 { letter-spacing: -.035em; }
.card, .stat, .project-stat, .workflow-card, .catalog-card, .agenda-card, .calendar-day, .settings-shell, .modal { border-color: var(--line); box-shadow: 0 3px 14px rgba(35, 47, 52, .035); }
.card { background: var(--surface); }
.card-head, .modal-head { background: color-mix(in srgb, var(--surface) 94%, var(--bs-blue-soft)); }
.btn.primary, .nav-order-save, .settings-nav button.active { background: var(--primary); box-shadow: none; }
.btn.primary:hover, .btn.success:hover, .btn.ghost:hover { filter: brightness(.98); }
.btn, .tab, .settings-tabs button, .equipment-tab, .input, .select, .textarea { box-shadow: none; }
.tab, .settings-tabs button, .equipment-tab { background: var(--surface); border-color: var(--line); color: var(--muted); }
.tab.active, .settings-tabs button.active, .equipment-tab.active { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 26%, var(--line)); color: var(--primary); box-shadow: none; }
.table th { background: var(--surface-2); }
.table tbody tr:hover { background: color-mix(in srgb, var(--bs-blue-soft) 45%, var(--surface)); }
.status, .badge, .pill { box-shadow: none; }
.nav-3d-icon { display: block; box-sizing: border-box; width: 34px !important; height: 34px !important; padding: 0 !important; flex: 0 0 34px !important; border: 1px solid #e6eaf2; border-radius: 11px; background: #fff; box-shadow: 0 3px 8px rgba(32, 46, 71, .11); object-fit: contain; color: var(--muted); filter: none !important; }
.nav-btn:hover .nav-3d-icon, .nav-btn.active .nav-3d-icon { color: var(--primary); }
.service-type-image { display: block; box-sizing: border-box; width: 24px !important; height: 24px !important; padding: 1px; border: 1px solid #e6eaf2; border-radius: 8px; background: #fff; box-shadow: 0 2px 5px rgba(32, 46, 71, .09); object-fit: contain; filter: none !important; }
.service-illustration, .page-illustration, .selection-title-3d { box-sizing: border-box; width: 54px !important; height: 54px !important; flex: 0 0 54px !important; padding: 0 !important; margin: 0 4px !important; border: 1px solid #e6eaf2; border-radius: 16px; background: #fff; box-shadow: 0 4px 10px rgba(32, 46, 71, .11); color: var(--primary); object-fit: contain; filter: none !important; }
.project-type-icon .service-type-image, .quick-icon .service-type-image, .catalog-thumb .service-type-image, .tracking-head .service-type-image { width: 22px !important; height: 22px !important; }
.metric-icon img { filter: none !important; }
.metric-art { opacity: .08; filter: none !important; }
.dashboard-event-art { width: 28px; height: 28px; opacity: .68; filter: none !important; }
.dashboard-area-art .service-type-image { width: 25px !important; height: 25px !important; }
/* Flatten older decorative treatments into the shared, quiet surface language. */
.nav-btn.active { background: var(--primary) !important; color: #fff !important; box-shadow: 0 5px 16px color-mix(in srgb, var(--primary) 18%, transparent) !important; }
.nav-btn.active .burgos-icon { color: #fff !important; }
.btn.primary, .settings-nav button.active { background: var(--primary) !important; box-shadow: none !important; }
.tab.active, .settings-tabs button.active, .equipment-tab.active { background: var(--primary-soft) !important; border-color: color-mix(in srgb, var(--primary) 25%, var(--line)) !important; color: var(--primary) !important; box-shadow: none !important; }
.input, .select, .textarea { background: var(--surface) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent) !important; }
.table-wrap { border-color: var(--line); background: var(--surface); }
.table thead th { background: var(--surface-2); color: var(--muted); }
.table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 94%, var(--ink)); }
.table tbody tr:hover { background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.card-head, .modal-head { background: var(--surface-2) !important; border-color: var(--line) !important; }
.metric-card, .area-project-row, .project-row, .tracking-card, .agenda-card, .workflow-card, .ops-panel { background: var(--surface) !important; border-color: var(--line) !important; }
.metric-card:after { box-shadow: 0 0 0 13px color-mix(in srgb, var(--primary) 5%, transparent), 0 0 0 27px color-mix(in srgb, var(--primary) 3%, transparent); }
.metric-icon { background: var(--primary-soft) !important; box-shadow: none !important; }
.project-type-icon, .catalog-thumb { background: var(--surface-2) !important; box-shadow: none !important; }
.empty-state, .empty, .tracking-empty { background: var(--surface-2) !important; border-color: var(--line) !important; }
.agenda-date { background: var(--primary) !important; box-shadow: none !important; }
.equipment-icon-current, .equipment-icon-dialog, .equipment-icon-option { background: var(--surface) !important; border-color: var(--line) !important; box-shadow: none !important; }
.equipment-icon-categories button { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.equipment-icon-categories button.active { background: var(--primary) !important; color: #fff !important; }
.equipment-icon-current img, .equipment-icon-option img, .equipment-row-3d, .equipment-kit-icons img, .equipment-template-icons img, .combo-equipment-icons img { filter: none !important; }
.dashboard-hero { background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface) 72%) !important; border-color: var(--line) !important; box-shadow: var(--shadow-sm) !important; }
.hero-command-panel, .hero-signal-grid div { background: color-mix(in srgb, var(--surface) 96%, var(--primary)) !important; border-color: var(--line) !important; box-shadow: none !important; }
.hero-signal-grid strong, .metric-card span, .card-head h3 { color: var(--ink); }
.toast { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (max-width: 820px) { .main { padding-inline: 14px; } .page-head { gap: 12px; } }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline-color: color-mix(in srgb, var(--primary) 70%, #4877bd); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media print { body { background: #fff !important; } }

/* Distinct contacts artwork used by the client/contact creation action. */
.module-action-icon{display:block;width:26px;height:26px;flex:0 0 26px;object-fit:contain}
