.photo-search-launch{border:1px solid #bfd5e3;border-radius:8px;padding:9px 12px;background:#eef7fc;color:#006e9f;font:600 12px inherit;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px}.photo-search-launch:hover{background:#dff1fb}.header-search-row{display:flex;align-items:center;gap:9px}.header-search-row .header-search{flex:1;min-width:0}.photo-search-state{margin:18px 0;background:#edf8fe;border:1px solid #c4e3f3;border-radius:9px;padding:13px 16px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px}.catalog-photo-launch{margin:12px 0 18px}.chat-photo-row{padding:7px 14px;border-top:1px solid #e0edf4}.chat-photo-row .text-link{font-size:12px;padding:7px 0;cursor:pointer;background:transparent;border:0}.assistant-panel:has(#assistant-form[hidden]) .chat-photo-row{display:none}#photo-search-dialog{width:min(520px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid #c9deea;border-radius:16px;padding:25px;color:#243e50;background:white;box-shadow:0 20px 70px #102f4d30;z-index:100}#photo-search-dialog::backdrop{background:#0c263e88}.photo-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.photo-dialog-head h2{font-size:22px;line-height:1.4;margin:0}.photo-dialog-head button{color:#335a70;background:#edf5fa;border:0;border-radius:7px;font-size:24px;min-width:36px;height:36px;cursor:pointer}#photo-search-dialog p{font-size:13px;color:#577385;line-height:1.8}.photo-drop{display:block;border:1px dashed #86b7d3;background:#f2f9fd;padding:20px;border-radius:10px;font-size:14px;font-weight:600;color:#206488}.photo-drop input{display:block;width:100%;font-size:12px;margin:14px 0}.photo-drop small{font-size:11px;font-weight:400;color:#68879b}#photo-search-preview{display:block;max-width:100%;max-height:210px;margin:18px auto;object-fit:contain;border-radius:8px}.photo-confirm{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#526f83;line-height:1.7;margin:20px 0 12px}.photo-confirm input{width:17px;height:17px;flex-shrink:0;margin-top:3px;accent-color:#0088bc}.photo-note,.photo-chat-note{font-size:11px!important;line-height:1.7;color:#688093!important}#photo-search-status{font-weight:600;color:#116c8e!important}#photo-search-submit{width:100%}#photo-search-dialog [hidden]{display:none!important}#photo-search-submit:disabled{opacity:.6;cursor:wait}.photo-search-launch:focus-visible{outline:3px solid #24aedb;outline-offset:3px}@media(max-width:850px){.header-search-row{flex-wrap:wrap}.header-search-row .header-search{flex-basis:100%}.header-search-row .photo-search-launch{font-size:11px;padding:6px 9px}.photo-search-state{align-items:flex-start;flex-direction:column}.photo-dialog-head h2{font-size:19px}#photo-search-dialog{padding:20px}.catalog-photo-launch{margin-bottom:10px}}

.photo-search-launch svg,.chat-photo-row svg{width:19px;height:19px;flex-shrink:0}.photo-camera-button{width:42px;height:42px;border-radius:50%;border:1px solid #dce5ed;background:#fff;padding:10px;color:#526678;box-shadow:none;transition:color .15s,border-color .15s,background .15s}.photo-camera-button:hover{background:#f2f8fc;border-color:#89b9d5;color:#007eb8}.header-search-row .photo-camera-button{flex-shrink:0;margin:0}.catalog-photo-launch{background:transparent;border:0;padding:7px 0;color:#007eb8;box-shadow:none;font-family:inherit;font-size:12px;font-weight:600;gap:8px}.catalog-photo-launch:hover{background:transparent;color:#005b8b;text-decoration:underline}.chat-photo-row .text-link{display:inline-flex;align-items:center;gap:7px}.chat-photo-row svg{width:16px;height:16px}@media(max-width:850px){.header-search-row{flex-wrap:nowrap}.header-search-row .header-search{flex:1;flex-basis:auto}.header-search-row .photo-camera-button{width:38px;height:38px;padding:9px}}

.photo-source-options{display:grid;grid-template-columns:1fr;gap:12px}.photo-paste-zone{border:1px dashed #bad1df;background:#f8fbfd;border-radius:10px;padding:17px;display:flex;align-items:center;justify-content:space-between;gap:14px}.photo-paste-zone button{display:inline-flex;align-items:center;gap:8px;background:white;border:1px solid #cbdce7;border-radius:8px;padding:10px 13px;font:600 12px Arial,sans-serif;color:#246781;cursor:pointer;white-space:nowrap}.photo-paste-zone button:hover{background:#eaf6fc;border-color:#8cb9d2}.photo-paste-zone button svg{width:18px;height:18px}.photo-paste-zone small{font-size:11px;color:#698193;line-height:1.6}.photo-paste-zone:focus-visible{outline:3px solid #1b9cc9;outline-offset:3px}@media(max-width:500px){.photo-paste-zone{align-items:flex-start;flex-direction:column;gap:9px}}

/* Mobile header previously inherited pointer-events:none from the search wrapper. */
@media(max-width:760px){.header-main .header-search-row{pointer-events:auto}.header-main .photo-camera-button{pointer-events:auto;min-width:44px;min-height:44px}.photo-camera-button svg{pointer-events:none}#photo-search-dialog{overscroll-behavior:contain}#photo-search-dialog input[type=file]{font-size:16px}}

.photo-remove-button{display:block;margin:0 auto 18px;border:1px solid #d5b5b9;border-radius:8px;padding:9px 16px;background:#fff;color:var(--blue,#246781);font:600 12px Arial,sans-serif;cursor:pointer}.photo-remove-button:disabled{opacity:.6;cursor:wait}.photo-remove-button:focus-visible{outline:3px solid #c88b98;outline-offset:3px}
