/* ============================================================================
   Meetings (js/meetings.js) — list view, new-meeting dialog, capture bar.
   ============================================================================ */

.mtg-root { max-width: 820px; margin: 0 auto; padding: 34px 28px 80px; }

.mtg-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 26px;
}
.mtg-title {
  margin: 0; font-family: var(--font-display, inherit);
  font-size: 27px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text, #2b2b31);
}
.mtg-new {
  padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  background: var(--accent, #5b5bd6); color: #fff; border: none; cursor: pointer;
  flex-shrink: 0;
}
.mtg-new:hover { filter: brightness(1.08); }

.mtg-section { margin-bottom: 26px; }
.mtg-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-faint, #8b8b96); margin-bottom: 9px;
  display: flex; align-items: center; gap: 7px;
}
.mtg-count {
  font-size: 10.5px; letter-spacing: 0; padding: 1px 6px; border-radius: 9px;
  background: var(--bg-soft, rgba(0,0,0,.06)); color: var(--text-light, #6b6b76);
}

.mtg-list { display: flex; flex-direction: column; gap: 6px; }
.mtg-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 10px; cursor: pointer; text-align: start;
  background: var(--bg, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  transition: border-color .14s ease, transform .12s ease;
}
.mtg-card:hover {
  border-color: var(--accent, #5b5bd6);
  transform: translateY(-1px);
}
.mtg-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mtg-card-title {
  font-size: 14.5px; font-weight: 600; color: var(--text, #2b2b31);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mtg-card-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-light, #6b6b76);
}
.mtg-people { color: var(--text-faint, #8b8b96); }
.mtg-card-tags { display: flex; gap: 5px; flex-shrink: 0; }
.mtg-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 9px;
  background: var(--bg-soft, rgba(0,0,0,.06)); color: var(--text-light, #6b6b76);
}
.mtg-tag-ok {
  background: color-mix(in srgb, #3e8e5f 16%, transparent); color: #2f7a4f;
}

.mtg-empty { text-align: center; padding: 8vh 20px; }
.mtg-empty-t { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--text, #2b2b31); }
.mtg-empty-s {
  font-size: 13.5px; color: var(--text-light, #6b6b76);
  max-width: 420px; margin: 0 auto 18px; line-height: 1.6;
}

/* --------------------------------------------------------------- dialog -- */
.mtg-overlay {
  position: fixed; inset: 0; z-index: 1210;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(12,12,20,.46); backdrop-filter: blur(3px);
}
.mtg-modal {
  width: min(460px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--bg, #fff); border-radius: 13px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  padding: 0 20px 18px;
}
.mtg-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 14px; position: sticky; top: 0; background: inherit;
}
.mtg-modal-head h2 {
  margin: 0; font-size: 16px; font-weight: 600;
  font-family: var(--font-display, inherit); color: var(--text, #2b2b31);
}
.mtg-close {
  width: 28px; height: 28px; border-radius: 6px; font-size: 20px; line-height: 1;
  background: none; border: none; cursor: pointer; color: var(--text-light, #6b6b76);
}
.mtg-close:hover { background: var(--hover, rgba(0,0,0,.06)); }

.mtg-field { display: block; margin-bottom: 12px; }
.mtg-field > span {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-faint, #8b8b96); margin-bottom: 5px;
}
.mtg-input {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: 7px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--border, rgba(0,0,0,.14));
  background: var(--bg-input, #fff); color: var(--text, #2b2b31);
}
.mtg-input:focus { outline: 2px solid var(--accent, #5b5bd6); outline-offset: -1px; border-color: transparent; }
.mtg-textarea { resize: vertical; min-height: 70px; line-height: 1.5; }

.mtg-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light, #6b6b76); margin: 4px 0 16px;
  cursor: pointer;
}

.mtg-modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
.mtg-btn {
  padding: 7px 14px; border-radius: 7px; font-size: 13.5px; cursor: pointer;
  background: var(--bg-soft, rgba(0,0,0,.05));
  border: 1px solid var(--border, rgba(0,0,0,.08));
  color: var(--text, #2b2b31);
}
.mtg-btn:hover { background: var(--hover, rgba(0,0,0,.08)); }
.mtg-btn-primary { background: var(--accent, #5b5bd6); border-color: transparent; color: #fff; }
.mtg-btn-primary:hover { filter: brightness(1.08); background: var(--accent, #5b5bd6); }
.mtg-btn[disabled] { opacity: .6; cursor: default; }

/* ---------------------------------------------------------- capture bar -- */
/* Shown on an open meeting page (mounted by app.js). */
.mtg-capture {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 10px 12px; border-radius: 9px;
  background: var(--bg-soft, rgba(0,0,0,.035));
  border: 1px solid var(--border, rgba(0,0,0,.07));
  font-size: 13px; color: var(--text-light, #6b6b76);
}
.mtg-capture-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 500;
  background: var(--accent, #5b5bd6); color: #fff; border: none; cursor: pointer;
}
.mtg-capture-btn:hover { filter: brightness(1.08); }
.mtg-capture-btn[disabled] { opacity: .6; cursor: default; }
.mtg-capture-btn.mtg-recording { background: #d0453e; }
.mtg-capture-note { flex: 1; min-width: 160px; }

@media (max-width: 640px) {
  .mtg-root { padding: 22px 16px 60px; }
  .mtg-title { font-size: 22px; }
}
