.ah-attachments{margin-top:8px;min-width:0}.ah-attach-button{display:inline-flex!important;align-items:center;padding:6px 10px;border-radius:8px;border:1px solid #d9c5f5;color:#7545ab!important;cursor:pointer;font-size:13px!important;margin:0 8px 0 0!important}.ah-attachments>small{font-size:10px;color:#846c9c}.ah-file-chips{display:flex;gap:5px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}.ah-file-chips>span{flex-shrink:0;width:145px}.ah-file-chips em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}.ah-file-chips>span{display:flex;align-items:center;max-width:100%;overflow-wrap:anywhere;background:#f2e9ff;border-radius:8px;padding:3px 7px;font-size:12px;margin-bottom:6px}.ah-file-chips img{width:32px;height:40px;object-fit:cover;border-radius:4px;margin-right:6px}.ah-file-chips button{flex:none;border:0;background:none;color:#673a99;font-size:20px;cursor:pointer;padding:0 4px}.ah-file-note{font-size:11px!important;color:#7f6d90;margin:6px 0 0!important;line-height:1.4!important}.ah-file-error{color:#b33428;font-size:12px;margin:6px 0 0}.ah-composer{max-height:65%;overflow-y:auto}.ah-conversation{min-height:70px}.photo-picker{min-width:0}.photo-add{display:flex;align-items:center;justify-content:center;gap:10px;padding:20px;border:1.5px dashed #b092e8;border-radius:14px;background:#f6f0ff;color:#6234a7;cursor:pointer}.photo-add:hover{background:#eee3ff}.photo-add span{font-size:28px}.photo-add[aria-disabled=true]{opacity:.55;cursor:default}.photo-hint{font-size:15px;line-height:1.55;color:#625473;margin:12px 0 6px}.photo-picker small{color:#736183;font-size:13px}.photo-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.photo-thumbs figure{position:relative;margin:0;width:calc((100% - 32px)/5);min-width:64px;max-width:120px;aspect-ratio:3/4;border-radius:10px;background:#f0e9f9;border:1px solid #ded1ef;overflow:hidden}.photo-thumbs img{width:100%;height:100%;object-fit:contain}.photo-thumbs button{position:absolute;right:2px;top:2px;width:28px;height:28px;border-radius:50%;background:#fff;color:#482967;border:1px solid #d9cbea;cursor:pointer;font-size:20px;line-height:1}.photo-thumbs figcaption{position:absolute;bottom:3px;left:4px;background:#fff;padding:1px 5px;border-radius:5px;font-size:12px}.photo-count{display:block;margin-top:8px;font-size:13px;color:#756180}.photo-error{color:#b53c32;font-size:14px}.photo-error:empty{display:none}.image-format{min-width:0;margin:20px 0}.image-format>label{font-size:18px;font-weight:650;display:block;margin-bottom:10px}.image-format select{width:100%;padding:12px;border:1px solid #cfbce9;border-radius:10px;background:#fff;font:inherit}.image-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.image-dimensions[hidden]{display:none}.image-dimensions input{width:100%;min-width:0}.mp-form>.image-format{grid-column:1/-1}.mp-source .photo-picker{margin-top:16px}.bs-prompt .photo-picker{margin-top:18px}.to-person-preview:has(article){display:flex;flex-wrap:wrap;gap:8px}.to-person-preview article{position:relative;width:90px}.to-person-preview article img{width:90px;height:120px;object-fit:contain}.to-person-preview article button{font-size:12px}.to-person-preview article span{display:block;max-width:90px;overflow:hidden;text-overflow:ellipsis}
/* Approved retouch form; other photo tools keep their existing layout. */
body .photo-studio.photo-studio-compact{max-width:1280px;margin:auto;color:#243d40}
body .photo-studio.photo-studio-compact .tn-breadcrumbs{margin:0 0 20px;font-size:13px;line-height:1.5;flex-wrap:wrap}
body .photo-studio.photo-studio-compact .pr-heading{margin:0 0 24px}
body .photo-studio.photo-studio-compact .pr-heading h1{font-size:clamp(27px,3vw,36px);line-height:1.2;letter-spacing:-.6px;margin:0 0 14px}
body .photo-studio.photo-studio-compact .pr-heading p{font-size:18px;line-height:1.6;color:#647a79;margin:0}
body .photo-studio.photo-studio-compact .pr-navigation{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 28px}
body .photo-studio.photo-studio-compact .pr-navigation a{padding:11px 20px;border:1px solid #d7e4df;border-radius:24px;font-size:14px;line-height:1.4;color:#647a79;background:white;text-decoration:none}
body .photo-studio.photo-studio-compact .pr-navigation a[aria-current=page]{background:#e8f1ed;color:#1f6665;font-weight:650}
body .photo-studio.photo-studio-compact .pr-navigation a:hover{background:#bc2b38;color:white}
body .photo-studio.photo-studio-compact .photo-form-compact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-rows:auto 1fr;grid-template-areas:"source fields" "example fields";gap:26px 64px;padding:30px;border:1px solid #d7e4df;border-radius:22px;background:white;margin:0;align-items:start;position:relative}
body .photo-studio.photo-studio-compact .photo-form-compact:after{content:"";position:absolute;left:calc((100% - 124px)/2.15 + 62px);top:30px;bottom:30px;width:1px;background:#d7e4df;pointer-events:none}
body .photo-studio.photo-studio-compact .pr-source{grid-area:source}
body .photo-studio.photo-studio-compact .pr-fields{grid-area:fields;min-width:0}
body .photo-studio.photo-studio-compact .photo-form-compact>section{border:0;border-radius:0;background:none;padding:0;box-shadow:none;min-width:0}
body .photo-studio.photo-studio-compact .photo-form-compact h2{font-size:21px;line-height:1.4;margin:0 0 24px;color:#243d40}
body .photo-studio.photo-studio-compact .photo-picker{margin:0}
body .photo-studio.photo-studio-compact .photo-primary-slot>.photo-add{display:flex;flex-direction:column;gap:12px;padding:15px 16px;border:1px solid #d7e4df;border-radius:14px;background:#f8fbf9;color:#243d40;min-height:148px;box-sizing:border-box;text-align:center}
body .photo-studio.photo-studio-compact .photo-primary-slot>.photo-add>span{font-size:27px;font-weight:400;line-height:1;color:#1f6665}
body .photo-studio.photo-studio-compact .photo-primary-slot>.photo-add>strong{font-size:18px;line-height:1.4}
body .photo-studio.photo-studio-compact .photo-primary-slot>.photo-add:after{content:"Выбрать фото";padding:10px 24px;border:1px solid #d7e4df;border-radius:10px;background:white;font-size:14px;font-weight:650;color:#243d40}
body .photo-studio.photo-studio-compact .photo-primary-slot>.photo-add:hover{border-color:#1f6665;background:#eff7f3}
body .photo-studio.photo-studio-compact .photo-add:focus-visible{outline:2px solid #bc2b38;outline-offset:3px}
body .photo-studio.photo-studio-compact .photo-picker>.photo-hint,body .photo-studio.photo-studio-compact .photo-picker>small{display:none}
body .photo-studio.photo-studio-compact .photo-picker:has(.photo-primary-thumbs:empty)>.photo-count{display:none}
body .photo-studio.photo-studio-compact .photo-count{font-size:12px;color:#647a79}
body .photo-studio.photo-studio-compact .photo-reference-slot{margin-top:12px;font-size:13px;color:#647a79}
body .photo-studio.photo-studio-compact .photo-reference-slot>summary{cursor:pointer;min-height:28px}
body .photo-studio.photo-studio-compact .photo-reference-add{margin:8px 0;padding:10px;font-size:13px;background:#f8fbf9;border-color:#d7e4df;color:#243d40}
body .photo-studio.photo-studio-compact .photo-primary-thumbs img{max-height:260px;object-fit:contain}
body .photo-studio.photo-studio-compact .mp-source-note{font-size:13px;line-height:1.6;color:#647a79;margin:10px 0 0}
body .photo-studio.photo-studio-compact :is(.pr-upload-help,.pr-format-help){margin-top:8px;font-size:12px;line-height:1.6;color:#647a79}
body .photo-studio.photo-studio-compact :is(.pr-upload-help,.pr-format-help)>summary{cursor:pointer;min-height:28px;width:fit-content}
body .photo-studio.photo-studio-compact :is(.pr-upload-help,.pr-format-help)>p{margin:6px 0;padding:10px 12px;border:1px solid #d7e4df;border-radius:10px;background:#f8fbf9;font-size:13px;line-height:1.6}
body .photo-studio.photo-studio-compact #ph-idea{display:block;width:100%;min-height:180px;max-height:450px;resize:vertical;padding:14px 18px;border:1px solid #c5d9d1;border-radius:14px;box-shadow:none;box-sizing:border-box;font:inherit;font-size:18px;line-height:1.55;color:#243d40;background:#fcfefd;margin:0}
body .photo-studio.photo-studio-compact #ph-idea::placeholder{color:#83958f}
body .photo-studio.photo-studio-compact #ph-idea:focus{outline:2px solid #1f6665;outline-offset:2px}
body .photo-studio.photo-studio-compact .pr-field-hint{margin:8px 0 12px;font-size:13px;line-height:1.5;color:#647a79}
body.pixai-slate #content .photo-studio-compact [data-open-assistant]{background:none!important;color:#1f6665!important;border:0!important;padding:4px 0;box-shadow:none!important;transform:none!important;font-size:14px;min-height:34px;text-align:left;font-weight:650}
body.pixai-slate #content .photo-studio-compact [data-open-assistant]:hover{color:#bc2b38!important;background:none!important}
body .photo-studio.photo-studio-compact .image-format{margin:24px 0 22px}
body .photo-studio.photo-studio-compact .image-format>label{font-size:15px;line-height:1.5;margin-bottom:10px;color:#243d40}
body .photo-studio.photo-studio-compact .image-format select{width:100%;min-height:48px;padding:11px 14px;border:1px solid #c9dad5;border-radius:11px;font-size:15px;color:#243d40;background:white;box-sizing:border-box}
body .photo-studio.photo-studio-compact .image-format>p{font-size:12px;line-height:1.5;color:#647a79;margin:8px 0}
body .photo-studio.photo-studio-compact .image-dimensions{margin-top:12px}
body .photo-studio.photo-studio-compact .image-dimensions label{font-size:13px}
body .photo-studio.photo-studio-compact .image-dimensions input{box-sizing:border-box;border:1px solid #c9dad5;border-radius:9px;padding:10px;font:inherit}
body .photo-studio.photo-studio-compact .pr-price{display:block;border:1px solid #d7e4df;border-radius:14px;padding:18px;background:#f8fbf9;margin:0;box-shadow:none}
body .photo-studio.photo-studio-compact .pr-price>div{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
body .photo-studio.photo-studio-compact .pr-price strong{font-size:27px;font-weight:750;line-height:1.3;color:#243d40}
body .photo-studio.photo-studio-compact .pr-price span{font-size:13px;line-height:1.5;color:#647a79}
body .photo-studio.photo-studio-compact .pr-price>p{font-size:12px;line-height:1.5;color:#647a79;margin:10px 0 16px}
body .photo-studio.photo-studio-compact #ph-continue{display:block;width:100%;min-height:46px;padding:12px 16px;font-size:16px;line-height:1.4;border-radius:11px;margin:0}
body .photo-studio.photo-studio-compact .pr-confirm-note{font-size:12px;line-height:1.5;color:#647a79;margin:8px 0 0}
body .photo-studio.photo-studio-compact #ph-error:empty{display:none}
body .photo-studio.photo-studio-compact .pr-example{grid-area:example;margin:0;min-width:0;align-self:start}
body .photo-studio.photo-studio-compact .pr-example>figcaption{font-size:16px;font-weight:650;margin-bottom:14px;color:#243d40}
body .photo-studio.photo-studio-compact .pr-example a{display:block}
body .photo-studio.photo-studio-compact .pr-example img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:10px}
body .photo-studio.photo-studio-compact .pr-footer{display:flex;justify-content:space-between;align-items:start;gap:16px;margin:16px 16px 0;font-size:13px;line-height:1.6;color:#647a79}
body .photo-studio.photo-studio-compact .pr-footer>a{flex:none;color:#1f6665;text-decoration:none;font-weight:650;min-height:32px;padding:4px 0}
body .photo-studio.photo-studio-compact .pr-guidance{min-width:0;flex:1}
body .photo-studio.photo-studio-compact .pr-guidance>summary{cursor:pointer;min-height:32px;padding:4px 0;width:fit-content}
body .photo-studio.photo-studio-compact .pr-guidance [data-input-guidance]{margin:8px 0;padding:14px;background:#f8fbf9;color:#52676a;border:1px solid #d7e4df;border-radius:12px;font-size:14px;line-height:1.6}
body .photo-studio.photo-studio-compact .pr-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
body .photo-studio.photo-studio-compact :is(a,button,summary,select):focus-visible{outline:2px solid #bc2b38;outline-offset:3px}
@media(max-width:760px){
 body .photo-studio.photo-studio-compact .tn-breadcrumbs{margin-bottom:16px;font-size:12px}
 body .photo-studio.photo-studio-compact .pr-heading{margin-bottom:18px}
 body .photo-studio.photo-studio-compact .pr-heading h1{font-size:27px;line-height:1.25;margin-bottom:12px}
 body .photo-studio.photo-studio-compact .pr-heading p{font-size:16px;line-height:1.55}
 body .photo-studio.photo-studio-compact .pr-navigation{gap:8px;flex-wrap:nowrap;overflow-x:auto;margin-bottom:20px;padding-bottom:4px}
 body .photo-studio.photo-studio-compact .pr-navigation a{flex:none;padding:10px 14px;font-size:12px;white-space:nowrap}
 body .photo-studio.photo-studio-compact .photo-form-compact{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"source" "fields" "example";gap:26px;padding:18px 16px;border-radius:18px}
 body .photo-studio.photo-studio-compact .photo-form-compact:after{display:none}
 body .photo-studio.photo-studio-compact .photo-form-compact h2{font-size:18px;margin-bottom:18px}
 body .photo-studio.photo-studio-compact .photo-primary-slot>.photo-add{min-height:137px;padding:14px;gap:10px}
 body .photo-studio.photo-studio-compact .photo-primary-slot>.photo-add>strong{font-size:17px}
 body .photo-studio.photo-studio-compact .mp-source-note{font-size:12px}
 body .photo-studio.photo-studio-compact #ph-idea{min-height:140px;font-size:16px;padding:12px 14px}
 body .photo-studio.photo-studio-compact .pr-field-hint{font-size:12px}
 body .photo-studio.photo-studio-compact .image-format{margin:20px 0}
 body .photo-studio.photo-studio-compact .image-format select{font-size:13px;padding:11px 10px}
 body .photo-studio.photo-studio-compact .pr-price{padding:14px}
 body .photo-studio.photo-studio-compact .pr-price strong{font-size:25px}
 body .photo-studio.photo-studio-compact .pr-price span{font-size:11px}
 body .photo-studio.photo-studio-compact .pr-price>div{gap:10px}
 body .photo-studio.photo-studio-compact .pr-price>p{font-size:12px}
 body .photo-studio.photo-studio-compact .pr-footer{flex-wrap:wrap;margin:14px 8px 0;gap:8px 16px}
 body .photo-studio.photo-studio-compact .pr-guidance{flex-basis:100%}
}

