/* Página Minha agenda (public/site/minha-agenda.js). Tokens do site.css; as setas e o Hoje são os da Agenda (agenda.css, .ag-nav); a linha do
   tempo em linha-do-tempo.css. Respiro igual: 24 px entre blocos. No celular (até 900 px): toques de 44 px e nada de rolagem lateral. */

.ma-pagina { max-width: 720px; }
.ma-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.ma-de { margin: 0 4px; font-size: 15px; color: var(--tinta-2); }
.ma-de strong { color: var(--tinta); font-weight: 800; }
.ma-quem select { height: 42px; min-width: 180px; font-weight: 800; }
.ma-aviso { margin: 24px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--vence-fundo); color: var(--vence-texto); font-size: 14px; font-weight: 700; }

/* a faixa dos 7 dias, com a contagem de cada um */
.ma-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
.ma-dia { min-width: 0; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 2px; border: 0; border-radius: 14px; background: var(--cartao); box-shadow: var(--sombra-cartao); color: var(--tinta); font: inherit; cursor: pointer; }
.ma-dia:hover { background: var(--poco-hover); }
.ma-dia-rot { max-width: 100%; font-size: 11.5px; font-weight: 800; color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-dia-num { font-size: 18px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ma-dia-qtd { min-width: 22px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--suave-fundo); font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.ma-dia-hoje .ma-dia-rot { color: var(--vencido-texto); }
.ma-dia-fechado { background: var(--poco); box-shadow: none; }
.ma-dia-fechado .ma-dia-num { color: var(--tinta-2); }
.ma-dia[aria-pressed='true'] { background: var(--botao); color: var(--botao-texto); box-shadow: none; }
.ma-dia[aria-pressed='true'] .ma-dia-rot { color: var(--botao-texto); opacity: 0.8; }
.ma-dia[aria-pressed='true'] .ma-dia-qtd { background: rgba(255, 255, 255, 0.18); color: var(--botao-texto); }
.ma-dia:focus-visible { outline: 3px solid var(--tracejado); outline-offset: 2px; }

/* o dia */
.ma-dia-cartao { margin-top: 24px; padding: 18px 18px 20px; }
.ma-dia-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 16px; }
.ma-dia-topo h2 { margin: 0; font-size: 18px; font-weight: 900; }
.ma-total { flex: none; font-size: 13.5px; font-weight: 800; color: var(--tinta-2); }

/* o próximo, em destaque */
.ma-prox { width: 100%; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 16px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--s0-fundo); color: var(--s0-texto); font: inherit; text-align: left; cursor: pointer; }
.ma-prox:disabled { cursor: default; }
.ma-prox-rot { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.ma-prox strong { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ma-prox-quem { min-width: 0; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .ma-barra { flex-direction: column; align-items: stretch; }
  .ma-quem select { width: 100%; height: 44px; }
  .ma-nav { flex: 1 1 100%; justify-content: space-between; }
  .ma-dias { gap: 4px; }
  .ma-dia { min-height: 64px; border-radius: 12px; }
  .ma-dia-cartao { padding: 14px 12px 16px; }
}

/* Agenda, Configurar, Quem atende: o link só para ver, que aparece uma vez ao criar (public/site/agenda.js, minhaAgendaDoProf) */
.ag-link-novo { margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--ok-fundo); color: var(--ok-texto); }
.ag-link-novo .ag-apoio { color: var(--ok-texto); }
.ag-link-url { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--cartao); color: var(--tinta); font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
