/* Shared visual layer for verified downloads and device management.
   Purchase and verification states on Get LyricFloat keep their existing styles. */
.portal-eyebrow,
.manage-page .eyebrow,
.manage-page .summary-label,
.download-access .download-group h3 {
  color: var(--lf-accent-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.download-access .platform-card,
.download-access .license-card,
.manage-page .license-summary,
.manage-page .device,
.manage-page .auth-card,
.manage-page .empty-state {
  border: 1px solid var(--lf-border-strong);
  border-radius: 16px;
  background: #101311;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 16px 44px rgba(0, 0, 0, 0.16);
}

.portal-card-icon,
.manage-page .summary-mark {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #19221c;
  color: #8bdcb0;
}

.portal-card-icon svg,
.manage-page .summary-mark svg {
  width: 23px;
  height: 23px;
}

/* Purchase verified: the site nav stays identical to Get LyricFloat. */
.download-shell.has-access {
  width: min(100%, 960px);
}

.download-shell.has-access > .download-brand-mark,
.download-shell.has-access > .download-eyebrow,
.download-shell.has-access > #download-title,
.download-shell.has-access > .download-lede {
  display: none;
}

.download-shell.has-access .download-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.download-access {
  gap: 34px;
}

.download-access-head {
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 4px;
  padding: 0;
  border: 0;
}

.download-access .download-result-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-color: rgba(102, 217, 154, 0.22);
  background: rgba(34, 191, 118, 0.075);
}

.download-access .download-result-icon svg {
  width: 21px;
  height: 21px;
}

.download-access-head .portal-eyebrow {
  margin: 0;
}

.download-access-head h1 {
  margin: 0;
  color: var(--lf-text);
  font-size: clamp(42px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.download-access-head .download-access-kicker {
  margin: 0 !important;
  color: var(--lf-text-soft) !important;
  font-size: clamp(16px, 2vw, 18px) !important;
  font-weight: 450;
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-transform: none;
}

.download-access .download-group {
  gap: 14px;
}

.download-access .download-group h3 {
  margin: 0 0 0 2px;
}

.download-access .platform-grid,
.verified-support-grid {
  gap: 16px;
}

.download-access .platform-grid--two {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.download-access .platform-card,
.download-access .license-card,
.verified-support-grid .platform-card--wide,
.verified-support-grid .license-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 244px;
  padding: clamp(22px, 3vw, 28px);
}

.download-access .platform-card--primary {
  border-color: rgba(102, 217, 154, 0.27);
  background: radial-gradient(circle at 100% 0, rgba(34, 191, 118, 0.105), transparent 42%), #101713;
}

.download-access .platform-card--unavailable {
  background: #0e100f;
}

.download-access .portal-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.download-access .platform-name {
  margin: 0;
  color: #c7cfca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-access .portal-card-copy {
  min-width: 0;
  margin: 22px 0 25px;
}

.download-access .portal-card-copy h4 {
  margin: 0 0 7px;
  color: var(--lf-text);
  font-size: clamp(20px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.download-access .portal-card-copy p,
.download-access .portal-card-copy .platform-status {
  margin: 0;
  color: #aeb7b0;
  font-size: 14px;
  line-height: 1.5;
}

.download-access .platform-card--unavailable .portal-card-copy h4 {
  color: #c7cbc7;
}

.download-access .platform-card--unavailable .platform-status {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-weight: 500;
}

.download-access .platform-card .download-primary,
.download-access .platform-card .download-secondary,
.download-access .license-card .download-secondary {
  width: 100%;
  min-height: 48px;
  margin: auto 0 0;
  border-radius: 10px;
}

.download-access .platform-card .download-primary {
  background: var(--lf-accent);
  color: var(--lf-text-inverse);
}

.download-access .platform-card .download-secondary,
.download-access .license-card .download-secondary {
  border: 1px solid var(--lf-border-strong);
  background: #1b201d;
  color: #e1e8e2;
}

.download-access .platform-card .download-secondary:hover,
.download-access .license-card .download-secondary:hover {
  border-color: rgba(102, 217, 154, 0.35);
  background: #222c25;
  color: #f3f8f3;
}

.download-access .download-placeholder:disabled {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.075);
  background: #171b18;
  color: #a2aaa4;
  cursor: not-allowed;
}

.verified-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verified-support-grid .platform-card--wide,
.verified-support-grid .license-card {
  min-height: 238px;
}

.verified-support-grid .portal-card-copy {
  margin: 20px 0 24px;
}

.portal-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 21px 4px 0;
  border-top: 1px solid var(--lf-border);
}

.portal-note-icon {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: #b1c9b9;
  font-size: 12px;
  font-weight: 700;
}

.portal-note .download-access-helper {
  margin: 0;
  padding: 0;
  border: 0;
  color: #b3bab5;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.download-access .download-back-purchase {
  margin: -12px auto 0;
  color: #b4bbb5;
  font-size: 13px;
}

/* Manage Devices shares the same shell, material, and type scale. */
.manage-page {
  background: radial-gradient(circle at 50% 13%, rgba(34, 191, 118, 0.085), transparent 28rem), linear-gradient(180deg, #050606 0%, #070808 56%, #050506 100%);
  color: var(--lf-text);
}

.manage-page .manage-shell {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
  padding: 26px 0 62px;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  left: 50%;
  width: min(calc(100vw - 2 * var(--lf-page-x)), 1200px);
  min-height: 58px;
  transform: translateX(-50%);
}

body.manage-page #navbar {
  position: relative;
  top: auto;
  right: auto;
  left: 50%;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lf-text);
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.portal-brand-mark {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: #101813;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.24);
}

.portal-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.4);
  transform-origin: 50% 45%;
}

.portal-nav-link {
  color: var(--lf-text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.manage-page .page-header {
  margin: clamp(62px, 7vw, 82px) auto 42px;
  text-align: center;
}

.manage-page .page-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 15px;
}

.manage-page .page-header-brand {
  color: var(--lf-text);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.manage-page .page-header-meta .eyebrow {
  margin: 0;
}

.manage-page h1 {
  font-size: clamp(42px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.manage-page .lede {
  margin: 17px 0 0;
  color: var(--lf-text-soft);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
}

.manage-page .status {
  margin: 0 auto 20px;
  padding: 13px 16px;
  border-color: rgba(102, 217, 154, 0.2);
  border-radius: 10px;
  color: #cbd5cd;
  font-size: 14px;
}

.manage-page .license-summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 148px;
  margin: 0 0 18px;
  padding: clamp(23px, 3vw, 31px);
  border-color: rgba(102, 217, 154, 0.2);
  background: radial-gradient(circle at 0 0, rgba(34, 191, 118, 0.085), transparent 35%), #101713;
}

.manage-page .summary-mark {
  width: 54px;
  height: 54px;
  border-color: rgba(102, 217, 154, 0.17);
}

.manage-page .summary-mark svg {
  width: 27px;
  height: 27px;
}

.manage-page .summary-copy {
  min-width: 0;
}

.manage-page .summary-label {
  margin: 0 0 6px;
}

.manage-page .summary-copy h2 {
  margin: 0;
  color: var(--lf-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.manage-page .device-count {
  margin: 8px 0 0;
  color: #b7c2b9;
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.manage-page .refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 112px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--lf-border-strong);
  border-radius: 10px;
  background: #1a211c;
  color: #dee6df;
  font-size: 13px;
  font-weight: 650;
}

.manage-page .refresh-button svg {
  width: 16px;
  height: 16px;
}

.manage-page .refresh-button:hover {
  border-color: rgba(102, 217, 154, 0.32);
  background: #222b24;
  color: #f2f7f3;
}

.manage-page .device-list {
  gap: 12px;
}

.manage-page .device {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 124px;
  padding: 24px 28px;
}

.manage-page .device-glyph {
  width: 50px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #18211b;
}

.manage-page .device-glyph::before {
  inset: 8px 8px 12px;
  background: linear-gradient(145deg, rgba(102, 217, 154, 0.33), rgba(34, 191, 118, 0.07));
}

.manage-page .device-glyph::after {
  left: 15px;
  right: 15px;
}

.manage-page .device h2 {
  color: var(--lf-text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.manage-page .device-meta {
  gap: 6px 13px;
  margin-top: 9px;
  color: #b0b8b1;
  font-size: 13px;
  line-height: 1.45;
}

.manage-page .active-state {
  color: #a7e1bd;
}

.manage-page .current-device {
  padding: 3px 9px;
  border-color: rgba(102, 217, 154, 0.22);
  background: rgba(34, 191, 118, 0.075);
  color: #b4ebc8;
  font-size: 11px;
}

.manage-page .device-meta > span:last-child:not(.active-state):not(.current-device) {
  flex-basis: 100%;
  color: #a7aea8;
}

.manage-page .remove-button {
  min-width: 91px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  background: #1a1d1b;
  color: #d0d6d1;
  font-size: 13px;
}

.manage-page .remove-button:hover {
  border-color: rgba(232, 128, 128, 0.36);
  background: rgba(232, 128, 128, 0.07);
  color: #f0b3b3;
}

.manage-page .auth-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 36px);
}

.manage-page .auth-card h2 {
  font-size: 22px;
}

.manage-page .auth-icon svg,
.manage-page .dialog-icon svg {
  width: 21px;
  height: 21px;
}

.manage-page label {
  font-size: 13px;
}

.manage-page .auth-copy p:not(.auth-icon),
.manage-page .empty-state p {
  color: #b0b9b2;
  font-size: 14px;
}

.manage-page .empty-state {
  padding: 46px 24px;
}

.manage-page footer {
  display: flex;
  justify-content: center;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--lf-border);
  font-size: 13px;
}

.manage-page footer a {
  color: #b4bcb5;
  text-decoration: none;
}

.manage-page footer a:hover {
  color: var(--lf-accent-strong);
}

.manage-page :is(a, button, input):focus-visible,
.download-access :is(a, button):focus-visible {
  outline: 2px solid var(--lf-accent-strong);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .download-access .platform-grid--two,
  .verified-support-grid {
    grid-template-columns: 1fr;
  }

  .download-access .platform-card,
  .download-access .license-card,
  .verified-support-grid .platform-card--wide,
  .verified-support-grid .license-card {
    min-height: 218px;
  }

  .manage-page .manage-shell {
    width: min(calc(100% - 32px), 960px);
  }

  .manage-page .page-header {
    margin: 76px auto 34px;
  }
}

@media (max-width: 560px) {
  .download-shell.has-access .download-access {
    gap: 27px;
  }

  .download-access-head {
    gap: 10px;
  }

  .download-access .platform-card,
  .download-access .license-card,
  .verified-support-grid .platform-card--wide,
  .verified-support-grid .license-card {
    min-height: 206px;
    padding: 22px;
  }

  .download-access .portal-card-copy {
    margin: 17px 0 21px;
  }

  .manage-page .manage-shell {
    width: min(calc(100% - 28px), 960px);
    padding-top: 16px;
  }

  .portal-nav-link {
    font-size: 12px;
  }

  .manage-page .page-header {
    margin: 62px auto 29px;
  }

  .manage-page .license-summary {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 21px;
  }

  .manage-page .summary-mark {
    width: 44px;
    height: 44px;
  }

  .manage-page .refresh-button {
    grid-column: 2;
    width: fit-content;
    margin-top: 6px;
  }

  .manage-page .device {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 19px;
  }

  .manage-page .device-glyph {
    width: 40px;
    height: 35px;
  }

  .manage-page .remove-button {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .portal-note .download-access-helper {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manage-page .refresh-button,
  .manage-page .remove-button,
  .download-access .download-secondary {
    transition: none;
  }
}
