:root {
    --neo-bg: #ff7c72;
    --neo-bg-alt: #ffd66b;
    --neo-surface: #fff4d6;
    --neo-surface-2: #fff;
    --neo-ink: #111;
    --neo-accent: #2f7cff;
    --neo-accent-2: #57d66f;
    --neo-danger: #ff4a4a;
    --neo-warning: #ffd54f;
    --neo-shadow: 6px 6px 0 #111;
    --neo-shadow-lg: 10px 10px 0 #111;
    --neo-border: 3px solid #111;
    --neo-radius: 8px;
}

* {
    box-sizing: border-box;
}

.neo-theme {
    margin: 0;
    min-height: 100vh;
    background: var(--neo-bg);
    color: var(--neo-ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    letter-spacing: 0.01em;
    --text-primary: #111;
    --text-secondary: #1f1f1f;
    --text-muted: #3a3a3a;
}

.neo-theme .hidden {
    display: none !important;
}

.neo-theme .bg-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.neo-theme .bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.16) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.16) 2px, transparent 2px);
    background-size: 38px 38px;
    opacity: 0.35;
    animation: neoGridMove 20s linear infinite;
}

.neo-theme .bg-noise {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(17, 17, 17, 0.1) 1px, transparent 1px);
    background-size: 9px 9px;
    opacity: 0.18;
}

.neo-theme .bg-orb {
    border: var(--neo-border);
    border-radius: 999px;
    background: var(--neo-warning);
    box-shadow: var(--neo-shadow);
    filter: none;
    animation: neoFloat 10s ease-in-out infinite;
}

.neo-theme .orb-a {
    width: 180px;
    height: 180px;
    top: 8%;
    left: 3%;
    animation-delay: 0s;
}

.neo-theme .orb-b {
    width: 140px;
    height: 140px;
    top: 70%;
    left: 8%;
    background: #7ad8ff;
    animation-delay: -2s;
}

.neo-theme .orb-c {
    width: 240px;
    height: 240px;
    right: 4%;
    top: 13%;
    background: #ffd07d;
    animation-delay: -4s;
}

.neo-theme .orb-d {
    width: 130px;
    height: 130px;
    right: 8%;
    bottom: 8%;
    background: #b3ff89;
    animation-delay: -6s;
}

.neo-theme .bg-particles span {
    display: block;
    position: absolute;
    width: 22px;
    height: 22px;
    border: var(--neo-border);
    background: #fff;
    box-shadow: var(--neo-shadow);
    animation: neoParticle 16s linear infinite;
}

.neo-theme .bg-particles span:nth-child(1) {
    top: 16%;
    left: 22%;
    animation-delay: 0s;
}

.neo-theme .bg-particles span:nth-child(2) {
    top: 22%;
    left: 70%;
    animation-delay: -3s;
}

.neo-theme .bg-particles span:nth-child(3) {
    top: 55%;
    left: 62%;
    animation-delay: -7s;
}

.neo-theme .bg-particles span:nth-child(4) {
    top: 72%;
    left: 30%;
    animation-delay: -1s;
}

.neo-theme .bg-particles span:nth-child(5) {
    top: 40%;
    left: 8%;
    animation-delay: -5s;
}

.neo-theme .bg-particles span:nth-child(6) {
    top: 86%;
    left: 75%;
    animation-delay: -9s;
}

.neo-theme .bg-particles span:nth-child(7) {
    top: 10%;
    left: 48%;
    animation-delay: -11s;
}

.neo-theme .bg-particles span:nth-child(8) {
    top: 62%;
    left: 87%;
    animation-delay: -13s;
}

.neo-announcement {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: var(--neo-border);
    border-top: var(--neo-border);
    background: linear-gradient(90deg, #ff966a 0%, #ffe368 100%);
    padding: 10px 16px;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.neo-announcement-text {
    display: inline-block;
    animation: neoTicker 16s linear infinite;
}

.neo-theme .container {
    width: min(1240px, calc(100% - 24px)) !important;
    max-width: none !important;
    margin: 22px auto 32px;
    position: relative;
    padding: 16px 0 !important;
    min-height: auto !important;
    display: block !important;
    justify-content: initial !important;
    align-items: stretch !important;
}

.neo-theme .header {
    text-align: center;
    padding: 28px 22px 22px;
    border: 4px solid #111;
    border-radius: 12px;
    box-shadow: var(--neo-shadow-lg);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 234, 146, 0.5), transparent 33%),
        radial-gradient(circle at 88% 22%, rgba(135, 198, 255, 0.45), transparent 36%),
        linear-gradient(160deg, #ff8f86 0%, #ff827f 100%);
    position: relative;
    display: grid;
    justify-items: center;
    gap: 14px;
    overflow: hidden;
}

.neo-theme .header::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -38px;
    bottom: -48px;
    border: var(--neo-border);
    border-radius: 999px;
    background: #ffe48a;
    box-shadow: 6px 6px 0 #111;
    opacity: 0.75;
}


.neo-theme .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Archivo Black", "Impact", fantasy;
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 0;
    text-transform: uppercase;
    background: #fffdfa;
    border: 4px solid #111;
    box-shadow: var(--neo-shadow);
    padding: 12px 18px;
    color: #111;
    -webkit-text-fill-color: #111;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    filter: none;
    position: relative;
    z-index: 1;
}

.neo-theme .logo::before {
    content: "STUDIO";
    position: absolute;
    left: 10px;
    top: -15px;
    border: var(--neo-border);
    border-radius: 999px;
    background: #a9f0ff;
    padding: 2px 8px;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    font-family: "Archivo Black", "Impact", fantasy;
    box-shadow: 2px 2px 0 #111;
}

