:root {
  color-scheme: light;
  --paper: #F3F8F8;
  --white: #fff;
  --ink: #12324A;
  --muted: #526474;
  --primary: #12324A;
  --dark: #12324A;
  --mint: #DFF3F1;
  --wash: #EBF7F6;
  --line: #D9E5E8;
  --focus: #B45309;
  --danger: #B91C1C;
  --destructive: #B42318;
  --success: #087A70;
  --teal: #16A394;
  font-family: Arial, sans-serif;
  font-synthesis: none;
  accent-color: var(--primary);
  caret-color: var(--primary);
  scrollbar-color: #526474 var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.5; min-width: 300px; }
::selection { background: #CBECE8; color: #12324A; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }
a { color: inherit; text-underline-offset: .2em; }
svg { width: 22px; height: 22px; flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
.wrap { width: min(100% - 64px, 1240px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; transform: translateY(-150%); z-index: 4; background: white; padding: .7rem; }
.skip:focus { transform: none; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner { width: min(100% - 64px, 1240px); min-height: 80px; margin: auto; display: flex; gap: 26px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: clamp(110px, 14vw, 156px); height: auto; }
.desktop-nav { display: flex; gap: clamp(12px, 2.8vw, 38px); }
.desktop-nav a, .mobile-nav a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--muted); font-weight: 600; }
.desktop-nav a { padding-block: 12px; }
.desktop-nav a svg { width: 18px; height: 18px; }
.desktop-nav a[aria-current], .mobile-nav a[aria-current] { color: var(--primary); }
.desktop-nav a[aria-current] { box-shadow: inset 0 -2px currentColor; }
.mobile-nav { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 47px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 12px; font-weight: 650; text-decoration: none; }
.button.primary { background: var(--primary); color: white; }
.button.primary:hover:not(:disabled) { background: #0C2537; }
.button.alt { background: var(--white); color: var(--dark); border-color: var(--line); }
.button.alt:hover { background: var(--wash); }
.button svg { width: 19px; height: 19px; }
.screen { min-height: calc(100vh - 161px); padding-block: clamp(24px, 4.3vw, 56px) clamp(42px, 7vw, 84px); }
.screen:focus { outline: none; }
.hero { display: grid; grid-template-columns: 1.27fr 1fr; overflow: hidden; border-radius: 18px; background: var(--mint); }
.hero-copy { padding: clamp(24px, 4.25vw, 58px); align-self: center; }
.hero h1 { color: var(--primary); }
.hero .intro { max-width: 42ch; margin-top: 17px; color: var(--muted); }
.intro { margin-top: 10px; font-size: clamp(1.02rem, 1.7vw, 1.23rem); color: var(--muted); max-width: 65ch; }
.hero-image { position: relative; min-height: 386px; overflow: hidden; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% 54%; }
.search-form { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 27px; max-width: 700px; }
.search-form label, .sign-in label { display: grid; gap: 5px; min-width: 0; font-size: .86rem; font-weight: 700; }
select, input { width: 100%; min-width: 0; height: 47px; padding: 6px 10px; border-radius: 12px; border: 1px solid #78939C; color: var(--ink); background: white; }
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; gap: 20px; margin-top: 22px; }
.schedule, .awa { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); border-radius: 14px; }
.schedule { padding: 25px; background: white; border: 1px solid var(--line); }
.schedule p, .awa p { margin-top: 5px; }
.tile-icon { width: 50px; height: 50px; flex: 0 0 50px; display: inline-grid; place-items: center; border-radius: 13px; background: var(--wash); color: var(--primary); }
.awa { min-height: 146px; overflow: hidden; padding: 16px 24px 16px 12px; background: #EBF7F6; }
.awa img { width: 111px; height: 111px; object-fit: contain; flex: none; }
.awa p { color: #526474; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 650; }
.text-link svg, .back svg { width: 16px; height: 16px; }
.schedule .text-link { margin-top: 9px; }
.services { margin-top: 39px; }
.services-hub { max-width: 960px; margin-inline: auto; }
.services-intro { display: grid; grid-template-columns: 1fr minmax(300px, .85fr); align-items: center; gap: 22px; margin-bottom: 26px; }
.services-intro h1 { font-size: 2rem; }
.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-options .panel { display: grid; justify-items: start; align-content: start; gap: 10px; margin: 0; }
.service-option .status { margin-top: 3px; }
.advice .awa { margin-block: 20px; }
.practitioner-dashboard h1 { margin-bottom: 6px; }
.agenda-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-block: 22px 14px; }
.agenda-controls label { display: grid; gap: 5px; flex: 1; min-width: 170px; }
.agenda-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.agenda-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(215px, 1fr); gap: 14px; align-items: start; }
.agenda-body .panel { margin: 0; }
.agenda-next h2, .agenda-period h2 { margin-block: 8px 12px; }
.agenda-next small { display: block; margin-top: 10px; color: var(--muted); }
.agenda-list { list-style: none; margin: 0; padding: 0; }
.agenda-slot { display: grid; grid-template-columns: 60px 1fr; padding-block: 12px; gap: 8px; border-top: 1px solid var(--line); }
.agenda-slot time { color: var(--primary); font-weight: 700; }
.agenda-week, .agenda-month { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.agenda-week { grid-template-columns: repeat(7,minmax(105px,1fr)); overflow-x: auto; }
.agenda-week-day { background: var(--paper); border-radius: 8px; padding: 8px; }
.agenda-week-day h3 { margin: 0; font-size: .95rem; }
.agenda-week-day .agenda-slot { grid-template-columns: 1fr; font-size: .875rem; }
.agenda-month > span { text-align: center; font-size: .875rem; color: var(--muted); }
.agenda-month-day { min-height: 44px; display: grid; place-content: center; color: var(--primary); background: white; border: 1px solid var(--line); border-radius: 8px; }
.agenda-month-day:hover { background: var(--wash); }
.agenda-month-day[data-outside] { background: var(--paper); color: var(--muted); }
.agenda-month-day strong { color: var(--success); }
.agenda-requests { margin-top: 22px; }
.request-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px 20px; }
.request-tabs [aria-current] { background: var(--primary); color: white; }
.request-card p { margin-top: 6px; }
.messages-list { margin-top: 16px; }
.catalogue-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.patients-page > .panel { margin-top: 14px; }
.patients-page .relative-list p { margin-top: 4px; }
.payout-month { margin-block: 16px; }
.statistics-page > .panel { margin-top: 14px; }
.stats-weeks { padding: 0; list-style: none; }
.stats-weeks li { display: grid; grid-template-columns: 85px 1fr 2rem; align-items: center; gap: 12px; padding-block: 6px; }
.stats-weeks meter { width: 100%; }
.stats-weeks meter::-webkit-meter-optimum-value { background: var(--success); }
#statistics-report { margin-top: 12px; }
.payout-totals { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; }
.payout-totals > div { background: var(--paper); padding: 10px; border-radius: 12px; }
.payout-totals dd { margin: 4px 0 0; font-weight: 700; }
.payout-entry { border-top: 1px solid var(--line); padding-block: 10px; }
.payout-entry summary { cursor: pointer; }
.payout-entry .status { margin-left: 8px; }
@media print {
  body:has(.payout-page) :is(.desktop-nav,.mobile-nav,.foot,.back,button,.payout-accounts) { display: none; }
  body:has(.payout-page) .panel { break-inside: avoid; }
}
.product-comment-form { margin-top: 14px; }
.product-comment-form textarea { width: 100%; padding: 10px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; resize: vertical; }
.public-profile fieldset { border: 0; padding: 0; margin: 0; }
.public-profile legend { font-weight: 700; margin-bottom: 6px; }
.public-biography h3 { margin-block: 14px 4px; }
.public-biography p { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.message-thread li { background: var(--paper); border-radius: 12px; padding: 12px; justify-self: start; max-width: 90%; }
.message-thread .message-own { background: var(--wash); justify-self: end; }
.message-thread small { color: var(--muted); }
.remote-check { width: 18px; height: 18px; vertical-align: middle; margin: 0 6px 0 0; }
.request-warning { color: #B45309; font-weight: 700; }
#request-dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; width: min(460px, calc(100% - 32px)); padding: 24px; }
#request-dialog form { margin-top: 14px; }
#request-dialog::backdrop { background: #12324A66; }
@media (max-width: 850px) {
  .agenda-body { grid-template-columns: minmax(0, 1fr); }
  .agenda-next { grid-row: 1; }
}
.settings-form { display: grid; gap: 14px; }
.settings-form .panel { margin: 0; }
.settings-section { margin-top: 14px; }
.settings-section h2 { margin-bottom: 8px; }
.settings-section > .button { margin-top: 12px; }
.account-page > .notice:empty { display: none; }
.account-page .panel > .button { margin-top: 12px; }
.relative-list { display: grid; gap: 6px; padding: 0; list-style: none; }
.relative-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.relative-list .appointment-actions { margin: 0; }
#account-dialog, #payment-dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; width: min(460px, calc(100% - 32px)); max-height: 88vh; padding: 24px; }
#account-dialog form { margin-top: 14px; }
#account-dialog::backdrop, #payment-dialog::backdrop { background: #12324A66; }
.payments .appointment-copy .status { justify-self: start; }
.payments .switch { flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.notification-bell { position: relative; }
.notification-count { position: absolute; right: 2px; top: 2px; min-width: 16px; padding-inline: 2px; border-radius: 10px; background: var(--primary); color: white; text-align: center; font-size: .7rem; }
.notification-group { margin-top: 22px; }
.notification-group h2 { margin-bottom: 10px; }
.notification-row { width: 100%; color: var(--ink); text-align: left; justify-content: start; }
.notification-row > :last-child { margin-left: auto; }
.notification-row time { color: var(--muted); font-size: .875rem; }
.notification-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: none; }
.hospital-form { margin-top: 14px; }
.advice-state { margin-top: 16px; }
.advice-follow-up .panel { margin-top: 20px; }
.service-requests .results { margin-top: 12px; }
.advice fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.advice legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.advice label[hidden] { display: none; }
.advice .check-line { display: flex; align-items: center; gap: 10px; }
.advice .check-line input { width: 18px; height: 18px; flex: none; }
.advice-offer { padding-block: 10px; border-top: 1px solid var(--line); }
.advice-offer small { display: block; color: var(--muted); }
.advice-submit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.advice-submit .error { flex-basis: 100%; }
.service-requests h3 { margin: 0; font-size: 1rem; }
.service-requests { margin-top: 27px; padding-block: 20px; border-top: 1px solid var(--line); }
.service-requests p { margin-top: 6px; }
.service-list { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.service-list > * { min-height: 77px; padding: 12px 16px; display: flex; gap: 11px; align-items: center; font-weight: 650; }
.service-list > * + * { border-inline-start: 1px solid var(--line); }
.service-list svg { color: var(--primary); }
.service-list a > svg:last-child { margin-left: auto; width: 18px; }
.service-list small { display: block; color: var(--muted); font-weight: 500; }
.foot { color: var(--muted); border-top: 1px solid var(--line); }
.foot-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .85rem; }
.back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; color: var(--primary); font-weight: 650; }
.page-head h1, .profile-banner h1, .narrow h1, .screen-rendez-vous h1 { font-size: 2rem; }
.results-header { margin: 29px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.switch { display: flex; background: #E7F0F1; padding: 4px; border-radius: 10px; }
.switch button { border: none; background: transparent; border-radius: 7px; padding: 8px 12px; color: var(--dark); font-weight: 650; }
.switch button[aria-pressed="true"] { background: white; }
.results { display: grid; gap: 14px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: clamp(17px, 3.2vw, 28px); }
.panel + .panel { margin-top: 14px; }
.service-options .panel + .panel { margin-top: 0; }
.results .panel + .panel { margin-top: 0; }
.result { display: grid; gap: 15px; justify-items: start; }
.identity, .profile-banner { display: flex; align-items: center; gap: 14px; min-width: 0; }
.identity p { margin-top: 3px; }
.initials { display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--dark); width: 53px; height: 53px; flex: none; font-weight: 700; }
.profile-banner { background: var(--mint); border-radius: 16px; padding: clamp(19px, 4vw, 44px); margin-bottom: 20px; }
.profile-banner .initials { background: white; }
.location { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.location svg { width: 17px; height: 17px; }
.places { padding-inline-start: 1.1rem; margin-bottom: 0; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { display: grid; min-width: 104px; justify-items: start; gap: 1px; padding: 6px 12px; text-align: left; background: var(--wash); color: var(--dark); border: 1px solid var(--line); border-radius: 12px; font-variant-numeric: tabular-nums; }
.slot span, .slot small { font-size: .78rem; }
.slot strong { font-size: 1.04rem; }
.slot:hover { background: var(--mint); border-color: #087A70; }
.subtle { margin: 6px 0 12px; }
.empty { padding: 28px; border: 1px dashed #D9E5E8; border-radius: 13px; }
.empty p { margin: 6px 0 14px; }
.narrow { max-width: 680px; margin-inline: auto; }
.narrow > .panel { margin-top: 20px; }
.flow { display: flex; padding: 0; margin: 0 0 25px; list-style: none; background: var(--wash); border-radius: 10px; overflow: hidden; }
.flow li { flex: 1; padding: .65rem .4rem; text-align: center; color: var(--muted); font-size: .85rem; }
.flow [aria-current] { background: var(--primary); color: white; font-weight: 700; }
.summary dl { margin-block: 1rem 0; }
.summary dl > div { display: grid; grid-template-columns: minmax(100px, 1fr) 1.7fr; gap: 10px; border-top: 1px solid var(--line); padding-block: 9px; }
.summary dt { color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; font-weight: 650; }
.summary dd small { display: block; color: var(--muted); font-weight: 400; }
.notice { padding: 10px 12px; background: var(--wash); border-radius: 8px; color: var(--dark); margin-block: 10px; }
.error { color: var(--danger); }
.error:empty { margin: 0; }
.checkout .button, .confirmed .button { margin: 12px 6px 0 0; }
.confirmed > .tile-icon { margin-bottom: 12px; }
.confirmed details { margin-block: 14px; }
details code, .reference { overflow-wrap: anywhere; }
.sign-in { display: grid; gap: 14px; }
.screen-rendez-vous h1 { margin-bottom: 18px; }
.appointment-tabs { width: fit-content; margin-bottom: 20px; }
.appointment-tabs button { min-height: 44px; }
.appointment-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.appointment-card:hover { border-color: var(--primary); background: var(--wash); }
.appointment-card > svg { color: var(--primary); }
.appointment-copy { min-width: 0; display: grid; gap: 6px; }
.appointment-copy h2 span { color: var(--muted); font-size: .84em; font-weight: 500; }
.appointment-date, .appointment-title, .appointment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.appointment-date time { font-weight: 650; font-variant-numeric: tabular-nums; }
.appointment-date time::first-letter { text-transform: uppercase; }
.appointment-title h1 { margin: 0; }
.appointment-title .status { margin-left: auto; }
.appointment-detail .panel p { margin-top: 5px; }
.appointment-detail summary { cursor: pointer; font-weight: 650; }
.appointment-detail .summary + details { border-top: 1px solid var(--line); padding-top: 10px; }
.status { border-radius: 999px; padding: 4px 10px; font-size: .82rem; font-weight: 700; background: var(--wash); color: var(--dark); white-space: nowrap; }
.status-upcoming { color: var(--success); }
.status-cancelled { background: #FCEDEB; color: var(--danger); }
.status-past { background: #E7F0F1; color: var(--muted); }
.appointment-actions, .more { margin-top: 16px; }
.danger-button { background: white; color: var(--destructive); border-color: var(--destructive); }
.danger-button:hover:not(:disabled) { background: #FCEDEB; }
#cancel-dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 14px; max-width: min(460px, calc(100% - 32px)); padding: 24px; }
#cancel-dialog p { margin-top: 8px; }
#cancel-dialog::backdrop { background: #12324A66; }
.screen-structure > h2 { margin-bottom: 12px; }
.loading { padding-block: 28px; }
@media (max-width: 975px) {
  .hero { grid-template-columns: 1.13fr 1fr; }
  .hero-copy { padding: 27px; }
  .hero .search-form { grid-template-columns: 1fr 1fr; }
  .hero .search-form button { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .practitioner-nav { justify-content: start; overflow-x: auto; }
  .practitioner-nav a { flex: 0 0 76px; }
  .catalogue-filters { grid-template-columns: 1fr; }
  .header-actions .top-logout { display: none; }
  .services-intro, .service-options { grid-template-columns: 1fr; gap: 12px; }
  .wrap, .top-inner { width: calc(100% - 32px); }
  .top-inner { min-height: 66px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; position: fixed; inset: auto 0 0; z-index: 2; background: white; box-shadow: 0 -4px 16px #12324A17; padding: 4px 8px max(5px, env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-nav a { min-height: 49px; flex: 1; justify-content: center; flex-direction: column; gap: 3px; font-size: .74rem; text-align: center; }
  .mobile-nav a svg { width: 18px; height: 18px; }
  .foot-inner { padding-block: 16px 78px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 22px; }
  .hero-image { min-height: clamp(160px, 38vw, 240px); }
  .hero-image img { object-position: center 47%; }
  .hero .intro { margin-top: 11px; }
  .search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 16px; }
  .search-form button { grid-column: 1 / -1; }
  .home-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .schedule { padding: 16px; }
  .awa { min-height: 110px; padding: 12px 15px 12px 6px; }
  .home-grid .awa { grid-row: 1; }
  .awa img { width: 83px; height: 83px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list > * { font-size: .88rem; padding: 8px; }
  .service-list > :nth-child(3) { border-inline-start: 0; }
  .service-list > :nth-child(n+3) { border-top: 1px solid var(--line); }
}
.structure-dossier { max-width: 980px; margin-inline: auto; }
.structure-steps { display: grid; grid-template-columns: minmax(165px, 215px) minmax(0, 1fr); gap: 20px; align-items: start; }
.structure-steps nav ol { display: grid; gap: 3px; margin: 0; padding-left: 24px; }
.structure-steps nav a { display: block; color: var(--ink); padding: 7px 8px; border-radius: 7px; }
.structure-steps nav a[aria-current] { background: var(--mint); font-weight: 700; }
@media (max-width: 620px) {
  .structure-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .structure-steps nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
}
.structure-dashboard { max-width: 1150px; margin-inline: auto; }
.structure-dashboard-controls { display: flex; gap: 14px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.structure-dashboard-controls label { flex: 1; max-width: 460px; }
.structure-dashboard-controls select { width: 100%; }
.structure-kpis, .structure-month { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.structure-kpis dt, .structure-month dt { color: var(--muted); font-weight: 600; }
.structure-kpis dd { margin: 2px 0 0; font-size: 2rem; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.structure-dashboard-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr); gap: 16px; margin-bottom: 16px; }
.structure-dashboard-body h2, .structure-dashboard > section h2 { margin-top: 0; }
.structure-providers, .structure-timeline { list-style: none; padding: 0; margin: 0; }
.structure-providers > li + li { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.structure-providers > li > div { display: flex; justify-content: space-between; gap: 8px; }
.structure-timeline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.structure-timeline > li { display: grid; padding: 4px 8px; background: var(--paper); border-radius: 6px; font-variant-numeric: tabular-nums; }
.structure-timeline > li[data-status="arrived"] { background: var(--mint); }
.structure-timeline > li[data-status="pending"] { background: #fff0d4; }
.structure-timeline > li[data-status="absent"] { background: #fee8e7; }
.structure-alerts { padding-left: 20px; }
.structure-alerts li + li { margin-top: 8px; }
.structure-month { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.structure-month dd { margin: 4px 0 0; }
@media (max-width: 720px) {
  .structure-dashboard-body { grid-template-columns: minmax(0, 1fr); }
  .structure-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .structure-dashboard-controls { align-items: stretch; flex-direction: column; }
  .structure-month { grid-template-columns: minmax(0, 1fr); }
}
.structure-validation-table { overflow-x: auto; }
.structure-validation-table table { border-collapse: collapse; width: 100%; min-width: 700px; }
.structure-validation-table th, .structure-validation-table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.structure-validation-table th { color: var(--muted); background: var(--paper); }
.structure-validation-table details { margin-top: 8px; }
.structure-validation-table details label { display: grid; margin-block: 6px; }
.structure-urgent { color: var(--danger); }
.structure-rdv-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; }
.structure-rdv-controls label { min-width: 0; }
.structure-rdv-groups { display: grid; gap: 14px; margin-top: 14px; }
.structure-rdv-agenda { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.structure-rdv-agenda .structure-timeline { flex-direction: column; }
#structure-rdv-print { display: none; }
@media print {
  body:has(> #structure-rdv-print) > :not(#structure-rdv-print) { display: none !important; }
  #structure-rdv-print { display: block; color: #000; background: #fff; }
}


.awa-assistant {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  justify-items: end;
  gap: .65rem;
  width: min(23rem, calc(100% - 2rem));
  pointer-events: none;
}
.awa-assistant[hidden], #awa-panel[hidden] { display: none; }
.awa-launch, #awa-panel { pointer-events: auto; }
.awa-launch, .awa-assistant-head, .awa-choices { display: flex; align-items: center; gap: .6rem; }
.awa-launch {
  color: var(--white);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 2rem;
  padding: .35rem .95rem .35rem .4rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px #12324a26;
}
.awa-launch img, .awa-assistant-head img { object-fit: contain; background: var(--mint); border-radius: 50%; }
#awa-panel {
  width: 100%;
  max-height: min(32rem, calc(100dvh - 11rem));
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 32px #12324a26;
}
.awa-assistant-head { padding: .75rem; background: var(--mint); }
.awa-assistant-head h2 { margin: 0; font-size: 1rem; flex: 1; }
.awa-assistant-head button, .awa-choices button {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .65rem;
  min-height: 2.65rem;
  cursor: pointer;
}
.awa-assistant-head button { min-width: 2.65rem; font-size: 1.5rem; }
.awa-assistant-body { padding: .85rem; }
.awa-choices { flex-wrap: wrap; }
.awa-choices button { padding: .35rem .65rem; }
.awa-choices button:hover { background: var(--wash); }
.awa-answer:not(:empty) { margin: .75rem 0; padding: .7rem; background: var(--wash); border-radius: .65rem; }
.awa-answer p { margin: 0 0 .25rem; }
.awa-assistant-body form { display: grid; gap: .35rem; margin-top: .75rem; }
.awa-assistant-body form button { justify-self: start; }
.awa-assistant-body small { color: var(--muted); }
@media (max-width: 780px) {
  .awa-assistant { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}


.awa-next {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  width: fit-content;
  color: var(--ink);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.awa-next svg { width: 1.2rem; height: 1.2rem; flex: none; }
.awa .awa-welcome { width: 88px; height: 118px; }
.awa-assistant-head img { width: 80px; height: 110px; }
.awa-assistant-head img,
.awa-launch img { flex: none; background: transparent; border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  .awa-next svg { animation: awa-direction 320ms ease-out; }
}
@keyframes awa-direction { 50% { transform: translateX(4px); } }

.awa-answer button.awa-next { padding: 0; border: 0; background: transparent; cursor: pointer; }


.rvm-loader-icon {
  display: inline-block;
  width: .9rem;
  height: .9rem;
  margin-right: .55rem;
  vertical-align: -.04rem;
  border: 2px solid var(--line);
  border-top-color: var(--success);
  border-radius: 50%;
}
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene-actions { position: absolute; bottom: 1rem; inset-inline: .75rem; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.scene-actions a, .scene-actions button {
  padding: .45rem .65rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-decoration: none;
}
.scene-actions a:hover, .scene-actions button:hover { background: var(--mint); }
.scene-actions button { cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .rvm-loader-icon { animation: rvm-loading .9s linear infinite; }
}
@keyframes rvm-loading { to { transform: rotate(360deg); } }
.catalog-loading { margin: .55rem 0 0; font-size: .875rem; color: var(--muted); }
@supports (animation-timeline: view()) {
  @media (min-width: 768px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .hero-image img {
      animation: rvm-image-depth linear both;
      animation-timeline: view();
    }
  }
}
@keyframes rvm-image-depth {
  from { object-position: 52% 47%; }
  to { object-position: 52% 61%; }
}
