/* =========================================================
   Bekas Dapuran — /app/ (aplikasi gratis untuk UMKM kuliner)
   Melengkapi /css/app.css (token warna, .container, .btn).
   Semua kelas berawalan "tl-" supaya tidak bentrok dengan
   homepage atau landing page.
   ========================================================= */

html, body { overflow-x: hidden; max-width: 100vw; }

.tl-nav { position: sticky; top: 0; z-index: 50; background: rgba(250,249,246,.94); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.tl-nav .container { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.tl-nav .logo { font-weight: 700; font-size: 17px; }
.tl-nav .logo span { color: var(--brand-red); }
.tl-nav .tl-navlink { font-size: 14px; font-weight: 600; color: var(--stainless); padding: 8px 4px; }
.tl-nav .tl-navlink:hover { color: var(--text); }

.tl-head { padding: 28px 0 8px; }
.tl-crumb { font-size: 13px; color: var(--stainless); margin-bottom: 10px; }
.tl-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.tl-head h1 { font-size: 27px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.tl-subhead { font-size: 15px; color: var(--text); font-weight: 500; margin: 4px 0 8px; line-height: 1.5; }
html.dark .tl-subhead { color: #E4E1DA; }
.tl-head p { color: var(--stainless); margin: 0; max-width: 640px; }
.tl-note { font-size: 13px; color: var(--stainless); margin-top: 12px !important; }

.tl-main { padding: 20px 0 56px; }
.tl-layout { display: grid; gap: 18px; }

.tl-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tl-card h2 { font-size: 17px; margin: 0 0 4px; }
.tl-card .tl-hint { font-size: 13px; color: var(--stainless); margin: 0 0 14px; }

.tl-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tl-field label, .tl-label { font-size: 13px; font-weight: 600; color: #4b4e51; }
.tl-field input, .tl-field select {
  width: 100%; min-height: 44px; padding: 8px 11px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid #D5D2CB; border-radius: var(--radius-sm); appearance: none;
}
.tl-field select { background-image: linear-gradient(45deg, transparent 50%, #686C6F 50%), linear-gradient(135deg, #686C6F 50%, transparent 50%); background-position: calc(100% - 15px) 19px, calc(100% - 10px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.tl-field input:focus, .tl-field select:focus { outline: 2px solid #C9362B33; border-color: var(--brand-red); }
.tl-field .tl-sub { font-size: 12px; color: var(--stainless); }
.tl-affix { position: relative; }
.tl-affix > span { position: absolute; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--stainless); pointer-events: none; }
.tl-affix.pre > span { left: 11px; }
.tl-affix.pre > input { padding-left: 36px; }
.tl-affix.suf > span { right: 11px; }
.tl-affix.suf > input { padding-right: 40px; }

.tl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tl-stack { display: grid; gap: 14px; }

/* Baris bahan */
.tl-ing { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #FCFBF9; display: grid; gap: 10px; }
.tl-ing + .tl-ing { margin-top: 10px; }
.tl-ing-top { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: end; }
.tl-ing-buy { display: grid; grid-template-columns: 1.25fr .8fr .8fr; gap: 8px; }
.tl-ing-use { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-ing-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--stainless); border-top: 1px dashed var(--border); padding-top: 8px; }
.tl-ing-foot b { color: var(--text); font-size: 14px; }
.tl-del { width: 44px; height: 44px; border: 1px solid #D5D2CB; background: #fff; border-radius: var(--radius-sm); font-size: 18px; line-height: 1; color: var(--stainless); cursor: pointer; }
.tl-del:hover { color: var(--brand-red); border-color: var(--brand-red); }

.tl-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tl-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #D5D2CB; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.tl-btn:hover { border-color: var(--stainless); }
.tl-btn.dark { background: var(--text); border-color: var(--text); color: #fff; }
.tl-btn.ghost { border-style: dashed; color: var(--stainless); }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5D2CB; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tl-chip.on { background: var(--text); color: #fff; border-color: var(--text); }

/* Hasil */
.tl-result { background: #1F2022; color: #F4F2EC; border-color: #1F2022; }
.tl-result h2 { color: #fff; }
.tl-result .tl-hint { color: #B9B5AB; }
.tl-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-stat { background: #2B2C2F; border-radius: 12px; padding: 12px; min-width: 0; }
.tl-stat .k { font-size: 12px; color: #B9B5AB; }
.tl-stat .v { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tl-stat .s { font-size: 12px; color: #B9B5AB; margin-top: 2px; }
.tl-stat.accent { background: #fff; color: var(--text); }
.tl-stat.accent .k, .tl-stat.accent .s { color: var(--stainless); }
.tl-empty { font-size: 14px; color: #B9B5AB; margin: 0; }

.tl-panel { margin-top: 12px; background: #2B2C2F; border-radius: 12px; padding: 12px; font-size: 14px; line-height: 1.5; }
.tl-panel b { color: #fff; }
.tl-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.tl-badge.ok { background: #1F7A44; color: #fff; }
.tl-badge.thin { background: #2E6FB7; color: #fff; }
.tl-badge.warn { background: #E0A100; color: #1F2022; }
.tl-badge.bad { background: #D2473B; color: #fff; }

.tl-break { margin-top: 14px; display: grid; gap: 9px; }
.tl-break-row { font-size: 13px; }
.tl-break-top { display: flex; justify-content: space-between; gap: 10px; }
.tl-break-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-break-top span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.tl-bar { height: 5px; background: #3A3B3F; border-radius: 3px; margin-top: 4px; overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: #E9B44C; border-radius: 3px; }
.tl-fine { font-size: 12px; color: #B9B5AB; margin: 14px 0 0; line-height: 1.5; }

/* Daftar menu tersimpan */
.tl-saved { display: grid; gap: 8px; }
.tl-saved-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.tl-saved-item .n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-saved-item .m { font-size: 12px; color: var(--stainless); }
.tl-saved-item .a { display: flex; gap: 6px; flex: none; }
.tl-saved-item button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5D2CB; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.tl-cta { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.tl-cta h2 { font-size: 18px; margin: 0 0 6px; }
.tl-cta p { color: var(--stainless); font-size: 14px; margin: 0 auto 14px; max-width: 460px; }

/* Bilah ringkas di bawah layar (HP) */
.tl-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #1F2022; color: #fff; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; border: 0; width: 100%; font-family: inherit; text-align: left; cursor: pointer; }
.tl-dock b { font-size: 15px; font-variant-numeric: tabular-nums; }
.tl-dock .go { font-weight: 700; color: #E9B44C; white-space: nowrap; }
.tl-dock.show { display: flex; }
body.tl-has-dock { padding-bottom: 62px; }

.tl-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 999px; z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.tl-toast.show { opacity: 1; }

/* Halaman daftar aplikasi */
.tl-apps { display: grid; gap: 14px; }
.tl-app { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
a.tl-app:hover { border-color: var(--stainless); }
.tl-app .ic { width: 44px; height: 44px; border-radius: 12px; background: #FBEDEB; color: var(--brand-red); display: flex; align-items: center; justify-content: center; }
.tl-app h2 { font-size: 17px; margin: 4px 0 0; }
.tl-app p { font-size: 14px; color: var(--stainless); margin: 0; }
.tl-app .st { font-size: 12px; font-weight: 700; align-self: flex-start; padding: 3px 10px; border-radius: 999px; }
.tl-app .st.live { background: #E3F4EA; color: var(--wa-green-dark); }
.tl-app .st.soon { background: var(--soft-gray); color: var(--stainless); }
.tl-app.soon { box-shadow: none; background: #FCFBF9; }
.tl-app .open { font-size: 14px; font-weight: 700; color: var(--brand-red); margin-top: 4px; }

@media (min-width: 900px) {
  .tl-head { padding-top: 40px; }
  .tl-head h1 { font-size: 34px; }
  .tl-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 22px; }
  .tl-side { position: sticky; top: 76px; display: grid; gap: 18px; }
  .tl-ing { grid-template-columns: 1fr; }
  .tl-apps { grid-template-columns: repeat(2, 1fr); }
  .tl-dock, .tl-dock.show { display: none; }
  body.tl-has-dock { padding-bottom: 0; }
  .tl-toast { bottom: 28px; }
}
@media (min-width: 1100px) { .tl-apps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .tl-side { display: grid; gap: 18px; } }
@media (max-width: 380px) { .tl-big { grid-template-columns: 1fr; } .tl-ing-buy { grid-template-columns: 1fr 1fr; } .tl-ing-buy .tl-field:first-child { grid-column: 1 / -1; } }

@media print {
  .tl-nav, .tl-dock, .tl-cta, .tl-btnrow, footer, .tl-del, .tl-dim-tabs { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .tl-card { box-shadow: none; break-inside: avoid; }
  .tl-result { background: #fff; color: #000; border-color: #999; }
  .tl-result h2, .tl-panel b, .tl-break-top span:last-child { color: #000; }
  .tl-stat, .tl-panel { background: #f3f3f3; }
  .tl-stat .k, .tl-stat .s, .tl-fine, .tl-result .tl-hint { color: #444; }
}

/* Baris biaya (label + nominal) */
.tl-cost { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.tl-cost + .tl-cost { margin-top: 8px; }
.tl-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 14px; color: var(--stainless); }
.tl-total b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }

/* Tabel skenario di panel hasil */
.tl-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.tl-table th { text-align: right; font-weight: 600; color: #B9B5AB; padding: 6px 4px; border-bottom: 1px solid #3A3B3F; }
.tl-table td { text-align: right; padding: 8px 4px; border-bottom: 1px solid #2F3033; color: #fff; }
.tl-table th:first-child, .tl-table td:first-child { text-align: left; color: #F4F2EC; }
.tl-table td small { display: block; color: #B9B5AB; font-size: 12px; }
.tl-table .neg { color: #FF9D94; }
.tl-sub-h { font-size: 13px; font-weight: 700; color: #fff; margin: 16px 0 0; }
.tl-next { display: block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--brand-red); }
@media print { .tl-table td, .tl-table th, .tl-sub-h { color: #000 !important; border-color: #bbb; } .tl-table td small { color: #444; } }
@media (max-width: 520px) {
  /* Nama biaya di baris sendiri supaya tidak terpotong di layar HP */
  .tl-cost { grid-template-columns: minmax(0, 1fr) 44px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
  .tl-cost + .tl-cost { margin-top: 10px; }
  .tl-cost .tl-field:first-child { grid-column: 1 / -1; }
  .tl-cost .tl-field:first-child input { min-height: 38px; border-color: transparent; background: transparent; padding-left: 0; font-weight: 600; font-size: 15px; }
  .tl-cost .tl-field:first-child input:focus { background: #fff; border-color: var(--brand-red); padding-left: 11px; }
}

details > summary { list-style-position: inside; }
.tl-table td small.neg { color: #FF9D94; }

/* =========================================================
   v5 — lapisan premium & interaktif
   Warna data di panel hasil (latar gelap #1F2022) memakai palet
   kategori versi gelap yang sudah divalidasi aman buta warna.
   ========================================================= */
.tl-result {
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c;
  --good: #0ca30c; --warning: #fab219; --critical: #d03b3b; --accent: #3987e5;
}

/* Tooltip */
.tl-tip { position: fixed; left: 0; top: 0; z-index: 90; max-width: 260px; background: #0B0B0B; color: #F4F2EC; font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; opacity: 0; transition: opacity .12s; }
.tl-tip.show { opacity: 1; }
[data-tip] { cursor: help; }
.tl-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; font-weight: 700; opacity: .65; margin-left: 4px; vertical-align: 1px; background: none; color: inherit; padding: 0; }

/* Meter (rasio terhadap batas) */
.tl-meter { margin-top: 12px; }
.tl-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: #B9B5AB; }
.tl-meter-head b { color: #fff; font-size: 15px; }
.tl-meter-track { position: relative; height: 10px; border-radius: 999px; margin-top: 8px; background: color-mix(in srgb, var(--m, #3987e5) 22%, #1F2022); }
.tl-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--m, #3987e5); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.tl-meter-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #F4F2EC; border-radius: 1px; }
.tl-meter-mark span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #F4F2EC; white-space: nowrap; }
.tl-meter-scale { display: flex; justify-content: space-between; font-size: 12px; color: #8F8B82; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tl-meter.has-mark .tl-meter-track { margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .tl-meter-fill { transition: none; } }

/* Batang tersegmen tinggi (satu keseluruhan dibagi beberapa bagian) */
.tl-seg { display: flex; gap: 2px; height: 28px; margin-top: 12px; position: relative; }
.tl-seg > div { position: relative; min-width: 0; border-radius: 4px; display: flex; align-items: center; padding-left: 6px; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; outline-offset: 2px; }
.tl-seg > div.no-label { padding: 0; }
.tl-seg-over { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #F4F2EC; margin-left: -1px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: #D9D5CB; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

/* Penggeser "bagaimana kalau" */
.tl-slider { margin-top: 14px; background: #2B2C2F; border-radius: 12px; padding: 12px; }
.tl-slider label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #D9D5CB; gap: 8px; }
.tl-slider label b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.tl-slider input[type=range] { width: 100%; margin: 12px 0 4px; accent-color: #E9B44C; height: 28px; }
.tl-slider .out { font-size: 14px; color: #F4F2EC; line-height: 1.5; }
.tl-slider .out b { color: #fff; }

/* Bahan: kartu ringkas yang bisa dibuka */
.tl-ing.mini { padding: 0; background: #fff; }
.tl-ing-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 12px 14px; cursor: pointer; color: var(--text); border-radius: 12px; }
.tl-ing-sum:hover { background: #FCFBF9; }
.tl-ing-sum .nm { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ing-sum .ds { font-size: 13px; color: var(--stainless); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ing-sum .cs { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-ing-sum .cs small { display: block; font-size: 12px; font-weight: 600; color: var(--brand-red); }
.tl-ing-done { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--text); background: var(--text); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tl-warnline { font-size: 13px; color: #8A5A00; background: #FFF6DE; border: 1px solid #F1DDA4; border-radius: 8px; padding: 6px 9px; }

/* Tombol isi otomatis dari aplikasi lain */
.tl-import { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.tl-import button { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #C9C5BC; background: #FCFBF9; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.tl-import button:hover { border-color: var(--stainless); background: #fff; }
.tl-import button b { display: block; font-size: 14px; }
.tl-import button span.sub { color: var(--stainless); font-size: 13px; }
.tl-import .ic { flex: none; width: 32px; height: 32px; border-radius: 9px; background: #FBEDEB; color: var(--brand-red); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Perbandingan antarbulan */
.tl-deltas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tl-delta { background: #2B2C2F; border-radius: 10px; padding: 10px; }
.tl-delta .k { font-size: 12px; color: #B9B5AB; }
.tl-delta .v { font-size: 16px; font-weight: 700; color: #fff; margin-top: 2px; }
.tl-delta .d { font-size: 13px; font-weight: 600; margin-top: 2px; }
.tl-delta .d.up { color: #3FD07A; } .tl-delta .d.down { color: #FF9D94; } .tl-delta .d.flat { color: #B9B5AB; }
.tl-cmp-sel { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #D9D5CB; margin-top: 16px; flex-wrap: wrap; }
.tl-cmp-sel select { background: #2B2C2F; color: #fff; border: 1px solid #45464A; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }

/* Pilihan pembulatan */
.tl-seg-ctl { display: inline-flex; background: #2B2C2F; border-radius: 999px; padding: 3px; gap: 2px; }
.tl-seg-ctl button { border: 0; background: none; color: #D9D5CB; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.tl-seg-ctl button.on { background: #F4F2EC; color: #1F2022; }
.tl-row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: #B9B5AB; }

/* Halaman daftar aplikasi */
.tl-hero { padding: 36px 0 12px; }
.tl-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--wa-green-dark); background: #E3F4EA; border-radius: 999px; padding: 5px 12px; }
.tl-hero h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 10px; max-width: 720px; }
.tl-hero h1 em { font-style: normal; color: var(--brand-red); }
.tl-hero p { color: var(--stainless); max-width: 620px; margin: 0; font-size: 16px; }
.tl-resume { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tl-resume a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.tl-resume a:hover { border-color: var(--stainless); }
.tl-resume a i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-green); }
.tl-journey { display: grid; gap: 12px; counter-reset: step; }
.tl-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.tl-step:hover { border-color: var(--stainless); transform: translateY(-1px); }
.tl-step .num { width: 44px; height: 44px; border-radius: 12px; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.tl-step h2 { font-size: 17px; margin: 2px 0 4px; }
.tl-step p { margin: 0; font-size: 14px; color: var(--stainless); }
.tl-step .q { font-size: 13px; font-weight: 700; color: var(--brand-red); margin-bottom: 2px; }
.tl-step .go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--brand-red); }
.tl-step .meta { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--wa-green-dark); background: #E3F4EA; border-radius: 999px; padding: 3px 10px; }
.tl-step.soon { background: #FCFBF9; box-shadow: none; }
.tl-step.soon .num { background: var(--soft-gray); color: var(--stainless); }
.tl-trust { display: grid; gap: 10px; margin-top: 22px; }
.tl-trust div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--stainless); }
.tl-trust b { color: var(--text); display: block; }
.tl-trust .dot { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--wa-green-dark); font-weight: 700; }
@media (min-width: 900px) {
  .tl-hero { padding-top: 52px; }
  .tl-hero h1 { font-size: 42px; }
  .tl-journey { grid-template-columns: repeat(2, 1fr); }
  .tl-trust { grid-template-columns: repeat(3, 1fr); }
}
@media print { .tl-slider, .tl-cmp-sel, .tl-seg-ctl, .tl-import { display: none !important; } .tl-meter-track { background: #ddd; } .tl-legend, .tl-meter-head, .tl-meter-head b, .tl-delta .v { color: #000; } }

/* Atribut hidden harus selalu menang atas display komponen (hanya berlaku di halaman /app/) */
[hidden] { display: none !important; }
.tl-meter-scale.pos { position: relative; display: block; height: 14px; }
.tl-meter-scale.pos span { position: absolute; top: 0; transform: translateX(-50%); }
/* Kolom tidak boleh melebar mengikuti teks panjang yang tidak boleh terpotong baris */
.tl-side, .tl-stack, .tl-saved { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { .tl-layout, .tl-journey { grid-template-columns: minmax(0, 1fr); } }
.tl-saved-item > div:first-child { flex: 1; min-width: 0; }

/* ---------- Perencana Alat Dapur ---------- */
.tl-concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tl-concept { text-align: left; border: 1.5px solid #D5D2CB; background: #fff; border-radius: 12px; padding: 12px; font: inherit; cursor: pointer; color: var(--text); min-height: 72px; }
.tl-concept b { display: block; font-size: 14px; line-height: 1.3; }
.tl-concept span { display: block; font-size: 12px; color: var(--stainless); margin-top: 3px; line-height: 1.35; }
.tl-concept.on { border-color: var(--text); background: var(--text); color: #fff; }
.tl-concept.on span { color: #C9C6BD; }
.tl-level-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.tl-level-h:first-child { margin-top: 4px; }
.tl-level-h small { font-weight: 600; color: var(--stainless); font-size: 13px; }
details.tl-level > summary { cursor: pointer; list-style: none; }
details.tl-level > summary::-webkit-details-marker { display: none; }
details.tl-level > summary .tl-level-h::after { content: "Tampilkan"; font-size: 13px; font-weight: 600; color: var(--brand-red); }
details.tl-level[open] > summary .tl-level-h::after { content: "Sembunyikan"; }
.tl-kit { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; display: grid; gap: 8px; }
.tl-kit + .tl-kit { margin-top: 8px; }
.tl-kit.st-punya { background: #F6FAF7; }
.tl-kit.st-nanti { background: #FCFBF9; }
.tl-kit.st-nanti .tl-kit-name { color: var(--stainless); }
.tl-kit-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tl-kit-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.tl-kit-area { font-size: 12px; color: var(--stainless); font-weight: 600; white-space: nowrap; background: var(--soft-gray); border-radius: 999px; padding: 2px 8px; }
.tl-kit-note { font-size: 13px; color: var(--stainless); line-height: 1.45; margin: -2px 0 0; }
.tl-seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft-gray); border-radius: 10px; padding: 3px; gap: 3px; }
.tl-seg3 button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--stainless); border-radius: 8px; min-height: 36px; cursor: pointer; }
.tl-seg3 button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tl-seg3 button.on[data-st="beli"] { background: var(--text); color: #fff; }
.tl-kit-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.tl-qty { display: inline-flex; align-items: center; border: 1px solid #D5D2CB; border-radius: var(--radius-sm); overflow: hidden; height: 44px; }
.tl-qty button { width: 36px; height: 100%; border: 0; background: #fff; font: inherit; font-size: 18px; cursor: pointer; color: var(--text); }
.tl-qty span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-kit-sub { font-size: 13px; color: var(--stainless); text-align: right; }
.tl-kit-sub b { color: var(--text); }
.tl-tipbox { background: #F6F4EF; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #4b4e51; line-height: 1.5; }
.tl-tipbox b { color: var(--text); }
.tl-wa-big { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 14px; border-radius: 999px; background: var(--wa-green); color: #fff; font-weight: 700; font-size: 15px; text-align: center; padding: 0 16px; }
.tl-wa-big:hover { background: var(--wa-green-dark); }
.tl-counts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tl-counts span { font-size: 13px; background: #2B2C2F; color: #D9D5CB; border-radius: 999px; padding: 4px 10px; }
.tl-counts b { color: #fff; }
@media (min-width: 900px) { .tl-concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Panduan "Cara pakai" bergambar (guide.js) ---------- */
.tl-guide { margin-top: 18px; padding: 0; }
.tl-guide-bar { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; min-height: 48px; padding: 8px 14px 8px 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: left; }
.tl-guide-bar:hover { border-color: var(--stainless); }
.tl-guide-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.tl-guide-bt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-guide-dots { display: inline-flex; gap: 4px; margin-left: 4px; }
.tl-guide-dots i { width: 8px; height: 8px; border-radius: 50%; background: #DAD6CE; }
.tl-guide-dots i.on { background: var(--wa-green); }
.tl-guide-more { flex: none; font-weight: 700; color: var(--brand-red); font-size: 14px; }

.tl-guide-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 0 14px; }
.tl-guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 16px; }
.tl-guide-kick { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-red); }
.tl-guide-head h2 { font-size: 18px; line-height: 1.3; margin: 4px 0 0; }
.tl-guide-x { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5D2CB; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--stainless); cursor: pointer; }

/* Alur langkah: digeser ke samping di HP, berjajar di layar lebar */
.tl-flow { list-style: none; margin: 14px 0 0; padding: 2px 16px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 76%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.tl-flow::-webkit-scrollbar { display: none; }
.tl-flow-step { scroll-snap-align: start; position: relative; min-width: 0; }
.tl-flow-step > button { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; text-align: left; background: #FCFBF9; border: 1px solid var(--border); border-radius: 14px; padding: 8px 8px 12px; font: inherit; color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tl-flow-step > button:hover { border-color: var(--stainless); transform: translateY(-1px); box-shadow: var(--shadow); }
.tl-flow-step > button:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.tl-flow-step.next > button { border-color: var(--text); background: #fff; }
.tl-flow-art { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.tl-flow-art svg { display: block; width: 100%; height: auto; }
.tl-flow-ok { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--wa-green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.3,1.4); }
.tl-flow-ok svg { width: 15px; height: 15px; }
.tl-flow-step.done .tl-flow-ok { opacity: 1; transform: none; }
.tl-flow-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; line-height: 1.3; padding: 4px 4px 0; }
.tl-flow-n { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--text); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.tl-flow-step.done .tl-flow-n { background: var(--wa-green); }
.tl-flow-d { font-size: 13px; line-height: 1.45; color: var(--stainless); padding: 0 4px; }
.tl-flow-st { margin-top: auto; padding: 4px 4px 0; font-size: 13px; font-weight: 700; color: var(--stainless); display: inline-flex; align-items: center; gap: 4px; }
.tl-flow-st svg { width: 14px; height: 14px; }
.tl-flow-step.next .tl-flow-st { color: var(--brand-red); }
.tl-flow-step.done .tl-flow-st { color: var(--wa-green-dark); }

.tl-guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px 0; }
.tl-guide-prog { flex: 1; min-width: 180px; display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--stainless); }
.tl-guide-track { display: block; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--wa-green) 16%, #fff); overflow: hidden; max-width: 320px; }
.tl-guide-track i { display: block; height: 100%; width: 0; background: var(--wa-green); border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.tl-guide-foot .tl-btn { margin: 0; }

/* Titik ketuk berdenyut di dalam ilustrasi */
.tl-g-tap { transform-box: fill-box; transform-origin: center; animation: tlTap 1.8s ease-out infinite; }
@keyframes tlTap { 0% { opacity: 0; transform: scale(.5); } 25% { opacity: 1; transform: scale(1); } 70% { opacity: .9; } 100% { opacity: 0; transform: scale(1.35); } }

/* Sorotan bagian yang dituju dari panduan */
.tl-main .tl-card { scroll-margin-top: 74px; }
.tl-focus { animation: tlFocus 2s ease-out; }
@keyframes tlFocus { 0%, 35% { box-shadow: 0 0 0 3px var(--brand-red), var(--shadow); } 100% { box-shadow: 0 0 0 3px transparent, var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .tl-g-tap { animation: none; } .tl-focus { animation: none; outline: 3px solid var(--brand-red); } .tl-flow-ok, .tl-guide-track i { transition: none; } }

@media (min-width: 900px) {
  .tl-guide-body { padding: 20px 0 18px; }
  .tl-guide-head, .tl-guide-foot { padding-left: 20px; padding-right: 20px; }
  .tl-flow { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 2px 20px 4px; gap: 14px; }
  /* panah penghubung antarlangkah */
  .tl-flow-step + .tl-flow-step::before { content: ""; position: absolute; left: -11px; top: 22%; width: 8px; height: 8px; border-top: 2px solid #C9C5BC; border-right: 2px solid #C9C5BC; transform: rotate(45deg); }
}
@media print { .tl-guide { display: none !important; } }

/* Thumbnail ilustrasi di kartu halaman daftar aplikasi */
.tl-step-art { grid-column: 1 / -1; display: block; border-radius: 10px; overflow: hidden; margin: -6px -6px 2px; }
.tl-step-art svg { display: block; width: 100%; height: auto; }
.tl-step .num { align-self: start; }

/* Peta alur data antaraplikasi (halaman daftar aplikasi) */
.tl-eco { margin-top: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.tl-eco h2 { font-size: 18px; margin: 0; }
.tl-eco p { margin: 0; font-size: 14px; color: var(--stainless); }
.tl-eco svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
@media (min-width: 900px) { .tl-eco { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; padding: 24px; gap: 24px; } }
.tl-step-art .tl-g-tap { display: none; }
.tl-eco a:hover rect { stroke: var(--stainless); }
.tl-step-art { background: #F4F1EA; }
@media (min-width: 900px) { .tl-step-art svg { height: 180px; } .tl-eco svg { max-width: 440px; } }

/* ---------- Perencana Layout Dapur ---------- */
.tl-seg3.two { grid-template-columns: repeat(2, 1fr); }
.tl-li { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.tl-li + .tl-li, details.tl-level .tl-li { margin-top: 8px; }
.tl-li.off { background: #FCFBF9; }
.tl-li.off .tl-li-name b { color: var(--stainless); font-weight: 600; }
.tl-li-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.tl-li-tog { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid #C9C5BC; background: #fff; font: inherit; font-size: 16px; font-weight: 700; color: var(--stainless); cursor: pointer; }
.tl-li:not(.off) .tl-li-tog { background: var(--text); border-color: var(--text); color: #fff; }
.tl-li-name { flex: 1; min-width: 0; }
.tl-li-name b { display: block; font-size: 15px; line-height: 1.3; }
.tl-li-name span { display: block; font-size: 12px; color: var(--stainless); }
.tl-li-size { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--soft-gray); border-radius: 999px; padding: 3px 9px; }
.tl-li-body { display: grid; gap: 8px; padding: 0 12px 12px 56px; }
.tl-li-dim { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--stainless); flex-wrap: wrap; }
.tl-li-dim label { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.tl-li-dim input { width: 64px; min-height: 40px; padding: 6px 8px; font: inherit; font-size: 16px; color: var(--text); border: 1px solid #D5D2CB; border-radius: var(--radius-sm); text-align: center; }
.tl-li-dim input:focus { outline: 2px solid #C9362B33; border-color: var(--brand-red); }
.tl-li-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tl-li-ctl select { min-height: 44px; padding: 6px 28px 6px 10px; font: inherit; font-size: 14px; color: var(--text); border: 1px solid #D5D2CB; border-radius: var(--radius-sm); background: #fff linear-gradient(45deg, transparent 50%, #686C6F 50%) calc(100% - 15px) 19px / 5px 5px no-repeat; appearance: none; }
.tl-li-ctl select { background-image: linear-gradient(45deg, transparent 50%, #686C6F 50%), linear-gradient(135deg, #686C6F 50%, transparent 50%); background-position: calc(100% - 15px) 19px, calc(100% - 10px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.tl-li-note { margin: 0; font-size: 12px; color: var(--stainless); line-height: 1.45; }
@media (max-width: 420px) { .tl-li-body { padding-left: 12px; } }
.tl-plan { background: #fff; border-radius: 12px; padding: 8px; margin-top: 4px; }
.tl-plan svg { display: block; width: 100%; height: auto; }
.tl-plan svg [data-tip] { cursor: pointer; outline: none; }
.tl-plan svg [data-tip]:focus rect, .tl-plan svg [data-tip]:hover rect { stroke-width: 2; }
.tl-plan-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: #D9D5CB; }
.tl-plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-plan-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid; display: inline-block; }
.tl-plan-legend i.hd { border: 1.5px dashed #FF9D94; background: transparent; }
@media print { .tl-plan { border: 1px solid #ccc; } .tl-plan-legend { color: #000; } .tl-li-ctl select, .tl-li-tog { border-color: #999; } }
button.tl-li-name { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
button.tl-li-name:disabled { cursor: default; color: inherit; }
button.tl-li-name u { color: var(--brand-red); text-decoration: none; font-weight: 600; }
/* Layout dapur v2: toolbar denah, geser, data teknis */
.tl-plan-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.tl-plan-bar button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #45464A; background: #2B2C2F; color: #D9D5CB; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tl-plan-bar button.on { background: #F4F2EC; color: #1F2022; border-color: #F4F2EC; }
.tl-plan-bar [data-reset-order] { border-style: dashed; }
.tl-plan.big { overflow-x: auto; overscroll-behavior-x: contain; }
.tl-plan.big svg { width: 900px; max-width: none; }
.tl-plan svg .tl-drag { cursor: grab; touch-action: none; }
.tl-plan svg .tl-drag.dragging { cursor: grabbing; opacity: .85; }
.tl-plan svg .tl-drag.dragging rect { stroke-width: 2.5; }
.tl-plan-hint { font-size: 12px; color: #B9B5AB; margin: 8px 0 0; }
.tl-plan-legend b.ub { display: inline-flex; width: 14px; height: 14px; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 800; align-items: center; justify-content: center; }
details.tl-tech { margin-top: 12px; background: #2B2C2F; border-radius: 12px; }
details.tl-tech > summary { cursor: pointer; padding: 12px; font-size: 14px; font-weight: 700; color: #fff; list-style: none; }
details.tl-tech > summary::-webkit-details-marker { display: none; }
details.tl-tech > summary::after { content: "Tampilkan"; float: right; font-size: 13px; color: #E9B44C; font-weight: 600; }
details.tl-tech[open] > summary::after { content: "Sembunyikan"; }
.tl-tech-body { padding: 0 12px 12px; }
.tl-tech-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 10px; padding: 8px 0; border-top: 1px solid #3A3B3F; font-size: 13px; color: #B9B5AB; }
.tl-tech-row b { color: #F4F2EC; font-weight: 600; }
@media print { .tl-plan-bar, .tl-plan-hint { display: none !important; } details.tl-tech { background: #f3f3f3; } details.tl-tech > summary, .tl-tech-row b { color: #000; } .tl-tech-body { display: block; } }
.tl-legbox { display: grid; gap: 12px; background: #F6F4EF; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.tl-plan svg .tl-leg { cursor: help; }
/* ---- Folder Panduan Konsultan (Simple yet Premium Collapsible Folder) ---- */
.tl-edu { padding: 16px 0 44px; }
.tl-edu-folder {
  background: var(--ds-surface, #ffffff);
  border: 1.5px solid var(--border, #E8E5DF);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s ease;
}
.tl-edu-folder:hover { border-color: #0F6E56; }
.tl-folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  background: linear-gradient(180deg, #FAFAF8 0%, #F5F3EE 100%);
  user-select: none;
  transition: background 0.2s ease;
}
.tl-folder-header:hover { background: #F0EDE5; }
html.dark .tl-folder-header { background: linear-gradient(180deg, #26282D 0%, #1F2024 100%); }
html.dark .tl-folder-header:hover { background: #2B2D33; }
.tl-folder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(15, 110, 86, 0.1);
  color: #0F6E56;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
html.dark .tl-folder-badge { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.tl-folder-title-wrap h2 { font-size: 18px; font-weight: 700; color: var(--text, #1E1F21); margin: 0 0 3px; }
.tl-folder-sub { font-size: 13px; color: var(--stainless, #686C6F); margin: 0; line-height: 1.4; }
.tl-folder-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1.5px solid #0F6E56;
  background: #0F6E56;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 110, 86, 0.2);
}
.tl-folder-toggle-btn:hover { background: #0B5341; border-color: #0B5341; transform: translateY(-1px); }
.tl-folder-chevron { display: inline-block; font-size: 14px; transition: transform 0.25s ease; }
.tl-folder-toggle-btn.is-open .tl-folder-chevron { transform: rotate(180deg); }

/* Folder Body & Tabs */
.tl-folder-body { padding: 22px; border-top: 1px solid var(--border, #E8E5DF); animation: tl-fadein 0.25s ease both; }
.tl-folder-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border, #E8E5DF);
  margin-bottom: 18px;
  scrollbar-width: none;
}
.tl-folder-tabs::-webkit-scrollbar { display: none; }
.tl-folder-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  background: #F3F1EC;
  color: #55575A;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.tl-folder-tab:hover { background: #EAE6DE; color: var(--text, #1E1F21); }
.tl-folder-tab.is-active {
  background: var(--text, #1E1F21);
  color: #ffffff;
  border-color: var(--text, #1E1F21);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
html.dark .tl-folder-tab { background: #2B2C30; color: #B9B5AB; }
html.dark .tl-folder-tab.is-active { background: #10B981; color: #ffffff; border-color: #10B981; }

/* Panel 1: Pattern Explorer */
.tl-pattern-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}
.tl-pattern-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #E8E5DF);
  background: #ffffff;
  color: var(--text, #1E1F21);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
html.dark .tl-pattern-pill { background: #1E1F23; border-color: #3A3B40; }
.tl-pattern-pill:hover { border-color: #0F6E56; background: #F4F8F6; }
.tl-pattern-pill.is-active {
  border-color: #0F6E56;
  background: #EBF5F1;
  color: #0F6E56;
  box-shadow: 0 0 0 2px rgba(15, 110, 86, 0.2);
}
html.dark .tl-pattern-pill.is-active { background: rgba(16, 185, 129, 0.15); color: #34D399; border-color: #10B981; }

/* Pattern Showcase Card */
.tl-pattern-showcase {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background: #FAF9F6;
  border: 1px solid var(--border, #E8E5DF);
  border-radius: 14px;
  padding: 16px;
  align-items: center;
}
html.dark .tl-pattern-showcase { background: #191A1E; border-color: #2D2F35; }
@media (max-width: 760px) {
  .tl-pattern-showcase { grid-template-columns: 1fr; gap: 14px; }
  .tl-folder-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.tl-pattern-art {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border, #E8E5DF);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
html.dark .tl-pattern-art { background: #25262B; border-color: #373940; }
.tl-pattern-art svg { width: 100%; max-width: 260px; height: auto; display: block; }
.tl-pattern-info { display: flex; flex-direction: column; gap: 8px; }
.tl-pattern-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-pattern-head h3 { font-size: 18px; margin: 0; color: var(--text, #1E1F21); }
.tl-pattern-badge { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #E8F5E9; color: #2E7D32; }
html.dark .tl-pattern-badge { background: rgba(46, 125, 50, 0.2); color: #81C784; }
.tl-pattern-desc { font-size: 13.5px; line-height: 1.5; color: #4B4E51; margin: 0; }
html.dark .tl-pattern-desc { color: #CFCBC2; }
.tl-pattern-note {
  font-size: 13px; line-height: 1.5; color: #B45309; background: #FFFBEB;
  border-left: 3px solid #F59E0B; padding: 6px 10px; border-radius: 0 6px 6px 0; margin: 4px 0 0;
}
html.dark .tl-pattern-note { background: rgba(245, 158, 11, 0.12); color: #FCD34D; }
.tl-pattern-apply-btn {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px;
  padding: 8px 16px; border-radius: 99px; background: #0F6E56; color: #ffffff; border: 1px solid #0F6E56;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 110, 86, 0.2);
}
.tl-pattern-apply-btn:hover { background: #0B5341; transform: translateY(-1px); }

/* Panel 2: 8 Rules Grid */
.tl-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.tl-rule-item {
  display: flex; gap: 12px; background: #FAF9F6; border: 1px solid var(--border, #E8E5DF);
  border-radius: 12px; padding: 12px 14px; transition: all 0.18s ease;
}
html.dark .tl-rule-item { background: #191A1E; border-color: #2D2F35; }
.tl-rule-item:hover { border-color: #0F6E56; transform: translateY(-1px); }
.tl-rule-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #0F6E56; color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.tl-rule-content b { display: block; font-size: 14px; color: var(--text, #1E1F21); margin-bottom: 2px; }
.tl-rule-content p { font-size: 12.5px; color: #4B4E51; line-height: 1.45; margin: 0; }
html.dark .tl-rule-content p { color: #A8A49B; }

/* Panel 3: Regs & Standards */
.tl-regs-box { display: flex; flex-direction: column; gap: 14px; }
.tl-regs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.tl-reg-card { border: 1px solid var(--border, #E8E5DF); border-radius: 10px; padding: 12px; background: #FAF9F6; }
html.dark .tl-reg-card { background: #191A1E; border-color: #2D2F35; }
.tl-reg-card h4 { font-size: 13.5px; color: #0F6E56; margin: 0 0 4px; font-weight: 700; }
html.dark .tl-reg-card h4 { color: #34D399; }
.tl-reg-card p { font-size: 12px; color: #55575A; margin: 0; line-height: 1.45; }
html.dark .tl-reg-card p { color: #A8A49B; }

/* Quick pill link in Section 2 */
.tl-btn-pill-link {
  display: inline-flex; align-items: center; gap: 5px; background: #F3F8F5; border: 1px solid #C4E2D5;
  color: #0F6E56; padding: 6px 14px; border-radius: 99px; font-family: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; margin-top: 6px; transition: all 0.15s ease;
}
.tl-btn-pill-link:hover { background: #E1EFE8; border-color: #0F6E56; }
html.dark .tl-btn-pill-link { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); color: #34D399; }
@media print { .tl-edu { display: none !important; } }
/* v4: kapasitas, stok gudang, grease trap */
details.tl-cap { margin-top: 14px; border: 1px dashed #C9C5BC; border-radius: 12px; padding: 10px 12px; background: #FCFBF9; }
details.tl-cap > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text); }
.tl-stock { background: #F2F8F4; border: 1px solid #CFE6D7; border-radius: 10px; padding: 8px 10px; font-size: 13px; color: #1F5E36; }
.tl-stock > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl-stock button { border: 1px solid #9CCBAD; background: #fff; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 700; color: #1F5E36; cursor: pointer; text-align: left; }
.tl-stock button small { display: block; font-weight: 500; font-size: 12px; color: #4b4e51; }
.tl-stock button.on { background: #10883F; color: #fff; border-color: #10883F; }
.tl-stock button.on small { color: #E3F4EA; }
.tl-gt { margin-top: 12px; padding-top: 12px; border-top: 1px solid #3A3B3F; font-size: 13px; color: #D9D5CB; }
.tl-gt > b { color: #fff; font-size: 14px; }
.tl-gt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.tl-gt-grid label { display: grid; gap: 4px; font-size: 12px; color: #B9B5AB; }
.tl-gt-grid label span { display: flex; align-items: center; gap: 4px; color: #B9B5AB; }
.tl-gt-grid input, .tl-gt-grid select { width: 100%; min-height: 36px; background: #1F2022; color: #fff; border: 1px solid #45464A; border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 16px; }
#gtOut { margin: 10px 0 0; color: #F4F2EC; line-height: 1.5; }

/* =========================================================
   Tahap 1 premium (design-system-bekasdapuran):
   semua yang disentuh minimal 44px, teks minimal 12px.
   Hanya berlaku di halaman /app/ (apps.css tidak dimuat halaman lain).
   ========================================================= */
:root { --ds-hit: 44px; --ds-dur-1: 120ms; --ds-dur-2: 220ms; --ds-ease: cubic-bezier(.2,.8,.2,1); }
.tl-chip, .tl-seg3 button, .tl-seg-ctl button, .tl-saved-item button, .tl-ing-done, .tl-guide-x,
.tl-plan-bar button, .tl-stock button, .tl-resume a, .tl-btn, .tl-cmp-sel select { min-height: var(--ds-hit); }
.tl-seg-ctl button { padding: 0 14px; }
.tl-li-tog { width: var(--ds-hit); height: var(--ds-hit); }
.tl-li-dim input, .tl-gt-grid input, .tl-gt-grid select { min-height: var(--ds-hit); }
.tl-qty button { width: var(--ds-hit); }
.tl-li-name { min-height: var(--ds-hit); display: flex; flex-direction: column; justify-content: center; }
.tl-nav .tl-navlink { min-height: var(--ds-hit); display: inline-flex; align-items: center; }
.tl-nav .logo { display: inline-block; line-height: var(--ds-hit); }
.tl-crumb a { display: inline-block; padding: 14px 0; margin: -14px 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--ds-hit); }
details.tl-level > summary { min-height: var(--ds-hit); display: flex; align-items: center; }
details.tl-level > summary .tl-level-h { flex: 1; margin: 0; }
details.tl-cap > summary, details.tl-tech > summary { min-height: var(--ds-hit); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.tl-tech > summary::after { float: none; }
.tl-info { width: 24px; height: 24px; position: relative; }
.tl-info::after { content: ""; position: absolute; inset: -10px; }
/* fokus keyboard yang jelas */
.tl-main :focus-visible, .tl-nav :focus-visible, .tl-head :focus-visible, .tl-edu :focus-visible, .tl-dock:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.tl-result :focus-visible { outline-color: #E9B44C; }
/* umpan balik tekan yang instan */
.tl-btn, .tl-chip, .tl-seg3 button, .tl-seg-ctl button, .tl-concept, .tl-li-tog, .tl-qty button, .tl-plan-bar button, .tl-stock button, .tl-import button {
  transition: transform var(--ds-dur-1) var(--ds-ease), background-color var(--ds-dur-2) var(--ds-ease), border-color var(--ds-dur-2) var(--ds-ease), color var(--ds-dur-2) var(--ds-ease);
}
.tl-btn:active, .tl-chip:active, .tl-seg3 button:active, .tl-seg-ctl button:active, .tl-concept:active, .tl-li-tog:active, .tl-qty button:active, .tl-plan-bar button:active, .tl-stock button:active, .tl-import button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .tl-btn, .tl-chip, .tl-seg3 button, .tl-seg-ctl button, .tl-concept, .tl-li-tog, .tl-qty button, .tl-plan-bar button, .tl-stock button, .tl-import button { transition: none; }
  .tl-btn:active, .tl-chip:active, .tl-seg3 button:active, .tl-seg-ctl button:active, .tl-concept:active, .tl-li-tog:active, .tl-qty button:active, .tl-plan-bar button:active, .tl-stock button:active, .tl-import button:active { transform: none; }
}
/* toast dengan tombol Batalkan */
.tl-toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; white-space: normal; max-width: calc(100vw - 32px); }
.tl-toast-act { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: #F4F2EC; color: #1F2022; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; flex: none; }
/* Denah: penanda tujuan, peringatan saat menggeser, layar penuh */
.tl-plan { position: relative; }
.tl-plan svg line.tl-drop { stroke: #C9362B; stroke-width: 3; stroke-linecap: round; }
.tl-plan svg .tl-drag.dragging rect, .tl-fs svg .tl-drag.dragging rect { filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.tl-fs svg line.tl-drop { stroke: #C9362B; stroke-width: 3; stroke-linecap: round; }
.tl-drag-warn { position: absolute; left: 8px; right: 8px; top: 8px; background: #FFF6DE; color: #6B4500; border: 1px solid #F1DDA4; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.12); pointer-events: none; z-index: 2; }
.tl-plan-bar button[disabled] { opacity: .45; cursor: default; }
body.tl-fs-on { overflow: hidden; }
.tl-fs { position: fixed; inset: 0; z-index: 95; background: #1F2022; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.tl-fs-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px; color: #F4F2EC; }
.tl-fs-bar b { font-size: 14px; font-weight: 700; min-width: 0; }
.tl-fs-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-fs-tools button { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid #45464A; background: #2B2C2F; color: #F4F2EC; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.tl-fs-tools button[disabled] { opacity: .4; cursor: default; }
.tl-fs-tools button.close { background: #F4F2EC; color: #1F2022; border-color: #F4F2EC; }
.tl-fs-tools #fsZoom { min-width: 48px; text-align: center; font-size: 13px; color: #B9B5AB; font-variant-numeric: tabular-nums; }
.tl-fs-stage { position: relative; flex: 1; overflow: hidden; background: #fff; margin: 0 8px; border-radius: 12px; touch-action: none; cursor: grab; }
.tl-fs-canvas { transform-origin: 0 0; will-change: transform; padding: 8px; }
.tl-fs-canvas svg { display: block; width: 100%; height: auto; }
.tl-fs-canvas svg .tl-drag { cursor: grab; touch-action: none; }
.tl-fs-hint { margin: 8px 12px 10px; font-size: 12px; color: #B9B5AB; text-align: center; }
@media (min-width: 900px) { .tl-fs-canvas { max-width: 1100px; margin: 0 auto; } }
.tl-next { min-height: var(--ds-hit); display: flex; align-items: center; margin-top: 8px; }
.tl-dock { min-height: 52px; }
@media (max-width: 520px) { .tl-cost .tl-field:first-child input { min-height: var(--ds-hit); } }
.tl-slider input[type=range] { height: var(--ds-hit); }
.tl-card details:not(.tl-level):not(.tl-cap) > summary { padding: 11px 0; }
.tl-hint a, .tl-panel a, .tl-fine a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.tl-qty { height: 46px; }

/* =========================================================
   Design system Bekas Dapuran — token resmi (lihat skill design-system-bekasdapuran
   dan katalog di /admin/design-system/). Komponen baru WAJIB memakai token ini.
   ========================================================= */
:root {
  /* warna dasar (diambil dari /css/app.css) */
  --ds-bg: var(--bg); --ds-surface: #fff; --ds-surface-2: #FCFBF9; --ds-text: var(--text); --ds-text-2: var(--stainless);
  --ds-line: var(--border); --ds-line-strong: #D5D2CB; --ds-brand: var(--brand-red); --ds-wa: var(--wa-green);
  --ds-dark: #1F2022; --ds-dark-2: #2B2C2F; --ds-dark-text: #F4F2EC; --ds-dark-text-2: #B9B5AB; --ds-gold: #E9B44C;
  /* skala huruf: 12 · 13 · 14 · 15 · 17 · 22 · 27/34 (input selalu 16) */
  --ds-t-xs: 12px; --ds-t-sm: 13px; --ds-t-md: 14px; --ds-t-base: 15px; --ds-t-lg: 17px; --ds-t-xl: 22px; --ds-t-2xl: 27px; --ds-t-input: 16px;
  /* jarak kelipatan 4 */
  --ds-s1: 4px; --ds-s2: 8px; --ds-s3: 12px; --ds-s4: 16px; --ds-s5: 20px; --ds-s6: 24px; --ds-s8: 32px; --ds-s12: 48px;
  /* radius */
  --ds-r-sm: 8px; --ds-r-md: 12px; --ds-r-lg: 14px; --ds-r-pill: 999px;
  /* bayangan & gerak */
  --ds-shadow: var(--shadow); --ds-dur-3: 380ms;
}
.tl-impact { background: #F6F4EF; margin: 0 0 12px; color: var(--text); }

/* =========================================================
   Mode gelap — aktif bila <html class="dark"> (diatur ui.js: Otomatis/Terang/Gelap).
   Denah & ilustrasi tetap di "kertas" terang supaya mudah dibaca.
   ========================================================= */
html.dark {
  color-scheme: dark;
  --bg: #141517; --text: #ECEAE4; --stainless: #A8A49B; --border: #33353A; --soft-gray: #2A2C30; --brand-red: #F0857A;
  --shadow: 0 4px 18px rgba(0, 0, 0, .35);
  --ds-surface: #1D1E21; --ds-surface-2: #222327; --ds-line-strong: #45474D;
}
html.dark body { background: var(--bg); color: var(--text); }
html.dark .tl-nav { background: rgba(20, 21, 23, .94); }
html.dark .tl-nav .logo { color: var(--text); }
html.dark .tl-card, html.dark .tl-cta, html.dark .tl-step, html.dark .tl-eco, html.dark .tl-edu-card, html.dark .tl-guide-body, html.dark .tl-guide-bar,
html.dark .tl-resume a, html.dark .tl-li, html.dark .tl-kit, html.dark .tl-saved-item, html.dark .tl-ing.mini, html.dark .tl-trust .dot { background: var(--ds-surface); border-color: var(--border); color: var(--text); }
html.dark .tl-result { background: #26272B; border-color: #33353A; }
html.dark .tl-li.off, html.dark .tl-kit.st-nanti, html.dark .tl-ing, html.dark .tl-flow-step > button, html.dark details.tl-cap, html.dark .tl-legbox, html.dark .tl-tipbox, html.dark .tl-import button { background: var(--ds-surface-2); border-color: var(--border); color: var(--text); }
html.dark .tl-kit.st-punya { background: #18261D; }
html.dark .tl-flow-step.next > button { background: var(--ds-surface); border-color: var(--text); }
html.dark .tl-ing-sum, html.dark .tl-ing-sum:hover { background: transparent; color: var(--text); }
html.dark .tl-field input, html.dark .tl-field select, html.dark .tl-li-dim input, html.dark .tl-li-ctl select, html.dark .tl-saved-item button,
html.dark .tl-del, html.dark .tl-qty, html.dark .tl-qty button, html.dark .tl-btn, html.dark .tl-chip, html.dark .tl-concept, html.dark .tl-guide-x, html.dark .tl-li-tog {
  background-color: #141517; border-color: var(--ds-line-strong); color: var(--text);
}
html.dark .tl-field label, html.dark .tl-label { color: #CFCBC2; }
html.dark .tl-btn.dark, html.dark .tl-chip.on, html.dark .tl-concept.on, html.dark .tl-li:not(.off) .tl-li-tog, html.dark .tl-ing-done,
html.dark .tl-step .num, html.dark .tl-flow-n, html.dark .tl-guide-ic, html.dark .tl-seg3 button.on[data-st="beli"] { background: #ECEAE4; border-color: #ECEAE4; color: #141517; }
html.dark .tl-concept.on span { color: #4b4e51; }
html.dark .tl-btn.ghost { background: transparent; color: var(--stainless); }
html.dark .tl-seg3 button.on { background: #3A3C41; color: #fff; box-shadow: none; }
html.dark .tl-step.soon, html.dark .tl-app.soon { background: var(--ds-surface-2); }
html.dark .tl-step .meta, html.dark .tl-hero .eyebrow, html.dark .tl-app .st.live { background: #183626; color: #7EE0A2; }
html.dark .tl-flow-step.done .tl-flow-st, html.dark .tl-trust .dot { color: #7EE0A2; }
html.dark .tl-warnline { background: #2E2614; border-color: #5A4A1E; color: #F2CF7A; }
html.dark .tl-stock { background: #15261B; border-color: #2C4D37; color: #9FE0B5; }
html.dark .tl-stock button { background: #141517; border-color: #2C4D37; color: #9FE0B5; }
html.dark .tl-stock button small { color: #A8A49B; }
html.dark .tl-impact { background: #2A2C30; }
html.dark .tl-toast { background: #ECEAE4; color: #141517; }
html.dark .tl-toast-act { background: #141517; color: #ECEAE4; }
html.dark .tl-dock { background: #26272B; border-top: 1px solid #33353A; }
html.dark .tl-plan { box-shadow: 0 0 0 1px #33353A; }
html.dark .tl-edu-rules, html.dark .tl-edu-card p { color: #CFCBC2; }
html.dark .tl-concept span, html.dark .tl-kit-note, html.dark .tl-li-note { color: var(--stainless); }
html.dark .tl-tip { background: #ECEAE4; color: #141517; }
html.dark .tl-main :focus-visible, html.dark .tl-nav :focus-visible, html.dark .tl-head :focus-visible, html.dark .tl-edu :focus-visible { outline-color: #F0857A; }
html.dark .tl-drag-warn { background: #2E2614; color: #F2CF7A; border-color: #5A4A1E; }
/* tombol tema */
.tl-theme { min-width: var(--ds-hit); min-height: var(--ds-hit); border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tl-nav .container > div.tl-nav-r { display: flex; align-items: center; gap: 4px; }
@media print { html.dark { color-scheme: light; } }
@media (max-width: 540px) {
  .tl-nav .container { padding: 0 12px; gap: 6px; }
  .tl-nav .logo { font-size: 15.5px; }
  .tl-nav .tl-navlink { font-size: 12.5px; padding: 6px 2px; }
  .tl-theme { padding: 0 8px; min-width: 36px; min-height: 36px; }
  .tl-theme-l { display: none; }
  .tl-nav .container > div.tl-nav-r { gap: 6px; }
}
/* ---- PWA Android Install Components ---- */
.tl-install {
  margin-top: 18px;
}
.tl-install-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ds-surface, #ffffff);
  border: 1.5px solid var(--border, #E8E5DF);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.tl-install-card:hover {
  border-color: #0F6E56;
  box-shadow: 0 6px 22px rgba(15, 110, 86, 0.1);
}
.tl-install-icon {
  flex-shrink: 0;
}
.tl-install-icon img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.tl-install-body {
  flex: 1;
  min-width: 0;
}
.tl-install-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.tl-install-head b {
  font-size: 15px;
  color: var(--text, #1E1F21);
}
.tl-install-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #0F6E56;
}
.tl-install-body p {
  font-size: 13px;
  color: var(--stainless, #5A5C60);
  margin: 0 0 12px;
  line-height: 1.45;
}
.tl-install-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-btn-ghost {
  background: transparent;
  border: 1px solid var(--border, #E8E5DF);
  color: var(--text, #1E1F21);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tl-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #C5C2BA;
}

/* Nav Install Button */
.tl-nav-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: #0F6E56;
  color: #ffffff;
  border: 1px solid #0F6E56;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 110, 86, 0.2);
}
.tl-nav-install:hover {
  background: #0B5341;
  border-color: #0B5341;
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .tl-nav-install .txt { display: none; }
  .tl-nav-install { padding: 6px 9px; }
  .tl-install-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Modal Overlay & Card */
.tl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.tl-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.tl-modal-card {
  background: var(--ds-surface, #ffffff);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #E8E5DF);
  overflow: hidden;
  animation: tl-fadein 0.24s ease both;
}
.tl-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #E8E5DF);
}
.tl-modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--stainless, #888);
  padding: 0 4px;
}
.tl-modal-close:hover {
  color: var(--text, #1E1F21);
}
.tl-modal-body {
  padding: 18px 20px;
}
.tl-guide-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border, #E8E5DF);
  border-radius: 12px;
  padding: 12px 14px;
}
.tl-guide-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.tl-guide-tag.android {
  background: #E8F5E9;
  color: #2E7D32;
}
.tl-guide-tag.ios {
  background: #E3F2FD;
  color: #1565C0;
}
.tl-guide-item ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text, #1E1F21);
}
.tl-modal-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border, #E8E5DF);
}

/* Dark mode for PWA install components */
html.dark .tl-install-card,
html.dark .tl-modal-card {
  background: var(--ds-surface, #26272B);
  border-color: var(--border, #33353A);
}
html.dark .tl-install-head b { color: #ffffff; }
html.dark .tl-install-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}
html.dark .tl-install-body p { color: #A8A49B; }
html.dark .tl-btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  color: #E4E1DA;
}
html.dark .tl-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
html.dark .tl-nav-install {
  background: #10B981;
  border-color: #10B981;
  color: #ffffff;
}
html.dark .tl-guide-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark .tl-guide-item ol {
  color: #E4E1DA;
}
html.dark .tl-modal-head,
html.dark .tl-modal-foot {
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark .tl-modal-close {
  color: #A8A49B;
}
html.dark .tl-modal-close:hover {
  color: #ffffff;
}
.tl-stock button.has-foto { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; }
.tl-stock button img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: #E3F4EA; }
html.dark footer { background: #0E0F10; }
html.dark .tl-import .ic, html.dark .tl-app .ic { background: #3A1F1C; color: #F0857A; }
html.dark .tl-stat.accent { background: #ECEAE4; color: #141517; }
html.dark .tl-stat.accent .k, html.dark .tl-stat.accent .s { color: #4b4e51; }
.tl-badge.bad { background: #C2392E; }
html.dark .tl-meter-scale { color: #A8A49B; }

/* ---------- Layout dapur v5: tiang, pola U, ruang buka pintu, 3D, bandingkan skenario ---------- */
.tl-obs { background: #F6F4EF; border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.tl-obs-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 44px; gap: 8px; }
.tl-obs-top select { min-height: 44px; padding: 6px 10px; font: inherit; font-size: 15px; color: var(--text); border: 1px solid #D5D2CB; border-radius: var(--radius-sm); background: #fff; min-width: 0; }
.tl-obs-del { min-height: 44px; border: 1px solid #D5D2CB; border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 20px; line-height: 1; color: var(--stainless); cursor: pointer; }
.tl-obs-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tl-obs-num label { display: grid; gap: 4px; font-size: 13px; color: var(--stainless); font-weight: 600; min-width: 0; }
.tl-obs-num .tl-affix input { min-width: 0; }
.tl-plan-legend i.dr { border: 1.2px dashed #8fb8ea; background: transparent; border-radius: 50% 0 0 0; }
.tl-plan-legend i.ob { background: repeating-linear-gradient(45deg, #D6D2C8 0 3px, #6F7275 3px 4.5px); border-color: #6F7275; }
.tl-scen { padding: 8px 0 32px; }
.tl-scen h2 { font-size: 22px; margin: 6px 0 6px; }
.tl-scen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 14px; }
.tl-scen-card { display: grid; gap: 10px; align-content: start; padding: 14px; }
.tl-scen-card.cur { border-style: dashed; }
.tl-scen-h b { display: block; font-size: 17px; }
.tl-scen-h span { display: block; font-size: 13px; color: var(--stainless); margin-top: 2px; }
.tl-scen-plan { border: 1px solid var(--border); margin: 0; }
.tl-scen-m { margin: 0; display: grid; gap: 0; }
.tl-scen-m div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.tl-scen-m dt { color: var(--stainless); }
.tl-scen-m dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tl-scen-m dd em { font-style: normal; color: #B3261E; }
.tl-scen-m .tl-badge { margin: 0 0 0 4px; }
.tl-scen-card .tl-btnrow { margin-top: 2px; }
html.dark .tl-obs { background: var(--ds-surface-2); border-color: var(--border); }
html.dark .tl-obs-top select, html.dark .tl-obs-del { background: var(--ds-surface); color: var(--text); border-color: var(--ds-line-strong); }
html.dark .tl-scen-m dd em { color: #FF9D94; }
@media print { .tl-scen { display: none; } }

/* ---- Social proof bar ---- */
.tl-social-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 14px; color: var(--stainless); }
.tl-social-proof b { color: var(--text); font-weight: 700; }
.tl-sp-dot { color: var(--border); font-size: 18px; line-height: 1; }

/* ---- Smart CTA premium ---- */
.tl-cta-icon { font-size: 32px; margin-bottom: 10px; }
.tl-cta { transition: none; }
.tl-cta h2 { transition: color 0.3s; }

/* ---- Result card entry animation ---- */
@keyframes tl-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tl-result { animation: tl-fadein 0.35s ease both; }
@media (prefers-reduced-motion: reduce) { .tl-result { animation: none; } }

/* ---- 4D Kitchen Workflow Flow Engine ---- */
@keyframes tlFlowDash {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}
@keyframes tlPulseSlow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}
.tl-4d-flow {
  stroke: #10B981;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 6;
  animation: tlFlowDash 1s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.45));
}
.tl-4d-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: tlPulseSlow 1.6s ease-in-out infinite;
}
.tl-4d-node {
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.tl-4d-node:hover {
  filter: brightness(1.2);
}
.tl-4d-node.is-focused {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
}
@media (prefers-reduced-motion: reduce) {
  .tl-4d-flow { animation: none; }
  .tl-4d-pulse { animation: none; }
  .tl-flame { animation: none; }
  .tl-steam { animation: none; }
  .tl-camera-rig { transition: none; }
}

/* ---- Kitchen Camera Studio & Animated Crew Simulation ---- */
.tl-cam-studio {
  background: var(--ds-surface, #ffffff);
  border: 1.5px solid var(--border, #E8E5DF);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.tl-cam-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tl-cam-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--stainless, #686C6F);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.tl-cam-btn, .tl-cam-pill {
  appearance: none;
  border: 1px solid var(--border, #E8E5DF);
  background: var(--bg-alt, #F8F9FA);
  color: var(--text, #202124);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.tl-cam-pill {
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
}
.tl-cam-btn:hover, .tl-cam-pill:hover {
  background: #F1F3F4;
  border-color: #10B981;
}
.tl-cam-btn.on, .tl-cam-pill.on {
  background: #10B981;
  color: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}
.tl-cam-play {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #1E293B;
  font-weight: 700;
  padding: 7px 14px;
}
.tl-cam-play:hover {
  background: #1E293B;
}
.tl-cam-play.is-playing {
  background: #EF4444;
  border-color: #DC2626;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
  animation: tlPulsePlay 1.6s ease-in-out infinite;
}
@keyframes tlPulsePlay {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Camera Rig Hardware-Accelerated Transition */
.tl-camera-rig {
  transform-origin: 0 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Live Kitchen Crew HUD Card */
.tl-crew-hud {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0 14px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  animation: tl-fadein 0.3s ease both;
}
.tl-crew-hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tl-crew-hud-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-crew-hud-step {
  background: #10B981;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tl-crew-hud-role {
  font-size: 12.5px;
  font-weight: 700;
  color: #93C5FD;
}
.tl-crew-hud-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-hud-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s ease;
}
.tl-hud-btn:hover {
  background: rgba(16, 185, 129, 0.4);
  border-color: #10B981;
}
.tl-hud-btn.tl-hud-play.is-on {
  background: #EF4444;
  border-color: #DC2626;
}
.tl-hud-indicator {
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
  padding: 0 4px;
}
.tl-crew-hud-title {
  font-size: 15px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 4px;
}
.tl-crew-hud-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #E2E8F0;
  margin-bottom: 10px;
}
.tl-crew-hud-tip {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #A7F3D0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tl-hud-tip-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* Walkthrough Tour Inspector Card */
.tl-walk-hud {
  border-color: rgba(245, 158, 11, 0.5) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.99) 100%) !important;
}
.tl-walk-item-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0 10px;
}
.tl-walk-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #FFFFFF;
  margin-bottom: 5px;
}
.tl-walk-item-dim {
  font-size: 11.5px;
  font-weight: 700;
  color: #FDE047;
  font-variant-numeric: tabular-nums;
}
.tl-walk-item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 11px;
  color: #E2E8F0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5px;
}
.tl-walk-item-grid small {
  display: block;
  color: #94A3B8;
  font-size: 9.5px;
}
.tl-walk-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.tl-walk-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #E2E8F0;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tl-walk-pill:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10B981;
}
.tl-walk-pill.on {
  background: #0F6E56;
  border-color: #10B981;
  color: #FFFFFF;
  font-weight: 800;
}
.tl-btn-walk.on {
  animation: tl-pulse 2s infinite;
}

/* Animations for Cooking Flame, Steam, Water, and Sparkle */
@keyframes tlFlameFlicker {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.95; }
  25% { transform: scale(1.18, 0.88) translateY(-1px); opacity: 1; }
  50% { transform: scale(0.92, 1.15) translateY(-2px); opacity: 0.9; }
  75% { transform: scale(1.14, 1.05) translateY(-1px); opacity: 1; }
}
.tl-flame {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: tlFlameFlicker 0.6s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #F59E0B);
  pointer-events: none;
}

@keyframes tlSteamRise {
  0% { transform: translateY(0) scale(0.85); opacity: 0.8; }
  50% { transform: translateY(-7px) scale(1.12); opacity: 0.55; }
  100% { transform: translateY(-14px) scale(1.35); opacity: 0; }
}
.tl-steam {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: tlSteamRise 1.8s ease-out infinite;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
  pointer-events: none;
}

@keyframes tlWaterRipple {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.tl-water-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: tlWaterRipple 1.4s ease-out infinite;
  pointer-events: none;
}

@keyframes tlSparkle {
  0%, 100% { transform: scale(0.65) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.25) rotate(90deg); opacity: 1; }
}
.tl-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: tlSparkle 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #FDE047);
  pointer-events: none;
}

@keyframes tlCrewBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
.tl-crew-avatar {
  transform-box: fill-box;
  transform-origin: center;
  animation: tlCrewBob 2s ease-in-out infinite;
  cursor: pointer;
}

/* Dark mode overrides for HUD & Camera Studio */
html.dark .tl-cam-studio {
  background: #18191C;
  border-color: #2F3136;
}
html.dark .tl-cam-btn, html.dark .tl-cam-pill {
  background: #202225;
  border-color: #2F3136;
  color: #ECEFF4;
}
html.dark .tl-cam-btn:hover, html.dark .tl-cam-pill:hover {
  background: #2F3136;
  border-color: #10B981;
}
html.dark .tl-cam-btn.on, html.dark .tl-cam-pill.on {
  background: #10B981;
  color: #FFFFFF;
  border-color: #059669;
}

/* ---- Kitchen Health & Ergonomics Score (Skor Kelayakan Dapur 0–100) ---- */
.tl-score-card {
  background: var(--ds-surface, #ffffff);
  border: 1.5px solid var(--border, #E8E5DF);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 16px 0 14px;
  display: grid;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tl-score-card.ok { border-color: #10B981; }
.tl-score-card.warn { border-color: #F59E0B; }
.tl-score-card.bad { border-color: #EF4444; }

.tl-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tl-score-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tl-score-gauge {
  position: relative;
  width: 92px;
  height: 92px;
  flex: none;
}
.tl-score-gauge svg {
  transform: rotate(-90deg);
  width: 92px;
  height: 92px;
}
.tl-score-gauge-bg {
  fill: none;
  stroke: var(--ds-surface-2, #EFECE6);
  stroke-width: 8;
}
.tl-score-gauge-val {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}
.tl-score-gauge-val.ok { stroke: #10B981; }
.tl-score-gauge-val.warn { stroke: #F59E0B; }
.tl-score-gauge-val.bad { stroke: #EF4444; }

.tl-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tl-score-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text, #1E1F21);
}
.tl-score-den {
  font-size: 11px;
  font-weight: 600;
  color: var(--stainless, #75777A);
  margin-top: 2px;
}

.tl-score-info {
  display: grid;
  gap: 4px;
}
.tl-score-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stainless, #6E7174);
}
.tl-score-grade {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #1A1C1E);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-score-stars {
  color: #F59E0B;
  font-size: 15px;
  letter-spacing: 1px;
}
.tl-score-desc {
  font-size: 13px;
  color: var(--stainless, #595B5E);
  line-height: 1.4;
  margin: 0;
}

/* 3 Pillars Breakdown */
.tl-score-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  background: var(--ds-surface-2, #F8F7F4);
  border-radius: 12px;
  padding: 12px 14px;
}
.tl-score-pillar {
  display: grid;
  gap: 6px;
}
.tl-score-phead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
}
.tl-score-phead b {
  font-weight: 600;
  color: var(--text, #1E1F21);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tl-score-phead span {
  font-size: 12px;
  font-weight: 700;
  color: var(--stainless, #6E7174);
  font-variant-numeric: tabular-nums;
}
.tl-score-psub {
  font-size: 11px;
  color: var(--stainless, #8C8E91);
}
.tl-score-pbar {
  height: 6px;
  background: #E5E2DA;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.tl-score-pfill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}
.tl-score-pfill.ok { background: #10B981; }
.tl-score-pfill.warn { background: #F59E0B; }
.tl-score-pfill.bad { background: #EF4444; }

/* Tips list */
.tl-score-tips {
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--border, #E4E1D9);
  padding-top: 12px;
}
.tl-score-tips-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #1E1F21);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-score-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text, #2D2F32);
  background: var(--ds-surface, #fff);
  border: 1px solid var(--border, #E6E3DB);
  padding: 8px 12px;
  border-radius: 8px;
}
.tl-score-tip-pts {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E8F5E9;
  color: #1B5E20;
}
.tl-score-perfect {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  font-size: 13px;
  color: #065F46;
  font-weight: 500;
}
.tl-dock-score-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #E9B44C;
}

/* Dark mode overrides */
html.dark .tl-score-card {
  background: var(--ds-surface, #1A1C1E);
  border-color: var(--border, #2E3033);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
html.dark .tl-score-gauge-bg {
  stroke: #2A2D30;
}
html.dark .tl-score-breakdown {
  background: var(--ds-surface-2, #141517);
}
html.dark .tl-score-pbar {
  background: #2D3033;
}
html.dark .tl-score-tip-item {
  background: var(--ds-surface-2, #141517);
  border-color: var(--border, #2E3033);
  color: #E2E0D8;
}
html.dark .tl-score-tip-pts {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}
html.dark .tl-score-perfect {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

/* Auto-Optimize CTA */
.tl-score-opt-bar {
  margin-top: 4px;
}
.tl-score-opt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0F6E56 0%, #10B981 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}
.tl-score-opt-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.45);
}
.tl-score-opt-btn:active {
  transform: translateY(0);
}
.tl-score-opt-btn small {
  font-weight: 400;
  opacity: 0.9;
  font-size: 12px;
}
.tl-plan-bar button.tl-plan-opt {
  background: #0F6E56;
  color: #fff;
  border-color: #0F6E56;
  font-weight: 700;
}

/* ---- Rush Hour & Bottleneck Simulator ---- */
.tl-rush-card {
  background: var(--ds-surface, #ffffff);
  border: 1.5px solid var(--border, #E8E5DF);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 14px 0;
  display: grid;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.tl-rush-card.bad { border-color: rgba(239, 68, 68, 0.5); }
.tl-rush-card.warn { border-color: rgba(245, 158, 11, 0.5); }
.tl-rush-card.ok { border-color: rgba(16, 185, 129, 0.4); }

.tl-rush-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tl-rush-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-rush-title span {
  font-size: 26px;
}
.tl-rush-title b {
  display: block;
  font-size: 16px;
  color: var(--text, #1E1F21);
}
.tl-rush-title .sub {
  font-size: 13px;
  color: var(--stainless, #6E7174);
  margin-top: 2px;
}
.tl-rush-ctrl {
  display: grid;
  gap: 4px;
  min-width: 170px;
}
.tl-rush-ctrl label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1E1F21);
  display: flex;
  justify-content: space-between;
}
.tl-rush-ctrl label b {
  color: var(--brand-red, #B3261E);
  font-variant-numeric: tabular-nums;
}
.tl-rush-ctrl input[type="range"] {
  width: 100%;
  accent-color: var(--brand-red, #B3261E);
  cursor: pointer;
}

.tl-rush-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}
.tl-rush-station {
  background: var(--ds-surface-2, #F8F7F4);
  border: 1px solid var(--border, #E4E1D9);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}
.tl-rush-station.bad {
  border-color: #EF4444;
  background: #FEF2F2;
}
.tl-rush-station.warn {
  border-color: #F59E0B;
  background: #FFFBEB;
}
.tl-rush-shead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.tl-rush-shead b {
  color: var(--text, #1E1F21);
}
.tl-rush-shead small {
  display: block;
  font-size: 11px;
  color: var(--stainless, #75777A);
  font-weight: 400;
}
.tl-rush-sutil {
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.tl-rush-sutil.bad { color: #DC2626; }
.tl-rush-sutil.warn { color: #D97706; }
.tl-rush-sutil.ok { color: #059669; }

.tl-rush-pbar {
  height: 6px;
  background: #E5E2DA;
  border-radius: 99px;
  overflow: hidden;
}
.tl-rush-pfill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease, background-color 0.3s;
}
.tl-rush-pfill.ok { background: #10B981; }
.tl-rush-pfill.warn { background: #F59E0B; }
.tl-rush-pfill.bad { background: #EF4444; }

.tl-rush-sfoot {
  font-size: 11px;
  color: var(--stainless, #75777A);
}

.tl-rush-advice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.tl-rush-advice.ok {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.tl-rush-advice.warn {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
.tl-rush-advice.bad {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.tl-rush-advice .ic {
  font-weight: 700;
  font-size: 15px;
}

html.dark .tl-rush-card {
  background: var(--ds-surface, #1A1C1E);
  border-color: var(--border, #2E3033);
}
html.dark .tl-rush-station {
  background: var(--ds-surface-2, #141517);
  border-color: var(--border, #2E3033);
}
html.dark .tl-rush-station.bad {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}
html.dark .tl-rush-station.warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}
html.dark .tl-rush-pbar {
  background: #2D3033;
}
html.dark .tl-rush-advice.ok {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}
html.dark .tl-rush-advice.warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #FCD34D;
}
html.dark .tl-rush-advice.bad {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

/* ---- Multi-Dimensional Segmented Tab Bar ---- */
.tl-dim-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  margin: 14px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tl-dim-tabs::-webkit-scrollbar { display: none; }

.tl-dim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #E4E1DA;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.tl-dim-btn .ic { font-size: 14px; line-height: 1; }
.tl-dim-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.tl-dim-btn.on {
  background: #10B981;
  color: #ffffff;
  border-color: #10B981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.tl-dim-content {
  animation: tl-fadein 0.22s ease both;
  margin-top: 6px;
}

/* ---- Interactive Equipment Inspector Card ---- */
.tl-inspector-card {
  background: var(--ds-surface, #ffffff);
  border: 2px solid #0F6E56;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: 0 6px 20px rgba(15, 110, 86, 0.15);
  animation: tl-fadein 0.22s ease both;
}
.tl-insp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tl-insp-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-insp-icon {
  font-size: 22px;
  line-height: 1;
}
.tl-insp-title b {
  font-size: 14.5px;
  color: var(--text, #1E1F21);
  display: block;
}
.tl-insp-sub {
  font-size: 11.5px;
  color: var(--stainless, #666);
}
.tl-insp-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--stainless, #888);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.tl-insp-close:hover {
  color: var(--text, #1E1F21);
}
.tl-insp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.tl-insp-pill {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border, #E8E5DF);
  border-radius: 10px;
  padding: 8px 10px;
}
.tl-insp-pill .k {
  font-size: 10.5px;
  color: var(--stainless, #666);
  display: block;
  margin-bottom: 2px;
}
.tl-insp-pill b {
  font-size: 11.5px;
  color: var(--text, #1E1F21);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.tl-insp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-insp-actions .tl-btn {
  margin: 0;
  font-size: 12px;
  padding: 7px 12px;
}

/* Equipment Selection in SVG */
.tl-drag.is-selected rect,
.tl-iso-item.is-selected polygon {
  stroke: #10B981 !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.8));
}
.tl-iso-item {
  cursor: pointer;
}
.tl-iso-item:hover {
  opacity: 0.88;
}

/* Dark mode for Inspector */
html.dark .tl-inspector-card {
  background: #222428;
  border-color: #10B981;
}
html.dark .tl-insp-title b { color: #ffffff; }
html.dark .tl-insp-sub { color: #A8A49B; }
html.dark .tl-insp-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark .tl-insp-pill b { color: #E4E1DA; }
html.dark .tl-insp-pill .k { color: #8F8C82; }

@media (max-width: 520px) {
  .tl-insp-grid { grid-template-columns: 1fr; gap: 6px; }
  .tl-insp-actions { flex-direction: column; align-items: stretch; }
  .tl-insp-actions .tl-btn { width: 100%; text-align: center; justify-content: center; }
}

/* ---- 5D Card: Anggaran & Hemat Modal ---- */
.tl-5d-card {
  background: var(--ds-surface, #ffffff);
  border: 1.5px solid #0F6E56;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 14px 0;
  display: grid;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(15, 110, 86, 0.08);
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
}
.tl-5d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-5d-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tl-5d-title span { font-size: 24px; flex-shrink: 0; }
.tl-5d-title b { font-size: 15px; color: var(--text, #1E1F21); display: block; }
.tl-5d-title .sub { font-size: 12px; color: var(--stainless, #5A5C60); }
.tl-5d-badge-save {
  background: #E6F4EA;
  color: #0F6E56;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(15, 110, 86, 0.2);
  white-space: nowrap;
}
.tl-5d-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
}
.tl-5d-cell {
  background: #f8f9fa;
  border: 1px solid var(--border, #E8E5DF);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}
.tl-5d-cell.accent {
  background: #F0FDF4;
  border-color: #86EFAC;
}
.tl-5d-cell.save {
  background: #ECFDF5;
  border-color: #6EE7B7;
}
.tl-5d-cell .k {
  font-size: 11px;
  color: var(--stainless, #5A5C60);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-5d-cell .v {
  font-size: 17px;
  font-weight: 800;
  margin: 3px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-5d-cell .s {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-5d-bar-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
}
.tl-5d-bar-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: #4B5563;
  flex-wrap: wrap;
  gap: 4px;
}
.tl-5d-bar-track {
  height: 9px;
  background: #FEE2E2;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.tl-5d-bar-fill {
  height: 100%;
  background: #10B981;
  border-radius: 99px;
}
.tl-5d-hint {
  font-size: 12px;
  color: #555;
  line-height: 1.45;
}

/* ---- 6D Card: Utilitas PLN & Gas Bulanan ---- */
.tl-6d-card {
  background: var(--ds-surface, #ffffff);
  border: 1.5px solid var(--border, #E8E5DF);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 14px 0;
  display: grid;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
}
.tl-6d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tl-6d-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tl-6d-title span { font-size: 24px; flex-shrink: 0; }
.tl-6d-title b { font-size: 15px; color: var(--text, #1E1F21); display: block; }
.tl-6d-title .sub { font-size: 12px; color: var(--stainless, #5A5C60); }

.tl-6d-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  box-sizing: border-box;
  max-width: 100%;
}
.tl-6d-cell {
  background: #f8f9fa;
  border: 1px solid var(--border, #E8E5DF);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  box-sizing: border-box;
  max-width: 100%;
}
.tl-6d-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}
.tl-6d-meta {
  flex: 1;
  min-width: 0;
}
.tl-6d-meta .k {
  font-size: 11px;
  color: var(--stainless, #5A5C60);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tl-6d-meta .v {
  font-size: 15px;
  font-weight: 800;
  color: var(--text, #1E1F21);
  margin: 2px 0;
  word-break: break-word;
}
.tl-6d-meta .s {
  font-size: 12px;
  color: #666;
  word-break: break-word;
}
.tl-6d-advice {
  font-size: 12px;
  line-height: 1.5;
  color: #4B5563;
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

html.dark .tl-5d-card, html.dark .tl-6d-card {
  background: var(--ds-surface, #2A2B2D);
  border-color: rgba(255, 255, 255, 0.12);
}
html.dark .tl-5d-cell, html.dark .tl-6d-cell, html.dark .tl-5d-bar-box {
  background: #1E1F21;
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark .tl-5d-cell.accent {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}
html.dark .tl-5d-cell.save {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
}
html.dark .tl-6d-advice {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border-color: #F59E0B;
}

/* ---- Technical Kitchen Blueprint Export (Print & PDF) ---- */
.tl-blueprint-doc,
.tl-print-doc {
  display: none;
}

@media print {
  /* Sembunyikan elemen web interaktif */
  .tl-nav, .tl-head, .tl-card, .tl-scen, .tl-edu, footer, .tl-dock, .tl-btnrow, .tl-plan-bar, .tl-plan-hint, .tl-wa-big, .tl-next, .tl-score-card, .tl-rush-card, .tl-5d-card, .tl-6d-card, .tl-big, .tl-panel, .tl-break, .tl-tech, #resultBtns, #itemsCard, #roomCard, #concepts, #scaleSuggest, .tl-trust, .tl-cta, #pantryCard, #savedCard {
    display: none !important;
  }
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 9pt !important;
  }
  .tl-layout {
    display: block !important;
  }
  .tl-result {
    border: none !important;
    background: transparent !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  /* Universal High-Precision Document Print Engine */
  .tl-print-doc {
    display: block !important;
    padding: 6mm 8mm !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #111 !important;
    background: #fff !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
  }

  .tl-pd-header {
    border-bottom: 2pt solid #0F172A;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }

  .tl-pd-header > div:first-child,
  .tl-pd-header-left {
    flex: 0 1 52%;
    max-width: 54%;
    text-align: left;
  }

  .tl-pd-header > div:last-child,
  .tl-pd-header-right {
    flex: 0 1 48%;
    max-width: 48%;
    text-align: right;
  }

  .tl-pd-logo {
    font-size: 15pt;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #0F172A;
    line-height: 1.15;
  }
  .tl-pd-logo span {
    color: #B3261E;
  }

  .tl-pd-title {
    font-size: 11pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: right;
    color: #0F172A;
    line-height: 1.25;
  }

  .tl-pd-sub {
    font-size: 7.5pt;
    color: #475569;
    margin-top: 3px;
    line-height: 1.35;
  }

  .tl-pd-header > div:first-child .tl-pd-sub,
  .tl-pd-header-left .tl-pd-sub,
  .tl-pd-sub-left {
    text-align: left !important;
  }

  .tl-pd-header > div:last-child .tl-pd-sub,
  .tl-pd-header-right .tl-pd-sub,
  .tl-pd-sub-right {
    text-align: right !important;
  }

  .tl-pd-pill,
  .tl-bp-pill {
    display: inline-block;
    font-size: 6.5pt;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #F1F5F9;
    color: #0F172A;
    border: 0.75pt solid #0F172A;
    border-radius: 2px;
    padding: 1px 5px;
    vertical-align: middle;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .tl-pd-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1pt solid #222;
    margin-bottom: 10px;
    background: #fff;
  }

  .tl-pd-meta-cell {
    padding: 4px 7px;
    border-right: 1pt solid #222;
    border-bottom: 1pt solid #222;
  }
  .tl-pd-meta-cell:nth-child(4n) {
    border-right: none;
  }
  .tl-pd-meta-cell.span-2 {
    grid-column: span 2;
  }
  .tl-pd-meta-cell.span-4 {
    grid-column: span 4;
    border-right: none;
  }

  .tl-pd-meta-k {
    font-size: 6.5pt;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .tl-pd-meta-v {
    font-size: 8.5pt;
    font-weight: 700;
    color: #111;
    margin-top: 2px;
  }

  .tl-pd-section-title {
    font-size: 9pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-left: 2.5pt solid #B3261E;
    padding-left: 6px;
    margin: 10px 0 5px 0;
    color: #111;
  }

  .tl-pd-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    font-size: 8pt;
  }

  .tl-pd-table thead {
    display: table-header-group;
  }

  .tl-pd-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .tl-pd-table th {
    background: #f0f0f0 !important;
    border: 1pt solid #333;
    padding: 4px 6px;
    font-weight: 700;
    text-align: left;
    color: #111;
  }

  .tl-pd-table td {
    border: 1pt solid #333;
    padding: 3.5px 6px;
    color: #111;
  }

  .tl-pd-table .num, .tl-pd-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  .tl-pd-table .center, .tl-pd-center {
    text-align: center;
  }

  .tl-pd-total-row td {
    font-weight: 800;
    background: #fafafa !important;
    border-top: 1.5pt solid #111;
    border-bottom: 2.5pt double #111;
  }

  .tl-pd-highlight-box {
    border: 1pt solid #111;
    background: #f9f9f9 !important;
    padding: 6px 8px;
    margin-bottom: 8px;
    font-size: 7.5pt;
    display: flex;
    justify-content: space-between;
    align-items: center;
    break-inside: avoid;
  }

  .tl-pd-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    break-inside: avoid;
  }

  .tl-pd-kpi-card {
    border: 1pt solid #333;
    background: #fafafa;
    padding: 5px 7px;
  }

  .tl-pd-kpi-k {
    font-size: 7pt;
    color: #666;
    text-transform: uppercase;
  }

  .tl-pd-kpi-v {
    font-size: 10pt;
    font-weight: 800;
    color: #111;
    font-variant-numeric: tabular-nums;
  }

  .tl-pd-kpi-sub {
    font-size: 6.5pt;
    color: #555;
    margin-top: 1px;
  }

  .tl-pd-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 7pt;
    font-weight: 700;
    border-radius: 2px;
    border: 1pt solid #111;
    text-transform: uppercase;
  }
  .tl-pd-badge.good { background: #E6F4EA !important; color: #137333 !important; }
  .tl-pd-badge.warn { background: #FEF7E0 !important; color: #B06000 !important; }
  .tl-pd-badge.alert { background: #FCE8E6 !important; color: #C5221F !important; }

  .tl-pd-signatures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12mm;
    margin-top: 14px;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .tl-pd-signatures.three-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .tl-pd-sig-box {
    border: 1pt solid #333;
    padding: 6px 8px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .tl-pd-sig-head {
    font-size: 7.5pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
  }

  .tl-pd-sig-line {
    border-top: 1pt dotted #111;
    margin-top: 30px;
    padding-top: 2px;
    font-size: 6.5pt;
    display: flex;
    justify-content: space-between;
    color: #444;
  }

  .tl-pd-footer-note {
    margin-top: 8px;
    font-size: 6.5pt;
    color: #666;
    border-top: 0.5pt solid #aaa;
    padding-top: 3px;
    break-inside: avoid;
  }

  /* Tampilkan Blueprint Resmi */
  .tl-blueprint-doc {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .tl-bp-header {
    border-bottom: 2pt solid #0F172A;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    box-sizing: border-box;
  }
  .tl-bp-header > div:first-child,
  .tl-bp-header-left {
    flex: 0 1 52%;
    max-width: 54%;
    text-align: left;
    box-sizing: border-box;
  }
  .tl-bp-header > div:last-child,
  .tl-bp-header-right {
    flex: 0 1 48%;
    max-width: 48%;
    text-align: right;
    box-sizing: border-box;
  }
  .tl-bp-logo {
    font-size: 17pt;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #0F172A;
    line-height: 1.15;
  }
  .tl-bp-logo span {
    color: #B3261E;
  }
  .tl-bp-title {
    font-size: 11pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: right;
    color: #0F172A;
    line-height: 1.25;
  }
  .tl-bp-sub {
    font-size: 7.5pt;
    color: #475569;
    margin-top: 3px;
    line-height: 1.35;
  }
  .tl-bp-header > div:first-child .tl-bp-sub,
  .tl-bp-header-left .tl-bp-sub,
  .tl-bp-sub-left {
    text-align: left !important;
  }
  .tl-bp-header > div:last-child .tl-bp-sub,
  .tl-bp-header-right .tl-bp-sub,
  .tl-bp-sub-right {
    text-align: right !important;
  }

  .tl-bp-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1pt solid #000;
    margin-bottom: 12px;
    box-sizing: border-box;
  }
  .tl-bp-meta-cell {
    padding: 4px 6px;
    border-right: 1pt solid #000;
    border-bottom: 1pt solid #000;
    box-sizing: border-box;
  }
  .tl-bp-meta-cell:nth-child(4n) {
    border-right: none;
  }
  .tl-bp-meta-k {
    font-size: 7pt;
    color: #555;
    text-transform: uppercase;
  }
  .tl-bp-meta-v {
    font-size: 8.5pt;
    font-weight: 700;
  }

  .tl-bp-section-title {
    font-size: 9.5pt;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1pt solid #000;
    padding-bottom: 2px;
    margin: 10px 0 6px;
    letter-spacing: 0.04em;
    box-sizing: border-box;
  }

  .tl-bp-plan-box {
    border: 1pt solid #000;
    padding: 6px;
    text-align: center;
    background: #fff;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
  .tl-bp-plan-box svg {
    max-height: 240px;
    width: 100%;
    margin: 0 auto;
  }

  .tl-bp-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: 7.2pt !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    box-sizing: border-box !important;
  }
  .tl-bp-table thead {
    display: table-header-group !important;
  }
  .tl-bp-table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .tl-bp-table th {
    background: #f0f0f0 !important;
    border: 1pt solid #000 !important;
    padding: 3px 4px !important;
    text-align: left;
    font-weight: 700;
    font-size: 7pt !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-break: break-word !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tl-bp-table td {
    border: 1pt solid #000 !important;
    padding: 2.5px 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-break: break-word !important;
    vertical-align: middle !important;
  }

  .tl-bp-dot-line {
    display: block;
    width: 100%;
    height: 11px;
    border-bottom: 0.75pt dotted #94A3B8;
  }
  .tl-bp-price-cell {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
  }
  .tl-bp-price-cell .rp-lbl {
    font-size: 6.8pt;
    color: #475569;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1px;
    flex-shrink: 0;
  }
  .tl-bp-price-cell .price-line {
    flex: 1;
    height: 10px;
    border-bottom: 0.75pt dotted #94A3B8;
    min-width: 25px;
  }

  .tl-bp-procure-note {
    background: #F8FAFC;
    border: 1pt solid #CBD5E1;
    border-left: 3pt solid #0F6E56;
    padding: 5px 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 6.8pt;
    page-break-inside: avoid;
    break-inside: avoid;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .tl-bp-vendor-meta {
    border: 1pt solid #000;
    padding: 5px 8px;
    margin-top: 5px;
    margin-bottom: 8px;
    font-size: 7.2pt;
    background: #fff;
    page-break-inside: avoid;
    break-inside: avoid;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }
  .tl-bp-sign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6mm;
    margin-top: 10px;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .tl-bp-sign-box {
    border: 1pt solid #000;
    padding: 6px 10px;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .tl-bp-sign-head {
    font-size: 7.5pt;
    font-weight: 700;
  }
  .tl-bp-sign-line {
    border-top: 1pt dotted #000;
    margin-top: 30px;
    padding-top: 3px;
    font-size: 7pt;
    display: flex;
    justify-content: space-between;
  }
}

/* =========================================================
   HPP Ultra-Premium Mobile & Interactive Enhancements
   ========================================================= */
.tl-presets-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tl-presets-bar::-webkit-scrollbar { display: none; }
.tl-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tl-preset-chip:hover, .tl-preset-chip:active {
  border-color: #0F6E56;
  background: #F0FDF4;
  color: #0F6E56;
  transform: scale(0.97);
}
.tl-preset-chip .emoji { font-size: 15px; }

/* Stepper porsi interaktif */
.tl-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-stepper {
  display: inline-flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 3px;
}
.tl-stepper-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  user-select: none;
}
.tl-stepper-btn:active {
  transform: scale(0.9);
  background: #F1F5F9;
}
.tl-stepper input {
  width: 60px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  outline: none;
  font-variant-numeric: tabular-nums;
}
.tl-portion-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tl-portion-pill {
  padding: 6px 12px;
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.tl-portion-pill.on, .tl-portion-pill:active {
  background: #0F6E56;
  color: #FFFFFF;
  border-color: #0F6E56;
}

/* Quick add pantry carousel */
.tl-quick-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tl-quick-pills::-webkit-scrollbar { display: none; }
.tl-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.tl-quick-pill:hover, .tl-quick-pill:active {
  background: #ECFDF5;
  border-color: #0F6E56;
  color: #065F46;
  border-style: solid;
  transform: scale(0.97);
}

/* Kartu bahan modern & rapi */
.tl-ing {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-ing:focus-within {
  border-color: #0F6E56;
  box-shadow: 0 4px 16px rgba(15, 110, 86, 0.08);
}
.tl-ing-top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #F1F5F9;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}
.tl-ing-cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tl-yield-chip {
  font-size: 11px;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.3;
}

/* Target Food Cost Interactive Slider */
.tl-fc-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}
.tl-fc-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.tl-fc-slider-head b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.tl-fc-slider {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(to right, #6366F1 0%, #10B981 35%, #F59E0B 70%, #EF4444 100%);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.tl-fc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #0F6E56;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s;
}
.tl-fc-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

/* Segmented Cost Breakdown Bar */
.tl-cost-segment-bar {
  display: flex;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #E2E8F0;
  margin: 12px 0 8px;
}
.tl-cost-seg {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tl-cost-seg.seg-ing { background: #3B82F6; }
.tl-cost-seg.seg-pack { background: #F59E0B; }
.tl-cost-seg.seg-waste { background: #EF4444; }
.tl-cost-seg.seg-other { background: #8B5CF6; }
.tl-cost-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11.5px;
  margin-top: 6px;
}
.tl-cost-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94A3B8;
  font-weight: 500;
}
.tl-cost-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-cost-dot.dot-ing { background: #3B82F6; }
.tl-cost-dot.dot-pack { background: #F59E0B; }
.tl-cost-dot.dot-waste { background: #EF4444; }
.tl-cost-dot.dot-other { background: #8B5CF6; }

/* Dynamic Floating Island Bottom Bar pada Mobile */
@media (max-width: 899px) {
  .tl-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(24, 25, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 10px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .tl-dock.show {
    display: flex;
    animation: dockPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes dockPop {
    from { transform: translateY(40px) scale(0.92); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
  .tl-dock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #10B981;
  }
  .tl-dock-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: dockPulse 2s infinite;
  }
  @keyframes dockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
  }
  .tl-dock-act {
    background: #0F6E56;
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 110, 86, 0.4);
    border: none;
    cursor: pointer;
  }
  body.tl-has-dock {
    padding-bottom: 84px;
  }
}

/* Dark mode enhancements untuk HPP */
html.dark .tl-preset-chip {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}
html.dark .tl-preset-chip:hover, html.dark .tl-preset-chip:active {
  background: #064E3B;
  border-color: #10B981;
  color: #6EE7B7;
}
html.dark .tl-stepper {
  background: #141517;
  border-color: #334155;
}
html.dark .tl-stepper-btn {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}
html.dark .tl-stepper input {
  color: #F8FAFC;
}
html.dark .tl-portion-pill {
  background: #1E293B;
  color: #CBD5E1;
}
html.dark .tl-portion-pill.on {
  background: #10B981;
  color: #064E3B;
}
html.dark .tl-quick-pill {
  background: #1E293B;
  border-color: #475569;
  color: #E2E8F0;
}
html.dark .tl-quick-pill:hover {
  background: #064E3B;
  border-color: #10B981;
  color: #6EE7B7;
}
html.dark .tl-fc-slider-wrap {
  background: #1E2229;
  border-color: #334155;
}
html.dark .tl-ing {
  background: #18191C;
  border-color: #2D3139;
}
html.dark .tl-ing:focus-within {
  border-color: #10B981;
}
html.dark .tl-ing-top-badge {
  background: #26272B;
  color: #E2E8F0;
}
html.dark .tl-ing-cost-pill {
  background: #064E3B;
  color: #6EE7B7;
  border-color: #059669;
}


