.gif-workspace { display: grid; gap: 24px; align-items: start; }
.gif-settings { padding: 24px; min-width: 0; }
.gif-settings .file-drop { margin: 0; min-height: 128px; }
.gif-settings .file-drop-title { overflow-wrap: anywhere; }
.gif-settings #gif-sample { justify-self: start; margin-top: 8px; }
.gif-target { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; margin-top: 16px; }
.gif-target input, .gif-target select { width: 100%; }
.gif-options { margin-block: 20px; border-block: 1px solid var(--line); padding-block: 4px; }
.gif-options summary { cursor: pointer; padding-block: 12px; min-height: 44px; }
.gif-options .gif-check { display: flex; gap: 12px; align-items: center; min-height: 44px; margin: 8px 0; }
.gif-check input { width: 20px; height: 20px; flex: 0 0 20px; }
.gif-options p, .gif-local { font-size: 13px; color: var(--muted); line-height: 1.5; }
.gif-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gif-actions button { flex: 1; }
.gif-settings progress { width: 100%; margin-top: 16px; accent-color: var(--brand); }
.gif-settings .tool-status { margin: 16px 0 0; min-height: 1.5em; }
.gif-local { margin: 16px 0 0; }
.gif-review { padding: 20px; min-width: 0; }
.gif-preview-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.gif-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gif-comparison figure { margin: 0; min-width: 0; }
.gif-comparison figcaption { margin-bottom: 12px; font-size: 16px; }
.gif-stage { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gif-stage img, .gif-stage canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background-color: var(--surface); background-image: conic-gradient(color-mix(in srgb, var(--line) 20%, var(--surface)) 25%, transparent 0 50%, color-mix(in srgb, var(--line) 20%, var(--surface)) 0 75%, transparent 0); background-size: 16px 16px; }
.gif-stage p { margin: 0; padding: 12px; background: var(--surface); font-size: 13px; }
.gif-comparison strong { display: block; margin-top: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gif-comparison figure > p { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; color: var(--muted); margin: 4px 0 0; }
.gif-outcome { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.gif-outcome > strong { display: inline-block; padding: 4px 8px; background: var(--brand-soft); }
.gif-outcome[data-met="false"] > strong { background: var(--accent-soft); }
.gif-outcome > span { display: inline-block; margin: 8px; font-size: 14px; }
.gif-outcome p { color: var(--muted); font-size: 14px; }
.gif-outcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gif-guide { margin-top: 40px; }
.gif-site [hidden] { display: none !important; }
.gif-settings:has(+ .gif-review:not([hidden])) .file-drop { min-height: 64px; }
.gif-settings:has(+ .gif-review:not([hidden])) .file-drop-hint { display: none; }
@media (min-width: 900px) {
  .gif-workspace:has(.gif-review:not([hidden])) { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
  .gif-settings { max-width: 560px; }
  .gif-workspace:has(.gif-review[hidden]) .gif-settings { width: 100%; }
}
@media (max-width: 380px) {
  .gif-review, .gif-settings { padding: 16px; }
  .gif-comparison { gap: 10px; }
}
