:root {
  --turquoise: #54bfca;
  --turquoise-dark: #2fa6b3;
  --turquoise-pale: #d9f0f2;
  --blue-gray: #6e808c;
  --ink: #4f626e;
  --muted: #72828c;
  --paper: #ffffff;
  --soft: #f4f9fa;
  --line: #dce8ea;
  --shadow: 0 22px 60px rgba(70, 100, 110, .12);
  --radius: 28px;
  --container: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: #fff; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(220, 232, 234, .7);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 112px; display: flex; align-items: center; gap: 36px; }
.brand { width: 360px; flex: 0 1 360px; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { position: relative; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--turquoise); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 25px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark)); box-shadow: 0 12px 28px rgba(47, 166, 179, .24); }
.button-outline, .button-secondary { color: var(--turquoise-dark); border-color: var(--turquoise); background: rgba(255,255,255,.82); }

.hero { position: relative; min-height: 780px; overflow: hidden; background: linear-gradient(110deg, #fff 0%, #f7fbfc 60%, #eef8f9 100%); }
.hero-grid { min-height: 780px; display: grid; grid-template-columns: 53% 47%; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 80px 40px 90px 72px; }
.eyebrow { margin: 0 0 18px; color: var(--turquoise-dark); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.15rem, 5.4vw, 5.7rem); line-height: .98; letter-spacing: -.045em; font-weight: 300; color: var(--blue-gray); }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 strong { color: var(--turquoise); font-weight: 300; }
.hero-divider { width: min(560px, 92%); height: 1px; margin: 28px 0 24px; background: var(--turquoise); }
.hero-lead { max-width: 640px; margin: 30px 0 34px; font-size: 1.25rem; color: var(--muted); }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-photo { position: relative; align-self: stretch; min-height: 720px; display: flex; align-items: flex-end; justify-content: center; }
.photo-frame { position: absolute; inset: 40px 0 0 0; overflow: hidden; border-radius: 48% 0 0 0; background: var(--turquoise-pale); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.section-index { position: absolute; left: -26px; bottom: 60px; color: var(--turquoise-dark); font-weight: 800; }
.section-index::after { content: ""; display: block; width: 1px; height: 150px; margin: 12px auto 0; background: var(--turquoise-dark); }
.hero-shape { position: absolute; z-index: 1; border-radius: 50%; background: rgba(84, 191, 202, .09); pointer-events: none; }
.shape-one { width: 760px; height: 480px; left: -200px; top: 80px; transform: rotate(-18deg); }
.shape-two { width: 620px; height: 620px; left: 38%; bottom: -420px; }

.section { padding: 112px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
h2 { margin: 0; color: var(--ink); font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 400; }
.body-copy { font-size: 1.15rem; }
.body-copy p:first-child { margin-top: 8px; }
.credentials { color: var(--turquoise-dark); font-weight: 800; letter-spacing: .04em; }

.services { background: var(--soft); }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 90px; margin-bottom: 60px; align-items: end; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card { position: relative; min-height: 500px; padding: 46px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.service-card h3, .location-card h3 { margin: 8px 0 16px; color: var(--ink); font-size: 1.9rem; line-height: 1.15; }
.service-card p { max-width: 540px; }
.service-card ul { margin: 28px 0 0; padding: 0; list-style: none; columns: 2; }
.service-card li { position: relative; padding: 7px 0 7px 20px; break-inside: avoid; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); }
.card-number { color: var(--turquoise-dark); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.service-icon { position: absolute; right: 28px; top: 28px; width: 112px; opacity: .9; }
.ultrasound-preview { height: 180px; margin: -46px -46px 36px; overflow: hidden; background: #0b1114; }
.ultrasound-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.image-strip figure { position: relative; height: 220px; margin: 0; overflow: hidden; border-radius: 18px; background: #111; }
.image-strip img { width: 100%; height: 100%; object-fit: cover; }
.image-strip figcaption { position: absolute; left: 18px; bottom: 16px; color: #fff; font-weight: 700; text-shadow: 0 1px 12px #000; }

.clinic-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: center; }
.clinic-copy p:last-child { color: var(--muted); font-size: 1.1rem; }
.clinic-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clinic-gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: 18px; }
.clinic-gallery .gallery-main { grid-column: 1 / -1; height: 370px; }

.contact { position: relative; overflow: hidden; color: #fff; background: #607581; }
.contact::after { content: ""; position: absolute; width: 700px; height: 700px; right: -220px; bottom: -500px; border-radius: 50%; background: rgba(84,191,202,.18); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact h2 { color: #fff; }
.contact-intro > p:not(.eyebrow) { margin-bottom: 30px; color: #e2ebed; }
.location-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.location-card { padding: 28px; color: var(--ink); background: #fff; border-radius: 18px; }
.location-card address { font-style: normal; }
.contact-card { grid-column: 1 / -1; display: grid; gap: 6px; }
.contact-card a { width: fit-content; text-decoration: none; font-weight: 700; }
.contact-card small { color: var(--muted); }

.site-footer { padding: 34px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner img { width: 300px; }
.footer-inner p { margin: 0; max-width: 600px; color: var(--muted); font-size: .85rem; text-align: right; }
.reveal { animation: rise .65s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .header-inner { min-height: 90px; }
  .brand { width: 280px; flex-basis: 280px; }
  .header-cta { display: none; }
  .main-nav { gap: 20px; }
  .hero-grid { grid-template-columns: 56% 44%; }
  .hero-copy { padding-left: 20px; }
}

@media (max-width: 1300px) and (min-width: 1101px) {
  .header-cta { display: none; }
  .main-nav { gap: 22px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .header-inner { min-height: 82px; }
  .brand { width: 235px; flex-basis: 235px; }
  .menu-toggle { display: block; margin-left: auto; padding: 10px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
  .main-nav { position: absolute; top: 82px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav a::after { display: none; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 80px 0 50px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .hero-photo { min-height: 620px; }
  .photo-frame { inset: 0; border-radius: 44% 0 0 0; }
  .section-index { display: none; }
  .section { padding: 80px 0; }
  .split-grid, .section-heading, .clinic-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .image-strip figure { height: 260px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner p { text-align: left; }
}

@media (max-width: 540px) {
  .brand { width: 205px; flex-basis: 205px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-photo { min-height: 500px; }
  .service-card { padding: 30px; }
  .ultrasound-preview { margin: -30px -30px 28px; }
  .service-card ul { columns: 1; }
  .clinic-gallery { grid-template-columns: 1fr; }
  .clinic-gallery .gallery-main { grid-column: auto; height: 260px; }
  .clinic-gallery img { height: 240px; }
  .location-list { grid-template-columns: 1fr; }
  .contact-card { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Página de gráficos de crescimento */
.growth-page { background: var(--soft); }
/* Página de downloads */
.downloads-page { background: var(--soft); }
.downloads-intro { padding: 76px 0 60px; background: linear-gradient(120deg, #fff, #edf8f9); }
.downloads-intro h1 { margin: 0; color: var(--blue-gray); font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; font-weight: 300; letter-spacing: -.045em; }
.downloads-intro p:last-child { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.downloads-content { padding-top: 52px; }
.download-jump { display: flex; gap: 10px; margin-bottom: 64px; overflow-x: auto; }
.download-jump a { flex: 0 0 auto; padding: 11px 18px; color: var(--turquoise-dark); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; }
.download-section { scroll-margin-top: 130px; margin-bottom: 88px; }
.download-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 30px; }
.download-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.download-heading > p { margin: 0 0 5px; color: var(--muted); }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.download-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.download-card.featured { position: relative; overflow: hidden; padding-top: 38px; }
.download-card.featured::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--turquoise); }
.download-card h3 { margin: 12px 0 8px; font-size: 1.45rem; line-height: 1.2; }
.download-card p { margin: 0 0 24px; color: var(--muted); }
.file-tag { color: var(--turquoise-dark); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.module-downloads { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.module-row { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 180px; gap: 14px; align-items: center; padding: 19px 24px; border-bottom: 1px solid var(--line); }
.module-row:last-child { border-bottom: 0; }
.module-row > div { display: flex; align-items: center; gap: 18px; }
.module-row strong { color: var(--turquoise-dark); }
.module-row a { padding: 9px 13px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; font-weight: 700; text-align: center; text-decoration: none; }
.module-row a:hover, .segmented-download-group a:hover { color: #fff; background: var(--turquoise-dark); border-color: var(--turquoise-dark); }
.download-sex-tabs { display: inline-flex; gap: 6px; margin-bottom: 22px; padding: 5px; background: #e7f2f3; border-radius: 999px; }
.download-sex-tabs button { min-width: 126px; min-height: 42px; padding: 0 18px; color: var(--ink); background: transparent; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.download-sex-tabs button.active { color: #fff; background: var(--turquoise-dark); }
.segmented-download-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.segmented-download-group { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.segmented-download-group h3 { margin: 0 0 16px; font-size: 1.25rem; }
.segmented-download-group > div { display: grid; gap: 8px; }
.segmented-download-group a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: .2s ease; }
.segmented-download-group a strong { color: var(--turquoise-dark); font-size: .8rem; }
.segmented-download-group a:hover strong { color: #fff; }
.download-note { padding: 18px 22px; color: var(--muted); background: #fff; border-left: 4px solid var(--turquoise); border-radius: 0 10px 10px 0; }
@media (max-width: 820px) { .download-heading { grid-template-columns: 1fr; gap: 12px; } .module-row { grid-template-columns: 1fr 1fr; } .module-row > div { grid-column: 1 / -1; } }
@media (max-width: 620px) { .download-grid, .segmented-download-list { grid-template-columns: 1fr; } .module-row { grid-template-columns: 1fr; } .module-row > div { grid-column: auto; } .download-sex-tabs { display: flex; } .download-sex-tabs button { min-width: 0; flex: 1; } }

.growth-intro { padding: 76px 0 54px; background: linear-gradient(120deg, #fff, #edf8f9); }
.growth-intro h1 { margin: 0; color: var(--blue-gray); font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; font-weight: 300; letter-spacing: -.045em; }
.growth-intro > .container > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.notice { max-width: 900px; margin-top: 28px; padding: 16px 20px; border-left: 4px solid var(--turquoise); background: #fff; border-radius: 0 10px 10px 0; box-shadow: 0 8px 30px rgba(70,100,110,.08); }
.growth-workspace { padding-top: 60px; }
.growth-layout { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 28px; align-items: start; }
.entry-panel, .records-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.entry-panel { position: sticky; top: 132px; padding: 28px; }
.entry-panel h2, .records-panel h2, .charts-heading h2 { margin: 0; font-size: 2rem; }
.entry-panel h3 { margin: 18px 0 14px; font-size: 1.1rem; }
.entry-panel hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.entry-panel label { display: grid; gap: 6px; margin-bottom: 14px; color: var(--ink); font-size: .86rem; font-weight: 700; }
.entry-panel input, .entry-panel select { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--ink); background: #fbfdfd; border: 1px solid #bfd1d5; border-radius: 8px; font: inherit; }
.entry-panel input:focus, .entry-panel select:focus { outline: 3px solid rgba(84,191,202,.2); border-color: var(--turquoise-dark); }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bone-age-fields { margin: 20px 0 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.bone-age-fields legend { padding: 0 6px; color: var(--turquoise-dark); font-size: .86rem; font-weight: 800; }
.bone-age-fields label { margin-bottom: 6px; }
.bone-age-fields small { display: block; margin-top: 5px; color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.4; }
.entry-panel .button { width: 100%; margin-top: 6px; }
.form-message { min-height: 24px; margin: 8px 0 0; color: var(--turquoise-dark); font-size: .86rem; }
.text-button { padding: 0; color: #8a4b4b; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: .76rem; }
.records-panel { min-width: 0; padding: 28px; }
.records-heading, .charts-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.records-heading .eyebrow, .charts-heading .eyebrow { margin-bottom: 6px; }
#record-count { color: var(--turquoise-dark); font-weight: 800; }
.records-tools { display: flex; align-items: center; gap: 14px; }
.export-pdf-button { min-height: 42px; padding: 0 16px; white-space: nowrap; cursor: pointer; }
.export-pdf-button:disabled { opacity: .65; cursor: wait; }
.table-wrap { overflow-x: auto; }
.score-note { margin: 15px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; white-space: nowrap; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.record-note { max-width: 220px; white-space: normal; }
th { color: var(--muted); font-size: .71rem; letter-spacing: .05em; text-transform: uppercase; }
.empty-row td { padding: 44px 10px; color: var(--muted); text-align: center; }
.record-actions { display: flex; align-items: center; gap: 6px; }
.edit-record, .save-record, .cancel-edit { min-height: 30px; padding: 4px 9px; border: 1px solid #b9d6da; border-radius: 7px; background: #fff; color: var(--turquoise-dark); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.save-record { color: #fff; background: var(--turquoise-dark); border-color: var(--turquoise-dark); }
.cancel-edit { color: var(--muted); border-color: var(--line); }
.table-input { width: 108px; min-height: 36px; padding: 6px 7px; color: var(--ink); background: #fff; border: 1px solid #9fc7cc; border-radius: 7px; font: inherit; }
.edit-note { width: 180px; }
.table-io-inputs { display: flex; gap: 5px; }
.table-io-inputs .table-input { width: 70px; }
.table-input:focus { outline: 3px solid rgba(84,191,202,.2); border-color: var(--turquoise-dark); }
.remove-record { width: 30px; height: 30px; color: #8a4b4b; background: #fff; border: 1px solid #e5caca; border-radius: 50%; cursor: pointer; }
.charts-section { padding-top: 20px; background: #fff; }
.charts-heading > p { max-width: 440px; margin: 0; color: var(--muted); }
.chart-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.chart-family-title { margin: 24px 0 12px; font-size: 1.25rem; }
.segmented-charts { margin-top: 42px; padding-top: 10px; border-top: 1px solid var(--line); }
.segmented-intro { margin: -4px 0 18px; color: var(--muted); }
.segmented-tab-groups { display: grid; gap: 12px; margin-bottom: 18px; }
.segmented-tab-group { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 12px; }
.segmented-tab-group > div { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 5px; }
.segmented-chart-tab { flex: 0 0 auto; min-height: 38px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; cursor: pointer; }
.segmented-chart-tab.active { color: #fff; background: var(--turquoise-dark); border-color: var(--turquoise-dark); }
.chart-tab { flex: 0 0 auto; min-height: 42px; padding: 0 17px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; cursor: pointer; }
.chart-tab.active { color: #fff; background: var(--turquoise-dark); border-color: var(--turquoise-dark); }
.chart-view { padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 22px; }
.chart-stage { position: relative; width: 100%; aspect-ratio: 841.68 / 595.44; overflow: hidden; background: #fff; border-radius: 12px; }
.chart-stage img, .data-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.generated-segmented-stage { aspect-ratio: 1200 / 760; min-height: 0; }
.generated-segmented-chart { display: block; width: 100%; height: 100%; }
.generated-chart-title { font: 700 24px Arial, sans-serif; fill: #18232b; }
.generated-axis-title { font: 700 18px Arial, sans-serif; fill: #253843; }
.generated-axis-label { font: 14px Arial, sans-serif; fill: #263238; }
.generated-z-label { font: 700 17px Arial, sans-serif; }
.generated-source { font: 12px Arial, sans-serif; fill: #53636c; }
.generated-point-label { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; font-weight: 800; }
.data-overlay { pointer-events: none; }
.point-label { fill: #1d7890; stroke: #fff; stroke-width: 3px; paint-order: stroke; text-anchor: middle; font: 700 10px Arial, sans-serif; }
.measure-point { pointer-events: all; cursor: help; }
.bone-age-link { stroke: #a75b2a; stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.bone-age-triangle { fill: #d57535; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: all; cursor: help; }
.bone-age-side-label { fill: #a44e1f; stroke: #fff; stroke-width: 3px; paint-order: stroke; font: 800 10px Arial, sans-serif; }
.annotation-arrow { stroke: #76529c; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.annotation-arrowhead { fill: #76529c; }
.annotation-label { fill: #654387; stroke: #fff; stroke-width: 3px; paint-order: stroke; font: 800 10px Arial, sans-serif; pointer-events: all; cursor: help; }
.chart-score-note { max-width: 960px; margin: 13px auto 0; text-align: center; }
.chart-empty { margin: 14px 0 0; color: var(--muted); text-align: center; }
@media (max-width: 980px) { .growth-layout { grid-template-columns: 1fr; } .entry-panel { position: static; } }
@media (max-width: 680px) { .growth-intro { padding-top: 48px; } .growth-workspace { padding-top: 34px; } .input-pair { grid-template-columns: 1fr; gap: 0; } .records-panel, .entry-panel { padding: 20px; } .records-heading, .charts-heading { display: block; } .records-heading > span { display: block; margin-top: 10px; } .charts-heading > p { margin-top: 12px; } .chart-view { padding: 5px; border-radius: 14px; } .segmented-tab-group { grid-template-columns: 1fr; gap: 5px; } }
.print-report { display: none; }

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body > *:not(.print-report) { display: none !important; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .print-report { display: block !important; color: #18232b; background: #fff; font-family: Arial, sans-serif; }
  .print-page { box-sizing: border-box; display: flex; flex-direction: column; width: 281mm; height: 194mm; overflow: hidden; break-after: page; page-break-after: always; }
  .print-page:last-child { break-after: auto; page-break-after: auto; }
  .print-page-header { display: flex; align-items: center; justify-content: space-between; gap: 10mm; height: 19mm; padding-bottom: 3mm; border-bottom: .4mm solid #54bfca; }
  .print-page-header img { width: 71mm; max-height: 17mm; object-fit: contain; object-position: left center; }
  .print-page-header div { text-align: right; }
  .print-page-header p { margin: 0 0 1mm; color: #607581; font-size: 8pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .print-page-header h2 { margin: 0; color: #2e6671; font-size: 15pt; line-height: 1.05; }
  .print-page-content { flex: 1; min-height: 0; padding: 4mm 0 2mm; }
  .print-page footer { height: 5mm; padding-top: 1.5mm; border-top: .2mm solid #c9dadd; color: #607581; font-size: 7pt; text-align: right; }
  .print-patient { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3mm; margin-bottom: 5mm; }
  .print-patient > div { padding: 3mm; border: .2mm solid #c9dadd; border-radius: 2mm; background: #f4f9fa; }
  .print-patient span { display: block; margin-bottom: 1mm; color: #607581; font-size: 7pt; font-weight: 700; text-transform: uppercase; }
  .print-patient strong { font-size: 10pt; }
  .print-summary-page h3 { margin: 0 0 2mm; color: #2e6671; font-size: 11pt; }
  .print-table { width: 100%; border-collapse: collapse; table-layout: auto; white-space: normal; font-size: 7pt; }
  .print-table th, .print-table td { padding: 1.5mm 1.2mm; border: .2mm solid #c9dadd; vertical-align: top; }
  .print-table th { color: #fff; background: #607581; font-size: 6.5pt; letter-spacing: .02em; text-transform: uppercase; }
  .print-table td:last-child { max-width: 44mm; overflow-wrap: anywhere; }
  .print-empty { padding: 10mm !important; text-align: center; }
  .print-note { margin: 2mm 0 0; color: #607581; font-size: 6.5pt; }
  .print-chart-page .print-page-content { display: flex; align-items: center; justify-content: center; }
  .print-chart-page .chart-stage { position: relative; width: 231.8mm; height: 164mm; aspect-ratio: 841.68 / 595.44; overflow: hidden; border-radius: 0; background: #fff; }
  .print-chart-page .chart-stage img, .print-chart-page .data-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
  .print-chart-page .generated-segmented-stage { width: 258.9mm; height: 164mm; aspect-ratio: 1200 / 760; }
  .print-chart-page .generated-segmented-chart { width: 100%; height: 100%; }
}

/* Gerenciamento local de pacientes e backups */
.patient-manager { margin: 18px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbfb; }
.patient-manager label { margin-bottom: 10px; }
.patient-manager .button { margin-top: 0; }
.patient-file-tools { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.patient-file-tools h3 { margin-top: 0; }
.patient-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.entry-panel .patient-file-grid .button { min-height: 46px; margin-top: 0; padding: 9px 10px; font-size: .78rem; line-height: 1.25; }
@media (max-width: 460px) { .patient-file-grid { grid-template-columns: 1fr; } }

/* Controles locais de pacientes e backup */
.patient-file-tools .file-tools-intro,
.patient-file-tools .save-location-note {
  margin: .35rem 0 1rem;
  font-size: .9rem;
  line-height: 1.45;
}
.patient-file-grid {
  display: grid;
  gap: .75rem;
}
.patient-file-action {
  display: grid;
  gap: .3rem;
}
.patient-file-action .button {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}
.patient-file-action small {
  color: var(--muted, #5d6865);
  line-height: 1.35;
}
.patient-file-tools .save-location-note {
  padding: .75rem;
  border-radius: 10px;
  background: rgba(38, 92, 82, .07);
}


/* Conta e armazenamento online */
.online-account { margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f7fbfb; }
.online-account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.online-account-heading h2 { margin: 0; }
.online-account-heading .eyebrow { margin-bottom: 3px; }
.online-account-badge { display: inline-flex; flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: .76rem; font-weight: 700; }
.online-account-badge.is-connected { color: #245f54; border-color: rgba(36,95,84,.35); background: rgba(36,95,84,.09); }
.online-account-intro { margin: 0 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.online-auth-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.online-auth-form { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.online-auth-form h3 { margin: 0 0 10px; }
.online-auth-form label { font-size: .86rem; }
.online-auth-form .button { width: 100%; margin-top: 4px; }
.online-user-email { margin: 0 0 12px; overflow-wrap: anywhere; }
.online-actions { display: grid; gap: 8px; }
.online-actions .button { width: 100%; margin: 0; }
.online-actions .text-button { justify-self: start; }
.admin-users-link { display: inline-block; margin-top: 12px; font-weight: 700; }
.online-status { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(38,92,82,.07); color: var(--muted); font-size: .88rem; line-height: 1.4; }
.online-status-error { color: #872e2e; background: rgba(160,50,50,.09); }
@media (max-width: 620px) { .online-auth-grid { grid-template-columns: 1fr; } .online-account-heading { flex-direction: column; } }

/* Administração de contas */
.admin-shell { max-width: 980px; margin: 0 auto; }
.admin-panel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-table td, .admin-table th { vertical-align: top; }
.admin-status { margin: 0 0 16px; padding: 11px 13px; border-radius: 10px; background: rgba(38,92,82,.07); }
