:root {
  --bg: #f8f4ef;
  --surface: #ffffff;
  --surface-2: #fbf8f4;
  --ink: #2a2421;
  --ink-2: #6b5f58;
  --ink-3: #9a8d85;
  --line: #e8dfd6;
  --line-2: #d9ccc0;
  --accent: #96664c;
  --accent-ink: #ffffff;
  --accent-soft: #f4e9e1;
  --accent-line: #e2c9b8;
  --ok: #3f7d5a;
  --ok-soft: #e6f2ea;
  --err: #b4412f;
  --err-soft: #fbeae6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 36, 33, .04), 0 8px 28px rgba(42, 36, 33, .06);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 244, 239, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-family: var(--serif);
}
.brand em { font-style: normal; color: var(--accent); }
.topbar-spacer { flex: 1; }
.save-status { font-size: 13px; color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.save-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.save-status[data-state="saved"]::before { background: var(--ok); }
.save-status[data-state="saving"]::before { background: var(--accent); }
.save-status[data-state="error"]::before { background: var(--err); }
.btn-link {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.btn-link:hover { border-color: var(--accent-line); background: var(--accent-soft); }

.progress { height: 3px; background: var(--line); }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .35s ease; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1160px; margin: 0 auto; padding: 32px 20px 120px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start;
}
.stepper { position: sticky; top: 88px; }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stepper button {
  width: 100%; text-align: left; border: 0; background: transparent;
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink-2); font-size: 14px;
}
.stepper button:hover { background: var(--surface); }
.stepper .dot {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-2); display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--surface);
}
.stepper li[data-state="done"] .dot { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.stepper li[data-state="error"] .dot { background: var(--err-soft); border-color: transparent; color: var(--err); }
.stepper li[aria-current="step"] button { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.stepper li[aria-current="step"] .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper-help { margin-top: 20px; padding: 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 13px; color: var(--ink-2); }

.mobile-step { display: none; }

/* ---------- Etapa ---------- */
.step-head { margin-bottom: 24px; }
.step-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.step-title { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 8px; }
.for-whom { margin: 12px 0 0; display: inline-block; background: var(--accent-soft); color: var(--ink-2); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.for-whom strong { color: var(--ink); font-weight: 600; }
.step-intro { color: var(--ink-2); margin: 0; max-width: 62ch; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.fields { display: grid; gap: 22px; }
.section-heading {
  font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 14px 0 -6px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.fields > .section-heading:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.field { display: grid; gap: 8px; min-width: 0; }
.field-label { font-weight: 600; font-size: 14.5px; }
.field-label .req { color: var(--accent); margin-left: 2px; }
.field-label .opt { color: var(--ink-3); font-weight: 400; font-size: 13px; margin-left: 6px; }
.field-hint { color: var(--ink-3); font-size: 13px; margin-top: -4px; }
.field-error { color: var(--err); font-size: 13px; font-weight: 500; display: none; }
.field.has-error .field-error { display: block; }
.field.has-error .input, .field.has-error .input-wrap { border-color: var(--err); }

.field-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.field-row > .field { flex: 0 1 auto; }

.input, .input-wrap {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); padding: 11px 13px; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .input-wrap:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: #b9aca3; }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b5f58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.input-wrap { display: flex; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.input-wrap input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; padding: 11px 0; }
.input-wrap .affix { color: var(--ink-3); font-size: 14px; }

.size-xs { max-width: 110px; }
.size-sm { max-width: 170px; }
.size-md { max-width: 280px; }
.size-lg { max-width: 440px; }

/* Radio em pílulas */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 9px 16px; min-height: 42px; font-size: 14px; user-select: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: var(--accent-line); }
.pill:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Checkboxes */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; line-height: 1.35; min-height: 44px;
  transition: background .15s, border-color .15s;
}
.check:hover { border-color: var(--accent-line); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 5px;
  border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center;
}
.check .box svg { width: 12px; height: 12px; opacity: 0; }
.check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-line); }
.check:has(input:checked) .box { background: var(--accent); border-color: var(--accent); }
.check:has(input:checked) .box svg { opacity: 1; }
.check:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
.check.custom { border-style: dashed; }
.check .remove { margin-left: auto; border: 0; background: none; color: var(--ink-3); padding: 0 2px; font-size: 16px; line-height: 1; }
.check .remove:hover { color: var(--err); }

.other-row { display: flex; gap: 8px; margin-top: 4px; max-width: 520px; }
.other-row .input { flex: 1; }
.btn-ghost {
  border: 1px dashed var(--accent-line); background: transparent; color: var(--accent);
  border-radius: var(--radius-sm); padding: 0 14px; min-height: 44px; font-weight: 500; font-size: 14px; white-space: nowrap;
}
.btn-ghost:hover { background: var(--accent-soft); }

/* Catálogo (cirurgias / procedimentos) */
.catalog { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.catalog-head {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: linear-gradient(180deg, var(--accent-soft), #f8f1eb);
  border-bottom: 1px solid var(--line);
}
.catalog-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--accent); flex: none; }
.catalog-icon svg { width: 22px; height: 22px; }
.catalog-title { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; }
.catalog-count { font-size: 13px; color: var(--ink-2); }
.catalog-search { margin-left: auto; width: 220px; }
.catalog-search .input { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.catalog-body { padding: 18px; display: grid; gap: 18px; }
.group-label { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.group-label button { border: 0; background: none; color: var(--accent); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; padding: 0; }
.group-label button:hover { text-decoration: underline; }
.catalog-empty { color: var(--ink-3); font-size: 14px; }

/* Agenda semanal */
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.day {
  width: 52px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-rows { display: grid; gap: 8px; margin-top: 4px; }
.day-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.day-row .day-name { width: 72px; font-weight: 600; font-size: 14px; }
.ranges { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.range { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.range input[type="time"] { width: 112px; min-height: 38px; padding: 6px 10px; }
.icon-btn {
  width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid transparent; background: transparent;
  display: grid; place-items: center; color: var(--ink-3);
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; border-color: transparent; }
.icon-btn svg { width: 16px; height: 16px; }
.range-actions { display: flex; flex-wrap: wrap; gap: 0 18px; }
.text-btn { border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 500; padding: 4px 0; }
.text-btn:hover { text-decoration: underline; }

/* Repeater */
.rep { display: grid; gap: 10px; }
.rep-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.rep-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: none; margin-top: 9px; }
.rep-fields { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; min-width: 0; }
.rep-fields .wide { grid-column: 1 / -1; }
.rep-fields label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.rep-actions { display: flex; gap: 2px; margin-top: 4px; }
.rep-add { justify-self: start; }

/* Ranking */
.rank-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px;
  font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); }
.chip:disabled { opacity: .45; cursor: default; }
.chip .plus { color: var(--accent); font-weight: 700; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; }
.rank-list .pos { font-family: var(--serif); font-size: 18px; color: var(--accent); width: 20px; text-align: center; }
.rank-list .name { flex: 1; min-width: 0; }
.rank-empty { color: var(--ink-3); font-size: 13.5px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }

/* Técnicas por cirurgia */
.example { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--accent-line); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.per-item { display: grid; gap: 8px; }
.per-item details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.per-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; font-size: 14.5px;
}
.per-item summary::-webkit-details-marker { display: none; }
.per-item summary::after {
  content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s; margin-right: 4px;
}
.per-item details[open] summary::after { transform: rotate(-135deg); }
.per-item .badge { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.per-item .badge.filled { color: var(--ok); }
.per-item .per-body { padding: 0 14px 14px; }

/* Endereço */
.addr { display: grid; grid-template-columns: 150px 1fr 110px; gap: 10px; }
.addr .full { grid-column: 1 / -1; }
.addr .span2 { grid-column: span 2; }
.addr label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.addr-status { font-size: 12px; color: var(--ink-3); align-self: end; padding-bottom: 12px; }

/* ---------- Navegação ---------- */
.nav-bar { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.nav-bar .spacer { flex: 1; }
.btn {
  border: 1px solid transparent; border-radius: 999px; padding: 0 22px; min-height: 48px;
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #855a42; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent-line); }

/* ---------- Revisão ---------- */
.review { display: grid; gap: 16px; }
.review-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.review-step header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.review-step h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 19px; }
.review-step header .tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--err-soft); color: var(--err); font-weight: 600; }
.review-step header .tag.ok { background: var(--ok-soft); color: var(--ok); }
.review-step header .text-btn { margin-left: auto; }
.review-step dl { margin: 0; padding: 6px 18px 12px; display: grid; grid-template-columns: minmax(160px, 32%) 1fr; }
.review-step dt, .review-step dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.review-step dt { color: var(--ink-2); padding-right: 16px; }
.review-step dd { white-space: pre-wrap; word-break: break-word; }
.review-step dl > :nth-last-child(-n+2) { border-bottom: 0; }
.review-step .empty { color: var(--ink-3); }
.review-sub { display: block; margin-top: 4px; color: var(--ink-2); }
.review-list { margin: 0; padding-left: 18px; }
.review-kv { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 8px; padding: 3px 0; }
.review-kv .k { color: var(--ink-3); font-size: 13px; }
.review-kv .v { min-width: 0; }

/* Médicos */
.doctors { display: grid; gap: 16px; }
.doctor-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.doctor-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.doctor-head h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 20px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doctor-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; display: grid; place-items: center; flex: none; }
.doctor-card > .fields { padding: 18px; }
.doctor-del { color: var(--err); }
.doctor-add { justify-self: start; }
.per-doctor { display: grid; gap: 12px; }
.per-doctor .doctor-head h3 { font-size: 17px; }
.per-doctor .doctor-head { padding: 10px 14px; }
.per-doctor .doctor-card > .fields { padding: 14px; gap: 16px; }
.review-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.review-chips span { background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.review-errors { background: var(--err-soft); color: var(--err); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; }
.review-errors ul { margin: 6px 0 0; padding-left: 18px; }
.review-errors button { border: 0; background: none; color: inherit; text-decoration: underline; padding: 0; font: inherit; }

/* ---------- Telas finais ---------- */
.done { text-align: center; padding: 56px 28px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.done-icon svg { width: 30px; height: 30px; }
.done h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 10px; }
.done p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 8px; }
.next-steps { text-align: left; max-width: 460px; margin: 24px auto 0; display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: s; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: s; font-size: 14.5px; }
.next-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; display: grid; place-items: center; flex: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
.copy-link-short { display: none; }
@media (max-width: 560px) { .copy-link-short { display: inline; } }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 20px 16px 120px; }
  .stepper { display: none; }
  .mobile-step { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
  .mobile-step select { flex: 1; min-height: 42px; }
  .mobile-step .count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
  .step-title { font-size: 28px; }
  .card { padding: 20px 16px; border-radius: 12px; }
  .nav-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(248, 244, 239, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .nav-bar { gap: 10px; }
  .nav-bar .btn { min-height: 46px; }
  .nav-bar .btn-secondary { flex: none; padding: 0 16px; }
  .nav-bar .btn-primary { flex: 1; }
  .nav-bar .text-btn { font-size: 13px; white-space: nowrap; }
  .nav-bar .spacer { display: none; }
  .catalog-head { flex-wrap: wrap; padding: 14px; }
  .catalog-search { width: 100%; margin-left: 0; }
  .catalog-body { padding: 14px; }
}
@media (max-width: 560px) {
  .topbar-inner { padding: 10px 16px; gap: 10px; }
  .brand span.brand-text { display: none; }
  .save-status { font-size: 12px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .size-md, .size-lg { max-width: none; }
  .field-row > .field { flex: 1 1 100%; }
  .field-row > .field.size-xs, .field-row > .field.size-sm { flex: 1 1 calc(50% - 8px); max-width: none; }
  .addr { grid-template-columns: 1fr 96px; }
  .addr .cep { grid-column: 1 / -1; max-width: 200px; }
  .addr .span2 { grid-column: 1 / -1; }
  .review-step dl { grid-template-columns: minmax(0, 1fr); }
  .doctor-card > .fields { padding: 14px; }
  .review-step dt { border-bottom: 0; padding-bottom: 0; font-size: 13px; }
  .review-step dl > :nth-last-child(2) { border-bottom: 0; }
  .day-row .day-name { width: 100%; }
  .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .day { width: auto; height: 42px; font-size: 12px; padding: 0; }
  .ranges { min-width: 0; }
  .range { gap: 6px; }
  .range input[type="time"] { width: auto; flex: 1; min-width: 0; padding: 6px 8px; }
  .copy-link-long { display: none; }
  .rep-row { flex-wrap: wrap; }
  .rep-fields { flex-basis: calc(100% - 40px); }
  .rep-actions { margin-left: auto; }
}
