:root {
  --paper: #f3f1ec;
  --paper-strong: #faf9f6;
  --paper-muted: #e7ebe7;
  --ink: #14171a;
  --ink-soft: #5f6668;
  --studio: #0b0e12;
  --studio-raised: #11151b;
  --studio-panel: #151a21;
  --studio-line: #262c35;
  --studio-text: #f2f3f1;
  --studio-muted: #7e8896;
  --brand: #ff5b36;
  --brand-dark: #d84524;
  --signal: #31c7ae;
  --signal-soft: #a7eee0;
  --hairline: #d9dcd7;
  --radius: 6px;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

/* Keep the API key panel as a distinct card above the API interface card. */
#api-module .api-key-stage {
  box-sizing: border-box;
  width: min(960px, 100%);
  max-width: 960px;
  margin: 0 auto 16px;
}
#api-module .api-key-stage .api-key-box {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #d7ddd7;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(247,247,243,.88));
  box-shadow: 0 18px 48px rgba(24, 30, 28, .08);
}
@media (max-width: 720px) {
  #api-module .api-key-stage .api-key-box { grid-template-columns: 1fr; }
  #api-module .api-key-stage .api-key-box > button { width: 100%; }
}

/* Keep document and nested-list scrollbars consistent across the site. */
* {
  scrollbar-width: thin;
  scrollbar-color: #64727d #10151c;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { border-radius: 999px; background: #10151c; }
*::-webkit-scrollbar-thumb { min-height: 42px; border: 2px solid #10151c; border-radius: 999px; background: #64727d; }
*::-webkit-scrollbar-thumb:hover { background: #91a1ac; }
*::-webkit-scrollbar-corner { background: #10151c; }

html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  zoom: 1.25;
  /* The fixed header is 64px tall; keep the document flow exactly aligned
     with it so no background seam appears above the main content. */
  margin: 0;
  padding-top: 64px;
}
button, input, select { letter-spacing: 0; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Global navigation */
.site-header {
  height: 64px;
  grid-template-columns: minmax(240px, 1fr) auto minmax(170px, 1fr);
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid #d7dad5;
  color: var(--ink);
  background: rgba(250, 249, 246, .96);
  backdrop-filter: blur(16px);
}
.site-brand { gap: 12px; color: inherit; }
.site-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  color: white;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -.04em;
}
.site-brand > span:last-child { display: flex; }
.site-brand strong { font-size: 13px; letter-spacing: -.01em; }
.site-brand small {
  color: #858b87;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .12em;
}
.site-brand-mark.brand-logo,
.brand-mark.brand-logo {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  overflow: visible;
}
.site-brand-mark.brand-logo svg,
.brand-mark.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-nav { gap: 6px; }
.site-nav button {
  padding: 0 13px;
  color: #676d69;
  font-size: 12px;
  font-weight: 650;
}
.site-nav button::after {
  left: 13px;
  right: 13px;
  height: 2px;
  background: transparent;
}
.site-nav button:hover, .site-nav button.active { color: var(--ink); }
.site-nav button.active::after { background: var(--brand); }
.site-nav button.nav-advanced {
  display: inline-flex;
  align-items: center;
}
.site-nav button.nav-advanced::before {
  order: 1;
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  margin: -7px 0 0 2px;
  border-radius: 50%;
  background: #e24b4b;
  content: "";
  pointer-events: none;
}
.runtime-chip {
  display: none !important;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cad8d3;
  border-radius: 4px;
  color: #11675d;
  background: #edf7f4;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .04em;
}
.auth-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav-toggle { display: none; }
.auth-actions span {
  max-width: 150px;
  overflow: hidden;
  color: #626b67;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-actions .header-membership-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #cfd9d5;
  border-radius: 999px;
  color: #11675d;
  background: #edf7f4;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.auth-actions .header-user-name {
  max-width: 132px;
  color: #34433f;
  font-size: 11px;
  font-weight: 850;
}
.auth-actions .header-login-button {
  min-height: 32px;
  padding: 0 15px;
  border-color: #173a34;
  border-radius: 999px;
  color: white;
  background: #173a34;
  font-size: 11px;
  font-weight: 900;
}
.auth-actions .header-login-button:hover { background: #178879; }
.auth-actions .admin-header-button {
  min-height: 28px;
  padding: 0 11px;
  border-color: #178879;
  border-radius: 999px;
  color: #0e6d63;
  background: #e8f7f3;
  font-size: 10px;
  font-weight: 900;
}
.auth-actions .admin-header-button:hover {
  color: white;
  background: #178879;
}
.auth-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cad8d3;
  border-radius: 4px;
  color: #11675d;
  background: #edf7f4;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.auth-actions { position: relative; }
.user-avatar-button {
  width: 38px;
  height: 38px;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border-color: rgba(255, 91, 54, .45) !important;
  color: white !important;
  background: linear-gradient(135deg, #ff5b36, #49c6bf) !important;
  box-shadow: 0 8px 22px rgba(255, 91, 54, .18);
}
.user-avatar-button span {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  height: 100%;
  color: white;
  font-size: 14px;
  font-weight: 950;
}
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 210px;
  padding: 10px;
  border: 1px solid #d6ddd8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 50px rgba(18, 24, 30, .18);
}
.user-menu.hidden { display: none; }
.user-menu-head {
  display: grid;
  gap: 4px;
  padding: 9px 10px 12px;
  border-bottom: 1px solid #edf0ec;
}
.user-menu-head b { color: #17202b; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-head small { color: #77827d; font-family: var(--mono); font-size: 8px; }
.user-menu button {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  margin-top: 6px;
  border-color: transparent;
  color: #17202b;
  background: transparent;
  text-align: left;
}
.user-menu button:hover { background: #f2f5f2; }
.user-menu #logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.logout-menu-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.auth-view {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: start center;
  padding: 34px 24px 68px;
  color: var(--ink);
  background: var(--paper);
}
.auth-card {
  width: min(390px, 100%);
  padding: 26px;
  zoom: .75;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper-strong);
}
.auth-view > .home-footer {
  grid-column: 1 / -1;
  width: calc(100% + 48px);
  margin: 34px -24px -68px;
}
.auth-card h2 {
  margin: 0 0 10px;
  font-size: 36px;
  letter-spacing: -.04em;
}
.auth-card p { color: #66706c; line-height: 1.7; }
.auth-card > p:first-of-type { display: none; }
body.guest-preview .quick-file-button,
body.guest-preview .tune-file-button,
body.guest-preview .quality-file-button,
body.guest-preview #dropzone {
  opacity: .58;
  cursor: not-allowed;
  filter: grayscale(.35);
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.auth-tabs button,
.auth-form button {
  min-height: 42px;
  border: 1px solid #d4dad5;
  border-radius: 5px;
  background: #eef1ec;
  font-weight: 850;
  cursor: pointer;
}
.auth-tabs button.active,
.auth-form button {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}
.auth-tabs-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; }
.auth-tabs:empty { display: none; }
.auth-form {
  display: grid;
  gap: 12px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  color: #64706b;
  font-size: 11px;
  font-weight: 800;
}
.auth-form input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d2d9d4;
  border-radius: 5px;
  color: var(--ink);
  background: white;
  outline: none;
}
.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 91, 54, .14); }
.auth-form > button:disabled { cursor: not-allowed; opacity: .52; }
.auth-agreement { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #64706b; font-size: 11px; font-weight: 700; line-height: 1.5; }
.auth-agreement label { display: inline-flex; align-items: center; gap: 7px; color: inherit; font: inherit; }
.auth-agreement input { width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--brand); }
.auth-agreement > span { white-space: nowrap; }
.auth-agreement button { min-height: 0; padding: 0; color: var(--brand); border: 0; border-radius: 0; background: transparent; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.auth-agreement button:hover { color: #b33b22; background: transparent; }
.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}
.auth-code-row button {
  min-height: 44px;
  color: #17302d;
  border-color: #cfd9d5;
  background: #e5efeb;
}
.auth-code-row button:disabled {
  color: #8c9792;
  cursor: not-allowed;
  background: #edf0ed;
}
.auth-message { min-height: 20px; margin: 12px 0 0; color: #bf4227; font-size: 12px; }

body[data-view="workbench"] { background: var(--studio); }
body[data-view="workbench"] .site-header {
  border-bottom-color: #222831;
  color: #eff1ee;
  background: rgba(11, 14, 18, .96);
}
body[data-view="workbench"] .site-brand-mark { color: #16191c; background: var(--brand); }
body[data-view="workbench"] .site-brand-mark.brand-logo { color: inherit; background: transparent; }
body[data-view="workbench"] .site-brand small,
body[data-view="workbench"] .site-nav button { color: #7f8996; }
body[data-view="workbench"] .site-nav button:hover,
body[data-view="workbench"] .site-nav button.active { color: #f4f4f1; }
body[data-view="workbench"] .runtime-chip {
  border-color: #27483f;
  color: #8de4d3;
  background: #10231f;
}
body[data-view="workbench"] .auth-actions span { color: #97a2ad; }
body[data-view="workbench"] .auth-actions button {
  border-color: #27483f;
  color: #8de4d3;
  background: #10231f;
}
body[data-route="admin"],
body[data-route="admin"] .home-view {
  background: #0b1016;
}
body[data-route="admin"] { zoom: 1; }
body[data-route="admin"] .site-header {
  border-bottom-color: #222831;
  color: #eff1ee;
  background: rgba(11, 14, 18, .96);
}
body[data-route="admin"] .site-brand-mark.brand-logo { color: inherit; background: transparent; }
body[data-route="admin"] .site-brand small,
body[data-route="admin"] .site-nav button { color: #7f8996; }
body[data-route="admin"] .site-nav button:hover,
body[data-route="admin"] .site-nav button.active { color: #f4f4f1; }
body[data-route="admin"] .auth-actions span { color: #97a2ad; }
body[data-route="admin"] .auth-actions button {
  border-color: #27483f;
  color: #8de4d3;
  background: #10231f;
}

/* Home hero */
.home-view { color: var(--ink); background: var(--paper); }
body[data-route="home"],
body[data-route="home"] .home-view {
  background: #0d1116;
}
.home-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  /* 首页顶部留白与独立功能页保持同样的紧凑比例，底部空间不变。 */
  padding: 36px max(38px, calc((100vw - 1240px) / 2)) 72px;
  color: var(--studio-text);
  background: #0d1116;
  background-image: none;
  overflow: hidden;
}
.home-god-rays {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --god-stripes: repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);
  --god-rainbow: repeating-linear-gradient(100deg, #60a5fa 10%, #e879f9 15%, #60a5fa 20%, #5eead4 25%, #60a5fa 30%);
  background-image: var(--god-stripes), var(--god-rainbow);
  background-position: 50% 50%, 50% 50%;
  background-size: 300%, 200%;
  filter: blur(10px) opacity(.34) saturate(180%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 30%, transparent 74%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 30%, transparent 74%);
}
.home-god-rays::after {
  position: absolute;
  inset: 0;
  content: "";
  background-attachment: fixed;
  background-image: var(--god-stripes), var(--god-rainbow);
  background-position: 50% 50%, 50% 50%;
  background-size: 200%, 100%;
  mix-blend-mode: difference;
  animation: home-god-rays 60s linear infinite;
}
@keyframes home-god-rays {
  from { background-position: 50% 50%, 50% 50%; }
  to { background-position: 350% 50%, 350% 50%; }
}
.home-hero-copy, .home-hero > .hero-player { position: relative; z-index: 1; }
.home-hero-copy { width: auto; max-width: 590px; }
.home-kicker {
  margin-bottom: 17px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}
.home-hero h1 {
  margin: 0 0 34px;
  color: #909aa7;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-hero h2 {
  max-width: none;
  margin: 0 0 24px;
  color: #f7f7f4;
  font-size: clamp(30px, 5vw, 67px);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.home-hero p {
  max-width: 520px;
  margin-bottom: 30px;
  color: #a8b0b8;
  font-size: 14px;
  line-height: 1.75;
}
.home-actions { gap: 9px; }
.home-player-file { display: none; }
.home-primary, .home-secondary {
  min-height: 43px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 12px;
}
.home-primary {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: none;
}
.home-primary:hover { background: #ff704f; }
.home-secondary {
  border-color: #343c46;
  color: #e9ece8;
  background: #151a20;
}
.home-quick-action {
  display: none !important;
  border-color: #33746b;
  color: #a7eee0;
  background: #102420;
}
.home-quick-action:hover { color: white; background: #173a34; }
.home-formats {
  gap: 16px;
  margin-top: 20px;
  color: #79838f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
}
.home-formats span::before { color: var(--signal); }

.hero-console { min-width: 0; overflow: hidden; }
.hero-player {
  position: relative;
  border: 1px solid #313945;
  border-radius: 5px;
  color: #c8d2da;
  background: #080c10;
  box-shadow: 0 30px 78px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .025);
  font-family: var(--mono);
}
.hero-player-status { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #202832; color: #61717e; font-size: 8px; letter-spacing: .08em; }
.hero-player-live { display: inline-flex; align-items: center; gap: 7px; color: #9be3cd; }
.hero-player-live i { width: 6px; height: 6px; border-radius: 50%; background: #63e4ad; box-shadow: 0 0 12px #4ae7b0; }
.hero-player-live.is-buffering { color: #ffbc7a; }
.hero-player-live.is-buffering i { background: #ff9a4b; box-shadow: 0 0 12px #ff8630; animation: hero-buffer-pulse .9s ease-in-out infinite alternate; }
.hero-player.is-buffering .hero-player-progress i { box-shadow: 0 0 12px rgba(255, 171, 93, .95); }
@keyframes hero-buffer-pulse { from { opacity: .38; transform: scale(.72); } to { opacity: 1; transform: scale(1.15); } }
.hero-player-status-actions { display: inline-flex; align-items: center; gap: 7px; }
.hero-player-status-actions > span { white-space: nowrap; }
.hero-player-visual { position: relative; height: 276px; overflow: hidden; background: radial-gradient(ellipse at 50% 57%, #391b0c 0%, #171016 24%, #090d12 62%, #070a0e 100%); }
.hero-player-grid { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(105, 144, 167, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 144, 167, .08) 1px, transparent 1px); background-size: 23px 23px; mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.hero-player-spectrum { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-player-folia { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: transparent; }
.hero-player-lyrics { display: none; position: absolute; z-index: 3; inset: 0; padding: 24px 48px; color: #f5f1eb; background: radial-gradient(circle at 50% 47%, rgba(209, 111, 52, .2), transparent 48%), linear-gradient(180deg, rgba(9, 13, 18, .38), rgba(6, 9, 13, .88)); }
.hero-player-lyrics-meta { display: flex; justify-content: space-between; align-items: center; color: #a38e7f; font: 700 8px/1 var(--mono); letter-spacing: .13em; }
.hero-player-lyrics-meta span:last-child { color: #e8a067; }
.hero-player-lyrics-lines { display: grid; align-content: center; height: calc(100% - 18px); overflow: hidden; text-align: center; }
.hero-player-lyrics-lines p { max-width: 100%; margin: 7px 0; overflow: hidden; color: rgba(227, 218, 209, .4); font-size: 15px; font-weight: 560; line-height: 1.45; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; transition: color .28s ease, font-size .28s ease, transform .28s ease; }
.hero-player-lyrics-lines p:empty { visibility: hidden; }
.hero-player-lyrics-lines #hero-player-lyrics-current { color: #fff8f1; font-size: 23px; font-weight: 760; text-shadow: 0 0 24px rgba(255, 145, 72, .45); transform: translateY(-1px); }
.hero-lyric-word { display: inline-block; color: rgba(227, 218, 209, .33); transition: color .12s ease, text-shadow .12s ease, transform .12s ease; }
.hero-lyric-word.is-sung { color: #fff8f1; }
.hero-lyric-word.is-current { color: #ffb16f; text-shadow: 0 0 15px rgba(255, 145, 72, .72); transform: translateY(-1px) scale(1.06); }
.hero-player[data-lyric-mode="fume"] .hero-player-folia,
.hero-player[data-lyric-mode="partita"] .hero-player-folia,
.hero-player[data-lyric-mode="karaoke"] .hero-player-folia { display: none !important; }
.hero-player[data-lyric-mode="fume"] .hero-player-lyrics,
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics,
.hero-player[data-lyric-mode="karaoke"] .hero-player-lyrics { display: block !important; overflow: hidden; padding: 16px 34px; }
.hero-player[data-lyric-mode="fume"] .hero-player-lyrics {
  background:
    radial-gradient(ellipse at 50% 52%, rgba(244, 158, 255, .2), transparent 38%),
    radial-gradient(ellipse at 18% 76%, rgba(90, 198, 229, .15), transparent 30%),
    linear-gradient(180deg, rgba(8, 15, 26, .24), rgba(7, 10, 16, .62));
}
.hero-player[data-lyric-mode="fume"] .hero-player-lyrics::before,
.hero-player[data-lyric-mode="fume"] .hero-player-lyrics::after {
  position: absolute;
  top: 44%;
  width: 42%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(238, 205, 255, .17), transparent 67%);
  content: "";
  filter: blur(17px);
  opacity: .75;
  pointer-events: none;
  animation: compact-lyric-mist 7s ease-in-out infinite alternate;
}
.hero-player[data-lyric-mode="fume"] .hero-player-lyrics::before { left: -7%; }
.hero-player[data-lyric-mode="fume"] .hero-player-lyrics::after { right: -8%; animation-delay: -3s; }
.hero-player[data-lyric-mode="fume"] .hero-player-lyrics-lines,
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics-lines { position: relative; z-index: 1; }
.hero-player[data-lyric-mode="fume"] #hero-player-lyrics-current { color: #fff6ff; text-shadow: 0 0 18px rgba(249, 176, 255, .82), 0 0 44px rgba(110, 209, 255, .4); }
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(236, 207, 136, .16) 18% 18.3%, transparent 18.3% 34%, rgba(236, 207, 136, .12) 34% 34.3%, transparent 34.3% 50%, rgba(236, 207, 136, .12) 50% 50.3%, transparent 50.3% 66%, rgba(236, 207, 136, .16) 66% 66.3%, transparent 66.3%),
    linear-gradient(180deg, rgba(10, 15, 24, .12), rgba(27, 20, 16, .58));
}
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics-lines { align-content: center; }
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics-lines p { position: relative; margin: 5px 0; }
.hero-player[data-lyric-mode="partita"] #hero-player-lyrics-previous { transform: translate(-17%, -4px); }
.hero-player[data-lyric-mode="partita"] #hero-player-lyrics-current { transform: none; }
.hero-player[data-lyric-mode="partita"] #hero-player-lyrics-next { transform: translate(17%, 4px); }
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics-lines::before,
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics-lines::after {
  position: absolute;
  left: 50%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 210, 117, .52), transparent);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics-lines::before { top: 34%; }
.hero-player[data-lyric-mode="partita"] .hero-player-lyrics-lines::after { bottom: 34%; }
.hero-player[data-lyric-mode="partita"] #hero-player-lyrics-current { color: #fff3c9; text-shadow: 0 0 15px rgba(255, 202, 96, .68); }
.hero-player[data-lyric-mode="karaoke"] .hero-player-lyrics {
  background: linear-gradient(180deg, rgba(4, 7, 12, .35), rgba(3, 5, 9, .88));
}
.hero-player[data-lyric-mode="karaoke"] .hero-player-lyrics-lines {
  --karaoke-center-offset: min(100px, 20vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 18px);
  gap: 24px;
  padding: 0 10px;
  align-content: stretch;
}
.hero-player[data-lyric-mode="karaoke"] .hero-player-lyrics-lines p {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: rgba(235, 239, 246, .38);
  font-family: SimHei, "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.3;
}
.hero-player[data-lyric-mode="karaoke"] #hero-player-lyrics-previous { position: relative; align-self: flex-start; text-align: left; transform: translateX(var(--karaoke-center-offset)); }
.hero-player[data-lyric-mode="karaoke"] #hero-player-lyrics-next { display: none; }
.hero-player[data-lyric-mode="karaoke"] .hero-player-lyrics-lines #hero-player-lyrics-current {
  position: relative;
  align-self: flex-end;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  text-align: right;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .72);
  transform: translateX(calc(-1 * var(--karaoke-center-offset)));
}
.hero-player[data-lyric-mode="karaoke"] .hero-lyric-word,
.hero-player[data-lyric-mode="karaoke"] .hero-lyric-word.is-sung,
.hero-player[data-lyric-mode="karaoke"] .hero-lyric-word.is-current { color: rgba(255, 255, 255, .38); text-shadow: none; transform: none; transition: none; }
.hero-player[data-lyric-mode="karaoke"] #hero-player-lyrics-previous::after,
.hero-player[data-lyric-mode="karaoke"] #hero-player-lyrics-current::after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #ffd34c;
  content: attr(data-karaoke-text);
  text-shadow: 0 0 14px rgba(255, 194, 58, .55);
  clip-path: inset(0 calc(100% - var(--karaoke-progress, 0%)) 0 0);
  transition: clip-path .56s cubic-bezier(.2, .72, .18, 1);
  will-change: clip-path;
  pointer-events: none;
}
.hero-player[data-lyric-mode="karaoke"] .hero-player-lyrics-lines.is-karaoke-pair-switch #hero-player-lyrics-previous::after,
.hero-player[data-lyric-mode="karaoke"] .hero-player-lyrics-lines.is-karaoke-pair-switch #hero-player-lyrics-current::after { transition: none; }
.hero-player[data-lyric-mode="karaoke"] #hero-player-lyrics-previous::after { text-align: left; }
.hero-player[data-lyric-mode="karaoke"] #hero-player-lyrics-current::after { text-align: right; }
@keyframes compact-lyric-mist { from { transform: translate3d(-5%, 2%, 0) scale(.92); } to { transform: translate3d(7%, -5%, 0) scale(1.14); } }
.hero-player-visual svg, .hero-player-core, .hero-player-wave { display: none; }
.hero-player-visual-selector { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; }
.hero-player-visual-selector::after { position: absolute; right: 1px; width: 5px; height: 5px; border-right: 1.5px solid #a8b4bb; border-bottom: 1.5px solid #a8b4bb; content: ""; transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.hero-player-visual-selector select { appearance: none; box-sizing: border-box; min-width: 0; height: 18px; padding: 0 11px 0 2px; border: 0; border-radius: 0; color: #c8d2d6; background: #0b0f14; color-scheme: dark; font: 700 8px/18px var(--mono); letter-spacing: .02em; vertical-align: middle; cursor: pointer; }
.hero-player-visual-selector select option { color: #e6edf0; background: #0b0f14; }
.hero-player-visual-selector select option:checked, .hero-player-visual-selector select option:hover { color: #f2a56d; background: #1c252f; }
.hero-player-visual-selector select:hover, .hero-player-visual-selector select:focus { color: #f2a56d; outline: 0; }
.hero-player-orbits { fill: none; stroke: #4ceee5; stroke-width: 1.15; opacity: .58; filter: drop-shadow(0 0 3px rgba(55, 236, 226, .7)); }
.hero-player-points { fill: #88fff4; filter: drop-shadow(0 0 4px #22d9d0); }
.hero-player-core { position: absolute; z-index: 1; top: 50%; left: 50%; width: 105px; height: 105px; transform: translate(-50%, -50%); border-radius: 48% 52% 55% 45%; background: radial-gradient(circle at 47% 45%, #ffe387 0 7%, #ffb13b 20%, #fa7218 43%, #b92d0a 67%, rgba(83, 16, 7, .1) 74%); box-shadow: 0 0 16px #ff6818, 0 0 46px rgba(255, 69, 10, .8), 0 0 82px rgba(220, 42, 0, .4); }
.hero-player-wave { position: absolute; z-index: 2; left: 50%; width: 178px; height: 38px; transform: translateX(-50%); border-top: 2px solid rgba(255, 177, 80, .8); border-radius: 50%; filter: drop-shadow(0 0 5px #ff7e25); }
.hero-player-wave-a { top: 46%; transform: translateX(-50%) rotate(-16deg); }
.hero-player-wave-b { top: 57%; width: 145px; transform: translateX(-50%) rotate(13deg); opacity: .72; }
.hero-player-track { height: 53px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border-top: 1px solid #222a32; border-bottom: 1px solid #222a32; color: #dde6e8; font-size: 12px; }
.hero-player-track strong { padding-left: 9px; border-left: 1px solid #35404a; color: #778b96; font-size: 8px; font-weight: 500; letter-spacing: .09em; }
.hero-player-stems { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.hero-player-stems button { height: 23px; padding: 0 8px; border: 1px solid #38434d; border-radius: 3px; color: #66747d; background: #0c1116; font: 700 8px/1 var(--mono); letter-spacing: .05em; cursor: pointer; }
.hero-player-stems button[aria-pressed="true"] { border-color: #d67538; color: #ffbe8d; background: rgba(178, 74, 19, .18); box-shadow: inset 0 0 12px rgba(252, 105, 25, .08); }
.hero-player-stems button:hover { border-color: #e89961; color: #ffe5d1; }
.hero-player-chevron { margin-left: auto; color: #90a0aa; font-size: 18px; transform: translateY(-3px); }
.hero-player-progress { height: 3px; background: #2b3138; cursor: pointer; touch-action: none; }
.hero-player-progress i { display: block; width: 46%; height: 100%; background: #ff7a26; box-shadow: 0 0 9px rgba(255, 119, 30, .8); }
.hero-player-progress:focus-visible { outline: 1px solid #ff9b5e; outline-offset: 2px; }
.hero-player-controls { height: 53px; display: grid; grid-template-columns: 1fr auto 34px; align-items: center; gap: 13px; padding: 0 15px; color: #85939c; font-size: 8px; letter-spacing: .07em; }
.hero-player-time { font-variant-numeric: tabular-nums; }
.hero-player-now { color: #b4c1c6; }
.hero-player-pause { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 1px solid #ff8b47; border-radius: 50%; color: inherit; background: transparent; box-shadow: 0 0 12px rgba(255, 113, 37, .35); cursor: pointer; }
.hero-player-pause b { width: 3px; height: 11px; background: #ff9b5e; }
.hero-player:not([data-playing="true"]) .hero-player-pause b:first-child { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #ff9b5e; background: transparent; }
.hero-player:not([data-playing="true"]) .hero-player-pause b:last-child { display: none; }
.hero-player-pause:hover { background: rgba(255, 125, 47, .12); }
.hero-player-volume { display: inline-flex; align-items: end; height: 15px; gap: 2px; }
.hero-player-volume i { width: 2px; background: #7e8c95; }
.hero-player-volume i:nth-child(1) { height: 5px; }.hero-player-volume i:nth-child(2) { height: 9px; }.hero-player-volume i:nth-child(3) { height: 13px; }
.hero-player-close { color: #8d9ba5; font-size: 18px; font-family: Arial, sans-serif; font-weight: 200; }
.hero-player[data-effect="spectrum"] .hero-player-visual { background: radial-gradient(ellipse at 50% 57%, #311454 0%, #18101f 27%, #090b13 64%, #07090e 100%); }
.hero-player[data-effect="spectrum"] .hero-player-core { background: radial-gradient(circle at 45% 40%, #ffd3ff 0 7%, #e45cff 22%, #8b35ed 47%, #33116c 70%, rgba(25, 6, 64, .1) 76%); box-shadow: 0 0 16px #d45aff, 0 0 46px rgba(188, 69, 255, .78), 0 0 82px rgba(115, 48, 255, .42); }
.hero-player[data-effect="spectrum"] .hero-player-orbits { stroke: #fb78ff; filter: drop-shadow(0 0 3px rgba(244, 101, 255, .75)); }
.hero-player[data-effect="spectrum"] .hero-player-points { fill: #f5a5ff; filter: drop-shadow(0 0 4px #e95af7); }
.hero-player[data-effect="spectrum"] .hero-player-wave { border-color: rgba(208, 124, 255, .85); filter: drop-shadow(0 0 5px #bd62ff); }
.hero-player[data-effect="aurora"] .hero-player-visual { background: radial-gradient(ellipse at 50% 57%, #073b39 0%, #0c1d2a 29%, #080d14 65%, #060a0e 100%); }
.hero-player[data-effect="aurora"] .hero-player-core { background: radial-gradient(circle at 45% 42%, #dbfff6 0 7%, #54f0b5 23%, #18b3d1 49%, #075071 70%, rgba(0, 43, 68, .1) 76%); box-shadow: 0 0 16px #56f0d0, 0 0 46px rgba(44, 216, 190, .75), 0 0 82px rgba(29, 152, 238, .38); }
.hero-player[data-effect="aurora"] .hero-player-orbits { stroke: #9affe5; filter: drop-shadow(0 0 3px rgba(110, 255, 220, .75)); }
.hero-player[data-effect="aurora"] .hero-player-points { fill: #c4fff2; filter: drop-shadow(0 0 4px #5ffff0); }
.hero-player[data-effect="aurora"] .hero-player-wave { border-color: rgba(93, 255, 200, .86); filter: drop-shadow(0 0 5px #35dec5); }

/* Home tool navigation */
.home-tool-strip {
  max-width: 1240px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px auto 0;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper-strong);
}
.home-tool-strip > button {
  min-height: 86px;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 18px 20px;
  border-right-color: #e1e3de;
  color: var(--ink);
}
.home-tool-strip > button:last-of-type { border-right: 0; }
.home-tool-strip > button:hover { background: #ebece7; }
.home-tool-strip b { color: var(--brand); font-family: var(--mono); font-size: 9px; }
.home-tool-strip strong { font-size: 13px; letter-spacing: -.01em; }
.home-tool-strip small { color: #858c88; font-family: var(--mono); font-size: 8px; }
.home-engine { display: none; }

.quick-band {
  margin-top: 0;
  padding: 96px max(38px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  background: var(--paper);
}
.quick-heading { margin-bottom: 30px; }
.quick-heading .home-kicker { color: #178879; }
.quick-heading h2 {
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -.04em;
}
.quick-heading p { color: #69716f; font-size: 14px; }
.quick-layout { grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr); gap: 18px; }
.quick-console {
  gap: 15px;
  padding: 23px;
  border-color: #292f36;
  border-radius: 6px;
  background: #12171c;
  box-shadow: none;
}
.quick-status-row { padding-bottom: 15px; border-bottom-color: #28313a; }
.quick-status-row strong { color: #eaf0f1; font-size: 12px; }
.quick-status-row small { color: #8ba4ae; font-family: var(--mono); font-size: 8px; }
.quick-runtime-dot.ready { background: #49e6a5; box-shadow: 0 0 18px #49e6a544; }
.quick-field > span { font-size: 9px; }
.quick-field select {
  height: 58px;
  border-color: #303a45;
  border-radius: 4px;
  color: #f4fafb;
  background: #0b1015;
  font-size: 20px;
  font-weight: 700;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick-file-button, .quick-launch, .quick-blank {
  width: 100%;
  min-height: 58px;
  border-radius: 5px;
  font-size: 13px;
}
.quick-file-button { border-color: #344652; color: #d9edf2; background: #1c2a30; }
.quick-launch { border-color: var(--brand); color: white; background: #7f392e; }
.quick-launch:not(:disabled):hover { background: var(--brand); }
.quick-blank { border-color: #3a4652; color: #dbe8eb; background: #10151a; }
.quick-blank:not(:disabled):hover { border-color: #49c6bf; color: #a7eee0; }
.quick-selection {
  min-height: 54px;
  border-left-color: var(--brand);
  color: #afc0c7;
  background: #0b1015;
  font-size: 12px;
}
.quick-selection small { display: block; margin-top: 5px; line-height: 1.45; }
.quick-selection small.ready { color: #4bd7aa; }
.quick-selection small.error { color: #ff8d7f; }
.quick-history {
  min-height: 420px;
  border-color: #292f36;
  border-radius: 6px;
  background: #10151a;
}
.quick-history-head { padding-bottom: 14px; border-bottom-color: #28313a; }
.quick-history-head span { color: #49c6bf; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.quick-history-head strong { color: #f5f6f2; font-size: 28px; letter-spacing: -.03em; }
.quick-history-head button { border-color: #31565d; color: #b8f6f1; background: #102227; }
.quick-output-list { max-height: 302px; gap: 9px; }
.quick-output-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-color: #1f333b;
  border-radius: 5px;
  background: #0b1015;
}
.quick-output-row strong { color: #f0f7f8; font-size: 13px; }
.quick-output-row small { color: #8499a1; font-size: 9px; }
.quick-audio-pair { gap: 10px; }
.quick-audio-lane {
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  gap: 10px;
  padding: 11px;
  border-color: #22343b;
  border-radius: 5px;
  background: #0d1519;
}
.quick-audio-lane b {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  color: #dff7f5;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.quick-audio-lane a, .quick-audio-lane span {
  grid-column: 3;
  grid-row: 1;
  width: 38px;
  min-height: 34px;
  padding: 0;
  border-color: #31565d;
  border-radius: 4px;
  color: #b8f6f1;
  background: #102227;
  font-size: 0;
  font-weight: 850;
}
.quick-audio-lane .download-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-audio-lane a:hover { color: white; border-color: #49c6bf; background: #173a34; }
.quick-audio-lane audio { grid-column: 2; grid-row: 1; height: 34px; }
.quick-audio-lane.unavailable span {
  grid-column: 2 / 4;
  width: auto;
  padding: 0 10px;
  font-size: 10px;
}
.quick-output-row.quick-audio-output-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.quick-audio-output-row .quick-audio-pair {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: stretch;
  justify-self: end;
  gap: 8px;
}
.quick-audio-output-row .quick-audio-lane {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: #31565d;
  border-radius: 4px;
  background: #0e171c;
}
.quick-audio-output-row .quick-audio-lane button {
  min-width: 0;
  min-height: 30px;
  flex: 0 1 auto;
  padding: 0 9px;
  border: 0;
  color: #dff7f5;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.quick-audio-output-row .quick-audio-lane button:hover,
.quick-audio-output-row .quick-audio-lane button.is-playing { color: #ffffff; background: #173a34; }
.quick-audio-output-row .quick-audio-lane a,
.quick-audio-output-row .quick-audio-lane span {
  width: 30px;
  min-height: 30px;
  display: grid;
  flex: 0 0 30px;
  grid-column: auto;
  grid-row: auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid #31565d;
  border-radius: 0;
  color: #b8f6f1;
  background: #102227;
  font-size: 0;
  text-decoration: none;
}
.quick-audio-output-row .quick-audio-lane a:hover { color: #ffffff; border-color: #49c6bf; background: #173a34; }
.quick-audio-output-row .quick-audio-lane .download-icon { width: 15px; height: 15px; }
.quick-audio-output-row .quick-audio-lane.unavailable { min-width: 0; opacity: .62; }
.quick-audio-output-row .quick-audio-lane.unavailable span {
  width: auto;
  min-height: 30px;
  flex: 1 1 auto;
  padding: 0 11px;
  border-left: 0;
  color: #789197;
  background: transparent;
  font-size: 10px;
}
.quick-output-actions > button, .quick-output-actions > a, .quick-output-actions > span {
  min-height: 30px;
  border-color: #263b42;
  border-radius: 4px;
  color: #8adbd4;
  background: #0e171c;
}
.quick-output-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}
.score-output-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  align-items: center;
}
.score-output-actions [data-score-output] {
  grid-column: 1 / -1;
  justify-self: end;
}
.score-output-row > :first-child {
  align-self: start;
}
.score-output-meta {
  display: grid;
  min-width: 0;
}
.score-output-track-picker {
  display: flex;
  width: max-content;
  min-width: 0;
  align-items: center;
  margin-top: 8px;
}
.score-output-track-picker > span {
  flex: 0 0 auto;
  color: #819ba4;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.score-output-track-picker select {
  width: auto;
  min-width: 70px;
  height: 30.56px;
  flex: 0 0 auto;
  field-sizing: content;
  padding: 0 30px 0 10px;
  border: 1px solid #3c9387;
  border-radius: 4px;
  appearance: none;
  color: #f3fffc;
  background: #176b60 url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%23f3fffc' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 7px;
  color-scheme: dark;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.score-output-track-picker select:hover,
.score-output-track-picker select:focus { border-color: #8df2cf; background-color: #1c7f72; outline: 0; }
.score-output-track-picker select option { color: #d7f1ee; background: #0e171c; }
.score-output-actions button:disabled { cursor: not-allowed; opacity: .45; }
.score-band {
  margin-top: 0;
  padding: 96px max(38px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  background: var(--paper-muted);
}
.score-heading { margin-bottom: 30px; }
.score-heading .home-kicker { color: #178879; }
.score-heading h2 {
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -.04em;
}
.score-heading p { color: #69716f; font-size: 14px; }
.score-layout { grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr); gap: 18px; }
.score-console {
  gap: 15px;
  padding: 23px;
  border-color: #292f36;
  border-radius: 6px;
  background: #12171c;
  box-shadow: none;
}
.score-status-row { padding-bottom: 15px; border-bottom-color: #28313a; }
.score-status-row strong { color: #eaf0f1; font-size: 12px; }
.score-status-row small { color: #8ba4ae; font-family: var(--mono); font-size: 8px; }
.score-runtime-dot.ready { background: #49e6a5; box-shadow: 0 0 18px #49e6a544; }
.score-field > span { font-size: 9px; }
.score-field select {
  height: 58px;
  border-color: #303a45;
  border-radius: 4px;
  color: #f4fafb;
  background: #0b1015;
  font-size: 20px;
  font-weight: 700;
}
.score-actions { gap: 12px; }
.score-file-button, .score-launch {
  min-height: 58px;
  border-radius: 5px;
  font-size: 13px;
}
.score-file-button { border-color: #344652; color: #d9edf2; background: #1c2a30; }
.score-launch { border-color: var(--brand); color: white; background: #7f392e; }
.score-launch:not(:disabled):hover { background: var(--brand); }
.score-selection {
  min-height: 54px;
  border-left-color: var(--brand);
  color: #afc0c7;
  background: #0b1015;
  font-size: 12px;
}
.score-history {
  min-height: 420px;
  border-color: #292f36;
  border-radius: 6px;
  background: #10151a;
}
.score-history-head { padding-bottom: 14px; border-bottom-color: #28313a; }
.score-history-head span { color: #49c6bf; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.score-history-head strong { color: #f5f6f2; font-size: 28px; letter-spacing: -.03em; }
.score-history-head button { border-color: #31565d; color: #b8f6f1; background: #102227; }
.score-output-list { max-height: 302px; gap: 9px; }
.score-output-player-shell {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #27414a;
  border-radius: 7px;
  color: #cfe7e5;
  background: linear-gradient(125deg, #0a1217, #102228);
  box-shadow: inset 0 1px rgba(183, 246, 238, .04), 0 8px 18px rgba(0, 0, 0, .16);
}
.score-output-player-shell.is-playing { border-color: #347d76; box-shadow: inset 0 1px rgba(183, 246, 238, .08), 0 0 0 1px rgba(73, 198, 191, .1), 0 8px 18px rgba(0, 0, 0, .18); }
.score-output-player-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #37666a;
  border-radius: 50%;
  color: #a9f1e8;
  background: #10272c;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.score-output-player-toggle > span { width: 0; height: 0; margin-left: 2px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.score-output-player-shell.is-playing .score-output-player-toggle { border-color: #62d6c6; color: #effffc; background: #176158; box-shadow: 0 0 14px rgba(75, 210, 190, .22); }
.score-output-player-shell.is-playing .score-output-player-toggle > span { width: 9px; height: 11px; margin-left: 0; border: 0; background: linear-gradient(to right, currentColor 0 3px, transparent 3px 6px, currentColor 6px 9px); }
.score-output-player-toggle:hover:not(:disabled) { border-color: #7ce9d8; color: #ffffff; background: #18383a; transform: translateY(-1px); }
.score-output-player-toggle:focus-visible, .score-output-player-progress:focus-visible { outline: 2px solid #6adfd0; outline-offset: 2px; }
.score-output-player-toggle:disabled { cursor: default; opacity: .42; }
.score-output-player-main { min-width: 0; display: grid; gap: 8px; }
.score-output-player-caption { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #829da1; font-family: var(--mono); font-size: 8px; font-weight: 750; letter-spacing: .04em; }
.score-output-player-caption > span { min-width: 0; overflow: hidden; color: #b6d7d5; text-overflow: ellipsis; white-space: nowrap; }
.score-output-player-shell.is-playing .score-output-player-caption > span { color: #d9fffa; }
.score-output-player-caption time { flex: 0 0 auto; color: #789296; font-variant-numeric: tabular-nums; }
.score-output-player-progress { position: relative; height: 5px; overflow: visible; border-radius: 99px; background: #26373b; cursor: pointer; touch-action: none; }
.score-output-player-progress[aria-disabled="true"] { cursor: default; opacity: .55; }
.score-output-player-progress i { position: absolute; inset: 0 auto 0 0; display: block; width: 0; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #44bcaf, #93efe0); box-shadow: 0 0 10px rgba(91, 226, 207, .36); transition: width .12s linear; }
.score-output-player-progress i::after { position: absolute; top: 50%; right: -3px; width: 8px; height: 8px; border: 2px solid #eafffb; border-radius: 50%; content: ""; background: #55cfc0; box-shadow: 0 0 8px rgba(101, 240, 218, .55); transform: translateY(-50%) scale(0); transition: transform .16s ease; }
.score-output-player-shell.is-playing .score-output-player-progress i::after,
.score-output-player-progress:hover i::after,
.score-output-player-progress:focus-visible i::after,
.score-output-player-shell.is-seeking .score-output-player-progress i::after { transform: translateY(-50%) scale(1); }
.score-output-player-shell.is-seeking .score-output-player-progress i { transition: none; }
.score-output-player-audio { display: none; }

/* AI modules */
.tune-band, .quality-band {
  margin-top: 0;
  padding: 96px max(38px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--hairline);
}
.tune-band { color: var(--ink); background: var(--paper); }
.quality-band { color: var(--ink); background: var(--paper-muted); }
body[data-route="quality"],
body[data-route="quality"] .home-view {
  background: var(--paper-muted);
}
.tune-heading, .quality-heading { margin-bottom: 30px; }
.tune-heading .home-kicker, .quality-heading .home-kicker { color: #178879; }
.tune-heading h2, .quality-heading h2 {
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -.04em;
}
.tune-heading p, .quality-heading p { color: #69716f; font-size: 14px; }
.tune-layout, .quality-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  gap: 18px;
}
.quality-layout {
  --quality-panel-height: auto;
  align-items: stretch;
}
.tune-console, .quality-console {
  gap: 15px;
  padding: 23px;
  border-radius: 6px;
  box-shadow: none;
}
.tune-console { border-color: #292f36; background: #12171c; }
.quality-console { border-color: #cfd5d1; background: #f8f9f6; }
.quality-layout > .quality-console,
.quality-layout > .quality-history {
  height: var(--quality-panel-height);
  min-height: 0;
  align-self: stretch;
}
.quality-layout > .quality-console {
  display: grid;
  align-content: start;
}
.tune-status-row, .quality-status-row { padding-bottom: 15px; }
.tune-status-row { grid-template-columns: 10px max-content minmax(0, 1fr); }
.tune-status-row strong { min-width: max-content; color: #eaf0f1; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.quality-status-row strong { color: #17202b; font-size: 12px; }
.tune-status-row small { min-width: 0; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.tune-status-row small, .quality-status-row small { font-family: var(--mono); font-size: 8px; }
.tune-field > span, .quality-field > span { font-family: var(--mono); letter-spacing: .05em; }
.tune-field select, .quality-field select { height: 42px; border-radius: 4px; }
.tune-field select { border-color: #333a43; background: #0b0f13; }
.quality-source-display {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid #c5d1cc;
  border-radius: 4px;
  color: #17202b;
  background: rgba(255,255,255,.68);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Keep the administration header focused on navigation and the user menu. */
body[data-route="admin"] .auth-actions #header-membership-level { display: none; }
.tune-file-button, .tune-launch, .tune-blank,
.quality-file-button, .quality-start { min-height: 41px; border-radius: 4px; }
.tune-launch { border-color: var(--brand); color: white; background: var(--brand); }
.tune-selection, .quality-job { border-left-color: var(--brand); }
.quality-start { border-color: #168f7e; background: #168f7e; }
.quality-progress i { background: var(--signal); }
.quality-download { border-radius: 4px; }
.denoise-band { padding: 0 48px 54px; background: #edf1ee; }
.denoise-console { display: grid; gap: 14px; max-width: 940px; margin: 0 auto; padding: 22px; border: 1px solid #ced8d2; border-radius: 6px; background: #f8faf8; }
.denoise-actions { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; gap: 10px; align-items: end; }
.denoise-actions .quality-field { gap: 6px; }
.denoise-actions select { min-height: 41px; }
@media (max-width: 720px) { .denoise-band { padding: 0 18px 34px; } .denoise-actions { grid-template-columns: 1fr; } .denoise-actions .quality-file-button, .denoise-actions .quality-start { width: 100%; } }
.tune-visual, .tune-history, .quality-visual, .quality-history {
  min-height: 430px;
  border-radius: 6px;
  box-shadow: none;
}
.tune-visual figcaption, .quality-visual figcaption { border-radius: 4px; }
.tune-history {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 20px;
  border-color: #292f36;
  background: #10151a;
}
.tune-history-head {
  padding-bottom: 15px;
  border-bottom-color: #252d35;
}
.tune-history-head span { color: var(--signal); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.tune-history-head strong { color: #f3f5f2; font-size: 20px; letter-spacing: -.02em; }
.tune-history-head button {
  min-height: 30px;
  border-radius: 4px;
  border-color: #304944;
  color: #a7eee0;
  background: #10231f;
  font-family: var(--mono);
  font-size: 8px;
}
.tune-history-head button:hover { color: #07100e; border-color: var(--signal); background: var(--signal); }
.tune-output-list { min-height: 0; max-height: none; padding-right: 4px; scrollbar-color: #334039 transparent; }
.tune-output-row { grid-template-columns: minmax(0, 1fr) 46px; }
.tune-output-row button {
  min-height: 55px;
  grid-template-columns: 5px minmax(0, 1fr) 38px;
  border-color: #273039;
  border-radius: 4px;
  background: #11171d;
}
.tune-output-row button i { width: 5px; background: var(--signal); }
.tune-output-row button strong { font-size: 12px; font-weight: 650; }
.tune-output-row button small { color: #74808d; font-family: var(--mono); font-size: 7px; }
.tune-output-row button b { color: #8de4d3; font-family: var(--mono); font-size: 8px; }
.tune-output-row.active button { border-color: #3f695f; background: #12211f; box-shadow: 0 0 18px rgba(49, 199, 174, .13); }
.tune-output-row.active button i { box-shadow: 0 0 13px rgba(49, 199, 174, .78); }
.tune-output-row a {
  border-color: #273039;
  border-radius: 4px;
  color: #8de4d3;
  background: #11171d;
  font-family: var(--mono);
  font-size: 7px;
}
.tune-output-row a:hover, .tune-output-row button:hover { border-color: #3f695f; background: #151d1c; }
.tune-output-empty {
  min-height: 160px;
  border-color: #2a343e;
  border-radius: 4px;
  background: #0b0f13;
}
.tune-output-empty strong { color: #e8ebe8; font-size: 12px; }
.tune-output-empty span { color: #717c89; font-family: var(--mono); font-size: 8px; }
.tune-output-player { height: 32px; margin-top: 12px; }

/* AI vocal tuning workbench */
.tune-workbench {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: stretch;
}
.tune-workbench .tune-console { display: flex; flex-direction: column; }
.tune-upload-grid { display: grid; gap: 10px; }
.tune-upload-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 16px;
  border: 1px dashed #3a4651;
  border-radius: 5px;
  color: #eef4f1;
  background: #0d1217;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.tune-upload-card:hover { border-color: #54c8b4; background: #101b1d; transform: translateY(-1px); }
.tune-upload-card.is-loaded { border-style: solid; border-color: #317a70; background: #10201f; }
.tune-upload-card input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.tune-upload-eyebrow, .tune-editor-head > div > span {
  color: #75d9ca;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.tune-upload-card strong { overflow: hidden; color: #f1f5f3; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tune-upload-card small { color: #82909a; font-size: 11px; line-height: 1.45; }
.tune-job-progress { display: grid; gap: 8px; padding: 11px 12px 12px; border: 1px solid #263b42; border-radius: 4px; background: #0c1519; }
.tune-job-progress.hidden { display: none; }
.tune-job-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; color: #9fb0b2; font-size: 11px; }
.tune-job-progress-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tune-job-progress-head b { flex: 0 0 auto; color: #62e5ca; font-family: var(--mono); font-size: 11px; }
.tune-job-progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #26383d; }
.tune-job-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bda8, #72eed7); box-shadow: 0 0 10px rgba(98, 229, 202, .35); transition: width .35s ease; }
.tune-job-progress.is-complete { border-color: #2b665e; }
.tune-job-progress.is-failed { border-color: #914c46; }
.tune-job-progress.is-failed .tune-job-progress-head b { color: #ff8a7b; }
.tune-job-progress.is-failed .tune-job-progress-track i { background: #d75d4c; box-shadow: none; }
.tune-workbench-actions { margin-top: auto; padding-top: 16px; }
.tune-workbench-actions .tune-launch { flex: 1; }
.tune-workbench-actions .tune-blank { min-width: 112px; }
.tune-editor {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #29333d;
  border-radius: 6px;
  background: #0d1217;
}
.tune-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 17px 19px;
  border-bottom: 1px solid #26323a;
}
.tune-editor-head > div { min-width: 0; }
.tune-editor-head strong { display: block; margin-top: 3px; color: #f2f5f3; font-size: 17px; letter-spacing: -.02em; }
.tune-curve-legend { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; gap: 8px 13px; color: #a5b0b4; font-family: var(--mono); font-size: 9px; }
.tune-curve-legend span { white-space: nowrap; }
.tune-curve-legend span::before { display: inline-block; width: 16px; height: 2px; margin: 0 5px 3px 0; content: ""; vertical-align: middle; }
.tune-curve-legend .source::before { background: #71808d; }
.tune-curve-legend .target::before { background: #64e6cd; box-shadow: 0 0 9px rgba(100,230,205,.65); }
.tune-curve-wrap { position: relative; min-height: 300px; overflow: hidden; background: #080c10; }
#tune-curve-canvas { display: block; width: 100%; height: 100%; min-height: 300px; touch-action: none; }
.tune-curve-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  color: #65737e;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  pointer-events: none;
}
.tune-curve-empty.hidden { display: none; }
.tune-editor-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  padding: 15px 19px;
  border-top: 1px solid #26323a;
  background: #10161b;
}
.tune-slider { display: grid; min-width: 0; gap: 7px; color: #aeb9bd; font-size: 11px; }
.tune-slider span { display: flex; justify-content: space-between; gap: 10px; }
.tune-slider b { color: #6ee0ca; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.tune-slider input { width: 100%; margin: 0; accent-color: #48cfb8; }
.tune-preview-row { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; gap: 9px; padding: 13px 19px 17px; background: #10161b; }
.tune-preview-row button { flex: 0 1 auto; min-width: 0; min-height: 34px; padding: 0 12px; border: 1px solid #34434a; border-radius: 4px; color: #a8eee1; background: #0d1c1d; font-size: 11px; line-height: 1.35; white-space: normal; }
.tune-preview-row button:disabled { opacity: .42; cursor: not-allowed; }
.tune-preview-row .tune-render { margin-left: auto; max-width: 100%; border-color: #2c8f80; color: #fff; background: #198778; }
.tune-render-result { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 13px; padding: 0 19px 17px; color: #77dccb; background: #10161b; font-family: var(--mono); font-size: 9px; }
.tune-render-result.hidden { display: none; }
.tune-render-result audio { width: 100%; height: 31px; accent-color: #52d4bd; }
.tune-render-result a { display: grid; min-height: 31px; padding: 0 10px; border: 1px solid #397b70; border-radius: 4px; color: #b4fff1; place-items: center; text-decoration: none; }
.tune-render-result a:hover { color: #08221e; background: #6ae5cf; }
.tune-engine-note { margin: 15px 0 0; color: #727d84; font-size: 11px; line-height: 1.65; }

@media (max-width: 920px) {
  .tune-workbench { grid-template-columns: 1fr; }
  .tune-editor { min-height: 520px; }
}
@media (max-width: 620px) {
  .tune-editor-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .tune-editor-controls { grid-template-columns: 1fr; gap: 12px; }
  .tune-preview-row { flex-wrap: wrap; }
  .tune-preview-row .tune-render { width: 100%; margin-left: 0; }
  .tune-render-result { grid-template-columns: 1fr; }
}
.quality-history {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 20px;
  border-color: #cfd5d1;
  background: #f8f9f6;
  overflow: hidden;
}
.quality-history-head {
  padding-bottom: 15px;
  border-bottom-color: #dbe2df;
}
.quality-history-head span { color: #168f7e; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.quality-history-head strong { color: #17202b; font-size: 20px; letter-spacing: -.02em; }
.quality-history-head button {
  min-height: 30px;
  border-radius: 4px;
  border-color: #c6d6d2;
  color: #087f78;
  background: #edf4f2;
  font-family: var(--mono);
  font-size: 8px;
}
.quality-history-head button:hover { color: white; border-color: #168f7e; background: #168f7e; }
.quality-output-list {
  min-height: 0;
  max-height: none;
  height: 100%;
  align-content: start;
  grid-auto-rows: max-content;
  margin-top: 12px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c3d0cc transparent;
}
.quality-output-row {
  min-height: 55px;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
}
.quality-output-row button {
  height: 55px;
  min-height: 55px;
  grid-template-columns: 5px minmax(0, 1fr) 38px;
  border-color: #d5dedb;
  border-radius: 4px;
  background: #f1f5f3;
}
.quality-output-row button i { width: 5px; background: #168f7e; }
.quality-output-row button strong { color: #17202b; font-size: 12px; font-weight: 650; }
.quality-output-row button small { color: #6f7d7a; font-family: var(--mono); font-size: 7px; }
.quality-output-row button b { color: #087f78; font-family: var(--mono); font-size: 8px; }
.quality-output-row.active button { border-color: #168f7e; background: #e6f3f0; box-shadow: 0 0 18px rgba(22, 143, 126, .13); }
.quality-output-row.active button i { box-shadow: 0 0 13px rgba(22, 143, 126, .78); }
.quality-output-row a {
  height: 55px;
  border-color: #d5dedb;
  border-radius: 4px;
  color: #087f78;
  background: #f1f5f3;
  font-family: var(--mono);
  font-size: 9px;
}
.quality-output-row a:hover, .quality-output-row button:hover { border-color: #168f7e; background: #edf5f2; }
.quality-output-empty {
  min-height: 160px;
  border-color: #cfd9d6;
  border-radius: 4px;
  background: #eef3f1;
}
.quality-output-empty strong { color: #17202b; font-size: 12px; }
.quality-output-empty span { color: #6f7d7a; font-family: var(--mono); font-size: 8px; }
.quality-output-player { display: none; }
.admin-band {
  padding: 88px max(40px, calc((100vw - 1200px) / 2)) 100px;
  color: #17202b;
  background: #f3f1ec;
}
.admin-heading { max-width: 760px; margin-bottom: 28px; }
.admin-heading .home-kicker { color: var(--brand); }
.admin-heading h2 { margin: 0 0 10px; font-size: 42px; letter-spacing: -.04em; }
.admin-heading p { margin: 0; color: #66706c; font-size: 15px; }
.admin-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.admin-card, .admin-table-card {
  border: 1px solid #d4d9d3;
  border-radius: 6px;
  background: #faf9f6;
}
.admin-card { display: grid; gap: 10px; padding: 20px; }
.admin-card strong { color: #67716d; font-size: 11px; }
.admin-card b { color: #17202b; font-size: 34px; line-height: 1; }
.admin-table-card { padding: 20px; }
.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dde1dc;
}
.admin-table-head strong { font-size: 20px; }
.admin-table-head button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d4d9d3;
  border-radius: 4px;
  color: #17202b;
  background: #f0f1ed;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.admin-users-list { display: grid; gap: 8px; margin-top: 14px; }
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 155px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1e4df;
  border-radius: 5px;
  background: #f6f6f2;
}
.admin-user-row strong,
.admin-user-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-row strong { display: block; font-size: 13px; }
.admin-user-row small { display: block; margin-top: 4px; color: #737d78; font-family: var(--mono); font-size: 8px; }
.admin-role {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 99px;
  color: #0e6d63;
  background: #e1f3ef;
  font-size: 9px;
  font-weight: 900;
}
.admin-console {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  color: #e9edf0;
  background: #0b1016;
}
.admin-console.hidden { display: none; }
.admin-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 24px 18px;
  border-right: 1px solid #202936;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 91, 54, .22), transparent 34%),
    linear-gradient(180deg, #101720, #080b10);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  z-index: 5;
}
.admin-sidebar { grid-template-rows: 1fr; gap: 0; }
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-brand { display: none !important; }
.admin-brand > .site-brand-mark { display: none !important; }
.admin-brand strong { display: block; font-size: 15px; }
.admin-brand small { color: #788796; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.admin-side-nav { display: grid; align-content: start; gap: 8px; }
.admin-side-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9aa7b4;
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.admin-side-nav a:hover {
  color: #fff;
  border-color: #324252;
  background: rgba(255, 255, 255, .07);
}
.admin-side-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #263442;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.admin-side-note { display: none !important; }
.admin-side-note span { color: #fff; font-size: 12px; font-weight: 900; }
.admin-side-note small { color: #7d8c9a; line-height: 1.6; }
.admin-main {
  min-width: 0;
  padding: 34px 34px 60px;
  background:
    radial-gradient(circle at 82% 0%, rgba(73, 198, 191, .18), transparent 32%),
    #0b1016;
}
.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-topbar h2 { margin: 4px 0 8px; color: #fff; font-size: 38px; letter-spacing: -.04em; }
.admin-topbar p { margin: 0; color: #8d9ba8; font-size: 14px; }
.admin-topbar button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #f15b3b;
  border-radius: 8px;
  color: #fff;
  background: #b64632;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.admin-topbar button:hover { background: var(--brand); }
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-metric-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid #23303d;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}
.admin-metric-card.accent { border-color: rgba(255, 91, 54, .42); background: linear-gradient(180deg, rgba(255,91,54,.2), rgba(255,255,255,.04)); }
.admin-metric-card span { color: #95a4b2; font-size: 11px; font-weight: 850; }
.admin-metric-card b { color: #fff; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.admin-metric-card small { color: #6f7e8c; font-family: var(--mono); font-size: 8px; }
.admin-analytics-panel {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid #23303d;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}
.admin-analytics-panel .admin-panel-head { margin-bottom: 8px; }
.admin-analytics-chart { min-height: 228px; }
.admin-chart-legend { display: flex; gap: 16px; margin: 0 0 8px 4px; color: #91a0ad; font-size: 10px; }
.admin-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.admin-chart-legend i { width: 18px; height: 2px; border-radius: 2px; background: #49c6bf; }
.admin-chart-legend i.registrations { background: #f47c58; }
.admin-analytics-chart svg { display: block; width: 100%; height: 202px; overflow: visible; }
.admin-chart-grid line { stroke: #253442; stroke-width: 1; stroke-dasharray: 3 5; }
.admin-chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.admin-chart-line.visitors { stroke: #49c6bf; filter: drop-shadow(0 0 5px rgba(73,198,191,.32)); }
.admin-chart-line.registrations { stroke: #f47c58; filter: drop-shadow(0 0 5px rgba(244,124,88,.28)); }
.admin-chart-labels text { fill: #71808e; font-family: var(--mono); font-size: 9px; text-anchor: middle; }
.admin-chart-empty { display: grid; min-height: 194px; place-items: center; color: #71808e; font-size: 12px; }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 14px;
}
.admin-grid.admin-single-page { grid-template-columns: minmax(0, 1fr); }
.admin-grid.admin-single-page .admin-panel { grid-column: 1 / -1; grid-row: auto; }
.admin-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #23303d;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}
.admin-panel-wide { grid-row: span 2; }
.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #24313e;
}
.admin-panel-head span { color: #49c6bf; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.admin-panel-head strong { display: block; margin-top: 5px; color: #f6f8f7; font-size: 19px; }
.admin-panel-head small { color: #738392; font-size: 10px; }
.admin-users-heading, .admin-finance-heading { display: grid; gap: 6px; }
.admin-users-heading strong, .admin-finance-heading strong { margin-top: 1px; font-size: 24px; letter-spacing: -.03em; }
.admin-user-tabs, .admin-finance-tabs { display: inline-flex; width: max-content; align-items: center; gap: 4px; margin-top: 6px; padding: 3px; border: 1px solid #263746; border-radius: 8px; background: rgba(11, 18, 26, .72); }
.admin-user-tabs button, .admin-finance-tabs button { min-height: 28px; padding: 0 11px; border: 0; border-radius: 6px; color: #81909c; background: transparent; font-size: 11px; font-weight: 850; cursor: pointer; }
.admin-user-tabs button:hover, .admin-finance-tabs button:hover { color: #eafffb; background: rgba(73, 198, 191, .12); }
.admin-user-tabs button.active, .admin-finance-tabs button.active { color: #eafffb; background: linear-gradient(135deg, rgba(73, 198, 191, .28), rgba(73, 198, 191, .1)); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.admin-user-tab-panel.hidden, .admin-finance-tab-panel.hidden { display: none; }
.admin-users-head > small, .admin-finance-head > small { max-width: 260px; line-height: 1.5; text-align: right; }
.admin-queue-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.admin-queue-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
.admin-queue-tabs { display: inline-flex; gap: 6px; margin: 0; padding: 4px; border: 1px solid #263746; border-radius: 10px; background: rgba(11, 18, 26, .72); }
.admin-queue-tabs button { min-height: 30px; padding: 0 14px; border: 0; border-radius: 7px; color: #81909c; background: transparent; font-size: 11px; font-weight: 850; cursor: pointer; }
.admin-queue-tabs button.active { color: #eafffb; background: linear-gradient(135deg, rgba(73, 198, 191, .28), rgba(73, 198, 191, .1)); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.admin-queue-pane.hidden { display: none; }
.admin-queue-clear-overdue { display: inline-flex; align-items: center; min-height: 30px; padding: 0 7px 0 9px; border: 1px solid #34424e; border-radius: 8px; color: #81909c; background: rgba(90, 106, 120, .1); box-shadow: inset 0 1px rgba(255,255,255,.035); font-size: 10px; font-weight: 850; line-height: 1; cursor: default; transition: .18s ease; }
.admin-queue-clear-overdue svg { width: 13px; height: 13px; margin-right: 6px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.admin-queue-clear-overdue b { display: inline-grid; min-width: 17px; height: 17px; margin-left: 7px; padding: 0 4px; place-items: center; border-radius: 50px; color: #798793; background: #273440; font-family: var(--mono); font-size: 9px; }
.admin-queue-clear-overdue.has-overdue { border-color: rgba(242, 90, 82, .85); color: #ffd2cd; background: linear-gradient(135deg, rgba(198, 58, 52, .34), rgba(116, 29, 31, .22)); box-shadow: 0 7px 18px rgba(112, 25, 25, .18), inset 0 1px rgba(255,255,255,.08); cursor: pointer; }
.admin-queue-clear-overdue.has-overdue:hover { transform: translateY(-1px); border-color: #ff8d84; background: linear-gradient(135deg, rgba(220, 67, 59, .46), rgba(133, 31, 34, .34)); }
.admin-queue-clear-overdue.has-overdue b { color: #fff2ef; background: rgba(77, 16, 20, .72); }
.admin-queue-clear-overdue.is-loading { opacity: .65; cursor: wait; }
.admin-queue-refresh { min-height: 30px; padding: 0 12px; border: 1px solid #3d5964; border-radius: 8px; color: #d8f2ed; background: rgba(73, 198, 191, .12); font-size: 10px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.admin-queue-refresh:hover { border-color: #55d8cf; color: #ffffff; background: rgba(73, 198, 191, .2); }
.admin-completed-queue-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0; }
.admin-completed-queue-tools.hidden { display: none; }
.admin-completed-queue-tools > small { margin-right: auto; color: #738392; font-size: 10px; }
.admin-completed-queue-tools label { display: inline-flex; align-items: center; gap: 6px; color: #81909c; font-size: 10px; font-weight: 800; }
.admin-completed-queue-tools select { height: 30px; padding: 0 8px; border: 1px solid #2d3d4c; border-radius: 7px; color: #e8f3f2; background: rgba(12, 18, 25, .82); font-size: 10px; }
.admin-completed-queue-search input { width: 220px; height: 30px; padding: 0 9px; border: 1px solid #2d3d4c; border-radius: 7px; color: #e8f3f2; background: rgba(12, 18, 25, .82); font-size: 11px; }
.admin-queue-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.admin-queue-pager button { min-height: 30px; padding: 0 12px; border: 1px solid #34424e; border-radius: 8px; color: #d8f2ed; background: rgba(73, 198, 191, .1); font-size: 10px; font-weight: 850; cursor: pointer; }
.admin-queue-pager button:disabled { opacity: .42; cursor: default; }
.admin-queue-pager span { color: #94a6b4; font-family: var(--mono); font-size: 10px; }
.admin-console .admin-user-row {
  grid-template-columns: minmax(0, 1fr) 76px 132px;
  border-color: #24313e;
  background: rgba(12, 18, 25, .8);
}
.admin-console .admin-user-row strong { color: #f7f8f6; }
.admin-console .admin-user-row small { color: #7f8e9b; }
.admin-console .admin-role { color: #98f6e5; background: rgba(73, 198, 191, .14); }
.admin-projects-list,
.admin-system-list { display: grid; gap: 9px; }
.admin-queue-section + .admin-queue-section { margin-top: 18px; }
.admin-queue-title { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; }
.admin-queue-title strong { color: #e8f3f2; font-size: 12px; }
.admin-queue-title small { margin-left: auto; color: #738392; font-size: 9px; }
.admin-queue-dot { width: 7px; height: 7px; border-radius: 50%; background: #758594; }
.admin-queue-dot.active { background: #ff8a68; box-shadow: 0 0 0 4px rgba(255, 138, 104, .12); }
.admin-queue-dot.completed { background: #5be3ad; box-shadow: 0 0 0 4px rgba(91, 227, 173, .11); }
.admin-queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.admin-queue-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: max-content; }
.admin-queue-row b { color: #e8f3f2; font-family: var(--mono); font-size: 9px; font-weight: 800; white-space: nowrap; }
.admin-queue-row .admin-queue-plan { padding: 3px 6px; border-radius: 4px; color: #97f1e1; background: rgba(73, 198, 191, .12); font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.admin-queue-row .admin-queue-source { padding: 3px 6px; border: 1px solid rgba(138, 159, 176, .3); border-radius: 4px; color: #c3d0d9; background: rgba(138, 159, 176, .1); font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.admin-queue-row .admin-queue-source.is-api { color: #ffd39c; border-color: rgba(255, 180, 89, .4); background: rgba(255, 180, 89, .12); }
.admin-queue-row .admin-queue-source.is-web { color: #a7e7ff; border-color: rgba(89, 191, 255, .35); background: rgba(89, 191, 255, .11); }
.admin-queue-row .admin-queue-source.is-legacy { color: #a7b0b8; background: rgba(138, 159, 176, .08); }
.admin-queue-retry { min-height: 28px; width: auto; padding: 0 12px; border: 1px solid rgba(255, 176, 114, .52); border-radius: 8px; color: #ffe0c4; background: linear-gradient(135deg, rgba(255, 138, 104, .24), rgba(101, 46, 27, .18)); font-size: 10px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.admin-queue-retry:hover { border-color: #ffbf81; color: #fff4e8; background: linear-gradient(135deg, rgba(255, 150, 92, .34), rgba(126, 55, 27, .28)); transform: translateY(-1px); }
.admin-queue-retry:disabled { opacity: .58; cursor: wait; transform: none; }
.admin-queue-retry-disabled { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid rgba(238, 94, 82, .34); border-radius: 8px; color: #ffaaa1; background: rgba(238, 94, 82, .08); font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-queue-progress { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: center; gap: 8px; width: min(340px, 100%); margin-top: 8px; }
.admin-queue-progress i { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: linear-gradient(90deg, #ff8a68, #49c6bf); box-shadow: 0 0 12px rgba(73, 198, 191, .18); transition: width .28s ease; }
.admin-queue-progress::before { content: ""; grid-column: 1; grid-row: 1; height: 5px; border-radius: 99px; background: rgba(103, 128, 153, .22); }
.admin-queue-progress i { grid-column: 1; grid-row: 1; }
.admin-queue-progress span { color: #b8f3e7; font-family: var(--mono); font-size: 9px; font-weight: 850; }
.admin-queue-row.is-completed { border-color: rgba(91, 227, 173, .35); background: rgba(16, 34, 30, .72); }
.admin-queue-row.is-completed b { color: #91f4cd; }
.admin-queue-row.is-completed .admin-queue-plan { color: #b9f6e2; background: rgba(91, 227, 173, .12); }
.admin-queue-row.is-running { border-color: rgba(255, 138, 104, .36); background: rgba(35, 25, 18, .7); }
.admin-queue-row.is-running b { color: #ffb18d; }
.admin-queue-row.is-queued { border-color: rgba(103, 128, 153, .32); background: rgba(13, 22, 32, .72); }
.admin-queue-row.is-failed { border-color: rgba(244, 109, 109, .5); background: rgba(44, 19, 22, .72); }
.admin-queue-row.is-failed b,
.admin-queue-row.is-failed strong { color: #ffaaa2; }
.admin-queue-row.is-failed .admin-queue-plan { color: #ffbeb8; background: rgba(244, 109, 109, .14); }
.admin-queue-row.is-overdue { position: relative; overflow: hidden; border-color: rgba(244, 109, 109, .82); background: linear-gradient(100deg, rgba(141, 39, 39, .32), rgba(122, 35, 35, .15)); box-shadow: inset 3px 0 #f0625c; }
.admin-queue-row.is-overdue::after { content: "超时"; position: absolute; top: 8px; right: 9px; padding: 2px 5px; border: 1px solid rgba(255, 147, 141, .5); border-radius: 4px; color: #ffbbb5; background: rgba(91, 19, 23, .55); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.admin-queue-row.is-overdue strong,
.admin-queue-row.is-overdue b { color: #ffaaa2; }
.admin-queue-row.is-overdue .admin-queue-plan { color: #ffbeb8; background: rgba(244, 109, 109, .16); }
.admin-project-row,
.admin-system-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #24313e;
  border-radius: 9px;
  background: rgba(12, 18, 25, .76);
}
.admin-project-row strong,
.admin-system-row strong { color: #f7f8f6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-project-row small,
.admin-system-row small { color: #7f8e9b; font-family: var(--mono); font-size: 8px; }
.admin-status-ready { color: #8df2cf; }
.admin-status-wait { color: #f3a38d; }
.admin-panel-billing { grid-column: 1 / -1; }
.auth-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; pointer-events: none !important; }
.admin-user-tools { display: flex; gap: 8px; margin: 0 0 12px; }
.admin-user-tools input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #2d3d4c; border-radius: 7px; color: #e8f3f2; background: rgba(12, 18, 25, .72); }
.admin-user-tools button, .admin-user-actions button { min-height: 30px; padding: 0 9px; border: 1px solid #3d5964; border-radius: 6px; color: #d8f2ed; background: rgba(73, 198, 191, .12); font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.admin-user-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0 0 12px; padding: 12px; border: 1px solid rgba(73, 198, 191, .24); border-radius: 9px; background: rgba(73, 198, 191, .04); }
.admin-user-form label { display: grid; gap: 5px; }
.admin-user-form label > span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-user-form input, .admin-user-form select { width: 100%; min-height: 34px; box-sizing: border-box; padding: 0 9px; border: 1px solid #2d3d4c; border-radius: 6px; color: #e8f3f2; background: rgba(12, 18, 25, .72); }
.admin-referral-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto auto; gap: 10px; align-items: end; margin: 0 0 12px; padding: 12px; border: 1px solid rgba(73, 198, 191, .24); border-radius: 9px; background: rgba(73, 198, 191, .04); }
.admin-referral-form > div:first-child { display: grid; gap: 3px; }
.admin-referral-form > div:first-child > span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-referral-form > div:first-child strong { color: #e8f3f2; font-size: 13px; }
.admin-referral-form > div:first-child small { color: #8d9ba8; font-size: 10px; }
.admin-referral-form label:not(.admin-check) { position: relative; display: grid; gap: 5px; }
.admin-referral-form label > span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-referral-form input[type="number"] { width: 100%; min-height: 34px; box-sizing: border-box; padding: 0 25px 0 9px; border: 1px solid #2d3d4c; border-radius: 6px; color: #e8f3f2; background: rgba(12, 18, 25, .72); }
.admin-referral-form label em { position: absolute; right: 9px; bottom: 9px; color: #8d9ba8; font-size: 10px; font-style: normal; }
.admin-referral-form .admin-check { display: flex; align-items: center; gap: 6px; min-height: 34px; color: #c8d8d5; font-size: 10px; white-space: nowrap; }
.admin-referral-actions { display: flex; align-items: center; gap: 7px; min-height: 34px; }
.admin-referral-actions button { min-height: 30px; padding: 0 9px; border: 1px solid #3d5964; border-radius: 6px; color: #d8f2ed; background: rgba(73, 198, 191, .12); font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.admin-referral-actions small { color: #8df2cf; font-size: 10px; white-space: nowrap; }
.admin-referral-overview { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(135, 158, 171, .2); }
.admin-referral-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.admin-referral-summary > div { min-width: 0; padding: 10px 11px; border: 1px solid rgba(73, 198, 191, .16); border-radius: 8px; background: rgba(73, 198, 191, .045); }
.admin-referral-summary span { display: block; color: #80919d; font-size: 9px; font-weight: 800; }
.admin-referral-summary strong { display: block; margin-top: 5px; color: #eafffb; font-family: var(--mono); font-size: 17px; }
.admin-referral-summary small { display: block; margin-top: 4px; color: #718391; font-size: 8px; line-height: 1.35; }
.admin-referral-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-referral-record-section { min-width: 0; }
.admin-referral-record-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 0 2px 8px; border-bottom: 1px solid rgba(135, 158, 171, .16); }
.admin-referral-record-head span { color: #49c6bf; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.admin-referral-record-head strong { display: block; margin-top: 3px; color: #e8f3f2; font-size: 12px; }
.admin-referral-record-head > small { color: #718391; font-size: 8px; white-space: nowrap; }
.admin-referral-record-list { display: grid; max-height: 320px; overflow: auto; gap: 7px; padding-right: 2px; }
.admin-referral-record-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid rgba(135, 158, 171, .16); border-radius: 8px; background: rgba(8, 14, 20, .3); }
.admin-referral-link { display: flex; min-width: 0; align-items: center; gap: 7px; }
.admin-referral-link > div { min-width: 0; flex: 1; }
.admin-referral-link strong { display: block; overflow: hidden; color: #dfecea; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-referral-link small { display: block; overflow: hidden; margin-top: 3px; color: #718391; font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-referral-link b { flex: 0 0 auto; color: #49c6bf; font-size: 8px; font-weight: 800; white-space: nowrap; }
.admin-referral-record-status { min-width: 102px; text-align: right; }
.admin-referral-record-status strong { display: block; color: #d9e3e1; font-size: 9px; white-space: nowrap; }
.admin-referral-record-status.rewarded strong { color: #8df2cf; }
.admin-referral-record-status.pending strong { color: #e4bc79; }
.admin-referral-record-status small { display: block; max-width: 148px; overflow: hidden; margin-top: 4px; color: #718391; font-family: var(--mono); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.admin-referral-empty { padding: 18px 10px; border: 1px dashed rgba(135, 158, 171, .25); border-radius: 8px; color: #718391; font-size: 10px; line-height: 1.55; text-align: center; }
.admin-user-form .admin-user-wide { grid-column: span 2; }
.admin-user-actions { display: flex; align-items: end; gap: 7px; }
.admin-user-actions small { color: #8df2cf; font-size: 10px; }
.admin-user-current { align-self: center; color: #7f8e9b; font-size: 9px; white-space: nowrap; }
.admin-user-action-dialog { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(3, 7, 11, .68); }
.admin-user-action-dialog.hidden { display: none; }
.admin-user-action-card { width: min(100%, 390px); padding: 18px; border: 1px solid #2d3d4c; border-radius: 12px; color: #e8f3f2; background: #111a23; box-shadow: 0 24px 68px rgba(0,0,0,.42); }
.admin-user-action-card > strong { display: block; font-size: 16px; }
.admin-user-action-card > p { margin: 9px 0 14px; color: #a8b5bf; font-size: 12px; line-height: 1.7; }
.admin-user-action-card label { display: grid; gap: 6px; margin: 0 0 8px; }
.admin-user-action-card label > span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-user-action-card input { min-height: 34px; padding: 0 9px; border: 1px solid #2d3d4c; border-radius: 6px; color: #e8f3f2; background: rgba(12, 18, 25, .72); }
.admin-user-action-card > small { display: block; min-height: 16px; color: #ff9a8d; font-size: 10px; }
.admin-user-action-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.admin-user-action-buttons button { min-height: 32px; padding: 0 11px; border: 1px solid #3d5964; border-radius: 6px; color: #d8f2ed; background: rgba(73, 198, 191, .12); font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-user-action-buttons #admin-user-action-confirm { border-color: #b95342; color: #fff; background: #a94132; }
.admin-user-action-buttons #admin-user-action-confirm:disabled { opacity: .6; cursor: wait; }
.admin-user-manage-row { grid-template-columns: minmax(180px, 1fr) 70px 112px 62px auto !important; }
.admin-user-plan, .admin-user-ban { color: #aab8c3; font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.admin-user-ban { color: #8df2cf; }
.admin-user-ban.banned { color: #ff9a8d; }
.system-config-tabs { display: flex; gap: 7px; margin: -2px 0 16px; padding-bottom: 12px; border-bottom: 1px solid #24313e; }
.system-config-tabs button { min-height: 30px; padding: 0 12px; border: 1px solid #2d3d4c; border-radius: 7px; color: #98a7b4; background: rgba(12, 18, 25, .72); font-size: 11px; font-weight: 800; cursor: pointer; }
.system-config-tabs button:hover { border-color: #49c6bf; color: #dffcf6; }
.system-config-tabs button.active { border-color: #49c6bf; color: #092521; background: #49c6bf; }
.system-config-tab-host > .admin-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.system-config-tab-host > .admin-panel.hidden { display: none; }
.admin-pricing-editor { margin: 4px 0 18px; padding: 14px; border: 1px solid rgba(73, 198, 191, .18); border-radius: 10px; background: rgba(73, 198, 191, .035); }
.admin-pricing-editor .admin-panel-head { margin-bottom: 12px; }
.admin-pricing-head { align-items: flex-end; }
.admin-pricing-heading { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.admin-pricing-head > small { max-width: 230px; line-height: 1.5; text-align: right; }
.admin-pricing-tabs { display: flex; flex: 0 0 auto; gap: 7px; margin: 0 0 1px; }
.admin-pricing-tabs button { min-height: 32px; padding: 0 13px; border: 1px solid #2d3d4c; border-radius: 7px; color: #98a7b4; background: rgba(12, 18, 25, .72); font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-pricing-tabs button:hover { border-color: #49c6bf; color: #dffcf6; }
.admin-pricing-tabs button.active { border-color: #49c6bf; color: #092521; background: #49c6bf; }
.admin-pricing-pane { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-pricing-pane.hidden { display: none; }
.admin-pricing-group { grid-column: 1 / -1; padding: 14px; border: 1px solid rgba(135, 158, 171, .2); border-radius: 10px; background: rgba(8, 14, 20, .26); }
.admin-pricing-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(135, 158, 171, .16); }
.admin-pricing-group-head span { color: #49c6bf; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.admin-pricing-group-head strong { display: block; margin-top: 4px; color: #e8f3f2; font-size: 14px; }
.admin-pricing-group-head small { color: #82919d; font-size: 9px; }
.admin-pricing-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.admin-benefit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-config-load-error { grid-column: 1 / -1; padding: 12px; border: 1px solid rgba(237, 112, 112, .28); border-radius: 6px; color: #ffaaa5; background: rgba(126, 32, 32, .12); font-size: 12px; }
.admin-benefit-column { display: grid; gap: 7px; }
.admin-benefit-column > span { color: #e8f3f2; font-size: 11px; font-weight: 800; }
.admin-benefit-column textarea { min-height: 132px; resize: vertical; line-height: 1.65; }
.admin-subscription-period-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-subscription-period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid rgba(135, 158, 171, .16); border-radius: 8px; background: rgba(8, 14, 20, .35); }
.admin-subscription-period > strong { grid-column: 1 / -1; color: #e8f3f2; font-size: 12px; }
.admin-subscription-period label { gap: 4px; }
.admin-subscription-period label > span { font-size: 9px; }
.admin-pricing-row { grid-column: span 2; display: grid; grid-template-columns: minmax(104px, 1fr) repeat(2, minmax(72px, .7fr)); align-items: end; gap: 8px; padding: 9px; border: 1px solid rgba(135, 158, 171, .16); border-radius: 8px; background: rgba(8, 14, 20, .35); }
.admin-capability-row { grid-template-columns: minmax(112px, .8fr) minmax(180px, 1.5fr) repeat(2, minmax(72px, .65fr)); }
.admin-capability-row textarea { min-height: 44px; resize: vertical; line-height: 1.45; }
.admin-pricing-row strong { display: block; color: #e8f3f2; font-size: 12px; }
.admin-pricing-row small { display: block; margin-top: 3px; color: #8d9ba8; font-size: 9px; }
.admin-pricing-row label { gap: 4px; }
.admin-pricing-row label > span { font-size: 9px; }
.admin-billing-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.admin-billing-form label { display: grid; gap: 6px; }
.admin-billing-form label > span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-billing-form input,
.admin-billing-form select,
.admin-billing-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2b3947;
  border-radius: 7px;
  color: #eef3f1;
  background: #111a23;
  font: inherit;
  font-size: 11px;
}
.admin-billing-form input,
.admin-billing-form select {
  min-height: 36px;
  padding: 0 10px;
}
.admin-billing-form textarea {
  min-height: 96px;
  padding: 9px 10px;
  font-family: var(--mono);
  line-height: 1.5;
  resize: vertical;
}
.admin-billing-form .admin-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  gap: 8px;
}
.admin-billing-form .admin-field-label i { color: inherit; font: inherit; font-style: normal; }
.admin-secret-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #344555;
  border-radius: 6px;
  color: #91a6b5;
  background: #151f29;
  cursor: pointer;
}
.admin-secret-toggle:hover,
.admin-secret-toggle[aria-pressed="true"] { color: #eef3f1; border-color: #607b8f; background: #20303e; }
.admin-secret-toggle:disabled { cursor: wait; opacity: .55; }
.admin-secret-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-secret-value.secret-masked { -webkit-text-security: disc; }
.admin-autofill-decoy {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@keyframes admin-autofill-detected { from { opacity: .999; } to { opacity: 1; } }
.admin-billing-form input:-webkit-autofill,
.admin-billing-form input:-webkit-autofill:hover,
.admin-billing-form input:-webkit-autofill:focus {
  animation-name: admin-autofill-detected;
  animation-duration: .01s;
  -webkit-text-fill-color: #eef3f1 !important;
  caret-color: #eef3f1;
  box-shadow: 0 0 0 1000px #111a23 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #111a23 inset !important;
  border-color: #2b3947 !important;
}
.admin-billing-wide { grid-column: span 2; }
.admin-payment-gateway-hint { grid-column: 1 / -1; margin: -4px 0 2px; color: #6f8c99; font-size: 10px; line-height: 1.45; }
.admin-payment-direct-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid #2b3947; border-radius: 7px; background: #111a23; }
.admin-payment-direct-fields > p { grid-column: 1 / -1; margin: 0; color: #8d9ba8; font-size: 10px; line-height: 1.5; }
.admin-payment-direct-fields label { display: grid; gap: 6px; }
.admin-payment-direct-fields label > span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-payment-direct-fields textarea { width: 100%; min-height: 72px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #2b3947; border-radius: 7px; color: #eef3f1; background: #0d151d; font: 10px var(--mono); resize: vertical; }
.admin-payment-direct-fields .admin-direct-wide { grid-column: 1 / -1; }
.admin-check { display: flex !important; align-items: center; gap: 8px !important; padding-top: 20px; }
.admin-check input { width: 15px; min-height: 15px; accent-color: #49c6bf; }
.admin-check span { color: #d9e1e0 !important; }
.admin-billing-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.admin-billing-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #49c6bf;
  border-radius: 7px;
  color: #071319;
  background: #49c6bf;
  font-weight: 900;
  cursor: pointer;
}
.admin-billing-actions small { color: #8df2cf; }
.admin-billing-actions small.error { color: #ff9a8d; }
.admin-models-form { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-service-config-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #283847;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(73, 198, 191, .08), transparent 30%),
    linear-gradient(180deg, rgba(11, 17, 23, .95), rgba(10, 14, 19, .86));
  box-shadow: inset 0 1px 0 rgba(223, 252, 246, .035), 0 10px 28px rgba(2, 6, 10, .2);
}
.admin-service-config-group[data-service="lyrics"] { border-left: 3px solid #49c6bf; }
.admin-service-config-group[data-service="reverse"] { border-left: 3px solid #74a8d6; }
.admin-service-config-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #263746;
}
.admin-service-config-head > div { display: grid; gap: 5px; }
.admin-service-config-head span { color: #a9bac5; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-service-config-group[data-service="lyrics"] .admin-service-config-head span { color: #66d7cd; }
.admin-service-config-group[data-service="reverse"] .admin-service-config-head span { color: #8fbee7; }
.admin-service-config-head strong { color: #f1f7f6; font-size: 17px; line-height: 1.25; }
.admin-service-config-head small { max-width: 820px; color: #7f909d; font-size: 10px; line-height: 1.6; text-align: left; }
.admin-service-config-head-with-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 6px 24px;
}
.admin-service-config-head-with-status > small { grid-column: 1; }
.admin-service-config-head-with-status > .admin-model-status-inline {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  box-sizing: border-box;
}
.admin-service-config-body { display: grid; gap: 13px; }
.admin-model-config-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.admin-model-config-section + .admin-model-config-section {
  padding-top: 14px;
  border-top: 1px solid #263746;
}
.admin-model-config-section-primary {
  padding: 16px;
  border: 1px solid rgba(73, 198, 191, .2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 52, 58, .4), rgba(10, 15, 21, .78));
  box-shadow: inset 0 1px 0 rgba(223, 252, 246, .03);
}
.admin-model-config-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.admin-model-config-head > div { display: grid; gap: 3px; }
.admin-model-config-head span { color: #49c6bf; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-model-config-head strong { color: #e8f3f2; font-size: 14px; line-height: 1.25; }
.admin-model-config-head small { max-width: 820px; color: #7f909d; font-size: 9px; line-height: 1.55; text-align: left; }
.admin-model-config-head-with-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 5px 24px;
}
.admin-model-config-head-with-status > small { grid-column: 1; }
.admin-model-config-head-with-status > .admin-model-status-inline {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  box-sizing: border-box;
}
.admin-model-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-model-config-grid label { display: grid; gap: 6px; }
.admin-model-toggle-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 36px;
  min-width: 0;
}
.admin-model-toggle-row .admin-check {
  flex: 0 1 auto;
  padding-top: 0;
  white-space: nowrap;
}
.admin-model-config-details {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(73, 198, 191, .12);
  border-radius: 14px;
  background: rgba(8, 14, 20, .28);
}
.admin-model-config-details > summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: #b2c2cd;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.admin-model-config-details > summary::-webkit-details-marker { display: none; }
.admin-model-config-details > summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #314454;
  border-radius: 50%;
  color: #93a3b1;
  background: #0f1820;
  font-size: 13px;
  line-height: 1;
}
.admin-model-config-details[open] > summary::after { content: "−"; }
.admin-model-config-details > .admin-model-config-grid { padding-top: 4px; }
.admin-model-test-actions { display: flex; align-items: center; gap: 10px; }
.admin-model-test-actions button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #3f817d;
  border-radius: 7px;
  color: #bff7eb;
  background: #122b2c;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.admin-model-test-actions button:hover { border-color: #49c6bf; color: #fff; }
.admin-model-test-actions button:disabled { opacity: .55; cursor: wait; }
.admin-model-test-actions small { color: #8df2cf; font-size: 10px; }
.admin-model-test-actions small.error { color: #ff9a8d; }
.admin-model-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 12px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid #2b3947;
  border-radius: 7px;
  background: #111a23;
}
.admin-model-status span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-model-status strong { color: #dce9e6; font-size: 11px; }
.admin-model-status small { grid-column: 1 / -1; color: #697986; font-family: var(--mono); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sms-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; align-content: center; padding: 10px 12px; border: 1px solid #2b3947; border-radius: 7px; background: #111a23; }
.admin-sms-status span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-sms-status strong { color: #dce9e6; font-size: 11px; }
.admin-sms-status small { grid-column: 1 / -1; color: #697986; font-size: 9px; line-height: 1.5; }
.admin-sms-test input { flex: 0 1 240px; }
.deployment-summary { margin: 0 0 16px; padding: 11px 12px; border: 1px solid #2b3947; border-radius: 8px; color: #dce9e6; background: #111a23; font-size: 12px; font-weight: 800; }
.deployment-summary.ready { border-color: rgba(141, 242, 207, .4); color: #8df2cf; }
.deployment-summary.waiting { border-color: rgba(243, 163, 141, .45); color: #f3c0b0; }
.deployment-section { display: grid; gap: 8px; margin-top: 16px; }
.deployment-section > strong { color: #dce9e6; font-size: 12px; }
.deployment-list { display: grid; gap: 8px; }
.deployment-status-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.deployment-status-item {
  min-width: 0;
  min-height: 82px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #263541;
  border-radius: 8px;
  background: rgba(12, 18, 25, .76);
}
.deployment-status-item.waiting { border-color: rgba(243, 163, 141, .45); }
.deployment-status-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
}
.deployment-status-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.deployment-status-icon.site { color: #67d6bd; }
.deployment-status-icon.server { color: #63aee8; }
.deployment-status-icon.cpu { color: #e8bd68; }
.deployment-status-icon.memory { color: #db8fb7; }
.deployment-status-icon.disk { color: #70c7d6; }
.deployment-status-item > div { min-width: 0; display: grid; gap: 5px; }
.deployment-status-item strong { color: #f7f8f6; font-size: 11px; line-height: 1.35; }
.deployment-status-item small { color: #8ca0ad; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.deployment-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid #24313e; border-radius: 8px; background: rgba(12, 18, 25, .76); }
.deployment-row > div { min-width: 0; display: grid; gap: 4px; }
.deployment-row strong { color: #f7f8f6; font-size: 12px; }
.deployment-row small { color: #7f8e9b; font-size: 10px; line-height: 1.45; }
.deployment-row b { flex: 0 0 auto; font-size: 10px; white-space: nowrap; }
.deployment-row b.ready { color: #8df2cf; }
.deployment-row b.waiting { color: #f3a38d; }
.deployment-row b.cuda-error { color: #ff5c68; font-weight: 900; }
.deployment-download { flex: 0 0 auto; min-height: 29px; padding: 0 10px; border: 1px solid #49c6bf; border-radius: 7px; color: #071319; background: #49c6bf; font-size: 11px; font-weight: 900; cursor: pointer; }
.deployment-download:disabled { cursor: wait; opacity: .65; }
.deployment-note { margin: 16px 0 0; color: #71808d; font-size: 10px; line-height: 1.65; }
.admin-worker-form { display: grid; grid-template-columns: minmax(180px, .82fr) minmax(220px, 1.2fr) minmax(156px, auto); gap: 11px; align-items: end; margin: 0 0 18px; padding: 14px; border: 1px solid rgba(73, 198, 191, .2); border-radius: 12px; background: linear-gradient(118deg, rgba(22, 69, 72, .22), rgba(12, 18, 25, .68) 46%, rgba(18, 40, 52, .25)); box-shadow: inset 0 1px 0 rgba(223, 252, 246, .035); }
.admin-worker-form-intro { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 0 0 11px; border-bottom: 1px solid rgba(135, 158, 171, .18); }
.admin-worker-form-intro > span { color: #49c6bf; font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-worker-form-intro strong { color: #edf8f5; font-size: 13px; }
.admin-worker-form-intro small { grid-column: 1 / -1; margin-top: 4px; color: #81919e; font-size: 10px; line-height: 1.55; }
.admin-worker-form label { display: grid; gap: 6px; }
.admin-worker-form label > span { color: #a7b7c1; font-size: 10px; font-weight: 800; }
.admin-worker-form input { min-height: 38px; box-sizing: border-box; padding: 0 11px; border: 1px solid #304451; border-radius: 8px; outline: none; color: #eefaf7; background: rgba(5, 12, 18, .66); font: inherit; font-size: 11px; transition: border-color .16s ease, box-shadow .16s ease; }
.admin-worker-form input:focus { border-color: #49c6bf; box-shadow: 0 0 0 3px rgba(73, 198, 191, .13); }
.admin-worker-form-actions { position: relative; align-self: end; display: flex; min-width: 0; flex-direction: column; justify-content: flex-end; }
.admin-worker-form button, .admin-worker-actions button, .worker-token-once button { min-height: 38px; padding: 0 13px; border: 1px solid #49c6bf; border-radius: 8px; color: #071319; background: linear-gradient(135deg, #62d8cf, #43bcb8); box-shadow: 0 8px 18px rgba(17, 130, 126, .16); font-size: 11px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.admin-worker-form button:hover, .worker-token-once button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.admin-worker-form-actions button { height: 38px; min-height: 38px; }
.admin-worker-form-actions small { position: absolute; top: calc(100% + 7px); right: 0; min-width: max-content; color: #8df2cf; font-size: 9px; text-align: right; }
.admin-worker-form-actions small.error { color: #ff9a8d; }
.worker-token-once { margin: 0 0 15px; padding: 13px; border: 1px solid rgba(255, 203, 91, .5); border-radius: 10px; color: #ffe8ad; background: linear-gradient(120deg, rgba(115, 78, 12, .24), rgba(33, 29, 17, .52)); }
.worker-token-once > strong { display: block; font-size: 12px; }
.worker-token-once > div { display: flex; gap: 8px; align-items: center; margin: 10px 0 6px; }
.worker-token-value { flex: 1; min-width: 0; overflow: auto; padding: 9px 10px; border: 1px solid rgba(255, 203, 91, .28); border-radius: 7px; color: #fff4cf; background: rgba(3, 8, 12, .58); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.worker-token-once button { flex: 0 0 auto; border-color: #f2c15b; background: linear-gradient(135deg, #f7cf71, #e9af3e); }
.worker-token-once small { color: #d5b96f; font-size: 10px; }
.admin-workers-list { display: grid; gap: 9px; }
.admin-workers-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 2px 7px; }
.admin-workers-list-head > div { display: flex; align-items: baseline; gap: 7px; }
.admin-workers-list-head span { color: #8d9ba8; font-size: 10px; font-weight: 800; }
.admin-workers-list-head strong { color: #f0faf7; font-family: var(--mono); font-size: 15px; }
.admin-workers-list-head small { color: #82919d; font-size: 10px; }
.admin-workers-list-head i, .admin-worker-state b i { display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: #f3a38d; box-shadow: 0 0 0 3px rgba(243, 163, 141, .08); }
.admin-workers-list-head i.online, .admin-worker-state b.online i { background: #72d8b6; box-shadow: 0 0 0 3px rgba(114, 216, 182, .1); }
.admin-workers-empty { display: grid; gap: 5px; padding: 17px; border: 1px dashed #3a4c59; border-radius: 10px; color: #82919d; background: rgba(12, 18, 25, .4); }
.admin-workers-empty b { color: #d8e5e1; font-size: 12px; }
.admin-workers-empty small { max-width: 620px; color: #7d8d99; font-size: 10px; line-height: 1.65; }
.admin-worker-row { display: grid; grid-template-columns: minmax(195px, 1.2fr) minmax(145px, .85fr) minmax(145px, .85fr) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid #263743; border-radius: 10px; background: linear-gradient(100deg, rgba(16, 29, 38, .84), rgba(8, 15, 22, .66)); transition: border-color .16s ease, transform .16s ease; }
.admin-worker-row:hover { border-color: rgba(73, 198, 191, .38); transform: translateY(-1px); }
.admin-worker-main { min-width: 0; display: flex; align-items: center; gap: 9px; }
.admin-worker-main > div, .admin-worker-state { min-width: 0; display: grid; gap: 4px; }
.admin-worker-machine-icon { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(73, 198, 191, .3); border-radius: 8px; color: #77dfd3; background: rgba(73, 198, 191, .1); font-family: var(--mono); font-size: 8px; font-weight: 900; }
.admin-worker-main strong { overflow: hidden; color: #f7f8f6; font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-worker-main small, .admin-worker-state small { overflow: hidden; color: #7f8e9b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-worker-state b { font-size: 10px; }
.admin-worker-state b.online { color: #8df2cf; }
.admin-worker-state b.offline { color: #f3a38d; }
.admin-worker-state b.cuda-error { color: #ff5c68; font-weight: 900; }
.admin-worker-state b.cuda-error i { background: #ff5c68; box-shadow: 0 0 0 3px rgba(255, 92, 104, .14); }
.admin-worker-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.admin-worker-actions button { min-height: 30px; padding: 0 9px; border-color: #3a5964; color: #cce9e4; background: rgba(73, 198, 191, .09); box-shadow: none; font-size: 10px; }
.admin-worker-actions button:hover { border-color: #49c6bf; color: #e4fffa; background: rgba(73, 198, 191, .16); }
.admin-worker-actions button.danger { border-color: rgba(224, 97, 85, .56); color: #ffc6c0; background: rgba(178, 57, 47, .13); }
@media (max-width: 760px) { .system-config-tabs { flex-wrap: wrap; } .admin-worker-form { grid-template-columns: 1fr; } .admin-worker-form-intro { grid-template-columns: 1fr; } .admin-worker-form-intro strong { margin-top: 4px; } .admin-worker-row { grid-template-columns: 1fr 1fr; } .admin-worker-actions { grid-column: 1 / -1; justify-content: flex-start; } .worker-token-once > div { align-items: stretch; flex-direction: column; } }
@media (max-width: 760px) {
  .admin-service-config-group { padding: 14px; }
  .admin-service-config-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .admin-service-config-head small { text-align: left; }
  .admin-service-config-head-with-status { display: grid; grid-template-columns: 1fr; }
  .admin-service-config-head-with-status > small,
  .admin-service-config-head-with-status > .admin-model-status-inline { grid-column: 1; grid-row: auto; }
  .admin-model-config-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .admin-model-config-head small { text-align: left; }
  .admin-model-config-head-with-status { display: grid; grid-template-columns: 1fr; }
  .admin-model-config-head-with-status > small,
  .admin-model-config-head-with-status > .admin-model-status-inline { grid-column: 1; grid-row: auto; }
  .admin-model-config-grid { grid-template-columns: 1fr; }
  .admin-model-config-grid .admin-billing-wide { grid-column: auto; }
  .admin-model-toggle-row { flex-wrap: wrap; gap: 10px 20px; }
}

.admin-finance-list { display: grid; gap: 8px; }
.admin-finance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px 150px;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #24313e;
  border-radius: 9px;
  background: rgba(12, 18, 25, .76);
}
.admin-finance-row strong { color: #f7f8f6; font-size: 12px; }
.admin-finance-row small { display: block; margin-top: 4px; color: #7f8e9b; font-family: var(--mono); font-size: 8px; }
.admin-finance-amount { color: #8df2cf; font-weight: 900; text-align: right; }
.admin-finance-status { color: #b9c8c5; font-size: 10px; text-align: center; }
.admin-finance-date { color: #7f8e9b; font-family: var(--mono); font-size: 8px; text-align: right; }
.admin-api-logs-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #24313e; scroll-margin-top: 24px; }
.admin-api-logs-head > small { max-width: 300px; line-height: 1.5; text-align: right; }
.admin-api-logs-filters { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(108px, .65fr) minmax(150px, 1fr) auto; align-items: end; gap: 9px; margin: 0 0 13px; padding: 11px; border: 1px solid rgba(73, 198, 191, .18); border-radius: 9px; background: rgba(8, 15, 22, .44); }
.admin-api-logs-filters label { display: grid; min-width: 0; gap: 5px; }
.admin-api-logs-filters label > span { color: #8d9ba8; font-size: 9px; font-weight: 800; }
.admin-api-logs-filters input, .admin-api-logs-filters select { width: 100%; min-width: 0; height: 34px; box-sizing: border-box; padding: 0 9px; border: 1px solid #2d3d4c; border-radius: 7px; color: #e8f3f2; background: rgba(12, 18, 25, .82); font-size: 11px; outline: none; }
.admin-api-logs-filters input::placeholder { color: #657582; }
.admin-api-logs-filters input:focus, .admin-api-logs-filters select:focus { border-color: #49c6bf; box-shadow: 0 0 0 3px rgba(73, 198, 191, .1); }
.admin-api-logs-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-top: 15px; }
.admin-api-logs-filter-actions button,
.admin-api-logs-pager button,
.admin-api-logs-state button { min-height: 34px; padding: 0 10px; border: 1px solid #365761; border-radius: 7px; color: #d8f2ed; background: rgba(73, 198, 191, .12); font-size: 10px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.admin-api-logs-filter-actions button:hover,
.admin-api-logs-pager button:hover,
.admin-api-logs-state button:hover { border-color: #55d8cf; color: #fff; background: rgba(73, 198, 191, .2); }
.admin-api-logs-filter-actions button:nth-child(2) { border-color: #34424e; color: #a8b8c1; background: transparent; }
.admin-api-logs-filter-actions button:nth-child(2):hover { border-color: #637984; color: #e8f3f2; background: rgba(128, 150, 160, .1); }
.admin-api-logs-content { min-width: 0; }
.admin-api-logs-table-wrap { overflow: auto; max-height: min(65vh, 650px); border: 1px solid #24313e; border-radius: 9px; background: rgba(8, 14, 20, .36); scrollbar-color: #38535b rgba(10, 17, 24, .62); scrollbar-width: thin; }
.admin-api-logs-table { width: 100%; min-width: 1060px; border-collapse: collapse; table-layout: fixed; }
.admin-api-logs-table th, .admin-api-logs-table td { padding: 10px 11px; border-bottom: 1px solid rgba(70, 91, 105, .34); color: #b4c1c7; font-size: 10px; line-height: 1.35; text-align: left; vertical-align: middle; }
.admin-api-logs-table th { position: sticky; z-index: 1; top: 0; color: #8395a0; background: #111c26; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.admin-api-logs-table tbody tr:last-child td { border-bottom: 0; }
.admin-api-logs-table tbody tr:hover { background: rgba(73, 198, 191, .055); }
.admin-api-logs-table th:nth-child(1) { width: 150px; }
.admin-api-logs-table th:nth-child(2) { width: 110px; }
.admin-api-logs-table th:nth-child(3) { width: 118px; }
.admin-api-logs-table th:nth-child(4) { width: 190px; }
.admin-api-logs-table th:nth-child(5) { width: 120px; }
.admin-api-logs-table th:nth-child(6) { width: 70px; text-align: center; }
.admin-api-logs-table th:nth-child(7) { width: 72px; text-align: right; }
.admin-api-logs-table th:nth-child(8) { width: 70px; text-align: right; }
.admin-api-logs-table th:nth-child(9) { width: 140px; }
.admin-api-logs-table td time, .admin-api-logs-table td code { display: block; overflow: hidden; font-family: var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.admin-api-logs-table td time { color: #7f909c; font-size: 9px; }
.admin-api-logs-table td strong { display: block; overflow: hidden; color: #e7efed; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-api-log-endpoint { color: #88eadb; font-size: 9px; }
.admin-api-log-task { color: #9eafba; font-size: 9px; }
.admin-api-log-status { display: inline-flex; min-width: 52px; min-height: 21px; align-items: center; justify-content: center; border: 1px solid rgba(145, 165, 177, .28); border-radius: 999px; color: #a8b7c0; background: rgba(145, 165, 177, .08); font-size: 9px; font-weight: 850; white-space: nowrap; }
.admin-api-log-status-cell { text-align: center; }
.admin-api-log-status-meta { display: block; margin-top: 4px; color: #728490; font-family: var(--mono); font-size: 8px; line-height: 1.25; overflow-wrap: anywhere; }
.admin-api-logs-table td:nth-child(6), .admin-api-logs-table td:nth-child(7), .admin-api-logs-table td:nth-child(8) { text-align: right; }
.admin-api-logs-table td:nth-child(6) { text-align: center; }
.admin-api-log-status.success { border-color: rgba(91, 227, 173, .32); color: #9bf3d2; background: rgba(91, 227, 173, .1); }
.admin-api-log-status.failed { border-color: rgba(244, 109, 109, .36); color: #ffb1aa; background: rgba(244, 109, 109, .11); }
.admin-api-log-status.pending { border-color: rgba(255, 176, 114, .34); color: #ffd1a8; background: rgba(255, 176, 114, .1); }
.admin-api-log-points { color: #8da0ab; font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.admin-api-log-points.charged { color: #ffcb9f; }
.admin-api-logs-state { display: grid; min-height: 168px; place-items: center; align-content: center; gap: 7px; padding: 20px; border: 1px dashed rgba(94, 120, 134, .38); border-radius: 9px; color: #8a9aa6; font-size: 11px; text-align: center; }
.admin-api-logs-state strong { color: #d8e5e2; font-size: 12px; }
.admin-api-logs-state small { max-width: 480px; color: #7b8d99; font-size: 10px; line-height: 1.5; }
.admin-api-logs-state.error { border-color: rgba(244, 109, 109, .36); color: #ffaaa2; background: rgba(100, 28, 31, .1); }
.admin-api-logs-state.error strong, .admin-api-logs-state.error small { color: #ffb5ae; }
.admin-api-logs-state button { margin-top: 5px; }
.admin-api-logs-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 13px; }
.admin-api-logs-pager span { min-width: 92px; color: #8ea0aa; font-family: var(--mono); font-size: 10px; text-align: center; }
.admin-api-logs-pager button:disabled { opacity: .42; cursor: default; }
.admin-coupon-panel { margin: 0; padding: 16px; border: 1px solid #273844; border-radius: 10px; background: rgba(12, 18, 25, .52); }
.admin-coupon-panel > .admin-panel-head { margin-bottom: 12px; }
.admin-coupon-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.admin-coupon-form label { display: grid; gap: 5px; }
.admin-coupon-form label > span { color: #8d9ba8; font-size: 9px; font-weight: 800; }
.admin-coupon-form input, .admin-coupon-form select { width: 100%; min-height: 36px; box-sizing: border-box; padding: 0 9px; border: 1px solid #2d3d4c; border-radius: 7px; color: #e8f3f2; background: rgba(7, 12, 18, .76); font-size: 11px; }
.admin-coupon-form label small { color: #718391; font-size: 8px; line-height: 1.35; }
.admin-coupon-form > label:nth-child(2), .admin-coupon-form > label:nth-child(4) { position: relative; }
.admin-coupon-form > label:nth-child(2) > small, .admin-coupon-form > label:nth-child(4) > small { position: absolute; top: 0; right: 0; margin: 0; color: #6f8c99; text-align: right; white-space: nowrap; }
.admin-coupon-description { grid-column: span 2; }
.admin-coupon-submit { display: flex; align-items: end; gap: 9px; }
.admin-coupon-submit button, .admin-coupon-actions button { min-height: 36px; padding: 0 10px; border: 1px solid #3d8f80; border-radius: 7px; color: #e8fffa; background: #176b60; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-coupon-submit small { min-width: 0; color: #8df2cf; font-size: 9px; line-height: 1.4; }
.admin-coupon-list { display: grid; gap: 7px; margin-top: 12px; }
.admin-coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #23343f; border-radius: 8px; background: rgba(8, 14, 20, .62); }
.admin-coupon-row strong { color: #8df2cf; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.admin-coupon-row small { display: block; margin-top: 4px; color: #8496a2; font-size: 9px; line-height: 1.35; }
.admin-coupon-status { color: #8df2cf; font-size: 9px; text-align: center; }
.admin-coupon-status.inactive { color: #9aa7ad; }
.admin-coupon-actions { display: flex; gap: 6px; }
.admin-coupon-actions button { min-height: 30px; padding: 0 8px; color: #c9ddd7; border-color: #334b52; background: transparent; }
.admin-coupon-actions button:hover { color: #fff; border-color: #58b8a7; background: rgba(45, 125, 109, .22); }
.membership-orders-panel { padding: 24px; }
.membership-balance-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.membership-balance-line b { min-width: 0; }
.membership-balance-line button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #178879;
  border-radius: 999px;
  color: #0e6d63;
  background: #e8f7f3;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.membership-balance-line button:hover { color: white; background: #178879; }
.membership-recharge-dialog {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(9, 20, 18, .48);
  backdrop-filter: blur(5px);
}
.membership-recharge-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid #cbd8d2;
  border-radius: 16px;
  background: #fbfcfa;
  box-shadow: 0 24px 64px rgba(10, 29, 24, .24);
}
.membership-recharge-card h3 { margin: 8px 0 6px; color: #17202b; font-size: 26px; }
.membership-recharge-card p { margin: 0 0 18px; color: #65716d; font-size: 13px; }
.membership-recharge-close {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #56706a;
  background: #edf2ee;
  font-size: 21px;
  cursor: pointer;
}
.membership-recharge-close:hover { color: #fff; background: #178879; }
.membership-recharge-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.membership-referral-qr-card { width: min(340px, 100%); text-align: center; }
.membership-referral-qr-card h3 { margin-bottom: 18px; }
.membership-referral-qr-code { width: min(244px, 100%); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 14px; padding: 14px; box-sizing: border-box; border: 1px solid #d4e4de; border-radius: 10px; background: #fff; }
.membership-referral-qr-code svg { display: block; width: 100%; height: 100%; }
.membership-referral-qr-link { display: block; overflow: hidden; padding: 10px 11px; border: 1px solid #d8e5df; border-radius: 8px; color: #176e62; background: #f7fbf8; font: 700 10px/1.35 var(--mono); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.membership-recharge-options { display: grid; gap: 8px; }
.membership-recharge-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d1ddd7;
  border-radius: 8px;
  color: #173a34;
  background: #fff;
  cursor: pointer;
}
.membership-recharge-options button:hover { border-color: #178879; background: #effaf6; }
.membership-recharge-options strong { font-size: 15px; }
.membership-recharge-options span { color: #178879; font-size: 14px; font-weight: 900; }
.membership-order-list {
  display: grid;
  gap: 8px;
  height: 307px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #a9c9c1 transparent;
}
.membership-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 72px auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce2dd;
  border-radius: 10px;
  background: #f7f7f3;
}
.membership-order-row strong { display: block; color: #17202b; font-size: 12px; }
.membership-order-row small { display: block; margin-top: 4px; color: #75817d; font-family: var(--mono); font-size: 8px; }
.billing-order-amount { color: #173a34; font-weight: 900; text-align: right; }
.billing-order-status { color: #63716d; font-size: 10px; font-weight: 900; text-align: center; }
.billing-order-status.paid { color: #178879; }
.billing-order-status.pending { color: #d57c36; }
.billing-order-status.expired { color: #9b8276; }
.billing-order-expiry { color: #b36b18 !important; font-family: var(--mono); }
.billing-order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.billing-pay-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #173a34;
  border-radius: 999px;
  color: white;
  background: #173a34;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.billing-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #b8ddd3;
  border-radius: 9px;
  color: #176e62;
  background: #edf8f4;
  font-size: 11px;
}
.billing-notice.error { border-color: #efb5a8; color: #a94432; background: #fff0ed; }
.pricing-band,
.account-band {
  min-height: calc(100vh - 64px);
  padding: 92px max(34px, calc((100vw - 1180px) / 2)) 90px;
  color: #17202b;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 91, 54, .16), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(73, 198, 191, .18), transparent 32%),
    #f4f2ec;
}
body[data-route="pricing"],
body[data-route="membership"],
body[data-route="api"],
body[data-route="checkout"],
body[data-route="payment-success"],
body[data-route="pricing"] .home-view,
body[data-route="membership"] .home-view,
body[data-route="api"] .home-view,
body[data-route="checkout"] .home-view,
body[data-route="payment-success"] .home-view {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 91, 54, .16), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(73, 198, 191, .18), transparent 32%),
    #f4f2ec;
}
.pricing-hero {
  max-width: 760px;
  margin-bottom: 28px;
}
.pricing-hero h2,
.account-card h2 {
  margin: 8px 0 10px;
  font-size: 46px;
  line-height: .98;
  letter-spacing: -.05em;
}
.pricing-hero p,
.account-card p { margin: 0; color: #63716d; line-height: 1.75; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pricing-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid #d7ddd7;
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 18px 48px rgba(24, 30, 28, .08);
}
.pricing-card.featured {
  color: white;
  border-color: #162a2d;
  background: linear-gradient(160deg, #101720, #173a34);
  transform: translateY(-8px);
}
.pricing-card span { color: #178879; font-size: 12px; font-weight: 900; }
.pricing-card.featured span { color: #7dffe5; }
.pricing-card h3 { margin: 0; font-size: 38px; letter-spacing: -.04em; }
.pricing-card h3 small { font-size: 13px; color: #7b8783; }
.pricing-card.featured h3 small,
.pricing-card.featured p { color: #b9c8c5; }
.pricing-card p { margin: 0; color: #69736f; }
.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pricing-card li { color: inherit; font-size: 13px; }
.pricing-card li::before { content: "✓"; margin-right: 8px; color: #178879; font-weight: 950; }
.pricing-card.featured li::before { color: #7dffe5; }
.pricing-card button {
  min-height: 42px;
  border: 1px solid #173a34;
  border-radius: 9px;
  color: white;
  background: #173a34;
  font-weight: 900;
  cursor: pointer;
}
.pricing-card.featured button { border-color: var(--brand); background: var(--brand); }
.pricing-card button.included-plan,
.pricing-card button:disabled {
  border-color: #b7c4bf;
  color: #74817d;
  background: #e7ece9;
  cursor: not-allowed;
}
.pricing-note {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #d7ddd7;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}
.pricing-note { display: none; }
.pricing-note strong { white-space: nowrap; }
.pricing-note span { color: #65716d; line-height: 1.6; }
.pricing-payment-hint { display: block; margin-top: 12px; color: #7a8581; font-family: var(--mono); font-size: 9px; }
.pricing-cost-table { position: relative; margin-top: 16px; overflow: hidden; border: 1px solid #d7ddd7; border-radius: 14px; background: rgba(255,255,255,.72); }
.pricing-sale-ribbon { position: absolute; z-index: 1; top: 0; right: 0; display: grid; place-items: center; min-width: 96px; height: 27px; padding: 0 12px 0 16px; clip-path: polygon(13px 0, 100% 0, 100% 100%, 0 100%); color: #fff; background: #e85d3d; font: 800 9px/1 var(--mono); letter-spacing: .06em; }
.pricing-cost-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 17px 18px 13px; border-bottom: 1px solid #e0e5e1; }
.pricing-cost-head strong { display: block; margin-top: 5px; color: #17202b; font-size: 18px; }
.pricing-cost-head small { color: #7a8581; font-size: 10px; }
.pricing-cost-grid { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.7fr) 205px; gap: 14px; align-items: center; min-height: 49px; padding: 0 18px; border-bottom: 1px solid #e8ece9; color: #63716d; font-size: 12px; }
.pricing-cost-grid:last-child { border-bottom: 0; }
.pricing-cost-grid-head { min-height: 34px; color: #8a9691; background: #f5f7f4; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.pricing-cost-grid strong { color: #17202b; font-size: 12px; }
.pricing-cost-grid b { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; color: #178879; font-size: 12px; text-align: right; white-space: nowrap; }
.pricing-cost-grid b i { padding: 3px 5px; border-radius: 3px; color: #c54c2c; background: #fff0e9; font-size: 9px; font-style: normal; line-height: 1; }
.pricing-cost-grid b del { color: #9aa49f; font-size: 10px; font-weight: 600; text-decoration-color: #bdc5c0; }
.pricing-rules {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #d7ddd7;
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 16px 40px rgba(24, 30, 28, .06);
}
.pricing-period-options { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 7px; }
.pricing-period-options button { display: grid; place-items: center; min-height: 46px; padding: 7px 12px; border: 1px solid #cfd8d2; border-radius: 8px; color: #52615c; background: #f8faf7; cursor: pointer; }
.pricing-period-options button span { color: inherit; font-size: 11px; font-weight: 850; }
.pricing-period-options button b, .pricing-period-options button small { margin-top: 3px; color: #178879; font-size: 9px; font-weight: 800; }
.pricing-period-options button.active { color: #fff; border-color: #173a34; background: #173a34; box-shadow: 0 7px 18px rgba(23,58,52,.16); }
.pricing-period-options button.active b, .pricing-period-options button.active small { color: #7dffe5; }
.pricing-rules-head { display: grid; gap: 5px; max-width: 720px; margin-bottom: 18px; }
.pricing-rules-head h3 { margin: 0; color: #17202b; font-size: 23px; letter-spacing: -.02em; }
.pricing-rules-head p { margin: 0; color: #63716d; font-size: 12px; line-height: 1.7; }
.pricing-rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pricing-rule { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; min-height: 96px; padding: 14px; border: 1px solid #e0e5e1; border-radius: 11px; background: rgba(248,250,247,.78); }
.pricing-rule-wide { grid-column: 1 / -1; }
.pricing-rule-index { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; color: #176e62; background: #e7f5f0; font: 800 10px/1 var(--mono); }
.pricing-rule strong { display: block; color: #17202b; font-size: 13px; }
.pricing-rule p { margin: 6px 0 0; color: #63716d; font-size: 11px; line-height: 1.7; }
.checkout-period-picker { display: grid; gap: 9px; margin-top: 18px; }
.checkout-period-picker > span { color: #63716d; font-size: 10px; font-weight: 800; }
.checkout-payment-result { display: grid; justify-items: center; gap: 8px; margin-top: 12px; color: #176e62; font-size: 11px; text-align: center; }
.checkout-payment-result img { width: 180px; height: 180px; object-fit: contain; border: 1px solid #d7ddd7; border-radius: 8px; background: #fff; }
.checkout-coupon-section { margin-top: 18px; border-top: 1px solid #dce3de; }
.checkout-coupon-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 2px;
  border: 0;
  color: #63716d;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.checkout-coupon-toggle b {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8cdc6;
  border-radius: 50%;
  color: #176b60;
  font-size: 18px;
  font-weight: 500;
  line-height: 0;
}
.checkout-coupon-toggle:hover { color: #176b60; }
.checkout-coupon-toggle:hover b { border-color: #178879; background: #edf7f4; }
.checkout-coupon-row { margin-top: 2px; }
.checkout-shell { width: min(1040px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 18px; align-items: stretch; }
.checkout-main-card, .checkout-side-card { padding: 30px; border: 1px solid #d7ddd7; border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: 0 18px 48px rgba(24, 30, 28, .08); }
.checkout-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.checkout-head h2 { margin: 8px 0 10px; color: #17202b; font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.checkout-head p { margin: 0; color: #63716d; line-height: 1.7; }
.checkout-back { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid #c8d5d0; border-radius: 999px; color: #176b60; background: #edf7f4; font-size: 11px; font-weight: 850; cursor: pointer; }
.checkout-back:hover { color: white; border-color: #178879; background: #178879; }
.checkout-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.checkout-summary > div { display: grid; gap: 6px; min-height: 74px; padding: 13px 14px; border: 1px solid #dce3de; border-radius: 10px; background: rgba(249,251,249,.86); }
.checkout-summary span, .checkout-payment-methods > span, .checkout-coupon-row label > span, .checkout-total span { color: #7b8782; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }
.checkout-summary strong { color: #17202b; font-size: 14px; }
.checkout-payment-row { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e2e7e3; }
.checkout-payment-methods { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.checkout-payment-methods > span { width: 100%; }
.checkout-payment-config-note { flex: 0 0 100%; margin-top: 1px; color: #708079; font-size: 10px; line-height: 1.55; }
.checkout-payment-methods label { position: relative; display: inline-flex; min-width: 102px; min-height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #cfd9d4; border-radius: 8px; color: #35534c; background: #fff; cursor: pointer; }
.checkout-payment-methods input { position: absolute; opacity: 0; }
.checkout-payment-methods label:has(input:checked) { color: #fff; border-color: #173a34; background: #173a34; }
.checkout-payment-methods .checkout-payment-option { gap: 9px; min-width: 128px; }
.checkout-pay-icon { display: grid; flex: 0 0 auto; width: 25px; height: 25px; place-items: center; border-radius: 0; background: transparent; }
.checkout-pay-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.checkout-payment-alipay .checkout-pay-icon { background: transparent; }
.checkout-payment-alipay .checkout-pay-icon svg { width: 19px; height: 19px; fill: #06B4FD; stroke: none; }
.checkout-payment-wechat .checkout-pay-icon { background: transparent; }
.checkout-payment-wechat .checkout-pay-icon svg { width: 25px; height: 25px; fill: #09BB07; stroke: none; }
.checkout-payment-manual .checkout-pay-icon { background: transparent; }
.checkout-payment-manual .checkout-pay-icon svg { width: 25px; height: 25px; fill: #85C2FF; stroke: none; }
.checkout-payment-alipay { --pay-color: #1677ff; color: #1677ff; border-color: rgba(22, 119, 255, .28); background: #f3f8ff; }
.checkout-payment-wechat { --pay-color: #12b35f; color: #12b35f; border-color: rgba(18, 179, 95, .28); background: #f2fbf6; }
.checkout-payment-manual { --pay-color: #173a34; color: #173a34; }
.checkout-payment-methods label:has(input:checked) .checkout-pay-icon { background: transparent; }
.checkout-payment-methods b { font-size: 12px; }
.checkout-total { display: grid; gap: 5px; justify-items: end; }
.checkout-total strong { color: #173a34; font-size: 34px; letter-spacing: -.04em; }
.checkout-total small { max-width: 280px; color: #6e7e78; font-size: 10px; text-align: right; }
.checkout-total-after-coupon { margin-top: 14px; }
.checkout-coupon-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 8px; align-items: end; margin-top: 15px; }
.checkout-coupon-row label { display: grid; gap: 6px; }
.checkout-coupon-row input { height: 40px; padding: 0 11px; border: 1px dashed #a8bdb5; border-radius: 8px; color: #17202b; background: #fbfdfb; }
.checkout-coupon-row button { min-height: 40px; padding: 0 15px; border: 1px solid #a4c4ba; border-radius: 8px; color: #176b60; background: #eff8f4; font-size: 11px; font-weight: 800; cursor: pointer; }
.checkout-coupon-row small { grid-column: 1 / -1; min-height: 16px; color: #178879; font-size: 10px; }
.checkout-message { min-height: 20px; margin-top: 14px; color: #a94432; font-size: 12px; }
.checkout-message.success { color: #178879; }
.checkout-pending-order {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #edc27f;
  border-radius: 10px;
  color: #6b4a1d;
  background: #fff8e8;
  font-size: 11px;
}
.checkout-pending-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-pending-order-head strong { color: #8d5a15; font-size: 12px; }
.checkout-pending-order-head span { color: #b36b18; font: 800 10px/1 var(--mono); white-space: nowrap; }
.checkout-pending-order p { margin: 0; line-height: 1.55; }
.checkout-pending-order small { color: #8c7654; font-size: 9px; }
.checkout-pending-order code { color: #634d2f; font-family: var(--mono); }
.checkout-pending-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.checkout-pending-order-actions button,
.billing-cancel-button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.checkout-pending-pay { border: 1px solid #b27826; color: #fff; background: #b27826; }
.checkout-pending-cancel,
.billing-cancel-button { border: 1px solid #d6a178; color: #9a4a2f; background: #fff; }
.checkout-pending-order-actions button:hover,
.billing-cancel-button:hover { filter: brightness(.97); }
.checkout-pending-order-actions button:disabled,
.billing-cancel-button:disabled { opacity: .58; cursor: wait; }
.checkout-confirm { width: 100%; min-height: 46px; margin-top: 6px; border: 1px solid var(--brand); border-radius: 9px; color: white; background: var(--brand); font-size: 13px; font-weight: 900; cursor: pointer; }
.checkout-confirm:hover { background: #ff704f; }
.checkout-confirm:disabled { opacity: .6; cursor: wait; }
.checkout-hint { display: block; margin-top: 12px; color: #7a8581; font-family: var(--mono); font-size: 9px; line-height: 1.6; }
.checkout-side-card { color: #e7f3ef; border-color: #183d36; background: linear-gradient(155deg, #101720, #173a34); }
.checkout-side-card h3 { margin: 10px 0 18px; color: white; font-size: 26px; letter-spacing: -.04em; }
.checkout-side-card ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.checkout-side-card li { color: #c7d8d3; font-size: 13px; }
.checkout-side-card li::before { content: "✓"; margin-right: 9px; color: #7dffe5; font-weight: 950; }
.checkout-side-card p { margin: 26px 0 0; color: #9fbbb4; font-size: 11px; line-height: 1.7; }
.payment-success-shell { width: min(760px, 100%); margin: 0 auto; }
.payment-success-card { display: grid; justify-items: center; gap: 14px; padding: 44px 36px; border: 1px solid #d7ddd7; border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: 0 20px 54px rgba(24, 30, 28, .08); text-align: center; }
.payment-success-icon { display: grid; width: 74px; height: 74px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #16a06f, #42cfa8); box-shadow: 0 12px 28px rgba(22, 160, 111, .24); font-size: 38px; font-weight: 900; }
.payment-success-icon.pending { background: linear-gradient(135deg, #d88932, #f3bd55); box-shadow: 0 12px 28px rgba(216, 137, 50, .2); }
.payment-success-card h2 { margin: 2px 0 0; color: #17202b; font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.payment-success-card p { max-width: 520px; margin: 0; color: #63716d; line-height: 1.8; }
.payment-success-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(520px, 100%); margin-top: 6px; }
.payment-success-summary div { display: grid; gap: 7px; min-height: 72px; padding: 13px 14px; border: 1px solid #dce3de; border-radius: 10px; background: rgba(249,251,249,.86); }
.payment-success-summary span { color: #7b8782; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }
.payment-success-summary strong { min-width: 0; overflow-wrap: anywhere; color: #17202b; font-size: 13px; }
.payment-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(520px, 100%); margin-top: 8px; }
.payment-success-actions .checkout-confirm { width: auto; min-width: 180px; margin-top: 0; padding: 0 20px; }
.payment-success-actions .checkout-back { min-width: 132px; }
.account-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #d7ddd7;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 48px rgba(24, 30, 28, .08);
}
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.account-info-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dce2dd;
  border-radius: 12px;
  background: #f7f7f3;
}
.account-info-grid span { color: #6a7671; font-size: 11px; font-weight: 850; }
.account-info-grid b { color: #17202b; font-size: 16px; }
.membership-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
.assets-band { min-height: calc(100vh - 64px); }
.assets-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.assets-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid #d7ddd7;
  border-radius: 14px;
  color: #eff8f4;
  background: #173a34;
  box-shadow: 0 12px 32px rgba(24, 30, 28, .08);
}
.assets-hero .home-kicker { color: #8fe0ce; font-size: 9px; letter-spacing: 1px; }
.assets-hero h2 { margin: 5px 0 8px; font-size: 32px; line-height: 1.05; }
.assets-hero p { max-width: 620px; margin: 0; color: #c0d5ce; font-size: 13px; line-height: 1.6; }
.assets-usage {
  display: grid;
  min-width: 176px;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(143, 224, 206, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}
.assets-usage span { color: #b9d5cc; font-size: 10px; font-weight: 800; }
.assets-usage strong { color: #fff; font-size: 17px; }
.assets-usage small { color: #9fc1b6; font-size: 10px; }
@media (max-width: 720px) {
  .assets-hero { align-items: stretch; flex-direction: column; padding: 20px; }
  .assets-hero h2 { font-size: 28px; }
  .assets-usage { min-width: 0; }
}
.membership-hero-card,
.membership-panel {
  border: 1px solid #d7ddd7;
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(24, 30, 28, .07);
}
.membership-hero-card { position: relative; padding: 22px 24px 20px; border-radius: 14px; box-shadow: 0 12px 32px rgba(24, 30, 28, .06); }
.membership-hero-card > .home-kicker { font-size: 9px; letter-spacing: 1px; }
.membership-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.membership-hero-row h2 {
  margin: 4px 0 0;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}
.membership-hero-title { display: flex; align-items: center; gap: 10px; }
.membership-hero-title button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #b6c8c1;
  border-radius: 8px;
  color: #28645b;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.membership-hero-title button:hover { color: white; border-color: #178879; background: #178879; }
.membership-badge {
  position: absolute;
  top: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  min-width: 208px;
  gap: 9px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 10px;
  color: white;
  background: linear-gradient(145deg, #101720, #173a34);
}
.membership-badge-copy { display: grid; min-width: 0; gap: 3px; }
.membership-plan-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgba(151, 241, 225, .42);
  border-radius: 9px;
  color: #97f1e1;
  background: rgba(125, 255, 229, .1);
}
.membership-plan-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.membership-plan-icon[data-plan="personal"] { color: #bfe9ff; border-color: rgba(135, 201, 244, .48); background: rgba(91, 170, 226, .16); }
.membership-plan-icon[data-plan="creator"],
.membership-plan-icon[data-plan="trial_creator"] { color: #ffe19a; border-color: rgba(255, 205, 100, .5); background: rgba(255, 187, 61, .15); }
.membership-plan-icon[data-plan="api"] { color: #e4c4ff; border-color: rgba(199, 141, 245, .52); background: rgba(166, 99, 226, .16); }
.membership-badge span,
.membership-badge small,
.membership-overview-grid span,
.membership-overview-grid small,
.membership-panel-head span,
.membership-panel-head small {
  color: #74817d;
  font-size: 10px;
  font-weight: 850;
}
.membership-badge span { color: #7dffe5; }
.membership-badge strong { font-size: 18px; }
.membership-badge small { color: #b7c6c1; }
.membership-plan-expiry { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; white-space: nowrap; }
.membership-plan-expiry time { color: #e7f3ef; font-variant-numeric: tabular-nums; }
.membership-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.membership-overview-grid > .membership-stat-overview {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}
.membership-stat-overview > span {
  position: static;
  padding-left: 2px;
}
.membership-stat-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  min-height: 96px;
  border: 1px solid #dce2dd;
  border-radius: 10px;
  background: #f7f7f3;
}
.membership-overview-grid b { color: #17202b; font-size: 22px; line-height: 1.1; }
.membership-account-card { grid-template-rows: auto 1fr auto; }
.membership-balance-card { align-content: center; }
.membership-balance-line { align-items: flex-start; flex-direction: column; gap: 8px; }
.membership-balance-line b { flex: 0 0 auto; white-space: nowrap; }
.membership-balance-line button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 72px;
  min-height: 26px;
  padding: 3px 10px;
  line-height: 1;
  white-space: nowrap;
}
.membership-quota-card { align-content: start; }
.membership-quota-track { margin-top: auto; }
.membership-role-line { color: #63716d !important; font-size: 11px !important; font-weight: 850 !important; }
.membership-quota-card small {
  color: #63716d;
  font-size: 11px;
  font-weight: 850;
}
.membership-quota-track {
  position: relative;
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e7e2;
}
.membership-quota-track em {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #19bcb1, #fcd20b, #ef4f99);
  box-shadow: 0 0 14px rgba(25,188,177,.34);
  transition: width .35s ease;
}
.membership-layout {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  column-gap: 24px;
  row-gap: 32px;
}
.membership-layout.profile-collapsed { grid-template-columns: 1fr; }
.membership-layout.profile-collapsed .membership-profile-panel { display: none; }
.membership-profile-layout { grid-template-columns: minmax(0, 1fr); }
.membership-profile-layout.profile-collapsed { display: none; }
.membership-billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  grid-template-areas: "orders referral";
  align-items: stretch;
  column-gap: 24px;
  row-gap: 32px;
}
.membership-billing-layout > .membership-panel { min-width: 0; align-self: stretch; }
.membership-orders-panel { grid-area: orders; }
.membership-referral-panel { grid-area: referral; }
.membership-panel { padding: 22px; }
.membership-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.membership-panel-head strong { display: block; margin-top: 4px; font-size: 22px; }
.membership-referral-panel .membership-panel-head { align-items: flex-start; flex-direction: column; gap: 0; }
.membership-referral-rule { display: block; max-width: 100%; margin-top: 8px; line-height: 1.55; }
.membership-panel-head button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #173a34;
  font-weight: 900;
  cursor: pointer;
}
.membership-profile-panel {
  display: grid;
  gap: 12px;
  scroll-margin-top: 84px;
}
.membership-profile-panel label {
  display: grid;
  gap: 7px;
}
.membership-profile-panel label span {
  color: #66736f;
  font-size: 11px;
  font-weight: 850;
}
.membership-profile-panel input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8ded9;
  border-radius: 11px;
  color: #17202b;
  background: rgba(255,255,255,.78);
  outline: none;
}
.membership-profile-panel input:focus { border-color: #19bcae; box-shadow: 0 0 0 3px rgba(25,188,174,.12); }
.membership-profile-panel input:disabled { color: #7b8783; background: #edf0eb; }
.membership-phone-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.membership-phone-section label { min-width: 0; }
.membership-phone-section > button,
.membership-phone-bind-panel > button,
.membership-phone-code-row button {
  min-height: 42px;
  border: 1px solid #173a34;
  border-radius: 999px;
  padding: 0 14px;
  color: #173a34;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.membership-phone-section > button:hover,
.membership-phone-bind-panel > button:hover,
.membership-phone-code-row button:hover { border-color: #19bcae; color: #087f78; background: #f2fbf8; }
.membership-phone-bind-panel { display: grid; gap: 10px; padding: 13px; border: 1px solid #cde4dd; border-radius: 12px; background: #f4fbf8; }
.membership-phone-bind-panel.hidden { display: none; }
.membership-phone-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.membership-phone-bind-panel > button { justify-self: start; color: #fff; background: #173a34; }
.membership-phone-bind-panel > button:hover { color: #fff; background: #0e5448; }
.membership-profile-message {
  min-height: 18px;
  margin: 0;
  color: #178879;
  font-size: 12px;
  font-weight: 800;
}
.membership-profile-message.error { color: #dc4f45; }
.membership-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.membership-benefit-grid div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid #dce2dd;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,247,243,.9));
}
.membership-benefit-grid b { color: #173a34; font-size: 18px; }
.membership-benefit-grid span { color: #65716d; line-height: 1.55; font-size: 12px; }
.membership-recent-output-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.membership-output-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #dce2dd; border-radius: 9px; background: #fbfcfb; }
.membership-output-row strong { display: block; overflow: hidden; color: #173a34; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.membership-output-row small { display: block; margin-top: 3px; color: #65716d; font-size: 10px; }
.membership-output-actions { display: inline-flex; gap: 6px; }
.membership-output-actions button { height: 27px; padding: 0 7px; border: 1px solid #b8ddd3; border-radius: 5px; color: #176e62; background: #fff; font-size: 10px; cursor: pointer; white-space: nowrap; }
.membership-output-actions button:hover { border-color: #168f7e; background: #f1faf7; }
.membership-output-empty { padding: 18px 12px; border: 1px dashed #ccd5cf; border-radius: 9px; color: #65716d; font-size: 12px; text-align: center; }
.membership-referral-panel { align-content: start; }
.membership-referral-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 14px; }
.membership-referral-link code { display: block; overflow: hidden; padding: 11px 12px; border: 1px solid #d8e5df; border-radius: 8px; color: #176e62; background: #f7fbf8; font: 700 11px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.membership-referral-link button { min-height: 38px; padding: 0 12px; border: 1px solid #b8ddd3; border-radius: 8px; color: #176e62; background: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.membership-referral-link button:hover { color: #fff; border-color: #178879; background: #178879; }
.membership-referral-actions { display: inline-flex; align-items: center; gap: 8px; }
.membership-referral-qr-button { width: 38px; padding: 0 !important; display: grid; place-items: center; }
.membership-referral-qr-button svg { width: 17px; height: 17px; fill: currentColor; }
.membership-referral-qr-button:disabled { cursor: default; opacity: .45; }
.membership-referral-copy-status { display: block; min-height: 16px; margin-top: 5px; color: #178879; font-size: 10px; }
.membership-referral-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
.membership-referral-stats div { display: grid; gap: 4px; padding: 10px 11px; border: 1px solid #e0e5e1; border-radius: 8px; background: #fbfcfb; }
.membership-referral-stats span { color: #75817d; font-size: 10px; }
.membership-referral-stats b { color: #173a34; font-size: 16px; }
.membership-referral-history {
  display: grid;
  gap: 6px;
  height: 179px;
  margin-top: 10px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #a9c9c1 transparent;
}
.membership-referral-history > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #edf0ed; font-size: 10px; }
.membership-referral-history span { color: #526861; }
.membership-referral-history b { color: #178879; }
.membership-referral-history small { color: #87938e; }
.membership-referral-empty { grid-column: 1 / -1; padding: 10px 0; color: #75817d; text-align: center; }
.membership-ledger-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.membership-ledger-stats div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #dce2dd;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,247,243,.92));
}
.membership-ledger-stats span {
  color: #74817d;
  font-size: 10px;
  font-weight: 850;
}
.membership-ledger-stats b {
  color: #173a34;
  font-size: 20px;
}
.membership-ledger-list {
  display: grid;
  gap: 9px;
}
.membership-ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 68px 72px auto;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #dce2dd;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.membership-ledger-row strong {
  display: block;
  overflow: hidden;
  color: #17202b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.membership-ledger-row small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #65716d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.membership-ledger-row time,
.membership-ledger-status {
  color: #74817d;
  font-size: 11px;
  font-weight: 850;
}
.membership-ledger-status {
  justify-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3ef;
}
.membership-cost {
  justify-self: end;
  font-size: 14px;
}
.membership-cost.charged { color: #dc4f45; }
.membership-cost.free { color: #178879; }
.membership-ledger-actions { display: inline-flex; justify-content: flex-end; gap: 6px; }
.membership-ledger-actions button { height: 28px; padding: 0 8px; border: 1px solid #b8ddd3; border-radius: 5px; color: #176e62; background: #fff; font-size: 11px; cursor: pointer; white-space: nowrap; }
.membership-ledger-actions button:hover { border-color: #168f7e; background: #f1faf7; }
.membership-ledger-empty {
  padding: 18px;
  border: 1px dashed #ccd5cf;
  border-radius: 14px;
  color: #74817d;
  background: rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.membership-ledger-table-wrap {
  overflow-x: auto;
  border: 1px solid #dce2dd;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.membership-order-list::-webkit-scrollbar,
.membership-referral-history::-webkit-scrollbar { width: 7px; height: 7px; }
.membership-order-list::-webkit-scrollbar-thumb,
.membership-referral-history::-webkit-scrollbar-thumb { border-radius: 999px; background: #a9c9c1; }
.membership-order-list::-webkit-scrollbar-track,
.membership-referral-history::-webkit-scrollbar-track { background: transparent; }
.membership-ledger-table { 
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
}
.membership-ledger-table th,
.membership-ledger-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8ede9;
  text-align: left;
  vertical-align: middle;
}
.membership-ledger-table th {
  color: #74817d;
  background: #f6f8f6;
  font-size: 10px;
  font-weight: 850;
}
.membership-ledger-table th:nth-child(1) { width: 142px; }
.membership-ledger-table th:nth-child(3) { width: 108px; }
.membership-ledger-table th:nth-child(4) { width: 68px; text-align: right; }
.membership-ledger-table th:nth-child(5) { width: 142px; text-align: right; }
.membership-ledger-table tbody tr:last-child td { border-bottom: 0; }
.membership-ledger-table tbody tr:hover { background: #f8fbf9; }
.membership-ledger-table td strong,
.membership-ledger-table td small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membership-ledger-table td strong { color: #173a34; font-size: 12px; }
.membership-ledger-table td small { margin-top: 3px; color: #65716d; font-size: 10px; }
.membership-ledger-date { color: #65716d; font-size: 11px; white-space: nowrap; }
.membership-ledger-table td:nth-child(4),
.membership-ledger-table td:nth-child(5) { text-align: right; }
.membership-ledger-table .membership-ledger-status { display: inline-flex; min-width: 62px; justify-content: center; white-space: nowrap; }
.membership-ledger-table .membership-cost { justify-self: auto; font-size: 12px; white-space: nowrap; }
.membership-ledger-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #65716d;
  font-size: 11px;
}
.membership-ledger-pagination > div { display: inline-flex; gap: 5px; }
.membership-ledger-page-gap { display: inline-grid; min-width: 18px; height: 28px; place-items: center; color: #91a09a; font-style: normal; font-weight: 800; }
.membership-page-jump {
  width: 38px;
  min-width: 38px;
  height: 28px;
  box-sizing: border-box;
  padding: 0 4px;
  border: 1px solid #d2ddd7;
  border-radius: 5px;
  color: #28574f;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  outline: none;
}
.membership-page-jump::placeholder { color: #91a09a; opacity: 1; }
.membership-page-jump:focus { border-color: #168f7e; box-shadow: 0 0 0 2px rgba(22, 143, 126, .12); }
.membership-page-jump[aria-invalid="true"] { border-color: #dc4f45; color: #b53630; }
.membership-page-jump::-webkit-inner-spin-button,
.membership-page-jump::-webkit-outer-spin-button { margin: 0; appearance: none; }
.membership-ledger-page,
.membership-ledger-page-arrow {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d2ddd7;
  border-radius: 5px;
  color: #28574f;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}
.membership-ledger-page:hover,
.membership-ledger-page-arrow:hover { border-color: #168f7e; background: #f1faf7; }
.membership-ledger-page.active { border-color: #168f7e; color: #fff; background: #168f7e; }
.membership-ledger-page-arrow:disabled { opacity: .45; cursor: default; }
.api-key-stage { width: min(960px, 100%); margin: 0 auto 16px; }
.api-key-stage .api-key-box { margin-top: 0; }
.api-branding-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #d8e4df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 58, 52, .045);
}
.api-branding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.api-branding-intro { display: grid; gap: 4px; min-width: 0; }
.api-branding-head span {
  color: #178879;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}
.api-branding-head strong { color: #17202b; font-size: 17px; }
.api-branding-head small { color: #71807b; font-size: 11px; line-height: 1.55; }
.api-branding-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 184px;
  padding: 9px 11px;
  border: 1px solid #dce8e3;
  border-radius: 10px;
  background: #fbfdfc;
}
.api-branding-preview img {
  grid-row: 1 / span 2;
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.api-branding-preview b {
  overflow: hidden;
  color: #173a34;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-branding-preview small {
  overflow: hidden;
  color: #7a8984;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-branding-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.api-branding-section {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce8e3;
  border-radius: 11px;
  background: #fbfdfc;
}
.api-branding-section-head {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.api-branding-section-head strong {
  color: #204a42;
  font-size: 13px;
  font-weight: 850;
}
.api-branding-section-head small {
  overflow: hidden;
  color: #788782;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-branding-section-fields {
  display: grid;
  gap: 10px;
}
.api-branding-section label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.api-branding-section label > span {
  color: #40635a;
  font-size: 11px;
  font-weight: 850;
}
.api-branding-section input {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d4e0db;
  border-radius: 8px;
  outline: none;
  color: #183d35;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.api-branding-section input:focus { border-color: #15947f; box-shadow: 0 0 0 3px rgba(21, 148, 127, .12); }
.api-branding-upload-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
}
.api-branding-upload-button,
.api-branding-asset-remove,
.api-branding-audio-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #b8d4c9;
  border-radius: 7px;
  color: #176f62;
  background: #f2faf6;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.api-branding-upload-button:hover { border-color: #178879; color: #fff; background: #178879; }
.api-branding-audio-preview { border-color: #b8d4c9; color: #176f62; background: #fff; }
.api-branding-audio-preview:hover { border-color: #178879; color: #fff; background: #178879; }
.api-branding-asset-remove { border-color: #e9c8c1; color: #a84b3e; background: #fffafa; }
.api-branding-asset-remove:hover:not(:disabled) { border-color: #c65d4b; color: #fff; background: #c65d4b; }
.api-branding-upload-button:disabled,
.api-branding-asset-remove:disabled { cursor: not-allowed; opacity: .52; }
.api-branding-asset-status {
  flex-basis: 100%;
  color: #668078;
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
}
.api-branding-asset-status.is-ready { color: #178879; }
.api-branding-asset-status.is-uploading { color: #a87820; }
.api-branding-asset-status.is-error { color: #c94949; }
.api-branding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4ece8;
}
.api-branding-actions > small { max-width: 560px; color: #75837e; font-size: 10px; line-height: 1.55; }
.api-branding-actions > div { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.api-branding-actions button {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #178879;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.api-branding-actions button:disabled { cursor: wait; opacity: .65; }
#api-branding-message { color: #178879; font-size: 11px; white-space: nowrap; }
#api-branding-message.error { color: #c94949; }
@media (max-width: 900px) {
  .api-branding-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-branding-basics { grid-column: 1 / -1; }
  .api-branding-basics .api-branding-section-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .api-branding-head { align-items: stretch; flex-direction: column; }
  .api-branding-preview { min-width: 0; }
  .api-branding-sections { grid-template-columns: 1fr; }
  .api-branding-basics { grid-column: auto; }
  .api-branding-basics .api-branding-section-fields { grid-template-columns: 1fr; }
  .api-branding-actions { align-items: stretch; flex-direction: column; }
  .api-branding-actions > div { justify-content: space-between; }
  #api-branding-message { white-space: normal; text-align: right; }
}
.api-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.api-availability {
  margin: 14px 0 -4px;
  padding: 9px 11px;
  border-left: 3px solid #178879;
  color: #4d625c;
  background: #f2f8f5;
  font-size: 12px;
  line-height: 1.65;
}
.api-availability b { color: #17675e; }
.api-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 8px 0 10px;
}
.api-card-heading h2 { margin: 0; }
.api-card .api-card-docs-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #b9ddd4;
  border-radius: 5px;
  color: #116e60;
  background: #f3fbf8;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
  vertical-align: baseline;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}
.api-card .api-card-docs-link:hover {
  border-color: #168f7e;
  color: #0d5f52;
  background: #e9f8f3;
  transform: translateY(-1px);
}
.api-card .api-card-docs-link em {
  padding-left: 6px;
  border-left: 1px solid #b9ddd4;
  color: #6b837c;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.api-card .api-card-docs-link b { color: inherit; font-size: 14px; line-height: 1; }
@media (max-width: 560px) {
  .api-card-heading { align-items: flex-start; }
}
.api-doc-item {
  overflow: hidden;
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #fbfcfa;
}
.api-doc-item > summary {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  color: #64706b;
  cursor: pointer;
  list-style: none;
}
.api-doc-item > summary::-webkit-details-marker { display: none; }
.api-doc-item > summary::marker { content: ""; }
.api-doc-item > summary > code {
  display: block;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 5px;
  color: #85f4df;
  background: #101720;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-doc-item > summary > span { min-width: 0; font-size: 11px; line-height: 1.5; }
.api-doc-item > summary > b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #178879;
  font-size: 11px;
  white-space: nowrap;
}
.api-doc-item > summary > b::after { content: "+"; font-size: 15px; font-weight: 500; }
.api-doc-item[open] { border-color: #a9d8cc; background: #fff; }
.api-doc-item[open] > summary { border-bottom: 1px solid #e3ebe6; background: #f6fbf8; }
.api-doc-item[open] > summary > b::after { content: "-"; }
.api-doc-content { display: grid; gap: 13px; padding: 15px 16px 17px; color: #596863; font-size: 11px; line-height: 1.65; }
.api-doc-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.api-doc-meta span { padding: 4px 7px; border: 1px solid #dbe7e1; border-radius: 4px; color: #537069; background: #f5faf7; font-size: 10px; }
.api-doc-content code { color: #146f63; font-family: var(--mono); font-size: .95em; }
.api-doc-content dl { display: grid; grid-template-columns: minmax(110px, .35fr) minmax(0, 1.65fr); gap: 7px 14px; margin: 0; padding: 12px; border: 1px solid #e4ebe7; border-radius: 6px; background: #fafcfb; }
.api-doc-content dt { color: #17202b; font-family: var(--mono); font-weight: 850; }
.api-doc-content dd { margin: 0; color: #65726e; }
.api-doc-content pre { overflow-x: auto; margin: 0; padding: 12px; border-radius: 6px; color: #a6ffea; background: #101720; font-family: var(--mono); font-size: 10px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.api-doc-content pre::selection { color: #101720; background: #8ff5de; }
.api-doc-content p { margin: 0; color: #65726e; }
.api-doc-content p > b { color: #283832; }
}
.api-key-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #d7ddd7;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(247,247,243,.88));
}
.api-key-box > div:first-child {
  display: grid;
  gap: 5px;
}
.api-key-box span {
  color: #178879;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}
.api-key-box strong {
  color: #17202b;
  font-size: 20px;
}
.api-key-box small {
  color: #63716d;
  line-height: 1.55;
}
.api-key-box > button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #173a34;
  font-weight: 900;
  cursor: pointer;
}
.api-key-box > button:disabled {
  cursor: wait;
  opacity: .65;
}
.api-access-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 2px;
  min-width: 0;
  width: 100%;
}
#api-module .api-key-box .api-access-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
#api-module .api-key-box .api-access-row span {
  flex: 0 0 82px;
  color: #178879;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
#api-module .api-key-box .api-access-row > code {
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #8ff5de;
  background: #101720;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#api-module .api-key-box .api-access-row > code.success { color: #8ff5de; }
#api-module .api-key-box .api-access-row > code.error { color: #ff9a8d; }
#api-key-value {
  width: 100%;
}
#api-module .api-key-box .api-access-row button {
  flex: 0 0 64px;
  width: 64px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #173a34;
  border-radius: 999px;
  color: #173a34;
  background: white;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.home-footer {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  padding: 42px max(34px, calc((100vw - 1240px) / 2)) 34px;
  color: #dce5e1;
  background: linear-gradient(135deg, #101720, #173a34);
  font-family: var(--mono);
  letter-spacing: .04em;
}
.home-footer-left { display: grid; gap: 8px; max-width: 420px; }
.home-footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { position: relative; display: inline-block; width: 34px; height: 34px; flex: 0 0 34px; }
.footer-logo i { position: absolute; left: 10px; top: 6px; width: 14px; height: 22px; border-radius: 9px; transform-origin: 7px 11px; }
.footer-logo i:nth-child(1) { background: #ef4f99; transform: rotate(-52deg) translateY(-1px); }
.footer-logo i:nth-child(2) { background: #fcd20b; transform: rotate(4deg) translateY(-2px); }
.footer-logo i:nth-child(3) { background: #117aa2; transform: rotate(58deg) translateY(1px); }
.footer-logo i:nth-child(4) { background: #92c83e; transform: rotate(120deg) translateY(2px); }
.footer-logo i:nth-child(5) { background: #19bcb1; transform: rotate(178deg) translateY(2px); }
.footer-logo i:nth-child(6) { background: #1ba8e0; transform: rotate(238deg) translateY(1px); }
.footer-logo-svg { display: grid; place-items: center; }
.footer-logo-svg > svg { display: block; width: 100%; height: 100%; }
.home-footer-left strong { color: #fff; font-family: inherit; font-size: 20px; letter-spacing: -.04em; }
.home-footer-left p { margin: 0; color: #afc0bb; font-family: "Microsoft YaHei", sans-serif; font-size: 13px; line-height: 1.7; }
.home-footer-left small { color: #6ed6c4; font-size: 8px; letter-spacing: .12em; }
.home-footer-right { display: grid; gap: 8px; justify-items: end; }
.home-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.home-footer-links button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(154, 232, 215, .22);
  border-radius: 999px;
  color: #cce5df;
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.home-footer-links button:hover { color: #0f2722; background: #7dffe5; }
.home-footer-right > span { max-width: 430px; color: #7faaa2; font-size: 8px; line-height: 1.6; text-align: right; }
.footer-info-panel { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; box-sizing: border-box; padding: 32px 22px; overflow: auto; background: rgba(5, 12, 15, .68); backdrop-filter: blur(8px); }
.footer-info-card { position: relative; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; width: min(720px, 100%); max-height: 100%; padding: 32px; border: 1px solid #34574f; border-radius: 18px; color: #e8f3ef; background: linear-gradient(145deg, #101720, #173a34); box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.footer-info-card.footer-info-long { height: min(760px, 100%); }
.footer-info-card h3 { margin: 10px 0; color: #fff; font-size: 30px; }
.footer-info-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 12px; color: #b8cbc5; line-height: 1.85; scrollbar-width: thin; scrollbar-color: #4e9385 #0b181a; }
.footer-info-content::-webkit-scrollbar { width: 7px; }
.footer-info-content::-webkit-scrollbar-track { margin: 4px 0; border-radius: 8px; background: #0b181a; }
.footer-info-content::-webkit-scrollbar-thumb { min-height: 44px; border: 2px solid #0b181a; border-radius: 8px; background: #4e9385; }
.footer-info-content::-webkit-scrollbar-thumb:hover { background: #78c7b5; }
.footer-info-content h4 { margin: 20px 0 8px; color: #edf9f5; font-size: 15px; line-height: 1.5; }
.footer-info-content p { margin: 0 0 10px; font-size: 13px; white-space: pre-line; }
.footer-info-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #b8cbc5; background: rgba(255,255,255,.08); font-size: 24px; cursor: pointer; }
.footer-info-close:hover { color: #10211e; background: #7dffe5; }

body[data-route="quick"] .home-hero,
body[data-route="quick"] .home-tool-strip,
body[data-route="quick"] #tune-module,
body[data-route="quick"] #quality-module,
body[data-route="quick"] #admin-module,
body[data-route="quick"] #admin-console,
body[data-route="quick"] #pricing-module,
body[data-route="quick"] #membership-module,
body[data-route="quick"] #api-module,
body[data-route="tune"] .home-hero,
body[data-route="tune"] .home-tool-strip,
body[data-route="tune"] #quick-module,
body[data-route="tune"] #score-module,
body[data-route="tune"] #quality-module,
body[data-route="tune"] #admin-module,
body[data-route="tune"] #admin-console,
body[data-route="tune"] #pricing-module,
body[data-route="tune"] #membership-module,
body[data-route="tune"] #api-module,
body[data-route="quality"] .home-hero,
body[data-route="quality"] .home-tool-strip,
body[data-route="quality"] #quick-module,
body[data-route="quality"] #score-module,
body[data-route="quality"] #tune-module,
body[data-route="quality"] #admin-module,
body[data-route="quality"] #admin-console,
body[data-route="quality"] #pricing-module,
body[data-route="quality"] #membership-module,
body[data-route="quality"] #api-module,
body[data-route="pricing"] .home-hero,
body[data-route="pricing"] .home-tool-strip,
body[data-route="pricing"] #quick-module,
body[data-route="pricing"] #score-module,
body[data-route="pricing"] #tune-module,
body[data-route="pricing"] #quality-module,
body[data-route="pricing"] #admin-module,
body[data-route="pricing"] #admin-console,
body[data-route="pricing"] #membership-module,
body[data-route="pricing"] #api-module,
body[data-route="membership"] .home-hero,
body[data-route="membership"] .home-tool-strip,
body[data-route="membership"] #quick-module,
body[data-route="membership"] #score-module,
body[data-route="membership"] #tune-module,
body[data-route="membership"] #quality-module,
body[data-route="membership"] #admin-module,
body[data-route="membership"] #admin-console,
body[data-route="membership"] #pricing-module,
body[data-route="membership"] #api-module,
body[data-route="api"] .home-hero,
body[data-route="api"] .home-tool-strip,
body[data-route="api"] #quick-module,
body[data-route="api"] #score-module,
body[data-route="api"] #tune-module,
body[data-route="api"] #quality-module,
body[data-route="api"] #admin-module,
body[data-route="api"] #admin-console,
body[data-route="api"] #pricing-module,
body[data-route="api"] #membership-module,
body[data-route="reverse"] .home-hero,
body[data-route="reverse"] .home-tool-strip,
body[data-route="reverse"] #quick-module,
body[data-route="reverse"] #score-module,
body[data-route="reverse"] #tune-module,
body[data-route="reverse"] #quality-module,
body[data-route="reverse"] #admin-module,
body[data-route="reverse"] #admin-console,
body[data-route="reverse"] #pricing-module,
body[data-route="reverse"] #membership-module,
body[data-route="reverse"] #api-module,
body[data-route="admin"] .home-hero,
body[data-route="admin"] .home-tool-strip,
body[data-route="admin"] #quick-module,
body[data-route="admin"] #score-module,
body[data-route="admin"] #tune-module,
body[data-route="admin"] #quality-module,
body[data-route="admin"] #pricing-module,
body[data-route="admin"] #membership-module,
body[data-route="admin"] #api-module,
body[data-route="admin"] #admin-module,
body[data-route="admin"] .home-footer,
body[data-route="checkout"] .home-hero,
body[data-route="checkout"] .home-tool-strip,
body[data-route="checkout"] #quick-module,
body[data-route="checkout"] #score-module,
body[data-route="checkout"] #tune-module,
body[data-route="checkout"] #quality-module,
body[data-route="checkout"] #pricing-module,
body[data-route="checkout"] #membership-module,
body[data-route="checkout"] #api-module,
body[data-route="checkout"] #admin-module,
body[data-route="checkout"] #admin-console,
body[data-route="checkout"] .home-footer { display: none; }
body[data-route="assets"] .home-hero,
body[data-route="assets"] .home-tool-strip,
body[data-route="assets"] #quick-module,
body[data-route="assets"] #score-module,
body[data-route="assets"] #tune-module,
body[data-route="assets"] #quality-module,
body[data-route="assets"] #reverse-module,
body[data-route="assets"] #lyrics-module,
body[data-route="assets"] #pricing-module,
body[data-route="assets"] #checkout-module,
body[data-route="assets"] #membership-module,
body[data-route="assets"] #api-module,
body[data-route="assets"] #admin-module,
body[data-route="assets"] #admin-console,
body[data-route="assets"] .home-footer { display: none; }
body[data-route="quick"] #quick-module,
body[data-route="quick"] #score-module,
body[data-route="tune"] #tune-module,
body[data-route="quality"] #quality-module {
  min-height: calc(100vh - 64px);
  padding-top: 92px;
  border-top: 0;
}
body[data-route="pricing"] #pricing-module,
body[data-route="membership"] #membership-module,
body[data-route="assets"] #assets-module,
body[data-route="api"] #api-module {
  display: block;
}
body[data-route="reverse"] #reverse-module {
  display: block;
  min-height: calc(100vh - 64px);
  padding-top: 92px;
  border-top: 0;
}
body[data-route="lyrics"] .home-hero {
  display: flex;
  height: calc(100svh - 64px);
  min-height: 0;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #080c10;
}
body[data-route="lyrics"] .home-god-rays { display: none; }
body[data-route="lyrics"] .home-hero-copy,
body[data-route="lyrics"] .home-tool-strip,
body[data-route="lyrics"] #quick-module,
body[data-route="lyrics"] #score-module,
body[data-route="lyrics"] #tune-module,
body[data-route="lyrics"] #quality-module,
body[data-route="lyrics"] #reverse-module { display: none; }
body[data-route="lyrics"] .hero-player {
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-route="lyrics"] .hero-player-visual { height: calc(100% - 143px); min-height: 0; }
body[data-route="lyrics"] #lyrics-module {
  display: block;
  min-height: calc(100vh - 64px);
  padding: 72px max(38px, calc((100vw - 1240px) / 2)) 88px;
  border-top: 1px solid #27313a;
  background: #f4f7f5;
}
body[data-route="lyrics"] .home-footer {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}
.lyrics-band {
  padding: 88px max(38px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--hairline);
  background: #f4f7f5;
}
.lyrics-heading { max-width: 760px; margin: 0 auto 28px; color: #17202b; text-align: center; }
.lyrics-heading h2 { margin: 7px 0 9px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.lyrics-heading p { margin: 0; color: #65716d; font-size: 14px; line-height: 1.8; }
.lyrics-alert { max-width: 1240px; margin: 0 auto 16px; padding: 11px 14px; border: 1px solid #e7b6ab; border-radius: 8px; color: #a63827; background: #fff2ef; font-size: 12px; }
.lyrics-workspace { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); align-items: stretch; gap: 18px; max-width: 1240px; margin: 0 auto; }
.lyrics-job-card, .lyrics-result-card { padding: 22px; border: 1px solid #d8dfdb; border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(28, 39, 35, .06); }
.lyrics-job-card { display: flex; min-height: 0; flex-direction: column; }
.lyrics-job-head, .lyrics-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lyrics-job-head > span, .lyrics-result-head > div:first-child > span { display: block; margin-bottom: 6px; color: #168f7e; font: 700 9px/1 var(--mono); letter-spacing: .12em; }
.lyrics-job-head strong, .lyrics-result-head strong { color: #182520; font-size: 19px; letter-spacing: -.03em; }
.lyrics-job-head small { max-width: 160px; color: #77837f; font-size: 11px; line-height: 1.55; text-align: right; }
.lyrics-dropzone { display: grid; gap: 7px; margin: 25px 0 17px; padding: 30px 20px; border: 1px dashed #86c8bd; border-radius: 12px; color: #176e62; background: #f1faf7; text-align: center; cursor: pointer; transition: .18s ease; }
.lyrics-dropzone:hover { border-color: #168f7e; background: #e8f7f2; transform: translateY(-1px); }
.lyrics-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lyrics-dropzone b { font-size: 15px; }.lyrics-dropzone span { color: #71807b; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lyrics-flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #5d6d67; font-size: 11px; }.lyrics-flow i { flex: 1; min-width: 14px; height: 1px; background: linear-gradient(90deg, #67c4b4, #d4dfda); }
.lyrics-progress { height: 5px; margin-top: 24px; overflow: hidden; border-radius: 99px; background: #e4ebe7; }.lyrics-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #20a88f, #55d0bb); transition: width .3s ease; }
.lyrics-job-meta { display: flex; justify-content: space-between; gap: 10px; margin: 9px 0 17px; color: #77837f; font-size: 10px; }.lyrics-job-meta span:first-child { color: #168f7e; font-family: var(--mono); }
.lyrics-job-error { display: block; margin: -7px 0 15px; color: #b23b3b; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.lyrics-generate { width: 100%; height: 42px; border: 0; border-radius: 7px; color: #fff; background: #168f7e; font-weight: 700; cursor: pointer; }.lyrics-generate:disabled { cursor: not-allowed; opacity: .45; }.lyrics-generate:not(:disabled):hover { background: #0e7869; }
.lyrics-proofread-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.lyrics-proofread-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid #b8ddd3; border-radius: 6px; color: #176e62; background: #fff; font-size: 11px; cursor: pointer; white-space: nowrap; }
.lyrics-proofread-action:hover { border-color: #168f7e; background: #f1faf7; }.lyrics-proofread-action input { display: none; }.lyrics-proofread-action svg { width: 15px; height: 15px; flex: 0 0 auto; fill: currentColor; }
.lyrics-proofread-action.is-disabled { pointer-events: none; opacity: .5; }
.lyrics-recognition-review { display: grid; gap: 3px; margin-top: 10px; padding: 10px 11px; border: 1px solid #ead6a2; border-radius: 7px; background: #fffbef; }
.lyrics-recognition-review strong { color: #8b6412; font-size: 11px; }.lyrics-recognition-review small { color: #806f48; font-size: 10px; line-height: 1.5; }
.lyrics-proofread-status { display: grid; gap: 7px; margin-top: 10px; padding: 11px 12px; border: 1px solid #b8ddd3; border-radius: 7px; background: #f4faf7; }
.lyrics-proofread-status > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lyrics-proofread-status strong { color: #24463e; font-size: 11px; }
.lyrics-proofread-status b { color: #168f7e; font-family: var(--mono); font-size: 10px; }
.lyrics-proofread-status > span { height: 5px; overflow: hidden; border-radius: 99px; background: #dfeae5; }
.lyrics-proofread-status > span i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #168f7e, #55d0bb); transition: width .28s ease; }
.lyrics-proofread-status small { color: #71807b; font-size: 10px; line-height: 1.45; }
.lyrics-proofread-status.complete { border-color: #90d7c5; background: #eef9f5; }
.lyrics-history-panel { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid #e1e9e5; }
.lyrics-history-head > div { display: grid; gap: 3px; }
.lyrics-history-head span { color: #168f7e; font: 700 9px/1 var(--mono); letter-spacing: .12em; }
.lyrics-history-head strong { color: #253831; font-size: 15px; letter-spacing: -.02em; }
.lyrics-history-panel .quick-output-list { display: grid; max-height: 184px; gap: 8px; padding: 0; overflow: auto; scrollbar-color: #b6d8ce transparent; }
.lyrics-history-panel .quick-output-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 11px; border: 1px solid #d9e8e2; border-radius: 8px; background: #f6fbf8; }
.lyrics-history-panel .quick-output-row > div { min-width: 0; }
.lyrics-history-panel .quick-output-row strong { display: block; overflow: hidden; color: #24453d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lyrics-history-panel .quick-output-row small { display: block; margin-top: 3px; color: #71807b; font-size: 10px; }
.lyrics-history-panel .quick-output-row a { padding: 6px 8px; border: 1px solid #a8d8ca; border-radius: 5px; color: #126f60; background: #fff; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lyrics-history-panel .quick-output-row a:hover { border-color: #168f7e; color: #0d6658; background: #eaf8f2; }
.lyrics-history-panel .quick-output-empty { display: grid; gap: 4px; padding: 12px; border: 1px dashed #bed8cf; border-radius: 8px; color: #63736d; background: #fbfdfc; }
.lyrics-history-panel .quick-output-empty strong { color: #34534a; font-size: 12px; }
.lyrics-history-panel .quick-output-empty span { color: #77857f; font-size: 10px; line-height: 1.45; }
.lyrics-result-card { display: grid; min-height: 0; grid-template-rows: auto minmax(270px, 1fr) auto; gap: 14px; }
.lyrics-result-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lyrics-action-button, .lyrics-icon-action { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid #b8ddd3; border-radius: 6px; color: #176e62; background: #fff; font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.lyrics-action-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.lyrics-action-button:hover { border-color: #168f7e; background: #f1faf7; transform: translateY(-1px); }
.lyrics-play-button { border-color: #168f7e; color: #fff; background: #168f7e; box-shadow: 0 3px 8px rgba(22, 143, 126, .16); }
.lyrics-play-button:hover { border-color: #0f7769; color: #fff; background: #0f7769; }
.lyrics-action-button:disabled { cursor: not-allowed; border-color: #d7e2de; color: #8b9a95; background: #f5f8f7; box-shadow: none; transform: none; }
.lyrics-action-button:disabled:hover { border-color: #d7e2de; color: #8b9a95; background: #f5f8f7; transform: none; }
.lyrics-icon-action { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; }.lyrics-icon-action input { display: none; }.lyrics-icon-action svg { width: 15px; height: 15px; fill: currentColor; }
.lyrics-copy-action { position: relative; display: inline-flex; min-width: 0; }
.lyrics-copy-status { position: absolute; top: calc(100% + 5px); left: 50%; min-height: 12px; transform: translateX(-50%); color: #168f7e; font-size: 10px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; pointer-events: none; }
.lyrics-result-head button:focus-visible { outline: 0; border-color: #168f7e; box-shadow: 0 0 0 3px rgba(22, 143, 126, .16); }
.lyrics-editor {
  width: 100%;
  min-height: 270px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #d7e0db;
  border-radius: 8px;
  color: #26332d;
  background: #fbfcfb;
  font: 13px/1.85 "Microsoft YaHei", sans-serif;
  outline: 0;
}
.lyrics-editor:focus { border-color: #50c9b5; box-shadow: 0 0 0 2px rgba(80, 201, 181, .12); }
.lyrics-export-row { display: flex; flex-wrap: wrap; gap: 8px; }.lyrics-export-item { display: inline-flex; min-width: 0; }.lyrics-export-row a { padding: 7px 10px; border: 1px solid #beddd5; border-radius: 5px 0 0 5px; color: #176e62; background: #f3fbf8; font-size: 11px; text-decoration: none; }.lyrics-export-row a:hover { border-color: #168f7e; background: #e9f8f3; }.lyrics-export-row a.disabled { pointer-events: none; opacity: .4; }.lyrics-preview-action { display: grid; width: 29px; min-height: 30px; place-items: center; padding: 0; border: 1px solid #beddd5; border-left-color: #8fc5b8; border-radius: 0 5px 5px 0; color: #176e62; background: #f3fbf8; cursor: pointer; }.lyrics-preview-action:hover, .lyrics-preview-action.active { border-color: #168f7e; color: #0e7869; background: #e9f8f3; }.lyrics-preview-action svg { width: 15px; height: 15px; fill: currentColor; }
@media (min-width: 761px) { .lyrics-editor { min-height: 0; height: 100%; } }
body[data-route="admin"] #admin-console {
  min-height: calc(100vh - 64px);
}

.reverse-result { margin-top: 20px; color: #17202b; }
.reverse-job { margin-top: 14px; }
.reverse-job > div:first-child { display: flex; justify-content: space-between; }
.reverse-job span { color: #49c6bf; font-family: var(--mono); }
.reverse-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #26383d; }
.reverse-progress i { display: block; width: 0; height: 100%; background: #49c6bf; transition: width .25s ease; }
.reverse-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #dfe5e0; }
.reverse-report-head h3 { margin: 5px 0 6px; font-size: 27px; letter-spacing: 0; }
.reverse-report-head p { margin: 0; color: #71807b; font-size: 12px; }
.reverse-report-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.reverse-report-badge { padding: 7px 9px; border: 1px solid #b8ddd3; border-radius: 5px; color: #176e62; background: #edf8f4; font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.reverse-downloads { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.reverse-download-link { padding: 6px 8px; border: 1px solid #cad8d3; border-radius: 5px; color: #285b51; background: #fff; font-size: 10px; text-decoration: none; }
.reverse-download-link:hover { border-color: #168f7e; color: #0c7566; background: #f1faf7; }
.reverse-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.reverse-meta-item { padding: 12px; border: 1px solid #e0e6e1; border-radius: 7px; background: #f8faf8; }
.reverse-meta-item span { display: block; margin-bottom: 5px; color: #7b8783; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.reverse-meta-item strong { display: block; overflow: hidden; color: #17202b; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.reverse-technical-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #dfe5e0; border-bottom: 1px solid #dfe5e0; margin-bottom: 18px; }
.reverse-technical-metric { min-width: 0; padding: 13px 12px; border-right: 1px solid #e3e8e4; border-bottom: 1px solid #e3e8e4; }
.reverse-technical-metric:nth-child(4n) { border-right: 0; }
.reverse-technical-metric:nth-last-child(-n+4) { border-bottom: 0; }
.reverse-technical-metric span { display: block; margin-bottom: 4px; color: #7b8783; font-size: 9px; }
.reverse-technical-metric strong { display: block; overflow: hidden; color: #17202b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.reverse-report-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; }
.reverse-report-block { padding: 16px; border: 1px solid #e0e6e1; border-radius: 8px; background: #fbfcfb; }
.reverse-report-block h4 { margin: 0 0 10px; color: #176e62; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.reverse-report-block p { margin: 0; color: #53625d; line-height: 1.7; font-size: 13px; }
.reverse-prompt { position: relative; padding: 14px; border-left: 3px solid #168f7e; color: #24463e; background: #f0f8f4; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.reverse-prompt button { position: absolute; top: 9px; right: 9px; border: 1px solid #b8ddd3; border-radius: 4px; padding: 4px 7px; color: #176e62; background: #fff; font-size: 10px; cursor: pointer; }
.reverse-sections { display: grid; gap: 10px; }
.reverse-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reverse-section-title h4 { margin-bottom: 0; }
.reverse-copy-all { border: 1px solid #b8ddd3; border-radius: 4px; padding: 4px 8px; color: #176e62; background: #fff; font-size: 10px; cursor: pointer; }
.reverse-section-row { padding: 12px; border: 1px solid #e0e6e1; border-radius: 7px; background: #fff; }
.reverse-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.reverse-section-head strong { color: #17202b; font-size: 13px; }
.reverse-section-head span { color: #168f7e; font-family: var(--mono); font-size: 10px; }
.reverse-section-row > p { margin: 0 0 8px; color: #71807b; font-size: 12px; }
.reverse-section-prompt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-left: 2px solid #168f7e; background: #f0f8f4; }
.reverse-section-prompt code { flex: 1; color: #24463e; font-family: var(--mono); font-size: 11px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.reverse-section-prompt button { flex: 0 0 auto; border: 1px solid #b8ddd3; border-radius: 4px; padding: 4px 7px; color: #176e62; background: #fff; font-size: 10px; cursor: pointer; }
.reverse-instruments { display: flex; flex-wrap: wrap; gap: 7px; }
.reverse-instrument { padding: 5px 8px; border: 1px solid #d3e2dc; border-radius: 99px; color: #176e62; background: #f0f8f4; font-size: 11px; }
.reverse-data-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 16px; margin-top: 16px; }
.reverse-data-section { min-width: 0; border-top: 2px solid #168f7e; background: #fbfcfb; }
.reverse-data-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 4px 9px; }
.reverse-data-head span { color: #168f7e; font-family: var(--mono); font-size: 9px; }
.reverse-data-head strong { color: #17202b; font-size: 13px; }
.reverse-data-scroll { max-height: 280px; overflow: auto; border-top: 1px solid #e0e6e1; border-bottom: 1px solid #e0e6e1; }
.reverse-data-scroll table { width: 100%; border-collapse: collapse; font-size: 11px; }
.reverse-data-scroll th { position: sticky; top: 0; z-index: 1; padding: 8px; color: #65736e; background: #eef3f0; text-align: left; }
.reverse-data-scroll td { padding: 8px; border-top: 1px solid #e8ece9; color: #596660; }
.reverse-data-scroll td strong { color: #176e62; }
.reverse-stem-list { display: grid; gap: 10px; padding: 12px 4px; border-top: 1px solid #e0e6e1; }
.reverse-stem-row > div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.reverse-stem-row strong { color: #26342e; font-size: 11px; }
.reverse-stem-row span { color: #74817c; font-family: var(--mono); font-size: 9px; }
.reverse-stem-row > i { display: block; height: 5px; overflow: hidden; background: #e5ece8; }
.reverse-stem-row > i > b { display: block; height: 100%; background: #168f7e; }
.reverse-variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.reverse-variant { padding: 14px; border: 1px solid #e0e6e1; border-radius: 8px; background: #fbfcfb; }
.reverse-variant strong { display: block; margin-bottom: 6px; color: #17202b; font-size: 13px; }
.reverse-variant p { margin: 0; color: #71807b; font-size: 11px; line-height: 1.6; }
.reverse-variant-sections { margin-top: 10px; border-top: 1px solid #e0e6e1; padding-top: 9px; }
.reverse-variant-sections summary { color: #176e62; font-size: 11px; cursor: pointer; }
.reverse-variant-sections > .reverse-copy-all { margin-top: 8px; }
.reverse-variant-section { position: relative; display: grid; gap: 5px; margin-top: 9px; padding: 9px; border: 1px solid #e0e6e1; border-radius: 5px; background: #fff; }
.reverse-variant-section > div { display: flex; justify-content: space-between; gap: 8px; }
.reverse-variant-section > div strong { margin: 0; font-size: 11px; }
.reverse-variant-section > div span { color: #168f7e; font-family: var(--mono); font-size: 9px; }
.reverse-variant-section code { padding-right: 42px; color: #53625d; font-family: var(--mono); font-size: 10px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.reverse-variant-section button { position: absolute; right: 7px; bottom: 7px; border: 1px solid #b8ddd3; border-radius: 4px; padding: 3px 6px; color: #176e62; background: #fff; font-size: 9px; cursor: pointer; }
.reverse-result.hidden { display: none; }
.reverse-guide-note { display: block; margin-top: 12px; color: #83979b; font-size: 9px; line-height: 1.6; }

@media (max-width: 760px) {
  .reverse-layout, .reverse-report-grid, .reverse-data-grid { grid-template-columns: 1fr; }
  .reverse-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reverse-technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reverse-technical-metric:nth-child(4n) { border-right: 1px solid #e3e8e4; }
  .reverse-technical-metric:nth-child(2n) { border-right: 0; }
  .reverse-technical-metric:nth-last-child(-n+4) { border-bottom: 1px solid #e3e8e4; }
  .reverse-technical-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .reverse-report-head { flex-direction: column; }
  .reverse-report-head-actions { align-items: flex-start; }
  .reverse-downloads { justify-content: flex-start; }
  .reverse-variants { grid-template-columns: 1fr; }
  .reverse-status-row { align-items: flex-start; flex-wrap: wrap; }
  .reverse-status-row small { width: 100%; margin-left: 18px; }
  .reverse-actions { flex-direction: column; }
  .reverse-start { width: 100%; }
}

/* Workbench shell */
.shell { grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar {
  top: 64px;
  height: calc(100vh - 64px);
  gap: 16px;
  padding: 22px 18px;
  border-right-color: #202630;
  background: #090c10;
}
.sidebar .brand { display: none; }
.dropzone {
  min-height: 112px;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border-color: #313844;
  border-radius: 5px;
  color: #768190;
  background: #0f1318;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--brand); color: #d9ddda; background: #14181e; }
.dropzone b { color: var(--brand); font-size: 21px; }
.dropzone strong { font-size: 13px; }
.dropzone small { color: #65707d; font-family: var(--mono); font-size: 7px; }
.project-heading {
  padding: 2px 2px 8px;
  border-bottom: 1px solid #202630;
  color: #697483;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}
.project-heading b { color: #9aa4b0; background: #171c23; }
.project-list { gap: 3px; }
.project-item {
  min-height: 58px;
  grid-template-columns: 7px 1fr 18px;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 4px;
  color: #d7dbd8;
}
.project-item:hover { border-color: #282f38; background: #11161c; }
.project-item.active {
  border-color: #303640;
  border-left: 2px solid var(--brand);
  background: #171c23;
}
.project-item > i { box-shadow: none !important; }
.project-item > i[data-status="completed"] { background: var(--signal); }
.project-item strong { font-size: 12px; font-weight: 650; }
.project-item small { color: #66717f; font-size: 9px; }
.remove { color: #5d6774; font-size: 15px; }
.system-status {
  display: none !important;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 10px;
  border-color: #252b34;
  border-radius: 4px;
  color: #66717f;
  background: #0d1116;
  font-family: var(--mono);
  font-size: 7px;
}
.system-status small.ready { color: #79d6c4; }

.workspace {
  max-width: none;
  padding: 28px 32px 70px;
  color: var(--studio-text);
  background: var(--studio);
}
.topbar { min-height: 58px; margin-bottom: 18px; }
.topbar .eyebrow { color: #707b89; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.topbar h1 { margin-top: 4px; font-size: 23px; font-weight: 690; letter-spacing: -.025em; }
.topbar-actions { gap: 7px; }
.primary {
  padding: 11px 16px;
  border-radius: 4px;
  color: white;
  background: var(--brand);
}
.primary:hover { filter: none; background: #ff704f; }
.primary.compact { padding: 8px 12px; }
.secondary-action {
  color: #cfd7e2;
  border: 1px solid #2f3945;
  background: #151b23;
}
.secondary-action:hover { color: white; border-color: #53606f; background: #202833; }
.card {
  padding: 22px;
  margin-bottom: 14px;
  border-color: var(--studio-line);
  border-radius: 6px;
  background: var(--studio-raised);
  box-shadow: none;
}
.progress-card { min-height: 104px; align-items: center; }
.progress-card h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.025em; }
.progress-card > strong { color: var(--signal); font-family: var(--mono); font-size: 34px; font-weight: 650; }
.progress { height: 4px; margin-top: 11px; background: #252b33; }
.progress i { background: var(--signal); }
.eyebrow { color: #737e8c; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.section-title { margin-bottom: 14px; }
.section-title h2 { margin-top: 5px; font-size: 23px; letter-spacing: -.025em; }
.quick-workflow-card .section-title { margin-bottom: 10px; }
.quick-workflow-grid { gap: 9px; }
.quick-workflow-item {
  gap: 6px;
  padding: 13px;
  border-color: #252b33;
  border-radius: 5px;
  background: #111720;
}
.quick-workflow-item span { color: #79d6c4; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.quick-workflow-item strong { font-size: 14px; font-weight: 700; }
.quick-workflow-item small, .quick-workflow-item em { font-size: 10px; }
.quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.quick-links a { border-color: #303741; border-radius: 4px; background: #121820; }
.score-download-group {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid #303741;
  border-radius: 4px;
  color: #b8f6f1;
  background: #121820;
}
.score-download-group > b {
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.score-layout-actions { display: inline-flex; align-self: stretch; border-left: 1px solid #303741; }
.score-layout-actions a {
  display: grid;
  width: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #8adbd4;
  background: transparent;
  text-decoration: none;
}
.score-layout-actions a + a { border-left: 1px solid #303741; }
.score-layout-actions a:hover { color: #ffffff; background: #173a34; }
.score-layout-icon { display: block; border: 1.6px solid currentColor; border-radius: 1px; }
.score-layout-icon.landscape { width: 15px; height: 10px; }
.score-layout-icon.portrait { width: 10px; height: 15px; }
.quick-output-actions .score-download-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0;
  border-color: #263b42;
  background: #0e171c;
  white-space: nowrap;
}
.quick-output-actions .score-layout-actions {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  border-color: #263b42;
}
.quick-output-actions .score-layout-actions a + a { border-color: #263b42; }
.quick-output-actions .score-layout-actions a { min-height: 28px; }
.mixer-actions { display: flex; align-items: center; gap: 9px; }
.mixer-main-action { min-height: 38px; border: 1px solid; border-radius: 5px; font-size: 11px; font-weight: 750; line-height: 1; white-space: nowrap; }
.play-all-action { min-width: 112px; padding: 0 16px; color: white; border-color: #ff5b3d; background: #ff5b3d; cursor: pointer; }
.play-all-action:hover { border-color: #ff755d; background: #ff755d; }
.accompaniment-action { min-width: 142px; display: inline-flex; align-items: stretch; overflow: hidden; border-color: #33746b; background: #102420; }
.accompaniment-action button { flex: 1; padding: 0 14px; border: 0; color: #a7eee0; background: transparent; font: inherit; cursor: pointer; }
.accompaniment-action button:hover { color: white; background: #173a34; }
.accompaniment-action a { width: 38px; display: grid; place-items: center; border-left: 1px solid #33746b; color: #9fe0d3; background: #132d28; text-decoration: none; }
.accompaniment-action a:hover { color: white; background: #1d4a42; }
.accompaniment-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.track-list { gap: 0; }
.track-row {
  grid-template-columns: 5px 74px 30px 30px minmax(110px, 1fr) 226px;
  gap: 9px;
  min-height: 62px;
  padding: 10px 0;
  border-top-color: #252b33;
}
.track-row > i { width: 5px; height: 30px; border-radius: 3px; }
.track-row > strong { font-size: 13px; font-weight: 650; }
.track-row button {
  width: 28px;
  height: 28px;
  border-color: #303741;
  border-radius: 4px;
  color: #8b95a2;
  background: #11161c;
  font-family: var(--mono);
  font-size: 9px;
}
.track-row button.active { border-color: var(--brand); color: white; background: var(--brand); }
.track-row input, .timeline input { accent-color: var(--brand); }
.track-downloads { gap: 5px; }
.track-downloads a, .track-downloads span {
  min-width: 48px;
  padding: 6px 6px;
  border-color: #303741;
  border-radius: 3px;
  color: #9fe0d3;
  background: #10151a;
  font-family: var(--mono);
  font-size: 7px;
}
.track-downloads a:hover { border-color: #4a7168; background: #151d1c; }
.timeline { grid-template-columns: 54px minmax(0, 1fr) 54px; column-gap: 12px; margin-bottom: 10px; font-family: var(--mono); font-size: 9px; }
.timeline span { position: relative; z-index: 1; color: #919ba8; }
.timeline input { display: block; min-width: 0; margin: 0; }

.midi-card .section-title { gap: 18px; }
.audition-heading-row { display: flex; align-items: center; gap: 11px; }
.keyboard-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7f8996;
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}
.keyboard-hint kbd {
  padding: 3px 6px;
  border: 1px solid #353d48;
  border-bottom-color: #20262e;
  border-radius: 3px;
  color: #cbd3dc;
  background: #11161c;
  box-shadow: 0 1px 0 #05070a;
  font: inherit;
}
.midi-track-picker { gap: 6px; }
.midi-track-tile {
  height: 48px;
  grid-template-columns: 3px minmax(0, 1fr) 17px;
  gap: 6px;
  padding: 7px;
  border-color: #2c333d;
  border-radius: 4px;
  background: #11161c;
  transition: border-color .15s, background .15s;
}
.midi-track-tile:hover { transform: none; background: #171c23; }
.midi-track-tile strong { font-size: 12px; }
.midi-track-tile small { font-family: var(--mono); font-size: 7px; }
.midi-track-tile b { width: 17px; height: 17px; background: #0b0f13; }
.midi-track-tile.active { background: #171c23; box-shadow: none; }
.midi-track-tile.active > i { box-shadow: none; }
.midi-track-tile.active b { color: white; background: var(--brand); }
.piano-roll-shell { margin-top: 2px; }
.audition-mode {
  top: 7px;
  left: 10px;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.audition-mode button { min-height: 23px; border-radius: 3px; font-family: var(--mono); font-size: 7px; }
.audition-mode button.active { color: white; background: var(--brand); }
midi-visualizer {
  min-height: 420px;
  border-color: #252b33;
  border-radius: 4px;
  background: #090c10;
}
.hero.card { min-height: 430px; border-color: #252b33; background: #0f1419; }
.hero h2 { color: #f3f4f1; font-size: clamp(44px, 6vw, 74px); }
.hero p { color: #7c8794; }
.hero-number { color: #202630; -webkit-text-stroke: 0; }
.alert { border-radius: 4px; }

/* White workbench theme for six-stem separation */
body[data-view="workbench"] { background: #eef2ef; }
body[data-view="workbench"] .site-header {
  border-bottom-color: #d8e0dc;
  color: #17202b;
  background: rgba(250, 252, 249, .96);
}
body[data-view="workbench"] .site-brand small,
body[data-view="workbench"] .site-nav button,
body[data-view="workbench"] .auth-actions span { color: #687872; }
body[data-view="workbench"] .site-nav button:hover,
body[data-view="workbench"] .site-nav button.active { color: #0f7669; }
body[data-view="workbench"] .runtime-chip,
body[data-view="workbench"] .auth-actions button {
  border-color: #c8d8d2;
  color: #0f7669;
  background: #edf8f5;
}
body[data-view="workbench"] .shell { background: #eef2ef; }
body[data-view="workbench"] .sidebar {
  border-right-color: #d8e0dc;
  background: #f8faf7;
}
body[data-view="workbench"] .dropzone {
  border-color: #cad8d3;
  color: #65746f;
  background: #ffffff;
}
body[data-view="workbench"] .dropzone:hover,
body[data-view="workbench"] .dropzone.dragging {
  border-color: #159484;
  color: #17202b;
  background: #eff9f5;
}
body[data-view="workbench"] .dropzone small { color: #8a9691; }
body[data-view="workbench"] .project-heading {
  border-bottom-color: #d8e0dc;
  color: #65746f;
}
body[data-view="workbench"] .project-heading b {
  color: #0f7669;
  background: #e3f3ef;
}
body[data-view="workbench"] .project-item {
  color: #17202b;
  background: transparent;
}
body[data-view="workbench"] .project-item:hover {
  border-color: #d8e0dc;
  background: #eef5f2;
}
body[data-view="workbench"] .project-item.active {
  border-color: #bfd4cd;
  background: #e6f4f0;
}
body[data-view="workbench"] .project-item small,
body[data-view="workbench"] .remove { color: #75847f; }
body[data-view="workbench"] .workspace {
  color: #17202b;
  background: #eef2ef;
}
body[data-view="workbench"] .topbar .eyebrow,
body[data-view="workbench"] .eyebrow,
body[data-view="workbench"] .keyboard-hint,
body[data-view="workbench"] .timeline span { color: #65746f; }
body[data-view="workbench"] .card,
body[data-view="workbench"] .hero.card {
  border-color: #d4dfda;
  background: #ffffff;
}
body[data-view="workbench"] .hero h2,
body[data-view="workbench"] .section-title h2,
body[data-view="workbench"] .progress-card h2 { color: #17202b; }
body[data-view="workbench"] .hero h2 { font-size: clamp(41px, calc(6vw - 3px), 71px); }
body[data-view="workbench"] .hero p { color: #687872; }
body[data-view="workbench"] .hero-number { color: #e5ece8; }
body[data-view="workbench"] .progress { background: #e1e9e5; }
body[data-view="workbench"] .quick-workflow-item,
body[data-view="workbench"] .quick-links a,
body[data-view="workbench"] .score-download-group,
body[data-view="workbench"] .quick-output-actions .score-download-group,
body[data-view="workbench"] .track-row button,
body[data-view="workbench"] .track-downloads a,
body[data-view="workbench"] .track-downloads span,
body[data-view="workbench"] .midi-track-tile {
  border-color: #d8e0dc;
  color: #0f7669;
  background: #f6faf8;
}
body[data-view="workbench"] .quick-workflow-item span { color: #0f8d80; }
body[data-view="workbench"] .secondary-action {
  color: #0f7669;
  border-color: #c8d8d2;
  background: #f6faf8;
}
body[data-view="workbench"] .secondary-action:hover,
body[data-view="workbench"] .quick-links a:hover,
body[data-view="workbench"] .track-downloads a:hover,
body[data-view="workbench"] .midi-track-tile:hover {
  color: #075e54;
  border-color: #9fc8bf;
  background: #edf8f5;
}
body[data-view="workbench"] .score-layout-actions,
body[data-view="workbench"] .score-layout-actions a + a,
body[data-view="workbench"] .quick-output-actions .score-layout-actions,
body[data-view="workbench"] .quick-output-actions .score-layout-actions a + a { border-color: #d8e0dc; }
body[data-view="workbench"] .score-layout-actions a { color: #0f7669; }
body[data-view="workbench"] .score-layout-actions a:hover { color: #fff; background: #159484; }
body[data-view="workbench"] .accompaniment-action {
  border-color: #b9d5ce;
  background: #edf8f5;
}
body[data-view="workbench"] .accompaniment-action button,
body[data-view="workbench"] .accompaniment-action a { color: #0f7669; background: transparent; }
body[data-view="workbench"] .accompaniment-action a { border-left-color: #b9d5ce; }
body[data-view="workbench"] .accompaniment-action button:hover,
body[data-view="workbench"] .accompaniment-action a:hover { color: white; background: #159484; }
body[data-view="workbench"] .track-row { border-top-color: #e0e8e4; }
body[data-view="workbench"] .track-row button.active,
body[data-view="workbench"] .audition-mode button.active,
body[data-view="workbench"] .midi-track-tile.active b { color: white; background: var(--brand); }
body[data-view="workbench"] .midi-track-tile.active { background: #edf8f5; }
body[data-view="workbench"] .midi-track-tile b,
body[data-view="workbench"] .keyboard-hint kbd {
  color: #0f7669;
  border-color: #cbdad5;
  background: #ffffff;
  box-shadow: none;
}
body[data-view="workbench"] midi-visualizer {
  border-color: #d8e0dc;
  background: #fbfdfb;
}
body[data-view="workbench"] * {
  scrollbar-color: #b8c8c3 #edf3f0;
}
body[data-view="workbench"] *::-webkit-scrollbar-track { background: #edf3f0; }
body[data-view="workbench"] *::-webkit-scrollbar-thumb { border-color: #edf3f0; background: #b8c8c3; }
body[data-view="workbench"] *::-webkit-scrollbar-thumb:hover { background: #8fa49e; }

.quick-field select,
.score-field select,
.tune-field select,
.quality-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 13px 9px !important;
}
.quick-field select,
.score-field select,
.tune-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2.5L7 7.5L12 2.5' stroke='%23dce9ea' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
body[data-view="workbench"] .quick-field select,
body[data-view="workbench"] .score-field select,
body[data-view="workbench"] .tune-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2.5L7 7.5L12 2.5' stroke='%2317202b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.quality-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2.5L7 7.5L12 2.5' stroke='%2317202b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.quality-settings .quality-field { justify-items: start; }
.quality-settings .quality-field select {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
}

audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-volume-control-container,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline-container {
  display: none !important;
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(190px, 1fr) auto minmax(110px, 1fr); padding: 0 20px; }
  .home-hero { grid-template-columns: minmax(390px, .9fr) minmax(380px, 1.1fr); gap: 34px; padding-left: 34px; padding-right: 34px; }
  .home-tool-strip { margin-left: 24px; margin-right: 24px; }
  .quick-band, .score-band, .tune-band, .quality-band, .lyrics-band { padding-left: 34px; padding-right: 34px; }
  .quick-layout, .score-layout, .tune-layout, .quality-layout { grid-template-columns: 1fr; }
  .quick-history, .score-history, .tune-visual, .tune-history, .quality-visual, .quality-history { min-height: 360px; }
  .quality-layout { --quality-panel-height: auto; }
  .quality-layout > .quality-console,
  .quality-layout > .quality-history { height: auto; }
  .quality-output-list { max-height: 360px; }
  .shell { grid-template-columns: 250px minmax(0, 1fr); }
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .system-status { left: 15px; right: 15px; }
  .workspace { padding-left: 24px; padding-right: 24px; }
  .track-row { grid-template-columns: 5px 66px 28px 28px minmax(90px, 1fr) 220px; gap: 7px; }
}

@media (max-width: 900px) {
  .deployment-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 72px; }
  .home-hero-copy { max-width: 650px; }
  .hero-console { max-width: 700px; }
  .home-tool-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tool-strip > button:nth-child(2) { border-right: 0; }
  .home-tool-strip > button:nth-child(-n+2) { border-bottom: 1px solid #e1e3de; }
  .midi-card .section-title { align-items: stretch; flex-direction: column; }
  .audition-heading-row { flex-wrap: wrap; }
  .mixer-actions { flex-wrap: wrap; justify-content: flex-start; }
  .midi-track-picker { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
  .admin-console { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: relative;
    top: 0;
    height: auto;
    grid-template-rows: auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }
  .admin-side-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel-wide { grid-row: auto; }
  .membership-hero-row,
  .membership-layout,
  .membership-billing-layout {
    grid-template-columns: 1fr;
  }
  .membership-billing-layout { grid-template-areas: "orders" "referral"; }
  .membership-badge { position: static; min-width: 0; margin-top: 10px; }
  .membership-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-shell { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-top: 58px; }
  .site-header { height: 58px; grid-template-columns: 34px 1fr; gap: 8px; padding: 0 12px; }
  .site-brand > span:last-child { display: none; }
  .site-brand-mark { width: 32px; height: 32px; }
  .site-nav { justify-self: end; gap: 0; overflow-x: auto; }
  .site-nav button { padding: 0 7px; font-size: 10px; white-space: nowrap; }
  .site-nav button::after { left: 7px; right: 7px; }
  .home-hero { padding: 28px 20px 56px; }
  body[data-route="lyrics"] .home-hero { height: calc(100svh - 58px); padding: 0; }
  .home-hero h2 { font-size: clamp(30px, 7vw, 43px); }
  .hero-console-display { height: 230px; }
  .hero-channel-grid > div { height: 80px; padding: 10px 7px; }
  .hero-channel-grid b { height: 34px; }
  .home-tool-strip { margin: 18px 12px 0; grid-template-columns: 1fr; }
  .home-tool-strip > button { min-height: 72px; border-right: 0; border-bottom: 1px solid #e1e3de; }
  .home-tool-strip > button:last-of-type { border-bottom: 0; }
  .admin-main { padding: 22px 14px 44px; }
  .admin-topbar { display: grid; }
  .admin-topbar h2 { font-size: 32px; }
  .admin-side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-console .admin-user-row { grid-template-columns: 1fr; }
  .admin-queue-row { align-items: start; }
  .admin-queue-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
  .quick-band, .score-band, .tune-band, .quality-band, .lyrics-band { padding: 68px 18px; }
  .quick-heading h2, .score-heading h2, .tune-heading h2, .quality-heading h2 { font-size: 34px; }
  .quick-console, .score-console, .tune-console, .quality-console { padding: 17px; }
  .quality-settings, .quality-actions, .score-actions, .tune-actions { grid-template-columns: 1fr; }
  .quick-status-row, .score-status-row, .tune-status-row, .quality-status-row { grid-template-columns: 10px 1fr; }
  .quick-status-row small, .score-status-row small, .tune-status-row small, .quality-status-row small { grid-column: 2; }
  .membership-band { padding: 68px 18px; }
  .membership-shell { column-gap: 18px; row-gap: 30px; }
  .membership-layout, .membership-billing-layout { column-gap: 18px; row-gap: 30px; }
  .assets-shell { gap: 18px; }
  .membership-hero-card,
  .membership-panel { padding: 18px; border-radius: 16px; }
  .membership-hero-row h2 { font-size: 32px; }
  .membership-overview-grid,
  .membership-benefit-grid,
  .membership-ledger-stats,
  .membership-ledger-row,
  .membership-output-row { grid-template-columns: 1fr; }
  .membership-recent-output-list { grid-template-columns: 1fr; }
  .membership-ledger-row time,
  .membership-ledger-status,
  .membership-cost { justify-self: start; }
  .membership-ledger-actions { justify-content: flex-start; }
  .membership-output-actions { justify-content: flex-start; }
  .membership-ledger-table { min-width: 780px; }
  .membership-ledger-pagination { align-items: flex-start; flex-direction: column; }
  .membership-ledger-pagination > div { flex-wrap: wrap; }
  .api-list,
  .api-key-box { grid-template-columns: 1fr; }
  .api-key-box > button { width: 100%; }
  .membership-panel-head { align-items: flex-start; flex-direction: column; }
  .membership-panel-head button { width: 100%; }
  .membership-assets-tools { align-items: stretch; flex-wrap: wrap; width: 100%; }
  .membership-assets-tools > small { width: 100%; }
  .membership-assets-tools label { flex: 1; }
  .membership-assets-tools select { width: 100%; }
  .membership-assets-tools button { width: auto; }
  .membership-assets-list { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; height: auto; padding: 18px; }
  .system-status { position: static; margin-top: 6px; }
  .workspace { padding: 20px 14px 60px; }
  .track-row { grid-template-columns: 5px 64px 28px 28px 1fr; }
  .track-row .track-downloads { grid-column: 2 / -1; justify-content: flex-start; }
  .midi-track-picker { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}

@media (max-width: 760px) {
  body[data-route="lyrics"] .home-hero { padding: 14px 12px 24px; }
  body[data-route="lyrics"] .hero-player { min-height: calc(100vh - 94px); }
  body[data-route="lyrics"] .hero-player-visual { min-height: calc(100vh - 276px); }
  body[data-route="lyrics"] #lyrics-module { padding: 48px 16px 58px; }
  .lyrics-workspace { grid-template-columns: 1fr; }
  .lyrics-history-panel { margin-top: 20px; }
  .lyrics-heading { margin-bottom: 22px; text-align: left; }
  .lyrics-heading h2 { font-size: 34px; }
}

@media (max-width: 520px) {
  .deployment-status-grid { grid-template-columns: 1fr; }
  .api-access-row {
    grid-template-columns: 64px minmax(0, 1fr) 58px;
  }
  .api-access-row span,
  .api-access-row code {
    font-size: 10px;
  }
  .api-access-row button {
    width: 58px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .admin-billing-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-coupon-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-pricing-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-finance-row { grid-template-columns: minmax(0, 1fr) 84px 72px; }
  .admin-finance-date { grid-column: 2 / -1; text-align: left; }
  .admin-api-logs-filters { grid-template-columns: minmax(0, 1fr) minmax(100px, .55fr) minmax(0, 1fr); }
  .admin-api-logs-filter-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 0; }
}

@media (max-width: 720px) {
  .auth-actions .header-user-name { max-width: 74px; font-size: 10px; }
  .auth-actions .admin-header-button { padding: 0 8px; }
  .home-footer { align-items: flex-start; flex-direction: column; gap: 24px; padding: 32px 18px 26px; }
  .home-footer-right { justify-items: start; width: 100%; }
  .home-footer-links { justify-content: flex-start; }
  .home-footer-right > span { text-align: left; }
  .admin-panel-billing { grid-column: auto; }
  .admin-pricing-head { align-items: flex-start; flex-direction: column; }
  .admin-pricing-head > small { max-width: none; text-align: left; }
  .admin-pricing-heading { align-items: flex-end; justify-content: space-between; width: 100%; }
  .admin-billing-form { grid-template-columns: 1fr; }
  .admin-coupon-form { grid-template-columns: 1fr; }
  .admin-coupon-description { grid-column: auto; }
  .admin-coupon-submit { align-items: stretch; flex-direction: column; }
  .admin-coupon-row { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-coupon-actions { grid-column: 1 / -1; }
  .admin-api-logs-head { align-items: flex-start; flex-direction: column; }
  .admin-api-logs-head > small { max-width: none; text-align: left; }
  .admin-api-logs-filters { grid-template-columns: 1fr; }
  .admin-api-logs-filter-actions { grid-column: auto; flex-wrap: wrap; }
  .admin-user-form { grid-template-columns: 1fr; }
  .admin-user-form .admin-user-wide { grid-column: auto; }
  .admin-referral-form { grid-template-columns: 1fr; align-items: stretch; }
  .admin-referral-actions { align-items: flex-start; flex-direction: column; }
  .admin-user-manage-row { grid-template-columns: minmax(160px, 1fr) 64px 96px 58px auto !important; }
  .system-config-tabs { flex-wrap: wrap; }
  .admin-pricing-fields { grid-template-columns: 1fr; }
  .admin-pricing-row { grid-column: auto; }
  .admin-capability-row { grid-template-columns: 1fr; }
  .admin-billing-wide { grid-column: auto; }
  .admin-billing-actions { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .membership-order-row { grid-template-columns: minmax(0, 1fr) auto; }
  .billing-order-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pricing-cost-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .pricing-cost-grid { grid-template-columns: minmax(86px, .8fr) minmax(0, 1.35fr) 128px; gap: 8px; padding: 0 12px; font-size: 10px; }
  .pricing-cost-grid strong, .pricing-cost-grid b { font-size: 10px; }
  .billing-order-amount { text-align: left; }
  .billing-order-status { text-align: left; }
  .checkout-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .checkout-main-card, .checkout-side-card { min-width: 0; padding: 20px; border-radius: 14px; }
  .checkout-head { display: grid; }
  .checkout-head h2 { font-size: 34px; }
  .checkout-back { justify-self: start; }
  .checkout-summary { grid-template-columns: 1fr; }
  .pricing-period-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-period-options button { min-width: 0; padding-right: 5px; padding-left: 5px; }
  .checkout-payment-row { display: grid; align-items: stretch; }
  .checkout-payment-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .checkout-payment-methods > span { grid-column: 1 / -1; }
  .checkout-payment-config-note { grid-column: 1 / -1; }
  .checkout-payment-methods label { min-width: 0; padding: 0 5px; text-align: center; }
  .checkout-payment-methods b { font-size: 11px; white-space: nowrap; }
  .checkout-total { justify-items: start; }
  .checkout-total small { text-align: left; }
  .checkout-coupon-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .checkout-main-card, .checkout-side-card { padding: 16px; }
  .checkout-head h2 { font-size: 29px; }
  .pricing-period-options { gap: 5px; }
  .pricing-period-options button { min-height: 44px; font-size: 10px; }
  .pricing-period-options button span { font-size: 10px; }
  .checkout-payment-methods { gap: 5px; }
  .checkout-payment-methods label { min-height: 40px; }
  .checkout-payment-methods b { font-size: 10px; }
}

/* The header height is already reserved by body padding. Do not reserve a
   second page-level band above each standalone module. */
body[data-route="quick"] #quick-module,
body[data-route="quick"] #score-module,
body[data-route="tune"] #tune-module,
body[data-route="quality"] #quality-module,
.pricing-band,
.account-band {
  scroll-margin-top: 64px;
}

/* Keep the original visual breathing room, reduced to half its height. */
body[data-route="quick"] #quick-module,
body[data-route="quick"] #score-module,
.pricing-band,
.account-band {
  padding-top: 46px;
}
body[data-route="tune"] #tune-module,
body[data-route="quality"] #quality-module {
  padding-top: 48px;
}

@media (max-width: 720px) {
  body[data-route="quick"] #quick-module,
  body[data-route="quick"] #score-module,
  body[data-route="tune"] #tune-module,
  body[data-route="quality"] #quality-module,
  .pricing-band,
  .account-band {
    padding-top: 34px;
  }
}

/* Mobile layout: retain every route while keeping the controls inside the viewport. */
@media (max-width: 720px) {
  html, body { min-width: 0; overflow-x: clip; }
  img, video, canvas, svg { max-width: 100%; }
  .site-header {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    column-gap: 7px;
  }
  .site-brand { grid-column: 1; grid-row: 1; width: 34px; min-width: 34px; }
  .site-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .auth-actions {
    grid-column: 3;
    grid-row: 1;
    min-width: max-content;
    flex: 0 0 auto;
  }
  .user-menu { right: 0; left: auto; max-width: calc(100vw - 24px); }
  .api-doc-item > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: start; }
  .api-doc-item > summary > span { grid-column: 1 / -1; grid-row: 2; }
  .api-doc-item > summary > b { grid-column: 2; grid-row: 1; }
  .api-doc-content { padding: 13px; }
  .api-doc-content dl { grid-template-columns: 1fr; gap: 3px; }
  .api-doc-content dd { margin-bottom: 7px; }
  .home-hero-copy, .hero-console, .quick-layout, .score-layout, .tune-layout,
  .quality-layout, .lyrics-workspace, .pricing-grid, .membership-layout,
  .checkout-shell, .admin-grid { min-width: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-hero h2 { font-size: clamp(34px, 10vw, 46px); line-height: 1.08; }
  .home-actions > button { flex: 1 1 132px; }
  .quick-actions > *, .score-actions > *, .tune-actions > *, .quality-actions > * { min-width: 0; }
  .footer-info-panel { padding: 16px 12px; }
  .footer-info-card { width: 100%; max-height: calc(100svh - 32px); padding: 22px 18px; }
}

@media (max-width: 420px) {
  .site-header { padding-right: 9px; padding-left: 9px; }
  .site-nav button { padding-right: 6px; padding-left: 6px; }
  .auth-actions { gap: 4px; }
  .auth-actions .admin-header-button { padding-right: 6px; padding-left: 6px; }
  .user-avatar-button { width: 34px; height: 34px; }
  .home-hero { padding-right: 16px; padding-left: 16px; }
  .home-hero h1 { margin-bottom: 20px; font-size: 13px; }
  .home-hero h2 { font-size: clamp(29px, 10vw, 36px); white-space: normal; }
  .home-hero p { font-size: 12px; }
  .hero-player-status { height: 32px; padding-right: 9px; padding-left: 9px; }
  .hero-player-live { gap: 0; font-size: 0; }
  .hero-player-status-actions { min-width: 0; gap: 4px; }
  .hero-player-status-actions > span { display: none; }
  .hero-player-visual-selector select { height: 17px; padding-right: 10px; font-size: 7px; line-height: 17px; }
  .hero-player-visual-selector::after { right: 1px; width: 4px; height: 4px; }
  .hero-player-track { gap: 6px; padding-right: 10px; padding-left: 10px; }
  .hero-player-track > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-player-track strong, .hero-player-now { display: none; }
  .hero-player-controls { grid-template-columns: minmax(0, 1fr) 32px; gap: 8px; padding-right: 10px; padding-left: 10px; }
  .hero-player-lyrics { padding-right: 18px; padding-left: 18px; }
  .hero-player-lyrics-lines #hero-player-lyrics-current { font-size: 20px; }
  .quick-band, .score-band, .tune-band, .quality-band, .membership-band { padding-right: 14px; padding-left: 14px; }
  .pricing-band, .account-band { padding-right: 14px; padding-left: 14px; }
  .pricing-card, .membership-hero-card, .membership-panel, .checkout-main-card, .checkout-side-card { padding: 16px; }
  .pricing-cost-grid { grid-template-columns: minmax(72px, .8fr) minmax(0, 1.25fr) 112px; padding-right: 9px; padding-left: 9px; font-size: 9px; }
  .pricing-cost-grid strong, .pricing-cost-grid b { font-size: 9px; }
  .api-access-row { grid-template-columns: 58px minmax(0, 1fr) 52px; }
  .api-access-row button { width: 52px; padding-right: 4px; padding-left: 4px; font-size: 10px; }
  .admin-main, .workspace { padding-right: 12px; padding-left: 12px; }
  .admin-side-nav { gap: 5px; }
  .admin-side-nav a { min-height: 38px; padding-right: 7px; padding-left: 7px; font-size: 10px; }
}

/* Mobile header: show the product name and reveal navigation on demand. */
@media (max-width: 720px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    overflow: visible;
  }
  .site-brand {
    grid-column: 1;
    width: min-content;
    min-width: 0;
    gap: 8px;
  }
  .site-brand > span:last-child {
    display: flex;
    min-width: 0;
  }
  .site-brand strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-brand small { display: none; }
  .site-brand-mark.brand-logo { width: 34px; height: 34px; flex: 0 0 34px; }
  .auth-actions { grid-column: 2; gap: 6px; }
  .auth-actions .header-login-button,
  .auth-actions .user-avatar-button { order: 1; }
  .auth-actions .header-membership-level { order: 2; max-width: 82px; padding: 0 8px; }
  .auth-actions .admin-header-button { order: 3; }
  .mobile-nav-toggle {
    order: 4;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px !important;
    display: inline-grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 0 !important;
    border-color: #c9d3ce !important;
    background: #f4f7f4 !important;
  }
  .mobile-nav-toggle span {
    width: 14px;
    height: 1.5px;
    display: block;
    border-radius: 1px;
    background: #173a34;
    transition: transform .18s ease, opacity .18s ease;
  }
  .site-header.mobile-nav-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .site-header.mobile-nav-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.mobile-nav-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 2;
    display: none;
    width: auto;
    max-height: calc(100svh - 58px);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 12px;
    overflow-y: auto;
    border-bottom: 1px solid #d7dad5;
    background: #faf9f6;
    box-shadow: 0 14px 28px #17231d18;
  }
.site-header.mobile-nav-open .site-nav { display: flex; }
  .site-nav button {
    min-height: 43px;
    width: 100%;
    padding: 0 12px;
    border-bottom: 1px solid #e4e7e2;
    color: #4c5651;
    font-size: 13px;
    text-align: left;
  }
  .site-nav button:last-child { border-bottom: 0; }
  .site-nav button::after { left: 0; right: auto; bottom: 0; width: 3px; height: 100%; }
  .site-nav button.active { color: #173a34; background: #edf5f1; }
  .site-nav button.active::after { background: #ff5b36; }
}

.upload-progress-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  width: min(360px, calc(100vw - 28px));
  padding: 13px 14px;
  border: 1px solid #b9c9c1;
  border-radius: 8px;
  color: #183a34;
  background: #fbfcf9;
  box-shadow: 0 14px 34px rgba(16, 36, 30, .18);
}
.upload-progress-panel.hidden { display: none; }
.upload-progress-copy { min-width: 0; display: grid; gap: 3px; }
.upload-progress-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress-copy small { color: #66746e; font-size: 11px; line-height: 1.35; }
.upload-progress-panel > b { align-self: start; color: #178879; font-family: var(--mono); font-size: 12px; }
.upload-progress-track { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 4px; background: #e2e9e4; }
.upload-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #31a88f; transition: width .18s linear; }
.upload-progress-panel.is-error { border-color: #e5aaa0; }
.upload-progress-panel.is-error .upload-progress-copy strong,
.upload-progress-panel.is-error > b { color: #b84837; }
.upload-progress-panel.is-error .upload-progress-track i { background: #d75d4c; }
@media (max-width: 720px) {
  .upload-progress-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

.home-footer-records { color: #5d837b; font-size: 8px; line-height: 1.6; text-align: right; }
.home-footer-records small { font-size: inherit; }
@media (max-width: 720px) { .home-footer-records { width: 100%; text-align: left; } }

.login-required {
  opacity: .52 !important;
  cursor: not-allowed !important;
  filter: grayscale(.45);
}
.login-required, .login-required * { cursor: not-allowed !important; }


/* Complete denoise workspace */
.denoise-band { padding: 96px max(38px, calc((100vw - 1240px) / 2)); border-top: 1px solid #d5dfda; color: #17202b; background: #edf1ee; }
.denoise-heading { max-width: 720px; }
.denoise-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .62fr); gap: 18px; align-items: stretch; }
.denoise-console { display: grid; gap: 17px; min-height: 470px; padding: 26px; border: 1px solid #cfd8d3; border-radius: 10px; background: #f8faf8; box-shadow: 0 20px 45px rgba(30, 54, 47, .06); }
.denoise-console .quality-status-row { padding-bottom: 17px; }
.denoise-settings { display: block; }
.denoise-settings .quality-field { width: fit-content; max-width: 100%; justify-items: start; }
.denoise-settings .quality-field select { width: fit-content; min-width: 0; max-width: 100%; }
.denoise-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.denoise-actions .quality-file-button, .denoise-actions .quality-start { min-height: 44px; }
.denoise-guide { display: flex; flex-direction: column; min-height: 470px; overflow: hidden; border: 1px solid #cfd8d3; border-radius: 10px; background: linear-gradient(155deg, #e1eee8, #f6faf7); box-shadow: 0 20px 45px rgba(30, 54, 47, .04); }
.denoise-guide-head { padding: 25px 24px 18px; border-bottom: 1px solid #cbd8d2; }
.denoise-guide-head span { display: block; margin-bottom: 7px; color: #168f7e; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.denoise-guide-head strong { color: #172b26; font-size: 20px; letter-spacing: -.03em; }
.denoise-guide-list { display: grid; gap: 9px; padding: 18px; }
.denoise-guide-list > div { padding: 13px 14px; border: 1px solid #d2dfd8; border-radius: 7px; background: rgba(255,255,255,.54); }
.denoise-guide-list > div.is-recommended { border-color: #68ad9f; background: #f7fcf9; box-shadow: inset 3px 0 #168f7e; }
.denoise-guide-list b { color: #172b26; font-size: 13px; }
.denoise-guide-list p { margin: 6px 0 0; color: #64716c; font-size: 11px; line-height: 1.65; }
.denoise-guide-footer { display: grid; gap: 4px; margin-top: auto; padding: 18px 24px 22px; color: #52655e; border-top: 1px solid #cbd8d2; font-size: 11px; }
.denoise-guide-footer small { color: #80908a; font-size: 10px; }
@media (max-width: 1180px) { .denoise-band { padding-right: 34px; padding-left: 34px; } .denoise-layout { grid-template-columns: 1fr; } .denoise-guide { min-height: 0; } }
@media (max-width: 720px) { .denoise-band { padding: 68px 18px; } .denoise-console { min-height: 0; padding: 17px; } .denoise-settings, .denoise-actions { grid-template-columns: 1fr; } .denoise-actions .quality-file-button, .denoise-actions .quality-start { width: 100%; } .denoise-guide-head { padding: 20px 18px 15px; } .denoise-guide-footer { padding: 16px 18px 18px; } }


/* Recharge plan discounts */
.membership-recharge-options { gap: 10px; }
.membership-recharge-options .membership-recharge-option { position: relative; min-height: 62px; padding: 10px 14px 10px 16px; border-radius: 9px; }
.membership-recharge-option:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(34, 99, 83, .08); }
.membership-recharge-copy, .membership-recharge-price { display: grid; gap: 3px; align-items: center; }
.membership-recharge-copy { justify-items: start; }
.membership-recharge-copy small { color: #9aa6a1; font-size: 10px; text-decoration: line-through; }
.membership-recharge-price { grid-auto-flow: column; grid-template-columns: auto auto; justify-content: end; gap: 8px; }
.membership-recharge-price em { min-width: 30px; padding: 3px 5px; border-radius: 4px; color: #fff; background: #ed7547; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1; text-align: center; }
.membership-recharge-options .membership-recharge-price b { color: #178879; font-size: 15px; font-weight: 900; }
.membership-recharge-option-featured { border-color: #42a590 !important; background: linear-gradient(105deg, #f9fffc, #eaf8f2) !important; }
.membership-recharge-option-featured::before { content: "\8d85\503c\4f18\60e0"; position: absolute; top: -1px; left: 15px; padding: 3px 6px; border-radius: 0 0 5px 5px; color: #fff; background: #178879; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.membership-recharge-option-featured .membership-recharge-copy { padding-top: 8px; }

/* Public processing-service beacon */
.service-status-indicator {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 82;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(40, 60, 53, .16);
  border-radius: 50%;
  place-items: center;
  color: #376158;
  background: rgba(251, 253, 251, .95);
  box-shadow: 0 8px 24px rgba(26, 45, 38, .16);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

@media (max-width: 480px) {
  .admin-pricing-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
}
.membership-assets-panel { margin-top: 16px; }
.membership-assets-head { align-items: flex-end; }
.membership-assets-tools { display: flex; align-items: center; gap: 9px; }
.membership-assets-tools > small { color: #75817d; font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.membership-assets-tools label { display: flex; align-items: center; gap: 5px; color: #75817d; font-size: 10px; }
.membership-assets-tools select { min-height: 34px; padding: 0 9px; border: 1px solid #d8ded9; border-radius: 8px; color: #344842; background: #f8faf7; font-size: 10px; }
.membership-assets-tools button { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 10px; }
.membership-assets-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.membership-asset-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; border: 1px solid #e0e5e1; border-radius: 10px; background: rgba(248,250,247,.72); }
.membership-asset-type { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #176e62; background: #e7f5f0; font: 800 8px/1 var(--mono); }
.membership-asset-type.audio { color: #a35425; background: #fff0e6; }
.membership-asset-row strong { display: block; overflow: hidden; color: #25352f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.membership-asset-row small { display: block; margin-top: 4px; overflow: hidden; color: #75817d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.membership-asset-row a { color: #176e62; font-size: 10px; font-weight: 850; text-decoration: none; }
.membership-asset-empty { grid-column: 1 / -1; padding: 20px; color: #75817d; font-size: 11px; text-align: center; }
.membership-assets-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; color: #75817d; font-size: 11px; }
.membership-assets-pagination > div { display: inline-flex; align-items: center; gap: 5px; }
.membership-assets-page-gap { width: 18px; color: #91a09a; font-style: normal; font-weight: 800; text-align: center; }
.membership-assets-page,
.membership-assets-page-arrow { display: grid; width: 30px; height: 30px; padding: 0; border: 1px solid #d8ded9; border-radius: 6px; place-items: center; color: #42635b; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.membership-assets-page:hover,
.membership-assets-page-arrow:hover { border-color: #178879; color: #178879; background: #f1faf7; }
.membership-assets-page.active { border-color: #178879; color: #fff; background: #178879; }
.membership-assets-page-arrow:disabled { opacity: .42; cursor: default; }
.service-status-indicator:hover,
.service-status-indicator:focus-visible { border-color: rgba(23, 136, 121, .48); outline: 0; }
.feedback-entry-button { border-color: rgba(23, 136, 121, .42); box-shadow: 0 0 0 4px rgba(23, 136, 121, .08), 0 8px 24px rgba(26, 45, 38, .16); }
.feedback-entry-button:hover .service-status-logo { transform: scale(.9) rotate(-4deg); }
.service-status-logo { display: block; width: 25px; height: 25px; transition: filter .18s ease, opacity .18s ease, transform .18s ease; }
.service-status-indicator[data-state="ready"] { border-color: rgba(35, 183, 154, .58); box-shadow: 0 0 0 4px rgba(35, 183, 154, .12), 0 8px 24px rgba(26, 45, 38, .16); }
.service-status-indicator[data-state="busy"] { border-color: rgba(23, 136, 121, .68); box-shadow: 0 0 0 4px rgba(23, 136, 121, .14), 0 8px 24px rgba(26, 45, 38, .16); }
.service-status-indicator[data-state="busy"] .service-status-logo { animation: service-status-logo-pulse 1.35s ease-in-out infinite; }
.service-status-indicator[data-state="standby"] { border-color: rgba(226, 163, 79, .62); box-shadow: 0 0 0 4px rgba(226, 163, 79, .12), 0 8px 24px rgba(26, 45, 38, .16); }
.service-status-indicator[data-state="off"] { opacity: .68; }
.service-status-indicator[data-state="off"] .service-status-logo { opacity: .48; filter: grayscale(1); }
.service-status-indicator[data-state="error"] { border-color: rgba(223, 98, 79, .72); box-shadow: 0 0 0 4px rgba(223, 98, 79, .13), 0 8px 24px rgba(26, 45, 38, .16); }
.service-status-indicator[data-state="error"] .service-status-logo { filter: grayscale(.8) sepia(.3) saturate(1.8) hue-rotate(310deg); }
.service-status-indicator[data-state="checking"] .service-status-logo { animation: service-status-logo-pulse 1.2s ease-in-out infinite; }
.service-status-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid rgba(36, 57, 49, .13);
  border-radius: 8px;
  color: #253a34;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 28px rgba(26, 45, 38, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.service-status-popover strong { font-size: 11px; }
.service-status-popover small { color: #74827d; font-size: 10px; }
.service-status-indicator:hover .service-status-popover,
.service-status-indicator:focus-visible .service-status-popover { opacity: 1; transform: translateY(0); }
@keyframes service-status-pulse { 50% { transform: scale(.72); opacity: .58; } }
@keyframes service-status-logo-pulse { 50% { transform: scale(.78); opacity: .7; } }
@media (max-width: 720px) {
  .pricing-period-options { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .pricing-period-options button { min-width: 0; padding-right: 6px; padding-left: 6px; }
  .pricing-rules { padding: 17px; }
  .pricing-rules-grid { grid-template-columns: 1fr; }
  .pricing-rule-wide { grid-column: auto; }
  .admin-benefit-fields, .admin-subscription-period-fields { grid-template-columns: 1fr; }
  .service-status-indicator { right: 13px; bottom: 13px; width: 36px; height: 36px; }
  .upload-progress-panel { right: 13px; bottom: 62px; }
}

.service-config-dialog { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(9, 20, 17, .42); backdrop-filter: blur(3px); }
.service-config-dialog.hidden { display: none; }
.service-config-card { position: relative; display: grid; width: min(100%, 410px); gap: 15px; padding: 24px; border: 1px solid #d3ddd7; border-radius: 14px; color: #1d302a; background: #fbfcfa; box-shadow: 0 28px 70px rgba(13, 32, 25, .28); }
.service-config-card .home-kicker { margin: 0; }
.service-config-card h2 { margin: -7px 0 0; font-size: 22px; letter-spacing: -.04em; }
.service-config-card > p { margin: -8px 0 0; color: #6d7d76; font-size: 12px; line-height: 1.7; }
.service-config-card label { display: grid; gap: 7px; }
.service-config-card label > span { color: #68776f; font-size: 10px; font-weight: 800; }
.service-config-card input { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #d5dfd9; border-radius: 7px; color: #345149; background: #f2f6f3; font-size: 11px; }
.service-config-live { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #dce5df; border-radius: 9px; background: #f4f8f5; }
.service-config-live i { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #a7b0ac; }
.service-config-live[data-state="ready"] i { background: #23b79a; box-shadow: 0 0 0 5px rgba(35, 183, 154, .13); }
.service-config-live[data-state="busy"] i { background: #178879; animation: service-status-pulse 1.35s ease-in-out infinite; }
.service-config-live[data-state="error"] i { background: #df624f; box-shadow: 0 0 0 5px rgba(223, 98, 79, .13); }
.service-config-live > div { display: grid; min-width: 0; gap: 3px; }
.service-config-live strong { font-size: 12px; }
.service-config-live small { overflow: hidden; color: #76847e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.service-config-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.service-config-actions button { min-height: 38px; border: 1px solid #bad0c7; border-radius: 7px; color: #245449; background: #edf7f2; font-size: 11px; font-weight: 850; cursor: pointer; }
.service-config-actions button:last-child { border-color: #173a34; color: #fff; background: #173a34; }
.service-config-close { position: absolute; top: 10px; right: 11px; width: 28px; height: 28px; padding: 0; border: 0; color: #78857f; background: transparent; font-size: 22px; cursor: pointer; }
.feedback-form { display: grid; gap: 13px; }
.feedback-form textarea { width: 100%; min-height: 118px; resize: vertical; padding: 11px; border: 1px solid #d5dfd9; border-radius: 8px; color: #345149; background: #f2f6f3; font: inherit; font-size: 12px; line-height: 1.6; }
.feedback-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: end; }
.feedback-captcha-row button { min-height: 39px; padding: 7px 10px; border: 1px solid #bad0c7; border-radius: 8px; color: #245449; background: #edf7f2; cursor: pointer; text-align: left; }
.feedback-captcha-row button strong { display: block; font-size: 13px; }
.feedback-captcha-row button small { display: block; color: #6d7d76; font-size: 9px; }
.feedback-actions { grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
.feedback-actions small { color: #178879; font-size: 11px; line-height: 1.5; }
.feedback-actions small.error { color: #d34c40; }
.feedback-actions small.success { color: #178879; }
.admin-feedback-alert { grid-column: 1 / -1; display: grid; gap: 12px; padding: 16px; border: 1px solid rgba(255, 138, 104, .5); border-radius: 13px; background: linear-gradient(135deg, rgba(255, 138, 104, .16), rgba(73, 198, 191, .08)), #101923; box-shadow: inset 4px 0 #ff8a68, 0 14px 32px rgba(5, 12, 18, .22); }
.admin-feedback-alert.hidden { display: none; }
.admin-feedback-alert-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-feedback-alert-head span { color: #ffb18d; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.admin-feedback-alert-head strong { display: block; margin-top: 4px; color: #fff6ee; font-size: 18px; }
.admin-feedback-alert-head b { display: grid; min-width: 42px; height: 42px; padding: 0 10px; place-items: center; border-radius: 999px; color: #fff; background: #e65d46; font-size: 18px; box-shadow: 0 0 0 5px rgba(230, 93, 70, .14); }
.admin-feedback-list { display: grid; gap: 9px; }
.admin-feedback-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; background: rgba(6, 12, 19, .42); }
.admin-feedback-item strong { display: block; max-height: 42px; overflow: hidden; color: #f6fbfa; font-size: 12px; line-height: 1.55; }
.admin-feedback-item small { display: block; margin-top: 5px; overflow: hidden; color: #8ea0a9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-feedback-item button { min-height: 30px; padding: 0 12px; border: 1px solid rgba(73, 198, 191, .42); border-radius: 8px; color: #d8f7f2; background: rgba(73, 198, 191, .12); font-size: 10px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.admin-feedback-item button:disabled { opacity: .6; cursor: wait; }
.admin-feedback-empty { color: #8ea0a9; font-size: 12px; }
@media (max-width: 720px) {
  .feedback-captcha-row, .feedback-actions, .admin-feedback-item { grid-template-columns: 1fr; }
}

.membership-feature-locked { color: #c62828 !important; font-weight: 700; }
.quality-file-button.membership-feature-locked {
  opacity: .56;
  cursor: not-allowed;
  filter: grayscale(.35);
}
.quality-file-button.membership-feature-locked * { cursor: not-allowed !important; }
.public-preview-row audio { max-width: 220px; }
.public-project-preview a { display: inline-grid; width: 30px; height: 30px; place-items: center; color: inherit; }

@media (max-width: 900px) {
  .admin-referral-summary, .admin-referral-records { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .admin-referral-record-row { grid-template-columns: 1fr; }
  .admin-referral-record-status { text-align: left; }
}
