/* Image Compressor: only the parts the shared Media Engine skeleton doesn't already have. */

/* Live summary in the top bar */
.ic-sum { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.ic-sum span { display: grid; gap: 1px; min-width: 84px; padding: 4px 12px; border-radius: 9px; text-align: center; }
.ic-sum span + span { box-shadow: -1px 0 0 var(--line); }
.ic-sum small { color: #71717a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ic-sum b { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.ic-sum .ic-saved b { color: #4ade80; }
.ic-sum.worse .ic-saved b { color: #fbbf24; }

/* Sidebar: result first, then three-across tiles (centred, like Image Studio's quick sizes) */
.ic-res { text-align: center; }
.ic-badge { display: table; margin: 0 auto 12px; padding: 6px 14px; border: 1.5px solid #4ade80; border-radius: 999px; background: #000; color: #4ade80; font: 800 12.5px Inter, system-ui, sans-serif; font-style: normal; white-space: nowrap; }
.ic-badge.warn { border-color: #fbbf24; color: #fbbf24; }
.ic-res-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; }
.ic-res-row span { display: grid; gap: 2px; justify-items: center; }
.ic-res-row small { color: #71717a; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ic-res-row b { color: #fff; font: 800 20px/1.1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ic-res-row i { color: #52525b; font-style: normal; font-size: 18px; margin-top: 12px; }
.ic .warn { color: #fbbf24; }
.ic-three { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
.ic .ic-three button { min-height: 0; justify-content: center; align-items: center; gap: 2px; text-align: center; padding: 10px 4px; }
.ic .ic-three button b { font-size: 13px; }
.ic .ic-three button small { white-space: nowrap; }
.ic-slider { display: block; width: 100%; margin: 14px 0 8px; accent-color: #22d3ee; }
.ic-slider:disabled { opacity: .35; }
.ic [data-fmt][disabled] { opacity: .4; cursor: not-allowed; }
/* Save as picker in the top bar (Image Studio's menu, shown here) */
.ic-typepop { position: relative; }
.ic-typepop .mx-pill { gap: 6px; }

/* Small "working" pill while a new version is made */
.ic-working { position: absolute; left: 50%; bottom: 18px; z-index: 6; display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; transform: translateX(-50%);
  background: rgba(10,10,15,.85); color: #d4d4d8; font: 600 12px Inter, system-ui, sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.ic-working span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #22d3ee; animation: icSpin .8s linear infinite; }
@keyframes icSpin { to { transform: rotate(360deg); } }

/* Compare: the line is drawn on the overlay canvas, so the stage shows a sideways cursor */
.ic[data-tool="compare"] .mx-board { cursor: ew-resize; }

/* The sidebar shows the result, so the old top-bar summary stays hidden (one place to look) */
.ic .ic-sum { display: none !important; }

/* Phones: the panel tabs already switch Compress / Compare and pinch moves around, so the tool strip would only repeat them */
@media (max-width: 760px) { .ic .mx-rail, .ic .mx-railmore { display: none !important; } }
