:root {
  --cf-accent: #16a085;
  --cf-accent-strong: #0d826f;
  --cf-accent-soft: #e6f8f3;
  --cf-bg: #f5f7fa;
  --cf-surface: #ffffff;
  --cf-surface-2: #f7f9fb;
  --cf-surface-3: #edf2f5;
  --cf-text: #15252b;
  --cf-muted: #6d7c82;
  --cf-border: #e3eaed;
  --cf-danger: #d64545;
  --cf-warning: #e3a008;
  --cf-shadow: 0 18px 55px rgba(18, 48, 58, .12);
  --cf-radius: 18px;
  --cf-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cf-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[data-cf-theme="dark"] {
  color-scheme: dark;
  --cf-accent: #23c8a7;
  --cf-accent-strong: #57dfc4;
  --cf-accent-soft: #133c36;
  --cf-bg: #0d1518;
  --cf-surface: #121f23;
  --cf-surface-2: #18282d;
  --cf-surface-3: #21343a;
  --cf-text: #edf8f6;
  --cf-muted: #9db0b4;
  --cf-border: #263a40;
  --cf-shadow: 0 18px 55px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cf-bg); color: var(--cf-text); font-family: var(--cf-font); -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-family: var(--cf-font); }
button, input, textarea, select { font-size: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; }
a { color: var(--cf-accent-strong); text-decoration: none; }
a:hover { text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--cf-accent) 45%, transparent); outline-offset: 2px; }

.cf-skip-link { position: fixed; z-index: 99999; top: 8px; left: 8px; padding: 10px 16px; border-radius: 8px; background: var(--cf-text); color: var(--cf-surface); transform: translateY(-150%); }
.cf-skip-link:focus { transform: translateY(0); }
.cf-site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--cf-border); background: color-mix(in srgb, var(--cf-surface) 88%, transparent); backdrop-filter: blur(18px); }
.cf-site-header__inner, .cf-site-footer__inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); min-height: 72px; margin: 0 auto; }
.cf-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--cf-text); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.cf-brand .custom-logo { display: block; width: 40px; height: 40px; object-fit: contain; }
.cf-brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg, var(--cf-accent), var(--cf-accent-strong)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--cf-accent) 30%, transparent); }
.cf-brand-mark svg { width: 23px; }
.cf-site-nav, .cf-site-nav .menu { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.cf-site-nav a { color: var(--cf-text); font-size: 14px; font-weight: 650; }
.cf-site-footer { border-top: 1px solid var(--cf-border); background: var(--cf-surface); color: var(--cf-muted); }
.cf-site-footer__inner { min-height: 88px; }
.cf-site-footer p { margin: 0; }
.cf-site-footer .menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

.cf-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.cf-button:hover { transform: translateY(-2px); }
.cf-button--primary { background: linear-gradient(135deg, var(--cf-accent), var(--cf-accent-strong)); color: #fff; box-shadow: 0 12px 25px color-mix(in srgb, var(--cf-accent) 27%, transparent); }
.cf-button--ghost { border-color: var(--cf-border); background: var(--cf-surface); color: var(--cf-text); }
.cf-button--light { background: #fff; color: #116d60; }
.cf-button--small { min-height: 38px; padding: 0 15px; }
.cf-button--full { width: 100%; }
.cf-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--cf-accent-strong); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

/* Landing page */
.cf-landing { overflow: hidden; }
.cf-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr); gap: 70px; align-items: center; width: min(1180px, calc(100% - 48px)); min-height: 690px; margin: 0 auto; padding: 70px 0; }
.cf-hero h1 { max-width: 720px; margin: 0 0 24px; font-size: clamp(48px, 6vw, 82px); line-height: .99; letter-spacing: -.065em; }
.cf-hero__copy > p { max-width: 620px; margin: 0; color: var(--cf-muted); font-size: 19px; line-height: 1.65; }
.cf-hero__actions { display: flex; gap: 12px; margin: 32px 0 24px; }
.cf-trust-row { display: flex; flex-wrap: wrap; gap: 17px; color: var(--cf-muted); font-size: 12px; font-weight: 650; }
.cf-hero__visual { position: relative; }
.cf-hero__visual::before { content: ""; position: absolute; inset: -90px; z-index: -1; background: radial-gradient(circle, color-mix(in srgb, var(--cf-accent) 22%, transparent), transparent 64%); }
.cf-preview-window { display: grid; grid-template-columns: 38% 62%; min-height: 480px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--cf-border) 70%, transparent); border-radius: 30px; background: var(--cf-surface); box-shadow: 0 35px 90px rgba(18, 81, 74, .21); transform: perspective(1100px) rotateY(-6deg) rotateX(2deg); }
.cf-preview-sidebar { padding: 80px 24px 30px; border-right: 1px solid var(--cf-border); background: var(--cf-surface-2); }
.cf-preview-sidebar i { display: block; height: 58px; margin-bottom: 16px; border-radius: 16px; background: linear-gradient(90deg, var(--cf-surface-3), color-mix(in srgb, var(--cf-accent) 12%, var(--cf-surface))); }
.cf-preview-sidebar i:first-child { background: var(--cf-accent-soft); }
.cf-preview-chat { display: flex; flex-direction: column; background: radial-gradient(circle at 40% 10%, color-mix(in srgb, var(--cf-accent) 8%, transparent), transparent 40%), var(--cf-surface); }
.cf-preview-head { display: flex; gap: 14px; align-items: center; height: 76px; padding: 16px 22px; border-bottom: 1px solid var(--cf-border); }
.cf-preview-head span { width: 42px; height: 42px; border-radius: 50%; background: var(--cf-accent); }
.cf-preview-head b { width: 35%; height: 10px; border-radius: 9px; background: var(--cf-surface-3); }
.cf-preview-bubbles { flex: 1; padding: 40px 24px; }
.cf-preview-bubbles p { width: 64%; height: 48px; margin: 0 0 22px; border-radius: 10px 18px 18px 18px; background: var(--cf-surface-3); animation: cfMessageIn .6s both; }
.cf-preview-bubbles p:nth-child(2), .cf-preview-bubbles p:nth-child(4) { width: 58%; margin-left: auto; border-radius: 18px 10px 18px 18px; background: var(--cf-accent); animation-delay: .18s; }
.cf-preview-bubbles p:nth-child(3) { width: 44%; animation-delay: .34s; }
.cf-preview-compose { height: 46px; margin: 0 20px 20px; border: 1px solid var(--cf-border); border-radius: 16px; background: var(--cf-surface); }
.cf-feature-section { padding: 100px max(24px, calc((100% - 1180px)/2)); background: var(--cf-surface); }
.cf-section-heading { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.cf-section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
.cf-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cf-feature-grid article { padding: 30px; border: 1px solid var(--cf-border); border-radius: 22px; background: var(--cf-surface-2); transition: transform .2s ease, border-color .2s ease; }
.cf-feature-grid article:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--cf-accent) 45%, var(--cf-border)); }
.cf-feature-grid article > span { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 22px; border-radius: 14px; background: var(--cf-accent-soft); color: var(--cf-accent-strong); font-size: 20px; }
.cf-feature-grid h3 { margin: 0 0 10px; font-size: 18px; }
.cf-feature-grid p { margin: 0; color: var(--cf-muted); line-height: 1.65; }
.cf-landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: min(1180px, calc(100% - 48px)); margin: 90px auto; padding: 55px 60px; border-radius: 28px; background: linear-gradient(135deg, #0c776a, #16a085 65%, #21bfa0); color: #fff; box-shadow: 0 30px 70px rgba(10, 121, 105, .22); }
.cf-landing-cta h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.035em; }
.cf-landing-cta p { margin: 0; opacity: .82; }

