/* VoiceIndex AI - Core Styling (Standalone Tailwind-like Utilities) */



/* 1. Base Reset */

*, ::before, ::after {

    box-sizing: border-box;

    border-width: 0;

    border-style: solid;

    border-color: #e5e7eb;

}



html {

    line-height: 1.5;

    -webkit-text-size-adjust: 100%;

    -moz-tab-size: 4;

    tab-size: 4;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

}



body {

    margin: 0;

    overflow-x: hidden;

    line-height: inherit;

    background:

        radial-gradient(circle at top left, rgba(79, 70, 229, 0.10), transparent 28%),

        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 22%),

        linear-gradient(180deg, #fbfaf7 0%, #f5f7fb 100%);

    color: #0f172a; /* text-slate-900 */

    min-height: 100vh;

}



/* 2. Utility Framework */



/* Display & Flex */

.flex { display: flex; }

.btn-ghost { background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important; outline: none !important; }

.flex-col { flex-direction: column; }

.flex-row { flex-direction: row; }

.flex-1 { flex: 1 1 0%; }

.flex-wrap { flex-wrap: wrap; }

.inline-flex { display: inline-flex; }

.items-center { align-items: center; }

.items-start { align-items: flex-start; }

.items-end { align-items: flex-end; }

.justify-between { justify-content: space-between; }

.justify-center { justify-content: center; }

.justify-end { justify-content: flex-end; }

.self-end { align-self: flex-end; }

.shrink-0 { flex-shrink: 0; }

.hidden { display: none; }

.block { display: block; }

.whitespace-nowrap { white-space: nowrap; }



/* Spacing (Gap, Padding, Margin) */

.gap-1 { gap: 0.25rem; }

.gap-1\.5 { gap: 0.375rem; }

.gap-2 { gap: 0.5rem; }

.gap-3 { gap: 0.75rem; }

.gap-4 { gap: 1rem; }

.gap-6 { gap: 1.5rem; }

.gap-8 { gap: 2rem; }



.p-1 { padding: 0.25rem; }

.p-1\.5 { padding: 0.375rem; }

.p-2 { padding: 0.5rem; }

.p-3 { padding: 0.75rem; }

.p-4 { padding: 1rem; }

.p-5 { padding: 1.25rem; }

.p-6 { padding: 1.5rem; }

.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }

.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }

.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.py-12 { padding-top: 3rem; padding-bottom: 3rem; }



.m-1 { margin: 0.25rem; }

.mb-1 { margin-bottom: 0.25rem; }

.mb-2 { margin-bottom: 0.5rem; }

.mb-4 { margin-bottom: 1rem; }

.mb-6 { margin-bottom: 1.5rem; }

.mb-8 { margin-bottom: 2rem; }

.mt-0\.5 { margin-top: 0.125rem; }

.mt-2 { margin-top: 0.5rem; }

.mt-3 { margin-top: 0.75rem; }

.mt-4 { margin-top: 1rem; }

.mt-6 { margin-top: 1.5rem; }

.mt-8 { margin-top: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }

.ml-2 { margin-left: 0.5rem; }

.m-0 { margin: 0; }



/* Sizing */

.w-full { width: 100%; }

.w-fit { width: fit-content; }

.w-3 { width: 0.75rem; }

.w-3\.5 { width: 0.875rem; }

.w-4 { width: 1rem; }

.w-6 { width: 1.5rem; }

.w-8 { width: 2rem; }

.w-12 { width: 3rem; }

.w-px { width: 1px; }

.h-1\.5 { height: 0.375rem; }

.h-2 { height: 0.5rem; }

.h-3 { height: 0.75rem; }

.h-3\.5 { height: 0.875rem; }

.h-4 { height: 1rem; }

.h-5 { height: 1.25rem; }

.h-6 { height: 1.5rem; }

.h-8 { height: 2rem; }

.h-9 { height: 2.25rem; }

.h-10 { height: 2.5rem; }

.h-12 { height: 3rem; }

.h-16 { height: 4rem; }

.h-64 { height: 16rem; }

.h-full { height: 100%; }

.min-h-\[360px\] { min-height: 360px; }

.min-h-\[400px\] { min-height: 400px; }

.max-w-3xl { max-width: 48rem; }

.max-w-4xl { max-width: 56rem; }

.max-w-5xl { max-width: 72rem; }

.max-w-sm { max-width: 24rem; }

.min-h-screen { min-height: 100vh; }

.resize-y { resize: vertical; }



/* Colors - Backgrounds */

.bg-white { background-color: #ffffff; }

.bg-transparent { background-color: transparent; }

.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }

.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }

