/* SABSUS Social: operational components in the Services/Events material.
 * This layer contains presentation only. Existing routes, actions, permissions,
 * focus management and each workspace's scroll owner remain in the runtime.
 */
html.social-crystal {
  --social-success-text: #c7f2df;
  --social-success-fill: rgba(93,183,142,.13);
  --social-warning-text: #ffe0aa;
  --social-warning-fill: rgba(229,185,108,.13);
  --social-error-text: #ffb7bc;
  --social-error-fill: rgba(230,104,119,.13);
  --social-link: #a7c4ff;
  --social-message: rgba(40,40,43,.91);
  --social-message-out: rgba(36,67,124,.84);
}
html.social-crystal[data-social-theme="light"] {
  --social-success-text: #226749;
  --social-success-fill: rgba(48,158,105,.11);
  --social-warning-text: #845514;
  --social-warning-fill: rgba(218,156,57,.14);
  --social-error-text: #a72e3e;
  --social-error-fill: rgba(204,64,82,.09);
  --social-link: #2559b8;
  --social-message: rgba(250,250,250,.94);
  --social-message-out: rgba(220,231,252,.95);
}

/* Content and channel cards. Photographs stay sharp. */
html.social-crystal body :is(.live-post-grid,.live-channel-grid,.live-plan-grid,.pricing-grid) {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin: 18px 0 24px;
}
html.social-crystal body .live-post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: box-shadow .16s ease, transform .16s ease;
}
html.social-crystal body .live-post:hover { transform: translateY(-2px); }
html.social-crystal body .post-card-cover {
  aspect-ratio: 1.7;
  border-radius: 0;
  flex: none;
  background: var(--soft-bg);
}
html.social-crystal body .post-card-cover :is(img,video) { filter: none; opacity: 1; }
html.social-crystal body .post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 142px;
  padding: 18px 20px 20px!important;
}
html.social-crystal body .post-card-body .eyebrow {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .01em;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
}
html.social-crystal body .post-card-body h3 { font-size: 16px; line-height: 1.45; font-weight: 500; margin: 8px 0; }
html.social-crystal body .post-card-body>p { font-size: 12px; color: var(--muted); margin: 0; }
html.social-crystal body .post-card-metrics { gap: 16px; margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); }
html.social-crystal body .post-card-metrics .icon { width: 16px; height: 16px; }
html.social-crystal body .live-post-art { background: var(--soft-bg); color: var(--muted); }
html.social-crystal body .live-post-art>span { font-size: 14px; }
html.social-crystal body .channel-service-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 0 0 28px;
}
html.social-crystal body .channel-service {
  min-height: 150px;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 20px;
  gap: 8px;
  background: var(--card-surface);
  box-shadow: var(--card-edge);
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}
html.social-crystal body .channel-service:hover { background: var(--surface); border-color: var(--line); box-shadow: var(--card-edge); }
html.social-crystal body .channel-service>strong { font-size: 16px; font-weight: 500; }
html.social-crystal body .channel-service :is(.channel-service-count,.badge) { font-size: 12px; line-height: 1.5; }
html.social-crystal body .channel-service>small { font-size: 12px; line-height: 1.5; color: var(--muted); }
html.social-crystal body .channel-service-count { color: var(--social-link); }
html.social-crystal body .channel-service-top { margin-bottom: 4px; min-height: 36px; }
html.social-crystal body .channel-service-arrow { color: var(--muted); }
html.social-crystal body :is(.channel-card,.shared-provider-accounts .provider-account) { padding: 20px!important; border-radius: 22px; }
html.social-crystal body .channel-card { min-height: 0; gap: 10px; }
html.social-crystal body .channel-card h3 { margin: 6px 0 0; font-size: 18px; font-weight: 500; }
html.social-crystal body .channel-card>p { min-height: 0; margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
html.social-crystal body .channel-card .btn { min-height: 44px; font-size: 14px; padding: 10px 14px; }
html.social-crystal body .shared-provider-accounts .provider-account { border-color: var(--line); background: var(--soft-bg); }
html.social-crystal body .shared-provider-accounts .provider-account-record+.provider-account-record { border-color: var(--line); }
html.social-crystal body :is(.shared-provider-accounts,#wazzup-setup) .actions { gap: 10px; margin-top: 16px; }
html.social-crystal body #wazzup-setup :is(.wazzup-modes>button,.wazzup-channel,.field input,.field select) {
  border-color: transparent; background: var(--control-bg); color: var(--ink); border-radius: 14px; min-height: 44px; font-size: 14px;
}
html.social-crystal body #wazzup-setup .wazzup-modes>[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--primary); }
html.social-crystal body #wazzup-setup .wazzup-channel small { color: var(--muted); font-size: 12px; }
html.social-crystal body .channel-clear-choices { border-color: var(--line); border-radius: 16px; }

/* Chat: one list, one message scroller, one composer. */
html.social-crystal body .chat-workspace.triple { flex: 1 1 auto; min-width: 0; min-height: 0; height: 100%; max-height: 100%; }
html.social-crystal body .chat-workspace>.conversation-list,
html.social-crystal body .chat-workspace>.conversation,
html.social-crystal body .chat-workspace>.detail-pane { border-radius: 24px; padding: 0; min-height: 0; }
html.social-crystal body .social-chat :is(.list-top,.conversation-top,.detail-tabs) { border-color: var(--line); background: transparent; }
html.social-crystal body .social-chat .list-top { padding: 16px!important; }
html.social-crystal body .chat-list-heading { align-items: center; gap: 8px; }
html.social-crystal body .social-chat .list-top h3 { font-size: 18px; font-weight: 500; margin: 0; }
html.social-crystal body .chat-list-tools { gap: 8px; margin-top: 12px; }
html.social-crystal body .chat-platform-field>.select-icon-only { min-height: 44px; height: 44px; }
html.social-crystal body .social-chat .live-chat-list { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
html.social-crystal body .live-contact {
  padding: 14px 10px;
  min-height: 80px;
  border: 0;
  border-radius: 16px;
  gap: 12px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
html.social-crystal body .live-contact:hover { background: var(--hover-bg); }
html.social-crystal body .social-chat .live-contact.active,
html.social-crystal body .live-contact.selected { background: var(--accent-soft)!important; box-shadow: inset 3px 0 0 var(--primary)!important; }
html.social-crystal body .live-contact strong { font-size: 14px; font-weight: 550; }
html.social-crystal body .live-contact small { font-size: 13px; line-height: 1.4; margin: 5px 0; }
html.social-crystal body .live-contact em { font-size: 12px; line-height: 1.4; }
html.social-crystal body .live-contact .chat-avatar-platform { border-color: var(--elevated-bg); background: var(--elevated-bg); }
html.social-crystal body .chat-selection-bar { color: var(--ink); font-size: 13px; }
html.social-crystal body .chat-selection-bar :is(.btn,.icon-btn) { min-height: 44px; }
html.social-crystal body .social-chat .conversation-top { padding: 12px 16px!important; min-height: 72px; gap: 10px; }
html.social-crystal body .social-chat .conversation-top h3 { font-size: 16px; font-weight: 500; }
html.social-crystal body .social-chat .conversation-top :is(p,small) { font-size: 12px; color: var(--muted); line-height: 1.45; }
html.social-crystal body .chat-workspace .conversation-top .icon-btn { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
html.social-crystal body .social-chat .messages { flex: 1 1 auto; min-height: 0; padding: 20px!important; overflow: auto; overscroll-behavior: contain; }
html.social-crystal body .social-chat .live-message { margin: 8px 0; }
html.social-crystal body .social-chat .live-message .bubble {
  max-width: min(88%,650px);
  padding: 12px 16px;
  border: 0!important;
  border-radius: 18px;
  background: var(--social-message)!important;
  color: var(--ink);
  box-shadow: 0 2px 5px rgba(0,0,0,.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 14px;
  line-height: 1.55;
}
html.social-crystal body .social-chat .live-message.outbound .bubble { background: var(--social-message-out)!important; }
html.social-crystal body .social-chat .bubble :is(p,.message-text) { font-size: 14px; line-height: 1.55; }
html.social-crystal body .social-chat .bubble small { font-size: 12px; color: var(--muted); }
html.social-crystal body .social-chat .message-details { font-size: 12px; line-height: 1.5; color: var(--muted); }
html.social-crystal body :is(.message-translation,.message-transcript,.message-reply-quote) { border-color: var(--primary); background: var(--soft-bg); }
html.social-crystal body :is(.message-translation,.message-transcript) :is(p,button,summary) { color: var(--ink); font-size: 13px; }
html.social-crystal body :is(.message-link,.message-reply-quote strong,.transcript-label) { color: var(--social-link)!important; }
html.social-crystal body .message-translation :is(button,summary) { min-height: 44px; }
html.social-crystal body .message-audio { background: var(--soft-bg); border-color: transparent; }
html.social-crystal body .message-audio :is(.icon-btn,.audio-transcribe) { width: 44px; height: 44px; min-width: 44px; min-height: 44px; color: var(--social-link); }
html.social-crystal body .social-chat .live-message .message-draft-actions { flex-wrap: wrap; gap: 8px; }
html.social-crystal body .social-chat .live-message .message-draft-actions .btn { height: auto; min-height: 44px; padding: 10px 12px; font-size: 13px; border-radius: 999px; }
html.social-crystal body .social-chat .live-message .message-draft-actions .message-draft-edit { width: 44px; min-width: 44px; height: 44px; padding: 10px; }
html.social-crystal body .social-chat .live-message .message-draft-actions .message-draft-send { color: var(--social-success-text)!important; background: var(--social-success-fill); }
html.social-crystal body .social-chat .live-message .message-draft-actions .message-draft-cancel { color: var(--social-error-text)!important; background: var(--social-error-fill); }
html.social-crystal body .cw-composer.composer { flex: 0 0 auto; padding: 12px; border-color: var(--line); background: transparent; }
html.social-crystal body .cw-compose { padding: 12px; border-radius: 18px; background: var(--control-bg)!important; border: 1px solid transparent!important; box-shadow: none!important; }
html.social-crystal body .cw-compose .cw-input { font-size: 16px; line-height: 1.5; background: transparent!important; padding: 8px 3px; min-height: 44px; color: var(--ink); }
html.social-crystal body .cw-compose .cw-toolbar { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
html.social-crystal body :is(.cw-idle-left,.cw-idle-actions,.cw-toolbar-end) { gap: 6px; }
html.social-crystal body .cw-toolbar-end { margin-left: auto; }
html.social-crystal body :is(.cw-composer,.cw-popover) .cw-icon { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-basis: 44px; border-radius: 50%; }
html.social-crystal body .cw-composer .cw-send { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-basis: 44px; border-radius: 50%; background: var(--primary)!important; color: #fff!important; }
html.social-crystal body .cw-composer .cw-send>.icon { color: #fff!important; }
html.social-crystal body .cw-composer .cw-channel { min-height: 44px; font-size: 12px; padding-inline: 10px; border-radius: 999px; }
html.social-crystal body .cw-compose-footer { color: var(--muted); font-size: 12px; flex-wrap: wrap!important; gap: 8px; }
html.social-crystal body .cw-compose-footer :is(.cw-delivery-info,.cw-schedule-links button) { font-size: 12px; line-height: 1.45; }
html.social-crystal body .cw-compose-footer .cw-schedule-links { flex-wrap: wrap; }
html.social-crystal body .cw-compose-footer .cw-schedule-links button { min-height: 36px; }
html.social-crystal body :is(.cw-draft-origin,.cw-record-setup,.cw-voice-editor,.cw-recorder,.cw-ai-context) { background: var(--soft-bg); border-color: var(--line); color: var(--ink); }
html.social-crystal body :is(.cw-record-setup p,.cw-voice-heading>span,.cw-record-bottom,.cw-local-note,.cw-menu-row small,.cw-menu-row strong,.cw-saved-option strong,.cw-saved-option p,.cw-popover-head small,.cw-reply-card p,.cw-reply-card h3) { font-size: 13px; line-height: 1.5; }
html.social-crystal body :is(.cw-voice-heading>small,.cw-trim-caption,.cw-record-time,.cw-record-bottom>small,.cw-media-name) { font-size: 12px; }
html.social-crystal body .cw-ai-light,
html.social-crystal body .cw-ai-dot { display: none; }
html.social-crystal body .cw-ai-star { animation: none; filter: none; color: var(--social-link); }
html.social-crystal body .cw-menu-row { padding: 12px; min-height: 60px; border-radius: 16px; }
html.social-crystal body .cw-menu-row:hover,
html.social-crystal body .cw-saved-option:hover { background: var(--hover-bg); }
html.social-crystal body .cw-integration-option.selected { background: var(--accent-soft); border-color: transparent; box-shadow: inset 3px 0 0 var(--primary); }
html.social-crystal body .cw-integration-option :is(strong,small) { font-size: 13px; line-height: 1.5; }
html.social-crystal body .cw-split-grip { background: var(--line); box-shadow: none; }
html.social-crystal body .cw-split:is(:hover,:focus-visible) .cw-split-grip { background: var(--primary); }
html.social-crystal body .cw-resize-hint { display: none; }
html.social-crystal body .social-chat .detail-scroll { padding: 20px; min-height: 0; }
html.social-crystal body .detail-tabs .tabs button { font-size: 13px; min-height: 44px; }
html.social-crystal body .detail-scroll :is(p,.caption) { font-size: 14px; line-height: 1.55; }
html.social-crystal body .detail-scroll .detail-pair { gap: 12px; font-size: 13px; }
html.social-crystal body .chat-workspace:is([data-layout="dual"],[data-layout="single"]).show-details>.detail-pane { background: var(--elevated-bg); box-shadow: var(--card-edge); }

/* Publication editor. */
html.social-crystal body :is(.pc-editor,.social-post-layout) { width: 100%; max-width: 1320px; margin-inline: auto; min-width: 0; }
html.social-crystal body .pc-grid { grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 20px; }
html.social-crystal body .pc-main { gap: 16px; }
html.social-crystal body :is(.pc-step,.pc-advanced) { padding: 24px; border-radius: 24px; border: 1px solid transparent; background: var(--card-surface); box-shadow: var(--card-edge); }
html.social-crystal body .pc-step h2 { font-size: 18px; font-weight: 500; margin-bottom: 18px; }
html.social-crystal body .pc-step h2 small { color: var(--muted); background: var(--control-bg); font-size: 12px; }
html.social-crystal body .pc-format>span { min-height: 104px; background: var(--control-bg); border: 1px solid transparent; border-radius: 16px; padding: 14px; gap: 5px; color: var(--ink); }
html.social-crystal body .pc-format input:checked+span { background: var(--accent-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
html.social-crystal body .pc-format strong { font-size: 14px; }
html.social-crystal body .pc-format small { font-size: 12px; line-height: 1.4; }
html.social-crystal body .pc-format-hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
/* Keep only the columns that the selected publishing channel can use. */
html:root.social-crystal body .pc-formats:has(>.pc-format:not([hidden])~.pc-format:not([hidden])):not(:has(>.pc-format:not([hidden])~.pc-format:not([hidden])~.pc-format:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr))}
html:root.social-crystal body .pc-formats:not(:has(>.pc-format:not([hidden])~.pc-format:not([hidden]))){grid-template-columns:minmax(0,1fr)}
html:root.social-crystal body .pc-formats:not(:has(>.pc-format:not([hidden])~.pc-format:not([hidden]))) .pc-format>span{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;column-gap:10px;row-gap:3px;min-height:76px}
html:root.social-crystal body .pc-formats:not(:has(>.pc-format:not([hidden])~.pc-format:not([hidden]))) .pc-format b{grid-row:span 2;line-height:1}
html.social-crystal body .pc-upload { min-height: 108px; padding: 18px; border-color: var(--line); background: var(--soft-bg); border-radius: 18px; }
html.social-crystal body .pc-upload:hover { border-color: var(--primary); background: var(--accent-soft); }
html.social-crystal body .pc-upload strong { font-size: 14px; font-weight: 500; }
html.social-crystal body .pc-upload small { font-size: 12px; line-height: 1.5; }
html.social-crystal body .pc-media-item { position: relative; grid-template-columns: repeat(3,minmax(0,1fr)); width: 162px; background: var(--control-bg); padding: 8px; gap: 6px; border-radius: 16px; }
html.social-crystal body .pc-media-item>span { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 2px 6px; border-radius: 999px; color: #fff; background: rgba(20,20,23,.75); font-size: 12px; pointer-events: none; }
html.social-crystal body .pc-media-item button { min-height: 44px; min-width: 44px; color: var(--ink); background: var(--soft-bg); border-radius: 10px; }
html.social-crystal body .pc-media-item button:hover:not(:disabled) { background: var(--hover-bg); }
html.social-crystal body .pc-caption textarea { min-height: 176px; font-size: 16px; line-height: 1.55; }
html.social-crystal body .pc-caption-tools { gap: 8px; }
html.social-crystal body .pc-caption-tools button { background: var(--control-bg); color: var(--ink); min-height: 44px; min-width: 44px; padding: 10px 12px; border-radius: 999px; font-size: 13px; }
html.social-crystal body .pc-caption-tools output { font-size: 12px; }
html.social-crystal body :is(.pc-tags,.pc-advanced) summary { font-size: 14px; font-weight: 500; padding: 8px 0; min-height: 28px; }
html.social-crystal body .pc-preview { top: 16px; }
html.social-crystal body .pc-preview>h2 { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
html.social-crystal body .pc-preview .social-post-preview { padding: 20px; max-width: 440px; border-radius: 24px; }
html.social-crystal body .pc-preview .social-post-media { background: var(--soft-bg); border-radius: 16px; min-height: 220px; }
html.social-crystal body .pc-preview .social-post-caption { font-size: 14px; line-height: 1.55; }
html.social-crystal body .pc-empty-media { color: var(--muted); }
html.social-crystal body .pc-empty-media small { font-size: 13px; }
html.social-crystal body .pc-footer { margin-top: 16px; padding: 20px 0 8px; gap: 10px; border-top: 1px solid var(--line); }
html.social-crystal body .pc-footer>.btn { min-height: 44px; font-size: 14px; }
html.social-crystal body .pc-feedback { background: var(--accent-soft); color: var(--ink); border-color: var(--line); border-radius: 16px; font-size: 14px; }
html.social-crystal body .pc-feedback-error { background: var(--social-error-fill); color: var(--social-error-text); border-color: currentColor; }
html.social-crystal body :is(.pc-error,.pc-over-limit) { color: var(--social-error-text)!important; font-size: 14px; }
html.social-crystal body .pc-status { font-size: 13px; }
html.social-crystal body .social-post-preview { position: sticky; top: 16px; }
html.social-crystal body .social-post-settings>.panel { padding: 24px; }
html.social-crystal body .social-post-caption { font-size: 14px; line-height: 1.65; }

/* Comments retain the selected conversation and useful reply context. */
html.social-crystal body .social-comments-layout { grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr); gap: 20px; }
html.social-crystal body .social-comments-list { padding: 16px!important; max-height: calc(100dvh - 210px); }
html.social-crystal body .social-comment-row { padding: 14px 12px; border-color: var(--line); border-radius: 16px; color: var(--ink); }
html.social-crystal body .social-comment-row.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--primary); }
html.social-crystal body .social-comment-row:hover { background: var(--hover-bg); }
html.social-crystal body .social-comment-row :is(strong,p) { font-size: 14px; line-height: 1.5; }
html.social-crystal body .social-comment-row small { font-size: 12px; line-height: 1.45; }
html.social-crystal body .social-comment-detail { position: sticky; top: 16px; padding: 24px!important; }
html.social-crystal body .social-comment-reply { background: var(--accent-soft); border-color: var(--primary); font-size: 14px; }
html.social-crystal body .social-comments-layout.in-post { grid-template-columns: 1fr; }
html.social-crystal body .agent-settings { gap: 20px; max-width: 1120px; }
html.social-crystal body .agent-hint { color: var(--muted); background: var(--soft-bg); border-color: var(--primary); font-size: 14px; }
html.social-crystal body .agent-hint summary { color: var(--social-link); min-height: 36px; padding-block: 5px; }

/* Calendar retains its horizontal scroll inside the calendar only. */
html.social-crystal body #social-calendar { width: 100%; min-width: 0; color: var(--ink); }
html.social-crystal body :is(.sc-toolbar,.sc-navigation,.sc-filters) { gap: 10px; }
html.social-crystal body .sc-toolbar { margin-bottom: 16px; }
html.social-crystal body .sc-toolbar button,
html.social-crystal body .sc-reconnect { min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 999px; color: var(--ink); background: var(--control-bg); font-size: 14px; }
html.social-crystal body .sc-navigation>button:first-child,
html.social-crystal body .sc-navigation>button:nth-child(3) { width: 44px; min-width: 44px; padding: 0; font-size: 24px; }
html.social-crystal body .sc-views { background: var(--soft-bg); border-radius: 999px; gap: 4px; }
html.social-crystal body .sc-views button { background: transparent; }
html.social-crystal body .sc-views button[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--primary); }
html.social-crystal body .sc-filters label { font-size: 14px; gap: 7px; }
html.social-crystal body .sc-date { font-size: 14px; }
html.social-crystal body :is(.sc-date,.sc-filters) :is(input,select) { min-height: 44px; font-size: 14px; padding: 10px 14px; border-color: transparent; border-radius: 14px; color: var(--ink); background: var(--control-bg); }
html.social-crystal body .sc-meta { color: var(--muted); font-size: 13px; margin: 16px 0; gap: 8px; }
html.social-crystal body .sc-meta strong { color: var(--ink); font-size: 18px; font-weight: 500; }
html.social-crystal body .sc-scroll { border: 1px solid var(--line); border-radius: 22px; background: var(--soft-bg); max-height: min(640px,65dvh); }
html.social-crystal body :is(.sc-corner,.sc-day,.sc-channel) { background: var(--elevated-bg); border-color: var(--line); color: var(--ink); padding: 14px; }
html.social-crystal body :is(.sc-corner,.sc-day,.sc-channel) strong { font-size: 14px; font-weight: 500; }
html.social-crystal body :is(.sc-corner,.sc-day,.sc-channel) small { color: var(--muted); font-size: 12px; line-height: 1.45; }
html.social-crystal body .sc-cell { background: transparent; border-color: var(--line); padding: 8px; gap: 8px; }
html.social-crystal body .sc-cell.sc-today { background: var(--accent-soft); }
html.social-crystal body .sc-day.sc-today { background: var(--elevated-bg); box-shadow: inset 0 -3px 0 var(--primary); }
html.social-crystal body .sc-day.sc-today strong { color: var(--social-link); }
html.social-crystal body .sc-event { border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; background: var(--accent-soft); color: var(--ink); }
html.social-crystal body .sc-event:hover { border-color: currentColor; box-shadow: none; }
html.social-crystal body .sc-event strong,
html.social-crystal body .sc-event p { font-size: 13px!important; line-height: 1.45!important; }
html.social-crystal body .sc-event small { font-size: 12px; line-height: 1.4; opacity: 1; }
html.social-crystal body .sc-published { background: var(--social-success-fill); color: var(--social-success-text); }
html.social-crystal body :is(.sc-error,.sc-uncertain) { background: var(--social-error-fill); color: var(--social-error-text); }
html.social-crystal body .sc-draft { background: var(--control-bg); color: var(--muted); }
html.social-crystal body .sc-add { min-height: 44px; color: var(--muted); border-radius: 12px; }
html.social-crystal body .sc-add:is(:hover,:focus-visible) { color: var(--social-link); border-color: var(--primary); background: var(--accent-soft); }
html.social-crystal body .sc-channel .sc-connected { color: var(--social-success-text); }
html.social-crystal body .sc-channel .sc-attention { color: var(--social-warning-text); }
html.social-crystal body .sc-channel .sc-connection-help { font-size: 12px; }
html.social-crystal body .sc-reconnect { font-size: 12px; color: var(--social-link); background: var(--accent-soft); padding: 8px 12px; }
html.social-crystal body .sc-drafts h2 { font-size: 18px; font-weight: 500; }
html.social-crystal body :is(.sc-drafts>p,.sc-notice,.sc-drafts h2 small,.sc-drafts>div>div>small) { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Subscription, shared balance and usage are ordinary workspace surfaces. */
html.social-crystal body .social-pricing .plan-card { padding: 24px; gap: 18px; min-height: 360px; border-radius: 26px; }
html.social-crystal body .plan-card.popular { border-color: transparent!important; box-shadow: var(--card-edge), inset 0 0 0 1px var(--primary)!important; }
html.social-crystal body .plan-card :is(h2,.price) { font-size: 32px; font-weight: 500; letter-spacing: -.8px; margin: 12px 0; }
html.social-crystal body .plan-card h2 small { font-size: 14px; font-weight: 400; }
html.social-crystal body .plan-card :is(p,.plan-features p) { font-size: 14px; line-height: 1.55; color: var(--muted); }
html.social-crystal body .plan-card .btn { min-height: 44px; font-size: 14px; margin-top: auto; padding: 11px 16px; }
html.social-crystal body .popular-plan { background: var(--primary); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
html.social-crystal body .glass-plan-icon { height: 56px; width: 56px; }
html.social-crystal body .subscription-summary { gap: 16px; }
html.social-crystal body .subscription-summary h2 { font-size: 20px; font-weight: 500; }
html.social-crystal body .subscription-summary p { font-size: 14px; line-height: 1.55; }
html.social-crystal body .billing-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
html.social-crystal body .billing-tabs .active { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--primary); }
html.social-crystal body :is(.token-history,.billing-history) { border-radius: 16px; }
html.social-crystal body :is(.token-history,.billing-history) :is(td,th) { font-size: 13px; line-height: 1.5; padding: 14px 16px; color: var(--ink); border-color: var(--line); }
html.social-crystal body :is(.token-history,.billing-history) th { background: var(--elevated-bg); color: var(--muted); }
html.social-crystal body :is(.token-history,.billing-history) tbody tr:hover td { background: var(--hover-bg); }
html.social-crystal body .token-pack-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 16px; margin: 24px 0; }
html.social-crystal body .token-pack-grid h3 { font-size: 18px; font-weight: 500; }
html.social-crystal body .token-pack-grid h2 { font-size: 30px; font-weight: 500; }
html.social-crystal body .token-pack-grid .btn { min-height: 44px; }
html.social-crystal body .token-balance-number { font-weight: 500; }
html.social-crystal body :is(.token-balance-copy>p,.token-use-case p,.token-order-summary p,.subscription-facts,.billing-caption,.usage-filter,.usage-chart-caption) { font-size: 13px; line-height: 1.55; }
html.social-crystal body .token-use-case h3 { font-size: 16px; font-weight: 500; }
html.social-crystal body :is(.token-pack-label,.token-pack-unit,.token-pack-note,.token-balance-bottom,.token-balance-actions>small,.usage-kpi>small,.usage-legend) { font-size: 12px; line-height: 1.5; }
html.social-crystal body .token-choice.chosen { background: var(--accent-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
html.social-crystal body .usage-kpi>span { font-size: 14px; }
html.social-crystal body .usage-kpi strong { font-size: 28px; font-weight: 500; }
html.social-crystal body .usage-chart text { fill: var(--muted); font-family: inherit; }
html.social-crystal body .usage-pagination { font-size: 13px; }
html.social-crystal body .usage-pagination .btn { min-height: 44px; font-size: 14px; }

/* Provider setup contains useful instructions; remove only decorative surfaces. */
html.social-crystal body .video-integrations { margin-top: 28px; padding-top: 24px; border-color: var(--line); }
html.social-crystal body .video-eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
html.social-crystal body .video-integrations h2 { font-size: 22px; font-weight: 500; }
html.social-crystal body .video-provider-grid { gap: 16px; }
html.social-crystal body :is(.video-provider-card,.video-setup) { background: var(--card-surface); border-color: transparent; border-radius: 24px; box-shadow: var(--card-edge); padding: 24px; color: var(--ink); }
html.social-crystal body .video-provider-card h3 { font-size: 18px; font-weight: 500; }
html.social-crystal body .video-provider-card p { font-size: 14px; line-height: 1.55; }
html.social-crystal body .video-status { font-size: 12px; background: var(--soft-bg); color: var(--muted); }
html.social-crystal body .video-status.is-connected { background: var(--social-success-fill); color: var(--social-success-text); }
html.social-crystal body .video-status.is-attention { background: var(--social-warning-fill); color: var(--social-warning-text); }
html.social-crystal body .video-key-panel { border-color: var(--line); }
html.social-crystal body .video-key-panel :is(input,select) { color: var(--ink); background: var(--control-bg); border-color: transparent; border-radius: 14px; min-height: 44px; font-size: 16px; }
html.social-crystal body :is(.video-reveal,.video-disconnect) { min-height: 44px; min-width: 44px; color: var(--social-link); font-size: 14px; }
html.social-crystal body .video-links a { color: var(--social-link); }
html.social-crystal body .video-provider-note { background: var(--soft-bg); }
html.social-crystal body .video-feedback { color: var(--social-success-text); }
html.social-crystal body .video-feedback.is-error { color: var(--social-error-text); }
html.social-crystal body .video-remove-confirm { border-color: var(--social-error-text); background: var(--social-error-fill); }
html.social-crystal body :is(.video-provider-note,.video-key-help,.video-footnote,.video-current-status) { font-size: 13px; line-height: 1.55; }

@media (max-width:1180px) {
  html.social-crystal body .channel-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  html.social-crystal body .pc-grid { gap: 16px; grid-template-columns: minmax(0,1fr) minmax(280px,.85fr); }
  html.social-crystal body .social-comments-layout { grid-template-columns: minmax(250px,.85fr) minmax(0,1.15fr); }
}
@media (max-width:900px) {
  html.social-crystal body :is(.live-post-grid,.live-channel-grid,.live-plan-grid,.pricing-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html.social-crystal body .channel-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html.social-crystal body .pc-grid,
  html.social-crystal body .social-post-layout { grid-template-columns: 1fr; }
  html.social-crystal body .pc-preview { position: static; max-width: 480px; width: 100%; margin-inline: auto; }
  html.social-crystal body .social-post-preview { position: static; }
  html.social-crystal body .video-provider-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  html.social-crystal body :is(.live-post-grid,.live-channel-grid,.live-plan-grid,.pricing-grid) { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  html.social-crystal body .post-card-cover { aspect-ratio: 1.55; }
  html.social-crystal body .post-card-body { min-height: 134px; padding: 18px!important; }
  html.social-crystal body .post-card-body h3 { font-size: 16px; }
  html.social-crystal body .channel-service-grid { gap: 10px; }
  html.social-crystal body .channel-service { padding: 16px; border-radius: 20px; min-height: 150px; }
  html.social-crystal body .channel-service-top { flex-wrap: wrap; }
  html.social-crystal body .channel-service .badge { font-size: 12px; }
  html.social-crystal body .channel-service>small { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  html.social-crystal body .channel-service-arrow { bottom: 12px; right: 12px; }
  html.social-crystal body .chat-workspace.triple { min-height: 0; height: 100%; }
  html.social-crystal body .chat-workspace>:is(.conversation-list,.conversation,.detail-pane) { border-radius: 20px; }
  html.social-crystal body .social-chat .list-top { padding: 14px!important; }
  html.social-crystal body .social-chat .conversation-top { padding: 10px 12px!important; min-height: 68px; }
  html.social-crystal body .social-chat .conversation-top h3 { font-size: 15px; }
  html.social-crystal body .social-chat .conversation-top :is(p,small) { font-size: 12px; }
  html.social-crystal body .social-chat .messages { padding: 14px 12px!important; }
  html.social-crystal body .social-chat .live-message .bubble { max-width: 95%; padding: 11px 14px; font-size: 15px; }
  html.social-crystal body .social-chat .bubble :is(p,.message-text) { font-size: 15px; }
  html.social-crystal body .social-chat .bubble:has(.media-gallery),
  html.social-crystal body .social-chat .bubble:has(.message-audio) { width: 95%; max-width: 95%; }
  html.social-crystal body .cw-composer.composer { padding: 8px; }
  html.social-crystal body .cw-compose { padding: 9px; }
  html.social-crystal body .cw-compose .cw-toolbar { gap: 6px; }
  html.social-crystal body :is(.cw-idle-left,.cw-idle-actions,.cw-toolbar-end) { gap: 3px; }
  html.social-crystal body .cw-compose-footer { padding: 6px 2px 0; }
  html.social-crystal body .cw-compose-footer .cw-delivery-info { flex-basis: 100%; white-space: normal; }
  html.social-crystal body .cw-compose-footer .cw-schedule-links { margin-left: auto; }
  html.social-crystal body .chat-workspace:is([data-layout="dual"],[data-layout="single"]).show-details>.detail-pane { inset: max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)); width: auto; max-height: none; z-index: 105; }
  html.social-crystal body .cw-reply-actions .cw-icon { min-width: 44px; min-height: 44px; width: 44px; height: 44px; flex-basis: 44px; }
  html.social-crystal body :is(.pc-step,.pc-advanced) { padding: 18px; border-radius: 22px; }
  html.social-crystal body .pc-formats { gap: 8px; }
  html.social-crystal body .pc-format>span { padding: 12px 8px; min-height: 108px; }
  html.social-crystal body .pc-footer>.btn { flex: 1 1 130px; }
  html.social-crystal body .pc-caption-tools output { width: auto; margin-left: auto; }
  html.social-crystal body .social-comments-layout { grid-template-columns: 1fr; }
  html.social-crystal body .social-comments-list { max-height: 440px; }
  html.social-crystal body .social-comment-detail { position: static; padding: 20px!important; }
  html.social-crystal body .sc-toolbar { gap: 12px; }
  html.social-crystal body .sc-navigation { gap: 6px; }
  html.social-crystal body .sc-filters label { min-width: 0; flex: 1 1 calc(50% - 10px); }
  html.social-crystal body .sc-filters .sc-search { flex-basis: 100%; }
  html.social-crystal body :is(.sc-date,.sc-filters) :is(input,select) { font-size: 16px; min-height: 48px; }
  html.social-crystal body .sc-date input { width: 144px; max-width: 144px; }
  html.social-crystal body .sc-meta { align-items: flex-start; }
  html.social-crystal body .sc-meta span { font-size: 12px; }
  html.social-crystal body .sc-scroll { border-radius: 18px; max-height: 62dvh; }
  html.social-crystal body .sc-grid { grid-template-columns: 145px repeat(var(--sc-cols),var(--sc-cell)); }
  html.social-crystal body .sc-channel { width: 145px; max-width: 145px; padding: 12px; }
  html.social-crystal body .sc-provider { display: none; }
  html.social-crystal body .sc-drafts>div { grid-template-columns: 1fr; }
  html.social-crystal body .token-pack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  html.social-crystal body .token-pack-grid>.panel { padding: 18px; }
  html.social-crystal body .token-pack-grid h3 { font-size: 16px; }
  html.social-crystal body .token-pack-grid h2 { font-size: 28px; }
  html.social-crystal body .token-pack-grid .btn { font-size: 13px; }
  html.social-crystal body .social-pricing .plan-card { padding: 24px; min-height: 0; }
  html.social-crystal body .video-provider-grid { grid-template-columns: 1fr; }
  html.social-crystal body :is(.video-provider-card,.video-setup) { padding: 20px; }
  html.social-crystal body .video-setup-columns { grid-template-columns: 1fr; gap: 24px; }
  html.social-crystal body .video-key-panel { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width:600px) {
  html.social-crystal body :is(.pc-tags>div,.video-key-input) { flex-wrap: wrap; }
  html.social-crystal body .pc-tags>div input { flex-basis: calc(100% - 80px); }
  html.social-crystal body .pc-upload { padding: 16px 12px; }
  html.social-crystal body .pc-preview .social-post-preview { padding: 16px; }
  html.social-crystal body #wazzup-setup .wazzup-profile-grid { grid-template-columns: 1fr; }
  html.social-crystal body #wazzup-setup .field :is(input,select) { font-size: 16px; }
  html.social-crystal body .shared-provider-accounts .actions>.btn { flex: 1 1 140px; }
}
@media (prefers-reduced-motion:reduce) {
  html.social-crystal body .live-post,
  html.social-crystal body .channel-service { transition: none; }
  html.social-crystal body .live-post:hover,
  html.social-crystal body .channel-service:hover { transform: none; }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  html.social-crystal body :is(.channel-service,.video-provider-card,.video-setup,.pc-step,.pc-advanced) { background: var(--elevated-bg)!important; backdrop-filter: none!important; -webkit-backdrop-filter: none!important; }
  html.social-crystal body .social-chat .live-message .bubble { background: var(--elevated-bg)!important; border: 1px solid var(--line)!important; }
  html.social-crystal body .social-chat .live-message.outbound .bubble { border-inline-end: 3px solid var(--primary)!important; }
}
@media (forced-colors:active) {
  html.social-crystal body :is(.channel-service,.video-provider-card,.video-setup,.pc-step,.pc-advanced,.sc-event,.social-chat .bubble) { border: 1px solid CanvasText!important; background: Canvas!important; color: CanvasText!important; box-shadow: none!important; }
  html.social-crystal body :is(.live-contact.active,.live-contact.selected,.social-comment-row.active,.pc-format input:checked+span,.sc-views button[aria-pressed="true"]) { outline: 2px solid Highlight!important; outline-offset: -2px; }
}

/* Chat toolbar and mobile navigation: one height, one material, visible filter value. */
html:root.social-crystal body .social-chat .chat-list-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,38%);align-items:center;gap:8px;margin-top:12px}
html:root.social-crystal body .social-chat .chat-list-tools>.search,
html:root.social-crystal body .social-chat .chat-platform-field>.select-trigger,
html:root.social-crystal body .social-chat .chat-platform-field>select:not([hidden]){
  box-sizing:border-box;display:flex;align-items:center;height:46px;min-height:46px;max-height:46px;min-width:0;width:100%;margin:0;padding:0 12px;gap:8px;border-radius:16px!important;background:var(--control-bg)!important;color:var(--ink);border:1px solid transparent!important;box-shadow:inset 1px 1px 1px color-mix(in srgb,var(--ink) 7%,transparent)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html:root.social-crystal body .social-chat .chat-list-tools>.search>input{
 flex:1;display:block;height:44px;min-height:0!important;max-height:44px;min-width:0;width:100%;margin:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;line-height:normal;font-size:14px;color:var(--ink);-webkit-text-fill-color:var(--ink);
}
html:root.social-crystal body .social-chat .chat-list-tools>.search>input::placeholder{color:var(--placeholder);-webkit-text-fill-color:var(--placeholder);opacity:1}
html:root.social-crystal body .social-chat .chat-list-tools>.search:focus-within{border-color:var(--primary)!important;box-shadow:0 0 0 2px var(--accent-soft)!important}
html:root.social-crystal body .social-chat .chat-list-tools>.search>.icon{width:18px;height:18px;flex:0 0 18px}
html:root.social-crystal body .social-chat .chat-platform-field{width:100%;min-width:0;margin:0}
html:root.social-crystal body .social-chat .chat-platform-field>.select-trigger{justify-content:space-between;font-size:13px;text-align:left;white-space:nowrap}
html:root.social-crystal body .social-chat .chat-platform-field>.select-trigger .selected-label{flex:1;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root.social-crystal body .social-chat .chat-platform-field>.select-trigger .selected-label>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root.social-crystal body .social-chat .chat-platform-field>.select-trigger>.icon{width:14px;height:14px;flex:0 0 14px;margin:0}
html:root.social-crystal body .social-chat .chat-platform-field>.select-trigger[aria-expanded="true"]{background:var(--accent-soft)!important;border-color:var(--primary)!important}
html:root.social-crystal body .chat-workspace>:is(.conversation-list,.conversation,.detail-pane){border-radius:26px!important}
html:root.social-crystal body .social-chat .live-contact{border-radius:20px;min-height:76px}
html:root.social-crystal body .social-chat .live-contact :is(small,em){color:var(--muted)}
html:root.social-crystal body .social-chat .conversation>.loading-state{height:100%;min-height:0;background:transparent!important;border:0!important;box-shadow:none!important}
html:root.social-crystal body .social-chat-loading-shell{display:grid;grid-template-columns:minmax(240px,340px) minmax(0,1fr);gap:16px;flex:1;min-height:0;height:100%;overflow:hidden}
html:root.social-crystal body .social-chat-loading-shell>:is(.social-chat-loading-list,.social-chat-loading-preview){position:relative;min-height:0;overflow:hidden;border-radius:26px;background:var(--card-surface);box-shadow:var(--card-edge);border:1px solid transparent}
html:root.social-crystal body .social-chat-loading-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px 0}
html:root.social-crystal body .social-chat-loading-head h3{font-size:18px;font-weight:500;margin:0}
html:root.social-crystal body .social-chat-skeleton-add{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--control-bg);color:var(--muted)}
html:root.social-crystal body .social-chat-loading-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,38%);gap:8px;padding:12px 16px 14px;border-bottom:1px solid var(--line)}
html:root.social-crystal body .social-chat-loading-tools>span{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;white-space:nowrap;height:46px;border-radius:16px;padding:0 12px;background:var(--control-bg);color:var(--muted);font-size:13px}
html:root.social-crystal body .social-chat-loading-tools>span:last-child{justify-content:space-between}
html:root.social-crystal body .social-chat-loading-tools .icon{width:16px;height:16px;flex:none}
html:root.social-crystal body .social-chat-skeleton-rows{padding:6px;overflow:hidden}
html:root.social-crystal body .social-chat-skeleton-row{min-height:76px;display:flex;align-items:center;gap:12px;padding:12px 10px}
html:root.social-crystal body .social-chat-skeleton-row>div{flex:1;min-width:0;display:grid;gap:7px}
html:root.social-crystal body .social-chat-skeleton-row i{display:block;height:9px;background:var(--control-bg);border-radius:999px;animation:social-chat-loading 1.5s ease-in-out infinite alternate}
html:root.social-crystal body .social-chat-skeleton-row i.social-chat-skeleton-avatar{width:42px;height:42px;flex:none}
@keyframes social-chat-loading{from{opacity:.55}to{opacity:1}}
@media(prefers-reduced-motion:reduce){html:root.social-crystal body .social-chat-skeleton-row i{animation:none}}
@media(max-width:760px){
 html:root.social-crystal body .app.is-chats:not(:has(.chat-workspace.chat-open)){padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 html:root.social-crystal body .app.is-chats:not(:has(.chat-workspace.chat-open))~.mobile-bottom{display:flex}
 html:root.social-crystal body .app.is-chats:not(:has(.chat-workspace.chat-open)) .mobile-menu{display:none!important}
 html:root.social-crystal body .app.is-chats:not(:has(.chat-workspace.chat-open)) .sabsus-suite-trigger{max-width:calc(100vw - 174px)}
 html:root.social-crystal body .app.is-chats .layout{margin-top:0}
 html:root.social-crystal body .social-chat .chat-list-tools{grid-template-columns:minmax(0,1fr) minmax(90px,38%)}
 html:root.social-crystal body .social-chat .chat-list-tools>.search>input{font-size:16px}
 html:root.social-crystal body .social-chat .chat-platform-field>.select-trigger{font-size:14px}
 html:root.social-crystal body .social-chat-loading-shell{grid-template-columns:minmax(0,1fr)}
 html:root.social-crystal body .social-chat-loading-preview{display:none}
 html:root.social-crystal body:has(.app.is-chats:not(:has(.chat-workspace.chat-open))) .sb-launch{bottom:calc(84px + env(safe-area-inset-bottom))!important}
 html:root.social-crystal body:has(.app.is-chats .chat-workspace.chat-open) .sb-launch{visibility:hidden!important;pointer-events:none!important}
}

/* Keep menu icons fixed while their text uses the available width. */
html:root.social-crystal body .select-trigger{min-width:0}
html:root.social-crystal body .select-trigger .selected-label{min-width:0;max-width:100%;flex:1 1 auto;overflow:hidden}
html:root.social-crystal body .select-trigger .select-value-text{display:block;min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root.social-crystal body .select-trigger>.icon{width:16px;height:16px;flex:0 0 16px}
html:root.social-crystal body .select-trigger .selected-label>:is(.brand-icon,.provider-logo,.language-flag){flex:none}
html:root.social-crystal body .social-native-select.select-menu{display:flex;flex-direction:column;min-width:0;overflow:hidden}
html:root.social-crystal body .social-native-select .select-scroll{flex:1 1 auto;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
html:root.social-crystal body .social-native-select .select-option{min-width:0;align-items:center}
html:root.social-crystal body .social-native-select .select-option-label{flex:1 1 auto;min-width:0;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}
html:root.social-crystal body .social-native-select .select-option-check{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;min-width:16px;max-width:16px;height:16px;color:var(--accent-display)}
html:root.social-crystal body .social-native-select .select-option-check>.icon{width:16px;height:16px;flex:none}
html:root.social-crystal body .social-native-select .select-optgroup-label{padding:12px 13px 6px;color:var(--muted);font-size:12px;font-weight:550;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
html:root.social-crystal body .social-native-select .select-empty{margin:0;padding:12px 13px;color:var(--muted);font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
html:root.social-crystal body .social-native-select .select-option>:is(.brand-icon,.provider-logo,.language-flag){flex:none}
html:root.social-crystal body .social-native-select .select-option>.icon{flex:0 0 16px}
html:root.social-crystal body .social-native-select .language-search{flex:none;min-height:44px}
html:root.social-crystal body .payment-channel-row>span:not(.brand-icon):not(.provider-logo){min-width:0;overflow-wrap:anywhere}

/* Menu rows must retain their content height inside the scrolling column. */
html:root.social-crystal body .cw-popover{min-width:0}
html:root.social-crystal body :is(.cw-menu-scroll,.cw-saved-options){min-width:0;min-height:0}
html:root.social-crystal body .cw-menu-scroll>:is(.cw-integration-option,.cw-menu-row),
html:root.social-crystal body .cw-saved-options>.cw-saved-option{flex:0 0 auto;height:auto}
html:root.social-crystal body .cw-integration-option{min-width:0}
html:root.social-crystal body .cw-integration-option>span:nth-child(2),
html:root.social-crystal body .cw-menu-row>span:nth-child(2){min-width:0}
html:root.social-crystal body .cw-integration-option strong{min-width:0;line-height:1.45}
html:root.social-crystal body .cw-integration-option small{line-height:1.45;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}

/* Compact composer controls need room for both the provider and chevron. */
html:root.social-crystal body .cw-composer .cw-channel{width:auto;min-width:60px;max-width:180px;height:44px;min-height:44px;padding:0 10px;gap:6px;white-space:nowrap}
html:root.social-crystal body .cw-composer .cw-channel-label{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root.social-crystal body .cw-composer .cw-channel-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px}
html:root.social-crystal body .cw-composer .cw-channel-icon>:is(.brand-icon,.provider-logo,.icon){width:18px;height:18px;min-width:18px;max-width:18px;flex:0 0 18px}
html:root.social-crystal body .cw-composer .cw-channel>.icon{width:12px;height:12px;flex:0 0 12px}
html:root.social-crystal body .cw-composer .cw-channel[aria-expanded="true"]{background:var(--accent-soft);border-color:var(--primary)}
@container(max-width:410px){
 html:root.social-crystal body .cw-composer .cw-channel{width:60px;min-width:60px;max-width:60px}
 html:root.social-crystal body .cw-composer .cw-channel-label{display:none}
}
@media(max-width:760px){
 html:root.social-crystal body .cw-composer .cw-channel{width:60px;min-width:60px;max-width:60px}
 html:root.social-crystal body .cw-composer .cw-channel-label{display:none}
 html:root.social-crystal body .social-native-select .language-search{font-size:16px}
}

/* Native choice controls must not inherit text-field padding or mobile height. */
html:root.social-crystal body .field:has(>input:is([type="checkbox"],[type="radio"])){display:flex;align-items:center;gap:10px;min-height:44px;line-height:1.45;cursor:pointer}
html:root.social-crystal body .field>input:is([type="checkbox"],[type="radio"]){box-sizing:border-box;appearance:auto;-webkit-appearance:auto;flex:0 0 20px;width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;margin:0;padding:0!important;border:revert!important;border-radius:revert!important;background:revert!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root.social-crystal body :is(.channel-clear-choices .check-row,.abr-check){min-height:44px;cursor:pointer}

/* Provider-specific selectors include an ID, so normalize them at that scope. */
html:root.social-crystal body #wazzup-setup .btn{min-height:44px;padding:10px 17px;gap:8px;border-radius:999px;border-color:transparent;background:var(--control-bg);font-size:14px}
html:root.social-crystal body #wazzup-setup .btn:hover{background:var(--hover-bg)}
html:root.social-crystal body #wazzup-setup .live-error,
html:root.social-crystal body .shared-provider-accounts .field-error{color:var(--social-error-text)}

/* Keep all composer actions on one row when its content is under 300px. */
@container(max-width:300px){
 html:root.social-crystal body .cw-composer .cw-channel{width:48px;min-width:48px;max-width:48px;padding-inline:6px;gap:4px}
 html:root.social-crystal body .cw-composer .cw-channel>.icon{width:10px;height:10px;flex:0 0 10px}
 html:root.social-crystal body .cw-composer :is(.cw-toolbar,.cw-idle-left,.cw-idle-actions,.cw-toolbar-end,.cw-send-cluster){gap:2px}
}
html:root.social-crystal body .cw-composer :is([data-cw="schedule"],[data-cw="scheduled"]){min-height:44px}

/* Follow the runtime's 760px breakpoint instead of the legacy 800px shell. */
@media(min-width:761px){
 html:root.social-crystal body .chat-workspace:is([data-layout="dual"],[data-layout="full"])>:is(.conversation-list,.conversation){display:flex}
 html:root.social-crystal body .chat-workspace:is([data-layout="dual"],[data-layout="full"]) .back-mobile{display:none}
}
@media(min-width:761px) and (max-width:900px){
 html:root.social-crystal body:has(.app.is-chats .chat-workspace.chat-open.hide-details) .sb-launch{visibility:hidden!important;pointer-events:none!important}
}

/* In an open narrow chat, retain the app name without a clipped company name. */
@media(max-width:440px){
 html:root.social-crystal body .app.is-chats:has(.chat-workspace.chat-open) .sabsus-suite-trigger>.suite-brand-copy:has(>small)>.suite-current-label{display:none!important}
 html:root.social-crystal body .app.is-chats:has(.chat-workspace.chat-open) .sabsus-suite-trigger>.suite-brand-copy>small::before{content:none;margin-right:0}
}

/* The shared app menu follows the same explicit theme as the workspace. */
@media (forced-colors:none){
 html:root.social-crystal body #sabsus-suite-menu.sabsus-suite-menu{
  --suite-scheme:dark;--suite-surface:var(--elevated-bg);--suite-solid:var(--elevated-bg);
  --suite-ink:var(--ink);--suite-muted:var(--muted);--suite-accent:var(--accent-display);
  --suite-input:var(--control-bg);--suite-icon-bg:var(--soft-bg);--suite-line:var(--line);
  --suite-hover:var(--hover-bg);--suite-current:var(--accent-soft);
 }
 html:root.social-crystal[data-social-theme="light"] body #sabsus-suite-menu.sabsus-suite-menu{--suite-scheme:light}
}

/* Social Inbox motion: compositor-only message tiles, no network assets or fake progress. */
html:root.social-crystal body .loading-state.social-loader {
 box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:360px;min-height:172px;margin:12px auto;padding:16px 20px 20px;gap:8px;border:0!important;border-radius:26px;background:var(--card-surface);box-shadow:var(--card-edge);color:var(--ink);overflow:hidden;
}
html:root.social-crystal body .social-chat .conversation>.social-loader {width:100%;max-width:none;height:100%;min-height:0;flex:1 1 auto;margin:0;padding:12px}
html:root.social-crystal body .social-load-mark {
 --load-face:linear-gradient(145deg,rgba(169,197,255,.28),rgba(60,85,133,.12) 52%,rgba(20,25,36,.25));--load-edge:rgba(210,225,255,.27);--load-ink:#dce9ff;position:relative;display:block;flex:none;width:144px;height:96px;isolation:isolate;color:var(--load-ink);
}
html:root.social-crystal[data-social-theme="light"] body .social-load-mark {
 --load-face:linear-gradient(145deg,rgba(255,255,255,.97),rgba(215,230,255,.83) 55%,rgba(195,213,245,.62));--load-edge:rgba(87,125,189,.24);--load-ink:#2854a2;
}
html:root.social-crystal body .social-load-mark::before {content:"";position:absolute;inset:12px 15px;border-radius:50%;background:radial-gradient(ellipse,color-mix(in srgb,var(--primary) 25%,transparent),transparent 72%);pointer-events:none}
html:root.social-crystal body .social-load-track {position:absolute;left:11px;right:11px;top:23px;bottom:22px;border:1px solid var(--load-edge);border-radius:50%;transform:rotate(-17deg);opacity:.65;pointer-events:none}
html:root.social-crystal body .social-load-tile {position:absolute;display:grid;place-items:center;box-sizing:border-box;background:var(--load-face);border:1px solid var(--load-edge);box-shadow:inset 0 1px 1px rgba(255,255,255,.22),0 5px 14px rgba(8,20,42,.13);border-radius:12px;color:var(--load-ink);width:36px;height:36px}
html:root.social-crystal body .social-load-tile svg {width:20px;height:20px;display:block;flex:none;color:inherit;fill:none}
html:root.social-crystal body .social-load-mail {left:7px;top:13px;transform:rotate(-12deg);animation:social-load-mail 2.6s cubic-bezier(.45,0,.3,1) infinite}
html:root.social-crystal body .social-load-send {right:7px;bottom:13px;transform:rotate(12deg);animation:social-load-send 2.6s cubic-bezier(.45,0,.3,1) infinite}
html:root.social-crystal body .social-load-inbox {
 width:68px;height:60px;left:38px;top:18px;z-index:2;border-radius:19px;overflow:hidden;color:white;background:linear-gradient(145deg,#80afff 0%,#3b77e9 44%,#234eb3 100%);border-color:rgba(207,229,255,.64);box-shadow:inset 0 1px 2px rgba(255,255,255,.55),inset 0 -2px 6px rgba(13,42,113,.35),0 8px 22px rgba(30,80,190,.24);animation:social-load-inbox 2.6s cubic-bezier(.45,0,.3,1) infinite;
}
html:root.social-crystal body .social-load-inbox svg {width:35px;height:35px;position:relative;z-index:1}
html:root.social-crystal body .social-load-inbox::after {content:"";position:absolute;width:36%;top:-20%;bottom:-20%;left:-50%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);animation:social-load-glint 2.6s ease-in-out infinite;pointer-events:none}
html:root.social-crystal body .social-load-spark {animation:social-load-spark 2.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
html:root.social-crystal body .social-load-label {margin:0;max-width:100%;text-align:center;color:var(--ink);font-size:14px;font-weight:450;line-height:1.45;overflow-wrap:anywhere}
@keyframes social-load-mail {0%,100%{transform:translate3d(0,0,0) rotate(-12deg);opacity:.92}36%,55%{transform:translate3d(24px,12px,0) rotate(0deg) scale(.8);opacity:.32}78%{transform:translate3d(-2px,-2px,0) rotate(-14deg);opacity:1}}
@keyframes social-load-send {0%,100%{transform:translate3d(0,0,0) rotate(12deg);opacity:.92}36%,55%{transform:translate3d(-24px,-12px,0) rotate(0deg) scale(.8);opacity:.32}78%{transform:translate3d(2px,2px,0) rotate(14deg);opacity:1}}
@keyframes social-load-inbox {0%,100%{transform:translate3d(0,0,0) scale(1)}35%{transform:translate3d(0,-2px,0) scale(1.045)}55%{transform:translate3d(0,-3px,0) scale(1.045)}78%{transform:translate3d(0,1px,0) scale(.98)}}
@keyframes social-load-glint {0%,25%{transform:translateX(0) skewX(-22deg);opacity:0}38%{opacity:1}67%,100%{transform:translateX(460%) skewX(-22deg);opacity:0}}
@keyframes social-load-spark {0%,23%,78%,100%{opacity:.25;transform:scale(.78)}40%,58%{opacity:1;transform:scale(1)}}
/* Preserve the chat list skeleton and give its empty desktop pane the same motif. */
html:root.social-crystal body .social-chat-loading-preview {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}
html:root.social-crystal body .social-chat-skeleton-signal {display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:var(--control-bg)}
/* Small inline waits share the same rhythm, not the old pill-and-droplet. */
html:root.social-crystal body .loading-orbit,
html:root.social-crystal body .cw-record-wait .loading-orbit,
html:root.social-crystal body .transcription-pending .loading-orbit {box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;width:28px;min-width:28px;height:16px;flex:0 0 28px;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--accent-display)}
html:root.social-crystal body .loading-orbit::before,
html:root.social-crystal body .loading-orbit::after,
html:root.social-crystal body .loading-orbit i,
html:root.social-crystal body .transcription-pending .loading-orbit i {content:"";position:static;display:block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:none;opacity:.65;animation:social-load-dot 1.25s ease-in-out infinite}
html:root.social-crystal body .loading-orbit i {animation-delay:.14s}
html:root.social-crystal body .loading-orbit::after {animation-delay:.28s}
@keyframes social-load-dot {0%,65%,100%{opacity:.4;transform:translateY(0)}32%{opacity:1;transform:translateY(-3px)}}
html:root.social-crystal body .social-load-error {text-align:center;color:var(--muted)}
@media(max-width:760px) {
 html:root.social-crystal body .social-chat-loading-preview{display:none}
 html:root.social-crystal body .loading-state.social-loader{min-height:164px;max-width:100%;margin:8px 0;padding:12px 16px 16px}
 html:root.social-crystal body .social-chat .conversation>.social-loader{min-height:0;margin:0}
}
@media(prefers-reduced-motion:reduce) {
 html:root.social-crystal body .social-load-tile,
 html:root.social-crystal body .social-load-spark,
 html:root.social-crystal body .social-load-inbox::after,
 html:root.social-crystal body .loading-orbit::before,
 html:root.social-crystal body .loading-orbit::after,
 html:root.social-crystal body .loading-orbit i {animation:none!important}
}
@media(forced-colors:active) {
 html:root.social-crystal body .social-load-tile{background:Canvas!important;border:1px solid CanvasText!important;color:CanvasText!important;box-shadow:none!important}
 html:root.social-crystal body .social-load-track{border-color:CanvasText}
 html:root.social-crystal body .social-load-label{color:CanvasText}
}

/* Match the outer navigation gutter to the conversation splitters. */
@media(min-width:761px){
 html:root.social-crystal body #app>.app.is-chats>.layout{column-gap:14px}
 html:root.social-crystal body #app>.app.is-chats .chat-workspace.triple[data-layout="full"]:not(.hide-details){grid-template-columns:var(--cw-left,270px) 14px minmax(0,1fr) 14px var(--cw-right,290px);gap:0}
 html:root.social-crystal body #app>.app.is-chats .chat-workspace.triple[data-layout="dual"]{grid-template-columns:var(--cw-left,250px) 14px minmax(0,1fr);gap:0}
 html:root.social-crystal body #app>.app.is-chats .social-chat-loading-shell{gap:14px}
}
