/* Creator Tribe: self-contained, responsive, no font or asset dependencies. */
:root {
    --ct-bg: #f7f6f3;
    --ct-card: #ffffff;
    --ct-text: #262521;
    --ct-muted: #716e68;
    --ct-subtle: #96928a;
    --ct-border: #e9e6e0;
    --ct-soft: #f2f0eb;
    --ct-red: #e52330;
    --ct-red-dark: #c81b27;
    --ct-red-soft: #fff0f1;
    --ct-green: #357b5c;
    --ct-radius: 16px;
    --ct-topbar-height: 78px;
    --ct-tabbar-height: 66px;
    --ct-viewport-height: 100vh; --ct-viewport-height: 100dvh;
    --ct-viewport-offset: 0px;
    --ct-shadow: 0 12px 44px rgb(37 31 22 / 10%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ct-bg); color: var(--ct-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, textarea, select { min-width: 0; color: var(--ct-text); }
input::placeholder, textarea::placeholder { color: var(--ct-subtle); opacity: 1; }
textarea { resize: vertical; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; font-weight: 750; letter-spacing: -.6px; line-height: 1.35; }
h2 { font-size: 17px; font-weight: 700; line-height: 1.5; }
h3 { font-size: 15px; font-weight: 650; line-height: 1.5; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgb(229 35 48 / 40%); outline-offset: 3px; }
button:focus-visible, a:focus-visible { border-radius: 7px; }
.ct-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ct-skip-link { position: fixed; top: -80px; left: 20px; z-index: 1200; padding: 10px 18px; border-radius: 8px; background: var(--ct-red); color: white; }
.ct-skip-link:focus { top: 12px; }
.ct-icon { width: 21px; height: 21px; flex: 0 0 auto; }
.ct-icon-small { width: 16px; height: 16px; }
.ct-icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--ct-muted); flex: 0 0 auto; }
.ct-icon-button:hover { background: var(--ct-soft); color: var(--ct-text); }
.ct-icon-button.is-active, .ct-icon-button[aria-pressed="true"] { color: var(--ct-red); background: var(--ct-red-soft); }
.ct-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 17px; border: 1px solid var(--ct-border); border-radius: 10px; background: white; color: var(--ct-text); font-weight: 600; line-height: 1.4; text-align: center; white-space: nowrap; }
.ct-button:hover:not(:disabled) { background: var(--ct-soft); border-color: #d5d0c7; }
.ct-button-primary { background: var(--ct-red); color: white; border-color: var(--ct-red); }
.ct-button-primary:hover:not(:disabled) { background: var(--ct-red-dark); border-color: var(--ct-red-dark); }
.ct-button-soft { background: var(--ct-red-soft); border-color: #fad9dc; color: var(--ct-red-dark); }
.ct-button-soft:hover:not(:disabled) { background: #ffe1e4; border-color: #f8bbc2; }
.ct-button-quiet { background: transparent; color: var(--ct-muted); border-color: transparent; }
.ct-button-small { min-height: 33px; padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.ct-button-danger { color: var(--ct-red-dark); border-color: #f4c5ca; }
.ct-button-block { width: 100%; }
.ct-text-link { padding: 0; border: 0; background: transparent; color: var(--ct-red-dark); font-size: 12px; font-weight: 600; }
.ct-text-link:hover { text-decoration: underline; }
.ct-muted { color: var(--ct-muted); }
.ct-small { font-size: 12px; }
.ct-eyebrow { display: block; color: var(--ct-red-dark); font-size: 10px; font-weight: 750; letter-spacing: 1.6px; }
.ct-card { border: 1px solid var(--ct-border); border-radius: var(--ct-radius); background: var(--ct-card); }
.ct-pill { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 9px; border-radius: 20px; background: var(--ct-soft); font-size: 11px; color: var(--ct-muted); }
.ct-badge, .ct-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; background: var(--ct-red); color: white; border-radius: 20px; font-size: 10px; font-weight: 700; line-height: 1; }
.ct-badge { position: absolute; top: 0; right: -2px; border: 2px solid white; min-width: 20px; height: 20px; }
.ct-nav-badge { margin-left: auto; }
.ct-topbar { position: sticky; top: 0; z-index: 50; height: var(--ct-topbar-height); background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--ct-border); }
.ct-topbar-inner { display: flex; align-items: center; gap: 28px; height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 32px; }
.ct-brand { display: flex; align-items: center; gap: 11px; flex: 0 0 207px; }
.ct-brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--ct-red); color: white; font-size: 22px; font-weight: 850; letter-spacing: -3px; padding-right: 3px; box-shadow: 0 4px 12px rgb(229 35 48 / 14%); }
.ct-brand-mark span:last-child { font-size: 16px; align-self: flex-end; margin-bottom: 9px; }
.ct-brand-type { display: flex; flex-direction: column; line-height: 1.2; gap: 5px; }
.ct-brand-type strong { font-size: 18px; letter-spacing: 1px; }
.ct-brand-type > span { color: var(--ct-muted); font-size: 8px; font-weight: 600; letter-spacing: 2px; }
.ct-search { display: flex; align-items: center; gap: 9px; min-width: 0; border: 1px solid var(--ct-border); border-radius: 11px; background: var(--ct-bg); padding: 0 12px; }
.ct-search:focus-within { border-color: #f19aa3; box-shadow: 0 0 0 3px rgb(229 35 48 / 6%); }
.ct-search input { width: 100%; flex: 1 1 auto; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 13px; }
.ct-search > .ct-icon { color: var(--ct-subtle); width: 18px; height: 18px; }
.ct-top-search { max-width: 520px; flex: 1; }
.ct-search-submit { padding: 3px 0 3px 10px; color: var(--ct-muted); font-size: 12px; font-weight: 600; border: 0; border-left: 1px solid var(--ct-border); background: transparent; }
.ct-top-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.ct-header-publish { min-height: 37px; padding: 8px 16px; font-size: 13px; }
.ct-header-publish .ct-icon { width: 17px; height: 17px; }
.ct-header-contact { position: relative; min-height: 37px; padding: 8px 14px; font-size: 13px; }
.ct-header-contact .ct-icon { width: 17px; height: 17px; }
.ct-admin-thread { display: flex; flex-direction: column; gap: 15px; max-height: 310px; overflow-y: auto; padding: 3px 2px 15px; overscroll-behavior: contain; }
.ct-admin-thread .ct-message { max-width: 100%; }
.ct-account { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.ct-account-avatar, .ct-avatar { display: inline-flex; justify-content: center; align-items: center; overflow: hidden; background: #eee9e0; color: #7b6b52; border: 1px solid rgb(0 0 0 / 4%); border-radius: 50%; font-weight: 700; flex: 0 0 auto; }
.ct-account-avatar { width: 34px; height: 34px; }
.ct-avatar { width: 42px; height: 42px; font-size: 16px; }
.ct-avatar-small { width: 34px; height: 34px; font-size: 13px; }
.ct-avatar-large { width: 66px; height: 66px; font-size: 24px; }
.ct-account-avatar img, .ct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ct-layout { display: grid; grid-template-columns: 207px minmax(0, 1fr) 288px; align-items: start; gap: 28px; max-width: 1480px; margin: 0 auto; padding: 30px 32px 60px; }
.ct-sidebar { position: sticky; top: calc(var(--ct-topbar-height) + 28px); max-height: calc(100vh - var(--ct-topbar-height) - 50px); overflow-y: auto; scrollbar-width: thin; }
.ct-sidebar-heading { display: flex; align-items: center; justify-content: space-between; color: var(--ct-subtle); font-size: 10px; font-weight: 600; letter-spacing: .8px; margin: 0 13px 11px; }
.ct-primary-navigation, .ct-secondary-navigation { display: flex; flex-direction: column; gap: 5px; }
.ct-nav-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 11px; background: transparent; text-align: left; color: var(--ct-muted); font-size: 14px; font-weight: 550; }
.ct-nav-link .ct-icon { width: 20px; height: 20px; }
.ct-nav-link:hover { background: #eeece7; color: var(--ct-text); }
.ct-nav-link[aria-current="page"] { background: white; color: var(--ct-red-dark); font-weight: 700; box-shadow: 0 1px 5px rgb(30 25 18 / 3%); }
.ct-nav-link[aria-current="page"]::before { content: ""; position: absolute; left: 0; width: 3px; height: 20px; background: var(--ct-red); border-radius: 3px; }
.ct-sidebar-separator { height: 1px; margin: 22px 13px; background: var(--ct-border); }
.ct-secondary-navigation .ct-nav-link { font-size: 13px; }
.ct-sidebar-account { margin-top: 24px; padding: 17px 14px; border: 1px solid var(--ct-border); border-radius: 12px; }
.ct-sidebar-account p { font-size: 12px; color: var(--ct-muted); }
.ct-sidebar-account .ct-button { width: 100%; margin-top: 12px; font-size: 12px; }
.ct-sidebar-account .ct-account { gap: 10px; }
.ct-sidebar-footnote { margin: 20px 14px 0; color: var(--ct-subtle); font-size: 10px; }
.ct-main { min-width: 0; outline: 0; }
.ct-page { min-width: 0; }
.ct-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.ct-page-heading p { color: var(--ct-muted); font-size: 13px; margin-top: 7px; }
.ct-page-heading .ct-eyebrow { margin-bottom: 6px; }
.ct-page-heading-actions { display: flex; gap: 8px; align-items: center; padding-top: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ct-page-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ct-muted); margin-bottom: 17px; }
.ct-page-back:hover { color: var(--ct-red-dark); }
.ct-discovery { display: flex; flex-direction: column; gap: 19px; position: sticky; top: calc(var(--ct-topbar-height) + 28px); }
.ct-discovery .ct-card { padding: 22px; }
.ct-discovery-intro h2 { font-size: 18px; margin: 7px 0; }
.ct-discovery-intro p { color: var(--ct-muted); font-size: 12px; line-height: 1.8; }
.ct-side-search { margin-top: 19px; gap: 0; padding: 0 10px; }
.ct-side-search input { font-size: 11px; }
.ct-side-search .ct-icon-button { width: 25px; height: 34px; }
.ct-side-search .ct-icon { width: 17px; height: 17px; }
.ct-section-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ct-section-top h2 { font-size: 15px; }
.ct-popular-tribe { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--ct-border); }
.ct-popular-tribe:first-child { padding-top: 0; }
.ct-popular-tribe:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-popular-tribe-link { display: flex; gap: 11px; align-items: center; min-width: 0; flex: 1; }
.ct-popular-tribe .ct-tribe-logo { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.ct-popular-tribe h3 { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-popular-tribe p { font-size: 10px; color: var(--ct-muted); margin-top: 2px; }
.ct-popular-tribe .ct-button { padding: 6px 8px; min-height: 29px; font-size: 10px; }
.ct-popular-copy { min-width: 0; }
.ct-community-note h2 { font-size: 13px; }
.ct-community-note p { margin: 9px 0 12px; font-size: 11px; color: var(--ct-muted); line-height: 1.9; }
.ct-layout.is-wide { grid-template-columns: 207px minmax(0, 1fr); }
.ct-layout.is-wide .ct-discovery { display: none; }
.ct-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #eeece7; overflow-x: auto; scrollbar-width: none; }
.ct-tabs::-webkit-scrollbar { display: none; }
.ct-tab { display: inline-flex; justify-content: center; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--ct-muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.ct-tab[aria-pressed="true"], .ct-tab[aria-selected="true"] { background: white; color: var(--ct-text); box-shadow: 0 1px 5px rgb(30 25 18 / 6%); }
.ct-feed-tabs { margin-bottom: 19px; }
.ct-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.ct-filter-row .ct-search { flex: 1; max-width: 420px; background: white; }
.ct-filter-row .ct-tabs { flex: 0 0 auto; }
.ct-composer { padding: 21px; margin-bottom: 22px; }
.ct-composer-heading { display: flex; gap: 13px; align-items: flex-start; }
.ct-composer-text { flex: 1; min-width: 0; }
.ct-composer-text textarea { display: block; width: 100%; min-height: 73px; padding: 9px 0; border: 0; outline: 0; background: transparent; line-height: 1.75; resize: vertical; }
.ct-composer-text textarea:focus { box-shadow: 0 2px 0 var(--ct-red-soft); }
.ct-composer textarea::placeholder { color: #99948b; }
.ct-composer-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--ct-muted); }
.ct-composer-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; align-items: center; }
.ct-composer-meta select { max-width: 220px; padding: 5px 26px 5px 7px; border: 0; background-color: var(--ct-bg); border-radius: 6px; font-size: 11px; }
.ct-char-count { font-size: 10px; color: var(--ct-subtle); margin-left: auto; }
.ct-char-count.is-over { color: var(--ct-red); font-weight: 700; }
.ct-composer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; margin-top: 13px; border-top: 1px solid var(--ct-border); }
.ct-composer-tools { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.ct-tool-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ct-muted); font-size: 11px; }
.ct-tool-button .ct-icon { width: 17px; height: 17px; }
.ct-tool-button:hover { background: var(--ct-soft); color: var(--ct-text); }
.ct-tool-button[aria-expanded="true"] { color: var(--ct-red-dark); background: var(--ct-red-soft); }
.ct-composer-link { margin-top: 14px; }
.ct-composer-link label { font-size: 11px; color: var(--ct-muted); display: block; margin-bottom: 5px; }
.ct-input, .ct-textarea, .ct-select { display: block; width: 100%; border: 1px solid var(--ct-border); border-radius: 9px; padding: 10px 12px; background: white; }
.ct-input:focus, .ct-textarea:focus, .ct-select:focus { border-color: #ee8793; outline: none; box-shadow: 0 0 0 3px rgb(229 35 48 / 7%); }
.ct-textarea { min-height: 110px; line-height: 1.7; }
.ct-field { margin-top: 16px; }
.ct-field label, .ct-field-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.ct-field-help { font-size: 11px; color: var(--ct-muted); margin-top: 6px; }
.ct-attachment-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.ct-attachment { position: relative; aspect-ratio: 1; border: 1px solid var(--ct-border); border-radius: 9px; overflow: hidden; background: var(--ct-bg); }
.ct-attachment img { width: 100%; height: 100%; object-fit: cover; }
.ct-attachment .ct-attachment-remove { position: absolute; right: 4px; top: 4px; width: 25px; height: 25px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 50%; color: white; background: rgb(0 0 0 / 65%); display: flex; align-items: center; justify-content: center; }
.ct-attachment-remove .ct-icon { width: 14px; height: 14px; }
.ct-attachment.is-uploading::after { content: "上传中"; position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; background: rgb(0 0 0 / 40%); }
.ct-device-chip { display: flex; gap: 7px; align-items: center; padding: 8px 11px; margin-top: 12px; background: var(--ct-soft); border-radius: 8px; font-size: 12px; }
.ct-device-chip .ct-icon-button { margin-left: auto; width: 25px; height: 25px; }
.ct-device-chip .ct-icon { width: 15px; height: 15px; }
.ct-feed-list { display: flex; flex-direction: column; gap: 19px; }
.ct-post { padding: 22px; }
.ct-post-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.ct-post-author { min-width: 0; flex: 1; }
.ct-post-author-line { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.ct-author-name { font-weight: 700; font-size: 13px; }
.ct-author-name:hover { color: var(--ct-red-dark); }
.ct-post-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 10px; color: var(--ct-muted); margin-top: 3px; }
.ct-post-meta a:hover { color: var(--ct-red-dark); }
.ct-follow-button { padding: 2px 6px; min-height: 25px; border: 0; background: transparent; color: var(--ct-red-dark); font-size: 11px; font-weight: 600; }
.ct-follow-button[aria-pressed="true"] { color: var(--ct-muted); }
.ct-post-menu { position: relative; flex: 0 0 auto; }
.ct-post-menu > summary { list-style: none; }
.ct-post-menu > summary::-webkit-details-marker { display: none; }
.ct-post-menu > summary::marker { display: none; }
.ct-dropdown { position: absolute; right: 0; top: 40px; z-index: 12; min-width: 145px; padding: 5px; border: 1px solid var(--ct-border); border-radius: 10px; background: white; box-shadow: var(--ct-shadow); }
.ct-dropdown button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: 0; border-radius: 6px; background: transparent; font-size: 12px; text-align: left; }
.ct-dropdown button:hover { background: var(--ct-bg); }
.ct-dropdown .ct-icon { width: 16px; height: 16px; }
.ct-dropdown .is-danger { color: var(--ct-red-dark); }
.ct-post-content { font-size: 13px; line-height: 1.95; overflow-wrap: anywhere; white-space: pre-wrap; }
.ct-post-content.is-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.ct-post-read-more { display: inline-block; margin-top: 7px; font-size: 11px; color: var(--ct-red-dark); }
.ct-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 15px; border-radius: 12px; overflow: hidden; }
.ct-media-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.ct-media-grid.is-double, .ct-media-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-media-button { display: block; padding: 0; width: 100%; border: 0; background: var(--ct-soft); overflow: hidden; aspect-ratio: 1; }
.ct-media-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.ct-media-button:hover img { transform: scale(1.03); }
.ct-media-grid.is-single .ct-media-button { aspect-ratio: auto; max-height: 500px; }
.ct-media-grid.is-single img { object-fit: contain; max-height: 500px; min-height: 80px; }
.ct-link-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 14px; background: var(--ct-bg); border: 1px solid var(--ct-border); border-radius: 10px; }
.ct-link-card > .ct-icon { color: var(--ct-muted); width: 18px; height: 18px; }
.ct-link-card > span { display: block; min-width: 0; }
.ct-link-card strong { display: block; color: var(--ct-text); font-size: 12px; font-weight: 600; }
.ct-link-card small { display: block; color: var(--ct-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.ct-link-card:hover { border-color: #d7d0c5; }
.ct-post-device { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; font-size: 11px; color: var(--ct-muted); padding: 5px 9px; border: 1px solid var(--ct-border); border-radius: 7px; }
.ct-post-device .ct-icon { width: 14px; height: 14px; }
.ct-post-reaction-summary { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; font-size: 10px; color: var(--ct-muted); }
.ct-post-reaction-summary span { display: inline-flex; gap: 3px; align-items: center; }
.ct-post-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--ct-border); }
.ct-post-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; font-size: 11px; color: var(--ct-muted); white-space: nowrap; }
.ct-post-action .ct-icon { width: 17px; height: 17px; }
.ct-post-action:hover { background: var(--ct-bg); }
.ct-post-action[aria-pressed="true"], .ct-post-action[aria-expanded="true"] { color: var(--ct-red-dark); background: var(--ct-red-soft); }
.ct-reaction-picker { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 11px 0 1px; }
.ct-reaction-option { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 35px; padding: 7px 9px; border: 1px solid var(--ct-border); border-radius: 8px; background: white; font-size: 11px; }
.ct-reaction-option .ct-emoji { font-size: 19px; line-height: 1; }
.ct-reaction-option:hover, .ct-reaction-option[aria-pressed="true"] { border-color: #f19ba3; background: var(--ct-red-soft); }
.ct-load-more { display: flex; justify-content: center; margin-top: 22px; }
.ct-end-note { color: var(--ct-subtle); text-align: center; font-size: 11px; padding: 26px 10px 8px; }
.ct-state { padding: 48px 23px; text-align: center; }
.ct-state-icon { display: inline-flex; justify-content: center; align-items: center; width: 57px; height: 57px; margin: 0 auto 16px; border-radius: 17px; background: var(--ct-soft); color: #938775; }
.ct-state-icon .ct-icon { width: 26px; height: 26px; }
.ct-state h1, .ct-state h2 { font-size: 18px; letter-spacing: 0; }
.ct-state p { margin-top: 9px; color: var(--ct-muted); font-size: 12px; line-height: 1.8; }
.ct-state .ct-button { margin: 19px 4px 0; }
.ct-state.is-compact { padding: 28px 16px; border: 0; background: transparent; }
.ct-state.is-compact h2 { font-size: 14px; }
.ct-state.is-compact .ct-state-icon { width: 42px; height: 42px; margin-bottom: 11px; border-radius: 12px; }
.ct-state.is-compact .ct-state-icon .ct-icon { width: 20px; height: 20px; }
.ct-spinner { display: block; width: 27px; height: 27px; margin: 0 auto 15px; border: 3px solid var(--ct-border); border-top-color: var(--ct-red); border-radius: 50%; animation: ct-spin .8s linear infinite; }
.ct-spinner-small { width: 16px; height: 16px; border-width: 2px; margin: 0; flex: 0 0 auto; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-system-banner { margin-bottom: 19px; padding: 12px 16px; background: #fff6df; color: #77582b; border: 1px solid #efdfbd; border-radius: 10px; font-size: 12px; }
.ct-system-banner a { font-weight: 650; text-decoration: underline; margin-left: 8px; }
.ct-inline-status { margin: 9px 0; padding: 9px 12px; border-radius: 8px; background: var(--ct-bg); color: var(--ct-muted); font-size: 11px; }
.ct-inline-status.is-error { background: #fff2f1; color: #a82a33; }
.ct-comments { margin-top: 22px; padding: 22px; }
.ct-comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ct-comments-header > span { font-size: 11px; color: var(--ct-muted); }
.ct-comment-compose { padding-bottom: 21px; margin-bottom: 7px; border-bottom: 1px solid var(--ct-border); }
.ct-comment-input-row { display: flex; align-items: flex-start; gap: 10px; }
.ct-comment-input-row .ct-avatar { width: 33px; height: 33px; font-size: 13px; }
.ct-comment-input-row textarea { min-height: 78px; font-size: 12px; resize: vertical; }
.ct-comment-compose-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.ct-reply-target { display: flex; align-items: center; gap: 6px; padding: 6px 10px; margin-bottom: 9px; border-radius: 7px; background: var(--ct-red-soft); color: var(--ct-red-dark); font-size: 11px; }
.ct-reply-target .ct-icon-button { margin-left: auto; width: 24px; height: 24px; }
.ct-comment-list { display: flex; flex-direction: column; }
.ct-comment { padding: 17px 0; border-bottom: 1px solid var(--ct-border); scroll-margin-top: 100px; }
.ct-comment:last-child { border-bottom: 0; }
.ct-comment.is-highlighted { margin: 0 -10px; padding-left: 10px; padding-right: 10px; background: #fff7ed; border-radius: 9px; }
.ct-comment-header { display: flex; align-items: flex-start; gap: 9px; }
.ct-comment-header .ct-avatar { width: 30px; height: 30px; font-size: 12px; }
.ct-comment-body { flex: 1; min-width: 0; }
.ct-comment-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-comment-name-row .ct-author-name { font-size: 12px; }
.ct-comment time { font-size: 10px; color: var(--ct-subtle); }
.ct-comment-content { font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; }
.ct-comment-reply-name { font-size: 10px; color: var(--ct-muted); margin-top: 3px; }
.ct-comment-actions { display: flex; align-items: center; gap: 13px; margin-top: 8px; }
.ct-comment-actions button { padding: 0; border: 0; background: transparent; color: var(--ct-muted); font-size: 10px; }
.ct-comment-actions button:hover { color: var(--ct-red-dark); }
.ct-tribe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ct-tribe-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.ct-tribe-cover { display: flex; align-items: center; justify-content: center; height: 146px; overflow: hidden; position: relative; background: #eae6dc; }
.ct-tribe-cover img { width: 100%; height: 100%; object-fit: cover; }
.ct-tribe-cover.is-letter-cover { background: linear-gradient(135deg, #ece4d7, #f5f1e8); }
.ct-tribe-cover.is-letter-cover::before, .ct-tribe-cover.is-letter-cover::after { content: ""; position: absolute; border: 1px solid rgb(130 108 75 / 10%); width: 180px; height: 180px; transform: rotate(32deg); border-radius: 36px; }
.ct-tribe-cover.is-letter-cover::before { right: -70px; top: -75px; }
.ct-tribe-cover.is-letter-cover::after { left: -70px; bottom: -100px; }
.ct-tribe-cover-letter { position: relative; font-size: 44px; font-weight: 750; letter-spacing: 3px; color: #978669; text-align: center; }
.ct-tribe-cover-label { position: absolute; left: 17px; bottom: 12px; font-size: 9px; font-weight: 650; letter-spacing: 1.2px; color: #77684f; }
.ct-tribe-card-body { position: relative; padding: 19px; display: flex; flex-direction: column; flex: 1; }
.ct-tribe-logo { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; width: 47px; height: 47px; border-radius: 12px; border: 1px solid var(--ct-border); background: #f6f1e8; color: #8b7755; font-size: 20px; font-weight: 750; flex: 0 0 auto; }
.ct-tribe-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.ct-tribe-logo.is-dark { background: #242a34; color: #fff; }
.ct-tribe-logo:not(.is-dark):has(img) { background: #fff; }
.ct-tribe-brand-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 11px; color: var(--ct-muted); }
.ct-tribe-website { display: inline-flex; gap: 5px; align-items: center; color: var(--ct-red-dark); font-weight: 650; }
.ct-tribe-card-title { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.ct-tribe-card-title a { min-width: 0; }
.ct-tribe-card h2 { font-size: 15px; word-break: break-word; }
.ct-tribe-card h2:hover { color: var(--ct-red-dark); }
.ct-tribe-card-title .ct-pill { font-size: 9px; padding: 1px 6px; margin-top: 4px; }
.ct-tribe-description { color: var(--ct-muted); font-size: 11px; line-height: 1.9; min-height: 62px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.ct-tribe-card-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ct-muted); font-size: 10px; margin: 13px 0 17px; }
.ct-tribe-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ct-tribe-card-meta .ct-icon { width: 13px; height: 13px; }
.ct-tribe-card .ct-join-button { margin-top: auto; width: 100%; min-height: 37px; font-size: 12px; }
.ct-join-button.is-joined { background: white; color: var(--ct-muted); border-color: var(--ct-border); }
.ct-join-button.is-joined:hover { color: var(--ct-red-dark); background: var(--ct-red-soft); }
.ct-tribe-hero { overflow: hidden; margin-bottom: 22px; }
.ct-tribe-hero .ct-tribe-cover { height: 225px; }
.ct-tribe-hero .ct-tribe-cover-letter { font-size: 76px; }
.ct-tribe-hero .ct-tribe-cover-label { bottom: 21px; left: 28px; font-size: 11px; }
.ct-tribe-hero-info { padding: 0 28px 23px; }
.ct-tribe-hero-top { display: flex; justify-content: space-between; gap: 15px; align-items: flex-end; }
.ct-tribe-hero .ct-tribe-logo { position: relative; margin-top: -28px; width: 70px; height: 70px; border: 4px solid white; border-radius: 18px; font-size: 30px; box-shadow: 0 1px 7px rgb(20 15 9 / 5%); }
.ct-tribe-hero-title { margin-top: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-tribe-hero-title h1 { font-size: 25px; }
.ct-tribe-hero-description { color: var(--ct-muted); font-size: 13px; margin: 10px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-tribe-hero-meta { display: flex; gap: 18px; color: var(--ct-muted); font-size: 11px; }
.ct-tribe-hero-actions { display: flex; gap: 9px; align-items: center; }
.ct-tribe-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 23px; align-items: start; }
.ct-tribe-about { padding: 21px; }
.ct-tribe-about h2 { font-size: 14px; margin-bottom: 11px; }
.ct-tribe-about p { color: var(--ct-muted); font-size: 11px; line-height: 1.9; }
.ct-tribe-about .ct-button { margin-top: 17px; font-size: 12px; }
.ct-members-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.ct-member-card { display: flex; gap: 12px; align-items: flex-start; padding: 20px; }
.ct-member-info { min-width: 0; flex: 1; }
.ct-member-info h3 { font-size: 13px; overflow-wrap: anywhere; }
.ct-member-info p { font-size: 10px; color: var(--ct-muted); margin-top: 3px; }
.ct-member-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.ct-member-actions .ct-button { font-size: 10px; padding: 5px 8px; min-height: 29px; }
.ct-tribe-chat-intro { padding: 42px 23px; }
.ct-search-page-form { margin-bottom: 23px; background: white; padding: 2px 13px; }
.ct-search-page-form input { font-size: 14px; padding: 13px 0; }
.ct-search-section { margin-bottom: 28px; }
.ct-search-section > h2 { margin-bottom: 14px; display: flex; gap: 9px; align-items: center; }
.ct-search-section > h2 > span { font-size: 11px; font-weight: 400; color: var(--ct-muted); }
.ct-search-device-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ct-device-result { display: flex; gap: 11px; align-items: center; padding: 16px; }
.ct-device-result > .ct-icon { width: 24px; height: 24px; color: var(--ct-muted); }
.ct-device-result-copy { min-width: 0; flex: 1; }
.ct-device-result h3 { font-size: 12px; overflow-wrap: anywhere; }
.ct-device-result p { color: var(--ct-muted); font-size: 10px; margin-top: 3px; }
.ct-profile-header { display: flex; gap: 17px; align-items: center; margin-bottom: 22px; padding: 24px; }
.ct-profile-header h1 { font-size: 23px; }
.ct-profile-header p { font-size: 12px; color: var(--ct-muted); margin-top: 5px; }
.ct-profile-header-copy { flex: 1; min-width: 0; }
.ct-profile-header-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.ct-notifications-header { align-items: center; }
.ct-notifications-list { overflow: hidden; }
.ct-notification { display: flex; align-items: flex-start; gap: 15px; padding: 22px; border-bottom: 1px solid var(--ct-border); }
.ct-notification:last-child { border-bottom: 0; }
.ct-notification.is-unread { background: #fffafa; }
.ct-notification-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; background: var(--ct-soft); color: #938069; border-radius: 12px; }
.ct-notification.is-unread .ct-notification-icon { background: #ffe8eb; color: var(--ct-red-dark); }
.ct-notification-copy { min-width: 0; flex: 1; }
.ct-notification-title { display: block; font-size: 13px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.ct-notification-title:hover { color: var(--ct-red-dark); }
.ct-notification-summary { display: block; margin-top: 5px; color: var(--ct-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.ct-notification-meta { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; font-size: 10px; color: var(--ct-subtle); margin-top: 10px; }
.ct-notification-meta .ct-event-count { color: var(--ct-red-dark); }
.ct-notification-read { flex: 0 0 auto; font-size: 10px; color: var(--ct-muted); padding: 5px 8px; margin-top: 0; border: 1px solid var(--ct-border); background: white; border-radius: 7px; }
.ct-notification-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ct-red); display: inline-block; vertical-align: middle; margin-right: 6px; }
.ct-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 23px; align-items: start; }
.ct-settings-stack { display: flex; flex-direction: column; gap: 22px; }
.ct-settings-card { padding: 25px; }
.ct-settings-card > h2 { margin-bottom: 5px; }
.ct-settings-card > p { font-size: 12px; color: var(--ct-muted); line-height: 1.9; }
.ct-settings-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ct-border); }
.ct-settings-row:last-of-type { border-bottom: 0; }
.ct-settings-row h3 { font-size: 13px; }
.ct-settings-row p { font-size: 11px; color: var(--ct-muted); margin-top: 4px; }
.ct-switch { position: relative; display: inline-flex; width: 39px; height: 23px; flex: 0 0 auto; }
.ct-switch input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ct-switch-track { display: block; pointer-events: none; width: 100%; height: 100%; border-radius: 20px; background: #d7d3cb; transition: background .15s ease; }
.ct-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); transition: transform .15s ease; }
.ct-switch input:checked + .ct-switch-track { background: var(--ct-red); }
.ct-switch input:checked + .ct-switch-track::after { transform: translateX(16px); }
.ct-switch input:focus-visible + .ct-switch-track { outline: 3px solid rgb(229 35 48 / 35%); outline-offset: 3px; }
.ct-settings-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--ct-border); padding-top: 18px; margin-top: 5px; }
.ct-blocked-user { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--ct-border); }
.ct-blocked-user:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-blocked-user-name { min-width: 0; flex: 1; font-size: 12px; font-weight: 600; }
.ct-account-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 17px; }
.ct-account-links .ct-button { font-size: 11px; }
.ct-help-details { border-bottom: 1px solid var(--ct-border); padding: 15px 0; }
.ct-help-details:last-of-type { border-bottom: 0; }
.ct-help-details summary { cursor: pointer; font-size: 12px; font-weight: 600; list-style-position: inside; }
.ct-help-details p { color: var(--ct-muted); font-size: 11px; line-height: 1.9; margin-top: 8px; }
.ct-support-form { margin-top: 17px; }
.ct-support-form .ct-button { margin-top: 12px; }
.ct-chat-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--ct-topbar-height) - 63px); height: calc(100dvh - var(--ct-topbar-height) - 63px); min-height: 460px; max-height: 930px; overflow: hidden; }
.ct-chat-list-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--ct-border); }
.ct-chat-list-header { padding: 22px 20px 15px; border-bottom: 1px solid var(--ct-border); }
.ct-chat-list-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ct-chat-list-title h1 { font-size: 24px; }
.ct-chat-list-title .ct-icon-button { width: 32px; height: 32px; }
.ct-chat-search { padding: 0 10px; }
.ct-chat-search input { font-size: 11px; padding: 9px 0; }
.ct-chat-search .ct-search-submit { font-size: 10px; }
.ct-chat-filter-tabs { gap: 1px; background: transparent; padding: 0; margin-top: 17px; border-radius: 0; }
.ct-chat-filter-tabs .ct-tab { font-size: 10px; padding: 6px 9px; min-height: 30px; }
.ct-chat-filter-tabs .ct-tab[aria-pressed="true"] { background: var(--ct-red-soft); color: var(--ct-red-dark); box-shadow: none; }
.ct-conversation-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 7px; scrollbar-width: thin; }
.ct-conversation { display: flex; gap: 10px; width: 100%; align-items: center; padding: 13px 11px; border: 0; border-radius: 9px; background: white; text-align: left; }
.ct-conversation:hover { background: var(--ct-bg); }
.ct-conversation[aria-current="true"] { background: #f4f1eb; }
.ct-conversation .ct-avatar { width: 40px; height: 40px; font-size: 15px; }
.ct-conversation.is-group .ct-avatar { border-radius: 11px; }
.ct-conversation-copy { flex: 1; min-width: 0; }
.ct-conversation-top { display: flex; align-items: center; gap: 5px; justify-content: space-between; }
.ct-conversation-name { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ct-conversation time { color: var(--ct-subtle); font-size: 9px; white-space: nowrap; }
.ct-conversation-bottom { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.ct-conversation-snippet { display: block; color: var(--ct-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ct-conversation-star { color: #a8751f; font-size: 11px; }
.ct-conversation .ct-nav-badge { min-width: 17px; height: 17px; font-size: 9px; }
.ct-chat-list-status { margin: 0; padding: 7px 14px; border-radius: 0; font-size: 10px; border-top: 1px solid var(--ct-border); }
.ct-chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: #fdfcfa; }
.ct-chat-placeholder { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; background: white; }
.ct-chat-placeholder .ct-state { border: 0; max-width: 330px; }
.ct-chat-thread-header { display: flex; align-items: center; gap: 10px; padding: 16px 22px; min-height: 80px; border-bottom: 1px solid var(--ct-border); background: white; }
.ct-chat-thread-header .ct-avatar { width: 39px; height: 39px; }
.ct-chat-thread-title { flex: 1; min-width: 0; }
.ct-chat-thread-title h2 { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-chat-thread-title p { font-size: 10px; color: var(--ct-muted); margin-top: 3px; }
.ct-chat-thread-actions { display: flex; align-items: center; gap: 4px; }
.ct-chat-thread-actions .ct-icon-button { width: 34px; height: 34px; }
.ct-message-search { padding: 10px 22px; border-bottom: 1px solid var(--ct-border); background: white; }
.ct-message-search .ct-search { background: var(--ct-bg); }
.ct-message-search .ct-search input { font-size: 11px; padding: 8px 0; }
.ct-message-search .ct-button { min-height: 28px; padding: 4px 8px; font-size: 10px; }
.ct-chat-message-status { margin: 0; border-radius: 0; padding: 7px 22px; border-bottom: 1px solid var(--ct-border); flex: 0 0 auto; }
.ct-message-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 15px 22px 22px; scrollbar-width: thin; scroll-behavior: auto; }
.ct-message-history { display: flex; justify-content: center; padding: 3px 0 15px; }
.ct-message-history .ct-button { min-height: 28px; padding: 5px 12px; background: white; font-size: 10px; color: var(--ct-muted); }
.ct-message-list { display: flex; flex-direction: column; gap: 18px; }
.ct-message-day { text-align: center; color: var(--ct-subtle); font-size: 10px; padding: 6px 0; }
.ct-message { display: flex; align-items: flex-start; gap: 8px; max-width: 91%; align-self: flex-start; min-width: 0; }
.ct-message .ct-avatar { width: 30px; height: 30px; font-size: 11px; }
.ct-message.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.ct-message-copy { min-width: 0; }
.ct-message-author { display: block; font-size: 9px; color: var(--ct-muted); margin-bottom: 4px; }
.ct-message.is-mine .ct-message-author { text-align: right; }
.ct-message-bubble { padding: 10px 13px; border: 1px solid var(--ct-border); border-radius: 0 12px 12px; background: white; color: var(--ct-text); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; min-width: 35px; }
.ct-message.is-mine .ct-message-bubble { background: var(--ct-red); border-color: var(--ct-red); color: white; border-radius: 12px 0 12px 12px; }
.ct-message.is-deleted .ct-message-bubble { color: var(--ct-muted); background: var(--ct-soft); border-color: transparent; font-style: italic; }
.ct-message .ct-media-grid { max-width: 250px; margin-top: 7px; border-radius: 7px; }
.ct-message .ct-media-grid.is-single .ct-media-button { max-height: 260px; }
.ct-message .ct-media-grid.is-single img { max-height: 260px; }
.ct-message-meta { display: flex; gap: 7px; align-items: center; margin-top: 5px; color: var(--ct-subtle); font-size: 9px; }
.ct-message.is-mine .ct-message-meta { justify-content: flex-end; }
.ct-message-report { background: transparent; border: 0; padding: 0; color: var(--ct-subtle); font-size: 9px; }
.ct-message-report:hover { color: var(--ct-red-dark); }
.ct-new-messages { position: absolute; bottom: 140px; right: 23px; z-index: 5; padding: 7px 12px; box-shadow: 0 3px 15px rgb(32 25 17 / 10%); background: white; color: var(--ct-red-dark); font-size: 11px; border: 1px solid var(--ct-border); border-radius: 20px; }
.ct-message-composer { flex: 0 0 auto; padding: 12px 20px 16px; border-top: 1px solid var(--ct-border); background: white; }
.ct-message-composer-tools { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.ct-message-composer-tools .ct-icon-button { width: 30px; height: 29px; }
.ct-message-composer-tools .ct-icon { width: 18px; height: 18px; }
.ct-message-compose-row { display: flex; align-items: flex-end; gap: 12px; }
.ct-message-compose-row textarea { flex: 1; border: 0; background: transparent; outline: 0; min-height: 45px; max-height: 145px; height: 45px; padding: 5px 0; resize: none; line-height: 1.7; font-size: 12px; }
.ct-message-compose-row .ct-button { min-height: 35px; padding: 7px 14px; font-size: 11px; }
.ct-message-key-hint { margin-top: 5px; font-size: 9px; color: var(--ct-subtle); text-align: right; }
.ct-message-composer .ct-attachment-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 440px; margin-top: 5px; margin-bottom: 10px; }
.ct-emoji-picker { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px; margin-bottom: 10px; background: var(--ct-bg); border-radius: 9px; }
.ct-emoji-picker button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 7px; font-size: 21px; line-height: 1; }
.ct-emoji-picker button:hover { background: white; }
.ct-new-conversation-tabs { margin-bottom: 16px; }
.ct-new-conversation-result { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--ct-border); }
.ct-new-conversation-result:last-child { border-bottom: 0; }
.ct-new-conversation-copy { min-width: 0; flex: 1; }
.ct-new-conversation-copy h3 { font-size: 12px; }
.ct-new-conversation-copy p { font-size: 10px; color: var(--ct-muted); margin-top: 3px; }
.ct-mobile-only, .ct-mobile-tabbar { display: none; }
.ct-navigation-backdrop { display: none; }
.ct-toast-region { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 9px; width: min(430px, calc(100% - 32px)); pointer-events: none; }
.ct-toast { display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: #292720; color: white; border-radius: 11px; box-shadow: var(--ct-shadow); font-size: 12px; pointer-events: auto; }
.ct-toast.is-error { background: #7c2631; }
.ct-toast > span { flex: 1; overflow-wrap: anywhere; }
.ct-toast a { flex: 0 0 auto; color: white; text-decoration: underline; font-weight: 650; }
.ct-toast button { display: flex; align-items: center; justify-content: center; padding: 2px; background: transparent; border: 0; color: white; }
.ct-toast button .ct-icon { width: 15px; height: 15px; }
body.ct-modal-open { overflow: hidden; }
.ct-modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 30px 20px; background: rgb(31 27 21 / 40%); backdrop-filter: blur(3px); }
.ct-modal { display: flex; flex-direction: column; width: 100%; max-width: 510px; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); border-radius: 18px; background: white; box-shadow: 0 25px 100px rgb(0 0 0 / 15%); overflow: hidden; }
.ct-modal.is-wide { max-width: 680px; }
.ct-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 22px; border-bottom: 1px solid var(--ct-border); flex: 0 0 auto; }
.ct-modal-header h2 { font-size: 17px; }
.ct-modal-header .ct-icon-button { width: 30px; height: 30px; }
.ct-modal-body { padding: 22px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.ct-modal-body > p { color: var(--ct-muted); font-size: 13px; line-height: 1.9; }
.ct-modal-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.ct-modal .ct-composer { padding: 0; margin: 0; border: 0; border-radius: 0; }
.ct-modal .ct-composer-text textarea { min-height: 140px; }
.ct-modal .ct-support-form { margin-top: 5px; }
.ct-modal-error { color: #a82a33; background: #fff0f1; padding: 10px 12px; border-radius: 8px; font-size: 12px; margin-bottom: 17px; }
.ct-lightbox-modal { max-width: 980px; background: #191815; color: white; }
.ct-lightbox-modal .ct-modal-header { border-color: #3b3832; }
.ct-lightbox-modal .ct-modal-header .ct-icon-button { color: white; }
.ct-lightbox-modal .ct-modal-body { padding: 10px; }
.ct-lightbox-image { max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); margin: 0 auto; object-fit: contain; }
.ct-lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 8px; }
.ct-lightbox-controls .ct-icon-button { color: white; border: 1px solid #3b3832; }
.ct-lightbox-controls .ct-icon-button:hover { background: #3b3832; }
.ct-lightbox-count { min-width: 60px; font-size: 12px; text-align: center; color: #ddd5c8; }
.ct-lightbox-download { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #e4dbce; }
.ct-copy-input { margin-top: 15px; }
.ct-device-picker { margin-top: 17px; padding: 14px; border: 1px solid var(--ct-border); border-radius: 10px; background: var(--ct-bg); }
.ct-device-picker > .ct-search { background: white; }
.ct-device-picker > .ct-search .ct-button { padding: 5px 8px; min-height: 29px; }
.ct-device-picker-results { margin-top: 17px; }
.ct-device-picker-results .ct-device-result { padding: 12px 0; border: 0; border-bottom: 1px solid var(--ct-border); border-radius: 0; }
.ct-device-picker-results .ct-device-result:last-child { border-bottom: 0; }
.ct-device-picker-results .ct-button { font-size: 10px; }
@media (min-width: 1560px) {
    .ct-layout, .ct-topbar-inner { max-width: 1530px; }
    .ct-layout { grid-template-columns: 215px minmax(0, 1fr) 300px; gap: 36px; }
    .ct-layout.is-wide { grid-template-columns: 215px minmax(0, 1fr); }
    .ct-brand { flex-basis: 223px; }
}
@media (max-width: 1240px) {
    .ct-layout { grid-template-columns: 180px minmax(0, 1fr) 248px; gap: 20px; padding: 25px 22px 50px; }
    .ct-layout.is-wide { grid-template-columns: 180px minmax(0, 1fr); }
    .ct-topbar-inner { gap: 20px; padding: 0 22px; }
    .ct-brand { flex-basis: 180px; gap: 9px; }
    .ct-brand-type strong { font-size: 16px; }
    .ct-brand-type > span { font-size: 7px; letter-spacing: 1.4px; }
    .ct-discovery .ct-card { padding: 18px; }
    .ct-nav-link { padding: 11px 12px; gap: 10px; font-size: 13px; }
    .ct-top-actions { gap: 11px; }
    .ct-post, .ct-composer, .ct-comments { padding: 19px; }
    .ct-tribe-grid { gap: 17px; }
    .ct-tribe-card-body { padding: 16px; }
    .ct-tribe-cover { height: 130px; }
    .ct-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-settings-layout { grid-template-columns: minmax(0, 1fr) 270px; }
    .ct-chat-shell { grid-template-columns: 285px minmax(0, 1fr); }
    .ct-chat-list-header { padding: 20px 16px 14px; }
    .ct-chat-filter-tabs .ct-tab { padding: 6px 7px; }
}
@media (max-width: 1050px) {
    .ct-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 23px; }
    .ct-layout.is-wide { grid-template-columns: 175px minmax(0, 1fr); }
    .ct-discovery { display: none; }
    .ct-brand { flex-basis: 175px; }
    .ct-top-search { max-width: none; }
    #ct-account-name { display: none; }
    .ct-tribe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
    .ct-tribe-cover { height: 150px; }
    .ct-tribe-card-body { padding: 19px; }
    .ct-tribe-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .ct-tribe-about { display: none; }
    .ct-settings-layout { grid-template-columns: minmax(0, 1fr); }
    .ct-settings-layout > .ct-settings-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-chat-shell { grid-template-columns: 260px minmax(0, 1fr); }
    .ct-chat-list-header { padding: 18px 13px 13px; }
    .ct-chat-thread-header { padding: 14px 16px; }
    .ct-chat-thread-actions .ct-icon-button { width: 30px; height: 30px; }
    .ct-message-scroll { padding: 13px 15px 18px; }
    .ct-message { max-width: 97%; }
    .ct-message-composer { padding: 11px 15px 13px; }
}
@media (max-width: 800px) {
    :root { --ct-topbar-height: 65px; }
    .ct-topbar-inner { padding: 0 20px; gap: 13px; }
    .ct-brand { flex-basis: auto; }
    .ct-brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 20px; }
    .ct-brand-mark span:last-child { font-size: 14px; margin-bottom: 7px; }
    .ct-brand-type strong { font-size: 15px; }
    .ct-brand-type > span { font-size: 6px; letter-spacing: 1px; }
    .ct-top-search { margin-left: 8px; }
    .ct-top-search input { font-size: 11px; }
    .ct-header-publish, .ct-header-contact { padding: 7px 10px; }
    .ct-layout, .ct-layout.is-wide { grid-template-columns: 1fr; padding: 25px 22px 100px; }
    .ct-sidebar { position: fixed; z-index: 101; top: 0; bottom: 0; left: 0; width: 265px; max-height: none; height: 100vh; height: 100dvh; padding: 25px 20px calc(25px + env(safe-area-inset-bottom)); transform: translateX(-100%); visibility: hidden; background: var(--ct-bg); transition: transform .2s ease, visibility .2s; overflow-y: auto; }
    .ct-sidebar.is-open { transform: translateX(0); visibility: visible; }
    .ct-sidebar-heading { margin: 0 10px 20px; font-size: 11px; }
    .ct-sidebar .ct-nav-link { padding: 13px 14px; font-size: 14px; }
    .ct-navigation-backdrop { display: block; position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; background: rgb(30 27 21 / 35%); }
    .ct-mobile-only { display: inline-flex; }
    body.ct-navigation-open { overflow: hidden; }
    .ct-mobile-tabbar { display: flex; position: fixed; bottom: 0; right: 0; left: 0; z-index: 50; justify-content: space-around; align-items: center; min-height: var(--ct-tabbar-height); height: calc(var(--ct-tabbar-height) + env(safe-area-inset-bottom)); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 98%); border-top: 1px solid var(--ct-border); }
    .ct-mobile-tabbar > a, .ct-mobile-tabbar > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 55px; min-height: 48px; padding: 4px 6px; border: 0; background: transparent; color: var(--ct-muted); font-size: 9px; }
    .ct-mobile-tabbar .ct-icon { width: 21px; height: 21px; }
    .ct-mobile-tabbar > [aria-current="page"] { color: var(--ct-red-dark); font-weight: 700; }
    .ct-mobile-tabbar .ct-tabbar-compose { color: var(--ct-red-dark); }
    .ct-tabbar-compose .ct-icon { width: 30px; height: 30px; padding: 4px; background: var(--ct-red); color: white; border-radius: 9px; }
    .ct-mobile-tabbar .ct-badge { top: 0; right: 4px; font-size: 8px; min-width: 18px; height: 18px; }
    .ct-chat-shell { height: calc(100vh - var(--ct-topbar-height) - var(--ct-tabbar-height) - 53px); height: calc(100dvh - var(--ct-topbar-height) - var(--ct-tabbar-height) - 53px); min-height: 400px; max-height: none; grid-template-columns: 270px minmax(0, 1fr); }
    .ct-chat-shell .ct-chat-back { display: none; }
    .ct-toast-region { bottom: calc(var(--ct-tabbar-height) + env(safe-area-inset-bottom) + 14px); }
    .ct-page-heading { margin-bottom: 21px; }
    .ct-page-heading h1 { font-size: 25px; }
    .ct-post-content { font-size: 14px; }
    .ct-tribe-card h2 { font-size: 16px; }
    .ct-tribe-description { font-size: 12px; }
    .ct-tribe-card .ct-join-button { font-size: 13px; }
}
@media (max-width: 620px) {
    :root { --ct-topbar-height: 60px; --ct-tabbar-height: 63px; }
    html { scroll-padding-top: 75px; }
    .ct-topbar-inner { padding: 0 12px; gap: 6px; }
    .ct-topbar-inner > .ct-icon-button { width: 33px; height: 36px; }
    .ct-brand { gap: 7px; }
    .ct-brand-type strong { font-size: 14px; letter-spacing: .2px; }
    .ct-brand-type > span { font-size: 6px; letter-spacing: .8px; }
    .ct-brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 18px; }
    .ct-brand-mark span:last-child { font-size: 12px; margin-bottom: 7px; }
    .ct-top-search { display: none; }
    .ct-top-actions { gap: 2px; }
    .ct-top-actions > .ct-icon-button { width: 33px; height: 36px; }
    .ct-header-publish, .ct-top-notifications { display: none; }
    .ct-account { margin-left: 4px; }
    .ct-header-contact { padding: 7px 9px; }
    .ct-header-contact > span:not(.ct-badge) { display: none; }
    .ct-account-avatar { width: 30px; height: 30px; font-size: 11px; }
    .ct-layout, .ct-layout.is-wide { padding: 21px 13px calc(var(--ct-tabbar-height) + env(safe-area-inset-bottom) + 35px); gap: 0; }
    h1, .ct-page-heading h1 { font-size: 23px; }
    .ct-page-heading { gap: 10px; margin-bottom: 19px; }
    .ct-page-heading p { font-size: 11px; margin-top: 6px; }
    .ct-page-heading .ct-eyebrow { font-size: 8px; letter-spacing: 1.3px; }
    .ct-page-heading-actions { padding-top: 2px; }
    .ct-page-heading-actions .ct-button { padding: 7px 10px; min-height: 33px; font-size: 10px; }
    .ct-page-heading-actions .ct-icon { width: 15px; height: 15px; }
    .ct-card { border-radius: 13px; }
    .ct-tabs { padding: 3px; border-radius: 9px; gap: 2px; }
    .ct-tab { font-size: 12px; padding: 8px 12px; border-radius: 7px; }
    .ct-feed-tabs { margin-bottom: 16px; }
    .ct-composer, .ct-post, .ct-comments { padding: 16px; }
    .ct-composer { margin-bottom: 17px; }
    .ct-composer-heading { gap: 10px; }
    .ct-composer-heading .ct-avatar { width: 34px; height: 34px; font-size: 13px; }
    .ct-composer-text textarea { min-height: 70px; font-size: 13px; padding-top: 6px; }
    .ct-composer-meta { margin-top: 5px; }
    .ct-composer-meta select { max-width: 185px; font-size: 10px; }
    .ct-composer-toolbar { gap: 5px; padding-top: 11px; margin-top: 12px; }
    .ct-composer-tools { gap: 0; }
    .ct-tool-button { padding: 6px 7px; font-size: 10px; gap: 4px; }
    .ct-tool-button .ct-icon { width: 16px; height: 16px; }
    .ct-composer-toolbar > .ct-button { min-height: 34px; padding: 8px 12px; font-size: 11px; }
    .ct-attachment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .ct-feed-list { gap: 16px; }
    .ct-post-header { gap: 10px; margin-bottom: 12px; }
    .ct-post-header .ct-avatar { width: 35px; height: 35px; font-size: 13px; }
    .ct-author-name { font-size: 12px; }
    .ct-post-meta { font-size: 9px; gap: 5px; }
    .ct-post-meta .ct-pill { font-size: 9px; padding: 2px 6px; }
    .ct-post-menu > summary { width: 28px; height: 29px; }
    .ct-post-content { font-size: 13px; line-height: 1.95; }
    .ct-media-grid { gap: 4px; margin-top: 12px; border-radius: 9px; }
    .ct-media-grid.is-single .ct-media-button, .ct-media-grid.is-single img { max-height: 390px; }
    .ct-link-card { padding: 10px 12px; gap: 9px; }
    .ct-link-card strong { font-size: 11px; }
    .ct-link-card small { max-width: 220px; font-size: 9px; }
    .ct-post-reaction-summary { font-size: 9px; gap: 8px; margin-top: 13px; }
    .ct-post-actions { padding-top: 9px; margin-top: 12px; gap: 0; }
    .ct-post-action { font-size: 10px; gap: 4px; padding: 7px 4px; }
    .ct-post-action .ct-icon { width: 16px; height: 16px; }
    .ct-reaction-picker { gap: 4px; }
    .ct-reaction-option { font-size: 9px; padding: 6px 7px; min-height: 33px; }
    .ct-reaction-option .ct-emoji { font-size: 17px; }
    .ct-comments { margin-top: 17px; }
    .ct-comments-header h2 { font-size: 15px; }
    .ct-comment-compose { padding-bottom: 15px; }
    .ct-comment { padding: 14px 0; scroll-margin-top: 75px; }
    .ct-comment-input-row .ct-avatar { display: none; }
    .ct-comment-name-row { align-items: flex-start; }
    .ct-comment time { font-size: 9px; }
    .ct-filter-row { flex-direction: column; align-items: stretch; gap: 13px; margin-bottom: 19px; }
    .ct-filter-row .ct-search { max-width: none; }
    .ct-filter-row .ct-tabs { align-self: flex-start; }
    .ct-filter-row .ct-tab { min-width: 95px; }
    .ct-tribe-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
    .ct-tribe-cover { height: 170px; }
    .ct-tribe-card-body { padding: 20px; }
    .ct-tribe-card h2 { font-size: 17px; }
    .ct-tribe-description { min-height: 0; -webkit-line-clamp: 3; }
    .ct-tribe-card-meta { font-size: 11px; gap: 18px; margin: 15px 0 17px; }
    .ct-tribe-card .ct-join-button { min-height: 39px; }
    .ct-tribe-logo { width: 46px; height: 46px; }
    .ct-tribe-hero .ct-tribe-cover { height: 170px; }
    .ct-tribe-hero .ct-tribe-cover-letter { font-size: 56px; }
    .ct-tribe-hero-info { padding: 0 19px 19px; }
    .ct-tribe-hero .ct-tribe-logo { width: 61px; height: 61px; font-size: 26px; border-radius: 15px; }
    .ct-tribe-hero-title h1 { font-size: 21px; }
    .ct-tribe-hero-title .ct-pill { font-size: 9px; }
    .ct-tribe-hero-description { font-size: 12px; line-height: 1.85; }
    .ct-tribe-hero-meta { font-size: 10px; gap: 12px; }
    .ct-tribe-hero-actions { gap: 5px; }
    .ct-tribe-hero-actions .ct-button { padding: 7px 10px; min-height: 34px; font-size: 11px; }
    .ct-tribe-hero-actions .ct-button .ct-icon { width: 15px; height: 15px; }
    .ct-members-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .ct-member-card { padding: 17px; }
    .ct-member-actions { margin-top: 10px; }
    .ct-search-page-form { margin-bottom: 19px; }
    .ct-search-page-form input { font-size: 13px; }
    .ct-search-section > h2 { font-size: 16px; }
    .ct-search-device-list { grid-template-columns: minmax(0, 1fr); }
    .ct-profile-header { padding: 19px; gap: 13px; flex-wrap: wrap; }
    .ct-profile-header h1 { font-size: 20px; }
    .ct-profile-header .ct-avatar-large { width: 51px; height: 51px; font-size: 22px; }
    .ct-profile-header-actions { flex-basis: 100%; }
    .ct-profile-header-actions .ct-button { min-height: 32px; font-size: 11px; }
    .ct-notifications-header { align-items: flex-start; }
    .ct-notifications-header .ct-page-heading-actions { max-width: 110px; }
    .ct-notifications-header .ct-button { font-size: 10px; padding: 8px 9px; }
    .ct-notification { padding: 18px 14px; gap: 11px; flex-wrap: wrap; }
    .ct-notification-icon { width: 34px; height: 34px; border-radius: 10px; }
    .ct-notification-icon .ct-icon { width: 18px; height: 18px; }
    .ct-notification-copy { flex-basis: calc(100% - 45px); }
    .ct-notification-title { font-size: 12px; }
    .ct-notification-summary { font-size: 11px; }
    .ct-notification-meta { font-size: 9px; gap: 9px; }
    .ct-notification-read { margin: 0 0 0 45px; font-size: 9px; }
    .ct-settings-card { padding: 21px 18px; }
    .ct-settings-card > h2 { font-size: 16px; }
    .ct-settings-card > p { font-size: 11px; }
    .ct-settings-layout > .ct-settings-stack { display: flex; }
    .ct-settings-row { padding: 16px 0; }
    .ct-settings-row h3 { font-size: 12px; }
    .ct-settings-row p { font-size: 10px; }
    .ct-state { padding: 40px 21px; }
    .ct-state h1, .ct-state h2 { font-size: 17px; }
    .ct-state p { font-size: 11px; }
    .ct-state .ct-button { font-size: 12px; }
    .ct-chat-shell { display: flex; flex-direction: column; height: calc(100vh - var(--ct-topbar-height) - var(--ct-tabbar-height) - 43px - env(safe-area-inset-bottom)); height: calc(100dvh - var(--ct-topbar-height) - var(--ct-tabbar-height) - 43px - env(safe-area-inset-bottom)); min-height: 320px; }
    .ct-chat-list-panel { flex: 1; border-right: 0; }
    .ct-chat-list-header { padding: 21px 18px 15px; }
    .ct-chat-list-title h1 { font-size: 24px; }
    .ct-chat-search input { padding: 10px 0; font-size: 12px; }
    .ct-chat-filter-tabs { margin-top: 15px; }
    .ct-chat-filter-tabs .ct-tab { font-size: 11px; padding: 7px 12px; }
    .ct-conversation-list { padding: 7px 8px; }
    .ct-conversation { padding: 15px 12px; gap: 12px; }
    .ct-conversation .ct-avatar { width: 43px; height: 43px; }
    .ct-conversation-name { font-size: 13px; }
    .ct-conversation time { font-size: 10px; }
    .ct-conversation-snippet { font-size: 12px; }
    .ct-chat-thread { display: none; }
    .ct-chat-shell.has-conversation .ct-chat-list-panel { display: none; }
    .ct-chat-shell.has-conversation .ct-chat-thread { display: flex; flex: 1; }
    .ct-chat-shell .ct-chat-back { display: inline-flex; }
    body.ct-chat-active { overflow: hidden; }
    .ct-chat-active .ct-topbar, .ct-chat-active .ct-mobile-tabbar { display: none; }
    .ct-chat-active .ct-layout, .ct-chat-active .ct-layout.is-wide { padding: 0; }
    .ct-chat-active .ct-chat-shell { position: fixed; top: var(--ct-viewport-offset); right: 0; bottom: auto; left: 0; z-index: 70; height: var(--ct-viewport-height); min-height: 0; border: 0; border-radius: 0; }
    .ct-chat-active .ct-chat-thread { height: 100%; }
    .ct-chat-thread-header { padding: 10px 12px 10px 6px; min-height: 65px; gap: 7px; }
    .ct-chat-thread-header .ct-chat-back { width: 31px; height: 37px; }
    .ct-chat-thread-header .ct-avatar { width: 35px; height: 35px; }
    .ct-chat-thread-title h2 { font-size: 13px; }
    .ct-chat-thread-title p { font-size: 9px; }
    .ct-chat-thread-actions { gap: 0; }
    .ct-chat-thread-actions .ct-icon-button { width: 31px; height: 34px; }
    .ct-chat-thread-actions .ct-icon { width: 18px; height: 18px; }
    .ct-message-search { padding: 9px 13px; }
    .ct-message-scroll { padding: 12px 13px 19px; }
    .ct-message-list { gap: 18px; }
    .ct-message { max-width: 94%; gap: 7px; }
    .ct-message-bubble { font-size: 13px; padding: 9px 12px; }
    .ct-message-author { font-size: 10px; }
    .ct-message-meta { font-size: 9px; }
    .ct-message .ct-media-grid { max-width: 210px; }
    .ct-message-composer { padding: 8px 14px calc(10px + env(safe-area-inset-bottom)); }
    .ct-message-composer-tools { margin-bottom: 3px; }
    .ct-message-compose-row { gap: 8px; }
    .ct-message-compose-row textarea { font-size: 16px; min-height: 38px; max-height: 110px; height: 38px; padding: 4px 0; }
    .ct-message-compose-row .ct-button { font-size: 12px; min-height: 35px; }
    .ct-message-key-hint { display: none; }
    .ct-message-composer .ct-attachment-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
    .ct-message-composer .ct-attachment-remove { width: 21px; height: 21px; right: 2px; top: 2px; }
    .ct-message-composer .ct-attachment-remove .ct-icon { width: 12px; height: 12px; }
    .ct-new-messages { bottom: 115px; right: 15px; }
    .ct-chat-active .ct-toast-region { bottom: 135px; }
    .ct-modal-backdrop { padding: 18px 12px; align-items: center; }
    .ct-modal { border-radius: 15px; max-height: calc(var(--ct-viewport-height) - 36px); }
    .ct-modal-header { padding: 15px 17px; }
    .ct-modal-header h2 { font-size: 16px; }
    .ct-modal-body { padding: 18px; }
    .ct-modal-body > p { font-size: 12px; }
    .ct-modal .ct-composer-text textarea { min-height: 130px; }
    .ct-modal-footer .ct-button { font-size: 12px; min-height: 36px; }
    .ct-lightbox-modal .ct-modal-body { padding: 7px; }
    .ct-lightbox-image { max-height: calc(var(--ct-viewport-height) - 190px); }
    .ct-input, .ct-textarea, .ct-select { font-size: 16px; }
    .ct-composer-link .ct-input { font-size: 16px; }
}
@media (max-width: 350px) {
    .ct-brand-type > span { display: none; }
    .ct-brand-type strong { font-size: 12px; }
    .ct-layout, .ct-layout.is-wide { padding-left: 10px; padding-right: 10px; }
    .ct-composer, .ct-post, .ct-comments { padding: 13px; }
    .ct-tool-button { padding-left: 5px; padding-right: 5px; }
    .ct-tool-button span { font-size: 9px; }
    .ct-post-action { font-size: 9px; gap: 3px; }
    .ct-reaction-option { padding: 5px 6px; }
    .ct-chat-filter-tabs .ct-tab { padding: 7px 9px; }
}
.ct-composer-prompt .ct-composer-heading { align-items: center; margin-bottom: 16px; }
.ct-share-thoughts { flex: 1; text-align: left; color: #8b8b87; background: #f2f2f1; border: 1px solid #e0e0dc; border-radius: 14px; min-height: 48px; padding: 12px 16px; }
.ct-publish-media { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid; border-radius: 24px; background: transparent; font-size: 13px; min-height: 40px; }
.ct-publish-media.is-photo { color: #1689ee; border-color: #b1d6ff; background: #edf6ff; }
.ct-publish-media.is-video { color: #9870ef; border-color: #ddd0ff; background: #f5f0ff; }
.ct-publish-media.is-audio { color: #19a967; border-color: #b2e9d0; background: #effbf5; }
.ct-publish-dialog.is-wide { max-width: 674px; border-radius: 24px; }
.ct-publish-dialog .ct-modal-header { padding: 23px 24px; }
.ct-publish-dialog .ct-modal-body { padding: 0; }
.ct-publish-dialog .ct-modal-error { margin: 16px 24px 0; }
.ct-publish-account { display: flex; gap: 12px; align-items: center; padding: 17px 24px 24px; }
.ct-publish-account strong, .ct-publish-account span:not(.ct-avatar) { display: block; }
.ct-publish-account strong { font-size: 15px; }
.ct-publish-account div > span { color: #747470; font-size: 13px; margin-top: 3px; }
.ct-publish-fields { padding: 0 24px 23px; }
.ct-publish-label { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .4px; color: #777771; margin-bottom: 8px; }
.ct-publish-field { margin-bottom: 13px; }
.ct-publish-field .ct-input, .ct-publish-tribe-field { border-radius: 16px; background: #f1f1f2; border: 1px solid #d4d4d4; }
.ct-publish-field .ct-input { width: 100%; min-height: 46px; padding: 12px 15px; }
.ct-publish-field .ct-textarea { background: #f1f1f2; border: 1px solid #d4d4d4; border-radius: 16px; min-height: 120px; padding: 14px 16px; width: 100%; resize: vertical; }
.ct-publish-tribe-field { display: flex; align-items: center; gap: 12px; padding: 0 15px; min-height: 52px; margin-bottom: 19px; }
.ct-publish-tribe-field select { flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; padding: 14px 0; }
.ct-publish-count { display: flex; justify-content: flex-end; margin: -5px 0 10px; }
.ct-publish-form .ct-composer-toolbar { border: 0; padding: 0; margin-top: 5px; }
.ct-publish-form .ct-composer-tools, .ct-composer-prompt .ct-composer-tools { gap: 8px; }
.ct-publish-footer { display: flex; gap: 8px; align-items: center; padding: 17px 24px; border-top: 1px solid #d8d8d5; }
.ct-publish-footer .ct-button { border-radius: 24px; }
.ct-publish-footer .ct-button-primary { background: #f4697d; }
.ct-publish-footer .ct-button-primary:hover { background: #e64f67; }
.ct-post-title { font-size: 20px; margin: 15px 0 9px; line-height: 1.45; overflow-wrap: anywhere; }
.ct-post-labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0; }
.ct-post-tag { color: var(--ct-red); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 620px) {
    .ct-publish-dialog.is-wide { border-radius: 19px; }
    .ct-publish-account { padding: 16px 18px 22px; }
    .ct-publish-fields { padding: 0 18px 20px; }
    .ct-publish-dialog .ct-modal-header { padding: 18px; }
    .ct-publish-dialog .ct-modal-body { padding: 0; }
    .ct-publish-dialog .ct-modal-error { margin: 12px 18px 0; }
    .ct-publish-footer { padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); }
    .ct-publish-media { padding: 8px 12px; font-size: 12px; }
    .ct-share-thoughts { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* v2: original-site logo, brand/category publishing, detail layout, recent topics */
/* The original logo is white type: keep it on the original site's dark header colour. */
.ct-brand-logo-wrap { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 12px; background: #16213e; line-height: 0; }
.ct-brand-logo { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.ct-publish-tribe-field.is-locked { opacity: .85; }
.ct-publish-tribe-inputs { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 6px 0; }
.ct-tribe-query { border: 0; border-bottom: 1px dashed var(--ct-border); background: transparent; padding: 7px 0 6px; font-size: 12px; min-width: 0; }
.ct-tribe-query:focus { outline: none; border-bottom-color: var(--ct-red); }
.ct-publish-tribe-inputs select { padding: 9px 0 8px; }
.ct-join-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -10px 0 15px; padding: 10px 13px; border-radius: 12px; background: var(--ct-red-soft); color: var(--ct-red-dark); font-size: 11px; }
.ct-publish-field select.ct-input { appearance: auto; -webkit-appearance: auto; }
.ct-post-handle, .ct-post-dot, .ct-post-edited { font-size: 11px; color: var(--ct-muted); }
.ct-post-brand { color: var(--ct-red); font-size: 12px; font-weight: 600; }
.ct-post-brand:hover { color: var(--ct-red-dark); text-decoration: underline; }
.ct-post-divider { color: var(--ct-border); }
.ct-post-category { font-size: 12px; color: var(--ct-muted); }
.ct-post-back { flex: 0 0 auto; margin-right: -2px; }
.ct-post-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ct-post-title-row .ct-post-title { margin: 0; }
.ct-post-title-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.ct-post-title-actions .ct-icon-button[aria-pressed="true"] { color: var(--ct-red-dark); }
.ct-post.is-detail .ct-post-labels:empty { display: none; }
.ct-reaction-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.ct-reaction-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 16px; border: 1px solid #f0b4ba; border-radius: 999px; background: #fff; color: var(--ct-red-dark); font-size: 13px; font-weight: 600; cursor: pointer; }
.ct-reaction-chip .ct-emoji { font-size: 15px; line-height: 1; }
.ct-reaction-chip:hover { background: var(--ct-red-soft); }
.ct-reaction-chip.is-active { background: var(--ct-red-soft); border-color: var(--ct-red); }
.ct-post-stats { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--ct-muted); }
.ct-post-stats span { display: inline-flex; align-items: center; gap: 5px; }
.ct-post-detail .ct-comments { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.ct-post-detail .ct-post.is-detail { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.ct-post-detail .ct-comment-compose { margin: 14px 0 0; padding: 14px 0 0; border-bottom: 0; border-top: 1px solid var(--ct-border); }
.ct-post-detail .ct-comment-input-row textarea { min-height: 46px; border-radius: 22px; background: var(--ct-bg); padding: 12px 18px; }
.ct-topic-list { display: flex; flex-direction: column; }
.ct-topic-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ct-border); color: inherit; }
.ct-topic-item:first-child { padding-top: 0; }
.ct-topic-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-topic-item:hover .ct-topic-title { color: var(--ct-red-dark); }
.ct-topic-thumb { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px; background: var(--ct-soft); color: var(--ct-subtle); overflow: hidden; }
.ct-topic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-topic-thumb.is-brand-logo { background: #fff; border: 1px solid var(--ct-border); }
.ct-topic-thumb.is-brand-logo.is-dark { background: #242a34; }
.ct-topic-thumb.is-brand-logo img { object-fit: contain; padding: 5px; }
.ct-topic-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.ct-topic-title { font-size: 13px; font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ct-topic-brand { align-self: flex-start; background: var(--ct-red-soft); color: var(--ct-red-dark); font-size: 10px; }
.ct-topic-item > .ct-icon { flex: 0 0 auto; color: var(--ct-red); }
.ct-recent-card h2 { display: inline-flex; align-items: center; gap: 7px; }
.ct-recent-card h2 .ct-icon { width: 18px; height: 18px; }
@media (max-width: 620px) {
    /* Mobile: centre the logo between the menu button and the right-hand actions. */
    .ct-topbar-inner { position: relative; }
    .ct-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
    .ct-brand-logo-wrap { padding: 6px 9px; border-radius: 10px; }
    .ct-brand-logo { height: 26px; max-width: 120px; }
    .ct-reaction-chip { padding: 6px 12px; min-height: 36px; font-size: 12px; }
    .ct-post-title-row { gap: 6px; }
}

/* v8: official news */
.ct-news-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; background: var(--ct-red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .4px; }
.ct-post.is-news .ct-post-author-line strong { color: var(--ct-red-dark); }
.ct-news-cover { display: block; margin-top: 14px; border-radius: 14px; overflow: hidden; background: var(--ct-soft); }
.ct-news-cover img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.ct-news-read-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin-top: 14px; max-width: 100%; }
.ct-read-source, .ct-read-chinese { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 44px; padding: 9px 15px; border-radius: 999px; border: 1px solid #f0b4ba; background: #fff; color: var(--ct-red-dark); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.ct-read-chinese { flex: 0 0 auto; }
.ct-read-source { flex: 0 1 auto; }
.ct-read-source-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-read-source:hover { background: var(--ct-red-soft); }
.ct-read-chinese { border-color: var(--ct-red); background: var(--ct-red); color: #fff; }
.ct-read-chinese:hover { border-color: var(--ct-red-dark); background: var(--ct-red-dark); color: #fff; }
.ct-read-source .ct-icon, .ct-read-chinese .ct-icon { width: 15px; height: 15px; flex-shrink: 0; }
.ct-news-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ct-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--ct-border); background: #fff; color: var(--ct-text); font-size: 12px; cursor: pointer; }
.ct-chip:hover { border-color: #f0b4ba; color: var(--ct-red-dark); }
.ct-chip[aria-pressed="true"] { background: var(--ct-red); border-color: var(--ct-red); color: #fff; font-weight: 600; }
.ct-news-brand-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-news-brand-row select { min-height: 36px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--ct-border); background: #fff; font-size: 12px; max-width: 100%; }
.ct-news-brand-row .ct-muted { font-size: 11px; }
.ct-news-intro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ct-muted); margin: -6px 0 14px; }
@media (max-width: 620px) {
    .ct-chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .ct-chip { flex: 0 0 auto; }
    .ct-news-cover img { max-height: 260px; }
    .ct-news-read-links { width: 100%; flex-wrap: nowrap; }
    .ct-news-read-links .ct-read-chinese, .ct-news-read-links .ct-read-source { flex: 1 1 0; padding: 9px 10px; }
    .ct-read-source-host { display: none; }
}

/* v9: product catalog (产品大全) */
.ct-product-intro { font-size: 12px; color: var(--ct-muted); margin: -6px 0 14px; }
.ct-product-search { margin-bottom: 18px; }
.ct-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ct-product-card { display: flex; flex-direction: column; overflow: hidden; }
.ct-product-thumb { display: block; min-height: 132px; overflow: hidden; background: var(--ct-soft); }
.ct-product-thumb-link { display: block; }
.ct-product-thumb img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.ct-product-thumb-fallback { display: flex; align-items: center; justify-content: center; min-height: 132px; padding: 28px 0; color: var(--ct-subtle); }
.ct-product-info { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 14px 15px 16px; }
.ct-product-title { font-size: 15px; line-height: 1.45; }
.ct-product-price { font-size: 15px; font-weight: 700; color: var(--ct-red-dark); }
.ct-product-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 4px; }
.ct-product-modal .ct-modal-body { padding: 18px 20px 22px; }
.ct-product-dialog { display: flex; flex-direction: column; gap: 14px; }
.ct-product-dialog-search { width: 100%; }
.ct-product-dialog-body { min-height: 60px; }
.ct-product-dialog-note { margin-top: 12px; font-size: 11px; color: var(--ct-muted); }
.ct-product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ct-product-gallery-item { display: block; border-radius: 12px; overflow: hidden; background: var(--ct-soft); }
.ct-product-gallery-item img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; }
.ct-spec-block { padding: 14px 0; border-top: 1px solid var(--ct-border); }
.ct-spec-block:first-child { padding-top: 0; border-top: 0; }
.ct-spec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ct-spec-head h3 { font-size: 14px; }
.ct-spec-head .ct-text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.ct-spec-list { display: grid; grid-template-columns: minmax(88px, 34%) minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.ct-spec-list dt { color: var(--ct-muted); font-size: 12px; }
.ct-spec-list dd { margin: 0; font-size: 13px; word-break: break-word; }
.ct-spec-text { font-size: 13px; line-height: 1.9; }
.ct-price-list { display: flex; flex-direction: column; gap: 10px; }
.ct-price-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ct-border); border-radius: 12px; }
.ct-price-copy { flex: 1 1 auto; min-width: 0; }
.ct-price-copy h3 { font-size: 13px; }
.ct-price-value { font-size: 14px; font-weight: 700; color: var(--ct-red-dark); white-space: nowrap; }
.ct-price-value.is-locked { font-size: 11px; font-weight: 600; color: var(--ct-subtle); }
.ct-product-locked { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ct-soft); font-size: 12px; color: var(--ct-muted); }
@media (max-width: 1050px) {
    .ct-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .ct-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ct-product-title { font-size: 13px; }
    .ct-product-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .ct-product-actions .ct-button { width: 100%; min-width: 0; min-height: 26px; padding: 4px 1px; gap: 2px; font-size: 9px; border-radius: 6px; }
    .ct-product-actions .ct-button .ct-icon { width: 10px; height: 10px; }
    .ct-product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-price-row { flex-wrap: wrap; }
}