.neo-theme .logo-icon {
    font-size: 0.8em;
    color: var(--neo-accent);
    -webkit-text-fill-color: var(--neo-accent);
    -webkit-background-clip: border-box;
    background-clip: border-box;
    filter: none;
}

.neo-theme .tagline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 0;
    color: #111;
    -webkit-text-fill-color: #111;
    border: var(--neo-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--neo-shadow);
    padding: 7px 10px;
    position: relative;
    z-index: 1;
}

.neo-theme .tagline span {
    border: var(--neo-border);
    background: #fff7d8;
    padding: 6px 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 #111;
    color: #111;
    -webkit-text-fill-color: #111;
    border-radius: 999px;
    font-size: 0.88rem;
    line-height: 1.1;
}

.neo-theme .slogan {
    margin: 0;
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    font-weight: 700;
    color: #1a1a1a;
    -webkit-text-fill-color: #1a1a1a;
    max-width: 720px;
    border: var(--neo-border);
    border-radius: 10px;
    background: #fffdf3;
    box-shadow: 4px 4px 0 #111;
    padding: 10px 14px;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

.neo-theme .main {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100% !important;
    max-width: none !important;
}

.neo-theme .main>* {
    width: 100%;
}

.neo-theme .workspace-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border: var(--neo-border);
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow);
    background: #fff;
}

.neo-theme .workspace-btn,
.neo-theme .studio-nav-btn,
.neo-theme .filter-chip,
.neo-theme .sm-btn,
.neo-theme .clear-btn,
.neo-theme .text-btn {
    appearance: none;
    border: var(--neo-border);
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-weight: 700;
    font-family: "Space Grotesk", sans-serif;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    box-shadow: 3px 3px 0 #111;
}

.neo-theme .workspace-btn,
.neo-theme .studio-nav-btn {
    padding: 9px 14px;
}

.neo-theme .workspace-btn.active,
.neo-theme .studio-nav-btn.active,
.neo-theme .filter-chip.active {
    background: var(--neo-warning);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #111;
}

.neo-theme .workspace-btn:hover,
.neo-theme .studio-nav-btn:hover,
.neo-theme .filter-chip:hover,
.neo-theme .sm-btn:hover,
.neo-theme .clear-btn:hover,
.neo-theme .text-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #111;
}

.neo-theme .workspace-btn:active,
.neo-theme .studio-nav-btn:active,
.neo-theme .filter-chip:active,
.neo-theme .sm-btn:active,
.neo-theme .clear-btn:active,
.neo-theme .text-btn:active,
.neo-theme .fetch-btn:active,
.neo-theme .download-btn:active,
.neo-theme .thumb-btn:active,
.neo-theme .live-btn:active,
.neo-theme .convert-run-btn:active,
.neo-theme .convert-download-btn:active,
.neo-theme .preset-btn:active,
.neo-theme .frame-extract-btn:active,
.neo-theme .frame-zip-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 #111;
}

.neo-theme .input-section,
.neo-theme .features-section,
.neo-theme #videoCard,
.neo-theme #playlistCard,
.neo-theme #liveRecordCard,
.neo-theme #frameExtractorCard,
.neo-theme .convert-studio-card,
.neo-theme .tool-card,
.neo-theme #jobsCard,
.neo-theme #historySection {
    border: 4px solid #111;
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow-lg);
    background: var(--neo-surface);
    padding: 12px;
}

.neo-theme .input-section {
    padding: 16px;
}

.neo-theme .input-wrapper {
    display: grid;
    grid-template-columns: 52px 1fr 52px auto;
    gap: 10px;
    border: var(--neo-border);
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--neo-shadow);
}

.neo-theme .platform-icon,
.neo-theme .paste-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--neo-border);
    border-radius: 6px;
    background: #fff;
    font-size: 1.2rem;
    box-shadow: 3px 3px 0 #111;
}

.neo-theme .url-input,
.neo-theme .convert-input,
.neo-theme .frame-input,
.neo-theme .quality-select,
.neo-theme .convert-select,
.neo-theme .frame-select,
.neo-theme .live-segment-input-wrap input,
.neo-theme textarea,
.neo-theme input[type="text"],
.neo-theme input[type="number"],
.neo-theme input[type="file"],
.neo-theme select {
    width: 100%;
    border: var(--neo-border);
    border-radius: 6px;
    background: #fff;
    padding: 12px 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    color: #111;
    box-shadow: 3px 3px 0 #111;
}

.neo-theme .url-input::placeholder,
.neo-theme .convert-input::placeholder,
.neo-theme .frame-input::placeholder,
.neo-theme .live-segment-input-wrap input::placeholder,
.neo-theme textarea::placeholder,
.neo-theme input::placeholder {
    color: rgba(17, 17, 17, 0.62);
    -webkit-text-fill-color: rgba(17, 17, 17, 0.62);
}

.neo-theme textarea {
    min-height: 120px;
    resize: vertical;
}

.neo-theme .url-input:focus,
.neo-theme .convert-input:focus,
.neo-theme .frame-input:focus,
.neo-theme .quality-select:focus,
.neo-theme .convert-select:focus,
.neo-theme .frame-select:focus,
.neo-theme .live-segment-input-wrap input:focus,
.neo-theme textarea:focus,
.neo-theme input:focus,
.neo-theme select:focus {
    outline: none;
    box-shadow: 0 0 0 3px #111, 6px 6px 0 #111;
}

