/* Voudy V13.1 — scoped layout, Aurora preserved. */

#v12-root .v131-panel{
 display:block;
 min-width:0;
 margin:28px 0 34px;
 padding:clamp(22px,3.2vw,42px);
 border:1px solid var(--aurora-line,rgba(125,130,190,.22));
 border-radius:28px;
 background:rgba(255,255,255,.17);
 box-shadow:0 16px 40px rgba(41,42,85,.07);
}

#v12-pane-live.v131-live-installed>.v12-glass:not(#v131-live){
 display:none!important;
}

#v12-pane-live.v131-live-installed #v13-live-console,
#v12-pane-live.v131-live-installed #vl-console{
 display:none!important;
}

#v12-root .v131-panel *{
 box-sizing:border-box;
 min-width:0;
}

#v12-root .v131-top{
 display:flex;
 align-items:start;
 justify-content:space-between;
 gap:20px;
 margin-bottom:23px;
}

#v12-root .v131-eyebrow{
 font-size:10px;
 letter-spacing:.2em;
 color:var(--aurora-violet,#8164e5);
 font-weight:800;
}

#v12-root .v131-top h3{
 font-size:clamp(24px,2.6vw,35px);
 line-height:1.18;
 letter-spacing:-.8px;
 margin:8px 0 12px;
}

#v12-root .v131-top p{
 max-width:760px;
 font-size:15px;
 line-height:1.7;
 margin:0;
 color:var(--aurora-muted,#5c6178);
}

#v12-root .v131-status-pill{
 display:inline-block;
 border-radius:999px;
 padding:10px 16px;
 border:1px solid var(--aurora-line);
 letter-spacing:.09em;
 font-size:11px;
 font-weight:750;
 white-space:nowrap;
}

#v12-root .v131-notice{
 margin:20px 0;
 padding:17px 20px;
 background:rgba(117,130,188,.065);
 border:1px solid var(--aurora-line);
 border-radius:16px;
 line-height:1.7;
 font-size:13px;
 overflow-wrap:anywhere;
 color:var(--aurora-text);
}

#v12-root .v131-consent{
 display:flex;
 align-items:flex-start;
 gap:13px;
 margin:20px 0!important;
 font-size:14px;
 line-height:1.6;
 font-weight:550;
 max-width:990px;
}

#v12-root .v131-consent input{
 width:19px!important;
 height:19px!important;
 min-width:19px!important;
 min-height:19px!important;
 margin:2px 0 0!important;
 accent-color:#866bea;
}

#v12-root .v131-toolbar{
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:12px;
 margin:22px 0;
}

#v12-root .v131-toolbar button{
 min-height:46px;
 border-radius:13px;
 padding:10px 16px;
 cursor:pointer;
 border:1px solid var(--aurora-line);
 color:var(--aurora-text);
 background:rgba(135,137,195,.12);
 font-weight:650;
 font-size:13px;
}

#v12-root .v131-toolbar button.v131-primary{
 background:linear-gradient(115deg,#6d61e9,#b543b7);
 color:#fff;
 box-shadow:0 9px 22px rgba(83,74,182,.2);
}

#v12-root .v131-toolbar button:hover:not(:disabled){
 transform:translateY(-1px);
 box-shadow:0 10px 25px rgba(90,82,155,.2);
}

#v12-root .v131-toolbar button:disabled{
 opacity:.48;
 cursor:not-allowed;
}

#v12-root .v131-info-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:18px;
 margin:24px 0;
}

#v12-root .v131-control{
 padding:22px;
 border-radius:19px;
 background:rgba(255,255,255,.1);
 border:1px solid var(--aurora-line);
}

#v12-root .v131-control strong,
#v12-root .v131-control label{
 display:block;
 font-size:13px;
 font-weight:750;
 margin:0 0 13px;
 line-height:1.5;
}

#v12-root .v131-control p{
 font-size:17px;
 font-weight:750;
 line-height:1.45;
 overflow-wrap:anywhere;
 margin:0;
}

#v12-root .v131-control select{
 width:100%;
 max-width:100%;
 padding:10px 13px;
 min-height:48px;
 border-radius:11px;
 font-size:15px;
}

