/* CekCPNS Official Design System v1.0 & UI Style Guide v1.0 + Brand Guideline v1.1 */
:root {
  color-scheme: light;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Official Brand & Action Palette */
  --color-action-primary: #042fbb;
  --color-action-hover: #032797;
  --color-action-pressed: #06206f;
  --color-text-heading: #0a1c60;
  --color-text-body: #152449;
  --color-text-muted: #465878;
  --color-accent: #feda02;
  --color-accent-hover: #ffe55b;
  --color-surface-canvas: #f2fafe;
  --color-surface-default: #ffffff;
  --color-border-subtle: #ccdcec;
  --color-border-control: #687fa2;

  /* Semantic Status Tokens */
  --color-info: #042fbb;
  --color-info-bg: #e8efff;
  --color-success: #146548;
  --color-success-bg: #e7f6ee;
  --color-warning: #795000;
  --color-warning-bg: #fff4cb;
  --color-error: #a3223d;
  --color-error-bg: #fdecf0;
  --color-disabled: #e8eef6;
  --color-disabled-text: #4e607c;

  /* Spacing Scale (4px base) */
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;

  /* Shape & Control */
  --radius-control: 8px;
  --radius-panel: 12px;
  --radius-pill: 999px;
  --control-height: 44px;

  /* Typography Scale */
  --type-heading-page: 700 2rem/2.5rem var(--font-ui);
  --type-heading-section: 700 1.5rem/2rem var(--font-ui);
  --type-heading-card: 600 1.125rem/1.625rem var(--font-ui);
  --type-body-default: 400 1rem/1.5rem var(--font-ui);
  --type-label-default: 600 0.875rem/1.25rem var(--font-ui);
  --type-table-default: 400 0.875rem/1.25rem var(--font-ui);
  --type-caption-default: 400 0.75rem/1rem var(--font-ui);
}

@media (max-width: 767px) {
  :root {
    --type-heading-page: 700 1.75rem/2.25rem var(--font-ui);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; overflow-x: clip; }

body {
  margin: 0;
  background: var(--color-surface-canvas);
  font: var(--type-body-default);
  color: var(--color-text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4, p { margin: 0; }
a, button { touch-action: manipulation; }

.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: -5rem;
  left: 1rem;
  color: var(--color-action-primary);
  background: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-control);
  font: var(--type-label-default);
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--color-action-primary); outline-offset: 2px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-32);
}

/* Top Preview & Disclaimer Strip */
.preview-banner {
  background: var(--color-text-heading);
  color: #e8efff;
  font: var(--type-caption-default);
  padding: 8px 0;
}

.preview-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: var(--color-text-heading);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-right: 6px;
}

.preview-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.preview-links a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sticky Masthead (Option B: Clean Editorial Underline + 2-Bar Mobile) */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 1px 0 var(--color-border-subtle), 0 4px 16px rgba(10, 28, 96, 0.04);
}

.masthead-inner {
  max-width: 1280px;
  min-height: 68px;
  padding: 0 var(--space-32);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-24);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border-radius: var(--radius-control);
  text-decoration: none;
}

.brand-link img {
  width: 164px; /* Minimum 160px per Brand Guideline */
  height: auto;
  display: block;
}

.lbl-short { display: none; }
.lbl-full { display: inline; }

.main-nav {
  justify-self: center;
  display: flex;
  align-items: stretch;
  height: 68px;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font: var(--type-label-default);
  font-size: 13.5px;
  height: 100%;
  min-height: 68px;
  padding: 0 12px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.nav-btn:hover {
  background: transparent;
  color: var(--color-text-heading);
  border-bottom-color: var(--color-border-control);
}

.nav-btn.active {
  background: transparent;
  color: var(--color-action-primary);
  font-weight: 700;
  border-bottom-color: var(--color-action-primary);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header-actions .cc-button {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 13px;
  gap: 6px;
}

#btnCompareOpen:disabled {
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
}

#btnCompareOpen:disabled .count-pill {
  background: #e2e8f0;
  color: var(--color-text-muted);
}

