.photo-tool {
  padding-bottom: 28px;
}
.photo-tool .intro-hero {
  padding: 42px 0 26px;
  text-align: center;
}
.photo-tool h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.photo-tool .subtitle {
  max-width: 780px;
  margin: 0 auto;
  color: #aab5c5;
  line-height: 1.7;
}
.photo-tool .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #79e0bf;
  font-weight: 800;
}
.photo-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  background: #0d121a;
  border: 1px solid #24303f;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}
.photo-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.photo-controls label,
.photo-field label {
  display: block;
  font-weight: 750;
  font-size: 12px;
  color: #cbd5e2;
  margin-bottom: 7px;
}
.photo-controls input:not([type="checkbox"]),
.photo-controls select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #344355;
  background: #080d14;
  color: #e8f0fa;
  border-radius: 9px;
  padding: 10px;
  font: inherit;
}
.photo-controls input[type="file"] {
  font-size: 12px;
  line-height: 1.4;
}
.photo-controls input[type="range"] {
  padding: 7px 0;
  accent-color: #66dcb3;
}
.photo-controls input[type="color"] {
  height: 45px;
  cursor: pointer;
}
.photo-controls output {
  font-variant-numeric: tabular-nums;
  color: #91e5cb;
}
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photo-hint {
  color: #97a5b8;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.photo-notice {
  background: #101e28;
  border: 1px solid #264958;
  border-radius: 10px;
  padding: 12px;
  color: #b9d5df;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.photo-button {
  border: 1px solid #2b6c59;
  border-radius: 9px;
  background: #70e5ba;
  color: #071710;
  padding: 11px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  min-height: 44px;
}
.photo-button.secondary {
  color: #c6d4e3;
  background: #151f2a;
  border-color: #344355;
}
.photo-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.photo-controls button:focus-visible,
.photo-controls input:focus-visible,
.photo-controls select:focus-visible,
.photo-canvas:focus-visible {
  outline: 3px solid #54baff;
  outline-offset: 3px;
}
.photo-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.photo-actions button {
  flex: 1;
}
.photo-preview {
  min-width: 0;
}
.photo-preview h2 {
  font-size: 14px;
  margin: 0 0 10px;
}
.photo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid #2b3747;
  border-radius: 12px;
  background-color: #1f2630;
  background-image:
    linear-gradient(45deg, #151b24 25%, transparent 25%),
    linear-gradient(-45deg, #151b24 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #151b24 75%),
    linear-gradient(-45deg, transparent 75%, #151b24 75%);
  background-size: 24px 24px;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
}
.photo-canvas {
  max-width: 100%;
  height: auto;
  max-height: 650px;
  display: block;
}
.photo-canvas[hidden] {
  display: none;
}
.photo-empty {
  padding: 60px 22px;
  text-align: center;
  color: #93a1b4;
  font-size: 13px;
  max-width: 350px;
}
.photo-caption {
  color: #9baabe;
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
}
.photo-status {
  font-size: 13px;
  line-height: 1.6;
  color: #b9ccdf;
  min-height: 22px;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.photo-status.error {
  color: #ffaeae;
}
.photo-status.success {
  color: #8de6c6;
}
.photo-tool .card {
  background: #0d121a;
  border: 1px solid #24303f;
  border-radius: 14px;
  padding: 20px;
}
.photo-tool .info-section {
  margin-top: 20px;
}
.photo-tool .info-section .card p,
.photo-tool .info-section ol,
.photo-tool .faq p {
  color: #a3b0c2;
}
.photo-tool .photo-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
  margin: 0;
  color: #cbd5e2;
  font-size: 12px;
}
.photo-check input {
  margin-top: 2px;
  accent-color: #66dcb3;
}
.passport-crop {
  position: relative;
  line-height: 0;
  max-width: 100%;
  display: inline-block;
}
.passport-crop .photo-canvas {
  touch-action: none;
  cursor: grab;
}
.passport-crop .photo-canvas:active {
  cursor: grabbing;
}
.passport-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-left: 1px dashed transparent;
}
.passport-guides::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 56%;
  left: 29%;
  top: 12%;
  border: 2px dashed rgba(80, 238, 185, 0.85);
  border-radius: 48%;
}
.passport-guides::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 0;
  border-left: 1px dashed rgba(80, 238, 185, 0.8);
}
.passport-guides[hidden] {
  display: none;
}
.photo-tool [hidden] {
  display: none !important;
}
.photo-source-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c7d5e4;
  font-size: 12px;
  margin-top: 10px;
}
.photo-model-note {
  font-size: 11px;
  color: #8293a9;
  line-height: 1.7;
  margin: 0;
}
.photo-privacy {
  border-left: 3px solid #5dc9a3;
  padding-left: 12px;
}
.photo-controls fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.photo-controls legend {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #cfdae6;
}
@media (max-width: 800px) {
  .photo-workbench {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .photo-stage {
    min-height: 260px;
  }
  .photo-controls {
    gap: 14px;
  }
  .photo-tool .intro-hero {
    padding-top: 28px;
  }
  .photo-preview {
    margin-top: 4px;
  }
  .photo-canvas {
    max-height: 580px;
  }
}
@media (max-width: 420px) {
  .photo-row {
    grid-template-columns: 1fr;
  }
  .photo-workbench {
    padding: 12px;
  }
  .photo-actions {
    flex-direction: column;
  }
  .photo-stage {
    min-height: 220px;
  }
  .photo-tool .card {
    padding: 16px;
  }
}
