:root {
  color-scheme: light;
  --bg: #f6f0e8;
  --panel: rgba(255, 252, 247, 0.94);
  --panel-strong: #fffaf2;
  --line: rgba(103, 74, 47, 0.14);
  --text: #2f241a;
  --muted: #7d6a59;
  --accent: #b86b39;
  --accent-2: #56724a;
  --success: #4e7a49;
  --warn: #b86b39;
  --danger: #a44b3f;
  --shadow: 0 18px 40px rgba(78, 53, 30, 0.12);
  --radius: 20px;
  --sidebar: #3a271a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 107, 57, 0.13), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(86, 114, 74, 0.13), transparent 24%),
    linear-gradient(135deg, #f8f3ec 0%, #f4eadc 100%);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: grayscale(0.2);
}
.app-shell { min-width: 0; height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; }
.sidebar {
  min-width: 0; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 18px; background: linear-gradient(180deg, #4a3020 0%, #2f1e14 100%);
  color: #f7ede4; border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #df9a6b, #b86b39); color: #fff; font-weight: 800; letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}
.brand-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.1; }
.brand-subtitle, .side-label, .eyebrow, .form-hint, .topbar-copy, .muted, .empty, .state-copy { color: var(--muted); }
.side-card {
  display: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px; padding: 14px; margin-bottom: 14px;
}
.side-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.side-value { font-weight: 700; color: #fff; margin-bottom: 6px; }
.side-note { font-size: 0.92rem; line-height: 1.5; color: #dccbbb; }
.nav { display: grid; gap: 8px; margin: 18px 0; }
.nav a {
  color: #f9efe7; text-decoration: none; padding: 11px 12px; border-radius: 14px; border: 1px solid transparent;
  display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.03);
}
.nav a:hover, .nav a.active { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.12); transform: translateX(2px); }
.nav small { color: #d4c1b1; }
.inline-setting { display: flex; gap: 8px; }
.inline-setting input, .login-card input, .drawer input, .drawer textarea, .drawer select, .modal input, .modal textarea, .modal select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.9); color: var(--text);
}
.main { min-width: 0; height: 100vh; overflow-y: auto; padding: 26px 26px 40px; overscroll-behavior: contain; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.77rem; margin: 0 0 6px; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; }
.topbar-copy { margin: 8px 0 0; max-width: 58rem; }
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-strip { display: none; }
.stat, .card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 16px; }
.stat .label { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stat .value { font-size: 2rem; margin: 8px 0 6px; font-family: Georgia, "Times New Roman", serif; }
.stat .copy { color: var(--muted); line-height: 1.45; }
.page-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.page-grid > .card:not(.span-12):not(.span-7):not(.span-5) { grid-column: span 6; }
.span-12 { grid-column: span 12; } .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
.card { min-width: 0; padding: 18px; }
.section-head, .toolbar, .drawer-head, .modal-head, .table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head, .toolbar, .table-head { margin-bottom: 14px; }
.section-head h2, .card h2, .drawer h3, .modal h3 { font-size: 1.45rem; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head.compact-main-heading-title-only {
  display: none;
}
.section-head.compact-main-heading-with-actions {
  justify-content: flex-end;
  margin-bottom: 10px;
}
.section-head.compact-main-heading-with-actions > div:first-child {
  display: none;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-btn, .ghost-btn, .primary-btn, .icon-btn, .pill, .chip {
  border: 1px solid transparent; border-radius: 999px; padding: 9px 14px; background: #f2e6d7; color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.ghost-btn, .primary-btn, .admin-inline-command {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.25;
}
.tab-btn.active, .primary-btn { background: linear-gradient(135deg, var(--accent), #d68850); color: #fff; }
.ghost-btn, .icon-btn { background: rgba(255, 255, 255, 0.6); border-color: var(--line); }
.icon-btn { width: 38px; height: 38px; justify-content: center; padding: 0; }
.toolbar { flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input, .filters select { min-width: 150px; }
.order-search-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 5px 8px;
  align-items: end;
  margin: 0 0 7px;
}
.order-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: flex-end;
}
.order-shipment-import-guide {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: right;
}
.filters.order-filter-grid {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 100%;
}
.filters.order-filter-grid > .order-filter-control {
  width: auto;
  min-width: 0;
}
.order-filter-more {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.order-search-actions .order-filter-more {
  grid-column: auto;
  position: relative;
}
.order-filter-more > summary {
  width: fit-content;
  list-style: none;
}
.order-filter-more > summary::marker,
.order-filter-more > summary::-webkit-details-marker {
  display: none;
}
.order-filter-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 5px;
  margin-top: 5px;
  min-width: min(760px, calc(100vw - 320px));
}
.order-filter-more:not([open]) > .order-filter-more-grid {
  display: none;
}
.filters.order-filter-grid input,
.filters.order-filter-grid select,
.order-filter-more-grid input,
.order-filter-more-grid select {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(103, 74, 47, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 4px 8px;
}
.order-filter-control {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.order-filter-control span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.order-search-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-search-field span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.order-search-input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(103, 74, 47, 0.18);
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}
.inline-date-filter {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.inline-date-filter span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.inline-date-filter input {
  min-width: 0;
}
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.5); }
table { width: 100%; border-collapse: collapse; min-width: 840px; }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(103, 74, 47, 0.08); text-align: left; vertical-align: top; }
th { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; background: rgba(255, 250, 242, 0.7); }
tbody tr:hover { background: rgba(184, 107, 57, 0.04); }
.action-log-table { table-layout: fixed; min-width: 680px; }
.action-log-table th:nth-child(1),
.action-log-table td:nth-child(1) { width: 120px; }
.action-log-table th:nth-child(3),
.action-log-table td:nth-child(3),
.action-log-table th:nth-child(4),
.action-log-table td:nth-child(4) { display: none; }
.action-log-table th:nth-child(5),
.action-log-table td:nth-child(5) { width: 120px; }
.action-log-table td,
.action-log-table strong,
.action-log-table .muted { overflow-wrap: anywhere; }
.action-log-table td { padding: 8px 14px; }
.action-log-table [data-action-log-summary-cell] {
  display: inline;
  margin-left: 8px;
}
.action-log-table .compact-options { padding: 7px 9px; }
.action-log-table .compact-options summary { font-size: 0.82rem; }
.action-log-row-meta {
  display: inline-flex;
  gap: 4px 10px;
  margin-left: 8px;
  font-size: 0.82rem;
  line-height: 1.3;
}
.action-log-density {
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}
.action-log-density .ghost-btn {
  min-height: 32px;
  padding: 7px 10px;
}
.action-log-inline-command {
  font-size: 0.84rem;
}
.action-log-board-more-row {
  margin-top: 2px;
  gap: 8px 14px;
}
.action-log-board-inline-detail.compact-options {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.action-log-board-inline-detail.compact-options > summary {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.action-log-board-inline-detail.compact-options:not([open]) > .compact-options-body {
  display: none;
}
.action-log-filter-command.active {
  color: var(--text);
  text-decoration-thickness: 2px;
}
.action-log-triage-summary {
  color: #1f5fa8;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.action-log-triage-summary:hover,
.action-log-triage-summary:focus-visible {
  background: rgba(47, 134, 255, 0.08);
  border-radius: 4px;
  color: #174f91;
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 2px;
}
.action-log-table .compact-options .action-log-triage-summary {
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0;
  white-space: nowrap;
}
.action-log-table .action-log-triage-options {
  background: transparent;
  border: 0;
  padding: 0;
}
.access-table-scope table,
.access-role-table-scope table {
  min-width: 680px;
  width: calc(100% - 1px);
  max-width: calc(100% - 1px);
  table-layout: fixed;
  border-spacing: 0;
}
.access-table-scope th,
.access-table-scope td,
.access-role-table-scope th,
.access-role-table-scope td {
  min-width: 0;
  padding: 7px 9px;
  overflow-wrap: anywhere;
}
.access-table-scope td:first-child strong {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.access-table-scope th:nth-child(1),
.access-table-scope td:nth-child(1) { width: 16%; }
.access-table-scope th:nth-child(2),
.access-table-scope td:nth-child(2) { width: 20%; }
.access-table-scope th:nth-child(3),
.access-table-scope td:nth-child(3) { width: 16%; }
.access-table-scope th:nth-child(4),
.access-table-scope td:nth-child(4) { width: 24%; }
.access-table-scope th:nth-child(5),
.access-table-scope td:nth-child(5) { width: 24%; }
.access-role-table-scope th:nth-child(1),
.access-role-table-scope td:nth-child(1) { width: 42%; }
.access-role-table-scope th:nth-child(2),
.access-role-table-scope td:nth-child(2) { width: 58%; }
.access-role-primary,
.access-role-code {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.access-role-primary {
  color: var(--text);
  font-weight: 750;
}
.access-role-code {
  margin-top: 1px;
  font-size: 0.82rem;
  line-height: 1.2;
}
.customer-table-scope table {
  min-width: 780px;
  width: calc(100% - 1px);
  max-width: calc(100% - 1px);
  table-layout: fixed;
  border-spacing: 0;
}
.customer-table-scope th,
.customer-table-scope td {
  min-width: 0;
  padding: 6px 8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.customer-table-scope th {
  letter-spacing: 0;
}
.customer-table-scope th:nth-child(1),
.customer-table-scope td:nth-child(1) { width: 27%; }
.customer-table-scope th:nth-child(2),
.customer-table-scope td:nth-child(2) { width: 19%; }
.customer-table-scope th:nth-child(3),
.customer-table-scope td:nth-child(3) { display: none; }
.customer-table-scope th:nth-child(4),
.customer-table-scope td:nth-child(4) { width: 24%; }
.customer-table-scope th:nth-child(5),
.customer-table-scope td:nth-child(5) { display: none; }
.customer-table-scope th:nth-child(6),
.customer-table-scope td:nth-child(6) { width: 30%; }
.customer-access-identity-details {
  display: inline-block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.customer-primary-token,
.customer-id-token,
.customer-phone,
.customer-entry-token,
.customer-login-token {
  display: block;
  min-width: 0;
}
.customer-primary-token {
  max-width: 100%;
  color: var(--text);
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: keep-all;
}
.customer-id-token {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: keep-all;
}
.customer-row-date,
.customer-nickname {
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-login-token {
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-entry-token-unmatched {
  color: var(--muted);
}
.customer-identity-summary {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-access-identity-details > summary {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #1f5fa8;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  list-style: none;
}
.customer-access-identity-details > summary::marker,
.customer-access-identity-details > summary::-webkit-details-marker {
  display: none;
  content: "";
}
.customer-access-identity-details > summary:focus-visible {
  background: rgba(47, 134, 255, 0.08);
  color: #174f91;
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 1px;
}
.customer-access-identity-details > .compact-options-body {
  margin-top: 6px;
}
.customer-access-line {
  gap: 5px;
  flex-wrap: nowrap;
}
.customer-access-hint {
  display: none;
}
.customer-filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}
.customer-filter-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid rgba(103, 74, 47, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  outline: none;
}
.customer-filter-input:focus {
  border-color: rgba(47, 134, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 134, 255, 0.1);
}
.customer-filter-input::placeholder {
  color: #8d7868;
}
.customer-filter-command-row {
  justify-content: flex-end;
  gap: 8px;
}
.entry-table-scope table {
  min-width: 920px;
  table-layout: fixed;
}
.entry-table-scope th,
.entry-table-scope td {
  padding: 7px 9px;
  overflow-wrap: anywhere;
}
.entry-table-scope th {
  letter-spacing: 0;
}
.entry-table-scope th:nth-child(1),
.entry-table-scope td:nth-child(1),
.entry-table-scope th:nth-child(6),
.entry-table-scope td:nth-child(6),
.entry-table-scope th:nth-child(7),
.entry-table-scope td:nth-child(7) {
  display: none;
}
.entry-table-scope th:nth-child(2),
.entry-table-scope td:nth-child(2) { width: 15%; }
.entry-table-scope th:nth-child(3),
.entry-table-scope td:nth-child(3) { width: 18%; }
.entry-table-scope th:nth-child(4),
.entry-table-scope td:nth-child(4) { width: 26%; }
.entry-table-scope th:nth-child(5),
.entry-table-scope td:nth-child(5) { width: 8%; }
.entry-table-scope th:nth-child(8),
.entry-table-scope td:nth-child(8) { width: 23%; }
.entry-table-scope th:nth-child(9),
.entry-table-scope td:nth-child(9) { width: 10%; }
.entry-table-scope td:nth-child(1),
.entry-table-scope td:nth-child(2) {
  word-break: keep-all;
}
.entry-code-token {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.entry-table-scope .compact-options {
  min-width: 0;
  padding: 7px 9px;
  border-radius: 10px;
}
.entry-table-scope [data-entry-row-triage-options],
.entry-table-scope [data-entry-row-secondary-actions] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.entry-table-scope .compact-options summary {
  font-size: 0.82rem;
}
.entry-table-scope .entry-row-more-summary {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  overflow: hidden;
}
.entry-table-scope .entry-row-more-summary::marker {
  content: "";
}
.entry-table-scope .entry-row-more-summary::-webkit-details-marker {
  display: none;
}
.entry-table-scope .compact-options-body {
  margin-top: 7px;
}
.entry-table-scope .stack-actions,
.entry-table-scope .topbar-actions {
  gap: 6px;
}
.entry-row-action-rail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.entry-row-action-rail > .entry-row-command,
.entry-row-action-rail > .entry-row-secondary-actions {
  flex: 0 0 auto;
}
.entry-row-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.entry-row-command:hover,
.entry-row-command:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  outline: 2px solid rgba(47, 134, 255, 0.18);
  outline-offset: 2px;
}
.entry-table-scope .ghost-btn,
.entry-table-scope .primary-btn {
  max-width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.entry-launch-guard-shell {
  justify-content: space-between;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.54);
}
.entry-launch-guard-head {
  min-width: 0;
  gap: 5px;
}
.entry-launch-guard-head .pill {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 0.74rem;
}
.entry-launch-actions {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.entry-launch-actions summary {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.entry-launch-actions[open] {
  flex-basis: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
}
.entry-table-scope .entry-row-triage-summary,
.entry-table-scope .entry-row-more-summary {
  color: #2d2118;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 650;
  line-height: 1.2;
}
.entry-table-scope .entry-row-triage-summary {
  padding: 0;
  min-height: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-table-scope .entry-row-more-summary {
  color: #1f5fa8;
}
.entry-table-scope .entry-row-triage-summary:hover,
.entry-table-scope .entry-row-more-summary:hover,
.entry-table-scope .entry-row-triage-summary:focus-visible,
.entry-table-scope .entry-row-more-summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  outline: 2px solid rgba(47, 134, 255, 0.18);
  outline-offset: 2px;
}
.entry-row-folded-meta {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.kindergarten-table-scope table,
.campaign-table-scope table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.kindergarten-table-scope th,
.kindergarten-table-scope td,
.campaign-table-scope th,
.campaign-table-scope td {
  padding: 9px 10px;
  overflow-wrap: break-word;
  word-break: normal;
}
.kindergarten-table-scope th,
.campaign-table-scope th {
  letter-spacing: 0;
}
.kindergarten-table-scope th:nth-child(1),
.kindergarten-table-scope td:nth-child(1) { width: 16%; }
.kindergarten-table-scope th:nth-child(2),
.kindergarten-table-scope td:nth-child(2) { width: 35%; }
.kindergarten-table-scope th:nth-child(3),
.kindergarten-table-scope td:nth-child(3) { width: 16%; }
.kindergarten-table-scope th:nth-child(4),
.kindergarten-table-scope td:nth-child(4) { width: 33%; }
.campaign-table-scope th:nth-child(1),
.campaign-table-scope td:nth-child(1) { width: 16%; }
.campaign-table-scope th:nth-child(2),
.campaign-table-scope td:nth-child(2) { width: 42%; }
.campaign-table-scope th:nth-child(3),
.campaign-table-scope td:nth-child(3) { width: 26%; }
.campaign-table-scope th:nth-child(4),
.campaign-table-scope td:nth-child(4) { width: 16%; }
.kindergarten-table-scope td:nth-child(1),
.campaign-table-scope td:nth-child(1) {
  word-break: keep-all;
}
.campaign-id-token {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: keep-all;
}
.kindergarten-row-status {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f7a42;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-row-status-text {
  display: inline;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #53677a;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-row-status-text-success {
  color: #24733a;
}
.admin-row-status-text-warn {
  color: #8f4f20;
}
.admin-row-status-text-info {
  color: #53677a;
}
.admin-inline-meta-text {
  display: inline;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #53677a;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-inline-meta-success {
  color: #24733a;
}
.admin-inline-meta-warn {
  color: #8f4f20;
}
.admin-inline-meta-danger {
  color: #a33b2f;
}
.admin-inline-meta-muted {
  color: #6d7a86;
}
.kindergarten-table-scope .stack-actions,
.campaign-table-scope .stack-actions,
.kindergarten-table-scope .topbar-actions,
.campaign-table-scope .topbar-actions {
  justify-content: flex-start;
}
.kindergarten-table-scope .compact-options,
.campaign-table-scope .compact-options {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.kindergarten-table-scope .compact-options[open],
.campaign-table-scope .compact-options[open] {
  padding: 0;
}
.kindergarten-table-scope .compact-options > summary.kindergarten-row-command,
.campaign-table-scope .compact-options > summary.kindergarten-row-command {
  list-style: none;
  min-height: 0;
  padding: 0 2px;
  line-height: 1.2;
}
.kindergarten-table-scope .compact-options > summary.kindergarten-row-command::marker,
.campaign-table-scope .compact-options > summary.kindergarten-row-command::marker,
.kindergarten-table-scope .compact-options > summary.kindergarten-row-command::-webkit-details-marker,
.campaign-table-scope .compact-options > summary.kindergarten-row-command::-webkit-details-marker {
  display: none;
}
.kindergarten-row-action-band,
.campaign-row-action-band {
  display: flex;
  align-items: center;
  gap: 4px 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.kindergarten-table-scope tbody tr {
  height: auto;
}
.kindergarten-table-scope tbody td {
  height: auto;
  vertical-align: top;
}
.kindergarten-table-scope [data-kindergarten-row-primary-actions] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kindergarten-table-scope [data-kindergarten-row-primary-actions] .ghost-btn {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.kindergarten-row-triage-summary {
  flex: 0 0 auto;
  padding: 3px 7px;
  font-size: 0.74rem;
  white-space: nowrap;
  cursor: help;
}
.kindergarten-filter-bar {
  align-items: center;
  margin: 6px 0;
}
.kindergarten-filter-bar label,
.kindergarten-filter-bar input,
.kindergarten-filter-bar select {
  margin: 0;
}
.kindergarten-filter-keyword {
  flex: 1 1 280px;
}
.kindergarten-filter-keyword input {
  width: 100%;
}
.kindergarten-filter-count {
  margin-left: auto;
  white-space: nowrap;
}
.kindergarten-row-action-band > .compact-options > .compact-options-body,
.campaign-row-action-band > .compact-options > .compact-options-body {
  margin-top: 6px;
}
.access-permission-summary {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.22;
}
.access-permission-summary strong,
.access-permission-summary .muted {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.access-row-details {
  margin-top: 7px;
  padding: 7px 9px;
}
.access-row-details summary {
  font-size: 0.82rem;
}
.access-row-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.access-command-bar {
  gap: 4px 12px;
}
.access-command {
  min-height: 22px;
  padding: 1px 2px;
  font-size: 0.78rem;
}
.access-risk-detail,
.access-row-details,
[data-access-user-triage-options].compact-options,
[data-access-role-permissions].compact-options {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.access-risk-detail[open],
.access-row-details[open],
[data-access-user-triage-options].compact-options[open],
[data-access-role-permissions].compact-options[open] {
  padding-top: 2px;
}
.access-row-summary-command {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 0 2px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}
.access-row-summary-command:hover,
.access-row-summary-command:focus-visible {
  color: #174f91;
  background: rgba(47, 134, 255, 0.08);
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 2px;
}
.access-row-summary-command::-webkit-details-marker {
  display: none;
}
.access-risk-detail .compact-options-body,
.access-row-details .compact-options-body,
[data-access-user-triage-options] .compact-options-body,
[data-access-role-permissions] .compact-options-body {
  margin-top: 6px;
}
.access-risk-detail:not([open]) > .compact-options-body,
.access-row-details:not([open]) > .compact-options-body,
[data-access-user-triage-options].compact-options:not([open]) > .compact-options-body,
[data-access-role-permissions].compact-options:not([open]) > .compact-options-body {
  display: none;
}
.access-risk-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.access-risk-metrics .mini-stat {
  min-width: 0;
}
.marketing-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.marketing-command-bar {
  margin: 6px 0 0;
  gap: 4px 14px;
}
.marketing-inline-command {
  min-height: 20px;
  padding: 0 2px;
  font-size: 0.82rem;
}
.marketing-form-panel {
  margin-top: 6px;
}
.marketing-form-panel:not([open]) {
  display: none;
}
.marketing-form-panel > summary {
  width: fit-content;
  color: #1f5fa8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.marketing-form-panel[open] > summary {
  margin-bottom: 8px;
}
.marketing-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.marketing-form-grid label {
  min-width: 0;
}
.marketing-form-grid input,
.marketing-form-grid select {
  width: 100%;
  min-width: 0;
}
.marketing-table-scope table {
  min-width: 0;
  table-layout: fixed;
}
.marketing-table-scope th,
.marketing-table-scope td {
  padding: 8px 10px;
  line-height: 1.28;
}
.marketing-table-scope td > strong,
.marketing-table-scope td > span,
.marketing-table-scope td > .muted {
  min-width: 0;
}
.marketing-inline-meta {
  display: inline;
  margin-left: 6px;
  white-space: nowrap;
}
.marketing-secondary-panel {
  margin-top: 6px;
}
.marketing-secondary-panel > summary {
  min-height: 24px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.marketing-secondary-panel[open] {
  padding-top: 6px;
}
.marketing-table-scope td:nth-child(1) { width: 22%; }
.marketing-table-scope td:nth-child(2) { width: 24%; }
.marketing-table-scope td:nth-child(3) { width: 24%; }
.marketing-table-scope td:nth-child(4) { width: 16%; }
.marketing-table-scope td:nth-child(5) { width: 14%; }
.marketing-code-table-scope td:nth-child(1) { width: 28%; }
.marketing-code-table-scope td:nth-child(2) { width: 24%; }
.marketing-code-table-scope td:nth-child(3) { width: 26%; }
.marketing-code-table-scope td:nth-child(4) { width: 22%; }
.order-receiver, .order-item-lines { min-width: 220px; line-height: 1.55; }
.order-item-lines { display: grid; gap: 8px; }
.product-health-board { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.product-health-tile {
  min-width: 0; text-align: left; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.58); border: 1px solid rgba(103, 74, 47, 0.1); color: var(--text);
}
.product-health-tile.warn { border-color: rgba(184, 107, 57, 0.25); background: rgba(184, 107, 57, 0.07); }
.product-health-tile.danger { border-color: rgba(164, 75, 63, 0.3); background: rgba(164, 75, 63, 0.07); }
.product-health-tile strong { font-size: 1.05rem; }
.product-health-tile span { font-weight: 700; }
.product-health-tile small { color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; max-width: 260px; white-space: normal; overflow: visible; text-overflow: clip; }
.product-next-step {
  min-width: 180px; display: grid; gap: 5px; padding: 8px 9px; border-radius: 10px;
  background: rgba(255,255,255,0.52); border: 1px solid rgba(103, 74, 47, 0.1); line-height: 1.32;
}
.product-next-step.warn { border-color: rgba(184, 107, 57, 0.25); background: rgba(184, 107, 57, 0.07); }
.product-next-step.danger { border-color: rgba(164, 75, 63, 0.3); background: rgba(164, 75, 63, 0.07); }
.product-next-step strong { font-size: 0.88rem; }
.product-next-step span { color: var(--muted); overflow-wrap: anywhere; font-size: 0.8rem; }
.product-next-step .status-line { gap: 4px; font-size: 0.82rem; }
.product-next-step.compact-options { min-width: 0; padding: 7px 9px; border-radius: 10px; }
.product-next-step.compact-options summary { font-size: 0.82rem; }
.product-next-step.compact-options .compact-options-body { margin-top: 7px; display: grid; gap: 5px; }
.product-row-action-panel .product-sale-readiness-compact,
.product-row-action-panel .product-handoff-compact,
.product-row-action-panel .product-operation-checklist,
.product-stock-source-card .product-stock-detail-options {
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
}
.product-row-action-panel .product-sale-readiness-compact:not([open]),
.product-row-action-panel .product-handoff-compact:not([open]),
.product-stock-source-card .product-stock-detail-options:not([open]) {
  background: rgba(255,255,255,0.38);
}
.product-stock-source-card .compact-options-body {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}
.product-row-ops { min-width: 0; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; max-width: 160px; }
.product-row-ops .product-operation-checklist:not([open]) > :not(summary) { display: none; }
.product-row-ops .product-next-step {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
}
.product-row-ops .product-next-step-inline {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
}
.product-row-ops .product-next-step-inline strong {
  font-size: 0.8rem;
  white-space: nowrap;
}
.product-row-ops .product-next-step span {
  display: block;
  overflow-wrap: anywhere;
}
.product-inventory-source-note {
  display: block;
  overflow-wrap: anywhere;
}
.product-inventory-source-summary {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-row-ops-more > summary {
  font-size: 0.78rem;
  color: var(--muted);
}
.product-admin-density-surface .product-summary-text-command {
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  padding: 1px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f6d7e;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.product-admin-density-surface .product-summary-text-command::-webkit-details-marker {
  display: none;
}
.product-admin-density-surface .product-summary-text-command:hover,
.product-admin-density-surface .product-summary-text-command:focus-visible {
  color: #174f91;
  background: rgba(47, 134, 255, 0.08);
  outline: 2px solid rgba(47, 134, 255, 0.18);
  outline-offset: 2px;
}
.product-admin-density-surface .product-topbar-text-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.product-admin-density-surface .product-topbar-text-options[open] {
  padding: 0;
}
.product-row-ops-more .compact-options-body {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.product-batch-selection-shell:not([open]) {
  padding: 6px 8px;
}
.product-batch-selection-shell > summary {
  list-style-position: inside;
}
.product-batch-selection-body {
  display: grid;
  gap: 6px;
}
.product-admin-density-surface {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.product-summarybar,
.product-filterbar {
  margin-bottom: 2px;
  min-width: 0;
}
.product-summarybar {
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.product-summarybar .topbar-actions,
.product-filterbar .topbar-actions,
.product-admin-density-surface .topbar-actions {
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.product-summarybar > .status-line {
  flex: 1 1 280px;
  min-width: 0;
}
.product-summarybar > .topbar-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
}
.product-filterbar {
  align-items: end;
  flex-wrap: wrap;
}
.product-filterbar .filters {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}
.product-filterbar input,
.product-filterbar select {
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
}
.product-admin-density-surface .ghost-btn,
.product-admin-density-surface .primary-btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.82rem;
}
.product-admin-density-surface .compact-options,
.product-admin-density-surface .list-item {
  border-radius: 8px;
}
.product-admin-density-surface > .compact-options,
.product-admin-density-surface > .list-item {
  padding: 6px 8px;
}
.product-health-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1px 0 4px;
}
.product-health-inline > strong {
  margin-right: 2px;
}
.product-summarybar .product-health-inline {
  margin: 0;
}
.product-health-inline-command.danger {
  color: #a12c2c;
}
.product-health-inline-command.warn,
.product-queue-shortcut-command.active {
  color: #9a4b19;
}
.product-queue-shortcut-command.quiet {
  color: #667085;
}
.product-quick-filter-command.active {
  color: #174f91;
  font-weight: 800;
}
.product-health-secondary-shell {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.product-health-secondary-shell summary,
.product-queue-shell > summary,
.product-batch-selection-shell > summary {
  font-size: 0.82rem;
}
.product-queue-shell {
  padding: 5px 8px;
}
.product-queue-shell > summary {
  cursor: pointer;
  list-style-position: inside;
}
.product-admin-density-surface [data-product-quick-filter-options],
.product-admin-density-surface [data-product-queue-secondary-options],
.product-admin-density-surface .product-row-ops-more,
.product-admin-density-surface .product-row-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.product-admin-density-surface [data-product-quick-filter-options] > .compact-options-body,
.product-admin-density-surface [data-product-queue-secondary-options] > .compact-options-body,
.product-admin-density-surface .product-row-ops-more > .compact-options-body,
.product-admin-density-surface .product-row-more > .compact-options-body {
  margin-top: 6px;
}
.product-queue-body,
.product-queue-detail-options .compact-options-body {
  display: grid;
  gap: 5px;
}
.product-queue-body {
  margin-top: 7px;
}
.product-queue-shell:not([open]) .product-queue-body {
  display: none;
}
.product-admin-density-surface [data-product-filter-chips] {
  margin: 0;
}
.product-deferred-ops {
  margin-top: 2px;
}
.product-table-wrap {
  border-radius: 10px;
  min-width: 0;
}
.product-table {
  min-width: 760px;
  table-layout: fixed;
}
.product-table th,
.product-table td {
  padding: 7px 8px;
  font-size: 0.82rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.product-table th {
  font-size: 0.68rem;
  letter-spacing: 0;
}
.product-table th:nth-child(1),
.product-table td:nth-child(1) { width: 4%; text-align: center; }
.product-table th:nth-child(2),
.product-table td:nth-child(2) { width: 29%; }
.product-table th:nth-child(3),
.product-table td:nth-child(3) { width: 16%; }
.product-table th:nth-child(4),
.product-table td:nth-child(4) { width: 13%; }
.product-table th:nth-child(5),
.product-table td:nth-child(5) { width: 8%; }
.product-table th:nth-child(6),
.product-table td:nth-child(6) { width: 18%; }
.product-table th:nth-child(7),
.product-table td:nth-child(7) { width: 10%; }
.product-table th:nth-child(8),
.product-table td:nth-child(8) { width: 12%; }
.product-table .status-line {
  gap: 4px;
}
.product-table .chip,
.product-table .pill,
.product-table .badge {
  padding: 3px 6px;
  font-size: 0.68rem;
}
.product-table .muted {
  font-size: 0.76rem;
  line-height: 1.3;
}
.product-ops-merged {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.product-ops-default-row {
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}
.product-ops-status {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}
.product-ops-merged .product-next-step {
  min-width: 0;
  width: auto;
  max-width: 72px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  line-height: 1.2;
}
.product-ops-merged .product-next-step strong {
  font-size: 0.8rem;
  white-space: nowrap;
}
.product-code-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  align-items: center;
  margin-top: 2px;
}
.product-code-token {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7b6d60;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.2;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-identity-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  contain: layout paint;
}
.product-thumb {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(103, 74, 47, 0.16);
  background: #f4efe7;
  color: #8a7866;
  font-size: 0.68rem;
  font-weight: 700;
}
.product-thumb img {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  display: block;
  object-fit: cover;
}
.product-thumb span {
  display: none;
}
.product-thumb.missing span {
  display: inline;
}
.product-identity-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.product-detail-images-card {
  gap: 10px;
}
.product-detail-image-editor {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
}
.product-detail-image-editor > .status-line,
.product-detail-image-editor > label {
  grid-column: 1 / -1;
}
.product-detail-image-preview {
  width: 86px;
  height: 86px;
  min-width: 86px;
  max-width: 86px;
  border: 1px solid rgba(103, 74, 47, 0.16);
  border-radius: 8px;
  background: #f4efe7;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #8a7866;
  font-size: 0.76rem;
  font-weight: 700;
}
.product-detail-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-detail-image-preview.is-empty span {
  display: inline;
}
.product-detail-image-editor > .field-grid {
  align-self: stretch;
}
.product-identity-title {
  min-width: 0;
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.product-identity-visible-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  align-items: center;
}
.product-identity-visible-meta span {
  min-width: 0;
  max-width: 100%;
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid rgba(31, 95, 168, 0.14);
  border-radius: 999px;
  background: rgba(31, 95, 168, 0.06);
  color: #4f6175;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.15;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-identity-more {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
}
.product-identity-subtitle {
  display: block;
  overflow-wrap: anywhere;
}
.product-identity-full-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.product-identity-more > summary {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #1f5fa8;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  list-style: none;
}
.product-identity-more > summary::-webkit-details-marker {
  display: none;
}
.product-identity-more > summary::marker {
  content: "";
}
.product-identity-more > .compact-options-body {
  display: grid;
  gap: 3px;
  min-width: 220px;
  margin-top: 4px;
}
.product-table [data-product-next-action-hint] {
  display: none;
}
.product-stock-line {
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
}
.product-stock-summary {
  min-width: 0;
  display: block;
  overflow: visible;
  color: #2f2a25;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-stock-more {
  color: #786859;
  font-weight: 650;
}
.product-stock-total {
  color: #1f5fa8;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-stock-inline-next {
  display: none;
}
.product-row-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.product-row-more summary {
  display: inline-flex;
  align-items: center;
}
.product-row-more summary::-webkit-details-marker {
  display: none;
}
.product-row-more[open] {
  display: inline-block;
}
.product-row-action-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.product-row-action-command {
  flex: 0 0 auto;
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
}
.product-row-action-command.warn {
  color: #9a4b19;
}
.product-row-action-panel {
  align-items: center;
  justify-content: flex-start;
  margin-top: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}
.product-lifecycle-primary-actions {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  order: -10;
}
.product-lifecycle-primary-actions .primary-btn,
.product-lifecycle-primary-actions .ghost-btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}
.product-row-action-more {
  flex: 0 0 100%;
  width: 100%;
  padding: 6px 8px;
}
.product-row-action-more > summary {
  font-size: 0.8rem;
}
.product-row-action-more > .compact-options-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.product-row-action-more:not([open]) > .compact-options-body {
  display: none !important;
}
.product-row-action-panel .primary-btn,
.product-row-action-panel .ghost-btn {
  min-width: 0;
}
.product-row-action-panel .muted {
  flex-basis: 100%;
}
.product-admin-density-surface .product-health-board {
  gap: 6px;
  margin: 4px 0;
}
.product-admin-density-surface .product-health-tile {
  padding: 6px 9px;
  min-height: 34px;
}
.product-admin-density-surface .product-health-tile small {
  display: none;
}
.kingdee-health-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kingdee-health-tile {
  min-width: 0; text-align: left; display: grid; gap: 5px; padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,0.58); border: 1px solid rgba(103, 74, 47, 0.1); color: var(--text);
}
.kingdee-health-tile.warn { border-color: rgba(184, 107, 57, 0.25); background: rgba(184, 107, 57, 0.07); }
.kingdee-health-tile.danger { border-color: rgba(164, 75, 63, 0.3); background: rgba(164, 75, 63, 0.07); }
.kingdee-health-tile strong { font-size: 1.35rem; }
.kingdee-health-tile small { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.kingdee-health-tile em { font-style: normal; color: var(--accent-2); font-size: 0.86rem; }
.kingdee-health-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 2px 0 8px;
  min-width: 0;
}
.kingdee-health-command {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  min-height: 22px;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
}
.kingdee-health-command:focus-visible {
  outline: 2px solid rgba(122, 91, 61, 0.35);
  outline-offset: 2px;
}
.kingdee-health-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.kingdee-health-command strong {
  font-size: 0.9rem;
  min-width: 0;
}
.kingdee-health-metric {
  color: var(--accent-2);
  font-weight: 800;
}
.kingdee-health-status {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
.kingdee-health-command.warn .kingdee-health-status,
.kingdee-health-command.warn .kingdee-health-metric {
  color: var(--warn);
}
.kingdee-health-command.danger .kingdee-health-status,
.kingdee-health-command.danger .kingdee-health-metric {
  color: var(--danger);
}
.kingdee-health-control-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}
.kingdee-health-secondary-options.compact-options,
.kingdee-workspace-details.compact-options {
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.kingdee-health-secondary-options.compact-options > summary,
.kingdee-workspace-details.compact-options > summary {
  cursor: pointer;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.kingdee-health-secondary-options.compact-options > summary:focus-visible,
.kingdee-workspace-details.compact-options > summary:focus-visible {
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 2px;
}
.kingdee-health-secondary-options.compact-options[open],
.kingdee-workspace-details.compact-options[open] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(103, 74, 47, 0.08);
}
.kingdee-compact-panel { padding: 0; overflow: hidden; }
.kingdee-compact-panel > summary {
  cursor: pointer; list-style-position: inside; padding: 13px 16px; display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr) minmax(160px, 1.3fr);
  gap: 10px; align-items: center;
}
.kingdee-compact-panel > summary .muted { overflow-wrap: anywhere; }
.kingdee-compact-title { font-weight: 800; color: var(--text); }
.kingdee-compact-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.kingdee-compact-panel:not([open]) .kingdee-compact-body { display: none; }
.kingdee-compact-panel.warn > summary { background: rgba(184, 107, 57, 0.07); }
.kingdee-compact-panel.danger > summary { background: rgba(164, 75, 63, 0.07); }
.kingdee-workspace-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.focus-ring { outline: 3px solid rgba(86, 114, 74, 0.28); outline-offset: 3px; }
.subscription-gate-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.subscription-gate-tile {
  min-width: 0; text-align: left; display: grid; gap: 5px; padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,0.58); border: 1px solid rgba(103, 74, 47, 0.1); color: var(--text);
}
.subscription-gate-tile.warn { border-color: rgba(184, 107, 57, 0.25); background: rgba(184, 107, 57, 0.07); }
.subscription-gate-tile.danger { border-color: rgba(164, 75, 63, 0.3); background: rgba(164, 75, 63, 0.07); }
.subscription-gate-tile.quiet { background: rgba(255,255,255,0.38); }
.subscription-gate-tile strong { font-size: 1.35rem; line-height: 1; }
.subscription-gate-label { font-size: 0.92rem; font-weight: 700; overflow-wrap: anywhere; }
.subscription-gate-tile small { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.subscription-gate-tile em {
  width: fit-content; max-width: 100%; font-style: normal; color: var(--muted); font-size: 0.8rem;
  padding: 2px 7px; border-radius: 999px; background: rgba(103, 74, 47, 0.08); overflow-wrap: anywhere;
}
.subscription-inline-summary {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(103, 74, 47, 0.1);
}
.subscription-queue-brief-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 6px 2px 8px;
}
.subscription-queue-brief-shell > .compact-options {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px;
}
.subscription-queue-brief-head {
  min-width: 0;
  margin: 0;
}
.subscription-queue-primary-actions {
  justify-content: flex-end;
  margin: 0;
}
.subscription-queue-primary-actions .ghost-btn,
.subscription-list-density-bar .ghost-btn {
  min-height: 30px;
  padding: 5px 9px;
}
.subscription-list-density-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 8px;
}
.subscription-list-density-bar .status-line {
  margin: 0;
}
.subscription-management-primary-stats {
  margin: 4px 0 6px;
  gap: 5px;
}
.subscription-management-primary-stats .pill { min-height: 22px; padding: 3px 7px; font-size: 0.75rem; }
.subscription-management-more-stats {
  margin: 0 0 10px;
  padding: 7px 9px;
  border-radius: 10px;
}
.subscription-management-more-stats > summary,
.subscription-management-scope-more > summary {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.84rem;
}
.subscription-management-more-stats .summary-grid {
  margin-top: 8px;
}
.subscription-management-scope-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.subscription-management-scope-more .compact-options-body {
  margin-top: 6px;
}
.subscription-blocked-card {
  padding: 8px 12px 10px;
}
.subscription-blocked-card > p {
  display: none;
}
.subscription-blocked-card .list-stack {
  gap: 6px;
}
.subscription-blocked-card > .summary-grid,
.subscription-blocked-stats {
  gap: 8px;
  margin-bottom: 0;
}
.subscription-blocked-stats .mini-stat {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
}
.subscription-blocked-strip {
  margin: 2px 0;
  padding: 0 2px;
}
.subscription-blocked-card > .compact-options {
  min-height: 32px;
  margin: 2px 0 6px;
  padding: 5px 8px;
  border-radius: 9px;
}
.subscription-blocked-card > .compact-options summary {
  min-height: 20px;
  font-size: 0.88rem;
  line-height: 1.1;
}
.subscription-secondary-queue-strip {
  min-width: 0;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(255,255,255,0.44);
  border: 1px solid rgba(103, 74, 47, 0.1);
}
.subscription-secondary-queues {
  display: grid;
  gap: 8px;
}
.subscription-secondary-queue {
  background: rgba(255,255,255,0.54);
  margin: 0;
}
.subscription-secondary-queue > summary {
  min-height: 30px;
  padding: 5px 8px;
  align-items: center;
}
.subscription-filter-panel {
  margin: 4px 0 8px;
  padding: 6px 8px;
  border-radius: 10px;
}
.subscription-filter-panel > summary {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.84rem;
}
.list-density-bar,
.store-management-desk,
.kindergarten-operation-guard-shell,
.campaign-operation-guard-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  padding: 2px 0 6px;
}
.list-density-bar .status-line,
.store-management-desk .status-line,
.kindergarten-operation-guard-shell .status-line,
.campaign-operation-guard-shell .status-line {
  margin: 0;
}
.list-density-bar .ghost-btn,
.store-management-desk .ghost-btn,
.kindergarten-operation-guard-shell .ghost-btn,
.campaign-operation-guard-shell .ghost-btn {
  min-height: 30px;
  padding: 5px 9px;
}
.store-management-desk > .compact-options,
.kindergarten-operation-guard-shell > .compact-options,
.campaign-operation-guard-shell > .compact-options {
  min-width: 132px;
  margin: 0;
  padding: 4px 7px;
  border-radius: 8px;
}
.store-management-desk > .kindergarten-text-options,
.kindergarten-operation-guard-shell > .kindergarten-text-options,
.campaign-operation-guard-shell > .kindergarten-text-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.kindergarten-text-options > summary {
  list-style: none;
}
.kindergarten-text-options > summary::marker,
.kindergarten-text-options > summary::-webkit-details-marker {
  display: none;
}
.kindergarten-text-options > .compact-options-body {
  margin-top: 4px;
}
.kindergarten-text-options:not([open]) > .compact-options-body {
  display: none;
}
.kindergarten-secondary-panel {
  margin-top: 8px;
}
.kindergarten-secondary-panel > summary {
  min-height: 24px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kindergarten-secondary-panel[open] {
  padding-top: 6px;
}
.store-management-desk-head,
.kindergarten-operation-guard-head,
.campaign-operation-guard-shell .status-line {
  min-width: 0;
}
.subscription-blocked-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 6px;
  align-items: center;
  padding: 3px 6px;
  border-radius: 8px;
}
.subscription-blocked-row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 5px;
}
.subscription-blocked-row-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-right: 2px;
  line-height: 1.18;
}
.subscription-blocked-row .pill {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 0.7rem;
  line-height: 1.1;
}
.subscription-blocked-row-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}
.subscription-inline-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.subscription-inline-command:hover,
.subscription-inline-command:focus-visible {
  background: rgba(47, 134, 255, 0.08);
  color: #174f91;
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 1px;
}
.subscription-text-options {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.subscription-text-options > summary {
  list-style: none;
}
.subscription-text-options > summary::marker,
.subscription-text-options > summary::-webkit-details-marker {
  display: none;
}
.subscription-text-options > .compact-options-body {
  margin-top: 0;
}
.subscription-text-options:not([open]) > .compact-options-body {
  display: none;
}
.subscription-launch-filter-command,
.subscription-queue-shortcut-command {
  min-height: 22px;
  padding: 1px 3px;
}
.subscription-launch-filter-command.warn,
.subscription-queue-shortcut-command.warn {
  color: #9a4b19;
}
.subscription-launch-filter-command.danger,
.subscription-queue-shortcut-command.danger {
  color: #a12c2c;
}
.subscription-launch-filter-command.quiet,
.subscription-queue-shortcut-command.quiet {
  color: #667085;
}
.inline-command-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.admin-inline-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 1px 2px;
  border: 0;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.admin-inline-command:hover,
.admin-inline-command:focus-visible {
  color: #174f91;
  background: rgba(47, 134, 255, 0.08);
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 2px;
}
.order-bulk-deferred-options {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.order-bulk-deferred-options > summary {
  list-style: none;
}
.order-bulk-deferred-options > summary::marker,
.order-bulk-deferred-options > summary::-webkit-details-marker {
  display: none;
}
.order-bulk-deferred-options > .compact-options-body {
  margin-top: 0;
}
.order-bulk-deferred-options:not([open]) > .compact-options-body {
  display: none;
}
.order-batch-selection-details.compact-options {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.order-batch-selection-details.compact-options[open] {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.46);
}
.order-batch-selection-details > summary.order-secondary-text-command {
  display: inline-flex;
  list-style: none;
}
.order-batch-selection-details > summary.order-secondary-text-command::marker,
.order-batch-selection-details > summary.order-secondary-text-command::-webkit-details-marker {
  display: none;
}
.order-batch-selection-details > .compact-options-body {
  margin-top: 7px;
  gap: 5px;
}
.customer-service-inline-command-primary {
  color: #0f766e;
}
.customer-service-support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 6px;
}
.customer-service-support-strip > .customer-service-inline-detail.compact-options,
.customer-service-faq-gap-inline-detail.compact-options {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.customer-service-support-strip > .customer-service-inline-detail.compact-options > summary,
.customer-service-faq-gap-inline-detail.compact-options > summary {
  min-height: 20px;
  padding: 0 1px;
  list-style: none;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.customer-service-support-strip > .customer-service-inline-detail.compact-options > summary::marker,
.customer-service-support-strip > .customer-service-inline-detail.compact-options > summary::-webkit-details-marker,
.customer-service-faq-gap-inline-detail.compact-options > summary::marker,
.customer-service-faq-gap-inline-detail.compact-options > summary::-webkit-details-marker {
  display: none;
}
.customer-service-support-strip > .customer-service-inline-detail.compact-options > summary:focus-visible,
.customer-service-support-strip > .customer-service-inline-detail.compact-options > summary:hover,
.customer-service-faq-gap-inline-detail.compact-options > summary:focus-visible,
.customer-service-faq-gap-inline-detail.compact-options > summary:hover {
  color: #174f91;
  background: rgba(47, 134, 255, 0.08);
  outline: 2px solid rgba(47, 134, 255, 0.18);
  outline-offset: 1px;
}
.customer-service-support-strip > .customer-service-inline-detail.compact-options[open],
.customer-service-faq-gap-inline-detail.compact-options[open] {
  flex-basis: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.46);
}
.customer-service-support-strip > .customer-service-inline-detail.compact-options > .compact-options-body,
.customer-service-faq-gap-inline-detail.compact-options > .compact-options-body {
  margin-top: 6px;
}
.subscription-blocked-row-action .ghost-btn {
  min-height: 22px;
  padding: 2px 6px;
  font-size: 0.76rem;
  white-space: nowrap;
}
.subscription-blocked-row-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.subscription-blocked-row-more summary {
  min-height: 20px;
  padding: 1px 2px;
  font-size: 0.76rem;
  line-height: 1.1;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #667085;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.subscription-blocked-row-more summary:hover,
.subscription-blocked-row-more summary:focus-visible {
  color: #174f91;
  background: rgba(47, 134, 255, 0.08);
  outline: 2px solid rgba(47, 134, 255, 0.18);
  outline-offset: 1px;
}
.subscription-blocked-row-more[open] {
  min-width: min(360px, 52vw);
  padding: 7px 9px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
}
.subscription-blocked-row > .compact-options summary,
.subscription-row-more summary {
  font-size: 0.82rem;
}
.subscription-row-more {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 10px;
}
.subscription-row-more .compact-options-body {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}
.order-next-step {
  min-width: 210px; display: grid; gap: 7px; padding: 10px; border-radius: 14px;
  background: rgba(255,255,255,0.52); border: 1px solid rgba(103, 74, 47, 0.1); line-height: 1.45;
}
.order-next-step.warn { border-color: rgba(184, 107, 57, 0.25); background: rgba(184, 107, 57, 0.07); }
.order-next-step.danger { border-color: rgba(164, 75, 63, 0.3); background: rgba(164, 75, 63, 0.07); }
.order-next-step span { color: var(--muted); overflow-wrap: anywhere; }
.order-next-step .topbar-actions { gap: 6px; }
.order-list {
  display: grid;
  gap: 10px;
}
.order-queue-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 8px 0 6px;
  border-bottom: 1px solid rgba(103, 74, 47, 0.12);
}
.order-queue-command {
  min-height: 24px;
  padding: 3px 8px 5px;
  border-bottom: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
}
.order-queue-command.active {
  border-bottom-color: #2f86ff;
  color: #2f86ff;
}
.order-queue-command:hover,
.order-queue-command:focus-visible {
  background: transparent;
  text-decoration: underline;
}
.order-table-shell {
  display: block;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}
.order-view-mode-control {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border: 1px solid rgba(103, 74, 47, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}
.order-view-mode-control > span {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}
.order-view-mode-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}
.order-view-mode-command.active {
  background: #2f86ff;
  border-color: #2f86ff;
  color: #fff;
}
.order-view-mode-command:focus-visible {
  outline: 2px solid rgba(47, 134, 255, 0.22);
  outline-offset: 1px;
}
.order-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.order-table-head,
.order-table-row {
  min-width: 1094px;
  display: grid;
  grid-template-columns: 42px 184px 78px 106px 72px 86px 142px 124px 86px 174px;
  align-items: center;
}
.order-table-head {
  min-height: 52px;
  background: #f6f6f6;
  border-bottom: 1px solid rgba(103, 74, 47, 0.08);
  color: var(--text);
  font-weight: 700;
}
.order-table-body {
  min-width: 1094px;
}
.order-table-record {
  display: block;
  min-width: 1094px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(103, 74, 47, 0.08);
}
.order-table-record:last-child {
  border-bottom: 0;
}
.order-table-row {
  min-height: 56px;
}
.order-table-cell {
  min-width: 0;
  padding: 12px 10px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.order-table-head .order-table-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-table-select {
  display: grid;
  place-items: center;
  padding-inline: 12px;
}
.order-table-select[hidden],
.order-bulk-deferred-options[hidden] {
  display: none !important;
}
.order-table-order-no strong {
  color: #31435f;
  font-weight: 600;
}
.order-table-count {
  text-align: center;
}
.order-table-money {
  color: #ff0000;
  font-weight: 700;
}
.order-table-status {
  color: #ff8a00;
  font-weight: 700;
}
.order-table-narrow-summary {
  display: none;
}
.order-narrow-main-line,
.order-narrow-meta-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 9px;
  line-height: 1.22;
}
.order-narrow-main-line strong {
  color: #31435f;
  font-weight: 700;
}
.order-narrow-main-line span,
.order-narrow-meta-line span,
.order-narrow-main-line time {
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-narrow-main-line b {
  color: #ff0000;
}
.order-narrow-main-line em {
  color: #ff8a00;
  font-style: normal;
  font-weight: 700;
}
.order-narrow-meta-line {
  color: var(--muted);
  font-size: 0.78rem;
}
.order-narrow-meta-line span {
  color: var(--muted);
}
.order-table-actions-cell {
  padding-block: 8px;
}
.order-table-actions-stack.order-row-actions {
  width: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px 10px;
  min-width: 128px;
}
.order-table-actions-stack .ghost-btn,
.order-table-actions-stack .primary-btn {
  width: auto;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  white-space: nowrap;
}
.order-table-actions-stack .ghost-btn {
  background: #13a538;
  border-color: #13a538;
  color: #fff;
}
.order-table-actions-stack .primary-btn {
  background: #2f86ff;
  border-color: #2f86ff;
  color: #fff;
}
.order-table-actions-stack .order-inline-detail-btn {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(42, 71, 96, 0.16);
  color: #385067;
}
.order-table-actions-stack .order-inline-detail-toggle {
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  background: transparent;
}
.order-table-actions-stack .order-inline-detail-toggle > summary {
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid rgba(42, 71, 96, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #385067;
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.order-table-actions-stack .order-inline-detail-toggle > summary::-webkit-details-marker {
  display: none;
}
.order-table-actions-stack .order-next-secondary-actions {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}
.order-table-actions-stack .order-next-secondary-actions summary {
  width: fit-content;
  min-height: 24px;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f6d7e;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-align: left;
  cursor: pointer;
  list-style: none;
}
.order-table-actions-stack .order-next-secondary-actions summary::-webkit-details-marker {
  display: none;
}
.order-table-actions-stack .order-next-secondary-actions:not([open]) > .topbar-actions {
  display: none;
}
.order-table-actions-stack .order-next-secondary-actions[open] .topbar-actions {
  margin-top: 5px;
}
.order-table-record.is-detail-open .order-table-row {
  background: rgba(47, 134, 255, 0.04);
}
.order-table-detail {
  position: sticky;
  left: 0;
  width: var(--order-detail-viewport-width, 100%);
  min-width: 0;
  max-width: var(--order-detail-viewport-width, 100%);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  grid-template-areas:
    "product meta"
    "receiver receiver";
  gap: 6px 14px;
  padding: 7px 12px 8px;
  background: #f3f3f3;
  border-top: 1px solid rgba(103, 74, 47, 0.07);
}
.order-table-detail.is-collapsed {
  display: none;
}
.order-table-detail-product,
.order-table-detail-meta,
.order-table-detail-receiver {
  min-width: 0;
}
.order-table-detail-product { grid-area: product; }
.order-table-detail-meta { grid-area: meta; }
.order-table-detail-receiver { grid-area: receiver; }
.order-table-detail .order-row-items,
.order-table-detail .order-row-receiver {
  gap: 4px;
}
.order-table-detail .order-row-section-title small {
  color: var(--text);
  font-size: 0.78rem;
}
.order-table-detail .order-product-brief {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px;
}
.order-table-detail .order-product-thumb {
  width: 44px;
  border-radius: 4px;
}
.order-table-detail .order-product-copy {
  gap: 2px;
}
.order-table-detail .order-product-name {
  -webkit-line-clamp: 1;
  font-size: 0.9rem;
}
.order-table-detail .order-row-field-grid,
.order-table-detail .order-detail-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
.order-table-detail .order-row-field-grid > div,
.order-table-detail .order-detail-fields > div {
  padding: 0;
  background: transparent;
  border: 0;
}
.order-table-detail .order-row-field-grid span,
.order-table-detail .order-detail-fields span {
  color: var(--muted);
  font-size: 0.78rem;
}
.order-table-detail .order-row-field-grid strong,
.order-table-detail .order-detail-fields strong {
  font-size: 0.86rem;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.order-table-detail .order-product-amount {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.order-table-detail .order-address-line strong {
  display: block;
  max-width: 100%;
  line-height: 1.42;
}
.order-table-detail .order-info-value-full,
.order-table-detail .order-address-full {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.order-table-detail .order-info-row-folded.wide {
  grid-column: 1 / -1;
}
.order-table-detail .order-folded-text summary {
  display: inline;
}
.order-table-detail .order-folded-text > span,
.order-table-detail .order-folded-text > strong {
  padding: 5px 0 0;
}
.order-table-payment {
  margin-top: 10px;
}
.order-table-payment .order-row-payment {
  grid-column: auto;
  padding: 8px;
  border-radius: 6px;
}
.order-row-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 128px;
  grid-template-areas: "select content actions";
  gap: 12px;
  align-items: stretch;
  padding: 12px 14px;
  border: 1px solid rgba(103, 74, 47, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}
.order-row-select { grid-area: select; padding-top: 4px; }
.order-row-content {
  grid-area: content;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}
.order-row-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 14px;
  align-items: start;
}
.order-row-context { min-width: 0; }
.order-row-main { grid-area: main; }
.order-row-items { min-width: 0; }
.order-row-receiver { min-width: 0; }
.order-row-meta { grid-area: meta; }
.order-row-status { grid-area: status; }
.order-row-amount { grid-area: amount; }
.order-row-payment { grid-column: 2 / 3; min-width: 0; }
.order-row-main, .order-row-context, .order-row-receiver, .order-row-items, .order-row-meta, .order-row-status, .order-row-amount, .order-row-actions {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 5px;
  line-height: 1.3;
}
.order-row-main strong, .order-row-items strong, .order-row-amount strong {
  overflow-wrap: anywhere;
}
.order-row-main strong, .order-row-context strong, .order-row-items strong, .order-row-receiver strong {
  font-size: 0.92rem;
}
.order-row-main span, .order-row-main small, .order-row-context span, .order-row-context small, .order-row-receiver span, .order-row-receiver small, .order-row-items small, .order-row-items span, .order-row-meta span, .order-row-amount span, .order-row-actions small {
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.82rem;
}
.order-row-section-title {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px 10px;
}
.order-row-section-title small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.order-row-section-title strong {
  color: var(--text);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.order-row-section-title span {
  color: var(--muted);
  font-size: 0.78rem;
}
.order-info-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}
.order-info-label {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.order-info-value {
  color: var(--text);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.order-info-row-folded {
  align-items: start;
}
.order-folded-text {
  min-width: 0;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.35;
}
.order-folded-text summary {
  display: block;
  min-width: 0;
  color: var(--text);
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
  list-style: none;
}
.order-folded-text summary::-webkit-details-marker {
  display: none;
}
.order-folded-text summary::after {
  content: " 展开";
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.order-folded-text[open] summary::after {
  content: " 收起";
}
.order-folded-text:not([open]) > span,
.order-folded-text:not([open]) > strong {
  display: none;
}
.order-folded-text[open] > span,
.order-folded-text[open] > strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.order-product-brief {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.order-product-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: 72px;
  max-height: 72px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f2e2d3;
  border: 1px solid rgba(103, 74, 47, 0.18);
  display: grid;
  place-items: center;
  color: #7b5b3d;
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
}
.order-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
.order-product-thumb.is-empty {
  background: repeating-linear-gradient(135deg, #f7ebdf 0, #f7ebdf 8px, #efddca 8px, #efddca 16px);
}
.order-product-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.order-table-wechat-transaction {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.order-product-name {
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-product-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.order-product-amount {
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.order-row-field-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(150px, 0.8fr);
  gap: 8px 12px;
}
.order-row-field-grid > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.order-row-field-grid > div.wide {
  grid-column: 1 / -1;
}
.order-row-field-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}
.order-row-field-grid strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.compact-kv-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 8px;
}
.compact-kv-grid > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
}
.compact-kv-grid > div.wide {
  grid-column: 1 / -1;
}
.compact-kv-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}
.compact-kv-grid strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.shipment-form {
  gap: 14px;
}
.shipment-order-summary,
.shipment-products-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  padding: 14px;
}
.shipment-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.shipment-item-row:last-child {
  border-bottom: 0;
}
.shipment-item-row.is-complete {
  opacity: .62;
}
.shipment-item-control {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.shipment-item-control input[type="number"] {
  width: 78px;
  text-align: center;
}
.shipment-logistics-grid {
  align-items: end;
}
.shipment-package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
}
.order-detail-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.order-detail-fields > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.order-detail-fields > div.wide {
  grid-column: 1 / -1;
}
.order-detail-fields span {
  color: var(--muted);
  font-size: 0.76rem;
}
.order-detail-fields strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.order-contact-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
}
.order-contact-line span:first-child {
  color: var(--text);
  font-weight: 700;
}
.order-address-line {
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid rgba(103, 74, 47, 0.08);
}
.order-address-line strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding-top: 5px;
  border-top: 1px solid rgba(103, 74, 47, 0.08);
}
.order-row-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.order-row-meta b {
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
}
.order-row-status .status-line {
  gap: 4px;
}
.order-row-status .chip, .order-row-status .pill, .order-row-status .badge {
  width: fit-content;
  padding: 4px 8px;
  font-size: 0.78rem;
}
.order-inline-status,
.order-row-actions.order-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.order-inline-amount {
  display: block;
}
.order-row-actions.order-inline-actions .ghost-btn,
.order-row-actions.order-inline-actions .primary-btn {
  width: auto;
  min-height: 28px;
  padding: 4px 9px;
}
.order-row-status,
.order-row-amount {
  display: none;
}
.order-action-status {
  justify-content: stretch;
  gap: 4px;
}
.order-action-status .pill {
  width: 100%;
  justify-content: center;
  padding: 3px 7px;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-row-next {
  min-width: 0;
  grid-column: 2 / -1;
}
.order-row-next .order-next-step {
  min-width: 0;
  padding: 9px;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.72);
}
.order-row-next .order-next-step span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-row-next .order-next-step .topbar-actions {
  margin-top: 1px;
}
.order-row-actions {
  grid-area: actions;
  width: 108px;
  justify-items: stretch;
  align-content: start;
  gap: 5px;
}
.order-row-actions .ghost-btn,
.order-row-actions .primary-btn,
.order-row-actions .order-row-command {
  width: 100%;
  justify-content: center;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.82rem;
}
.order-row-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid rgba(47, 134, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #1f5fa8;
  font-weight: 650;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.order-row-command-primary {
  border-color: rgba(47, 134, 255, 0.28);
  background: rgba(47, 134, 255, 0.08);
  color: #1f5fa8;
}
.order-row-command-neutral {
  border-color: rgba(42, 71, 96, 0.16);
  background: rgba(255, 255, 255, 0.42);
  color: #385067;
}
.order-row-command-display {
  min-height: 18px;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3869a8;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.order-row-command:hover,
.order-row-command:focus-visible {
  border-color: rgba(47, 134, 255, 0.48);
  background: rgba(47, 134, 255, 0.12);
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 1px;
}
.order-row-command-display:hover,
.order-row-command-display:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #1f5fa8;
  outline: 2px solid rgba(47, 134, 255, 0.24);
  outline-offset: 2px;
}
.order-table-actions-cell .order-table-actions-stack .ghost-btn,
.order-table-actions-cell .order-table-actions-stack .primary-btn,
.order-table-actions-cell .order-table-actions-stack .order-row-command {
  width: auto;
  min-width: 0;
  min-height: 24px;
  padding: 2px 7px;
  white-space: nowrap;
}
.order-table-actions-cell .order-table-actions-stack .ghost-btn {
  background: #13a538;
  border-color: #13a538;
  color: #fff;
}
.order-table-actions-cell .order-table-actions-stack .primary-btn {
  background: #2f86ff;
  border-color: #2f86ff;
  color: #fff;
}
.order-table-actions-cell .order-table-actions-stack .order-row-command-display {
  min-height: 18px;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3869a8;
}
.order-table-actions-cell .order-table-actions-stack .order-row-command-action,
.order-table-actions-stack .order-row-command-action {
  min-height: 18px;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f5fa8;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.order-table-actions-cell .order-table-actions-stack .order-row-command-neutral.order-row-command-action,
.order-table-actions-stack .order-row-command-neutral.order-row-command-action {
  color: #53677a;
}
.order-table-actions-cell .order-table-actions-stack .order-row-command-action:hover,
.order-table-actions-cell .order-table-actions-stack .order-row-command-action:focus-visible,
.order-table-actions-stack .order-row-command-action:hover,
.order-table-actions-stack .order-row-command-action:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #1f5fa8;
  outline: 2px solid rgba(47, 134, 255, 0.24);
  outline-offset: 2px;
}
.refund-table-shell {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}
.refund-queue-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  padding: 2px 0 4px;
}
.refund-queue-shell > .status-line {
  margin: 0;
}
.refund-queue-shell > .compact-options {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px;
}
.refund-queue-shell > .topbar-actions {
  justify-content: flex-end;
  margin: 0;
}
.refund-queue-shell .ghost-btn {
  min-height: 30px;
  padding: 5px 9px;
}
.refund-top-ops-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.refund-top-ops-line .refund-advanced-filter-shell:not([open]) {
  align-self: center;
}
.refund-top-ops-line .refund-advanced-filter-shell[open] {
  grid-column: 1 / -1;
}
.refund-top-ops-line .refund-queue-shell {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 5px 8px;
  padding: 0;
}
.refund-top-ops-line .refund-queue-shell > .compact-options {
  grid-column: auto;
  padding: 4px 8px;
}
.refund-top-ops-line .refund-queue-shell > .topbar-actions {
  min-width: 0;
}
.refund-default-filterbar {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(320px, 1.2fr) auto;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.refund-default-filterbar > .filters {
  display: grid;
  grid-template-columns: minmax(132px, 0.72fr) minmax(180px, 1fr);
  gap: 6px;
  margin: 0;
}
.refund-default-filterbar input,
.refund-default-filterbar select {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(42, 71, 96, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 6px 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.refund-default-filterbar input:focus,
.refund-default-filterbar select:focus {
  border-color: rgba(47, 134, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(47, 134, 255, 0.12);
  outline: 0;
}
.refund-filter-command-row {
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}
.refund-quick-select-shell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.refund-quick-select-shell select {
  min-width: 118px;
  padding-right: 28px;
}
.refund-queue-shortcut-options {
  margin: 0;
}
.refund-queue-shortcut-options > summary {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.76rem;
}
.refund-advanced-filter-shell,
.refund-deferred-ops-shell {
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
}
.refund-advanced-filter-shell > summary,
.refund-deferred-ops-shell > summary {
  min-height: 26px;
  line-height: 1.2;
}
.refund-advanced-filter-shell:not([open]),
.refund-deferred-ops-shell:not([open]) {
  display: inline-block;
  width: auto;
}
.refund-advanced-filter-shell:not([open]) > :not(summary),
.refund-deferred-ops-shell:not([open]) > :not(summary) {
  display: none;
}
.refund-advanced-filter-shell[open],
.refund-deferred-ops-shell[open] {
  display: block;
}
.refund-table-scroll {
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: thin;
}
.refund-table {
  min-width: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.refund-table thead {
  display: block;
  background: rgba(42, 71, 96, 0.035);
  border-bottom: 1px solid rgba(103, 74, 47, 0.08);
}
.refund-table thead tr {
  display: grid;
  grid-template-columns: 22px minmax(190px, 1.2fr) minmax(132px, 0.72fr) minmax(82px, 0.42fr) minmax(160px, 0.8fr) minmax(110px, 0.48fr);
  grid-template-areas: "select service status amount context actions";
  gap: 4px 8px;
  align-items: center;
  padding: 7px 8px;
}
.refund-table th {
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}
.refund-table th:nth-child(1) { grid-area: select; }
.refund-table th:nth-child(2) { grid-area: service; }
.refund-table th:nth-child(3) { grid-area: status; }
.refund-table th:nth-child(4) { grid-area: amount; }
.refund-table th:nth-child(5) { grid-area: context; }
.refund-table th:nth-child(6) { display: none; }
.refund-table th:nth-child(7) { grid-area: actions; }
.refund-table tbody {
  display: grid;
  gap: 0;
}
.refund-table tbody tr {
  display: grid;
  grid-template-columns: 22px minmax(190px, 1.2fr) minmax(132px, 0.72fr) minmax(82px, 0.42fr) minmax(160px, 0.8fr) minmax(110px, 0.48fr);
  grid-template-areas: "select service status amount context actions";
  gap: 4px 8px;
  align-items: center;
  min-height: 45px;
  padding: 5px 8px;
  border-top: 1px solid rgba(103, 74, 47, 0.08);
}
.refund-table tbody tr:hover {
  background: rgba(47, 134, 255, 0.035);
}
.refund-table td {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  width: auto !important;
  padding: 0;
  border-top: 0;
  font-size: 0.86rem;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}
.refund-table td:nth-child(1) { grid-area: select; align-content: center; text-align: left; }
.refund-table td:nth-child(2) { grid-area: service; }
.refund-table td:nth-child(3) { grid-area: status; }
.refund-table td:nth-child(4) { grid-area: amount; }
.refund-table td:nth-child(5) { grid-area: context; }
.refund-table td:nth-child(6) { grid-area: next; display: none; }
.refund-table td:nth-child(7) { grid-area: actions; }
.refund-table-main,
.refund-table-amount,
.refund-table-context {
  min-width: 0;
}
.refund-table-main strong,
.refund-table-main span,
.refund-table-amount strong,
.refund-table-amount span,
.refund-table-context strong,
.refund-table-context span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.refund-table-main strong {
  color: #31435f;
}
.refund-table-main span,
.refund-table-amount span,
.refund-table-context span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1px;
}
.refund-main-inline-context {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.refund-table-main strong,
.refund-table-main .refund-main-service-id,
.refund-table-main .refund-main-type,
.refund-table-amount strong {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.16;
}
.refund-table-amount span {
  display: none;
}
.refund-table-context strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.22;
  max-height: 2.44em;
}
.refund-table-amount strong {
  color: var(--accent-2);
}
.refund-table-status .status-line {
  align-items: center;
  gap: 3px;
}
.refund-table-status .pill {
  padding: 2px 6px;
  font-size: 0.72rem;
  line-height: 1.15;
}
.refund-status-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.refund-status-more > summary {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.refund-status-more > summary::-webkit-details-marker {
  display: none;
}
.refund-status-more:not([open]) > :not(summary) {
  display: none;
}
.refund-status-more .compact-options-body {
  margin-top: 5px;
}
.refund-table-next {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
.refund-table-next .refund-next-step {
  min-height: 34px;
  padding: 8px;
  border-radius: 6px;
  gap: 6px;
}
.refund-table-next > .refund-next-step:not(details) {
  grid-column: auto;
}
.refund-table-next > .refund-next-step:not(details) span,
.refund-table-next > .refund-next-step:not(details) .status-line,
.refund-table-next > .refund-next-step:not(details) .topbar-actions {
  display: none;
}
.refund-table-next .refund-next-step span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.refund-table-next details:not([open]) > :not(summary),
.refund-table-actions details:not([open]) > :not(summary) {
  display: none;
}
.refund-table-next [data-refund-row-contact-card] summary .pill,
.refund-table-next [data-refund-row-contact-card] summary .chip,
.refund-table-next [data-refund-row-handoff-card] summary .pill {
  display: none;
}
.refund-table-row-details {
  margin-top: 0;
}
.refund-table-row-details > summary,
.refund-row-secondary-actions > summary {
  font-size: 0.78rem;
  color: var(--muted);
}
.refund-table-actions .stack-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.refund-table-actions .refund-table-row-details.compact-options {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.refund-table-actions .refund-inline-command {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 18px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.refund-table-actions .refund-inline-command::marker {
  content: "";
}
.refund-table-actions .refund-inline-command::-webkit-details-marker {
  display: none;
}
.refund-table-actions .refund-inline-command:hover,
.refund-table-actions .refund-inline-command:focus {
  color: #4f321f;
  outline: none;
}
.refund-table-actions .refund-inline-command:focus-visible {
  box-shadow: 0 0 0 2px rgba(103, 74, 47, 0.18);
}
.refund-view-command {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid rgba(103, 74, 47, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.refund-view-command:hover,
.refund-view-command:focus {
  border-color: rgba(103, 74, 47, 0.28);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}
.refund-view-command:focus-visible {
  box-shadow: 0 0 0 2px rgba(103, 74, 47, 0.18);
}
.refund-table-actions .ghost-btn,
.refund-table-actions .primary-btn {
  width: auto;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.74rem;
  white-space: nowrap;
}
.refund-row-secondary-actions {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}
.refund-table-actions .refund-row-more-summary {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  overflow: hidden;
}
.order-fulfillment-desk {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.order-fulfillment-tile {
  min-width: 0;
  text-align: left;
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(103, 74, 47, 0.1);
  color: var(--text);
}
.order-fulfillment-tile.warn { border-color: rgba(184, 107, 57, 0.25); background: rgba(184, 107, 57, 0.07); }
.order-fulfillment-tile.danger { border-color: rgba(164, 75, 63, 0.3); background: rgba(164, 75, 63, 0.07); }
.order-fulfillment-tile.muted { color: var(--muted); }
.order-fulfillment-tile strong { font-size: 1.35rem; }
.order-fulfillment-tile span { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.fulfillment-secondary-panels {
  gap: 8px;
}
.fulfillment-queue-summary-row {
  align-items: center;
  gap: 8px;
}
.fulfillment-queue-summary-row > .topbar-actions {
  display: inline-flex;
  gap: 6px;
}
.fulfillment-queue-summary-row .ghost-btn,
.fulfillment-queue-summary-row details.inline-details > summary {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.82rem;
}
.fulfillment-inline-command {
  font-size: 0.8rem;
}
.fulfillment-inline-command-warn {
  color: #8a4b1f;
}
.fulfillment-inline-command-primary {
  color: #0f766e;
}
.fulfillment-detail-group {
  border-radius: 8px;
  padding: 7px 9px;
}
.fulfillment-visible-queue {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.fulfillment-visible-queue > .status-line {
  gap: 8px;
  align-items: center;
}
.fulfillment-visible-queue-summary {
  min-height: 30px;
  padding: 2px 0;
}
.fulfillment-visible-queue-summary .muted {
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fulfillment-visible-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}
.fulfillment-visible-queue-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.fulfillment-visible-queue-list {
  gap: 6px;
}
.fulfillment-visible-queue-row {
  padding: 8px 10px;
  border-radius: 8px;
}
.fulfillment-visible-queue-row .status-line {
  gap: 6px;
  min-width: 0;
}
.fulfillment-visible-queue-row strong {
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fulfillment-visible-queue-row .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fulfillment-visible-queue-row .topbar-actions {
  margin-top: 4px;
  gap: 8px;
}
.fulfillment-secondary-panels .compact-options,
.fulfillment-queue-detail-options {
  border-radius: 8px;
  padding: 7px 9px;
}
.fulfillment-secondary-panels summary,
.fulfillment-queue-detail-options summary {
  font-size: 0.86rem;
}
.fulfillment-compact-rows {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.fulfillment-compact-rows .muted {
  line-height: 1.38;
}
.order-dispatch-checklist {
  min-width: 210px; display: grid; gap: 5px; margin-top: 8px; padding: 10px; border-radius: 12px;
  background: rgba(86, 114, 74, 0.06); border: 1px solid rgba(86, 114, 74, 0.14); line-height: 1.42;
}
.order-dispatch-checklist span { color: var(--muted); overflow-wrap: anywhere; }
.product-operation-checklist {
  min-width: 0; display: grid; gap: 5px; margin-top: 0; padding: 7px 9px; border-radius: 10px;
  background: rgba(86, 114, 74, 0.06); border: 1px solid rgba(86, 114, 74, 0.14); line-height: 1.42;
}
.product-operation-checklist summary { cursor: pointer; font-weight: 700; color: var(--text); font-size: 0.82rem; }
.product-operation-checklist span { color: var(--muted); overflow-wrap: anywhere; font-size: 0.8rem; }
.uniform-asset-picker {
  background: rgba(86, 114, 74, 0.06);
  border-color: rgba(86, 114, 74, 0.16);
}
.uniform-asset-actions {
  margin-top: 2px;
}
.asset-path-preview {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(103, 74, 47, 0.1);
  color: var(--accent-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.refund-next-step {
  display: grid; gap: 6px; padding: 9px 10px; border-radius: 12px;
  background: rgba(255,255,255,0.56); border: 1px solid rgba(103, 74, 47, 0.1); line-height: 1.34;
}
.refund-next-step.warn { border-color: rgba(184, 107, 57, 0.25); background: rgba(184, 107, 57, 0.07); }
.refund-next-step.danger { border-color: rgba(164, 75, 63, 0.3); background: rgba(164, 75, 63, 0.07); }
.refund-next-step span { display: block; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
[data-refund-table] .refund-next-step {
  padding: 6px 8px;
  border-radius: 8px;
  gap: 3px;
}
[data-refund-table] .refund-next-step > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-refund-table] .refund-next-step strong,
[data-refund-table] .refund-next-step span,
[data-refund-table] [data-refund-operation-policy] .muted,
#drawer [data-refund-handoff-line],
#drawer [data-refund-impact-line],
#drawer .drawer-body > .list-stack > .list-item .muted,
#drawer [data-refund-detail-order-amount-split] .pill,
#drawer [data-refund-sibling-history] .muted,
#modal [data-refund-resolve-guard-line],
#modal [data-refund-resolve-linkage-line],
#modal [data-refund-resolve-flow-line],
#modal [data-refund-follow-up-guard-line],
#modal [data-refund-batch-workbench-handoff-line],
#modal [data-refund-single-preview-handoff-line],
#modal [data-refund-batch-preview-handoff-line] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-refund-table] .refund-next-step:not(details) .topbar-actions,
[data-refund-table] .refund-next-step:not(details) .status-line {
  display: none;
}
#drawer [data-refund-handoff-card],
#drawer [data-refund-operation-policy],
#drawer [data-refund-sibling-history],
#drawer [data-refund-detail-open-order],
#drawer [data-refund-detail-open-product],
#modal [data-refund-resolve-guard],
#modal [data-refund-resolve-linkage-context],
#modal [data-refund-resolve-flow],
#modal [data-refund-follow-up-guard],
#modal [data-refund-single-preview-handoff-card],
#modal [data-refund-batch-preview-handoff-card] {
  border-radius: 9px;
}
#drawer [data-refund-handoff-card],
#drawer [data-refund-operation-policy],
#modal [data-refund-resolve-guard],
#modal [data-refund-resolve-linkage-context],
#modal [data-refund-resolve-flow],
#modal [data-refund-follow-up-guard] {
  padding: 8px 10px;
}
#drawer [data-refund-handoff-card] {
  gap: 2px;
  line-height: 1.18;
}
#drawer [data-refund-handoff-card] .status-line {
  min-height: 22px;
}
#drawer [data-refund-handoff-card] .muted {
  font-size: 0.78rem;
  line-height: 1.18;
}
#drawer .drawer-body > .list-stack,
#modal [data-refund-single-preview],
#modal [data-refund-batch-workbench],
#modal [data-refund-batch-preview-handoff-card] {
  gap: 6px;
}
[data-product-save-preview] > .list-item {
  padding: 8px 10px;
}
[data-product-save-preview] .list-stack {
  gap: 3px;
}
[data-product-save-preview] [data-product-save-preview-line] {
  min-height: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
[data-product-save-preview] [data-product-save-preview-line] > span:first-child,
[data-product-save-preview] [data-product-save-preview-line="risk"],
[data-product-save-preview] [data-product-save-preview-line="blocker"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-product-save-preview] [data-product-save-preview-line] > .muted {
  display: none;
}
[data-product-save-preview] .topbar-actions {
  gap: 5px;
  margin-top: 4px;
}
[data-product-save-preview] .ghost-btn,
[data-product-save-preview] .primary-btn {
  min-height: 28px;
  padding: 4px 9px;
}
[data-product-save-preview] [data-product-save-preview-handoff-copy-result] {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.danger-btn { border-color: rgba(164, 75, 63, 0.28); color: var(--danger); background: rgba(164, 75, 63, 0.08); }
.badge, .pill, .chip { font-size: 0.74rem; padding: 4px 8px; background: #f4e4d5; line-height: 1.18; }
.tone-success { color: var(--success); } .tone-warn { color: var(--warn); } .tone-danger { color: var(--danger); } .tone-muted { color: var(--muted); } .tone-info { color: var(--accent-2); }
.empty, .error-state, .loading-state {
  padding: 26px; border-radius: 16px; background: rgba(255, 255, 255, 0.5); border: 1px dashed rgba(103, 74, 47, 0.16);
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
.form-stack, .field-grid { display: grid; gap: 12px; }
.field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-stack label, .field label { display: grid; gap: 6px; }
.form-stack span, .field span { font-size: 0.82rem; color: var(--muted); }
.product-status-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.product-status-switch .ghost-btn.active {
  border-color: rgba(35, 120, 71, 0.36);
  background: rgba(35, 120, 71, 0.12);
  color: #237847;
}
.product-sku-batch-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0;
}
.product-sku-batch-bar label {
  display: grid;
  gap: 5px;
}
.product-sku-batch-bar span {
  font-size: 0.78rem;
  color: var(--muted);
}
.product-sku-batch-bar .primary-btn {
  min-height: 38px;
  white-space: nowrap;
}
.product-editor-stock-scope-card {
  margin: 10px 0;
  border-color: rgba(198, 113, 52, 0.28);
  background: rgba(255, 248, 240, 0.92);
}
.product-active-store-stock-grid {
  margin-top: 8px;
}
.product-active-store-stock-grid label {
  display: grid;
  gap: 5px;
}
.product-sku-table-wrap {
  border-radius: 10px;
  background: #fff;
}
.product-sku-table {
  min-width: 1180px;
  width: 100%;
  height: auto !important;
  border-collapse: collapse;
  table-layout: fixed;
}
.product-sku-table tbody,
.product-sku-table tr,
.product-sku-table td {
  height: auto !important;
}
.product-sku-table th,
.product-sku-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(103, 74, 47, 0.12);
  vertical-align: top;
}
.product-sku-table th {
  background: rgba(244, 228, 213, 0.34);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  white-space: nowrap;
}
.product-sku-table th:nth-child(1),
.product-sku-table td:nth-child(1) { width: 44px; }
.product-sku-table th:nth-child(2),
.product-sku-table td:nth-child(2) { width: 128px; }
.product-sku-table th:nth-child(3),
.product-sku-table td:nth-child(3),
.product-sku-table th:nth-child(4),
.product-sku-table td:nth-child(4),
.product-sku-table th:nth-child(5),
.product-sku-table td:nth-child(5) { width: 110px; }
.product-sku-table th:nth-child(6),
.product-sku-table td:nth-child(6) { width: 150px; }
.product-sku-table th:nth-child(7),
.product-sku-table td:nth-child(7) { width: 96px; }
.product-sku-table th:nth-child(8),
.product-sku-table td:nth-child(8) { width: 82px; }
.product-sku-table th:nth-child(9),
.product-sku-table td:nth-child(9) { width: 270px; }
.product-sku-table th:nth-child(10),
.product-sku-table td:nth-child(10) { width: 74px; }
.product-sku-table input,
.product-sku-table select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
}
.product-sku-index-cell {
  color: var(--muted);
  text-align: center;
}
.product-sku-row-actions {
  white-space: nowrap;
}
.product-sku-advanced-options > .compact-options-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  align-items: start;
}
.product-sku-store-stock-options {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.product-sku-store-stock-options:not([open]) > .compact-options-body {
  display: none !important;
}
.product-sku-store-stock-options > .compact-options-body {
  margin-top: 8px;
}
.product-sku-table .product-sku-store-cell .list-item {
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.55);
}
.product-sku-table .product-sku-store-cell .status-line {
  gap: 5px;
  margin-bottom: 6px;
}
.product-sku-table .product-sku-store-cell .field-grid {
  grid-template-columns: 1fr;
  gap: 7px;
}
.product-sku-table .product-sku-store-cell .muted {
  font-size: 0.76rem;
}
.product-sku-store-stock-usage {
  display: block;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.product-sku-store-stock-risk {
  display: block;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.help { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.compact-options { border: 1px solid rgba(103, 74, 47, 0.12); border-radius: 12px; background: rgba(255,255,255,0.42); padding: 8px 10px; }
.compact-options summary { cursor: pointer; font-weight: 700; color: var(--text); }
.compact-options-body { margin-top: 12px; }
.compact-options:not([open]) .compact-options-body { display: none; }
.access-table-scope details.compact-options,
.access-role-table-scope details.compact-options,
[data-access-risk-board] details.compact-options {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
.access-table-scope details.compact-options[open],
.access-role-table-scope details.compact-options[open],
[data-access-risk-board] details.compact-options[open] {
  display: grid;
  width: 100%;
}
.access-table-scope details.compact-options > summary.access-row-summary-command,
.access-role-table-scope details.compact-options > summary.access-row-summary-command,
[data-access-risk-board] details.compact-options > summary.access-row-summary-command {
  min-height: 18px;
  padding: 0 2px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #1f5fa8;
  font-size: 0.78rem;
  line-height: 1.15;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  box-shadow: none;
}
.access-secondary-panel {
  margin-top: 10px;
}
.access-secondary-panel > summary {
  min-height: 24px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.access-secondary-panel[open] {
  padding-top: 6px;
}
details.entry-launch-actions.compact-options {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
details.entry-launch-actions.compact-options > summary {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #1f5fa8;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
details.customer-access-identity-details.compact-options {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
details.customer-access-identity-details.compact-options > summary {
  min-height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #1f5fa8;
}
details.action-log-filter-options.compact-options {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
details.action-log-filter-options.compact-options > summary {
  min-height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #1f5fa8;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  list-style: none;
}
details.action-log-filter-options.compact-options > summary::marker,
details.action-log-filter-options.compact-options > summary::-webkit-details-marker {
  display: none;
  content: "";
}
details.refund-status-more.compact-options {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
details.refund-status-more.compact-options > summary {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #1f5fa8;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
details.refund-status-more.compact-options > summary::marker,
details.refund-status-more.compact-options > summary::-webkit-details-marker {
  display: none;
  content: "";
}
.subscription-blocked-row .subscription-blocked-row-more.compact-options {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.subscription-blocked-row .subscription-blocked-row-more.compact-options > summary {
  min-height: 20px;
  padding: 1px 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.subscription-blocked-row .subscription-blocked-row-more.compact-options[open] {
  min-width: min(360px, 52vw);
  padding: 7px 9px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
}
.config-maintenance-details { margin-top: 10px; }
[data-config-density-details] { margin-top: 8px; }
[data-config-density-summary] .status-line { gap: 8px; }
[data-config-density-summary] .config-compact-summary { row-gap: 4px; }
[data-config-density-summary] .config-compact-summary > span { white-space: nowrap; }
[data-config-density-summary] .muted { font-size: 0.82rem; line-height: 1.35; }
.home-operation-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.home-inline-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 6px;
}
.home-inline-detail.compact-options {
  width: auto;
  max-width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.home-inline-detail.compact-options:not([open]) {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0;
}
.home-inline-detail.compact-options > summary {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 1px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #53677a;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.home-inline-detail.compact-options > summary::marker,
.home-inline-detail.compact-options > summary::-webkit-details-marker {
  display: none;
}
.home-inline-detail.compact-options > summary:focus-visible {
  outline: 2px solid rgba(47, 134, 255, 0.35);
  outline-offset: 2px;
}
.home-inline-detail.compact-options[open] {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
}
.home-config-inline-detail.compact-options {
  margin-top: 0;
}
.inline-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.faq-inline-command-primary {
  color: #0f766e;
}
.home-operation-inline-command-primary {
  color: #0f766e;
}
.overlay, .drawer-mask, .modal-mask { position: fixed; inset: 0; background: rgba(34, 23, 16, 0.42); backdrop-filter: blur(4px); z-index: 50; }
.login-card, .drawer, .modal { position: fixed; z-index: 60; background: var(--panel-strong); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card {
  inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(920px, calc(100vw - 28px));
  border-radius: 28px; display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden;
}
.login-copy { padding: 34px; background: linear-gradient(135deg, rgba(184, 107, 57, 0.1), rgba(86, 114, 74, 0.08)); }
.login-copy h2 { font-size: 2rem; margin-bottom: 10px; }
.login-copy p { max-width: 38rem; color: var(--muted); line-height: 1.65; }
.login-card .form-stack { padding: 34px; align-content: center; background: rgba(255,255,255,0.72); }
.drawer {
  top: 0; right: 0; width: min(720px, 100vw); height: 100vh; padding: 20px; overflow: auto;
  transform: translateX(100%); transition: transform 0.22s ease;
}
.drawer.open { transform: translateX(0); }
.drawer.product-editor-centered {
  top: 50%;
  left: 50%;
  right: auto;
  width: min(1180px, calc(100vw - 48px));
  height: min(92vh, 940px);
  border-radius: 24px;
  box-sizing: border-box;
  transform: translate(-50%, calc(-50% + 24px)) scale(0.98);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.drawer.product-editor-centered.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
@media (max-width: 720px) {
  .drawer.product-editor-centered {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    border-radius: 18px;
    padding: 16px;
  }
}
.drawer-body, .modal-body { margin-top: 14px; display: grid; gap: 14px; }
.modal {
  inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(960px, calc(100vw - 40px));
  max-width: calc(100vw - 40px); max-height: min(84vh, 820px); overflow-y: auto; overflow-x: hidden;
  box-sizing: border-box; border-radius: 20px; padding: 18px;
}
.modal-body, .modal .list-stack, .modal .list-item, .modal .status-line { min-width: 0; max-width: 100%; }
.modal .ghost-btn, .modal .primary-btn, .modal .pill, .modal .chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.modal .muted, .modal .order-info-value { overflow-wrap: anywhere; word-break: break-word; }
.json { min-height: 160px; font-family: Consolas, "SFMono-Regular", monospace; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.88rem; }
.status-line strong { color: var(--text); }
.customer-access-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.customer-access-command-neutral {
  color: #53677a;
}
.customer-access-command:hover,
.customer-access-command:focus-visible {
  background: rgba(47, 134, 255, 0.08);
  color: #174f91;
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 1px;
}
.catalog-operation-brief {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 2px 0 6px;
  border: 0;
  background: transparent;
}
.catalog-operation-head,
.catalog-operation-summary {
  gap: 6px 12px;
  min-width: 0;
}
.catalog-operation-summary > span {
  white-space: nowrap;
}
.catalog-operation-actions {
  gap: 4px 12px;
}
.catalog-operation-more.compact-options {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.catalog-operation-more.compact-options > summary.catalog-command {
  display: inline-flex;
  list-style: none;
}
.catalog-operation-more.compact-options > summary.catalog-command::marker,
.catalog-operation-more.compact-options > summary.catalog-command::-webkit-details-marker {
  display: none;
}
.catalog-operation-more.compact-options[open] {
  padding: 7px 9px;
  border: 1px solid rgba(103, 74, 47, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.46);
}
.catalog-operation-more > .compact-options-body {
  margin-top: 7px;
  gap: 5px;
}
.catalog-table .catalog-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
}
.catalog-table .catalog-row-review {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.catalog-table .catalog-row-review .status-line {
  gap: 4px 6px;
  flex-wrap: nowrap;
  min-width: 0;
  line-height: 1.15;
}
.catalog-table .catalog-row-review .status-line strong {
  white-space: nowrap;
  font-size: 0.8rem;
}
.catalog-table .catalog-row-review .pill {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
}
.catalog-table .catalog-row-review .pill.warn {
  color: var(--warn);
}
.catalog-table .catalog-row-review .pill.danger {
  color: var(--danger);
}
.catalog-table .catalog-row-review-details {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.catalog-table .catalog-row-review-details > summary {
  min-height: 20px;
  padding: 1px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #53677a;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.catalog-table .catalog-row-review-details > summary::-webkit-details-marker {
  display: none;
}
.catalog-table .catalog-row-review-details > summary:hover,
.catalog-table .catalog-row-review-details > summary:focus-visible {
  color: #174f91;
  background: rgba(47, 134, 255, 0.08);
  outline: 2px solid rgba(47, 134, 255, 0.18);
  outline-offset: 2px;
}
.catalog-table .catalog-row-review-details:not([open]) > :not(summary) {
  display: none;
}
.catalog-row-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 1px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f5fa8;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.catalog-row-command-neutral {
  color: #53677a;
}
.catalog-row-command:hover,
.catalog-row-command:focus-visible {
  background: rgba(47, 134, 255, 0.08);
  color: #174f91;
  outline: 2px solid rgba(47, 134, 255, 0.2);
  outline-offset: 2px;
}
.list-stack { display: grid; gap: 10px; }
.order-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  align-items: start;
}
.order-detail-grid > .list-item {
  min-width: 0;
}
.order-detail-card-wide {
  grid-column: 1 / -1;
}
.list-item {
  display: grid; gap: 7px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,0.55);
  border: 1px solid rgba(103, 74, 47, 0.1);
}
.list-stack > .list-item,
.modal .list-stack > .list-item,
.drawer .list-stack > .list-item {
  gap: 5px;
  padding: 9px 10px;
  border-radius: 10px;
}
.status-line > .pill,
.status-line > .chip,
.status-line > .badge {
  max-width: min(220px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-order-product-context-line],
[data-order-handoff-line],
[data-order-ship-preview-handoff-line],
[data-refund-row-contact-line],
[data-refund-decision-line],
[data-refund-impact-line],
[data-refund-row-handoff-line],
[data-refund-batch-preview-handoff-line],
[data-product-order-context-line],
[data-product-save-preview-line],
[data-product-stock-line],
[data-product-bulk-action-line] {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.subscription-blocked-card .subscription-blocked-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 6px;
  align-items: center;
  padding: 3px 6px;
  border-radius: 8px;
}
details.list-item > summary { cursor: pointer; font-weight: 700; color: var(--text); }
details.list-item:not([open]) > :not(summary) { display: none; }
details.inline-details:not([open]) > :not(summary) { display: none; }
.ops-queue { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .ops-row {
    min-width: 0; display: grid; grid-template-columns: minmax(34px, auto) minmax(0, 1fr) minmax(54px, max-content); gap: 8px; align-items: center;
    padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.58); border: 1px solid rgba(103, 74, 47, 0.1);
  }
  .ops-row .ghost-btn, .ops-row .primary-btn {
    justify-content: center; min-height: 32px; padding: 6px 10px; max-width: 100%;
    white-space: normal; overflow-wrap: anywhere;
  }
  .ops-row-command {
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    cursor: pointer;
    color: #2f6f7a;
    font-weight: 800;
    font-size: 0.86rem;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .ops-row-command.primary {
    color: var(--accent-2);
  }
  .ops-row-command.warn {
    color: var(--warn);
  }
  .ops-row-command.danger {
    color: var(--danger);
  }
  .ops-row-command:hover,
  .ops-row-command:focus-visible {
    color: #1f4f58;
    outline: 2px solid rgba(47, 111, 122, 0.28);
    outline-offset: 2px;
    border-radius: 6px;
  }
.ops-row.warn { border-color: rgba(184, 107, 57, 0.28); background: rgba(184, 107, 57, 0.08); }
.ops-row.danger { border-color: rgba(164, 75, 63, 0.32); background: rgba(164, 75, 63, 0.08); }
.ops-count { min-width: 34px; min-height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: rgba(86, 114, 74, 0.12); color: var(--accent-2); font-weight: 800; font-size: 1rem; }
.ops-row.warn .ops-count { background: rgba(184, 107, 57, 0.13); color: var(--warn); }
.ops-row.danger .ops-count { background: rgba(164, 75, 63, 0.13); color: var(--danger); }
.ops-copy { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; line-height: 1.35; }
.ops-copy strong, .ops-copy span { overflow-wrap: anywhere; }
.ops-copy span { color: var(--muted); font-size: 0.84rem; }
.ops-status { padding: 2px 7px; border-radius: 999px; background: rgba(86, 114, 74, 0.08); }
.ops-detail { grid-column: 2 / -1; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.mini-stat {
  min-width: 118px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,0.56);
  border: 1px solid rgba(103, 74, 47, 0.08); display: inline-flex; align-items: baseline; gap: 8px;
}
.mini-stat .label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.mini-stat .value { margin-top: 0; font-size: 1.08rem; font-weight: 700; font-family: "Trebuchet MS", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif; white-space: nowrap; }
.refund-summary-line {
  gap: 6px;
  margin: 0 0 8px;
}
.refund-summary-line .mini-stat {
  min-width: 0;
  min-height: 0;
  padding: 4px 8px;
  border-radius: 999px;
  gap: 5px;
  background: #f3e4d3;
}
.refund-summary-line .mini-stat .label,
.refund-summary-line .mini-stat .value {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.2;
}
[data-product-list-density] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 2px 5px;
}
.product-list-density-bar .status-line {
  gap: 6px;
}
.product-list-density-bar .ghost-btn {
  min-height: 28px;
  padding: 4px 8px;
}
.product-list-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.product-list-page-actions .inline-date-filter {
  min-width: 112px;
}
.product-list-page-actions select {
  min-height: 28px;
  padding: 4px 7px;
}
@media (max-width: 1500px) {
  .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .login-card { grid-template-columns: 1fr; }
  .filters.order-filter-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
  .order-fulfillment-desk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-row-card {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 24px minmax(0, 1fr) 126px;
    grid-template-areas: "select content actions";
  }
  .order-row-body {
    grid-template-columns: minmax(330px, 0.95fr) minmax(360px, 1.05fr);
  }
  .order-row-payment { grid-column: 2 / 3; }
  .order-table-detail {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    padding-left: 12px;
  }
}
@media (max-width: 1320px) and (min-width: 921px) {
  .order-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .order-table-scroll {
    overflow: visible;
    max-width: 100%;
  }
  .order-table-head {
    display: none;
  }
  .order-table-body {
    min-width: 0;
    display: grid;
    gap: 8px;
  }
  .order-table-record {
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
  }
  .order-table-row {
    min-width: 0;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 24px minmax(178px, 1.18fr) minmax(66px, 0.34fr) minmax(86px, 0.46fr) minmax(86px, 0.44fr) minmax(136px, 0.58fr);
    grid-template-areas:
      "select order delivery amount status actions"
      "select store count user time actions";
    gap: 4px 8px;
    align-items: center;
    padding: 7px 9px;
  }
  .order-table-cell {
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.3;
  }
  .order-table-select {
    grid-area: select;
    padding: 4px 0 0;
    place-items: start center;
    align-self: start;
  }
  .order-table-order-no { grid-area: order; }
  .order-table-delivery { grid-area: delivery; }
  .order-table-store { grid-area: store; }
  .order-table-count { grid-area: count; text-align: left; }
  .order-table-money { grid-area: amount; }
  .order-table-user { grid-area: user; }
  .order-table-time { grid-area: time; }
  .order-table-status-cell { grid-area: status; }
  .order-table-order-no strong,
  .order-table-delivery,
  .order-table-store,
  .order-table-count,
  .order-table-money,
  .order-table-user,
  .order-table-time,
  .order-table-status {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  .order-table-actions-cell {
    grid-area: actions;
    align-self: stretch;
    padding: 0;
  }
  .order-table-actions-stack.order-row-actions {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 5px;
    min-width: 0;
  }
  .order-table-actions-stack .ghost-btn,
  .order-table-actions-stack .primary-btn,
  .order-table-actions-stack .order-row-command,
  .order-table-actions-stack .order-inline-detail-toggle > summary {
    flex: 1 1 58px;
    min-width: 0;
    max-width: 100%;
    min-height: 24px;
    padding: 1px 5px;
    font-size: 0.78rem;
    line-height: 1.15;
  }
  .order-table-actions-stack .order-next-secondary-actions {
    flex-basis: 100%;
  }
  .order-table-actions-stack .order-row-command-display,
  .order-table-actions-stack .order-row-command-action,
  .order-table-actions-stack .order-inline-detail-toggle > summary.order-secondary-text-command,
  .order-table-actions-stack .order-next-secondary-actions summary.order-secondary-text-command {
    flex: 0 0 auto;
    min-height: 18px;
    padding: 1px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
  .order-table-detail {
    position: static;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "product product"
      "meta receiver";
    gap: 6px 12px;
    padding: 8px 10px 9px;
  }
  .order-table-detail .order-row-field-grid,
  .order-table-detail .order-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 7px;
  }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding: 18px 10px; }
  .brand { gap: 8px; margin-bottom: 12px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 0.95rem; }
  .brand-title { font-size: 1.08rem; }
  .brand-subtitle,
  .nav small {
    display: none;
  }
  .nav {
    gap: 6px;
    margin: 12px 0;
  }
  .nav a {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .main {
    padding: 22px 18px 36px;
  }
  .topbar {
    margin-bottom: 10px;
  }
  .topbar-copy {
    display: none;
  }
  [data-subscription-management-card] > .toolbar {
    align-items: flex-start;
    gap: 8px;
  }
  [data-subscription-management-card] > .toolbar > .topbar-actions > [data-new-subscription-plan] {
    display: none;
  }
  .subscription-blocked-card .list-stack,
  .subscription-blocked-card [data-subscription-blocked-hidden] {
    display: none;
  }
  .subscription-table-scope .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .subscription-table-scope table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .subscription-table-scope thead {
    display: none;
  }
  .subscription-table-scope tbody {
    display: grid;
    gap: 6px;
  }
  .subscription-table-scope tbody tr {
    display: grid;
    grid-template-columns: 20px minmax(0, 1.2fr) minmax(132px, 0.82fr) minmax(136px, max-content) minmax(96px, max-content);
    grid-template-areas: "select plan state ops action";
    align-items: center;
    gap: 4px 8px;
    padding: 7px 8px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 9px;
    background: rgba(255,255,255,0.62);
  }
  .subscription-table-scope td {
    min-width: 0;
    width: auto !important;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
  }
  .subscription-table-scope td:nth-child(1) { grid-area: select; }
  .subscription-table-scope td:nth-child(2) { grid-area: plan; }
  .subscription-table-scope td:nth-child(3) { grid-area: state; }
  .subscription-table-scope td:nth-child(4) { display: none; }
  .subscription-table-scope td:nth-child(5) { grid-area: ops; }
  .subscription-table-scope td:nth-child(6) {
    grid-area: action;
    justify-items: end;
  }
  .subscription-table-scope td:nth-child(2) > strong,
  .subscription-table-scope td:nth-child(3) > div:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .subscription-table-scope .status-line {
    gap: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .subscription-table-scope .badge,
  .subscription-table-scope .pill {
    min-width: max-content;
    max-width: 96px;
    padding: 2px 6px;
    font-size: 0.72rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .subscription-table-scope [data-subscription-row-primary-actions] {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .subscription-table-scope [data-subscription-row-primary-actions] .ghost-btn,
  .subscription-table-scope [data-subscription-row-primary-actions] .primary-btn {
    min-height: 27px;
    padding: 4px 7px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .subscription-table-scope [data-subscription-row-secondary-actions] {
    display: none;
  }
  .subscription-table-scope .subscription-row-more {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .subscription-table-scope .subscription-row-more > summary {
    width: fit-content;
    min-height: 24px;
    padding: 3px 6px;
    border: 1px solid rgba(103, 74, 47, 0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.58);
    font-size: 0.76rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .kingdee-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kingdee-compact-panel > summary { grid-template-columns: 1fr; gap: 6px; }
  .marketing-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .marketing-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .marketing-table-scope {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .marketing-table-scope table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .marketing-table-scope thead {
    display: none;
  }
  .marketing-table-scope tbody {
    display: grid;
    gap: 6px;
  }
  .marketing-table-scope tr {
    display: grid;
    grid-template-columns: minmax(146px, 1.25fr) minmax(120px, 1fr) minmax(120px, 0.95fr) minmax(82px, 0.72fr) minmax(52px, 0.48fr);
    grid-template-areas: "name meta date count action";
    align-items: center;
    gap: 4px 9px;
    padding: 7px 9px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.58);
  }
  .marketing-table-scope td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 0;
    border-bottom: 0;
    overflow: hidden;
    overflow-wrap: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .marketing-table-scope td > strong,
  .marketing-table-scope td > .muted,
  .marketing-table-scope td > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .marketing-table-scope td:nth-child(1) { grid-area: name; width: auto; }
  .marketing-table-scope td:nth-child(2) { grid-area: meta; width: auto; }
  .marketing-table-scope td:nth-child(3) { grid-area: date; width: auto; }
  .marketing-table-scope td:nth-child(4) { grid-area: count; width: auto; }
  .marketing-table-scope td:nth-child(5) { grid-area: action; width: auto; justify-items: end; }
  .marketing-code-table-scope tr {
    grid-template-columns: minmax(150px, 1.25fr) minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(56px, 0.45fr);
    grid-template-areas: "name meta count action";
  }
  .marketing-code-table-scope td:nth-child(1) { grid-area: name; width: auto; }
  .marketing-code-table-scope td:nth-child(2) { grid-area: meta; width: auto; }
  .marketing-code-table-scope td:nth-child(3) { grid-area: count; width: auto; }
  .marketing-code-table-scope td:nth-child(4) { grid-area: action; width: auto; justify-items: end; }
  .access-table-scope .table-wrap {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .access-table-scope table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .access-table-scope thead {
    display: none;
  }
  .access-table-scope tbody {
    display: grid;
    gap: 8px;
  }
  .access-table-scope tr {
    display: grid;
    grid-template-columns: minmax(94px, 0.72fr) minmax(130px, 1fr) minmax(96px, 0.78fr) minmax(170px, 1.35fr) minmax(145px, 1fr);
    grid-template-areas: "account person status summary actions";
    align-items: center;
    gap: 7px 9px;
    padding: 8px 9px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.58);
  }
  .access-table-scope tbody tr:hover {
    background: rgba(255,255,255,0.72);
  }
  .access-table-scope td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .access-table-scope td::before {
    content: "";
    font-size: 0.72rem;
    line-height: 1.2;
    color: var(--muted);
    font-weight: 700;
  }
  .access-table-scope td:nth-child(1) { grid-area: account; width: auto; }
  .access-table-scope td:nth-child(2) { grid-area: person; width: auto; }
  .access-table-scope td:nth-child(3) { grid-area: status; width: auto; }
  .access-table-scope td:nth-child(4) {
    grid-area: summary;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: rgba(255, 250, 242, 0.68);
  }
  .access-table-scope td:nth-child(5) {
    grid-area: actions;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .access-table-scope td:nth-child(1)::before { content: "账号"; }
  .access-table-scope td:nth-child(2)::before { content: "姓名 / 角色"; }
  .access-table-scope td:nth-child(3)::before { content: "状态 / 最近登录"; }
  .access-table-scope td:nth-child(4)::before { content: "权限摘要"; }
  .access-table-scope td:nth-child(5)::before { content: "操作 / 详情"; }
  .access-table-scope td:first-child strong {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .access-table-scope td:nth-child(1),
  .access-table-scope td:nth-child(2),
  .access-table-scope td:nth-child(3) {
    font-size: 0.88rem;
  }
  .access-table-scope td:nth-child(2) .muted,
  .access-table-scope td:nth-child(3) .muted,
  .access-table-scope td:nth-child(3) span:not(.badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .access-table-scope td:nth-child(1)::before,
  .access-table-scope td:nth-child(2)::before,
  .access-table-scope td:nth-child(3)::before,
  .access-table-scope td:nth-child(4)::before,
  .access-table-scope td:nth-child(5)::before {
    display: none;
  }
  .access-table-scope td:nth-child(4) {
    background: rgba(255, 250, 242, 0.58);
    border-radius: 8px;
    padding: 6px 7px;
  }
  .access-table-scope .access-permission-summary strong {
    font-size: 0.9rem;
  }
  .access-table-scope .access-permission-summary .muted {
    font-size: 0.82rem;
  }
  .access-table-scope .access-row-actions {
    min-width: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .access-table-scope .access-row-details {
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
    padding: 4px 7px;
    border-radius: 8px;
    overflow: hidden;
  }
  .access-table-scope .access-row-details summary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
    font-size: 0.78rem;
  }
  .customer-table-scope .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .customer-table-scope table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .customer-table-scope thead {
    display: none;
  }
  .customer-table-scope tbody {
    display: grid;
    gap: 7px;
  }
  .customer-table-scope tbody tr {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(104px, 0.72fr) minmax(116px, 0.74fr) minmax(144px, 0.9fr);
    grid-template-areas: "id phone entry access";
    gap: 6px 9px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 7px 9px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
  }
  .customer-table-scope tbody tr:hover {
    background: rgba(255,255,255,0.74);
  }
  .customer-table-scope td {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 3px;
    width: auto !important;
    max-width: 100%;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .customer-table-scope td::before {
    content: "";
    display: none;
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--muted);
    font-weight: 700;
    display: none;
  }
  .customer-table-scope td:nth-child(1) { grid-area: id; }
  .customer-table-scope td:nth-child(2) { grid-area: phone; }
  .customer-table-scope td:nth-child(3) { grid-area: identity; }
  .customer-table-scope td:nth-child(4) { grid-area: entry; }
  .customer-table-scope td:nth-child(5) { grid-area: login; }
  .customer-table-scope td:nth-child(6) { grid-area: access; }
  .customer-table-scope td:nth-child(1)::before { content: "用户 / 联系"; }
  .customer-table-scope td:nth-child(2)::before { content: "用户ID"; }
  .customer-table-scope td:nth-child(3)::before { content: "身份标识"; }
  .customer-table-scope td:nth-child(4)::before { content: "当前入口"; }
  .customer-table-scope td:nth-child(5)::before { content: "最近登录"; }
  .customer-table-scope td:nth-child(6)::before { content: "移动端管理"; }
  .customer-table-scope td:nth-child(3) {
    display: none;
  }
  .customer-table-scope td:nth-child(5) {
    display: none;
  }
  .customer-table-scope .customer-primary-token,
  .customer-table-scope .customer-id-token,
  .customer-table-scope .customer-entry-token {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: keep-all;
  }
  .customer-table-scope .customer-identity-line,
  .customer-table-scope .customer-access-hint {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .customer-table-scope .customer-row-date,
  .customer-table-scope .customer-nickname {
    margin-top: 1px;
    font-size: 0.8rem;
    line-height: 1.25;
  }
  .customer-table-scope .customer-access-line {
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
  }
  .customer-table-scope .customer-access-identity-details {
    display: inline-block;
    padding: 0;
    border-radius: 8px;
  }
  .customer-table-scope .customer-access-identity-details > summary {
    min-height: auto;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    font-size: 0.8rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .customer-table-scope .customer-access-hint {
    display: none;
  }
  .entry-table-scope .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .entry-table-scope table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .entry-table-scope thead {
    display: none;
  }
  .entry-table-scope tbody {
    display: grid;
    gap: 8px;
  }
  .entry-table-scope tbody tr {
    display: grid;
    grid-template-columns: minmax(108px, 0.76fr) minmax(180px, 1.38fr) minmax(68px, 0.4fr) minmax(118px, 0.72fr) minmax(92px, 0.48fr);
    grid-template-areas:
      "scan garden status triage actions";
    align-items: center;
    gap: 4px 8px;
    padding: 7px 8px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
  }
  .entry-table-scope tbody tr:hover {
    background: rgba(255,255,255,0.74);
  }
  .entry-table-scope td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 0;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .entry-table-scope td::before {
    display: none;
    content: none;
  }
  .entry-table-scope td:nth-child(1) { grid-area: identity; }
  .entry-table-scope td:nth-child(2) { grid-area: scan; }
  .entry-table-scope td:nth-child(3) { grid-area: garden; }
  .entry-table-scope td:nth-child(4) { grid-area: campaign; }
  .entry-table-scope td:nth-child(5) { grid-area: status; }
  .entry-table-scope td:nth-child(6) { grid-area: deadline; }
  .entry-table-scope td:nth-child(7) { grid-area: support; }
  .entry-table-scope td:nth-child(8) { grid-area: triage; }
  .entry-table-scope td:nth-child(9) { grid-area: actions; }
  .entry-table-scope td:nth-child(1)::before { content: "入口 ID"; }
  .entry-table-scope td:nth-child(2)::before { content: "入口码"; }
  .entry-table-scope td:nth-child(3)::before { content: "园区"; }
  .entry-table-scope td:nth-child(4)::before { content: "活动"; }
  .entry-table-scope td:nth-child(5)::before { content: "状态"; }
  .entry-table-scope td:nth-child(6)::before { content: "截止"; }
  .entry-table-scope td:nth-child(7)::before { content: "客服时间"; }
  .entry-table-scope td:nth-child(8)::before { content: "上线核对"; }
  .entry-table-scope td:nth-child(9)::before { content: "操作"; }
  .entry-table-scope td:nth-child(1),
  .entry-table-scope td:nth-child(4),
  .entry-table-scope td:nth-child(6),
  .entry-table-scope td:nth-child(7) {
    display: none;
  }
  .entry-table-scope td:nth-child(8),
  .entry-table-scope td:nth-child(9) {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .entry-table-scope td:nth-child(8)::before,
  .entry-table-scope td:nth-child(9)::before {
    display: none;
  }
  .entry-table-scope td:nth-child(9) .stack-actions,
  .entry-table-scope td:nth-child(9) .topbar-actions {
    justify-content: flex-start;
  }
  .entry-table-scope td:nth-child(9) {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .entry-table-scope td:nth-child(9) .entry-row-action-rail {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .entry-table-scope td:nth-child(9) .stack-actions {
    display: inline-flex;
    gap: 5px;
  }
  .entry-table-scope td:nth-child(9) .compact-options {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .entry-table-scope td:nth-child(8) .compact-options {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .entry-table-scope td:nth-child(8) .compact-options > summary {
    min-height: 0;
    padding: 0;
    white-space: nowrap;
  }
  .entry-table-scope td:nth-child(8) .compact-options:not([open]) > :not(summary),
  .entry-table-scope td:nth-child(9) .compact-options:not([open]) > :not(summary) {
    display: none;
  }
  .entry-row-folded-meta {
    display: inline;
    min-height: 0;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
  }
  .entry-table-scope td:nth-child(9) .ghost-btn,
  .entry-table-scope td:nth-child(9) .entry-row-command,
  .entry-table-scope td:nth-child(9) .compact-options > summary {
    min-height: 0;
    padding: 0;
    white-space: nowrap;
  }
  .entry-table-scope td:nth-child(9) .entry-row-primary-btn {
    min-width: 0;
    min-height: 0;
    padding: 0;
  }
  .entry-table-scope td:nth-child(9) .entry-row-more-summary {
    width: auto;
    min-width: 32px;
    max-width: 44px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    overflow: hidden;
  }
  .entry-table-scope td:nth-child(9) .entry-row-more-summary::marker {
    content: "";
  }
  .entry-table-scope td:nth-child(9) .entry-row-more-summary::-webkit-details-marker {
    display: none;
  }
  .kindergarten-table-scope .table-wrap,
  .campaign-table-scope .table-wrap {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .kindergarten-table-scope table,
  .campaign-table-scope table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .kindergarten-table-scope thead,
  .campaign-table-scope thead {
    display: none;
  }
  .kindergarten-table-scope tbody,
  .campaign-table-scope tbody {
    display: grid;
    gap: 7px;
  }
  .kindergarten-table-scope tbody tr,
  .campaign-table-scope tbody tr {
    display: grid;
    gap: 5px 8px;
    padding: 8px 9px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
  }
  .kindergarten-table-scope tbody tr {
    grid-template-columns: minmax(220px, 1fr) minmax(72px, auto) minmax(72px, auto);
    grid-template-areas:
      "name status actions";
  }
  .campaign-table-scope tbody tr {
    grid-template-columns: minmax(220px, 1fr) minmax(104px, auto) minmax(72px, auto);
    grid-template-areas:
      "name status actions";
  }
  .kindergarten-table-scope tbody tr:hover,
  .campaign-table-scope tbody tr:hover {
    background: rgba(255,255,255,0.74);
  }
  .kindergarten-table-scope td,
  .campaign-table-scope td {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 2px;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .kindergarten-table-scope td::before,
  .campaign-table-scope td::before {
    display: none;
    content: none;
  }
  .kindergarten-table-scope td:nth-child(1) { display: none; }
  .kindergarten-table-scope td:nth-child(2) { grid-area: name; }
  .kindergarten-table-scope td:nth-child(3) { grid-area: status; }
  .kindergarten-table-scope td:nth-child(4) { grid-area: actions; }
  .kindergarten-table-scope td:nth-child(1)::before { content: "ID"; }
  .kindergarten-table-scope td:nth-child(2)::before { content: "门店"; }
  .kindergarten-table-scope td:nth-child(3)::before { content: "状态"; }
  .kindergarten-table-scope td:nth-child(4)::before { content: "操作"; }
  .campaign-table-scope td:nth-child(1) { display: none; }
  .campaign-table-scope td:nth-child(2) { grid-area: name; }
  .campaign-table-scope td:nth-child(3) { grid-area: status; }
  .campaign-table-scope td:nth-child(4) { grid-area: actions; }
  .campaign-table-scope td:nth-child(1)::before { content: "ID"; }
  .campaign-table-scope td:nth-child(2)::before { content: "活动"; }
  .campaign-table-scope td:nth-child(3)::before { content: "状态 / 窗口"; }
  .campaign-table-scope td:nth-child(4)::before { content: "操作"; }
  .kindergarten-table-scope td:nth-child(2) .muted,
  .campaign-table-scope td:nth-child(2) .muted,
  .campaign-table-scope td:nth-child(3) .muted {
    display: none;
  }
  .kindergarten-table-scope td:nth-child(4),
  .campaign-table-scope td:nth-child(4) {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .kindergarten-row-action-band,
  .campaign-row-action-band {
    display: flex;
    align-items: center;
    gap: 4px 10px;
    flex-wrap: wrap;
    min-width: 0;
  }
  .kindergarten-row-action-band > *,
  .campaign-row-action-band > * {
    flex: 0 0 auto;
    min-width: 0;
  }
  .kindergarten-table-scope .compact-options,
  .campaign-table-scope .compact-options {
    min-width: 0;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }
  .kindergarten-row-action-band > .compact-options > summary,
  .campaign-row-action-band > .compact-options > summary {
    min-height: 0;
    padding: 0 2px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .kindergarten-table-scope .ghost-btn,
  .kindergarten-table-scope .primary-btn,
  .campaign-table-scope .ghost-btn,
  .campaign-table-scope .primary-btn {
    min-height: 28px;
    padding: 4px 8px;
    max-width: 100%;
    white-space: nowrap;
  }
  .kindergarten-table-scope .compact-options > summary,
  .campaign-table-scope .compact-options > summary {
    min-height: 0;
    padding: 0 2px;
    white-space: nowrap;
  }
  .catalog-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .catalog-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .catalog-table thead {
    display: none;
  }
  .catalog-table tbody {
    display: grid;
    gap: 6px;
  }
  .catalog-table tbody tr {
    display: grid;
    grid-template-columns:
      minmax(132px, 1.1fr)
      minmax(82px, 0.58fr)
      minmax(220px, 1.45fr)
      minmax(112px, auto);
    grid-template-areas:
      "name section review actions";
    align-items: center;
    gap: 4px 8px;
    padding: 5px 8px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.58);
  }
  .catalog-table tbody tr:hover {
    background: rgba(255,255,255,0.74);
  }
  .catalog-table td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 2px;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .catalog-table td::before {
    display: none;
    content: none;
  }
  .catalog-table td:nth-child(1) { display: none; }
  .catalog-table td:nth-child(2) { grid-area: name; }
  .catalog-table td:nth-child(3) { grid-area: section; }
  .catalog-table td:nth-child(4) { display: none; }
  .catalog-table td:nth-child(5) {
    grid-area: review;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .catalog-table td:nth-child(6) {
    grid-area: actions;
    justify-items: end;
    align-content: center;
  }
  .catalog-table td:nth-child(1)::before { content: "ID"; }
  .catalog-table-categories td:nth-child(2)::before { content: "名称"; }
  .catalog-table-categories td:nth-child(3)::before { content: "分区"; }
  .catalog-table-subcategories td:nth-child(2)::before { content: "类目"; }
  .catalog-table-subcategories td:nth-child(3)::before { content: "名称"; }
  .catalog-table td:nth-child(4)::before { content: "排序"; }
  .catalog-table td:nth-child(5)::before { content: "运营核对"; }
  .catalog-table td:nth-child(6)::before { content: "操作"; }
  .catalog-table .catalog-row-review {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 3px 8px;
  }
  .catalog-table .catalog-row-review .status-line {
    gap: 4px 6px;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 1.15;
  }
  .catalog-table .catalog-row-review .status-line strong {
    white-space: nowrap;
    font-size: 0.8rem;
  }
  .catalog-table .catalog-row-review .pill {
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
  }
  .catalog-table .catalog-row-review .pill.warn {
    color: var(--warn);
  }
  .catalog-table .catalog-row-review .pill.danger {
    color: var(--danger);
  }
  .catalog-table .catalog-row-review [data-catalog-category-line="scope"],
  .catalog-table .catalog-row-review [data-catalog-subcategory-line="scope"] {
    grid-area: auto;
  }
  .catalog-table .catalog-row-review .muted {
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .catalog-table .catalog-row-review-details {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .catalog-table .catalog-row-review-details > summary {
    min-height: 20px;
    padding: 1px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #53677a;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
  }
  .catalog-table .catalog-row-review-details > summary::-webkit-details-marker {
    display: none;
  }
  .catalog-table .catalog-row-review-details > summary:hover,
  .catalog-table .catalog-row-review-details > summary:focus-visible {
    color: #174f91;
    background: rgba(47, 134, 255, 0.08);
    outline: 2px solid rgba(47, 134, 255, 0.18);
    outline-offset: 2px;
  }
  .catalog-table .catalog-row-review-details:not([open]) > :not(summary) {
    display: none;
  }
  .catalog-table .topbar-actions {
    grid-area: review-action;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .catalog-table .catalog-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-items: end;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    max-width: 100%;
  }
  .catalog-row-command {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 0;
    min-height: 20px;
    padding: 1px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #385067;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
  }
  .catalog-row-command-primary {
    color: #1f5fa8;
  }
  .catalog-row-command-neutral {
    color: #385067;
  }
  .catalog-row-command:hover,
  .catalog-row-command:focus-visible {
    background: rgba(47, 134, 255, 0.08);
    color: #174f91;
    outline: 2px solid rgba(47, 134, 255, 0.2);
    outline-offset: 2px;
  }
  .catalog-table .ghost-btn,
  .catalog-table .primary-btn {
    max-width: 100%;
    white-space: nowrap;
    min-height: 30px;
    padding: 5px 8px;
  }
  .product-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .product-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .product-table thead {
    display: none;
  }
  .product-table tbody {
    display: grid;
    gap: 4px;
  }
  .product-table tbody tr {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) minmax(64px, max-content) minmax(132px, 0.82fr) minmax(78px, max-content);
    grid-template-areas:
      "select identity price stock ops"
      "select identity price stock ops";
    align-items: center;
    gap: 2px 7px;
    padding: 4px 7px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
  }
  .product-table td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 0;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
  }
  .product-table td::before {
    content: "";
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--muted);
    font-weight: 700;
  }
  .product-table td:nth-child(1) { grid-area: select; align-content: center; text-align: left; }
  .product-table td:nth-child(2) { grid-area: identity; }
  .product-table td:nth-child(3) { grid-area: category; }
  .product-table td:nth-child(4) { grid-area: garden; }
  .product-table td:nth-child(5) { grid-area: price; }
  .product-table td:nth-child(6) { grid-area: stock; }
  .product-table td:nth-child(7) { display: none; }
  .product-table td:nth-child(8) { grid-area: ops; }
  .product-table td:nth-child(2)::before { content: "商品 / 编码"; }
  .product-table td:nth-child(3)::before { content: "分类 / 范围"; }
  .product-table td:nth-child(4)::before { content: "园区"; }
  .product-table td:nth-child(5)::before { content: "价格"; }
  .product-table td:nth-child(6)::before { content: "规格库存"; }
  .product-table td:nth-child(7)::before { content: "库存来源"; }
  .product-table td:nth-child(8)::before { content: "运营"; }
  .product-table td:nth-child(2)::before,
  .product-table td:nth-child(5)::before,
  .product-table td:nth-child(6)::before,
  .product-table td:nth-child(7)::before,
  .product-table td:nth-child(8)::before {
    display: none;
  }
  .product-table td:nth-child(3),
  .product-table td:nth-child(4) {
    display: none;
  }
  .product-table td:nth-child(2) > strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.18;
  }
  .product-table td:nth-child(2) > .muted {
    display: none;
  }
  .product-table td:nth-child(2) .status-line {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .product-table td:nth-child(2) .chip {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-table td:nth-child(5) {
    justify-items: start;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.15;
  }
  .product-table td:nth-child(6) {
    min-width: 0;
  }
  .product-table td:nth-child(8) {
    justify-items: start;
  }
  .product-stock-inline-next {
    display: none !important;
  }
  .product-stock-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, max-content);
    align-items: center;
    gap: 4px;
    width: 100%;
    line-height: 1.14;
  }
  .product-stock-summary {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.14;
  }
  .product-stock-total {
    font-size: 0.72rem;
    line-height: 1.14;
  }
  .product-stock-detail-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }
  .product-stock-detail-link:focus-visible {
    outline: 2px solid rgba(103, 74, 47, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .product-stock-inline-next {
    min-width: 0;
    max-width: 92px;
  }
  .product-stock-inline-next .product-next-step-inline {
    min-width: 0;
    width: auto;
    max-width: 92px;
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    white-space: nowrap;
  }
  .product-stock-inline-next .product-next-step-inline strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem;
  }
  .product-table .product-row-ops {
    max-width: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .product-table .product-row-ops > * {
    margin: 0;
  }
  .product-table .product-next-step-inline {
    min-height: 30px;
    padding: 5px 9px;
  }
  .product-table .product-stock-inline-next .product-next-step-inline {
    min-height: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
  }
  .product-table .product-row-ops-more > summary {
    min-height: 20px;
    padding: 1px 2px;
  }
  .product-table .topbar-actions {
    justify-content: flex-start;
  }
  .product-ops-merged {
    justify-items: end;
    gap: 3px;
  }
  .product-ops-default-row {
    justify-content: flex-end;
    gap: 4px;
  }
  .product-table td:nth-child(8) .topbar-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .product-table td:nth-child(8) .ghost-btn,
  .product-table td:nth-child(8) .primary-btn {
    min-height: 27px;
    padding: 4px 7px;
    white-space: nowrap;
  }
  .product-table td:nth-child(8) .product-row-more summary {
    min-height: 20px;
    padding: 1px 2px;
    white-space: nowrap;
  }
  .action-log-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .action-log-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .action-log-table thead {
    display: none;
  }
  .action-log-table tbody {
    display: grid;
    gap: 7px;
  }
  .action-log-table tbody tr {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    grid-template-areas:
      "type summary action";
    align-items: center;
    gap: 6px 9px;
    padding: 7px 8px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
  }
  .action-log-table td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 2px;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
  }
  .action-log-table td::before {
    content: "";
    display: none;
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--muted);
    font-weight: 700;
  }
  .action-log-table td:nth-child(1) { grid-area: type; }
  .action-log-table td:nth-child(2) { grid-area: summary; }
  .action-log-table td:nth-child(3) { grid-area: target; }
  .action-log-table td:nth-child(4) { grid-area: time; }
  .action-log-table td:nth-child(5) { grid-area: action; }
  .action-log-table td:nth-child(3),
  .action-log-table td:nth-child(4) {
    display: none;
  }
  .action-log-table td:nth-child(5) {
    justify-self: end;
    align-self: center;
  }
  .action-log-table td:nth-child(1) .pill {
    max-width: 78px;
    padding: 2px 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .action-log-table td:nth-child(2) {
    display: block;
    min-width: 0;
    line-height: 1.35;
  }
  .action-log-table td:nth-child(2) strong {
    display: inline;
    margin-right: 8px;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.35;
  }
  .action-log-table [data-action-log-summary-cell] {
    display: inline;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .action-log-row-meta {
    display: inline-flex;
    gap: 4px 10px;
    line-height: 1.3;
    margin-left: 8px;
    font-size: 0.8rem;
  }
  .action-log-table .compact-options {
    padding: 4px 7px;
    border-radius: 8px;
  }
  .action-log-table .compact-options summary {
    font-size: 0.8rem;
    line-height: 1.25;
    white-space: nowrap;
  }
  .order-search-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .order-search-panel .topbar-actions {
    justify-content: flex-end;
    gap: 6px;
  }
  .filters.order-filter-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
  .order-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .order-table-scroll {
    overflow: visible;
    max-width: 100%;
  }
  .order-table-head {
    display: none;
  }
  .order-table-body {
    min-width: 0;
    display: grid;
    gap: 8px;
  }
  .order-table-record {
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
  }
  .order-table-row {
    min-width: 0;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1.35fr) minmax(82px, 0.42fr) minmax(82px, 0.42fr) 92px;
    grid-template-areas:
      "select order amount status actions"
      "select store delivery count actions"
      "select user time time actions";
    gap: 4px 8px;
    align-items: center;
    padding: 7px 9px;
  }
  .order-table-cell {
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.3;
  }
  .order-table-select {
    grid-area: select;
    padding: 0;
    place-items: start center;
    align-self: start;
    padding-top: 4px;
  }
  .order-table-order-no { grid-area: order; }
  .order-table-delivery { grid-area: delivery; }
  .order-table-store { grid-area: store; }
  .order-table-count { grid-area: count; text-align: left; }
  .order-table-money { grid-area: amount; }
  .order-table-user { grid-area: user; }
  .order-table-time { grid-area: time; }
  .order-table-status-cell { grid-area: status; }
  .order-table-order-no strong,
  .order-table-delivery,
  .order-table-store,
  .order-table-count,
  .order-table-money,
  .order-table-user,
  .order-table-time,
  .order-table-status {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  .order-table-actions-cell {
    grid-area: actions;
    align-self: stretch;
    padding: 0;
  }
  .order-table-actions-stack.order-row-actions {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 5px;
  }
  .order-table-actions-cell .order-table-actions-stack .ghost-btn,
  .order-table-actions-cell .order-table-actions-stack .primary-btn,
  .order-table-actions-cell .order-table-actions-stack .order-row-command,
  .order-table-actions-stack .ghost-btn,
  .order-table-actions-stack .primary-btn,
  .order-table-actions-stack .order-row-command,
  .order-table-actions-stack .order-inline-detail-toggle > summary {
    flex: 1 1 58px;
    min-width: 0;
    max-width: 100%;
    min-height: 24px;
    padding: 1px 5px;
    font-size: 0.78rem;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }
  .order-table-actions-stack .order-next-secondary-actions {
    flex-basis: 100%;
  }
  .order-table-actions-stack .order-next-secondary-actions summary {
    min-height: 18px;
    padding: 1px 0;
    font-size: 0.72rem;
  }
  .order-table-actions-cell .order-table-actions-stack .order-row-command-display,
  .order-table-actions-stack .order-row-command-display,
  .order-table-actions-cell .order-table-actions-stack .order-row-command-action,
  .order-table-actions-stack .order-row-command-action,
  .order-table-actions-stack .order-inline-detail-toggle > summary.order-secondary-text-command,
  .order-table-actions-stack .order-next-secondary-actions summary.order-secondary-text-command {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 18px;
    padding: 1px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow-wrap: normal;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
  .order-row-card {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 24px minmax(0, 1fr) 118px;
    grid-template-areas: "select content actions";
  }
  .order-row-body { grid-template-columns: 1fr; }
  .order-row-payment { grid-column: 2 / 3; }
  .order-table-detail {
    position: static;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "product meta"
      "receiver receiver";
    gap: 5px;
    padding: 7px 10px 8px;
    align-items: start;
  }
  .order-table-detail-product {
    grid-area: product;
  }
  .order-table-detail-meta {
    grid-area: meta;
  }
  .order-table-detail-receiver {
    grid-area: receiver;
  }
  .order-table-detail .order-row-field-grid,
  .order-table-detail .order-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 7px;
  }
  .order-table-detail .order-product-brief {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 7px;
  }
.order-table-detail .order-product-thumb {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
}

  .order-table-detail .order-product-copy {
    gap: 2px;
  }
  .order-table-detail .order-product-name {
    -webkit-line-clamp: 2;
  }
  .order-table-detail .order-product-meta {
    gap: 2px 7px;
  }
  .order-table-detail .order-product-meta span,
  .order-table-detail .order-product-amount {
    font-size: 0.78rem;
  }
  .order-table-detail .order-row-section-title {
    gap: 0 5px;
    line-height: 1.1;
  }
  .order-table-detail .order-row-section-title small {
    font-size: 0.74rem;
  }
  .order-table-detail .order-row-field-grid span,
  .order-table-detail .order-detail-fields span,
  .order-table-detail .order-info-label {
    font-size: 0.76rem;
  }
  .order-table-detail .order-row-field-grid strong,
  .order-table-detail .order-detail-fields strong,
  .order-table-detail .order-info-value,
  .order-table-detail .order-folded-text {
    font-size: 0.82rem;
    line-height: 1.22;
  }
  .order-table-detail .order-address-line {
    margin-top: 0;
    padding-top: 2px;
  }
  .order-table-detail .order-address-line strong,
  .order-table-detail .order-folded-text summary {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .order-table-payment {
    margin-top: 4px;
  }
  .order-table-payment .order-row-payment {
    padding: 5px;
  }
  .refund-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .refund-summary-line {
    gap: 4px;
    margin-bottom: 5px;
  }
  .refund-summary-line .mini-stat {
    padding: 3px 7px;
  }
  .refund-default-filterbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 5px 7px;
    margin-bottom: 4px;
  }
  .refund-default-filterbar .filters {
    grid-template-columns: minmax(118px, 0.75fr) minmax(150px, 1fr);
    gap: 5px;
  }
  .refund-default-filterbar .filters input {
    min-height: 30px;
    padding: 5px 8px;
  }
  .refund-default-filterbar .topbar-actions {
    gap: 5px;
  }
  .refund-top-ops-line {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 4px;
  }
  .refund-top-ops-line .refund-advanced-filter-shell[open] {
    grid-column: auto;
  }
  .refund-top-ops-line .refund-queue-shell {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 4px 7px;
  }
  .refund-queue-shell {
    gap: 4px 7px;
    padding: 0 0 3px;
  }
  .refund-queue-shell > .compact-options {
    padding: 4px 6px;
  }
  .refund-queue-shortcut-options > summary,
  .refund-advanced-filter-shell > summary,
  .refund-deferred-ops-shell > summary {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 0.74rem;
  }
  .refund-table-scroll {
    overflow: visible;
    max-width: 100%;
  }
  .refund-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }
  .refund-table thead {
    display: block;
  }
  .refund-table thead tr {
    display: grid;
    grid-template-columns: 20px minmax(148px, 1fr) minmax(118px, 0.58fr) minmax(66px, 0.32fr) minmax(154px, 0.72fr) minmax(108px, 0.44fr);
    grid-template-areas: "select service status amount context actions";
    gap: 3px 6px;
    padding: 5px 7px;
  }
  .refund-table th {
    min-width: 0;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1.1;
  }
  .refund-table th:nth-child(1) { grid-area: select; }
  .refund-table th:nth-child(2) { grid-area: service; }
  .refund-table th:nth-child(3) { grid-area: status; }
  .refund-table th:nth-child(4) { grid-area: amount; }
  .refund-table th:nth-child(5) { grid-area: context; }
  .refund-table th:nth-child(6) { display: none; }
  .refund-table th:nth-child(7) { grid-area: actions; }
  }
  .refund-table tbody {
    display: grid;
    gap: 0;
  }
  .refund-table tbody tr {
    display: grid;
    grid-template-columns: 20px minmax(148px, 1fr) minmax(118px, 0.58fr) minmax(66px, 0.32fr) minmax(154px, 0.72fr) minmax(108px, 0.44fr);
    grid-template-areas:
      "select service status amount context actions";
    gap: 3px 6px;
    min-height: 42px;
    padding: 4px 7px;
    border-top: 1px solid rgba(103, 74, 47, 0.08);
    align-items: center;
  }
  .refund-table td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 2px;
    width: auto !important;
    padding: 0;
    border-top: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .refund-table td::before {
    display: none;
  }
  .refund-table td:nth-child(1) { grid-area: select; align-content: center; text-align: left; }
  .refund-table td:nth-child(2) { grid-area: service; }
  .refund-table td:nth-child(3) { grid-area: status; }
  .refund-table td:nth-child(4) { grid-area: amount; }
  .refund-table td:nth-child(5) { grid-area: context; }
  .refund-table td:nth-child(6) { grid-area: next; }
  .refund-table td:nth-child(7) { grid-area: actions; }
  .refund-table td:nth-child(2)::before { content: "服务单 / 订单"; }
  .refund-table td:nth-child(3)::before { content: "状态"; }
  .refund-table td:nth-child(4)::before { content: "金额"; }
  .refund-table td:nth-child(5)::before { content: "问题"; }
  .refund-table td:nth-child(6)::before { content: "处理"; }
  .refund-table td:nth-child(7)::before { content: "操作"; }
  .refund-table td:nth-child(6) {
    display: none;
  }
  .refund-table td:nth-child(7) {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .refund-table-context strong,
  .refund-table-context span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .refund-table-main strong,
  .refund-table-main .refund-main-service-id,
  .refund-table-amount strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .refund-table-main strong {
    -webkit-line-clamp: 1;
    line-height: 1.2;
  }
  .refund-table-main .refund-main-service-id,
  .refund-table-amount strong {
    -webkit-line-clamp: 1;
    line-height: 1.18;
  }
  .refund-main-inline-context {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
  }
  .refund-main-type {
    display: none;
  }
  .refund-table-amount span {
    display: none;
  }
  .refund-table-status .status-line,
  .refund-table-actions .stack-actions {
    justify-content: flex-start;
  }
  .refund-table-status .status-line {
    align-items: center;
    gap: 3px;
  }
  .refund-table-status .pill {
    padding: 2px 6px;
    font-size: 0.72rem;
    line-height: 1.15;
  }
  .refund-status-more > summary {
    min-height: 0;
    padding: 0;
    font-size: 0.7rem;
  }
  .refund-table-next {
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .refund-table-next > .refund-next-step:not(details) {
    grid-column: auto;
  }
  .refund-table-next .refund-next-step {
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 7px;
  }
  .refund-table-next > .refund-next-step:not(details) span,
  .refund-table-next > .refund-next-step:not(details) .status-line,
  .refund-table-next [data-refund-row-contact-card] summary .pill,
  .refund-table-next [data-refund-row-contact-card] summary .chip {
    display: none;
  }
  .refund-table-next summary .status-line {
    gap: 4px;
  }
  .refund-table-next .refund-next-step span {
    -webkit-line-clamp: 2;
  }
  .refund-table-row-details {
    margin-top: 0;
    padding: 5px 8px;
  }
  .refund-table-next details:not([open]) > :not(summary),
  .refund-table-actions details:not([open]) > :not(summary) {
    display: none;
  }
.refund-table-actions .ghost-btn,
.refund-table-actions .primary-btn {
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
}
.refund-view-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0ea34a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}
.refund-table-actions .refund-inline-command {
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.1;
}
  .refund-table-actions .stack-actions,
  .refund-row-secondary-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
  }
  .refund-row-secondary-actions {
    margin-top: 0;
  }
.refund-row-secondary-actions > summary {
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  color: #1f5fa8;
}
  .refund-table-main .refund-main-type { display: none; }
  .refund-table thead {
    display: none;
  }
  .refund-table tbody tr {
    grid-template-columns: 22px minmax(0, 1.12fr) minmax(70px, 0.42fr) minmax(72px, 0.34fr) minmax(92px, 0.46fr) minmax(58px, 0.28fr);
    grid-template-areas: "select service status amount context actions";
    min-height: 42px;
    padding: 4px 6px;
    gap: 3px 6px;
  }
  .refund-table-context strong {
    -webkit-line-clamp: 1;
    line-height: 1.18;
    max-height: 1.18em;
  }
}
@media (max-width: 1320px) and (min-width: 1181px) {
  .product-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .product-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .product-table thead {
    display: none;
  }
  .product-table tbody {
    display: grid;
    gap: 4px;
  }
  .product-table tbody tr {
    display: grid;
    grid-template-columns: 20px minmax(240px, 1.15fr) minmax(64px, max-content) minmax(150px, 0.8fr) minmax(86px, max-content);
    grid-template-areas: "select identity price stock ops";
    align-items: center;
    gap: 2px 8px;
    min-height: 48px;
    padding: 5px 8px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
  }
  .product-table td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 0;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: break-word;
  }
  .product-table td::before {
    display: none;
  }
  .product-table td:nth-child(1) { grid-area: select; align-content: center; text-align: left; }
  .product-table td:nth-child(2) { grid-area: identity; }
  .product-table td:nth-child(3),
  .product-table td:nth-child(4) { display: none; }
  .product-table td:nth-child(5) { grid-area: price; justify-items: start; white-space: nowrap; font-weight: 700; font-size: 0.78rem; line-height: 1.15; }
  .product-table td:nth-child(6) { grid-area: stock; min-width: 0; }
  .product-table td:nth-child(7) { display: none !important; }
  .product-table td:nth-child(8) { grid-area: ops; justify-items: end; }
  .product-table td:nth-child(2) > strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.18;
  }
  .product-table td:nth-child(2) > .muted {
    display: none;
  }
  .product-table td:nth-child(2) .status-line {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .product-table td:nth-child(2) .chip {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-stock-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, max-content);
    align-items: center;
    gap: 4px;
    width: 100%;
    line-height: 1.14;
  }
  .product-stock-summary {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.14;
  }
  .product-stock-total {
    font-size: 0.72rem;
    line-height: 1.14;
  }
  .product-stock-inline-next {
    display: none !important;
  }
  .product-stock-inline-next .product-next-step-inline {
    min-width: 0;
    width: auto;
    max-width: 96px;
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    white-space: nowrap;
  }
  .product-stock-inline-next .product-next-step-inline strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem;
  }
  .product-table .product-row-ops {
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .product-table .product-row-ops > * {
    margin: 0;
  }
  .product-table td:nth-child(8) .topbar-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .product-table td:nth-child(8) .ghost-btn,
  .product-table td:nth-child(8) .primary-btn {
    min-height: 27px;
    padding: 4px 7px;
    white-space: nowrap;
  }
  .product-table td:nth-child(8) .product-row-more summary,
  .product-table .product-row-ops-more > summary {
    min-height: 20px;
    padding: 1px 2px;
    white-space: nowrap;
  }
}
@media (max-width: 1320px) and (min-width: 1181px) {
  .refund-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .refund-table-scroll {
    overflow: visible;
    max-width: 100%;
  }
  .refund-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }
  .refund-table thead {
    display: block;
  }
  .refund-table thead tr {
    display: grid;
    grid-template-columns: 20px minmax(160px, 1fr) minmax(150px, 0.78fr) minmax(82px, 0.42fr) minmax(96px, 0.42fr);
    grid-template-areas: "select service status amount actions";
    gap: 3px 7px;
    padding: 5px 7px;
  }
  .refund-table th {
    min-width: 0;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1.1;
  }
  .refund-table th:nth-child(1) { grid-area: select; }
  .refund-table th:nth-child(2) { grid-area: service; }
  .refund-table th:nth-child(3) { grid-area: status; }
  .refund-table th:nth-child(4) { grid-area: amount; }
  .refund-table th:nth-child(5),
  .refund-table th:nth-child(6) { display: none; }
  .refund-table th:nth-child(7) { grid-area: actions; }
  }
  .refund-table tbody {
    display: grid;
    gap: 0;
  }
  .refund-table tbody tr {
    display: grid;
    grid-template-columns: 20px minmax(160px, 1fr) minmax(150px, 0.78fr) minmax(82px, 0.42fr) minmax(96px, 0.42fr);
    grid-template-areas: "select service status amount actions";
    gap: 3px 7px;
    min-height: 42px;
    padding: 4px 7px;
    border-top: 1px solid rgba(103, 74, 47, 0.08);
    align-items: center;
  }
  .refund-table td {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 2px;
    width: auto !important;
    padding: 0;
    border-top: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .refund-table td:nth-child(1) { grid-area: select; align-content: center; text-align: left; }
  .refund-table td:nth-child(2) { grid-area: service; }
  .refund-table td:nth-child(3) { grid-area: status; }
  .refund-table td:nth-child(4) { grid-area: amount; }
  .refund-table td:nth-child(5) { grid-area: context; }
  .refund-table td:nth-child(6) { grid-area: next; }
  .refund-table td:nth-child(7) { grid-area: actions; }
  .refund-table td:nth-child(5),
  .refund-table td:nth-child(6) {
    display: none;
  }
  .refund-table-main strong,
  .refund-table-main .refund-main-service-id,
  .refund-table-main .refund-main-type,
  .refund-table-amount strong {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.16;
  }
  .refund-main-inline-context,
  .refund-table-amount span {
    display: none;
  }
  .refund-table-status .status-line,
  .refund-table-actions .stack-actions {
    justify-content: flex-start;
  }
  .refund-table-status .status-line {
    align-items: center;
    gap: 3px;
  }
  .refund-table-status .pill {
    padding: 2px 6px;
    font-size: 0.72rem;
    line-height: 1.15;
  }
  .refund-status-more > summary {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 0.7rem;
  }
  .refund-table-actions .ghost-btn,
  .refund-table-actions .primary-btn {
    max-width: 100%;
    min-height: 22px;
    padding: 2px 6px;
    font-size: 0.74rem;
    white-space: nowrap;
  }
  .refund-view-command {
    min-height: 20px;
    padding: 1px 6px;
    font-size: 0.72rem;
    line-height: 1.1;
  }
  .refund-table-actions .refund-inline-command {
    min-height: 18px;
    padding: 0 2px;
    font-size: 0.72rem;
    line-height: 1.1;
  }
  .refund-table-actions .stack-actions,
  .refund-row-secondary-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
  }
  .refund-row-secondary-actions {
    margin-top: 0;
  }
  .refund-row-secondary-actions > summary {
    font-size: 0.74rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  .shipment-item-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .shipment-package-row {
    grid-template-columns: 1fr;
  }
  .shipment-item-control {
    justify-content: flex-start;
    white-space: normal;
  }
  .access-table-scope td:nth-child(1)::before,
  .access-table-scope td:nth-child(2)::before,
  .access-table-scope td:nth-child(3)::before,
  .access-table-scope td:nth-child(4)::before,
  .access-table-scope td:nth-child(5)::before {
    display: block;
  }
  .access-table-scope tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "account"
      "person"
      "status"
      "summary"
      "actions";
  }
  .customer-table-scope tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "id"
      "phone"
      "entry"
      "access";
  }
  .entry-table-scope tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "scan"
      "garden"
      "status"
      "triage"
      "actions";
  }
  .kindergarten-table-scope tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "status"
      "actions";
  }
  .campaign-table-scope tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "status"
      "actions";
  }
  .product-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "identity"
      "category"
      "garden"
      "price"
      "stock"
      "ops";
  }
  .product-table td:nth-child(1) {
    display: none;
  }
  .catalog-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "section"
      "review"
      "actions";
  }
  .catalog-table td:nth-child(6) {
    justify-items: start;
  }
  .catalog-table .catalog-row-review {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "review-status"
      "review-scope"
      "review-detail"
      "review-action";
  }
  .catalog-table .catalog-row-actions {
    justify-items: start;
  }
  .refund-default-filterbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .refund-top-ops-line .refund-queue-shell,
  .refund-queue-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .refund-quick-secondary,
  .refund-quick-secondary .topbar-actions,
  .refund-advanced-filter-shell,
  .refund-deferred-ops-shell,
  .refund-queue-shortcut-options {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .refund-quick-secondary .topbar-actions,
  .refund-queue-shortcut-options .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .refund-default-filterbar > .filters {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .refund-quick-select-shell,
  .refund-quick-select-shell select,
  .refund-default-filterbar .filters input,
  .refund-default-filterbar .topbar-actions,
  .refund-default-filterbar .topbar-actions button {
    width: 100%;
    min-width: 0;
  }
  .refund-quick-select-shell {
    align-items: stretch;
  }
  .refund-table tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    grid-template-areas:
      "service amount"
      "status actions";
    gap: 6px 8px;
    padding: 8px 9px;
  }
  .refund-table td:nth-child(1) {
    display: none;
  }
  .refund-table td::before {
    display: none;
  }
  .refund-table-status .status-line {
    gap: 3px;
  }
  .refund-table-status .pill {
    padding: 2px 6px;
  }
  .refund-table-main span,
  .refund-table-amount span,
  .refund-table-context span {
    margin-top: 2px;
  }
  .refund-table-next {
    grid-template-columns: minmax(0, 1fr);
  }
  .refund-table-next .refund-next-step {
    min-height: 30px;
    padding: 5px 7px;
  }
  .refund-table-actions .stack-actions {
    align-content: start;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .refund-table-actions .ghost-btn,
  .refund-table-actions .primary-btn {
    width: 100%;
    min-height: 28px;
  }
  .refund-view-command {
    width: fit-content;
  }
  .refund-table-actions .refund-inline-command {
    width: fit-content;
  }
}
@media (max-width: 920px) {
  html, body { height: auto; overflow: auto; }
  .app-shell {
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .sidebar {
    width: 100%;
    max-width: 100vw;
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-height: auto;
    overflow: hidden;
    padding: 10px 10px 8px;
  }
  .brand { margin-bottom: 6px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-title { font-size: 1rem; }
  .brand-subtitle { font-size: 0.78rem; }
  .nav {
    display: flex;
    gap: 6px;
    margin: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 11px;
  }
  .nav a:hover, .nav a.active { transform: none; }
  .nav small { font-size: 0.75rem; }
  .main { flex: 1; height: auto; overflow: visible; }
  .main { padding: 14px 12px 34px; } .page-grid { grid-template-columns: 1fr; }
  .span-7, .span-5, .span-12, .page-grid > .card:not(.span-12):not(.span-7):not(.span-5) { grid-column: span 1; }
  .hero-strip, .field-grid, .field-grid.three, .summary-grid, .compact-kv-grid, .ops-queue, .product-health-board, .kingdee-health-grid, .kingdee-health-inline, .subscription-gate-grid { grid-template-columns: 1fr; }
  .subscription-blocked-row {
    grid-template-columns: 1fr;
  }
  .subscription-blocked-row-action {
    justify-content: flex-start;
  }
  .action-log-table tbody tr {
    grid-template-columns: 1fr;
    grid-template-areas:
      "type"
      "summary"
      "action";
  }
  .action-log-table td:nth-child(5) {
    justify-self: start;
  }
  .ops-row { grid-template-columns: minmax(34px, auto) minmax(0, 1fr); }
  .ops-row .ghost-btn, .ops-row .primary-btn, .ops-row-command { grid-column: 2; justify-self: start; }
  .ops-detail { grid-column: 2; }
  .topbar { flex-direction: column; }
  .order-search-panel, .order-row-card {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    padding-right: 12px;
  }
  .order-row-content,
  .order-row-body,
  .order-row-items,
  .order-row-receiver {
    min-width: 0;
    max-width: 100%;
  }
  .order-row-body,
  .order-row-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-row-field-grid > div.wide {
    grid-column: auto;
  }
  .order-row-payment { grid-column: auto; min-width: 0; }
  .order-table-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "product"
      "meta"
      "receiver";
  }
  .order-table-detail .order-row-field-grid,
  .order-table-detail .order-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  .order-detail-fields {
    grid-template-columns: 1fr;
  }
  .modal {
    width: min(100%, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 16px;
  }
  .order-filter-grid {
    grid-template-columns: 1fr;
  }
  .filters.order-filter-grid {
    grid-template-columns: 1fr;
  }
  .order-row-next, .order-row-actions {
    grid-column: auto;
    grid-row: auto;
  }
  .order-row-actions {
    position: static;
    width: 100%;
  }
  .order-row-select, .order-row-main, .order-row-context, .order-row-items, .order-row-receiver, .order-row-status, .order-row-amount, .order-row-actions {
    grid-area: auto;
  }
}
@media (max-width: 560px) {
  .sidebar { padding: 8px 8px 6px; }
  .brand { margin-bottom: 5px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 0.9rem; }
  .brand-subtitle, .nav small { display: none; }
  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 5px;
  }
  .nav a {
    width: 100%;
    min-width: auto;
    min-height: 34px;
    justify-content: center;
    padding: 7px 6px;
    font-size: 0.88rem;
    text-align: center;
  }
  .main { padding: 12px 8px 28px; }
}
@media (max-width: 920px) {
  .refund-default-filterbar,
  .refund-default-filterbar > .filters,
  .refund-top-ops-line,
  .refund-top-ops-line .refund-queue-shell,
  .refund-queue-shell,
  .refund-advanced-filter-shell,
  .refund-quick-secondary,
  .refund-queue-shortcut-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .refund-default-filterbar input,
  .refund-default-filterbar select,
  .refund-default-filterbar button,
  .refund-quick-secondary button,
  .refund-queue-shortcut-options button {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 1320px) and (min-width: 921px) {
  .product-table-wrap {
    overflow: visible !important;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .product-table {
    min-width: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  .product-table thead {
    display: none !important;
  }
  .product-table tbody {
    display: grid !important;
    gap: 4px;
  }
  .product-table tbody tr {
    display: grid !important;
    grid-template-columns: 20px minmax(240px, 1.15fr) minmax(64px, max-content) minmax(150px, 0.8fr) minmax(86px, max-content);
    grid-template-areas: "select identity price stock ops";
    align-items: center;
    gap: 2px 8px;
    min-height: 48px;
    padding: 5px 8px;
    border: 1px solid rgba(103, 74, 47, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
  }
  .product-table td {
    min-width: 0;
    display: grid !important;
    align-content: center;
    gap: 0;
    width: auto !important;
    padding: 0 !important;
    border-bottom: 0;
    overflow-wrap: break-word;
  }
  .product-table td::before {
    display: none !important;
  }
  .product-table td:nth-child(1) { grid-area: select; align-content: center; text-align: left; }
  .product-table td:nth-child(2) { grid-area: identity; }
  .product-table td:nth-child(3),
  .product-table td:nth-child(4) { display: none !important; }
  .product-table td:nth-child(5) { grid-area: price; justify-items: start; white-space: nowrap; font-weight: 700; font-size: 0.78rem; line-height: 1.15; }
  .product-table td:nth-child(6) { grid-area: stock; min-width: 0; }
  .product-table td:nth-child(7) { display: none !important; }
  .product-table td:nth-child(8) { grid-area: ops; justify-items: end; }
  .product-table td:nth-child(2) > strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.18;
  }
  .product-table td:nth-child(2) > .muted {
    display: none !important;
  }
  .product-table td:nth-child(2) .status-line {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .product-table td:nth-child(2) .chip {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-table td:nth-child(8) .topbar-actions,
  .product-table .product-row-ops {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .product-stock-inline-next {
    display: none !important;
  }
}

@media (max-width: 1320px) and (min-width: 921px) {
  .product-table tbody tr {
    grid-template-columns: 20px minmax(250px, 1.25fr) minmax(60px, max-content) minmax(156px, 0.74fr) minmax(72px, max-content) !important;
    min-height: 44px !important;
    padding: 3px 7px !important;
  }
  .product-table td:nth-child(2) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
  }
  .product-table td:nth-child(2) > strong {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.16;
  }
  .product-table td:nth-child(2) .product-identity-more {
    margin: 0;
  }
  .product-table .product-identity-visible-meta {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .product-table .product-identity-visible-meta span {
    max-width: min(132px, 50%);
  }
  .product-stock-inline-next {
    display: none !important;
  }
  .product-ops-default-row {
    min-height: 0;
    line-height: 1.12;
  }
}

/* Order list density reset: keep list/detail modes readable by container width. */
.order-table-scroll {
  overflow-x: visible;
}
.order-table-head,
.order-table-row,
.order-table-body,
.order-table-record {
  min-width: 0;
  width: 100%;
}
.order-table-head,
.order-table-row {
  grid-template-columns:
    minmax(148px, 1.32fr)
    minmax(58px, 0.44fr)
    minmax(88px, 0.72fr)
    minmax(54px, 0.36fr)
    minmax(72px, 0.48fr)
    minmax(96px, 0.76fr)
    minmax(100px, 0.72fr)
    minmax(68px, 0.44fr)
    minmax(112px, 0.78fr);
}
.order-table-cell {
  padding: 10px 8px;
}
.order-table-order-no strong,
.order-table-delivery,
.order-table-store,
.order-table-user,
.order-table-time,
.order-table-status {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.order-table-detail {
  position: static;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.05fr) minmax(260px, 1.05fr);
  grid-template-areas:
    "product meta receiver";
  align-items: start;
  gap: 6px 8px;
  padding: 7px 8px 8px;
  background: #f7f7f7;
}
.order-table-detail-product,
.order-table-detail-meta,
.order-table-detail-receiver {
  align-self: stretch;
  min-height: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(103, 74, 47, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}
.order-table-detail-product .order-row-items,
.order-table-detail-receiver .order-row-receiver {
  height: 100%;
}
.order-table-detail .order-row-section-title {
  margin-bottom: 3px;
  line-height: 1.08;
}
.order-table-detail .order-row-section-title small {
  font-size: 0.76rem;
}
.order-table-detail .order-product-brief {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px;
}
.order-table-detail .order-product-thumb {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
}
.order-table-detail .order-product-copy {
  gap: 1px;
}
.order-table-detail .order-product-name {
  font-size: 0.86rem;
  line-height: 1.18;
}
.order-table-detail .order-product-meta {
  gap: 1px 7px;
}
.order-table-detail .order-product-meta span,
.order-table-detail .order-product-amount {
  font-size: 0.76rem;
  line-height: 1.2;
}
.order-table-detail .order-row-field-grid,
.order-table-detail .order-detail-fields {
  gap: 2px 8px;
}
.order-table-detail .order-row-field-grid span,
.order-table-detail .order-detail-fields span {
  font-size: 0.74rem;
  line-height: 1.15;
}
.order-table-detail .order-row-field-grid strong,
.order-table-detail .order-detail-fields strong,
.order-table-detail .order-info-value,
.order-table-detail .order-folded-text {
  font-size: 0.8rem;
  line-height: 1.18;
}
.order-table-detail .order-address-line {
  margin-top: 0;
  padding-top: 2px;
}
.order-table-detail .order-address-line strong,
.order-table-detail .order-folded-text summary {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1500px) and (min-width: 1321px) {
  .order-table-head,
  .order-table-row {
    grid-template-columns:
      minmax(138px, 1.24fr)
      minmax(52px, 0.4fr)
      minmax(80px, 0.66fr)
      minmax(48px, 0.32fr)
      minmax(66px, 0.42fr)
      minmax(88px, 0.68fr)
      minmax(92px, 0.64fr)
      minmax(62px, 0.38fr)
      minmax(104px, 0.72fr);
  }
  .order-table-cell {
    padding: 9px 7px;
    font-size: 0.84rem;
  }
  .order-table-detail {
    grid-template-columns: minmax(210px, 0.9fr) minmax(250px, 1.05fr) minmax(250px, 1.05fr) !important;
    grid-template-areas:
      "product meta receiver" !important;
    gap: 6px 8px !important;
  }
}

@media (max-width: 1320px) and (min-width: 921px) {
  .order-table-scroll {
    overflow: visible !important;
  }
  .order-table-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(70px, 0.42fr) minmax(76px, 0.42fr) minmax(120px, 0.62fr) !important;
    grid-template-areas:
      "order amount status actions"
      "store user time actions" !important;
    gap: 0 7px !important;
    padding: 2px 8px !important;
    min-height: 0 !important;
  }
  .order-table-delivery,
  .order-table-count {
    display: none !important;
  }
  .order-table-cell {
    padding-block: 2px !important;
    font-size: 0.78rem !important;
    line-height: 1.14 !important;
  }
  .order-table-actions-stack.order-row-actions {
    gap: 3px 5px !important;
    flex-wrap: nowrap !important;
    align-content: center !important;
    justify-content: flex-start !important;
  }
  .order-table-actions-stack .ghost-btn,
  .order-table-actions-stack .primary-btn,
  .order-table-actions-stack .order-row-command,
  .order-table-actions-stack .order-inline-detail-toggle > summary {
    min-height: 22px !important;
    padding: 1px 1px !important;
    line-height: 1.08 !important;
    flex: 0 0 auto !important;
  }
  .order-table-detail {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "product product"
      "meta receiver" !important;
    gap: 5px !important;
    padding: 6px !important;
  }
  .order-table-detail-product,
  .order-table-detail-meta,
  .order-table-detail-receiver {
    padding: 5px 7px;
  }
  .order-table-detail .order-product-brief {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .order-table-detail .order-product-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
}

@media (max-width: 920px) {
  .product-detail-image-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-detail-image-preview {
    width: 100%;
    max-width: 160px;
    height: 160px;
  }
  .order-table-detail {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "product"
      "meta"
      "receiver" !important;
    gap: 5px !important;
    padding: 6px !important;
  }
}

@media (max-width: 1180px) {
  .order-table-row {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) !important;
    grid-template-areas: "summary actions" !important;
    gap: 5px 8px !important;
    align-items: center !important;
    padding: 6px 8px !important;
  }
  .order-table-delivery,
  .order-table-store,
  .order-table-count,
  .order-table-money,
  .order-table-user,
  .order-table-time,
  .order-table-status-cell,
  .order-table-order-no {
    display: none !important;
  }
  .order-table-narrow-summary {
    grid-area: summary;
    min-width: 0;
    display: grid !important;
    gap: 3px;
    padding: 0 !important;
  }
  .order-narrow-main-line {
    flex-wrap: nowrap;
  }
  .order-narrow-main-line strong {
    flex: 0 0 auto;
  }
  .order-narrow-main-line [data-order-narrow-store] {
    flex: 1 1 120px;
    max-width: 180px;
  }
  .order-narrow-main-line b,
  .order-narrow-main-line em,
  .order-narrow-main-line time {
    flex: 0 0 auto;
  }
  .order-narrow-meta-line [data-order-narrow-user] {
    max-width: 170px;
  }
  .order-table-actions-cell {
    grid-area: actions;
    min-width: 92px;
  }
}

/* Refund first-screen density: keep rows visible sooner while low-frequency context stays folded. */
.refund-summary-line {
  margin: 0 0 3px;
  line-height: 1.12;
}
.refund-default-filterbar {
  gap: 4px 8px;
  margin-bottom: 3px;
}
.refund-default-filterbar > .filters {
  gap: 4px;
}
.refund-default-filterbar input,
.refund-default-filterbar select {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.84rem;
}
.refund-filter-command-row {
  gap: 8px;
}
.refund-top-ops-line {
  gap: 3px 8px;
  margin-bottom: 3px;
}
.refund-advanced-filter-shell,
.refund-deferred-ops-shell {
  padding: 4px 7px;
}
.refund-advanced-filter-shell > summary,
.refund-deferred-ops-shell > summary,
.refund-queue-shortcut-options > summary {
  min-height: 22px;
  padding: 2px 6px;
  font-size: 0.74rem;
}
.refund-top-ops-line .refund-queue-shell,
.refund-queue-shell {
  gap: 3px 7px;
  padding: 0;
}
.refund-top-ops-line .refund-queue-shell > .compact-options,
.refund-queue-shell > .compact-options {
  padding: 2px 6px;
}
.refund-table tbody tr {
  min-height: 40px;
  padding-block: 3px;
}

@media (max-width: 1180px) {
  .refund-summary-line {
    margin-bottom: 2px;
  }
  .refund-default-filterbar {
    gap: 3px 6px;
    margin-bottom: 2px;
  }
  .refund-default-filterbar input,
  .refund-default-filterbar select {
    min-height: 28px;
    padding: 3px 7px;
  }
  .refund-top-ops-line {
    gap: 3px 6px;
    margin-bottom: 2px;
  }
  .refund-table tbody tr {
    min-height: 39px;
    padding-block: 3px;
  }
}

/* Global operations density: make shared admin surfaces feel like work tables. */
:root {
  --shadow: 0 8px 22px rgba(78, 53, 30, 0.08);
  --radius: 10px;
}
.main {
  padding: 18px 20px 28px;
}
.topbar {
  margin-bottom: 10px;
}
.topbar-copy,
.section-head p,
.muted,
.empty,
.state-copy,
.form-hint {
  line-height: 1.35;
}
.card,
.panel,
.stat {
  border-radius: 10px;
}
.card {
  padding: 12px;
}
.section-head,
.toolbar,
.table-head {
  margin-bottom: 9px;
  gap: 8px;
}
.section-head h2,
.card h2,
.drawer h3,
.modal h3 {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}
.section-head p {
  margin-top: 2px;
  font-size: 0.86rem;
}
.page-grid {
  gap: 10px;
}
.list-stack {
  gap: 6px;
}
.list-item,
.compact-options,
.panel,
.table-wrap {
  border-radius: 8px;
}
.list-item,
.compact-options {
  padding: 8px 10px;
}
.status-line {
  gap: 5px 8px;
}
.pill,
.chip,
.badge {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 0.78rem;
  line-height: 1.15;
}
.tab-btn,
.ghost-btn,
.primary-btn,
.icon-btn {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.15;
}
.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
}
.filters {
  gap: 6px;
}
.filters input,
.filters select,
.inline-setting input,
.login-card input,
.drawer input,
.drawer textarea,
.drawer select,
.modal input,
.modal textarea,
.modal select {
  min-height: 32px;
  border-radius: 8px;
  padding: 6px 9px;
}
.table-wrap {
  border-radius: 8px;
}
th,
td {
  padding: 8px 10px;
}
th {
  letter-spacing: 0;
  font-size: 0.74rem;
}
details.compact-options:not([open]) {
  padding-block: 5px;
}
details.compact-options > summary,
.compact-options summary {
  line-height: 1.2;
}
details.compact-options:not([open]) > :not(summary) {
  display: none;
}
.entry-table-scope [data-entry-row-triage-options].compact-options:not([open]),
.entry-table-scope [data-entry-row-secondary-actions].compact-options:not([open]) {
  padding: 0;
}
.entry-table-scope [data-entry-row-triage-options].compact-options:not([open]) > :not(summary),
.entry-table-scope [data-entry-row-secondary-actions].compact-options:not([open]) > :not(summary) {
  display: none;
}

body .home-inline-detail.compact-options:not([open]) {
  display: inline-flex;
  width: max-content;
  max-width: max-content;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body .home-inline-detail.compact-options:not([open]) > summary {
  padding: 0 1px;
  border: 0;
  background: transparent;
}

/* Subscription launch density: keep readiness controls on one scan line. */
.subscription-blocked-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 8px 12px;
}
.subscription-blocked-card > .section-head {
  display: none;
}
.subscription-blocked-card .subscription-inline-summary {
  flex: 1 1 420px;
  min-width: min(100%, 360px);
  padding: 4px 6px;
}
.subscription-blocked-card .subscription-blocked-strip {
  margin: 0;
  padding: 0;
}
.subscription-blocked-card > .compact-options,
.subscription-blocked-card > .subscription-secondary-queue-strip {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  padding: 2px 6px;
  border-radius: 8px;
}
.subscription-blocked-card > .compact-options > summary,
.subscription-blocked-card > .subscription-secondary-queue-strip > summary {
  min-height: 20px;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.15;
}
.subscription-blocked-card > .compact-options[open],
.subscription-blocked-card > .subscription-secondary-queue-strip[open] {
  flex-basis: 100%;
}

@media (max-width: 920px) {
  .subscription-blocked-card {
    display: grid;
    gap: 4px;
  }
  .subscription-blocked-card .subscription-inline-summary {
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .main {
    padding: 12px 10px 22px;
  }
  .card {
    padding: 10px;
  }
  .page-grid {
    gap: 8px;
  }
  .tab-btn,
  .ghost-btn,
  .primary-btn,
  .icon-btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.82rem;
  }
  .product-summarybar {
    align-items: flex-start;
  }
  .product-summarybar > .topbar-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .product-admin-density-surface .topbar-actions > * {
    max-width: 100%;
  }
}

/* Operator completeness guard: row context and row actions must stay visible. */
#appState td,
#appState th,
#appState .muted,
#appState small,
#appState strong,
#appState .admin-inline-meta-text,
#appState .order-info-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}
#appState .topbar-actions,
#appState .status-line,
#appState .inline-command-row,
#appState [data-product-topbar-secondary-options] > .compact-options-body,
#appState [data-product-action-panel],
#appState [data-subscription-row-primary-actions],
#appState [data-subscription-row-secondary-actions] > .compact-options-body,
#appState [data-entry-row-primary-actions],
#appState [data-entry-row-secondary-actions] > .compact-options-body,
#appState [data-kindergarten-row-primary-actions],
#appState [data-kindergarten-row-secondary-actions] > .compact-options-body,
#appState [data-campaign-row-primary-actions],
#appState [data-campaign-row-secondary-actions] > .compact-options-body,
#appState [data-order-row-actions],
#appState [data-refund-table-actions],
#appState [data-fulfillment-focus-secondary-actions],
#appState [data-customer-service-secondary-actions],
#appState [data-faq-secondary-actions] {
  flex-wrap: wrap !important;
  justify-content: flex-start;
}
#appState .product-identity-title,
#appState .product-identity-subtitle,
#appState .product-identity-visible-meta span,
#appState .product-code-token,
#appState .product-stock-summary,
#appState .product-stock-total,
#appState .product-inventory-source-note,
#appState .product-inventory-source-summary,
#appState .access-role-primary,
#appState .access-role-code,
#appState .customer-identity-summary,
#appState .entry-row-triage-summary,
#appState .access-permission-summary strong,
#appState .access-permission-summary .muted,
#appState .subscription-table-scope td:nth-child(2) > strong,
#appState .subscription-table-scope td:nth-child(3) > div:first-child,
#appState .subscription-table-scope .badge,
#appState .subscription-table-scope .pill {
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  overflow-wrap: anywhere;
}
#appState details.compact-options:not([open])[data-action-log-priority-options] > :not(summary),
#appState details.compact-options:not([open])[data-action-log-secondary-options] > :not(summary),
#appState details.compact-options:not([open])[data-action-log-triage-options] > :not(summary),
#appState details.compact-options:not([open])[data-access-user-triage-options] > :not(summary),
#appState details.compact-options:not([open])[data-kindergarten-row-triage-options] > :not(summary),
#appState details.compact-options:not([open])[data-kindergarten-row-secondary-actions] > :not(summary),
#appState details.compact-options:not([open])[data-campaign-row-triage-options] > :not(summary),
#appState details.compact-options:not([open])[data-campaign-row-secondary-actions] > :not(summary),
#appState details.compact-options:not([open])[data-subscription-row-secondary-actions] > :not(summary),
#appState details.compact-options:not([open])[data-subscription-blocked-row-actions] > :not(summary),
#appState details.compact-options:not([open])[data-entry-row-triage-options] > :not(summary),
#appState details.compact-options:not([open])[data-entry-row-secondary-actions] > :not(summary),
#appState details.compact-options:not([open])[data-catalog-row-review-details] > :not(summary),
#appState details.compact-options:not([open])[data-kingdee-log-triage-options] > :not(summary),
#appState details.compact-options:not([open])[data-product-topbar-secondary-options] > :not(summary),
#appState details.compact-options:not([open])[data-product-row-ops-more] > :not(summary),
#appState details.compact-options:not([open])[data-product-row-more-options] > :not(summary) {
  display: block !important;
}
#appState details.compact-options:not([open])[data-kindergarten-row-secondary-actions] > .compact-options-body,
#appState details.compact-options:not([open])[data-campaign-row-secondary-actions] > .compact-options-body {
  display: none !important;
}
details.compact-options:not([open])[data-product-topbar-secondary-options] > :not(summary) {
  display: block !important;
}
details.compact-options[data-product-topbar-secondary-options] > .compact-options-body {
  flex-wrap: wrap !important;
  justify-content: flex-start;
}

/* Final order-list overrides live last so legacy density rules cannot hide operator-critical data. */
#appState .order-filter-panel {
  grid-column: 1 / -1;
  width: 100%;
  padding: 7px 8px 8px;
  border: 1px solid rgba(103, 74, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}
#appState .order-filter-panel .order-filter-more-grid {
  min-width: 0;
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
}
#appState .order-filter-panel-title {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 0.84rem;
}
#appState [data-order-batch-selection-summary] {
  margin: 6px 0;
  padding: 8px 10px;
}
#appState .order-batch-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}
#appState .order-batch-selection-bar > .status-line {
  flex: 1 1 420px;
  gap: 5px 8px;
}
#appState .order-batch-selection-bar > .topbar-actions {
  flex: 0 1 auto;
  gap: 6px;
}
#appState .order-select-page {
  min-height: 30px;
  padding: 3px 7px;
  border: 1px solid rgba(103, 74, 47, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
}
#appState .order-table-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
#appState .order-table-wechat-transaction {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.18;
}
#appState .order-table-product-brief,
#appState .order-table-receiver-brief {
  min-width: 0;
  display: grid;
  gap: 3px;
}
#appState .order-table-product-brief strong,
#appState .order-table-receiver-brief strong {
  min-width: 0;
  font-size: .82rem;
  line-height: 1.2;
}
#appState .order-table-product-brief span,
#appState .order-table-receiver-brief span {
  min-width: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
}
#appState .order-table-receiver-brief span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#appState .order-table-detail {
  overflow: visible;
}
#appState .order-table-head,
#appState .order-table-row {
  grid-template-columns: 34px minmax(168px, 1.04fr) minmax(54px, .34fr) minmax(84px, .48fr) minmax(170px, 1.04fr) minmax(66px, .4fr) minmax(210px, 1.28fr) minmax(92px, .56fr) minmax(66px, .4fr) minmax(160px, .9fr) !important;
}
#appState .order-table-select {
  display: grid !important;
}
#appState .order-table-product,
#appState .order-table-receiver {
  display: block !important;
}
#appState .order-table-wechat-transaction,
#appState [data-order-narrow-wechat],
#appState .order-wechat-transaction-full,
#appState .order-wechat-transaction-full .order-info-value-full {
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-all;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  #appState .order-table-head {
    display: none !important;
  }
  #appState .order-table-row {
    grid-template-columns: 24px minmax(150px, 1.05fr) minmax(190px, 1.35fr) minmax(68px, .42fr) minmax(150px, .8fr) !important;
    grid-template-areas:
      "select order product status actions"
      "select receiver receiver amount actions"
      "select store delivery time actions" !important;
    gap: 4px 8px !important;
    padding: 7px 9px !important;
    align-items: center;
    margin-bottom: 8px;
    border: 1px solid rgba(103, 74, 47, .14);
    border-radius: 10px;
  }
  #appState .order-table-select { grid-area: select !important; }
  #appState .order-table-order-no { grid-area: order !important; }
  #appState .order-table-delivery { grid-area: delivery !important; }
  #appState .order-table-store { grid-area: store !important; }
  #appState .order-table-product { grid-area: product !important; }
  #appState .order-table-money { grid-area: amount !important; }
  #appState .order-table-receiver { grid-area: receiver !important; }
  #appState .order-table-time { grid-area: time !important; }
  #appState .order-table-status-cell { grid-area: status !important; }
  #appState .order-table-actions-cell { grid-area: actions !important; }
  #appState .order-table-actions-cell {
    min-width: 0 !important;
    overflow: visible !important;
    align-self: stretch;
  }
  #appState .order-table-actions-stack.order-row-actions {
    width: 100% !important;
    min-width: 0 !important;
    align-content: flex-start;
    gap: 5px 7px;
  }
  #appState .order-table-actions-stack.order-row-actions > * {
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
  #appState .order-table-cell {
    padding: 2px 0 !important;
  }
}

@media (max-width: 1180px) {
  #appState .order-table-row {
    grid-template-columns: 24px minmax(0, 1fr) minmax(118px, auto) !important;
    grid-template-areas: "select summary actions" !important;
  }
  #appState .order-table-select {
    grid-area: select !important;
    align-self: start;
    padding: 2px 0 !important;
  }
  #appState .order-table-product,
  #appState .order-table-receiver,
  #appState .order-table-delivery,
  #appState .order-table-store,
  #appState .order-table-money,
  #appState .order-table-time,
  #appState .order-table-status-cell,
  #appState .order-table-order-no {
    display: none !important;
  }
  #appState .order-table-narrow-summary {
    display: grid !important;
    grid-area: summary !important;
    gap: 3px;
  }
  #appState .order-table-actions-cell {
    grid-area: actions !important;
  }
  #appState .order-narrow-main-line {
    flex-wrap: wrap;
  }
  #appState .order-narrow-meta-line {
    display: grid;
    gap: 2px;
  }
  #appState .order-narrow-meta-line span {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 700px) {
  #appState .order-search-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  #appState .order-search-actions,
  #appState .order-topbar-command-row {
    justify-content: flex-start;
  }
  #appState .order-filter-panel .order-filter-more-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #appState .order-table-row {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    grid-template-areas: "select summary" "select actions" !important;
  }
}
.order-notice-editor {
  border-color: rgba(82, 184, 216, 0.32);
  background: linear-gradient(180deg, rgba(235, 247, 252, 0.72), rgba(255, 255, 255, 0.96));
}

.order-notice-store-row,
.order-notice-item-row {
  background: #fff;
}

.order-notice-preview {
  border: 1px solid rgba(82, 184, 216, 0.28);
  background: #eef8fc;
}

.order-notice-preview-deadline {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff4dc;
  color: #805511;
  font-weight: 700;
}

/* Progressive current-admin refund slice: keep every operator-critical field aligned. */
#appState .refund-table-shell,
#appState .refund-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
}
#appState .refund-table {
  display: table !important;
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
#appState .refund-table thead { display: table-header-group !important; }
#appState .refund-table thead tr { display: table-row !important; }
#appState .refund-table tbody { display: table-row-group !important; }
#appState .refund-table tbody tr { display: table-row !important; }
#appState .refund-table th,
#appState .refund-table td {
  display: table-cell !important;
  min-width: 0;
  padding: 10px 8px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#appState .refund-table th:nth-child(1) { width: 38px; }
#appState .refund-table th:nth-child(2) { width: 16%; }
#appState .refund-table th:nth-child(3) { width: 15%; }
#appState .refund-table th:nth-child(4) { width: 20%; }
#appState .refund-table th:nth-child(5) { width: 18%; }
#appState .refund-table th:nth-child(6) { width: 20%; }
#appState .refund-table th:nth-child(7) { width: 72px; }
#appState .refund-table-main,
#appState .refund-table-contact,
#appState .refund-table-products,
#appState .refund-table-amount,
#appState .refund-table-status {
  display: grid;
  gap: 5px;
  min-width: 0;
}
#appState .refund-table-main > *,
#appState .refund-table-contact > *,
#appState .refund-table-amount > *,
#appState .refund-table-status > * {
  display: block !important;
  max-width: 100%;
  white-space: normal;
}
#appState .refund-table-products > *,
#appState .refund-table-actions > * { max-width: 100%; }
#appState .refund-product-line {
  display: grid;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(103, 74, 47, .1);
}
#appState .refund-product-line:last-child { border-bottom: 0; }
#appState .refund-product-line strong { font-size: .82rem; line-height: 1.28; }
#appState .refund-product-line span { color: var(--muted); font-size: .74rem; line-height: 1.28; }
#appState .refund-wechat-actual { color: #176a4a; font-weight: 700; }
#appState .refund-table-amount.has-integrity-risk {
  padding: 8px;
  border: 1px solid rgba(181, 52, 43, .32);
  border-radius: 8px;
  background: rgba(255, 238, 235, .72);
}
#appState .refund-amount-difference,
.refund-amount-alert {
  display: block;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 700;
}
#appState .refund-amount-difference.warn,
.refund-amount-alert.warn { color: #805511; background: #fff4dc; }
#appState .refund-amount-difference.danger,
.refund-amount-alert.danger { color: #9f2f27; background: #ffebe8; }
.refund-amount-formula {
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef8fc;
  color: #174c5f;
  font-weight: 700;
}
.refund-result-summary {
  border-color: rgba(82, 184, 216, .34);
  background: linear-gradient(180deg, rgba(235, 247, 252, .82), #fff);
}
.refund-result-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.refund-result-amounts > span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--muted);
  font-size: .76rem;
}
.refund-result-amounts strong { color: var(--text); font-size: .98rem; }
.refund-completed-items { margin-top: 8px; }

@media (max-width: 1180px) {
  #appState .refund-table,
  #appState .refund-table tbody {
    display: block !important;
    width: 100% !important;
  }
  #appState .refund-table thead { display: none !important; }
  #appState .refund-table tbody tr {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "select main actions"
      "select contact status"
      "select products products"
      "select amount amount" !important;
    gap: 8px 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 10px !important;
    padding: 10px !important;
    border: 1px solid rgba(103, 74, 47, .14);
    border-radius: 10px;
    background: #fff;
  }
  #appState .refund-table td {
    display: grid !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #appState .refund-table td::before { display: none !important; content: none !important; }
  #appState .refund-table-select { grid-area: select !important; align-content: start !important; padding-top: 3px !important; }
  #appState .refund-table-main { grid-area: main !important; }
  #appState .refund-table-contact { grid-area: contact !important; }
  #appState .refund-table-products { grid-area: products !important; }
  #appState .refund-table-amount { grid-area: amount !important; }
  #appState .refund-table-status { grid-area: status !important; }
  #appState .refund-table-actions { grid-area: actions !important; align-content: start; }
  #appState .refund-table-actions .stack-actions { display: grid !important; gap: 5px; }
}

@media (max-width: 700px) {
  #appState .refund-table tbody tr {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    grid-template-areas:
      "select main"
      "select contact"
      "select products"
      "select amount"
      "select status"
      "select actions" !important;
  }
  #appState .refund-table-actions .stack-actions,
  #appState .refund-table-actions .ghost-btn,
  #appState .refund-table-actions .primary-btn { width: 100% !important; }
  .refund-result-amounts { grid-template-columns: minmax(0, 1fr); }
}
.order-refund-shipment-facts {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}
.order-refund-shipment-facts > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-refund-shipment-facts [data-order-refund-classification] {
  color: var(--ink);
  font-weight: 700;
}
.order-refund-shipment-facts [data-order-shipment-decision] {
  color: var(--accent-strong, #9c4f24);
}
.order-refund-shipment-facts.is-compact {
  font-size: 12px;
}