/* Official Component Library Controls */
.cc-heading-page { font: var(--type-heading-page); color: var(--color-text-heading); }
.cc-heading-section { font: var(--type-heading-section); color: var(--color-text-heading); }
.cc-heading-card { font: var(--type-heading-card); color: var(--color-text-heading); }
.cc-caption { font: var(--type-caption-default); color: var(--color-text-muted); }

.cc-button, .cc-field input, .cc-field select, .cc-link, .cc-choice, .cc-dialog {
  font-family: var(--font-ui);
}

.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: var(--control-height);
  padding: var(--space-8) var(--space-16);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--color-action-primary);
  color: #ffffff;
  font: var(--type-label-default);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.cc-button:hover:not(:disabled) { background: var(--color-action-hover); }
.cc-button:active:not(:disabled) { background: var(--color-action-pressed); }

.cc-button--secondary {
  background: #ffffff;
  border-color: var(--color-border-control);
  color: var(--color-action-primary);
}
.cc-button--secondary:hover:not(:disabled),
.cc-button--secondary[aria-pressed="true"] {
  background: var(--color-info-bg);
  border-color: var(--color-action-primary);
}
.cc-button--secondary:active:not(:disabled) { background: var(--color-surface-canvas); }

.cc-button--accent {
  background: var(--color-accent);
  color: var(--color-text-heading);
}
.cc-button--accent:hover:not(:disabled) { background: var(--color-accent-hover); }

.cc-button:disabled {
  background: var(--color-disabled);
  color: var(--color-disabled-text);
  border-color: transparent;
  cursor: default;
}

.cc-button:focus-visible,
.cc-field input:focus-visible,
.cc-field select:focus-visible,
.cc-link:focus-visible,
.cc-choice:has(input:focus-visible),
.nav-btn:focus-visible,
.agency-chip:focus-visible,
.preset-chip:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 2px;
}

.count-pill {
  background: var(--color-info-bg);
  color: var(--color-action-primary);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cc-button:not(.cc-button--secondary) .count-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cc-button:disabled .count-pill {
  background: rgba(10, 28, 96, 0.08);
  color: var(--color-disabled-text);
}

.cc-panel {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-default);
  border-radius: var(--radius-panel);
  padding: var(--space-16);
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-4) var(--space-12);
  font: 600 0.75rem/1.125rem var(--font-ui);
  border-radius: var(--radius-pill);
  color: var(--color-info);
  background: var(--color-info-bg);
  white-space: nowrap;
}

.cc-badge--success { color: var(--color-success); background: var(--color-success-bg); }
.cc-badge--warning { color: var(--color-warning); background: var(--color-warning-bg); }
.cc-badge--error { color: var(--color-error); background: var(--color-error-bg); }
.cc-badge--accent { color: var(--color-text-heading); background: var(--color-accent); font-weight: 700; }

.cc-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-action-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}

.cc-field {
  display: grid;
  align-content: start;
  gap: var(--space-8);
  font: var(--type-label-default);
  color: var(--color-text-body);
}

.cc-field input,
.cc-field select {
  width: 100%;
  height: var(--control-height);
  min-height: var(--control-height);
  background: #ffffff;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-control);
  padding: 0 var(--space-12);
  font: var(--type-table-default);
  line-height: normal;
  color: var(--color-text-body);
}

.cc-field input::placeholder { color: var(--color-text-muted); }

/* Main Layout */
.main-content {
  padding-top: var(--space-24);
  padding-bottom: var(--space-48);
  min-height: calc(100vh - 180px);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* High-Contrast Top Centered Registration Status */
.top-status-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-16);
}

.cc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-accent);
  border: 2px solid var(--color-text-heading);
  color: var(--color-text-heading);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  text-align: center;
  box-shadow: 0 4px 12px rgba(10, 28, 96, 0.12);
}

.dot-live-dark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(20, 101, 72, 0.22);
  flex-shrink: 0;
}

