:root {
  --mag-primary: #409eff;
  --mag-primary-hover: #2f8fee;
  --mag-primary-soft: #ecf5ff;
  --mag-text: #303133;
  --mag-muted: #909399;
  --mag-border: #dcdfe6;
  --mag-surface: #fff;
  --mag-page: #f5f7fa;
  --mag-success: #67c23a;
  --mag-danger: #f56c6c;
  --mag-radius: 8px;
  --mag-shadow: 0 14px 40px rgba(31, 45, 61, .18);
}

.mag-modal-open { overflow: hidden !important; }

.mag-button {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--mag-border);
  border-radius: 6px;
  background: var(--mag-surface);
  color: #606266;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .08s ease;
}

.mag-button:hover { border-color: #a0cfff; color: var(--mag-primary); }
.mag-button:active { transform: translateY(1px); }
.mag-button:focus-visible { outline: 3px solid rgba(64, 158, 255, .25); outline-offset: 2px; }
.mag-button:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.mag-button[aria-busy="true"] { cursor: progress; }

.mag-primary { border-color: var(--mag-primary); background: var(--mag-primary); color: #fff; }
.mag-primary:hover { border-color: var(--mag-primary-hover); background: var(--mag-primary-hover); color: #fff; }
.mag-secondary { border-color: #b3d8ff; background: var(--mag-primary-soft); color: var(--mag-primary); }
.mag-danger-ghost { border-color: #fbc4c4; background: #fef0f0; color: var(--mag-danger); }
.mag-small { min-height: 30px; padding: 5px 10px; font-size: 13px; }

.merchant-packages .el-card__header { position: relative; }
.mag-entry-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-left: 10px; float: right; font-weight: 600; }
.mag-entry-icon { display: inline-grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: transform .16s ease, background-color .16s ease; }
.mag-entry-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.mag-entry-button:hover .mag-entry-icon { background: rgba(255, 255, 255, .3); transform: translateX(1px); }
.mag-admin-entry { display: flex; gap: 10px; align-items: center; }

.mag-overlay {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .5);
}

.mag-dialog {
  width: min(560px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: var(--mag-radius);
  background: var(--mag-surface);
  box-shadow: var(--mag-shadow);
  color: var(--mag-text);
}

.mag-dialog-wide { width: min(940px, 100%); }
.mag-dialog-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; border-bottom: 1px solid #ebeef5; }
.mag-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.mag-icon-button { min-width: 34px; padding: 4px; border-color: transparent; background: transparent; font-size: 25px; color: var(--mag-muted); }
.mag-dialog-body { max-height: calc(100vh - 105px); overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.mag-user-dialog { display: flex; height: min(820px, calc(100vh - 48px)); max-height: calc(100vh - 48px); flex-direction: column; }
.mag-user-dialog .mag-dialog-head { flex: 0 0 auto; }
.mag-user-dialog .mag-dialog-body { min-height: 0; max-height: none; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; padding-bottom: 36px; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.mag-loading { display: grid; min-height: 180px; place-items: center; color: var(--mag-muted); }
.mag-loading::before { width: 22px; height: 22px; margin-right: 10px; border: 3px solid #d9ecff; border-top-color: var(--mag-primary); border-radius: 50%; content: ''; animation: mag-spin .8s linear infinite; }
@keyframes mag-spin { to { transform: rotate(360deg); } }

.mag-message { margin: 10px 0; padding: 12px 14px; border-radius: 6px; background: var(--mag-primary-soft); color: #337ecc; }
.mag-message.is-error { background: #fef0f0; color: var(--mag-danger); }
.mag-message.is-empty { background: var(--mag-page); color: var(--mag-muted); text-align: center; }

.mag-user-body { background: #f7faff; }
.mag-agent-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 4%, rgba(91, 177, 255, .3), transparent 28%),
    linear-gradient(135deg, #102f5b 0%, #0b61bd 56%, #1687e8 100%);
  box-shadow: 0 16px 36px rgba(15, 87, 164, .18);
  color: #fff;
}
.mag-agent-hero::after { position: absolute; right: -75px; bottom: -115px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; content: ''; }
.mag-agent-hero.is-active { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 10px; padding: 10px 16px; }
.mag-agent-hero-copy { position: relative; z-index: 1; align-self: center; }
.mag-agent-eyebrow { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ddecff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.mag-agent-hero h3 { max-width: 580px; margin: 9px 0 7px; color: #fff; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -.02em; }
.mag-agent-hero:not(.is-active) h3 { margin-top: 0; }
.mag-agent-hero p { max-width: 610px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.55; }
.mag-agent-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.mag-agent-meta span { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; }
.mag-value-flow { position: relative; z-index: 1; display: grid; align-content: center; gap: 6px; }
.mag-benefit-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.mag-benefit-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 8px; background: #fff; color: #0d6cc9; font-size: 10px; font-weight: 800; }
.mag-benefit-item strong, .mag-benefit-item small { display: block; }
.mag-benefit-item strong { color: #fff; font-size: 13px; }
.mag-benefit-item small { margin-top: 2px; color: rgba(255, 255, 255, .7); font-size: 11px; }
.mag-agent-hero.is-active h3 { margin: 0 0 5px; font-size: clamp(21px, 2.3vw, 25px); }
.mag-agent-hero.is-active p { font-size: 13px; line-height: 1.4; }
.mag-agent-hero.is-active .mag-agent-meta { margin-top: 7px; }
.mag-agent-hero.is-active .mag-agent-meta span { padding: 3px 7px; }
.mag-agent-hero.is-active .mag-value-flow { gap: 4px; }
.mag-agent-hero.is-active .mag-benefit-item { gap: 7px; padding: 3px 7px; }
.mag-agent-hero.is-active .mag-benefit-icon { width: 22px; height: 22px; flex-basis: 22px; border-radius: 6px; }
.mag-agent-hero.is-active .mag-benefit-item strong { font-size: 12px; }
.mag-agent-hero.is-active .mag-benefit-item small { margin-top: 0; font-size: 10px; }
.mag-user-tabs {
  position: sticky;
  top: -1px;
  z-index: 4;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid #dfe8f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 18px rgba(44, 82, 126, .08);
  scrollbar-width: none;
  backdrop-filter: blur(10px);
}
.mag-user-tabs::-webkit-scrollbar { display: none; }
.mag-user-tab { min-width: 130px; min-height: 42px; flex: 1 0 auto; padding: 9px 18px; border: 0; border-radius: 8px; background: transparent; color: #718096; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
.mag-user-tab:hover { background: #f1f7ff; color: #176fc5; }
.mag-user-tab[aria-selected="true"] { background: linear-gradient(135deg, #409eff, #2187ed); box-shadow: 0 5px 12px rgba(64, 158, 255, .24); color: #fff; }
.mag-user-tab:focus-visible { outline: 3px solid rgba(64, 158, 255, .25); outline-offset: 2px; }
.mag-user-panels { min-width: 0; }
.mag-user-panel[hidden] { display: none !important; }
.mag-section-kicker { margin-bottom: 5px; color: var(--mag-primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.mag-section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 24px 0 12px; }
.mag-section-title h3 { margin: 0; font-size: 18px; }
.mag-section-title p { margin: 0; color: var(--mag-muted); font-size: 13px; }

.mag-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mag-plan-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; padding: 22px; border: 1px solid #dfe8f3; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(44, 82, 126, .07); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mag-plan-card:hover { border-color: #a8d3ff; box-shadow: 0 14px 30px rgba(44, 120, 198, .13); transform: translateY(-2px); }
.mag-plan-card.is-recommended { border: 2px solid #409eff; background: linear-gradient(180deg, #f5faff 0%, #fff 32%); box-shadow: 0 14px 30px rgba(64, 158, 255, .16); }
.mag-plan-card.is-recommended::before { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #409eff, #7ac4ff); content: ''; }
.mag-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mag-plan-card h4 { margin: 5px 0 0; font-size: 19px; }
.mag-plan-card p { margin: 6px 0 0; }
.mag-plan-label { color: #7b8da3; font-size: 12px; font-weight: 600; }
.mag-recommend-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 10px; border-radius: 999px; background: #409eff; color: #fff; font-size: 12px; font-weight: 700; }
.mag-plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 18px; }
.mag-plan-price > span { color: #909399; font-size: 13px; }
.mag-price { color: #f05b67; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.mag-plan-validity { color: #4e6075; font-size: 13px; }
.mag-plan-description { min-height: 22px; color: #1571cf; font-size: 14px; font-weight: 700; }
.mag-plan-features { display: grid; gap: 9px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #edf1f6; color: #4f5f70; font-size: 13px; list-style: none; }
.mag-plan-features li { position: relative; padding-inline-start: 22px; }
.mag-plan-features li::before { position: absolute; inset-inline-start: 0; top: 1px; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #e8f5ff; color: #1683e6; font-size: 11px; font-weight: 800; content: '✓'; }
.mag-muted { margin: 4px 0 0; color: var(--mag-muted); font-size: 13px; }

.mag-buy-controls { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.mag-plan-card .mag-buy-controls { display: grid; grid-template-columns: minmax(135px, .8fr) minmax(160px, 1.2fr); margin-top: auto; padding-top: 20px; }
.mag-pay-field { display: grid; gap: 5px; color: #7b8da3; font-size: 12px; }
.mag-plan-cta { min-height: 42px; align-self: end; font-weight: 700; }
.mag-input {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--mag-border);
  border-radius: 6px;
  background: #fff;
  color: var(--mag-text);
  font: inherit;
}
select.mag-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%237b8da3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px 16px;
}
select.mag-input::-ms-expand { display: none; }
.mag-input:focus { border-color: var(--mag-primary); outline: 3px solid rgba(64, 158, 255, .14); }
.mag-buy-controls .mag-input[type="number"] { width: 88px; flex: 0 0 88px; }
.mag-buy-controls select { min-width: 105px; }

.mag-price-list, .mag-order-list, .mag-admin-list { display: grid; gap: 9px; }
.mag-user-body .mag-price-list, .mag-user-body .mag-order-list { padding: 4px; border-radius: 12px; background: #fff; }
.mag-product-row, .mag-order-row, .mag-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 14px; border: 1px solid #ebeef5; border-radius: var(--mag-radius); }
.mag-product-info, .mag-order-row > div:first-child, .mag-admin-row > div:first-child { min-width: 0; }
.mag-product-info { flex: 1 1 auto; }
.mag-product-info h4 { margin: 0; }
.mag-product-info p { margin: 5px 0 0; color: #606266; }
.mag-product-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; margin-top: 8px; }
.mag-product-price { display: inline-flex; align-items: baseline; gap: 5px; }
.mag-product-price > span { color: #8492a6; font-size: 12px; }
.mag-product-price strong { font-size: 16px; }
.mag-product-price em { color: #718096; font-size: 12px; font-style: normal; }
.mag-product-price.is-agent { padding: 5px 9px; border-radius: 6px; background: #ecf5ff; color: #1683e6; }
.mag-product-price.is-agent > span { color: #1683e6; font-weight: 700; }
.mag-product-price.is-retail strong { color: #7b8794; font-size: 14px; font-weight: 500; text-decoration: line-through; }
.mag-product-saving { padding: 3px 7px; border-radius: 999px; background: #f0f9eb; color: #529b2e; font-size: 11px; white-space: nowrap; }
.mag-product-row > .mag-buy-controls { display: grid; grid-template-columns: 86px 126px 112px; flex: 0 0 auto; align-items: end; gap: 8px; margin-top: 0; }
.mag-purchase-field { display: grid; gap: 5px; min-width: 0; color: #7b8da3; font-size: 12px; }
.mag-purchase-field .mag-input { width: 100% !important; min-width: 0; }
.mag-stock-buy { min-width: 112px; min-height: 36px; align-self: end; font-weight: 700; white-space: nowrap; }
.mag-order-side { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }

.mag-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; background: var(--mag-page); color: #606266; font-size: 12px; white-space: nowrap; }
.mag-badge.is-ok, .mag-badge.is-status-2 { background: #f0f9eb; color: var(--mag-success); }
.mag-badge.is-muted, .mag-badge.is-status-3 { background: #f4f4f5; color: var(--mag-muted); }
.mag-badge.is-status-0 { background: #fdf6ec; color: #e6a23c; }
.mag-badge.is-status-1 { background: var(--mag-primary-soft); color: var(--mag-primary); }
.mag-badge.is-status-4 { background: #fef0f0; color: var(--mag-danger); }

.mag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 14px; }
.mag-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mag-card-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid #ebeef5; border-radius: 6px; }
.mag-card-code code { overflow: hidden; color: var(--mag-text); text-overflow: ellipsis; white-space: nowrap; }
.mag-inventory-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.mag-inventory-stat { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid #e4ebf3; border-radius: 9px; background: #fff; color: #718096; font: inherit; font-size: 12px; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .08s ease; }
.mag-inventory-stat strong { color: #303133; font-size: 21px; }
.mag-inventory-stat.is-unused { border-color: #c2e7b0; background: #f5fbf2; }
.mag-inventory-stat.is-unused strong { color: #529b2e; }
.mag-inventory-stat:hover { border-color: #a0cfff; background: #f5faff; }
.mag-inventory-stat:active { transform: translateY(1px); }
.mag-inventory-stat:focus-visible { outline: 3px solid rgba(64, 158, 255, .22); outline-offset: 2px; }
.mag-inventory-stat[aria-pressed="true"] { border-color: #409eff; background: #ecf5ff; box-shadow: inset 3px 0 0 #409eff, 0 4px 12px rgba(64, 158, 255, .12); color: #176fc5; }
.mag-inventory-stat[aria-pressed="true"] strong { color: #176fc5; }
.mag-inventory-stat:disabled { cursor: default; opacity: .58; transform: none; }
.mag-inventory-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mag-inventory-list { display: grid; gap: 8px; padding: 4px; border-radius: 12px; background: #fff; }
.mag-inventory-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid #ebeef5; border-radius: 8px; }
.mag-inventory-main { display: grid; min-width: 0; gap: 3px; }
.mag-inventory-main code { overflow: hidden; color: #176fc5; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mag-inventory-main strong { font-size: 13px; }
.mag-inventory-main small { overflow: hidden; color: #909399; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mag-inventory-main .mag-inventory-usage { color: #66788a; }
.mag-inventory-side { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }

.mag-tabs { display: flex; gap: 4px; margin: -4px 0 18px; padding-bottom: 10px; border-bottom: 1px solid #ebeef5; }
.mag-tab { border-color: transparent; background: transparent; }
.mag-tab.is-active { border-color: #b3d8ff; background: var(--mag-primary-soft); color: var(--mag-primary); }
.mag-panel { display: none; }
.mag-panel.is-active { display: block; }
.mag-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; padding: 16px; border-radius: var(--mag-radius); background: var(--mag-page); }
.mag-field { display: grid; gap: 6px; color: #606266; font-size: 13px; }
.mag-form-grid > .mag-button { align-self: end; }
.mag-form-grid .mag-actions { align-self: end; margin: 0; }

@media (max-width: 700px) {
  .mag-overlay { align-items: end; padding: 0; }
  .mag-dialog, .mag-dialog-wide { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
  .mag-dialog-body { max-height: calc(92vh - 56px); padding: 16px; }
  .mag-user-dialog { height: 92vh; height: 92dvh; max-height: 92vh; max-height: 92dvh; }
  .mag-user-dialog .mag-dialog-body { max-height: none; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .mag-user-body { padding: 12px; }
  .mag-agent-hero { grid-template-columns: 1fr; gap: 14px; padding: 16px; border-radius: 13px; }
  .mag-agent-hero.is-active { grid-template-columns: 1fr; gap: 8px; padding: 11px 12px; }
  .mag-agent-hero h3 { margin-top: 8px; font-size: 21px; }
  .mag-agent-hero.is-active h3 { margin: 0 0 4px; font-size: 19px; }
  .mag-agent-hero p { font-size: 13px; line-height: 1.55; }
  .mag-agent-meta { margin-top: 9px; }
  .mag-value-flow { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mag-benefit-item { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; text-align: center; }
  .mag-benefit-item div { min-width: 0; }
  .mag-benefit-item strong { font-size: 12px; white-space: nowrap; }
  .mag-benefit-item small { display: none; }
  .mag-user-tabs { top: -1px; gap: 3px; overflow: hidden; margin-inline: -2px; padding: 4px; }
  .mag-user-tab { min-width: 0; min-height: 44px; flex: 1 1 0; padding: 8px 4px; font-size: 13px; }
  .mag-plan-grid, .mag-card-list, .mag-form-grid { grid-template-columns: 1fr; }
  .mag-section-title { align-items: flex-start; flex-direction: column; gap: 3px; margin: 17px 0 9px; }
  .mag-section-title h3 { font-size: 17px; }
  .mag-section-title p { font-size: 12px; line-height: 1.45; }
  .mag-plan-grid { gap: 9px; }
  .mag-plan-card { padding: 15px 14px; border-radius: 12px; box-shadow: 0 6px 16px rgba(44, 82, 126, .06); }
  .mag-plan-card h4 { margin-top: 3px; font-size: 17px; }
  .mag-plan-label, .mag-recommend-badge { font-size: 11px; }
  .mag-recommend-badge { min-height: 23px; padding: 2px 8px; }
  .mag-plan-price { margin-top: 10px; }
  .mag-price { font-size: 26px; }
  .mag-plan-validity { font-size: 12px; }
  .mag-plan-description { min-height: 0; font-size: 13px; }
  .mag-plan-features { gap: 6px; margin-top: 11px; padding-top: 11px; font-size: 12px; }
  .mag-plan-features li { padding-inline-start: 20px; }
  .mag-plan-card .mag-buy-controls { grid-template-columns: minmax(118px, .8fr) minmax(150px, 1.2fr); gap: 7px; padding-top: 13px; }
  .mag-plan-cta { width: 100%; }
  .mag-product-row, .mag-order-row, .mag-admin-row { align-items: stretch; flex-direction: column; }
  .mag-user-body .mag-price-list { gap: 8px; padding: 0; background: transparent; }
  .mag-product-row { gap: 11px; padding: 13px 12px; border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(44, 82, 126, .05); }
  .mag-product-info h4 { font-size: 16px; }
  .mag-product-prices { gap: 6px 9px; margin-top: 7px; }
  .mag-product-price.is-agent { padding: 4px 7px; }
  .mag-product-price strong { font-size: 15px; }
  .mag-product-price.is-retail strong { font-size: 13px; }
  .mag-product-saving { padding: 2px 6px; }
  .mag-product-row .mag-buy-controls { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(120px, 1.25fr); gap: 7px; width: 100%; }
  .mag-purchase-field { gap: 4px; font-size: 11px; }
  .mag-user-body .mag-input { min-height: 44px; font-size: 16px; line-height: 1.25; }
  .mag-plan-cta, .mag-stock-buy { min-height: 44px; }
  .mag-user-body select.mag-input { padding-right: 38px; background-position: right 12px center; }
  .mag-product-row .mag-buy-controls .mag-button { grid-column: 1 / -1; width: 100%; }
  .mag-inventory-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .mag-inventory-stat { min-height: 58px; padding: 9px 12px; }
  .mag-inventory-row { align-items: stretch; flex-direction: column; }
  .mag-inventory-side { justify-content: space-between; }
  .mag-order-side { flex-wrap: wrap; justify-content: flex-start; }
  .mag-tabs { overflow-x: auto; }
  .mag-tab { flex: 0 0 auto; }
  .merchant-packages .el-card__header { display: flex; align-items: center; gap: 10px; }
  .merchant-packages .mag-entry-button { min-height: 44px; float: none; margin: 0 0 0 auto; }
}

@media (min-width: 701px) and (max-width: 860px) {
  .mag-product-row { align-items: stretch; flex-direction: column; }
  .mag-product-row > .mag-buy-controls { grid-template-columns: 100px minmax(140px, 1fr) 120px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-button, .mag-entry-icon, .mag-plan-card, .mag-user-tab { transition: none; }
  .mag-entry-button:hover .mag-entry-icon { transform: none; }
  .mag-plan-card:hover { transform: none; }
  .mag-loading::before { animation-duration: 1.6s; }
}
