  /* Moldura escura com a marca à esquerda; conteúdo em fundo paper com cards cinza. Tema único, claro, por escolha. */
  :root {
    --bg: #F4F3EF; --card: #E5E3DE; --card-hi: #EDEBE7; --card-lo: #DAD7D1; --line: #CFCCC5;
    --ink: #202020; --ink-2: #4A4844; --ink-3: #66635D; --ink-4: #99958D;
    --side: #202020; --side-fg: #FFFFFF; --side-mute: #A5A29B; --side-hi: rgba(255,255,255,.1);
    --coral: #FF6F5E; --prev: #8F8B84;
    --good: #0B6B3C; --good-bg: #C9E3D2; --bad: #A8201A; --bad-bg: #F2CDC8; --warn: #6F4500; --warn-bg: #EDD9B0; --warn-dot: #C98A00;
    --c-meta: #1F6FD0; --c-google: #A87200; --c-tiktok: #5B4BC4;
    --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --r: 14px; --sw: 232px;
  }
  * { box-sizing: border-box; }
  html { scroll-padding-top: 130px; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
  button, input, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  h1, h2, h3, h4, p { margin: 0; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  .side { position: fixed; inset: 0 auto 0 0; width: var(--sw); background: var(--side); color: var(--side-fg); display: flex; flex-direction: column; padding: 22px 14px 16px; z-index: 30; overflow-y: auto; }
  .brand { margin: 2px 10px 24px; line-height: 0; } .brand__w { height: 24px; width: auto; display: block; } .brand__s { height: 26px; width: auto; display: none; }
  .client { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
  .client i { width: 30px; height: 30px; border-radius: 8px; background: var(--coral); color: var(--side); display: grid; place-items: center; font: 700 12px var(--font); flex: none; }
  .client b { font-weight: 600; font-size: 13.5px; display: block; line-height: 1.25; }
  .client small { color: var(--side-mute); font-size: 11.5px; }
  .client select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
  .client svg { margin-left: auto; width: 14px; height: 14px; color: var(--side-mute); flex: none; }
  .nav { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
  .nav span { padding: 0 10px 6px; color: var(--side-mute); font-size: 11.5px; font-weight: 500; }
  .nav span + a ~ span { margin-top: 16px; }
  .nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: #C9C6BF; text-decoration: none; font-weight: 500; font-size: 13.5px; }
  .nav a:hover { background: rgba(255,255,255,.05); color: var(--side-fg); }
  .nav a[aria-current="page"] { background: var(--side-hi); color: var(--side-fg); }
  .nav a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
  .nav.sys { margin-top: auto; padding-top: 20px; }
  .nav.sys button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #C9C6BF; font: inherit; font-weight: 500; font-size: 13.5px; text-align: left; cursor: pointer; white-space: nowrap; }
  .nav.sys button:hover { background: rgba(255,255,255,.05); color: var(--side-fg); }
  .nav.sys svg { width: 16px; height: 16px; flex: none; }
  .nav.sys small { margin-left: auto; color: var(--side-mute); font-size: 11.5px; font-weight: 400; }
  .nav.sys + .side__foot { margin-top: 12px; }
  .nav svg { width: 16px; height: 16px; flex: none; }
  .side__foot { margin-top: auto; padding: 14px 10px 0; color: var(--side-mute); font-size: 12px; line-height: 1.45; }

  .main { margin-left: var(--sw); min-width: 0; }
  .wrap { max-width: 1280px; margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
  .bar__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 16px; }
  .bar h1 { font-size: 22px; font-weight: 600; letter-spacing: -.022em; margin-right: auto; white-space: nowrap; }
  .bar__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding-top: 8px; }
  .anchors { display: flex; gap: 22px; margin-right: auto; overflow-x: auto; }
  .anchors button { padding: 8px 0 11px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
  .anchors button:hover { color: var(--ink); }
  .anchors button.on { color: var(--ink); border-bottom-color: var(--ink); }
  .ctl { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-weight: 500; font-size: 13px; white-space: nowrap; }
  .ctl svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
  .ctl small { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
  .ctl select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
  /* Seletor de período: atalhos e calendário */
  .per { position: relative; }
  .per > .ctl { cursor: pointer; font-family: inherit; color: inherit; }
  .per > .ctl[aria-expanded="true"] { border-color: var(--ink); }
  .pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,.18); overflow: hidden; }
  .pop__pre { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); min-width: 158px; }
  .pop__pre span { padding: 2px 10px 8px; color: var(--ink-3); font-size: 12px; }
  .pop__pre button { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; white-space: nowrap; }
  .pop__pre button:hover { background: var(--card); } .pop__pre button.on { background: var(--ink); color: #fff; }
  .pop__main { display: flex; flex-direction: column; }
  .pop__cal { display: flex; gap: 26px; padding: 16px 18px 6px; }
  .mo__h { display: flex; align-items: center; justify-content: space-between; height: 30px; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; text-transform: capitalize; }
  .mo__h button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; } .mo__h button:hover { background: var(--card); }
  .mo__h button:disabled { color: var(--ink-4); cursor: default; background: none; } .mo__h i { width: 30px; }
  .mo__g { display: grid; grid-template-columns: repeat(7, 36px); row-gap: 2px; }
  .mo__g small { height: 26px; display: grid; place-items: center; color: var(--ink-3); font-size: 11.5px; }
  .mo__g button { height: 34px; border: 0; background: none; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; border-radius: 8px; }
  .mo__g button:hover { background: var(--card); } .mo__g button:disabled { color: var(--ink-4); opacity: .55; cursor: default; background: none; }
  .mo__g button.in { background: var(--card); border-radius: 0; } .mo__g button.a, .mo__g button.b { background: var(--ink); color: #fff; font-weight: 600; }
  .mo__g button.a { border-radius: 8px 0 0 8px; } .mo__g button.b { border-radius: 0 8px 8px 0; } .mo__g button.a.b, .mo__g button.a.solo { border-radius: 8px; }
  .pop__foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px 14px; border-top: 1px solid var(--line); margin-top: 8px; }
  .pop__foot p { margin: 0 auto 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; } .pop__foot p b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; }
  .pop__foot button { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
  .pop__foot button.go { background: var(--ink); border-color: var(--ink); color: #fff; } .pop__foot button.go:disabled { opacity: .35; cursor: default; }
  .seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
  .seg button { height: 26px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
  .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .fchip { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 5px 0 10px; margin-bottom: 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; max-width: 280px; }
  .fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fchip button { width: 17px; height: 17px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 10px; line-height: 1; padding: 0; flex: none; }
  .fclear { border: 0; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 500; text-decoration: underline; margin-bottom: 8px; }

  main { display: flex; flex-direction: column; gap: 36px; padding-block: 26px 88px; }
  section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .card { background: var(--card); border-radius: var(--r); min-width: 0; }
  .pad { padding: 18px 20px; }
  .lbl { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
  .shead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .shead h2 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
  .shead .count { color: var(--ink-3); font-size: 13px; margin-right: auto; }
  .note { color: var(--ink-3); font-size: 12px; max-width: 90ch; }

  .summary { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .lead { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .lead p { font-size: 26px; line-height: 1.32; letter-spacing: -.024em; color: var(--ink-2); max-width: 31em; text-wrap: pretty; }
  .lead p b { color: var(--ink); font-weight: 600; white-space: nowrap; }
  .alerts { padding: 24px 26px 20px; display: flex; flex-direction: column; gap: 12px; }
  .alerts ul { list-style: none; margin: 0 -10px 0 0; padding: 0 10px 0 0; max-height: 216px; overflow-y: auto; }
  .alerts li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
  .alerts li[data-pick] { cursor: pointer; }
  .alerts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-dot); grid-row: 1 / span 2; }
  .alerts li b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .alerts li span { grid-column: 2; color: var(--ink-3); font-size: 12.5px; }
  .alerts li em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; }
  .ok { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; padding: 6px 10px 10px 0; }
  .ok::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--good-bg); color: var(--good); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }

  .chip { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--card-lo); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
  .chip.good { background: var(--good-bg); color: var(--good); }
  .chip.bad { background: var(--bad-bg); color: var(--bad); }
  .chip.warn { background: var(--warn-bg); color: var(--warn); }
  .chip.none { background: transparent; color: var(--ink-3); padding: 0; font-weight: 500; }
  .pill { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
  .pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.off { background: var(--card-lo); color: var(--ink-3); }

  /* Gráficos lado a lado */
  .charts { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .charts.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ch { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; }
  .ch__head { display: flex; flex-direction: column; gap: 3px; }
  .ch__val { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .ch__val strong { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
  .plot { position: relative; height: 128px; cursor: crosshair; }
  .plot.tall { height: 240px; }
  .plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .plot .grid { stroke: var(--line); stroke-width: 1; }
  .plot .ymax { position: absolute; left: 0; top: -2px; font-size: 11px; color: var(--ink-3); background: var(--card); padding-right: 6px; line-height: 1; }
  .plot .guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-4); display: none; pointer-events: none; }
  .plot .dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 2px solid var(--card); display: none; pointer-events: none; }
  .tip { position: absolute; top: 4px; pointer-events: none; display: none; min-width: 172px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; z-index: 5; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
  .tip h4 { font-size: 12px; font-weight: 500; color: #B9B6AF; margin-bottom: 5px; display: flex; justify-content: space-between; gap: 10px; }
  .tip div { display: flex; align-items: center; gap: 8px; padding: 1.5px 0; white-space: nowrap; } .tip div b { margin-left: auto; padding-left: 12px; font-weight: 600; }
  .tip div i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  .xax { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
  .legend span { display: inline-flex; align-items: center; gap: 7px; }
  .legend i { width: 14px; height: 0; border-top: 2px solid var(--coral); }
  .legend i.prev { border-top: 2px dashed var(--prev); }
  .strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip div { padding: 13px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
  .strip div + div { border-left: 1px solid var(--line); }
  .strip b { font-weight: 600; font-size: 15px; margin-left: auto; white-space: nowrap; }

  /* Tabelas roláveis, com cabeçalho fixo */
  .tw { max-height: 492px; overflow: auto; border-radius: var(--r); }
  table { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; }
  table.narrow { min-width: 0; }
  /* Resultados por canal: colunas juntas, sem largura mínima forçada, para caber sem rolagem lateral */
  [data-tw="canais"] table { min-width: 0; }
  [data-tw="canais"] th:first-child, [data-tw="canais"] td:first-child { width: 1%; white-space: nowrap; }
  [data-tw="canais"] .nm { min-width: 0; }
  th { position: sticky; top: 0; z-index: 2; background: var(--card); padding: 12px 10px 11px; text-align: right; font-size: 12px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
  th[data-sort] { cursor: pointer; } th[data-sort]:hover { color: var(--ink); }
  th[aria-sort] { color: var(--ink); } th[aria-sort="descending"]::after { content: ' ↓'; } th[aria-sort="ascending"]::after { content: ' ↑'; }
  th:first-child, td:first-child { text-align: left; padding-left: 20px; }
  th:last-child, td:last-child { padding-right: 20px; }
  td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; font-size: 13.5px; }
  tbody tr:last-child td { border-bottom: 0; }
  tbody tr[data-pick], tbody tr[data-open], tbody tr[data-go] { cursor: pointer; }
  tbody tr[data-pick]:hover, tbody tr[data-open]:hover, tbody tr[data-go]:hover { background: var(--card-hi); }
  tbody tr.sel { background: var(--card-hi); box-shadow: inset 3px 0 0 var(--ink); } tbody tr.dim td { opacity: .5; }
  tbody tr.sub td { background: var(--card-lo); font-size: 13px; padding-block: 9px; } tbody tr.sub td:first-child { padding-left: 38px; }
  .nm { display: flex; align-items: center; gap: 12px; white-space: normal; min-width: 200px; max-width: 360px; }
  .nm b { display: block; font-weight: 500; overflow-wrap: anywhere; line-height: 1.35; }
  .nm small { display: block; color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; line-height: 1.35; margin-top: 2px; }
  .nm .big { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
  .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
  .tag { padding: 1px 7px; border-radius: 5px; background: var(--card-lo); color: var(--ink-2); font-size: 11.5px; font-weight: 500; }
  .two { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .two b { font-weight: 600; }
  .share { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
  .share u { display: block; width: 84px; height: 5px; border-radius: 3px; background: var(--card-lo); text-decoration: none; flex: none; } .share u i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
  .share.res u i { background: var(--ink-3); }
  td svg.sp { width: 92px; height: 28px; display: block; margin-left: auto; }
  .muted { color: var(--ink-2); }
  .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
  .xbtn { height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: 12px; font-weight: 500; }
  .xbtn:hover { background: var(--card-hi); }
  .empty { padding: 26px; color: var(--ink-3); text-align: center; }
  .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .rank { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(60px, 140px) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
  .rank > span:first-child { color: var(--ink-3); font-weight: 600; } .rank b { font-weight: 600; white-space: nowrap; } .rank .nmx { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rank u { display: block; height: 5px; border-radius: 3px; background: var(--card-lo); } .rank u i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
  .health { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--card-lo); gap: 2px; }
  .health i { display: block; }
  .hcount { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; margin-top: 16px; }
  .hrow { display: flex; align-items: center; gap: 12px; } .hrow b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

  /* Criativos */
  .search { height: 34px; width: 220px; max-width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 13px; outline-offset: 0; }
  .gscroll { max-height: 700px; overflow-y: auto; padding: 6px 8px 6px 6px; margin: -6px -8px -6px -6px; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .cr { display: flex; flex-direction: column; padding: 0; border: 0; text-align: left; overflow: hidden; transition: transform .15s, box-shadow .15s; }
  .cr:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(32,32,32,.14); }
  .media { position: relative; aspect-ratio: 1 / 1; max-width: 100%; background: var(--card-lo); overflow: hidden; display: grid; place-items: center; }
  .media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .media .bg { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(22px) saturate(1.15); opacity: 0; }
  .media.low .bg { opacity: .9; }
  .media.low > img { position: relative; width: 52%; height: auto; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
  .media .rk { position: absolute; top: 10px; left: 10px; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(32,32,32,.8); color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
  .media .noimg { color: var(--ink-3); font-size: 12px; }
  .media.mini { width: 46px; border-radius: 8px; flex: none; }
  .cr__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
  .cr__name { font-size: 12.5px; font-weight: 500; line-height: 1.38; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
  .cr__hero { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .cr__hero strong { font-size: 20px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
  .cr__hero small { flex-basis: 100%; order: 3; margin-top: -4px; color: var(--ink-3); font-size: 11.5px; }
  .cr__foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); margin-top: auto; }
  .cr__foot span { display: block; color: var(--ink-3); font-size: 11.5px; } .cr__foot b { font-weight: 600; font-size: 13px; }

  .modal { position: fixed; inset: 0; z-index: 100; background: rgba(18,18,18,.74); display: grid; place-items: center; padding: 24px; }
  .sheet { width: min(1080px, 100%); max-height: 100%; background: var(--bg); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
  .sheet__media { position: relative; background: #111; display: grid; place-items: center; min-height: 480px; overflow: hidden; }
  .sheet__media .bg { position: absolute; inset: -15%; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2); opacity: .55; }
  .sheet__media img, .sheet__media video { position: relative; max-width: 100%; max-height: 86vh; object-fit: contain; display: block; }
  .sheet__media.low img { width: min(300px, 70%); height: auto; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  .sheet__media .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: center; color: rgba(255,255,255,.78); font-size: 12px; }
  .navb { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #202020; display: grid; place-items: center; font-size: 18px; z-index: 2; }
  .navb.pv { left: 14px; } .navb.nx { right: 14px; }
  .sheet__info { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
  .sheet__top { display: flex; align-items: center; color: var(--ink-3); font-size: 12.5px; }
  .sheet__top button { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
  .sheet h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; overflow-wrap: anywhere; }
  .path { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
  .path div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; } .path span { color: var(--ink-3); } .path b { font-weight: 500; overflow-wrap: anywhere; }
  .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
  .mgrid div { padding: 11px 14px; background: var(--card); display: flex; flex-direction: column; gap: 3px; }
  .mgrid b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .bars { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin-top: 8px; }
  .bars i { flex: 1; background: var(--coral); border-radius: 3px 3px 0 0; min-height: 2px; }
  .barsx { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

  @media (max-width: 1240px) {
    :root { --sw: 64px; } .side { padding: 20px 10px 16px; align-items: center; } .brand { margin: 0 0 18px; } .brand__w { display: none; } .brand__s { display: block; }
    .client { padding: 0; border: 0; background: none; } .client span, .client svg, .nav span, .side__foot { display: none; }
    .nav { width: 100%; margin-top: 16px; } .nav a, .nav.sys button { font-size: 0; gap: 0; justify-content: center; padding: 0; height: 40px; } .nav.sys button { width: 100%; } .nav.sys small { display: none; } .nav svg, .nav.sys svg { width: 18px; height: 18px; }
    .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
    .charts.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 1000px) { .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .summary, .pair { grid-template-columns: minmax(0, 1fr); gap: 16px; } .lead p { font-size: 22px; } }
  @media (max-width: 720px) {
    :root { --sw: 0px; } html { scroll-padding-top: 150px; }
    .side { position: static; width: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); overflow-x: auto; }
    .brand { margin: 0; } .nav { flex-direction: row; margin: 0; width: auto; gap: 4px; } .nav a, .nav.sys button { width: 40px; flex: none; } .nav.sys { margin: 0 0 0 auto; padding: 0; }
    .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
    .bar h1 { font-size: 19px; width: 100%; } .pop { position: fixed; left: 12px; right: 12px; top: 96px; flex-direction: column; max-height: calc(100vh - 110px); overflow-y: auto; } .pop__pre { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; padding: 10px; } .pop__pre span { display: none; } .pop__cal { flex-direction: column; align-items: center; gap: 14px; padding: 12px 8px 4px; } .pop__foot { flex-wrap: wrap; padding: 12px; } .pop__foot p { width: 100%; } .hcount { gap: 8px; } .hrow { gap: 4px 7px; flex-wrap: wrap; } .charts, .charts.n4, .strip { grid-template-columns: minmax(0, 1fr); } .strip div + div { border-left: 0; border-top: 1px solid var(--line); }
    .lead p { font-size: 19px; } .lead p b { white-space: normal; } .sheet { grid-template-columns: minmax(0, 1fr); overflow-y: auto; } .sheet__media { min-height: 280px; } .modal { padding: 12px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .search { width: 100%; } .rank { grid-template-columns: 16px minmax(0, 1fr) auto; } .rank u { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .cr { transition: none; } }
  [hidden] { display: none !important; }
  .nav.sys button[disabled] { opacity: .5; cursor: default; }
  .sheet__media video { width: 100%; }

  .playig { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 10px 18px; background: #FF5A4F; color: #fff; font: inherit; font-weight: 700; cursor: pointer; z-index: 2; }
  .igframe { width: 100%; height: 100%; min-height: 560px; border: 0; background: #fff; }