#v12-root .v131-control small{
 display:block;
 line-height:1.5;
 font-size:11px;
 color:var(--aurora-muted);
 margin-top:10px;
}

#v12-root .v131-meter{
 display:flex;
 justify-content:space-between;
 gap:12px;
 align-items:center;
 flex-wrap:wrap;
 font-size:12px;
 margin:17px 0 23px;
 color:var(--aurora-muted);
}

#v12-root .v131-two{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:18px;
}

#v12-root .v131-result{
 padding:23px;
 border:1px solid var(--aurora-line);
 border-radius:20px;
 background:rgba(255,255,255,.10);
}

#v12-root .v131-result h4{
 font-size:16px;
 line-height:1.4;
 margin:0 0 15px;
}

#v12-root .v131-scroll{
 min-height:220px;
 max-height:480px;
 overflow:auto;
 padding:17px;
 border-radius:15px;
 border:1px solid var(--aurora-line);
 background:rgba(255,255,255,.065);
 white-space:pre-wrap;
 overflow-wrap:anywhere;
 line-height:1.75;
 font-size:14px;
}

#v12-root .v131-scroll p{
 margin:0 0 12px;
}

#v12-root .v131-scroll:empty::before{
 content:'Recognised speech will appear after the first audio segment.';
 font-size:13px;
 color:var(--aurora-muted);
}

#v12-root #v131-translated:empty::before{
 content:'Draft translations will appear after recognised speech is processed.';
}

#v12-root .v131-transcript{
 min-height:150px;
 max-height:680px;
 overflow:auto;
 padding:22px;
 border-radius:18px;
 border:1px solid var(--aurora-line);
 background:rgba(255,255,255,.08);
 font-size:15px;
 line-height:1.75;
}

#v12-root .v131-transcript:empty::before{
 content:'Your completed transcript will appear here.';
 color:var(--aurora-muted);
}

#v12-root .v131-line{
 display:grid;
 grid-template-columns:100px minmax(0,1fr);
 gap:16px;
 border-bottom:1px solid var(--aurora-line);
 margin:0;
 padding:13px 0;
 overflow-wrap:anywhere;
}

#v12-root .v131-line:last-child{
 border-bottom:0;
}

#v12-root .v131-time{
 font-variant-numeric:tabular-nums;
 font-size:12px;
 font-weight:700;
 color:var(--aurora-violet);
}

/* More space for the existing upload form. */

#v12-pane-upload #v12-upload-slot{
 margin:30px 0 36px;
}

#v12-pane-upload #v11-media{
 border-radius:26px!important;
 padding:clamp(26px,3.1vw,46px)!important;
 margin:18px 0 30px!important;
 overflow:hidden;
}

#v12-pane-upload #v11-media h2,
#v12-pane-upload #v11-media h3{
 margin:0 0 24px!important;
 line-height:1.35;
}

#v12-pane-upload #v11-media p{
 line-height:1.8;
 margin:14px 0!important;
}

#v12-pane-upload #v11-media label{
 display:block;
 margin:23px 0 10px!important;
 font-weight:700;
 line-height:1.5;
}

#v12-pane-upload #v11-media select{
 display:block;
 width:100%;
 min-height:48px;
 border-radius:12px;
 padding:10px 12px!important;
}

#v12-pane-upload #v11-media input[type=file]{
 width:100%;
 max-width:100%;
 min-height:100px;
 margin:10px 0 22px!important;
 padding:20px!important;
 border-radius:16px;
}

#v12-pane-upload #v11-media button{
 min-height:45px;
 margin:9px 8px 9px 0!important;
 border-radius:13px;
}

#v12-pane-upload #v13-asr-progress{
 margin:25px 0 35px;
}

#v12-root #v13-workbench{
 margin-top:35px;
 padding:clamp(26px,3.3vw,44px)!important;
}

#v12-root .v13-language-grid{
 gap:12px;
 max-height:400px;
}

#v12-root #v13-workbench .v13-editor textarea{
 min-height:210px;
 font-size:15px;
 line-height:1.75;
}

