/* 望月订单工具 — 与望月软件统一的浅色 + 青色主题 */
:root {
  --bg: #f4f6f9; --panel: #ffffff; --panel-soft: #f8fafc; --border: #e3e8ef;
  --text: #0f172a; --muted: #64748b; --subtle: #94a3b8;
  --primary: #0891b2; --primary-soft: #e0f7fb; --primary-text: #0e7490;
  --ok: #059669; --ok-soft: #e7f8f1; --warn: #d97706; --warn-soft: #fef5e6;
  --bad: #e11d48; --bad-soft: #fdecf0; --violet: #7c3aed; --violet-soft: #f1ebfe;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-size: 14px; line-height: 1.6;
}
button, input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--primary-text); text-decoration: none; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; color: var(--primary-text); }

/* ── 顶栏 ─────────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 58px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .5px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900;
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.topbar-nav { display: flex; gap: 4px; margin-left: auto; }
.topbar-nav a, .topbar-nav button.tab-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 8px;
  border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.topbar-nav a.active, .topbar-nav a:hover,
.topbar-nav button.tab-btn.active, .topbar-nav button.tab-btn:hover {
  background: var(--primary-soft); color: var(--primary-text);
}
.topbar-nav a.active, .topbar-nav button.tab-btn.active {
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* ── 布局 ─────────────────────────────────────────────────────────────────── */
.page { max-width: 760px; margin: 0 auto; padding: 20px 20px 60px; }
.page-wide { max-width: 1100px; margin: 0 auto; padding: 20px 20px 60px; }
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 168px; margin-bottom: 18px;
  background: #0b1220 url(banner.svg) right center / auto 100% no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 24, .88) 0%, rgba(8, 12, 24, .5) 58%, rgba(8, 12, 24, .08) 100%);
}
.hero .hello { position: relative; z-index: 1; padding: 28px 30px 0; color: #fff; font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.hero .hello span { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #cbd5e1; letter-spacing: 0; }
.hero .quick { position: absolute; z-index: 1; left: 30px; bottom: 20px; display: flex; gap: 10px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.card-body { padding: 16px 18px 18px; }

/* ── 表单 ─────────────────────────────────────────────────────────────────── */
.form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.form-group { flex: 1 1 160px; min-width: 0; }
.form-group.full { flex: 1 1 100%; }
.form-label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.form-control {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.form-control { height: auto; min-height: 76px; padding: 8px 12px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2364748b'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ── 按钮 ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-sm);
  font-weight: 800; cursor: pointer; border: 1px solid var(--border);
  background: var(--panel); color: var(--text);
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-text); }
.btn-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary-text); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--bad); border-color: #f7c6d1; background: var(--bad-soft); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-light { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }
.w-full { width: 100%; }

