
/* NOCTILUPUS STUDIO · live workspace extension */
body:not(.portal-live) .shell{display:none!important}
body.portal-live .shell{display:flex}
.demo-badge,.search-wrap,#bell{display:none!important}
.portal-nav-label{font-size:9px;color:#819487;letter-spacing:.19em;margin:24px 25px 13px;font-weight:700}
.portal-nav-item{display:flex;align-items:center;gap:13px;width:calc(100% - 28px);margin:3px 14px;padding:13px 12px;border:0;border-radius:7px;background:transparent;color:#b5c3ba;text-align:left;font-size:12px;font-weight:500}
.portal-nav-item span{font-size:18px;width:24px;text-align:center;line-height:1}
.portal-nav-item:hover,.portal-nav-item.current{background:#344a3d;color:#fff}
.portal-nav-item.current{box-shadow:inset 2px 0 #c6dcc7}
.portal-lead{color:#748078;max-width:620px;margin-top:12px;font-size:12px;line-height:1.8}
.portal-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 28px}
.portal-stat{background:#fff;border:1px solid #e7eae4;border-radius:12px;padding:24px 20px;min-height:150px;box-shadow:0 5px 22px #14241a06}
.portal-stat-label{font-size:11px;font-weight:650;color:#6a776e}
.portal-stat-value{font:normal 29px Georgia,serif;letter-spacing:-.05em;color:#25382c;margin:25px 0 10px;overflow-wrap:anywhere}
.portal-muted{font-size:10px;color:#8a968b;line-height:1.8}
.portal-section{background:#fff;border:1px solid #e7eae4;border-radius:12px;padding:22px;margin:18px 0 24px}
.portal-section h2{font:normal 20px Georgia,serif;letter-spacing:-.02em;color:#25382c;margin:0 0 22px}
.portal-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.portal-section-heading h2{margin:0 0 12px}
.portal-mini-info{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}
.portal-mini-info>div{border:1px solid #e7eae4;border-radius:10px;padding:22px;background:#fdfdfc}
.portal-mini-info b{font-size:12px;color:#3b4f42}
.portal-mini-info p{font-size:18px;margin-top:10px}
.portal-table-wrap{width:100%;overflow:auto}
.portal-table{border-collapse:collapse;width:100%;min-width:560px;font-size:12px;text-align:left}
.portal-table th{color:#8c9a90;letter-spacing:.07em;text-transform:uppercase;font-size:9px;font-weight:700;padding:15px 12px;border-bottom:1px solid #e6ebe5}
.portal-table td{color:#314236;vertical-align:middle;padding:15px 12px;border-bottom:1px solid #eff1ed;max-width:320px}
.portal-table tr:last-child td{border-bottom:none}
.portal-table td b{font-size:12px;font-weight:650}
.portal-empty{text-align:center;color:#89988c!important;padding:32px!important}
.portal-pill{display:inline-block;font-size:10px;color:#3f6450;background:#e9f1e9;border-radius:5px;padding:6px 9px;white-space:nowrap}
.portal-pill.ok{background:#dfefdd}
.portal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid #e5e9e2;background:#fdfefc;border-radius:12px;padding:22px;margin:0 0 20px}
.portal-form h3,.portal-form p{grid-column:1/-1}
.portal-form h3{font:normal 22px Georgia,serif;color:#304a39}
.portal-form p{font-size:11px;color:#7b8a7f;line-height:1.7}
.portal-form label,.auth-box label{display:grid;gap:8px;font-size:11px;font-weight:650;color:#596e5f}
.portal-form input,.portal-form textarea,.portal-form select,.auth-box input,.status-input,.portal-table select{
  padding:12px 13px;border:1px solid #dfe7de;border-radius:8px;background:#fff;color:#273b2d;font:inherit;font-size:12px;min-width:0;width:100%}
.portal-form textarea{resize:vertical}
.portal-form button{align-self:end;max-width:220px}
.portal-form select,.status-input{cursor:pointer}
.portal-table select{min-width:128px;max-width:180px;padding:9px}
.portal-upload{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;background:#fff;border:1px dashed #bacbc0;border-radius:12px;padding:27px 22px;margin:15px 0 24px}
.portal-upload h2{font:normal 21px Georgia,serif;color:#314b39}
.portal-upload p{font-size:11px;color:#7b8b7f;margin-top:9px}
.portal-upload #upload-status{width:100%}
.portal-progress{height:5px;background:#e5eee4;border-radius:6px;overflow:hidden;margin-top:8px}
.portal-progress div{height:100%;background:#33674b;transition:width .2s}
.portal-connection{background:#f9faf7;padding:22px;border:1px solid #e1e8e0;border-radius:10px;margin:20px 0}
.portal-connection p{font-size:11px;color:#849187;margin-top:11px}
.portal-connection .btn{margin-left:12px}
.portal-profile{font-size:13px;line-height:2;color:#435748;margin:15px 0 25px}
.signout-button{white-space:nowrap;font-size:11px}
#portal-toast{display:none;position:fixed;bottom:24px;right:24px;z-index:9999;padding:15px 20px;background:#254936;color:#fff;border-radius:8px;box-shadow:0 12px 30px #101f1440;font-size:12px;max-width:85vw}
#portal-toast.error{background:#8e3535}
.auth-screen{min-height:100dvh;background:#eef1ea;display:grid;place-items:center;padding:26px;position:relative}
.auth-screen:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 25% 15%,#fff8,transparent 46%);pointer-events:none}
.auth-box{width:min(100%,435px);position:relative;background:#fff;border:1px solid #e1e9df;border-radius:14px;padding:36px;box-shadow:0 25px 75px #16311e15}
.auth-mark{display:grid;place-items:center;background:#131615;width:55px;height:55px;border-radius:9px;margin-bottom:32px}
.auth-mark img{width:48px;height:48px;object-fit:contain}
.auth-box .eyebrow{font-size:9px;color:#718777}
.auth-box h1{font:normal 39px Georgia,serif;letter-spacing:-.05em;color:#1e3025;margin:12px 0}
.auth-intro{font-size:12px;line-height:1.8;color:#809184;margin-bottom:27px}
.auth-box form{display:grid;gap:17px}
.auth-box input{padding:13px;font-size:14px}
.auth-submit{width:100%;padding:14px!important;margin-top:3px}
.two-step{display:flex;align-items:center;gap:12px}
.two-step button{white-space:nowrap}
#code-status{color:#3d7551;font-size:14px}
.text-link{border:0;background:none;color:#4f755a;text-decoration:underline;font-size:11px;margin:19px 0 10px;padding:0;cursor:pointer}
.auth-foot{border-top:1px solid #edf0ed;padding-top:21px;margin-top:12px;font-size:10px;letter-spacing:.04em;color:#88988a}
.auth-foot a{text-decoration:underline}
@media(max-width:1180px){.portal-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:690px){
 .portal-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .portal-stat{min-height:116px;padding:17px 15px}
 .portal-stat-value{font-size:23px;margin:19px 0 6px}
 .portal-form,.portal-mini-info{grid-template-columns:1fr}
 .portal-form{padding:17px}
 .portal-form button{max-width:none}
 .portal-section{padding:15px}
 .portal-connection .btn{display:block;margin:12px 0 0}
 .heading-row{align-items:flex-start}
 .auth-box{padding:25px}
 .auth-box h1{font-size:32px}
 .portal-upload{padding:20px}
}


/* NOCTILUPUS STUDIO — WHITE / NAVY / CHARCOAL, 2026 DESIGN SYSTEM */
:root {
  --ink:#13171E;
  --muted:#687383;
  --wash:#FFFFFF;
  --panel:#FFFFFF;
  --line:#E7ECF2;
  --pine:#132D4F;
  --pine-light:#EDF3FA;
  --sidebar:#15191F;
  --radius:18px;
  --shadow:0 12px 34px rgba(13,27,48,.045),0 1px 3px rgba(13,27,48,.022);
  --studio-navy:#112B4D;
  --studio-ink:#11151B;
  --studio-slate:#657183;
  --studio-rule:#E6EBF1;
  --studio-soft:#F7F9FC;
  --studio-glass:rgba(255,255,255,.86);
  color-scheme:light;
}
html,body {
  background:#FFFFFF!important;
  color:var(--studio-ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter","Segoe UI",Arial,sans-serif!important;
  font-size:14px;
  font-weight:400;
  letter-spacing:-.012em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.portal-live .shell,.main,.content {background:#FFFFFF!important}
body .shell{color:var(--studio-ink)}
button,input,select,textarea{
  font-family:inherit!important;
  letter-spacing:normal;
}
button:focus-visible,a:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible {
  outline:3px solid rgba(43,101,172,.36);
  outline-offset:3px;
}
a,button,input,select,textarea{ -webkit-tap-highlight-color:transparent; }
button{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
@media (prefers-reduced-motion:reduce) {
 button,.portal-stat,.portal-section,.portal-mini-info>div,
 .sidebar,.portal-nav-item{transition:none!important}
}

/* Graphite navigation, a single muted navy accent */
.sidebar {
  background:#15191F!important;
  color:#C2CAD4;
  border-right:1px solid #2A3038;
  box-shadow:3px 0 18px rgba(9,18,32,.035);
}
.brand{
  min-height:100px;
  padding:26px 23px!important;
  border-bottom:1px solid rgba(238,244,255,.095)!important;
}
.brand-logo{
  width:42px;height:42px;
  border-radius:9px;
  box-shadow:0 0 0 1px rgba(255,255,255,.12);
}
.brand-word{
  font-size:13px!important;
  color:#F8FAFC!important;
  font-weight:700!important;
  letter-spacing:.17em!important;
}
.brand-sub{
  color:#97A4B5!important;
  font-size:10px!important;
  letter-spacing:.17em!important;
}
.side-scroll{padding:22px 8px!important}
.portal-nav-label{
  color:#8391A5!important;
  font-size:10px!important;
  margin:16px 22px 15px!important;
  letter-spacing:.13em!important;
  font-weight:650!important;
}
.portal-nav-item{
  font-size:13px!important;
  min-height:43px;
  border:1px solid transparent!important;
  border-radius:10px!important;
  margin:4px 10px!important;
  width:calc(100% - 20px)!important;
  padding:10px 14px!important;
  color:#AEBACA!important;
  gap:13px!important;
  font-weight:540!important;
  letter-spacing:-.005em;
  transition:background .2s,border-color .2s,color .2s,transform .2s!important;
}
.portal-nav-item:hover{
  color:#FFFFFF!important;
  background:rgba(64,87,118,.27)!important;
}
.portal-nav-item.current{
  color:#FFFFFF!important;
  background:linear-gradient(135deg,rgba(36,70,112,.75),rgba(27,43,66,.8))!important;
  border-color:rgba(153,183,221,.20)!important;
  box-shadow:inset 2px 0 0 #8EAED7,0 4px 14px rgba(2,12,28,.16)!important;
}
.portal-nav-item span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px!important;width:20px!important;height:20px;font-size:16px!important}
.portal-nav-item svg{
  width:18px;height:18px;fill:none;
  stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.sidebar-foot{
  background:rgba(255,255,255,.035)!important;
  border:1px solid rgba(194,210,231,.13)!important;
  border-radius:16px!important;
  padding:19px 17px!important;
  margin:10px 12px 18px!important;
}
.sidebar-foot .eyebrow{color:#A8B8D1!important}
.sidebar-foot p{color:#B2BECC!important;font-size:12px!important;line-height:1.65!important}
.sidebar-foot small{color:#8390A3!important;font-size:10px!important;letter-spacing:.04em}
.sidebar-foot .apply-link{
  border-color:rgba(255,255,255,.12)!important;
  color:#ECF2FA!important;
  font-size:12px!important;
  font-weight:600!important;
}
.sidebar-foot>div[style*="background"]{background:rgba(255,255,255,.12)!important}

/* Glass top chrome; white work canvas */
.topbar {
  height:78px;
  position:sticky;
  z-index:3;
  top:0;
  background:rgba(255,255,255,.84)!important;
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  backdrop-filter:blur(20px) saturate(145%);
  border-bottom:1px solid rgba(211,221,233,.68)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.85);
}
.breadcrumb{font-size:12px!important;color:#8B97A6!important;gap:12px!important}
.breadcrumb b{color:#242F3D!important;font-weight:650!important}
.avatar{
  width:36px;height:36px;
  color:#213C5B!important;
  background:#ECF2F9!important;
  border:1px solid #DFE8F2;
  font-size:12px!important;
  font-weight:650!important;
}
.lang-switch{
  background:rgba(249,251,255,.92)!important;
  border:1px solid #E1E8F0!important;
  border-radius:12px!important;
  padding:4px!important;
}
.lang-switch button{
  color:#677588!important;
  font-size:11px!important;
  font-weight:650!important;
  border-radius:8px!important;
  min-height:30px!important;
  padding:7px 11px!important;
}
.lang-switch button.active,
.lang-switch button.selected{
  background:#172B46!important;
  color:#FFFFFF!important;
  box-shadow:0 2px 5px rgba(11,32,60,.15);
}
.icon-button{color:#53647A!important}
.icon-button:hover{background:#EFF3F8!important}

/* Clean typography: system/SF-like, never editorial serif */
.eyebrow {
  color:#59728F!important;
  font-size:10px!important;
  letter-spacing:.13em!important;
  font-weight:700!important;
}
.page-title{
  font-family:inherit!important;
  font-weight:680!important;
  font-size:clamp(29px,2.5vw,39px)!important;
  line-height:1.12!important;
  letter-spacing:-.045em!important;
  color:#141B26!important;
  margin:12px 0!important;
}
.heading-row{margin-bottom:28px!important}
.portal-lead,.subtitle{
  color:#677488!important;
  font-size:13px!important;
  line-height:1.7!important;
  max-width:720px!important;
}
.content{
  padding-top:44px!important;
  max-width:1580px!important;
}
.portal-section h2,.portal-upload h2,.portal-form h3,
.modal .modal-title,.creator-hero h2{
  font-family:inherit!important;
  font-weight:660!important;
  letter-spacing:-.032em!important;
  line-height:1.25!important;
  color:#152135!important;
}
.portal-section h2{font-size:20px!important}
.portal-upload h2{font-size:19px!important}
.portal-stat-value{
  font-family:inherit!important;
  font-weight:650!important;
  color:#112B4D!important;
  letter-spacing:-.05em!important;
  font-size:32px!important;
  margin:23px 0 9px!important;
}
.portal-stat-label{
  color:#536379!important;
  font-size:13px!important;
  font-weight:600!important;
}
.portal-muted{
  color:#7A8797!important;
  font-size:12px!important;
  line-height:1.65!important;
}

/* Restrained white liquid-glass cards */
.portal-stat,
.portal-section,
.portal-mini-info>div,
.portal-upload,
.portal-connection {
  background:var(--studio-glass)!important;
  border:1px solid rgba(214,224,235,.85)!important;
  border-radius:19px!important;
  box-shadow:0 1px 1px rgba(15,36,62,.025),0 9px 24px rgba(14,31,53,.035),
    inset 0 1px 0 rgba(255,255,255,.95)!important;
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  backdrop-filter:blur(16px) saturate(130%);
}
.portal-stat {
  min-height:168px!important;
  padding:24px!important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important;
}
@media(hover:hover){
 .portal-stat:hover{
   transform:translateY(-2px);
   border-color:#CCD9E8!important;
   box-shadow:0 12px 34px rgba(13,39,76,.07),inset 0 1px 0 #fff!important;
 }
}
.portal-section{padding:26px!important}
.portal-mini-info>div{padding:24px!important}
.portal-mini-info b{color:#34455A!important;font-size:13px!important}
.portal-mini-info p{font-size:19px!important;color:#162D4A!important;font-weight:600}
.portal-upload{
  min-height:156px;
  border:1px dashed #B9C9DB!important;
  padding:28px!important;
}
.portal-upload p{
  color:#758397!important;
  font-size:12px!important;
  line-height:1.6!important;
}
.portal-connection p{font-size:12px!important;color:#748397!important}
.portal-profile{color:#526175!important}

/* Crisp controls and input focus */
.btn {
  min-height:40px;
  padding:11px 16px!important;
  border-radius:11px!important;
  border:1px solid #DAE2ED!important;
  background:rgba(255,255,255,.92)!important;
  color:#25364D!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.2;
  box-shadow:0 1px 1px rgba(14,25,42,.02),inset 0 1px 0 rgba(255,255,255,.95);
}
.btn:hover{background:#F3F6FB!important;border-color:#C9D5E4!important}
.btn.primary,.btn.dark{
  background:#132D4F!important;
  color:#FFFFFF!important;
  border-color:#132D4F!important;
  box-shadow:0 3px 10px rgba(10,40,77,.12)!important;
}
.btn.primary:hover,.btn.dark:hover{
  background:#1D4270!important;
  border-color:#1D4270!important;
}
.btn:active{transform:translateY(1px)}
.portal-form{
  background:#FAFBFD!important;
  border:1px solid #E4EAF2!important;
  border-radius:17px!important;
  padding:24px!important;
}
.portal-form label,.auth-box label{
  color:#3F526A!important;
  font-size:12px!important;
  font-weight:640!important;
  gap:9px!important;
}
.portal-form p{color:#748295!important;font-size:12px!important}
.portal-form input,
.portal-form textarea,
.portal-form select,
.auth-box input,
.status-input,
.portal-table select{
  min-height:42px;
  background:#FFFFFF!important;
  color:#192333!important;
  border:1px solid #DCE5EF!important;
  border-radius:10px!important;
  font-size:13px!important;
  padding:11px 13px!important;
  outline:0;
  box-shadow:inset 0 1px 2px rgba(22,46,71,.014);
}
.portal-form input:focus,.portal-form textarea:focus,.portal-form select:focus,
.auth-box input:focus,.portal-table select:focus,.status-input:focus{
  border-color:#7D9FC7!important;
  box-shadow:0 0 0 3px rgba(68,121,178,.12)!important;
}
.portal-form input::placeholder,.auth-box input::placeholder{color:#A6B2C0}
.portal-progress{background:#EDF2F8!important;height:6px!important}
.portal-progress div{background:#254E80!important}

/* Compact but genuinely readable tabular data */
.portal-table{font-size:13px!important}
.portal-table th{
  color:#68788B!important;
  border-color:#E7EDF4!important;
  letter-spacing:.055em!important;
  font-size:11px!important;
  font-weight:660!important;
  padding:16px 13px!important;
}
.portal-table td{
  color:#3B4A5F!important;
  border-color:#EDF1F6!important;
  font-size:13px!important;
  padding:16px 13px!important;
  line-height:1.55!important;
}
.portal-table td b{color:#263951!important;font-size:13px!important;font-weight:650!important}
.portal-empty{color:#7B889A!important;font-size:13px!important}
.portal-pill{
  background:#EFF4FA!important;
  color:#315581!important;
  border:1px solid #E2EAF4;
  border-radius:8px!important;
  font-size:11px!important;
  padding:6px 10px!important;
  font-weight:600!important;
}
.portal-pill.ok{
  background:#E9F3ED!important;
  color:#2C6747!important;
  border-color:#D3E8D9!important;
}
#portal-toast{
  background:#172B45!important;
  box-shadow:0 18px 40px rgba(11,25,43,.22)!important;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px!important;
  font-size:13px!important;
  line-height:1.5;
}

/* Login takes the same white, charcoal, navy design */
.auth-screen{
  background:#FFFFFF!important;
}
.auth-screen:before{display:none!important}
.auth-box{
  width:min(100%,440px)!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid #E3E9F1!important;
  border-radius:22px!important;
  padding:38px!important;
  box-shadow:0 22px 70px rgba(14,33,58,.075),0 2px 10px rgba(14,33,58,.025)!important;
}
.auth-mark{
  background:#15191F!important;
  border-radius:12px!important;
  width:56px;height:56px;
}
.auth-box h1{
  font-family:inherit!important;
  color:#172234!important;
  font-weight:680!important;
  font-size:37px!important;
  line-height:1.13!important;
  letter-spacing:-.046em!important;
}
.auth-box .eyebrow{color:#607A9C!important;font-size:10px!important}
.auth-intro{color:#6C798D!important;font-size:13px!important;line-height:1.75!important}
.auth-foot{border-color:#E5EBF2!important;color:#7F8DA0!important;font-size:11px!important}
.text-link{color:#17436F!important;font-size:12px!important;font-weight:560!important}
#code-status{color:#28674B!important}

/* Mobile: maintain white canvas, readable labels and touch targets */
@media(max-width:1180px) {
 .portal-stat{min-height:153px!important}
}
@media(max-width:920px){
 .sidebar{box-shadow:14px 0 40px rgba(0,0,0,.16)!important}
 .scrim.show{background:rgba(13,21,34,.56)!important;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
 .topbar{height:68px!important}
 .content{padding-top:30px!important}
}
@media(max-width:690px){
 .content{padding:28px 18px 45px!important}
 .heading-row{gap:12px!important}
 .page-title{font-size:30px!important;line-height:1.17!important}
 .portal-lead{font-size:12px!important;line-height:1.6!important}
 .portal-stat-grid{gap:11px!important}
 .portal-stat{min-height:138px!important;padding:18px!important;border-radius:16px!important}
 .portal-stat-value{font-size:27px!important;margin:17px 0 7px!important}
 .portal-stat-label{font-size:12px!important}
 .portal-muted{font-size:11px!important}
 .portal-section{padding:19px!important;border-radius:17px!important}
 .portal-section h2{font-size:18px!important}
 .portal-form{padding:18px!important}
 .portal-mini-info>div{padding:19px!important}
 .portal-upload{padding:20px!important}
 .auth-box{padding:28px!important}
 .auth-box h1{font-size:30px!important}
 .topbar{padding:0 16px!important}
 .top-actions{gap:8px!important}
 .breadcrumb{font-size:11px!important}
 .lang-switch button{padding:7px 8px!important}
 .portal-table{min-width:600px}
}
@media(max-width:370px){
 .portal-stat-grid{grid-template-columns:1fr!important}
 .portal-stat{min-height:110px!important}
}


/* NOCTILUPUS STUDIO · MOBILE NAVIGATION AND TABLE UX V3 */
body.portal-live{overflow-x:clip}
.top-leading{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.top-actions{flex:0 0 auto;min-width:0}
.desktop-breadcrumb .crumb-separator{color:#9EA9B8}
.mobile-brand-lockup,.mobile-location,.sidebar-close,.sidebar-mobile-signout{display:none}
.topbar{
  isolation:isolate;
}
.topbar::after{
  content:"";
  position:absolute;bottom:-1px;left:0;right:0;
  height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(26,66,112,.21),rgba(141,178,225,.17) 46%,transparent 90%);
}
.portal-empty-state{
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  min-height:176px;
  text-align:center;
  padding:32px 18px;
  margin:16px 0 0;
  background:linear-gradient(180deg,rgba(250,252,255,.56),rgba(255,255,255,.88));
  border:1px dashed #E0E7F0;
  border-radius:14px;
  color:#6D7D91;
}
.portal-empty-state .empty-visual{
  width:44px;height:44px;
  display:grid;place-items:center;
  margin-bottom:13px;
  border:1px solid #E5EBF3;
  border-radius:12px;
  background:#F5F8FC;
  color:#6C809A;
}
.portal-empty-state strong{display:block;color:#3B4E67;font-size:14px;font-weight:650}
.portal-empty-state p{margin:7px 0 0;font-size:12px;color:#8290A1;line-height:1.55}
@media (max-width:920px){
  html,body{max-width:100%;overflow-x:clip}
  .main{width:100%;min-width:0}
  .topbar{
    height:70px!important;
    min-height:70px;
    width:100%;
    padding:0 16px!important;
    gap:10px!important;
    display:flex;align-items:center;justify-content:space-between;
    position:sticky;top:0;
    z-index:7;
    background:rgba(255,255,255,.94)!important;
    -webkit-backdrop-filter:blur(22px) saturate(150%);
    backdrop-filter:blur(22px) saturate(150%);
    border-bottom:1px solid #E4EAF2!important;
  }
  .top-leading{gap:9px;min-width:0;flex:1}
  .mobile-menu{
    width:43px!important;height:43px!important;
    min-width:43px!important;flex:0 0 43px!important;
    display:grid!important;place-items:center;
    background:#F6F8FC!important;
    border:1px solid #DCE5EF!important;
    color:#183250!important;
    border-radius:12px!important;
    padding:0!important;
  }
  .mobile-menu svg{display:block;stroke:#183250!important;width:21px;height:21px}
  .mobile-menu:hover{background:#EEF3FA!important}
  .mobile-menu[aria-expanded="true"]{background:#E8F0FB!important;border-color:#9AB3D1!important}
  .mobile-brand-lockup{
    display:flex;align-items:center;gap:9px;
    min-width:0;flex:1;
    overflow:hidden;
  }
  .mobile-brand-lockup img{
    width:34px;height:34px;flex:0 0 34px;
    border-radius:9px;background:#11151B;object-fit:cover;
  }
  .mobile-brand-lockup span{display:flex;flex-direction:column;gap:2px;min-width:0}
  .mobile-brand-lockup b{
    font-size:11px;
    letter-spacing:.11em;
    font-weight:730;
    color:#161F2D;
    white-space:nowrap;
  }
  .mobile-brand-lockup small{
    font-size:9px;color:#6E8198;
    letter-spacing:.17em;font-weight:700;
  }
  .desktop-breadcrumb{display:none!important}
  .top-actions{display:flex;align-items:center;gap:8px!important;flex:0 0 auto}
  .top-actions #signout{display:none!important}
  .top-actions .avatar{
    flex:0 0 34px;
    width:34px;height:34px;
    border-radius:12px;
    background:#ECF2F9!important;
    font-size:11px!important;
  }
  .top-actions .lang-switch{
    flex:0 0 auto;
    padding:3px!important;
    border-radius:11px!important;
  }
  .top-actions .lang-switch button{
    min-height:31px!important;
    min-width:29px!important;
    padding:6px 8px!important;
    font-size:11px!important;
  }
  .mobile-location{
    display:flex;align-items:center;gap:9px;
    min-height:38px;
    padding:9px 20px;
    background:#FAFBFD;
    border-bottom:1px solid #E8EDF4;
    overflow:hidden;
    white-space:nowrap;
    font-size:11px;letter-spacing:.06em;
  }
  .mobile-location span:first-child{
    color:#7C8CA0;font-size:10px;font-weight:720;letter-spacing:.15em;
  }
  .mobile-location-divider{color:#B8C3D0;font-weight:500}
  .mobile-location strong{
    min-width:0;overflow:hidden;text-overflow:ellipsis;
    font-size:11px;font-weight:700;letter-spacing:0;
    color:#1D3555;
  }
  .sidebar{
    left:0!important;right:auto!important;
    width:min(310px,86vw)!important;
    max-width:310px!important;
    min-height:100dvh!important;height:100dvh!important;
    flex-basis:auto!important;
    transform:translate3d(-102%,0,0);
    transition:transform .25s cubic-bezier(.2,.72,.18,1)!important;
    z-index:20!important;
    box-shadow:14px 0 44px rgba(7,15,30,.20)!important;
    overscroll-behavior:contain;
  }
  .sidebar.open{left:0!important;transform:translate3d(0,0,0)}
  .sidebar .brand{min-height:96px;padding:23px 54px 23px 19px!important;position:relative}
  .sidebar .brand-word{font-size:12px!important;letter-spacing:.13em!important}
  .sidebar .brand-sub{font-size:9px!important}
  .sidebar-close{
    display:grid;place-items:center;
    position:absolute;top:26px;right:12px;
    height:40px;width:40px;
    color:#D6E2F1;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.14);
    border-radius:11px;
  }
  .sidebar-close svg{pointer-events:none}
  .sidebar-close:hover{background:rgba(255,255,255,.14)}
  .sidebar .side-scroll{
    min-height:0;
    flex:1 1 auto;
    padding:16px 9px!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .sidebar .portal-nav-item{min-height:46px;font-size:13px!important}
  .sidebar-foot{padding:14px 15px!important;margin:6px 12px 8px!important}
  .sidebar-foot p{margin:7px 0!important;font-size:11px!important}
  .sidebar-foot .apply-link{margin:7px 0!important;padding:7px 0!important}
  .sidebar-mobile-signout{
    display:flex;align-items:center;gap:11px;
    flex:0 0 auto;
    width:calc(100% - 24px);
    min-height:45px;
    margin:0 12px max(12px,env(safe-area-inset-bottom));
    padding:11px 16px;
    border:1px solid rgba(162,182,209,.2);
    border-radius:12px;
    background:rgba(255,255,255,.045);
    color:#E5ECF6;
    font-size:12px;font-weight:650;
    text-align:left;
  }
  .sidebar-mobile-signout svg{flex:0 0 18px}
  .sidebar-mobile-signout:hover{background:rgba(255,255,255,.10)}
  .scrim.show{
    z-index:19!important;
    background:rgba(12,20,32,.52)!important;
    -webkit-backdrop-filter:blur(5px);
    backdrop-filter:blur(5px);
  }
  body.menu-open{overflow:hidden!important;touch-action:pan-y}
  .content{padding:26px 20px 45px!important}
  .heading-row{margin-bottom:21px!important}
  .heading-row>div:first-child{min-width:0;max-width:100%}
  .page-title{overflow-wrap:break-word}
  .portal-section{margin:14px 0 20px!important}
}
@media(max-width:720px){
  .portal-table-wrap{width:100%;overflow:visible!important}
  .portal-table{
    width:100%!important;
    min-width:0!important;
    display:block;
    border-collapse:separate;
  }
  .portal-table thead{display:none!important}
  .portal-table tbody{display:grid;gap:12px}
  .portal-table tbody tr{
    display:block;
    border:1px solid #E2EAF3;
    border-radius:14px;
    background:#FFFFFF;
    padding:10px 15px;
    box-shadow:0 3px 12px rgba(12,37,64,.025);
    overflow:hidden;
  }
  .portal-table tbody td{
    display:block!important;
    min-height:42px;
    width:100%!important;
    max-width:none!important;
    position:relative;
    padding:11px 0 11px 39%!important;
    border:0!important;
    border-bottom:1px solid #F0F3F7!important;
    font-size:12px!important;
    line-height:1.55!important;
    overflow-wrap:anywhere;
    text-align:left!important;
  }
  .portal-table tbody td:last-child{border-bottom:0!important}
  .portal-table tbody td::before{
    content:attr(data-label);
    position:absolute;left:0;top:12px;
    width:36%;
    font-size:10px;
    font-weight:690;
    letter-spacing:.035em;
    line-height:1.5;
    color:#728297;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .portal-table tbody td .portal-muted{font-size:11px!important}
  .portal-table tbody td button,.portal-table tbody td .btn{max-width:100%}
  .portal-table tbody td select{min-width:0!important;max-width:100%;width:100%!important}
  .portal-empty-state{min-height:186px;margin:0;padding:32px 18px}
  .portal-section{border-radius:16px!important;padding:18px!important}
  .portal-upload{min-height:unset;padding:21px!important;gap:16px!important}
  .portal-upload .btn{width:100%;max-width:none!important}
  .portal-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .portal-stat{padding:17px!important;min-height:130px!important}
  .portal-stat-value{font-size:26px!important}
  .portal-stat-label{font-size:12px!important;line-height:1.3!important}
  .portal-mini-info{grid-template-columns:1fr!important;gap:11px!important}
  .portal-form{grid-template-columns:1fr!important}
  .heading-row .btn{min-height:38px!important}
}
@media(max-width:420px){
  .mobile-brand-lockup img{width:31px;height:31px;flex-basis:31px}
  .mobile-brand-lockup b{font-size:10px;letter-spacing:.08em}
  .mobile-brand-lockup small{font-size:9px}
  .content{padding:22px 16px 35px!important}
  .topbar{padding:0 12px!important;gap:6px!important}
  .top-leading{gap:7px}
  .top-actions{gap:6px!important}
  .mobile-location{padding:9px 17px}
  .portal-stat{padding:15px!important}
  .portal-stat-value{font-size:25px!important}
}
@media(max-width:370px){
  .mobile-brand-lockup b{display:none}
  .mobile-brand-lockup small{font-size:11px;font-weight:750}
  .top-actions .lang-switch button{padding:5px 6px!important}
  .portal-table tbody td{padding-left:42%!important}
  .portal-table tbody td::before{width:39%}
}


/* NOCTILUPUS STUDIO — REFINED MOTION V1 */
:root{
  --studio-ease:cubic-bezier(.22,1,.36,1);
  --studio-ease-out:cubic-bezier(.16,1,.3,1);
}
/* View exit is deliberately short; incoming content feels calm but responsive. */
#app{
  transform-origin:center top;
  will-change:auto;
}
#app.studio-page-leave{
  opacity:0;
  transform:translate3d(0,-7px,0) scale(.997);
  transition:opacity 145ms ease-in,transform 145ms ease-in;
  pointer-events:none;
}
#app.studio-page-enter{
  animation:studioPageIn 470ms var(--studio-ease) both;
}
@keyframes studioPageIn{
  0%{opacity:0;transform:translate3d(0,13px,0)}
  100%{opacity:1;transform:translate3d(0,0,0)}
}
/* Very light stagger: cards arrive in sequence, not as a single abrupt flash. */
#app.studio-page-enter .heading-row{
  animation:studioItemIn 420ms var(--studio-ease) 20ms both;
}
#app.studio-page-enter .portal-stat-grid .portal-stat{
  animation:studioItemIn 460ms var(--studio-ease) both;
}
#app.studio-page-enter .portal-stat-grid .portal-stat:nth-child(1){animation-delay:60ms}
#app.studio-page-enter .portal-stat-grid .portal-stat:nth-child(2){animation-delay:100ms}
#app.studio-page-enter .portal-stat-grid .portal-stat:nth-child(3){animation-delay:140ms}
#app.studio-page-enter .portal-stat-grid .portal-stat:nth-child(4){animation-delay:180ms}
#app.studio-page-enter .portal-section,
#app.studio-page-enter .portal-upload,
#app.studio-page-enter .portal-form,
#app.studio-page-enter .portal-connection,
#app.studio-page-enter .portal-mini-info{
  animation:studioItemIn 460ms var(--studio-ease) 100ms both;
}
#app.studio-page-enter .portal-section:nth-of-type(2){animation-delay:150ms}
#app.studio-page-enter .portal-section:nth-of-type(3){animation-delay:190ms}
@keyframes studioItemIn{
  from{opacity:0;transform:translate3d(0,9px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
/* Navigation and controls: nuanced response to touches/clicks. */
.portal-nav-item{
  transition:background-color 240ms ease,border-color 240ms ease,
    color 240ms ease,box-shadow 300ms ease,transform 260ms var(--studio-ease-out)!important;
}
@media (hover:hover){
 .portal-nav-item:not(.current):hover{transform:translateX(2px)}
 .btn:hover{transform:translate3d(0,-1px,0)}
 .portal-stat:hover{transform:translate3d(0,-3px,0)}
}
.btn{
  transition:background-color 230ms ease,color 230ms ease,border-color 230ms ease,
   box-shadow 270ms ease,transform 220ms var(--studio-ease-out)!important;
}
.btn:active{transform:translate3d(0,1px,0) scale(.99)}
.lang-switch button{
  transition:background-color 240ms ease,color 240ms ease,box-shadow 240ms ease!important;
}
.portal-pill{transition:background-color 250ms ease,color 250ms ease,border-color 250ms ease}
.portal-stat{
  transition:transform 320ms var(--studio-ease-out),box-shadow 320ms ease,border-color 300ms ease!important;
}
/* Login and account activation transition gently as well. */
.auth-box{
  animation:studioAuthIn 440ms var(--studio-ease) both;
}
@keyframes studioAuthIn{
  from{opacity:0;transform:translate3d(0,15px,0) scale(.99)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@media (max-width:920px){
  .sidebar{
    transition:transform 370ms cubic-bezier(.23,1,.32,1)!important;
  }
  .scrim{
    display:block!important;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    position:fixed;
    inset:0;
    background:rgba(12,20,32,.52);
    transition:opacity 320ms ease,visibility 320ms ease!important;
    z-index:19;
  }
  .scrim.show{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    display:block!important;
  }
  .sidebar.open .portal-nav-item{
    animation:studioNavReveal 340ms var(--studio-ease) both;
  }
  .sidebar.open .portal-nav-item:nth-child(2){animation-delay:38ms}
  .sidebar.open .portal-nav-item:nth-child(3){animation-delay:57ms}
  .sidebar.open .portal-nav-item:nth-child(4){animation-delay:76ms}
  .sidebar.open .portal-nav-item:nth-child(5){animation-delay:95ms}
  .sidebar.open .portal-nav-item:nth-child(6){animation-delay:114ms}
  .sidebar.open .portal-nav-item:nth-child(7){animation-delay:133ms}
  .sidebar.open .portal-nav-item:nth-child(8){animation-delay:152ms}
  @keyframes studioNavReveal{
    from{opacity:.25;transform:translate3d(-7px,0,0)}
    to{opacity:1;transform:translate3d(0,0,0)}
  }
}
@media (prefers-reduced-motion:reduce){
  #app.studio-page-enter,#app.studio-page-leave,
  #app.studio-page-enter .heading-row,
  #app.studio-page-enter .portal-stat-grid .portal-stat,
  #app.studio-page-enter .portal-section,
  #app.studio-page-enter .portal-upload,
  #app.studio-page-enter .portal-form,
  #app.studio-page-enter .portal-connection,
  #app.studio-page-enter .portal-mini-info,
  .auth-box,.sidebar.open .portal-nav-item{
    animation:none!important;
    transition:none!important;
    opacity:1!important;
    transform:none!important;
  }
  .sidebar,.scrim,.portal-nav-item,.btn,.lang-switch button,.portal-stat{
    animation:none!important;
    transition:none!important;
  }
}


/* NOCTILUPUS STUDIO / TECHNOLOGY BLUE — 2026-11-19 */
:root{
 --studio-blue:#1765FF;
 --studio-electric:#276BFF;
 --studio-cyan:#28D8FF;
 --studio-violet:#A19AFF;
 --studio-ink:#11244A;
 --studio-hairline:#DDE9FF;
 --studio-bg:#F5F9FF;
}
html,body{background:var(--studio-bg)!important}
body.portal-live .main{background:radial-gradient(ellipse 750px 520px at 80% -12%,rgba(79,157,255,.15),transparent 75%),linear-gradient(180deg,#F7FAFF 0%,#F1F6FF 100%)!important}
body.portal-live .content{max-width:1440px;margin:0 auto;padding-top:32px!important}
.topbar{
 background:rgba(246,250,255,.77)!important;
 border-bottom:1px solid rgba(100,155,239,.20)!important;
 box-shadow:0 9px 35px rgba(38,94,180,.04)!important;
 backdrop-filter:blur(24px) saturate(170%)!important;
 -webkit-backdrop-filter:blur(24px) saturate(170%)!important;
}
.topbar::after{background:linear-gradient(90deg,transparent,#3ED9FF 30%,#3880FF 70%,transparent);opacity:.35}
.icon-button.mobile-menu,.top-actions .avatar,.top-actions .lang-switch{
 border:1px solid rgba(123,171,255,.29)!important;
 background:rgba(255,255,255,.65)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.9),0 5px 20px rgba(45,111,206,.08)!important;
 backdrop-filter:blur(19px) saturate(160%);
 -webkit-backdrop-filter:blur(19px) saturate(160%);
}
.icon-button.mobile-menu{border-radius:16px!important;color:#1257D7!important}
.mobile-menu svg{stroke:#1257D7!important}
.top-actions .lang-switch button.active,.top-actions .lang-switch button.selected{
 background:linear-gradient(135deg,#1675FF,#3159EF)!important;color:#FFF!important;
 box-shadow:0 3px 12px rgba(35,111,249,.29)!important
}
.top-actions .avatar{color:#1A59C7!important;background:rgba(238,246,255,.8)!important}
.mobile-brand-lockup img,.sidebar .brand-logo{object-fit:cover;background:#070A11;border-radius:10px}
.mobile-location{background:rgba(235,245,255,.72)!important;border-color:rgba(144,186,248,.25)!important}
.mobile-location strong{color:#1552CC!important}
.mobile-location span:first-child{color:#6892CA!important}

/* Electric blue glass navigation */
.sidebar{
 background:radial-gradient(circle at 20% -15%,#1848A0 0%,transparent 45%),linear-gradient(165deg,#08172F,#081323 70%,#0A1429)!important;
 border-right:1px solid rgba(83,152,255,.24)!important;
}
.sidebar .brand{border-color:rgba(129,185,255,.13)!important}
.sidebar .brand-word{color:#FAFCFF!important}
.sidebar .brand-sub{color:#85AEF0!important}
.sidebar .portal-nav-item{border:1px solid transparent!important;color:#A9B9D2!important}
.sidebar .portal-nav-item:hover{background:rgba(71,123,215,.15)!important;color:white!important}
.sidebar .portal-nav-item.current{
 color:#FFF!important;border:1px solid rgba(108,181,255,.29)!important;
 background:linear-gradient(98deg,rgba(31,104,245,.49),rgba(46,139,247,.13))!important;
 box-shadow:inset 3px 0 #65D8FF,0 8px 24px rgba(1,13,54,.12)!important;
}
.sidebar-foot,.sidebar-mobile-signout{background:rgba(255,255,255,.045)!important;border-color:rgba(137,178,239,.21)!important}
.sidebar-foot .apply-link{color:#9CD4FF!important}
.sidebar-close{border-color:rgba(142,191,255,.25)!important}

/* Main dashboard hero */
.studio-hero{
 position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.65fr);
 gap:22px;align-items:stretch;overflow:hidden;border-radius:26px;padding:35px;
 color:#FFF;background:
 radial-gradient(circle at 83% 4%,rgba(44,228,255,.56),transparent 37%),
 radial-gradient(circle at 39% 106%,rgba(84,88,255,.50),transparent 48%),
 linear-gradient(125deg,#06183D 2%,#0953DC 60%,#087FD9 100%);
 box-shadow:0 24px 55px rgba(21,78,183,.17),inset 0 1px rgba(255,255,255,.16);
}
.studio-hero::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.28;
 background-image:linear-gradient(rgba(255,255,255,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.11) 1px,transparent 1px);
 background-size:36px 36px;mask-image:linear-gradient(90deg,transparent 15%,#000 100%);
}
.studio-hero::after{
 content:"";position:absolute;width:350px;height:350px;z-index:-1;top:-170px;right:-75px;
 border:1px solid rgba(183,239,255,.42);border-radius:50%;box-shadow:0 0 0 60px rgba(154,221,255,.035),0 0 0 130px rgba(154,221,255,.035);
 pointer-events:none;
}
.studio-hero-orbit{position:absolute;z-index:-1;width:125px;height:125px;border:1px solid rgba(159,219,255,.4);border-radius:50%;left:56%;bottom:-86px}
.studio-hero-core{min-width:0;position:relative}
.studio-hero-top{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:34px}
.studio-eyebrow{font-size:10px;letter-spacing:.22em;color:#DBE9FF;font-weight:800}
.studio-slash{color:#5DE6FF;margin:0 5px}
.studio-hero-status{
 display:inline-flex;align-items:center;gap:8px;font-size:9px;letter-spacing:.16em;
 font-weight:800;padding:9px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.25);
 background:rgba(255,255,255,.11);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
 white-space:nowrap;
}
.studio-live-dot{height:7px;width:7px;flex:none;background:#56F4EA;border-radius:50%;box-shadow:0 0 13px #59FFE6;animation:studioBreath 2.4s ease-in-out infinite}
.studio-hero-titleline{display:flex;gap:22px;align-items:end}
.studio-hero-title{font-size:clamp(28px,3vw,43px);letter-spacing:-.055em;line-height:1.1;font-weight:790;margin:0!important;color:#fff}
.studio-hero-title span{color:#92E8FF}
.studio-hero-streak{display:flex;gap:4px;align-items:end;height:34px;flex:none}
.studio-hero-streak span{height:20px;width:4px;border-radius:5px;background:linear-gradient(#80F4FF,#6A9CFF);animation:studioWave 1.7s ease-in-out infinite}
.studio-hero-streak span:nth-child(2){animation-delay:.16s;height:31px}
.studio-hero-streak span:nth-child(3){animation-delay:.32s;height:25px}
.studio-hero-streak span:nth-child(4){animation-delay:.48s;height:34px}
.studio-hero-streak span:nth-child(5){animation-delay:.64s;height:16px}
.studio-hero-description{max-width:500px;font-size:13px;line-height:1.7;color:#C9DFFF;margin:15px 0 25px!important}
.studio-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.studio-action{
 display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:43px;
 border:1px solid rgba(255,255,255,.28);border-radius:13px;padding:10px 16px;
 font:700 12px inherit;cursor:pointer;transition:transform .22s,box-shadow .22s,background .22s;
}
.studio-action svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none}
.studio-action--solid{color:#0C46AC;background:linear-gradient(140deg,#F4FFFF,#DDF8FF);box-shadow:0 8px 22px rgba(3,23,75,.16)}
.studio-action--glass{color:#FFF;background:rgba(255,255,255,.13);backdrop-filter:blur(20px) saturate(155%);-webkit-backdrop-filter:blur(20px) saturate(155%)}
.studio-action:hover{transform:translateY(-2px)}
.studio-action:active{transform:translateY(1px) scale(.98)}
.studio-pulse{
 position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;
 padding:21px;border:1px solid rgba(255,255,255,.29);border-radius:20px;
 background:linear-gradient(145deg,rgba(255,255,255,.20),rgba(255,255,255,.07));
 backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
 box-shadow:inset 0 1px rgba(255,255,255,.21),0 10px 25px rgba(4,38,130,.1)
}
.studio-pulse-top,.studio-pulse-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}
.studio-pulse-top{font-size:10px;font-weight:780;letter-spacing:.18em;color:#D8F2FF}
.studio-pulse-signal{letter-spacing:.16em;color:#81EBFF}
.studio-pulse-value{font-size:clamp(36px,3.5vw,56px);line-height:1;letter-spacing:-.07em;font-weight:800;margin:24px 0 22px}
.studio-pulse-value small{display:block;margin-top:10px;font-size:11px;font-weight:600;letter-spacing:0;color:#D4E9FF}
.studio-pulse-track{height:7px;background:rgba(255,255,255,.18);border-radius:99px;overflow:hidden}
.studio-pulse-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#70E8FF,#FFFFFF);box-shadow:0 0 12px #7EEFFF;transition:width .5s}
.studio-pulse-bottom{margin-top:10px;font-size:10px;font-weight:650;color:#D4E9FF}
.studio-section-intro{display:flex;align-items:end;justify-content:space-between;margin:30px 0 15px;gap:16px}
.studio-kicker{display:block;font-size:9px;font-weight:800;letter-spacing:.2em;color:#377BCE;margin-bottom:8px}
.studio-section-intro h2,.studio-panel h2{margin:0!important;color:#123365;font-size:21px;font-weight:790;letter-spacing:-.045em}
.studio-section-marker{color:#7399CD;font-size:10px;letter-spacing:.12em;font-weight:750}
.studio-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.studio-metric{
 position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;text-align:left;
 min-height:165px;padding:19px 19px 15px;border:1px solid #DBE8FB;border-radius:20px;
 background:linear-gradient(150deg,#FFF,#F5FAFF);color:#0D2C5B;
 box-shadow:0 9px 25px rgba(31,88,171,.045),inset 0 1px #fff;
 transition:transform .24s,border-color .24s,box-shadow .24s;cursor:pointer
}
.studio-metric::before{content:"";position:absolute;width:125px;height:125px;border-radius:50%;right:-35px;top:-62px;opacity:.18;background:var(--metric-glow);filter:blur(22px)}
.studio-metric--blue{--metric-glow:#2D7EFF;--metric-color:#206CFF}
.studio-metric--cyan{--metric-glow:#1AE6FF;--metric-color:#079DB8}
.studio-metric--violet{--metric-glow:#8B7BFF;--metric-color:#7963DB}
.studio-metric--electric{--metric-glow:#2D92FF;--metric-color:#0763ED}
.studio-metric:hover{transform:translateY(-4px);border-color:#A5C9FF;box-shadow:0 17px 34px rgba(23,94,205,.12)}
.studio-metric:focus-visible,.studio-action:focus-visible,.studio-shortcuts button:focus-visible{outline:2px solid #187BFF;outline-offset:3px}
.studio-metric-head,.studio-metric-footer{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px}
.studio-metric-title{font-size:11px;line-height:1.35;font-weight:720;color:#617A9B}
.studio-metric-icon{display:grid;place-items:center;width:32px;height:32px;flex:none;color:var(--metric-color);background:rgba(232,243,255,.86);border:1px solid rgba(155,199,255,.25);border-radius:10px}
.studio-metric-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.studio-metric-number{position:relative;font-size:clamp(22px,2.1vw,32px);font-weight:800;letter-spacing:-.045em;line-height:1.2;margin:auto 0 8px;overflow-wrap:anywhere}
.studio-metric-footer{font-size:10px;color:#7A94B5}
.studio-metric-footer>span:last-child{color:var(--metric-color);font-size:17px}
.studio-metric-line{position:absolute;left:0;bottom:0;height:3px;width:55%;background:linear-gradient(90deg,var(--metric-color),transparent)}
.studio-dashboard-lower{display:grid;grid-template-columns:1.2fr .8fr;gap:15px;margin-top:18px}
.studio-panel{
 min-width:0;padding:24px;background:rgba(255,255,255,.83);border:1px solid #DBE8FB;border-radius:23px;
 box-shadow:0 9px 27px rgba(36,91,174,.045),inset 0 1px #FFF;
}
.studio-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.studio-panel h2{font-size:18px}
.studio-round-link{width:35px;height:35px;display:grid;place-items:center;border:1px solid #D3E6FF;border-radius:12px;background:#EFF7FF;color:#176BEE;font-size:20px}
.studio-activity-empty{display:flex;align-items:center;gap:15px;padding:22px 12px;background:linear-gradient(110deg,#F3F9FF,#F7FCFF);border:1px dashed #BFD8F9;border-radius:15px}
.studio-empty-symbol{display:grid;place-items:center;flex:none;width:44px;height:44px;background:#E2F0FF;border-radius:13px;color:#196EED}
.studio-empty-symbol svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
.studio-activity-empty b{display:block;color:#244C83;font-size:12px}
.studio-activity-empty p{font-size:11px;line-height:1.5;color:#7495BB;margin:5px 0 0}
.studio-activity-item{display:flex;align-items:center;gap:13px;padding:13px 6px;border-bottom:1px solid #E7EFF9}
.studio-activity-item:last-child{border-bottom:0}
.studio-activity-dot{width:8px;height:8px;background:#29B5FF;border-radius:100%;box-shadow:0 0 0 4px #E4F5FF}
.studio-activity-copy{flex:1;min-width:0}
.studio-activity-copy b{display:block;font-size:12px;color:#244777;overflow-wrap:anywhere}
.studio-activity-copy small{display:block;font-size:10px;color:#7691B1;margin-top:3px}
.studio-activity-arrow{color:#368AF1}
.studio-quick-star{font-size:25px;color:#468FEF}
.studio-shortcuts{display:grid;grid-template-columns:1fr;gap:8px}
.studio-shortcuts button{
 display:flex;align-items:center;gap:12px;text-align:left;padding:10px 12px;border:1px solid #DCE9FD;
 border-radius:13px;background:linear-gradient(100deg,#F5FAFF,#FFF);color:#285689;font-weight:670;font-size:11px;
 transition:background .2s,transform .2s
}
.studio-shortcuts button:hover{transform:translateX(3px);background:#EAF5FF}
.studio-shortcuts svg{width:18px;height:18px;fill:none;stroke:#197CFF;stroke-width:1.8}
.studio-shortcuts button span:nth-child(2){flex:1}
.studio-shortcuts button span:last-child{color:#328AFE;font-size:17px}
.studio-payment-strip{margin-top:15px;padding:14px 16px;border-radius:15px;background:linear-gradient(115deg,#E8F3FF,#F3F9FF);border:1px solid #D6E8FF;display:grid;gap:4px}
.studio-payment-strip span{font-size:10px;color:#5A7FAE}
.studio-payment-strip strong{font-size:18px;letter-spacing:-.02em;color:#1451B9}
.studio-payment-strip small{font-size:9px;color:#7B97B8}
.studio-dashboard-note{font-size:10px;line-height:1.6;color:#7992B5;margin:20px 3px 8px}
.studio-dashboard-note span{padding:0 5px;color:#9FB8D6}

/* Glass system for existing secondary controls */
body.portal-live .btn:not(.primary):not(.dark),body.portal-live .icon-button{
 background:rgba(255,255,255,.67)!important;
 border:1px solid rgba(140,189,251,.37)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.91),0 7px 17px rgba(30,92,178,.075)!important;
 backdrop-filter:blur(20px) saturate(160%);
 -webkit-backdrop-filter:blur(20px) saturate(160%);
}
body.portal-live .btn:not(.primary):not(.dark):hover{background:#ECF6FF!important;border-color:#8CC2FF!important}
body.portal-live .btn.primary,body.portal-live .btn.dark{background:linear-gradient(130deg,#176DFF,#1653DC)!important;box-shadow:0 8px 24px rgba(24,102,231,.22)!important}
.auth-screen{background:radial-gradient(circle at 24% 15%,rgba(53,191,255,.24),transparent 45%),radial-gradient(circle at 96% 78%,rgba(68,106,255,.16),transparent 48%),#F4F8FF!important}
.auth-box{border:1px solid rgba(146,190,255,.34)!important;box-shadow:0 27px 70px rgba(25,84,181,.12)!important;border-radius:25px!important}
.auth-mark{background:#070A11!important;box-shadow:0 14px 30px rgba(20,85,178,.20),0 0 0 5px rgba(67,161,255,.08);border-radius:16px!important}
.auth-mark img{border-radius:13px}
.auth-box h1{color:#0C3177!important}
.auth-submit{background:linear-gradient(120deg,#197FFF,#1858E7)!important;border:0!important;color:#FFF!important;box-shadow:0 12px 24px rgba(21,94,236,.2)!important}
.auth-box input:focus{border-color:#238CFF!important;box-shadow:0 0 0 3px rgba(31,132,255,.12)!important}

/* Intro branding — shown once when the portal document loads */
.studio-splash{
 position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;
 flex-direction:column;gap:17px;background:radial-gradient(circle at 50% 45%,#0D3D8D 0%,#07162E 54%,#040B16 100%);
 color:#FFF;opacity:1;visibility:visible;transition:opacity .42s ease,visibility .42s ease;
}
.studio-splash::before{content:"";position:absolute;width:280px;height:280px;left:50%;top:50%;transform:translate(-50%,-55%);border-radius:50%;background:#2385FF;filter:blur(100px);opacity:.37;pointer-events:none}
.studio-splash img{position:relative;width:100px;height:100px;border-radius:23px;box-shadow:0 0 50px rgba(48,157,255,.28);animation:studioMarkEnter .65s ease-out both}
.studio-splash>span{position:relative;font-size:13px;letter-spacing:.32em;font-weight:800;animation:studioMarkEnter .75s ease-out .1s both}
.studio-splash>span em{font-style:normal;color:#91DFFF}
.studio-splash>small{color:#819FC9;letter-spacing:.23em;font-size:9px;animation:studioMarkEnter .8s ease-out .2s both}
.studio-splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none}

@keyframes studioMarkEnter{from{opacity:0;transform:translateY(15px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes studioWave{0%,100%{transform:scaleY(.48)}50%{transform:scaleY(1)}}
@keyframes studioBreath{0%,100%{opacity:1;box-shadow:0 0 5px #4BFFE9}50%{opacity:.65;box-shadow:0 0 18px #4BFFE9}}
@media(max-width:1180px){.studio-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:920px){
 body.portal-live .content{padding:21px 17px 42px!important}
 .studio-hero{grid-template-columns:minmax(0,1fr) minmax(165px,.6fr);padding:25px;gap:15px}
 .studio-hero-top{margin-bottom:25px}
 .studio-hero-title{font-size:32px}
 .studio-metric{min-height:139px}
 .studio-dashboard-lower{grid-template-columns:1fr 1fr}
 .topbar{background:rgba(242,248,255,.83)!important;border-color:rgba(104,168,249,.28)!important}
}
@media(max-width:680px){
 .studio-hero{grid-template-columns:1fr;padding:24px 21px 20px;border-radius:22px;gap:19px}
 .studio-hero-top{margin-bottom:23px}
 .studio-hero-title{font-size:clamp(28px,7vw,35px)}
 .studio-hero-description{font-size:12px;margin:12px 0 21px!important}
 .studio-hero-streak{transform:scale(.75);transform-origin:bottom right}
 .studio-hero-actions{gap:8px}
 .studio-action{min-height:42px;padding:9px 12px}
 .studio-pulse{padding:14px 16px;border-radius:16px;display:grid;grid-template-columns:1fr 1fr;column-gap:18px}
 .studio-pulse-top{grid-column:1/-1}
 .studio-pulse-value{font-size:32px;margin:12px 0 0}
 .studio-pulse-value small{font-size:10px;margin-top:7px}
 .studio-pulse-track{align-self:end;margin-bottom:7px}
 .studio-pulse-bottom{grid-column:1/-1;margin-top:10px}
 .studio-section-intro{margin-top:25px}
 .studio-section-intro h2{font-size:20px}
 .studio-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .studio-metric{min-height:134px;padding:14px!important;border-radius:17px}
 .studio-metric-title{font-size:10px}
 .studio-metric-icon{width:28px;height:28px}
 .studio-metric-icon svg{width:15px;height:15px}
 .studio-metric-number{font-size:25px}
 .studio-metric-footer{font-size:9px}
 .studio-dashboard-lower{grid-template-columns:1fr;gap:12px;margin-top:14px}
 .studio-panel{padding:18px;border-radius:19px}
 .studio-activity-empty{padding:18px 12px}
 .studio-shortcuts{grid-template-columns:1fr}
 .mobile-location{padding:8px 15px!important;min-height:34px}
 .mobile-brand-lockup img{width:33px;height:33px;flex-basis:33px}
 .top-actions .avatar{border-radius:13px!important}
}
@media(max-width:400px){
 .topbar{padding:0 10px!important}
 .mobile-brand-lockup{gap:6px}
 .mobile-brand-lockup b{font-size:9px;letter-spacing:.04em}
 .mobile-brand-lockup small{font-size:9px}
 .studio-hero-status{font-size:8px;padding:8px 9px}
 .studio-eyebrow{font-size:9px}
 .studio-metric{min-height:124px;padding:12px!important}
 .studio-metric-number{font-size:22px}
 .studio-hero-streak{display:none}
}
@media(prefers-reduced-motion:reduce){
 .studio-hero-streak span,.studio-live-dot,.studio-splash img,.studio-splash>span,.studio-splash>small{animation:none!important}
 .studio-action,.studio-metric,.studio-shortcuts button,.studio-splash{transition:none!important}
}

/* Self-registration and creator approval controls — Studio electric blue */
.studio-register-box,.studio-pending-box{max-width:510px!important}
.studio-register-box #auth-form{display:grid;gap:13px}
.studio-register-box label{display:grid;gap:7px}
.studio-registration-otp{display:flex;align-items:center;gap:12px;justify-content:space-between}
.studio-registration-otp button{flex:1}
.studio-register-link{display:block!important;margin:16px auto 0!important;color:#166BEB!important;text-align:center;font-weight:750!important}
.studio-verified{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:#1769EA;border:1px solid #A4CFFF;background:#EAF5FF;font-size:25px;margin:7px 0 15px}
.studio-pending-mail{overflow-wrap:anywhere;background:#F0F7FF;border:1px solid #D2E5FF;border-radius:12px;color:#1C5AB5;padding:13px 16px;margin:18px 0}
.studio-pending-box .text-link{display:block;margin:15px auto 0}
.studio-awaiting-banner{display:flex;gap:15px;align-items:center;background:linear-gradient(105deg,#E5F3FF,#F7FBFF);border:1px solid #B6D7FF;border-radius:18px;padding:18px 20px;margin:16px 0 22px}
.studio-awaiting-count{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:14px;background:#1D6DF0;color:#FFF;font-weight:800;font-size:22px;box-shadow:0 7px 19px rgba(18,86,208,.18)}
.studio-awaiting-banner>div{flex:1}
.studio-awaiting-banner b{color:#1D4F98;font-size:14px}
.studio-awaiting-banner p{margin:5px 0 0;color:#6591C1;font-size:11px;line-height:1.45}
.studio-creator-editor{scroll-margin-top:110px}
.studio-unassigned{color:#91A3BA;font-size:11px}
.studio-mapped{font-weight:780;color:#185FCA;font-size:11px}
.studio-pending-pill{color:#145CBF!important;background:#E3F0FF!important;border:1px solid #B3D6FF}
@media(max-width:720px){
 .studio-register-box,.studio-pending-box{padding:25px!important}
 .studio-awaiting-banner{flex-wrap:wrap;padding:14px;gap:10px}
 .studio-awaiting-banner>div{min-width:calc(100% - 60px)}
 .studio-awaiting-banner button{width:100%}
 .studio-creator-editor button.btn.primary{width:100%}
}

/* NOCTILUPUS STUDIO — media preview gallery v1 */
.studio-gallery{padding:4px 0 38px}
.studio-gallery-head{display:flex;align-items:end;justify-content:space-between;gap:17px;flex-wrap:wrap;margin:12px 0 16px}
.studio-gallery-head h2{margin:4px 0 0!important;color:#17345F;font-size:23px;font-weight:790;letter-spacing:-.045em}
.studio-gallery-head h2 span{font-size:12px;letter-spacing:normal;color:#1769EA;background:#EAF3FF;padding:5px 9px;border-radius:10px;vertical-align:middle;margin-left:4px}
.studio-gallery-head input{width:min(310px,100%);min-height:42px;border:1px solid #D7E5F9;background:rgba(255,255,255,.85);border-radius:13px;padding:10px 15px;color:#214D81;font-size:12px;outline-offset:3px}
.studio-gallery-head input::placeholder{color:#8CA7C5}
.studio-gallery-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:19px}
.studio-gallery-filter{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 13px;background:#FFF;border:1px solid #D9E6F8;color:#5A7CA5;border-radius:999px;font-size:11px;font-weight:730}
.studio-gallery-filter span{display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:7px;color:#6488B1;background:#EDF5FF;font-size:10px}
.studio-gallery-filter.current{background:linear-gradient(125deg,#187DFF,#2053E8);border-color:#2071F4;color:white;box-shadow:0 6px 18px rgba(35,97,230,.17)}
.studio-gallery-filter.current span{color:#FFF;background:rgba(255,255,255,.21)}
.studio-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;align-items:stretch}
.studio-gallery-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #D9E7FA;border-radius:20px;background:#FFF;box-shadow:0 10px 27px rgba(26,82,165,.05);transition:transform .22s,box-shadow .22s,border-color .22s}
.studio-gallery-card:hover{transform:translateY(-2px);border-color:#A9D0FF;box-shadow:0 15px 34px rgba(25,94,188,.12)}
.studio-gallery-card[hidden]{display:none!important}
.studio-gallery-visual{position:relative;width:100%;aspect-ratio:16/10;border:0;background:linear-gradient(135deg,#DDEBFF,#F2F8FF);border-radius:0;overflow:hidden;padding:0;cursor:zoom-in}
.studio-gallery-visual:disabled{cursor:default;opacity:1}
.studio-gallery-visual>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .32s}
.studio-gallery-visual:hover:not(:disabled)>img{transform:scale(1.05)}
.studio-gallery-fallback{display:grid;place-items:center;width:100%;height:100%;color:#718FB8;font-size:12px}
.studio-gallery-fallback[hidden],.studio-gallery-viewer-fallback[hidden],.studio-gallery-empty[hidden]{display:none!important}
.studio-gallery-visual>img[hidden],.studio-gallery-viewer-stage>img[hidden]{display:none!important}
.studio-gallery-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;height:100%;color:#3972B0;background:radial-gradient(circle at 45% 35%,#D9EBFF,#EEF6FF)}
.studio-gallery-placeholder svg{width:35px;height:35px;stroke:currentColor;fill:none;stroke-width:1.5}
.studio-gallery-placeholder strong{font-size:11px;font-weight:850;letter-spacing:.13em}
.studio-gallery-placeholder--video{color:#D9ECFF;background:radial-gradient(circle at 40% 26%,#2464AF,#071C43)}
.studio-gallery-play{display:grid;place-items:center;width:54px;height:54px;box-sizing:border-box;padding-left:4px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.42);border-radius:50%;font-size:23px;color:#FFF}
.studio-gallery-ext{position:absolute;top:12px;left:12px;padding:6px 9px;background:rgba(5,21,54,.65);color:#FFF;border-radius:8px;font-size:9px;font-weight:800;letter-spacing:.09em;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.studio-gallery-content{display:flex;flex:1;flex-direction:column;gap:9px;padding:16px}
.studio-gallery-content h3{margin:0;color:#193965;font-size:13px;font-weight:750;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.studio-gallery-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#728BAA;font-size:11px}
.studio-gallery-meta span:first-child{font-weight:650;color:#4F73A2}
.studio-gallery-date{font-size:10px;color:#93A9C4}
.studio-gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #EAF1FB;padding-top:12px;margin-top:auto}
.studio-gallery-status{min-width:0;flex:1}
.studio-gallery-status select{width:100%;max-width:180px;min-height:34px;padding:6px 9px;border:1px solid #D7E7FC;border-radius:9px;background:#F6FAFF;color:#31629C;font-size:11px}
.studio-gallery-badge{padding:7px 9px;background:#EFF6FF;color:#3979BC;border:1px solid #D8E7FB;border-radius:9px;font-size:10px;font-weight:700}
.studio-gallery-download{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:8px 11px;background:#EFF7FF;border:1px solid #C9DFFF;color:#1666D8;border-radius:9px;text-decoration:none;font-size:11px;font-weight:750}
.studio-gallery-download:hover{background:#E1F0FF}
.studio-gallery-sr{position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap}
.studio-gallery-empty{margin-top:12px;padding:38px 18px;border:1px dashed #C2D8F4;background:#F6FAFF;border-radius:18px;color:#7493BA;text-align:center;font-size:12px}
.studio-gallery-viewer{position:fixed;inset:0;box-sizing:border-box;width:min(950px,calc(100vw - 32px));max-width:950px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #6489C9;border-radius:20px;background:#F6FAFF;color:#1B4078;overflow:auto;box-shadow:0 30px 90px rgba(0,15,47,.36)}
.studio-gallery-viewer::backdrop{background:rgba(5,14,34,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.studio-gallery-viewer-panel{min-width:0}
.studio-gallery-viewer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #DFE9F9;padding:17px 20px}
.studio-gallery-viewer-header>div{min-width:0}
.studio-gallery-viewer-header span{font-size:10px;color:#377DD8;letter-spacing:.17em;font-weight:800}
.studio-gallery-viewer-header h2{font-size:16px;line-height:1.4;overflow-wrap:anywhere;margin:5px 0;color:#193D77}
.studio-gallery-viewer-header p{font-size:11px;color:#708FB9;margin:0}
.studio-gallery-viewer-header button{width:39px;height:39px;flex:none;border:1px solid #D5E6FD;border-radius:12px;background:#EEF6FF;color:#2464B6;font-size:25px}
.studio-gallery-viewer-stage{display:flex;align-items:center;justify-content:center;min-height:200px;max-height:calc(100dvh - 200px);padding:15px;background:radial-gradient(circle at 50% 45%,#173B77,#071A35)}
.studio-gallery-viewer-stage>img,.studio-gallery-viewer-stage>video{display:block;max-width:100%;max-height:calc(100dvh - 236px);object-fit:contain;border-radius:8px}
.studio-gallery-viewer-stage>video{width:100%;max-width:830px}
.studio-gallery-viewer-fallback{font-size:12px;color:#D3EAFF}
.studio-gallery-viewer-panel footer{display:flex;justify-content:flex-end;padding:15px 18px}
.studio-gallery-viewer-panel footer a{display:inline-flex;padding:10px 15px;background:#EAF4FF;color:#1E65C8;text-decoration:none;border:1px solid #C6DFFF;border-radius:10px;font-size:12px;font-weight:750}
@media(min-width:1600px){.studio-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1190px){.studio-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .studio-gallery-head{align-items:stretch;gap:13px}
 .studio-gallery-head h2{font-size:21px}
 .studio-gallery-head input{width:100%}
 .studio-gallery-filters{gap:7px;margin-bottom:14px}
 .studio-gallery-filter{font-size:10px;min-height:36px;padding:6px 10px}
 .studio-gallery-grid{grid-template-columns:1fr;gap:13px}
 .studio-gallery-card{border-radius:18px}
 .studio-gallery-visual{aspect-ratio:16/9}
 .studio-gallery-content{padding:14px 15px}
 .studio-gallery-viewer{width:calc(100vw - 16px);max-height:calc(100dvh - 18px);border-radius:16px}
 .studio-gallery-viewer-header{padding:13px 15px}
 .studio-gallery-viewer-stage{max-height:calc(100dvh - 172px);padding:10px}
 .studio-gallery-viewer-stage>img,.studio-gallery-viewer-stage>video{max-height:calc(100dvh - 215px)}
}
@media(prefers-reduced-motion:reduce){.studio-gallery-card,.studio-gallery-visual>img{transition:none!important}}


/* Admin-only media library: filtering and ZIP selection, isolated from creator UI */
.studio-admin-gallery .studio-admin-tools{
 margin:0 0 21px;padding:19px 20px 16px;border:1px solid #D3E4FA;border-radius:20px;
 background:linear-gradient(118deg,rgba(238,246,255,.9),rgba(255,255,255,.94));
 box-shadow:inset 0 1px 0 #FFF,0 8px 25px rgba(16,81,182,.035)
}
.studio-admin-gallery .studio-admin-tools-head{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:14px}
.studio-admin-gallery .studio-admin-tools-head>span{font-size:10px;font-weight:800;color:#3373C7;letter-spacing:.15em}
.studio-admin-gallery .studio-admin-tools-head button{border:none;padding:6px 0;background:transparent;font-size:11px;color:#176BEA;font-weight:680}
.studio-admin-gallery .studio-admin-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.studio-admin-gallery .studio-admin-filters label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:11px;font-weight:700;color:#58789F}
.studio-admin-gallery .studio-admin-filters select,
.studio-admin-gallery .studio-admin-filters input[type=date]{
 width:100%;min-width:0;min-height:40px;padding:8px 11px;border:1px solid #CEDFF6;
 border-radius:11px;background:#FFF;color:#274F87;font-size:12px;font-weight:570;
 outline-color:#377FFF;color-scheme:light
}
.studio-admin-gallery .studio-admin-bulk{
 display:flex;justify-content:space-between;align-items:center;gap:16px;
 padding-top:16px;margin-top:17px;border-top:1px solid #DCE9FA
}
.studio-admin-gallery .studio-admin-bulk-left{display:flex;align-items:center;flex-wrap:wrap;gap:11px}
.studio-admin-gallery #studioAdminSelectedCount{font-size:12px;font-weight:800;color:#2155A8}
.studio-admin-gallery .studio-admin-bulk-left button{
 border:1px solid #CADFFA;border-radius:9px;background:#FFF;
 color:#1E67D8;padding:9px 11px;font-size:11px;font-weight:680
}
.studio-admin-gallery .studio-admin-bulk-left button:hover{background:#E5F2FF}
.studio-admin-gallery .studio-admin-download{
 display:inline-flex;align-items:center;justify-content:center;flex:none;
 min-height:41px;padding:11px 17px;border-radius:11px;
 border:1px solid #0D65E6;background:linear-gradient(130deg,#147FFF,#2054E7);
 color:#FFF;box-shadow:0 7px 19px rgba(33,100,210,.18);font-size:12px;font-weight:760
}
.studio-admin-gallery .studio-admin-download:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}
.studio-admin-gallery .studio-admin-bulk-status{min-height:0;margin:7px 0 0;color:#5D80B3;font-size:11px;line-height:1.5}
.studio-admin-gallery .studio-gallery-card{position:relative}
.studio-admin-gallery .studio-gallery-select{
 position:absolute;z-index:3;top:11px;right:11px;width:40px;height:40px;
 display:grid;place-items:center;border-radius:12px;
 border:1px solid rgba(255,255,255,.8);background:rgba(245,250,255,.88);
 box-shadow:0 4px 14px rgba(4,32,83,.18);cursor:pointer;
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.studio-admin-gallery .studio-gallery-select input{
 position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:1
}
.studio-admin-gallery .studio-gallery-select span{
 width:20px;height:20px;display:grid;place-items:center;border:2px solid #5793E4;
 border-radius:6px;color:transparent;background:#FFF;transition:background .16s,color .16s
}
.studio-admin-gallery .studio-gallery-select:has(input:checked){background:#E6F2FF;border-color:#95C8FF}
.studio-admin-gallery .studio-gallery-select input:checked+span{
 background:#176CFF;border-color:#176CFF;color:white
}
.studio-admin-gallery .studio-gallery-select:has(input:focus-visible){outline:3px solid #4BA8FF;outline-offset:3px}
@media(max-width:1150px){
 .studio-admin-gallery .studio-admin-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 .studio-admin-gallery .studio-admin-tools{padding:15px 13px;border-radius:17px}
 .studio-admin-gallery .studio-admin-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .studio-admin-gallery .studio-admin-filters label:last-child{grid-column:1/-1}
 .studio-admin-gallery .studio-admin-bulk{flex-direction:column;align-items:stretch;gap:12px}
 .studio-admin-gallery .studio-admin-bulk-left{gap:8px}
 .studio-admin-gallery .studio-admin-bulk-left>span{width:100%}
 .studio-admin-gallery .studio-admin-download{width:100%}
 .studio-admin-gallery .studio-gallery-select{width:42px;height:42px}
}
@media(max-width:400px){
 .studio-admin-gallery .studio-admin-filters{grid-template-columns:1fr}
 .studio-admin-gallery .studio-admin-filters label:last-child{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
 .studio-admin-gallery .studio-gallery-select span{transition:none}
}
