:root {
  --red: #e1251b;
  --red-dark: #c81623;
  --red-soft: #fff1f0;
  --price: #e4393c;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --line: #e8e8e8;
  --line-soft: #f0f0f0;
  --text: #262626;
  --text-2: #595959;
  --muted: #8c8c8c;
  --ok: #16a34a;
  --ok-bg: #ecfdf3;
  --warn: #d97706;
  --warn-bg: #fff7e6;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --blue: #2563eb;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --p-ddx: #2563eb;
  --p-pdd: #f97316;
  --p-nm: #16a34a;
  --p-sqj: #9333ea;
  --p-jdu: #e1251b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg);
}
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body:not(.is-admin) .admin-only { display: none !important; }

/* App shell */
.app { height: 100%; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 24px; flex: none;
  background: var(--red); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand h1 { font-size: 18px; margin: 0; font-weight: 700; white-space: nowrap; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--red);
  display: grid; place-items: center;
}
.logo-mark svg.i { width: 19px; height: 19px; }
.tabs { display: flex; height: 100%; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tab {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 16px; border: 0; background: none; cursor: pointer;
  color: rgba(255, 255, 255, .82); font: inherit; font-size: 15px; white-space: nowrap; flex: none; position: relative;
}
.tab:hover { color: #fff; background: rgba(0, 0, 0, .08); }
.tab.active { color: #fff; font-weight: 600; background: rgba(0, 0, 0, .14); }
.tab.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.sync-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 13px;
}
.sync-pill:hover { background: rgba(255, 255, 255, .22); }
.sync-pill.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border: 0; border-radius: 18px; background: rgba(0, 0, 0, .12); color: #fff; cursor: pointer; font: inherit; }
.user-btn:hover { background: rgba(0, 0, 0, .2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; right: 0; top: 44px; width: 200px; background: #fff; color: var(--text); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 6px; z-index: 20;
}
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head span { font-size: 12px; color: var(--muted); }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: inherit; color: var(--text); }
.menu button:hover { background: var(--bg); color: var(--red); }

/* Platform status strip (admin) */
.platform-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 12px 24px 0; flex: none; }
.pcell {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 0;
  background: var(--panel); border-radius: 8px; padding: 8px 12px; font-size: 12px; cursor: pointer; box-shadow: var(--shadow);
  border-left: 3px solid transparent;
}
.pcell[data-p=ddx] { border-left-color: var(--p-ddx); }
.pcell[data-p=pdd] { border-left-color: var(--p-pdd); }
.pcell[data-p=nm] { border-left-color: var(--p-nm); }
.pcell[data-p=sqj] { border-left-color: var(--p-sqj); }
.pcell[data-p=jdu] { border-left-color: var(--p-jdu); }
.acc-count { font-weight: 400; font-size: 11px; color: var(--blue); background: #eff6ff; border-radius: 3px; padding: 0 4px; }
.pcell:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
.pcell b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcell b .muted { font-weight: 400; font-size: 12px; }
.pcell .sub { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
.pcell .dot { grid-row: span 2; }
.dot.err { background: var(--bad); }
.dot.run { background: var(--warn); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

main { flex: 1; min-height: 0; padding: 12px 24px 20px; display: flex; flex-direction: column; }
.view { display: none; flex: 1; min-height: 0; flex-direction: column; gap: 12px; }
.view.active { display: flex; }
.card { background: var(--panel); border-radius: 8px; box-shadow: var(--shadow); min-width: 0; }
.card.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll-x { overflow-x: auto; flex: none; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px;
  border: 1px solid #d9d9d9; background: #fff; border-radius: 6px; cursor: pointer; font: inherit; color: var(--text); white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.block { width: 100%; }
.btn.lg { height: 42px; font-size: 16px; font-weight: 600; }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; gap: 4px; }
.btn.sm svg.i { width: 13px; height: 13px; }
.btn.danger:hover:not(:disabled) { border-color: var(--bad); color: var(--bad); }
.btn.icon-only { width: 32px; padding: 0; }
.btn.push { margin-left: auto; }
select, input[type=date], input[type=text], input[type=password], input:not([type]), .search-input {
  height: 32px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font: inherit; color: var(--text); padding: 0 10px; outline: none;
}
select:focus, input:focus, .search-input:focus-within { border-color: var(--red); box-shadow: 0 0 0 2px rgba(225, 37, 27, .1); }
.search-input { display: flex; align-items: center; gap: 6px; color: var(--muted); min-width: 220px; flex: 1; max-width: 320px; }
.search-input input { border: 0; outline: 0; font: inherit; flex: 1; min-width: 0; height: 30px; padding: 0; box-shadow: none !important; }
.date-range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.segmented { display: inline-flex; background: #f2f3f5; border-radius: 6px; padding: 2px; gap: 2px; flex: none; }
.segmented button { border: 0; background: none; padding: 0 12px; height: 28px; cursor: pointer; font: inherit; color: var(--text-2); border-radius: 4px; white-space: nowrap; }
.segmented button:hover { color: var(--red); }
.segmented button.active { background: #fff; color: var(--red); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.segmented.small button { height: 24px; padding: 0 10px; font-size: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; flex: none; }
.muted { color: var(--muted); font-size: 13px; }
.err-text { color: var(--bad); }

/* Check view */
#view-check.active { flex-direction: row; gap: 16px; }
.query-panel { width: 340px; flex: none; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.panel-title svg.i { color: var(--red); width: 18px; height: 18px; }
.ta-wrap { position: relative; flex: 1; display: flex; min-height: 200px; }
#q {
  flex: 1; width: 100%; resize: none; border: 1px solid #d9d9d9; border-radius: 8px; padding: 12px 12px 30px; background: #fafafa;
  font: 15px/1.8 Consolas, "Courier New", monospace; outline: none; color: var(--text);
}
#q:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 2px rgba(225, 37, 27, .1); }
#q::placeholder { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; color: #bfbfbf; }
.ta-count { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--muted); background: #fff; padding: 0 6px; border-radius: 4px; }
.row { display: flex; gap: 8px; }
.row select { flex: 1; min-width: 0; }
.sync-note { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); }
.sync-note > :first-child { display: flex; align-items: center; gap: 6px; }
.sync-note .dot { width: 6px; height: 6px; }

.result-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: none; }
.summary .s { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 8px; padding: 12px 16px; box-shadow: var(--shadow); min-width: 0; }
.summary .s > div { min-width: 0; }
.summary .s span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.summary .s b { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.s-ic { width: 40px; height: 40px; border-radius: 8px; display: grid !important; place-items: center; flex: none; }
.s-ic svg.i { width: 20px; height: 20px; }
.s-ic.all { background: #eff4ff; color: var(--blue); }
.s-ic.ok { background: var(--ok-bg); color: var(--ok); }
.s-ic.warn { background: var(--warn-bg); color: var(--warn); }
.s-ic.bad { background: var(--bad-bg); color: var(--bad); }
.result-card { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.bar-actions { display: flex; gap: 8px; }
.res { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.res svg.i { width: 14px; height: 14px; stroke-width: 2.5; }
.res.ok { color: var(--ok); }
.res.warn { color: var(--warn); }
.res.bad { color: var(--bad); }
.strong-no { font-weight: 600; }
.pbadge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, #fff); border: 1px solid color-mix(in srgb, var(--pc) 28%, #fff);
}
.prod-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.prod-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.grid td.price { color: var(--price); font-weight: 700; font-size: 15px; }
.grid td.time { color: var(--text-2); }
.grid tr.missing td { background: #fffafa; }
.grid tr.similar td { background: #fffdf5; }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty b { color: var(--text-2); font-size: 15px; font-weight: 600; }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 6px; }
.empty-ic svg.i { width: 30px; height: 30px; }

/* Tables */
.table-wrap { flex: 1; min-height: 0; overflow: auto; position: relative; }
.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th {
  position: sticky; top: 0; background: #fafafa; text-align: left; font-weight: 600; color: var(--text-2);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1;
}
.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.grid tbody tr:hover td { background: #fff7f6; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid .mono, .mono { font-family: Consolas, "Courier New", monospace; white-space: nowrap; }
.grid .nowrap { white-space: nowrap; }
.grid .prod { min-width: 260px; max-width: 460px; }
.grid .prod > div:first-child:not(.prod-name) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid .strong { font-weight: 700; color: var(--price); }
.grid th.sort { cursor: pointer; }
.grid th.sort:hover, .grid th.sort.active { color: var(--red); }
.grid th.sort.active::after { content: " ↓"; }
.copyable { cursor: pointer; }
.copyable:hover { color: var(--red); text-decoration: underline; }
.ops { display: flex; gap: 6px; }
.tag { display: inline-block; padding: 0 8px; line-height: 22px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.gray { background: #f2f3f5; color: var(--text-2); }
.tag.red { background: var(--red-soft); color: var(--red); }
.ptag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ptag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--pc, #999); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.flat { border-radius: 0 0 8px 8px; }

/* Dashboard */
#view-dash.active, #view-runs.active { overflow-y: auto; }
.kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; flex: none; }
.kpi { background: var(--panel); border-radius: 8px; padding: 12px 16px; min-width: 0; box-shadow: var(--shadow); border-top: 3px solid #d9d9d9; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.ok { border-top-color: var(--ok); }
.kpi.ok b { color: var(--ok); }
.kpi.bad { border-top-color: var(--bad); }
.kpi.bad b { color: var(--bad); }
.kpi.accent { border-top-color: var(--red); background: var(--red-soft); }
.kpi.accent b { color: var(--price); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; flex: none; }
.panel { padding: 14px; overflow-x: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-head b { font-size: 15px; }
.panel-head.pad { padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.ph-left, .ph-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chart { height: 200px; }
.chart svg { display: block; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .gl { stroke: var(--line-soft); }
.chart rect:hover { opacity: .75; }
.bar-valid { fill: var(--ok); }
.bar-income { fill: var(--red); }
.bar-gmv { fill: var(--blue); }
.prod-wrap { max-height: 640px; min-height: 240px; }
.cover td, .cover th { white-space: nowrap; }
.prog { display: flex; align-items: center; gap: 8px; }
.bar { width: 120px; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); }

/* Login */
.login-screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; background: var(--bg); }
.login-band { width: 100%; height: 260px; background: var(--red); display: flex; justify-content: center; padding-top: 64px; flex: none; }
.login-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 26px; font-weight: 700; height: 40px; }
.login-brand .logo-mark { width: 40px; height: 40px; }
.login-brand .logo-mark svg.i { width: 24px; height: 24px; }
.login-card {
  width: min(380px, calc(100% - 32px)); margin-top: -120px; background: #fff; border-radius: 8px; padding: 32px 28px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12); display: flex; flex-direction: column; gap: 14px;
}
.login-card h2 { margin: 0 0 4px; font-size: 20px; text-align: center; }
.input-icon { display: flex; align-items: center; gap: 8px; height: 44px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 0 12px; color: var(--muted); }
.input-icon:focus-within { border-color: var(--red); box-shadow: 0 0 0 2px rgba(225, 37, 27, .1); }
.input-icon input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; height: 40px; padding: 0; font-size: 15px; }
.form-err { color: var(--bad); font-size: 13px; min-height: 18px; }
.login-foot { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* Dialog, toast */
.modal { border: 0; border-radius: 8px; padding: 0; width: min(400px, calc(100% - 32px)); box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal form { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.modal h3 { margin: 0; font-size: 17px; }
.dlg-body { display: flex; flex-direction: column; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.fld input, .fld select { height: 36px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(38, 38, 38, .92); color: #fff;
  padding: 9px 18px; border-radius: 6px; font-size: 13px; z-index: 50; max-width: 90vw;
}

/* Platform accounts */
.acc-name { font-size: 12px; color: var(--text-2); white-space: nowrap; }
td .acc-name { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.warn-text { color: var(--warn); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-acct { position: relative; }
.toolbar .push { margin-left: auto; }
.add-acct .menu { top: 40px; width: 180px; }
.pdot { width: 8px; height: 8px; border-radius: 2px; background: var(--pc); flex: none; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-content: start; }
.acct { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--line); min-width: 0; }
.acct.off { opacity: .6; }
.acct-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acct-name { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.acct-kv div { display: flex; flex-direction: column; min-width: 0; }
.acct-kv span { font-size: 12px; color: var(--muted); }
.acct-kv b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-err { font-size: 12px; color: var(--bad); background: var(--bad-bg); border-radius: 4px; padding: 6px 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.acct-ops { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.acct-ops .danger { margin-left: auto; }
.btn.sm.icon-only { width: 26px; padding: 0; justify-content: center; }
.dlg-note { margin: -4px 0 0; font-size: 12px; color: var(--warn); background: var(--warn-bg); border-radius: 4px; padding: 6px 8px; }

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { height: auto; min-height: 100%; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 12px 0; gap: 8px; }
  .brand h1 { font-size: 16px; }
  .top-right { order: 2; }
  .tabs { order: 3; flex-basis: 100%; height: 42px; }
  .tab { padding: 0 12px; font-size: 14px; }
  .uname { display: none; }
  .platform-strip { padding: 10px 12px 0; gap: 8px; }
  .platform-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  main { padding: 10px 12px 16px; }
  #view-check.active { flex-direction: column; }
  .query-panel { width: auto; }
  .ta-wrap { min-height: 150px; flex: none; height: 160px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .summary .s { padding: 10px 12px; }
  .s-ic { width: 34px; height: 34px; }
  .result-card { min-height: 360px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi b { font-size: 18px; }
  .search-input { max-width: none; flex-basis: 100%; }
  .bar-actions { width: 100%; }
  .bar-actions .btn { flex: 1; }
  /* Results become stacked cards on phones. */
  #resultTable thead { display: none; }
  #resultTable, #resultTable tbody, #resultTable tr, #resultTable td { display: block; }
  #resultTable tr { padding: 10px 14px; border-bottom: 8px solid var(--bg); }
  #resultTable td { border: 0; padding: 2px 0; max-width: none; min-width: 0; }
  #resultTable td:empty { display: none; }
  #resultTable td:nth-child(1), #resultTable td:nth-child(2), #resultTable td:nth-child(3) { display: inline-block; margin-right: 10px; }
  #resultTable td.num { text-align: left; }
  #resultTable td.price, #resultTable td.time, #resultTable td:nth-child(6) { display: inline-block; margin-right: 10px; }
  #resultTable tbody tr:hover td { background: none; }
}
