/* POS Software — "HyperPOS". Orange. Namespaced .hp */
* { box-sizing: border-box; }
.hp {
    --bg: #f6f7f9; --panel: #ffffff; --panel2: #f4f5f7; --line: #e9ebef;
    --ink: #16181d; --muted: #6b7280; --brand: #f97316; --brand-ink: #ea580c; --accent: #fb923c;
    --ok: #16a34a; --danger: #ef4444;
    --shadow: 0 14px 34px -22px rgba(30,40,80,.32);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--ink);
    min-height: calc(100vh - 44px); background: var(--bg);
    display: grid; grid-template-columns: 232px minmax(0,1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "side top" "side main";
}
:root[data-demo-theme="dark"] .hp { --bg: #0f1116; --panel: #171a20; --panel2: #1c2029; --line: #282d38; --ink: #e8eaef; --muted: #98a1b2; }
.hp h1,.hp h2,.hp h3,.hp p { margin: 0; }

/* sidebar */
.hp-side { grid-area: side; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; padding-bottom: 2rem; }
.hp-logo { display: flex; align-items: center; gap: .5rem; padding: 1rem 1rem .8rem; font-weight: 800; font-size: 1.1rem; }
.hp-logo .mk { color: var(--brand); font-size: 1.4rem; }
.hp-grp { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .9rem 1.1rem .3rem; }
.hp-menu { display: flex; flex-direction: column; }
.hp-mi { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.1rem; color: var(--muted); font-size: .88rem; font-weight: 600; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%; border-left: 3px solid transparent; }
.hp-mi .ic { width: 1.1rem; text-align: center; }
.hp-mi:hover { background: var(--panel2); color: var(--ink); }
.hp-mi.active { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); border-left-color: var(--brand); }

