.cosmo-discover-trigger {
  position: fixed;
  right: 16px;
  bottom: calc(122px + env(safe-area-inset-bottom, 0px));
  z-index: 62;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(205, 195, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(240, 169, 202, 0.92), rgba(147, 139, 235, 0.94));
  box-shadow: 0 14px 36px rgba(31, 24, 68, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.cosmo-feature-hub {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  color: rgba(248, 246, 255, 0.96);
}

.cosmo-feature-hub.open {
  display: block;
}

.cosmo-feature-hub [hidden] {
  display: none !important;
}

body:has(.cosmo-feature-hub.open) .huhu-desktop-rail {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.cosmo-feature-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(2, 4, 14, 0.72);
  backdrop-filter: blur(14px);
}

.cosmo-feature-panel {
  position: absolute;
  inset: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
  max-width: 1120px;
  margin: auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(210, 200, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 75% 0%, rgba(137, 113, 219, 0.17), transparent 31%),
    linear-gradient(180deg, rgba(16, 19, 44, 0.98), rgba(7, 10, 27, 0.98));
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.56);
}

.cosmo-feature-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 17px;
  border-bottom: 1px solid rgba(210, 200, 255, 0.1);
}

#cosmo-feature-title:focus { outline: none; }

.cosmo-feature-header p,
.cosmo-feature-intro p,
.cosmo-sound-label {
  margin: 0 0 5px;
  color: rgba(189, 223, 245, 0.64);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.cosmo-feature-header h2,
.cosmo-feature-intro h3,
.cosmo-sound-copy h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.97);
  font-weight: 680;
  letter-spacing: -0.02em;
}

.cosmo-feature-header h2 {
  font-size: clamp(20px, 3vw, 30px);
}

.cosmo-feature-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 200, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 23px;
}

.cosmo-feature-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cosmo-feature-guide {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(210, 200, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(239, 234, 255, 0.78);
}

.cosmo-feature-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 26px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(210, 200, 255, 0.08);
}

.cosmo-feature-tabs::-webkit-scrollbar {
  display: none;
}

.cosmo-feature-tabs button,
.cosmo-feature-refresh,
.cosmo-sound-feedback button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(210, 200, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(222, 219, 239, 0.72);
  white-space: nowrap;
}

.cosmo-feature-tabs button.active {
  border-color: rgba(214, 203, 255, 0.36);
  background: linear-gradient(100deg, rgba(240, 169, 202, 0.16), rgba(169, 156, 255, 0.2));
  color: #fff;
}

.cosmo-feature-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cosmo-feature-view {
  display: none;
  padding: 24px 26px 38px;
}

.cosmo-feature-view.active {
  display: block;
}