/* Content and account pages */
.cf-content-shell { width: min(880px, calc(100% - 40px)); min-height: 70vh; margin: 70px auto; }
.cf-entry { padding: 40px; border: 1px solid var(--cf-border); border-radius: var(--cf-radius); background: var(--cf-surface); box-shadow: var(--cf-shadow); }
.cf-entry + .cf-entry { margin-top: 25px; }
.cf-entry h1 { margin-top: 0; font-size: 42px; letter-spacing: -.04em; }
.cf-entry h1 a { color: var(--cf-text); }
.cf-entry-meta { color: var(--cf-muted); }
.cf-entry-content { font-size: 17px; line-height: 1.75; }
.cf-entry-content img { border-radius: 14px; }
.cf-error-page { display: grid; place-items: center; align-content: center; min-height: 72vh; padding: 40px 20px; text-align: center; }
.cf-error-page > span { color: var(--cf-accent); font-size: 86px; font-weight: 900; letter-spacing: -.07em; }
.cf-error-page h1 { margin: 0 0 10px; font-size: 38px; }
.cf-error-page p { margin: 0 0 28px; color: var(--cf-muted); }

.cf-auth-page { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 55px 20px; background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--cf-accent) 14%, transparent), transparent 30%), radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--cf-accent) 10%, transparent), transparent 30%), var(--cf-bg); }
.cf-auth-card { width: min(460px, 100%); padding: 42px; border: 1px solid var(--cf-border); border-radius: 25px; background: var(--cf-surface); box-shadow: var(--cf-shadow); }
.cf-auth-card--wide { width: min(610px, 100%); }
.cf-auth-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 32px; font-size: 19px; }
.cf-auth-brand .cf-brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.cf-auth-card header { margin-bottom: 28px; }
.cf-auth-card h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.04em; }
.cf-auth-card header p { margin: 0; color: var(--cf-muted); }
.cf-auth-form, .cf-settings-form { display: grid; gap: 19px; }
.cf-auth-form label, .cf-settings-form label, .cf-modal label { display: grid; gap: 8px; color: var(--cf-text); font-size: 13px; font-weight: 700; }
.cf-auth-form input:not([type="checkbox"]), .cf-settings-form input:not([type="checkbox"]), .cf-settings-form textarea, .cf-settings-form select, .cf-modal input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--cf-border); border-radius: 11px; background: var(--cf-surface-2); color: var(--cf-text); outline: none; }
.cf-auth-form input:focus, .cf-settings-form input:focus, .cf-settings-form textarea:focus, .cf-settings-form select:focus, .cf-modal input:focus { border-color: var(--cf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf-accent) 15%, transparent); }
.cf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-password-field { position: relative; display: block; }
.cf-password-field button { position: absolute; top: 50%; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; transform: translateY(-50%); cursor: pointer; }
.cf-auth-options { display: flex; justify-content: space-between; color: var(--cf-muted); font-size: 13px; }
.cf-auth-options label, .cf-terms { display: flex; grid: none; align-items: center; gap: 7px; }
.cf-form-help { margin: -3px 0 0; color: var(--cf-muted); font-size: 13px; line-height: 1.55; }
.cf-auth-switch { margin: 25px 0 0; color: var(--cf-muted); text-align: center; }
.cf-form-error, .cf-form-success { padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.cf-form-error { margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--cf-danger) 35%, transparent); background: color-mix(in srgb, var(--cf-danger) 9%, var(--cf-surface)); color: var(--cf-danger); }
.cf-form-success { border: 1px solid color-mix(in srgb, var(--cf-accent) 35%, transparent); background: var(--cf-accent-soft); color: var(--cf-accent-strong); }
.cf-settings-page { min-height: 75vh; padding: 60px 20px; }
.cf-settings-shell { width: min(820px, 100%); margin: auto; }
.cf-settings-shell > header { margin-bottom: 35px; }
.cf-settings-shell h1 { margin: 0 0 10px; font-size: 43px; letter-spacing: -.045em; }
.cf-settings-shell > header p { color: var(--cf-muted); }
.cf-settings-card { display: grid; gap: 18px; padding: 30px; border: 1px solid var(--cf-border); border-radius: 18px; background: var(--cf-surface); }
.cf-settings-card h2 { margin: 0 0 5px; }
.cf-settings-avatar { display: flex; gap: 18px; align-items: center; }
.cf-settings-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.cf-settings-avatar p { max-width: 400px; color: var(--cf-muted); font-size: 13px; }
.cf-switch-row { display: flex !important; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--cf-border); }
.cf-switch-row span { display: grid; gap: 4px; }
.cf-switch-row small { color: var(--cf-muted); font-weight: 400; }
.cf-switch-row input { width: 42px; height: 22px; accent-color: var(--cf-accent); }