/* Official Intro / Hero Banner (Component Library .intro + Brand Guideline) */
.cc-hero {
  padding: var(--space-32);
  border-radius: var(--radius-panel);
  background: linear-gradient(120deg, #0a1c60 20%, #042fbb 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-24);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-24);
  align-items: center;
}

.cc-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  content: '';
  width: 14%;
  height: 100%;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%);
  pointer-events: none;
}

.cc-hero-left {
  position: relative;
  z-index: 2;
}

.cc-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: var(--space-12);
}

.cc-hero h1 .accent-word {
  color: var(--color-accent);
}

.cc-hero-desc {
  color: #dbeafe;
  font: var(--type-body-default);
  max-width: 60ch;
  margin-bottom: var(--space-24);
}

.cc-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
}

.cc-hero .cc-button--accent:focus-visible { outline-color: #ffffff; }

.cc-hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: flex-start;
}

/* Brand Guideline p.6: Logo on dark bg sits on Biru Es (#F2FAFE) panel */
.hero-logo-panel {
  background: var(--color-surface-canvas);
  border-radius: var(--radius-panel);
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-logo-panel img {
  width: 132px; /* >= 120px minimum width per Brand Guideline p.2 */
  height: auto;
  display: block;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12);
  width: 100%;
}

.hero-kpi-box {
  background: rgba(242, 250, 254, 0.96);
  color: var(--color-text-heading);
  border-radius: var(--radius-panel);
  padding: var(--space-12) var(--space-16);
}

.hero-kpi-box span {
  display: block;
  font: var(--type-caption-default);
  color: var(--color-text-muted);
  font-weight: 600;
}

.hero-kpi-box strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-heading);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* Agency Strip */
.agency-strip {
  margin-bottom: var(--space-16);
}

.agency-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.agency-strip-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-subtle) transparent;
}

.agency-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--control-height);
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  padding: 6px 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
  min-width: 162px;
  max-width: 215px;
  transition: border-color 0.15s, background-color 0.15s;
}

.agency-chip:hover {
  border-color: var(--color-action-primary);
  background: var(--color-info-bg);
}

.agency-chip.active {
  background: var(--color-text-heading);
  border-color: var(--color-text-heading);
  color: #ffffff;
}

.agency-chip-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.agency-chip-info { min-width: 0; }

.agency-chip-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-chip.active .agency-chip-name { color: var(--color-accent); }

.agency-chip-quota {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.agency-chip.active .agency-chip-quota { color: #e8efff; }

/* Filter Card */
.filter-panel {
  margin-bottom: var(--space-24);
  padding: var(--space-24);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-16);
}

.field-wide { grid-column: span 2; }

.preset-bar {
  margin-top: var(--space-16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
}

.preset-label {
  font: var(--type-caption-default);
  font-weight: 600;
  color: var(--color-text-muted);
}

.preset-chip {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-canvas);
  color: var(--color-text-heading);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  border-color: var(--color-action-primary);
  background: var(--color-info-bg);
  color: var(--color-action-primary);
}

.preset-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-heading);
}

.filter-toolbar {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.result-meta {
  font: var(--type-label-default);
  color: var(--color-text-heading);
  font-variant-numeric: tabular-nums;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: var(--type-caption-default);
  font-weight: 600;
  color: var(--color-text-muted);
}

.sort-wrap select {
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 var(--space-12);
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-control);
  font: var(--type-table-default);
  line-height: normal;
  color: var(--color-text-body);
  background: #ffffff;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-control);
  overflow: hidden;
  background: #ffffff;
}

.view-btn {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font: var(--type-label-default);
  min-height: 42px;
  padding: 0 var(--space-12);
  cursor: pointer;
}

.view-btn.active {
  background: var(--color-info-bg);
  color: var(--color-action-primary);
}

.open-filters-mobile { display: none; }
.mobile-quick-bar { display: none; }
.filter-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Table & Cards (UI Style Guide: Table on Desktop, Cards on Mobile or Toggle) */
.cc-table-wrap {
  overflow-x: auto;
}

.cc-table {
  border-collapse: collapse;
  width: 100%;
  font: var(--type-table-default);
  color: var(--color-text-body);
  min-width: 840px;
}

.cc-table :is(td, th) {
  padding: var(--space-12);
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: top;
}

