/* SMMS Client Portal — ink / sand / red */
:root {
  --smms-ink: #140e0c;
  --smms-ink-soft: #2a1f1b;
  --smms-red: #c41e3a;
  --smms-red-deep: #8b1528;
  --smms-sand: #e8d5a3;
  --smms-sand-soft: #f7f0e2;
  --smms-paper: #fbf8f4;
  --smms-line: rgba(20, 14, 12, 0.08);
  --smms-muted: #6b5c54;
  --smms-font: "DM Sans", "Segoe UI", sans-serif;
  --smms-display: "Fraunces", Georgia, serif;
  --sidebar-w: 248px;
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--smms-font);
  color: var(--smms-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 213, 163, 0.35), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 30, 58, 0.06), transparent 50%),
    var(--smms-paper);
}

a { color: var(--smms-red-deep); text-decoration: none; }
a:hover { color: var(--smms-red); }

.portal-shell { display: flex; min-height: 100vh; }

/* —— Sidebar —— */
.portal-nav {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--smms-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  border-right: 2px solid var(--smms-red);
}

.portal-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(232, 213, 163, 0.12);
}

.portal-nav__brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.portal-nav__name {
  font-family: var(--smms-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.portal-nav__sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smms-sand);
  margin-top: 2px;
}

.portal-nav__menu--compact .portal-nav__label { display: none; }
.portal-nav__menu--compact { padding-top: 8px; }
.portal-nav__menu--compact .portal-nav__link { padding: 10px 16px; font-size: 0.92rem; }

.portal-nav__menu {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 10px;
  flex: 1;
  overflow-y: auto;
}

.portal-nav__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 213, 163, 0.55);
  padding: 14px 12px 6px;
}

.portal-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.portal-nav__link i { font-size: 1.05rem; opacity: 0.9; width: 1.2em; text-align: center; }

.portal-nav__badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--smms-sand);
  color: var(--smms-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.portal-nav__link.is-active .portal-nav__badge {
  background: #fff;
  color: var(--smms-red-deep);
}

.portal-nav__link:hover,
.portal-nav__link.is-active {
  background: rgba(196, 30, 58, 0.22);
  color: #fff;
}

.portal-nav__link.is-active {
  box-shadow: inset 3px 0 0 var(--smms-sand);
}

.portal-nav__foot {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(232, 213, 163, 0.12);
}

.portal-nav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.portal-nav__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--smms-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.portal-nav__user-meta { min-width: 0; }
.portal-nav__user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-nav__user-org {
  font-size: 11px;
  color: var(--smms-sand);
}

.portal-nav__logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.portal-nav__logout:hover { color: var(--smms-sand); }

/* —— Main —— */
.portal-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-top {
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(251, 248, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--smms-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.portal-top__title {
  font-family: var(--smms-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.portal-top__meta {
  font-size: 12px;
  color: var(--smms-muted);
}

.portal-burger {
  display: none;
  border: 0;
  background: var(--smms-ink);
  color: var(--smms-sand);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
}

.portal-content {
  padding: 28px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
.portal-content--report {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100vh;
}
.report-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #f4f5f7;
}

/* —— Motion —— */
@keyframes smms-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.smms-fade { animation: smms-fade-up 0.45s ease both; }
.smms-fade-d1 { animation-delay: 0.06s; }
.smms-fade-d2 { animation-delay: 0.12s; }
.smms-fade-d3 { animation-delay: 0.18s; }
.smms-fade-d4 { animation-delay: 0.24s; }

/* —— Dashboard hero (AI) —— */
.insight-hero {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 28px 30px 26px;
  color: #fff;
  background:
    radial-gradient(600px 280px at 85% 20%, rgba(232, 213, 163, 0.22), transparent 60%),
    linear-gradient(135deg, var(--smms-red) 0%, var(--smms-red-deep) 42%, var(--smms-ink) 100%);
  margin-bottom: 22px;
}

.insight-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.03) 10px,
    rgba(255,255,255,0.03) 11px
  );
  pointer-events: none;
}

.insight-hero > * { position: relative; z-index: 1; }

.insight-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smms-sand);
  margin: 0 0 10px;
  font-weight: 600;
}

.insight-hero__title {
  font-family: var(--smms-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  max-width: 46rem;
}

.insight-hero__lede {
  margin: 0;
  max-width: 42rem;
  color: rgba(255,255,255,0.86);
  font-size: 0.98rem;
  line-height: 1.55;
}

.insight-hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.insight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(232, 213, 163, 0.25);
  color: var(--smms-sand);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.btn-smms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--smms-font);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--smms-sand);
  color: var(--smms-ink);
  transition: transform 0.15s, background 0.15s;
}
.btn-smms:hover { background: #fff; transform: translateY(-1px); color: var(--smms-ink); }
.btn-smms--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-smms--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-smms--solid {
  background: var(--smms-red);
  color: #fff;
}
.btn-smms--solid:hover { background: var(--smms-red-deep); color: #fff; }

/* —— Stats —— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color 0.18s, transform 0.18s;
}
.stat-card:hover {
  border-color: rgba(196, 30, 58, 0.35);
  transform: translateY(-2px);
}

.stat-card__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  margin: 0 0 8px;
}

.stat-card__value {
  font-family: var(--smms-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.stat-card__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--smms-muted);
}

/* —— High-impact clip reel —— */
.impact-reel {
  margin-bottom: 22px;
}
.impact-reel__head {
  margin-bottom: 14px;
}
.impact-reel__title {
  font-family: var(--smms-display);
  font-size: 1.55rem;
  margin: 0 0 6px;
  color: var(--smms-ink);
}
.impact-reel__lede {
  margin: 0;
  color: var(--smms-muted);
  max-width: 52ch;
  font-size: 0.95rem;
}
.impact-reel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.impact-card {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  transition: border-color 0.18s, transform 0.18s;
}
.impact-card:hover {
  border-color: rgba(196, 30, 58, 0.35);
  transform: translateY(-2px);
}
.impact-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.impact-card__channel {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smms-red);
  font-weight: 600;
}
.impact-card__hint {
  font-size: 11px;
  color: var(--smms-muted);
}
.impact-card__player {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1210;
  aspect-ratio: 16 / 9;
}
.impact-card__player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.impact-card__social {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a1f1b 0%, #140e0c 60%, #3d1a22 100%);
  color: #f5ebe0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
}
.impact-card__social i {
  font-size: 1.8rem;
  color: var(--smms-sand);
}
.impact-card__social p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
  max-width: 28ch;
}
.impact-card__title {
  font-family: var(--smms-display);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.35;
  color: var(--smms-ink);
}
.impact-card__summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--smms-muted);
  line-height: 1.45;
  flex: 1;
}
.impact-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--smms-muted);
  align-items: center;
}
.impact-card__meta a {
  color: var(--smms-red);
  text-decoration: none;
  font-weight: 600;
  margin-left: auto;
}
.impact-card__meta a:hover { text-decoration: underline; }
.impact-card__empty {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(20, 14, 12, 0.04);
  color: var(--smms-muted);
  font-size: 0.9rem;
}

