:root{--blue:#5b2fd6;--blue-d:#3b2a9e;--blue-l:#efe9fd;--bg:#f2f4f7;--card:#fff;--ink:#16181d;--mute:#667085;--line:#e6e8ec;
--red:#d92d4a;--red-l:#fdecef;--amber:#b25e09;--amber-l:#fff3e2;--green:#15803d;--green-l:#e6f6ec;--gray-l:#f2f4f7;--r:16px;
--safe-b:env(safe-area-inset-bottom,0px);--shadow:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.04)}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--blue);text-decoration:none}
svg{flex:none}
.boot{padding:40vh 0;text-align:center;color:var(--mute)}
/* ---------- kerangka ---------- */
.shell{min-height:100vh}
.side{display:none}
.page{padding-bottom:calc(76px + var(--safe-b))}
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:10px 16px;min-height:60px}
.top-logo{width:32px;height:32px;border-radius:9px}
.top-t{flex:1;min-width:0}
.top h1{font-size:19px;font-weight:700;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.top .sub{font-size:12.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top .back{border:0;background:var(--gray-l);width:38px;height:38px;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}
.top .back svg{width:20px;height:20px}
.main{max-width:920px;margin:0 auto;padding:14px 16px}
.bottom{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--card);border-top:1px solid var(--line);display:flex;padding-bottom:var(--safe-b)}
.bottom a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px 9px;color:var(--mute);font-size:11px;font-weight:500;position:relative}
.bottom a.on{color:var(--blue);font-weight:650}
.bottom svg{width:23px;height:23px}
.dot{position:absolute;top:3px;left:calc(50% + 7px);background:var(--red);color:#fff;border-radius:10px;font-size:10.5px;font-weight:700;padding:0 5px;min-width:18px;text-align:center;line-height:18px}
@media(min-width:960px){
 .shell{display:flex}
 .side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;width:240px;flex:none;background:var(--card);border-right:1px solid var(--line);padding:16px 12px}
 .side nav{display:flex;flex-direction:column;gap:2px;flex:1}
 .side nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:#344054;font-weight:550;position:relative}
 .side nav a svg{width:21px;height:21px}
 .side nav a:hover{background:var(--gray-l)}
 .side nav a.on{background:var(--blue-l);color:var(--blue)}
 .side .dot{position:static;margin-left:auto}
 .brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;padding:4px 10px 18px;letter-spacing:-.02em}
 .brand img{width:34px;height:34px;border-radius:10px}
 .side-user{display:flex;gap:10px;align-items:center;padding:12px 10px;border-top:1px solid var(--line)}
 .side-user b{display:block;font-size:14px}.side-user span{font-size:12px;color:var(--mute)}
 .page{flex:1;min-width:0;padding-bottom:0}
 .bottom{display:none}
 .top-logo{display:none}
 .main{padding:22px 28px}
}
/* ---------- blok ---------- */
.banner{background:var(--amber-l);color:var(--amber);padding:7px 16px;font-size:12.5px;font-weight:600;text-align:center}
.card{background:var(--card);border-radius:var(--r);padding:16px;margin-bottom:12px;box-shadow:var(--shadow)}
.card.hl{border:1.5px solid #c7dbfb}
.card h2{font-size:16px;font-weight:700;margin:0 0 12px;letter-spacing:-.01em}
.card h2:not(:first-child){margin-top:18px}
.sec{font-size:13.5px;font-weight:700;color:#344054;margin:20px 2px 9px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.sec span,.sec a{font-weight:600;font-size:12.5px;color:var(--mute)}.sec a{color:var(--blue)}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:12px}
@media(min-width:720px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1100px){.grid{grid-template-columns:repeat(4,1fr)}}
.stat{background:var(--card);border-radius:var(--r);padding:13px 14px;box-shadow:var(--shadow);border:1.5px solid transparent;min-width:0}
.stat[onclick]{cursor:pointer}.stat[onclick]:active{transform:scale(.98)}
.stat b{display:block;font-size:26px;line-height:1.15;font-weight:750;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stat b .money{font-size:19px}
.stat span{font-size:12.5px;color:var(--mute);font-weight:500}
.stat.red b{color:var(--red)}.stat.red{border-color:var(--red-l)}
.stat.amber b{color:var(--amber)}.stat.green b{color:var(--green)}.stat.blue b{color:var(--blue)}
.tri{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;gap:6px}.tri b{font-size:16px}
.list{background:var(--card);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);margin-bottom:12px}
.item{display:flex;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);cursor:pointer}
.item:last-child{border-bottom:0}
.item:active{background:var(--gray-l)}
@media(hover:hover){.item:hover{background:#fafbfc}}
.av{width:42px;height:42px;border-radius:50%;background:var(--blue-l);color:var(--blue);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex:none}
.av.sm{width:34px;height:34px;font-size:12.5px}.av.lg{width:54px;height:54px;font-size:18px}.av.xs{width:24px;height:24px;font-size:11.5px;display:inline-flex;vertical-align:middle}
.av.ok{background:var(--green-l);color:var(--green)}
.av.ic svg{width:22px;height:22px}
.av.rank{background:var(--gray-l);color:#344054}.av.r1{background:#fef3c7;color:#92400e}.av.r2{background:#e5e7eb;color:#374151}.av.r3{background:#fde4cf;color:#9a3412}
.item .mid,.inv .mid{flex:1;min-width:0}
.t{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s{font-size:13px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s.xs{font-size:12px;display:flex;align-items:center;gap:4px}.s.xs svg{width:13px;height:13px}
.mob .s{white-space:normal}
.item .r{text-align:right;flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12px;color:var(--mute)}
.money{font-variant-numeric:tabular-nums}
.empty{padding:24px;text-align:center;color:var(--mute);font-size:14px}
.badge{display:inline-block;font-size:11.5px;font-weight:650;padding:2px 9px;border-radius:20px;background:var(--gray-l);color:var(--mute);white-space:nowrap;margin:1px 2px 1px 0}
.b-baru{background:var(--blue-l);color:var(--blue)}.b-dibalas{background:#eef0f3;color:#475467}
.b-ditawari{background:#efe7fd;color:#6b3fd0}.b-follow_up{background:var(--amber-l);color:var(--amber)}
.b-deal{background:var(--green-l);color:var(--green)}.b-jadi_nota{background:var(--green);color:#fff}.b-batal{background:#f2f2f2;color:#98a2b3}
.wait{background:var(--red);color:#fff}.wait.mild{background:var(--amber-l);color:var(--amber)}
.tred{color:var(--red)!important}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{border:1px solid var(--line);background:var(--card);border-radius:20px;padding:7px 14px;font-size:13.5px;font-weight:550;white-space:nowrap;cursor:pointer;display:flex;align-items:center;gap:6px}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.search{width:100%;border:1px solid var(--line);background:var(--card);border-radius:14px;padding:11px 16px;margin-bottom:12px;outline:none}
.search:focus,.inp:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-l)}
.note{font-size:13px;color:var(--mute)}
.mb{margin-bottom:12px}.mt{margin-top:12px}.mt6{margin-top:6px}.xs{font-size:12.5px}
/* ---------- form ---------- */
label.f{display:block;margin-bottom:12px}
label.f>span{display:block;font-size:13px;color:#475467;font-weight:550;margin-bottom:5px}
label.check{display:flex;gap:9px;align-items:center;margin:8px 0;font-weight:500}
.inp{width:100%;border:1px solid #d0d5dd;border-radius:12px;padding:11px 12px;background:#fff;outline:none}
textarea.inp{min-height:84px;resize:vertical}
.row{display:flex;gap:10px;flex-wrap:wrap}.row>*{flex:1;min-width:130px}
.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:650;cursor:pointer;background:var(--gray-l);display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.btn:active{transform:scale(.98)}
.btn.p{background:var(--blue);color:#fff}.btn.g{background:#22c55e;color:#fff}.btn.r{background:var(--red-l);color:var(--red)}
.btn.block{width:100%}.btn.sm{padding:8px 13px;font-size:13.5px;border-radius:10px}
.btn:disabled{opacity:.5}
.btns{display:flex;gap:10px;flex-wrap:wrap}.btns .btn{flex:1}
.kv{display:grid;grid-template-columns:104px 1fr;gap:7px 10px;font-size:14px;margin:0}.kv dt{color:var(--mute)}.kv dd{margin:0;min-width:0}
.warn{background:var(--amber-l);color:#7a4106;border-radius:12px;padding:11px 13px;font-size:13.5px;margin-bottom:12px}
.err{color:var(--red);font-size:13px;margin:-4px 0 10px}
.profile{display:flex;gap:14px;align-items:center}.profile b{font-size:17px}
/* ---------- chat ---------- */
.msgs{display:flex;flex-direction:column;gap:6px;padding:4px 0}
.m{max-width:82%;padding:8px 11px;border-radius:14px;font-size:14px;white-space:pre-wrap;word-wrap:break-word;box-shadow:var(--shadow)}
.m small{display:block;font-size:11px;color:var(--mute);margin-top:2px;text-align:right}
.m.in{background:var(--card);align-self:flex-start;border-top-left-radius:4px}
.m.out{background:#dcf8c6;align-self:flex-end;border-top-right-radius:4px}
.m.tel{background:var(--amber-l);align-self:center;font-size:13px}
.day{align-self:center;font-size:12px;color:var(--mute);background:var(--card);border-radius:8px;padding:2px 10px;margin:6px 0;font-weight:600}
.sticky-wa{position:sticky;bottom:calc(80px + var(--safe-b));z-index:10}
@media(min-width:960px){.sticky-wa{bottom:14px}}
/* ---------- tabel ---------- */
table.t{width:100%;border-collapse:collapse;font-size:14px}
table.t th,table.t td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}
table.t th{font-size:12.5px;color:var(--mute);font-weight:650;white-space:nowrap}
table.t td.n,table.t th.n{text-align:right}
table.t tr.click{cursor:pointer}table.t tr.click:hover td{background:#fafbfc}
.pill{font-size:12px;color:var(--mute)}
.scroll{overflow-x:auto}
.desk{display:none}
@media(min-width:720px){.desk{display:block}.mob{display:none}}
.tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:12px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs a{padding:8px 14px;border-radius:12px;background:var(--card);color:#344054;white-space:nowrap;font-size:14px;font-weight:600;box-shadow:var(--shadow)}
.tabs a.on{background:var(--blue);color:#fff}
/* ---------- deal ---------- */
.dtable{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;margin-bottom:12px}
.dhead{display:none}
.drow{padding:14px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.drow:last-child{border-bottom:0}
.dcell.who{display:flex;gap:12px;align-items:center;cursor:pointer;min-width:0}
.dcell.since{font-size:13px;color:var(--mute)}.dcell.since .lbl{margin-right:6px}
@media(min-width:900px){
 .dhead{display:grid;grid-template-columns:minmax(0,1.2fr) 120px minmax(0,1.6fr);gap:16px;padding:11px 14px;border-bottom:1px solid var(--line);font-size:12.5px;font-weight:650;color:var(--mute)}
 .drow{display:grid;grid-template-columns:minmax(0,1.2fr) 120px minmax(0,1.6fr);gap:16px;align-items:start}
 .dcell.since .lbl{display:none}.dcell.since{padding-top:10px}
}
.finder{display:flex;gap:8px}.finder .inp{flex:1;min-width:0}
.inv{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);cursor:default}
.inv:last-child{border-bottom:0}
.inv .s{white-space:normal}
label.inv{cursor:pointer}
/* ---------- karyawan ---------- */
.emp-grid{display:grid;gap:12px}
@media(min-width:720px){.emp-grid{grid-template-columns:repeat(2,1fr)}}
.emp-card{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:14px;cursor:pointer;border:1.5px solid transparent}
.emp-card:hover{border-color:#c7dbfb}.emp-card.off{opacity:.6}
.emp-h{display:flex;gap:12px;align-items:center}
.emp-s{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);text-align:center}
.emp-s b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emp-s span{font-size:11.5px;color:var(--mute)}
/* ---------- lain ---------- */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(88px + var(--safe-b));background:#16181d;color:#fff;padding:11px 16px;border-radius:14px;z-index:99;max-width:92vw;font-size:14px;font-weight:550;box-shadow:0 8px 24px rgba(0,0,0,.2)}
@media(min-width:960px){.toast{bottom:24px}}
.login{max-width:380px;margin:12vh auto;padding:0 20px}
.login .logo{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:24px}
.login .logo img{width:76px;height:76px;border-radius:20px;box-shadow:0 8px 24px rgba(91,47,214,.35)}
.login h1{margin:6px 0 0;font-size:26px;font-weight:800;letter-spacing:-.02em}
.stat b .money{color:inherit;font-weight:inherit;font-size:19px}
.dcell .mid{flex:1;min-width:0}
.dcell.who{overflow:hidden}
.emp-grid{grid-template-columns:minmax(0,1fr)}
@media(min-width:720px){.emp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.emp-h .mid{flex:1;min-width:0}
html,body{overflow-x:hidden}
/* ---------- v5: teks tidak terpotong, dialog, transfer ---------- */
.item .t,.inv .t{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
.item.notif .s,.list .item .s.wrap2{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.customers-list .s{white-space:normal}
.top .sub{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
.top .refresh{background:transparent;color:var(--mute)}
.top .refresh:active svg{transform:rotate(-90deg)}
.chips.wrap{flex-wrap:wrap}
@media(max-width:959px){.tabs{flex-wrap:wrap}.tabs a{padding:7px 12px;font-size:13.5px}}
textarea.inp.tall{min-height:150px}
.searchwrap{margin-bottom:2px}.searchwrap .note{margin:-4px 2px 10px}
details.fold{padding:0}
details.fold summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:700;display:flex;justify-content:space-between;align-items:center}
details.fold summary::-webkit-details-marker{display:none}
details.fold summary span{font-weight:600;font-size:12.5px;color:var(--mute)}
details.fold summary::after{content:'›';font-size:20px;color:var(--mute);transform:rotate(90deg);margin-left:8px}
details.fold[open] summary::after{transform:rotate(-90deg)}
details.fold>*:not(summary){margin:0 16px 14px}
details.fold .scroll{margin:0 16px 14px}
.item.pick{cursor:pointer}.item.pick input{width:20px;height:20px;flex:none;accent-color:var(--blue)}
label.selall{margin:0 4px 10px}
.modal{position:fixed;inset:0;background:rgba(16,24,40,.45);z-index:100;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
.sheet{background:#fff;width:100%;max-width:520px;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;padding:18px 18px calc(18px + var(--safe-b));animation:up .2s ease-out}
.sheet-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.sheet-h h2{margin:0;font-size:18px;font-weight:750}
.sheet .x{border:0;background:var(--gray-l);width:34px;height:34px;border-radius:50%;font-size:20px;cursor:pointer;line-height:1}
@media(min-width:720px){.modal{align-items:center}.sheet{border-radius:20px;padding:22px}}
@keyframes up{from{transform:translateY(30px);opacity:.5}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
body.noscroll{overflow:hidden}
.item .s,.inv .s{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.item .s.xs{display:flex}
.top h1{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;font-size:18px}
@media(min-width:960px){.top h1{font-size:20px}}
.dcell .s{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dcell .s.xs{display:flex}
/* ---------- v6: filter dropdown, laporan, cetak ---------- */
.fbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin-bottom:12px}
@media(min-width:720px){.fbar{grid-template-columns:repeat(4,minmax(0,1fr))}}
.fsel{display:block;min-width:0}
.fsel span{display:block;font-size:11.5px;font-weight:650;color:var(--mute);margin:0 2px 3px}
.fsel .inp{padding:9px 10px;font-size:14px;font-weight:550;background-color:#fff;border-radius:11px;text-overflow:ellipsis}
.fsel select.inp{appearance:none;-webkit-appearance:none;padding-right:30px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 11px center}
.rhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.rhead h2{margin:0 0 2px}.rhead .btns{flex:none}
.rcard{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:12px 14px;margin-bottom:10px}
.rcard .t{margin-bottom:8px}
.kv.sm{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);font-size:13px;gap:4px 10px}.kv.sm dd{text-align:right;font-weight:600}
table.rt td,table.rt th{white-space:nowrap}
.printonly{display:none}
@media print{
 .side,.bottom,.banner,.top .refresh,.top .back,.fbar,.noprint,.toast,.mob,.desk,.searchwrap{display:none!important}
 .printonly{display:block!important}
 body,html{background:#fff}.page{padding:0}.main{max-width:none;padding:0}
 .card,.stat,.list{box-shadow:none;border:1px solid #ddd}
 .grid{grid-template-columns:repeat(4,1fr)}
 table.t{font-size:11px}table.t th,table.t td{padding:5px 6px;white-space:normal}
 .top{position:static;border:0}
}
.main.wide{max-width:1400px}
table.rt th{white-space:normal;vertical-align:bottom;min-width:64px;line-height:1.25}
table.rt td{padding:9px 7px}
table.rt{font-size:13px}
table.rt th{min-width:48px;font-size:11.5px;padding:8px 5px}
table.rt td{padding:8px 5px}
.card.scroll:has(table.rt){padding:8px 10px}
/* ---------- v7: chat & kirim pesan ---------- */
.chatmode .page{padding-bottom:0}
@media(max-width:959px){.chatmode .bottom{display:none}}
.chatmode .main{padding-bottom:0}
.msgs{padding-bottom:8px;min-height:30vh}
.m .by{display:block;font-size:11.5px;font-weight:700;color:var(--amber);margin-bottom:2px}
.m .tk{margin-left:3px;letter-spacing:-2px;color:var(--mute)}.m .tk.rd{color:#34b7f1}.m .tk.fail{color:var(--red);letter-spacing:0}
.merr{font-size:12px;color:var(--red);margin-top:3px}
.mimg{display:block;max-width:240px;max-height:260px;border-radius:10px;margin:-2px -4px 6px;object-fit:cover;background:var(--gray-l)}
.mfile{display:inline-block;margin-bottom:4px;font-weight:600}
.m audio{max-width:240px;height:36px;display:block;margin-bottom:4px}
.composer{position:sticky;bottom:0;z-index:15;background:var(--bg);margin:0 -16px;padding:8px 12px calc(10px + var(--safe-b));border-top:1px solid var(--line)}
@media(min-width:960px){.composer{margin:0 -28px;padding:10px 28px 14px}}
.ctools{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:7px}.ctools::-webkit-scrollbar{display:none}
.tool{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:6px 12px;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.crow{display:flex;gap:8px;align-items:flex-end}
.crow textarea{flex:1;min-width:0;border:1px solid #d0d5dd;border-radius:22px;padding:10px 14px;resize:none;outline:none;max-height:140px;line-height:1.4;background:#fff}
.crow textarea:focus{border-color:var(--blue)}
.send{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.send svg{width:20px;height:20px;fill:#fff;stroke:#fff}.send:disabled{opacity:.5}
.cnote{font-size:13px;color:var(--mute);background:var(--card);border-radius:12px;padding:9px 12px;margin-bottom:7px}
.cnote.take{background:var(--amber-l);color:#7a4106}.cnote.closed{background:var(--red-l);color:#8a1c33}
.thumb{width:46px;height:46px;border-radius:10px;object-fit:cover;flex:none;background:var(--gray-l)}
.thumb.lg{width:84px;height:84px}
.prod{display:flex;gap:12px;align-items:center;margin-bottom:6px}.prod .money{font-weight:700;color:var(--green)}
.tplprev{background:var(--gray-l);border-radius:12px;padding:10px 12px;font-size:13.5px;white-space:pre-wrap}
details.info summary{gap:6px;justify-content:flex-start;flex-wrap:wrap}
details.info summary .grow{flex:1;text-align:right;font-size:13px;color:var(--mute)}
details.fold h2.mt{margin-top:16px}
@media(min-width:960px){.side{align-self:flex-start}}
.ctools{flex-wrap:wrap;overflow:visible}
/* ---------- v8: coexistence, barang masuk, analisa AI ---------- */
.cnote.hp{background:#e8f8ee;color:#14532d}
a.tool{color:inherit;display:inline-flex;align-items:center}
.ship{padding:14px}
.ship-h{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:6px}
.ship-h b{font-size:15.5px}
.ship-h .r{text-align:center;flex:none;background:var(--amber-l);border-radius:12px;padding:6px 12px;min-width:68px}
.ship-h .r b{display:block;font-size:20px;color:var(--amber);line-height:1.1}
details.arr-i{border-top:1px solid var(--line);padding:4px 0}
details.arr-i summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:10px;padding:9px 0;align-items:center;flex-wrap:wrap}
details.arr-i summary::-webkit-details-marker{display:none}
details.arr-i summary .t{white-space:normal;flex:1;min-width:160px}
details.arr-i summary .note{text-align:right;flex:none}
.arr-c{flex-wrap:wrap}
.arr-c .mid{min-width:180px}
.arr-b{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.arr-b .btn.sm{padding:7px 11px;font-size:13px}
@media(max-width:600px){.arr-b{width:100%;justify-content:flex-start;padding-left:44px}}
.ai-card{cursor:pointer;border:1.5px solid #e9ddff;background:linear-gradient(135deg,#fff,#f7f2ff)}
.ai-prev{font-size:14px;color:#344054;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.md h2,.md h3,.md h4{margin:18px 0 8px;font-size:16px;font-weight:750}.md h2:first-child{margin-top:0}
.md h3{font-size:15px}.md p{margin:0 0 10px;line-height:1.55}.md ul,.md ol{margin:0 0 10px;padding-left:22px;line-height:1.55}.md li{margin-bottom:4px}
.md code{background:var(--gray-l);border-radius:6px;padding:1px 6px;font-size:13px}
.m.out[data-via="hp"] small::before{content:'📱 ';font-size:10px}

/* v10: tab Pengaturan tidak terpotong — dibungkus ke baris berikut; di HP diganti dropdown */
.tabs.wrap{flex-wrap:wrap;overflow:visible}
.tabsel{display:none;margin-bottom:12px}
.tabsel span{display:block;font-size:12.5px;font-weight:600;color:#667085;margin-bottom:4px}
.tabsel select{width:100%;font-weight:600}
@media(max-width:640px){.tabs.wrap{display:none}.tabsel{display:block}}
