/* ZakupPRO: responsive constraints for existing templates and controls. */
/* The rotating illustration belongs inside the hero, including its transformed bounds. */
.hero {overflow:hidden!important;overflow:clip!important}
:is(#adminApp,#cabinetApp,#app) {
  width:100%;max-width:1540px;min-width:0;box-sizing:border-box;
}
body :is(#adminApp,#cabinetApp,#app)::before {right:0!important;max-width:100%!important}
:is(#adminApp,#cabinetApp,#app) :is(section,main,nav,.detail-page,.detail-card,.table-wrap,.detail-header,.header-btns,.header-actions,.admin-header__titlebar,.cabinet-filter-fields,.cabinet-bulk-actions,.admin-form-grid,.cabinet-form-grid,.detail-row,.currency-input-wrap,.detail-currency-wrap,.admin-crm-work-column,.admin-chat-conversation,.publication-layout)>* {min-width:0}
:is(#adminApp,#cabinetApp,#app) :is(input,select,textarea) {min-width:0;max-width:100%;box-sizing:border-box}
:is(#adminApp,#cabinetApp,#app) :is(button,.btn-filter,.btn-icon,.btn-save-order,.btn-back) {max-width:100%;white-space:normal;overflow-wrap:anywhere}
:is(#adminApp,#cabinetApp,#app) [hidden] {display:none!important}
#adminControls[style*="display: none"],#statsGrid[style*="display: none"] {display:none!important}
body .toast {right:16px!important;left:auto!important;max-width:calc(100vw - 32px)!important;min-width:0!important;visibility:hidden;transform:translateY(-12px)!important;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
body .toast.show {visibility:visible;transform:translateY(0)!important}
body :is(#adminApp,#cabinetApp,#app) .admin-header__titlebar {min-width:0!important;flex-wrap:wrap}
body :is(#adminApp,#cabinetApp,#app) .admin-header__titlebar h1 {min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
body :is(#adminApp,#cabinetApp,#app) .admin-command-menu {flex-wrap:wrap!important;min-width:0}
body :is(#adminApp,#cabinetApp,#app) .admin-command-menu>input[type="file"] {display:none!important}
body :is(#adminApp,#cabinetApp,#app) .admin-command-menu :is(a,button,.cabinet-user-badge) {min-width:0!important;white-space:normal!important;line-height:1.4}
body :is(#adminApp,#cabinetApp,#app) .admin-command-menu i {flex-shrink:0}
body :is(#adminApp,#cabinetApp) .stat-value {overflow-wrap:anywhere}

/* Filters wrap as complete controls instead of expanding a grid track. */
body #adminApp #adminControls {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
body #adminApp #adminControls .filter-group {grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto!important;gap:10px!important}
body #adminApp #adminControls .filter-group :is(input,select,button) {width:100%!important;min-width:0!important}
body #adminApp #adminControls>.admin-bulk-actions {grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;min-width:0!important;width:100%!important;gap:12px!important}
body #adminApp #adminControls>.admin-bulk-actions .btn-filter {width:auto!important;min-width:0!important}
body #adminApp #adminControls[style*="display: none"] {display:none!important}
body #cabinetApp .cabinet-filter-panel {min-width:0;flex-wrap:wrap!important}
body #cabinetApp .cabinet-filter-fields {display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto!important;flex:1 1 580px!important;width:100%;gap:12px!important}
body #cabinetApp .cabinet-filter-control {min-width:0!important;width:100%!important}
body #cabinetApp .cabinet-bulk-actions {flex-wrap:wrap!important;min-width:0!important;gap:10px!important}
body #cabinetApp .cabinet-bulk-actions>button {min-width:0!important}

/* Desktop tables use the space available in their card. */
body #adminApp #adminOrdersTable,body #cabinetApp #cabinetOrdersTable,body #adminApp #adminUsersTable {width:100%!important;min-width:0!important;table-layout:fixed!important}
body :is(#adminApp,#cabinetApp) :is(#adminOrdersTable,#cabinetOrdersTable,#adminUsersTable) :is(th,td) {min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
body #adminApp #adminOrdersTable th:first-child,body #cabinetApp #cabinetOrdersTable th:first-child {width:38px!important}
body #adminApp #adminOrdersTable th:last-child {width:120px!important}
body #cabinetApp #cabinetOrdersTable th:last-child {width:220px!important}
body :is(#adminApp,#cabinetApp) .status-badge {max-width:100%;white-space:normal!important;overflow-wrap:anywhere;line-height:1.4;gap:6px}
body :is(#adminApp,#cabinetApp) .status-badge i {flex-shrink:0}
body #adminApp #adminUsersTable th:first-child {width:34px!important}
body #adminApp #adminUsersTable th:nth-child(2) {width:45px!important}
body #adminApp #adminUsersTable th:nth-child(6) {width:65px!important}
body #adminApp #adminUsersTable th:last-child {width:145px!important}
body #adminApp .user-actions {display:flex;flex-wrap:wrap;gap:6px}
body #adminApp .user-actions>button {flex:1 1 90px;justify-content:center}
body #cabinetApp .action-group {display:flex!important;gap:7px!important;min-width:0!important;flex-wrap:wrap!important}
body #cabinetApp .action-group>button {flex:1 1 85px!important;min-width:0!important;padding:8px!important}

body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) :is(.goods-edit-wrap,.admin-goods-table-wrap) {min-width:0!important;max-width:100%!important;max-height:none!important;overflow:visible!important}
body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) :is(#goodsEditTable,#goodsTable,.goods-edit-table) {width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table :is(input,select) {min-width:0!important;max-width:100%!important}
body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table :is(.goods-link-field,.goods-link-wrap,.product-link-wrap,.currency-input-wrap) {min-width:0!important;max-width:100%!important}
body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table :is(.goods-link-field,.goods-link-wrap,.product-link-wrap) {display:flex!important;align-items:center!important;gap:5px!important}
body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table :is(.goods-link-field,.goods-link-wrap,.product-link-wrap)>input {flex:1 1 0!important;width:0!important;min-width:0!important}
body #adminApp #goodsEditTable .purchase-toggle {position:relative!important;display:inline-flex!important;width:34px!important;min-width:34px!important;height:30px!important;max-width:100%!important;padding:0!important}
body #adminApp #goodsEditTable .purchase-toggle input[type="checkbox"] {position:absolute!important;inset:0!important;width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer}
body #adminApp #goodsEditTable .purchase-toggle__track {width:32px!important;min-width:32px!important}
body #adminApp #goodsEditTable .purchase-toggle input:focus-visible+.purchase-toggle__track {outline:2px solid #6c5ce7;outline-offset:2px}
body #adminApp #goodsEditTable .btn-remove-row {width:26px!important;min-width:0!important;max-width:100%!important}

/* Work cards: shrinking columns, full-width inputs, flexible summaries. */
body #adminApp :is(.admin-info-split,.admin-comment-history-grid,.admin-form-grid) {grid-template-columns:repeat(2,minmax(0,1fr))!important}
body #adminApp .admin-client-info-card .detail-row {grid-column:auto!important;grid-row:auto!important}
body #adminApp .admin-client-info-card .detail-row[data-field="dAddress"] {grid-column:1/-1!important}
body #adminApp .admin-china-shipping__head {flex-wrap:wrap;gap:12px}
body #adminApp .admin-china-shipping__summary {flex-wrap:wrap;min-width:0;max-width:100%}
body #adminApp .admin-china-shipping__row {grid-template-columns:32px minmax(0,1fr) minmax(0,1.2fr) 38px;gap:9px;min-width:0}
body #adminApp .admin-china-shipping__row label {min-width:0}
body #adminApp .admin-payment-row {grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 38px;min-width:0}
body #adminApp .russia-track-row {grid-template-columns:28px minmax(0,1.2fr) minmax(0,1fr) 36px!important}
body #adminApp .admin-services-list {grid-template-columns:repeat(2,minmax(0,1fr))!important}
body #adminApp .admin-services-list>#dServiceSumAdmin {grid-column:1/-1;min-width:0!important}
body #adminApp .admin-services-list>label {min-width:0!important;white-space:normal!important;line-height:1.5}
body #adminApp .global-discount-controls {grid-template-columns:100px minmax(0,1fr) minmax(0,1fr)!important}
body #adminApp .global-discount-controls .detail-currency-wrap {min-width:0!important}
body #adminApp .global-discount-controls input {width:100%;min-width:0}
body #adminApp .history-item .time {white-space:normal!important;padding:0!important}
body #adminApp .history-item__icon {align-items:center!important;justify-content:center!important}
body #cabinetApp .cabinet-track-item {min-width:0;grid-template-columns:28px minmax(0,1fr) auto}
body #cabinetApp .cabinet-track-item :is(span,small) {overflow-wrap:anywhere;min-width:0}
body #cabinetApp .cabinet-track-item small {grid-column:2}
body #cabinetApp .cabinet-track-item .tracking-open {grid-column:3;grid-row:1/3}
body #app .saved-client-card__head {flex-wrap:wrap;gap:12px}
body #app .saved-client-card__list>div {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
body #app .client-data-choice__heading {flex-wrap:wrap;gap:10px}

/* Analytics remains readable with long dates and all grouping modes. */
body #adminApp .analytics-summary {grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}
body #adminApp .analytics-summary strong {overflow-wrap:anywhere}
body #adminApp .analytics-legend {flex-wrap:wrap;gap:10px 18px}
body #adminApp .analytics-legend span {display:flex;align-items:center;gap:6px}
body #adminApp .analytics-legend span:before {content:'';width:9px;height:9px;border-radius:3px;background:#6c5ce7}
body #adminApp .analytics-legend span:nth-child(2):before {background:#00b894}
body #adminApp .analytics-legend span:nth-child(3):before {background:#f6b93b}
body #adminApp .analytics-chart {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr));height:auto;gap:20px 12px;overflow:visible;align-items:end}
body #adminApp .analytics-group {min-width:0;height:auto}
body #adminApp .analytics-group strong {white-space:normal;overflow-wrap:anywhere}
body #adminApp .analytics-bars {height:180px}
body #adminApp .analytics-empty {grid-column:1/-1;padding:30px 12px;text-align:center;color:#777187}

@media(min-width:1600px) {
 body #adminApp #adminControls {grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,1.8fr)!important}
 body #adminApp #adminControls .filter-group {grid-column:auto!important}
}
@media(max-width:1399px) {
 body #adminApp #adminUsersTable {display:block!important}
 body #adminApp #adminUsersTable thead {display:none!important}
 body #adminApp #usersTableBody {display:grid;gap:14px}
 body #adminApp #usersTableBody tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;padding:18px;border:1px solid #e8e5f1;border-radius:15px;background:#fff}
 body #adminApp #usersTableBody td {display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:auto!important;padding:0!important;border:0!important;text-align:left!important;background:transparent!important}
 body #adminApp #usersTableBody td:before {display:block;content:var(--cell-label,attr(data-label));font-size:10px;font-weight:800;color:#827d98;text-transform:uppercase}
 body #adminApp #usersTableBody td:last-child {grid-column:1/-1}
 body #adminApp .users-table-wrap {border:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
 body #adminApp .global-discount-card {display:grid!important;grid-template-columns:1fr!important;gap:18px}
}
@media(max-width:1199px) {
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table {display:block!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table thead {display:none!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody {display:grid!important;width:100%!important;gap:14px!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody tr:not(.goods-empty) {position:relative!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin:0!important;padding:16px!important;border:1px solid #e4e0ee!important;border-radius:14px!important;background:#fff!important;box-sizing:border-box!important;overflow:visible!important;box-shadow:0 5px 16px rgba(42,34,94,.04)!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody tr:not(.goods-empty)>td {display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:6px!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;text-align:left!important;background:transparent!important;box-sizing:border-box!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody tr:not(.goods-empty)>td:before {display:block!important;content:var(--cell-label,attr(data-label))!important;position:static!important;color:#827d98!important;font-size:10px!important;line-height:1.4!important;font-weight:800!important;letter-spacing:.02em!important;text-transform:uppercase!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody tr:not(.goods-empty)>td:first-child {grid-column:1/-1;display:flex!important;flex-direction:row!important;gap:6px!important;align-items:center!important;color:#6c5ce7!important;font-weight:800!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody tr:not(.goods-empty)>td:first-child:before {display:none!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody tr:not(.goods-empty)>td[colspan] {grid-column:1/-1}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody td[data-label="Ссылка"] {grid-column:span 2}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody td:last-child {justify-content:flex-end!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table :is(input,select) {min-height:40px!important;height:40px!important;font-size:13px!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) :is(.goods-edit-wrap,.admin-goods-table-wrap) {border:0!important;background:transparent!important;box-shadow:none!important}
 body #adminApp #goodsEditTable .btn-remove-row {width:100%!important;height:40px!important}
 body #adminApp .admin-crm-work-grid {grid-template-columns:minmax(0,1fr)!important}
 body #adminApp .admin-order-hero {grid-template-columns:minmax(0,1fr) auto!important}
 body #adminApp .admin-order-hero__actions {grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body #app .client-data-choice__options {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:1023px) {
 body #cabinetApp #cabinetOrdersTable,body #adminApp #adminOrdersTable {display:block!important}
 body #cabinetApp #cabinetOrdersTable thead,body #adminApp #adminOrdersTable thead {display:none!important}
 body #cabinetApp #ordersTableBody,body #adminApp #ordersTableBody {display:grid!important;gap:14px!important;width:100%!important}
 body #cabinetApp #ordersTableBody .cabinet-order-row,body #adminApp #ordersTableBody>tr {display:block!important;width:100%!important;margin:0!important;padding:14px!important;border:1px solid #e5e1ed!important;border-radius:15px!important;background:#fff!important;box-sizing:border-box!important}
 body #cabinetApp #ordersTableBody .cabinet-order-row>td,body #adminApp #ordersTableBody>tr>td {display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;align-items:center!important;gap:10px!important;width:100%!important;max-width:none!important;height:auto!important;min-height:36px!important;padding:8px 0!important;border:0!important;border-bottom:1px solid #f0edf5!important;text-align:right!important;background:transparent!important}
 body #cabinetApp #ordersTableBody .cabinet-order-row>td:before,body #adminApp #ordersTableBody>tr>td:before {display:block!important;content:var(--cell-label,attr(data-label))!important;color:#827d98!important;font-size:10px!important;font-weight:800!important;text-align:left!important;text-transform:uppercase!important}
 body #cabinetApp #ordersTableBody .cabinet-order-row>td:last-child,body #adminApp #ordersTableBody>tr>td:last-child {display:block!important;width:100%!important;border:0!important;padding-top:12px!important}
 body #cabinetApp #ordersTableBody .cabinet-order-row>td:last-child:before,body #adminApp #ordersTableBody>tr>td:last-child:before {display:none!important}
 body :is(#cabinetApp,#adminApp) #ordersTableBody td>* {min-width:0!important;max-width:100%;justify-self:end}
 body #cabinetApp .cabinet-orders-table-wrap,body #adminApp #listPage .table-wrap {border:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
 body #adminApp #ordersTableBody .btn-detail {width:100%;justify-content:center}
 body #cabinetApp .cabinet-order-row .action-group {width:100%!important;max-width:100%!important}
 body #adminApp :is(.admin-info-split,.admin-comment-history-grid) {grid-template-columns:minmax(0,1fr)!important}
 body #adminApp .admin-form-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body #adminApp .admin-status-card .status-selector {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px) {
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody tr:not(.goods-empty) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:13px!important}
 body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody td[data-label="Наименование"],body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table tbody td[data-label="Ссылка"] {grid-column:1/-1!important}
 body #adminApp #adminControls .filter-group {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body #adminApp #adminControls>.admin-bulk-actions {display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 body #adminApp #adminControls .selected-count {text-align:right!important}
 body #adminApp #adminControls .btn-filter {justify-content:center}
 body #cabinetApp .cabinet-filter-fields {grid-template-columns:minmax(0,1fr)!important;flex-basis:auto!important}
 body #adminApp #usersTableBody tr {grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}
 body #adminApp #usersTableBody td:nth-child(4) {grid-column:1/-1}
 body #adminApp .global-discount-controls {grid-template-columns:minmax(0,1fr)!important}
 body #adminApp .admin-china-shipping__row,body #adminApp .admin-payment-row {grid-template-columns:28px minmax(0,1fr) 36px!important}
 body #adminApp :is(.admin-china-shipping__row,.admin-payment-row)>label {grid-column:2!important}
 body #adminApp :is(.admin-china-shipping__number,.admin-payment-number) {grid-column:1!important;grid-row:1/3!important}
 body #adminApp :is(.admin-china-shipping__remove,.admin-payment-remove) {grid-column:3!important;grid-row:1/3!important;align-self:center}
 body #adminApp .russia-track-row {grid-template-columns:26px minmax(0,1fr) 36px!important}
 body #adminApp .russia-track-company {grid-column:2!important;grid-row:2!important}
 body #adminApp .russia-track-remove {grid-column:3!important;grid-row:1/3!important}
 body #adminApp .admin-order-hero__actions {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body #adminApp .admin-order-hero__actions .btn-save-order {grid-column:1/-1!important;grid-row:1}
 body #adminApp .admin-services-list {grid-template-columns:minmax(0,1fr)!important}
 body #adminApp .analytics-summary {grid-template-columns:minmax(0,1fr)}
 body #adminApp .analytics-toolbar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body #app .saved-client-card__list>div {grid-template-columns:minmax(0,1fr);gap:4px}
}
@media(max-width:460px) {
 body :is(#adminApp,#cabinetApp,#app) .admin-header__titlebar {align-items:flex-start!important;gap:10px!important}
 body :is(#adminApp,#cabinetApp,#app) .admin-header__titlebar .badge {margin-left:0!important}
 body #adminApp :is(.admin-form-grid,.admin-status-card .status-selector) {grid-template-columns:minmax(0,1fr)!important}
 body #adminApp .admin-form-grid>.detail-row {grid-column:1!important;grid-row:auto!important}
 body #adminApp #adminControls,body #adminApp #adminControls .filter-group {grid-template-columns:minmax(0,1fr)!important}
 body #cabinetApp #ordersTableBody .cabinet-order-row>td,body #adminApp #ordersTableBody>tr>td {grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)!important}
 body #cabinetApp #ordersTableBody .cabinet-order-row .status-badge {font-size:10px!important}
}

/* Selector controls stay within narrow phones and landscape viewports. */
.zp1688-modal,.zp1688-dialog,.zp1688-dialog-body {box-sizing:border-box}
.zp1688-dialog {max-width:100%;max-height:92vh;max-height:calc(100dvh - 28px)}
.zp1688-dialog-body {flex:1 1 auto;min-width:0}
.zp1688-source {flex-wrap:wrap;min-width:0}
.zp1688-size-head,.zp1688-size-row {grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr) 112px}
.zp1688-size-row strong {overflow-wrap:anywhere}
.zp1688-stepper {min-width:0;grid-template-columns:28px minmax(0,1fr) 28px}
.zp1688-stepper input {box-sizing:border-box}
.zp1688-actions {min-width:0}
.zp1688-actions button {min-width:0;height:auto;min-height:44px;padding:9px;white-space:normal;line-height:1.3}
@media(max-width:700px) {
 .zp1688-dialog {max-height:96vh;max-height:96dvh}
 .zp1688-size-row {grid-template-columns:minmax(0,1fr) 62px 112px}
 .zp1688-thumbs {grid-template-columns:repeat(auto-fit,38px)}
 .zp1688-summary {grid-template-columns:minmax(0,1fr)}
 .zp1688-summary strong {overflow-wrap:anywhere}
}
@media(max-height:500px) {
 .zp1688-actions {grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);padding-top:8px;padding-bottom:8px}
}
/* Prevent automatic input zoom on touch phones. */
@media(max-width:820px) and (hover:none) and (pointer:coarse) {
 html body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui,#settingsPage) :is(input,select,textarea),
 .zp1688-modal :is(.zp1688-stepper,.zp1688-price-edit) input {font-size:16px!important}
}

/* Labels are visual only; existing row handlers are unchanged. */
#adminOrdersTable td:nth-child(1){--cell-label:"Выбрать"}
#adminOrdersTable td:nth-child(2){--cell-label:"Заявка"}
#adminOrdersTable td:nth-child(3){--cell-label:"Клиент"}
#adminOrdersTable td:nth-child(4){--cell-label:"Дата"}
#adminOrdersTable td:nth-child(5){--cell-label:"Сумма"}
#adminOrdersTable td:nth-child(6){--cell-label:"Комиссия"}
#adminOrdersTable td:nth-child(7){--cell-label:"Статус"}
#adminOrdersTable td:nth-child(8){--cell-label:"Действия"}
#cabinetOrdersTable td:nth-child(1){--cell-label:"Выбрать"}
#cabinetOrdersTable td:nth-child(2){--cell-label:"Заявка"}
#cabinetOrdersTable td:nth-child(3){--cell-label:"Дата"}
#cabinetOrdersTable td:nth-child(4){--cell-label:"Общая сумма"}
#cabinetOrdersTable td:nth-child(5){--cell-label:"Статус"}
#cabinetOrdersTable td:nth-child(6){--cell-label:"Действия"}
#adminUsersTable td:nth-child(1){--cell-label:"Выбрать"}
#adminUsersTable td:nth-child(2){--cell-label:"ID"}
#adminUsersTable td:nth-child(3){--cell-label:"Имя"}
#adminUsersTable td:nth-child(4){--cell-label:"E-mail"}
#adminUsersTable td:nth-child(5){--cell-label:"Телефон"}
#adminUsersTable td:nth-child(6){--cell-label:"Заказов"}
#adminUsersTable td:nth-child(7){--cell-label:"Онлайн"}
#adminUsersTable td:nth-child(8){--cell-label:"Последний раз в сети"}
#adminUsersTable td:nth-child(9){--cell-label:"Регистрация"}
#adminUsersTable td:nth-child(10){--cell-label:"Действия"}

/* v128: compact controls; intrinsic labels must fit inside their table cell. */
body :is(#adminApp,#cabinetApp,#app) :is(.btn-icon,.btn-filter,.btn-back,.btn-save-order,.btn-add-row,.btn-add-goods,.btn-detail,.btn-delete-one,.btn--large,.btn--outline) {
 min-width:0!important;min-height:36px!important;height:auto!important;padding:8px 12px!important;
 border-radius:9px!important;font-size:12px!important;line-height:1.3!important;gap:6px!important;
 align-items:center;justify-content:center;box-sizing:border-box;box-shadow:none!important;
 transition:background-color .15s,color .15s,border-color .15s,box-shadow .15s!important;
}
body :is(#adminApp,#cabinetApp,#app) :is(.btn-icon,.btn-filter,.btn-back,.btn-save-order,.btn-add-row,.btn-detail,.btn-delete-one) i {flex:0 0 auto;font-size:12px!important}
body :is(#adminApp,#cabinetApp) #ordersTableBody :is(.btn-detail,.btn-delete-one),
body #cabinetApp #listPage #ordersTableBody .cabinet-order-row .action-group button {
 display:inline-flex!important;flex:0 1 auto!important;width:auto!important;max-width:100%!important;
 min-height:32px!important;padding:6px 8px!important;gap:5px!important;
 white-space:nowrap!important;overflow-wrap:normal!important;font-size:12px!important;line-height:1.25!important;
}
body #cabinetApp #listPage #ordersTableBody .action-group {display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:flex-end!important;align-items:center!important}
body :is(#adminApp,#cabinetApp) #ordersTableBody .status-badge {
 display:inline-flex!important;width:fit-content!important;max-width:100%!important;min-width:0!important;min-height:0!important;
 padding:4px 7px!important;gap:5px!important;border-radius:8px!important;box-sizing:border-box!important;
 font-size:11px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:0!important;
 white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:center!important;box-shadow:none!important;
}
body :is(#adminApp,#cabinetApp) #ordersTableBody .status-badge i {font-size:7px!important;flex:0 0 auto!important}
body :is(#adminApp,#cabinetApp,#app) :is(#detailPage,.order-ui) .goods-edit-table .goods-stock-badge {
 display:inline-flex!important;align-self:center!important;width:fit-content!important;min-width:0!important;max-width:100%!important;min-height:0!important;
 padding:4px 7px!important;box-sizing:border-box!important;border-radius:8px!important;
 font-size:11px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
body #adminApp #goodsEditTable .g-stock {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body #adminApp #detailInfo .commission-tools,
body #adminApp #detailInfo .commission-tools__value,
body #adminApp #detailInfo .commission-tariff-input,
body #adminApp #detailInfo #dCommissionTariff {border:0!important;box-shadow:none!important}
body #adminApp #detailInfo .commission-tools__value {
 height:auto!important;min-height:36px!important;padding:0!important;gap:8px!important;flex-wrap:wrap!important;background:transparent!important;
}
body #adminApp #detailInfo .commission-tariff-input {flex:1 1 64px!important;min-width:0!important;max-width:100%!important;height:36px!important}
body #adminApp #detailInfo #dCommissionTariff {height:36px!important;min-height:36px!important;background:#f6f4fc!important;padding:7px 24px 7px 9px!important}
body #adminApp #detailInfo #resetCommissionBtn {height:36px!important;min-height:36px!important;padding:7px 9px!important;margin:0!important;font-size:11px!important;white-space:nowrap!important}
body #adminApp #detailInfo #dCommissionTariff:focus-visible {outline:2px solid #6c5ce7!important;outline-offset:1px}
body #adminApp .admin-status-card .status-option {min-height:54px!important;padding:9px 10px!important;gap:9px!important}
body #adminApp .admin-status-card .status-option>i {width:28px!important;height:28px!important;min-width:28px!important;font-size:12px!important}

/* Keep send actions separate from textarea height, including touch and landscape. */
body #adminApp #adminChatForm,body .chat-widget__form {
 display:flex!important;align-items:flex-end!important;flex:0 0 auto!important;gap:8px!important;padding:10px!important;min-width:0!important;box-sizing:border-box!important;
}
body #adminApp #adminChatInput,body .chat-widget__form textarea {
 flex:1 1 0!important;width:0!important;min-width:0!important;max-width:100%!important;
 min-height:40px!important;height:56px!important;max-height:140px!important;
 padding:9px 10px!important;box-sizing:border-box!important;border-radius:10px!important;line-height:1.4!important;
}
body #adminApp #adminChatSend {
 display:inline-flex!important;flex:0 0 auto!important;align-self:flex-end!important;width:auto!important;min-width:0!important;max-width:100%!important;
 height:36px!important;min-height:36px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.25!important;white-space:nowrap!important;
}
body .chat-widget__form button {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;
 width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
 padding:0!important;border-radius:10px!important;line-height:1!important;font-size:18px!important;
}
body .chat-widget {max-height:calc(100vh - 104px);max-height:calc(100dvh - 104px);max-width:calc(100vw - 32px)}
body .chat-widget__messages {min-height:0!important;min-width:0!important;overflow-wrap:anywhere}
@media(min-width:1024px) {
 body #adminApp #adminOrdersTable th:last-child {width:126px!important}
 body #cabinetApp #cabinetOrdersTable th:last-child {width:220px!important}
 body :is(#adminApp,#cabinetApp) :is(#adminOrdersTable,#cabinetOrdersTable) td {padding:10px 8px!important}
}
@media(max-width:700px) {
 body :is(#adminApp,#cabinetApp,#app) .admin-command-menu {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px!important}
 body :is(#adminApp,#cabinetApp,#app) .admin-command-menu>:is(a,button) {
  grid-column:auto!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;
  min-height:40px!important;width:100%!important;min-width:0!important;padding:7px 8px!important;gap:6px!important;
  font-size:11px!important;font-weight:600!important;line-height:1.3!important;text-align:left!important;
 }
 body :is(#adminApp,#cabinetApp,#app) .admin-command-menu>:is(a,button)>i {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;font-size:11px!important}
 body :is(#cabinetApp,#app) .admin-command-menu>.cabinet-user-badge {grid-column:1/-1!important;min-height:34px!important;padding:6px 8px!important;font-size:11px!important}
}
@media(hover:none) and (pointer:coarse) {
 body :is(#adminApp,#cabinetApp) #ordersTableBody :is(.btn-detail,.btn-delete-one),body #cabinetApp #listPage #ordersTableBody .cabinet-order-row .action-group button,body #adminApp #adminChatSend {min-height:40px!important}
 body #adminApp #adminChatInput,body .chat-widget__form textarea {font-size:16px!important}
}