.cc-table th {
  background: var(--color-surface-canvas);
  color: var(--color-text-heading);
  font-weight: 700;
  white-space: nowrap;
}

.cc-table tbody tr:hover {
  background: #f8fcff;
}

.cc-table .cc-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tbl-agency-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.logo-box-sm {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  padding: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-box-md {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.results-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
}

.cc-result-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.card-agency-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-meta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  padding: var(--space-8) var(--space-12);
}

.card-meta-strip span {
  display: block;
  font: var(--type-caption-default);
  color: var(--color-text-muted);
}

.card-meta-strip strong {
  font-size: 13px;
  color: var(--color-text-heading);
  font-variant-numeric: tabular-nums;
}

.card-actions {
  margin-top: auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: var(--space-8);
}

.card-actions .btn-detail { flex: 1; }

.icon-btn {
  min-height: var(--control-height);
  min-width: var(--control-height);
  border: 1px solid var(--color-border-control);
  background: #ffffff;
  color: var(--color-action-primary);
  border-radius: var(--radius-control);
  font: var(--type-label-default);
  cursor: pointer;
}

.icon-btn:hover { background: var(--color-info-bg); border-color: var(--color-action-primary); }
.icon-btn.saved { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text-heading); }
.icon-btn.compared { background: var(--color-action-primary); border-color: var(--color-action-primary); color: #ffffff; }

/* Feedback States (Loading skeleton, Empty, Error) */
.cc-feedback {
  display: grid;
  gap: var(--space-8);
  justify-items: start;
  padding: var(--space-24);
}

.cc-skeleton {
  width: min(18rem, 100%);
  height: 10px;
  border-radius: var(--radius-pill);
  margin: var(--space-4) 0;
  background: var(--color-disabled);
}

/* Pagination */
.cc-pager {
  margin-top: var(--space-24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* Statistics Tab */
.section-head { margin-bottom: var(--space-24); }
.section-head p { margin-top: 4px; color: var(--color-text-muted); }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.stat-card.featured {
  background: linear-gradient(120deg, #0a1c60 20%, #042fbb 100%);
  border-color: transparent;
  color: #ffffff;
}

.stat-card.featured .cc-caption { color: #dbeafe; }
.stat-card.featured strong { color: var(--color-accent); }

.stat-card strong {
  display: block;
  margin-top: var(--space-8);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-heading);
  font-variant-numeric: tabular-nums;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.chart-wide { grid-column: span 2; }

.bar-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-12); }

.bar-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr auto;
  align-items: center;
  gap: var(--space-12);
  font-size: 13px;
}

.bar-row.clickable { cursor: pointer; padding: 4px 8px; border-radius: var(--radius-control); margin: 0 -8px; }
.bar-row.clickable:hover { background: var(--color-info-bg); }

.bar-label-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-label { font-weight: 600; color: var(--color-text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bar-track {
  height: 10px;
  background: var(--color-surface-canvas);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-action-primary);
}

.bar-fill.accent { background: var(--color-success); }

.bar-val {
  font-weight: 700;
  color: var(--color-text-heading);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Timeline & 3 Schedule Alternatives */
.sch-switcher {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-control);
  padding: 3px;
  gap: 3px;
  flex-wrap: wrap;
}

.sch-tab-btn {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font: var(--type-label-default);
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sch-tab-btn:hover {
  color: var(--color-action-primary);
  background: var(--color-info-bg);
}

.sch-tab-btn.active {
  background: var(--color-action-primary);
  color: #ffffff;
}

.sch-toolbar-row {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sch-alt-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-16);
  padding: 10px 14px;
  background: var(--color-info-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  font-size: 13px;
  color: var(--color-text-heading);
}

/* ALT 1: Spotlight Hero + Connected Vertical Stepper */
.sch-spotlight {
  background: linear-gradient(120deg, #0a1c60 25%, #042fbb 100%);
  color: #ffffff;
  border-radius: var(--radius-panel);
  padding: var(--space-24);
  margin-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-16);
}

.sch-spotlight::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10%;
  height: 100%;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% 65%);
  pointer-events: none;
}

.sch-spot-main, .sch-spot-next { position: relative; z-index: 2; }

.sch-spot-next {
  background: rgba(242, 250, 254, 0.96);
  color: var(--color-text-heading);
  border-radius: var(--radius-panel);
  padding: var(--space-16);
}

.sch-spot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sch-spot-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-control);
  padding: 10px 14px;
}

