


/* Shared content stack (Public, Calendar, Workflow) */
.content-stack > .card,
.content-stack > .expander,
#meetings-list > .expander {
  margin-bottom: 16px;
}
.cal-toolbar {
  margin-bottom: 16px;
}

/* --- Utility layout / text (prefer classes over inline styles) --- */
.muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-error { color: #b42318; font-size: 13px; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.my-8 { margin: 8px 0; }
.my-12 { margin: 12px 0; }
.section-title {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.section-title-sm {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.section-lead {
  color: var(--text-muted);
  margin: 8px 0 12px;
  font-size: 13px;
}
.section-lead-tight {
  color: var(--text-muted);
  margin: 0 0 8px;
  font-size: 12px;
}
.meta-line {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.hint-error {
  display: none;
  color: #b42318;
  font-size: 13px;
  margin: 10px 0 0;
}
.hint-error.visible { display: block; }
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.toolbar-end {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.form-row-inline {
  margin: 0;
  min-width: 200px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-row-inline label {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}
.form-row-inline .org-select {
  width: auto;
  min-width: 150px;
  flex: 0 1 auto;
  height: var(--control-sm);
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
}


.toolbar-end .btn-sm {
  margin-top: 0;
}

.form-row-full {
  margin: 0;
  grid-column: 1 / -1;
}
.form-row-tight { margin: 0; }
.form-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.list-indent {
  margin-left: 18px;
  line-height: 1.7;
  color: var(--text);
}
.reply-block {
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid var(--border);
}
.ticket-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.ticket-body { margin: 0 0 6px; }
.card-narrow { max-width: 480px; }
.settings-card { width: 100%; max-width: none; box-sizing: border-box; }
.flex-gap-8 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flex-gap-6 {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.att-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13px;
}
.status-msg {
  margin-top: 12px;
  font-size: var(--font-size-md);
  color: var(--text-muted);
  line-height: 1.5;
}
.page-note {
  color: var(--text-muted);
  font-size: 13px;
}
.w-full { width: 100%; }
.w-full.mt-8 { margin-top: 8px; }
.cal-label-strong { margin: 0 8px; }
.dir-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.nested-expander {
  margin-top: 8px;
  margin-bottom: 8px;
}
.changelog-body {
  font-size: 12px;
}
.changelog-body .list-item {
  margin-bottom: 6px;
}
.settings-card-title {
  margin: 0 0 12px;
  font-size: 15px;
}
.welcome-actions { margin-top: 12px; }

.accent-text { color: var(--accent); }
.section-lead-block {
  color: var(--text-muted);
  font-size: 13px;
  margin: 8px 0 12px;
}
.label-inline {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.heading-today {
  margin: 0 0 12px;
}
.cal-empty {
  color: var(--text-muted);
  font-size: 12px;
}
.cal-meet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cal-meet-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.cal-meet-mins {
  font-size: 13px;
  margin: 0;
}
.cal-slot {
  margin-bottom: 16px;
}
.cal-slot-title {
  margin: 0 0 8px;
  font-size: 14px;
}
.settings-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.td-center { text-align: center; }
.file-view-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.file-preview-msg { padding: 16px; }
.toolbar-top { margin-top: 8px; }
/* Two classes deliberately: `.expander-body .toolbar` in components.css sets
   margin-top:12px, and a single-class `.toolbar-reply` loses to it. The old
   8px here never applied for the same reason. */
.toolbar.toolbar-reply {
  /* Separated from the status actions above it; packed against them the reply
     box read as part of that button row rather than as its own step. */
  margin-top: 20px;
  gap: 8px;
  align-items: flex-start;
}
.reply-input {
  /* Was flex:1, which stretched the reply box across the full panel width.
     Start at a readable measure instead, and let the user drag it larger --
     max-width is the container, not a fixed cap, so resizing is not blocked. */
  flex: 0 1 auto;
  width: 46ch;
  max-width: 100%;
  min-width: 180px;
  resize: both;
  /* Keep typed text off the border, same measure as .search-input inputs. */
  padding: 7px 10px;
  /* Textareas default to the browser's monospace face; match the rest of the UI. */
  font: inherit;
  line-height: 1.4;
}
.subhead {
  font-size: 12px;
  margin: 8px 0 4px;
}
.ticket-body-text {
  margin: 0 0 8px;
  font-size: 13px;
}

/* Live attendance controls */
.live-attendance { margin-top: 12px; }
.live-att-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.attendee-row { display: grid; grid-template-columns: minmax(220px, 1fr) 140px 150px auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.attendee-row > label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.attendee-row > label input { flex: 0 0 auto; }
.attendee-row .toolbar { margin: 0; justify-content: flex-end; }
/* The roster variant has two children (name block + actions), not the four the
   grid above is sized for, so its toolbar landed in the fixed 140px column and
   the buttons wrapped. Give it its own two-column track and keep the actions
   on one line. */
.attendee-roster { grid-template-columns: minmax(200px, 1fr) auto; }
.attendee-roster .toolbar { flex-wrap: nowrap; }
.attendee-roster .toolbar .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 820px) {
  .attendee-row { grid-template-columns: 1fr; }
  .attendee-row .toolbar { justify-content: flex-start; }
}

/* Client org picker: title + select locked on one row */
.client-org-row,
#client-org-card .client-org-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  min-width: 0;
  width: 100%;
}
#client-org-card .client-org-row .section-title,
.client-org-row .section-title {
  display: inline-block;
  margin: 0 !important;
  padding: 0;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: var(--control-h, 32px);
}
#client-org-card .client-org-row .org-select,
.client-org-row .org-select,
.client-org-row select {
  display: inline-block;
  width: auto !important;
  max-width: min(280px, 100%);
  min-width: 160px;
  flex: 0 1 auto;
  margin: 0 !important;
}
#client-org-card {
  padding-top: 12px;
  padding-bottom: 12px;
}
