.et-page { max-width: 1320px; margin: 0 auto; padding: 4px 0 28px; color: var(--site-ink); }
.et-page [hidden] { display: none !important; }
.et-breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--site-muted); margin-bottom: 24px; }
.et-eyebrow { font-size: 10px; letter-spacing: .18em; font-weight: 600; color: var(--site-warm); }
.et-tool-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.et-page h1 { font-size: 30px; margin: 9px 0 12px; }
.et-tool-header p { margin: 0; font-size: 13px; color: var(--site-muted); line-height: 1.8; }
.et-badge { display: inline-block; font-size: 11px; font-weight: 500; color: var(--site-primary); background: var(--site-soft-blue); border: 1px solid #d9e3eb; padding: 5px 10px; border-radius: 5px; white-space: nowrap; }
@font-face { font-family: 'Research Serif'; src: url('../fonts/research-serif/directory-serif.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
.empirical-tools-index .site-main { max-width: 1316px !important; padding: 4px 18px 48px !important; min-height: calc(100vh - 235px); }
.et-hub { --directory-ink: var(--site-ink); --directory-muted: var(--site-muted); --directory-serif: 'Research Serif', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', SimSun, serif; max-width: none; padding: 0; font-family: var(--directory-serif); }
.et-hub .et-directory-header h1, .et-hub .et-directory-card h3 { color: var(--directory-ink) !important; font-family: var(--directory-serif) !important; }
.et-hub .et-directory-header h1 { font-size: 40px; font-weight: 800 !important; line-height: 1.2; letter-spacing: 0 !important; margin: 0 0 3px; }
.et-directory-header p { color: var(--site-muted); font-size: 13px; font-weight: 400; letter-spacing: .025em; line-height: 22px; margin: 0; }
.et-directory-search { display: flex; align-items: center; gap: 12px; width: 67%; max-width: 820px; height: 34px; margin: 12px auto 26px; border: 1px solid var(--site-line); border-radius: 5px; background: var(--site-paper-solid); overflow: hidden; }
.et-directory-search:focus-within { border-color: var(--site-primary); box-shadow: 0 0 0 3px #244c7510; }
.et-directory-search > i { margin-left: 13px; font-size: 14px; color: var(--site-primary); }
.et-directory-search input { width: 100%; min-width: 0; flex: 1; height: 100%; border: 0; outline: none; padding: 0; font-family: var(--directory-serif); font-weight: 400; font-size: 11px; color: var(--directory-ink); background: transparent; }
.et-directory-search input::placeholder { color: #85909b; opacity: 1; }
.et-directory-search button { align-self: stretch; width: 61px; flex-shrink: 0; padding: 0; border: 0; border-radius: 4px; font-family: var(--directory-serif); font-weight: 400; font-size: 11px; color: #fff; background: var(--site-primary); cursor: pointer; }
.et-directory-search button:hover { background: var(--site-primary-dark); }
.et-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.et-directory-card { display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; align-items: start; gap: 16px; min-height: 84px; padding: 13px 12px 13px 17px; border: 1px solid var(--site-line); border-left: 4px solid var(--site-warm); border-radius: 6px; background: var(--site-paper); color: var(--directory-ink); text-decoration: none !important; transition: border-color .18s, box-shadow .18s, background .18s; }
.et-directory-card:hover { color: var(--directory-ink); border-color: #bfb4a3; border-left-color: var(--site-warm); background: var(--site-paper-solid); box-shadow: var(--site-shadow); }
.et-directory-card:focus-visible { outline: 2px solid var(--directory-ink); outline-offset: 3px; }
.et-directory-icon { width: 24px; height: 24px; margin-top: 5px; color: var(--site-primary); }
.et-directory-icon circle { fill: var(--site-paper-solid); }
.et-directory-card-copy { flex: 1; min-width: 0; }
.et-hub .et-directory-card h3 { font-weight: 600 !important; font-size: 12px; line-height: 18px; margin: 0 0 4px; }
.et-directory-card p { color: var(--directory-muted); font-size: 10.5px; font-weight: 400; line-height: 16px; margin: 0; }
.et-directory-arrow { align-self: center; display: flex; align-items: center; justify-content: center; width: 20px; height: 24px; border-radius: 50%; background: #f4eadc; color: var(--site-warm); font-size: 9px; }
.et-directory-empty { padding: 40px 20px; color: var(--directory-muted); text-align: center; border: 1px solid var(--site-line); background: var(--site-paper); border-radius: 7px; font-size: 13px; }
.et-directory-empty > i { font-size: 24px; }
.et-directory-empty p { margin: 12px 0; }
.et-directory-empty button { color: var(--directory-ink); background: transparent; border: 0; padding: 5px; cursor: pointer; text-decoration: underline; }
.et-desktop-notice { display: none; }
.et-workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.et-panel { border: 1px solid var(--site-line); border-radius: 10px; background: var(--site-paper); overflow: hidden; }
.et-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px; border-bottom: 1px solid var(--site-line-soft); }
.et-panel-heading h2 { font-size: 16px; margin: 0; }
.et-panel-heading h2 i { margin-right: 7px; color: var(--site-primary); }
.et-text-button { border: 0; background: transparent; color: var(--site-primary); font-size: 12px; padding: 3px; cursor: pointer; }
.et-text-button:hover { text-decoration: underline; }
.et-fields { margin: 0; padding: 20px 22px; border: 0; border-bottom: 1px solid var(--site-line-soft); min-width: 0; }
.et-fields legend { float: left; width: 100%; margin: 0 0 17px; font-size: 13px; font-weight: 600; }
.et-fields legend + * { clear: both; }
.et-fields legend span { color: var(--site-warm); font-size: 11px; margin-right: 7px; font-variant-numeric: tabular-nums; }
.et-field { min-width: 0; margin-bottom: 12px; }
.et-field label { display: block; margin-bottom: 6px; font-size: 12px; color: #435367; }
.et-field input, .et-field select { display: block; width: 100%; height: 38px; border: 1px solid #d5d9dd; border-radius: 5px; color: var(--site-ink); background: #fff; font: inherit; font-size: 13px; padding: 7px 10px; box-shadow: none; }
.et-field input:focus, .et-field select:focus { border-color: var(--site-primary); outline: 2px solid #244c751a; outline-offset: 1px; }
.et-field input[aria-invalid="true"] { border-color: #ac3b32; }
.et-field input::placeholder { color: #9aa4ae; font-size: 12px; }
.et-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
.et-help { font-size: 11px; color: var(--site-muted); line-height: 1.8; margin: 6px 0 0; }
.et-model-equation { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; background: #f3f5f6; color: var(--site-primary); text-align: center; padding: 12px 4px; margin: 14px 0; border-radius: 5px; }
.et-details { margin-top: 16px; font-size: 12px; }
.et-details summary { color: var(--site-primary); cursor: pointer; padding: 2px 0; }
.et-details[open] summary { margin-bottom: 14px; }
.et-check { display: flex; align-items: center; gap: 8px; color: #435367; font-size: 12px; font-weight: 400; margin: 13px 0; cursor: pointer; }
.et-check input { accent-color: var(--site-primary); width: 14px; height: 14px; flex-shrink: 0; }
.et-checkbox-row { display: flex; gap: 18px; }
.et-optional { color: #8a94a0; font-size: 10px; font-weight: 400; }
.et-style-options { display: flex; gap: 6px; clear: both; }
.et-style-options label { flex: 1; margin: 0; cursor: pointer; min-width: 0; }
.et-style-options input { position: absolute; opacity: 0; }
.et-style-options span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 66px; border: 1px solid var(--site-line-soft); border-radius: 5px; font-size: 11px; color: #647387; background: #fff; }
.et-style-options input:checked + span { color: var(--site-primary); border-color: var(--site-primary); background: #f0f5f9; }
.et-style-options input:focus-visible + span { outline: 2px solid var(--site-primary); outline-offset: 2px; }
.et-swatch { display: block; width: 26px; height: 10px; border-top: 2px solid #2b4c8c; border-bottom: 2px solid #9e3d3a; transform: rotate(-12deg); }
.et-swatch-bw { border-top-color: #222; border-bottom: 2px dashed #222; }
.et-swatch-three { border-top-color: #2b4c8c; border-bottom-color: #9e3d3a; background: linear-gradient(transparent 40%, #888 40%, #888 60%, transparent 60%); }
.et-form-bottom { padding: 18px 22px; }
.et-form-bottom .et-button { width: 100%; }
.et-form-bottom .et-help { text-align: center; margin-top: 10px; }
.et-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border: 1px solid #ccd6df; border-radius: 5px; color: var(--site-primary); font: inherit; font-size: 12px; background: #fff; cursor: pointer; line-height: 1.4; }
.et-button:hover { background: #edf3f7; }
.et-button:disabled { opacity: .5; cursor: not-allowed; }
.et-button-primary { background: var(--site-primary); color: #fff; border-color: var(--site-primary); }
.et-button-primary:hover { background: var(--site-primary-dark); color: #fff; }
.et-output-column { display: grid; gap: 20px; min-width: 0; }
.et-preview-status { display: inline-block; margin-top: 7px; font-size: 11px; color: var(--site-muted); }
.et-preview-format { font-size: 11px; color: #7b8997; white-space: nowrap; }
.et-chart { margin: 22px; border: 1px solid #e7e9eb; background: #fff; }
.et-chart svg { display: block; width: 100%; height: auto; }
.et-chart.et-chart-stale { opacity: .45; }
.et-export-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 0 22px; }
.et-export-bar > span { font-size: 12px; color: var(--site-muted); }
.et-export-bar > div { display: flex; flex-wrap: wrap; gap: 8px; }
.et-export-help { padding: 0 22px; font-size: 11px; color: var(--site-muted); margin: 12px 0 20px; line-height: 1.7; }
.et-result-help { font-size: 11px; color: var(--site-muted); padding: 0 22px; margin: 14px 0; line-height: 1.8; }
.et-table-scroll { overflow-x: auto; padding: 0 22px; }
.et-results { width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 0; }
.et-results th { font-weight: 500; color: #607084; background: #f3f5f5; }
.et-results th, .et-results td { padding: 12px 10px; border-bottom: 1px solid #e5e7e8; text-align: right; }
.et-results th:first-child, .et-results td:first-child { text-align: left; }
.et-results td:first-child { max-width: 180px; white-space: normal; }
.et-row-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.et-method { padding: 20px 22px; }
.et-method summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--site-ink); }
.et-method > div { padding-top: 16px; }
.et-method p { font-size: 12px; color: var(--site-muted); line-height: 1.9; margin: 0 0 10px; }
.et-method p:last-child { margin-bottom: 0; }
.et-method .et-local-note { color: var(--site-primary); }
.et-local-note i { margin-right: 5px; }
.et-error { color: #a33b32; background: #fff1ef; border: 1px solid #edc9c5; padding: 10px; font-size: 12px; line-height: 1.7; border-radius: 5px; }
/* Moderation workspace only: warm paper, compact fields and three desktop columns. */
.moderation-tool-page .site-main { max-width: 1520px !important; padding: 22px 26px 44px !important; }
.mp-page { --mp-accent: #b26b29; --mp-tint: #fcf2df; --mp-border: #e3d8c7; --mp-font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif; --mp-number-font: Arial, "Microsoft YaHei", sans-serif; max-width: none; font-family: var(--mp-font); font-size: 15px; line-height: 1.55; }
.mp-page h1, .mp-page h2 { font-family: var(--mp-font) !important; }
.mp-page .et-breadcrumb { margin-bottom: 14px; font-size: 11px; }
.mp-workspace { display: grid; grid-template-columns: 360px minmax(0, 1fr) 350px; gap: 12px; align-items: stretch; }
.mp-page .et-panel { border-color: var(--mp-border); border-radius: 8px; background: rgba(255, 253, 248, .98); }
.mp-input { grid-column: 1; grid-row: 1 / span 2; align-self: start; display: flex; flex-direction: column; padding-bottom: 14px; }
.mp-fields { margin: 0 18px; padding: 17px 0 12px; border: 0; border-bottom: 1px solid var(--site-line-soft); min-width: 0; }
.mp-fields legend { float: left; display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; color: var(--site-ink); font-size: 18px; font-weight: 700; line-height: 32px; }
.mp-fields legend + * { clear: both; }
.mp-fields legend > small { font-size: 13px; font-weight: 400; color: var(--site-muted); }
.mp-fields legend .et-text-button { margin-left: auto; border: 1px solid var(--mp-border); border-radius: 4px; padding: 0 9px; color: var(--mp-accent); font-size: 12px; font-weight: 500; background: #fffcf6; line-height: 29px; white-space: nowrap; }
.mp-step { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; background: var(--mp-tint); border: 1px solid #f0e0c6; border-radius: 5px; color: var(--mp-accent); font-family: var(--mp-number-font); font-size: 16px; font-weight: 700; line-height: 1; }
.mp-field-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 9px; }
.mp-field-row label { margin: 0; color: #354659; font-size: 16px; line-height: 1.5; }
.mp-field-row label .mp-math { display: inline-block; margin-left: 3px; font-family: "Times New Roman", serif; font-size: 19px; font-style: italic; line-height: 1; }
.mp-math sub { font-size: .72em; font-style: normal; }
.mp-page .et-field input, .mp-page .et-field select { height: 38px; border-color: #ddd6ca !important; border-radius: 5px; background: #fffefa; font-family: var(--mp-number-font); font-size: 16px; font-variant-numeric: lining-nums tabular-nums; padding: 6px 11px; line-height: 1.4; }
.mp-page .et-field input { font-family: var(--mp-number-font) !important; }
.mp-page .et-field select { font-family: var(--mp-font); font-size: 14px; }
.mp-page .et-field input::placeholder { font-size: 13px; }
.mp-page .et-field input:focus, .mp-page .et-field select:focus, .mp-group-picker select:focus { border-color: var(--mp-accent) !important; outline: 2px solid #b26b2918; outline-offset: 1px; box-shadow: none !important; }
.mp-page .et-field input[aria-invalid="true"] { border-color: #ac3b32 !important; }
.mp-levels { margin: 13px 0 4px; padding: 12px; border-radius: 6px; background: #fcf2df; }
.mp-levels > strong { display: block; color: #9b642c; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.mp-levels > strong > span { font-weight: 400; }
.mp-levels > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-levels > div.mp-three-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mp-levels > div > span { padding: 6px; background: #fffefa; border-radius: 4px; text-align: center; }
.mp-levels small { display: block; color: var(--site-muted); font-size: 14px; overflow-wrap: anywhere; }
.mp-levels b { display: block; font-family: var(--mp-number-font); font-size: 19px; color: var(--site-ink); font-weight: 400; margin-top: 3px; font-variant-numeric: lining-nums tabular-nums; }
.mp-input-details { padding: 16px 0; margin: 0 18px; border-bottom: 1px solid var(--site-line-soft); }
.mp-input-details summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.mp-input-details summary::-webkit-details-marker { display: none; }
.mp-input-details summary strong { font-size: 18px; font-weight: 700; }
.mp-input-details summary small { font-size: 13px; color: var(--site-muted); }
.mp-input-details summary i { margin-left: auto; font-size: 12px; color: var(--site-muted); }
.mp-input-details[open] summary { margin-bottom: 17px; }
.mp-input-details[open] summary i { transform: rotate(180deg); }
.mp-input-details .et-field label { font-size: 13px; }
.mp-input-details .et-help { margin: 0; font-size: 12px; }
.mp-form-error { margin: 12px 18px 0; }

.mp-output { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; padding: 18px 14px 12px; }
.mp-preview-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.mp-preview-heading h2 { font-size: 16px; font-weight: 700 !important; margin: 0; }
.mp-preview-heading > span { color: #9b642c; background: #fcf2df; padding: 4px 9px; border-radius: 4px; font-size: 12px; }
.mp-chart { width: 100%; flex: 1; display: flex; align-items: flex-start; justify-content: center; min-width: 0; margin: 9px 0 0; padding-top: 12px; background: #fff; border: 0; }
.mp-chart svg { display: block; width: 100%; height: auto; }
.mp-chart.mp-chart-stale { opacity: .4; }
.mp-chart [data-drag-key] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.mp-chart .mp-label-hit { stroke: transparent; stroke-width: 1; }
.mp-chart [data-drag-key]:hover > .mp-label-hit, .mp-chart [data-drag-key]:focus-visible > .mp-label-hit { fill: #fcf2df66; stroke: #b26b2990; stroke-dasharray: 4 3; }
.mp-chart.mp-label-dragging, .mp-chart.mp-label-dragging [data-drag-key] { cursor: grabbing; }
.mp-chart .is-dragging > .mp-label-hit { fill: #fcf2df88; stroke: #b26b29; stroke-dasharray: 4 3; }
.mp-drag-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 2px 0; color: var(--site-muted); font-size: 12px; line-height: 1.6; }
.mp-drag-toolbar > span > i { color: var(--mp-accent); margin-right: 3px; }
.mp-drag-toolbar .et-text-button { color: var(--mp-accent); font-size: 12px; white-space: nowrap; }
.mp-drag-toolbar .et-text-button:disabled { opacity: .45; cursor: default; text-decoration: none; }
.mp-label-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mp-label-dialog { width: 460px; max-width: calc(100vw - 48px); border: 1px solid var(--mp-border); border-radius: 10px; background: #fffdf8; color: var(--site-ink); padding: 22px; box-shadow: 0 16px 60px #1d2b3b26; }
.mp-label-dialog::backdrop { background: #1d2b3b40; }
.mp-label-dialog form { margin: 0; }
.mp-label-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mp-label-dialog-heading h2 { font-size: 19px; font-weight: 700 !important; margin: 0; }
.mp-label-dialog-heading > button { border: 0; border-radius: 4px; background: transparent; color: var(--site-muted); padding: 5px 7px; cursor: pointer; font-size: 14px; }
.mp-label-dialog-heading > button:hover { color: var(--mp-accent); background: var(--mp-tint); }
.mp-label-dialog textarea { display: block; width: 100%; min-height: 90px; border: 1px solid var(--mp-border); border-radius: 5px; padding: 10px 12px; background: #fff; color: var(--site-ink); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
.mp-label-dialog textarea:focus { border-color: var(--mp-accent); outline: 2px solid #b26b2918; outline-offset: 1px; }
.mp-label-edit-help { margin: 6px 0; color: var(--site-muted); font-size: 12px; line-height: 1.7; }
.mp-label-edit-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.mp-label-edit-tools .et-text-button { font-size: 12px; color: var(--mp-accent); padding: 0; }
.mp-label-edit-tools .et-text-button:disabled { opacity: .45; cursor: default; }
.mp-label-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--mp-border); }
.mp-label-dialog-footer .et-button { padding: 8px 18px; font-size: 14px; }
.mp-preview-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px 0; font-size: 12px; color: var(--site-muted); }
.mp-preview-status > span:first-child { font-size: 12px; }

.mp-sidebar { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mp-group-picker { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.mp-group-picker label { font-size: 14px; margin: 0; color: #354659; white-space: nowrap; }
.mp-group-picker select { width: 100%; min-width: 0; font-family: var(--mp-font); font-size: 14px; color: var(--site-primary); background: #fffefa; border: 1px solid #d5b88e !important; border-radius: 5px; height: 38px; padding: 6px 9px; }
.mp-download-panel { padding: 16px 15px 10px; }
.mp-sidebar h2 { font-size: 19px; font-weight: 700 !important; margin: 0 0 16px; line-height: 1.4; }
.mp-sidebar h2 > i { color: var(--mp-accent); font-size: 22px; margin-right: 9px; }
.mp-download-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid #e8ddcd; border-radius: 5px; background: #fffefa; color: var(--site-ink); cursor: pointer; text-align: left; font: inherit; margin-bottom: 9px; }
.mp-download-card:hover { border-color: var(--mp-accent); background: #fff6e7; }
.mp-download-card:focus-visible { outline: 2px solid var(--mp-accent); outline-offset: 2px; }
.mp-download-card:disabled { opacity: .5; cursor: not-allowed; }
.mp-download-card > i:first-child { font-size: 24px; color: var(--mp-accent); }
.mp-download-card > span { flex: 1; min-width: 0; }
.mp-download-card strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.5; }
.mp-download-card small { display: block; color: var(--site-muted); font-size: 12px; line-height: 1.6; margin-top: 3px; }
.mp-download-card > i:last-child { font-size: 11px; color: var(--mp-accent); }
.mp-export-status { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: var(--site-muted); }
.mp-settings-panel { flex: 1; padding: 16px 15px 11px; }
.mp-settings-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.mp-settings-heading h2 { margin: 0; }
.mp-settings-heading .et-text-button { font-size: 12px; color: var(--mp-accent); }
.mp-style-editor { margin: 0; padding: 0; }
.mp-style-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mp-style-editor > .mp-style-row { gap: 12px; }
.mp-style-editor > .mp-style-row > .et-field { display: flex; align-items: center; gap: 7px; }
.mp-style-editor > .mp-style-row > .et-field label { margin: 0; font-size: 13px; white-space: nowrap; }
.mp-style-editor > .mp-style-row select { flex: 1; min-width: 0; padding-left: 7px; padding-right: 5px; font-size: 13px; }
.mp-setting-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: center; }
.mp-setting-row label { margin: 0; font-size: 14px; }
.mp-style-row .et-field label, .mp-style-editor .et-field > label { font-size: 14px; }
.mp-style-row input[type="color"] { padding: 4px 6px; cursor: pointer; }
.mp-style-options { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 10px; }
.mp-style-options .et-check { margin: 0; font-size: 13px; gap: 6px; }
.mp-style-options input { accent-color: var(--mp-accent); }
.mp-style-editor .et-details { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--site-line-soft); font-size: 13px; }
.mp-style-editor .et-details summary { color: var(--site-muted); }
.mp-style-editor .et-details[open] summary { margin-bottom: 12px; }
.mp-settings-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; border-top: 1px solid var(--site-line-soft); padding-top: 10px; }
.mp-settings-footer .et-text-button { color: var(--mp-accent); font-size: 12px; padding: 0; }
.mp-settings-footer > span { color: var(--site-muted); font-size: 11px; }

.mp-variants-gallery { grid-column: 2 / span 2; grid-row: 2; align-self: start; min-width: 0; padding: 14px; }
.mp-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mp-gallery-heading h2 { font-size: 18px; font-weight: 700 !important; margin: 0; }
.mp-gallery-navigation { display: flex; align-items: center; gap: 6px; }
.mp-gallery-navigation > span { font-size: 12px; color: var(--site-muted); margin-right: 7px; }
.mp-gallery-arrow { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid var(--mp-border); border-radius: 4px; background: #fffefa; color: var(--mp-accent); cursor: pointer; font-size: 12px; }
.mp-gallery-arrow:hover:not(:disabled) { background: #fcf2df; border-color: var(--mp-accent); }
.mp-gallery-arrow:disabled { opacity: .35; cursor: default; }
.mp-gallery-arrow:focus-visible { outline: 2px solid var(--mp-accent); outline-offset: 2px; }
.mp-style-count { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 4px; background: #f5ecde; color: #91632e; font-size: 11px; font-weight: 500; vertical-align: middle; }
.mp-style-gallery { position: relative; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 3px 3px 8px; scrollbar-width: thin; scrollbar-color: #cbb99c #f6f0e6; }
.mp-style-gallery::-webkit-scrollbar { height: 5px; }
.mp-style-gallery::-webkit-scrollbar-track { background: #f6f0e6; border-radius: 3px; }
.mp-style-gallery::-webkit-scrollbar-thumb { background: #cbb99c; border-radius: 3px; }
.mp-template { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 10px; row-gap: 3px; flex: 0 0 198px; min-width: 0; min-height: 66px; padding: 9px 10px; background: #fff; border: 1px solid var(--mp-border); border-radius: 5px; cursor: pointer; color: var(--site-ink); font: inherit; text-align: left; transition: border-color .15s, background .15s; }
.mp-template:hover { border-color: var(--mp-accent); background: #fffaf1; }
.mp-template.is-active { border-color: var(--mp-accent); background: #fff8ed; box-shadow: inset 0 0 0 1px #b26b2914; }
.mp-template:focus-visible { outline: 2px solid var(--mp-accent); outline-offset: 2px; }
.mp-thumb { display: block; grid-column: 1; grid-row: 1 / span 2; width: 56px; background: #fff; margin: 0; border: 1px solid #f1ede6; border-radius: 2px; overflow: hidden; }
.mp-thumb svg { width: 100%; height: auto; display: block; }
.mp-template strong { display: block; grid-column: 2; grid-row: 1; font-size: 14px; font-weight: 700; line-height: 1.4; }
.mp-template small { display: block; grid-column: 2; grid-row: 2; color: var(--site-muted); font-size: 11px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1350px) and (min-width: 1151px) {
    .mp-workspace { grid-template-columns: 310px minmax(0, 1fr) 300px; }
    .mp-field-row { grid-template-columns: 126px minmax(0, 1fr); }
    .mp-field-row label { font-size: 14px; }
}
@media (max-width: 1150px) {
    .moderation-tool-page .site-main { padding: 18px 18px 38px !important; }
    .mp-workspace { grid-template-columns: 310px minmax(0, 1fr); }
    .mp-input { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
    .mp-output { grid-column: 2; grid-row: 1; }
    .mp-sidebar { grid-column: 2; grid-row: 2; }
    .mp-variants-gallery { grid-column: 2; grid-row: 3; }
    .mp-field-row { grid-template-columns: 126px minmax(0, 1fr); }
    .mp-field-row label { font-size: 14px; }
    .mp-chart svg { max-height: 470px; }
    .mp-gallery-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 900px) {
    .mp-workspace { grid-template-columns: 270px minmax(0, 1fr); }
    .mp-fields, .mp-input-details { margin-left: 12px; margin-right: 12px; }
    .mp-field-row { grid-template-columns: 112px minmax(0, 1fr); gap: 6px; }
    .mp-field-row label { font-size: 13px; }
    .mp-fields legend, .mp-input-details summary strong { font-size: 16px; }
    .mp-fields legend .et-text-button { font-size: 11px; padding: 0 7px; }
    .mp-levels > strong { font-size: 12px; }
    .mp-gallery-heading h2 { font-size: 15px; }
    .mp-template strong { font-size: 13px; }
}
@media (min-width: 1600px) { .et-workspace { grid-template-columns: 360px minmax(0, 1fr); } }
@media (max-width: 1000px) { .et-workspace { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; } .et-panel-heading, .et-fields, .et-form-bottom { padding-left: 18px; padding-right: 18px; } .et-export-bar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 768px) {
    .et-page { display: none !important; }
    .et-desktop-notice { display: block; text-align: center; min-height: 50vh; padding: 60px 16px; color: var(--site-muted); font-size: 14px; }
    .et-desktop-notice > i { display: inline-block; font-size: 32px; color: var(--site-primary); margin-bottom: 18px; }
    .et-desktop-notice p { margin-bottom: 16px; }
    .et-desktop-notice a { font-size: 12px; }
}
