/* Page structure and controls use the converter's shared design-v2 tokens. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body.animation-page {
    margin: 0;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.animation-page::before {
    content: "";
    position: fixed;
    inset: -48px 0 0;
    z-index: 0;
    pointer-events: none;
}
.animation-page a { color: inherit; text-underline-offset: 4px; }
.animation-page button,
.animation-page a,
.animation-page input,
.animation-page select { -webkit-tap-highlight-color: transparent; }
.animation-page button { cursor: pointer; }
.animation-page :is(button, a, input, select, summary, [tabindex]):focus-visible {
    outline: 3px solid rgba(34,216,255,.42);
    outline-offset: 4px;
}
.animation-page button:disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.animation-page h1,
.animation-page h2,
.animation-page h3,
.animation-page p { margin: 0; }
.animation-page h2 { font-size: 1.12rem; letter-spacing: -.035em; }
.animation-page h3 { font-size: .9rem; }
.animation-page small {
    display: block;
    color: var(--muted);
    font-size: .77rem;
    line-height: 1.7;
}
.animation-page .skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 50;
    border-radius: 10px;
    background: var(--electric);
    color: #03101b;
    padding: 12px 16px;
    font-size: .85rem;
    font-weight: 700;
}
.animation-page .skip-link:focus { top: 12px; }

/* Same full-width navigation and branding as the audio converter. */
.animation-page .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    margin: 0;
}
.animation-page .site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text);
    box-shadow: none;
    text-decoration: none;
    text-transform: uppercase;
    transform: none;
}
.animation-page .brand img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.animation-page .brand span { font-size: 14px; font-weight: 900; letter-spacing: .08em; max-width: none; }
.animation-page .brand strong { font-weight: inherit; }
.animation-page .site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.animation-page .site-header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-decoration: none;
}
.animation-page .site-header nav a[aria-current] {
    border-color: rgba(34,216,255,.55);
    background: rgba(24,64,99,.5);
    color: #9eefff;
}

.animation-page .page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px,100%);
    margin: 0 auto;
    padding: 30px 18px 42px;
}
.animation-page .intro.headline {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(220px,.6fr);
    align-items: center;
    gap: 24px;
    max-width: none;
    margin-bottom: 18px;
    padding: 32px 36px;
    overflow: hidden;
}
.animation-page .intro::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
}
.animation-page .intro-copy-block { position: relative; min-width: 0; }
.animation-page .eyebrow {
    color: #79cfe8;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .14em;
}
.animation-page h1 {
    max-width: 740px;
    margin: 16px 0 18px;
    font-size: clamp(38px,5.1vw,64px);
    font-weight: 850;
    line-height: 1.04;
}
.animation-page h1 span { color: inherit; font-weight: 600; }
.animation-page .intro-copy { max-width: 620px; color: var(--muted); font-size: .91rem; line-height: 1.8; }
.animation-page .intro-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.animation-page .intro-brand img { display: block; width: min(280px,100%); height: auto; object-fit: contain; filter: drop-shadow(0 0 24px rgba(34,216,255,.2)); }
.animation-page .intro-brand span {
    border: 1px solid rgba(255,191,75,.24);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--gold-2);
    background: rgba(255,191,75,.06);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .15em;
}
.animation-page .text-link { color: var(--electric); font-size: .76rem; line-height: 1.7; }
.animation-page .batch-jump { display: inline-block; margin-top: 17px; }
.animation-page #batchHeading { scroll-margin-top: 16px; }

