:root {
  --eve-text: #faf3ff;
  --eve-subtle: #d4c6e8;
  --eve-edge: #cdb9f04d;
  --eve-glass: linear-gradient(145deg, #29213ac9, #17162bd9);
  --eve-action: linear-gradient(105deg, #f6afd7, #c4a7fa 76%, #b9b6ff);
  --eve-action-text: #261937;
}

body:has(.hero-wrap) .hero {
  border-color: var(--eve-edge);
  border-radius: 22px;
  background: linear-gradient(125deg, #221d38a8, #18173156);
  box-shadow: 0 22px 68px #08091c59;
}
body:has(.hero-wrap) .hero-copy {
  width: 56%;
  padding: clamp(38px, 5.5vw, 74px) 0 clamp(38px, 5.5vw, 74px) clamp(24px, 5vw, 64px);
}
body:has(.hero-wrap) .hero:after {
  background: linear-gradient(90deg, #16152b26 36%, #16152b8c 49%, #16152b17 68%, transparent 76%);
}
.hero .hero-copy > .eyebrow, #mastering-demo .eyebrow {
  color: #f5b9db;
  letter-spacing: .19em;
}
body:has(.hero-wrap) .hero h1 {
  font-size: clamp(33px, 4.3vw, 64px);
  line-height: 1.14;
  margin-bottom: 20px;
}
.hero h1 em {
  color: #ffc2e0;
  background: var(--eve-action);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .hero-copy > p { color: var(--eve-subtle); word-break: keep-all; }
.hero .home-upload-status { word-break: keep-all; }
.hero .home-drop {
  background: linear-gradient(120deg, #e8c2ff22, #241e3b96);
  border-color: #e6a9d988;
  border-radius: 15px;
  box-shadow: inset 0 1px #ffffff12;
}
.hero .home-drop:is(:hover, .is-dragging) {
  background: linear-gradient(120deg, #f4b5e43b, #34294ca6);
  border-color: #ffd3ef;
}
.hero .home-drop-icon {
  background: #e5bbfb26;
  border: 1px solid #f3b9e64d;
  color: #f5cbef;
}
.hero .home-drop-action {
  min-height: 38px;
  background: var(--eve-action);
  color: var(--eve-action-text);
  border-color: transparent;
}
.hero .home-drop-action b { color: inherit; }
.hero .hero-note { color: #e4d6f4; }
body:has(.hero-wrap) .trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 0;
  text-align: center;
  color: #e2d5f4;
}
.trust-strip b { color: #f2b9db; }
#mastering-demo {
  background: var(--eve-glass);
  border-color: var(--eve-edge);
  border-radius: 18px;
}
#mastering-demo .ab-transport { background: #14132672; }

.eve-hosted #workspace {
  --studio-panel: var(--eve-glass);
  --studio-control: #e6d3ff13;
  --studio-line: var(--eve-edge);
  --studio-text: var(--eve-text);
  --studio-muted: var(--eve-subtle);
}
.eve-hosted main { padding-top: clamp(12px, 1.5vw, 22px) !important; }
.eve-hosted #pipelineNav { margin-top: 0; }
.eve-hosted #workspace .work-grid { gap: clamp(12px, 1.5vw, 20px); }
.eve-hosted #workspace :is(.trackbar,.modebar,.workspace-bottom,.audio-card,.result-card) {
  border-radius: 16px;
  box-shadow: inset 0 1px #ffffff0c, 0 12px 32px #0809183d;
}
.eve-hosted #workspace :is(.trackbar,.modebar,.workspace-bottom) { padding: 12px 16px; }
.eve-hosted #workspace :is(.audio-card,.result-card) { padding: clamp(14px, 1.65vw, 23px); }
.eve-hosted #workspace .file-icon {
  background: #efb9e321;
  border: 1px solid #efb9e350;
  color: #ffc4e6;
}
.eve-hosted #workspace .track-info > div { min-width: 0; }
.eve-hosted #workspace #filename {
  font-size: clamp(18px, 2.2vw, 27px);
  letter-spacing: -.035em;
}
.eve-hosted #workspace #sourceInfo { font-size: 12px; }
.eve-hosted #workspace :is(.track-info,.card-top,.result-card) .eyebrow {
  display: block;
  margin: 0 0 5px;
  color: #efb4d7 !important;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .16em;
  font-weight: 800;
}
.eve-hosted #workspace :is(.card-top,.result-card,.mastering-card) h3 {
  margin-top: 0;
  font-size: clamp(17px, 1.65vw, 22px);
  letter-spacing: -.04em;
}
.eve-hosted #workspace .card-top { align-items: end; }
.eve-hosted #pipelineNav .pipeline-steps { background: #201c33b8 !important; }
.eve-hosted #pipelineNav .pipeline-step { min-height: 56px; }
.eve-hosted #pipelineNav .pipeline-step.is-active {
  box-shadow: inset 0 -2px #f2abd7;
  background: linear-gradient(110deg,#f7b5db24,#c7a9fa10);
}
.eve-hosted #workspace .wave-choice {
  position: relative;
  min-height: 54px;
  border-radius: 11px;
  justify-content: space-between;
  padding-inline: 13px;
}
.eve-hosted #workspace .wave-choice strong {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eve-hosted #workspace .wave-choice strong::before {
  display: grid;
  width: 23px;
  height: 23px;
  flex: none;
  place-items: center;
  border-radius: 6px;
  background: #a6d7e527;
  color: #bfeaff;
  font-size: 10px;
  content: 'A';
}
.eve-hosted #workspace #mastered strong::before {
  background: #efb0d82d;
  color: #ffcee9;
  content: 'B';
}
.eve-hosted #workspace .wave-choice.active {
  background: linear-gradient(115deg,#dda6ef29,#eab2db13) !important;
  box-shadow: inset 0 1px #f4cfef32;
}
.eve-hosted #workspace :is(.wave-area,.wave-display) { height: clamp(172px, 19vw, 226px); }
.eve-hosted #workspace .wave-area {
  background: linear-gradient(165deg,#15172cd9,#211933c9) !important;
  border-color: #c3a6e04d !important;
}
.eve-hosted #workspace #waveOverlay {
  background: var(--studio-control) !important;
  border: 1px solid var(--studio-line) !important;
  color: var(--studio-text) !important;
}
.eve-hosted #workspace #waveOverlay::before { content: none; }
.eve-hosted #workspace #waveOverlay[aria-pressed="true"] {
  background: #e1a6ee2e !important;
  border-color: #f2abd7 !important;
  color: #ffe2f3 !important;
}
.eve-hosted #workspace #waveOverlay:focus-visible { outline-offset: 2px; }
.eve-hosted body > footer {
  background: linear-gradient(115deg, #211a35, #2c2041) !important;
  border-top: 1px solid var(--eve-edge) !important;
  color: var(--eve-subtle) !important;
  box-shadow: none;
}
.eve-hosted body > footer :is(a, button) { color: #f4bada !important; }
.eve-hosted #workspace .comparison {
  border-color: #c4abeb3d;
  padding-block: 10px;
}
.eve-hosted #workspace .comparison .delta { color: #f6b3d9; }
.eve-hosted #workspace :is(#play,#save) {
  background: var(--eve-action) !important;
  color: var(--eve-action-text) !important;
  box-shadow: 0 5px 18px #b186e043;
}
.eve-hosted #workspace #save { min-height: 48px; border-radius: 10px; }
.eve-hosted #workspace :is(#play,#save):hover:not(:disabled) { filter: brightness(1.1); }
.eve-hosted .topbar .top-right :is(#systemInfo, #guide),
.eve-hosted #workspace .modebar #reanalyze {
  -webkit-appearance: none;
  appearance: none;
  background: #b99ae526 !important;
  border: 1px solid #d6b7ef66 !important;
  color: #f8e6ff !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eve-hosted #workspace .modebar #reanalyze::before { content: none; }
.eve-hosted .topbar .top-right :is(#systemInfo, #guide):active,
.eve-hosted #workspace .modebar #reanalyze:active:not(:disabled) {
  background: #c7a3ec4d !important;
}
.eve-hosted .topbar .top-right :is(#systemInfo, #guide):focus-visible {
  outline: 2px solid #f4a9d5;
  outline-offset: 2px;
}
.eve-hosted #workspace .metrics { gap: 8px; margin-block: 12px; }
.eve-hosted #workspace .metrics > div {
  padding: 8px 10px;
  border: 1px solid #cbb1eb31 !important;
  border-radius: 9px;
}
.eve-hosted #workspace .metrics dt { font-size: 11px; }
.eve-hosted #workspace .metrics dd { margin-top: 3px; font-size: clamp(20px, 1.8vw, 26px); }
.eve-hosted #workspace .result-detail { font-size: 12px; line-height: 1.6; }
.eve-hosted #workspace .playback-right .loop-controls { padding-top: 12px; }

