/* ============================================================
   hermon-dash.css — faithful recreation of the real Hermon
   product UI (dashboard, leaderboard, work queues).
   Namespaced .hdash / .hd-* so it never leaks into the page.
   ============================================================ */

.hdash {
  --hd-bg: #FCFBFD;
  --hd-surface: #FFFFFF;
  --hd-line: #EEECF3;
  --hd-line-2: #E6E3EE;
  --hd-ink: #1B1825;
  --hd-ink-2: #514C5E;
  --hd-muted: #8A8494;
  --hd-faint: #ABA6B5;
  --hd-purple: var(--purple, #6D4AE6);
  --hd-purple-soft: color-mix(in oklab, var(--hd-purple), #fff 88%);
  --hd-purple-tint: color-mix(in oklab, var(--hd-purple), #fff 94%);
  --hd-orange: #F5972A;
  --hd-green: #19925E;
  --hd-green-soft: #E7F5ED;
  --hd-red: #DB4B53;
  --hd-red-soft: #FBEBEC;
  --hd-cyan: #0E9FB8;
  --hd-cyan-soft: #E2F5F8;
  --hd-gold: #E3A93A;
  --hd-silver: #AEB4C0;
  --hd-bronze: #C57F4F;

  background: var(--hd-surface);
  color: var(--hd-ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px; line-height: 1.45; text-align: left;
  letter-spacing: 0;
}
.hdash * { box-sizing: border-box; }

/* shell */
.hdash__shell { display: grid; grid-template-columns: 156px 1fr; min-height: 100%; }
.hdash__side { border-right: 1px solid var(--hd-line); padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; background: var(--hd-surface); }
.hd-logo { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; }
.hd-logo .mk { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; flex: none; }
.hd-logo .mk svg { width: 15px; height: 15px; color: #fff; }
.hd-logo .mk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-logo img { height: 13px; width: auto; }
.hd-navhead { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-faint); padding: 6px 8px 4px; }
.hd-navitem { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; color: var(--hd-ink-2); font-weight: 600; font-size: 12.5px; cursor: default; }
.hd-navitem svg { width: 15px; height: 15px; color: var(--hd-muted); flex: none; }
.hd-navitem.on { background: var(--hd-purple-soft); color: var(--hd-purple); }
.hd-navitem.on svg { color: var(--hd-purple); }
.hd-navitem .chev { margin-left: auto; width: 12px; height: 12px; }
.hd-side-sp { flex: 1; }
.hd-user { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-top: 1px solid var(--hd-line); margin-top: 6px; }
.hd-user .av { width: 26px; height: 26px; border-radius: 7px; background: var(--hd-purple); color:#fff; display:grid; place-items:center; font-weight:700; font-size:11px; flex:none; }
.hd-user .nm { font-weight: 700; font-size: 12px; line-height: 1.2; }
.hd-user .rl { font-size: 10.5px; color: var(--hd-muted); }
.hd-user .chev { margin-left: auto; width: 13px; height: 13px; color: var(--hd-muted); }

.hdash__main { background: var(--hd-bg); padding: 0; min-width: 0; display: flex; flex-direction: column; }
.hd-appbar { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--hd-line); background: var(--hd-surface); }
.hd-appbar .crumb { display: flex; align-items: center; gap: 9px; color: var(--hd-ink-2); font-weight: 600; font-size: 12.5px; }
.hd-appbar .crumb svg { width: 16px; height: 16px; color: var(--hd-muted); }
.hd-appbar .ws { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid var(--hd-line-2); border-radius: 9px; }
.hd-appbar .ws .wsmk { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg,#F5972A,#E3A93A); color:#fff; display:grid; place-items:center; font-weight:800; font-size:9px; flex:none; }
.hd-appbar .ws .nm { font-weight: 700; font-size: 11.5px; line-height: 1.15; }
.hd-appbar .ws .sub { font-size: 10px; color: var(--hd-muted); }
.hd-appbar .ws .chev { width: 12px; height: 12px; color: var(--hd-muted); }

.hd-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.hd-head { display: flex; align-items: center; gap: 10px; }
.hd-h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hd-dd { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--hd-line-2); border-radius: 9px; background: var(--hd-surface); font-weight: 600; font-size: 12px; color: var(--hd-ink-2); }
.hd-dd svg { width: 13px; height: 13px; color: var(--hd-muted); }
.hd-head .r { margin-left: auto; }
.hd-controls { display: flex; align-items: center; gap: 9px; }
.hd-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--hd-line-2); border-radius: 9px; background: var(--hd-surface); font-weight: 600; font-size: 12px; color: var(--hd-ink-2); }
.hd-pill svg { width: 13px; height: 13px; color: var(--hd-muted); }
.hd-pill .x { color: var(--hd-faint); }

/* KPI grid */
.hd-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.hd-kpi { background: var(--hd-surface); border: 1px solid var(--hd-line); border-radius: 13px; padding: 11px 14px; position: relative; overflow: hidden; }
.hd-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hd-kpi__label { font-size: 11.5px; font-weight: 600; color: var(--hd-ink-2); }
.hd-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2.5px 6px; border-radius: 6px; }
.hd-trend svg { width: 10px; height: 10px; }
.hd-trend.up { background: var(--hd-green-soft); color: var(--hd-green); }
.hd-trend.down { background: var(--hd-red-soft); color: var(--hd-red); }
.hd-kpi__val { font-size: 23px; font-weight: 800; letter-spacing: -.03em; margin: 5px 0 4px; }
.hd-kpi__sub { font-size: 11px; font-weight: 600; color: var(--hd-ink-2); }
.hd-kpi__desc { font-size: 10px; color: var(--hd-faint); margin-top: 3px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hd-kpi__foot { display: flex; align-items: flex-end; gap: 8px; margin-top: 4px; }
.hd-kpi__txt { flex: 1; min-width: 0; }
.hd-kpi__spark { flex: none; width: 40px; height: 18px; opacity: .85; }
.hd-showmore { align-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--hd-line-2); border-radius: 9px; background: var(--hd-surface); font-weight: 700; font-size: 11.5px; color: var(--hd-ink-2); }
.hd-showmore svg { width: 13px; height: 13px; }

/* horizontally-scrollable metric strip (feature card) */
.hd-kpiscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--hd-line-2) transparent; }
.hd-kpiscroll .hd-kpi { flex: none; width: 198px; scroll-snap-align: start; }
.hd-kpiscroll::-webkit-scrollbar { height: 8px; }
.hd-kpiscroll::-webkit-scrollbar-thumb { background: var(--hd-line-2); border-radius: 99px; }
.hd-kpiscroll::-webkit-scrollbar-track { background: transparent; }

