/* General identity; chat palettes remain independently scoped. */
:root, :root[data-palette="tdigital"] {
  --color-primary:#167E7E; --color-accent:#12EDCF; --color-secondary:#6FA3A9;
  --color-dark:#344D49; --color-deep:#26445F;
  --brand:var(--color-primary); --accent:var(--color-secondary); --jade:var(--color-primary); --lime:var(--color-accent);
}
:root[data-theme="light"]:not([data-palette]), :root[data-theme="light"][data-palette="tdigital"] { --accent:#167E7E; --lime:#167E7E; }
body { background:var(--bg)!important; }
.topbar,.bottomnav {background:var(--surface)!important;border-color:var(--line)!important}
.topbar .brand,.activity-kicker {color:var(--accent)}
.btn.primary:not(.mobile-chat-page .btn),.client-post-action.primary {background:var(--jade);color:#fff}
:root[data-theme] .client-post-action.primary {background:color-mix(in srgb,var(--jade) 60%,#000);color:#fff}
.admin-nav-group button.active,.admin-mobile-nav>button.active {border-color:var(--color-primary);background:color-mix(in srgb,var(--color-primary) 18%,var(--surface))}
.client-home-overview,.publish-group>header {background:color-mix(in srgb,var(--color-primary) 10%,var(--surface))}
.post.client-post-card {background:var(--surface);border-color:var(--line);border-radius:8px}
.client-post-media {min-height:0;background:var(--surface-2)}
.client-post-media>img,.client-catalog-grid .client-post-media>img {width:100%;height:320px;max-height:55dvh;aspect-ratio:auto;object-fit:contain}
.client-carousel,.client-catalog-grid .client-carousel {height:320px;max-height:55dvh;aspect-ratio:auto;background:var(--surface-2)}
.client-carousel-slide img {object-fit:contain}
.client-post-image-title,.client-post-media-shade {display:none}
.client-post-content h3 {font-family:var(--font);font-size:1.3rem;font-weight:800;line-height:1.3;letter-spacing:0}
.client-post-media.no-image .client-post-fallback{min-height:120px;height:120px}
.client-post-card .post-options-wrap{position:absolute;right:.7rem;left:auto;top:.7rem}
:root[data-palette="tdigital"] .bottomnav button.active{background:#167E7E;color:#fff}
:root[data-palette="tdigital"] .client-home-overview{border-color:#344D49}
.client-post-content {gap:.7rem}.client-post-copy {line-height:1.65}
.client-post-badge {background:#26445F;color:white}
.client-post-hashtags span {border-color:var(--color-primary);background:color-mix(in srgb,var(--color-primary) 8%,var(--surface))}
.agenda header {margin-bottom:1rem}.agenda-filters{margin-bottom:1rem}
.agenda-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}
.agenda-row>div:first-child{min-width:0;overflow-wrap:anywhere}.agenda-row h3{font-size:1rem;margin:.2rem 0}.agenda-row p{white-space:pre-wrap}
.avatar-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:.6rem}
.avatar-choice{min-width:0}.avatar-choice img{max-width:100%;object-fit:contain}
:where(.mobile-chat-page){--brand:#4ab54d;--accent:#4ab54d;--jade:#2f9671;--lime:#a7ba37}
:root[data-theme="light"] :where(.mobile-chat-page:not([data-chat-palette])){--accent:#2f9671}
@media(max-width:520px){.client-post-media>img,.client-catalog-grid .client-post-media>img,.client-carousel,.client-catalog-grid .client-carousel{height:285px;max-height:48dvh}.client-post-content h3{font-size:1.2rem}.agenda-row{gap:.5rem}.agenda-filters{gap:.35rem}}
