.tp-layer {
  --tp-accent: #1769d1;
  --tp-ink: #172033;
  --tp-muted: #748094;
  --tp-line: #e5e9f0;
  --tp-bg: #f4f6f9;
  position: fixed;
  z-index: 2400;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}

.tp-layer *,
.tp-layer *::before,
.tp-layer *::after { box-sizing: border-box; }
.tp-layer.show { visibility: visible; opacity: 1; }
.tp-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(4,9,18,.72); backdrop-filter: blur(10px); }
.tp-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(1320px, calc(100% - 44px));
  height: min(920px, calc(100dvh - 44px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  color: var(--tp-ink);
  background: var(--tp-bg);
  box-shadow: 0 42px 130px rgba(0,0,0,.42);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 22px)) scale(.985);
  transition: opacity .24s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.tp-layer.show .tp-dialog { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.tp-dialog-top {
  z-index: 5;
  display: flex;
  min-height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  background: #0a0f1b;
}
.tp-dialog-top > span { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.tp-dialog-top > span i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52,211,153,.12),0 0 18px rgba(52,211,153,.7); }
.tp-dialog-top > div { display: flex; align-items: center; gap: 7px; }
.tp-dialog-top a { padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: rgba(255,255,255,.68); font-size: 9px; text-decoration: none; }
.tp-dialog-top button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 10px; color: #fff; background: rgba(255,255,255,.09); cursor: pointer; }
.tp-scroll { min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.tp-scroll::-webkit-scrollbar { width: 8px; }
.tp-scroll::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #bbc4d1; background-clip: padding-box; }

.tp-skeleton { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 48px; }
.tp-skeleton > * { overflow: hidden; border-radius: 15px; background: #e7ebf1; }
.tp-skeleton > *::after { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent); content: ""; animation: tp-shimmer 1.2s infinite; transform: translateX(-100%); }
.tp-skeleton > span { grid-row: span 2; height: 250px; }
.tp-skeleton > i { height: 78px; }
.tp-skeleton > div { height: 210px; }

.tp-profile { min-height: 100%; background: var(--tp-bg); }
.tp-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: 38px 42px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 10%, color-mix(in srgb,var(--tp-accent) 46%,transparent),transparent 34%),
    radial-gradient(circle at 10% 100%, color-mix(in srgb,var(--tp-accent) 22%,transparent),transparent 36%),
    linear-gradient(135deg,#080d18,#111b30 65%,#17233c);
}
.tp-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(90deg,#000,transparent 72%);
}
.tp-identity { display: grid; grid-template-columns: 126px minmax(0,1fr) auto; gap: 24px; align-items: center; }
.tp-avatar-wrap { position: relative; width: 126px; height: 126px; }
.tp-avatar { display: grid; width: 116px; height: 116px; overflow: hidden; place-items: center; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; color: var(--tp-accent); background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.35); font-size: 36px; font-weight: 850; }
.tp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tp-platform-badge { position: absolute; right: 3px; bottom: 4px; display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid #121a2b; border-radius: 50%; background: #fff; }
.tp-platform-badge img { width: 23px; height: 23px; object-fit: contain; }
.tp-head { min-width: 0; }
.tp-kicker { display: flex; align-items: center; gap: 7px; color: color-mix(in srgb,var(--tp-accent) 62%,white); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.tp-kicker i { width: 20px; height: 2px; background: var(--tp-accent); box-shadow: 0 0 12px color-mix(in srgb,var(--tp-accent) 65%,transparent); }
.tp-head h2 { overflow: hidden; margin: 8px 0 7px; color: #fff; font-size: clamp(29px,3vw,42px); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.tp-meta,.tp-tags,.tp-hero-links { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tp-meta span { color: rgba(255,255,255,.63); font-size: 10px; }
.tp-meta span + span::before { margin-right: 7px; color: rgba(255,255,255,.24); content: "•"; }
.tp-tags { margin-top: 13px; }
.tp-tags span { padding: 4px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.07); font-size: 9px; }
.tp-hero-links { margin-top: 14px; }
.tp-hero-links a,.tp-hero-links button { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; color: #fff; background: rgba(255,255,255,.07); font-size: 9px; font-weight: 750; text-decoration: none; cursor: pointer; }
.tp-score { display: grid; min-width: 135px; justify-items: center; }
.tp-score-ring { display: grid; width: 96px; height: 96px; place-items: center; border-radius: 50%; background: conic-gradient(var(--tp-accent) calc(var(--score) * 1%),rgba(255,255,255,.12) 0); box-shadow: 0 0 36px color-mix(in srgb,var(--tp-accent) 28%,transparent); }
.tp-score-ring::before { grid-area: 1/1; width: 76px; height: 76px; border-radius: 50%; background: #111a2b; content: ""; }
.tp-score-ring b,.tp-score-ring small { z-index: 1; grid-area: 1/1; }
.tp-score-ring b { margin-top: -10px; font-size: 25px; }
.tp-score-ring small { margin-top: 30px; color: rgba(255,255,255,.5); font-size: 8px; }
.tp-score > span { margin-top: 9px; color: rgba(255,255,255,.56); font-size: 9px; }
.tp-stat-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; margin-top: 29px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 15px; background: rgba(255,255,255,.12); }
.tp-stat { min-width: 0; padding: 13px 15px; background: rgba(7,12,23,.44); }
.tp-stat b,.tp-stat span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-stat b { color: #fff; font-size: 17px; letter-spacing: -.02em; }
.tp-stat span { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 8px; }
.tp-freshness { display: flex; gap: 9px; align-items: center; margin-top: 13px; color: rgba(255,255,255,.5); font-size: 9px; }
.tp-freshness b { color: #7be6bc; }
.tp-freshness.stale b { color: #ffd27d; }

.tp-main { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 18px; align-items: start; padding: 20px 22px 96px; }
.tp-column { display: grid; gap: 16px; min-width: 0; }
.tp-section { overflow: hidden; border: 1px solid var(--tp-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(24,39,68,.045); }
.tp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--tp-line); }
.tp-section-head > div { min-width: 0; }
.tp-section-head small { display: block; color: var(--tp-accent); font-size: 8px; font-weight: 850; letter-spacing: .11em; }
.tp-section-head h3 { margin: 4px 0 0; font-size: 18px; }
.tp-section-head > span { color: var(--tp-muted); font-size: 9px; text-align: right; }
.tp-section-body { padding: 18px 20px; }
.tp-intro { color: #4b5769; font-size: 12px; line-height: 1.9; white-space: pre-wrap; }

.tp-advantages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tp-advantage { min-width: 0; padding: 15px; border: 1px solid color-mix(in srgb,var(--tp-accent) 13%,var(--tp-line)); border-radius: 14px; background: linear-gradient(145deg,color-mix(in srgb,var(--tp-accent) 6%,white),#fff); }
.tp-advantage > i { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #fff; background: var(--tp-accent); font-style: normal; }
.tp-advantage b { display: block; margin-top: 11px; font-size: 12px; }
.tp-advantage p { margin: 5px 0 0; color: var(--tp-muted); font-size: 9px; line-height: 1.65; }

.tp-chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.tp-chart-card { min-width: 0; padding: 15px; border: 1px solid var(--tp-line); border-radius: 14px; background: #fafbfc; }
.tp-chart-title { margin-bottom: 13px; font-size: 12px; font-weight: 800; }
.tp-chart-row { display: grid; grid-template-columns: 72px minmax(0,1fr) 52px; gap: 7px; align-items: center; margin: 8px 0; font-size: 8px; }
.tp-chart-row > span { overflow: hidden; color: #667287; text-overflow: ellipsis; white-space: nowrap; }
.tp-chart-row > i { height: 6px; overflow: hidden; border-radius: 9px; background: #e7ebf1; }
.tp-chart-row > i em { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--tp-accent),color-mix(in srgb,var(--tp-accent) 42%,#75d7ff)); transition: width .75s cubic-bezier(.2,.8,.2,1); }
.tp-chart-row > b { overflow: hidden; color: #263249; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.tp-donut-wrap { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px; align-items: center; }
.tp-donut { position: relative; width: 108px; height: 108px; border-radius: 50%; transform: rotate(-90deg) scale(.88); opacity: .2; transition: transform .75s ease,opacity .75s ease; }
.tp-donut::after { position: absolute; inset: 24px; border-radius: 50%; background: #fafbfc; content: ""; }
.tp-chart-card.is-ready .tp-donut { opacity: 1; transform: rotate(0) scale(1); }
.tp-donut-legend { display: grid; gap: 7px; min-width: 0; }
.tp-donut-legend div { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; gap: 6px; align-items: center; font-size: 8px; }
.tp-donut-legend i { width: 7px; height: 7px; border-radius: 50%; }
.tp-donut-legend span { overflow: hidden; color: var(--tp-muted); text-overflow: ellipsis; white-space: nowrap; }

.tp-insight-summary { padding: 18px 20px; color: #fff; background: linear-gradient(135deg,#0d172b,color-mix(in srgb,var(--tp-accent) 35%,#111827)); }
.tp-insight-summary small { color: color-mix(in srgb,var(--tp-accent) 55%,white); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.tp-insight-summary h3 { margin: 6px 0; font-size: 19px; }
.tp-insight-summary p { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.75; }
.tp-insight-state { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; color: rgba(255,255,255,.5); font-size: 8px; }
.tp-insight-state i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.tp-insight-state.loading i { border: 1px solid rgba(255,255,255,.35); border-top-color: #fff; background: transparent; animation: tp-spin .7s linear infinite; }
.tp-insight-groups { display: grid; gap: 14px; padding: 16px; }
.tp-insight-block { padding: 15px; border: 1px solid var(--tp-line); border-radius: 14px; background: #fff; }
.tp-insight-block > h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 12px; }
.tp-insight-block > h4::before { width: 4px; height: 15px; border-radius: 3px; background: var(--tp-accent); content: ""; }
.tp-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip-list span { padding: 5px 8px; border-radius: 8px; color: #38516f; background: color-mix(in srgb,var(--tp-accent) 8%,#f2f5f8); font-size: 8px; }
.tp-insight-list { display: grid; gap: 8px; }
.tp-insight-list article { padding: 10px 11px; border-left: 3px solid var(--tp-accent); border-radius: 0 9px 9px 0; background: #f7f8fa; }
.tp-insight-list b { display: block; font-size: 10px; }
.tp-insight-list p { margin: 4px 0 0; color: var(--tp-muted); font-size: 8px; line-height: 1.6; }
.tp-creative-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.tp-creative { position: relative; overflow: hidden; padding: 15px; border: 1px solid color-mix(in srgb,var(--tp-accent) 20%,var(--tp-line)); border-radius: 14px; background: linear-gradient(145deg,color-mix(in srgb,var(--tp-accent) 7%,white),#fff); }
.tp-creative > span { color: var(--tp-accent); font-size: 8px; font-weight: 800; }
.tp-creative h4 { margin: 5px 0 8px; font-size: 13px; }
.tp-creative dl { display: grid; gap: 6px; margin: 0; }
.tp-creative dl div { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 7px; font-size: 8px; line-height: 1.55; }
.tp-creative dt { color: var(--tp-accent); font-weight: 750; }
.tp-creative dd { margin: 0; color: #657186; }
.tp-creative .risk { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #e4d7d7; color: #a05d5d; font-size: 8px; line-height: 1.5; }

.tp-metric-groups details { border-bottom: 1px solid var(--tp-line); }
.tp-metric-groups details:last-child { border-bottom: 0; }
.tp-metric-groups summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; font-size: 11px; font-weight: 800; list-style: none; cursor: pointer; }
.tp-metric-groups summary::-webkit-details-marker { display: none; }
.tp-metric-groups summary span { color: var(--tp-muted); font-size: 8px; font-weight: 500; }
.tp-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; padding: 1px 18px 16px; background: #edf0f4; }
.tp-metric { min-width: 0; padding: 10px; background: #fff; }
.tp-metric span,.tp-metric b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-metric span { color: var(--tp-muted); font-size: 8px; }
.tp-metric b { margin-top: 4px; font-size: 10px; }
.tp-structure-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.tp-structure { padding: 13px; border: 1px solid var(--tp-line); border-radius: 12px; }
.tp-structure > b { display: block; margin-bottom: 8px; font-size: 11px; }
.tp-structure div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px dashed #edf0f4; font-size: 8px; }
.tp-structure span { color: var(--tp-muted); }
.tp-structure em { overflow: hidden; max-width: 65%; font-style: normal; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.tp-quote-list { display: grid; gap: 8px; }
.tp-quote { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--tp-line); border-radius: 12px; cursor: pointer; }
.tp-quote:has(input:checked) { border-color: var(--tp-accent); background: color-mix(in srgb,var(--tp-accent) 6%,white); box-shadow: 0 0 0 2px color-mix(in srgb,var(--tp-accent) 10%,transparent); }
.tp-quote input { accent-color: var(--tp-accent); }
.tp-quote > span { min-width: 0; flex: 1; }
.tp-quote b,.tp-quote small { display: block; }
.tp-quote b { font-size: 10px; }
.tp-quote small { margin-top: 2px; color: var(--tp-muted); font-size: 7px; }
.tp-quote strong { color: #d54838; font-size: 13px; white-space: nowrap; }
.tp-price-note { margin: 10px 0 0; color: var(--tp-muted); font-size: 8px; line-height: 1.6; }
.tp-matrix-list { display: grid; gap: 7px; }
.tp-matrix { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--tp-line); border-radius: 11px; color: inherit; text-decoration: none; }
.tp-matrix img,.tp-matrix > i { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; object-fit: cover; background: #eef2f7; font-style: normal; }
.tp-matrix b,.tp-matrix small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-matrix b { font-size: 9px; }
.tp-matrix small { color: var(--tp-muted); font-size: 7px; }
.tp-caution-list { display: grid; gap: 7px; }
.tp-caution-list li { color: #6f6570; font-size: 8px; line-height: 1.6; }

.tp-sticky-action {
  position: sticky;
  z-index: 6;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  margin: -75px 0 0;
  padding: 11px 26px;
  border-top: 1px solid rgba(16,29,52,.1);
  background: rgba(255,255,255,.92);
  box-shadow: 0 -18px 42px rgba(16,29,52,.09);
  backdrop-filter: blur(18px);
}
.tp-action-price { min-width: 0; }
.tp-action-price small,.tp-action-price b { display: block; }
.tp-action-price small { color: var(--tp-muted); font-size: 8px; }
.tp-action-price b { margin-top: 2px; color: #d54838; font-size: 19px; }
.tp-actions { display: flex; gap: 8px; align-items: center; }
.tp-actions button,.tp-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid #dce2ea; border-radius: 11px; color: #435068; background: #fff; font-size: 10px; font-weight: 800; text-decoration: none; cursor: pointer; }
.tp-actions button.active { color: var(--tp-accent); border-color: color-mix(in srgb,var(--tp-accent) 35%,#dce2ea); background: color-mix(in srgb,var(--tp-accent) 6%,white); }
.tp-actions .tp-order { min-width: 145px; border-color: var(--tp-accent); color: #fff; background: var(--tp-accent); box-shadow: 0 10px 28px color-mix(in srgb,var(--tp-accent) 28%,transparent); }
.tp-error { display: grid; min-height: 360px; place-items: center; padding: 35px; text-align: center; }
.tp-error div { max-width: 420px; }
.tp-error b { font-size: 20px; }
.tp-error p { color: var(--tp-muted); }
.tp-error button { padding: 10px 16px; border: 0; border-radius: 10px; color: #fff; background: #1769d1; cursor: pointer; }

@keyframes tp-shimmer { to { transform: translateX(100%); } }
@keyframes tp-spin { to { transform: rotate(360deg); } }

@media(max-width:980px) {
  .tp-identity { grid-template-columns: 110px minmax(0,1fr); }
  .tp-avatar-wrap { width: 110px; height: 110px; }
  .tp-avatar { width: 102px; height: 102px; }
  .tp-score { display: none; }
  .tp-stat-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tp-main { grid-template-columns: 1fr; }
  .tp-column--side { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media(max-width:680px) {
  .tp-layer { z-index: 2600; }
  .tp-backdrop { display: none; }
  .tp-dialog {
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    opacity: 1;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.22,.8,.25,1);
  }
  .tp-layer.show .tp-dialog { transform: translateY(0); }
  .tp-dialog-top { min-height: calc(50px + env(safe-area-inset-top)); flex-basis: calc(50px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0 14px; }
  .tp-dialog-top > span { font-size: 9px; }
  .tp-dialog-top a { display: none; }
  .tp-scroll { scroll-behavior: auto; }
  .tp-hero { padding: 22px 14px 19px; }
  .tp-identity { grid-template-columns: 76px minmax(0,1fr); gap: 12px; align-items: start; }
  .tp-avatar-wrap { width: 76px; height: 76px; }
  .tp-avatar { width: 72px; height: 72px; border-width: 2px; font-size: 24px; }
  .tp-platform-badge { right: 0; bottom: 0; width: 27px; height: 27px; border-width: 2px; }
  .tp-platform-badge img { width: 17px; height: 17px; }
  .tp-head h2 { margin-top: 5px; font-size: 23px; }
  .tp-kicker { font-size: 7px; }
  .tp-meta span { font-size: 8px; }
  .tp-tags { gap: 4px; margin-top: 8px; }
  .tp-tags span { padding: 3px 6px; font-size: 7px; }
  .tp-hero-links { grid-column: 1/-1; margin-top: 11px; }
  .tp-stat-strip { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 16px; border-radius: 11px; }
  .tp-stat { padding: 9px 7px; }
  .tp-stat b { font-size: 12px; }
  .tp-stat span { font-size: 6.5px; }
  .tp-freshness { font-size: 7px; }
  .tp-main { gap: 10px; padding: 10px 10px calc(92px + env(safe-area-inset-bottom)); }
  .tp-column { gap: 10px; }
  .tp-column--side { grid-template-columns: 1fr; }
  .tp-section { border-radius: 14px; box-shadow: 0 5px 18px rgba(24,39,68,.035); }
  .tp-section-head { padding: 14px 14px 11px; }
  .tp-section-head h3 { font-size: 15px; }
  .tp-section-body { padding: 13px 14px; }
  .tp-intro { font-size: 10px; line-height: 1.75; }
  .tp-advantages { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .tp-advantage { padding: 11px; border-radius: 11px; }
  .tp-advantage > i { width: 27px; height: 27px; }
  .tp-chart-grid { grid-template-columns: 1fr; }
  .tp-insight-summary { padding: 15px 14px; }
  .tp-insight-summary h3 { font-size: 16px; }
  .tp-insight-groups { gap: 9px; padding: 10px; }
  .tp-insight-block { padding: 12px; }
  .tp-creative-grid { grid-template-columns: 1fr; }
  .tp-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); padding-inline: 12px; }
  .tp-structure-grid { grid-template-columns: 1fr; }
  .tp-sticky-action { min-height: calc(66px + env(safe-area-inset-bottom)); margin-top: calc(-67px - env(safe-area-inset-bottom)); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .tp-action-price b { font-size: 15px; }
  .tp-actions { gap: 5px; }
  .tp-actions button,.tp-actions a { min-height: 39px; padding: 0 10px; font-size: 8px; }
  .tp-actions .tp-order { min-width: 105px; }
  .tp-skeleton { grid-template-columns: 1fr 1fr; padding: 15px; }
  .tp-skeleton > span { grid-column: 1/-1; height: 180px; }
}

@media(prefers-reduced-motion:reduce) {
  .tp-layer,.tp-dialog,.tp-chart-row > i em,.tp-donut { transition-duration:.01ms!important; }
  .tp-skeleton > *::after,.tp-insight-state.loading i { animation:none!important; }
}

/* 分区式详情布局：左右栏只用于顶部决策区，后续数据全部使用完整宽度。 */
.tp-main { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tp-overview-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(310px,.55fr); gap: 16px; align-items: start; }
.tp-overview-main,.tp-overview-side { display: grid; gap: 16px; min-width: 0; align-content: start; }
.tp-overview-side .tp-section { box-shadow: 0 12px 34px rgba(24,39,68,.07); }
.tp-decision > b { display: block; font-size: 13px; }
.tp-decision > p { margin: 7px 0 0; color: var(--tp-muted); font-size: 9px; line-height: 1.7; }
.tp-decision .tp-chip-list { margin-top: 11px; }
.tp-decision ol { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: decision; }
.tp-decision li { position: relative; padding-left: 21px; color: #667287; font-size: 8px; line-height: 1.6; counter-increment: decision; }
.tp-decision li::before { position: absolute; top: 0; left: 0; color: var(--tp-accent); font-weight: 800; content: counter(decision,decimal-leading-zero); }
.tp-metric-groups { padding: 10px 14px 15px; }
.tp-metric-groups details { margin-top: 8px; overflow: hidden; border: 1px solid var(--tp-line); border-radius: 12px; background: #fafbfc; }
.tp-metric-groups details:last-child { border-bottom: 1px solid var(--tp-line); }
.tp-metric-groups summary { padding: 11px 13px; background: #fff; }
.tp-metrics { grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 7px; padding: 9px; background: transparent; }
.tp-metric { min-height: 62px; padding: 10px 11px; border: 1px solid #e8ebf0; border-radius: 9px; background: #fff; }
.tp-metric b { font-size: 11px; }
.tp-insight-groups { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.tp-insight-block:has(.tp-creative-grid),.tp-insight-block:has(> .tp-price-note + .tp-chip-list) { grid-column: 1/-1; }
.tp-creative-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tp-chart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:980px){
  .tp-overview-grid{grid-template-columns:1fr}
  .tp-insight-groups{grid-template-columns:1fr}
  .tp-insight-block:has(.tp-creative-grid),.tp-insight-block:has(> .tp-price-note + .tp-chip-list){grid-column:auto}
  .tp-creative-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .tp-main{gap:10px}
  .tp-overview-grid,.tp-overview-main,.tp-overview-side{grid-template-columns:1fr;gap:10px}
  .tp-chart-grid,.tp-creative-grid{grid-template-columns:1fr}
  .tp-insight-groups{grid-template-columns:1fr}
  .tp-metric-groups{padding:6px 9px 10px}
  .tp-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px}
  .tp-metric{min-height:55px}
}
