/* Aeson Power - admin panel (K2L a-/pattern, Aeson brand ramp) */
:root {
  --ink: #0b1220; --ink-2: #142033; --accent: #d6a428; --accent-2: #ecc866; --accent-dark: #a97e14;
  --bg: #f2f3f5; --card: #fff; --text: #1c2333; --muted: #656d80; --line: rgba(11, 18, 32, .1);
  --danger: #c62f2f; --radius: 14px;
  --shadow: 0 10px 34px -12px rgba(11, 18, 32, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
.is-hidden { display: none !important; }
body { font: 500 .95rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--ink); text-decoration: none; }
h1, h2 { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
code { background: rgba(11, 18, 32, .06); border-radius: 6px; padding: .1em .45em; font-size: .85em; }
small { color: var(--muted); }

/* login */
/* html carries the ground too, so overscroll/short-viewport never flashes the
   light app background behind the sign-in screen */
html:has(.a-login) { background: var(--ink); }
.a-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 130% at 80% -10%, #24344f 0%, var(--ink) 60%); background-attachment: fixed; padding: 2rem; }
/* Dark glass card: the brand logo is pale and would vanish on white, and this
   is the first screen the client sees off the preview link. */
.a-login__card { position: relative; background: linear-gradient(180deg, rgba(20, 32, 51, .92), rgba(11, 18, 32, .96)); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6); padding: 2.6rem 2.6rem 2.8rem; width: min(420px, 100%); display: grid; gap: .6rem; color: #e9f0fa; }
.a-login__logo { width: 168px; height: auto; margin: 0 auto .2rem; display: block; }
.a-login__card h1 { font-size: 1.9rem; color: #f2f6fc; }
.a-login__card .a-login__sub { color: rgba(233, 240, 250, .62); text-align: center; }
.a-login__sub { color: var(--muted); margin-bottom: 1rem; }
.a-login__card form { display: grid; gap: 1rem; }
.a-login__card label { display: grid; gap: .4rem; font-weight: 700; font-size: .85rem; }
.a-login__card label { color: #cdd8e8; }
.a-login__card input { border: 1.5px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: .8rem 1rem; font: inherit; background: rgba(255, 255, 255, .06); color: #f2f6fc; }
.a-login__card input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(214, 164, 40, .22); background: rgba(255, 255, 255, .1); }
/* kill Chrome's white autofill wash on the dark card */
.a-login__card input:-webkit-autofill,
.a-login__card input:-webkit-autofill:hover,
.a-login__card input:-webkit-autofill:focus { -webkit-text-fill-color: #f2f6fc; caret-color: #f2f6fc; box-shadow: 0 0 0 1000px #16233a inset; }
.a-alert { background: #fdecec; color: var(--danger); border: 1px solid #f5c9c9; padding: .7rem 1rem; border-radius: 10px; font-weight: 700; }

/* shell */
.a-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: minmax(100vh, auto); min-height: 100vh; }
.a-app > *:not(.a-side):not(.a-main) { grid-column: 1 / -1; grid-row: auto; }
.a-side { grid-column: 1; grid-row: 1; background: var(--ink); color: #b7bed1; display: flex; flex-direction: column; padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.a-main { grid-column: 2; grid-row: 1; }
/* The site logo art is pale sky-blue on transparent - it reads on the dark
   sidebar/login ground, and must never be placed on a light panel. */
.a-side__brand { margin: .2rem .6rem 1.5rem; }
.a-side__logo { display: block; line-height: 0; }
/* 76px = half the original 152px. height:auto is load-bearing — the <img>
   carries width/height attributes, so without it the attribute height survives
   and the mark renders squashed. Never contort an image's aspect ratio. */
.a-side__logo img { width: 76px; height: auto; opacity: .95; transition: opacity .35s ease; }
.a-side__logo:hover img { opacity: 1; }
/* NitroCore build credit, nested under the client mark and deliberately
   quieter than it — this is our badge, not theirs. */
.a-side__credit {
  display: flex; align-items: center; gap: .35rem;
  margin-top: .5rem;
  font-size: .6rem; letter-spacing: .04em; text-transform: uppercase;
  color: #7c8598;
}
.a-side__credit a { display: inline-flex; align-items: center; line-height: 0; }
.a-side__credit img {
  width: 62px; height: auto;
  opacity: .6; filter: saturate(0);
  transition: opacity .35s ease, filter .35s ease;
}
.a-side__credit a:hover img, .a-side__credit a:focus-visible img { opacity: 1; filter: saturate(1); }
.a-side__nav { display: grid; gap: .1rem; }
.a-side__nav a { display: flex; gap: .7rem; align-items: center; color: #b7bed1; font-weight: 700; font-size: .88rem; padding: .58rem .9rem; border-radius: 10px; transition: background .2s, color .2s; }
.a-side__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.a-side__nav a.is-on { background: var(--accent); color: var(--ink); }
.a-side__nav .a-side__hr { height: 1px; background: rgba(255, 255, 255, .1); margin: .6rem .6rem; }
.a-side__foot { margin-top: auto; display: grid; gap: 1rem; padding: 0 .5rem; }
.a-side__view { color: var(--accent-2); font-weight: 800; font-size: .88rem; }
.a-side__user { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .9rem; display: grid; font-size: .85rem; }
.a-side__user strong { color: #fff; }
.a-side__user em { font-style: normal; text-transform: capitalize; color: var(--accent-2); font-size: .75rem; }
.a-linkbtn { background: none; border: 0; color: #8d97b5; cursor: pointer; padding: 0; font: inherit; text-align: left; font-size: .82rem; }
.a-linkbtn:hover { color: #fff; }
.a-linkbtn--danger { color: var(--danger); }

.a-main { padding: 2rem 2.4rem 4rem; max-width: 1240px; width: 100%; margin: 0 auto; }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.a-head h1 { font-size: 1.9rem; }
.a-head__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.a-sub { color: var(--muted); font-size: .9rem; max-width: 70ch; }
.a-crumb { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .2rem; }
.a-crumb a { color: var(--accent-dark); }

.a-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: .62rem 1.4rem; font: 800 .88rem system-ui, sans-serif; cursor: pointer; transition: all .2s; }
.a-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.a-btn--ghost { background: transparent; color: var(--ink); }
.a-btn--full { width: 100%; justify-content: center; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.a-btn--full:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.a-btn[disabled], .a-mini[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.a-mini { background: none; border: 1px solid var(--line); border-radius: 8px; padding: .28rem .65rem; font: 700 .78rem system-ui, sans-serif; color: var(--ink); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; }
.a-mini:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.a-mini--danger:hover { border-color: var(--danger); background: var(--danger); }
.a-mini--ghost { opacity: .8; }

/* stats */
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.a-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: grid; transition: box-shadow .25s, transform .25s; }
.a-stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.a-stat strong { font-size: 2rem; color: var(--ink); }
.a-stat span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.a-stat.is-hot { border-color: var(--accent); background: linear-gradient(140deg, #fff, rgba(214, 164, 40, .16)); }

/* panels + tables */
.a-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin-bottom: 1.4rem; }
.a-panel h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.a-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; gap: 1rem; flex-wrap: wrap; }
.a-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.a-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .55rem .6rem; border-bottom: 1.5px solid var(--line); }
.a-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tr.is-unread { background: rgba(214, 164, 40, .09); }
.a-table tr.is-draft { opacity: .55; }
.a-table__actions { display: flex; gap: .4rem; justify-content: flex-end; }
.a-msg { max-width: 340px; font-size: .85rem; }
.a-tag { display: inline-block; background: rgba(11, 18, 32, .07); border-radius: 999px; padding: .12em .7em; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.a-tag--live, .a-tag--create { background: rgba(214, 164, 40, .25); color: var(--accent-dark); }
.a-tag--draft { background: rgba(11, 18, 32, .08); }
.a-tag--delete { background: #fdecec; color: var(--danger); }
.a-tag--login, .a-tag--update { background: rgba(20, 32, 51, .12); color: #24344f; }
.a-tag--upload, .a-tag--duplicate, .a-tag--reorder { background: rgba(20, 32, 51, .1); color: #495a7c; }

/* toolbar / search */
.a-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.a-input { border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font: 500 .92rem inherit; color: var(--ink); background: #fff; }
.a-input:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 4px rgba(214, 164, 40, .16); }
textarea.a-input { line-height: 1.5; resize: vertical; }
.a-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.a-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .82rem; color: var(--muted); cursor: pointer; }
.a-tab.is-on, .a-tab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* generic sortable list row (products/distributors/series/news/partners/resources/key-features/staff-alike) */
.a-listgroup { display: grid; gap: 1.2rem; }
.a-listcol { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.a-listcol__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; gap: .6rem; }
.a-listcol__head h2 { font-size: 1.05rem; }
.a-list { list-style: none; display: grid; gap: .5rem; min-height: 44px; }
.a-listrow { display: flex; align-items: center; gap: .65rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .7rem; transition: box-shadow .2s, border-color .2s; }
.a-listrow:hover { border-color: rgba(214, 164, 40, .7); box-shadow: var(--shadow); }
.a-listrow.is-draft { opacity: .55; }
.a-listrow.sortable-ghost { opacity: .3; border-style: dashed; }
.a-grip { cursor: grab; color: var(--muted); letter-spacing: -2px; user-select: none; padding: 0 .1rem; }
.a-listrow__thumb { width: 52px; height: 38px; object-fit: cover; border-radius: 8px; background: #e4e6ec; flex: 0 0 auto; }
.a-listrow__thumb--round { width: 40px; height: 40px; border-radius: 50%; }
/* Brand-logo chip (distributors): contain, never crop - these are wordmarks,
   not portraits. White so dark-on-transparent logos read; the handful of
   white-knockout logos are tagged needs_dark_background in assets metadata. */
.a-listrow__thumb--logo { width: 72px; height: 40px; object-fit: contain; background: #fff; border: 1px solid rgba(11, 18, 32, .1); padding: 3px; }
.a-listrow__txt { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.a-listrow__txt strong { font-size: .78rem; color: var(--accent-dark); letter-spacing: .04em; }
.a-listrow__txt em { font-style: normal; font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-listrow__meta { font-size: .74rem; color: var(--muted); white-space: nowrap; }

/* switch */
.a-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 40px; }
.a-switch input { opacity: 0; width: 0; height: 0; }
.a-switch span { position: absolute; inset: 0; background: rgba(11, 18, 32, .18); border-radius: 999px; transition: background .2s; }
.a-switch span::before { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.a-switch input:checked + span { background: var(--accent-dark); }
.a-switch input:checked + span::before { transform: translateX(18px); }
.a-switch--sm { width: 32px; height: 18px; flex-basis: 32px; }
.a-switch--sm span::before { width: 12px; height: 12px; }
.a-switch--sm input:checked + span::before { transform: translateX(14px); }

/* forms */
.a-editgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.a-panel--wide { grid-column: 1 / -1; }
.a-editgrid label, .a-dialog label { display: grid; gap: .35rem; font-weight: 700; font-size: .84rem; margin-bottom: .9rem; }
.a-editgrid input, .a-editgrid select, .a-editgrid textarea,
.a-dialog input, .a-dialog select, .a-dialog textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .8rem;
  font: 500 .92rem inherit; color: var(--text); background: var(--bg); width: 100%;
}
.a-editgrid input:focus, .a-editgrid textarea:focus, .a-editgrid select:focus, .a-dialog input:focus { outline: none; border-color: var(--accent-dark); background: #fff; box-shadow: 0 0 0 4px rgba(214, 164, 40, .16); }
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.a-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }
.a-check { display: flex !important; align-items: center; gap: .6rem; }
.a-check input { width: auto !important; }
.a-code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace !important; font-size: .82rem !important; line-height: 1.5; white-space: pre; }
.a-fieldnote { font-weight: 500 !important; font-size: .78rem !important; color: var(--muted); margin-top: -.6rem; margin-bottom: .9rem; }

/* image / asset pickers */
.a-imgpick { display: grid; gap: .8rem; justify-items: start; }
.a-imgpick img { width: 100%; max-width: 280px; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; background: #e4e6ec; }
.a-imgpick--sm img { max-width: 180px; }
.a-imgpick__row { display: flex; gap: .5rem; }
.a-assetpick { display: grid; gap: .5rem; }
.a-assetpick__preview { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border: 1.5px dashed var(--line); border-radius: 10px; font-size: .82rem; color: var(--muted); background: var(--bg); min-height: 2.4em; }
.a-assetpick__preview.has-file { color: var(--ink); font-weight: 700; border-style: solid; background: #fff; }
.a-assetpick__row { display: flex; gap: .5rem; }
.a-fieldgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }

/* categories / features pickers */
.a-cattree { display: grid; gap: .2rem; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; background: #fff; }
.a-cattree ul { list-style: none; margin-left: 1.4rem; }
.a-cattree label { display: flex !important; align-items: center; gap: .5rem; font-weight: 600 !important; font-size: .86rem !important; margin-bottom: .35rem !important; }
.a-cattree label input { width: auto !important; }
.a-featurepick { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .8rem .9rem; }
.a-featurepick__search { margin-bottom: .7rem !important; }
.a-featuregrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .3rem .8rem; max-height: 320px; overflow: auto; }
.a-featuregrid label { display: flex !important; align-items: center; gap: .5rem; font-weight: 600 !important; font-size: .84rem !important; margin-bottom: .3rem !important; }
.a-featuregrid label input { width: auto !important; }
.a-featuregrid label.is-hidden { display: none !important; }
.a-conditional { border-top: 2px dashed var(--accent); margin-top: .4rem; padding-top: 1.2rem; }
.a-conditional.is-hidden { display: none; }
.a-conditional__note { background: rgba(214, 164, 40, .12); border: 1px solid rgba(214, 164, 40, .3); border-radius: 10px; padding: .6rem .9rem; font-size: .82rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 1rem; }

/* rich text editor */
.a-rte { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.a-rte__bar { display: flex; gap: .25rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); background: rgba(11, 18, 32, .03); }
.a-rte__bar button { border: 1px solid transparent; background: none; border-radius: 6px; min-width: 30px; height: 28px; cursor: pointer; font-size: .85rem; color: var(--ink); }
.a-rte__bar button:hover { background: #fff; border-color: var(--line); }
.a-rte__src { margin-left: auto; font-weight: 800; font-size: .72rem !important; }
.a-rte__area { padding: 1rem 1.1rem; min-height: 160px; outline: none; font-size: .93rem; max-height: 480px; overflow: auto; background: #fff; }
.a-rte__area:focus { box-shadow: inset 0 0 0 2px rgba(214, 164, 40, .35); }
.a-rte__area ul, .a-rte__area ol { padding-left: 1.4rem; }
.a-rte__area img { max-width: 100%; height: auto; }
.a-rte__source { width: 100%; min-height: 200px; border: 0; padding: 1rem 1.1rem; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; background: var(--ink); color: #e8cd7f; }

/* media grid */
.a-mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; max-height: 60vh; overflow: auto; padding: .2rem; }
.a-mediagrid--page { max-height: none; }
.a-mediagrid__item { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .4rem; cursor: pointer; display: grid; gap: .3rem; transition: border-color .2s, box-shadow .2s; text-align: left; }
.a-mediagrid__item:hover { border-color: var(--accent-dark); box-shadow: var(--shadow); }
.a-mediagrid__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #e4e6ec; }
.a-mediagrid__name { font-size: .68rem; color: var(--muted); word-break: break-all; text-align: left; }
.a-mediagrid__pdf, .a-mediagrid__file { display: grid; place-items: center; aspect-ratio: 1; background: var(--bg); border-radius: 6px; font-weight: 800; font-size: .72rem; color: var(--danger); }
.a-upload { cursor: pointer; }

/* dialogs + toast */
.a-dialog { border: 0; border-radius: 18px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5); padding: 1.8rem 2rem; width: min(480px, 92vw); }
.a-dialog--media { width: min(820px, 94vw); }
.a-dialog::backdrop { background: rgba(11, 18, 32, .55); backdrop-filter: blur(4px); }
.a-dialog h2 { margin-bottom: 1.1rem; }
.a-dialog__actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.2rem; }
.a-dialog__search { margin-bottom: 1rem !important; }
.a-toast { position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 700; padding: .8rem 1.6rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 200; animation: toastin .3s cubic-bezier(.22,1,.36,1); }
.a-toast.err { background: var(--danger); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }

/* audit log */
.a-pager { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; margin-top: 1rem; font-size: .84rem; }
.a-pager a, .a-pager span { padding: .35rem .75rem; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.a-pager .is-on { background: var(--ink); color: #fff; }

@media (max-width: 980px) {
  .a-app { grid-template-columns: 1fr; grid-template-rows: none; }
  .a-side, .a-main { grid-column: 1; grid-row: auto; }
  .a-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem; }
  .a-side__nav { display: flex; flex-wrap: wrap; }
  .a-side__foot { margin: 0 0 0 auto; }
  .a-listgroup { grid-template-columns: 1fr; }
  .a-editgrid, .a-grid2, .a-grid3 { grid-template-columns: 1fr; }
  .a-main { padding: 1.4rem 1.2rem 3rem; }
}

/* ===== Dealer Referrals dashboard (/admin/referrals) ===== */
.rf-monthnav { display: flex; align-items: center; gap: 14px; }
.rf-chart { width: 100%; height: auto; display: block; }
.rf-chart .rf-xlab { font-size: 10px; fill: #7b8ea1; text-anchor: middle; }
.rf-chart .rf-vlab { font-size: 11px; fill: #2c3e50; text-anchor: middle; font-weight: 600; }
.rf-key { font-weight: 400; font-size: 12px; color: #7b8ea1; margin-left: 12px; }
.rf-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 3px 0 10px; vertical-align: baseline; }
.rf-delta { color: #7b8ea1; font-weight: 400; }
.rf-dealerbars { display: flex; flex-direction: column; gap: 6px; }
.rf-drow { display: grid; grid-template-columns: 220px 1fr 44px; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: inherit; }
.rf-drow:hover, .rf-drow.is-on { background: rgba(91, 194, 231, .1); }
.rf-dname { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-dbar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; background: rgba(0, 0, 0, .05); }
.rf-dbar i { display: block; height: 100%; min-width: 3px; }
.rf-dtotal { text-align: right; font-weight: 700; font-size: 13px; }
.rf-msg details p { white-space: pre-wrap; margin: 8px 0 0; }
.rf-msg summary { cursor: pointer; }
.rf-drill { border-left: 3px solid #5bc2e7; }
@media (max-width: 760px) { .rf-drow { grid-template-columns: 130px 1fr 36px; } }

/* All-Time Dealer Leaderboard: same .rf-drow/.rf-dbar row as the month-scoped
   Dealers panel, plus a leading rank-badge column (Rick 2026-08-04). */
.rf-lrow { grid-template-columns: 30px 220px 1fr 44px; }
@media (max-width: 760px) { .rf-lrow { grid-template-columns: 26px 130px 1fr 36px; } }
.rf-rank {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800;
	background: var(--line); color: var(--muted);
}
.rf-rank--1 { background: #f4d67a; color: #5a4400; }
.rf-rank--2 { background: #d8dee6; color: #3a4048; }
.rf-rank--3 { background: #e3ae7d; color: #4a2c0f; }
.rf-leaderboard .rf-drow:first-child { background: rgba(244, 214, 122, .16); }
