/* Pulsar — SaaS analytics dashboard. Everything lives in @layer app (the Feudera shell stays unlayered). */
@layer app {
  body { background: #0b0e1a; }

  /* ------------------------------------------------------------ tokens */
  .pulsar {
    --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --side-w: 248px;
    --top-h: 60px;
    --r: 16px;
    --r-sm: 10px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.4, .64, 1);

    --bg: #0b0e1a;
    --bg-2: #0d1120;
    --surface: #111527;
    --surface-2: #161b31;
    --surface-3: #1d2340;
    --line: rgba(150, 168, 255, .085);
    --line-2: rgba(150, 168, 255, .16);
    --ink: #e9ecfb;
    --ink-2: #a6add0;
    --ink-3: #7a83ad;
    --accent: #7c9cff;
    --accent-2: #a9bcff;
    --accent-ink: #0a0d1c;
    --accent-soft: rgba(124, 156, 255, .13);
    --accent-glow: rgba(124, 156, 255, .45);
    --good: #3ddc97;
    --good-soft: rgba(61, 220, 151, .11);
    --bad: #ff7a7a;
    --bad-soft: rgba(255, 122, 122, .11);
    --warn: #f5c451;
    --prev: #5d6585;
    --grid: rgba(150, 168, 255, .075);
    --target: #c9b37a;
    --d1: #6b8cf6; --d2: #1a9e86; --d3: #e0683a;
    --f1: #3a56bd; --f2: #4f6fdc; --f3: #6888f2; --f4: #88a2ff; --f5: #aabdff;
    --heat-0: #151a33;
    --shadow: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 24px 48px -30px rgba(0, 0, 0, .75);
    --shadow-pop: 0 24px 60px -18px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2);
    --glass: rgba(11, 14, 26, .78);

    position: relative;
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    min-height: calc(100svh - var(--fs-bar-h));
    color: var(--ink);
    background:
      radial-gradient(1100px 520px at 72% -120px, rgba(124, 156, 255, .11), transparent 62%),
      radial-gradient(700px 420px at 12% 18%, rgba(86, 104, 220, .06), transparent 60%),
      var(--bg);
    font: 400 14px/1.45 var(--sans);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark;
    transition: background-color .3s, color .3s;
  }
  .pulsar[data-theme="light"] {
    --bg: #f2f4f9;
    --bg-2: #eceff7;
    --surface: #ffffff;
    --surface-2: #f6f7fc;
    --surface-3: #e9edf8;
    --line: rgba(22, 32, 84, .085);
    --line-2: rgba(22, 32, 84, .15);
    --ink: #0f1430;
    --ink-2: #454d70;
    --ink-3: #626b92;
    --accent: #3d5ee8;
    --accent-2: #2d4bd0;
    --accent-ink: #ffffff;
    --accent-soft: rgba(61, 94, 232, .09);
    --accent-glow: rgba(61, 94, 232, .25);
    --good: #0a7f4d;
    --good-soft: rgba(10, 127, 77, .09);
    --bad: #cf3535;
    --bad-soft: rgba(207, 53, 53, .08);
    --warn: #b7791f;
    --prev: #8a92b2;
    --grid: rgba(22, 32, 84, .07);
    --target: #a5802a;
    --d1: #4466f2; --d2: #0f9f82; --d3: #e2673a;
    --f1: #9db0fb; --f2: #7b93f6; --f3: #5b77ee; --f4: #3f5ce0; --f5: #2c46c2;
    --heat-0: #eef1fa;
    --shadow: 0 1px 2px rgba(15, 20, 48, .05), 0 12px 32px -22px rgba(15, 20, 48, .28);
    --shadow-pop: 0 24px 60px -18px rgba(15, 20, 48, .3), 0 0 0 1px var(--line-2);
    --glass: rgba(242, 244, 249, .82);
    background:
      radial-gradient(1100px 520px at 72% -120px, rgba(61, 94, 232, .08), transparent 62%),
      var(--bg);
    color-scheme: light;
  }

  .pulsar *, .pulsar *::before, .pulsar *::after { box-sizing: border-box; }
  .pulsar [hidden] { display: none !important; }
  .pulsar :where(h2, h3, h4, p, ol, ul, figure, fieldset, legend) { margin: 0; padding: 0; }
  .pulsar :where(ol, ul) { list-style: none; }
  .pulsar :where(button, input, select) { font: inherit; color: inherit; }
  .pulsar :where(button) { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  .pulsar :where(a) { color: inherit; text-decoration: none; }
  .pulsar :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
  .pulsar .p-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .pulsar .p-mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
  .pulsar .p-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .pulsar .p-num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

  .p-kbd {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px;
    background: var(--surface-2); color: var(--ink-2);
    font: 500 11px/1 var(--mono);
  }

  /* ------------------------------------------------------------ brand mark */
  .p-mark { position: relative; display: inline-block; flex: none; width: 28px; height: 28px; color: var(--accent); }
  .p-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .p-mark__core { fill: currentColor; }
  .p-mark__orbit { fill: none; stroke: currentColor; stroke-opacity: .34; stroke-width: 1.2; }
  .p-mark__beams { animation: p-sweep 7s linear infinite; will-change: transform; }
  .p-mark--xs { width: 16px; height: 16px; }
  .p-mark--xs .p-mark__beams { animation: none; }
  @keyframes p-sweep { to { transform: rotate(360deg); } }

  /* ------------------------------------------------------------ sidebar */
  .p-side {
    position: sticky; top: var(--fs-bar-h); z-index: 40;
    height: calc(100svh - var(--fs-bar-h));
    display: flex; flex-direction: column; gap: 18px;
    padding: 16px 12px 14px;
    background: linear-gradient(180deg, rgba(124, 156, 255, .035), transparent 30%), var(--bg-2);
    border-right: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .p-side::-webkit-scrollbar { display: none; }
  .p-side__top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 0; }
  .p-logo { display: inline-flex; align-items: center; gap: 9px; padding: 4px 2px; border-radius: 10px; }
  .p-logo__name { font: 700 19px/1 var(--sans); letter-spacing: -.035em; color: var(--ink); }
  .p-logo__tag {
    align-self: center; margin-top: 2px; padding: 3px 6px; border-radius: 6px;
    font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft);
  }
  .p-side .p-side__close { display: none; }

  /* workspace switcher */
  .p-ws { position: relative; }
  .p-ws__btn {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px 8px 8px;
    border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
    text-align: left; transition: border-color .2s, background .2s;
  }
  .p-ws__btn:hover { border-color: var(--line-2); background: var(--surface-2); }
  .p-ws__btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
  .p-ws__logo {
    display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px;
    font: 700 12px/1 var(--sans); letter-spacing: .02em; color: #fff;
    background: linear-gradient(140deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 70%, #000));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 6px 14px -8px var(--c);
  }
  .p-ws__txt { display: grid; min-width: 0; flex: 1; gap: 2px; }
  .p-ws__txt strong { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-ws__txt small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-ws__chev { width: 16px; height: 16px; color: var(--ink-3); }
  .p-ws__pop {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
    padding: 6px; border-radius: 14px; background: var(--surface-2); box-shadow: var(--shadow-pop);
    transform-origin: top center; animation: p-pop .22s var(--ease);
  }
  .p-ws__label { padding: 8px 10px 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .p-ws__opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; outline: none; }
  .p-ws__opt:hover, .p-ws__opt.is-active { background: var(--surface-3); }
  .p-ws__opt:focus-visible { box-shadow: 0 0 0 2px var(--accent) inset; }
  .p-ws__opt .p-ws__logo { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
  .p-ws__check { width: 16px; height: 16px; color: var(--accent); opacity: 0; }
  .p-ws__opt[aria-selected="true"] .p-ws__check { opacity: 1; }
  .p-ws__new {
    display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 9px 10px;
    border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--ink-2); font-size: 13px;
  }
  .p-ws__new:hover { color: var(--ink); }
  .p-ws__new .p-ico { width: 16px; height: 16px; }
  @keyframes p-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

  /* nav */
  .p-nav { display: grid; gap: 6px; }
  .p-nav__label { padding: 10px 10px 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .p-nav ul { display: grid; gap: 2px; }
  .p-nav__a {
    position: relative; display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 10px;
    border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; letter-spacing: -.005em; text-align: left;
    transition: color .2s, background .2s;
  }
  .p-nav__a .p-ico { color: var(--ink-3); transition: color .2s; }
  .p-nav__a:hover { color: var(--ink); background: rgba(150, 168, 255, .05); }
  .p-nav__a:hover .p-ico { color: var(--ink-2); }
  .p-nav__a.is-active { color: var(--ink); background: linear-gradient(90deg, var(--accent-soft), rgba(124, 156, 255, .03)); }
  .p-nav__a.is-active .p-ico { color: var(--accent); }
  .p-nav__a.is-active::before {
    content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
  }
  .p-nav__badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-grid; place-items: center; font: 600 11px/1 var(--mono);
    color: var(--accent); background: var(--accent-soft);
  }

  .p-side__foot { margin-top: auto; display: grid; gap: 12px; }
  .p-usage { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
  .p-usage__row { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
  .p-usage__row .p-mono { color: var(--accent); }
  .p-usage__bar { height: 6px; margin: 9px 0 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
  .p-usage__bar span { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--f2), var(--accent)); }
  .p-usage__sub { font-size: 11.5px; color: var(--ink-3); }
  .p-status { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 12px; color: var(--ink-3); }
  .p-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }

  /* ------------------------------------------------------------ top bar */
  .p-main { min-width: 0; display: flex; flex-direction: column; }
  .p-top {
    position: sticky; top: var(--fs-bar-h); z-index: 30;
    display: flex; align-items: center; gap: 12px;
    height: var(--top-h); padding: 0 24px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line);
  }
  .p-top .p-top__menu { display: none; }
  .p-iconbtn {
    position: relative; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px;
    border-radius: 10px; color: var(--ink-2); transition: background .2s, color .2s, transform .2s var(--ease);
  }
  .p-iconbtn:hover { background: rgba(150, 168, 255, .08); color: var(--ink); }
  .p-iconbtn:active { transform: scale(.94); }

  .p-search {
    display: flex; align-items: center; gap: 10px; flex: 1; max-width: 440px; min-width: 0; height: 38px; padding: 0 8px 0 12px;
    border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
    text-align: left; transition: border-color .2s, box-shadow .2s, background .2s;
  }
  .p-search:hover { border-color: var(--line-2); background: var(--surface-2); }
  .p-search .p-ico { width: 17px; height: 17px; }
  .p-search__ph { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
  .p-search__keys { display: inline-flex; gap: 3px; }

  .p-top__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

  /* segmented range control */
  .p-seg {
    position: relative; display: inline-flex; padding: 3px; gap: 2px;
    border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  }
  .p-seg__ind {
    position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--w, 40px);
    transform: translateX(var(--x, 3px));
    border-radius: 8px; background: var(--surface-3);
    box-shadow: 0 0 0 1px var(--line-2) inset, 0 4px 12px -6px rgba(0, 0, 0, .5);
    transition: transform .38s var(--spring), width .38s var(--spring);
  }
  .p-seg__btn {
    position: relative; z-index: 1; height: 30px; min-width: 42px; padding: 0 10px; border-radius: 8px;
    font: 500 12.5px/1 var(--mono); color: var(--ink-3); transition: color .2s;
  }
  .p-seg__btn:hover { color: var(--ink-2); }
  .p-seg__btn[aria-checked="true"] { color: var(--ink); }
  .pulsar:not(.is-ready) .p-seg__ind { opacity: 0; }
  .pulsar:not(.is-ready) .p-seg__btn[aria-checked="true"] { background: var(--surface-3); box-shadow: 0 0 0 1px var(--line-2) inset; }

  /* compare switch */
  .p-switch { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 8px; border-radius: 10px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
  .p-switch:hover { color: var(--ink); background: rgba(150, 168, 255, .05); }
  .p-switch__track {
    position: relative; width: 32px; height: 19px; border-radius: 99px; flex: none;
    background: var(--surface-3); box-shadow: 0 0 0 1px var(--line-2) inset; transition: background .25s;
  }
  .p-switch__thumb {
    position: absolute; top: 2.5px; left: 2.5px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--ink-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .3s var(--spring), background .25s;
  }
  .p-switch[aria-checked="true"] .p-switch__track { background: var(--accent); box-shadow: 0 0 14px -2px var(--accent-glow); }
  .p-switch[aria-checked="true"] .p-switch__thumb { transform: translateX(13px); background: #fff; }

  /* live indicator */
  .p-live {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px 0 10px; border-radius: 99px;
    border: 1px solid var(--line-2); font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
    transition: border-color .25s, color .25s, background .25s;
  }
  .p-live.is-on { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: var(--good-soft); }
  .p-live__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
  .p-live.is-on .p-live__dot { background: var(--good); }
  .p-live.is-on .p-live__dot::before, .p-live.is-on .p-live__dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--good);
    animation: p-ping 2.4s var(--ease) infinite;
  }
  .p-live.is-on .p-live__dot::after { animation-delay: 1.2s; }
  .p-live.is-beat .p-live__dot { animation: p-beat .5s var(--ease); }
  @keyframes p-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
  @keyframes p-beat { 40% { transform: scale(1.5); } }

  /* theme toggle */
  .p-theme .p-ico { position: absolute; transition: transform .5s var(--spring), opacity .25s; }
  .p-theme__moon { opacity: 0; transform: rotate(-70deg) scale(.6); }
  .pulsar[data-theme="light"] .p-theme__sun { opacity: 0; transform: rotate(70deg) scale(.6); }
  .pulsar[data-theme="light"] .p-theme__moon { opacity: 1; transform: none; }

  /* avatar + menu */
  .p-me { position: relative; }
  .p-avatar {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    font: 700 12px/1 var(--sans); letter-spacing: .03em; color: #0a0d1c;
    background: conic-gradient(from 200deg, #a9bcff, #7c9cff, #5fd4c4, #a9bcff);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2);
    transition: transform .25s var(--spring), box-shadow .25s;
  }
  .p-avatar:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
  .p-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 250px; padding: 6px;
    border-radius: 14px; background: var(--surface-2); box-shadow: var(--shadow-pop);
    transform-origin: top right; animation: p-pop .22s var(--ease);
  }
  .p-menu__head { display: grid; gap: 2px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .p-menu__head strong { font-size: 14px; }
  .p-menu__head span { font-size: 12px; color: var(--ink-3); }
  .p-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; text-align: left; }
  .p-menu__item:hover, .p-menu__item:focus-visible { background: var(--surface-3); color: var(--ink); outline: none; }
  .p-menu__item .p-ico { width: 17px; height: 17px; }
  .p-menu__item .p-kbd { margin-left: auto; }

  /* ------------------------------------------------------------ content */
  .p-content { display: grid; gap: 30px; width: 100%; max-width: 1560px; padding: 26px 24px 72px; }
  .p-sec { display: grid; gap: 14px; scroll-margin-top: calc(var(--fs-bar-h) + var(--top-h) + 14px); }
  .p-sec__h {
    display: flex; align-items: center; gap: 10px;
    font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  }
  .p-sec__h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
  .p-sec__n { color: var(--accent); }

  .p-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 6px; }
  .p-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
  .p-eyebrow__ws { color: var(--ink-2); }
  .p-h1 { font: 700 clamp(28px, 2.6vw, 36px)/1.05 var(--sans); letter-spacing: -.04em; }
  .p-head__dates { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
  .p-head__vs { color: var(--ink-3); transition: opacity .3s; }
  .pulsar:not(.is-compare) .p-head__vs { opacity: 0; }
  .p-insight {
    display: flex; align-items: flex-start; gap: 10px; max-width: 470px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
    font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
  }
  .p-insight__ico { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

  /* KPI cards */
  .p-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .p-kpi {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 15px 16px 0;
    border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
    text-align: left; isolation: isolate;
    transition: border-color .25s, transform .3s var(--ease), background .25s;
    animation: p-rise .6s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms);
  }
  .p-kpi:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .p-kpi:active { transform: translateY(0) scale(.99); }
  .p-kpi.is-selected {
    border-color: color-mix(in srgb, var(--accent) 48%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 70%);
  }
  .p-kpi.is-selected::before {
    content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px var(--accent-glow);
  }
  .p-kpi::after { /* pulsar sweep on live update */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 70%);
    transform: translateX(-100%);
  }
  .p-kpi.is-flash::after { animation: p-sweepx 1.1s var(--ease); }
  @keyframes p-sweepx { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(100%); } }
  @keyframes p-rise { from { opacity: 0; transform: translateY(10px); } }
  .p-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .p-kpi__label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
  .p-kpi__pin { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: var(--accent); background: var(--accent-soft); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .35s var(--spring); }
  .p-kpi__pin .p-ico { width: 14px; height: 14px; }
  .p-kpi.is-selected .p-kpi__pin { opacity: 1; transform: none; }
  .p-kpi__value {
    font: 650 clamp(22px, 1.75vw, 29px)/1.1 var(--sans); letter-spacing: -.035em; color: var(--ink);
    font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .4s, text-shadow .4s;
  }
  .js .pulsar:not(.is-ready) .p-kpi__value { opacity: 0; animation: p-show 0s 2.5s forwards; }
  @keyframes p-show { to { opacity: 1; } }
  .p-kpi.is-flash .p-kpi__value { color: var(--accent-2); text-shadow: 0 0 22px var(--accent-glow); }
  .p-kpi__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .p-kpi__vs { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
  .pulsar:not(.is-compare) .p-kpi__vs { opacity: .75; }
  .p-kpi__spark { display: block; width: calc(100% + 32px); height: 38px; margin: 6px -16px 0; overflow: visible; }
  .p-spark__line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .p-spark__area { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
  .p-spark__prev { fill: none; stroke: var(--prev); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .9; transition: opacity .3s; }
  .pulsar:not(.is-compare) .p-spark__prev { opacity: 0; }
  .p-kpi:not(.is-selected) .p-spark__line { stroke: color-mix(in srgb, var(--accent) 75%, var(--ink-3)); }

  .p-delta {
    display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 7px 0 4px; border-radius: 99px;
    font: 500 12px/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  .p-delta__ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .p-delta.is-good { color: var(--good); background: var(--good-soft); }
  .p-delta.is-bad { color: var(--bad); background: var(--bad-soft); }
  .p-delta.is-sm { height: 19px; font-size: 11.5px; }

  /* cards & grid */
  .p-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .p-card {
    position: relative; min-width: 0; padding: 18px 20px 20px; border-radius: var(--r);
    border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
    transition: opacity .35s, border-color .3s, background-color .3s;
  }
  .p-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .p-card__title { font: 600 15px/1.25 var(--sans); letter-spacing: -.015em; }
  .p-card__sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
  .p-card__ico { width: 18px; height: 18px; color: var(--ink-3); }
  .pulsar.is-loading .p-card, .pulsar.is-loading .p-kpi { opacity: .45; }
  .pulsar.is-loading .p-content::before {
    content: ""; position: fixed; left: var(--side-w); right: 0; top: calc(var(--fs-bar-h) + var(--top-h)); height: 2px; z-index: 31;
    background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat;
    animation: p-load 1s linear infinite;
  }
  @keyframes p-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }

  .p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 10px;
    border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  }
  .p-btn .p-ico { width: 16px; height: 16px; }
  .p-btn:hover { background: var(--surface-3); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
  .p-btn:active { transform: scale(.97); }
  .p-btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
  .p-btn--ghost:hover { color: var(--ink); }
  .p-btn--primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 22px -10px var(--accent-glow); }
  .p-btn--primary:hover { background: var(--accent-2); border-color: transparent; }

  /* ------------------------------------------------------------ main chart */
  .p-chart { grid-column: span 8; display: flex; flex-direction: column; }
  .p-feed { grid-column: span 4; }
  .p-chart__head { margin-bottom: 8px; align-items: flex-start; flex-wrap: wrap; }
  .p-chart__titles { display: grid; gap: 6px; }
  .p-card__title [data-chart-metric] { color: var(--accent); }
  .p-chart__total { display: flex; align-items: center; gap: 10px; }
  .p-chart__total strong { font: 650 26px/1.1 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
  .p-chart__tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .p-legend { display: flex; flex-wrap: wrap; gap: 2px; }
  .p-lg {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px;
    font-size: 12.5px; color: var(--ink-2); transition: color .2s, background .2s, opacity .2s;
  }
  .p-lg:hover { background: rgba(150, 168, 255, .07); color: var(--ink); }
  .p-lg[aria-pressed="false"] { color: var(--ink-3); }
  .p-lg[aria-pressed="false"] .p-lg__key { opacity: .35; }
  .p-lg[aria-pressed="false"] { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
  .p-lg:disabled { opacity: .4; cursor: not-allowed; text-decoration: none; }
  .p-lg__key { width: 14px; height: 0; border-top: 2px solid var(--accent); border-radius: 2px; transition: opacity .2s; }
  .p-lg--prev .p-lg__key { border-top-color: var(--prev); }
  .p-lg--target .p-lg__key { border-top: 2px dashed var(--target); }
  .pulsar:not(.is-compare) .p-lg--prev { display: none; }
  .p-zoomout { height: 30px; padding: 0 10px; font-size: 12.5px; animation: p-pop .25s var(--ease); }
  .p-zoomout .p-ico { width: 15px; height: 15px; }
  .p-viewtoggle .p-ico { position: absolute; transition: opacity .2s, transform .3s var(--spring); }
  .p-viewtoggle__c { opacity: 0; transform: scale(.6); }
  .p-viewtoggle[aria-pressed="true"] .p-viewtoggle__t { opacity: 0; transform: scale(.6); }
  .p-viewtoggle[aria-pressed="true"] .p-viewtoggle__c { opacity: 1; transform: none; }

  .p-plot {
    position: relative; height: 300px; margin: 4px -6px 0; border-radius: 10px;
    touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; outline-offset: 4px;
  }
  .p-plot__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
  .p-plot__skeleton { position: absolute; inset: 14px 16px 28px 58px; display: grid; align-content: space-between; }
  .p-plot__skeleton span { height: 1px; background: var(--grid); }
  .p-plot__skeleton::after {
    content: ""; position: absolute; inset: 0; border-radius: 6px;
    background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--accent) 8%, transparent) 50%, transparent 80%);
    background-size: 200% 100%; animation: p-shimmer 1.4s linear infinite;
  }
  .pulsar.is-ready .p-plot__skeleton { display: none; }
  @keyframes p-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

  .p-plot .grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
  .p-plot .grid line.is-base { stroke: var(--line-2); }
  .p-plot .band { fill: rgba(150, 168, 255, .028); }
  .pulsar[data-theme="light"] .p-plot .band { fill: rgba(22, 32, 84, .028); }
  .p-plot .ytick, .p-plot .xtick { font: 400 11px/1 var(--mono); fill: var(--ink-3); letter-spacing: -.02em; }
  .p-plot .xtick.is-strong { fill: var(--ink-2); }
  .p-plot .s-area { fill: url(#p-area-grad); }
  .p-plot .s-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--accent-glow)); }
  .p-plot .s-line.is-partial { stroke-dasharray: 3 4; filter: none; opacity: .9; }
  .p-plot .s-prev { fill: none; stroke: var(--prev); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .p-plot .s-target { stroke: var(--target); stroke-width: 1.2; stroke-dasharray: 5 5; fill: none; shape-rendering: crispEdges; }
  .p-plot .s-target-label { font: 500 10.5px/1 var(--mono); fill: var(--target); letter-spacing: .02em; paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
  .p-plot .series { transition: opacity .3s; }
  .p-plot .series.is-off { opacity: 0; }
  .p-plot .now-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
  .p-now-ping {
    position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none;
    border: 1.5px solid var(--accent); opacity: 0; will-change: transform, opacity;
  }
  .pulsar.is-live .p-now-ping.is-on { animation: p-ping 2.4s var(--ease) infinite; }
  .p-plot .xhair { pointer-events: none; transition: opacity .15s; }
  .p-plot .xhair line { stroke: var(--ink-3); stroke-width: 1; stroke-opacity: .7; shape-rendering: crispEdges; }
  .p-plot .xhair circle { stroke: var(--surface); stroke-width: 2; }
  .p-plot .xhair .h-cur { fill: var(--accent); }
  .p-plot .xhair .h-prev { fill: var(--prev); }
  .p-plot .brush { fill: var(--accent-soft); stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 1; shape-rendering: crispEdges; }
  .p-plot .brush-label { font: 500 10.5px/1 var(--mono); fill: var(--ink); }
  .p-plot .brush-pill { fill: var(--surface-3); stroke: var(--line-2); }

  .p-xtip {
    position: absolute; top: 8px; left: 0; z-index: 3; min-width: 196px; padding: 10px 12px; border-radius: 12px; pointer-events: none;
    background: color-mix(in srgb, var(--surface-2) 92%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-pop); font-size: 12.5px;
    transition: transform .12s ease-out, opacity .15s;
  }
  .p-xtip__date { margin-bottom: 8px; font: 500 11.5px/1.2 var(--mono); color: var(--ink-3); letter-spacing: -.01em; }
  .p-xtip__row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 8px; padding: 3px 0; }
  .p-xtip__key { width: 12px; height: 0; border-top: 2px solid var(--accent); border-radius: 2px; }
  .p-xtip__row--prev .p-xtip__key { border-top-color: var(--prev); }
  .p-xtip__row--target .p-xtip__key { border-top: 2px dashed var(--target); }
  .p-xtip__row--sofar .p-xtip__v { font-size: 12px; font-weight: 500; color: var(--ink-2); }
  .p-xtip__v { font: 600 13.5px/1.2 var(--mono); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
  .p-xtip__l { color: var(--ink-3); font-size: 12px; text-align: right; white-space: nowrap; }
  .p-xtip .p-delta { margin-top: 8px; }
  .p-xtip__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
  .p-xtip__foot .p-delta { margin: 0; }

  .p-plot__table { height: 300px; overflow: auto; margin-top: 4px; border-radius: 10px; border: 1px solid var(--line); }
  .p-plot__table table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .p-plot__table th, .p-plot__table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
  .p-plot__table thead th { position: sticky; top: 0; background: var(--surface-2); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .p-plot__table td.p-num, .p-plot__table th.p-num { text-align: right; }
  .p-plot__hint { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
  .p-plot__hint .p-ico { width: 15px; height: 15px; }

  /* ------------------------------------------------------------ live feed */
  .p-feed { display: flex; flex-direction: column; overflow: hidden; contain: size; min-height: 360px; }
  .p-feed .p-card__head { margin-bottom: 8px; }
  .p-feed__rate { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); white-space: nowrap; padding-top: 3px; }
  .p-feed__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
  .pulsar:not(.is-live) .p-feed__pulse { background: var(--ink-3); box-shadow: none; }
  .p-feed__list { position: relative; flex: 1; display: flex; flex-direction: column; margin: 0 -8px; min-height: 0; overflow: hidden; }
  .p-feed__fade { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 64px; border-radius: 0 0 var(--r) var(--r); background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
  .p-ev { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; gap: 11px; padding: 9px 8px; border-radius: 11px; transition: background .4s; }
  .p-ev.is-new { animation: p-evin .65s var(--ease), p-evbg 1.8s ease-out; overflow: hidden; }
  .p-ev.is-new .p-ev__ico { animation: p-evping 1.4s var(--ease); }
  @keyframes p-evin { from { max-height: 0; padding-top: 0; padding-bottom: 0; } to { max-height: 96px; } }
  @keyframes p-evbg { from, 35% { background: var(--accent-soft); } }
  @keyframes p-evping { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 100% { box-shadow: 0 0 0 10px transparent; } }
  .p-ev__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); }
  .p-ev__ico .p-ico { width: 16px; height: 16px; }
  .p-ev[data-type="sub"] .p-ev__ico, .p-ev[data-type="upgrade"] .p-ev__ico { color: var(--good); background: var(--good-soft); }
  .p-ev[data-type="cancel"] .p-ev__ico, .p-ev[data-type="refund"] .p-ev__ico { color: var(--bad); background: var(--bad-soft); }
  .p-ev[data-type="trial"] .p-ev__ico { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
  .p-ev__body { display: grid; gap: 1px; min-width: 0; }
  .p-ev__title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
  .p-ev__detail { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-ev__qty { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
  .p-ev__who { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-ev__side { display: grid; justify-items: end; gap: 3px; }
  .p-ev__amt { font: 500 12.5px/1.2 var(--mono); letter-spacing: -.03em; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .p-ev__amt small { font-size: 10px; color: var(--ink-3); letter-spacing: .02em; }
  .p-ev__amt.is-pos { color: var(--good); }
  .p-ev__amt.is-neg { color: var(--bad); }
  .p-ev__time { font: 400 11px/1.2 var(--mono); color: var(--ink-3); white-space: nowrap; }

  /* ------------------------------------------------------------ cohorts */
  .p-cohorts { grid-column: span 6; }
  .p-devices { grid-column: span 3; }
  .p-cities { grid-column: span 3; }
  .p-scale { display: inline-flex; align-items: center; gap: 6px; font: 400 10.5px/1 var(--mono); color: var(--ink-3); white-space: nowrap; padding-top: 3px; }
  .p-scale i { width: 56px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--heat-0), var(--accent)); }
  .p-cohort__wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
  .p-cohort { width: 100%; min-width: 460px; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
  .p-cohort th, .p-cohort td { height: 30px; padding: 0 4px; text-align: center; white-space: nowrap; }
  .p-cohort thead th { height: 22px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .p-cohort thead th:first-child, .p-cohort tbody th { text-align: left; }
  .p-cohort tbody th { font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding-right: 8px; text-transform: capitalize; }
  .p-cohort .p-cohort__n { font: 400 11.5px/1 var(--mono); color: var(--ink-3); text-align: right; padding-right: 8px; }
  .p-cohort td[style] {
    border-radius: 6px; font: 500 11.5px/1 var(--mono); letter-spacing: -.03em; color: var(--ink);
    background: color-mix(in oklab, var(--accent) calc(var(--v) * 88%), var(--heat-0));
    transition: transform .2s var(--ease), box-shadow .2s, background-color .4s;
    cursor: default;
  }
  .p-cohort td.is-hi { color: var(--accent-ink); }
  .pulsar[data-theme="light"] .p-cohort td[style] { color: var(--ink); }
  .pulsar[data-theme="light"] .p-cohort td.is-hi { color: #fff; }
  .p-cohort td[style]:hover { transform: scale(1.08); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent); position: relative; z-index: 1; }
  .p-cohort td.is-base { border-radius: 6px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); background: var(--surface-2); }
  .p-cohort td.is-empty { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--grid) 4px 5px); border-radius: 6px; opacity: .6; }
  .p-cohort.is-anim td[style] { animation: p-cell .5s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 18ms); }
  @keyframes p-cell { from { opacity: 0; transform: scale(.85); } }

  /* ------------------------------------------------------------ donut */
  .p-donut { position: relative; width: min(100%, 176px); margin: 0 auto 16px; aspect-ratio: 1; }
  .p-donut__svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .p-donut__track { fill: none; stroke: var(--surface-2); stroke-width: 15; }
  .p-donut__seg { fill: none; stroke-width: 15; transition: stroke-width .3s var(--ease), stroke-dasharray .9s var(--ease), stroke-dashoffset .9s var(--ease), opacity .3s; cursor: pointer; }
  .p-donut__seg[data-i="0"] { stroke: var(--d1); }
  .p-donut__seg[data-i="1"] { stroke: var(--d2); }
  .p-donut__seg[data-i="2"] { stroke: var(--d3); }
  .p-donut.is-hover .p-donut__seg { opacity: .35; }
  .p-donut.is-hover .p-donut__seg.is-on { opacity: 1; stroke-width: 19; }
  .p-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
  .p-donut__center strong { font: 650 26px/1 var(--sans); letter-spacing: -.04em; }
  .p-donut__center span { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
  .p-legend2 { display: grid; gap: 4px; }
  .p-legend2 li {
    display: grid; grid-template-columns: 10px 18px 1fr auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px;
    font-size: 13px; cursor: default; transition: background .2s;
  }
  .p-legend2 li:hover, .p-legend2 li.is-on { background: var(--surface-2); }
  .p-legend2 .p-ico { width: 16px; height: 16px; color: var(--ink-3); }
  .p-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--d1); }
  .p-legend2 li[data-i="1"] .p-swatch { background: var(--d2); }
  .p-legend2 li[data-i="2"] .p-swatch { background: var(--d3); }
  .p-legend2__name { color: var(--ink-2); }
  .p-legend2__val { font: 600 13px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .p-legend2__sub { min-width: 44px; text-align: right; font: 400 11.5px/1 var(--mono); color: var(--ink-3); }

  /* ------------------------------------------------------------ bars (cities) */
  .p-bars { display: grid; gap: 4px; counter-reset: city; }
  .p-bars li {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name val share" "bar bar bar";
    align-items: center; gap: 6px 10px; padding: 7px 8px 8px; border-radius: 9px; transition: background .2s;
  }
  .p-bars li:hover { background: var(--surface-2); }
  .p-bars__name { grid-area: name; font-size: 13px; color: var(--ink-2); }
  .p-bars__val { grid-area: val; font: 600 12.5px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .p-bars__share { grid-area: share; min-width: 44px; text-align: right; font: 400 11.5px/1 var(--mono); color: var(--ink-3); }
  .p-bars__track { grid-area: bar; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
  .p-bars__fill { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 0 3px 3px 0; background: var(--accent); transform-origin: left; transition: width .8s var(--ease); }
  .p-bars.is-anim .p-bars__fill { animation: p-grow .9s var(--ease) backwards; animation-delay: calc(var(--i) * 60ms); }
  @keyframes p-grow { from { transform: scaleX(0); } }

  /* ------------------------------------------------------------ products table */
  .p-products { padding-bottom: 8px; }
  .p-t__wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: thin; }
  .p-t { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; }
  .p-t th, .p-t td { height: 52px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
  .p-t thead th { height: 36px; border-bottom-color: var(--line-2); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: left; }
  .p-t thead th.p-num { text-align: right; }
  .p-t tbody tr { transition: background .2s; }
  .p-t tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
  .p-t tbody tr:last-child th, .p-t tbody tr:last-child td { border-bottom: 0; }
  .p-t tbody tr.is-focus { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); animation: p-rowflash 2.2s var(--ease); }
  @keyframes p-rowflash { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
  .p-t__rank { width: 36px; color: var(--ink-3); font: 400 12px/1 var(--mono); padding-right: 0 !important; }
  .p-t__name { text-align: left; font-weight: 400; }
  .p-t__prod { display: block; font-weight: 600; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
  .p-t__cat { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
  .p-t__rev { color: var(--ink); font-weight: 600; }
  .p-t td.p-num { color: var(--ink-2); font-size: 13px; }
  .p-t td.p-t__rev { color: var(--ink); }
  .p-t__trend { width: 96px; }
  .p-t__trend svg { display: block; width: 72px; height: 22px; overflow: visible; }
  .p-t__trend path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .p-sort {
    display: inline-flex; align-items: center; gap: 4px; height: 28px; margin: 0 -6px; padding: 0 6px; border-radius: 7px;
    font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; transition: color .2s, background .2s;
  }
  .p-sort:hover { color: var(--ink); background: var(--surface-2); }
  .p-num .p-sort { flex-direction: row-reverse; }
  .pulsar .p-sort__ico { width: 14px; height: 14px; opacity: .55; stroke-width: 1.8; }
  .p-sort__ico path { transition: opacity .2s, transform .25s var(--ease); }
  th[aria-sort="ascending"] .p-sort, th[aria-sort="descending"] .p-sort { color: var(--accent); }
  th[aria-sort="ascending"] .p-sort__ico, th[aria-sort="descending"] .p-sort__ico { opacity: 1; }
  th[aria-sort="descending"] .p-sort__ico .s-up, th[aria-sort="ascending"] .p-sort__ico .s-dn { opacity: .22; }

  /* ------------------------------------------------------------ channels */
  .p-channels { grid-column: span 5; }
  .p-funnel { grid-column: span 7; }
  .p-keys { display: inline-flex; gap: 12px; font-size: 11.5px; color: var(--ink-3); padding-top: 3px; white-space: nowrap; }
  .p-keys span { display: inline-flex; align-items: center; gap: 6px; }
  .p-keys span::before { content: ""; width: 10px; height: 8px; border-radius: 2px; background: var(--accent); }
  .p-keys .p-keys__prev::before { height: 3px; background: var(--prev); }
  .pulsar:not(.is-compare) .p-keys__prev { display: none; }
  .p-ch { display: grid; gap: 2px; }
  .p-ch li {
    display: grid; grid-template-columns: minmax(110px, 1.1fr) minmax(0, 2fr) auto 74px; align-items: center; gap: 12px;
    padding: 9px 8px; border-radius: 9px; outline: none; transition: background .2s;
  }
  .p-ch li:hover, .p-ch li:focus-visible { background: var(--surface-2); }
  .p-ch li:focus-visible { box-shadow: 0 0 0 2px var(--accent) inset; }
  .p-ch__name { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-ch__bar { position: relative; height: 14px; }
  .p-ch__fill {
    position: absolute; left: 0; top: 0; height: 10px; width: calc(var(--w) * 100%); border-radius: 0 4px 4px 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent), var(--accent));
    transition: width .8s var(--ease); transform-origin: left;
  }
  .p-ch__prev { position: absolute; left: 0; top: 12px; height: 3px; width: calc(var(--pw) * 100%); border-radius: 0 2px 2px 0; background: var(--prev); transition: width .8s var(--ease), opacity .3s; }
  .pulsar:not(.is-compare) .p-ch__prev { opacity: 0; }
  .p-ch.is-anim .p-ch__fill, .p-ch.is-anim .p-ch__prev { animation: p-grow .9s var(--ease) backwards; animation-delay: calc(var(--i) * 60ms); }
  .p-ch__val { font: 600 13px/1 var(--mono); letter-spacing: -.03em; text-align: right; font-variant-numeric: tabular-nums; }
  .p-ch .p-delta { justify-self: end; }

  /* ------------------------------------------------------------ funnel */
  .p-funnel__total { display: grid; justify-items: end; gap: 3px; }
  .p-funnel__total strong { font: 650 22px/1 var(--sans); letter-spacing: -.035em; }
  .p-funnel__total span { font-size: 11.5px; color: var(--ink-3); }
  .p-fn { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
  .p-fn li { position: relative; display: grid; gap: 10px; outline: none; border-radius: 10px; }
  .p-fn li:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
  .p-fn__col { position: relative; height: 188px; border-radius: 10px; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--grid) 5px 6px), var(--surface-2); overflow: hidden; }
  .p-fn__fill {
    position: absolute; left: 0; right: 0; bottom: 0; height: max(4px, calc(var(--h) * 100%)); border-radius: 10px 10px 4px 4px;
    background: var(--f1); transition: height .9s var(--ease), filter .2s; transform-origin: bottom;
  }
  .p-fn li[data-i="1"] .p-fn__fill { background: var(--f2); }
  .p-fn li[data-i="2"] .p-fn__fill { background: var(--f3); }
  .p-fn li[data-i="3"] .p-fn__fill { background: var(--f4); }
  .p-fn li[data-i="4"] .p-fn__fill { background: var(--f5); box-shadow: 0 0 22px -4px var(--accent-glow); }
  .p-fn li:hover .p-fn__fill { filter: brightness(1.12); }
  .p-fn.is-anim .p-fn__fill { animation: p-growy .9s var(--ease) backwards; animation-delay: calc(var(--i) * 80ms); }
  @keyframes p-growy { from { transform: scaleY(0); } }
  .p-fn__meta { display: grid; gap: 3px; min-width: 0; }
  .p-fn__name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-fn__val { font: 600 15px/1.1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  .p-fn__pct { font: 400 11.5px/1 var(--mono); color: var(--ink-3); }
  .p-fn__step {
    position: absolute; left: -16px; top: 30%; z-index: 1; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px 0 5px;
    border-radius: 99px; background: var(--surface-3); box-shadow: 0 0 0 3px var(--surface); font: 500 11px/1 var(--mono); color: var(--ink); white-space: nowrap;
  }
  .p-fn__step .p-ico { width: 12px; height: 12px; color: var(--accent); }

  /* ------------------------------------------------------------ tooltip */
  .p-tip {
    position: fixed; left: 0; top: 0; z-index: 950; max-width: 260px; padding: 8px 10px; border-radius: 10px; pointer-events: none;
    background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.4;
    transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap;
  }
  .p-tip strong { font: 600 13px/1.2 var(--mono); letter-spacing: -.03em; }
  .p-tip span { color: var(--ink-3); }
  .p-tip .p-tip__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

  /* ------------------------------------------------------------ command palette */
  .p-cmdk, .p-sheet { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
  .p-cmdk { width: min(640px, calc(100vw - 24px)); margin: max(9vh, 64px) auto auto; }
  .p-cmdk::backdrop, .p-sheet::backdrop { background: rgba(5, 7, 15, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .p-cmdk[open] { animation: p-dlg .28s var(--ease); }
  .p-cmdk[open]::backdrop { animation: p-fade .25s ease; }
  @keyframes p-dlg { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
  @keyframes p-fade { from { opacity: 0; } }
  .p-cmdk__box { overflow: hidden; border-radius: 18px; background: var(--surface-2); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2); font-family: var(--sans); }
  .p-cmdk__field { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--line); }
  .p-cmdk__field > .p-ico { width: 20px; height: 20px; color: var(--accent); }
  .p-cmdk__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--ink); }
  .p-cmdk__input::placeholder { color: var(--ink-3); }
  .p-cmdk__list { max-height: min(420px, 56vh); overflow-y: auto; padding: 6px 8px 8px; overscroll-behavior: contain; scroll-padding: 8px; }
  .p-cmdk__group { padding: 12px 10px 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .p-cmdk__opt {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 10px; border-radius: 11px; cursor: pointer;
    color: var(--ink-2); scroll-margin: 8px;
  }
  .p-cmdk__opt .p-cmdk__ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--ink-2); }
  .p-cmdk__opt .p-cmdk__ico .p-ico { width: 16px; height: 16px; }
  .p-cmdk__txt { display: grid; min-width: 0; flex: 1; gap: 1px; }
  .p-cmdk__name { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-cmdk__name mark { background: none; color: var(--accent); font-weight: 700; }
  .p-cmdk__hint { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-cmdk__tag { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .p-cmdk__go { width: 16px; height: 16px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease); }
  .p-cmdk__opt[aria-selected="true"] { background: var(--surface-3); }
  .p-cmdk__opt[aria-selected="true"] .p-cmdk__ico { background: var(--accent); color: var(--accent-ink); }
  .p-cmdk__opt[aria-selected="true"] .p-cmdk__go { opacity: 1; transform: none; }
  .p-cmdk__empty { display: grid; justify-items: center; gap: 10px; padding: 34px 20px 38px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
  .p-cmdk__empty svg { width: 120px; height: 44px; color: var(--accent); }
  .p-cmdk__empty path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
  .p-cmdk__empty strong { color: var(--ink); font-weight: 600; font-size: 14.5px; }
  .p-cmdk__foot { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
  .p-cmdk__foot span { display: inline-flex; align-items: center; gap: 6px; }
  .p-cmdk__foot .p-kbd { min-width: 18px; height: 18px; font-size: 10.5px; }
  .p-cmdk__brand { margin-left: auto; font: 600 12px/1 var(--sans); color: var(--ink-2); }

  /* ------------------------------------------------------------ settings sheet */
  .p-sheet { width: min(460px, 100vw); height: 100%; margin: 0 0 0 auto; }
  .p-sheet[open] { animation: p-sheetin .38s var(--ease); }
  .p-sheet[open]::backdrop { animation: p-fade .3s ease; }
  @keyframes p-sheetin { from { transform: translateX(40px); opacity: 0; } }
  .p-sheet__box { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .6); font-family: var(--sans); }
  .p-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
  .p-sheet__head h3 { font: 700 20px/1.2 var(--sans); letter-spacing: -.03em; }
  .p-sheet__head p { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
  .p-sheet__body { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 24px; padding: 22px; }
  .p-fs { border: 0; display: grid; gap: 14px; min-width: 0; }
  .p-fs legend { margin-bottom: 4px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .p-field { display: grid; gap: 7px; }
  .p-field__label { font-size: 13.5px; font-weight: 600; }
  .p-field__hint { font-size: 12px; color: var(--ink-3); }
  .p-input, .p-select { position: relative; display: flex; align-items: center; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
  .p-input:focus-within, .p-select:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .p-input__pre { padding: 0 2px 0 14px; color: var(--ink-3); font-family: var(--mono); }
  .p-input input { flex: 1; min-width: 0; height: 100%; padding: 0 14px 0 6px; border: 0; outline: none; background: transparent; font: 500 14px/1 var(--mono); }
  .p-input input:invalid { color: var(--bad); }
  .p-select select { appearance: none; width: 100%; height: 100%; padding: 0 40px 0 14px; border: 0; outline: none; background: transparent; font-size: 14px; cursor: pointer; }
  .p-select select option { background: var(--surface-2); color: var(--ink); }
  .p-select .p-ico { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
  .p-check { position: relative; display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; line-height: 1.4; }
  .p-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
  .p-check__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface-2); transition: background .2s, border-color .2s; }
  .p-check__box .p-ico { width: 14px; height: 14px; stroke-width: 2.4; color: var(--accent-ink); opacity: 0; transform: scale(.5); transition: opacity .15s, transform .3s var(--spring); }
  .p-check input:checked + .p-check__box { background: var(--accent); border-color: var(--accent); }
  .p-check input:checked + .p-check__box .p-ico { opacity: 1; transform: none; }
  .p-check input:focus-visible + .p-check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
  .p-sheet__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .p-sheet__foot .p-btn { height: 40px; padding: 0 16px; }

  /* ------------------------------------------------------------ toasts */
  .p-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
  .p-toast {
    display: flex; align-items: center; gap: 10px; max-width: min(380px, calc(100vw - 32px)); padding: 11px 14px 11px 12px; border-radius: 13px;
    background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-pop); font-size: 13.5px; pointer-events: auto;
    animation: p-toast .45s var(--spring);
  }
  .p-toast .p-ico { width: 18px; height: 18px; color: var(--good); }
  .p-toast.is-out { animation: p-toastout .3s var(--ease) forwards; }
  @keyframes p-toast { from { opacity: 0; transform: translateY(14px) scale(.96); } }
  @keyframes p-toastout { to { opacity: 0; transform: translateY(8px) scale(.97); } }

  /* ------------------------------------------------------------ view transition (theme) */
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

  /* ------------------------------------------------------------ responsive */
  @media (max-width: 1380px) {
    .p-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .p-kpi { grid-column: span 2; }
    .p-kpi:nth-child(n + 4) { grid-column: span 3; }
    .p-cohorts { grid-column: span 12; }
    .p-devices, .p-cities { grid-column: span 6; }
    .p-devices { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 24px; }
    .p-devices .p-card__head { grid-column: 1 / -1; }
    .p-devices .p-donut { width: 156px; margin: 0; }
    .p-devices .p-legend2 { align-content: center; }
    .p-channels, .p-funnel { grid-column: span 12; }
  }
  @media (max-width: 1180px) {
    .p-chart, .p-feed { grid-column: span 12; }
    .p-feed { contain: none; min-height: 0; height: 420px; }
    .p-insight { max-width: 380px; }
  }
  @media (max-width: 1023px) {
    .pulsar { grid-template-columns: minmax(0, 1fr); }
    .p-side {
      position: fixed; left: 0; top: var(--fs-bar-h); bottom: 0; height: auto; width: min(300px, 86vw); z-index: 60;
      transform: translateX(-104%); transition: transform .42s var(--ease), box-shadow .42s; visibility: hidden;
    }
    .pulsar.is-drawer .p-side { transform: none; visibility: visible; box-shadow: 30px 0 80px -20px rgba(0, 0, 0, .6); }
    .p-side.is-anim { visibility: visible; }
    .p-side .p-side__close { display: inline-grid; }
    .p-nav__a.is-active::before { left: -12px; }
    .p-scrim { position: fixed; inset: var(--fs-bar-h) 0 0; z-index: 55; background: rgba(5, 7, 15, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: p-fade .3s; }
    .p-top .p-top__menu { display: inline-grid; margin-left: -6px; }
    .pulsar.is-loading .p-content::before { left: 0; }
  }
  @media (max-width: 900px) {
    .p-head { flex-direction: column; align-items: stretch; }
    .p-insight { max-width: none; }
    .p-switch__label { display: none; }
  }
  @media (max-width: 760px) {
    .pulsar { --top-h: 100px; }
    .p-top { flex-wrap: wrap; height: auto; padding: 8px 16px 10px; gap: 8px 6px; }
    .p-search { order: 0; flex: 1; height: 36px; padding: 0 8px 0 11px; }
    .p-search__ph { font-size: 13px; }
    .p-search__keys { display: none; }
    .p-top__tools { display: contents; }
    .p-seg { order: 5; flex: 1; }
    .p-seg__btn { flex: 1; min-width: 0; }
    .p-switch { order: 6; padding: 0 2px 0 6px; }
    .p-switch__label { display: inline; font-size: 12.5px; }
    .p-live { order: 1; width: 36px; padding: 0; justify-content: center; }
    .p-live__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .p-theme { order: 2; }
    .p-me { order: 3; }
    .p-avatar { width: 32px; height: 32px; }
    .p-content { padding: 18px 16px 56px; gap: 26px; }
    .p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .p-kpi, .p-kpi:nth-child(n + 4) { grid-column: span 1; }
    .p-kpi:first-child { grid-column: span 2; }
    .p-kpi { padding: 13px 13px 0; }
    .p-kpi__spark { width: calc(100% + 26px); margin: 4px -13px 0; height: 32px; }
    .p-kpi__value { font-size: 22px; }
    .p-kpi:first-child .p-kpi__value { font-size: 28px; }
    .p-kpi__vs { display: none; }
    .p-card { padding: 16px 16px 18px; }
    .p-chart__head { gap: 10px; }
    .p-chart__tools { justify-content: flex-start; width: 100%; }
    .p-legend { flex: 1; }
    .p-lg { padding: 0 7px; font-size: 12px; }
    .p-plot { height: 236px; margin: 2px -4px 0; }
    .p-plot__table { height: 236px; }
    .p-devices { display: block; }
    .p-devices .p-donut { width: min(100%, 170px); margin: 0 auto 14px; }
    .p-devices, .p-cities { grid-column: span 12; }
    .p-t__wrap { margin: 0 -16px; padding: 0 16px; }
    .p-ch li { grid-template-columns: minmax(0, 1fr) auto 66px; grid-template-areas: "name val delta" "bar bar bar"; gap: 6px 10px; }
    .p-ch__name { grid-area: name; }
    .p-ch__bar { grid-area: bar; }
    .p-ch__val { grid-area: val; }
    .p-ch .p-delta { grid-area: delta; }
    .p-fn { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .p-fn li { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .p-fn__col { height: 32px; order: 2; background: var(--surface-2); }
    .p-fn__fill { top: 0; bottom: 0; right: auto; height: auto; width: max(6px, calc(var(--h) * 100%)); border-radius: 4px 8px 8px 4px; }
    .p-fn.is-anim .p-fn__fill { animation-name: p-grow; transform-origin: left; }
    .p-fn__meta { order: 1; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; }
    .p-fn__step { position: static; justify-self: start; order: 0; margin: 4px 0 2px; box-shadow: none; }
    .p-fn li:first-child .p-fn__meta { margin-top: 0; }
    .p-toasts { left: 16px; right: 16px; bottom: 16px; justify-items: center; }
    .p-cmdk { margin-top: 12px; }
    .p-cmdk__foot span:not(.p-cmdk__brand) { display: none; }
    .p-cmdk__brand { margin-left: 0; }
  }
  @media (max-width: 560px) {
    .p-cohort { min-width: 0; border-spacing: 2px; }
    .p-cohort th:nth-child(2), .p-cohort td.p-cohort__n { display: none; }
    .p-cohort th, .p-cohort td { height: 28px; padding: 0 2px; }
    .p-cohort td[style], .p-cohort td.is-base { font-size: 10.5px; letter-spacing: -.05em; }
    .p-cohort tbody th { font-size: 12px; padding-right: 4px; }
    .p-t { min-width: 0; }
    .p-t th:nth-child(3), .p-t td:nth-child(3), .p-t th:nth-child(4), .p-t td:nth-child(4),
    .p-t th:nth-child(6), .p-t td:nth-child(6), .p-t th:nth-child(7), .p-t td:nth-child(7) { display: none; }
    .p-t th, .p-t td { padding: 0 6px; }
    .p-t__prod { max-width: 46vw; }
    .p-t__rank { width: 22px; }
  }
  @media (max-width: 400px) {
    .p-search__ph { display: none; }
    .p-search { flex: 0 0 auto; width: 40px; justify-content: center; padding: 0; }
    .p-top { justify-content: space-between; }
    .p-top::before { content: ""; order: 0; flex: 1; }
    .p-top .p-top__menu { order: -1; }
  }
  @media (hover: none) {
    .p-kpi:hover { transform: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .pulsar *, .pulsar *::before, .pulsar *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .p-mark__beams, .p-live.is-on .p-live__dot::before, .p-live.is-on .p-live__dot::after, .p-plot .now-ping { animation: none !important; }
  }
}
