/* ==============================================================================
   Tidy ATProto Interface — Graysky-Inspired Design System
   Calm, feed-first, decentralized social commons with custom Tidy Lexicons
   Design system v2 (#326): one suite teal on warm paper, flat, from css/tidy-core.css.
   ============================================================================== */

:root {
  /* Design system v2 (#326): each --tp-* name is the v2 token it means, from css/tidy-core.css.
     One suite colour (teal) on warm paper. The page keeps no colours of its own and no dark
     theme of its own: dark mode comes from the tokens. */
  --tp-bg: var(--bg);
  --tp-surface: var(--surface);
  --tp-surface-subtle: var(--surface-subtle);
  --tp-surface-card: var(--surface);
  --tp-border: var(--border);
  --tp-border-hover: var(--border-control);
  --tp-text-primary: var(--text-main);
  --tp-text-secondary: var(--text-body);
  --tp-text-muted: var(--text-muted);
  --tp-accent: var(--primary);
  --tp-accent-hover: var(--primary-dark);
  --tp-accent-light: var(--primary-light);
  --tp-primary: var(--primary);
  --tp-primary-light: var(--primary-light);
  --tp-success: var(--primary);
  --tp-success-light: var(--primary-light);
  --tp-warning: var(--accent-dark);
  --tp-warning-light: var(--accent-light);
  --tp-danger: var(--danger-ink);
  --tp-danger-light: var(--danger-light);
  --tp-font-sans: var(--font-sans);
  --tp-font-display: var(--font-display);
  --tp-font-mono: var(--font-mono);
}

body {
  background-color: var(--tp-bg);
  color: var(--tp-text-primary);
  font-family: var(--tp-font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

/* Headings in Fraunces (the design system's display face); everything else in Atkinson.
   Only h1 and h2 count: the brand name and each dialog's title (an h3) are Atkinson, in bold. */
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.tp-modal-title { font-weight: 700; }

/* Tidy icons (#326): line icons that take the text colour. They sit beside a word. */
.tidy-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ti { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; }

/* A person's initials in a round badge, where an avatar used to sit (#326). It stands beside
   the name, so screen readers skip it (aria-hidden). */
.tidy-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Container */
.tp-container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* The page's tools (#1135): search and posting, in the page under its sections. The dock
   draws the top bar and the place bar; the page draws no bar of its own. */
.tp-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

/* Search Bar (Graysky Search) */
.tp-search-bar {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 380px;
  position: relative;
}
@media (max-width: 900px) {
  .tp-search-bar { order: 3; flex-basis: 100%; max-width: none; }
}

.tp-search-input {
  width: 100%;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-control);
  background: var(--tp-surface-subtle);
  color: var(--tp-text-primary);
  font-size: 0.85rem;
  transition: all 0.15s ease;
}
.tp-search-input:focus {
  border-color: var(--tp-accent);
  background: var(--tp-surface);
}

.tp-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tp-text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Top Actions */
.tp-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.tp-btn-primary {
  background: var(--tp-accent);
  color: var(--on-action);
}
.tp-btn-primary:hover {
  background: var(--tp-accent-hover);
}

.tp-btn-secondary {
  background: var(--tp-surface-subtle);
  border: 1px solid var(--border-control);
  color: var(--tp-text-secondary);
}
.tp-btn-secondary:hover {
  background: var(--tp-surface);
  border-color: var(--tp-border-hover);
  color: var(--tp-text-primary);
}

.tp-btn-icon {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--border-control);
  background: var(--tp-surface);
  color: var(--tp-text-secondary);
}
.tp-btn-icon:hover {
  background: var(--tp-surface-subtle);
  color: var(--tp-text-primary);
}

/* Persona Account Dropdown */
.tp-persona-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-control);
  background: var(--tp-surface);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--tp-text-primary);
}
.tp-persona-chip:hover {
  border-color: var(--tp-accent);
}

.tp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tp-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Service Health Strip */
.tp-health-strip {
  background: var(--tp-surface-subtle);
  color: var(--tp-text-secondary);
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tp-border);
}

.tp-health-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}
.tp-health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tp-success);
}

/* Spaces Bar (Graysky Feeds Switcher Style) */
.tp-spaces-bar {
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
  padding: 0.5rem 0;
}

.tp-spaces-scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.tp-spaces-scroll::-webkit-scrollbar { display: none; }

