/* Agenda pública (protótipo): busca, perfil e configuração. Usa os tokens de auth.css. */
[hidden] { display: none !important; }
.ag-wrap { flex: 1; width: min(100% - 2 * max(16px, 4vw), 1240px); margin: 0 auto; padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) 4rem; }
.ag-head { display: grid; gap: .5rem; max-width: 46rem; }
.ag-title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ag-lead { font-size: 17px; color: var(--text); }
.ag-filters { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1rem; align-items: end; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ag-filters label { font-weight: 600; color: var(--ink); font-size: 15px; }
.ag-tele { min-height: 48px; align-items: center; }
@media (max-width: 899px) { .ag-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ag-tele { grid-column: 1 / -1; min-height: 0; } }
@media (max-width: 479px) { .ag-filters { grid-template-columns: minmax(0, 1fr); } }
.ag-count { margin-top: 1.25rem; font-size: 15px; color: var(--muted); }
.ag-list { margin-top: .75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 899px) { .ag-list { grid-template-columns: minmax(0, 1fr); } }
.ag-doc { display: grid; gap: .9rem; padding: 1.2rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ag-doc__top { display: flex; gap: .9rem; align-items: flex-start; }
.ag-doc h2 { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.ag-doc h2 a { color: inherit; text-decoration: none; }
.ag-doc h2 a:hover { text-decoration: underline; }
.ag-doc .ag-esp { font-size: 15px; }
.ag-avatar { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--sky); color: var(--blue-700); font-weight: 800; flex: none; }
.ag-avatar--lg { width: 4.5rem; height: 4.5rem; font-size: 1.35rem; }
.ag-esp { color: var(--text); font-weight: 600; }
.ag-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: 14px; color: var(--muted); }
.ag-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.ag-meta .icon { width: 1rem; height: 1rem; }
.ag-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ag-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--sky-2); color: var(--blue-700); border: 1px solid var(--line); }
.ag-pill .icon { width: 1rem; height: 1rem; }
.ag-next { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ag-next-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.ag-slot-link { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid var(--blue-300); color: var(--blue-700); font-weight: 700; font-size: 15px; text-decoration: none; background: #fff; }
.ag-slot-link:hover { border-color: var(--blue); background: var(--sky-2); }
.ag-doc__foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ag-doc__foot .btn { min-height: 46px; font-size: 15px; padding-inline: 1.3em; }
.ag-empty { margin-top: 1rem; padding: 1.5rem; background: #fff; border: 1px dashed var(--blue-300); border-radius: var(--r); display: grid; gap: .6rem; justify-items: start; }
.ag-empty h2 { font-size: 18px; font-weight: 800; color: var(--ink); }
.ag-note { margin-top: 2rem; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--sky-2); border-radius: var(--r); font-size: 15px; color: var(--ink-2); max-width: 52rem; }
.ag-note .icon { color: var(--blue); margin-top: .2rem; flex: none; }
.ag-back a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: 15px; }
/* perfil */
.ag-grid { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: start; }
@media (max-width: 1023px) { .ag-grid { grid-template-columns: minmax(0, 1fr); } }
.ag-main { display: grid; gap: 1rem; min-width: 0; }
.ag-side { display: grid; gap: 1rem; position: sticky; top: 1.25rem; min-width: 0; }
@media (max-width: 1023px) { .ag-side { position: static; } }
.ag-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.35rem; display: grid; gap: .8rem; min-width: 0; }
.ag-card h2 { display: flex; align-items: center; gap: .55rem; font-size: 18px; font-weight: 800; color: var(--ink); }
.ag-card h2 .icon { color: var(--blue); width: 1.25rem; height: 1.25rem; }
.ag-id { grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.ag-id h1 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -.015em; }
.ag-reg { margin-top: .35rem; display: inline-flex; align-items: center; gap: .35rem; font-size: 14px; font-weight: 600; color: var(--green-strong, #0f7a46); }
.ag-reg .icon { width: 1rem; height: 1rem; }
.ag-facts { margin: 0; display: grid; gap: .8rem; }
.ag-facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .75rem; }
.ag-facts dt { font-size: 14px; color: var(--muted); }
.ag-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 479px) { .ag-facts div { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }
.ag-book form { display: grid; gap: 1rem; }
.ag-legend { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: .5rem; display: block; }
.ag-days__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.ag-day { position: relative; }
.ag-day input, .ag-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-day span { display: grid; place-items: center; gap: 0; min-height: 56px; padding: .35rem .2rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: 14px; line-height: 1.2; text-align: center; cursor: pointer; }
.ag-day span b { font-size: 15px; }
.ag-day span small { font-size: 12px; color: var(--muted); }
.ag-day input:checked + span { border: 2px solid var(--blue); background: var(--sky-2); }
.ag-day input:focus-visible + span, .ag-slot input:focus-visible + span { box-shadow: 0 0 0 3px rgba(56, 116, 173, .35); }
.ag-day input:disabled + span { color: var(--muted); background: var(--bg); cursor: not-allowed; border-style: dashed; }
.ag-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; }
.ag-slot { position: relative; }
.ag-slot span { display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--blue-300); border-radius: 999px; background: #fff; color: var(--blue-700); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.ag-slot input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
[aria-invalid="true"] .ag-slot span, fieldset[data-invalid="true"] .ag-slot span { border-color: var(--red); }
.ag-noslot { font-size: 14px; color: var(--muted); }
.ag-center { text-align: center; justify-self: center; }
.ag-summary { display: grid; gap: .35rem; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--sky-2); color: var(--ink); font-size: 15px; }
.ag-summary strong { font-size: 16px; }
.ag-login { display: flex; gap: .55rem; align-items: flex-start; font-size: 14px; color: var(--muted); }
.ag-login .icon { margin-top: .15rem; flex: none; }
.ag-text { min-height: 6rem; resize: vertical; line-height: 1.45; }
.ag-done-title { font-size: 22px !important; }
.ag-share { display: grid; gap: .7rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.ag-share h3 { display: flex; align-items: center; gap: .5rem; font-size: 16px; font-weight: 800; color: var(--ink); }
.ag-share h3 .icon { color: var(--blue); }
.ag-share p { font-size: 15px; }
.ag-share form { display: grid; gap: .9rem; }
.ag-share--ok { background: var(--green-bg); border-color: transparent; color: var(--ink); }
.ag-share--ok a { font-weight: 700; }
.ag-checks { display: grid; gap: .6rem; }
.ag-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ag-checks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 479px) { .ag-checks--2, .ag-checks--3 { grid-template-columns: minmax(0, 1fr); } }
.ag-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ag-actions .btn { min-height: 48px; font-size: 16px; }
.ag-actions--end { margin-top: .25rem; }
.btn--danger { background: var(--red-strong, #b42318); border-color: var(--red-strong, #b42318); color: #fff; }
.btn--danger:hover { background: #8f1c13; border-color: #8f1c13; }
/* configuração */
.ag-switch-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ag-switch { position: relative; width: 64px; height: 36px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); cursor: pointer; padding: 0; flex: none; }
.ag-switch span { position: absolute; top: 3px; left: 31px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .15s; }
.ag-switch[aria-checked="false"] { background: #fff; border-color: var(--line-2); }
.ag-switch[aria-checked="false"] span { left: 3px; background: var(--muted); }
.ag-switch:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.ag-short { max-width: 12rem; }
.ag-table { overflow-x: auto; }
.ag-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ag-table th, .ag-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.ag-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.ag-table tbody th { font-weight: 700; color: var(--ink); }
.ag-mini { font-size: 15px; min-height: 44px; align-items: center; }
.ag-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 699px) { .ag-row3 { grid-template-columns: minmax(0, 1fr); } }
.ag-preview.is-off { opacity: .55; }
.ag-off { font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--bg); border-radius: var(--r-sm); padding: .6rem .8rem; }
.ag-dialog { border: 0; border-radius: var(--r); padding: 1.5rem; max-width: min(28rem, calc(100% - 2rem)); box-shadow: 0 20px 60px -20px rgba(11, 21, 80, .4); }
.ag-dialog::backdrop { background: rgba(11, 21, 80, .45); }
.ag-dialog h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.ag-dialog p { margin: .6rem 0 1.2rem; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); max-width: min(32rem, calc(100% - 2rem)); padding: .85rem 1.2rem; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; z-index: 10000; transition: transform .2s, opacity .2s; opacity: 0; visibility: hidden; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.ag-jump { display: none; margin-top: .75rem; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }
@media (max-width: 1023px) { .ag-jump { display: inline-flex; } }
