@charset "UTF-8";
:root{color-scheme:dark;--bg:#080C14;--card:#111A28;--accent:#66F5DC;--secondary:#A692FF;--text:#ECF4FA;--muted:#8393A9;--line:#223044;--danger:#FF929D;--radius:16px;font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:14px;line-height:1.6;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button{color:inherit}svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.35;font-weight:650;letter-spacing:-1px}h2{font-size:19px;font-weight:600;letter-spacing:-.3px}h3{font-size:17px;font-weight:600}small{font-size:12px}strong{font-weight:600}button,input,select,textarea,a{outline-offset:4px}:focus-visible{outline:2px solid var(--accent)}[hidden]{display:none!important}::selection{background:#66f5dc33;color:var(--text)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:12px;left:16px;z-index:100;background:var(--accent);color:var(--bg);padding:12px 18px;border-radius:8px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.accent{color:var(--accent)}.purple-text{color:var(--secondary)}.muted{color:var(--muted);font-size:13px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--muted);margin-bottom:10px}.tiny-dot,.status-dot{width:6px;height:6px;display:inline-block;flex:none;border-radius:50%;background:var(--accent)}.status-dot{background:var(--muted)}.status-dot.good{background:var(--accent);box-shadow:0 0 12px #66f5dc33}.status-dot.bad{background:var(--danger)}.brand{display:flex;align-items:center;gap:12px;width:fit-content}.brand-mark{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border:1px solid #66f5dc40;background:#66f5dc0a;color:var(--accent);font-family:Georgia,serif;font-size:30px;border-radius:12px;line-height:1}.brand strong{display:block;font-size:23px;letter-spacing:2px;line-height:1.2}.brand small{display:block;font-size:10px;letter-spacing:3px;margin-top:5px;color:var(--muted)}.button{border:1px solid transparent;border-radius:9px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:600;min-height:43px;transition:background .18s,border-color .18s,transform .18s;white-space:nowrap}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{background:var(--accent);color:#082720;box-shadow:0 4px 18px #66f5dc0a}.button.primary:hover:not(:disabled){background:#91f9e7}.button.secondary{background:#121d2c;border-color:var(--line);color:var(--text)}.button.secondary:hover:not(:disabled){background:#1a293c;border-color:#34465f}.button.danger{background:#ff929d16;border-color:#ff929d38;color:var(--danger)}.button.danger:hover:not(:disabled){background:#ff929d26}.button svg{width:16px;height:16px}.full-width{width:100%}.button-group{display:flex;gap:10px;align-items:center}.icon-button{width:36px;height:36px;flex:none;display:inline-flex;justify-content:center;align-items:center;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:8px;font-size:25px;line-height:1}.icon-button:hover:not(:disabled){color:var(--text);background:#8393a913}.icon-button svg{width:17px;height:17px}.icon-button.bordered{border-color:var(--line);height:42px;width:42px;background:var(--card)}.text-button{border:0;background:transparent;color:var(--accent);padding:6px 0;font-size:12px;display:inline-flex;align-items:center;gap:9px}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.danger-text{color:var(--danger)}.boot{min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;color:var(--muted)}.boot .brand-mark{width:60px;height:60px;font-size:40px;animation:breathe 2s infinite}.noscript{padding:32px;text-align:center;color:var(--danger)}
/* Login */
.login-view{min-height:100svh;display:grid;place-items:center;padding:48px 24px;background:radial-gradient(ellipse at 50% 20%,#66f5dc0c,transparent 55%),radial-gradient(ellipse at 85% 90%,#a692ff08,transparent 45%),var(--bg)}
.login-card{width:100%;max-width:400px;padding:40px 36px 36px;border:1px solid #2a3b465e;border-radius:24px;background:linear-gradient(155deg,#13202b,#0e1622 65%);box-shadow:0 24px 80px #0004,inset 0 1px 0 #ffffff04}
.login-heading{display:flex;flex-direction:column;align-items:center;gap:18px;margin-bottom:36px}.login-heading .brand-mark{width:56px;height:56px;border-radius:17px;font-size:37px;background:linear-gradient(145deg,#66f5dc14,#66f5dc03);box-shadow:0 0 32px #66f5dc08}.login-heading h1{font-size:25px;line-height:1.2;letter-spacing:4px;font-weight:600;padding-left:4px}
.login-card .field{gap:10px;margin-bottom:22px}.login-card .field input{min-height:50px;padding:12px 14px;border-radius:10px;background:#080f19;font-size:16px}.login-card .password-wrap input{padding-right:70px}.login-card .button{min-height:50px;margin-top:6px;border-radius:10px;font-size:14px;letter-spacing:2px}.login-card .form-error{overflow-wrap:anywhere}
.password-wrap{position:relative}.password-wrap input{padding-right:66px}.password-toggle{position:absolute;right:5px;top:5px;bottom:5px;border:0;background:transparent;color:var(--muted);padding:0 12px;font-size:12px;border-radius:5px}.password-toggle:hover{color:var(--text)}
@media(max-width:440px){.login-view{padding:24px 16px}.login-card{padding:32px 24px 28px;border-radius:20px}.login-heading{margin-bottom:30px}}
/* Workspace shell */
.app{min-height:100svh}.sidebar{width:238px;overflow-y:auto;background:#0c121d;border-right:1px solid #1a2535;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:31px 20px 0;z-index:30}.sidebar>.brand{margin-left:9px}.sidebar>nav{margin-top:32px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 13px;margin-bottom:6px;border:1px solid transparent;border-radius:8px;color:#95a6ba;background:transparent;font-size:13px;text-align:left}.nav-item svg{width:18px;height:18px}.nav-item:hover{color:var(--text);background:#ffffff04}.nav-item.active{color:var(--accent);background:linear-gradient(90deg,#66f5dc15,#66f5dc08);border-color:#66f5dc17}.nav-arrow{margin-left:auto}.nav-item:not(.active) .nav-arrow{display:none}.admin-tag{font-size:8px;color:var(--secondary);padding:1px 4px;border:1px solid #a692ff33;border-radius:4px;margin-left:auto;letter-spacing:.4px}.nav-divider{height:1px;background:#1c2839;margin:23px 10px}.sidebar-bottom{margin-top:auto}.system-note{display:flex;align-items:center;gap:9px;padding:20px 5px;border-bottom:1px solid #1e2a3b}.system-note strong{display:block;font-size:11px;font-weight:400}.system-note small{display:block;font-size:8px;letter-spacing:1.4px;color:var(--muted);margin-top:3px}.system-note .icon-button{margin-left:auto;width:27px}.profile{display:flex;align-items:center;gap:10px;padding:22px 0}.avatar{width:35px;height:35px;flex:none;border-radius:10px;background:#a692ff15;border:1px solid #a692ff28;color:#c5b8ff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600}.profile-copy{min-width:0;flex:1}.profile-copy strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-copy small{display:block;font-size:10px;color:var(--muted);margin-top:1px}.workspace{margin-left:238px;min-width:0}.topbar{height:77px;border-bottom:1px solid #1b2535;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 40px;background:#080c14db}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:12px}.breadcrumb-root,.slash{color:var(--muted)}.breadcrumb strong{font-weight:500}.slash{opacity:.5}.topbar-right{display:flex;align-items:center;gap:20px;font-size:11px;color:var(--muted)}.environment{border:1px solid var(--line);padding:4px 10px;border-radius:5px;font-size:10px;color:#a8b6c8}.mobile-menu{display:none}main{padding:40px;max-width:1600px;margin:auto;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:32px}.page-heading .eyebrow{font-size:9px;margin-bottom:12px}.page-description{color:var(--muted);margin-top:12px;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px}.stat-card{background:linear-gradient(120deg,#142030,var(--card));border:1px solid var(--line);border-radius:var(--radius);padding:23px;position:relative;overflow:hidden}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#a8b7c9;font-size:12px}.stat-top svg{width:18px;height:18px;color:var(--muted)}.stat-card>strong{display:block;font-size:36px;font-weight:500;letter-spacing:-1px;margin:17px 0 8px;line-height:1.2;font-variant-numeric:tabular-nums}.stat-card>strong.word-stat{font-size:24px;line-height:1.8}.stat-card p{font-size:10px;color:var(--muted)}.overview-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.panel-heading .eyebrow{font-size:8px;margin-bottom:7px}.panel-heading h2{font-size:17px}.panel-heading .text-button{white-space:nowrap}.recent-products{min-height:266px}.recent-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #26334688}.recent-row:first-child{padding-top:4px}.recent-row:last-child{border-bottom:0}.recent-thumb{width:52px;height:52px;flex:none;object-fit:cover;border-radius:10px;background:#0c1521;border:1px solid #27354a;display:flex;align-items:center;justify-content:center;color:var(--muted)}.recent-copy{flex:1;min-width:0}.recent-copy strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-copy small{color:var(--muted);font-size:10px;display:block;margin-top:5px}.quick-panel{background:radial-gradient(ellipse at right top,#66f5dc0b,transparent 60%),var(--card)}.quick-panel>h2{font-size:17px}.quick-action{display:flex;align-items:center;gap:12px;width:100%;padding:17px 0;background:transparent;border:0;border-bottom:1px solid #263346;font-size:13px;text-align:left}.quick-action:first-of-type{margin-top:22px}.quick-action>span:nth-child(2){flex:1}.quick-action>span:last-child{color:var(--muted)}.quick-action strong{display:block;font-size:12px}.quick-action:hover strong{color:var(--accent)}.quick-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;color:var(--accent);background:#66f5dc0c;border:1px solid #66f5dc22;border-radius:10px;font-size:23px}.quick-icon.purple{background:#a692ff0c;border-color:#a692ff22;color:var(--secondary)}.quick-icon svg{width:18px;height:18px}
/* Lists */
.toolbar{display:flex;gap:16px;justify-content:space-between;margin:24px 0 18px;align-items:center}.search-field{position:relative;flex:1;max-width:440px}.search-field svg{position:absolute;top:13px;left:13px;width:16px;height:16px;color:var(--muted)}.search-field input{width:100%;padding-left:39px;background:#101925}.toolbar-filters{display:flex;gap:10px;align-items:center}.toolbar-filters select{width:auto;min-width:125px;font-size:12px;min-height:42px}.list-meta{display:flex;justify-content:space-between;gap:16px;margin:0 0 18px;color:var(--muted);font-size:10px}.list-meta>span:last-child{color:#72849c}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--card);min-width:0;transition:border-color .2s,transform .2s;display:flex;flex-direction:column}.product-card:hover{border-color:#3b5365;transform:translateY(-2px)}.product-media{position:relative;aspect-ratio:1.6;background:radial-gradient(ellipse at center,#1b2d3c,#0f1724);border-bottom:1px solid #253043;overflow:hidden;display:flex;align-items:center;justify-content:center}.product-media>img{width:100%;height:100%;object-fit:cover}.product-placeholder{display:flex;flex-direction:column;align-items:center;gap:12px;color:#607389;font-size:11px;letter-spacing:1px}.product-placeholder svg{width:35px;height:35px;opacity:.7}.media-badges{position:absolute;top:13px;left:13px;display:flex;gap:7px}.badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;font-size:10px;border-radius:5px;padding:3px 8px;border:1px solid #8393a933;background:#182332;color:#afbecf;line-height:1.6}.badge.published,.badge.active,.badge.enabled{color:var(--accent);border-color:#66f5dc30;background:#12322f}.badge.featured,.badge.admin{color:#c3b5ff;border-color:#a692ff33;background:#2a2445}.badge.maintenance{color:#efcc89;background:#332c20;border-color:#b38c4b44}.badge.disabled,.badge.retired{color:#a3adbd;background:#202633}.badge.stock{color:#9bc8fa;background:#192b42;border-color:#6c9ac644}.product-body{padding:20px;flex:1}.product-category{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin-bottom:9px;overflow-wrap:anywhere}.product-body h3{overflow-wrap:anywhere}.product-subtitle{font-size:12px;color:#96a8bc;margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.product-id{display:block;margin-top:16px;font-size:10px;color:#72849b;font-family:Consolas,monospace;overflow-wrap:anywhere}.product-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 20px;padding:13px 0;border-top:1px solid var(--line)}.product-footer>span{font-size:10px;color:var(--muted)}.product-footer .button-group{gap:8px}.product-footer .text-button{font-size:11px}.product-footer .icon-button{width:30px;height:30px}.product-footer .icon-button:hover{color:var(--danger);background:#ff929d0d}.empty-state{grid-column:1/-1;border:1px dashed #2c3c50;border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:310px;text-align:center;padding:35px;background:#10192566}.empty-state svg{width:35px;height:35px;color:#647b91;margin-bottom:20px}.empty-state h3{font-size:16px;font-weight:500;margin-bottom:8px}.empty-state p{font-size:12px;color:var(--muted);max-width:360px;line-height:1.9}.empty-state .button{margin-top:20px}.recent-panel .empty-state{min-height:260px;background:transparent;border:none;padding:10px}.loading-state{grid-column:1/-1;padding:70px 24px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:12px}.spinner{width:17px;height:17px;border:2px solid #66f5dc25;border-top-color:var(--accent);border-radius:50%;display:inline-block;animation:spin .8s linear infinite}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}caption{text-align:left;padding:0}th{font-size:10px;color:var(--muted);font-weight:500;padding:15px 20px;background:#0f1825;border-bottom:1px solid var(--line)}td{padding:20px;border-bottom:1px solid #253145;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#ffffff02}.cell-title{display:block;font-size:12px;font-weight:500;max-width:220px;overflow:hidden;text-overflow:ellipsis}.cell-sub{display:block;font-size:10px;color:var(--muted);margin-top:5px;max-width:230px;overflow:hidden;text-overflow:ellipsis}.mono{font-family:Consolas,"SFMono-Regular",monospace;font-size:11px}.table-actions{display:flex;align-items:center;gap:15px}.table-actions button{font-size:11px}.table-user{display:flex;align-items:center;gap:12px}.table-user .avatar{width:32px;height:32px;font-size:12px}.notice{display:flex;align-items:flex-start;gap:11px;background:#12223188;border:1px solid #274059;border-radius:10px;padding:14px 17px;margin-bottom:22px;color:#a4bbd0;font-size:12px;line-height:1.8}.notice svg{width:17px;height:17px;margin-top:2px;color:#89b5d8}.notice strong{color:#c3d5e4}.error-notice{color:var(--danger);background:#ff929d09;border-color:#ff929d33;white-space:pre-line}
/* Product categories */
.category-list{display:grid;gap:14px}.category-card{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);min-width:0}.category-copy{flex:1;min-width:0}.category-copy h2{font-size:16px;overflow-wrap:anywhere}.category-count{color:var(--accent);font-size:12px;margin:6px 0}.category-copy small{display:block;overflow-wrap:anywhere}.category-actions,.category-tools{display:flex;flex-wrap:wrap;gap:18px}.category-reference{flex-basis:100%;border-top:1px solid var(--line);padding-top:12px;font-size:11px}.category-tools .text-button,.category-actions .text-button{min-height:40px}select:disabled{opacity:.6;cursor:not-allowed}#product-category{max-width:100%;text-overflow:ellipsis}#product-category-hint{overflow-wrap:anywhere}
/* Forms and dialogs */
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;min-width:0}.field label{font-size:12px;font-weight:500;color:#c6d3e2}.field small{font-size:10px;color:var(--muted);line-height:1.8}.field input,.field textarea,.field select{width:100%}input,select,textarea{border:1px solid #2a394e;border-radius:8px;background:#0c1521;padding:11px 12px;color:var(--text);min-width:0;transition:border-color .15s,box-shadow .15s}input::placeholder,textarea::placeholder{color:#687b91;font-size:12px}input:focus,select:focus,textarea:focus{border-color:#66f5dc88;box-shadow:0 0 0 3px #66f5dc08}input[readonly]{color:var(--muted);background:#0b131e;border-style:dashed}input:disabled{opacity:.6}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);box-shadow:none}input[type=file]{font-size:10px;max-width:100%;padding:8px}input[type=file]::file-selector-button{border:0;border-radius:5px;background:#233547;color:var(--text);padding:7px 9px;margin-right:8px;cursor:pointer}textarea{resize:vertical;min-height:100px;line-height:1.9}.form-error{padding:11px 13px;border:1px solid #ff929d33;border-radius:8px;color:var(--danger);background:#ff929d08;font-size:12px;white-space:pre-line;margin:12px 0 18px}.form-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:22px;margin-top:26px}.settings-grid{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(350px,1.6fr);gap:24px;max-width:1000px;align-items:start}.identity-panel{text-align:center;padding:34px 26px}.avatar.large{height:64px;width:64px;font-size:25px;border-radius:18px;margin:0 auto 18px}.identity-panel h2{overflow-wrap:anywhere;margin-bottom:10px}.identity-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:27px 0 22px;padding:18px 0}.identity-details>div{display:flex;justify-content:space-between;gap:16px;padding:7px 0;font-size:11px}.identity-details dt{color:var(--muted);white-space:nowrap}.identity-details dd{margin:0;overflow-wrap:anywhere;text-align:right}.identity-panel>.muted{font-size:10px;margin-bottom:24px}.password-panel{padding:30px}.password-panel>p{margin-bottom:26px;font-size:12px}.section-icon{width:25px;height:25px;color:var(--secondary)}dialog{color:var(--text);background:#101927;border:1px solid #304057;border-radius:20px;padding:0;max-width:calc(100vw - 32px);max-height:calc(100svh - 48px);box-shadow:0 35px 100px #0009;overflow:auto}dialog::backdrop{background:#030812cc;backdrop-filter:blur(7px)}.editor-dialog{width:900px}.medium-dialog{width:650px}.small-dialog{width:460px}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;border-bottom:1px solid var(--line);background:#111b2b}.dialog-header .eyebrow{font-size:8px;margin-bottom:6px}.dialog-header h2{font-size:20px}.dialog-header .icon-button{font-weight:300}.dialog-body{padding:25px 28px}.dialog-body>p.muted:first-child{font-size:12px;margin-bottom:24px}.dialog-footer{padding:19px 28px;background:#0d1623;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}.dialog-footer>.muted{font-size:10px}.dialog-footer .button-group{margin-left:auto}.editor-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:30px}.editor-aside{border-left:1px solid var(--line);padding-left:28px}.upload-preview{aspect-ratio:1.45;background:radial-gradient(ellipse at top,#1e3040,#0b1420);border:1px dashed #3b4e64;border-radius:11px;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative}.upload-preview>img{height:100%;width:100%;object-fit:contain}.upload-preview>div{display:flex;flex-direction:column;align-items:center;gap:9px;padding:15px;text-align:center}.upload-preview svg{width:28px;height:28px;color:#6a8d9f;margin-bottom:5px}.upload-preview strong{font-size:11px;color:#a0b4c5;font-weight:400}.upload-preview span{font-size:9px;color:var(--muted)}.upload-status{font-size:11px;color:var(--accent)}.upload-status.failed{color:var(--danger)}.publish-box{border:1px solid #29384c;border-radius:10px;padding:17px;background:#152031}.publish-box>.field:last-child{margin-bottom:0}.checkbox-field{display:flex;align-items:center;gap:10px;margin:23px 0;font-size:12px}.checkbox-field input{margin:0;flex:none}.checkbox-field>span:nth-child(2){flex:1}.checkbox-field small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.checkbox-field>span:last-child{font-size:21px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.confirm-symbol{display:flex;justify-content:center;align-items:center;width:43px;height:43px;border-radius:12px;background:#ff929d0d;border:1px solid #ff929d33;color:var(--danger);font-size:25px;margin-bottom:20px}#confirm-description{font-size:13px;line-height:1.9;color:#b6c6d9;white-space:pre-line;overflow-wrap:anywhere}.toast-region{position:fixed;bottom:25px;right:28px;z-index:100;display:flex;flex-direction:column;gap:10px;max-width:min(430px,calc(100vw - 32px));pointer-events:none}.toast{padding:15px 20px;border:1px solid #66f5dc44;background:#15252a;color:#c9f9ef;border-radius:11px;box-shadow:0 10px 40px #0006;font-size:12px;animation:appear .2s ease}.toast.error{background:#2d202a;border-color:#ff929d44;color:var(--danger)}.nav-overlay{display:none}.nav-open{overflow:hidden}body:has(dialog[open]){overflow:hidden}@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{opacity:.4}}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
/* Firmware snapshots and live OTA (separate from manual inventory) */
.firmware-view .page-heading>.button-group,.ota-selection-bar .button-group{flex-wrap:wrap}.firmware-view .page-heading{flex-wrap:wrap}.firmware-view .panel{margin-top:22px}.firmware-view .table-wrap{margin-top:16px;max-width:100%}.firmware-view .table-wrap:focus-visible{outline-offset:2px}.ota-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px;align-items:end;margin:22px 0}.ota-filters .field{margin:0}.ota-filters>.button{align-self:end}.ota-firmware-field{margin-top:20px}.ota-firmware-field select{max-width:100%;text-overflow:ellipsis}.ota-selection-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin:18px 0;font-size:12px}.ota-selection-bar .button{white-space:normal}.ota-copy{max-width:230px;white-space:normal;overflow-wrap:anywhere}.ota-copy>strong,.ota-copy>small{display:block}.ota-copy>small{margin-top:5px;font-size:11px}.ota-checksums{max-width:300px;min-width:190px;white-space:normal;overflow-wrap:anywhere}.ota-checksums summary{cursor:pointer;color:var(--accent)}.ota-checksums p{margin-top:8px;font-size:11px}.ota-task-state{min-width:150px;max-width:270px;white-space:normal;overflow-wrap:anywhere}.ota-task-state progress{display:block;width:130px;height:7px;margin:10px 0;accent-color:var(--accent)}.ota-result{font-size:11px;white-space:pre-wrap;margin-top:8px}.badge.ota-failed{color:var(--danger);border-color:#ff929d38;background:#ff929d12}.ota-task-actions{min-width:120px;max-width:240px;white-space:normal}.ota-task-actions .muted{font-size:11px}.ota-pending{flex-wrap:wrap;align-items:center;overflow-wrap:anywhere}.ota-pending>p{flex:1;min-width:180px}.firmware-view .notice{white-space:pre-line;overflow-wrap:anywhere}.firmware-view .muted[role=status]{margin-bottom:12px}.firmware-view td{padding:16px}.firmware-view .table-actions{flex-wrap:wrap;min-width:100px}.firmware-view .empty-state{min-height:180px;font-size:12px;color:var(--muted)}
@media(max-width:760px){.firmware-view .page-heading>.button-group{width:100%}.firmware-view .page-heading>.button-group .button{flex:1}.ota-selection-bar>.button-group{width:100%}.ota-selection-bar .button-group .button{flex:1}.ota-task-panel .panel-heading{flex-wrap:wrap}.firmware-view .panel{padding:18px}.ota-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.ota-filters{grid-template-columns:1fr}.ota-selection-bar>.button-group{align-items:stretch}.ota-selection-bar .button-group .button{flex-basis:100%}.firmware-view .page-heading>.button-group .button{white-space:normal}.firmware-view .notice{font-size:11px}}
/* Responsive */
@media(min-width:1600px){main{padding:48px 54px}.topbar{padding:0 54px}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-grid{grid-template-columns:1.6fr 1fr}}
@media(max-width:1250px){.sidebar{width:215px;padding-left:14px;padding-right:14px}.workspace{margin-left:215px}main{padding:30px 25px}.topbar{padding:0 25px}.stats-grid{gap:12px}.stat-card{padding:19px 16px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.overview-grid{gap:18px;grid-template-columns:1.25fr 1fr}.panel{padding:22px}.quick-panel>h2{font-size:19px}.recent-row{gap:10px}.recent-thumb{width:42px;height:42px}.recent-row>.badge{padding:2px 5px;font-size:9px}.toolbar{gap:10px}.toolbar-filters{gap:8px}.toolbar-filters select{min-width:110px;padding-left:9px;padding-right:8px}h1{font-size:29px}}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:1fr}.recent-products{min-height:180px}.quick-panel{padding:24px}.quick-action:first-of-type{margin-top:16px}.quick-foot{margin-top:18px}.settings-grid{grid-template-columns:1fr}.identity-panel{padding:25px}.identity-details{max-width:420px;margin-left:auto;margin-right:auto}.identity-panel>.button{max-width:420px}.toolbar{flex-wrap:wrap}.search-field{max-width:none;flex-basis:100%}.toolbar-filters{width:100%}.toolbar-filters select{flex:1}.toolbar-filters .icon-button{margin-left:auto}.page-heading{align-items:flex-start}.page-heading>.button{margin-top:0}.page-heading h1{font-size:27px}}
@media(max-width:760px){.sidebar{width:246px;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 50px #0005}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.mobile-menu{display:flex}.nav-overlay:not([hidden]){display:block;position:fixed;inset:0;border:0;border-radius:0;background:#030812bb;z-index:29}.topbar{height:65px;padding:0 20px}.breadcrumb{gap:11px}.topbar-right{gap:10px}.topbar-right time{display:none}main{padding:29px 20px}.page-heading{margin-bottom:27px}.page-description{font-size:11px;line-height:1.8}.page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.stats-grid{margin-bottom:22px}.stat-card{padding:20px}.stat-card>strong{font-size:33px}.stat-card p{font-size:9px}.overview-grid{gap:20px}.editor-grid{grid-template-columns:1fr;gap:12px}.editor-aside{border-left:0;padding-left:0;padding-top:22px;border-top:1px solid var(--line)}.upload-preview{max-height:260px;aspect-ratio:1.7}.dialog-header{padding:20px}.dialog-body{padding:20px}.dialog-footer{padding:16px 20px;flex-wrap:wrap}.dialog-footer>.muted{flex-basis:100%}.dialog-footer .button-group{width:100%;justify-content:flex-end}dialog{max-height:calc(100svh - 24px);max-width:calc(100vw - 24px);border-radius:15px}.editor-dialog,.medium-dialog{width:600px}th,td{padding:15px}.table-wrap{border-radius:12px}.table-actions{gap:16px}.table-actions .text-button{padding:10px 0}.toast-region{bottom:18px;right:16px}.product-body{padding:17px}.product-footer{margin:0 17px}.workspace-footnote{font-size:9px;letter-spacing:0}}
@media(max-width:440px){main{padding:26px 16px}.topbar{padding:0 14px}.breadcrumb-root{display:none}.breadcrumb .slash{display:none}.page-heading{gap:10px}.page-heading h1{font-size:25px}.page-heading>.button{padding:9px 12px;font-size:11px;min-height:39px}.page-heading>.button svg{display:none}.page-description{max-width:235px}.stats-grid{gap:10px}.stat-card{padding:16px}.stat-top{font-size:11px}.stat-top svg{width:15px;height:15px}.stat-card>strong{margin-top:16px}.stat-card p{font-size:9px;line-height:1.6}.product-grid{grid-template-columns:1fr;gap:20px}.product-media{aspect-ratio:1.7}.list-meta>span:last-child{font-size:9px}.list-meta{gap:10px}.toolbar-filters select{min-width:0;font-size:11px;padding:10px 6px}.panel{padding:20px}.panel-heading h2{font-size:16px}.panel-heading .text-button{font-size:10px}.recent-thumb{width:39px;height:39px}.recent-copy strong{font-size:12px}.recent-copy small{font-size:9px}.recent-row>.icon-button{width:26px}.field-grid{grid-template-columns:1fr}.dialog-header h2{font-size:18px}.dialog-footer .button{padding-left:15px;padding-right:15px}.identity-details{font-size:10px}.notice{padding:12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
