/* Print Business V3.11-B.15.1 · Safe Touch UI
   Presentation-only layer for V3.11-B.14.2.
   IMPORTANT: no JavaScript, no routing ownership, no MutationObserver, no business logic. */

:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --ink:#172033;
  --muted:#5f6b82;
  --line:#dce3ef;
  --dark:#172033;
  --accent:#2854ff;
  --accent-soft:#edf2ff;
  --good:#147a4a;
  --warn:#a45e05;
  --bad:#bd3d36;
  --radius:22px;
  --shadow:0 10px 28px rgba(20,36,72,.075);
  --pb-touch-min:48px;
  --pb-touch-primary:52px;
  --pb-sidebar:276px;
  --pb-bottom-nav-h:78px;
}

html{background:var(--bg);scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-size:15px;-webkit-tap-highlight-color:transparent}
button,a,input,select,textarea,summary{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid rgba(40,84,255,.22);outline-offset:2px}

/* App shell / desktop navigation */
.sidebar{width:var(--pb-sidebar);background:#fff;color:var(--ink);border-right:1px solid var(--line);padding:18px 14px;box-shadow:none}
.sidebar .brand{padding:4px 8px 20px}
.sidebar .brand strong{font-size:15px;color:var(--ink)}
.sidebar .brand small{color:var(--muted);font-size:11px}
.brand-mark{background:linear-gradient(135deg,#2854ff,#6c8cff);box-shadow:0 8px 22px rgba(40,84,255,.24)}
.sidebar nav{gap:5px;padding-right:2px}
.nav-btn{min-height:48px;padding:0 13px;border-radius:15px;color:#526078;font-size:14px;font-weight:750}
.nav-btn .ico{width:26px;font-size:17px}
.nav-btn:hover{background:#f2f5fb;color:var(--ink)}
.nav-btn.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px #cfdaff}
.nav-btn.danger{color:var(--bad)}
.sidebar-bottom{border-top:1px solid var(--line);padding-top:12px}
.sidebar-bottom small{color:#8b95a8}
.sidebar-close{border-color:var(--line)!important;background:#f4f6fa!important;color:var(--ink)!important;width:48px!important;height:48px!important;border-radius:15px!important}
.workspace{margin-left:var(--pb-sidebar)}
.topbar{min-height:82px;height:auto;padding:14px 28px;background:rgba(246,247,251,.94);border-bottom:1px solid rgba(220,227,239,.92);backdrop-filter:blur(16px)}
.topbar h1{font-size:26px;line-height:1.12;letter-spacing:-.035em;margin-top:3px}
.topbar .eyebrow{font-size:11px;color:#78849a;letter-spacing:.14em}
.top-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end}
.sync-badge{min-height:36px;display:inline-flex;align-items:center;padding:0 11px;border-radius:999px;background:#eef8f1;border-color:#bce2ca;color:var(--good);font-weight:700}
.view{padding:26px 28px 58px;max-width:1480px;margin:0 auto}

/* Surfaces / hierarchy */
.card{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;background:#fff}
.card.flush{overflow:hidden}
.grid{gap:16px}.grid.kpi{gap:14px}
.kpi-card{min-height:126px;display:flex;flex-direction:column;justify-content:center}
.kpi-card .label{font-size:13px;font-weight:700;color:var(--muted)}
.kpi-card .value{font-size:30px;line-height:1.05;margin-top:10px;letter-spacing:-.045em}
.kpi-card .sub{font-size:13px;line-height:1.35;margin-top:7px}
.section-head{margin:28px 0 12px;align-items:center}
.section-head h2{font-size:20px;letter-spacing:-.025em}
.section-head p{font-size:13px;line-height:1.45;margin-top:5px;max-width:74ch}
.subtle-box{background:#f6f8fc;border-color:#e4e9f3;border-radius:18px;padding:16px}
.alert{border-radius:18px;padding:14px 16px;line-height:1.45}
.empty{padding:38px 22px;line-height:1.5}
.result-hero{border-radius:24px;padding:24px;box-shadow:0 12px 28px rgba(25,48,116,.18)}
.result-stat{border-radius:15px;padding:13px}

/* Controls: touch first */
.btn{min-height:var(--pb-touch-min);padding:0 16px;border-radius:15px;font-size:14px;font-weight:760;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-color:var(--line);box-shadow:0 1px 1px rgba(18,30,54,.02)}
.btn.primary{min-height:var(--pb-touch-primary);background:var(--accent);border-color:var(--accent);box-shadow:0 6px 16px rgba(40,84,255,.16)}
.btn:hover{background:#f5f7fb}.btn.primary:hover{background:#2149e6}
.btn.small{min-height:44px;padding:0 13px;font-size:13px;border-radius:14px}
.icon-btn{width:48px;height:48px;min-width:48px;border-radius:15px;border-color:var(--line);font-size:20px;background:#fff}
.link-button{min-height:44px;display:inline-flex;align-items:center;padding:0 5px}
.actions{gap:9px}
label{gap:8px;font-size:13px;color:#354058}
input,select,textarea{min-height:50px;border-radius:15px;border-color:#cad3e2;padding:11px 14px;font-size:16px;background:#fff}
textarea{min-height:112px;line-height:1.45}
input:focus,select:focus,textarea:focus{border-color:#7e9aff;box-shadow:0 0 0 4px rgba(40,84,255,.10)}
.help{font-size:12px;line-height:1.4}
.toggle-row{min-height:48px;gap:12px;align-items:center}
.toggle-row input[type="checkbox"]{width:22px;height:22px;min-height:22px;flex:0 0 auto;accent-color:var(--accent)}
input[type="checkbox"],input[type="radio"]{accent-color:var(--accent)}
.form-grid{gap:16px}.form-grid.three,.form-grid.four{gap:14px}
.file-drop{padding:16px;border-radius:18px;background:#f8f9fc}
details{border-radius:18px}details>summary{min-height:48px;display:flex;align-items:center;cursor:pointer}
.line-row{min-height:72px;border-radius:18px;background:#f8f9fc;padding:12px;gap:10px}.inline-list{gap:10px}

/* Tabs / chips */
.tabs{gap:8px;margin-bottom:18px;padding-bottom:8px;overflow:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{min-height:46px;padding:0 15px;border:1px solid transparent;border-radius:14px;white-space:nowrap}
.tab.active{background:var(--accent-soft);border-color:#cfdaff;color:var(--accent)}
.market-detail-tabs{gap:8px;overflow:auto}.market-detail-tabs button{min-height:46px;padding:0 14px;border-radius:14px;white-space:nowrap}
.pill{padding:6px 10px;font-size:12px;line-height:1.2}

/* Tables */
.table-wrap{border-radius:inherit}
.data-table th{padding:13px 16px;background:#f7f8fb;color:#6b778d;font-size:11px}
.data-table td{padding:15px 16px;font-size:14px}
.data-table tbody tr{transition:background .12s ease}.data-table tbody tr:hover{background:#fafbfe}
.data-table .btn.small{min-height:42px}.data-table select{min-height:44px;font-size:14px}
.select-col input[type="checkbox"]{width:22px!important;height:22px!important}

/* Quantity / variants */
.qty-stepper{min-height:48px;border-radius:15px;overflow:hidden}
.qty-stepper input{min-height:48px!important}.qty-stepper-buttons{min-width:48px}.qty-stepper-btn{min-width:48px;min-height:24px}
.pos-qty{gap:9px}.pos-qty button{width:44px;height:44px;border-radius:13px;font-size:22px}
.catalog-option-row{border-radius:18px;padding:14px;background:#f7f9fc}
.catalog-variant-table td:first-child strong{font-size:15px}
.variant-pick-grid{gap:12px}.variant-pick-button{min-height:82px;border-radius:18px;padding:14px 16px}.pos-variant-choice{min-height:72px}

/* Orders / invoices / integrations */
.order-filters{gap:14px}.order-detail-head{padding-bottom:6px}.order-detail-total strong{font-size:30px}
.shopify-syncbar{border-radius:18px;padding:14px 16px}.shopify-import-list{border-radius:18px}
.integration-card{min-height:88px;align-items:center}.integration-logo{width:52px;height:52px;border-radius:16px}

/* Production / inventory */
.queue-board{gap:16px;padding-bottom:5px}.queue-column{background:#edf1f7;border:1px solid #e2e7f0;border-radius:20px;padding:14px}
.job-card{border-radius:17px;padding:14px;box-shadow:0 4px 14px rgba(22,35,60,.05)}.job-card .btn.small{min-height:42px}

/* POS - only presentation. Existing B.14.2 handlers remain authoritative. */
.pos-shell{grid-template-columns:minmax(0,1.35fr) minmax(390px,.65fr);gap:16px}
.pos-products,.pos-cart-panel{border-radius:24px;padding:18px;border-color:var(--line);box-shadow:var(--shadow)}
.pos-cart-panel{top:98px}.pos-scanbar{gap:10px}.pos-scanbar input{min-height:56px;border-radius:17px;font-size:18px}.pos-scanbar .btn{min-height:56px}
.pos-tools{gap:10px;margin-top:14px}.pos-tools .btn{min-height:50px}.pos-search input{min-height:50px}
.pos-catalog{gap:12px;margin-top:16px}.pos-product{min-height:92px;border-radius:20px;padding:16px;border-color:#dbe2ed;box-shadow:0 4px 14px rgba(22,35,60,.04)}
.pos-product:hover{border-color:#adc0ff;background:#f7f9ff}.pos-product:active{transform:scale(.985)}
.pos-product strong{font-size:15px}.pos-product small{font-size:12px;line-height:1.35}.pos-product-price{font-size:18px}
.pos-cart-head{padding-bottom:14px}.pos-cart-head h2{font-size:21px}.pos-line{min-height:72px;padding:12px 0}.pos-payment{margin-top:14px;padding-top:14px}
.pos-total{padding-top:13px;gap:10px}.pos-total .grand{font-size:24px}.pos-checkout{min-height:58px!important;border-radius:17px!important;font-size:19px!important}
.pos-customer-row .btn{min-height:50px}.parked-row{min-height:70px;border-radius:17px;padding:13px 14px}

/* Modal editors. Uses the already-proven B.14.2 modal scroll lock, only changes presentation. */
.modal-backdrop{background:rgba(18,29,51,.48);backdrop-filter:blur(5px)}
.modal{width:min(1120px,100%);border-radius:24px;box-shadow:0 24px 70px rgba(12,24,48,.22);border:1px solid rgba(213,222,237,.9)}
.modal-head{padding:17px 20px;background:#fff}.modal-head h2{font-size:20px;letter-spacing:-.025em}.modal-body{padding:20px}
.modal-foot{padding:12px 20px max(12px,env(safe-area-inset-bottom));gap:10px}.modal-foot .btn{min-width:120px}
.modal-confirm{width:min(520px,100%)!important;border-radius:22px!important}.modal-confirm .modal-body{font-size:16px}

/* Login */
.login-shell{background:radial-gradient(circle at 15% 5%,#dfe7ff,transparent 34%),linear-gradient(180deg,#f7f9ff,#f6f7fb)}
.login-card{border-radius:28px;padding:30px;box-shadow:0 22px 60px rgba(20,36,72,.12)}.login-card h1{font-size:32px}.login-card .btn{min-height:54px}

/* Static native hash navigation. No JS. Hidden on desktop. */
.pb-safe-bottom-nav{display:none}

/* Toasts */
.toast-root{bottom:20px;right:20px}.toast{border-radius:15px;padding:13px 16px;font-size:14px}

@media(max-width:1100px){
  .sidebar{width:250px}.workspace{margin-left:250px}.view{padding-left:20px;padding-right:20px}
  .pos-shell{grid-template-columns:1fr}.pos-cart-panel{position:relative;top:auto}
}

@media(max-width:760px){
  body{font-size:15px;padding-bottom:calc(var(--pb-bottom-nav-h) + env(safe-area-inset-bottom))}
  body.pos-kiosk{padding-bottom:0}
  .workspace{margin-left:0}
  .topbar{min-height:70px;padding:10px 12px;gap:10px;align-items:center}
  .topbar>div:nth-child(2){min-width:0;flex:1}.topbar h1{font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar .eyebrow{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .icon-btn{display:grid;place-items:center;flex:0 0 48px}
  .top-actions{gap:6px;flex:0 0 auto}.top-actions .btn{min-width:48px;max-width:140px;min-height:48px;padding:0 11px;font-size:12px}
  .view{padding:16px 12px 30px;max-width:none}.card{padding:16px;border-radius:20px}
  .grid.kpi{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi-card{min-height:112px;padding:15px}.kpi-card .value{font-size:25px}.kpi-card .sub{font-size:11px}
  .section-head{margin:22px 0 10px;gap:12px}.section-head h2{font-size:19px}
  .section-head .actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .section-head .actions .btn{width:100%;min-width:0;white-space:normal;line-height:1.2;padding:8px 10px}
  .actions{gap:8px}.actions>.btn{min-height:48px}.btn{min-height:50px;border-radius:15px;padding:0 14px}.btn.small{min-height:46px}.btn.primary{min-height:52px}
  input,select,textarea{min-height:52px;border-radius:15px}.form-grid,.form-grid.three,.form-grid.four{gap:14px}.line-row{padding:12px;border-radius:18px}

  /* Existing B.14.2 drawer keeps its own event handlers. */
  .sidebar{width:min(90vw,360px);max-width:360px;padding:18px 12px max(16px,env(safe-area-inset-bottom));background:#fff;color:var(--ink)}
  .sidebar.open{box-shadow:24px 0 64px rgba(16,29,52,.24)}.sidebar .brand{padding-top:max(2px,env(safe-area-inset-top))}.sidebar nav{gap:5px}.nav-btn{min-height:50px;border-radius:15px}
  .sidebar-backdrop{background:rgba(18,29,51,.38);backdrop-filter:blur(4px)}

  .pb-safe-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:18;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;min-height:var(--pb-bottom-nav-h);padding:7px 8px max(7px,env(safe-area-inset-bottom));background:rgba(255,255,255,.95);border-top:1px solid var(--line);box-shadow:0 -8px 26px rgba(19,33,58,.08);backdrop-filter:blur(18px)}
  .pb-safe-bottom-nav a{min-width:0;min-height:58px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#68748b;font-size:11px;font-weight:760;line-height:1;text-decoration:none}
  .pb-safe-bottom-nav a span{font-size:20px;line-height:1.1}.pb-safe-bottom-nav a:active,.pb-safe-bottom-nav a:focus-visible{background:var(--accent-soft);color:var(--accent)}
  body.nav-open .pb-safe-bottom-nav{pointer-events:none}.sidebar.open~.pb-safe-bottom-nav{pointer-events:none}
  body.modal-open .pb-safe-bottom-nav{pointer-events:none;opacity:.35}
  body.pos-kiosk .pb-safe-bottom-nav{display:none!important}

  /* Cards generated from tables by the existing B.14.2 enhancer. */
  .responsive-data-table tbody{gap:12px}.responsive-data-table tbody tr{padding:11px 13px;border-radius:18px;box-shadow:0 5px 16px rgba(20,36,72,.045);border-color:#dfe5ef}
  .responsive-data-table tbody td{grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:12px;padding:9px 0!important}.responsive-data-table tbody td::before{font-size:10px;color:#7a8599;letter-spacing:.06em}
  .responsive-data-table td .btn{min-height:46px;margin:2px 2px 2px 0}.responsive-data-table td select{min-height:48px;width:100%}
  .tabs{margin-left:-2px;margin-right:-2px;padding:0 2px 8px}.tab{min-height:48px}.subtle-box,.alert{border-radius:17px}

  /* POS */
  .pos-shell{grid-template-columns:1fr;gap:12px}.pos-products,.pos-cart-panel{padding:14px;border-radius:20px}.pos-catalog{grid-template-columns:1fr!important;gap:10px}
  .pos-product{min-height:86px;padding:14px;border-radius:18px}.pos-scanbar{grid-template-columns:minmax(0,1fr) auto}.pos-scanbar .btn{padding-left:13px;padding-right:13px}
  .pos-tools{grid-template-columns:1fr}.pos-customer-row{grid-template-columns:1fr}.pos-cart-head{align-items:flex-start;flex-direction:column}
  .pos-cart-head .actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.pos-cart-head .actions .btn{width:100%;padding:0 6px}

  /* Mobile editors use the full visual viewport; B.14.2 owns the scrolling/lock logic. */
  .modal-backdrop{padding:0!important;align-items:stretch!important}
  .modal:not(.modal-confirm){width:100%!important;height:var(--pb-modal-vv-height,100dvh)!important;max-height:var(--pb-modal-vv-height,100dvh)!important;border:0!important;border-radius:0!important}
  .modal:not(.modal-confirm)>.modal-head{padding:12px 14px;min-height:66px}.modal:not(.modal-confirm)>.modal-head h2{font-size:19px}.modal:not(.modal-confirm)>.modal-head .icon-btn{width:48px;height:48px}
  .modal:not(.modal-confirm) .modal-body{padding:16px 14px 22px}.modal:not(.modal-confirm) .modal-foot{padding:10px 12px max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));box-shadow:0 -10px 28px rgba(19,33,58,.08)}
  .modal:not(.modal-confirm) .modal-foot .btn{min-width:0;width:100%;min-height:52px}.modal:not(.modal-confirm) .modal-foot .btn.primary{grid-column:2}
  .modal-confirm{width:min(520px,calc(100vw - 24px))!important;max-height:calc(var(--pb-modal-vv-height,100dvh) - 24px)!important;border-radius:22px!important;align-self:center}
  .modal-confirm .modal-foot{display:grid;grid-template-columns:1fr 1fr}.modal-confirm .modal-foot .btn{min-height:50px;min-width:0}

  .toast-root{left:12px;right:12px;bottom:calc(var(--pb-bottom-nav-h) + 12px + env(safe-area-inset-bottom))}.toast{width:100%;font-size:14px}
  body.pos-kiosk .toast-root{bottom:12px}
}

@media(max-width:430px){
  .grid.kpi{grid-template-columns:1fr 1fr}.kpi-card{min-height:104px}.kpi-card .value{font-size:23px}
  .section-head .actions{grid-template-columns:1fr}.pb-safe-bottom-nav a{font-size:10px}.pb-safe-bottom-nav a span{font-size:19px}
  .responsive-data-table tbody td{grid-template-columns:1fr;gap:4px}.responsive-data-table tbody td::before{margin-bottom:2px}
  .modal:not(.modal-confirm) .modal-foot{grid-template-columns:1fr}.modal:not(.modal-confirm) .modal-foot .btn.primary{grid-column:auto}
  .pos-cart-head .actions{grid-template-columns:1fr 1fr}
}

/* Kiosk: retain the fixed/scroll-safe B.14.2 layout; visual refresh only. */
body.pos-kiosk{background:#f6f7fb}
body.pos-kiosk .kiosk-topbar{background:#fff;border-bottom:1px solid var(--line);color:var(--ink)}
body.pos-kiosk .kiosk-brand small{color:var(--muted)}
body.pos-kiosk .pos-products{background:#f6f7fb}
body.pos-kiosk .pos-product{border-radius:18px;border-color:#dce3ef;box-shadow:0 4px 14px rgba(20,36,72,.045)}
body.pos-kiosk .pos-qty button{width:44px;height:44px;border-radius:13px}
body.pos-kiosk .kiosk-pay-shortcuts button{min-height:64px;border-radius:16px;padding:9px 11px;background:#f8f9fc}
body.pos-kiosk .kiosk-pay-shortcuts button.active{background:var(--accent-soft);border-color:#90a8ff;box-shadow:inset 0 0 0 1px #90a8ff}
body.pos-kiosk .pos-checkout-dock{box-shadow:0 -10px 24px rgba(20,36,72,.08)}
body.pos-kiosk .pos-checkout-dock .pos-checkout{min-height:60px;border-radius:17px}

/* --------------------------------------------------------------------------
   V3.11-B.15.2 · Sectioned Product Editor
   Shopify-inspired information architecture for touch devices.
   Business data/API semantics remain unchanged; this only reorganizes the
   product form into local, reversible editor panels.
   -------------------------------------------------------------------------- */
.pb-product-touch-home,
.pb-editor-panel-top,
.pb-editor-panel-foot,
.pb-touch-option-list,
.pb-touch-add-row,
.pb-touch-variant-list,
.pb-touch-panel-intro,
.pb-product-delete-touch{display:none}

.pb-product-modal .pb-editor-panel{margin-top:22px}
.pb-product-modal .pb-editor-panel:first-of-type{margin-top:0}
.pb-product-modal .pb-editor-panel[data-product-panel="option-detail"]{display:none}
.pb-product-modal .pb-desktop-section-head{margin:0 0 12px}
.pb-product-modal .pb-desktop-section-head h2{margin:0;font-size:20px}
.pb-product-modal .pb-desktop-section-head p{margin:5px 0 0;color:var(--muted);font-size:13px}
.pb-product-modal .pb-editor-panel[data-product-panel="general"] .pb-desktop-section-head,
.pb-product-modal .pb-editor-panel[data-product-panel="notes"] .pb-desktop-section-head{padding-bottom:4px}

.pb-touch-product-modal{position:relative;overflow:hidden}
.pb-touch-product-modal .modal-body{padding:0!important}
.pb-touch-product-modal .pb-product-touch-home{display:block;padding:16px 16px 24px}
.pb-touch-product-modal .pb-editor-panel{display:none!important;margin:0!important}
.pb-touch-product-modal .pb-editor-panel.is-open{display:flex!important;position:absolute;inset:0;z-index:70;background:#fff;flex-direction:column;overflow:hidden}
.pb-touch-product-modal.pb-has-child .modal-body{overflow:visible!important}
.pb-touch-product-modal .pb-desktop-section-head,
.pb-touch-product-modal .pb-desktop-option-list{display:none!important}
.pb-touch-product-modal .pb-editor-panel-top{display:flex;min-height:70px;padding:max(11px,env(safe-area-inset-top)) 14px 11px;align-items:center;gap:12px;border-bottom:1px solid #e7eaf0;background:#fff;flex:0 0 auto}
.pb-touch-product-modal .pb-editor-panel-top>div{min-width:0;flex:1;text-align:center;display:flex;flex-direction:column;gap:2px}
.pb-touch-product-modal .pb-editor-panel-top strong{font-size:19px;line-height:1.15;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-touch-product-modal .pb-editor-panel-top small{font-size:12px;line-height:1.2;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-touch-product-modal .pb-panel-back{width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:50%;background:#f3f4f6;color:#4a5260;font-size:31px;line-height:1;display:grid;place-items:center;cursor:pointer}
.pb-touch-product-modal .pb-editor-panel-top::after{content:"";width:44px;height:44px;flex:0 0 44px}
.pb-touch-product-modal .pb-editor-panel-scroll{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:18px 16px 28px;background:#fff}
.pb-touch-product-modal .pb-editor-panel-foot{display:flex;flex:0 0 auto;padding:10px 14px max(10px,env(safe-area-inset-bottom));border-top:1px solid #e7eaf0;background:rgba(255,255,255,.98);box-shadow:0 -8px 24px rgba(18,31,55,.06)}
.pb-touch-product-modal .pb-editor-panel-foot .btn{width:100%;min-height:48px}
.pb-touch-product-modal .pb-editor-panel-foot.pb-two-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.pb-touch-product-modal>.modal-head{min-height:66px!important;padding:10px 14px!important}
.pb-touch-product-modal>.modal-head h2{font-size:19px!important;line-height:1.18;max-width:calc(100% - 62px)}
.pb-touch-product-modal>.modal-head .icon-btn{width:46px!important;height:46px!important;min-width:46px!important}
.pb-touch-product-modal .modal-foot [data-close],
.pb-touch-product-modal .modal-foot .pb-product-delete-main{display:none!important}
.pb-touch-product-modal>.modal-foot,
.pb-touch-product-modal>#modalForm>.modal-foot{grid-template-columns:1fr!important;padding:9px 12px max(9px,env(safe-area-inset-bottom))!important}
.pb-touch-product-modal .modal-foot .btn.primary{grid-column:auto!important;width:100%;min-height:50px}

.pb-product-touch-hero{padding:17px 16px 15px;border-radius:18px;background:linear-gradient(135deg,#f3f6ff,#eef3ff);border:1px solid #dce5ff;margin-bottom:14px}
.pb-product-touch-kicker{display:block;color:#5870b8;font-size:10px;font-weight:850;letter-spacing:.11em;margin-bottom:5px}
.pb-product-touch-hero strong{display:block;font-size:21px;line-height:1.18;letter-spacing:-.025em;color:var(--ink)}
.pb-product-touch-hero small{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.35}
.pb-editor-nav-list{overflow:hidden;border:1px solid #e1e5ec;border-radius:18px;background:#fff}
.pb-editor-nav-row{width:100%;min-height:68px;border:0;border-top:1px solid #eceef2;background:#fff;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:var(--ink);cursor:pointer}
.pb-editor-nav-row:first-child{border-top:0}
.pb-editor-nav-row>span{min-width:0;display:flex;flex-direction:column;gap:4px}
.pb-editor-nav-row strong{font-size:16px;line-height:1.18}
.pb-editor-nav-row small{font-size:12px;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(68vw,560px)}
.pb-editor-nav-row>b{font-size:27px;line-height:1;color:#b1b6bf;font-weight:500}
.pb-editor-nav-row:active{background:#f7f8fb}
.pb-editor-nav-row.is-disabled{opacity:.58;cursor:default}
.pb-product-delete-touch{width:100%;min-height:48px;margin-top:14px;border:1px solid #efc0bc;border-radius:15px;background:#fff;color:var(--bad);font-size:14px;font-weight:760;cursor:pointer}

.pb-touch-product-modal input,
.pb-touch-product-modal select{min-height:46px!important;border-radius:13px!important;padding:9px 12px!important;font-size:16px!important}
.pb-touch-product-modal textarea{min-height:90px!important;border-radius:13px!important;padding:11px 12px!important;font-size:16px!important}
.pb-touch-product-modal label{gap:6px;font-size:13px}
.pb-touch-product-modal .form-grid,
.pb-touch-product-modal .form-grid.three,
.pb-touch-product-modal .form-grid.four{gap:12px}
.pb-touch-product-modal .form-grid.three{grid-template-columns:1fr 1fr}
.pb-touch-product-modal .form-grid.three>label:first-child{grid-column:1/-1}
.pb-touch-product-modal .line-row{min-height:0;padding:11px;border-radius:15px}
.pb-touch-product-modal .btn.small{min-height:44px}

.pb-touch-option-list{display:grid;gap:0;border:1px solid #e1e5ec;border-radius:17px;overflow:hidden;background:#fff}
.pb-touch-option-row{display:grid;grid-template-columns:38px 38px minmax(0,1fr);align-items:center;border-top:1px solid #eceef2;background:#fff}
.pb-touch-option-row:first-child{border-top:0}
.pb-option-reorder{width:36px;height:44px;border:0;background:#fff;color:#7d8490;font-size:17px;display:grid;place-items:center}
.pb-option-reorder:disabled{opacity:.2}
.pb-touch-option-open{min-width:0;min-height:64px;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:9px 12px 9px 8px;color:var(--ink)}
.pb-touch-option-open>span{min-width:0;display:flex;flex-direction:column;gap:4px}
.pb-touch-option-open strong{font-size:16px}
.pb-touch-option-open small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-touch-option-open>b{color:#b3b8c1;font-size:26px;font-weight:500}
.pb-touch-add-row{display:flex;width:100%;min-height:52px;margin-top:12px;border:0;border-radius:15px;background:#f5f6f8;color:#303744;align-items:center;justify-content:flex-start;gap:10px;padding:0 14px;font-size:15px;font-weight:720}
.pb-touch-add-row:disabled{opacity:.42}
.pb-touch-empty{padding:18px 15px;border:1px dashed #d6dae2;border-radius:16px;color:var(--muted);font-size:13px;line-height:1.45;background:#fafbfc}
.pb-touch-panel-intro{display:block;margin-bottom:12px;padding:12px 13px;border-radius:14px;background:#f6f7f9;color:var(--muted);font-size:12px;line-height:1.45}
.pb-touch-section-label{margin:22px 0 10px;font-size:14px;color:#343a46}
.pb-option-name-field{display:flex!important}
.pb-option-value-list{border:1px solid #e0e3e8;border-radius:16px;overflow:hidden;background:#fff}
.pb-option-value-row{display:grid;grid-template-columns:58px minmax(0,1fr) 46px;align-items:center;gap:8px;padding:8px 8px 8px 6px;border-top:1px solid #eceef2}
.pb-option-value-row:first-child{border-top:0}
.pb-option-value-row input{border:0!important;box-shadow:none!important;padding-left:4px!important;background:transparent!important}
.pb-value-move{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.pb-value-move button,.pb-value-delete{height:38px;min-width:0;border:0;border-radius:11px;background:#f4f5f7;color:#727985;font-size:15px}
.pb-value-delete{color:#9d514c;font-size:17px}

.pb-touch-variant-list{display:grid;gap:10px}
.pb-touch-variant-row{border:1px solid #e1e5ec;border-radius:16px;overflow:hidden;background:#fff}
.pb-touch-variant-main{width:100%;min-height:66px;border:0;background:#fff;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;color:var(--ink)}
.pb-touch-variant-main>span{min-width:0;display:flex;flex-direction:column;gap:4px}
.pb-touch-variant-main strong{font-size:15px}
.pb-touch-variant-main small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-touch-variant-main>b{font-size:26px;color:#b3b8c1;font-weight:500}
.pb-touch-variant-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border-top:1px solid #eceef2;background:#eceef2}
.pb-touch-variant-actions button{min-height:44px;border:0;background:#fafbfc;color:#4d5666;font-size:12px;font-weight:700}
.pb-touch-variant-actions button.danger{color:var(--bad)}

.pb-touch-product-modal #productVariantTable{display:none}
.pb-touch-product-modal #productVariantTouchList,
.pb-touch-product-modal #productOptionsTouchList,
.pb-touch-product-modal .pb-touch-add-row,
.pb-touch-product-modal .pb-touch-panel-intro,
.pb-touch-product-modal .pb-product-delete-touch{display:flex}
.pb-touch-product-modal #productVariantTouchList{display:grid}
.pb-touch-product-modal .product-model-row{grid-template-columns:minmax(0,1fr) 88px 46px;align-items:end}
.pb-touch-product-modal .product-model-row label{min-width:0}
.pb-touch-product-modal .product-model-row .btn.danger{width:44px;padding:0}

@media(min-width:761px){
  .pb-touch-product-modal{width:min(980px,calc(100vw - 34px))!important;height:min(900px,calc(var(--pb-modal-vv-height,100dvh) - 34px))!important;max-height:min(900px,calc(var(--pb-modal-vv-height,100dvh) - 34px))!important;border-radius:26px!important}
  .pb-touch-product-modal .pb-product-touch-home{padding:22px 24px 30px;max-width:820px;margin:0 auto}
  .pb-touch-product-modal .pb-editor-panel-scroll{padding:24px 28px 32px}
  .pb-touch-product-modal .pb-editor-panel-top{padding-left:22px;padding-right:22px}
  .pb-touch-product-modal .pb-editor-panel-foot{padding-left:24px;padding-right:24px}
  .pb-touch-product-modal .pb-editor-nav-row small{max-width:620px}
}

@media(max-width:760px){
  .pb-touch-product-modal .pb-product-touch-home{padding:14px 12px 22px}
  .pb-touch-product-modal .pb-editor-panel-scroll{padding:16px 14px 24px}
  .pb-touch-product-modal .pb-product-touch-hero{margin-bottom:12px}
}

@media(max-width:430px){
  .pb-touch-product-modal .form-grid.three{grid-template-columns:1fr}
  .pb-touch-product-modal .form-grid.three>label:first-child{grid-column:auto}
  .pb-touch-product-modal .pb-editor-panel-foot.pb-two-actions{grid-template-columns:1fr 1fr!important}
  .pb-touch-product-modal .product-model-row{grid-template-columns:minmax(0,1fr) 80px 44px}
  .pb-editor-nav-row{min-height:64px}
}
.pb-touch-product-modal>form{position:relative}
.pb-touch-product-modal.pb-has-child>.modal-head{display:none!important}
.pb-touch-product-modal.pb-has-child>form>.modal-body{overflow:hidden!important}

/* Desktop guard: touch-only product editor helpers must never leak into the
   regular desktop product form. The touch mode is activated exclusively by
   .pb-touch-product-modal in app.js. */
.pb-product-modal:not(.pb-touch-product-modal) .pb-touch-option-list,
.pb-product-modal:not(.pb-touch-product-modal) .pb-touch-add-row,
.pb-product-modal:not(.pb-touch-product-modal) .pb-touch-variant-list,
.pb-product-modal:not(.pb-touch-product-modal) .pb-touch-panel-intro,
.pb-product-modal:not(.pb-touch-product-modal) .pb-product-delete-touch{
  display:none!important;
}

/* V3.11-B.15.3 · compact chrome, simplified product list, adaptive dialog sections */
.sync-badge{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  overflow:hidden;
  font-size:17px!important;
  line-height:1!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.top-actions{min-width:22px;justify-content:flex-end}
.product-list-simple .product-list-row{cursor:pointer}
.product-list-simple .product-list-row:hover{background:#f8faff}
.product-list-simple .stock-warn{color:var(--warn)}
.product-open-chevron{min-width:44px!important;width:44px!important;padding:0!important;font-size:25px!important;font-weight:500!important;border-color:transparent!important;background:transparent!important;color:var(--muted)!important}

/* Generic touch dialog navigation. JavaScript only applies this class to touch workspaces. */
.pb-adaptive-modal{position:relative;overflow:hidden}
.pb-adaptive-modal .modal-body{position:relative}
.pb-generic-modal-home{display:block;padding:2px 0 10px}
.pb-generic-modal-intro{padding:15px 16px 14px;border:1px solid #dce5ff;border-radius:18px;background:linear-gradient(135deg,#f4f7ff,#eef3ff);margin-bottom:14px}
.pb-generic-modal-intro>span{display:block;color:#5870b8;font-size:10px;font-weight:850;letter-spacing:.11em;margin-bottom:5px}
.pb-generic-modal-intro>strong{display:block;font-size:20px;line-height:1.2;letter-spacing:-.02em;color:var(--ink)}
.pb-generic-modal-intro>small{display:block;margin-top:6px;color:var(--muted);font-size:12px}
.pb-generic-modal-panel{display:none!important}
.pb-adaptive-modal.pb-has-generic-child .modal-body{overflow:hidden!important;padding:0!important}
.pb-adaptive-modal.pb-has-generic-child>.modal-head{display:none!important}
.pb-adaptive-modal.pb-has-generic-child form>.modal-foot{display:none!important}
.pb-adaptive-modal .pb-generic-modal-panel.is-open{display:flex!important;position:absolute;inset:0;z-index:80;background:#fff;flex-direction:column;overflow:hidden}
.pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-top{display:flex;min-height:68px;padding:max(10px,env(safe-area-inset-top)) 14px 10px;align-items:center;gap:10px;border-bottom:1px solid #e7eaf0;background:#fff;flex:0 0 auto}
.pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-top>div{min-width:0;flex:1;text-align:center;display:flex;flex-direction:column;gap:2px}
.pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-top strong{font-size:18px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-top small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-adaptive-modal .pb-generic-modal-panel .pb-panel-back,
.pb-adaptive-modal .pb-generic-modal-panel .pb-panel-close{width:44px;height:44px;min-width:44px;border:0;border-radius:50%;display:grid;place-items:center;background:#f3f4f6;color:#4a5260;cursor:pointer}
.pb-adaptive-modal .pb-generic-modal-panel .pb-panel-back{font-size:30px;line-height:1}
.pb-adaptive-modal .pb-generic-modal-panel .pb-panel-close{font-size:25px;line-height:1}
.pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-scroll{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 16px 24px;background:#fff}
.pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-foot{display:flex;flex:0 0 auto;padding:9px 14px max(9px,env(safe-area-inset-bottom));border-top:1px solid #e7eaf0;background:rgba(255,255,255,.98);box-shadow:0 -8px 24px rgba(18,31,55,.06)}
.pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-foot .btn{width:100%;min-height:48px}

/* MakerWorld importer */
.makerworld-profile-list{display:grid;gap:10px}
.makerworld-profile{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:#fff;cursor:pointer}
.makerworld-profile:has(input:checked){border-color:#9fb1ff;background:#f4f7ff;box-shadow:0 0 0 2px rgba(40,84,255,.07)}
.makerworld-profile input{width:22px;height:22px;min-height:22px;margin:2px 0 0}
.makerworld-profile strong{display:block;font-size:14px;line-height:1.3}
.makerworld-profile small{display:block;color:var(--muted);margin-top:4px;line-height:1.35}
.makerworld-preview-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.makerworld-preview-meta .pill{font-size:12px}

@media(max-width:760px){
  /* Still finger-safe, but less vertically wasteful than B.15.1. */
  .btn{min-height:46px!important;padding:0 13px!important}
  .btn.primary{min-height:48px!important}
  .btn.small{min-height:42px!important}
  input,select{min-height:46px!important;padding:9px 12px!important;border-radius:13px!important}
  textarea{min-height:82px!important;padding:10px 12px!important;border-radius:13px!important}
  .form-grid,.form-grid.three,.form-grid.four{gap:11px!important}
  .modal:not(.modal-confirm)>.modal-head{min-height:60px!important;padding:8px 12px!important}
  .modal:not(.modal-confirm)>.modal-head .icon-btn{width:44px!important;height:44px!important;min-width:44px!important}
  .modal:not(.modal-confirm) .modal-body{padding:13px 12px 18px}
  .modal:not(.modal-confirm) .modal-foot{padding:8px 10px max(8px,env(safe-area-inset-bottom))}
  .modal:not(.modal-confirm) .modal-foot .btn{min-height:48px!important}
  .pb-generic-modal-intro{padding:13px 14px 12px;margin-bottom:11px}
  .pb-editor-nav-row{min-height:58px!important;padding:10px 12px!important}
  .pb-editor-nav-row strong{font-size:15px!important}
  .pb-editor-nav-row small{font-size:12px!important;margin-top:3px!important}
  .product-list-simple .responsive-data-table tbody tr{padding:13px 14px!important}
  .product-list-simple .responsive-data-table td{padding:7px 0!important;min-height:34px!important}
  .product-list-simple .responsive-data-table td[data-label="Produkt"] strong{font-size:16px}
}

@media(min-width:761px) and (max-width:1400px) and (pointer:coarse){
  .pb-adaptive-modal{width:min(980px,calc(100vw - 34px))!important;height:min(900px,calc(var(--pb-modal-vv-height,100dvh) - 34px))!important;max-height:min(900px,calc(var(--pb-modal-vv-height,100dvh) - 34px))!important;border-radius:26px!important}
  .pb-adaptive-modal .pb-generic-modal-home{max-width:820px;margin:0 auto;padding:4px 4px 22px}
  .pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-scroll{padding:22px 26px 30px}
  .pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-top{padding-left:22px;padding-right:22px}
  .pb-adaptive-modal .pb-generic-modal-panel .pb-editor-panel-foot{padding-left:24px;padding-right:24px}
}

/* V3.11-B.15.3.5 · compact mobile lists */
.pb-mobile-list-toolbar,.pb-mobile-row-more,.pb-mobile-more-cell{display:none}
@media(max-width:760px){
  /* Dense native-app style list toolbar */
  .pb-mobile-list-toolbar{display:block;margin:8px 0 10px;padding:0 2px}
  .pb-mobile-list-search{height:44px;display:flex;align-items:center;gap:9px;padding:0 12px;border-radius:14px;background:#f2f4f7;border:1px solid #edf0f4;color:#7c8798}
  .pb-mobile-list-search>span{font-size:22px;line-height:1;transform:translateY(-1px)}
  .pb-mobile-list-search input{min-height:0!important;height:40px!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;font-size:15px!important;color:var(--ink)}
  .pb-mobile-list-search input:focus{outline:0!important;box-shadow:none!important}
  .pb-mobile-filter-chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:8px 0 2px;-webkit-overflow-scrolling:touch}
  .pb-mobile-filter-chips::-webkit-scrollbar{display:none}
  .pb-mobile-filter-chip{flex:0 0 auto;min-height:36px;padding:0 13px;border:0;border-radius:999px;background:transparent;color:#3f4859;font-size:13px;font-weight:680;white-space:nowrap}
  .pb-mobile-filter-chip.active{background:#eef0f4;color:#171d29;font-weight:800}
  .pb-mobile-filtered-out{display:none!important}

  /* Tables become compact one-line rows; tap ⋯ to expose full legacy detail row. */
  .pb-mobile-compact-table{width:100%!important}
  .pb-mobile-compact-table thead{display:none!important}
  .pb-mobile-compact-table tbody{display:block!important;gap:0!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;min-height:52px;padding:8px 10px!important;margin:0!important;border:0!important;border-bottom:1px solid #e9edf3!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;cursor:pointer;position:relative}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row:last-child{border-bottom:0!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row>td{display:none!important;padding:0!important;margin:0!important;min-height:0!important;border:0!important;grid-template-columns:none!important;gap:0!important;font-size:13px!important;line-height:1.25!important;background:transparent!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row>td::before{display:none!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row>td.pb-mobile-primary,
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row>td.pb-mobile-status,
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row>td.pb-mobile-value{display:block!important}
  .pb-mobile-compact-table td.pb-mobile-primary{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#252d3c}
  .pb-mobile-compact-table td.pb-mobile-primary strong{font-size:14px!important;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}
  .pb-mobile-compact-table td.pb-mobile-primary br,
  .pb-mobile-compact-table td.pb-mobile-primary small,
  .pb-mobile-compact-table td.pb-mobile-status br,
  .pb-mobile-compact-table td.pb-mobile-status small{display:none!important}
  .pb-mobile-compact-table td.pb-mobile-primary .pill{font-size:10px!important;padding:3px 6px!important;margin-left:4px;vertical-align:1px}
  .pb-mobile-compact-table td.pb-mobile-status{white-space:nowrap;max-width:108px;overflow:hidden;text-overflow:ellipsis;color:#667085;font-size:12px!important;text-align:right}
  .pb-mobile-compact-table td.pb-mobile-status .pill{padding:4px 7px!important;font-size:10px!important;max-width:98px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pb-mobile-compact-table td.pb-mobile-status select{min-height:34px!important;height:34px!important;max-width:108px;width:auto!important;padding:3px 25px 3px 8px!important;border-radius:10px!important;font-size:11px!important;background-position:right 6px center!important}
  .pb-mobile-compact-table td.pb-mobile-value{white-space:nowrap;text-align:right;font-size:13px!important;font-weight:760;color:#424b5c}
  .pb-mobile-compact-table td.pb-mobile-select input[type="checkbox"]{width:20px;height:20px;min-height:20px;margin:0}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row>td.pb-mobile-more-cell{display:block!important;width:34px!important}
  .pb-mobile-row-more{display:grid!important;place-items:center;width:34px;height:34px;min-width:34px;padding:0!important;border:0;border-radius:50%;background:transparent;color:#7c8798;font-size:20px;line-height:1;cursor:pointer}
  .pb-mobile-row-openable:active{background:#f7f8fb!important}

  /* Expanded state preserves every original field and action, so compact mode loses no function. */
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded{display:block!important;margin:6px 0!important;padding:10px 12px!important;border:1px solid #dde4ee!important;border-radius:14px!important;box-shadow:0 5px 16px rgba(20,36,72,.045)!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td{display:grid!important;grid-template-columns:minmax(88px,32%) minmax(0,1fr)!important;gap:10px!important;padding:7px 0!important;min-height:32px!important;align-items:start}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td::before{display:block!important;content:attr(data-label);font-size:9px;color:#7a8599;font-weight:800;letter-spacing:.045em;text-transform:uppercase;padding-top:3px}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td.mobile-table-full-row{grid-template-columns:1fr!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td.mobile-table-full-row::before{display:none!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td.pb-mobile-actions{display:flex!important;flex-wrap:wrap;gap:6px;align-items:center}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td.pb-mobile-actions::before{display:none!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td.pb-mobile-actions .btn{min-height:38px!important;padding:0 10px!important;font-size:12px!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td.pb-mobile-more-cell{display:block!important;float:right;width:34px!important;margin-top:4px!important;padding:0!important}
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-expanded>td.pb-mobile-more-cell::before{display:none!important}

  /* Product list stays one-tap-to-open and extremely dense. */
  .product-list-simple .pb-mobile-list-toolbar{margin-top:0}
  .product-list-simple .pb-mobile-compact-row{min-height:50px!important}
  .product-list-simple .pb-mobile-primary strong{font-size:14px!important}

  /* Existing large filter forms are redundant on phones when the quick filter bar is present. */
  #view .order-filters{display:none!important}
  #view section.card:has(> label.order-search){padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;margin:0!important}
  #view section.card:has(> label.order-search)>label.order-search{display:none!important}

  /* Queue: turn board into a dense list while retaining job controls on expansion. */
  .pb-mobile-compact-queue{display:block!important}
  .pb-mobile-compact-queue .queue-column{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
  .pb-mobile-compact-queue .queue-column>h3{font-size:11px!important;text-transform:uppercase;letter-spacing:.05em;color:#7a8599;margin:10px 4px 4px!important;padding:0!important}
  .pb-mobile-compact-queue .queue-column>div{display:block!important}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row{min-height:50px!important;margin:0!important;padding:9px 10px!important;border:0!important;border-bottom:1px solid #e9edf3!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;cursor:pointer;overflow:hidden}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px!important;padding-right:8px}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px!important;color:#7a8599;margin-top:2px}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row>label,
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row>.mini-actions{display:none!important}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row.pb-mobile-expanded{margin:6px 0!important;padding:12px!important;border:1px solid #dde4ee!important;border-radius:14px!important;box-shadow:0 5px 16px rgba(20,36,72,.045)!important}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row.pb-mobile-expanded>label{display:block!important;margin-top:8px!important}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row.pb-mobile-expanded>.mini-actions{display:flex!important;margin-top:8px!important;gap:6px!important;flex-wrap:wrap}
  .pb-mobile-compact-queue .job-card.pb-mobile-job-row.pb-mobile-expanded>.mini-actions .btn{min-height:38px!important;padding:0 10px!important}

  /* General list-view density: headings and list cards use less vertical space. */
  #view .card.flush{border-radius:16px!important}
  #view .card.flush>.table-wrap{border-radius:16px!important;overflow:hidden}
  #view .section-head:has(+ .pb-mobile-list-toolbar),
  #view .section-head:has(~ .card .pb-mobile-list-toolbar){margin-bottom:7px!important}
}

/* V3.11-B.15.3.6 — compact mobile list fixes + MakerWorld plate breakdown */
.pb-makerworld-plates{margin-top:18px}
.pb-makerworld-plate-list{display:grid;gap:8px}
.pb-makerworld-plate-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.pb-makerworld-plate-row>div{min-width:0}
.pb-makerworld-plate-row strong{display:block;font-size:14px}
.pb-makerworld-plate-row small{display:block;margin-top:3px;color:#6d788b;font-size:12px;line-height:1.35}
.pb-makerworld-plate-row img{width:58px;height:58px;object-fit:cover;border-radius:10px;border:1px solid var(--line);flex:0 0 auto}
.pb-makerworld-plates.compact{margin:14px 0}
.pb-makerworld-plates.compact .section-head{margin-bottom:8px}

@media(max-width:760px){
  /* Filter/search classes must win against compact row display:grid !important. */
  .pb-mobile-compact-table tbody tr.pb-mobile-compact-row.pb-mobile-filtered-out{display:none!important}
  .pb-mobile-compact-queue .queue-column.pb-mobile-filtered-out{display:none!important}

  /* Order status: collapsed rows always use the same pill visual language. */
  .pb-mobile-compact-table td.pb-mobile-status .pb-mobile-status-summary{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pb-mobile-compact-table td.pb-mobile-status select[data-status]{display:none!important}
  .pb-mobile-compact-table tr.pb-mobile-expanded td.pb-mobile-status .pb-mobile-status-summary{display:none!important}
  .pb-mobile-compact-table tr.pb-mobile-expanded td.pb-mobile-status select[data-status]{display:block!important;max-width:100%;width:100%!important;height:42px!important}

  /* Model list: only VK is visible in the collapsed row; image/details move to expansion. */
  .pb-mobile-compact-table td.pb-mobile-model-price{text-align:right!important;min-width:72px}
  .pb-mobile-compact-table td.pb-mobile-model-price .pb-model-ek,
  .pb-mobile-compact-table td.pb-mobile-model-price>br,
  .pb-mobile-compact-table td.pb-mobile-model-price .pb-model-vk-label{display:none!important}
  .pb-mobile-compact-table td.pb-mobile-model-price .pb-model-vk{display:block!important;font-size:13px!important;font-weight:800!important;color:#424b5c!important;white-space:nowrap}
  .pb-mobile-compact-table td.pb-mobile-primary .pb-model-thumb{display:none!important}
  .pb-mobile-compact-table tr.pb-mobile-expanded td.pb-mobile-model-price .pb-model-ek{display:block!important}
  .pb-mobile-compact-table tr.pb-mobile-expanded td.pb-mobile-model-price>br{display:block!important}
  .pb-mobile-compact-table tr.pb-mobile-expanded td.pb-mobile-model-price .pb-model-vk-label{display:inline!important}
  .pb-mobile-compact-table tr.pb-mobile-expanded td.pb-mobile-primary .pb-model-thumb{display:grid!important}
  .pb-mobile-compact-table tr.pb-mobile-expanded td.pb-mobile-primary .pb-model-name-wrap{display:flex!important;gap:10px;align-items:flex-start}

  .pb-makerworld-plates{margin-top:12px}
  .pb-makerworld-plates .section-head h2{font-size:16px!important}
  .pb-makerworld-plates .section-head p{font-size:11px!important}
  .pb-makerworld-plate-row{padding:10px 11px;border-radius:12px}
  .pb-makerworld-plate-row img{width:48px;height:48px}
}
