/* Shared visual language with LIORA Director & Studio. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');
:root{--ink:#292334;--purple:#7251a1;--mint:#d8eee3;--line:#e6e0ea;--muted:#746a7c;--cream:#fcfbfd}
body{background:#f8f6f9;font:15px 'DM Sans',Arial,sans-serif;color:var(--ink)}
#protectedApp{max-width:1160px;margin:auto;padding:0 26px 70px}
#protectedApp .app-topbar{height:86px;margin:0 0 42px;border-bottom:1px solid var(--line);gap:12px;background:transparent}
.story-brand{margin-right:auto;font:800 29px Manrope,Arial,sans-serif;letter-spacing:4px;line-height:1.1}.story-brand small{display:block;font:11px Arial,sans-serif;letter-spacing:2px;margin-top:6px;color:#8a8090}
#protectedApp .hero{padding:0;background:transparent;box-shadow:none;border-radius:0;margin:0 0 22px}
#protectedApp .hero h1{font:600 clamp(30px,4vw,46px)/1.15 Manrope,Arial,sans-serif;letter-spacing:-1.5px;max-width:780px;margin:16px 0}
#protectedApp .hero p{max-width:670px;color:var(--muted);line-height:1.65;font-size:15px}
#protectedApp .eyebrow{font-size:11px;letter-spacing:2px;color:var(--purple)}
#protectedApp .panel{border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:0 8px 35px #37214504;background:#fff}
#protectedApp #storyAvatarPicker{background:transparent;border:0;box-shadow:none;padding:0;margin:22px 0}
.director-story-shell{display:grid;grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:start;margin-top:28px}
#storyStepNavigation{background:transparent;padding:12px 0;margin:0;border-radius:0;position:sticky;top:22px}
#storyStepNavigation .story-step-cards{display:block}
#storyStepNavigation .story-step-card{display:flex;align-items:center;gap:12px;border:0;background:transparent;width:100%;padding:14px 12px;color:#82778c;border-radius:9px;text-align:left;margin:0 0 5px;box-shadow:none;font-size:14px}
#storyStepNavigation .story-step-card[aria-current="step"]{background:#ebe4f2;color:#5e3e86}
#storyStepNavigation .story-step-card strong{font-size:13px;line-height:1.35;font-weight:500}
#storyStepNavigation .story-step-card[aria-current="step"] strong{font-weight:700}
#storyStepNavigation .step-number{margin:0;border:1px solid #d2c6df;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-size:12px;color:inherit;flex-shrink:0}
#storyStepNavigation .step-copy{margin:0;display:block;color:inherit}
#storyStepNavigation .step-state{font-size:10px;font-weight:400;line-height:1.4;margin-top:4px;display:block;color:#96899f}
#storyStepNavigation .is-complete .step-state{color:#698575}
#storyWorkspace.layout{display:block;min-width:0}
.story-topline{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#96899f;letter-spacing:.3px}
#storyProgress{height:4px;margin:15px 0 6px;display:block}
#storyProgressLabel{font-size:11px;color:#96899f;margin:0 0 24px}
#protectedApp .section h2,#protectedApp #avatarManager h2,#protectedApp .story-news h2{font:700 24px Manrope,Arial,sans-serif;letter-spacing:-.5px;margin:9px 0}
#protectedApp .section{margin-top:25px;padding-top:20px}
#protectedApp .story-step-panel>.section:first-child{margin-top:0;padding-top:0}
#protectedApp label.field{font-size:13px;font-weight:700;margin:20px 0 9px}
#protectedApp input[type=text],#protectedApp select,#protectedApp textarea{border:1px solid #ded7e5;background:#fcfbfd;border-radius:8px;padding:12px;color:var(--ink);font:inherit}
#protectedApp input:focus-visible,#protectedApp textarea:focus-visible,#protectedApp select:focus-visible{outline:0;border-color:var(--purple);box-shadow:0 0 0 3px #7251a112}
#protectedApp .choice span{background:#fcfbfd;border-radius:8px;border-color:#ded7e5;font-size:13px}
#protectedApp .choice input:checked+span{background:#edf6f0;border-color:#9cc5ac;box-shadow:none}
#protectedApp .required-story-label,#protectedApp .story-settings>summary.required-story-label{background:transparent;color:var(--ink);padding:0;border-radius:0}
#protectedApp .required-story-label::after{color:#96899f;font-size:10px;font-weight:400}
#protectedApp .story-settings>summary{font:600 15px Manrope,Arial,sans-serif;color:var(--ink);padding:0}
#protectedApp .help{font-size:13px;line-height:1.65;color:var(--muted)}
#protectedApp .small{font-size:11px;line-height:1.6}
#protectedApp .mode-essential.is-required{background:transparent;border:0;border-radius:0;padding:0;margin:16px 0}
#protectedApp .notice{background:#f0f6f2;border:0;border-left:3px solid #9cc5ac;border-radius:0;padding:14px 18px;font-size:13px;line-height:1.6}
#protectedApp .btn{border:1px solid #dcd3e4;background:#fff;border-radius:8px;padding:12px 18px;color:var(--ink);font-size:13px;font-weight:500}
#protectedApp .btn.primary,#protectedApp .new-content-start .btn{background:var(--purple);color:#fff;border-color:var(--purple)}
#protectedApp .btn.secondary{background:#edf6f0;border-color:#dcebe1}
#protectedApp .new-content-start{border:1px solid var(--line);background:#faf8fc;border-radius:10px;padding:14px 16px;margin:0 0 22px}
#protectedApp .new-content-start strong{font-size:13px}#protectedApp .new-content-start p{font-size:11px}
#protectedApp .story-step-controls{border-top:1px solid var(--line);padding-top:24px;margin-top:30px}
#protectedApp .story-step-controls .secondary{background:var(--purple);border-color:var(--purple);color:#fff}
#protectedApp .output{position:static;min-width:0;padding:0;border:0;box-shadow:none;border-radius:0}
#protectedApp .output h2{font:700 24px Manrope,Arial,sans-serif;margin-top:0}
#protectedApp .output #result{background:#faf8fc;color:var(--ink);border:1px solid var(--line);border-radius:8px;font:12px/1.7 monospace}
#protectedApp .actions{border-top:1px solid var(--line);padding-top:24px}
#protectedApp .login-offer{margin-left:263px;font-size:13px;line-height:1.65}
#protectedApp .login-offer h2{font:700 22px Manrope,Arial,sans-serif}
#protectedApp .login-guide{background:#f0f6f2;border-radius:9px}
#protectedApp .story-news{margin-left:263px}
#protectedApp .story-news>summary{font:600 14px Manrope,Arial,sans-serif;color:var(--purple)}
#protectedApp .story-news h3{font:700 19px Manrope,Arial,sans-serif;margin-bottom:8px}
#protectedApp .story-news-body{font-size:13px}
#protectedApp .footer{background:transparent;border-radius:0;font-size:12px;padding:26px 0;margin-left:263px;color:#968b9e}
#protectedApp .footer h2{font:600 14px Manrope,Arial,sans-serif}
#protectedApp .news-jump,#protectedApp .account-menu>summary{border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:500;background:#fff;padding:9px 13px}
#protectedApp #clearAvatarSelection{padding:7px 10px;font-size:11px}
@media(max-width:760px){
 #protectedApp{padding:0 17px 95px}#protectedApp .app-topbar{height:75px;margin-bottom:30px}.story-brand{font-size:25px}.story-brand small{font-size:10px}
 #protectedApp .hero h1{font-size:30px;letter-spacing:-1px}#protectedApp .hero p{font-size:13px}
 .director-story-shell{grid-template-columns:1fr;gap:15px;margin-top:24px}
 #storyStepNavigation{position:static;min-width:0;padding:0}
 #storyStepNavigation .story-step-cards{display:flex;gap:5px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
 #storyStepNavigation .story-step-card{min-width:156px;width:auto;padding:10px;flex-shrink:0;align-items:flex-start;margin:0}
 #protectedApp .panel{padding:22px}#protectedApp .login-offer,#protectedApp .story-news,#protectedApp .footer{margin-left:0}
 #protectedApp .new-content-start .btn{width:auto}#protectedApp .two{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#protectedApp details.extra-fields{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}
#protectedApp details.extra-fields>summary{cursor:pointer;color:var(--purple);font-size:12px;font-weight:500;line-height:1.5}
#protectedApp details.extra-fields[open]>summary{margin-bottom:14px}
#protectedApp details.extra-fields .extra-fields{border:0;padding-top:0;margin-top:10px}
#protectedApp .extra-fields select.preset{margin-top:10px}
#protectedApp #avatarDetails textarea{margin-top:12px}

/* Keep the output choice and generation action together; the full prompt is optional. */
#protectedApp #promptCreateControls legend{font-size:13px;font-weight:600;margin:0 0 10px}
#protectedApp #promptCreateControls .mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#protectedApp #promptCreateControls .mode label{font-size:12px;margin:0;padding:10px;border-radius:8px;line-height:1.4}
#protectedApp #promptCreateControls .actions{border:0;padding:0;margin:14px 0 0}
#protectedApp .prompt-result-tools{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
#protectedApp #promptPreview{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
#protectedApp #promptPreview>summary,#protectedApp .prompt-next-help>summary{cursor:pointer;color:var(--purple);font-size:12px;font-weight:500}
#protectedApp #promptPreview #result{min-height:0;max-height:190px;margin:12px 0 0;padding:12px;font-size:11px;overflow:auto}
#protectedApp .prompt-next-help{margin-top:14px}
@media(max-width:600px){#protectedApp #promptCreateControls .mode{grid-template-columns:1fr}#protectedApp #promptCreateControls .mode label{padding:8px 10px}}

/* Highlight only the action that is ready to use next. */
#protectedApp .btn.is-next-action:not(:disabled){border-color:#7251a1;box-shadow:0 0 0 3px #d8eee3,0 0 18px #7251a14d;animation:prompt-action-glow 2s ease-in-out infinite}
@keyframes prompt-action-glow{0%,100%{box-shadow:0 0 0 2px #d8eee3,0 0 10px #7251a133}50%{box-shadow:0 0 0 4px #d8eee3,0 0 24px #7251a166}}
@media(prefers-reduced-motion:reduce){#protectedApp .btn.is-next-action:not(:disabled){animation:none;box-shadow:0 0 0 3px #d8eee3,0 0 14px #7251a14d}}
