.gct-photo { --gct-line: #dfe4ed; border: 1px solid var(--gct-line); border-radius: 18px; padding: 16px; background: #fff; box-shadow: 0 12px 40px #1e3a5f0a; }
.gct-photo .gct-photo-layout { display: grid; grid-template-columns: 284px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "settings workspace" "settings actions"; border: 1px solid var(--gct-line); border-radius: 12px; background: white; overflow: hidden; }
.gct-photo .gct-photo-workspace { grid-area: workspace; display: flex; flex-direction: column; min-width: 0; padding: 24px; background: #f7f8fc; }
.gct-photo .gct-photo-settings { grid-area: settings; padding: 26px 20px 22px; border-right: 1px solid var(--gct-line); }
.gct-photo .gct-photo-setting-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.gct-photo .gct-photo-formats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.gct-photo .gct-photo-formats span { padding: 4px 9px; border-radius: 5px; background: var(--gct-accent-soft); color: #1d4ed8; font-size: 12px; font-weight: 700; }
.gct-photo fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.gct-photo legend { padding: 0; margin-bottom: 12px; font-size: 15px; }
.gct-photo .gct-photo-level { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 14px 12px; margin-bottom: 9px; border: 1px solid var(--gct-line); border-radius: 9px; line-height: 1.3; }
.gct-photo .gct-photo-level:has(input:checked) { border-color: var(--gct-accent); background: var(--gct-accent-soft); box-shadow: inset 0 0 0 1px var(--gct-accent); }
.gct-photo .gct-photo-level input { flex: 0 0 auto; margin: 0; accent-color: var(--gct-accent); width: 16px; height: 16px; }
.gct-photo .gct-photo-level strong { display: block; font-size: 14px; }
.gct-photo .gct-photo-level small { display: block; margin-top: 5px; color: #64748b; font-size: 12px; }
.gct-photo .gct-photo-quality { margin-left: auto; color: #64748b; font-size: 12px; }
.gct-photo .gct-photo-quality-note { margin: 16px 0 0; font-size: 11px; color: #64748b; line-height: 1.5; }
.gct-photo .gct-photo-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 20px; border: 1px dashed #93b4f5; border-radius: 10px; background: #fff; }
.gct-photo .gct-photo-drop > svg { color: var(--gct-accent); flex: 0 0 auto; }
.gct-photo .gct-photo-upload-title { font-size: 19px; font-weight: 700; cursor: pointer; }
.gct-photo .gct-photo-drop p { margin: 6px 0 0; font-size: 12px; color: #64748b; line-height: 1.4; }
.gct-photo .gct-photo-select { flex: 0 0 auto; padding: 11px 15px; margin-left: auto; background: var(--gct-accent); border: 1px solid var(--gct-accent); color: white; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; }
.gct-photo .gct-photo-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.gct-photo .gct-photo-drop:focus-within, .gct-photo .gct-photo-drop.is-dragging { outline: 2px solid var(--gct-accent); outline-offset: 3px; background: #eff6ff; }
.gct-photo .gct-photo-empty { flex: 1; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 10px; }
.gct-photo .gct-photo-empty svg { color: #b5c0d1; }
.gct-photo .gct-photo-empty p { margin: 18px 0 6px; color: #475569; font-size: 16px; font-weight: 600; }
.gct-photo .gct-photo-empty span { color: #7b8799; font-size: 13px; }
.gct-photo .gct-photo-actions { grid-area: actions; padding: 20px 24px 24px; border-top: 1px solid var(--gct-line); background: #f7f8fc; }
.gct-photo .gct-photo-actions > p { margin: 0 0 14px; color: #64748b; font-size: 12px; line-height: 1.6; }
.gct-photo .gct-photo-actions > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.gct-photo .gct-photo-process, .gct-photo .gct-photo-download { display: inline-flex; justify-content: center; align-items: center; padding: 13px 20px; min-height: 46px; background: var(--gct-accent); border: 1px solid var(--gct-accent); border-radius: 8px; color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.4; }
.gct-photo .gct-photo-process:hover:not(:disabled), .gct-photo .gct-photo-select:hover { background: var(--gct-accent-hover); }
.gct-photo .gct-photo-process:disabled { opacity: .4; cursor: not-allowed; }
.gct-photo .gct-photo-download { background: var(--gct-accent-soft); color: #1d4ed8; border-color: #bdd3fb; }
.gct-photo .gct-photo-reset { margin-right: auto; padding: 10px 0; background: none; border: 0; color: #777; text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; }
.gct-photo .gct-photo-footnote { display: flex; gap: 8px; align-items: center; margin-top: 15px; color: #64748b; font-size: 12px; line-height: 1.5; }
.gct-photo .gct-photo-footnote svg { flex: 0 0 auto; color: #6483b6; }
.gct-photo .gct-photo-error { padding: 12px 14px; border-radius: 7px; background: #fff0ec; color: #9b3320; font-size: 14px; line-height: 1.5; }
.gct-photo .gct-photo-preview { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; min-width: 0; margin: 18px 0 0; padding: 12px; background: #fff; border: 1px solid var(--gct-line); border-radius: 9px; }
.gct-photo .gct-photo-preview[hidden] { display: none; }
.gct-photo .gct-photo-thumbnail { display: block; flex: 0 0 56px; width: 56px; height: 56px; margin: 0; border-radius: 6px; object-fit: contain; background: #f1f5f9; }
.gct-photo .gct-photo-file-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.35; }
.gct-photo .gct-photo-file-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gct-photo .gct-photo-file-info span { color: #64748b; font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 960px) { .gct-photo .gct-photo-layout { grid-template-columns: 245px minmax(0, 1fr); } .gct-photo .gct-photo-drop { flex-wrap: wrap; } .gct-photo .gct-photo-select { margin-left: 42px; } }
@media (max-width: 700px) {
    .gct-photo { padding: 8px; border-radius: 12px; }
    .gct-photo .gct-photo-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "workspace" "settings" "actions"; }
    .gct-photo .gct-photo-workspace { padding: 16px; }
    .gct-photo .gct-photo-settings { border-right: 0; border-top: 1px solid var(--gct-line); padding: 20px 16px; }
    .gct-photo .gct-photo-empty { min-height: 170px; }
    .gct-photo .gct-photo-drop { padding: 16px; gap: 10px; }
    .gct-photo .gct-photo-upload-title { font-size: 17px; }
    .gct-photo .gct-photo-select { margin: 4px 0 0; width: 100%; text-align: center; }
    .gct-photo .gct-photo-level { padding: 12px; }
    .gct-photo .gct-photo-level strong { font-size: 15px; }
    .gct-photo .gct-photo-actions > div { align-items: stretch; }
    .gct-photo .gct-photo-actions { padding: 20px 16px; }
    .gct-photo .gct-photo-process, .gct-photo .gct-photo-download { flex: 1 0 100%; }
    .gct-photo .gct-photo-footnote { padding: 0 7px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .gct-photo * { scroll-behavior: auto; } }