/* —— Panels / grid —— */
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  padding: 18px 20px;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel__title {
  font-family: var(--smms-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.panel__sub {
  font-size: 12px;
  color: var(--smms-muted);
}

.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insight-list li {
  position: relative;
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--smms-line);
  font-size: 14px;
  line-height: 1.45;
}
.insight-list li:last-child { border-bottom: 0; }
.insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--smms-red);
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 8px 8px 0;
  border-radius: 6px;
  background: var(--smms-sand-soft);
  border: 1px solid var(--smms-line);
  font-size: 13px;
  font-weight: 500;
}
.theme-chip__n {
  font-size: 11px;
  color: var(--smms-muted);
  font-weight: 600;
}

.tone-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--smms-sand-soft);
  margin: 8px 0 12px;
}
.tone-bar__pos { background: #2f7d4a; }
.tone-bar__neu { background: #b8a48a; }
.tone-bar__neg { background: var(--smms-red); }

.tone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--smms-muted);
}
.tone-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.tone-legend .pos::before { background: #2f7d4a; }
.tone-legend .neu::before { background: #b8a48a; }
.tone-legend .neg::before { background: var(--smms-red); }

/* —— Story rows —— */
.story-list { display: flex; flex-direction: column; gap: 10px; }

.story-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.story-row:hover {
  border-color: rgba(196, 30, 58, 0.28);
  box-shadow: 0 6px 18px rgba(20, 14, 12, 0.05);
}

.story-row__thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--smms-sand-soft);
  display: block;
}

.story-row__channel {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smms-red);
  font-weight: 700;
  margin-bottom: 4px;
}

.story-row__title {
  font-family: var(--smms-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--smms-ink);
}

.story-row__meta {
  font-size: 12px;
  color: var(--smms-muted);
}

.story-row__summary {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--smms-ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-row__time {
  font-size: 11px;
  color: var(--smms-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--smms-muted);
  border: 1px dashed var(--smms-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
}

/* —— Login —— */
.login-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 420px at 15% 10%, rgba(232, 213, 163, 0.35), transparent 55%),
    linear-gradient(160deg, var(--smms-ink) 0%, #1c1411 48%, var(--smms-red-deep) 140%);
}

.login-card {
  width: min(420px, 100%);
  background: var(--smms-paper);
  border-radius: 12px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(232, 213, 163, 0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: smms-fade-up 0.5s ease both;
}

.login-card__brand {
  text-align: center;
  margin-bottom: 22px;
}
.login-card__brand img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.login-card__brand h1 {
  font-family: var(--smms-display);
  font-size: 1.35rem;
  margin: 0 0 4px;
}
.login-card__brand p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smms-muted);
}

.login-field { margin-bottom: 14px; }
.login-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--smms-muted);
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--smms-line);
  background: #fff;
  font: inherit;
  color: var(--smms-ink);
}
.login-field input:focus {
  outline: 2px solid rgba(196, 30, 58, 0.25);
  border-color: var(--smms-red);
}

.login-alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
}
.login-alert--error { background: #fde8eb; color: var(--smms-red-deep); }
.login-alert--ok { background: #e8f5ee; color: #1f5c38; }

.login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--smms-red);
  color: #fff;
  font-family: var(--smms-font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.login-submit:hover { background: var(--smms-red-deep); }

/* —— Responsive —— */
@media (max-width: 980px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .impact-reel__grid { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 64px 1fr; }
  .story-row__time { grid-column: 2; }
}

@media (max-width: 820px) {
  .portal-nav {
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }
  .portal-nav.is-open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .portal-burger { display: inline-grid; place-items: center; }
  .portal-content { padding: 18px 16px 28px; }
  .portal-top { padding: 0 16px; }
  .portal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,14,12,0.45);
    z-index: 35;
  }
  .portal-overlay.is-on { display: block; }
}

/* Soft-restyle legacy chart/report pages inside the new shell */
.portal-content .container,
.portal-content .container-fluid { max-width: none; padding: 0; }
.portal-content .card,
.portal-content .box {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  box-shadow: none;
}
.portal-content h1, .portal-content h2, .portal-content h3 {
  font-family: var(--smms-display);
  color: var(--smms-ink);
}
.portal-content .btn-primary {
  background: var(--smms-red);
  border-color: var(--smms-red-deep);
}

/* —— Dashboard enhancements —— */
.insight-hero__grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 20px;
  align-items: center;
}
.insight-hero__pulse {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232,213,163,0.35);
  animation: pulse-spin 8s linear infinite;
}
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.25);
}
@keyframes pulse-spin { to { transform: rotate(360deg); } }
.pulse-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.pulse-core span {
  font-family: var(--smms-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.pulse-core small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smms-sand);
}

.dash-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.chart-wrap { position: relative; min-height: 160px; }
.chart-panel { min-height: 260px; }

.trend-narrative {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--smms-sand-soft);
  border-left: 3px solid var(--smms-red);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--smms-ink-soft);
}
.trend-list { display: flex; flex-direction: column; gap: 12px; }
.trend-item p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--smms-muted);
  line-height: 1.4;
}
.trend-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.trend-item__top strong { font-size: 14px; }
.heat {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--smms-sand-soft);
  color: var(--smms-muted);
}
.heat--rising { background: #fde8eb; color: var(--smms-red-deep); }
.heat--cooling { background: #eef2f0; color: #3d5c4a; }
.momentum {
  height: 5px;
  background: rgba(20,14,12,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.momentum span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--smms-red), var(--smms-sand));
  border-radius: 999px;
}

.story-row__badge {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  background: var(--smms-ink);
  color: var(--smms-sand);
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  padding: 4px;
}

/* —— Articles library —— */
.lib-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lib-hero__title {
  font-family: var(--smms-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0 0 8px;
  max-width: 36rem;
}
.lib-hero__lede {
  margin: 0;
  color: var(--smms-muted);
  max-width: 38rem;
  line-height: 1.45;
}
.lib-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, minmax(110px, 1fr)) auto;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  margin-bottom: 16px;
  align-items: end;
}
.filter-bar__field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  margin-bottom: 5px;
  font-weight: 600;
}
.filter-bar__field input,
.filter-bar__field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--smms-line);
  border-radius: 6px;
  font: inherit;
  background: var(--smms-paper);
  color: var(--smms-ink);
}
.filter-bar__field input:focus,
.filter-bar__field select:focus {
  outline: 2px solid rgba(196,30,58,0.2);
  border-color: var(--smms-red);
}
.filter-bar__grow { grid-column: span 1; }

