@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-Variable.1508f55ab758.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ui-scale: 0.875;
  /* Foundation tokens: preserve the existing visual language while giving
     equivalent UI elements a common semantic vocabulary. */
  --font-body: Arial, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.2;
  --leading-normal: 1.45;
  --leading-relaxed: 1.6;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --ink: #07101d;
  --navy: #020617;
  --navy-soft: #0b1628;
  --gold: #d4af37;
  --gold-light: #f1cf63;
  --paper: #f6f7f8;
  --white: #ffffff;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.14);
  --green: #285a50;
  --danger: #9f3a4b;
  --color-bg: var(--navy);
  --color-surface: #0a1323;
  --color-surface-elevated: #091424;
  --color-border: var(--line);
  --color-text: #e2e8f0;
  --color-text-muted: var(--muted);
  --color-primary: var(--gold);
  --color-primary-hover: var(--gold-light);
  --color-success: #285a50;
  --color-warning: #f0d88c;
  --color-danger: #bd4050;
  --max: 1320px;
  --radius: var(--radius-md);
  --internal-sidebar-expanded-width: 244px;
  --internal-sidebar-collapsed-width: 72px;
  --internal-sidebar-transition: 180ms;
}

html { font-size: calc(16px * var(--ui-scale)); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); line-height: var(--leading-relaxed); }
p { text-align: left; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--gold); color: var(--navy); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(24px, calc((100vw - var(--max)) / 2)); background: rgba(2, 6, 23, 0.96); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-light); font-size: 14px; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-size: 12px; font-weight: var(--weight-semibold); }
.brand-name { font-family: var(--font-display); font-size: 15px; font-weight: var(--weight-semibold); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #cbd5e1; font-size: 14px; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-light); }
.main-nav .nav-cta { padding: 9px 15px; border: 1px solid var(--gold); color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); color: #cbd5e1; text-decoration: none; }
.header-login:hover, .header-login:focus-visible { border-color: var(--gold); color: var(--gold-light); }
.header-login svg { width: 21px; height: 21px; stroke-width: 1.5; }
.internal-main-menu { display: inline-flex; align-items: center; gap: 8px; }
.internal-main-menu svg { width: 18px; height: 18px; }
.header-logout { margin: 0; }
.header-logout .header-login { background: transparent; cursor: pointer; }
.user-account { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: var(--white); text-decoration: none; }
.user-avatar:hover, .user-avatar:focus-visible { border-color: var(--gold); color: var(--gold-light); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar svg { width: 22px; }
.user-greeting { display: grid; gap: 1px; line-height: 1.25; }
.user-greeting > a { color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none; }
.user-greeting form { margin: 0; }
.user-greeting button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.user-greeting button:hover, .user-greeting button:focus-visible { color: var(--gold-light); }
.notification-menu { position: relative; }
.notification-menu summary { position: relative; list-style: none; cursor: pointer; color: var(--white); }
.notification-menu summary::-webkit-details-marker { display: none; }
.notification-menu.has-unread summary { border-color: rgba(212,175,55,.7); color: var(--gold-light); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--navy); }
.notification-dropdown { position: absolute; top: calc(100% + 9px); right: 0; z-index: 40; width: min(360px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #0a1526; box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.notification-dropdown > header { padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--white); }
.notification-list { display: grid; }
.notification-list > a { position: relative; display: grid; gap: 3px; padding: 12px 15px; border-bottom: 1px solid var(--line); color: #dce6f2; text-decoration: none; }
.notification-list > a:hover, .notification-list > a:focus-visible { background: rgba(255,255,255,.06); }
.notification-list > a.is-unread { padding-left: 23px; background: rgba(212,175,55,.06); }
.notification-list > a.is-unread::before { content: ""; position: absolute; top: 20px; left: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.notification-list span { color: var(--white); font-weight: 700; }
.notification-list small, .notification-list time { color: var(--muted); font-size: 11px; line-height: 1.35; }
.notification-list small { white-space: pre-line; }
.notification-list p { margin: 0; padding: 18px 15px; color: var(--muted); text-align: left; }
.notification-history { display: block; padding: 12px 15px; color: var(--gold-light); font-size: 13px; font-weight: 700; text-decoration: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--white); font-size: 24px; cursor: pointer; }

.hero { position: relative; min-height: calc(100vh - 72px); display: flex; align-items: center; isolation: isolate; }
.hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(2, 6, 23, 0.48); }
.hero::after { content: ""; position: absolute; inset: 0 48% 0 0; z-index: -1; background: rgba(2, 6, 23, 0.78); }
.hero-content { width: min(680px, 100%); margin-left: max(24px, calc((100vw - var(--max)) / 2)); padding: 80px 24px 100px 0; }
.eyebrow { margin: 0 0 14px; color: var(--gold-light); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero h1, .page-hero h1 { margin: 0; color: var(--white); font-size: clamp(44px, 8vw, 92px); line-height: 0.96; font-weight: 700; }
.hero h1 { font-family: var(--font-display); font-size: clamp(42px, 7vw, 84px); font-weight: var(--weight-medium); }
.hero-copy { max-width: 600px; margin: 28px 0; color: #e2e8f0; font-size: 21px; }
.hero-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: var(--space-2); padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: var(--text-md); font-weight: var(--weight-bold); line-height: var(--leading-tight); text-decoration: none; cursor: pointer; }
.button-primary, .btn-primary { background: var(--color-primary); color: var(--navy); }
.button-primary:hover, .button-primary:focus-visible, .btn-primary:hover, .btn-primary:focus-visible { background: var(--color-primary-hover); }
.button-secondary, .btn-secondary { border-color: rgba(255,255,255,.35); background: transparent; color: var(--white); }
.button-danger, .btn-danger { background: var(--color-danger); color: var(--white); }
.btn-icon { width: 42px; min-width: 42px; padding: 0; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 88px 0; }
.intro-band { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.section-heading h2, .feature-band h2, .two-column h2 { margin: 0; color: var(--white); font-size: clamp(30px, 4vw, 50px); line-height: 1.12; }
.lead { margin: 0; color: #cbd5e1; font-size: 20px; }
.inline-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.text-link { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.treatment-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.service-card { grid-column: span 2; min-height: 292px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #0a1323; color: inherit; text-decoration: none; transition: border-color 180ms ease-out, background-color 180ms ease-out; }
.treatment-grid > .service-card:nth-child(4) { grid-column: 2 / span 2; }
.treatment-grid > .service-card:nth-child(5) { grid-column: 4 / span 2; }
.service-heading { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 20px; }
.service-card h2, .service-card h3 { margin: 0; color: var(--white); font-size: 23px; line-height: 1.25; }
.service-visual { width: 110px; height: 76px; display: grid; place-items: center; margin: 28px auto 24px; }
.service-image { width: auto; height: auto; max-width: 100px; max-height: 72px; object-fit: contain; transition: transform 180ms ease-out; }
.service-image--implantes-dentarios { max-width: 104px; max-height: 76px; }
.service-image--endodontia { max-width: 88px; max-height: 68px; }
.service-image--protese-dentaria { max-width: 100px; max-height: 64px; }
.service-image--cuidados-odontologicos { max-width: 92px; max-height: 72px; }
.service-card p { margin: 0 0 24px; color: #aebbd0; text-align: left; }
.service-card .text-link { margin-top: auto; }
.card-index { padding-top: 5px; color: var(--gold); font-size: 13px; line-height: 1; }
.cta-arrow { display: inline-block; transition: transform 180ms ease-out; }
.service-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-color: var(--gold); }
.content-carousel { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.carousel-viewport { min-width: 0; overflow-x: auto; padding: 4px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.content-carousel .carousel-track { width: 100%; display: flex; justify-content: flex-start; gap: 16px; }
.content-carousel .treatment-grid > .service-card,
.content-carousel .treatment-grid > .service-card:nth-child(4),
.content-carousel .treatment-grid > .service-card:nth-child(5),
.content-carousel .dentist-cards > .dentist-card { min-width: 0; flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.content-carousel .treatment-grid > .service-card { grid-column: auto; }
.content-carousel .carousel-track.is-static > .service-card,
.content-carousel .carousel-track.is-static > .dentist-card { flex: 1 1 0; }
.content-carousel .empty-state { flex: 1 0 100%; }
.carousel-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--gold); border-radius: 50%; background: #0a1323; color: var(--gold-light); cursor: pointer; transition: border-color 180ms ease-out, background-color 180ms ease-out, opacity 180ms ease-out; }
.carousel-button svg { width: 22px; height: 22px; }
.carousel-button:hover:not(:disabled) { background: #0d192b; border-color: var(--gold-light); }
.carousel-button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.carousel-button:disabled { opacity: .28; cursor: default; }
@media (hover: hover) {
  .service-card:hover { border-color: var(--gold); background: #0d192b; }
  .service-card:hover .service-image { transform: translateY(-3px); }
  .service-card:hover .cta-arrow { transform: translateX(4px); }
}
.feature-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding: 88px max(24px, calc((100vw - var(--max)) / 2)); background: var(--green); }
.feature-band p:not(.eyebrow) { margin: 0 0 28px; color: #e7f1ee; font-size: 18px; }
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 180px 1fr 32px; gap: 20px; align-items: center; padding: 22px 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-row span:first-child { color: var(--gold-light); font-size: 13px; }
.article-row:hover { background: rgba(255,255,255,.04); }
.empty-state { padding: 32px; border: 1px dashed rgba(255,255,255,.24); color: var(--muted); }
.empty-state p { margin-bottom: 0; }

.page-hero { min-height: 460px; display: flex; flex-direction: column; justify-content: end; padding: 80px max(24px, calc((100vw - var(--max)) / 2)); background: #0a1323; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(44px, 7vw, 78px); }
.page-hero > p:last-child { max-width: 720px; margin: 24px 0 0; color: #aebbd0; font-size: 20px; }
.two-column { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.prose { max-width: 720px; color: #cbd5e1; font-size: 18px; }
.prose p, .article-body p, .orientation-content p { text-align: justify; }
.prose .button { margin-top: 18px; }
.implant-topic { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; border-bottom: 1px solid var(--line); }
.implant-media { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-soft); }
.implant-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sedation-intro, .endodontics-intro, .prosthesis-intro, .dental-care-intro { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; border-bottom: 1px solid var(--line); }
.prosthesis-intro, .dental-care-intro { align-items: start; }
.treatment-media { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-soft); }
.treatment-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.treatment-media-contain { background: var(--paper); }
.treatment-media-contain img { aspect-ratio: 16 / 9; object-fit: contain; }
.sedation-copy, .endodontics-copy, .prosthesis-copy, .care-copy { color: #cbd5e1; font-size: 18px; }
.treatment-copy-title { margin: 0 0 28px; color: var(--white); font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.2; }
.sedation-copy p:last-child, .endodontics-copy p:last-of-type, .prosthesis-copy p:last-of-type, .care-copy p:last-of-type { margin-bottom: 0; }
.endodontics-copy .button, .prosthesis-copy .button, .care-copy .button { margin-top: 28px; }
.sedation-band { background: var(--navy-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sedation-band .section { margin-block: 0; }
.sedation-section h2 { font-size: clamp(30px, 4vw, 48px); }
.sedation-list, .prosthesis-list { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sedation-list li, .prosthesis-list li { position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); }
.sedation-list li::before, .prosthesis-list li::before { content: ""; position: absolute; top: 26px; left: 0; width: 8px; height: 1px; background: var(--gold); }
.sedation-source { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 0 0 88px; color: var(--muted); font-size: 14px; }
.sedation-source h3 { margin: 0 0 8px; color: var(--gold-light); font-size: 16px; }
.sedation-source p { margin: 0; }
.implant-copy h2, .implant-text-section h2, .implant-options-layout h2 { margin: 0 0 28px; color: var(--white); font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.implant-copy p, .implant-text-section p:not(.eyebrow), .implant-options-layout > div:last-child { color: #cbd5e1; font-size: 18px; }
.implant-copy p:last-child { margin-bottom: 0; }
.implant-prf { padding: 88px 24px; background: var(--navy-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.implant-prf-layout { width: min(var(--max), 100%); display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; margin: 0 auto; }
.implant-prf-media { width: min(100%, 420px); justify-self: center; }
.implant-prf-media img { aspect-ratio: 4 / 5; }
.implant-options-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.implant-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 20px 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.implant-options li { position: relative; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); }
.implant-options li::before { content: ""; position: absolute; top: 28px; left: 0; width: 8px; height: 1px; background: var(--gold); }
.implant-closing { margin-bottom: 28px; }
.about-hero { min-height: 650px; }
.about-hero h1 { max-width: 1100px; }
.about-hero-copy { max-width: 1100px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; margin-top: 34px; color: #aebbd0; font-size: 18px; }
.about-hero-copy p { margin: 0; }
.about-story { align-items: start; }
.care-section { padding: 88px max(24px, calc((100vw - var(--max)) / 2)); background: var(--navy-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.care-intro { max-width: 850px; }
.care-intro h2, .commitment-band h2 { margin: 0 0 24px; color: var(--white); font-size: clamp(30px, 4vw, 50px); line-height: 1.12; }
.care-intro > p:not(.eyebrow) { color: #cbd5e1; font-size: 18px; }
.care-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.care-principles article { min-height: 280px; padding: 28px 24px; border-right: 1px solid var(--line); }
.care-principles article:last-child { border-right: 0; }
.principle-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 12px; }
.principle-number { padding-top: 4px; color: var(--gold); font-size: 13px; line-height: 1; }
.care-principles h3 { margin: 0; color: var(--white); font-size: 20px; line-height: 1.25; }
.principle-icon { display: block; width: 42px; height: 42px; margin: 28px auto 22px; color: var(--gold-light); stroke-width: 1.25; }
.care-principles p { color: #aebbd0; }
.dentist-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.dentist-card { overflow: hidden; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #0a1323; }
.dentist-card-photo { overflow: hidden; aspect-ratio: 4 / 3; background: #07101d; }
.dentist-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.dentist-card-copy { display: flex; flex: 1; flex-direction: column; padding: 32px; }
.dentist-card-copy h2 { margin: 0 0 22px; color: var(--white); font-size: 30px; line-height: 1.16; }
.dentist-card-copy > p:not(.eyebrow):not(.professional-registration) { color: #cbd5e1; font-size: 17px; }
.professional-registration { margin: -6px 0 22px; color: var(--muted); font-weight: 700; }
.dentist-card-copy .text-link { display: inline-block; margin-top: auto; padding-top: 20px; }
.commitment-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding: 88px max(24px, calc((100vw - var(--max)) / 2)); background: var(--green); }
.commitment-band p:not(.eyebrow) { color: #e7f1ee; font-size: 18px; }
.commitment-band .button { margin-top: 20px; }
.values-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-band div { display: flex; min-height: 180px; flex-direction: column; justify-content: center; gap: 8px; padding: 34px max(24px, calc((100vw - var(--max)) / 6)); background: var(--navy-soft); }
.values-band strong { color: var(--gold-light); font-size: 21px; }
.values-band span { color: #aebbd0; }

.filter-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.filter-bar label { font-weight: 700; }
.filter-bar select { min-width: 220px; }
.article-page { width: min(840px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }
.article-page header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-page h1 { margin: 0 0 20px; color: var(--white); font-size: clamp(38px, 6vw, 66px); line-height: 1.05; }
.article-page header > p:not(.eyebrow) { color: #aebbd0; font-size: 20px; }
.article-page time { color: var(--muted); }
.article-body { padding-top: 34px; color: #d6deea; font-size: 18px; }
.orientation-content h2 { margin: 64px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--white); font-size: clamp(27px, 4vw, 38px); line-height: 1.15; }
.orientation-content h2:first-child { margin-top: 12px; }
.orientation-content h3 { margin: 34px 0 14px; color: var(--gold-light); font-size: 21px; line-height: 1.3; }
.orientation-content blockquote { margin: 34px 0; padding: 20px 22px; border-left: 3px solid var(--gold); background: var(--navy-soft); color: #dce5f1; }
.orientation-content blockquote strong { color: var(--white); }
.orientation-content > p { margin: 18px 0; }
.orientation-checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.orientation-checklist li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.orientation-checklist label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; color: #e7edf6; cursor: pointer; }
.orientation-checklist input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); }
.orientation-checklist strong { color: var(--white); }
.orientation-checklist li > p { margin: 10px 0 0 36px; color: #aebbd0; font-size: 16px; }
.orientation-checklist input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.orientation-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.orientation-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.orientation-marker { width: 24px; height: 24px; display: grid; place-items: center; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; color: var(--gold-light); font-size: 15px; font-weight: 800; line-height: 1; }
.orientation-point-text { color: #e7edf6; }
.orientation-points strong { color: var(--white); }
.orientation-points li p { margin: 8px 0 0; color: #aebbd0; font-size: 16px; }
.orientation-points--success .orientation-marker { color: #58b99f; }
.orientation-points--alert .orientation-marker, .orientation-points--danger .orientation-marker { color: #ef6b72; }
.orientation-points--question .orientation-marker { color: var(--gold); }
.orientation-points--number .orientation-marker { border-color: var(--gold); color: var(--gold-light); font-size: 13px; }
.contact-hero { min-height: 330px; padding-top: 54px; padding-bottom: 54px; }
.contact-hero > p:last-child { text-align: left; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 64px; align-items: start; }
.contact-information, .contact-information p { text-align: left; }
.contact-information h2 { margin: 0; color: var(--white); font-family: "Cinzel", Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1.2; }
.contact-intro { max-width: 330px; margin: 18px 0 38px; color: #cbd5e1; font-size: 18px; }
.contact-details { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-details div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { margin-bottom: 5px; color: var(--gold-light); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.contact-details dd { margin: 0; color: #e2e8f0; font-size: 16px; line-height: 1.5; }
.contact-details a { text-decoration-color: rgba(241, 207, 99, .55); text-underline-offset: 4px; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--gold-light); }
.muted { color: var(--muted); }

.form-panel { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.form-panel > div { display: grid; gap: 7px; }
.form-panel label { color: #e2e8f0; font-weight: 700; }
.form-panel input:not([type="checkbox"]), .form-panel textarea, .form-panel select, .filter-bar select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #344258; border-radius: var(--radius-md); outline: 0; background: var(--ink); color: var(--white); }
.form-panel textarea { min-height: 140px; resize: vertical; }
.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus, .filter-bar select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.form-panel .errorlist { margin: 0; padding: 0; color: #ff9bad; list-style: none; }
.helptext { color: var(--muted); font-size: 13px; }
.contact-form { gap: 17px; padding: 26px; }
.contact-form-heading { margin-bottom: 3px; }
.contact-form-heading .eyebrow { margin-bottom: 7px; }
.contact-form-heading h2 { margin: 0; color: var(--white); font-size: 27px; line-height: 1.2; }
.form-field, .contact-form .form-field { display: grid; gap: var(--space-2); }
.form-field label, .contact-form .form-field label { color: #e2e8f0; font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: var(--leading-normal); }
.contact-form input:not([type="checkbox"]) { min-height: 50px; }
.contact-form textarea { min-height: 126px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #718096; opacity: 1; }
.contact-form .helptext { margin: 0; text-align: left; }
.field-errors .errorlist, .form-alert .errorlist { margin: 0; padding: 0; color: #ffabb9; font-size: 14px; list-style: none; }
.form-field--error input, .form-field--error textarea { border-color: #d56b7c; }
.privacy-note { margin: 2px 0 0; color: #aebbd0; font-size: 13px; line-height: 1.55; text-align: left; }
.privacy-note a { color: var(--gold-light); text-underline-offset: 3px; }
.contact-submit { width: fit-content; margin-top: 2px; }
.auth-shell { min-height: 70vh; display: grid; place-items: center; padding: 60px 24px; }
.auth-panel { width: min(440px, 100%); }
.auth-panel h1 { margin: 0 0 14px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
.auth-links a { color: var(--gold-light); font-size: 13px; }
.account-flow-shell { padding-block: 76px; }
.account-form { width: min(900px, 100%); }
.account-form h1 { margin-top: 0; }
.form-intro, .form-help { color: var(--muted); text-align: left; }
.secret-question { padding: 15px; border-left: 2px solid var(--gold); background: rgba(212,175,55,.06); color: var(--white); text-align: left; }
.profile-heading { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile-heading > div:last-child { display: grid; gap: 3px; }
.profile-heading span, .profile-heading small { color: var(--muted); }
.profile-photo-preview { width: 88px; height: 88px; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview svg { width: 42px; height: 42px; color: var(--muted); }
.image-crop-uploader { display: grid; justify-items: start; gap: .75rem; }
.image-crop-label { color: var(--text); font-weight: 700; }
.image-crop-preview { width: 112px; height: 112px; display: grid; padding: 0; overflow: hidden; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: #07101d; color: var(--muted); cursor: pointer; }
.image-crop-preview.is-logo { width: 150px; height: 150px; border-radius: 12px; }
.image-crop-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-crop-preview.is-logo img { object-fit: contain; }
.image-crop-preview svg { width: 42px; height: 42px; }
.image-crop-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.image-crop-native-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.image-crop-error { margin: 0; color: #ff8996; }
.patient-photo-uploader { width: 100%; justify-items: center; gap: .65rem; }
.patient-photo-uploader .image-crop-preview { width: 134px; height: 134px; }
.patient-photo-uploader .image-crop-actions { justify-content: center; gap: .65rem; }
.patient-photo-uploader .helptext { margin-top: -.2rem; color: var(--muted); font-size: 10px; }
.patient-photo-dialog .form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.app-dialog.image-crop-dialog { width: min(94vw, 590px); max-height: 94vh; overflow-x: hidden; overflow-y: auto; padding: .6rem; }
.image-crop-header { display: flex; align-items: flex-start; padding: 0; }
.image-crop-header h2 { margin: 0; }
.image-crop-header p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.crop-stage { width: min(100%, 520px); aspect-ratio: 1; display: grid; margin: .6rem auto .75rem; overflow: hidden; place-items: center; background: #030814; border: 1px solid var(--line); border-radius: 10px; touch-action: none; }
.crop-stage canvas, .crop-stage video { width: 100%; height: 100%; object-fit: contain; }
.crop-controls { display: block; }
.crop-controls label { display: grid; gap: .45rem; }
.crop-controls label span { display: flex; align-items: center; gap: .4rem; color: var(--text); font-weight: 700; }
.crop-controls label svg { width: 17px; height: 17px; color: var(--gold-light); }
.crop-controls input { width: 100%; }
.camera-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 72px; margin-top: 1rem; }
.camera-control-slot { display: flex; align-items: center; }
.camera-icon-button { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #111d30; color: var(--gold-light); cursor: pointer; }
.camera-icon-button svg { width: 21px; height: 21px; }
.camera-icon-button:hover, .camera-icon-button:focus-visible { border-color: var(--gold); background: #1a2940; }
.camera-shutter { width: 66px; height: 66px; display: grid; place-self: center; place-items: center; padding: 0; border: 3px solid var(--gold-light); border-radius: 50%; background: #111d30; cursor: pointer; }
.camera-shutter span { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px #f4d66b; }
.camera-shutter:hover span, .camera-shutter:focus-visible span { background: var(--gold-light); }
.image-crop-divider { height: 1px; margin-top: 1rem; background: var(--line); }
.image-crop-dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem; margin-top: 1rem; }
.image-crop-dialog-actions .button { width: auto; min-width: 116px; }
@media (max-width: 480px) { .app-dialog.image-crop-dialog { width: min(100% - 20px, 590px); max-height: 96dvh; padding: .6rem; } .image-crop-header p { font-size: .84rem; } .camera-actions { gap: .75rem; } .camera-icon-button { width: 48px; height: 48px; } .image-crop-dialog-actions .button { min-width: 0; } }
.account-admin-layout { display: grid; grid-template-columns: minmax(260px,.35fr) minmax(0,1fr); gap: 28px; align-items: start; }
.generated-invitation { margin-bottom: 24px; padding: 24px; border: 1px solid var(--gold); border-radius: 8px; background: rgba(212,175,55,.07); }
.generated-invitation > strong { display: block; color: var(--gold-light); font-family: "Cinzel", Georgia, serif; font-size: 38px; letter-spacing: .12em; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--gold-light); cursor: pointer; }
.table-user { display: flex; align-items: center; gap: 10px; }
.mini-avatar { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-avatar svg { width: 17px; }
.user-row-actions { display: flex; align-items: center; gap: 6px; }
.user-row-actions form { margin: 0; }
.icon-action { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #d5e0ed; cursor: pointer; text-decoration: none; }
.icon-action:hover, .icon-action:focus-visible { border-color: var(--gold); color: var(--gold-light); background: rgba(212,175,55,.08); }
.icon-action svg { width: 18px; height: 18px; stroke-width: 1.75; }
.auth-brand { width: fit-content; margin-bottom: 8px; }
.password-field { position: relative; }
.password-field input { padding-right: 54px !important; }
.password-toggle { position: absolute; top: 5px; right: 5px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--gold-light); }
.password-toggle svg { width: 20px; }

/* Restricted to the management sign-in page; account recovery and invitation flows keep their own layout. */
.management-login-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 56px 24px; background: radial-gradient(circle at 50% 0, rgba(212,175,55,.08), transparent 31%), #020617; }
.management-login-card { width: min(560px, 100%); display: grid; gap: 18px; padding: clamp(30px, 5vw, 46px); border: 1px solid rgba(212,175,55,.36); border-radius: 14px; background: linear-gradient(150deg, rgba(16,31,53,.98), rgba(5,14,29,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.management-login-brand { display: grid; justify-items: center; gap: 10px; width: fit-content; margin: 0 auto 6px; color: var(--gold-light); font-family: "Cinzel", Georgia, serif; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-align: center; text-decoration: none; }
.management-login-mark { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid var(--gold); border-radius: 10px; background: linear-gradient(145deg, #e8c54c, #a77b16); color: #07101d; font-size: 20px; font-weight: 800; letter-spacing: -.05em; box-shadow: 0 0 0 5px rgba(212,175,55,.08); }
.management-login-heading { display: grid; gap: 4px; text-align: center; }
.management-login-heading p { margin: 0; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.management-login-heading h1 { margin: 0; color: var(--white); font-size: clamp(27px, 4vw, 34px); line-height: 1.2; }
.management-login-field { display: grid; gap: 7px; }
.management-login-field label { color: #e7edf6; font-size: 14px; font-weight: 700; }
.management-login-input { position: relative; display: flex; align-items: center; }
.management-login-input > svg { position: absolute; left: 15px; width: 19px; color: #8da0b8; pointer-events: none; }
.management-login-input input { width: 100%; min-height: 52px; padding: 12px 48px; border: 1px solid #344258; border-radius: 7px; outline: 0; background: #07101d; color: var(--white); }
.management-login-input input::placeholder { color: #718096; opacity: 1; }
.management-login-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.management-login-field.has-error input { border-color: #d56b7c; }
.management-login-field .errorlist, .management-login-alert .errorlist { margin: 0; padding: 0; color: #ff9bad; font-size: 13px; list-style: none; }
.management-login-alert { padding: 11px 13px; border: 1px solid rgba(213,107,124,.6); border-radius: 7px; background: rgba(159,58,75,.15); }
.management-login-password input { padding-right: 56px; }
.management-login-password .password-toggle { top: 5px; right: 5px; z-index: 1; width: 42px; height: 42px; }
.management-login-submit { width: 100%; min-height: 54px; gap: 8px; margin-top: 4px; border-radius: 7px; font-size: 15px; }
.management-login-submit svg { width: 19px; }
.management-login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.management-login-links a { color: var(--gold-light); font-size: 13px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.management-login-security { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.management-login-security > svg { width: 24px; height: 24px; color: var(--gold); }
.management-login-security span { display: grid; gap: 1px; }
.management-login-security strong { color: #dce7f4; font-size: 13px; }
.management-login-card input:-webkit-autofill, .management-login-card input:-webkit-autofill:hover, .management-login-card input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #07101d inset; -webkit-text-fill-color: var(--white); caret-color: var(--white); transition: background-color 9999s ease-out 0s; }
@media (max-width: 560px) { .management-login-shell { min-height: auto; padding: 32px 16px; } .management-login-card { padding: 28px 22px; } .management-login-links { display: grid; gap: 10px; } }

/* Access recovery only: keeps login and invitation pages visually independent. */
.recovery-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: clamp(32px,5vw,70px) 24px; background: radial-gradient(circle at 15% 5%,rgba(212,175,55,.08),transparent 27%),#020617; }
.recovery-panel { width: min(1160px,100%); display: grid; grid-template-columns: minmax(320px,39fr) minmax(0,61fr); overflow: hidden; border: 1px solid #263750; border-radius: 16px; background: linear-gradient(145deg,#0b1729,#06101f); box-shadow: 0 26px 80px rgba(0,0,0,.4); }
.recovery-aside { display: grid; align-content: start; gap: 28px; padding: clamp(30px,4vw,48px); border-right: 1px solid #263750; background: linear-gradient(155deg,rgba(17,32,54,.98),rgba(7,17,32,.98)); }
.recovery-brand { display: grid; justify-items: center; gap: 12px; color: var(--gold-light); font-family: "Cinzel",Georgia,serif; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.recovery-brand-mark { display: grid; width: 86px; height: 86px; place-items: center; border: 2px solid var(--gold); border-radius: 10px; color: var(--gold); font-size: 27px; font-weight: 700; letter-spacing: -.04em; box-shadow: 0 0 0 6px rgba(212,175,55,.06); }
.recovery-brand strong { font-size: 18px; }
.recovery-guidance { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.recovery-guidance li { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 13px; align-items: center; }
.recovery-guidance li>span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(212,175,55,.6); border-radius: 50%; background: rgba(212,175,55,.08); color: var(--gold-light); }
.recovery-guidance svg { width: 18px; height: 18px; }
.recovery-guidance p { margin: 0; color: #cbd5e1; font-size: 13px; line-height: 1.45; text-align: left; }
.recovery-support { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.recovery-support>svg { width: 25px; color: var(--gold-light); }
.recovery-support strong { color: var(--white); font-size: 14px; }
.recovery-support p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: left; }
.recovery-support>a { grid-column: 1/-1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(212,175,55,.7); border-radius: 7px; color: var(--gold-light); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.recovery-support>a:hover,.recovery-support>a:focus-visible { background: rgba(212,175,55,.1); border-color: var(--gold-light); }
.recovery-support>a svg { width: 16px; }
.recovery-form { display: grid; align-content: center; gap: 22px; padding: clamp(32px,5vw,58px); }
.recovery-form header { display: grid; gap: 8px; }
.recovery-form header .eyebrow { margin: 0; }
.recovery-form h1 { margin: 0; color: var(--white); font-size: clamp(30px,4vw,42px); line-height: 1.13; }
.recovery-form header>p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: left; }
.recovery-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; }
.recovery-fields>div,.recovery-answer,.recovery-password-fields>div { display: grid; gap: 7px; }
.recovery-form label { color: #e6edf6; font-size: 13px; font-weight: 700; }
.recovery-form input { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #344258; border-radius: 7px; outline: 0; background: #07101d; color: var(--white); }
.recovery-form input::placeholder { color: #718096; opacity: 1; }
.recovery-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.recovery-form .errorlist { margin: 0; padding: 0; color: #ff9bad; font-size: 12px; list-style: none; }
.recovery-alert { padding: 11px 13px; border: 1px solid rgba(213,107,124,.6); border-radius: 7px; background: rgba(159,58,75,.15); }
.recovery-alert .errorlist { font-size: 13px; }
.recovery-submit { width: 100%; min-height: 52px; border-radius: 7px; }
.recovery-back { width: fit-content; display: inline-flex; align-items: center; gap: 7px; color: var(--gold-light); font-size: 13px; font-weight: 700; text-decoration: none; }
.recovery-back:hover,.recovery-back:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.recovery-back svg { width: 17px; }
.recovery-secret-form,.recovery-password-form { align-content: center; }
.recovery-secret-question { display: grid; gap: 7px; padding: 18px; border-left: 2px solid var(--gold); border-radius: 0 7px 7px 0; background: rgba(212,175,55,.07); }
.recovery-secret-question span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.recovery-secret-question strong { color: var(--white); font-size: 17px; font-weight: 600; }
.recovery-password-fields { display: grid; gap: 16px; }
.recovery-password-help { margin: -10px 0 0; color: var(--muted); font-size: 12px; text-align: left; }
.recovery-form input:-webkit-autofill,.recovery-form input:-webkit-autofill:hover,.recovery-form input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #07101d inset; -webkit-text-fill-color: var(--white); caret-color: var(--white); transition: background-color 9999s ease-out 0s; }
@media (max-width:900px) { .recovery-panel { grid-template-columns:1fr; } .recovery-aside { border-right:0; border-bottom:1px solid #263750; } }
@media (max-width:560px) { .recovery-page { min-height:auto; padding:24px 14px; } .recovery-aside,.recovery-form { padding:26px 20px; } .recovery-fields { grid-template-columns:1fr; } .recovery-brand-mark { width:74px; height:74px; } }

.admin-header { width: min(var(--max), calc(100% - 48px)); display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 auto; padding: 70px 0 34px; border-bottom: 1px solid var(--line); }
.admin-header h1 { margin: 0; color: var(--white); font-size: 44px; }
.admin-actions form { margin: 0; }
.admin-layout { width: min(var(--max), calc(100% - 48px)); display: grid; grid-template-columns: 250px 1fr; gap: 40px; margin: 0 auto; padding: 40px 0 88px; }
.admin-layout > .admin-content:first-child { grid-column: 1 / -1; }
.admin-summary { height: fit-content; display: grid; gap: 6px; padding: 24px; border-left: 3px solid var(--gold); background: #0a1323; }
.admin-summary strong { color: var(--white); font-size: 42px; line-height: 1; }
.admin-summary span { color: var(--muted); }
.admin-summary .text-link { margin-top: 18px; }
.admin-sidebar { height: fit-content; display: grid; gap: 20px; }
.admin-sidebar nav { display: grid; padding: 20px; border: 1px solid var(--line); background: #0a1323; }
.admin-sidebar nav strong { padding: 0 8px 10px; color: var(--gold-light); font-family: "Cinzel", Georgia, serif; }
.admin-sidebar nav a { padding: 9px 8px; border-top: 1px solid var(--line); color: #dbe5f1; text-decoration: none; }
.access-panel { margin-bottom: 42px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.metric-grid article { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); background: #0a1323; }
.metric-grid strong { color: var(--gold-light); font-family: "Cinzel", Georgia, serif; font-size: 30px; }
.metric-grid span { color: var(--muted); font-size: 13px; }
.admin-content h2 { margin-top: 0; }
.data-list { border-top: 1px solid var(--line); }
.data-list > a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.data-list > a:hover { background: rgba(255,255,255,.04); }
.data-list a > span:first-child { display: grid; }
.data-list small { color: var(--muted); }
.status, .status-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: var(--leading-tight); }
.status-published, .status-publicado { background: #d7eee7; color: #164a3f; }
.status-draft { background: #28344a; color: #cbd5e1; }
.wide-form { max-width: 840px; margin: 0 auto; }
.message-list { display: grid; gap: 14px; }
.message-list article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #0a1323; }
.message-list header { display: flex; justify-content: space-between; gap: 18px; }
.message-list header span { color: var(--muted); }
.message-list article footer { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.message-list article.is-read { opacity: .68; }
.read-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--white); font-weight: 700; cursor: pointer; }
.read-toggle input { width: 18px; height: 18px; accent-color: var(--gold); }
.filter-bar { display: flex; align-items: end; gap: 14px; margin-bottom: 30px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.filter-bar label { min-width: 180px; flex: 1; display: grid; gap: var(--space-2); }
.filter-bar label > span { color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: var(--leading-tight); text-transform: uppercase; }
.filter-bar input, .filter-bar select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #344258; border-radius: var(--radius-md); background: var(--ink); color: var(--white); }
.filter-bar-wide label:first-child { flex: 2; }
.content-management-filter { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(90px, .65fr) auto; align-items: end; }
.content-management-filter label { min-width: 0; }
.content-management-filter input, .content-management-filter select { box-sizing: border-box; min-width: 0; width: 100%; }
.content-management-filter .button { min-height: 46px; white-space: nowrap; }
.content-filter-bar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; align-items: end; }
.content-filter-bar label, .content-filter-bar input, .content-filter-bar select, .access-log-filter label { min-width: 0; width: 100%; }
.access-log-filter { display: grid; grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr)) auto; align-items: end; }
.access-log-filter input, .access-log-filter select { box-sizing: border-box; min-width: 0; width: 100%; }
.access-log-filter .button { min-height: 46px; white-space: nowrap; }
.table-footer-controls { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 24px; }
.table-footer-controls .pagination { margin: 0; }
.per-page-form { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.per-page-form label { color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; }
.per-page-form select { min-height: 40px; padding: 7px 34px 7px 10px; border: 1px solid #344258; border-radius: var(--radius-md); background: var(--ink); color: var(--white); }
.flash-messages { position: fixed; top: 84px; right: 24px; z-index: 50; width: min(380px, calc(100% - 48px)); }
.flash { margin: 0 0 8px; padding: 13px 16px; border: 1px solid var(--gold); background: #122036; color: var(--white); text-align: left; box-shadow: 0 8px 30px rgba(0,0,0,.3); }

.featured-article { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; margin-bottom: 52px; border: 1px solid var(--line); background: #0a1323; }
.featured-article img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.featured-article > div { align-self: center; padding: 34px 34px 34px 0; }
.featured-article h2 { margin: 8px 0 14px; color: var(--white); font-family: "Cinzel", Georgia, serif; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.featured-article h2 a, .blog-card h2 a, .blog-card h3 a { text-decoration: none; }
.article-category { color: var(--gold-light); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.featured-article time, .blog-card time, .article-meta { color: var(--muted); font-size: 13px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); background: #0a1323; }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card > div { padding: 22px; }
.blog-card h2, .blog-card h3 { margin: 8px 0 12px; color: var(--white); font-size: 22px; line-height: 1.25; }
.blog-card p, .featured-article p { color: #b8c4d4; text-align: left; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 34px; }
.pagination a { color: var(--gold-light); font-weight: 700; }
.blog-detail { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0 100px; }
.blog-detail header h1 { margin: 10px 0 18px; color: var(--white); font-family: "Cinzel", Georgia, serif; font-size: clamp(40px, 7vw, 72px); line-height: 1.06; }
.blog-subtitle { color: #cbd5e1; font-size: 21px; text-align: left; }
.article-meta { display: flex; gap: 14px; margin: 22px 0 32px; }
.blog-cover { width: 100%; max-height: 560px; object-fit: cover; border: 1px solid var(--line); }
.article-content { padding-top: 38px; color: #d6e0ec; font-size: 18px; }
.article-content p { text-align: left; }
.article-content h1, .article-content h2, .article-content h3 { margin-top: 1.6em; color: var(--white); line-height: 1.2; }
.article-content a { color: var(--gold-light); }
.article-content blockquote { margin: 28px 0; padding: 16px 24px; border-left: 3px solid var(--gold); background: #0a1323; }
.article-content table, .visual-editor table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td, .visual-editor th, .visual-editor td { padding: 10px; border: 1px solid var(--line); }
.article-content figure { margin: 32px 0; }
.article-content figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.preview-banner { padding: 12px 24px; background: var(--gold); color: var(--navy); font-weight: 700; text-align: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; text-align: center; }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.data-table .long-text-cell { text-align: left; }
.data-table thead a { color: var(--gold); text-decoration: none; }
.data-table thead a:hover { text-decoration: underline; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs a, .content-return { color: var(--gold); }
.breadcrumbs-current { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.internal-breadcrumbs { margin: 0 0 1rem; }
.confirm-dialog { width: min(92vw, 30rem); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }
.app-dialog .image-crop-dialog-actions { justify-content: center; width: 100%; margin-top: 1rem; }
.button-danger { background: #bd4050; color: #fff; }
.data-table th { color: var(--gold-light); font-size: 11px; text-transform: uppercase; white-space: nowrap; }
.action-menu { position: relative; }
.action-menu summary { width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; font-size: 22px; list-style: none; }
.action-menu > div { position: absolute; top: 34px; right: 0; z-index: 5; min-width: 150px; display: grid; padding: 7px; border: 1px solid var(--line); background: #111d30; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.action-menu a, .action-menu button { width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--white); text-align: left; text-decoration: none; cursor: pointer; }
.action-menu a:hover, .action-menu button:hover { background: rgba(255,255,255,.07); }
.action-menu form { margin: 0; }
.table-icon-actions { display: inline-flex; align-items: center; gap: 6px; }
.table-icon-actions form { margin: 0; }
.table-icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--gold-light); cursor: pointer; text-decoration: none; }
.table-icon-button svg { width: 18px; height: 18px; }
.table-icon-button:hover, .table-icon-button:focus-visible { background: rgba(255,255,255,.06); outline: 1px solid currentColor; outline-offset: -1px; }
.deactivate-action { color: #f87171; }
.activate-action { color: #4ade80; }
.edit-action, .view-action, .neutral-action { color: var(--gold-light); }
.icon-action { border: 0; color: var(--gold-light); }
.icon-action:hover, .icon-action:focus-visible { border-color: transparent; outline: 1px solid currentColor; outline-offset: -1px; }
.negative-action { color: #f87171; }
.positive-action { color: #4ade80; }
.table-avatar { width: 52px; height: 52px; display: block; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #07101d; }
.professional-detail-link, .clinic-detail-link { text-decoration: none; }
.professional-name-link, .clinic-name-link, .dentist-name-link { color: inherit; text-decoration: none; }
.professional-name-link:hover, .professional-name-link:focus-visible, .clinic-name-link:hover, .clinic-name-link:focus-visible, .dentist-name-link:hover, .dentist-name-link:focus-visible, .content-title-link:hover, .content-title-link:focus-visible { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.content-title-link { color: inherit; text-decoration: none; }
.data-table .content-date-cell, .data-table .content-views-cell { text-align: center; vertical-align: middle; }
.data-table .content-type-cell, .data-table .content-category-cell, .data-table .content-status-cell { vertical-align: middle; }
.data-table th.content-title-heading { text-align: center; }
.deadline-page { display: grid; gap: 28px; }
.deadline-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deadline-metrics a { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #0a1323; text-decoration: none; }
.deadline-metrics a:hover, .deadline-metrics a:focus-visible { border-color: var(--gold); outline: none; }
.deadline-metrics span { color: var(--muted); font-weight: 700; text-transform: uppercase; }
.deadline-metrics strong { color: var(--gold-light); font-family: "Cinzel", Georgia, serif; font-size: 38px; }
.deadline-filter { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, 1fr)); gap: 14px; align-items: end; padding: 20px; border: 1px solid var(--line); background: #0a1323; }
.deadline-filter label { min-width: 0; display: grid; gap: 5px; }
.deadline-filter label > span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.deadline-filter input, .deadline-filter select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #344258; border-radius: 4px; background: #07101d; color: var(--white); color-scheme: dark; }
.deadline-filter > button[type="submit"] { grid-column: 1 / -1; justify-self: center; }
.deadline-table th:not(:first-child), .deadline-table td:not(:first-child) { text-align: center; }
.deadline-table td { vertical-align: middle; }
.deadline-table td:nth-child(3), .deadline-table td:nth-child(4) { white-space: nowrap; }
.deadline-table td:nth-child(3) span, .deadline-table td:nth-child(4) span { display: block; }
.deadline-description { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.deadline-description .status { width: fit-content; }
.deadline-status-no-prazo { background: #173d35; color: #b8f3db; }
.deadline-status-vencendo { background: #4b3c18; color: #ffe39a; }
.deadline-status-vencido { background: #4a2028; color: #fecdd3; }
.deadline-status-concluido { background: #d7eee7; color: #164a3f; }
.deadline-status-inativo { background: #28344a; color: #cbd5e1; }
.deadline-actions { display: grid; grid-template-columns: repeat(2, 34px); justify-content: center; gap: 6px; }
.deadline-detail { max-width: 920px; margin: 0 auto; }
.deadline-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.deadline-detail dl div { padding: 18px; background: #0a1323; }
.deadline-detail dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.deadline-detail dd { margin: 7px 0 0; color: var(--white); }
.deadline-management { gap:1.25rem; padding-top:24px; }
.deadline-page-hero { border-bottom:0; }
.deadline-page-hero .orientation-page-hero-title p { margin:.4rem 0 0; color:#b7c4d5; }
.deadline-accordions { display:grid; gap:.8rem; }
.deadline-accordion { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#091424; }
.deadline-accordion summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.9rem; min-height:72px; padding:.85rem 1rem; color:var(--white); cursor:pointer; list-style:none; }
.deadline-accordion summary::-webkit-details-marker { display:none; }
.deadline-accordion summary:hover,.deadline-accordion summary:focus-visible { background:rgba(255,255,255,.025); outline:0; }
.deadline-accordion summary:focus-visible { box-shadow:inset 0 0 0 2px rgba(212,175,55,.55); }
.deadline-accordion-icon { width:44px; height:44px; display:grid; flex:0 0 44px; place-items:center; border:1px solid currentColor; border-radius:50%; }
.deadline-accordion-icon svg { width:21px; height:21px; }
.deadline-accordion-expired .deadline-accordion-icon { color:#fb7185; background:rgba(159,58,75,.16); }
.deadline-accordion-upcoming .deadline-accordion-icon { color:var(--gold-light); background:rgba(212,175,55,.08); }
.deadline-accordion-completed .deadline-accordion-icon { color:#58c98a; background:rgba(50,143,93,.12); }
.deadline-accordion-heading strong { font-size:1rem; }
.deadline-accordion-heading em { color:var(--muted); font-style:normal; font-weight:700; }
.deadline-accordion-chevron { width:20px; height:20px; color:var(--muted); transition:transform .18s ease; }
.deadline-accordion[open] .deadline-accordion-chevron { transform:rotate(180deg); }
.deadline-accordion-panel { border-top:1px solid rgba(148,163,184,.18); }
.deadline-accordion-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; }
.deadline-accordion-toolbar p { margin:0; color:var(--muted); font-size:.85rem; }
.deadline-accordion-toolbar .button { min-height:40px; white-space:nowrap; }
.deadline-accordion-panel .table-wrap { margin:0 1rem 1rem; }
.deadline-empty-state { display:grid; justify-items:center; gap:.6rem; padding:1.8rem 1rem 2rem; color:var(--muted); text-align:center; }
.deadline-empty-state svg { width:28px; height:28px; }
.deadline-empty-state p { margin:0; }
.deadline-filter-panel { display:grid; gap:1rem; padding:1.15rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.deadline-filter-panel>header h2,.deadline-filter-panel>header p { margin:0; }
.deadline-filter-panel>header h2 { display:flex; align-items:center; gap:.5rem; color:var(--white); font-size:1.05rem; }
.deadline-filter-panel>header h2 svg { width:19px; height:19px; color:var(--gold-light); }
.deadline-filter-panel>header p { margin-top:.3rem; color:var(--muted); font-size:.82rem; }
.deadline-filter-panel .deadline-filter { padding:0; border:0; background:transparent; }
.deadline-filter-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-self:end; gap:.65rem; }
.deadline-filter-actions .button { min-width:0; min-height:46px; justify-content:center; }
.deadline-list-controls { display:flex; justify-content:flex-end; margin-bottom:-.35rem; }
.deadline-completed-toggle { display:flex; align-items:center; gap:.65rem; color:var(--muted); font-size:.82rem; text-decoration:none; }
.deadline-completed-toggle strong { min-width:68px; color:#fda4af; font-size:.72rem; text-align:right; text-transform:uppercase; }
.deadline-completed-toggle-track { width:42px; height:23px; display:flex; align-items:center; padding:2px; border:1px solid #526177; border-radius:999px; background:#07101d; transition:border-color .18s ease,background .18s ease; }
.deadline-completed-toggle-track span { width:17px; height:17px; border-radius:50%; background:#8390a3; transition:transform .18s ease,background .18s ease; }
.deadline-completed-toggle.is-active .deadline-completed-toggle-track { border-color:#42c982; background:rgba(66,201,130,.14); }
.deadline-completed-toggle.is-active .deadline-completed-toggle-track span { transform:translateX(17px); background:#58d795; }
.deadline-completed-toggle.is-active strong { color:#79e2aa; }
.deadline-completed-toggle:focus-visible { border-radius:6px; outline:2px solid var(--gold); outline-offset:4px; }
.deadline-alert-action { color:var(--gold-light); }
.deadline-actions { display:flex; flex-wrap:nowrap; justify-content:center; gap:6px; }
.deadline-accordion-panel .deadline-table td:nth-child(3) span,.deadline-accordion-panel .deadline-table td:nth-child(4) span { display:block; }
.deadline-accordion-panel .deadline-table td:nth-child(3),.deadline-accordion-panel .deadline-table td:nth-child(4) { white-space:nowrap; }
.deadline-accordion-panel .deadline-table th:not(:first-child),.deadline-accordion-panel .deadline-table td:not(:first-child) { text-align:center; }
@media (max-width:720px) { .deadline-accordion-toolbar { align-items:flex-start; flex-direction:column; } .deadline-accordion-toolbar .button { width:100%; justify-content:center; } .deadline-accordion-panel .table-wrap { margin:.75rem; } }
@media (max-width:640px) { .deadline-management { padding-top:16px; } .deadline-accordion summary { min-height:64px; padding:.7rem .8rem; } .deadline-accordion-icon { width:38px; height:38px; flex-basis:38px; } .deadline-filter-actions { grid-template-columns:1fr; } .deadline-filter-actions .button { width:100%; } .deadline-completed-toggle { width:100%; justify-content:flex-end; } }
.app-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--white); }
.app-dialog.dialog-sm { width: min(420px, calc(100% - 32px)); }
.app-dialog.dialog-md { width: min(520px, calc(100% - 32px)); }
.app-dialog.dialog-lg { width: min(820px, calc(100% - 32px)); }
.app-dialog::backdrop { background: rgba(0, 7, 18, .78); }
.app-dialog > form { display: grid; gap: var(--space-5); padding: 26px; }
.app-dialog h2, .app-dialog p { margin: 0; text-align: left; }
.app-dialog label { display: grid; gap: var(--space-2); color: #e2e8f0; font-size: var(--text-sm); font-weight: var(--weight-bold); }
.app-dialog input { min-height: 46px; padding: 10px 12px; border: 1px solid #344258; border-radius: var(--radius-md); background: var(--ink); color: var(--white); color-scheme: dark; }
.button-danger, .btn-danger { border: 1px solid #ef4444; background: #7f1d1d; color: var(--white); }

/* Reusable surfaces for new and progressively migrated internal UI. */
.ui-card { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-elevated); }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.section-header__title { margin: 0; color: var(--white); font-size: var(--text-xl); font-weight: var(--weight-bold); line-height: var(--leading-tight); }
.section-header__subtitle { margin: var(--space-1) 0 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); text-align: left; }
.table-meta, .helper-text { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); text-align: left; }
.notification-entry { position: relative; border-bottom: 1px solid var(--line); }
.notification-entry > a { display: grid; gap: 3px; padding: 12px 15px; color: #dce6f2; text-decoration: none; }
.notification-entry.is-unread > a { padding-left: 23px; background: rgba(212,175,55,.06); }
.notification-entry.is-unread::before { content: ""; position: absolute; top: 20px; left: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.notification-entry span { color: var(--white); font-weight: 700; }
.notification-entry small, .notification-entry time { color: var(--muted); font-size: 11px; white-space: pre-line; }
.notification-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 12px; }
.notification-actions form { margin: 0; }
.notification-actions button { padding: 5px 7px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); font-size: 11px; cursor: pointer; }
@media (max-width: 900px) { .deadline-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deadline-search { grid-column: 1 / -1; } }
@media (max-width: 620px) { .deadline-metrics, .deadline-filter, .deadline-detail dl { grid-template-columns: 1fr; } .deadline-search { grid-column: auto; } }
.content-updated-at { display: grid; justify-items: center; gap: 2px; white-space: nowrap; }
.data-table .content-actions-cell { vertical-align: middle; }
.internal-layout { display: grid; grid-template-columns: var(--internal-sidebar-expanded-width) minmax(0, 1fr); min-height: calc(100vh - 72px); transition: grid-template-columns var(--internal-sidebar-transition) ease; }
.internal-sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; border-right: 1px solid var(--line); background: #07101d; padding: 18px 14px 24px; transition: padding var(--internal-sidebar-transition) ease; }
.internal-sidebar nav { display: grid; gap: 6px; }
.internal-sidebar a, .internal-sidebar .is-future { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-left: 2px solid transparent; color: #cbd5e1; font-weight: 700; text-decoration: none; }
.internal-sidebar a:hover, .internal-sidebar a:focus-visible { background: rgba(255,255,255,.05); color: var(--gold-light); outline: none; }
.internal-sidebar a.is-active { border-left-color: var(--gold); background: rgba(212,175,55,.12); color: var(--gold-light); }
.internal-sidebar svg { width: 19px; height: 19px; flex: 0 0 auto; }
.internal-sidebar .is-future { color: #64748b; cursor: not-allowed; }
.internal-page-content { min-width: 0; }
.internal-sidebar-desktop-toggle { display: grid; width: 36px; height: 36px; place-items: center; margin: 0 0 14px auto; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--gold-light); cursor: pointer; }
.internal-sidebar-desktop-toggle:hover, .internal-sidebar-desktop-toggle:focus-visible { border-color: var(--gold); background: rgba(212,175,55,.1); outline: none; }
.internal-sidebar-desktop-toggle svg { width: 18px; height: 18px; }
.sidebar-expand-icon, .sidebar-mobile-close-icon { display: none; }
.internal-sidebar-toggle, .internal-sidebar-overlay { display: none; }
html.sidebar-desktop-collapsed .internal-layout { grid-template-columns: var(--internal-sidebar-collapsed-width) minmax(0, 1fr); }
html.sidebar-desktop-collapsed .internal-sidebar { padding-inline: 10px; }
html.sidebar-desktop-collapsed .internal-sidebar-desktop-toggle { margin-inline: auto; }
html.sidebar-desktop-collapsed .sidebar-collapse-icon { display: none; }
html.sidebar-desktop-collapsed .sidebar-expand-icon { display: block; }
html.sidebar-desktop-collapsed .internal-sidebar a, html.sidebar-desktop-collapsed .internal-sidebar .is-future { justify-content: center; gap: 0; padding-inline: 0; border-left-color: transparent; }
html.sidebar-desktop-collapsed .internal-sidebar a.is-active { border-left-color: var(--gold); }
html.sidebar-desktop-collapsed .internal-sidebar a > span, html.sidebar-desktop-collapsed .internal-sidebar .is-future > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
html.sidebar-desktop-collapsed .internal-sidebar .sidebar-settings { margin-top: .6rem; padding-top: .6rem; }
@media (max-width: 760px) { html { font-size: 100%; } body.sidebar-mobile-scroll-locked { overflow: hidden; } .internal-layout { display: block; } .internal-sidebar-desktop-toggle { display: none; } .internal-sidebar-toggle { display: grid; position: fixed; z-index: 23; right: 16px; bottom: 16px; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--gold); border-radius: 6px; background: #07101d; color: var(--gold-light); cursor: pointer; } .internal-sidebar-toggle:hover, .internal-sidebar-toggle:focus-visible { background: #0d1b30; outline: 2px solid var(--gold-light); outline-offset: 2px; } .internal-sidebar-toggle svg { width: 20px; height: 20px; } .internal-sidebar { position: fixed; z-index: 22; top: 72px; left: 0; width: min(270px, 84vw); height: calc(100vh - 72px); padding: 24px 14px; transform: translateX(-102%); transition: transform var(--internal-sidebar-transition) ease; box-shadow: 12px 0 28px rgba(0,0,0,.35); } .internal-sidebar.is-open { transform: translateX(0); } .internal-sidebar-overlay { position: fixed; z-index: 21; inset: 72px 0 0; width: 100%; border: 0; background: rgba(2,6,23,.58); opacity: 0; pointer-events: none; transition: opacity var(--internal-sidebar-transition) ease; } html.sidebar-mobile-open .internal-sidebar-overlay { display: block; opacity: 1; pointer-events: auto; } html.sidebar-mobile-open .sidebar-mobile-menu-icon { display: none; } html.sidebar-mobile-open .sidebar-mobile-close-icon { display: block; } html.sidebar-desktop-collapsed .internal-sidebar { padding-inline: 14px; } html.sidebar-desktop-collapsed .internal-sidebar a, html.sidebar-desktop-collapsed .internal-sidebar .is-future { justify-content: flex-start; gap: 12px; padding-inline: 12px; border-left-color: transparent; } html.sidebar-desktop-collapsed .internal-sidebar a.is-active { border-left-color: var(--gold); } html.sidebar-desktop-collapsed .internal-sidebar a > span, html.sidebar-desktop-collapsed .internal-sidebar .is-future > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .internal-layout, .internal-sidebar, .internal-sidebar-overlay { transition: none; } }
.status-agendado { background: #4b3c18; color: #ffe39a; }
.status-arquivado { background: #392936; color: #e7c4dc; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; color: var(--muted); }
.list-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.clear-filter, .export-link { color: var(--gold-light); font-weight: 700; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; width: min(var(--max), calc(100% - 48px)); margin: 24px auto -36px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--gold-light); }
.content-return { display: flex; justify-content: center; margin-top: 42px; }
.article-form { max-width: 1080px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid > div { display: grid; align-content: start; gap: 6px; }
.form-grid .field-wide { grid-column: 1 / -1; }
.date-field-control { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; }
.date-field-control input[type="date"] { min-width: 0; padding-inline: 8px; color-scheme: dark; cursor: pointer; }
.editor-field { display: grid; gap: 7px; }
.editorial-form { gap: 24px; }
.editorial-section { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4,11,21,.45); }
.editorial-section h2 { margin: 0; color: var(--gold-light); font-size: 22px; }
.advanced-section summary { cursor: pointer; color: var(--gold-light); font-size: 21px; font-weight: 700; }
.image-upload-field img { width: min(100%, 420px); aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.site-content-form { max-width: 900px; }
.site-image-field { justify-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.site-image-field img { display: block; max-width: 100%; object-fit: cover; border: 1px solid var(--line); background: #07101d; }
.site-image-field img[data-image-select] { cursor: pointer; }
.site-image-field img[data-image-select]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.clinic-logo-upload { align-content: start; }
.clinic-logo-preview { width: 150px; height: 150px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #07101d; }
.clinic-editor { width:min(1180px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.clinic-editor-hero { width:auto; }
.clinic-editor-form { display:grid; gap:1.2rem; }
.clinic-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }
.clinic-editor-card { display:grid; align-content:start; gap:1rem; min-width:0; padding:1.5rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.clinic-editor-card>header { display:flex; align-items:flex-start; gap:.7rem; }
.clinic-editor-card>header>i { width:21px; height:21px; flex:0 0 21px; margin-top:.12rem; color:var(--gold); }
.clinic-editor-card h2,.clinic-editor-card p { margin:0; }
.clinic-editor-card h2 { color:var(--white); font-size:1.15rem; }
.clinic-editor-card p,.clinic-editor-card small { color:var(--muted); font-size:.84rem; line-height:1.4; }
.clinic-editor-fields { display:grid; gap:1rem; }
.clinic-editor-field { display:grid; gap:.42rem; min-width:0; }
.clinic-editor-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.clinic-editor-field input,.clinic-editor-field select,.clinic-editor-field textarea { box-sizing:border-box; width:100%; min-height:46px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; outline:0; background:#07101d; color:var(--white); font:inherit; }
.clinic-editor-field textarea { min-height:140px; resize:vertical; }
.clinic-editor-field input:focus,.clinic-editor-field select:focus,.clinic-editor-field textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.clinic-editor-field .errorlist,.clinic-form-errors .errorlist { display:grid; gap:.2rem; margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
.clinic-form-errors { padding:.8rem 1rem; border:1px solid rgba(251,113,133,.45); border-radius:8px; background:rgba(159,58,75,.15); }
.clinic-logo-card .image-crop-uploader { width:100%; justify-items:stretch; gap:.75rem; }
.clinic-logo-card .image-crop-preview { width:100%; height:160px; border:1px dashed rgba(212,175,55,.72); border-radius:9px; background:#07101d; }
.clinic-logo-card .image-crop-preview img { object-fit:contain; }
.clinic-logo-card [data-image-crop-placeholder] { display:grid; justify-items:center; gap:.45rem; color:var(--muted); text-align:center; }
.clinic-logo-card [data-image-crop-placeholder] svg { width:30px; height:30px; color:var(--gold-light); }
.clinic-logo-card [data-image-crop-placeholder] span { max-width:210px; font-size:.9rem; line-height:1.35; }
.clinic-logo-card .image-crop-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
.clinic-logo-card .image-crop-actions .button { min-height:44px; justify-content:center; }
.clinic-logo-card .image-crop-actions .button:first-child { border-color:var(--gold); background:var(--gold); color:#07101d; }
.clinic-logo-card .helptext { margin:0; }
.clinic-active-field { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:.5rem; }
.clinic-active-field input { width:17px; height:17px; margin:0; accent-color:var(--gold); }
.clinic-active-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.clinic-active-field .errorlist,.clinic-active-field small { grid-column:2; }
.clinic-address-card,.clinic-other-card { grid-column:1 / -1; }
.clinic-address-fields { display:grid; grid-template-areas:"cep street street" "number complement district" "city city state"; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,.9fr); gap:1rem; }
.clinic-address-cep { grid-area:cep; }.clinic-address-street { grid-area:street; }.clinic-address-number { grid-area:number; }.clinic-address-complement { grid-area:complement; }.clinic-address-district { grid-area:district; }.clinic-address-city { grid-area:city; }.clinic-address-uf { grid-area:state; }
@media (max-width:780px) { .clinic-editor-grid { grid-template-columns:1fr; } .clinic-address-card,.clinic-other-card { grid-column:auto; } }
@media (max-width:640px) { .clinic-editor { width:min(100% - 32px,1180px); padding-top:16px; } .clinic-editor-card { padding:1.1rem; } .clinic-address-fields { grid-template-areas:"cep" "street" "number" "complement" "district" "city" "state"; grid-template-columns:1fr; } .clinic-logo-card .image-crop-actions { grid-template-columns:1fr; } }
.readonly-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 16px 0 30px; }
.readonly-data div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #07101d; }
.readonly-data dt { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.readonly-data dd { margin: 6px 0 0; color: var(--white); }
.patient-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 18px; }
.patient-card { display: flex; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #0a1323; }
.patient-avatar { display: grid; width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: #07101d; color: var(--muted); }
.patient-card > .patient-avatar { align-self: center; }
.patient-avatar img { width: 100%; height: 100%; object-fit: cover; }
.patient-avatar svg { width: 30px; height: 30px; }
.patient-card-content { min-width: 0; flex: 1; }
.patient-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.patient-card-title a { color: var(--white); text-decoration: none; }
.patient-card-title a:hover { color: var(--gold-light); }
.patient-card-title span:not(.status) { color: var(--muted); font-size: .92em; }
.patient-contact-list { display: grid; gap: 8px; margin-top: 8px; }
.patient-contact-list p { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin: 0; color: var(--muted); }
.patient-contact-list svg { width: 18px; height: 18px; stroke-width: 2; }

/* Listagem de pacientes: usa o hero compartilhado e mantém os dados clínicos compactos. */
.patient-management-header { min-height: 0; }
.patient-management-header .vh-page-hero__breadcrumbs { margin:0; }
.patient-management-header .orientation-page-hero-title p { margin:.4rem 0 0; color:#b7c4d5; }
.patient-new-button { gap:.45rem; white-space:nowrap; }
.patient-management { display:grid; gap:1rem; padding-top:1.5rem; padding-bottom:4.5rem; }
.patient-filter-bar { display:grid; grid-template-columns:minmax(260px,2.4fr) minmax(180px,1.2fr) minmax(140px,1fr) minmax(90px,.6fr) minmax(105px,auto); align-items:end; gap:14px; margin:0; padding:16px; border-radius:10px; }
.patient-filter-bar label { min-width:0; display:grid; grid-template-rows:auto 46px; gap:5px; }
.patient-filter-bar input,.patient-filter-bar select { min-width:0; height:46px; box-sizing:border-box; }
.patient-filter-bar .button { min-height:46px; white-space:nowrap; }
.patient-search-control { position:relative; display:block; min-width:0; color:inherit; font-size:inherit; font-weight:400; text-transform:none; }
.patient-filter-bar .patient-search-control input { padding-left:12px; }
.patient-list-toolbar { margin:0; padding:.15rem 0; }
.patient-export-button { min-height:38px; padding:.5rem .75rem; font-size:.84rem; }
.patient-export-button svg { width:15px; height:15px; }
.patient-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.patient-card { min-height:152px; padding:1rem; border-radius:10px; transition:border-color .18s ease,background .18s ease; }
.patient-card:hover { border-color:rgba(212,175,55,.5); background:#0d192b; }
.patient-avatar { width:78px; height:78px; flex-basis:78px; }
.patient-contact-list { gap:.42rem; margin-top:.65rem; }
.patient-contact-list p { font-size:.9rem; }
.patient-contact-list p:last-child span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.patient-pagination-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding-top:.35rem; color:var(--muted); font-size:.88rem; }
.patient-pagination-footer .pagination { margin:0; }
@media (max-width:1120px) { .patient-filter-bar { grid-template-columns:minmax(220px,2fr) minmax(160px,1fr) minmax(130px,.8fr) auto; } .patient-filter-bar label:nth-of-type(4) { grid-column:3; } .patient-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .patient-filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); } .patient-filter-bar .patient-search-field { grid-column:1 / -1; } .patient-filter-bar .button { grid-column:1 / -1; } }
@media (max-width:560px) { .patient-new-button { width:100%; justify-content:center; } .patient-filter-bar { grid-template-columns:1fr; } .patient-filter-bar .patient-search-field,.patient-filter-bar .button { grid-column:auto; } .patient-card-grid { grid-template-columns:1fr; } .patient-pagination-footer { align-items:flex-start; flex-direction:column; } .patient-pagination-footer .pagination { justify-content:flex-start; } }
.patient-contact-list span { min-width: 0; overflow-wrap: anywhere; }
.patient-chart-identity { display: flex; align-items: center; gap: 16px; }
.patient-chart-header .patient-avatar { width: 121px; height: 121px; flex-basis: 121px; }
.patient-tabs { display: flex; flex-wrap: nowrap; gap: 4px; max-width: 100%; margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--line); overscroll-behavior-x: contain; scrollbar-color: var(--line) transparent; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.patient-tabs a, .patient-tabs span { flex: 0 0 auto; padding: 12px 14px; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; scroll-margin-inline: 16px; }
.patient-tabs a.is-active { color: var(--gold-light); border-bottom: 2px solid var(--gold); }
.patient-tabs span { color: #64748b; }
.professional-form fieldset { margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.professional-form legend { padding: 0 8px; color: var(--white); font-weight: 700; }
.choice-grid ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 0; list-style: none; }
.choice-grid label { display: flex; gap: 8px; align-items: flex-start; color: #cbd5e1; }
.professional-profile-page { width:min(1240px,calc(100% - 48px)); display:grid; gap:1.5rem; margin:0 auto; padding:32px 0 70px; }
.professional-profile-header { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; padding:0 0 1.35rem; border-bottom:1px solid var(--line); }
.professional-profile-header h1 { margin:.7rem 0 0; color:var(--white); font-size:clamp(2rem,4vw,2.75rem); line-height:1.1; }
.professional-profile-header .button { min-height:42px; }
.professional-profile-crumbs { display:flex; flex-wrap:wrap; gap:.5rem; color:var(--muted); font-size:.86rem; }
.professional-profile-crumbs a { color:var(--gold-light); font-weight:700; text-underline-offset:3px; }
.professional-profile-form { display:grid; gap:1.25rem; }
.professional-profile-columns { display:grid; grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr); align-items:stretch; gap:1.25rem; }
.professional-profile-left,.professional-profile-right { display:grid; align-content:start; gap:1.25rem; min-width:0; }
.professional-profile-card { display:grid; gap:1.1rem; padding:1.35rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.professional-profile-card>header { display:flex; align-items:flex-start; gap:.7rem; }
.professional-profile-card>header>i { width:21px; height:21px; flex:0 0 auto; margin-top:.1rem; color:var(--gold); }
.professional-profile-card h2 { margin:0; color:var(--white); font-size:1.15rem; }
.professional-profile-card header p { margin:.22rem 0 0; color:var(--muted); font-size:.84rem; line-height:1.4; }
.professional-photo-body { display:flex; align-items:center; gap:1.15rem; }
.professional-photo-preview { width:144px; height:144px; display:grid; flex:0 0 144px; overflow:hidden; place-items:center; border:1px solid rgba(212,175,55,.55); border-radius:50%; background:#07101d; color:var(--gold-light); }
.professional-photo-preview img { width:100%; height:100%; object-fit:cover; }
.professional-photo-preview svg { width:48px; height:48px; }
.professional-photo-upload { display:grid; gap:.6rem; min-width:0; }
.professional-photo-upload>div:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; }
.professional-photo-upload .button { min-height:40px; padding:.5rem .75rem; }
.professional-photo-upload span { min-width:0; overflow-wrap:anywhere; color:var(--muted); font-size:.82rem; }
.professional-photo-upload small { color:var(--muted); font-size:.78rem; }
.professional-photo-native-input { width:1px; height:1px; overflow:hidden; position:absolute; clip-path:inset(50%); }
.professional-readonly-data { margin:0; gap:.8rem; }
.professional-readonly-data div { min-height:72px; padding:.75rem .85rem; }
.professional-registration-fields { gap:1rem; }
.professional-choice-card .choice-grid ul { margin:0; }
.professional-observations-field { display:grid; gap:.42rem; }
.professional-observations-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.professional-observations-field textarea { width:100%; min-height:130px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; outline:0; resize:vertical; background:#07101d; color:var(--white); }
.professional-observations-field textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.professional-profile-save { width:100%; min-height:50px; gap:.55rem; border-radius:7px; }
.professional-profile-errors { padding:.75rem .9rem; border:1px solid rgba(251,113,133,.45); border-radius:7px; background:rgba(159,58,75,.15); color:#ff9bad; }
.professional-profile-card .errorlist,.professional-profile-errors .errorlist { display:grid; gap:.2rem; margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
@media (max-width:780px) { .professional-profile-columns { grid-template-columns:1fr; } .professional-observations-card,.professional-habilitations-card { height:auto; } .professional-observations-field textarea { flex:initial; } }
@media (max-width:640px) { .professional-profile-page { width:min(100% - 32px,1240px); padding-top:16px; } .professional-profile-header { align-items:flex-start; flex-direction:column; } .professional-photo-body { align-items:flex-start; flex-direction:column; } .professional-photo-preview { width:132px; height:132px; flex-basis:132px; } }
.user-management { width:min(1240px,calc(100% - 48px)); display:grid; gap:1.35rem; margin:0 auto; padding:32px 0 70px; }
.user-management-header { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; padding:0 0 1.35rem; border-bottom:1px solid var(--line); }
.user-management-header h1 { margin:.25rem 0 .45rem; color:var(--white); font-size:clamp(2rem,4vw,2.75rem); }
.user-management-header>div>p:last-child { max-width:670px; margin:0; color:var(--muted); }
.user-management-header .admin-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.65rem; }
.user-management-crumbs { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; color:var(--muted); font-size:.86rem; }
.user-management-crumbs a { color:var(--gold-light); font-weight:700; text-underline-offset:3px; }
.user-management-metrics { margin-bottom:0; }
.user-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.user-metrics article { display:grid; grid-template-columns:auto 1fr; column-gap:.75rem; align-items:center; padding:1.05rem; border:1px solid var(--line); border-radius:11px; background:#091424; }
.user-metrics i { grid-row:1 / span 2; width:26px; height:26px; }
.user-metrics strong { color:var(--white); font-size:1.55rem; line-height:1; }
.user-metrics span { color:var(--muted); font-size:.8rem; }
.metric-total i { color:#79a9e8; }.metric-active i { color:#58c98a; }.metric-blocked i { color:#fb7185; }.metric-pending i { color:var(--gold-light); }
.user-management-content { display:grid; gap:1rem; padding:1.25rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.user-filter-bar { display:grid; grid-template-columns:minmax(240px,1fr) minmax(170px,.38fr) auto auto auto; align-items:center; gap:.75rem; }
.user-filter-bar label { display:flex; align-items:center; min-width:0; border:1px solid #344258; border-radius:7px; background:#07101d; }
.user-filter-bar label i { width:18px; flex:0 0 auto; margin-left:.7rem; color:var(--muted); }
.user-filter-bar input,.user-filter-bar select { width:100%; min-height:44px; border:0; outline:0; background:transparent; color:var(--white); }
.user-filter-bar input { padding:.65rem .7rem; }.user-filter-bar select { padding:.65rem; }
.user-filter-bar label:focus-within { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.user-filter-bar .button { min-height:44px; }.user-filter-bar .export-link { justify-self:end; white-space:nowrap; }
.user-results-toolbar { color:var(--muted); font-size:.85rem; }
.user-card-list { display:grid; gap:.8rem; }
.user-list-card { display:grid; grid-template-columns:minmax(250px,1.3fr) minmax(120px,.62fr) minmax(115px,.58fr) minmax(120px,.6fr) auto; align-items:stretch; overflow:hidden; border:1px solid rgba(148,163,184,.24); border-radius:10px; background:#07101d; transition:border-color .15s ease,background .15s ease; }
.user-list-card:hover { border-color:rgba(212,175,55,.48); background:#0a1728; }
.user-card-identity,.user-card-detail,.user-card-actions { min-width:0; padding:1rem; border-right:1px solid rgba(148,163,184,.18); }
.user-card-identity { display:flex; align-items:center; gap:.75rem; color:var(--white); text-decoration:none; }
.user-card-avatar { width:60px; height:60px; display:grid; flex:0 0 60px; overflow:hidden; place-items:center; border:1px solid rgba(212,175,55,.48); border-radius:50%; color:var(--muted); }
.user-card-avatar img { width:100%; height:100%; object-fit:cover; }.user-card-avatar svg { width:27px; height:27px; }
.user-card-identity span:last-child { min-width:0; display:grid; gap:.25rem; }.user-card-identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.user-card-identity small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.user-card-detail { display:grid; align-content:center; gap:.38rem; }.user-card-detail>span { display:flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.75rem; }.user-card-detail span svg { width:15px; height:15px; color:var(--gold); }.user-card-detail>strong { display:grid; gap:.25rem; color:#dce6f2; font-size:.86rem; }.user-card-detail em { width:fit-content; font-style:normal; white-space:nowrap; }.user-card-detail small { color:#ff9bad; font-size:.68rem; }
.user-card-actions { display:flex; align-items:center; justify-content:center; gap:.45rem; border-right:0; }.user-card-actions form { margin:0; }
.professional-list-card { grid-template-columns:minmax(235px,1.2fr) minmax(105px,.52fr) minmax(180px,.95fr) minmax(125px,.6fr) minmax(105px,.5fr) auto; }.professional-specialties>strong { line-height:1.35; }
@media (max-width:960px) { .user-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .user-filter-bar { grid-template-columns:1fr 1fr auto; } .user-filter-bar .clear-filter,.user-filter-bar .export-link { justify-self:start; } .user-list-card { grid-template-columns:minmax(230px,1.2fr) minmax(115px,.7fr) minmax(115px,.7fr); } .user-card-detail:nth-of-type(3) { border-right:0; } .user-card-actions { grid-column:1 / -1; justify-content:flex-end; border-top:1px solid rgba(148,163,184,.18); } }
@media (max-width:960px) { .professional-list-card { grid-template-columns:minmax(220px,1.15fr) minmax(110px,.62fr) minmax(170px,.9fr); }.professional-list-card .user-card-detail:nth-of-type(3) { border-right:0; }.professional-list-card .user-card-detail:nth-of-type(4),.professional-list-card .user-card-detail:nth-of-type(5) { border-top:1px solid rgba(148,163,184,.18); }.professional-list-card .user-card-detail:nth-of-type(5) { border-right:0; } }
@media (max-width:640px) { .user-management { width:min(100% - 32px,1240px); padding-top:16px; } .user-management-header { align-items:flex-start; flex-direction:column; }.user-management-header .admin-actions { justify-content:flex-start; } .user-metrics { grid-template-columns:1fr; }.user-management-content { padding:1rem; }.user-filter-bar { grid-template-columns:1fr; }.user-filter-bar .export-link { justify-self:start; }.user-list-card { grid-template-columns:1fr; }.user-card-identity,.user-card-detail { border-right:0; border-bottom:1px solid rgba(148,163,184,.18); }.user-card-actions { grid-column:auto; border-top:0; }.user-card-identity { padding-bottom:.9rem; } }
.blocked-professional { max-width: 680px; }
.site-image-field-treatment img { width: 360px; aspect-ratio: 16 / 10; border-radius: 10px; }
.site-image-field-dentist img { width: 190px; aspect-ratio: 1; border-radius: 50%; }
.treatment-editor{width:min(1120px,calc(100% - 48px));display:grid;gap:1.2rem;margin:0 auto;padding:24px 0 60px}.treatment-editor-hero .orientation-page-hero-title p{margin:.4rem 0 0;color:#b7c4d5}.treatment-editor-form,.treatment-editor-layout,.treatment-data-fields{display:grid;gap:1.25rem}.treatment-editor-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.treatment-editor-card{display:grid;align-content:start;gap:1rem;padding:1.5rem;border:1px solid var(--line);border-radius:12px;background:#091424}.treatment-editor-card header{display:flex;gap:.7rem}.treatment-editor-card header>i{width:21px;color:var(--gold)}.treatment-editor-card h2,.treatment-editor-card p{margin:0}.treatment-editor-card h2{color:var(--white)}.treatment-editor-card p,.treatment-editor-card small,.treatment-preview span{color:var(--muted);font-size:.85rem}.treatment-upload-zone{display:grid;justify-items:center;gap:.4rem;padding:1.5rem;border:1px dashed #52627a;border-radius:9px;cursor:pointer}.treatment-editor-card input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.treatment-preview{display:grid;gap:.6rem}.treatment-preview img{width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--line);border-radius:9px}.treatment-preview span{display:grid;min-height:150px;place-items:center;border:1px solid var(--line);border-radius:9px}.treatment-tip{padding:.8rem;border:1px solid rgba(212,175,55,.25);border-radius:8px;background:rgba(212,175,55,.05)}.treatment-data-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.treatment-field{display:grid;grid-column:1/-1;gap:.4rem}.treatment-field.compact{grid-column:auto}.treatment-field label{color:#e2e8f0;font-weight:700}.treatment-field input,.treatment-field textarea{box-sizing:border-box;width:100%;min-height:44px;padding:.7rem .8rem;border:1px solid #344258;border-radius:7px;background:#07101d;color:var(--white)}.treatment-field textarea{min-height:88px}.treatment-field input:focus,.treatment-field textarea:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.18)}.treatment-field input[type=checkbox]{width:auto;min-height:auto}@media(max-width:720px){.treatment-editor-layout,.treatment-data-fields{grid-template-columns:1fr}.treatment-field.compact{grid-column:1}}@media(max-width:640px){.treatment-editor{width:min(100% - 32px,1120px);padding-top:16px}.treatment-editor-card{padding:1.1rem}}
/* Formulário editorial: uma única submissão organizada em abas. */
.article-editor{width:min(1240px,calc(100% - 48px));display:grid;gap:1.2rem;margin:0 auto;padding:24px 0 60px}.article-editor-hero{width:auto}.article-editor-hero .orientation-page-hero-side{align-items:center}.article-editor-hero .admin-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}.article-editor-form{display:grid;gap:1.2rem}.article-tabs{display:flex;align-items:stretch;gap:.35rem;padding:.4rem;border:1px solid var(--line);border-radius:12px;background:#091424}.article-tab{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:46px;padding:.7rem 1rem;border:0;border-bottom:2px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-weight:700;cursor:pointer}.article-tab:hover,.article-tab:focus-visible{color:var(--white);background:rgba(255,255,255,.04);outline:0}.article-tab.is-active{color:var(--gold-light);border-bottom-color:var(--gold);background:rgba(212,175,55,.08)}.article-tab[data-has-errors=true]::after{width:7px;height:7px;border-radius:50%;background:#ef6b6b;content:""}.article-tab i{width:18px;height:18px}.article-form-errors{padding:.85rem 1rem;border:1px solid rgba(239,107,107,.6);border-radius:9px;background:rgba(239,107,107,.08);color:#ffd1d1}.article-content-layout,.article-publication-layout,.article-seo-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);align-items:stretch;gap:1.2rem}.article-media-layout{display:grid;grid-template-columns:minmax(0,.7fr);gap:1.2rem}.article-editor-card{display:grid;align-content:start;gap:1rem;padding:1.5rem;border:1px solid var(--line);border-radius:12px;background:#091424}.article-editor-card>header{display:flex;gap:.7rem}.article-editor-card>header>i{width:21px;color:var(--gold)}.article-editor-card h2,.article-editor-card p{margin:0}.article-editor-card h2{color:var(--white);font-size:1.15rem}.article-editor-card p,.article-editor-card small,.article-field small,.article-preview span{color:var(--muted);font-size:.82rem;line-height:1.4}.article-fields{display:grid;gap:1rem}.article-field{display:grid;gap:.42rem}.article-field label{color:#e2e8f0;font-weight:700}.article-field input,.article-field select,.article-field textarea{box-sizing:border-box;width:100%;min-height:44px;padding:.7rem .8rem;border:1px solid #344258;border-radius:7px;background:#07101d;color:var(--white)}.article-field textarea{min-height:88px;resize:vertical}.article-field input:focus,.article-field select:focus,.article-field textarea:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.18)}.article-editor-content-card{min-height:640px}.article-tinymce-field{min-height:0}.article-tinymce-field .tox-tinymce{width:100%!important;min-height:500px}.article-upload-zone{display:grid;justify-items:center;gap:.45rem;padding:1.5rem;border:1px dashed #52627a;border-radius:9px;color:var(--white);cursor:pointer;text-align:center}.article-upload-zone>i{width:24px;height:24px;color:var(--gold)}.article-upload-zone small{color:var(--muted)}.article-file-input{display:grid;gap:.4rem}.article-file-input input[type=file]{max-width:100%;color:var(--muted)}.article-preview{display:grid;gap:.6rem}.article-preview img,.article-preview span{width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--line);border-radius:9px}.article-preview span{display:grid;place-items:center}.article-tip{display:flex;gap:.6rem;padding:.8rem;border:1px solid rgba(212,175,55,.25);border-radius:8px;background:rgba(212,175,55,.05);color:var(--muted);font-size:.85rem}.article-tip i{width:18px;flex:0 0 18px;color:var(--gold)}.article-tip strong{display:block;color:var(--gold-light);margin-bottom:.18rem}.article-check-field{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.45rem}.article-check-field small,.article-check-field .errorlist{grid-column:2}.article-check-field input{width:16px;height:16px;accent-color:var(--gold)}
@media(max-width:820px){.article-editor{width:min(100% - 32px,1240px)}.article-content-layout,.article-publication-layout,.article-seo-layout{grid-template-columns:1fr}.article-editor-content-card{min-height:0}.article-tinymce-field .tox-tinymce{min-height:420px}.article-tabs{overflow-x:auto}.article-tab{flex:0 0 auto}}
@media(max-width:640px){.article-editor{padding-top:16px}.article-editor-card{padding:1.1rem}.article-tabs{gap:.2rem;padding:.25rem}.article-tab{min-height:42px;padding:.6rem .7rem;font-size:.82rem}.article-tab i{display:none}.article-media-layout{grid-template-columns:1fr}.article-tinymce-field .tox-tinymce{min-height:340px}.article-editor-hero .admin-actions{width:100%}.article-editor-hero .button{flex:1;justify-content:center}}
/* Ajustes de densidade para a aba Mídia do editor de artigos. */
.article-tabs { justify-content: center; }
.article-media-layout { grid-template-columns: minmax(0, 1fr); width: 100%; }
.article-media-layout > .article-editor-card { width: 100%; box-sizing: border-box; }
.article-media-layout .article-upload-zone { min-height: 140px; box-sizing: border-box; }
.article-media-layout .article-preview img,
.article-media-layout .article-preview span { height: clamp(260px, 26vw, 360px); aspect-ratio: auto; }
.article-preview [hidden] { display: none; }
@media (max-width: 820px) { .article-tabs { justify-content: flex-start; } .article-media-layout .article-preview img,.article-media-layout .article-preview span { height: clamp(220px, 48vw, 320px); } }
@media (max-width: 640px) { .article-media-layout .article-upload-zone { min-height: 130px; } .article-media-layout .article-preview img,.article-media-layout .article-preview span { height: min(58vw, 280px); } }
.content-table-avatar { width: 52px; height: 52px; display: grid; place-items: center; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; background: #07101d; }
.content-table-avatar svg { width: 24px; height: 24px; color: var(--muted); }
.service-image-fallback, .dentist-photo-fallback { color: var(--gold-light); }
.service-image-fallback { width: 52px; height: 52px; }
.dentist-photo-fallback { width: 72px; height: 72px; }
.dentist-card-photo.is-empty { display: grid; place-items: center; }
.admin-tabs { width: min(var(--max), calc(100% - 48px)); display: flex; align-items: center; gap: 14px; margin: 0 auto; overflow-x: auto; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 18px 2px 14px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; white-space: nowrap; }
.admin-tabs a.active, .admin-tabs a:hover { border-color: var(--gold); color: var(--gold-light); }
.admin-tab-separator { color: var(--line); user-select: none; }
.new-content-menu { position: relative; }.new-content-menu summary { list-style: none; cursor: pointer; }.new-content-menu > div { position: absolute; right: 0; z-index: 10; min-width: 190px; display: grid; padding: 8px; border: 1px solid var(--line); background: #111d30; box-shadow: 0 14px 30px #0008; }.new-content-menu a { padding: 10px; color: var(--white); text-decoration: none; }
.cms-dashboard { display: grid; gap: 36px; }.cms-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }.cms-metrics article { min-height: 148px; display: grid; align-content: start; gap: 9px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #0a1323; }.cms-metrics span, .analytics-summary span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }.cms-metrics strong, .analytics-summary strong { color: var(--white); font-family: "Cinzel", Georgia, serif; font-size: 30px; }.cms-metrics small, .analytics-summary small { color: #9fb0c5; }
.analytics-card { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #0a1323; }.analytics-card header { display: flex; justify-content: space-between; gap: 16px; }.analytics-card h2 { margin: 0; }.analytics-card select { min-height: 42px; padding: 8px 12px; border: 1px solid #344258; background: #07101d; color: var(--white); }.analytics-layout { display: grid; grid-template-columns: 1fr 220px; gap: 32px; margin-top: 24px; }.analytics-layout canvas { width: 100%; height: 300px; }.analytics-summary { display: grid; gap: 22px; padding-left: 24px; border-left: 1px solid var(--line); }.analytics-summary div { display: grid; gap: 4px; }
.data-table td small { display: block; margin-top: 4px; color: var(--muted); }.content-type { color: var(--gold-light); }.metric-grid-four { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 28px; }.audit-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }.audit-details div { padding: 18px; background: #0a1323; }.audit-details dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }.audit-details dd { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--white); }
.contact-message-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0a1323; }
.contact-message-detail > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.contact-message-detail > header div { display: grid; gap: 3px; }
.contact-message-detail > header div span, .contact-message-body > span, .contact-message-detail dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.contact-message-detail dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.contact-message-detail dl div { padding: 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-message-detail dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--white); }
.contact-message-body { padding: 24px; }
.contact-message-body p { margin: 8px 0 0; color: #d8e2ed; text-align: left; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border: 1px solid #344258; border-bottom: 0; background: #111d30; }
.editor-toolbar button, .editor-toolbar select, .editor-toolbar input { min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); background: #07101d; color: var(--white); cursor: pointer; }
.editor-toolbar input[type="color"] { width: 42px; padding: 3px; }
.article-content .text-left, .visual-editor .text-left { text-align: left; }
.article-content .text-center, .visual-editor .text-center { text-align: center; }
.article-content .text-right, .visual-editor .text-right { text-align: right; }
.article-content .text-justify, .visual-editor .text-justify { text-align: justify; }
.article-content .text-default, .visual-editor .text-default { color: #e2e8f0; }
.article-content .text-gold, .visual-editor .text-gold { color: var(--gold-light); }
.article-content .text-muted, .visual-editor .text-muted { color: var(--muted); }
.article-content .text-green, .visual-editor .text-green { color: #58b99f; }
.article-content .text-small, .visual-editor .text-small { font-size: .85em; }
.article-content .text-normal, .visual-editor .text-normal { font-size: 1em; }
.article-content .text-large, .visual-editor .text-large { font-size: 1.35em; }
.article-content .text-xlarge, .visual-editor .text-xlarge { font-size: 1.65em; }
.visual-editor { min-height: 420px; padding: 24px; border: 1px solid #344258; background: #07101d; color: var(--white); outline: 0; overflow-wrap: anywhere; }
.visual-editor:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.save-row { display: flex; align-items: center; gap: 16px; }
.autosave-state { color: var(--muted); }
.revision-list { display: grid; gap: 12px; }
.revision-list details { border: 1px solid var(--line); background: #0a1323; }
.revision-list summary { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px; cursor: pointer; }
.revision-list details > div { padding: 0 22px 22px; border-top: 1px solid var(--line); }

.legal-page { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0 110px; }
.legal-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-header h1 { margin: 0; color: var(--white); font-size: clamp(42px, 7vw, 68px); line-height: 1.04; }
.legal-updated { margin: 20px 0 0; color: var(--muted); font-size: 14px; text-align: left; }
.legal-content { padding-top: 12px; color: #d4deeb; font-size: 17px; }
.legal-content section { padding: 42px 0 2px; }
.legal-content h2 { margin: 0 0 18px; color: var(--white); font-size: clamp(24px, 3vw, 31px); line-height: 1.25; }
.legal-content p, .legal-content li { text-align: left; }
.legal-content p { margin: 0 0 16px; }
.legal-content a { color: var(--gold-light); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-address { padding: 22px; border-left: 2px solid var(--gold); background: var(--navy-soft); color: #dce5f1; font-style: normal; line-height: 1.7; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table { width: 100%; border-collapse: collapse; text-align: left; }
.legal-table th, .legal-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { color: var(--gold-light); font-size: 12px; text-transform: uppercase; }
.legal-table td { min-width: 140px; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table code { color: var(--white); }
.message-list p { color: #cbd5e1; }
.success-page .button { align-self: flex-start; margin-top: 28px; }

.site-footer { border-top: 1px solid var(--line); background: #01040d; text-align: left; }
.footer-container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.footer-main { padding: 64px 0 56px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 45fr) minmax(0, 27fr); gap: 48px; align-items: start; }
.footer-brand strong { display: block; color: var(--gold-light); font-family: "Cinzel", Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.site-footer p { max-width: 240px; margin: 18px 0 0; color: var(--muted); line-height: 1.65; text-align: left; }
.footer-heading { margin: 0 0 20px; color: var(--gold-light); font-size: 12px; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.footer-legal { display: grid; gap: 22px; margin: 0; }
.footer-legal div { display: grid; gap: 4px; }
.footer-legal dt { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.footer-legal dd { margin: 0; color: #e2e8f0; font-size: 15px; line-height: 1.55; }
.footer-links { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; color: #cbd5e1; text-decoration: none; transition: color 160ms ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-light); }
.footer-bottom { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.footer-bottom small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 1100px) {
  .content-filter-bar, .access-log-filter, .filter-bar-wide, .content-management-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-management-filter label:first-child { grid-column: 1 / -1; }
  .filter-bar > *, .filter-bar-wide > * { min-width: 0; max-width: 100%; }
  .data-table th, .data-table td { padding-inline: .65rem; }
  .content-filter-bar label:first-child, .access-log-filter label:first-child { grid-column: 1 / -1; }
  .treatment-grid { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
  .treatment-grid > .service-card, .treatment-grid > .service-card:nth-child(4), .treatment-grid > .service-card:nth-child(5) { grid-column: auto; }
  .treatment-grid > .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: min(420px, 100%); justify-self: center; }
  .content-carousel .treatment-grid > .service-card,
  .content-carousel .treatment-grid > .service-card:nth-child(4),
  .content-carousel .treatment-grid > .service-card:nth-child(5),
  .content-carousel .treatment-grid > .service-card:last-child:nth-child(odd),
  .content-carousel .dentist-cards > .dentist-card { width: auto; flex-basis: calc((100% - 16px) / 2); }
  .footer-grid { grid-template-columns: minmax(210px, 28fr) minmax(0, 72fr); }
  .footer-navigation { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .user-greeting { display: none; }
  .account-admin-layout { grid-template-columns: 1fr; }
  .content-filter-bar, .access-log-filter, .content-management-filter { grid-template-columns: 1fr; }
  .content-filter-bar label:first-child, .access-log-filter label:first-child { grid-column: auto; }
  .table-footer-controls { align-items: stretch; flex-direction: column; }
  .per-page-form { justify-content: space-between; margin-left: 0; }
  .contact-message-detail dl { grid-template-columns: 1fr; }
  .notification-dropdown { position: fixed; top: 70px; right: 16px; }
  .cms-metrics, .metric-grid-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-layout, .audit-details { grid-template-columns: 1fr; }
  .analytics-summary { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .site-header { padding-inline: 20px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; place-items: center; }
  .main-nav { position: absolute; top: 72px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px 20px 22px; background: #020617; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 6px; }
  .main-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: 760px; align-items: end; background-position: 64% center; }
  .hero::after { inset: 42% 0 0; background: rgba(2,6,23,.84); }
  .hero-content { margin: 0; padding: 260px 24px 56px; }
  .hero h1 { font-size: 50px; }
  .intro-band, .feature-band, .two-column, .contact-layout, .admin-layout, .implant-topic, .implant-prf-layout, .implant-options-layout, .sedation-intro, .endodontics-intro, .prosthesis-intro, .dental-care-intro { grid-template-columns: 1fr; gap: 36px; }
  .implant-topic { align-items: start; }
  .sedation-intro, .endodontics-intro, .prosthesis-intro, .dental-care-intro { align-items: start; }
  .implant-options { grid-template-columns: 1fr; }
  .values-band { grid-template-columns: 1fr; }
  .about-hero { min-height: 680px; }
  .about-hero-copy, .care-principles, .dentist-cards, .commitment-band { grid-template-columns: 1fr; }
  .about-hero-copy { gap: 16px; }
  .care-section { padding: 62px 16px; }
  .care-principles { margin-top: 38px; }
  .care-principles article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .care-principles article:last-child { border-bottom: 0; }
  .principle-icon { margin: 24px auto 18px; }
  .dentist-cards { gap: 16px; }
  .dentist-card-photo { aspect-ratio: 4 / 5; }
  .dentist-card-photo img { object-position: center top; }
  .dentist-card-copy { padding: 26px; }
  .dentist-card-copy h2 { font-size: 28px; }
  .commitment-band { gap: 28px; padding: 62px 24px; }
  .values-band div { min-height: 130px; padding: 28px 24px; }
  .inline-heading, .admin-header { align-items: flex-start; flex-direction: column; }
  .article-row { grid-template-columns: 1fr 28px; }
  .article-row span:first-child { grid-column: 1 / -1; }
  .page-hero { min-height: 400px; }
  .contact-hero { min-height: 300px; padding-top: 46px; padding-bottom: 46px; }
  .page-hero h1 { font-size: 44px; }
  .section { width: min(100% - 32px, var(--max)); padding: 62px 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article > div { padding: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field-wide { grid-column: auto; }
  .readonly-data, .choice-grid ul { grid-template-columns: 1fr; }
  .patient-chart-header, .patient-chart-identity { align-items: flex-start; }
  .patient-chart-header { gap: 18px; }
}

@media (max-width: 640px) {
  .internal-main-menu span { display: none; }
  .cms-metrics, .metric-grid-four { grid-template-columns: 1fr; }
  .treatment-grid { grid-template-columns: minmax(0, 430px); }
  .treatment-grid > .service-card, .treatment-grid > .service-card:last-child:nth-child(odd) { grid-column: auto; width: auto; }
  .content-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; }
  .carousel-button { width: 38px; height: 38px; }
  .content-carousel .treatment-grid > .service-card,
  .content-carousel .treatment-grid > .service-card:nth-child(4),
  .content-carousel .treatment-grid > .service-card:nth-child(5),
  .content-carousel .treatment-grid > .service-card:last-child:nth-child(odd),
  .content-carousel .dentist-cards > .dentist-card { flex-basis: 100%; }
  .implant-prf { padding: 62px 24px; }
  .sedation-source { width: min(100% - 32px, var(--max)); padding-bottom: 62px; }
  .footer-container { width: min(var(--max), calc(100% - 32px)); }
  .footer-main { padding: 48px 0 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-navigation { grid-column: auto; }
  .footer-bottom { padding: 18px 0 20px; }
  .contact-form { padding: 22px 18px; }
  .legal-page { width: min(100% - 32px, 860px); padding: 64px 0 78px; }
  .legal-header { padding-bottom: 30px; }
  .legal-content { font-size: 16px; }
  .legal-content section { padding-top: 34px; }
  .legal-table th, .legal-table td { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-viewport { scroll-behavior: auto; }
  .service-card, .service-image, .cta-arrow, .footer-links a, .carousel-button { transition: none; }
}

/* Keep the internal dashboard compact without crowding its sections. */
.cms-dashboard { padding-top: 24px; padding-bottom: 60px; gap: 24px; }
.cms-dashboard .inline-heading { margin: 0; }
.cms-dashboard .filter-bar { margin: 0; }
.cms-dashboard .list-toolbar { margin: 0; }
.dashboard-welcome { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1.5rem; min-height: 124px; padding: 1.25rem 2rem; }
.dashboard-welcome > div, .dashboard-welcome time { position: relative; z-index: 1; }
.dashboard-welcome h1 { margin: 0; color: var(--white); font-size: clamp(1.7rem, 3vw, 2.35rem); }
.dashboard-welcome p { max-width: 640px; margin: .55rem 0 0; color: #b7c4d5; }
.dashboard-welcome time { display: grid; justify-self: end; gap: .3rem; min-width: 190px; padding-left: 1.5rem; border-left: 1px solid rgba(212,175,55,.35); color: #cbd5e1; font-size: .92rem; text-align: right; }
.dashboard-welcome time strong { color: var(--gold-light); font-size: 1rem; }
.dashboard-insights { display:grid; gap:24px; }
.dashboard-metrics article { min-height: 124px; }
.dashboard-metrics article > div { align-content: center; }
.dashboard-metrics article > div > small { color: #9fb0c5; font-size: .78rem; line-height: 1.3; }
.dashboard-metrics article > div > a { color: var(--gold-light); font-size: .82rem; text-decoration: none; }
.dashboard-metrics article > div > a:hover, .dashboard-metrics article > div > a:focus-visible { text-decoration: underline; }
.analytics-card { padding: 1.35rem; }
.analytics-card header { align-items: center; }
.analytics-summary { gap: 1rem; padding-left: 1.35rem; }
.analytics-summary h3 { margin: 0 0 .2rem; color: var(--white); font-size: 1rem; }
.analytics-summary div { padding-bottom: .85rem; border-bottom: 1px solid rgba(148,163,184,.16); }
.analytics-summary div:last-child { padding-bottom: 0; border-bottom: 0; }
.dashboard-content { display: grid; gap: 1rem; min-width: 0; }
.dashboard-content .inline-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard-content .inline-heading h2 { margin: 0; }
.dashboard-content .inline-heading > a { color: var(--gold-light); font-size: .9rem; text-decoration: none; }
.dashboard-content .inline-heading > a:hover, .dashboard-content .inline-heading > a:focus-visible { text-decoration: underline; }
.dashboard-content-filter { padding: .85rem; border: 1px solid var(--line); border-radius: 10px; background: #081321; }
.dashboard-content-filter input, .dashboard-content-filter select { background: #07101d; color: var(--white); }
.dashboard-content-filter input::placeholder { color: #7f8ea3; }
.dashboard-content-filter input:focus, .dashboard-content-filter select:focus, .analytics-card select:focus { border-color: var(--gold); outline: 2px solid rgba(212,175,55,.18); }
@media (max-width: 820px) { .dashboard-welcome { display:flex; align-items: flex-start; flex-direction: column; } .dashboard-welcome time { justify-self:auto; padding-top: .8rem; padding-left: 0; border-top: 1px solid rgba(212,175,55,.35); border-left: 0; text-align: left; } }
@media (max-width: 640px) { .cms-dashboard { padding-top: 16px; } .dashboard-welcome { min-height: 0; padding: 1.3rem; } .dashboard-metrics article { min-height: 0; } .analytics-card { padding: 1rem; } .analytics-card header { align-items: flex-start; flex-direction: column; } .analytics-card select { width: 100%; } }

/* Gestão de orientações: destaque e indicadores sem alterar os fluxos existentes. */
.orientation-management { display:grid; gap:1rem; padding-top:24px; padding-bottom:60px; }
.orientation-welcome { position:relative; display:flex; align-items:center; justify-content:space-between; gap:2rem; min-height:132px; padding:1.5rem 1.8rem; overflow:hidden; border:1px solid #40506a; border-radius:14px; background:linear-gradient(115deg,#0a1930 0%,#101c31 58%,#17213a 100%); }
.orientation-welcome-main,.orientation-welcome-aside { position:relative; z-index:1; }
.orientation-welcome-main { display:flex; align-items:center; gap:1rem; }
.orientation-welcome-main>i { width:42px; height:42px; padding:.8rem; border:1px solid rgba(244,214,107,.48); border-radius:12px; color:var(--gold-light); background:rgba(7,16,29,.45); }
.orientation-welcome h2 { margin:0; color:var(--white); font-size:clamp(1.45rem,2.7vw,2rem); }
.orientation-welcome p { margin:.4rem 0 0; color:#b7c4d5; }
.orientation-welcome-aside { min-width:190px; padding-left:1.5rem; border-left:1px solid rgba(212,175,55,.35); color:var(--gold-light)!important; font-size:.95rem; font-weight:700; line-height:1.5; text-align:right; }
.orientation-management-filter { grid-template-columns:minmax(0,2.2fr) repeat(2,minmax(0,1fr)) minmax(90px,.65fr) auto; margin:0; padding:.85rem; border-radius:10px; background:#081321; }
.orientation-management-filter input,.orientation-management-filter select { background:#07101d; color:var(--white); }
.orientation-management-filter input::placeholder { color:#7f8ea3; }
.orientation-management-filter input:focus,.orientation-management-filter select:focus { border-color:var(--gold); outline:2px solid rgba(212,175,55,.18); }
.orientation-management .list-toolbar { margin:0; }
.orientation-table th,.orientation-table td { text-align:center; vertical-align:middle; }
.orientation-table .long-text-cell { text-align:left; }
.orientation-table .orientation-title-heading { text-align:left; }
.orientation-date { white-space:nowrap; }
.orientation-date span,.orientation-date small { display:block; }
.orientation-date small { margin-top:.18rem; color:var(--muted); }
.orientation-pagination-summary { color:var(--muted); font-size:.88rem; text-align:center; }
.orientation-management>.pagination { margin-top:0; }
@media (max-width:820px) { .orientation-management-filter { grid-template-columns:repeat(2,minmax(0,1fr)); } .orientation-management-filter label:first-child { grid-column:1 / -1; } }
@media (max-width:640px) { .orientation-management { padding-top:16px; } .orientation-welcome { align-items:flex-start; flex-direction:column; min-height:0; padding:1.25rem; } .orientation-welcome-aside { min-width:0; padding-top:.8rem; padding-left:0; border-top:1px solid rgba(212,175,55,.35); border-left:0; text-align:left; } .orientation-management-filter { grid-template-columns:1fr; } .orientation-management-filter label:first-child { grid-column:auto; } }

/* Gestão do Blog: mantém os fluxos editoriais e destaca os artigos. */
.blog-management { width:min(var(--max),calc(100% - 48px)); display:grid; gap:1.15rem; margin:0 auto; padding:24px 0 60px; }
.blog-category-new svg { width:16px; height:16px; }
.blog-management-layout { display:grid; grid-template-columns:minmax(190px,.23fr) minmax(0,1fr); gap:1rem; align-items:start; }
.blog-category-sidebar,.blog-management-content { border:1px solid var(--line); border-radius:12px; background:#091424; }
.blog-category-sidebar { display:grid; gap:1rem; padding:1.1rem; }
.blog-category-sidebar h2 { margin:0; color:var(--white); font-size:1.12rem; }
.blog-category-list { display:grid; gap:.35rem; }
.blog-category-list a { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.65rem; min-height:38px; padding:.55rem .6rem; border:1px solid transparent; border-radius:7px; color:#cbd5e1; font-size:.9rem; text-decoration:none; }
.blog-category-list a:hover,.blog-category-list a:focus-visible { border-color:rgba(212,175,55,.42); background:rgba(255,255,255,.035); }
.blog-category-list a.is-active { border-color:rgba(212,175,55,.5); background:rgba(212,175,55,.13); color:var(--white); }
.blog-category-list i { width:16px; height:16px; color:var(--gold); }
.blog-category-list span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.blog-category-list small { color:var(--muted); font-size:.75rem; }
.blog-category-new { width:100%; min-height:40px; gap:.45rem; font-size:.86rem; }
.blog-management-content { display:grid; gap:1rem; min-width:0; padding:1rem; }
.blog-management-filter { grid-template-columns:minmax(190px,2.2fr) repeat(3,minmax(100px,1fr)) auto; margin:0; padding:0; background:transparent; }
.blog-management-filter input,.blog-management-filter select { background:#07101d; color:var(--white); }
.blog-management-filter input::placeholder { color:#7f8ea3; }
.blog-management-filter input:focus,.blog-management-filter select:focus { border-color:var(--gold); outline:2px solid rgba(212,175,55,.18); }
.blog-management-filter .button { min-height:42px; align-self:end; }
.blog-results-toolbar { margin:0; padding-bottom:.1rem; border-bottom:1px solid rgba(148,163,184,.16); }
.blog-article-cards { display:grid; gap:.8rem; }
.blog-management-card { position:relative; display:grid; grid-template-columns:152px minmax(0,1fr) minmax(185px,.42fr) auto; gap:1rem; align-items:center; min-height:152px; padding:1rem; border:1px solid rgba(148,163,184,.2); border-radius:10px; background:#07101d; }
.blog-management-cover { width:152px; height:112px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(148,163,184,.25); border-radius:8px; background:#0e1b30; color:var(--muted); }
.blog-management-cover img { width:100%; height:100%; object-fit:cover; }
.blog-management-cover i { width:26px; height:26px; color:var(--gold); }
.blog-management-cover span { font-size:.72rem; }
.blog-management-card-copy { min-width:0; }
.blog-management-card-copy>a { color:var(--white); text-decoration:none; }
.blog-management-card-copy h2 { display:-webkit-box; margin:0; overflow:hidden; color:var(--white); font-size:1.06rem; line-height:1.3; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.blog-management-card-copy>a:hover h2,.blog-management-card-copy>a:focus-visible h2 { color:var(--gold-light); }
.blog-management-card-copy p { display:-webkit-box; margin:.5rem 0 .65rem; overflow:hidden; color:#aebbd0; font-size:.87rem; line-height:1.45; text-align:left; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.blog-category-badge { display:inline-flex; padding:.2rem .55rem; border:1px solid rgba(95,128,170,.4); border-radius:999px; background:#10243d; color:#c6d9f1; font-size:.73rem; }
.blog-management-card-meta { display:grid; justify-items:start; gap:.7rem; align-self:stretch; padding-left:1rem; border-left:1px solid rgba(148,163,184,.18); }
.blog-management-card-meta .status { align-self:start; }
.blog-management-card-meta dl { display:grid; gap:.65rem; margin:0; }
.blog-management-card-meta dt { display:flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.7rem; }
.blog-management-card-meta dt i { width:13px; height:13px; color:var(--gold); }
.blog-management-card-meta dd { margin:.12rem 0 0; color:#dce6f2; font-size:.78rem; }
.blog-management-card-actions { position:absolute; top:.7rem; right:.7rem; display:flex; gap:.35rem; }
.blog-management-card-actions form { margin:0; }
.blog-pagination-summary { color:var(--muted); font-size:.82rem; text-align:left; }
.blog-management-content>.pagination { margin:0; justify-content:flex-end; }
@media (max-width:1050px) { .blog-management-filter { grid-template-columns:repeat(2,minmax(0,1fr)); } .blog-management-filter label:first-child { grid-column:1 / -1; } .blog-management-card { grid-template-columns:130px minmax(0,1fr) minmax(165px,.42fr); } .blog-management-cover { width:130px; height:100px; } }
@media (max-width:820px) { .blog-management-layout { grid-template-columns:1fr; } .blog-category-sidebar { grid-template-columns:1fr auto; } .blog-category-sidebar h2,.blog-category-list { grid-column:1 / -1; } .blog-category-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .blog-category-new { width:auto; grid-column:1 / -1; } }
@media (max-width:640px) { .blog-management { width:min(100% - 32px,var(--max)); padding-top:16px; } .blog-management-filter { grid-template-columns:1fr; } .blog-management-filter label:first-child { grid-column:auto; } .blog-category-list { grid-template-columns:1fr; } .blog-management-card { grid-template-columns:1fr; padding-top:2.8rem; } .blog-management-cover { width:100%; height:auto; aspect-ratio:16 / 8; } .blog-management-card-meta { grid-template-columns:auto 1fr; justify-items:start; padding-top:.85rem; padding-left:0; border-top:1px solid rgba(148,163,184,.18); border-left:0; } .blog-management-card-meta dl { grid-template-columns:repeat(2,minmax(0,1fr)); } .blog-management-content>.pagination { justify-content:center; } }

/* Shared internal page hero — Modelo 5: Ondas Suaves. */
.vh-page-hero {
  position: relative;
  isolation: isolate;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(120,150,180,.3);
  border-radius: 16px;
  background: linear-gradient(135deg,#071826 0%,#0a2033 45%,#0d2a3f 100%);
}
.admin-header.vh-page-hero { align-items:center; margin-top:24px; padding:28px 32px; border-bottom-color:rgba(120,150,180,.3); }
.user-management-header.vh-page-hero,.professional-profile-header.vh-page-hero { align-items:center; padding:28px 32px; }
.vh-page-hero > :not(.vh-page-hero__waves) { position:relative; z-index:2; }
.vh-page-hero__waves { position:absolute; z-index:0; inset:0; overflow:hidden; pointer-events:none; -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 24%,#000 48%,#000 91%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 24%,#000 48%,#000 91%,transparent 100%); }
.vh-page-hero__waves svg { width:100%; height:100%; display:block; }
.vh-page-hero__glow { position:absolute; left:60%; top:53%; width:78px; height:78px; border-radius:50%; background:radial-gradient(circle,rgba(255,214,118,.4) 0%,rgba(212,175,55,.18) 32%,rgba(212,175,55,0) 72%); transform:translate(-50%,-50%); }
.vh-page-hero__wave { fill:none; vector-effect:non-scaling-stroke; }
.vh-page-hero__wave--gold { stroke:url(#vh-wave-gold); stroke-width:1.8; filter:drop-shadow(0 0 5px rgba(212,175,55,.35)); }
.vh-page-hero__wave--soft { stroke:url(#vh-wave-soft); stroke-width:1.1; }
.vh-page-hero__wave--upper { stroke:rgba(255,255,255,.065); stroke-width:.9; }
.vh-page-hero__wave--lower { stroke:rgba(77,111,140,.22); stroke-width:1.15; }
.vh-page-hero__breadcrumbs { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem; margin:0 0 1rem; color:#aebbd0; font-size:.85rem; }
.vh-page-hero__breadcrumbs a { color:var(--gold-light); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.vh-page-hero__breadcrumbs [aria-current="page"] { color:#aebbd0; }
.orientation-page-hero .orientation-welcome-main { min-width:0; }
.orientation-page-hero .orientation-welcome-main p:not(.eyebrow) { margin:.4rem 0 0; color:#b7c4d5; }
.orientation-page-hero-side { display:flex; align-items:flex-end; flex-direction:column; gap:1rem; }
.orientation-page-hero .orientation-welcome-aside { margin:0; text-align:right; }
@media (max-width:820px) {
  .vh-page-hero__waves { opacity:.72; -webkit-mask-image:linear-gradient(90deg,transparent 12%,rgba(0,0,0,.12) 34%,#000 62%,transparent 100%); mask-image:linear-gradient(90deg,transparent 12%,rgba(0,0,0,.12) 34%,#000 62%,transparent 100%); }
  .vh-page-hero__wave--upper,.vh-page-hero__wave--lower { display:none; }
  .vh-page-hero__glow { left:76%; width:58px; height:58px; }
  .orientation-page-hero { align-items:flex-start; flex-direction:column; }
  .orientation-page-hero-side { align-items:flex-start; }
  .orientation-page-hero .orientation-welcome-aside { padding-top:.8rem; padding-left:0; border-top:1px solid rgba(212,175,55,.35); border-left:0; text-align:left; }
}
@media (max-width:640px) {
  .vh-page-hero { min-height:110px; border-radius:14px; }
  .admin-header.vh-page-hero,.user-management-header.vh-page-hero,.professional-profile-header.vh-page-hero { padding:22px 20px; }
  .admin-header.vh-page-hero { width:min(var(--max),calc(100% - 32px)); margin-top:16px; }
  .vh-page-hero__wave--soft { display:none; }
  .vh-page-hero__glow { left:84%; width:48px; height:48px; }
}

/* Editor de orientações: criação e edição no mesmo padrão visual. */
.orientation-editor { width:min(1120px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.orientation-editor-banner { position:relative; display:flex; align-items:center; justify-content:space-between; gap:2rem; min-height:0; padding:1.55rem 1.8rem; overflow:hidden; border:1px solid rgba(212,175,55,.55); border-radius:14px; background:linear-gradient(115deg,#071326 0%,#0d1a2e 57%,#16243d 100%); }
.orientation-editor-banner::before,.orientation-editor-banner::after { position:absolute; border:1px solid rgba(212,175,55,.2); border-radius:50%; content:""; pointer-events:none; }
.orientation-editor-banner::before { width:390px; height:250px; right:-90px; top:-135px; box-shadow:0 0 0 22px rgba(212,175,55,.04),0 0 0 44px rgba(212,175,55,.025); transform:rotate(-12deg); }
.orientation-editor-banner::after { width:330px; height:185px; right:60px; bottom:-150px; border-color:rgba(241,207,99,.16); transform:rotate(18deg); }
.orientation-editor-banner-main,.orientation-editor-banner-side { position:relative; z-index:1; }
.orientation-editor-banner-main { display:grid; align-content:start; gap:1.25rem; }
.orientation-editor-crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; color:#b5c2d3; font-size:.84rem; }
.orientation-editor-crumbs a { color:var(--gold-light); font-weight:700; text-underline-offset:3px; }
.orientation-editor-title { display:flex; align-items:center; gap:1rem; }
.orientation-editor-title>i { width:68px; height:68px; flex:0 0 68px; padding:1rem; border:1px solid rgba(212,175,55,.62); border-radius:14px; color:var(--gold-light); background:rgba(2,6,23,.35); }
.orientation-editor-title h1 { margin:0; color:var(--white); font-size:clamp(2rem,4vw,3rem); line-height:1; }
.orientation-editor-title p { max-width:570px; margin:.7rem 0 0; color:#c6d0df; font-size:1rem; text-align:left; }
.orientation-editor-banner-side { display:flex; align-items:center; min-width:0; padding-left:0; border-left:0; }
.orientation-editor-banner-actions { display:flex; gap:.65rem; }
.orientation-editor-banner-side .button { min-height:42px; padding:.55rem .9rem; }
.orientation-editor-banner-side .button svg { width:16px; height:16px; }
.orientation-editor-form { width:100%; display:grid; gap:1.35rem; margin:0 auto; }
.orientation-form-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:1.25rem; }
.orientation-form-left { display:flex; flex-direction:column; gap:1.25rem; min-width:0; }
.orientation-form-card { padding:1.5rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.orientation-content-card { min-height:0; display:flex; flex-direction:column; }
.orientation-content-field { flex:1; min-height:0; }
.orientation-content-field textarea { height:100%; min-height:300px; flex:1; }
.orientation-content-help { margin-top:auto; color:var(--muted); font-size:.75rem; line-height:1.35; }
.orientation-form-section { display:grid; gap:1.2rem; }
.orientation-form-section>header { display:flex; align-items:flex-start; gap:.75rem; }
.orientation-form-section>header>i { width:21px; height:21px; margin-top:.1rem; color:var(--gold); }
.orientation-form-section h2 { margin:0; color:var(--white); font-size:1.13rem; }
.orientation-form-section p { margin:.2rem 0 0; color:var(--muted); font-size:.85rem; text-align:left; }
.orientation-primary-fields { display:grid; gap:1rem; }
.orientation-field { display:grid; gap:.42rem; min-width:0; }
.orientation-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.required-mark { margin-left:.2rem; color:#fb7185; font-weight:700; }
.orientation-field input,.orientation-field textarea,.orientation-field select { width:100%; min-height:46px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; outline:0; background:#07101d; color:var(--white); }
.orientation-field textarea { min-height:90px; resize:vertical; }
.orientation-primary-fields .orientation-field:last-child textarea { min-height:220px; }
.orientation-field input::placeholder,.orientation-field textarea::placeholder { color:#7f8ea3; }
.orientation-field input:focus,.orientation-field textarea:focus,.orientation-field select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.orientation-field small { color:var(--muted); font-size:.75rem; line-height:1.35; }
.orientation-field .errorlist,.orientation-form-errors .errorlist { display:grid; gap:.2rem; margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
.orientation-form-errors { padding:.75rem .9rem; border:1px solid rgba(251,113,133,.45); border-radius:7px; background:rgba(159,58,75,.15); }
.orientation-form-divider { width:100%; height:1px; margin:0; border:0; background:rgba(148,163,184,.22); }
.orientation-publication-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.orientation-save-button { width:100%; min-height:50px; gap:.55rem; border-radius:7px; }
.orientation-save-button svg { width:18px; height:18px; }
@media (max-width:720px) { .orientation-editor-banner { align-items:flex-start; flex-direction:column; min-height:0; } .orientation-editor-banner-side { align-items:flex-start; min-width:0; padding-top:1rem; padding-left:0; border-top:1px solid rgba(212,175,55,.38); border-left:0; } .orientation-form-layout,.orientation-publication-fields { grid-template-columns:1fr; } .orientation-content-card { min-height:0; } .orientation-content-field textarea { min-height:260px; } }
@media (max-width:640px) { .orientation-editor { width:min(100% - 32px,1120px); padding-top:16px; } .orientation-editor-banner { padding:1.2rem; } .orientation-editor-banner-main { gap:1.6rem; } .orientation-editor-title { align-items:flex-start; } .orientation-editor-title>i { width:44px; height:44px; padding:.72rem; } .orientation-form-card { padding:1.1rem; } }

/* Perfil, cadastro profissional e auditoria compartilham o hero ornamental interno. */
.professional-profile-hero-actions { display:flex; flex:0 0 auto; align-items:center; flex-direction:row; flex-wrap:nowrap; justify-content:flex-end; gap:.65rem; }
.professional-profile-hero-actions .button { min-width:112px; justify-content:center; }
.user-management-hero { border-bottom:0; }
.professional-management-hero { border-bottom:0; }
.professional-management-hero .orientation-page-hero-title p,.clinic-management-hero .orientation-page-hero-title p { margin:.4rem 0 0; color:#b7c4d5; }
.clinic-management-hero { border-bottom:0; }
.professional-profile-hero .orientation-page-hero-title h1 { margin:0; }
.professional-observations-card,.professional-habilitations-card { height:100%; }
.professional-observations-card { display:flex; flex-direction:column; }
.professional-observations-card .professional-observations-field { flex:1; min-height:0; }
.professional-observations-card .professional-observations-field textarea { min-height:130px; height:100%; flex:1; }
@media (min-width:781px) {
  .professional-profile-left,.professional-profile-right { display:contents; }
  .professional-photo-card { grid-column:1; grid-row:1; }
  .professional-personal-card { grid-column:1; grid-row:2; }
  .professional-registration-card { grid-column:1; grid-row:3; }
  .professional-observations-card { grid-column:1; grid-row:4; }
  .professional-specialties-card { grid-column:2; grid-row:1 / span 3; }
  .professional-habilitations-card { grid-column:2; grid-row:4; }
}
.professional-registration-fields>div { display:grid; gap:.42rem; }
.professional-registration-fields label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.professional-registration-fields select,.professional-registration-fields input { box-sizing:border-box; width:100%; min-height:44px; height:44px; padding:.6rem .75rem; border:1px solid #33445b; border-radius:7px; outline:0; background:#081526; color:var(--white); font:inherit; }
.professional-registration-fields select:focus,.professional-registration-fields input:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.professional-photo-preview img[hidden] { display:none; }

.profile-page { width:min(1240px,calc(100% - 48px)); display:grid; gap:1.35rem; margin:0 auto; padding:24px 0 70px; }
.profile-page-hero { width:100%; margin:0; }
.profile-page-hero h1 { margin:0; color:var(--white); font-size:clamp(2rem,4vw,2.75rem); line-height:1.1; }
.profile-page-hero p { margin:.45rem 0 0; color:#b8c5d6; text-align:left; }
.profile-page-form { display:grid; gap:1.25rem; }
.profile-page-form>.errorlist { margin:0; padding:.8rem 1rem; border:1px solid rgba(251,113,133,.45); border-radius:8px; background:rgba(159,58,75,.15); color:#ff9bad; list-style:none; }
.profile-page-layout { display:grid; grid-template-columns:minmax(240px,1fr) minmax(0,3fr); align-items:start; gap:1.25rem; }
.profile-side-card,.profile-page-card { border:1px solid var(--line); border-radius:12px; background:#091424; }
.profile-side-card { display:grid; justify-items:center; gap:1.15rem; padding:1.5rem; text-align:center; }
.profile-photo-wrap { position:relative; }
.profile-side-card .image-crop-uploader { justify-items:center; }
.profile-side-card .image-crop-preview { width:160px; height:160px; border:2px solid var(--gold); box-shadow:0 0 0 5px rgba(212,175,55,.08); }
.profile-side-card .image-crop-preview img[hidden] { display:none; }
.profile-side-card .image-crop-actions { justify-content:center; }
.profile-side-card .image-crop-actions .button { min-height:40px; padding:.5rem .7rem; font-size:.82rem; }
.profile-camera-badge { position:absolute; top:125px; right:calc(50% - 80px); width:36px; height:36px; display:grid; place-items:center; border:2px solid #091424; border-radius:50%; background:var(--gold); color:#07101d; pointer-events:none; }
.profile-camera-badge svg { width:18px; height:18px; }
.profile-side-identity h2 { margin:0; color:var(--white); font-size:1.25rem; }
.profile-side-identity strong { display:block; margin:.35rem 0; color:var(--gold-light); }
.profile-side-identity p,.profile-side-identity small { color:var(--muted); line-height:1.5; }
.profile-side-identity p { margin:.9rem 0 .45rem; text-align:center; }
.profile-page-main { display:grid; gap:1.25rem; min-width:0; }
.profile-page-card { display:grid; gap:1.1rem; padding:1.35rem; }
.profile-page-card>header { display:flex; align-items:center; gap:.7rem; padding-bottom:.85rem; border-bottom:1px solid rgba(148,163,184,.18); }
.profile-page-card>header i { width:21px; height:21px; color:var(--gold); }
.profile-page-card h2 { margin:0; color:var(--white); font-size:1.15rem; }
.profile-personal-grid,.profile-security-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.profile-personal-grid>div,.profile-security-grid>div { display:grid; align-content:start; gap:.42rem; min-width:0; }
.profile-personal-grid .field-wide { grid-column:1 / -1; }
.profile-personal-grid label,.profile-security-grid label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.profile-personal-grid input,.profile-security-grid input,.profile-security-grid select { box-sizing:border-box; width:100%; min-height:46px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; outline:0; background:#07101d; color:var(--white); }
.profile-personal-grid input:focus,.profile-security-grid input:focus,.profile-security-grid select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.profile-personal-grid input:-webkit-autofill,.profile-security-grid input:-webkit-autofill { -webkit-box-shadow:0 0 0 1000px #07101d inset; -webkit-text-fill-color:var(--white); caret-color:var(--white); }
.profile-page-card small { color:var(--muted); font-size:.78rem; line-height:1.4; }
.profile-page-card .errorlist { margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
.profile-page-actions { display:flex; align-items:center; justify-content:center; gap:.8rem; }
.profile-page-actions .button { width:min(250px,calc(50% - .4rem)); min-height:48px; justify-content:center; }

.access-log-page-hero { width:min(var(--max),calc(100% - 48px)); display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; min-height:150px; margin:24px auto 0; }
.access-log-hero-main { display:contents; }
.access-log-page-hero .vh-page-hero__breadcrumbs { grid-column:1; grid-row:1; }
.access-log-page-hero .access-log-hero-title { grid-column:1; grid-row:2; }
.access-log-page-hero .access-log-hero-return { grid-column:2; grid-row:2; }
.access-log-page-hero h1 { margin:0; color:var(--white); font-size:clamp(2rem,4vw,2.75rem); line-height:1.1; }
.access-log-hero-title { display:flex; align-items:center; gap:1rem; }
.access-log-hero-icon { width:64px; height:64px; display:grid; flex:0 0 64px; place-items:center; border:1px solid rgba(212,175,55,.7); border-radius:50%; background:rgba(2,6,23,.45); color:var(--gold-light); }
.access-log-hero-icon svg { width:29px; height:29px; }
.security-dashboard { padding-top:20px; }
.access-log-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:28px; }
.dashboard-insights > .dashboard-metrics { margin-bottom:0; }
.clinic-management > .clinic-metrics { margin-bottom:0; }
.professional-management > .professional-metrics { margin-bottom:0; }
.access-log-metrics article { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:1rem; min-width:0; padding:1.1rem; border:1px solid var(--line); border-radius:11px; background:#091424; }
.access-log-metric-icon { width:48px; height:48px; display:grid; place-items:center; border:1px solid rgba(212,175,55,.48); border-radius:50%; color:var(--gold-light); background:rgba(212,175,55,.06); }
.access-log-metric-icon svg { width:23px; height:23px; }
.access-log-metrics article>div { display:grid; gap:.25rem; min-width:0; padding-left:1rem; border-left:1px solid rgba(148,163,184,.25); }
.access-log-metrics strong { color:var(--gold-light); font-family:"Cinzel",Georgia,serif; font-size:1.9rem; line-height:1; }
.access-log-metrics article>div>span { color:#d5dfeb; font-size:.82rem; line-height:1.25; }

/* Hero exclusivo da gestão de orientações; reutiliza o ornament vh-page-hero. */
.orientation-page-hero { display:flex; align-items:center; justify-content:space-between; gap:2rem; min-height:0; padding:26px 32px; }
.orientation-page-hero-main { display:grid; min-width:0; gap:1.25rem; }
.orientation-page-hero-main .vh-page-hero__breadcrumbs { margin:0; }
.orientation-page-hero-title { display:flex; align-items:center; gap:1rem; }
.orientation-page-hero-title>i,.orientation-page-hero-title>svg { width:68px; height:68px; flex:0 0 68px; padding:1rem; border:1px solid rgba(212,175,55,.62); border-radius:14px; color:var(--gold-light); background:rgba(2,6,23,.35); }
.orientation-page-hero-title h1 { margin:0; color:var(--white); font-size:clamp(2rem,4vw,2.75rem); line-height:1.1; }
.orientation-page-hero-side { align-items:flex-end; gap:.75rem; min-width:min(100%,310px); }
.orientation-page-hero .orientation-welcome-aside { max-width:310px; margin:0; color:var(--gold-light)!important; font-size:.96rem; font-weight:700; line-height:1.42; text-align:right; }
.orientation-page-hero-side .admin-actions { display:flex; flex-wrap:nowrap; gap:.65rem; }
.orientation-page-hero-side .button { min-height:42px; white-space:nowrap; }
.treatment-page-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; }
.treatment-page-hero .orientation-page-hero-main { display:contents; }
.treatment-page-hero .vh-page-hero__breadcrumbs { grid-column:1; grid-row:1; }
.treatment-page-hero .orientation-page-hero-title { grid-column:1; grid-row:2; }
.treatment-page-hero .orientation-page-hero-side { grid-column:2; grid-row:2; }
.treatment-management { padding-top:24px; }
.dentist-management { padding-top:32px; }

/* Editor administrativo de dentistas: mantém o formulário único em duas colunas. */
.dentist-editor { width:min(1180px,calc(100% - 48px)); display:grid; gap:1.25rem; margin:0 auto; padding:24px 0 64px; }
.dentist-editor-hero { width:100%; margin:0; }
.dentist-editor-form { display:grid; gap:1rem; min-width:0; }
.dentist-editor-form>.errorlist { margin:0; padding:.8rem 1rem; border:1px solid rgba(251,113,133,.45); border-radius:8px; background:rgba(159,58,75,.15); color:#ff9bad; list-style:none; }
.dentist-editor-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:1.25rem; }
.dentist-editor-card { display:grid; align-content:start; gap:1.15rem; min-width:0; padding:1.45rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.dentist-editor-card>header { display:flex; align-items:flex-start; gap:.75rem; padding-bottom:.9rem; border-bottom:1px solid rgba(148,163,184,.18); }
.dentist-editor-card>header>i { width:21px; height:21px; flex:0 0 auto; margin-top:.08rem; color:var(--gold); }
.dentist-editor-card h2 { margin:0; color:var(--white); font-size:1.15rem; }
.dentist-editor-card header p { margin:.22rem 0 0; color:var(--muted); font-size:.84rem; line-height:1.4; text-align:left; }
.dentist-editor-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:1rem; }
.dentist-editor-field { display:grid; align-content:start; gap:.42rem; min-width:0; }
.dentist-editor-field.dentist-field-wide { grid-column:1 / -1; }
.dentist-editor-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.dentist-editor-field input:not([type=checkbox]),.dentist-editor-field textarea,.dentist-editor-field select { box-sizing:border-box; width:100%; min-height:44px; padding:.65rem .78rem; border:1px solid #344258; border-radius:7px; outline:0; background:#07101d; color:var(--white); font:inherit; }
.dentist-editor-field textarea { min-height:178px; resize:vertical; }
.dentist-editor-field input:focus,.dentist-editor-field textarea:focus,.dentist-editor-field select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.dentist-editor-field input::placeholder,.dentist-editor-field textarea::placeholder { color:#7f8ea3; }
.dentist-editor-field input:-webkit-autofill,.dentist-editor-field textarea:-webkit-autofill { -webkit-box-shadow:0 0 0 1000px #07101d inset; -webkit-text-fill-color:var(--white); caret-color:var(--white); }
.dentist-editor-field small,.dentist-photo-uploader>small { color:var(--muted); font-size:.78rem; line-height:1.35; }
.dentist-editor-field .errorlist,.dentist-photo-uploader .errorlist { display:grid; gap:.2rem; margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
.dentist-photo-uploader { display:grid; justify-items:center; gap:.85rem; min-height:232px; text-align:center; }
.dentist-editor-photo-uploader { justify-items:center; }
.dentist-editor-photo-uploader .image-crop-preview { width:152px; height:152px; border:2px solid var(--gold); box-shadow:0 0 0 5px rgba(212,175,55,.08); }
.dentist-editor-photo-uploader .image-crop-preview img[hidden] { display:none; }
.dentist-editor-photo-uploader .image-crop-actions { justify-content:center; }
.dentist-editor-photo-uploader .image-crop-actions .button { min-height:40px; padding:.5rem .7rem; font-size:.84rem; }
.dentist-settings-fields { grid-template-columns:minmax(0,160px) minmax(0,1fr); align-items:center; }
.dentist-active-field { display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:.55rem; min-height:44px; }
.dentist-active-field input[type=checkbox] { width:1rem; height:1rem; margin:0; accent-color:#2487e8; }
.dentist-active-field label { cursor:pointer; }
.dentist-active-field .errorlist,.dentist-active-field small { grid-column:1 / -1; }

@media (max-width:980px) {
  .profile-page-layout { grid-template-columns:minmax(220px,.8fr) minmax(0,2fr); }
  .profile-security-grid { grid-template-columns:1fr; }
  .access-log-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:780px) {
  .profile-page-layout { grid-template-columns:1fr; }
  .profile-side-card { grid-template-columns:auto minmax(0,1fr); justify-items:start; text-align:left; }
  .profile-side-identity p { text-align:left; }
  .profile-page-hero,.access-log-page-hero { align-items:flex-start; flex-direction:column; }
  .access-log-page-hero { display:flex; }
  .access-log-hero-main { display:grid; }
  .orientation-page-hero { align-items:flex-start; flex-direction:column; }
  .orientation-page-hero-side { align-items:flex-start; min-width:0; }
  .orientation-page-hero .orientation-welcome-aside { max-width:420px; text-align:left; }
  .treatment-page-hero { display:flex; }
  .treatment-page-hero .orientation-page-hero-main { display:grid; }
}
@media (max-width:640px) {
  .professional-profile-hero-actions { width:100%; justify-content:flex-start; }
  .professional-profile-hero-actions .button { flex:1; }
  .profile-page { width:min(100% - 32px,1240px); padding-top:16px; }
  .profile-page-hero,.access-log-page-hero { width:100%; margin-top:0; }
  .profile-side-card { grid-template-columns:1fr; justify-items:center; text-align:center; }
  .profile-side-identity p { text-align:center; }
  .profile-personal-grid { grid-template-columns:1fr; }
  .profile-personal-grid .field-wide { grid-column:auto; }
  .profile-page-actions { align-items:stretch; flex-direction:column; }
  .profile-page-actions .button { width:100%; }
  .access-log-hero-title { align-items:flex-start; }
  .access-log-hero-icon { width:48px; height:48px; flex-basis:48px; }
  .access-log-hero-icon svg { width:22px; height:22px; }
  .access-log-metrics { grid-template-columns:1fr; }
  .orientation-page-hero { padding:22px 20px; }
  .orientation-page-hero-main { gap:1rem; }
  .orientation-page-hero-title>i,.orientation-page-hero-title>svg { width:50px; height:50px; flex-basis:50px; padding:.7rem; border-radius:12px; }
  .orientation-page-hero-side { width:100%; }
  .orientation-page-hero-side .admin-actions { width:100%; }
  .orientation-page-hero-side .button { flex:1; justify-content:center; }
  .treatment-management { padding-top:20px; }
  .dentist-management { padding-top:24px; }
  .dentist-editor { width:min(100% - 32px,1180px); padding-top:16px; }
  .dentist-editor-layout { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .dentist-editor-card { padding:1.1rem; }
  .dentist-editor-fields,.dentist-settings-fields { grid-template-columns:1fr; }
  .dentist-editor-field.dentist-field-wide { grid-column:auto; }
  .dentist-editor-photo-uploader .image-crop-preview { width:136px; height:136px; }
  .dentist-editor-photo-uploader .image-crop-actions { width:100%; }
  .dentist-editor-photo-uploader .image-crop-actions .button { flex:1; }
}

/* Cadastro de paciente: um único formulário amplo, organizado por cards. */
.patient-editor { width:min(1180px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.patient-editor-hero { width:auto; }
.patient-editor-form { display:grid; gap:1.2rem; }
.patient-editor-card { display:grid; align-content:start; gap:1rem; min-width:0; padding:1.5rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.patient-editor-card>header { display:flex; align-items:flex-start; gap:.7rem; }
.patient-editor-card>header>i { width:21px; height:21px; flex:0 0 21px; margin-top:.12rem; color:var(--gold); }
.patient-editor-card h2,.patient-editor-card p { margin:0; }
.patient-editor-card h2 { color:var(--white); font-size:1.15rem; }
.patient-editor-card p { color:var(--muted); font-size:.84rem; line-height:1.4; }
.patient-editor-field { display:grid; gap:.42rem; min-width:0; }
.patient-editor-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.patient-editor-field input,.patient-editor-field select { box-sizing:border-box; width:100%; min-height:46px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; outline:0; background:#07101d; color:var(--white); font:inherit; }
.patient-editor-field input:focus,.patient-editor-field select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.patient-editor-field .errorlist,.patient-form-errors .errorlist { display:grid; gap:.2rem; margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
.patient-form-errors { padding:.8rem 1rem; border:1px solid rgba(251,113,133,.45); border-radius:8px; background:rgba(159,58,75,.15); }
.patient-personal-layout { display:grid; grid-template-columns:minmax(210px,.38fr) minmax(0,1fr); align-items:start; gap:1.25rem; }
.patient-photo-card { min-width:0; }
.patient-editor-photo-uploader { width:100%; justify-items:stretch; gap:.75rem; }
.patient-editor-photo-uploader .image-crop-preview { width:100%; height:auto; aspect-ratio:1; border:1px dashed rgba(212,175,55,.72); border-radius:9px; background:#07101d; }
.patient-editor-photo-uploader [data-image-crop-placeholder] { display:grid; justify-items:center; gap:.45rem; color:var(--muted); text-align:center; }
.patient-editor-photo-uploader [data-image-crop-placeholder] svg { width:32px; height:32px; color:var(--gold-light); }
.patient-editor-photo-uploader [data-image-crop-placeholder] span { max-width:190px; font-size:.9rem; line-height:1.35; }
.patient-editor-photo-uploader .image-crop-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
.patient-editor-photo-uploader .image-crop-actions .button { min-height:44px; justify-content:center; }
.patient-editor-photo-uploader .image-crop-actions .button:first-child { border-color:var(--gold); background:var(--gold); color:#07101d; }
.patient-editor-photo-uploader .helptext { margin:0; color:var(--muted); }
.patient-personal-fields,.patient-fields-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.patient-field-wide { grid-column:1 / -1; }
.patient-address-fields { display:grid; grid-template-areas:"cep street street" "number complement district" "city city state"; grid-template-columns:minmax(0,.8fr) minmax(0,1.1fr) minmax(0,.9fr); gap:1rem; }
.patient-address-cep { grid-area:cep; }.patient-address-street { grid-area:street; }.patient-address-number { grid-area:number; }.patient-address-complement { grid-area:complement; }.patient-address-district { grid-area:district; }.patient-address-city { grid-area:city; }.patient-address-uf { grid-area:state; }
.patient-editor-final-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:1.2rem; }
.patient-editor-final-grid>:only-child { grid-column:1 / -1; }
@media (max-width:780px) { .patient-personal-layout,.patient-editor-final-grid { grid-template-columns:1fr; } .patient-editor-final-grid>:only-child { grid-column:auto; } }
@media (max-width:640px) { .patient-editor { width:min(100% - 32px,1180px); padding-top:16px; } .patient-editor-card { padding:1.1rem; } .patient-personal-fields,.patient-fields-grid,.patient-editor-photo-uploader .image-crop-actions { grid-template-columns:1fr; } .patient-field-wide { grid-column:auto; } .patient-address-fields { grid-template-areas:"cep" "street" "number" "complement" "district" "city" "state"; grid-template-columns:1fr; } }

/* Categoria de prazos: criação e edição em dois cards compactos. */
.deadline-category-editor { width:min(1120px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.deadline-category-editor-hero { width:auto; }
.deadline-category-form { display:grid; gap:1.2rem; }
.deadline-category-form-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:stretch; gap:1.2rem; }
.deadline-category-form-card { display:grid; align-content:start; gap:1rem; min-width:0; padding:1.5rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.deadline-category-form-card>header { display:flex; align-items:flex-start; gap:.7rem; }
.deadline-category-form-card>header>i { width:21px; height:21px; flex:0 0 21px; margin-top:.12rem; color:var(--gold); }
.deadline-category-form-card h2,.deadline-category-form-card p { margin:0; }
.deadline-category-form-card h2 { color:var(--white); font-size:1.15rem; }
.deadline-category-form-card p,.deadline-category-form-card small { color:var(--muted); font-size:.84rem; line-height:1.4; }
.deadline-category-field { display:grid; gap:.42rem; min-width:0; }
.deadline-category-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.deadline-category-field input,.deadline-category-field textarea { box-sizing:border-box; width:100%; min-height:46px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; outline:0; background:#07101d; color:var(--white); font:inherit; }
.deadline-category-field textarea { min-height:178px; resize:vertical; }
.deadline-category-field input:focus,.deadline-category-field textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.deadline-category-active-field { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:.6rem; padding-top:.25rem; }
.deadline-category-active-field input { width:17px; height:17px; margin:.15rem 0 0; accent-color:var(--gold); }
.deadline-category-active-field>div { display:grid; gap:.2rem; }
.deadline-category-active-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.deadline-category-active-field .errorlist,.deadline-category-field .errorlist,.deadline-category-form-errors .errorlist { display:grid; gap:.2rem; margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
.deadline-category-form-errors { padding:.8rem 1rem; border:1px solid rgba(251,113,133,.45); border-radius:8px; background:rgba(159,58,75,.15); }
@media (max-width:720px) { .deadline-category-form-grid { grid-template-columns:1fr; } }
@media (max-width:640px) { .deadline-category-editor { width:min(100% - 32px,1120px); padding-top:16px; } .deadline-category-form-card { padding:1.1rem; } .deadline-category-form-card .deadline-category-field textarea { min-height:150px; } }

/* Listagem de categorias de prazos: hero compartilhado, busca e cards. */
.deadline-category-management { width:min(1120px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.deadline-category-management-hero { width:auto; }
.deadline-category-management-hero .orientation-page-hero-title p { margin:.4rem 0 0; color:#b7c4d5; }
.deadline-category-search { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:.7rem; padding:1rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.deadline-category-search>i { width:20px; height:20px; color:var(--gold); }
.deadline-category-search input { box-sizing:border-box; width:100%; min-height:44px; border:1px solid #344258; border-radius:7px; outline:0; padding:.7rem .8rem; background:#07101d; color:var(--white); font:inherit; }
.deadline-category-search input:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.deadline-category-search .clear-filter { white-space:nowrap; }
.deadline-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }
.deadline-category-grid>.empty-state { grid-column:1/-1; }
.deadline-category-card { display:flex; flex-direction:column; gap:1.25rem; min-width:0; padding:1.3rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.deadline-category-card>header { display:flex; align-items:flex-start; gap:.85rem; min-width:0; }
.deadline-category-card-icon { display:grid; flex:0 0 44px; width:44px; height:44px; place-items:center; border:1px solid rgba(212,175,55,.55); border-radius:50%; color:var(--gold-light); background:rgba(2,6,23,.32); }
.deadline-category-card-icon i { width:21px; height:21px; }
.deadline-category-card h2,.deadline-category-card p { margin:0; }
.deadline-category-card h2 { overflow-wrap:anywhere; color:var(--white); font-size:1.1rem; }
.deadline-category-card p { min-height:2.6em; margin-top:.25rem; overflow-wrap:anywhere; color:var(--muted); font-size:.88rem; line-height:1.45; }
.deadline-category-card .status { display:inline-flex; margin-top:.8rem; }
.deadline-category-card>footer { display:flex; align-items:center; justify-content:space-between; gap:.8rem; margin-top:auto; padding-top:1rem; border-top:1px solid var(--line); }
.deadline-category-document-count { display:inline-flex; align-items:center; gap:.45rem; color:#cbd5e1; font-size:.86rem; }
.deadline-category-document-count i { width:17px; height:17px; color:var(--gold); }
.deadline-category-card .table-icon-actions { display:flex; flex:0 0 auto; gap:.35rem; }
.deadline-category-card .table-icon-actions form { margin:0; }
@media (max-width:720px) { .deadline-category-management { width:min(100% - 32px,1120px); } .deadline-category-grid { grid-template-columns:1fr; } }
@media (max-width:560px) { .deadline-category-management { padding-top:16px; } .deadline-category-search { grid-template-columns:auto minmax(0,1fr); } .deadline-category-search .button,.deadline-category-search .clear-filter { grid-column:1/-1; width:100%; justify-content:center; } .deadline-category-card { padding:1.1rem; } }

/* Gestão de arquivos: hero compartilhado e coleção responsiva. */
.company-files-management { width:min(1120px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.company-files-hero { width:auto; }.company-files-hero .orientation-page-hero-title p { margin:.4rem 0 0;color:#b7c4d5; }
.company-files-filter { display:grid; grid-template-columns:minmax(220px,1fr) minmax(180px,.55fr) minmax(220px,.8fr) auto; gap:1rem; align-items:end; padding:1rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.company-files-filter label { display:grid; gap:.4rem; color:#aebbd0; font-size:.8rem; font-weight:700; text-transform:uppercase; }.company-files-filter input,.company-files-filter select { box-sizing:border-box; width:100%; min-height:44px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; background:#07101d; color:var(--white); font:inherit; text-transform:none; }.company-files-filter input:focus,.company-files-filter select:focus { outline:0;border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.company-files-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; color:#b8d3f4; }.company-files-toolbar>div { display:flex; align-items:center; gap:1rem; }.company-files-view-switch { display:inline-flex; gap:.35rem; }.company-files-view-switch button { display:grid; width:38px; height:38px; place-items:center; border:1px solid var(--line); border-radius:7px; background:#091424; color:#d7e1ee; cursor:pointer; }.company-files-view-switch button.is-active { border-color:var(--gold); background:var(--gold); color:#111827; }.company-files-view-switch i { width:18px; height:18px; }
.company-files-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }.company-files-grid>.empty-state { grid-column:1/-1; }.company-file-card { display:flex; flex-direction:column; gap:1.25rem; min-width:0; padding:1.3rem; border:1px solid var(--line); border-radius:12px; background:#091424; }.company-file-card>header { display:flex; gap:.85rem; min-width:0; }.company-file-icon { display:grid; flex:0 0 44px; width:44px; height:44px; place-items:center; border:1px solid rgba(212,175,55,.55); border-radius:50%; color:var(--gold-light); background:rgba(2,6,23,.32); }.company-file-icon i { width:21px;height:21px; }.company-file-card h2,.company-file-card p { margin:0; }.company-file-card h2 { overflow:hidden; color:var(--white); font-size:1.05rem; text-overflow:ellipsis; white-space:nowrap; }.company-file-card p { margin-top:.3rem; color:var(--muted); line-height:1.45; }.company-file-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:0; }.company-file-card dl div { display:grid; gap:.2rem; min-width:0; }.company-file-card dt { color:#8fa3ba; font-size:.75rem; text-transform:uppercase; }.company-file-card dd { margin:0; color:#e3ebf5; font-size:.88rem; }.company-file-card footer { display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:1rem; border-top:1px solid var(--line); }.company-file-card .table-icon-actions { display:flex; gap:.35rem; }.company-file-card .table-icon-actions form { margin:0; }
.company-files-grid.is-list { grid-template-columns:1fr; gap:.65rem; }.company-files-grid.is-list .company-file-card { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr) auto; align-items:center; gap:1rem; padding:1rem 1.2rem; }.company-files-grid.is-list .company-file-card dl { grid-template-columns:repeat(2,minmax(0,1fr)); }.company-files-grid.is-list .company-file-card footer { padding:0;border:0; }.company-files-grid.is-list .company-file-card footer>span:first-child { display:none; }
@media(max-width:800px) { .company-files-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }.company-files-filter .button { grid-column:1/-1; }.company-files-grid.is-list .company-file-card { grid-template-columns:1fr auto; }.company-files-grid.is-list .company-file-card dl { grid-column:1; }.company-files-grid.is-list .company-file-card footer { grid-column:2; grid-row:1/3; } }
@media(max-width:560px) { .company-files-management { width:min(100% - 32px,1120px); padding-top:16px; }.company-files-filter,.company-files-grid { grid-template-columns:1fr; }.company-files-toolbar { align-items:flex-start; flex-direction:column; }.company-files-toolbar>div { width:100%; justify-content:space-between; }.company-file-card { padding:1.1rem; }.company-files-grid.is-list .company-file-card { display:flex; }.company-files-grid.is-list .company-file-card footer { padding-top:1rem; border-top:1px solid var(--line); } }

/* Item de prazo: formulário amplo em uma grade interna compacta. */
.deadline-item-editor { width:min(1120px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.deadline-item-editor-hero { width:auto; }
.deadline-item-form { display:grid; gap:1.2rem; }
.deadline-item-form-card { min-width:0; padding:1.5rem; border:1px solid var(--line); border-radius:12px; background:#091424; }
.deadline-item-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:1rem 1.2rem; }
.deadline-item-field { display:grid; gap:.42rem; min-width:0; }
.deadline-item-field-wide { grid-column:1 / -1; }
.deadline-item-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.deadline-item-field input:not([type="checkbox"]),.deadline-item-field select,.deadline-item-field textarea { box-sizing:border-box; width:100%; min-height:46px; padding:.7rem .8rem; border:1px solid #344258; border-radius:7px; outline:0; background:#07101d; color:var(--white); font:inherit; }
.deadline-item-field textarea { min-height:176px; resize:vertical; }
.deadline-item-field input:focus,.deadline-item-field select:focus,.deadline-item-field textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.deadline-item-field input[type="file"] { min-height:46px; padding:.55rem .65rem; color:var(--muted); }
.deadline-item-field small { color:var(--muted); font-size:.82rem; line-height:1.4; }
.deadline-item-side-fields { display:grid; align-content:start; gap:1rem; min-width:0; }
.deadline-item-completed-field { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:.55rem; min-height:32px; }
.deadline-item-completed-field input { width:17px; height:17px; margin:0; accent-color:var(--gold); }
.deadline-item-completed-field label { color:#e2e8f0; font-size:.9rem; font-weight:700; }
.deadline-item-field .errorlist,.deadline-item-completed-field .errorlist,.deadline-item-form-errors .errorlist { display:grid; gap:.2rem; margin:0; padding:0; color:#ff9bad; font-size:.82rem; list-style:none; }
.deadline-item-completed-field .errorlist { grid-column:2; }
.deadline-item-form-errors { padding:.8rem 1rem; border:1px solid rgba(251,113,133,.45); border-radius:8px; background:rgba(159,58,75,.15); }
@media (max-width:720px) { .deadline-item-grid { grid-template-columns:1fr; } .deadline-item-field-wide { grid-column:auto; } }
@media (max-width:640px) { .deadline-item-editor { width:min(100% - 32px,1120px); padding-top:16px; } .deadline-item-form-card { padding:1.1rem; } .deadline-item-field textarea { min-height:150px; } }

/* Detalhe de prazo: composição somente leitura, sem tabela de dados. */
.deadline-detail-page { width:min(1120px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.deadline-detail-hero { width:auto; }
.deadline-detail-hero .orientation-page-hero-title p { margin:.4rem 0 0; color:#b7c4d5; }
.deadline-detail-hero-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; }
.deadline-detail-hero-title-row h1 { min-width:0; overflow-wrap:anywhere; }
.deadline-detail-hero-title-row .status { white-space:nowrap; }
.deadline-detail-content { display:grid; gap:1.35rem; padding:clamp(1.25rem,3vw,2rem); border:1px solid var(--line); border-radius:12px; background:#091424; }
.deadline-detail-summary,.deadline-detail-author { display:grid; justify-items:center; gap:.45rem; text-align:center; }
.deadline-detail-summary>i,.deadline-detail-author>i { width:28px; height:28px; color:var(--gold-light); }
.deadline-detail-summary h2 { margin:0; color:var(--white); font-size:clamp(1.3rem,2.4vw,1.7rem); }
.deadline-detail-summary p,.deadline-detail-author span { margin:0; color:var(--muted); font-size:.88rem; }
.deadline-detail-summary p span { margin:0 .3rem; color:var(--gold-light); }
.deadline-detail-divider { height:1px; background:rgba(148,163,184,.22); }
.deadline-detail-timeline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.deadline-detail-moment { display:grid; justify-items:center; gap:.45rem; min-width:0; text-align:center; }
.deadline-detail-moment>i { width:23px; height:23px; color:var(--gold-light); }
.deadline-detail-moment strong { color:var(--white); font-size:.93rem; line-height:1.35; }
.deadline-detail-moment span { color:var(--muted); font-size:.8rem; }
.deadline-detail-author { padding-top:.15rem; }
.deadline-detail-author strong { max-width:100%; overflow-wrap:anywhere; color:var(--white); }
.deadline-detail-notes,.deadline-detail-attachment { display:grid; gap:.75rem; padding:1.1rem 1.2rem; border:1px solid rgba(148,163,184,.25); border-radius:10px; background:#0a1323; }
.deadline-detail-notes header,.deadline-detail-attachment header { display:flex; align-items:center; gap:.55rem; }
.deadline-detail-notes header i,.deadline-detail-attachment header i { width:20px; height:20px; color:var(--gold-light); }
.deadline-detail-notes h2,.deadline-detail-attachment h2,.deadline-detail-notes p { margin:0; }
.deadline-detail-notes h2,.deadline-detail-attachment h2 { color:var(--white); font-size:1.05rem; }
.deadline-detail-notes p { color:#d6dfeb; line-height:1.6; overflow-wrap:anywhere; }
.deadline-detail-notes .deadline-detail-empty-note { color:var(--muted); }
.deadline-detail-attachment>div { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.8rem; color:#d6dfeb; }
.deadline-detail-attachment>div>span { overflow-wrap:anywhere; }
@media (max-width:820px) { .deadline-detail-timeline { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.35rem 1rem; } }
@media (max-width:640px) { .deadline-detail-page { width:min(100% - 32px,1120px); padding-top:16px; } .deadline-detail-content { gap:1.15rem; padding:1.1rem; } .deadline-detail-timeline { grid-template-columns:1fr; gap:1.1rem; } .deadline-detail-moment strong { font-size:.9rem; } .deadline-detail-attachment>div { align-items:flex-start; flex-direction:column; } }

/* Mensagens de contato: leitura em painel dividido. */
.contact-messages-page { width:min(1240px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.contact-messages-hero { width:auto; }
.contact-messages-hero .orientation-page-hero-title p { margin:.4rem 0 0; color:#b7c4d5; }
.contact-messages-content { display:grid; gap:1rem; }
.contact-message-filter { grid-template-columns:minmax(240px,1.7fr) minmax(180px,.65fr) auto; margin:0; }
.contact-message-filter label { min-width:0; }
.contact-message-toolbar { margin:0; padding:.1rem 0; }
.contact-message-split-view { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr); min-height:470px; border:1px solid var(--line); border-radius:12px; background:#091424; overflow:hidden; }
.contact-message-list-panel { min-width:0; border-right:1px solid rgba(148,163,184,.22); background:#081321; }
.contact-message-list { display:grid; }
.contact-message-list-item { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:.7rem; padding:1rem; border:0; border-bottom:1px solid rgba(148,163,184,.16); border-left:3px solid transparent; background:transparent; color:var(--white); font:inherit; text-align:left; cursor:pointer; }
.contact-message-list-item:hover,.contact-message-list-item:focus-visible { background:rgba(255,255,255,.045); outline:0; }
.contact-message-list-item:focus-visible { box-shadow:inset 0 0 0 2px rgba(212,175,55,.55); }
.contact-message-list-item[aria-selected="true"] { border-left-color:var(--gold); background:rgba(212,175,55,.1); }
.contact-message-list-item.is-unread { background:rgba(20,56,91,.19); }
.contact-message-list-item.is-read { opacity:.76; }
.contact-message-avatar { width:38px; height:38px; display:grid; flex:0 0 38px; place-items:center; border:1px solid rgba(212,175,55,.55); border-radius:50%; background:#07101d; color:var(--gold-light); font-weight:800; }
.contact-message-list-copy { min-width:0; display:grid; gap:.2rem; }
.contact-message-list-copy strong { overflow:hidden; color:var(--white); text-overflow:ellipsis; white-space:nowrap; }
.contact-message-list-copy small,.contact-message-list-copy>span { overflow:hidden; color:var(--muted); font-size:.78rem; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.contact-message-list-copy>span { display:-webkit-box; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.contact-message-list-meta { display:grid; justify-items:end; gap:.45rem; color:var(--muted); font-size:.72rem; white-space:nowrap; }
.contact-message-list-meta em,.contact-message-reader-meta em { padding:.18rem .45rem; border-radius:999px; background:rgba(148,163,184,.14); color:#cbd5e1; font-size:.7rem; font-style:normal; font-weight:700; }
.contact-message-list-item.is-unread .contact-message-list-meta em,.contact-message-reader-meta em.is-unread { background:rgba(59,130,246,.2); color:#bfdbfe; }
.contact-message-reader { min-width:0; padding:1.35rem; background:#0a1323; }
.contact-message-reader-empty { min-height:100%; display:grid; place-content:center; justify-items:center; gap:.75rem; color:var(--muted); text-align:center; }
.contact-message-reader-empty i { width:34px; height:34px; color:var(--gold-light); }
.contact-message-reader-empty p { max-width:280px; margin:0; }
.contact-message-reader-content { display:grid; gap:1.25rem; }
.contact-message-reader-content>header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:.8rem; padding-bottom:1.1rem; border-bottom:1px solid rgba(148,163,184,.2); }
.contact-message-reader-content>header>div:nth-child(2) { min-width:0; display:grid; gap:.25rem; }
.contact-message-reader-content h2,.contact-message-reader-body h3 { margin:0; color:var(--white); }
.contact-message-reader-content a,.contact-message-reader-content header span { overflow-wrap:anywhere; color:var(--muted); font-size:.88rem; }
.contact-message-reader-meta { display:grid; justify-items:end; gap:.5rem; color:var(--muted); font-size:.8rem; text-align:right; }
.contact-message-reader-content dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:0; }
.contact-message-reader-content dt { color:var(--muted); font-size:.72rem; font-weight:700; text-transform:uppercase; }
.contact-message-reader-content dd { margin:.3rem 0 0; overflow-wrap:anywhere; color:var(--white); }
.contact-message-reader-body { display:grid; gap:.55rem; }
.contact-message-reader-body h3 { font-size:1rem; }
.contact-message-reader-body p { margin:0; overflow-wrap:anywhere; color:#d8e2ed; line-height:1.65; white-space:pre-wrap; }
.contact-message-reader-content>footer { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding-top:.9rem; border-top:1px solid rgba(148,163,184,.2); color:#fda4af; font-size:.84rem; }
.contact-message-unread-action { border:0; background:transparent; cursor:pointer; }
.contact-message-mobile-back { display:none; }
.contact-message-list-empty { margin:1rem; }
@media (max-width:760px) { .contact-message-filter { grid-template-columns:1fr 1fr; } .contact-message-filter label:first-child { grid-column:1 / -1; } .contact-message-split-view { grid-template-columns:1fr; } .contact-message-list-panel { border-right:0; border-bottom:1px solid rgba(148,163,184,.22); } }
@media (max-width:560px) { .contact-messages-page { width:min(100% - 32px,1240px); padding-top:16px; } .contact-message-filter { grid-template-columns:1fr; } .contact-message-filter label:first-child { grid-column:auto; } .contact-message-filter .button { width:100%; justify-content:center; } .contact-message-split-view { min-height:0; } .contact-message-reader { min-height:420px; } .contact-messages-page.has-selected-message .contact-message-list-panel { display:none; } .contact-message-mobile-back { display:inline-flex; align-items:center; gap:.4rem; width:max-content; padding:0; border:0; background:transparent; color:var(--gold-light); font:inherit; font-weight:700; cursor:pointer; } .contact-message-reader-content>header { grid-template-columns:auto minmax(0,1fr); } .contact-message-reader-meta { grid-column:2; justify-items:start; text-align:left; } .contact-message-reader-content dl { grid-template-columns:1fr; gap:.75rem; } }

/* Detalhe de mensagem: timeline e dados reais, sem ações de edição. */
.contact-message-detail-page { width:min(1120px,calc(100% - 48px)); display:grid; gap:1.2rem; margin:0 auto; padding:24px 0 60px; }
.contact-message-detail-hero { width:auto; }
.contact-message-detail-hero .orientation-page-hero-title p { margin:.4rem 0 0; color:#b7c4d5; }
.contact-message-detail-overview { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr); overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#091424; }
.contact-message-timeline-card,.contact-message-contact-card,.contact-message-body-card { min-width:0; padding:1.5rem; }
.contact-message-timeline-card { border-right:1px solid var(--line); }
.contact-message-timeline-card>header,.contact-message-contact-card>header,.contact-message-body-card>header { display:flex; align-items:flex-start; gap:.7rem; }
.contact-message-timeline-card>header>i,.contact-message-contact-card>header>i,.contact-message-body-card>header>i { width:21px; flex:0 0 21px; color:var(--gold); }
.contact-message-timeline-card h2,.contact-message-contact-card h2,.contact-message-body-card h2,.contact-message-timeline-card p,.contact-message-contact-card p,.contact-message-body-card p { margin:0; }
.contact-message-timeline-card h2,.contact-message-contact-card h2,.contact-message-body-card h2 { color:var(--white); font-size:1.1rem; }
.contact-message-timeline-card>header p,.contact-message-contact-card>header p,.contact-message-body-card>header p { margin-top:.2rem; color:var(--muted); font-size:.84rem; line-height:1.4; }
.contact-message-timeline { display:grid; gap:1.25rem; margin:1.5rem 0 0; padding:0; list-style:none; }
.contact-message-timeline-event { position:relative; display:grid; grid-template-columns:36px minmax(0,1fr); gap:.85rem; }
.contact-message-timeline-event:not(:last-child)::after { position:absolute; top:36px; bottom:-1.25rem; left:17px; width:1px; background:rgba(212,175,55,.55); content:""; }
.contact-message-timeline-marker { display:grid; width:36px; height:36px; place-items:center; border:1px solid rgba(212,175,55,.7); border-radius:50%; color:var(--gold-light); background:#07101d; }
.contact-message-timeline-event.is-read .contact-message-timeline-marker { border-color:rgba(74,222,128,.72); color:#5ee2a0; }
.contact-message-timeline-marker i { width:17px; height:17px; }
.contact-message-timeline-event h3 { margin:0; color:var(--white); font-size:.96rem; }
.contact-message-timeline-event time { display:block; margin-top:.28rem; color:var(--gold-light); font-size:.82rem; font-weight:700; }
.contact-message-timeline-event p { margin-top:.35rem; color:#b7c4d5; font-size:.84rem; line-height:1.45; }
.contact-message-contact-card dl { display:grid; gap:1rem; margin:1.5rem 0 0; }
.contact-message-contact-card dl>div { min-width:0; }
.contact-message-contact-card dt { display:flex; align-items:center; gap:.4rem; color:var(--muted); font-size:.78rem; font-weight:700; }
.contact-message-contact-card dt i { width:15px; height:15px; color:var(--gold); }
.contact-message-contact-card dd { margin:.32rem 0 0; overflow-wrap:anywhere; color:var(--white); font-weight:700; }
.contact-message-contact-card dd a { color:#b9d8ff; }
.contact-message-read-status { display:inline-flex; align-items:center; min-height:25px; padding:.2rem .55rem; border:1px solid rgba(148,163,184,.32); border-radius:999px; font-size:.78rem; }
.contact-message-read-status.is-read { border-color:rgba(74,222,128,.36); color:#baf6d3; background:rgba(74,222,128,.1); }
.contact-message-read-status.is-unread { border-color:rgba(212,175,55,.36); color:var(--gold-light); background:rgba(212,175,55,.08); }
.contact-message-body-card { border:1px solid var(--line); border-radius:12px; background:#091424; }
.contact-message-body-card>p { margin:1.25rem 0 0; overflow-wrap:anywhere; white-space:pre-wrap; color:#d8e2ed; line-height:1.65; text-align:left; }
@media (max-width:760px) { .contact-message-detail-overview { grid-template-columns:1fr; } .contact-message-timeline-card { border-right:0; border-bottom:1px solid var(--line); } }
@media (max-width:560px) { .contact-message-detail-page { width:min(100% - 32px,1120px); padding-top:16px; } .contact-message-detail-hero .orientation-page-hero-side .admin-actions { flex-wrap:wrap; } .contact-message-detail-hero .orientation-page-hero-side .button { flex:1 1 180px; } .contact-message-timeline-card,.contact-message-contact-card,.contact-message-body-card { padding:1.1rem; } }
