/*
 * styles/hub-meeting.css — the Hub Meeting View (2026-07-15-hub-meeting-view).
 * ──────────────────────────────────────────────────────────────────────────
 * Scoped to .view-hub-meeting + its hm-* atoms. Tokens only (no ad-hoc hex) so it
 * tracks the Fresh brand; @media print turns the roster into a paper attendance
 * sheet. Loaded from index.html alongside the other view sheets.
 */

.view-hub-meeting { display: flex; flex-direction: column; gap: 1rem; }

/* ── ice-breaker ─────────────────────────────────────────────────────────────*/
.hm-icebreaker {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--fresh-green) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--fresh-green) 30%, var(--line));
}
.hm-icebreaker > .fa-icon { color: var(--fresh-green-d); font-size: 1.4rem; margin-top: .1rem; flex: none; }
.hm-icebreaker__label {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fresh-green-d); margin-bottom: .2rem;
}
.hm-icebreaker__q p { margin: 0; font-weight: 700; color: var(--ink); }

/* ── live stat row ───────────────────────────────────────────────────────────*/
.hm-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.hm-stat {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.hm-stat .fa-icon { color: var(--accent, var(--fresh-purple)); }
.hm-bar { display: flex; gap: .5rem; }

/* ── roster ──────────────────────────────────────────────────────────────────*/
.hm-roster { display: flex; flex-direction: column; gap: 1.25rem; }
.hm-section__title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0 0 .6rem;
}
.hm-section__title .fa-icon { color: var(--accent, var(--fresh-purple)); }
.hm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }

.hm-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr);
  gap: .75rem 1rem; align-items: center;
  padding: .8rem .9rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.hm-row--guest { background: color-mix(in srgb, var(--fresh-purple) 5%, var(--surface)); }
.hm-row--empty { display: block; color: var(--muted); font-style: italic; }

.hm-row__who { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.hm-row__idblock { min-width: 0; }
.hm-row__name { font-weight: 800; color: var(--ink); text-decoration: none; }
a.hm-row__name:hover { text-decoration: underline; }
.hm-row__sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.hm-row__reach, .hm-row__reg {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--muted); margin-top: .15rem;
}
.hm-row__reach .fa-icon, .hm-row__reg .fa-icon { color: var(--fresh-green-d); }
.hm-row__chip {
  display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem;
  padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; font-weight: 800;
  background: color-mix(in srgb, var(--fresh-purple) 18%, var(--surface)); color: var(--fresh-purple);
}

.hm-row__controls { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.hm-row__conn { min-width: 0; }

/* toggle buttons (attendance + follow-up) */
.btn.hm-att.is-on { background: var(--fresh-green); border-color: var(--fresh-green-d); color: #fff; }
.btn.hm-flag.is-on { background: var(--fresh-yellow); border-color: var(--fresh-yellow); color: var(--ink); }

/* ── connection control ──────────────────────────────────────────────────────*/
.hm-conn { display: flex; flex-direction: column; gap: .35rem; }
.hm-conn__eff { display: flex; align-items: center; gap: .45rem; }
.hm-conn__eff .fa-icon { color: var(--fresh-green-d); }
.hm-conn__pill {
  display: inline-flex; padding: .12rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 800;
}
.hm-conn__pill--strong { background: var(--fresh-green); color: #fff; }
.hm-conn__pill--connection { background: color-mix(in srgb, var(--fresh-green) 22%, var(--surface)); color: var(--fresh-green-d); }
.hm-conn__pill--none { background: var(--bg); color: var(--muted); border: 1px dashed var(--line); }
.hm-conn__detail { margin: 0; font-size: .74rem; color: var(--muted); }
.hm-conn__cycle { align-self: flex-start; }

.hm-suggest {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  padding: .45rem .6rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--fresh-orange) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--fresh-orange) 30%, var(--line));
}
.hm-suggest__label { font-weight: 800; font-size: .78rem; color: var(--fresh-orange-d); display: inline-flex; align-items: center; gap: .3rem; }
.hm-suggest__why { font-size: .74rem; color: var(--muted); flex: 1 1 8rem; min-width: 0; }

