.gd-shot-console button { touch-action: manipulation; }
.gd-shot-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.gd-shot-toolbar-buttons, .gd-shot-export, .gd-shot-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd-shot .gd-shot-toolbar .gd-pad-primary { background: #ffda53; border-color: #ffda53; color: #142133; }
.gd-shot .gd-shot-toolbar .gd-pad-primary:hover { background: #ffe889; }
.gd-shot-stage { padding: 13px clamp(9px,2vw,20px); }
.gd-shot-stage[data-dragging] { background: #203d50; }
.gd-shot .gd-shot-intro, .gd-shot .gd-shot-status, .gd-shot-crop-heading p { color: var(--console-muted); font-size: 13px; }
.gd-shot-sources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 9px 0; }
.gd-shot-source { min-width: 0; overflow: hidden; background: #1b2c41; border: 1px solid #405670; border-radius: 10px; }
.gd-shot-source-head, .gd-shot-source-meta { display: flex; justify-content: space-between; align-items: center; gap: 5px 8px; padding: 6px 8px; flex-wrap: wrap; }
.gd-shot-source-head h3 { margin: 0; }
.gd-shot-source-head button { min-height: 35px; padding: 4px 8px; color: var(--console-text); border-color: #70839d; background: #263c56; font-size: 13px; }
.gd-shot-slot { display: grid; place-items: center; min-height: clamp(110px,18vw,170px); padding: 4px; background: #081421; cursor: pointer; }
.gd-shot-slot p { color: #b4c8dd; font-size: 13px; border: 1px dashed #627a91; border-radius: 6px; padding: 7px; }
.gd-shot-image { position: relative; max-width: 100%; cursor: crosshair; touch-action: none; user-select: none; overflow: hidden; }
.gd-shot-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(135px,31vw,330px); pointer-events: none; }
.gd-shot-crop { position: absolute; pointer-events: none; inset: 0; border: 2px solid #ffda53; box-shadow: 0 0 0 1800px #08142191; }
.gd-shot-source-meta { justify-content: flex-start; font-size: 12px; }
.gd-shot-source-meta input { flex: 1 1 80px; width: 100%; min-width: 0; }
.gd-shot-source-meta span { flex: 0 0 100%; color: var(--console-muted); white-space: nowrap; }
.gd-shot-source-meta input, .gd-shot-crop-details input[type=number] { min-height: 38px; border: 1px solid #7489a4; border-radius: 5px; padding: 4px 7px; background: #0e1c2e; color: #fff; font: inherit; }
.gd-shot button:focus-visible, .gd-shot input:focus-visible { outline: 2px solid #64bafa; outline-offset: 2px; }
.gd-shot-crop-details { margin-top: 8px; }
.gd-shot-crop-heading { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.gd-shot .gd-shot-crop-heading a { color: #bdddff; padding: 7px 0; }
.gd-shot-crop-heading button { min-height: 38px; background: #263c56; color: #fff; font-size: 13px; }
.gd-shot-crop-details details { margin-top: 5px; font-size: 13px; }
.gd-shot-crop-details summary { min-height: 35px; width: fit-content; padding-block: 7px; }
.gd-shot-crop-details form, .gd-shot-crop-details fieldset { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.gd-shot-crop-details :is(fieldset,form) input[type=number] { width: 74px; }
.gd-shot-crop-details fieldset label { display: inline-flex; align-items: center; gap: 4px; }
.gd-shot-crop-details input[type=radio] { appearance: auto; inline-size: 16px; block-size: 16px; accent-color: #ffda53; }
.gd-shot-crop-details fieldset, .gd-shot-view { border: 0; margin: 0; padding: 0; }
.gd-shot-crop-details form button { min-height: 38px; }
.gd-shot .gd-shot-error { color: #ffe4d3; background: #542f2c; padding: 6px 8px; border: 1px solid #9d5748; border-radius: 6px; margin-top: 6px; }
.gd-shot-results { margin: 0 clamp(9px,2vw,20px) 13px; }
.gd-shot-result-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.gd-shot-result-head p, .gd-shot .gd-shot-note, .gd-shot-preview-note { font-size: 13px; }
.gd-shot-view { margin: 9px 0; }
.gd-shot-view legend { font-weight: 650; font-size: 13px; margin-bottom: 5px; }
.gd-shot-modes button { min-height: 40px; padding: 4px 8px; font-size: 13px; }
.gd-shot-modes button[aria-pressed=true] { background: #e1edfb; color: #183f70; border-color: #38699f; font-weight: 700; }
.gd-shot-adjust { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 13px; margin-top: 6px; }
.gd-shot .gd-shot-adjust input[type=range] {
  appearance: none;
  width: min(240px, 52vw);
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gd-shot-adjust input::-moz-range-track { background: #4c6685; height: 8px; border-radius: 8px; }
.gd-shot-adjust input::-moz-range-thumb { background: #ffda53; border: 2px solid #142337; border-radius: 50%; width: 20px; height: 20px; }
.gd-shot-adjust input::-webkit-slider-runnable-track { background: #4c6685; height: 8px; border-radius: 8px; }
.gd-shot-adjust input::-webkit-slider-thumb { -webkit-appearance: none; background: #ffda53; border: 2px solid #142337; border-radius: 50%; width: 24px; height: 24px; margin-top: -8px; }
.gd-shot .gd-shot-adjust output { font-weight: 700; }
@media (forced-colors: active) {
  .gd-shot .gd-shot-adjust input[type=range] { appearance: auto; }
}
.gd-shot-preview { display: grid; place-items: center; margin-top: 7px; background: #101d2e; border-radius: 7px; overflow: hidden; }
.gd-shot-preview canvas { display: block; max-width: 100%; max-height: 620px; width: auto; height: auto; }
.gd-shot-note { margin-top: 5px; }
@media (max-width: 530px) {
  .gd-shot-stage h2 { margin-bottom: 4px; }
  .gd-shot .gd-shot-toolbar .gd-pad-connection-line strong { font-size: 12px; }
  .gd-shot-toolbar-buttons button, .gd-shot-export button { min-height: 40px; padding-inline: 8px; font-size: 13px; }
  .gd-shot-source-meta input { flex-basis: calc(100% - 50px); }
}

#shot-preview-title { scroll-margin-top: 12px; }

.gd-shot-crop-tip { margin: 9px 0; padding: 7px 10px; border: 1px solid #617e9a; border-left: 4px solid #ffda53; border-radius: 6px; background: #223754; }
.gd-shot .gd-shot-label-help, .gd-shot .gd-shot-crop-tip p, .gd-shot .gd-shot-coordinates-help { color: var(--console-muted); font-size: 13px; }
.gd-shot .gd-shot-coordinates-help { margin: 0 0 6px; }