/* Chat application */
.cf-chat-app-page .cf-site-header, .cf-chat-app-page .cf-site-footer { display: none; }
.cf-chat-app-page { overflow: hidden; }
.cf-chat-page-main { height: 100vh; height: 100dvh; }
.cf-app { position: relative; display: grid; grid-template-columns: 350px minmax(0, 1fr); height: 100%; overflow: hidden; background: var(--cf-surface); }
.cf-app.is-info-open { grid-template-columns: 350px minmax(0, 1fr) 330px; }
.cf-sidebar { z-index: 6; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--cf-border); background: var(--cf-surface); }
.cf-sidebar__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 82px; padding: 16px 18px; }
.cf-profile-mini { display: flex; gap: 11px; align-items: center; min-width: 0; color: var(--cf-text); }
.cf-profile-mini .cf-avatar-wrap { width: 46px; height: 46px; }
.cf-profile-mini > span:last-child { display: grid; min-width: 0; }
.cf-profile-mini strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cf-profile-mini small { color: var(--cf-muted); font-size: 11px; }
.cf-icon-row, .cf-conversation-actions { display: flex; gap: 5px; }
.cf-icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--cf-muted); cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.cf-icon-button:hover, .cf-icon-button.is-active { background: var(--cf-accent-soft); color: var(--cf-accent-strong); transform: translateY(-1px); }
.cf-search { position: relative; margin: 0 16px 13px; }
.cf-search svg { position: absolute; top: 50%; left: 13px; width: 18px; color: var(--cf-muted); transform: translateY(-50%); pointer-events: none; }
.cf-search input { width: 100%; height: 43px; padding: 0 38px; border: 1px solid transparent; border-radius: 13px; background: var(--cf-surface-2); color: var(--cf-text); outline: none; }
.cf-search input:focus { border-color: color-mix(in srgb, var(--cf-accent) 45%, var(--cf-border)); background: var(--cf-surface); }
.cf-mini-spinner { position: absolute; top: 14px; right: 14px; width: 15px; height: 15px; border: 2px solid var(--cf-border); border-top-color: var(--cf-accent); border-radius: 50%; animation: cfSpin .7s linear infinite; }
.cf-sidebar-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 16px; border-bottom: 1px solid var(--cf-border); }
.cf-sidebar-tabs button { position: relative; min-height: 43px; padding: 0 6px; border: 0; background: transparent; color: var(--cf-muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.cf-sidebar-tabs button::after { content: ""; position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; border-radius: 2px; background: transparent; }
.cf-sidebar-tabs button.is-active { color: var(--cf-accent-strong); }
.cf-sidebar-tabs button.is-active::after { background: var(--cf-accent); animation: cfTabUnderline .25s ease both; }
.cf-sidebar-tabs button span { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 3px; padding: 0 4px; border-radius: 9px; background: var(--cf-danger); color: #fff; font-size: 9px; }
.cf-sidebar-panels { position: relative; flex: 1; min-height: 0; }
.cf-sidebar-panel { position: absolute; inset: 0; overflow: auto; opacity: 0; transform: translateX(14px); pointer-events: none; transition: opacity .2s, transform .2s; }
.cf-sidebar-panel.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.cf-list { padding: 8px; }
.cf-list-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 70px; padding: 9px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--cf-text); text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.cf-list-item:hover { background: var(--cf-surface-2); }
.cf-list-item.is-active { background: var(--cf-accent-soft); }
.cf-list-item.is-archived { opacity: .72; }
.cf-list-item.has-unread strong { font-weight: 850; }
.cf-avatar-wrap { position: relative; flex: 0 0 auto; display: block; width: 49px; height: 49px; }
.cf-avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; background: var(--cf-surface-3); object-fit: cover; }
.cf-status-dot { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border: 2px solid var(--cf-surface); border-radius: 50%; background: #a4afb2; }
.cf-status-dot.is-online { background: #19bd76; box-shadow: 0 0 0 3px rgba(25, 189, 118, .12); }
.cf-status-dot.is-away { background: #f0ae27; }
.cf-status-dot.is-busy { background: #e85555; }
.cf-list-item__copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.cf-list-item__copy strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.cf-list-item__copy small { overflow: hidden; color: var(--cf-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.cf-list-item__meta { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; min-width: 36px; }
.cf-list-item__meta time { color: var(--cf-muted); font-size: 10px; }
.cf-list-item__meta b { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--cf-accent); color: #fff; font-size: 9px; }
.cf-person-actions { display: flex; gap: 4px; }
.cf-person-actions button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: var(--cf-surface-3); cursor: pointer; }
.cf-person-actions button:hover { background: var(--cf-accent); color: #fff; }
.cf-request-actions { display: flex; gap: 6px; }
.cf-request-actions button { padding: 5px 9px; border: 0; border-radius: 8px; background: var(--cf-accent); color: #fff; font-size: 10px; cursor: pointer; }
.cf-request-actions button:last-child { background: var(--cf-surface-3); color: var(--cf-text); }
.cf-list-skeleton { padding: 4px; }
.cf-list-skeleton i { display: block; height: 61px; margin: 8px 0; border-radius: 14px; background: linear-gradient(100deg, var(--cf-surface-2) 20%, var(--cf-surface-3) 40%, var(--cf-surface-2) 60%); background-size: 200% 100%; animation: cfShimmer 1.4s infinite; }
.cf-sidebar__footer { display: flex; justify-content: space-around; min-height: 53px; padding: 7px; border-top: 1px solid var(--cf-border); }
.cf-sidebar__footer a { display: grid; place-items: center; gap: 1px; color: var(--cf-muted); font-size: 15px; }
.cf-sidebar__footer span { font-size: 9px; }

.cf-conversation-area { position: relative; min-width: 0; min-height: 0; background: var(--cf-surface-2); }
.cf-conversation-loader { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; overflow: hidden; background: #fff; opacity: 0; transition: opacity .16s ease; }
.cf-conversation-loader[hidden] { display: none !important; }
.cf-conversation-loader.is-visible { opacity: 1; }
.cf-conversation-loader__content { display: grid; justify-items: center; gap: 5px; transform: translateY(-2%); text-align: center; }
.cf-conversation-loader__gif { position: relative; display: block; width: 118px; height: 118px; overflow: hidden; }
.cf-conversation-loader__gif img { position: absolute; top: 50%; left: 50%; width: 420px; max-width: none; height: auto; transform: translate(-50%, -50%); pointer-events: none; user-select: none; }
.cf-conversation-loader strong { color: #009b83; font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.cf-app.is-conversation-loading .cf-conversation-header,
.cf-app.is-conversation-loading .cf-composer { pointer-events: none; }
.cf-chat-empty { display: grid; place-items: center; align-content: center; height: 100%; padding: 30px; text-align: center; }
.cf-empty-illustration { position: relative; width: 180px; height: 150px; margin-bottom: 22px; }
.cf-empty-illustration::before, .cf-empty-illustration::after { content: ""; position: absolute; width: 118px; height: 72px; border-radius: 24px 24px 24px 8px; background: var(--cf-surface); box-shadow: var(--cf-shadow); }
.cf-empty-illustration::before { top: 18px; left: 4px; }
.cf-empty-illustration::after { right: 2px; bottom: 10px; border-radius: 24px 24px 8px 24px; background: var(--cf-accent); }
.cf-empty-illustration span { position: absolute; z-index: 2; top: 43px; left: 47px; color: var(--cf-accent); font-size: 27px; animation: cfSoftPulse 2.4s infinite; }
.cf-empty-illustration i { position: absolute; z-index: 3; right: 30px; bottom: 38px; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: -19px 0 #fff, 19px 0 #fff; }
.cf-chat-empty h2 { margin: 0 0 9px; font-size: 26px; letter-spacing: -.035em; }
.cf-chat-empty p { max-width: 430px; margin: 0 0 24px; color: var(--cf-muted); line-height: 1.6; }
.cf-chat-view { position: absolute; inset: 0; display: grid; grid-template-rows: 72px minmax(0, 1fr) auto auto auto; }
.cf-conversation-header { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--cf-border); background: color-mix(in srgb, var(--cf-surface) 94%, transparent); backdrop-filter: blur(12px); }
.cf-chat-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--cf-surface-3); object-fit: cover; }
.cf-chat-heading { flex: 1; min-width: 0; }
.cf-chat-heading h2 { overflow: hidden; margin: 0 0 3px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.cf-chat-heading p { margin: 0; color: var(--cf-muted); font-size: 11px; }
.cf-message-scroller { position: relative; min-height: 0; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; background-color: var(--cf-surface-2); background-image: radial-gradient(color-mix(in srgb, var(--cf-accent) 10%, transparent) .8px, transparent .8px); background-size: 20px 20px; }
.cf-message-list { display: flex; flex-direction: column; width: min(840px, calc(100% - 36px)); min-height: 100%; margin: 0 auto; padding: 24px 0 18px; }
.cf-date-separator { align-self: center; margin: 12px 0 20px; padding: 5px 10px; border: 1px solid var(--cf-border); border-radius: 10px; background: color-mix(in srgb, var(--cf-surface) 90%, transparent); color: var(--cf-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.cf-message { position: relative; display: flex; align-items: flex-end; gap: 7px; max-width: min(76%, 620px); margin-bottom: 9px; }
.cf-message.has-reactions { margin-bottom: 22px; }
.cf-message.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.cf-message.is-theirs { align-self: flex-start; }
.cf-message__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cf-message__content { position: relative; min-width: 56px; padding: 9px 11px 6px; border: 1px solid var(--cf-border); border-radius: 5px 17px 17px 17px; background: var(--cf-surface); box-shadow: 0 2px 7px rgba(25, 48, 54, .04); }
.cf-message.is-mine .cf-message__content { border-color: color-mix(in srgb, var(--cf-accent) 42%, transparent); border-radius: 17px 5px 17px 17px; background: var(--cf-accent-soft); }
.cf-message__name { display: block; margin-bottom: 3px; color: var(--cf-accent-strong); font-size: 10px; }
.cf-message__text { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13.5px; line-height: 1.48; }
.cf-message__text:empty { display: none; }
.cf-message.is-deleted .cf-message__text { color: var(--cf-muted); font-style: italic; }
.cf-message__meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; color: var(--cf-muted); font-size: 8.5px; }
.cf-read-check { color: var(--cf-accent-strong); letter-spacing: -3px; }
.cf-message__reply { margin: -2px -3px 7px; padding: 7px 9px; border-left: 3px solid var(--cf-accent); border-radius: 7px; background: color-mix(in srgb, var(--cf-surface-3) 60%, transparent); color: var(--cf-muted); font-size: 10px; }
.cf-message__attachment { display: block; margin: -5px -7px 7px; overflow: hidden; border-radius: 11px; color: var(--cf-text); }
.cf-message__attachment img, .cf-message__attachment video { display: block; width: min(340px, 100%); max-height: 330px; object-fit: cover; }
.cf-message__attachment audio { width: min(300px, 65vw); }
.cf-file-card { display: flex; gap: 10px; align-items: center; width: min(280px, 70vw); min-width: 0; padding: 12px; background: color-mix(in srgb, var(--cf-surface-3) 60%, transparent); }
.cf-file-card i { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 42px; border-radius: 8px; background: var(--cf-accent); color: #fff; font-style: normal; }
.cf-file-card i .cf-ui-icon { width: 21px; height: 21px; }
.cf-file-card span { display: grid; min-width: 0; }
.cf-file-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cf-file-card small { color: var(--cf-muted); font-size: 9px; }
.cf-message__actions { position: absolute; z-index: 5; top: -24px; right: 4px; display: none; gap: 2px; padding: 3px; border: 1px solid var(--cf-border); border-radius: 9px; background: var(--cf-surface); box-shadow: 0 5px 16px rgba(0, 0, 0, .12); }
.cf-message.is-theirs .cf-message__actions { right: auto; left: 4px; }
.cf-message:hover .cf-message__actions, .cf-message:focus-within .cf-message__actions { display: flex; animation: cfContextPop .15s both; }
.cf-message__actions button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--cf-muted); font-size: 11px; cursor: pointer; }
.cf-message__actions button:hover { background: var(--cf-surface-3); color: var(--cf-text); }
.cf-reaction-picker { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 5px; border: 1px solid var(--cf-border); border-radius: 18px; background: var(--cf-surface); box-shadow: var(--cf-shadow); animation: cfReactionPop .2s both; }
.cf-message.is-theirs .cf-reaction-picker { right: auto; left: 0; }
.cf-reaction-picker button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 18px; cursor: pointer; transition: transform .15s, background .15s; }
.cf-reaction-picker button:hover, .cf-reaction-picker button:focus-visible, .cf-reaction-picker button.is-selected { background: var(--cf-accent-soft); outline: none; }
.cf-reaction-picker button.is-selected { box-shadow: inset 0 0 0 1px var(--cf-accent); }
.cf-reaction-picker button:hover { transform: scale(1.3); }
.cf-message__reactions { position: absolute; right: 6px; bottom: -14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: calc(100% - 12px); }
.cf-message.is-theirs .cf-message__reactions { right: auto; left: 6px; justify-content: flex-start; }
.cf-message__reaction { min-height: 23px; padding: 2px 7px; border: 1px solid var(--cf-border); border-radius: 12px; background: var(--cf-surface); color: var(--cf-text); font-size: 10px; line-height: 1; box-shadow: 0 2px 7px rgba(0,0,0,.08); cursor: pointer; }
.cf-message__reaction:hover, .cf-message__reaction:focus-visible { transform: translateY(-1px); border-color: var(--cf-accent); outline: none; }
.cf-message__reaction.is-mine { border-color: var(--cf-accent); }
.cf-load-older { display: block; margin: 12px auto 0; padding: 6px 12px; border: 1px solid var(--cf-border); border-radius: 10px; background: var(--cf-surface); color: var(--cf-muted); font-size: 10px; cursor: pointer; }
.cf-scroll-bottom { position: absolute; z-index: 4; right: 20px; bottom: 16px; width: 40px; height: 40px; border: 1px solid var(--cf-border); border-radius: 50%; background: var(--cf-surface); box-shadow: var(--cf-shadow); color: var(--cf-accent-strong); cursor: pointer; animation: cfScrollBounce 1.5s infinite; }
.cf-scroll-bottom span { position: absolute; top: -7px; right: -5px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--cf-danger); color: #fff; font-size: 9px; }
.cf-typing { display: flex; gap: 7px; align-items: center; min-height: 29px; padding: 3px 22px; background: var(--cf-surface-2); color: var(--cf-muted); font-size: 10px; }
.cf-typing > span { display: flex; gap: 2px; padding: 5px 7px; border-radius: 10px; background: var(--cf-surface-3); }
.cf-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--cf-muted); animation: cfTypingDot 1.1s infinite; }
.cf-typing i:nth-child(2) { animation-delay: .16s; }.cf-typing i:nth-child(3) { animation-delay: .32s; }
.cf-typing em { font-style: normal; }
.cf-reply-bar, .cf-upload-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; border-top: 1px solid var(--cf-border); background: var(--cf-surface); animation: cfReplySlide .18s both; }
.cf-reply-bar > span { display: grid; flex: 1; min-width: 0; padding-left: 10px; border-left: 3px solid var(--cf-accent); }
.cf-reply-bar small { color: var(--cf-accent-strong); font-size: 9px; }.cf-reply-bar strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cf-reply-bar button, .cf-upload-bar button { border: 0; background: transparent; color: var(--cf-muted); font-size: 20px; cursor: pointer; }
.cf-upload-bar { display: grid; grid-template-columns: 1fr minmax(100px, 35%) auto; font-size: 10px; }
.cf-upload-bar progress { width: 100%; accent-color: var(--cf-accent); }
.cf-composer { position: relative; display: flex; align-items: flex-end; gap: 8px; min-height: 67px; padding: 10px 16px calc(10px + var(--cf-safe-bottom)); border-top: 1px solid var(--cf-border); background: var(--cf-surface); }
.cf-composer > .cf-icon-button { margin-bottom: 3px; }
.cf-composer-input { position: relative; display: flex; flex: 1; align-items: flex-end; min-width: 0; border: 1px solid var(--cf-border); border-radius: 17px; background: var(--cf-surface-2); }
.cf-composer textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 12px 42px 11px 14px; resize: none; overflow-y: auto; border: 0; background: transparent; color: var(--cf-text); line-height: 1.4; outline: none; }
.cf-composer-input > button { position: absolute; right: 8px; bottom: 7px; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--cf-muted); font-size: 21px; cursor: pointer; }
.cf-send-button { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; margin-bottom: 0; padding: 0; border: 0; border-radius: 14px; background: var(--cf-accent); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--cf-accent) 30%, transparent); cursor: pointer; transition: transform .15s, filter .15s; }
.cf-send-button:hover { transform: translateY(-2px) rotate(-3deg); filter: brightness(1.05); }
.cf-send-button:disabled { opacity: .55; cursor: wait; }
.cf-emoji-panel { position: absolute; z-index: 20; right: 18px; bottom: 72px; width: min(360px, calc(100% - 36px)); max-height: 340px; overflow: hidden; border: 1px solid var(--cf-border); border-radius: 17px; background: var(--cf-surface); box-shadow: var(--cf-shadow); animation: cfEmojiPanel .23s both; }
.cf-emoji-head { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid var(--cf-border); }
.cf-emoji-head input { width: 145px; height: 32px; padding: 0 10px; border: 1px solid var(--cf-border); border-radius: 9px; background: var(--cf-surface-2); color: var(--cf-text); }
.cf-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; max-height: 275px; overflow: auto; padding: 10px; }
.cf-emoji-grid button { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 22px; cursor: pointer; transition: transform .12s, background .12s; }
.cf-emoji-grid button:hover { background: var(--cf-surface-3); transform: scale(1.18); }
.cf-connection-banner { position: absolute; z-index: 30; top: 77px; left: 50%; display: flex; gap: 8px; align-items: center; padding: 8px 13px; border-radius: 12px; background: #3f4a4f; color: #fff; font-size: 10px; box-shadow: var(--cf-shadow); transform: translateX(-50%); }
.cf-connection-banner span { width: 8px; height: 8px; border-radius: 50%; background: #ffbd4a; animation: cfConnectionPulse 1s infinite; }

.cf-info-panel { z-index: 7; display: none; min-width: 0; overflow-y: auto; border-left: 1px solid var(--cf-border); background: var(--cf-surface); }
.cf-app.is-info-open .cf-info-panel { display: block; animation: cfInfoSlide .23s ease both; }
.cf-info-panel > header { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 18px; border-bottom: 1px solid var(--cf-border); }
.cf-info-panel > header h2 { margin: 0; font-size: 15px; }
.cf-info-profile { padding: 28px 20px; border-bottom: 1px solid var(--cf-border); text-align: center; }
.cf-info-profile img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px color-mix(in srgb, var(--cf-accent) 18%, transparent); }
.cf-info-profile h3 { margin: 13px 0 4px; }.cf-info-profile p { margin: 0; color: var(--cf-muted); font-size: 11px; }
.cf-info-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 15px; border-bottom: 1px solid var(--cf-border); }
.cf-info-actions button { display: grid; place-items: center; gap: 5px; min-height: 66px; padding: 7px; border: 0; border-radius: 11px; background: var(--cf-surface-2); cursor: pointer; }
.cf-info-actions span { font-size: 9px; }
.cf-info-panel > section { padding: 18px; border-bottom: 1px solid var(--cf-border); }
.cf-info-panel > section h3 { margin: 0 0 13px; color: var(--cf-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.cf-participant-list { display: grid; gap: 9px; }
.cf-participant { display: flex; gap: 9px; align-items: center; }
.cf-participant img { width: 32px; height: 32px; border-radius: 50%; }.cf-participant span { display: grid; }.cf-participant strong { font-size: 11px; }.cf-participant small { color: var(--cf-muted); font-size: 9px; }
.cf-shared-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cf-shared-media p { grid-column: 1/-1; color: var(--cf-muted); font-size: 11px; }
.cf-shared-media a { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--cf-surface-3); }.cf-shared-media img { width: 100%; height: 100%; object-fit: cover; }
.cf-danger-actions { display: grid; gap: 8px; padding: 18px; }
.cf-danger-actions button { min-height: 40px; border: 1px solid color-mix(in srgb, var(--cf-danger) 25%, var(--cf-border)); border-radius: 10px; background: transparent; color: var(--cf-danger); cursor: pointer; }

.cf-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.cf-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 14, 17, .62); backdrop-filter: blur(5px); animation: cfModalFade .18s both; }
.cf-modal__card { position: relative; z-index: 1; width: min(520px, 100%); max-height: 85vh; overflow: auto; padding: 25px; border: 1px solid var(--cf-border); border-radius: 22px; background: var(--cf-surface); box-shadow: var(--cf-shadow); animation: cfModalIn .23s both; }
.cf-modal__card > header { display: flex; justify-content: space-between; margin-bottom: 22px; }.cf-modal__card h2 { margin: 0; }.cf-modal__card form { display: grid; gap: 16px; }
.cf-modal-members { display: grid; max-height: 230px; overflow: auto; border: 1px solid var(--cf-border); border-radius: 12px; }
.cf-modal-member { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid var(--cf-border); font-size: 12px; }.cf-modal-member:last-child { border-bottom: 0; }.cf-modal-member img { width: 34px; height: 34px; border-radius: 50%; }.cf-modal-member input { margin-left: auto; width: 18px !important; min-height: auto !important; }
.cf-toast-region { position: fixed; z-index: 2000; top: 18px; right: 18px; display: grid; gap: 8px; width: min(340px, calc(100% - 36px)); pointer-events: none; }
.cf-toast { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--cf-border); border-radius: 13px; background: var(--cf-surface); box-shadow: var(--cf-shadow); color: var(--cf-text); font-size: 12px; animation: cfToastIn .25s both; }
.cf-toast.is-error { border-color: color-mix(in srgb, var(--cf-danger) 35%, var(--cf-border)); }.cf-toast.is-error i { background: var(--cf-danger); }.cf-toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--cf-accent); }
.cf-mobile-only { display: none; }

