/* PDF to image additions on top of /image-converter/styles.css */
.note.warn { color: var(--warn); }
.note.bad { color: var(--bad); }
.qitem .thumb { background: #fff; background-image: none; }
.qitem .pagesrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.qitem .pagesrow .in { width: 150px; }
.qitem .pwrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.qitem .pwrow .in { width: 180px; }
.qitem .pgridwrap { grid-column: 1 / -1; }
.pgtools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding: 2px; }
.pcell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border: 2px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; opacity: 0.55; }
.pcell[aria-pressed="true"] { border-color: var(--accent); color: var(--text); opacity: 1; }
.pcell img, .pcell .ph { width: 80px; height: 104px; object-fit: contain; background: #fff; border-radius: 3px; }
.pcell .ph { background: var(--panel-2); }
.sample { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--panel-2); font-size: 12px; }
.sample a.pic { display: block; max-height: 320px; overflow: auto; border-radius: 6px; background: #d8d8d8; text-align: center; }
.sample img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.sample p { margin: 8px 0 0; color: var(--muted); }
.reslist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; max-height: 50vh; overflow: auto; }
.reslist li { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.reslist li a { color: var(--accent); overflow-wrap: anywhere; }
.reslist li.bad { color: var(--bad); }
.reslist li .why { flex-basis: 100%; color: var(--warn); }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.plain:disabled { opacity: 0.6; }
.fmtguide { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.fmtguide li { margin: 3px 0; }
