.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-video-frame{position:relative}.chat-video-launch{position:absolute;inset:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#fff;background:linear-gradient(transparent 60%,#0005);border-radius:inherit}.chat-video-launch>span{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#0007;backdrop-filter:blur(3px)}.chat-video-launch>small{font-size:14px;text-shadow:0 1px 4px #000}.chat-video-launch:focus-visible{outline:3px solid var(--nt-outline,#7040d9);outline-offset:-3px}.chat-video-loading{pointer-events:none}.video-viewer[data-slot=dialog-content]{position:fixed!important;inset:0!important;top:0!important;left:0!important;transform:none!important;translate:none!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;padding:0!important;gap:0!important;display:flex!important;flex-direction:column!important;background:#08080b!important;color:#fff!important;overflow:hidden!important;z-index:90!important;animation:none!important;box-shadow:none!important}.video-viewer[data-slot=dialog-content]:fullscreen{width:100%!important;height:100%!important}.video-viewer>header{display:flex;align-items:center;gap:8px;flex:none;min-height:48px;padding:max(4px,env(safe-area-inset-top)) 12px 4px;font-size:14px}.video-viewer>header>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e7e0ec}.video-viewer>header button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;background:#303038;border:1px solid #ffffff66}.video-viewer-stage{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.video-viewer-stage>video{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;background:#08080b}.video-viewer>footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:none;padding:4px 16px max(4px,env(safe-area-inset-bottom));font-size:14px;color:#e4d5fb}.video-viewer>footer a,.video-viewer>footer button{display:flex;gap:6px;align-items:center;min-height:40px}.video-viewer-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:24px;text-align:center;font-size:16px;pointer-events:none;background:#08080b88}.video-viewer-state button{pointer-events:auto;min-height:44px;padding:8px 18px;border-radius:9px;background:var(--nt-button,#7040d9);color:#fff}.chat-video.stable-preview{position:relative}.stable-preview .video-playback-help{position:absolute;inset:0;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:4px;padding:8px;background:#21182fe8;border-radius:9px;color:#f1e9fb;font-size:14px;line-height:1.4}.stable-preview .video-playback-help p{flex-basis:100%;text-align:center}.stable-preview .video-playback-help a,.stable-preview .video-playback-help button{min-height:34px;padding:4px 8px;color:#fff}.video-viewer>header button>svg{color:inherit;stroke:currentColor}.video-viewer>header button:focus-visible{outline:2px solid #fff;outline-offset:2px}.feed-video{position:relative;width:min(100%,calc(420px * var(--feed-video-ratio) + 12px));max-width:100%;margin-top:6px;border-radius:10px;overflow:hidden;background:#17121d}.feed-video .chat-video{width:100%;max-width:100%}.feed-video .chat-video-frame{width:100%;aspect-ratio:var(--video-ratio);border-radius:10px;overflow:hidden;background:#17121d}.feed-video .chat-video-frame>img{display:block;width:100%;height:100%;object-fit:contain}.feed-video-duration{position:absolute;right:8px;bottom:7px;padding:2px 5px;font-size:14px;line-height:19px;color:white;background:#0009;border-radius:4px;pointer-events:none}.feed-video-draft{padding:8px;border:1px solid var(--border);border-radius:10px;margin:8px 0}.feed-video-draft .chat-video{width:min(100%,calc(260px * var(--video-ratio)));margin:0 auto}.feed-video-draft .chat-video-frame{aspect-ratio:var(--video-ratio);background:#17121d;border-radius:8px;overflow:hidden}.feed-video-draft .chat-video-frame>video{display:block;width:100%;height:100%;object-fit:contain}.feed-video-meta{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:6px}.feed-video-meta>span{flex:1;min-width:0;overflow-wrap:anywhere}.feed-video-meta button{min-height:44px;padding:4px 8px;color:var(--nt-link,var(--primary))}.feed-media-choices{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.feed-media-choices button{min-height:44px}.feed-media-choices small{font-size:14px;color:var(--nt-muted,#73697e)}.feed-publish-progress{display:flex;align-items:center;gap:8px;font-size:14px;margin:8px 0}.feed-publish-progress progress{min-width:0;flex:1;accent-color:var(--primary)}.feed-publish-error{font-size:14px;line-height:1.5;color:#a13d45;background:var(--nt-soft,#fff1ef);padding:8px;border-radius:8px;margin:6px 0}.feed-video-ai-voice{position:absolute;left:10px;bottom:10px;padding:3px 6px;border-radius:5px;background:#30233cbb;color:#fff;font-size:14px;pointer-events:none}