/* DryScale Ads Manager — ads.dryscale.com
   Same palette as the b2b dashboard (navy #04070d, cyan #00affe, Inter). */
:root {
  --bg: #04070d;
  --panel: #0a0f1b;
  --panel-2: #0d1424;
  --panel-3: #111a2e;
  --head: #0b1120;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .11);
  --text: #c8d6e5;
  --strong: #f4f8fc;
  --muted: #7f8ea6;
  --faint: #56637a;
  --accent: #00affe;
  --accent-2: #38c4ff;
  --accent-bg: rgba(0, 175, 254, .12);
  --accent-line: rgba(0, 175, 254, .35);
  --row-hover: rgba(0, 175, 254, .045);
  --row-sel: rgba(0, 175, 254, .09);
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --g1: #f87171;
  --g2: #fbbf24;
  --g3: #00affe;
  --g4: #34d399;
  --radius: 10px;
  --top-h: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 400px at 85% -120px, rgba(0, 175, 254, .07), transparent 70%);
  color: var(--text);
  font: 13px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  height: var(--top-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 19, .85);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--strong); }
.brand img { display: block; height: 32px; width: auto; }
.brand-sep { width: 1px; height: 22px; background: var(--line-2); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }

.acct {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}
.acct:focus-within { border-color: var(--accent-line); }
.acct select {
  background: transparent; border: 0; outline: 0;
  color: var(--strong); font-weight: 500;
  max-width: 220px; cursor: pointer;
}
.acct select option { background: var(--panel-2); color: var(--strong); }

.datepick { position: relative; }
.date-btn {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}
.date-btn:hover, .date-btn[aria-expanded="true"] { border-color: var(--accent-line); }
.date-label { color: var(--strong); font-weight: 600; }
.date-range { color: var(--text); }
.date-btn .chev { width: 14px; height: 14px; }