.neo-theme .fetch-btn,
.neo-theme .download-btn,
.neo-theme .thumb-btn,
.neo-theme .live-btn,
.neo-theme .convert-run-btn,
.neo-theme .convert-download-btn,
.neo-theme .preset-btn,
.neo-theme .frame-extract-btn,
.neo-theme .frame-zip-btn,
.neo-theme .format-btn,
.neo-theme .convert-switch-btn,
.neo-theme .frame-source-btn,
.neo-theme .live-watch-link,
.neo-theme .frame-pick-btn,
.neo-theme .convert-pick-btn {
    border: var(--neo-border);
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-weight: 800;
    font-family: "Space Grotesk", sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 4px 4px 0 #111;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.neo-theme .fetch-btn {
    min-width: 140px;
    padding: 0 22px;
    background: var(--neo-warning);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: "Archivo Black", "Impact", fantasy;
}

.neo-theme .fetch-btn .btn-loader {
    display: none;
}

.neo-theme .fetch-btn.loading .btn-text {
    display: none !important;
}

.neo-theme .fetch-btn.loading .btn-loader {
    display: inline-block !important;
}

.neo-theme .fetch-btn:hover,
.neo-theme .download-btn:hover,
.neo-theme .thumb-btn:hover,
.neo-theme .live-btn:hover,
.neo-theme .convert-run-btn:hover,
.neo-theme .convert-download-btn:hover,
.neo-theme .preset-btn:hover,
.neo-theme .frame-extract-btn:hover,
.neo-theme .frame-zip-btn:hover,
.neo-theme .format-btn:hover,
.neo-theme .convert-switch-btn:hover,
.neo-theme .frame-source-btn:hover,
.neo-theme .live-watch-link:hover,
.neo-theme .frame-pick-btn:hover,
.neo-theme .convert-pick-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 #111;
}

.neo-theme .download-btn,
.neo-theme .convert-run-btn,
.neo-theme .frame-extract-btn,
.neo-theme .live-start-btn {
    background: var(--neo-accent-2);
}

.neo-theme .thumb-btn,
.neo-theme .convert-download-btn,
.neo-theme .frame-zip-btn,
.neo-theme .live-download-btn,
.neo-theme .live-stop-btn {
    background: #fff;
}

.neo-theme .live-stop-btn {
    background: #ffb4b4;
}

.neo-theme .supported-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.neo-theme .platform-badge {
    border: var(--neo-border);
    border-radius: 999px;
    background: #fff;
    padding: 6px 13px;
    font-weight: 700;
    box-shadow: 3px 3px 0 #111;
    color: #111;
    -webkit-text-fill-color: #111;
    height: auto;
    min-height: 37px;
    line-height: 1.2;
    font-size: 0.9rem;
}

.neo-theme .platform-badge i,
.neo-theme .tagline i,
.neo-theme .logo i {
    -webkit-text-fill-color: currentColor;
}

.neo-theme .features-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
}

.neo-theme .feature-card {
    border: var(--neo-border);
    border-radius: 6px;
    background: #fff;
    padding: 22px 16px;
    box-shadow: var(--neo-shadow);
    text-align: center;
}

.neo-theme .feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border: var(--neo-border);
    border-radius: 8px;
    background: var(--neo-warning);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    box-shadow: 3px 3px 0 #111;
}

.neo-theme .feature-card h3 {
    margin: 8px 0;
    font-family: "Archivo Black", "Impact", fantasy;
    font-size: 1.35rem;
    color: #111;
    -webkit-text-fill-color: #111;
}

.neo-theme .feature-card p {
    margin: 0;
    font-weight: 500;
    color: #111;
    -webkit-text-fill-color: #111;
}

/* Legacy theme text-color overrides for readability */
.neo-theme .section-header h3,
.neo-theme .section-header p,
.neo-theme .empty-state p,
.neo-theme .history-item,
.neo-theme .history-item *,
.neo-theme .playlist-item,
.neo-theme .playlist-item *,
.neo-theme .video-uploader,
.neo-theme .progress-label,
.neo-theme .progress-percent,
.neo-theme .progress-text,
.neo-theme .tool-card-subtitle,
.neo-theme .frame-extractor-subtitle,
.neo-theme .convert-subtitle,
.neo-theme .live-stream-note,
.neo-theme .live-channel-label,
.neo-theme .live-channel-value,
.neo-theme .live-stat-label,
.neo-theme .live-stat-value {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

.neo-theme #videoCard {
    display: grid;
    grid-template-columns: minmax(340px, 46%) minmax(0, 54%) !important;
    gap: 16px;
    padding: 16px;
}

.neo-theme #videoCard .video-info,
.neo-theme #videoCard .video-meta,
.neo-theme #videoCard .download-options,
.neo-theme #videoCard .option-group {
    min-width: 0;
}

.neo-theme .video-thumbnail-shell {
    border: var(--neo-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--neo-shadow);
    background: #111;
    position: relative;
}

.neo-theme #videoThumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.neo-theme .video-corner-tag,
.neo-theme .video-duration,
.neo-theme .video-kicker,
.neo-theme .live-status-badge,
.neo-theme #playlistCount,
.neo-theme .badge,
.neo-theme .frame-extractor-badge,
.neo-theme .convert-badge,
.neo-theme .tool-badge,
.neo-theme #liveStatus {
    border: var(--neo-border);
    border-radius: 999px;
    background: var(--neo-warning);
    color: #111;
    font-weight: 800;
    box-shadow: 3px 3px 0 #111;
}

.neo-theme .video-corner-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.neo-theme .video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    background: #fff;
}

.neo-theme .video-info {
    border: var(--neo-border);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--neo-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.neo-theme .video-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
}

.neo-theme .video-title {
    margin: 8px 0;
    font-family: "Archivo Black", "Impact", fantasy;
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    line-height: 1.2;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    word-break: break-word;
    text-shadow: none !important;
}

.neo-theme .video-uploader {
    margin: 0;
    font-weight: 700;
}

.neo-theme .download-options {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-top: 0 !important;
}