.cosmo-feature-intro {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cosmo-report-monthly {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-bottom: 36px;
  padding: 26px 30px;
  border: 1px solid rgba(231, 181, 211, .3);
  border-radius: 24px;
  background: linear-gradient(115deg, rgba(112, 69, 127, .3), rgba(32, 27, 57, .88));
}

.cosmo-report-monthly p { margin: 0 0 8px; color: #d4b3ca; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.cosmo-report-monthly h3 { margin: 0 0 7px; color: #f6e6ca; font: 500 clamp(24px, 2.7vw, 34px)/1.25 Georgia, 'Songti SC', serif; }
.cosmo-report-monthly span, .cosmo-feature-intro [data-feature-i18n="reportsSummary"] { color: #c7b6c9; font-size: 13px; line-height: 1.7; }
.cosmo-report-monthly a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; background: #e7b3d0; color: #23182e;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.cosmo-report-monthly a:hover { background: #f2c8df; }
.cosmo-report-monthly a:focus-visible { outline: 2px solid #f4c3e0; outline-offset: 4px; }
@media (max-width: 700px) {
  .cosmo-report-monthly { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .cosmo-report-monthly a { justify-self: start; }
}

.cosmo-feature-intro h3 {
  font-size: clamp(18px, 2.5vw, 26px);
}

.cosmo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cosmo-feature-group-title {
  grid-column: 1 / -1;
  margin: 12px 0 2px;
  color: rgba(245, 226, 237, .92);
  font-size: 17px;
  font-weight: 600;
}

.cosmo-feature-group-empty {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: rgba(224, 211, 230, .72);
  font-size: 14px;
  line-height: 1.7;
}

.cosmo-feature-card {
  position: relative;
  min-height: 172px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(210, 200, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(170, 154, 255, 0.19), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: rgba(248, 246, 255, 0.96);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cosmo-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(210, 200, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.07);
}

.cosmo-feature-card h4 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.cosmo-feature-card p {
  margin: 0;
  color: rgba(218, 215, 238, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.cosmo-feature-card small {
  color: rgba(189, 223, 245, 0.62);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cosmo-ready-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 8px;
  border: 1px solid rgba(172, 238, 219, 0.22);
  border-radius: 999px;
  background: rgba(73, 171, 145, 0.12);
  color: rgba(194, 247, 231, 0.9);
  font-size: 10px;
  font-weight: 760;
}

.cosmo-feature-card img {
  width: 100%;
  height: 118px;
  margin: -20px -20px 0;
  object-fit: cover;
  width: calc(100% + 40px);
}

.cosmo-feature-card img + h4 {
  margin-top: 16px;
}

.cosmo-feature-state {
  margin: 10px 0 16px;
  color: rgba(218, 215, 238, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.cosmo-feature-state:empty {
  display: none;
}

.cosmo-feature-state.error {
  padding: 12px 14px;
  border: 1px solid rgba(248, 157, 181, 0.25);
  border-radius: 14px;
  background: rgba(160, 58, 92, 0.12);
  color: rgba(255, 211, 223, 0.92);
}

.cosmo-feature-detail {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(210, 200, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.cosmo-feature-detail h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 34px);
}

.cosmo-feature-detail h4 {
  margin: 26px 0 8px;
  color: rgba(231, 225, 255, 0.95);
  font-size: 16px;
}

.cosmo-feature-detail p,
.cosmo-feature-detail li {
  color: rgba(224, 220, 239, 0.76);
  line-height: 1.75;
}

.cosmo-feature-detail ul {
  padding-left: 20px;
}

.cosmo-feature-primary {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 220, 232, 0.5);
  border-radius: 999px;
  background: linear-gradient(105deg, rgba(240, 169, 202, 0.92), rgba(145, 139, 229, 0.94));
  color: #fff;
  font-weight: 760;
}

.cosmo-feature-primary[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.cosmo-web-checkout-hint {
  margin-top: 12px;
  font-size: 11px;
}

.cosmo-test-access {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  padding: 7px 9px 7px 12px;
  border: 1px solid rgba(240, 202, 145, 0.18);
  border-radius: 999px;
  background: rgba(240, 202, 145, 0.07);
  color: rgba(240, 229, 205, 0.72);
  font-size: 11px;
}

.cosmo-test-access strong {
  color: #f5dfb7;
}

.cosmo-test-access button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 220, 176, 0.14);
  color: #f8e3bd;
}

.cosmo-question-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cosmo-question-option {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 200, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(248, 246, 255, 0.92);
  text-align: left;
}

.cosmo-question-option img {
  width: 100%;
  aspect-ratio: 1.42;
  margin-bottom: 9px;
  border-radius: 12px;
  object-fit: cover;
}

.cosmo-test-progress {
  height: 4px;
  margin: 16px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cosmo-test-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0a9ca, #a99cff, #aee8f5);
}

.cosmo-sound-stage {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 410px;
  padding: 28px;
  border: 1px solid rgba(210, 200, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
}

.cosmo-sound-tabs {
  display: flex;
  width: fit-content;
  gap: 6px;
  margin: 0 auto 18px;
  padding: 4px;
  border: 1px solid rgba(210, 200, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.cosmo-sound-tabs button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(224, 220, 239, 0.65);
}

.cosmo-sound-tabs button.active {
  background: linear-gradient(105deg, rgba(240, 169, 202, 0.18), rgba(145, 139, 229, 0.24));
  color: #fff;
}

.cosmo-record {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

.cosmo-record.is-playing img {
  animation: cosmoRecordSpin 8s linear infinite;
}

.cosmo-record-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  padding: 0;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(7, 10, 27, 0.72);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 19px;
}

@keyframes cosmoRecordSpin {
  to { transform: rotate(360deg); }
}

.cosmo-record img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cosmo-sound-copy h4 {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 54px);
}

.cosmo-sound-copy > p:not(.cosmo-sound-label) {
  max-width: 520px;
  color: rgba(218, 215, 238, 0.72);
  line-height: 1.7;
}

.cosmo-confidence {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  margin: 18px 0;
  padding: 11px 14px;
  border: 1px solid rgba(210, 200, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.cosmo-sound-feedback {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  color: rgba(218, 215, 238, 0.68);
  font-size: 12px;
}

.cosmo-audio-progress {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0 8px;
  color: rgba(223, 219, 239, 0.62);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.cosmo-audio-progress input {
  min-width: 0;
  flex: 1;
  accent-color: #dca9e3;
}

.cosmo-waveform {
  display: flex;
  height: 42px;
  gap: 3px;
  align-items: center;
  margin-bottom: 10px;
}

.cosmo-waveform i {
  width: 3px;
  min-height: 7px;
  border-radius: 999px;
  background: rgba(211, 201, 241, 0.18);
  transition: background 120ms ease;
}

.cosmo-waveform i.active {
  background: linear-gradient(180deg, #f1b4d2, #9c91ee);
}

.cosmo-sound-recommendation {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 12px 0 20px !important;
  padding: 11px 14px;
  border: 1px solid rgba(210, 200, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.cosmo-sound-recommendation strong {
  color: rgba(245, 233, 255, 0.9);
}

.cosmo-sound-customizer {
  display: grid;
  grid-template-columns: minmax(180px, .4fr) 1fr;
  gap: 28px;
  margin-top: 16px;
  padding: 24px 28px;
  border: 1px solid rgba(210, 200, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.cosmo-sound-customizer h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.cosmo-sound-fields {
  display: grid;
  gap: 14px;
}

.cosmo-sound-fields section > span {
  display: block;
  margin-bottom: 7px;
  color: rgba(218, 215, 238, 0.6);
  font-size: 11px;
}

.cosmo-sound-fields section > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.cosmo-sound-fields button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(210, 200, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(226, 222, 240, 0.68);
}

.cosmo-sound-fields button.active {
  border-color: rgba(239, 183, 219, 0.36);
  background: rgba(224, 160, 205, 0.14);
  color: #fff;
}

.cosmo-album-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(240, 209, 164, 0.16);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 15%, rgba(238, 191, 133, 0.12), transparent 38%), rgba(255, 255, 255, 0.025);
  text-align: center;
}

.cosmo-album-page > img {
  width: min(100%, 410px);
  max-height: 390px;
  object-fit: contain;
}

.cosmo-album-page > p:first-of-type {
  color: rgba(239, 208, 166, 0.72);
  letter-spacing: .16em;
  font-size: 10px;
}

.cosmo-album-page h3 {
  margin: 8px 0 12px;
  color: #fff;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(25px, 5vw, 42px);
}

.cosmo-album-page > p:not(:first-of-type) {
  color: rgba(221, 216, 235, .68);
  line-height: 1.7;
}

.cosmo-album-summary {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid rgba(240, 209, 164, .14);
  border-radius: 16px;
  background: rgba(240, 209, 164, .05);
  color: rgba(228, 219, 235, .68);
}

.cosmo-album-summary strong { color: #f4dfbd; }

.cosmo-album-home {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 40px;
  align-items: center;
  text-align: left;
}

.cosmo-album-art {
  display: grid;
  min-height: 420px;
  place-items: center;
  border-right: 1px solid rgba(225, 214, 240, .12);
}

.cosmo-album-art img {
  width: min(100%, 340px);
  max-height: 400px;
  object-fit: contain;
}

.cosmo-album-copy > p:first-child,
.cosmo-album-wizard aside > p {
  margin: 0 0 10px;
  color: rgba(239, 208, 166, .76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.cosmo-album-copy > p:not(:first-child),
.cosmo-album-wizard main > p {
  color: rgba(221, 216, 235, .68);
  line-height: 1.75;
}

.cosmo-album-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.cosmo-album-process li {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(222, 190, 230, .2);
}

.cosmo-album-process span {
  color: rgba(229, 183, 222, .7);
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.cosmo-album-process strong {
  color: rgba(246, 241, 250, .9);
  font-size: 13px;
}

.cosmo-album-actions,
.cosmo-album-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cosmo-album-actions .cosmo-feature-primary {
  min-width: 240px;
}

.cosmo-album-wizard {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 36px;
  min-height: 560px;
  text-align: left;
}

.cosmo-album-wizard aside {
  display: flex;
  min-width: 0;
  padding-right: 28px;
  flex-direction: column;
  border-right: 1px solid rgba(225, 214, 240, .12);
}

.cosmo-album-wizard aside h3 {
  margin: 0 0 26px;
  font-size: 25px;
}

.cosmo-album-wizard aside ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cosmo-album-wizard aside li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(224, 218, 235, .5);
}

.cosmo-album-wizard aside li span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(225, 214, 240, .22);
  border-radius: 50%;
  font-size: 11px;
}

.cosmo-album-wizard aside li.active {
  border-color: rgba(225, 163, 215, .28);
  background: rgba(218, 142, 194, .11);
  color: rgba(255, 238, 246, .95);
}

.cosmo-album-wizard aside li.active span {
  border-color: transparent;
  background: #e7a9c7;
  color: #21121f;
}

.cosmo-album-wizard aside li.done {
  color: rgba(225, 214, 240, .72);
}

.cosmo-album-wizard aside > small {
  margin: 22px 0;
  color: rgba(213, 204, 225, .48);
  line-height: 1.6;
}

.cosmo-album-aside-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.cosmo-album-aside-actions button {
  width: 100%;
}

.cosmo-album-clear {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: rgba(238, 174, 194, .72);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.cosmo-album-clear:hover,
.cosmo-album-clear:focus-visible {
  color: #ffd5e2;
}

.cosmo-album-wizard main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cosmo-album-wizard main h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
}

.cosmo-album-wizard main h4 {
  margin: 24px 0 10px;
  color: rgba(246, 241, 250, .9);
  font-size: 15px;
}

.cosmo-album-wizard textarea,
.cosmo-album-wizard input[type="text"] {
  width: 100%;
  border: 1px solid rgba(216, 159, 226, .56);
  border-radius: 18px;
  outline: 0;
  background: rgba(255, 255, 255, .025);
  color: #f7f2f8;
  font: inherit;
}

.cosmo-album-wizard textarea {
  min-height: 140px;
  margin-top: 20px;
  padding: 18px;
  resize: vertical;
  line-height: 1.75;
}

.cosmo-album-wizard input[type="text"] {
  min-height: 48px;
  margin-top: 7px;
  padding: 0 14px;
}

.cosmo-album-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cosmo-album-choices button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(221, 211, 237, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  color: rgba(230, 224, 239, .68);
}

.cosmo-album-choices button.active {
  border-color: rgba(222, 160, 222, .72);
  background: rgba(222, 144, 196, .12);
  color: #fff;
}

.cosmo-album-form-actions {
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 26px;
}

.cosmo-album-form-actions button {
  min-width: 150px;
}

.cosmo-album-review {
  display: grid;
  margin: 16px 0 22px;
  border-top: 1px solid rgba(225, 214, 240, .12);
}

.cosmo-album-review-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(225, 214, 240, .12);
}

.cosmo-album-review-row span {
  color: rgba(221, 214, 233, .54);
}

.cosmo-album-review-row strong {
  overflow: hidden;
  color: rgba(248, 242, 249, .9);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cosmo-album-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cosmo-album-contact label {
  color: rgba(231, 224, 238, .72);
  font-size: 12px;
}

.cosmo-album-consent {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  color: rgba(225, 218, 236, .62);
  font-size: 11px;
  line-height: 1.6;
}

.cosmo-album-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #efafc2 !important;
  font-size: 11px;
}

.cosmo-album-ready {
  display: grid;
  align-content: center;
  min-height: 100%;
}

.cosmo-album-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 20px 0 6px;
  padding: 16px;
  border: 1px solid rgba(225, 214, 240, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
}

.cosmo-album-preview > span {
  color: rgba(225, 166, 213, .78);
  font-size: 10px;
  letter-spacing: .16em;
}

.cosmo-album-preview strong {
  color: #f8f2fa;
  font-size: 14px;
}

.cosmo-album-preview p {
  margin: 5px 0 0;
  color: rgba(225, 218, 236, .58);
  font-size: 11px;
  line-height: 1.55;
}

.cosmo-album-ready-actions {
  display: flex;
  width: min(100%, 520px);
  gap: 10px;
  margin-top: 14px;
}

.cosmo-album-ready-actions > * {
  display: inline-flex;
  min-height: 46px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.cosmo-test-result-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 26px;
  background: linear-gradient(145deg, #29204d, #0a0d22);
}

.cosmo-test-result-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
}

.cosmo-test-result-card > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(180deg, transparent 15%, rgba(7,8,25,.18) 38%, rgba(7,8,25,.92));
}

.cosmo-test-result-card h3 { margin: 10px 0; font-family: Georgia, "Songti SC", serif; }
.cosmo-test-result-card p { margin: 0 0 14px; color: rgba(255,255,255,.82); }
.cosmo-test-result-card span { margin-right: 10px; color: rgba(244,220,182,.72); font-size: 11px; }
.cosmo-result-actions { display: flex; gap: 10px; margin: 20px 0 10px; }

.cosmo-web-purchase,
.cosmo-web-tour,
.cosmo-poster-preview {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  place-items: center;
  padding: 20px;
}

.cosmo-web-purchase.open,
.cosmo-web-tour.open { display: grid; }

.cosmo-poster-preview { display: grid; }

.cosmo-web-purchase > section,
.cosmo-web-tour > section,
.cosmo-poster-preview > section {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 30px;
  border: 1px solid rgba(210,200,255,.2);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(24,27,57,.99), rgba(8,11,29,.99));
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  color: rgba(230,226,242,.75);
}

.cosmo-poster-preview > section {
  display: grid;
  width: min(100%, 430px);
  max-height: calc(100vh - 40px);
  gap: 12px;
  justify-items: center;
  overflow: auto;
}

.cosmo-poster-preview > section > .cosmo-feature-close { position: absolute; top: 14px; right: 14px; }
.cosmo-poster-preview img { display: block; width: min(100%, 330px); border-radius: 18px; box-shadow: 0 18px 48px rgba(0,0,0,.38); }
.cosmo-poster-preview a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cosmo-poster-preview small { color: rgba(225,220,239,.58); }

.cosmo-web-purchase > section > .cosmo-feature-close { position: absolute; top: 16px; right: 16px; }
.cosmo-web-purchase > section > p:first-of-type,
.cosmo-web-tour > section > p:first-of-type { color: rgba(190,218,241,.62); font-size: 10px; letter-spacing: .16em; }
.cosmo-web-purchase h3,
.cosmo-web-tour h3 { margin: 7px 0 10px; color: #fff; font-size: 25px; }
.cosmo-web-purchase-options { display: grid; gap: 10px; margin: 20px 0 12px; }
.cosmo-web-purchase-options form { margin: 0; }
.cosmo-web-purchase-option {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(218, 199, 255, .18);
  border-radius: 16px;
  background: rgba(154, 129, 219, .08);
  color: #fff;
  text-align: left;
}
.cosmo-web-purchase-option:hover { border-color: rgba(229, 202, 255, .42); background: rgba(166, 132, 223, .14); }
.cosmo-web-purchase-option span { display: grid; gap: 4px; }
.cosmo-web-purchase-option strong { font-size: 13px; }
.cosmo-web-purchase-option small { margin: 0; color: rgba(225, 220, 239, .52); font-size: 10px; }
.cosmo-web-purchase-option b { flex: 0 0 auto; color: #f2d5b4; font-size: 14px; }
.cosmo-web-purchase a { display: inline-block; color: #e4ccf7; font-size: 12px; }
.cosmo-web-purchase small { display: block; margin-top: 14px; line-height: 1.6; }

.cosmo-tour-orbit {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 16px 0;
  place-items: center;
  border: 1px solid rgba(214,203,255,.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,179,211,.22), rgba(144,134,231,.08));
  color: #f0cae0;
  font-size: 28px;
}

.cosmo-tour-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.cosmo-tour-actions > button:first-child { border: 0; background: transparent; color: rgba(225,220,239,.58); }

@media (min-width: 1100px) {
  .cosmo-discover-trigger {
    display: none;
  }
}

@media (max-width: 760px) {
  .cosmo-feature-panel {
    inset: max(8px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
  }

  .cosmo-feature-header,
  .cosmo-feature-view {
    padding-left: 17px;
    padding-right: 17px;
  }

  .cosmo-feature-tabs {
    padding-left: 17px;
    padding-right: 17px;
  }

  .cosmo-feature-grid,
  .cosmo-question-options {
    grid-template-columns: 1fr;
  }

  .cosmo-feature-intro {
    align-items: flex-end;
  }

  .cosmo-sound-stage {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 20px;
  }

  .cosmo-sound-customizer { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .cosmo-test-access { width: 100%; margin: 8px 0 0; justify-content: space-between; }
  .cosmo-feature-intro:has(.cosmo-test-access) { flex-wrap: wrap; }
  .cosmo-feature-guide { display: none; }
  .cosmo-test-result-card { min-height: 360px; }
  .cosmo-result-actions { flex-direction: column; }

  .cosmo-record {
    max-width: 230px;
  }

  .cosmo-album-page {
    padding: 20px;
  }

  .cosmo-album-home,
  .cosmo-album-wizard {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cosmo-album-art {
    min-height: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(225, 214, 240, .12);
  }

  .cosmo-album-art img {
    max-height: 250px;
  }

  .cosmo-album-wizard aside {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(225, 214, 240, .12);
  }

  .cosmo-album-wizard aside ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cosmo-album-wizard aside li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cosmo-album-wizard aside > small {
    display: none;
  }

  .cosmo-album-aside-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
  }

  .cosmo-album-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .cosmo-album-preview > span {
    display: none;
  }

  .cosmo-album-ready-actions {
    display: grid;
    width: 100%;
  }

  .cosmo-album-process,
  .cosmo-album-contact {
    grid-template-columns: 1fr;
  }

  .cosmo-album-actions,
  .cosmo-album-form-actions {
    display: grid;
  }

  .cosmo-album-actions .cosmo-feature-primary,
  .cosmo-album-form-actions button {
    min-width: 0;
    width: 100%;
  }
}
