



.fb-pop { --fb-star: oklch(80% 0.16 80); --fb-star-ink: oklch(62% 0.14 70);
  position: fixed; inset: auto 0 0 0; width: min(520px, 100%); max-width: 100%; max-height: min(92dvh, 720px); margin: 0 auto; padding: 0; border-width: 0; border-style: none;
  background: transparent; color: var(--x-ink); overflow: visible; }
.fb-pop::backdrop { background: var(--c-scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fb-pop__box { position: relative; display: grid; gap: 12px; max-height: inherit; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--x-card); box-shadow: 0 -14px 40px oklch(15% 0.04 260 / 0.28); --xg-c: transparent;
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% 100%, 0 100%); border-image: linear-gradient(135deg, transparent 12.73px, var(--xg-c) 12.73px, var(--xg-c) calc(12.73px + var(--xg-t)), transparent calc(12.73px + var(--xg-t))) 18 / 18px; }
@media (min-width: 640px) {
  .fb-pop { inset: 0; margin: auto; height: fit-content; }
  .fb-pop__box { padding: 18px 22px 20px; clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); border-image: linear-gradient(135deg, transparent 12.73px, var(--xg-c) 12.73px, var(--xg-c) calc(12.73px + var(--xg-t)), transparent calc(12.73px + var(--xg-t)), transparent calc(100% - 12.73px - var(--xg-t)), var(--xg-c) calc(100% - 12.73px - var(--xg-t)), var(--xg-c) calc(100% - 12.73px), transparent calc(100% - 12.73px)) 18 / 18px; }
  .fb-pop__pegang { display: none; }
}
.fb-pop__pegang { justify-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--x-line); }
.fb-pop__x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-width: 0; border-style: none; border-radius: 50%;
  background: var(--x-chip); color: var(--x-chip-ink); cursor: pointer; }
.fb-pop__x:focus-visible, .fb-pop__bintang button:focus-visible, .fb-pop__chip:focus-visible, .fb-pop__jangan:focus-visible, .fb-pop__bantu:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.fb-pop__uji { justify-self: start; margin: 0; padding: 3px 10px; background: var(--x-tag); color: var(--x-tag-ink); font-size: var(--text-xs); font-weight: 700; clip-path: var(--x-jg); }
.fb-pop__t { position: relative; margin: 0; padding: 0 52px 0 16px; color: var(--x-ink); font-family: var(--font-sport); font-style: italic; font-weight: 800;
  font-size: 1.5rem; line-height: 1.02; letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance; }
.fb-pop__t::before { content: ""; position: absolute; left: 2px; top: 0.06em; bottom: 0.1em; width: 6px; background: var(--x-lime); transform: skewX(-14deg); }
.fb-pop__k { margin: -6px 0 0 16px; color: var(--x-muted); font-size: var(--text-sm); }
.fb-pop__bintang { display: flex; justify-content: center; gap: clamp(4px, 2vw, 12px); padding: 4px 0 0; }
.fb-pop__bintang button { flex: 1 1 0; max-width: 60px; aspect-ratio: 1; min-width: 44px; padding: 4px; border-width: 0; border-style: none; background: none; color: var(--x-muted); cursor: pointer;
  border-radius: 10px; transition: transform var(--dur-short, 120ms) var(--ease-out, ease-out); }