.article-table-wrap { overflow-x: auto; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.article-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  padding: 10px 8px;
  border-bottom: 1px solid var(--smms-line);
  white-space: nowrap;
}
.article-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--smms-line);
  vertical-align: top;
}
.article-table tr:hover td { background: rgba(247, 240, 226, 0.45); }
.article-table__title { font-weight: 600; line-height: 1.35; color: var(--smms-ink); }
.article-table__sum { margin-top: 4px; font-size: 12px; color: var(--smms-muted); line-height: 1.35; }
.nowrap { white-space: nowrap; }
.muted { color: var(--smms-muted); font-size: 12px; }
.table-link {
  font-weight: 600;
  font-size: 12px;
  color: var(--smms-red-deep);
}
.type-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--smms-sand-soft);
  color: var(--smms-ink);
}
.type-pill--tv { background: #140e0c; color: var(--smms-sand); }
.type-pill--radio { background: #2a1f1b; color: #fff; }
.type-pill--social { background: #fde8eb; color: var(--smms-red-deep); }
.type-pill--online { background: #eef2f0; color: #2f5c45; }
.tonality {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--smms-sand-soft);
}
.tonality--positive { background: #e8f5ee; color: #1f5c38; }
.tonality--negative { background: #fde8eb; color: var(--smms-red-deep); }
.tonality--neutral { background: #f0ebe3; color: var(--smms-muted); }

@media (max-width: 1100px) {
  .dash-grid--3 { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .insight-hero__grid { grid-template-columns: 1fr; }
  .insight-hero__pulse { display: none; }
}
@media (max-width: 700px) {
  .filter-bar { grid-template-columns: 1fr; }
}

/* —— Thematic framework —— */
.theme-frame {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 10px;
  background:
    radial-gradient(700px 240px at 100% 0%, rgba(232,213,163,0.28), transparent 55%),
    #fff;
  border: 1px solid var(--smms-line);
}
.theme-frame__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.theme-frame__title {
  font-family: var(--smms-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 0 0 8px;
  max-width: 34rem;
}
.theme-frame__lede {
  margin: 0;
  color: var(--smms-muted);
  max-width: 40rem;
  line-height: 1.5;
  font-size: 14px;
}
.mix-meters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mix-meter {
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--smms-ink);
  color: #fff;
  text-align: center;
}
.mix-meter--online { background: var(--smms-red-deep); }
.mix-meter span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-sand);
}
.mix-meter strong {
  display: block;
  font-family: var(--smms-display);
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 4px 0 2px;
}
.mix-meter small { font-size: 10px; opacity: 0.75; }

.theme-radar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.theme-tile {
  display: block;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: var(--smms-paper);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  min-height: 180px;
}
.theme-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(196,30,58,0.35);
  box-shadow: 0 10px 24px rgba(20,14,12,0.06);
  color: inherit;
}
.theme-tile__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.theme-tile__top i {
  font-size: 1.2rem;
  color: var(--smms-red);
}
.theme-tile h3 {
  font-family: var(--smms-display);
  font-size: 0.98rem;
  margin: 0 0 8px;
  line-height: 1.25;
}
.theme-tile > p {
  margin: 0;
  font-size: 12px;
  color: var(--smms-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.theme-tile__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 11px;
  color: var(--smms-muted);
}
.theme-tile__stats strong { color: var(--smms-ink); font-size: 13px; }
.intensity {
  height: 4px;
  background: rgba(20,14,12,0.08);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}
.intensity span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--smms-red), var(--smms-sand));
}
.theme-tile__risk {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--smms-muted);
}
.risk--elevated { color: var(--smms-red-deep); }
.risk--watch { color: #9a5b1a; }
.risk--active { color: #2f5c45; }
.risk--calm, .risk--quiet { color: var(--smms-muted); }

.temp {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--smms-sand-soft);
  color: var(--smms-muted);
  font-weight: 700;
}
.temp--high { background: #fde8eb; color: var(--smms-red-deep); }
.temp--moderate { background: #fff1dd; color: #9a5b1a; }
.temp--low { background: #eef2f0; color: #3d5c4a; }

.risk-board--emerging {
  background:
    linear-gradient(180deg, rgba(196,30,58,0.04), transparent 40%),
    #fff;
}
.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.signal-strip div {
  padding: 10px;
  border-radius: 6px;
  background: var(--smms-sand-soft);
  text-align: center;
}
.signal-strip span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smms-muted);
}
.signal-strip strong {
  font-family: var(--smms-display);
  font-size: 1.25rem;
}
.mini-stories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-stories a {
  font-size: 13px;
  line-height: 1.35;
  color: var(--smms-ink);
  border-bottom: 1px solid var(--smms-line);
  padding-bottom: 8px;
}
.mini-stories a:hover { color: var(--smms-red); }

.theme-deep {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.theme-deep__card {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  padding: 16px 18px;
}
.theme-deep__card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.theme-deep__card header i {
  font-size: 1.3rem;
  color: var(--smms-red);
  margin-top: 2px;
}
.theme-deep__card header h3 {
  font-family: var(--smms-display);
  font-size: 1.02rem;
  margin: 0 0 4px;
}
.theme-deep__card header p {
  margin: 0;
  font-size: 12px;
  color: var(--smms-muted);
}
.theme-deep__signal {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}
.theme-deep__impl {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--smms-ink-soft);
  line-height: 1.45;
}
.theme-deep__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.theme-deep__split label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  margin-bottom: 4px;
}
.theme-deep__split .bar {
  height: 6px;
  background: rgba(20,14,12,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.theme-deep__split .bar span {
  display: block;
  height: 100%;
  background: var(--smms-ink);
}
.theme-deep__split .bar--online span { background: var(--smms-red); }
.theme-deep__samples {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.theme-deep__samples li {
  padding: 6px 0;
  border-top: 1px solid var(--smms-line);
  font-size: 13px;
}
.theme-deep__samples a { color: var(--smms-ink); }
.theme-deep__samples a:hover { color: var(--smms-red); }
.theme-deep__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--smms-red-deep);
}

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.theme-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--smms-line);
  background: #fff;
  color: var(--smms-ink);
  font-size: 12px;
  font-weight: 600;
}
.theme-tab em {
  font-style: normal;
  background: var(--smms-sand-soft);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--smms-muted);
}
.theme-tab.is-active,
.theme-tab:hover {
  background: var(--smms-ink);
  border-color: var(--smms-ink);
  color: #fff;
}
.theme-tab.is-active em,
.theme-tab:hover em {
  background: rgba(232,213,163,0.2);
  color: var(--smms-sand);
}

