/* Neural Studio 2.0 */
#neural-v2 [hidden],#neural-classic-workspace[hidden],#nv2-classic-note[hidden]{display:none!important}
.neural-v2{display:grid;gap:18px;margin:0 0 22px}
.nv2-banner{background:linear-gradient(115deg,#192b4a,#131b33 60%,#251d41);border:1px solid #364a70;border-radius:16px;padding:25px 28px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.nv2-overline{color:#8abaff;font-size:10px;letter-spacing:2px;font-weight:800}
.nv2-banner h2{font-size:24px;margin:8px 0;color:#f0f5ff}
.nv2-banner p{color:#9fb1cd;line-height:1.6;font-size:12px;margin:0}
.nv2-version{font:800 58px 'Space Grotesk',system-ui,sans-serif;letter-spacing:-4px;color:#8b9fff}
.nv2-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:6px;background:#0e182a;border:1px solid #2c3c59;border-radius:13px}
.nv2-tabs button{border:1px solid transparent;background:transparent;color:#a5b6d0;border-radius:9px;padding:11px 14px;font-size:12px;font-weight:700}
.nv2-tabs button.active{background:#293e64;border-color:#4b6d9c;color:#f3f7ff}
.nv2-tabs button:hover{background:#213656;color:#fff}
.nv2-pane{display:grid;gap:18px}
.nv2-specialties{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.nv2-specialties button{background:#121f34;border:1px solid #34425f;border-radius:12px;padding:16px;text-align:left;color:#cbd9ee}
.nv2-specialties button.active{border-color:#89aaff;background:linear-gradient(130deg,#263b62,#17243c)}
.nv2-specialties strong{display:block;letter-spacing:1.3px;font-size:14px;color:#eaf1ff}
.nv2-specialties small{display:block;margin-top:7px;font-size:10px;color:#9caec8}
.nv2-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:start}
.nv2-card{min-width:0;background:#111b2d;border:1px solid #30405b;border-radius:14px;padding:20px;display:grid;gap:14px}
.nv2-card h3{font-size:16px;color:#f0f5ff;margin:0}
.nv2-card label,.nv2-auth-dialog label{display:grid;gap:8px;font-size:11px;color:#b6c7e1;font-weight:650}
.nv2-card input:not([type=checkbox]):not([type=range]):not([type=file]),.nv2-card select,.nv2-card textarea,.nv2-auth-dialog input{background:#0b1525;border:1px solid #374b69;border-radius:9px;padding:11px;color:#e9f2ff;width:100%;min-width:0;font-size:12px;outline:none}
.nv2-card input:focus,.nv2-card textarea:focus,.nv2-card select:focus,.nv2-auth-dialog input:focus{border-color:#88aaff}
.nv2-card input[type=file]{font-size:11px;max-width:100%;color:#93aac9}
.nv2-card input[type=range]{width:100%;accent-color:#91adff}
.nv2-hint{color:#8ea3c1;font-size:11px;line-height:1.65;margin:0}
.nv2-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nv2-actions{display:flex;flex-wrap:wrap;gap:8px}
.nv2-actions button{flex:1;font-size:11px;min-width:115px;padding:11px 12px}
.nv2-progress{height:8px;border:1px solid #324560;border-radius:20px;background:#0a1423;overflow:hidden}
.nv2-progress>div{height:100%;width:0;background:linear-gradient(90deg,#638df5,#7ce7cf);transition:width .15s}
.nv2-status{font-size:11px;color:#b1c8e5;line-height:1.6;margin:0;overflow-wrap:anywhere}
.nv2-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.nv2-metrics>div{background:#0c1728;border:1px solid #2a3c56;border-radius:9px;padding:11px;min-width:0}
.nv2-metrics small{display:block;font-size:9px;color:#8aa2c2}
.nv2-metrics strong{display:block;font-size:18px;color:#dceaff;margin-top:8px;overflow-wrap:anywhere}
.nv2-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.nv2-tag{border:1px solid #3e5b84;color:#8fb7ef;background:#1a304e;padding:7px 9px;border-radius:8px;font-size:10px;font-weight:700}
.nv2-chat-log{background:#0a1424;border:1px solid #2b3d58;border-radius:10px;min-height:310px;max-height:450px;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.nv2-message{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:11px;padding:12px 14px;font-size:12px;line-height:1.7;max-width:93%;background:#1b2a41;color:#d9e7f9;align-self:flex-start}
.nv2-message.user{background:#2a4064;align-self:flex-end}
.nv2-message.system{font-size:11px;color:#9aacc7;background:#131e30}
.nv2-message small{display:block;font-size:9px;letter-spacing:.5px;color:#94b8e4;margin-bottom:5px}
.nv2-chat-options{display:grid;grid-template-columns:1fr 130px;gap:12px}
.nv2-chat-compose{display:flex;align-items:stretch;gap:8px}
.nv2-chat-compose textarea{flex:1;resize:vertical}
.nv2-chat-compose button{min-width:120px}
.nv2-divider{border-top:1px solid #31415a;margin:6px 0}
.nv2-check{display:flex!important;align-items:center;gap:10px}
.nv2-check input{accent-color:#88aaff}
.nv2-corpus-preview{min-height:200px;max-height:490px;overflow-y:auto;display:grid;gap:9px;align-content:start}
.nv2-doc{border:1px solid #2e415f;border-radius:10px;background:#0d1728;padding:12px;display:grid;gap:8px}
.nv2-doc strong{font-size:11px;color:#d6e7ff}.nv2-doc small{font-size:10px;color:#819fc5}
.nv2-doc p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:11px;color:#aabbd3;margin:0;max-height:90px;overflow:hidden}
.nv2-doc button{justify-self:start;font-size:10px;padding:7px 10px}
.nv2-image-dataset{max-height:180px;overflow:auto;display:flex;flex-wrap:wrap;gap:7px}
.nv2-image-sample{background:#15243a;border:1px solid #304b70;padding:8px;border-radius:8px;color:#b9cee9;font-size:10px}
.nv2-image-output{display:grid;place-items:center;padding:20px;background:#0a1424;border:1px solid #2b3e59;border-radius:11px}
#nv2-image-canvas{width:min(100%,300px);aspect-ratio:1;image-rendering:pixelated;border-radius:5px}
.nv2-account{font-size:11px;padding:8px 11px}
.nv2-auth-dialog{background:#111d30;border:1px solid #49658c;border-radius:16px;color:#edf4ff;width:min(94vw,520px);padding:25px;box-shadow:0 15px 65px #000b}
.nv2-auth-dialog::backdrop{background:#020711bd}
.nv2-auth-dialog h2{font-size:22px;margin:0 0 12px}
.nv2-auth-dialog form#nv2-auth-form{display:grid;gap:14px;margin:16px 0}
.nv2-auth-dialog .nv2-actions{margin-top:18px}
.nv2-auth-close{float:right;background:#1e3049;border:1px solid #395271;color:#dce8fa;border-radius:8px;padding:8px 12px;font-size:20px}
@media(max-width:1100px){.nv2-columns{grid-template-columns:1fr}.nv2-specialties{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.nv2-banner{padding:18px}.nv2-version{font-size:40px}.nv2-banner h2{font-size:20px}.nv2-card{padding:14px}.nv2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.nv2-chat-compose{flex-direction:column}.nv2-chat-options{grid-template-columns:1fr}.nv2-actions button{min-width:95px}}

/* DiLab Pro — planned video feature, visibly locked */
.nv2-tabs button[data-nv2-tab="video"]{border:1px solid #67548d;color:#d9c4ff;background:linear-gradient(125deg,#271e41,#1b2038)}
.nv2-tabs button[data-nv2-tab="video"].active{border-color:#b8a1ef;background:#35254f;color:#fff}
.nv2-pro-card{display:grid;justify-items:center;text-align:center;gap:17px;padding:52px 24px;border-radius:16px;border:1px solid #584779;background:radial-gradient(ellipse at 50% 0%,#33244e 0%,#131c2f 70%);max-width:850px;margin:0 auto;width:100%}
.nv2-pro-symbol{font-size:48px;color:#cfb7ff}
.nv2-pro-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:#c7b3f9}
.nv2-pro-card h3{font-size:29px;color:#f5efff;margin:0}
.nv2-pro-card>p:not(.nv2-hint){font-size:14px;color:#bcb3d3;line-height:1.7;max-width:490px}
.nv2-pro-lock{border-radius:12px;background:#2d2444;border:1px solid #705b9c;color:#f3e8ff;padding:14px 22px;font-weight:800;font-size:14px}
.nv2-pro-card .nv2-hint{max-width:470px}

/* DiLab Pro / neural video and owner controls */
.nv2-pro-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px;background:linear-gradient(120deg,#30234c,#19213c);border:1px solid #725a99;border-radius:16px}
.nv2-pro-header h2{font-size:25px;color:#f5eaff;margin:7px 0}
.nv2-pro-header p{font-size:12px;color:#c1b4d9;line-height:1.6}
.nv2-pro-unlocked{background:#48336d;border:1px solid #957ac2;border-radius:10px;padding:11px 15px;color:#f2e9ff;font-size:12px;font-weight:800;white-space:nowrap}
.nv2-video-canvas-wrap{background:#080e1b;border:1px solid #334361;border-radius:12px;display:grid;place-items:center;padding:12px;min-width:0}
#nv2-video-canvas{display:block;width:min(100%,440px);aspect-ratio:1;border-radius:9px}
.nv2-pro-account-row{display:grid;gap:10px;padding-top:18px;border-top:1px solid #3a4964}
.nv2-pro-account-row button{padding:12px}
.nv2-pro-account-row label{display:grid;gap:8px;font-size:11px;color:#aabbd3}
.nv2-admin-dialog{width:min(94vw,760px);max-height:85vh;overflow-y:auto}
.nv2-admin-dialog h3{font-size:14px;margin:15px 0 8px}
.nv2-admin-user{display:grid;gap:9px;padding:13px;border:1px solid #364864;border-radius:10px;margin:9px 0;background:#0d192b}
.nv2-admin-user strong{color:#e5edff;font-size:13px}
.nv2-admin-user small{color:#9fb0c9;font-size:11px}
.nv2-admin-user select{background:#0b1525;border:1px solid #405574;color:#e5edff;border-radius:8px;padding:9px;flex:1;min-width:120px}
.nv2-admin-user .nv2-actions button{min-width:110px}
.nv2-admin-audit{max-height:180px;overflow:auto;background:#0c1525;border:1px solid #344560;border-radius:9px;padding:10px}
.nv2-admin-audit p{font-size:10px;color:#9fb3d2;margin:4px 0}
@media(max-width:600px){.nv2-pro-header{flex-direction:column;align-items:flex-start}.nv2-pro-header h2{font-size:21px}}

.nv2-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.nv2-plan-card{display:grid;gap:7px;background:#0d192a;border:1px solid #344761;border-radius:10px;padding:12px}
.nv2-plan-card strong{font-size:13px;color:#e4edff}
.nv2-plan-card p{font-size:10px;color:#9eafc9;line-height:1.55;margin:0}
.nv2-plan-card small{font-size:10px;color:#d2b7ff;line-height:1.5}
.nv2-plan-premium{background:#261d3b;border-color:#8060ac}
.nv2-pro-nav{border:1px solid #5e477e!important;background:#251d39!important;color:#decaff!important;margin-top:12px}
@media(max-width:500px){.nv2-plan-grid{grid-template-columns:1fr}}

/* Neural Motion 2.0 */
.nv2-video-version{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:14px 0 17px;padding:14px 17px;border:1px solid #65528e;border-radius:12px;background:linear-gradient(110deg,#1f1938,#13223b)}
.nv2-video-version label{display:grid;gap:7px;color:#bcb2da;font-size:11px;min-width:min(100%,290px)}
.nv2-video-version select{background:#0c1930;color:#f0e8ff;border:1px solid #65528e;padding:10px;border-radius:9px;max-width:100%}
.nv2-video-examples{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 15px}
.nv2-video-examples button{background:#1c2c46;border:1px solid #3b5274;color:#b9d4ff;border-radius:9px;padding:7px 11px;font-size:11px;cursor:pointer}
.nv2-video-examples button:hover{background:#293e60;border-color:#6484b3}
#nv2-video-field-metric{min-width:120px}
#nv2-video-field-control[hidden],#nv2-video-field-metric[hidden]{display:none!important}
#nv2-video-canvas{width:min(100%,560px);height:auto;aspect-ratio:16/9;object-fit:contain}
@media(max-width:650px){.nv2-video-version{flex-direction:column;align-items:start}.nv2-video-version select{width:100%}}

/* Text Model 2.0 · Transformer */
.text2-switch{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 20px}
.text2-switch button{background:#16253d;border:1px solid #344a69;border-radius:11px;padding:11px 16px;color:#b6c7e7;cursor:pointer;font-size:13px;font-weight:700}
.text2-switch button.active{background:linear-gradient(110deg,#779cf9,#b39af8);color:#09152d;border-color:#9ab5ff}
.text2-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-radius:15px;background:linear-gradient(115deg,#182c52,#252047 75%,#142942);border:1px solid #425c86;margin-bottom:18px}
.text2-hero h3{font-size:23px;color:#f0f5ff;margin:8px 0}
.text2-hero p{color:#b5c6e4;font-size:13px;line-height:1.7;max-width:690px}
.text2-hero-chip{color:#a9d2ff;border:1px solid #4d729a;border-radius:10px;padding:9px 12px;font-size:11px;white-space:nowrap}
.text2-studio .nv2-card{min-width:0}
.text2-studio .nv2-card label{font-size:12px}
.text2-studio .nv2-card input[type=file]{display:block;max-width:100%;font-size:11px;margin-top:8px}
.text2-studio .nv2-card .nv2-check{display:flex;gap:8px;align-items:center;margin:11px 0;color:#bbcae7}
.text2-studio .nv2-card .nv2-check input{flex:none}
.text2-studio .nv2-progress{margin-top:13px}
#text2-progress{height:100%;width:0;background:linear-gradient(90deg,#799cfa,#75dcca);transition:width .25s}
.text2-chat{height:275px;min-height:220px;overflow:auto;margin:15px 0}
.text2-bench-summary{font-weight:700;color:#b2dbff;border:1px solid #365479;border-radius:9px;padding:12px;margin:12px 0}
.text2-bench-item{border-bottom:1px solid #344560;padding:13px 0;overflow-wrap:anywhere}
.text2-bench-item strong{display:block;color:#e3ecff;margin-bottom:7px}
.text2-bench-item p{font-size:12px;color:#a9bbd8;line-height:1.5;margin:5px 0}
.text2-bench-item small{color:#84c0f3}
@media(max-width:650px){.text2-hero{flex-direction:column;align-items:start}.text2-switch button{width:100%}}

/* Text Model 2.0 configurable architecture and PRO threshold */
.text2-config-preview{border:1px solid #385375;border-radius:13px;padding:14px 16px;margin:16px 0;background:linear-gradient(125deg,rgba(43,63,103,.32),rgba(24,33,59,.7));}
.text2-config-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.text2-config-top small{display:block;color:#9fb6d7;font-size:10px;letter-spacing:1px;margin-bottom:4px}
.text2-config-top strong{font-size:22px;font-weight:800;color:#e5efff;font-variant-numeric:tabular-nums}
.text2-config-tier{font-size:11px;font-weight:800;border:1px solid #56728e;background:#233953;border-radius:999px;color:#c7d6ed;padding:7px 12px;white-space:nowrap}
.text2-config-tier.pro{background:#453158;color:#efd1ff;border-color:#a76cdd}
.text2-config-preview p{font-size:12px;line-height:1.65;color:#c3d1e7;margin:9px 0 0}
.text2-config-preview .text2-config-note{font-size:11px;color:#91a4c1}
.text2-config-preview .text2-config-alert{color:#f5c89c}
@media(max-width:520px){.text2-config-top{align-items:flex-start;flex-direction:column}.text2-config-top strong{font-size:19px}}

.text2-target-label{display:block;margin:10px 0 18px;padding:16px;border:1px solid #4968a3;border-radius:12px;background:rgba(39,66,115,.28)}
.text2-target-label>span{display:block;color:#dce8ff;font-weight:800;font-size:14px;margin-bottom:9px}
.text2-target-label input{font-size:23px!important;font-weight:800!important;font-variant-numeric:tabular-nums;letter-spacing:.4px;min-height:50px}
.text2-target-label small{display:block;margin-top:9px;color:#a7bbd9;line-height:1.5}

/* DiChat-base model library and beginner-friendly training */
.text2-base-card{background:linear-gradient(115deg,#182743 0%,#152038 65%,#271c43 100%);border:1px solid #4d6389;border-radius:16px;padding:22px;margin:16px 0 22px;box-shadow:0 12px 35px rgba(0,0,0,.13)}
.text2-base-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.text2-base-head h3{font-size:24px;margin:7px 0 8px;color:#eef3ff}
.text2-base-head p,.text2-base-finetune p{color:#adc0df;font-size:13px;line-height:1.7;margin:5px 0}
.text2-base-pill{background:#42305d;color:#e9caff;font-size:11px;padding:5px 9px;border:1px solid #8061a4;border-radius:999px;vertical-align:middle}
.text2-base-stats{display:flex;flex-direction:column;min-width:130px;align-items:flex-end;color:#e9efff}
.text2-base-stats strong{font-size:25px;letter-spacing:.2px}
.text2-base-stats small{color:#92add0;font-size:11px}
.text2-base-buttons{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:16px 0}
.text2-base-buttons button{min-height:42px}
.text2-base-link{display:inline-block;padding:11px 14px;color:#bdd7ff;text-decoration:underline;font-size:12px}
.text2-base-finetune{border-top:1px solid #3b4c69;padding-top:17px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.text2-base-finetune strong{font-size:15px;color:#e5edff}
.text2-base-finetune button{min-width:180px;min-height:42px}
.text2-advanced{border:1px solid #334965;border-radius:11px;padding:12px 15px;margin:16px 0;background:#0e1a2d}
.text2-advanced summary{cursor:pointer;color:#b7d2f9;font-weight:650;font-size:12px}
.text2-advanced[open] summary{margin-bottom:15px}
.text2-advanced .nv2-fields{margin:12px 0}
.text2-chat-mode{padding:12px 0 16px}
.text2-chat-mode>label:first-child{display:block;margin-bottom:12px}
.text2-simple-speed{display:block;margin-bottom:14px}
.text2-simple-speed>span{display:block;font-size:12px;font-weight:700;margin-bottom:8px;color:#bfd3f5}
.text2-studio label[hidden]{display:none!important}
@media(max-width:690px){.text2-base-head,.text2-base-finetune{flex-direction:column;align-items:stretch}.text2-base-stats{align-items:flex-start}.text2-base-buttons{align-items:stretch}.text2-base-finetune button{min-width:0}}

/* Temporary pause for text models. No model files or training logic are removed. */
#nv2-text.text-models-paused > :not(.text-models-soon){display:none!important}
.text-models-soon{min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:55px 22px;border:1px solid rgba(137,165,220,.23);border-radius:18px;background:radial-gradient(ellipse at 50% 0%,rgba(111,98,190,.17),transparent 65%),rgba(14,23,40,.6)}
.text-models-soon-icon{font-size:54px;color:#aebfff;line-height:1;margin-bottom:18px}
.text-models-soon h2{font-size:clamp(24px,4vw,38px);font-weight:800;letter-spacing:-.6px;color:#eef3ff;margin:0 0 14px}
.text-models-soon p{color:#aebbd4;font-size:14px;max-width:420px;line-height:1.6}

/* Public news and protected admin publishing */
#view-news .article-grid{margin-top:18px}
.news-full-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}
.news-editor{margin-top:28px;padding:22px;display:block}
.news-editor[hidden]{display:none!important}
.news-editor form{display:grid;gap:12px;margin:16px 0}
.news-editor label{display:grid;gap:7px;color:#c9d9f6;font-size:13px}
.news-editor input,.news-editor textarea{background:#101d32;color:#eef3fe;padding:12px;border:1px solid #51668e;border-radius:10px;width:100%;box-sizing:border-box;font:inherit}
.news-admin-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #364660}
