.themed-chat.chat-screen{background-image:var(--chat-wallpaper);background-position:50%;background-size:cover}.themed-chat .chat-topbar,.themed-chat .chat-composer{background:var(--background)}.themed-chat .composer-field{background:var(--input)}.themed-chat .composer-image-button img{filter:var(--chat-art-filter);mix-blend-mode:var(--chat-art-blend)}.themed-chat .composer-image-button.compact img{clip-path:circle(34%)}.themed-chat .message-list{-webkit-touch-callout:none}.themed-chat .timestamp-separator,.themed-chat .message-status{text-shadow:0 1px 3px var(--background)}.chat-theme-dialog{--picker-bg:#252728;--picker-text:#e4e6eb;--picker-tile:#383a3d;width:min(440px,100% - 16px);max-width:none;height:min(780px, calc(var(--app-height,100dvh) - 96px));background:var(--picker-bg);max-height:calc(100dvh - 32px);color:var(--picker-text);--background:#000;--their-bubble:#333334;--their-text:#fff;--my-bubble:#2069ff;--secondary:#b0b3b8;--chat-wallpaper:none;border:0;border-radius:24px;padding:0;font-family:system-ui,sans-serif;font-size:16px;position:fixed;inset:0;overflow:hidden}.chat-theme-dialog.theme-picker-light{--picker-bg:#fff;--picker-text:#080809;--picker-tile:#eef0f3;--background:#fff;--their-bubble:#f0f0f0;--their-text:#080809;--secondary:#656565}.chat-theme-dialog::backdrop{background:#000000a6}.chat-theme-panel{flex-direction:column;height:100%;min-height:0;display:flex}.chat-theme-panel>header{flex:none;align-items:center;gap:16px;padding:16px 12px 12px;display:flex}.chat-theme-panel h2{overflow-wrap:anywhere;flex:1;margin:0;font-size:22px;line-height:1.25}.theme-icon-button{color:var(--picker-text);background:0 0;border:0;border-radius:50%;flex:0 0 44px;place-items:center;width:44px;height:44px;display:grid}.theme-icon-button svg{width:26px;height:26px}.chat-theme-scroll{overscroll-behavior:contain;flex:1;min-height:0;padding:4px 10px 24px;overflow-y:auto}.chat-theme-scroll h3{margin:24px 0 16px;font-size:18px}.chat-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px;display:grid}.theme-tile{min-width:0;color:var(--picker-text);text-align:left;background:0 0;border:0;flex-direction:column;gap:8px;padding:0;font-size:15px;line-height:1.3;display:flex}.theme-tile>span:last-child{overflow-wrap:anywhere}.theme-tile-art{aspect-ratio:.61;background-color:var(--background);background-image:var(--chat-wallpaper,none);background-position:50%;background-size:cover;border-radius:14px;place-items:center;width:100%;display:grid;position:relative}.theme-color-art{background:var(--my-bubble)}.theme-color-grid .theme-tile-art{aspect-ratio:.61}.theme-upload{background:var(--picker-tile)}.theme-upload>svg{width:28px;height:28px}.theme-selected{color:#fff;background:#0866ff;border-radius:50%;place-items:center;width:28px;height:28px;display:grid;box-shadow:0 0 0 2px #fff}.theme-selected svg{width:20px;height:20px}.theme-chat-preview{background-color:var(--background);background-image:var(--chat-wallpaper,none);background-position:50%;background-size:cover;border-radius:8px;flex-direction:column;align-items:flex-start;gap:16px;min-height:300px;padding:24px 12px;display:flex}.theme-preview-time{color:var(--secondary);text-shadow:0 1px 3px var(--background);align-self:center;font-size:12px}.theme-preview-bubble{background:var(--their-bubble);max-width:85%;color:var(--their-text);overflow-wrap:anywhere;border-radius:19px;padding:10px 12px;font-size:16px;line-height:1.3}.theme-preview-bubble.mine{background:var(--my-bubble);color:#fff;align-self:flex-end}.theme-dim-control{margin:20px 0;display:block}.theme-dim-control output{float:right}.theme-dim-control input{accent-color:#0866ff;width:100%;margin-top:16px;display:block}.chat-theme-panel>footer{padding:12px 16px max(16px, env(safe-area-inset-bottom));flex:none}.theme-apply{color:#fff;background:#0866ff;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:44px;padding:10px;font-size:16px;font-weight:600;display:flex}.theme-save-error{color:var(--picker-text);line-height:1.45}.chat-theme-dialog button:focus-visible{outline-offset:3px;outline:3px solid #0866ff}.chat-theme-dialog:focus{outline:none}.chat-theme-dialog button:disabled{opacity:.5}@media (max-width:340px){.chat-theme-grid{gap:16px 10px}.theme-tile{font-size:14px}}
.reveal-image-wrap,.reveal-video{width:min(260px,100%);max-width:100%}.reveal-image{background:0 0;border:0;border-radius:14px;width:100%;padding:0;display:block;overflow:hidden}.reveal-image img{object-fit:contain;width:100%;height:auto;max-height:330px;display:block}.reveal-image.reveal-card{width:155px;max-width:100%}.reveal-credit{color:var(--secondary);overflow-wrap:anywhere;max-width:260px;padding:4px;font-size:10px;line-height:1.35;display:block}.reveal-credit a{color:inherit;text-decoration:underline}.reveal-video{background:var(--their-bubble);color:var(--their-text);border-radius:14px;text-decoration:none;display:block;overflow:hidden}.reveal-video>span{aspect-ratio:16/9;display:block;position:relative}.reveal-video img{object-fit:cover;width:100%;height:100%}.reveal-video svg{fill:#fff;color:#fff;filter:drop-shadow(0 1px 3px #000);width:40px;height:40px;margin:auto;position:absolute;inset:0}.reveal-video strong,.reveal-video small{overflow-wrap:anywhere;padding:8px 12px;display:block}.reveal-video small{padding-top:0;font-size:12px}.reveal-viewer{color:#fff;background:#000;border:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;padding:48px 12px 12px}.reveal-viewer::backdrop{background:#000}.reveal-viewer>button{color:#fff;background:0 0;border:0;width:44px;height:44px;position:absolute;top:4px;right:8px}.reveal-viewer>img{object-fit:contain;width:100%;height:100%}.media-settings-preview{max-width:100%;margin:16px 0}.media-reveal-settings input{box-sizing:border-box;width:100%;min-width:0}.media-setup-steps{overflow-wrap:anywhere;padding-left:22px;font-size:14px;line-height:1.5}.media-setup-steps li{margin-bottom:12px}.media-help{margin:12px 0 20px}.media-help>summary{cursor:pointer;padding:8px 0;font-weight:600}
.friends-settings{width:100%;min-width:0}.friends-toolbar{color:var(--secondary);justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.friends-tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;margin:4px 0 22px;display:flex}.friends-tabs button{min-height:48px;color:var(--secondary);white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;flex:1 0 auto;padding:8px 7px;font-size:12px}.friends-tabs button[aria-selected=true]{border-bottom-color:var(--blue);color:var(--text);font-weight:700}.friends-settings h2{margin:0 0 16px;font-size:18px;line-height:1.35}.friends-settings button:disabled{opacity:.45;cursor:default}.friends-photo-edit{align-items:center;gap:16px;margin-bottom:22px;display:flex}.friends-photo-edit>div{gap:10px;display:grid}.friend-avatar{background:var(--input);color:var(--secondary);border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.friend-avatar img{object-fit:cover;width:100%;height:100%}.friends-field{gap:8px;margin-bottom:16px;display:grid}.friends-field>span{font-size:14px;font-weight:600}.friends-field input{border:1px solid var(--border);background:var(--input);width:100%;min-width:0;min-height:48px;color:var(--text);font:inherit;border-radius:6px;padding:11px 12px;font-size:16px}.friends-field input[readonly]{color:var(--secondary)}.friends-help{color:var(--secondary);overflow-wrap:anywhere;margin:12px 0 20px;font-size:13px;line-height:1.55}.friends-toggle{align-items:center;gap:12px;min-height:48px;font-size:15px;display:flex}.friends-toggle input{accent-color:var(--blue);flex:none;width:20px;height:20px}.friends-settings .primary-button,.friend-actions button,.friends-settings .text-button{white-space:normal;justify-content:center;align-items:center;gap:8px;display:flex}.friends-settings .text-button{min-height:44px;padding:8px 0}.friends-settings .primary-button svg,.friend-actions svg{flex-shrink:0}.friends-error,.friends-notice{border-left:3px solid var(--blue);background:var(--surface);overflow-wrap:anywhere;margin:0 0 20px;padding:12px;font-size:14px;line-height:1.5}.friends-error{border-left-color:#db4355}.friends-notice{border-left-color:#32a86a}.friends-invite{border-bottom:1px solid var(--border);margin-bottom:24px;padding-bottom:24px}.friend-entry{border-bottom:1px solid var(--border);padding:16px 0}.friend-person{align-items:center;gap:12px;display:flex}.friend-person>div{flex:1;min-width:0}.friend-person strong{overflow-wrap:anywhere;font-size:16px;line-height:1.4;display:block}.friend-person small{color:var(--secondary);margin-top:4px;font-size:13px;line-height:1.5;display:block}.friend-actions{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.friend-actions button{min-height:44px;color:var(--text);background:var(--input);border:1px solid var(--border);border-radius:6px;padding:9px 12px;scroll-margin-block:12px;font-size:13px}.friends-scope{border-top:1px solid var(--border);margin-top:24px;padding-top:18px}.friends-confirm{width:min(420px,100% - 32px);max-height:calc(100dvh - 32px);color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;margin:auto;padding:22px;overflow-y:auto}.friends-confirm::backdrop{background:#000a}.friends-confirm p{color:var(--secondary);font-size:14px;line-height:1.5}
.real-avatar{background:var(--input);color:var(--secondary)}.real-friend-row{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.real-friend-row.unread .contact-name,.real-friend-row.unread .contact-preview{color:var(--text);font-weight:700}.real-unread-dot{background:var(--blue);border-radius:50%;width:9px;height:9px}.real-chat-screen .chat-topbar>button:disabled{opacity:1}.real-chat-screen .message-bubble{white-space:pre-wrap;overflow-wrap:anywhere}.real-chat-screen .message-bubble.pending{opacity:.65}.real-chat-empty{color:var(--secondary);text-align:center;overflow-wrap:anywhere;flex-direction:column;align-items:center;gap:16px;margin:36px 16px;display:flex}.real-chat-empty strong{color:var(--text);font-size:21px}.real-message-status{color:var(--secondary);justify-content:flex-end;align-items:center;gap:4px;padding:0 6px 8px;font-size:11px;display:flex}.real-message-status button{color:var(--secondary);background:0 0;border:0;padding:6px 0;font-size:12px}.real-load-older{color:var(--blue);background:0 0;border:0;margin:8px auto 20px;padding:10px;display:block}.real-new-messages{bottom:calc(74px + env(safe-area-inset-bottom));background:var(--surface);color:var(--text);border:1px solid var(--secondary);border-radius:8px;align-items:center;gap:6px;padding:8px 12px;font-size:13px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.real-message-menu{z-index:80;background:var(--their-bubble);color:var(--text);border-radius:24px;max-height:calc(100dvh - 24px);padding:10px;position:fixed;overflow-y:auto;box-shadow:0 4px 20px #0004}.real-quick-reactions,.real-more-reactions{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;display:grid}.real-more-reactions{max-height:230px;padding-top:8px;overflow-y:auto}.real-quick-reactions button,.real-more-reactions button{background:0 0;border:0;border-radius:50%;place-items:center;min-width:0;height:44px;padding:0;font-size:29px;line-height:1;display:grid}.real-message-menu button[aria-pressed=true]{background:var(--blue)}.real-message-menu button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}.real-message-commands{flex-wrap:wrap;gap:4px;padding-top:8px;display:flex}.real-message-commands button{background:0 0;border:0;flex:125px;justify-content:center;align-items:center;gap:6px;min-height:42px;padding:6px;font-size:13px;display:flex}.real-message-menu p{padding:0 8px;font-size:13px}.real-chat-screen .message-bubble[role=button]{cursor:pointer;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.real-chat-screen .message-bubble.real-unsent{border:1px solid var(--border);color:var(--secondary);background:0 0;font-style:italic}.real-chat-screen .message-reaction{align-items:center;gap:4px;min-width:28px;display:flex}.real-quick-reactions button:last-child{background:color-mix(in srgb, var(--secondary) 22%, transparent)}
.performance-settings{width:100%;min-width:0;color:var(--text);letter-spacing:0;overflow-wrap:anywhere;font-size:.9375rem;line-height:1.5}.performance-settings *,.performance-settings :before,.performance-settings :after{box-sizing:border-box}.performance-settings [hidden]{display:none!important}.performance-settings svg{flex:none}.performance-settings button,.performance-settings input,.performance-settings textarea,.performance-settings select{font:inherit;letter-spacing:0}.performance-settings button{cursor:pointer}.performance-settings button:disabled{opacity:.5;cursor:default}.performance-settings :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid var(--blue);outline-offset:3px}.performance-settings h2{margin:0;font-size:1.0625rem;line-height:1.4}.performance-settings h3{align-items:center;gap:8px;margin:0;font-size:.9375rem;line-height:1.4;display:flex}.performance-settings p{margin:0}.performance-toolbar,.performance-section-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;display:flex}.performance-toolbar{color:var(--secondary);margin-bottom:3px;font-size:.75rem}.performance-toolbar>span{flex:140px;align-items:center;gap:7px;display:flex}.performance-section-heading{margin-bottom:12px}.performance-section-heading>svg{color:var(--secondary)}.performance-section-heading .performance-help{margin:0}.performance-icon-button{width:44px;height:44px;color:var(--secondary);background:0 0;border:0;border-radius:6px;flex:0 0 44px;place-items:center;display:inline-grid}.performance-icon-button:hover:not(:disabled){background:var(--input);color:var(--text)}.performance-tabs{border-bottom:1px solid var(--border);grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 20px;display:grid}.performance-tabs button{min-width:0;min-height:50px;color:var(--secondary);white-space:normal;background:0 0;border:0;border-bottom:3px solid #0000;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px;padding:9px 3px;font-size:.75rem;line-height:1.4;display:flex}.performance-tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--blue);font-weight:700}.performance-tabs button:hover{background:color-mix(in srgb, var(--input) 45%, transparent)}.performance-tabs button span{overflow-wrap:anywhere;min-width:0}.performance-help,.performance-loading{color:var(--secondary);font-size:.8125rem;line-height:1.6;margin:10px 0 16px!important}.performance-help>svg{vertical-align:-3px;margin-right:4px;display:inline}.performance-loading{align-items:center;gap:8px;display:flex}.performance-state{color:var(--secondary);align-items:center;gap:5px;font-size:.75rem;display:inline-flex}.performance-state--on{color:var(--green)}.performance-receiver{align-items:center;gap:12px;padding:8px 0;display:flex}.performance-receiver>svg{color:var(--blue)}.performance-receiver>div{min-width:0}.performance-receiver strong{font-size:.9375rem;display:block}.performance-receiver p{color:var(--secondary);margin-top:3px;font-size:.8125rem}.performance-preview{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:16px 0;padding:13px 0}.performance-toggle{cursor:pointer;align-items:flex-start;gap:11px;min-height:44px;display:flex}.performance-toggle input{width:20px;height:20px;accent-color:var(--blue);flex:0 0 20px;margin:2px 0 0}.performance-toggle span{min-width:0;font-size:.875rem;font-weight:600}.performance-toggle small{color:var(--secondary);margin-top:3px;font-size:.75rem;font-weight:400;display:block}.performance-warning{color:var(--secondary);align-items:flex-start;gap:9px;font-size:.8125rem;display:flex;margin-top:12px!important}.performance-warning svg{margin-top:3px}.performance-warning span{min-width:0}.performance-actions{flex-wrap:wrap;align-items:stretch;gap:8px;display:flex}.performance-button{border:1px solid var(--border);background:var(--input);min-width:0;max-width:100%;min-height:44px;color:var(--text);text-align:center;white-space:normal;overflow-wrap:anywhere;border-radius:6px;justify-content:center;align-items:center;gap:8px;padding:10px 12px;display:inline-flex;font-size:.8125rem!important;font-weight:600!important;line-height:1.45!important}.performance-button--primary{background:color-mix(in srgb, var(--blue) 82%, #000);color:#fff;border-color:#0000}.performance-button--quiet{color:var(--blue);background:0 0;border-color:#0000}.performance-button:hover:not(:disabled){filter:brightness(1.1)}.performance-actions .performance-button{flex:0 auto}.performance-feedback{border-left:3px solid var(--blue);background:color-mix(in srgb, var(--input) 50%, transparent);margin:12px 0 16px;padding:11px 12px;font-size:.8125rem;line-height:1.6}.performance-feedback>p+p,.performance-feedback>.performance-button{margin-top:10px}.performance-feedback--error{border-left-color:var(--danger)}.performance-feedback--notice{border-left-color:var(--green)}.performance-confirm{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.performance-confirm .performance-actions{margin-top:10px}.performance-guide{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:24px}.performance-guide summary{cursor:pointer;align-items:center;gap:9px;min-height:52px;padding:11px 0;font-size:.875rem;font-weight:600;list-style:none;display:flex}.performance-guide summary::-webkit-details-marker{display:none}.performance-guide summary span{flex:1;min-width:0}.performance-guide[open] summary>svg:last-child{transform:rotate(180deg)}.performance-guide>div{padding:7px 0 4px}.performance-guide ol{margin:12px 0;padding-left:24px;font-size:.8125rem}.performance-guide li{margin:10px 0;padding-left:3px}.performance-guide a{color:var(--blue);text-underline-offset:3px;padding:7px 0;font-size:.8125rem;display:inline-block}.performance-field{gap:7px;min-width:0;margin:0 0 16px;display:grid}.performance-field>span{flex-wrap:wrap;justify-content:space-between;gap:5px 12px;font-size:.8125rem;font-weight:600;display:flex}.performance-field small{color:var(--secondary);font-size:.75rem;font-weight:400}.performance-field :is(input,select,textarea){border:1px solid var(--border);background:var(--input);width:100%;min-width:0;min-height:46px;color:var(--text);border-radius:6px;padding:11px 12px;font-size:1rem;line-height:1.5;display:block}.performance-field textarea{resize:vertical;overflow-wrap:anywhere;white-space:pre-wrap}.performance-field textarea::placeholder{color:var(--secondary);opacity:1}.performance-field :disabled{opacity:.65}.performance-field-with-action{align-items:flex-end;gap:7px;margin-bottom:16px;display:flex}.performance-field-with-action .performance-field{flex:1;margin-bottom:0}.performance-settings form>.performance-button--primary{width:100%}.performance-relay{border-top:1px solid var(--border);margin-top:24px;padding-top:20px}.performance-relay-state{font-size:.875rem;font-weight:600;margin:12px 0!important}.performance-send-mode{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;margin:0 0 16px;padding:0;display:grid}.performance-send-mode legend{padding:0 0 7px;font-size:.8125rem;font-weight:600}.performance-send-mode label{border:1px solid var(--border);background:var(--input);cursor:pointer;border-radius:6px;align-items:center;gap:8px;min-width:0;min-height:48px;padding:10px;font-size:.8125rem;display:flex}.performance-send-mode label:has(input:checked){border-color:var(--blue)}.performance-send-mode input{width:18px;height:18px;accent-color:var(--blue);flex:0 0 18px;margin:0}.performance-send-mode span{min-width:0}.performance-send-mode:disabled{opacity:.65}.performance-inject-answer p{font-size:.875rem}.performance-heads-up{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:16px 0;padding:12px 0}.performance-suggestion{margin-top:12px}.performance-filters{background:var(--input);border-radius:6px;flex-wrap:wrap;gap:4px;margin:0 0 16px;padding:3px;display:flex}.performance-filters button{min-width:0;min-height:42px;color:var(--secondary);white-space:normal;background:0 0;border:1px solid #0000;border-radius:4px;flex:110px;justify-content:center;align-items:center;gap:6px;padding:8px;font-size:.8125rem;display:flex}.performance-filters button[aria-pressed=true]{border-color:var(--border);background:var(--surface);color:var(--text);font-weight:600}.performance-request{border-bottom:1px solid var(--border)}.performance-request-summary{width:100%;min-width:0;color:var(--text);text-align:left;background:0 0;border:0;grid-template-columns:30px minmax(0,1fr) auto 16px;align-items:center;gap:8px;padding:14px 0;display:grid}.performance-person-icon{background:var(--input);width:30px;height:30px;color:var(--secondary);border-radius:6px;align-self:start;place-items:center;display:grid}.performance-person{min-width:0}.performance-person strong{font-size:.875rem;line-height:1.5;display:block}.performance-person small{color:var(--secondary);margin-top:3px;font-size:.75rem;line-height:1.5;display:block}.performance-status{max-width:115px;color:var(--secondary);text-align:right;justify-content:flex-end;align-items:center;gap:4px;font-size:.75rem;line-height:1.5;display:inline-flex}.performance-status--ready{color:var(--green);font-weight:700}.performance-status--waiting{color:var(--blue)}.performance-chevron{color:var(--secondary)}.performance-request--open .performance-chevron{transform:rotate(180deg)}.performance-request-body{padding:0 0 16px}.performance-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9375rem;line-height:1.65;margin:2px 0 14px!important}.performance-answer{border-left:2px solid var(--blue);gap:5px;padding:9px 0 9px 12px;display:grid}.performance-answer>span{color:var(--secondary);font-size:.75rem}.performance-answer strong{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;font-size:1rem;line-height:1.6}.performance-request-meta{gap:9px;margin:16px 0 12px;font-size:.75rem;display:grid}.performance-request-meta>div{grid-template-columns:max-content minmax(0,1fr);gap:10px;display:grid}.performance-request-meta dt{color:var(--secondary)}.performance-request-meta dd{margin:0}.performance-expiry{color:var(--secondary);font-variant-numeric:tabular-nums;align-items:center;gap:6px;font-size:.75rem;display:flex;margin:10px 0 14px!important}.performance-linked-request{margin-bottom:20px}.performance-empty{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:30px 8px;display:flex}.performance-empty>svg,.performance-empty p{color:var(--secondary)}.performance-empty strong{font-size:.9375rem}.performance-empty p{font-size:.8125rem}.performance-footer{padding-top:16px}@media (max-width:380px){.performance-tabs button{flex-direction:column;gap:4px}.performance-request-summary{grid-template-columns:30px minmax(0,1fr) 16px}.performance-request-summary .performance-status{text-align:left;grid-column:2;justify-content:flex-start;max-width:none}.performance-request-summary .performance-chevron{grid-area:1/3}.performance-actions .performance-button{flex:100%}}@media (prefers-reduced-motion:no-preference){.performance-spin{animation:1.2s linear infinite performance-spin}@keyframes performance-spin{to{transform:rotate(360deg)}}}
