/* All selectors are scoped to the tool; no theme resets or external fonts. */
.aps-mpm {
  --aps-ink: #172b3a;
  --aps-muted: #526576;
  --aps-accent: #126d66;
  --aps-line: #dce5e9;
  --aps-soft: #f5f8f9;
  box-sizing: border-box;
  max-width: 900px;
  margin: 1.5rem auto;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--aps-line);
  border-radius: 18px;
  background: #fff;
  color: var(--aps-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 8px 30px rgba(23, 43, 58, .04);
}
.aps-mpm *, .aps-mpm *::before, .aps-mpm *::after { box-sizing: border-box; }
.aps-mpm [hidden] { display: none !important; }
.aps-mpm p { margin: 0 0 12px; }
.aps-mpm small { display: block; color: var(--aps-muted); font-size: 12px; line-height: 1.5; }
.aps-mpm__header { margin: 0 0 25px; }
.aps-mpm .aps-mpm__eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: .13em; font-weight: 700; color: var(--aps-accent); }
.aps-mpm .aps-mpm__header h2 { margin: 0 0 10px; color: var(--aps-ink); font-size: clamp(25px, 4vw, 34px); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
.aps-mpm__header > p:not(.aps-mpm__eyebrow) { color: var(--aps-muted); max-width: 650px; }
.aps-mpm__badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.aps-mpm__badges span { padding: 3px 10px; background: #edf5f3; color: #235e58; border-radius: 5px; font-size: 11px; font-weight: 600; }
.aps-mpm__drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 27px 18px; border: 1.5px dashed #acc0c9; border-radius: 11px; text-align: center; background: var(--aps-soft); transition: background .15s, border-color .15s; }
.aps-mpm__drop > strong { font-size: 18px; }
.aps-mpm__drop > span { font-size: 14px; color: var(--aps-muted); }
.aps-mpm__upload-icon { margin-bottom: 3px; color: var(--aps-accent); }
.aps-mpm__drop.is-dragging { background: #e7f4ee; border-color: var(--aps-accent); }
.aps-mpm__drop.is-disabled { opacity: .6; }
.aps-mpm__file-label { display: inline-block; position: relative; margin: 8px 0 3px; padding: 8px 18px; border: 1px solid #acbfc8; background: #fff; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.aps-mpm__file-input { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.aps-mpm__drop:focus-within { outline: 3px solid #a0ccc4; outline-offset: 3px; }
.aps-mpm__settings { margin-top: 23px; }
.aps-mpm__field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; font-weight: 600; }
.aps-mpm__field > span { font-size: 14px; }
.aps-mpm__field small { font-weight: 400; }
.aps-mpm select, .aps-mpm input[type="number"] { display: block; width: 100%; min-width: 0; max-width: 100%; height: auto; padding: 10px 12px; margin: 0; border: 1px solid #bccbd2; border-radius: 6px; background-color: #fff; color: var(--aps-ink); font: inherit; font-size: 14px; line-height: 1.4; box-shadow: none; }
.aps-mpm select { padding-right: 28px; }
.aps-mpm .aps-mpm__hint { color: var(--aps-muted); font-size: 13px; margin: 8px 0 14px; }
.aps-mpm__advanced { padding: 13px 0; border-top: 1px solid var(--aps-line); border-bottom: 1px solid var(--aps-line); }
.aps-mpm summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--aps-muted); }
.aps-mpm details[open] > summary { margin-bottom: 13px; }
.aps-mpm__advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.aps-mpm__check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin-top: 14px; cursor: pointer; }
.aps-mpm__check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--aps-accent); }
.aps-mpm__check small { margin-top: 3px; }
.aps-mpm__toolbar, .aps-mpm__downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.aps-mpm .aps-mpm__button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 1 auto; border: 1px solid #bfccd2; border-radius: 6px; margin: 0; padding: 10px 17px; background: #fff; color: var(--aps-ink); box-shadow: none; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s; }
.aps-mpm .aps-mpm__button:hover { background: #eef3f5; color: var(--aps-ink); text-decoration: none; }
.aps-mpm .aps-mpm__button--primary { color: #fff; background: var(--aps-accent); border-color: var(--aps-accent); }
.aps-mpm .aps-mpm__button--primary:hover { color: #fff; background: #0e5853; }
.aps-mpm .aps-mpm__button--quiet { background: transparent; border-color: transparent; color: var(--aps-muted); }
.aps-mpm .aps-mpm__button--small { font-size: 12px; padding: 7px 11px; }
.aps-mpm button:disabled, .aps-mpm input:disabled, .aps-mpm select:disabled { opacity: .48; cursor: not-allowed; }
.aps-mpm .aps-mpm__button:disabled:hover { background: inherit; }
.aps-mpm .aps-mpm__button--primary:disabled:hover { background: var(--aps-accent); }
.aps-mpm :is(button, a, select, input, summary):focus-visible { outline: 3px solid #a0ccc4; outline-offset: 3px; }
.aps-mpm .aps-mpm__status { font-size: 13px; color: var(--aps-muted); margin: 13px 0 0; overflow-wrap: anywhere; }
.aps-mpm__progress { width: 100%; height: 8px; margin: 14px 0 0; display: block; accent-color: var(--aps-accent); }
.aps-mpm__rows { display: grid; gap: 10px; margin-top: 17px; }
.aps-mpm__rows:empty { display: none; }
.aps-mpm__file { padding: 15px; border: 1px solid var(--aps-line); border-radius: 8px; background: #fff; min-width: 0; }
.aps-mpm__file.is-complete { border-left: 3px solid #4b9a82; }
.aps-mpm__file.has-error { border-left: 3px solid #b85045; }
.aps-mpm__file-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.aps-mpm__file-info { min-width: 0; }
.aps-mpm__filename { display: block; font-size: 14px; overflow-wrap: anywhere; }
.aps-mpm__file-meta { font-size: 11px; color: var(--aps-muted); }
.aps-mpm__file-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.aps-mpm .aps-mpm__remove { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--aps-muted); border: 0; width: 28px; height: 30px; padding: 0; margin: 0; font-size: 23px; line-height: 1; cursor: pointer; }
.aps-mpm .aps-mpm__result-summary { margin: 10px 0 0; font-size: 12px; color: #356652; }
.aps-mpm__file-details { margin-top: 8px; }
.aps-mpm__file-details summary { font-size: 12px; }
.aps-mpm .aps-mpm__stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px 12px; font-size: 12px; line-height: 1.4; margin: 10px 0; }
.aps-mpm__stats dt { margin: 0; font-weight: 400; color: var(--aps-muted); }
.aps-mpm__stats dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.aps-mpm .aps-mpm__notices { margin: 12px 0 0 16px; padding: 0; font-size: 12px; color: var(--aps-muted); }
.aps-mpm__notices li { margin-bottom: 7px; }
.aps-mpm .aps-mpm__error { color: #a2352b; font-size: 13px; margin-top: 8px; }
.aps-mpm__footer { border-top: 1px solid var(--aps-line); margin-top: 25px; padding-top: 18px; font-size: 12px; color: var(--aps-muted); }
.aps-mpm__footer p { margin: 0 0 10px; }
.aps-mpm__explanation { margin-top: 13px; }
@media (max-width: 560px) {
  .aps-mpm { padding: 20px 16px; margin: 1rem 0; border-radius: 12px; }
  .aps-mpm__advanced-grid { grid-template-columns: 1fr; }
  .aps-mpm__file-top { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .aps-mpm__file-info { flex-basis: 100%; }
  .aps-mpm__file-actions { width: 100%; justify-content: space-between; }
  .aps-mpm__toolbar .aps-mpm__button--primary, .aps-mpm__downloads .aps-mpm__button { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .aps-mpm * { transition: none !important; } }