.bg-slate-50 { background-color: #f8fafc; }

.bg-slate-50\/50 { background-color: rgba(248, 250, 252, 0.5); }

.bg-slate-100 { background-color: #f1f5f9; }

.bg-slate-200 { background-color: #e2e8f0; }

.bg-slate-900 { background-color: #0f172a; }

.bg-slate-900\/40 { background-color: rgba(15, 23, 42, 0.4); }

.bg-indigo-50 { background-color: #eef2ff; }

.bg-indigo-50\/50 { background-color: rgba(238, 242, 255, 0.5); }

.bg-indigo-600 { background-color: #4f46e5; }

.bg-emerald-50 { background-color: #ecfdf5; }

.bg-emerald-500 { background-color: #10b981; }

.bg-rose-50 { background-color: #fff1f2; }

.bg-green-500 { background-color: #22c55e; }

.bg-red-50 { background-color: #fef2f2; }



/* Violet */

.bg-violet-50 { background-color: #f5f3ff; }

.bg-violet-100 { background-color: #ede9fe; }

.bg-violet-400 { background-color: #a78bfa; }

.bg-violet-500 { background-color: #8b5cf6; }

.bg-violet-600 { background-color: #7c3aed; }

.bg-violet-50\/60 { background-color: rgba(245, 243, 255, 0.6); }

.text-violet-600 { color: #7c3aed; }

.text-violet-500 { color: #8b5cf6; }

.border-violet-100 { border-color: #ede9fe; }

.border-violet-200 { border-color: #ddd6fe; }

.border-violet-300 { border-color: #c4b5fd; }

.border-violet-500 { border-color: #8b5cf6; }

.shadow-violet-200 { box-shadow: 0 4px 6px -1px rgba(167, 139, 250, 0.4); }

.hover\:bg-violet-50:hover { background-color: #f5f3ff; }

.hover\:bg-violet-500:hover { background-color: #8b5cf6; }

.hover\:bg-violet-700:hover { background-color: #6d28d9; }

.hover\:border-violet-300:hover { border-color: #c4b5fd; }

.hover\:text-violet-600:hover { color: #7c3aed; }

.focus\:border-violet-500:focus { border-color: #8b5cf6; }

.focus-within\:border-violet-500:focus-within { border-color: #8b5cf6; }

.focus-within\:ring-1:focus-within { box-shadow: 0 0 0 1px #8b5cf6; }

.focus\:ring-1:focus { box-shadow: 0 0 0 1px #8b5cf6; }





/* Colors - Text */

.text-white { color: #ffffff; }

.text-slate-400 { color: #94a3b8; }

.text-slate-500 { color: #64748b; }

.text-slate-600 { color: #475569; }

.text-slate-700 { color: #334155; }

.text-slate-800 { color: #1e293b; }

.text-slate-900 { color: #0f172a; }

.text-indigo-600 { color: #4f46e5; }

.text-indigo-500 { color: #6366f1; }

.text-emerald-400 { color: #34d399; }

.text-emerald-600 { color: #059669; }

.text-rose-500 { color: #f43f5e; }

.text-rose-600 { color: #e11d48; }

.text-red-500 { color: #ef4444; }



/* Typography */

.text-xs { font-size: 0.75rem; line-height: 1rem; }

.text-\[10px\] { font-size: 10px; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.font-bold { font-weight: 700; }

.font-extrabold { font-weight: 800; }

.font-medium { font-weight: 500; }

.font-black { font-weight: 900; }

.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.italic { font-style: italic; }

.uppercase { text-transform: uppercase; }

.tracking-wider { letter-spacing: 0.05em; }

.text-center { text-align: center; }

.text-right { text-align: right; }

.underline { text-decoration: underline; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.leading-relaxed { line-height: 1.625; }



/* Borders & Radius */

.border { border-width: 1px; }

.border-2 { border-width: 2px; }

.border-b { border-bottom-width: 1px; }

.border-dashed { border-style: dashed; }

.border-slate-100 { border-color: #f1f5f9; }

.border-slate-200 { border-color: #e2e8f0; }

.border-indigo-100 { border-color: #e0e7ff; }

.border-indigo-400 { border-color: #818cf8; }

.border-rose-100 { border-color: #ffe4e6; }

.border-emerald-200 { border-color: #a7f3d0; }

.rounded { border-radius: 0.25rem; }

.rounded-md { border-radius: 0.375rem; }

.rounded-lg { border-radius: 0.5rem; }

.rounded-xl { border-radius: 0.75rem; }

.rounded-2xl { border-radius: 1rem; }

.rounded-3xl { border-radius: 1.5rem; }

.rounded-full { border-radius: 9999px; }

.rounded-bl-2xl { border-bottom-left-radius: 1rem; }

.rounded-tr-3xl { border-top-right-radius: 1.5rem; }



/* Peer State (Custom) */

.peer:checked ~ .peer-checked\:border-indigo-600 { border-color: #4f46e5; }

.peer:checked ~ .peer-checked\:bg-indigo-50 { background-color: #eef2ff; }



/* Layout Effects */

.relative { position: relative; }

.absolute { position: absolute; }

.sticky { position: sticky; }

.top-0 { top: 0; }

.top-2\.5 { top: 0.625rem; }

.top-16 { top: 4rem; }

.left-2\.5 { left: 0.625rem; }

.top-1\/2 { top: 50%; }

.-translate-y-1\/2 { transform: translateY(-50%); }

.bottom-4 { bottom: 1rem; }

.right-4 { right: 1rem; }

.z-50 { z-index: 50; }

.z-\[100\] { z-index: 100; }

.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }



.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }



.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

.shadow-indigo-200 { box-shadow: 0 4px 6px -1px rgba(129, 140, 248, 0.4); }



/* Transitions & Interactivity */

.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }



.hover\:bg-indigo-700:hover { background-color: #4338ca; }

.hover\:bg-indigo-50:hover { background-color: #eef2ff; }

.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }

.hover\:bg-slate-50:hover { background-color: #f8fafc; }

.hover\:bg-slate-100:hover { background-color: #f1f5f9; }

.hover\:bg-slate-800:hover { background-color: #1e293b; }

.hover\:text-indigo-600:hover { color: #4f46e5; }

.hover\:text-slate-600:hover { color: #475569; }

.hover\:border-indigo-200:hover { border-color: #c7d2fe; }

.hover\:border-indigo-300:hover { border-color: #a5b4fc; }

.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }



.focus\:ring-4:focus { box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

.focus\:ring-indigo-100:focus { --ring-color: rgba(79, 70, 229, 0.1); }

.focus\:border-indigo-500:focus { border-color: #6366f1; }

.focus\:ring-0:focus { box-shadow: none; }

.outline-none { outline: 2px solid transparent; outline-offset: 2px; }



button:focus-visible,

select:focus-visible,

textarea:focus-visible,

input[type="number"]:focus-visible,

input[type="checkbox"]:focus-visible,

audio:focus-visible {

    outline: none;

    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10) !important;

}



.active\:scale-\[0\.99\]:active { transform: scale(0.99); }

.active\:scale-\[0\.98\]:active { transform: scale(0.98); }

.active\:scale-95:active { transform: scale(0.95); }

.active\:bg-indigo-100:active { background-color: #e0e7ff; }

.active\:bg-indigo-800:active { background-color: #3730a3; }



button:disabled {

    background: linear-gradient(180deg, rgba(226, 232, 240, 0.92), rgba(203, 213, 225, 0.96)) !important;

    color: #94a3b8 !important; /* text-slate-400 */

    border-color: rgba(203, 213, 225, 0.96) !important;

    cursor: not-allowed !important;

    box-shadow: none !important;

    transform: none !important;

    opacity: 0.88;

}



.cursor-pointer { cursor: pointer; }

.pointer-events-none { pointer-events: none; }

.select-none { user-select: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }



.opacity-0 { opacity: 0; }

.opacity-50 { opacity: 0.5; }

.opacity-100 { opacity: 1; }

.scale-95 { transform: scale(0.95); }

.scale-100 { transform: scale(1); }



.group:hover .group-hover\:opacity-100 { opacity: 1; }



/* 3. Custom Project Styles (Original Styles) */

.tab-active {

    background-color: #4f46e5 !important;

    color: white !important;

    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);

}



.tab-inactive {

    color: #64748b !important;

}



[contenteditable="true"] {

    transition: all 0.2s;

    border: 1px solid transparent;

    padding: 0.2rem 0.35rem;

    margin: -0.2rem -0.35rem;

    border-radius: 0.55rem;

    -webkit-user-modify: read-write-plaintext-only;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

}



[contenteditable="true"]:hover {

    background-color: rgba(248, 250, 252, 0.92);

    cursor: text;

}



[contenteditable="true"]:focus {

    background-color: white;

    border-color: rgba(199, 210, 254, 0.88);

    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08), 0 10px 24px rgba(15, 23, 42, 0.06);

    outline: none;

}



.tab-inactive:hover {

    background-color: #f1f5f9 !important;

}



.progress-bar-fill {

    height: 100%;

    background-color: #4f46e5;

    border-radius: 9999px;

    transition: width 0.3s ease;

}



.speaker-1 {

    background-color: white;

    border-left: 4px solid #4f46e5;

    padding: 1rem;

    border-radius: 0 1rem 1rem 0;

    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);

}



.speaker-2 {

    background-color: #f8fafc;

    border-left: 4px solid #10b981;

    padding: 1rem;

    border-radius: 0 1rem 1rem 0;

    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);

}



/* Animations */

@keyframes warning-pulse {

    0% { transform: scale(1.1); }

    50% { transform: scale(1.2); color: #be123c; }

    100% { transform: scale(1.1); }

}

.warning-pulse {

    animation: warning-pulse 0.6s infinite ease-in-out;

}



/* Form resets */

input[type="range"] {

    -webkit-appearance: none;

    appearance: none;

    background: transparent;

    cursor: pointer;

}

input[type="range"]::-webkit-slider-runnable-track {

    background: #e2e8f0;

    height: 0.375rem;

    border-radius: 0.5rem;

}

input[type="range"]::-webkit-slider-thumb {

    -webkit-appearance: none;

    appearance: none;

    margin-top: -6px;

    background-color: #4f46e5;

    height: 1rem;

    width: 1rem;

    border-radius: 50%;

}



/* Grid helper */

.grid { display: grid; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }

.grid-flow-col { grid-auto-flow: column; }

.grid-auto-cols-max { grid-auto-columns: max-content; }

.touch-scroll { -webkit-overflow-scrolling: touch; }



@media (min-width: 768px) {

    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

}



@media (min-width: 1024px) {

    .lg\:flex-row { flex-direction: row; }

    .lg\:items-center { align-items: center; }

}



/* Custom Added for Footer and Modal */

.z-\[200\] { z-index: 200; }

.gap-2\.5 { gap: 0.625rem; }

.bg-slate-900\/50 { background-color: rgb(15 23 42 / 0.5); }

.bg-white\/60 { background-color: rgb(255 255 255 / 0.6); }

.text-\[10px\] { font-size: 10px; line-height: 14px; }

.scale-\[0\.98\] { transform: scale(0.98); }

.active\:scale-\[0\.98\]:active { transform: scale(0.98); }



/* Feedback Floating Button */

.feedback-fab {

    position: fixed;

    top: 60%;

    right: 0;

    z-index: 100;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    opacity: 0.4;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    border-radius: 2rem 0 0 2rem !important;

    padding: 0.75rem 0.5rem 0.75rem 1rem !important;

    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.1);

}



/* Feedback Floating Button */

.feedback-fab:hover {

    opacity: 1 !important;

    padding-right: 12px !important;

    background-color: #4f46e5 !important; /* indigo-600 */

    box-shadow: -4px 6px 16px rgba(79, 70, 229, 0.3) !important;

}



.feedback-fab svg {

    width: 14px !important;

    height: 14px !important;

}



.scrollbar-thin::-webkit-scrollbar {

    width: 6px;

}

.scrollbar-thin::-webkit-scrollbar-track {

    background: transparent;

}

.scrollbar-thin::-webkit-scrollbar-thumb {

    background: #e2e8f0;

    border-radius: 3px;

}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {

    background: #cbd5e1;

}



html,

textarea,

.custom-scrollbar,

.voice-preset-list {

    scrollbar-width: thin;

    scrollbar-color: rgba(99, 102, 241, 0.42) rgba(241, 245, 249, 0.82);

}



html::-webkit-scrollbar,

textarea::-webkit-scrollbar,

.custom-scrollbar::-webkit-scrollbar,

.voice-preset-list::-webkit-scrollbar {

    width: 10px;

    height: 10px;

}



html::-webkit-scrollbar-track,

textarea::-webkit-scrollbar-track,

.custom-scrollbar::-webkit-scrollbar-track,

.voice-preset-list::-webkit-scrollbar-track {

    background: rgba(241, 245, 249, 0.82);

    border-radius: 999px;

}



html::-webkit-scrollbar-thumb,

textarea::-webkit-scrollbar-thumb,

.custom-scrollbar::-webkit-scrollbar-thumb,

.voice-preset-list::-webkit-scrollbar-thumb {

    border: 3px solid rgba(241, 245, 249, 0.82);

    border-radius: 999px;

    background: rgba(99, 102, 241, 0.48);

}



html::-webkit-scrollbar-thumb:hover,

textarea::-webkit-scrollbar-thumb:hover,

.custom-scrollbar::-webkit-scrollbar-thumb:hover,

.voice-preset-list::-webkit-scrollbar-thumb:hover {

    background: rgba(79, 70, 229, 0.62);

}



textarea {

    scrollbar-gutter: stable;

}



#input-textarea,

#output-textarea {

    min-height: 360px !important;

    padding-right: 2.15rem !important;

    overflow: auto;

}



/* Hide scrollbar for overflowing content */

.hide-scrollbar {

    -ms-overflow-style: none;  /* IE and Edge */

    scrollbar-width: none;  /* Firefox */

}

.hide-scrollbar::-webkit-scrollbar {

    display: none;

}



/* ============================================

   SEO Content Sections

   ============================================ */



/* --- Features Grid --- */

.seo-features-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;

}

@media (max-width: 640px) {

    .seo-features-grid {

        grid-template-columns: 1fr;

    }

}

.seo-feature-card {

    background: #ffffff;

    border: 1px solid #f1f5f9;

    border-radius: 1rem;

    padding: 1.25rem;

    transition: all 0.2s ease;

}

.seo-feature-card:hover {

    border-color: #c7d2fe;

    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);

    transform: translateY(-2px);

}

.seo-feature-icon {

    width: 2.5rem;

    height: 2.5rem;

    border-radius: 0.75rem;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.82rem;

    font-weight: 800;

    letter-spacing: 0.5px;

    margin-bottom: 0.75rem;

    flex-shrink: 0;

    box-sizing: border-box;

}



/* --- How It Works Steps --- */

.seo-steps {

    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: 0;

    position: relative;

}

@media (max-width: 640px) {

    .seo-steps {

        flex-direction: column;

        align-items: center;

    }

}

.seo-step {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 0 0.75rem;

    position: relative;

}

.seo-step-num {

    width: 2.5rem;

    height: 2.5rem;

    border-radius: 50%;

    background: linear-gradient(135deg, #4f46e5, #6366f1);

    color: white;

    font-weight: 800;

    font-size: 1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 0.75rem;

    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);

    flex-shrink: 0;

}

.seo-step-connector {

    flex-shrink: 0;

    display: flex;

    align-items: center;

    padding-top: 1.15rem;

}

@media (max-width: 640px) {

    .seo-step-connector {

        transform: rotate(90deg);

        padding-top: 0;

        margin: 0.5rem 0;

    }

}



/* --- Use Cases Cards --- */

.seo-cases-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1rem;

}

@media (max-width: 768px) {

    .seo-cases-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 480px) {

    .seo-cases-grid {

        grid-template-columns: 1fr;

    }

}

.seo-case-card {

    border-radius: 1rem;

    padding: 1.5rem 1.25rem;

    color: white;

    transition: all 0.25s ease;

    position: relative;

    overflow: hidden;

}

.seo-case-card::before {

    content: '';

    position: absolute;

    top: 0; right: 0; bottom: 0; left: 0;

    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);

    pointer-events: none;

}

.seo-case-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

}

.seo-case-emoji {

    font-size: 1.75rem;

    margin-bottom: 0.75rem;

    display: block;

}



/* Section title shared */

.seo-section-title {

    font-size: 1.5rem;

    font-weight: 700;

    text-align: center;

    color: #1e293b;

    margin-bottom: 1.5rem;

}

.seo-section-subtitle {

    font-size: 0.875rem;

    text-align: center;

    color: #64748b;

    margin-bottom: 2rem;

    max-width: 36rem;

    margin-left: auto;

    margin-right: auto;

}

.mt-12 { margin-top: 3rem; }

.mb-20 { margin-bottom: 5rem; }

.text-\[11px\] { font-size: 11px; line-height: 1.6; }

.space-y-6 > :not(:first-child) { margin-top: 1.5rem; }

.space-y-4 > :not(:first-child) { margin-top: 1rem; }

.space-y-2 > :not(:first-child) { margin-top: 0.5rem; }

.space-y-3 > :not(:first-child) { margin-top: 0.75rem; }

.divide-y > :not(:first-child) { border-top-width: 1px; border-color: #f8fafc; }

.min-w-\[120px\] { min-width: 120px; }

.max-w-\[80\%\] { max-width: 80%; }

.max-h-\[320px\] { max-height: 320px; }

.overflow-y-auto { overflow-y: auto; }

.overflow-hidden { overflow: hidden; }

.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.border-none { border: none; }

.\[writing-mode\:vertical-rl\] { writing-mode: vertical-rl; }

.hover\:text-indigo-700\:hover { color: #4338ca; }

.hover\:bg-slate-200\:hover { background-color: #e2e8f0; }

.bg-slate-900\/60 { background-color: rgb(15 23 42 / 0.6); }

.z-\[300\] { z-index: 300; }

.h-32 { height: 8rem; }

.resize-none { resize: none; }

.border-slate-300 { border-color: #cbd5e1; }



/* ============================================

   Homepage Refresh

   ============================================ */



nav.sticky {

    height: 4.5rem;

    padding-left: 1.75rem;

    padding-right: 1.75rem;

    background: rgba(255, 255, 255, 0.92);

    border-bottom: 1px solid rgba(241, 245, 249, 0.96);

    box-shadow: none;

}



nav.sticky h1 {

    gap: 0.6rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-weight: 800;

    letter-spacing: -0.02em;

}



nav.sticky #lang-switch,

nav.sticky a[data-i18n="nav_blog"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-weight: 700;

}



.nav-dropdown-container {

    position: relative;

}



.nav-product-area,

.nav-utility-area {

    display: flex;

    align-items: center;

    gap: 1rem;

}



.nav-product-area {

    position: relative;

    margin-left: 0.45rem;

    padding-left: 1.1rem;

}



.nav-product-area::before {

    content: "";

    position: absolute;

    left: 0;

    top: 50%;

    width: 1px;

    height: 1.15rem;

    background: rgba(203, 213, 225, 0.72);

    transform: translateY(-50%);

}



.nav-primary-link {

    position: relative;

    min-height: 2.25rem;

    display: inline-flex;

    align-items: center;

    padding: 0 0.1rem;

    border-radius: 0;

    background: transparent;

    color: #475569 !important;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.86rem;

    font-weight: 800;

    line-height: 1;

    text-decoration: none !important;

    white-space: nowrap;

    box-shadow: none;

}



.nav-primary-link::after {

    content: "";

    position: absolute;

    left: 0.1rem;

    right: 0.1rem;

    bottom: -0.62rem;

    height: 1px;

    background: transparent;

    transform: scaleX(0);

    transform-origin: center;

    transition: background-color 0.18s ease, transform 0.18s ease;

}



.nav-primary-link:hover,

.nav-primary-link.is-active,

.nav-primary-link[aria-current="page"] {

    background: transparent;

    color: #1d4ed8 !important;

}



.nav-primary-link.is-active::after,

.nav-primary-link[aria-current="page"]::after {

    background: #1d4ed8;

    transform: scaleX(1);

}



.nav-dropdown-btn {

    min-height: 2.25rem;

    position: relative;

    padding: 0 0.25rem;

    border: 1px solid transparent;

    border-radius: 0;

    background: transparent;

    color: #475569;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.86rem;

    font-weight: 800;

    letter-spacing: 0;

    line-height: 1;

    cursor: pointer;

    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;

}



.nav-dropdown-btn:hover,

.nav-dropdown-container:hover .nav-dropdown-btn,

.nav-dropdown-container.is-open .nav-dropdown-btn,

.nav-dropdown-container:focus-within .nav-dropdown-btn {

    color: #1d4ed8;

    background: transparent;

    border-color: transparent;

    box-shadow: none;

}



.nav-dropdown-btn svg {

    transition: transform 0.18s ease, color 0.18s ease;

}



.nav-dropdown-container:hover .nav-dropdown-btn svg,

.nav-dropdown-container.is-open .nav-dropdown-btn svg,

.nav-dropdown-container:focus-within .nav-dropdown-btn svg {

    transform: rotate(180deg);

    color: #4f46e5;

}



.nav-dropdown-menu {

    right: 0;

    top: calc(100% + 0.55rem);

    width: 13.25rem !important;

    margin-top: 0 !important;

    padding: 0.45rem;

    overflow: visible !important;

    border-radius: 0.8rem !important;

    border: 1px solid rgba(226, 232, 240, 0.95) !important;

    background: rgba(255, 255, 255, 0.98) !important;

    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13), 0 3px 12px rgba(79, 70, 229, 0.06) !important;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(-0.35rem) scale(0.98);

    transform-origin: top right;

    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;

}



.nav-dropdown-menu::before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: -0.6rem;

    height: 0.6rem;

    pointer-events: auto;

}



.nav-dropdown-container:hover .nav-dropdown-menu,

.nav-dropdown-container.is-open .nav-dropdown-menu,

.nav-dropdown-container:focus-within .nav-dropdown-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0) scale(1);

}



.nav-dropdown-menu > div {

    display: grid;

    gap: 0.15rem;

    padding: 0 !important;

}



.nav-dropdown-menu a {

    display: flex !important;

    align-items: center;

    min-height: 2.35rem;

    padding: 0.62rem 0.75rem !important;

    border-radius: 0.55rem;

    color: #475569 !important;

    text-decoration: none !important;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.8rem !important;

    font-weight: 800 !important;

    line-height: 1.25;

    white-space: normal;

    transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;

}



.nav-dropdown-menu a:hover {

    color: #4338ca !important;

    background: #f8fafc !important;

    transform: translateX(2px);

}



.nav-dropdown-menu a.bg-indigo-50,

.nav-dropdown-menu a.text-indigo-600 {

    color: #1d4ed8 !important;

    background: #f8fbff !important;

    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.55);

}



@media (max-width: 980px) {

    nav.sticky {

        gap: 0.75rem;

        padding-left: 1rem !important;

        padding-right: 1rem !important;

    }



    nav.sticky h1 .brand-pill {

        display: none;

    }



    .nav-product-area,

    .nav-utility-area {

        gap: 0.25rem;

    }



    .nav-primary-link,

    .nav-dropdown-btn {

        padding-left: 0.65rem;

        padding-right: 0.65rem;

        font-size: 0.78rem;

    }

}



#main-tabs-nav {

    max-width: 28rem;

    margin-left: auto;

    margin-right: auto;

    margin-bottom: 2.35rem;

    gap: 1.35rem;

    padding: 0;

    border-radius: 0;

    border: 0;

    border-bottom: 1px solid rgba(226, 232, 240, 0.9);

    background: transparent !important;

    backdrop-filter: none;

    -webkit-backdrop-filter: none;

    box-shadow: none;

}



.tab-active,

.tab-inactive {

    position: relative;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.92rem !important;

    font-weight: 800 !important;

    letter-spacing: -0.015em;

}



.tab-active::after,

.tab-inactive::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -1px;

    height: 1px;

    background: transparent;

    transform: scaleX(0);

    transition: background-color 0.18s ease, transform 0.18s ease;

}



.tab-active {

    color: #1d4ed8 !important;

}



.tab-active::after {

    background: #1d4ed8;

    transform: scaleX(1);

}



.tab-inactive {

    color: #64748b !important;

}



.tab-inactive:hover {

    color: #1d4ed8 !important;

    background: transparent !important;

}



.brand-pill {

    display: inline-flex;

    align-items: center;

    gap: 0.6rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    padding: 0.55rem 0.9rem;

    border-radius: 999px;

    background: #eef2ff;

    color: #3730a3;

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.01em;

}



.brand-mark {

    display: block;

    width: 2rem;

    height: 2rem;

    border-radius: 0.65rem;

    flex: 0 0 auto;

}



#pane-tts > .bg-white.rounded-3xl {

    position: relative;

    overflow: hidden;

    border-radius: 2rem;

    border: 1px solid rgba(148, 163, 184, 0.14);

    background: rgba(255, 255, 255, 0.86);

    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.10);

}



#pane-tts > .bg-white.rounded-3xl::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(circle at top left, rgba(79, 70, 229, 0.09), transparent 30%),

        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 22%);

    pointer-events: none;

}



#pane-tts > .bg-white.rounded-3xl > * {

    position: relative;

    z-index: 1;

}



#pane-tts .p-8 {

    padding: 2.5rem !important;

}



#pane-tts [data-i18n="tts_title"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: clamp(2.5rem, 4vw, 3.8rem);

    line-height: 1.06;

    letter-spacing: -0.04em;

    font-weight: 800;

    margin-bottom: 0.85rem;

}



.tts-toolbar {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.78rem;

}



.tts-toolbar-group {

    flex-wrap: wrap;

    align-items: center;

    gap: 0.55rem;

    padding: 0.5rem;

    border-radius: 1rem;

    background: rgba(255, 255, 255, 0.76);

    border: 1px solid rgba(226, 232, 240, 0.82);

}



.tts-toolbar-group--plain {

    padding-inline: 0.2rem;

    background: transparent;

    border: none;

}



.tts-toolbar-help {

    line-height: 1.6;

}



.voice-panel-intro {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 1rem;

    padding: 0.8rem 0.95rem;

    border-radius: 1.25rem;

    background: linear-gradient(135deg, rgba(238, 242, 255, 0.85), rgba(255, 255, 255, 0.98));

    border: 1px solid rgba(199, 210, 254, 0.72);

    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.08);

}



.voice-panel-title {

    margin: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.95rem;

    font-weight: 800;

    color: #1e293b;

    letter-spacing: -0.02em;

}



.voice-panel-copy {

    margin: 0.22rem 0 0;

    max-width: 42rem;

    font-size: 0.78rem;

    line-height: 1.6;

    color: #64748b;

}



.voice-panel-meta {

    display: flex;

    align-items: center;

    justify-content: flex-end;

}



.voice-count-pill {

    display: inline;

    color: #64748b;

    font-size: 0.78rem;

    font-weight: 700;

    white-space: nowrap;

}



nav.sticky .brand-pill {

    max-width: 6.5rem;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #64748b !important;

    font-size: 0.72rem !important;

    font-weight: 700 !important;

    letter-spacing: 0 !important;

}



.voice-panel-layout {

    display: grid;

    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.95fr);

    gap: 1rem;

    align-items: start;

}



.tts-toolbar-button {

    font-family: inherit;

    font-weight: 700;

    letter-spacing: -0.01em;

}



.lang-switch,

.lang-switcher {

    display: inline-flex;

    align-items: center;

    gap: 0.28rem;

    min-height: 2.25rem;

    padding: 0;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

}



.lang-switch-btn,

.lang-btn {

    appearance: none;

    min-height: 2.25rem;

    padding: 0 0.04rem;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    color: #64748b;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.82rem;

    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    transition: color 0.18s ease;

}



.lang-switch-btn:hover,

.lang-btn:hover {

    color: #4338ca;

}



.lang-switch-btn.is-active,

.lang-btn.is-active {

    color: #1d4ed8;

    background: transparent;

    box-shadow: none;

    font-weight: 800;

}



.lang-separator,

.lang-switch > span {

    color: #cbd5e1;

    font-size: 0.78rem;

    line-height: 1;

}



#pane-tts [data-i18n="tts_subtitle"] {

    max-width: 44rem;

    margin-bottom: 1rem !important;

    font-size: 0.92rem;

    line-height: 1.7;

    color: #5b6475;

}



#pane-tts h3[data-i18n="tts_voice_select_title"],

#pane-tts h3[data-i18n="tts_advanced_settings"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.9rem;

    font-weight: 800;

    letter-spacing: -0.02em;

    text-transform: none;

    color: #334155;

}



#pane-tts #voice-filter-lang,

#pane-tts .voice-search-input,

#pane-tts #voice-filter-name,

#pane-tts #voice-filter-style,

#pane-tts #voice-filter-role,

#pane-tts #voice-filter-styledegree,

#pane-tts #voice-filter-lang-secondary {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.98rem;

    font-weight: 600;

    min-height: 3.25rem;

    padding: 0.85rem 1rem;

    border-radius: 1rem;

    border: 1px solid rgba(148, 163, 184, 0.22);

    background: rgba(255, 255, 255, 0.94);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 24px rgba(15, 23, 42, 0.05);

}



#pane-tts #voice-filter-lang:focus,

#pane-tts .voice-search-input:focus,

#pane-tts #voice-filter-name:focus,

#pane-tts #voice-filter-style:focus,

#pane-tts #voice-filter-role:focus,

#pane-tts #voice-filter-styledegree:focus,

#pane-tts #voice-filter-lang-secondary:focus {

    border-color: rgba(79, 70, 229, 0.55);

    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08), 0 14px 30px rgba(79, 70, 229, 0.08);

}



#pane-tts #voice-filter-lang option,

#pane-tts #voice-filter-name option,

#pane-tts #voice-filter-style option,

#pane-tts #voice-filter-role option,

#pane-tts #voice-filter-styledegree option,

#pane-tts #voice-filter-lang-secondary option {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

}



#pane-tts label[for="voice-filter-lang"],

#pane-tts label[for="voice-filter-name"],

#pane-tts label[for="voice-filter-style"],

#pane-tts label[for="voice-filter-role"],

#pane-tts label[for="voice-filter-styledegree"],

#pane-tts #voice-filter-lang-secondary-container label,

#pane-tts label[for="tts-break-time"],

#pane-tts label[data-i18n="tts_volume"],

#pane-tts label[data-i18n="tts_speech_rate"],

#pane-tts label[data-i18n="tts_pitch_rate"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.82rem;

    font-weight: 700;

    letter-spacing: -0.01em;

    text-transform: none;

    color: #64748b;

}



#pane-tts #vol-val,

#pane-tts #speed-val,

#pane-tts #pitch-val {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.82rem;

    font-weight: 700;

    color: #64748b;

}



#pane-tts textarea#tts-text {

    min-height: 20.5rem !important;

    padding: 1.3rem 1.4rem 1.65rem !important;

    border-radius: 1.6rem !important;

    border: 1px solid rgba(148, 163, 184, 0.14) !important;

    background:

        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)) !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 16px 40px rgba(15, 23, 42, 0.05);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 1rem;

    line-height: 1.88;

    letter-spacing: -0.01em;

    color: #1e293b;

}



#pane-tts textarea#tts-text:focus {

    border-color: rgba(79, 70, 229, 0.34) !important;

    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.08), 0 22px 46px rgba(79, 70, 229, 0.08);

}



#pane-tts .tts-emotion-popover {

    position: absolute;

    z-index: 40;

    width: min(19rem, calc(100% - 2rem));

    padding: 0.45rem;

    border: 1px solid rgba(148, 163, 184, 0.22);

    border-radius: 0.75rem;

    background: rgba(255, 255, 255, 0.96);

    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);

    backdrop-filter: blur(12px);

}



#pane-tts .tts-emotion-popover__grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.35rem;

}



#pane-tts .tts-emotion-popover__hint {

    padding: 0.45rem 0.55rem;

    color: #64748b;

    font-size: 0.75rem;

    line-height: 1.45;

}



#pane-tts .tts-emotion-button {

    height: 2rem;

    min-width: 0;

    padding: 0 0.7rem;

    border: 1px solid rgba(203, 213, 225, 0.85);

    border-radius: 0.5rem;

    background: #f8fafc;

    color: #334155;

    font-size: 0.78rem;

    font-weight: 800;

    text-align: center;

    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;

}



#pane-tts .tts-emotion-button:hover,

#pane-tts .tts-emotion-button:focus-visible {

    border-color: rgba(79, 70, 229, 0.34);

    background: #eef2ff;

    color: #4338ca;

    outline: none;

}



#pane-tts .tts-emotion-button--primary {

    border-color: rgba(220, 38, 38, 0.36);

    background: #dc2626;

    color: #fff;

}



#pane-tts .tts-emotion-button--primary:hover,

#pane-tts .tts-emotion-button--primary:focus-visible {

    background: #b91c1c;

    color: #fff;

}



#pane-tts .tts-ssml-help {

    padding: 0.85rem 1rem;

    border: 1px solid rgba(99, 102, 241, 0.14);

    border-radius: 0.75rem;

    background: #f8fafc;

}



#pane-tts .tts-ssml-help__title {

    margin: 0 0 0.35rem;

    color: #334155;

    font-size: 0.82rem;

    font-weight: 800;

}



#pane-tts .tts-ssml-help__copy {

    margin: 0;

    color: #64748b;

    font-size: 0.78rem;

    line-height: 1.65;

    word-break: break-word;

}



#pane-tts #char-count-container {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.76rem;

    font-weight: 700;

    border-radius: 999px;

    padding: 0.36rem 0.72rem;

    border: 1px solid rgba(226, 232, 240, 0.9);

    background: rgba(255, 255, 255, 0.92);

    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);

    color: #64748b;

}



#pane-tts > .bg-white.rounded-3xl .mt-8.space-y-6 {

    margin-top: 1.8rem !important;

}



#pane-tts > .bg-white.rounded-3xl .mt-8.space-y-6 > h3[data-i18n="tts_voice_select_title"] {

    margin-bottom: 0.7rem !important;

}



.voice-filter-panel {

    position: relative;

    overflow: visible;

    padding: 1rem !important;

    border-radius: 1.55rem !important;

    border: 1px solid rgba(226, 232, 240, 0.82) !important;

    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.78)) !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);

    gap: 0.85rem !important;

}



.voice-preset-panel {

    position: relative;

    display: grid;

    gap: 0.85rem;

    padding: 1rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    border-radius: 1.35rem;

    border: 1px solid rgba(199, 210, 254, 0.76);

    background: linear-gradient(180deg, rgba(238, 242, 255, 0.72), rgba(255, 255, 255, 0.92));

    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.07);

    overflow: hidden;

}



.voice-preset-panel::after {

    content: "";

    position: absolute;

    left: 1rem;

    right: 1rem;

    bottom: 1rem;

    height: 2.4rem;

    border-radius: 0 0 1rem 1rem;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.96));

    pointer-events: none;

}



.voice-preset-panel__head {

    position: relative;

    z-index: 1;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 1rem;

}



.voice-preset-panel__title {

    margin: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.9rem;

    font-weight: 800;

    color: #1e293b;

    letter-spacing: -0.01em;

}



.voice-preset-panel__copy {

    margin: 0.22rem 0 0;

    color: #64748b;

    font-size: 0.77rem;

    line-height: 1.6;

}



.voice-preset-list {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1rem;

    max-height: 31rem;

    overflow-y: auto;

    padding-right: 0.45rem;

    scrollbar-width: thin;

    scrollbar-color: rgba(99, 102, 241, 0.38) transparent;

    mask-image: linear-gradient(180deg, #000 calc(100% - 2.6rem), transparent);

}



.voice-preset-list::-webkit-scrollbar {

    width: 0.42rem;

}



.voice-preset-list::-webkit-scrollbar-track {

    background: transparent;

}



.voice-preset-list::-webkit-scrollbar-thumb {

    border-radius: 999px;

    background: linear-gradient(180deg, rgba(99, 102, 241, 0.46), rgba(14, 165, 233, 0.34));

}



.voice-preset-list::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(180deg, rgba(79, 70, 229, 0.72), rgba(14, 165, 233, 0.52));

}



.voice-preset-card {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    gap: 0.75rem;

    min-height: 10.2rem;

    padding: 0.95rem;

    border-radius: 1rem;

    border: 1px solid rgba(226, 232, 240, 0.96);

    background: rgba(255, 255, 255, 0.92);

    color: #1e293b;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;

}



.voice-preset-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(135deg, rgba(99, 102, 241, 0.10), transparent 38%),

        radial-gradient(circle at right top, rgba(14, 165, 233, 0.10), transparent 32%);

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.18s ease;

}



.voice-preset-card:hover,

.voice-preset-card.is-active {

    border-color: rgba(79, 70, 229, 0.52);

    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.12);

    transform: translateY(-1px);

}



.voice-preset-card.is-active {

    background: #eef2ff;

}



.voice-preset-card:hover::before,

.voice-preset-card.is-active::before {

    opacity: 1;

}



.voice-preset-card__body {

    position: relative;

    z-index: 1;

    display: grid;

    gap: 0.52rem;

    min-width: 0;

}



.voice-preset-card__main {

    display: grid;

    gap: 0.22rem;

    min-width: 0;

}



.voice-preset-card__title,

.voice-preset-card__desc,

.voice-preset-card__voice,

.voice-preset-card__meta {

    display: block;

}



.voice-preset-card__title {

    font-size: 0.85rem;

    line-height: 1.35;

    font-weight: 800;

    color: #312e81;

}



.voice-preset-card__desc {

    color: #64748b;

    font-size: 0.73rem;

    line-height: 1.5;

}



.voice-preset-card__actions {

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 0.5rem;

    min-width: 0;

}



.voice-preset-card__action,

.voice-preset-card__preview {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 2rem;

    padding: 0 0.72rem;

    border-radius: 999px;

    border: none;

    font-family: inherit;

    font-size: 0.7rem;

    font-weight: 800;

    white-space: nowrap;

    cursor: pointer;

    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;

}



.voice-preset-card__preview {

    background: #fff;

    color: #4f46e5;

    border: 1px solid rgba(199, 210, 254, 0.92);

}



.voice-preset-card__preview:hover {

    background: #eef2ff;

}



.voice-preset-card__preview:disabled {

    cursor: wait;

    opacity: 0.72;

}



.voice-preset-card__action {

    background: #f1f5f9;

    color: #475569;

}



.voice-preset-card.is-active .voice-preset-card__action {

    background: #4f46e5;

    color: #fff;

}



.voice-preset-card__voice {

    font-size: 0.77rem;

    font-weight: 800;

    color: #1e293b;

    line-height: 1.35;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.voice-preset-card__meta,

.voice-preset-empty {

    font-size: 0.71rem;

    line-height: 1.55;

    color: #64748b;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.voice-preset-empty {

    grid-column: 1 / -1;

    padding: 0.85rem 0.9rem;

    border-radius: 0.95rem;

    border: 1px dashed rgba(199, 210, 254, 0.88);

    background: rgba(255, 255, 255, 0.75);

}



.voice-filter-panel__full {

    flex: 0 0 100%;

    min-width: 100%;

}



.voice-capability-note {

    margin-top: -0.3rem;

    padding: 0.78rem 0.95rem;

    border-radius: 1rem;

    background: rgba(255, 255, 255, 0.76);

    border: 1px dashed rgba(199, 210, 254, 0.95);

    color: #64748b;

    font-size: 0.78rem;

    line-height: 1.6;

}



.voice-filter-section-title {

    display: flex;

    align-items: center;

    min-height: 1.9rem;

    margin-bottom: -0.25rem;

    color: #94a3b8;

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

}



.voice-filter-section-title::after {

    content: "";

    flex: 1;

    height: 1px;

    margin-left: 0.8rem;

    background: rgba(226, 232, 240, 0.92);

}



.voice-filter-panel > div {

    min-width: 11rem;

}



.voice-search-field {

    position: relative;

}



.voice-search-field #voice-filter-name {

    display: none !important;

}



#pane-tts .voice-search-input {

    margin-bottom: 0 !important;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)) !important;

}



.voice-search-results {

    position: absolute;

    top: calc(100% + 0.45rem);

    left: 0;

    right: 0;

    z-index: 120;

    display: grid;

    gap: 0.45rem;

    max-height: min(34rem, 58vh);

    padding: 0.55rem;

    overflow-y: auto;

    border-radius: 1.05rem;

    border: 1px solid rgba(226, 232, 240, 0.96);

    background: rgba(255, 255, 255, 0.98);

    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);

}



