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

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

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

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

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

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

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

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

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

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

.icv-tool-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.icv-format-menu,
.icv-workbench,
.icv-results {
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 34, 56, 0.07);
}

.icv-format-menu {
  align-self: stretch;
  padding: 20px 12px;
}

.icv-menu-heading {
  margin: 0 10px 12px;
  color: #152238;
  font-size: 16px;
  font-weight: 800;
}

.icv-format-nav {
  display: grid;
  gap: 4px;
}

.icv-format-link {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  border-left: 3px solid transparent;
  color: #40526b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  padding: 8px 10px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icv-format-link:hover {
  background: #f2f7ff;
  color: #1f65d6;
}

.icv-format-link.is-active {
  border-left-color: #1f65d6;
  background: #eaf2ff;
  color: #1554bc;
}

.icv-format-link:focus-visible,
.icv-button:focus-visible,
.icv-control select:focus-visible,
.icv-control input[type='range']:focus-visible,
.icv-faq summary:focus-visible {
  outline: 3px solid rgba(31, 101, 214, 0.26);
  outline-offset: 3px;
}

.icv-format-icon {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1f65d6;
  line-height: 1;
}

.icv-format-svg {
  width: 22px;
  height: 22px;
}

.icv-format-icon--jpg {
  background: #fff4e6;
  color: #c56a12;
}

.icv-format-icon--png {
  background: #eafaf4;
  color: #0b8b66;
}

.icv-format-icon--bmp {
  background: #f0f1ff;
  color: #5a64c9;
}

.icv-format-icon--webp {
  background: #eaf8ff;
  color: #1386c7;
}

.icv-format-icon--gif {
  background: #fff0f2;
  color: #ca3d5a;
}

.icv-format-icon--ico {
  background: #f4efff;
  color: #7b54c8;
}

.icv-format-icon--pdf {
  background: #fff0ef;
  color: #cb4f43;
}

.icv-format-link.is-active .icv-format-icon {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px currentColor;
}

.icv-format-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.icv-workbench {
  min-width: 0;
  overflow: hidden;
}

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

.icv-drop-zone {
  display: flex;
  min-height: 286px;
  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;
}

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

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

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

.icv-drop-zone svg {
  width: 42px;
  height: 42px;
}

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

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

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

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

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

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

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

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

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

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

.icv-control select:disabled {
  cursor: not-allowed;
  background: #f1f4f8;
  color: #62738a;
}

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

.icv-control-range.is-disabled {
  opacity: 0.5;
}

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

.icv-status {
  flex: 1 1 auto;
  margin: 0;
}

.icv-status.is-success {
  color: #217242;
}

.icv-status.is-error {
  color: #b42318;
}

.icv-target-note {
  margin: 0;
  text-align: right;
}

.icv-action-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.icv-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0 16px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.icv-button-primary:hover:not(:disabled) {
  border-color: #1554bc;
  background: #1554bc;
}

.icv-button-secondary {
  border-color: #c9d5e4;
  background: #ffffff;
  color: #23405f;
}

.icv-button-secondary:hover:not(:disabled) {
  border-color: #8ca7ca;
  background: #f5f8fc;
}

.icv-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.icv-results {
  margin-top: 24px;
  overflow: hidden;
}

.icv-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #dfe6ef;
}

.icv-results-heading .icv-eyebrow {
  margin-bottom: 6px;
}

.icv-results h2,
.icv-details h2 {
  font-size: 24px;
  line-height: 1.3;
}

.icv-result-list {
  display: grid;
}

.icv-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e5ebf2;
}

.icv-result-item:last-child {
  border-bottom: 0;
}

.icv-result-name {
  min-width: 0;
  color: #152238;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.icv-result-meta,
.icv-result-detail {
  margin-top: 4px;
  color: #62738a;
  font-size: 13px;
  line-height: 1.45;
}

.icv-result-detail {
  min-width: 160px;
  margin-top: 0;
  text-align: right;
}

.icv-result-status {
  min-width: 96px;
  color: #52647d;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.icv-result-status.is-done {
  color: #217242;
}

.icv-result-status.is-error {
  color: #b42318;
}

.icv-result-actions {
  display: flex;
  justify-content: flex-end;
}

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

.icv-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.icv-detail-grid > div {
  min-width: 0;
  padding: 0 0 18px;
  border-bottom: 2px solid #dce8f8;
}

.icv-detail-grid h3,
.icv-copy-block h2,
.icv-faq h2 {
  margin: 0;
  color: #152238;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.icv-detail-grid p,
.icv-copy-block p,
.icv-faq p {
  margin: 10px 0 0;
  color: #52647d;
  font-size: 15px;
  line-height: 1.72;
}

.icv-copy-block,
.icv-faq {
  margin-top: 42px;
}

.icv-faq details {
  border-bottom: 1px solid #dfe6ef;
}

.icv-faq summary {
  cursor: pointer;
  color: #24374f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
  padding: 18px 0;
}

.icv-faq summary::-webkit-details-marker {
  display: none;
}

.icv-faq summary::after {
  float: right;
  color: #1f65d6;
  content: '+';
  font-size: 22px;
  font-weight: 400;
}

.icv-faq details[open] summary::after {
  content: '−';
}

.icv-faq details p {
  margin: 0 0 18px;
}

@media (max-width: 860px) {
  .icv-tool-layout {
    grid-template-columns: 1fr;
  }

  .icv-format-menu {
    padding: 18px;
  }

  .icv-menu-heading {
    margin-left: 0;
  }

  .icv-format-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .icv-format-link {
    border: 1px solid #dfe6ef;
    border-left: 3px solid #dfe6ef;
    border-radius: 6px;
  }

  .icv-format-link.is-active {
    border-color: #7da6ea;
    border-left-color: #1f65d6;
  }
}

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

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

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

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

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

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

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

  .image-converter-page {
    padding-top: 86px;
  }

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

  .icv-hero {
    padding: 26px 0 22px;
  }

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

  .icv-lead {
    font-size: 15px;
  }

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

  .icv-drop-zone {
    min-height: 228px;
    padding: 20px;
  }

  .icv-settings {
    grid-template-columns: 1fr;
  }

  .icv-control {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid #dfe6ef;
  }

  .icv-control:last-child {
    border-bottom: 0;
  }

  .icv-actions {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .icv-target-note {
    text-align: left;
  }

  .icv-action-buttons,
  .icv-action-buttons .icv-button {
    width: 100%;
  }

  .icv-action-buttons .icv-button {
    flex: 1 1 0;
  }

  .icv-results-heading {
    align-items: flex-start;
    padding: 18px 16px;
  }

  .icv-result-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .icv-result-detail,
  .icv-result-status,
  .icv-result-actions {
    min-width: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .icv-detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .icv-details {
    margin-top: 42px;
  }
}

@media (max-width: 460px) {
  .icv-format-nav {
    grid-template-columns: 1fr;
  }

  .icv-action-buttons {
    display: grid;
  }

  .icv-results-heading {
    display: grid;
  }

  .icv-results-heading .icv-button {
    width: 100%;
  }
}
