.hew-widget{
  --hew-bg:#07111f;
  --hew-bg-2:#091629;
  --hew-panel:#101b30;
  --hew-panel-2:#16233b;
  --hew-text:#f3f7ff;
  --hew-muted:#aebcd3;
  --hew-border:rgba(255,255,255,.08);
  --hew-line:rgba(255,255,255,.10);
  --hew-line-strong:rgba(110,190,255,.12);
  background:linear-gradient(135deg,var(--hew-bg) 0%,var(--hew-bg-2) 100%);
  color:var(--hew-text);
  border:1px solid rgba(255,255,255,.06);
  border-radius:0;
  padding:28px;
  box-shadow:0 16px 40px rgba(2,6,23,.22);
  overflow:hidden;
}
.hew-widget,.hew-widget *{box-sizing:border-box}
.hew-widget *{min-width:0}
.hew-widget h2,.hew-widget h3,.hew-widget p,.hew-widget strong,.hew-widget span{color:inherit}

.hew-topbar{
  display:grid;
  grid-template-columns:minmax(320px,1.1fr) minmax(420px,1fr);
  gap:20px;
  align-items:stretch;
  margin-bottom:20px;
}
.hew-heading{display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.hew-kicker{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.16em;color:#92a7ca;text-transform:uppercase;margin-bottom:10px}
.hew-kicker:before{content:"";width:10px;height:10px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.14)}
.hew-heading h2{margin:0;font-size:clamp(32px,4vw,60px);line-height:.98;color:#f7fbff;max-width:12ch;text-wrap:balance}
.hew-heading p{margin:12px 0 0;color:var(--hew-muted);font-size:15px;line-height:1.35;max-width:56ch}

.hew-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;min-width:0}
.hew-meta-box{
  background:linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.025) 100%);
  border:1px solid var(--hew-border);
  padding:18px 18px 16px;
  min-height:112px;
  display:grid;
  grid-template-rows:auto 1fr;
  align-content:space-between;
}
.hew-meta-box span{display:block;font-size:12px;color:#96acd0;text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px}
.hew-meta-box strong{font-size:26px;line-height:1.05;color:#f8fbff;align-self:end}
.hew-meta-box--small strong{font-size:24px}

.hew-rules{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.hew-rule-pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.04);border:1px solid var(--hew-border);color:#dde9fa;padding:12px 16px;font-size:14px;min-height:48px}
.hew-rule-dot{width:8px;height:8px;border-radius:50%;background:#f8fafc;opacity:.9;flex:0 0 auto}
.hew-rule-dot--secondary{background:#4cb8ff;opacity:.85}

.hew-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.hew-party-card{
  position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.05) 0%,rgba(255,255,255,.025) 100%);
  border:1px solid var(--hew-border);
  padding:20px;
  min-height:0;
  display:grid;
  grid-template-rows:92px 272px 92px 56px;
  row-gap:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.hew-party-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--party-color)}

.hew-badge{
  position:absolute;
  top:16px;
  right:16px;
  background:color-mix(in srgb,var(--party-color) 18%, transparent);
  border:1px solid color-mix(in srgb,var(--party-color) 38%, transparent);
  color:#f4f8ff!important;
  padding:7px 10px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1;
  white-space:nowrap;
}
.hew-badge--muted{right:88px;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#eef4fb!important}
.hew-badge--accent{right:164px;background:rgba(76,184,255,.08);border-color:rgba(76,184,255,.16);color:#b9e4ff!important}

.hew-party-head{
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  align-items:center;
  gap:16px;
  min-height:92px;
  padding-right:0;
}
.hew-leader-thumb{width:84px;height:84px;overflow:hidden;background:#152237;border:1px solid rgba(255,255,255,.09)}
.hew-leader-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hew-leader-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:28px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--party-color),#1b2c49)}
.hew-party-ident{display:grid;grid-template-rows:48px 24px;align-content:center;gap:6px;padding-right:190px}
.hew-party-ident h3{
  margin:0;
  font-size:24px;
  line-height:1;
  font-weight:800;
  color:#f8fbff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:normal;
}
.hew-party-ident p{
  margin:0;
  color:var(--hew-muted);
  font-size:15px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hew-mandate-visual{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:20px;align-items:end;min-height:272px}
.hew-bar-area{display:flex;align-items:flex-end;height:272px}
.hew-bar-track{
  position:relative;
  width:100%;
  height:100%;
  background:linear-gradient(180deg,rgba(255,255,255,.03) 0%,rgba(255,255,255,.07) 100%);
  border:1px solid rgba(255,255,255,.05);
  overflow:hidden;
}
.hew-bar-fill{
  position:absolute;left:0;right:0;bottom:0;
  background:linear-gradient(180deg,color-mix(in srgb,var(--party-color) 74%,white 26%) 0%,var(--party-color) 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;
}
.hew-line{position:absolute;left:14px;right:14px;height:0;border-top:1px solid var(--hew-line);opacity:.7;pointer-events:none}
.hew-line-super{border-top-color:var(--hew-line-strong);opacity:.75}
.hew-seat-total{height:272px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;padding-bottom:8px;text-align:right}
.hew-seat-total strong{display:block;font-size:68px;line-height:.9;color:#f8fbff;letter-spacing:-.03em}
.hew-seat-total span{display:block;color:var(--hew-muted);font-size:15px;line-height:1.1;white-space:nowrap}

.hew-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hew-stats>div{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.05);padding:16px;min-height:92px;display:grid;grid-template-rows:auto 1fr}
.hew-stats span{display:block;font-size:11px;color:#92a8cb;text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px}
.hew-stats strong{font-size:22px;line-height:1;color:#f8fbff;align-self:end}

.hew-card-footer{display:flex;align-items:center;gap:10px;color:#e3ecfb;padding-top:16px;border-top:1px solid rgba(255,255,255,.07);font-size:16px;min-width:0}
.hew-card-footer span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hew-color-chip{width:12px;height:12px;border-radius:50%;background:var(--party-color);box-shadow:0 0 0 4px rgba(255,255,255,.05);flex:0 0 auto}
.hew-note{margin-top:18px;color:#c7d5eb;font-size:14px}
.hew-empty{padding:20px;border:1px solid rgba(255,255,255,.08);background:#0f172a;color:#fff}

@media (max-width: 1380px){
  .hew-topbar{grid-template-columns:1fr}
}

@media (max-width: 1220px){
  .hew-board{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hew-party-ident{padding-right:150px}
  .hew-badge{font-size:10px;padding:6px 9px}
  .hew-badge--muted{right:82px}
  .hew-badge--accent{right:150px}
}

@media (max-width: 900px){
  .hew-widget{padding:20px}
  .hew-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hew-board{grid-template-columns:1fr;gap:16px}
  .hew-party-card{padding:16px;grid-template-rows:auto auto 84px 48px;row-gap:14px}
  .hew-badge,.hew-badge--muted,.hew-badge--accent{position:static;right:auto;top:auto;display:inline-flex;margin:0 8px 0 0}
  .hew-party-head{grid-template-columns:72px minmax(0,1fr);gap:12px;min-height:auto}
  .hew-leader-thumb{width:72px;height:72px}
  .hew-party-ident{grid-template-rows:auto auto;gap:6px;padding-right:0}
  .hew-party-ident h3{font-size:24px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.02}
  .hew-party-ident p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .hew-mandate-visual{grid-template-columns:minmax(0,1fr) 96px;gap:14px;min-height:220px}
  .hew-bar-area,.hew-seat-total{height:220px}
  .hew-seat-total strong{font-size:52px}
}

@media (max-width: 560px){
  .hew-widget{padding:16px}
  .hew-heading h2{font-size:clamp(28px,10vw,40px);max-width:none}
  .hew-heading p{font-size:14px}
  .hew-meta{grid-template-columns:1fr 1fr;gap:10px}
  .hew-meta-box{min-height:96px;padding:14px}
  .hew-meta-box strong{font-size:20px}
  .hew-rules{display:grid;grid-template-columns:1fr;gap:10px}
  .hew-rule-pill{width:100%;justify-content:flex-start;min-height:42px;padding:10px 12px;font-size:13px}
  .hew-party-card{grid-template-rows:auto auto auto 46px}
  .hew-party-head{grid-template-columns:64px minmax(0,1fr);gap:10px}
  .hew-leader-thumb{width:64px;height:64px}
  .hew-party-ident h3{font-size:22px}
  .hew-party-ident p{font-size:14px}
  .hew-mandate-visual{grid-template-columns:1fr;min-height:auto;gap:12px}
  .hew-bar-area{height:180px}
  .hew-seat-total{height:auto;align-items:flex-start;text-align:left;padding-bottom:0}
  .hew-seat-total strong{font-size:46px}
  .hew-stats{gap:10px}
}


/* v1.1.5 TT4 hardening */
.hew-widget,
.hew-widget *{
  font-family: inherit;
}
.hew-widget h1,
.hew-widget h2,
.hew-widget h3,
.hew-widget h4,
.hew-widget p,
.hew-widget span,
.hew-widget strong,
.hew-widget div{
  max-width:none !important;
}
.hew-widget .hew-board{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  align-items:stretch !important;
}
.hew-widget .hew-party-card{
  min-width:0 !important;
  width:100% !important;
  grid-template-rows:auto 272px 92px 56px !important;
  align-content:start !important;
}
.hew-widget .hew-party-head{
  display:grid !important;
  grid-template-columns:88px minmax(0,1fr) !important;
  gap:16px !important;
  align-items:start !important;
  min-height:96px !important;
  padding-right:0 !important;
}
.hew-widget .hew-party-ident{
  display:grid !important;
  grid-template-rows:48px 24px !important;
  gap:8px !important;
  align-content:start !important;
  padding-right:0 !important;
  min-width:0 !important;
}
.hew-widget .hew-party-ident h3{
  display:block !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  letter-spacing:0 !important;
  font-size:24px !important;
  line-height:1 !important;
  min-width:0 !important;
  margin:0 !important;
}
.hew-widget .hew-party-ident p{
  display:block !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  min-width:0 !important;
  margin:0 !important;
}
.hew-widget .hew-badge,
.hew-widget .hew-badge--muted,
.hew-widget .hew-badge--accent{
  top:18px !important;
  right:18px !important;
  left:auto !important;
  padding:6px 10px !important;
  min-width:auto !important;
  max-width:none !important;
  font-size:10px !important;
  line-height:1 !important;
}
.hew-widget .hew-badge--muted{ right:84px !important; }
.hew-widget .hew-badge--accent{ right:148px !important; }
.hew-widget .hew-mandate-visual{
  grid-template-columns:minmax(0,1fr) 118px !important;
  align-items:end !important;
}
.hew-widget .hew-bar-track{
  border-color:rgba(255,255,255,.04) !important;
}
.hew-widget .hew-line{
  left:16px !important;
  right:16px !important;
  border-top:1px solid rgba(255,255,255,.12) !important;
  opacity:.45 !important;
}
.hew-widget .hew-line-super{
  border-top-color:rgba(76,184,255,.18) !important;
  opacity:.5 !important;
}
.hew-widget .hew-seat-total{
  align-items:flex-end !important;
  justify-content:flex-end !important;
}
.hew-widget .hew-seat-total strong{
  font-size:72px !important;
}
.hew-widget .hew-stats > div{
  min-width:0 !important;
}
.hew-widget .hew-card-footer{
  min-width:0 !important;
}

@media (max-width: 1220px){
  .hew-widget .hew-board{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width: 900px){
  .hew-widget .hew-board{grid-template-columns:1fr !important;}
  .hew-widget .hew-party-card{grid-template-rows:auto auto 84px 48px !important;}
  .hew-widget .hew-party-head{grid-template-columns:72px minmax(0,1fr) !important; min-height:auto !important;}
  .hew-widget .hew-party-ident{grid-template-rows:auto auto !important;}
  .hew-widget .hew-party-ident h3,
  .hew-widget .hew-party-ident p{
    white-space:normal !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
  }
  .hew-widget .hew-badge,
  .hew-widget .hew-badge--muted,
  .hew-widget .hew-badge--accent{
    position:static !important;
    display:inline-flex !important;
    margin:0 8px 0 0 !important;
  }
  .hew-widget .hew-mandate-visual{grid-template-columns:minmax(0,1fr) 96px !important; min-height:220px !important;}
}
@media (max-width: 560px){
  .hew-widget .hew-topbar{gap:16px !important;}
  .hew-widget .hew-meta{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .hew-widget .hew-party-head{grid-template-columns:64px minmax(0,1fr) !important;}
  .hew-widget .hew-mandate-visual{grid-template-columns:1fr !important; min-height:auto !important;}
  .hew-widget .hew-seat-total{
    height:auto !important;
    align-items:flex-start !important;
    text-align:left !important;
  }
}


/* v1.2 layout + slim shortcode */
.hew-widget .hew-board.hew-board--four{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.hew-widget .hew-board.hew-board--four .hew-party-card{
  padding:18px !important;
}
.hew-widget .hew-board.hew-board--four .hew-party-head{
  grid-template-columns:72px minmax(0,1fr) !important;
  gap:12px !important;
  min-height:84px !important;
}
.hew-widget .hew-board.hew-board--four .hew-leader-thumb{
  width:72px;
  height:72px;
}
.hew-widget .hew-board.hew-board--four .hew-party-ident{
  grid-template-rows:40px 22px !important;
}
.hew-widget .hew-board.hew-board--four .hew-party-ident h3{
  font-size:20px !important;
}
.hew-widget .hew-board.hew-board--four .hew-party-ident p{
  font-size:14px !important;
}
.hew-widget .hew-board.hew-board--four .hew-badge,
.hew-widget .hew-board.hew-board--four .hew-badge--muted,
.hew-widget .hew-board.hew-board--four .hew-badge--accent{
  position:static !important;
  display:inline-flex !important;
  margin:0 6px 0 0;
}
.hew-widget .hew-board.hew-board--four .hew-party-head{
  align-items:start !important;
}
.hew-widget .hew-board.hew-board--four .hew-party-card{
  grid-template-rows:auto 240px 84px 44px !important;
}
.hew-widget .hew-board.hew-board--four .hew-mandate-visual{
  grid-template-columns:minmax(0,1fr) 84px !important;
  gap:12px !important;
  min-height:240px !important;
}
.hew-widget .hew-board.hew-board--four .hew-bar-area,
.hew-widget .hew-board.hew-board--four .hew-seat-total{
  height:240px !important;
}
.hew-widget .hew-board.hew-board--four .hew-seat-total strong{
  font-size:54px !important;
}
.hew-widget .hew-board.hew-board--four .hew-stats>div{
  min-height:84px !important;
  padding:14px !important;
}
.hew-widget .hew-board.hew-board--four .hew-card-footer{
  font-size:15px !important;
}

/* Slim-only layout */
.hew-widget--slim{
  padding:14px 16px;
  border-radius:0;
  overflow:hidden;
}
.hew-widget--slim .hew-slim-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px 20px;
  margin-bottom:12px;
}
.hew-widget--slim .hew-slim-title{
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  align-items:baseline;
  min-width:0;
}
.hew-widget--slim .hew-slim-title strong{
  font-size:20px;
  line-height:1.05;
  color:#f8fbff;
  white-space:nowrap;
}
.hew-widget--slim .hew-slim-title span{
  font-size:12px;
  color:#92a8cb;
  white-space:nowrap;
}
.hew-widget--slim .hew-slim-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px 14px;
  color:#c9d6eb;
  font-size:12px;
}
.hew-widget--slim .hew-slim-meta strong{
  color:#f8fbff;
  font-size:14px;
  margin-left:4px;
}
.hew-widget--slim .hew-slim-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}
.hew-widget--slim .hew-slim-party{
  position:relative;
  min-width:0;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid var(--hew-border);
  padding:10px 10px 9px 12px;
}
.hew-widget--slim .hew-slim-party:before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background:var(--party-color);
}
.hew-widget--slim .hew-slim-party-head{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-width:0;
}
.hew-widget--slim .hew-slim-thumb{
  width:40px;
  height:40px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  background:#152237;
}
.hew-widget--slim .hew-slim-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hew-widget--slim .hew-slim-thumb .hew-leader-fallback{font-size:16px}
.hew-widget--slim .hew-slim-ident{
  min-width:0;
  display:grid;
  gap:2px;
}
.hew-widget--slim .hew-slim-ident strong{
  display:block;
  min-width:0;
  font-size:16px;
  line-height:1.05;
  color:#f8fbff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hew-widget--slim .hew-slim-ident span{
  display:block;
  min-width:0;
  font-size:12px;
  line-height:1.15;
  color:#9bb0d1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hew-widget--slim .hew-slim-numbers{
  text-align:right;
  padding-left:6px;
  white-space:nowrap;
}
.hew-widget--slim .hew-slim-numbers strong{
  display:block;
  font-size:30px;
  line-height:.92;
  color:#f8fbff;
}
.hew-widget--slim .hew-slim-numbers span{
  display:block;
  font-size:11px;
  color:#9bb0d1;
}
.hew-widget--slim .hew-slim-bar{
  height:8px;
  margin:10px 0 8px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.05);
  overflow:hidden;
}
.hew-widget--slim .hew-slim-bar span{
  display:block;
  height:100%;
  width:var(--seat-share);
  background:linear-gradient(90deg,color-mix(in srgb,var(--party-color) 82%, white 18%),var(--party-color));
}
.hew-widget--slim .hew-slim-stats{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:12px;
  color:#d7e2f3;
}
.hew-widget--slim .hew-slim-stats span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 8px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.05);
}
.hew-widget--slim .hew-slim-stats strong{
  font-size:13px;
  color:#f8fbff;
}
.hew-widget--slim .hew-slim-stats em{
  font-style:normal;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:3px 7px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#f8fbff;
}
@media (max-width: 1180px){
  .hew-widget--slim .hew-slim-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 780px){
  .hew-widget--slim{
    padding:12px 0;
  }
  .hew-widget--slim .hew-slim-top{
    padding:0 12px;
    align-items:flex-start;
    flex-direction:column;
  }
  .hew-widget--slim .hew-slim-meta{
    justify-content:flex-start;
  }
  .hew-widget--slim .hew-slim-row{
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 22px 4px 12px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .hew-widget--slim .hew-slim-row::-webkit-scrollbar{
    height:6px;
  }
  .hew-widget--slim .hew-slim-row::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.14);
  }
  .hew-widget--slim .hew-slim-party{
    flex:0 0 84vw;
    max-width:84vw;
    scroll-snap-align:start;
  }
}
@media (max-width: 480px){
  .hew-widget--slim .hew-slim-title strong{
    font-size:18px;
    white-space:normal;
  }
  .hew-widget--slim .hew-slim-party{
    flex-basis:84vw;
    max-width:84vw;
  }
  .hew-widget--slim .hew-slim-party-head{
    grid-template-columns:36px minmax(0,1fr) auto;
    gap:8px;
  }
  .hew-widget--slim .hew-slim-thumb{
    width:36px;height:36px;
  }
  .hew-widget--slim .hew-slim-ident strong{
    font-size:15px;
  }
  .hew-widget--slim .hew-slim-numbers strong{
    font-size:26px;
  }
}


/* v1.2.3 stronger slim mobile overrides */
.hew-widget--slim .hew-slim-title strong{
  font-size:18px !important;
  line-height:1.08 !important;
}

@media (max-width: 780px){
  .hew-widget--slim{
    padding:12px 0 !important;
  }

  .hew-widget--slim .hew-slim-top{
    padding:0 12px !important;
  }

  .hew-widget--slim .hew-slim-row{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:10px !important;
    padding:0 26px 4px 16px !important;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  .hew-widget--slim .hew-slim-party{
    flex:0 0 82vw !important;
    max-width:82vw !important;
    min-width:82vw !important;
    scroll-snap-align:start;
  }

  .hew-widget--slim .hew-slim-row > .hew-slim-party:first-child{
    margin-left:2px !important;
  }
}

@media (max-width: 480px){
  .hew-widget--slim .hew-slim-title strong{
    font-size:17px !important;
  }

  .hew-widget--slim .hew-slim-row{
    padding:0 28px 4px 16px !important;
  }

  .hew-widget--slim .hew-slim-party{
    flex-basis:82vw !important;
    max-width:82vw !important;
    min-width:82vw !important;
  }
}


/* Light theme option */
.hew-widget.hew-theme-light{
  --hew-bg:#ffffff;
  --hew-bg-2:#ffffff;
  --hew-panel:#ffffff;
  --hew-panel-2:#f6f8fb;
  --hew-text:#101828;
  --hew-muted:#475467;
  --hew-border:rgba(16,24,40,.10);
  --hew-line:rgba(16,24,40,.12);
  --hew-line-strong:rgba(185,28,28,.18);
  background:#ffffff;
  color:#101828;
  border:1px solid rgba(16,24,40,.10);
  box-shadow:none;
}

.hew-widget.hew-theme-light h1,
.hew-widget.hew-theme-light h2,
.hew-widget.hew-theme-light h3,
.hew-widget.hew-theme-light strong,
.hew-widget.hew-theme-light span,
.hew-widget.hew-theme-light p{
  color:inherit;
}

.hew-widget.hew-theme-light .hew-slim-title strong{
  color:#111827 !important;
}

.hew-widget.hew-theme-light .hew-slim-title span{
  color:#667085 !important;
}

.hew-widget.hew-theme-light .hew-slim-meta{
  color:#344054 !important;
}

.hew-widget.hew-theme-light .hew-slim-meta strong{
  color:#111827 !important;
}

.hew-widget.hew-theme-light .hew-slim-party{
  background:#ffffff;
  border:1px solid rgba(16,24,40,.10);
  box-shadow:0 1px 0 rgba(16,24,40,.03);
}

.hew-widget.hew-theme-light .hew-slim-party:before{
  background:var(--party-color);
}

.hew-widget.hew-theme-light .hew-slim-thumb{
  background:#f4f7fb;
  border:1px solid rgba(16,24,40,.10);
}

.hew-widget.hew-theme-light .hew-slim-ident strong{
  color:#111827 !important;
}

.hew-widget.hew-theme-light .hew-slim-ident span{
  color:#667085 !important;
}

.hew-widget.hew-theme-light .hew-slim-numbers strong{
  color:#111827 !important;
}

.hew-widget.hew-theme-light .hew-slim-numbers span{
  color:#667085 !important;
}

.hew-widget.hew-theme-light .hew-slim-bar{
  background:#f3f4f6;
  border:1px solid rgba(16,24,40,.08);
}

.hew-widget.hew-theme-light .hew-slim-bar span{
  background:linear-gradient(90deg, color-mix(in srgb, var(--party-color) 86%, white 14%), var(--party-color));
}

.hew-widget.hew-theme-light .hew-slim-stats{
  color:#344054 !important;
}

.hew-widget.hew-theme-light .hew-slim-stats span{
  background:#f8fafc;
  border:1px solid rgba(16,24,40,.08);
  color:#344054 !important;
}

.hew-widget.hew-theme-light .hew-slim-stats strong{
  color:#111827 !important;
}

.hew-widget.hew-theme-light .hew-slim-stats em{
  background:#fff5f5;
  border:1px solid rgba(185,28,28,.18);
  color:#b91c1c !important;
}

.hew-widget.hew-theme-light .hew-kicker{
  color:#7a8699;
}

.hew-widget.hew-theme-light .hew-kicker:before{
  background:#dc2626;
  box-shadow:0 0 0 4px rgba(220,38,38,.10);
}

/* optional subtle red editorial touch */
.hew-widget.hew-theme-light .hew-slim-top{
  border-bottom:1px solid rgba(185,28,28,.10);
  padding-bottom:10px;
}

@media (max-width: 780px){
  .hew-widget.hew-theme-light .hew-slim-top{
    padding-bottom:8px !important;
  }
}

/* v1.2.5 hard edge padding fix */
.hew-widget--slim{
  padding-left:16px !important;
  padding-right:16px !important;
}

.hew-widget--slim .hew-slim-top{
  padding-left:0 !important;
  padding-right:0 !important;
}

.hew-widget--slim .hew-slim-row{
  padding-left:0 !important;
  padding-right:0 !important;
}

.hew-widget--slim .hew-slim-party{
  margin-left:0 !important;
  margin-right:0 !important;
}

@media (max-width: 780px){
  .hew-widget--slim{
    padding:12px 16px !important;
  }

  .hew-widget--slim .hew-slim-top{
    padding:0 !important;
  }

  .hew-widget--slim .hew-slim-row{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:10px !important;
    padding:0 0 4px 0 !important;
    margin:0 !important;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  .hew-widget--slim .hew-slim-row > .hew-slim-party{
    flex:0 0 calc(82vw - 16px) !important;
    min-width:calc(82vw - 16px) !important;
    max-width:calc(82vw - 16px) !important;
    scroll-snap-align:start;
  }

  .hew-widget--slim .hew-slim-row > .hew-slim-party:first-child{
    margin-left:0 !important;
  }

  .hew-widget--slim .hew-slim-row > .hew-slim-party:last-child{
    margin-right:0 !important;
  }
}

@media (max-width: 480px){
  .hew-widget--slim{
    padding:12px 16px !important;
  }

  .hew-widget--slim .hew-slim-row{
    padding:0 0 4px 0 !important;
  }

  .hew-widget--slim .hew-slim-row > .hew-slim-party{
    flex:0 0 calc(84vw - 16px) !important;
    min-width:calc(84vw - 16px) !important;
    max-width:calc(84vw - 16px) !important;
  }

  .hew-widget--slim .hew-slim-title strong{
    font-size:17px !important;
  }
}


/* LIVE badge */
.hew-live-badge{
  color:#ef4444;
  font-weight:700;
  font-size:12px;
  margin-right:10px;
  animation:hewPulse 1.5s infinite;
}
@keyframes hewPulse{
  0%{opacity:1}
  50%{opacity:.4}
  100%{opacity:1}
}

/* animation bars */
.hew-slim-bar span{
  transition:width .8s ease;
}

/* below threshold fade */
.hew-slim-party--low{
  opacity:.45;
  filter:grayscale(.3);
}

/* scroll hint */
.hew-widget--slim:after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:40px;
  background:linear-gradient(to right, transparent, rgba(0,0,0,.25));
  pointer-events:none;
}
.hew-theme-light.hew-widget--slim:after{
  background:linear-gradient(to right, transparent, rgba(255,255,255,.9));
}
/* v1.3.1 LIVE badge fix */
.hew-live-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center;
  gap:6px;
  color:#dc2626 !important;
  font-weight:800 !important;
  font-size:12px;
  line-height:1 !important;
  vertical-align:middle !important;
  transform:none !important;
}

.hew-live-badge::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#dc2626;
  display:inline-block;
  flex:0 0 auto;
  position:relative;
  top:0;
  box-shadow:0 0 0 4px rgba(220,38,38,.12);
  animation:hewPulseDot 1.5s infinite;
}

.hew-live-badge{
  animation:none !important;
}

@keyframes hewPulseDot{
  0%{opacity:1;transform:scale(1)}
  50%{opacity:.55;transform:scale(.92)}
  100%{opacity:1;transform:scale(1)}
}
