:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#eef2f8;background:#111723;font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:280px;background:radial-gradient(circle at 75% 0%,#23334d 0,#111723 50%)}button,input{font:inherit}.workspace{max-width:1120px;margin:0 auto;padding:26px 24px 42px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:28px}.brand{font-size:1.12rem;font-weight:680;letter-spacing:.01em}.brand-mark{color:#e6b772;font-size:1.6rem;vertical-align:-2px;margin-right:8px}.lab{margin-left:10px;font-size:.8rem;font-weight:500;color:#b7c4d6}.privacy{color:#a9bacd;font-size:.9rem}.layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start}.editor,.actions,.result{background:#1b2433;border:1px solid #334156;border-radius:18px;box-shadow:0 18px 38px #0002}.editor{padding:20px;min-width:0}.editor-top,.result-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.editor-top h1{font-size:1.35rem;line-height:1.25;margin:0 0 16px;font-weight:680}.editor-top span{color:#a6b6cb;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:45%}.crop-wrap{display:grid;place-items:center;min-height:330px;max-height:570px;padding:16px;background:#111925;border:1px solid #2b394c;border-radius:12px;overflow:hidden}#crop-canvas{display:block;max-width:100%;max-height:520px;cursor:grab;touch-action:none;box-shadow:0 8px 28px #0006}#crop-canvas:active{cursor:grabbing}.crop-help{color:#b2bfd0;font-size:.9rem;line-height:1.4;margin-top:13px}.zoom-row{display:flex;align-items:center;gap:13px;margin-top:16px;color:#c3d0df;font-size:.9rem}.small-control{width:42px;height:42px;border:1px solid #556880;border-radius:10px;color:#fff;background:#2b3950;font-size:1.4rem;cursor:pointer}.small-control:hover{background:#3b4d68}.actions{padding:23px 21px}.step-label{color:#e6b772;font-size:.84rem;letter-spacing:.06em;text-transform:uppercase;font-weight:700;margin-bottom:14px}.button{display:block;width:100%;padding:14px 17px;text-align:center;text-decoration:none;border:0;border-radius:10px;cursor:pointer;font-weight:680;font-size:1rem;transition:filter .15s,transform .15s}.button:hover{filter:brightness(1.1)}.button:active{transform:scale(.99)}.primary{background:#e6b772;color:#172131}.secondary{background:#d5e6ff;color:#18273b}.button:disabled{opacity:.6;cursor:wait}#photo-file{position:absolute;width:1px;height:1px;opacity:0}#photo-file:focus-visible+.aside-note{outline:2px solid #e6b772}.aside-note,.spec,.status{font-size:.9rem;line-height:1.5;color:#b4c2d4}.aside-note{margin:13px 0 0}.separator{height:1px;background:#354459;margin:25px 0}.spec{margin-top:10px}.status{min-height:2.8em;margin:22px 0 0}.status.error{color:#ffb5a7}progress{width:100%;height:9px;margin-top:10px;accent-color:#e6b772}.result{padding:20px;margin-top:20px}.result h2{font-size:1.22rem;margin:0 0 12px}.result-title{align-items:center}.result-title .button{width:auto;min-width:120px;padding:10px 16px}.result video{display:block;width:100%;max-width:960px;aspect-ratio:16/9;background:#111925;border-radius:10px}footer{color:#8293a9;font-size:.8rem;line-height:1.5;margin-top:25px}@media(max-width:800px){.workspace{padding:18px 14px 35px}.topbar{padding-bottom:18px}.privacy{font-size:.75rem;text-align:right;max-width:110px}.layout{grid-template-columns:1fr;gap:14px}.editor{padding:14px}.crop-wrap{min-height:250px;max-height:480px;padding:10px}.actions{padding:19px}.aside-note{margin-bottom:0}.editor-top h1{font-size:1.2rem}.crop-help{font-size:.86rem}.result-title{align-items:center}}@media(max-width:400px){.brand{font-size:1rem}.lab{display:none}.privacy{font-size:.7rem}.crop-wrap{min-height:210px}}
.result-info{margin:14px 0 0;color:#b4c2d4;font-size:.9rem;line-height:1.5}
.step-label{display:block}#template-select{display:block;width:100%;padding:12px 14px;background:#27364b;border:1px solid #556880;border-radius:10px;color:#eef2f8;cursor:pointer}#template-select:focus-visible{outline:2px solid #e6b772;outline-offset:2px}#template-select:disabled{opacity:.6;cursor:wait}
#music-select{display:block;width:100%;padding:12px 14px;background:#27364b;border:1px solid #556880;border-radius:10px;color:#eef2f8;cursor:pointer}#music-select:focus-visible{outline:2px solid #e6b772;outline-offset:2px}#music-select:disabled{opacity:.6;cursor:wait}
.photo-heading{font:inherit;font-weight:inherit;line-height:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer}.photo-heading:hover{text-decoration:underline;text-decoration-color:#e6b772;text-underline-offset:4px}.photo-heading:focus-visible{outline:2px solid #e6b772;outline-offset:4px;border-radius:3px}@media(max-width:800px){.photo-heading{text-decoration:underline;text-decoration-color:#e6b772;text-underline-offset:4px}}
.icon{display:inline-block;width:1.15em;height:1.15em;flex:none;vertical-align:-.18em;stroke-linecap:round;stroke-linejoin:round}.button .icon,.step-label .icon{margin-right:.5em}.photo-heading{display:inline-flex;align-items:center;gap:.42em}
.catalog h1{font-size:1.75rem;line-height:1.2;margin:0 0 7px}.catalog-intro{color:#b4c2d4;font-size:1rem;margin:0 0 22px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.template-card{display:block;overflow:hidden;text-decoration:none;color:#eef2f8;background:#1b2433;border:1px solid #334156;border-radius:18px;box-shadow:0 18px 38px #0002;transition:border-color .15s,transform .15s}.template-card:hover{border-color:#e6b772;transform:translateY(-2px)}.template-card:focus-visible{outline:3px solid #e6b772;outline-offset:3px}.template-preview{position:relative;aspect-ratio:16/9;background:#263a55;overflow:hidden}.preview-photo{position:absolute;left:31.77%;top:17.59%;width:36.46%;height:64.81%;object-fit:cover}.preview-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.card-body{padding:18px 20px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-body h2{font-size:1.18rem;margin:0 0 5px}.card-body p{color:#a8b9cc;font-size:.88rem;margin:0}.card-action{font-size:.94rem;color:#e6b772;font-weight:650;white-space:nowrap}.back-link{display:inline-block;color:#c7d5e8;text-decoration:none;margin:0 0 15px;font-size:.95rem}.back-link:hover{text-decoration:underline}.back-link:focus-visible{outline:2px solid #e6b772;outline-offset:4px}.chosen-template{font-size:1rem;font-weight:700;color:#e6b772;margin-bottom:8px}.chosen-template span{font-size:.85rem;color:#b4c2d4;font-weight:400}@media(max-width:800px){.catalog-grid{grid-template-columns:1fr;gap:14px}.catalog h1{font-size:1.45rem}.card-body{padding:15px 17px}.card-action{font-size:.86rem}}
[hidden]{display:none!important}
.catalog-sections{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:24px 0 16px}
.section-link,.page-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #485b73;border-radius:10px;background:#1b2433;color:#d9e5f4;text-decoration:none;font-size:.94rem;line-height:1.35}
.section-link:hover,.page-link:hover{border-color:#e6b772;color:#fff}
.section-link[aria-current],.page-link[aria-current]{background:#e6b772;color:#172131;border-color:#e6b772;font-weight:650}
.section-link:focus-visible,.page-link:focus-visible{outline:3px solid #d5e6ff;outline-offset:3px}
.catalog-count{color:#a8b9cc;font-size:.9rem;margin:0 0 16px}
.catalog-status{padding:26px 20px;border:1px solid #334156;border-radius:14px;background:#1b2433;color:#c7d5e8;line-height:1.5}
.catalog-status.error{color:#ffb5a7}
.catalog-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;margin-top:28px}
.photo-heading:disabled{opacity:.6;cursor:wait}
.template-card:focus-within{border-color:#e6b772}
.preview-open{position:absolute;inset:0;display:block}
.preview-open:focus-visible{outline:3px solid #e6b772;outline-offset:-4px}
.preview-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0}
.preview-playing .preview-motion{opacity:1}
.preview-toggle{position:absolute;left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:56px;height:56px;display:grid;place-items:center;border:1px solid #f2d5aa;border-radius:50%;background:#172131e8;color:#fff;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 10px #0006}
.preview-toggle:hover{background:#35445a}.preview-toggle:focus-visible{outline:3px solid #e6b772;outline-offset:3px}
.card-action{text-decoration:none}.card-action:hover{text-decoration:underline}.card-action:focus-visible{outline:2px solid #e6b772;outline-offset:4px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.site-header{margin-bottom:12px}
.site-header .privacy,.editor-header .privacy{display:block;max-width:none;text-align:right;font-size:.9rem;line-height:1.5;margin:0 0 10px;color:#bac8d9}
.how-it-works{display:block;width:100%;max-width:680px;height:auto;margin:0 auto;border-radius:14px}
.editor-header{padding-bottom:8px}
.catalog-sections{margin-top:16px}
.section-link{gap:8px}
.section-icon{width:19px;height:19px;flex:none}
.how-it-works{background:#111723}
@media(max-width:800px){.site-header .privacy,.editor-header .privacy{font-size:.85rem;text-align:center;margin-bottom:10px}.site-header{margin-bottom:8px}.catalog-sections{gap:7px;margin-top:12px}.section-link{padding:10px 12px;font-size:.9rem;gap:6px}.section-icon{width:18px;height:18px}.editor-header{padding-bottom:4px}}
@media(max-width:400px){.section-link{padding:10px 12px}.card-body{gap:8px}.card-action{white-space:normal;text-align:right}}

/* Compact, larger step illustrations; same asset for desktop and mobile. */
.how-it-works{max-width:720px;border-radius:0;background:transparent}
@media(max-width:800px){.how-it-works{width:calc(100% + 28px);max-width:none;margin-left:-14px;margin-right:-14px}.site-header{margin-bottom:10px}}

/* Quiet, transparent three-step illustration. */
.site-header .privacy{text-align:center;margin:12px 0 18px}

.site-header .privacy{margin:0 0 14px;text-align:center}
a.card-body{color:inherit;text-decoration:none;min-height:64px}
a.card-body h2{margin:0}
a.card-body:hover h2{color:#e6b772}
a.card-body:focus-visible{outline:3px solid #e6b772;outline-offset:-4px}

.music-picker{display:flex;align-items:stretch;gap:9px}
.music-picker #music-select{flex:1;min-width:0;width:auto}
.music-preview-toggle{flex:0 0 46px;min-height:46px;border:1px solid #556880;border-radius:10px;background:#27364b;color:#e6b772;font-size:1.15rem;cursor:pointer}
.music-preview-toggle:hover:not(:disabled){background:#354960;border-color:#e6b772}
.music-preview-toggle:focus-visible{outline:2px solid #e6b772;outline-offset:2px}
.music-preview-toggle:disabled{opacity:.4;cursor:default}

/* Choose a photo before adjusting its crop, at every screen size. */
.photo-picker-top{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-bottom:14px}
.photo-picker-top h1{width:100%;margin:0;font-size:1rem}
.photo-picker-top #photo-heading{font-weight:680}
.photo-picker-top #photo-heading span{color:inherit}

.zoom-row{gap:16px}
.back-link span{display:inline-block;margin-right:4px}

.site-footer{width:calc(100% - 48px);max-width:1072px;margin:20px auto 0;padding:18px 0 28px;border-top:1px solid #334156;text-align:center;color:#a9bacd;font-size:.88rem}
.footer-links{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.footer-links button,.footer-links a{font:inherit;color:inherit;background:none;border:0;padding:8px 0;text-decoration:none;cursor:pointer}
.footer-links button:hover,.footer-links a:hover{color:#e6b772}
.site-footer :is(button,a):focus-visible{outline:2px solid #e6b772;outline-offset:4px;border-radius:4px}
.contact-details{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.contact-details[hidden]{display:none}
.contact-details a{color:#d6e1ef;text-decoration:none;overflow-wrap:anywhere}
#contact-copy{font:inherit;padding:8px 13px;border:1px solid #556880;border-radius:8px;color:#eef2f8;background:#27364b;cursor:pointer;min-width:66px}
#contact-copy:hover{border-color:#e6b772}
.support-page{min-height:100vh;display:flex;flex-direction:column}
.support-page main{flex:1;width:100%}
@media(max-width:800px){.site-footer{width:calc(100% - 28px)}}

.information-page{max-width:680px;margin:32px auto 48px;line-height:1.7;color:#c7d5e8}.information-page h1{color:#eef2f8;font-size:1.8rem;line-height:1.2}.information-page h2{font-size:1.05rem;color:#e6b772;margin-top:26px}.information-page .button{display:inline-flex;margin-top:14px}

/* Quiet project notes; keep each phrase together on narrow screens. */
.site-header .privacy,.editor-header .privacy{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:0 .45em}
.editor-header .privacy{justify-content:flex-end}
.privacy>span{white-space:nowrap}
.footer-message{margin:6px 0 0;color:#91a2b8;font-size:.8rem;line-height:1.6}
@media(max-width:600px){.site-header .privacy,.editor-header .privacy{flex-direction:column;align-items:center;gap:2px}.privacy .privacy-divider{display:none}}

.information-page .legal-updated{font-size:.82rem;color:#a9bacd;margin-top:-8px}
.information-page a{color:#e6b772;text-underline-offset:3px;overflow-wrap:anywhere}
.information-page a:focus-visible{outline:2px solid #e6b772;outline-offset:4px}

.site-intro{margin:0 0 8px;text-align:center;color:#eef2f8;font-size:1.1rem;font-weight:500;line-height:1.5}
.preview-playing .preview-toggle{inset:0;transform:none;width:100%;height:100%;border:0;border-radius:0;background:transparent;box-shadow:none}
.preview-playing .preview-play-icon{visibility:hidden}
.preview-playing .preview-toggle:focus-visible{outline-offset:-4px}
@media(max-width:600px){.site-intro{font-size:1rem}}

/* Localization is a text layer; photo/video coordinates always remain LTR. */
.language-bar{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-block-end:10px;color:#a9bacd;font-size:.8rem}
#site-language{max-width:min(230px,75vw);min-height:36px;padding:5px 9px;border:1px solid #485b73;border-radius:8px;background:#1b2433;color:#c7d5e8;font:inherit;cursor:pointer}
#site-language:focus-visible{outline:2px solid #e6b772;outline-offset:3px}
.legal-language-notice{max-width:680px;margin:12px auto 0;padding:12px 16px;border:1px solid #485b73;border-radius:10px;color:#c7d5e8;line-height:1.6}
.section-link,.button,.card-body h2,.chosen-template{overflow-wrap:anywhere}
.section-link{max-width:100%;text-align:center}
.music-picker select{min-width:0;max-width:100%}
.card-body h2{min-width:0}
.button .icon,.step-label .icon{margin-right:0;margin-inline-end:.5em}
[dir=rtl] .layout{direction:ltr}
[dir=rtl] .layout>.editor,[dir=rtl] .layout>.actions{direction:rtl}
[dir=rtl] .editor-header .privacy{justify-content:flex-start}
[dir=rtl] .back-link>span[aria-hidden=true]{transform:scaleX(-1)}
.template-preview,#crop-canvas,.crop-wrap,.result video{direction:ltr}
#contact-address{direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere}
[data-legal-original]{text-align:left}

/* Equal result actions; wrap longer translations without squeezing the video. */
.result-title{flex-wrap:wrap;margin-bottom:12px}.result-title h2{margin:0}.result-actions{display:flex;flex-wrap:wrap;gap:10px;max-width:100%;margin-inline-start:auto}.result-actions .button{flex:1 1 140px;min-height:48px;min-width:0;display:flex;align-items:center;justify-content:center}.result #share-feedback{min-height:0;margin:0 0 14px}@media(max-width:600px){.result-actions{width:100%}}