@media(max-width:850px){
 #v12-root .v131-info-grid,
 #v12-root .v131-two{
  grid-template-columns:minmax(0,1fr);
 }
 #v12-root .v131-line{
  grid-template-columns:1fr;
  gap:4px;
 }
}

@media(max-width:600px){
 #v12-root .v131-panel{
  padding:18px;
  margin:20px 0;
  border-radius:22px;
 }
 #v12-root .v131-top{
  display:block;
 }
 #v12-root .v131-control,
 #v12-root .v131-result{
  padding:17px;
 }
 #v12-root .v131-scroll{
  min-height:160px;
 }
 #v12-pane-upload #v11-media{
  padding:18px!important;
 }
}

@media(prefers-reduced-motion:reduce){
 #v12-root .v131-toolbar button{
  transition:none!important;
 }
}

/* Independent 48-language workspace. */

#v12-pane-language.v131-language-installed>.v12-glass:not(#v131-languages),
#v12-pane-language.v131-language-installed>#v13-workbench{
 display:none!important;
}

#v12-root #v131-languages>label{
 display:block;
 margin:20px 0 10px;
 font-size:14px;
 font-weight:750;
}

#v12-root #v131-editor{
 width:100%;
 min-height:210px;
 max-height:460px;
 resize:vertical;
 padding:19px;
 border-radius:16px;
 line-height:1.8;
 font-size:15px;
 border:1px solid var(--aurora-line);
 color:var(--aurora-text);
 background:rgba(255,255,255,.13);
}

#v12-root .v131-language-grid{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:11px;
 max-height:360px;
 overflow-y:auto;
 padding:8px 1px;
}

#v12-root .v131-language-choice{
 display:flex;
 align-items:center;
 gap:9px;
 margin:0!important;
 padding:13px;
 border:1px solid var(--aurora-line);
 border-radius:13px;
 background:rgba(121,134,188,.08);
 font-size:12px;
 cursor:pointer;
}

#v12-root .v131-language-choice input{
 width:17px;
 height:17px;
 min-width:17px;
 min-height:17px;
 accent-color:#8368ec;
 margin:0;
}

#v12-root .v131-language-choice span{
 flex:1;
 font-weight:700;
 overflow-wrap:anywhere;
}

#v12-root .v131-language-choice small{
 font-size:9px;
 color:var(--aurora-muted);
}

#v12-root .v131-progress{
 padding:22px;
 margin:25px 0;
 border:1px solid var(--aurora-line);
 border-radius:16px;
 background:rgba(129,142,196,.07);
 display:flex;
 flex-direction:column;
 gap:12px;
}

#v12-root .v131-progress strong{
 font-size:14px;
}

#v12-root .v131-progress small{
 font-size:12px;
 color:var(--aurora-muted);
}

#v12-root .v131-progress progress{
 width:100%;
 height:14px;
 accent-color:#8b67e3;
}

#v12-root .v131-translation-cards{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:15px;
}

#v12-root .v131-translation-result{
 padding:21px;
 min-width:0;
 border-radius:17px;
 border:1px solid var(--aurora-line);
 background:rgba(255,255,255,.1);
 overflow-wrap:anywhere;
 line-height:1.7;
}

#v12-root .v131-translation-head{
 display:flex;
 justify-content:space-between;
 gap:12px;
 align-items:center;
 margin-bottom:12px;
}

#v12-root .v131-translation-head strong{
 font-size:15px;
}

#v12-root .v131-translation-head span{
 font-size:11px;
 color:var(--aurora-violet);
 font-weight:750;
}

#v12-root .v131-translation-result button{
 min-height:36px;
 border-radius:9px;
 border:1px solid var(--aurora-line);
 padding:5px 12px;
 background:rgba(133,122,205,.1);
 color:var(--aurora-text);
}

#v12-root .v131-translation-text{
 white-space:pre-wrap;
 margin:8px 0 15px;
 font-size:14px;
}

@media(max-width:1100px){
 #v12-root .v131-language-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
}

@media(max-width:750px){
 #v12-root .v131-language-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 #v12-root .v131-translation-cards{
  grid-template-columns:1fr;
 }
}

@media(max-width:390px){
 #v12-root .v131-language-grid{
  grid-template-columns:1fr;
 }
}
