:root {
  --yellow: #f2b705; --yellow-dark: #d9a300; --yellow-soft: #fdf3d3; --yellow-ink: #8a6500;
  --side: #1f2226; --side-2: #2a2e33; --side-line: #33373d; --side-ink: #c5c9cf;
  --bg: #ecedf0; --card: #fff; --ink: #1f2226; --muted: #6b7079; --line: #e3e5e9; --line-2: #f0f1f4; --head: #f7f8fa;
  --up: #16a34a; --down: #dc2626; --star: #f2b705;
  --r: 12px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); display: flex; align-items: flex-start; -webkit-font-smoothing: antialiased; }
body.booting .side, body.booting .content, body.locked .side, body.locked .content, body.locked .mobilebar { visibility: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: 400; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--yellow-ink); }

/* ---------- sidebar ---------- */
.side { width: 240px; flex: 0 0 240px; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 0 14px; z-index: 30; }
.brand { padding: 22px 6px 18px; }
.brand img { display: block; width: 150px; height: auto; }
.brand-sub { margin-top: 10px; font-size: 13px; color: #c5c9cf; font-weight: 600; }
.brand-by { font-size: 11.5px; color: #7d828a; margin-top: 1px; letter-spacing: .2px; }
.brand-by::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--yellow); vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.side > .btn { margin: 4px 0 18px; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tabs button { display: flex; align-items: center; gap: 12px; background: none; border: 0; border-left: 3px solid transparent; border-radius: var(--r-sm); color: var(--side-ink); font: 500 15px var(--font); text-align: left; padding: 10px 12px; cursor: pointer; }
.tabs button svg { width: 19px; height: 19px; }
.tabs button:hover { background: var(--side-2); color: #fff; }
.tabs button.active { background: var(--side-2); color: #fff; border-left-color: var(--yellow); font-weight: 600; }
.side-foot { margin-top: auto; border-top: 1px solid var(--side-line); padding: 14px 4px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--side-2); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.side-foot .logout { margin-left: auto; background: none; border: 0; color: #8b9098; cursor: pointer; padding: 6px; border-radius: 8px; }
.side-foot .logout:hover { color: #fff; background: var(--side-2); }
.side-foot b { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.side-foot small { color: #8b9098; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8b9098; margin-right: 5px; vertical-align: 1px; }
.dot.ok { background: #22c55e; } .dot.bad { background: var(--down); }

/* ---------- content ---------- */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 32px 6px; }
.crumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.crumb span + span::before { content: "›"; margin-right: 8px; }
h1 { margin: 0; font: 700 34px/1.1 var(--font-head); letter-spacing: -.2px; }
.lead { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.head-actions { display: flex; gap: 8px; padding-top: 10px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 32px 0; }
.select-wrap select, .select-wrap input { min-width: 190px; }
.meta-row { padding: 12px 32px 0; color: var(--muted); font-size: 14px; }
.meta-row b { color: var(--ink); font-weight: 600; }

select, input { font: 15px var(--font); padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); min-width: 0; height: 46px; }
select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2226' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
select:focus, input:focus { outline: 3px solid rgba(242,183,5,.25); border-color: var(--yellow); }
input[type=checkbox] { width: 18px; height: 18px; height: 18px; accent-color: var(--ink); padding: 0; }
input::placeholder { color: #9aa0a8; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 15px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c9ccd2; }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn.primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn.big { height: 52px; font-size: 16px; }
.btn.small { height: 34px; padding: 0 11px; font-size: 13px; }
.btn.icon { width: 34px; padding: 0; }
.btn.danger { color: var(--down); }
.btn[disabled] { opacity: .5; pointer-events: none; }

main { padding: 18px 32px 60px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow-x: auto; }
.card.flush > table { display: table; }
.card.dashed { background: transparent; box-shadow: none; border: 1.5px dashed #cfd2d8; }
.card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.card-head h3, .card h3 { margin: 0; font: 600 21px/1.2 var(--font-head); }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.req { color: var(--down); }
.ico { width: 36px; height: 36px; border-radius: 9px; background: var(--yellow-soft); color: var(--yellow-ink); display: grid; place-items: center; flex: none; }
.ico svg { width: 19px; height: 19px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.note { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }
.list-head { color: var(--muted); font-size: 14px; margin: 4px 2px 10px; }

.search { position: relative; flex: 1; min-width: 240px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding-left: 42px; }

.form-grid { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto auto; gap: 14px; align-items: end; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font: 600 15px var(--font-head); }
.form-grid .f-check { flex-direction: row; align-items: center; gap: 10px; height: 46px; font: 500 15px var(--font); white-space: nowrap; }
.more { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--yellow-ink); text-decoration: underline; text-underline-offset: 3px; }
.more form { margin-top: 14px; }

.opt { color: var(--muted); font-weight: 400; font-family: var(--font); font-size: 13px; }

/* logowanie */
.login { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 20% 0%, #2a2e33 0%, var(--side) 60%); }
.login-box { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 34px 32px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login-logo { width: 170px; display: block; }
.login-sub { margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.login-sub span { font-weight: 400; color: #9aa0a8; margin-left: 4px; }
.login h2 { font: 700 28px var(--font-head); margin: 26px 0 6px; }
.login-info { color: var(--muted); margin: 0 0 6px; font-size: 14px; }
.login form, .stack { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.login label, .stack label { display: flex; flex-direction: column; gap: 7px; font: 600 15px var(--font-head); }
.login-err { background: #fef2f2; color: var(--down); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 500; }

/* menu mobilne */
.mobilebar { display: none; }
.scrim { display: none; }

/* wyjaśnienie wyniku */
.explain { margin-top: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 20px; }
.explain summary { cursor: pointer; font-weight: 600; color: var(--yellow-ink); }
.explain-body { padding-top: 10px; font-size: 14.5px; }
.explain-body ul { padding-left: 20px; margin: 8px 0; }
.explain-body li { margin: 4px 0; }
table.mini { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13.5px; }
table.mini th, table.mini td { padding: 8px 10px; }

/* raport miesięczny */
.seg { display: inline-flex; background: #fff; border-radius: var(--r-sm); padding: 4px; gap: 4px; box-shadow: var(--shadow); margin-bottom: 16px; flex-wrap: wrap; }
.seg button { border: 0; background: none; font: 600 14px var(--font); padding: 9px 14px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
table.monthly th, table.monthly td { text-align: right; padding: 10px 10px; white-space: nowrap; }
table.monthly th:first-child, table.monthly td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 240px; white-space: normal; box-shadow: 1px 0 0 var(--line-2); }
table.monthly th:first-child { background: var(--head); }
table.monthly tr.own td { background: #fffbeb; }
table.monthly td .v { font: 700 16px var(--font-head); }
table.monthly td .d { font-size: 12px; display: block; }
table.monthly td.na { color: #c0c4ca; }

/* diagnostyka */
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font: 600 14px var(--font); }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { color: var(--muted); font-size: 13px; margin-right: auto; }
.dbg .size { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ustawienia */
.users-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px auto !important; }
.grid2 .card.wide { grid-column: 1 / -1; }

/* miasta */
.markets { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 18px; }
.market { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.market-head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 14px; }
.market-head h3 { margin: 0; font: 700 24px/1.1 var(--font-head); }
.market-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.market-head .btn { margin-left: auto; }
.own-row { margin: 0 22px 12px; padding: 14px 16px; border-radius: var(--r-sm); background: #fffbeb; border: 1px solid #f7e4a6; }
.own-top { display: flex; align-items: center; gap: 12px; }
.own-top .pname { flex: 1; min-width: 0; }
.own-pos { text-align: right; white-space: nowrap; }
.own-pos b { font: 700 26px/1 var(--font-head); }
.own-pos span { color: var(--muted); font-size: 13px; }
.vs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.vs div { background: #fff; border-radius: 8px; padding: 9px 11px; }
.vs .l { font-size: 12px; color: var(--muted); }
.vs .v { font: 700 18px var(--font-head); }
.vs .c { font-size: 12px; color: var(--muted); }
.no-own { margin: 0 22px 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--head); color: var(--muted); font-size: 14px; }
.market-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 22px 18px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.market-foot b { color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: 600 14px var(--font); color: var(--yellow-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.kpi > div { min-width: 0; }
.kpi .l { font-size: 14px; color: var(--muted); }
.kpi .v { font: 700 30px/1.15 var(--font-head); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v.sm { font-size: 20px; padding-top: 6px; }
.kpi.dark { background: var(--side); color: #fff; }
.kpi.dark .l { color: #9aa0a8; }
.kpi.dark .ico { background: var(--yellow); color: var(--ink); }

/* tabele */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 500 14px var(--font); color: var(--muted); padding: 14px 14px; background: var(--head); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfbfc; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
.rank th.sortable { cursor: pointer; user-select: none; }
.rank th.sortable:hover { color: var(--ink); }
.rank th.sorted { color: var(--ink); font-weight: 700; }
.rank th.sorted::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top: 5px solid var(--yellow-dark); vertical-align: -1px; }
.rank tr.own td { background: #fffbeb; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; border: 1.5px solid var(--ink); font: 700 16px var(--font-head); background: #fff; }
.badge.p1 { background: var(--yellow); border-color: var(--yellow); }
.badge.p2 { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge.p3 { background: #e5e7eb; border-color: #e5e7eb; }
.mv { font-size: 13px; font-weight: 700; white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .eq { color: var(--muted); }
.pname { font: 600 16px var(--font-head); }
.rank td:nth-child(3) { min-width: 240px; }
.rank th, .rank td { padding-left: 10px; padding-right: 10px; }
.rank th:nth-child(4), .rank td:nth-child(4) { white-space: nowrap; }
.pname a { color: inherit; text-decoration: none; }
.pname a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.psub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: #4b5058; white-space: nowrap; }
.pill.own { background: var(--yellow-soft); color: var(--yellow-ink); }
.pill.own::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-ink); }
.stars { color: var(--star); letter-spacing: -1px; font-size: 13px; }
.rating b { font: 700 17px var(--font-head); }
.score { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.score .bar { width: 52px; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: var(--yellow); border-radius: 3px; }
.score b { font: 700 17px var(--font-head); min-width: 40px; text-align: right; }
.partial { color: var(--muted); cursor: help; }
.cid { font-size: 12px; color: var(--muted); }

/* wykresy */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 .card { margin: 0; }
.chart { position: relative; min-height: 300px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; stroke: none; fill: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.chart svg text { font-family: var(--font); }
.chart .tip { position: absolute; pointer-events: none; background: var(--side); color: #fff; font-size: 13px; padding: 10px 12px; border-radius: var(--r-sm); white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 3; }
.chart .tip b { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 14px; }
.chart .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg.donut { width: 220px; height: 220px; max-width: 100%; }
.today-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; user-select: none; }
.chip i { width: 10px; height: 10px; border-radius: 3px; }
.chip.off { background: transparent; color: var(--muted); }
.chip.off i { opacity: .35; }
.empty { color: var(--muted); padding: 44px 20px; text-align: center; }

.result { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.result .info { flex: 1; min-width: 220px; }
.result .addr { color: var(--muted); font-size: 13px; }
.result input:not([type=checkbox]) { width: 180px; height: 38px; }
.places input[type=text] { width: 100%; height: 38px; padding: 6px 10px; }
.places .actions { white-space: nowrap; text-align: right; }
.places .actions .btn + .btn { margin-left: 4px; }

/* status */
.status-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.summary h4 { margin: 0 0 14px; font: 600 17px var(--font-head); }
.sum-item { display: flex; gap: 12px; padding: 7px 0; }
.sum-item svg { color: var(--up); margin-top: 2px; }
.sum-item.bad svg { color: var(--down); }
.sum-item b { display: block; font: 600 15px var(--font-head); }
.sum-item span { color: var(--muted); font-size: 13.5px; }
.out { background: var(--head); border: 1px solid var(--line); padding: 14px; border-radius: var(--r-sm); white-space: pre-wrap; font-size: 13px; margin: 14px 0 0; max-height: 360px; overflow: auto; }
.dbg { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.dbg:last-child { border-bottom: 0; }
.ok { color: var(--up); font-weight: 600; } .bad { color: var(--down); font-weight: 600; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--side); color: #fff; padding: 12px 18px 12px 16px; border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 50; max-width: 90vw; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; }
.toast.err::before { background: var(--down); }

@media (max-width: 1200px) { .markets { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } .status-layout { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  body { display: block; }
  .mobilebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; background: var(--side); padding: 10px 14px; }
  .mobilebar img { height: 30px; }
  .burger { background: var(--side-2); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
  .burger svg { width: 22px; height: 22px; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: 100%; width: 270px; transform: translateX(-100%); transition: transform .22s ease; z-index: 60; box-shadow: 10px 0 40px rgba(0,0,0,.3); }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
  .content { min-height: auto; }
  .pagehead, .filters, .meta-row, main { padding-left: 14px; padding-right: 14px; }
  .pagehead { flex-direction: column; gap: 6px; padding-top: 18px; }
  h1 { font-size: 28px; }
  .head-actions { flex-wrap: wrap; padding-top: 4px; }
  .filters .select-wrap { flex: 1 1 calc(50% - 10px); }
  .filters select { height: 42px; font-size: 14px; padding-left: 10px; }
  .select-wrap select, .select-wrap input { width: 100%; min-width: 0; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; } .kpi .ico { display: none; } .kpi .v { font-size: 24px; }
  .form-grid, .users-grid { grid-template-columns: 1fr !important; }
  .markets { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .vs .v { font-size: 16px; }
  .market-head { flex-wrap: wrap; } .market-head .btn { margin-left: 0; }
  .card { padding: 18px 16px; }
  .card.flush { overflow-x: auto; }
  .status-layout { grid-template-columns: 1fr; }
}
