:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #20242a;
  background: #f3f4f6;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

body { margin: 0; min-width: 320px; background: #f3f4f6; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.page-header {
  background: #f7f7f8;
  border-bottom: 1px solid #cfd3d8;
}

.header-inner,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

h1, h2, p { margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }

.page-title {
  padding: 7px 12px;
  color: #174f7d;
  background: #edf4fa;
  border-left: 4px solid #2d6f9f;
  line-height: 1.15;
}

nav { display: flex; align-items: center; gap: 12px; color: #59616b; }
nav a { color: #1d5f96; text-decoration: none; }

button,
nav button {
  min-height: 34px;
  padding: 6px 13px;
  color: #26313d;
  background: #f7f7f7;
  border: 1px solid #bfc5cc;
  border-radius: 0;
}

button:hover:not(:disabled) { border-color: #4a7fab; color: #174f7d; }
button:disabled { cursor: default; color: #9299a1; background: #eceeef; }
button.primary { color: #fff; background: #2d6f9f; border-color: #2d6f9f; }

.page-shell { min-width: 0; padding: 20px 0 36px; display: grid; gap: 16px; }
.workspace-panel { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #cfd3d8; }

.section-heading {
  min-height: 66px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #d9dde1;
}

.section-heading.compact { min-height: 58px; }
.section-heading p { margin-top: 4px; color: #747c85; font-size: 12px; }
.pool-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.pool-configuration-policy { padding: 2px 7px; color: #315f82; background: #eaf2f8; border: 1px solid #b9cddd; font-size: 11px; white-space: nowrap; }
.heading-line { display: flex; align-items: center; gap: 9px; }
.template-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pool-metrics { display: flex; align-items: stretch; border: 1px solid #d2d7dc; background: #f7f8f9; }
.pool-metric { min-width: 76px; padding: 5px 10px; display: grid; justify-items: center; gap: 1px; border-left: 1px solid #d9dde1; }
.pool-metric:first-child { border-left: 0; }
.pool-metric span { color: #747d86; font-size: 11px; white-space: nowrap; }
.pool-metric strong { color: #33404c; font-size: 16px; font-weight: 600; line-height: 1.1; }
.pool-metric.remaining strong { color: #2f7d5c; }
.pool-metric.accounts strong { color: #2d6f9f; }
.pool-metric.limited strong { color: #9a4242; }
.add-person-button { color: #174f7d; border-color: #7fa4c1; background: #f3f8fc; }

.person-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: inherit;
  background: transparent;
  border: 0;
}
.person-dialog::backdrop { background: rgba(24, 31, 38, .46); }
.product-preference-dialog { width: min(980px, calc(100% - 32px)); }
.dialog-panel {
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border: 1px solid #aeb5bc;
  box-shadow: 0 10px 28px rgba(20, 31, 41, .18);
}
.dialog-heading { position: sticky; top: 0; z-index: 2; background: #fff; }
.dialog-form-actions { display: flex; align-items: center; gap: 8px; }

.product-heading-status { display: flex; align-items: center; gap: 10px; }
.product-source-badge { padding: 2px 7px; color: #5f6871; background: #edf0f2; border: 1px solid #d5d9dd; font-size: 11px; }
.product-source-badge.custom { color: #174f7d; background: #eaf2f8; border-color: #abc5d8; }
#productPreferenceTotal { color: #2f7d5c; font-size: 16px; font-weight: 600; }
#productPreferenceTotal.invalid { color: #b33a34; }
.product-preference-scroll { max-height: 410px; }
.product-preference-table { min-width: 680px; }
.product-preference-table th,
.product-preference-table td { vertical-align: middle; border: 1px solid #d9dde1; }
.product-preference-table th:nth-child(1),
.product-preference-table td:nth-child(1) { width: 62px; text-align: center; }
.product-preference-table th:nth-child(3) { width: 130px; text-align: center; }
.product-preference-table td:nth-child(3) { text-align: center; white-space: nowrap; }
.product-preference-table .product-select { width: 15px; height: 15px; margin: 0; }
.product-code { color: #174f7d; white-space: nowrap; }
.product-preference-table .product-percentage { display: inline-block; width: 68px; height: 30px; margin-right: 4px; padding: 3px 6px; text-align: center; }
.product-preference-actions { min-height: 54px; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6c7580; border-top: 1px solid #d9dde1; font-size: 12px; }
.product-preference-actions > div { display: flex; gap: 8px; }

#informationForm,
#editInformationForm,
#poolImportForm,
#poolConfigureForm,
#poolEditorForm { padding: 16px; }
label { display: grid; gap: 6px; color: #4c5560; font-size: 13px; }

input, textarea {
  width: 100%;
  color: #20242a;
  background: #fff;
  border: 1px solid #c8cdd3;
  border-radius: 0;
  outline: none;
}

input { height: 36px; padding: 6px 9px; }
textarea { padding: 9px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { border-color: #4d86b3; box-shadow: 0 0 0 1px #4d86b3; }

.people-entry {
  display: block;
  min-height: 126px;
  resize: vertical;
}
.hidden { display: none !important; }
.form-locked { opacity: .7; }

.option-layout { margin-top: 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
.information-option-layout { grid-template-columns: 210px minmax(0, 1fr); }
fieldset { margin: 0; min-width: 0; padding: 12px; border: 1px solid #d3d7dc; }
legend { padding: 0 5px; color: #343b43; font-size: 13px; font-weight: 600; }

.check-option { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: #303740; }
.check-option input, .store-item input { width: 15px; height: 15px; margin: 0; }
.store-list { max-height: 260px; overflow: auto; border: 1px solid #e0e3e6; background: #fff; }
.store-city-group + .store-city-group { border-top: 1px solid #d9dde1; }
.store-city-heading { position: sticky; top: 0; z-index: 1; padding: 6px 10px; color: #315f82; background: #f1f5f8; border-bottom: 1px solid #d9e1e7; font-size: 12px; font-weight: 600; }
.store-city-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.store-item { min-width: 0; padding: 8px 10px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #edf0f2; }
.store-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-item.is-disabled { color: #a4abb2; background: #f8f9fa; cursor: not-allowed; }
.form-footer { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-footer-actions-only { justify-content: flex-end; }
.record-actions { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.selection-summary { color: #68717b; font-size: 12px; white-space: nowrap; }
.single-pool-shell { min-height: calc(100dvh - 64px); }
.pool-heading-actions { min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pool-search-field { width: 190px; min-width: 130px; display: block; }
.pool-search-field input { height: 34px; font-size: 12px; }
.pool-filter-toolbar { display: flex; align-items: stretch; flex-direction: column; gap: 7px; padding: 9px 14px; background: #f8f9fa; border-bottom: 1px solid #d8dde1; }
.pool-filter-band { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 8px; }
.pool-filter-label { color: #66717b; font-size: 11px; font-weight: 500; text-align: center; white-space: nowrap; }
.city-tabs { min-height: 32px; display: flex; align-items: stretch; align-content: flex-start; flex-wrap: wrap; gap: 6px; overflow: visible; }
.city-tab { flex: 0 0 auto; min-width: 78px; min-height: 32px; padding: 4px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #46515b; background: #fff; border: 1px solid #cbd1d6; white-space: nowrap; }
.city-tab-name { font-size: 13px; font-weight: 500; line-height: 1.1; }
.city-tab-count { color: #66717b; font-size: 13px; font-weight: 600; line-height: 1; }
.city-tab.active { color: #174f7d; background: #edf4fa; border-color: #6f9cbc; font-weight: 600; }
.city-tab.active .city-tab-count { color: #174f7d; }
.information-lifecycle-tabs { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.information-lifecycle-tab { min-width: 0; min-height: 32px; padding: 4px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #46515b; background: #fff; border: 1px solid #cbd1d6; border-right: 0; font-size: 11px; }
.information-lifecycle-tab:last-child { border-right: 1px solid #bfc5cc; }
.information-lifecycle-tab strong { color: #66717b; font-size: 12px; font-weight: 600; }
.information-lifecycle-tab.active { color: #174f7d; background: #edf4fa; border-color: #6f9cbc; font-weight: 600; }
.information-lifecycle-tab.active:last-child { border-right-color: #6f9cbc; }
.information-lifecycle-tab.active strong { color: #174f7d; }
.lifecycle-badge { display: inline-block; padding: 2px 7px; font-size: 12px; white-space: nowrap; }
.lifecycle-badge.available { color: #fff; background: #2f7d5c; }
.lifecycle-badge.borrowed { color: #fff; background: #356f9f; }
.lifecycle-badge.frozen { color: #fff; background: #7f8790; }
.pool-status-usage-cell { text-align: center; }
.pool-usage-summary { margin-top: 5px; color: #68727d; font-size: 12px; white-space: nowrap; }
.pool-row-actions { text-align: center; }
.pool-row-actions .text-action { min-height: 26px; padding: 2px 5px; }
.pool-row-actions .danger { color: #9b3434; }
.person-pool-empty { height: 240px; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person-pool-scroll { min-height: 360px; max-height: calc(100dvh - 190px); background: #fff; }
.information-pool-table { min-width: 760px; }
.information-pool-table th,
.information-pool-table td { border: 1px solid #d9dde1; }
.information-pool-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3f5f6;
  text-align: center;
  vertical-align: middle;
}
.information-pool-table td { vertical-align: middle; }
.information-pool-table tbody td { background: transparent !important; }
.information-pool-table th:nth-child(1) { width: 112px; }
.information-pool-table th:nth-child(2) { width: 100px; }
.information-pool-table th:nth-child(3) { width: 105px; }
.information-pool-table th:nth-child(4) { width: auto; }
.information-pool-table th:nth-child(5) { width: 178px; }
.information-pool-table th:nth-child(6) { width: 90px; }
.information-pool-table td:nth-child(1),
.information-pool-table td:nth-child(2),
.information-pool-table td:nth-child(3),
.information-pool-table td:nth-child(5),
.information-pool-table td:nth-child(6) { text-align: center; }
.information-pool-table .person-name-cell { color: #202a33; font-weight: 500; }
.information-pool-table .identity-tail-cell,
.information-pool-table .payment-cell { white-space: nowrap; }
.information-pool-table .stores-cell { padding: 10px 14px; line-height: 1.65; overflow-wrap: anywhere; white-space: normal; }
.information-pool-table tbody tr:nth-child(odd) { background: #fff; }
.information-pool-table tbody tr:nth-child(even) { background: #fafbfc; }
.information-pool-table tbody tr,
.information-pool-table tbody tr td {
  -webkit-tap-highlight-color: transparent;
}
.pool-store-names { white-space: normal; }
.pool-select-cell { vertical-align: middle; }
.pool-select-cell input { width: 15px; height: 15px; margin: 0; }
.pool-selectable-row { cursor: pointer; }
.pool-selectable-row:hover td { background: #f2f7fb; }
.pool-in-template { color: #267047; }
.pool-empty { height: 120px; }
.compact-dialog { width: min(860px, calc(100% - 32px)); }
.pool-option-layout { grid-template-columns: 190px minmax(0, 1fr); }
.template-table-scroll { max-height: 520px; }
.template-table { min-width: 760px; }
.template-table th,
.template-table td { border: 1px solid #d9dde1; }
.template-table th { background: #f3f5f6; }
.template-table td { height: 44px; vertical-align: middle; }
.template-table th:nth-child(1) { width: 190px; }
.template-table th:nth-child(2) { width: 85px; }
.template-table th:nth-child(3) { width: 170px; }
.template-table th:nth-child(4) { width: 130px; }
.template-table th:nth-child(5) { width: auto; }
.template-table th:nth-child(6) { width: 120px; }
.account-count-cell { color: #174f7d; font-size: 15px; font-weight: 600; }
.template-slot-row.empty-slot td { height: 42px; color: #a5abb1; background: #fbfcfc; }
.template-slot-row.empty-slot .account-count-cell { color: #a9afb5; font-size: 13px; font-weight: 400; }
.template-slot-row.assigned-slot:hover td { background: #f2f7fb; }
.quota-badge { display: inline-block; padding: 1px 6px; color: #fff; background: #7d8791; font-size: 12px; }
.quota-badge.available { background: #358366; }
.quota-badge.exhausted { background: #a23a3a; }
.usage-badge.unused { color: #4f5963; background: #d9dde1; }
.usage-badge.used { background: #358366; }

.request-page-shell { display: grid; gap: 14px; }
.request-option-layout { grid-template-columns: 210px minmax(0, 1fr); }
.request-history-scroll { min-height: 280px; max-height: calc(100dvh - 410px); }
.request-history-table { min-width: 900px; }
.request-history-table th,
.request-history-table td { border: 1px solid #d9dde1; vertical-align: middle; }
.request-history-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  background: #f3f5f6;
}
.request-history-table th:nth-child(1) { width: 150px; }
.request-history-table th:nth-child(2) { width: 230px; }
.request-history-table th:nth-child(3) { width: 300px; }
.request-history-table th:nth-child(4) { width: 85px; }
.request-history-table th:nth-child(5) { width: 100px; }
.request-history-table th:nth-child(6) { width: 100px; }
.request-history-table td:nth-child(1),
.request-history-table td:nth-child(4),
.request-history-table td:nth-child(5),
.request-history-table td:nth-child(6) { text-align: center; }
.request-history-people { white-space: normal; }
.request-history-meta { color: #6f7882; }

.table-scroll { width: 100%; max-width: 100%; overflow: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
th { height: 38px; padding: 6px 9px; color: #68717b; background: #f5f6f7; font-size: 12px; font-weight: 400; text-align: left; border-bottom: 1px solid #d8dce0; }
td { padding: 10px 9px; color: #333a43; font-size: 13px; line-height: 1.55; vertical-align: top; border-bottom: 1px solid #e0e3e6; }
tbody tr:hover { background: #f2f7fb; }
th:nth-child(1) { width: 190px; }
th:nth-child(2) { width: 330px; }
th:nth-child(3) { width: 120px; }
th:nth-child(4) { width: 110px; }
.select-column { text-align: center; }
.select-column input { width: 14px; height: 14px; }
.line-secondary { color: #737c86; }
.status { display: inline-block; padding: 2px 7px; color: #fff; background: #7d8791; font-size: 12px; }
.status.pending { color: #5e4300; background: #f2cf72; }
.status.draft { color: #174f7d; background: #dceaf5; }
.status.submitted, .status.pending { color: #5e4300; background: #f2cf72; }
.status.returned { color: #8b3f20; background: #f3d3c3; }
.status.completed, .status.approved { background: #358366; }
.status.rejected, .status.cancelled, .status.voided { background: #9299a1; }
.row-actions { white-space: nowrap; }
.row-actions button { min-height: 28px; padding: 3px 8px; color: #1e6398; background: transparent; border-color: transparent; }
.empty { height: 220px; text-align: center; vertical-align: middle; color: #8a929b; }
.template-empty { height: 116px; }
.history-empty { height: 140px; }
.compact-empty { height: 74px; display: grid; place-items: center; }
.legacy-panel summary { padding: 13px 16px; cursor: pointer; color: #59616b; font-size: 13px; }

.message { position: fixed; right: 18px; bottom: 18px; z-index: 20; max-width: min(420px, calc(100% - 36px)); padding: 10px 14px; color: #fff; background: #2f4354; border: 1px solid #20313f; }
.message.error { background: #9a3131; border-color: #742323; }

@media (max-width: 760px) {
  .header-inner, .page-shell { width: calc(100% - 16px); }
  .header-inner { min-height: 58px; }
  h1 { font-size: 19px; }
  nav { gap: 8px; font-size: 12px; }
  nav button { padding-inline: 9px; }
  .page-shell { padding-top: 10px; gap: 10px; }
  .section-heading { align-items: flex-start; padding: 12px; }
  .section-heading p { max-width: 220px; }
  #informationForm, #editInformationForm { padding: 12px; }
  #poolImportForm, #poolConfigureForm, #poolEditorForm { padding: 12px; }
  .option-layout { grid-template-columns: 1fr; }
  .request-history-scroll { min-height: 260px; max-height: none; }
  .request-history-table { min-width: 820px; }
  .store-list { max-height: 280px; }
  .store-city-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-footer { align-items: flex-end; }
  .records-panel .section-heading { align-items: center; }
  .template-panel .section-heading { align-items: center; }
  .template-actions button { padding-inline: 9px; font-size: 12px; }
  .person-pool-panel .section-heading { min-height: 54px; padding: 10px; align-items: center; flex-wrap: wrap; }
  .pool-heading-actions { width: 100%; display: grid; grid-template-columns: minmax(116px, 1fr) repeat(3, auto); gap: 4px; }
  .pool-search-field { width: auto; min-width: 0; }
  .pool-search-field input { height: 32px; font-size: 16px; }
  .pool-heading-actions button { min-height: 32px; padding-inline: 7px; font-size: 11px; }
  .pool-filter-toolbar { gap: 7px; padding: 7px; }
  .pool-filter-band { gap: 5px; }
  .pool-filter-label { display: flex; align-items: center; justify-content: center; font-size: 10px; }
  .city-tabs { min-height: 0; gap: 5px; }
  .city-tab { min-width: 74px; min-height: 32px; padding: 4px 9px; gap: 6px; }
  .city-tab-name { font-size: 12px; }
  .city-tab-count { font-size: 13px; }
  .information-lifecycle-tabs { width: 100%; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .information-lifecycle-tab { min-height: 32px; padding-inline: 4px; font-size: 11px; }
  .information-lifecycle-tab strong { font-size: 12px; }
  .person-pool-panel .template-actions { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .pool-metrics { flex: 1; min-width: 0; }
  .pool-metric { min-width: 0; flex: 1; padding-inline: 4px; }
  .pool-metric span { font-size: 10px; }
  .pool-metric strong { font-size: 15px; }
  .person-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .dialog-panel { max-height: calc(100dvh - 16px); }
  .dialog-heading { align-items: center; }
  .dialog-heading p { max-width: 250px; }
  .editor-fields { grid-template-columns: 1fr; }
  table { min-width: 680px; }
  .person-pool-scroll { min-height: calc(100dvh - 174px); max-height: none; overflow: visible; background: #fff; }
  .information-pool-table { display: block; width: 100%; min-width: 0; }
  .information-pool-table thead { display: none; }
  .information-pool-table tbody { display: grid; gap: 0; padding: 0; }
  .information-pool-table tbody tr {
    display: grid;
    grid-template-columns: minmax(58px, .75fr) minmax(52px, .65fr) minmax(48px, .65fr) minmax(104px, 1.2fr);
    grid-template-areas:
      "person identity payment status"
      "stores stores stores actions";
    align-items: center;
    column-gap: 7px;
    row-gap: 5px;
    min-width: 0;
    padding: 8px 10px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #d7dce0;
  }
  .information-pool-table td { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left !important; }
  .information-pool-table .person-name-cell { grid-area: person; color: #202a33; font-size: 12px; font-weight: 600; }
  .information-pool-table .identity-tail-cell { grid-area: identity; color: #65717c; font-size: 11px; text-align: center !important; }
  .information-pool-table .payment-cell { grid-area: payment; color: #33414e; font-size: 11px; text-align: center !important; white-space: normal; }
  .information-pool-table .stores-cell {
    grid-area: stores;
    width: 100%;
    padding: 1px 0 0;
    justify-self: stretch;
    color: #5d6873;
    font-size: 11px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 0;
  }
  .information-pool-table .stores-cell::before { content: "店铺 "; color: #89919a; }
  .information-pool-table .pool-status-usage-cell { grid-area: status; justify-self: end; text-align: right !important; }
  .information-pool-table .lifecycle-badge { padding: 2px 6px; font-size: 11px; }
  .information-pool-table .pool-usage-summary { margin-top: 3px; font-size: 10px; }
  .information-pool-table .pool-row-actions { grid-area: actions; width: 100%; padding: 0; justify-self: stretch; align-self: end; display: flex; justify-content: flex-end; gap: 4px; border: 0; white-space: nowrap; }
  .information-pool-table .pool-row-actions .text-action { min-height: 25px; padding: 1px 7px; font-size: 11px; }
  .information-pool-table .pool-empty-row { display: block; padding: 0; }
  .information-pool-table .pool-empty-row td { display: grid; width: 100%; height: 240px; place-items: center; }
  th, td { padding-left: 7px; padding-right: 7px; }
  .product-preference-dialog .dialog-panel {
    height: min(680px, calc(100dvh - 16px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .product-preference-dialog .dialog-heading { flex: 0 0 auto; flex-wrap: wrap; }
  .product-preference-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f3f4f6;
  }
  .product-preference-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }
  .product-preference-table thead { display: none; }
  .product-preference-table tbody { display: grid; gap: 6px; padding: 6px; }
  .product-preference-table .product-preference-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-areas: "select name percentage";
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #d4d9de;
  }
  .product-preference-table .product-preference-row > td {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .product-preference-table .product-select-cell {
    grid-area: select;
    display: grid;
    place-items: center;
  }
  .product-preference-table .product-percentage-cell {
    grid-area: percentage;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: #59636d;
    font-size: 12px;
    white-space: nowrap;
  }
  .product-preference-table .product-percentage-cell::before {
    content: "比例";
    color: #8a929a;
    font-size: 10px;
  }
  .product-preference-table .product-percentage {
    width: 54px;
    height: 30px;
    margin-right: 0;
    padding-inline: 4px;
  }
  .product-preference-table .product-preference-row > .product-name-cell {
    grid-area: name;
    overflow-wrap: anywhere;
    color: #303942;
    line-height: 1.45;
    white-space: normal;
  }
  .product-preference-actions { display: block; }
  .product-preference-actions > span { display: none; }
  .product-preference-actions > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .product-preference-actions button { min-width: 0; padding-inline: 6px; font-size: 12px; white-space: nowrap; }
}

@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  nav #currentUser { display: none; }
  .section-heading { gap: 8px; }
  .page-title { padding: 6px 9px; border-left-width: 3px; }
  .store-city-items { grid-template-columns: 1fr; }
  .form-footer { display: grid; grid-template-columns: 1fr; }
  .form-footer-actions-only { display: flex; justify-content: flex-end; }
  .dialog-form-actions { justify-content: flex-end; }
  .record-actions button { padding-inline: 8px; font-size: 12px; }
  .information-pool-table tbody tr {
    grid-template-columns: minmax(52px, .72fr) minmax(46px, .62fr) minmax(44px, .58fr) minmax(96px, 1.18fr);
    column-gap: 5px;
    padding: 8px;
  }
}
