.energy-today-card {
  display: grid;
  width: 100%;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  border-color: rgba(126, 159, 188, .24);
  background: #0b1016;
  cursor: pointer;
}
.energy-today-action-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.energy-today-card:focus-visible,
.energy-stage-help:focus-visible,
.energy-modal button:focus-visible { outline: 2px solid #75c6ac; outline-offset: 2px; }
.energy-today-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.energy-today-heading strong { font-size: 17px; letter-spacing: -.02em; }
.energy-today-heading span { color: rgba(226, 232, 238, .52); font-size: 24px; line-height: 1; }
.energy-today-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.energy-metric { display: grid; min-width: 0; gap: 3px; padding: 9px 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: #0e141c; }
.energy-metric small { display: flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; color: rgba(225, 231, 237, .66); font-size: 10px; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.energy-metric-icon { width: 13px; height: 13px; }
.energy-metric b { font-size: 18px; font-variant-numeric: tabular-nums; }
.energy-metric em { color: rgba(225, 231, 237, .45); font-size: 10px; font-style: normal; }
.energy-prana b, .energy-flow-prana strong { color: #e8a15f; }
.energy-grace b, .energy-flow-grace strong { color: #b9c8ee; }
.energy-harmony b { color: #7bc8ad; }
.energy-guidance { margin: 0; color: rgba(227, 232, 238, .7); font-size: 12px; line-height: 1.45; }

.energy-profile-panel { display: grid; width: 100%; gap: 14px; }
.profile-chakra-card.profile-chakra-card-energy { min-height: 0; aspect-ratio: auto; place-items: stretch; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.energy-profile-stage { position: relative; width: 100%; aspect-ratio: 1280 / 1137; overflow: hidden; border: 0; border-radius: 0; background: #000; isolation: isolate; }
.energy-profile-figure { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.energy-stage-help { position: absolute; z-index: 7; top: 9px; right: 9px; display: grid; width: 44px; height: 44px; place-items: center; color: rgba(242,244,249,.95); font: 500 21px/1 inherit; border: 1px solid rgba(225,230,241,.55); border-radius: 50%; background: rgba(8,10,16,.38); backdrop-filter: blur(3px); }
.energy-grace-serpent,
.energy-prana-serpent { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(calc(100% - var(--prana-progress)) 0 0); }
.energy-grace-serpent { z-index: 2; clip-path: inset(0 0 calc(100% - var(--grace-progress)) 0); }
.energy-serpent-body { fill: none; stroke: #f0a246; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: .98; }
.energy-serpent-light { fill: none; stroke: rgba(255,243,201,.94); stroke-width: .48; stroke-linecap: round; stroke-dasharray: 3 7; animation: energy-serpent-rise var(--prana-speed) linear infinite; }
.energy-serpent-head { fill: #f4b64e; stroke: rgba(255,239,190,.88); stroke-width: .28; opacity: 1; }
.energy-grace-serpent-body { fill: none; stroke: rgba(213,222,247,.9); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.energy-grace-serpent-light { fill: none; stroke: rgba(255,255,255,.98); stroke-width: .48; stroke-linecap: round; stroke-dasharray: 3 7; animation: energy-serpent-descend var(--grace-speed) linear infinite; }
.energy-grace-serpent-head { fill: #f3f5fb; stroke: rgba(255,255,255,.95); stroke-width: .28; opacity: .96; }
.energy-chakras { position: absolute; z-index: 4; inset: 0; }
.energy-chakra { position: absolute; left: 50%; width: 12px; height: 12px; border: 1px solid rgba(255,255,255,.46); border-radius: 50%; transform: translate(-50%,-50%); opacity: .9; }
.energy-chakra-crown { top: 10.5%; background: #9266be; }
.energy-chakra-third-eye { top: 20.5%; background: #6279ba; }
.energy-chakra-throat { top: 30.5%; background: #58a0b7; }
.energy-chakra-heart { top: 45.5%; background: #63ae79; }
.energy-chakra-solar { top: calc(52.5% + 5px); background: #d1ba50; }
.energy-chakra-sacral { top: calc(59.5% + 5px); background: #d18449; }
.energy-chakra-root { top: calc(67.5% + 5px); background: #c64d45; }
.energy-heart { position: absolute; z-index: 5; left: 50%; top: 45.5%; color: #8bdbb7; font-size: 22px; line-height: 1; opacity: var(--harmony-strength); transform: translate(-50%,-50%); animation: energy-heart var(--heart-speed) ease-in-out infinite; }
.energy-summary-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 0 2px; }
.energy-summary-metric { display: grid; min-width: 0; align-content: start; gap: 8px; padding: 0 clamp(8px, 3vw, 16px); }
.energy-summary-metric + .energy-summary-metric { border-left: 1px solid rgba(225,230,240,.18); }
.energy-summary-metric > span { display: flex; min-width: 0; align-items: center; gap: 7px; color: rgba(239,242,247,.88); font-size: clamp(10px, 3vw, 13px); white-space: nowrap; }
.energy-summary-metric > span i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: currentColor; }
.energy-summary-metric > strong { color: #f1f3f7; font-size: clamp(24px, 8vw, 36px); line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.energy-summary-metric > strong b { font-size: .82em; font-weight: 400; }
.energy-summary-metric > small { color: rgba(225,230,239,.64); font-size: clamp(10px, 2.45vw, 11px); line-height: 1.35; }
.energy-summary-prana > span, .energy-summary-prana > strong { color: #ef454e; }
.energy-summary-harmony > span, .energy-summary-harmony > strong { color: #56bff1; }
.energy-summary-grace > span { color: #f3f4f8; }
.energy-summary-grace > strong { color: #fff; }
.energy-preview-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 2px 0; }
.energy-preview-group { display: grid; min-width: 0; gap: 6px; }
.energy-preview-group > span { color: rgba(231,235,241,.55); font-size: 10px; text-align: center; }
.energy-preview-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.energy-preview-controls button { min-width: 0; min-height: 44px; padding: 8px 6px; color: rgba(238,241,247,.84); font: 650 12px/1 inherit; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #0b1016; }
.energy-preview-group:first-child button { border-color: rgba(239,69,78,.32); }
.energy-preview-group:last-child button { border-color: rgba(225,230,241,.24); }
.energy-preview-controls button:focus-visible { outline: 2px solid #75c6ac; outline-offset: 2px; }

.energy-modal-open { overflow: hidden; }
.energy-modal-backdrop { position: fixed; z-index: 10000; inset: 0; display: grid; align-items: end; padding: 16px 12px max(16px, env(safe-area-inset-bottom)); background: rgba(0,0,0,.68); }
.energy-modal { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(100%, 520px); max-height: min(78dvh, 680px); margin: 0 auto; overflow: hidden; color: #e7ebef; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #0b1016; }
.energy-modal:has(.energy-modal-footer) { grid-template-rows: auto minmax(0, 1fr) auto; }
.energy-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 15px 10px; }
.energy-modal h2 { margin: 0; font-size: 20px; }
.energy-modal header button { width: 44px; height: 44px; flex: 0 0 44px; color: #e2e7eb; font: 300 27px/1 inherit; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); }
.energy-modal-body { max-height: calc(min(78dvh, 680px) - 69px); overflow: auto; padding: 4px 15px max(18px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.energy-modal-footer { padding: 0 15px max(16px, env(safe-area-inset-bottom)); background: #0b1016; }
.energy-modal-footer .primary-button { width: 100%; min-height: 44px; }
.energy-modal-status { margin: 18px 0; color: rgba(227,232,238,.65); font-size: 13px; text-align: center; }
.energy-history-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.energy-history-item { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: #0e141c; }
.energy-history-item div { display: grid; min-width: 0; gap: 3px; }
.energy-history-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.energy-history-item small { color: rgba(225,231,237,.5); font-size: 10px; }
.energy-history-item b { font-size: 15px; font-variant-numeric: tabular-nums; }
.energy-history-prana b { color: #e8a15f; }
.energy-history-grace b { color: #b9c8ee; }
.energy-help-copy { display: grid; gap: 12px; }
.energy-help-copy p { margin: 0; color: rgba(229,233,238,.72); font-size: 14px; line-height: 1.5; }
.energy-help-copy strong { color: #f1f3f7; font-weight: 700; }


@keyframes energy-serpent-descend { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -20; } }
@keyframes energy-serpent-rise { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
@keyframes energy-heart { 0%,100% { transform: translate(-50%,-50%) scale(.92); } 50% { transform: translate(-50%,-50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .energy-grace-serpent-light, .energy-serpent-light, .energy-heart { animation: none; } }
@media (max-width: 360px) {
  .energy-today-card { padding: 14px 12px; }
  .energy-today-metrics { gap: 5px; }
  .energy-metric { padding: 8px 6px; }
  .energy-metric small, .energy-metric em { font-size: 9px; }
  .energy-metric b { font-size: 16px; }
  .energy-summary-metric { gap: 6px; padding-inline: 6px; }
  .energy-summary-metric > span { gap: 5px; }
  .energy-summary-metric > strong { font-size: 23px; }
  .energy-summary-metric > small { font-size: 10px; }
}