@media (max-width: 1100px) {
  .theme-radar { grid-template-columns: repeat(2, 1fr); }
  .theme-deep { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .theme-radar { grid-template-columns: 1fr; }
  .signal-strip { grid-template-columns: 1fr; }
}

/* Login extras */
.login-pw {
  position: relative;
}
.login-pw input {
  width: 100%;
  padding: 11px 64px 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--smms-line);
  background: #fff;
  font: inherit;
  color: var(--smms-ink);
}
.login-pw input:focus {
  outline: 2px solid rgba(196, 30, 58, 0.25);
  border-color: var(--smms-red);
}
.login-pw__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--smms-red);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
}
.login-footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
}
.login-footer a {
  color: var(--smms-red-deep);
  font-weight: 600;
}
.login-lede {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--smms-muted);
  line-height: 1.45;
  text-align: center;
}

/* —— Consulsat-SD brand blend (logo purple + existing ink/sand/red) —— */
:root {
  --cs-purple: #6b2d8b;
  --cs-purple-deep: #4a1f66;
  --cs-navy: #1e3a5f;
  --cs-gold: #e8c547;
}

.portal-nav__brand {
  gap: 10px;
  padding: 14px 14px 14px;
  background:
    linear-gradient(135deg, rgba(107, 45, 139, 0.22), transparent 55%),
    transparent;
}
.portal-nav__logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(232, 213, 163, 0.35);
  flex-shrink: 0;
}
.portal-nav__logo--client {
  width: auto;
  max-width: 168px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  padding: 3px 6px;
}
.portal-nav__name {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.portal-nav__sub {
  color: var(--smms-sand);
}

.login-stage--blend {
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(107, 45, 139, 0.28), transparent 55%),
    radial-gradient(700px 380px at 92% 12%, rgba(232, 197, 71, 0.12), transparent 50%),
    linear-gradient(160deg, var(--smms-ink) 0%, #1c1411 42%, var(--smms-red-deep) 130%);
}
.login-card--branded {
  width: min(460px, 100%);
}
.login-card__brand--wide .login-card__logo {
  width: min(100%, 320px);
  height: auto;
  border-radius: 10px;
  margin: 0 auto 14px;
  display: block;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 14, 12, 0.12);
}
.login-card__brand--wide h1 {
  font-size: 1.2rem;
  margin-top: 4px;
}
.login-card__brand--wide p {
  letter-spacing: 0.14em;
}

.login-card__brand img:not(.login-card__logo) {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

/* —— Editorial charts (Media analysis) —— */
.analysis-clips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.analysis-clip {
  border: 1px solid var(--smms-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.analysis-clip__player {
  aspect-ratio: 16 / 9;
  background: #1a1210;
}
.analysis-clip__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.analysis-clip__body {
  padding: 12px 14px 14px;
}
.analysis-clip__body h4 {
  font-family: var(--smms-display);
  font-size: 0.95rem;
  margin: 4px 0 6px;
  line-height: 1.3;
}
.analysis-clip__body h4 a {
  color: var(--smms-ink);
  text-decoration: none;
}
.analysis-clip__body h4 a:hover { color: var(--smms-red); }
.analysis-clip__body p {
  margin: 0;
  font-size: 12px;
  color: var(--smms-muted);
}
.analysis-wordcloud {
  min-height: 280px;
  height: 320px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(232,213,163,0.25), rgba(20,14,12,0.03));
}
@media (max-width: 980px) {
  .analysis-clips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .analysis-clips { grid-template-columns: 1fr; }
}

/* —— Advertising analysis —— */
.ad-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 28px 28px 26px;
  margin-bottom: 18px;
  color: #f7f0e8;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(196,30,58,0.45), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(232,213,163,0.18), transparent 50%),
    linear-gradient(145deg, #1a1210 0%, #2a1a18 48%, #140e0c 100%);
  border: 1px solid rgba(232,213,163,0.12);
}
.ad-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ad-hero__title {
  font-family: var(--smms-display);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  margin: 0 0 10px;
  line-height: 1.15;
  color: #fff;
}
.ad-hero__lede {
  margin: 0;
  max-width: 54ch;
  color: rgba(247,240,232,0.78);
  line-height: 1.55;
}
.ad-preview-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(232,213,163,0.12);
  border: 1px solid rgba(232,213,163,0.22);
  color: var(--smms-sand);
  font-size: 0.88rem;
  line-height: 1.45;
}
.ad-preview-banner i { margin-top: 2px; }
.ad-hero .insight-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,213,163,0.25);
  color: rgba(247,240,232,0.9);
}
.ad-hero .btn-smms {
  border-color: rgba(232,213,163,0.35);
  color: #fff;
}
.ad-hero .btn-smms:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.ad-hero__orbit {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
}
.ad-orbit__ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px dashed rgba(232,213,163,0.35);
  animation: ad-spin 18s linear infinite;
}
.ad-orbit__core {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c41e3a, #5c0f1c 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(196,30,58,0.35);
}
.ad-orbit__core strong {
  font-family: var(--smms-display);
  font-size: 1.6rem;
  line-height: 1;
}
.ad-orbit__core span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ad-orbit__chip {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,213,163,0.25);
  color: var(--smms-sand);
  backdrop-filter: blur(4px);
}
.ad-orbit__chip--1 { top: 18px; right: 8px; animation: ad-float 4s ease-in-out infinite; }
.ad-orbit__chip--2 { bottom: 22px; left: 4px; animation: ad-float 4.8s ease-in-out infinite reverse; }
@keyframes ad-spin { to { transform: rotate(360deg); } }
@keyframes ad-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.ad-sov-list { display: flex; flex-direction: column; gap: 10px; }
.ad-sov-row.is-focus .ad-sov-bar span { background: var(--smms-red); }
.ad-sov-row__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.ad-sov-rank {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(20,14,12,0.06);
  font-size: 11px; font-weight: 700; color: var(--smms-muted);
}
.ad-sov-row__top strong { flex: 1; color: var(--smms-ink); }
.ad-sov-row__top em { font-style: normal; font-weight: 700; color: var(--smms-red); }
.ad-sov-bar {
  height: 7px; border-radius: 99px; background: rgba(20,14,12,0.06); overflow: hidden;
}
.ad-sov-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2a1f1b, #c41e3a);
}

