.av-page { --av-bg: #080c14; --av-panel: #101620; --av-line: #25303f; --av-muted: #a2aebe; --av-cyan: #65ddff; background: var(--av-bg); color: #edf2fa; }
.av-page .av-main { position: relative; width: min(1600px, calc(100% - 64px)); margin: 0 auto; padding: 122px 0 60px; }
.av-page .av-main, .av-page .av-main * { box-sizing: border-box; }
.av-page .av-main button, .av-page .av-main input, .av-page .av-main select { font: inherit; }
.av-page .av-main button, .av-page .av-main label { -webkit-tap-highlight-color: transparent; }
.av-page .av-main button { cursor: pointer; }
.av-page .av-main button:disabled { cursor: not-allowed; opacity: .5; }
.av-page .av-main [hidden] { display: none !important; }
.av-page .av-main :is(button, a, input, select):focus-visible, .av-drop:focus-within, .av-small-upload:focus-within { outline: 2px solid var(--av-cyan); outline-offset: 4px; }
.av-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; color: var(--av-muted); font-size: 12px; }
.av-breadcrumb a { color: #c6d1df; text-decoration: none; }
.av-breadcrumb a:hover { color: var(--av-cyan); }
.av-breadcrumb i { margin-right: 7px; font-size: 10px; }
.av-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 30px 0 30px; }
.av-eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--av-cyan); font-size: 10px; font-weight: 750; letter-spacing: 2px; text-transform: uppercase; }
.av-live-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #52d6fd; box-shadow: 0 0 8px #24a7e46b; }
.av-heading h1 { margin: 12px 0 8px; color: #f2f6fd; font-size: clamp(27px, 2.65vw, 43px); letter-spacing: -1.65px; line-height: 1.2; font-weight: 650; }
.av-heading h1 em { font-style: normal; color: var(--av-cyan); }
.av-heading p { margin: 0; font-size: 13px; color: var(--av-muted); }
.av-local { display: flex; align-items: center; gap: 12px; color: #d7e3ee; font-size: 11px; white-space: nowrap; }
.av-local > i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #294355; border-radius: 50%; color: var(--av-cyan); background: #11202c; }
.av-local small { display: block; margin-top: 5px; font-size: 10px; color: var(--av-muted); }
.av-workspace { display: grid; grid-template-columns: 240px minmax(0, 1fr) 254px; align-items: start; gap: 16px; }
.av-sidebar, .av-center, .av-export-column { min-width: 0; }
.av-panel { padding: 20px 18px; border: 1px solid var(--av-line); border-radius: 12px; background: var(--av-panel); }
.av-panel h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: #e9eff7; font-size: 12px; line-height: 1.4; font-weight: 650; letter-spacing: .1px; }
.av-panel h2 > i { color: var(--av-cyan); font-size: 11px; }
.av-step { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; color: #6de0ff; background: #172c3a; font-size: 9px; font-weight: 700; }
.av-drop { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 5px 18px; border: 1px dashed #3b4e63; border-radius: 8px; background: #0c121c; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.av-drop:hover, .av-drop.is-dragging { background: #102332; border-color: var(--av-cyan); }
.av-drop > i { margin-bottom: 12px; font-size: 24px; color: #6fcce8; }
.av-drop strong { font-size: 11px; font-weight: 600; }
.av-drop > span { margin-top: 4px; font-size: 10px; color: var(--av-muted); }
.av-drop > small { margin-top: 13px; color: #9ba9ba; font-size: 8px; }
.av-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.av-demo { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 0 0; border: 0; background: none; color: #c6e6f5; font-size: 10px !important; text-align: left; }
.av-demo i { font-size: 8px; color: var(--av-cyan); }
.av-demo > span { margin-left: auto; color: #a1adbe; font-size: 9px; }
.av-track { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 7px; border-radius: 7px; background: #182332; }
.av-track-icon { color: var(--av-cyan); }
.av-track > div { min-width: 0; flex: 1; }
.av-track strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.av-track small { display: block; margin-top: 4px; color: var(--av-muted); font-size: 9px; }
.av-styles { margin-top: 16px; }
.av-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 17px; }
.av-panel-heading h2 { margin: 0; }
.av-panel-heading > span { color: #a2b1c2; font-size: 9px; }
.av-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.av-style { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #2e3948; border-radius: 7px; background: #080c13; color: #c3cddb; text-align: left; }
.av-style canvas { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4; }
.av-style > span { display: block; padding: 8px 7px; font-size: 9px; }
.av-style > i { position: absolute; right: 7px; bottom: 9px; color: var(--av-cyan); font-size: 8px; opacity: 0; }
.av-style:hover { border-color: #69849c; }
.av-style.is-active { border-color: #58d5f5; box-shadow: 0 0 0 1px #46cdef26; color: #b5eeff; }
.av-style.is-active > i { opacity: 1; }
.av-sidebar-tip { display: flex; gap: 9px; margin: 17px 7px 0; color: #a4b1c1; font-size: 10px; line-height: 1.7; }
.av-sidebar-tip i { color: #a3d2e2; padding-top: 4px; }
.av-preview { overflow: hidden; border: 1px solid var(--av-line); border-radius: 12px; background: #0e151f; }
.av-preview-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 0 15px; border-bottom: 1px solid #202d3c; color: #bac8d9; font-size: 9px; }
.av-preview-toolbar > span { display: flex; align-items: center; gap: 7px; }
.av-preview-toolbar > div { display: flex; align-items: center; gap: 10px; }
#av-ratio-badge { padding: 3px 7px; border: 1px solid #364353; border-radius: 4px; font-size: 8px; color: #b6c7d9; }
.av-icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 5px; background: none; color: #abbdd0; font-size: 11px !important; }
.av-icon-button:hover { background: #213043; color: #e7f8ff; }
.av-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 230px; aspect-ratio: 16 / 9; overflow: hidden; background: #02040a; }
#av-canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.av-stage.av-stage--portrait { aspect-ratio: 16 / 13; }
.av-stage.av-stage--square { aspect-ratio: 16 / 12; }
.av-demo-badge { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); padding: 5px 9px; border: 1px solid #274156; border-radius: 4px; color: #b3c9dc; background: #09131dd9; font-size: 8px; text-align: center; white-space: nowrap; }
.av-stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
.av-player { padding: 14px 17px 13px; border-top: 1px solid #202b39; }
.av-timeline { display: flex; align-items: center; gap: 11px; color: #b0bfd1; font-size: 9px; font-variant-numeric: tabular-nums; }
.av-timeline input { flex: 1; min-width: 0; }
.av-player-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.av-player-buttons, .av-volume { display: flex; align-items: center; gap: 10px; }
.av-play { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #4ebfdd; border-radius: 50%; background: #94e5fc; color: #07121c; font-size: 11px !important; }
.av-play:hover { background: #ccf4ff; }
#av-play-state { color: #b2c1d2; font-size: 9px; }
.av-volume { gap: 6px; }
.av-volume input { width: 65px; }
.av-volume > span { font-size: 8px; color: #aab9cc; }
.av-main input[type="range"] { display: block; width: 100%; height: 14px; accent-color: #6ddfff; cursor: pointer; }
.av-volume input[type="range"] { width: 62px; }
.av-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.av-settings-grid .av-panel { padding: 19px 17px; }
.av-text-button { padding: 3px 0; border: 0; background: none; color: #b2c3d6; font-size: 9px !important; text-decoration: underline; text-underline-offset: 3px; }
.av-text-button:hover { color: var(--av-cyan); }
.av-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.av-colors label { display: flex; align-items: center; gap: 7px; color: #c6d2df; font-size: 9px; line-height: 1.5; }
.av-main input[type="color"] { flex-shrink: 0; width: 27px; height: 27px; padding: 3px; border: 1px solid #3a485b; border-radius: 5px; background: #131d2a; cursor: pointer; }
.av-main input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.av-main input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 2px; }
.av-presets { display: flex; align-items: center; gap: 7px; margin: 15px 0 19px; }
.av-palette { width: 17px; height: 17px; padding: 0; border: 2px solid #111821; border-radius: 50%; outline: 1px solid transparent; }
.av-palette--ice { background: linear-gradient(135deg, #16bfff 50%, #ad83ff 50%); }
.av-palette--sunset { background: linear-gradient(135deg, #ff9b48 50%, #ff4b92 50%); }
.av-palette--mint { background: linear-gradient(135deg, #40ffc5 50%, #51a8ff 50%); }
.av-palette--rose { background: linear-gradient(135deg, #ff65c7 50%, #9b7aff 50%); }
.av-palette.is-active { outline-color: #9bc9db; }
.av-presets > span { margin-left: 1px; color: #a5b3c4; font-size: 8px; }
.av-range-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 4px; color: #c7d3e2; font-size: 10px; }
.av-range-label output { color: #a9c5d8; font-size: 9px; }
.av-field { display: block; margin-bottom: 14px; }
.av-field > span, .av-label { display: block; margin-bottom: 7px; color: #bdcbdc; font-size: 10px; }
.av-main .av-field input, .av-main .av-field select { display: block; width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid #344256; border-radius: 5px; color: #e0e9f4; background: #0b121d; font-size: 10px; color-scheme: dark; }
.av-field input::placeholder { color: #8b9bb0; }
.av-image-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.av-small-upload { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 4px; border: 1px dashed #435269; border-radius: 5px; color: #bacbdd; background: #101a27; font-size: 9px; cursor: pointer; }
.av-small-upload:hover { color: var(--av-cyan); border-color: var(--av-cyan); }
.av-small-upload i { color: #8da9c1; }
.av-color-background { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; color: #bfcede; font-size: 10px; }
.av-note { margin: 12px 0 0; color: #9cacc0; font-size: 8px; line-height: 1.7; }
.av-export { background: linear-gradient(150deg, #14212e 0%, #101620 45%); }
.av-export h2 { margin-bottom: 23px; }
.av-formats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-bottom: 20px; }
.av-formats button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 82px; padding: 10px 3px; border: 1px solid #354255; border-radius: 6px; color: #adbcd0; background: #0e1622; }
.av-formats button:hover { border-color: #729ab4; }
.av-formats button.is-active { border-color: #54bcd7; color: #9beaff; background: #152c3a; }
.av-format-icon { display: block; width: 24px; height: 14px; border: 1px solid currentColor; border-radius: 2px; margin-bottom: 1px; }
.av-format-icon--tall { width: 12px; height: 18px; margin-top: -2px; margin-bottom: -1px; }
.av-format-icon--square { width: 16px; height: 16px; margin-bottom: -1px; }
.av-formats strong { font-size: 10px; font-weight: 600; }
.av-formats button > span { color: #b0bdd0; font-size: 8px; }
.av-export-separator { height: 1px; margin: 19px 0; background: #2a3746; }
.av-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.av-time-fields .av-field > span { font-size: 9px; }
.av-export-summary { padding: 12px 0 15px; }
.av-export-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; font-size: 9px; }
.av-export-summary > div > span { color: #aebdd0; }
.av-export-summary strong { color: #d7e5f3; font-size: 9px; font-weight: 500; text-align: right; }
.av-codec { margin-left: 3px; font-size: 7px; color: #98adbf; }
.av-export-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 43px; padding: 10px; border: 1px solid #9be5fd; border-radius: 6px; background: #a0e7fa; color: #06202d; font-size: 11px !important; font-weight: 750 !important; box-shadow: 0 4px 20px #18a4d00c; }
.av-export-button:hover { background: #ccf4ff; }
.av-export-hint { margin: 11px 2px 0; color: #adbbcc; font-size: 9px; line-height: 1.6; text-align: center; }
.av-browser-note { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid #293646; color: #9cacc0; font-size: 8px; line-height: 1.65; }
.av-export-footnote { display: flex; gap: 10px; padding: 17px 10px; color: #a2b2c7; }
.av-export-footnote > i { margin-top: 3px; font-size: 12px; }
.av-export-footnote p { margin: 0; color: #a2b2c7; font-size: 9px; line-height: 1.8; }
.av-progress { margin-top: 18px; padding-top: 13px; border-top: 1px solid #314357; }
.av-progress label { display: block; margin-bottom: 10px; color: #d5e3f2; font-size: 10px; }
.av-progress progress { width: 100%; height: 8px; accent-color: #61dcff; }
.av-progress progress::-webkit-progress-bar { border-radius: 9px; background: #26384b; }
.av-progress progress::-webkit-progress-value { border-radius: 9px; background: #67dbfc; }
.av-progress > div { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; color: #b6c8dc; font-size: 9px; }
.av-download { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; padding: 11px 5px; border: 1px solid #438b77; border-radius: 5px; color: #abf9d7; background: #12342b; font-size: 10px; text-decoration: none; text-align: center; }
.av-download:hover { color: #d4ffec; background: #1b4e3f; }
.av-status { min-height: 20px; margin: 19px 0 0; padding: 0 3px; color: #a4bdd0; font-size: 11px; line-height: 1.8; }
.av-status.is-error { color: #ffc0b8; }
.av-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 45px 0 0; padding: 28px 0 0; border-top: 1px solid #26313f; }
.av-guide > div { position: relative; padding-left: 35px; }
.av-guide > div > span { position: absolute; top: 1px; left: 0; color: #75b6ce; font-size: 10px; }
.av-guide h2 { margin: 0 0 7px; color: #cbd9e9; font-size: 12px; font-weight: 600; }
.av-guide p { margin: 0; color: #a0b0c4; font-size: 10px; line-height: 1.8; }
.av-page .cookie-notice { z-index: 1090; }
@media (min-width: 1700px) { .av-workspace { grid-template-columns: 265px minmax(0, 1fr) 275px; gap: 20px; } .av-panel { padding: 23px; } }
@media (max-width: 1200px) { .av-page .av-main { width: calc(100% - 40px); } .av-workspace { grid-template-columns: 210px minmax(0, 1fr); gap: 14px; } .av-export-column { grid-column: 1 / -1; } .av-export { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; column-gap: 22px; } .av-export h2 { grid-column: 1 / -1; margin-bottom: 16px; } .av-export .av-label, .av-export .av-formats { grid-column: 1; } .av-export .av-field { grid-column: 2; } .av-export .av-export-separator { display: none; } .av-export .av-label { grid-row: 2; } .av-export .av-formats { grid-row: 3 / 5; } .av-export > .av-field[for="av-quality"] { grid-row: 2 / 4; } .av-export > .av-field[for="av-fps"] { grid-row: 4 / 6; } .av-export > .av-field[for="av-range"] { grid-column: 1; } .av-export .av-time-fields { grid-column: 1 / 3; } .av-export .av-export-summary { grid-column: 3; grid-row: 2 / 6; } .av-export .av-export-button, .av-export .av-export-hint { grid-column: 3; } .av-export .av-browser-note, .av-export .av-progress, .av-export .av-download { grid-column: 1 / -1; } .av-export-footnote { padding: 10px; } .av-export-footnote p { font-size: 10px; } }
@media (max-width: 760px) { .av-page .av-main { width: calc(100% - 28px); padding-top: 105px; } .av-heading { margin-top: 26px; align-items: start; } .av-heading h1 { font-size: 29px; letter-spacing: -1px; } .av-heading p { font-size: 11px; line-height: 1.7; } .av-local { display: none; } .av-workspace { grid-template-columns: minmax(0, 1fr); } .av-center { grid-row: 1; } .av-sidebar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 14px; } .av-styles { margin: 0; } .av-sidebar-tip { grid-column: 1 / -1; margin-top: 0; } .av-panel { padding: 17px 14px; } .av-preview-toolbar { min-height: 42px; } .av-stage { min-height: 180px; } .av-settings-grid { gap: 12px; } .av-settings-grid .av-panel { padding: 16px 13px; } .av-panel h2 { font-size: 11px; } .av-image-fields { grid-template-columns: 1fr; } .av-note { font-size: 9px; } .av-main input[type="range"] { min-height: 24px; } .av-main .av-field input, .av-main .av-field select { min-height: 40px; font-size: 12px; } .av-guide { gap: 20px; margin-top: 30px; } .av-demo { font-size: 10px !important; } .av-drop > small { font-size: 8px; } .av-guide > div { padding-left: 0; padding-top: 25px; } .av-guide h2 { font-size: 11px; } }
@media (max-width: 480px) { .av-breadcrumb { font-size: 10px; gap: 10px; } .av-heading h1 { font-size: 27px; max-width: 320px; } .av-heading h1 em { white-space: nowrap; } .av-eyebrow { font-size: 9px; letter-spacing: 1.5px; } .av-settings-grid { grid-template-columns: 1fr; } .av-colors label { font-size: 11px; } .av-image-fields { grid-template-columns: 1fr 1fr; } .av-range-label, .av-field > span { font-size: 11px; } .av-presets > span { font-size: 10px; } .av-sidebar { grid-template-columns: 1fr; } .av-styles { grid-row: 1; } .av-style-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .av-style > span { padding: 9px 7px; font-size: 10px; } .av-panel-heading > span { font-size: 10px; } .av-drop { padding: 19px 8px; } .av-drop strong { font-size: 12px; } .av-drop > span, .av-drop > small { font-size: 10px; } .av-demo { padding-top: 17px; font-size: 12px !important; } .av-export { display: block; padding: 22px 19px; } .av-export .av-label { margin-top: 20px; } .av-export .av-export-separator { display: block; } .av-formats { margin-bottom: 22px; } .av-formats button { min-height: 90px; } .av-formats strong { font-size: 12px; } .av-formats button > span { font-size: 10px; } .av-export-summary > div { margin-bottom: 14px; font-size: 11px; } .av-export-summary strong { font-size: 11px; } .av-export-button { min-height: 46px; font-size: 13px !important; } .av-export-hint, .av-browser-note { font-size: 10px; } .av-demo-badge { font-size: 7px; bottom: 10px; } .av-player { padding: 12px; } #av-play-state { font-size: 9px; } .av-volume > span { display: none; } .av-volume input[type="range"] { width: 48px; } .av-guide { grid-template-columns: 1fr; gap: 22px; } .av-guide > div { padding: 0 0 0 35px; } .av-guide h2 { font-size: 13px; } .av-guide p { font-size: 11px; } .av-preview-toolbar .av-icon-button, .av-player .av-icon-button { width: 34px; height: 34px; } }
@media (max-width: 760px) {
    .av-sidebar, .av-center { display: contents; }
    .av-preview { grid-row: 1; }
    .av-source { grid-row: 2; }
    .av-styles { grid-row: 3; }
    .av-settings-grid { grid-row: 4; margin-top: 0; }
    .av-sidebar-tip { grid-row: 5; }
    .av-export-column { grid-row: 6; }
    .av-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .av-play, .av-preview-toolbar .av-icon-button, .av-player .av-icon-button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .av-page *, .av-page *::before, .av-page *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Studio v2: models, project library and a precise audio timeline. */
.av-main .av-project-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--av-line); border-radius: 10px; background: #0d141f; }
.av-project-name { display: flex; align-items: center; gap: 10px; min-width: 160px; max-width: 290px; flex: 1; color: #7edcff; }
.av-main .av-project-name input { width: 100%; min-width: 0; padding: 7px 2px; border: 0; border-bottom: 1px solid transparent; color: #e1ebf8; background: transparent; font-size: 12px; font-weight: 600; }
.av-main .av-project-name input:focus { border-bottom-color: #669bb4; outline-offset: 2px; }
.av-draft-status { margin-right: auto; color: #9eb1c4; font-size: 9px; }
.av-draft-status.is-saved { color: #8ddfbe; }
.av-project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.av-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid #34475b; border-radius: 6px; background: #132032; color: #cedfef; font: 500 10px "Manrope", system-ui, sans-serif; line-height: 1.5; text-decoration: none; cursor: pointer; }
.av-page .av-main .av-action { font-size: 10px; }
.av-action:hover { border-color: #62b6d1; color: #ceefff; background: #1d3348; }
.av-action:focus-visible, .av-dialog :is(button,a,input):focus-visible { outline: 2px solid #7fe1ff; outline-offset: 3px; }
.av-action:disabled { opacity: .45; cursor: not-allowed; }
.av-action--icon { width: 34px; padding: 6px; }
.av-action--primary { border-color: #6dcbe3; background: #91def2; color: #0c2533; font-weight: 750; }
.av-action--primary:hover { color: #092434; background: #b4efff; }
.av-preset-library { margin: 0 0 20px; overflow: hidden; border: 1px solid #2a3b4d; border-radius: 11px; background: linear-gradient(120deg, #111e2d, #0e1520); }
.av-preset-library > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 17px; list-style: none; cursor: pointer; }
.av-preset-library > summary::-webkit-details-marker, .av-advanced > summary::-webkit-details-marker { display: none; }
.av-preset-library > summary > span:first-child { display: flex; align-items: center; gap: 10px; color: #d3e4f4; font-size: 11px; font-weight: 600; }
.av-preset-library > summary > span:first-child > i { color: #8cd9f5; }
.av-preset-library > summary > span:last-child { display: flex; gap: 12px; align-items: center; color: #a7bed2; font-size: 9px; }
.av-preset-library > summary .fa-chevron-down, .av-advanced summary .fa-chevron-down { font-size: 8px; transition: transform .2s; }
.av-preset-library[open] > summary .fa-chevron-down, .av-advanced[open] summary .fa-chevron-down { transform: rotate(180deg); }
.av-template-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 17px 12px; }
.av-template-filters button, .av-style-filters button { min-height: 27px; padding: 5px 10px; border: 1px solid #304458; border-radius: 5px; background: transparent; color: #abbdd0; font-size: 9px !important; }
.av-template-filters button:hover, .av-style-filters button:hover { color: #d9f6ff; border-color: #6c9db5; }
.av-template-filters button.is-active, .av-style-filters button.is-active { color: #a9ebff; border-color: #4c849c; background: #1b3447; }
.av-templates { display: flex; gap: 11px; padding: 0 17px 17px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #385e78 #111c2a; }
.av-template { position: relative; flex: 0 0 168px; overflow: hidden; padding: 0; border: 1px solid #36475c; border-radius: 7px; background: #080d15; color: #d6e6f6; text-align: left; }
.av-template:hover { border-color: #8bddfa; }
.av-template.is-active { border-color: #75dfff; box-shadow: 0 0 0 1px #75dfff40; }
.av-template canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; }
.av-template > strong { display: block; padding: 8px 10px 0; font-size: 10px; font-weight: 650; }
.av-template > small { display: block; padding: 4px 10px 10px; color: #a0b6cd; font-size: 8px; }
.av-style-search { position: relative; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 8px; border: 1px solid #35465a; border-radius: 5px; color: #8ab3cf; background: #0b1320; }
.av-main .av-style-search input { width: 100%; min-width: 0; padding: 1px 0; border: 0; outline: 0; background: transparent; color: #dce8f7; font-size: 10px; }
.av-style-search input::placeholder { color: #9ab0c6; }
.av-style-search:focus-within { border-color: #78d6f2; outline: 1px solid #78d6f2; }
.av-style-search i { font-size: 10px; }
.av-style-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.av-style-filters button { min-height: 25px; padding: 4px 6px; font-size: 8px !important; }
.av-styles .av-style-grid { max-height: 680px; overflow-y: auto; padding: 1px 4px 1px 1px; scrollbar-width: thin; scrollbar-color: #40617b #111c2a; }
.av-audio-timeline { padding: 14px 17px 12px; border-top: 1px solid #2a394c; background: #0c1420; }
.av-waveform-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: #c3d7eb; font-size: 10px; }
.av-waveform-heading i { margin-right: 5px; color: #71d3f2; }
#av-tempo { color: #9eb9d2; font-size: 8px; }
#av-waveform { display: block; width: 100%; height: 76px; border: 1px solid #24394e; border-radius: 5px; background: #080f18; cursor: crosshair; touch-action: pan-y; }
.av-clip-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.av-clip-toolbar > div { display: flex; flex-wrap: wrap; gap: 6px; }
.av-clip-toolbar .av-action { min-height: 29px; padding: 5px 7px; font-size: 8px !important; }
.av-check { display: flex; align-items: center; gap: 8px; margin: 14px 0; color: #c6d7e9; font-size: 10px; line-height: 1.6; cursor: pointer; }
.av-check input { flex-shrink: 0; width: 14px; height: 14px; margin: 0; accent-color: #7bdfff; }
.av-clip-toolbar .av-check { margin: 0; font-size: 9px; }
.av-advanced-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px; margin-top: 16px; }
.av-advanced { padding: 0; }
.av-advanced > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px; list-style: none; cursor: pointer; color: #dae7f5; }
.av-advanced > summary > span { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 650; }
.av-advanced > summary > span > i { color: #80d5ee; font-size: 11px; }
.av-advanced-body { padding: 0 16px 17px; }
.av-advanced-body .av-range-label:first-child { margin-top: 0; }
.av-two-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.av-two-fields .av-field { margin-bottom: 0; }
.av-project-files, .av-recent-exports { margin-top: 16px; }
.av-project-files > .av-action { width: 100%; margin-bottom: 9px; font-size: 9px; }
.av-project-files h2, .av-recent-exports h2 { font-size: 11px; }
.av-import-project { position: relative; }
.av-import-project:focus-within { outline: 2px solid #76dfff; outline-offset: 3px; }
.av-export-estimate { margin: 11px 0 0; color: #b1c5d9; font-size: 9px; line-height: 1.6; text-align: center; }
.av-export-estimate.is-error { color: #ffb9a9; }
.av-export-entry { margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid #2c4157; }
.av-export-entry > strong { display: block; overflow-wrap: anywhere; color: #d6e7f5; font-size: 10px; }
.av-export-entry > small { display: block; margin-top: 5px; color: #a6bbce; font-size: 8px; }
.av-export-entry > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.av-export-entry .av-action { min-height: 29px; padding: 5px 7px; font-size: 9px !important; }
.av-focus-mode .av-preset-library, .av-focus-mode .av-sidebar { display: none; }
.av-focus-mode .av-workspace { grid-template-columns: minmax(0,1fr) 254px; }
.av-focus-mode .av-center { display: block; }
.av-focus-mode .av-style-grid { display: none; }
.av-dialog { width: min(820px, calc(100% - 32px)); max-height: min(85vh, 950px); padding: 26px; overflow-y: auto; border: 1px solid #465f78; border-radius: 15px; background: #111c2a; color: #e0eafa; font-family: "Manrope",system-ui,sans-serif; color-scheme: dark; box-shadow: 0 24px 100px #0009; }
.av-dialog::backdrop { background: #020712bf; backdrop-filter: blur(6px); }
.av-dialog[open] { animation: av-dialog-enter .15s ease-out; }
.av-dialog [hidden] { display: none !important; }
.av-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.av-dialog-header h2 { margin: 7px 0 0; color: #e0ecfa; font-size: 23px; }
.av-dialog-intro { margin-bottom: 22px; color: #b6c8db; font-size: 12px; line-height: 1.7; }
.av-project-list { display: grid; gap: 12px; }
.av-project-list:empty::before { content: "Votre bibliothèque est vide. Sauvegardez votre premier projet pour le retrouver ici."; padding: 30px 18px; border: 1px dashed #435b72; border-radius: 8px; color: #b0c6d9; font-size: 12px; line-height: 1.8; }
.av-saved-project { display: grid; grid-template-columns: 104px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 13px; border: 1px solid #344b63; border-radius: 9px; background: #101a28; }
.av-saved-project canvas { display: block; width: 104px; height: 64px; border: 1px solid #314253; border-radius: 5px; background: #050a12; }
.av-saved-project h3 { margin: 0 0 7px; color: #e5eefa; font-size: 13px; overflow-wrap: anywhere; }
.av-saved-project p { margin: 0; color: #b3c8dc; font-size: 10px; line-height: 1.8; }
.av-saved-project-actions { display: flex; gap: 6px; }
.av-saved-project .av-delete-project { color: #ffb6a6; }
.av-project-confirm { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid #82614d; border-radius: 6px; color: #ffd1b7; background: #342318; font-size: 11px; }
.av-project-confirm > div { display: flex; gap: 6px; }
.av-dialog .av-note { color: #aebfd1; font-size: 10px; }
.av-dialog--help { max-width: 600px; }
.av-shortcuts { margin: 20px 0 0; }
.av-shortcuts > div { display: grid; grid-template-columns: minmax(140px,1fr) 1.5fr; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid #30465c; }
.av-shortcuts dt { font-weight: 400; font-size: 12px; }
.av-shortcuts dd { margin: 0; color: #c8d9ea; font-size: 12px; }
.av-shortcuts kbd { padding: 4px 6px; border: 1px solid #4b6580; border-radius: 4px; background: #1b2c40; color: #d9edff; font-size: 10px; }
.av-dialog--video { width: min(1000px,calc(100% - 28px)); }
#av-result-video { display: block; width: 100%; max-height: 65vh; border-radius: 8px; background: #000; }
.av-project-empty-message { padding: 25px 16px; border: 1px dashed #415970; border-radius: 7px; color: #bcd1e4; font-size: 12px; }
@keyframes av-dialog-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1200px) {
    .av-export-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; }
    .av-export { display: block; grid-column: 1; grid-row: 1 / span 4; }
    .av-project-files, .av-recent-exports, .av-export-footnote { grid-column: 2; margin-top: 0; }
    .av-project-actions { margin-left: auto; }
    .av-draft-status { display: none; }
    .av-export .av-export-separator { display: block; }
}
@media (max-width: 760px) {
    .av-main .av-project-bar { gap: 9px; padding: 11px; }
    .av-project-name { max-width: none; flex-basis: 100%; }
    .av-project-actions { justify-content: start; width: 100%; margin-left: 0; gap: 6px; }
    .av-main .av-action { min-height: 38px; }
    .av-project-actions .av-action--icon { width: 38px; }
    .av-preset-library > summary { padding: 14px 12px; }
    .av-preset-library > summary > span:first-child { font-size: 10px; }
    .av-preset-library > summary > span:last-child { font-size: 8px; }
    .av-template-filters { padding-inline: 12px; }
    .av-template-filters button { min-height: 32px; }
    .av-templates { padding-inline: 12px; }
    .av-template { flex-basis: 150px; }
    .av-advanced-grid { grid-row: 5; }
    .av-sidebar-tip { grid-row: 6; }
    .av-export-column { grid-row: 7; display: block; }
    .av-project-files, .av-recent-exports { margin-top: 16px; }
    .av-styles .av-style-grid { max-height: 460px; }
    .av-focus-mode .av-workspace { display: block; }
    .av-focus-mode .av-export-column { margin-top: 16px; }
    .av-clip-toolbar .av-action { min-height: 36px; font-size: 9px !important; }
    .av-project-bar #av-focus { margin-left: auto; }
    .av-advanced summary { min-height: 54px; }
    .av-advanced summary > span { font-size: 11px; }
    .av-advanced-body .av-check { min-height: 32px; }
    .av-export .av-field { margin-bottom: 16px; }
}
@media (max-width: 480px) {
    .av-advanced-grid { grid-template-columns: minmax(0,1fr); }
    .av-audio-timeline { padding: 14px 12px; }
    .av-waveform-heading { font-size: 10px; }
    .av-preview-toolbar { padding-inline: 11px; }
    .av-preview-toolbar > div { gap: 3px; }
    .av-preview-toolbar > span { font-size: 8px; }
    .av-preview-toolbar .av-icon-button { width: 44px; }
    .av-clip-toolbar { gap: 7px; }
    .av-clip-toolbar > div { width: 100%; }
    .av-clip-toolbar #av-auto-excerpt { flex: 1; }
    .av-clip-toolbar .av-check { min-height: 34px; font-size: 11px; }
    .av-main .av-project-actions .av-action { min-height: 40px; padding-inline: 8px; font-size: 9px; }
    .av-main .av-project-actions .av-action--icon { width: 36px; padding: 7px; }
    .av-main .av-project-actions #av-help { display: none; }
    .av-template-filters button { padding-inline: 7px; font-size: 8px !important; }
    .av-preset-library > summary { align-items: start; }
    .av-preset-library > summary > span:last-child { white-space: nowrap; }
    .av-preset-library > summary > span:first-child { max-width: 190px; line-height: 1.6; }
    .av-dialog { padding: 20px 15px; }
    .av-saved-project { grid-template-columns: 75px minmax(0,1fr); gap: 12px; }
    .av-saved-project canvas { width: 75px; height: 55px; }
    .av-saved-project-actions { grid-column: 1 / -1; justify-content: end; }
    .av-saved-project .av-action { min-height: 40px; }
    .av-shortcuts > div { grid-template-columns: 1fr 1.2fr; gap: 10px; }
    .av-shortcuts dd { font-size: 11px; }
    .av-dialog-header h2 { font-size: 21px; }
}

/* Portable projects and delivery queues. */
.av-batch-open { width: 100%; margin-top: 10px; }
.av-library-filters { display: grid; grid-template-columns: minmax(0,1fr) 195px; gap: 12px; margin: 0 0 12px; }
.av-library-filters > label { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border: 1px solid #405a73; border-radius: 6px; color: #9bc4df; background: #0b1521; }
.av-library-filters input, .av-library-filters select { min-width: 0; width: 100%; padding: 2px 0; border: 0; outline: 0; color: #dce9f8; background: transparent; font: 11px "Manrope",system-ui,sans-serif; }
.av-library-filters input::placeholder { color: #a0b9ce; }
.av-library-filters label:focus-within { outline: 2px solid #79dfff; outline-offset: 2px; }
.av-saved-project-actions { flex-wrap: wrap; justify-content: end; max-width: 205px; }
.av-project-rename-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 10px; border-top: 1px solid #354b61; }
.av-project-rename-form label { flex-basis: 100%; color: #c4daed; font-size: 11px; }
.av-project-rename-form input { flex: 1; min-width: 140px; padding: 9px; border: 1px solid #53708c; border-radius: 5px; color: #e1edfb; background: #091421; font: 12px "Manrope",system-ui,sans-serif; }
.av-project-rename-form > div { display: flex; gap: 7px; }
.av-library-empty { padding: 23px 16px; border: 1px dashed #425c75; border-radius: 8px; color: #bed3e7; font-size: 12px; line-height: 1.8; }
.av-library-empty p { margin: 0 0 12px; color: #bed3e7; }
.av-dialog--transfer { max-width: 610px; }
#av-bundle-progress { margin: 24px 0 12px; color: #c6dfef; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#av-bundle-progress.is-error { color: #ffb7a9; }
#av-transfer-progress, .av-batch-job progress { display: block; width: 100%; height: 9px; accent-color: #80dfff; }
#av-transfer-progress::-webkit-progress-bar, .av-batch-job progress::-webkit-progress-bar { border-radius: 10px; background: #273c51; }
#av-transfer-progress::-webkit-progress-value, .av-batch-job progress::-webkit-progress-value { border-radius: 10px; background: #7ddcfa; }
.av-transfer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 10px; margin-top: 25px; }
.av-transfer-actions .av-action { min-height: 40px; padding: 10px 14px; font-size: 11px; text-align: center; }
.av-dialog--batch { max-width: 800px; }
.av-batch-formats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.av-batch-formats legend { float: none; margin: 0 0 10px; color: #c4d9ed; font-size: 11px; }
.av-batch-formats label { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: start; column-gap: 10px; row-gap: 6px; padding: 14px 12px; border: 1px solid #3c526b; border-radius: 7px; background: #0c1623; cursor: pointer; }
.av-batch-formats label:has(input:checked) { border-color: #72cbe9; background: #173346; }
.av-batch-formats label:focus-within { outline: 2px solid #8ae3ff; outline-offset: 3px; }
.av-batch-formats input { grid-row: 1 / span 2; width: 15px; height: 15px; margin: 1px 0 0; accent-color: #77dbfc; }
.av-batch-formats strong { color: #dbebfa; font-size: 11px; font-weight: 600; }
.av-batch-formats span { color: #a9c2d9; font-size: 9px; }
.av-batch-summary { margin: 13px 0 19px; color: #bfd5e9; font-size: 11px; line-height: 1.8; }
.av-batch-summary.is-error { color: #ffc4b4; }
.av-batch-jobs { display: grid; gap: 10px; }
.av-batch-job { padding: 14px; border: 1px solid #38506a; border-radius: 7px; background: #0e1927; }
.av-batch-job > div:first-child { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.av-batch-job strong { display: block; color: #e0edfb; font-size: 12px; }
.av-batch-job small { display: block; margin-top: 6px; color: #b2c9df; font-size: 10px; }
.av-batch-job [data-job-status] { color: #a9c8df; font-size: 10px; text-align: right; }
.av-batch-job progress { margin-top: 14px; }
.av-batch-job a { margin-top: 12px; }
.av-batch-job[data-state="done"] { border-color: #477f71; }
.av-batch-job[data-state="done"] [data-job-status] { color: #a6f5d3; }
.av-batch-job[data-state="error"] { border-color: #91695b; }
.av-batch-job[data-state="error"] [data-job-status] { color: #ffc4ae; }
.av-batch-status { min-height: 20px; margin: 19px 0 0; color: #c7dced; font-size: 12px; line-height: 1.8; }
@media (max-width: 600px) {
    .av-library-filters { grid-template-columns: minmax(0,1fr); gap: 9px; }
    .av-library-filters > label { min-height: 44px; }
    .av-batch-formats { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .av-batch-formats label { padding: 13px; grid-template-columns: 17px 1fr; }
    .av-batch-formats strong { font-size: 12px; }
    .av-batch-formats span { font-size: 10px; }
    .av-transfer-actions .av-action { min-height: 44px; flex: 1; }
    .av-saved-project-actions { max-width: none; }
    .av-project-rename-form input { flex-basis: 100%; }
}