.neo-theme .option-group {
    border: var(--neo-border);
    border-radius: 8px;
    padding: 10px;
    background: #fff6d8;
    box-shadow: 3px 3px 0 #111;
    display: block !important;
    min-width: 0;
}

.neo-theme .option-group label,
.neo-theme .frame-group label,
.neo-theme .convert-option label,
.neo-theme .convert-source-group label,
.neo-theme .frame-source-panel label,
.neo-theme .tool-field label,
.neo-theme .live-segment-input-wrap label,
.neo-theme .filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    opacity: 1 !important;
    visibility: visible !important;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.neo-theme #convertUrlGroup label,
.neo-theme #convertUploadGroup label,
.neo-theme #frameUrlGroup label,
.neo-theme #frameUploadGroup label {
    font-size: 0.95rem !important;
    font-weight: 900 !important;
}

.neo-theme .btn-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
}

.neo-theme .format-btn,
.neo-theme .convert-switch-btn,
.neo-theme .frame-source-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    justify-content: center;
    text-align: center;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

.neo-theme .format-btn.active,
.neo-theme .convert-switch-btn.active,
.neo-theme .frame-source-btn.active {
    background: var(--neo-warning);
}

.neo-theme .quality-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 14px;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

.neo-theme .action-buttons,
.neo-theme .frame-actions,
.neo-theme .convert-actions,
.neo-theme .tool-actions,
.neo-theme .live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.neo-theme .download-btn,
.neo-theme .live-btn,
.neo-theme .convert-run-btn,
.neo-theme .frame-extract-btn {
    padding: 11px 16px;
}

.neo-theme .thumb-btn,
.neo-theme .convert-download-btn,
.neo-theme .frame-zip-btn,
.neo-theme .preset-btn,
.neo-theme .live-watch-link {
    padding: 11px 14px;
}

.neo-theme .action-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
}

.neo-theme .action-buttons .download-btn,
.neo-theme .action-buttons .thumb-btn {
    width: 100%;
}

.neo-theme #videoCard .format-selector,
.neo-theme #videoCard .option-quality {
    width: 100%;
}

.neo-theme #videoCard .option-quality {
    display: block !important;
}

.neo-theme #videoCard .option-quality label,
.neo-theme #videoCard .format-selector label {
    margin-bottom: 8px !important;
}

.neo-theme .progress-container {
    border: var(--neo-border);
    border-radius: 8px;
    padding: 10px;
    background: #fff6d8;
    box-shadow: var(--neo-shadow);
}

.neo-theme .progress-bar {
    border: var(--neo-border);
    border-radius: 999px;
    background: #fff;
    height: 18px;
    overflow: hidden;
    position: relative;
}

.neo-theme .progress-fill {
    height: 100%;
    background: repeating-linear-gradient(45deg, #111 0 12px, #57d66f 12px 24px);
    transition: width 0.3s ease;
}

.neo-theme .progress-glow {
    display: none;
}

.neo-theme #liveRecordCard {
    padding: 16px;
    background: #ffe5cc;
}

.neo-theme .live-record-glow {
    display: none;
}

.neo-theme .live-record-header,
.neo-theme .frame-extractor-header,
.neo-theme .convert-header,
.neo-theme .tool-card-header,
.neo-theme .section-header,
.neo-theme .live-stats,
.neo-theme .live-segment-settings,
.neo-theme .frame-settings-panel,
.neo-theme .preset-bar,
.neo-theme .jobs-filter-bar,
.neo-theme .frame-results-head,
.neo-theme .convert-result-head {
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--neo-shadow);
}

.neo-theme .live-record-header,
.neo-theme .frame-extractor-header,
.neo-theme .convert-header,
.neo-theme .tool-card-header,
.neo-theme .section-header,
.neo-theme .frame-results-head,
.neo-theme .convert-result-head {
    padding: 12px;
}

.neo-theme .live-record-header,
.neo-theme .tool-card-header,
.neo-theme .section-header,
.neo-theme .frame-extractor-header,
.neo-theme .convert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.neo-theme .live-record-header,
.neo-theme .frame-extractor-header,
.neo-theme .convert-header,
.neo-theme .tool-card-header,
.neo-theme .section-header,
.neo-theme .live-stats,
.neo-theme .live-segment-settings,
.neo-theme .frame-settings-panel,
.neo-theme .preset-bar,
.neo-theme .jobs-filter-bar,
.neo-theme .frame-results-head,
.neo-theme .convert-result-head {
    color: #111 !important;
}

.neo-theme .frame-extractor-header h3,
.neo-theme .convert-header h3,
.neo-theme .tool-card-header h3,
.neo-theme .section-header h3 {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.neo-theme .frame-extractor-header h3 i,
.neo-theme .convert-header h3 i,
.neo-theme .tool-card-header h3 i,
.neo-theme .section-header h3 i {
    color: var(--neo-accent) !important;
    -webkit-text-fill-color: var(--neo-accent) !important;
}

.neo-theme .live-record-layout {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
}

.neo-theme .live-stream-viewer,
.neo-theme .live-record-body,
.neo-theme .frame-source-panel,
.neo-theme .convert-source-group,
.neo-theme .tool-field,
.neo-theme .frame-results,
.neo-theme .convert-result-box,
.neo-theme .jobs-list,
.neo-theme .history-list,
.neo-theme .playlist-list {
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--neo-shadow);
}

.neo-theme .live-stream-viewer,
.neo-theme .live-record-body,
.neo-theme .frame-source-panel,
.neo-theme .convert-source-group,
.neo-theme .tool-field,
.neo-theme .frame-results,
.neo-theme .convert-result-box,
.neo-theme .jobs-list,
.neo-theme .history-list,
.neo-theme .playlist-list {
    padding: 12px;
}