.voice-search-results.hidden {

    display: none !important;

}



.voice-search-result {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 0.8rem;

    width: 100%;

    min-height: 2.8rem;

    padding: 0.7rem 0.85rem;

    border: 1px solid rgba(226, 232, 240, 0.9);

    border-radius: 0.85rem;

    background: rgba(248, 250, 252, 0.86);

    color: #1e293b;

    text-align: left;

    cursor: pointer;

    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;

}



.voice-search-result:hover,

.voice-search-result.is-active,

.voice-search-result.is-key-active {

    border-color: rgba(99, 102, 241, 0.42);

    background: rgba(238, 242, 255, 0.92);

    transform: translateY(-1px);

}



.voice-search-result.is-key-active {

    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.28);

}



.voice-search-result--empty {

    justify-content: center;

    color: #64748b;

    cursor: default;

}



.voice-search-result__name {

    font-size: 0.84rem;

    font-weight: 800;

    color: #1e293b;

}



.voice-search-result__name mark {

    padding: 0 0.08rem;

    border-radius: 0.25rem;

    background: rgba(250, 204, 21, 0.32);

    color: inherit;

}



.voice-search-result__meta {

    font-size: 0.73rem;

    font-weight: 700;

    color: #64748b;

    white-space: nowrap;

}



.voice-selection-summary {

    padding: 0.92rem 1rem;

    border-radius: 1.3rem;

    border: 1px solid rgba(226, 232, 240, 0.92);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));

    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);

    position: sticky;

    top: 5.5rem;

}



