/* Social Pulse demo.
   The Samsung-colour dashboard look shared by the four Social Intelligence tools.
   Values are lifted from the mockups in reference/. Every class starts with pl-
   so nothing here can collide with another tool's styles. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --pl-blue: #1428A0;
  --pl-sea: #0077C7;
  --pl-sky: #01B3E3;
  --pl-teal: #01C4AF;
  --pl-saffron: #FEB447;
  --pl-coral: #FF4337;
  --pl-clover: #96D551;

  --pl-text: #000000;
  --pl-text-2: #5F6672;
  --pl-text-3: #7A808C;
  --pl-page: #F4F5F7;
  --pl-card: #FFFFFF;
  --pl-border: #E3E5EA;
  --pl-hairline: #EEEFF2;
  --pl-track: #E3E5EA;

  --pl-good-bg: #EAF7DC;    --pl-good: #3F6B12;
  --pl-neutral-bg: #EEEFF2; --pl-neutral: #4C525C;
  --pl-warn-bg: #FFF0D9;    --pl-warn: #8A5300;
  --pl-down-bg: #FFE9E7;    --pl-down: #C7261B;
  --pl-info-bg: #E8EBF8;    --pl-info: #1428A0;

  /* The two halves of a market score */
  --pl-adoption: #1428A0;
  --pl-health: #01C4AF;

  --pl-side-text: #DDE2F7;
  --pl-side-muted: #9AA6E0;

  --pl-radius: 14px;
  --pl-gap: 18px;
  --pl-side-width: 256px;
  --pl-top-height: 64px;
  --pl-ease: cubic-bezier(.22, .8, .3, 1);
  --pl-load: 600ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 1280px;
  background: var(--pl-page);
  color: var(--pl-text);
  font: 400 14px/1.45 "Inter Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 650; }
sup { font-size: .6em; line-height: 0; vertical-align: super; font-weight: 600; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--pl-sky); outline-offset: 2px; border-radius: 6px; }

.pl-defs { position: absolute; }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pl-icon { display: block; }

/* ------------------------------------------------------------ App shell */
.pl-app { display: grid; grid-template-columns: var(--pl-side-width) minmax(0, 1fr); min-height: 100vh; }

.pl-side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 20px 16px 22px;
  background: var(--pl-blue); color: var(--pl-side-text);
  z-index: 30;
}

/* Brand block: also the tool switcher */
.pl-switcher { position: relative; margin-bottom: 14px; }
.pl-brand {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px; border-radius: 12px; text-align: left; color: #fff;
  transition: background-color .15s;
}
.pl-brand:hover, .pl-brand[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.pl-brand img { width: 40px; height: 40px; flex: none; }
.pl-brand__text { flex: 1; min-width: 0; }
.pl-brand__text b { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 650; letter-spacing: -.2px; line-height: 1.25; }
.pl-brand__text small { display: block; font-size: 10.5px; letter-spacing: .7px; text-transform: uppercase; color: var(--pl-side-muted); white-space: nowrap; }
.pl-brand__chevron { color: var(--pl-side-muted); transition: transform .2s var(--pl-ease); }
.pl-brand[aria-expanded="true"] .pl-brand__chevron { transform: rotate(180deg); }

.pl-tools {
  position: absolute; left: 0; top: calc(100% + 8px); width: 372px;
  padding: 10px; border-radius: 16px;
  background: #fff; color: var(--pl-text);
  border: 1px solid var(--pl-border);
  box-shadow: 0 18px 44px rgba(10, 18, 70, .28), 0 2px 6px rgba(10, 18, 70, .12);
  transform-origin: 24px 0;
  animation: pl-pop .16s var(--pl-ease);
}
.pl-tools[hidden] { display: none; }
.pl-tools__title { padding: 8px 10px 10px; font-size: 12px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; color: var(--pl-text-2); }
.pl-tool { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; }
.pl-tool__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--pl-blue); }
.pl-tool__icon img { width: 26px; height: 26px; }
.pl-tool__text { flex: 1; min-width: 0; }
.pl-tool__text b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.1px; line-height: 1.3; }
.pl-tool__text small { display: block; font-size: 13.5px; color: var(--pl-text-2); }
.pl-tool--current { background: var(--pl-page); }
.pl-tool--link { transition: background-color .15s; }
.pl-tool--link:hover { background: var(--pl-info-bg); }
.pl-tool__open { color: var(--pl-blue); padding-right: 4px; }
.pl-tool--soon { cursor: default; }
.pl-tool--soon .pl-tool__icon { opacity: .38; }
.pl-tool--soon .pl-tool__text b { color: var(--pl-text-2); }

