/* Team Meetings (team-meetings.js): dark theme to match the Admin and Facilitator portals. Phone-first: nothing overlaps, everything wraps. */
.tm { --n1: #0b1f3a; --n2: #12305a; --n3: #1b447c; --gold: #f5b400; --gold2: #ffd24d; --line: rgba(255,255,255,.14); --mut: #a9b8d0; background: var(--n1); color: #eaf0fb; border-radius: 20px; padding: 18px; border: 1px solid rgba(245,180,0,.25); min-width: 0; max-width: 100%; }
.tm *, .tm *::before, .tm *::after { box-sizing: border-box; }
.tm :where(b, small, span, p, li, em, h3, h4, h5, button, label, time, a) { overflow-wrap: anywhere; }
.tm-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.tm-head h3 { margin: 0; font-size: 21px; font-weight: 800; color: #fff; } .tm-head p { margin: 4px 0 0; color: var(--mut); font-size: 13px; max-width: 640px; }
.tm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font: 700 13px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none; text-align: center; }
.tm-btn:hover { background: rgba(255,255,255,.16); } .tm-btn:disabled { opacity: .6; cursor: default; }
.tm-gold { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: var(--n1); border-color: transparent; } .tm-gold:hover { filter: brightness(1.07); background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.tm-danger { color: #fca5a5; border-color: rgba(239,68,68,.5); }
.tm-link { background: none; border: 0; color: var(--gold2); font: 700 12px inherit; font-family: inherit; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.tm-nav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 8px; scrollbar-width: thin; }
.tm-nav button { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--n2); color: #eaf0fb; font: 700 13px inherit; font-family: inherit; cursor: pointer; }
.tm-nav button.on { background: var(--gold); color: var(--n1); border-color: var(--gold); } .tm-nav i { font-style: normal; background: #ef4444; color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.tm-body { display: grid; gap: 14px; min-width: 0; }
.tm-card { background: var(--n2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.tm-card h4 { margin: 0 0 6px; font-size: 16px; color: #fff; } .tm-card p { margin: 6px 0; font-size: 13px; }
.tm-card-h { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 8px; } .tm-card-h h4 { margin: 0; }
.tm-next small { color: var(--gold2); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; } .tm-next h4 { font-size: 20px; margin: 4px 0; }
.tm-agenda, .tm-pre { white-space: pre-wrap; color: #dbe6f7; } .tm-mut { color: var(--mut); font-size: 12.5px; } .tm-note { color: var(--mut); font-size: 12px; margin: 6px 0; }
.tm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.tm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; }
.tm-stat { background: var(--n2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; } .tm-stat b { display: block; font-size: 26px; color: var(--gold); line-height: 1.1; } .tm-stat span { font-size: 11.5px; color: var(--mut); font-weight: 700; } .tm-stat.warn b { color: #fb923c; }
.tm-alert { padding: 12px 14px; border-radius: 14px; background: rgba(245,180,0,.12); border: 1px solid rgba(245,180,0,.5); color: #ffe9a6; font-size: 13px; } .tm-alert ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.tm-empty { padding: 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--mut); font-size: 13px; text-align: center; }
.tm-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; line-height: 1.3; text-align: center; background: rgba(255,255,255,.12); }
.tm-ok { background: rgba(34,197,94,.2); color: #86efac; } .tm-warn { background: rgba(245,158,11,.22); color: #fcd34d; } .tm-bad { background: rgba(239,68,68,.22); color: #fca5a5; } .tm-mut.tm-pill, .tm-pill.tm-mut { background: rgba(148,163,184,.22); color: #cbd5e1; } .tm-info { background: rgba(59,130,246,.22); color: #93c5fd; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .tm-chips button { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--n2); color: #eaf0fb; font: 700 12.5px inherit; font-family: inherit; cursor: pointer; } .tm-chips button.on { background: var(--gold); color: var(--n1); border-color: var(--gold); }
.tm-list { display: grid; gap: 10px; }
.tm-mtg { background: var(--n2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; } .tm-mtg.cancelled { opacity: .7; }
.tm-mtg-h { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: none; border: 0; color: inherit; text-align: left; font-family: inherit; cursor: pointer; }
.tm-date { width: 48px; text-align: center; background: var(--n1); border: 1px solid rgba(245,180,0,.45); border-radius: 12px; padding: 5px 0; } .tm-date b { display: block; font-size: 18px; color: var(--gold); line-height: 1.1; } .tm-date i { font-style: normal; font-size: 11px; color: var(--mut); text-transform: uppercase; }
.tm-mtg-t { display: grid; gap: 2px; min-width: 0; } .tm-mtg-t b { color: #fff; font-size: 14px; } .tm-mtg-t small { color: var(--mut); font-size: 12px; }
.tm-mtg-s { display: grid; gap: 4px; justify-items: end; }
.tm-mtg-b { border-top: 1px solid var(--line); padding: 4px 14px 14px; display: grid; gap: 4px; font-size: 13px; } .tm-mtg-b h5 { margin: 10px 0 2px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold2); }
.tm-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tm-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .tm-acts li { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); } .tm-acts li.done { opacity: .65; } .tm-acts li b { display: block; } .tm-acts small { color: var(--mut); }
.tm-fld { display: grid; gap: 4px; min-width: 0; flex: 1 1 160px; margin-bottom: 8px; } .tm-fld > span { font-size: 11.5px; font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.tm-in { width: 100%; max-width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--n1); color: #fff; font: 14px inherit; font-family: inherit; min-width: 0; } .tm-in:focus { outline: 2px solid var(--gold); outline-offset: 1px; } textarea.tm-in { resize: vertical; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.tm-filters .tm-fld { flex: 1 1 150px; }
.tm-atts { display: grid; gap: 10px; margin: 10px 0; }
.tm-att { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.tm-att-n { min-width: 0; } .tm-att-n b { display: block; color: #fff; } .tm-att-n small { display: block; color: var(--mut); } .tm-ap { display: block; font-style: normal; margin-top: 4px; font-size: 12px; color: #fde68a; }
.tm-marks { display: inline-flex; gap: 6px; } .tm-marks button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--n1); color: #fff; font: 800 14px inherit; font-family: inherit; cursor: pointer; }
.tm-marks button.on.ok { background: #16a34a; border-color: #16a34a; } .tm-marks button.on.warn { background: #d97706; border-color: #d97706; } .tm-marks button.on.bad { background: #dc2626; border-color: #dc2626; } .tm-marks button.on.mut { background: #64748b; border-color: #64748b; }
.tm-rep { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); margin-top: 8px; overflow: hidden; }
.tm-rep-h { width: 100%; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 14px; background: none; border: 0; color: inherit; font-family: inherit; text-align: left; cursor: pointer; } .tm-rep-n { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; } .tm-rep-n b { color: #fff; } .tm-rep-r { font-size: 22px; font-weight: 800; color: var(--gold); white-space: nowrap; flex: 0 0 auto; }
.tm-rep-s { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(70px, 100%), 1fr)); gap: 6px; padding: 0 14px 12px; } .tm-rep-s span { font-size: 11px; color: var(--mut); } .tm-rep-s i { display: block; font-style: normal; font-size: 16px; font-weight: 800; color: #fff; }
.tm-tl { list-style: none; margin: 0; padding: 0 14px 10px; } .tm-card > .tm-tl, .tm-body > .tm-tl { padding: 0; }
.tm-tl li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); } .tm-tl li:last-child { border-bottom: 0; } .tm-tl time { flex: 0 0 120px; font-size: 12px; color: var(--mut); font-weight: 700; } .tm-tl li > div { flex: 1 1 160px; min-width: 0; } .tm-tl small { display: block; color: var(--mut); }
.tm-ai { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; margin-bottom: 8px; } .tm-chk { display: flex; gap: 5px; align-items: center; font-size: 12px; white-space: nowrap; }
/* dialog */
.tm-back { position: fixed; inset: 0; z-index: 10000; background: rgba(2,8,23,.72); display: grid; place-items: center; padding: 12px; overflow-y: auto; }
.tm-dlg { width: min(520px, 100%); max-height: calc(100vh - 24px); overflow-y: auto; background: var(--n1); color: #eaf0fb; border: 1px solid rgba(245,180,0,.4); border-radius: 18px; padding: 18px; } .tm-dlg.wide { width: min(720px, 100%); }
.tm-dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .tm-dlg-h h3 { margin: 0; font-size: 18px; color: #fff; }
.tm-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; cursor: pointer; flex: 0 0 auto; }
.tm-dlg-f { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; } .tm-err { color: #fca5a5; font-size: 13px; min-height: 0; margin: 6px 0 0; }
@media (max-width: 640px) {
  .tm { padding: 12px; border-radius: 16px; } .tm-att { grid-template-columns: minmax(0, 1fr); } .tm-marks button { flex: 1 1 0; } .tm-marks { width: 100%; }
  .tm-mtg-h { grid-template-columns: auto minmax(0, 1fr); } .tm-mtg-s { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; justify-items: start; }
  .tm-ai { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tm-ai > :first-child { grid-column: 1 / -1; } .tm-tl time { flex-basis: 100%; }
  .tm-btn { flex: 1 1 auto; } .tm-dlg-f .tm-btn { flex: 1 1 40%; }
}
