/* App layout only. Component appearance and tokens come from gov.br Core 3.7.0. */
:root { font-synthesis: none; }
body {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(470px, 1.1fr);
  min-height: 100vh;
  background: var(--gray-2);
}
a { text-decoration: none; }
button, input, select { font-family: inherit; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: var(--focus-width) var(--focus-style) var(--focus-color);
  outline-offset: var(--focus-offset);
}
[hidden] { display: none !important; }
.studio {
  padding: 48px 56px 32px;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  justify-self: end;
  width: 100%;
}
.studio-brand { font-size: 12px; font-weight: 700; color: var(--blue-warm-vivid-70); }
.studio-brand span { font-weight: 400; color: var(--gray-70); margin-left: 8px; }
.studio-body { margin: 72px 0 40px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--gray-70); }
.studio h1 { font-size: 58px; font-weight: 600; color: var(--blue-warm-vivid-90); line-height: 1.15; margin: 24px 0; }
.project-team { list-style: none; padding: 0; margin: 16px 0; font-size: 16px; line-height: 1.85; }
.divider { height: 1px; background: var(--gray-20); margin: 32px 0; }
.tour { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-20); font-size: 16px; }
.tour > span { font-size: 12px; font-weight: 600; }
.tour small { display: block; color: var(--gray-70); font-size: 12px; margin-top: 4px; }
.tour b { margin-left: auto; }
.map-link { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-top: 32px; }
.preview { padding: 24px 32px; background: var(--gray-cool-5); display: flex; align-items: center; flex-direction: column; min-width: 0; border-left: 1px solid var(--gray-20); }
.preview-label { display: flex; align-items: center; gap: 8px; width: 430px; max-width: 100%; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
#reset { margin-left: auto; border: 0; background: transparent; font-size: 12px; color: var(--interactive); padding: 8px; cursor: pointer; }
.phone { width: 430px; max-width: 100%; border: 6px solid white; border-radius: 32px; overflow: hidden; background: white; box-shadow: 0 8px 32px #0000001a; display: flex; flex-direction: column; height: 860px; max-height: calc(100vh - 120px); min-height: 580px; }
.statusbar { height: 28px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 24px 0; font-size: 11px; color: var(--gray-80); }
.app-header.br-header { flex-shrink: 0; padding: 16px; box-shadow: none; border-bottom: 1px solid var(--gray-20); }
.app-header-inner { width: 100%; min-width: 0; }
.app-header .header-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; align-items: center; }
.app-header .header-logo { flex-wrap: nowrap; min-width: 0; gap: 0; }
.app-header .header-logo img { max-height: 26px; width: 70px; object-fit: contain; flex-shrink: 0; }
.app-header .header-actions { display: flex; margin-left: auto; }
.app-header .header-actions .br-button { --button-size: 32px; flex-shrink: 0; }
.app-header .header-title { font-size: var(--font-size-scale-up-03); font-weight: 400; color: var(--gray-80); }
#offline-banner { margin: 0; flex-shrink: 0; }
#offline-banner .content { padding: 12px 16px; font-size: 12px; }
#screen { padding: 24px 16px 32px; overflow-y: auto; flex: 1; scrollbar-width: thin; outline: none; font-size: var(--font-size-scale-base); }
#screen h1 { font-size: var(--font-size-scale-up-04); font-weight: 600; line-height: var(--font-line-height-low); margin: 8px 0 16px; }
#screen h1:focus { outline: none; }
#screen h2 { font-size: var(--font-size-scale-up-02); font-weight: 600; margin: 24px 0 16px; line-height: 1.45; }
#screen h3 { font-size: var(--font-size-scale-up-01); font-weight: 600; margin: 0 0 8px; line-height: 1.45; }
#screen p { line-height: var(--font-line-height-medium); }
#screen .intro { color: var(--gray-70); font-size: 14px; margin: 0 0 16px; }
.overline { font-size: 12px; color: var(--gray-70); font-weight: 600; }
.greeting { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.greeting h1 { font-size: var(--font-size-scale-up-03) !important; margin: 8px 0 0 !important; }
.avatar { height: 40px; width: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--gray-10); color: var(--interactive); font-size: 14px; font-weight: 600; }
.hero.br-card { margin: 0; border-top: 4px solid var(--interactive); }
.hero h2 { font-size: var(--font-size-scale-up-03) !important; margin: 12px 0 !important; font-weight: 600; }
.hero p { font-size: 14px; margin-bottom: 24px; color: var(--gray-70); }
.br-button.primary, .br-button.secondary { gap: 8px; }
#screen .br-button.block { white-space: normal; height: auto; min-height: var(--button-large); padding: 8px 16px; line-height: 1.45; }
.button-stack { display: grid; gap: 16px; margin-top: 24px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick { background: white; color: var(--interactive); border: 1px solid var(--gray-20); padding: 16px 8px; text-align: center; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; min-height: 96px; }
.quick:hover, .service-row:hover { background-image: var(--hover-effect); }
.ds-icon { width: 24px; font-size: 20px; text-align: center; line-height: 1.2; flex-shrink: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.section-heading a { font-size: 12px; font-weight: 600; text-align: right; }
.card.br-card { margin: 16px 0; }
.appointment > .card-content { display: flex; gap: 16px; align-items: center; }
.date-box { background: var(--blue-warm-vivid-5); color: var(--interactive); padding: 12px; text-align: center; flex-shrink: 0; font-size: 12px; font-weight: 600; }
.date-box b { display: block; font-size: 29px; line-height: 1.15; }
.appointment p { font-size: 12px; color: var(--gray-70); margin: 4px 0; }
.appointment .appointment-link { color: var(--interactive); font-weight: 600; margin-top: 12px; }
.appointment:hover { outline: 1px solid var(--interactive); }
.tag.br-tag { background: var(--blue-warm-vivid-5); color: var(--blue-warm-vivid-90); height: auto; white-space: normal; min-height: 24px; font-size: 11px; border-radius: 4px; line-height: 1.45; padding: 4px 8px; }
.tag.br-tag.status-confirmada { background: var(--success-alternative); color: var(--green-cool-vivid-60); }
.tag.br-tag.status-cancelada { background: var(--danger-alternative); color: var(--red-vivid-60); }
.br-button.primary.danger-action { --interactive-light: var(--danger); }
.notice.br-message { margin: 24px 0; }
.notice.br-message > .icon { padding: 0; margin: 16px 8px 16px 16px; align-self: flex-start; }
.notice.br-message > .content { padding: 16px 12px; font-size: 12px; }
.service-row { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--gray-20); background: white; padding: 16px 0; margin: 0; color: var(--interactive); cursor: pointer; }
.row-icon { display: grid; place-items: center; height: 40px; width: 40px; background: var(--blue-warm-vivid-5); color: var(--interactive); flex-shrink: 0; }
.row-content { flex: 1; min-width: 0; }
.row-title { font-size: 16.8px; font-weight: 600; display: block; }
.service-row small { display: block; font-size: 12px; color: var(--gray-70); line-height: 1.45; margin-top: 8px; }
.chevron { margin-left: auto; font-size: 24px; }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.back .ds-icon { font-size: 14px; width: 16px; }
.steps { display: flex; gap: 4px; margin: 0 0 24px; }
.steps span { height: 4px; flex: 1; background: var(--gray-10); }
.steps .done { background: var(--interactive); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip.br-button { padding: 0 12px; font-size: 12px; }
.chip.br-button.active { color: var(--pure-0); background-color: var(--active); border-color: var(--active); }
.br-input { margin: 16px 0; }
.br-input label { display: block; margin-bottom: 8px; }
.search { width: 100%; }
.map { width: 100%; height: 152px; overflow: hidden; border: 1px solid var(--gray-20); background: var(--gray-5); margin: 16px 0; }
.map svg { width: 100%; height: 100%; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; }
.detail-grid dt { font-size: 12px; font-weight: 400; color: var(--gray-70); margin-bottom: 8px; }
.detail-grid dd { font-size: 14px; font-weight: 600; margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slots .br-button { width: 100%; padding: 0 8px; font-size: 14px; }
.slots .br-button.selected { background-color: var(--active); color: white; border-color: var(--active); }
.history-tabs { margin-top: 24px; }
.history-tabs .tab-nav ul { justify-content: stretch; }
.history-tabs .tab-item { flex: 1; }
.history-tabs .tab-item button { width: 100%; padding: 16px 8px; }
.history-tabs .tab-panel { padding: 0; }
.timeline { border-left: 1px solid var(--gray-20); padding-left: 16px; margin: 24px 0 0 8px; }
.timeline .card { position: relative; color: var(--gray-80); }
.timeline a.card h3 { color: var(--interactive); }
.timeline .card:before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--interactive); position: absolute; left: -21px; top: 24px; }
.record-date { font-size: 12px; color: var(--gray-70); margin-bottom: 12px; }
.success { text-align: center; padding: 16px 0; }
.success-symbol { height: 64px; width: 64px; background: var(--success-alternative); color: var(--green-cool-vivid-60); border-radius: 50%; display: grid; place-items: center; margin: 16px auto 24px; }
.success-symbol .ds-icon { width: 32px; font-size: 32px; }
.health-card { background: var(--blue-warm-vivid-90); color: white; padding: 24px; border-radius: 8px; margin: 24px 0; }
.health-card .card-brand { font-size: 24px; font-weight: 600; }
.health-card .overline { color: var(--blue-warm-vivid-10); margin-top: 24px; }
.health-card h2 { font-size: var(--font-size-scale-up-02) !important; margin: 8px 0 24px !important; font-weight: 400 !important; color: white; }
.health-card .number { font-family: monospace; font-size: 16px; letter-spacing: 1px; overflow-wrap: anywhere; }
.health-card p { font-size: 12px; color: var(--gray-10); }
.read { opacity: .65; }
.summary-list { list-style: none; padding: 0; margin: 16px 0; }
.summary-list li { padding: 16px 0; border-bottom: 1px solid var(--gray-20); font-size: 14px; line-height: 1.45; }
.summary-list strong { display: block; margin-bottom: 8px; }
.empty { text-align: center; padding: 32px 16px; color: var(--gray-70); font-size: 14px; }
.regional-card h2 { margin-top: 12px !important; }
.regional-stat { font-size: 32px; font-weight: 600; color: var(--blue-warm-vivid-90); margin: 8px 0; }
.region-choices .chip.br-button { white-space: normal; height: auto; min-height: 40px; padding: 8px 12px; }
#regional-biomarker { width: 100%; min-height: 44px; border: 1px solid var(--gray-60); border-radius: 4px; background: white; color: var(--gray-90); padding: 8px; font-size: 16px; }
.regional-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.regional-table caption { text-align: left; font-weight: 600; margin-bottom: 12px; }
.regional-table th, .regional-table td { padding: 12px 8px; border-bottom: 1px solid var(--gray-20); text-align: left; }
.regional-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.regional-table .selected-region { background: var(--blue-warm-vivid-5); }
.regional-method { font-size: 14px; line-height: 1.6; margin: 24px 0; }
.regional-method summary { cursor: pointer; color: var(--interactive); font-weight: 600; padding: 8px 0; }
.regional-method ul { padding-left: 20px; }
.regional-method li + li { margin-top: 8px; }
.source-link { font-size: 12px; display: block; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
.large-text #regional-biomarker, .large-text .regional-table, .large-text .regional-method, .large-text .source-link { font-size: 17px; }
.profile-top { text-align: center; padding: 8px 0; }
.profile-top .avatar { margin: auto; width: 64px; height: 64px; font-size: 24px; }
.profile-top h1 { font-size: var(--font-size-scale-up-03) !important; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row > div:first-child { flex: 1; min-width: 0; }
.switch-row .intro { margin-bottom: 0 !important; }
.switch-row .br-switch { flex-shrink: 0; }
.switch-row .br-switch label { padding-left: 40px; }
.footnote { font-size: 12px; color: var(--gray-70); line-height: 1.45; margin: 16px 0; }
#bottom-nav { display: flex; flex-shrink: 0; justify-content: space-around; background: white; box-shadow: 0 -1px 6px #0000001a; padding: 0 4px 8px; }
#bottom-nav a { width: 20%; min-height: 64px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--gray-70); font-size: 11px; padding: 12px 0 4px; border-top: 3px solid transparent; }
#bottom-nav a.active { color: var(--interactive); font-weight: 600; border-top-color: var(--interactive); }
#bottom-nav a:hover { background-image: var(--hover-effect); }
#bottom-nav .ds-icon { font-size: 20px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 16px 24px; background: var(--blue-warm-vivid-90); color: white; max-width: min(460px, 90vw); font-size: 14px; box-shadow: var(--surface-shadow-sm); z-index: 10; display: none; }
#toast.visible { display: block; }
.large-text #screen { font-size: 17px; }
.large-text #screen h1 { font-size: 35px; }
.large-text #screen h2 { font-size: 25px; }
.large-text #screen h3, .large-text #screen .row-title { font-size: 20px; }
.large-text #screen p, .large-text #screen small, .large-text #screen .intro, .large-text #screen .content,
.large-text #screen .footnote, .large-text #screen button, .large-text #screen .quick,
.large-text #screen .primary, .large-text #screen .secondary, .large-text #screen li, .large-text #screen dd { font-size: 17px; }
.large-text #screen .overline, .large-text #screen dt, .large-text #screen .record-date, .large-text #screen .tag { font-size: 14px; }
.large-text .quick-grid { grid-template-columns: 1fr; }
.large-text .quick { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 64px; }
.large-text .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.large-text .detail-grid { grid-template-columns: 1fr; }
@media (min-height: 950px) { .preview { justify-content: center; } .studio-body { margin-top: 96px; } }
@media (max-width: 1050px) { .studio { padding: 32px; } .studio h1 { font-size: 48px; } .preview { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 800px) { body { display: block; } .studio { display: none; } .preview { border: 0; padding: 16px; min-height: 100vh; } .phone { max-height: none; height: 860px; min-height: 0; } }
@media (max-width: 470px) {
  .preview { padding: 0; background: white; display: block; min-height: 100dvh; }
  .preview-label { padding: 4px 16px; margin: 0; width: 100%; height: 36px; background: var(--gray-5); font-size: 10px; }
  .phone { width: 100%; border: 0; border-radius: 0; box-shadow: none; height: calc(100dvh - 36px); min-height: 0; max-height: none; }
  .statusbar { display: none; }
  #bottom-nav { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