.neo-theme .live-stream-frame {
    border: var(--neo-border);
    border-radius: 8px;
    background: #111;
    box-shadow: var(--neo-shadow);
    overflow: hidden;
}

.neo-theme .live-stream-embed,
.neo-theme #liveStreamEmbed,
.neo-theme .live-stream-placeholder {
    min-height: 300px;
}

.neo-theme .live-stream-placeholder {
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px;
}

.neo-theme .live-status-badge,
.neo-theme #liveStatus {
    padding: 5px 10px;
}

.neo-theme .live-info-text,
.neo-theme .frame-status-text,
.neo-theme .convert-status-text,
.neo-theme #queueStatusText,
.neo-theme #pdfToolStatusText,
.neo-theme .live-stream-note {
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 3px 3px 0 #111;
    padding: 10px 12px;
    margin: 10px 0 0;
    font-weight: 600;
}

.neo-theme .frame-extractor-subtitle,
.neo-theme .convert-subtitle,
.neo-theme #frameStatusText,
.neo-theme #convertStatusText,
.neo-theme .frame-status-text,
.neo-theme .convert-status-text {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    text-shadow: none !important;
}

.neo-theme .frame-status-text,
.neo-theme .convert-status-text {
    min-height: 44px;
    line-height: 1.45;
}

.neo-theme .live-info-text,
.neo-theme .live-guide-list li,
.neo-theme .live-segment-check,
.neo-theme .live-stream-note {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    text-shadow: none !important;
}

.neo-theme .live-info-text>i,
.neo-theme .live-guide-list li i,
.neo-theme .live-stream-note>i {
    color: var(--neo-accent) !important;
}

.neo-theme .live-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
}

