/* Bio2Twin Pulse 8D · observational chart visual polish. Dark graphite, no green. */
.grid > .panel {
  background: linear-gradient(155deg, #17212e 0%, #141c27 64%, #121a24 100%);
  border-color: #37465b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 9px 28px rgba(3, 8, 15, .17);
}
.grid > .panel .ph {
  background: rgba(34, 47, 63, .55);
  padding: 13px 16px;
}
.grid > .panel .ph h2 { font-size: 15px; font-weight: 600; letter-spacing: .015em; }
.grid > .panel > .body { padding: 15px 16px 17px; }
#profile { background: radial-gradient(ellipse at 86% 15%, rgba(104, 128, 171, .07), transparent 53%); }
.pulse-chart-scroller { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #51647E transparent; }
.pulse-scroll-hint { display: none; color: #9BB0C8; font-size: 10px; text-align: right; margin-top: 5px; }
.grid #profile + .legend {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding: 12px 3px 4px;
  line-height: 1.45;
  border-top: 1px solid rgba(59, 77, 98, .38);
}
.pulse-legend { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #BBCADD; }
.pulse-legend i { display: inline-block; height: 8px; width: 8px; border-radius: 100%; box-shadow: 0 0 0 2px rgba(223, 233, 244, .12); }
.pulse-legend i.pulse-range-key { height: 12px; width: 5px; border-radius: 3px; background: rgba(127, 151, 189, .55); box-shadow: none; }
.pulse-legend-hint { color: #9FAFC3; font-size: 10px; }
.profile-activity {
  margin: 13px 2px 0;
  padding: 13px 12px 9px;
  border: 1px solid rgba(69, 86, 108, .65);
  background: linear-gradient(145deg, rgba(34, 47, 64, .66), rgba(25, 36, 51, .55));
  border-radius: 8px;
}
.pulse-activity-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pulse-activity-head strong { display: block; font-size: 12px; color: #E0EAF5; font-weight: 600; }
.pulse-activity-head small { display: block; color: #94A9C0; font-size: 10px; margin-top: 2px; }
.pulse-activity-head > span { font-size: 10px; color: #D2DFEC; background: #293A4F; border: 1px solid #41546C; border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.pulse-activity-bars { display: flex; justify-content: space-around; align-items: flex-end; gap: 7px; min-height: 99px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; }
.pulse-activity-item { display: flex; flex: 1 0 39px; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 39px; gap: 4px; }
.pulse-activity-item > span { font-size: 10px; color: #C1CFE0; line-height: 1; font-variant-numeric: tabular-nums; }
.pulse-activity-column { width: min(26px, 62%); border-radius: 5px 5px 2px 2px; opacity: .88; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .15); }
.pulse-activity-item small { color: #99ADC3; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 650px) {
  .livebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: start; padding: 12px; }
  .livebar .state, .livebar .detail { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
  .livebar .state { font-size: 12px; line-height: 1.45; }
  .livebar .detail { line-height: 1.5; }
  .livebar button { width: 100%; padding: 8px 6px; }
  .grid > .panel .ph { padding: 10px 11px; }
  .grid > .panel > .body { padding: 10px; }
  #profile { width: 680px; min-width: 680px; height: auto; }
  .pulse-scroll-hint { display: block; }
  .grid #profile + .legend { gap: 7px 13px; }
  .pulse-legend-hint { width: 100%; }
  .profile-activity { padding: 11px 9px 7px; }
  .pulse-activity-head small { max-width: 245px; }
  .pulse-activity-bars { justify-content: flex-start; }
}
@media print {
  .grid > .panel, .profile-activity { color: #182331; background: white; box-shadow: none; }
  .pulse-activity-head strong, .pulse-legend { color: #253248; }
}