.voice-selection-summary__label {

    margin: 0 0 0.65rem;

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #94a3b8;

}



.voice-selection-summary__body {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 1rem;

}



.voice-selection-summary__name {

    margin: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: -0.02em;

    color: #1e293b;

}



.voice-selection-summary__meta {

    margin: 0.3rem 0 0;

    font-size: 0.8rem;

    line-height: 1.7;

    color: #64748b;

}



.voice-selection-tags {

    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 0.5rem;

}



.voice-selection-tag {

    display: inline-flex;

    align-items: center;

    min-height: 1.9rem;

    padding: 0 0.7rem;

    border-radius: 999px;

    background: #eef2ff;

    color: #4338ca;

    font-size: 0.73rem;

    font-weight: 800;

    white-space: nowrap;

}



.voice-selection-divider {

    height: 1px;

    margin: 0.85rem 0 0.8rem;

    background: rgba(226, 232, 240, 0.95);

}



.voice-selection-summary__subhead {

    margin: 0 0 0.75rem;

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #94a3b8;

}



.voice-selection-empty-guide {

    margin-bottom: 0.65rem;

    padding: 0.72rem 0.8rem;

    border-radius: 1rem;

    background: linear-gradient(180deg, rgba(238, 242, 255, 0.74), rgba(248, 250, 252, 0.96));

    border: 1px solid rgba(199, 210, 254, 0.75);

}



.voice-selection-empty-guide__title {

    margin: 0 0 0.55rem;

    font-size: 0.76rem;

    font-weight: 800;

    color: #4338ca;

}



.voice-selection-empty-guide__steps {

    display: flex;

    flex-wrap: wrap;

    gap: 0.45rem;

}



.voice-selection-empty-guide__steps span {

    display: inline-flex;

    align-items: center;

    min-height: 1.95rem;

    padding: 0 0.7rem;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.88);

    color: #475569;

    font-size: 0.74rem;

    font-weight: 700;

}



.voice-selection-config {

    display: grid;

    gap: 0.55rem;

}



.voice-selection-config__item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 1rem;

    min-height: 2.12rem;

    padding: 0.55rem 0.72rem;

    border-radius: 0.95rem;

    background: rgba(248, 250, 252, 0.92);

    border: 1px solid rgba(226, 232, 240, 0.88);

}



.voice-selection-config__key {

    font-size: 0.76rem;

    font-weight: 700;

    color: #64748b;

}



.voice-selection-config__value {

    font-size: 0.8rem;

    font-weight: 800;

    color: #1e293b;

    text-align: right;

}



.voice-selection-config__empty {

    padding: 0.8rem 0.9rem;

    border-radius: 0.95rem;

    background: rgba(248, 250, 252, 0.86);

    border: 1px dashed rgba(199, 210, 254, 0.88);

    color: #64748b;

    font-size: 0.78rem;

    line-height: 1.65;

}



#pane-tts > .bg-white.rounded-3xl .mt-6.p-4.bg-slate-50 {

    margin-top: 1.25rem !important;

    padding: 1.1rem !important;

    border-radius: 1.5rem !important;

    background: rgba(248, 250, 252, 0.84) !important;

    border: 1px solid rgba(226, 232, 240, 0.75) !important;

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 {

    position: relative;

    margin-top: 1rem !important;

    padding: 1rem 1.1rem !important;

    border-radius: 1.5rem !important;

    border: 1px solid rgba(226, 232, 240, 0.84) !important;

    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.74)) !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 22px rgba(15, 23, 42, 0.04);

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 h3[data-i18n="tts_advanced_settings"] {

    margin-bottom: 0.9rem !important;

    color: #475569;

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 h3[data-i18n="tts_advanced_settings"] > span {

    background: rgba(226, 232, 240, 0.72) !important;

    color: #64748b !important;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.66rem !important;

    font-weight: 800 !important;

    letter-spacing: 0.02em;

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.9rem 1rem;

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 > :not(:first-child) {

    margin-top: 0;

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 > div {

    display: grid;

    grid-template-columns: 3rem minmax(0, 1fr) auto;

    align-items: center;

    gap: 0.8rem;

    padding: 0.9rem 0.95rem;

    border-radius: 1.15rem;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(226, 232, 240, 0.9);

    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 > div:hover {

    border-color: rgba(199, 210, 254, 0.96);

    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.06);

    transform: translateY(-1px);

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 > div > label {

    width: auto !important;

    margin: 0;

}



#pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 > div > input[type="range"] {

    width: 100%;

}



#advanced-settings-panel input[type="range"] {

    --range-progress: 50%;

    height: 1.45rem;

    border-radius: 999px;

    background:

        linear-gradient(90deg, #4f46e5 0 var(--range-progress), #dbe3f0 var(--range-progress) 100%);

    outline: none;

    cursor: pointer;

}



#advanced-settings-panel input[type="range"]::-webkit-slider-runnable-track {

    height: 0.52rem;

    border-radius: 999px;

    background: transparent;

}



#advanced-settings-panel input[type="range"]::-webkit-slider-thumb {

    -webkit-appearance: none;

    appearance: none;

    width: 1.25rem;

    height: 1.25rem;

    margin-top: -0.36rem;

    border-radius: 999px;

    border: 3px solid #fff;

    background: linear-gradient(135deg, #4338ca, #6366f1);

    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);

    transition: transform 0.16s ease, box-shadow 0.16s ease;

}



#advanced-settings-panel input[type="range"]:hover::-webkit-slider-thumb {

    transform: scale(1.08);

    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.34);

}



#advanced-settings-panel input[type="range"]::-moz-range-track {

    height: 0.52rem;

    border-radius: 999px;

    background: transparent;

}



#advanced-settings-panel input[type="range"]::-moz-range-progress {

    height: 0.52rem;

    border-radius: 999px;

    background: #4f46e5;

}



#advanced-settings-panel input[type="range"]::-moz-range-thumb {

    width: 1.25rem;

    height: 1.25rem;

    border-radius: 999px;

    border: 3px solid #fff;

    background: linear-gradient(135deg, #4338ca, #6366f1);

    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);

}



#pane-tts #btn-run-tts,
#btn-synthesize {

    margin-top: 1rem !important;

    min-height: 3.5rem;

    border-radius: 1.1rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: -0.015em;

    background: linear-gradient(135deg, #1d4ed8, #4f46e5);

    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.16);

    position: relative;

    overflow: hidden;

}



#pane-tts #btn-run-tts:hover,
#btn-synthesize:hover {

    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.2);

}



#pane-tts #btn-run-tts::before,
#btn-synthesize::before {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));

    pointer-events: none;

}



#pane-stt > .bg-white.rounded-3xl {

    position: relative;

    overflow: hidden;

    border-radius: 2rem;

    border: 1px solid rgba(148, 163, 184, 0.12);

    background: rgba(255, 255, 255, 0.82);

    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.07);

}



#pane-stt > .bg-white.rounded-3xl::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(circle at top left, rgba(79, 70, 229, 0.07), transparent 28%),

        radial-gradient(circle at top right, rgba(14, 165, 233, 0.06), transparent 24%);

    pointer-events: none;

}



#pane-stt > .bg-white.rounded-3xl > * {

    position: relative;

    z-index: 1;

}



#pane-stt .p-8 {

    padding: 2.5rem !important;

}



#pane-features,

#pane-howitworks,

#pane-usecases,

#pane-feedback,

#pane-faq {

    margin-top: 5.5rem;

}



@supports (content-visibility: auto) {

    #pane-features,

    #pane-howitworks,

    #pane-usecases,

    #pane-feedback,

    #pane-faq,

    footer {

        content-visibility: auto;

        contain-intrinsic-size: auto 720px;

    }

}



.seo-section-title {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: clamp(1.8rem, 2.8vw, 2.7rem);

    font-weight: 800;

    letter-spacing: -0.04em;

    line-height: 1.08;

    color: #0f172a;

    margin-bottom: 0.7rem;

}



.seo-section-subtitle {

    max-width: 40rem;

    font-size: 0.95rem;

    line-height: 1.75;

    color: #64748b;

    margin-bottom: 2rem;

}



.seo-features-grid {

    grid-template-columns: repeat(3, 1fr);

    gap: 1.1rem;

}



@media (max-width: 960px) {

    .seo-features-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



.seo-feature-card {

    order: 10;

    border-radius: 1.5rem;

    padding: 1.4rem;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(226, 232, 240, 0.78);

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);

}



#pane-features .seo-feature-card:nth-child(1) { order: 1; }

#pane-features .seo-feature-card:nth-child(3) { order: 2; }

#pane-features .seo-feature-card:nth-child(6) { order: 3; }

#pane-features .seo-feature-card:nth-child(2) { order: 4; }

#pane-features .seo-feature-card:nth-child(4) { order: 5; }

#pane-features .seo-feature-card:nth-child(5) { order: 6; }



.seo-feature-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.08);

}



.seo-feature-card h3 {

    font-size: 1rem;

    letter-spacing: -0.02em;

}



.seo-feature-card p {

    font-size: 0.88rem;

    line-height: 1.68;

    color: #64748b;

}



.seo-steps {

    padding: 2.15rem 1.1rem;

    border-radius: 2rem;

    background: rgba(255, 255, 255, 0.76);

    border: 1px solid rgba(226, 232, 240, 0.84);

    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);

}



.seo-step h3 {

    font-size: 1rem;

    letter-spacing: -0.02em;

}



.seo-step p {

    font-size: 0.86rem;

    line-height: 1.65;

    color: #64748b;

}



.seo-cases-grid {

    gap: 1.1rem;

}



.seo-case-card {

    order: 10;

    border-radius: 1.75rem;

    padding: 1.55rem 1.3rem;

    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.10);

}



#pane-usecases .seo-case-card:nth-child(4) { order: 1; }

#pane-usecases .seo-case-card:nth-child(3) { order: 2; }

#pane-usecases .seo-case-card:nth-child(1) { order: 3; }

#pane-usecases .seo-case-card:nth-child(2) { order: 4; }



.seo-case-card h3 {

    font-size: 1rem;

    letter-spacing: -0.02em;

}



.seo-case-card p {

    font-size: 0.86rem;

    line-height: 1.64;

}



.feedback-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1.05rem;

}



.feedback-card {

    padding: 1.35rem;

    border-radius: 1.75rem;

    background: rgba(255, 255, 255, 0.76);

    border: 1px solid rgba(226, 232, 240, 0.82);

    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);

}



.feedback-card blockquote {

    margin: 0 0 1rem;

    color: #1e293b;

    font-size: 0.9rem;

    line-height: 1.68;

    font-weight: 600;

}



.feedback-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 0.75rem;

}



.feedback-meta strong {

    display: block;

    font-size: 0.9rem;

    color: #0f172a;

}



.feedback-meta span {

    color: #64748b;

    font-size: 0.78rem;

    line-height: 1.55;

}



.feedback-tag {

    padding: 0.42rem 0.72rem;

    border-radius: 999px;

    background: #eef2ff;

    color: #4338ca;

    font-size: 0.72rem;

    font-weight: 800;

    white-space: nowrap;

}



#pane-faq .space-y-4 {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.95rem;

}



#pane-faq .space-y-4 > :not(:first-child) {

    margin-top: 0;

}



#pane-faq .space-y-4 > div {

    height: 100%;

    border-radius: 1.5rem;

    padding: 1.35rem;

    background: rgba(255, 255, 255, 0.78);

    border: 1px solid rgba(226, 232, 240, 0.84);

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);

}



#pane-faq .space-y-4 > div h3 {

    cursor: pointer;

    margin-bottom: 0;

    position: relative;

    padding-right: 2rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.98rem;

    letter-spacing: -0.02em;

}



#pane-faq .space-y-4 > div h3::after {

    content: "+";

    position: absolute;

    right: 0;

    top: 0;

    color: #4f46e5;

    font-size: 1.2rem;

    line-height: 1;

}



#pane-faq .space-y-4 > div p {

    display: none;

    margin-top: 0.95rem;

    color: #64748b;

    line-height: 1.7;

}



#pane-faq .space-y-4 > div.is-open h3::after {

    content: "−";

}



#pane-faq .space-y-4 > div.is-open p {

    display: block;

}



#pane-faq {

    margin-top: 7rem !important;

}



#pane-faq > h2[data-i18n="faq_title"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: clamp(1.8rem, 2.6vw, 2.5rem);

    font-weight: 800;

    letter-spacing: -0.03em;

    margin-bottom: 1.2rem;

}



#pane-features .seo-feature-card p,

#pane-feedback .feedback-card blockquote,

#pane-howitworks .seo-step p,

#pane-usecases .seo-case-card p {

    max-width: 34ch;

}



.about-trust-section {

    display: grid;

    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);

    gap: 1.25rem;

    align-items: stretch;

    padding: 1.4rem;

    border: 1px solid rgba(226, 232, 240, 0.9);

    background: rgba(255, 255, 255, 0.82);

    border-radius: 1.5rem;

    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);

}



