/* Recursos locais; a interface respeita as preferências do dispositivo. */
:root {
  --blue: #154da8;
  --blue-dark: #123b78;
  --blue-soft: #edf3fd;
  --teal: #087f78;
  --teal-soft: #e8f6f2;
  --ink: #203149;
  --muted: #62728a;
  --line: #e7edf3;
  --surface: #fff;
  --canvas: #f5f7fb;
  --radius: 18px;
  --shadow: 0 4px 24px rgb(25 53 88 / 4%);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, input { border-radius: 0; }
a { color: var(--blue); text-decoration: none; }
button { border: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
img, svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2a74d2; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 20px; color: white; background: var(--blue); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 21px; border-radius: 11px; border: 1px solid transparent; font-weight: 650; line-height: 1.3; text-align: center; transition: background .16s ease, box-shadow .16s ease, transform .16s ease; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button .icon { width: 19px; height: 19px; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 5px 13px rgb(21 77 168 / 12%); }
.button-primary:hover { background: var(--blue-dark); }
.button-white { color: var(--blue-dark); background: #fff; box-shadow: 0 5px 14px rgb(7 32 80 / 8%); }
.button-white:hover { background: #eef5ff; }
.button-secondary { color: var(--blue); background: #fff; border-color: #d9e3f0; }
.button-secondary:hover { background: var(--blue-soft); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 3px 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 650; text-align: left; }
.text-button:hover { color: #0b2f70; text-decoration: underline; text-underline-offset: 3px; }
.text-button .icon { width: 16px; height: 16px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; background: transparent; color: var(--muted); border-radius: 10px; }
.icon-button:hover { background: var(--blue-soft); color: var(--blue); }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.9px; color: var(--teal); }
.demo-banner { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 18px; min-height: 37px; background: #fff6db; color: #76551d; font-size: 12px; line-height: 1.45; text-align: center; position: relative; z-index: 25; }
.demo-banner .icon { width: 17px; height: 17px; }
.institutional-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; background: #fff; border-bottom: 3px solid var(--teal); }
.institutional-government { display: flex; align-items: center; gap: 16px; min-width: 0; }
.institutional-coat { width: 64px; height: 71px; object-fit: contain; flex-shrink: 0; }
.institutional-state { color: var(--blue-dark); font-size: 18px; font-weight: 750; line-height: 1.4; }
.institutional-secretariat { margin-top: 3px; color: #40536d; font-size: 13px; line-height: 1.5; }
.institutional-regulation { max-width: 620px; min-width: 0; text-align: right; }
.institutional-coordination { color: #314863; font-size: 13px; line-height: 1.6; }
.institutional-coordination strong { color: var(--blue-dark); }
.institutional-complex { margin-top: 4px; color: var(--teal); font-size: 13px; font-weight: 650; line-height: 1.5; }
@media (max-width: 760px) {
  .institutional-header { flex-direction: column; align-items: stretch; gap: 11px; padding: 16px 20px; }
  .institutional-coat { width: 48px; height: 54px; }
  .institutional-government { gap: 12px; }
  .institutional-state { font-size: 16px; }
  .institutional-secretariat { font-size: 12px; }
  .institutional-regulation { max-width: none; text-align: left; }
  .institutional-coordination, .institutional-complex { font-size: 12px; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); }
.brand-image { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand-wordmark { font-size: 22px; font-weight: 750; letter-spacing: -.8px; line-height: 1.1; color: #134985; }
.brand-wordmark > span { color: var(--teal); }
.citizen-wordmark { max-width: 100%; }
.citizen-wordmark > span { white-space: nowrap; }
.brand-wordmark small { display: block; margin-top: 6px; color: #62728a; font-size: 7.5px; font-weight: 650; letter-spacing: 1.7px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6de4c6; flex-shrink: 0; }
.inline-alert { padding: 15px 17px; border-radius: 12px; font-size: 13px; line-height: 1.65; display: flex; align-items: flex-start; gap: 10px; }
.inline-alert .icon { margin-top: 1px; width: 19px; height: 19px; }
.alert-error { color: #8e2838; background: #fff1f2; border: 1px solid #f9d6dc; }
.alert-info { color: #365574; background: #eef4fa; border: 1px solid #dde8f3; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 12px; background: #213c5c; color: white; box-shadow: 0 8px 28px rgb(15 35 65 / 20%); }
.noscript-message { position: fixed; inset: auto 16px 16px; z-index: 1000; padding: 20px; border: 1px solid #e3b266; background: #fff8e8; color: #775420; border-radius: 12px; text-align: center; }

/* Acesso ao portal */
.login-page { background: #fff; }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.demo-banner + .login-shell { min-height: calc(100dvh - 37px); }
.login-main { display: flex; flex-direction: column; padding: 38px clamp(30px, 5vw, 90px) 26px; }
.login-brand .brand-image { width: 48px; height: 48px; }
.login-brand .brand-wordmark { font-size: 26px; }
.login-brand .brand-wordmark small { font-size: 8px; letter-spacing: 2px; }
.login-form-wrap { margin: auto 0; padding: 52px 0 45px; max-width: 430px; width: 100%; align-self: center; }
.login-form-wrap .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; }
.eyebrow-line { width: 24px; height: 2px; background: var(--teal); }
.login-form-wrap h1 { font-size: clamp(29px, 2.8vw, 40px); font-weight: 720; line-height: 1.19; letter-spacing: -1.3px; color: #1a3354; }
.login-intro { max-width: 380px; margin-top: 17px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.login-form { display: grid; gap: 22px; margin-top: 32px; }
.field-group { display: grid; gap: 8px; }
.field-group label { font-size: 13px; font-weight: 650; color: #2f4056; }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 16px; left: 16px; color: #62728a; width: 20px; height: 20px; pointer-events: none; }
.input-wrap input { width: 100%; min-width: 0; height: 53px; padding: 12px 15px 12px 46px; background: #fff; border: 1px solid #dce4ee; border-radius: 10px; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
.input-wrap input::placeholder { color: #62728a; font-size: 13px; }
.input-wrap input:focus { border-color: #487bbe; box-shadow: 0 0 0 3px rgb(21 77 168 / 8%); outline: none; }
.input-wrap input[aria-invalid="true"] { border-color: #b54758; }
.input-wrap input[type="date"] { min-height: 53px; -webkit-appearance: none; }
.field-hint { color: #62728a; font-size: 11px; }
.login-submit { width: 100%; min-height: 52px; font-size: 14px; margin-top: 3px; }
.login-submit .icon { margin-left: auto; }
.login-submit span { flex: 1; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; padding: 19px 7px; color: #62728a; font-size: 11px; line-height: 1.65; }
.privacy-note .icon { width: 19px; height: 19px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.login-help { border-top: 1px solid var(--line); padding-top: 16px; }
.login-help summary { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 4px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--blue); list-style: none; }
summary::-webkit-details-marker { display: none; }
.login-help summary .icon { width: 15px; height: 15px; }
details[open] > summary .icon { transform: rotate(180deg); }
.login-help p { padding-top: 12px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #62728a; font-size: 10px; }
.login-footer > span:first-child { font-weight: 650; }
.demo-access { margin-top: 23px; padding: 13px 16px; border: 1px solid #eadfc6; border-radius: 11px; background: #fffbf1; font-size: 12px; color: #74613b; }
.demo-access strong { font-weight: 650; }
.demo-access p { margin-top: 5px; line-height: 1.65; }
.demo-access small { display: block; margin-top: 6px; }
.demo-access + .login-form { margin-top: 23px; }
.login-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 44px clamp(30px, 4vw, 65px) 26px; color: white; background: radial-gradient(ellipse at 110% 66%, rgb(17 174 158 / 21%), transparent 60%), linear-gradient(135deg, #194e9a, #103d7d 74%); }
.login-story::after { content: ""; pointer-events: none; position: absolute; top: -280px; right: -280px; width: 640px; height: 640px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 50%; box-shadow: 0 0 0 80px rgb(255 255 255 / 2%), 0 0 0 160px rgb(255 255 255 / 2%); }
.story-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; position: relative; z-index: 1; }
.story-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 40px; font-size: 8px; font-weight: 600; letter-spacing: 1.25px; color: #e0ebff; }
.story-sparkle { color: #8fdccf; width: 28px; height: 28px; }
.story-heading { margin-top: clamp(40px, 5.5vh, 72px); position: relative; z-index: 1; }
.story-heading h2 { font-size: clamp(33px, 3.5vw, 49px); font-weight: 600; line-height: 1.12; letter-spacing: -1.7px; }
.story-heading p { max-width: 325px; margin-top: 20px; font-size: 14px; line-height: 1.8; color: #d0dff3; }
.story-illustration { width: calc(100% + 80px); max-width: none; height: auto; margin: -10px -40px -14px; max-height: 290px; object-fit: contain; }
.story-features { display: grid; gap: 18px; padding: 5px 0 30px; }
.story-features > div { display: flex; align-items: center; gap: 14px; }
.story-feature-icon { width: 39px; height: 39px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 11px; background: rgb(255 255 255 / 6%); display: grid; place-items: center; color: #b3eadd; flex-shrink: 0; }
.story-feature-icon .icon { width: 19px; height: 19px; }
.story-features strong { display: block; font-size: 13px; font-weight: 600; color: #f7fbff; }
.story-features small { display: block; font-size: 11px; color: #becee6; margin-top: 2px; }
.story-footer { margin-top: auto; font-size: 10px; color: #aabfdc; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 12%); }

/* Estrutura do portal */
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 29px 18px 18px; }
.sidebar .brand { margin-left: 8px; }
.sidebar .brand-wordmark { font-size: 22px; }
.sidebar-section-label { margin: 45px 14px 16px; font-size: 8px; letter-spacing: 1.5px; color: #62728a; font-weight: 750; }
.primary-nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 47px; padding: 12px 15px; border-radius: 10px; background: transparent; color: #67768b; text-align: left; font-size: 12px; font-weight: 550; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item:hover { background: #f5f8fc; color: var(--blue); }
.nav-item.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.sidebar-support { margin: 39px 5px 20px; padding: 18px 16px 12px; border: 1px solid #e0eee9; border-radius: 14px; background: linear-gradient(150deg, #f0f9f6, #f8fcfb); }
.support-icon { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; background: #daf0e9; border-radius: 9px; color: var(--teal); margin-bottom: 12px; }
.support-icon .icon { width: 17px; height: 17px; }
.sidebar-support > strong { font-size: 12px; color: #28524c; }
.sidebar-support > p { margin-top: 6px; font-size: 10px; line-height: 1.65; color: #526f66; }
.sidebar-support .text-button { color: var(--teal); font-size: 10px; margin-top: 8px; gap: 6px; }
.sidebar-support .text-button .icon { width: 13px; height: 13px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom .nav-item { font-size: 11px; min-height: 42px; }
.sidebar-bottom .nav-item .icon { width: 18px; height: 18px; }
.sidebar-bottom > p { border-top: 1px solid var(--line); margin-top: 16px; padding: 18px 0 0; color: #62728a; font-size: 9px; text-align: center; }
.logout-button:hover { color: #9c4150; background: #fff3f4; }
.app-main { min-width: 0; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; padding: 0 37px; border-bottom: 1px solid var(--line); }
.topbar-location { display: flex; align-items: center; gap: 12px; color: #62728a; font-size: 11px; }
.topbar-location > strong { font-weight: 550; color: #40516a; }
.topbar-location .icon { width: 12px; height: 12px; color: #9ba9ba; }
.topbar-actions { display: flex; align-items: center; gap: 17px; min-width: 0; }
.topbar-actions > .icon-button { width: 34px; height: 34px; }
.topbar-actions > .icon-button .icon { width: 19px; height: 19px; }
.topbar-divider { width: 1px; height: 29px; background: var(--line); }
.patient-topbar { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; background: #e7f1ee; border: 3px solid #f7faf9; color: var(--teal); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 750; }
.avatar .icon { width: 18px; height: 18px; }
.patient-topbar > div { min-width: 0; }
.patient-topbar strong { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; color: #354b64; }
.patient-topbar small { display: block; font-size: 9px; color: #62728a; margin-top: 2px; }
.mobile-logout { display: none; }
.main-content { max-width: 1550px; margin: 0 auto; padding: 32px 37px 24px; min-width: 0; }
.main-content:focus { outline: none; }
#scope-notice { margin-bottom: 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading .eyebrow { margin-bottom: 9px; font-size: 8px; letter-spacing: 1.55px; }
.page-heading h1 { font-size: 29px; font-weight: 650; letter-spacing: -.9px; color: #213951; }
.page-heading > div > p:last-child { font-size: 12px; color: #62728a; margin-top: 8px; }
.date-label { font-size: 10px; color: #62728a; align-self: flex-end; margin-bottom: 4px; text-align: right; }
.welcome-card { display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; border-radius: 19px; min-height: 236px; padding: 29px 32px 27px; background: linear-gradient(116deg, #154da8, #175aaf 67%, #147d96); color: #fff; }
.welcome-copy { position: relative; z-index: 1; max-width: 445px; }
.welcome-label { display: flex; align-items: center; gap: 7px; font-size: 7.5px; letter-spacing: 1.4px; font-weight: 600; color: #d5e9fc; }
.welcome-label .status-dot { width: 5px; height: 5px; }
.welcome-copy h2 { margin-top: 13px; font-size: 30px; font-weight: 580; letter-spacing: -.65px; line-height: 1.18; }
.welcome-copy > p { color: #d6e6fa; font-size: 11px; line-height: 1.75; max-width: 330px; margin-top: 12px; }
.welcome-copy .button { margin-top: 20px; min-height: 37px; padding: 9px 15px; font-size: 10px; border-radius: 8px; }
.welcome-copy .button .icon { width: 15px; height: 15px; }
.welcome-art { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 286px; height: 236px; }
.art-orbit { position: absolute; border: 1px solid rgb(255 255 255 / 13%); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art-orbit-outer { width: 272px; height: 272px; }
.art-orbit-inner { width: 194px; height: 194px; background: rgb(255 255 255 / 3%); }
.art-heart { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); width: 114px; height: 114px; background: linear-gradient(150deg, rgb(255 255 255 / 98%), #deeffc); border: 6px solid rgb(255 255 255 / 15%); border-radius: 30px; box-shadow: 0 18px 40px rgb(9 46 95 / 15%); display: grid; place-items: center; }
.art-heart .icon { width: 58px; height: 58px; color: var(--teal); stroke-width: 1.35; }
.art-chip { display: grid; place-items: center; position: absolute; width: 46px; height: 46px; border-radius: 14px; background: rgb(255 255 255 / 95%); box-shadow: 0 7px 17px rgb(12 59 106 / 13%); }
.art-chip .icon { width: 23px; height: 23px; }
.art-chip-calendar { top: 23px; left: 30px; color: #3472bb; transform: rotate(-8deg); }
.art-chip-clipboard { bottom: 32px; right: 30px; color: #178d80; transform: rotate(9deg); }
.art-dot { position: absolute; border-radius: 50%; background: #81d6cb; }
.art-dot-one { width: 9px; height: 9px; top: 45px; right: 44px; }
.art-dot-two { width: 6px; height: 6px; left: 46px; bottom: 49px; background: #add2f6; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; margin-bottom: 27px; }
.summary-card { display: flex; align-items: center; gap: 13px; text-align: left; padding: 20px 17px; min-height: 105px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .18s, transform .18s; }
.summary-card:hover { border-color: #bccde5; transform: translateY(-2px); }
.summary-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; }
.summary-icon .icon { width: 20px; height: 20px; }
.summary-pending .summary-icon { background: #fff5e1; color: #a47620; }
.summary-consultas .summary-icon { background: #edf3ff; color: #487cc8; }
.summary-exames .summary-icon { background: #edf7f3; color: #208776; }
.summary-cirurgias .summary-icon { background: #f3effc; color: #8b70b3; }
.summary-card-content { display: flex; flex-direction: column; min-width: 0; }
.summary-number { color: #273f5b; font-size: 25px; font-weight: 700; line-height: 1.2; letter-spacing: -.8px; }
.summary-label { color: #62728a; font-size: 9px; line-height: 1.5; margin-top: 4px; }
.summary-arrow { width: 13px; height: 13px; color: #9aa9ba; position: absolute; right: 11px; top: 12px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(248px, 1fr); gap: 23px; align-items: start; }
.dashboard-primary, .dashboard-secondary { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 23px 19px; }
.panel-heading h2, .list-result-heading h2 { font-size: 15px; color: #2d415a; font-weight: 650; letter-spacing: -.2px; }
.panel-heading p { margin-top: 6px; color: #62728a; font-size: 10px; line-height: 1.6; }
.panel-heading .text-button { font-size: 10px; flex-shrink: 0; }
.panel-heading .text-button .icon { width: 13px; height: 13px; }
.subtle-icon { color: #93a4b8; }
.subtle-icon .icon { width: 19px; height: 19px; }
.request-list { padding: 0 23px; }
.request-card { display: flex; align-items: flex-start; gap: 14px; border-top: 1px solid #edf1f5; padding: 21px 0; min-width: 0; }
.request-category-icon { display: grid; place-items: center; width: 41px; height: 41px; flex-shrink: 0; border-radius: 12px; background: var(--blue-soft); color: #5080bb; margin-top: 2px; }
.request-category-icon .icon { width: 21px; height: 21px; }
.category-exame { background: #ecf6f1; color: #268a77; }
.category-cirurgia { background: #f4f0fb; color: #8a6bb2; }
.request-body { flex: 1; min-width: 0; }
.request-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; margin-bottom: 7px; }
.category-label { color: #62728a; font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .95px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 6px; font-size: 9px; font-weight: 600; line-height: 1.25; color: #627184; background: #f0f3f6; overflow-wrap: anywhere; }
.status-badge::before { content: ""; width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; opacity: .7; }
.status-pending, .status-returned { background: #fff6e6; color: #8b691d; }
.status-authorized, .status-completed, .status-confirmed { background: #eaf6ef; color: #297658; }
.status-scheduled { background: #edf3ff; color: #3a65a4; }
.status-cancelled, .status-denied, .status-missed { background: #fceff0; color: #9a4b5a; }
.request-title { font-size: 13px; line-height: 1.45; font-weight: 650; color: #314760; overflow-wrap: anywhere; }
.request-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 7px; color: #62728a; font-size: 9px; line-height: 1.7; }
.request-meta span { display: inline-flex; gap: 5px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.request-meta .icon { width: 12px; height: 12px; margin-top: 2px; }
.request-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.request-detail-button { font-size: 10px; min-height: 31px; margin-left: auto; }
.request-detail-button .icon { width: 12px; height: 12px; }
.request-queue-note { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #526f66; padding-bottom: 6px; }
.request-queue-note .icon { width: 12px; height: 12px; }
.guidance-banner { display: flex; gap: 13px; align-items: flex-start; background: #edf3fa; border: 1px solid #e3ebf5; padding: 17px 19px; border-radius: 12px; margin-top: 18px; }
.guidance-icon { color: #6387b2; flex-shrink: 0; padding-top: 2px; }
.guidance-icon .icon { width: 18px; height: 18px; }
.guidance-banner strong { font-size: 11px; font-weight: 600; color: #46617f; }
.guidance-banner p { margin-top: 5px; font-size: 10px; line-height: 1.65; color: #526d90; }
.activity-panel .panel-heading { padding: 23px 20px 20px; }
.activity-panel .panel-heading h2 { font-size: 14px; }
.activity-list { padding: 0 20px 4px; }
.activity-item { display: flex; gap: 11px; position: relative; padding-bottom: 22px; }
.activity-item:not(:last-child)::before { content: ""; position: absolute; top: 24px; bottom: 0; width: 1px; background: #e6edf1; left: 12px; }
.activity-marker { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #eaf4ef; color: #508f7d; flex-shrink: 0; position: relative; }
.activity-marker .icon { width: 12px; height: 12px; }
.activity-body { min-width: 0; padding-top: 2px; }
.activity-title { font-size: 10px; font-weight: 600; color: #52667f; line-height: 1.5; overflow-wrap: anywhere; }
.activity-description { font-size: 9px; color: #62728a; margin-top: 4px; line-height: 1.6; overflow-wrap: anywhere; }
.activity-date { display: block; font-size: 8px; color: #62728a; margin-top: 5px; }
.panel-footer-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 43px; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); color: #526d90; font-size: 10px; font-weight: 600; }
.panel-footer-button:hover { background: #f7faff; color: var(--blue); }
.panel-footer-button .icon { width: 13px; height: 13px; }
.care-note { margin-top: 19px; padding: 23px 22px 17px; border: 1px solid #d9eee6; border-radius: 15px; background: linear-gradient(135deg, #ebf7f1, #f2f9f5); }
.care-note > .icon { color: #458f77; width: 21px; height: 21px; margin-bottom: 13px; }
.care-note h2 { color: #3a6c5d; font-size: 14px; font-weight: 600; line-height: 1.4; }
.care-note p { color: #526f66; font-size: 10px; line-height: 1.8; margin-top: 9px; }
.care-note .text-button { color: #286c58; font-size: 10px; margin-top: 10px; }
.care-note .text-button .icon { width: 13px; height: 13px; }
.next-appointment { display: flex; align-items: center; gap: 16px; padding: 19px 20px; background: #fff; border: 1px solid #dbe7f5; border-radius: 15px; margin-bottom: 18px; }
.appointment-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); width: 56px; min-height: 65px; border-radius: 12px; flex-shrink: 0; }
.appointment-date strong { font-size: 23px; line-height: 1.15; }
.appointment-date small { font-size: 9px; text-transform: uppercase; letter-spacing: .9px; }
.appointment-copy { flex: 1; min-width: 0; }
.appointment-copy .eyebrow { font-size: 8px; letter-spacing: 1px; color: var(--blue); }
.appointment-copy h3 { font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; line-height: 1.5; }
.appointment-copy p { font-size: 10px; color: var(--muted); margin-top: 5px; }
.next-appointment > .icon-button { color: var(--blue); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-button { padding: 11px 20px; border: 1px solid #e0e7f1; border-radius: 10px; font-size: 12px; font-weight: 550; background: #fff; color: #62728a; min-height: 43px; }
.filter-button:hover { color: var(--blue); border-color: #bccfe9; }
.filter-button.is-active { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 12px rgb(21 77 168 / 9%); }
.list-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px; }
.result-count { color: #62728a; font-size: 11px; }
.list-panel .request-card { padding: 25px 0; }
.list-panel .request-title { font-size: 15px; }
.list-panel .request-category-icon { width: 47px; height: 47px; }
.list-panel .category-label { font-size: 9px; }
.list-panel .request-meta { font-size: 11px; }
.list-panel .request-meta .icon { width: 14px; height: 14px; margin-top: 3px; }
.list-panel .status-badge { font-size: 10px; padding: 5px 10px; }
.list-panel .request-detail-button { font-size: 11px; min-height: 35px; }
.list-panel .request-queue-note { font-size: 10px; }
.agenda-info { margin-bottom: 23px; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--line); }
.pagination:empty { display: none; }
.pagination > span { color: var(--muted); font-size: 11px; }
.pagination-controls { display: flex; gap: 9px; }
.pagination .button { font-size: 11px; min-height: 36px; border-radius: 8px; padding: 8px 12px; gap: 5px; }
.pagination .button .icon { width: 15px; height: 15px; }
.pagination .button:disabled { cursor: default; opacity: .4; }
.history-list { padding: 4px 25px 4px; }
.history-list .activity-item { padding: 0 0 30px; gap: 16px; }
.history-list .activity-marker { width: 34px; height: 34px; }
.history-list .activity-marker .icon { width: 16px; height: 16px; }
.history-list .activity-item::before { left: 16px; top: 34px; }
.history-list .activity-title { font-size: 13px; }
.history-list .activity-description { font-size: 11px; margin-top: 7px; }
.history-list .activity-date { font-size: 10px; margin-top: 7px; }
.history-list .text-button { font-size: 10px; min-height: 30px; margin-top: 5px; }
.content-footer { display: flex; align-items: center; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; padding-top: 29px; margin-top: 3px; font-size: 9px; color: #62728a; }
.source-summary { display: flex; align-items: center; gap: 7px; max-width: 100%; }
.source-summary .icon { width: 12px; height: 12px; }
.source-details-button { font-size: 9px; color: #526d90; min-height: 30px; margin-left: auto; }
.footer-disclaimer { flex-basis: 100%; font-size: 9px; line-height: 1.7; margin-top: 2px; }
.mobile-nav { display: none; }

/* Estados de carregamento e diálogos */
.empty-state { padding: 32px 18px 36px; text-align: center; color: var(--muted); }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 16px; background: #f0f5fa; color: #7195bb; }
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state h3 { font-size: 14px; font-weight: 600; color: #445d77; }
.empty-state p { max-width: 360px; margin: 9px auto 0; font-size: 11px; line-height: 1.75; }
.activity-list .empty-state { padding: 10px 0 27px; }
.activity-list .empty-icon { width: 40px; height: 40px; margin-bottom: 12px; }
.activity-list .empty-state h3 { font-size: 12px; }
.activity-list .empty-state p { font-size: 10px; }
.load-error { padding: 35px 24px; border: 1px solid #e2eaf4; border-radius: 18px; background: #fff; text-align: center; }
.error-symbol { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 19px; border-radius: 18px; background: #f1f5fa; color: #6d8daf; }
.error-symbol .icon { width: 29px; height: 29px; }
.load-error h2, .load-error h3 { font-size: 18px; font-weight: 600; color: #34516e; }
.load-error p { margin: 12px auto 20px; font-size: 12px; color: var(--muted); max-width: 400px; line-height: 1.7; }
.load-error .button { font-size: 12px; }
.request-list > .load-error, .history-list > .load-error { margin-bottom: 22px; padding: 24px 18px; border: 0; background: #f8fafc; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 155px; color: #62728a; font-size: 12px; }
.spinner { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; border: 2px solid #d9e6f3; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.button .spinner { width: 18px; height: 18px; border-color: rgb(255 255 255 / 35%); border-top-color: #fff; }
.skeleton-request { height: 111px; border-top: 1px solid #edf1f5; background: linear-gradient(100deg, #fff 5%, #f4f7fa 35%, #fff 65%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 8px; }
.skeleton-line { height: 37px; border-radius: 7px; background: linear-gradient(100deg, #f4f7fa 5%, #edf2f7 35%, #f7f9fb 65%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.portal-dialog { width: min(600px, calc(100vw - 32px)); max-height: min(90dvh, 850px); padding: 27px 31px 30px; border: 1px solid #e6edf4; border-radius: 21px; color: var(--ink); background: #fff; box-shadow: 0 24px 100px rgb(8 30 64 / 20%); overscroll-behavior: contain; }
.portal-dialog::backdrop { background: rgb(18 39 65 / 40%); backdrop-filter: blur(4px); }
body.dialog-open { overflow: hidden; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 19px; }
.dialog-eyebrow { font-size: 8px; letter-spacing: 1.5px; font-weight: 700; color: #62728a; }
.dialog-heading .icon-button { margin: -8px -10px -8px 0; }
.portal-dialog h2 { font-size: 23px; line-height: 1.35; font-weight: 650; letter-spacing: -.5px; color: #254362; overflow-wrap: anywhere; }
.dialog-title-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #ebf6f1; color: var(--teal); margin-bottom: 17px; }
.dialog-intro { font-size: 12px; line-height: 1.8; color: #62728a; margin-top: 10px; }
.dialog-action { width: 100%; margin-top: 24px; font-size: 12px; }
.detail-header { display: flex; align-items: flex-start; gap: 15px; margin-top: 2px; }
.detail-header .request-category-icon { width: 48px; height: 48px; }
.detail-header > div { min-width: 0; }
.detail-header .category-label { display: block; margin-bottom: 6px; }
.detail-header h2 { font-size: 21px; }
.detail-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.detail-status-line .status-badge { font-size: 11px; padding: 6px 11px; }
.detail-code { font-size: 10px; color: #62728a; overflow-wrap: anywhere; }
.detail-description { padding: 16px; margin-top: 19px; color: #4d6b80; background: #f2f6fa; border-radius: 11px; font-size: 12px; line-height: 1.75; }
.detail-data { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 23px; padding: 23px 0; margin: 0; }
.detail-data > div { min-width: 0; }
.detail-data dt { font-size: 10px; color: #62728a; margin-bottom: 5px; }
.detail-data dd { margin: 0; font-size: 12px; color: #425c75; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.detail-section { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 1px; }
.detail-section + .detail-section { margin-top: 23px; }
.detail-section h3 { font-size: 14px; color: #3e5871; margin-bottom: 14px; font-weight: 650; }
.detail-section > p { color: #62728a; font-size: 11px; line-height: 1.8; }
.queue-card { padding: 18px; background: #edf7f4; border: 1px solid #ddecE6; border-radius: 13px; }
.queue-position { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--teal); }
.queue-position strong { font-size: 31px; line-height: 1.2; font-weight: 650; letter-spacing: -.9px; }
.queue-position span { font-size: 12px; }
.queue-card h4 { margin: 9px 0 0; font-size: 12px; color: #416c62; font-weight: 600; }
.queue-card p { margin-top: 8px; font-size: 10px; color: #526f66; line-height: 1.7; }
.queue-card .queue-updated { font-size: 9px; margin-top: 12px; }
.detail-section .activity-list { padding: 3px 0 0; }
.detail-section .activity-title { font-size: 12px; }
.detail-section .activity-description { font-size: 11px; }
.detail-section .activity-date { font-size: 10px; }
.detail-section .activity-item:last-child { padding-bottom: 2px; }
.detail-footnote { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; color: #62728a; }
.faq-list { margin-top: 24px; }
.faq-list details { border-top: 1px solid var(--line); padding: 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 17px 0; font-size: 12px; font-weight: 600; color: #405e7b; list-style: none; }
.faq-list summary .icon { width: 16px; height: 16px; color: #526d90; }
.faq-list p { padding: 0 23px 17px 0; font-size: 11px; color: #62728a; line-height: 1.85; }
.sources-list { margin: 24px 0; }
.source-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.source-item:first-child { border-top: 1px solid var(--line); }
.source-item strong { font-size: 12px; color: #42617e; font-weight: 600; }
.source-item p { font-size: 10px; margin-top: 6px; color: #62728a; }
.sources-dialog .inline-alert { font-size: 11px; }
.error-page { min-height: 100dvh; background: #f4f7fb; }
.error-page-content { max-width: 650px; padding: 55px 24px; margin: 0 auto; }
.error-page-content > .brand { display: flex; margin: 0 auto 46px; }
.error-page-card { padding: 42px 32px; text-align: center; }
.error-page-card .eyebrow { margin-bottom: 16px; }
.error-page-card h1 { font-size: 27px; font-weight: 650; color: #284b6e; }
.error-page-card > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 17px; }
.error-page-card .button { margin-top: 26px; font-size: 12px; }

/* Conteúdo e ações permanecem disponíveis nos diferentes tamanhos de tela. */
@media (min-width: 1550px) {
  .sidebar { padding-top: 36px; }
  .app-shell { grid-template-columns: 255px minmax(0, 1fr); }
  .topbar { padding-inline: 48px; }
  .main-content { padding: 40px 48px 30px; }
  .welcome-card { min-height: 257px; padding: 32px 38px; }
  .welcome-copy h2 { font-size: 34px; }
  .welcome-copy > p { font-size: 12px; }
  .summary-card { padding: 24px; }
  .summary-label { font-size: 11px; }
  .request-title { font-size: 14px; }
  .request-meta { font-size: 10px; }
  .welcome-art { right: 80px; }
  .dashboard-columns { gap: 25px; }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand { gap: 7px; }
  .sidebar .brand-image { width: 38px; height: 38px; }
  .sidebar .brand-wordmark { font-size: 20px; }
  .sidebar .brand-wordmark small { font-size: 6.8px; letter-spacing: 1.3px; }
  .sidebar-section-label { margin-inline: 12px; }
  .topbar { padding-inline: 25px; }
  .main-content { padding: 29px 25px 24px; }
  .summary-card { gap: 9px; padding: 19px 13px; }
  .summary-icon { width: 33px; height: 33px; border-radius: 10px; }
  .summary-icon .icon { width: 18px; height: 18px; }
  .summary-number { font-size: 24px; }
  .summary-label { font-size: 8px; }
  .welcome-art { right: 6px; opacity: .9; width: 246px; }
  .art-orbit-outer { width: 248px; height: 248px; }
  .art-orbit-inner { width: 174px; height: 174px; }
  .art-heart { width: 104px; height: 104px; }
  .art-chip-calendar { left: 14px; }
  .art-chip-clipboard { right: 11px; }
  .welcome-copy { max-width: 65%; }
  .dashboard-columns { gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); }
  .panel-heading { padding: 21px 18px 17px; }
  .request-list { padding-inline: 18px; }
  .request-card { gap: 11px; }
  .request-category-icon { width: 34px; height: 34px; border-radius: 10px; }
  .request-category-icon .icon { width: 18px; height: 18px; }
  .panel-heading h2 { font-size: 14px; }
  .activity-panel .panel-heading { padding-inline: 17px; }
  .activity-panel .panel-heading h2 { font-size: 13px; }
  .activity-list { padding-inline: 17px; }
  .care-note { padding-inline: 18px; }
}
@media (max-width: 1000px) {
  .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-secondary { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
  .care-note { margin-top: 0; }
  .activity-list { padding-bottom: 0; }
  .welcome-copy h2 { font-size: 27px; }
  .welcome-card { padding: 25px; }
  .welcome-art { right: -33px; transform: translateY(-50%) scale(.85); }
  .summary-grid { gap: 9px; }
  .summary-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .summary-card-content { flex-direction: row; align-items: center; gap: 8px; }
  .summary-label { max-width: 76px; font-size: 8px; margin-top: 0; }
  .summary-number { font-size: 23px; }
  .page-heading h1 { font-size: 27px; }
  .date-label { display: none; }
  .login-main { padding-inline: 34px; }
  .login-story { padding-inline: 32px; }
  .story-pill { font-size: 7px; letter-spacing: 1px; padding-inline: 9px; }
  .story-sparkle { width: 20px; height: 20px; }
  .login-form-wrap h1 { font-size: 32px; }
  .story-heading h2 { font-size: 38px; }
  .login-intro { font-size: 13px; }
  .login-footer { font-size: 9px; }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 73px; padding: 0 25px; }
  .topbar-location { font-size: 12px; }
  .topbar-actions { gap: 10px; }
  .patient-topbar strong { max-width: 160px; font-size: 12px; }
  .patient-topbar small { font-size: 10px; }
  .mobile-logout { display: inline-flex; }
  .main-content { padding: 29px 25px 105px; }
  .welcome-card { min-height: 239px; }
  .welcome-copy { max-width: 70%; }
  .welcome-copy h2 { font-size: 30px; }
  .welcome-art { right: 6px; transform: translateY(-50%) scale(.95); }
  .summary-grid { gap: 12px; }
  .summary-card { flex-direction: row; align-items: center; padding: 20px 14px; }
  .summary-card-content { flex-direction: column; align-items: flex-start; gap: 0; }
  .summary-label { max-width: none; font-size: 9px; margin-top: 4px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 8px 15px calc(9px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 97%); backdrop-filter: blur(16px); border-top: 1px solid #e3eaf3; box-shadow: 0 -3px 18px rgb(34 55 81 / 4%); }
  .mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 51px; padding: 6px 4px; border-radius: 11px; background: transparent; color: #62728a; font-size: 9px; font-weight: 550; }
  .mobile-nav-item .icon { width: 21px; height: 21px; }
  .mobile-nav-item.is-active { color: var(--blue); background: #edf3fc; font-weight: 700; }
  .toast { bottom: 93px; }
  .portal-dialog { max-height: calc(100dvh - 40px); }
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-main { min-height: 100dvh; max-width: 630px; margin: 0 auto; padding: 32px 55px 26px; }
  .demo-banner + .login-shell .login-main { min-height: calc(100dvh - 37px); }
  .login-form-wrap { max-width: 460px; padding: 60px 0; }
  .login-form-wrap h1 { font-size: 40px; }
  .login-intro { font-size: 15px; }
}
@media (max-width: 540px) {
  body { font-size: 14px; }
  .demo-banner { font-size: 10px; padding: 8px 12px; text-align: left; }
  .demo-banner .icon { width: 16px; height: 16px; }
  .topbar { height: 70px; padding: 0 19px; gap: 9px; }
  .desktop-only { display: none !important; }
  .topbar-location { font-size: 11px; }
  .topbar-location strong { max-width: 91px; line-height: 1.5; }
  .topbar-actions { gap: 8px; }
  .topbar-actions > .icon-button { width: 30px; height: 38px; }
  .topbar-actions > .icon-button .icon { width: 18px; height: 18px; }
  .topbar-divider { height: 24px; }
  .patient-topbar { gap: 8px; }
  .patient-topbar strong { max-width: 83px; font-size: 10px; }
  .patient-topbar small { font-size: 8px; }
  .avatar { width: 32px; height: 32px; font-size: 10px; border-width: 2px; }
  .main-content { padding: 25px 19px 99px; }
  .page-heading { margin-bottom: 21px; }
  .page-heading h1 { font-size: 26px; letter-spacing: -.8px; }
  .page-heading .eyebrow { font-size: 7px; margin-bottom: 9px; }
  .page-heading > div > p:last-child { font-size: 11px; margin-top: 9px; line-height: 1.65; }
  .welcome-card { min-height: 243px; padding: 24px 22px; border-radius: 17px; }
  .welcome-copy { max-width: 85%; }
  .welcome-label { font-size: 6px; letter-spacing: .9px; white-space: nowrap; }
  .welcome-label .status-dot { width: 4px; height: 4px; }
  .welcome-copy h2 { font-size: 27px; margin-top: 16px; line-height: 1.18; }
  .welcome-copy > p { max-width: 212px; font-size: 10px; line-height: 1.75; margin-top: 12px; }
  .welcome-copy .button { font-size: 9px; padding: 10px 13px; margin-top: 19px; }
  .welcome-art { top: 58%; right: -114px; transform: translateY(-50%) scale(.7); opacity: .45; }
  .welcome-art .art-chip, .welcome-art .art-dot { display: none; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 15px; margin-bottom: 23px; }
  .summary-card { min-height: 90px; padding: 17px 15px; gap: 12px; border-radius: 13px; }
  .summary-icon { width: 36px; height: 36px; border-radius: 11px; }
  .summary-icon .icon { width: 18px; height: 18px; }
  .summary-number { font-size: 24px; }
  .summary-label { font-size: 8px; max-width: 70px; line-height: 1.45; }
  .summary-arrow { width: 11px; height: 11px; top: 10px; right: 9px; }
  .dashboard-columns { gap: 21px; }
  .dashboard-secondary { display: block; }
  .care-note { margin-top: 18px; }
  .panel { border-radius: 15px; }
  .panel-heading { padding: 21px 17px 17px; gap: 10px; }
  .panel-heading h2 { font-size: 14px; }
  .panel-heading p { font-size: 9px; max-width: 190px; }
  .panel-heading .text-button { font-size: 9px; }
  .panel-heading .text-button .icon { width: 11px; height: 11px; }
  .request-list { padding: 0 16px; }
  .request-card { gap: 10px; padding: 20px 0; }
  .request-category-icon { width: 31px; height: 31px; border-radius: 9px; }
  .request-category-icon .icon { width: 16px; height: 16px; }
  .request-topline { gap: 7px; }
  .category-label { font-size: 7px; letter-spacing: .8px; }
  .status-badge { font-size: 8px; padding: 4px 6px; gap: 4px; }
  .request-title { font-size: 12px; line-height: 1.5; }
  .request-meta { font-size: 9px; gap: 4px 9px; margin-top: 8px; }
  .request-meta .icon { width: 12px; height: 12px; margin-top: 2px; }
  .request-bottom { margin-top: 9px; }
  .request-queue-note { font-size: 8px; }
  .request-detail-button { font-size: 9px; min-height: 34px; }
  .request-detail-button .icon { width: 11px; height: 11px; }
  .guidance-banner { padding: 16px; gap: 11px; margin-top: 15px; }
  .guidance-banner strong { font-size: 10px; }
  .guidance-banner p { font-size: 9px; line-height: 1.75; }
  .activity-panel .panel-heading { padding: 21px 20px 20px; }
  .activity-panel .panel-heading h2 { font-size: 14px; }
  .activity-panel .panel-heading p { font-size: 10px; }
  .activity-list { padding-inline: 20px; }
  .activity-item { gap: 12px; padding-bottom: 23px; }
  .activity-title { font-size: 11px; }
  .activity-description { font-size: 10px; }
  .activity-date { font-size: 9px; }
  .care-note { padding: 22px; }
  .care-note h2 { font-size: 16px; }
  .care-note p { font-size: 11px; }
  .care-note .text-button { font-size: 11px; }
  .content-footer { padding-top: 24px; gap: 4px 10px; }
  .source-summary { font-size: 8px; line-height: 1.7; align-items: flex-start; }
  .source-summary .icon { margin-top: 1px; }
  .source-details-button { font-size: 9px; margin-left: 0; }
  .footer-disclaimer { font-size: 8px; }
  .filter-bar { gap: 6px; margin-bottom: 19px; }
  .filter-button { flex: 1; padding: 10px 9px; font-size: 10px; border-radius: 8px; min-height: 40px; }
  .list-result-heading { padding: 21px 17px; }
  .list-result-heading h2 { font-size: 13px; }
  .result-count { font-size: 9px; }
  .list-panel .request-card { padding: 22px 0; }
  .list-panel .request-category-icon { width: 31px; height: 31px; }
  .list-panel .category-label { font-size: 7px; }
  .list-panel .request-title { font-size: 12px; }
  .list-panel .request-meta { font-size: 9px; }
  .list-panel .request-meta .icon { width: 12px; height: 12px; margin-top: 2px; }
  .list-panel .status-badge { font-size: 8px; padding: 4px 6px; }
  .list-panel .request-detail-button { font-size: 9px; }
  .list-panel .request-queue-note { font-size: 8px; }
  .pagination { padding: 16px; gap: 10px; }
  .pagination > span { font-size: 9px; }
  .pagination-controls { gap: 6px; }
  .pagination .button { font-size: 10px; padding-inline: 9px; min-height: 37px; }
  .pagination .button .icon { width: 13px; height: 13px; }
  .agenda-info { padding: 13px; font-size: 10px; gap: 8px; }
  .agenda-info .icon { width: 17px; height: 17px; }
  .history-list { padding-inline: 18px; }
  .history-list .activity-title { font-size: 12px; }
  .history-list .activity-description { font-size: 10px; }
  .history-list .activity-date { font-size: 9px; }
  .next-appointment { gap: 12px; padding: 16px; }
  .appointment-date { width: 46px; min-height: 60px; border-radius: 11px; }
  .appointment-date strong { font-size: 22px; }
  .appointment-date small { font-size: 8px; }
  .appointment-copy .eyebrow { font-size: 6px; letter-spacing: .9px; }
  .appointment-copy h3 { font-size: 11px; }
  .appointment-copy p { font-size: 9px; }
  .next-appointment > .icon-button { width: 27px; }
  .next-appointment > .icon-button .icon { width: 18px; height: 18px; }
  .portal-dialog { padding: 21px 20px 23px; border-radius: 18px; max-height: calc(100dvh - 30px); }
  .dialog-heading { margin-bottom: 20px; }
  .dialog-eyebrow { font-size: 7px; }
  .portal-dialog h2 { font-size: 21px; }
  .dialog-intro { font-size: 11px; }
  .detail-header { gap: 12px; }
  .detail-header .request-category-icon { width: 38px; height: 38px; border-radius: 11px; }
  .detail-header h2 { font-size: 18px; }
  .detail-header .category-label { font-size: 8px; }
  .detail-status-line .status-badge { font-size: 10px; }
  .detail-description { font-size: 11px; padding: 14px; }
  .detail-data { gap: 19px 16px; padding-top: 20px; }
  .detail-data dd { font-size: 11px; }
  .detail-data dt { font-size: 9px; }
  .detail-section h3 { font-size: 13px; }
  .detail-section .activity-title { font-size: 11px; }
  .detail-section .activity-description { font-size: 10px; }
  .detail-section .activity-date { font-size: 9px; }
  .queue-position strong { font-size: 27px; }
  .queue-position span { font-size: 11px; }
  .faq-list summary { font-size: 11px; gap: 12px; }
  .faq-list p { font-size: 10px; }
  .sources-dialog .inline-alert { font-size: 10px; padding: 13px; }
  .source-item { gap: 12px; }
  .source-item strong { font-size: 11px; }
  .source-item .status-badge { margin-top: 2px; }
  .source-item p { font-size: 9px; }
  .login-main { padding: 29px 26px 23px; }
  .login-brand .brand-image { width: 43px; height: 43px; }
  .login-brand .brand-wordmark { font-size: 23px; }
  .login-brand .brand-wordmark small { font-size: 7px; letter-spacing: 1.8px; }
  .login-form-wrap { padding: 48px 0 43px; }
  .login-form-wrap h1 { font-size: 33px; letter-spacing: -1.2px; }
  .login-form-wrap .eyebrow { font-size: 8px; letter-spacing: 1.5px; gap: 8px; margin-bottom: 17px; }
  .eyebrow-line { width: 21px; }
  .login-intro { font-size: 13px; margin-top: 16px; max-width: 315px; }
  .login-form { margin-top: 30px; gap: 21px; }
  .field-group label { font-size: 12px; }
  .input-wrap input { font-size: 16px; height: 53px; }
  .input-wrap input::placeholder { font-size: 12px; }
  .field-hint { font-size: 10px; }
  .login-submit { font-size: 12px; padding-inline: 15px; min-height: 53px; }
  .login-submit .icon { width: 18px; height: 18px; }
  .privacy-note { font-size: 10px; padding-inline: 1px; gap: 9px; }
  .privacy-note .icon { width: 18px; height: 18px; }
  .login-help summary { font-size: 11px; }
  .login-help p { font-size: 11px; }
  .login-footer { font-size: 8px; gap: 10px; }
  .login-form .inline-alert { font-size: 11px; }
  .demo-access { font-size: 11px; }
  .error-page-content { padding: 37px 20px; }
  .error-page-card { padding: 32px 23px; }
  .error-page-card h1 { font-size: 23px; }
  .error-page-card > p:not(.eyebrow) { font-size: 12px; }
}
@media (max-width: 370px) {
  .topbar { padding-inline: 15px; }
  .topbar-actions { gap: 6px; }
  .patient-topbar { gap: 6px; }
  .patient-topbar strong { max-width: 72px; }
  .main-content { padding-inline: 15px; }
  .welcome-card { padding-inline: 20px; }
  .welcome-copy { max-width: 89%; }
  .welcome-label { font-size: 5.7px; letter-spacing: .75px; }
  .welcome-art { right: -126px; }
  .summary-card { padding-inline: 12px; gap: 10px; }
  .summary-label { font-size: 7.6px; }
  .login-main { padding-inline: 23px; }
  .login-form-wrap h1 { font-size: 30px; }
  .login-intro { font-size: 12px; }
  .login-footer { font-size: 7.5px; }
}
/* Legibilidade dos textos para pacientes, inclusive em telas pequenas. */
.nav-item, .sidebar-bottom .nav-item { font-size: 14px; }
.sidebar-support > strong { font-size: 14px; }
.sidebar-support > p, .sidebar-support .text-button { font-size: 12px; }
.sidebar-bottom > p { font-size: 11px; }
.topbar-location, .patient-topbar strong { font-size: 13px; }
.patient-topbar small { font-size: 12px; }
.page-heading > div > p:last-child { font-size: 14px; }
.date-label { font-size: 12px; }
.welcome-copy > p { font-size: 14px; }
.welcome-copy .button { font-size: 12px; min-height: 43px; }
.welcome-label { font-size: 9px; white-space: normal; line-height: 1.7; }
.welcome-card { min-height: 273px; }
.summary-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 13px; row-gap: 10px; align-items: center; }
.summary-card-content { display: contents; }
.summary-number { font-size: 28px; }
.summary-label { grid-column: 1 / -1; font-size: 12px; margin-top: 0; max-width: none; }
.panel-heading h2, .activity-panel .panel-heading h2, .list-result-heading h2 { font-size: 16px; }
.panel-heading p, .activity-panel .panel-heading p { font-size: 12px; }
.panel-heading .text-button, .request-detail-button, .list-panel .request-detail-button, .panel-footer-button { font-size: 12px; min-height: 40px; }
.request-title, .list-panel .request-title { font-size: 15px; }
.request-meta, .list-panel .request-meta { font-size: 12px; }
.request-meta .icon, .list-panel .request-meta .icon { width: 14px; height: 14px; margin-top: 3px; }
.category-label, .list-panel .category-label { font-size: 10px; }
.status-badge, .list-panel .status-badge { font-size: 11px; padding: 5px 8px; }
.request-queue-note, .list-panel .request-queue-note { font-size: 12px; line-height: 1.6; }
.guidance-banner strong { font-size: 13px; }
.guidance-banner p { font-size: 12px; }
.activity-title { font-size: 13px; }
.activity-description, .activity-date { font-size: 12px; }
.care-note h2 { font-size: 17px; }
.care-note p, .care-note .text-button { font-size: 13px; }
.appointment-copy h3 { font-size: 14px; }
.appointment-copy p { font-size: 12px; }
.appointment-copy .eyebrow { font-size: 9px; }
.appointment-date small { font-size: 11px; }
.filter-button, .pagination .button { font-size: 13px; }
.result-count, .pagination > span { font-size: 12px; }
.agenda-info { font-size: 13px; }
.history-list .activity-title { font-size: 14px; }
.history-list .activity-description, .history-list .activity-date, .history-list .text-button { font-size: 12px; }
.source-summary, .source-details-button, .footer-disclaimer { font-size: 12px; }
.content-footer { gap: 6px 16px; }
.empty-state h3, .activity-list .empty-state h3 { font-size: 14px; }
.empty-state p, .activity-list .empty-state p, .load-error p, .loading-state { font-size: 13px; }
.dialog-intro, .detail-description, .detail-data dd { font-size: 14px; }
.detail-data dt, .detail-code, .detail-footnote, .detail-section > p { font-size: 12px; }
.detail-header .category-label { font-size: 10px; }
.detail-status-line .status-badge { font-size: 12px; }
.detail-section h3 { font-size: 15px; }
.detail-section .activity-title { font-size: 14px; }
.detail-section .activity-description, .detail-section .activity-date { font-size: 12px; }
.queue-position span, .queue-card h4 { font-size: 13px; }
.queue-card p, .queue-card .queue-updated { font-size: 12px; }
.faq-list summary { font-size: 14px; }
.faq-list p { font-size: 13px; }
.source-item strong { font-size: 14px; }
.source-item p, .sources-dialog .inline-alert { font-size: 12px; }
.dialog-action { font-size: 14px; }
.mobile-nav-item { font-size: 12px; color: #52647b; }
.login-intro { font-size: 15px; }
.field-group label { font-size: 14px; }
.input-wrap input::placeholder { font-size: 14px; }
.field-hint, .privacy-note, .login-help p { font-size: 12px; }
.login-help summary { font-size: 13px; }
.login-submit { font-size: 14px; }
.login-footer { font-size: 11px; }
.demo-access { font-size: 13px; }
.demo-access small { font-size: 12px; }
.story-features strong { font-size: 15px; }
.story-features small { font-size: 13px; }
.story-footer { font-size: 12px; }
.demo-banner { font-size: 12px; }
@media (max-width: 1180px) {
  .sidebar-support { margin-top: 26px; }
  .sidebar-support .text-button { flex-wrap: wrap; justify-content: flex-start; }
  .dashboard-columns { grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr); }
}
@media (max-width: 1000px) {
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .welcome-copy { max-width: 72%; }
}
@media (max-width: 540px) {
  .topbar-location { font-size: 12px; }
  .patient-topbar strong { font-size: 12px; max-width: 83px; }
  .patient-topbar small { font-size: 10px; }
  .topbar-actions { gap: 6px; }
  .patient-topbar { gap: 7px; }
  .topbar-location strong { max-width: 77px; }
  .topbar-divider { display: none; }
  .welcome-card { min-height: 277px; }
  .welcome-copy { max-width: 95%; }
  .welcome-label { max-width: 238px; font-size: 8px; letter-spacing: .8px; }
  .welcome-copy > p { max-width: 245px; font-size: 13px; }
  .welcome-copy .button { font-size: 12px; }
  .welcome-art { right: -139px; opacity: .28; }
  .summary-card { padding: 16px; row-gap: 8px; }
  .summary-label { font-size: 12px; line-height: 1.5; }
  .summary-number { font-size: 27px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h2, .activity-panel .panel-heading h2 { font-size: 16px; }
  .panel-heading p { max-width: 190px; }
  .panel-heading .text-button { font-size: 12px; }
  .request-category-icon { width: 29px; height: 29px; }
  .request-card { gap: 9px; }
  .request-title, .list-panel .request-title { font-size: 14px; }
  .request-meta, .list-panel .request-meta { font-size: 12px; }
  .request-topline { gap: 8px; }
  .status-badge, .list-panel .status-badge { font-size: 11px; }
  .request-queue-note, .list-panel .request-queue-note { font-size: 11px; }
  .request-queue-note { align-items: flex-start; }
  .request-queue-note .icon { margin-top: 3px; }
  .filter-button { padding-inline: 8px; font-size: 12px; }
  .pagination { justify-content: center; }
  .pagination > span { flex-basis: 100%; text-align: center; }
  .pagination .button { font-size: 12px; }
  .list-result-heading h2 { font-size: 15px; }
  .result-count { font-size: 12px; text-align: right; }
  .appointment-copy h3 { font-size: 13px; }
  .appointment-copy p { font-size: 12px; }
  .appointment-copy .eyebrow { font-size: 8px; }
  .login-intro { font-size: 14px; }
  .login-submit { font-size: 13px; }
  .input-wrap input::placeholder { font-size: 13px; }
  .login-footer { font-size: 10px; }
  .mobile-nav { padding-inline: 9px; }
  .mobile-nav-item { font-size: 12px; min-height: 54px; }
  .faq-list summary { font-size: 13px; }
  .faq-list p { font-size: 12px; }
  .detail-data dd, .detail-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
