/* GM2 宽屏管理窗口：presentation 仅用于展示，写入仍由服务端冻结合同验证。 */
#gm2SystemTool {
  --gst-bg: #0b120f; --gst-panel: #171e18; --gst-raised: #20281f;
  --gst-ink: #f1ecd9; --gst-muted: #bbb8a5; --gst-line: #65542f;
  --gst-soft: #343d2f; --gst-gold: #e5bb60; --gst-danger: #b32438;
  --gst-danger-light: #ff919d; --gst-success: #a8d794;
  position: fixed; inset: 0; z-index: 2147483000; box-sizing: border-box;
  padding: 0; margin: auto; width: min(1680px, calc(100vw - 48px));
  height: 92dvh; height: 92vh; height: 92dvh; max-width: none; max-height: none;
  min-width: 0; border: 1px solid var(--gst-gold); border-radius: 14px;
  color: var(--gst-ink); background: var(--gst-bg); overflow: hidden;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark; box-shadow: 0 32px 120px #0009;
}
#gm2SystemTool:not([open]) { display: none; }
/* 顶栏全局 overflow-y:visible!important 不能覆盖本窗口的滚动锁。 */
html:has(#gm2SystemTool[open]), body:has(#gm2SystemTool[open]) { overflow: hidden !important; overscroll-behavior: none; }
#gm2SystemTool::backdrop { background: #000b; backdrop-filter: blur(5px); }
#gm2SystemTool[data-maximized=true] { width: 100vw; height: 100dvh; border-radius: 0; }
#gm2SystemTool *, #gm2SystemTool *::before, #gm2SystemTool *::after { box-sizing: border-box; }
#gm2SystemTool [hidden] { display: none !important; }
#gm2SystemTool h2, #gm2SystemTool h3, #gm2SystemTool h4, #gm2SystemTool p { margin: 0; color: inherit; }
#gm2SystemTool h2 { font-size: 25px; font-weight: 650; line-height: 1.3; }
#gm2SystemTool h3 { font-size: 23px; font-weight: 650; line-height: 1.4; }
#gm2SystemTool h4 { font-size: 16px; font-weight: 600; }
#gm2SystemTool .gst-dialog-shell { display: flex; flex-direction: column; height: 100%; min-width: 0; }
#gm2SystemTool .gst-titlebar { display: flex; align-items: center; gap: 12px; padding: 18px 22px 14px; min-width: 0; }
#gm2SystemTool .gst-titlebar > div { min-width: 0; }
#gm2SystemTool .gst-titlebar p { margin-top: 5px; font-size: 12px; color: var(--gst-muted); }
#gm2SystemTool .gst-context-summary { margin-left: auto; color: var(--gst-muted); font-size: 13px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-head { margin: 0 20px 12px; padding: 12px 14px; border: 1px solid var(--gst-line); border-radius: 8px; background: var(--gst-panel); }
#gm2SystemTool .gst-target-bar { display: grid; grid-template-columns: minmax(170px, .95fr) minmax(190px, 1.3fr) minmax(170px, 1fr) auto; gap: 12px; align-items: end; margin: 0; }
#gm2SystemTool label { display: block; min-width: 0; color: var(--gst-muted); font-size: 12px; font-weight: 500; }
#gm2SystemTool .gst-field-label { display: block; margin-bottom: 4px; }
#gm2SystemTool input:not([type=checkbox]), #gm2SystemTool select {
  width: 100%; min-width: 0; height: 42px; padding: 9px 11px; margin: 0;
  color: var(--gst-ink); background: var(--gst-bg); border: 1px solid var(--gst-line);
  border-radius: 6px; font: inherit; font-size: 14px; box-shadow: none; color-scheme: dark;
}
#gm2SystemTool input::placeholder { color: #a9aa98; opacity: 1; }
#gm2SystemTool .gst-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: auto; min-width: 0; min-height: 42px; margin: 0; padding: 9px 13px;
  border: 1px solid var(--gst-line); border-radius: 6px; background: var(--gst-panel);
  color: var(--gst-ink); font: inherit; font-size: 13px; font-weight: 600;
  line-height: 1.4; white-space: nowrap; cursor: pointer; box-shadow: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 100ms ease-out;
}
#gm2SystemTool .gst-button:hover:not(:disabled) { border-color: var(--gst-gold); background: var(--gst-raised); }
#gm2SystemTool .gst-button:active:not(:disabled) { transform: translateY(1px); }
#gm2SystemTool .gst-button.gst-primary { color: #241b09; background: linear-gradient(120deg, #f2cf7c, #bd882a); border-color: var(--gst-gold); }
#gm2SystemTool .gst-button.gst-danger { color: #fff2ef; background: linear-gradient(110deg, #d83447, #a31d32); border-color: #df4d5d; }
#gm2SystemTool .gst-button.gst-danger-outline { color: var(--gst-danger-light); border-color: #ce3447; background: #201719; }
#gm2SystemTool .gst-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
#gm2SystemTool :focus-visible { outline: 2px solid var(--gst-gold); outline-offset: 3px; }
#gm2SystemTool .gst-icon-button { width: 42px; flex: 0 0 42px; padding: 8px; border-color: transparent; background: transparent; font-size: 23px; }
#gm2SystemTool iconify-icon { display: inline-block; flex: 0 0 auto; }
#gm2SystemTool .gst-inline-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; fill: currentColor; vertical-align: -.15em; }
#gm2SystemTool .gst-work-area { display: grid; grid-template-columns: 230px minmax(0, 1fr); flex: 1; min-height: 0; margin: 0 20px; position: relative; gap: 20px; }
#gm2SystemTool .gst-system-panel { min-width: 0; min-height: 0; border: 1px solid var(--gst-line); border-radius: 9px; padding: 12px; background: var(--gst-panel); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--gst-gold) var(--gst-bg); scrollbar-width: thin; }
#gm2SystemTool .gst-system-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
#gm2SystemTool .gst-system-heading strong { font-size: 15px; }
#gm2SystemTool .gst-note { color: var(--gst-muted); font-size: 12px; }
#gm2SystemTool .gst-system-search { margin-bottom: 10px; }
#gm2SystemTool .gst-system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
#gm2SystemTool .gst-system-grid > p { grid-column: 1 / -1; }
#gm2SystemTool .gst-system-button { width: 100%; min-height: 44px; padding: 8px 9px; white-space: normal; text-align: left; justify-content: flex-start; background: var(--gst-bg); font-size: 12px; font-weight: 500; }
#gm2SystemTool .gst-system-button span { overflow-wrap: anywhere; }
#gm2SystemTool .gst-system-button[aria-pressed=true] { color: #261c0b; border-color: var(--gst-gold); background: linear-gradient(120deg, #f4d184, #bc862c); font-weight: 650; }
#gm2SystemTool .gst-mobile-system { display: none; }
#gm2SystemTool .gst-data { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 1px 10px; scrollbar-color: var(--gst-gold) var(--gst-bg); scrollbar-width: thin; }
#gm2SystemTool .gst-data-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#gm2SystemTool .gst-data-heading > div { flex: 1; min-width: 0; }
#gm2SystemTool .gst-data-heading h3 { color: var(--gst-ink); }
#gm2SystemTool .gst-data-heading p { font-size: 12px; color: var(--gst-muted); }
#gm2SystemTool .gst-data-heading > label { width: 190px; flex: 0 1 190px; }
#gm2SystemTool .gst-filter-bar { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(155px, .55fr) auto auto; gap: 10px; align-items: end; }
#gm2SystemTool[data-operation-type=STATE] .gst-filter-bar, #gm2SystemTool[data-operation-type=REFERENCE] .gst-filter-bar, #gm2SystemTool[data-operation-type=ACTIVITY_RECORD] .gst-filter-bar { grid-template-columns: minmax(170px, 1fr) auto auto; }
#gm2SystemTool .gst-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#gm2SystemTool .gst-toolbar #gstClearSelected { margin-left: auto; }
#gm2SystemTool .gst-toolbar #gstClearSystem { padding-left: 20px; padding-right: 20px; }
#gm2SystemTool .gst-message { min-height: 19px; margin: 7px 0 2px; color: var(--gst-muted); font-size: 12px; }
#gm2SystemTool .gst-message[data-level=error] { color: var(--gst-danger-light); }
#gm2SystemTool .gst-message[data-level=success] { color: var(--gst-success); }
#gm2SystemTool .gst-range-note { color: #d8c494; margin: 7px 0 3px; font-size: 12px; }
#gm2SystemTool .gst-capability-note { color: var(--gst-muted); font-size: 12px; margin: 0 0 12px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-table-frame { border: 1px solid var(--gst-line); border-radius: 8px; overflow: hidden; background: var(--gst-panel); }
#gm2SystemTool table { width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--gst-ink); background: transparent; font-size: 13px; }
#gm2SystemTool th, #gm2SystemTool td { padding: 12px 10px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; border-bottom: 1px solid var(--gst-soft); }
#gm2SystemTool th { color: var(--gst-muted); background: var(--gst-raised); font-size: 12px; font-weight: 500; }
#gm2SystemTool th:nth-child(2) { width: 34%; }
#gm2SystemTool th:nth-child(3), #gm2SystemTool th:nth-child(4) { width: 8%; }
#gm2SystemTool th:nth-child(5) { width: 15%; }
#gm2SystemTool .gst-check-cell { width: 44px; padding: 0; text-align: center; }
#gm2SystemTool .gst-check-hit { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; }
#gm2SystemTool input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gst-gold); margin: 0; flex: 0 0 18px; }
#gm2SystemTool .gst-item, #gm2SystemTool .gst-detail-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
#gm2SystemTool .gst-item > div, #gm2SystemTool .gst-detail-item > div { min-width: 0; }
#gm2SystemTool .gst-item strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
#gm2SystemTool .gst-item small { display: block; font-size: 10px; line-height: 1.5; margin-top: 3px; color: var(--gst-muted); overflow-wrap: anywhere; }
#gm2SystemTool .gst-item-image { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid var(--gst-line); border-radius: 7px; overflow: hidden; background: #222c22; }
#gm2SystemTool .gst-item-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
#gm2SystemTool .gst-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--gst-muted); }
#gm2SystemTool .gst-image-placeholder :is(iconify-icon,.gst-inline-icon) { font-size: 22px; }
#gm2SystemTool .gst-image-placeholder small { font-size: 9px; margin: 0; }
#gm2SystemTool .gst-state-tag { display: inline-block; padding: 5px 8px; border-radius: 6px; color: var(--gst-ink); background: #29312a; font-size: 12px; }
#gm2SystemTool .gst-detail-cell { width: 90px; }
#gm2SystemTool .gst-row-detail { border-color: transparent; background: transparent; color: var(--gst-gold); padding: 5px 1px; font-size: 12px; }
#gm2SystemTool .gst-empty { padding: 48px 20px; text-align: center; color: var(--gst-muted); }
#gm2SystemTool .gst-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 0; }
#gm2SystemTool .gst-pagination-actions { display: flex; align-items: center; gap: 9px; }
#gm2SystemTool .gst-page-summary, #gm2SystemTool .gst-selection-note { font-size: 12px; color: var(--gst-muted); }
#gm2SystemTool .gst-state-record { border: 1px solid var(--gst-line); border-radius: 8px; padding: 16px; background: var(--gst-panel); margin-bottom: 12px; }
#gm2SystemTool .gst-state-record-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
#gm2SystemTool .gst-state-record-heading h4 { color: var(--gst-gold); font-size: 21px; }
#gm2SystemTool .gst-state-record-heading > div { display: flex; align-items: center; gap: 12px; }
#gm2SystemTool .gst-state-select { display: flex; align-items: center; gap: 7px; }
#gm2SystemTool .gst-growth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#gm2SystemTool .gst-growth-card { padding: 18px; border: 1px solid var(--gst-soft); border-radius: 7px; background: #1b241c; }
#gm2SystemTool .gst-growth-card strong { display: block; font-size: 32px; margin: 13px 0 4px; line-height: 1.4; }
#gm2SystemTool .gst-growth-card strong small { font-size: 14px; color: var(--gst-muted); font-weight: 500; }
#gm2SystemTool .gst-growth-card p { font-size: 13px; }
#gm2SystemTool .gst-growth-card .gst-note { margin: 6px 0 12px; font-size: 12px; }
#gm2SystemTool .gst-initial { background: #213b25; color: var(--gst-success); border: 1px solid #405e36; }
#gm2SystemTool .gst-no-change { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid #647443; background: #202c21; border-radius: 7px; color: var(--gst-success); }
#gm2SystemTool .gst-no-change :is(iconify-icon,.gst-inline-icon) { font-size: 33px; }
#gm2SystemTool .gst-state-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
#gm2SystemTool .gst-state-fields > div { border: 1px solid var(--gst-soft); border-radius: 7px; padding: 12px; }
#gm2SystemTool .gst-state-fields dt { font-size: 12px; color: var(--gst-muted); }
#gm2SystemTool .gst-state-fields dd { margin: 5px 0 0; font-size: 16px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-notice { padding: 12px; border: 1px solid var(--gst-line); background: #28261a; border-radius: 6px; color: #e1ca94; margin: 12px 0; font-size: 12px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-notice.gst-error { color: var(--gst-danger-light); background: #2c1b20; border-color: #773845; }
#gm2SystemTool .gst-side { position: absolute; z-index: 5; inset: 0 0 0 auto; width: min(530px, 100%); padding: 20px; background: #1b231c; border: 1px solid var(--gst-gold); border-radius: 9px; box-shadow: -30px 0 90px #000a; overflow-y: auto; overscroll-behavior: contain; }
#gm2SystemTool .gst-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
#gm2SystemTool .gst-drawer-heading h3 { font-size: 21px; }
#gm2SystemTool .gst-kv { display: grid; grid-template-columns: minmax(85px, .8fr) minmax(0, 1.5fr); gap: 8px 12px; margin: 15px 0; }
#gm2SystemTool .gst-kv dt { margin: 0; color: var(--gst-muted); font-size: 12px; }
#gm2SystemTool .gst-kv dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-preview-list { padding-left: 18px; margin: 12px 0; color: var(--gst-muted); font-size: 13px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-preview-list li { margin-bottom: 7px; }
#gm2SystemTool .gst-ack { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; color: var(--gst-ink); font-size: 13px; }
#gm2SystemTool .gst-ack input { margin-top: 2px; }
#gm2SystemTool .gst-side-actions, #gm2SystemTool .gst-receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
#gm2SystemTool .gst-side-actions .gst-button { flex: 1 1 auto; }
#gm2SystemTool .gst-receipt { padding: 15px; margin-top: 10px; border: 1px solid var(--gst-line); border-radius: 8px; background: var(--gst-panel); }
#gm2SystemTool .gst-receipt-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#gm2SystemTool .gst-receipt-heading h3 { font-size: 17px; }
#gm2SystemTool .gst-receipt-content { color: var(--gst-muted); font-size: 12px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-receipt-content ul { padding-left: 18px; }
#gm2SystemTool .gst-footer { display: flex; align-items: center; gap: 10px; padding: 10px 20px; }
#gm2SystemTool .gst-footer > span { margin-right: auto; color: var(--gst-muted); font-size: 12px; min-width: 0; }
#gm2SystemTool .gst-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.gm2-system-tool-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.gm2-system-tool-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 14px; border: 1px solid #a17d3f; border-radius: 7px; color: #f4e8cd; background: #171b18; font-size: 13px; text-decoration: none; }
.gm2-system-tool-links a:first-child { color: #231a0e; background: #dfb664; }
@media (max-width: 1100px) {
  #gm2SystemTool .gst-work-area { grid-template-columns: 200px minmax(0, 1fr); gap: 14px; }
  #gm2SystemTool .gst-toolbar #gstClearSelected { margin-left: 0; }
  #gm2SystemTool .gst-toolbar .gst-button { flex: 1 1 auto; }
  #gm2SystemTool .gst-target-bar { grid-template-columns: 1fr 1.2fr 1fr auto; gap: 8px; }
  #gm2SystemTool .gst-target-bar label { font-size: 11px; }
}
@media (max-width: 767px) {
  #gm2SystemTool, #gm2SystemTool[data-maximized=true] { --gst-mobile-toolbar-height: 99px; width: 100vw; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  #gm2SystemTool h2 { font-size: 19px; }
  #gm2SystemTool .gst-titlebar { padding: 10px 12px; gap: 4px; }
  #gm2SystemTool .gst-titlebar > div { flex: 1; }
  #gm2SystemTool .gst-titlebar p { font-size: 10px; margin-top: 3px; }
  #gm2SystemTool .gst-context-summary, #gm2SystemTool #gstMaximize { display: none; }
  #gm2SystemTool .gst-head { margin: 0 12px 8px; padding: 8px; }
  #gm2SystemTool .gst-target-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #gm2SystemTool .gst-field-label { font-size: 10px; margin-bottom: 3px; }
  #gm2SystemTool input:not([type=checkbox]), #gm2SystemTool select { font-size: 16px; min-height: 44px; padding: 8px; }
  #gm2SystemTool .gst-work-area { display: flex; flex-direction: column; margin: 0 12px; gap: 8px; }
  #gm2SystemTool .gst-system-panel { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; overflow: visible; border: 0; padding: 0; background: transparent; }
  #gm2SystemTool .gst-system-heading { grid-column: 1 / -1; margin-bottom: 0; font-size: 12px; }
  #gm2SystemTool .gst-system-heading strong { font-size: 12px; }
  #gm2SystemTool .gst-system-search { grid-column: 1; align-self: end; margin: 0; }
  #gm2SystemTool .gst-mobile-system { display: block; grid-column: 2; }
  #gm2SystemTool .gst-system-grid { display: none; }
  #gm2SystemTool .gst-data { flex: 1; padding-bottom: 126px; }
  #gm2SystemTool .gst-data-heading { gap: 6px; margin-bottom: 8px; align-items: end; }
  #gm2SystemTool .gst-data-heading h3 { font-size: 19px; }
  #gm2SystemTool .gst-data-heading > label { flex: 0 1 125px; width: 125px; }
  #gm2SystemTool .gst-data-heading p { font-size: 10px; }
  #gm2SystemTool .gst-data-heading #gstRefresh { padding: 6px 8px; font-size: 12px; }
  #gm2SystemTool .gst-filter-bar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  #gm2SystemTool .gst-filter-bar > label[for=gstStatus] { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; }
  #gm2SystemTool .gst-filter-bar > label[for=gstStatus] span { flex: 0 0 50px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-filter-bar, #gm2SystemTool[data-operation-type=REFERENCE] .gst-filter-bar, #gm2SystemTool[data-operation-type=ACTIVITY_RECORD] .gst-filter-bar { grid-template-columns: minmax(0, 1fr) auto auto; }
  #gm2SystemTool .gst-button { font-size: 12px; min-height: 44px; padding: 7px 10px; }
  #gm2SystemTool .gst-icon-button { width: 44px; flex-basis: 44px; }
  #gm2SystemTool .gst-toolbar { position: fixed; z-index: 3; bottom: 61px; left: 0; right: 0; height: var(--gst-mobile-toolbar-height); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 3px 12px; border-top: 1px solid var(--gst-line); background: var(--gst-bg); }
  #gm2SystemTool .gst-toolbar .gst-button { grid-column: span 2; padding: 7px 3px; white-space: nowrap; font-size: 11px; }
  #gm2SystemTool .gst-toolbar #gstClearSelected, #gm2SystemTool .gst-toolbar #gstClearSystem { grid-column: span 3; padding: 7px 3px; }
  #gm2SystemTool .gst-range-note, #gm2SystemTool .gst-capability-note, #gm2SystemTool .gst-message { font-size: 11px; }
  #gm2SystemTool table, #gm2SystemTool tbody { display: block; width: 100%; }
  #gm2SystemTool thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  #gm2SystemTool .gst-table-frame { border: 0; border-radius: 0; background: transparent; }
  #gm2SystemTool tbody tr { display: grid; grid-template-columns: 1fr 1fr; position: relative; gap: 5px 8px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--gst-line); border-radius: 8px; background: var(--gst-panel); }
  #gm2SystemTool td { display: block; padding: 0; border: 0; min-width: 0; font-size: 12px; }
  #gm2SystemTool td.gst-check-cell { position: absolute; right: 4px; top: 6px; width: 44px; }
  #gm2SystemTool .gst-check-hit { min-height: 44px; min-width: 44px; }
  #gm2SystemTool td.gst-name-cell { grid-column: 1 / -1; padding-right: 32px; margin-bottom: 3px; }
  #gm2SystemTool td[data-label]::before { content: attr(data-label) '：'; color: var(--gst-muted); font-size: 11px; }
  #gm2SystemTool td.gst-detail-cell { width: auto; grid-column: 1 / -1; }
  #gm2SystemTool .gst-row-detail { width: 100%; justify-content: flex-end; min-height: 44px; }
  #gm2SystemTool .gst-item strong { font-size: 15px; }
  #gm2SystemTool .gst-item small { font-size: 10px; }
  #gm2SystemTool .gst-pagination-actions { gap: 5px; }
  #gm2SystemTool .gst-pagination-actions .gst-button { font-size: 11px; padding: 5px 8px; }
  #gm2SystemTool .gst-page-summary { font-size: 10px; }
  #gm2SystemTool .gst-state-record { padding: 12px; }
  #gm2SystemTool .gst-state-record-heading { flex-direction: column; align-items: flex-start; gap: 7px; }
  #gm2SystemTool .gst-growth-grid, #gm2SystemTool .gst-state-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #gm2SystemTool .gst-growth-card { padding: 13px; }
  #gm2SystemTool .gst-growth-card strong { font-size: 25px; margin: 7px 0 3px; }
  #gm2SystemTool .gst-growth-card .gst-note { margin: 5px 0 7px; }
  #gm2SystemTool .gst-no-change { padding: 12px; gap: 8px; font-size: 13px; }
  #gm2SystemTool .gst-side { position: fixed; z-index: 6; inset: 0; width: 100%; border: 0; border-radius: 0; padding: 18px 14px; }
  #gm2SystemTool .gst-side-actions { position: sticky; bottom: -18px; padding: 12px 0; background: #1b231c; }
  #gm2SystemTool .gst-footer { flex: 0 0 61px; padding: 8px 12px; gap: 5px; background: var(--gst-bg); border-top: 1px solid var(--gst-line); }
  #gm2SystemTool .gst-footer > span { font-size: 10px; line-height: 1.4; }
  #gm2SystemTool .gst-footer .gst-button { font-size: 11px; padding: 5px 7px; }
}
/* 公开页 A2 的 !important 位于 public-a2 层；在同层精确覆盖，避免浅色输入与按钮串入。 */
@layer public-a2 {
  #pageShell #gm2QuickTools .gm2-quick-tools-kicker { display: none !important; }
  #pageShell #gm2QuickTools .gm2-quick-tools-head > div { display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; gap: 12px 22px !important; }
  #pageShell #gm2QuickTools .gm2-quick-tools-head h2 { margin: 0 !important; font-size: 30px !important; }
  #pageShell #gm2QuickTools .gm2-quick-tools-head p { margin: 0 !important; font-size: 14px !important; }
  #pageShell #gm2QuickTools .gm2-quick-tool-card { grid-template-columns: 140px minmax(0, 1fr) !important; gap: 26px !important; min-height: 210px !important; padding: 22px 28px !important; background: linear-gradient(115deg,#1d261e,#171e18) !important; }
  #pageShell #gm2QuickTools .gm2-service-icon { width: 140px !important; height: 140px !important; display: grid !important; place-items: center !important; color: #e5bb60 !important; background: radial-gradient(circle,#49472b55,transparent 70%) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  #pageShell #gm2QuickTools .gm2-service-icon.is-clean { color: #e89574 !important; }
  #pageShell #gm2QuickTools .gst-entry-media { width: 104px !important; height: 104px !important; fill: currentColor !important; filter: drop-shadow(0 6px 10px #0006); }
  #pageShell #gm2QuickTools .gm2-quick-tool-label { font-size: 12px !important; color: #e5bb60 !important; border-color: #766132 !important; }
  #pageShell #gm2QuickTools .gm2-quick-tool-card h3 { font-size: 26px !important; margin-top: 8px !important; }
  #pageShell #gm2QuickTools .gm2-quick-tool-card p { font-size: 14px !important; margin: 6px 0 15px !important; }
  #pageShell #gm2QuickTools .gm2-quick-tool-action { min-height: 49px !important; padding: 10px 27px !important; font-size: 18px !important; width: auto !important; }
  #pageShell #gm2QuickTools #openMailboxCleanupBtn { color: #e5bb60 !important; background: transparent !important; border: 1px solid #e5bb60 !important; }
  #pageShell #gm2QuickTools .gm2-tools-context { display: flex !important; flex-wrap: wrap !important; gap: 10px 22px !important; align-items: center !important; border-top: 1px solid #3e4637 !important; padding-top: 12px !important; color: #bbb8a5 !important; font-size: 13px !important; }
  #pageShell #gm2QuickTools .gm2-tools-context > span { display: inline-flex !important; align-items: center !important; gap: 6px !important; min-width: 0 !important; overflow-wrap: anywhere; }
  #pageShell #gm2QuickTools .gm2-tools-context-tail { margin-left: auto !important; }
  #pageShell #gm2QuickTools .gst-entry-status-icon { width: 18px !important; height: 18px !important; fill: currentColor !important; flex: 0 0 auto; }
  #pageShell #gm2QuickTools #gstEntryContext[data-binding-status=verified] .gm2-tools-binding { color: #a8d794 !important; }
  #pageShell #gm2SystemTool { position: fixed !important; inset: 0 !important; margin: auto !important; max-height: 100dvh !important; box-sizing: border-box !important; color: var(--gst-ink) !important; background: var(--gst-bg) !important; padding: 0 !important; }
  #pageShell #gm2SystemTool .gst-button { color: var(--gst-ink) !important; background: var(--gst-panel) !important; border: 1px solid var(--gst-line) !important; border-radius: 6px !important; min-height: 42px !important; padding: 9px 13px !important; font-size: 13px !important; line-height: 1.4 !important; box-shadow: none !important; letter-spacing: 0 !important; -webkit-text-fill-color: currentColor !important; }
  #pageShell #gm2SystemTool .gst-button.gst-primary, #pageShell #gm2SystemTool .gst-system-button[aria-pressed=true] { color: #261c0b !important; background: linear-gradient(120deg, #f2cf7c, #bd882a) !important; border-color: var(--gst-gold) !important; }
  #pageShell #gm2SystemTool .gst-button.gst-danger { color: #fff2ef !important; background: linear-gradient(110deg, #d83447, #a31d32) !important; border-color: #df4d5d !important; }
  #pageShell #gm2SystemTool .gst-button.gst-danger-outline { color: var(--gst-danger-light) !important; background: #201719 !important; border-color: #ce3447 !important; }
  #pageShell #gm2SystemTool .gst-system-button { min-height: 44px !important; font-size: 12px !important; padding: 8px 9px !important; background: var(--gst-bg) !important; }
  #pageShell #gm2SystemTool .gst-icon-button { width: 42px !important; flex: 0 0 42px !important; padding: 8px !important; border-color: transparent !important; font-size: 23px !important; background: transparent !important; }
  #pageShell #gm2SystemTool .gst-row-detail { color: var(--gst-gold) !important; background: transparent !important; border-color: transparent !important; font-size: 12px !important; padding: 5px 1px !important; }
  #pageShell #gm2SystemTool input:not([type=checkbox]), #pageShell #gm2SystemTool select { color: var(--gst-ink) !important; background: var(--gst-bg) !important; border: 1px solid var(--gst-line) !important; min-height: 42px !important; border-radius: 6px !important; font-size: 14px !important; padding: 9px 11px !important; box-shadow: none !important; color-scheme: dark !important; -webkit-text-fill-color: currentColor !important; }
  #pageShell #gm2SystemTool p, #pageShell #gm2SystemTool label { color: var(--gst-muted) !important; }
  #pageShell #gm2SystemTool .gst-range-note { color: #d8c494 !important; }
  #pageShell #gm2SystemTool table, #pageShell #gm2SystemTool tbody tr, #pageShell #gm2SystemTool td { color: var(--gst-ink) !important; background: transparent !important; -webkit-text-fill-color: currentColor !important; }
  #pageShell #gm2SystemTool thead, #pageShell #gm2SystemTool th { color: var(--gst-muted) !important; background: var(--gst-raised) !important; }
  #pageShell #gm2SystemTool .gst-message[data-level=error] { color: var(--gst-danger-light) !important; }
  #pageShell #gm2SystemTool .gst-notice { color: #e1ca94 !important; }
  @media(max-width:767px) {
    #pageShell #gm2QuickTools .gm2-quick-tools-head > div { display: block !important; }
    #pageShell #gm2QuickTools .gm2-quick-tools-head h2 { font-size: 23px !important; }
    #pageShell #gm2QuickTools .gm2-quick-tools-head p { margin-top: 7px !important; font-size: 12px !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-card { grid-template-columns: 66px minmax(0, 1fr) !important; gap: 12px !important; padding: 14px !important; min-height: 170px !important; }
    #pageShell #gm2QuickTools .gm2-service-icon { width: 66px !important; height: 90px !important; }
    #pageShell #gm2QuickTools .gst-entry-media { width: 60px !important; height: 60px !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-card h3 { font-size: 20px !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-card p { font-size: 12px !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-action { font-size: 14px !important; padding: 9px 12px !important; }
    #pageShell #gm2QuickTools .gm2-tools-context { font-size: 11px !important; gap: 9px 13px !important; }
    #pageShell #gm2QuickTools .gm2-tools-context-tail { margin-left: 0 !important; }
    #pageShell #gm2SystemTool { margin: 0 !important; width: 100vw !important; height: 100dvh !important; border: 0 !important; border-radius: 0 !important; }
    #pageShell #gm2SystemTool input:not([type=checkbox]), #pageShell #gm2SystemTool select { min-height: 44px !important; font-size: 16px !important; padding: 8px !important; }
    #pageShell #gm2SystemTool .gst-button { min-height: 44px !important; font-size: 12px !important; padding: 7px 10px !important; }
    #pageShell #gm2SystemTool .gst-toolbar .gst-button { font-size: 11px !important; padding: 7px 3px !important; }
    #pageShell #gm2SystemTool .gst-icon-button { width: 44px !important; flex: 0 0 44px !important; font-size: 23px !important; padding: 8px !important; }
    #pageShell #gm2SystemTool .gst-footer .gst-button { font-size: 11px !important; padding: 5px 7px !important; }
  }
}
@media(prefers-reduced-motion:reduce) { #gm2SystemTool .gst-button { transition: none; transform: none !important; } }
#gm2SystemTool .gst-growth-frame { border: 1px solid var(--gst-line); border-radius: 8px; overflow: hidden; }
#gm2SystemTool .gst-growth-table th:first-child { width: 28%; }
#gm2SystemTool .gst-growth-table th:nth-child(n+2) { width: 18%; }
#gm2SystemTool .gst-growth-table td { padding: 24px 14px; }
#gm2SystemTool .gst-growth-name { font-size: 16px; }
#gm2SystemTool .gst-growth-name :is(iconify-icon,.gst-inline-icon) { font-size: 39px; color: var(--gst-gold); vertical-align: middle; margin-right: 12px; }
#gm2SystemTool .gst-growth-table tr:nth-child(2) .gst-growth-name :is(iconify-icon,.gst-inline-icon) { color: #a5c8ec; }
#gm2SystemTool .gst-growth-table tr:nth-child(3) .gst-growth-name :is(iconify-icon,.gst-inline-icon) { color: #c7a8de; }
@media(max-width:767px) {
  #gm2SystemTool .gst-growth-frame { border: 0; overflow: visible; }
  #gm2SystemTool .gst-growth-table td { padding: 0; }
  #gm2SystemTool .gst-growth-name { grid-column: 1 / -1; margin-bottom: 7px; }
  #gm2SystemTool .gst-growth-name :is(iconify-icon,.gst-inline-icon) { font-size: 30px; margin-right: 8px; }
  #gm2SystemTool .gst-growth-table td[data-label=状态] { grid-column: 1 / -1; }
}
#gm2SystemTool .gst-preview-item { display: flex; align-items: center; gap: 10px; margin: 9px 0; color: var(--gst-ink); }
#gm2SystemTool .gst-preview-item .gst-item-image { width: 40px; height: 40px; flex-basis: 40px; }
#gm2SystemTool .gst-preview-section { margin: 18px 0; padding: 14px; border: 1px solid var(--gst-line); border-radius: 8px; background: var(--gst-bg); min-width: 0; }
#gm2SystemTool .gst-preview-section h4 { color: var(--gst-gold); font-size: 17px; margin: 0 0 8px; }
#gm2SystemTool .gst-preview-members { list-style: none; padding: 0; margin: 8px 0; }
#gm2SystemTool .gst-preview-member { padding: 8px 0; border-bottom: 1px solid var(--gst-soft); overflow-wrap: anywhere; }
#gm2SystemTool .gst-preview-member:last-child { border-bottom: 0; }
#gm2SystemTool .gst-preview-member .gst-preview-item > div { min-width: 0; }
#gm2SystemTool .gst-preview-member-name { display: block; font-size: 15px; }
#gm2SystemTool .gst-preview-member small { display: block; margin-top: 4px; color: var(--gst-muted); font-size: 11px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-preview-member .gst-note { margin: 5px 0; }
#gm2SystemTool .gst-preview-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
#gm2SystemTool .gst-preview-pager > span { color: var(--gst-muted); font-size: 12px; }
#gm2SystemTool .gst-preview-pager .gst-button { flex: 0 1 auto; }
@media(max-width:767px) {
  #gm2SystemTool .gst-preview-section { padding: 11px; }
  #gm2SystemTool .gst-preview-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #gm2SystemTool .gst-preview-pager > span { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  #gm2SystemTool .gst-preview-pager .gst-button { min-width: 0; }
}

.gst-entry-mobile { display: none; }
@media(max-width:767px) { .gst-entry-desktop { display: none; } .gst-entry-mobile { display: inline; } }

/* 养成桌面首屏保留三阶段与结果；长原因和回执仍可自然展开、滚动。 */
@media(min-width:1280px) {
  #gm2SystemTool[data-operation-type=STATE] .gst-data-primary {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: start;
  }
  #gm2SystemTool[data-operation-type=STATE] .gst-data-primary > * { grid-column: 1 / -1; min-width: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-data-heading { margin-bottom: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-data-heading > label {
    display: flex; align-items: center; gap: 8px;
    width: 260px; flex: 0 1 260px; margin: 0;
  }
  #gm2SystemTool[data-operation-type=STATE] .gst-data-heading .gst-field-label { flex: 0 0 auto; margin: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-data-heading select { flex: 1; min-width: 0; width: auto; }
  #gm2SystemTool[data-operation-type=STATE] .gst-filter-bar {
    grid-column: 1 / 5; grid-row: 2;
    grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px;
  }
  #gm2SystemTool[data-operation-type=STATE] .gst-filter-bar label { margin: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-filter-bar input { display: block; }
  #gm2SystemTool[data-operation-type=STATE] .gst-toolbar {
    grid-column: 5 / -1; grid-row: 2;
    margin: 0; gap: 8px; justify-content: flex-end;
  }
  #gm2SystemTool[data-operation-type=STATE] .gst-toolbar #gstClearSelected { margin-left: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-message { margin: 0; overflow-wrap: anywhere; }
  #gm2SystemTool[data-operation-type=STATE] .gst-range-note { grid-column: 1 / 7; grid-row: 4; margin: 0; overflow-wrap: anywhere; }
  #gm2SystemTool[data-operation-type=STATE] .gst-capability-note { grid-column: 7 / -1; grid-row: 4; margin: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-state-record { padding: 12px; margin-bottom: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-state-record + .gst-state-record { margin-top: 12px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-state-record-heading { margin-bottom: 8px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-state-select { margin: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-growth-table :is(th,td) { padding: 8px 14px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-growth-name :is(iconify-icon,.gst-inline-icon) { font-size: 28px; margin-right: 8px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-notice { margin: 8px 0; padding: 10px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-view .gst-no-change { padding: 10px; }
}

