/* Energy, catalogue and library */
.energy-platform{
  --energy-surface:#f7f5ee;
  --energy-glass:rgba(255,254,248,.68);
  --energy-green:#295b4e;
  --energy-border:rgba(62,81,69,.15);
  --energy-muted:#4b5b61;
  container-type:inline-size;
  width:100%;
  padding-top:clamp(12px,2vw,24px);
}
.energy-platform .view-title{margin:0 0 20px;overflow-wrap:anywhere}
.energy-platform h2{font-size:clamp(19px,2vw,25px);line-height:1.2;margin:0 0 14px}
.energy-platform .energy-desk{
  grid-template-columns:minmax(0,1fr);
  gap:clamp(12px,2vw,20px);
  align-items:stretch;
}
.energy-platform .energy-monolith{display:block;padding:0;min-width:0}
.energy-platform .energy-stone{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:1fr auto;
  align-items:center;
  gap:12px;
  height:100%;
  min-height:285px;
  padding:clamp(16px,4vw,28px);
  isolation:isolate;
  background-image:url("/app/assets/energy/stone.webp");
}
.energy-platform .energy-stone::before{
  background:linear-gradient(95deg,rgba(253,251,242,.91) 0%,rgba(253,251,242,.63) 55%,rgba(253,251,242,.26));
}
.energy-platform .energy-stone__readout{min-width:0}
.energy-platform .energy-stone h2{margin:0}
.energy-platform .energy-label{
  font-size:clamp(14px,1.6vw,18px);
  line-height:1.2;
  text-align:left;
  min-height:44px;
  color:#293b3f;
}
.energy-platform .energy-score-row{flex-wrap:wrap}
.energy-platform .energy-score{font-size:clamp(45px,6cqw,76px);font-variant-numeric:tabular-nums}
.energy-platform .energy-meta{color:#465551;margin:10px 0 0}
.energy-platform .energy-noscore{margin:8px 0 0;font-size:16px;line-height:1.4}
.energy-platform .energy-orb{
  width:clamp(86px,16vw,155px);
  height:auto;
  aspect-ratio:1;
  margin:0;
}
.energy-platform .energy-measure{grid-column:1/-1;min-width:0;padding-inline:14px;margin-top:10px}
.energy-platform .energy-dynamics{padding:clamp(16px,3vw,26px);min-width:0;background:var(--energy-glass)}
.energy-platform .energy-dynamics-title{color:var(--ink);padding:0;font-weight:550;letter-spacing:0}
.energy-history-chart{margin:0}
.energy-history-chart figcaption{font-size:.84rem;color:var(--energy-muted)}
.energy-history-chart svg{display:block;width:100%;height:auto;overflow:visible}
.energy-gridline line{stroke:#d9e1d9;stroke-width:1}
.energy-segment{fill:none;stroke:var(--energy-green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.energy-point{fill:var(--energy-green)}
.energy-point circle{stroke:var(--energy-green);stroke-width:1.4}
.energy-point--legacy circle{fill:#828781;stroke:#656d67}
.energy-point--open circle{fill:#fffdf7}
.energy-point text{text-anchor:middle;fill:#243a39;font-size:13px;font-variant-numeric:tabular-nums}
.energy-point .energy-point__date{fill:var(--energy-muted);font-size:11px}
.energy-platform .energy-reco{margin-top:10px;padding:12px 0 0;border-color:var(--energy-border)}
.energy-platform .energy-reco p{font-size:14px;color:var(--energy-muted)}
.energy-selection,
.energy-locked,
.library-body{min-width:0;padding:clamp(16px,3vw,26px);background:var(--energy-glass)}
.energy-selection,
.energy-catalog,
.energy-platform .energy-heading-row{margin-top:clamp(24px,4vw,42px)}
.energy-catalog{scroll-margin-top:8rem}
.energy-heading-row{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}
.energy-platform .energy-heading-row h2{margin:0}
.energy-gate{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.energy-gate p{margin:0;color:var(--energy-muted)}
.energy-message{
  display:flex;align-items:flex-start;justify-content:center;
  flex-direction:column;gap:12px;
  min-height:100px;
  line-height:1.5;
  color:var(--energy-muted);
}
.energy-message p{margin:0}
.energy-dynamics .energy-message{min-height:166px}
.energy-platform .catalog-head{margin-bottom:20px;align-items:center;gap:14px}
.energy-platform .catalog-head .view-title{margin:0;font-size:clamp(24px,4vw,38px)}
.energy-platform .catalog-head .btn{flex:0 0 auto;min-height:44px;min-width:44px}
.energy-tiles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(135px,42%),1fr));
  gap:clamp(10px,2vw,18px);
  justify-content:start;
  margin-bottom:16px;
}
.energy-tiles--subcategory{grid-template-columns:repeat(auto-fit,minmax(min(135px,42%),min(100%,190px)))}
.energy-tile{
  display:flex;align-items:end;justify-content:space-between;
  position:relative;isolation:isolate;
  min-width:0;aspect-ratio:167/264;padding:clamp(10px,1.5vw,16px);
  border:0;border-radius:18px;overflow:hidden;
  color:#fffdf8;background:#394742;text-align:left;
}
.energy-tile:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(13,26,23,.91) 0%,rgba(13,26,23,.52) 34%,transparent 64%)}
.energy-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.energy-tile__title{font-size:clamp(13px,1.6vw,18px);font-weight:600;line-height:1.23;overflow-wrap:anywhere}
.energy-tile__arrow{font-size:21px;line-height:1;flex:0 0 10px;margin-left:5px}
.energy-tile:focus-visible{outline-offset:-4px}
.section-tools{
  display:grid;grid-template-columns:minmax(0,1fr);gap:10px;
}
.section-tool{
  display:grid;grid-template-columns:minmax(58px,22%) minmax(0,1fr) auto;align-items:stretch;
  position:relative;min-width:0;min-height:92px;
  border:1px solid var(--energy-border);border-radius:16px;overflow:hidden;
  background:rgba(255,255,255,.69);
}
.section-tool__art{grid-column:1;grid-row:1;display:block;width:100%;height:0;min-height:100%;object-fit:cover}
.section-tool__details{
  grid-column:2;grid-row:1;display:grid;gap:4px;align-content:center;
  min-width:0;padding:12px;border:0;color:var(--ink);background:transparent;text-align:left;
  overflow-wrap:anywhere;
}
.section-tool__details strong{font-size:clamp(14px,1.4vw,17px);font-weight:650;line-height:1.23}
.section-tool__details span:not(.sr-only){font-size:.82rem;color:var(--energy-muted);line-height:1.4}
.section-tool__details:focus-visible{outline-offset:-2px}
.section-tool__play,.section-tool__chevron{
  grid-column:3;grid-row:1;place-self:center;display:grid;place-items:center;
  width:44px;min-height:44px;margin-right:8px;
  border:1px solid var(--energy-border);border-radius:50%;background:#e9efe8;color:#1d443a;
  font-size:16px;
}
.section-tool__chevron{background:transparent;border-color:transparent;color:var(--energy-muted);font-size:23px;width:18px}
.energy-platform .sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;
}
.energy-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.energy-filters .chip{
  min-height:44px;border:1px solid var(--energy-border);white-space:normal;text-align:center;
}
.energy-filters .chip[aria-pressed="true"]{color:white;background:var(--energy-green)}
.library-hero{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);align-items:center;
  gap:8px;min-height:clamp(160px,32vw,245px);padding:clamp(16px,4vw,34px);
  margin-bottom:16px;overflow:hidden;border-radius:24px;
  background:#f1efe6 url("/app/assets/library-parity/library-backdrop.webp") center/cover;
}
.library-hero .view-title{font-size:clamp(23px,4vw,40px);margin-bottom:8px}
.library-hero p{color:#43524f;margin:0}
.library-hero__art{position:relative;aspect-ratio:850 / 510}
.library-hero__art img{position:absolute;display:block;height:auto}
.library-hero__art img:first-child{width:89.7%;left:13.2%;top:-1.1%}
.library-hero__art img:last-child{width:60.8%;left:-3.1%;top:-.69%}
.library-body>.btn{margin-top:10px}
.tool-player-info{padding:16px;min-width:0;display:grid;gap:16px}
.tool-player-info audio{width:100%;min-width:0}
.tool-description h2{margin:0 0 6px;font-size:17px}
.tool-description p{margin:0;color:var(--energy-muted);line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.tool-favorite{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-width:0;min-height:44px}
.tool-favorite span{font-size:21px}
.tool-favorite[aria-pressed="true"]{color:#7e413f}
.energy-dialog{
  max-height:calc(100dvh - 32px);width:min(550px,calc(100% - 32px));border:1px solid #fff;
  border-radius:24px;padding:clamp(18px,4vw,30px);color:var(--ink);background:#faf8f2;
  box-shadow:0 18px 50px #1928203d;overscroll-behavior:contain;
}
.energy-dialog::backdrop{background:#1d292979;backdrop-filter:blur(4px)}
.energy-dialog h2{padding-right:48px}
.energy-dialog p{color:#425457;line-height:1.5}
.energy-dialog__close{
  position:absolute;top:12px;right:12px;display:grid;place-items:center;
  width:44px;min-height:44px;border:1px solid #dce0d7;border-radius:50%;
  background:white;color:inherit;font-size:22px;
}
@container(min-width:660px){
  .energy-platform .energy-desk{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .energy-tiles{grid-template-columns:repeat(auto-fit,minmax(135px, min(100%,175px)))}
  .energy-tiles--subcategory{grid-template-columns:repeat(auto-fit,minmax(135px,min(100%,195px)))}
  .section-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container(min-width:870px){
  .section-tools--selection{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:390px){
  .library-hero{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
  .section-tool__details{padding-inline:9px}
  .section-tool__play{margin-right:5px}
}

.energy-segment--bridge{stroke-dasharray:4 3;stroke-width:1.5}
.energy-bridge-fill{fill:var(--energy-green);opacity:.13}
.energy-tiles--state .energy-tile{aspect-ratio:941/1672}
.energy-tile[data-cat-id="confusion"] img{object-position:64% 25%}
