.expert-copy-panel { padding-bottom: 18px; }
.mode-tabs .mode-tab[data-mode="expert"]:disabled { opacity: .55; cursor: not-allowed; }
.expert-copy-panel.active { animation: none; opacity: 1; }
.expert-copy-panel .gen-heading { margin-bottom: 16px; }
.expert-copy-frame { display: block; width: 100%; height: 650px; min-height: 0; border: 1px solid #e7e8ef; border-radius: 18px; background: #fff; }
.expert-copy-panel.expert-prewarm:not(.active) { display: block !important; position: absolute; visibility: hidden; pointer-events: none; top: 0; z-index: -1; height: auto; }
.wizard-voice-library { position: fixed; inset: 0; box-sizing: border-box; width: min(470px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); min-height: min(470px, calc(100dvh - 24px)); margin: auto; padding: 20px; border: 1px solid #e6e5ed; border-radius: 24px; background: #fff; color: #22232b; box-shadow: 0 24px 90px #26213d35; font: inherit; overflow: auto; }
.wizard-voice-library[open] { display: flex; flex-direction: column; }
.wizard-voice-library::backdrop { background: #25223965; backdrop-filter: blur(4px); }
.wizard-voice-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.wizard-voice-head h2 { margin: 0; font-size: 16px; font-weight: 750; }
.wizard-voice-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4f4f7; color: #22232b; font-size: 23px; cursor: pointer; }
.wizard-voice-tabs { display: flex; border-bottom: 1px solid #e5e5ed; }
.wizard-voice-tabs button { flex: 1; padding: 11px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #83838e; font: inherit; font-size: 12px; cursor: pointer; }
.wizard-voice-tabs button[aria-selected="true"] { border-bottom-color: #7564ff; color: #22232b; font-weight: 700; }
.wizard-voice-search { box-sizing: border-box; width: 100%; margin: 13px 0 0; padding: 11px 15px; border: 1px solid #e5e5ed; border-radius: 999px; background: #f5f5f8; color: #22232b; font: inherit; font-size: 12px; }
.wizard-voice-new { display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0; padding: 13px 16px; border: 1px solid #cfc3ff; border-radius: 15px; background: linear-gradient(125deg,#f1ebff,#f0fbff); color: #22232b; text-align: left; font: inherit; cursor: pointer; }
.wizard-voice-new img { width: 28px; height: 28px; object-fit: contain; }
.wizard-voice-new span:nth-of-type(1) { flex: 1; min-width: 0; }
.wizard-voice-new strong, .wizard-voice-new small { display: block; }
.wizard-voice-new strong { font-size: 13px; }
.wizard-voice-new small { margin-top: 4px; color: #777987; font-size: 11px; }
.wizard-voice-new em { margin-left: 5px; padding: 2px 5px; border-radius: 5px; background: #7564ff; color: #fff; font-size: 9px; font-style: normal; }
.wizard-voice-list { flex: 1; min-height: 180px; max-height: 40dvh; overflow: auto; }
.wizard-voice-empty { margin: 40px 10px; color: #777987; font-size: 12px; line-height: 1.5; text-align: center; }
.wizard-voice-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 8px; border-radius: 12px; background: #f5f5f8; }
.wizard-voice-choice { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 0; background: none; color: #22232b; text-align: left; font: inherit; cursor: pointer; }
.wizard-voice-choice > span:last-child { min-width: 0; }
.wizard-voice-choice strong, .wizard-voice-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-voice-choice strong { font-size: 12px; }
.wizard-voice-choice small { margin-top: 4px; color: #777987; font-size: 10px; }
.wizard-voice-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 40px; border-radius: 9px; background: linear-gradient(145deg,#9f89ff,#42cbe5); color: #fff; }
.wizard-voice-favorite { flex: none; border: 0; background: none; color: #8b819c; font-size: 22px; cursor: pointer; }
.wizard-voice-status { margin: 0; color: #bb334a; font-size: 11px; }
.wizard-voice-note { margin: 12px 0 0; color: #777987; font-size: 10px; }
@media (max-width: 480px) { .wizard-voice-library { min-height: min(430px, calc(100dvh - 24px)); padding: 16px; border-radius: 20px; } .wizard-voice-head h2 { font-size: 14px; } .wizard-voice-list { min-height: 120px; } }
body.wizard-voice-dialog-open { overflow: hidden; }
.generator-card:has(.voice-bridge-open) { transform: none !important; transition: none !important; isolation: auto !important; z-index: 10020 !important; }
.expert-copy-panel.voice-bridge-open:not(.voice-bridge-ready)::before { content: ""; position: fixed; inset: 0; background: #25223965; backdrop-filter: blur(4px); }
.expert-copy-panel.voice-bridge-open:not(.voice-bridge-ready)::after { content: "Открываем создание голоса…"; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: min(470px, calc(100vw - 24px)); padding: 34px 22px; border-radius: 22px; background: #fff; color: #555668; text-align: center; font-size: 13px; box-shadow: 0 24px 90px #26213d35; }
.expert-copy-panel.voice-bridge-open { display: block !important; position: fixed !important; inset: 0 !important; z-index: 10020 !important; width: 100vw !important; height: 100dvh !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.expert-copy-panel.voice-bridge-open > .step-back, .expert-copy-panel.voice-bridge-open > .gen-heading { display: none !important; }
.expert-copy-panel.voice-bridge-open .expert-copy-frame { position: absolute !important; inset: 0 !important; display: block !important; visibility: hidden !important; width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.expert-copy-panel.voice-bridge-open.voice-bridge-ready .expert-copy-frame { visibility: visible !important; }
@media(max-width:650px) {
  .expert-copy-panel { padding: 12px 0 8px; }
  .expert-copy-frame { border-radius: 13px; }
  body.expert-voice-modal-open .generator-card { z-index: 10001; }
  .expert-copy-panel.voice-modal-open .expert-copy-frame {
    position: fixed !important;
    inset: 0;
    z-index: 10002;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
  }
}
body.expert-dialog-open { overflow: hidden; }
.genre-pick-grid > .genre-artist-banner {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 116px;
  padding: 17px 23px;
  overflow: hidden;
  border: 1px solid #dcd6f2;
  border-radius: 20px;
  background: radial-gradient(circle at 82% 0%, #b8eaff 0, transparent 32%),
              radial-gradient(circle at 12% 100%, #e2ceff 0, transparent 35%),
              linear-gradient(110deg, #f9f5ff, #f3fbff);
  color: #242233;
  text-align: left;
}
.genre-pick-grid > .genre-artist-banner:hover,
.genre-pick-grid > .genre-artist-banner:focus-visible {
  border-color: #9a86ff;
  background: linear-gradient(110deg, #f2edff, #ecfaff);
  box-shadow: 0 8px 25px #7b61ff17;
}
.genre-artist-banner__icon {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px #755cff32);
}
.genre-pick-card .genre-artist-banner__copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.genre-pick-card .genre-artist-banner__copy small { color: #755cff; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.genre-artist-banner__copy strong { font-size: 17px; line-height: 1.2; }
.genre-artist-banner__copy em { color: #6e6b7e; font-size: 12px; font-style: normal; font-weight: 500; line-height: 1.4; }
.genre-pick-card .genre-artist-banner__action {
  display: inline-flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(100deg, #765dff, #20bce5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 600px) {
  .genre-pick-grid > .genre-artist-banner { gap: 10px; min-height: 104px; padding: 13px; border-radius: 16px; }
  .genre-artist-banner__icon { width: 48px; height: 48px; }
  .genre-artist-banner__copy strong { font-size: 13px; }
  .genre-artist-banner__copy em { font-size: 10px; }
  .genre-pick-card .genre-artist-banner__action { min-width: 0; min-height: 32px; padding: 6px 9px; font-size: 10px; }
  .genre-artist-banner__action svg { width: 13px; height: 13px; }
}
.generator-card:has(.expert-dialog-open) { position: relative !important; transform: none !important; transition: none !important; isolation: auto !important; overflow: visible !important; z-index: 10030 !important; }
.expert-copy-panel.expert-dialog-open { position: relative; z-index: 10031; }
.expert-copy-panel.expert-dialog-open .expert-copy-frame { position: fixed !important; inset: 0 !important; z-index: 10032 !important; width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
body.regular-genre-catalog { overflow: hidden; }
body.regular-genre-catalog .expert-copy-panel { display: block !important; position: fixed !important; inset: 0 !important; z-index: 10040 !important; width: 100vw !important; height: 100dvh !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; animation: none !important; }
body.regular-genre-catalog .expert-copy-panel > :not(.expert-copy-frame) { display: none !important; }
body.regular-genre-catalog .expert-copy-frame { position: fixed !important; inset: 0 !important; z-index: 10041 !important; width: 100vw !important; height: 100dvh !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }

