/* VEYTRA · Editorial conversations.
   One reading canvas, restrained controls and comfortable type. The original
   scroll containers, dock positions, filters and channel management remain. */

html[data-ui-theme] :is(.dc-layout,.mc-root,.vcd-root,.vc-conversation,.vcs-dock){
  font-family:var(--font-ui,Manrope,sans-serif);
  color:var(--ds-text);
  --line:var(--ds-line);
  --text:var(--ds-text);
  --muted:var(--ds-muted);
  --accent:var(--ds-accent);
  --accent-soft:var(--ds-accent-soft);
}

/* Desktop: a quiet white/graphite canvas with clear reading hierarchy. */
html[data-ui-theme] .dc-layout{
  --dc-bg:var(--ds-surface);
  --dc-side:var(--ds-bg);
  --dc-line:var(--ds-line);
  --dc-muted:var(--ds-muted);
  font-size:15px;
}
html[data-ui-theme] :is(.dc-sidebar,.dc-right-panel,.dc-person-footer){background:var(--ds-bg);border-color:var(--ds-line)}
html[data-ui-theme] :is(.dc-main,.dc-chat-header,.dc-conversation-bar){background:var(--ds-surface);border-color:var(--ds-line)}
html[data-ui-theme] :is(.dc-chat-title h1,.dc-space-title strong,.dc-author,.dc-member strong,.dc-thread-reply strong,.dc-market-description strong,.dc-pin-card strong,.dc-circle-members-title strong){color:var(--ds-text);font-weight:650}
html[data-ui-theme] :is(.dc-topic,.dc-space-title small,.dc-person-footer span:not(.dc-avatar),.dc-members-heading,.dc-member small,.dc-thread-link>span:not(.dc-thread-mini),.dc-circle-members-title small,.dc-side-note,.dc-composer-hint,.dc-readonly-composer,.dc-thread-readonly,.dc-thread-divider){color:var(--ds-muted)}
html[data-ui-theme] :is(.dc-message-main time,.dc-grouped-time,.dc-day-divider small,.dc-role,.dc-saved-label,.dc-thread-reply time,.dc-members-heading>span){color:var(--ds-faint);font-size:11px}
html[data-ui-theme] :is(.dc-message-main>p,.dc-thread-reply p){color:var(--ds-text);font-size:15px;line-height:1.7}
html[data-ui-theme] :is(.dc-message:hover,.dc-message:focus-within){background:color-mix(in srgb,var(--ds-raised) 55%,transparent)}
html[data-ui-theme] .dc-topic{border-color:var(--ds-line);font-size:13px}
html[data-ui-theme] :is(.dc-icon,.dc-channel,.dc-community-home,.dc-explore-circles,.dc-add-channel,.dc-channel-symbol,.dc-chat-title>svg){color:var(--ds-muted)}
html[data-ui-theme] :is(.dc-icon:hover,.dc-icon.active,.dc-channel:hover,.dc-community-home:hover,.dc-member:hover){background:var(--ds-hover);color:var(--ds-text)}
html[data-ui-theme] .dc-channel.active{background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .dc-channel.has-unread{color:var(--ds-text)}
html[data-ui-theme] .dc-channel.has-unread:before{background:var(--ds-text)}
html[data-ui-theme] .dc-channel b{background:var(--ds-raised);color:var(--ds-text)}
html[data-ui-theme] .dc-channel.active b{background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .dc-category-label>button:first-child{color:var(--ds-faint);letter-spacing:.06em;font-size:11px}
html[data-ui-theme] :is(.dc-day-divider,.dc-pinned-label,.dc-right-panel>header>span){color:var(--ds-muted)}
html[data-ui-theme] :is(.dc-day-divider:before,.dc-day-divider:after,.dc-side-rule){background:var(--ds-line)}
html[data-ui-theme] :is(.dc-channel-scroll,.dc-message-scroll,.dc-thread-scroll,.dc-members){scrollbar-color:var(--ds-line) transparent}
html[data-ui-theme] :is(.dc-conversation-bar button,.dc-market-card>button,.dc-pin-card p,.dc-side-note>button,.dc-readonly-composer>button){font-size:13px;color:var(--ds-muted)}
html[data-ui-theme] .dc-conversation-bar button:hover{background:var(--ds-hover);color:var(--ds-text)}
html[data-ui-theme] .dc-conversation-bar button.active{background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .dc-search{background:var(--ds-bg);border-color:var(--ds-line);border-radius:8px;color:var(--ds-muted)}
html[data-ui-theme] .dc-search input{color:var(--ds-text);font-size:13px}
html[data-ui-theme] .dc-search input::placeholder{color:var(--ds-faint)}
html[data-ui-theme] :is(.dc-composer,.dc-thread-composer){background:var(--ds-bg);border-color:var(--ds-line);border-radius:10px;box-shadow:none}
html[data-ui-theme] :is(.dc-composer,.dc-thread-composer):focus-within{border-color:var(--ds-accent);box-shadow:0 0 0 2px var(--ds-accent-soft)}
html[data-ui-theme] :is(.dc-composer textarea,.dc-thread-composer textarea){color:var(--ds-text);font-size:15px;line-height:1.6}
html[data-ui-theme] :is(.dc-composer textarea,.dc-thread-composer textarea)::placeholder{color:var(--ds-faint)}
html[data-ui-theme] .dc-composer>button{color:var(--ds-muted);border-radius:8px}
html[data-ui-theme] .dc-composer>button:hover{color:var(--ds-text);background:var(--ds-hover)}
html[data-ui-theme] .dc-composer .dc-send{background:var(--ds-accent);color:#fff}
html[data-ui-theme] .dc-composer .dc-send:hover{background:color-mix(in srgb,var(--ds-accent) 88%,var(--ds-text));color:#fff}
html[data-ui-theme] :is(.dc-composer-hint b,.dc-composer-hint>button){color:var(--ds-muted);font-size:11px}
html[data-ui-theme] :is(.dc-message-actions,.dc-pin-card){background:var(--ds-surface);border-color:var(--ds-line);box-shadow:var(--ds-shadow);border-radius:8px}
html[data-ui-theme] .dc-message-actions button{color:var(--ds-muted)}
html[data-ui-theme] .dc-message-actions button:hover{background:var(--ds-hover);color:var(--ds-text)}
html[data-ui-theme] :is(.dc-reply-bar,.dc-draft-attachment){background:var(--ds-raised);border-color:var(--ds-line);color:var(--ds-muted);font-size:13px}
html[data-ui-theme] :is(.dc-reply-bar strong,.dc-draft-attachment strong,.dc-reply-reference strong){color:var(--ds-text)}
html[data-ui-theme] .dc-reply-reference{color:var(--ds-muted)}
html[data-ui-theme] .dc-reactions button{background:var(--ds-bg);border-color:var(--ds-line);color:var(--ds-muted);border-radius:7px}
html[data-ui-theme] .dc-reactions button.active{background:var(--ds-accent-soft);border-color:color-mix(in srgb,var(--ds-accent) 35%,var(--ds-line));color:var(--ds-accent)}
html[data-ui-theme] .dc-thread-link{color:var(--ds-accent)}
html[data-ui-theme] :is(.dc-avatar,.dc-thread-mini){background:var(--ds-raised);color:var(--ds-muted);border-radius:10px}
html[data-ui-theme] :is(.dc-host,.dc-host-avatar){background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .dc-author-host{color:var(--ds-accent)}
html[data-ui-theme] .dc-avatar i{border-color:var(--ds-bg);background:var(--ds-green)}
html[data-ui-theme] .dc-offline{opacity:.7}
html[data-ui-theme] .dc-offline .dc-avatar i{background:var(--ds-faint)}
html[data-ui-theme] .dc-market-card{background:var(--ds-bg);border-color:var(--ds-line);border-radius:10px}
html[data-ui-theme] :is(.dc-market-description strong small,.dc-market-description>div>span){color:var(--ds-muted)}
html[data-ui-theme] .dc-market-price>strong{font-family:var(--font-mono,"IBM Plex Mono",monospace);font-size:14px;font-weight:500}
/* Existing market-change colors use !important: override these two semantic values only. */
html[data-ui-theme] .dc-market-price>span{color:var(--ds-green)!important}
html[data-ui-theme] .dc-market-price>span.dc-negative{color:var(--ds-red)!important}
html[data-ui-theme] .dc-chart-grid{stroke:var(--ds-line)}
html[data-ui-theme] .dc-chart-line{stroke:var(--ds-green)}
html[data-ui-theme] .dc-chart-area{fill:color-mix(in srgb,var(--ds-green) 6%,transparent)}
html[data-ui-theme] .dc-market-card>button{border-color:var(--ds-line);color:var(--ds-accent)}
html[data-ui-theme] .dc-market-card>button:hover{background:var(--ds-hover)}
html[data-ui-theme] :is(.dc-jump-unread,.dc-session-card){background:var(--ds-surface);border-color:var(--ds-line);box-shadow:var(--ds-shadow);border-radius:9px;color:var(--ds-accent)}
html[data-ui-theme] .dc-session-card>div{color:var(--ds-text)}
html[data-ui-theme] .dc-session-card>strong{color:var(--ds-muted)}
html[data-ui-theme] :is(.dc-session-card>b,.dc-session-card>div>small){color:var(--ds-green)}
html[data-ui-theme] .dc-live-indicator{background:var(--ds-green)}
html[data-ui-theme] :is(.dc-search-summary,.dc-no-results,.dc-locked p,.dc-conversation-start p){color:var(--ds-muted)}
html[data-ui-theme] :is(.dc-search-summary strong,.dc-locked h2,.dc-conversation-start h2){color:var(--ds-text)}

/* Mobile inbox and Telegram-style bubbles: clear contrast without a decorative backdrop. */
html[data-ui-theme] .mc-root{background:var(--ds-surface);font-size:15px}
html[data-ui-theme] :is(.mc-inbox-head,.mc-thread-head,.mc-circle-switcher,.mc-message-filters,.mc-compose,.mc-broadcast-bar){background:var(--ds-surface);border-color:var(--ds-line)}
html[data-ui-theme] :is(.mc-inbox-head h2,.mc-thread-info strong,.mc-room-title strong,.mc-switch-current strong,.mc-switch-space strong,.mc-switch-room>span){color:var(--ds-text);font-weight:650}
html[data-ui-theme] .mc-room-title strong{font-size:15px}
html[data-ui-theme] .mc-thread-info strong{font-size:14px}
html[data-ui-theme] :is(.mc-room-preview>span:first-child,.mc-thread-info small,.mc-room-kind,.mc-kicker,.mc-local-note,.mc-archive-row,.mc-switch-space small,.mc-switch-current small,.mc-broadcast-bar>span){color:var(--ds-muted);font-size:12px}
html[data-ui-theme] :is(.mc-room-title time,.mc-muted-label,.mc-pin,.mc-switch-label,.mc-switch-label>span,.mc-switch-empty,.mc-switch-note,.mc-result-count){color:var(--ds-faint);font-size:11px}
html[data-ui-theme] :is(.mc-icon,.mc-folder-edit,.mc-switch-chevron){color:var(--ds-muted);border-radius:9px}
html[data-ui-theme] :is(.mc-icon:hover,.mc-room:hover,.mc-switch-space:hover,.mc-switch-room:hover){background:var(--ds-hover);color:var(--ds-text)}
html[data-ui-theme] .mc-new{background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .mc-search{background:var(--ds-bg);border:1px solid var(--ds-line);border-radius:9px;color:var(--ds-muted)}
html[data-ui-theme] .mc-search input{color:var(--ds-text);font-family:var(--font-ui,Manrope,sans-serif);font-size:13px}
html[data-ui-theme] .mc-search input::placeholder{color:var(--ds-faint)}
html[data-ui-theme] .mc-folder-edit{background:var(--ds-surface);box-shadow:none}
html[data-ui-theme] .mc-folders>button{font-size:13px;color:var(--ds-muted)}
html[data-ui-theme] .mc-folders>button.active{color:var(--ds-accent)}
html[data-ui-theme] .mc-folders>button>span{background:var(--ds-raised);color:var(--ds-muted)}
html[data-ui-theme] :is(.mc-folders>button.active>span,.mc-total,.mc-switch-unread){background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .mc-unread{background:var(--ds-accent);color:#fff}
html[data-ui-theme] .mc-unread.is-muted{background:var(--ds-raised);color:var(--ds-muted)}
html[data-ui-theme] :is(.mc-avatar,.mc-person){background:var(--ds-raised);color:var(--ds-muted);border-radius:50%}
html[data-ui-theme] :is(.mc-person.is-host,.mc-cyan){background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .mc-blue{background:color-mix(in srgb,var(--ds-accent) 10%,var(--ds-surface));color:var(--ds-accent)}
html[data-ui-theme] .mc-mint{background:color-mix(in srgb,var(--ds-green) 10%,var(--ds-surface));color:var(--ds-green)}
html[data-ui-theme] .mc-rose{background:color-mix(in srgb,var(--ds-red) 10%,var(--ds-surface));color:var(--ds-red)}
html[data-ui-theme] :is(.mc-gold,.mc-violet){background:var(--ds-raised);color:var(--ds-muted)}
html[data-ui-theme] .mc-live-dot{border-color:var(--ds-surface);background:var(--ds-red)}
html[data-ui-theme] .mc-message-scroll{background:var(--ds-bg);scrollbar-color:var(--ds-line) transparent}
html[data-ui-theme] .mc-day{background:var(--ds-raised);color:var(--ds-muted);border-radius:7px;font-size:11px}
html[data-ui-theme] .mc-author{color:var(--ds-muted);font-size:12px}
html[data-ui-theme] .mc-author.is-host{color:var(--ds-accent)}
html[data-ui-theme] .mc-author>span{font-size:10px}
html[data-ui-theme] .mc-bubble{background:var(--ds-surface);border-color:var(--ds-line);border-radius:11px 11px 11px 3px;color:var(--ds-text);font-size:15px;line-height:1.65;box-shadow:none}
html[data-ui-theme] .mc-own .mc-bubble{background:var(--ds-accent-soft);border-color:color-mix(in srgb,var(--ds-accent) 17%,var(--ds-line));border-radius:11px 11px 3px 11px;color:var(--ds-text)}
html[data-ui-theme] :is(.mc-message-time,.mc-own .mc-message-time,.mc-message-time>button){color:var(--ds-faint);font-size:11px}
html[data-ui-theme] :is(.mc-message-filters>button,.mc-broadcast-bar button){font-size:13px;color:var(--ds-muted)}
html[data-ui-theme] .mc-message-filters>button.active{background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] :is(.mc-quote,.mc-reply-draft,.mc-pinned-note){background:var(--ds-raised);color:var(--ds-muted);border-color:var(--ds-line);font-size:12px}
html[data-ui-theme] :is(.mc-quote span,.mc-reply-draft small,.mc-reply-draft>button){color:var(--ds-muted);font-size:12px}
html[data-ui-theme] .mc-private-note{background:var(--ds-raised);color:var(--ds-muted);font-size:11px}
html[data-ui-theme] .mc-compose textarea{background:var(--ds-bg);color:var(--ds-text);border-color:var(--ds-line);border-radius:10px;font-family:var(--font-ui,Manrope,sans-serif);font-size:15px}
html[data-ui-theme] .mc-compose textarea::placeholder{color:var(--ds-faint)}
html[data-ui-theme] .mc-compose>button{border-radius:10px;background:var(--ds-accent);color:#fff}
html[data-ui-theme] .mc-market-card{background:var(--ds-bg);border-color:var(--ds-line);border-radius:9px}
html[data-ui-theme] :is(.mc-market-top b,.mc-market-value){color:var(--ds-text)}
html[data-ui-theme] .mc-market-top b{font-size:13px}
html[data-ui-theme] :is(.mc-market-top small,.mc-market-value small){color:var(--ds-muted);font-size:11px}
html[data-ui-theme] .mc-market-value{font-family:var(--font-mono,"IBM Plex Mono",monospace);font-size:20px;font-weight:500;letter-spacing:-.025em}
html[data-ui-theme] .mc-market-change{color:var(--ds-green);font-size:11px}
html[data-ui-theme] .mc-market-card>button{background:var(--ds-accent-soft);color:var(--ds-accent);border-color:var(--ds-line);font-size:13px}
html[data-ui-theme] .mc-jump-latest{background:var(--ds-surface);color:var(--ds-accent);border-color:var(--ds-line);box-shadow:var(--ds-shadow);border-radius:9px;font-size:12px}
html[data-ui-theme] .mc-circle-menu{background:var(--ds-surface);border-color:var(--ds-line);border-radius:11px;box-shadow:var(--ds-shadow)}
html[data-ui-theme] :is(.mc-switch-chevron,.mc-switch-brand-icon){background:var(--ds-raised);border-color:var(--ds-line);color:var(--ds-muted)}
html[data-ui-theme] :is(.mc-switch-space.is-current,.mc-switch-room.is-selected){background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .mc-switch-room.is-selected>span{color:var(--ds-accent)}
html[data-ui-theme] .mc-switch-room>span{font-size:13px}
html[data-ui-theme] :is(.mc-switch-spaces,.mc-switch-private,.mc-switch-note){border-color:var(--ds-line)}
html[data-ui-theme] .mc-empty{color:var(--ds-muted)}
html[data-ui-theme] .mc-empty h3{color:var(--ds-text)}
html[data-ui-theme] .mc-empty p{color:var(--ds-muted);font-size:13px}

/* Floating dock uses the same palette in both display modes. */
html[data-ui-theme] .vcd-root{
  --vcd-bg:var(--ds-surface);
  --vcd-raised:var(--ds-bg);
  --vcd-line:var(--ds-line);
  --vcd-text:var(--ds-text);
  --vcd-muted:var(--ds-muted);
  --vcd-accent:var(--ds-accent);
}
html[data-ui-theme] :is(.vcd-panel,.vcd-picker){border-radius:11px;box-shadow:var(--ds-shadow)}
html[data-ui-theme] .vcd-panel-head{background:var(--ds-surface)}
html[data-ui-theme] .vcd-panel-head h2{font-size:13px;font-weight:650}
html[data-ui-theme] .vcd-panel-head small{font-size:11px;color:var(--ds-muted)}
html[data-ui-theme] .vcd-panel-head small>i{background:var(--ds-green)}
html[data-ui-theme] .vcd-message p{font-size:14px;line-height:1.65;opacity:1}
html[data-ui-theme] .vcd-message header strong{font-size:13px;font-weight:650}
html[data-ui-theme] :is(.vcd-message header time,.vcd-message header>span,.vcd-day,.vcd-compose-hint){font-size:10px;color:var(--ds-faint)}
html[data-ui-theme] .vcd-compose-hint{font-size:10px}
html[data-ui-theme] :is(.vcd-avatar,.vcd-own .vcd-avatar){background:var(--ds-raised);color:var(--ds-muted)}
html[data-ui-theme] .vcd-avatar.vcd-host{background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .vcd-compose{border-radius:9px;box-shadow:none}
html[data-ui-theme] .vcd-compose textarea{font-size:14px;line-height:1.6}
html[data-ui-theme] .vcd-compose>button{background:var(--ds-accent);color:#fff;border-radius:7px}
html[data-ui-theme] :is(.vcd-search input,.vcd-picker-rooms strong){font-size:13px}
html[data-ui-theme] :is(.vcd-picker-rooms small,.vcd-picker>footer,.vcd-reply-draft,.vcd-search-results,.vcd-search-results>button,.vcd-readonly){font-size:12px}
html[data-ui-theme] :is(.vcd-message-actions>button,.vcd-quoted,.vcd-reply-draft small){font-size:11px}
html[data-ui-theme] .vcd-root .vcd-market{background:var(--ds-accent-soft);border-color:var(--ds-line);font-size:12px;border-radius:7px}
html[data-ui-theme] .vcd-market small{font-size:10px}
html[data-ui-theme] .vcd-tab{background:var(--ds-surface);box-shadow:none;border-radius:8px 8px 0 0}
html[data-ui-theme] .vcd-tab.active{background:var(--ds-accent-soft);border-top-color:var(--ds-accent)}
html[data-ui-theme] .vcd-tab>button:first-child{font-size:12px}
html[data-ui-theme] .vcd-launcher{background:var(--ds-surface);box-shadow:var(--ds-shadow);border-radius:9px}
html[data-ui-theme] .vcd-jump-latest{background:var(--ds-surface);box-shadow:var(--ds-shadow);border-radius:8px}

/* Synced conversations: same visual language, without changing workspace layout. */
html[data-ui-theme] .vc-conversation{background:var(--ds-surface)}
html[data-ui-theme] :is(.vcs-chat-page>.vc-conversation,.vcs-dock){border-color:var(--ds-line);border-radius:11px;background:var(--ds-surface)}
html[data-ui-theme] .vcs-dock{box-shadow:var(--ds-shadow)}
html[data-ui-theme] :is(.vc-chat-heading,.vcs-mobile-channels,.vcs-dock-heading){background:var(--ds-surface);border-color:var(--ds-line)}
html[data-ui-theme] :is(.vc-chat-heading strong,.vcs-dock-heading span,.vc-message-head strong){color:var(--ds-text);font-size:14px;font-weight:650}
html[data-ui-theme] :is(.vc-chat-heading small,.vc-chat-status,.vcs-dock-heading small){color:var(--ds-muted);font-size:12px}
html[data-ui-theme] .vc-message-head time{font-size:11px;color:var(--ds-faint)}
html[data-ui-theme] .vc-message p{font-size:15px;color:var(--ds-text);line-height:1.7}
html[data-ui-theme] .vc-message p.vc-deleted{font-size:13px;color:var(--ds-faint)}
html[data-ui-theme] .vc-conversation .vc-avatar{background:var(--ds-raised);color:var(--ds-muted);border-radius:9px;font-size:12px}
html[data-ui-theme] .vc-conversation .vc-message.is-own .vc-avatar{background:var(--ds-accent-soft);color:var(--ds-accent)}
html[data-ui-theme] .vc-conversation .vc-composer{background:var(--ds-bg);border-color:var(--ds-line);border-radius:10px}
html[data-ui-theme] .vc-conversation .vc-composer:focus-within{border-color:var(--ds-accent)}
html[data-ui-theme] .vc-conversation .vc-composer textarea{background:transparent;color:var(--ds-text);font-family:var(--font-ui,Manrope,sans-serif);font-size:15px}
html[data-ui-theme] .vc-conversation .vc-composer textarea::placeholder{color:var(--ds-faint)}
html[data-ui-theme] .vc-composer-bottom>span{font-size:11px;color:var(--ds-muted)}
html[data-ui-theme] .vc-composer-bottom>.btn{font-size:13px;border-radius:8px}
html[data-ui-theme] .vc-conversation .vc-form-error{color:var(--ds-red);font-size:12px}
html[data-ui-theme] :is(.vc-chat-empty,.vc-readonly-channel){color:var(--ds-muted)}
html[data-ui-theme] .vc-chat-empty h3{color:var(--ds-text);font-weight:650}
html[data-ui-theme] .vc-chat-empty p{color:var(--ds-muted);font-size:14px}
html[data-ui-theme] .vc-older{color:var(--ds-accent);font-size:13px}
html[data-ui-theme] .vcs-mobile-channels select{background:var(--ds-bg);color:var(--ds-text);border-color:var(--ds-line);border-radius:8px}

/* Chat settings and message actions live in shared dialogs. Scope only their own content. */
html[data-ui-theme] :is(.mc-modal,.dc-display-modal,.dc-profile-card,.dc-mentions,.dc-share-modal,.dc-emoji-modal,.dc-modal-form){font-family:var(--font-ui,Manrope,sans-serif);color:var(--ds-text)}
html[data-ui-theme] :is(.mc-modal-note,.mc-info-stats>span,.mc-custom-folders small,.mc-folder-empty,.mc-checkboxes legend,.mc-checkboxes small,.dc-preference-note,.dc-profile-note,.dc-profile-presence,.dc-display-modal>p,.dc-share-modal>p){color:var(--ds-muted)}
html[data-ui-theme] :is(.mc-info-stats b,.mc-checkboxes>label,.dc-profile-card h2,.dc-mentions strong){color:var(--ds-text)}
html[data-ui-theme] :is(.mc-default-folders span,.dc-profile-roles span,.dc-density-choices>button,.dc-emoji-grid>button){background:var(--ds-bg);color:var(--ds-text);border-color:var(--ds-line);border-radius:9px}
html[data-ui-theme] .dc-density-choices>button.active{background:var(--ds-accent-soft);border-color:var(--ds-accent)}
html[data-ui-theme] :is(.mc-actions>button:hover,.dc-mentions>button:hover,.dc-share-modal>div>button:hover,.dc-emoji-grid>button:hover){background:var(--ds-hover)}
html[data-ui-theme] .mc-reorder{border-color:var(--ds-line);border-radius:9px}
html[data-ui-theme] .mc-modal .mc-form-error{color:var(--ds-red)}

/* Retain 16px native fields to prevent input zoom and keep touch controls legible. */
@media(max-width:700px){
  html[data-ui-theme] :is(.mc-search input,.mc-compose textarea,.vc-conversation .vc-composer textarea,.vcs-mobile-channels select){font-size:16px}
  html[data-ui-theme] .mc-switch-current small{font-size:11px}
  html[data-ui-theme] .mc-switch-label>span{font-size:10px;letter-spacing:0}
  html[data-ui-theme] :is(.vc-chat-heading small,.vc-chat-status,.vc-message-head time){font-size:11px}
  html[data-ui-theme] .vc-composer-bottom>span{font-size:10px}
  html[data-ui-theme] .vc-message p{font-size:15px}
}

/* Preserve the user's compact reading option within the new type scale. */
html[data-ui-theme] .dc-density-compact .dc-message-main>p{font-size:14px;line-height:1.5}
html[data-ui-theme] :is(.dc-panel-empty,.dc-pin-card time,.dc-density-choices small,.dc-modal-form label,.dc-checkbox small){color:var(--ds-muted)}
html[data-ui-theme] .dc-panel-empty h3{color:var(--ds-text);font-size:15px}
html[data-ui-theme] .dc-live-banner{background:color-mix(in srgb,var(--ds-green) 7%,var(--ds-surface));border-color:var(--ds-line);color:var(--ds-green)}
html[data-ui-theme] .dc-live-banner>b{color:var(--ds-green)}
html[data-ui-theme] :is(.dc-locked>span,.dc-empty-channel>span){background:var(--ds-raised);border-color:var(--ds-line);color:var(--ds-muted);border-radius:11px}
html[data-ui-theme] :is(.dc-modal-form input:not([type=checkbox]),.dc-modal-form textarea,.dc-modal-form select){background:var(--ds-bg);border-color:var(--ds-line);color:var(--ds-text);border-radius:9px;font-family:var(--font-ui,Manrope,sans-serif);font-size:13px}
html[data-ui-theme] :is(.dc-modal-form input,.dc-modal-form textarea)::placeholder{color:var(--ds-faint)}
html[data-ui-theme] .dc-profile-presence{border-color:var(--ds-line)}
html[data-ui-theme] .dc-profile-presence i{background:var(--ds-green)}
html[data-ui-theme] :is(.dc-density-preview>i,.dc-density-preview b){background:var(--ds-line)}
html[data-ui-theme] .dc-density-preview b:first-child{background:var(--ds-muted)}
/* These legacy dialog rules also carry !important; only contrast is replaced. */
html[data-ui-theme] :is(.dc-preference-note,.dc-profile-note){color:var(--ds-muted)!important}
html[data-ui-theme] .dc-form-error{color:var(--ds-red)!important}
html[data-ui-theme=dark] :is(.dc-composer .dc-send,.mc-compose>button,.mc-unread,.vcd-compose>button){color:var(--ds-bg)}
html[data-ui-theme=dark] .dc-composer .dc-send:hover{color:var(--ds-bg)}

/* V43 composition: use a continuous conversation, not a stack of UI cards. */
html[data-ui-theme] .dc-layout{border-radius:0}
html[data-ui-theme] .dc-chat-header{min-height:76px;height:76px;padding-inline:clamp(22px,2.6vw,42px);gap:18px}
html[data-ui-theme] .dc-chat-title{gap:12px}
html[data-ui-theme] .dc-chat-title h1{font-size:18px;letter-spacing:-.45px;font-weight:700}
html[data-ui-theme] .dc-topic{font-size:12px;padding-left:20px;line-height:1.6}
html[data-ui-theme] .dc-header-tools{gap:7px}
html[data-ui-theme] .dc-icon{width:36px;height:36px;border-radius:10px}
html[data-ui-theme] .dc-search{width:190px;height:36px;padding-inline:12px;border-color:transparent;border-radius:9px}
html[data-ui-theme] .dc-conversation-bar{padding-inline:clamp(22px,2.6vw,42px);min-height:48px}
html[data-ui-theme] .dc-conversation-bar>div{align-self:stretch;display:flex;gap:24px}
html[data-ui-theme] .dc-conversation-bar>div>button{padding:12px 0 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--ds-muted);font-size:12px;letter-spacing:-.1px}
html[data-ui-theme] .dc-conversation-bar>div>button.active{color:var(--ds-text);border-bottom-color:var(--ds-accent);background:transparent;font-weight:700}
html[data-ui-theme] .dc-message-scroll{padding-block:24px 28px}
html[data-ui-theme] .dc-main>.dc-message-scroll>.dc-message{padding:13px clamp(22px,2.6vw,42px) 17px;gap:15px}
html[data-ui-theme] .dc-main>.dc-message-scroll>.dc-message.is-grouped{padding-top:2px;padding-bottom:10px;margin-top:-7px}
html[data-ui-theme] .dc-message>.dc-avatar{border-radius:50%;width:38px;height:38px;font-weight:700}
html[data-ui-theme] .dc-message-main>header{gap:10px;min-height:24px}
html[data-ui-theme] .dc-main>.dc-message-scroll .dc-author{font-size:14px!important;font-weight:700!important}
html[data-ui-theme] .dc-message-main>p{margin-top:5px;line-height:1.8;letter-spacing:-.07px;max-width:80ch}
html[data-ui-theme] .dc-day-divider{margin:4px clamp(22px,2.6vw,42px) 24px;font-size:11px;gap:18px}
html[data-ui-theme] .dc-composer-wrap{padding:16px clamp(22px,2.6vw,42px) 22px;background:var(--ds-surface)}
html[data-ui-theme] .dc-composer{min-height:66px;border-radius:14px;padding:12px 13px;gap:8px;background:var(--ds-bg)}
html[data-ui-theme] .dc-composer>button{width:36px;height:37px;border-radius:10px}
html[data-ui-theme] .dc-composer textarea{padding:8px 5px;line-height:1.65}
html[data-ui-theme] .dc-composer-hint{margin-top:11px;font-size:10px}
html[data-ui-theme] .dc-composer-hint>button{font-size:11px}
html[data-ui-theme] .dc-right-panel{background:var(--ds-surface)}
html[data-ui-theme] .dc-right-panel>header{padding-inline:20px}
html[data-ui-theme] .dc-member{padding:11px 8px;border-radius:9px;gap:11px}
html[data-ui-theme] .dc-member .dc-avatar{border-radius:50%}
html[data-ui-theme] .dc-member strong{font-size:13px}
html[data-ui-theme] .dc-member small{font-size:11px;margin-top:4px}
html[data-ui-theme] .dc-market-card{max-width:520px;border:1px solid var(--ds-line);border-radius:12px;box-shadow:none}
html[data-ui-theme] .dc-reactions{gap:6px}
html[data-ui-theme] .dc-reactions button{border-radius:6px;background:transparent;padding:4px 7px}
html[data-ui-theme] .dc-density-compact .dc-main>.dc-message-scroll>.dc-message{padding-top:6px;padding-bottom:7px}
html[data-ui-theme] .dc-density-compact .dc-main>.dc-message-scroll>.dc-message.is-grouped{padding-top:1px;padding-bottom:4px;margin-top:0}
html[data-ui-theme] .dc-density-compact .dc-message>.dc-avatar{width:31px;height:31px}

/* Shared chats keep content and trading cards on the same unbroken canvas. */
html[data-ui-theme] .vcs-chat-page>.vc-conversation{border:0;border-radius:0}
html[data-ui-theme] .vc-chat-heading{min-height:80px;padding:20px clamp(20px,3vw,44px);gap:20px}
html[data-ui-theme] .vc-chat-heading>div{gap:13px;min-width:0}
html[data-ui-theme] .vc-chat-heading>div>span:last-child{min-width:0}
html[data-ui-theme] .vc-heading-symbol{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:var(--ds-bg);color:var(--ds-muted)}
html[data-ui-theme] .vc-chat-heading strong{display:block;font-size:18px;font-weight:700;letter-spacing:-.4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui-theme] .vc-chat-heading small{display:block;margin-top:5px;font-size:12px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui-theme] .vc-chat-status{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;font-size:11px}
html[data-ui-theme] .vc-chat-status:before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:var(--ds-muted)}
html[data-ui-theme] .vc-chat-status.is-synced:before{background:var(--ds-green)}
html[data-ui-theme] .vc-chat-status.is-paused:before{background:var(--ds-red)}
html[data-ui-theme] .vc-feed{padding:14px clamp(20px,3vw,44px) 28px;scrollbar-width:thin;scrollbar-color:var(--ds-line) transparent}
html[data-ui-theme] .vc-message{max-width:1040px;margin-inline:auto;padding:15px 0;gap:14px}
html[data-ui-theme] .vc-conversation .vc-avatar{width:36px;height:36px;border-radius:50%;font-size:11px;font-weight:700}
html[data-ui-theme] .vc-message-head{gap:11px;min-height:24px}
html[data-ui-theme] .vc-message-head strong{font-size:14px;line-height:1.5;font-weight:700}
html[data-ui-theme] .vc-message-head .icon-btn{border-radius:8px;width:30px;height:30px;flex:none}
html[data-ui-theme] .vc-message-head .icon-btn:hover{background:var(--ds-hover);color:var(--ds-red)}
html[data-ui-theme] .vc-message p{margin-top:4px;max-width:80ch;line-height:1.8;letter-spacing:-.07px}
html[data-ui-theme] .vc-day-divider{display:flex;align-items:center;gap:18px;max-width:1040px;margin:25px auto 11px;font-size:10px;color:var(--ds-faint);white-space:nowrap}
html[data-ui-theme] .vc-day-divider:first-child{margin-top:5px}
html[data-ui-theme] .vc-day-divider:before,html[data-ui-theme] .vc-day-divider:after{content:'';height:1px;background:var(--ds-line);flex:1}
html[data-ui-theme] .vc-conversation .vc-composer{margin:0 clamp(20px,3vw,44px) 24px;border-radius:15px;padding:14px 16px;background:var(--ds-bg);box-shadow:none}
html[data-ui-theme] .vc-conversation .vc-composer textarea{min-height:58px;padding:3px 2px 13px;resize:vertical;line-height:1.65}
html[data-ui-theme] .vc-composer-bottom{gap:14px;align-items:center}
html[data-ui-theme] .vc-composer-tools{display:flex;align-items:center;gap:16px;min-width:0;flex-wrap:wrap}
html[data-ui-theme] .vc-composer-shortcut{font-size:10px;color:var(--ds-faint);line-height:1.5}
html[data-ui-theme] .vc-share-setup{display:inline-flex;align-items:center;gap:7px;min-height:33px;padding:4px 6px 4px 0;font:inherit;font-size:12px;font-weight:650;border:0;background:transparent;color:var(--ds-text);cursor:pointer;border-radius:6px}
html[data-ui-theme] .vc-share-setup>svg{color:var(--ds-muted)}
html[data-ui-theme] .vc-share-setup:hover{color:var(--ds-accent)}
html[data-ui-theme] .vc-share-setup:hover>svg{color:inherit}
html[data-ui-theme] .vc-share-setup:disabled{opacity:.5;cursor:not-allowed}
html[data-ui-theme] .vc-composer-bottom>.btn{min-height:36px;padding:8px 15px;border-radius:9px;flex:none;font-size:12px}
html[data-ui-theme] .vc-conversation .vc-readonly-channel{padding:20px 28px;border-top:1px solid var(--ds-line);background:var(--ds-surface);font-size:12px}
html[data-ui-theme] .vcs-dock{border-radius:16px}
html[data-ui-theme] .vcs-dock .vc-message{padding:11px 0;gap:10px}
html[data-ui-theme] .vcs-dock .vc-feed{padding:12px 17px 20px}
html[data-ui-theme] .vcs-dock .vc-avatar{width:29px;height:29px;font-size:10px}
html[data-ui-theme] .vcs-dock .vc-message-head{gap:7px;flex-wrap:wrap}
html[data-ui-theme] .vcs-dock .vc-message-head strong{font-size:12px}
html[data-ui-theme] .vcs-dock .vc-message-head time{font-size:10px}
html[data-ui-theme] .vcs-dock .vc-message p{font-size:14px;line-height:1.65}
html[data-ui-theme] .vcs-dock .vc-composer{margin:0 12px 12px;padding:11px 12px;border-radius:12px}
html[data-ui-theme] .vcs-dock .vc-composer textarea{min-height:48px;font-size:14px}
html[data-ui-theme] .vcs-dock .vc-composer-tools{gap:0}
html[data-ui-theme] .vcs-dock .vc-composer-shortcut{font-size:9px}
html[data-ui-theme] .vcs-dock .vc-day-divider{gap:10px;margin-block:15px 8px;font-size:9px}

/* Touch: retain the channel switcher and every action, with useful hit areas. */
html[data-ui-theme] .mc-room{padding-block:17px}
html[data-ui-theme] .mc-room-title{margin-bottom:6px}
html[data-ui-theme] .mc-avatar{border-radius:50%}
html[data-ui-theme] .mc-search{min-height:44px;border:0;border-radius:12px}
html[data-ui-theme] .mc-thread-messages{padding-top:20px}
html[data-ui-theme] .mc-bubble{border-radius:15px;box-shadow:none;padding:11px 14px}
html[data-ui-theme] .mc-bubble p{line-height:1.65}
html[data-ui-theme] .mc-compose{border-radius:0;padding-block:12px}
@media(max-width:1100px){
  html[data-ui-theme] .dc-chat-header{gap:12px;padding-inline:22px}
  html[data-ui-theme] .dc-chat-title h1{font-size:16px}
  html[data-ui-theme] .dc-search{width:155px}
  html[data-ui-theme] .vc-composer-tools{gap:8px}
}
@media(min-width:761px) and (max-width:1180px){
  html[data-ui-theme] .dc-layout .dc-right-panel{top:76px}
}
@media(max-width:760px){
  html[data-ui-theme] .dc-chat-header{height:66px;min-height:66px;padding-inline:14px;gap:8px}
  html[data-ui-theme] .dc-chat-title h1{font-size:14px}
  html[data-ui-theme] .dc-header-tools{gap:1px}
  html[data-ui-theme] .dc-search{width:123px}
  html[data-ui-theme] .dc-conversation-bar{padding-inline:18px}
  html[data-ui-theme] .dc-conversation-bar>div{gap:16px}
  html[data-ui-theme] .dc-conversation-bar>div>button{font-size:11px}
  html[data-ui-theme] .dc-main>.dc-message-scroll>.dc-message{padding-inline:18px;gap:11px}
  html[data-ui-theme] .dc-composer-wrap{padding:12px 16px 16px}
}
@media(max-width:700px){
  html[data-ui-theme] .vc-chat-heading{padding:16px 18px;min-height:72px;gap:12px}
  html[data-ui-theme] .vc-heading-symbol{width:32px;height:32px;border-radius:10px}
  html[data-ui-theme] .vc-chat-heading strong{font-size:16px}
  html[data-ui-theme] .vc-chat-heading small{font-size:11px}
  html[data-ui-theme] .vc-chat-status{font-size:10px;gap:5px}
  html[data-ui-theme] .vc-feed{padding:11px 17px 22px}
  html[data-ui-theme] .vc-message{gap:10px;padding:12px 0}
  html[data-ui-theme] .vc-conversation .vc-avatar{width:30px;height:30px;font-size:10px}
  html[data-ui-theme] .vc-message-head{gap:7px;flex-wrap:wrap}
  html[data-ui-theme] .vc-message-head strong{font-size:13px}
  html[data-ui-theme] .vc-message-head time{font-size:10px}
  html[data-ui-theme] .vc-message-head .icon-btn{opacity:1;min-width:34px;min-height:34px}
  html[data-ui-theme] .vc-message p{font-size:15px;line-height:1.7}
  html[data-ui-theme] .vc-conversation .vc-composer{margin:0 10px 12px;padding:12px;border-radius:13px}
  html[data-ui-theme] .vc-conversation .vc-composer textarea{font-size:16px;min-height:57px}
  html[data-ui-theme] .vc-composer-tools{gap:3px;flex-direction:column;align-items:flex-start}
  html[data-ui-theme] .vc-composer-shortcut{font-size:9px;max-width:190px}
  html[data-ui-theme] .vc-share-setup{min-height:36px;font-size:12px}
  html[data-ui-theme] .vc-composer-bottom>.btn{min-height:40px;padding-inline:15px}
  html[data-ui-theme] .vc-day-divider{gap:12px;font-size:9px}
}
