/* ==========================================================================
   IPC Workforce Analytics — Design System
   Built on Bootstrap 5.3 (uses native [data-bs-theme] color modes).
   Mobile-first, accessible, light + dark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — IPC blue scale */
  --ipc-50:  #eaf2fb;
  --ipc-100: #d3e3f6;
  --ipc-200: #a6c7ec;
  --ipc-300: #6ea3de;
  --ipc-400: #3d81cd;
  --ipc-500: #1f6fbf;
  --ipc-600: #175ea8;   /* primary */
  --ipc-700: #124b85;
  --ipc-800: #0f3c69;
  --ipc-900: #0c2f52;

  /* Status accents (aligned to WISN scale) */
  --c-adequate:   #16a34a;  /* ratio == 1 */
  --c-over:       #dc2626;  /* ratio > 1  (over staffed) */
  --c-low:        #65a30d;  /* 0.7–1      light green */
  --c-high:       #eab308;  /* 0.6–0.7    yellow */
  --c-vhigh:      #f97316;  /* 0.4–0.6    amber */
  --c-extreme:    #991b1b;  /* < 0.4      dark red */
  --c-teal:       #0d9488;
  --c-violet:     #7c3aed;

  /* Chart categorical palette */
  --chart-1: #175ea8;
  --chart-2: #0d9488;
  --chart-3: #f59e0b;
  --chart-4: #7c3aed;
  --chart-5: #dc2626;
  --chart-6: #64748b;

  /* Radius / shadow / spacing */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:    0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

  --sidebar-w: 264px;
  --topbar-h: 64px;

  --font-sans: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Semantic surfaces — light */
  --bg:         #f4f7fb;
  --surface:    #ffffff;
  --surface-2:  #f8fafc;
  --border:     #e5eaf1;
  --border-strong: #d3dbe6;
  --text:       #1e293b;
  --text-muted: #64748b;
  --text-soft:  #94a3b8;
  --brand:      var(--ipc-600);
  --brand-ink:  #ffffff;
  --ring:       rgba(23, 94, 168, .35);
}

[data-bs-theme="dark"] {
  --bg:         #0b1220;
  --surface:    #131c2e;
  --surface-2:  #1a2537;
  --border:     #26324a;
  --border-strong: #33415c;
  --text:       #e6edf7;
  --text-muted: #93a4bd;
  --text-soft:  #6b7c96;
  --brand:      var(--ipc-400);
  --brand-ink:  #06101f;
  --ring:       rgba(61, 129, 205, .45);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow:    0 6px 20px rgba(0, 0, 0, .45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);

  --chart-1: #4f9be6;
  --chart-2: #2dd4bf;
  --chart-3: #fbbf24;
  --chart-4: #a78bfa;
  --chart-5: #f87171;
  --chart-6: #94a3b8;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 700; color: var(--text); letter-spacing: -.01em; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ipc-500); }

::selection { background: var(--ipc-200); color: var(--ipc-900); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Thin, themed scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-soft); background-clip: content-box; }

/* --------------------------------------------------------------------------
   3. App shell — topbar, sidebar, main
   -------------------------------------------------------------------------- */
.app-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  display: flex; align-items: center; gap: .75rem;
  padding: 0 clamp(.75rem, 2vw, 1.25rem);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1030;
}

.app-brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.02rem; color: var(--text);
  white-space: nowrap;
}
.app-brand img { width: 30px; height: 30px; border-radius: 8px; }
.app-brand .brand-sub { color: var(--text-muted); font-weight: 500; font-size: .72rem; display: block; margin-top: -3px; letter-spacing: .02em; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
  transition: all .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.94); }

.app-sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 1rem .75rem; overflow-y: auto; z-index: 1025;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.nav-section-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-soft);
  padding: 1rem .85rem .4rem;
}

.app-nav { list-style: none; margin: 0; padding: 0; }
.app-nav .nav-link,
.app-nav .nav-parent {
  display: flex; align-items: center; gap: .8rem;
  padding: .68rem .85rem; margin-bottom: 2px; border-radius: 11px;
  color: var(--text-muted); font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: all .15s ease; width: 100%;
  background: none; border: none; text-align: left;
}
.app-nav .nav-link i, .app-nav .nav-parent i { font-size: 1.15rem; flex-shrink: 0; }
.app-nav .nav-link:hover,
.app-nav .nav-parent:hover { background: var(--surface-2); color: var(--text); }
.app-nav .nav-link.active {
  background: linear-gradient(135deg, var(--ipc-600), var(--ipc-500));
  color: #fff; box-shadow: var(--shadow-sm);
}
[data-bs-theme="dark"] .app-nav .nav-link.active {
  background: linear-gradient(135deg, var(--ipc-500), var(--ipc-700));
  color: #fff;
}
.app-nav .chev { margin-left: auto; transition: transform .2s ease; font-size: .95rem; }
.app-nav .nav-parent[aria-expanded="true"] .chev { transform: rotate(180deg); }

