/* Public list reader; all colour and interaction rules stay inside the scanner. */
.hyq-catalog .hy-list {
  --scan-ink: #281d2d;
  --scan-muted: #605769;
  --scan-accent: #fa951f;
  --scan-edge: #ded9df;
  --scan-focus: #99520b;
  --scan-soft: #f7f5f8;
  color: var(--scan-ink);
  background: #fff;
  border: 1px solid var(--scan-edge);
  border-radius: 16px;
  box-shadow: 0 4px 18px #3527390a;
  margin: 16px 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font: 400 15px/1.5 Poppins, "Segoe UI", sans-serif;
  text-align: start;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: rgba(255,158,37,.18);
}
.hyq-catalog .hy-list, .hyq-catalog .hy-list * { box-sizing: border-box; }
.hyq-catalog .hy-list [hidden] { display: none !important; }
.hyq-catalog .hy-list > summary {
  min-height: 58px;
  padding: 14px clamp(12px,3vw,24px);
  display: flex; align-items: center; gap: 12px;
  list-style: none; cursor: pointer;
  background: var(--scan-ink) !important; color: #fff !important;
  border-radius: 15px;
  font-weight: 650; font-size: clamp(17px,2vw,21px); line-height: 1.35;
}
.hyq-catalog .hy-list > summary::-webkit-details-marker { display: none; }
.hyq-catalog .hy-list > summary::after {
  content: ""; flex: 0 0 9px; height: 9px; margin-inline-start: auto;
  border: solid #ffb351; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hyq-catalog .hy-list[open] > summary { border-radius: 15px 15px 0 0; }
.hyq-catalog .hy-list[open] > summary::after { transform: rotate(225deg); }
.hyq-catalog .hy-list .list-entry-icon {
  display: inline-grid; place-items: center; flex: none; width: 35px; height: 35px;
  border-radius: 10px; color: #ffc16c; background: #46344f; font-size: 18px;
}
.hyq-catalog .hy-list .list-entry-icon svg { width: 20px; height: 20px; }
.hyq-catalog .hy-list .hy-list-body {
  display: grid; grid-template-columns: minmax(0,1fr);
  align-items: start; gap: 16px; padding: clamp(14px,3vw,24px);
  min-width: 0;
}
.hyq-catalog .hy-list .hy-list-body > *, .hyq-catalog .hy-list .list-row > * { min-width: 0; }
.hyq-catalog .hy-list label {
  display: grid; align-content: start; gap: 5px; margin: 0; color: var(--scan-ink);
  font: 600 15px/1.45 Poppins, "Segoe UI", sans-serif;
}
.hyq-catalog .hy-list :is(input, textarea, select) {
  height: auto; min-width: 0; max-width: 100%; width: 100%;
  color: var(--scan-ink); background-color: white !important;
  border: 1px solid #c8c1cc !important; border-radius: 9px;
  box-shadow: none; font: 400 16px/1.4 Poppins, "Segoe UI", sans-serif;
  padding: 10px 12px; letter-spacing: normal;
}
.hyq-catalog .hy-list :is(input, select):not([type=checkbox]):not([type=range]) { min-height: 44px; }
.hyq-catalog .hy-list input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: #43304f; }
.hyq-catalog .hy-list input[type=range] { min-height: 44px; padding: 0; accent-color: #664478; }
.hyq-catalog .hy-list input[type=file] { padding: 5px; font-size: 15px; }
.hyq-catalog .hy-list input[type=file]::file-selector-button {
  background: #fff3df; color: #3d2c1c; border: 1px solid #eac188; border-radius: 6px;
  font: inherit; font-weight: 600; min-height: 36px; padding: 5px 10px; margin-inline-end: 8px;
}
.hyq-catalog .hy-list textarea { resize: vertical; min-height: 128px; }
.hyq-catalog .hy-list ::placeholder { color: #726b76; opacity: 1; }
.hyq-catalog .hy-list p, .hyq-catalog .hy-list small { margin: 0; font-size: 15px; line-height: 1.55; color: var(--scan-muted); }
.hyq-catalog .hy-list :is(.list-guide,.list-intro) { max-width: 78ch; }
.hyq-catalog .hy-list :is(.list-tools,.list-photo-tools,.list-actions,.list-bulk,.list-crop-controls) {
  display: flex; flex-wrap: wrap; align-items: end; gap: 10px;
}
.hyq-catalog .hy-list :is(.list-tools,.list-photo-tools,.list-crop-controls) > label { flex: 1 1 170px; min-width: 0; }
.hyq-catalog .hy-list .list-preview-wrap { position: relative; max-width: 100%; width: fit-content; min-width: 0; margin: 0; }
.hyq-catalog .hy-list .list-preview { display: block; max-width: 100%; width: auto; max-height: 420px; height: auto; object-fit: contain; border-radius: 6px; }
.hyq-catalog .hy-list .list-split-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--scan-accent); box-shadow: 0 0 0 1px #28193499; pointer-events: none; }
.hyq-catalog .hy-list .list-crop-box { position: absolute; pointer-events: none; border: 2px solid var(--scan-accent); }
.hyq-catalog .hy-list .list-text-wrap, .hyq-catalog .hy-list .list-family { border: 1px solid var(--scan-edge); border-radius: 10px; padding: 12px; }
.hyq-catalog .hy-list :is(.list-text-wrap,.list-family) > summary { padding: 0; min-height: 32px; cursor: pointer; color: #41324c; font-size: 15px; }
.hyq-catalog .hy-list :is(.list-text-wrap,.list-family)[open] > summary { margin-bottom: 10px; }
.hyq-catalog .hy-list button {
  --scan-button-bg: var(--scan-ink); --scan-button-text: #fff; --scan-button-hover: #51405d;
  min-height: 44px; height: auto; min-width: 0; max-width: 100%;
  border: 1px solid transparent !important; border-radius: 10px;
  padding: 10px 16px; cursor: pointer;
  font: 600 15px/1.4 Poppins, "Segoe UI", sans-serif;
  text-align: center; text-transform: none; letter-spacing: 0; white-space: normal;
  box-shadow: none !important; background-image: none !important;
  background-color: var(--scan-button-bg) !important; color: var(--scan-button-text) !important;
}
.hyq-catalog .hy-list :is(.commit-list,.match-list) {
  --scan-button-bg: var(--scan-accent); --scan-button-text: var(--scan-ink); --scan-button-hover: #ffb14a;
}
.hyq-catalog .hy-list button:is(:hover,:active,:focus):not(:disabled) {
  background: var(--scan-button-hover) !important; color: var(--scan-button-text) !important;
  border-color: #a58a67 !important;
}
.hyq-catalog .hy-list button:disabled { cursor: default; opacity: .58; }
.hyq-catalog .hy-list :is(button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--scan-focus) !important; outline-offset: 2px; box-shadow: 0 0 0 2px white !important;
}
.hyq-catalog .hy-list .list-msg:not(:empty) { background: #f5f2f6; border-inline-start: 3px solid #d38a33; padding: 10px 12px; color: #48394e; border-radius: 4px; }
.hyq-catalog .hy-list .list-rows { display: grid; gap: 10px; }
.hyq-catalog .hy-list :is(fieldset,.list-row) { min-inline-size: 0; min-width: 0; margin: 0; }
.hyq-catalog .hy-list fieldset {
  display: grid; gap: 10px; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  padding: 12px; border: 1px solid var(--scan-edge); border-radius: 12px; background: white;
}
.hyq-catalog .hy-list legend { font-weight: 650; font-size: 15px; max-width: 100%; color: var(--scan-ink); }
.hyq-catalog .hy-list fieldset > label:nth-of-type(-n+2), .hyq-catalog .hy-list .list-row-top { grid-column: 1/-1; }
.hyq-catalog .hy-list .list-row-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hyq-catalog .hy-list .list-row-state { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 6px; background: #faf0de; color: #613f13; }
.hyq-catalog .hy-list .list-row-no { font-weight: 650; color: #64596b; }
.hyq-catalog .hy-list .list-bulk { justify-content: space-between; align-items: center; }
@media (min-width: 850px) {
  .hyq-catalog .hy-list fieldset { grid-template-columns: minmax(140px,1fr) minmax(180px,1.4fr) minmax(95px,.4fr) minmax(100px,.5fr); }
  .hyq-catalog .hy-list fieldset > label:nth-of-type(-n+2) { grid-column: auto; }
}
@media (max-width: 540px) {
  .hyq-catalog .hy-list :is(.list-photo-tools,.list-crop-controls,.list-tools,.list-actions,.list-bulk) > button,
  .hyq-catalog .hy-list :is(.list-actions,.list-bulk) > label { flex: 1 1 140px; }
  .hyq-catalog .hy-list .hy-list-body { gap: 12px; }
}
.hyq-catalog .hy-list .list-entry strong,
.hyq-catalog .hy-list .list-entry small { display: block; }
.hyq-catalog .hy-list .list-entry small { color: #e0d7e4; font-weight: 400; margin-top: 2px; }
.hyq-catalog .hy-list .list-actions { align-items: stretch; }
.hyq-catalog .hy-list .choose-photo,
.hyq-catalog .hy-list .read-photo { --scan-button-bg: var(--scan-accent); --scan-button-text: var(--scan-ink); --scan-button-hover: #ffb14a; }
.hyq-catalog .hy-list :is(.paste-list,.clear-crop,.list-crop,.select-ready) {
  --scan-button-bg: #f2eef4; --scan-button-text: #3d2e46; --scan-button-hover: #e5dbe9;
}
.hyq-catalog .hy-list .list-crop[aria-pressed=true] {
  --scan-button-bg: #fce8c8; --scan-button-text: #4d3418; --scan-button-hover: #ffdaa1;
  border-color: #b87520 !important;
}
.hyq-catalog .hy-list :is(.list-photo-stage,.list-review) { display: grid; grid-template-columns: minmax(0,1fr); justify-items: stretch; gap: 12px; }
.hyq-catalog .hy-list .list-preview-wrap {
  max-width: min(100%,410px); border-radius: 7px; overflow: hidden;
}
.hyq-catalog .hy-list .list-preview-wrap.is-cropping,
.hyq-catalog .hy-list .list-preview-wrap.is-cropping img { touch-action: none; cursor: crosshair; user-select: none; }
.hyq-catalog .hy-list .list-preview { max-height: 460px; }
.hyq-catalog .hy-list .list-crop-box { box-shadow: 0 0 0 900px #21172f66; }
.hyq-catalog .hy-list .list-text-wrap[open] > label { margin-bottom: 12px; }
.hyq-catalog .hy-list .list-review h3 { margin: 0; font: 650 clamp(17px,2vw,20px)/1.4 Poppins, "Segoe UI", sans-serif; color: var(--scan-ink); }
.hyq-catalog .hy-list .list-bulk { padding: 10px; border: 1px solid var(--scan-edge); border-radius: 9px; background: var(--scan-soft); }
.hyq-catalog .hy-list .list-count { color: #48354f; font-weight: 650; }
.hyq-catalog .hy-list p.list-row-state { justify-self: start; grid-column: 1/-1; color: #62431a; background-color: #fff1da; }
.hyq-catalog .hy-list :is(.read-photo,.commit-list) { justify-self: start; }
.hyq-catalog .hy-list .list-row:has(input[type=checkbox]:checked) { border-color: #ae781f; background-color: #fffbf4; }
@media(max-width:540px) {
  .hyq-catalog .hy-list :is(.commit-list,.read-photo) { justify-self: stretch; }
}

.hyq-catalog .hy-list .list-line-image{display:block;grid-column:1/-1;max-width:100%;height:auto;max-height:106px;object-fit:contain;border-radius:5px;background:white}
.hyq-catalog .hy-list .list-preview{height:auto;max-height:none;width:100%;display:block}

/* All disclosure states share a high-contrast pair on touch and keyboard. */
.hyq-catalog .hy-list > summary.list-entry,
.hyq-catalog .hy-list > summary.list-entry:is(:hover,:active,:focus,:focus-visible) {
  color:#fff !important; background:var(--scan-ink) !important;
  border-inline-start:4px solid var(--scan-accent);
}
.hyq-catalog .hy-list > .list-entry strong { color:#fff !important; }
.hyq-catalog .hy-list > .list-entry small { color:#f4eff5 !important; }
.hyq-catalog .hy-list > .list-entry .list-entry-icon {
  color:var(--scan-ink); background:var(--scan-accent);
}
.hyq-catalog .hy-list > .list-entry::after { border-color:var(--scan-accent); }
.hyq-catalog .hy-list input:is([type=checkbox],[type=range]) {accent-color:var(--scan-ink)}
.hyq-catalog .hy-list .list-word-picks {
  grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px;
}
.hyq-catalog .hy-list .list-word-picks > span {
  color:var(--scan-muted); font-weight:600; margin-inline-end:3px;
}
.hyq-catalog .hy-list button.list-word-choice {
  --scan-button-bg:#fff6e9; --scan-button-text:var(--scan-ink); --scan-button-hover:#ffe4bb;
  min-height:44px; border:1px solid #e5c391 !important; border-radius:10px;
  padding:6px 14px; font-size:15px; overflow-wrap:anywhere;
}
.hyq-catalog .hy-list .list-reading { grid-column:1/-1; color:var(--scan-muted); }
.hyq-catalog .hy-list .list-reading > summary { width:fit-content; cursor:pointer; font-size:15px; }
.hyq-catalog .hy-list .list-reading > span { display:block; margin-top:4px; overflow-wrap:anywhere; }
.hyq-catalog .hy-list .list-row-qty { display:grid; align-content:start; gap:6px; }
.hyq-catalog .hy-list .list-row-qty > button { justify-self:start; }
