:root{
--bg:#0b0910;--panel:#14111d;--panel2:#1b1726;--panel3:#221d30;--text:#f8f7fb;--muted:#9d96ac;--line:#2d273c;
--purple:#9b6cff;--purple2:#7a45ed;--purpleSoft:#c5aeff;--green:#53d79b;--red:#ff6f82;--yellow:#f5c46a;--shadow:0 24px 60px rgba(0,0,0,.32)
}
*{box-sizing:border-box} html{background:var(--bg)} body{margin:0;color:var(--text);background:radial-gradient(circle at 75% -10%,rgba(121,69,237,.22),transparent 32%),radial-gradient(circle at 0% 18%,rgba(155,108,255,.1),transparent 24%),var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}
button,input,textarea,select{font:inherit} button{cursor:pointer}.app-shell{max-width:1180px;margin:auto;min-height:100vh;padding:18px 22px 110px}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.topbar h1{font-size:25px;margin:0;letter-spacing:-.04em}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.19em;color:var(--purpleSoft);margin:0 0 5px}.header-actions{display:flex;gap:9px}.icon-btn{width:42px;height:42px;border-radius:13px;border:1px solid var(--line);color:var(--text);background:rgba(24,20,33,.8);display:grid;place-items:center}
.view{display:none}.view.active{display:block}.hero{padding:34px;border-radius:28px;border:1px solid var(--line);background:linear-gradient(115deg,rgba(24,20,33,.96),rgba(33,26,48,.92)),radial-gradient(circle at 80% 20%,rgba(155,108,255,.3),transparent 35%);display:flex;justify-content:space-between;align-items:flex-end;gap:24px;box-shadow:var(--shadow)}.hero.compact{min-height:245px}.hero h2{font-size:clamp(38px,6vw,66px);line-height:.98;letter-spacing:-.055em;margin:10px 0 16px;max-width:760px}.hero h2 span{color:var(--purpleSoft)}.hero p:not(.hero-kicker){max-width:560px;color:var(--muted);font-size:15px;line-height:1.6}.hero-kicker{font-size:11px;font-weight:900;letter-spacing:.18em;color:var(--muted);margin:0}.hero-actions{display:flex;flex-direction:column;gap:10px;min-width:170px}
.primary,.secondary,.button-like{border:none;border-radius:14px;padding:12px 16px;font-weight:850;display:inline-flex;justify-content:center;align-items:center;gap:8px}.primary{background:linear-gradient(135deg,var(--purple),var(--purple2));color:white;box-shadow:0 10px 24px rgba(122,69,237,.25)}.secondary,.button-like{background:var(--panel3);color:var(--text);border:1px solid var(--line)}.big{padding:15px 20px}.small{padding:8px 10px;font-size:12px}.danger{color:#ff9baa}.text-btn{border:0;background:transparent;color:var(--purpleSoft);font-size:12px;font-weight:800;padding:6px}
.page-title{display:flex;justify-content:space-between;align-items:end;margin:10px 0 24px}.page-title h2{font-size:36px;margin:0;letter-spacing:-.045em}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.dashboard-stats{grid-template-columns:repeat(4,1fr)}.stat-card{background:rgba(20,17,29,.9);border:1px solid var(--line);border-radius:18px;padding:17px}.stat-card span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.stat-card strong{font-size:26px;letter-spacing:-.04em}.stat-card small{display:block;color:#726b7e;font-size:10px;margin-top:4px}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{background:rgba(20,17,29,.9);border:1px solid var(--line);border-radius:20px;padding:16px;min-height:220px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px 0 12px}.section-heading h3{margin:0;font-size:18px}.section-heading p{margin:4px 0 0}
.mini-list{display:flex;flex-direction:column;gap:8px}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#100d16;border:1px solid #211c2c;border-radius:13px;padding:11px}.mini-row .left{min-width:0}.mini-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-row small{color:var(--muted)}.mini-price{font-weight:900;color:var(--purpleSoft)}
.controls{display:grid;grid-template-columns:1fr 190px 170px;gap:12px;margin:20px 0}.search-wrap{display:flex;gap:10px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:0 13px}.search-wrap span{font-size:20px;color:var(--muted)}
input,textarea,select{width:100%;border:1px solid var(--line);background:#100d16;color:var(--text);border-radius:12px;padding:12px 13px;outline:none}input:focus,textarea:focus,select:focus{border-color:#7050ae;box-shadow:0 0 0 3px rgba(155,108,255,.1)}.search-wrap input{border:0;background:transparent;box-shadow:none;padding-left:0}textarea{min-height:94px;resize:vertical}
.badge{font-size:11px;font-weight:800;color:var(--purpleSoft);border:1px solid #4a386b;background:#1e1730;border-radius:999px;padding:6px 9px}
.print-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.print-card{overflow:hidden;border-radius:20px;background:var(--panel);border:1px solid var(--line);transition:.18s transform,.18s border-color;cursor:pointer}.print-card:hover{transform:translateY(-2px);border-color:#4e4264}.card-photo{height:210px;background:#18131f;position:relative;overflow:hidden}.card-photo img{width:100%;height:100%;object-fit:cover}.photo-fallback{height:100%;display:grid;place-items:center;font-size:46px;color:#5e526f}.price-chip,.stock-chip,.fav-chip{position:absolute;background:rgba(10,8,14,.88);backdrop-filter:blur(8px);border-radius:12px;font-weight:900}.price-chip{right:12px;bottom:12px;padding:8px 10px;font-size:18px}.stock-chip{left:12px;bottom:12px;padding:7px 9px;font-size:11px}.fav-chip{right:12px;top:12px;padding:7px 9px;color:#ffd775}.card-body{padding:15px}.card-body h4{font-size:17px;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-sub{color:var(--muted);font-size:12px;margin-bottom:13px}.card-meta{display:flex;justify-content:space-between;gap:8px;padding-top:12px;border-top:1px solid var(--line)}.card-meta div{min-width:0}.card-meta span{display:block;color:var(--muted);font-size:10px}.card-meta strong{font-size:13px}
.filament-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.filament-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:16px;cursor:pointer}.filament-top{display:flex;justify-content:space-between;gap:10px}.filament-color{width:42px;height:42px;border-radius:13px;background:var(--spool-color,#ffffff);border:1px solid var(--line);display:grid;place-items:center;font-size:20px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.progress{height:8px;background:#0d0b12;border-radius:99px;overflow:hidden;margin:13px 0 7px}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--purple2),var(--purple));border-radius:99px}.filament-card small{color:var(--muted)}
.order-list{display:flex;flex-direction:column;gap:10px}.order-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:15px;display:flex;justify-content:space-between;gap:18px;cursor:pointer}.order-main{min-width:0}.order-main h4{margin:0 0 5px}.order-main p{margin:0;color:var(--muted);font-size:12px}.order-side{text-align:right}.status{display:inline-block;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900;background:#221a34;color:var(--purpleSoft);margin-bottom:8px}.segmented{display:flex;gap:7px;overflow:auto;padding-bottom:4px;margin-bottom:18px}.segmented button{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;padding:8px 11px;white-space:nowrap}.segmented button.active{background:#281e3b;color:var(--purpleSoft);border-color:#5a447d}
.empty-state{padding:50px 20px;text-align:center;border:1px dashed var(--line);border-radius:22px;color:var(--muted)}.empty-state h3{color:var(--text);margin-bottom:4px}.hidden{display:none!important}.bottom-nav{display:none}
dialog{border:0;padding:0;background:transparent;color:var(--text);max-width:none;width:auto}dialog::backdrop{background:rgba(2,1,4,.78);backdrop-filter:blur(8px)}.sheet{width:min(760px,calc(100vw - 24px));max-height:92vh;overflow:auto;background:#121019;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow)}.sheet.narrow{width:min(560px,calc(100vw - 24px))}.settings-sheet{width:min(650px,calc(100vw - 24px))}.sheet-grabber{width:46px;height:5px;background:#3b3448;border-radius:99px;margin:0 auto 18px}.sheet-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.sheet-header h2{margin:0;font-size:25px;letter-spacing:-.04em}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}label{display:block;color:var(--muted);font-size:12px;font-weight:700}label input,label textarea,label select{margin-top:7px;color:var(--text);font-weight:500}.full{grid-column:1/-1}.money-input{display:flex;align-items:center;background:#100d16;border:1px solid var(--line);border-radius:12px;margin-top:7px;padding-left:12px}.money-input span{color:var(--muted)}.money-input input{border:0;margin:0;background:transparent;box-shadow:none;padding-left:6px}
.photo-picker{height:210px;border:1px dashed #4b3d61;border-radius:18px;margin-bottom:12px;position:relative;overflow:hidden;background:#0e0b13}.photo-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.photo-picker img{width:100%;height:100%;object-fit:cover}#photoPlaceholder{height:100%;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;color:var(--muted)}#photoPlaceholder span{font-size:30px}#photoPlaceholder strong{color:var(--text)}.favorite-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.favorite-toggle{border:1px solid var(--line);background:var(--panel3);color:var(--muted);border-radius:12px;padding:9px 12px}.favorite-toggle.active{color:#ffd775;border-color:#6b5733}.model-link{color:var(--purpleSoft);font-size:12px;text-decoration:none}
.subsection{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.usage-list{display:flex;flex-direction:column;gap:9px}.usage-row{display:grid;grid-template-columns:1.4fr .7fr .7fr 38px;gap:8px;align-items:end;background:#0e0c13;border:1px solid var(--line);border-radius:14px;padding:10px}.usage-row label{margin:0}.remove-row{width:38px;height:38px;border:1px solid var(--line);background:#241824;color:#ff9baa;border-radius:11px}
.recommend-card{margin:16px 0;background:linear-gradient(135deg,#1f1830,#171222);border:1px solid #41345a;border-radius:17px;padding:16px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.recommend-card.single-line{grid-template-columns:1fr 1fr}.recommend-card span{display:block;color:var(--muted);font-size:11px}.recommend-card strong{font-size:22px;color:var(--purpleSoft)}.helper-results{grid-template-columns:repeat(3,1fr)}.sheet-actions,.row{display:flex;gap:10px}.sheet-actions .primary{flex:1}.settings-section{padding:16px 0;border-bottom:1px solid var(--line)}.settings-section h3{margin:0 0 4px}.muted{color:var(--muted);font-size:13px;line-height:1.55}.auth-box{padding:14px;background:#0e0c13;border:1px solid var(--line);border-radius:16px;margin-top:12px}.auth-box label+label{margin-top:10px}.auth-box .row{margin-top:12px}.full-width{width:100%;margin-top:18px}.preset-list{display:flex;flex-direction:column;gap:8px}.preset-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;background:#0e0c13;border:1px solid var(--line);border-radius:13px;cursor:pointer}.preset-row small{color:var(--muted)}
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#f5f1ff;color:#1d1727;border-radius:12px;padding:11px 15px;font-weight:800;font-size:13px;transition:.2s;z-index:999}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,1fr)}.print-grid,.filament-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.controls{grid-template-columns:1fr 1fr}.search-wrap{grid-column:1/-1}.hero{align-items:flex-start;flex-direction:column}.hero-actions{width:100%;flex-direction:row}}
@media(max-width:560px){
.app-shell{padding:14px 14px 100px}.topbar{margin-bottom:18px}.header-actions{display:none}.hero{padding:23px;border-radius:23px}.hero h2{font-size:42px}.hero-actions{flex-direction:column}.hero-actions .big{width:100%}.stats-grid,.dashboard-stats{grid-template-columns:repeat(2,1fr);gap:8px}.stat-card{padding:13px 11px}.stat-card strong{font-size:19px}.dashboard-grid{grid-template-columns:1fr}.controls{grid-template-columns:1fr}.search-wrap{grid-column:auto}.print-grid,.filament-grid{grid-template-columns:1fr}.card-photo{height:245px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.usage-row{grid-template-columns:1fr 1fr 38px}.usage-row .usage-select{grid-column:1/-1}.recommend-card,.helper-results{grid-template-columns:1fr 1fr}.sheet{width:100vw;max-height:94vh;border-radius:24px 24px 0 0;padding:18px;margin-top:auto}dialog{align-items:flex-end;height:100vh}dialog[open]{display:flex}.page-title h2{font-size:30px}.bottom-nav{display:grid;grid-template-columns:1fr 1fr 70px 1fr 1fr;align-items:end;position:fixed;z-index:40;left:8px;right:8px;bottom:8px;background:rgba(20,17,29,.94);border:1px solid var(--line);backdrop-filter:blur(16px);border-radius:20px;padding:8px 8px max(8px,env(safe-area-inset-bottom));box-shadow:var(--shadow)}.nav-item{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px;padding:2px}.nav-item span{font-size:20px}.nav-item small{font-size:9px}.nav-item.active{color:var(--purpleSoft)}.center-add{width:54px;height:54px;border-radius:17px;background:linear-gradient(135deg,var(--purple),var(--purple2));color:white;margin:-22px auto 0;box-shadow:0 12px 28px rgba(122,69,237,.35)}.center-add span{font-size:27px}.order-card{flex-direction:column}.order-side{text-align:left}.sheet-actions{flex-wrap:wrap}
}

.spool-color-control{display:grid;grid-template-columns:52px 1fr;gap:8px;margin-top:7px}
.spool-color-control input{margin-top:0}
.spool-color-control input[type="color"]{height:44px;padding:4px;cursor:pointer;background:#100d16}
.spool-color-control input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
.spool-color-control input[type="color"]::-webkit-color-swatch{border:0;border-radius:8px}

.brand-wrap{display:flex;align-items:center;gap:12px}
.menu-btn{display:grid}
.drawer-backdrop{position:fixed;inset:0;background:rgba(2,1,4,.68);backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:.2s;z-index:80}
.drawer-backdrop.open{opacity:1;pointer-events:auto}
.side-drawer{position:fixed;left:0;top:0;bottom:0;width:min(340px,88vw);background:#100d16;border-right:1px solid var(--line);z-index:90;padding:20px;transform:translateX(-103%);transition:.22s ease;display:flex;flex-direction:column;box-shadow:24px 0 60px rgba(0,0,0,.32)}
.side-drawer.open{transform:translateX(0)}
.drawer-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
.drawer-header h2{margin:0;font-size:28px;letter-spacing:-.04em}
.drawer-nav{display:flex;flex-direction:column;gap:8px;padding:18px 0}
.drawer-link{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid transparent;background:transparent;color:var(--text);border-radius:14px;padding:12px}
.drawer-link>span{width:34px;height:34px;border-radius:11px;background:var(--panel3);display:grid;place-items:center;color:var(--purpleSoft)}
.drawer-link strong{display:block;font-size:14px}
.drawer-link small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.drawer-link.active{background:#1b1527;border-color:#43345c}
.drawer-actions{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.shop-hero{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px;padding:26px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#15111d,#1e172b)}
.shop-hero h2{font-size:clamp(34px,5vw,56px);margin:4px 0 8px;letter-spacing:-.05em}
.shop-hero p{max-width:620px}
.shop-controls{display:grid;grid-template-columns:1fr 220px;gap:12px;margin:18px 0}
.shop-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.shop-summary span{background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:8px 11px;color:var(--muted);font-size:12px}
.shop-summary strong{color:var(--text)}
.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.shop-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;cursor:pointer;transition:.18s}
.shop-card:hover{transform:translateY(-2px);border-color:#4e4264}
.shop-card-photo{height:230px;background:#18131f;position:relative}
.shop-card-photo img{width:100%;height:100%;object-fit:cover}
.shop-card-body{padding:15px}
.shop-card-body h3{margin:0 0 5px;font-size:18px}
.shop-card-body p{margin:0;color:var(--muted);font-size:12px}
.shop-card-footer{display:flex;justify-content:space-between;align-items:end;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.shop-price{font-size:22px;font-weight:900;color:var(--purpleSoft)}
.shop-stock{font-size:11px;color:var(--muted);text-align:right}
@media(max-width:900px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){
  .topbar .header-actions{display:none}
  .shop-hero{align-items:flex-start;flex-direction:column;padding:20px}
  .shop-hero .primary{width:100%}
  .shop-controls{grid-template-columns:1fr}
  .shop-grid{grid-template-columns:1fr}
  .shop-card-photo{height:250px}
  .bottom-nav{grid-template-columns:1fr 1fr 70px 1fr 1fr}
}

/* v4 production/store additions */
.sync-pill{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:7px 10px;color:var(--muted);font-size:11px;font-weight:800;white-space:nowrap}
.sync-pill.syncing{color:var(--yellow);border-color:#5b4b2f}.sync-pill.synced{color:var(--green);border-color:#275440}.sync-pill.offline,.sync-pill.error{color:var(--red);border-color:#5d2f3a}
.notification-btn{position:relative}.notification-badge{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:99px;background:var(--red);color:white;font-size:10px;display:grid;place-items:center;border:2px solid var(--bg)}
.drawer-sync-card{border:1px solid var(--line);background:#0d0b12;border-radius:14px;padding:11px;margin-top:auto;margin-bottom:9px}.drawer-sync-card>div{display:flex;align-items:center;gap:8px}.drawer-sync-card small{display:block;color:var(--muted);margin-top:4px}.status-dot{width:9px;height:9px;border-radius:50%;background:#6b6572}.status-dot.synced{background:var(--green)}.status-dot.syncing{background:var(--yellow)}.status-dot.error,.status-dot.offline{background:var(--red)}
.shop-hero-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.page-intro{margin-top:-12px;margin-bottom:18px}
.deal-fields{display:grid;grid-template-columns:.7fr 1.3fr;gap:7px;margin-top:7px}.deal-fields input{margin-top:0}.deal-fields .money-input{margin-top:0}
.variant-list{display:flex;flex-direction:column;gap:9px}.variant-row{background:#0e0c13;border:1px solid var(--line);border-radius:15px;padding:11px;display:grid;grid-template-columns:1.1fr .8fr .7fr 1.1fr 38px;gap:8px;align-items:end}.variant-row label{margin:0}.variant-row .remove-variant{width:38px;height:38px;border-radius:11px;border:1px solid var(--line);background:#241824;color:#ff9baa}
.colorway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.colorway-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;cursor:pointer}.colorway-card h3{margin:0 0 10px}.swatch-row{display:flex;gap:7px;flex-wrap:wrap}.swatch{width:34px;height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.15);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.colorway-meta{color:var(--muted);font-size:11px;margin-top:10px}
.check-list{display:flex;flex-direction:column;gap:8px}.check-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid var(--line);background:#0e0c13;border-radius:13px;padding:11px}.check-row strong{display:block}.check-row small{color:var(--muted)}.check-row .ok{color:var(--green);font-weight:850}.check-row .bad{color:var(--red);font-weight:850}.warning-box{border:1px solid #6b3840;background:#241318;color:#ffb3bd;border-radius:13px;padding:12px;margin:12px 0}
.restock-note{margin-top:9px;border-top:1px solid var(--line);padding-top:9px;color:var(--yellow);font-size:11px}
.shop-deal{display:inline-block;margin-top:8px;background:#2a1f3b;color:var(--purpleSoft);border:1px solid #4c396b;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900}
.out-badge{position:absolute;left:12px;top:12px;background:rgba(79,28,39,.94);color:#ffc2cb;border:1px solid #7c3c49;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900}
.customer-mode .admin-only{display:none!important}.customer-mode .shop-card-footer small{display:none}.customer-mode .shop-summary span:nth-child(3){display:none}.customer-mode .shop-card{cursor:pointer}.customer-mode .shop-hero p{max-width:700px}.customer-mode .bottom-nav{display:none!important}.customer-mode .menu-btn{display:none}.customer-mode .topbar .header-actions>*:not(#notificationBtn){display:none}
.customer-mode .shop-controls{grid-template-columns:1fr 220px}.customer-mode .app-shell{padding-bottom:35px}
.customer-product-photo{width:100%;max-height:330px;object-fit:cover;border-radius:18px;border:1px solid var(--line);margin-bottom:15px}.customer-big-price{font-size:36px;font-weight:950;color:var(--purpleSoft);margin:3px 0 10px}.deal-banner{border:1px solid #594278;background:#241a34;color:var(--purpleSoft);padding:10px 12px;border-radius:13px;font-weight:850;margin:10px 0}.availability-banner{padding:12px;border-radius:13px;background:#111b17;border:1px solid #29483a;color:var(--green);font-weight:850;margin-top:15px}.availability-banner.out{background:#231419;border-color:#5c3440;color:#ff9eaa}.customer-variant-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}.customer-variant{display:flex;justify-content:space-between;gap:10px;padding:11px;border:1px solid var(--line);background:#0e0c13;border-radius:13px}
.notification-list{display:flex;flex-direction:column;gap:9px}.notice-card{border:1px solid var(--line);background:#0e0c13;border-radius:15px;padding:13px;display:grid;grid-template-columns:34px 1fr;gap:10px}.notice-icon{width:34px;height:34px;border-radius:11px;background:var(--panel3);display:grid;place-items:center}.notice-card h4{margin:0 0 3px}.notice-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.notice-card.warn .notice-icon{color:var(--yellow)}.notice-card.danger .notice-icon{color:var(--red)}.notice-card.info .notice-icon{color:var(--purpleSoft)}
.sync-detail{display:flex;flex-direction:column;gap:3px;border:1px solid var(--line);background:#0e0c13;border-radius:13px;padding:10px 12px;margin-bottom:12px}.sync-detail small{color:var(--muted)}.tiny-note{font-size:11px}
@media(max-width:900px){.colorway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.variant-row{grid-template-columns:1fr 1fr}.variant-row .variant-name,.variant-row .variant-colorway{grid-column:1/-1}.variant-row .remove-variant{grid-column:2;justify-self:end}}
@media(max-width:560px){.shop-hero-actions{width:100%;flex-direction:column}.shop-hero-actions button{width:100%}.colorway-grid{grid-template-columns:1fr}.variant-row{grid-template-columns:1fr 1fr}.customer-mode .shop-controls{grid-template-columns:1fr}.customer-mode .topbar .header-actions{display:flex}.sync-pill{display:none}}

/* v4.1 mobile stability + layout pass */
html,body{max-width:100%;overflow-x:hidden}
body.menu-open{overflow:hidden!important;position:fixed;width:100%;left:0;right:0}
.topbar{position:sticky;top:0;z-index:65;padding:10px 0;background:linear-gradient(180deg,rgba(11,9,16,.96),rgba(11,9,16,.83) 72%,rgba(11,9,16,0));backdrop-filter:blur(12px)}
.side-drawer{
  top:0;
  bottom:auto;
  height:100dvh;
  max-height:100dvh;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  padding-top:max(20px,env(safe-area-inset-top));
  padding-bottom:max(22px,env(safe-area-inset-bottom));
}
.drawer-header{position:sticky;top:calc(-1 * max(20px,env(safe-area-inset-top)));z-index:2;background:#100d16;padding-top:max(20px,env(safe-area-inset-top))}
.drawer-nav{flex:0 0 auto}
.drawer-sync-card{margin-top:12px}
.drawer-actions{margin-top:9px;flex:0 0 auto}
.drawer-link,.drawer-actions button{min-height:48px}
.drawer-backdrop{touch-action:none}
.sheet{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.customer-mode-bar{
  position:sticky;
  top:72px;
  z-index:55;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid #4f3a70;
  background:rgba(31,23,45,.96);
  backdrop-filter:blur(14px);
  border-radius:15px;
}
.customer-mode-bar strong{display:block;color:var(--purpleSoft)}
.customer-mode-bar small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.customer-mode-bar button{flex:0 0 auto}

@media(max-width:560px){
  .app-shell{padding:8px 12px 28px}
  .topbar{
    margin:0 -2px 14px;
    padding:10px 2px 12px;
    min-height:64px;
  }
  .brand-wrap{gap:9px}
  .topbar h1{font-size:22px}
  .topbar .eyebrow{font-size:8px}
  .menu-btn{width:46px;height:46px;flex:0 0 46px}
  .header-actions{display:flex;gap:6px}
  .header-actions .icon-btn{width:42px;height:42px}
  .header-actions #helpPriceBtn,.header-actions #syncBtn,.header-actions #settingsBtn,.header-actions .sync-pill{display:none}
  .notification-btn{display:grid!important}

  /* Mobile uses hamburger navigation only. The old floating nav was the main source of cramped/odd behavior. */
  .bottom-nav{display:none!important}

  .side-drawer{
    width:min(356px,92vw);
    padding-left:14px;
    padding-right:14px;
  }
  .drawer-header{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
  .drawer-nav{gap:5px;padding:12px 0}
  .drawer-link{padding:10px}
  .drawer-link>span{width:38px;height:38px;flex:0 0 38px}
  .drawer-link strong{font-size:15px}
  .drawer-link small{font-size:11px}

  .shop-hero{
    padding:17px;
    border-radius:19px;
    margin-bottom:12px;
  }
  .shop-hero h2{font-size:30px;line-height:1.03;margin:4px 0 7px}
  .shop-hero p{font-size:12px;line-height:1.45}
  .shop-hero-actions{display:grid;grid-template-columns:1fr;gap:8px;width:100%}
  .shop-hero-actions button{min-height:46px;width:100%}

  .shop-controls{margin:12px 0;gap:8px}
  input,textarea,select{font-size:16px}
  .search-wrap input{font-size:16px}
  .shop-summary{gap:6px;margin-bottom:10px}
  .shop-summary span{padding:6px 8px;font-size:10px}

  /* Compact product rows instead of giant cards on a phone. */
  .shop-grid{display:flex;flex-direction:column;gap:9px}
  .shop-card{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    min-height:126px;
    border-radius:16px;
  }
  .shop-card-photo{height:100%;min-height:126px}
  .shop-card-body{padding:11px;min-width:0}
  .shop-card-body h3{font-size:16px;line-height:1.15;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shop-card-body p{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shop-card-footer{margin-top:9px;padding-top:8px}
  .shop-price{font-size:19px}
  .shop-stock{font-size:9px}
  .price-chip{right:7px;bottom:7px;font-size:13px;padding:5px 7px}
  .fav-chip{right:7px;top:7px;padding:5px 6px}
  .out-badge{left:7px;top:7px;font-size:8px;padding:5px 6px}
  .shop-deal{font-size:9px;padding:4px 6px;margin-top:5px}

  .page-title{align-items:center;margin:4px 0 14px}
  .page-title h2{font-size:27px}
  .page-title .primary{padding:10px 12px}
  .stats-grid,.dashboard-stats{grid-template-columns:1fr 1fr}
  .stat-card{border-radius:14px;padding:11px}
  .stat-card strong{font-size:19px}
  .panel{border-radius:16px;padding:12px;min-height:0}

  .print-grid,.filament-grid,.colorway-grid{grid-template-columns:1fr}
  .card-photo{height:190px}
  .filament-card,.print-card,.colorway-card{border-radius:16px}
  .order-card{padding:12px}

  dialog{
    height:100dvh;
    max-height:100dvh;
    overflow:hidden;
  }
  dialog[open]{display:flex;align-items:flex-end}
  .sheet{
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));
    border-radius:22px 22px 0 0;
    padding:16px 14px max(18px,env(safe-area-inset-bottom));
  }
  .sheet-header{position:sticky;top:-16px;z-index:3;background:#121019;padding:12px 0 9px;margin-top:-12px}
  .sheet-actions{position:sticky;bottom:calc(-1 * max(18px,env(safe-area-inset-bottom)));z-index:3;background:#121019;padding:10px 0 max(18px,env(safe-area-inset-bottom));margin-bottom:calc(-1 * max(18px,env(safe-area-inset-bottom)))}
  .sheet-actions button{min-height:45px}
  .form-grid{gap:10px}
  .usage-row{padding:8px}
  .recommend-card{padding:12px}

  .customer-mode-bar{
    top:67px;
    border-radius:13px;
    padding:10px;
    align-items:flex-start;
  }
  .customer-mode-bar small{max-width:190px}
  .customer-mode-bar button{font-size:11px;padding:9px 10px}
  .customer-mode .menu-btn{display:none!important}
  .customer-mode .notification-btn{display:none!important}
  .customer-mode .brand-wrap:before{
    content:"STORE";
    display:grid;
    place-items:center;
    width:46px;height:46px;
    border:1px solid #4f3a70;
    border-radius:13px;
    color:var(--purpleSoft);
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
  }
}

@media(max-width:365px){
  .shop-card{grid-template-columns:96px minmax(0,1fr)}
  .shop-card-photo{min-height:120px}
  .shop-summary span{font-size:9px}
}

/* v4.2 real Web Push */
.push-status-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:11px;
  align-items:center;
  border:1px solid var(--line);
  background:#0e0c13;
  border-radius:15px;
  padding:12px;
  margin:10px 0 12px;
}
.push-status-icon{
  width:42px;height:42px;border-radius:13px;
  display:grid;place-items:center;
  background:var(--panel3);color:var(--purpleSoft);font-weight:900
}
.push-status-card strong{display:block}
.push-status-card small{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:3px}
.push-action-row{flex-wrap:wrap;margin-bottom:10px}
.push-help{border:1px solid #544078;background:#20182f;border-radius:13px;padding:11px 12px;margin:10px 0;color:var(--purpleSoft)}
.push-help p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
#pushStatusBadge.enabled{color:var(--green);border-color:#275440;background:#102119}
#pushStatusBadge.problem{color:var(--red);border-color:#5d2f3a;background:#251219}
@media(max-width:560px){
  .push-action-row{display:grid;grid-template-columns:1fr}
  .push-action-row button{width:100%;min-height:46px}
}

/* v4.2.3 — iOS navigation/scroll stability
   Important: never move/fix the BODY to lock the hamburger drawer. */
html.menu-open,body.menu-open{
  overflow:hidden!important;
  overscroll-behavior:none;
}
body.menu-open{
  position:static!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  width:auto!important;
}

@media(max-width:560px){
  :root{--mobile-header-h:76px}

  /* The header is viewport-fixed on phones, so it can never be scrolled away. */
  .topbar{
    position:fixed!important;
    z-index:75!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    min-height:var(--mobile-header-h);
    margin:0!important;
    padding:
      max(9px,env(safe-area-inset-top))
      12px
      9px!important;
    background:rgba(11,9,16,.94)!important;
    border-bottom:1px solid rgba(45,39,60,.75);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  /* Reserve space for the fixed header. */
  .app-shell{
    padding-top:calc(var(--mobile-header-h) + env(safe-area-inset-top) + 8px)!important;
  }

  .menu-btn{
    display:grid!important;
    position:relative;
    z-index:2;
  }

  /* Drawer owns its own scrolling. The page behind it does not. */
  .side-drawer{
    position:fixed!important;
    inset:0 auto 0 0!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    padding-top:max(14px,env(safe-area-inset-top))!important;
    padding-bottom:max(18px,env(safe-area-inset-bottom))!important;
  }

  .drawer-backdrop{
    position:fixed!important;
    inset:0!important;
    overscroll-behavior:none!important;
    touch-action:none!important;
  }

  .drawer-header{
    position:sticky!important;
    top:calc(-1 * max(14px,env(safe-area-inset-top)))!important;
    z-index:4!important;
    background:#100d16!important;
    padding-top:max(14px,env(safe-area-inset-top))!important;
  }

  /* Keep modal sheets below the fixed header's z-index. */
  dialog{z-index:100}
  dialog::backdrop{z-index:99}

  /* Customer-mode exit control remains reachable below the fixed header. */
  .customer-mode-bar{
    top:calc(var(--mobile-header-h) + env(safe-area-inset-top) + 4px)!important;
  }
}

/* v4.3 customer-mode rework + photo library picker */
.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 16px}
.photo-action-button{margin:0;min-height:44px;cursor:pointer}
.customer-lock-badge{flex:0 0 auto;border:1px solid #5b476f;background:#171121;color:var(--purpleSoft);border-radius:999px;padding:6px 9px;font-size:9px;font-weight:950;letter-spacing:.12em}
.customer-store-tabs{display:flex;gap:7px;margin:0 0 14px;padding:5px;width:max-content;max-width:100%;background:var(--panel);border:1px solid var(--line);border-radius:14px}
.customer-store-tabs button{border:0;background:transparent;color:var(--muted);border-radius:10px;padding:9px 13px;font-weight:850}
.customer-store-tabs button.active{background:var(--panel3);color:var(--purpleSoft)}
.customer-filament-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.customer-filament-card{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:15px}
.customer-filament-color{width:100%;aspect-ratio:1.8/1;border-radius:14px;margin-bottom:12px;border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.customer-filament-card h3{margin:0 0 4px;font-size:16px}.customer-filament-card p{margin:0;color:var(--muted);font-size:11px}
.customer-filament-availability{margin-top:10px;display:inline-block;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900;background:#102119;color:var(--green);border:1px solid #275440}
.customer-filament-availability.low{background:#261e10;color:var(--yellow);border-color:#5e4a28}
.customer-mode .shop-summary{display:none}.customer-mode .shop-hero-actions{display:none!important}.customer-mode .shop-controls{margin-top:0}.customer-mode .customer-mode-bar{display:flex!important}.customer-mode .customer-store-tabs{display:flex!important}.customer-mode .shop-hero{min-height:auto}.customer-mode .shop-hero .muted{max-width:680px}
.customer-tab-hidden{display:none!important}
@media(max-width:800px){.customer-filament-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.photo-actions{grid-template-columns:1fr}.photo-action-button{min-height:48px}.customer-filament-grid{grid-template-columns:1fr 1fr;gap:8px}.customer-filament-card{padding:10px;border-radius:14px}.customer-filament-card h3{font-size:13px}.customer-filament-card p{font-size:9px}.customer-mode-bar{align-items:center}.customer-store-tabs{width:100%;display:grid!important;grid-template-columns:1fr 1fr}.customer-store-tabs button{padding:9px 6px;font-size:11px}}

/* v4.3.1 customer Request This Print */
.customer-request-button{margin-top:12px;min-height:48px}
.request-product-summary{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px;
  margin-bottom:14px;
  background:#0e0c13;
  border:1px solid var(--line);
  border-radius:14px
}
.request-product-thumb{
  width:62px;height:62px;flex:0 0 62px;
  border-radius:12px;
  object-fit:cover;
  background:#17131f;
  border:1px solid var(--line)
}
.request-product-summary strong{display:block}
.request-product-summary small{display:block;color:var(--muted);margin-top:3px}
.request-estimate{
  margin-top:14px;
  padding:13px;
  background:linear-gradient(135deg,#1f1830,#171222);
  border:1px solid #41345a;
  border-radius:15px
}
.request-estimate div{display:flex;align-items:end;justify-content:space-between;gap:10px}
.request-estimate span{color:var(--muted);font-size:11px}
.request-estimate strong{color:var(--purpleSoft);font-size:25px}
.request-estimate small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.4}
.request-success{
  border:1px solid #275440;
  background:#102119;
  color:var(--green);
  border-radius:14px;
  padding:12px;
  font-weight:850
}
@media(max-width:560px){
  .request-print-sheet{max-height:calc(100dvh - max(10px,env(safe-area-inset-top)))}
  .customer-request-button{position:sticky;bottom:0;z-index:2}
}

/* v4.3.2 in-app update flow */
.app-update-banner{
  position:fixed;
  left:50%;
  bottom:max(16px,calc(env(safe-area-inset-bottom) + 10px));
  transform:translateX(-50%);
  z-index:140;
  width:min(620px,calc(100vw - 24px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 13px;
  border:1px solid #564271;
  background:rgba(23,17,33,.97);
  box-shadow:0 18px 60px rgba(0,0,0,.42);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-radius:16px
}
.app-update-banner strong{display:block;color:var(--purpleSoft)}
.app-update-banner small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.app-update-banner button{flex:0 0 auto;white-space:nowrap}
.app-update-banner.hidden{display:none!important}
@media(max-width:560px){
  .app-update-banner{
    align-items:stretch;
    flex-direction:column;
    bottom:max(10px,calc(env(safe-area-inset-bottom) + 8px))
  }
  .app-update-banner button{width:100%;min-height:44px}
}

/* v4.4 public synced storefront */
.public-store-state{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:15px;padding:13px;margin-bottom:12px;font-size:12px}
.public-store-state.error{border-color:#5d2f3a;background:#251219;color:#ffb3bd}
.public-visitor .admin-only,.public-visitor .menu-btn,.public-visitor .notification-btn,.public-visitor .header-actions,.public-visitor .drawer-backdrop,.public-visitor .side-drawer{display:none!important}
.public-visitor .topbar{justify-content:center}
.public-visitor .brand-wrap{justify-content:center;text-align:center}
.public-visitor .shop-hero-actions{display:none!important}
.public-visitor .customer-mode-bar{display:flex!important}
.public-visitor .customer-lock-badge{background:#102119;border-color:#275440;color:var(--green)}

/* v4.4.1 public storefront failure safety + diagnostics */
.public-store-state{display:block}
.public-store-state.hidden{display:none!important}
.public-store-state #publicStoreStateText{line-height:1.5}
.public-store-actions{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}
.public-store-unavailable{
  border:1px solid #5d2f3a;
  background:#211218;
  border-radius:18px;
  padding:24px;
  text-align:center;
  grid-column:1/-1
}
.public-store-unavailable h3{margin:0 0 6px;color:#ffb3bd}
.public-store-unavailable p{margin:0;color:var(--muted);font-size:12px}

/* v4.4.4 owner login + multicolor requests */
.brand-owner-trigger{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  margin:0;
  text-align:left;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  touch-action:manipulation
}
.brand-owner-trigger *{
  user-select:none;
  -webkit-user-select:none;
  pointer-events:none
}
.brand-owner-trigger:focus-visible{
  outline:2px solid var(--purpleSoft);
  outline-offset:5px;
  border-radius:8px
}
.public-visitor .brand-owner-trigger{cursor:pointer}
.request-multicolor{
  border:1px solid var(--line);
  background:#0e0c13;
  border-radius:15px;
  padding:12px
}
.request-multicolor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px
}
.request-multicolor-head strong{display:block}
.request-multicolor-head small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.request-color-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px
}
.request-color-choice{
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:12px;
  padding:9px;
  cursor:pointer;
  user-select:none
}
.request-color-choice input{width:auto;flex:0 0 auto}
.request-color-swatch{
  width:28px;height:28px;flex:0 0 28px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.16)
}
.request-color-choice span{min-width:0}
.request-color-choice strong{display:block;font-size:11px}
.request-color-choice small{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.request-color-choice:has(input:checked){
  border-color:#7556a3;
  background:#1c1528
}
@media(max-width:560px){
  .request-color-grid{grid-template-columns:1fr}
}

/* v4.4.5 request delivery */
.orders-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* v5.1 Orders V2 + multicolor rules */
.multicolor-admin-options{border:1px solid var(--line);background:#100d16;border-radius:15px;padding:12px}
.multicolor-admin-options small{display:block;color:var(--muted);font-size:10px;line-height:1.35;margin-top:4px}
.order-pipeline-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.order-status-filter{overflow-x:auto;scrollbar-width:none;justify-content:flex-start}
.order-status-filter::-webkit-scrollbar{display:none}
.order-status-filter button{flex:0 0 auto}
.order-card-v2{cursor:pointer;align-items:stretch}
.order-card-v2 .order-main{min-width:0;flex:1}
.order-card-v2 .order-main p{line-height:1.45}
.order-card-v2 .order-notes-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:620px}
.order-card-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}
.order-advance-btn{font-size:10px;padding:7px 10px;min-height:32px}
.status.status-requested{color:#ffc36b;border-color:#65491f;background:#241b0c}
.status.status-quoted{color:#d5b4ff;border-color:#533a74;background:#1d142a}
.status.status-approved{color:#8bd8ff;border-color:#285874;background:#10212b}
.status.status-printing{color:#b9a6ff;border-color:#4c4182;background:#19152b}
.status.status-ready{color:#77e7a7;border-color:#275d42;background:#10241a}
.status.status-completed{color:#9fa8b8;border-color:#3d4655;background:#171b21}
.status.status-cancelled{color:#ff9ba9;border-color:#6a3440;background:#2a1419}
@media(max-width:800px){.order-pipeline-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.order-pipeline-summary{grid-template-columns:1fr 1fr}.order-card-v2{display:block}.order-card-v2 .order-side{margin-top:10px}.order-card-actions{justify-content:flex-start}}

/* v5.1.1 product photo recovery */
.image-load-fallback{height:100%;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#6e627d;background:linear-gradient(135deg,#17131f,#120f18)}
.image-load-fallback span{font-size:34px;line-height:1}
.image-load-fallback small{font-size:10px;color:var(--muted);font-weight:700}


/* v5.2 reliable push diagnostics */
.push-diagnostics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:10px 0;
}
.push-diag-cell{
  border:1px solid var(--line);
  background:#0e0c13;
  border-radius:12px;
  padding:10px 11px;
  min-width:0;
}
.push-diag-cell span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.push-diag-cell strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.push-diag-cell strong.ok{color:var(--green)}
.push-diag-cell strong.bad{color:var(--red)}
.push-diag-cell strong.warn{color:var(--yellow)}
.push-diag-actions{margin-top:8px}
@media(max-width:620px){.push-diagnostics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v5.2.2 background-service diagnostics */
.push-worker-detail{margin-top:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#0e0c13;overflow-wrap:anywhere}
.push-worker-detail strong{display:block;font-size:11px;margin-bottom:5px}
.push-worker-detail p{margin:0;color:var(--muted);font-size:10px;line-height:1.5;white-space:pre-wrap}
.push-worker-detail.problem{border-color:#7b3341;background:#241117}
.push-worker-detail.problem p{color:#ff9aaa}
.push-worker-detail.ok{border-color:#285b49;background:#0e1b17}
.push-worker-detail.ok p{color:#82dfb7}