.date-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: flex;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  z-index: 50;
}
.presets { list-style: none; margin: 0; padding: 8px; width: 168px; border-right: 1px solid var(--line); }
.presets button {
  width: 100%; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text);
}
.presets button:hover { background: var(--panel-3); color: var(--strong); }
.presets button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent-2); font-weight: 600; }
.cal-wrap { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.cal-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.pending-range { color: var(--strong); font-weight: 600; }
.tz-note { color: var(--faint); font-size: 12px; }
.cal-actions { margin-left: auto; display: flex; gap: 8px; }
.date-fallback { display: flex; gap: 10px; align-items: center; }
.date-fallback input { background: var(--panel); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; }

/* flatpickr, restyled for the dark panel (inline mode puts its calendar next to
   #calendar, inside .cal-wrap) */
.cal-wrap .flatpickr-calendar {
  background: transparent; box-shadow: none; border: 0; width: auto !important;
}
.cal-wrap .flatpickr-calendar.inline { top: 0; }
.cal-wrap .flatpickr-months .flatpickr-month,
.cal-wrap .flatpickr-current-month .flatpickr-monthDropdown-months,
.cal-wrap .flatpickr-current-month input.cur-year { color: var(--strong); fill: var(--strong); }
.cal-wrap .flatpickr-current-month { font-size: 14px; font-weight: 600; }
.cal-wrap .flatpickr-current-month .flatpickr-monthDropdown-months { background: transparent; }
.cal-wrap .flatpickr-months .flatpickr-prev-month, .cal-wrap .flatpickr-months .flatpickr-next-month { color: var(--muted); fill: var(--muted); }
.cal-wrap .flatpickr-months .flatpickr-prev-month:hover svg, .cal-wrap .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--accent); }
.cal-wrap span.flatpickr-weekday { color: var(--faint); font-weight: 500; }
.cal-wrap .flatpickr-day { color: var(--text); border-radius: 7px; }
.cal-wrap .flatpickr-day:hover { background: var(--panel-3); border-color: var(--panel-3); }
.cal-wrap .flatpickr-day.today { border-color: var(--accent-line); }
.cal-wrap .flatpickr-day.inRange { background: var(--accent-bg); border-color: transparent; box-shadow: -5px 0 0 var(--accent-bg), 5px 0 0 var(--accent-bg); color: var(--strong); }
.cal-wrap .flatpickr-day.selected, .cal-wrap .flatpickr-day.startRange, .cal-wrap .flatpickr-day.endRange {
  background: var(--accent); border-color: var(--accent); color: #031019; font-weight: 600;
}
.cal-wrap .flatpickr-day.flatpickr-disabled, .cal-wrap .flatpickr-day.prevMonthDay, .cal-wrap .flatpickr-day.nextMonthDay { color: #2d3749; }
.cal-wrap .flatpickr-innerContainer, .cal-wrap .flatpickr-rContainer, .cal-wrap .dayContainer { border: 0; }
.cal-wrap .flatpickr-months .flatpickr-month { height: 36px; }
/* flat range band: no shadows (flatpickr's draw seams at week edges), square inside, round ends */
.cal-wrap .flatpickr-day, .cal-wrap .flatpickr-day.inRange, .cal-wrap .flatpickr-day.selected,
.cal-wrap .flatpickr-day.startRange, .cal-wrap .flatpickr-day.endRange { box-shadow: none !important; }
.cal-wrap .flatpickr-day.inRange { border-radius: 0; }
.cal-wrap .flatpickr-day.startRange { border-radius: 7px 0 0 7px; }
.cal-wrap .flatpickr-day.endRange { border-radius: 0 7px 7px 0; }
.cal-wrap .flatpickr-day.startRange.endRange { border-radius: 7px; }
.cal-wrap .dayContainer + .dayContainer { box-shadow: -1px 0 0 var(--line); }

.sync { display: flex; align-items: center; gap: 8px; padding-left: 4px; color: var(--muted); white-space: nowrap; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.sync-dot.ok { background: var(--good); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.sync-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.sync-dot.busy { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--panel); color: var(--text);
}
.icon-btn:hover { border-color: var(--accent-line); color: var(--strong); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- banners ---------- */
.banners { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 0 20px; }
.banners:not(:empty) { padding-top: 10px; }
.banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, .3);
  background: rgba(245, 158, 11, .08);
  color: #f6d38d;
}
.banner.info { border-color: var(--accent-line); background: var(--accent-bg); color: #bfe9ff; }
.banner b { color: var(--strong); font-weight: 600; }
.banner details { margin-top: 4px; color: var(--muted); font-size: 12px; }
.banner summary { cursor: pointer; color: inherit; }

/* ---------- tabs & toolbar ---------- */
.tabs {
  flex: none;
  display: flex; gap: 4px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 12px;
  border: 0; border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--muted); font-weight: 600;
}
.tab:hover { color: var(--strong); background: rgba(255, 255, 255, .025); }
.tab[aria-selected="true"] { color: var(--strong); background: var(--panel); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 175, 254, .6);
}
.tab[aria-selected="true"] svg { color: var(--accent); }
.tab-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 4px 2px 9px; border-radius: 20px;
  background: var(--accent-bg); color: var(--accent-2);
  font-size: 12px; font-weight: 600;
}
.tab-chip i {
  font-style: normal; display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0, 175, 254, .2); color: var(--strong); font-size: 12px; line-height: 1;
}
.tab-chip i:hover { background: var(--accent); color: #031019; }

.toolbar {
  flex: none;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; width: 280px; max-width: 100%;
  padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg); color: var(--faint);
}
.search:focus-within { border-color: var(--accent-line); color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--strong); }
.seg { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.seg button:hover { color: var(--strong); }
.seg button[aria-checked="true"] { background: var(--panel-3); color: var(--strong); box-shadow: inset 0 0 0 1px var(--line-2); }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.row-count { color: var(--faint); font-size: 12px; margin-right: 4px; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line-2);
  font-weight: 600; white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { border-color: var(--accent-line); color: var(--strong); }
.btn.primary { background: linear-gradient(135deg, #0077cc, var(--accent)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  width: 270px; max-height: min(70vh, 560px); overflow: auto;
  padding: 6px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--panel-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  z-index: 40;
}
.menu label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.menu label:hover { background: var(--panel-3); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .menu-act { width: 100%; text-align: left; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--accent-2); font-weight: 600; }
.menu .menu-act:hover { background: var(--panel-3); }

input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0; flex: none;
  border: 1.5px solid #3a475e; border-radius: 4px;
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
input[type="checkbox"]:hover { border-color: var(--accent); }
input[type="checkbox"]:checked, input[type="checkbox"]:indeterminate { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after {
  content: ""; width: 4px; height: 8px; margin-top: -2px;
  border: solid #031019; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="checkbox"]:indeterminate::after { content: ""; width: 8px; height: 2px; background: #031019; }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }

/* ---------- the grid ---------- */
.grid-wrap { flex: 1; min-height: 0; overflow: auto; position: relative; background: var(--panel); }
.grid {
  border-collapse: separate; border-spacing: 0;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.grid th, .grid td {
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--panel);
}
.grid thead th {
  position: sticky; top: 0; z-index: 3;
  height: 60px;
  background: var(--head);
  color: var(--muted); font-weight: 600; font-size: 12px; text-align: right;
  white-space: normal; line-height: 1.2;
  border-bottom: 1px solid var(--line-2);
  user-select: none; cursor: pointer;
}
.grid thead th:hover { color: var(--strong); }
.grid thead th:focus-visible { outline: 2px solid var(--accent-line); outline-offset: -2px; color: var(--strong); }
.tab-chip i:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grid thead th .th-in { display: flex; align-items: center; justify-content: flex-end; gap: 4px; max-height: 44px; overflow: hidden; }
.grid thead th .th-in > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid thead th.left .th-in { justify-content: flex-start; }
.grid thead th.sorted { color: var(--strong); }
.grid thead th.sorted::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
}
.sort-ic { width: 12px; height: 12px; color: var(--accent); flex: none; }
.grid thead th:not(.sorted) .sort-ic { color: var(--faint); opacity: 0; }
.grid thead th:hover .sort-ic { opacity: 1; }
.grid thead th.sub { color: var(--faint); background: #0a1020; }
.grid thead th.sub.g1 { box-shadow: inset 0 3px 0 var(--g1); }
.grid thead th.sub.g2 { box-shadow: inset 0 3px 0 var(--g2); }
.grid thead th.sub.g3 { box-shadow: inset 0 3px 0 var(--g3); }
.grid thead th.sub.g4 { box-shadow: inset 0 3px 0 var(--g4); }
.grid thead th.sub.g0 { box-shadow: inset 0 3px 0 var(--faint); }
.expander {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: transparent; padding: 2px 4px; margin: -2px -4px;
  border-radius: 5px; color: inherit; font-weight: 600; text-align: right;
}
.expander:hover { background: var(--accent-bg); color: var(--accent-2); }
.expander .chev { width: 12px; height: 12px; transition: transform .15s ease; }
.expander[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--accent); }
.sort-btn { border: 0; background: transparent; padding: 2px; border-radius: 4px; color: inherit; display: grid; place-items: center; }
.sort-btn:hover { background: var(--accent-bg); }
.grid thead th .sort-btn .sort-ic { opacity: .55; color: var(--faint); }
.grid thead th .sort-btn:hover .sort-ic { opacity: 1; color: var(--accent); }
.grid thead th.sorted .sort-btn .sort-ic { opacity: 1; color: var(--accent); }

/* column resize handle */
/* Inside the cell (th clips overflow), hugging its right border. */
.rh {
  position: absolute; top: 0; right: 0; bottom: 0; width: 10px;
  cursor: col-resize; z-index: 5; touch-action: none;
}
.rh::after {
  content: ""; position: absolute; top: 14px; bottom: 14px; right: 0; width: 1px;
  background: transparent; transition: background .1s;
}
th:hover .rh::after { background: var(--line-2); }
.rh:hover::after, .rh.dragging::after { background: var(--accent); top: 0; bottom: 0; width: 3px; }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none !important; }

.grid tbody td { height: 44px; text-align: right; color: var(--text); }
.grid tbody tr:hover td { background: #0c1424; }
.grid tbody tr.sel td { background: #0b1a2c; }
.grid tbody tr.sel:hover td { background: #0d1e33; }
.grid td.left { text-align: left; }
.grid td.zero { color: var(--faint); }
.grid td.na { color: #3d4a60; }

/* sticky checkbox + name columns */
.grid .c-chk { position: sticky; left: 0; z-index: 2; text-align: center; padding: 0; }
.grid .c-name { position: sticky; left: 40px; z-index: 2; text-align: left; box-shadow: 6px 0 10px -8px rgba(0, 0, 0, .8); }
.grid thead .c-chk, .grid thead .c-name { z-index: 6; }
.grid tfoot .c-chk, .grid tfoot .c-name { z-index: 4; }
.chk-wrap { display: grid; place-items: center; height: 100%; }

.name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: var(--panel-3); flex: none; border: 1px solid var(--line); }
.thumb.ph { display: grid; place-items: center; color: var(--faint); }
.name-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.name-main { color: var(--strong); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.name-main, button.name-main { color: #8fd8ff; text-decoration: none; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; font-weight: 500; max-width: 100%; }
a.name-main:hover, button.name-main:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.name-sub { color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-pill {
  display: inline-block; padding: 0 5px; margin-right: 6px; border-radius: 4px;
  font-size: 10.5px; font-weight: 700; line-height: 16px;
  background: rgba(255, 118, 22, .15); color: #ff9a52;
}
.acct-pill.a { background: var(--accent-bg); color: var(--accent-2); }
.acct-pill.b { background: rgba(148, 163, 184, .15); color: #aab6c8; }

.status { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.status.on { color: var(--strong); }
.status.on::before { background: var(--good); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.status.review::before { background: var(--warn); }
.status.bad { color: #fca5a5; }
.status.bad::before { background: var(--bad); }
.status.off { color: var(--muted); }
.status.gone { color: var(--faint); }
.status.gone::before { background: #2b3546; }

.g-cell.g1 { color: var(--g1); } .g-cell.g2 { color: var(--g2); }
.g-cell.g3 { color: var(--g3); } .g-cell.g4 { color: var(--g4); }
.grid td.g-cell { background: #0b111f; }
.grid tbody tr:hover td.g-cell { background: #0d1526; }

.grid tr.pinned td { background: #080d18; color: var(--muted); border-top: 1px dashed var(--line-2); }
.grid tr.pinned .name-main { color: var(--text); font-style: italic; }

.grid tfoot td {
  position: sticky; bottom: 0; z-index: 3;
  height: 48px;
  text-align: right;
  background: var(--head);
  border-top: 1px solid var(--line-2);
  color: var(--strong); font-weight: 600;
}
.grid tfoot .name-main { font-weight: 600; }
.grid tfoot .name-sub { font-weight: 400; }

.skel td div { height: 10px; border-radius: 4px; background: linear-gradient(90deg, #111a2c, #182339, #111a2c); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-left: auto; width: 60%; }
.skel td.c-name div { margin-left: 0; width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { position: absolute; inset: 120px 0 auto; text-align: center; color: var(--muted); padding: 20px; }
.empty b { display: block; color: var(--strong); font-size: 15px; margin-bottom: 6px; }

/* ---------- tooltip & toast ---------- */
.tip {
  position: fixed; z-index: 100; max-width: 280px;
  padding: 8px 10px; border-radius: 8px;
  background: #18233a; border: 1px solid var(--line-2);
  color: var(--strong); font-size: 12px; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.tip .tip-f { display: block; color: var(--accent-2); margin-top: 3px; font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 100; padding: 10px 14px; border-radius: 9px;
  background: #18233a; border: 1px solid var(--line-2); color: var(--strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.noscript { padding: 20px; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  :root { --top-h: auto; }
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .topbar-right { width: 100%; flex-wrap: wrap; }
  .acct { flex: 1 1 140px; }
  .acct select { width: 100%; max-width: none; }
  .datepick { flex: 1 1 200px; }
  .date-btn { width: 100%; }
  .date-range { display: none; }
  .sync-text { display: none; }
  .sync { position: absolute; top: 10px; right: 16px; }
  .date-panel { position: fixed; left: 16px; right: 16px; top: 120px; flex-direction: column; max-height: calc(100vh - 140px); overflow: auto; }
  .presets { width: auto; display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .presets li { flex: 0 0 auto; }
  .presets button { padding: 6px 10px; }
  .banners { padding: 0 16px; }
  .tabs { padding: 8px 16px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tab { padding: 8px 12px 10px; white-space: nowrap; }
  .toolbar { padding: 10px 16px; }
  .search { width: 100%; }
  .seg { overflow-x: auto; max-width: 100%; }
  .toolbar-right { margin-left: 0; width: 100%; }
  .row-count { margin-right: auto; }
}