.about-trust-main {

    padding: 0.45rem 0.35rem;

}



.about-eyebrow {

    margin: 0 0 0.55rem;

    color: #4f46e5;

    font-size: 0.74rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

}



.about-trust-main h2 {

    margin: 0;

    color: #0f172a;

    font-size: clamp(1.35rem, 2vw, 1.9rem);

    line-height: 1.2;

    font-weight: 800;

}



.about-trust-main p:last-child {

    margin: 0.85rem 0 0;

    color: #475569;

    line-height: 1.75;

    font-size: 0.94rem;

}



.about-trust-grid {

    display: grid;

    gap: 0.72rem;

}



.about-trust-grid > div {

    padding: 0.9rem 1rem;

    border-radius: 1rem;

    background: #f8fafc;

    border: 1px solid rgba(226, 232, 240, 0.85);

}



.about-trust-grid strong {

    display: block;

    color: #0f172a;

    font-size: 0.88rem;

    margin-bottom: 0.35rem;

}



.about-trust-grid p {

    margin: 0;

    color: #64748b;

    font-size: 0.8rem;

    line-height: 1.6;

}



footer .max-w-3xl,

footer .max-w-5xl {

    width: 100%;

}



@media (max-width: 960px) {

    #pane-faq .space-y-4,

    .feedback-grid {

        grid-template-columns: 1fr;

    }



    .about-trust-section {

        grid-template-columns: 1fr;

    }

}



/* ============================================

   TTS / ASR Interaction Polish

   ============================================ */



#pane-tts .flex.justify-between.items-end.mb-2 {

    align-items: center;

    gap: 1rem;

    margin-bottom: 1rem;

    flex-wrap: wrap;

}



#pane-tts #tts-break-time {

    min-width: 5.6rem;

    min-height: 2.9rem;

    padding: 0 0.9rem;

    border-radius: 999px;

    border: 1px solid rgba(148, 163, 184, 0.26);

    background: rgba(255, 255, 255, 0.96);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 20px rgba(15, 23, 42, 0.04);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.92rem;

    font-weight: 600;

}



#pane-tts #tts-break-time:focus {

    border-color: rgba(79, 70, 229, 0.52);

    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08), 0 12px 28px rgba(79, 70, 229, 0.08);

}



#pane-tts #voice-filter-lang,

#pane-tts #voice-filter-name,

#pane-tts #voice-filter-style,

#pane-tts #voice-filter-role,

#pane-tts #voice-filter-styledegree,

#pane-tts #voice-filter-lang-secondary {

    appearance: none;

    -webkit-appearance: none;

    background-image:

        linear-gradient(45deg, transparent 50%, #64748b 50%),

        linear-gradient(135deg, #64748b 50%, transparent 50%);

    background-position:

        calc(100% - 22px) calc(50% - 3px),

        calc(100% - 16px) calc(50% - 3px);

    background-size: 6px 6px, 6px 6px;

    background-repeat: no-repeat;

    padding-right: 3rem;

}



#pane-tts input[type="range"]::-webkit-slider-runnable-track {

    height: 0.52rem;

    border-radius: 999px;

    background: transparent;

}



#pane-tts input[type="range"]::-webkit-slider-thumb {

    margin-top: -0.36rem;

    width: 1.25rem;

    height: 1.25rem;

    border: 3px solid #fff;

    background: linear-gradient(135deg, #4338ca, #6366f1);

    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);

}



#pane-tts input[type="range"]::-moz-range-track {

    height: 0.52rem;

    border-radius: 999px;

    background: transparent;

}



#pane-tts input[type="range"]::-moz-range-thumb {

    width: 1.25rem;

    height: 1.25rem;

    border: 3px solid #fff;

    border-radius: 999px;

    background: linear-gradient(135deg, #4338ca, #6366f1);

    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);

}



#pane-tts #tts-audio-container {

    margin-top: 1.75rem !important;

    padding: 1.35rem 1.4rem 1.2rem !important;

    border-radius: 1.5rem !important;

    border: 1px solid rgba(199, 210, 254, 0.8) !important;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.66)) !important;

    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.08);

}



#pane-tts #tts-audio-container h4,

#pane-results h2[data-i18n="results_title"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    letter-spacing: -0.02em;

}



#tts-result-actions button,

#tts-result-actions a,

#pane-results button,

#pane-results label[for="include-speaker"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

}



#tts-result-actions {

    flex-wrap: wrap;

}



#tts-result-actions a,

#tts-result-actions button {

    min-height: 2.35rem;

    padding-inline: 0.95rem;

    border-radius: 999px !important;

    font-size: 0.78rem !important;

    font-weight: 800 !important;

    letter-spacing: -0.01em;

    text-decoration: none;

    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.14);

    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;

}



#tts-result-actions a:hover,

#tts-result-actions button:hover {

    transform: translateY(-1px);

    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.16);

}



#pane-tts #tts-audio-player,

#audio-preview {

    width: 100%;

    min-height: 3.25rem;

    margin-top: 0.35rem !important;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 24px rgba(15, 23, 42, 0.05);

}



#pane-tts #tts-audio-player::-webkit-media-controls-panel,

#audio-preview::-webkit-media-controls-panel {

    background: rgba(255, 255, 255, 0.96);

}



#pane-tts #tts-audio-container .flex.items-center.justify-between.mb-4 {

    align-items: center;

    gap: 0.85rem;

    margin-bottom: 0.85rem !important;

    padding-bottom: 0.85rem;

    border-bottom: 1px solid rgba(224, 231, 255, 0.8);

}



#pane-tts #tts-audio-container h4 {

    font-size: 0.86rem;

    font-weight: 800;

    color: #334155;

}



#prog-tts,

#prog-stt {

    margin-top: 1.4rem !important;

    padding: 1rem 1.1rem;

    border-radius: 1.25rem;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.7));

    border: 1px solid rgba(199, 210, 254, 0.76);

    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.08);

}



#prog-tts .flex.justify-between,

#prog-stt .flex.justify-between {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.76rem;

    letter-spacing: 0.01em;

}



#prog-tts .w-full.h-2,

#prog-stt .w-full.h-2 {

    height: 0.56rem !important;

    background: rgba(226, 232, 240, 0.82) !important;

}



.progress-bar-fill {

    background: linear-gradient(90deg, #2563eb, #6366f1);

    box-shadow: 0 0 18px rgba(99, 102, 241, 0.28);

    position: relative;

    overflow: hidden;

}



.progress-bar-fill::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);

    animation: progressShimmer 1.5s linear infinite;

}



@keyframes progressShimmer {

    from { transform: translateX(-100%); }

    to { transform: translateX(100%); }

}



#pane-stt h2[data-i18n="stt_title"] {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: clamp(2rem, 3vw, 2.8rem);

    letter-spacing: -0.035em;

    margin-bottom: 1.25rem;

}



#drop-zone {

    position: relative;

    min-height: 15rem;

    padding-inline: 1.25rem;

    border-width: 1.5px !important;

    border-color: rgba(148, 163, 184, 0.24) !important;

    border-radius: 1.7rem !important;

    background:

        linear-gradient(180deg, rgba(248, 250, 252, 0.76), rgba(255, 255, 255, 0.92)) !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 32px rgba(15, 23, 42, 0.04);

    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

}



#drop-zone::before {

    content: "";

    width: 4.2rem;

    height: 4.2rem;

    display: block;

    margin: 0 auto 1rem;

    border-radius: 1.4rem;

    background:

        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.96));

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, 0.96),

        0 14px 28px rgba(79, 70, 229, 0.08);

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 16a1 1 0 0 1-1-1V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 1 1-1.414 1.414L13 7.414V15a1 1 0 0 1-1 1Z'/%3E%3Cpath d='M5 14a1 1 0 0 1 1 1v2h12v-2a1 1 0 1 1 2 0v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / 2rem 2rem no-repeat;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 16a1 1 0 0 1-1-1V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 1 1-1.414 1.414L13 7.414V15a1 1 0 0 1-1 1Z'/%3E%3Cpath d='M5 14a1 1 0 0 1 1 1v2h12v-2a1 1 0 1 1 2 0v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / 2rem 2rem no-repeat;

    background-color: #4f46e5;

}



#drop-zone::after {

    display: none;

}



#drop-zone:hover {

    border-color: rgba(79, 70, 229, 0.34) !important;

    box-shadow: 0 20px 42px rgba(79, 70, 229, 0.08);

    transform: translateY(-1px);

}



#file-name {

    max-width: 32rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.96rem !important;

    line-height: 1.72;

    color: #475569 !important;

}



.stt-upload-title {

    display: block;

    margin-bottom: 0.45rem;

    color: #0f172a;

    font-size: 1.1rem;

    line-height: 1.35;

    text-align: center;

}



.stt-format-row {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 0.5rem;

    margin-top: 1rem;

}



.stt-format-row span {

    min-width: 3.4rem;

    padding: 0.42rem 0.65rem;

    border: 1px solid rgba(99, 102, 241, 0.18);

    border-radius: 0.5rem;

    background: #eef2ff;

    color: #4338ca;

    font-size: 0.76rem;

    font-weight: 800;

    text-align: center;

}



#pane-tts textarea#tts-text::placeholder {

    color: #94a3b8;

    font-weight: 500;

}



#pane-tts textarea#tts-text:placeholder-shown {

    background:

        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.92)) !important;

}







#audio-preview-container {

    padding: 1.2rem !important;

    border-radius: 1.35rem !important;

    border: 1px solid rgba(226, 232, 240, 0.78) !important;

    background: rgba(248, 250, 252, 0.74) !important;

}



.asr-rt-divider {

    margin: 2rem 0 0.45rem !important;

    color: #94a3b8 !important;

    letter-spacing: 0.12em !important;

}



.asr-mic-area {

    margin-top: 0.35rem;

    padding: 2rem 0 0.5rem !important;

    border-radius: 1.6rem;

    background: linear-gradient(180deg, rgba(238, 242, 255, 0.42), rgba(255, 255, 255, 0));

}



.asr-pulse-ring {

    top: 32px !important;

}



.asr-mic-btn {

    width: 78px !important;

    height: 78px !important;

    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.24) !important;

}



.asr-mic-btn svg {

    width: 28px !important;

    height: 28px !important;

}



.asr-mic-hint {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.9rem !important;

    color: #475569 !important;

}



.asr-waveform-canvas {

    border-radius: 1rem !important;

    background: linear-gradient(180deg, rgba(238, 242, 255, 0.7), rgba(248, 250, 252, 0.92)) !important;

    border: 1px solid rgba(199, 210, 254, 0.72);

}



.asr-output-area {

    margin-top: 1.3rem !important;

    padding: 1.2rem !important;

    border-radius: 1.45rem !important;

    border: 1px solid rgba(199, 210, 254, 0.74) !important;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)) !important;

    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.06);

}



.asr-output-label {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.72rem !important;

    letter-spacing: 0.1em !important;

}



.asr-text-display {

    min-height: 5rem !important;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.96rem !important;

    line-height: 1.8 !important;

}



.asr-action-btn {

    min-height: 2.1rem;

    padding-inline: 0.95rem !important;

    border-radius: 999px !important;

    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.12);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.78rem !important;

    letter-spacing: -0.01em;

}



.asr-action-btn--ghost {

    box-shadow: none;

    background: rgba(255, 255, 255, 0.84) !important;

}



#btn-run-stt {

    min-height: 3.65rem;

    border-radius: 1.15rem !important;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 1rem !important;

    font-weight: 800 !important;

    letter-spacing: -0.015em;

    background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important;

    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.18);

}



#btn-run-stt:hover {

    box-shadow: 0 22px 38px rgba(79, 70, 229, 0.22);

}



#pane-tts #btn-run-tts:active,
#btn-synthesize:active,

#btn-run-stt:active {

    transform: translateY(1px) scale(0.995);

}



#btn-run-stt {

    position: relative;

    overflow: hidden;

}



#btn-run-stt::before {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));

    pointer-events: none;

}



.asr-control-bar {

    min-width: 320px !important;

    padding: 0.85rem 1.15rem !important;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28) !important;

}



.asr-ctrl-center,

.asr-ctrl-timer,

.asr-ctrl-stop {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

}



#pane-results {

    margin-top: 1rem;

}



#pane-results > .flex.flex-wrap.items-center.justify-between.gap-3.mb-2,

#pane-results > .flex.items-center.gap-2.mb-4,

#asr-results-container {

    padding: 0 0.35rem;

}



#pane-results > .flex.flex-wrap.items-center.justify-between.gap-3.mb-2 {

    align-items: flex-end;

    margin-bottom: 0.8rem !important;

    padding-bottom: 0.9rem;

    border-bottom: 1px solid rgba(226, 232, 240, 0.76);

}



#pane-results > .flex.flex-wrap.items-center.justify-between.gap-3.mb-2 > .flex.items-center.gap-2 {

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 0.65rem !important;

}



#pane-results > .flex.items-center.gap-2.mb-4 {

    flex-wrap: wrap;

    gap: 0.75rem !important;

    margin-bottom: 1.15rem !important;

    padding: 1rem 1.05rem;

    border-radius: 1.15rem;

    background: linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.9));

    border: 1px solid rgba(226, 232, 240, 0.72);

}



#pane-results h2[data-i18n="results_title"] {

    font-size: 1.4rem;

    font-weight: 800;

}



#pane-results button {

    min-height: 2.5rem;

    padding-inline: 1rem;

    border-radius: 0.9rem !important;

    font-size: 0.8rem !important;

    font-weight: 800 !important;

    letter-spacing: -0.01em;

    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;

}



#pane-results button[onclick^="download"] {

    min-height: 2.75rem;

    padding-inline: 1.15rem;

    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);

}



#pane-results button[onclick="downloadSRT(this)"] {

    background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important;

}



#pane-results button[onclick="downloadVTT(this)"],

#pane-results button[onclick="downloadTXT(this)"] {

    border-width: 1px !important;

    border-color: rgba(129, 140, 248, 0.38) !important;

    background: rgba(255, 255, 255, 0.92) !important;

}



#pane-results button:hover {

    transform: translateY(-1px);

}



#pane-results label[for="include-speaker"] {

    color: #64748b !important;

}



#pane-results .ml-2 {

    margin-left: 0.1rem !important;

}



#pane-results .flex.items-center.gap-1\.5.ml-2 {

    min-height: 2.5rem;

    padding: 0 0.8rem;

    border-radius: 999px;

    background: rgba(248, 250, 252, 0.92);

    border: 1px solid rgba(226, 232, 240, 0.88);

}



#pane-results .flex.items-center.gap-1\.5.ml-2:hover {

    border-color: rgba(199, 210, 254, 0.96);

    background: rgba(255, 255, 255, 0.96);

}



#pane-results #include-speaker {

    width: 1rem;

    height: 1rem;

    border-radius: 0.35rem;

}