.stepper-list {
  position: relative;
  padding-left: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stepper-list::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--color-border-subtle);
}

.stepper-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stepper-node {
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--color-border-subtle);
  background: #ffffff;
  color: var(--color-text-muted);
  z-index: 2;
}

.stepper-item.is-done .stepper-node {
  background: var(--color-disabled);
  color: var(--color-disabled-text);
  border-color: var(--color-border-subtle);
}

.stepper-item.is-live {
  border-color: var(--color-success);
  background: #f5fcf8;
  box-shadow: 0 6px 18px rgba(20, 101, 72, 0.10);
}

.stepper-item.is-live .stepper-node {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--color-success-bg);
}

.stepper-item.is-upcoming .stepper-node {
  background: var(--color-info-bg);
  border-color: var(--color-action-primary);
  color: var(--color-action-primary);
}

.stepper-item.is-unnamed { opacity: 0.78; }

/* ALT 2: Horizontal Gantt / Monthly Timeline */
.gantt-card {
  overflow-x: auto;
  padding: var(--space-16);
}

.gantt-inner {
  min-width: 780px;
}

.gantt-header {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 12px;
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-subtle);
  margin-bottom: 8px;
}

.gantt-months {
  display: grid;
  position: relative;
}

.gantt-month-cell {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text-heading);
  border-left: 1px dashed var(--color-border-subtle);
  padding-left: 6px;
}

.gantt-rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gantt-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 12px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 6px;
}

.gantt-row:hover { background: var(--color-surface-canvas); }
.gantt-row.is-live { background: #f2fbf6; }

.gantt-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-track {
  position: relative;
  height: 24px;
  background: var(--color-surface-canvas);
  border-radius: 6px;
  overflow: hidden;
}

.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-text-heading);
  z-index: 3;
  pointer-events: none;
}

.gantt-today-tag {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-text-heading);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--color-text-heading);
  white-space: nowrap;
}

.gantt-bar {
  position: absolute;
  top: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--color-action-primary);
  min-width: 8px;
}

.gantt-bar.is-live { background: var(--color-success); }
.gantt-bar.is-done { background: #94a3b8; }

.gantt-date-tip {
  position: absolute;
  top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  pointer-events: none;
}

/* ALT 3: 4-Phase Kanban Board */
.phase-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: var(--space-16);
}

.phase-step {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phase-step.is-live {
  background: var(--color-text-heading);
  border-color: var(--color-text-heading);
  color: #ffffff;
}

.phase-step.is-live .cc-caption { color: #dbeafe; }

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-12);
  align-items: start;
}

.kanban-col {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-panel);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-col.is-live {
  border-color: var(--color-action-primary);
  box-shadow: 0 8px 24px rgba(4, 47, 187, 0.08);
}

.kanban-col-head {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-subtle);
}

.kanban-col.is-live .kanban-col-head {
  border-bottom-color: var(--color-accent);
}

.kanban-item {
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-action-primary);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kanban-item.is-live {
  background: var(--color-success-bg);
  border-color: #a7f3d0;
  border-left-color: var(--color-success);
}

.kanban-item.is-done {
  opacity: 0.72;
  border-left-color: #94a3b8;
}

@media (max-width: 1023px) {
  .sch-spotlight { grid-template-columns: 1fr; }
  .phase-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .phase-progress, .kanban-grid { grid-template-columns: 1fr; }
}

.info-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-24);
  align-items: start;
}

.faq-list { display: flex; flex-direction: column; gap: var(--space-8); }
.faq-item summary {
  font: var(--type-label-default);
  color: var(--color-text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border-subtle);
  font: var(--type-table-default);
  color: var(--color-text-body);
  white-space: pre-line;
}