/* Responsive layouts */
@media (max-width: 1180px) {
  .cf-app, .cf-app.is-info-open { grid-template-columns: 330px minmax(0, 1fr); }
  .cf-info-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; box-shadow: -20px 0 50px rgba(0,0,0,.15); }
  .cf-hero { grid-template-columns: 1fr 1fr; gap: 35px; }.cf-preview-window { min-height: 410px; }
}
@media (max-width: 900px) {
  .cf-site-nav > a:not(.cf-button), .cf-site-nav .menu { display: none; }
  .cf-hero { grid-template-columns: 1fr; padding: 85px 0; text-align: center; }.cf-hero__copy > p { margin-inline: auto; }.cf-hero__actions, .cf-trust-row { justify-content: center; }.cf-hero__visual { width: min(680px, 100%); margin: auto; }.cf-preview-window { transform: none; }
  .cf-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-landing-cta { padding: 40px; }
}
@media (max-width: 767px) {
  .cf-site-header__inner, .cf-site-footer__inner { width: min(100% - 28px, 1180px); }.cf-site-footer__inner { flex-direction: column; justify-content: center; gap: 10px; }
  .cf-hero { width: min(100% - 30px, 1180px); min-height: auto; padding: 65px 0; }.cf-hero h1 { font-size: clamp(42px, 14vw, 62px); }.cf-hero__copy > p { font-size: 16px; }.cf-preview-window { grid-template-columns: 30% 70%; min-height: 330px; border-radius: 20px; }.cf-preview-sidebar { padding: 65px 12px 20px; }.cf-preview-sidebar i { height: 42px; }.cf-preview-bubbles { padding: 25px 16px; }.cf-feature-section { padding-block: 72px; }.cf-feature-grid { grid-template-columns: 1fr; }.cf-landing-cta { flex-direction: column; width: calc(100% - 30px); margin: 55px auto; padding: 34px 25px; text-align: center; }.cf-landing-cta h2 { font-size: 28px; }
  .cf-auth-card { padding: 28px 22px; }.cf-form-grid { grid-template-columns: 1fr; }.cf-settings-shell h1 { font-size: 36px; }.cf-settings-card { padding: 22px; }
  .cf-app, .cf-app.is-info-open { display: block; }
  .cf-sidebar { position: absolute; inset: 0; width: 100%; border: 0; transition: transform .26s cubic-bezier(.2,.75,.2,1); }
  .cf-conversation-area { position: absolute; inset: 0; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.75,.2,1); }
  .cf-app.has-conversation .cf-sidebar { transform: translateX(-28%); pointer-events: none; }
  .cf-app.has-conversation .cf-conversation-area { z-index: 8; transform: translateX(0); }
  .cf-mobile-only { display: inline-grid; }.cf-desktop-only { display: none; }
  .cf-conversation-header { padding-inline: 8px 12px; }.cf-chat-avatar { width: 40px; height: 40px; }.cf-conversation-actions .cf-icon-button { width: 34px; }
  .cf-message-list { width: calc(100% - 20px); padding-top: 16px; }.cf-message { max-width: 90%; }.cf-message__avatar { display: none; }.cf-message__text { font-size: 13px; }.cf-message__attachment img, .cf-message__attachment video { max-height: 280px; }.cf-file-card { width: min(250px, 72vw); }.cf-message__actions { top: -27px; }
  .cf-composer { padding-inline: 8px; }.cf-composer > .cf-icon-button { width: 34px; }.cf-emoji-panel { right: 8px; bottom: calc(68px + var(--cf-safe-bottom)); width: calc(100% - 16px); }.cf-emoji-grid { grid-template-columns: repeat(8, 1fr); }
  .cf-info-panel { position: fixed; z-index: 100; width: min(92%, 360px); }.cf-info-panel[aria-hidden="false"] { animation: cfInfoSlide .23s both; }
  .cf-toast-region { top: 10px; right: 10px; width: calc(100% - 20px); }
}
@media (max-width: 420px) {
  .cf-emoji-grid { grid-template-columns: repeat(7, 1fr); }.cf-preview-sidebar { display: none; }.cf-preview-window { grid-template-columns: 1fr; }.cf-trust-row { display: grid; }.cf-hero__actions { flex-direction: column; }.cf-auth-options { gap: 12px; flex-direction: column; }.cf-chat-heading h2 { max-width: 120px; }
}