.ad-heatstrip {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
  align-items: end;
  min-height: 110px;
  padding-top: 8px;
}
.ad-heatstrip__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100px;
  justify-content: flex-end;
}
.ad-heatstrip__fill {
  width: 100%;
  max-width: 18px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #e8d5a3, #c41e3a);
}
.ad-heatstrip__cell small {
  font-size: 9px;
  color: var(--smms-muted);
}

.ad-gap-list { display: flex; flex-direction: column; gap: 8px; }
.ad-gap-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: rgba(20,14,12,0.02);
}
.ad-gap-item strong { font-family: var(--smms-display); }
.ad-gap-item__meta {
  display: flex; gap: 10px; font-size: 12px; color: var(--smms-muted);
}
.ad-gap-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--smms-red);
}

.ad-activity { display: flex; flex-direction: column; gap: 8px; }
.ad-activity__row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}
.ad-activity__row:hover {
  border-color: rgba(196,30,58,0.3);
  transform: translateY(-1px);
}
.ad-activity__time strong { display: block; font-size: 0.88rem; }
.ad-activity__time span { font-size: 12px; color: var(--smms-muted); }
.ad-activity__main h4 {
  margin: 2px 0 4px;
  font-family: var(--smms-display);
  font-size: 0.98rem;
  color: var(--smms-ink);
}
.ad-activity__main p { margin: 0; font-size: 12px; color: var(--smms-muted); }
.ad-activity__cost {
  font-weight: 700;
  color: var(--smms-ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .ad-hero__grid { grid-template-columns: 1fr; }
  .ad-hero__orbit { display: none; }
  .ad-heatstrip { overflow-x: auto; }
  .ad-activity__row { grid-template-columns: 1fr; }
}

/* —— Channel hubs —— */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 24px;
}
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--smms-line);
  color: inherit;
  min-height: 160px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.channel-card:hover {
  border-color: var(--smms-red);
  transform: translateY(-2px);
  color: inherit;
}
.channel-card__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--smms-sand-soft);
  color: var(--smms-red-deep);
  font-size: 1.1rem;
}
.channel-card__title {
  margin: 0;
  font-family: var(--smms-display);
  font-size: 1.2rem;
}
.channel-card__lede {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  color: var(--smms-muted);
  line-height: 1.45;
}
.channel-card__stat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--smms-ink);
  letter-spacing: 0.02em;
}
.channel-card--tv .channel-card__icon { background: rgba(47,107,79,0.12); color: #2f6b4f; }
.channel-card--radio .channel-card__icon { background: rgba(154,107,22,0.12); color: #9a6b16; }
.channel-card--online .channel-card__icon { background: rgba(30,90,150,0.1); color: #1e5a96; }
.channel-card--editorial .channel-card__icon { background: rgba(196,30,58,0.1); color: var(--smms-red-deep); }
.channel-card--advertising .channel-card__icon { background: rgba(20,14,12,0.08); color: var(--smms-ink); }
.channel-card--customer .channel-card__icon { background: rgba(196,30,58,0.12); color: var(--smms-red-deep); }
.channel-card--reports .channel-card__icon { background: rgba(47,107,79,0.12); color: #2f6b4f; }

/* —— Customer area —— */
.ca-hero { margin-bottom: 8px; }
.ca-brand-table { display: flex; flex-direction: column; gap: 0; }
.ca-brand-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--smms-line);
  font-size: 0.92rem;
}
.ca-brand-row:last-child { border-bottom: 0; }
.ca-brand-row span { color: var(--smms-muted); }
.ca-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}
.ca-report-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--smms-line);
  border-top: 3px solid var(--smms-red);
}
.ca-report-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.ca-report-card__head h3 {
  margin: 0;
  font-family: var(--smms-display);
  font-size: 1.15rem;
  line-height: 1.25;
}
.ca-report-card__sov {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--smms-red-deep);
  letter-spacing: 0.02em;
}
.ca-report-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--smms-muted);
}
.ca-report-card__meta strong { color: var(--smms-ink); }
.ca-report-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
@media (max-width: 720px) {
  .ca-brand-row {
    grid-template-columns: 1fr 1fr;
  }
  .ca-brand-row .btn-smms { grid-column: 1 / -1; }
}