/* cards (charts row) */
.hd-row3 { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; }
.hd-card { background: var(--hd-surface); border: 1px solid var(--hd-line); border-radius: 14px; padding: 14px; min-width: 0; }
.hd-card__h { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.hd-card__t { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.hd-card__sub { font-size: 11px; color: var(--hd-muted); font-weight: 500; }
.hd-card__h .r { margin-left: auto; }
.hd-legend { display: flex; gap: 14px; margin-bottom: 6px; }
.hd-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--hd-ink-2); }
.hd-legend i { width: 8px; height: 8px; border-radius: 50%; }
.hd-legend b { color: var(--hd-ink); }
.hd-chart { width: 100%; position: relative; }
.hd-chart svg { width: 100%; height: auto; display: block; cursor: crosshair; }
.hd-tip { position: absolute; top: 2px; transform: translateX(-50%); background: var(--hd-ink); color: #fff; border-radius: 9px; padding: 7px 10px; font-size: 10.5px; line-height: 1.3; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); pointer-events: none; white-space: nowrap; z-index: 6; }
.hd-tip__d { font-weight: 800; font-size: 10px; opacity: .8; margin-bottom: 5px; }
.hd-tip__r { display: flex; align-items: center; gap: 6px; font-weight: 600; color: rgba(255,255,255,.85); }
.hd-tip__r + .hd-tip__r { margin-top: 2px; }
.hd-tip__r b { margin-left: 14px; font-weight: 800; color: #fff; }
.hd-tip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hd-xaxis span.on { color: var(--hd-purple); font-weight: 800; }
.hd-xaxis { display: flex; justify-content: space-between; margin-top: 4px; }
.hd-xaxis span { font-size: 9.5px; color: var(--hd-faint); font-weight: 600; }

/* pie / call distribution */
.hd-pie-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 4px; }
.hd-pie { width: 132px; height: 132px; }
.hd-pie-c { text-align: center; }
.hd-pie-c b { font-size: 18px; font-weight: 800; color: var(--hd-purple); letter-spacing: -.02em; }
.hd-pie-c span { display: block; font-size: 10.5px; color: var(--hd-muted); font-weight: 600; }

/* calendar availability */
.hd-cal { display: flex; flex-direction: column; gap: 10px; }
.hd-cal__row { display: flex; justify-content: space-between; align-items: flex-end; }
.hd-cal__k { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hd-faint); }
.hd-cal__v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.hd-cal__v small { font-size: 12px; color: var(--hd-muted); font-weight: 600; }
.hd-cal__v.pl { color: var(--hd-purple); }
.hd-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.hd-heat i { height: 9px; border-radius: 4px; background: var(--hd-purple); }
.hd-heat i.l0 { background: #EFEAF9; } .hd-heat i.l1 { background: color-mix(in oklab, var(--hd-purple), #fff 55%); } .hd-heat i.l2 { background: var(--hd-purple); } .hd-heat i.orange { background: var(--hd-orange); }
.hd-risk { background: var(--hd-purple-tint); border: 1px solid var(--hd-purple-soft); border-radius: 10px; padding: 9px 11px; }
.hd-risk .k { font-size: 10px; font-weight: 700; color: var(--hd-ink-2); }
.hd-risk .v { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.hd-badge-high { font-size: 10px; font-weight: 700; color: var(--hd-purple); background: var(--hd-purple-soft); padding: 2px 7px; border-radius: 6px; }

/* ---------------- Leaderboard table ---------------- */
.hd-roletabs { display: flex; gap: 6px; margin-bottom: 12px; }
.hd-tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: 12px; color: var(--hd-muted); border: 1px solid transparent; cursor: default; }
.hd-tab .ct { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--hd-line); color: var(--hd-muted); }
.hd-tab.on { color: var(--hd-purple); border-color: var(--hd-purple-soft); background: var(--hd-purple-tint); }
.hd-tab.on .ct { background: var(--hd-purple-soft); color: var(--hd-purple); }
.hd-tablewrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--hd-line); }
.hd-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hd-table th { text-align: left; font-size: 10.5px; font-weight: 700; color: var(--hd-muted); padding: 9px 12px; background: var(--hd-bg); border-bottom: 1px solid var(--hd-line); white-space: nowrap; }
.hd-table th.num, .hd-table td.num { text-align: right; }
.hd-table td { padding: 10px 12px; border-bottom: 1px solid var(--hd-line); white-space: nowrap; color: var(--hd-ink-2); font-weight: 600; }
.hd-table tr:last-child td { border-bottom: 0; }
.hd-rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; font-size: 11px; color:#fff; }
.hd-rank.g1 { background: linear-gradient(140deg,#F2C14E,#D9952F); }
.hd-rank.g2 { background: linear-gradient(140deg,#C9CfDA,#9AA1AE); }
.hd-rank.g3 { background: linear-gradient(140deg,#D79A6A,#B06E40); }
.hd-rank.plain { background: var(--hd-line); color: var(--hd-muted); }
.hd-member { display: flex; align-items: center; gap: 9px; }
.hd-member .av { width: 26px; height: 26px; border-radius: 7px; color:#fff; display:grid; place-items:center; font-weight:700; font-size:10px; flex:none; }
.hd-member .nm { font-weight: 700; color: var(--hd-ink); font-size: 12px; line-height: 1.15; }
.hd-member .rl { font-size: 10px; color: var(--hd-muted); font-weight: 600; }
.hd-strong { color: var(--hd-ink); font-weight: 800; }

/* ---------------- Work-queue tabs + outcomes table ---------------- */
.hd-qtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--hd-line); padding: 0 2px; margin-bottom: 14px; flex-wrap: wrap; }
.hd-qtab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 2px; font-weight: 700; font-size: 12.5px; color: var(--hd-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: default; }
.hd-qtab .ct { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--hd-line); color: var(--hd-muted); }
.hd-qtab.on { color: var(--hd-purple); border-bottom-color: var(--hd-purple); }
.hd-qtab.on .ct { background: var(--hd-purple-soft); color: var(--hd-purple); }
.hd-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.hd-badge i { width: 6px; height: 6px; border-radius: 50%; }
.hd-badge--resched { background: var(--hd-cyan-soft); color: var(--hd-cyan); }
.hd-badge--resched i { background: var(--hd-cyan); }
.hd-badge--booked { background: var(--hd-purple-soft); color: var(--hd-purple); }
.hd-badge--booked i { background: var(--hd-purple); }
.hd-badge--canceled { background: var(--hd-red-soft); color: var(--hd-red); }
.hd-badge--canceled i { background: var(--hd-red); }
.hd-badge--lost { background: var(--hd-red-soft); color: var(--hd-red); }
.hd-badge--lost i { background: var(--hd-red); }
.hd-badge--won { background: var(--hd-green-soft); color: var(--hd-green); }
.hd-badge--won i { background: var(--hd-green); }
.hd-badge--pending { background: #FBF1D9; color: #9A7016; }
.hd-badge--pending i { background: var(--hd-gold); }
.hd-badge--failed { background: var(--hd-red-soft); color: var(--hd-red); }
.hd-badge--failed i { background: var(--hd-red); }
.hd-badge--scheduled { background: var(--hd-purple-soft); color: var(--hd-purple); }
.hd-badge--scheduled i { background: var(--hd-purple); }
.hd-badge--viewed { background: var(--hd-cyan-soft); color: var(--hd-cyan); }
.hd-badge--viewed i { background: var(--hd-cyan); }
.hd-badge--unknown, .hd-badge--refunded { background: var(--hd-line); color: var(--hd-ink-2); }
.hd-badge--unknown i, .hd-badge--refunded i { background: var(--hd-muted); }

/* payment state sub-labels + timeline */
.hd-state { font-weight: 700; }
.hd-state--failed, .hd-tl--failed { color: var(--hd-red); }
.hd-state--pending, .hd-tl--pending { color: var(--hd-orange); }
.hd-state--scheduled, .hd-tl--scheduled { color: var(--hd-purple); }
.hd-tl { font-weight: 700; }

/* follow-up due color by state */
.hd-due { font-weight: 700; }
.hd-due--over { color: var(--hd-red); }
.hd-due--today { color: var(--hd-orange); }
.hd-due--soon { color: var(--hd-muted); }

/* work-queue tabs are interactive */
.hd-qtab { background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; }
.hd-qtab:hover { color: var(--hd-ink-2); }

/* work-queue section header (per-tab) */
.hd-qhead { display: flex; align-items: center; gap: 14px; padding: 2px 2px 14px; }
.hd-qhead__t { font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--hd-ink); }
.hd-qhead__r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hd-overdue { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--hd-red); background: var(--hd-red-soft); padding: 4px 10px; border-radius: 99px; }
.hd-overdue svg { width: 13px; height: 13px; }
.hd-qhead__total { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--hd-faint); }
.hd-qhead__stats { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.hd-qhead__stats > div { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.hd-qhead__stats .k { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-faint); }
.hd-qhead__stats b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.hd-qhead__stats b.red { color: var(--hd-red); }
.hd-qhead__stats b.orange { color: var(--hd-orange); }
.hd-qhead__stats b.purple { color: var(--hd-purple); }

/* follow-ups bits */
.hd-fllead { display: flex; align-items: center; gap: 10px; }
.hd-fcheck { color: var(--hd-green); display: grid; place-items: center; flex: none; }
.hd-fcheck svg { width: 18px; height: 18px; }
.hd-statsel { display: inline-flex; align-items: center; gap: 5px; }
.hd-statsel svg { width: 13px; height: 13px; color: var(--hd-faint); }
.hd-note { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hd-ink-2); }
.hd-tpbox { display: inline-block; font-weight: 700; color: var(--hd-ink-2); border: 1px solid var(--hd-line-2); border-radius: 8px; padding: 5px 10px; background: var(--hd-surface); }
.hd-due { color: var(--hd-red); font-weight: 700; }

.hd-link { color: var(--hd-purple); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.hd-link svg { width: 12px; height: 12px; }
.hd-noshow { color: var(--hd-green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.hd-noshow svg { width: 12px; height: 12px; }
.hd-2line .a { font-weight: 700; color: var(--hd-ink); }
.hd-2line .b { font-size: 10.5px; color: var(--hd-muted); }
.hd-pgbar { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; font-size: 11.5px; color: var(--hd-muted); font-weight: 600; }
.hd-pgbar b { color: var(--hd-ink); }
.hd-pgbtns { display: flex; gap: 5px; }
.hd-pgbtns span { width: 24px; height: 24px; border: 1px solid var(--hd-line-2); border-radius: 7px; display: grid; place-items: center; color: var(--hd-muted); }
.hd-pgbtns span svg { width: 12px; height: 12px; }

/* compact variant used inside feature cards */
.hd-compact { font-size: 12px; }

/* ---------------- Saved Views ---------------- */
.hd-views__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hd-views__new { font-size: 11px; font-weight: 700; color: #fff; background: var(--hd-purple); display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 8px; box-shadow: 0 8px 18px -8px rgba(109,74,230,.5); }
.hd-views__new svg { width: 12px; height: 12px; }
.hd-views__group { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hd-faint); margin: 10px 2px 7px; }
.hd-view { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--hd-line); border-radius: 10px; background: var(--hd-surface); margin-bottom: 7px; }
.hd-view:last-child { margin-bottom: 0; }
.hd-view.on { background: var(--hd-purple-tint); border-color: var(--hd-purple-soft); }
.hd-view__ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--hd-bg); color: var(--hd-muted); flex: none; }
.hd-view.on .hd-view__ic { background: var(--hd-purple-soft); color: var(--hd-purple); }
.hd-view__ic svg { width: 15px; height: 15px; }
.hd-view__nm { font-weight: 700; font-size: 12.5px; color: var(--hd-ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-view.on .hd-view__nm { color: var(--hd-purple); }
.hd-view__ct { font-size: 10.5px; font-weight: 700; color: var(--hd-muted); background: var(--hd-bg); border: 1px solid var(--hd-line); border-radius: 99px; padding: 2px 8px; flex: none; }
.hd-view.on .hd-view__ct { background: var(--hd-purple-soft); color: var(--hd-purple); border-color: transparent; }

/* ---------------- AI notes & outcomes (Log outcome) ---------------- */
.hd-ai__intro { font-size: 11.5px; color: var(--hd-muted); margin-bottom: 11px; line-height: 1.45; }
.hd-ai__intro b { color: var(--hd-ink); font-weight: 700; }
.hd-ai__label { font-size: 10.5px; font-weight: 700; color: var(--hd-ink-2); margin-bottom: 7px; }
.hd-optlist { border: 1px solid var(--hd-line); border-radius: 11px; overflow: hidden; }
.hd-opt { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-bottom: 1px solid var(--hd-line); }
.hd-opt:last-child { border-bottom: 0; }
.hd-opt.sel { background: var(--hd-bg); }
.hd-otag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
.hd-otag i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.hd-aisug { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: #2C66CE; background: #E5EEFB; padding: 3px 8px; border-radius: 99px; white-space: nowrap; flex: none; }
.hd-aisug svg { width: 10px; height: 10px; }
.hd-ai__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 11px; font-size: 11px; color: var(--hd-ink-2); line-height: 1.45; background: var(--hd-purple-tint); border: 1px solid var(--hd-purple-soft); border-radius: 10px; padding: 9px 11px; }
.hd-ai__note b { color: var(--hd-ink); font-weight: 700; }
.hd-ai__note svg { width: 14px; height: 14px; color: var(--hd-purple); flex: none; margin-top: 1px; }
.hd-ai__btnrow { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.hd-btn-primary { font-size: 12px; font-weight: 700; color: #fff; background: var(--hd-purple); padding: 8px 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 18px -8px rgba(109,74,230,.5); white-space: nowrap; }
.hd-btn-primary svg { width: 13px; height: 13px; }
.hd-btn-ghost { font-size: 12px; font-weight: 700; color: var(--hd-ink-2); background: var(--hd-surface); border: 1px solid var(--hd-line-2); padding: 8px 14px; border-radius: 9px; white-space: nowrap; }

/* ---------------- Top Performing Campaigns (Meta ads) ---------------- */
.hd-sec__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.hd-sec__t { font-size: 15px; font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.hd-sec__sub { font-size: 11.5px; color: var(--hd-muted); font-weight: 500; margin-top: 3px; max-width: 60ch; }
.hd-camp__src { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--hd-ink-2); background: var(--hd-bg); border: 1px solid var(--hd-line-2); border-radius: 99px; padding: 2px 9px 2px 6px; letter-spacing: 0; white-space: nowrap; flex: none; }
.hd-sec__ctl { margin-left: auto; display: flex; align-items: center; gap: 9px; flex: none; }

.hd-camprow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.hd-camp { background: var(--hd-surface); border: 1px solid var(--hd-line); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hd-camp__head { display: flex; align-items: center; gap: 8px; }
.hd-camp__head .hd-rank { width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; flex: none; }
.hd-camp__mk { width: 26px; height: 26px; border-radius: 8px; background: var(--hd-bg); border: 1px solid var(--hd-line); display: grid; place-items: center; flex: none; }
.hd-camp__id { min-width: 0; flex: 1; }
.hd-camp__nm { font-size: 12px; font-weight: 800; color: var(--hd-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-camp__tag { font-size: 10px; color: var(--hd-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hd-camp__roas { background: var(--hd-purple-tint); border: 1px solid var(--hd-purple-soft); border-radius: 11px; padding: 10px 12px; }
.hd-camp__roaslab { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-purple); opacity: .8; }
.hd-camp__roasrow { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 8px; }
.hd-camp__roasval { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--hd-ink); line-height: 1; }
.hd-camp__bar { height: 6px; border-radius: 99px; background: color-mix(in oklab, var(--hd-purple), #fff 80%); overflow: hidden; }
.hd-camp__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hd-purple), #8B6CFF); }

.hd-camp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.hd-camp__k { font-size: 10px; font-weight: 600; color: var(--hd-muted); }
.hd-camp__v { font-size: 14px; font-weight: 700; color: var(--hd-ink-2); letter-spacing: -.01em; margin-top: 1px; }
.hd-camp__v.strong { color: var(--hd-ink); font-weight: 800; }

.hd-camp__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--hd-line); }
.hd-camp__cpa { font-size: 11px; font-weight: 600; color: var(--hd-muted); }
.hd-camp__cpa b { color: var(--hd-ink); font-weight: 800; margin-left: 3px; }
.hd-camp__live { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--hd-green); }
.hd-camp__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--hd-green); box-shadow: 0 0 0 3px var(--hd-green-soft); }

@media (max-width: 820px) {
  .hd-camprow { grid-template-columns: repeat(2, 1fr); }
  .hd-sec__head { flex-direction: column; }
  .hd-sec__ctl { margin-left: 0; }
}

/* table variant */
.hd-camptable { table-layout: auto; }
.hd-camptable th, .hd-camptable td { padding-left: 10px; padding-right: 10px; }
.hd-camptable td { padding-top: 11px; padding-bottom: 11px; }
.hd-camptable .hd-camp__mk { border-radius: 7px; }
.hd-roascell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 74px; }
.hd-roascell__top { display: inline-flex; align-items: center; gap: 6px; }
.hd-roascell__v { font-size: 15px; font-weight: 800; color: var(--hd-ink); letter-spacing: -.02em; }
.hd-roascell .hd-camp__bar { width: 74px; height: 5px; }
