
*{margin:0;padding:0;box-sizing:border-box}
body{background:#080d13;font-family:-apple-system,system-ui,'PingFang SC',sans-serif;color:#b0bec5;font-size:12px}
input[name=p]{display:none}
.S{display:flex;min-height:100vh}
.sd{width:210px;background:#0c1420;border-right:1px solid #131c2a;flex-shrink:0;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow-y:auto}
.M{flex:1;min-width:0;display:flex;flex-direction:column}
.H{background:#0c1420;border-bottom:1px solid #131c2a;padding:9px 20px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50}
.C{padding:16px 20px;flex:1}
.lg{padding:16px 16px 20px;display:flex;align-items:center;gap:8px}
.li{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#0ea5e9,#6366f1);display:flex;align-items:center;justify-content:center}
.lt{font-size:13px;font-weight:700;color:#f1f5f9}
.lt small{display:block;font-size:8px;color:#3a5068;text-transform:uppercase;letter-spacing:.12em;margin-top:1px}
.sh{font-size:8px;color:#253347;text-transform:uppercase;letter-spacing:.12em;padding:8px 10px 4px;font-weight:700}
.sn{padding:0 8px;margin-bottom:4px}
.sd a{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:7px;cursor:pointer;color:#4a6478;font-size:11px;font-weight:500;margin-bottom:1px;position:relative;transition:.15s}
.sd a:hover{color:#8fa3b8;background:rgba(14,165,233,.04)}
.sd a svg{flex-shrink:0;opacity:.35;width:14px;height:14px}
.sd a:hover svg{opacity:.6}
.sb{position:absolute;right:8px;min-width:15px;height:15px;border-radius:8px;font-size:8px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px}
#p1:checked~.S .sd a[data-panel=p1],#p2:checked~.S .sd a[data-panel=p2],#p3:checked~.S .sd a[data-panel=p3],#p4:checked~.S .sd a[data-panel=p4],#p5:checked~.S .sd a[data-panel=p5]{color:#0ea5e9;background:rgba(14,165,233,.08);font-weight:600}
#p1:checked~.S .sd a[data-panel=p1] svg,#p2:checked~.S .sd a[data-panel=p2] svg,#p3:checked~.S .sd a[data-panel=p3] svg,#p4:checked~.S .sd a[data-panel=p4] svg,#p5:checked~.S .sd a[data-panel=p5] svg{opacity:1;stroke:#0ea5e9}
.P{display:none}
#p1:checked~.S .M .P1,#p2:checked~.S .M .P2,#p3:checked~.S .M .P3,#p4:checked~.S .M .P4,#p5:checked~.S .M .P5{display:block}
.ht{font-size:14px;font-weight:700;color:#e2e8f0}
.hs{font-size:9px;color:#3a5068;margin-top:1px}
.hr{display:flex;align-items:center;gap:10px}
.hp{padding:3px 9px;border-radius:12px;font-size:9px;font-weight:600;background:rgba(34,197,94,.07);color:#22c55e;border:1px solid rgba(34,197,94,.12)}
.hm{font-size:10px;color:#3a5068;font-family:monospace}
.av{width:24px;height:24px;border-radius:6px;background:linear-gradient(135deg,#0ea5e9,#8b5cf6);display:flex;align-items:center;justify-content:center;color:#fff;font-size:9px;font-weight:700}
.fb{display:flex;align-items:flex-end;gap:14px;padding:11px 20px;background:linear-gradient(180deg,#0a1018,#080d13);border-bottom:1px solid #131c2a;flex-wrap:wrap;position:sticky;top:42px;z-index:45}
.fg2{display:flex;flex-direction:column;gap:3px}
.fl{font-size:7.5px;color:#3a5068;text-transform:uppercase;letter-spacing:.1em;font-weight:700}
.fi,.fs{background:#0c1420;border:1px solid #1a2535;border-radius:5px;padding:5px 8px;color:#8fa3b8;font-size:10px;font-family:inherit;outline:none}
.fi:focus,.fs:focus{border-color:#0ea5e9}
.fs{min-width:110px;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%233a5068'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;padding-right:22px}
.fs option{background:#0c1420;color:#8fa3b8}
.fi{width:120px}
.fsp{color:#3a5068;font-size:10px;align-self:flex-end;padding-bottom:5px}
.fbr{display:flex;align-items:flex-end;gap:4px}
.fbt{padding:5px 14px;border-radius:5px;background:linear-gradient(135deg,#0ea5e9,#0284c7);color:#fff;border:none;font-size:10px;font-weight:600;cursor:pointer;align-self:flex-end}
.frs{padding:5px 10px;border-radius:5px;background:0;color:#4a6478;border:1px solid #1a2535;font-size:10px;cursor:pointer;align-self:flex-end}
.fcn{font-size:8px;color:#253347;align-self:flex-end;padding-bottom:6px;margin-left:auto}
.r{display:grid;gap:10px;margin-bottom:10px}
.r2{grid-template-columns:1fr 1fr}
.r3{grid-template-columns:1fr 1fr 1fr}
.r4{grid-template-columns:1fr 1fr 1fr 1fr}
.r5{grid-template-columns:1fr 1fr 1fr 1fr 1fr}
.r23{grid-template-columns:2fr 1fr}
.r32{grid-template-columns:3fr 2fr}
.rf{grid-template-columns:1fr}
.c{background:linear-gradient(135deg,#0e1825,#0c1520);border:1px solid #131c2a;border-radius:8px;padding:13px}
.c:hover{box-shadow:0 2px 12px rgba(0,0,0,.1)}
.ch{font-size:9.5px;font-weight:600;color:#4a6478;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}
.cr{display:flex;align-items:center;gap:4px}
.b{padding:1.5px 6px;border-radius:8px;font-size:8px;font-weight:600;display:inline-flex;align-items:center;gap:2px}
.bb{background:rgba(14,165,233,.08);color:#0ea5e9}
.bg{background:rgba(34,197,94,.08);color:#22c55e}
.by{background:rgba(245,158,11,.08);color:#f59e0b}
.br{background:rgba(239,68,68,.08);color:#ef4444}
.bp{background:rgba(168,85,247,.08);color:#a855f7}
.kl{font-size:9px;color:#3a5068;margin-bottom:3px;font-weight:500}
.kv{font-size:19px;font-weight:800;font-family:'SF Mono',monospace;color:#f1f5f9;line-height:1.1}
.kv.s{font-size:14px}
.kd{font-size:9px;margin-top:3px;display:flex;align-items:center;gap:2px;font-weight:500}
.up{color:#22c55e}
.dn{color:#ef4444}
.wn{color:#f59e0b}
table{width:100%;border-collapse:collapse;font-size:10.5px}
th{text-align:left;color:#3a5068;font-weight:600;padding:5px 6px;border-bottom:1px solid #131c2a;font-size:8.5px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
td{padding:6px;border-bottom:1px solid rgba(19,28,42,.5);color:#8fa3b8;white-space:nowrap}
tr:hover td{background:rgba(14,165,233,.015)}
.m{font-family:'SF Mono',monospace;font-size:10px}
.t{display:inline-flex;padding:1px 6px;border-radius:8px;font-size:8px;font-weight:600}
.tok{background:rgba(34,197,94,.07);color:#22c55e}
.tw{background:rgba(245,158,11,.07);color:#f59e0b}
.te{background:rgba(239,68,68,.07);color:#ef4444}
.ti{background:rgba(14,165,233,.07);color:#0ea5e9}
.tp{background:rgba(168,85,247,.07);color:#a855f7}
.ms{background:#080d13;border:1px solid #131c2a;border-radius:5px;padding:7px;text-align:center}
.ml{font-size:8px;color:#3a5068;margin-bottom:2px}
.mv{font-size:12px;font-weight:700;font-family:monospace;color:#e2e8f0}
.hb{display:flex;align-items:center;gap:6px;margin-bottom:5px}
.hb:last-child{margin-bottom:0}
.hl{font-size:9px;color:#4a6478;width:54px;flex-shrink:0;text-align:right}
.ht2{flex:1;height:18px;background:#131c2a;border-radius:3px;overflow:hidden}
.hf{height:100%;border-radius:3px;display:flex;align-items:center;padding-left:6px;font-size:8px;font-weight:700;color:rgba(255,255,255,.85)}
.rn{width:68px;height:68px;margin:0 auto 6px;position:relative}
.rn svg{width:100%;height:100%;transform:rotate(-90deg)}
.rv{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.rv b{font-size:17px;font-weight:800;font-family:monospace}
.rv span{font-size:7px;color:#3a5068}
.al{display:flex;gap:7px;padding:6px 0;border-bottom:1px solid rgba(19,28,42,.4)}
.al:last-child{border-bottom:none}
.ad{width:5px;height:5px;border-radius:50%;flex-shrink:0;margin-top:5px}
.am{font-size:10px;line-height:1.5}
.at{font-size:8px;color:#3a5068;margin-top:1px}
.aw{display:inline-flex;padding:1px 5px;border-radius:5px;background:rgba(14,165,233,.05);color:#0ea5e9;font-size:7.5px;font-weight:500;margin-left:3px}
.fg{display:inline-flex;padding:1px 4px;border-radius:3px;font-size:8.5px;background:#131c2a;color:#4a6478;margin-right:1px}
.fg.on{background:rgba(14,165,233,.06);color:#0ea5e9}
.st{font-size:9px;color:#253347;text-transform:uppercase;letter-spacing:.1em;font-weight:700;margin-bottom:9px;padding-bottom:5px;border-bottom:1px solid #131c2a}
.re td{background:rgba(239,68,68,.025)!important}
.rw td{background:rgba(245,158,11,.015)!important}
.rp td{background:rgba(168,85,247,.015)!important}
.cd{display:inline-flex;padding:2px 6px;border-radius:5px;font-size:9px;font-weight:700;font-family:monospace}
.cdr{background:rgba(239,68,68,.08);color:#ef4444}
.cdy{background:rgba(245,158,11,.08);color:#f59e0b}
.cdg{background:rgba(34,197,94,.08);color:#22c55e}
.cdp{background:rgba(168,85,247,.08);color:#a855f7}
.ac{background:#080d13;border:1px solid #131c2a;border-radius:7px;padding:10px;margin-bottom:7px;display:flex;gap:9px;align-items:flex-start}
.ac:last-child{margin-bottom:0}
.ab{flex:1;min-width:0}
.at2{font-size:10.5px;font-weight:600;color:#e2e8f0;margin-bottom:2px}
.ad2{font-size:9.5px;color:#6b7a8a;line-height:1.5}
.ax{display:flex;gap:5px;margin-top:4px;flex-wrap:wrap;align-items:center}
.ag{padding:2px 6px;border-radius:5px;font-size:7.5px;font-weight:600}
.aw2{display:inline-flex;padding:1px 6px;border-radius:5px;background:rgba(14,165,233,.06);color:#0ea5e9;font-size:7.5px;font-weight:500}
.as{padding:2px 6px;border-radius:5px;font-size:7.5px;font-weight:600}
.tl{position:relative;padding-left:18px;margin-bottom:6px}
.tl:last-child{margin-bottom:0}
.tl::before{content:'';position:absolute;left:4px;top:0;bottom:-6px;width:1px;background:#131c2a}
.tl:last-child::before{display:none}
.td2{position:absolute;left:0;top:4px;width:9px;height:9px;border-radius:50%;border:2px solid #131c2a}
::-webkit-scrollbar{width:3px;height:3px}
::-webkit-scrollbar-track{background:0}
::-webkit-scrollbar-thumb{background:#1a2535;border-radius:2px}


/* Navigation and layouts for the supplied dashboard. */
.sd a{text-decoration:none}
.sd a:focus-visible,.frs:focus-visible{outline:2px solid #0ea5e9;outline-offset:2px}
.fbt:disabled{opacity:.45;cursor:not-allowed}
.fcn{color:#8fa3b8}
.c{min-width:0}
.c:has(table){overflow-x:auto}
@media(max-width:1100px){
 .r5,.r4{grid-template-columns:repeat(2,minmax(0,1fr))}
 .r23,.r32{grid-template-columns:minmax(0,1fr)}
 .fb{position:static}
 .H{flex-wrap:wrap;gap:6px}
}
@media(max-width:700px){
 .sd{width:132px}
 .lg{padding:12px 8px;gap:5px}
 .lt{font-size:11px}.lt small{font-size:7px;letter-spacing:0}
 .sd a{font-size:10px;padding:9px 6px;gap:5px;min-height:36px}
 .sd a .sb{display:none}
 .H,.fb,.C{padding:12px}
 .H .hr{flex-wrap:wrap;gap:5px}
 .H .hm{display:none}
 .ht{font-size:12px}
 .r2,.r3,.r4,.r5{grid-template-columns:minmax(0,1fr)}
 .fi{width:105px}
 .fcn{margin-left:0;width:100%}
}

/* Live Lingxing dashboard: all business values are rendered from authenticated APIs. */
h1,h2,h3{font:inherit;margin:0}
.ht{font-size:16px;font-weight:700}
.nav-icon{font-size:17px;line-height:1;width:16px;text-align:center;opacity:.7}
.scope-summary{margin-top:auto;padding:14px 12px;border-top:1px solid #1a2535;color:#94a7ba;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.scope-summary .sh{padding:0 0 5px}
.scope-countries{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}
#user-name{color:#8fa3b8;font-size:11px;max-width:100px;overflow:hidden;text-overflow:ellipsis}
#source-time{font-size:10px;color:#71869a}
#connection-status{white-space:normal;text-align:center;max-width:190px}
.status-warn{background:rgba(245,158,11,.09);border-color:rgba(245,158,11,.2);color:#fbbf24}
#filter-note{font-size:10px;color:#8fa3b8;max-width:100%;line-height:1.5}
#filters .fl{color:#71869a;font-size:9px}
#filters .fs{min-width:128px;max-width:240px}
#filters .fi,#filters .fs{font-size:11px;padding-top:7px;padding-bottom:7px}
button:disabled{opacity:.45;cursor:not-allowed}
.board-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:7px}
.board-title{font-size:17px;font-weight:700;color:#e2e8f0}
.board-subtitle{font-size:12px;line-height:1.6;color:#94a7ba;margin-bottom:9px}
.provenance{display:flex;gap:5px 18px;flex-wrap:wrap;font-size:10px;line-height:1.7;color:#71869a;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #1a2535}
.date-notice{color:#fbbf24}
.live-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.live-kpis .kl{color:#8fa3b8;font-size:11px;line-height:1.5}
.live-kpis .kv{font-size:23px;margin-top:8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.live-kpis .kd{color:#71869a;font-size:10px;line-height:1.6;display:block;margin-top:7px}
.board-alerts:empty{display:none}
.data-alert{padding:10px 12px;margin-bottom:8px;border-radius:6px;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.data-alert.warning{color:#e8c078;background:rgba(245,158,11,.055);border:1px solid rgba(245,158,11,.13)}
.data-alert.info{color:#8cb9d8;background:rgba(14,165,233,.055);border:1px solid rgba(14,165,233,.13)}
.global-error{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 20px;background:rgba(245,158,11,.08);color:#e8c078;font-size:12px;line-height:1.6}
.global-error[hidden]{display:none}
.empty-state{padding:32px 16px;color:#8fa3b8;line-height:1.8;font-size:12px}
.error-state{color:#e8c078}
.data-table-card{margin-bottom:12px;overflow:hidden!important}
.data-table-card .ch,.chart-card .ch{font-size:12px;text-transform:none;color:#b6c6d5;letter-spacing:0;font-weight:600}
.table-hint{font-size:10px;color:#71869a;line-height:1.65;margin:0 0 10px;overflow-wrap:anywhere}
.table-scroll{overflow:auto;max-height:580px;width:100%;overscroll-behavior:contain}
.data-table-card table{font-size:11px}
.data-table-card th{position:sticky;top:0;background:#0f1926;z-index:1;font-size:10px;color:#8fa3b8;padding:9px 8px}
.data-table-card td{padding:9px 8px;line-height:1.6}
.data-table-card td.text-cell{white-space:normal;min-width:80px;max-width:420px;overflow-wrap:anywhere}
.data-table-card td.number-cell{white-space:nowrap;font-variant-numeric:tabular-nums}
.severity-p0 td{background:rgba(239,68,68,.045)}
.severity-p1 td{background:rgba(245,158,11,.035)}
.table-pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding-top:10px;font-size:10px;color:#71869a}
.source-notes{margin:12px 0;line-height:1.8;font-size:11px;color:#8fa3b8}
.source-notes summary{color:#b6c6d5;cursor:pointer;font-size:12px;min-height:22px}
.source-notes ul{padding-left:20px;margin-top:10px}
.source-notes li{margin:6px 0;overflow-wrap:anywhere}
.retry-button{font-size:11px;padding:8px 14px;margin:4px 0 16px}
.live-bar-row{display:grid;grid-template-columns:minmax(70px,1fr) minmax(80px,2fr) minmax(60px,auto);align-items:center;gap:10px;margin:10px 0;font-size:10px}
.live-bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8fa3b8}
.live-bar-track{height:8px;border-radius:4px;background:#131f2d;overflow:hidden}
.live-bar-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,#0ea5e9,#6366f1)}
.live-bar-fill.negative{background:#de6971}
.live-bar-value{text-align:right;color:#b6c6d5;font-variant-numeric:tabular-nums}
@media(max-width:1100px){.live-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.live-charts{grid-template-columns:minmax(0,1fr)}.H{position:static}.H .hr{flex-wrap:wrap;justify-content:flex-start}.fb{position:static}}
@media(max-width:700px){.live-kpis{grid-template-columns:minmax(0,1fr)}.live-kpis .kv{font-size:20px}.H .hr{gap:7px}.board-title{font-size:15px}.live-bar-row{grid-template-columns:minmax(55px,1fr) minmax(35px,1fr);gap:6px}.live-bar-value{grid-column:1/-1;text-align:left}.table-pager{justify-content:flex-start}.scope-summary{padding:12px 8px}.sd .lt small{font-size:8px}.sd a{min-height:40px}}

/* FBA v3.1 module boundary: uploader and report styles stay inside the frame. */
.fb[hidden],.hm[hidden]{display:none!important}
.inventory-tool-host{border:1px solid #1a2535;border-radius:10px;overflow:hidden;background:#f0f2f5}
.inventory-tool-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;color:#dbe6f2;background:#101b29;font-size:13px;font-weight:600}
.inventory-tool-toolbar a{color:#7dd3fc;font-weight:400;text-decoration:none}
.inventory-tool-toolbar a:focus-visible{outline:2px solid #7dd3fc;outline-offset:3px}
.inventory-tool-frame{display:block;border:0;width:100%;height:calc(100vh - 165px);min-height:720px;background:#f0f2f5}
@media(max-width:700px){.inventory-tool-frame{min-height:800px;height:calc(100vh - 180px)}.inventory-tool-toolbar{padding:10px;font-size:12px}}

#user-name[hidden],#user-avatar[hidden]{display:none!important}