/* —— Competitive landing (mention overview) —— */
.ci-landing { padding: 0 4px 32px; max-width: 1400px; }
.ci-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.ci-toolbar__title h1 {
  margin: 0;
  font-family: var(--smms-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
}
.ci-toolbar__sub { margin: 4px 0 0; font-size: 0.88rem; color: var(--smms-muted); }
.ci-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ci-toolbar__actions input[type="date"] {
  border: 1px solid var(--smms-line);
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.ci-toolbar__dash { color: var(--smms-muted); }
.ci-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--smms-line);
  background: #fff;
  padding: 0 12px;
  min-width: 200px;
}
.ci-search input {
  border: 0;
  padding: 8px 0;
  font: inherit;
  width: 160px;
  outline: none;
}
.ci-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ci-filters__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--smms-muted); margin-right: 4px; }
.ci-filters__meta { margin-left: auto; font-size: 0.82rem; color: var(--smms-muted); }
.ci-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--smms-line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--smms-ink-soft);
  border-radius: 999px;
}
.ci-chip.is-active { border-color: var(--smms-red); background: rgba(196, 30, 58, 0.06); color: var(--smms-red-deep); }
.ci-chip--trackers { background: var(--smms-ink); color: #fff; border-color: var(--smms-ink); }
.ci-top-grid {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 960px) { .ci-top-grid { grid-template-columns: 1fr; } }
.ci-panel {
  background: #fff;
  border: 1px solid var(--smms-line);
  padding: 14px 16px;
}
.ci-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.ci-panel__head h2 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.ci-panel__head span { font-size: 0.75rem; color: var(--smms-muted); }
.ci-bubbles {
  position: relative;
  min-height: 280px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-radius: 8px;
}
.ci-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(20, 14, 12, 0.12);
  padding: 4px;
  cursor: default;
  transition: transform 0.15s ease;
}
.ci-bubble:hover { transform: translate(-50%, -50%) scale(1.05); z-index: 2; }
.ci-bubble__label { font-size: 0.62rem; line-height: 1.1; opacity: 0.95; max-width: 90%; }
.ci-bubble strong { font-size: 0.85rem; margin-top: 2px; }
.ci-chart-wrap { height: 220px; position: relative; }
.ci-sent-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--smms-line);
}
.ci-sent-mini h3 { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; color: var(--smms-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ci-sent-mini canvas { max-height: 72px; }
.ci-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ci-columns--1 { grid-template-columns: minmax(0, 720px); }
.ci-columns--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .ci-columns, .ci-columns--1, .ci-columns--2 { grid-template-columns: 1fr; } }
.ci-entity {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-top: 4px solid var(--ci-accent, var(--smms-red));
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.ci-entity--placeholder { opacity: 0.85; }
.ci-entity__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--ci-accent, #b8860b) 12%, #fff);
  border-bottom: 1px solid var(--smms-line);
}
.ci-entity__head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.ci-entity__head span { font-size: 0.78rem; font-weight: 600; color: var(--smms-muted); }
.ci-entity__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}
.ci-entity > .ci-widget {
  margin: 10px 10px 0;
  border: 1px solid var(--smms-line);
  padding: 10px;
  background: #fafafa;
}
.ci-donut-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr);
  gap: 8px;
  align-items: center;
}
.ci-donut-wrap--wide { height: 150px; }
.ci-env {
  background: #fff;
  border: 1px solid var(--smms-line);
  margin-bottom: 14px;
  padding: 14px 16px;
}
.ci-env__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ci-env__head h2 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.ci-env__head p { margin: 0; font-size: 0.82rem; color: var(--smms-muted); max-width: 52rem; line-height: 1.45; }
.ci-env__head strong { font-size: 0.85rem; white-space: nowrap; color: var(--smms-ink-soft); }
.ci-env__themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 800px) { .ci-env__themes { grid-template-columns: 1fr; } }
.ci-env__theme {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--smms-line);
  border-left: 3px solid #475569;
}
.ci-env__theme span { font-size: 0.8rem; font-weight: 600; }
.ci-env__theme strong { font-size: 1.05rem; }
.ci-env__feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid var(--smms-line);
  padding-top: 4px;
}
@media (max-width: 900px) { .ci-env__feed { grid-template-columns: 1fr; } }
.ci-env__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  background: #e2e8f0;
  color: #334155;
}
.ci-widget {
  border: 1px solid var(--smms-line);
  padding: 10px;
  background: #fafafa;
}
.ci-widget h3 { margin: 0; font-size: 0.82rem; font-weight: 700; }
.ci-widget__hint { margin: 2px 0 8px; font-size: 0.68rem; color: var(--smms-muted); }
.ci-donut-wrap { height: 130px; position: relative; }
.ci-eng-stats {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.72rem;
}
.ci-eng-stats li { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dashed var(--smms-line); }
.ci-widget--feed { flex: 1; margin: 0 10px 10px; padding: 10px; border: 1px solid var(--smms-line); background: #fff; }
.ci-feed { max-height: 320px; overflow-y: auto; }
.ci-feed__item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--smms-line);
}
.ci-feed__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--smms-sand-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--smms-muted);
}
.ci-feed__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.72rem; }
.ci-feed__meta strong { font-size: 0.78rem; }
.ci-feed__text { margin: 6px 0; font-size: 0.8rem; line-height: 1.45; color: var(--smms-ink-soft); }
.ci-feed__foot { display: flex; gap: 12px; font-size: 0.72rem; color: var(--smms-muted); }
.ci-sent { padding: 1px 6px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.ci-sent--positive { background: #dcfce7; color: #166534; }
.ci-sent--negative { background: #fee2e2; color: #991b1b; }
.ci-sent--neutral { background: #f1f5f9; color: #475569; }
.ci-empty { padding: 24px; text-align: center; color: var(--smms-muted); font-size: 0.88rem; }

.ci-priority-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ci-priority-list li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--smms-sand-soft);
  border: 1px solid var(--smms-line);
}
.insight-list {
  margin: 0;
  padding: 0 0 0 18px;
  line-height: 1.55;
  font-size: 0.92rem;
}
.insight-list li { margin-bottom: 8px; }
.insight-list--risk li::marker { color: var(--smms-red); }

/* —— Simple client nav (no duplicates) —— */
.portal-nav--simple .portal-nav__guide {
  margin: 0 16px 10px;
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--smms-sand);
  background: rgba(232, 213, 163, 0.08);
  border-left: 3px solid var(--smms-red);
}
.portal-nav__menu--primary {
  padding: 4px 10px 12px;
  gap: 4px;
  display: flex;
  flex-direction: column;
}
.portal-nav__menu--primary > li { list-style: none; }
.portal-nav__link--rich {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px !important;
  border-radius: 10px;
  border: 1px solid transparent;
}
.portal-nav__link--rich.is-active {
  background: rgba(196, 30, 58, 0.35) !important;
  border-color: rgba(232, 213, 163, 0.25);
}
.portal-nav__ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  color: var(--smms-sand);
  flex-shrink: 0;
  font-size: 1.05rem;
}
.portal-nav__link--rich.is-active .portal-nav__ico {
  background: var(--smms-red);
  color: #fff;
}
.portal-nav__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.portal-nav__txt strong {
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.2;
}
.portal-nav__txt small {
  font-size: 0.7rem;
  color: rgba(232, 213, 163, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-nav__shortcuts {
  margin: auto 12px 10px;
  padding: 10px 8px 4px;
  border-top: 1px solid rgba(232, 213, 163, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portal-nav__shortcuts a {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-nav__shortcuts a:hover,
.portal-nav__shortcuts a.is-active {
  color: var(--smms-sand);
  background: rgba(255,255,255,0.05);
}
.alert-board .board-tabs { grid-template-columns: repeat(3, 1fr); }
.alert-board h1 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 32px; line-height: 1.1; }
.alert-board__lede { margin: 0 0 14px; color: var(--smms-muted); max-width: 62ch; }
.alert-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
  color: var(--smms-ink);
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 14px;
}
.alert-tab i { font-size: 16px; color: var(--smms-red); margin-bottom: 6px; }
.alert-tab span { font-size: 14px; font-weight: 700; line-height: 1.2; }
.alert-tab small { font-size: 11px; font-weight: 500; color: var(--smms-muted); }
.alert-tab.is-on { background: var(--smms-ink); border-color: var(--smms-ink); color: #fff; }
.alert-tab.is-on i { color: var(--smms-sand); }
.alert-tab.is-on small { color: rgba(255,255,255,0.72); }
.alert-layout { display: grid; grid-template-columns: 280px 1fr; gap: 12px; align-items: start; }
.alert-list { display: flex; flex-direction: column; gap: 8px; max-height: 78vh; overflow: auto; }
.alert-list__item { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--smms-line); border-radius: 12px; padding: 10px 12px; color: var(--smms-ink); }
.alert-list__item time, .alert-list__item small { font-size: 11px; color: var(--smms-muted); }
.alert-list__item strong { font-size: 13px; line-height: 1.35; }
.alert-list__item.is-on { border-color: var(--smms-ink); box-shadow: inset 3px 0 0 var(--smms-red); }
.alert-preview { background: #fff; border: 1px solid var(--smms-line); border-radius: 16px; overflow: hidden; min-width: 0; }
.alert-preview__bar { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--smms-line); }
.alert-preview__bar strong { display: block; font-size: 14px; line-height: 1.35; }
.alert-preview__bar span { color: var(--smms-muted); font-size: 12px; }
.alert-preview iframe { display: block; width: 100%; height: 78vh; border: 0; background: #f3efe7; }
.alert-board--icrc .alert-preview iframe { background: #F4F5F7; }
.alert-board--icrc .alert-tab.is-on { background: #121316; border-color: #121316; }
.alert-board--icrc .alert-tab.is-on i { color: #ED1C24; }
.alert-board--icrc .alert-list__item.is-on { border-color: #E3E6EB; box-shadow: inset 3px 0 0 #ED1C24; }
.alert-board--icrc .alert-preview { border-color: #E3E6EB; }
.alert-board--icrc .alert-preview__bar { background: #121316; color: #fff; border-bottom: 3px solid #ED1C24; }
.alert-board--icrc .alert-preview__bar span { color: #ffd9da; }
@media (max-width: 900px) {
  .alert-layout { grid-template-columns: 1fr; }
  .alert-list { max-height: none; }
}

.portal-nav__org-switch {
  margin: 0 12px 12px;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232, 213, 163, 0.15);
  border-radius: 8px;
}
.portal-nav__org-switch label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smms-sand);
  margin-bottom: 6px;
}
.portal-nav__org-switch select {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: var(--smms-ink);
}

.mention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--smms-line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--smms-ink-soft);
  border-radius: 999px;
}
.mention-chip.is-active {
  border-color: var(--smms-red);
  background: rgba(196, 30, 58, 0.08);
  color: var(--smms-red-deep);
}
.mention-chip--soft {
  background: transparent;
  border-style: dashed;
  color: var(--smms-muted);
  font-weight: 500;
}

.emerging-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(100deg, rgba(196, 30, 58, 0.08), #fff 55%);
  border: 1px solid var(--smms-line);
  border-left: 4px solid var(--smms-red);
  color: inherit;
}
.emerging-banner:hover { border-color: var(--smms-red); color: inherit; }
.emerging-banner__ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--smms-ink);
  color: var(--smms-sand);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.emerging-banner strong { display: block; font-size: 0.95rem; }
.emerging-banner small { display: block; margin-top: 2px; color: var(--smms-muted); font-size: 0.8rem; }
.emerging-banner__go { margin-left: auto; font-weight: 700; color: var(--smms-red-deep); white-space: nowrap; }

.portal-manual-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--smms-red);
  color: #fff;
  font-family: var(--smms-font);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(20, 14, 12, 0.28);
  cursor: pointer;
}
.portal-manual-fab:hover,
.portal-manual-fab:focus {
  background: var(--smms-red-deep);
  color: #fff;
}
.portal-manual {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.portal-manual.is-open { display: flex; }
.portal-manual__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 12, 0.55);
}
.portal-manual__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--smms-paper);
  color: var(--smms-ink);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 14, 12, 0.35);
}
.portal-manual__head,
.portal-manual__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}
.portal-manual__head { border-bottom: 1px solid var(--smms-line); }
.portal-manual__foot { border-top: 1px solid var(--smms-line); justify-content: flex-end; }
.portal-manual__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--smms-muted);
}
.portal-manual__head h2 {
  margin: 0;
  font-family: var(--smms-display);
  font-size: 1.55rem;
}
.portal-manual__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--smms-ink);
  cursor: pointer;
}
.portal-manual__body {
  overflow: auto;
  padding: 8px 22px 18px;
  line-height: 1.55;
}
.portal-manual__body h3 {
  margin: 18px 0 6px;
  font-family: var(--smms-display);
  font-size: 1.15rem;
}
.portal-manual__body p { margin: 0 0 8px; }
.portal-manual__link {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--smms-ink);
  color: var(--smms-sand-soft) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.portal-manual__link:hover,
