  :root {
    --bg: #f3f0e8;
    --card: #fffdf7;
    --ink: #17201c;
    --muted: #67716b;
    --line: #ddd6c7;
    --accent: #0f6b53;
    --accent-dark: #0a4d3c;
    --accent-soft: #dcefe6;
    --amber: #9a5b00;
    --amber-soft: #fff1d6;
    --red: #a92f24;
    --red-soft: #fbe5e1;
    --shadow: 0 18px 45px rgba(31, 42, 36, .08);
    --radius: 20px;
  }

  * { box-sizing: border-box; }

  [hidden] { display: none !important; }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  html { -webkit-text-size-adjust: 100%; }

  body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
      radial-gradient(1100px 500px at 85% -10%, rgba(15, 107, 83, .10), transparent 70%),
      radial-gradient(800px 400px at 0% 100%, rgba(154, 91, 0, .07), transparent 70%),
      var(--bg);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
  }

  .wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 40px;
  }

  .hero {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(15, 107, 83, .22);
    border-radius: 999px;
    background: rgba(255, 253, 247, .7);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }

  h1 {
    margin: 0;
    font-family: Cambria, "Times New Roman", Georgia, serif;
    font-weight: 600;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -.03em;
  }

  .hero p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 16px;
  }

  .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .composer {
    padding: 18px;
  }

  .dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 42px 20px;
    text-align: center;
    border: 1.5px dashed #b9c8bf;
    border-radius: 15px;
    background:
      linear-gradient(180deg, rgba(220, 239, 230, .35), rgba(255, 253, 247, 0));
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
  }

  .dropzone:hover,
  .dropzone:focus-visible,
  .dropzone.dragging {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
  }

  .dropzone:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
  }

  .drop-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
  }

  .drop-icon svg { width: 24px; height: 24px; }

  .dropzone h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -.01em;
  }

  .dropzone p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
  }

  .dropzone .drop-formats {
    font-size: 12px;
  }

  .controls {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 4px 2px;
  }

  .field {
    display: grid;
    gap: 5px;
  }

  .field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .field input {
    width: 150px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
  }

  .field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
  }

  .btn:hover { transform: translateY(-1px); }

  .btn:active { transform: translateY(0); }

  .btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .btn.primary:hover { background: var(--accent-dark); }

  .btn.ghost {
    border-color: var(--line);
    background: transparent;
  }

  .btn.ghost:hover { background: #f5f2ea; }

  .btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
  }

  .controls .choose { margin-left: auto; }

  .results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 34px 2px 12px;
  }

  .results-head h2 {
    margin: 0;
    font-family: Cambria, "Times New Roman", Georgia, serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.02em;
  }

  .ssim-legend {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    max-width: 560px;
  }

  .results {
    display: grid;
    gap: 16px;
  }

  .empty-state {
    margin: 0;
    padding: 28px 20px;
    border: 1.5px dashed var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 247, .6);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
  }

  .batch {
    display: grid;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    scroll-margin-top: 18px;
  }

  .batch-head {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid #ece6d9;
  }

  .batch.is-older {
    box-shadow: none;
    border-radius: 14px;
  }

  .batch.is-older .batch-head {
    padding: 13px 15px;
    border-bottom: 0;
  }

  .batch-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .batch-title {
    margin: 0;
    min-width: 0;
    font-family: Cambria, "Times New Roman", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  .batch.is-older .batch-title { font-size: 16px; }

  .batch-state {
    flex: none;
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eee9dc;
    color: #4c554f;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .03em;
  }

  .batch-state.running {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  .batch-state.done {
    background: #e8eefc;
    color: #244d9b;
  }

  .batch-progress {
    display: grid;
    gap: 6px;
  }

  .batch-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #ece6d9;
  }

  .batch-bar span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
  }

  .batch-progress-text {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }

  .batch-summary {
    margin: 0;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 650;
    overflow-wrap: anywhere;
  }

  .batch-skipped {
    margin: 0;
    padding: 9px 11px;
    border-left: 3px solid var(--amber);
    border-radius: 0 8px 8px 0;
    background: var(--amber-soft);
    color: #6d4300;
    font-size: 12.5px;
    overflow-wrap: anywhere;
  }

  .batch-error {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 9px 11px;
    border-radius: 9px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 12.5px;
    font-weight: 650;
  }

  .batch-error .btn {
    min-height: 44px;
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .batch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .batch-actions .btn { min-height: 44px; }

  .batch-expand {
    min-height: 44px;
    margin-left: auto;
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .file-rows {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .file-row {
    border-top: 1px solid #f0ece2;
  }

  .file-row:first-child { border-top: 0; }

  .row-main {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .file-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  .file-icon.pdf {
    background: var(--red-soft);
    color: var(--red);
  }

  .file-icon svg {
    width: 20px;
    height: 20px;
  }

  .row-info {
    flex: 1 1 140px;
    min-width: 0;
  }

  .row-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .row-size {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }

  .row-error {
    margin: 5px 0 0;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .row-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eee9dc;
    color: #4c554f;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.3;
  }

  .row-status svg {
    flex: none;
    width: 14px;
    height: 14px;
  }

  .row-status .spinner {
    width: 13px;
    height: 13px;
    border-width: 2px;
  }

  .row-status.ok { background: var(--accent-soft); color: var(--accent-dark); }
  .row-status.notice { background: #e8eefc; color: #244d9b; }
  .row-status.warn { background: var(--amber-soft); color: var(--amber); }
  .row-status.error { background: var(--red-soft); color: var(--red); }

  .row-toggle {
    min-height: 44px;
    margin-left: auto;
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .row-detail {
    padding: 2px 16px 16px;
  }

  .row-detail .stats { margin-top: 2px; }

  .older {
    display: grid;
    gap: 10px;
  }

  .older-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 253, 247, .76);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .older-toggle:hover { background: #f7f3e9; }

  .older-toggle:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }

  .older-toggle .chev {
    flex: none;
    width: 18px;
    height: 18px;
    margin-left: auto;
    transition: transform .2s ease;
  }

  .older-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

  .older-list {
    display: grid;
    gap: 10px;
  }

  .toast {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 90;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 16px 40px rgba(10, 45, 35, .28);
    font-size: 13.5px;
    font-weight: 650;
    text-align: center;
  }

  .page-drop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 36, 29, .55);
    pointer-events: none;
  }

  .page-drop-inner {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 30px 34px;
    border: 2px dashed rgba(15, 107, 83, .45);
    border-radius: 22px;
    background: rgba(255, 253, 247, .97);
    color: var(--accent-dark);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
    text-align: center;
  }

  .page-drop-inner svg {
    width: 40px;
    height: 40px;
  }

  .page-drop-inner p {
    margin: 0;
    font-size: 19px;
    font-weight: 750;
  }

  .card {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    animation: card-in .28s ease both;
  }

  @keyframes card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .file-name {
    margin: 0;
    font-size: 15.5px;
    font-weight: 750;
    overflow-wrap: anywhere;
  }

  .file-meta {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
  }

  .pill {
    flex: none;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eee9dc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .pill.ok { background: var(--accent-soft); color: var(--accent-dark); }
  .pill.notice { background: #e8eefc; color: #244d9b; }
  .pill.warn { background: var(--amber-soft); color: var(--amber); }
  .pill.error { background: var(--red-soft); color: var(--red); }

  .working {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13.5px;
  }

  .spinner {
    width: 17px;
    height: 17px;
    border: 2px solid #d7d1c2;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
  }

  .btn.primary .spinner {
    flex: none;
    border-color: rgba(255, 255, 255, .4);
    border-top-color: #fff;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  .progress {
    height: 4px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 99px;
    background: #ece6d9;
  }

  .progress::after {
    content: "";
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    animation: slide 1.2s ease-in-out infinite;
  }

  @keyframes slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(290%); }
  }

  .result {
    margin-top: 17px;
    display: grid;
    gap: 14px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .stat {
    padding: 11px 12px;
    border: 1px solid #ebe5d8;
    border-radius: 11px;
    background: #fbf9f3;
    min-width: 0;
  }

  .stat .k {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  .stat .v {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }

  .stat .v small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .help {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border: 1px solid #b8b1a0;
    border-radius: 50%;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    cursor: help;
    line-height: 1;
  }

  .status-line {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 650;
  }

  .status-line.notice { background: #e8eefc; color: #244d9b; }
  .status-line.warn { background: var(--amber-soft); color: var(--amber); }
  .status-line.error { background: var(--red-soft); color: var(--red); }

  .status-line .mark { font-weight: 900; }

  .warnings {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .warnings li {
    padding: 9px 11px;
    border-left: 3px solid var(--amber);
    border-radius: 0 8px 8px 0;
    background: var(--amber-soft);
    color: #6d4300;
    font-size: 12.5px;
  }

  .notes {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .notes li {
    padding: 9px 11px;
    border-left: 3px solid #244d9b;
    border-radius: 0 8px 8px 0;
    background: #e8eefc;
    color: #244d9b;
    font-size: 12.5px;
  }

  .card-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
  }

  .out-name {
    margin-left: auto;
    color: var(--muted);
    font-size: 11.5px;
    overflow-wrap: anywhere;
  }

  .error-box {
    margin-top: 14px;
    padding: 12px 13px;
    border-radius: 10px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 13.5px;
    font-weight: 600;
  }

  .note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    margin: 34px auto 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
  }

  .note svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
  }

  /* ---------- Compare modal ---------- */

  body.modal-open { overflow: hidden; }

  .modal[hidden] { display: none; }

  .modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 18px;
  }

  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 24, 20, .62);
    backdrop-filter: blur(3px);
  }

  .modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    max-height: calc(100vh - 36px);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    animation: modal-in .2s ease both;
  }

  @keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .modal-head h2 {
    margin: 0;
    font-family: Cambria, "Times New Roman", Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .icon-btn:hover { background: #f2eee4; }

  .modal-body {
    padding: 18px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .compare-block + .compare-block { margin-top: 24px; }

  .compare-block h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pair figure {
    margin: 0;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #f6f2e9;
  }

  .pair figcaption {
    padding: 8px 11px;
    border-bottom: 1px solid var(--line);
    background: #fffdf7;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .pair figcaption.out { color: var(--accent-dark); }

  .img-shell {
    position: relative;
    min-height: 120px;
    display: grid;
    place-items: center;
    background:
      linear-gradient(45deg, #ece7dc 25%, transparent 25%),
      linear-gradient(-45deg, #ece7dc 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #ece7dc 75%),
      linear-gradient(-45deg, transparent 75%, #ece7dc 75%),
      #f6f2e9;
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  }

  .img-shell img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 58vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity .2s ease;
  }

  .img-shell.ready img { opacity: 1; }

  .img-shell .loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
    background: rgba(246, 242, 233, .9);
  }

  .img-shell.ready .loading { display: none; }

  .img-shell.error img { display: none; }

  .img-shell.error .loading { color: var(--red); }

  .pdf-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .pdf-nav span {
    min-width: 116px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .pdf-nav .btn { padding: 8px 13px; font-size: 12.5px; }

  .modal-foot {
    padding: 10px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
  }

  @media (max-width: 760px) {
    .wrap { padding-top: 30px; }
    .composer { padding: 13px; }
    .dropzone { padding: 32px 14px; }
    .controls .choose { margin-left: 0; width: 100%; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .out-name { width: 100%; margin-left: 0; }
    .pair { grid-template-columns: 1fr; }
    .modal { padding: 8px; }
    .modal-card { max-height: calc(100vh - 16px); }
    .modal-body { padding: 12px; }
    .pair img { max-height: none; }
    .batch-head { padding: 14px; }
    .batch.is-older .batch-head { padding: 12px; }
    .batch-title { font-size: 17px; }
    .row-main { padding: 12px; }
    .row-detail { padding: 0 12px 14px; }
    .row-toggle { padding: 8px 10px; }
  }

  @media (max-width: 420px) {
    .row-status { font-size: 11px; }
    .batch-expand { margin-left: 0; width: 100%; }
    .page-drop-inner { padding: 24px 20px; }
    .page-drop-inner p { font-size: 17px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
