* { box-sizing: border-box; }
body { margin: 0; padding: 20px 14px; background: #f7f2ed; color: #352d2a; font: 16px/1.5 Arial, sans-serif; }
main { max-width: 900px; margin: auto; }
h1, h2 { color: #8c6256; line-height: 1.2; }
.top-brand { margin: 0 0 8px 2px; color: #25211f; font-size: 13px; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 14px; }
a { color: #8c6256; font-weight: 700; }
.card { margin: 0 0 20px; padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px #0000000a; }
.brand { padding: 26px; text-align: center; }
.photo { width: 140px; height: 140px; border: 5px solid #e8d8cc; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.narrow { max-width: 520px; margin-inline: auto; }
label { display: block; margin: 13px 0 5px; font-weight: 700; }
input, select, button, .button { width: 100%; padding: 12px; border: 1px solid #d8cbc4; border-radius: 9px; background: #fff; color: #352d2a; font: inherit; }
input:focus, select:focus { outline: 2px solid #c7a99a; }
button, .button { display: inline-block; margin-top: 16px; border: 0; background: #8c6256; color: white; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #704b41; }
button.secondary, .button.secondary { background: #eee4df; color: #493c37; }
.link-button { width: auto; margin: 0; padding: 0; background: transparent; color: #8c6256; }
.inline-form { display: inline; }
.notice { margin: 10px 0; padding: 12px; border-radius: 8px; background: #f4e8df; }
.notice.erro { background: #fbe5e3; color: #8e2b25; }
.notice.sucesso { background: #e8f2e7; color: #315b32; }
.notice.aviso { background: #fff4d6; color: #6b5217; }
.horarios-grupo { margin-top: 16px; }
.horarios-grupo h3 { margin: 8px 0; color: #8c6256; }
.horarios-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 9px; }
button.horario-opcao { width: 100%; margin: 0; padding: 10px 8px; border: 1px solid #d8cbc4; background: #fff; color: #493c37; }
button.horario-opcao:hover, button.horario-opcao.selecionado { border-color: #8c6256; background: #8c6256; color: #fff; }
button.horario-opcao:focus-visible { outline: 3px solid #c7a99a; outline-offset: 2px; }
.availability-form { display: grid; gap: 14px; }
.weekday-card { min-width: 0; margin: 0; padding: 14px; border: 1px solid #eee2dc; border-radius: 10px; }
.weekday-card legend { padding: 0 6px; color: #8c6256; font-size: 18px; font-weight: 700; }
.availability-toggle { display: flex; gap: 9px; align-items: center; margin: 4px 0 12px; }
.availability-toggle input, .explicit-confirmation input { width: auto; margin: 0; }
.period-list { display: grid; gap: 10px; }
.period-row, .block-times { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.period-row label, .block-times label { margin-top: 0; }
.period-row button, .block-form button { width: auto; }
.block-form { display: grid; gap: 12px; }
.block-form label { margin-top: 0; }
.explicit-confirmation { margin: 12px 0; padding: 12px; border-radius: 8px; background: #fff4d6; }
.conflict-list li { margin: 8px 0; }
.conflict-list span, .block-row span { display: block; color: #756a65; font-size: 13px; }
.block-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #eee2dc; }
.block-row form { flex: 0 0 auto; }
.block-row button { margin: 0; }
.status { color: #83571d; font-weight: 700; }
.empty { color: #756a65; }
.appointment, .service-row, .history-item { padding: 14px 0; border-top: 1px solid #eee2dc; }
.appointment { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.appointment .button { width: auto; min-width: 90px; }
.service-row { display: grid; grid-template-columns: 2fr 1fr auto auto; gap: 12px; align-items: end; }
.service-row label { margin-top: 0; }
.service-row .check { display: flex; gap: 8px; align-items: center; padding-bottom: 10px; }
.service-row .check input { width: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { flex: 0 0 auto; width: auto; margin-top: 5px; }
.service-row button { width: auto; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; }
.form-grid label { margin-top: 0; }
.form-grid button { width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { flex: 1 1 140px; }
.history-item span { display: block; color: #756a65; font-size: 13px; }
footer { padding: 18px 8px; color: #756a65; font-size: 12px; text-align: center; }
@media (max-width: 620px) { .service-row, .form-grid, .period-row, .block-times { grid-template-columns: 1fr; } .appointment { align-items: flex-start; flex-direction: column; } .appointment .button { width: 100%; } .block-row { align-items: flex-start; flex-direction: column; } .block-row form, .block-row button { width: 100%; } }