/* Core animation library: 67 lightweight interface motions. */
.cf-anim-fade-up { animation: cfFadeUp .55s ease both; }.cf-anim-scale-in { animation: cfScaleIn .55s ease both; animation-delay: .08s; }
@keyframes cfFadeIn { from{opacity:0}to{opacity:1} }
@keyframes cfFadeOut { from{opacity:1}to{opacity:0} }
@keyframes cfFadeUp { from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none} }
@keyframes cfFadeDown { from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:none} }
@keyframes cfSlideInLeft { from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none} }
@keyframes cfSlideOutLeft { from{opacity:1;transform:none}to{opacity:0;transform:translateX(-24px)} }
@keyframes cfSlideInRight { from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none} }
@keyframes cfSlideOutRight { from{opacity:1;transform:none}to{opacity:0;transform:translateX(24px)} }
@keyframes cfScaleIn { from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)} }
@keyframes cfScaleOut { from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.94)} }
@keyframes cfMessageIn { from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none} }
@keyframes cfSentSlide { from{opacity:0;transform:translate(15px,9px)}to{opacity:1;transform:none} }
@keyframes cfReceivedSlide { from{opacity:0;transform:translate(-15px,9px)}to{opacity:1;transform:none} }
@keyframes cfTypingDot { 0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1} }
@keyframes cfOnlinePulse { 0%,100%{box-shadow:0 0 0 0 rgba(25,189,118,.3)}50%{box-shadow:0 0 0 5px rgba(25,189,118,0)} }
@keyframes cfBadgePop { 0%{transform:scale(.4)}70%{transform:scale(1.18)}100%{transform:scale(1)} }
@keyframes cfFriendPop { from{opacity:0;transform:scale(.75) rotate(-5deg)}to{opacity:1;transform:none} }
@keyframes cfEmojiPanel { from{opacity:0;transform:translateY(15px) scale(.97)}to{opacity:1;transform:none} }
@keyframes cfEmojiHover { from{transform:scale(1)}to{transform:scale(1.18)} }
@keyframes cfAttachExpand { from{opacity:0;transform:scaleX(.8);transform-origin:left}to{opacity:1;transform:scaleX(1)} }
@keyframes cfUploadProgress { from{background-position:100% 0}to{background-position:0 0} }
@keyframes cfImageZoom { from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)} }
@keyframes cfVideoFade { from{opacity:.2}to{opacity:1} }
@keyframes cfAudioPulse { 0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)} }
@keyframes cfSearchFade { from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none} }
@keyframes cfSpin { to{transform:rotate(360deg)} }
@keyframes cfContactLift { from{transform:none}to{transform:translateY(-2px)} }
@keyframes cfTabUnderline { from{transform:scaleX(0)}to{transform:scaleX(1)} }
@keyframes cfUnreadPulse { 0%,100%{background:var(--cf-accent-soft)}50%{background:color-mix(in srgb,var(--cf-accent) 22%,var(--cf-surface))} }
@keyframes cfMinimize { to{opacity:0;transform:translateY(80%) scale(.7)} }
@keyframes cfMaximize { from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)} }
@keyframes cfPopout { 0%{transform:scale(.98)}50%{transform:scale(1.02)}100%{transform:scale(1)} }
@keyframes cfModalIn { from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none} }
@keyframes cfModalFade { from{opacity:0}to{opacity:1} }
@keyframes cfToastIn { from{opacity:0;transform:translateX(25px)}to{opacity:1;transform:none} }
@keyframes cfToastOut { to{opacity:0;transform:translateX(25px)} }
@keyframes cfDropdown { from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none} }
@keyframes cfContextPop { from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)} }
@keyframes cfReactionPop { from{opacity:0;transform:translateY(5px) scale(.8)}to{opacity:1;transform:none} }
@keyframes cfReactionBounce { 0%,100%{transform:none}50%{transform:translateY(-4px) scale(1.1)} }
@keyframes cfDeleteFade { to{opacity:.2;transform:scale(.96)} }
@keyframes cfEditFlash { 0%,100%{background:inherit}50%{background:rgba(255,215,80,.24)} }
@keyframes cfReplySlide { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none} }
@keyframes cfReceiptFade { from{opacity:0}to{opacity:1} }
@keyframes cfConnectionPulse { 0%,100%{opacity:.45}50%{opacity:1} }
@keyframes cfReconnectSpin { to{transform:rotate(360deg)} }
@keyframes cfSuccessDraw { from{stroke-dashoffset:28}to{stroke-dashoffset:0} }
@keyframes cfErrorShake { 0%,100%{transform:none}25%{transform:translateX(-5px)}75%{transform:translateX(5px)} }
@keyframes cfThemeRotate { from{transform:rotate(-80deg)}to{transform:rotate(0)} }
@keyframes cfThemeFade { from{filter:brightness(.75)}to{filter:none} }
@keyframes cfProfileFade { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none} }
@keyframes cfAvatarProgress { from{clip-path:inset(100% 0 0)}to{clip-path:inset(0)} }
@keyframes cfMemberAdd { from{opacity:0;transform:scale(.75)}to{opacity:1;transform:scale(1)} }
@keyframes cfMemberRemove { to{opacity:0;transform:translateX(20px)} }
@keyframes cfNotificationPreview { 0%{transform:translateY(-8px);opacity:0}15%,85%{transform:none;opacity:1}100%{transform:translateY(-8px);opacity:0} }
@keyframes cfMobileSwipe { from{transform:translateX(100%)}to{transform:none} }
@keyframes cfAccordion { from{opacity:0;max-height:0}to{opacity:1;max-height:500px} }
@keyframes cfSettingsTab { from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none} }
@keyframes cfShimmer { to{background-position:-200% 0} }
@keyframes cfInfiniteSpin { to{transform:rotate(360deg)} }
@keyframes cfScrollBounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(3px)} }
@keyframes cfDivider { from{opacity:0;transform:scaleX(.5)}to{opacity:1;transform:scaleX(1)} }
@keyframes cfRecordingPulse { 0%,100%{box-shadow:0 0 0 0 rgba(214,69,69,.2)}50%{box-shadow:0 0 0 7px rgba(214,69,69,0)} }
@keyframes cfVoiceProgress { from{transform:scaleX(0);transform-origin:left}to{transform:scaleX(1);transform-origin:left} }
@keyframes cfInvite { 0%{transform:scale(.85);opacity:0}70%{transform:scale(1.04);opacity:1}100%{transform:scale(1)} }
@keyframes cfInfoSlide { from{opacity:0;transform:translateX(25px)}to{opacity:1;transform:none} }
@keyframes cfSoftPulse { 0%,100%{transform:scale(1);opacity:.65}50%{transform:scale(1.12);opacity:1} }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.cf-no-motion *, .cf-no-motion *::before, .cf-no-motion *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

