/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-outline-style: solid;
    }
  }
}

@layer theme {
  :root, :host {
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --spacing: .25rem;
    --text-5xl: 3rem;
    --text-5xl--line-height: 1;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: "Inter", system-ui, -apple-system, sans-serif;
    --default-mono-font-family: "IBM Plex Mono", ui-monospace, monospace;
    --card-radius: 16px;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .relative {
    position: relative;
  }

  .sticky {
    position: sticky;
  }

  .top-0 {
    top: 0;
  }

  .z-100 {
    z-index: 100;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .min-h-screen {
    min-height: 100vh;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .flex-col {
    flex-direction: column;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .items-center {
    align-items: center;
  }

  .justify-center {
    justify-content: center;
  }

  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .text-5xl {
    font-size: var(--text-5xl);
    line-height: var(--tw-leading, var(--text-5xl--line-height));
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .underline {
    text-decoration-line: underline;
  }

  .opacity-25 {
    opacity: .25;
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}

*, :before, :after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f1f5f9;
  --surface: #fff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #7c3aed;
  --accent-glow: #7c3aed40;
  --g1: #7c3aed;
  --g2: #0891b2;
  --header-bg: #0f172a;
  --card-radius: 16px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

.dark {
  --bg: #0c0f1a;
  --surface: #1a1e2e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #2a2f42;
  --header-bg: #0a0d17;
  --accent-glow: #7c3aed59;
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.dark body {
  background: var(--bg);
  color: var(--text);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 0 8px #0000;
  }
}

.animate-fade-in-up {
  animation: .6s ease-out forwards fadeInUp;
}

.animate-float {
  animation: 3s ease-in-out infinite float;
}

.fallback-coastal {
  background: linear-gradient(135deg, #0c4a6e 0%, #0891b2 40%, #06b6d4 70%, #67e8f9 100%);
}

.fallback-highland {
  background: linear-gradient(135deg, #1e3a2f 0%, #166534 40%, #22c55e 80%, #86efac 100%);
}

.fallback-lowland {
  background: linear-gradient(135deg, #1a2e05 0%, #365314 40%, #4d7c0f 70%, #a3e635 100%);
}

.fallback-river {
  background: linear-gradient(135deg, #0c1e2e 0%, #164e63 40%, #0e7490 70%, #22d3ee 100%);
}

.fallback-mangrove {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #059669 70%, #6ee7b7 100%);
}

.fallback-savanna {
  background: linear-gradient(135deg, #451a03 0%, #92400e 40%, #d97706 70%, #fcd34d 100%);
}

.fallback-pattern:after {
  content: "";
  opacity: .08;
  background-image: repeating-linear-gradient(0deg, #0000, #0000 30px, #ffffff4d 30px 31px), repeating-linear-gradient(90deg, #0000, #0000 30px, #ffffff4d 30px 31px);
  position: absolute;
  inset: 0;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.header {
  background: var(--header-bg);
  color: #fff;
  z-index: 100;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff0f;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 32px;
  display: flex;
  position: sticky;
  top: 0;
}

.header-logo {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}

.header-logo img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.header-title {
  letter-spacing: -.01em;
  font-size: 16px;
  font-weight: 700;
}

.header-sub {
  color: #94a3b8;
  margin-top: 1px;
  font-size: 11.5px;
}

.header-actions {
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.theme-toggle {
  color: #94a3b8;
  cursor: pointer;
  width: 36px;
  height: 36px;
  transition: var(--transition);
  background: #ffffff14;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  display: flex;
}

.theme-toggle:hover {
  color: #fff;
  background: #ffffff24;
}

.stats-chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.stat-chip {
  color: #94a3b8;
  background: #ffffff14;
  border: 1px solid #ffffff1a;
  border-radius: 20px;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  line-height: 1;
  display: flex;
}

.stat-chip strong {
  color: #e2e8f0;
  font-weight: 700;
}

.stat-chip--v0 {
  color: #fde68a;
  background: #fef9c32e;
  border-color: #ca8a0473;
}

.stat-chip--v0 strong {
  color: #fef9c3;
}

.stat-chip--engine {
  color: #bbf7d0;
  background: #22c55e29;
  border-color: #22c55e73;
}

.stat-chip--engine strong {
  color: #dcfce7;
}

.stat-chip--ai {
  color: #bfdbfe;
  background: #2563eb2e;
  border-color: #3b82f673;
}

.stat-chip--ai strong {
  color: #dbeafe;
}

.content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.province-section {
  margin-bottom: 36px;
}

.province-header {
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-left: 2px;
  display: flex;
}

.province-accent {
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  width: 4px;
  height: 22px;
}

.province-name {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.province-count {
  color: var(--text-muted);
  background: var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  display: grid;
}

.hero-card {
  border-radius: var(--card-radius);
  color: #fff;
  cursor: pointer;
  height: 220px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #ffffff0f;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-card:hover {
  box-shadow: 0 20px 40px #00000040, 0 0 0 1px var(--accent-glow);
  transform: translateY(-4px)scale(1.01);
}

.hero-card__bg {
  background-position: center;
  background-size: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  position: absolute;
  inset: 0;
}

.hero-card:hover .hero-card__bg {
  transform: scale(1.08);
}

.hero-card__fallback {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.hero-card[data-img-failed] .hero-card__fallback {
  opacity: 1;
}

.hero-card[data-img-failed] .hero-card__bg {
  opacity: 0;
}

.hero-card__overlay {
  z-index: 1;
  background: linear-gradient(#0000 0%, #00000014 35%, #0000008c 65%, #000000d1 100%);
  position: absolute;
  inset: 0;
}

.hero-card__content {
  z-index: 2;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  display: flex;
  position: relative;
}

.hero-card__name {
  letter-spacing: -.02em;
  text-shadow: 0 2px 8px #0006;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-card__province {
  color: #ffffffb3;
  text-shadow: 0 1px 4px #0000004d;
  letter-spacing: .02em;
  font-size: 11px;
  font-weight: 500;
}

.hero-card__pills {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.pill {
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #ffffff26;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.pill-klaster {
  color: #fff;
  background: #ffffff2e;
}

.pill-desa {
  color: #fff;
  background: #7c3aed8c;
  border-color: #7c3aed59;
}

.pill--v0 {
  color: #713f12;
  background: #fef9c3f2;
  border-color: #ca8a0499;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  display: inline-flex;
}

.hero-card__logo {
  z-index: 3;
  transition: transform var(--transition);
  position: absolute;
  top: 14px;
  left: 14px;
}

.hero-card__logo img {
  object-fit: contain;
  filter: drop-shadow(0 1px 3px #00000080) drop-shadow(0 4px 8px #00000040);
  width: auto;
  height: 32px;
  transition: transform var(--transition);
}

.hero-card:hover .hero-card__logo img {
  transform: scale(1.1);
}

.footer {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 28px 16px;
  font-size: 11.5px;
}

.tab-nav {
  background: var(--header-bg);
  z-index: 99;
  border-top: 1px solid #ffffff0f;
  gap: 0;
  padding: 0 32px;
  display: flex;
  position: sticky;
  top: 64px;
}

.tab-btn {
  cursor: pointer;
  color: #64748b;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 3px solid #0000;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.tab-btn:hover {
  color: #e2e8f0;
}

.tab-btn.active {
  color: #f1f5f9;
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: block;
}

.meto-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px;
}

.meto-header {
  margin-bottom: 28px;
}

.meto-header h2 {
  color: var(--text);
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 700;
}

.meto-header p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 18px;
  margin-bottom: 14px;
  padding: 20px;
  display: flex;
}

.step-num {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.step-desc {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.step-desc:last-child {
  margin-bottom: 0;
}

.formula-box {
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
  letter-spacing: .02em;
  border-radius: 8px;
  margin-top: 4px;
  padding: 14px 18px;
  font-size: 16px;
}

.note-box {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
}

.back-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.back-btn:hover {
  background: #6d28d9;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .header {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    padding: 10px 16px;
  }

  .header-title {
    font-size: 15px;
  }

  .header-sub {
    font-size: 10.5px;
  }

  .stats-chips {
    order: 10;
    justify-content: flex-start;
    width: 100%;
  }

  .content {
    padding: 24px 16px 40px;
  }

  .hero-card {
    height: 190px;
  }

  .hero-card__name {
    font-size: 17px;
  }

  .hero-card__content {
    gap: 6px;
    padding: 14px 16px;
  }

  .pill {
    padding: 3px 8px;
    font-size: 10px;
  }

  .hero-card__logo img {
    height: 28px;
  }

  .tab-nav {
    padding: 0 16px;
    position: relative;
    top: auto;
  }

  .meto-content {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .header {
    gap: 6px;
  }

  .header-title {
    font-size: 14px;
  }

  .header-sub {
    font-size: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-logo {
    width: 32px;
    height: 32px;
  }

  .theme-toggle {
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .stats-chips {
    gap: 4px;
  }

  .stat-chip {
    padding: 3px 8px;
    font-size: 10px;
  }

  .content {
    padding: 20px 12px 36px;
  }

  .province-section {
    margin-bottom: 28px;
  }

  .province-name {
    font-size: 11px;
  }

  .province-count {
    font-size: 10px;
  }

  .hero-card {
    height: 180px;
  }

  .hero-card__name {
    font-size: 16px;
  }

  .hero-card__province {
    font-size: 10px;
  }

  .hero-card__content {
    gap: 5px;
    padding: 12px 14px;
  }

  .hero-card__logo {
    top: 10px;
    left: 10px;
  }

  .hero-card__logo img {
    height: 26px;
  }

  .pill {
    padding: 3px 7px;
    font-size: 9.5px;
  }

  .footer {
    padding: 20px 12px;
    font-size: 10.5px;
  }
}

@media (max-width: 600px) {
  .step-card {
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-nav {
  z-index: 2000;
  background: #0f2244;
  align-items: center;
  gap: 2px;
  height: 52px;
  padding: 0 16px;
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 12px #00000040;
}

.dark .detail-nav {
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.detail-nav .nav-brand {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin-right: 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
}

.detail-nav .nav-logo {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 7px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
}

.detail-nav .nav-brand-text {
  line-height: 1.2;
}

.detail-nav .nav-brand-sub {
  opacity: .65;
  text-transform: none;
  font-size: 9.5px;
  font-weight: 400;
  display: block;
}

.detail-nav .nav-scroll-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.detail-nav .nav-scroll-inner {
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 2px;
  padding: 0 2px;
  display: flex;
  overflow-x: auto;
}

.detail-nav .nav-scroll-inner::-webkit-scrollbar {
  display: none;
}

.detail-nav .nav-tab {
  color: #fff9;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s;
  display: inline-flex;
}

.detail-nav .nav-tab:hover {
  color: #fff;
  background: #ffffff1a;
}

.detail-nav .nav-tab.active, .detail-nav .nav-tab--active {
  color: #fff;
  background: #1d4ed8;
}

.detail-nav .nav-back-link {
  color: #ffffffb3;
  cursor: pointer;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
  transition: all .18s;
  display: flex;
}

.detail-nav .nav-back-link:hover {
  color: #fff;
  background: #ffffff1a;
}

.detail-nav .nav-logo-img {
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.detail-nav .nav-section-label {
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #ffffff59;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  padding: 0 8px;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
}

.detail-nav .nav-divider {
  background: #ffffff1f;
  flex-shrink: 0;
  align-self: stretch;
  width: 1px;
  margin: 10px 4px;
}

.detail-nav .nav-actions {
  border-left: 1px solid #ffffff1f;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 10px;
  display: flex;
}

.detail-nav .nav-action-btn {
  color: #ffffffd9;
  cursor: pointer;
  background: #ffffff14;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  font-family: inherit;
  text-decoration: none;
  transition: background .18s;
  display: flex;
}

.detail-nav .nav-action-btn:hover {
  background: #ffffff29;
}

.detail-nav .nav-action-btn:disabled, .detail-nav .nav-action-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .5;
}

.detail-nav .nav-hamburger {
  cursor: pointer;
  color: #ffffffe6;
  background: #ffffff14;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  padding: 6px 8px;
  transition: background .15s;
  display: none;
}

.detail-nav .nav-hamburger:hover {
  background: #ffffff26;
}

.nav-drawer-overlay {
  z-index: 2998;
  opacity: 0;
  pointer-events: none;
  background: #00000080;
  transition: opacity .2s;
  position: fixed;
  inset: 0;
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-panel {
  z-index: 2999;
  background: #0f172a;
  width: min(280px, 100vw - 48px);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  box-shadow: 4px 0 24px #0000004d;
}

.nav-drawer-panel.open {
  transform: translateX(0);
}

.nav-drawer-header {
  color: #fff;
  border-bottom: 1px solid #ffffff1a;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
}

.nav-drawer-close {
  color: #fff;
  cursor: pointer;
  background: #ffffff14;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  display: flex;
}

.nav-drawer-item {
  text-align: left;
  color: #ffffffb3;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  display: flex;
}

.nav-drawer-item:hover, .nav-drawer-item.active {
  color: #fff;
  background: #ffffff14;
}

.nav-drawer-item.active {
  border-left: 3px solid var(--accent);
}

@media (max-width: 860px) {
  .detail-nav .nav-scroll-wrap, .detail-nav .nav-section-label, .detail-nav .nav-divider {
    display: none !important;
  }

  .detail-nav .nav-hamburger {
    display: flex !important;
  }

  .detail-nav .nav-brand-text {
    display: none;
  }
}

.sidebar-brand-lockup, .sidebar-brand-kab, .sidebar-toggle {
  display: none;
}

@media (min-width: 900px) {
  body.has-sidebar {
    padding-left: 240px;
    transition: padding-left .2s;
  }

  body.has-sidebar.sidebar-collapsed {
    padding-left: 56px;
  }

  body.has-sidebar .detail-nav {
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 900;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    width: 240px;
    height: 100vh;
    padding: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden auto;
    box-shadow: 0 0 20px #0f22440a;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav {
    width: 56px;
  }

  body.has-sidebar .detail-nav .nav-brand {
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    margin-right: 0;
    padding: 14px 16px 12px;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-brand {
    padding: 12px 10px;
  }

  body.has-sidebar .detail-nav .nav-logo-img, body.has-sidebar .detail-nav .nav-brand-text {
    display: none;
  }

  body.has-sidebar .sidebar-brand-lockup {
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    display: flex;
  }

  body.has-sidebar .sidebar-brand-lockup .brand-icon {
    color: #fff;
    background: linear-gradient(135deg, #0f2244 0%, #0891b2 100%);
    border-radius: 8px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    display: flex;
  }

  body.has-sidebar .sidebar-brand-lockup .brand-wordmark {
    color: var(--text);
    letter-spacing: -.2px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
  }

  body.has-sidebar .sidebar-brand-sub {
    color: var(--text-muted);
    letter-spacing: .1px;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.35;
  }

  body.has-sidebar.sidebar-collapsed .sidebar-brand-lockup > div:last-child {
    display: none;
  }

  body.has-sidebar .sidebar-brand-kab {
    color: var(--text);
    background: var(--bg);
    letter-spacing: .3px;
    border-radius: 4px;
    margin-top: 2px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
  }

  body.has-sidebar.sidebar-collapsed .sidebar-brand-kab {
    display: none;
  }

  body.has-sidebar .detail-nav .nav-scroll-wrap {
    background: none;
    border: none;
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    overflow: hidden auto;
  }

  body.has-sidebar .detail-nav .nav-scroll-inner {
    flex-direction: column;
    gap: 2px;
    padding: 0;
    display: flex;
    overflow: visible;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-scroll-inner {
    align-items: center;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-scroll-wrap {
    padding: 8px 0;
  }

  body.has-sidebar .detail-nav .nav-section-label {
    color: var(--text-muted);
    text-align: left;
    margin-top: 2px;
    padding: 8px 12px 4px;
    display: block;
  }

  body.has-sidebar .detail-nav .nav-section-label:first-of-type {
    margin-top: 0;
    padding-top: 2px;
  }

  body.has-sidebar .detail-nav .nav-divider {
    background: var(--border);
    align-self: stretch;
    width: auto;
    height: 1px;
    margin: 6px 8px 0;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-section-label, body.has-sidebar.sidebar-collapsed .detail-nav .nav-divider {
    display: none;
  }

  body.has-sidebar .detail-nav .nav-tab, body.has-sidebar .detail-nav .nav-back-link {
    text-align: left;
    white-space: normal;
    width: 100%;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 6px;
    flex-shrink: 0;
    justify-content: flex-start;
    gap: 10px;
    height: auto;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
  }

  body.has-sidebar .detail-nav .nav-tab svg, body.has-sidebar .detail-nav .nav-back-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  body.has-sidebar .detail-nav .nav-tab:hover {
    color: var(--text);
    background: var(--bg);
  }

  body.has-sidebar .detail-nav .nav-tab.active {
    color: var(--text);
    background: var(--bg);
    box-shadow: inset 3px 0 0 0 var(--accent);
    font-weight: 600;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-tab {
    color: #0000;
    justify-content: center;
    gap: 0;
    width: 40px;
    min-width: 40px;
    margin: 0 auto;
    padding: 9px 0;
    font-size: 0;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-tab svg {
    color: var(--text-muted);
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-back-link {
    justify-content: center;
    margin: 4px auto 6px;
    padding: 9px 0;
  }

  body.has-sidebar .detail-nav .nav-actions {
    border-top: 1px solid var(--border);
    border-left: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    margin: 8px 10px 10px;
    padding: 10px 6px 4px;
  }

  body.has-sidebar .detail-nav .nav-action-btn--doc {
    display: none;
  }

  body.has-sidebar.sidebar-collapsed .detail-nav .nav-actions {
    margin: 8px 4px;
    padding: 8px 0;
  }

  .sidebar-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 950;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: left .2s, background .12s, color .12s;
    display: flex;
    position: fixed;
    top: 24px;
    left: 228px;
    box-shadow: 0 1px 3px #0f224414;
  }

  .sidebar-toggle:hover {
    background: var(--bg);
    color: var(--text);
  }

  body.has-sidebar.sidebar-collapsed .sidebar-toggle {
    left: 48px;
  }

  body.has-sidebar.sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
  }

  body.has-sidebar .detail-layout {
    height: 100vh;
    margin-top: 0;
  }

  body.has-sidebar .nav-hamburger {
    display: none;
  }

  body.has-sidebar .cal-footer {
    padding-left: 240px;
    transition: padding-left .2s;
  }

  body.has-sidebar.sidebar-collapsed .cal-footer {
    padding-left: 56px;
  }
}

@media (max-width: 899px) {
  .sidebar-toggle {
    display: none !important;
  }
}

.cal-toggle {
  z-index: 900;
  color: #854d0e;
  cursor: pointer;
  background: #fef9c3;
  border: 1px solid #ca8a04;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  position: fixed;
  bottom: 14px;
  right: 14px;
  box-shadow: 0 2px 8px #00000026;
}

.cal-footer {
  z-index: 900;
  color: #713f12;
  background: #fef9c3;
  border-top: 1px solid #ca8a04;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 11px;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -2px 8px #00000014;
}

.cal-footer .cal-label {
  color: #854d0e;
  letter-spacing: .5px;
  text-transform: uppercase;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
}

.cal-footer .cal-text {
  flex: 1;
  line-height: 1.4;
}

.cal-footer .cal-close {
  color: #713f12;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 18px;
  line-height: 1;
}

.detail-hero {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.detail-hero-content {
  z-index: 2;
  color: #fff;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 24px;
  display: flex;
  position: relative;
}

.detail-hero-title {
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px #00000080;
  font-size: 28px;
  font-weight: 800;
}

.detail-hero-sub {
  color: #fffc;
  text-shadow: 0 1px 6px #0006;
  margin-top: 4px;
  font-size: 14px;
}

.irdc-page-hero {
  color: #fff;
  background: linear-gradient(135deg, #0f2244 0%, #1e40af 55%, #4f46e5 100%);
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  color: #ffffffb3;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
}

.hero-title {
  color: #fff;
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 700;
}

.hero-sub {
  color: #ffffffbf;
  max-width: 600px;
  font-size: 13px;
}

.hero-deco {
  opacity: .07;
  line-height: 1;
  position: absolute;
  top: -20px;
  right: -20px;
}

.hero-pills {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  display: flex;
}

.hero-pill {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  background: #ffffff26;
  border: 1px solid #ffffff40;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.detail-layout {
  height: calc(100vh - 52px);
  display: flex;
  overflow: hidden;
}

.detail-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  width: 250px;
  display: none;
  overflow-y: auto;
}

.detail-main {
  flex: 1;
  overflow-y: auto;
}

.detail-main-inner {
  padding: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  display: grid;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: default;
  border-radius: 9px;
  padding: 13px 15px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .kpi {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.kpi-lbl {
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
}

.kpi-val {
  margin-bottom: 3px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.kpi-sub {
  color: var(--text-muted);
  font-size: 11px;
}

.k-red .kpi-val {
  color: #dc2626;
}

.k-orange .kpi-val {
  color: #c2410c;
}

.k-blue .kpi-val {
  color: #1d4ed8;
}

.k-green .kpi-val {
  color: #16a34a;
}

.cc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .cc {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.cc-body {
  padding: 14px;
}

.cc-title {
  color: var(--text);
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.cc-sub {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 11px;
}

.cc-source {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 10px;
  font-style: italic;
}

.row {
  gap: 10px;
  margin-bottom: 10px;
  display: grid;
}

.r-map-scatter {
  grid-template-columns: 3fr 2fr;
}

.r-hist {
  grid-template-columns: 1fr 1fr;
}

.q-legend {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  display: flex;
}

.q-chip {
  color: #fff;
  border-radius: 20px;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
}

.qc-pri {
  background: #dc2626;
}

.qc-res {
  background: #c2410c;
}

.qc-acc {
  background: #1d4ed8;
}

.qc-low {
  background: #94a3b8;
}

.irdc-data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.irdc-data-table th {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  text-align: left;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.dark .irdc-data-table th {
  background: #0f172a;
}

.irdc-data-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: 8px 10px;
}

.irdc-data-table tr:hover td {
  background: var(--bg);
}

.score-bar-wrap {
  align-items: center;
  gap: 6px;
  display: flex;
}

.score-bar-bg {
  background: #e2e8f0;
  border-radius: 3px;
  flex: 1;
  min-width: 60px;
  height: 6px;
}

.dark .score-bar-bg {
  background: #334155;
}

.score-bar-fill {
  border-radius: 3px;
  height: 6px;
  transition: width .4s;
}

.score-val {
  text-align: right;
  width: 34px;
  font-family: IBM Plex Mono, monospace;
  font-size: 11.5px;
  font-weight: 600;
}

.status-up {
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
}

.status-dn {
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
}

.status-eq {
  color: var(--text-muted);
  font-size: 11px;
}

.f-sep {
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  padding: 10px 0 6px;
  font-size: 10px;
  font-weight: 700;
}

.f-sep:first-child {
  padding-top: 0;
}

.f-group {
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
  display: flex;
}

.f-item {
  cursor: pointer;
  border-radius: 5px;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  transition: background .12s;
  display: flex;
}

.f-item:hover {
  background: var(--bg);
}

.f-item input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 13px;
  height: 13px;
}

.f-item label {
  cursor: pointer;
  flex: 1;
  font-size: 12px;
}

.f-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
}

.f-badge {
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 1px 5px;
  font-family: IBM Plex Mono, monospace;
  font-size: 9.5px;
}

.btn-reset {
  background: var(--bg);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--muted, #64748b);
  cursor: pointer;
  border-radius: 6px;
  margin-top: 12px;
  padding: 7px;
  font-family: inherit;
  font-size: 11.5px;
  transition: all .2s;
}

.btn-reset:hover {
  background: var(--border);
  color: var(--text);
}

.sidebar-source {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 10px;
  line-height: 1.65;
}

.map-placeholder {
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  height: 340px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.map-placeholder-content {
  z-index: 2;
  text-align: center;
  color: #fffc;
  position: relative;
}

.m8-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 18px;
  margin-bottom: 14px;
  padding: 20px;
  display: flex;
}

.m8-step-num {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.m8-step-body {
  flex: 1;
  min-width: 0;
}

.m8-step-title {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.m8-step-desc {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.m8-source-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

.m8-source-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.m8-source-label {
  color: var(--text);
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.m8-source-desc {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.m8-cluster-pills {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.m8-cluster-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
}

.m8-formula-grid {
  gap: 12px;
  display: grid;
}

.m8-formula-box {
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
}

.m8-note {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
}

.m8-principle-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

.m8-principle-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.m8-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
}

.m8-table th {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  text-align: left;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
}

.m8-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  padding: 8px 10px;
  line-height: 1.5;
}

.m8-table tr:hover td {
  background: var(--bg);
}

.m8-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
}

.m5-banner {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  display: grid;
}

.m5-stat {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  padding: 13px 15px;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .m5-stat {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.m5-stat-lbl {
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
}

.m5-stat-num {
  margin-bottom: 2px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.m5-stat-sub {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.s-red .m5-stat-num {
  color: #dc2626;
}

.s-blue .m5-stat-num {
  color: #1d4ed8;
}

.s-green .m5-stat-num {
  color: #16a34a;
}

.s-orange .m5-stat-num {
  color: #c2410c;
}

.m5-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  display: grid;
}

.m5-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .m5-card {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.m5-card-top {
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  display: flex;
}

.m5-rank {
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
}

.m5-card-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.m5-card-kec {
  color: var(--text-muted);
  font-size: 11px;
}

.m5-card-body {
  padding: 10px 14px;
}

.m5-score-row {
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11.5px;
  display: flex;
}

.m5-score-track {
  background: #e2e8f0;
  border-radius: 3px;
  flex: 1;
  height: 5px;
  overflow: hidden;
}

.dark .m5-score-track {
  background: #334155;
}

.m5-score-fill {
  border-radius: 3px;
  height: 100%;
}

.m5-badge {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  display: inline-block;
}

.m5-justif {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
}

.m7-hero {
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
  border-radius: 10px;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  padding: 18px 22px;
  display: flex;
}

.m7-kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  display: grid;
}

.m7-vcard {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  padding: 13px 15px;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .m7-vcard {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.m7-vcard-lbl {
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
}

.m7-vcard-num {
  margin-bottom: 2px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.m7-vcard-sub {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.m7-klaster-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  display: grid;
}

.m7-klcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .m7-klcard {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.m7-klcard-head {
  color: #fff;
  padding: 12px 14px;
}

.m7-klcard-body {
  padding: 10px 12px;
}

.m7-chip-row {
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11.5px;
  display: flex;
}

.m7-rekomen-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  display: grid;
}

.m7-rcol {
  border: 2px solid;
  border-radius: 9px;
  overflow: hidden;
}

.m7-rcol-head {
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.m7-rcol-body {
  background: var(--surface);
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  display: flex;
}

.m7-rv {
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 7px;
  padding: 8px 10px;
  transition: box-shadow .15s;
}

.program-tabs {
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  display: flex;
}

.program-tab {
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: all .18s;
}

.program-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.program-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sim-layout {
  gap: 20px;
  display: flex;
}

.sim-sliders {
  flex-shrink: 0;
  width: 300px;
}

.sim-results {
  flex: 1;
  min-width: 0;
}

.sim-slider-group {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  margin-bottom: 20px;
  padding: 14px;
}

.sim-slider-group label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.sim-slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.sim-slider-group .range-val {
  color: var(--accent);
  text-align: center;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
}

.sel-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 12px 16px;
  display: flex;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .sel-bar {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.sel-group {
  align-items: center;
  gap: 8px;
  display: flex;
}

.sel-label {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}

.sel-select {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 6px;
  outline: none;
  min-width: 220px;
  max-width: 320px;
  padding: 6px 10px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.sel-select:focus {
  border-color: var(--accent);
}

.sel-divider {
  background: var(--border);
  width: 1px;
  height: 32px;
  margin: 0 4px;
}

.desa-layout {
  gap: 12px;
  display: flex;
}

.desa-sidebar {
  flex-shrink: 0;
  width: 290px;
}

.desa-detail {
  flex: 1;
  min-width: 0;
}

.desa-search-wrap {
  margin-bottom: 10px;
  position: relative;
}

.desa-search-input {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  width: 100%;
  padding: 8px 32px 8px 12px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.desa-search-input:focus {
  border-color: var(--accent);
}

.desa-list-item {
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  transition: background .12s;
  display: flex;
}

.desa-list-item:hover {
  background: var(--bg);
}

.desa-list-item.active {
  background: var(--accent);
  color: #fff;
}

.m2p-section {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.m2p-section-label {
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
}

.m2p-pill-row {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.m2p-pill {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 7px;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 6px 10px;
  display: flex;
}

.m2p-pill-key {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
}

.m2p-pill-val {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.m2p-mid-grid {
  border-top: 1px solid var(--border);
  grid-template-columns: 1fr 1fr;
  gap: 0;
  display: grid;
}

.m2p-comp-row {
  margin-bottom: 12px;
}

.m2p-comp-row:last-child {
  margin-bottom: 0;
}

.m2p-bar-wrap {
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  display: flex;
}

.m2p-bar-track {
  background: #e2e8f0;
  border-radius: 3px;
  flex: 1;
  height: 5px;
  overflow: hidden;
}

.dark .m2p-bar-track {
  background: #334155;
}

.m2p-bar-fill {
  border-radius: 3px;
  height: 100%;
  transition: width .4s;
}

.m2p-bar-lbl {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 80px;
  font-size: 9.5px;
  font-weight: 500;
}

.m2p-insight {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.m2p-para {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
}

.m2p-para-rec {
  border-left: 3px solid var(--accent);
  background: #eff6ff;
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.8;
}

.dark .m2p-para-rec {
  background: #1d4ed826;
}

.d-kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  display: grid;
}

.d-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px #00000014, 0 1px 2px #0000000a;
}

.dark .d-kpi {
  box-shadow: 0 1px 3px #0006, 0 1px 2px #0000004d;
}

.d-kpi-lbl {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
}

.d-kpi-val {
  margin-bottom: 2px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.d-kpi-sub {
  color: var(--text-muted);
  font-size: 10.5px;
}

.inv-hero-amount {
  font-size: 28px;
  font-weight: 800;
}

.inv-detail {
  opacity: .85;
  font-size: 12px;
}

.inv-breakdown {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

@media (max-width: 1280px) {
  .r-map-scatter {
    grid-template-columns: 1fr;
  }

  .kpi-grid, .m7-kpi-grid, .m5-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  .m7-rekomen-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .r-hist, .m2p-mid-grid, .m8-source-grid, .m8-principle-grid, .inv-breakdown {
    grid-template-columns: 1fr;
  }

  .detail-hero-title {
    font-size: 22px;
  }

  .sim-layout {
    flex-direction: column;
  }

  .sim-sliders {
    width: 100%;
  }

  .desa-layout {
    flex-direction: column;
  }

  .desa-sidebar {
    width: 100%;
  }

  .detail-nav .nav-tab {
    padding: 5px 10px;
    font-size: 11px;
  }

  .detail-nav .nav-brand {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .kpi-grid, .m7-kpi-grid, .m5-banner, .d-kpi-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-title {
    font-size: 20px;
  }

  .detail-hero-content {
    padding: 16px;
  }

  .m8-step {
    flex-direction: column;
    gap: 10px;
  }

  .detail-main-inner {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .detail-sidebar {
    display: none;
  }

  .detail-nav .nav-tab {
    padding: 4px 8px;
    font-size: 10px;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/