/* Native <dialog> Modals (Component Library) */
.cc-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-24);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-panel);
  color: var(--color-text-body);
  background: #ffffff;
}

.cc-dialog--xl { width: min(64rem, calc(100% - 2rem)); }
.cc-dialog::backdrop { background: rgb(10 28 96 / 0.56); }

.cc-dialog .cc-badge {
  white-space: normal;
  max-width: 100%;
  text-align: left;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-16);
}

.dialog-head > div,
.dialog-head > div > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

#detailBody,
#detailBody p,
#detailBody span,
.portal-callout,
.antitms-box,
.skb-box {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-title-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.card-title-btn:hover {
  color: var(--color-action-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-title-btn:focus-visible,
.bar-row.clickable:focus-visible {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.cc-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-subtle);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.detail-box {
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  padding: var(--space-12);
}

.detail-box span { display: block; font: var(--type-caption-default); color: var(--color-text-muted); }
.detail-box strong { font-size: 14px; color: var(--color-text-heading); font-variant-numeric: tabular-nums; }

.checklist { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-8); }
.cc-choice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface-canvas);
  font: var(--type-table-default);
  cursor: pointer;
}
.cc-choice-box input { width: 1.125rem; height: 1.125rem; margin-top: 2px; accent-color: var(--color-action-primary); }
.cc-choice-box.checked span { text-decoration: line-through; color: var(--color-text-muted); }

/* Brand & Kit Showcase Tab */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.logo-specimen {
  border-radius: var(--radius-control);
  padding: var(--space-24);
  display: grid;
  place-items: center;
  min-height: 120px;
  margin-bottom: var(--space-12);
}
.logo-specimen.light { background: var(--color-surface-canvas); border: 1px solid var(--color-border-subtle); }
.logo-specimen.dark { background: var(--color-text-heading); }
.logo-specimen img { max-width: 190px; max-height: 76px; object-fit: contain; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-24);
}

.swatch-color { height: 56px; border-radius: var(--radius-control); margin-bottom: 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  background: #ffffff;
  padding: var(--space-24) 0;
  font: var(--type-caption-default);
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  background: var(--color-text-heading);
  color: #ffffff;
  font: var(--type-label-default);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}

