  .tool-body-voicelify #main-content{
    margin-top:-10px;
  }

  .tool-body-voicelify .container.page-tool-immersive{
    max-width:1380px;
    padding-top:24px;
  }

  .hidden{
    display:none !important;
  }

  .form-note{
    display:block;
    color:var(--theme-text-muted);
    font-size:13px;
    line-height:1.55;
  }

  .vfy-shell{
    display:flex;
    gap:22px;
    align-items:flex-start;
    margin-top:10px;
    margin-bottom:34px;
    background:transparent !important;
  }

  .vfy-main{
    flex:1;
    min-width:0;
    background:transparent !important;
  }

  .vfy-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:20px;
    align-items:start;
    background:transparent !important;
  }

  .vfy-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
  }

  .vfy-span-2{
    grid-column:1 / -1;
  }

  .vfy-hero-logo{
    display:block;
    width:auto;
    height:92px;
    max-width:100%;
    object-fit:contain;
    filter:drop-shadow(0 10px 24px var(--theme-accent-soft));
  }

  .vfy-brand-logo{
    width:64px;
    height:64px;
    object-fit:contain;
    flex:0 0 64px;
    filter:drop-shadow(0 8px 20px var(--theme-accent-soft));
  }

  .vfy-dock{
    position:sticky;
    top:98px;
    width:86px;
    min-width:86px;
    padding:12px 10px;
    border-radius:26px;
    overflow:visible;
    z-index:5;
    transition:
      width .22s ease,
      min-width .22s ease,
      box-shadow .22s ease,
      border-color .22s ease,
      background .22s ease;
  }

  .vfy-dock:hover{
    width:128px;
    min-width:128px;
  }

  .vfy-dock-brand{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:54px;
    padding:0 14px;
    border-radius:18px;
    text-decoration:none;
    margin-bottom:14px;
    transition:
      justify-content .22s ease,
      background .18s ease,
      border-color .18s ease;
  }

  .vfy-dock:hover .vfy-dock-brand{
    justify-content:center;
  }

  .vfy-dock-brand i{
    width:22px;
    min-width:22px;
    text-align:center;
    font-size:18px;
    line-height:1;
  }

  .vfy-dock-brand span{
    white-space:nowrap;
    opacity:0;
    max-width:0;
    overflow:hidden;
    transform:translateX(6px);
    transition:
      opacity .18s ease,
      transform .18s ease,
      max-width .18s ease;
    font-weight:700;
  }

  .vfy-dock:hover .vfy-dock-brand span{
    opacity:1;
    max-width:160px;
    transform:translateX(0);
  }

  .vfy-dock-nav{
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .vfy-dock-link{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:0 14px;
    border-radius:18px;
    text-decoration:none;
    border:1px solid transparent;
    transition:
      background .18s ease,
      color .18s ease,
      transform .18s ease,
      border-color .18s ease,
      justify-content .22s ease;
  }

  .vfy-dock:hover .vfy-dock-link{
    justify-content:flex-start;
  }

  .vfy-dock-link i{
    width:22px;
    min-width:22px;
    text-align:center;
    font-size:16px;
    line-height:1;
  }

  .vfy-dock-link span{
    white-space:nowrap;
    opacity:0;
    max-width:0;
    overflow:hidden;
    transform:translateX(6px);
    transition:
      opacity .18s ease,
      transform .18s ease,
      max-width .18s ease;
  }

  .vfy-dock:hover .vfy-dock-link span{
    opacity:1;
    max-width:150px;
    transform:translateX(0);
  }

  .vfy-dock-link:hover{
    transform:translateY(-1px);
  }

  .vfy-hero-panel{
    position:relative;
    overflow:hidden;
    padding:22px 24px;
    border-radius:30px;
    margin-bottom:20px;
  }

  .vfy-hero-panel::before{
    content:"";
    position:absolute;
    top:-120px;
    right:-100px;
    width:320px;
    height:320px;
    border-radius:50%;
    pointer-events:none;
  }

  .vfy-hero-panel::after{
    content:"";
    position:absolute;
    left:-80px;
    bottom:-120px;
    width:280px;
    height:280px;
    border-radius:50%;
    pointer-events:none;
  }

  .vfy-hero-top,
  .vfy-hero-copy,
  .vfy-hero-badges{
    position:relative;
    z-index:1;
  }

  .vfy-hero-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
  }

  .vfy-brand-lockup{
    display:flex;
    align-items:flex-start;
    gap:16px;
  }

  .vfy-kicker{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:10px;
  }

  .vfy-hero-copy h1{
    margin:0;
    font-size:42px;
    line-height:.98;
    letter-spacing:-0.04em;
  }

  .vfy-hero-copy p{
    margin:12px 0 0 0;
    max-width:860px;
    font-size:17px;
    line-height:1.75;
  }

  .vfy-hero-badges{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .vfy-hero-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.02em;
    white-space:nowrap;
  }

  .vfy-workspace-panel{
    border-radius:30px;
    padding:18px;
  }

  .vfy-step-card{
    position:relative;
    top:0;
    border-radius:22px;
    padding:16px;
    transition:
      top .18s ease,
      box-shadow .18s ease,
      border-color .18s ease,
      background .18s ease;
  }

  .vfy-step-card:hover{
    top:-2px;
  }

  .vfy-step-title{
    font-size:13px;
    font-weight:800;
    margin-bottom:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .vfy-subcard{
    border-radius:16px;
    padding:12px;
    margin-top:10px;
    transition:
      transform .18s ease,
      box-shadow .18s ease,
      border-color .18s ease;
  }

  .vfy-subcard:hover{
    transform:translateY(-1px);
  }

  .vfy-source-select{
    margin-top:8px;
  }

  .vfy-source-select select{
    width:100%;
  }

  .vfy-clone-hero{
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .vfy-clone-hero-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
  }

  .vfy-clone-hero-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .vfy-clone-hero-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    white-space:nowrap;
  }

  .vfy-clone-hero-copy h3{
    margin:10px 0 8px 0;
    font-size:28px;
    line-height:1.05;
    letter-spacing:-0.03em;
  }

  .vfy-clone-hero-copy p{
    margin:0;
    line-height:1.7;
    font-size:15px;
    max-width:760px;
  }

  .vfy-clone-hero-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
  }

  .vfy-clone-primary-btn{
    appearance:none;
    border:none;
    cursor:pointer;
    min-height:58px;
    padding:0 20px;
    border-radius:16px;
    display:inline-flex;
    align-items:center;
    gap:12px;
    font:inherit;
    font-weight:700;
    transition:
      transform .18s ease,
      box-shadow .18s ease,
      border-color .18s ease,
      opacity .18s ease,
      background .18s ease;
  }

  .vfy-clone-primary-btn:hover{
    transform:translateY(-1px);
  }

  .vfy-clone-primary-btn.is-disabled{
    cursor:not-allowed;
    transform:none;
  }

  .vfy-clone-primary-dot{
    width:14px;
    height:14px;
    border-radius:50%;
    flex:0 0 14px;
  }

  .vfy-clone-primary-note{
    margin:0;
    font-size:13px;
    line-height:1.6;
  }

  #audioComposerBox .audio-preset-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
    margin-top:10px;
  }

  #audioComposerBox .audio-preset-card{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:110px;
    border-radius:16px;
    padding:16px 18px;
    cursor:pointer;
    transition:.18s ease;
    text-align:center;
  }

  #audioComposerBox .audio-preset-card:hover{
    transform:translateY(-1px);
  }

  #audioComposerBox .audio-preset-card.disabled{
    opacity:.5;
    pointer-events:none;
  }

  #audioComposerBox .audio-preset-card input[type="radio"]{
    position:absolute;
    opacity:0;
    pointer-events:none;
    width:0;
    height:0;
  }

  #audioComposerBox .audio-preset-card strong{
    display:block;
    margin:0 0 4px 0;
    font-size:15px;
    line-height:1.2;
    font-weight:700;
  }

  #audioComposerBox .audio-preset-card span{
    display:block;
    margin:0;
    font-size:12px;
    line-height:1.35;
    opacity:.86;
  }

  .vfy-submit-wrap{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:14px;
    flex-wrap:wrap;
    margin-top:2px;
  }

  #voicelifySubmit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:14px 24px;
    border-radius:16px;
    font-weight:700;
  }

  .vfy-result-card{
    min-height:0;
  }

  .vfy-result-empty{
    border-radius:18px;
    padding:18px;
  }

  .vfy-result-empty strong{
    display:block;
    margin-bottom:8px;
    font-size:15px;
  }

  #result{
    margin-top:0;
  }

  #audioPlayer{
    width:100%;
    margin-top:0;
    margin-bottom:8px;
  }

  #videoPlayer{
    width:100%;
    border-radius:14px;
  }

  #transcript{
    margin-top:0;
    border-radius:14px;
  }

  .vfy-context-stack{
    position:sticky;
    top:98px;
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .vfy-context-card{
    border-radius:24px;
    padding:18px;
  }

  .vfy-context-label{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .vfy-context-card strong{
    display:block;
    font-size:22px;
    line-height:1.08;
    letter-spacing:-0.02em;
    margin-bottom:10px;
  }

  .vfy-context-note strong{
    display:inline;
    font-size:inherit;
    line-height:inherit;
    letter-spacing:inherit;
    margin-bottom:0;
  }

  .vfy-context-card p{
    margin:0;
    line-height:1.65;
    font-size:14px;
  }

  .vfy-context-mini-links{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:4px;
  }

  .vfy-context-mini-links a{
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:42px;
    padding:10px 12px;
    border-radius:14px;
    text-decoration:none;
    transition:
      transform .18s ease,
      border-color .18s ease,
      background .18s ease;
  }

  .vfy-context-mini-links a:hover{
    transform:translateY(-1px);
  }

  .vfy-context-note{
    margin-top:12px;
    padding:12px 14px;
    border-radius:16px;
    font-size:13px;
    line-height:1.6;
  }

  .vfy-live-card{
    position:relative;
    overflow:hidden;
  }

  .vfy-live-card::before{
    content:"";
    position:absolute;
    inset:-1px;
    border-radius:inherit;
    pointer-events:none;
    opacity:.9;
  }

  .vfy-side-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    position:relative;
    z-index:1;
  }

  .vfy-side-label{
    display:block;
    font-size:11px;
    letter-spacing:.18em;
    text-transform:uppercase;
    margin-bottom:4px;
  }

  .vfy-live-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    flex:0 0 auto;
    margin-top:6px;
  }

  .vfy-live-dot.is-active{
    animation:vfyPulse 1.8s infinite;
  }

  @keyframes vfyPulse{
    0%{
      box-shadow:
        0 0 0 0 var(--theme-live-dot-active-shadow),
        0 0 12px var(--theme-live-dot-active-glow);
    }
    70%{
      box-shadow:
        0 0 0 10px rgba(0,0,0,0),
        0 0 18px var(--theme-live-dot-active-glow-strong);
    }
    100%{
      box-shadow:
        0 0 0 0 rgba(0,0,0,0),
        0 0 12px var(--theme-live-dot-active-glow);
    }
  }

  .vfy-side-muted{
    margin:14px 0 16px;
    font-size:14px;
    line-height:1.55;
    position:relative;
    z-index:1;
  }

  .vfy-progress-wrap{
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:center;
    margin-bottom:16px;
    position:relative;
    z-index:1;
  }

  .vfy-progress-bar{
    position:relative;
    height:18px;
    border-radius:999px;
    overflow:hidden;
  }

  .vfy-progress-bar-fill{
    position:absolute;
    inset:0 auto 0 0;
    width:0%;
    border-radius:inherit;
    transition:width .35s ease;
  }

  .vfy-progress-bar-fill::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:62px;
    height:100%;
    background:linear-gradient(90deg, transparent, var(--theme-progress-shine), transparent);
    mix-blend-mode:screen;
    animation:vfyProgressSweep 2.2s linear infinite;
  }

  .vfy-progress-glow{
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
      repeating-linear-gradient(
        90deg,
        transparent 0 22px,
        var(--theme-progress-grid-line) 22px 24px
      );
    opacity:.45;
  }

  @keyframes vfyProgressSweep{
    0%{ transform:translateX(-70px); }
    100%{ transform:translateX(20px); }
  }

  .vfy-progress-value{
    min-width:42px;
    text-align:right;
    font-size:13px;
    font-weight:700;
    letter-spacing:.04em;
  }

  .vfy-live-meta{
    display:grid;
    gap:10px;
    position:relative;
    z-index:1;
  }

  .vfy-live-meta-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    border-radius:14px;
  }

  .vfy-live-meta-label{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
  }

  .vfy-live-meta-item strong{
    font-size:13px;
  }

  body.tool-body-voicelify,
  .tool-body-voicelify #main-content{
    color:var(--theme-text-main);
    background:
      radial-gradient(circle at 12% 8%, var(--theme-bg-glow-1) 0%, transparent 26%),
      radial-gradient(circle at 88% 10%, var(--theme-bg-glow-2) 0%, transparent 30%),
      linear-gradient(180deg, var(--theme-bg-start) 0%, var(--theme-bg-end) 100%) !important;
    background-attachment:fixed !important;
  }

  .tool-body-voicelify,
  .tool-body-voicelify body,
  .tool-body-voicelify #main-content,
  .tool-body-voicelify main,
  .tool-body-voicelify .container,
  .tool-body-voicelify .container.page-tool-immersive,
  .tool-body-voicelify .vfy-shell,
  .tool-body-voicelify .vfy-main,
  .tool-body-voicelify .vfy-layout{
    box-shadow:none !important;
  }

  .tool-body-voicelify #main-content,
  .tool-body-voicelify main,
  .tool-body-voicelify .container,
  .tool-body-voicelify .container.page-tool-immersive{
    background:transparent !important;
  }

  .tool-body-voicelify .vfy-dock,
  .tool-body-voicelify .vfy-hero-panel,
  .tool-body-voicelify .vfy-workspace-panel,
  .tool-body-voicelify .vfy-context-card{
    background:linear-gradient(180deg, var(--theme-panel-start) 0%, var(--theme-panel-end) 100%) !important;
    border:1px solid var(--theme-card-border) !important;
    box-shadow:
      0 20px 50px var(--theme-shadow-1),
      inset 0 1px 0 var(--theme-highlight-soft) !important;
  }

  .tool-body-voicelify .vfy-hero-panel::before{
    background:radial-gradient(circle, var(--theme-hero-orb-1), transparent 64%) !important;
  }

  .tool-body-voicelify .vfy-hero-panel::after{
    background:radial-gradient(circle, var(--theme-hero-orb-2), transparent 66%) !important;
  }

  .tool-body-voicelify .vfy-live-card::before{
    background:
      radial-gradient(circle at top right, var(--theme-bg-glow-1) 0%, transparent 30%),
      radial-gradient(circle at bottom left, var(--theme-bg-glow-2) 0%, transparent 35%) !important;
  }

  .tool-body-voicelify .vfy-step-card,
  .tool-body-voicelify .vfy-subcard,
  .tool-body-voicelify .vfy-result-empty,
  .tool-body-voicelify .vfy-context-note,
  .tool-body-voicelify .vfy-context-mini-links a,
  .tool-body-voicelify .vfy-live-meta-item,
  .tool-body-voicelify #audioComposerBox .audio-preset-card{
    background:var(--theme-card-bg) !important;
    border:1px solid var(--theme-card-border) !important;
  }

  .tool-body-voicelify .vfy-step-card:hover,
  .tool-body-voicelify .vfy-subcard:hover,
  .tool-body-voicelify .vfy-context-mini-links a:hover,
  .tool-body-voicelify #audioComposerBox .audio-preset-card:hover{
    border-color:var(--theme-accent) !important;
    box-shadow:0 14px 34px var(--theme-shadow-2) !important;
  }

  .tool-body-voicelify .vfy-kicker,
  .tool-body-voicelify .vfy-hero-pill,
  .tool-body-voicelify .vfy-clone-hero-status,
  .tool-body-voicelify .vfy-dock-brand{
    background:var(--theme-pill-bg) !important;
    border:1px solid var(--theme-pill-border) !important;
    color:var(--theme-text-main) !important;
  }

  .tool-body-voicelify .vfy-step-title,
  .tool-body-voicelify .vfy-context-label,
  .tool-body-voicelify .vfy-kicker,
  .tool-body-voicelify .vfy-dock-brand i,
  .tool-body-voicelify .vfy-clone-hero-badge,
  .tool-body-voicelify .vfy-side-label{
    color:var(--theme-accent) !important;
  }

  .tool-body-voicelify .vfy-hero-copy h1,
  .tool-body-voicelify .vfy-clone-hero-copy h3,
  .tool-body-voicelify .vfy-context-card strong,
  .tool-body-voicelify .vfy-live-meta-item strong,
  .tool-body-voicelify .vfy-progress-value,
  .tool-body-voicelify #audioComposerBox .audio-preset-card strong,
  .tool-body-voicelify .vfy-dock-brand span,
  .tool-body-voicelify .vfy-context-mini-links a,
  .tool-body-voicelify .btn.btn-secondary{
    color:var(--theme-text-main) !important;
  }

  .tool-body-voicelify .vfy-hero-copy p,
  .tool-body-voicelify .vfy-clone-hero-copy p,
  .tool-body-voicelify .vfy-context-card p,
  .tool-body-voicelify .vfy-side-muted,
  .tool-body-voicelify .form-note,
  .tool-body-voicelify .char-counter,
  .tool-body-voicelify .vfy-dock-link,
  .tool-body-voicelify label,
  .tool-body-voicelify .vfy-live-meta-label,
  .tool-body-voicelify .vfy-context-note span,
  .tool-body-voicelify .vfy-context-note div > span,
  .tool-body-voicelify #audioComposerBox .audio-preset-card span{
    color:var(--theme-text-muted) !important;
  }

  .tool-body-voicelify .vfy-dock-link{
    border-color:transparent !important;
  }

  .tool-body-voicelify .vfy-dock-link.active,
  .tool-body-voicelify .vfy-clone-primary-btn,
  .tool-body-voicelify #audioComposerBox .audio-preset-card.active{
    background:linear-gradient(135deg, var(--theme-accent-soft), var(--theme-accent-soft-2)) !important;
    border-color:var(--theme-accent) !important;
  }

  .tool-body-voicelify .vfy-dock-link.active{
    color:var(--theme-text-main) !important;
  }

  .tool-body-voicelify .vfy-clone-primary-btn{
    color:var(--theme-button-primary-text) !important;
    box-shadow:
      0 12px 30px var(--theme-shadow-2),
      0 0 0 1px var(--theme-button-primary-ring) inset !important;
  }

  .tool-body-voicelify .vfy-clone-primary-btn:hover{
    border-color:var(--theme-accent) !important;
    box-shadow:
      0 16px 34px var(--theme-shadow-2),
      0 0 0 1px var(--theme-button-primary-ring-strong) inset !important;
  }

  .tool-body-voicelify .vfy-clone-primary-btn.is-active{
    background:linear-gradient(135deg, var(--theme-accent-soft-strong), var(--theme-accent-soft-2-strong)) !important;
    border-color:var(--theme-accent) !important;
  }

  /* État actif renforcé : même intensité visuelle que "Générer la vidéo" */
  .tool-body-voicelify #voiceCloneOriginalToggle.is-active,
  .tool-body-voicelify #voiceClonePrimaryToggle.is-active{
    background:linear-gradient(135deg, var(--theme-button-primary-start), var(--theme-button-primary-end)) !important;
    color:var(--theme-button-primary-text) !important;
    border:1px solid var(--theme-button-primary-border) !important;
    box-shadow:0 10px 26px var(--theme-button-primary-shadow) !important;
  }
  .tool-body-voicelify #voiceCloneOriginalToggle.is-active .vfy-clone-primary-dot,
  .tool-body-voicelify #voiceClonePrimaryToggle.is-active .vfy-clone-primary-dot{
    background:#fff !important;
    box-shadow:0 0 8px rgba(255,255,255,0.6) !important;
  }

  .tool-body-voicelify .vfy-clone-primary-btn.is-disabled{
    opacity:.58;
  }

  .tool-body-voicelify .vfy-clone-primary-dot,
  .tool-body-voicelify .vfy-live-dot.is-active{
    background:linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2)) !important;
  }

  .tool-body-voicelify .vfy-live-dot{
    background:var(--theme-live-dot-idle) !important;
    box-shadow:0 0 0 0 var(--theme-live-dot-idle-shadow) !important;
  }

  .tool-body-voicelify .vfy-progress-bar{
    background:
      linear-gradient(180deg, var(--theme-progress-track-top), var(--theme-progress-track-bottom)),
      var(--theme-progress-track-base) !important;
    border:1px solid var(--theme-progress-track-border) !important;
    box-shadow:
      inset 0 1px 2px var(--theme-highlight-soft),
      inset 0 -8px 16px var(--theme-shadow-3) !important;
  }

  .tool-body-voicelify .vfy-progress-bar-fill{
    background:linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-accent-2) 100%) !important;
    box-shadow:
      0 0 18px var(--theme-accent-soft),
      0 0 28px var(--theme-accent-soft-2) !important;
  }

  .tool-body-voicelify .btn.btn-primary,
  .tool-body-voicelify #voicelifySubmit,
  .tool-body-voicelify header .btn,
  .tool-body-voicelify .site-header .btn,
  .tool-body-voicelify .topbar .btn,
  .tool-body-voicelify .navbar .btn,
  .tool-body-voicelify .main-nav .btn,
  .tool-body-voicelify header a[href*="voice"],
  .tool-body-voicelify .site-header a[href*="voice"],
  .tool-body-voicelify .topbar a[href*="voice"],
  .tool-body-voicelify .navbar a[href*="voice"],
  .tool-body-voicelify .main-nav a[href*="voice"]{
    background:linear-gradient(135deg, var(--theme-button-primary-start), var(--theme-button-primary-end)) !important;
    color:var(--theme-button-primary-text) !important;
    border:1px solid var(--theme-button-primary-border) !important;
    box-shadow:0 10px 26px var(--theme-button-primary-shadow) !important;
  }

  .tool-body-voicelify .btn.btn-primary:hover,
  .tool-body-voicelify #voicelifySubmit:hover,
  .tool-body-voicelify header .btn:hover,
  .tool-body-voicelify .site-header .btn:hover,
  .tool-body-voicelify .topbar .btn:hover,
  .tool-body-voicelify .navbar .btn:hover,
  .tool-body-voicelify .main-nav .btn:hover,
  .tool-body-voicelify header a[href*="voice"]:hover,
  .tool-body-voicelify .site-header a[href*="voice"]:hover,
  .tool-body-voicelify .topbar a[href*="voice"]:hover,
  .tool-body-voicelify .navbar a[href*="voice"]:hover,
  .tool-body-voicelify .main-nav a[href*="voice"]:hover{
    color:var(--theme-button-primary-text) !important;
    filter:brightness(var(--theme-button-primary-hover-brightness));
  }

  .tool-body-voicelify .btn.btn-secondary{
    background:var(--theme-button-secondary-bg) !important;
    border:1px solid var(--theme-button-secondary-border) !important;
    color:var(--theme-button-secondary-text) !important;
  }

  .tool-body-voicelify header a,
  .tool-body-voicelify .site-header a,
  .tool-body-voicelify .topbar a,
  .tool-body-voicelify .navbar a,
  .tool-body-voicelify .main-nav a{
    color:var(--theme-header-link) !important;
  }

  .tool-body-voicelify header a:hover,
  .tool-body-voicelify .site-header a:hover,
  .tool-body-voicelify .topbar a:hover,
  .tool-body-voicelify .navbar a:hover,
  .tool-body-voicelify .main-nav a:hover{
    color:var(--theme-header-link-hover) !important;
  }

  .tool-body-voicelify input:not([type="checkbox"]):not([type="radio"]),
  .tool-body-voicelify select,
  .tool-body-voicelify textarea{
    background:var(--theme-input-bg) !important;
    color:var(--theme-input-text) !important;
    border:1px solid var(--theme-input-border) !important;
    backdrop-filter:blur(10px);
  }

  .tool-body-voicelify pre,
  .tool-body-voicelify #transcript{
    background:var(--theme-output-bg) !important;
    color:var(--theme-output-text) !important;
    border:1px solid var(--theme-output-border) !important;
    backdrop-filter:blur(10px);
  }

  .tool-body-voicelify #videoPlayer{
    border:1px solid var(--theme-output-border) !important;
    background:var(--theme-video-bg) !important;
  }

  .tool-body-voicelify input:not([type="checkbox"]):not([type="radio"]):focus,
  .tool-body-voicelify select:focus,
  .tool-body-voicelify textarea:focus{
    border-color:var(--theme-input-focus-border) !important;
    box-shadow:0 0 0 1px var(--theme-input-focus-ring) !important;
    outline:none !important;
  }

  .tool-body-voicelify input::placeholder,
  .tool-body-voicelify textarea::placeholder,
  .tool-body-voicelify #text::placeholder{
    color:var(--theme-placeholder) !important;
    opacity:1 !important;
  }

  .tool-body-voicelify #emotionBox label span,
  .tool-body-voicelify #personaBox label span,
  .tool-body-voicelify #voiceCloneBox label span{
    display:inline-flex;
    align-items:center;
    margin-left:6px;
    padding:2px 8px;
    border-radius:999px;
    background:var(--theme-badge-bg) !important;
    border:1px solid var(--theme-badge-border) !important;
    color:var(--theme-badge-text) !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1.2;
    opacity:1 !important;
  }

  @media (max-width:1200px){
    .vfy-layout{
      grid-template-columns:1fr;
    }

    .vfy-context-stack{
      position:relative;
      top:0;
      display:grid;
      grid-template-columns:repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width:980px){
    .vfy-shell{
      flex-direction:column;
    }

    .vfy-dock{
      position:relative;
      top:0;
      width:100%;
      min-width:0;
      padding:10px;
    }

    .vfy-dock:hover{
      width:100%;
      min-width:0;
    }

    .vfy-dock-brand,
    .vfy-dock-link{
      justify-content:flex-start;
    }

    .vfy-dock-brand span,
    .vfy-dock-link span{
      opacity:1;
      max-width:200px;
      transform:none;
    }

    .vfy-dock-nav{
      flex-direction:row;
      flex-wrap:wrap;
    }

    .vfy-dock-link{
      flex:1 1 180px;
    }

    .vfy-context-stack{
      grid-template-columns:1fr;
    }
  }

  @media (max-width:900px){
    .tool-body-voicelify .container.page-tool-immersive{
      padding-top:18px;
    }

    .vfy-hero-top{
      flex-direction:column;
      align-items:flex-start;
    }

    .vfy-hero-badges{
      justify-content:flex-start;
    }

    .vfy-grid{
      grid-template-columns:1fr;
    }

    .vfy-span-2{
      grid-column:auto;
    }
  }

  @media (max-width:768px){
    #audioComposerBox .audio-preset-grid{
      grid-template-columns:1fr;
    }
  }

  @media (max-width:640px){
    .tool-body-voicelify #main-content{
      margin-top:-6px;
    }

    .tool-body-voicelify .container.page-tool-immersive{
      padding-top:14px;
    }

    .vfy-hero-panel{
      padding:18px 16px;
      border-radius:24px;
    }

    .vfy-brand-lockup{
      gap:12px;
    }

    .vfy-brand-logo{
      width:54px;
      height:54px;
      flex-basis:54px;
    }

    .vfy-hero-copy h1{
      font-size:34px;
    }

    .vfy-hero-copy p{
      font-size:15px;
    }

    .vfy-workspace-panel{
      padding:14px;
      border-radius:24px;
    }

    .vfy-step-card{
      border-radius:18px;
      padding:14px;
    }

    .vfy-clone-hero-head{
      flex-direction:column;
      align-items:flex-start;
    }

    .vfy-clone-hero-copy h3{
      font-size:24px;
    }

    .vfy-clone-hero-actions{
      flex-direction:column;
      align-items:stretch;
    }

    .vfy-clone-primary-btn,
    #voiceClonePrimaryCta,
    #voiceCloneUpgradeCta{
      width:100%;
      justify-content:center;
    }

    .vfy-submit-wrap{
      flex-direction:column;
      align-items:stretch;
    }

    #voicelifySubmit{
      width:100%;
    }

    .vfy-context-card{
      border-radius:18px;
      padding:16px;
    }
  }

  /* ── Inline styles migrated from index.php ── */

  .vfy-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  .vfy-submit-actions .btn {
    min-height: 48px;
  }

  .vfy-output-stack {
    display: grid;
    gap: 16px;
  }

  .vfy-range-grid {
    display: grid;
    gap: 14px;
  }

  .vfy-range-row {
    display: grid;
    gap: 8px;
  }

  .vfy-range-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }

  .vfy-range-head strong {
    font-size: 13px;
  }

  .vfy-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vfy-color-field {
    display: grid;
    gap: 8px;
  }

  .vfy-color-field input[type="color"] {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .vfy-live-count {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(123, 211, 255, 0.14);
    border: 1px solid rgba(123, 211, 255, 0.22);
    color: #dff4ff;
    font-size: 13px;
    font-weight: 800;
  }

  .vfy-live-jobs-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .vfy-live-jobs-scroll::-webkit-scrollbar {
    display: none;
  }

  .vfy-live-jobs-list {
    display: grid;
    gap: 10px;
  }

  .vfy-live-empty {
    font-size: 13px;
    color: var(--muted-light);
    padding: 6px 2px 2px 2px;
  }

  .vfy-live-job-item {
    border-radius: 18px;
    border: 1px solid rgba(123, 211, 255, 0.16);
    background: rgba(8, 14, 28, 0.64);
    padding: 12px;
    display: grid;
    gap: 10px;
  }

  .vfy-live-job-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
  }

  .vfy-live-job-title-wrap {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .vfy-live-job-title {
    font-size: 14px;
    font-weight: 800;
    color: #f7fbff;
    line-height: 1.2;
    word-break: break-word;
  }

  .vfy-live-job-subtitle {
    font-size: 12px;
    color: var(--muted-light);
    line-height: 1.3;
    word-break: break-word;
  }

  .vfy-live-job-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.24);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  }

  .vfy-live-job-dot.is-active {
    background: #7bd3ff;
    box-shadow: 0 0 12px rgba(123, 211, 255, 0.85);
  }

  .vfy-live-job-dot.is-finished {
    background: #79f0b0;
    box-shadow: 0 0 12px rgba(121, 240, 176, 0.65);
  }

  .vfy-live-job-dot.is-error {
    background: #ff7d7d;
    box-shadow: 0 0 12px rgba(255, 125, 125, 0.65);
  }

  .vfy-live-job-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .vfy-live-job-progress-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
  }

  .vfy-live-job-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(123, 211, 255, 0.88), rgba(151, 118, 255, 0.88));
  }

  .vfy-live-job-progress-value {
    font-size: 12px;
    font-weight: 800;
    color: #f3f9ff;
    min-width: 36px;
    text-align: right;
  }

  .vfy-live-job-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .vfy-live-job-meta-item {
    display: grid;
    gap: 2px;
  }

  .vfy-live-job-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-light);
  }

  .vfy-live-job-meta strong {
    font-size: 12px;
    color: #f5fbff;
  }

  .vfy-inline-note {
    font-size: 12px;
    color: var(--muted-light);
    line-height: 1.45;
  }

  .vfy-output-inline-grid {
    display: grid;
    gap: 12px;
  }

  @media (max-width: 720px) {
    .vfy-color-grid {
      grid-template-columns: 1fr;
    }

    .vfy-live-job-meta {
      grid-template-columns: 1fr;
    }
  }

