.home-grid { display: grid; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 14px; align-items: stretch; }

/* Kartu keputusan */
.decision-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.decision-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.decision-head h2 { margin: 0; font: 800 14px "Manrope"; letter-spacing: -.02em; }
.decision-facts { margin: 0; }
.decision-facts div { padding: 9px 0; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #edf2f7; }
.decision-facts dt { color: var(--muted); font-size: 11px; }
.decision-facts dd { margin: 0; font-size: 12px; font-weight: 800; text-align: right; }
.decision-caption { margin: auto 0 0; color: #93a2b5; font-size: 10px; text-align: center; }

/* Papan node */
.board { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.board-head h2 { margin: 0; font: 800 14px "Manrope"; letter-spacing: -.02em; }
.board-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.node-board { flex: 1; align-content: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.board-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 160px; color: var(--muted); font-size: 12px; }

.node-tile { padding: 16px; display: flex; flex-direction: column; gap: 12px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.node-tile:hover { border-color: #bcd6f2; box-shadow: 0 8px 22px rgba(70, 107, 146, .09); }
.node-tile.determining { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,128,237, .1); }
.node-tile.inactive { background: #f8fafc; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-id { font: 800 13px "Manrope"; }
.tag-determining { padding: 3px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: var(--blue); background: #e8f1ff; font-size: 10px; font-weight: 800; }
.tile-class { display: flex; align-items: center; gap: 8px; font: 800 20px/1.15 "Manrope"; letter-spacing: -.02em; color: #94a3b8; }
.tile-class.good { color: #16866f; }
.tile-class.attention { color: #a16a00; }
.tile-class.bad { color: #c8485c; }
.tile-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile-scores div { padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.tile-scores span { display: block; color: var(--muted); font-size: 10px; }
.tile-scores strong { font: 800 19px "Manrope"; letter-spacing: -.03em; }
.tile-bar { height: 5px; border-radius: 3px; background: #e8eef5; overflow: hidden; }
.tile-bar i { display: block; height: 100%; border-radius: 3px; background: var(--blue); transition: width .4s ease; }
.tile-reason { margin: 0; color: #b45309; font-size: 12px; font-weight: 700; }
.tile-readings { margin-top: auto; padding-top: 10px; border-top: 1px solid #edf2f7; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; color: #425872; }
.tile-readings span { display: block; color: var(--muted); font-size: 10px; }
.tile-readings strong { font-size: 12px; font-weight: 800; color: inherit; }
.node-tile.inactive .tile-readings { color: #94a3b8; }

/* Grafik */
.history-panel { margin-top: 0; }
.legend-items { display: flex; flex-wrap: wrap; gap: 14px; }
.legend-items span { display: inline-flex; align-items: center; gap: 6px; }
.chart-tip { position: absolute; top: 12px; z-index: 2; min-width: 120px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(70, 107, 146, .14); font-size: 11px; line-height: 1.6; pointer-events: none; display: none; white-space: nowrap; }
.chart-tip b { font-weight: 800; }
.chart-tip .tip-time { color: var(--muted); font-size: 10px; }

@media (max-width: 1180px) { .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .decision-card { flex-direction: column; } .node-board { grid-template-columns: 1fr; } }

.tile-wait { margin: 0; color: var(--muted); font-size: 12px; }

.home-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.decision-card .fan-stage canvas { width: 136px; height: 136px; }
.zone-banner { padding: 14px 16px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f1f5f9; }
.zone-banner span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.zone-banner strong { display: block; margin-top: 4px; font: 800 24px/1.15 "Manrope"; letter-spacing: -.02em; color: #64748b; }
.zone-banner p { margin: 6px 0 0; color: #425872; font-size: 12px; line-height: 1.45; }
.zone-banner.good { background: #e9f8f3; border-color: #c7ecdf; }
.zone-banner.good strong { color: #16866f; }
.zone-banner.attention { background: #fff6df; border-color: #f3e1ae; }
.zone-banner.attention strong { color: #a16a00; }
.zone-banner.bad { background: #ffedf0; border-color: #f6ccd3; }
.zone-banner.bad strong { color: #c8485c; }
.tile-need { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.tile-need strong { font: 800 15px "Manrope"; color: var(--ink); letter-spacing: -.01em; }