#asr-results-container {

    display: grid;

    gap: 1rem;

}



#pane-results:not(.hidden) #asr-results-container:empty {

    min-height: 13rem;

    place-items: center;

    border-radius: 1.6rem;

    border: 1px dashed rgba(199, 210, 254, 0.92);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94));

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);

}



#pane-results:not(.hidden) #asr-results-container:empty::before {

    content: "";

    width: 4rem;

    height: 4rem;

    border-radius: 1.25rem;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 231, 255, 0.92));

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 28px rgba(79, 70, 229, 0.08);

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M5 5.75A2.75 2.75 0 0 1 7.75 3h6.69a2.75 2.75 0 0 1 1.94.8l2.82 2.82a2.75 2.75 0 0 1 .8 1.94v7.69A2.75 2.75 0 0 1 17.25 19h-9.5A2.75 2.75 0 0 1 5 16.25v-10.5Zm8.75-.19V8a1 1 0 0 0 1 1h2.44l-3.44-3.44ZM9 11.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5H9Zm0 3a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H9Z'/%3E%3C/svg%3E") center / 2.05rem 2.05rem no-repeat;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M5 5.75A2.75 2.75 0 0 1 7.75 3h6.69a2.75 2.75 0 0 1 1.94.8l2.82 2.82a2.75 2.75 0 0 1 .8 1.94v7.69A2.75 2.75 0 0 1 17.25 19h-9.5A2.75 2.75 0 0 1 5 16.25v-10.5Zm8.75-.19V8a1 1 0 0 0 1 1h2.44l-3.44-3.44ZM9 11.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5H9Zm0 3a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H9Z'/%3E%3C/svg%3E") center / 2.05rem 2.05rem no-repeat;

    background-color: #4f46e5;

}



#asr-results-container > div {

    margin-bottom: 0 !important;

    padding: 1.2rem 1.25rem !important;

    border-radius: 1.35rem !important;

    border: 1px solid rgba(226, 232, 240, 0.82) !important;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)) !important;

    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);

}



#asr-results-container > div:hover {

    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.08);

    border-color: rgba(199, 210, 254, 0.9) !important;

}



#asr-results-container > div > .flex.justify-between.mb-2 {

    align-items: center;

    margin-bottom: 0.65rem !important;

}



#asr-results-container > div > .flex.justify-between.mb-2 > span {

    display: inline-flex;

    align-items: center;

    min-height: 1.9rem;

    padding: 0 0.7rem;

    border-radius: 999px;

    background: #eef2ff;

    color: #4338ca !important;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.74rem !important;

    font-weight: 800 !important;

    letter-spacing: 0.01em;

}



#asr-results-container > div > p {

    margin: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    font-size: 0.95rem !important;

    line-height: 1.82;

    color: #334155 !important;

}



#pane-results > .flex.flex-wrap.items-center.justify-between.gap-3.mb-2 > .flex.items-center.gap-2 > button:first-child {

    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.10);

}



.speaker-1,

.speaker-2 {

    border-radius: 1.15rem !important;

    padding: 1.1rem 1.15rem !important;

    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);

}



@media (max-width: 1100px) {

    #pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

}



@media (max-width: 960px) {

    #main-tabs-nav {

        max-width: 100%;

        margin-bottom: 1.5rem;

    }



    #pane-tts .p-8,

    #pane-stt .p-8 {

        padding: 1.6rem !important;

    }



    #pane-tts textarea#tts-text {

        min-height: 18rem !important;

    }



    #pane-tts .flex.justify-between.items-end.mb-2 {

        align-items: stretch;

    }



    #pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 {

        grid-template-columns: 1fr;

    }



    .voice-panel-layout {

        grid-template-columns: 1fr;

    }



    .voice-preset-list {

        grid-template-columns: 1fr;

    }



    .voice-selection-summary {

        position: static;

    }



    #pane-results > .flex.flex-wrap.items-center.justify-between.gap-3.mb-2 {

        align-items: stretch;

    }



    #pane-results > .flex.flex-wrap.items-center.justify-between.gap-3.mb-2 > .flex.items-center.gap-2 {

        justify-content: flex-start;

    }

}



@media (max-width: 720px) {

    nav.sticky {

        padding-left: 1rem;

        padding-right: 1rem;

    }



    .lang-switch,

    .lang-switcher {

        gap: 0.24rem;

    }



    .lang-switch-btn,

    .lang-btn {

        min-height: 1.85rem;

        padding-inline: 0.04rem;

        font-size: 0.78rem;

    }



    nav.sticky h1 {

        gap: 0.55rem;

        font-size: 1.05rem;

    }



    .brand-pill {

        display: none;

    }



    #main-tabs-nav {

        padding: 0.3rem;

    }



    .tab-active,

    .tab-inactive {

        font-size: 0.84rem !important;

    }



    #pane-tts [data-i18n="tts_title"],

    #pane-stt h2[data-i18n="stt_title"] {

        font-size: clamp(1.9rem, 8vw, 2.5rem);

    }



    #drop-zone {

        min-height: 12.5rem;

        padding-inline: 1rem;

    }



    #pane-tts .p-8,

    #pane-stt .p-8 {

        padding: 1.5rem !important;

    }



    #pane-tts [data-i18n="tts_subtitle"] {

        margin-bottom: 0.85rem !important;

        font-size: 0.86rem;

    }



    #pane-tts textarea#tts-text {

        min-height: 15rem !important;

        padding: 1rem 1rem 1.35rem !important;

        line-height: 1.75;

    }



    .voice-filter-panel {

        padding: 0.9rem !important;

        gap: 0.75rem !important;

    }



    .voice-preset-panel {

        padding: 0.9rem;

    }



    .voice-preset-list {

        grid-template-columns: 1fr;

    }



    .voice-search-results {

        max-height: min(26rem, 52vh);

    }



    .voice-preset-card {

        min-height: 0;

    }



    .voice-capability-note {

        order: 3;

        font-size: 0.76rem;

    }



    .voice-panel-intro,

    .voice-selection-summary__body {

        flex-direction: column;

        align-items: stretch;

    }



    .voice-panel-meta,

    .voice-selection-tags {

        justify-content: flex-start;

    }



    .tts-toolbar-group {

        width: 100%;

    }



    .tts-toolbar-group--plain {

        order: 2;

    }



    .voice-filter-panel > div {

        min-width: 100%;

    }



    .voice-selection-empty-guide__steps {

        flex-direction: column;

        align-items: stretch;

    }



    .voice-selection-empty-guide__steps span {

        justify-content: center;

        width: 100%;

    }



    #pane-tts > .mt-6.p-4.bg-slate-50.rounded-xl.border.border-slate-100 .space-y-4 > div {

        grid-template-columns: 2.9rem minmax(0, 1fr) auto;

        padding: 0.82rem 0.85rem;

    }



    .asr-control-bar {

        min-width: calc(100vw - 2rem) !important;

        gap: 0.8rem !important;

    }



    #drop-zone::after {

        width: min(18rem, calc(100% - 2rem));

        height: 2rem;

    }



    #pane-tts #btn-run-tts,

    #btn-run-stt {

        min-height: 3.4rem;

        font-size: 0.94rem !important;

    }



    #pane-results > .flex.flex-wrap.items-center.justify-between.gap-3.mb-2,

    #pane-results > .flex.items-center.gap-2.mb-4 {

        padding: 0;

    }



    #pane-results button[onclick^="download"],

    #pane-results button {

        width: 100%;

        justify-content: center;

    }



    #pane-results > .flex.items-center.gap-2.mb-4 {

        display: grid;

        grid-template-columns: 1fr;

        padding: 0.8rem;

    }



    #pane-results .flex.items-center.gap-1\.5.ml-2 {

        width: 100%;

        justify-content: center;

    }



    .feedback-fab {

        right: 0.75rem;

        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);

        padding: 0.72rem !important;

        opacity: 0.62;

    }



    .feedback-fab-text {

        display: none;

    }

}





.voice-helper-text {

    font-size: 0.75rem;

    line-height: 1.6;

    color: #64748b;

}



.advanced-settings-toggle {

    width: 100%;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    text-align: left;

}



.advanced-settings-title {

    width: 100%;

    min-height: 2.8rem;

    padding: 0.2rem 0;

}



.feedback-fab {

    right: 1rem;

    bottom: 1rem;

    top: auto;

    z-index: 1000;

    opacity: 0.68;

    border-radius: 999px !important;

    padding: 0.68rem 0.82rem !important;

    gap: 0.45rem;

    background: linear-gradient(135deg, rgba(79, 70, 229, 0.94), rgba(99, 102, 241, 0.92)) !important;

    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.14);

}



.feedback-fab:hover {

    opacity: 1;

    transform: translateY(-1px);

}



.feedback-fab-text {

    writing-mode: initial;

    line-height: 1;

}



.voice-preset-card__meta:empty {

    display: none;

}



/* TTS workbench redesign */

#pane-tts.tts-workbench-shell {

    position: relative;

    display: block;

    width: 100%;

    max-width: calc(100vw - 2rem);

    padding: 1.25rem;

    border-radius: 1.5rem;

    border: 1px solid rgba(226, 232, 240, 0.9);

    background: #f6f8fb;

    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.07);

    will-change: contents;

}



#pane-tts.tts-workbench-shell.hidden {

    display: none !important;

}



.tts-workbench-head {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1rem;

}



.tts-workbench-head__copy {

    min-width: 0;

}



#pane-tts .tts-workbench-head [data-i18n="tts_title"] {

    margin: 0 0 0.45rem;

    font-size: 1.55rem;

    line-height: 1.18;

    letter-spacing: 0;

    color: #111827;

}



#pane-tts .tts-workbench-head [data-i18n="tts_subtitle"] {

    max-width: 52rem;

    margin: 0 !important;

    font-size: 0.86rem;

    line-height: 1.65;

    color: #64748b;

}



#pane-tts .tts-workbench-head .mb-6 {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 0.7rem;

    margin: 0 !important;

}



#pane-tts .tts-free-ribbon {

    position: static !important;

    display: inline-flex;

    align-items: center;

    min-height: 2rem;

    flex: 0 0 auto;

    padding: 0 0.75rem !important;

    border-radius: 999px !important;

    background: #ecfdf5 !important;

    color: #047857 !important;

    font-size: 0.72rem !important;

    font-weight: 800;

    white-space: nowrap;

}



.tts-studio-layout {

    display: grid;

    grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.15fr);

    gap: 1rem;

    align-items: start;

}



.tts-voice-panel,

.tts-console-panel {

    min-width: 0;

}



.tts-console-panel {

    display: grid;

    gap: 1rem;

}



#pane-tts .tts-editor-card {

    position: relative;

    overflow: visible;

    padding: 0 !important;

    border-radius: 0.75rem !important;

    border: 1px solid rgba(226, 232, 240, 0.95) !important;

    background: #fff !important;

    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06) !important;

}



#pane-tts .tts-editor-inner {

    display: grid;

    gap: 0.7rem;

    padding: 1rem;

}



.tts-toolbar-row {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 0.55rem;

    margin-bottom: -0.25rem;

    padding: 0.45rem 0.35rem 0.35rem;

    border-bottom: 1px solid rgba(226, 232, 240, 0.86);

}



#pane-tts .tts-toolbar-group {

    display: flex;

    align-items: center;

    gap: 0.38rem;

    min-width: 0;

    padding: 0.24rem;

    border: 1px solid rgba(226, 232, 240, 0.9);

    border-radius: 0.75rem;

    background: #f8fafc;

}



#pane-tts .tts-toolbar-group--plain {

    background: #f8fafc;

}



#pane-tts .tts-toolbar-group + .tts-toolbar-group::before {

    display: none;

}



#pane-tts .tts-toolbar-group > .text-slate-200 {

    display: none;

}



#pane-tts .tts-toolbar-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 0.3rem;

    min-height: 2.15rem;

    padding: 0 0.72rem;

    border-radius: 0.6rem;

    border: 1px solid rgba(203, 213, 225, 0.95);

    background: #fff;

    color: #334155;

    font-size: 0.74rem;

    font-weight: 900;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    white-space: nowrap;

    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;

}



#pane-tts .tts-toolbar-button svg {

    width: 0.86rem;

    height: 0.86rem;

}



#pane-tts .tts-toolbar-button:hover,

#pane-tts .tts-toolbar-button:focus-visible {

    border-color: rgba(37, 99, 235, 0.46);

    background: #dbeafe;

    color: #1d4ed8;

    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);

    transform: translateY(-1px);

    outline: none;

}



#pane-tts .tts-toolbar-button:active {

    transform: translateY(0);

    box-shadow: none;

}



#pane-tts label[for="tts-break-time"] {

    margin-left: 0.3rem;

    font-size: 0.7rem;

    color: #475569;

    font-weight: 900;

    white-space: nowrap;

}



#pane-tts #tts-break-time {

    width: 4.8rem;

    min-height: 2.15rem;

    padding: 0 0.55rem;

    border-radius: 0.6rem;

    border: 1px solid rgba(147, 197, 253, 0.9);

    background: #fff;

    color: #1e293b;

    font-size: 0.78rem;

    font-weight: 800;

    outline: none;

}



#pane-tts #tts-break-time:focus {

    border-color: rgba(37, 99, 235, 0.72);

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);

}



#pane-tts .tts-toolbar-help {

    margin: 0;

    color: #64748b;

    font-size: 0.72rem;

    line-height: 1.45;

}



#pane-tts .tts-ssml-help {

    margin: 0;

    padding: 0.62rem 0.75rem;

    border-radius: 0.6rem;

    border: 1px solid rgba(226, 232, 240, 0.9);

    background: #f8fafc;

}



#pane-tts textarea#tts-text {

    width: 100%;

    min-height: 29rem !important;

    padding: 1rem 1rem 2.8rem !important;

    border-radius: 0.65rem !important;

    border: 1px solid rgba(203, 213, 225, 0.92) !important;

    background: #fff !important;

    box-shadow: none;

    font-size: 0.95rem;

    line-height: 1.82;

    resize: vertical;

}



#pane-tts #char-count-container {

    position: absolute;

    right: 0.85rem;

    bottom: 0.85rem;

    display: inline-flex;

    align-items: center;

    gap: 0.55rem;

    padding: 0.32rem 0.62rem;

    border-radius: 999px;

    border: 1px solid rgba(226, 232, 240, 0.95);

    background: rgba(255, 255, 255, 0.94);

    color: #64748b;

    font-size: 0.72rem;

    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);

}



.tts-voice-block {

    display: grid;

    gap: 0.9rem;

    margin: 0 !important;

    padding: 1rem;

    border-radius: 0.75rem;

    border: 1px solid rgba(226, 232, 240, 0.95);

    background: #fff;

    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);

}



#pane-tts .tts-voice-block > h3[data-i18n="tts_voice_select_title"] {

    margin: 0 !important;

    font-size: 1rem;

    color: #111827;

}