.app-subnav { list-style: none; margin: 2px 0 6px; padding: 0 0 0 1.4rem; }
.app-subnav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .85rem; margin-bottom: 1px; border-radius: 9px;
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
}
.app-subnav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.app-subnav a:hover { background: var(--surface-2); color: var(--text); }
.app-subnav a.active { color: var(--brand); font-weight: 700; }
.app-subnav a.active::before { background: var(--brand); }

.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(2, 8, 20, .5);
  z-index: 1024; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}

.app-main {
  margin-left: var(--sidebar-w); margin-top: var(--topbar-h);
  padding: clamp(1rem, 2.5vw, 1.9rem);
  min-height: calc(100vh - var(--topbar-h));
}

/* Mobile: sidebar becomes a drawer */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .app-main { margin-left: 0; }
}
@media (min-width: 992px) {
  .sidebar-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   4. Page header / breadcrumb
   -------------------------------------------------------------------------- */
.page-head { margin-bottom: 1.4rem; }
.page-head h1 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 0 0 .3rem; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; color: var(--text-soft); }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--text-soft); font-size: .7rem; }
.crumb .current { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
.card-body { padding: clamp(1.1rem, 2.2vw, 1.5rem); }
.card-title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--text); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.card-subtitle { color: var(--text-muted); font-size: .86rem; margin: .15rem 0 0; }

/* KPI stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -18px; top: -18px;
  width: 74px; height: 74px; border-radius: 50%;
  background: color-mix(in srgb, var(--stat-accent, var(--ipc-500)) 12%, transparent);
}
.stat-icon {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.3rem;
  color: var(--stat-accent, var(--ipc-600));
  background: color-mix(in srgb, var(--stat-accent, var(--ipc-500)) 14%, transparent);
  margin-bottom: .75rem;
}
.stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--text); letter-spacing: -.02em; }
.stat-label { color: var(--text-muted); font-size: .82rem; font-weight: 600; margin-top: .15rem; }
.stat-meta { font-size: .78rem; font-weight: 600; margin-top: .4rem; display: inline-flex; align-items: center; gap: .3rem; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .5rem .95rem; font-size: .9rem; transition: all .15s ease; display: inline-flex; align-items: center; gap: .4rem; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .7rem 1.3rem; font-size: 1rem; }
.btn-sm { padding: .34rem .7rem; font-size: .82rem; border-radius: 7px; }

.btn-primary { background: var(--ipc-600); border-color: var(--ipc-600); color: #fff; }
.btn-primary:hover { background: var(--ipc-700); border-color: var(--ipc-700); color: #fff; box-shadow: 0 6px 16px var(--ring); }
.btn-primary:focus-visible { outline-color: var(--ring); }

.btn-outline-primary { color: var(--brand); border-color: var(--border-strong); background: var(--surface); }
.btn-outline-primary:hover { background: var(--ipc-600); border-color: var(--ipc-600); color: #fff; }

.btn-soft {
  background: color-mix(in srgb, var(--ipc-500) 12%, transparent);
  color: var(--brand); border: 1px solid transparent;
}
.btn-soft:hover { background: color-mix(in srgb, var(--ipc-500) 20%, transparent); color: var(--brand); }

.btn-secondary { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--border); color: var(--text); }

.btn-danger { background: var(--c-over); border-color: var(--c-over); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-ghost-danger { background: transparent; border: 1px solid transparent; color: var(--c-over); }
.btn-ghost-danger:hover { background: color-mix(in srgb, var(--c-over) 12%, transparent); color: var(--c-over); }

.btn-icon { padding: .5rem; width: 38px; height: 38px; justify-content: center; }

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.form-label { font-weight: 600; font-size: .85rem; color: var(--text); margin-bottom: .3rem; }
.form-control, .form-select {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--radius-sm); padding: .55rem .8rem; font-size: .92rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
  background: var(--surface); color: var(--text);
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring);
}
.form-control::placeholder { color: var(--text-soft); }
.form-control-sm, .form-select-sm { padding: .38rem .6rem; font-size: .84rem; }
.input-group-text { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-muted); }
.form-check-input { border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--ipc-600); border-color: var(--ipc-600); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }

/* --------------------------------------------------------------------------
   8. Tables — responsive data tables
   -------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.table-toolbar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.table-search { position: relative; flex: 1 1 220px; max-width: 340px; }
.table-search i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--text-soft); }
.table-search input { padding-left: 2.1rem; }
.table-count { font-size: .82rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
table.data-table thead th {
  background: var(--surface-2); color: var(--text-muted);
  font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .8rem 1rem; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2;
}
table.data-table thead th.sortable { cursor: pointer; user-select: none; }
table.data-table thead th.sortable:hover { color: var(--brand); }
table.data-table thead th .sort-ico { opacity: .4; font-size: .8rem; margin-left: .2rem; }
table.data-table thead th[aria-sort="ascending"] .sort-ico,
table.data-table thead th[aria-sort="descending"] .sort-ico { opacity: 1; color: var(--brand); }
table.data-table tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr { transition: background .12s ease; }
table.data-table tbody tr:hover { background: var(--surface-2); }
table.data-table td a { font-weight: 600; }
.table-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.table-empty i { font-size: 2.4rem; color: var(--text-soft); display: block; margin-bottom: .6rem; }

/* Bordered entry tables (data-entry grids) */
table.entry-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
table.entry-table th, table.entry-table td { padding: .6rem .7rem; border: 1px solid var(--border); }
table.entry-table thead th { background: var(--surface-2); color: var(--text-muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
table.entry-table tbody td { color: var(--text); }

/* Mobile stacked cards for data tables */
@media (max-width: 640px) {
  table.data-table.stackable thead { display: none; }
  table.data-table.stackable tbody tr {
    display: block; padding: .5rem 0; border-bottom: 8px solid var(--bg);
  }
  table.data-table.stackable tbody td {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .5rem 1rem; border: none; text-align: right;
  }
  table.data-table.stackable tbody td::before {
    content: attr(data-label); font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); text-align: left;
  }
}

/* --------------------------------------------------------------------------
   9. Badges / pills / status
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700;
  line-height: 1.2; white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-adequate { color: var(--c-adequate); background: color-mix(in srgb, var(--c-adequate) 14%, transparent); }
.pill-over     { color: var(--c-over);     background: color-mix(in srgb, var(--c-over) 14%, transparent); }
.pill-under    { color: var(--c-vhigh);    background: color-mix(in srgb, var(--c-vhigh) 16%, transparent); }
.pill-neutral  { color: var(--text-muted); background: color-mix(in srgb, var(--text-muted) 14%, transparent); }
.pill-info     { color: var(--brand);      background: color-mix(in srgb, var(--ipc-500) 14%, transparent); }

/* WISN ratio cell chips (data-driven color) */
.wisn-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .65rem;
  border-radius: 8px; font-weight: 700; font-size: .84rem; color: #fff; min-width: 62px; justify-content: center;
}
.wisn-adequate { background: var(--c-adequate); }
.wisn-over     { background: var(--c-over); }
.wisn-low      { background: var(--c-low); }
.wisn-high     { background: var(--c-high); color: #4a3c00; }
.wisn-vhigh    { background: var(--c-vhigh); }
.wisn-extreme  { background: var(--c-extreme); }

/* Diff numbers */
.num-pos { color: var(--c-over); font-weight: 700; }
.num-neg { color: var(--c-adequate); font-weight: 700; }
.num-zero { color: var(--text-muted); font-weight: 700; }

/* --------------------------------------------------------------------------
   10. Modals / dropdowns / toasts
   -------------------------------------------------------------------------- */
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--border); }
.modal-title { font-size: 1.1rem; }
.dropdown-menu {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .4rem; --bs-dropdown-link-hover-bg: var(--surface-2);
}
.dropdown-item { border-radius: 8px; color: var(--text); font-weight: 500; padding: .5rem .7rem; }
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-header { color: var(--text-muted); }

