:root { color-scheme: light; font-family: Inter, "Segoe UI", "Microsoft JhengHei", sans-serif; color: #202326; background: #f5f6f7; }
.inventory-adjustment-fields { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(240px, 1fr); gap: 14px; }
.inventory-adjustment-fields > label { min-width: 0; }
.inventory-current { display: grid; gap: 6px; padding: 20px; margin-bottom: 16px; border: 1px solid #cce4db; border-radius: 12px; background: #f0f8f4; }
.inventory-current strong { font-size: 34px; line-height: 1.2; color: #195945; }
.inventory-current small { color: #526961; }
.inventory-current small:empty { display: none; }
.inventory-history { min-width: 0; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e1e5e3; }
.inventory-history .table-wrap { max-width: 100%; max-height: 320px; overflow: auto; scrollbar-gutter: stable; }
.inventory-history thead th { position: sticky; top: 0; z-index: 1; background: #f5f7f6; }
.inventory-history-scroll:focus-visible { outline: 2px solid #195945; outline-offset: 2px; }
.inventory-history td { white-space: normal; overflow-wrap: anywhere; }
.inventory-history td:first-child { min-width: 100px; }
.inventory-history td:nth-child(5) { min-width: 150px; }
.inventory-history td:last-child { min-width: 155px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inventory-increase { color: #15734b; }
.inventory-decrease { color: #b72b35; }
@media (max-width: 680px) { .inventory-adjustment-fields { grid-template-columns: minmax(0, 1fr); gap: 0; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: #f5f6f7; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f2f3f4; }
.login-panel { width: min(420px, 100%); padding: 42px; background: #fff; border: 1px solid #dedfe2; border-radius: 8px; box-shadow: 0 18px 50px rgba(25, 30, 35, .09); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; background: #e61c1d; color: #fff; font-weight: 800; border-radius: 6px; }
.brand-mark.small { width: 34px; height: 34px; font-size: 12px; }
.eyebrow { margin: 18px 0 6px; color: #73777c; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 28px; letter-spacing: 0; }
h2 { margin-bottom: 6px; font-size: 19px; }
h3 { margin-bottom: 18px; font-size: 17px; }
.muted, .section-heading p { color: #6d7278; font-size: 13px; line-height: 1.6; }
label { display: grid; gap: 7px; margin-bottom: 15px; color: #3c4146; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #cfd2d5; border-radius: 5px; background: #fff; padding: 10px 11px; color: #202326; outline: none; }
textarea { resize: vertical; }
#content-form [name="shortDescription"] { min-height: 156px; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: #e61c1d; box-shadow: 0 0 0 3px rgba(230, 28, 29, .08); }
.primary, .secondary, .text-button, .icon-button { border: 0; border-radius: 5px; min-height: 38px; padding: 9px 16px; font-weight: 700; }
.primary { background: #e61c1d; color: #fff; }
.primary:hover { background: #c91415; }
.primary.danger { background: #222629; }
.secondary { background: #eef0f2; color: #25292c; }
.text-button { background: transparent; color: #696e73; }
.wide { width: 100%; }
.setup-link { display: block; margin: 0 0 15px; text-align: center; text-decoration: none; }
.form-error { min-height: 20px; color: #ba1516; font-size: 13px; }
.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; display: flex; flex-direction: column; padding: 22px 14px; background: #202326; color: #fff; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { border: 0; border-radius: 5px; padding: 11px 13px; text-align: left; background: transparent; color: #bcc0c4; }
.nav-item:hover, .nav-item.active { background: #34383c; color: #fff; }
.logout { margin-top: auto; }
.workspace { margin-left: 220px; padding: 28px 34px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.topbar .eyebrow { margin-top: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.identity-label { max-width: 300px; overflow: hidden; color: #5d6267; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { font-size: 12px; color: #247343; }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2e9b59; }
.icon-button { width: 38px; padding: 0; background: #fff; border: 1px solid #d9dcde; font-size: 20px; }
.view { display: none; }
.active-view { display: block; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric { min-height: 112px; padding: 18px; border-left: 3px solid #e61c1d; background: #fff; }
.metric strong { display: block; margin-top: 16px; font-size: 29px; }
.metric span { color: #777c81; font-size: 12px; }
.section-block, .editor-panel, .product-workspace { background: #fff; border: 1px solid #e0e2e4; border-radius: 7px; }
.section-block { margin-bottom: 20px; }
.section-heading, .workspace-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px; }
.section-heading p { margin-bottom: 0; }
.section-heading.compact { padding: 0 0 18px; }
#return-setting-status { margin: 0; padding: 0 20px 16px; }
#view-return-settings .governance-grid { padding: 0 20px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#view-content-list .content-list-controls { margin: 0; padding: 0 20px 20px; align-items: flex-end; }
#view-content-list .content-list-controls > span { flex: 1 1 100%; font-size: 13px; overflow-wrap: anywhere; }
#view-content-list .content-list-controls > label { min-width: 0; }
#view-content-list .content-list-controls input { max-width: 100%; }
#view-content-list .content-paging { padding: 0 20px; }
#view-content-list th, #view-content-list td { padding-left: 20px; }
.member-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 0 20px 20px; }
.member-filter label { margin: 0; min-width: 0; }
.member-keyword-field { flex: 1 1 260px; }
.member-gender-field { flex: 0 1 120px; }
.member-age-range { padding: 0; margin: 0; border: 0; flex: 0 1 240px; min-width: 0; }
.member-age-range legend { margin-bottom: 7px; padding: 0; font-size: 13px; font-weight: 600; color: #3c4146; }
.member-age-range > div { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; align-items: center; }
.member-age-range span { font-size: 13px; color: #6d7278; }
.member-filter input, .member-filter select, .member-filter button { height: 42px; }
.member-filter-actions { display: flex; gap: 10px; }
#member-search-result { flex: 1 1 100%; margin: 0; }
@media(max-width:720px) {
  #view-return-settings .governance-grid { grid-template-columns: minmax(0, 1fr); }
  .member-keyword-field, .member-age-range { flex-basis: 100%; }
  #view-content-list #banner-bulk-label { width: 100%; }
}
.compact-field { min-width: 180px; margin: 0; }
.order-search-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding: 0 20px 20px; }
.order-search-form label { margin: 0; min-width: 0; }
.order-search-field { flex: 1 1 290px; }
.order-status-field { flex: 0 1 160px; }
.order-search-actions { display: flex; gap: 10px; }
.order-search-form input, .order-search-form select, .order-search-actions button { height: 42px; }
.order-search-form #order-search-result { flex: 1 1 100%; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 18px; border-top: 1px solid #eceeef; text-align: left; font-size: 13px; white-space: nowrap; }
th { color: #74797e; font-size: 11px; text-transform: uppercase; }
.table-action { border: 0; background: transparent; color: #cc1718; font-weight: 700; }
.empty-row { padding: 28px; color: #7c8085; text-align: center; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.editor-panel { padding: 20px; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.two > label { min-width: 0; }
.product-create { margin: 20px 0; }
.button-row { display: flex; justify-content: space-between; gap: 12px; }
.sku-draft-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 14px; margin-bottom: 14px; background: #f7f8f9; border-radius: 8px; }
.sku-draft-row > label { min-width: 0; }
.sku-image-field { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid #e2e6e3; min-width: 0; }
.sku-image-preview { flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid #dde3df; border-radius: 6px; overflow: hidden; font-size: 11px; color: #778078; }
.sku-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.sku-image-preview img[hidden], .sku-image-preview span[hidden] { display: none; }
.sku-image-controls { display: grid; gap: 6px; min-width: 0; }
.sku-image-controls strong { font-size: 13px; }
.sku-image-controls small { line-height: 1.6; overflow-wrap: anywhere; }
.sku-image-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.sku-image-buttons button { padding: 7px 12px; }
.sku-draft-row label { margin: 0; }
.product-workspace { margin-top: 20px; padding-bottom: 22px; }
.workspace-title { border-bottom: 1px solid #eceeef; }
.workspace-title .eyebrow { margin-top: 0; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 4px; background: #f0f1f2; color: #4e5357; font-size: 11px; font-weight: 800; }
.workflow-status { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid #eceeef; }
.workflow-status div { padding: 13px 18px; border-right: 1px solid #eceeef; font-size: 12px; }
.workflow-status div:last-child { border: 0; }
.workflow-status strong { display: block; margin-top: 4px; }
.workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px; }
.workflow-grid .editor-panel { border-color: #dfe1e3; box-shadow: none; }
.step-label { margin-bottom: 7px; color: #e61c1d; font-size: 11px; font-weight: 800; }
.version-list { display: grid; gap: 6px; margin-top: 16px; }
.version-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; background: #f6f7f8; font-size: 12px; }
.sku-region-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eceeef; }
.sku-region-row input { width: auto; }
.sku-region-list { display: grid; gap: 16px; margin: 18px 0 22px; }
.sku-price-row { min-width: 0; padding: 18px; border: 1px solid #dfe2e5; border-radius: 7px; background: #fafbfc; }
.sku-price-heading { display: grid; gap: 6px; overflow-wrap: anywhere; }
.sku-price-heading span { color: #656c72; font-size: 13px; }
.sku-price-row .sku-region-row { display: flex; margin: 12px 0; border: 0; }
.sku-price-row > label:last-child { margin-bottom: 0; }
#region-configs .version-item { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
.editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.editor-tabs [aria-current="page"] { background: #26383d; color: white; }
.product-workspace .workflow-grid { display: block; max-width: 1100px; }
.sku-draft-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; margin: 16px 0; background: #f6f7f8; border: 1px solid #e4e6e8; border-radius: 6px; }
.sku-draft-row label { min-width: 0; }
.product-create { margin-top: 20px; }
.advanced-options { margin-bottom: 20px; padding: 12px; background: #f5f6f7; border-radius: 6px; }
.advanced-options summary { cursor: pointer; font-size: 13px; margin-bottom: 10px; }
.media-editor-tabs { display: flex; gap: 10px; margin: 20px 0 12px; }
.media-editor-tabs [aria-pressed="true"] { background: #26383d; color: #fff; }
.media-editor-shell { border: 1px solid #cfd5da; border-radius: 5px; overflow: hidden; margin-bottom: 14px; }
.media-editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 9px; background: #f5f6f8; border-bottom: 1px solid #d8dce0; }
.media-editor-toolbar button { min-height: 34px; min-width: 32px; padding: 5px 9px; background: #fff; border: 1px solid #d8dce0; border-radius: 3px; color: #30363a; font-size: 13px; }
.media-editor-toolbar #upload-image-button { color: #b8191a; }
.media-editor { min-height: 360px; max-height: 700px; overflow: auto; padding: 24px; outline: none; background: #fff; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.media-editor:empty::before { content: attr(data-placeholder); color: #939ba2; pointer-events: none; }
.media-editor p { min-height: 1.8em; margin: 0 0 12px; white-space: pre-wrap; }
.media-editor figure { margin: 0 0 18px; padding: 5px; border: 2px solid transparent; cursor: pointer; }
.media-editor figure.editor-selected { border-color: #e61c1d; }
.media-editor img, .media-editor video { display: block; max-width: 100%; max-height: 480px; height: auto; margin: 0 auto; }
.media-editor[aria-readonly="true"] { background: #f8f9fa; }
@media(max-width:720px) { .media-editor { padding: 14px; } }
.publication-region-status { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.publication-region-status > div { padding: 14px; background: #f5f6f7; border-radius: 6px; display: grid; gap: 7px; }
.publication-region-status small { overflow-wrap: anywhere; }
.publication-checklist { padding: 16px; border: 1px solid #dfe2e5; margin: 16px 0; border-radius: 6px; }
.publication-checklist p:last-child { margin-bottom: 0; }
.publication-problem { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
@media(max-width:720px) { .media-image-grid, .publication-region-status { grid-template-columns: 1fr; } .publication-problem { align-items: flex-start; flex-direction: column; } }
.notice { position: sticky; top: 12px; z-index: 10; padding: 12px 15px; border-radius: 5px; background: #e9f5ed; color: #23613a; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.notice.error { background: #fceaea; color: #a91617; }
.shipment-form { max-width: 840px; margin-top: 20px; }
.fulfillment-actions { display: flex; gap: 8px; }
.fulfillment-actions { flex-wrap: wrap; }
.order-detail { max-width: 1100px; margin-top: 0; overflow-wrap: anywhere; }
.order-detail dl { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 10px 16px; }
.order-detail dt { color: #6a7075; }
.order-detail dd { margin: 0; white-space: pre-line; }
.order-detail .table-wrap { margin: 16px 0; }
.order-detail .carrier-warning { color: #a91617; }
.order-detail .carrier-progress { color: #74540f; }
#view-returns > .section-block > #return-status,
#view-returns > .section-block > #return-filter { margin-left: 20px; margin-right: 20px; }
#view-returns > .section-block > #return-filter { margin-bottom: 18px; align-items: flex-end; }
#view-finance-operations > .section-block > #refund-filter {
  margin-left: 20px; margin-right: 20px; margin-bottom: 18px; align-items: flex-end;
}
#view-returns #return-filter label { margin-bottom: 0; }
#view-returns #return-filter input[name="q"],
#view-finance-operations #refund-filter input[name="q"] { width: 260px; }
#view-returns #return-filter select,
#view-returns #return-filter button { height: 42px; min-height: 42px; box-sizing: border-box; }
.return-row { cursor: pointer; }
.return-row:hover td { background: #fafbfa; }
.return-row .table-action { cursor: pointer; }
body.modal-open { overflow: hidden; }
.return-detail-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; background: rgba(20, 24, 22, .45); }
.return-detail-card { width: min(100%, 980px); margin: auto; padding: 24px; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.return-detail-card .section-heading { padding: 0 0 18px; }
.return-detail-card dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; margin: 0 0 20px; }
.return-detail-card dt { color: #6a7075; }
.return-detail-card dd { margin: 0; overflow-wrap: anywhere; }
.return-evidence-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.return-evidence-grid a { display: block; width: 96px; height: 96px; border: 1px solid #dfe2e5; border-radius: 6px; overflow: hidden; background: #f5f7f6; }
.return-evidence-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.refund-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 120px; }
.refund-actions .table-action:disabled { color: #6d7278; cursor: not-allowed; }
.refund-execution-hint { margin: 0 20px 20px; padding: 12px; border-radius: 5px; background: #fff4d9; }
.tracking-copy { display: grid; gap: 4px; }
.tracking-copy small { color: #777c81; }
.admin-editor { max-width: 840px; margin-top: 20px; }
.security-panel { max-width: 560px; }
fieldset { margin: 0 0 18px; padding: 14px; border: 1px solid #dfe1e3; border-radius: 5px; }
legend { padding: 0 6px; color: #3c4146; font-size: 13px; font-weight: 700; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin: 0; padding: 10px; background: #f6f7f8; }
.role-option input { width: auto; margin-top: 3px; }
.role-option span { display: grid; gap: 4px; }
.role-option small { color: #777c81; font-weight: 400; line-height: 1.4; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.governance-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 20px; align-items: start; }
.checkbox-line { display: flex; grid-template-columns: none; align-items: center; gap: 10px; padding: 10px 0; }
.checkbox-line input { width: auto; }
@media (max-width: 1050px) { .metrics { grid-template-columns: 1fr 1fr; } .split-layout, .workflow-grid { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .governance-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sidebar { position: static; width: 100%; min-height: auto; } .sidebar nav { grid-template-columns: repeat(2, 1fr); } .logout { margin-top: 12px; } .workspace { margin-left: 0; padding: 20px 14px 40px; } .topbar, .section-heading { align-items: flex-start; } .topbar-actions { flex-wrap: wrap; justify-content: flex-end; } .identity-label { max-width: 180px; } .metrics, .form-grid.two, .workflow-status, .role-grid { grid-template-columns: 1fr; } .sku-draft-row { grid-template-columns: 1fr; } }
.member-avatar { width: 48px; height: 48px; border-radius: 50%; background: #eef1ee; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: #66726b; font-size: 11px; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.analytics-trend { margin-bottom: 22px; padding: 22px; }
.analytics-day { display: grid; grid-template-columns: 56px minmax(60px, 1fr) 156px; align-items: center; gap: 16px; margin: 16px 0; font-size: 14px; }
.analytics-track { height: 12px; border-radius: 8px; background: #edf0f4; overflow: hidden; }
.analytics-track span { display: block; height: 100%; background: #ee202b; border-radius: inherit; }
#view-dashboard .metric strong { color: #ee202b; }
#view-dashboard .metric { border: 1px solid #dfe3e8; border-radius: 12px; padding: 22px; }
.analytics-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.analytics-record-panel { padding: 20px; }
.analytics-record-panel .section-heading { padding: 0 0 20px; }
.analytics-filter label { display: grid; gap: 6px; margin: 0; }
.analytics-filter input, .analytics-filter select { width: 170px; }
.analytics-filter-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.analytics-filter input, .analytics-filter select, .analytics-filter button { height: 42px; white-space: nowrap; }
.analytics-filter button:not(.primary), #analytics-more { min-height: 38px; padding: 8px 14px; border: 1px solid #d9dcde; border-radius: 6px; background: white; cursor: pointer; }
.analytics-records { max-height: 480px; overflow: auto; margin: 16px 0; }
.analytics-records td { overflow-wrap: anywhere; }
.analytics-source-heading { margin: 20px 0 8px; }
.content-list-controls, .content-paging, .content-cover-row, .content-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 20px 0; }
.content-list-controls label { margin: 0; }
.content-paging { justify-content: center; }
.content-form { max-width: 1080px; padding: 24px; border: 1px solid #e0e4e6; border-radius: 12px; background: white; }
.content-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.content-form .form-grid > label { min-width: 0; }
.content-cover-row img { max-height: 180px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.content-thumb { width: 100px; height: 54px; object-fit: cover; border-radius: 6px; }
#news-body-editor { min-height: 320px; }
.content-editor-actions { position: sticky; bottom: 0; background: white; padding: 14px 0; border-top: 1px solid #e4e7e9; }
#content-rows td { overflow-wrap: anywhere; }
.analytics-source-row { display: grid; grid-template-columns: minmax(130px, 1fr) 90px 70px; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.analytics-source-row span:not(:first-child) { text-align: right; }
@media (max-width: 720px) { .analytics-day { grid-template-columns: 42px minmax(30px, 1fr) 136px; gap: 8px; font-size: 12px; } .analytics-filter label { flex: 1 1 140px; min-width: 0; } .analytics-filter input, .analytics-filter select { width: 100%; min-width: 0; } .analytics-source-row { grid-template-columns: minmax(0, 1fr) 64px 48px; gap: 8px; } }
/* Audit snapshots remain readable without expanding the page width. */
.operation-log-table { max-height: 68vh; overflow: auto; }
.operation-log-table td { vertical-align: top; }
.operation-log-table table { table-layout: fixed; width: 100%; }
.operation-log-table td, .operation-log-table th { white-space: normal; overflow-wrap: anywhere; }
.operation-log-table th:nth-child(1) { width: 16%; }
.operation-log-table th:nth-child(2) { width: 24%; }
.operation-log-table th:nth-child(3) { width: 17%; }
.operation-log-table th:nth-child(4) { width: 21%; }
.operation-log-table th:nth-child(5) { width: 9%; }
#operation-log-detail { width: min(1100px, 90vw); border: 0; border-radius: 12px; padding: 24px; max-height: 85vh; }
#operation-log-detail::backdrop { background: #0007; }
.operation-log-snapshots { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.operation-log-snapshots pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; font-size: 12px; padding: 16px; background: #f4f6f8; }
@media(max-width:700px) { .operation-log-snapshots { grid-template-columns: minmax(0,1fr); } }
.operation-log-paging { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
#member-detail-dialog { width: min(780px, 92vw); max-height: 88vh; border: 0; border-radius: 12px; padding: 0; }
#member-detail-dialog[open] { display: flex; flex-direction: column; }
#member-detail-dialog::backdrop { background: #0007; }
.member-detail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
.member-detail-toolbar h2 { margin: 0; font-size: 20px; }
#member-detail-body { overflow: auto; padding: 24px; overflow-wrap: anywhere; min-height: 0; }
.member-detail-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.member-detail-fields { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; }
.member-detail-fields dt { color: #6a7075; }
.member-detail-fields dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.member-address-card { padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; margin-top: 12px; }
.member-address-card h4 { margin: 0 0 12px; }
@media(max-width:500px) { .member-detail-toolbar, #member-detail-body { padding: 16px; } .member-detail-fields { grid-template-columns: 90px minmax(0,1fr); gap: 10px; } }
#compensation-dialog { width: min(480px, 92vw); border: 0; border-radius: 12px; padding: 24px; }
#compensation-dialog::backdrop { background: #0007; }
#compensation-dialog label { display: grid; gap: 7px; margin: 16px 0 0; }
#compensation-dialog .section-heading { padding: 0; margin-bottom: 0; }
#compensation-dialog textarea { min-height: 96px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.promotion-link-form { display: grid; grid-template-columns: minmax(220px, 2fr) 140px minmax(180px, 1.4fr) auto; gap: 14px; align-items: end; margin: 18px 0 10px; }
.promotion-link-form label { display: grid; gap: 6px; margin: 0; min-width: 0; }
.promotion-link-form input, .promotion-link-form select, .promotion-link-form button { height: 42px; box-sizing: border-box; }
.promotion-link-form button { white-space: nowrap; }
#promotion-result { margin-top: 18px; }
#promotion-result table { table-layout: fixed; width: 100%; }
#promotion-result th:nth-child(1) { width: 100px; }
#promotion-result th:nth-child(2) { width: 90px; }
#promotion-result th:nth-child(4) { width: 120px; }
.promotion-link-cell code { display: block; white-space: normal; overflow-wrap: anywhere; font-size: 12px; color: #3d454b; }
.promotion-link-actions { white-space: nowrap; }
.promotion-link-actions .table-action { margin-left: 10px; }
@media (max-width: 900px) {
  .promotion-link-form { grid-template-columns: minmax(0, 1fr) 140px; }
  .promotion-link-form label:nth-child(3) { grid-column: 1; }
  .promotion-link-form button { grid-column: 2; padding-left: 8px; padding-right: 8px; font-size: 13px; }
}
@media (max-width: 560px) {
  .promotion-link-form { grid-template-columns: minmax(0, 1fr); }
  .promotion-link-form label:nth-child(3), .promotion-link-form button { grid-column: auto; }
}