/* 关联摘要使用其余列宽，保留全部文字；不沿用库存“数量”的窄列。 */
@media(min-width:768px) {
  #gm2SystemTool[data-operation-type=REFERENCE] .gst-table-frame th:nth-child(2) { width: 24%; }
  #gm2SystemTool[data-operation-type=REFERENCE] .gst-table-frame th:nth-child(3) { width: auto; }
  #gm2SystemTool[data-operation-type=REFERENCE] .gst-table-frame th:nth-child(4) { width: 10%; }
  #gm2SystemTool[data-operation-type=REFERENCE] .gst-table-frame th:nth-child(5) { width: 14%; }
  #gm2SystemTool[data-operation-type=REFERENCE] .gst-table-frame th:nth-child(6) { width: 8%; }
}
/* 手机让查询和首条记录同屏，给固定操作区留外部空间，避免盖住可滚动内容。 */
@media(max-width:767px) {
  #gm2SystemTool .gst-titlebar { padding: 4px 12px; }
  #gm2SystemTool .gst-titlebar p { margin-top: 0; line-height: 1.4; }
  #gm2SystemTool .gst-head { margin-bottom: 0; padding: 4px; }
  #gm2SystemTool .gst-target-bar { gap: 2px 6px; }
  #gm2SystemTool .gst-target-bar > label { margin: 0; }
  #gm2SystemTool .gst-target-bar .gst-field-label { line-height: 1.2; margin-bottom: 2px; }
  #gm2SystemTool .gst-target-bar :is(input,select) { display: block; }
  /* 两行44px按钮 + 4px行距 + 上下各3px留白 + 1px边框，与固定栏同高。 */
  #gm2SystemTool .gst-work-area { gap: 2px; padding-bottom: var(--gst-mobile-toolbar-height); }
  #gm2SystemTool .gst-system-panel { gap: 2px 8px; }
  #gm2SystemTool .gst-system-heading { line-height: 1.4; }
  #gm2SystemTool .gst-system-search input { display: block; }
  #gm2SystemTool .gst-mobile-system { display: flex; align-items: center; gap: 4px; margin: 0; }
  #gm2SystemTool .gst-mobile-system .gst-field-label { flex: 0 0 24px; margin: 0; line-height: 1.2; }
  #gm2SystemTool .gst-mobile-system select { flex: 1; width: auto; min-width: 0; }
  #gm2SystemTool .gst-data { padding-bottom: 8px; scroll-padding-bottom: 8px; }
  #gm2SystemTool .gst-data-heading { align-items: center; margin-bottom: 0; }
  #gm2SystemTool .gst-data-heading > label { display: flex; align-items: center; gap: 4px; flex: 0 1 142px; width: 142px; margin: 0; }
  #gm2SystemTool .gst-data-heading .gst-field-label { flex: 0 0 24px; margin: 0; line-height: 1.2; }
  #gm2SystemTool .gst-data-heading select { flex: 1; width: auto; min-width: 0; }
  #gm2SystemTool .gst-filter-bar { gap: 4px 6px; }
  #gm2SystemTool .gst-filter-bar > label { margin: 0; }
  #gm2SystemTool .gst-filter-bar input { display: block; }
  #gm2SystemTool .gst-filter-bar > label[for=gstStatus] { gap: 6px; }
  #gm2SystemTool .gst-filter-bar > label[for=gstStatus] span { margin: 0; }
  #gm2SystemTool .gst-message { margin: 1px 0; line-height: 1.35; overflow-wrap: anywhere; }
  #gm2SystemTool .gst-range-note { margin: 1px 0; line-height: 1.35; }
  #gm2SystemTool .gst-capability-note { margin-bottom: 0; line-height: 1.35; }
  #gm2SystemTool .gst-empty { padding: 20px 12px; }
  #gm2SystemTool .gst-check-hit { min-height: 44px; min-width: 44px; margin: 0; }
  #gm2SystemTool td.gst-check-cell { width: 44px; }
  #gm2SystemTool td.gst-name-cell { padding-right: 36px; }
  #gm2SystemTool[data-operation-type=REFERENCE] td[data-label=关联内容] { grid-column: 1 / -1; }
}