.toast-stack { position: fixed; top: calc(var(--topbar-h) + 12px); right: 16px; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; max-width: min(92vw, 360px); }
.toast-msg {
  display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); color: var(--text);
  font-size: .9rem; animation: toastIn .28s cubic-bezier(.4,0,.2,1);
}
.toast-msg.ok { border-left-color: var(--c-adequate); }
.toast-msg.err { border-left-color: var(--c-over); }
.toast-msg.info { border-left-color: var(--brand); }
.toast-msg i { font-size: 1.15rem; margin-top: 1px; }
.toast-msg.ok i { color: var(--c-adequate); }
.toast-msg.err i { color: var(--c-over); }
.toast-msg.info i { color: var(--brand); }
.toast-msg .t-close { margin-left: auto; background: none; border: none; color: var(--text-soft); cursor: pointer; font-size: 1rem; padding: 0 .1rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   11. Alerts / misc
   -------------------------------------------------------------------------- */
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .9rem; padding: .75rem 1rem; }
.alert-info { background: color-mix(in srgb, var(--ipc-500) 10%, transparent); border-color: color-mix(in srgb, var(--ipc-500) 22%, transparent); color: var(--brand); }
.alert-success { background: color-mix(in srgb, var(--c-adequate) 12%, transparent); border-color: color-mix(in srgb, var(--c-adequate) 24%, transparent); color: var(--c-adequate); }
.alert-danger { background: color-mix(in srgb, var(--c-over) 12%, transparent); border-color: color-mix(in srgb, var(--c-over) 24%, transparent); color: var(--c-over); }

.chart-box { position: relative; width: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .8rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.chart-legend span::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: var(--lg, var(--ipc-500)); }

.section-divider { height: 1px; background: var(--border); border: none; margin: 1.5rem 0; }

.btn-group-inline { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

/* Spinner on buttons */
.btn .spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utilities */
.text-muted-2 { color: var(--text-muted) !important; }
.fw-800 { font-weight: 800; }
.gap-2 { gap: .5rem; }
.hover-lift { transition: transform .18s ease, box-shadow .18s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Legend for WISN scale */
.scale-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.scale-legend .sl { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.scale-legend .sw { width: 14px; height: 14px; border-radius: 4px; }
