:root {
  --pink: #e6007e; --pink-dark: #c10069;
  --bg: #f4f5f7; --card: #fff; --line: #e6e8ec; --text: #232a33; --muted: #8a929c;
  --green: #16a06a; --amber: #d98b00; --red: #d83a3a; --blue: #2f6fdb; --purple: #7b5cd6;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", "Microsoft JhengHei", system-ui, sans-serif; background: var(--bg); color: var(--text); }

/* ===== 深色頂欄 ===== */
.topbar { display: flex; align-items: center; gap: 12px; background: #161b22; padding: 12px 22px; border-bottom: 1px solid #232a33; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand .logo { font-size: 22px; }
.brand b { font-size: 16px; color: #f3f4f6; }
.brand .sub { color: #9aa3ad; font-size: 14px; }
.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topnav a { color: #c2c8d0; font-size: 14px; text-decoration: none; padding: 7px 14px; border-radius: 8px; }
.topnav a:hover { background: #232a33; color: #fff; }
.topnav a.active { background: #3b4452; color: #fff; font-weight: 600; }
.topnav .nav-gear { font-size: 15px; padding: 6px 10px; }
.status { font-size: 12px; color: #9aa3ad; margin-left: 12px; }
.status .pill { background: #232a33; color: #cbd2da; padding: 3px 9px; border-radius: 11px; font-weight: 600; }
.status .pill.live { background: #14331f; color: #4ade80; }

/* ===== 上架工具子分頁 ===== */
.subtabs { display: flex; gap: 6px; background: var(--card); padding: 9px 22px; border-bottom: 1px solid var(--line); }
.subtabs a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 6px 16px; border-radius: 8px; }
.subtabs a:hover { background: #f1f2f4; color: var(--text); }
.subtabs a.active { background: #fdeef6; color: var(--pink); font-weight: 600; }

/* ===== 篩選列 ===== */
.filterbar { display: flex; align-items: center; gap: 10px; background: var(--card); padding: 12px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fld { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tilde { color: var(--muted); }
input[type=date] { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search { flex: 1; min-width: 240px; font: inherit; font-size: 13px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 22px; background: #f7f8fa; }
.search:focus { outline: none; border-color: var(--pink); background: #fff; }
.btn { font: inherit; font-size: 13px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.btn:hover { background: #f1f2f4; }
.btn.primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn.primary:hover { background: var(--pink-dark); }
.btn.ghost { color: var(--muted); }
.btn.small { padding: 5px 11px; font-size: 12px; }

/* ===== 狀態分頁 ===== */
.tabs { display: flex; gap: 4px; background: var(--card); padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 13px 14px; font-size: 14px; color: #56606b; border-bottom: 3px solid transparent; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; }
.tab .ico { font-size: 15px; display: inline-flex; align-items: center; }
.tab .ico svg { width: 16px; height: 16px; }
.bulk-title svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
.tab .cnt { color: var(--muted); font-size: 13px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--pink); border-bottom-color: var(--pink); font-weight: 600; }
.tab.active .cnt { color: var(--pink); }

main { max-width: 1180px; margin: 0 auto; padding: 16px 22px 60px; }
.list { display: flex; flex-direction: column; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* ===== 訂單列 ===== */
.row { display: grid; grid-template-columns: 220px 84px 1fr 220px 160px 38px; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-top: none; padding: 16px; }
.order-block:first-child .row { border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.order-block:last-child .row { border-radius: 0 0 10px 10px; }
.order-block .row { cursor: pointer; }
.order-block.open:last-child .row { border-radius: 0; }
.order-block.open .row { background: #f7f9fc; }
.row:hover { background: #fcfcfd; }
.c-order .mono { font-size: 15px; font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; margin-top: 6px; }
.b-checked_out { background: #eef3ff; color: var(--blue); }
.b-at_warehouse_transit, .b-at_warehouse_arrived { background: #fff3df; color: var(--amber); }
.b-shipped_overseas { background: #f0ecfd; color: var(--purple); }
.b-shipped_tw { background: #fdeef6; color: var(--pink); }
.b-delivered { background: #e7f7ee; color: var(--green); }
.b-returned { background: #fbeee0; color: #b5651d; }
.b-cancelled { background: #eef0f2; color: var(--muted); }
.b-error { background: #fce8e8; color: var(--red); }
.committed { font-size: 11px; color: var(--green); margin-top: 5px; }
.c-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #f3f4f6; }
.c-thumb .ph { width: 84px; height: 84px; border-radius: 8px; background: #f0f1f3; display: flex; align-items: center; justify-content: center; color: #c4c8ce; font-size: 22px; }
.c-goods .name { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-goods .art { color: var(--muted); font-size: 12px; margin-top: 5px; font-family: ui-monospace, monospace; }
.c-goods .spec { display: inline-block; margin-top: 6px; font-size: 12px; color: #444; background: #f4f5f7; border-radius: 6px; padding: 2px 8px; }
.c-recipient .name { font-size: 13px; }
.c-recipient .addr { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.c-date { font-size: 12px; color: var(--muted); text-align: right; }
.c-date .o { color: var(--text); }
.c-date .ship { margin-top: 8px; }
.c-date .track { font-family: ui-monospace, monospace; font-size: 11px; color: var(--blue); margin-top: 6px; word-break: break-all; }
.c-act { display: flex; align-items: center; justify-content: center; }
.c-act .chev { color: #c4c8ce; font-size: 18px; display: inline-block; transition: transform .15s; }
.order-block.open .c-act .chev { transform: rotate(90deg); }

/* ===== 就地展開明細 ===== */
.order-detail { background: #f7f8fa; border: 1px solid var(--line); border-top: none; padding: 22px 26px; }
.order-block.open:last-child .order-detail { border-radius: 0 0 10px 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; max-width: 820px; }
.dg-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dg-value { font-size: 14px; color: var(--text); word-break: break-all; }
.dg-value.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.dg.full { grid-column: 1 / -1; }
.detail-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sec-title { font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.detail-actions { margin-top: 18px; display: flex; gap: 8px; }
.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 16px; }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before { content: ''; position: absolute; left: -23px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; }
.tl-item.head::before { background: var(--amber); }
.tl-item.tail::before { background: var(--purple); }
.tl-desc { font-size: 13px; line-height: 1.45; }
.tl-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.leg-tag { font-size: 10px; padding: 0 6px; border-radius: 5px; margin-left: 6px; }
.leg-tag.head { background: #fff3df; color: var(--amber); }
.leg-tag.tail { background: #f0ecfd; color: var(--purple); }

.empty { padding: 50px; text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.pager button { font: inherit; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: default; }

/* ===== 側邊抽屜（選品/商品編輯用）===== */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 460px; max-width: 92vw; background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.18); overflow-y: auto; padding: 22px; }
.drawer-panel.wide { width: 560px; }
.dh { display: flex; justify-content: space-between; align-items: flex-start; }
.dh .close { cursor: pointer; font-size: 22px; color: var(--muted); border: none; background: none; }
.d-title { font-size: 18px; font-weight: 700; }
.d-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.flabel { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); margin: 12px 0; }
.flabel input, .flabel select { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.flabel .hint { color: var(--green); font-size: 11px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.d-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.d-imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pricing-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.pricing-grid input { font: inherit; font-size: 13px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; }
.sku-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.sku-table th, .sku-table td { padding: 7px 8px; font-size: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sku-table th { color: var(--muted); font-weight: 600; }
.sku-table input { width: 72px; font: inherit; font-size: 12px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; }
.sku-table .profit { font-weight: 600; color: var(--green); }
.sku-table .profit.neg { color: var(--red); }

/* ===== 表格（商品管理）===== */
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 12px; }
th.chk, td.chk { width: 34px; text-align: center; }
.goods-name { font-weight: 600; }
.sku { color: var(--muted); font-size: 11px; }

/* ===== 選品商品格 ===== */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.pimg img, .pimg .ph { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; background: #f0f1f3; }
.pimg .ph { display: flex; align-items: center; justify-content: center; font-size: 36px; color: #c4c8ce; }
.ptitle { font-size: 13px; font-weight: 600; margin-top: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmeta { font-size: 12px; color: var(--muted); margin-top: 5px; }
.pmeta2 { font-size: 11px; color: #b0b6bd; margin-top: 2px; }
.pprice { font-size: 12px; color: var(--pink); font-weight: 600; margin-top: 8px; }

/* ===== Dashboard 總覽 ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi-ic { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--accent, var(--pink)); background: color-mix(in srgb, var(--accent, var(--pink)) 12%, #fff); }
.kpi-ic svg { width: 21px; height: 21px; }
.kpi-body { min-width: 0; }
.kpi-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi-value { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.5px; line-height: 1; }
.kpi-value .kpi-sub { font-size: 14px; color: #b0b6bd; font-weight: 600; }
.kpi-hint { display: none; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.dash-card h2 { font-size: 15px; margin: 0 0 14px; }
.todo { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: var(--text); transition: background .12s; }
.todo:hover { background: #fafbfc; }
.todo-ic { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--c, #8a929c); background: color-mix(in srgb, var(--c, #8a929c) 12%, #fff); }
.todo-ic svg { width: 16px; height: 16px; }
.todo-label { flex: 1; font-size: 13px; }
.todo-arrow { color: #c4c8ce; font-size: 18px; }
.sbar { margin-bottom: 11px; }
.sbar-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.sbar-top b { color: var(--text); }
.sbar-track { height: 8px; background: #eef0f2; border-radius: 5px; overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 5px; transition: width .4s ease; min-width: 2px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ql { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--text); font-size: 13px; font-family: inherit; cursor: pointer; }
.ql:hover { background: #f2f3f5; border-color: #d6d9de; }
.ql span { font-size: 16px; display: inline-flex; align-items: center; color: var(--muted); }
.ql span svg { width: 17px; height: 17px; }
.ql.primary span { color: var(--pink); }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #232a33; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; max-width: 80%; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }

/* ===== 響應式 ===== */
@media (max-width: 820px) {
  .dash-cols { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .topnav { margin-left: 0; flex-wrap: wrap; }
  .tablewrap { overflow-x: auto; }
  table { min-width: 720px; }
  .row { min-width: 720px; }
  .drawer-panel, .drawer-panel.wide { width: 100%; max-width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ===== 批量依品牌上架 ===== */
.bulk-bar { background: #fff7fb; border-bottom: 1px solid #f4cfe2; padding: 14px 22px; }
.bulk-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bulk-title { font-weight: 700; font-size: 14px; color: var(--pink-dark); }
.bulk-row .search { max-width: 300px; flex: 0 1 300px; }
.bulk-row select { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bulk-results { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; max-height: 340px; overflow-y: auto; }
.bulk-summary { font-size: 13px; margin-bottom: 8px; }
.bulk-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f2f3f5; }
.bulk-item:last-child { border-bottom: none; }
.bulk-item.ok > span:first-child { color: var(--green); font-weight: 700; }
.bulk-item.fail > span:first-child { color: var(--red); font-weight: 700; }
.bulk-item .bi-title { flex: 1; }
.bulk-item .bi-msg { color: var(--muted); font-size: 12px; }

/* ===== 待採購卡 ===== */
.pend-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pend-head h2 { margin: 0; }
.pend-head small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.pend-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f2f3f5; }
.pend-item:last-child { border-bottom: none; }
.pi-title { font-size: 13px; font-weight: 600; }
.pi-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pi-buy { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pi-price { font-size: 13px; color: var(--pink); font-weight: 600; }
.pi-warn { font-size: 12px; color: var(--amber); }
.frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== 業績儀表板 ===== */
.sales-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 18px; }
.skpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--accent, var(--pink)); background: #fff; }
.skpi-v { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.skpi-l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sales-chart { margin-bottom: 6px; }
.sbars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding: 8px 0; }
.sbar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.sbar-b { width: 100%; min-height: 2px; background: linear-gradient(to top, var(--pink), #f5a3d0); border-radius: 3px 3px 0 0; transition: height .3s; }
.sbar-col:hover .sbar-b { background: var(--pink-dark); }
.sbars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 2px 0 4px; }
.sales-subtitle { font-size: 14px; margin: 18px 0 10px; }
.top-products { display: flex; flex-direction: column; }
.tp-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #f2f3f5; font-size: 13px; }
.tp-row:last-child { border-bottom: none; }
.tp-rank { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: #f4f5f7; color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tp-row:nth-child(1) .tp-rank { background: #fdeef6; color: var(--pink); }
.tp-img { width: 34px; height: 34px; flex-shrink: 0; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); background: #f0f1f3; }
.tp-img.ph { display: inline-block; }
.tp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-qty { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tp-rev { font-weight: 700; color: var(--pink); white-space: nowrap; min-width: 84px; text-align: right; }
@media (max-width: 820px) {
  .sales-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 選品勾選 / 批量選取列 ===== */
.pcard { position: relative; }
.pcard.selected { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(230, 0, 126, .25); }
.pcard-chk { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 6px; padding: 3px; display: inline-flex; cursor: pointer; }
.pcard-chk input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--pink); margin: 0; }
.sel-bar { position: fixed; bottom: 18px; left: calc(50% + 106px); transform: translateX(-50%); background: #161b22; color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); z-index: 55; }
.sel-bar .sel-info { font-size: 13px; }
.sel-bar .sel-info b { color: #4ade80; font-size: 15px; }
.sel-bar select { font: inherit; font-size: 12px; padding: 5px 8px; border-radius: 7px; border: 1px solid #3b4452; background: #232a33; color: #fff; }
@media (max-width: 820px) {
  .sel-bar { left: 50%; flex-wrap: wrap; justify-content: center; max-width: 94vw; }
}

/* ===== 左側分組選單版面 ===== */
body.has-sidebar { padding-left: 212px; }
body.has-sidebar .topbar { display: none; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 212px; background: #161b22; color: #c2c8d0; display: flex; flex-direction: column; overflow-y: auto; z-index: 50; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid #232a33; }
.sb-brand .sb-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--pink); display: inline-flex; align-items: center; justify-content: center; font-size: 0; }
.sb-brand .sb-logo svg { width: 18px; height: 18px; color: #fff; }
.sb-brand b { color: #f3f4f6; font-size: 15px; display: block; line-height: 1.2; }
.sb-brand small { color: #8a929c; font-size: 11px; }
.sb-nav { flex: 1; padding: 8px 0; }
.sb-group { font-size: 11px; color: #6b7480; padding: 14px 18px 6px; letter-spacing: .5px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #c2c8d0; text-decoration: none; font-size: 14px; border-left: 3px solid transparent; }
.sb-item:hover { background: #1e242c; color: #fff; }
.sb-item.active { background: #232a33; color: #fff; font-weight: 600; border-left-color: var(--pink); }
.sb-ic { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 0; }
.sb-ic svg { width: 18px; height: 18px; }
.sb-foot { padding: 14px 18px; border-top: 1px solid #232a33; font-size: 12px; color: #8a929c; }
.sb-foot .pill { background: #232a33; color: #cbd2da; padding: 3px 9px; border-radius: 11px; font-weight: 600; }
.sb-foot .pill.live { background: #14331f; color: #4ade80; }

@media (max-width: 820px) {
  body.has-sidebar { padding-left: 0; }
  .sidebar { position: static; width: 100%; height: auto; }
  .sb-nav { display: flex; flex-wrap: wrap; padding: 6px; }
  .sb-group { width: 100%; padding: 8px 12px 2px; }
  .sb-item { border-left: none; border-radius: 8px; }
}