/* 预览先展示阻断与范围，长成员和影响独立滚动，确认区保持在窗口内。 */
#gm2SystemTool .gst-side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#gm2SystemTool .gst-drawer-heading { flex: 0 0 auto; margin-bottom: 10px; }
#gm2SystemTool #gstSideContent { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#gm2SystemTool #gstSideContent:has(> .gst-preview-body) { display: flex; flex-direction: column; overflow: hidden; }
#gm2SystemTool .gst-preview-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
#gm2SystemTool .gst-preview-body > .gst-notice { margin: 0 0 8px; padding: 10px; }
#gm2SystemTool .gst-preview-target { gap: 4px 12px; margin: 8px 0; }
#gm2SystemTool .gst-preview-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
#gm2SystemTool .gst-preview-counts > div { min-width: 0; padding: 6px 8px; border: 1px solid var(--gst-soft); border-radius: 6px; }
#gm2SystemTool .gst-preview-counts dt { margin: 0; color: var(--gst-muted); font-size: 11px; }
#gm2SystemTool .gst-preview-counts dd { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }
#gm2SystemTool .gst-preview-body .gst-preview-section { margin: 10px 0; padding: 10px; }
#gm2SystemTool .gst-preview-decision { flex: 0 0 auto; padding-top: 8px; border-top: 1px solid var(--gst-line); }
#gm2SystemTool .gst-preview-decision .gst-ack { min-height: 36px; margin: 3px 0; align-items: center; font-size: 12px; }
#gm2SystemTool .gst-preview-decision .gst-side-actions { position: static; margin: 6px 0; padding: 0; }
#gm2SystemTool .gst-preview-decision .gst-note { font-size: 11px; }
@media(max-width:767px) {
  #gm2SystemTool .gst-side { padding: 10px 14px; }
  #gm2SystemTool .gst-preview-decision .gst-ack { min-height: 44px; }
  #gm2SystemTool .gst-preview-counts { gap: 4px; }
  #gm2SystemTool .gst-preview-counts > div { padding: 4px 6px; }
  #gm2SystemTool .gst-preview-decision .gst-note { line-height: 1.35; }
}