/* lang picker — override voicelify theme to keep neutral dropdown */
body.tool-body-voicelify .lang-picker-dropdown{
  background:#1e293b !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 8px 32px rgba(0,0,0,.45) !important;
  filter:none !important;
}
body.tool-body-voicelify .lang-picker-item{
  background:transparent !important;
  color:rgba(255,255,255,.85) !important;
  border:none !important;
  box-shadow:none !important;
  filter:none !important;
  text-decoration:none !important;
}
body.tool-body-voicelify .lang-picker-item:hover{
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
  filter:none !important;
}
body.tool-body-voicelify .lang-picker-item.is-active{
  background:rgba(255,255,255,.1) !important;
  color:#fff !important;
}
/* (custom language picker retiré — selects natifs avec traductions, voir #language / #translate) */


/* =========================================================
   ANON MOBILE QUICK MODE — Discovery visiteurs sur ≤780px
   Cache les step-cards avancés, ne garde que mode + source +
   languages. Bouton "Mode avancé" pour réafficher tout.
========================================================= */

/* Bouton "Mode avancé" injecté dynamiquement par voicelify-tool.js */
.vfy-advanced-toggle{
  display: none;
  margin: 18px auto 0;
  padding: 8px 14px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.vfy-advanced-toggle:hover{
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}

@media (max-width: 780px){
  /* Bouton visible uniquement en mobile + Discovery anon contexte */
  body .vfy-advanced-toggle{ display: block; }

  /* Cache les step-cards non essentielles en mode anon-mobile */
  body.tool-body-voicelify-anon-mobile #audioComposerStepCard,
  body.tool-body-voicelify-anon-mobile #voiceStepCard,
  body.tool-body-voicelify-anon-mobile #outputStepCard,
  body.tool-body-voicelify-anon-mobile #voiceIdentityStepCard{
    display: none !important;
  }

  /* Plus d'espace entre les cards restantes pour un look aéré */
  body.tool-body-voicelify-anon-mobile .vfy-step-card{
    margin-bottom: 14px;
  }
}

/* =========================================================
   ANON MOBILE QUICK MODE — hides additionnels
   Cache : tool dock links, reset flow, sidebar wallet/session/voice-clone,
   nav CTA "Essayer le clonage vocal". Garde : theme picker + live jobs.
========================================================= */
@media (max-width: 780px){
  /* Tool dock : voicelify/imagy/texty/account links (garde le theme picker) */
  body.tool-body-voicelify-anon-mobile .vfy-dock-link{
    display: none !important;
  }

  /* Reset flow button */
  body.tool-body-voicelify-anon-mobile #voicelifyResetFlow{
    display: none !important;
  }

  /* Wallet, Session setup, Voice clones — mais GARDER vfyLiveJobCard */
  body.tool-body-voicelify-anon-mobile .vfy-context-stack > .vfy-context-card:not(#vfyLiveJobCard){
    display: none !important;
  }

  /* Nav CTA "Essayer le clonage vocal" (on est déjà dans voicelify) */
  body.tool-body-voicelify-anon-mobile .nav-cta{
    display: none !important;
  }
}
