/* Headwind design layer: brings the web UI in line with the Android app (charcoal surfaces, orange accent, large rounded cards,
   big tabular numerals, a bottom tab bar on phones). Loaded after style.css and only overrides it; the colours themselves are
   the tokens in style.css :root (same values as the app's Theme.kt). */

:root {
  --surface-hi:  #1a2128;
  --surface-hi2: #222a32;
  --r-card: 22px;
  --r-tile: 18px;
  --r-ctl:  14px;
  --hair: rgba(255,255,255,0.05);
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.25);
  --tabbar-h: 68px;
  --font: Roboto, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { color-scheme: dark; -webkit-tap-highlight-color: transparent; }
body { font-feature-settings: 'tnum' 1, 'cv11' 1; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(255,90,31,0.35); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-hi2) transparent; }

/* ── Surfaces ── */
.card {
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}
.card-title { font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 600; color: var(--text-muted); }

/* ── Top bar ── */
.topbar { background: rgba(11,15,18,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 50; }
.topbar h1 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }

/* ── Buttons, inputs ── */
.btn { border-radius: 999px; min-height: 40px; padding: 0.5rem 1.15rem; font-weight: 600; letter-spacing: 0.005em; transition: background .15s, transform .08s, border-color .15s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); box-shadow: 0 6px 18px rgba(255,90,31,0.28); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-hi); border-color: var(--hair); }
.btn-secondary:hover { background: var(--surface-hi2); }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=email], input[type=url], input[type=date], input[type=time], input[type=search], select, textarea {
  border-radius: var(--r-ctl);
  background: #0e1317;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  min-height: 40px;
  font-size: 0.875rem;
  font-family: var(--font);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,0.18); }
.flash { border-radius: var(--r-ctl); }

/* ── Tables ── */
table th { font-size: 0.6875rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
table td { border-bottom-color: var(--hair); }
.table-compact tr.ride-row:hover td { background: var(--surface-hi); }

/* ── Sidebar (desktop) ── */
.sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--hair); }
.sidebar-header { border-bottom: none; padding: 1.4rem 1.1rem 0.6rem; }
.sidebar-header .app-name { font-size: 0.95rem; letter-spacing: 0.14em; font-weight: 800; }
.nav-section-label { font-size: 0.625rem; letter-spacing: 0.14em; padding: 1.1rem 1.25rem 0.35rem; color: #5f6b76; }
.nav-item { margin: 1px 0.6rem; border-radius: 12px; border-left: none; padding: 0.55rem 0.8rem; }
.nav-item.active { background: rgba(255,90,31,0.14); color: #fff; border-left: none; }
.nav-item.active svg { color: var(--accent); }

/* ── Dashboard hero (the Android home banner) ── */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; margin-bottom: 1rem;
  min-height: 190px; display: flex; align-items: flex-end; background: #0e1317;
  box-shadow: var(--shadow);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,18,0) 35%, rgba(11,15,18,0.82) 100%); }
.hero-text { position: relative; z-index: 1; padding: 1.1rem 1.4rem 1.2rem; }
.hero-text h2 { font-size: 1.75rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.hero-text .sub { margin-top: 0.3rem; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.hero-chip { position: absolute; z-index: 1; top: 0.9rem; right: 0.9rem; display: flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(11,15,18,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 0.85rem; font-weight: 600; }

/* ── Metric tiles: label over a big number, like the app's Home ── */
.metric-row { gap: 0.75rem; }
.metric-tile { border-radius: var(--r-tile); border: 1px solid var(--hair); box-shadow: var(--shadow); padding: 1rem 1.1rem; align-items: flex-start; flex-direction: column; gap: 0.5rem; }
.metric-tile .m-icon { width: 30px; height: 30px; border-radius: 10px; }
.metric-tile > div:last-child { display: flex; flex-direction: column-reverse; gap: 0.1rem; }
.metric-tile .m-label { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.metric-tile .m-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.metric-tile-sub { border-radius: 999px; border-color: var(--hair); background: var(--surface-hi); padding: 0.5rem 1rem; }
.chart-card-head .sub { margin-top: 0.15rem; }
.seg-tabs { border-radius: 999px; background: var(--surface-hi); border-color: var(--hair); padding: 3px; }
.seg-btn { border-radius: 999px; padding: 0.35rem 0.85rem; }
.rider-chip, .rider-badge { border-radius: 999px; }
.stat-card { border-radius: var(--r-tile); border-color: var(--hair); }

/* ── Bottom tab bar (phones) ── */
.tabbar { display: none; }
@media (max-width: 768px) {
  .menu-toggle { display: none; }
  .topbar { min-height: 56px; height: auto; padding-top: 0.45rem; padding-bottom: 0.45rem; gap: 0.6rem; }
  .topbar h1 { font-size: 1.2rem; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar h1 small, .topbar h1 .sub { display: none; }
  .topbar-actions { flex: 0 1 auto; min-width: 0; max-width: 72%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .topbar-actions::-webkit-scrollbar { display: none; }
  .topbar-actions .btn { white-space: nowrap; flex-shrink: 0; min-height: 38px; padding: 0.4rem 0.95rem; }
  .metric-tile .m-value { font-size: 1.3rem; letter-spacing: -0.03em; white-space: nowrap; }
  .content { padding: 0.9rem 0.9rem calc(var(--tabbar-h) + 1.25rem + env(safe-area-inset-bottom)); }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric-row-sub { grid-template-columns: 1fr; }
  .hero { min-height: 210px; border-radius: 26px; margin-left: -0.1rem; margin-right: -0.1rem; }
  .hero-text h2 { font-size: 1.6rem; }
  .card { padding: 1.1rem 1.1rem; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 0.4rem env(safe-area-inset-bottom);
    background: rgba(8,11,14,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--hair); justify-content: space-around; align-items: center;
  }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--text-muted); font-size: 0.6875rem; font-weight: 600; background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }
  .tab svg { width: 24px; height: 24px; padding: 4px 18px; box-sizing: content-box; border-radius: 999px; transition: background .18s, color .18s; }
  .tab.active { color: var(--accent); }
  .tab.active svg { background: rgba(255,90,31,0.16); color: var(--accent); }
  body.has-tabbar .sidebar { padding-bottom: calc(var(--tabbar-h) + 1rem); }
}

/* ── Inline Material icons (replace the old emoji) ── */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: currentColor; flex-shrink: 0; }
.empty-icon .ic, .drop-icon .ic, .done-icon .ic, .arch-icon .ic { width: 2.4rem; height: 2.4rem; vertical-align: middle; color: var(--accent); }
.empty-icon { opacity: 1 !important; }
.medal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 0.8125rem; color: #14100a; }
.medal.m1 { background: #f5c542; } .medal.m2 { background: #c9d1d9; } .medal.m3 { background: #d08a4e; }

/* wide tables scroll sideways inside their card instead of being clipped on phones */
@media (max-width: 768px) {
  .card:has(> table), .card:has(> div > table), .card:has(> form + table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card table { min-width: 460px; }
}

/* ── Activities list + cards (the app's Activities tab) ── */
.act-filters { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.chips { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 0.4rem 1rem; border-radius: 999px; background: var(--surface-hi); border: 1px solid var(--hair); color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.chip.active { background: rgba(255,90,31,0.16); border-color: rgba(255,90,31,0.4); color: var(--accent); }
.act-search { width: 100%; }
.act-count { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0.15rem 0.6rem; }
.act-list { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.act-card { display: flex; gap: 0.9rem; padding: 0.85rem; border-radius: var(--r-card); background: var(--card-bg); border: 1px solid var(--hair); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .08s, border-color .15s; }
.act-card:hover { border-color: rgba(255,90,31,0.35); }
.act-card:active { transform: scale(0.99); }
.act-thumb { width: 92px; height: 92px; flex-shrink: 0; border-radius: 16px; background: #0e1317; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.act-thumb svg { width: 100%; height: 100%; }
.act-thumb-ic .ic { width: 2rem; height: 2rem; color: var(--text-muted); }
.act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; }
.act-name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-sub { font-size: 0.8125rem; color: var(--text-muted); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-nums { display: flex; gap: 1rem; }
.act-nums b { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.act-nums span { font-size: 0.6875rem; color: var(--text-muted); }
.empty-art { text-align: center; padding: 1.5rem 0.5rem 2rem; }
.empty-art img { width: 100%; max-width: 420px; height: auto; border-radius: 26px; margin-bottom: 1.1rem; }
.empty-art h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.empty-art p { color: var(--text-muted); margin-bottom: 1.1rem; }
@media (max-width: 768px) { .act-list { grid-template-columns: 1fr; } .act-thumb { width: 84px; height: 84px; } }
.act-list > * { min-width: 0; }
.act-card { overflow: hidden; }
.latest-card { margin-bottom: 1rem; }
.latest-card .card-title { margin-bottom: 0.6rem; display: flex; justify-content: space-between; align-items: baseline; }
.latest-card .card-title a { color: var(--accent); text-decoration: none; font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
.latest-card .act-card { box-shadow: none; background: transparent; border: none; padding: 0; }

/* ── Ride page tabs (Overview / Map / Charts / Weather) ── */
.rtabs { display: flex; gap: 0.25rem; padding: 4px; margin-bottom: 1rem; border-radius: 999px; background: var(--surface-hi); border: 1px solid var(--hair); position: sticky; top: 57px; z-index: 40; }
.rtabs button { flex: 1; border: none; background: none; color: var(--text-muted); font: inherit; font-weight: 700; font-size: 0.875rem; padding: 0.5rem 0.4rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.rtabs button.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(255,90,31,0.3); }
.rtab-off { display: none !important; }
.map-charts-grid.rtab-single, .map-charts-grid.rtab-single.has-both { display: block; }
.map-charts-grid.rtab-single .charts-col { height: auto !important; }
.map-charts-grid.rtab-single .map-card .leaflet-container, .map-charts-grid.rtab-single .map-card #map { height: min(68vh, 560px) !important; }
.map-charts-grid.rtab-single .charts-col { display: flex; flex-direction: column; gap: 1rem; }
.map-charts-grid.rtab-single .charts-col .card { height: auto !important; flex: none !important; }
.map-charts-grid.rtab-single .charts-col .card canvas { height: 230px !important; max-height: 260px; flex: none !important; }

/* ── Setup wizard + other wizards ── */
.wizard .wiz-mark { display: block; width: 190px; max-width: 60%; margin: 0 auto 0.5rem; }
.wizard .wiz-hero { min-height: 170px; margin-bottom: 1.2rem; }
.wizard .step-track { gap: 0.35rem; margin-bottom: 1rem; }
.wizard .step-dot { height: 6px; border-radius: 999px; background: var(--surface-hi2); }
.wizard .step-label { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--surface-hi); letter-spacing: 0.1em; }
.wizard .arch-box, .wizard .also-box { border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--card-bg); box-shadow: var(--shadow); }
.wizard .choice-card { border-radius: var(--r-tile); }
.wizard .btn-add { border-radius: 999px; }
.wizard .btn-remove { border-radius: 999px; }
.wizard .submit-btn { min-height: 48px; }
.wizard .ha-map, .wizard .garmin-status { border-radius: var(--r-ctl); }
.wizard .done-icon { font-size: 1rem; }
.wizard .done-icon .ic { width: 3.2rem; height: 3.2rem; }
.wizard .wizard-hero { display: none; }
@media (max-width: 768px) {
  body > .wizard { padding-bottom: 2rem; }
}

.form-group input:not([type]) { width: 100%; }
@media (max-width: 768px) {
  .content > div[style*="grid-template-columns:1fr 1fr"], .content > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .card:has(table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- ride photos + mechanical faults ---- */
.rx-card { margin-top: 1rem; }
.rx-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.rx-head .btn svg, .rx-addph svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
.rx-hint, .rx-note, .rx-dim { color: var(--text-muted); font-size: .8125rem; line-height: 1.45; }
.rx-hint { margin-bottom: .7rem; }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.rx-thumb { position: relative; padding: 0; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: var(--surface-hi); aspect-ratio: 1; cursor: pointer; }
.rx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-thumb.sm { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.rx-pin { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(11,15,18,.78); color: var(--accent); display: grid; place-items: center; }
.rx-pin svg { width: 14px; height: 14px; fill: currentColor; }
.rx-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; padding: .9rem; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface-hi); }
.rx-form[hidden] { display: none; }
.rx-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.rx-form .wide { grid-column: 1 / -1; }
.rx-form input, .rx-form select { width: 100%; box-sizing: border-box; }
.rx-fault { display: flex; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--hair); }
.rx-fault:first-of-type { border-top: none; }
.rx-fault-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(239,68,68,.14); color: #f87171; }
.rx-fault-ic svg { width: 22px; height: 22px; fill: currentColor; }
.rx-fault-main { min-width: 0; flex: 1; }
.rx-fault-t { font-weight: 700; }
.rx-fault-ph { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
.rx-edit { margin-top: .5rem; }
.rx-edit summary { cursor: pointer; color: var(--text-muted); font-size: .8125rem; }
.rx-lb { position: fixed; inset: 0; z-index: 3000; background: rgba(5,8,10,.94); display: flex; align-items: center; justify-content: center; }
.rx-lb[hidden] { display: none; }
.rx-lb > img { max-width: 100vw; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.rx-lb-x, .rx-lb-nav { position: absolute; border: none; background: rgba(35,43,51,.85); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.rx-lb-x { top: 14px; right: 14px; }
.rx-lb-nav { top: 50%; margin-top: -22px; }
.rx-lb-nav.prev { left: 10px; } .rx-lb-nav.next { right: 10px; }
.rx-lb svg { width: 24px; height: 24px; fill: currentColor; }
.rx-lb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.rx-lb-bar input { flex: 1 1 200px; max-width: 360px; }
.rx-lb-bar .btn svg { width: 16px; height: 16px; vertical-align: -3px; }
.rx-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3100; background: #232b33; color: #f1f3f5; padding: .6rem 1rem; border-radius: 999px; font-size: .875rem; box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: 90vw; }
.rx-toast[hidden] { display: none; }
.rx-mk { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--accent); overflow: hidden; background: #13181d; box-shadow: 0 3px 10px rgba(0,0,0,.6); }
.rx-mk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-mk.fault { width: 34px; height: 34px; border-color: #ef4444; display: grid; place-items: center; color: #f87171; }
.rx-mk.fault svg { width: 20px; height: 20px; fill: currentColor; }
.rx-dialog { border: 1px solid var(--hair); border-radius: 22px; background: var(--card, #13181d); color: var(--text); padding: 1.2rem; width: min(420px, 92vw); }
.rx-dialog::backdrop { background: rgba(0,0,0,.6); }
.act-fault { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(239,68,68,.16); color: #f87171; vertical-align: -5px; margin-left: 4px; }
.act-fault svg { width: 12px; height: 12px; fill: currentColor; }

/* sidebar icons: Material, filled, same family as the app */
.sidebar .nav-item svg { width: 20px; height: 20px; opacity: .8; }

.rx-status { margin-top: .4rem; font-size: .8125rem; font-weight: 700; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.rx-status.open { color: #fb923c; } .rx-status.ok { color: #22c55e; }
.rx-status .btn svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 2px; }
.rx-link { background: none; border: none; color: var(--text-muted); font: inherit; font-weight: 500; text-decoration: underline; cursor: pointer; padding: 0; }

.rx-strip { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .3rem; }
.rx-strip .rx-thumb.sm { width: 72px; height: 72px; }

/* Pill rows (secondary page actions) and paired filters */
.pill-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.pill-row a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--surface2, #1a2128); border: 1px solid var(--hair); color: var(--text); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.pill-row a:hover { border-color: var(--accent); }
.pill-row svg { width: 16px; height: 16px; }
.sel-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
.sel-row select { min-width: 0; flex: 1 1 0; }
@media (max-width: 640px) { .sel-row { width: 100%; } }

/* Sticky strips (ride tabs, Stats and Recovery tabs). Desktop: .content is the scroller and sits below the top bar, so they stick at its top.
   Phone: the whole page scrolls under the sticky top bar, so they stick just below it, and .content must not be a scroll container of its own
   (it never scrolled, so sticky never stuck and the strip sat on top of the content beneath). */
.rtabs, .st-tabs, .rc-tabs { top: 0 !important; }
@media (max-width: 768px) {
  .content { overflow: visible; }
  .rtabs, .st-tabs, .rc-tabs { top: 57px !important; }
}

/* Top bar actions: on a phone, Prev/Next collapse to their arrows so the row fits */
@media (max-width: 640px) {
  .topbar { gap: .4rem; }
  .topbar .btn { padding-left: .8rem; padding-right: .8rem; }
  .topbar [data-compact="icon"] .lbl { display: none; }
}
}

@media (max-width: 640px) {
  .topbar h1 { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
  .topbar-actions { min-width: 0; flex: 1; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .topbar-actions::-webkit-scrollbar { display: none; }
  .topbar-actions > * { flex: 0 0 auto; }
  .topbar [data-compact="hide"] { display: none; }
  .topbar [data-compact="icon"] .lbl { display: none; }
}

.topbar .ar { font-size: 1.1rem; line-height: 1; }
@media (min-width: 641px) { .topbar .ar { font-size: inherit; } }

/* Mask the page behind the sticky tab pills so content doesn't show around them while scrolling */
.rtabs, .st-tabs, .rc-tabs { box-shadow: 0 0 0 10px var(--main-bg, #0b0f12); }