.animation-page :is(.account-panel,.tool-panel,.progress-panel,.history-panel,.batch-panel) {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow),inset 0 1px rgba(255,255,255,.035);
    backdrop-filter: blur(16px);
}
.animation-page .account-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 24px;
    background: rgba(8,20,39,.72);
}
.animation-page .account-panel h2 { color: #e4f9ff; font-size: .9rem; }
.animation-page .account-panel p { margin-top: 5px; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.animation-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid rgba(58,203,255,.22);
    border-radius: 14px;
    background: rgba(12,28,52,.72);
    color: var(--text);
    font-size: .81rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.animation-page .button:hover:not(:disabled) { border-color: rgba(34,216,255,.58); background: rgba(18,43,75,.88); box-shadow: 0 0 26px rgba(34,216,255,.1); transform: translateY(-1px); }
.animation-page .button.primary {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    border-color: rgba(34,216,255,.72);
    background: linear-gradient(135deg,#7deaff,#22d8ff 48%,#4e8cff);
    color: #03101b;
    box-shadow: 0 12px 30px rgba(34,216,255,.22),inset 0 1px rgba(255,255,255,.45);
    font-weight: 900;
}
.animation-page .button.primary:hover:not(:disabled) { background: linear-gradient(135deg,#a6f2ff,#38ddff 48%,#689dff); box-shadow: 0 16px 38px rgba(34,216,255,.28); }
.animation-page .button.small { min-height: 40px; padding: 8px 12px; font-size: .73rem; }
.animation-page .workspace { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); align-items: start; gap: 18px; }
.animation-page .tool-panel { padding: 24px; background: linear-gradient(165deg,rgba(9,22,43,.98),rgba(5,13,27,.94)); }
.animation-page .tool-panel .converter-console { margin-bottom: 24px; }
.animation-page .tool-panel .console-head { margin-bottom: 0; }
.animation-page .progress-panel { position: sticky; top: 88px; padding: 24px; }
.animation-page .panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.animation-page .panel-heading h2 { margin-top: 5px; }
.animation-page .step { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid rgba(34,216,255,.28); border-radius: 12px; color: var(--electric); background: rgba(34,216,255,.04); font-size: .69rem; }

.animation-page .source-choice { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.animation-page .source-choice legend,
.animation-page .field>label { display: block; margin-bottom: 9px; color: #e4f0ff; font-size: .8rem; font-weight: 650; }
.animation-page .choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.animation-page .choice-row label { position: relative; display: block; min-width: 0; cursor: pointer; }
.animation-page .choice-row input { position: absolute; top: 0; left: 0; opacity: 0; }
.animation-page .choice-row span { display: block; padding: 12px 8px; border: 1px solid rgba(58,203,255,.18); border-radius: 12px; background: rgba(8,20,39,.68); color: var(--muted); font-size: .76rem; text-align: center; }
.animation-page .choice-row input:checked+span { border-color: rgba(34,216,255,.6); background: rgba(34,216,255,.08); color: #8deeff; }
.animation-page .choice-row input:focus-visible+span { outline: 3px solid rgba(34,216,255,.42); outline-offset: 3px; }
.animation-page .field { min-width: 0; margin-bottom: 21px; }
.animation-page .field>input,
.animation-page .field select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid rgba(58,203,255,.2); border-radius: 12px; background: rgba(4,13,27,.82); color: var(--text); font-size: .84rem; }
.animation-page .field input::placeholder { color: #70849f; }
.animation-page .field small { margin-top: 8px; }
.animation-page .field select { overflow: hidden; text-overflow: ellipsis; }
.animation-page input[type=file] { overflow: hidden; text-overflow: ellipsis; }
.animation-page input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 10px; border: 1px solid rgba(34,216,255,.28); border-radius: 8px; background: rgba(18,43,75,.82); color: #9eefff; font: inherit; cursor: pointer; }
.animation-page input[type=file]:disabled::file-selector-button { cursor: not-allowed; }
.animation-page .field .file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 18px; border: 1px dashed rgba(34,216,255,.38); border-radius: 16px; background: rgba(13,35,63,.46); text-align: center; cursor: pointer; }
.animation-page .file-drop>span { color: var(--muted); font-size: .73rem; }
.animation-page .file-drop .file-icon { color: var(--electric); font-size: 1.7rem; line-height: 1; }
.animation-page .file-drop input { width: 100%; max-width: 100%; margin-top: 8px; font-size: .72rem; color: var(--muted); }
.animation-page .file-name { margin-top: 8px; color: var(--electric); font-size: .78rem; overflow-wrap: anywhere; }
.animation-page .rights-note { margin: 1px 0 18px; color: var(--muted); font-size: .74rem; line-height: 1.7; }
.animation-page .notice { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(255,191,75,.22); border-radius: 12px; background: rgba(255,191,75,.06); color: var(--gold-2); font-size: .77rem; line-height: 1.7; overflow-wrap: anywhere; }
.animation-page .premium-notice { margin: 0 0 18px; }

.animation-page .status-indicator { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.animation-page .status-indicator>span { width: 7px; height: 7px; border-radius: 50%; background: #70849f; }
.animation-page .status-indicator[data-state=done]>span { background: var(--mint); }
.animation-page .status-indicator:is([data-state=failed],[data-state=uncertain])>span { background: var(--gold); }
.animation-page .status-indicator[data-state=running]>span { background: var(--electric); box-shadow: 0 0 14px rgba(34,216,255,.5); }
.animation-page .status-message { margin: 12px 0 23px; color: var(--muted); font-size: .83rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.animation-page .result-card { padding: 19px; border: 1px solid rgba(34,216,255,.28); border-radius: 16px; background: rgba(13,35,63,.46); }
.animation-page .result-card>.eyebrow { color: var(--electric); }
.animation-page #newAssetId { display: block; margin: 12px 0 19px; font-size: clamp(1.1rem,2.4vw,1.55rem); letter-spacing: .02em; overflow-wrap: anywhere; }
.animation-page .result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.animation-page .status-guidance { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.animation-page .status-guidance p { margin-top: 8px; color: var(--muted); font-size: .77rem; line-height: 1.8; }

.animation-page .history-panel { margin-top: 18px; padding: 24px; }
.animation-page .history-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.animation-page .history-head h2 { margin-top: 5px; }
.animation-page .muted { color: var(--muted); font-size: .81rem; }
.animation-page .history-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.animation-page .history-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; min-width: 0; padding: 17px; border: 1px solid rgba(70,202,255,.14); border-radius: 14px; background: rgba(8,20,39,.68); }
.animation-page .history-title { font-size: .85rem; font-weight: 650; overflow-wrap: anywhere; }
.animation-page .history-meta { margin-top: 6px; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.animation-page .history-state { color: var(--gold-2); font-size: .72rem; text-align: right; white-space: nowrap; }
.animation-page .history-state[data-state=done] { color: var(--mint); }
.animation-page .moderation-badge { display: block; width: fit-content; max-width: 100%; margin-top: 8px; padding: 3px 8px; border: 1px solid rgba(255,191,75,.25); border-radius: 8px; color: var(--gold-2); background: rgba(255,191,75,.06); font-size: .72rem; line-height: 1.6; white-space: normal; }
.animation-page .moderation-badge[data-moderation=Approved] { color: var(--mint); border-color: rgba(81,222,168,.28); background: rgba(81,222,168,.06); }
.animation-page .moderation-badge[data-moderation=Rejected] { color: #ffb5b5; border-color: rgba(255,135,135,.3); background: rgba(255,135,135,.07); }
.animation-page .history-state .moderation-badge { margin-left: auto; }
.animation-page #batchModerationSummary { margin-bottom: 16px; color: var(--muted); font-size: .76rem; line-height: 1.8; overflow-wrap: anywhere; }
.animation-page .history-result { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 11px; }
.animation-page .history-result code { font-size: .8rem; overflow-wrap: anywhere; }
.animation-page .history-error { margin-top: 10px; color: var(--gold-2); font-size: .76rem; line-height: 1.7; overflow-wrap: anywhere; }
.animation-page .history-show { min-height: 36px; margin-top: 7px; padding: 4px 0; border: 0; border-radius: 0; background: none; color: var(--electric); box-shadow: none; font-size: .75rem; text-decoration: underline; text-underline-offset: 4px; }
.animation-page .history-show:hover { border-color: transparent; background: none; box-shadow: none; transform: none; }

.animation-page .batch-panel { margin-top: 18px; padding: 26px; background: linear-gradient(165deg,rgba(9,22,43,.98),rgba(5,13,27,.94)); }
.animation-page .batch-panel>.history-head { margin-bottom: 14px; }
.animation-page .batch-badge { padding: 6px 11px; border: 1px solid rgba(255,191,75,.28); border-radius: 999px; background: rgba(255,191,75,.09); color: var(--gold-2); font: 700 .75rem "Cascadia Code",Consolas,monospace; }
.animation-page .batch-intro { max-width: 760px; margin-bottom: 25px; color: var(--muted); font-size: .84rem; line-height: 1.8; }
.animation-page .batch-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px; }
.animation-page .batch-workspace>form,
.animation-page .batch-progress { min-width: 0; }
.animation-page .batch-workspace .field>input[type=file] { max-width: 100%; padding: 11px; font-size: .76rem; }
.animation-page .batch-preview { margin-top: 16px; padding: 5px 0 5px 13px; border-left: 2px solid var(--electric); }
.animation-page .batch-preview strong { color: #9eefff; font-size: .86rem; }
.animation-page .batch-preview p { margin: 5px 0; color: var(--muted); font-size: .76rem; }
.animation-page .batch-destination { margin-top: 22px; }
.animation-page .batch-progress { padding-left: 28px; border-left: 1px solid var(--line); }
.animation-page .batch-progress>.status-message { margin-bottom: 17px; }
.animation-page .batch-progress-track { margin-top: 19px; }
.animation-page .batch-progress-track progress { display: block; width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 8px; background: #050c18; accent-color: var(--electric); }
.animation-page .batch-progress-track progress::-webkit-progress-bar { border-radius: 8px; background: #050c18; }
.animation-page .batch-progress-track progress::-webkit-progress-value { border-radius: 8px; background: linear-gradient(90deg,var(--electric-2),var(--electric),var(--gold)); }
.animation-page .batch-progress-track progress::-moz-progress-bar { border-radius: 8px; background: linear-gradient(90deg,var(--electric-2),var(--electric),var(--gold)); }
.animation-page .batch-progress-track>span { display: block; margin-top: 8px; color: var(--muted); font-size: .74rem; }
.animation-page .batch-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.animation-page .batch-counts>div { min-width: 0; padding: 13px; border: 1px solid rgba(70,202,255,.14); border-radius: 14px; background: rgba(8,20,39,.68); }
.animation-page .batch-counts dt { color: var(--muted); font-size: .7rem; }
.animation-page .batch-counts dd { margin: 4px 0 0; color: var(--text); font-size: 1.25rem; font-weight: 700; }
.animation-page #batchSucceeded { color: var(--mint); }
.animation-page #batchFailed,
.animation-page #batchUncertain { color: var(--gold-2); }
.animation-page .batch-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.animation-page .batch-downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 20px; }
.animation-page .batch-downloads small { flex-basis: 100%; }
.animation-page #batchUncertainHelp { display: block; margin-top: 15px; }
.animation-page .batch-item-details { min-width: 0; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); }
.animation-page .batch-item-details summary { color: var(--electric); font-size: .82rem; cursor: pointer; }
.animation-page .batch-table-wrap { max-width: 100%; max-height: 430px; margin-top: 15px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; scrollbar-color: #335375 #081427; scrollbar-width: thin; }
.animation-page .batch-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .76rem; text-align: left; }
.animation-page .batch-table th { position: sticky; top: 0; padding: 12px; background: #0b1b30; color: var(--muted); font-size: .69rem; font-weight: 600; }
.animation-page .batch-table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.animation-page .batch-table td:first-child { min-width: 145px; }
.animation-page .batch-table td small { margin-top: 4px; font-size: .67rem; }
.animation-page .batch-table .batch-id { font-family: "Cascadia Code",Consolas,monospace; font-size: .74rem; }
.animation-page .batch-table .batch-new-id { display: block; margin-top: 5px; color: var(--mint); }
.animation-page .batch-table .batch-error { max-width: 330px; color: var(--gold-2); font-size: .71rem; white-space: normal; }
.animation-page .batch-history { margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.animation-page .batch-history>.history-head { margin-bottom: 14px; }
.animation-page .batch-history .history-item { padding: 14px; }
.animation-page .batch-history .history-title { font-size: .8rem; }
.animation-page .batch-history .history-state { white-space: normal; }
.animation-page .batch-history .history-meta { font-size: .7rem; }

.animation-page footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 24px clamp(18px,4vw,52px) 30px; border-top: 1px solid rgba(34,216,255,.12); background: #040812; color: #7890ab; font-size: .72rem; }
.animation-page footer span { margin-right: auto; }
.animation-page footer a { text-decoration: none; }

@media (max-width: 860px) {
    .animation-page #batchHeading { scroll-margin-top: 48px; }
    .animation-page .page-shell { padding: 14px 12px 34px; }
    .animation-page .intro.headline { grid-template-columns: minmax(0,1fr); gap: 0; margin-bottom: 12px; padding: 26px 22px; }
    .animation-page .intro-brand { display: none; }
    .animation-page h1 { font-size: clamp(36px,7.4vw,58px); }
    .animation-page .workspace { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .animation-page .progress-panel { position: static; }
    .animation-page :is(.account-panel,.tool-panel,.progress-panel,.history-panel,.batch-panel,.headline) { backdrop-filter: none; }
    .animation-page .batch-workspace { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .animation-page .batch-progress { padding: 23px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .animation-page .account-panel { margin-bottom: 14px; }
}
@media (max-width: 620px) {
    .animation-page .site-header { align-items: center; gap: 9px; }
    .animation-page .site-header .brand { min-height: 42px; }
    .animation-page .brand img { width: 42px; height: 42px; }
    .animation-page .brand span { max-width: none; font-size: 12px; }
    .animation-page .site-header nav { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 6px; width: 100%; }
    .animation-page .site-header nav a { min-height: 38px; padding: 8px 7px; border-radius: 10px; font-size: .65rem; letter-spacing: .015em; }
    .animation-page :target { scroll-margin-top: 48px; }
    .animation-page .intro.headline { padding: 24px 20px; }
    .animation-page h1 { margin: 14px 0 16px; font-size: clamp(34px,8.6vw,48px); }
    .animation-page .intro-copy { font-size: .85rem; }
    .animation-page .batch-jump { font-size: .74rem; }
    .animation-page .account-panel { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; }
    .animation-page :is(.tool-panel,.progress-panel,.history-panel,.batch-panel) { padding: 20px 18px; border-radius: 18px; }
    .animation-page .panel-heading { margin-bottom: 22px; }
    .animation-page .history-head { gap: 10px; }
    .animation-page .history-head .button { flex-shrink: 0; font-size: .69rem; }
    .animation-page .history-item { gap: 10px; padding: 14px; }
    .animation-page .history-state { max-width: 105px; white-space: normal; }
    .animation-page .batch-history .history-item { grid-template-columns: minmax(0,1fr); }
    .animation-page .batch-history .history-state { max-width: none; text-align: left; }
    .animation-page .batch-downloads .button { width: 100%; }
    .animation-page footer { gap: 16px; padding: 22px 18px 28px; }
    .animation-page footer span { width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .animation-page *,
    .animation-page *::before,
    .animation-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