/* ── 选择块（付款比例 / 交付方式）─────────────────────────────────────────── */
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel); padding: 9px 10px; cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s;
}
.choice b { display: block; font-size: 13px; }
.choice span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.choice:hover { border-color: var(--primary); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice.selected b { color: var(--primary-text); }

/* ── 价格预览 ─────────────────────────────────────────────────────────────── */
.price-preview {
  display: flex; gap: 8px; margin: 4px 0 14px; padding: 12px;
  background: var(--panel-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.price-preview .item { flex: 1; }
.price-preview .label { font-size: 11px; color: var(--muted); }
.price-preview .value { font-size: 17px; font-weight: 900; }
.price-preview .value.small { font-size: 14px; font-weight: 800; color: var(--muted); }

/* ── 提示 ─────────────────────────────────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mb-1 { margin-bottom: 8px; }

/* ── 订单卡 / 进度 ────────────────────────────────────────────────────────── */
.order-card { border: 1px solid var(--border); border-radius: var(--radius); margin-top: 14px; overflow: hidden; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--panel-soft); border-bottom: 1px solid var(--border); }
.order-no { font-size: 12px; color: var(--muted); }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.order-meta div { background: var(--panel-soft); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.order-meta strong { display: block; font-size: 13px; color: var(--text); margin-top: 2px; }
.section-title { font-size: 13px; font-weight: 800; margin: 12px 0 8px; }
.timeline { position: relative; padding-left: 22px; }
.tl-item { position: relative; padding: 0 0 12px 12px; }
.tl-item::before { content: ''; position: absolute; left: -13px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: -18px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.step-name { font-weight: 800; font-size: 13px; }
.step-note { font-size: 12px; color: var(--muted); }
.step-time { font-size: 11px; color: var(--subtle); }

/* ── 状态标签 ─────────────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.chip-pending { background: var(--warn-soft); color: var(--warn); }
.chip-partial { background: var(--violet-soft); color: var(--violet); }
.chip-paid    { background: var(--ok-soft); color: var(--ok); }
.chip-proc    { background: var(--primary-soft); color: var(--primary-text); }
.chip-done    { background: var(--ok-soft); color: var(--ok); }
.chip-cancel  { background: #eef2f6; color: var(--muted); }

/* ── 收款码 ───────────────────────────────────────────────────────────────── */
.qr-card { text-align: center; padding: 16px; background: var(--panel-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.qr-card img { width: 200px; max-width: 70%; border-radius: 10px; margin: 10px auto; display: block; background: #fff; padding: 8px; }
.qr-note { font-size: 12px; color: var(--muted); }

/* ── 表格 ─────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 12px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── 登录 ─────────────────────────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 360px; max-width: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; }
.login-box .brand { justify-content: center; margin-bottom: 6px; font-size: 16px; }
.login-box .hint { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 18px; }

/* ── 统计 ─────────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 10px 12px; }
.stat b { display: block; font-size: 20px; font-weight: 900; }
.stat span { font-size: 11px; color: var(--muted); }

/* ── 催促红点 / 提示条 ────────────────────────────────────────────────────── */
.urge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); display: inline-block; }
.toast-box { position: fixed; top: 70px; right: 16px; z-index: 200; width: 300px; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--bad); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; animation: slideIn .2s ease; }
.toast b { display: block; margin-bottom: 2px; }
.toast span { color: var(--muted); font-size: 12px; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 手机端 ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .topbar { padding: 0 12px; height: 52px; }
  .brand small { display: none; }
  .page, .page-wide { padding: 14px 12px 48px; }
  .hero { height: 150px; background-position: 70% center; }
  .hero .hello { font-size: 18px; padding: 20px 16px 0; }
  .hero .quick { left: 16px; bottom: 14px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .order-meta { grid-template-columns: 1fr 1fr; }
  .card-body { padding: 14px 12px 16px; }
  .card-head { padding: 12px; }
  .toast-box { left: 12px; right: 12px; width: auto; }
  .topbar-nav a, .topbar-nav button.tab-btn { padding: 0 8px; font-size: 12px; }
}

/* ── Staff workspace ──────────────────────────────────────────────────────── */
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.staff-brand { flex: 0 0 auto; white-space: nowrap; }
.staff-brand small { letter-spacing: 0; }
.login-brand { justify-content: center; margin-bottom: 8px; }
.login-box .hint { margin: 4px 0 22px; }
.staff-page { padding-top: 16px; }
.staff-page .card { overflow: hidden; }
.staff-card-head { align-items: center; flex-wrap: wrap; }
.staff-filters { display: flex; align-items: center; gap: 8px; }
.staff-filters input { width: min(280px, 34vw); }
.staff-filters select { width: 150px; }
.staff-filters .btn { flex: 0 0 auto; }
.staff-page table small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.staff-page table code { white-space: nowrap; }
.staff-page th { background: var(--panel-soft); }
.staff-page .order-meta div { min-width: 0; overflow-wrap: anywhere; }
.staff-page .order-meta b { display: block; margin-top: 3px; }
.staff-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 12px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.staff-tabs .tab-btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.staff-tabs .tab-btn.active, .staff-tabs .tab-btn:hover { background: var(--primary-soft); color: var(--primary-text); }
.session-name { padding: 0 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.staff-page .text-muted { color: var(--muted); }
.staff-page .text-sm { font-size: 12px; }
.staff-page .mb-2 { margin-bottom: 12px; }
.staff-page .mt-2 { margin-top: 14px; }
.staff-page .table-wrap { overscroll-behavior-x: contain; }
.staff-page .btn-ghost:hover { background: var(--primary-soft); color: var(--primary-text); }

/* ── 商品目录与权限控件 ────────────────────────────────────────────────────── */
.catalog-section { margin: 0 0 18px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.muted-text { color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.product-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel-soft); }
.product-card-body { display: flex; flex-direction: column; min-height: 172px; padding: 12px; }
.product-card-body h3 { margin: 0; font-size: 15px; }
.product-card-body p { flex: 1; margin: 6px 0 12px; color: var(--muted); font-size: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card-foot strong { font-size: 16px; }
.product-card-foot .btn { flex: 0 0 auto; white-space: nowrap; }
.empty-state { padding: 18px 0; color: var(--muted); font-size: 13px; }
.custom-order-tile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 12px; padding: 10px 14px; border: 1px dashed #b8c5d3; border-radius: 8px; background: var(--panel); color: var(--text); text-align: left; cursor: pointer; }
.custom-order-tile:hover { border-color: var(--primary); background: var(--primary-soft); }
.custom-order-tile > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.custom-order-tile small { color: var(--muted); font-size: 12px; }
.custom-order-mark, .custom-order-arrow { color: var(--primary-text); font-size: 22px; line-height: 1; }
.product-order-summary { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); }
.product-order-summary img { width: 100px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--panel); }
.product-order-summary p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.product-order-summary > b { white-space: nowrap; }
.permission-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 14px; margin: 12px 0 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.permission-choices legend { padding: 0 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.permission-choices label, .row-permission-options label { display: flex; align-items: center; gap: 7px; min-height: 28px; font-size: 12px; }
.permission-choices input, .row-permission-options input { width: 16px; height: 16px; accent-color: var(--primary); }
.row-permissions { display: grid; gap: 4px; min-width: 180px; }
.row-permissions .form-control { height: 32px; }
.row-permission-options { display: grid; gap: 2px; padding: 5px 0; }
.product-create-form { padding-top: 12px; border-top: 1px solid var(--border); }
.product-create-form .check-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.product-create-form input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.admin-products-table { min-width: 980px; }
.admin-products-table textarea.form-control { min-width: 180px; min-height: 58px; }
.order-editor { padding: 14px; background: var(--bg); border-radius: 8px; }
.product-support-name, .support-order-contact { margin-top: 7px; color: var(--muted); font-size: 12px; }
.support-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(760px, calc(100dvh - 24px)); padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: 0 18px 60px rgba(15, 23, 42, .24); }
.support-dialog::backdrop { background: rgba(15, 23, 42, .48); }
.support-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.support-dialog-head strong { display: block; font-size: 16px; }
.support-messages { display: flex; flex-direction: column; gap: 8px; min-height: 140px; max-height: 320px; overflow: auto; margin-top: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); }
.support-message { max-width: 88%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.support-message-own { align-self: flex-end; border-color: #a5e3ef; background: #e9f9fc; }
.support-message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 11px; }
.support-message p { margin: 5px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.staff-page #tab-support .table-wrap { max-height: 58vh; }

@media (max-width: 760px) {
  .topbar:has(.staff-brand) { height: auto; min-height: 52px; flex-wrap: wrap; gap: 8px; padding: 8px 12px 0; }
  .topbar:has(.staff-brand) .topbar-nav { width: 100%; margin: 0; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .topbar:has(.staff-brand) .topbar-nav::-webkit-scrollbar { display: none; }
  .topbar:has(.staff-brand) .topbar-nav > * { flex: 0 0 auto; }
  .session-name { display: none; }
  .staff-page { padding-top: 12px; }
  .staff-card-head { align-items: stretch; }
  .staff-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr) auto; width: 100%; }
  .staff-filters input, .staff-filters select { width: 100%; min-width: 0; }
  #orders-table, #orders-table tbody { display: block; width: 100%; }
  #orders-table thead { display: none; }
  #orders-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
  #orders-table tbody td { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 10px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
  #orders-table tbody td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; }
  #orders-table tbody td:first-child, #orders-table tbody td:nth-child(6), #orders-table tbody td:last-child { grid-column: 1 / -1; }
  #orders-table tbody td:last-child { flex-direction: row; align-items: center; justify-content: space-between; border-bottom: 0; }
  #support-inbox-table, #support-inbox-table tbody { display: block; width: 100%; }
  #support-inbox-table thead { display: none; }
  #support-inbox-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
  #support-inbox-table tbody td { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 10px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
  #support-inbox-table tbody td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; }
  #support-inbox-table tbody td:nth-child(1), #support-inbox-table tbody td:nth-child(4), #support-inbox-table tbody td:last-child { grid-column: 1 / -1; }
  #support-inbox-table tbody td:last-child { flex-direction: row; align-items: center; justify-content: flex-end; border-bottom: 0; }
  .staff-page .order-meta { grid-template-columns: 1fr 1fr; }
  .staff-page .form-row { gap: 8px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
  .product-card-body { min-height: 164px; padding: 10px; }
  .product-order-summary { grid-template-columns: 72px minmax(0, 1fr); }
  .product-order-summary img { width: 72px; }
  .product-order-summary > b { grid-column: 2; }
  .staff-page #admin-staff table { min-width: 700px; }
  .admin-products-table { min-width: 980px; }
  .support-dialog { padding: 14px; }
  .support-messages { max-height: 42dvh; }
}

@media (max-width: 420px) {
  .staff-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .staff-filters input { grid-column: 1 / -1; }
  .staff-filters select { grid-column: 1; }
}