.fb-pop__bintang .ic { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.fb-pop__bintang button.is-on { color: var(--fb-star-ink); }
.fb-pop__bintang button.is-on .ic { fill: var(--fb-star); }
.fb-pop__bintang button:active { transform: scale(0.9); }
.fb-pop__lbl { margin: -4px 0 0; min-height: 1.4em; text-align: center; font-family: var(--font-sport); font-style: italic; font-weight: 800; font-size: 1.125rem; text-transform: uppercase; color: var(--x-ink); }
.fb-pop__det { display: grid; gap: 10px; }
.fb-pop__det[hidden] { display: none; }
.fb-pop__tanya { margin: 0; font-weight: 700; font-size: var(--text-sm); color: var(--x-ink); }
.fb-pop__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-pop__chip { min-height: 40px; padding: 8px 16px; border-width: 0; border-style: none; background: var(--x-chip); color: var(--x-chip-ink); font: inherit; font-size: var(--text-sm); font-weight: 600;
  line-height: 1.2; text-align: left; cursor: pointer; clip-path: var(--x-jg); }
.fb-pop__chip[aria-pressed="true"] { background: var(--x-navy); color: var(--x-lime); }
:root[data-theme="dark"] .fb-pop__chip[aria-pressed="true"] { background: var(--x-lime); color: var(--x-lime-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fb-pop__chip[aria-pressed="true"] { background: var(--x-lime); color: var(--x-lime-ink); } }
.fb-pop__pesan { width: 100%; min-height: 76px; resize: vertical; }
.fb-pop__sisa { justify-self: end; margin-top: -6px; color: var(--x-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.fb-pop__bantu { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 8px 14px; border-width: 0; border-style: none; cursor: pointer;
  background: color-mix(in oklch, var(--c-loss) 12%, var(--x-card)); color: var(--x-ink); font: inherit; font-size: var(--text-sm); font-weight: 600; clip-path: var(--x-jg); }
.fb-pop__bantu[hidden] { display: none; }
.fb-pop__aksi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fb-pop__aksi.is-dua { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fb-pop__aksi .btn { min-height: 48px; justify-content: center; }
.fb-pop__jangan { justify-self: center; min-height: 40px; padding: 6px 12px; border-width: 0; border-style: none; background: none; color: var(--x-muted); font: inherit; font-size: var(--text-sm);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .fb-pop[open] .fb-pop__box { animation: fbNaik 340ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .fb-pop[open]::backdrop { animation: fbPudar 240ms ease-out both; }
  .fb-pop__bintang button.is-on .ic { animation: fbPop 260ms cubic-bezier(0.3, 1.6, 0.5, 1) both; }
}
@keyframes fbNaik { from { transform: translateY(40px); opacity: 0.3; } }
@keyframes fbPudar { from { opacity: 0; } }
@keyframes fbPop { 40% { transform: scale(1.18); } }

 
.fb-view { display: grid; gap: 14px; padding-bottom: 32px; }
.fb-view .set-head h1 small { display: block; color: var(--x-muted); font-size: var(--text-sm); font-weight: 600; }    
.fb-seg { width: 100%; }
.fb-seg button { gap: 6px; }
.fb-seg__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--c-loss); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; line-height: 20px; }
.fb-atas { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.fb-atas .fb-h { padding-bottom: 12px; }
.fb-atas .fb-fld { width: min(240px, 60%); }
.fb-fld { display: grid; gap: 4px; min-width: 0; color: var(--x-muted); font-size: var(--text-xs); font-weight: 700; }
.fb-fld .select { width: 100%; }
.fb-kpi .sp-stat__l { text-transform: none; letter-spacing: 0; font-size: var(--text-xs); }
.fb-dua { display: grid; gap: 14px; }
@media (min-width: 860px) { .fb-dua { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.fb-blok { display: grid; gap: 10px; min-width: 0; }
.fb-h { margin: 0; font-size: 1.125rem; }
.fb-catat { margin: 0; color: var(--x-muted); font-size: var(--text-xs); line-height: 1.4; }
.fb-bar-r { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: var(--text-sm); }
.fb-bar-r--f { grid-template-columns: minmax(96px, 128px) minmax(0, 1fr) 54px 30px; }
.fb-bar-r__l { min-width: 0; font-weight: 700; color: var(--x-ink); overflow-wrap: anywhere; }
.fb-bar-r__l em { font-style: normal; font-weight: 600; font-size: var(--text-xs); color: var(--x-muted); }
.fb-bar-r__n, .fb-bar-r__m { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.fb-bar-r__m { color: var(--x-muted); font-weight: 600; }
.fb-bar-r.is-mati .fb-bar-r__l { color: var(--x-muted); }
.fb-bar { display: block; height: 12px; background: var(--x-chip); overflow: hidden; }
.fb-bar i { display: block; height: 100%; background: var(--x-lime); }
.fb-bar i.is-tengah { background: oklch(80% 0.14 85); }
.fb-bar i.is-rendah { background: var(--c-loss); }
.fb-alasan { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-al { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: var(--text-sm); font-weight: 600; clip-path: var(--x-jg); }
.fb-al b { font-variant-numeric: tabular-nums; }
.fb-al.is-baik { background: color-mix(in oklch, var(--c-win) 14%, var(--x-card)); color: var(--x-ink); }
.fb-al.is-kurang { background: color-mix(in oklch, var(--c-loss) 13%, var(--x-card)); color: var(--x-ink); }
.fb-daftar { display: grid; gap: 12px; }
.fb-daftar__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fb-saring { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: end; }
@media (min-width: 760px) { .fb-saring { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; } }
.fb-cek { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--text-sm); font-weight: 600; color: var(--x-ink); cursor: pointer; }
.fb-cek input { width: 20px; height: 20px; accent-color: oklch(62% 0.17 135); }
.fb-list { display: grid; gap: 10px; }
.fb-item { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; background: var(--x-card); box-shadow: inset 0 0 0 1px var(--x-line); --xg-c: var(--x-line); --xg-t: 1px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); border-image: linear-gradient(45deg, transparent calc(100% - 8.49px - var(--xg-t)), var(--xg-c) calc(100% - 8.49px - var(--xg-t)), var(--xg-c) calc(100% - 8.49px), transparent calc(100% - 8.49px)) 12 / 12px; }
.fb-item.is-baru { box-shadow: inset 4px 0 0 var(--x-lime), inset 0 0 0 1px var(--x-line); --xg-c: var(--x-line); --xg-t: 1px; padding-left: 18px; }
.fb-item__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fb-item__h b { font-size: var(--text-md); color: var(--x-ink); }
.fb-item__h time { margin-left: auto; color: var(--x-muted); font-size: var(--text-xs); }
.fb-item__b { letter-spacing: 1px; font-size: 1rem; color: oklch(70% 0.15 75); }
.fb-item__b.fb-b1, .fb-item__b.fb-b2 { color: var(--c-loss); }
.fb-item__k, .fb-item__m { color: var(--x-muted); font-size: var(--text-xs); overflow-wrap: anywhere; }
.fb-item__al { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-item__al span { padding: 2px 9px; background: var(--x-chip); color: var(--x-chip-ink); font-size: var(--text-xs); font-weight: 600; clip-path: var(--x-jg); }
.fb-item__p { margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--x-ink); white-space: pre-line; overflow-wrap: anywhere; }
.fb-item__aksi { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-item__aksi:empty { display: none; }
.fb-form { display: grid; gap: 14px; }
.fb-set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; cursor: pointer; }
.fb-set__t b { display: block; font-size: var(--text-md); color: var(--x-ink); }
.fb-set__t small { display: block; margin-top: 2px; color: var(--x-muted); font-size: var(--text-xs); line-height: 1.35; }
.fb-fitur { display: grid; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--x-line); }
@media (min-width: 640px) { .fb-fitur { grid-template-columns: minmax(0, 1fr) 190px; align-items: center; } }
.fb-tiga { display: grid; gap: 10px; }
@media (min-width: 720px) { .fb-tiga { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fb-coba__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.fb-coba__r .btn { min-height: 44px; }