/* ── CRM notes modal ─────────────────────────────────────────────────────────*/
.hm-notes { display: flex; flex-direction: column; gap: 1rem; }
.hm-composer { display: flex; flex-direction: column; gap: .5rem; }
.hm-composer__text, .hm-composer__tags {
  width: 100%; font: inherit; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  resize: vertical; box-sizing: border-box;
}
.hm-composer .btn { align-self: flex-start; }
.hm-notes__feed { display: flex; flex-direction: column; gap: .7rem; }
.hm-note {
  padding: .7rem .85rem; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
}
.hm-note__meta { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--muted); }
.hm-note__meta .fa-icon { color: var(--muted); }
.hm-note__body { margin: .35rem 0 .5rem; color: var(--ink); white-space: pre-wrap; }
.hm-note__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem; }
.hm-tag {
  display: inline-flex; align-items: center; gap: .15rem;
  padding: .05rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 700;
  background: color-mix(in srgb, var(--fresh-navy) 12%, var(--surface)); color: var(--fresh-navy);
}
.hm-tag .fa-icon { font-size: .6rem; }
.hm-note__history { margin-top: .25rem; }
.hm-note__history summary { cursor: pointer; font-size: .74rem; color: var(--fresh-purple); display: inline-flex; align-items: center; gap: .3rem; }
.hm-note__rev { display: flex; flex-direction: column; padding: .35rem 0 .35rem .8rem; border-left: 2px solid var(--line); margin-top: .35rem; }
.hm-note__rev-when { font-size: .68rem; color: var(--muted); }
.hm-note__rev-body { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.hm-note__edit { margin-top: .25rem; }

/* ── auto-partner brainstorm panel ───────────────────────────────────────────*/
.hm-panel {
  padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--fresh-purple) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--fresh-purple) 22%, var(--line));
}
.hm-panel__head h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.hm-panel__head h2 .fa-icon { color: var(--fresh-purple); }
.hm-panel__lede { margin: 0 0 .8rem; color: var(--muted); font-size: .88rem; }
.hm-panel__brokers { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.hm-broker {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: 999px; font-weight: 700; font-size: .82rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.hm-broker .fa-icon { color: var(--fresh-green-d); }
.hm-panel__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.hm-panel__item { padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.hm-panel__name { font-weight: 800; color: var(--ink); text-decoration: none; }
.hm-panel__name:hover { text-decoration: underline; }
.hm-panel__recos { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.hm-panel__reco { display: flex; align-items: flex-start; gap: .4rem; font-size: .85rem; color: var(--ink); }
.hm-panel__reco .fa-icon { color: var(--fresh-green-d); margin-top: .15rem; flex: none; }
.hm-panel__reco--indirect { color: var(--muted); }
.hm-panel__reco--indirect .fa-icon { color: var(--fresh-purple); }

/* ── responsive ──────────────────────────────────────────────────────────────*/
@media (max-width: 720px) {
  .hm-row { grid-template-columns: 1fr; }
}

/* ── print: the paper attendance sheet ───────────────────────────────────────*/
.hm-print-sheet { display: none; }
.hm-print-sheet__masthead { font-size: 1.05rem; margin-bottom: .35rem; }
.hm-print-sheet__ice { font-size: .85rem; margin-bottom: .6rem; font-style: italic; }
.hm-print-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.hm-print-table th, .hm-print-table td { border: 1px solid #888; padding: .3rem .4rem; text-align: left; vertical-align: top; }
.hm-print-table th { background: #eee; font-weight: 700; }
.hm-print-table__check { text-align: center; }
.hm-print-checkbox { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #333; border-radius: 2px; }

@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .view-hub-meeting { gap: .5rem; }
  .hm-print-sheet { display: block !important; }
  /* keep the on-screen roster off the paper — the print sheet is the hand-out */
  .hm-roster, .hm-icebreaker { display: none !important; }
}
