.backend-note{color:#b4c4e7;font-size:.85rem;line-height:1.6}.account-link{white-space:nowrap}.account-dialog{width:min(920px,94vw);max-height:90dvh;overflow:auto;background:#101b30;color:#e6edff;border:1px solid #395780;border-radius:18px;padding:24px}.account-dialog::backdrop{background:#050b17c9}.account-dialog input,.account-dialog select,.account-dialog textarea,.admin-shell input,.admin-shell select,.admin-shell textarea{background:#101a2d;color:#edf3ff;border:1px solid #405675;border-radius:8px;padding:10px;max-width:100%;font:inherit}.account-dialog form{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.account-card{padding:16px;border:1px solid #344764;border-radius:12px;margin:12px 0}.account-card small{display:block;overflow-wrap:anywhere}.part-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0}.part-row progress{width:140px}.legal-footer{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;padding:28px}.legal-footer a{color:#9ac1ff}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.admin-shell,.legal-page{max-width:1100px;margin:30px auto;padding:20px;color:#dde7fa}.admin-shell h2,.legal-page h1{font-size:1.6rem}.admin-shell form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.admin-shell label{display:flex;flex-direction:column;gap:6px}.admin-shell section{padding:22px 0;border-bottom:1px solid #344764}.admin-shell table{width:100%;border-collapse:collapse;font-size:.85rem}.admin-shell th,.admin-shell td{padding:10px;text-align:left;border-bottom:1px solid #344764;overflow-wrap:anywhere}.table-scroll{overflow-x:auto}.admin-status{white-space:pre-wrap;color:#ffc98a}.legal-page p,.legal-page li{line-height:1.8}.legal-page a{color:#9ac1ff}#orderQuote{line-height:1.6}#orderChallenge{margin:12px 0}#placeOrder{margin-bottom:12px}#ttsQuote{flex:1}#topupChallenge{width:100%}@media(max-width:650px){.account-dialog{padding:14px}.admin-shell{margin:10px auto;padding:12px}.account-link{font-size:.8rem}.part-row{align-items:flex-start;flex-direction:column}}
/* The existing Google/balance button also opens the account panel. */
#openAccount{display:none!important}
.account-dialog button,.admin-shell button{background:#203b5c;color:#e4efff;border:1px solid #456588;border-radius:8px;padding:10px 16px;min-height:40px}.account-dialog button:hover,.admin-shell button:hover{background:#2b4d75}.account-dialog .primary,.admin-shell .primary{background:#397fc3;border-color:#599ce2}.admin-shell input[type=checkbox],.account-dialog input[type=checkbox]{width:20px;height:20px}.admin-shell h1{font-size:2rem}.admin-shell textarea{min-height:80px}

.tts-order-details{min-width:0;width:100%}.tts-order-details>p:empty{display:none}#normalizedCount{font-size:.85rem;color:#9dccff}.price-calculator{grid-column:1/-1;width:100%;min-width:0;background:#121f31;border:1px solid #2f4763;border-radius:12px;padding:20px}.price-calculator>p{font-size:.85rem;color:#b4c4e7}.price-tier{padding:14px 0;border-top:1px solid #2f4763;display:grid;gap:10px}.price-tier label{font-weight:700}.price-tier input[type=range]{width:100%;margin:0;accent-color:#78b6f5;min-height:32px}.price-tier output{font-size:.9rem;line-height:1.6}.price-tier small{color:#a0b4ce}#ttsQuote{min-height:48px}
@media(max-width:1000px){#tts .tts-order-details{order:5;display:block;position:static;margin:0;padding:0;min-height:0}#tts .tts-order-details .backend-note{position:static;margin:8px 0}#tts .price-calculator{order:7;padding:14px}#tts .tts-order-details #ttsStatus{margin:8px 0}#orderChallenge:empty{display:none}}

#orderQuote pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:9em;overflow:auto;background:#091629;padding:12px;border-radius:8px}#orderQuote:not(:empty){border:1px solid #426787;padding:16px;border-radius:12px}.vietqr-image{display:block;width:min(320px,100%);height:auto;aspect-ratio:1;background:white;padding:8px;box-sizing:border-box}#topupQr p{overflow-wrap:anywhere}#topupQr button{margin:4px}#users input{width:85px}#users textarea{min-width:160px;min-height:60px}

/* v6b login dialog */
.login-dialog{text-align:center;padding:34px 30px 26px;max-width:400px;position:relative}
.login-dialog .login-logo{font-size:30px;margin-bottom:6px}
.login-dialog h2{font-size:21px;margin:12px 0 8px}
.login-dialog .login-lead{color:var(--muted);margin:0 auto 22px;line-height:1.55;max-width:330px}
#googleButton{display:flex;justify-content:center;align-items:center;min-height:46px;color-scheme:light}
#googleButton p{color-scheme:dark;color:#ffb4a8;margin:0}
.login-dialog .login-legal{font-size:12.5px;color:var(--muted);margin:20px 0 0;line-height:1.5}
.login-dialog .login-legal a{color:var(--green)}
.login-dialog form.login-close{position:absolute;top:12px;right:12px;margin:0}
.login-close button{background:transparent;border:0;color:var(--muted);font-size:17px;width:36px;height:36px;border-radius:9px;cursor:pointer;padding:0}
.login-close button:hover{background:#ffffff14;color:var(--ink)}
.login-close button:focus:not(:focus-visible){outline:none;box-shadow:none}
.login-close button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
/* v7 header actions + top-up flow */
.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;margin-left:auto}
header .header-actions .google-login{margin-left:0}
.google-login.signed-in svg{display:none}
.google-login.signed-in span{max-width:14ch;overflow:hidden;text-overflow:ellipsis}
.topup-dialog{border:1px solid var(--line);border-radius:16px;background:#172438;color:var(--ink);width:calc(100% - 32px);max-width:420px;padding:30px 26px 24px;text-align:center;position:relative;max-height:94dvh;overflow:auto}
.topup-dialog::backdrop{background:#030811b3}
.topup-dialog h2{font-size:20px;margin:4px 0 6px}
.topup-alt{font-size:12.5px;color:#9fb3cc;margin:0 auto 18px;max-width:330px;line-height:1.5}
.topup-alt a{color:#8fd0ff}
.topup-form{display:flex;flex-direction:column;align-items:center;gap:10px}
.topup-form label{font-weight:700;font-size:14px}
.topup-form input{width:100%;max-width:260px;text-align:center;font-size:20px;font-weight:700;padding:11px 12px;border-radius:10px;border:1px solid #3b5272;background:#0f1a2b;color:var(--ink)}
.topup-submit{min-width:160px;padding:12px 28px;font-size:15px}
.ts-box{display:flex;justify-content:center;min-height:0}
.ts-box:not(:empty){min-height:66px}
.pay-wait{display:flex;align-items:center;justify-content:center;gap:10px;background:#0f1a2b;border:1px solid #2f4566;border-radius:12px;padding:12px 14px;font-weight:700;margin-bottom:16px}
.pay-wait b{font-variant-numeric:tabular-nums;color:#ffd27a;font-size:16px}
@keyframes pay-spin{to{transform:rotate(360deg)}}
.pay-wait.expired{border-color:#7a3f3f;color:#ffb4a8}.pay-wait.expired .pay-spinner{display:none}
.pay-bank{font-size:19px;font-weight:800;letter-spacing:.3px;margin-bottom:8px}
.pay-info{margin:0 auto 14px;max-width:340px;text-align:left}
.pay-info>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #26384f}
.pay-info dt{color:#9fb3cc;font-size:13px;flex-shrink:0}
.pay-info dd{margin:0;display:flex;align-items:center;gap:6px;font-weight:700;text-align:right;overflow-wrap:anywhere}
.pay-must dt{color:#ffd27a;font-weight:700}.pay-must dd span{color:#ffd27a;font-size:16px;letter-spacing:.5px}
.copy-btn{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border-radius:8px;border:1px solid #3b5272;background:#1d2e46;color:#bcd6f5;flex-shrink:0}
.copy-btn:hover{background:#26405f;color:#fff}.copy-btn.done{color:#7fe0ad;border-color:#2f7a55}
.pay-done{min-width:200px;padding:12px 24px;font-size:15px;margin-top:6px}
.pay-done:disabled{opacity:.45;cursor:not-allowed}
.pay-msg{font-size:13.5px;color:#ffd27a;margin:12px 0 0;min-height:1em}
.pay-error{font-size:13px;color:#ffb4a8;margin:10px 0 0;min-height:0}
.pay-error:empty{display:none}
#topupNew{margin-top:6px;font-size:13px;color:#8fd0ff}
.account-balance{display:flex;align-items:center;justify-content:space-between;gap:12px}
.topup-dialog form.login-close{position:absolute;top:12px;right:12px;margin:0}

/* v9 header + top-up polish */
.topup-open{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 18px;border:0;border-radius:999px;background:linear-gradient(135deg,#3b82f6,#06b6d4);color:#fff;font-size:14px;font-weight:800;letter-spacing:.2px;white-space:nowrap;box-shadow:0 6px 18px #1d8fe04d,inset 0 1px 0 #ffffff40;transition:transform .15s,box-shadow .15s,filter .15s}
.topup-open:hover{filter:brightness(1.08);box-shadow:0 8px 22px #1d8fe066,inset 0 1px 0 #ffffff40}
.topup-open:active{transform:translateY(1px)}
.user-avatar{display:none}
.google-login.signed-in{height:42px;gap:9px;padding:0 16px 0 5px;border-radius:999px;background:#16233a;border:1px solid #34507a;font-size:14px;font-weight:700;color:#eaf3ff}
.google-login.signed-in:hover{background:#1d2e4a;border-color:#5b8ccc}
.google-login.signed-in .user-avatar{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#3b82f6);color:#fff;font-style:normal;font-weight:800;font-size:15px;flex-shrink:0}
@media(max-width:1000px){header .header-actions{grid-column:2;grid-row:1;gap:6px}.topup-open{height:38px;padding:0 13px;font-size:12.5px}.google-login.signed-in{height:38px;padding:0 12px 0 4px;font-size:12.5px}.google-login.signed-in .user-avatar{width:28px;height:28px;font-size:13px}}
@media(max-width:400px){.topup-open{padding:0 10px;font-size:12px;gap:5px}.google-login.signed-in span{max-width:8ch}}
.pay-spinner{width:22px;height:22px;flex-shrink:0;animation:pay-spin 1.6s linear infinite;will-change:transform}
.pay-spinner circle{fill:none;stroke-width:3}
.pay-spinner .track{stroke:#2c4466}
.pay-spinner .arc{stroke:#8fd0ff;stroke-linecap:round;stroke-dasharray:18 39}
.pay-wait.claimed .pay-spinner .arc{stroke:#ffd27a}
.pay-wait.ok{border-color:#2f7a55;color:#9ff0c4}.pay-wait.ok .pay-spinner{animation:none}.pay-wait.ok .pay-spinner .arc{stroke:#3fbf80;stroke-dasharray:none}
.pay-qr{display:block;width:min(270px,72vw);height:auto;aspect-ratio:1;margin:8px auto 16px;background:#fff;border-radius:12px;padding:10px}
.topup-pending{margin:0 0 14px}
.link-btn{background:#2a2410;border:1px solid #6b5a1e;color:#ffd27a;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:700;width:100%}
.link-btn:hover{background:#352d12}

/* v10: calm spinner, big studio-mic button, single price slider */
.pay-wait .pay-spinner{display:none}
.vv-spin{width:22px;height:22px;border-radius:50%;flex-shrink:0;background:conic-gradient(from 0deg,#8fd0ff00 0deg,#8fd0ff33 120deg,#8fd0ff 340deg,#8fd0ff00 360deg);-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 3.5px),#000 calc(100% - 3px));mask:radial-gradient(farthest-side,#0000 calc(100% - 3.5px),#000 calc(100% - 3px));animation:vv-spin 1.3s linear infinite;will-change:transform}
@keyframes vv-spin{to{transform:rotate(360deg)}}
.pay-wait.claimed .vv-spin{background:conic-gradient(from 0deg,#ffd27a00 0deg,#ffd27a33 120deg,#ffd27a 340deg,#ffd27a00 360deg)}
.pay-wait.ok .vv-spin{animation:none;background:#3fbf80}
.pay-wait.expired .vv-spin{display:none}
#payCountdown{display:inline-block;min-width:5.3ch;text-align:left;font-variant-numeric:tabular-nums}
#payCountdown:empty{display:none}
@media (prefers-reduced-motion:reduce){.vv-spin{animation-duration:2.6s}}
.topup-min{font-size:12.5px;color:#9fb3cc;margin-top:-4px}
#ttsQuote.tts-create{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:19px;font-weight:800;letter-spacing:.2px}
#ttsQuote.tts-create .mic-icon{width:26px;height:26px;flex-shrink:0}
@media(max-width:480px){#ttsQuote.tts-create{font-size:17px}#ttsQuote.tts-create .mic-icon{width:23px;height:23px}}
.price-calculator h2{margin:0 0 4px}
.price-calculator .pc-note{font-size:13.5px;color:#b4c4e7;margin:0 0 6px}
.pc-wrap{position:relative;padding:94px 0 40px;margin:0 2px}
.pc-bubble{position:absolute;top:2px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;background:#1b2d47;border:1px solid #3d5f8c;border-radius:12px;padding:7px 14px;white-space:nowrap;box-shadow:0 6px 18px #0006}
.pc-rate{font-size:16px;color:#fff}
.pc-save{font-size:13px;font-weight:800;color:#7fe0ad}.pc-save.zero{color:#9fb3cc}
.pc-tip{position:absolute;bottom:-7px;width:12px;height:12px;background:#1b2d47;border-right:1px solid #3d5f8c;border-bottom:1px solid #3d5f8c;transform:translateX(-50%) rotate(45deg)}
.pc-count{position:absolute;bottom:4px;transform:translateX(-50%);font-weight:800;font-size:14px;color:#cfe6ff;white-space:nowrap}
.pc-range{-webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:999px;margin:0;background:linear-gradient(90deg,#3b82f6 0,#06b6d4 var(--p,100%),#2a3a52 var(--p,100%));outline:none;cursor:pointer}
.pc-range::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-22px;border:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='2' y='1' width='24' height='4' rx='2' fill='%23e6f2ff'/%3E%3Cpath d='M4.5 6.5h19L14 26z' fill='%233b82f6' stroke='%23e6f2ff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;cursor:grab;filter:drop-shadow(0 2px 3px #0008)}
.pc-range::-moz-range-thumb{width:28px;height:28px;border:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='2' y='1' width='24' height='4' rx='2' fill='%23e6f2ff'/%3E%3Cpath d='M4.5 6.5h19L14 26z' fill='%233b82f6' stroke='%23e6f2ff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;cursor:grab;transform:translateY(-11px)}
.pc-range:active::-webkit-slider-thumb{cursor:grabbing}
.pc-range:focus-visible{outline:2px solid #8fd0ff;outline-offset:6px}

/* v11: hourglass, success check, cancel flow */
.pay-wait .vv-spin{display:none}
.vv-hourglass,.vv-check{width:24px;height:24px;flex-shrink:0;color:#8fd0ff}
.vv-check{display:none;color:#3fbf80}
.vv-hourglass{transform-origin:50% 50%;animation:vv-flip 3.2s cubic-bezier(.65,0,.35,1) infinite}
@keyframes vv-flip{0%,72%{transform:rotate(0deg)}100%{transform:rotate(180deg)}}
.pay-wait.claimed .vv-hourglass{color:#ffd27a}
.pay-wait.ok .vv-hourglass,.pay-wait.expired .vv-hourglass{display:none}
.pay-wait.ok .vv-check{display:block}
.pay-wait.ok{font-size:17px;padding:16px 14px;margin-bottom:6px}
@media (prefers-reduced-motion:reduce){.vv-hourglass{animation-duration:6s}}
.pay-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:6px}
.pay-actions .pay-done{margin-top:0}
.pay-cancel{min-width:150px;padding:12px 18px;border-radius:8px;border:1px solid #7a3f3f;background:#2a1618;color:#ffb4a8;font-size:15px;font-weight:700}
.pay-cancel:hover{background:#3a1c1f}
.cancel-ask{background:#0f1a2b;border:1px solid #7a3f3f;border-radius:12px;padding:12px;margin-top:6px}
.cancel-ask p{margin:0 0 10px;font-weight:700}.cancel-ask small{font-weight:500;color:#ffd27a}
.cancel-ask .primary{min-width:150px;padding:12px 18px;font-size:15px;border-radius:8px}

/* v12 header chip: avatar + name + balance */
.google-login .user-text{display:none}
.google-login.signed-in .login-text{display:none}
.google-login.signed-in .user-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.google-login.signed-in{height:46px}
.user-name{font-size:13.5px;font-weight:700;color:#eaf3ff;max-width:13ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-bal{font-size:13px;font-weight:800;color:#7fe0ad;font-variant-numeric:tabular-nums}
@media(max-width:1000px){.google-login.signed-in{height:42px}.user-name{font-size:12px;max-width:9ch}.user-bal{font-size:12px}}

/* v12: calm waiting icon (no rotation), invisible-by-default Turnstile, price slider first */
.vv-hourglass{animation:vv-breathe 2.4s ease-in-out infinite!important;transform:none!important}
@keyframes vv-breathe{0%,100%{opacity:1}50%{opacity:.35}}
.ts-box,.ts-box:not(:empty){min-height:0}
#orderChallenge{margin:0}
#tts .price-calculator{order:-1}
@media(max-width:1000px){#tts .price-calculator{order:0}}
.voice-demo-table td .demo-play{min-width:130px}

/* v13: compact price estimator */
.price-calculator{padding:12px 18px 10px!important}
.price-calculator h2{display:inline;font-size:16px;margin:0 10px 0 0}
.price-calculator .pc-note{display:inline;font-size:12.5px;margin:0}
.pc-wrap{padding:46px 0 24px}
.pc-bubble{flex-direction:row;gap:10px;align-items:baseline;padding:5px 12px;border-radius:10px;top:4px}
.pc-rate{font-size:14px}.pc-save{font-size:12.5px}
.pc-tip{bottom:-6px;width:10px;height:10px}
.pc-count{bottom:0;font-size:12.5px}
@media(max-width:1000px){#tts .price-calculator{padding:10px 12px 8px!important}.pc-bubble{gap:6px;padding:4px 10px}.pc-rate{font-size:13px}.pc-save{font-size:12px}}

/* v14: voice demo strip on top, editor full width */
#tts{grid-template-columns:minmax(0,1fr)!important}
#tts .tts-editor{width:100%;max-width:100%;margin-left:0}
#tts .vd-panel{order:-2;grid-column:1/-1;width:100%;padding:12px 14px 10px;border-radius:12px;overflow:visible}
.vd-head{display:flex;align-items:baseline;gap:12px;margin:0 0 8px}
.vd-head h2{font-size:16px;margin:0;color:#eaf3ff}
.vd-status{font-size:12.5px;color:#8fd0ff;min-height:1em}
.vd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:8px}
.vd-card{display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid #2c4262;border-radius:10px;background:#162539;min-width:0}
.vd-card.sel{border-color:#5aa7ff;box-shadow:0 0 0 1px #5aa7ff66 inset;background:#1a2d47}
.vd-name{all:unset;cursor:pointer;font-weight:800;font-size:14px;color:#eaf3ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vd-name:hover{color:#8fd0ff}.vd-name:focus-visible{outline:2px solid #8fd0ff;outline-offset:2px;border-radius:4px}
.vd-plays{display:flex;flex-wrap:wrap;gap:5px}
.vd-play{display:inline-flex;align-items:center;gap:4px;height:28px;min-width:40px;padding:0 9px;border-radius:999px;border:1px solid #3b5a85;background:#1e3350;color:#cfe6ff;font-size:12.5px;cursor:pointer}
.vd-play b{font-weight:800}
.vd-play:hover{background:#27446a;color:#fff}
.vd-play.on{background:linear-gradient(135deg,#3b82f6,#06b6d4);border-color:transparent;color:#fff}
.vd-soon{font-size:11.5px;color:#7f93ad;line-height:28px}
.vd-swipe{font-size:11.5px;color:#7f93ad;margin:6px 0 0;text-align:right}
@media(max-width:700px){
 #tts .vd-panel{order:-2;padding:10px 10px 8px}
 .vd-grid{grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-template-columns:none;grid-auto-columns:calc((100% - 16px)/3);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:thin}
 .vd-card{scroll-snap-align:start;padding:7px 8px}
 .vd-name{font-size:13px}
 .vd-play{height:26px;min-width:34px;padding:0 7px;font-size:12px}
}
.vd-grid{grid-template-columns:repeat(auto-fill,minmax(166px,1fr))}
.vd-plays{gap:4px}
.vd-play{height:27px;min-width:32px;padding:0 7px;gap:3px}
@media(max-width:700px){.vd-grid{grid-template-columns:none}.vd-play{height:26px;min-width:30px;padding:0 6px}}
@media(min-width:701px){.vd-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:7px}.vd-card{flex-direction:row;align-items:center;flex-wrap:wrap;gap:5px 8px;padding:7px 9px}.vd-name{min-width:2.6em;max-width:100%}}

/* v14b: big round play buttons, demo number as a faint watermark */
.vd-play{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;min-width:0;padding:0;gap:0;border-radius:50%;border:1.5px solid #4a7bbf;background:radial-gradient(circle at 35% 30%,#2f5d96,#1d3a61);color:#fff;box-shadow:0 3px 10px #0007;transition:transform .12s,filter .12s}
.vd-play:hover{filter:brightness(1.18);transform:scale(1.06)}
.vd-play .vd-ic{position:relative;z-index:1;width:20px;height:20px;filter:drop-shadow(0 1px 1px #0008)}
.vd-play b{position:absolute;inset:0;display:grid;place-items:center;font-size:25px;font-weight:900;color:#ffffff2e;line-height:1}
.vd-play.on{background:linear-gradient(135deg,#3b82f6,#06b6d4);border-color:#8fd0ff}
.vd-plays{gap:7px;align-items:center}
@media(min-width:701px){.vd-grid{grid-template-columns:repeat(auto-fill,minmax(232px,1fr))}.vd-card{padding:8px 10px}}
@media(max-width:700px){.vd-play{width:33px;height:33px;padding:0}.vd-play .vd-ic{width:17px;height:17px}.vd-play b{font-size:21px}.vd-plays{gap:5px}}
.vd-play{margin-bottom:13px}
.vd-play b{inset:auto 0 -16px 0;display:block;text-align:center;font-size:11px;font-weight:700;color:#7f97b6;letter-spacing:.3px}
.vd-play.on b{color:#8fd0ff}
.vd-card{align-items:flex-start}
@media(min-width:701px){.vd-card{align-items:center}.vd-name{align-self:flex-start;margin-top:10px}}
@media(max-width:700px){.vd-play b{font-size:10.5px;bottom:-15px}}
@media(min-width:701px){.vd-card{align-items:flex-start}}
@media(max-width:700px){.vd-card{padding:7px 6px}.vd-play{width:29px;height:29px}.vd-play .vd-ic{width:15px;height:15px}.vd-plays{gap:4px}}
@media(max-width:700px){#tts .vd-panel{padding:10px 8px 8px}.vd-card{padding:7px 5px}.vd-play{width:28px;height:28px;border-width:1px}.vd-play .vd-ic{width:14px;height:14px}.vd-plays{gap:3px}}

/* v14c: glossy colour-coded play buttons (same colour per demo slot for every voice) */
.vd-play{--c1:#5cc8ff;--c2:#1d6fe0;--glow:#2f8cff;margin-bottom:0;width:42px;height:42px;border:0;overflow:hidden;
 background:radial-gradient(120% 120% at 30% 20%,var(--c1) 0%,var(--c2) 70%);
 box-shadow:0 4px 12px color-mix(in srgb,var(--glow) 45%,transparent),inset 0 -3px 6px #0004,inset 0 1px 1px #fff8}
.vd-play::before{content:"";position:absolute;left:14%;right:14%;top:6%;height:44%;border-radius:50% 50% 45% 45%/60% 60% 40% 40%;background:linear-gradient(#ffffffb0,#ffffff10);pointer-events:none}
.vd-play::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px #ffffff40;pointer-events:none}
.vd-play .vd-ic{width:19px;height:19px;margin-left:2px;color:#fff;filter:drop-shadow(0 1px 2px #0007)}
.vd-play b{display:none}
.vd-play:hover{transform:translateY(-1px) scale(1.07);filter:brightness(1.1) saturate(1.1)}
.vd-play:active{transform:scale(.96)}
.vd-c1{--c1:#7dd3fc;--c2:#2563eb;--glow:#3b82f6}
.vd-c2{--c1:#d8b4fe;--c2:#7c3aed;--glow:#8b5cf6}
.vd-c3{--c1:#fde68a;--c2:#ea580c;--glow:#f59e0b}
.vd-c4{--c1:#86efac;--c2:#059669;--glow:#10b981}
.vd-play.on{background:radial-gradient(120% 120% at 30% 20%,var(--c1) 0%,var(--c2) 70%);animation:vd-pulse 1.6s ease-in-out infinite}
.vd-play.on .vd-ic{margin-left:0}
@keyframes vd-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--glow) 60%,transparent),inset 0 -3px 6px #0004}50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--glow) 0%,transparent),inset 0 -3px 6px #0004}}
.vd-plays{gap:8px}
@media(min-width:701px){.vd-name{margin-top:11px}}
@media(max-width:700px){.vd-play{width:28px;height:28px}.vd-play .vd-ic{width:14px;height:14px;margin-left:1px}.vd-plays{gap:3px}}
.vd-play:hover,.vd-play:focus{background:radial-gradient(120% 120% at 30% 20%,var(--c1) 0%,var(--c2) 70%);color:#fff}
.order-dialog h2{margin:4px 0 12px}
.order-sum{max-width:320px}.order-sum dd{font-size:17px}
.account-history{display:inline-block;margin:6px 0 10px;color:#8fd0ff;font-weight:700}
.order-sum dd{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.order-play{width:34px;height:34px;flex-shrink:0}.order-play .vd-ic{width:16px;height:16px}
.rp-note{font-size:13px;color:#9fb3cc}
.rp-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:8px 0 12px}
.rp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;margin-bottom:12px}
.rp-card{background:#162539;border:1px solid #2c4262;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.rp-card small{color:#9fb3cc;font-size:12px}.rp-card b{font-size:17px;color:#eaf3ff}
/* v17: Play cạnh tên giọng luôn hiện; giọng chưa có demo thì mờ đi */
.order-play.no-demo{opacity:.38;filter:grayscale(.7);cursor:help}
.order-play.no-demo:hover,.order-play.no-demo:focus-visible{transform:none}
/* v17: chú thích sau tab Convert (giữ chữ thường, nhẹ hơn) */
.categories button .cat-note{text-transform:none;font-weight:600;letter-spacing:0;font-size:.86em;color:#9fc4ec;opacity:.9}
#convertBody{padding-top:22px}
@media(max-width:760px){.categories button{flex-wrap:wrap}.categories button .cat-note{flex-basis:100%;font-size:.82em}}
#converter .workspace{margin-top:28px}
/* v24: ô xác minh Cloudflare ngay dưới nút Tạo Audio; nháy khi bấm Tạo mà chưa tick */
.tts-create-col{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.tts-create-col .tts-create{width:100%}
#orderChallenge.order-ts{display:flex;justify-content:center;border-radius:10px;margin:0}
#orderChallenge.order-ts:empty{display:none}
@keyframes vvTsFlash{0%,100%{box-shadow:0 0 0 0 rgba(255,196,77,0)}20%,60%{box-shadow:0 0 0 4px rgba(255,196,77,.95),0 0 22px rgba(255,196,77,.6)}40%,80%{box-shadow:0 0 0 2px rgba(255,196,77,.4)}}
#orderChallenge.ts-flash{animation:vvTsFlash 1.3s ease-in-out}
.backend-note:empty,#ttsStatus:empty{display:none}
/* v24: chú thích tab Convert to, rõ hơn */
.categories button .cat-note{font-size:1em;font-weight:800;color:#ffd98a;opacity:1}
.tts-controls{align-items:flex-start}
.tts-create-col{margin-top:29px}
#orderChallenge.order-ts{width:fit-content;max-width:100%;align-self:center}
@media(max-width:600px){.tts-controls{flex-wrap:wrap}.tts-controls .tts-voice{flex:0 0 100%;max-width:100%}.tts-controls .tts-voice select{width:100%}.tts-create-col{margin-top:0;flex-basis:100%}}
@media(max-width:600px){.tts-controls>.tts-voice{width:100%!important;flex:0 0 100%!important;max-width:none!important}}

/* v25: nhắc tick Cloudflare bằng JS (vẫn nháy khi Windows tắt hiệu ứng chuyển động) */
#orderChallenge.ts-need{outline:2px solid rgba(255,196,77,.45);outline-offset:5px;border-radius:12px}
#orderChallenge.ts-need.ts-on{outline:3px solid #ffc44d;box-shadow:0 0 0 6px rgba(255,196,77,.18),0 0 24px rgba(255,196,77,.55)}
.ts-hint{margin:2px 0 0;text-align:center;font-weight:800;font-size:14.5px;color:#ffc44d}
/* v25: hai mốc giá đầu-cuối dưới thanh trượt */
.pc-ends{display:flex;justify-content:space-between;gap:12px;margin-top:6px;font-size:12.5px;font-weight:700;color:#9fc4ec}
.pc-save.zero:empty{display:none}
.pc-ends{justify-content:flex-end}