.tts-voice-block .voice-panel-intro {

    align-items: center;

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

}



.tts-voice-block .voice-panel-title {

    display: none;

}



.tts-voice-block .voice-panel-copy {

    margin: 0;

    font-size: 0.8rem;

    color: #64748b;

}



.voice-card-filterbar {

    display: grid;

    grid-template-columns: minmax(7.2rem, 0.32fr) minmax(6.6rem, 0.28fr) minmax(0, 1fr);

    gap: 0.5rem;

    align-items: center;

    margin-top: -0.25rem;

}



.voice-card-filterbar__field {

    min-width: 0 !important;

}



.voice-card-filterbar label {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border-width: 0;

}



.tts-legacy-voice-controls {

    display: none !important;

}



.tts-voice-block .voice-filter-panel {

    display: grid !important;

    grid-template-columns: 1fr;

    gap: 0.75rem !important;

    padding: 0 !important;

    border: none !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none;

}



.tts-voice-block .voice-filter-section-title {

    display: none;

}



.tts-voice-block .voice-filter-panel > div {

    min-width: 0;

}



.tts-voice-block .voice-filter-panel > div:not(.voice-search-field):has(#voice-filter-lang),

.tts-voice-block .voice-search-field {

    display: grid;

    gap: 0.35rem;

}



#pane-tts .tts-voice-block label[for="voice-filter-lang"],

#pane-tts .tts-voice-block label[for="voice-filter-gender"],

#pane-tts .tts-voice-block label[for="voice-filter-name"],

#pane-tts .tts-voice-block .voice-search-field label,

#pane-tts .tts-voice-block label[for="voice-filter-style"],

#pane-tts .tts-voice-block label[for="voice-filter-role"],

#pane-tts .tts-voice-block label[for="voice-filter-styledegree"],

#pane-tts .tts-voice-block #voice-filter-lang-secondary-container label {

    margin: 0;

    font-size: 0.74rem;

    font-weight: 800;

    color: #64748b;

}



#pane-tts .tts-voice-block #voice-filter-lang,

#pane-tts .tts-voice-block #voice-filter-gender,

#pane-tts .tts-voice-block .voice-search-input,

#pane-tts .tts-voice-block #voice-filter-style,

#pane-tts .tts-voice-block #voice-filter-role,

#pane-tts .tts-voice-block #voice-filter-styledegree,

#pane-tts .tts-voice-block #voice-filter-lang-secondary {

    min-height: 2.35rem;

    padding: 0.55rem 0.7rem;

    border-radius: 0.55rem;

    box-shadow: none;

    font-size: 0.82rem;

}



.voice-preset-list {

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.65rem;

    min-height: 36rem;

    max-height: 36rem;

    padding-right: 0.25rem;

}



.voice-preset-card--voice {

    display: grid;

    grid-template-columns: auto minmax(0, 1fr);

    grid-template-areas: "avatar body";

    align-content: start;

    gap: 0.65rem 0.75rem;

    min-height: 7.7rem;

    padding: 0.78rem;

    border-radius: 0.65rem;

    background: #fff;

    overflow: visible;

}



.voice-preset-card--voice.is-active {

    border-color: #2563eb;

    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), 0 16px 30px rgba(37, 99, 235, 0.16);

    background: linear-gradient(180deg, #eff6ff, #ffffff);

}



.voice-preset-card--voice.is-active::after {

    content: "";

    position: absolute;

    inset: 0 auto 0 0;

    width: 0.28rem;

    border-radius: 0.65rem 0 0 0.65rem;

    background: #2563eb;

}



.voice-preset-card--voice .voice-card-avatar {

    grid-area: avatar;

}



.voice-preset-card--voice .voice-preset-card__body {

    grid-area: body;

    gap: 0.35rem;

}



.voice-preset-card--voice .voice-preset-card__actions {

    display: none;

}



.voice-card-avatar {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    position: relative;

    width: 2.55rem;

    height: 2.55rem;

    padding: 0;

    border-radius: 0.65rem;

    border: 0;

    font-size: 1rem;

    font-weight: 900;

    cursor: pointer;

    overflow: hidden;

    isolation: isolate;

    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;

}



.voice-card-avatar:hover,

.voice-card-avatar:focus-visible {

    transform: translateY(-1px);

    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.13);

    outline: none;

}



.voice-card-avatar:focus-visible {

    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37, 99, 235, 0.42);

}



.voice-card-avatar:disabled {

    cursor: wait;

}



.voice-card-avatar__person {

    position: absolute;

    inset: 0;

    z-index: 1;

}



.voice-card-avatar__head {

    position: absolute;

    top: 0.43rem;

    left: 50%;

    width: 0.92rem;

    height: 0.92rem;

    border-radius: 999px;

    background: #fdba74;

    transform: translateX(-50%);

    box-shadow: inset 0 -0.12rem 0 rgba(154, 52, 18, 0.12);

}



.voice-card-avatar__head::before {

    content: "";

    position: absolute;

    left: -0.1rem;

    right: -0.1rem;

    top: -0.14rem;

    height: 0.46rem;

    border-radius: 999px 999px 0.45rem 0.45rem;

    background: #0f172a;

}



.voice-card-avatar__body {

    position: absolute;

    left: 50%;

    bottom: 0.34rem;

    width: 1.38rem;

    height: 0.68rem;

    border-radius: 0.68rem 0.68rem 0.22rem 0.22rem;

    background: #38bdf8;

    transform: translateX(-50%);

}



.voice-card-avatar__play {

    position: absolute;

    right: 0.18rem;

    bottom: 0.18rem;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 1.18rem;

    height: 1.18rem;

    border-radius: 999px;

    background: rgba(15, 23, 42, 0.74);

    opacity: 0.78;

    transform: scale(0.92);

    transition: inset 0.16s ease, width 0.16s ease, height 0.16s ease, border-radius 0.16s ease, opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease;

}



.voice-card-avatar__play::before {

    content: "";

    width: 0;

    height: 0;

    margin-left: 0.08rem;

    border-top: 0.22rem solid transparent;

    border-bottom: 0.22rem solid transparent;

    border-left: 0.34rem solid #fff;

}



.voice-card-avatar:hover .voice-card-avatar__play,

.voice-card-avatar:focus-visible .voice-card-avatar__play,

.voice-card-avatar.is-loading .voice-card-avatar__play,

.voice-card-avatar.is-previewing .voice-card-avatar__play {

    inset: 0;

    width: 100%;

    height: 100%;

    border-radius: inherit;

    background: rgba(15, 23, 42, 0.56);

    opacity: 1;

    transform: scale(1);

}



.voice-card-avatar.is-loading .voice-card-avatar__play::before {

    width: 0.42rem;

    height: 0.42rem;

    margin-left: 0;

    border: 2px solid rgba(255, 255, 255, 0.45);

    border-top-color: #fff;

    border-radius: 999px;

    animation: voice-preview-spin 0.8s linear infinite;

}



@keyframes voice-preview-spin {

    to {

        transform: rotate(360deg);

    }

}



.voice-card-avatar--female {

    background: linear-gradient(135deg, #ffe4e6, #fecdd3);

    color: #be123c;

}



.voice-card-avatar--female .voice-card-avatar__head::before {

    left: -0.18rem;

    right: -0.18rem;

    top: -0.2rem;

    height: 0.72rem;

    border-radius: 999px 999px 0.65rem 0.65rem;

    background: #be185d;

}



.voice-card-avatar--female .voice-card-avatar__body {

    background: #ec4899;

}



.voice-card-avatar--male {

    background: linear-gradient(135deg, #dbeafe, #c7d2fe);

    color: #1d4ed8;

}



.voice-card-avatar--male .voice-card-avatar__head::before {

    background: #1e3a8a;

}



.voice-card-avatar--male .voice-card-avatar__body {

    background: #2563eb;

}



.voice-card-avatar--multi {

    background: linear-gradient(135deg, #cffafe, #dbeafe);

    color: #0e7490;

}



.voice-card-avatar--multi .voice-card-avatar__head::before {

    background: #0f766e;

}



.voice-card-avatar--multi .voice-card-avatar__body {

    background: #06b6d4;

}



.voice-card-avatar--neutral {

    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);

    color: #475569;

}



.voice-card-avatar--neutral .voice-card-avatar__head::before {

    background: #475569;

}



.voice-card-avatar--neutral .voice-card-avatar__body {

    background: #64748b;

}



.voice-card-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 0.28rem;

    min-height: 1.35rem;

}



.voice-card-tags span {

    display: inline-flex;

    align-items: center;

    min-height: 1.35rem;

    padding: 0 0.42rem;

    border-radius: 0.24rem;

    background: #eff6ff;

    color: #2563eb;

    font-size: 0.66rem;

    font-weight: 800;

    line-height: 1;

}



.voice-grid-expand {

    grid-column: 1 / -1;

    min-height: 2.6rem;

    border-radius: 0.65rem;

    border: 1px dashed rgba(59, 130, 246, 0.45);

    background: #eff6ff;

    color: #1d4ed8;

    font-size: 0.82rem;

    font-weight: 900;

    cursor: pointer;

}



.voice-preset-list {

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.5rem;

    min-height: 21rem;

    max-height: 47rem;

    overflow-y: auto;

    padding-right: 0.2rem;

    align-content: start;

}



.voice-preset-card--voice {

    grid-template-columns: 1.8rem minmax(0, 1fr);

    gap: 0.35rem;

    min-height: 3.2rem;

    padding: 0.35rem 0.4rem;

    border-radius: 0.4rem;

    align-items: center;

    overflow: hidden;

}



.voice-preset-card--voice::before {

    display: none;

}



.voice-preset-card--voice.is-active {

    background: #eff6ff;

    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16), 0 8px 18px rgba(37, 99, 235, 0.10);

}



.voice-preset-card--voice.is-active::after {

    width: 0.18rem;

    border-radius: 0.5rem 0 0 0.5rem;

}



.voice-preset-card--voice .voice-card-avatar {

    width: 1.8rem;

    height: 1.8rem;

    border-radius: 0.4rem;

    font-size: 0.8rem;

}



.voice-preset-card--voice .voice-preset-card__body {

    gap: 0.12rem;

    min-width: 0;

}



.voice-preset-card--voice .voice-preset-card__main {

    min-width: 0;

}



.voice-preset-card--voice .voice-preset-card__title-row {

    display: flex;

    align-items: center;

    min-width: 0;

}



.voice-preset-card--voice .voice-preset-card__title {

    flex: 1 1 auto;

    min-width: 0;

    font-size: 0.82rem;

    line-height: 1.15;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.voice-preset-card--voice .voice-preset-card__desc {

    font-size: 0.68rem;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.voice-preset-card--voice .voice-preset-card__meta {

    display: none;

}



.voice-preset-card--voice .voice-card-tags {

    display: flex;

    flex-wrap: nowrap;

    gap: 0.18rem;

    min-height: 1rem;

    overflow: hidden;

}



.voice-preset-card--voice .voice-card-tags span {

    display: inline-flex;

    align-items: center;

    flex: 0 1 auto;

    max-width: 4.8rem;

    min-height: 1rem;

    padding: 0 0.28rem;

    border-radius: 0.22rem;

    font-size: 0.58rem;

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.voice-preset-card--voice .voice-card-tags .voice-card-tag--gender {

    flex: 0 0 auto;

    min-width: 1.1rem;

    justify-content: center;

    border: 1px solid rgba(148, 163, 184, 0.26);

}



.voice-preset-card--voice .voice-card-tags .voice-card-tag--female {

    background: #fce7f3;

    color: #be185d;

}



.voice-preset-card--voice .voice-card-tags .voice-card-tag--male {

    background: #dbeafe;

    color: #1d4ed8;

}



.voice-preset-card--voice .voice-card-tags .voice-card-tag--style {

    background: #ecfdf5;

    color: #047857;

}



.voice-preset-card--voice .voice-card-tags .voice-card-tag--role {

    background: #fff7ed;

    color: #c2410c;

}



.voice-preset-card--voice .voice-card-tags .voice-card-tag--multi {

    background: #eef2ff;

    color: #4338ca;

}



@media (max-width: 900px) {

    .voice-preset-list {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

}



@media (max-width: 520px) {

    .voice-preset-list {

        grid-template-columns: 1fr;

    }

}



.voice-capability-note {

    border-radius: 0.65rem;

}



.voice-selection-summary {

    position: static;

    border-radius: 0.75rem;

}



.advanced-settings-card,

#pane-tts #tts-audio-container {

    margin: 0 !important;

    padding: 0.95rem !important;

    border-radius: 0.75rem !important;

    border: 1px solid rgba(226, 232, 240, 0.95) !important;

    background: #fff !important;

    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);

}



#pane-tts #tts-audio-container h4 {

    margin: 0;

    font-size: 0.86rem;

    color: #111827;

}



.advanced-settings-title {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    min-height: 2.2rem;

    padding: 0;

    color: #111827;

    font-size: 0.9rem;

    font-weight: 900;

}



#advanced-settings-panel {

    margin-top: 0.7rem;

}



#advanced-settings-panel.space-y-4 {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.75rem;

}



#advanced-settings-panel.space-y-4 > :not(:first-child) {

    margin-top: 0;

}



.tts-director-controls {

    grid-column: 1 / -1;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.75rem;

}



.tts-director-control {

    display: grid;

    gap: 0.42rem;

    min-width: 0 !important;

    padding: 0.78rem;

    border-radius: 0.65rem;

    border: 1px solid rgba(199, 210, 254, 0.74);

    background: linear-gradient(180deg, #f8fafc, #fff);

}



.tts-director-control.hidden {

    display: none !important;

}



#advanced-settings-panel .tts-director-control label {

    margin: 0;

    color: #475569;

    font-size: 0.76rem;

    font-weight: 900;

}



#advanced-settings-panel .tts-director-control select {

    width: 100%;

    min-height: 2.55rem;

    padding: 0.65rem 0.75rem;

    border-radius: 0.55rem;

    border: 1px solid rgba(203, 213, 225, 0.92);

    background: #fff;

    color: #1e293b;

    font-size: 0.84rem;

    font-weight: 800;

    box-shadow: none;

    outline: none;

}



#advanced-settings-panel .tts-director-control select:focus {

    border-color: rgba(79, 70, 229, 0.48);

    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);

}



.tts-range-row {

    display: grid !important;

    grid-template-columns: minmax(3.4rem, 1fr) auto;

    grid-template-areas:

        "label value"

        "range range";

    align-items: center;

    gap: 0.45rem 0.7rem;

    min-width: 0;

    padding: 0.78rem;

    border-radius: 0.65rem;

    border: 1px solid rgba(226, 232, 240, 0.92);

    background: #f8fafc;

}



.tts-range-row label,

.tts-range-row span {

    width: auto !important;

    color: #475569;

    font-size: 0.76rem;

    font-weight: 800;

    white-space: nowrap;

}



.tts-range-row label {

    grid-area: label;

}