.neo-theme .live-segment-settings {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.neo-theme .live-segment-input-wrap {
    flex-direction: row;
    align-items: center;
}

.neo-theme .live-segment-input-wrap label {
    margin-bottom: 0;
}

.neo-theme .live-segment-input-wrap input {
    width: 80px;
    padding: 8px 10px;
    text-align: center;
}

.neo-theme .live-stat {
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff6d8;
    box-shadow: 3px 3px 0 #111;
    padding: 10px;
}

.neo-theme .live-guide-list {
    margin: 10px 0 0;
    padding: 10px 12px;
    list-style: none;
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 3px 3px 0 #111;
}

.neo-theme .live-guide-list li {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.neo-theme .live-guide-list li:last-child {
    margin-bottom: 0;
}

.neo-theme .frame-row,
.neo-theme .convert-options-grid,
.neo-theme .tool-grid-2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.neo-theme .convert-options-grid {
    margin-top: 10px;
}

.neo-theme .convert-option,
.neo-theme .frame-group {
    border: var(--neo-border);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 3px 3px 0 #111;
}

.neo-theme .panel-step-title {
    margin: 12px 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: var(--neo-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 3px 3px 0 #111;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.neo-theme .panel-step-title span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 2px solid #111;
    border-radius: 999px;
    background: var(--neo-warning);
    font-size: 0.72rem;
    font-family: "Archivo Black", "Impact", fantasy;
}

.neo-theme #frameExtractorCard,
.neo-theme .convert-studio-card {
    background: linear-gradient(180deg, #f7efd1 0%, #eee3bc 100%);
}

.neo-theme .frame-source-switch {
    border: var(--neo-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--neo-shadow);
    padding: 8px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.neo-theme .frame-source-switch .frame-source-btn {
    min-height: 46px;
}

.neo-theme .frame-source-panel {
    margin-top: 10px;
    background: #fffdf3;
}

.neo-theme .upload-dropzone {
    border: 3px dashed #111 !important;
    border-radius: 12px;
    padding: 12px;
    background:
        repeating-linear-gradient(45deg, #fff 0 10px, #fff8df 10px 20px) !important;
    box-shadow: var(--neo-shadow);
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.neo-theme .upload-dropzone.dragover {
    border-color: #00c2a8 !important;
    background:
        repeating-linear-gradient(45deg, #ecfff8 0 10px, #dcfaee 10px 20px) !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #111;
}

.neo-theme .upload-dropzone.is-ready {
    background:
        repeating-linear-gradient(45deg, #f8fff0 0 10px, #eefcdb 10px 20px) !important;
}

.neo-theme .upload-dropzone.is-processing {
    background:
        repeating-linear-gradient(45deg, #fff6ec 0 10px, #ffeacd 10px 20px) !important;
    border-color: #d88000 !important;
}

.neo-theme .upload-dropzone.is-error {
    background:
        repeating-linear-gradient(45deg, #ffe8e8 0 10px, #ffd5d5 10px 20px) !important;
    border-color: #d31212 !important;
}

.neo-theme .upload-dropzone-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.neo-theme .upload-dropzone-hero i {
    font-size: 1.25rem;
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 2px 2px 0 #111;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.neo-theme .upload-dropzone-hero strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
    word-break: break-word;
}

.neo-theme .upload-dropzone-hero small {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #2e2e2e;
}

.neo-theme .upload-dropzone .convert-pick-btn,
.neo-theme .upload-dropzone .frame-pick-btn {
    min-height: 44px;
    justify-self: end;
}

.neo-theme .upload-file-name {
    grid-column: 1 / -1;
    font-size: 0.84rem !important;
    font-weight: 800;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    background: #fff;
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: 2px 2px 0 #111;
    padding: 8px 10px;
    word-break: break-word;
}

.neo-theme .upload-status {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1f1f1f;
    background: #f3ecd0;
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: 2px 2px 0 #111;
    padding: 6px 10px;
    line-height: 1.3;
}

.neo-theme .upload-status.is-success {
    background: #d9f8d9;
}

.neo-theme .upload-status.is-error {
    background: #ffd8d8;
}

.neo-theme .upload-limit-info {
    grid-column: 1 / -1;
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: #2b2b2b;
    background: #fff;
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: 2px 2px 0 #111;
    padding: 6px 10px;
    line-height: 1.3;
}

.neo-theme .frame-settings-panel {
    margin-top: 8px;
    padding: 12px;
    background: #fff8df;
}

.neo-theme .frame-row {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.neo-theme .frame-group {
    background: #fff;
}

.neo-theme .frame-group label {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.neo-theme .frame-actions {
    margin-top: 8px;
    align-items: center;
}

.neo-theme .frame-extract-btn {
    min-height: 52px;
    min-width: 220px;
}

.neo-theme .frame-zip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.neo-theme .frame-results {
    margin-top: 10px;
}

.neo-theme .frame-source-switch,
.neo-theme .convert-switch,
.neo-theme .convert-switch-row,
.neo-theme .frame-grid-controls,
.neo-theme .preset-bar,
.neo-theme .jobs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.neo-theme .frame-advanced-toggle-wrap {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 3px 3px 0 #111;
    padding: 10px;
}

.neo-theme .frame-advanced-toggle {
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff6d8;
    box-shadow: 3px 3px 0 #111;
    font-weight: 800;
    padding: 8px 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.neo-theme .frame-advanced-toggle:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #111;
}

.neo-theme .frame-advanced-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 #111;
}

.neo-theme .frame-advanced-note {
    font-size: 0.84rem;
    font-weight: 700;
    color: #111;
}

.neo-theme .frame-advanced-options {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.neo-theme .preset-bar {
    margin: 8px 0;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.neo-theme .preset-bar .preset-select {
    min-width: 220px;
    width: 100%;
}

.neo-theme .convert-switch-row,
.neo-theme .jobs-filter-bar {
    margin: 10px 0;
    padding: 10px;
}

.neo-theme .convert-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.neo-theme .convert-switch-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    align-items: stretch;
    border: var(--neo-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--neo-shadow);
}

.neo-theme .image-ocr-switch-row {
    grid-template-columns: 1fr;
}

.neo-theme .convert-switch[data-kind="media"] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    padding: 8px;
    border-right: var(--neo-border);
}

.neo-theme .convert-switch[data-kind="source"] {
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 8px;
}

.neo-theme .convert-switch-btn {
    min-height: 46px;
}

.neo-theme .convert-source-group {
    margin-top: 8px;
    background: #fffdf3;
}

.neo-theme .convert-options-grid {
    margin-top: 8px;
    padding: 12px;
    border: var(--neo-border);
    border-radius: 10px;
    background: #fff8df;
    box-shadow: var(--neo-shadow);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.neo-theme .convert-option label {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.neo-theme .convert-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.neo-theme .convert-run-btn {
    min-height: 52px;
}

.neo-theme .convert-download-btn {
    min-height: 52px;
}

.neo-theme .image-ocr-card {
    margin-top: 10px;
    border: var(--neo-border);
    border-radius: 10px;
    background: #fffdf3;
    box-shadow: var(--neo-shadow);
    padding: 12px;
}

.neo-theme #imageOcrToolCard .image-ocr-card {
    margin-top: 0;
}

.neo-theme .ocr-wizard,
.neo-theme .tool-wizard {
    margin: 10px 0 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.neo-theme #convertWizard {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.neo-theme #queueWizard,
.neo-theme #pdfWizard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.neo-theme .ocr-wizard-step,
.neo-theme .tool-wizard-step {
    border: var(--neo-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 2px 2px 0 #111;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    opacity: 0.86;
}

.neo-theme .ocr-wizard-step.is-active,
.neo-theme .tool-wizard-step.is-active {
    background: #ffe06a;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #111;
    opacity: 1;
}

.neo-theme .ocr-wizard-step.is-done,
.neo-theme .tool-wizard-step.is-done {
    background: #dbf8dc;
    opacity: 1;
}

.neo-theme .ocr-wizard-num,
.neo-theme .tool-wizard-num {
    width: 22px;
    height: 22px;
    border: var(--neo-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.neo-theme .ocr-wizard-step strong,
.neo-theme .tool-wizard-step strong {
    display: block;
    font-size: 0.77rem;
    line-height: 1.2;
    color: #111;
}

.neo-theme .ocr-wizard-step small,
.neo-theme .tool-wizard-step small {
    display: block;
    font-size: 0.68rem;
    color: #3a3a3a;
    line-height: 1.2;
}

.neo-theme .ocr-guide-text,
.neo-theme .tool-guide-text {
    margin: 0 0 10px;
    border: var(--neo-border);
    border-radius: 9px;
    box-shadow: 2px 2px 0 #111;
    background: #fff;
    padding: 9px 10px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #111;
}

.neo-theme .ocr-preview-card {
    margin-top: 8px;
    border: var(--neo-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--neo-shadow);
    padding: 10px;
}

.neo-theme .ocr-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}

.neo-theme .ocr-preview-head strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
}

.neo-theme .ocr-preview-head span {
    border: var(--neo-border);
    border-radius: 999px;
    box-shadow: 2px 2px 0 #111;
    padding: 3px 8px;
    background: #fff8d8;
    font-size: 0.72rem;
    font-weight: 800;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neo-theme .ocr-preview-image {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border: var(--neo-border);
    border-radius: 8px;
    background:
        linear-gradient(45deg, #f7f7f7 25%, transparent 25%),
        linear-gradient(-45deg, #f7f7f7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f7f7f7 75%),
        linear-gradient(-45deg, transparent 75%, #f7f7f7 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.neo-theme .ocr-action-hint {
    margin: 8px 0 0;
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: 2px 2px 0 #111;
    background: #fdf4d2;
    color: #111;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 10px;
}

.neo-theme .pro-tools-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
}

.neo-theme .pro-tool-tab {
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: 3px 3px 0 #111;
    background: #fff;
    color: #111;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
    font-size: 0.84rem;
    line-height: 1.2;
    min-height: 48px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    text-align: center;
    white-space: normal;
}

.neo-theme .pro-tool-tab.active {
    background: var(--neo-warning);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #111;
}

.neo-theme .pro-tool-tab:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #111;
}

.neo-theme .pro-tool-tab:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 #111;
}

.neo-theme .pro-tool-panel {
    border: var(--neo-border);
    border-radius: 10px;
    background: #fff8df;
    box-shadow: var(--neo-shadow);
    padding: 10px;
}

.neo-theme .pro-tool-panel+.pro-tool-panel {
    margin-top: 0;
}

.neo-theme .pro-tool-panel.hidden {
    display: none;
}

.neo-theme .pro-tool-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.neo-theme .pro-summary {
    margin-top: 8px;
    border: var(--neo-border);
    border-radius: 8px;
    background: #f6ffd9;
    box-shadow: 2px 2px 0 #111;
    padding: 8px 10px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #111;
}

.neo-theme .pro-output-box {
    margin-top: 10px;
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 3px 3px 0 #111;
    padding: 10px;
    color: #111;
    font-size: 0.82rem;
    line-height: 1.45;
    min-height: 220px;
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.neo-theme .pro-tool-description {
    margin: 0 0 10px;
    border: var(--neo-border);
    border-radius: 9px;
    box-shadow: 2px 2px 0 #111;
    background: #fffdf3;
    padding: 9px 10px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #111;
    font-weight: 700;
}

.neo-theme .pro-tool-description strong {
    font-family: "Archivo Black", "Impact", fantasy;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.neo-theme #sttManualText {
    min-height: 120px;
}

.neo-theme #imageOcrToolCard .convert-run-btn:disabled,
.neo-theme #imageOcrToolCard .convert-download-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 2px 2px 0 #111 !important;
}

.neo-theme .image-ocr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.neo-theme .image-ocr-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    -webkit-text-fill-color: #111;
}

.neo-theme .image-ocr-badge {
    border: var(--neo-border);
    border-radius: 999px;
    background: #b6f8c0;
    box-shadow: 2px 2px 0 #111;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.neo-theme .image-ocr-subtitle {
    margin: 8px 0 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #111;
}

.neo-theme .image-ocr-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    gap: 10px;
    align-items: end;
}

.neo-theme .image-ocr-lang-wrap label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111;
}

.neo-theme .image-ocr-output {
    margin-top: 10px;
    min-height: 150px;
    line-height: 1.45;
    font-size: 0.9rem;
    background: #fff;
}

.neo-theme .frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-size, 170px), 1fr));
    gap: 10px;
    margin-top: 10px;
}

.neo-theme .frame-item,
.neo-theme .job-item,
.neo-theme .history-item,
.neo-theme .playlist-item,
.neo-theme .tool-result-item {
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--neo-shadow);
}

.neo-theme .frame-item span {
    color: #111 !important;
    font-weight: 700;
}

.neo-theme .frame-download-link {
    color: #111 !important;
    border: var(--neo-border);
    background: var(--neo-warning);
    border-radius: 6px;
    box-shadow: 2px 2px 0 #111;
}

.neo-theme .error-message {
    border: var(--neo-border);
    border-radius: 8px;
    background: #ffd8d8;
    box-shadow: var(--neo-shadow);
    padding: 12px;
    font-weight: 700;
}

.neo-theme .footer {
    margin-top: 20px;
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: var(--neo-shadow-lg);
    background: #fff;
    padding: 14px;
    text-align: center;
}

.neo-theme .footer-divider {
    display: none;
}

.neo-theme .footer-text,
.neo-theme .footer-sub {
    margin: 0;
    font-weight: 700;
}

.neo-theme .footer-sub {
    margin-top: 4px;
    opacity: 0.8;
}

.neo-theme .modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.6);
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
}

.neo-theme .modal-content,
.neo-theme .frame-preview-dialog {
    border: 4px solid #111;
    border-radius: 10px;
    box-shadow: 10px 10px 0 #111;
    background: #fff;
}

.neo-theme .modal-content {
    width: min(460px, 100%);
    padding: 16px;
}

.neo-theme .status-item {
    border: var(--neo-border);
    border-radius: 8px;
    background: #fff6d8;
    box-shadow: 3px 3px 0 #111;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.neo-theme .status-badge {
    border: var(--neo-border);
    border-radius: 999px;
    padding: 2px 9px;
    font-weight: 800;
    background: #fff;
}

.neo-theme .modal-close,
.neo-theme .frame-preview-close {
    border: var(--neo-border);
    border-radius: 6px;
    background: var(--neo-warning);
    box-shadow: 3px 3px 0 #111;
    font-weight: 800;
    cursor: pointer;
}

.neo-theme .modal-close {
    margin-top: 10px;
    padding: 9px 12px;
}

.neo-theme .frame-preview-dialog {
    width: min(900px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    padding: 16px;
}

.neo-theme .frame-preview-close {
    width: 40px;
    height: 40px;
    margin-left: auto;
    display: grid;
    place-items: center;
}

.neo-theme #framePreviewImage {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: var(--neo-border);
    border-radius: 6px;
    box-shadow: var(--neo-shadow);
    background: #111;
}

.neo-theme .frame-preview-caption {
    margin: 10px 0 0;
    font-weight: 700;
    text-align: center;
}

.neo-theme .toast {
    border: var(--neo-border);
    border-radius: 8px;
    box-shadow: var(--neo-shadow);
    background: #fff;
    color: #111;
    font-weight: 700;
}

@keyframes neoGridMove {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-38px, -38px, 0);
    }
}

@keyframes neoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(6deg);
    }
}

@keyframes neoParticle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-28px) rotate(24deg);
    }
}

