/* pdf-compress 固有スタイル */

.tool-main:has(.pc-layout:not([hidden])) { max-width: 1200px; }

.pc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 1rem; align-items: start; }
.pc-options { min-width: 0; }
.pc-sticky { position: sticky; top: 0.75rem; }
.pc-preview .card { margin-bottom: 0; }

.pc-presets { display: grid; gap: 0.5rem; }
input[type="range"] { width: 100%; }

.pc-stage { max-height: 680px; overflow: auto; }
.pc-stage img { display: block; background: #fff; box-shadow: 0 0 0 1px var(--border); max-width: 100%; height: auto; }
#pv-stage.busy { opacity: 0.6; }
.pc-est { margin-top: 0.75rem; font-size: 0.88rem; color: var(--text); text-align: center; min-height: 1.3em; }
.pc-est strong { font-weight: 700; }

.pc-result { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.pc-sizes { display: flex; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.pc-sizes > div { display: flex; flex-direction: column; gap: 0.1rem; }
.pc-sizes strong { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.pc-arrow { color: var(--text-sub); padding-bottom: 0.15rem; flex-direction: row !important; }
.pc-result.bad #r-pct, .pc-result.bad #r-after { color: var(--pt-err); }

.pc-note ul { margin: 0.4rem 0 0 1.1rem; font-size: 0.85rem; color: var(--text-sub); line-height: 1.7; }
.pc-note li strong { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .pc-layout { grid-template-columns: 1fr; }
  .pc-preview { order: -1; }
  .pc-sticky { position: static; }
}
