:root{color-scheme:dark;--bg:#0b0914;--ink:#f8f5ff;--line:#393347;--accent:#b54cf7}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{display:grid;grid-template-columns:282px minmax(0,1fr);min-height:100vh}.sidebar{background:#100e1b;border-right:1px solid #2c263c;min-height:100vh;padding:23px 18px;display:flex;flex-direction:column;gap:23px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{display:flex;align-items:center;font-size:24px;font-weight:850;letter-spacing:-.7px;gap:10px;white-space:nowrap}.brand em{font-style:normal;color:#b653f7}.mark{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;color:white;background:linear-gradient(130deg,#9942f6,#5734aa)}.sidebar nav{display:grid;gap:6px}.sidebar nav.second{padding-top:18px;border-top:1px solid #373047}.sidebar nav a{border-radius:11px;padding:12px 15px;color:#ddd6e7;font-weight:650}.sidebar nav a.active,.sidebar nav a:hover{background:linear-gradient(110deg,#742ec3,#4a2b80);color:white}.sidebar-promo{margin-top:auto;padding:20px;background:linear-gradient(160deg,#252033,#151220);border:1px solid #56466d;border-radius:14px}.sidebar-promo strong{font-size:16px}.sidebar-promo p{font-size:12px;color:#c7bbd7}.sidebar-promo a{display:block;text-align:center;background:#7a31d1;border-radius:9px;padding:11px;font-weight:750}.right{min-width:0;background:radial-gradient(ellipse at 50% 0%,#30213b37,transparent 40%),#0b0914}.top{height:70px;border-bottom:1px solid #30293e;display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:10px 30px}.status-chip{border:1px solid #443953;border-radius:12px;padding:10px 15px;color:#d9cbea;font-size:12px}.pro{background:linear-gradient(105deg,#9b3af2,#752eb6);border-radius:12px;padding:10px 17px;font-weight:750}.avatar{display:grid;place-items:center;width:39px;height:39px;background:#2d293d;border-radius:50%;font-weight:750}#mobile-menu{display:none;color:white;background:#28213b;border:1px solid #615077;border-radius:9px;padding:7px 11px}main{max-width:1450px;padding:29px 42px 65px;margin:0 auto}h1{font-size:clamp(29px,3vw,39px);letter-spacing:-1.1px;margin:0 0 5px}.lead{color:#aaa2bd;font-size:16px;margin:0}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:27px 0 29px}.steps>div{display:flex;align-items:center;gap:10px;color:#aca4ba;font-size:13px;font-weight:700}.steps b{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#625a78;color:white;font-size:17px}.steps .current{color:#d987ff}.steps .current b{background:linear-gradient(145deg,#b447f8,#7537d4);box-shadow:0 0 0 4px #a544f727}.sec-title{display:flex;justify-content:space-between;align-items:center;gap:13px;margin:21px 0 12px;font-weight:800;font-size:16px}.sec-title>span{color:#9990ab;font-size:12px;font-weight:500}.sec-title>a{font-size:12px;color:#d479ff}.prompt{position:relative}.prompt textarea{width:100%;min-height:124px;padding:15px 15px 28px;resize:vertical}.prompt small{position:absolute;right:13px;bottom:13px;color:#aca4bc;font-size:11px}textarea,input,select{background:linear-gradient(140deg,#211d30,#272239);border:1px solid #4c435e;border-radius:10px;color:#faf7ff;outline:none;padding:13px}textarea:focus,select:focus{border-color:#b550f4}textarea::placeholder{color:#ada2bc}h2{font-size:16px;margin:21px 0 11px}.types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mode{border:1px solid #4c4559;background:#211e2e;border-radius:10px;color:#e9e4f2;padding:13px 9px;font-weight:730;min-height:50px}.mode.selected{border:2px solid #b04cff;background:#3a2a56}.mode:hover,.theme:hover{border-color:#b24cf5}.styles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.theme{display:block;position:relative;aspect-ratio:1.6;min-width:0;border:2px solid transparent;border-radius:11px;background:#20192b;color:white;overflow:hidden;padding:0}.theme.selected{border-color:#bb4dff;box-shadow:0 0 0 2px #a943fa26}.art{position:absolute;inset:0;background-image:url('/animora-style-sprite.webp');background-size:600% 100%;background-repeat:no-repeat;background-color:#3d294e}.a0{background-position:0%}.a1{background-position:20%}.a2{background-position:40%}.a3{background-position:60%}.a4{background-position:80%}.a5{background-position:100%}.theme .name{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#151018e9);padding:18px 5px 8px;font-size:12px;font-weight:780;text-shadow:0 1px 4px #000}.theme .tick{display:none;position:absolute;right:5px;top:5px;background:#9c3deb;border-radius:50%;width:24px;height:24px;place-items:center;z-index:2}.theme.selected .tick{display:grid}.fruit{border:1px solid #665477;border-radius:22px;background:#292038;padding:8px 15px;margin-top:12px;aspect-ratio:auto;font-weight:690}.fruit.selected{background:#53336b}.hint{font-size:12px;color:#a79db4}.hint a{color:#e4adfb}.settings{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:16px;margin-top:25px}.settings>div{min-width:0}.settings label{display:block;font-weight:780;margin-bottom:9px}.settings select{display:block;width:100%;min-height:51px}.settings p{font-size:11px;color:#aca2bd;margin:8px 0}audio{width:100%;margin-top:12px}audio[hidden]{display:none}.advanced{margin-top:14px;border:1px solid #373044;border-radius:11px;background:#16121e;padding:14px}.advanced summary{cursor:pointer;color:#d8a2f4;font-weight:730}.advanced>div{padding-top:15px;display:grid;gap:9px}.advanced textarea{min-height:74px}.advanced select{width:100%}.actions{text-align:center;max-width:850px;margin:28px auto 0}#create{display:flex;align-items:center;justify-content:center;gap:18px;background:linear-gradient(100deg,#8036ff,#ba3df3 58%,#ed52cd);border:0;border-radius:12px;width:100%;min-height:66px;font-size:20px;font-weight:840;color:#fff}#create span{background:#57207193;border-radius:99px;padding:7px 13px;font-size:12px}#message{color:#edb4fb;font-size:12px;min-height:15px}.summary{display:flex;align-items:center;gap:12px;border-top:1px solid #3b304b;margin-top:27px;padding-top:21px}.summary #preview-icon{font-size:27px}.summary b{font-size:13px}.summary p{color:#aba1bb;font-size:12px;margin:3px 0}.summary small{margin-left:auto;border:1px solid #796039;background:#3c2d1c;color:#f0d09b;border-radius:100px;padding:6px 11px}footer{color:#8d809d;text-align:center;padding:35px 0;font-size:11px}@media(max-width:1200px){.shell{grid-template-columns:240px minmax(0,1fr)}main{padding:27px 24px 60px}.styles{grid-template-columns:repeat(3,1fr)}}@media(max-width:800px){.shell{display:block}.sidebar{position:fixed;left:0;top:0;z-index:100;width:min(310px,88vw);transform:translateX(-105%);transition:transform .2s;box-shadow:12px 0 35px #0008}.sidebar.shown{transform:translateX(0)}#mobile-menu{display:block;margin-right:auto}.top{padding:12px 16px}.settings{grid-template-columns:1fr 1fr}.music-field{grid-column:1/-1}}@media(max-width:520px){main{padding:23px 14px 45px}.pro{display:none}.lead{font-size:13px}.steps{gap:3px}.steps>div{font-size:10px;gap:4px}.steps b{width:28px;height:28px;font-size:12px}.types{grid-template-columns:repeat(2,1fr)}.styles{grid-template-columns:repeat(2,1fr)}.settings{display:block}.settings>div{margin-top:14px}.theme .name{font-size:11px}#create{font-size:17px}.sec-title>span{display:none}.summary small{margin-left:0}.summary{flex-wrap:wrap}}
/* Preview available from create screen without charging credits */
.quick-export{display:block;width:100%;margin-top:10px;min-height:52px;padding:13px;border:1px solid #596e49;border-radius:12px;background:#263421;color:#d7ff9b;font-size:13px;font-weight:750;cursor:pointer}.quick-export:hover{background:#31462b}

/* Guided video creator */
.express-wizard { max-width: 1024px; padding-top: 40px; }
.express-wizard [hidden] { display: none !important; }
.wizard-kicker { color: #d68bf8; font-size: 11px; font-weight: 750; letter-spacing: .12em; margin: 0 0 8px; }
.wizard-progress { display: flex; align-items: start; gap: 16px; margin: 30px 0 24px; }
.wizard-progress ol { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); flex: 1; gap: 8px; list-style: none; padding: 0; margin: 0; }
.wizard-progress li { border-top: 4px solid #3b304d; padding-top: 8px; font-size: 11px; color: #b7aac6; overflow-wrap: anywhere; }
.wizard-progress li.complete, .wizard-progress li[aria-current="step"] { border-color: #b650f4; }
.wizard-progress li[aria-current="step"] { color: #f6dbff; font-weight: 750; }
#step-count { color: #d3b5e8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wizard-panel { background: #14111d; border: 1px solid #383045; border-radius: 18px; padding: clamp(18px,4vw,32px); }
.wizard-panel h2:first-child { font-size: clamp(23px,3vw,30px); margin: 0; letter-spacing: -.025em; }
.wizard-description { color: #bdb1cc; margin: 7px 0 21px; }
.wizard-panel .styles { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.wizard-panel .theme { aspect-ratio: 4/5; text-align: left; }
.wizard-panel .art { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; background-image: none; }
.wizard-panel .theme .name { font-size: 13px; padding: 28px 10px 10px; }
.wizard-framing { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 26px; }
.frame-preview { width: min(100%,184px); aspect-ratio: 9/16; overflow: hidden; border-radius: 12px; margin: 0 auto; border: 1px solid #6f4c89; }
.frame-preview.landscape { width: 100%; aspect-ratio: 16/9; }
.frame-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-preview.landscape img { object-position: center 36%; }
.wizard-fields label { display: block; font-weight: 700; margin: 12px 0 7px; }
.wizard-fields select { width: 100%; }
.wizard-fields .advanced { margin-bottom: 16px; }
.wizard-fields .prompt textarea { min-height: 150px; }
.wizard-fields .actions { margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wizard-navigation { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.wizard-navigation button { min-height: 44px; border: 1px solid #4e3c64; border-radius: 10px; background: #241b31; color: #f7ecff; padding: 10px 22px; font-weight: 750; }
#wizard-next { margin-left: auto; background: #792cc0; border-color: #ae62e0; }
.express-wizard :focus-visible { outline: 2px solid #e9b9ff; outline-offset: 3px; }
@media (max-width: 600px) {
 .express-wizard { padding-top: 24px; }
 .wizard-panel .styles { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .wizard-panel .theme { aspect-ratio: 4/3; }
 .wizard-framing { grid-template-columns: 1fr; gap: 12px; }
 .frame-preview { width: 120px; }
 .frame-preview.landscape { width: min(100%,280px); }
 .wizard-progress { gap: 8px; }
 .wizard-progress li { font-size: 9px; }
}

/* Personal project library */
.creation-library { max-width: 1170px; padding-top: 42px; }
.creation-library [hidden] { display: none !important; }
.library-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.library-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 17px; border-radius: 10px; background: #8139c1; border: 1px solid #ac6bdd; color: #fff; font-weight: 750; white-space: nowrap; }
.library-toolbar { display: flex; gap: 15px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.library-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.library-filters button { min-height: 43px; border: 1px solid #4d3e63; border-radius: 9px; background: #1f192b; color: #e3d8ec; padding: 8px 13px; }
.library-filters button[aria-pressed="true"] { background: #3a2451; border-color: #af6fe0; color: #fff; }
.library-filters span { color: #dcbff1; margin-left: 3px; }
.library-notice { color: #d5bcec; margin: 12px 0; }
.library-notice:empty { display: none; }
.library-note { display: flex; align-items: center; gap: 14px; justify-content: space-between; background: #1c1728; border: 1px solid #3f3451; border-radius: 12px; padding: 13px 16px; margin: 17px 0; }
.library-note p { color: #c0b2cf; margin: 0; }
.library-note a { color: #e4afff; font-weight: 730; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(240px,100%),1fr)); gap: 16px; margin-top: 19px; }
.project-card { overflow: hidden; background: #181321; border: 1px solid #42344f; border-radius: 14px; min-width: 0; }
.project-card img { display: block; width: 100%; height: 146px; object-fit: cover; background: #2c2236; }
.project-info { padding: 15px; }
.project-info h2 { margin: 8px 0 4px; font-size: 18px; overflow-wrap: anywhere; }
.project-source { display: inline-block; font-size: 10px; font-weight: 750; padding: 4px 7px; border-radius: 6px; color: #e3c4fa; background: #30213f; }
.project-meta, .project-date { color: #bfb1cd; font-size: 12px; margin: 4px 0; }
.project-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.project-open { color: #e3afff; font-weight: 700; min-height: 36px; display: inline-flex; align-items: center; }
.project-delete { color: #c9a9c3; border: 0; background: transparent; padding: 8px 2px; }
.library-empty { text-align: center; padding: 38px 18px; border: 1px dashed #51415e; background: #181320; border-radius: 14px; }
.library-empty h2 { margin: 0 0 7px; font-size: 21px; }
.library-empty p { color: #bbadc9; }
.creation-library :focus-visible { outline: 2px solid #e9b9ff; outline-offset: 3px; }
@media (max-width: 620px) {
 .creation-library { padding-top: 24px; }
 .library-heading { display: block; }
 .library-heading .library-primary { margin-top: 13px; }
 .library-note { display: block; }
 .library-note a { display: inline-block; margin-top: 8px; }
 .library-toolbar input { width: 100%; }
}

.nav-close { display: none; }
@media (max-width: 800px) {
 .nav-close { display: grid; place-items: center; position: absolute; top: 19px; right: 10px; width: 38px; height: 38px; font-size: 22px; color: #fff; background: #2c203b; border: 1px solid #665179; border-radius: 10px; }
 .sidebar .brand { padding-right: 28px; font-size: clamp(17px,5.6vw,23px); }
}
.wizard-series-status { margin: 16px 0 0; padding: 10px 13px; border: 1px solid #65477b; border-radius: 10px; background: #291d37; color: #e9d6f6; }
#series-title { width: 100%; }
#series-title:read-only { color: #cdb6dc; }

.series-card { border-top: 2px solid #aa62d9; }
.series-card details { margin-top: 10px; color: #d8c8e7; }
.series-card summary { cursor: pointer; padding: 5px 0; }
.series-card ul { margin: 6px 0 0; padding-left: 20px; }
.series-card li { padding: 5px 0; overflow-wrap: anywhere; }
.series-card li a { color: #e3afff; }

#character-form input, #character-form textarea { display: block; width: 100%; }
#character-description { min-height: 96px; }
.character-description { color: #dfd2e7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.character-picker { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.character-picker > div { flex: 1 1 160px; }
.character-picker select { width: 100%; }
.character-picker button { min-height: 44px; padding: 8px 12px; background: #322244; border: 1px solid #6f5285; border-radius: 9px; color: #f1defc; }
.character-help { color: #e5bfec; }
.character-help:empty { display: none; }
.wizard-panel .mode:disabled { opacity: .52; cursor: default; }

.model-presentation { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:center; gap:16px; margin:14px 0; overflow:hidden; border:1px solid #503b62; border-radius:13px; background:#1d1629; }
.model-presentation img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:center 36%; }
.model-presentation figcaption { padding:14px 16px 14px 0; }
.model-presentation strong { display:block; margin:4px 0; font-size:18px; }
.model-presentation p,.model-presentation small { color:#d4c6e2; }
@media(max-width:560px) {
 .model-presentation { grid-template-columns:minmax(0,1fr); gap:0; }
 .model-presentation figcaption { padding:12px 14px; }
}