@keyframes neoTicker {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(1.2%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes neoBadgePulse {

    0%,
    100% {
        transform: rotate(4deg) translateY(0);
    }

    50% {
        transform: rotate(2deg) translateY(-2px);
    }
}

@media (max-width: 1080px) {
    .neo-theme #videoCard {
        grid-template-columns: 1fr !important;
    }

    .neo-theme .live-record-layout {
        grid-template-columns: 1fr;
    }

    .neo-theme .frame-row,
    .neo-theme .convert-options-grid,
    .neo-theme .tool-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .neo-theme .convert-switch-row {
        grid-template-columns: 1fr;
    }

    .neo-theme .convert-switch[data-kind="media"] {
        border-right: none;
        border-bottom: var(--neo-border);
    }

    .neo-theme .image-ocr-controls {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .neo-theme .ocr-wizard,
    .neo-theme .tool-wizard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .neo-theme .pro-tools-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .neo-theme .container {
        width: min(1240px, calc(100% - 12px)) !important;
        padding: 10px 0 !important;
    }

    .neo-theme .header {
        padding: 24px 10px 16px;
    }

    .neo-theme .header::after {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 6px 9px 7px;
        transform: rotate(2deg);
    }

    .neo-theme .logo {
        font-size: clamp(1.35rem, 8.4vw, 2.1rem);
        padding: 10px 12px;
        width: 100%;
        justify-content: center;
    }

    .neo-theme .logo::before {
        left: 50%;
        transform: translateX(-50%);
        top: -14px;
    }

    .neo-theme .tagline {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
        padding: 8px;
    }

    .neo-theme .tagline span {
        font-size: 0.8rem;
    }

    .neo-theme .slogan {
        width: 100%;
        font-size: 0.98rem;
        padding: 10px 10px;
    }

    .neo-theme .input-wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 50px !important;
        gap: 8px;
        align-items: center;
        padding: 8px !important;
    }

    .neo-theme .platform-icon {
        display: none !important;
    }

    .neo-theme .url-input {
        grid-column: 1 / 2;
        order: initial !important;
        width: 100% !important;
        text-align: left !important;
        padding: 12px !important;
        min-height: 48px;
    }

    .neo-theme .paste-btn {
        grid-column: 2 / 3;
        order: initial !important;
        margin: 0 !important;
        width: 50px;
        height: 50px;
    }

    .neo-theme .fetch-btn {
        grid-column: 1 / -1;
        order: initial !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .neo-theme .features-section {
        grid-template-columns: 1fr;
    }

    .neo-theme .download-options,
    .neo-theme .live-stats,
    .neo-theme .live-segment-settings,
    .neo-theme .frame-row,
    .neo-theme .convert-options-grid,
    .neo-theme .tool-grid-2 {
        grid-template-columns: 1fr;
    }

    .neo-theme .panel-step-title {
        width: 100%;
        justify-content: center;
    }

    .neo-theme .frame-source-switch {
        grid-template-columns: 1fr;
    }

    .neo-theme .preset-bar {
        grid-template-columns: 1fr;
    }

    .neo-theme .preset-btn {
        width: 100%;
    }

    .neo-theme .convert-switch-row {
        grid-template-columns: 1fr;
    }

    .neo-theme .convert-switch[data-kind="media"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-right: none;
        border-bottom: var(--neo-border);
    }

    .neo-theme .convert-switch[data-kind="source"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .neo-theme .convert-switch[data-kind="source"] {
        margin-left: 0;
    }

    .neo-theme .image-ocr-controls {
        grid-template-columns: 1fr;
    }

    .neo-theme .image-ocr-header {
        flex-direction: column;
        align-items: stretch;
    }

    .neo-theme .image-ocr-badge {
        width: fit-content;
    }

    .neo-theme .ocr-wizard,
    .neo-theme .tool-wizard {
        grid-template-columns: 1fr;
    }

    .neo-theme .pro-tools-tabs {
        grid-template-columns: 1fr;
    }

    .neo-theme .ocr-preview-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .neo-theme .ocr-preview-head span {
        max-width: 100%;
    }

    .neo-theme .upload-dropzone {
        grid-template-columns: 1fr !important;
    }

    .neo-theme .upload-dropzone .convert-pick-btn,
    .neo-theme .upload-dropzone .frame-pick-btn {
        width: 100%;
        justify-self: stretch;
    }

    .neo-theme .frame-advanced-toggle-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .neo-theme .frame-advanced-toggle {
        width: 100%;
        text-align: center;
    }

    .neo-theme .frame-advanced-note {
        text-align: center;
    }

    .neo-theme .action-buttons,
    .neo-theme .frame-actions,
    .neo-theme .convert-actions,
    .neo-theme .tool-actions,
    .neo-theme .live-actions {
        flex-direction: column;
    }

    .neo-theme .frame-zip-actions {
        width: 100%;
        flex-direction: column;
    }

    .neo-theme .action-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .neo-theme .convert-actions {
        grid-template-columns: 1fr;
    }

    .neo-theme .action-buttons>button,
    .neo-theme .frame-actions>button,
    .neo-theme .convert-actions>button,
    .neo-theme .tool-actions>button,
    .neo-theme .live-actions>button,
    .neo-theme .live-actions>a {
        width: 100%;
    }

    .neo-theme .neo-announcement-text {
        animation: none;
    }
}