/* Responsive Breakpoints per Design System (320 / 768 / 1024+) */
@media (max-width: 1023px) {
  .container { padding-inline: var(--space-24); }
  .masthead-inner {
    padding: 10px var(--space-24) 0;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 10px 12px;
  }
  .brand-link { grid-area: brand; }
  .header-actions { grid-area: actions; }
  .main-nav {
    grid-area: nav;
    justify-self: stretch;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--color-border-subtle);
  }
  .nav-btn {
    height: auto;
    min-height: 44px;
    padding: 0 6px;
  }
  .cc-hero { grid-template-columns: 1fr; }
  .cc-hero-left { padding-right: 28px; }
  .cc-hero::after { width: 12%; height: 22%; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts-grid, .info-grid { grid-template-columns: 1fr; }
  .chart-wide { grid-column: span 1; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .container { padding-inline: var(--space-16); }

  /* Compact 2-row mobile header */
  .masthead { position: static; }
  .masthead-inner {
    min-height: auto;
    padding: 8px var(--space-16) 0;
    gap: 8px;
  }
  .brand-link { padding: 2px 0; min-height: 40px; }
  .brand-link img { width: 146px; }
  .header-actions { gap: 4px; }
  .header-actions .cc-button {
    min-height: 36px;
    padding: 4px 8px;
    font-size: 12px;
    gap: 4px;
  }
  .header-actions .lbl-full,
  .nav-btn .lbl-full { display: none; }
  .header-actions .lbl-short,
  .nav-btn .lbl-short { display: inline; }
  .main-nav { gap: 2px; }
  .nav-btn {
    min-height: 40px;
    padding: 0 2px;
    font-size: 11.5px;
    text-align: center;
  }

  .main-content { padding-top: var(--space-16); padding-bottom: var(--space-32); }

  /* Top status pill */
  .top-status-wrap { margin-bottom: var(--space-12); }
  .cc-hero-eyebrow {
    font-size: 12.5px;
    padding: 7px 14px;
    line-height: 1.35;
    width: 100%;
  }

  /* Hero compact for mobile */
  .cc-hero {
    padding: 20px;
    gap: var(--space-16);
    margin-bottom: var(--space-16);
  }
  .cc-hero::after { width: 14%; height: 24%; }
  .cc-hero h1 { font-size: 1.625rem; margin-bottom: 8px; padding-right: 14px; }
  .cc-hero-desc { font-size: 14px; margin-bottom: var(--space-16); }
  .cc-hero-cta-row { gap: 8px; }
  .cc-hero-cta-row .cc-button { flex: 1 1 calc(50% - 4px); }

  .hero-logo-panel {
    width: 100%;
    padding: 10px 14px;
  }
  .hero-logo-panel img { width: 120px; }

  .hero-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-kpi-box { padding: 10px 8px; text-align: center; }
  .hero-kpi-box span { font-size: 11px; }
  .hero-kpi-box strong { font-size: 1rem; }

  /* Agency strip */
  .agency-strip { padding: 14px; }
  .agency-strip-head .cc-button {
    width: 100%;
    min-height: 40px;
  }
  .agency-chip { min-width: 148px; padding: 6px 10px; }

  /* Mobile filter quick bar + swipeable presets + balanced toolbar */
  .filter-panel { padding: var(--space-16); margin-bottom: var(--space-16); }
  .filter-head-row { margin-bottom: 10px; }
  .mobile-quick-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }
  .open-filters-mobile { display: inline-flex; padding-inline: 14px; }
  .desktop-filter-grid { display: none; }
  .view-toggle { display: none; }

  .preset-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-top: 12px;
  }
  .preset-bar::-webkit-scrollbar { display: none; }
  .preset-chip, .preset-label { flex-shrink: 0; }

  .filter-toolbar {
    margin-top: 12px;
    padding-top: 12px;
    gap: 10px;
  }
  .toolbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sort-wrap {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }
  .sort-wrap select { flex: 1; }
  .toolbar-right .cc-button {
    padding-inline: 8px;
    font-size: 12.5px;
    min-width: 0;
  }

  /* Results & cards */
  .results-cards { grid-template-columns: 1fr; gap: 12px; }
  .cc-pager { justify-content: space-between; }
  .cc-pager .cc-button { flex: 1; }
  .cc-pager .cc-caption { width: 100%; text-align: center; order: -1; }

  /* Detail & Compare & Filter Dialogs */
  .cc-dialog, .cc-dialog--xl {
    width: calc(100% - 16px);
    max-height: 90dvh;
    padding: var(--space-16);
    border-radius: 14px;
  }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cc-dialog-footer { flex-direction: column; align-items: stretch; }
  .cc-dialog-footer > div { width: 100%; }
  .cc-dialog-footer .cc-button { flex: 1; }

  /* Statistics readable 2-line bars on mobile */
  .stat-cards { gap: 10px; }
  .stat-card strong { font-size: 1.4rem; }
  .bar-row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }
  .bar-track { grid-column: 1 / -1; }

  /* Schedule Alt 1 compact stepper */
  .sch-spotlight { padding: 16px; }
  .stepper-list { padding-left: 34px; }
  .stepper-list::before { left: 13px; }
  .stepper-node {
    left: -34px;
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .sch-toolbar-row { gap: 10px; }

  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: 1fr; }
}

