body.page-template-page-image-compressor {
  margin: 0 !important;
  background: #f6f8fb !important;
  color: #152238;
}

body.page-template-page-image-compressor .container-page,
body.page-template-page-image-compressor .branding,
body.page-template-page-image-compressor footer.footer,
body.page-template-page-image-compressor .header,
body.page-template-page-image-compressor .site-search,
body.page-template-page-image-compressor .topbar {
  display: none !important;
}

.image-compressor-page,
.image-compressor-page * {
  box-sizing: border-box;
}

.image-compressor-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #152238;
  padding: 102px 0 72px;
}

.ic-shell {
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
}

.ic-hero {
  padding: 32px 0 28px;
}

.ic-eyebrow {
  margin: 0 0 10px;
  color: #1f65d6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.ic-hero h1,
.ic-results h2,
.ic-details h2 {
  margin: 0;
  color: #152238;
  font-weight: 800;
  letter-spacing: 0;
}

.ic-hero h1 {
  font-size: 34px;
  line-height: 1.2;
}

.ic-lead {
  max-width: 700px;
  margin: 14px 0 0;
  color: #52647d;
  font-size: 16px;
  line-height: 1.65;
}

.ic-workspace {
  overflow: hidden;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 34, 56, 0.08);
}

.ic-upload-panel {
  padding: 24px;
}

.ic-drop-zone {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 1px dashed #8ba7cb;
  border-radius: 8px;
  background: #f8fbff;
  color: #1f65d6;
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ic-drop-zone:hover,
.ic-drop-zone.is-dragging {
  border-color: #e88717;
  background: #fff8ef;
  color: #bc6810;
}

.ic-drop-zone:focus-within {
  outline: 3px solid rgba(31, 101, 214, 0.24);
  outline-offset: 3px;
}

.ic-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.ic-drop-zone svg {
  width: 38px;
  height: 38px;
}

.ic-drop-title {
  color: #152238;
  font-size: 18px;
  font-weight: 800;
}

.ic-drop-copy,
.ic-file-hint,
.ic-status {
  color: #62738a;
  font-size: 14px;
  line-height: 1.55;
}

.ic-file-hint {
  margin: 12px 0 0;
}

.ic-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dfe6ef;
  background: #fbfcfe;
}

.ic-control {
  min-width: 0;
  padding: 20px 24px;
  border-right: 1px solid #dfe6ef;
}

.ic-control:last-child {
  border-right: 0;
}

.ic-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #32445e;
  font-size: 14px;
  font-weight: 700;
}

.ic-control output {
  color: #1f65d6;
  font-variant-numeric: tabular-nums;
}

.ic-control select,
.ic-control input[type='range'] {
  width: 100%;
  margin-top: 10px;
}

.ic-control select {
  height: 42px;
  border: 1px solid #c9d5e4;
  border-radius: 6px;
  background: #ffffff;
  color: #152238;
  font: inherit;
  padding: 0 10px;
}

.ic-control select:focus,
.ic-control input[type='range']:focus {
  outline: 3px solid rgba(31, 101, 214, 0.22);
  outline-offset: 2px;
}

.ic-control input[type='range'] {
  accent-color: #1f65d6;
}

.ic-control input[type='range']:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ic-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-top: 1px solid #dfe6ef;
}

.ic-status {
  margin: 0;
}

.ic-status.is-success {
  color: #167347;
}

.ic-status.is-error {
  color: #b54728;
}

.ic-action-buttons,
.ic-results-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ic-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ic-button:focus-visible {
  outline: 3px solid rgba(31, 101, 214, 0.3);
  outline-offset: 2px;
}

.ic-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ic-button-primary {
  background: #1f65d6;
  color: #ffffff;
}

.ic-button-primary:hover:not(:disabled) {
  background: #1856bb;
}

.ic-button-secondary {
  border-color: #b9c8db;
  background: #ffffff;
  color: #29415f;
}

.ic-button-secondary:hover:not(:disabled) {
  border-color: #1f65d6;
  color: #1f65d6;
}

.ic-results {
  margin-top: 28px;
  border-top: 2px solid #1f65d6;
  background: #ffffff;
}

