.media-photo{position:relative;overflow:hidden;display:block;border-radius:10px;background:var(--nt-canvas,#f1edf8)}.media-photo img{display:block;width:100%;height:auto;object-fit:contain}.media-photo.error img,.media-photo.loading img{visibility:hidden}.media-photo.error,.media-photo.loading{min-height:150px;min-width:140px}.media-photo-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:var(--nt-muted,#817093);font-size:14px;text-align:center;padding:10px}.photo-grid .media-photo{min-width:0;min-height:0;width:100%;height:100%}.photo-grid .media-photo img{width:100%;height:100%;object-fit:cover}.message-image.media-photo{width:240px;max-width:100%}.message-image.media-photo img{max-height:320px}.message-image.media-photo{min-width:0;min-height:0;flex:none}.message-image.media-photo img{width:100%;height:100%;max-height:none;object-fit:contain}.photo-grid.photos-1{display:grid;aspect-ratio:1}.photo-grid.photos-1 .media-photo{width:100%;height:100%}.photo-grid.photos-1 .media-photo img{object-fit:cover}.photo-grid.photos-1 button:hover img{transform:none}.photo-editor-dialog[data-slot=dialog-content]{width:calc(100% - 20px)!important;max-width:540px!important;padding:14px!important;gap:8px!important;max-height:calc(var(--chat-viewport-height,100dvh) - 20px)!important;top:calc(var(--chat-viewport-top,0px) + var(--chat-viewport-height,100dvh)/2)!important;overflow:auto;overscroll-behavior:contain}.photo-editor-dialog [data-slot=dialog-title]{font-size:19px;padding-right:25px}.photo-editor-dialog [data-slot=dialog-description]{font-size:14px;line-height:1.5}.photo-editor-toolbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.photo-editor-toolbar button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:4px 2px;font-size:14px;color:var(--nt-muted,#6c5b7b);border-radius:8px}.photo-editor-toolbar button[aria-pressed=true]{background:var(--nt-canvas,#eee5fc);color:var(--nt-link,#7040d9);font-weight:600}.photo-editor-stage{display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(var(--nt-canvas,#e9e6ed) 0 25%,var(--nt-canvas,#f8f6fa) 0 50%) 50% /16px 16px;border-radius:9px;overflow:hidden;min-height:70px}.photo-editor-stage>p{display:flex;gap:7px;align-items:center;padding:18px;font-size:14px}.photo-editor-surface{position:relative;max-width:100%;flex:none;touch-action:none;user-select:none;overflow:hidden}.photo-editor-surface canvas{display:block;width:100%;height:100%}.photo-crop-window{position:absolute;border:2px solid white;box-shadow:0 0 0 1000px #0007;pointer-events:none}.photo-crop-window i{position:absolute;inset:33.333% 0;border-block:1px solid var(--nt-border,#fff9)}.photo-crop-window i+i{inset:0 33.333%;border:0;border-inline:1px solid var(--nt-border,#fff9)}.photo-crop-window b{pointer-events:auto;position:absolute;width:36px;height:36px;right:-7px;bottom:-7px;border-right:4px solid var(--nt-outline,#7040d9);border-bottom:4px solid var(--nt-outline,#7040d9);cursor:nwse-resize;touch-action:none}.photo-editor-options{display:flex;flex-direction:column;gap:3px}.photo-edit-presets{display:flex;gap:4px;flex-wrap:wrap}.photo-edit-presets button{flex:1;min-height:36px;font-size:14px;border:1px solid var(--nt-border,#e3daee);border-radius:7px;padding:4px 7px;white-space:nowrap}.photo-edit-presets button[aria-pressed=true]{background:var(--nt-canvas,#eee5fc);color:var(--nt-link,#7040d9);border-color:var(--nt-border,#baa0e9)}.photo-editor-options>label{display:flex;align-items:center;gap:9px;font-size:14px;min-height:30px;color:var(--nt-muted,#5b496d)}.photo-editor-options input[type=range]{flex:1;min-width:0;accent-color:#7040d9;min-height:30px}.photo-edit-hint{font-size:14px;line-height:19px;color:var(--nt-muted,#6c5b7b);margin:0;display:flex;align-items:center;justify-content:space-between;gap:4px}.photo-edit-hint>button{color:var(--nt-link,#7040d9);font-weight:600;min-height:36px;white-space:nowrap}.photo-mark-controls{display:flex;align-items:center;gap:3px;font-size:14px;color:var(--nt-muted,#6c5b7b)}.photo-mark-controls>button{height:40px;min-width:34px;display:grid;place-items:center;border:2px solid transparent;border-radius:8px}.photo-mark-controls>button[aria-pressed=true]{border-color:var(--nt-outline,#7040d9);background:var(--nt-canvas,#f3edfc)}.photo-mark-controls i{width:19px;height:19px;border-radius:50%;background:currentColor;box-shadow:0 0 0 1px #b4a9c0}.photo-mark-controls select{margin-left:auto;min-width:44px;min-height:40px;font-size:14px;background:var(--nt-surface,#fff);border:1px solid var(--nt-border,#e3daee);border-radius:7px}.photo-editor-history{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--nt-border,#eee6f5);gap:4px}.photo-editor-history button{display:flex;align-items:center;gap:4px;min-height:40px;padding:4px;color:var(--nt-muted,#6a597e);font-size:14px}.photo-editor-history button[aria-pressed=true]{color:var(--nt-link,#7040d9);font-weight:600}.photo-editor-dialog button:disabled{opacity:.4}.photo-editor-footer{display:grid;grid-template-columns:1fr 1.5fr;gap:8px}.photo-editor-footer button{min-height:44px;justify-content:center}.photo-restore-confirm{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:7px;background:var(--nt-canvas,#f2ecfa);border-radius:7px;font-size:14px}.photo-restore-confirm button{color:var(--nt-link,#7040d9);min-height:36px}.photo-preview-tools{display:flex;gap:5px;flex-wrap:wrap}.photo-preview-tools button{flex:1;min-height:44px;border:1px solid var(--nt-border,#ded2ef);border-radius:8px;color:var(--nt-link,#7040d9)}.photo-edit-open,.photo-preview-tools button{display:flex;align-items:center;justify-content:center;gap:4px}.photo-edit-open{color:var(--nt-link,#7040d9)!important;font-size:14px!important;min-height:40px!important;width:100%}@media(max-width:350px){.photo-editor-toolbar button{flex-direction:column;gap:2px}.photo-mark-controls{gap:1px}.photo-mark-controls>button{min-width:30px}}.photo-editor-toolbar{grid-template-columns:repeat(6,minmax(0,1fr))}.photo-editor-toolbar button{flex-direction:column;gap:2px}.photo-text-selection{position:absolute;border:1px dashed var(--nt-border,#fff);outline:1px solid var(--nt-outline,#7040d9);pointer-events:none;border-radius:3px}.photo-editor-options .photo-text-input{display:flex;flex-direction:column;align-items:stretch;gap:3px}.photo-text-input textarea{border:1px solid var(--nt-border,#dcd1ed);border-radius:7px;background:var(--nt-surface,#fff);padding:6px 8px;font-size:17px;line-height:1.4;resize:none;min-height:50px}.photo-text-add{color:var(--nt-link,#7040d9);min-height:36px;padding:4px 6px;font-size:14px;white-space:nowrap}.photo-preview-tools button{min-width:48px;flex-direction:column;gap:2px;font-size:14px}.chat-media-editor .photo-edit-size{display:grid;gap:5px;min-height:44px}.chat-media-editor .photo-edit-size input{width:100%}.chat-media-editor[data-slot=dialog-content],.chat-media-review[data-slot=dialog-content],.photos-send-dialog.chat-media-review[data-slot=dialog-content]{--media-panel:#202125;--media-line:#3a3b43;--media-muted:#c4c5cd;--media-active:#d6c3ff;background:var(--media-panel)!important;color:#fff!important;border:1px solid var(--media-line)!important;width:min(720px,calc(100vw - 24px))!important;max-width:none!important;padding:14px!important;height:min(800px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column;gap:10px!important;overflow:auto!important;overscroll-behavior:contain}.chat-media-review-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;flex:none}.chat-media-review-header h2{text-align:center;margin:0;padding:0!important;font-size:17px;font-weight:650}.chat-media-review-header button{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:8px}.chat-media-review .photos-send-scroll{display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto;gap:10px}.chat-media-editor .photo-editor-stage,.chat-media-review .photos-send-stage,.chat-media-review .video-send-player{background:#111216;color:#fff;flex:1 1 auto;min-height:110px;overflow:hidden;border-radius:12px;display:grid;place-items:center;position:relative;padding:0}.chat-media-review .photos-send-stage>img,.chat-media-review .video-send-player>video{width:100%;height:100%;position:absolute;inset:0;max-width:none;max-height:none;object-fit:contain}.chat-media-review .photos-send-strip{flex:none}.chat-media-review .photos-send-strip>div.selected{border-color:var(--media-active)}.chat-media-review .photos-add,.chat-media-review .photos-send-strip .photos-remove{background:#363740;color:#fff;box-shadow:none}.chat-media-editor .photo-editor-toolbar,.chat-media-review .photo-preview-tools,.chat-video-edit-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:none}.chat-media-editor .photo-editor-toolbar button,.chat-media-review .photo-preview-tools button,.chat-video-edit-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:50px;min-width:0;color:#fff;background:#2b2c33;border:1px solid var(--media-line);border-radius:10px;font-size:13px}.chat-media-editor .photo-editor-toolbar button[aria-pressed=true],.chat-video-edit-tools button[aria-pressed=true]{color:var(--media-active);border-color:var(--media-active);background:#342a48}.chat-media-review .photo-send-actions,.chat-media-review .video-send-actions{border-top:1px solid var(--media-line);padding-top:8px;flex:none;display:flex;justify-content:flex-end;gap:8px}.chat-media-review .photo-send-actions button,.chat-media-review .video-send-actions button{width:auto;min-height:44px;min-width:0;padding:0 16px;gap:7px;border-radius:10px}.chat-media-editor .outline-btn,.chat-media-editor .photo-edit-presets button,.chat-media-editor .photo-editor-history button,.chat-media-review .outline-btn{color:#fff!important;border-color:var(--media-line)!important;background:#2b2c33!important}.chat-media-editor .photo-edit-hint,.chat-media-editor .photo-editor-options>label,.chat-media-editor .photo-mark-controls,.chat-media-editor [data-slot=dialog-description],.chat-media-review .photo-send-caption,.chat-media-review .video-send-file{color:var(--media-muted)!important}.chat-media-editor .photo-mark-controls select{color:#fff;background:#34353e;border-color:var(--media-line)}.chat-media-editor .photo-edit-hint>button{color:var(--media-active)}.chat-media-editor .photo-restore-confirm{background:#34353e;color:#fff}.chat-media-editor .photo-restore-confirm button{color:var(--media-active)}.chat-media-editor .photo-edit-presets button[aria-pressed=true]{border-color:var(--media-active)!important;color:var(--media-active)!important}.chat-media-editor .photo-editor-history{border-color:var(--media-line)}.chat-media-editor .add-error,.chat-media-review .add-error{color:#ffabb3!important;margin:0}.chat-media-review .photo-send-caption{margin:0;max-height:3em;overflow:auto;flex:none}.chat-media-review .video-send-file{margin:0;min-width:0}.chat-video-range{display:grid;gap:4px;flex:none;margin:0}.chat-video-range label{display:grid;grid-template-columns:auto minmax(0,1fr) 4.5em;align-items:center;gap:8px;font-size:13px}.chat-video-range input{width:100%;accent-color:#b99aff;min-height:29px}.chat-video-range output{text-align:right;font-variant-numeric:tabular-nums}.chat-video-edit-stage{position:relative;width:100%;height:100%;min-height:110px}.chat-video-edit-stage canvas{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;width:auto;height:auto;touch-action:none;background:#111216;cursor:crosshair}.chat-video-edit-stage video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.chat-video-edit-help{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:32px;flex:none;color:var(--media-muted);font-size:13px;margin:0}.chat-video-edit-help button{color:var(--media-active);min-height:36px;white-space:nowrap}@media(max-width:640px){.chat-media-editor[data-slot=dialog-content],.chat-media-review[data-slot=dialog-content],.photos-send-dialog.chat-media-review[data-slot=dialog-content]{width:100vw!important;height:100dvh;max-height:100dvh!important;inset:0!important;translate:none!important;transform:none!important;border:0!important;border-radius:0!important;padding:8px 12px max(12px,env(safe-area-inset-bottom))!important}}.chat-media-picker[data-slot=dialog-content]{width:min(380px,calc(100vw - 24px))!important;max-width:none!important;padding:14px!important;gap:12px!important;border-radius:16px!important}.chat-media-picker .chat-media-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.chat-media-picker .chat-media-options>button{flex-direction:column;gap:7px;min-height:70px;padding:7px 2px;font-size:13px}@media(max-width:640px){.chat-media-picker[data-slot=dialog-content]{inset:auto 0 0!important;width:100vw!important;translate:none!important;transform:none!important;border-radius:18px 18px 0 0!important;padding:12px 14px max(14px,env(safe-area-inset-bottom))!important}}.chat-media-review .video-send-file{display:flex;justify-content:space-between;gap:10px;flex:none;font-size:13px}.chat-media-review .video-send-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-media-review .video-send-file>small{white-space:nowrap}.chat-media-editor .photo-extra-tools{grid-template-columns:repeat(4,minmax(0,1fr))}.chat-media-editor .photo-editor-history{overflow-x:auto}.chat-media-editor .photo-editor-history button{white-space:nowrap}.photos-send-dialog.chat-media-review .photo-preview-tools>button{min-height:48px}.chat-media-editor .primary,.chat-media-review .primary{background:#7040cf!important;color:#fff!important;border-color:#8d63dd!important}.chat-media-editor .primary:disabled,.chat-media-review .primary:disabled{opacity:.5}