/* NOBAR-MVP-155 (SESI-VzEfSn, ADR-0073) — baris Target tim (paling atas semua beranda) + lampu Keputusan K1–K6. Selektor diawali `.tt`.
   Kartu terang mengikuti tema (token app.css). Status selalu teks + warna. Popover: hover / fokus / ketuk (kelas .buka). HP 360 px tanpa
   gulir samping (kartu bertumpuk, popover selebar kartu). */
.tt-wadah { --tt-hijau: var(--good, #0ca30c); --tt-kuning: var(--warning, #fab219); --tt-merah: var(--critical, #d03b3b);
  --tt-hijau-soft: color-mix(in srgb, var(--tt-hijau) 14%, var(--surface)); --tt-kuning-soft: color-mix(in srgb, var(--tt-kuning) 18%, var(--surface));
  --tt-merah-soft: color-mix(in srgb, var(--tt-merah) 13%, var(--surface));
  margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tt-baris { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.tt-kartu { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; border-radius: 18px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); }
a.tt-kartu { text-decoration: none; }
a.tt-kartu:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tt-kepala { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.tt-label.kecil { font-size: 11px; letter-spacing: .06em; }
.tt-tautan { font-size: 12.5px; font-weight: 700; }
.tt-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); }
.tt-chip.c-hijau { background: var(--tt-hijau-soft); color: var(--good-text); }
.tt-chip.c-kuning { background: var(--tt-kuning-soft); color: var(--warning-text); }
.tt-chip.c-merah { background: var(--tt-merah-soft); color: var(--critical-text); }
.tt-sub { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tt-sub b { color: var(--text); }
.tt-kosong { color: var(--text-3); font-size: 13px; padding: 8px 0; }
.tt-besar { display: block; font-size: 26px; font-weight: 800; line-height: 1.05; }
.tt-besar small { font-size: 13px; font-weight: 700; color: var(--text-2); }

/* kartu 1 */
.tt-speedo-baris { display: flex; align-items: center; gap: 14px; }
.tt-speedo { flex: none; }
.tt-speedo path { fill: none; stroke-width: 12; stroke-linecap: round; }
.tt-speedo .tt-trek { stroke: var(--surface-2); }
.tt-speedo .tt-isi { stroke: var(--text-3); transition: stroke-dasharray .8s ease; }
.tt-speedo .tt-isi.n-hijau { stroke: var(--tt-hijau); } .tt-speedo .tt-isi.n-kuning { stroke: var(--tt-kuning); } .tt-speedo .tt-isi.n-merah { stroke: var(--tt-merah); }
.tt-speedo .tt-jarum { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.tt-speedo .tt-poros { fill: var(--text); }
.tt-hari { display: block; margin-top: 4px; font-size: 14px; }
.tt-hari b { font-weight: 800; } .tt-hari span { color: var(--text-2); font-weight: 600; }
.tt-bar { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--surface-2); }
.tt-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--text-3); }
.tt-bar i.n-hijau { background: var(--tt-hijau); } .tt-bar i.n-kuning { background: var(--tt-kuning); } .tt-bar i.n-merah { background: var(--tt-merah); }
.tt-jadwal { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: -4px; }
.tt-beda { font-weight: 800; } .tt-beda.n-hijau { color: var(--good-text); } .tt-beda.n-kuning { color: var(--warning-text); } .tt-beda.n-merah { color: var(--critical-text); }
.tt-waktu { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1px; border-radius: 2px; background: var(--text); }

