/*
VOICE   praktis dan yakin, bahasa lantai gudang yang jelas untuk tim penjualan
IDEA    rak stok baja dilihat dari ujungnya: kartu produk = label stok berlubang, halaman produk = lembar spesifikasi dengan gambar teknik
PICTURE deretan ujung profil baja (H, L, C, pipa, hollow) bertanda cat; gambar penampang dengan garis ukur nyata
COLOUR  meni besi (red oxide) dominan, grafit, putih seng; kuning K3 hanya untuk fokus & kalimat yang sedang dibacakan
TYPE    Big Shoulders Display untuk nama barang & angka, Archivo untuk teks; stensil untuk merek aplikasi
LAYOUT  pita meni penuh di atas dengan pencarian besar; rak kategori; detail dua kolom yang menumpuk di ponsel
*/
@font-face { font-family: 'Big Shoulders Display'; font-weight: 700; font-display: swap; src: url(/fonts/big-shoulders-display-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url(/fonts/big-shoulders-display-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Stencil Display'; font-weight: 800; font-display: swap; src: url(/fonts/big-shoulders-stencil-display-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 400; font-display: swap; src: url(/fonts/archivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 500; font-display: swap; src: url(/fonts/archivo-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url(/fonts/archivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url(/fonts/archivo-latin-700-normal.woff2) format('woff2'); }

:root {
  --meni: #9E3B26; --meni-ink: #fff;
  --meni-deep: color-mix(in srgb, var(--meni) 72%, #000);
  --meni-soft: color-mix(in srgb, var(--meni) 10%, var(--paper));
  --meni-text: var(--meni);
  --ink: #1E2328; --ink-2: #48515A; --ink-3: #6B747D;
  --paper: #FFFFFF; --zinc: #F0F1EE; --zinc-2: #E3E5E1; --line: #D7DAD5; --grid: rgba(30, 35, 40, .055);
  --k3: #F6C343; --k3-soft: #FFF1C7;
  --ok: #1F7A4A; --warn: #A86300; --out: #7E858C;
  --f-disp: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-sten: 'Big Shoulders Stencil Display', 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-s: 6px; --r: 10px; --r-l: 16px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 6px 18px rgba(20, 24, 28, .06);
  --nav-h: 64px;
  color-scheme: light;
}
:root[data-theme=dark] {
  --ink: #ECEEEF; --ink-2: #C3C8CC; --ink-3: #959CA3;
  --paper: #1C2024; --zinc: #131619; --zinc-2: #262B30; --line: #31373D; --grid: rgba(255, 255, 255, .05);
  --meni-soft: color-mix(in srgb, var(--meni) 22%, var(--paper));
  --meni-text: color-mix(in srgb, var(--meni) 55%, #fff);
  --k3-soft: #4A3C12; --ok: #4CC184; --warn: #E9A23B; --out: #8E959C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--zinc); color: var(--ink); font: 16px/1.55 var(--f-body); overflow-x: clip; }
a { color: var(--meni-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--k3); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(4vw, 16px); }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 800; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(32px, 5vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 21px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Tombol & input ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; text-decoration: none !important; }
.btn:hover { border-color: var(--ink-3); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--meni); border-color: var(--meni); color: var(--meni-ink); }
.btn.primary:hover { background: var(--meni-deep); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--zinc-2); }
.btn.danger { color: #B42318; border-color: color-mix(in srgb, #B42318 40%, var(--line)); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 13px; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: 16px; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--meni); box-shadow: 0 0 0 3px color-mix(in srgb, var(--meni) 22%, transparent); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--meni); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Kerangka aplikasi ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
:root[data-theme=dark] .top { background: #0D0F11; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex: none; }
.brand img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.brand .mark { width: 34px; height: 34px; }
.brand b { font: 800 24px/1 var(--f-sten); letter-spacing: .02em; text-transform: uppercase; }
.topsearch { flex: 1; max-width: 560px; margin-left: auto; position: relative; }
.topsearch input { width: 100%; height: 42px; border-radius: 21px; border: 0; padding: 0 44px 0 42px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; }
.topsearch input::placeholder { color: rgba(255, 255, 255, .6); }
.topsearch input:focus { outline: none; background: #fff; color: var(--ink); }
.topsearch input:focus::placeholder { color: var(--ink-3); }
.topsearch .ico { position: absolute; left: 13px; top: 11px; width: 20px; height: 20px; opacity: .7; pointer-events: none; }
.topsearch .mic { position: absolute; right: 3px; top: 3px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.topsearch input:focus ~ .mic, .topsearch input:focus ~ .ico { color: var(--ink); }
.toplinks { display: flex; gap: 4px; align-items: center; flex: none; }
.toplinks a, .toplinks button { color: #fff; opacity: .85; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px; background: transparent; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; text-decoration: none; }
.toplinks a:hover, .toplinks button:hover, .toplinks a.on { opacity: 1; background: rgba(255, 255, 255, .12); }
.toplinks svg { width: 20px; height: 20px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--meni); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.menu { position: absolute; right: 0; top: 52px; min-width: 240px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font-size: 15px; text-decoration: none !important; }
.menu a:hover, .menu button:hover { background: var(--zinc); }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.bottomnav { display: none; }
main { min-height: calc(100vh - 64px); padding-bottom: 120px; }
@media (max-width: 760px) {
  .top .wrap { height: 56px; gap: 10px; }
  .brand b { font-size: 20px; }
  .topsearch, .toplinks .hide-m { display: none; }
  .toplinks { margin-left: auto; }
  .bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
  .bottomnav a.on { color: var(--meni-text); }
  .bottomnav svg { width: 24px; height: 24px; }
  main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* ---------- Beranda ---------- */
.band { background: var(--meni); color: var(--meni-ink); position: relative; overflow: hidden; }
.band .wrap { position: relative; z-index: 2; padding-top: clamp(28px, 5vw, 56px); padding-bottom: 150px; }
.band h1 { font-size: clamp(36px, 6vw, 64px); max-width: 15ch; }
.band .hello { font-weight: 600; opacity: .85; margin-bottom: 8px; }
.band .lead { max-width: 56ch; opacity: .9; margin: 12px 0 22px; font-size: 17px; }
.bigsearch { position: relative; max-width: 760px; }
.bigsearch input { width: 100%; height: 62px; border-radius: 14px; border: 0; padding: 0 120px 0 54px; font-size: 18px; color: var(--ink); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.bigsearch input:focus { outline: 4px solid var(--k3); }
.bigsearch .ico { position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; color: var(--ink-3); }
.bigsearch .acts { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; }
.bigsearch .acts button { height: 46px; border-radius: 10px; border: 0; cursor: pointer; }
.bigsearch .mic { width: 46px; background: var(--zinc); color: var(--ink); display: grid; place-items: center; }
.bigsearch .go { padding: 0 18px; background: var(--ink); color: #fff; font-weight: 700; }
.mic.on, .topsearch .mic.on { background: var(--k3) !important; color: #1E2328 !important; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(246, 195, 67, .35); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.band .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }
.band .chip:hover { background: rgba(255, 255, 255, .24); }
.hero-rack { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; z-index: 1; }
.hero-rack .ends { fill: color-mix(in srgb, var(--meni) 70%, #000); fill-rule: evenodd; }
.hero-rack .ends .hole { fill: var(--meni); }
.hero-rack .end { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-rack .end, .tech .dim { animation: none !important; } .mic.on { animation: none; } }
.facts { display: flex; gap: 24px; flex-wrap: wrap; margin: 18px 0 0; font-weight: 600; opacity: .92; font-size: 15px; }
.facts b { font: 800 26px/1 var(--f-disp); margin-right: 4px; }

.section { padding: clamp(24px, 4vw, 44px) 0 0; }
.sechead { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sechead p { margin: 4px 0 0; color: var(--ink-3); }

/* Rak kategori */
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; color: var(--ink); text-decoration: none !important; transition: transform .15s, border-color .15s; }
.cat:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.cat .pic { background: var(--zinc); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; }
.cat .pic svg { width: 86%; height: auto; }
.cat .pic .paint { position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px var(--paper); }
.cat .txt { padding: 12px 14px 14px; }
.cat h3 { font-size: 22px; }
.cat p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.cat .count { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }

/* ---------- Label stok (kartu produk) ---------- */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tag { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.tag:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.tag::before { content: ''; position: absolute; z-index: 2; top: 10px; left: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--zinc); border: 1px solid var(--line); }
.media { position: relative; background: var(--zinc); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.media svg { width: 88%; height: auto; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.tag .body { padding: 10px 12px 12px; display: grid; gap: 6px; align-content: start; }
.pname { font: 800 19px/1.08 var(--f-disp); letter-spacing: .01em; overflow-wrap: anywhere; }
.tag .fam { font-size: 13px; color: var(--ink-3); }
.tag .spec { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.tag .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock.ada { color: var(--ok); } .stock.menipis { color: var(--warn); } .stock.habis { color: var(--out); }
.stock.big { font-size: 16px; padding: 6px 12px; border-radius: 18px; background: color-mix(in srgb, currentColor 12%, transparent); }
.say { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.say:hover { background: var(--k3); color: #1E2328; border-color: var(--k3); }
.say svg { width: 18px; height: 18px; }
.inactive { opacity: .55; }

/* ---------- Pencarian / direktori ---------- */
.searchbar { position: sticky; top: 64px; z-index: 30; background: var(--zinc); padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .searchbar { top: 56px; } }
.sbox { position: relative; }
.sbox input { width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); padding: 0 108px 0 46px; font-size: 17px; }
.sbox input:focus { outline: none; border-color: var(--meni); box-shadow: 0 0 0 3px color-mix(in srgb, var(--meni) 22%, transparent); }
.sbox .ico { position: absolute; left: 15px; top: 15px; width: 22px; height: 22px; color: var(--ink-3); }
.sbox .acts { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.sbox .acts button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--zinc); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.filters .sep { width: 1px; background: var(--line); flex: none; margin: 4px 2px; }
.resinfo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.resinfo b { font: 800 24px/1 var(--f-disp); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.seg button { border: 0; background: none; height: 38px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--paper); }

.famblock { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 14px; overflow: hidden; }
.famhead { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.famhead .media { border-radius: var(--r); aspect-ratio: 4 / 3; }
.famhead h3 a { color: var(--ink); }
.famhead p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.vchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--zinc); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.vchip:hover { border-color: var(--ink-3); background: var(--paper); }
.vchip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ada { background: var(--ok); } .dot.menipis { background: var(--warn); } .dot.habis { background: var(--out); }
.vchip .q { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vchip.cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vchip.cur .q { color: inherit; opacity: .75; }
@media (max-width: 560px) { .famhead { grid-template-columns: 84px minmax(0, 1fr); } .famhead > :last-child { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 48px 16px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-l); }
.empty h3 { margin-bottom: 8px; }
.more { display: flex; justify-content: center; margin: 18px 0; }

/* ---------- Halaman produk ---------- */
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); padding: 18px 0 10px; }
.crumbs a { color: var(--ink-2); font-weight: 600; }
.pgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); }
.card > .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card > .hd h2 { font-size: 24px; }
.card > .bd { padding: 16px; }
.mediacard { position: sticky; top: 84px; overflow: hidden; }
@media (max-width: 900px) { .mediacard { position: static; } }
.mediacard .media { aspect-ratio: 1 / 1; }
.mediacard .media img { object-fit: contain; background: #fff; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; height: 40px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-weight: 600; color: var(--ink-3); }
.tabs button.on { background: var(--zinc); color: var(--ink); }
.credit { font-size: 12px; color: var(--ink-3); padding: 8px 12px; border-top: 1px solid var(--line); line-height: 1.4; }
.credit a { color: inherit; text-decoration: underline; }
.ptitle .pname { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.02; }
.ptitle .sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.famlink { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 18px; background: var(--meni-soft); color: var(--meni-text); font-weight: 700; font-size: 14px; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.meta b { color: var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.btn.listen { min-height: 56px; padding: 0 22px; font-size: 17px; border-radius: 14px; }
.btn.listen svg { width: 24px; height: 24px; }
.sheet { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; align-items: center; }
@media (max-width: 640px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
.drawing { color: var(--ink); background: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.tech { width: 100%; height: auto; display: block; }
.tech .dim { stroke: var(--meni-text); stroke-width: 1.4; fill: none; stroke-dasharray: 400; animation: draw 1s ease-out both; }
.tech .ext { stroke: var(--meni-text); stroke-width: .8; opacity: .55; }
.tech .dimfill { fill: var(--meni-text); }
.tech .dl { font: 600 14px var(--f-body); fill: var(--meni-text); }
.tech .big { font: 800 36px var(--f-disp); fill: currentColor; }
.tech .mid { font: 800 24px var(--f-disp); fill: currentColor; }
.tech .axis { stroke: currentColor; stroke-dasharray: 10 4 2 4; stroke-width: .9; opacity: .5; fill: none; }
.tech .muted { fill: var(--ink-3); }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; font-weight: 500; color: var(--ink-3); padding-right: 12px; }
.specs td { font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.script { display: grid; gap: 18px; }
.script h3 { font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; letter-spacing: .01em; }
.script p { margin: 0; }
.script ul { margin: 0; padding-left: 20px; }
.script li { margin: 3px 0; }
.sn { cursor: pointer; border-radius: 4px; transition: background .2s; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 1px 2px; }
@media (hover: hover) { .sn:hover { background: var(--zinc); } }
.sn.now { background: var(--k3); color: #1E2328; }
:root[data-theme=dark] .sn.now { background: var(--k3); color: #1E2328; }
.faq { border-left: 3px solid var(--line); padding-left: 12px; margin-top: 8px; }
.faq b { display: block; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pair { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none !important; }
.pair:hover { border-color: var(--ink-3); }
.pair .media { border-radius: 8px; aspect-ratio: 1; }
.pair b { font: 800 17px/1.1 var(--f-disp); }

/* ---------- Pemutar suara ---------- */
.player { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 55; width: min(760px, calc(100vw - 24px)); background: var(--ink); color: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
:root[data-theme=dark] .player { background: #2A3036; }
@media (max-width: 760px) { .player { bottom: calc(68px + env(safe-area-inset-bottom)); } }
.player .wave { width: 44px; height: 44px; border-radius: 50%; background: var(--k3); color: #1E2328; display: flex; align-items: center; justify-content: center; }
.player .wave i { display: inline-block; width: 4px; margin: 0 1.5px; border-radius: 2px; background: currentColor; height: 10px; animation: eq .9s ease-in-out infinite; }
.player .wave i:nth-child(2) { animation-delay: .15s; } .player .wave i:nth-child(3) { animation-delay: .3s; }
.player.paused .wave i { animation: none; }
@keyframes eq { 50% { height: 22px; } }
.player .t { font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .s { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.player .ctl { display: flex; gap: 2px; align-items: center; }
.player .ctl button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.player .ctl button:hover { background: rgba(255, 255, 255, .14); }
.player .ctl svg { width: 22px; height: 22px; }
.player .ctl .rate { width: auto; padding: 0 8px; border-radius: 14px; font-weight: 700; font-size: 13px; }
.player .bar { grid-column: 1 / -1; height: 3px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
.player .bar i { display: block; height: 100%; background: var(--k3); transition: width .3s; }
@media (max-width: 520px) { .player { grid-template-columns: auto minmax(0, 1fr); } .player .ctl { grid-column: 1 / -1; justify-content: space-between; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--paper); }
.login .side { background: var(--meni); color: #fff; position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.login .side .logo { display: flex; gap: 12px; align-items: center; position: relative; z-index: 2; }
.login .side .logo img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.login .side h1 { font: 800 clamp(48px, 8vw, 104px)/.92 var(--f-sten); text-transform: uppercase; letter-spacing: .01em; position: relative; z-index: 2; margin: 32px 0 14px; max-width: 9ch; }
.login .side p { position: relative; z-index: 2; font-size: 18px; max-width: 34ch; opacity: .92; margin: 0 0 150px; }
.login .side .hero-rack { height: 170px; }
.login .form { display: grid; align-content: center; padding: clamp(28px, 5vw, 64px); }
.login form { display: grid; gap: 16px; width: 100%; max-width: 380px; margin: 0 auto; }
.login form h2 { font-size: 34px; }
.login .err { color: #B42318; font-weight: 600; font-size: 14px; min-height: 20px; }
.pw { position: relative; }
.pw button { position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 10px; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-weight: 600; font-size: 14px; }
.login .company { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 10px; }
@media (max-width: 860px) { .login { grid-template-columns: minmax(0, 1fr); } .login .side p { margin-bottom: 130px; } .login .side h1 { margin-top: 20px; } }

/* ---------- Dialog & notifikasi ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 18, 21, .55); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: var(--paper); color: var(--ink); border-radius: var(--r-l); width: min(640px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.dialog.wide { width: min(1000px, 100%); }
.dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dialog > header h2 { font-size: 26px; }
.dialog > .db { padding: 18px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.dialog > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; top: 76px; right: 16px; z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; font-weight: 600; font-size: 14px; animation: fade .2s; }
.toast.err { background: #B42318; color: #fff; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; padding-top: 22px; align-items: start; }
.anav { position: sticky; top: 86px; display: grid; gap: 2px; }
.anav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none !important; }
.anav a:hover { background: var(--zinc-2); }
.anav a.on { background: var(--ink); color: var(--paper); }
.anav svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .admin { grid-template-columns: minmax(0, 1fr); } .anav { position: static; display: flex; overflow-x: auto; gap: 6px; } .anav a { flex: none; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.kpi b { display: block; font: 800 36px/1 var(--f-disp); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.kpi.warn b { color: var(--warn); } .kpi.out b { color: var(--out); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.bars { display: grid; gap: 6px; }
.bars .r { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 14px; }
.bars .r .l { position: relative; padding: 4px 8px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bars .r .l i { position: absolute; inset: 0 auto 0 0; background: var(--meni-soft); z-index: 0; border-radius: 6px; }
.bars .r .l span { position: relative; }
.bars .r b { text-align: right; font-variant-numeric: tabular-nums; }
.spark { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; height: 120px; padding-top: 10px; }
.spark i { display: block; background: var(--meni); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.spark i span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; color: var(--ink-3); }
.sparkx { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; font-size: 10px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 13px; color: var(--ink-3); font-weight: 600; background: var(--zinc); position: sticky; top: 0; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--zinc); }
.tbl .thumb { width: 52px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--zinc); }
.tbl .thumb svg, .tbl .thumb img { width: 100%; height: 100%; object-fit: cover; }
.scroll { overflow-x: auto; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input { width: auto; flex: 1 1 220px; }
.pager { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--zinc-2); color: var(--ink-2); }
.badge.admin { background: var(--meni-soft); color: var(--meni-text); }
.badge.off { background: #FDE7E7; color: #B42318; }
.drop { border: 2px dashed var(--line); border-radius: var(--r-l); padding: 28px; text-align: center; background: var(--paper); cursor: pointer; }
.drop.over { border-color: var(--meni); background: var(--meni-soft); }
.drop b { font: 800 22px var(--f-disp); display: block; margin-bottom: 4px; }
.imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.imgopt { border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--zinc); cursor: pointer; padding: 0; text-align: left; }
.imgopt:hover, .imgopt:focus-visible { border-color: var(--meni); }
.imgopt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.imgopt small { display: block; padding: 6px 8px; font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.faqed { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--zinc); }
.note { padding: 12px 14px; border-radius: var(--r); background: var(--k3-soft); font-size: 14px; }
.progress { height: 8px; border-radius: 4px; background: var(--zinc-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--meni); transition: width .3s; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }

body.on-search .topsearch { visibility: hidden; }
.login .side .logo .mark { width: 44px; height: 44px; flex: none; }
.tag .pname, .tag .pname:hover { color: var(--ink); text-decoration: none; }
.tag:hover .pname { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 900px) { .mediacard .media { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .bigsearch .go { display: none; } .bigsearch input { padding-right: 64px; font-size: 17px; } .tbl .hide-s { display: none; } }
