:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #5f6e83;
  --blue: #205acb;
  --rule: #dbe2ed;
  --bg: #f4f6f9;
  --paper: #fff;
  --radius: 8px;
  font: 14px/1.5 "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px;
  padding: 5px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 6px; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { border-color: #93a6c2; background: #f7faff; }
button:disabled { opacity: .6; cursor: not-allowed; }
button.primary, .button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
button.primary:hover, .button.primary:hover { background: #184cb5; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; padding: 7px 10px; min-height: 36px; background: var(--paper); color: var(--ink);
  border: 1px solid #c9d3e1; border-radius: 6px;
}
label { display: grid; gap: 4px; font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.25; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
small, .muted { color: var(--muted); }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; left: 12px; top: 10px; z-index: 5; padding: 8px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 21px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 6px;
  background: var(--blue); color: #fff; font-size: 18px;
}
aside.sidebar {
  position: fixed; width: 218px; height: 100dvh; inset: 0 auto 0 0;
  display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--rule); padding: 20px 14px;
}
.sidebar .brand { margin-left: 7px; }
.workspace-label { display: block; margin: 20px 7px 9px; color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 4px; }
.nav a { text-decoration: none; padding: 9px 11px; border-radius: 6px; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { background: #edf3ff; color: var(--blue); }
.topbar {
  min-height: 60px; background: var(--paper); border-bottom: 1px solid var(--rule); margin-left: 218px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px;
}
.topbar strong { overflow-wrap: anywhere; }
.topbar .inline { min-width: 0; overflow-wrap: anywhere; }
body.signed-in main { margin-left: 218px; padding: 22px 24px 36px; }
.page-head, .card-head, .footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 16px; }
.page-head { margin-bottom: 17px; min-height: 38px; }
.card { min-width: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.card-head, .footer { padding: 11px 15px; }
.card-head { border-bottom: 1px solid var(--rule); }
.footer { border-top: 1px solid var(--rule); color: var(--muted); }
.content-pad { padding: 15px; }
.content-pad h3 { margin-bottom: 8px; }
.card-section { padding: 14px 15px; border-bottom: 1px solid var(--rule); }
.card-section:last-child { border-bottom: 0; }
.stack { display: grid; gap: 14px; }
.stack > * { min-width: 0; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.workspace { display: grid; gap: 15px; align-items: start; }
.workspace.has-detail { grid-template-columns: minmax(420px, 1fr) minmax(340px, 430px); }
.detail aside { position: static; }
.toolbar { padding: 11px 15px; border-bottom: 1px solid var(--rule); display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.toolbar label { flex: 1 1 105px; font-size: 12px; }
.toolbar .search { flex: 2 1 155px; }
.order-toolbar { flex-basis: 100%; min-width: 0; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.order-toolbar label { min-width: 110px; }
.order-toolbar input[type=date] { min-width: 134px; }
.order-toolbar .search { flex: 2 1 205px; }
.order-date-note { flex-basis: 100%; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-export-select { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--rule); }
.order-export-select > label { align-items: center; padding: 8px 2px 8px 12px; }
.order-export-form, .order-export-options { border-bottom: 1px solid var(--rule); background: #f8faff; }
.order-export-form fieldset { display: grid; gap: 7px; margin: 0; padding: 4px 0; border: 0; min-width: 0; }
.order-export-form fieldset label { font-weight: 400; }
.order-export-form legend { padding: 0; font-weight: 600; }
.export-job { flex-wrap: wrap; }
.export-job .stack { gap: 4px; }
.order-queues { display: flex; flex-wrap: wrap; gap: 5px; align-items: start; margin: 0 0 14px; padding: 7px;
  background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.order-queues a, .order-queues summary { display: block; padding: 6px 9px; border-radius: 5px; color: var(--muted); white-space: nowrap; }
.order-queues summary { display: list-item; cursor: pointer; }
.order-queues details > div { display: flex; flex-wrap: wrap; gap: 4px; }
.quote-queues { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--rule); padding-top: 5px; }
.order-queues a:hover, .order-queues a[aria-current=page] { background: #eef4ff; color: var(--blue); text-decoration: none; }
.archive-action { margin-top: 12px; }
.order-row {
  display: grid; grid-template-columns: minmax(125px, 1fr) minmax(130px, 2fr) minmax(85px, .8fr);
  gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--rule); color: inherit;
  text-decoration: none; text-underline-offset: 3px;
}
.order-row:last-child { border-bottom: 0; }
.order-row:hover, .order-row[aria-current="true"] { background: #eef4ff; }
.order-meta, .order-product, .order-status { min-width: 0; display: grid; align-content: start; gap: 4px; overflow-wrap: anywhere; }
.order-status { justify-items: end; text-align: right; }
.order-product small { font-size: 12px; }
.order-status strong, .balance { color: var(--blue); }
.country-flag { display: inline-block; width: 23px; height: 16px; object-fit: cover; border: 1px solid var(--rule); border-radius: 0; vertical-align: middle; }
.order-meta time { font-size: 12px; white-space: nowrap; }
.customer-row { grid-template-columns: minmax(105px, 1.2fr) minmax(105px, 1fr) minmax(85px, .85fr); }
.client-status { width: fit-content; display: inline-block; padding: 2px 7px; border-radius: 4px; background: #edf3ff; color: #1749a2; }
.client-status.status-active { background: #e9f6ee; color: #156440; }
.client-status.status-suspended { background: #fff2df; color: #815214; }
.customer-detail { gap: 0; }
.customer-detail-body > .card-section > h3 { margin-bottom: 9px; }
.customer-detail-body .item-line { flex-wrap: wrap; overflow-wrap: anywhere; }
.customer-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.team-grants { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.team-grant-group { border: 1px solid var(--rule); padding: 12px; min-width: 0; }
.team-grant-group legend { padding: 0 4px; font-weight: 600; }
.team-checks { display: grid; gap: 6px; }
.team-checks[hidden] { display: none; }
.team-actions { flex-wrap: wrap; gap: 6px; }
.team-table-scroll { overflow-x: auto; }
.team-table { border-collapse: collapse; width: 100%; min-width: 680px; }
.team-table :is(th, td) { padding: 10px 15px; text-align: left; vertical-align: middle; }
.team-table th { background: #f7f9fc; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--rule); }
.team-table tbody tr + tr { border-top: 1px solid var(--rule); }
.team-table tbody tr:hover { background: #fbfcfe; }
.team-table td:first-child { overflow-wrap: anywhere; min-width: 150px; }
.team-status { border-radius: 4px; padding: 2px 6px; white-space: nowrap; color: var(--muted); background: #edf1f7; }
.team-status[data-status="invited"] { background: #fff4df; color: #7a4b00; }
.team-status[data-status="active"] { background: #e6f5ed; color: #17613c; }
.customer-controls { margin-top: 12px; }
.customer-action-box { padding: 10px; border: 1px solid var(--rule); border-radius: 6px; overflow-wrap: anywhere; }
.customer-detail-body > .customer-action-box { margin: 12px 15px; background: #f5f8fe; }
.operation-controls-page { max-width: 830px; }
.operation-control-row { flex-wrap: wrap; align-items: center; }
.operation-control-row .stack { gap: 4px; }
.operation-control-row p { overflow-wrap: anywhere; white-space: pre-wrap; }
.control-state { padding: 2px 6px; border-radius: 4px; color: #146240; background: #e9f6ee; }
.control-paused { color: #79480b; background: #fff2df; }
.manager-card, .manager-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; overflow-wrap: anywhere; }
.manager-card { justify-content: space-between; }
.manager-contacts .stack { gap: 1px; }
.manager-avatar { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
  color: #205acb; background: #edf3ff; font-size: 20px; font-weight: 700; }
@media (max-width: 460px) {
  .customer-fields { grid-template-columns: 1fr; }
  .order-row.customer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.details-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; }
.details-grid div { overflow-wrap: anywhere; }
.details-grid dt { color: var(--muted); font-size: 12px; }
.details-grid dd { margin: 1px 0 0; white-space: pre-line; }
.shipping-address-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.shipping-address-fields label:has(textarea) { grid-column: 1 / -1; }
.order-line-stock { gap: 5px; padding-bottom: 10px; }
.order-line-stock + .order-line-stock { border-top: 1px solid var(--rule); padding-top: 5px; }
.sku-mapping { padding: 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); }
.item-line.stack { display: grid; }
.order-row.stock-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .9fr) minmax(0, .8fr); }
.csv-report { list-style: none; margin: 0; padding: 0; }
.csv-report li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.item-line { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 8px 0; }
.item-line + .item-line { border-top: 1px solid var(--rule); }
.parcel-row { padding: 9px 0; }
.parcel-row + .parcel-row { border-top: 1px solid var(--rule); }
.parcel-row a { overflow-wrap: anywhere; }
.freight-choice-form fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; gap: 8px; }
.freight-choice-form legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.freight-option {
  display: grid; gap: 3px; min-width: 0; padding: 10px 11px; overflow-wrap: anywhere;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font-weight: 400;
}
label.freight-option:has(input:enabled) { cursor: pointer; }
.freight-option:has(input:checked) { border-color: #83a6ed; background: #f2f6ff; }
.freight-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.freight-option-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; }
.freight-option-heading input, .freight-scope input { margin: 0; accent-color: var(--blue); }
.freight-price { margin-left: auto; white-space: nowrap; color: var(--blue); font-variant-numeric: tabular-nums; }
.freight-quantities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 5px; }
.freight-quantities > span { display: grid; align-content: start; gap: 3px; font-size: 12px; }
.freight-product { overflow-wrap: anywhere; }
.freight-scope { display: flex; align-items: baseline; gap: 8px; font-weight: 400; }
.freight-blocked { margin: 4px 0 0; padding-inline-start: 18px; }
.notice { padding: 10px 13px; border: 1px solid #ccd8ed; border-radius: 6px; background: #f5f8fe; color: #29466e; }
.notice.error { color: #9d262e; border-color: #ebced1; background: #fff4f4; }
.notice.success { color: #176345; border-color: #c3e4d4; background: #eef9f3; }
.notice p + p { margin-top: 3px; }
.pending-note { margin-bottom: 12px; }
.empty { padding: 24px 15px; text-align: center; color: var(--muted); }
.narrow { max-width: 690px; }
.balance { font-size: 26px; line-height: 1.2; font-weight: 700; }
.lookup { display: flex; gap: 8px; align-items: end; margin: 0 0 14px; }
.lookup label { flex: 1; }
.warehouse-toolbar { margin-bottom: 0; align-items: end; }
.warehouse-toolbar .lookup { flex: 1 1 270px; max-width: 420px; margin: 0; }
.warehouse-row { grid-template-columns: minmax(110px, 1.1fr) minmax(110px, 1fr) auto; }
.store-row { grid-template-columns: minmax(140px, 1.6fr) minmax(90px, .8fr) minmax(115px, 1fr); }
.store-form summary { cursor: pointer; font-weight: 600; }
.store-form form { margin-top: 12px; }
.sync-job { padding-top: 12px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.shopify-event-list { max-height: 36rem; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.shopify-event { padding-block: 10px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.shopify-event article { display: grid; gap: 6px; }
.shopify-event .details-grid, .shopify-event p { margin: 0; }
.shopify-event-head { justify-content: space-between; }
.form-fields { display: grid; gap: 10px; }
.form-fields [hidden], [hidden] { display: none !important; }
.field-error:empty { display: none; }
.field-error { color: #a3262f; }
.auth { width: min(400px, calc(100% - 32px)); margin: min(13vh, 95px) auto 36px; }
.auth h1 { font-size: 23px; }
.auth .card { padding: 23px; }
.auth .brand { margin-bottom: 5px; }
.boot { margin: 40px auto; text-align: center; color: var(--muted); }
dialog {
  width: min(480px, calc(100vw - 28px)); max-height: min(600px, calc(100dvh - 28px));
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 0; color: var(--ink); background: var(--paper);
}
dialog::backdrop { background: #18243c60; }
dialog h2 { font-size: 18px; }
dialog .footer { justify-content: end; }
dialog .content-pad { display: grid; gap: 8px; }
@media (max-width: 1130px) {
  aside.sidebar { width: 175px; }
  .sidebar .brand { gap: 8px; font-size: 16px; }
  .topbar, body.signed-in main { margin-left: 175px; }
  .workspace.has-detail { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); }
  .order-row { grid-template-columns: minmax(85px, 1fr) minmax(99px, 1.4fr) auto; gap: 6px; padding-inline: 10px; }
  .store-row { grid-template-columns: minmax(105px, 1.25fr) minmax(73px, .75fr) minmax(70px, 1fr); }
}
@media (max-width: 820px) {
  aside.sidebar { position: static; width: auto; height: auto; padding: 9px 12px; border: 0; }
  aside.sidebar .brand { margin: 0; }
  .workspace-label { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .nav a { padding: 5px 8px; }
  .topbar, body.signed-in main { margin-left: 0; padding-inline: 12px; }
  .workspace.has-detail { grid-template-columns: minmax(0, 1fr); }
  .workspace.has-detail .detail { grid-row: 1; }
}
@media (max-width: 420px) {
  .order-row { grid-template-columns: 1fr 1.25fr; gap: 5px 8px; }
  .order-status { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .lookup { align-items: stretch; flex-direction: column; }
  .warehouse-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .order-row.stock-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-row .order-status { grid-column: auto; }
}
.purchase-source-form { align-items: end; justify-content: flex-start; }
.purchase-source-form input[name="quantity"] { width: 92px; }
.purchase-cart-source, .purchase-product + .purchase-product { border-top: 1px solid var(--rule); padding-top: 10px; }
.purchase-sources { justify-content: flex-start; font-size: 13px; }
.purchase-pricing { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0; padding: 8px 12px 12px; border: 1px solid var(--rule); }
.purchase-pricing legend { padding: 0 4px; }
.purchase-pricing input[type="text"] { max-width: 120px; }
.shipping-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.shipping-fieldset { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); }
.shipping-fieldset[hidden] { display: none; }
.shipping-fieldset legend { padding: 0 4px; font-weight: 600; }
.shipping-version + .shipping-version { border-top: 1px solid var(--rule); padding-top: 10px; }
.shipping-tab[aria-current="page"] { color: var(--blue); border-color: #83a6ed; background: #f2f6ff; }
.bank-account-row { padding-inline: 14px; }
.bank-account-row[aria-current="page"] { background: #eef4ff; }
.bank-form-fields { display: grid; gap: 10px; min-width: 0; border: 0; padding: 0; margin: 0; }
.bank-account-version + .bank-account-version { border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 10px; }
.bank-account-version > summary { cursor: pointer; font-weight: 600; }
.bank-account-version > div { padding-top: 10px; }
.bank-account-change > button { justify-self: start; }
.dashboard-tools, .dashboard-periods, .dashboard-wallet-links, .dashboard-chart-caption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.dashboard-tools label { color: var(--muted); }
.dashboard-tools select { width: auto; min-width: 150px; max-width: 260px; }
.dashboard-periods a[aria-current="page"] { background: #eaf1ff; color: var(--blue); border-color: #b9cffd; }
.dashboard-metrics, .dashboard-previews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dashboard-metric { display: grid; gap: 4px; padding: 14px 16px; color: inherit; text-decoration: none; }
.dashboard-metric:hover { border-color: #b7cdf8; }
.dashboard-metric strong, .dashboard-money { color: #14243b; font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; }
.dashboard-metric small { color: var(--muted); }
.dashboard-wallet-links { justify-content: space-between; }
.dashboard-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.dashboard-overview.has-trend { grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); }
.dashboard-chart-caption { justify-content: space-between; color: var(--muted); }
.dashboard-legend-created::before, .dashboard-legend-shipped::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: #376dde;
}
.dashboard-legend-shipped::before { background: #258474; }
.dashboard-chart-area { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; }
.dashboard-chart-scale { display: flex; flex-direction: column; justify-content: space-between; text-align: right;
  height: 148px; color: var(--muted); font-size: 11px; }
.dashboard-chart-scroll { overflow-x: auto; padding: 5px 3px 9px; }
.dashboard-chart { display: flex; min-width: max-content; }
.dashboard-chart-day { flex: 1 0 42px; display: grid; gap: 7px; justify-items: center; }
.dashboard-chart-day > div { display: flex; align-items: end; gap: 4px; border-bottom: 1px solid var(--rule); }
.dashboard-chart-day time { font-size: 11px; color: var(--muted); }
.dashboard-chart-link { display: grid; padding: 2px 1px 0; }
.dashboard-chart-link progress {
  appearance: none; writing-mode: vertical-lr; direction: rtl; block-size: 10px; inline-size: 136px; accent-color: #376dde;
}
.dashboard-chart-link.shipped progress { accent-color: #258474; }
.dashboard-chart-link progress::-webkit-progress-bar { background: transparent; border-radius: 2px; }
.dashboard-chart-link progress::-webkit-progress-value { background: #376dde; border-radius: 2px; }
.dashboard-chart-link.shipped progress::-webkit-progress-value { background: #258474; }
.dashboard-task { color: inherit; text-decoration: none; }
.dashboard-task:hover, .dashboard-money:hover { color: var(--blue); text-decoration: underline; }
.dashboard-task b { color: var(--blue); font-variant-numeric: tabular-nums; }
.dashboard-recent-order { grid-template-columns: minmax(126px, 1.1fr) minmax(125px, 1.8fr) minmax(80px, .9fr) 57px minmax(70px, auto); }
.dashboard-recent-head { background: #f8faff; color: var(--muted); font-size: 12px; }
.dashboard-card-link { display: inline-block; margin-top: 10px; }
.workbench-filter { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.workbench-filter label { min-width: 120px; }
.workbench-filter .workbench-time-note { flex-basis: 100%; font-size: 12px; }
.workbench-queues { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.workbench-queue { display: flex; flex-direction: column; gap: 5px; color: var(--ink); padding: 11px 14px; text-decoration: none; }
.workbench-queue strong { font-size: 25px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.workbench-queue:hover, .workbench-queue[aria-current="page"] { border-color: #94b3ee; background: #f2f6ff; color: var(--blue); }
.workbench-list { margin: 0; padding: 0; list-style: none; }
.workbench-task { display: grid; align-items: start; gap: 12px; padding: 12px 15px;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.45fr) minmax(126px, .8fr) minmax(67px, .4fr); }
.workbench-task + .workbench-task { border-top: 1px solid var(--rule); }
.workbench-task > div { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.workbench-task time { color: var(--muted); font-size: 12px; }
.workbench-amount { grid-column: 4; justify-self: end; font-variant-numeric: tabular-nums; }
@media (max-width: 740px) {
  .workbench-task { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-amount { grid-column: auto; justify-self: start; }
}
@media (max-width: 980px) {
  .dashboard-overview.has-trend { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .dashboard-recent-order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dashboard-recent-head { display: none; }
  .dashboard-tools select { min-width: 0; }
}
@media (max-width: 480px) {
  .shipping-fields { grid-template-columns: minmax(0, 1fr); }
}

#order-cancellation-form fieldset, .warehouse-evidence-form fieldset { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; min-width: 0; }
.cancellation-history { padding: 12px 0; border-bottom: 1px solid var(--line, #dce3ef); }
.cancellation-history:last-child { border-bottom: 0; }
.warehouse-evidence form { margin: 10px 0; }

.bulk-purchase { margin: 18px 0; }
.bulk-purchase-summary { padding: 0 20px 14px; }
.bulk-purchase-table { max-height: 55vh; overflow: auto; }
.bulk-purchase-table table { width: 100%; border-collapse: collapse; text-align: left; }
.bulk-purchase-table th, .bulk-purchase-table td { padding: 10px 14px; border-bottom: 1px solid var(--line, #dce3ef); vertical-align: top; }
.bulk-purchase-table th { position: sticky; top: 0; z-index: 1; background: #f4f7fc; }
.bulk-purchase-table input[type=number] { width: 100px; }
.operation-notification-link { white-space: nowrap; }
.operation-notification-link [data-notification-count]:not(:empty) { margin-inline-start: .35rem; color: var(--blue); }
.operation-detail { max-width: 66rem; }
.operation-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
.operation-field { display: grid; gap: .3rem; overflow-wrap: anywhere; }
.operation-field small, .operation-history time { color: var(--muted); }
.operation-form { padding: 1rem; }
.operation-form textarea { resize: vertical; width: 100%; }
.operation-history { list-style: none; margin: 0; padding: 0; }
.operation-history-entry { padding: 1rem; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.operation-history-entry p { white-space: pre-wrap; }
.notification-list .workbench-task { grid-template-columns: minmax(0,1fr) auto; }
@media (max-width: 520px) {
  .notification-list .workbench-task { grid-template-columns: minmax(0,1fr); }
  .topbar .operation-notification-link { font-size: .85rem; }
}
.reconcile-summary { grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); }
.reconcile-table { overflow: auto; }
.reconcile-table table { min-width: 910px; }
.reconcile-table td { vertical-align: top; }
.reconcile-table small, .reconcile-cell a { display: block; color: var(--muted); }
.reconcile-cell a { color: var(--blue); }
.reconcile-history { margin: .5rem 0; padding-inline-start: 1.35rem; }
.reconcile-history p { margin: .25rem 0 .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.reconcile-followup { margin-top: .65rem; min-width: 225px; }
.reconcile-followup textarea { resize: vertical; }
.privacy-request { padding: 1rem 0; border-top: 1px solid var(--border, #d9dee7); overflow-wrap: anywhere; }
.privacy-request small { display: block; }
.privacy-request fieldset { min-width: 0; }
.privacy-digest { word-break: break-all; }
.privacy-check { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .5rem; }
.privacy-check input { margin-top: .3rem; }