/* 手机养成保留五项语义，用紧凑行同时呈现三阶段等级和经验。 */
@media(max-width:767px) {
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record { padding: 10px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record-heading { flex-direction: row; align-items: center; gap: 6px; margin-bottom: 2px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record-heading h4 { font-size: 16px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record-heading > div { display: flex; align-items: center; gap: 6px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-select { min-height: 44px; font-size: 11px; gap: 4px; margin: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record-heading .gst-button { padding: 6px 8px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table tbody tr {
    grid-template-columns: minmax(86px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3px 6px; margin-bottom: 4px; padding: 7px 8px;
  }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-name { grid-column: 1; grid-row: 1 / 3; margin: 0; align-self: center; font-size: 12px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-name .gst-inline-icon { display: block; font-size: 20px; margin: 0 0 3px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label=当前等级] { grid-column: 2; grid-row: 1; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label=当前经验] { grid-column: 3; grid-row: 1; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label=重置后] { grid-column: 2 / 4; grid-row: 2; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label=状态] { grid-column: 1 / -1; grid-row: 3; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td { font-size: 11px; line-height: 1.3; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label]::before { font-size: 10px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table .gst-state-tag { padding: 2px 6px; font-size: 10px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record .gst-notice { margin: 2px 0; padding: 5px; font-size: 11px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record .gst-no-change { margin-top: 2px; padding: 6px; font-size: 12px; }
}

/* 手机三阶段并排比较，保留等级、经验、重置后和状态；绑定标签与控件同行节省首屏。 */
@media(max-width:767px) {
  #gm2SystemTool .gst-target-bar > label { display: flex; align-items: center; gap: 4px; }
  #gm2SystemTool .gst-target-bar > label > .gst-field-label { flex: 0 0 24px; margin: 0; }
  #gm2SystemTool .gst-target-bar > label > :is(input,select) { flex: 1; width: 0; min-width: 0; }
  #gm2SystemTool[data-operation-type=STATE] .gst-state-record { padding: 4px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table tbody { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table tbody tr { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 4px; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-name { align-self: stretch; font-size: 11px; white-space: nowrap; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-name .gst-inline-icon { display: inline-block; font-size: 15px; margin: 0 3px 0 0; vertical-align: middle; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label=当前等级]::before { content: '等级：'; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label=当前经验]::before { content: '经验：'; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td[data-label=状态]::before { content: ''; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table td { font-size: 11px; overflow-wrap: anywhere; }
  #gm2SystemTool[data-operation-type=STATE] .gst-growth-table .gst-state-tag { display: block; padding: 2px 3px; white-space: normal; }
}

/* 桌面库存使用紧凑行，筛选状态标签同行，首屏保留更多可核对的真实物件。 */
@media(min-width:768px) {
  #gm2SystemTool .gst-titlebar { padding: 10px 20px; }
  #gm2SystemTool .gst-titlebar > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
  #gm2SystemTool .gst-titlebar h2 { font-size: 22px; line-height: 1.3; }
  #gm2SystemTool .gst-titlebar p { margin: 0; font-size: 12px; line-height: 1.4; }
  #gm2SystemTool .gst-head { padding: 8px 12px; }
  #gm2SystemTool .gst-target-bar > label { display: flex; align-items: center; gap: 8px; margin: 0; }
  #gm2SystemTool .gst-target-bar > label > .gst-field-label { flex: 0 0 auto; margin: 0; }
  #gm2SystemTool .gst-target-bar > label > :is(input,select) { display: block; flex: 1; width: 0; min-width: 0; }
  #gm2SystemTool .gst-data-heading { margin-bottom: 8px; }
  #gm2SystemTool .gst-data-heading > label { display: flex; align-items: center; gap: 8px; width: 244px; flex: 0 1 244px; margin: 0; }
  #gm2SystemTool .gst-data-heading > label > .gst-field-label { flex: 0 0 auto; margin: 0; }
  #gm2SystemTool .gst-data-heading > label select { flex: 1; width: 0; min-width: 0; }
  #gm2SystemTool .gst-filter-bar > label { margin: 0; }
  #gm2SystemTool .gst-filter-bar input { display: block; }
  #gm2SystemTool .gst-filter-bar > label[for=gstStatus] { display: flex; align-items: center; gap: 6px; }
  #gm2SystemTool .gst-filter-bar > label[for=gstStatus] > .gst-field-label { flex: 0 0 56px; margin: 0; }
  #gm2SystemTool .gst-filter-bar > label[for=gstStatus] select { flex: 1; width: 0; }
  #gm2SystemTool .gst-toolbar { margin-top: 6px; }
  #gm2SystemTool .gst-message { margin: 4px 0 2px; line-height: 1.4; }
  #gm2SystemTool .gst-range-note { margin: 5px 0 2px; line-height: 1.4; }
  #gm2SystemTool .gst-capability-note { margin-bottom: 8px; line-height: 1.4; }
  #gm2SystemTool .gst-table-frame :is(th,td) { padding: 5px 10px; }
  #gm2SystemTool .gst-table-frame .gst-check-cell { padding: 0; }
  #gm2SystemTool .gst-table-frame .gst-check-hit { min-height: 44px; margin: 0; }
  #gm2SystemTool .gst-table-frame .gst-item-image { width: 40px; height: 40px; flex-basis: 40px; }
  #gm2SystemTool .gst-table-frame .gst-item-image img { width: 40px; height: 40px; }
  #gm2SystemTool .gst-table-frame .gst-item { gap: 8px; }
  #gm2SystemTool .gst-table-frame .gst-item strong { font-size: 14px; }
}

/* 同名摘要带实际次数；每个复合地址仍逐条展示，成员分页与危险确认保持原样。 */
#gm2SystemTool .gst-preview-list { list-style: none; padding: 0; }
#gm2SystemTool .gst-impact-group + .gst-impact-group { border-top: 1px solid var(--gst-soft); padding-top: 10px; }
#gm2SystemTool .gst-impact-names { display: block; color: var(--gst-ink); font-size: 13px; font-weight: 600; }
#gm2SystemTool .gst-impact-changes { padding-left: 18px; margin: 6px 0; }
#gm2SystemTool .gst-impact-count { color: var(--gst-gold); white-space: normal; }
#gm2SystemTool .gst-effect-addresses { margin: 8px 0; }
#gm2SystemTool .gst-effect-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; list-style: none; padding: 0; margin: 4px 0 0; }
#gm2SystemTool .gst-effect-keys li { min-width: 0; margin: 0; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
#gm2SystemTool .gst-state-record .gst-no-change { margin-top: 6px; }

/* A2 按钮 span 的 16px/左边距不能挤掉手机中文与箭头，窄屏允许自然折行。 */
@layer public-a2 {
  /* 保留 label 的触摸区域；普通输入框的 44px 高度与内阴影不适用于复选框。 */
  #pageShell #gm2SystemTool input[type=checkbox] {
    width: 18px !important; height: 18px !important;
    min-width: 18px !important; min-height: 18px !important;
    max-width: 18px !important; max-height: 18px !important;
    padding: 0 !important; border: 0 !important; box-shadow: none !important;
    background: transparent !important; color: var(--gst-ink) !important;
    color-scheme: dark !important; accent-color: var(--gst-gold) !important;
    flex: 0 0 18px !important;
  }
  @media(max-width:767px) {
    #pageShell #gm2QuickTools .gm2-quick-tool-content { min-width: 0 !important; width: 100% !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-action { box-sizing: border-box !important; display: flex !important; align-items: center !important; gap: 6px !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; min-height: 44px !important; padding: 8px 6px !important; font-size: 14px !important; white-space: normal !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-action > span { margin-left: 0 !important; font-size: inherit !important; line-height: 1.4 !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-action > .gst-entry-mobile { flex: 1 1 auto !important; min-width: 0 !important; overflow-wrap: anywhere !important; text-align: left !important; }
    #pageShell #gm2QuickTools .gm2-quick-tool-action > span[aria-hidden=true] { flex: 0 0 auto !important; }
  }
}

/* 五版养成记录使用示意图识别系统；真实物品图片仍由接口返回。 */
#gm2SystemTool .gst-state-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
#gm2SystemTool .gst-system-illustration { color: var(--gst-gold); flex-direction: column; display: flex; justify-content: center; gap: 2px; }
#gm2SystemTool .gst-system-illustration .gst-inline-icon { width: 24px; height: 24px; }
#gm2SystemTool .gst-system-illustration small { font-size: 10px; color: var(--gst-muted); }
@media(max-width:767px) {
  #gm2SystemTool .gst-state-record-heading .gst-state-title { flex: 1 1 auto; min-width: 0; }
  #gm2SystemTool .gst-state-title .gst-item-image { width: 36px; height: 40px; flex-basis: 36px; }
  #gm2SystemTool .gst-state-title h4 { overflow-wrap: anywhere; }
}

/* 按本版真实字段编辑养成；预览逐项显示修改前后值。 */
#gm2SystemTool .gst-progression-field { margin: 14px 0; padding: 14px; border: 1px solid var(--gst-line); border-radius: 8px; background: var(--gst-panel); }
#gm2SystemTool .gst-progression-field h4 { margin: 0 0 8px; color: var(--gst-gold); }
#gm2SystemTool .gst-progression-field p { margin: 6px 0; }
#gm2SystemTool .gst-progression-field label { display: grid; gap: 6px; margin: 12px 0; }
#gm2SystemTool .gst-progression-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#gm2SystemTool .gst-progression-preview { table-layout: auto; margin: 12px 0; }
#gm2SystemTool .gst-state-record-heading > div:last-child { flex-wrap: wrap; justify-content: flex-end; }
@media(max-width:767px) {
  #gm2SystemTool .gst-state-record-heading { flex-wrap: wrap; }
  #gm2SystemTool .gst-state-record-heading > div:last-child { width: 100%; justify-content: flex-start; }
  #gm2SystemTool .gst-progression-field { padding: 10px; }
  #gm2SystemTool .gst-progression-actions .gst-button { flex: 1 1 130px; }
}