@media (min-width: 681px) {
  .hero :is(.hero-actions,.hero-copy > p) { max-width: calc(100% - clamp(45px, 6.7vw, 106px)); }
}
@media (max-width: 760px) {
  .eve-hosted #pipelineNav { overflow: visible; }
  .eve-hosted #pipelineNav .pipeline-steps { min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eve-hosted #pipelineNav .pipeline-step { min-height: 48px; padding: 7px 9px; }
  .eve-hosted #pipelineNav .pipeline-step::after { display: none; }
  .eve-hosted #pipelineNav .pipeline-step:nth-child(n+3) { border-top: 1px solid var(--eve-edge); }
  .eve-hosted #pipelineNav .pipeline-step:nth-child(3) { border-left: 0; }
}
@media (max-width: 680px) {
  body:has(.hero-wrap) .hero-copy { width: 100%; padding: 16px 19px 48px; }
  body:has(.hero-wrap) .hero:after {
    background: linear-gradient(0deg,#1d1930,transparent 34%);
  }
  body:has(.hero-wrap) .hero h1 { font-size: clamp(28px,8.1vw,45px); }
  .hero .hero-badge { top: calc(clamp(200px,55vw,340px) - 40px); right: auto; left: 16px; }
  .hero .home-drop-action { min-height: 34px; }
  body:has(.hero-wrap) .trust-strip { padding: 9px 0; }
  .eve-hosted #workspace .wave-choice { align-items: start; padding: 8px; }
  .eve-hosted #workspace .wave-choice strong { gap: 5px; }
  .eve-hosted #workspace .wave-choice strong::before { width: 18px; height: 18px; }
}
@media (forced-colors: active) {
  .hero h1 em { background: none; -webkit-text-fill-color: currentColor; }
}

#homeUploadRetry {
  color: #f4c3e4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mobile-picker-hint, #selectAudio .picker-wait { display: none; }
#homeUploadRetry:not([data-retry]) { display: none; }
#selectAudio { position: relative; }
#sourceFile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
#selectAudio:focus-within { outline: 2px solid #f3c6eb; outline-offset: 3px; }
#selectAudio:has(#sourceFile:disabled) { opacity: .72; }
#selectAudio:has(#sourceFile:disabled) .picker-label { display: none; }
#selectAudio:has(#sourceFile:disabled) .picker-wait { display: inline; }
@media (pointer: coarse), (max-width: 680px) {
  .hero #homeAudioInput {
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
  }
  .hero #homeUploadRetry:not([data-retry]) { display: block; width: fit-content; }
  .eve-direct-picker #landing :is(.landing-copy,.landing-portrait,.drop-zone,.headroom-guide) { display: none !important; }
  .eve-direct-picker #landing .landing-shell { grid-template-columns: minmax(0, 1fr); }
  .eve-direct-picker #landing .mobile-picker-hint {
    display: block;
    margin: 10px 0 0;
    color: var(--eve-subtle);
    font-size: 12px;
  }
}
