:root {
  --primary: #0a0a0a;
  --ink: #0a0a0a;
  --muted: #62656b;
  --canvas: #ffffff;
  --surface-1: #f7f8fa;
  --surface-2: #f1f3f5;
  --border: #e5e7eb;
  --brand-coral: #ff5530;
  --brand-magenta: #ea5ec1;
  --brand-blue: #1456f0;
  --brand-cyan: #3daeff;
  --font-ui: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 85, 48, .22), transparent 32%),
    radial-gradient(circle at 64% 44%, rgba(20, 86, 240, .20), transparent 34%),
    linear-gradient(135deg, #0a0a0a 0%, #181e25 56%, #0a0a0a 100%);
  transition: opacity .55s ease, visibility .55s ease;
}
.app-loader.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.loader-card { width: min(360px, 100%); display: grid; justify-items: center; gap: 16px; text-align: center; }
.loader-mark { width: 132px; aspect-ratio: 1; filter: drop-shadow(0 24px 36px rgba(10,10,10,.3)); }
.loader-shell { fill: rgba(247,248,250,.96); }
.loader-gridline { stroke: rgba(10,10,10,.12); stroke-width: 1.2; }
.loader-cell { fill: #181e25; opacity: .1; animation: loader-cell 1.4s ease-in-out infinite; }
.loader-cell.is-hot { fill: var(--brand-coral); opacity: .9; animation-delay: .12s; }
.loader-axis { fill: none; stroke: #181e25; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; opacity: .12; }
.loader-path { fill: none; stroke: var(--brand-blue); stroke-dasharray: 210; stroke-dashoffset: 210; stroke-linecap: round; stroke-linejoin: round; stroke-width: 8; animation: loader-draw 1.45s cubic-bezier(.2,.8,.2,1) infinite; }
.loader-dot { fill: #f7f8fa; stroke: var(--brand-blue); stroke-width: 6; transform-box: fill-box; transform-origin: center; animation: loader-pulse 1.45s ease-in-out infinite; }
.loader-dot.two { animation-delay: .14s; }
.loader-dot.three { animation-delay: .28s; }
.loader-title { margin: 0 0 4px; color: rgba(247,248,250,.68); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.loader-name { margin: 0; color: #f7f8fa; font-size: 17px; font-weight: 600; line-height: 1.25; }
.loader-track { width: min(240px, 82vw); height: 3px; overflow: hidden; border-radius: 999px; background: rgba(247,248,250,.14); }
.loader-track i { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-coral), var(--brand-magenta), var(--brand-blue)); animation: loader-sweep 1.1s ease-in-out infinite; }
@keyframes loader-draw { 0% { stroke-dashoffset: 210; opacity: .45; } 55%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes loader-pulse { 0%, 100% { opacity: .65; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }
@keyframes loader-cell { 0%, 100% { opacity: .08; } 50% { opacity: .18; } }
@keyframes loader-sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(260%); } }

.dashboard-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 18px 12px;
  color: #fff;
  background: #0a0a0a;
}
.rail-logo,
.brand-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.rail-logo { width: 36px; height: 36px; border-radius: 11px; padding: 3px; }
.rail-logo img,
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.rail-icons { display: grid; gap: 10px; }
.rail-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: rgba(255,255,255,.52);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.rail-icon:hover { color: #fff; transform: translateY(-1px); background: rgba(255,255,255,.09); }
.rail-icon.is-active { color: #fff; background: #1f2a35; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.rail-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.workspace { min-width: 0; }
.topbar {
  min-height: 72px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; padding: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.local-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.local-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(61,174,255,.12); }
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button-dark { color: #fff; background: #0a0a0a; box-shadow: 0 8px 20px rgba(10,10,10,.14); }
.button-dark:hover { background: #252525; box-shadow: 0 11px 24px rgba(10,10,10,.2); }
.button-progress { border: 1px solid rgba(20,86,240,.18); color: #123c91; background: #f1f5ff; box-shadow: 0 7px 18px rgba(20,86,240,.09); text-decoration: none; }
.button-progress:hover { color: #fff; background: var(--brand-blue); box-shadow: 0 11px 24px rgba(20,86,240,.2); }
.button-progress-mobile { display: none; }
.button-soft { width: 100%; color: var(--ink); background: var(--surface-1); border: 1px solid var(--border); }

main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 8px 0 48px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
  gap: 18px;
  scroll-margin-top: 24px;
}
.overview-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 6%, rgba(255,85,48,.42), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(20,86,240,.35), transparent 36%),
    linear-gradient(135deg, #0a0a0a 0%, #191e25 55%, #0a0a0a 100%);
  box-shadow: 0 24px 64px rgba(10,10,10,.22);
  animation: rise-in .6s cubic-bezier(.2,.75,.25,1) both;
}
.overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 85%);
}
.overview-card > * { position: relative; z-index: 1; }
.overview-title { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.eyebrow { margin: 0 0 8px; color: var(--brand-coral); font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.overview-card .eyebrow { color: rgba(255,255,255,.65); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(38px, 4.5vw, 62px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.subtitle { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.67); font-size: 14px; }
.period-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.overview-visuals { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; margin-top: 28px; }
.overview-block {
  min-width: 0;
  min-height: 190px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 15px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(12px);
}
.overview-block-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.overview-block-head div { display: grid; gap: 3px; }
.overview-block-head span { color: rgba(255,255,255,.58); font-size: 11px; font-weight: 500; }
.overview-block-head b { font-size: 18px; font-weight: 600; }
.overview-block-head small { color: rgba(255,255,255,.48); font-size: 10px; }
.classification-summary { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 18px; }
.classification-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand-blue) 0 50%, var(--brand-coral) 50% 74%, rgba(255,255,255,.32) 74% 100%);
  transition: background .35s ease;
}
.classification-ring::before { content: ""; width: 68px; height: 68px; border-radius: 50%; background: #171c22; }
.classification-ring > div { position: absolute; display: grid; place-items: center; line-height: 1.1; }
.classification-ring b { font-size: 17px; }
.classification-ring span { color: rgba(255,255,255,.5); font-size: 9px; }
.classification-legend { display: grid; gap: 9px; }
.classification-legend > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.classification-legend span { color: rgba(255,255,255,.6); font-size: 10px; }
.classification-legend b { font-size: 12px; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-blue { background: var(--brand-blue); }
.dot-coral { background: var(--brand-coral); }
.dot-muted { background: rgba(255,255,255,.32); }
.hero-status-bar { height: 14px; display: flex; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.hero-status-bar i { height: 100%; min-width: 1px; transition: width .45s cubic-bezier(.2,.75,.25,1); }
.hero-status-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 14px; }
.hero-status-legend > div { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-width: 0; }
.hero-status-legend i { width: 7px; height: 7px; border-radius: 50%; }
.hero-status-legend span { overflow: hidden; color: rgba(255,255,255,.55); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.hero-status-legend b { font-size: 10px; }

.data-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  background: var(--surface-1);
  animation: rise-in .6s .08s cubic-bezier(.2,.75,.25,1) both;
}
.data-panel-row { display: grid; gap: 3px; border-bottom: 1px solid var(--border); padding: 10px 8px; }
.data-panel-row span { color: var(--muted); font-size: 10px; font-weight: 500; }
.data-panel-row b { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.validation-card { margin: 12px 0; border-radius: 16px; padding: 12px; color: #fff; background: #111820; }
.validation-card-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.09); }
.validation-card-head span { color: rgba(255,255,255,.58); font-size: 10px; }
.validation-card-head b { font-size: 11px; }
.validation-list { display: grid; gap: 8px; padding-top: 10px; }
.validation-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.validation-item i { width: 7px; height: 7px; border-radius: 50%; }
.validation-item span { color: rgba(255,255,255,.65); font-size: 9px; }
.validation-item b { font-size: 9px; font-weight: 600; }
.validation-item.is-pass i { background: var(--brand-cyan); }
.validation-item.is-warn i { background: var(--brand-coral); }
.validation-item.is-wait i { background: #8f98a3; }

.temporary-note { display: flex; align-items: center; gap: 12px; margin: 18px 0; border: 1px solid #d8e3ff; border-radius: 16px; padding: 12px 14px; background: linear-gradient(100deg, #f3f6ff, #fff8f5); }
.temporary-note p { margin: 0; color: var(--muted); font-size: 12px; }
.temporary-note strong { color: var(--ink); }
.note-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-blue); font-size: 12px; font-weight: 700; }

.metric-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 0;
  overflow-x: auto;
  margin: 14px 0 20px;
  border: 1px solid rgba(10,10,10,.09);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10,10,10,.045);
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(20,86,240,.34) transparent;
  scrollbar-width: thin;
}
.metric-grid:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.metric-grid::-webkit-scrollbar { height: 5px; }
.metric-grid::-webkit-scrollbar-track { background: transparent; }
.metric-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(20,86,240,.34); }
.metric {
  position: relative;
  min-width: 0;
  min-height: 92px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(10,10,10,.075);
  border-radius: 0;
  padding: 12px 13px 11px;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: start;
  transition: background-color .18s ease;
}
.metric:last-child { border-right: 0; }
.metric:hover { background: #f7f9fc; }
.metric-wide { grid-column: auto; }
.metric span { position: relative; z-index: 1; display: flex; min-height: 18px; align-items: flex-start; gap: 4px; color: var(--muted); font-size: 8px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.metric b { position: relative; z-index: 1; display: block; margin-top: 7px; font-size: clamp(20px, 1.7vw, 25px); line-height: 1; letter-spacing: -.045em; font-weight: 650; font-variant-numeric: tabular-nums; }
.metric small { position: relative; z-index: 1; display: block; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.metric-accent { position: absolute; right: 12px; bottom: 0; width: 28px; height: 3px; border-radius: 999px 999px 0 0; background: var(--brand-blue); transform: none; }
.metric-coral .metric-accent { background: var(--brand-coral); }
.metric-dark { color: #fff; border-color: #0a0a0a; background: #0a0a0a; box-shadow: 0 18px 42px rgba(10,10,10,.18); }
.metric-dark:hover { background: #161616; }
.metric-dark span, .metric-dark small { color: rgba(255,255,255,.58); }
.metric-dark .metric-accent { width: 34px; height: 3px; background: var(--brand-cyan); }
.metric.is-waiting b { max-width: 150px; color: var(--muted); font-size: 15px; line-height: 1.25; letter-spacing: 0; }
.info-button { width: 14px; height: 14px; flex: 0 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; padding: 0; color: var(--muted); background: #fff; font-size: 8px; font-weight: 700; }
.metric-dark .info-button { border-color: rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.08); }
.metric-progress-summary { background: linear-gradient(145deg, #f7faff, #eef4ff); }
.metric-progress-summary b { color: #123c91; }
.metric-progress-pendataan { background: linear-gradient(145deg, #f5fbff, #edf8ff); }
.metric-progress-pendataan b { color: #167ab1; }
.metric-progress-track { position: relative; z-index: 1; height: 3px; overflow: hidden; border-radius: 999px; margin-top: 7px; background: rgba(20,86,240,.12); }
.metric-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); }

.filter-section { margin: 24px 0 12px; border: 1px solid var(--border); border-radius: 22px; padding: 18px; background: var(--surface-1); }
.rekap-filter { margin: 0 0 12px; border-radius: 16px; padding: 14px; }
.rekap-filter .compact-heading { margin-bottom: 11px; }
.rekap-filter .compact-heading h3 { margin: 0; font-size: 16px; line-height: 1.15; letter-spacing: -.02em; }
.rekap-filter-actions { display: flex; align-items: center; gap: 5px; }
.mobile-filter-toggle, .mobile-filter-state { display: none; }
.rekap-filter-grid { grid-template-columns: 1.1fr 1.1fr 1.25fr auto auto; }
.filter-heading-actions { display: flex; align-items: flex-end; gap: 12px; }
.view-mode-control { display: grid; gap: 5px; }
.view-mode-control > span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.view-mode-control > div { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cfd5de; border-radius: 11px; padding: 3px; background: #e9ecf1; }
.view-mode-control button { min-width: 58px; height: 30px; border: 0; border-radius: 8px; padding: 0 12px; color: #6e747c; background: transparent; font-size: 10px; font-weight: 700; }
.view-mode-control button.is-active { color: #fff; background: #101820; box-shadow: 0 3px 10px rgba(10,10,10,.17); }
.view-mode-control button:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 4px; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; }
.section-heading p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 12px; }
.compact-heading { align-items: center; margin-bottom: 14px; }
.compact-heading h2 { margin-bottom: 0; font-size: 22px; }
.text-button { border: 0; padding: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--ink); }
.filter-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr 1.2fr auto auto; align-items: end; gap: 10px; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.field input, .field select, .filter-result select {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 11px;
  color: var(--ink);
  outline: none;
  background: #fff;
  font-size: 12px;
}
.field input:focus, .field select:focus, .filter-result select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(20,86,240,.1); }
.field-disabled { opacity: .62; }
.check-filter { cursor: pointer; }
.check-filter input { position: absolute; opacity: 0; pointer-events: none; }
.check-filter > span { min-height: 40px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 0 10px; color: var(--muted); background: #fff; font-size: 11px; white-space: nowrap; }
.check-filter i { width: 15px; height: 15px; border: 1px solid #cfd3d8; border-radius: 5px; }
.check-filter input:checked + span { border-color: rgba(20,86,240,.28); color: var(--ink); background: #f5f8ff; }
.check-filter input:checked + span i { border-color: var(--brand-blue); background: var(--brand-blue); box-shadow: inset 0 0 0 3px #fff; }
.filter-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.filter-result label { display: flex; align-items: center; gap: 8px; }
.filter-result select { width: auto; height: 32px; }
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.active-filter-chips:empty { display: none; }
.active-filter-chips button { min-height: 29px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(20,86,240,.18); border-radius: 999px; padding: 0 9px 0 10px; color: #12388d; background: #f3f6ff; font-size: 10px; font-weight: 600; }
.active-filter-chips button:hover { border-color: rgba(20,86,240,.35); background: #eaf0ff; }
.active-filter-chips i { font-size: 14px; font-style: normal; line-height: 1; }

[hidden] { display: none !important; }
.custom-select { position: relative; width: 100%; min-width: 0; }
.native-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; opacity: 0 !important; pointer-events: none !important; }
.custom-select-trigger { width: 100%; min-width: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 0 10px 0 11px; color: var(--ink); outline: none; background: #fff; font-size: 12px; text-align: left; }
.custom-select-trigger:hover { border-color: #cfd3da; background: #fcfcfd; }
.custom-select-trigger:focus-visible, .custom-select.is-open .custom-select-trigger { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(20,86,240,.1); }
.custom-select-trigger:disabled { cursor: not-allowed; color: #888d94; background: #f2f3f5; }
.custom-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-caret { color: #858a91; font-size: 15px; transition: transform .16s ease; }
.custom-select.is-open .custom-select-caret { transform: rotate(180deg); }
.custom-select-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 80; width: max(100%, 220px); max-width: min(320px, calc(100vw - 32px)); border: 1px solid #dfe2e7; border-radius: 14px; padding: 6px; background: #fff; box-shadow: 0 18px 48px rgba(10,10,10,.17); }
.custom-select-search { width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 5px; padding: 0 9px; color: var(--ink); outline: none; background: #f8f9fb; font-size: 11px; }
.custom-select-search:focus { border-color: var(--brand-blue); background: #fff; }
.custom-select-options { max-height: 248px; overflow: auto; display: grid; gap: 2px; scrollbar-width: thin; }
.custom-select-options button { width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 9px; padding: 6px 8px; color: #34383d; outline: none; background: transparent; text-align: left; font-size: 11px; }
.custom-select-options button:hover, .custom-select-options button:focus-visible { background: #f1f4fb; }
.custom-select-options button.is-selected { color: #12388d; background: #edf2ff; font-weight: 600; }
.custom-select-options button i { visibility: hidden; color: var(--brand-blue); font-style: normal; }
.custom-select-options button.is-selected i { visibility: visible; }
.custom-select-empty { margin: 0; padding: 18px 8px; color: var(--muted); font-size: 11px; text-align: center; }

.analysis-section { padding: 34px 0 12px; scroll-margin-top: 22px; }
.section-key { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 10px; }
.section-key span { display: inline-flex; align-items: center; gap: 6px; }
.section-key i { width: 8px; height: 8px; border-radius: 50%; }
.key-blue { background: var(--brand-blue); }
.key-coral { background: var(--brand-coral); }
.key-magenta { background: var(--brand-magenta); }
.key-cyan { background: var(--brand-cyan); }
.chart-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart-card { min-width: 0; border: 1px solid var(--border); border-radius: 22px; padding: 18px; background: #fff; box-shadow: 0 10px 30px rgba(10,10,10,.045); }
.chart-card-primary { background: linear-gradient(180deg, #fff, #fbfcff); }
.chart-card-dark { color: #fff; border-color: #141a20; background: #111820; box-shadow: 0 18px 42px rgba(10,10,10,.14); }
.chart-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.chart-card-head > div { display: grid; gap: 3px; }
.chart-card-head span { color: var(--muted); font-size: 10px; font-weight: 600; }
.chart-card-head b { font-size: 14px; font-weight: 600; }
.chart-card-head small { color: var(--muted); font-size: 9px; text-align: right; }
.chart-card-dark .chart-card-head span, .chart-card-dark .chart-card-head small { color: rgba(255,255,255,.5); }
.chart-control-bar { display: flex; align-items: flex-end; gap: 7px; margin: -3px 0 16px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.chart-control-bar label { min-width: 0; display: grid; flex: 1; gap: 4px; }
.chart-control-bar label:last-of-type { max-width: 76px; }
.chart-control-bar label > span { color: var(--muted); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.chart-control-bar .custom-select-trigger { height: 34px; border-radius: 9px; font-size: 10px; }
.chart-control-bar .custom-select-menu { width: max(100%, 180px); }
.direction-button { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--border); border-radius: 9px; padding: 0; color: var(--ink); outline: none; background: #fff; font-size: 16px; font-weight: 600; }
.direction-button:hover { border-color: #c9ced6; background: #f6f7f9; }
.direction-button:focus-visible { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(20,86,240,.1); }
.chart-card-dark .chart-control-bar { border-bottom-color: rgba(255,255,255,.12); }
.chart-card-dark .chart-control-bar label > span { color: rgba(255,255,255,.45); }
.chart-card-dark .custom-select-trigger, .chart-card-dark .direction-button { border-color: rgba(255,255,255,.14); color: #fff; background: rgba(255,255,255,.07); }
.chart-card-dark .custom-select-trigger:hover, .chart-card-dark .direction-button:hover { background: rgba(255,255,255,.12); }
.chart-pagination { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.chart-pagination > div { display: flex; align-items: center; gap: 8px; }
.chart-pagination b { min-width: 42px; color: var(--ink); text-align: center; font-size: 9px; font-variant-numeric: tabular-nums; }
.chart-pagination button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1; }
.chart-pagination button:hover:not(:disabled) { border-color: #c7ccd3; background: #f5f6f8; }
.chart-pagination button:disabled { cursor: default; opacity: .36; }
.chart-card-dark .chart-pagination { border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.48); }
.chart-card-dark .chart-pagination b { color: #fff; }
.chart-card-dark .chart-pagination button { border-color: rgba(255,255,255,.14); color: #fff; background: rgba(255,255,255,.07); }
.bar-chart { max-height: 680px; overflow: auto; display: grid; gap: 11px; padding-right: 3px; scrollbar-width: thin; }
.bar-row { display: grid; grid-template-columns: minmax(92px, 140px) minmax(130px, 1fr) 68px; align-items: center; gap: 10px; }
.bar-row-label { min-width: 0; }
.bar-row-label b, .bar-row-label span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row-label b { font-size: 11px; font-weight: 600; }
.bar-row-label span { color: var(--muted); font-size: 8px; }
.bar-track { height: 11px; display: flex; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.bar-track i { height: 100%; min-width: 0; transition: width .35s cubic-bezier(.2,.75,.25,1), filter .18s ease; }
.bar-row:hover .bar-track i { filter: saturate(1.25) brightness(.97); }
.bar-row.is-pml-group { min-height: 36px; border: 1px solid #d8e2f5; border-radius: 11px; padding: 7px 8px; background: #f5f8ff; cursor: pointer; }
.bar-row.is-pml-group:hover, .bar-row.is-pml-group:focus-visible { border-color: #b4c8ef; outline: none; background: #edf3ff; }
.bar-row.is-pml-group.is-expanded { border-color: #9fb9ed; background: #e8f0ff; }
.bar-row.is-pml-member { position: relative; margin-left: 16px; padding-left: 10px; }
.bar-row.is-pml-member::before { content: ""; position: absolute; top: 50%; left: -8px; width: 9px; height: 1px; background: #b8c4d8; }
.bar-row.is-pml-member .bar-row-label b { font-weight: 500; }
.chart-group-chevron { display: inline-block; margin-left: 5px; color: var(--brand-blue); font-size: 11px; font-style: normal; }
.chart-card-dark .bar-row.is-pml-group { border-color: rgba(104,165,255,.24); background: rgba(52,111,204,.14); }
.chart-card-dark .bar-row.is-pml-group:hover, .chart-card-dark .bar-row.is-pml-group:focus-visible { border-color: rgba(104,165,255,.45); background: rgba(52,111,204,.22); }
.chart-card-dark .bar-row.is-pml-member::before { background: rgba(255,255,255,.25); }
.bar-value { text-align: right; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-legend { display: flex; flex-wrap: wrap; gap: 7px 11px; margin: -4px 0 14px; }
.status-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.status-legend i { width: 7px; height: 7px; border-radius: 50%; }
.status-chart .bar-track { height: 10px; }
.empty-chart { min-height: 160px; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); text-align: center; }
.empty-chart b { display: block; color: var(--ink); font-size: 13px; }
.empty-chart span { font-size: 10px; }

.usaha-layout { grid-template-columns: 1.15fr .85fr; }
.chart-card-dark .bar-row-label span { color: rgba(255,255,255,.46); }
.chart-card-dark .bar-track { background: rgba(255,255,255,.1); }
.usaha-chart .bar-track { height: 13px; }
.usaha-chart .bar-row { grid-template-columns: minmax(92px, 140px) minmax(130px, 1fr) 78px; }
.usaha-chart .bar-value { color: rgba(255,255,255,.72); }
.waiting-stack { display: grid; gap: 14px; }
.waiting-panel { min-height: 150px; display: flex; flex-direction: column; justify-content: center; border: 1px dashed #ccd1d7; border-radius: 22px; padding: 20px; background: linear-gradient(145deg, #fafbfc, #f4f5f7); }
.waiting-panel > span { color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.waiting-panel b { margin-top: 4px; font-size: 15px; }
.waiting-panel p { width: fit-content; margin: 18px 0 8px; border-radius: 999px; padding: 5px 9px; color: #6e7379; background: #e7e9ec; font-size: 10px; font-weight: 600; }
.waiting-panel small { color: var(--muted); font-size: 9px; }
.waiting-panel.is-ready { border-style: solid; background: #fff; }
.waiting-panel.is-ready p { color: #fff; background: var(--brand-blue); }
.info-pill { min-height: 34px; border: 1px solid var(--border); border-radius: 999px; padding: 0 11px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 600; }
.flag-card { padding-top: 20px; }
.flag-chart .bar-track { height: 13px; }
.flag-tracks { display: grid; gap: 4px; }
.flag-tracks .bar-track { height: 5px; }
.flag-row .bar-value { font-size: 9px; }
.waiting-panel.is-ready { display: block; max-height: 420px; overflow: hidden; }
.waiting-panel.is-ready > .bar-chart { max-height: 290px; margin-top: 14px; }
.usaha-finding-section { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.usaha-finding-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.usaha-finding-heading > div:first-child > span { color: var(--brand-coral); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.usaha-finding-heading h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.2; }
.usaha-finding-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.key-found { background: var(--brand-cyan) !important; }
.key-missing { background: #d7dbe0 !important; }
.finding-toolbar { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 9px; background: #fafbfc; }
.finding-toolbar > label { width: 220px; display: grid; gap: 4px; }
.finding-toolbar > label:last-of-type { width: 78px; }
.finding-toolbar > label > span, .finding-filter > span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.finding-toolbar .custom-select-trigger { height: 34px; border-radius: 9px; font-size: 10px; }
.finding-toolbar .custom-select-menu { width: max(100%, 210px); }
.finding-filter { display: grid; gap: 4px; margin-right: auto; }
.finding-filter > div { height: 34px; display: inline-flex; border: 1px solid var(--border); border-radius: 9px; padding: 3px; background: #f1f3f5; }
.finding-filter button { min-width: 70px; border: 0; border-radius: 6px; padding: 0 10px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 600; }
.finding-filter button.is-active { color: #fff; background: #111820; box-shadow: 0 1px 4px rgba(10,10,10,.16); }
.usaha-finding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.usaha-finding-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.finding-panel { position: relative; min-height: 180px; border-style: solid; padding: 18px; }
.finding-panel[hidden] { display: none !important; }
.finding-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand-blue); }
.finding-panel-building::before { background: var(--brand-coral); }
.finding-panel.is-ready { max-height: none; overflow: visible; }
.finding-panel.is-ready > .bar-chart { max-height: 318px; margin-top: 14px; }
.finding-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.finding-panel-head > div:first-child { min-width: 0; }
.finding-panel-head > div:first-child span { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.finding-panel-head > div:first-child b { display: block; margin-top: 2px; font-size: 15px; }
.finding-panel-head > div:last-child { flex: 0 0 auto; text-align: right; }
.finding-panel-head > div:last-child b { display: block; margin: 0; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.finding-panel-head > div:last-child small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.finding-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.finding-summary > div { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; column-gap: 6px; border: 1px solid var(--border); border-radius: 11px; padding: 8px 9px; background: #fafbfc; }
.finding-summary i { width: 7px; height: 7px; border-radius: 50%; }
.finding-dot-found { background: var(--brand-cyan); }
.finding-dot-missing { background: #cbd0d7; }
.finding-summary span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.finding-summary b { font-size: 12px; font-variant-numeric: tabular-nums; }
.finding-summary em { grid-column: 2 / -1; color: var(--muted); font-size: 8px; font-style: normal; }
.finding-total-track { height: 8px; display: flex; overflow: hidden; margin-top: 8px; border-radius: 999px; background: var(--surface-2); }
.finding-total-track i:first-child { background: var(--brand-cyan); }
.finding-total-track i:last-child { background: #d7dbe0; }
.finding-panel .bar-row { grid-template-columns: minmax(118px, 170px) minmax(120px, 1fr) 50px; gap: 8px; }
.finding-panel .bar-row-label span { font-size: 7px; }
.finding-pagination { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; border: 1px solid var(--border); border-radius: 12px; padding: 5px 7px 5px 11px; color: var(--muted); background: #fafbfc; font-size: 9px; }
.finding-pagination > div { display: flex; align-items: center; gap: 7px; }
.finding-pagination b { min-width: 42px; color: var(--ink); text-align: center; font-size: 9px; font-variant-numeric: tabular-nums; }
.finding-pagination button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 0; color: var(--ink); background: #fff; font-size: 16px; }
.finding-pagination button:hover:not(:disabled) { border-color: #c7ccd3; background: #f5f6f8; }
.finding-pagination button:disabled { cursor: default; opacity: .36; }
.pml-usaha-finding-grid { margin-top: 12px; }

.table-count { border-radius: 999px; padding: 6px 10px; color: var(--muted); background: var(--surface-1); font-size: 10px; font-weight: 600; }
.table-shell { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(10,10,10,.045); }
.table-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding: 13px 14px; background: #fff; }
.table-search { width: min(310px, 100%); display: grid; gap: 5px; }
.table-search > span, .toolbar-select > span { color: var(--muted); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.table-search input { width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 10px; padding: 0 11px; color: var(--ink); outline: none; background: #fafbfc; font-size: 11px; }
.table-search input:focus { border-color: var(--brand-blue); background: #fff; box-shadow: 0 0 0 3px rgba(20,86,240,.08); }
.table-toolbar-actions { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.toolbar-select { width: 174px; display: grid; gap: 5px; }
.toolbar-select .custom-select-trigger { height: 36px; border-radius: 10px; font-size: 10px; }
.toolbar-button, .toolbar-icon-button { height: 36px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; color: #33373c; outline: none; background: #fff; font-size: 10px; font-weight: 600; }
.toolbar-icon-button { width: 36px; padding: 0; font-size: 16px; }
.toolbar-button { display: inline-flex; align-items: center; gap: 7px; }
.toolbar-button b { border-radius: 999px; padding: 2px 5px; color: var(--muted); background: #eef0f3; font-size: 8px; }
.toolbar-button:hover, .toolbar-icon-button:hover { border-color: #c9ced6; background: #f7f8fa; }
.toolbar-button:focus-visible, .toolbar-icon-button:focus-visible { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(20,86,240,.1); }
.toolbar-popover { position: relative; }
.column-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; width: 272px; max-height: 390px; overflow: auto; border: 1px solid #dfe2e7; border-radius: 14px; padding: 7px; background: #fff; box-shadow: 0 18px 48px rgba(10,10,10,.17); scrollbar-width: thin; }
.column-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 6px 8px; }
.column-menu-head b { font-size: 11px; }
.column-menu-head button { border: 0; padding: 3px; color: var(--brand-blue); background: transparent; font-size: 10px; font-weight: 600; }
.column-menu label { display: block; cursor: pointer; }
.column-menu label input { position: absolute; opacity: 0; pointer-events: none; }
.column-menu label > span { min-height: 33px; display: flex; align-items: center; gap: 9px; border-radius: 8px; padding: 4px 7px; color: #383c41; font-size: 10px; }
.column-menu label:hover > span { background: #f4f6f8; }
.column-menu label i { width: 15px; height: 15px; flex: 0 0 15px; border: 1px solid #cdd1d7; border-radius: 4px; background: #fff; }
.column-menu label input:checked + span i { border-color: var(--brand-blue); background: var(--brand-blue); box-shadow: inset 0 0 0 3px #fff; }
.column-menu label input:focus-visible + span { box-shadow: inset 0 0 0 2px rgba(20,86,240,.28); }
.column-menu label input:disabled + span { cursor: default; color: #878c92; }
.density-control { height: 36px; display: inline-flex; border: 1px solid var(--border); border-radius: 10px; padding: 3px; background: #f4f5f7; }
.density-control button { min-width: 49px; border: 0; border-radius: 7px; padding: 0 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 600; }
.density-control button.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(10,10,10,.1); }
.sort-summary { min-height: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); padding: 7px 14px; background: #fafbfc; }
.sort-summary > span { margin-right: 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.sort-summary button { min-height: 23px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dfe3e9; border-radius: 999px; padding: 2px 7px; color: #40454b; background: #fff; font-size: 9px; }
.sort-summary button b { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; background: var(--brand-blue); font-size: 8px; }
.sort-summary button i { color: #8e939a; font-style: normal; font-size: 12px; }
.sort-summary button:disabled i { display: none; }
.sort-summary small { margin-left: auto; color: #8b9096; font-size: 8px; }
.table-scroll { max-height: 680px; overflow: auto; }
table { width: 100%; min-width: 1660px; border-collapse: collapse; font-size: 11px; }
th { position: sticky; top: 0; z-index: 3; padding: 0; color: var(--muted); background: var(--surface-1); text-align: left; }
th button { width: 100%; min-height: 46px; border: 0; padding: 0 12px; color: inherit; background: transparent; text-align: inherit; font-size: 10px; font-weight: 600; white-space: nowrap; }
th button:hover, th button.is-sorted { color: var(--ink); background: #eef0f3; }
.dual-sort-header { padding: 6px 9px; }
.dual-sort-title { display: block; margin-bottom: 5px; color: #555b63; font-size: 9px; font-weight: 700; white-space: nowrap; }
.dual-sort-title small { display: block; overflow: hidden; max-width: 154px; margin-top: 1px; color: #8a9098; font-size: 6px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dual-sort-actions { display: flex; align-items: center; gap: 4px; }
.dual-sort-actions button { width: auto; min-height: 23px; display: inline-flex; align-items: center; gap: 1px; border: 1px solid #d8dde4; border-radius: 7px; padding: 0 6px; color: #6b7178; background: #fff; font-size: 8px; font-weight: 650; }
.dual-sort-actions button:hover { border-color: #bfc7d2; background: #f7f9fb; }
.dual-sort-actions button.is-sorted { border-color: #9db7ee; color: #123c91; background: #e9f1ff; }
.dual-sort-actions .sort-mark { margin-left: 2px; font-size: 9px; }
.dual-sort-actions .sort-rank { min-width: 12px; height: 12px; margin-left: 1px; font-size: 6px; }
.sort-mark { margin-left: 5px; color: #a9aeb4; font-size: 11px; }
th button.is-sorted .sort-mark { color: var(--brand-blue); }
.sort-rank { display: inline-grid; place-items: center; min-width: 14px; height: 14px; border-radius: 50%; margin-left: 3px; color: #fff; background: var(--brand-blue); font-size: 7px; }
.sort-rank:empty { display: none; }
th.num, td.num { text-align: right; }
td { height: 52px; border-top: 1px solid var(--border); padding: 8px 12px; color: #292d31; font-variant-numeric: tabular-nums; }
table[data-density="compact"] td { height: 42px; padding-block: 6px; }
table[data-density="comfortable"] td { height: 58px; padding-block: 11px; }
tbody tr:hover td { background: #fafafa; }
td:first-child { font-weight: 600; }
.email-cell { color: var(--muted); font-size: 10px; }
.missing-cell { color: #8b9096; font-size: 9px; font-style: italic; }
.table-empty { height: 180px !important; color: var(--muted); text-align: center !important; }
.table-empty b, .table-empty span { display: block; }
.table-empty b { margin-bottom: 4px; color: var(--ink); font-size: 12px; }
.table-empty span { font-size: 10px; font-weight: 400; }
.table-pagination { min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border-top: 1px solid var(--border); padding: 8px 14px; background: #fff; }
.table-pagination > label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.table-pagination .custom-select { width: 72px; }
.table-pagination .custom-select-trigger { height: 32px; border-radius: 9px; font-size: 10px; }
.table-pagination .custom-select-menu { top: auto; bottom: calc(100% + 6px); width: 90px; min-width: 90px; }
.table-range { justify-self: center; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.pagination-nav, .pagination-nav > div { display: flex; align-items: center; gap: 4px; }
.pagination-nav button { min-width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; padding: 0 7px; color: #44484e; background: #fff; font-size: 11px; }
.pagination-nav button:hover:not(:disabled) { border-color: #c7ccd3; background: #f4f6f8; }
.pagination-nav button:disabled { cursor: default; opacity: .34; }
.pagination-nav button.is-current { border-color: var(--brand-blue); color: #fff; background: var(--brand-blue); }
.pagination-nav span { width: 22px; color: var(--muted); text-align: center; font-size: 10px; }

.ranking-heading { align-items: flex-end; }
.ranking-heading-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 14px; }
.ranking-heading .table-count { min-width: 150px; display: grid; justify-items: end; gap: 3px; border-radius: 0; padding: 0; background: transparent; }
.ranking-heading .table-count span { color: var(--muted); font-size: 9px; font-weight: 500; }
.ranking-heading .table-count b { border-radius: 999px; padding: 6px 10px; color: var(--ink); background: var(--surface-1); font-size: 10px; }
.roster-shell { border-radius: 18px; }
.roster-scroll { max-height: 760px; }
.roster-table { min-width: 1120px; table-layout: fixed; }
.roster-table th:nth-child(1) { width: 225px; }
.roster-table th:nth-child(2) { width: 105px; }
.roster-table th:nth-child(3) { width: 168px; }
.roster-table th:nth-child(4) { width: 145px; }
.roster-table th:nth-child(5) { width: 159px; }
.roster-table th:nth-child(6) { width: 157px; }
.roster-table th:nth-child(7) { width: 161px; }
.roster-table th:first-child { left: 0; z-index: 5; box-shadow: 1px 0 0 var(--border); }
.roster-table td:first-child { position: sticky; left: 0; z-index: 2; padding: 0; background: #fff; box-shadow: 1px 0 0 var(--border); }
.roster-table tbody tr:hover td:first-child { background: #fafafa; }
.roster-table td { height: 94px; padding: 10px 8px; vertical-align: middle; }
.roster-table[data-density="compact"] td { height: 88px; padding-block: 8px; }
.roster-table[data-density="comfortable"] td { height: 108px; padding-block: 14px; }
.roster-summary-row td { position: sticky; top: 46px; z-index: 4; border-top-color: #b9c9ea; border-bottom: 1px solid #b9c9ea; background: #eef4ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.roster-summary-row td:first-child { top: 46px; z-index: 6; background: #e6efff; box-shadow: 1px 0 0 #b9c9ea, inset 3px 0 0 var(--brand-blue), inset 0 1px 0 rgba(255,255,255,.7); }
.roster-table tbody .roster-summary-row:hover td { background: #eef4ff; }
.roster-table tbody .roster-summary-row:hover td:first-child { background: #e6efff; }
.roster-summary-row { cursor: pointer; }
.roster-summary-identity { width: 100%; min-height: 75px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; align-items: center; gap: 10px; border: 0; padding: 8px 11px; color: var(--ink); outline: none; background: transparent; text-align: left; }
.roster-summary-identity:hover { background: rgba(255,255,255,.28); }
.roster-summary-identity:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-blue); }
.roster-summary-row.is-expanded .person-open { color: var(--brand-blue); transform: rotate(180deg); }
.summary-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--brand-blue); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.roster-summary-row .person-copy b { color: #123c91; }
.roster-summary-row .roster-progress-track,
.roster-summary-row .roster-stacked { background: rgba(20,86,240,.12); }
.roster-data-row { cursor: pointer; }
.roster-pml-row td { background: #fbfcff; }
.roster-pml-row .pml-avatar { color: #fff; background: linear-gradient(145deg, #10264c, #1456f0); }
.roster-pml-row .person-copy em strong { color: #1456f0; letter-spacing: .04em; }
.roster-data-row.is-expanded td { border-top-color: #b9c9ea; background: #f7faff; }
.roster-data-row.is-expanded td:first-child { background: #f1f6ff; }
.roster-identity-cell { min-width: 225px; }
.roster-person { width: 100%; min-height: 75px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; align-items: center; gap: 10px; border: 0; padding: 8px 11px; color: var(--ink); outline: none; background: transparent; text-align: left; }
.roster-person:hover { background: #f6f8fc; }
.roster-person:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-blue); }
.person-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #111820, #23478f); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.person-copy { min-width: 0; display: grid; gap: 1px; }
.person-copy b, .person-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-copy b { font-size: 11px; font-weight: 700; }
.person-copy small { color: var(--muted); font-size: 8px; font-weight: 400; }
.person-copy em { min-width: 0; display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #73787f; font-size: 8px; font-style: normal; white-space: nowrap; }
.person-copy em strong { max-width: 108px; overflow: hidden; color: #294671; font-weight: 600; text-overflow: ellipsis; }
.person-copy em i { width: 3px; height: 3px; flex: 0 0 3px; border-radius: 50%; background: #b4b9c0; }
.person-open { color: #9aa0a8; font-size: 12px; transition: transform .16s ease, color .16s ease; }
.roster-person:hover .person-open { color: var(--brand-blue); transform: translateY(2px); }
.roster-data-row.is-expanded .person-open { color: var(--brand-blue); transform: rotate(180deg); }
.roster-total { display: grid; justify-items: end; gap: 3px; }
.roster-total b { color: var(--ink); font-size: 20px; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.roster-total span { color: var(--muted); font-size: 8px; font-weight: 500; }
.roster-total em { color: #3f6eae; font-size: 7px; font-style: normal; font-weight: 700; }
.roster-composition, .roster-usaha { min-width: 0; display: grid; gap: 7px; }
.roster-progress-dual { min-width: 0; display: grid; gap: 7px; }
.roster-rough-progress { min-width: 0; display: grid; gap: 6px; }
.roster-rough-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.roster-rough-progress b { color: var(--ink); font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.roster-rough-progress strong { color: var(--brand-blue); font-size: 10px; }
.roster-rough-progress span { color: var(--muted); font-size: 7px; line-height: 1.3; }
.roster-rough-track i { background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); }
.progress-line { min-width: 0; display: grid; gap: 3px; }
.progress-line > div:first-child { min-width: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 6px; }
.progress-line span { color: #385c9f; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.progress-line b { color: var(--brand-blue); font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.progress-line em { overflow: hidden; color: var(--muted); font-size: 7px; font-style: normal; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.progress-line.is-pendataan span { color: #267b9f; }
.progress-line.is-pendataan b { color: #167ab1; }
.roster-progress-track, .roster-stacked { height: 7px; display: flex; overflow: hidden; border-radius: 999px; background: #e8ebef; }
.roster-progress-track i { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1456f0, #3daeff); }
.progress-line.is-pendataan .roster-progress-track i { background: linear-gradient(90deg, #167ab1, #63c6ee); }
.roster-stacked i { height: 100%; }
.roster-composition-head, .roster-usaha-head { min-width: 0; display: flex; align-items: baseline; gap: 5px; }
.roster-composition-head b, .roster-usaha-head b { color: var(--ink); font-size: 13px; line-height: 1; }
.roster-composition-head span, .roster-usaha-head span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.roster-composition-head em { margin-left: auto; color: #a34a37; font-size: 9px; font-style: normal; font-weight: 600; }
.roster-usaha-head strong { margin-left: auto; color: #167ab1; font-size: 9px; white-space: nowrap; }
.roster-composition-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #777c83; font-size: 7px; white-space: nowrap; }
.roster-waiting { display: grid; gap: 3px; border-left: 2px solid #d8dce1; padding-left: 9px; }
.roster-waiting b { color: #6e7379; font-size: 9px; font-weight: 600; }
.roster-waiting span { color: #979ca2; font-size: 7px; }

.roster-detail-row > td { position: static !important; left: auto !important; height: auto !important; border-top: 0; border-bottom: 1px solid #b9c9ea; padding: 0 !important; background: #eef4ff !important; box-shadow: none !important; }
.inline-detail { position: sticky; left: 12px; width: min(calc(100vw - 164px), 1186px); margin: 0 12px 12px; border: 1px solid #b9c9ea; border-radius: 17px; padding: 12px; background: #fff; box-shadow: 0 14px 34px rgba(20,52,105,.09); animation: detail-expand .2s cubic-bezier(.2,.75,.25,1) both; }
.inline-detail-head { min-height: 66px; display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(190px, auto) auto; align-items: center; gap: 11px; border-radius: 13px; margin-bottom: 9px; padding: 11px 12px; color: #fff; background: radial-gradient(circle at 88% 0, rgba(61,174,255,.25), transparent 35%), linear-gradient(135deg, #10161d, #173c78); }
.inline-detail .detail-avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 12px; }
.inline-detail-identity { min-width: 0; }
.inline-detail-identity p { margin: 0 0 2px; color: #84bdff; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.inline-detail-identity h3 { overflow: hidden; margin: 0; color: #fff; font-size: 18px; line-height: 1.05; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.inline-detail-identity > span { display: block; overflow: hidden; margin-top: 5px; color: rgba(255,255,255,.58); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inline-detail-close { min-height: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 0 9px; color: #fff; background: rgba(255,255,255,.08); font-size: 8px; font-weight: 700; white-space: nowrap; }
.inline-detail-close:hover { background: rgba(255,255,255,.15); }
.inline-detail-close:focus-visible { outline: 2px solid #84bdff; outline-offset: 2px; }
.inline-detail .detail-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-detail .detail-composition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pml-inline-detail { border-color: #aebfe3; background: linear-gradient(180deg, #fff, #f8faff); }
.pml-detail-head { background: radial-gradient(circle at 88% 0, rgba(61,174,255,.28), transparent 35%), linear-gradient(135deg, #101820, #123c91); }
.pml-aggregate-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.summary-inline-detail { border-color: #90afe8; background: linear-gradient(180deg, #fff, #f7faff); }
.summary-detail-head { background: radial-gradient(circle at 88% 0, rgba(61,174,255,.3), transparent 35%), linear-gradient(135deg, #0f1720, #1247ac); }
.summary-avatar { font-size: 8px !important; letter-spacing: .07em; }
.compact-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.compact-metric-card {
  --metric-tone: #8d96a2;
  --metric-bar: var(--metric-tone);
  position: relative;
  min-width: 0;
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(20, 34, 52, .10);
  border-radius: 11px;
  padding: 9px 10px 8px;
  background: linear-gradient(145deg, rgba(141,150,162,.055), rgba(255,255,255,.98) 58%);
}
.compact-metric-card::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; content: ""; background: var(--metric-bar); }
.compact-metric-card[data-tone="assignment-total"] { --metric-bar: linear-gradient(90deg, var(--brand-blue), var(--brand-coral)); background: linear-gradient(145deg, rgba(20,86,240,.09), rgba(255,85,48,.055) 74%, #fff); }
.compact-metric-card[data-tone="assignment-prelist"] { --metric-tone: #2b67eb; background: linear-gradient(145deg, rgba(20,86,240,.075), #fff 68%); }
.compact-metric-card[data-tone="assignment-new"] { --metric-tone: var(--brand-coral); background: linear-gradient(145deg, rgba(255,85,48,.075), #fff 68%); }
.compact-metric-card[data-tone="progress"] { --metric-bar: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); background: linear-gradient(145deg, rgba(61,174,255,.085), #fff 68%); }
.compact-metric-card[data-tone="warning"] { --metric-tone: var(--brand-coral); background: linear-gradient(145deg, rgba(255,85,48,.075), #fff 68%); }
.compact-metric-card[data-tone="flag"] { --metric-tone: #89939f; background: linear-gradient(145deg, rgba(111,122,135,.08), #fff 68%); }
.compact-metric-card[data-tone="assignment-family"] { --metric-tone: var(--brand-blue); background: linear-gradient(145deg, rgba(20,86,240,.085), #fff 68%); }
.compact-metric-card[data-tone="assignment-building"] { --metric-tone: var(--brand-coral); background: linear-gradient(145deg, rgba(255,85,48,.085), #fff 68%); }
.compact-metric-card[data-tone="business-total"] { --metric-bar: linear-gradient(90deg, var(--brand-blue), var(--brand-magenta)); background: linear-gradient(145deg, rgba(20,86,240,.075), rgba(234,94,193,.065) 74%, #fff); }
.compact-metric-card[data-tone="business-found"] { --metric-tone: var(--brand-cyan); background: linear-gradient(145deg, rgba(61,174,255,.085), #fff 68%); }
.compact-metric-card[data-tone="business-missing"] { --metric-tone: #8f98a3; background: linear-gradient(145deg, rgba(111,122,135,.075), #fff 68%); }
.compact-metric-card[data-tone="business-family"],
.compact-metric-card[data-tone="business-family-found"] { --metric-tone: var(--brand-blue); background: linear-gradient(145deg, rgba(20,86,240,.085), #fff 68%); }
.compact-metric-card[data-tone="business-family-missing"] { --metric-tone: #7891c7; background: linear-gradient(145deg, rgba(20,86,240,.045), #fff 68%); }
.compact-metric-card[data-tone="business-building"],
.compact-metric-card[data-tone="business-building-found"] { --metric-tone: var(--brand-magenta); background: linear-gradient(145deg, rgba(234,94,193,.085), #fff 68%); }
.compact-metric-card[data-tone="business-building-missing"] { --metric-tone: #b17fa6; background: linear-gradient(145deg, rgba(234,94,193,.045), #fff 68%); }
.compact-metric-card > span { overflow: hidden; color: #697079; font-size: 7px; font-weight: 750; letter-spacing: .025em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.compact-metric-card > b { overflow: hidden; color: #15191e; font-size: 18px; line-height: 1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.compact-metric-card > small { overflow: hidden; color: #858b93; font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.compact-metric-track { height: 3px; overflow: hidden; border-radius: 999px; margin-top: 2px; background: #e4e8ed; }
.compact-metric-track i { display: block; height: 100%; border-radius: inherit; background: var(--metric-bar); }
.compact-detail-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.compact-detail-footer span { min-height: 24px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e2e5e9; border-radius: 999px; padding: 3px 8px; color: #767c84; background: #fff; font-size: 7px; }
.compact-detail-footer b { color: #22272d; font-size: 8px; }
.pml-member-section { margin-top: 12px; border: 1px solid var(--border); border-radius: 16px; padding: 13px; background: #fff; }
.pml-member-list { display: grid; gap: 6px; margin-top: 9px; }
.pml-member-card { overflow: hidden; border: 1px solid #e0e4ea; border-radius: 12px; background: #fafbfc; }
.pml-member-card.is-open { border-color: #c5d3ed; background: #fff; }
.pml-member-summary { width: 100%; min-height: 54px; display: grid; grid-template-columns: 32px minmax(130px, 1fr) 92px 92px 18px; align-items: center; gap: 10px; border: 0; padding: 8px 10px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.pml-member-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #172d54; font-size: 8px; font-weight: 700; }
.pml-member-person, .pml-member-stat { min-width: 0; display: grid; gap: 2px; }
.pml-member-person b, .pml-member-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pml-member-person b { font-size: 10px; }
.pml-member-person small, .pml-member-stat small { color: var(--muted); font-size: 7px; }
.pml-member-stat { text-align: right; }
.pml-member-stat b { font-size: 11px; font-variant-numeric: tabular-nums; }
.pml-member-chevron { color: #8d96a2; transition: transform .15s ease; }
.pml-member-card.is-open .pml-member-chevron { transform: rotate(180deg); }
.pml-member-detail-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; border-top: 1px solid #e4e7eb; padding: 9px; }
.pml-member-detail-grid .detail-metric { min-height: 72px; padding: 10px; }
.pml-member-detail-grid .detail-metric b { font-size: 16px; }

@keyframes detail-expand { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

body.has-dialog { overflow: hidden; }
.ppl-detail-dialog { width: min(920px, calc(100vw - 30px)); max-width: none; max-height: min(900px, calc(100dvh - 30px)); overflow: visible; border: 0; border-radius: 26px; padding: 0; color: var(--ink); background: transparent; box-shadow: 0 30px 100px rgba(10,10,10,.32); }
.ppl-detail-dialog::backdrop { background: rgba(11,15,22,.62); backdrop-filter: blur(5px); }
.ppl-detail-sheet { position: relative; max-height: min(900px, calc(100dvh - 30px)); overflow: auto; border-radius: 26px; padding: 28px; background: #fff; scrollbar-width: thin; }
.detail-close { position: sticky; top: 0; z-index: 5; float: right; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; padding: 0; color: var(--ink); outline: none; background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(10,10,10,.08); }
.detail-close:hover { background: var(--surface-1); }
.detail-close:focus-visible { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(20,86,240,.14); }
.detail-close svg { width: 17px; height: 17px; }
.detail-hero { min-height: 114px; display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(180px, auto); align-items: center; gap: 16px; margin: -28px -28px 22px; padding: 28px 76px 24px 28px; color: #fff; background: radial-gradient(circle at 85% 0, rgba(255,85,48,.34), transparent 38%), linear-gradient(135deg, #10161d, #142d62); }
.detail-avatar { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 19px; color: #fff; background: rgba(255,255,255,.09); font-size: 18px; font-weight: 700; }
.detail-hero .eyebrow { margin-bottom: 3px; color: #84bdff; }
.detail-hero h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 36px); line-height: 1; letter-spacing: -.04em; }
.detail-hero > div:nth-child(2) > span { display: block; margin-top: 7px; color: rgba(255,255,255,.58); font-size: 10px; }
.detail-pair { display: grid; justify-items: end; gap: 3px; text-align: right; }
.detail-pair span { color: rgba(255,255,255,.52); font-size: 8px; text-transform: uppercase; }
.detail-pair b { font-size: 14px; }
.detail-pair small { color: rgba(255,255,255,.48); font-size: 8px; }
.detail-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.detail-metric { min-width: 0; display: grid; gap: 5px; border: 1px solid var(--border); border-radius: 15px; padding: 13px; background: #fafbfc; }
.detail-metric span { color: var(--muted); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.detail-metric b { overflow: hidden; color: var(--ink); font-size: 21px; line-height: 1.05; letter-spacing: -.03em; text-overflow: ellipsis; }
.detail-metric small { color: var(--muted); font-size: 8px; }
.detail-composition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.detail-composition, .detail-status-section { border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.detail-section-head > span { color: var(--muted); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.detail-section-head > b { font-size: 9px; font-weight: 600; }
.detail-split-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-split-values > div { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 5px; }
.detail-split-values i { width: 7px; height: 7px; border-radius: 50%; }
.detail-split-values span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.detail-split-values b { font-size: 10px; }
.detail-split-values em { grid-column: 2 / -1; color: #777c83; font-size: 8px; font-style: normal; }
.detail-stacked { height: 9px; display: flex; overflow: hidden; border-radius: 999px; margin-top: 12px; background: #e8ebef; }
.detail-stacked i { height: 100%; }
.detail-empty-line { height: 9px; border-radius: 999px; background: repeating-linear-gradient(135deg, #eceef1 0 6px, #f7f8fa 6px 12px); }
.detail-status-section { margin-top: 9px; }
.detail-status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.detail-status-list > div { min-height: 29px; display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; align-items: center; gap: 8px; border-top: 1px solid #eef0f2; }
.detail-status-list span { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: #4d5258; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.detail-status-list span i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.detail-status-list b { font-size: 9px; font-variant-numeric: tabular-nums; }
.detail-status-list em { color: var(--muted); font-size: 8px; font-style: normal; text-align: right; }
.detail-flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 18px 4px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
footer strong { color: var(--ink); }

.info-popover {
  position: fixed;
  z-index: 100;
  width: min(280px, calc(100vw - 24px));
  border-radius: 13px;
  padding: 11px 12px;
  color: #fff;
  background: #111820;
  box-shadow: 0 14px 36px rgba(10,10,10,.24);
  font-size: 10px;
  pointer-events: none;
}
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 110; max-width: min(360px, calc(100vw - 40px)); border-radius: 14px; padding: 12px 14px; color: #fff; background: #111820; box-shadow: 0 16px 42px rgba(10,10,10,.26); font-size: 11px; }
.toast.is-error { background: #8f2923; }
.toast.is-success { background: #123c91; }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 1160px) {
  .metric-grid { grid-auto-columns: 132px; }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-search { width: 100%; }
  .table-toolbar-actions { justify-content: flex-start; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .overview-card { min-height: auto; }
  .data-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .data-panel-row { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
  .validation-card { grid-column: 1 / -1; margin: 0; }
  .data-panel .button { grid-column: 1 / -1; }
  .metric-grid { grid-auto-columns: 132px; }
  .chart-layout, .usaha-layout { grid-template-columns: 1fr; }
  .usaha-finding-grid { grid-template-columns: 1fr; }
  .inline-detail .detail-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compact-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dashboard-shell { display: block; }
  .rail {
    position: fixed;
    top: auto;
    left: 50%;
    bottom: 10px;
    z-index: 50;
    width: min(300px, calc(100% - 28px));
    height: 52px;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    padding: 6px 10px;
    transform: translateX(-50%);
    box-shadow: 0 18px 45px rgba(10,10,10,.34);
  }
  .rail-logo { width: 34px; height: 34px; flex: 0 0 34px; }
  .rail-icons { display: flex; flex: 1; justify-content: flex-end; gap: 4px; }
  .rail-icon { width: 38px; height: 38px; border-radius: 12px; }
  .topbar, main { width: min(100% - 20px, 1280px); }
  .topbar { min-height: 62px; }
  .local-badge { display: none; }
  .button-dark { min-height: 36px; padding-inline: 10px; font-size: 11px; }
  .button-progress { min-height: 36px; padding-inline: 10px; font-size: 10px; }
  main { padding-top: 4px; padding-bottom: 90px; }
  .overview-card { border-radius: 24px; padding: 20px; }
  .overview-title { display: grid; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  .period-pill { position: absolute; top: 20px; right: 20px; }
  .overview-visuals { grid-template-columns: 1fr; }
  .overview-block { min-height: 176px; }
  .metric-grid { grid-auto-columns: 126px; gap: 0; margin: 12px 0 18px; }
  .metric, .metric-wide { grid-column: auto; min-height: 88px; padding: 11px 12px 10px; }
  .metric span { font-size: 8px; }
  .metric b { margin-top: 6px; font-size: 22px; }
  .metric small { margin-top: 5px; font-size: 7px; }
  .filter-heading-actions { width: 100%; align-items: center; justify-content: space-between; }
  .view-mode-control { grid-template-columns: auto auto; align-items: center; }
  .view-mode-control > span { margin-right: 2px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .check-filter > span { white-space: normal; }
  .rekap-filter { border-radius: 14px; padding: 10px 11px; }
  .rekap-filter .compact-heading { min-height: 40px; align-items: center; flex-direction: row; gap: 8px; margin-bottom: 9px; }
  .rekap-filter.is-mobile-collapsed .compact-heading { margin-bottom: 0; }
  .rekap-filter-title { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; }
  .rekap-filter-title .eyebrow { display: none; }
  .rekap-filter .compact-heading h3 { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-filter-state { display: block; color: var(--muted); font-size: 8px; font-weight: 600; white-space: nowrap; }
  .rekap-filter-actions { flex: 0 0 auto; }
  .mobile-filter-toggle { height: 30px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(20,86,240,.2); border-radius: 9px; padding: 0 8px; color: #123c91; background: #f1f5ff; font-size: 9px; font-weight: 700; }
  .mobile-filter-toggle i { font-size: 12px; font-style: normal; transition: transform .16s ease; }
  .rekap-filter:not(.is-mobile-collapsed) .mobile-filter-toggle i { transform: rotate(180deg); }
  .rekap-filter .text-button { padding: 5px 3px; font-size: 9px; }
  .rekap-filter.is-mobile-collapsed .rekap-filter-body { display: none; }
  .rekap-filter-body { padding-top: 3px; }
  .rekap-filter .filter-grid { gap: 7px; }
  .rekap-filter .field { gap: 4px; }
  .rekap-filter .field input, .rekap-filter .custom-select-trigger, .rekap-filter .check-filter > span { height: 35px; min-height: 35px; border-radius: 10px; font-size: 10px; }
  .rekap-filter .filter-result { gap: 3px; margin-top: 8px; font-size: 8px; }
  .rekap-filter .active-filter-chips { gap: 5px; margin-top: 7px; }
  .rekap-filter .active-filter-chips button { min-height: 25px; font-size: 8px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ranking-heading-actions { width: 100%; justify-content: space-between; }
  .section-key { justify-content: flex-start; }
  .usaha-finding-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .finding-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 34px 78px; align-items: end; }
  .finding-filter { grid-column: 1 / -1; margin-right: 0; }
  .finding-filter > div { width: 100%; }
  .finding-filter button { min-width: 0; flex: 1; }
  .finding-toolbar > label { width: auto; }
  .finding-toolbar > label:last-of-type { width: auto; }
  .finding-panel { padding: 14px; }
  .finding-panel .bar-row { grid-template-columns: 92px minmax(100px, 1fr) 44px; }
  .chart-card { padding: 13px; border-radius: 18px; }
  .bar-row { grid-template-columns: 90px minmax(100px, 1fr) 54px; gap: 7px; }
  .bar-row-label b { font-size: 9px; }
  .bar-row.is-pml-group { padding: 6px; }
  .bar-row.is-pml-member { margin-left: 10px; padding-left: 7px; }
  .table-toolbar-actions { display: grid; grid-template-columns: minmax(150px, 1fr) 36px auto; }
  .toolbar-select { width: auto; }
  .density-control { grid-column: span 2; }
  .sort-summary small { width: 100%; margin-left: 0; }
  .table-pagination { grid-template-columns: 1fr auto; }
  .table-range { justify-self: end; }
  .pagination-nav { grid-column: 1 / -1; justify-content: space-between; }
  .ranking-heading .table-count { justify-items: start; }
  .roster-table { min-width: 1120px; }
  .roster-scroll {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .roster-table th:first-child {
    left: auto;
    z-index: 3;
    box-shadow: none;
  }
  .roster-table td:first-child {
    position: static;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }
  .roster-table .roster-summary-row td,
  .roster-table .roster-summary-row td:first-child {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    box-shadow: inset 3px 0 0 var(--brand-blue), inset 0 1px 0 rgba(255,255,255,.7);
  }
  .inline-detail { position: sticky; left: 12px; width: calc(100vw - 64px); margin-right: auto; padding: 10px; }
  .inline-detail-head { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .inline-detail .detail-avatar { width: 38px; height: 38px; }
  .inline-detail .detail-pair { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .inline-detail-close { grid-column: 3; grid-row: 1; }
  .inline-detail .detail-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-detail .detail-composition-grid { grid-template-columns: 1fr; }
  .pml-aggregate-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pml-member-section { padding: 9px; }
  .pml-member-summary { grid-template-columns: 30px minmax(112px, 1fr) 70px 16px; gap: 7px; padding: 7px; }
  .pml-member-summary .pml-member-stat:nth-child(4) { display: none; }
  .pml-member-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .compact-metric-card { min-height: 66px; padding: 8px; }
  .compact-metric-card > b { font-size: 17px; }
  .ppl-detail-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 21px; }
  .ppl-detail-sheet { max-height: calc(100dvh - 16px); border-radius: 21px; padding: 18px; }
  .detail-hero { grid-template-columns: 48px minmax(0, 1fr); margin: -18px -18px 16px; padding: 22px 58px 20px 18px; }
  .detail-avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 14px; }
  .detail-pair { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .detail-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-composition-grid { grid-template-columns: 1fr; }
  .detail-status-list { grid-template-columns: 1fr; }
  .detail-flags { grid-template-columns: 1fr; }
  footer { padding-bottom: 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .topbar-brand > span:last-child { max-width: 156px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar { gap: 10px; }
  .topbar-actions { gap: 6px; }
  .button-progress-desktop { display: none; }
  .button-progress-mobile { display: inline; }
  .button-dark { width: 36px; padding-inline: 0; }
  .button-dark .button-copy { display: none; }
  .overview-card { padding: 16px; }
  .period-pill { top: 16px; right: 16px; font-size: 9px; }
  .subtitle { font-size: 12px; }
  .classification-summary { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
  .classification-ring { width: 84px; height: 84px; }
  .classification-ring::before { width: 60px; height: 60px; }
  .hero-status-legend { grid-template-columns: 1fr; }
  .data-panel { grid-template-columns: 1fr; }
  .validation-card, .data-panel .button { grid-column: auto; }
  .temporary-note { align-items: flex-start; }
  .filter-section { padding: 13px; }
  .filter-heading-actions { align-items: flex-start; flex-direction: column; }
  .ranking-heading-actions { align-items: flex-start; flex-direction: column; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-result { align-items: flex-start; flex-direction: column; }
  .metric { min-height: 86px; }
  .metric b { font-size: 21px; }
  .chart-card-head { flex-direction: column; gap: 4px; }
  .chart-card-head small { text-align: left; }
  .chart-control-bar { display: grid; grid-template-columns: minmax(0, 1fr) 34px 68px; }
  .chart-control-bar label:last-of-type { width: 68px; }
  .bar-row { grid-template-columns: 82px minmax(84px, 1fr) 48px; }
  .bar-value { font-size: 8px; }
  .table-toolbar-actions { grid-template-columns: minmax(130px, 1fr) 36px; }
  .toolbar-popover, .density-control { grid-column: span 1; }
  .table-toolbar-actions > .toolbar-button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .toolbar-popover .toolbar-button { width: 100%; justify-content: center; }
  .column-menu { right: auto; left: 0; width: min(272px, calc(100vw - 48px)); }
  .density-control button { flex: 1; }
  .table-pagination { grid-template-columns: 1fr; gap: 8px; }
  .table-range { justify-self: start; }
  .pagination-nav { overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
}