.tp-space-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-control);
  background: var(--tp-surface);
  color: var(--tp-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tp-space-pill:hover {
  background: var(--tp-surface-subtle);
  border-color: var(--tp-border-hover);
  color: var(--tp-text-primary);
}
.tp-space-pill.active {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
  color: var(--on-action);
}

.tp-btn-new-space {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed var(--tp-accent);
  color: var(--tp-accent);
  background: var(--tp-accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Main Layout Grid */
.tp-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1rem 3rem;
}
.tp-grid > * { min-width: 0; }
@media (max-width: 840px) {
  .tp-grid {
    grid-template-columns: 1fr;
  }
}

/* Community's feeds are its sections (#1135): the shared section row (tidy-subnav). */
.tc-feeds { margin-bottom: 0.75rem; }
/* They're buttons (each switches the feed in place), so they drop the button's own box. */
.tc-feeds .tidy-subnav__item { border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.tc-feeds .tidy-subnav__item[aria-current="page"] { background: var(--primary-light); }

/* Filter Pills */
.tp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tp-filter-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tp-filter-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border-control);
  background: var(--tp-surface);
  color: var(--tp-text-secondary);
  cursor: pointer;
}
.tp-filter-chip:hover {
  border-color: var(--tp-border-hover);
}
.tp-filter-chip.active {
  background: var(--tp-accent);
  color: var(--on-action);
  border-color: var(--tp-accent);
}

/* Feed Cards (Graysky Card Pattern) */
.tp-card {
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.tp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tp-author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.tp-author-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tp-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 1px solid var(--tp-border);
}

.tp-author-names {
  line-height: 1.25;
}
.tp-display-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tp-text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tp-verified-badge {
  color: var(--primary);
  font-size: 0.85rem;
}
.tp-handle {
  font-size: 0.8rem;
  color: var(--tp-text-muted);
  font-family: var(--tp-font-mono);
}

.tp-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.tp-space-tag {
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
  color: var(--tp-text-secondary);
}
.tp-time-ago {
  color: var(--tp-text-muted);
}

.tp-card-body {
  font-size: 0.95rem;
  color: var(--tp-text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.55;
  white-space: pre-line;
}

/* Custom Lexicon Embed Boxes */
.tp-embed-box {
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--tp-border);
  background: var(--tp-bg);
}

/* 1. Tool Lending Embed: the neutral box */
.tp-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tp-tool-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--tp-text-primary);
}
.tp-tool-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* 2. Chore Record Embed */
.tp-embed-chore {
  background: var(--primary-light);
  border-color: var(--primary-light);
}
.tp-chore-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.85rem;
}
.tp-chore-points {
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--tp-surface);
  color: var(--primary-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* 3. Recipe Record Embed: the neutral box */
.tp-recipe-chips {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.tp-recipe-chip {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--tp-surface-subtle);
  color: var(--tp-text-secondary);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

/* 4. Mutual Aid Beacon Embed */
.tp-embed-aid {
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.tp-urgency-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--tp-surface);
  color: var(--accent-dark);
}

/* 5. Carpool Embed: the neutral box */

/* Post Action Row (Graysky Style) */
.tp-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tp-border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.tp-action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.tp-action-btn {
  background: none;
  border: none;
  color: var(--tp-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.tp-action-btn:hover {
  background: var(--tp-surface-subtle);
  color: var(--tp-text-primary);
}

.tp-action-btn.liked {
  color: var(--tp-primary);
}
.tp-action-btn.liked svg {
  fill: var(--tp-primary);
}

.tp-action-btn.reposted {
  color: var(--tp-primary);
}

.tp-btn-inspect {
  font-family: var(--tp-font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-control);
  background: var(--tp-surface-subtle);
  color: var(--tp-text-muted);
}
.tp-btn-inspect:hover {
  border-color: var(--tp-accent);
  color: var(--tp-accent);
}

/* Sidebar Widgets */
.tp-widget {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.tp-widget-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--tp-text-primary);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-space-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tp-border);
  font-size: 0.85rem;
}
.tp-space-item:last-child {
  border-bottom: none;
}

/* Modals */
.tp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 33, 31, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
/* Dialogs sit above the dock's place bar (z-index 9998) when it's drawn (#1135). */
html.tidy-has-place-bar .tp-modal-overlay { z-index: 10000; }
.tp-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.tp-modal {
  background: var(--tp-surface);
  border-radius: 16px;
  border: 1px solid var(--tp-border);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.tp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.tp-modal-title {
  font-size: 1.15rem;
  margin: 0;
}
.tp-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--tp-text-muted);
  cursor: pointer;
}

