.xhl-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--x-line); border-radius: var(--radius-xl); background: var(--platform-dark-bg);
  background-image: radial-gradient(60% 70% at 30% 40%, rgba(var(--x-blue-rgb), 0.06), transparent 70%);
}

.xhl-mk { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 0.5em; box-sizing: border-box; }
.xhl-mk--crit { background: var(--sev-crit, #F87171); transform: rotate(45deg) scale(0.88); }
.xhl-mk--adv { border: 2px solid var(--sev-adv, #FCD34D); border-radius: 50%; }
.xhl-mk--ack { background: var(--sev-live, #4ADE80); border-radius: 50%; }
.xhl-mk--board { width: 11px; height: 8px; border: 1.5px solid var(--pillar-accent, #CF8BE8); border-radius: 2px; }

.xhl-sense { display: grid; padding: clamp(0.75rem, 3%, 1.25rem); }
.xhl-sense__list {
  list-style: none; margin: 0; padding: 0; height: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 0.625rem;
}
.xhl-g {
  --g: var(--pillar-accent, #A1A1AA); --g-rgb: var(--pillar-accent-rgb, 161, 161, 170);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; column-gap: 0.875rem;
  min-width: 0; padding: 0.75rem 0.875rem;
  border: 1px solid rgba(var(--g-rgb), 0.4); border-radius: 10px; background: var(--x-surface);
  box-shadow: 0 0 24px rgba(var(--g-rgb), 0.1);
}
.xhl-g__icon {
  grid-row: 1 / span 3; align-self: center; width: 42px; height: 42px;
  fill: none; stroke: var(--g); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.xhl-g__icon .xhl-g__hot { fill: rgba(var(--g-rgb), 0.3); }
.xhl-g__name { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--x-text); }
.xhl-g__what { margin-top: 0.125rem; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.45; color: var(--x-muted); }
.xhl-g__area { display: flex; align-items: center; gap: 0.4375rem; margin-top: 0.375rem; font-size: 0.75rem; line-height: 1.3; color: var(--x-muted); }
.xhl-g__area i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }

.xhl-watch {
  display: grid; grid-template-rows: auto minmax(8rem, 1fr) auto; gap: 0.625rem;
  padding: clamp(0.875rem, 3%, 1.25rem) clamp(1rem, 4%, 1.75rem) 0.75rem;
}
.xhl-watch__head { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--x-muted); }
.xhl-watch__id { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--x-text); }
.xhl-watch__id i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pillar-accent); box-shadow: 0 0 0 3px rgba(var(--pillar-accent-rgb), 0.18); }
.xhl-watch__plot { position: relative; min-height: 0; margin-left: 1.25rem; }
.xhl-watch__base, .xhl-watch__trend { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xhl-watch__grid line { stroke: var(--x-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xhl-watch__band { fill: rgba(var(--pillar-accent-rgb), 0.1); }
.xhl-watch__edge { stroke: rgba(var(--pillar-accent-rgb), 0.45); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.xhl-watch__trend path { fill: none; stroke: var(--pillar-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.xhl-watch__y { position: absolute; left: -1.25rem; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1; color: var(--x-muted); }
.xhl-watch__bandl {   position: absolute; left: 0.5rem; top: calc(72.5% + 5px);
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.2; color: var(--x-muted); white-space: nowrap;
}
.xhl-watch__flag, .xhl-watch__end { position: absolute; width: 0; height: 0; }
.xhl-watch__flag { left: 73.33%; top: 61.25%; }
.xhl-watch__end { left: 95.83%; top: 15%; }
.xhl-watch__flag i, .xhl-watch__end i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.xhl-watch__flag i { border: 2px solid var(--sev-adv); background: var(--platform-dark-bg); }
.xhl-watch__end i { background: var(--sev-crit); box-shadow: 0 0 0 4px rgba(var(--sev-crit-rgb), 0.2); }
.xhl-watch__flag b, .xhl-watch__end b {
  position: absolute; white-space: nowrap; padding: 0.1875rem 0.4375rem; border-radius: 5px;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; line-height: 1.3; color: var(--x-text);
  background: var(--x-surface); border: 1px solid var(--x-line-2);
}
.xhl-watch__flag b { right: -0.375rem; bottom: 0.75rem; border-color: rgba(var(--sev-adv-rgb), 0.5); }
.xhl-watch__end b { right: 0.875rem; top: 50%; transform: translateY(-50%); border-color: rgba(var(--sev-crit-rgb), 0.5); }
.xhl-watch__x { margin: 0 0 0 1.25rem; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--x-muted); font-variant-numeric: tabular-nums; }

.xhl-alert .x-alert__card { width: min(100%, 22.5rem); border-color: rgba(var(--sev-crit-rgb), 0.55); box-shadow: inset 3px 0 0 var(--sev-crit); }
.xhl-alert .x-alert__lvl { display: flex; align-items: center; color: var(--sev-crit); }
.xhl-alert .x-alert__dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xhl-alert .x-alert__dl dd { font-size: 1rem; white-space: nowrap; }
.xhl-alert__at {
  display: flex; align-items: center; gap: 0.5rem; margin: 0.875rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--x-line);
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.4; color: var(--x-muted);
}
.xhl-alert__at i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pillar-accent); }

.xhl-show {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(4.75rem, 0.5fr) minmax(0, 1.65fr); align-items: center;
  padding: clamp(1rem, 4%, 2rem);
}
.xhl-show__src {
  display: grid; gap: 0.375rem; padding: 0.75rem 0.875rem; border-radius: 10px;
  border: 1px solid rgba(var(--sev-crit-rgb), 0.45); background: var(--x-surface);
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--x-muted);
}
.xhl-show__brand { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--x-text); }
.xhl-show__msg { display: flex; align-items: center; font-size: 0.75rem; line-height: 1.35; color: var(--sev-crit); }
.xhl-show__pt { font-size: 0.75rem; line-height: 1.35; color: var(--x-text); }
.xhl-show__link { position: relative; align-self: stretch; }
.xhl-show__line { position: absolute; left: 0.375rem; right: 0.5rem; top: 50%; border-top: 1.5px dashed var(--x-muted); }
.xhl-show__line::before {   content: ""; position: absolute; right: -2px; top: -5px; width: 0; height: 0;
  border-left: 7px solid var(--x-muted); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.xhl-show__line::after { content: ""; position: absolute; left: 0; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--sev-crit); opacity: 0; }
.xhl-show__per {
  position: absolute; left: 0; right: 0; top: calc(50% + 0.625rem); display: grid; justify-items: center;
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.35; color: var(--x-muted);
}
.xhl-show__board { display: grid; gap: 0.5rem; min-width: 0; }
.xhl-show__where, .xhl-show__area { margin: 0; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.03em; color: var(--x-muted); }
.xhl-show__area { display: flex; align-items: center; gap: 0.5rem; letter-spacing: 0; font-family: var(--font-body, inherit); font-size: 0.75rem; }
.xhl-show__area i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pillar-accent); box-shadow: 0 0 0 3px rgba(var(--pillar-accent-rgb), 0.18); }
.xhl-show__led { padding: 6px; border-radius: 9px; background: #141417; box-shadow: inset 0 0 0 1px #3F3F46, 0 12px 32px rgba(0, 0, 0, 0.5); }
.xhl-show__led canvas { aspect-ratio: 4 / 1; border-radius: 4px; }
.xhl-show__led .led { min-height: 4.5rem; border-radius: 4px; --led-size: 1rem; }

.xhl-log .x-log__row { grid-template-columns: 4.25em minmax(0, 1fr) 7.25em; }
.xhl-log .x-log__row > span:nth-child(2) { display: flex; align-items: center; min-width: 0; }

@media (prefers-reduced-motion: no-preference) {
  .x-how--live.xhl-in .xhl-p--sense.is-active .xhl-g { animation: xhl-light 650ms var(--x-ease) both; }
  .x-how--live.xhl-in .xhl-p--sense.is-active .xhl-g:nth-child(2) { animation-delay: 450ms; }
  .x-how--live.xhl-in .xhl-p--sense.is-active .xhl-g:nth-child(3) { animation-delay: 900ms; }
  .x-how--live.xhl-in .xhl-p--sense.is-active .xhl-g:nth-child(4) { animation-delay: 1350ms; }
  .x-how--live.xhl-in .xhl-p--watch.is-active .xhl-watch__trend { animation: xhl-draw 1.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) 250ms both; }
  .x-how--live.xhl-in .xhl-p--watch.is-active .xhl-watch__flag { animation: xhl-pop 400ms var(--x-ease) 1.35s both; }
  .x-how--live.xhl-in .xhl-p--watch.is-active .xhl-watch__end { animation: xhl-pop 400ms var(--x-ease) 1.85s both; }
  .x-how--live.xhl-in .xhl-p--show.is-active .xhl-show__src { animation: x-rise var(--dur-slow) var(--x-ease) both; }
  .x-how--live.xhl-in .xhl-p--show.is-active .xhl-show__line::after { animation: xhl-fly 900ms var(--x-ease) 250ms both; }
}
@keyframes xhl-light {
  from { filter: grayscale(1) brightness(0.6); border-color: var(--x-line); box-shadow: none; }
}
@keyframes xhl-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes xhl-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes xhl-fly { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }

@media (max-width: 47.99em) {
  .xhl .xhl-frame, .xhl .x-alert, .xhl .x-log { aspect-ratio: auto; min-height: 20.5rem; }
  .xhl .x-alert, .xhl .x-log { align-content: center; }
  .xhl-sense { padding: 0.625rem; }
  .xhl-sense__list { gap: 0.5rem; }
  .xhl-g { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 0.625rem 0.6875rem; }
  .xhl-g__icon { grid-row: auto; width: 30px; height: 30px; margin-bottom: 0.375rem; }
  .xhl-g__name { font-size: 0.875rem; }
  .xhl-g__area { font-size: 0.6875rem; }
  .xhl-watch { grid-template-rows: auto minmax(10rem, 1fr) auto; padding: 0.875rem 0.875rem 0.75rem; }
  .xhl-watch__bandl { font-size: 0.625rem; }
  .xhl-alert .x-alert__dl { grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 0.75rem; }
  .xhl-alert .x-alert__dl dd { font-size: 0.8125rem; }
  .xhl-show { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 3.75rem auto; justify-items: stretch; padding: 1rem; }
  .xhl-show__src { justify-self: start; }
  .xhl-show__line { left: 1.5rem; right: auto; top: 0.375rem; bottom: 0.5rem; border-top: 0; border-left: 1.5px dashed var(--x-muted); }
  .xhl-show__line::before { right: auto; left: -5.5px; top: auto; bottom: -2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 7px solid var(--x-muted); border-bottom: 0; }
  .xhl-show__per { left: 2.5rem; right: auto; top: 50%; transform: translateY(-50%); justify-items: start; }
  .xhl-log .x-log__row { grid-template-columns: 3.75em minmax(0, 1fr); }
}

.xhp .product-ui__main { min-width: 0; padding: 1.5rem; }
.xhp .product-ui__page-header { margin-bottom: 1.25rem; }
.xhp .product-ui__status-badge { background: rgba(var(--sev-live-rgb), 0.12); color: var(--sev-live); }
.xhp .product-ui__status-badge::before { background: var(--sev-live); }
.xhp .product-ui__table-header h4 svg { color: var(--x-muted); }
.xhp-nav i { flex: none; width: 8px; height: 8px; margin-inline: 3px; border-radius: 50%; background: var(--pillar-accent); }

.xhp-sev {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.5rem; border-radius: 999px;
  font-family: var(--font-body, inherit); font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.xhp-sev::before { content: ""; flex: none; width: 7px; height: 7px; box-sizing: border-box; }
.xhp-sev--crit { background: rgba(var(--sev-crit-rgb), 0.14); color: var(--sev-crit); }
.xhp-sev--crit::before { background: currentColor; transform: rotate(45deg) scale(0.88); }
.xhp-sev--warn { background: rgba(var(--sev-warn-rgb), 0.14); color: var(--sev-warn); }
.xhp-sev--warn::before { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; }
.xhp-sev--adv { background: rgba(var(--sev-adv-rgb), 0.12); color: var(--sev-adv); }
.xhp-sev--adv::before { border: 2px solid currentColor; border-radius: 50%; }
.xhp-sev--ack { background: rgba(var(--sev-live-rgb), 0.12); color: var(--sev-live); }
.xhp-sev--ack::before { background: currentColor; border-radius: 50%; }
.xhp-sev--norm { background: rgba(250, 250, 250, 0.06); color: var(--x-text); }
.xhp-sev--norm::before { border: 1.5px solid var(--x-muted); border-radius: 50%; }

.xhp-areas { margin-bottom: 1rem; }
.xhp-tile { display: grid; align-content: start; gap: 0.5rem; }
.xhp .xhp-tile--warn { border-left: 3px solid var(--sev-warn); }
.xhp .xhp-tile--crit { border-left: 3px solid var(--sev-crit); }
.xhp .xhp-tile--ok { border-left: 3px solid var(--x-line-2); }
.xhp-tile__area { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--x-text); }
.xhp-tile__area i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pillar-accent); box-shadow: 0 0 0 3px rgba(var(--pillar-accent-rgb), 0.18); }
.xhp-tile__count { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.xhp-tile__count .product-ui__kpi-value { margin: 0; }
.xhp-tile__unit { font-size: 0.8125rem; color: var(--x-muted); }
.xhp-tile__head { font-size: 0.8125rem; line-height: 1.45; color: var(--x-muted); }
.xhp-tile__board { display: grid; justify-items: start; gap: 0.375rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.03em; }
.xhp .xhp-led { --led-size: 0.8125rem; --led-pitch: 2px; --led-hole: 0.18; gap: 0.2em; padding: 0.5em 0.75em; border-radius: 5px; letter-spacing: 0.1em; }
.xhp .xhp-led > span { padding-left: 0.1em; white-space: nowrap; }

.xhp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.xhp-card { min-width: 0; overflow: hidden; background: var(--platform-dark-surface); border: 1px solid var(--platform-dark-border); border-radius: var(--radius-md); }
.xhp-feed__list { list-style: none; margin: 0; padding: 0; }
.xhp-feed__list li {
  display: grid; grid-template-columns: 2.75rem 8px minmax(0, 1fr) auto; align-items: center; column-gap: 0.625rem;
  padding: 0.5625rem 1rem; border-bottom: 1px solid var(--platform-dark-border);
}
.xhp-feed__list li:last-child { border-bottom: 0; }
.xhp-feed__list time { font-family: var(--font-mono); font-size: var(--fs-data); color: var(--x-muted); font-variant-numeric: tabular-nums; }
.xhp-feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pillar-accent); }
.xhp-feed__t { font-size: 0.8125rem; line-height: 1.4; color: var(--x-text); }
.xhp-check .product-ui__table thead th, .xhp-check .product-ui__table tbody td { padding-inline: 0.75rem; }
.xhp-check .product-ui__table tbody td { padding-block: 0.625rem; }
.xhp-check .panel-cell span { display: flex; align-items: baseline; gap: 0.4375rem; }
.xhp-check .panel-cell span .xhp-cell-dot { align-self: center; }
.xhp-check td[class*="num--"] { white-space: nowrap; }
.xhp-cell-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pillar-accent); }
.xhp-check .num--crit { color: var(--sev-crit); }
.xhp-check .num--warn { color: var(--sev-warn); }
.xhp-check .num--adv { color: var(--sev-adv); }
.xhp-check .num--neutral { color: var(--x-muted); font-family: var(--font-mono); }
@media (min-width: 75em) {
  .xhp-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (max-width: 63.99em) {
  .xhp .product-ui__body { grid-template-columns: minmax(0, 1fr); }
  .xhp .product-ui__sidebar { display: none; }
  .xhp .product-ui__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .xhp .product-ui__main { padding: 1rem 0.875rem; }
  .xhp .product-ui__page-header { margin-bottom: 1rem; }
  .xhp .product-ui__page-header h3 { font-size: 1.0625rem; }
  .xhp .product-ui__kpis { gap: 0.5rem; margin-bottom: 0.75rem; }
  .xhp .product-ui__kpi { padding: 0.75rem 0.6875rem; }
  .xhp-tile__area { font-size: 0.8125rem; align-items: flex-start; }
  .xhp-tile__area i { margin-top: 0.3em; }
  .xhp-tile__head { font-size: 0.75rem; }
  .xhp-feed__list li { grid-template-columns: 2.5rem 8px minmax(0, 1fr); row-gap: 0.25rem; padding: 0.625rem 0.75rem; }
  .xhp-feed__list li .xhp-sev { grid-column: 3; justify-self: start; }
  .xhp-tile .xhp-sev { white-space: normal; max-width: 100%; }
  .xhp .xhp-led { --led-size: 0.75rem; padding: 0.45em 0.6em; }
}

.xhp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; margin-top: 1rem; }
.xhp-foot .rp-note { margin: 0; }
