/* =============================================================================
   DUPPLA — REUNIÕES E AGENDA
   Aba Reuniões do projeto, cartões de reunião, formulários e a página Agenda.
   ============================================================================= */

/* ---------- Aba do projeto ---------- */
.mt-panel { display: grid; gap: var(--sp-5); }
.mt-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.mt-panel-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.mt-panel-stats { font-size: var(--fs-sm); color: var(--c-ink-3); margin-top: .15rem; }
.mt-section { display: grid; gap: var(--sp-3); }
.mt-section-title { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-3); }
.mt-section-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: var(--r-pill); background: var(--c-surface-sunken); color: var(--c-ink-2); font-size: .6875rem; }
.mt-section.is-warn .mt-section-title { color: var(--c-warning-ink); }
.mt-section.is-warn .mt-section-count { background: color-mix(in srgb, var(--c-warning) 20%, var(--c-surface)); color: var(--c-warning-ink); }
.mt-section-note { font-size: var(--fs-xs); color: var(--c-ink-3); margin-top: -.4rem; }
.mt-list { display: grid; gap: var(--sp-3); }
.mt-empty { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: var(--sp-6) var(--sp-4); border: 1px dashed var(--c-border-strong); border-radius: var(--r-lg); background: var(--c-surface); }
.mt-empty > svg { width: 2rem; height: 2rem; color: var(--c-brand); }
.mt-empty-title { font-weight: var(--fw-bold); }
.mt-empty .muted { max-width: 52ch; font-size: var(--fs-sm); }