/* Composer Form */
.tp-composer-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--tp-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}
.tp-composer-tab {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  color: var(--tp-text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.tp-composer-tab.active {
  background: var(--tp-accent-light);
  color: var(--tp-accent);
  border-color: var(--tp-accent);
}

.tp-form-group {
  margin-bottom: 1rem;
}
.tp-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--tp-text-secondary);
  margin-bottom: 0.35rem;
}
.tp-input, .tp-textarea, .tp-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-control);
  background: var(--tp-surface-subtle);
  color: var(--tp-text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}
.tp-input:focus, .tp-textarea:focus, .tp-select:focus {
  border-color: var(--tp-accent);
  background: var(--tp-surface);
}

.tp-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Code Inspector Viewer */
.tp-code-viewer {
  background: var(--tp-surface-subtle);
  color: var(--tp-text-primary);
  font-family: var(--tp-font-mono);
  font-size: 0.8rem;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.45;
}

/* Thread Replies */
.tp-replies-list {
  margin-top: 1rem;
  border-left: 2px solid var(--tp-border);
  padding-left: 1rem;
}
.tp-reply-item {
  background: var(--tp-surface-subtle);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Signed in, or in the demo: until the dock says so, the page shows its sign-in screen (#tidy-gate). */
html:not([data-tidy-auth="signed_in"]):not([data-tidy-auth="demo"]) [data-tidy-gated] { display: none !important; }
[hidden] { display: none !important; }

/* What linked households sent (#679). */
.linked-head { font-size: 1.15rem; margin: 1rem 0 0.35rem; }
.linked-note { font-size: 0.85rem; color: var(--tp-text-secondary); margin: 0 0 0.75rem; }

/* A recipe a linked household shared (issue 680) */
.linked-recipe { margin: -0.4rem 0 1rem; padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; }
.linked-recipe summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.linked-recipe-head { font-size: 1rem; margin: 0.6rem 0 0.3rem; }
.linked-recipe ol, .linked-recipe ul { margin: 0 0 0 1.2rem; }
.linked-recipe-part { list-style: none; margin-left: -1.2rem; font-weight: 600; }
.recipe-picks { display: flex; flex-direction: column; max-height: 16rem; overflow-y: auto; }
.recipe-pick { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; overflow-wrap: anywhere; }
.recipe-picks-note { font-size: 0.85rem; color: var(--tp-text-muted); margin: 0.25rem 0; }

/* Page layout & component classes (#427) */
.tc-avatar-28 { width: 28px; height: 28px; font-size: 0.75rem; }
.tc-avatar-26 { width: 26px; height: 26px; font-size: 0.7rem; }
.tc-avatar-24 { width: 24px; height: 24px; font-size: 0.7rem; }
.tc-avatar-22 { width: 22px; height: 22px; font-size: 0.65rem; }
.tc-avatar-20 { width: 20px; height: 20px; font-size: 0.65rem; }
.tc-bold { font-weight: 700; }
.tc-gate-loading { text-align: center; color: var(--tp-text-muted); padding: 3rem 0; }
.tc-h1 { font-size: 1.6rem; margin: 0 0 0.35rem; }
.tc-intro { color: var(--tp-text-secondary); margin: 0 0 0.75rem; }
.tc-status-line { color: var(--tp-text-secondary); font-weight: 700; margin: 0 0 0.75rem; min-height: 1.2em; }
.tc-explore-card { margin-bottom: 1rem; }
.tc-explore-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.tc-h2 { font-size: 1.15rem; margin: 0; }
.tc-h2-review { font-size: 1.15rem; margin: 0.5rem 0 0.35rem; }
.tc-btn-xs { padding: 0.25rem 0.6rem; font-size: 0.78rem; }
.tc-btn-xxs { padding: 0.2rem 0.55rem; font-size: 0.76rem; }
.tc-btn-clear { padding: 0.25rem 0.65rem; font-size: 0.78rem; }
.tc-btn-feed { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
.tc-btn-feed-open { padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.tc-subtext-mb75 { font-size: 0.85rem; color: var(--tp-text-secondary); margin: 0 0 0.75rem; }
.tc-subtext-mb60 { font-size: 0.85rem; color: var(--tp-text-secondary); margin: 0 0 0.6rem; }
.tc-subtext-mb50 { font-size: 0.85rem; color: var(--tp-text-secondary); margin: 0 0 0.5rem; }
.tc-subtext-m0 { font-size: 0.85rem; color: var(--tp-text-secondary); margin: 0; }
.tc-subtext-xs-mb50 { font-size: 0.82rem; color: var(--tp-text-secondary); margin: 0 0 0.5rem; }
.tc-muted-mb75 { font-size: 0.82rem; color: var(--tp-text-muted); margin: 0 0 0.75rem; }
.tc-muted-xs { font-size: 0.8rem; color: var(--tp-text-muted); }
.tc-muted-82 { font-size: 0.82rem; color: var(--tp-text-muted); }
.tc-muted-82-m0 { font-size: 0.82rem; color: var(--tp-text-muted); margin: 0; }
.tc-muted-85-m0 { font-size: 0.85rem; color: var(--tp-text-muted); margin: 0; }
.tc-muted-85 { font-size: 0.85rem; color: var(--tp-text-muted); }
.tc-explore-feeds-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.85rem; }
.tc-people-heading { font-size: 0.82rem; font-weight: 700; color: var(--tp-text-secondary); margin-bottom: 0.4rem; }
.tc-wrap-gap40 { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tc-wrap-gap35 { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tc-filter-banner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.85rem; margin-bottom: 0.75rem; background: var(--tp-surface-subtle); }
.tc-filter-banner-text { font-size: 0.86rem; font-weight: 600; }
.tc-widget-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tc-check-label { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 0.88rem; cursor: pointer; }
.tc-check-label-sub { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 0.85rem; color: var(--tp-text-secondary); cursor: pointer; }
.tc-radio-label { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.tc-chat-pick-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; cursor: pointer; }
#comp-audience, .tc-fieldset-clean { border: 0; padding: 0; margin: 0 0 0.75rem; }
.tc-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.tc-composer-author { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--tp-text-secondary); }
.tc-col-gap35 { display: flex; flex-direction: column; gap: 0.35rem; }
.tc-row-end { display: flex; justify-content: flex-end; gap: 0.5rem; }
.tc-chat-messages-box { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; padding: 0.25rem 0; }
.tc-chat-send-form { display: flex; gap: 0.5rem; align-items: center; }
.tc-flex-1 { flex: 1; }
.tc-feed-card { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.75rem; border: 1px solid var(--tp-border); border-radius: 8px; background: var(--tp-surface); }
.tc-feed-card.is-active { background: var(--tp-surface-subtle); }
.tc-feed-card-title { font-weight: 700; font-size: 0.9rem; }
.tc-feed-card-count { font-weight: 400; font-size: 0.8rem; color: var(--tp-text-muted); }
.tc-feed-card-desc { font-size: 0.82rem; color: var(--tp-text-secondary); }
.tc-feed-card-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.tc-card-center-muted { text-align: center; color: var(--tp-text-muted); }
.tc-card-center { text-align: center; }
.tc-empty-title { font-weight: 700; color: var(--tp-text-secondary); margin-bottom: 0.3rem; }
.tc-poll-row-static { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.65rem; border: 1px solid var(--tp-border); border-radius: 8px; font-size: 0.86rem; }
.tc-text-secondary { color: var(--tp-text-secondary); }
.tc-poll-btn { justify-content: space-between; width: 100%; }
.tc-poll-count { font-size: 0.8rem; opacity: 0.9; }
.tc-poll-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.tc-reply-row { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; padding: 0.3rem 0; }
.tc-reply-author { margin-right: 0.35rem; }
.tc-reply-form { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.tc-reply-input { flex: 1; padding: 0.35rem 0.65rem; font-size: 0.85rem; }
.tc-thread-box { margin-top: 0.65rem; padding-top: 0.55rem; border-top: 1px solid var(--tp-border); }
.tc-author-btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.tc-post-title { font-weight: 700; color: var(--tp-text-primary); margin-bottom: 4px; }
.tc-post-details { margin-top: 6px; font-size: 0.85rem; color: var(--tp-text-secondary); }
.tc-action-static { cursor: default; }
.tc-chat-list-btn { justify-content: flex-start; text-align: left; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.tc-chat-list-title { font-weight: 700; color: var(--tp-text-primary); }
.tc-chat-list-last { font-size: 0.78rem; color: var(--tp-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tc-chat-msg { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.35rem 0.5rem; border-radius: 8px; background: var(--tp-surface-subtle); }
.tc-chat-msg.is-mine { background: var(--tp-accent-light); }
.tc-chat-msg-who { font-size: 0.78rem; font-weight: 700; color: var(--tp-text-secondary); }
.tc-chat-msg-text { font-size: 0.88rem; color: var(--tp-text-primary); }
