.rsc-dock { position: fixed; inset: 0; z-index: 1051; pointer-events: none; }
.rsc-dock[hidden] { display: none !important; }
.rsc-launch { position: relative; display: grid; place-items: center; box-sizing: border-box; inline-size: 100%; block-size: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; line-height: 1; cursor: pointer; }
.rsc-launch i { color: inherit; pointer-events: none; }
.rsc-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; padding: 2px 4px; border: 1px solid #fff; border-radius: 10px; text-align: center; background: #9c3827; color: white; font: 650 11px/1.2 var(--ruma-font-family, sans-serif); pointer-events: none; }
#sc-guide-trigger[data-rsc-unread] { box-shadow: inset 0 0 0 2px #ad462e; }
.rsc-panel { --rsc-surface: var(--pos-surface, #fff); --rsc-text: var(--pos-text, #22292a); --rsc-line: var(--pos-border, #e5e7eb); --rsc-muted: color-mix(in srgb, var(--rsc-text) 62%, var(--rsc-surface)); --rsc-wash: color-mix(in srgb, var(--rsc-text) 4%, var(--rsc-surface)); --rsc-canvas: color-mix(in srgb, #5b6b8c 12%, var(--rsc-surface)); --rsc-accent: #49752b; --rsc-soft: color-mix(in srgb, var(--rsc-accent) 10%, var(--rsc-surface)); --rsc-tint: color-mix(in srgb, #7fad49 14%, var(--rsc-surface)); position: absolute; inset: auto max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) auto; z-index: 1; box-sizing: border-box; margin: 0; padding: 0; inline-size: min(480px, calc(100vw - 28px)); max-inline-size: calc(100vw - 28px); block-size: min(78dvh, 720px); max-block-size: calc(100dvh - 64px); overflow: visible; border: 0; background: transparent; color: var(--rsc-text); font: 14px/1.4 var(--ruma-font-family, sans-serif); }
.rsc-launch, .rsc-panel { pointer-events: auto; }
.rsc-panel[open] { display: flex; flex-direction: column; }
.rsc-panel:not([open]), .rsc-panel [hidden], .rsc-launch [hidden] { display: none !important; }
.rsc-window { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--rsc-line); border-radius: 16px; background: var(--rsc-surface); box-shadow: 0 25px 50px -12px #00000040; }
.rsc-window > :not(.rsc-transcript-frame) { flex: none; }
.rsc-transcript-frame { position: relative; display: flex; flex: 1 1 0%; min-height: 0; min-width: 0; }
.rsc-header [data-rsc-close] { display: grid; place-items: center; flex: 0 0 36px; height: 36px; margin-inline-start: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 15px; cursor: pointer; }
.rsc-header [data-rsc-close]:hover { background: var(--rsc-soft); }
.rsc-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; box-sizing: border-box; height: 56px; min-width: 0; padding: 0 16px; border-bottom: 1px solid var(--rsc-line); background: var(--rsc-surface); box-shadow: 0 1px 2px #0000000d; color: var(--rsc-text); }
.rsc-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; box-sizing: border-box; place-items: center; border: 1px solid var(--rsc-line); border-radius: 50%; background: var(--rsc-soft); color: var(--rsc-accent); font-size: 18px; }
.rsc-launch .rsc-avatar { width: 100%; height: 100%; border: 0; background: var(--pos-surface, #fff); color: var(--pos-accent, #176552); pointer-events: none; }
.rsc-heading { display: flex; flex-direction: column; min-width: 0; }
.rsc-header h2 { margin: 0; overflow: hidden; color: inherit; font: 600 16px/1.25 var(--ruma-font-family, sans-serif); text-overflow: ellipsis; white-space: nowrap; }
.rsc-subtitle { margin: 0; overflow: hidden; color: var(--rsc-muted); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rsc-thread-switch { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 6px 12px; border-bottom: 1px solid var(--rsc-line); background: var(--rsc-surface); font-size: 12px; }
.rsc-thread-switch label { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--rsc-muted); font: inherit; }
.rsc-thread-switch select { flex: 1; min-width: 0; padding: 5px; border: 1px solid var(--rsc-line); border-radius: 6px; background: var(--rsc-surface); color: var(--rsc-text); font: inherit; }
.rsc-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--rsc-muted); font-size: 18px; cursor: pointer; }
.rsc-icon:hover:not(:disabled), .rsc-icon[aria-expanded="true"] { background: var(--rsc-soft); color: var(--rsc-accent); }
.rsc-icon:disabled { opacity: .46; cursor: default; }
.rsc-panel :focus-visible, .rsc-launch:focus-visible { outline: 2px solid #1ba781; outline-offset: -2px; }
.rsc-transcript { flex: 1; min-width: 0; min-height: 0; overflow: hidden auto; overflow-anchor: none; overscroll-behavior: contain; padding: 12px 14px 18px; background: var(--rsc-canvas); }
.rsc-drop-target { position: absolute; z-index: 5; inset: 0; display: none; place-items: center; padding: 6px; background: color-mix(in srgb, var(--rsc-surface) 85%, transparent); pointer-events: none; }
.rsc-panel[data-rsc-drop-zone] .rsc-drop-target { display: grid; }
.rsc-panel[data-rsc-drop-zone]:has(:is([data-rsc-reply], [data-rsc-attachment-draft]):not([hidden])) [data-rsc-drop-target="send"] { display: none; }
.rsc-drop-target span { min-width: 0; max-width: 100%; padding: 6px 12px; border: 1px dashed var(--rsc-muted); border-radius: 8px; background: var(--rsc-surface); color: var(--rsc-text); font-weight: 600; text-align: center; }
.rsc-drop-target i { margin-inline-end: 4px; }
.rsc-panel[data-rsc-drop-zone="send"] [data-rsc-drop-target="send"],
.rsc-panel[data-rsc-drop-zone="composer"] [data-rsc-drop-target="composer"] { background: color-mix(in srgb, var(--rsc-tint) 88%, transparent); }
.rsc-panel[data-rsc-drop-zone="send"] [data-rsc-drop-target="send"] span,
.rsc-panel[data-rsc-drop-zone="composer"] [data-rsc-drop-target="composer"] span { border-color: var(--rsc-accent); color: var(--rsc-accent); }
.rsc-older { display: block; margin: 0 auto 10px; padding: 4px 12px; border: 1px solid var(--rsc-line); border-radius: 999px; background: var(--rsc-surface); color: var(--rsc-text); font-size: 12px; cursor: pointer; }
.rsc-older[aria-busy="true"] { opacity: .6; cursor: progress; }
.rsc-transcript ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.rsc-message { min-width: 0; }
.rsc-message[data-first]:not(:first-child) { margin-top: 8px; }
.rsc-message[data-has-reactions], .rsc-panel[data-rsc-can-react] .rsc-message[data-latest-incoming] { padding-bottom: 12px; }
.rsc-day { display: table; margin: 8px auto 12px; padding: 3px 10px; border-radius: 999px; background: var(--rsc-surface); box-shadow: 0 1px 2px #0000000f; color: var(--rsc-muted); font-size: 11px; font-weight: 500; }
.rsc-message-line { display: flex; align-items: flex-start; gap: 8px; }
.rsc-message[data-mine] .rsc-message-line { justify-content: flex-end; }
.rsc-message-avatar { display: grid; flex: 0 0 32px; width: 32px; height: 32px; box-sizing: border-box; place-items: center; border: 1px solid var(--rsc-line); border-radius: 50%; background: var(--rsc-soft); color: var(--rsc-accent); font-size: 14px; }
.rsc-message:not([data-first]) .rsc-message-avatar { height: 0; visibility: hidden; }
.rsc-bubble { position: relative; display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; max-width: min(78%, calc(100% - 40px)); min-width: 64px; padding: 8px 12px 6px; border: .5px solid #c7c7c780; border-radius: 8px; background: var(--rsc-surface); box-shadow: 0 2px 3px -1.8px #00000059; color: var(--rsc-text); overflow-wrap: anywhere; }
.rsc-message[data-mine] .rsc-bubble { background: var(--rsc-tint); }
.rsc-message .rsc-bubble.rsc-bubble--sticker { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.rsc-message[data-mine] .rsc-bubble--sticker { align-items: flex-end; }
.rsc-sender { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rsc-message:not([data-mine])[data-first] .rsc-sender { position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin-bottom: 2px; color: var(--rsc-muted); font-size: 12px; line-height: 16px; }
.rsc-message .rsc-message-text { max-width: 100%; margin: 0; padding: 0; color: inherit; font: inherit; line-height: 20px; white-space: pre-wrap; }
.rsc-message-meta { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--rsc-muted); }
.rsc-message-meta i { font-size: 10px; }
.rsc-message-delivery { display: inline-flex; align-items: center; gap: 4px; }
.rsc-typing { flex: 0 0 auto; margin: 0; padding: 2px 12px 4px; color: var(--rsc-muted); font-size: 12px; }
.rsc-message time { color: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
.rsc-sticker { display: block; width: 104px; height: 104px; max-width: 100%; object-fit: contain; }
.rsc-reactions { position: absolute; right: 40px; bottom: -12px; z-index: 2; display: flex; }
.rsc-panel:not([data-rsc-can-react]) .rsc-reactions { right: 12px; }
.rsc-reactions:empty { display: none; }
.rsc-bubble--sticker .rsc-reactions { position: static; margin-top: 4px; }
.rsc-chip { display: inline-flex; align-items: center; gap: 2px; box-sizing: border-box; height: 22px; padding: 0 6px; border: 1px solid var(--rsc-line); border-radius: 999px; background: var(--rsc-surface); box-shadow: 0 1px 2px #0000000d; color: var(--rsc-text); font: 12px/1 var(--ruma-font-family, sans-serif); cursor: pointer; }
.rsc-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--rsc-accent) 45%, var(--rsc-surface)); }
.rsc-chip-count { margin-left: 2px; color: var(--rsc-muted); font-size: 11px; }
.rsc-chip:disabled { opacity: 1; cursor: default; }
.rsc-quick { position: absolute; right: 12px; bottom: -12px; z-index: 3; }
.rsc-quick-like { display: grid; width: 24px; height: 24px; box-sizing: border-box; place-items: center; padding: 0; border: 1px solid var(--rsc-line); border-radius: 50%; background: var(--rsc-surface); box-shadow: 0 1px 1px #0000007a; color: var(--rsc-muted); font-size: 12px; cursor: pointer; }
.rsc-quick-like:hover { color: var(--rsc-accent); }
.rsc-bubble--sticker .rsc-quick, .rsc-panel:not([data-rsc-can-react]) .rsc-quick { display: none; }
.rsc-reaction-picker { position: absolute; right: 0; bottom: calc(100% + 6px); display: none; gap: 2px; padding: 4px; border: 1px solid var(--rsc-line); border-radius: 999px; background: var(--rsc-surface); box-shadow: 0 8px 24px #0000002e; transform: translateX(var(--rsc-picker-shift, 0px)); }
.rsc-reaction-picker::after { content: ''; position: absolute; top: 100%; right: 0; left: 0; height: 8px; }
.rsc-reaction-picker button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; transition: transform .12s ease; }
.rsc-reaction-picker button:hover { transform: scale(1.18); }
.rsc-reaction-picker button[aria-pressed="true"] { background: var(--rsc-soft); }
.rsc-quick:has(:focus-visible) .rsc-reaction-picker { display: flex; }
.rsc-message .rsc-quote { display: flex; flex-direction: column; align-self: stretch; box-sizing: border-box; width: auto; min-width: min(160px, 100%); max-width: 100%; height: auto; min-height: 0; margin: 2px 0 4px; padding: 4px 8px; border: 0; border-left: 3px solid var(--rsc-accent); border-radius: 4px; background: color-mix(in srgb, var(--rsc-text) 6%, transparent); box-shadow: none; color: var(--rsc-text); font: 12px/16px var(--ruma-font-family, sans-serif); text-align: left; text-transform: none; cursor: pointer; }
.rsc-message .rsc-quote:hover { background: color-mix(in srgb, var(--rsc-text) 10%, transparent); }
.rsc-bubble--sticker .rsc-quote { background: var(--rsc-surface); box-shadow: 0 1px 2px #0000000f; }
.rsc-quote-name { color: var(--rsc-accent); font-weight: 600; }
.rsc-quote-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--rsc-muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.rsc-quote-text i, .rsc-reply-snippet i { font-size: 11px; }
.rsc-reply-action { position: absolute; top: calc(50% - 12px); left: calc(100% + 8px); z-index: 2; display: grid; width: 24px; height: 24px; box-sizing: border-box; place-items: center; padding: 0; border: 1px solid var(--rsc-line); border-radius: 50%; background: var(--rsc-surface); box-shadow: 0 1px 1px #0000007a; color: var(--rsc-muted); font-size: 11px; cursor: pointer; }
.rsc-message[data-mine] .rsc-reply-action { right: calc(100% + 8px); left: auto; }
.rsc-reply-action:hover { color: var(--rsc-accent); }
.rsc-panel:not([data-rsc-can-reply]) .rsc-reply-action { display: none; }
.rsc-message[data-highlight] .rsc-bubble { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rsc-accent) 60%, transparent), 0 2px 3px -1.8px #00000059; }
@media (hover: hover) and (pointer: fine) {
	.rsc-quick:hover .rsc-reaction-picker { display: flex; }
	.rsc-message:not(:hover):not(:focus-within):not([data-latest-incoming]) .rsc-quick { opacity: 0; pointer-events: none; }
	.rsc-message:not(:hover):not(:focus-within) .rsc-reply-action { opacity: 0; pointer-events: none; }
}
@media (hover: none), (pointer: coarse) {
	.rsc-message:not([data-actions]):not([data-latest-incoming]) .rsc-quick { display: none; }
	.rsc-message:not([data-actions]) .rsc-reply-action { display: none; }
}
.rsc-status-row { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--rsc-surface); }
.rsc-status { flex: 1; margin: 0; padding: 6px 0; color: var(--rsc-text); font-size: 12px; }
.rsc-status:empty { display: none; }
.rsc-retry { flex: none; margin: 4px 0 4px auto; padding: 4px 12px; border: 1px solid var(--rsc-line); border-radius: 999px; background: var(--rsc-surface); color: var(--rsc-accent); font: 600 12px/1.2 var(--ruma-font-family, sans-serif); cursor: pointer; }
.rsc-composer { --rsc-composer-divider: color-mix(in srgb, var(--rsc-line) 60%, var(--rsc-surface)); position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding-bottom: 2px; border-top: 1px solid #d1d5db; background: var(--rsc-surface); }
.rsc-reply-bar { padding: 8px 12px 0; }
.rsc-reply-card { position: relative; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; min-width: 0; padding: 6px 36px 6px 10px; border-left: 3px solid var(--rsc-accent); border-radius: 6px; background: var(--rsc-wash); }
.rsc-reply-heading { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--rsc-accent); font-size: 12px; font-weight: 600; line-height: 16px; }
.rsc-reply-heading i { font-size: 11px; }
.rsc-reply-snippet { overflow: hidden; color: var(--rsc-muted); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rsc-reply-cancel { position: absolute; top: 4px; right: 4px; display: grid; width: 28px; height: 28px; box-sizing: border-box; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--rsc-muted); font-size: 14px; cursor: pointer; }
.rsc-reply-cancel:hover { background: var(--rsc-soft); color: var(--rsc-text); }
.rsc-toolbar { display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-bottom: 1px solid var(--rsc-composer-divider); }
.rsc-tool { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--rsc-muted); font-size: 17px; cursor: pointer; }
.rsc-toolbar .rsc-tool { border-radius: 2px; }
.rsc-tool:hover:not(:disabled), .rsc-tool[aria-expanded="true"] { background: var(--rsc-soft); color: var(--rsc-accent); }
.rsc-tool:disabled { opacity: .46; cursor: default; }
.rsc-tool[aria-pressed="true"] { background: var(--rsc-soft); color: var(--rsc-accent); }
.rsc-format { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.rsc-format .rsc-tool { flex: 0 0 32px; font-size: 14px; }
.rsc-format-divider { flex: 0 0 1px; height: 20px; margin-inline: 4px; background: var(--rsc-line); }
.rsc-attachment-draft { display: flex; align-items: center; flex: none; gap: 8px; min-width: 0; padding: 8px 12px 4px; overflow-x: auto; scrollbar-width: thin; }
.rsc-attachment-tile { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 36px 6px 8px; border: 1px solid var(--rsc-line); border-radius: 8px; color: var(--rsc-text); font-size: 13px; }
.rsc-attachment-tile span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rsc-attachment-tile[data-image], .rsc-attachment-add { flex: 0 0 64px; width: 64px; height: 64px; box-sizing: border-box; padding: 0; border-radius: 8px; }
.rsc-attachment-tile[data-image] { overflow: hidden; background: var(--rsc-soft); }
.rsc-attachment-tile[data-image] img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rsc-attachment-tile[data-image] > :is(i, span) { display: none; }
.rsc-attachment-tile[data-image] .rsc-reply-cancel { width: 20px; height: 20px; background: #0009; color: #fff; font-size: 12px; }
.rsc-attachment-tile[data-image] .rsc-reply-cancel:hover { background: #000c; }
.rsc-attachment-add { display: grid; place-items: center; border: 2px dashed var(--rsc-line); background: var(--rsc-surface); color: var(--rsc-muted); font-size: 20px; cursor: pointer; }
.rsc-attachment-add:hover:not(:disabled) { border-color: var(--rsc-muted); background: var(--rsc-soft); }
.rsc-attachment-add:disabled { opacity: .46; cursor: default; }
.rsc-formatted { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
.rsc-formatted :is(p, div, ul, ol, blockquote) { margin: 0; }
.rsc-formatted :is(ul, ol) { padding-inline-start: 1.5em; }
.rsc-formatted ul { list-style: disc; }
.rsc-formatted ol { list-style: decimal; }
.rsc-message .rsc-attachment { display: flex; align-items: center; gap: 8px; width: auto; height: auto; min-height: 0; min-width: 0; max-width: 100%; padding: 6px 8px; border: 1px solid var(--rsc-line); border-radius: 6px; background: var(--rsc-surface); color: var(--rsc-text); font: inherit; text-align: left; text-transform: none; cursor: pointer; }
.rsc-attachment span { min-width: 0; overflow-wrap: anywhere; }
.rsc-message .rsc-attachment--image { flex-direction: column; align-items: stretch; width: 184px; }
.rsc-attachment--image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 4px; background: var(--rsc-soft); }
.rsc-media { display: grid; gap: 6px; width: 228px; max-width: 100%; }
.rsc-media-images { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.rsc-media-images:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rsc-message .rsc-media-images .rsc-attachment--image { width: 100%; padding: 0; border: 0; background: transparent; }
.rsc-compose-row { display: flex; align-items: flex-end; gap: 8px; min-width: 0; padding: 6px 12px 4px; }
.rsc-compose-controls, .rsc-compose-actions { display: flex; align-items: center; min-width: 0; }
.rsc-compose-actions { flex: none; gap: 6px; }
.rsc-composer[data-rich] .rsc-compose-row { flex-direction: column; align-items: stretch; gap: 0; margin: 0 12px 8px; padding: 0; }
.rsc-composer[data-rich] .rsc-compose-controls { justify-content: space-between; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--rsc-composer-divider); }
.rsc-composer textarea { flex: 1; box-sizing: border-box; min-width: 0; min-height: 38px; max-height: 110px; padding: 9px 2px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--rsc-text); font: inherit; line-height: 20px; resize: none; }
.rsc-editor { --rsc-editor-room: max(56px, calc(var(--rsc-view-height, 100dvh) - 245px)); box-sizing: border-box; min-height: min(140px, var(--rsc-editor-room)); max-height: min(260px, var(--rsc-editor-room)); padding: 12px; overflow-y: auto; color: var(--rsc-text); font: inherit; line-height: 20px; }
.rsc-composer[data-rich-expanded] .rsc-editor { min-height: min(300px, var(--rsc-editor-room)); max-height: min(55vh, var(--rsc-editor-room)); }
.rsc-editor:empty:not(:focus)::before { content: 'Message support'; color: var(--rsc-muted); pointer-events: none; }
.rsc-composer :is(textarea, .rsc-editor):focus { outline: none; box-shadow: none; }
.rsc-composer[data-rich] [data-rsc-emoji-picker] { flex-basis: 32px; width: 32px; height: 32px; }
.rsc-composer .rsc-send { color: var(--rsc-accent); font-size: 20px; }
.rsc-composer .rsc-send:disabled { opacity: .4; }
.rsc-palette { position: absolute; z-index: 4; right: 8px; bottom: calc(100% + 4px); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; box-sizing: border-box; width: min(340px, calc(100% - 16px)); max-height: min(260px, 40dvh); padding: 8px; overflow: auto; border: 1px solid var(--rsc-line); border-radius: 12px; background: var(--rsc-surface); box-shadow: 0 10px 30px #0000002e; }
.rsc-palette[data-mode="sticker"] { right: auto; left: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rsc-palette button { display: grid; place-items: center; box-sizing: border-box; width: 100%; min-width: 0; height: auto; aspect-ratio: 1; padding: 2px; border: 0; border-radius: 8px; background: transparent; color: var(--rsc-text); font-size: 22px; line-height: 1; cursor: pointer; }
.rsc-palette button:hover { background: var(--rsc-wash); }
.rsc-palette img { display: block; width: 100%; max-width: 64px; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 520px) {
	.rsc-dock .rsc-panel { inset: auto 0 var(--rsc-keyboard-offset, 0px) 0; inline-size: 100vw; max-inline-size: 100vw; block-size: calc(var(--rsc-view-height, 100dvh) - max(48px, env(safe-area-inset-top))); max-block-size: none; }
	.rsc-window { padding-bottom: env(safe-area-inset-bottom); border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
	.rsc-composer :is(textarea, .rsc-editor) { font-size: 16px; }
}