.jpgs-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  color: #172026;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jpgs-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 18px;
  box-shadow: 0 18px 40px rgba(23, 32, 38, 0.08);
}

.jpgs-panel {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 38, 0.08);
  padding: clamp(22px, 4vw, 36px);
}

.jpgs-header {
  margin-bottom: 28px;
}

.jpgs-eyebrow {
  margin: 0 0 8px;
  color: #0f7b6c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.jpgs-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.jpgs-form {
  display: grid;
  gap: 18px;
}

.jpgs-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 4px;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  background: #edf2f3;
}

.jpgs-segmented label {
  min-width: 0;
  margin: 0;
}

.jpgs-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jpgs-segmented span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 6px;
  color: #66727c;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.jpgs-segmented input:checked + span {
  background: #ffffff;
  color: #172026;
  box-shadow: 0 1px 6px rgba(23, 32, 38, 0.12);
}

.jpgs-field {
  display: grid;
  gap: 8px;
}

.jpgs-field span {
  color: #66727c;
  font-size: 14px;
  font-weight: 700;
}

.jpgs-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jpgs-field-heading span {
  min-width: 0;
}

.jpgs-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  color: #172026;
  background: #ffffff;
}

.jpgs-field input:focus-visible,
.jpgs-panel button:focus-visible,
.jpgs-segmented input:focus-visible + span {
  outline: 3px solid rgba(15, 123, 108, 0.22);
  outline-offset: 2px;
}

.jpgs-captcha {
  display: block;
}

.jpgs-captcha strong {
  display: flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  padding: 0 14px;
  background: #f7faf9;
  color: #172026;
  font-size: 18px;
}

.jpgs-pool {
  display: grid;
  gap: 8px;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  padding: 14px;
  background: #f7faf9;
}

.jpgs-pool-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 24px;
}

.jpgs-pool-row span {
  flex: 0 0 auto;
  color: #66727c;
  font-size: 13px;
  font-weight: 800;
}

.jpgs-pool-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 13px;
}

.jpgs-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.jpgs-panel button {
  min-height: 48px;
  border: 1px solid #0f7b6c;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.jpgs-panel button[type="button"] {
  background: #ffffff;
  color: #075f54;
}

.jpgs-panel button[type="submit"] {
  background: #0f7b6c;
  color: #ffffff;
}

.jpgs-panel button.jpgs-refresh-button {
  min-height: 0;
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  background: #edf8f6;
  color: #075f54;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.jpgs-panel button.jpgs-refresh-button:hover {
  background: #d8f0ec;
}

.jpgs-panel button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.jpgs-status {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #d9e0e4;
}

.jpgs-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
}

.jpgs-status-row span {
  color: #66727c;
  font-weight: 700;
}

.jpgs-status-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.jpgs-status p {
  margin: 8px 0 0;
  color: #66727c;
  line-height: 1.6;
}

.jpgs-status.is-ok p {
  color: #0b6b3f;
}

.jpgs-status.is-warn p {
  color: #9d4d00;
}

.jpgs-status.is-error p {
  color: #a12a2a;
}

@media (max-width: 560px) {
  .jpgs-panel {
    padding: 20px;
  }

  .jpgs-actions {
    grid-template-columns: 1fr;
  }

  .jpgs-pool-row {
    display: grid;
    gap: 4px;
  }

  .jpgs-pool-row strong {
    text-align: left;
  }
}