/* topbar */
.hp-top { grid-area: top; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.4rem; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hp-burger { display: none; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.hp-crumb { font-weight: 700; }
.hp-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .7rem; padding: .5rem .8rem; background: var(--panel2); color: var(--muted); font-size: .86rem; }
.hp-search input { flex: 1; border: 0; background: transparent; font: inherit; outline: none; color: var(--ink); }
.hp-top .sp { flex: 1; }
.hp-chip2 { border: 1px solid var(--line); border-radius: .6rem; padding: .35rem .7rem; font-size: .74rem; color: var(--muted); background: var(--panel); }
.hp-chip2 b { display: block; color: var(--ink); }
.hp-user { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.hp-user .av { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }

/* main */
.hp-main { grid-area: main; padding: 1.4rem; overflow-x: hidden; }
.hp-view[hidden] { display: none !important; }
.hp-greet { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.hp-greet .live { background: #e9f8ef; color: #16a34a; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; }
.hp-greet-sub { color: var(--muted); font-size: .86rem; margin-bottom: 1.2rem; }
.hp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); }
.hp-sec-t { font-weight: 800; font-size: 1.05rem; margin: 1.4rem 0 .8rem; border-left: 3px solid var(--brand); padding-left: .6rem; }

.hp-dash-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; }
.hp-sales { position: relative; }
.hp-sales .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.hp-sales .tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.hp-sales .tags span { background: var(--panel2); border-radius: .5rem; padding: .2rem .6rem; font-size: .76rem; color: var(--muted); }
.hp-sales .delta { position: absolute; top: 1.2rem; right: 1.2rem; background: #e9f8ef; color: #16a34a; font-size: .74rem; font-weight: 700; border-radius: .5rem; padding: .2rem .5rem; }
#hp-sales-chart { width: 100%; height: 130px; display: block; margin-top: .6rem; }
.hp-statcards { display: flex; flex-direction: column; gap: 1rem; }
.hp-statcard { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; }
.hp-statcard .ic { width: 2.3rem; height: 2.3rem; border-radius: .6rem; background: var(--panel2); display: grid; place-items: center; }
.hp-statcard .nm { flex: 1; } .hp-statcard .nm b { display: block; font-size: 1.3rem; } .hp-statcard .nm small { color: var(--muted); font-size: .76rem; }
.hp-statcard .d { font-size: .72rem; font-weight: 700; color: var(--ok); }
.hp-statcard .d.down { color: var(--danger); }
.hp-statcard svg { width: 60px; height: 26px; }

.hp-ops { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.hp-op { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; }
.hp-op .ic { width: 2.3rem; height: 2.3rem; border-radius: .6rem; display: grid; place-items: center; font-size: 1.1rem; }
.hp-op b { display: block; font-size: 1.4rem; } .hp-op small { color: var(--muted); font-size: .78rem; }

.hp-perf { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; }
.hp-perf .metrics { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: .8rem; }
.hp-perf .metric small { color: var(--muted); font-size: .72rem; text-transform: uppercase; display: block; }
.hp-perf .metric b { font-size: 1.5rem; } .hp-perf .metric .pc { font-size: .72rem; font-weight: 700; border-radius: .4rem; padding: .1rem .4rem; }
.hp-perf .metric .pc.down { background: #fdeaea; color: #dc2626; } .hp-perf .metric .pc.flat { background: var(--panel2); color: var(--muted); }
#hp-perf-chart { width: 100%; height: 240px; }
.hp-donut-wrap { display: flex; flex-direction: column; align-items: center; }
#hp-donut { width: 200px; height: 200px; }
.hp-legend { width: 100%; margin-top: .8rem; }
.hp-legend .row { display: flex; align-items: center; gap: .5rem; font-size: .82rem; padding: .25rem 0; }
.hp-legend .row .dot { width: .7rem; height: .7rem; border-radius: 50%; } .hp-legend .row .sp { flex: 1; }

/* POS view */
.hp-pos-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.hp-pos-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .7rem; padding: .55rem .8rem; background: var(--panel); }
.hp-pos-search input { flex: 1; border: 0; background: transparent; font: inherit; outline: none; color: var(--ink); }
.hp-scan { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .7rem; padding: .55rem .8rem; color: var(--muted); font-size: .84rem; }
.hp-modes { display: inline-flex; gap: .3rem; }
.hp-mode { border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; padding: .5rem .8rem; font: 700 .82rem inherit; cursor: pointer; color: var(--ink); display: inline-flex; gap: .4rem; align-items: center; }
.hp-mode.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.hp-online { color: var(--ok); font-size: .8rem; font-weight: 700; }

.hp-pos { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 1rem; align-items: start; }
.hp-pos.with-cats { grid-template-columns: 190px minmax(0,1fr) 340px; }
.hp-catlist { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: .6rem; box-shadow: var(--shadow); }
.hp-catlist .t { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .4rem .6rem; }
.hp-catrow { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: .5rem; cursor: pointer; font-size: .84rem; }
.hp-catrow:hover { background: var(--panel2); } .hp-catrow.on { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); font-weight: 700; }
.hp-catrow .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); } .hp-catrow .sp { flex: 1; } .hp-catrow .c { color: var(--muted); font-size: .76rem; }
.hp-quick { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .8rem; align-items: center; }
.hp-quick::-webkit-scrollbar { display: none; }
.hp-quick .lab { color: var(--muted); font-size: .72rem; font-weight: 700; flex: none; }
.hp-quick button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; padding: .45rem .8rem; font: 600 .8rem inherit; cursor: pointer; white-space: nowrap; color: var(--ink); }
.hp-quick button b { color: var(--brand); }

