/* Agenda e perfil: superfícies claras, ações legíveis e movimento discreto. */
[hidden] { display: none !important; }
.workspace-heading h1 { font-size: clamp(2rem, 3.1vw, 2.7rem); }
.workspace-heading p:not(.eyebrow) { font-size: 1rem; max-width: 650px; }
.workspace-heading .eyebrow { font-size: .875rem; letter-spacing: .1em; }
.workspace-heading .button { white-space: normal; }
.booking-shell .panel, .admin-shell .panel { border-radius: 16px; }
.panel-heading h2, .panel-heading h3 { margin: 0; }
.panel-heading p, .field-hint, .field-error, .section-caption { font-size: .875rem; }
.section-caption { margin-top: 7px; color: var(--muted); }
.field-label, .field label { font-size: .9375rem; font-weight: 500; color: var(--green-deep); }
.field input, .field select, .field textarea { font-size: 1rem; min-width: 0; }
.field select { cursor: pointer; }
.step-number { width: 38px; height: 38px; flex-basis: 38px; font-size: .9375rem; background: #eaf3ed; }
.step-number .icon { width: 20px; height: 20px; }
.status { font-size: .875rem; white-space: normal; }

/* O perfil fica acessível no cabeçalho, inclusive com o menu móvel fechado. */
.header-inner > .brand { order: 0; }
.header-inner > .main-nav { order: 1; margin-left: auto; }
.header-inner > .profile-dropdown { order: 2; }
.header-inner > .menu-toggle { order: 3; }
.profile-dropdown { position: relative; flex: 0 0 auto; color: var(--green); }
.profile-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 40px; background: white; list-style: none; min-height: 48px; }
.profile-trigger::-webkit-details-marker, .alternate-date summary::-webkit-details-marker { display: none; }
.profile-trigger:hover, .profile-dropdown[open] .profile-trigger { border-color: #78a991; background: #f1f7f2; }
.profile-trigger-copy { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; max-width: 135px; }
.profile-trigger-copy > span { font-size: .75rem; color: var(--muted); }
.profile-trigger-copy strong { font-size: .875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.profile-trigger > .icon { width: 16px; height: 16px; flex-basis: 16px; transition: transform .2s ease; }
.profile-dropdown[open] .profile-trigger > .icon { transform: rotate(180deg); }
.account-avatar { position: relative; overflow: hidden; width: 38px; height: 38px; flex: 0 0 38px; font-size: .875rem; }
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-avatar.avatar-large { width: 48px; height: 48px; flex-basis: 48px; font-size: 1rem; }
.profile-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(340px, calc(100vw - 32px)); background: white; border: 1px solid #cbded1; border-radius: 16px; padding: 8px; box-shadow: 0 18px 55px #123e2c20, 0 4px 12px #123e2c0a; z-index: 50; max-height: calc(100dvh - 110px); overflow: auto; transform-origin: top right; }
.profile-identity { display: flex; align-items: center; gap: 12px; padding: 14px 10px 20px; border-bottom: 1px solid var(--line); }
.profile-identity > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-identity strong { font-size: .9375rem; font-weight: 500; overflow-wrap: anywhere; }
.profile-identity div > span { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.profile-links { display: flex; flex-direction: column; gap: 3px; padding-block: 8px; }
.profile-links a, .profile-signout { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 48px; font-size: .9375rem; color: var(--green); border-radius: 9px; transition: background .2s, transform .2s; }
.profile-links a[aria-current], .profile-links a:hover, .profile-signout:hover { background: #edf5ef; }
.profile-links a .icon { width: 20px; height: 20px; flex-basis: 20px; }
.profile-links a > .icon:last-child:not(:first-child) { margin-left: auto; width: 17px; flex-basis: 17px; }
.profile-panel > form { border-top: 1px solid var(--line); padding-top: 6px; }
.profile-signout { width: 100%; border: 0; background: transparent; cursor: pointer; }

/* Três passos visíveis, sem esconder os campos obrigatórios. */
.booking-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding: 0; margin: 0 0 30px; }
.booking-steps li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #f0f4ed; border: 1px solid var(--line); border-radius: 12px; min-width: 0; transition: background .25s, border-color .25s; }
.booking-steps li > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #bdcec1; border-radius: 50%; color: var(--green); font-size: .875rem; }
.booking-steps strong { display: block; color: var(--green); font-size: .9375rem; font-weight: 500; }
.booking-steps small { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.booking-steps .is-current { background: white; border-color: #83b199; }
.booking-steps .is-current > span, .booking-steps .is-done > span { color: white; background: var(--green); border-color: var(--green); }
.booking-shell .available-days { padding: 10px 0 6px; gap: 10px; }
.booking-shell .day-chip { min-width: 74px; padding: 12px; border-radius: 10px; }
.booking-shell .day-chip > span { font-size: .8125rem; }
.booking-shell .day-chip > strong { font-size: 1rem; }
.alternate-date { margin-block: 18px 0; }
.alternate-date summary { display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--green); font-size: .875rem; padding-block: 8px; min-height: 44px; list-style: none; }
.alternate-date summary .icon { width: 18px; height: 18px; flex-basis: 18px; }
.alternate-date summary > .icon:last-child { margin-left: auto; }
.alternate-date[open] summary > .icon:last-child { transform: rotate(180deg); }
.alternate-date .date-filter { padding-block: 10px 14px; }
.booking-times { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.booking-times legend { float: left; font-size: 1rem; margin-bottom: 5px; }
.booking-times > .field-hint { clear: both; }
.booking-times .time-grid { padding-top: 15px; }
.time-option > span, .public-time { border-radius: 9px; min-height: 52px; }
.time-range { display: grid; gap: 1px; text-align: left; white-space: nowrap; line-height: 1.35; font-variant-numeric: tabular-nums; }
.time-range strong { font-size: 1rem; font-weight: 500; }
.time-range small { font-size: .8125rem; }
.time-option input:checked + span { background: var(--green); border-color: var(--green); color: white; box-shadow: 0 4px 12px #14513e20; }
.selection-feedback { margin-top: 18px; color: var(--green); font-size: .875rem; }
.appointment-form { display: flex; flex-direction: column; gap: 22px; }
.booking-account, .login-to-book { display: flex; align-items: center; gap: 12px; padding: 15px; background: #f3f7f1; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 24px; }
.booking-account > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.booking-account strong, .login-to-book strong { color: var(--green); font-size: .9375rem; font-weight: 500; overflow-wrap: anywhere; }
.booking-account div > span, .login-to-book p { color: var(--muted); font-size: .875rem; }
.login-to-book { margin: 24px 0 0; align-items: flex-start; }
.login-to-book > img { flex: 0 0 22px; margin-top: 4px; }
.login-to-book p { margin-top: 5px; }
.booking-review { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 0; background: #f0f6f1; border: 1px solid #d3e4d7; border-radius: 12px; padding: 22px; }
.booking-review > div { min-width: 0; }
.booking-review dt { display: flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--muted); margin-bottom: 5px; }
.booking-review dt .icon { width: 16px; height: 16px; flex-basis: 16px; }
.booking-review dd { margin: 0; color: var(--green-deep); font-size: 1rem; overflow-wrap: anywhere; white-space: pre-line; }
.booking-review dd small { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.booking-review .review-address { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #d3e4d7; }
.review-panel .check-field { margin-block: 23px; font-size: .875rem; }
.review-panel .form-bottom-note { font-size: .875rem; }
.form-bottom-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--green); }
.doctor-summary-brand { display: flex; align-items: center; gap: 16px; }
.doctor-summary-brand img { height: 44px; width: 26px; }
.doctor-summary .credential-line, .doctor-summary .aside-point p { font-size: .875rem; }
.city-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 10px 0 0; }
.city-list li { font-size: .8125rem; background: #fff9; border: 1px solid #cadccd; color: var(--green); border-radius: 5px; padding: 4px 8px; }
.booking-empty { padding: 28px 0 8px; }

/* O resumo orienta; cada aba concentra uma tarefa administrativa. */
.dashboard-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: flex-start; gap: 13px; border: 1px solid var(--line); border-radius: 14px; padding: 23px 20px; background: white; color: var(--green); min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.stat-card > .icon { width: 17px; height: 17px; flex-basis: 17px; margin-left: auto; }
.stat-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; background: #eaf3ed; border-radius: 10px; }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-copy { display: flex; flex-direction: column; min-width: 0; }
.stat-copy > span { font-size: .9375rem; }
.stat-copy strong { font-size: 2.3rem; letter-spacing: -.045em; font-weight: 500; line-height: 1.2; margin: 8px 0 6px; }
.stat-copy small { font-size: .8125rem; line-height: 1.65; color: var(--muted); }
.stat-pending { border-color: #dccfa9; background: #fffdf6; }
.stat-pending .stat-icon { color: #7c5b16; background: #f9eed0; }
.workspace-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.workspace-tabs > a { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); border-bottom: 3px solid transparent; padding: 15px 21px; font-size: .9375rem; transition: color .2s, background .2s; }
.workspace-tabs > a[aria-current] { color: var(--green); border-color: var(--green); background: #edf4ee; border-radius: 8px 8px 0 0; }
.workspace-tabs > a:hover { background: #edf4ee; color: var(--green); }
.workspace-tabs .icon { width: 20px; height: 20px; flex-basis: 20px; }
.tab-count { border-radius: 12px; background: var(--green); color: white; min-width: 23px; padding: 1px 6px; text-align: center; font-size: .8125rem; }
.admin-shell .section-toolbar { align-items: flex-start; }
.admin-shell .section-toolbar h2 { font-size: 1.5rem; }
.admin-appointment { overflow: hidden; }
.admin-appointment .appointment-card-top { padding-bottom: 20px; }
.admin-patient-row { display: flex; align-items: center; gap: 13px; padding-top: 22px; }
.admin-patient-row > div { min-width: 0; }
.admin-patient-row h3 { overflow-wrap: anywhere; }
.patient-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: var(--green); background: var(--soft); border-radius: 50%; }
.city-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--green); background: #edf4ee; border-radius: 6px; padding: 6px 10px; font-size: .875rem; margin-left: auto; }
.city-tag .icon { width: 16px; height: 16px; flex-basis: 16px; }
.admin-details { grid-template-columns: 1.3fr .9fr 1fr; padding-block: 22px; }
.admin-details .detail-label, .admin-patient-row .detail-label { font-size: .75rem; letter-spacing: .045em; }
.admin-details p { font-size: .9375rem; }
.patient-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: .9375rem; text-decoration: underline; text-underline-offset: 4px; min-height: 30px; }
.patient-phone .icon { width: 17px; height: 17px; flex-basis: 17px; }
.admin-next-action { border-top: 1px solid var(--line); padding-top: 20px; display: flex; align-items: center; gap: 22px; justify-content: space-between; }
.action-explanation { max-width: 450px; }
.action-explanation strong { font-size: .9375rem; color: var(--green); font-weight: 500; }
.action-explanation p { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.admin-actions { flex: 0 0 auto; justify-content: flex-end; }
.admin-actions .button { min-height: 46px; }
.timezone-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.timezone-note .icon { width: 18px; height: 18px; flex-basis: 18px; }
.slot-preview { margin-top: 24px; padding: 16px; border-radius: 10px; border: 1px solid #cfe0d4; background: #f1f7f2; }
.slot-preview strong { font-size: .9375rem; color: var(--green); font-weight: 500; }
.slot-preview p { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.slot-create-form > .button { white-space: normal; }
.daily-schedule-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 26px; }
.daily-schedule-heading strong { color: var(--green); font-size: 1rem; font-weight: 500; }
.daily-schedule-heading > span { color: var(--muted); font-size: .875rem; }
.daily-schedule .admin-slots { margin-top: 12px; }
.admin-slot > div { align-items: flex-start; gap: 7px; }
.admin-slot strong { font-size: 1rem; }
.admin-slot strong > span { font-size: .875rem; font-weight: 400; }
.admin-slot .status { font-size: .8125rem; padding: 3px 9px; }
.admin-slot .status-pending { color: #815b12; }
.admin-slot .status-confirmed { color: #14513e; }
.admin-slot .status-completed { color: #385c7e; }
.admin-slot .slot-state { font-size: .875rem; }
.admin-slot .slot-free { color: var(--green); }
.admin-slot .slot-closed { color: #86504a; }
.schedule-hint { font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.schedule-hint a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Entradas, seleção e feedback: apenas opacity/transform em animações. */
@media (prefers-reduced-motion: no-preference) {
  .profile-dropdown[open] .profile-panel { animation: profile-arrival .24s cubic-bezier(.2,.7,.25,1) both; }
  .booking-steps, .workspace-tabs { animation: page-arrival .55s .06s both; }
  .time-option input:checked + span { animation: selection-arrival .22s ease-out; }
  .stat-card:nth-child(2) { transition-delay: .055s; }
  .stat-card:nth-child(3) { transition-delay: .11s; }
  .hero-copy > :nth-child(2) { animation: page-arrival .7s .1s both; }
  .hero-copy > :nth-child(3) { animation: page-arrival .7s .18s both; }
  .hero-actions { animation: page-arrival .7s .26s both; }
  .home-note { animation: note-arrival .8s .45s both; }
  .is-submitting button[type='submit'] .icon:first-child { animation: submit-breathe .9s ease-in-out infinite alternate; }
  .js .main-nav.is-open { animation: page-arrival .24s both; }
  @keyframes profile-arrival { from { opacity: 0; transform: translateY(-7px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes selection-arrival { from { transform: scale(.96); } to { transform: scale(1); } }
  @keyframes note-arrival { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
  @keyframes submit-breathe { from { opacity: .4; } to { opacity: 1; } }
}
@media (hover: hover) and (pointer: fine) {
  .stat-card:hover { border-color: #83b199; box-shadow: 0 10px 24px #14513e0d; }
  .profile-links a:hover { transform: translateX(2px); }
  .care-item .care-icon, .contact-card .contact-arrow, .booking-invitation > .icon { transition: transform .3s ease; }
  .care-item:hover .care-icon { transform: translateY(-3px); }
  .contact-card:hover .contact-arrow, .booking-invitation:hover > .icon { transform: translateX(4px); }
}
@media (max-width: 1100px) {
  .dashboard-stats { gap: 12px; }
  .stat-card { padding: 20px 16px; gap: 10px; }
  .stat-card > .icon { display: none; }
  .admin-next-action { align-items: flex-start; flex-direction: column; gap: 17px; }
  .action-explanation { max-width: none; }
}
@media (max-width: 1000px) {
  .header-inner > .main-nav { order: 4; margin-left: 0; }
  .header-inner > .profile-dropdown { margin-left: auto; margin-right: 10px; }
  .header-inner:has(.profile-dropdown) > .brand { max-width: calc(100% - 120px); flex-basis: 235px; }
  .profile-trigger { width: 44px; height: 44px; min-height: 44px; padding: 2px; justify-content: center; }
  .profile-trigger-copy, .profile-trigger > .icon { display: none; }
  .profile-panel { right: -56px; }
  .booking-steps { gap: 10px; }
  .booking-steps li { padding: 14px 12px; gap: 9px; }
  .booking-steps small { display: none; }
}
@media (max-width: 800px) {
  .booking-aside { order: 2; }
  .doctor-summary-brand { margin-bottom: 16px; }
  .admin-details { grid-template-columns: 1fr 1fr; }
  .admin-details > div:first-child { grid-column: 1 / -1; }
  .stat-card { flex-direction: column; }
}
@media (max-width: 600px) {
  .workspace-heading { gap: 18px; }
  .workspace-heading .eyebrow { font-size: .8125rem; }
  .workspace-heading .button { width: 100%; justify-content: center; }
  .booking-steps { gap: 7px; margin-bottom: 23px; }
  .booking-steps li { flex-direction: column; align-items: flex-start; padding: 12px 10px; gap: 7px; }
  .booking-steps strong { font-size: .8125rem; line-height: 1.5; }
  .booking-steps li > span { width: 25px; height: 25px; flex-basis: 25px; }
  .booking-shell .panel, .admin-shell .panel { padding: 22px 18px; }
  .booking-review { gap: 19px 12px; padding: 17px; }
  .booking-review dt { font-size: .8125rem; }
  .booking-account { padding: 13px; align-items: flex-start; }
  .booking-account div > span { font-size: .8125rem; }
  .dashboard-stats { grid-template-columns: 1fr; gap: 10px; margin-bottom: 23px; }
  .stat-card { flex-direction: row; align-items: center; padding: 16px; gap: 14px; }
  .stat-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1px 18px; flex: 1; }
  .stat-copy strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.8rem; margin: 0; }
  .stat-copy small { grid-column: 1; font-size: .8125rem; }
  .workspace-tabs { gap: 0; }
  .workspace-tabs > a { flex: 1; padding: 13px 8px; gap: 7px; font-size: .875rem; }
  .workspace-tabs .icon { display: none; }
  .admin-patient-row { flex-wrap: wrap; }
  .admin-patient-row > div { flex: 1; }
  .city-tag { margin-left: 55px; }
  .admin-details { grid-template-columns: 1fr; gap: 17px; }
  .admin-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .admin-actions .button { width: 100%; }
  .timezone-note { font-size: .8125rem; }
  .profile-panel { max-height: calc(100dvh - 110px); }
}
@media (max-width: 370px) {
  .booking-review { grid-template-columns: 1fr; }
  .booking-review .review-address { grid-column: auto; }
  .stat-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-panel, .home-note, .hero-actions, .booking-steps { animation: none !important; }
}

/* Contornos de 1px tornam cada consulta e cada escolha fáceis de distinguir. */
.appointment-card { border: 1px solid #739b83; box-shadow: 0 3px 12px #14513e06; }
.appointments-list { gap: 26px; }
.booking-shell .panel, .profile-shell .panel, .admin-task-surface > .panel { border: 1px solid #81a58f; }
.booking-shell .day-chip, .booking-shell .time-option > span, .booking-shell .public-time { border: 1px solid #628e75; }
.booking-shell .day-chip.selected { border-color: var(--green); }
.booking-shell .time-option input:checked + span { border-color: var(--green); }
.booking-shell .field input, .booking-shell .field select, .booking-shell .field textarea,
.profile-shell .field input, .profile-shell .field select, .profile-shell .field textarea { border: 1px solid #739b83; background: white; }
.booking-shell .booking-steps li { border-color: #83a48e; }
.booking-shell .booking-steps .is-current { border-color: var(--green); }
.booking-shell .alternate-date { border: 1px solid #95b19f; border-radius: 10px; padding-inline: 14px; }
.booking-shell .booking-review { border: 1px solid #8cad98; gap: 12px; background: #f2f7f2; padding: 16px; }
.booking-shell .booking-review > div { border: 1px solid #afc5b7; border-radius: 8px; padding: 12px; background: white; }
.booking-shell .booking-review .review-address { padding-top: 12px; }
.admin-task-surface { max-width: 860px; margin-inline: auto; }
.admin-task-surface .slot-create-form, .admin-task-surface .daily-schedule { width: 100%; }
.admin-task-surface .daily-schedule .admin-slots { gap: 12px; }
.admin-task-surface .admin-slot { border: 1px solid #91af9d; border-radius: 10px; padding: 16px; }
.task-followup { color: var(--muted); font-size: .9375rem; margin: 22px 0; }
.task-followup a { display: inline-flex; align-items: center; gap: 8px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.task-followup .icon { width: 18px; height: 18px; flex-basis: 18px; }
.schedule-window { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #93b29e; border-radius: 10px; background: #edf5ed; padding: 16px 19px; margin-bottom: 27px; color: var(--green); }
.schedule-window > .icon { flex: 0 0 22px; margin-top: 2px; }
.schedule-window strong, .schedule-window span { display: block; }
.schedule-window strong { font-size: 1rem; font-weight: 500; }
.schedule-window span { font-size: .875rem; color: var(--muted); margin-top: 3px; }
.slot-break { border: 1px solid #95b59f; border-radius: 10px; padding: 18px; margin-top: 24px; background: #f7faf5; }
.slot-break .check-field { margin: 0; }
.slot-break .check-field strong { display: block; color: var(--green); font-weight: 500; }
.slot-break .check-field small { display: block; color: var(--muted); font-size: .875rem; margin-top: 3px; }
.slot-break [data-break-fields] { border-top: 1px solid #c8d9cd; margin-top: 17px; padding-top: 17px; }
.slot-break [data-break-fields][hidden] { display: none; }
.slot-break .field-hint { margin-bottom: 0; }
.schedule-closed-note { border: 1px solid #c6d5c8; border-radius: 8px; padding: 13px 15px; background: #f4f7f1; color: #59695c; font-size: .875rem; margin-bottom: 17px; }
.schedule-scope { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.schedule-scope a { display: flex; gap: 10px; align-items: center; padding: 17px 14px; border: 1px solid #83a68f; border-radius: 11px; background: white; color: var(--green); transition: background .2s, border-color .2s; }
.schedule-scope a:hover { background: #f0f7f1; border-color: var(--green); }
.schedule-scope a[aria-current="page"] { background: var(--green); color: white; border-color: var(--green); }
.schedule-scope .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.schedule-scope strong, .schedule-scope small { display: block; }
.schedule-scope strong { font-size: .9375rem; font-weight: 500; }
.schedule-scope small { font-size: .75rem; margin-top: 3px; }
.batch-preserve-note { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .875rem; margin-top: 20px; }
.batch-preserve-note .icon { width: 19px; height: 19px; flex: 0 0 19px; color: var(--green); }
.booking-month-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 12px; padding: 18px; margin-bottom: 24px; border: 1px solid #91b09d; border-radius: 10px; background: #f2f7f1; }
.booking-month-filter .field { flex: 1 1 235px; min-width: 0; }
.booking-month-filter .field-hint { flex-basis: 100%; margin: 0; }
.booking-month-filter select { width: 100%; }
.month-caption { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; margin-top: 4px; }
.available-days.month-days { display: grid; grid-template-columns: repeat(auto-fill,minmax(70px,1fr)); overflow: visible; gap: 9px; }
.month-days .day-chip { min-width: 0; margin: 0; }
.slot-delete-filter { margin-bottom: 10px; }
.slot-delete-review { margin-top: 26px; padding: 22px; border: 1px solid #c7a99a; border-radius: 11px; background: #fffaf6; }
.slot-delete-review > h3 { font-size: 1.25rem; margin-top: 6px; }
.slot-delete-review[hidden], .delete-review-stale[hidden] { display: none; }
.deletion-counts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.deletion-counts > div { padding: 18px; border: 1px solid #d2b7a7; background: white; border-radius: 9px; }
.deletion-counts strong { display: block; color: #9b452f; font-size: 1.9rem; font-weight: 500; line-height: 1.2; }
.deletion-counts span { display: block; margin-top: 9px; color: var(--green); font-size: .875rem; }
.deletion-counts small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.deletion-counts .deletion-protected { border-color: #a6c0ae; }
.deletion-protected strong { color: var(--green); }
.delete-review-stale { margin-top: 20px; padding: 14px; border: 1px solid #c7b69d; border-radius: 8px; background: #fffaf0; font-size: .875rem; }
@media (max-width: 600px) {
  .schedule-scope { gap: 8px; }
  .schedule-scope a { padding: 13px 6px; gap: 7px; text-align: center; flex-direction: column; }
  .schedule-scope strong { font-size: .875rem; }
  .schedule-scope small { font-size: .6875rem; }
  .booking-month-filter { padding: 14px; }
  .booking-month-filter .button { width: 100%; }
  .slot-delete-review { padding: 17px; }
  .deletion-counts { grid-template-columns: 1fr; }
  .slot-delete-filter { flex-wrap: wrap; }
  .slot-delete-filter .field, .slot-delete-filter .button { flex-basis: 100%; }
}

/* Dados privados: edição em um lugar, preenchimento nas próximas consultas. */
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 24px; }
.profile-shell .account-strip { border-color: #9bb9a6; }
.private-label { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--green); margin-left: auto; }
.private-label .icon { width: 17px; height: 17px; flex-basis: 17px; }
.saved-profile-form .panel-heading { align-items: flex-start; }
.saved-profile-form .panel-heading h2 { font-size: 1.25rem; }
.profile-save-row { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.profile-save-row p { color: var(--muted); font-size: .875rem; }
.profile-save-row .button { width: 100%; }
.appointment-map-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--green); font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; margin-top: 12px; }
.appointment-map-link .icon { width: 17px; height: 17px; flex-basis: 17px; }
.map-link-note { display: block; color: var(--muted); font-size: .75rem; margin-top: 6px; }
.profile-privacy { position: sticky; top: 130px; background: #f1f6ef; }
.profile-privacy .empty-icon { margin: 0 0 18px; background: white; border: 1px solid #a9c3b1; }
.profile-privacy h2 { font-size: 1.3rem; }
.profile-privacy > p { font-size: .9375rem; color: var(--muted); margin-top: 17px; }
.profile-privacy .text-link { flex-wrap: wrap; font-size: .875rem; }
.profile-remove { display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid #d6bbb5; border-radius: 12px; background: #fffdfb; margin-top: 28px; padding: 22px 24px; }
.profile-remove strong { color: var(--green); font-size: .9375rem; font-weight: 500; }
.profile-remove p { margin-top: 5px; font-size: .875rem; color: var(--muted); max-width: 640px; }
.profile-remove > form { flex-shrink: 0; }
.saved-data-shortcut { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid #90b39d; border-radius: 12px; margin-bottom: 28px; background: white; color: var(--green); transition: border-color .2s, background .2s; }
.saved-data-shortcut:hover { border-color: var(--green); background: #f1f7f2; }
.saved-data-shortcut > span { display: flex; flex-direction: column; gap: 3px; }
.saved-data-shortcut strong { font-size: .9375rem; font-weight: 500; }
.saved-data-shortcut span > span { font-size: .875rem; color: var(--muted); }
.saved-data-shortcut > .icon:last-child { margin-left: auto; width: 20px; flex-basis: 20px; }
.saved-profile-notice { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid #a6c4b0; border-radius: 10px; background: #f0f7f1; margin-bottom: 24px; }
.saved-profile-notice > .icon { color: var(--green); width: 20px; height: 20px; flex-basis: 20px; margin-top: 3px; }
.saved-profile-notice strong { color: var(--green); font-weight: 500; font-size: .9375rem; }
.saved-profile-notice p { font-size: .875rem; color: var(--muted); margin-top: 5px; }
.saved-profile-notice a { display: inline-flex; align-items: center; gap: 7px; padding-top: 8px; font-size: .875rem; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.saved-profile-notice a .icon { width: 16px; height: 16px; flex-basis: 16px; }
.history-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.history-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #becdc3; border-radius: 12px; padding: 15px 18px; background: white; color: var(--green); min-width: 0; }
.history-filter strong { font-size: 1.5rem; font-weight: 500; }
.history-filter-completed { color: #14513e; background: #f0f8f2; border-color: #9cc5aa; }
.history-filter-cancelled { color: #922d36; background: #fff5f5; border-color: #dfabb0; }
.history-filter[aria-current] { outline: 2px solid currentColor; outline-offset: -2px; }
.history-search { display: flex; align-items: flex-end; gap: 14px; padding: 20px; margin-bottom: 16px; }
.history-search .field { flex: 1; min-width: 0; }
.history-reset { color: var(--green); text-decoration: underline; font-size: .875rem; padding-block: 12px; }
.history-results { color: var(--muted); font-size: .875rem; margin-bottom: 20px; }
.history-card-completed { border-color: #8ab49a; border-left: 4px solid #2f8f68; background: #f9fcf9; }
.history-card-cancelled { border-color: #d5a2a8; border-left: 4px solid #b34754; background: #fffafa; }
.history-status-completed { color: #14513e; border-color: #80b092; background: #e7f4ea; font-weight: 500; }
.history-status-cancelled { color: #922d36; border-color: #d598a1; background: #fcebed; font-weight: 500; }
.history-details { grid-template-columns: .85fr 1.3fr 1fr; }
.history-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.history-card-footer > div { color: var(--muted); font-size: .8125rem; min-width: 0; }
.history-card-footer small { display: block; margin-top: 5px; }
.history-clear { margin-top: 30px; padding: 18px 20px; border: 1px solid #dfb7bd; border-radius: 12px; background: #fffafa; }
.history-clear > summary { cursor: pointer; color: #922d36; font-size: .9375rem; }
.history-clear > summary .icon { width: 19px; height: 19px; margin-inline: 5px 8px; }
.history-clear form { display: grid; gap: 18px; padding-top: 20px; }
.history-clear p { color: var(--muted); font-size: .875rem; }
.history-clear form > button { justify-self: start; }
@media (max-width: 760px) {
  .history-search { flex-wrap: wrap; }
  .history-search .field { flex-basis: 100%; }
  .history-details { grid-template-columns: 1fr; }
  .history-filter { flex-direction: column; align-items: flex-start; padding: 12px; gap: 4px; font-size: .8125rem; }
  .history-card-footer { align-items: flex-start; flex-direction: column; }
  .history-card .admin-patient-row { flex-wrap: wrap; }
  .history-card .city-tag { margin-left: 0; }
}
@media (max-width: 800px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-privacy { position: static; }
  .profile-privacy h2 br { display: none; }
  .profile-remove { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .admin-shell .workspace-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-shell .workspace-tabs > a { text-align: center; font-size: .8125rem; padding: 12px 7px; min-width: 0; flex-wrap: wrap; gap: 5px; }
  .admin-shell .workspace-tabs > .history-tab { grid-column: 1 / -1; }
  .admin-shell .tab-count { font-size: .75rem; }
  .profile-shell .panel { padding: 22px 18px; }
  .private-label { margin-left: 0; flex-basis: 100%; }
  .saved-data-shortcut { padding: 17px; gap: 12px; }
  .saved-profile-notice { padding: 14px; }
  .profile-remove { padding: 20px 18px; }
  .profile-remove > form, .profile-remove .button { width: 100%; }
}
