:root{--bg:#070a10;--surface:#0d121d;--surface-2:#121826;--sidebar:#080b13;--sidebar-soft:#171c2a;--text:#f5f7fb;--muted:#8490a5;--line:#20293a;--primary:#ef2535;--primary-dark:#d91929;--primary-soft:#35151c;--green:#31cf88;--green-soft:#102e24;--danger:#ff5b69;--danger-soft:#32151b;--radius:13px}
body{background:radial-gradient(circle at 72% 0,#101832 0,transparent 35%),var(--bg)}
body:after{content:"";position:fixed;z-index:100;top:0;left:0;width:0;height:2px;background:linear-gradient(90deg,var(--primary),#ffad0a);opacity:0;transition:opacity .12s,width .2s;pointer-events:none}body.route-loading:after{width:68%;opacity:1}
.shiba-mascot{position:fixed;z-index:8;right:18px;bottom:12px;width:clamp(105px,12vw,165px);height:auto;display:block;pointer-events:none;user-select:none;filter:drop-shadow(0 10px 18px #0008)}
.tabby-mascot{position:fixed;z-index:12;left:34px;bottom:72px;width:clamp(100px,11vw,155px);height:auto;display:block;pointer-events:none;user-select:none;filter:drop-shadow(0 10px 18px #0008)}
@media(max-width:760px){.tabby-mascot{display:none}}
.production-v2.app-layout{grid-template-columns:226px minmax(0,1fr)}
.production-v2 .sidebar{width:226px;padding:24px 14px 16px;background:#080b13e8;border-right:1px solid var(--line);backdrop-filter:blur(16px)}
.production-v2 .brand{gap:10px;padding:0 9px 29px;font-size:14px;letter-spacing:0}
.production-v2 .brand-mark{width:42px;height:42px;display:grid;place-items:center;border:1px solid #43242a;border-radius:13px;background:linear-gradient(145deg,#25151a,#10141c)}
.production-v2 .brand-logo{width:34px;height:34px}
.production-v2 .brand strong,.production-v2 .brand small{display:block}.production-v2 .brand small{margin-top:3px;color:#778297;font-size:9px;letter-spacing:1.1px}
.production-v2 .nav-label{padding:0 11px 9px;color:#5e6a80;font-size:9px}
.production-v2 .nav-link{min-height:43px;padding:10px 12px;border:1px solid transparent;border-radius:10px;font-size:12px}.production-v2 .nav-link.active{border-color:#3b2933;box-shadow:inset 3px 0 var(--primary)}
.production-v2 .storage-note{margin:18px 4px 14px;padding:13px;background:#0d121e;border-color:var(--line);line-height:1.4}.production-v2 .storage-note div{display:flex;justify-content:space-between;gap:8px}.production-v2 .storage-note strong{font-size:10px}.production-v2 .storage-note span,.production-v2 .storage-note small{color:#6f7b90;font-size:8px}.production-v2 .storage-note i{display:block;height:4px;margin:9px 0;border-radius:3px;background:linear-gradient(90deg,var(--primary) 0 18%,#1b2332 18%)}
.production-v2 .sidebar-user{padding-top:12px}.production-v2 .main{grid-column:2;padding:0 28px 50px}.production-v2 .studio-topbar{display:none}.production-v2 .mobile-brand{display:none}
.dashboard-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:28px 2px 22px}.dashboard-intro p{margin:0 0 7px;color:#8d98ac;font-size:10px}.dashboard-intro h1{margin:0 0 5px;font-size:29px;letter-spacing:-1px}.dashboard-intro>div>span{color:var(--muted);font-size:11px}.dashboard-intro .button{background:linear-gradient(135deg,#f02c3b,#d81728);box-shadow:0 8px 28px #cd10292b}
.dashboard-stats{gap:13px;margin-bottom:17px}.dashboard-stats .stat{min-height:101px;padding:16px;background:linear-gradient(145deg,#111725,#0d121d);border-color:var(--line)}.dashboard-stats .stat-copy span{font-size:10px}.dashboard-stats .stat-copy strong{margin:2px 0;font-size:21px}.dashboard-stats .stat-copy small{color:#5f6c81;font-size:8px}
.dashboard-content{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:15px}.library-panel,.recent-panel{border:1px solid var(--line);border-radius:15px;background:#0b101acc}.library-panel{min-width:0;overflow:hidden;padding:17px}.library-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.library-head h2{margin:3px 0 0;font-size:17px}.product-search{height:34px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:#090e17;color:#707d92}.product-search svg{width:14px}.product-search input{width:145px;border:0;outline:0;background:none;color:#fff;font-size:9px}.library-tabs{height:45px;display:flex;align-items:flex-end;margin:7px -17px 0;padding:0 17px;border-bottom:1px solid var(--line)}.library-tabs>button{height:37px;padding:0 11px;border:0;border-bottom:2px solid var(--primary);background:none;color:#fff;font-size:10px}.library-tabs button span{margin-left:3px;color:#69768b}.selection-inline{display:none;align-items:center;gap:6px;margin:0 0 8px auto;color:#8490a4;font-size:9px}.selection-inline.show{display:flex}.selection-inline a{display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #4b2b34;border-radius:7px;background:#241219;color:#ff8995;text-decoration:none}.selection-inline svg{width:12px}
.production-v2 .product-months{gap:21px;padding-top:17px}.production-v2 .month-head{margin-bottom:10px}.production-v2 .month-head h2{font-size:11px}.production-v2 .month-head>span{font-size:8px}.production-v2 .month-dot{width:6px;height:6px;background:var(--primary);box-shadow:0 0 0 4px #3b161d}.production-v2 .grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px}.production-v2 .product-card-wrap{position:relative;border-radius:11px;background:#101622}.production-v2 .product-selector{position:absolute;z-index:3;top:8px;left:8px;width:19px;min-height:19px;padding:0;border:0;background:none}.production-v2 .product-selector>span:last-child{display:none}.production-v2 .checkmark{width:19px;height:19px;border-radius:5px;background:#090d15dc;font-size:9px}.production-v2 .product-card{border:0;border-radius:0}.production-v2 .card-image{margin:0;border-radius:0}.production-v2 .banner{height:108px;aspect-ratio:auto}.production-v2 .file-pill{right:7px;bottom:7px;padding:3px 6px;border-radius:5px;font-size:8px}.production-v2 .card-body{padding:10px}.card-title-row{display:flex;align-items:center;gap:6px}.card-title-row h3{min-width:0;flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.card-title-row>span{color:#45d595;font-size:7px}.production-v2 .card-body>p{overflow:hidden;margin:5px 0 9px;color:#728096;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.production-v2 .card-meta{display:grid;grid-template-columns:minmax(70px,1fr) auto;gap:7px;padding-top:8px;border-top:1px solid #202838}.production-v2 .card-author{justify-content:flex-start;text-align:left}.production-v2 .card-author .avatar{width:22px;height:22px;border-radius:7px}.production-v2 .card-author strong,.card-date time{font-size:8px}.production-v2 .card-author small,.card-date small{color:#647187;font-size:7px}.production-v2 .card-date{display:grid;gap:1px;text-align:right}.production-v2 .card-meta>.meta{display:none}
.recent-panel{align-self:start;padding:15px}.recent-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--line)}.recent-head h3{margin:0;font-size:12px}.recent-head span{min-width:20px;padding:3px 6px;border-radius:10px;background:#1b2331;color:#8894a8;text-align:center;font-size:8px}.recent-panel>a{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #1b2433;color:#fff;text-decoration:none}.recent-panel>a .avatar{width:28px;height:28px;border-radius:8px}.recent-panel>a div{min-width:0;flex:1}.recent-panel>a strong,.recent-panel>a span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-panel>a strong{font-size:9px}.recent-panel>a span{margin-top:3px;color:#637086;font-size:7px}.recent-panel>a b{min-width:20px;padding:4px;border-radius:7px;background:#171e2b;color:#8692a6;text-align:center;font-size:8px}.studio-tip{display:flex;gap:7px;margin-top:13px;padding:10px;border:1px solid #392e1c;border-radius:9px;background:#17130d;color:#778398;font-size:8px}.studio-tip strong{display:block;color:#d9dee7;margin-bottom:2px}.recent-empty{padding:30px 0;color:#68758b;text-align:center;font-size:9px}
.production-v2 .breadcrumb-row{margin:17px 0 12px}.production-v2 .breadcrumb{font-size:9px}.product-header-v2{height:auto;min-height:144px;grid-template-columns:210px minmax(0,1fr) auto;margin-bottom:13px;padding:13px;background:linear-gradient(135deg,#111724,#0c111c)}.product-header-v2 .product-cover{height:118px;border-radius:10px}.product-header-v2 .product-info{padding:0}.product-header-v2 .product-info h1{margin:3px 0 6px;font-size:24px}.product-header-v2 .product-info p{margin-bottom:9px;font-size:10px}.product-header-v2 .product-facts{margin:0}.product-header-v2 .fact{padding:5px 8px;font-size:8px}.header-actions{display:flex;align-items:center;gap:7px}.header-actions .button{min-height:36px;padding:0 12px;font-size:9px}
.workspace-v2{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:13px;margin-bottom:0}.workspace-v2 .files-panel{min-width:0;grid-column:1;grid-row:1;padding:0;overflow:hidden}.workspace-v2 .files-head{height:64px;padding:0 14px}.workspace-v2 .files-head h2{margin:3px 0 0;font-size:15px}.workspace-v2 .files-head>.meta{font-size:8px}.workspace-v2 .file-browser-path{min-height:38px;padding:7px 13px;background:#090e17}.workspace-v2 .file-browser-path button,.workspace-v2 .file-browser-path span{font-size:8px}.workspace-v2 .file-row{grid-template-columns:minmax(210px,1.5fr) 75px minmax(90px,.55fr) 104px;min-height:50px;padding:8px 13px}.workspace-v2 .file-icon{width:30px;height:30px;border-radius:8px}.workspace-v2 .file-name{font-size:9px}.workspace-v2 .file-sub,.workspace-v2 .file-size,.workspace-v2 .uploader{font-size:8px}.workspace-v2 .actions .button{width:30px;min-height:30px}.product-side{display:grid;align-content:start;gap:13px}.workspace-v2 .upload-panel{padding:13px}.workspace-v2 .panel-title h2{font-size:12px}.workspace-v2 .panel-title p{font-size:8px}.workspace-v2 .update-note{margin-top:11px}.workspace-v2 .update-note label{font-size:8px}.workspace-v2 .update-note textarea{min-height:60px;padding:9px;font-size:8px}.workspace-v2 .dropzone{min-height:145px;margin-top:10px;padding:12px}.workspace-v2 .upload-icon{width:34px;height:34px;margin-bottom:7px}.workspace-v2 .dropzone strong{font-size:10px}.workspace-v2 .dropzone span{font-size:8px;line-height:1.5}.workspace-v2 .picker-actions{margin:8px 0 7px}.workspace-v2 .picker-actions .button{min-height:30px;font-size:8px}.compact-history{margin:0;padding:13px}.compact-history .history-head{padding:0 0 9px}.compact-history .history-head h2{font-size:12px}.compact-history .timeline-item{grid-template-columns:27px minmax(0,1fr);gap:7px;padding:11px 0}.compact-history .timeline-avatar .avatar{width:25px;height:25px;border-radius:7px}.compact-history .timeline-top{display:block;font-size:8px}.compact-history .timeline-top time{display:block;margin-top:3px;font-size:7px}.compact-history .timeline-content p{margin:5px 0;font-size:8px}.compact-history .history-files{gap:3px}.compact-history .history-files span{max-width:100%;padding:3px 5px;font-size:7px}.compact-history .history-files svg{width:10px;height:10px}
.production-v2 .admin-top{padding-top:26px}.production-v2 .admin-layout{margin-top:0}
@media(max-width:1150px){.dashboard-content{grid-template-columns:1fr}.recent-panel{display:none}.workspace-v2{grid-template-columns:1fr}.product-side{grid-template-columns:1fr 1fr}.product-header-v2{grid-template-columns:180px minmax(0,1fr)}.header-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:760px){.shiba-mascot{display:none}.production-v2.app-layout{display:block}.production-v2 .sidebar{display:none}.production-v2 .main{padding:0 14px 35px}.production-v2 .studio-topbar{height:52px;display:flex;align-items:center;border-bottom:1px solid #172033}.production-v2 .mobile-brand{display:block}.production-v2 .mobile-brand img{width:34px;height:34px;object-fit:contain}.dashboard-intro{padding-top:20px}.dashboard-intro h1{font-size:24px}.dashboard-intro .button{width:40px;padding:0;font-size:0}.dashboard-intro .button svg{margin:0}.dashboard-stats{grid-template-columns:1fr}.dashboard-stats .stat{min-height:82px}.library-head{align-items:flex-start;flex-direction:column}.product-search,.product-search input{width:100%}.production-v2 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.production-v2 .banner{height:90px}.card-title-row>span,.production-v2 .card-body>p,.card-date{display:none}.product-header-v2{grid-template-columns:1fr}.product-header-v2 .product-cover{height:160px}.header-actions{justify-content:stretch}.header-actions .button{flex:1}.product-side{grid-template-columns:1fr}.workspace-v2 .file-row{grid-template-columns:minmax(0,1fr) auto}.workspace-v2 .file-size,.workspace-v2 .uploader{display:none}.workspace-v2 .actions{display:flex}.workspace-v2 .folder-open{display:none}}
@media(max-width:430px){.production-v2 .grid{grid-template-columns:1fr}.production-v2 .banner{height:130px}}

/* Product workspace: upload is the primary action, product summary stays compact. */
.product-header-v2{position:relative;isolation:isolate;overflow:hidden;min-height:108px;grid-template-columns:125px minmax(0,1fr);padding:10px}
.product-header-v2:before{content:"";position:absolute;z-index:-1;inset:-35px;background:linear-gradient(90deg,#0f1521 12%,#0d131fee 48%,#0d131ffa),var(--product-banner) center/cover;filter:blur(18px);opacity:.4}
.product-header-v2 .product-cover{height:86px;border-radius:9px}
.product-header-v2 .product-info h1{margin:2px 0 4px;font-size:18px}
.product-title-line{display:flex;align-items:center;gap:10px}.rename-product{min-width:82px;height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;border:1px solid #71313b;border-radius:9px;background:linear-gradient(135deg,#35171e,#25141a);color:#ff7a86;font-size:9px;font-weight:800;box-shadow:0 6px 18px #0005,0 0 0 2px #ef25350d;cursor:pointer;transition:.18s ease}.rename-product:after{content:"Đổi tên"}.rename-product:hover{border-color:#ef4050;background:linear-gradient(135deg,#4a1a23,#31151c);color:#fff;box-shadow:0 8px 24px #ef25352b}.rename-product:focus-visible{outline:2px solid #ff6b78;outline-offset:2px}.rename-product svg{width:14px;height:14px}.rename-modal{width:100%}
.product-header-v2 .product-info p{max-width:720px;overflow:hidden;margin-bottom:7px;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.product-header-v2 .fact{padding:4px 7px;font-size:7px}
.files-head-actions{display:flex;align-items:center;gap:10px}.files-head-actions .button{min-height:31px;font-size:8px}.files-head-actions .button svg{width:13px}
.step-number{width:18px;height:18px;display:inline-grid;place-items:center;margin-right:6px;border-radius:6px;background:#3a161e;color:#ff6472;font-size:8px}.workspace-v2 .dropzone strong{display:flex;align-items:center;justify-content:center}.workspace-v2 #pick-files{border-color:var(--primary);background:var(--primary);color:#fff}.workspace-v2 #pick-files:hover{background:var(--primary-dark)}
@media(min-width:901px){
  .workspace-v2{display:flex;flex-direction:column;align-items:stretch;gap:13px}
  .workspace-v2 .product-side{order:1;width:100%;display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.72fr);gap:13px}
  .workspace-v2 .files-panel{order:2;width:100%}
  .workspace-v2 .upload-panel{position:relative;top:auto;min-width:0;display:grid;grid-template-columns:minmax(250px,.68fr) minmax(420px,1.32fr);grid-template-rows:auto 1fr auto;column-gap:18px;padding:18px;background:linear-gradient(135deg,#101622,#0c111b)}
  .workspace-v2 .upload-panel .panel-title{grid-column:1;grid-row:1}
  .workspace-v2 .upload-panel .update-note{grid-column:1;grid-row:2;margin-top:13px}
  .workspace-v2 .upload-panel .update-note textarea{height:118px;min-height:118px}
  .workspace-v2 .upload-panel .dropzone{grid-column:2;grid-row:1/3;min-height:220px;margin:0;padding:20px;background:radial-gradient(circle at 50% 15%,#28151d,#111622 58%)}
  .workspace-v2 .upload-panel .upload-icon{width:44px;height:44px;margin-bottom:11px}
  .workspace-v2 .upload-panel .dropzone strong{font-size:13px}
  .workspace-v2 .upload-panel .picker-actions .button{min-width:105px;min-height:34px;font-size:9px}
  .workspace-v2 .upload-panel .queue{grid-column:1/-1;grid-row:3;margin-top:13px}
  .workspace-v2 .compact-history{max-height:258px;overflow:auto;background:linear-gradient(160deg,#101622,#0b1019)}
}
@media(max-width:900px){.product-header-v2{grid-template-columns:100px minmax(0,1fr)}.product-header-v2 .product-cover{height:78px}.workspace-v2{display:flex;flex-direction:column}.workspace-v2 .product-side{order:1;display:flex;flex-direction:column}.workspace-v2 .files-panel{order:2}.files-head-actions>.meta{display:none}}

/* Product selection stays outside the banner and is always visible. */
.production-v2 .product-card-wrap{display:flex;flex-direction:column}
.production-v2 .product-selector{position:static;width:100%;min-height:32px;display:flex;align-items:center;gap:7px;padding:6px 9px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#121824;color:#9aa5b8;cursor:pointer}
.production-v2 .product-selector:hover{background:#181f2d;color:#fff}
.production-v2 .product-selector:after{content:"Chọn để tải";font-size:8px;font-weight:750}
.production-v2 .product-selector.disabled:after{content:"Chưa có file"}
.production-v2 .product-selector .checkmark,.production-v2 .product-selector>span:last-child{width:19px;height:19px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #69758a;border-radius:5px;background:#090d15;color:transparent;font-size:9px}
.production-v2 .product-selector input:checked+.checkmark{border-color:var(--primary);background:var(--primary);color:#fff;box-shadow:0 0 0 3px #ef253526}
.production-v2 .product-card-wrap:has([data-product-select]:checked){border-color:var(--primary);box-shadow:0 0 0 2px #ef25351c,0 10px 28px #0005}