.ic-results-heading {
  justify-content: space-between;
  padding: 20px 0;
}

.ic-results h2,
.ic-details h2 {
  font-size: 24px;
}

.ic-result-list {
  border-top: 1px solid #dfe6ef;
}

.ic-result-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #dfe6ef;
}

.ic-preview {
  display: grid;
  overflow: hidden;
  width: 118px;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px solid #d5dfeb;
  border-radius: 6px;
  background: #f4f7fb;
}

.ic-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ic-preview-state {
  color: #62738a;
  font-size: 13px;
  text-align: center;
}

.ic-result-meta {
  min-width: 0;
}

.ic-result-name {
  overflow: hidden;
  color: #152238;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ic-result-info,
.ic-result-note {
  margin: 6px 0 0;
  color: #62738a;
  font-size: 14px;
  line-height: 1.5;
}

.ic-result-savings {
  color: #167347;
  font-weight: 750;
}

.ic-result-growth,
.ic-result-error {
  color: #b54728;
  font-weight: 750;
}

.ic-result-actions {
  justify-self: end;
}

.ic-details {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid #d7e0ec;
}

.ic-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid #dfe6ef;
  border-bottom: 1px solid #dfe6ef;
}

.ic-detail-grid > div {
  padding: 20px 24px 20px 0;
  border-right: 1px solid #dfe6ef;
}

.ic-detail-grid > div + div {
  padding-left: 24px;
}

.ic-detail-grid > div:last-child {
  border-right: 0;
}

.ic-detail-grid h3,
.ic-faq summary {
  margin: 0;
  color: #243954;
  font-size: 16px;
  font-weight: 750;
}

.ic-detail-grid p,
.ic-faq p {
  margin: 8px 0 0;
  color: #52647d;
  font-size: 14px;
  line-height: 1.65;
}

.ic-faq {
  margin-top: 42px;
}

.ic-faq details {
  border-bottom: 1px solid #dfe6ef;
  padding: 16px 0;
}

.ic-faq summary {
  cursor: pointer;
}

.ic-faq summary:focus-visible {
  outline: 3px solid rgba(31, 101, 214, 0.24);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  /* Keep the shared navigation within a narrow tool-page viewport. */
  body.page-template-page-image-compressor .csh-navbar-inner {
    height: 64px;
    padding: 0 14px;
  }

  body.page-template-page-image-compressor .csh-navbar-logo-img {
    height: 32px;
    max-width: 172px;
  }

  body.page-template-page-image-compressor .csh-navbar-actions {
    gap: 0;
  }

  body.page-template-page-image-compressor .csh-search-form {
    padding: 0;
    border-color: transparent;
    background: transparent;
  }

  body.page-template-page-image-compressor .csh-search-input,
  body.page-template-page-image-compressor .csh-lang-switch {
    display: none;
  }

  body.page-template-page-image-compressor .csh-search-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #475569;
  }

  body.page-template-page-image-compressor .csh-search-btn:hover {
    box-shadow: none;
    transform: none;
  }

  .image-compressor-page {
    padding: 82px 0 52px;
  }

  .ic-shell {
    width: min(100% - 28px, 1160px);
  }

  .ic-hero h1 {
    font-size: 28px;
  }

  .ic-upload-panel {
    padding: 16px;
  }

  .ic-drop-zone {
    min-height: 190px;
  }

  .ic-settings,
  .ic-detail-grid {
    grid-template-columns: 1fr;
  }

  .ic-control,
  .ic-control:last-child,
  .ic-detail-grid > div,
  .ic-detail-grid > div + div,
  .ic-detail-grid > div:last-child {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid #dfe6ef;
  }

  .ic-settings .ic-control:last-child,
  .ic-detail-grid > div:last-child {
    border-bottom: 0;
  }

  .ic-actions,
  .ic-results-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .ic-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ic-button {
    width: 100%;
  }

  .ic-result-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .ic-preview {
    width: 92px;
  }

  .ic-result-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .ic-result-name {
    font-size: 15px;
  }

  .ic-details {
    margin-top: 48px;
  }
}
