/* All selectors are plugin-prefixed; no global changes to Novirec Studio. */
#novirec-smart-create-home,.nsc-workspace{--nsc-line:#30303a;--nsc-soft:#a2a4b6;--nsc-pink:#f13aba;--nsc-purple:#9d5af8;--nsc-bg:#111115;--nsc-panel:#1c1c23;color:#f8f5fc;font-family:inherit}
#novirec-smart-create-home{width:min(100%,1320px);margin:0 auto 30px;padding-bottom:4px}
#novirec-smart-create-home *,.nsc-workspace *{box-sizing:border-box}
.nsc-prompt-home{position:relative;isolation:isolate;border:1px solid rgba(231,200,255,.18);border-radius:27px;padding:20px 22px 17px;background:radial-gradient(circle at 80% -120%,rgba(231,52,171,.15),transparent 75%),linear-gradient(145deg,#181419,#101015 60%,#121217);box-shadow:0 18px 55px rgba(0,0,0,.26);display:grid;gap:13px;overflow:hidden}
.nsc-prompt-home:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,rgba(235,72,175,.19),transparent 30%,transparent 70%,rgba(166,95,249,.1));opacity:.6;z-index:-1}
.nsc-home-heading{display:flex;align-items:center;gap:11px;min-width:0}
.nsc-brand-mark{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;font-size:22px;background:linear-gradient(145deg,#e92ba7,#9442da);box-shadow:0 6px 18px rgba(244,47,170,.2);color:white}
.nsc-home-heading>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.nsc-home-heading strong{font-size:16px;font-weight:800;letter-spacing:-.025em;color:#fff}
.nsc-home-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.nsc-home-copy{display:flex;flex-direction:column;gap:7px;max-width:780px}
.nsc-home-copy h2{margin:0;font-size:33px;line-height:1.05;letter-spacing:-.045em;color:#fff}
.nsc-home-copy p{margin:0;color:#c3bfcc;font-size:13px;line-height:1.65}
.nsc-home-heading small{color:#aba7b8;font-size:11px}
.nsc-mini-badge{margin-left:auto;padding:5px 10px;border:1px solid #4b2d50;border-radius:30px;font-size:10px;font-weight:800;color:#f09ad4;background:#291728;white-space:nowrap}
.nsc-composer{border:1px solid #39353d;border-radius:20px;min-height:139px;padding:15px;background:linear-gradient(135deg,#111015,#161419);display:flex;flex-direction:column;gap:12px}
.nsc-composer textarea,.nsc-chat-footer textarea,.nsc-prompt-label textarea{display:block;resize:vertical;width:100%;color:#f5f3fa;background:transparent;outline:none;border:0;font:inherit;font-size:14px;line-height:1.6;min-height:57px;box-shadow:none}
.nsc-composer textarea::placeholder,.nsc-chat-footer textarea::placeholder{color:#6e6c7b}
.nsc-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.nsc-controls{display:flex;align-items:center;gap:9px;min-width:0}
.nsc-controls select,.nsc-settings select,.nsc-settings input{background:#24222b;color:#f5f2f8;border:1px solid #403846;border-radius:10px;min-height:34px;padding:5px 9px;font:inherit;font-size:12px;max-width:100%}
.nsc-button{border:1px solid #49414c;border-radius:12px;min-height:33px;padding:8px 12px;font:inherit;font-size:12px;color:#f4f0f6;background:linear-gradient(#34313d,#282630);cursor:pointer;font-weight:700;transition:transform .16s,border-color .16s,filter .16s}
.nsc-button:not(:disabled):hover{transform:translateY(-1px);filter:brightness(1.13);border-color:#a56eb6}
.nsc-button:disabled{opacity:.42;cursor:not-allowed}
.nsc-icon-button{width:36px;height:36px;border-radius:50%;padding:0;font-size:24px;line-height:1}
.nsc-submit{width:40px;height:40px;border:0;border-radius:50%;padding:0;font-size:23px;background:linear-gradient(135deg,#fc78cc,#e622b0);box-shadow:0 5px 19px rgba(237,43,176,.32)}
.nsc-seamless{color:#77727f;font-size:10px;white-space:nowrap}
.nsc-icon{display:inline-flex;align-items:center;justify-content:center;font-weight:800;line-height:1}
.nsc-seamless .nsc-icon{color:#edb75c}
.nsc-refs{display:flex;flex-wrap:wrap;gap:8px}
.nsc-ref{display:flex;align-items:center;gap:6px;max-width:195px;padding:4px 5px;border:1px solid #403642;border-radius:9px;background:#222028;font-size:11px}
.nsc-ref img{width:28px;height:28px;object-fit:cover;border-radius:6px}
.nsc-ref span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nsc-ref button{background:transparent;border:0;color:#cfc1d6;font-size:18px;cursor:pointer}
.nsc-templates-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}
.nsc-templates-head strong{font-size:12px;color:#fff}
.nsc-templates-head span{font-size:11px;color:#9f99ac}
.nsc-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.nsc-template-card{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:18px;border:1px solid rgba(255,255,255,.085);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));color:#f6f3fa;font:inherit;text-align:left;cursor:pointer;min-height:80px;transition:transform .16s,border-color .16s,box-shadow .16s,background .16s}
.nsc-template-card:hover{transform:translateY(-1px);border-color:#a96ac1;box-shadow:0 14px 28px rgba(0,0,0,.2)}
.nsc-template-card.is-active{border-color:#ec5cbc;background:linear-gradient(180deg,rgba(241,58,186,.15),rgba(255,255,255,.04))}
.nsc-template-thumbs{display:flex;align-items:center}
.nsc-template-thumbs img{width:48px;height:48px;object-fit:cover;border-radius:13px;border:1px solid rgba(255,255,255,.13);box-shadow:0 4px 14px rgba(0,0,0,.28)}
.nsc-template-thumbs img+img{margin-left:-10px}
.nsc-template-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.nsc-template-copy strong{font-size:12px;color:#fff;line-height:1.25}
.nsc-template-copy span{font-size:10px;color:#b5aeba;line-height:1.45}
.nsc-workspace{display:grid;grid-template-columns:minmax(345px,36%) minmax(0,1fr);height:min(84vh,960px);min-height:660px;overflow:hidden;border-radius:23px;border:1px solid #302935;background:#111115;box-shadow:0 16px 60px #08080a66}
.nsc-director-panel{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid #322c38;background:linear-gradient(165deg,#18161b,#101015 72%)}
.nsc-pane-head,.nsc-preview-head{display:flex;align-items:center;gap:10px;padding:17px 18px;min-height:70px;border-bottom:1px solid #2a2830}
.nsc-pane-head .nsc-brand-mark{width:35px;height:35px}
.nsc-pane-head div{display:flex;flex-direction:column;gap:3px;min-width:0}
.nsc-pane-head strong,.nsc-preview-head strong{font-size:14px;color:#fff;letter-spacing:-.015em}
.nsc-pane-head small,.nsc-preview-head small{color:#898393;font-size:10px}
.nsc-back{margin-left:auto;border:0;background:#292630;color:#b5abbc;border-radius:50%;width:28px;height:28px;cursor:pointer}
.nsc-scroll{flex:1;overflow:auto;padding:18px 16px 23px;display:flex;flex-direction:column;gap:18px}
.nsc-user-message{align-self:flex-end;max-width:90%;padding:12px 15px;border-radius:16px 16px 5px 16px;background:#2b2730;border:1px solid #39343d;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.nsc-director-card{display:flex;flex-direction:column;gap:10px}
.nsc-director-card p{font-size:12px;color:#d3ccdb;line-height:1.65;margin:0}
.nsc-advisor-head{display:flex;gap:10px;align-items:center}
.nsc-advisor-head strong{font-size:12px;color:#fff}
.nsc-advisor-head span{font-size:10px;color:#d39bbe;background:#392335;padding:4px 8px;border-radius:99px}
.nsc-steps{border:1px solid #45404d;border-radius:14px;padding:12px;background:linear-gradient(135deg,#26232c,#17161b);box-shadow:0 10px 35px #0003}
.nsc-steps p{display:flex;gap:9px;align-items:center;padding:6px 0;color:#aaa3b2;font-size:11px}
.nsc-steps p .nsc-icon{color:#f371cd;animation:nsc-pulse 1.7s infinite}
@keyframes nsc-pulse{0%,100%{opacity:.4}50%{opacity:1}}
.nsc-plan-card{display:flex;flex-direction:column;gap:11px;border:1px solid #35303b;border-radius:17px;padding:13px;background:#1b1a20}
.nsc-plan-title{display:flex;align-items:center;gap:8px;font-size:12px;color:#f1b7de}
.nsc-plan-title .nsc-icon{width:24px;height:24px;border-radius:8px;background:#4d2c4a;color:#f19aca}
.nsc-tags{display:flex;gap:6px;flex-wrap:wrap}
.nsc-tags span{font-size:10px;color:#bcb2c6;background:#2b2830;padding:4px 8px;border-radius:7px}
.nsc-prompt-label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:700;color:#a9a0b4}
.nsc-prompt-label textarea{background:#111015;min-height:136px;font-size:12px;padding:11px 12px;border:1px solid #3a3240;border-radius:11px;line-height:1.65}
.nsc-prompt-label textarea:focus,.nsc-chat-footer textarea:focus{border-color:#d54bb5}
.nsc-plan-actions{display:flex;gap:6px;flex-wrap:wrap}
.nsc-secondary{font-size:11px}
.nsc-ghost{background:transparent;border-color:#403844;color:#c6aec7;font-size:11px}
.nsc-settings{display:flex;flex-direction:column;gap:13px;padding:12px;border:1px solid #2a3550;border-radius:14px;background:#0f1524}
.nsc-settings>label,.nsc-param{display:flex;flex-direction:column;gap:5px;color:#afa5b6;font-size:11px}
.nsc-params{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.nsc-params .nsc-param{min-width:0}
.nsc-params .nsc-param input:not([type=checkbox]){width:100%;min-width:0}
.nsc-quote-box{border-top:1px solid #37313b;display:flex;flex-direction:column;gap:9px;padding-top:12px;margin-top:4px}
.nsc-quote-box>div{display:flex;gap:10px;justify-content:space-between;align-items:center}
.nsc-quote-box span{font-size:11px;color:#b4aebf}
.nsc-quote-box strong{font-size:12px;color:#fff;text-align:right}
.nsc-primary{border:0;color:#fff;background:linear-gradient(110deg,#ee62b7,#ed1da8);box-shadow:0 5px 16px rgba(244,39,170,.24)}
.nsc-full{width:100%}
.nsc-chat-footer{flex-shrink:0;border-top:1px solid #2b344b;background:#0f1420;padding:12px 14px 13px}
.nsc-chat-footer.is-settings{padding-bottom:16px}
.nsc-chat-footer textarea{border:1px solid #2f3952;border-radius:11px;min-height:61px;padding:9px 10px;background:#0c111d;font-size:12px}
.nsc-chat-actions{display:flex;justify-content:flex-end;padding-top:8px}
.nsc-chat-actions button{border:0;border-radius:9px;background:#e832b2;color:white;font-size:11px;font-weight:800;min-height:31px;padding:0 14px;cursor:pointer}
.nsc-chat-actions button:disabled{background:#39425a;cursor:not-allowed;opacity:.72}
.nsc-credit-foot{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:10px;font-size:9px;color:#a8a0ad}
.nsc-credit-foot strong{color:#edd2aa;font-size:10px;white-space:nowrap}
.nsc-preview-panel{display:flex;flex-direction:column;min-height:0;background:radial-gradient(circle at 50% 56%,#1b1b20,#101014 70%)}
.nsc-preview-head{justify-content:space-between}
.nsc-preview-empty{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;text-align:center;flex:1;min-height:200px;padding:30px;color:#a9a5b1}
.nsc-preview-icon{font-size:72px;color:#9b94a3;filter:drop-shadow(0 5px 10px #0009)}
.nsc-preview-empty h2{font-size:22px;margin:6px 0 0;color:#f5f3f8;letter-spacing:-.025em}
.nsc-preview-empty p{max-width:350px;color:#84818e;font-size:12px;line-height:1.65}
.nsc-preview-content{display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;padding:25px;min-height:0;flex:1}
.nsc-preview-content>img,.nsc-preview-content>video{display:block;max-width:100%;max-height:72vh;border-radius:14px;object-fit:contain;box-shadow:0 12px 40px #0006}
.nsc-status{font-size:11px;color:#dbb1d0;background:#382235;border-radius:99px;padding:5px 14px;text-transform:capitalize}
.nsc-preview-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.nsc-preview-actions a{border-radius:10px;padding:9px 13px;color:white;background:#e733b1;font-size:11px;text-decoration:none}
.nsc-error{color:#ff98aa!important;font-size:11px!important;line-height:1.5!important}
.nsc-gallery-shade{position:fixed;inset:0;background:#000b;z-index:999999;display:grid;place-items:center;padding:20px}
.nsc-gallery-modal{width:min(700px,100%);max-height:80vh;overflow:auto;border:1px solid #4e3853;border-radius:18px;background:#1b1921;padding:20px;color:white;box-shadow:0 20px 70px #000c}
.nsc-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.nsc-modal-head h3{margin:0;font-size:16px;color:white}
.nsc-modal-head button{border:0;background:#342a36;color:white;border-radius:50%;width:31px;height:31px;cursor:pointer}
.nsc-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.nsc-gallery-grid button{background:#27232b;color:#ddd;border:1px solid #40343f;border-radius:12px;text-align:left;padding:7px;cursor:pointer}
.nsc-gallery-grid img{height:110px;width:100%;border-radius:8px;object-fit:cover}
.nsc-gallery-grid span{display:block;margin-top:6px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1120px){.nsc-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){#novirec-smart-create-home{width:100%}.nsc-home-copy h2{font-size:29px}.nsc-template-grid{grid-template-columns:1fr 1fr}.nsc-workspace{grid-template-columns:1fr;height:auto;min-height:0;overflow:visible}.nsc-director-panel{border-right:0;border-bottom:1px solid #302b37;min-height:600px;max-height:820px}.nsc-preview-panel{min-height:360px}}
@media(max-width:600px){.nsc-prompt-home{border-radius:20px;padding:14px}.nsc-home-copy h2{font-size:24px}.nsc-home-side-note{width:100%}.nsc-composer{padding:12px}.nsc-seamless{display:none}.nsc-template-grid{grid-template-columns:1fr}.nsc-workspace{border-radius:13px}.nsc-director-panel{min-height:650px;max-height:750px}.nsc-params{grid-template-columns:1fr}.nsc-pane-head{padding:12px}.nsc-scroll{padding:12px}}
@media(prefers-reduced-motion:reduce){.nsc-button,.nsc-steps p .nsc-icon{animation:none;transition:none}}
/* The genuine Studio AuthExperience rendered inline for Smart Create guests. */
.nsc-auth-backdrop{position:fixed;inset:0;z-index:120000;background:rgba(5,5,10,.82);backdrop-filter:blur(13px);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.nsc-auth-dialog{position:relative;width:min(510px,100%);max-height:min(90vh,840px);overflow:auto;border:1px solid rgba(227,110,204,.3);border-radius:24px;background:linear-gradient(145deg,#1d1923,#101014);box-shadow:0 35px 100px rgba(0,0,0,.75),0 0 70px rgba(212,54,163,.09)}
.nsc-auth-close{position:absolute;right:16px;top:15px;z-index:5;width:33px;height:33px;background:#2b2530;color:#faf1ff;border:1px solid #544352;border-radius:50%;font-size:22px;cursor:pointer;display:grid;place-items:center}
.nsc-auth-dialog .nvs-auth{display:block;min-height:0;grid-template-columns:none;background:transparent}
.nsc-auth-dialog .nvs-auth__visual{display:none!important}
.nsc-auth-dialog .nvs-auth__panel{min-height:0;display:block;padding:35px 30px 26px;background:transparent}
.nsc-auth-dialog .nvs-auth__panel-inner{width:100%;max-width:none}
.nsc-auth-dialog .nvs-auth__heading{padding-right:28px;margin-bottom:20px}
.nsc-auth-dialog .nvs-auth__heading h2{font-size:22px;color:#fff}
.nsc-auth-dialog .nvs-auth__heading p{color:#b3a6b8}
.nsc-auth-dialog .nvs-auth__mobile-brand{display:none}
.nsc-auth-dialog .nvs-auth__legal{opacity:.72}
.nsc-auth-dialog .nvs-primary-button{background:linear-gradient(110deg,#ee58b8,#e61bab)!important;border-radius:12px}
@media(max-width:550px){.nsc-auth-backdrop{padding:8px;align-items:flex-start}.nsc-auth-dialog{max-height:96vh;margin-top:3vh;border-radius:18px}.nsc-auth-dialog .nvs-auth__panel{padding:33px 18px 20px}}


/* 0.1.2 Studio palette alignment — use Studio variables whenever present. */
#novirec-smart-create-home,.nsc-workspace{
  --nsc-line:var(--nvs-border-strong,#303747);
  --nsc-soft:var(--nvs-text-soft,#a5a8b6);
  --nsc-pink:var(--nvs-accent,#8a7dff);
  --nsc-purple:var(--nvs-accent-strong,#a99fff);
  --nsc-bg:var(--nvs-bg,#08090d);
  --nsc-panel:var(--nvs-panel-solid,#13151e);
  color:var(--nvs-text,#f7f7fb);
}
.nsc-prompt-home{
  border-color:rgba(138,125,255,.24);
  background:radial-gradient(circle at 86% -65%,rgba(138,125,255,.13),transparent 68%),linear-gradient(155deg,#171922,#10121a 66%,#131522);
  box-shadow:0 18px 55px rgba(0,0,0,.22);
}
.nsc-prompt-home:before{background:linear-gradient(115deg,rgba(138,125,255,.14),transparent 32%,transparent 70%,rgba(138,125,255,.07))}
.nsc-prompt-home .nsc-brand-mark,.nsc-workspace .nsc-brand-mark{background:linear-gradient(140deg,#7d6ef0,#a99fff);box-shadow:0 6px 18px rgba(115,105,242,.24)}
.nsc-prompt-home .nsc-mini-badge{background:rgba(138,125,255,.11);color:#c4b5fd;border-color:rgba(138,125,255,.3)}
.nsc-home-intro{justify-content:flex-start}
.nsc-home-copy{max-width:940px}
.nsc-home-copy h2{color:var(--nvs-text,#f7f7fb)}
.nsc-home-copy p,.nsc-templates-head span{color:var(--nvs-text-soft,#a5a8b6)}
.nsc-composer{border-color:rgba(255,255,255,.14);background:linear-gradient(155deg,#0d0f16,#141722)}
.nsc-composer:focus-within{border-color:rgba(138,125,255,.65);box-shadow:0 0 0 2px rgba(138,125,255,.08)}
.nsc-prompt-home .nsc-controls select,.nsc-settings select,.nsc-settings input{background:#1c1f2c;border-color:rgba(255,255,255,.11);color:#f7f7fb}
.nsc-prompt-home .nsc-button{background:#252839;border-color:rgba(255,255,255,.13)}
.nsc-prompt-home .nsc-button:not(:disabled):hover{border-color:#a99fff}
.nsc-prompt-home .nsc-submit{background:linear-gradient(145deg,#aa9bff,#7c6bf2);border:0;box-shadow:0 7px 22px rgba(138,125,255,.31);color:#fff}
.nsc-ref{background:#1d2130;border-color:rgba(138,125,255,.23)}
.nsc-ref button{color:#c4b5fd}
.nsc-templates-head{align-items:center}
.nsc-template-grid{gap:10px}
.nsc-template-card{background:linear-gradient(150deg,#1c1f2c,#141720);border-color:rgba(255,255,255,.095);min-height:84px}
.nsc-template-card:hover{border-color:rgba(169,159,255,.65);background:linear-gradient(145deg,#25253b,#181b27);box-shadow:0 12px 28px rgba(0,0,0,.24)}
.nsc-template-card.is-active{border-color:#a99fff;background:linear-gradient(145deg,rgba(138,125,255,.2),#171923)}
.nsc-template-thumbs img{border-color:rgba(169,159,255,.2)}
.nsc-template-copy span{color:#a5a8b6}
.nsc-workspace{border-color:rgba(138,125,255,.19);background:var(--nvs-bg,#08090d)}
.nsc-director-panel{border-right-color:rgba(255,255,255,.1);background:linear-gradient(165deg,#181b26,#101218 72%)}
.nsc-pane-head,.nsc-preview-head,.nsc-chat-footer{border-color:rgba(255,255,255,.08)}
.nsc-chat-footer,.nsc-plan-card{background:#181b26}
.nsc-director-card .nsc-advisor-head span,.nsc-tags span,.nsc-status{background:rgba(138,125,255,.17);color:#d5ceff}
.nsc-steps{border-color:rgba(138,125,255,.24);background:linear-gradient(135deg,#25263a,#181a25)}
.nsc-steps p .nsc-icon,.nsc-plan-title{color:#c4b5fd}
.nsc-plan-title .nsc-icon{background:rgba(138,125,255,.18);color:#c4b5fd}
.nsc-settings{background:#12141e;border-color:rgba(138,125,255,.19)}
.nsc-prompt-label textarea,.nsc-chat-footer textarea{background:#0e111a;border-color:rgba(255,255,255,.12)}
.nsc-prompt-label textarea:focus,.nsc-chat-footer textarea:focus{border-color:#8a7dff}
.nsc-button:not(:disabled):hover{border-color:#a99fff}
.nsc-primary,.nsc-chat-actions button{background:linear-gradient(120deg,#a99fff,#7467ed);box-shadow:0 5px 16px rgba(138,125,255,.18)}
.nsc-preview-panel{background:radial-gradient(circle at 50% 55%,#1b1f2d,#0e1018 72%)}
.nsc-preview-actions a{background:#796af0}
.nsc-auth-dialog{background:linear-gradient(145deg,#181b26,#101218);border-color:rgba(138,125,255,.32);box-shadow:0 35px 100px rgba(0,0,0,.75),0 0 70px rgba(138,125,255,.07)}
.nsc-auth-dialog .nvs-primary-button{background:linear-gradient(110deg,#a99fff,#7868ee)!important}
@media(max-width:960px){.nsc-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.nsc-template-grid{grid-template-columns:1fr}}

.nsc-prompt-home .nsc-ref{padding:5px 9px 5px 5px;max-width:220px;border-radius:12px}
.nsc-prompt-home .nsc-ref img{width:36px;height:36px;border-radius:9px}
.nsc-prompt-home .nsc-template-card{min-height:94px}
.nsc-prompt-home .nsc-template-thumbs img{width:51px;height:51px}
.nsc-prompt-home .nsc-template-copy .nsc-template-kind{font-size:9px;letter-spacing:.055em;font-weight:800;color:#a99fff}

.nsc-settings-shell{display:flex;flex-direction:column;gap:12px}
.nsc-settings-shell-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nsc-settings-shell-head strong{display:block;font-size:13px;color:#fff;margin-bottom:3px}
.nsc-settings-shell-head small{display:block;font-size:11px;color:#98a6c1;line-height:1.5;max-width:420px}
.nsc-settings-shell-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.nsc-settings-shell .nsc-settings{max-height:320px;overflow:auto}

.nsc-lock-note{display:flex;align-items:center;gap:8px;margin-top:8px;padding:9px 11px;border:1px solid rgba(138,125,255,.18);border-radius:12px;background:rgba(138,125,255,.08);color:#cdd3e4;font-size:11px}
.nsc-lock-note .nsc-icon{color:#c4b5fd}
.nsc-plan-card textarea:disabled,.nsc-plan-card input:disabled,.nsc-plan-card select:disabled,.nsc-chat-footer textarea:disabled,.nsc-chat-footer input:disabled,.nsc-chat-footer select:disabled{opacity:.72;cursor:not-allowed}
.nsc-preview-loading{gap:14px}
.nsc-loader-orbit{position:relative;width:122px;height:122px;display:grid;place-items:center;filter:drop-shadow(0 14px 30px rgba(138,125,255,.16))}
.nsc-loader-ring{position:absolute;inset:0;border-radius:50%;border:2px solid transparent}
.nsc-loader-ring-a{border-top-color:#a99fff;border-right-color:#a99fff;animation:nscSpin 1.7s linear infinite}
.nsc-loader-ring-b{inset:14px;border-bottom-color:rgba(169,159,255,.8);border-left-color:rgba(169,159,255,.8);animation:nscSpinReverse 1.25s linear infinite}
.nsc-loader-core{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 30% 30%,#afa5ff,#7a6dee 70%);color:#fff;font-size:22px;font-weight:800;box-shadow:0 10px 30px rgba(122,109,238,.32)}
.nsc-loader-dots{display:flex;gap:7px;margin-top:2px}
.nsc-loader-dots span{width:8px;height:8px;border-radius:50%;background:#8a7dff;opacity:.35;animation:nscPulse 1.2s ease-in-out infinite}
.nsc-loader-dots span:nth-child(2){animation-delay:.15s}
.nsc-loader-dots span:nth-child(3){animation-delay:.3s}
@keyframes nscSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes nscSpinReverse{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}
@keyframes nscPulse{0%,80%,100%{transform:scale(.72);opacity:.28}40%{transform:scale(1);opacity:1}}

/* 0.1.5 — Preview height discipline: portrait media scales down, actions stay visible. */
.nsc-preview-panel{min-height:0;min-width:0;overflow:hidden}
.nsc-preview-content{flex:1 1 auto;min-height:0;min-width:0;overflow:hidden;
  justify-content:flex-start;gap:12px;padding:18px 22px 16px}
.nsc-preview-content>.nsc-status{flex:0 0 auto;align-self:center}
.nsc-preview-media{flex:1 1 0;min-height:0;min-width:0;width:100%;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.nsc-preview-media>img,.nsc-preview-media>video{display:block;max-width:100%;max-height:100%;
  width:auto;height:auto;object-fit:contain;border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.3)}
.nsc-preview-media>.nsc-preview-empty{min-height:0;height:100%;width:100%;padding:12px}
.nsc-preview-content>.nsc-error{flex:0 0 auto;max-height:70px;overflow:auto}
.nsc-preview-actions{flex:0 0 auto;width:100%;min-height:46px;align-items:center;
  justify-content:center;gap:10px;padding:5px 0 2px;z-index:1}
.nsc-preview-actions>.nsc-button,.nsc-preview-actions>a{flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;min-height:36px}
@media(max-width:960px){
  .nsc-preview-panel{overflow:visible}
  .nsc-preview-content{min-height:440px;overflow:visible;padding:16px}
  .nsc-preview-media{flex:1 1 auto;height:min(56vh,540px);min-height:210px}
  .nsc-preview-media>img,.nsc-preview-media>video{max-height:100%}
}
@media(max-width:600px){
  .nsc-preview-content{min-height:360px;padding:12px;gap:10px}
  .nsc-preview-media{height:min(48vh,420px);min-height:160px}
  .nsc-preview-actions{flex-wrap:wrap}
}

/* Smart Create 0.1.6: slightly taller prompt field on phones, desktop unchanged. */
@media(max-width:600px){.nsc-prompt-home .nsc-composer textarea{min-height:98px}}

.nsc-credit-paused{display:flex;flex-direction:column;gap:8px;border:1px solid rgba(169,159,255,.42);border-radius:15px;padding:14px;background:linear-gradient(145deg,rgba(138,125,255,.15),rgba(17,21,33,.75));color:#e8e3ff}
.nsc-credit-paused strong{font-size:12px;color:#f7f5ff}
.nsc-credit-paused>span{font-size:11px;color:#c1bcd4}
.nsc-credit-paused>div{display:flex;gap:8px;flex-wrap:wrap}