.tts-range-row span {

    grid-area: value;

    text-align: right;

}



.tts-range-row input[type="range"] {

    grid-area: range;

    width: 100%;

    min-width: 0;

}



#advanced-settings-panel > div:has(input[type="range"]) {

    display: grid !important;

    grid-template-columns: minmax(4.5rem, 1fr) auto !important;

    grid-template-areas:

        "label value"

        "range range" !important;

    align-items: center !important;

    gap: 0.45rem 0.7rem !important;

    min-width: 0 !important;

    padding: 0.78rem !important;

    border-radius: 0.65rem !important;

    border: 1px solid rgba(226, 232, 240, 0.92) !important;

    background: #f8fafc !important;

}



#advanced-settings-panel > div:has(input[type="range"]) > label {

    grid-area: label !important;

    width: auto !important;

    min-width: 0 !important;

    margin: 0 !important;

    color: #475569 !important;

    font-size: 0.76rem !important;

    font-weight: 800 !important;

    line-height: 1.2 !important;

    white-space: nowrap !important;

    writing-mode: horizontal-tb !important;

}



#advanced-settings-panel > div:has(input[type="range"]) > input[type="range"] {

    grid-area: range !important;

    width: 100% !important;

    min-width: 0 !important;

}



#advanced-settings-panel > div:has(input[type="range"]) > span {

    grid-area: value !important;

    width: auto !important;

    min-width: 2.4rem !important;

    margin: 0 !important;

    color: #475569 !important;

    font-size: 0.76rem !important;

    font-weight: 800 !important;

    line-height: 1.2 !important;

    text-align: right !important;

    white-space: nowrap !important;

}



#pane-tts #btn-run-tts,
#btn-synthesize {

    width: 100%;

    min-height: 3.25rem;

    margin: 0 !important;

    border: none;

    border-radius: 0.75rem;

    background: linear-gradient(135deg, #2563eb, #4f46e5);

    color: #fff;

    font-size: 0.96rem;

    font-weight: 900;

    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);

    cursor: pointer;

}



#pane-tts #prog-tts {

    margin: 0;

    padding: 0.15rem 0.1rem;

}



/* Final nav menu overrides. Keep this late so page-specific button styles cannot win after refresh. */

nav.sticky .nav-dropdown-container {

    position: relative !important;

}



nav.sticky .nav-dropdown-btn {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-height: 2.25rem !important;

    position: relative !important;

    padding: 0 0.25rem !important;

    border: 1px solid transparent !important;

    border-radius: 0 !important;

    background: transparent !important;

    color: #475569 !important;

    box-shadow: none !important;

    font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-display: swap;

    font-size: 0.86rem !important;

    font-weight: 800 !important;

    letter-spacing: 0 !important;

    line-height: 1 !important;

    cursor: pointer !important;

}



nav.sticky .nav-dropdown-container:hover .nav-dropdown-btn,

nav.sticky .nav-dropdown-container.is-open .nav-dropdown-btn,

nav.sticky .nav-dropdown-container:focus-within .nav-dropdown-btn {

    color: #1d4ed8 !important;

    background: transparent !important;

    border-color: transparent !important;

    box-shadow: none !important;

}



nav.sticky .nav-dropdown-menu {

    right: 0 !important;

    top: calc(100% + 0.55rem) !important;

    width: 13.25rem !important;

    margin-top: 0 !important;

    padding: 0.45rem !important;

    overflow: visible !important;

    border-radius: 0.8rem !important;

    border: 1px solid rgba(226, 232, 240, 0.95) !important;

    background: rgba(255, 255, 255, 0.98) !important;

    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13), 0 3px 12px rgba(79, 70, 229, 0.06) !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transform: translateY(-0.35rem) scale(0.98) !important;

}



nav.sticky .nav-dropdown-container:hover .nav-dropdown-menu,

nav.sticky .nav-dropdown-container.is-open .nav-dropdown-menu,

nav.sticky .nav-dropdown-container:focus-within .nav-dropdown-menu {

    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    transform: translateY(0) scale(1) !important;

}



/* Keep only the active dropdown visible while moving across nav items. */

nav.sticky:hover .nav-dropdown-menu,

nav.sticky:focus-within .nav-dropdown-menu {

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transform: translateY(-0.35rem) scale(0.98) !important;

}



nav.sticky .nav-dropdown-container:hover > .nav-dropdown-menu,

nav.sticky .nav-dropdown-container.is-open > .nav-dropdown-menu,

nav.sticky .nav-dropdown-container:focus-within > .nav-dropdown-menu {

    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    transform: translateY(0) scale(1) !important;

}



nav.sticky .nav-dropdown-menu a {

    display: flex !important;

    align-items: center !important;

    min-height: 2.35rem !important;

    padding: 0.62rem 0.75rem !important;

    border-radius: 0.55rem !important;

    color: #475569 !important;

    background: transparent !important;

    text-decoration: none !important;

    font-size: 0.8rem !important;

    font-weight: 800 !important;

    line-height: 1.25 !important;

    white-space: normal !important;

}



nav.sticky .nav-dropdown-menu a:hover {

    color: #4338ca !important;

    background: #f8fafc !important;

}



nav.sticky .nav-dropdown-menu a.bg-indigo-50,

nav.sticky .nav-dropdown-menu a.text-indigo-600 {

    color: #1d4ed8 !important;

    background: #f8fbff !important;

    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.55) !important;

}



/* Lightweight SaaS nav states: text color + hairline, no heavy pills. */

nav.sticky {

    border-bottom: 1px solid rgba(241, 245, 249, 0.98) !important;

    box-shadow: none !important;

}



nav.sticky .nav-primary-link {

    position: relative !important;

    background: transparent !important;

    box-shadow: none !important;

}



nav.sticky .nav-primary-link::after {

    content: "" !important;

    position: absolute !important;

    left: 0.1rem !important;

    right: 0.1rem !important;

    bottom: -0.62rem !important;

    height: 1px !important;

    background: transparent !important;

    transform: scaleX(0) !important;

    transform-origin: center !important;

    transition: background-color 0.18s ease, transform 0.18s ease !important;

}



nav.sticky .nav-primary-link:hover,

nav.sticky .nav-primary-link.is-active,

nav.sticky .nav-primary-link[aria-current="page"] {

    color: #1d4ed8 !important;

    background: transparent !important;

}



nav.sticky .nav-primary-link.is-active::after,

nav.sticky .nav-primary-link[aria-current="page"]::after {

    background: #1d4ed8 !important;

    transform: scaleX(1) !important;

}



nav.sticky .lang-switch,

nav.sticky .lang-switcher {

    display: inline-flex !important;

    align-items: center !important;

    gap: 0.28rem !important;

    min-height: 2.25rem !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

}



nav.sticky .lang-switch-btn,

nav.sticky .lang-btn {

    appearance: none !important;

    min-height: 2.25rem !important;

    padding: 0 0.04rem !important;

    border: 0 !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    color: #64748b !important;

    line-height: 1 !important;

}



nav.sticky .lang-switch-btn:hover,

nav.sticky .lang-btn:hover {

    color: #4338ca !important;

}



nav.sticky .lang-switch-btn.is-active,

nav.sticky .lang-btn.is-active {

    color: #1d4ed8 !important;

    background: transparent !important;

    box-shadow: none !important;

    font-weight: 800 !important;

}



nav.sticky .lang-separator,

nav.sticky .lang-switch > span {

    color: #cbd5e1 !important;

    font-size: 0.78rem !important;

    line-height: 1 !important;

}



nav.sticky h1 {

    gap: 0.6rem !important;

}



nav.sticky .brand-pill {

    max-width: 6.5rem !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    white-space: nowrap !important;

    color: #64748b !important;

    font-size: 0.72rem !important;

    font-weight: 700 !important;

    letter-spacing: 0 !important;

}



nav.sticky .nav-product-area {

    position: relative !important;

    gap: 1rem !important;

    margin-left: 0.45rem !important;

    padding-left: 1.1rem !important;

}



nav.sticky .nav-product-area::before {

    content: "" !important;

    position: absolute !important;

    left: 0 !important;

    top: 50% !important;

    width: 1px !important;

    height: 1.15rem !important;

    background: rgba(203, 213, 225, 0.72) !important;

    transform: translateY(-50%) !important;

}



#main-tabs-nav {

    gap: 1.35rem !important;

    padding: 0 !important;

    border: 0 !important;

    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

}



#main-tabs-nav .tab-active,

#main-tabs-nav .tab-inactive {

    position: relative !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

}



#main-tabs-nav .tab-active {

    color: #1d4ed8 !important;

}



#main-tabs-nav .tab-inactive {

    color: #64748b !important;

}



#main-tabs-nav .tab-active::after,

#main-tabs-nav .tab-inactive::after {

    content: "" !important;

    position: absolute !important;

    left: 0 !important;

    right: 0 !important;

    bottom: -1px !important;

    height: 1px !important;

    background: transparent !important;

    transform: scaleX(0) !important;

}



#main-tabs-nav .tab-active::after {

    background: #1d4ed8 !important;

    transform: scaleX(1) !important;

}



@media (max-width: 1180px) {

    .tts-studio-layout {

        grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1fr);

    }



    .voice-preset-list {

        grid-template-columns: 1fr;

    }



    #advanced-settings-panel.space-y-4 {

        grid-template-columns: 1fr;

    }



    .tts-director-controls {

        grid-template-columns: 1fr;

    }

}



@media (max-width: 900px) {

    #pane-tts.tts-workbench-shell {

        max-width: calc(100vw - 1rem);

        padding: 0.8rem;

        padding-bottom: calc(5.8rem + env(safe-area-inset-bottom, 0px));

        border-radius: 1rem;

    }



    .tts-workbench-head {

        flex-direction: column;

    }



    .tts-studio-layout {

        grid-template-columns: 1fr;

    }



    .tts-console-panel {

        order: 1;

    }



    .tts-voice-panel {

        order: 2;

    }



    .tts-toolbar-row {

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;

    }



    .tts-toolbar-row::-webkit-scrollbar {

        display: none;

    }



    #pane-tts textarea#tts-text {

        min-height: 18rem !important;

    }



    .voice-preset-list {

        max-height: none;

        overflow: visible;

        padding-right: 0;

    }



    #pane-tts #btn-run-tts {

        position: fixed;

        left: 1rem;

        right: 1rem;

        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.85rem);

        z-index: 900;

        width: auto;

        min-height: 3.45rem;

        border-radius: 999px;

    }



    .feedback-fab {

        bottom: calc(env(safe-area-inset-bottom, 0px) + 5.1rem);

    }

}

/* Keep the workbench voice grid boxed so late card injection cannot shift the page. */
#pane-tts.tts-workbench-shell .voice-preset-list {
    min-height: 36rem;
    max-height: 36rem;
    overflow-y: auto;
}

#pane-tts.tts-workbench-shell .voice-preset-list .skeleton {
    min-height: 7.7rem;
    background: #e2e8f0;
    border-radius: 0.65rem;
}

@media (max-width: 900px) {
    #pane-tts.tts-workbench-shell .voice-preset-list {
        min-height: 28rem;
        max-height: 28rem;
    }
}



@media (max-width: 560px) {

    #pane-tts .tts-editor-inner,

    .tts-voice-block {

        padding: 0.8rem;

    }



    .voice-card-filterbar {

        grid-template-columns: 1fr;

    }



    #pane-tts .tts-toolbar-group {

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;

    }



    #pane-tts .tts-toolbar-group::-webkit-scrollbar {

        display: none;

    }



    .voice-preset-card--voice {

        min-height: 4.25rem;

    }



    .tts-workbench-head [data-i18n="tts_long_text_contact"] {

        width: 100%;

        justify-content: center;

    }

}

/* Voice Card and List Modern Layout - Fix Text & Tag Overflow */
.voice-preset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem !important;
    padding-right: 0.3rem !important;
}

.voice-preset-card--voice {
    height: auto !important;
    min-height: 4.4rem !important;
    max-height: none !important;
    grid-template-columns: 2.2rem minmax(0, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.6rem !important;
    border-radius: 0.65rem !important;
    align-items: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.2s ease !important;
}

.voice-preset-card--voice:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

.voice-preset-card--voice.is-active {
    background: #f0f7ff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}

.voice-preset-card--voice .voice-card-avatar {
    width: 2.2rem !important;
    height: 2.2rem !important;
    border-radius: 0.5rem !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.voice-preset-card--voice .voice-preset-card__body {
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.18rem !important;
}

.voice-preset-card--voice .voice-preset-card__title-row {
    min-width: 0 !important;
}

.voice-preset-card--voice .voice-preset-card__title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

.voice-preset-card--voice .voice-preset-card__desc {
    font-size: 0.68rem !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

.voice-preset-card--voice .voice-card-tags {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.22rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin-top: 0.1rem !important;
}

.voice-preset-card--voice .voice-card-tags span {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
    padding: 0.1rem 0.32rem !important;
    border-radius: 0.25rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 4.8rem !important;
    flex-shrink: 0 !important;
}




/* =======================================================
   Mobile Navigation & Layout Optimization (Screen <= 768px)
   ======================================================= */
@media (max-width: 768px) {
    /* 1. Header Navigation Bar Fix - Prevent Text Vertical Collapsing */
    nav.sticky {
        height: 3.75rem !important;
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        gap: 0.5rem !important;
    }

    nav.sticky h1 {
        font-size: 1.05rem !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    nav.sticky h1 img.brand-mark {
        width: 26px !important;
        height: 26px !important;
    }

    /* Hide desktop nav areas to prevent text collapsing vertically */
    .nav-product-area {
        display: none !important;
    }

    .nav-utility-area .nav-dropdown-container,
    .nav-utility-area > a {
        display: none !important;
    }

    .nav-utility-area {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
    }

    /* 2. Main Page Layout & Card Width Optimization */
    main {
        max-width: 100% !important;
        padding-top: 0.75rem !important;
        padding-bottom: 2rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    #main-tabs-nav {
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        gap: 0.35rem !important;
        padding: 0.25rem !important;
    }

    #main-tabs-nav button {
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        font-size: 0.82rem !important;
    }

    /* 3. Workbench Panels - maximize working area */
    #pane-tts > div,
    #pane-stt > div,
    #pane-voice-design > div {
        padding: 1rem 0.85rem !important;
        border-radius: 1rem !important;
    }

    /* 4. TTS Toolbar & Input Optimization */
    #pane-tts .flex.justify-between.items-end.mb-2 {
        gap: 0.4rem !important;
        margin-bottom: 0.6rem !important;
    }

    #pane-tts textarea#tts-text {
        font-size: 15px !important;
        min-height: 14rem !important;
    }

    /* Button Wrap on Small Screens */
    .tts-toolbar-group {
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn,
    .mobile-nav-drawer {
        display: none !important;
    }
}

.mobile-drawer-link {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mobile-drawer-link:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.mobile-drawer-sublink {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s ease;
}
.mobile-drawer-sublink:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}