@media (max-width: 374px) {
  .brand-link img { width: 132px; }
  .header-actions .cc-button { padding: 4px 6px; font-size: 11.5px; }
  .hero-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-kpi-box:last-child { grid-column: 1 / -1; }
  .toolbar-right { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Poin 2 Quick Wins: Deal-breaker Toggles, Syarat Badges & Panduan 2026
   ========================================================================== */
.dealbreaker-bar {
  margin-top: var(--space-12);
  padding: 10px 14px;
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.dealbreaker-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.dealbreaker-checks .cc-choice {
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-heading);
  cursor: pointer;
}

.filter-tip-note {
  font: var(--type-caption-default);
  color: var(--color-text-muted);
}

.req-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.cc-badge--req {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  font-size: 11px;
  padding: 2px 8px;
}

.cc-badge--req-str {
  background: var(--color-error-bg);
  color: var(--color-error);
  font-size: 11px;
  padding: 2px 8px;
}

.portal-callout {
  background: var(--color-info-bg);
  border: 1px solid var(--color-border-subtle);
  border-left: 4px solid var(--color-action-primary);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  margin-bottom: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-callout p {
  font-size: 13px;
  color: var(--color-text-body);
  max-width: 56ch;
}

.guide-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.guide-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font: var(--type-table-default);
  color: var(--color-text-body);
}

.guide-list li { margin-bottom: 6px; }

.portal-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.portal-dir-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  text-decoration: none;
  color: var(--color-text-heading);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 44px;
}

.portal-dir-link:hover {
  border-color: var(--color-action-primary);
  background: var(--color-info-bg);
}

@media (max-width: 1023px) {
  .portal-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .guide-summary-grid,
  .portal-dir-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Tahap 3: Tanggal Lahir Auto Usia, Info SKD/SKB & Checklist Anti-TMS
   ========================================================================== */
.dob-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dob-row input[type="date"] {
  width: 172px;
  flex-shrink: 0;
}

.dob-hint {
  flex: 1 1 180px;
  line-height: 1.35;
}

.dob-hint.is-ok {
  color: var(--color-action-primary);
  font-weight: 600;
}

.dob-hint.is-warn {
  color: var(--color-warning);
  font-weight: 600;
}

.skb-box {
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.skb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.skb-item {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
}

.skb-item span {
  display: block;
  font: var(--type-caption-default);
  color: var(--color-text-muted);
}

.skb-item strong {
  display: block;
  font-size: 13px;
  color: var(--color-text-heading);
  margin-top: 2px;
}

.skb-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.antitms-box {
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.antitms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 767px) {
  .dob-row input[type="date"] { width: 100%; }
  .skb-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Poin 1 Decision Tools: Placement Select, Saved Notes & Compare Winners
   ========================================================================== */
.placement-wrap select {
  max-width: 250px;
}

.note-box {
  background: var(--color-surface-canvas);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.note-box textarea {
  width: 100%;
  min-height: 70px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-control);
  font: var(--type-table-default);
  color: var(--color-text-body);
  background: #ffffff;
  resize: vertical;
}

.saved-note-preview {
  background: var(--color-info-bg);
  border-left: 3px solid var(--color-action-primary);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--color-text-heading);
}

.cc-badge--winner {
  background: var(--color-accent);
  color: var(--color-text-heading);
  font-size: 11px;
  padding: 2px 8px;
  margin-left: 4px;
}

@media (max-width: 767px) {
  .placement-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .placement-wrap select {
    flex: 1;
    max-width: none;
  }
}

/* ==========================================================================
   Reusable Interactive SVG Donut / Pie Chart Component (CekDonut)
   ========================================================================== */
.cc-donut-wrap {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px 20px;
  align-items: center;
  min-width: 0;
}

.cc-donut-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cc-donut-svg {
  width: 164px;
  height: 164px;
  display: block;
}

.cc-donut-slice {
  cursor: pointer;
  transition: stroke-width 0.18s ease, opacity 0.18s ease;
}

.cc-donut-center-val {
  fill: var(--color-text-heading);
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cc-donut-center-sub {
  fill: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
}

.cc-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cc-donut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: var(--color-surface-canvas);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.cc-donut-row:hover,
.cc-donut-row.is-active {
  border-color: var(--color-action-primary);
  background: var(--color-info-bg);
}

.cc-donut-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cc-donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-donut-label {
  color: var(--color-text-heading);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-donut-val {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12.5px;
}

.cc-donut-val strong {
  color: var(--color-text-heading);
}

@media (max-width: 639px) {
  .cc-donut-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-donut-svg {
    width: 152px;
    height: 152px;
  }
  .cc-donut-label {
    white-space: normal;
  }
}