/* Sidebar navigation */
.pl-nav { display: flex; flex-direction: column; gap: 2px; }
.pl-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px;
  font-size: 14px; color: var(--pl-side-text);
  transition: background-color .15s, color .15s;
}
.pl-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.pl-nav a.is-on { background: rgba(255, 255, 255, .17); color: #fff; font-weight: 600; }
.pl-nav__badge { margin-left: auto; padding: 1px 7px; border-radius: 10px; background: var(--pl-sky); color: #fff; font-size: 11px; font-weight: 700; }
.pl-nav__group { padding: 18px 10px 8px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--pl-side-muted); }
.pl-dot { width: 10px; height: 10px; border-radius: 3px; margin: 0 4px; flex: none; }
.pl-dot--youtube { background: #FF0033; }
.pl-dot--instagram { background: linear-gradient(135deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%, #4F5BD5); }
.pl-dot--tiktok { background: #25F4EE; }
.pl-dot--facebook { background: #1877F2; }
.pl-dot--pinterest { background: #E60023; }

.pl-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.pl-me { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.pl-me__avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; font-weight: 700; }
.pl-me b { display: block; color: #fff; font-size: 13px; font-weight: 650; }
.pl-me small { display: block; font-size: 12px; color: var(--pl-side-muted); }

/* Top bar */
.pl-main { min-width: 0; display: flex; flex-direction: column; }
.pl-top {
  position: sticky; top: 0; z-index: 20;
  height: var(--pl-top-height); flex: none;
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: #fff; border-bottom: 1px solid var(--pl-border);
}
.pl-top__gap { flex: 1; }
.pl-ask {
  display: flex; align-items: center; gap: 10px;
  width: 460px; height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--pl-page); color: var(--pl-text-2); font-size: 14px; text-align: left;
  border: 1px solid transparent;
  transition: border-color .15s, background-color .15s, color .15s;
}
.pl-ask .pl-icon { color: var(--pl-blue); }
.pl-ask:hover { border-color: #C9CFEA; background: #fff; color: var(--pl-text); }

.pl-body { flex: 1; padding: 26px 28px 24px; display: flex; flex-direction: column; }
.pl-page { flex: 1; display: flex; flex-direction: column; gap: var(--pl-gap); min-height: 0; }

/* ------------------------------------------------------------ Shared parts */
.pl-title { display: flex; align-items: center; gap: 12px; min-height: 50px; }
.pl-pager { display: flex; gap: 8px; }
.pl-title h1 { font-size: 28px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; }
.pl-title__gap { flex: 1; }
.pl-sub { margin-top: 3px; font-size: 13px; color: var(--pl-text-2); }
.pl-note { font-size: 12.5px; color: var(--pl-text-2); }
.pl-foot-note { font-size: 12px; line-height: 1.4; color: var(--pl-text-3); }

.pl-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 17px;
  border: 1px solid var(--pl-border); background: #fff;
  font-size: 13px; color: #1D1F24; white-space: nowrap;
}
.pl-chip--link { transition: border-color .15s, background-color .15s, box-shadow .15s; }
.pl-chip--link:hover { border-color: #B9C0E4; background: #FAFBFF; box-shadow: 0 1px 4px rgba(20, 40, 160, .1); }
.pl-chip__ok { color: #0E8A4B; }
.pl-chip--warn { background: var(--pl-warn-bg); border-color: #F5D9A8; color: var(--pl-warn); font-weight: 600; }
.pl-chip--warn.pl-chip--link:hover { background: #FFE8C2; border-color: #EBC583; box-shadow: none; }

.pl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  background: var(--pl-blue); color: #fff; font-size: 14px; font-weight: 650; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.pl-btn:hover { background: #0F1F86; box-shadow: 0 4px 12px rgba(20, 40, 160, .28); }
.pl-btn:active { transform: translateY(1px); }
.pl-btn--quiet { background: #fff; color: var(--pl-blue); border: 1px solid #C9CFEA; }
.pl-btn--quiet:hover { background: var(--pl-info-bg); box-shadow: none; }
.pl-btn:disabled { background: #E3E5EA; color: #8A909C; border-color: transparent; box-shadow: none; cursor: default; transform: none; }
.pl-btn--quiet:disabled { background: #fff; color: #A3A9B5; border-color: var(--pl-border); }
.pl-iconbtn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--pl-text-2); transition: background-color .15s, color .15s; }
.pl-iconbtn:hover { background: var(--pl-page); color: var(--pl-text); }
.pl-title h1 .pl-tag { margin-left: 12px; vertical-align: middle; letter-spacing: 0; }
.pl-points--up { background: var(--pl-good-bg); color: var(--pl-good); }
.pl-points--down { background: var(--pl-down-bg); color: var(--pl-down); }
.pl-num { text-align: right; font-variant-numeric: tabular-nums; }

.pl-link { color: var(--pl-blue); font-size: 13px; font-weight: 600; border-radius: 4px; }
.pl-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.pl-card { background: var(--pl-card); border: 1px solid var(--pl-border); border-radius: var(--pl-radius); }
.pl-card h2 { font-size: 16px; font-weight: 650; letter-spacing: -.1px; }
.pl-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-panel { padding: 18px 22px; display: flex; flex-direction: column; min-height: 0; }

/* Status tags: always a word and an icon, never colour alone */
.pl-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 10px;
  font-size: 11.5px; font-weight: 650; line-height: 1.35; white-space: nowrap;
}
.pl-tag__detail { font-weight: 600; }
.pl-tag--good { background: var(--pl-good-bg); color: var(--pl-good); }
.pl-tag--neutral { background: var(--pl-neutral-bg); color: var(--pl-neutral); }
.pl-tag--warn { background: var(--pl-warn-bg); color: var(--pl-warn); }
.pl-tag--down { background: var(--pl-down-bg); color: var(--pl-down); }
.pl-tag--info { background: var(--pl-info-bg); color: var(--pl-info); }
.pl-tag--sm { padding: 2px 7px; font-size: 11px; gap: 4px; }
.pl-tag--lg { padding: 5px 12px; border-radius: 13px; font-size: 13px; gap: 6px; }

.pl-ai {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 11px;
  background: var(--pl-info-bg); color: var(--pl-info);
  font-size: 12px; font-weight: 650; white-space: nowrap;
}
.pl-points {
  flex: none; padding: 3px 9px; border-radius: 10px;
  background: var(--pl-info-bg); color: var(--pl-info);
  font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pl-new {
  padding: 1px 6px; border-radius: 8px;
  background: var(--pl-sky); color: #fff;
  font-size: 9.5px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase;
}
.pl-source {
  flex: none; padding: 2px 8px; border-radius: 9px;
  border: 1px solid var(--pl-border); background: #fff;
  font-size: 11px; font-weight: 600; color: var(--pl-text-2); white-space: nowrap;
}

/* Platform tiles: initials, not the platforms' logos */
.pl-tile {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  color: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: .3px;
}
.pl-tile--sm { width: 34px; height: 34px; border-radius: 9px; font-size: 11.5px; }
.pl-tile--lg { width: 50px; height: 50px; border-radius: 14px; font-size: 16px; }
.pl-tile--youtube { background: #FF0033; }
.pl-tile--instagram { background: linear-gradient(135deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%, #4F5BD5); }
.pl-tile--tiktok { background: #111; box-shadow: inset 3px 0 0 #25F4EE, inset -3px 0 0 #FE2C55; }
.pl-tile--facebook { background: #1877F2; }
.pl-tile--pinterest { background: #BD081C; }

/* Market code tiles */
.pl-code {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--pl-info-bg); color: var(--pl-info); font-size: 13.5px; font-weight: 800;
}
.pl-code--warn { background: var(--pl-warn-bg); color: var(--pl-warn); }
.pl-code--lg { width: 50px; height: 50px; border-radius: 14px; font-size: 16px; }

/* Bars */
.pl-bar { display: block; height: 8px; border-radius: 4px; background: var(--pl-track); overflow: hidden; }
.pl-bar--slim { height: 7px; }
.pl-bar__fill { display: block; height: 100%; border-radius: 4px; background: var(--pl-blue); animation: pl-grow var(--pl-load) var(--pl-ease) both; }
.pl-bar__fill--warn { background: var(--pl-saffron); }
.pl-bar__fill--other { background: #B9BEC9; }
.pl-bar__fill--adoption { background: var(--pl-adoption); }
.pl-bar__fill--health { background: var(--pl-health); }

/* Score ring */
.pl-ring { position: relative; flex: none; }
.pl-ring svg { display: block; }
.pl-ring__arc { animation: pl-ring var(--pl-load) var(--pl-ease) both; }
.pl-ring__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pl-ring__text b { font-size: 46px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.pl-ring__text b sup { font-size: .42em; letter-spacing: 0; margin-left: 1px; color: var(--pl-text-2); }
.pl-ring__text > span { margin-top: 3px; font-size: 12.5px; color: var(--pl-text-2); }
.pl-ring--large .pl-ring__text b { font-size: 62px; letter-spacing: -2.4px; }
.pl-ring--large .pl-ring__text > span { margin-top: 4px; font-size: 13.5px; }

/* Line chart: the plot stretches with the card, the labels stay crisp */
.pl-chart { position: relative; flex: 1; min-height: 150px; }
.pl-chart__plot { position: absolute; left: 30px; right: 46px; top: 14px; bottom: 26px; }
.pl-chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: pl-reveal var(--pl-load) var(--pl-ease) both; }
.pl-chart__grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--pl-hairline); }
.pl-chart__grid--base { border-top-color: #D5D8DE; }
.pl-chart__grid i { position: absolute; right: 100%; top: -8px; margin-right: 8px; font-style: normal; font-size: 11.5px; line-height: 16px; color: var(--pl-text-3); font-variant-numeric: tabular-nums; }
.pl-chart__x { position: absolute; top: 100%; margin-top: 7px; transform: translateX(-50%); font-size: 11.5px; color: var(--pl-text-3); white-space: nowrap; }
.pl-chart__dot {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--pl-blue); border: 2px solid #fff;
  animation: pl-fade var(--pl-load) ease-out both;
}
.pl-chart__dot b { position: absolute; left: 3px; bottom: 12px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-chart__dot--last { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.pl-chart__dot--last b { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); font-size: 16px; }

.pl-chart--compact .pl-chart__x { display: none; }
.pl-chart--compact .pl-chart__x--first { display: block; transform: none; }
.pl-chart--compact .pl-chart__x--last { display: block; transform: translateX(-100%); }

/* Sparkline */
.pl-spark { display: block; overflow: visible; flex: 0 1 110px; min-width: 56px; width: 110px; }
.pl-spark--growing { color: var(--pl-sea); }
.pl-spark--stalling { color: #9AA0AB; }
.pl-spark--slipping { color: var(--pl-coral); }

/* Pass and fail: an icon and a word */
.pl-verdict {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pl-verdict .pl-icon { width: 20px; height: 20px; padding: 3.5px; border-radius: 50%; color: #fff; }
.pl-verdict--stack { flex-direction: column; gap: 3px; font-size: 11px; }
.pl-verdict--pass { color: var(--pl-good); }
.pl-verdict--pass .pl-icon { background: #5FA31C; }
.pl-verdict--fail { color: var(--pl-down); }
.pl-verdict--fail .pl-icon { background: var(--pl-coral); }
.pl-verdict--none { color: var(--pl-neutral); }
.pl-verdict--none .pl-icon { background: #A3A9B5; }

/* Lists of rows inside a panel */
.pl-rows { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-top: 8px; }
.pl-rows__label { padding: 6px 0 0; font-size: 11px; font-weight: 650; letter-spacing: .7px; text-transform: uppercase; color: var(--pl-text-3); }

.pl-empty { padding: 56px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pl-empty b { font-size: 18px; }
.pl-empty p { max-width: 420px; color: var(--pl-text-2); margin-bottom: 8px; }

/* ------------------------------------------------------------ Overview */
.pl-ov { min-height: calc(100vh - var(--pl-top-height) - 50px); }
.pl-ov__top { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: var(--pl-gap); height: clamp(252px, 26vh, 290px); flex: none; }

.pl-hq { padding: 18px 22px; display: flex; flex-direction: column; }
.pl-hq__body { flex: 1; display: flex; align-items: center; gap: 28px; }
.pl-hq__score { width: 172px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pl-hq__questions { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.pl-q { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; }
.pl-q__label { font-size: 13.5px; font-weight: 500; }
.pl-q__points { font-size: 13px; color: var(--pl-text-2); font-variant-numeric: tabular-nums; }
.pl-q__points b { font-size: 14.5px; color: var(--pl-text); font-weight: 700; }
.pl-q .pl-bar { grid-column: 1 / -1; }

.pl-trend { padding: 18px 22px 14px; display: flex; flex-direction: column; }
.pl-trend .pl-chart { margin-top: 6px; }

.pl-ov__channels { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; flex: none; margin-bottom: 6px; }
.pl-ov__footnote { position: absolute; right: 2px; top: 100%; font-size: 11.5px; line-height: 24px; color: var(--pl-text-3); }
.pl-chan {
  padding: 13px 16px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pl-chan:hover { border-color: #B9C0E4; box-shadow: 0 6px 18px rgba(20, 40, 160, .12); transform: translateY(-2px); }
.pl-chan__head { display: flex; align-items: center; gap: 10px; }
.pl-chan__name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pl-chan__name b { font-size: 14.5px; font-weight: 650; line-height: 1.2; }
.pl-chan__go { color: #B4BAC6; align-self: flex-start; transition: color .15s, transform .15s; }
.pl-chan:hover .pl-chan__go { color: var(--pl-blue); transform: translateX(2px); }
.pl-chan__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pl-chan__score { flex: none; white-space: nowrap; font-size: 32px; font-weight: 700; letter-spacing: -.8px; line-height: 1; font-variant-numeric: tabular-nums; }
.pl-chan__score small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--pl-text-3); }

.pl-ov__bottom { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--pl-gap); flex: 1; min-height: 300px; }

.pl-opp, .pl-mkt {
  flex: 1; display: flex; align-items: center; gap: 14px;
  margin: 0 -10px; padding: 4px 10px; border-radius: 10px;
  position: relative; transition: background-color .15s;
}
.pl-opp + .pl-opp::before, .pl-mkt + .pl-mkt::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; border-top: 1px solid var(--pl-hairline); }
.pl-opp:hover, .pl-mkt:hover { background: var(--pl-page); }
.pl-opp__text, .pl-mkt__text { flex: 1; min-width: 0; }
.pl-opp__text b, .pl-mkt__text b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.pl-opp__text small, .pl-mkt__text small { display: block; margin-top: 1px; font-size: 13px; color: var(--pl-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-opp__go { color: #B4BAC6; transition: color .15s, transform .15s; }
.pl-opp:hover .pl-opp__go { color: var(--pl-blue); transform: translateX(2px); }
.pl-mkt__score b { font-size: 20px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.pl-mkt__score small { font-size: 12.5px; color: var(--pl-text-3); }
.pl-mkt .pl-code { width: 38px; height: 38px; border-radius: 11px; font-size: 12.5px; }
.pl-mkt__score { flex: none; }
.pl-rows__label + .pl-mkt::before { display: none; }
.pl-panel > .pl-foot-note { margin-top: 6px; }

/* ------------------------------------------------------------ Channel scorecard */
/* Three columns so the whole story is on one screen: the score, why, what to do. */
.pl-sc__grid { display: grid; grid-template-columns: clamp(244px, 17vw, 320px) minmax(0, 1fr) clamp(320px, 22vw, 420px); gap: var(--pl-gap); align-items: stretch; }
.pl-sc__col { display: flex; flex-direction: column; gap: var(--pl-gap); min-width: 0; }

.pl-sc__score { flex: none; padding: 18px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pl-sc__score h2 { align-self: flex-start; }
.pl-sc__score .pl-ring { margin-top: 6px; }
.pl-sc__was { margin-top: -2px; font-size: 13px; color: var(--pl-text-2); }
.pl-sc__score .pl-foot-note { text-align: left; }
.pl-sc__score .pl-link { margin-top: 2px; }
.pl-sc__trend { flex: 1; min-height: 190px; padding: 16px 18px 12px; display: flex; flex-direction: column; }
.pl-sc__trend .pl-chart { margin-top: 4px; min-height: 120px; }

.pl-sc__kpis { padding: 4px 20px 8px; }
.pl-kpis__head { display: flex; justify-content: space-between; padding: 12px 0 8px; font-size: 12px; font-weight: 600; color: var(--pl-text-2); }
.pl-kgroup__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 12px; margin: 0 -12px; border-radius: 8px;
  background: var(--pl-page);
  font-size: 12.5px; color: var(--pl-text-2); font-variant-numeric: tabular-nums;
}
.pl-kgroup__head h3 { font-size: 13px; font-weight: 650; color: var(--pl-text); }
.pl-kgroup__head b { color: var(--pl-text); font-weight: 700; }
.pl-kpi {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin: 0 -12px; padding: 9px 12px; min-height: 62px;
}
.pl-kpi + .pl-kpi { border-top: 1px solid var(--pl-hairline); }
.pl-kpi--fail { background: #FFF4F2; border-radius: 10px; box-shadow: inset 3px 0 0 var(--pl-coral); margin-top: 4px; margin-bottom: 4px; }
.pl-kpi--fail, .pl-kpi--fail + .pl-kpi { border-top-color: transparent !important; }
.pl-kpi__name { display: flex; align-items: center; flex-wrap: wrap; gap: 1px 8px; }
.pl-kpi__name b { font-size: 14.5px; font-weight: 650; }
.pl-kpi__measures { font-size: 12.5px; color: var(--pl-text-3); }
.pl-kpi__result { margin-top: 2px; font-size: 13.5px; color: #1D1F24; }
.pl-kpi--fail .pl-kpi__result { font-weight: 650; color: var(--pl-down); }
.pl-kpi__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pl-kpi__points { font-size: 14px; line-height: 1.15; color: var(--pl-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-kpi__points b { font-size: 18px; font-weight: 700; color: var(--pl-text); }
.pl-kpi--fail .pl-kpi__points b { color: var(--pl-down); }
.pl-kpi--not_scored .pl-kpi__points { font-size: 12.5px; }
.pl-kpi--not_scored .pl-kpi__name b { color: var(--pl-text-2); }

.pl-sc__recs { flex: 1; padding: 18px 18px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pl-sc__recs h2 { font-size: 17px; line-height: 1.25; letter-spacing: -.2px; }
.pl-sc__recs .pl-ai { font-size: 11.5px; padding: 4px 9px; gap: 5px; }
.pl-recs { list-style: none; align-self: stretch; display: flex; flex-direction: column; }
.pl-rec { display: flex; gap: 12px; padding: 10px 0; }
.pl-rec + .pl-rec { border-top: 1px solid var(--pl-hairline); }
.pl-rec__number { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pl-blue); color: #fff; font-size: 12.5px; font-weight: 700; }
.pl-rec__body { flex: 1; min-width: 0; }
.pl-rec__kpi { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; font-size: 12.5px; font-weight: 600; color: var(--pl-text-2); }
.pl-rec__action { margin-top: 3px; font-size: 14.5px; line-height: 1.38; font-weight: 550; }
.pl-rec__action + .pl-rec__action { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--pl-border); }

.pl-bench { flex: none; padding: 15px 20px 12px; display: flex; flex-direction: column; gap: 8px; }
.pl-bench__metric { display: flex; flex-direction: column; }
.pl-bench__metric + .pl-bench__metric { padding-top: 8px; border-top: 1px solid var(--pl-hairline); }
.pl-bench__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 13px; }
.pl-bench__title b { font-weight: 650; }
.pl-bench__title .pl-verdict .pl-icon { width: 17px; height: 17px; padding: 3px; }
.pl-bench__row { display: grid; grid-template-columns: max-content minmax(0, 1fr) 40px; align-items: center; gap: 10px; height: 20px; font-size: 12.5px; color: var(--pl-text-2); white-space: nowrap; }
.pl-bench__row > span:first-child { width: 118px; }
.pl-bench__row b { text-align: right; font-size: 12.5px; font-weight: 600; color: #1D1F24; font-variant-numeric: tabular-nums; }
.pl-bench__row--us { color: var(--pl-text); font-weight: 650; }
.pl-bench__row--us b { font-weight: 750; color: var(--pl-blue); }
.pl-bench__none { padding: 14px 0 10px; display: flex; flex-direction: column; gap: 4px; }
.pl-bench__none b { font-size: 14.5px; }
.pl-bench__none p { font-size: 13px; color: var(--pl-text-2); }

/* ------------------------------------------------------------ Markets */
.pl-legend { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--pl-text-2); }
.pl-legend__key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pl-legend__key + * { margin-right: 6px; }
.pl-legend .pl-legend__key:not(:first-child) { margin-left: 10px; }
.pl-legend__key--adoption { background: var(--pl-adoption); }
.pl-legend__key--health { background: var(--pl-health); }

.pl-from {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 3px 10px 3px 4px; border-radius: 12px;
  border: 1px solid var(--pl-border); background: #fff;
  font-size: 12px; font-weight: 600; color: var(--pl-text-2); white-space: nowrap;
}
.pl-from__icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--pl-blue); }
.pl-from__icon img { width: 14px; height: 14px; }

/* Segmented control */
.pl-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--pl-page); }
.pl-seg a, .pl-seg button { padding: 6px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--pl-text-2); white-space: nowrap; transition: background-color .15s, color .15s; }
.pl-seg a:hover, .pl-seg button:hover { color: var(--pl-text); }
.pl-seg .is-on { background: #fff; color: var(--pl-blue); box-shadow: 0 1px 3px rgba(16, 24, 64, .14); }

/* The explainer: Adoption + Health = one score */
.pl-eq { flex: none; display: flex; align-items: center; gap: 26px; padding: 15px 26px 16px; }
.pl-eq__part { flex: 1; min-width: 0; }
.pl-eq h2 { font-size: 17px; line-height: 1.25; letter-spacing: -.2px; }
.pl-eq__chips { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pl-eq__ask { font-size: 13.5px; color: var(--pl-text-2); font-style: italic; }
.pl-eq__points { flex: none; padding: 4px 11px; border-radius: 12px; color: #fff; font-size: 12.5px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-eq__points--adoption { background: var(--pl-adoption); }
.pl-eq__points--health { background: var(--pl-health); color: #00302B; }
.pl-eq__sign { flex: none; font-size: 30px; font-weight: 300; line-height: 1; color: var(--pl-text-3); }
.pl-eq__total { flex: none; display: flex; align-items: center; gap: 16px; }
.pl-eq__total > b { font-size: 46px; font-weight: 700; letter-spacing: -1.6px; line-height: 1; color: var(--pl-blue); font-variant-numeric: tabular-nums; }
.pl-eq__total .pl-eq__ask { font-style: normal; }

.pl-mlist { flex: 1; display: flex; flex-direction: column; padding: 14px 22px 8px; min-height: 0; }
.pl-mlist__head { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; }
.pl-mlist__rows { flex: 1; display: flex; flex-direction: column; }
.pl-mrow {
  flex: 1; display: grid; align-items: center; gap: 16px;
  grid-template-columns: 22px 42px minmax(0, 1.3fr) minmax(190px, 1fr) 86px auto 18px;
  min-height: 60px; margin: 0 -10px; padding: 6px 10px; border-radius: 10px;
  position: relative; transition: background-color .15s;
}
.pl-mrow + .pl-mrow::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; border-top: 1px solid var(--pl-hairline); }
.pl-mrow:hover { background: var(--pl-page); }
.pl-mrow__rank { font-size: 13px; font-weight: 650; color: var(--pl-text-3); text-align: center; font-variant-numeric: tabular-nums; }
.pl-mrow__text { min-width: 0; }
.pl-mrow__text b { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }
.pl-mrow__text small { display: block; margin-top: 1px; font-size: 13px; line-height: 1.35; color: var(--pl-text-2); }
.pl-split { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pl-split__bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; background: var(--pl-track); overflow: hidden; }
.pl-split__bar i { display: block; height: 100%; animation: pl-grow var(--pl-load) var(--pl-ease) both; }
.pl-split__a { background: var(--pl-adoption); }
.pl-split__h { background: var(--pl-health); }
.pl-split small { font-size: 12px; color: var(--pl-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-split small b { color: var(--pl-text); font-weight: 700; }
.pl-mrow__score { text-align: right; white-space: nowrap; }
.pl-mrow__score b { font-size: 26px; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.pl-mrow__score small { font-size: 12.5px; color: var(--pl-text-3); }
.pl-mrow__tags { display: flex; align-items: center; gap: 6px; width: 312px; }
.pl-mrow__tags .pl-tag:first-child { margin-right: auto; }
@media (max-width: 1700px) {
  .pl-mrow__tags { flex-direction: column; align-items: flex-start; gap: 4px; width: 176px; }
}
.pl-mrow__go { color: #B4BAC6; transition: color .15s, transform .15s; }
.pl-mrow:hover .pl-mrow__go { color: var(--pl-blue); transform: translateX(2px); }

/* ------------------------------------------------------------ Market detail */
.pl-md__grid { flex: 1; display: grid; grid-template-columns: clamp(308px, 21vw, 350px) minmax(0, 1fr) minmax(0, 1fr); gap: var(--pl-gap); align-items: stretch; }
.pl-md__score { flex: none; padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pl-md__score h2 { align-self: flex-start; }
.pl-md__score .pl-ring { margin-top: 6px; }
.pl-md__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pl-md__bars { align-self: stretch; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--pl-hairline); text-align: left; }
.pl-md__bars .pl-q__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pl-md__next { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pl-md__next .pl-ai { font-size: 11.5px; padding: 4px 9px; gap: 5px; }
.pl-md__next p { font-size: 15.5px; line-height: 1.4; font-weight: 550; }

.pl-half { padding: 18px 22px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pl-half > * { align-self: stretch; }
.pl-half > .pl-from { align-self: flex-start; }
.pl-half__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pl-half__head h2 { font-size: 17px; letter-spacing: -.2px; }
.pl-half__head p { margin-top: 1px; font-size: 13.5px; color: var(--pl-text-2); font-style: italic; }
.pl-half__points { flex: none; font-size: 16px; color: var(--pl-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-half__points b { font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1; color: var(--pl-text); }
.pl-half__sub { margin-top: 6px; font-size: 12px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; color: var(--pl-text-3); }
.pl-half__kpis { display: flex; flex-direction: column; padding: 0 12px; margin-top: -4px; }
.pl-half .pl-foot-note { margin-top: auto; padding-top: 6px; }

.pl-tiers { display: flex; flex-direction: column; gap: 6px; }
.pl-tier { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--pl-text-2); }
.pl-tier__name { font-size: 14.5px; font-weight: 650; color: var(--pl-text-2); white-space: nowrap; }
.pl-tier__text { font-size: 12.5px; line-height: 1.4; }
.pl-tier__text b { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: 13.5px; font-weight: 600; color: var(--pl-text-2); }
.pl-tier__points { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-tier__points b { font-size: 18px; font-weight: 700; }
.pl-tier--current { background: var(--pl-info-bg); border-color: #C9CFEA; color: #2A2F3A; box-shadow: inset 3px 0 0 var(--pl-adoption); }
.pl-tier--current .pl-tier__name, .pl-tier--current .pl-tier__text b, .pl-tier--current .pl-tier__points b { color: var(--pl-text); }

.pl-issues { display: flex; flex-direction: column; margin-top: -6px; }
.pl-issue { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.pl-issue + .pl-issue { border-top: 1px solid var(--pl-hairline); }
.pl-issue b { flex: 1; font-size: 14px; font-weight: 600; }
.pl-issue .pl-verdict .pl-icon { width: 18px; height: 18px; padding: 3px; }

/* ------------------------------------------------------------ Drawers */
.pl-drawer { position: fixed; inset: 0; z-index: 60; }
.pl-drawer[hidden] { display: none; }
.pl-drawer__shade { position: absolute; inset: 0; background: rgba(10, 16, 56, .34); opacity: 0; transition: opacity .22s ease-out; }
.pl-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%;
  display: flex; flex-direction: column;
  background: #fff; box-shadow: -18px 0 48px rgba(10, 18, 70, .22);
  transform: translateX(100%); transition: transform .24s var(--pl-ease);
}
.pl-drawer.is-open .pl-drawer__shade { opacity: 1; }
.pl-drawer.is-open .pl-drawer__panel { transform: none; }
.pl-drawer__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px 24px; border-bottom: 1px solid var(--pl-border); }
.pl-drawer__head > div { flex: 1; min-width: 0; }
.pl-drawer__head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }
.pl-drawer__head p { margin-top: 1px; font-size: 13px; color: var(--pl-text-2); }
.pl-drawer__mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--pl-blue); color: #fff; }
.pl-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.pl-drawer__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--pl-border); background: #FAFAFB; font-size: 13px; color: var(--pl-text-2); }
.pl-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* Ask Pulse */
.pl-ask__log { position: relative; flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.pl-ask__suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-bottom: 8px; }
.pl-ask__suggest > p { font-size: 11.5px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; color: var(--pl-text-3); }
.pl-askchip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 12px; border: 1px solid #C9CFEA; background: #fff;
  font-size: 14.5px; font-weight: 550; color: var(--pl-blue); text-align: left;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.pl-askchip:hover { background: var(--pl-info-bg); border-color: #AEB7E2; }
.pl-askchip .pl-icon { opacity: .55; transition: transform .15s, opacity .15s; }
.pl-askchip:hover .pl-icon { opacity: 1; transform: translateX(2px); }
.pl-msg { max-width: 100%; font-size: 14.5px; line-height: 1.5; animation: pl-rise .22s var(--pl-ease) both; }
.pl-msg--me { align-self: flex-end; max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--pl-blue); color: #fff; font-weight: 550; }
.pl-msg--pulse { align-self: stretch; padding: 14px 16px; border-radius: 4px 14px 14px 14px; background: var(--pl-page); }
.pl-msg__body p + p, .pl-msg__body ul + p, .pl-msg__body p + ul { margin-top: 9px; }
.pl-msg__body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pl-msg__body li { position: relative; padding-left: 16px; }
.pl-msg__body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--pl-blue); }
.pl-msg__body b { font-weight: 700; }
.pl-msg__body .is-waiting { display: none; }
.pl-msg__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--pl-border); animation: pl-fade .3s ease-out both; }
.pl-msg__sources { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.pl-msg__sources small { margin-right: 3px; font-size: 12px; color: var(--pl-text-2); }
.pl-msg__thinking { display: none; align-items: center; gap: 5px; height: 22px; }
.pl-msg__thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-blue); animation: pl-think 1s ease-in-out infinite; }
.pl-msg__thinking i:nth-child(2) { animation-delay: .15s; }
.pl-msg__thinking i:nth-child(3) { animation-delay: .3s; }
.pl-msg.is-thinking .pl-msg__thinking { display: flex; }
.pl-msg.is-thinking .pl-msg__body, .pl-msg.is-thinking .pl-msg__foot, .pl-msg.is-typing .pl-msg__foot { display: none; }
.pl-ask__form { flex: none; display: flex; gap: 8px; padding: 14px 18px 16px 24px; border-top: 1px solid var(--pl-border); }
.pl-ask__form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--pl-border); background: var(--pl-page); font: inherit; font-size: 14.5px; color: var(--pl-text); transition: border-color .15s, background-color .15s; }
.pl-ask__form input::placeholder { color: var(--pl-text-3); }
.pl-ask__form input:focus { outline: none; border-color: var(--pl-blue); background: #fff; }
.pl-ask__form .pl-btn { height: 42px; width: 46px; padding: 0; justify-content: center; }

/* How it's calculated */
.pl-how { display: flex; flex-direction: column; gap: 14px; }
.pl-how > * { flex: none; }
.pl-how__bar { display: flex; gap: 3px; height: 40px; border-radius: 10px; overflow: hidden; }
.pl-how__seg { flex: 1 0 0; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-how__seg--1 { background: #1428A0; }
.pl-how__seg--2 { background: #0077C7; }
.pl-how__seg--3 { background: #5B3FC4; }
.pl-how__seg--4 { background: #00897B; }
.pl-how__q { border: 1px solid var(--pl-border); border-radius: 12px; overflow: hidden; }
.pl-how__q > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--pl-page); }
.pl-how__key { width: 12px; height: 12px; flex: none; border-radius: 4px; }
.pl-how__q h3 { flex: 1; font-size: 14.5px; font-weight: 650; }
.pl-how__q > header span, .pl-how__kpi > span { flex: none; font-size: 13px; color: var(--pl-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-how__q > header span b { font-size: 17px; font-weight: 700; color: var(--pl-text); }
.pl-how__kpi { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--pl-hairline); }
.pl-how__kpi p { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pl-how__kpi p b { font-weight: 650; }
.pl-how__kpi small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--pl-text-2); }
.pl-how__kpi > span b { font-size: 15px; font-weight: 700; color: var(--pl-text); }
.pl-how__rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-how__rules > div { padding: 11px 13px; border-radius: 12px; background: var(--pl-info-bg); }
.pl-how__rules b { display: block; font-size: 13.5px; font-weight: 650; color: var(--pl-blue); }
.pl-how__rules p { margin-top: 2px; font-size: 12.5px; line-height: 1.42; color: #2A2F3A; }

/* ------------------------------------------------------------ Data sources */
.pl-ds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pl-gap); flex: none; }
.pl-src { padding: 16px 20px 14px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s; }
.pl-src.is-syncing { border-color: #AEB7E2; box-shadow: 0 6px 18px rgba(20, 40, 160, .1); }
.pl-src__head { display: flex; align-items: flex-start; gap: 14px; }
.pl-src__tile { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--pl-blue); color: #fff; font-size: 15px; font-weight: 750; letter-spacing: .2px; }
.pl-src__tile--off { background: #fff; color: var(--pl-text-2); border: 1.5px dashed #B9BEC9; }
.pl-src__name { flex: 1; min-width: 0; }
.pl-src__name h2, .pl-src__name h3 { font-size: 17px; font-weight: 650; letter-spacing: -.2px; line-height: 1.3; }
.pl-src__name p { margin-top: 1px; font-size: 13.5px; color: var(--pl-text-2); }
.pl-src__facts { display: flex; flex-direction: column; gap: 8px; }
.pl-src__facts > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 10px; }
.pl-src__facts dt { font-size: 12px; font-weight: 600; color: var(--pl-text-3); }
.pl-src__facts dd { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: #1D1F24; }
.pl-src__foot { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--pl-hairline); }
.pl-src__state { flex: 1; min-width: 0; min-height: 42px; display: flex; flex-direction: column; justify-content: center; }
.pl-src__idle { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--pl-text-2); }
.pl-src__idle[hidden], .pl-src__busy[hidden] { display: none; }
.pl-src__same { color: var(--pl-text); font-weight: 600; }
.pl-src.is-done .pl-src__idle { animation: pl-rise .3s var(--pl-ease) both; }
.pl-src__idle .pl-verdict .pl-icon { width: 18px; height: 18px; padding: 3px; }
.pl-src__busy { display: flex; flex-direction: column; gap: 7px; }
.pl-src__progress { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--pl-blue), var(--pl-sea)); }
.pl-src__stages { display: flex; gap: 6px; font-size: 12.5px; color: var(--pl-text-3); }
.pl-src__stages span + span::before { content: "›"; margin-right: 6px; color: #B4BAC6; font-weight: 400; }
.pl-src__stages .is-on { color: var(--pl-blue); font-weight: 650; }
.pl-src__stages .is-done { color: var(--pl-text-2); }

.pl-ds__bottom { flex: 1; display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--pl-gap); min-height: 0; }
.pl-flow { padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.pl-flow__body { flex: 1; display: grid; grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto; align-items: stretch; min-height: 148px; }
.pl-flow__col { display: grid; grid-auto-rows: 1fr; align-items: center; }
.pl-flow__node { display: flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--pl-border); background: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pl-flow__node--score { height: auto; padding: 8px 14px; gap: 2px 10px; display: grid; grid-template-columns: 1fr auto; border-color: #C9CFEA; background: var(--pl-info-bg); color: var(--pl-blue); transition: border-color .15s, box-shadow .15s; }
.pl-flow__node--score:hover { border-color: var(--pl-blue); box-shadow: 0 3px 10px rgba(20, 40, 160, .14); }
.pl-flow__node--score b { font-size: 14px; font-weight: 650; }
.pl-flow__node--score small { grid-column: 1; font-size: 12.5px; font-weight: 500; color: var(--pl-text-2); }
.pl-flow__node--score .pl-icon { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.pl-flow__lines { width: 100%; height: 100%; overflow: visible; }
.pl-flow__lines path { fill: none; stroke: #AEB7E2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pl-flow__hub { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 20px; border-radius: 14px; background: var(--pl-blue); color: #fff; text-align: center; }
.pl-flow__hub b { margin-top: 4px; font-size: 15px; font-weight: 650; }
.pl-flow__hub small { font-size: 12px; color: var(--pl-side-text); }
.pl-avail { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.pl-avail__row { display: flex; align-items: flex-start; gap: 14px; }
.pl-avail .pl-foot-note { margin-top: auto; }

/* ------------------------------------------------------------ Scoring settings */
/* A confirmation that shows itself, then steps aside. */
.pl-toast {
  position: fixed; z-index: 40; top: calc(var(--pl-top-height) + 14px); left: calc(50% + var(--pl-side-width) / 2); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 12px;
  background: #16331A; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(10, 30, 14, .28);
  animation: pl-toast 4.2s var(--pl-ease) both; pointer-events: none;
}
.pl-set__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 420px); gap: var(--pl-gap); align-items: start; }
.pl-set__main { display: flex; flex-direction: column; gap: var(--pl-gap); min-width: 0; }
.pl-set__panel[hidden] { display: none; }
section.pl-set__panel { padding: 16px 22px 10px; }
.pl-set__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pl-gap); align-items: start; }
.pl-set__half { padding: 16px 22px 10px; }
.pl-set__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; }
.pl-set__head h2 { font-size: 17px; letter-spacing: -.2px; }
.pl-set__head--stack { flex-direction: column; align-items: flex-start; gap: 0; }
.pl-set__head--stack .pl-from { margin-bottom: 9px; }
.pl-set__head p { margin-top: 2px; font-size: 13.5px; color: var(--pl-text-2); }
.pl-sgroup .pl-kgroup__head { margin-top: 4px; }
.pl-sgroup__total b { font-size: 14.5px; }
.pl-srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 7px 0; }
.pl-srow + .pl-srow { border-top: 1px solid var(--pl-hairline); }
.pl-srow__text { display: flex; align-items: center; flex-wrap: wrap; gap: 1px 8px; min-width: 0; }
.pl-srow__text b { font-size: 14.5px; font-weight: 650; }
.pl-srow__text > span:not(.pl-new) { font-size: 12.5px; color: var(--pl-text-3); }
.pl-srow__text--tier { flex-direction: column; align-items: flex-start; }

.pl-step { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.pl-step__was { display: none; margin-right: 6px; font-size: 12px; font-weight: 600; color: var(--pl-warn); white-space: nowrap; }
.pl-step.is-changed .pl-step__was { display: inline; }
.pl-step button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #C9CFEA; background: #fff; color: var(--pl-blue); transition: background-color .15s, border-color .15s, transform .1s; }
.pl-step button:hover { background: var(--pl-info-bg); border-color: #AEB7E2; }
.pl-step button:active { transform: scale(.94); }
.pl-step input {
  width: 58px; height: 38px; border-radius: 9px; border: 1px solid var(--pl-border); background: var(--pl-page);
  font: inherit; font-size: 18px; font-weight: 700; text-align: center; color: var(--pl-text);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
  transition: border-color .15s, background-color .15s;
}
.pl-step input::-webkit-outer-spin-button, .pl-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pl-step input:focus { outline: none; border-color: var(--pl-blue); background: #fff; }
.pl-step.is-changed input { border-color: #F0C580; background: var(--pl-warn-bg); }

.pl-adv { padding: 0 22px; }
.pl-adv summary { display: flex; align-items: center; gap: 8px; padding: 13px 0; font-size: 14px; font-weight: 600; color: var(--pl-text-2); cursor: pointer; list-style: none; }
.pl-adv summary::-webkit-details-marker { display: none; }
.pl-adv summary:hover { color: var(--pl-text); }
.pl-adv summary .pl-icon { transition: transform .15s; }
.pl-adv[open] summary .pl-icon { transform: rotate(90deg); }
.pl-adv__body { padding-bottom: 12px; border-top: 1px solid var(--pl-hairline); }
.pl-adv__body .pl-foot-note { padding-top: 6px; }

.pl-set__side { position: sticky; top: calc(var(--pl-top-height) + 18px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-set__side .pl-bar__fill { animation: none; }
.pl-meter { padding: 16px 20px; display: flex; flex-direction: column; gap: 9px; }
.pl-meter__count { font-size: 14.5px; color: var(--pl-text-2); }
.pl-meter__count b { font-size: 30px; font-weight: 700; letter-spacing: -.8px; line-height: 1; color: var(--pl-text); font-variant-numeric: tabular-nums; }
.pl-meter__note { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.pl-meter__note .pl-icon { margin-top: 2px; }
.pl-meter--ok .pl-meter__note { color: var(--pl-good); }
.pl-meter--under .pl-meter__note, .pl-meter--over .pl-meter__note { color: var(--pl-down); }
.pl-meter--under .pl-bar__fill { background: var(--pl-saffron); }
.pl-meter--over .pl-bar__fill { background: var(--pl-coral); }
.pl-meter--under, .pl-meter--over { border-color: #F3B7B1; }

.pl-preview { padding: 16px 20px 10px; }
.pl-preview__rows { display: flex; flex-direction: column; }
.pl-prow { display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 0 -10px; padding: 5px 10px; border-radius: 9px; }
.pl-prow + .pl-prow { border-top: 1px solid var(--pl-hairline); }
.pl-preview__rows--tight .pl-prow { min-height: 41px; padding-top: 3px; padding-bottom: 3px; }
.pl-prow__name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-prow__rank { width: 16px; font-size: 12.5px; font-weight: 650; color: var(--pl-text-3); text-align: center; font-variant-numeric: tabular-nums; }
.pl-prow .pl-code { width: 34px; height: 34px; border-radius: 9px; font-size: 11.5px; }
.pl-prow__change { flex: none; display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.pl-prow__change b { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.pl-prow__saved { font-size: 15px; color: var(--pl-text-3); text-decoration: line-through; text-decoration-color: #C3C8D2; }
.pl-prow__arrow { color: var(--pl-text-3); }
.pl-prow.is-moved { animation: pl-flash .9s ease-out both; }
.pl-prow.is-moved .pl-prow__change b { color: var(--pl-blue); }
.pl-prow--hq { min-height: 62px; margin-top: 8px; margin-bottom: 4px; padding: 8px 14px; background: var(--pl-page); margin-left: -6px; margin-right: -6px; }
.pl-prow--hq + .pl-preview__rows { border-top: 0; }
.pl-prow--hq .pl-prow__name { font-size: 15.5px; font-weight: 650; }
.pl-prow--hq .pl-prow__change b { font-size: 30px; letter-spacing: -.8px; }
.pl-prow--hq .pl-prow__saved { font-size: 20px; }
.pl-set__actions { display: flex; flex-direction: column; gap: 8px; }
.pl-set__actions .pl-btn { justify-content: center; }
.pl-set__actions .pl-foot-note { text-align: center; }
.pl-set__problem { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pl-down); }
.pl-set__problem .pl-icon { margin-top: 3px; }

/* ------------------------------------------------------------ Quarterly report */
.pl-rep__bar { position: sticky; top: var(--pl-top-height); z-index: 10; margin: -26px -28px 0; padding: 14px 28px; min-height: 0; background: rgba(244, 245, 247, .92); backdrop-filter: blur(6px); }
.pl-rep__bar h1 { font-size: 22px; }
.pl-doc { align-self: center; width: 100%; max-width: 880px; padding: 44px 56px 28px; margin-bottom: 20px; box-shadow: 0 10px 34px rgba(16, 24, 64, .08); }
.pl-doc__head { padding-bottom: 22px; border-bottom: 2px solid var(--pl-text); }
.pl-doc__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.pl-doc__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--pl-blue); }
.pl-doc__brand b { display: block; font-size: 15px; font-weight: 650; line-height: 1.2; }
.pl-doc__brand small { display: block; font-size: 11.5px; color: var(--pl-text-2); }
.pl-doc__gap { flex: 1; }
.pl-doc__kicker { font-size: 12px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; color: var(--pl-blue); }
.pl-doc__head h1 { margin-top: 4px; font-size: 34px; font-weight: 700; letter-spacing: -.9px; line-height: 1.15; }
.pl-doc__meta { margin-top: 6px; font-size: 14px; color: var(--pl-text-2); }
.pl-doc__section { padding: 26px 0 4px; }
.pl-doc__section + .pl-doc__section { margin-top: 22px; border-top: 1px solid var(--pl-border); }
.pl-doc__section > h2 { margin-bottom: 12px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.pl-doc__section > p { max-width: 70ch; font-size: 15px; line-height: 1.6; color: #1D1F24; }
.pl-doc__section > p + p { margin-top: 10px; }
.pl-doc__section > p.pl-doc__lead { font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--pl-text); }
.pl-doc__section > .pl-foot-note { margin-top: 10px; font-size: 12px; }
.pl-doc__hq { display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 34px; }
.pl-doc__score { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pl-doc__trend { align-self: stretch; display: flex; flex-direction: column; }
.pl-doc__trend .pl-chart { min-height: 140px; }
.pl-doc__chans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pl-doc__chan { padding: 14px 16px 10px; border: 1px solid var(--pl-border); border-radius: 12px; break-inside: avoid; }
.pl-doc__chan:first-child { grid-column: 1 / -1; }
.pl-doc__chan > header { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.pl-doc__chan > header > b { font-size: 16px; font-weight: 650; }
.pl-doc__num { font-size: 13px; color: var(--pl-text-2); font-variant-numeric: tabular-nums; }
.pl-doc__num b { font-size: 26px; font-weight: 700; letter-spacing: -.6px; color: var(--pl-text); }
.pl-doc__kpis { list-style: none; }
.pl-doc__chan:first-child .pl-doc__kpis { columns: 2; column-gap: 28px; }
.pl-doc__kpi { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: baseline; gap: 0 9px; padding: 5px 0; border-top: 1px solid var(--pl-hairline); break-inside: avoid; }
.pl-doc__kpi .pl-verdict { align-self: center; grid-row: 1 / 3; }
.pl-doc__kpi .pl-verdict .pl-icon { width: 17px; height: 17px; padding: 3px; }
.pl-doc__kname { font-size: 13.5px; font-weight: 600; }
.pl-doc__kresult { grid-column: 2; font-size: 12.5px; color: var(--pl-text-2); }
.pl-doc__kpoints { grid-row: 1 / 3; grid-column: 3; align-self: center; font-size: 12.5px; color: var(--pl-text-2); font-variant-numeric: tabular-nums; }
.pl-doc__kpoints b { font-size: 14.5px; font-weight: 700; color: var(--pl-text); }
.pl-doc__kpi--fail .pl-doc__kname, .pl-doc__kpi--fail .pl-doc__kpoints b { color: var(--pl-down); }
.pl-doc__move { padding: 10px 0; break-inside: avoid; }
.pl-doc__move + .pl-doc__move { border-top: 1px solid var(--pl-hairline); }
.pl-doc__movehead { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pl-doc__movehead b { font-weight: 650; }
.pl-doc__movehead span:not(.pl-tag) { color: var(--pl-text-2); font-variant-numeric: tabular-nums; }
.pl-doc__move ul { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.pl-doc__move li { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.5; }
.pl-doc__move li .pl-points { justify-self: start; }
.pl-doc__move li b { font-weight: 650; }
.pl-doc__recs { list-style: none; margin-top: 12px; }
.pl-doc__recs li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--pl-hairline); break-inside: avoid; }
.pl-doc__rec { flex: 1; min-width: 0; }
.pl-doc__rec b { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.pl-doc__rec small { display: block; font-size: 13px; color: var(--pl-text-2); }
.pl-doc__table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.pl-doc__table th { padding: 8px 10px; border-bottom: 1.5px solid var(--pl-text); font-size: 12px; font-weight: 650; letter-spacing: .3px; text-align: left; color: var(--pl-text-2); white-space: nowrap; }
.pl-doc__table th.pl-num { text-align: right; }
.pl-doc__table td { padding: 9px 10px; border-bottom: 1px solid var(--pl-hairline); }
.pl-doc__table td b { font-weight: 650; }
.pl-doc__table tr { break-inside: avoid; }
.pl-doc__method > p { font-size: 13.5px; color: var(--pl-text-2); }
.pl-doc__foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--pl-border); font-size: 12px; color: var(--pl-text-3); }

/* A shorter screen (a 900-high laptop) gets a slightly denser scorecard so the
   whole story still fits without scrolling. */
@media (max-height: 940px) {
  .pl-sc { gap: 14px; }
  .pl-sc .pl-sc__grid, .pl-sc .pl-sc__col { gap: 14px; }
  .pl-body:has(.pl-sc) { padding-top: 20px; padding-bottom: 18px; }
  .pl-sc .pl-kpi { min-height: 58px; padding-top: 7px; padding-bottom: 7px; }
  .pl-sc .pl-rec { padding: 8px 0; }
  .pl-sc .pl-bench__row { height: 18px; }
  .pl-sc .pl-bench { padding-top: 13px; padding-bottom: 10px; }
}

/* ------------------------------------------------------------ Motion */
@keyframes pl-grow { from { width: 0; } }
@keyframes pl-ring { from { stroke-dasharray: 0 var(--pl-circumference); } }
@keyframes pl-reveal { from { clip-path: inset(-10% 100% -10% -2%); } to { clip-path: inset(-10% -2% -10% -2%); } }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes pl-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes pl-think { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pl-flash { from { background-color: #DCE2FA; } }
@keyframes pl-toast {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  7%, 86% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ Print (Export PDF)
   Only the report prints: no sidebar, top bar, buttons or drawers. */
@page { size: A4; margin: 14mm 13mm; }
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { min-width: 0; background: #fff; font-size: 12.5px; }
  .pl-side, .pl-top, .pl-drawer, .pl-rep__bar { display: none !important; }
  .pl-app { display: block; min-height: 0; }
  .pl-body { padding: 0; display: block; }
  .pl-page { display: block; }
  .pl-doc { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .pl-doc__brand { margin-bottom: 20px; }
  .pl-doc__head h1 { font-size: 28px; }
  .pl-doc__section { padding-top: 18px; }
  .pl-doc__section + .pl-doc__section { margin-top: 16px; }
  .pl-doc__section > h2 { break-after: avoid; }
  .pl-doc__hq, .pl-doc__table, .pl-doc__recs li, .pl-doc__keep { break-inside: avoid; }
  .pl-doc__hq { gap: 24px; }
}
