:root {
  --bg: #f6f6f9;
  --bg-2: #eeeef4;
  --surface: #ffffff;
  --surface-2: #f8f8fb;
  --border: #e4e4ec;
  --border-strong: #d2d2de;
  --text: #16161d;
  --text-2: #4b4b5c;
  --muted: #6e6e80;
  --accent: #5b5bf7;
  --accent-hover: #4a4ae6;
  --accent-soft: #ececfe;
  --accent-text: #3f3fd1;
  --accent-btn: #5b5bf7;
  --accent-btn-hover: #4a4ae6;
  --ok: #127a37;
  --ok-soft: #e3f7ea;
  --warn: #925600;
  --warn-soft: #fff3dc;
  --err: #c8243a;
  --err-soft: #fde8eb;
  --kick: #53fc18;
  --kick-text: #1d7a00;
  --tiktok: #fe2c55;
  --tiktok-text: #d0103a;
  --instagram: #c21f68;
  --facebook: #1877f2;
  --facebook-text: #1260cc;
  --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 4px 16px rgba(20, 20, 40, .05);
  --shadow-lg: 0 8px 40px rgba(20, 20, 40, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e13; --bg-2: #15151c; --surface: #17171f; --surface-2: #1d1d27;
    --border: #2a2a36; --border-strong: #383847; --text: #ececf3; --text-2: #b9b9c8; --muted: #9090a2;
    --accent: #7b7bff; --accent-hover: #8c8cff; --accent-soft: #23234a; --accent-text: #a9a9ff; --accent-btn: #5252e0; --accent-btn-hover: #4a4ae6;
    --ok: #3ccf74; --ok-soft: #133222; --warn: #f0a93a; --warn-soft: #362710; --err: #ff6b7d; --err-soft: #3a1720;
    --kick-text: #53fc18; --tiktok-text: #ff5c7c; --instagram: #f0569b; --facebook-text: #5aa2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25); --shadow-lg: 0 8px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e13; --bg-2: #15151c; --surface: #17171f; --surface-2: #1d1d27;
  --border: #2a2a36; --border-strong: #383847; --text: #ececf3; --text-2: #b9b9c8; --muted: #9090a2;
  --accent: #7b7bff; --accent-hover: #8c8cff; --accent-soft: #23234a; --accent-text: #a9a9ff; --accent-btn: #5252e0; --accent-btn-hover: #4a4ae6;
  --ok: #3ccf74; --ok-soft: #133222; --warn: #f0a93a; --warn-soft: #362710; --err: #ff6b7d; --err-soft: #3a1720;
  --kick-text: #53fc18; --tiktok-text: #ff5c7c; --instagram: #f0569b; --facebook-text: #5aa2ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25); --shadow-lg: 0 8px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-text); }
code { font: 12.5px var(--mono); background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 16px 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; display: block; }
.logo rect { fill: var(--accent); stroke: none; }
.logo path { stroke: #fff; stroke-width: 2.6; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-2); }
.tab { border: 0; background: none; border-radius: 9px; padding: 7px 16px; font-weight: 600; font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.count { font-size: 11.5px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.count:empty { display: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid transparent; background: none; border-radius: 10px; color: var(--text-2);
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .moon { display: none; }
  :root:not([data-theme="light"]) .icon-btn .sun { display: block; }
}

main { max-width: 860px; width: 100%; margin: 0 auto; padding: 24px 16px 56px; flex: 1; }

/* ---------------------------------------------------------------- hero + finder */
.hero { text-align: center; padding: 28px 0 22px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; text-wrap: balance; }
.lede { color: var(--text-2); font-size: 16.5px; max-width: 600px; margin: 0 auto; text-wrap: pretty; }
.p-kick { color: var(--kick-text); }
.p-tiktok { color: var(--tiktok-text); }
.p-instagram { color: var(--instagram); }
.p-facebook { color: var(--facebook-text); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.finder { padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.finder-row { display: flex; gap: 8px; }
.finder-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-2); }
.chip { border: 0; background: none; border-radius: 9px; padding: 6px 11px; font-size: 13.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); }
.chip[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chip.detected:not([aria-checked="true"]) { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.kick { background: var(--kick); }
.dot.tiktok { background: var(--tiktok); }
.dot.instagram { background: var(--instagram); }
.dot.facebook { background: var(--facebook); }
.kbd-hint { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
kbd { font: 11px var(--mono); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--surface-2); color: var(--text-2); }
.field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); padding: 0 6px 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.field-icon { color: var(--muted); }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 13px 6px; font-size: 16px; }
.field input::placeholder { color: var(--muted); opacity: .85; }
.ghost-btn { border: 0; background: var(--bg-2); color: var(--text-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.ghost-btn:hover { color: var(--text); }
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; background: var(--accent-btn); color: #fff; font-weight: 650;
  padding: 0 22px; min-height: 48px; white-space: nowrap; transition: background .15s, transform .05s;
}
.primary-btn:hover { background: var(--accent-btn-hover); }
.primary-btn:active { transform: translateY(1px); }
.primary-btn:disabled { opacity: .55; cursor: not-allowed; }
.primary-btn svg { stroke-width: 2.4; }
.busy .label { display: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.busy .spinner { display: block; }
.busy .label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { text-align: center; color: var(--muted); font-size: 13.5px; margin: 12px auto 0; max-width: 620px; }

.status { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: var(--bg-2); color: var(--text-2); }
.status.error { background: var(--err-soft); color: var(--err); }
.status.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------------------------------------------------------------- result */
.result { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 18px; margin-top: 22px; }
.result-media { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-2); aspect-ratio: 9 / 16; max-height: 420px; }
.result-media.wide { aspect-ratio: 16 / 9; align-self: start; }
.result-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 999px; background: rgba(10, 10, 16, .72); color: #fff; backdrop-filter: blur(6px);
}
.badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.badge.kick::before { background: var(--kick); }
.badge.tiktok::before { background: var(--tiktok); }
.badge.instagram::before { background: var(--instagram); }
.badge.facebook::before { background: var(--facebook); }
.duration { position: absolute; right: 8px; bottom: 8px; font: 600 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(10, 10, 16, .78); color: #fff; }
.result-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.result-body h2 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin: -8px 0 0; color: var(--muted); font-size: 14px; }

.choose { display: grid; gap: 8px; }
.choose:empty { display: none; }
.file-opt {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--surface-2); cursor: pointer;
}
.file-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.file-opt input { accent-color: var(--accent); margin: 0; }
.file-opt .size { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.kick-opts { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 4px 12px; }
.opt label, .opt-label { font-weight: 600; font-size: 14px; color: var(--text-2); }
.opt select, .range-inputs input {
  border: 1.5px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); padding: 9px 11px; font-size: 15px; min-width: 0;
}
.opt select { max-width: 260px; }
.range { align-items: start; }
.range .opt-label { padding-top: 10px; }
.range-inputs { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.range-inputs input { width: 120px; font-variant-numeric: tabular-nums; }
.range p { grid-column: 2; margin: 2px 0 0; }
.estimate { margin: 0; font-size: 14px; color: var(--text-2); }
.estimate.warn { color: var(--warn); background: var(--warn-soft); padding: 9px 12px; border-radius: 10px; }

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.link-btn { border: 0; background: none; padding: 6px 2px; color: var(--accent-text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--err); }

.progress { display: grid; gap: 8px; }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s; }
.progress.done .bar span { background: var(--ok); }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Kick channel */
.channel { margin-top: 28px; }
.channel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 2px solid var(--kick); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.channel-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.channel-head .meta { margin: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-2); margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.tile-title { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile-meta { font-size: 12.5px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--surface-2), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 14px; aspect-ratio: 4 / 3.3; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- how it works */
.how { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-2); }
.how h2 { font-size: 17px; color: var(--text); margin: 0 0 10px; }
.how ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.how p { margin: 8px 0 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 28px; }
.foot a { color: inherit; }

/* ---------------------------------------------------------------- options */
.options { margin-top: 14px; }
.options summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; border-radius: var(--radius); }
.options summary::-webkit-details-marker { display: none; }
.options summary:hover { background: var(--surface-2); }
.options-title { font-weight: 650; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.pill { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg-2); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.chev { color: var(--muted); transition: transform .2s; }
.options[open] .chev { transform: rotate(180deg); }
.options-body { display: grid; gap: 18px; padding: 6px 16px 18px; border-top: 1px solid var(--border); padding-top: 16px; }
.opt-group { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 6px 14px; }
.opt-group .seg { margin: 0; justify-self: start; flex-wrap: wrap; }
.opt-help { grid-column: 2; margin: 0; font-size: 13px; color: var(--muted); }
.folder-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.folder-name { font-weight: 600; }

/* ---------------------------------------------------------------- channel selection */
.channel-head .channel-text { flex: 1; min-width: 0; }
.channel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.channel-bar .seg { margin: 0; }
.select-tools { display: flex; align-items: center; gap: 10px; }
.tile { position: relative; cursor: pointer; }
.tile .check {
  position: absolute; top: 9px; left: 9px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(10, 10, 16, .55); border: 2px solid rgba(255, 255, 255, .85); color: transparent; backdrop-filter: blur(4px);
}
.tile .check svg { width: 15px; height: 15px; stroke-width: 3; }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.tile[aria-pressed="true"] .check { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.tile-actions { display: flex; gap: 12px; margin-top: 2px; }
.tile-actions .link-btn { font-size: 13px; padding: 2px 0; }
.tile-done { color: var(--ok); font-weight: 600; }
.select-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.select-bar-inner {
  pointer-events: auto; max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.select-bar .primary-btn { min-height: 42px; }

/* ---------------------------------------------------------------- queue + history */
.queue-section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.page-title { margin: 8px 0 2px; font-size: 26px; letter-spacing: -.02em; }
.queue, .history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job, .hist {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px 10px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.thumb { position: relative; width: 96px; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .dot { position: absolute; left: 6px; top: 6px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.job-body, .hist-body { min-width: 0; display: grid; gap: 5px; }
.job-title, .hist-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-sub, .hist-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.job .bar { height: 6px; }
.job.done .bar span { background: var(--ok); }
.job.failed .job-sub { color: var(--err); white-space: normal; }
.job.done .job-sub { color: var(--ok); }
.job-actions, .hist-actions { display: flex; gap: 4px; align-items: center; }
.job-actions .icon-btn, .hist-actions .icon-btn { width: 34px; height: 34px; }
.empty-box {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--muted);
  display: grid; justify-items: center; gap: 8px;
}
.empty-box svg { width: 26px; height: 26px; }
.empty-box p { margin: 0; }
.filter { width: 100%; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); padding: 11px 14px; font-size: 15px; margin-bottom: 14px; }
.link-btn.danger { color: var(--err); }
.select-pad { height: 84px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 640px) {
  main { padding-top: 8px; }
  .hero { padding: 18px 0 18px; }
  .lede { font-size: 15.5px; }
  .finder-row { flex-direction: column; }
  .kbd-hint { display: none; }
  .chips { width: 100%; min-width: 0; flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 6px 10px; }
  .tabs .tab { padding: 7px 11px; }
  .opt-group { grid-template-columns: 1fr; }
  .opt-help { grid-column: 1; }
  .job, .hist { grid-template-columns: 72px 1fr auto; gap: 10px; }
  .thumb { width: 72px; }
  .channel-head .link-btn { display: none; }
  .finder .primary-btn, .result .primary-btn { width: 100%; }
  .actions .primary-btn { flex: 1 1 100%; }
  .result { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .result-media { max-height: 340px; aspect-ratio: auto; height: 340px; }
  .result-media.wide { height: auto; aspect-ratio: 16 / 9; }
  .opt { grid-template-columns: 1fr; }
  .opt select { max-width: none; }
  .range .opt-label { padding-top: 0; }
  .range p { grid-column: 1; }
  .range-inputs input { flex: 1; width: auto; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-body { padding: 8px 9px 10px; }
  .tile-title { font-size: 13px; }
}
@media (max-width: 380px) {
  .brand-name { display: none; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
body.has-select-bar main { padding-bottom: 96px; }
