/* 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; } }

/* ReactBits-inspired micro interactions, adapted to PLAB's neumorphic surface. */
.dream-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: end; margin: 24px 0 20px; }
.dream-control { min-width: 0; }
.dream-control > .control-label { display: block; margin-bottom: 9px; }
.dream-segmented { display: grid; grid-template-columns: repeat(5,minmax(86px,1fr)); gap: 5px; padding: 5px; overflow-x: auto; border-radius: 16px; background: var(--paper); box-shadow: var(--inset); scrollbar-width: none; }
.dream-segmented::-webkit-scrollbar { display: none; }
.dream-segmented button { position: relative; min-width: 86px; min-height: 54px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; transition: transform 220ms cubic-bezier(.2,.9,.2,1.25), color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.dream-segmented button b, .dream-segmented button small { display: block; }
.dream-segmented button b { font-size: 14px; }
.dream-segmented button small { margin-top: 2px; font-size: 10px; white-space: nowrap; }
.dream-segmented button:hover { transform: translateY(-2px); color: var(--ink); }
.dream-segmented button.active { color: #fff; background: linear-gradient(145deg,#2ea4c3,#176f88); box-shadow: 3px 4px 8px #b9cbd3, inset 1px 1px 2px #ffffff80; transform: scale(1.02); }
.slide-commit { min-width: 230px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; overflow: hidden; }
.slide-commit i, .micro-download i { font-style: normal; transition: transform 260ms cubic-bezier(.2,.9,.2,1.35); }
.slide-commit:hover i, .micro-download:hover i { transform: translateX(5px); }
.slide-commit.committed i { animation: commit-arrow 680ms cubic-bezier(.2,.9,.2,1.2); }
@keyframes commit-arrow { 0% { transform: translateX(0); } 40% { transform: translateX(34px); opacity: 0; } 41% { transform: translateX(-22px); } 100% { transform: translateX(0); opacity: 1; } }
.dream-overview { display: grid; grid-template-columns: minmax(180px,.75fr) minmax(260px,1.5fr) minmax(180px,.75fr); gap: 18px; align-items: center; margin: 18px 0; }
.dream-score-card { min-height: 118px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px; border: 1px solid #ffffffb0; border-radius: 17px; background: var(--paper); box-shadow: 4px 4px 10px #cbd5db,-4px -4px 10px #fff; }
.dream-score-card.desired { background: #fffbe0; transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease, transform 240ms cubic-bezier(.2,.9,.2,1.15); }
.dream-score-card.desired.status-open { border-color: #2994b255; background: #e8f7fb; box-shadow: 4px 4px 10px #cbd5db,-4px -4px 10px #fff, inset 0 0 0 1px #2994b226; }
.dream-score-card.desired.status-near { border-color: #ffb40070; background: #fff5cf; box-shadow: 4px 4px 10px #d7d1b9,-4px -4px 10px #fff, inset 0 0 0 1px #ffb4002b; transform: translateY(-1px); }
.dream-score-card.desired.status-achieved { border-color: #32a56a66; background: #e7f7ec; box-shadow: 4px 4px 10px #c6d6cc,-4px -4px 10px #fff, inset 0 0 0 1px #32a56a2b; transform: translateY(-2px); }
.dream-score-card.desired.status-near strong { color: #9a6800; }
.dream-score-card.desired.status-achieved strong { color: #237c50; }
.dream-score-card span { color: var(--muted); font-size: 12px; }
.dream-score-card strong { color: #115876; font-size: 32px; line-height: 1; }
.dream-score-card b { font-size: 13px; }
.slosh-gauge { padding: 18px 8px; }
.slosh-track { position: relative; height: 18px; border-radius: 999px; background: #dbe5e9; box-shadow: var(--inset); overflow: visible; }
.slosh-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2994b2,#43b7d4 72%,#ffb400); transition: width 700ms cubic-bezier(.18,.9,.2,1.1); box-shadow: inset 0 2px 3px #ffffff70; overflow: hidden; }
.slosh-track span::after { content: ""; display: block; width: 42px; height: 100%; margin-left: auto; border-radius: 999px; background: #ffffff30; transform: skewX(-18deg); animation: slosh 2.8s ease-in-out infinite; }
.slosh-track i { position: absolute; top: 50%; left: 0; width: 11px; height: 30px; transform: translate(-50%,-50%); border: 3px solid #fff; border-radius: 999px; background: #17374d; box-shadow: 2px 3px 6px #aebdc4; transition: left 600ms cubic-bezier(.2,.9,.2,1.15); }
.slosh-gauge > div:last-child { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); }
.slosh-gauge strong { color: var(--ink); font-size: 12px; text-align: center; }
@keyframes slosh { 0%,100% { transform: translateX(-8px) skewX(-18deg); } 50% { transform: translateX(8px) skewX(18deg); } }
.dream-summary-grid { margin-top: 24px; }
.dream-kpi-picker { margin: 20px 0 22px; padding: 20px; border: 1px solid #ffffffb0; border-radius: 18px; background: var(--paper); box-shadow: 4px 4px 10px #cbd5db,-4px -4px 10px #fff; }
.dream-kpi-picker > p { margin: 6px 0 16px; color: var(--muted); font-size: 13px; }
.dream-kpi-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dream-kpi-head h3 { margin: 3px 0 0; font-size: 18px; }
.dream-kpi-actions { display: flex; gap: 8px; }
.dream-kpi-actions button { padding: 8px 12px; border: 0; border-radius: 10px; color: #17647a; background: var(--paper); box-shadow: 3px 3px 7px #cbd5db,-3px -3px 7px #fff; cursor: pointer; font-weight: 800; }
.dream-kpi-actions button:active { box-shadow: var(--inset); }
.dream-kpi-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.dream-kpi-chip { display: grid; gap: 13px; min-width: 0; padding: 13px 14px 15px; border: 1px solid #ffffffa8; border-radius: 14px; background: var(--paper); box-shadow: 3px 3px 8px #cbd5db,-3px -3px 8px #fff; animation: plan-rise 360ms cubic-bezier(.18,.9,.2,1.1) both; animation-delay: var(--chip-delay); transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.dream-kpi-chip:hover { transform: translateY(-1px); }
.dream-kpi-chip.selected { background: #fffbe0; box-shadow: inset 2px 2px 5px #dedbc8,inset -2px -2px 5px #fff; }
.dream-kpi-check { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 11px; align-items: center; cursor: pointer; }
.dream-kpi-check input { position: absolute; opacity: 0; pointer-events: none; }
.spring-check { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: transparent; background: var(--paper); box-shadow: var(--inset); transition: transform 260ms cubic-bezier(.2,1.5,.3,1), background 180ms ease, color 180ms ease; }
.dream-kpi-chip.selected .spring-check { color: #fff; background: #2994b2; box-shadow: 2px 3px 6px #b8c8cf,inset 1px 1px 2px #ffffff80; transform: scale(1.05); }
.spring-check i { font-style: normal; font-weight: 900; }
.dream-kpi-chip b, .dream-kpi-chip small { display: block; overflow-wrap: anywhere; }
.dream-kpi-chip b { font-size: 13px; line-height: 1.3; }
.dream-kpi-chip small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.dream-kpi-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dream-kpi-title b { min-width: 0; }
.dream-kpi-title em { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; color: #0f6078; background: #dff5fa; box-shadow: inset 1px 1px 2px #c2e4eb, inset -1px -1px 2px #fff; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.dream-index-control { padding: 10px 11px 8px; border-radius: 12px; background: #eef3f4; box-shadow: inset 2px 2px 5px #d2dcdf, inset -2px -2px 5px #fff; opacity: .46; filter: grayscale(.55); transition: opacity 180ms ease, filter 180ms ease, transform 220ms cubic-bezier(.2,.9,.2,1.2); }
.dream-kpi-chip.selected .dream-index-control { opacity: 1; filter: none; transform: translateY(0); }
.dream-index-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.dream-index-heading output { flex: 0 0 auto; padding: 4px 8px; border-radius: 8px; color: #fff; background: #176f88; box-shadow: 2px 2px 5px #c2ced2, -1px -1px 3px #fff; font-size: 12px; font-weight: 900; transition: transform 180ms cubic-bezier(.2,1.5,.3,1); }
.wake-index-track { position: relative; height: 34px; margin-top: 7px; --index-progress: 100%; }
.wake-index-track::before { content: ""; position: absolute; left: 4px; right: 4px; top: 15px; height: 5px; border-radius: 999px; background: linear-gradient(90deg,#2994b2 0 var(--index-progress),#cdd9dd var(--index-progress) 100%); box-shadow: inset 1px 1px 3px #b9c8cd, inset -1px -1px 2px #fff; transition: background 220ms ease; }
.wake-index-track input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 34px; margin: 0; opacity: 0; cursor: ew-resize; }
.wake-index-track input[type="range"]:focus-visible + .wake-index-bars { outline: 3px solid #ffb40080; outline-offset: 4px; border-radius: 8px; }
.wake-index-track input[type="range"]:disabled { cursor: not-allowed; }
.wake-index-bars { position: absolute; inset: 0 4px; display: flex; justify-content: space-between; align-items: center; }
.wake-index-bars i { display: block; width: 8px; height: 13px; border-radius: 999px; background: #b8c8ce; box-shadow: 1px 1px 2px #aebdc2,-1px -1px 2px #fff; transform-origin: center; transition: height 220ms cubic-bezier(.2,.9,.2,1.35), width 220ms ease, background 180ms ease, transform 180ms ease; }
.wake-index-bars i.active { width: 10px; height: 24px; background: #2994b2; box-shadow: 1px 2px 4px #abc0c8,inset 1px 1px 2px #ffffff80; }
.wake-index-bars i.pulse { animation: index-wake 420ms cubic-bezier(.2,1.6,.3,1); }
.dream-index-labels { display: flex; justify-content: space-between; padding: 0 1px; color: #667e89; font-size: 10px; font-weight: 800; }
.dream-target-copy { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #d4dfe3; color: #17647a; font-size: 11px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
@keyframes index-wake { 0% { transform: scaleY(.7); } 45% { transform: scaleY(1.35); } 100% { transform: scaleY(1); } }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 14px; }
.plan-head h3, .plan-head p { margin: 0; }
.plan-head p { color: var(--muted); font-size: 13px; }
.micro-download { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 16px; text-align: left; }
.micro-download span { display: grid; gap: 1px; }
.micro-download b { font-size: 13px; line-height: 1.2; }
.micro-download small { font-size: 10px; line-height: 1.2; font-weight: 650; opacity: .82; }
.micro-download i { font-size: 18px; }
.plan-card { position: relative; animation: plan-rise 420ms cubic-bezier(.18,.9,.2,1.1) both; animation-delay: var(--delay); }
.plan-rank { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #2994b2; box-shadow: 2px 3px 6px #b8c7ce,-2px -2px 5px #fff; font-weight: 800; }
.plan-card h4 { max-width: calc(100% - 42px); }
.plan-empty { margin: 20px 0; padding: 22px; border-radius: 16px; background: #fffbe0; box-shadow: var(--inset); font-weight: 700; }
.dream-note { margin-top: 18px; }
@keyframes plan-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media(max-width:900px) { .dream-toolbar { grid-template-columns: 1fr; } .slide-commit { width: 100%; } .dream-overview { grid-template-columns: 1fr 1fr; } .slosh-gauge { grid-column: 1 / -1; grid-row: 2; } }
@media(max-width:680px) { .dream-segmented { grid-template-columns: repeat(5,88px); } .dream-overview { gap: 12px; } .dream-score-card { min-width: 0; padding: 14px; } .dream-score-card strong { font-size: 26px; } .dream-score-card b { font-size: 11px; } .dream-kpi-picker { padding: 15px; } .dream-kpi-head { align-items: stretch; flex-direction: column; } .dream-kpi-actions button { flex: 1; } .dream-kpi-choices { grid-template-columns: 1fr; } .plan-head { align-items: stretch; flex-direction: column; } .micro-download { justify-content: center; } }
@media(prefers-reduced-motion:reduce) { .dream-segmented button,.slosh-track span,.slosh-track i,.plan-card,.wake-index-bars i { transition: none; animation: none; } }
: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: 440px; gap: 12px; }
.admin-entry-button { display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;white-space:nowrap; }
.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; }
.role-segmented { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.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; color: #115876; background: #d9edf2; border: 1px solid #9fcbd7; box-shadow: inset 1px 1px 2px #fff, 2px 2px 6px #d0d8d9; }
.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; }
.notice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #ffffffb8;
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 12px #c7d2d8, -5px -5px 12px #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  animation: notice-in 220ms ease-out;
}
.notice::before {
  content: "\2713";
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2fa4c3, #18728d);
  color: #fff;
  box-shadow: 3px 3px 7px #c3cfd6, -3px -3px 7px #fff, inset 1px 1px 2px #ffffff80;
  font-size: 16px;
  font-weight: 800;
}
.notice.error {
  border-color: #ffffffb8;
  background: var(--paper);
  color: #833b43;
  box-shadow: 5px 5px 12px #c7d2d8, -5px -5px 12px #fff;
}
.notice.error::before {
  content: "!";
  background: linear-gradient(145deg, #d9787e, #ae4b55);
}
.notice[hidden] { display: none; }
@keyframes notice-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@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; }
  .role-segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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; }
}