.portal-manual__link:focus {
  background: var(--smms-red);
  color: #fff !important;
}
.spike-board {
  background: #fff;
  border: 1px solid var(--smms-line);
  margin: 0 0 14px;
  padding: 14px 16px 8px;
}
.spike-board__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.spike-board__eyebrow {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smms-red);
}
.spike-board__head h2 { margin: 0 0 4px; font-family: Fraunces, Georgia, serif; font-size: 1.25rem; }
.spike-board__head p { margin: 0; max-width: 46rem; font-size: 0.82rem; line-height: 1.45; color: var(--smms-muted); }
.spike-board__badge {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spike-board__badge.is-spike { background: #c41e3a; color: #fff; }
.spike-board__badge.is-calm { background: #e8d5a3; color: #140e0c; }
.spike-board__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.spike-board__stats div {
  padding: 10px 12px;
  background: #faf7f2;
  border: 1px solid var(--smms-line);
}
.spike-board__stats span { display: block; font-size: 0.72rem; color: var(--smms-muted); }
.spike-board__stats strong { display: block; font-size: 1.35rem; line-height: 1.2; }
.spike-board__stats small { color: var(--smms-muted); font-size: 0.72rem; }
.spike-board__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 110px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--smms-line);
}
.spike-board__bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.spike-board__bar span { display: block; width: 100%; max-width: 36px; background: #d9c7a2; border-radius: 3px 3px 0 0; }
.spike-board__bar.is-today span { background: #c41e3a; }
.spike-board__bar small, .spike-board__bar em { font-style: normal; font-size: 0.68rem; color: var(--smms-muted); }
.spike-board__bar.is-today small, .spike-board__bar.is-today em { color: #c41e3a; font-weight: 700; }
.spike-board__list { border-top: 1px solid var(--smms-line); }
.spike-board__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--smms-line);
}
.spike-board__item:last-child { border-bottom: 0; }
.spike-board__kind {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smms-red);
  padding-top: 3px;
}
.spike-board__item a, .spike-board__item strong { color: var(--smms-ink); font-size: 0.92rem; }
.spike-board__item p { margin: 2px 0; font-size: 0.8rem; color: var(--smms-ink-soft); }
.spike-board__item small { color: var(--smms-muted); font-size: 0.72rem; }
.media-board { margin: 0 0 22px; }
.media-board__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.media-board__eyebrow { margin: 0 0 4px; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--smms-red); }
.media-board h1 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 32px; line-height: 1.1; }
.media-board__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--smms-muted); font-size: 13px; }
.media-board__brief { background: #fff; border: 1px solid var(--smms-line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.media-board__brief h2 { margin: 0 0 6px; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; line-height: 1.25; }
.media-board__brief p { margin: 0; color: var(--smms-muted); max-width: 78ch; line-height: 1.5; }
.media-board__kpis { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.media-kpi { border-radius: 14px; padding: 12px 12px 6px; color: #fff; min-height: 138px; display: flex; flex-direction: column; }
.media-kpi span { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.media-kpi strong { font-size: 30px; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.media-kpi small { display: block; margin-top: 2px; font-size: 11px; opacity: 0.82; }
.media-kpi canvas { width: 100% !important; height: 46px !important; margin-top: auto; }
.media-kpi--total { background: #140e0c; }
.media-kpi--tv { background: #1e3a5f; }
.media-kpi--radio { background: #0f6e56; }
.media-kpi--online { background: #9a3412; }
.media-kpi--social { background: #5b3a8c; }
.media-board__grid { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 12px; }
.mention-dash { display: grid; grid-template-columns: 1.35fr 1fr 0.85fr; gap: 12px; margin-bottom: 12px; }
.mention-dash--charts { grid-template-columns: 1.05fr 1.15fr 1fr; }
.dash-card { background: #fff; border: 1px solid var(--smms-line); border-radius: 16px; padding: 14px 16px 12px; min-width: 0; }
.dash-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dash-card__head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.dash-card__head span { color: var(--smms-muted); font-size: 12px; text-align: right; }
.dash-card__chart { min-height: 190px; }
.mention-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mention-tile { background: #f7f4ef; border-radius: 12px; padding: 10px 10px 4px; min-width: 0; }
.mention-tile i { font-size: 16px; }
.mention-tile strong { display: block; margin-top: 4px; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.mention-tile span { display: block; margin-top: 2px; font-size: 12px; color: var(--smms-muted); }
.mention-tile canvas { width: 100% !important; height: 36px !important; margin-top: 4px; }
.gauge { position: relative; height: 158px; margin: 0 8px 8px; }
.gauge canvas { width: 100% !important; height: 150px !important; }
.gauge__needle { position: absolute; left: 50%; top: 75px; width: 3px; height: 54px; background: #140e0c; border-radius: 3px 3px 0 0; transform-origin: center bottom; }
.gauge__hub { position: absolute; left: 50%; top: 75px; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #140e0c; border-radius: 50%; }
.gauge__word { position: absolute; left: 0; right: 0; top: 92px; margin: 0; text-align: center; font-size: 14px; font-weight: 700; }
.gauge-split { display: flex; justify-content: space-between; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--smms-muted); }
.gauge-split strong { color: var(--smms-ink); margin-right: 3px; }
.gauge-split i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 4px; }
.share-pair { display: grid; gap: 10px; }
.share-figure { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: #f7f4ef; border-radius: 12px; padding: 12px; }
.share-figure i { grid-row: 1 / span 2; font-size: 22px; }
.share-figure strong { font-size: 28px; line-height: 1; }
.share-figure span, .share-figure small { grid-column: 2; color: var(--smms-muted); font-size: 12px; }
.mix-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 8px; align-items: center; }
.mix-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mix-legend li { display: flex; align-items: center; gap: 6px; }
.mix-legend i { width: 8px; height: 8px; border-radius: 99px; flex: 0 0 auto; }
.mix-legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.donut-wrap { position: relative; min-height: 180px; }
.donut-wrap canvas { width: 100% !important; height: 180px !important; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center strong { font-size: 22px; line-height: 1; }
.donut-center span { font-size: 11px; color: var(--smms-muted); text-align: center; max-width: 8ch; }
.media-panel { background: #fff; border: 1px solid var(--smms-line); border-radius: 14px; padding: 14px 16px 10px; }
.media-panel header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.media-panel h3 { margin: 0; font-size: 15px; }
.media-panel header span { color: var(--smms-muted); font-size: 12px; }
.tone-meter { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #efe8e1; }
.tone-meter__pos { background: #0f6e56; }
.tone-meter__neu { background: #c4b49a; }
.tone-meter__neg { background: #c41e3a; }
.tone-meter__legend { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; padding: 8px 0 0; margin: 0; font-size: 12px; }
.tone-meter__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 4px; }
.tone-meter__legend .is-pos { background: #0f6e56; }
.tone-meter__legend .is-neu { background: #c4b49a; }
.tone-meter__legend .is-neg { background: #c41e3a; }
.sent-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.sent-counts div { background: #faf7f2; border-radius: 10px; padding: 8px 10px; }
.sent-counts strong { display: block; font-size: 22px; line-height: 1.1; }
.sent-counts span { font-size: 11px; color: var(--smms-muted); font-weight: 600; }
.sent-counts div:nth-child(1) strong { color: #0f6e56; }
.sent-counts div:nth-child(2) strong { color: #6b5c54; }
.sent-counts div:nth-child(3) strong { color: #c41e3a; }
.sent-reading { margin: 8px 0 4px; font-size: 13px; line-height: 1.45; color: var(--smms-ink-soft, #3d2c26); }
.sent-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sent-chip--positive { background: #e5f4ef; color: #0f6e56; }
.sent-chip--neutral { background: #f3eee6; color: #6b5c54; }
.sent-chip--negative { background: #fde8ec; color: #c41e3a; }
@media (max-width: 1100px) {
  .media-board__kpis { grid-template-columns: 1fr 1fr; }
  .media-kpi--total { grid-column: 1 / -1; }
  .media-board__grid, .mention-dash, .mention-dash--charts, .mix-layout { grid-template-columns: 1fr; }
}
.board-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 14px;
  border: 0;
}
.board-tabs button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  color: var(--smms-ink);
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 14px;
  cursor: pointer;
}
.board-tabs button i {
  font-size: 16px;
  color: var(--smms-red);
  margin-bottom: 6px;
}
.board-tabs button span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.board-tabs button small {
  font-size: 11px;
  font-weight: 500;
  color: var(--smms-muted);
}
.board-tabs button.is-on {
  background: var(--smms-ink);
  border-color: var(--smms-ink);
  color: #fff;
}
.board-tabs button.is-on i { color: var(--smms-sand); }
.board-tabs button.is-on small { color: rgba(255, 255, 255, 0.72); }
.board-tabs button:focus-visible {
  outline: 2px solid var(--smms-red);
  outline-offset: 2px;
}
.board-tab[hidden] { display: none !important; }
.board-tab > .panel,
.board-tab > .dash-grid,
.board-tab > .spike-board { margin-bottom: 12px; }
.board-tab > .impact-reel,
.board-tab > .theme-frame { margin-top: 0; }
@media (max-width: 800px) {
  .spike-board__stats { grid-template-columns: 1fr 1fr; }
  .spike-board__head { flex-direction: column; }
  .board-tabs { grid-template-columns: 1fr 1fr; }
}