/* ---------- Cartão ---------- */
.mt-card {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4);
  border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface);
  transition: border-color var(--t-fast), box-shadow 160ms var(--ease-out, ease-out);
}
.mt-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-sm); }
.mt-card.is-late { border-color: color-mix(in srgb, var(--c-warning) 55%, var(--c-border)); background: color-mix(in srgb, var(--c-warning) 5%, var(--c-surface)); }
.mt-card.mt--cancelada { opacity: .75; }
.mt-card.mt--cancelada .mt-title { text-decoration: line-through; text-decoration-color: var(--c-ink-3); }
.mt-card.is-flash { animation: task-flash 1.6s ease-out; }
.mt-card > .mt-date { align-self: start; }
.mt-date {
  display: grid; justify-items: center; align-content: start; gap: .05rem; padding: .55rem .2rem; border-radius: 12px;
  background: var(--c-brand-soft); color: var(--c-brand-ink); text-align: center; line-height: 1.1;
}
.mt--realizada .mt-date { background: color-mix(in srgb, var(--c-success) 14%, var(--c-surface)); color: var(--c-success-ink); }
.mt--no_show .mt-date { background: color-mix(in srgb, var(--c-danger) 12%, var(--c-surface)); color: var(--c-danger-ink); }
.mt--cancelada .mt-date { background: var(--c-surface-sunken); color: var(--c-ink-3); }
.mt--a_agendar .mt-date, .mt-date--tbd { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--c-brand) 45%, var(--c-border)); color: var(--c-brand-ink); align-content: center; gap: .3rem; }
.mt-date--tbd svg { width: 1.4rem; height: 1.4rem; }
.mt--a_agendar.is-late .mt-date { border-color: var(--c-warning); }
.mt-date-month { font-size: .6875rem; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .06em; }
.mt-date-day { font-size: 1.6rem; font-weight: var(--fw-bold); letter-spacing: -.02em; }
.mt-date-time { font-size: var(--fs-xs); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.mt-main { display: grid; gap: .55rem; min-width: 0; }
.mt-head { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: flex-start; flex-wrap: wrap; }
.mt-head-text { display: grid; gap: .1rem; min-width: 0; }
.mt-kind { font-size: .6875rem; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-3); }
.mt-title { font-size: var(--fs-md); font-weight: var(--fw-bold); overflow-wrap: anywhere; }
.mt-project { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-brand-ink); text-decoration: none; }
.mt-project:hover { text-decoration: underline; }
.mt-flags { display: flex; gap: .35rem; flex-wrap: wrap; }
.mt-flag, .mt-status { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--r-pill); font-size: .6875rem; font-weight: var(--fw-semibold); background: var(--c-surface-sunken); color: var(--c-ink-2); white-space: nowrap; }
.mt-flag svg { width: .8rem; height: .8rem; }
.mt-flag.is-warn { background: color-mix(in srgb, var(--c-warning) 20%, var(--c-surface)); color: var(--c-warning-ink); }
.mt-flag.is-soon { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.mt-status--realizada { background: color-mix(in srgb, var(--c-success) 15%, var(--c-surface)); color: var(--c-success-ink); }
.mt-status--no_show { background: color-mix(in srgb, var(--c-danger) 13%, var(--c-surface)); color: var(--c-danger-ink); }
.mt-status--cancelada { background: var(--c-surface-sunken); color: var(--c-ink-3); }
.mt-when { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: var(--fs-sm); color: var(--c-ink-2); }
.mt-where { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-ink-3); }
.mt-where svg { width: .9rem; height: .9rem; }
.mt-people-row { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.mt-avatars { display: inline-flex; }
.mt-avatars > * + * { margin-left: -.35rem; box-shadow: 0 0 0 2px var(--c-surface); }
.mt-people-text { font-size: var(--fs-xs); color: var(--c-ink-3); overflow-wrap: anywhere; }
.mt-details { display: grid; gap: .6rem; padding: .7rem .8rem; border-radius: 10px; background: var(--c-surface-2); }
.mt-block { display: grid; gap: .15rem; }
.mt-block-title { font-size: .6875rem; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-3); }
.mt-block-text { font-size: var(--fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.mt-steps { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; font-size: var(--fs-sm); }
.mt-note { display: flex; align-items: flex-start; gap: .35rem; font-size: var(--fs-sm); color: var(--c-ink-2); }
.mt-note svg { width: .95rem; height: .95rem; flex: none; margin-top: .15rem; color: var(--c-danger-ink); }
.mt-actions { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.mt-actions .menu-button { margin-left: auto; }

/* ---------- Formulários ---------- */
.form-row--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.meet-new { justify-self: start; margin-top: .35rem; }
.mt-people { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; min-width: 0; }
.mt-team { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.mt-team-item { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem .35rem .45rem; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-surface); font-size: var(--fs-sm); cursor: pointer; }
.mt-team-item:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); }
.mt-team-item small { font-size: var(--fs-xs); }
.mt-guests { display: grid; gap: .4rem; }
.mt-guest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .9fr) auto; gap: .4rem; align-items: center; }
.mt-guest .input { height: 2.25rem; min-height: 2.25rem; }
.mt-guest-dot { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-surface-sunken); color: var(--c-ink-3); }
.mt-guest-dot svg { width: .8rem; height: .8rem; }
.mt-conflicts:empty { display: none; }
.mt-conflict { display: flex; gap: .55rem; padding: .65rem .8rem; border-radius: 10px; background: color-mix(in srgb, var(--c-warning) 12%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-warning) 40%, var(--c-border)); color: var(--c-warning-ink); font-size: var(--fs-sm); }
.mt-conflict > svg { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; }
.mt-conflict ul { margin: .2rem 0; padding-left: 1rem; }
.mt-presence { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.mt-check { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }

/* ---------- Cabeçalho do projeto: próxima reunião ---------- */
button.meta-meeting { border: 0; background: var(--c-brand-soft); color: var(--c-brand-ink); padding: .15rem .6rem; border-radius: var(--r-pill); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
button.meta-meeting:hover { background: color-mix(in srgb, var(--c-brand) 18%, var(--c-brand-soft)); }
button.meta-meeting:focus-visible { outline: none; box-shadow: var(--focus-ring); }
button.meta-meeting.is-plan { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 40%, var(--c-border)); }
button.meta-meeting.is-warn { background: color-mix(in srgb, var(--c-warning) 20%, var(--c-surface)); color: var(--c-warning-ink); }

/* ---------- Agenda ---------- */
.ag-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.ag-nav { display: flex; align-items: center; gap: .35rem; }
.ag-nav[hidden] { display: none; }
.ag-range-label { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-left: .5rem; letter-spacing: -.01em; }
.ag-waiting:empty, .ag-planned:empty { display: none; }
.ag-toolbar-end { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.ag-jumps { display: flex; gap: .4rem; flex-wrap: wrap; }
.ag-jumps:empty { display: none; }
.ag-jump {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-ink-2); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.ag-jump svg { width: .85rem; height: .85rem; }
.ag-jump:hover { color: var(--c-ink); border-color: var(--c-ink-3); }
.ag-jump:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ag-jump.is-warn { border-color: color-mix(in srgb, var(--c-warning) 55%, var(--c-border)); background: color-mix(in srgb, var(--c-warning) 12%, var(--c-surface)); color: var(--c-warning-ink); }
.ag-body { min-width: 0; }

/* Semana em grade de horários (parecida com uma agenda de calendário) */
.agw { border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); overflow-x: auto; overflow-y: hidden; }
.agw-inner { min-width: 760px; }
.agw-head, .agw-body { display: grid; grid-template-columns: 3.75rem repeat(7, minmax(0, 1fr)); }
.agw-head { position: sticky; top: 0; z-index: 6; border-bottom: 1px solid var(--c-border); background: var(--c-surface); }
.agw-tz { align-self: end; padding: 0 .4rem .45rem; font-size: .625rem; color: var(--c-ink-3); text-align: right; }
.agw-day-head { display: grid; justify-items: center; gap: .1rem; padding: .6rem 0 .5rem; border-left: 1px solid var(--c-border); }
.agw-day-name { font-size: .6875rem; font-weight: var(--fw-semibold); letter-spacing: .06em; color: var(--c-ink-3); }
.agw-day-num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.35rem; font-weight: var(--fw-medium); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.agw-day-head.is-past .agw-day-num { color: var(--c-ink-3); }
.agw-day-head.is-today .agw-day-name { color: var(--c-brand-ink); }
.agw-day-head.is-today .agw-day-num { background: var(--c-brand); color: var(--c-on-brand); font-weight: var(--fw-bold); }
.agw-scroll { max-height: calc(100dvh - 17rem); min-height: 22rem; overflow-y: auto; overscroll-behavior: contain; }
.agw-body { position: relative; }
.agw-gutter { position: relative; }
.agw-hour { position: absolute; right: .5rem; transform: translateY(-50%); font-size: .6875rem; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.agw-col {
  position: relative; border-left: 1px solid var(--c-border); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 51px, var(--c-border) 51px, var(--c-border) 52px);
}
.agw-col.is-today { background-color: color-mix(in srgb, var(--c-brand) 4%, transparent); }
.agw-col:hover { background-color: color-mix(in srgb, var(--c-ink) 2%, transparent); }
.agw-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--c-danger); z-index: 3; pointer-events: none; }
.agw-now::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-danger); }
.agw-ev {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: .05rem; overflow: hidden; text-align: left; cursor: pointer;
  padding: .2rem .45rem; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c-surface) 70%, transparent);
  background: var(--c-brand); color: var(--c-on-brand); font: inherit; line-height: 1.2; box-shadow: 0 1px 2px rgb(0 0 0 / .12);
  transition: box-shadow 140ms, filter 140ms;
}
.agw-ev:hover { box-shadow: var(--shadow-md, 0 4px 14px rgb(0 0 0 / .18)); filter: brightness(1.05); z-index: 4; }
.agw-ev:focus-visible { outline: none; box-shadow: var(--focus-ring); z-index: 4; }
.agw-ev-title { font-size: .75rem; font-weight: var(--fw-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agw-ev-time, .agw-ev-project { font-size: .6875rem; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.agw-ev-flag { margin-top: auto; align-self: flex-start; font-size: .5938rem; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .05em; padding: 0 .3rem; border-radius: 4px; background: rgb(255 255 255 / .25); }
.agw-ev.is-short { flex-direction: row; align-items: center; gap: .35rem; padding-block: 0; }
.agw-ev.is-short .agw-ev-time { flex: none; }
.agw-ev.is-past:not(.is-late) { opacity: .72; }
.agw-ev.is-late { background: var(--c-warning); color: #1f1500; }
.agw-ev.is-late .agw-ev-flag { background: rgb(0 0 0 / .12); }
.agw-ev.mt--realizada { background: var(--c-success-soft); color: var(--c-success-ink); border-left: 3px solid var(--c-success); }
.agw-ev.mt--no_show { background: var(--c-danger-soft); color: var(--c-danger-ink); border-left: 3px solid var(--c-danger); }
.agw-ev.mt--cancelada {
  color: var(--c-ink-3); border: 1px dashed var(--c-border-strong);
  background: repeating-linear-gradient(135deg, var(--c-surface-2) 0 6px, var(--c-surface) 6px 12px);
}
.agw-ev.mt--cancelada .agw-ev-title { text-decoration: line-through; }
.agw-ev.mt--realizada .agw-ev-flag, .agw-ev.mt--no_show .agw-ev-flag, .agw-ev.mt--cancelada .agw-ev-flag { background: color-mix(in srgb, currentColor 14%, transparent); }
@media (prefers-reduced-motion: reduce) { .agw-ev { transition: none; } }
.ag-week-empty { text-align: center; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.ag-list { display: grid; gap: var(--sp-5); }
.ag-day-block { display: grid; gap: var(--sp-3); }
.ag-day-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-ink-2); }
.agenda--reuniao .agenda-icon { color: var(--c-brand-ink); }
.agenda--agendar .agenda-icon { color: var(--c-brand-ink); background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 40%, var(--c-border)); }

@media (max-width: 640px) {
  .mt-card { grid-template-columns: 3.4rem minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3); }
  .mt-date-day { font-size: 1.3rem; }
  .mt-guest { grid-template-columns: minmax(0, 1fr) auto; }
  .mt-guest .input:nth-child(2), .mt-guest .input:nth-child(3) { grid-column: 1; }
  .mt-guest button { grid-row: 1; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .mt-card.is-flash { animation: none; } }
/* reunião sem data: a caixa da data não estica até o fim do cartão */
.mt-date--tbd { align-self: start; min-height: 5.25rem; }

/* =============================================================================
   v0.30 — aba Reuniões redesenhada: destaque da próxima, placar, para resolver,
   próximas e histórico com filtro.
   ============================================================================= */
.mt-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.mt-section-title > svg { width: 1rem; height: 1rem; }
.mtx-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: var(--sp-4); align-items: stretch; }
@media (max-width: 960px) { .mtx-top { grid-template-columns: minmax(0, 1fr); } }

.mtx-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-5); align-items: start;
  padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-5); border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, #4FB0AA 55%, transparent) 0%, transparent 55%), linear-gradient(135deg, #0C5A63 0%, #0A3F47 100%);
  box-shadow: 0 22px 44px -26px rgba(6, 40, 46, .75);
}
.mtx-hero::after { content: ""; position: absolute; right: -3.5rem; bottom: -4.5rem; width: 15rem; height: 15rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 2.2rem rgba(255, 255, 255, .03); pointer-events: none; }
.mtx-hero.is-live { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 120, 150, .35) 0%, transparent 55%), linear-gradient(135deg, #7A1F3D 0%, #4A1226 100%); }
.mtx-hero.is-empty { color: var(--c-ink); background: repeating-linear-gradient(135deg, var(--c-surface) 0 14px, var(--c-surface-2) 14px 28px); border: 1.5px dashed var(--c-border-strong); box-shadow: none; }
.mtx-hero.is-empty::after { display: none; }
.mtx-hero-date { width: 5.4rem; display: grid; justify-items: center; gap: .05rem; padding: .7rem .4rem .75rem; border-radius: 16px; background: #fff; color: #0C5A63; line-height: 1; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.mtx-hero.is-live .mtx-hero-date { color: #7A1F3D; }
.mtx-hero-date.is-tbd { height: 5.4rem; place-content: center; background: var(--c-brand-soft); color: var(--c-brand-ink); box-shadow: none; }
.mtx-hero-date.is-tbd svg { width: 2rem; height: 2rem; }
.mtx-hero-wd, .mtx-hero-mon { font-size: .72rem; font-weight: var(--fw-bold); text-transform: capitalize; letter-spacing: .02em; }
.mtx-hero-day { font-size: 2.6rem; font-weight: var(--fw-bold); letter-spacing: -.04em; padding: .1rem 0; font-variant-numeric: tabular-nums; }
.mtx-hero-main { position: relative; z-index: 1; display: grid; gap: .45rem; min-width: 0; }
.mtx-hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: rgba(255, 255, 255, .82); }
.mtx-hero.is-empty .mtx-hero-kicker { color: var(--c-ink-3); }
.mtx-hero-type { padding: .1rem .55rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); color: #fff; font-size: .72rem; }
.mtx-live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #FF8FA8; box-shadow: 0 0 0 0 rgba(255, 143, 168, .7); animation: mtx-pulse 1.6s infinite; }
@keyframes mtx-pulse { 70% { box-shadow: 0 0 0 .55rem rgba(255, 143, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 143, 168, 0); } }
.mtx-hero-title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); font-weight: var(--fw-bold); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.mtx-hero-when { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.mtx-hero.is-empty .mtx-hero-when { color: var(--c-ink-2); max-width: 52ch; }
.mtx-hero-when strong { color: #fff; font-size: var(--fs-md, 1rem); }
.mtx-hero-cd { padding: .12rem .6rem; border-radius: var(--r-pill); background: #fff; color: #0C5A63; font-weight: var(--fw-bold); font-size: var(--fs-xs); }
.mtx-hero-people { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-xs); color: rgba(255, 255, 255, .8); }
.mtx-avatars { display: inline-flex; }
.mtx-avatars > * + * { margin-left: -.4rem; }
.mtx-avatars > * { box-shadow: 0 0 0 2px #0B4C54; }
.mtx-hero-agenda { max-width: 70ch; font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.mtx-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.mtx-hero:not(.is-empty) .btn-primary { background: #fff; color: #0C5A63; border-color: #fff; }
.mtx-hero.is-live .btn-primary { color: #7A1F3D; }
.mtx-hero:not(.is-empty) .btn-primary:hover { background: #E8F4F3; }
.mtx-hero .mtx-join { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.mtx-hero .mtx-join:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 560px) { .mtx-hero { grid-template-columns: minmax(0, 1fr); padding: var(--sp-4); } }

.mtx-board { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--sp-3); padding: var(--sp-3); border-radius: 22px; border: 1px solid var(--c-border); background: var(--c-surface); }
.mtx-board > .btn { width: 100%; justify-content: center; }
.mtx-scores { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mtx-score { display: grid; align-content: center; gap: .1rem; padding: .7rem .8rem; border: 0; border-radius: 14px; background: var(--c-surface-2); color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 140ms, transform 140ms; }
.mtx-score:hover { background: var(--c-surface-sunken); transform: translateY(-1px); }
.mtx-score:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mtx-score-n { font-size: 1.75rem; font-weight: var(--fw-bold); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mtx-score-label { font-size: var(--fs-xs); color: var(--c-ink-3); font-weight: var(--fw-semibold); }
.mtx-score.is-ok .mtx-score-n { color: var(--c-success-ink); }
.mtx-score.is-warn { background: color-mix(in srgb, var(--c-warning) 14%, var(--c-surface)); }
.mtx-score.is-warn .mtx-score-n { color: var(--c-warning-ink); }
.mtx-score.is-bad .mtx-score-n { color: var(--c-danger-ink); }
.mtx-score.is-zero .mtx-score-n { color: var(--c-ink-3); }

.mtx-resolve { padding: var(--sp-4); border-radius: 18px; background: color-mix(in srgb, var(--c-warning) 7%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-warning) 30%, var(--c-border)); }
.mtx-resolve .mt-section-title { color: var(--c-warning-ink); }
.mtx-resolve-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--sp-4); align-items: start; }
.mtx-lane { display: grid; gap: var(--sp-3); }
.mtx-lane-title { display: grid; gap: .1rem; font-size: var(--fs-xs); color: var(--c-ink-3); }
.mtx-lane-title strong { font-size: var(--fs-sm); color: var(--c-ink); }

.mtx-upcoming .mt-list, .mtx-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: start; }
.mtx-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.mtx-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink-2); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; }
.mtx-chip:hover { border-color: var(--c-border-strong); }
.mtx-chip.is-on { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-surface); }
.mtx-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mtx-chip-n { opacity: .7; font-variant-numeric: tabular-nums; }
.mtx-more { justify-self: center; }
@media (prefers-reduced-motion: reduce) { .mtx-live-dot { animation: none; } .mtx-score:hover { transform: none; } }

/* =============================================================================
   v0.31 — agendar reunião em tela inteira (mf-*)
   ============================================================================= */
.mf-title .input { font-size: var(--fs-md, 1rem); font-weight: var(--fw-semibold); min-height: 2.9rem; }
.mf-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .6rem; }
.mf-type {
  position: relative; display: grid; align-content: start; gap: .25rem; min-height: 5.6rem; padding: .8rem .9rem .75rem; text-align: left;
  border: 1.5px solid var(--c-border); border-radius: 14px; background: var(--c-surface); color: var(--c-ink); font: inherit; cursor: pointer;
  transition: border-color 140ms, background-color 140ms, transform 140ms, box-shadow 140ms;
}
.mf-type::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 14px 0 0 14px; background: var(--tone, #64748B); opacity: .55; }
.mf-type:hover { border-color: color-mix(in srgb, var(--tone, #64748B) 55%, var(--c-border)); transform: translateY(-1px); }
.mf-type:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mf-type.is-on { border-color: var(--tone, var(--c-brand)); background: color-mix(in srgb, var(--tone, #64748B) 9%, var(--c-surface)); box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--tone, #64748B) 70%, transparent); }
.mf-type.is-on::before { opacity: 1; }
.mf-type-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--tone, #64748B); }
.mf-type-name { font-weight: var(--fw-bold); font-size: var(--fs-sm); line-height: 1.25; padding-right: 1.4rem; }
.mf-type-meta { font-size: var(--fs-xs); color: var(--c-ink-3); }
.mf-type-steps { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: var(--fw-semibold); color: color-mix(in srgb, var(--tone, #64748B) 80%, var(--c-ink)); }
.mf-type-steps svg { width: .7rem; height: .7rem; }
.mf-type-check { position: absolute; top: .6rem; right: .6rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: var(--tone, var(--c-brand)); color: #fff; }
.mf-type-check svg { width: .8rem; height: .8rem; }
.mf-type-info:empty, .mf-type-info[hidden] { display: none; }

.mf-when { display: grid; gap: var(--sp-4); }
.mf-when[hidden] { display: none; }
.mf-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .45rem; }
.mf-day { display: grid; justify-items: center; gap: .05rem; padding: .55rem .2rem .6rem; border: 1.5px solid var(--c-border); border-radius: 14px; background: var(--c-surface); color: var(--c-ink); font: inherit; cursor: pointer; line-height: 1.1; transition: border-color 140ms, background-color 140ms; }
.mf-day:hover:not(:disabled) { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.mf-day:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mf-day.is-weekend .mf-day-wd { color: var(--c-ink-3); }
.mf-day-wd { font-size: .7rem; font-weight: var(--fw-semibold); color: var(--c-ink-2); text-transform: capitalize; }
.mf-day-n { font-size: 1.35rem; font-weight: var(--fw-bold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mf-day-mon { font-size: .66rem; color: var(--c-ink-3); text-transform: capitalize; }
.mf-day.is-on { border-color: #0C5A63; background: #0C5A63; color: #fff; }
.mf-day.is-on .mf-day-wd, .mf-day.is-on .mf-day-mon { color: rgba(255, 255, 255, .85); }
:root[data-theme="dark"] .mf-day.is-on { border-color: var(--c-brand); background: var(--c-brand); color: #06201F; }
.mf-day:disabled { opacity: .55; cursor: not-allowed; }
.mf-clock { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.6fr); gap: var(--sp-4); align-items: end; }
.mf-date.is-on .input { border-color: #0C5A63; box-shadow: 0 0 0 1px #0C5A63; }
.mf-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem; align-items: end; }
.mf-range-arrow { height: 3.1rem; display: grid; place-items: center; color: var(--c-ink-3); }
.mf-range-arrow svg { width: 1.2rem; height: 1.2rem; }
.mf-time .input { min-height: 3.1rem; font-size: 1.35rem; font-weight: var(--fw-bold); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.mf-durs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.mf-durs-label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-3); margin-right: .25rem; }
.mf-dur { padding: .3rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink-2); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; }
.mf-dur:hover:not(:disabled) { border-color: var(--c-border-strong); color: var(--c-ink); }
.mf-dur:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mf-dur.is-on { background: var(--c-brand-soft); border-color: transparent; color: var(--c-brand-ink); }
.mf-dur.is-custom { cursor: default; }
.mf-switch { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; background: var(--c-surface-2); cursor: pointer; }
.mf-switch > span:last-child { display: grid; line-height: 1.3; }
.mf-switch small { font-size: var(--fs-xs); color: var(--c-ink-3); }
.mf-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mf-switch-ui { position: relative; width: 2.4rem; height: 1.35rem; flex: none; border-radius: 999px; background: var(--c-border-strong); transition: background-color 160ms; }
.mf-switch-ui::after { content: ""; position: absolute; top: .175rem; left: .2rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform 160ms; }
.mf-switch-input:checked + .mf-switch-ui { background: #0C5A63; }
.mf-switch-input:checked + .mf-switch-ui::after { transform: translateX(1.05rem); }
.mf-switch-input:focus-visible + .mf-switch-ui { box-shadow: var(--focus-ring); }

.mf-seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: 14px; background: var(--c-surface-2); justify-self: start; }
.mf-seg-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 0; border-radius: 10px; background: none; color: var(--c-ink-2); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.mf-seg-btn svg { width: 1rem; height: 1rem; }
.mf-seg-btn:hover { color: var(--c-ink); }
.mf-seg-btn.is-on { background: var(--c-surface); color: var(--c-brand-ink); box-shadow: 0 1px 3px rgba(6, 24, 28, .14); }
.mf-seg-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mf-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: start; }
.mf-url-row[hidden] { display: none; }
.mf-url-row .meet-new { margin-top: 1.55rem; min-height: 2.6rem; }

.mf-team { gap: .45rem; }
.mf-person { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .4rem; border: 1.5px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-surface); font-size: var(--fs-sm); cursor: pointer; transition: border-color 140ms, background-color 140ms; }
.mf-person > svg { width: .85rem; height: .85rem; color: var(--c-brand-ink); display: none; }
.mf-person:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); font-weight: var(--fw-semibold); }
.mf-person:has(input:checked) > svg { display: block; }
.mf-person:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.mf-chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* convite ao vivo */
.mf-invite-card { gap: var(--sp-3); padding: var(--sp-4); }
.mf-invite-label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-3); }
.mf-invite { display: grid; gap: var(--sp-3); }
.mf-inv-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: center; padding: var(--sp-3); border-radius: 14px; background: color-mix(in srgb, var(--tone, #64748B) 10%, var(--c-surface-2)); }
.mf-inv-date { width: 4.6rem; display: grid; justify-items: center; padding: .55rem .3rem .6rem; border-radius: 12px; background: var(--c-surface); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .45); line-height: 1; border-top: 4px solid var(--tone, #64748B); }
.mf-inv-date.is-tbd { height: 4.6rem; place-content: center; color: var(--c-ink-3); }
.mf-inv-date.is-tbd svg { width: 1.6rem; height: 1.6rem; }
.mf-inv-wd, .mf-inv-mon { font-size: .68rem; font-weight: var(--fw-bold); color: var(--c-ink-3); text-transform: capitalize; }
.mf-inv-day { font-size: 2rem; font-weight: var(--fw-bold); letter-spacing: -.03em; padding: .1rem 0; font-variant-numeric: tabular-nums; }
.mf-inv-when { display: grid; gap: .1rem; min-width: 0; }
.mf-inv-rel { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-3); }
.mf-inv-time { font-size: 1.3rem; font-weight: var(--fw-bold); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mf-inv-dur { font-size: var(--fs-xs); color: var(--c-ink-2); }
.mf-inv-title { font-weight: var(--fw-bold); font-size: var(--fs-md, 1rem); line-height: 1.3; overflow-wrap: anywhere; }
.mf-inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: var(--fs-sm); color: var(--c-ink-2); }
.mf-inv-list li { display: flex; align-items: center; gap: .5rem; }
.mf-inv-list svg { width: .95rem; height: .95rem; color: var(--c-ink-3); flex: none; }
.mf-inv-list .chip-dot { width: .6rem; height: .6rem; margin-inline: .18rem; border-radius: 50%; background: var(--tone, #64748B); flex: none; }
.mf-inv-avatars { display: flex; }
.mf-inv-avatars > * + * { margin-left: -.35rem; }
.mf-inv-avatars > * { box-shadow: 0 0 0 2px var(--c-surface); }
.mf-conflicts:empty { display: none; }
.mf-conflicts .mt-conflict { border-radius: 16px; padding: var(--sp-4); }
.mf-free { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: 14px; background: color-mix(in srgb, var(--c-success) 10%, var(--c-surface)); color: var(--c-success-ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.mf-free svg { width: 1rem; height: 1rem; flex: none; }

@media (max-width: 760px) {
  .mf-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mf-clock { grid-template-columns: minmax(0, 1fr); }
  .mf-url-row { grid-template-columns: minmax(0, 1fr); }
  .mf-url-row .meet-new { margin-top: 0; justify-self: start; }
  .mt-guest { grid-template-columns: minmax(0, 1fr) auto; }
}
.mf-main .sheet-card { gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
.mf-type { min-height: 4.6rem; padding: .65rem .8rem .6rem; }
.mf-main .mf-switch { padding: .55rem .75rem; }
.mf-main .mf-type-info { padding: .55rem .75rem; font-size: var(--fs-xs); }
@media (max-width: 640px) {
  .mf-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .mf-type { min-height: 4rem; padding: .55rem .65rem; }
  .mf-type-check { top: .45rem; right: .45rem; }
}

/* v0.32 — registro longo recolhido no histórico */
.mt-outcome { white-space: normal; }
.mt-outcome.is-clamped { max-height: 7.6rem; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.mt-more { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; margin-top: .35rem; padding: .25rem .6rem; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-brand-ink); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-bold); cursor: pointer; }
.mt-more:hover { background: var(--c-brand-soft); border-color: transparent; }
.mt-more:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mt-more svg { width: .8rem; height: .8rem; }
/* histórico: cartões começam alinhados no topo, cada um com a sua altura */
.mtx-grid { align-items: start; }


/* =============================================================================
   v0.32 — agendar reunião mais simples: título e tipo no cabeçalho; quando em destaque;
   onde e quem lado a lado; o convite à direita. A janela usa a tela toda.
   ============================================================================= */
.mf-dialog .modal-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0; color: rgba(255, 255, 255, .78); order: -1; }
.mf-dialog .modal-hero { padding-bottom: var(--sp-4); }
.mf-dialog .modal-hero-main { width: 100%; max-width: 1100px; gap: .5rem; }
.mf-dialog .modal-hero-eyebrow { order: -2; }
.mf-hero-title { margin: .1rem 0 0; }
.mf-hero-title .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mf-hero-title .input {
  min-height: 0; padding: .1rem 0 .25rem; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .25); border-radius: 0; background: transparent; box-shadow: none;
  color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.15rem); font-weight: var(--fw-bold); letter-spacing: -.02em;
}
.mf-hero-title .input::placeholder { color: rgba(255, 255, 255, .5); }
.mf-hero-title .input:focus { border-bottom-color: #fff; outline: none; box-shadow: none; }
.mf-hero-title .field-error { color: #FFD3D7; }
.mf-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.mf-pill {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 0; padding: .35rem .8rem .35rem .65rem; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer;
  transition: background-color 140ms, border-color 140ms;
}
.mf-pill::before { display: none; }
.mf-pill:hover { background: rgba(255, 255, 255, .16); transform: none; border-color: rgba(255, 255, 255, .4); }
.mf-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.mf-pill .mf-type-dot { width: .6rem; height: .6rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.mf-pill .mf-type-name { font-size: inherit; padding: 0; }
.mf-pill.is-on { background: #fff; border-color: #fff; color: #0C3F45; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.mf-pill.is-on .mf-type-dot { box-shadow: none; }
.mf-pill-steps { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mf-pill.is-on .mf-pill-steps { background: color-mix(in srgb, var(--tone, #0C5A63) 18%, #fff); color: #0C3F45; }
.mf-pill-steps svg { width: .6rem; height: .6rem; }
.mf-hero-info { display: flex; align-items: center; gap: .45rem; margin: .15rem 0 0; padding: 0; background: none; border: 0; color: rgba(255, 255, 255, .78); font-size: var(--fs-xs); }
.mf-hero-info svg { width: .9rem; height: .9rem; flex: none; }
.mf-hero-info[hidden] { display: none; }

dialog.modal--sheet.mf-dialog { max-width: none; }
.mf-layout { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
.mf-main { gap: var(--sp-4); }
.mf-main .sheet-card { gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
.mf-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
.mf-row2 > .sheet-card { height: 100%; align-content: start; }
/* quando: dias, data e horário numa faixa só em telas largas */
@media (min-width: 1280px) {
  .mf-sec-when .mf-when { grid-template-columns: minmax(0, 1fr); }
  .mf-sec-when .mf-clock { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) auto; align-items: end; }
  .mf-sec-when .mf-clock .mf-range { max-width: 520px; }
}
@media (max-width: 1100px) { .mf-row2 { grid-template-columns: minmax(0, 1fr); } .mf-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .mf-pill { padding: .3rem .65rem .3rem .55rem; font-size: var(--fs-xs); } }
.mf-dialog .modal-hero-main { display: flex; flex-wrap: wrap; align-items: center; column-gap: .6rem; row-gap: .45rem; }
.mf-dialog .modal-hero-main > .mf-hero-title, .mf-dialog .modal-hero-main > .mf-pills, .mf-dialog .modal-hero-main > .mf-hero-info { flex: 1 1 100%; }
.mf-dialog .modal-hero-chips { margin-top: 0; }
.mf-dialog .modal-title::before { content: "·"; margin-right: .6rem; color: rgba(255, 255, 255, .45); }
.mf-dialog .modal-hero-eyebrow { order: 0; }
.mf-dialog .modal-title { order: 1; }
.mf-dialog .modal-hero-chips { order: 2; }
.mf-dialog .modal-hero-main > .field, .mf-dialog .modal-hero-main > .mf-pills, .mf-dialog .modal-hero-main > .mf-hero-info { order: 3; }
.mf-sec-when .sheet-card-head { flex-wrap: wrap; }
.mf-switch.is-compact { margin-left: auto; padding: .35rem .7rem .35rem .45rem; border-radius: var(--r-pill); }
.mf-switch.is-compact small { display: none; }
.mf-switch.is-compact strong { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.mf-clock > .mf-durs { grid-column: 1 / -1; }
@media (min-width: 1280px) {
  .mf-sec-when .mf-clock { grid-template-columns: minmax(170px, 220px) minmax(320px, 460px) minmax(0, 1fr); }
  .mf-sec-when .mf-clock > .mf-durs { grid-column: auto; align-self: end; padding-bottom: .55rem; }
}

/* ---------- Agendas por pessoa (v0.38) ---------- */
.ag-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.ag-main { min-width: 0; }
.ag-panel-btn { display: none; }

/* painel "Minhas agendas" */
.agc { display: grid; gap: var(--sp-4); align-content: start; position: sticky; top: var(--sp-3); }
.agc-team-field { display: grid; gap: .3rem; }
.agc-label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-3); }
.agc-team { width: 100%; }
.agc-section { display: grid; gap: .2rem; }
.agc-head { display: flex; align-items: center; gap: .25rem; min-height: 2rem; }
.agc-title { flex: 1; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-ink); }
.agc-collapse, .agc-add {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-ink-2); cursor: pointer;
}
.agc-collapse svg, .agc-add svg { width: 1rem; height: 1rem; transition: transform 160ms; }
.agc-collapse[aria-expanded="false"] svg { transform: rotate(180deg); }
.agc-collapse:hover, .agc-add:hover { background: var(--c-surface-2); color: var(--c-ink); }
.agc-collapse:focus-visible, .agc-add:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.agc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.agc-list[hidden] { display: none; }
.agc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .1rem .15rem .1rem .35rem; border-radius: 10px; }
.agc-row:hover { background: var(--c-surface-2); }
.agc-row .agc-more { opacity: 0; width: 1.8rem; height: 1.8rem; }
.agc-row:hover .agc-more, .agc-row:focus-within .agc-more, .agc-more[aria-expanded="true"] { opacity: 1; }
.agc-name { min-width: 0; padding: .4rem 0; font-size: var(--fs-sm); color: var(--c-ink); cursor: pointer; }
.agc-name > span:not(.avatar) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agc-empty { padding: .3rem .35rem; font-size: var(--fs-xs); color: var(--c-ink-3); }
.agc-hint { display: flex; gap: .4rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--c-ink-3); line-height: 1.4; }
.agc-hint svg { flex: none; width: .9rem; height: .9rem; margin-top: .1rem; }

/* caixinha na cor da agenda: contorno colorido; marcada, cheia com o ✓ */
.agc-check {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; position: relative;
  width: 1.1rem; height: 1.1rem; border: 2px solid var(--cal, var(--c-brand)); border-radius: 4px; background: transparent; cursor: pointer;
}
.agc-check:checked { background: var(--cal, var(--c-brand)); }
.agc-check:checked::after {
  content: ""; position: absolute; left: .27rem; top: .06rem; width: .3rem; height: .58rem;
  border: solid var(--cal-ink, #fff); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.agc-check:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.agc-swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; }

/* blocos na cor da agenda */
.agw-ev.has-color { background: var(--ev-color); color: var(--ev-ink); }
.agw-ev.has-color.is-past:not(.is-late),
.agw-ev.has-color.mt--realizada, .agw-ev.has-color.mt--no_show {
  opacity: 1; background: color-mix(in srgb, var(--ev-color) 20%, var(--c-surface));
  color: color-mix(in srgb, var(--ev-color) 55%, var(--c-ink)); border-left: 3px solid var(--ev-color);
}
.agw-ev.has-color.mt--cancelada {
  color: var(--c-ink-3); border: 1px dashed var(--c-border-strong); border-left: 3px solid var(--ev-color);
  background: repeating-linear-gradient(135deg, var(--c-surface-2) 0 6px, var(--c-surface) 6px 12px);
}
.agw-ev.has-color.is-late { box-shadow: inset 0 0 0 2px var(--c-warning); }
.agw-ev.has-color.is-late .agw-ev-flag { background: var(--c-warning); color: #1f1500; }
.agw-ev.has-color .agw-ev-flag { background: color-mix(in srgb, currentColor 16%, transparent); }
.agw-ev.is-shared { padding-left: .85rem; }
.agw-ev-band { position: absolute; left: 0; top: 0; bottom: 0; width: .45rem; display: flex; flex-direction: column; box-shadow: 1px 0 0 rgb(255 255 255 / .7); }
.agw-ev-band > span { flex: 1; }
.agw-ev-band > span + span { box-shadow: inset 0 1px 0 rgb(255 255 255 / .7); }
.agw-ev-people { font-size: .6563rem; font-weight: var(--fw-semibold); opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agw-ev.is-locked .agw-ev-title::before { content: "🔒 "; font-size: .65rem; }

/* lista dos próximos 30 dias */
.ag-li { display: grid; grid-template-columns: .4rem minmax(0, 1fr); gap: .6rem; }
.ag-li-colors { display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; }
.ag-li-colors > span { flex: 1; }
.ag-li-main { display: grid; gap: .3rem; min-width: 0; }
.ag-li-people { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-2); }
.ag-li-lite {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem;
  padding: .7rem .9rem; border: 1px dashed var(--c-border-strong); border-radius: var(--r-lg); background: var(--c-surface);
  color: var(--c-ink); font: inherit; text-align: left; cursor: pointer;
}
.ag-li-lite svg { width: .9rem; height: .9rem; color: var(--c-ink-3); }
.ag-li-time { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: var(--c-ink-2); }
.ag-li-title { font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-li-project { font-size: var(--fs-xs); color: var(--c-ink-3); }

/* resumo de reunião sem acesso ao projeto */
.ag-sum { display: grid; gap: var(--sp-3); }
.ag-sum-line, .ag-sum-note { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--fs-sm); }
.ag-sum-line svg, .ag-sum-note svg { flex: none; width: 1rem; height: 1rem; margin-top: .1rem; color: var(--c-ink-3); }
.ag-sum-note { color: var(--c-ink-3); font-size: var(--fs-xs); }
.ag-sum-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: var(--fs-sm); }
.ag-sum-people li { display: flex; align-items: center; gap: .5rem; }
.ag-sum-dot { width: .7rem; height: .7rem; border-radius: 3px; }

@media (max-width: 900px) {
  .ag-layout { grid-template-columns: minmax(0, 1fr); }
  .ag-panel-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: var(--r-pill);
    border: 1px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer;
  }
  .ag-panel-btn svg { width: 1rem; height: 1rem; }
  .ag-panel-btn[aria-expanded="true"] { background: var(--c-brand-soft); color: var(--c-brand-ink); border-color: transparent; }
  .agc { display: none; position: static; padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
  .agc.is-open { display: grid; }
  .agc-row .agc-more { opacity: 1; }
}

/* ==========================================================================
   Agenda — visual revisto (v0.39)
   Grade mais leve: blocos em tom claro da cor da agenda com faixa lateral, rostinhos de
   quem participa, fim de semana e hoje discretos; painel com minicalendário.
   ========================================================================== */
.ag-layout { grid-template-columns: 16.5rem minmax(0, 1fr); gap: var(--sp-5); }
.ag-main { display: grid; gap: var(--sp-3); align-content: start; }
.ag-toolbar { padding: 0 .1rem; }
.ag-nav { gap: .25rem; }
.ag-nav .btn-ghost { width: 2.1rem; height: 2.1rem; padding: 0; border-radius: 50%; }
.ag-range-label { font-size: var(--fs-xl); font-weight: var(--fw-black); letter-spacing: -.02em; margin-left: .6rem; }

/* painel */
.agc { gap: var(--sp-5); padding-top: .15rem; }
.agc-top:empty { display: none; }
.agm { display: grid; gap: .4rem; }
.agm-head { display: flex; align-items: center; gap: .15rem; }
.agm-title { flex: 1; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.agm-nav { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink-2); cursor: pointer; }
.agm-nav svg { width: 1rem; height: 1rem; }
.agm-nav:hover { background: var(--c-surface-sunken); color: var(--c-ink); }
.agm-nav:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.agm-grid { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.agm-grid th { padding: .15rem 0; font-size: .625rem; font-weight: var(--fw-semibold); color: var(--c-ink-3); text-align: center; }
.agm-grid td { padding: 0; text-align: center; }
.agm-grid tr.is-week td { background: var(--c-brand-soft); }
.agm-grid tr.is-week td:first-child { border-radius: 999px 0 0 999px; }
.agm-grid tr.is-week td:last-child { border-radius: 0 999px 999px 0; }
.agm-day {
  width: 1.85rem; height: 1.85rem; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink);
  font: inherit; font-size: .75rem; font-variant-numeric: tabular-nums; cursor: pointer;
}
.agm-day.is-out { color: var(--c-ink-3); opacity: .6; }
.agm-day:hover { background: var(--c-surface-sunken); }
.agm-day:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.agm-day.is-today { background: var(--c-accent); color: var(--c-on-accent); font-weight: var(--fw-bold); }
.agc-section { gap: .35rem; }
.agc-title { font-size: var(--fs-sm); }
.agc-row { padding: .2rem .15rem .2rem .4rem; }
.agc-name { display: flex; align-items: center; gap: .5rem; }
.agc-face { --size: 1.45rem; font-size: .55rem; flex: none; box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3.5px var(--ring, var(--c-border)); }
.agc-row:not(.is-on) .agc-face { opacity: .55; }

/* grade */
.agw { border: 0; border-radius: 20px; box-shadow: 0 0 0 1px var(--c-border), var(--shadow-md); }
.agw-head { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.agw-day-head { border-left: 1px solid transparent; padding: .7rem 0 .6rem; gap: .2rem; }
.agw-day-name { font-size: .625rem; letter-spacing: .08em; }
.agw-day-num { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; font-weight: var(--fw-semibold); }
.agw-day-head.is-today .agw-day-name { color: var(--c-ink); }
.agw-day-head.is-today .agw-day-num { background: var(--c-accent); color: var(--c-on-accent); }
.agw-day-head.is-weekend .agw-day-name { color: color-mix(in srgb, var(--c-ink-3) 75%, transparent); }
.agw-hour { font-size: .625rem; right: .55rem; }
.agw-col {
  border-left: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 51px, color-mix(in srgb, var(--c-border) 85%, transparent) 51px, color-mix(in srgb, var(--c-border) 85%, transparent) 52px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 25px, color-mix(in srgb, var(--c-border) 38%, transparent) 25px, color-mix(in srgb, var(--c-border) 38%, transparent) 26px, transparent 26px, transparent 52px);
}
.agw-col.is-weekend { background-color: color-mix(in srgb, var(--c-surface-sunken) 45%, transparent); }
.agw-col.is-today { background-color: color-mix(in srgb, var(--c-accent) 6%, transparent); }
.agw-col:hover { background-color: color-mix(in srgb, var(--c-brand) 3%, transparent); }
.agw-now { background: var(--c-danger); height: 2px; }
.agw-now::before { width: 10px; height: 10px; left: -5px; top: -4px; box-shadow: 0 0 0 3px var(--c-surface); }

/* blocos: tom claro da cor da agenda + faixa à esquerda */
.agw-ev.has-color {
  padding: .3rem .4rem .3rem .7rem; gap: .1rem; border: 0; border-radius: 9px;
  background: color-mix(in srgb, var(--ev-color) 15%, var(--c-surface));
  color: color-mix(in srgb, var(--ev-color) 42%, var(--c-ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ev-color) 22%, transparent);
}
.agw-ev.has-color:hover { filter: none; background: color-mix(in srgb, var(--ev-color) 22%, var(--c-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ev-color) 40%, transparent), var(--shadow-md); }
.agw-ev.has-color .agw-ev-title { color: var(--c-ink); font-weight: var(--fw-bold); display: flex; align-items: center; gap: .25rem; min-width: 0; }
.agw-ev-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agw-ev-title svg { flex: none; width: .75rem; height: .75rem; color: var(--c-success); }
.agw-ev.has-color .agw-ev-time { opacity: 1; font-weight: var(--fw-semibold); }
.agw-ev.has-color .agw-ev-project { opacity: .85; }
.agw-ev.is-shared { padding-left: .7rem; }
.agw-ev-band { width: .3rem; top: .3rem; bottom: .3rem; left: .2rem; border-radius: 99px; overflow: hidden; box-shadow: none; gap: 2px; }
.agw-ev-band > span + span { box-shadow: none; }
.agw-ev.is-short { gap: .4rem; padding-top: 0; padding-bottom: 0; }
.agw-ev.is-short .agw-ev-band { top: .2rem; bottom: .2rem; }
.agw-ev.has-color.is-past:not(.is-late), .agw-ev.has-color.mt--realizada, .agw-ev.has-color.mt--no_show {
  border-left: 0; opacity: .78;
  background: color-mix(in srgb, var(--ev-color) 8%, var(--c-surface));
}
.agw-ev.has-color.mt--no_show .agw-ev-title > span, .agw-ev.has-color.mt--cancelada .agw-ev-title > span { text-decoration: line-through; }
.agw-ev.has-color.mt--cancelada { border: 0; opacity: .7; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ev-color) 8%, var(--c-surface)) 0 6px, var(--c-surface) 6px 12px); }
.agw-ev.has-color.is-late { box-shadow: inset 0 0 0 1.5px var(--c-warning); background: color-mix(in srgb, var(--c-warning) 12%, var(--c-surface)); }
.agw-ev.has-color.is-late .agw-ev-flag { background: var(--c-warning); color: var(--c-surface); }
.agw-ev.has-color .agw-ev-flag { margin-top: .1rem; }
.agw-ev.is-locked .agw-ev-title::before { content: none; }
.agw-ev.is-locked { background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ev-color) 6%, transparent) 7px 14px); }

/* rostinhos */
.agw-ev-faces { display: flex; align-items: center; margin-top: auto; padding-top: .15rem; }
.agw-ev-faces .avatar { --size: 1.25rem; font-size: .5rem; flex: none; box-shadow: 0 0 0 2px var(--c-surface); }
.agw-ev-faces .avatar + .avatar { margin-left: -.35rem; }
.agw-ev-more { margin-left: .2rem; font-size: .625rem; font-weight: var(--fw-bold); color: var(--c-ink-2); }
.agw-ev.is-short .agw-ev-faces { margin: 0 0 0 auto; padding: 0; }
.agw-ev.is-short .agw-ev-faces .avatar { --size: 1.05rem; }

/* escolher: avulsa ou de um projeto */
.ag-picks { display: grid; gap: var(--sp-2); border: 0; padding: 0; margin: 0 0 var(--sp-3); }
.ag-pick { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; background: var(--c-surface); }
.ag-pick:has(.ag-pick-input:checked) { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); background: var(--c-brand-soft); }
.ag-pick:has(.ag-pick-input:focus-visible) { box-shadow: var(--focus-ring); }
.ag-pick-input { position: absolute; opacity: 0; pointer-events: none; }
.ag-pick-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--c-surface-sunken); color: var(--c-brand-ink); }
.ag-pick:has(.ag-pick-input:checked) .ag-pick-icon { background: var(--c-brand); color: var(--c-on-brand); }
.ag-pick-icon svg { width: 1.15rem; height: 1.15rem; }
.ag-pick-text { display: grid; gap: .1rem; }
.ag-pick-text strong { font-size: var(--fs-sm); }
.ag-pick-text span { font-size: var(--fs-xs); color: var(--c-ink-3); }
.mt-project--none { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-ink-3); font-weight: var(--fw-semibold); }
.mt-project--none svg { width: .85rem; height: .85rem; }

@media (max-width: 900px) {
  .ag-layout { grid-template-columns: minmax(0, 1fr); }
  .ag-range-label { font-size: var(--fs-lg); }
}
/* v0.39 — encaixe dos rostinhos e do texto nos blocos */
.agw-ev.has-color { justify-content: flex-start; overflow: hidden; }
.agw-ev.has-faces { padding-bottom: 1.6rem; }
.agw-ev.has-faces .agw-ev-faces { position: absolute; right: .35rem; bottom: .3rem; margin: 0; padding: 0; }
.agw-ev.is-short .agw-ev-title { flex: 1 1 auto; min-width: 2rem; }
.agw-ev.is-short .agw-ev-time { order: 2; }
.agw-ev.is-short .agw-ev-faces { order: 3; }
.agw-ev.has-faces { padding-bottom: .3rem; }
.agw-ev.has-faces > .agw-ev-time, .agw-ev.has-faces > .agw-ev-project { padding-right: 3.1rem; }
.agw-ev.has-faces > .agw-ev-time, .agw-ev.has-faces > .agw-ev-project { padding-right: 0; }
.agw-ev.has-faces > .is-beside-faces { padding-right: var(--faces-w, 1.6rem); }
.agw-ev.has-faces > .agw-ev-flag.is-beside-faces { padding-right: .3rem; margin-right: var(--faces-w, 1.6rem); }
.agw-ev-faces .avatar + .avatar { margin-left: -.2rem; }
.agw-ev.has-color .agw-ev-flag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
