/* PLAB soft surfaces. Original brand assets and KPI calculations are preserved. */
.compare-panel { margin-top: 32px; padding: 28px; border-radius: 22px; box-shadow: 7px 7px 17px #cbd5db, -7px -7px 17px #fff; line-height: 1.6; }
.compare-panel h2 { margin: 8px 0; }
.compare-uploads, .compare-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0; }
.compare-upload, .compare-summary, .compare-details article, .compare-priorities article { min-width: 0; padding: 20px; border: 1px solid #ffffffb0; border-radius: 16px; box-shadow: 3px 3px 9px #cbd5db,-3px -3px 9px #fff; }
.compare-upload, .compare-summary { display: flex; flex-direction: column; gap: 10px; }
.compare-upload input { max-width: 100%; font-size: 14px; }
.compare-summary strong { font-size: 32px; color: #115876; }
.compare-summary small { font-size: 13px; overflow-wrap: anywhere; }
.compare-priorities { display: grid; gap: 14px; }
.compare-priorities span { display: block; color: #17647a; }
.compare-details h4 { margin-top: 0; }
.compare-details dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.compare-details dt { font-size: 12px; color: #526979; }
.compare-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media(max-width:680px) { .compare-panel { padding: 18px; } .compare-uploads,.compare-details { grid-template-columns: 1fr; } }
:root {
  --paper: #edf1f3;
  --white: #edf1f3;
  --ink: #17374d;
  --muted: #526979;
  --line: #d0dce2;
  --raised: 7px 7px 17px #cbd5db, -7px -7px 17px #fff;
  --inset: inset 3px 3px 7px #cbd5db, inset -3px -3px 7px #fff;
}
body { background: var(--paper); color: var(--ink); }
html, body, button, input, select, textarea, dialog, table {
  font-family: "Nunito Sans", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.topbar { height: 92px; background: linear-gradient(145deg, #ffffff, #edf1f3); border: 0; border-radius: 0 0 20px 20px; box-shadow: 0 7px 18px #cbd5dbb0, inset 0 2px 3px #ffffff, inset 0 -1px 2px #ffffffb0; }
.primary-brand-logo { height: 82.8px; max-width: 204.7px; object-fit: contain; }
.topbar-meta { font-weight: 600; }
.live-dot { display: none; }
.shell { padding-top: 28px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 28px; border: 1px solid #ffffffa0; border-radius: 24px; background: var(--paper); box-shadow: var(--raised); }
.hero::before, .hero::after { content: none; }
.hero > div:not(.brand-motion) { position: relative; z-index: 1; }
.hero h1 { color: var(--ink); font-size: clamp(30px, 3vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.hero-copy { color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-actions { max-width: 360px; gap: 12px; }
.brand-motion { position: absolute; right: 15px; top: 50%; width: 205px; height: 165px; transform: translateY(-50%); pointer-events: none; }
.brand-motion svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(5px 7px 5px #bdcbd280); }
.motion-bar { transform-box: fill-box; transform-origin: center bottom; animation: brand-rise 7s ease-in-out infinite; }
.motion-bar-two { animation-delay: -.7s; }
.motion-bar-three { animation-delay: -1.4s; }
.motion-trace { stroke-dasharray: 55 300; animation: brand-trace 7s ease-in-out infinite; opacity: .7; }
@keyframes brand-rise { 0%, 70%, 100% { transform: translateY(0); } 32% { transform: translateY(-7px); } 48% { transform: translateY(-3px); } }
@keyframes brand-trace { 0%, 15% { stroke-dashoffset: 80; opacity: 0; } 30% { opacity: .8; } 65%, 100% { stroke-dashoffset: -310; opacity: 0; } }
.motion-toggle { position: absolute; bottom: 10px; right: 37px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: #526979; font-size: 12px; z-index: 2; }
.motion-toggle:hover { background: #dce6eb; }
.motion-paused .brand-motion * { animation-play-state: paused; }
.button, .icon-button { border: 1px solid #ffffffa0; border-radius: 12px; background: var(--paper); box-shadow: 4px 4px 9px #cbd5db, -4px -4px 9px #fff; color: var(--ink); }
.button:hover { transform: translateY(-1px); box-shadow: 5px 5px 12px #c2cfd7, -5px -5px 12px #fff; }
.button:active { transform: none; box-shadow: var(--inset); }
.button.primary, .hero .button.primary, .save-target-button { background: linear-gradient(145deg, #2994b2, #15728e); color: #fff; border: 1px solid #ffffff70; box-shadow: 4px 4px 10px #b5c9d2, inset 1px 1px 2px #ffffff80; }
.button.primary:hover, .hero .button.primary:hover { background: #17647a; }
.button.whatsapp, .button.subtle { background: var(--paper); color: var(--ink); border-color: #ffffffa0; }
.button.install { background: #fffbe0; color: var(--ink); }
.control-strip { border: 0; padding: 5px 0; gap: 18px; align-items: center; }
.control-label { font-size: 12px; letter-spacing: .07em; color: var(--muted); }
.segmented { background: var(--paper); border: 0; border-radius: 14px; box-shadow: var(--inset); gap: 5px; padding: 5px; }
.segmented button { min-height: 44px; font-size: 14px; border-radius: 10px; }
.segmented button.active { border-radius: 10px; background: #167a98; color: #fff; box-shadow: 2px 3px 6px #bacbd4, inset 1px 1px 2px #ffffff60; }
.workspace { gap: 26px; grid-template-columns: minmax(330px, 370px) minmax(0, 1fr); }
.score-panel, .kpi-panel { background: var(--paper); border: 1px solid #ffffffb0; border-radius: 22px; box-shadow: var(--raised); padding: 24px; }
.score-panel { position: static; }
.score-main { background: #fffbe0; padding: 18px 14px; border-radius: 15px; gap: 12px; margin-top: 18px; box-shadow: inset 1px 1px 2px #fff, 3px 3px 8px #d0d8d9; }
.score-number { font-size: 52px; color: #115876; }
.score-max { font-size: 14px; }
.pl-badge { border-radius: 8px; letter-spacing: 0; font-size: 13px; }
.pl-1, .pl-2 { color: #164355; background: #ffe29b; }
.score-caption { margin-top: 12px; font-size: 12px; }
.meter { height: 11px; border-radius: 10px; background: #e0e8ec; box-shadow: var(--inset); }
.meter span { border-radius: inherit; background: #2994b2; }
.meter-labels { color: var(--muted); font-size: 12px; }
.index-stat { background: var(--paper); border: 0; border-radius: 10px; box-shadow: 3px 3px 7px #cbd5db, -3px -3px 7px #fff; }
.index-stat span, .basis-label { font-size: 12px; }
.definitive-block { background: var(--paper); padding: 16px; border: 1px solid #ffffffa0; border-radius: 16px; box-shadow: var(--raised); }
.definitive-block h3, .definitive-block .assessment-field strong { color: var(--ink); }
.definitive-block .basis-label, .definitive-block .assessment-field small { color: var(--muted); }
.definitive-block .section-title-row { flex-wrap: wrap; gap: 8px; }
.formula-strip div { background: var(--paper); border: 0; border-radius: 9px; box-shadow: 3px 3px 7px #cbd5db, -3px -3px 7px #fff; padding: 12px 4px; }
.formula-strip span, .formula-strip em { font-size: 12px; overflow-wrap: anywhere; }
.formula-strip strong { font-size: 20px; }
.assessment-field { grid-template-columns: 1fr; border-top-color: var(--line); }
.assessment-field strong { font-size: 14px; }
.assessment-field small { font-size: 12px; }
.assessment-field select { height: 44px; font-size: 14px; }
select, .realization-input, .target-input { border: 1px solid #cfdae1; background: var(--paper); border-radius: 9px; box-shadow: var(--inset); color: var(--ink); }
.realization-input, .target-input { height: 44px; font-size: 14px; }
.definitive-button { font-size: 14px; height: auto; padding: 12px; }
.priority-list li { grid-template-columns: 24px 1fr; font-size: 14px; }
.priority-list em { grid-column: 2; font-size: 12px; }
.official-note { background: #fffbe0; font-size: 12px; }
.table-heading { border: 0; align-items: flex-start; flex-wrap: wrap; }
.table-heading h2 { font-size: 21px; }
.table-actions { justify-content: flex-start; }
.table-wrap { border: 1px solid #ffffffb0; border-radius: 12px; }
table { font-size: 14px; }
th { background: #e5edf1; color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0; }
td { border-bottom-color: #d3dfe5; }
tbody tr:nth-child(even), tbody tr:hover { background: #ffffff20; }
.kpi-direction, .saved-target-note, .legend { font-size: 12px; }
.kpi-name { min-width: 200px; }
.target-save-state, .weight-status, .save-target-button { font-size: 12px; }
.target-save-state, .weight-status { background: #e3ecf0; border-radius: 7px; }
.calculation-status { font-size: 12px; background: #fffbe0; }
dialog, .dialog-card, .install-dialog-card { background: var(--paper); }
.predicate-row, .install-guide { background: var(--paper); border: 1px solid #d0dce2; box-shadow: var(--inset); }
.section-title-row > span { font-size: 12px; }
@media (max-width: 1250px) {
  .hero { grid-template-columns: 1fr; }
  .hero-actions { max-width: none; justify-content: flex-start; }
  .workspace { grid-template-columns: minmax(310px, 340px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar { height: 80.5px; border-radius: 0 0 16px 16px; }
  .primary-brand-logo { height: 71.3px; max-width: 163.3px; }
  .shell { width: calc(100% - 28px); padding-top: 20px; }
  .hero { display: block; min-height: 0; padding: 24px 18px; }
  .hero > div:not(.brand-motion) { max-width: none; }
  .hero > div:not(.brand-motion):first-of-type { padding-right: 0; }
  .hero h1 { font-size: 28px; }
  .hero-copy { font-size: 14px; }
  .brand-motion { width: 83px; height: 74px; top: 22px; right: 9px; transform: none; opacity: .7; }
  .hero-actions { display: flex; flex-wrap: wrap; margin-top: 20px; }
  .hero-actions .button { flex: 1 1 125px; padding: 10px; min-height: 44px; font-size: 13px; }
  .motion-toggle { right: 15px; bottom: 5px; }
  .control-strip { grid-template-columns: 1fr auto; }
  .role-switch { grid-column: 1 / -1; }
  .source-control strong { font-size: 12px; min-height: 0; }
  .control-strip .button { font-size: 12px; padding-inline: 10px; }
  .score-panel, .kpi-panel { padding: 18px; }
  .table-wrap { overflow: visible; border: 0; }
  table, tbody { display: block; min-width: 0; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 8px; padding: 16px 12px; margin: 0 0 18px; border: 1px solid #ffffffb0; border-radius: 14px; background: var(--paper); box-shadow: 4px 4px 10px #cbd5db, -4px -4px 10px #fff; }
  td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
  td:first-child { grid-column: 1 / -1; }
  td:nth-child(2) { grid-column: 1 / -1; font-size: 12px; }
  td:nth-child(2)::before { content: 'Bobot: '; color: var(--muted); }
  td:nth-child(3), td:nth-child(4) { grid-column: span 3; }
  td:nth-child(n+5) { grid-column: span 2; }
  td:nth-child(n+3)::before { display: block; font-size: 12px; margin-bottom: 7px; color: var(--muted); }
  td:nth-child(3)::before { content: 'Target'; }
  td:nth-child(4)::before { content: 'Realisasi'; }
  td:nth-child(5)::before { content: 'Pencapaian'; }
  td:nth-child(6)::before { content: 'Indeks'; }
  td:nth-child(7)::before { content: 'Nilai'; }
  .target-cell, .kpi-name { min-width: 0; }
  .realization-input, .target-input { width: 100%; font-size: 12px; padding: 0 7px; }
  .saved-target-note { font-size: 12px; overflow-wrap: anywhere; }
  .table-heading { gap: 12px; }
  .predicate-row { grid-template-columns: 45px 1fr; }
  .predicate-row em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-motion * { animation: none !important; }
  .motion-trace, .motion-toggle { display: none; }
}