/* kartu 2 & popover */
.tt-pop-wadah { position: relative; }
.tt-tangga { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; white-space: normal; }
.tt-tangga > span[role="list"] { display: flex; flex-direction: column; gap: 5px; }
.tt-tangga-baris, .tt-pop-baris { display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: 11px; }
.tt-tangga-baris { height: 32px; padding: 0 10px; background: var(--surface-2); font-weight: 600; }
.tt-tangga-baris.saya, .tt-pop-baris.saya { background: var(--accent); color: #fff; font-weight: 800; }
.tt-tangga-baris.saya .gerak, .tt-pop-baris.saya .gerak { color: #fff; }
.tt-no { width: 34px; flex: none; font-weight: 800; }
.tt-nama { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-nilai { flex: none; font-size: 12.5px; font-weight: 700; }
.tt-g { flex: none; min-width: 26px; text-align: right; }
.tt-ketuk { display: none; }
@media (hover: none) { .tt-arah { display: none; } .tt-ketuk { display: inline; } }
.tt-pop { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 100%; min-width: 280px; max-width: calc(100vw - 32px);
  flex-direction: column; gap: 3px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.18); color: var(--text); }
.tt-pop-wadah.kanan .tt-pop { left: auto; right: 0; width: min(360px, calc(100vw - 32px)); }
.tt-pop-wadah.ke-kiri > .tt-pop { left: auto; right: 0; }
.tt-pop-wadah.ke-kanan > .tt-pop { left: 0; right: auto; }
/* review #1: tanpa pemicu fokus (Escape / ketuk kedua benar-benar menutup); hover hanya di perangkat yang benar-benar bisa hover */
.tt-pop-wadah.buka > .tt-pop { display: flex; }
@media (hover: hover) { .tt-pop-wadah:hover > .tt-pop { display: flex; } }
.tt-pop-judul { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 2px 6px 6px; }
.tt-pop-baris { height: 30px; padding: 0 8px; font-size: 13.5px; }
.tt-pop-baris .tt-no { width: 30px; }
.tt-pop-pisah { text-align: center; color: var(--text-3); line-height: 1; }
.tt-pop-kaki { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 6px 2px; }
a.tt-pop-kaki { color: var(--accent); }
.tt-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--text-3); }
.tt-dot.d-hijau { background: var(--tt-hijau); } .tt-dot.d-kuning { background: var(--tt-kuning); } .tt-dot.d-merah { background: var(--tt-merah); }
.tt-pop-baris.saya .tt-dot { box-shadow: 0 0 0 2px #fff; }

/* kartu 3 */
.tt-vbaris { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tt-thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: var(--surface-2); }
.tt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-vteks { min-width: 0; color: inherit; display: block; }
.tt-vteks:hover { text-decoration: none; }
.tt-vteks:hover .tt-vjudul { text-decoration: underline; }
.tt-vjudul { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-tim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tt-orang { position: relative; display: inline-block; width: 34px; height: 34px; flex: none; }
.tt-orang .av { width: 34px; height: 34px; min-width: 34px; font-size: 13px; box-shadow: 0 0 0 2px var(--surface); }
.tt-lencana { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text-3); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.tt-lencana svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tt-lencana.p-naskah { background: #2a78d6; } .tt-lencana.p-vo { background: #c9650f; } .tt-lencana.p-editor { background: #bf3b7a; }
.tt-peringkat { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 11px; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text); text-align: left; white-space: normal; max-width: 100%; }
.tt-peringkat b { font-weight: 800; }
.tt-peringkat.c-hijau { background: var(--tt-hijau-soft); color: var(--good-text); }
.tt-peringkat.c-kuning { background: var(--tt-kuning-soft); color: var(--warning-text); }
.tt-peringkat.c-merah { background: var(--tt-merah-soft); color: var(--critical-text); }
.tt-panah { font-size: 11px; }

/* K1–K6 */
.tt-k16 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tt-k16.kosong { padding: 8px 14px; }
.tt-k16-judul { display: flex; flex-direction: column; margin-right: 4px; }
.tt-k-daftar { display: flex; gap: 8px; flex-wrap: wrap; }
.tt-k { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 9px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800;
  border: 2px solid var(--line); background: var(--surface); color: var(--text); }
.tt-k i { width: 13px; height: 13px; border-radius: 50%; background: var(--text-3); }
.tt-k.k-hijau i { background: var(--tt-hijau); box-shadow: 0 0 0 3px var(--tt-hijau-soft); }
.tt-k.k-kuning { border-color: var(--tt-kuning); background: var(--tt-kuning-soft); color: var(--warning-text); }
.tt-k.k-kuning i { background: var(--tt-kuning); }
.tt-k.k-merah { border-color: var(--tt-merah); background: var(--tt-merah-soft); color: var(--critical-text); }
.tt-k.k-merah i { background: var(--tt-merah); }
.tt-k-pop { width: 320px; min-width: 0; gap: 6px; padding: 12px 14px; }
.tt-k-kepala { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.tt-k-arti { font-size: 13.5px; line-height: 1.4; }
.tt-k-kini { padding: 7px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.tt-kaki { text-align: right; font-size: 12.5px; margin-top: -4px; }

@media (max-width: 640px) {
  .tt-baris { grid-template-columns: 1fr; }
  .tt-pop, .tt-pop-wadah.kanan .tt-pop, .tt-k-pop { left: 0; right: auto; width: 100%; min-width: 0; }
  .tt-k-daftar .tt-pop-wadah { position: static; }
  .tt-k16 { position: relative; }
}
@media (prefers-reduced-motion: reduce) { .tt-speedo .tt-isi { transition: none; } }