/* Beam grid */
.hp-catchips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .8rem; }
.hp-catchips::-webkit-scrollbar { display: none; }
.hp-catchip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: .4rem .8rem; font: 600 .8rem inherit; cursor: pointer; white-space: nowrap; color: var(--ink); display: inline-flex; gap: .4rem; align-items: center; }
.hp-catchip .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }
.hp-catchip.on { background: var(--brand); color: #fff; border-color: var(--brand); } .hp-catchip.on .dot { background: #fff; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: .7rem; max-height: 64vh; overflow-y: auto; padding: 2px; }
.hp-prod { border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); padding: .5rem; cursor: pointer; position: relative; }
.hp-prod:hover { border-color: var(--brand); }
.hp-prod .th { width: 100%; aspect-ratio: 1; border-radius: .5rem; background: var(--panel2); display: grid; place-items: center; font-size: 2rem; margin-bottom: .4rem; }
.hp-prod .nm { font-size: .78rem; font-weight: 600; min-height: 2.4em; line-height: 1.2; }
.hp-prod .st { color: var(--muted); font-size: .68rem; margin: .15rem 0; }
.hp-prod .pr { font-weight: 800; font-size: .86rem; } .hp-prod .pr s { color: var(--muted); font-weight: 400; font-size: .72rem; }
.hp-prod .badge { position: absolute; top: .3rem; left: .3rem; font-size: .6rem; font-weight: 800; border-radius: .3rem; padding: .1rem .35rem; }
.hp-prod .badge.opts { background: #eef0ff; color: #4f46e5; } .hp-prod .badge.kit { background: var(--brand); color: #fff; } .hp-prod .badge.low { background: #fff3d6; color: #b45309; }
.hp-prod.out { opacity: .6; } .hp-prod .oos { position: absolute; top: .3rem; right: .3rem; font-size: .6rem; background: #fde8e8; color: #dc2626; border-radius: .3rem; padding: .1rem .35rem; }

/* Counter list */
.hp-list { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); overflow: hidden; }
.hp-list .lh { display: grid; grid-template-columns: 120px 1fr 120px 48px; gap: .8rem; padding: .7rem 1rem; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.hp-lrow { display: grid; grid-template-columns: 120px 1fr 120px 48px; gap: .8rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.hp-lrow:hover { background: var(--panel2); }
.hp-lrow .sku { color: var(--muted); font-size: .74rem; }
.hp-lrow .th { width: 2rem; height: 2rem; border-radius: .4rem; background: var(--panel2); display: grid; place-items: center; }
.hp-lrow .it { display: flex; align-items: center; gap: .6rem; }
.hp-lrow .it b { font-size: .86rem; } .hp-lrow .it small { color: var(--muted); font-size: .72rem; }
.hp-lrow .pr { text-align: right; font-weight: 700; }
.hp-lrow .add { width: 2rem; height: 2rem; border: 1px solid var(--line); background: var(--panel); border-radius: .45rem; cursor: pointer; color: var(--brand); font-size: 1.1rem; }
.hp-list-wrap { overflow-x: auto; }

/* order/cart panel */
.hp-order { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); padding: 1rem; display: flex; flex-direction: column; max-height: 78vh; }
.hp-order-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.hp-order-hd small { color: var(--muted); font-size: .72rem; text-transform: uppercase; } .hp-order-hd b { display: block; }
.hp-order-hd .clear { color: var(--muted); font-size: .78rem; cursor: pointer; }
.hp-addcust { display: flex; align-items: center; gap: .6rem; border: 1px dashed var(--brand); border-radius: .7rem; padding: .6rem .8rem; margin-bottom: .8rem; font-size: .82rem; color: var(--brand-ink); cursor: pointer; }
.hp-cart { flex: 1; overflow-y: auto; }
.hp-crow { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hp-crow .th { width: 2rem; height: 2rem; border-radius: .4rem; background: var(--panel2); display: grid; place-items: center; flex: none; }
.hp-crow .in { flex: 1; min-width: 0; }
.hp-crow .in b { font-size: .82rem; } .hp-crow .in .sku { color: var(--muted); font-size: .68rem; }
.hp-crow .in .note { color: var(--muted); font-size: .72rem; margin-top: .2rem; }
.hp-crow .price { font-weight: 800; font-size: .84rem; }
.hp-crow .qty { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; }
.hp-crow .qty button { width: 1.5rem; height: 1.5rem; border: 1px solid var(--line); background: var(--panel); border-radius: .4rem; cursor: pointer; color: var(--ink); }
.hp-order-foot { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .5rem; }
.hp-order-foot .disc { display: flex; align-items: center; gap: .5rem; color: var(--brand-ink); font-size: .84rem; margin-bottom: .6rem; cursor: pointer; }
.hp-order-foot .tot { display: flex; align-items: center; justify-content: space-between; font-weight: 800; margin-bottom: .8rem; }
.hp-order-foot .tot .big { font-size: 1.3rem; }
.hp-order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.hp-order-actions .co { grid-column: 1 / -1; background: var(--brand); color: #fff; border: 0; border-radius: .6rem; padding: .8rem; font: 800 .9rem inherit; cursor: pointer; }
.hp-order-actions .b { border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; padding: .7rem; font: 700 .84rem inherit; cursor: pointer; color: var(--ink); }

/* Settings grid */
.hp-set-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.hp-set { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); cursor: pointer; }
.hp-set.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--panel)); }
.hp-set .ic { width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: var(--panel2); display: grid; place-items: center; font-size: 1.1rem; margin-bottom: .7rem; }
.hp-set h3 { font-size: .95rem; font-weight: 800; margin-bottom: .3rem; display: flex; justify-content: space-between; }
.hp-set p { color: var(--muted); font-size: .8rem; line-height: 1.45; }