.cf-hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Chatrionix 1.2 private messaging and SVG icon refinements */
.cf-ui-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.cf-list-item__copy strong { display: flex; align-items: center; gap: 6px; }
.cf-list-item__copy strong > .cf-ui-icon { width: 14px; height: 14px; color: var(--cf-accent-strong); }
.cf-person-actions button { display: inline-grid; place-items: center; color: var(--cf-muted); }
.cf-person-actions button .cf-ui-icon { width: 16px; height: 16px; }
.cf-person-actions button:disabled { cursor: not-allowed; opacity: .5; }
.cf-person-actions button:disabled:hover { background: var(--cf-surface-3); color: var(--cf-muted); }
.cf-request-heading { margin: 14px 10px 6px; color: var(--cf-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cf-request-item { cursor: default; }
.cf-request-actions { flex: 0 0 auto; }
.cf-request-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; padding: 5px 8px; }
.cf-request-actions button .cf-ui-icon { width: 14px; height: 14px; }
.cf-request-actions button span { font-size: 10px; }
.cf-group-invite-item .cf-avatar-wrap img { padding: 8px; object-fit: contain; }
.cf-info-actions.has-invite-action { grid-template-columns: repeat(4, 1fr); }
.cf-info-actions button .cf-ui-icon { width: 21px; height: 21px; }
.cf-sidebar__footer a .cf-ui-icon { width: 20px; height: 20px; }
.cf-empty-illustration span .cf-ui-icon { width: 34px; height: 34px; }
.cf-modal-empty { margin: 0; padding: 18px; color: var(--cf-muted); font-size: 12px; text-align: center; }
#cf-scroll-bottom .cf-ui-icon { width: 20px; height: 20px; }
#cf-cancel-reply .cf-ui-icon,
.cf-upload-bar button .cf-ui-icon { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .cf-request-item { align-items: flex-start; flex-wrap: wrap; }
  .cf-request-actions { width: 100%; padding-left: 64px; }
  .cf-info-actions.has-invite-action { grid-template-columns: repeat(2, 1fr); }
}

/* Chatrionix 1.2.0 SVG alignment refinements */
.cf-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cf-message__actions button .cf-ui-icon {
  width: 14px;
  height: 14px;
}

.cf-read-check .cf-ui-icon {
  width: 16px;
  height: 16px;
}

.cf-password-field button .cf-ui-icon {
  width: 19px;
  height: 19px;
}

@media (hover: none), (pointer: coarse) {
  .cf-message__content { -webkit-tap-highlight-color: transparent; }
  .cf-message__actions { display: flex; opacity: 0; pointer-events: none; transition: opacity .15s; }
  .cf-message:active .cf-message__actions, .cf-message:focus-within .cf-message__actions { opacity: 1; pointer-events: auto; }
}

.cf-settings-avatar { align-items: flex-start; }
.cf-settings-avatar > div { display: grid; gap: 12px; }
.cf-settings-avatar label { display: grid; gap: 8px; }
.cf-switch-row--compact { padding: 10px 0 0; border-top: 1px solid var(--cf-border); }
.cf-theme-toggle__icon { width: 20px; height: 20px; display: block; object-fit: contain; }