/* System Health */
.hp-hbanner { display: flex; align-items: center; gap: .8rem; background: #fdeceb; border: 1px solid #f7c9c5; border-radius: 1rem; padding: 1.1rem 1.3rem; margin-bottom: 1.2rem; }
.hp-hbanner .dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--danger); }
.hp-hbanner b { font-size: 1.05rem; } .hp-hbanner small { color: var(--muted); display: block; }
.hp-hgrp { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem; overflow: hidden; }
.hp-hgrp .gh { font-weight: 800; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.hp-hrow { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.hp-hrow:last-child { border-bottom: 0; }
.hp-hrow .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); flex: none; }
.hp-hrow.bad .dot { background: var(--danger); }
.hp-hrow .k b { display: block; font-size: .9rem; } .hp-hrow .k small { color: var(--muted); font-size: .78rem; }
.hp-hrow .sp { flex: 1; }
.hp-hrow .v { color: var(--muted); font-size: .84rem; font-family: ui-monospace, monospace; }
.hp-hrow .st { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; }
.hp-hrow .st.ok { background: #e9f8ef; color: #16a34a; } .hp-hrow .st.bad { background: #fdeaea; color: #dc2626; }

/* Generic data-driven views */
.hp-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.hp-page-head h1 { font-size: 1.6rem; font-weight: 800; }
.hp-page-head p { color: var(--muted); font-size: .86rem; margin-top: .2rem; }
.hp-gen-action { border: 0; background: var(--brand); color: #fff; border-radius: .6rem; padding: .6rem 1rem; font: 800 .82rem inherit; cursor: pointer; white-space: nowrap; flex: none; }
.hp-gen-action:hover { background: var(--brand-ink); }
.hp-kpis { flex-direction: row; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hp-kpis .hp-statcard { flex: 1 1 180px; }
.hp-gen-chart { width: 100%; height: 220px; display: block; }

.hp-toolbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 1rem 0 .8rem; }
.hp-toolbar .sp { flex: 1; }
.hp-tb-search { flex: 0 1 300px; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .7rem; padding: .5rem .8rem; background: var(--panel2); color: var(--muted); font-size: .86rem; }
.hp-tb-search input { flex: 1; border: 0; background: transparent; font: inherit; outline: none; color: var(--ink); }
.hp-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.hp-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: .4rem .8rem; font: 600 .78rem inherit; cursor: pointer; color: var(--ink); }
.hp-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.hp-tbl-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.hp-tbl { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
.hp-tbl th { text-align: left; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .8rem 1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.hp-tbl td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.hp-tbl tbody tr:last-child td { border-bottom: 0; }
.hp-tbl tbody tr:hover { background: var(--panel2); }
.hp-tbl .ta-r { text-align: right; }
.hp-tbl-empty { padding: 1.4rem 1rem; text-align: center; color: var(--muted); font-size: .85rem; }

.hp-badge { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .12rem .55rem; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.hp-badge--active, .hp-badge--completed, .hp-badge--paid, .hp-badge--credited, .hp-badge--received, .hp-badge--billed, .hp-badge--success, .hp-badge--balanced, .hp-badge--ok, .hp-badge--over { background: #e9f8ef; color: #16a34a; }
.hp-badge--pending, .hp-badge--held, .hp-badge--low, .hp-badge--expiring, .hp-badge--ordered, .hp-badge--setup, .hp-badge--recount, .hp-badge--queued { background: #fff3d6; color: #b45309; }
.hp-badge--voided, .hp-badge--refunded, .hp-badge--failed, .hp-badge--overdue, .hp-badge--out-of-stock, .hp-badge--expired, .hp-badge--short, .hp-badge--write-off, .hp-badge--on-hold { background: #fdeaea; color: #dc2626; }
.hp-badge--draft, .hp-badge--inactive, .hp-badge--disabled, .hp-badge--offline, .hp-badge--pending-, .hp-badge--open, .hp-badge--never { background: var(--panel2); color: var(--muted); }

.hp-barlist { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.hp-bar { display: grid; grid-template-columns: 140px 1fr 70px; align-items: center; gap: .8rem; font-size: .82rem; }
.hp-bar .track { height: .7rem; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.hp-bar .fill { display: block; height: 100%; border-radius: 999px; }
.hp-bar b { text-align: right; }

.hp-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-labels h3 { font-weight: 800; margin-bottom: .8rem; }
.hp-labels label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .8rem; }
.hp-labels select { display: block; width: 100%; margin-top: .3rem; border: 1px solid var(--line); border-radius: .6rem; padding: .55rem .7rem; font: inherit; background: var(--panel2); color: var(--ink); }
.hp-checks { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hp-checks label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--ink); margin: 0; }
.hp-label-preview { display: flex; flex-direction: column; align-items: center; }
.hp-tag { border: 1px dashed var(--brand); border-radius: .6rem; padding: 1rem 1.4rem; text-align: center; min-width: 220px; }
.hp-tag .nm { display: block; font-weight: 700; font-size: .9rem; }
.hp-tag .bc { display: block; letter-spacing: .1em; margin: .5rem 0; color: var(--ink); }
.hp-tag .row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.hp-tag .row b { color: var(--ink); font-size: 1rem; }

/* responsive */
.hp-scrim { position: fixed; inset: 0; background: rgba(15,18,28,.4); z-index: 25; display: none; }
@media (max-width: 1180px) {
    .hp-dash-top, .hp-perf { grid-template-columns: 1fr; }
    .hp-statcards { flex-direction: row; }
    .hp-ops { grid-template-columns: repeat(2,1fr); }
    .hp-set-grid { grid-template-columns: repeat(2,1fr); }
    .hp-pos, .hp-pos.with-cats { grid-template-columns: minmax(0,1fr); }
    .hp-labels { grid-template-columns: 1fr; }
    .hp-bar { grid-template-columns: 110px 1fr 64px; }
}
@media (max-width: 768px) {
    .hp { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
    .hp-side { position: fixed; top: 0; left: 0; bottom: 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
    .hp.side-open .hp-side { transform: none; } .hp.side-open .hp-scrim { display: block; }
    .hp-burger { display: inline-block; }
    .hp-crumb { display: none; }
    .hp-statcards { flex-direction: column; }
}
@media (max-width: 520px) { .hp-ops, .hp-set-grid { grid-template-columns: 1fr; } .hp-user span:not(.av) { display: none; } .hp-chip2 { display: none; } .hp-page-head { flex-direction: column; } .hp-kpis .hp-statcard { flex-basis: 100%; } }
