@font-face {
  font-family: Clarity;
  src: url('/assets/corpo.woff') format('woff');
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Clarity;
  src: url('/assets/corpo-negrito.woff') format('woff');
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: Editorial;
  src: url('/assets/titulos.woff') format('woff');
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --ink: #192d24;
  --deep: #234639;
  --deepest: #192f28;
  --muted: #4e6258;
  --paper: #f6f5ef;
  --surface: #fffef9;
  --line: #dbe3da;
  --sage: #e9f0e6;
  --sage-mid: #c2d7bd;
  --violet: #ede7f3;
  --clay: #f5e9dc;
  --focus: #886134;
  --shadow: 0 16px 40px #203a2410;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-block: 90px 20px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Clarity,Lato,system-ui,sans-serif;
}

button,input,select,textarea {
  font: inherit;
}

a {
  color: #245443;
  text-underline-offset: 3px;
}

a:hover {
  color: #173d2e;
}

h1,h2,h3,p {
  overflow-wrap: anywhere;
}

h1,h2 {
  font-family: Editorial,Georgia,serif;
  font-weight: 400;
  letter-spacing: -.032em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(33px,4.45vw,60px);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(25px,2.7vw,37px);
  margin: 26px 0 13px;
}

h3 {
  font-size: 1.04rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

[hidden] {
  display: none!important;
}

small,.muted {
  color: var(--muted);
}

img {
  display: block;
  max-width: 100%;
}

abbr[title] {
  text-decoration: underline dotted;
}

:where(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus-visible {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 12;
  transform: translateY(-160%);
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 9px;
}

.skip-link:focus {
  transform: none;
}

a.button,button,.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background .16s,color .16s,border-color .16s,box-shadow .16s,transform .16s;
  text-align: center;
}

a.button:hover,button:hover {
  background: #315e4a;
  color: white;
  box-shadow: 0 6px 14px #1d493328;
}

a.button:active,button:active {
  transform: translateY(1px);
}

a.button.secondary,.button.secondary {
  background: var(--sage);
  color: var(--deepest);
  border-color: #d1e0cf;
}

a.button.secondary:hover,.button.secondary:hover {
  background: #ddebd9;
  color: var(--deepest);
}

a.button.quiet,.button.quiet {
  background: transparent;
  color: var(--deepest);
  border-color: var(--line);
  box-shadow: none;
}

a.button.quiet:hover,.button.quiet:hover,a.button.quiet[aria-current] {
  background: var(--sage);
  color: var(--deepest);
}

button[aria-pressed="true"] {
  background: var(--deep);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

form[aria-busy="true"] button[type="submit"] {
  opacity: .68;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow {
  display: block;
  font-size: .73rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: .76rem;
  color: #294d3e;
  background: var(--sage);
  border-radius: 99px;
  padding: 5px 9px;
  line-height: 1.15;
}

.badge.online {
  background: var(--violet);
  color: #503c62;
}

.badge.cancel {
  background: #f5e6e1;
  color: #803e32;
}

.notice {
  border: 1px solid #e8dac7;
  border-left: 4px solid #a77947;
  background: #faf4e9;
  padding: 12px 15px;
  border-radius: 8px;
  color: #513f28;
}

.notice p:last-child {
  margin-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand>span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand strong {
  font-family: Editorial,Georgia,serif;
  font-weight: 400;
  font-size: clamp(17px,2vw,24px);
  line-height: 1.15;
}

.brand small {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-mark {
  margin-right: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #264d3d;
  color: #f4f3e5;
  font: 29px/1 Editorial,Georgia,serif;
  box-shadow: inset 0 0 0 1px #51765a;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  position: relative;
  display: inline-block;
  color: inherit;
  line-height: 1;
}

.icon:before,.icon:after,.icon i:before,.icon i:after {
  position: absolute;
  content: "";
  display: block;
  box-sizing: border-box;
}

.icon-grade:before {
  width: 7px;
  height: 7px;
  top: 1px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 2px;
  box-shadow: 10px 0 0 -1px currentColor,0 10px 0 -1px currentColor,10px 10px 0 -1px currentColor;
}

.icon-agenda:before {
  top: 3px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 3px;
}

.icon-agenda:after {
  top: 7px;
  right: 2px;
  left: 2px;
  height: 1.5px;
  background: currentColor;
}

.icon-agenda i:before {
  left: 5px;
  top: 1px;
  width: 1.5px;
  height: 5px;
  background: currentColor;
  box-shadow: 7px 0 currentColor;
}

.icon-pessoa:before,.icon-equipe:before {
  width: 7px;
  height: 7px;
  left: 6px;
  top: 1px;
  border: 1.5px solid;
  border-radius: 50%;
}

.icon-pessoa:after,.icon-equipe:after {
  width: 15px;
  height: 8px;
  left: 2px;
  top: 10px;
  border: 1.5px solid;
  border-radius: 9px 9px 3px 3px;
}

.icon-equipe i:after {
  top: 3px;
  right: 0;
  width: 4px;
  height: 5px;
  border-right: 1px solid;
  border-radius: 50%;
}

.icon-lista:before {
  top: 2px;
  right: 1px;
  bottom: 2px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 3px;
}

.icon-lista:after {
  width: 8px;
  height: 1.5px;
  top: 6px;
  left: 5px;
  background: currentColor;
  box-shadow: 0 4px currentColor,0 8px currentColor;
}

.icon-carteira:before {
  top: 3px;
  right: 1px;
  bottom: 3px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 3px;
}

.icon-carteira:after {
  width: 7px;
  height: 5px;
  top: 7px;
  right: 1px;
  border: 1px solid;
  border-radius: 3px;
  background: transparent;
}

.icon-grafico:before {
  top: 2px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 3px;
}

.icon-grafico:after {
  bottom: 4px;
  left: 5px;
  width: 2px;
  height: 5px;
  background: currentColor;
  box-shadow: 4px 0 currentColor,8px 0 currentColor;
  transform: skewY(-28deg);
}

.icon-upload:before {
  bottom: 1px;
  left: 1px;
  right: 1px;
  height: 7px;
  border: 1.5px solid;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.icon-upload:after {
  top: 2px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
  transform: rotate(45deg);
}

.icon-upload i:before {
  width: 1.5px;
  height: 10px;
  left: 9px;
  top: 3px;
  background: currentColor;
}

.icon-escudo:before {
  top: 1px;
  right: 3px;
  bottom: 1px;
  left: 3px;
  border: 1.5px solid;
  border-radius: 3px 3px 7px 7px;
}

.icon-escudo:after {
  width: 6px;
  height: 4px;
  left: 7px;
  top: 7px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(-45deg);
}

.icon-relogio:before {
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 50%;
}

.icon-relogio:after {
  top: 5px;
  left: 9px;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
}

.icon-mensagem:before {
  top: 2px;
  right: 1px;
  bottom: 4px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 4px;
}

.icon-mensagem:after {
  width: 5px;
  height: 5px;
  left: 4px;
  bottom: 3px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: skewY(-37deg);
  background: inherit;
}

.icon-mais:before {
  left: 2px;
  right: 2px;
  top: 9px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
}

.icon-mais:after {
  left: 9px;
  top: 2px;
  bottom: 2px;
  width: 1.6px;
  border-radius: 2px;
  background: currentColor;
}

.icon-externo:before {
  top: 4px;
  right: 4px;
  bottom: 1px;
  left: 1px;
  border: 1.5px solid;
  border-radius: 3px;
}

.icon-externo:after {
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}

.icon-externo i:before {
  width: 9px;
  height: 1.5px;
  right: 1px;
  top: 5px;
  transform: rotate(-45deg);
  background: currentColor;
}

.public {
  background-color: #f8f7f1;
  background-image: linear-gradient(180deg,#faf9f200,#faf9f2 800px),url('/assets/botanica.webp');
  background-repeat: no-repeat;
  background-size: auto,cover;
  background-position: top center;
  background-attachment: scroll;
}

.public-shell {
  max-width: 1450px;
  margin: auto;
  padding: 0 clamp(16px,4vw,58px);
}

.public-header {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
}

.public-header nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.public-content {
  max-width: 1100px;
  margin: 18px auto 30px;
}

.home-content {
  max-width: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.91fr);
  min-height: 443px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid #e6e9db;
  background: #faf7ee;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.hero-copy {
  padding: clamp(27px,5vw,76px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.hero h1 {
  font-size: clamp(44px,5.4vw,78px);
  line-height: 1.02;
  color: #223e31;
  max-width: 11ch;
  margin: 0 0 20px;
}

.hero-copy>p:not(.eyebrow) {
  max-width: 34ch;
  color: #3f544a;
  font-size: 1.04rem;
  margin-bottom: 23px;
}

.hero-photo {
  min-height: 100%;
  position: relative;
  isolation: isolate;
  background: #d9d1be;
}

.hero-photo img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 58%;
}

.hero-photo:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset 0 0 45px #3729091a;
  pointer-events: none;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 19px 0 28px;
  color: var(--muted);
  font-size: .88rem;
}

.footer-dot {
  margin: 0 6px;
  color: #698275;
}

.public-body {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(245px,1fr);
  gap: 20px;
  align-items: start;
}

.panel,.surface,.tile {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(17px,3vw,31px);
  min-width: 0;
}

.surface.editable {
  max-width: 1120px;
  margin: auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}

.section-head h2,.section-head h1 {
  margin: 0;
}

.reserve h2 {
  font-size: clamp(27px,3.1vw,40px);
  margin-top: 0;
}

.reserve .notice {
  font-size: .85rem;
  margin-top: 16px;
  margin-bottom: 0;
}

.support {
  background: #fffdf7;
}

.support h2 {
  font-size: 27px;
  margin: 3px 0 16px;
}

.support-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e6eadd;
  padding: 11px 0;
}

.support-row:last-of-type {
  border: 0;
}

.support-row strong {
  font-size: .93rem;
}

.support .button {
  margin-top: 12px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 15px;
  min-width: 0;
  padding: 12px 15px 15px;
}

legend {
  padding: 0 7px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--deep);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(210px,100%),1fr));
  gap: 0 14px;
}

.field-grid.wide {
  grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr));
}

label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin: 10px 0;
  color: #263e33;
}

input:not([type=checkbox]):not([type=radio]),select,textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #a9b9ae;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.35;
}

input[type=checkbox] {
  accent-color: var(--deep);
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin: 0 7px 0 0;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,textarea:focus,select:focus {
  border-color: #5c856b;
}

.select-hint {
  margin: 3px 0;
  color: var(--muted);
  font-size: .85rem;
  min-height: 1.4em;
}

.time-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.time-buttons button {
  padding: 7px 12px;
  min-height: 44px;
  background: #f0f5ed;
  color: var(--ink);
  border-color: var(--line);
  font-size: .84rem;
  text-align: left;
}

.time-buttons button:hover {
  background: #dcebd9;
  color: var(--ink);
}

.time-buttons button[aria-pressed="true"] {
  background: var(--deep);
  color: #fff;
}

.patient-login {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(91deg,#fffefb 28%,#fffefbec 70%,#fffefbbd),url('/assets/botanica.webp') right 55%/cover;
}

.patient-login form {
  max-width: 440px;
}

.patient-login p {
  color: var(--muted);
}

.public-stack {
  display: grid;
  gap: 13px;
}

.public-visit {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.public-visit header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.public-visit header strong {
  font-size: 1.05rem;
}

.result {
  max-width: 800px;
  margin: auto;
  background: linear-gradient(90deg,#fffefb 22%,#fffefbdc 68%,#fffefb8c),url('/assets/botanica.webp') center right/cover;
}

.result-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #e0eedf;
  color: var(--deep);
  font-size: 1.55rem;
  border-radius: 18px;
  margin-bottom: 16px;
}

.result h1 {
  margin-bottom: 13px;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 239px minmax(0,1fr);
  max-width: 2000px;
  margin: auto;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: #fdfcf6;
  border-right: 1px solid var(--line);
  padding: 22px 13px 15px;
  gap: 30px;
}

.sidebar-brand {
  padding: 0 6px;
}

.sidebar-brand .brand-mark {
  width: 41px;
  height: 41px;
  flex-basis: 41px;
  border-radius: 13px;
  font-size: 26px;
}

.sidebar-brand strong {
  font-size: 19px;
}

.sidebar-brand small {
  letter-spacing: .07em;
  font-size: .61rem;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-link {
  display: flex;
  align-items: center;
  min-height: 47px;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #324a3d;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 700;
  transition: background .16s,border-color .16s;
}

.side-link:hover {
  background: #f0f3e9;
  color: var(--deepest);
}

.side-link.active {
  background: #e5eee2;
  color: #254a38;
  border-color: #d3e3d1;
  box-shadow: inset 3px 0 #527c61;
}

.sidebar-foot {
  margin-top: auto;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 3px 4px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  min-width: 0;
}

.sidebar-profile strong {
  display: block;
  font-size: .78rem;
  line-height: 1.25;
}

.sidebar-profile small {
  display: block;
  font-size: .72rem;
}

.profile-avatar {
  display: grid;
  place-items: center;
  color: #3c6151;
  background: var(--sage);
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border-radius: 11px;
}

.side-portal {
  font-size: .8rem;
}

.workspace {
  min-width: 0;
  background-image: linear-gradient(180deg,#f6f5ef83,#f6f5ef 480px),url('/assets/botanica.webp');
  background-size: 100% 520px,100% 520px;
  background-repeat: no-repeat;
  background-position: top center;
}

.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 71px;
  padding: 11px clamp(14px,3.2vw,43px);
  border-bottom: 1px solid #d9e3d5;
  background: #fffdf7f0;
}

.work-location {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}

.work-location a {
  color: var(--muted);
  text-decoration: none;
}

.work-location strong {
  color: var(--ink);
}

.crumb-sep {
  color: #768b7c;
}

.work-content {
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(15px,3vw,38px) clamp(13px,3vw,42px) 0;
}

.work-footer {
  max-width: 1540px;
  margin: auto;
  padding: 20px clamp(13px,3vw,42px) 28px;
  font-size: .79rem;
  color: var(--muted);
}

.work-footer span {
  margin: 0 6px;
}

.dash-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 20px;
  background: #e7eee0 url('/assets/botanica.webp') center right/cover;
  border: 1px solid #dce7d9;
  border-radius: 26px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: clamp(21px,4.3vw,51px);
  margin-bottom: 20px;
}

.dash-hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(92deg,#f0f5e9 10%,#f0f5e9e6 47%,#f0f5e98a 78%,#e8efe07a);
  z-index: -1;
}

.dash-hero h1 {
  font-size: clamp(35px,4vw,59px);
  margin-bottom: 11px;
}

.dash-hero p {
  color: #465d4e;
  max-width: 43ch;
  margin-bottom: 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(155px,100%),1fr));
  gap: 12px;
  margin-bottom: 19px;
}

.kpi,.dash-box {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px 17px;
  box-shadow: 0 7px 18px #1f432810;
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.kpi-value {
  font: 400 clamp(30px,3.5vw,43px)/1 Editorial,Georgia,serif;
  margin: 10px 0 4px;
  color: var(--deepest);
  overflow-wrap: anywhere;
}

.kpi .tile-icon,.shortcut .tile-icon {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: #2d5744;
  flex: none;
}

.kpi:nth-child(2n) .tile-icon,.shortcut:nth-child(2n) .tile-icon {
  background: var(--violet);
  color: #4b4164;
}

.kpi:nth-child(3n) .tile-icon,.shortcut:nth-child(3n) .tile-icon {
  background: var(--clay);
  color: #654620;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: 15px;
  margin-bottom: 19px;
}

.dash-box h2 {
  font-size: clamp(22px,2.25vw,31px);
  margin: 0;
}

.dash-box .section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #e7ebe2;
}

.mini-list {
  display: grid;
  gap: 6px;
}

.mini-visit {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 60px;
}

.mini-visit:hover {
  background: #f0f5eb;
  border-color: #dae8d7;
}

.mini-visit small,.mini-visit strong {
  display: block;
}

.mini-visit .mini-date {
  display: grid;
  place-items: center;
  background: #edf1e8;
  border-radius: 9px;
  width: 44px;
  height: 45px;
  font-size: .68rem;
  color: var(--deep);
  line-height: 1.05;
}

.mini-date b {
  font-size: 1.07rem;
}

.mini-arrow {
  font-size: 1.12rem;
  color: #577869;
}

.empty {
  border: 1px dashed #c8d7cb;
  background: #f5f8f0;
  border-radius: 12px;
  padding: 19px 13px;
  text-align: center;
  color: var(--muted);
}

.empty p {
  margin: 3px 0 6px;
}

.empty strong {
  color: var(--deepest);
}

.chart {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.chart-line {
  display: grid;
  grid-template-columns: 31px 1fr 25px;
  align-items: center;
  gap: 9px;
  min-height: 22px;
  font-size: .78rem;
  color: var(--muted);
}

.chart-line strong {
  text-align: right;
  color: #284b39;
}

.report-tools, .report-tools form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.report-tools label {
  margin: 0;
}

.report-chart {
  max-width: 760px;
  margin-top: 20px;
  padding: 16px;
  background: #f6f8f2;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.report-chart h2 {
  margin-top: 0;
  font-size: 1.7rem;
}

.report-chart .chart-line {
  grid-template-columns: minmax(85px, 1fr) minmax(55px, 2fr) 27px;
}

progress {
  appearance: none;
  width: 100%;
  height: 9px;
  border: 0;
  background: #ecf1e8;
  border-radius: 9px;
  overflow: hidden;
  color: #507d63;
}

progress::-webkit-progress-bar {
  background: #ecf1e8;
  border-radius: 9px;
}

progress::-webkit-progress-value {
  background: #507d63;
  border-radius: 9px;
}

progress::-moz-progress-bar {
  background: #507d63;
  border-radius: 9px;
}

.shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(210px,100%),1fr));
  gap: 11px;
}

.shortcut {
  border: 1px solid var(--line);
  background: #fffef9;
  padding: 12px;
  min-height: 72px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 7px 18px #1f432809;
}

.shortcut:hover {
  background: #f1f6ec;
  border-color: #c7d9c7;
}

.shortcut strong,.shortcut small {
  display: block;
}

.shortcut small {
  font-size: .74rem;
  margin-top: 2px;
}

details {
  margin: 13px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 13px;
  background: #fdfef9;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #2b5944;
  min-height: 38px;
  padding: 7px 4px;
  border-radius: 6px;
}

summary:hover {
  background: #e9f1e5;
}

.form-toggle {
  padding: 11px 14px;
  border-color: #cfddcd;
  background: #f3f7ee;
}

.form-toggle>summary {
  padding: 8px 6px;
}

article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf5;
  margin: 9px 0;
  min-width: 0;
}

.metrics,.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(185px,100%),1fr));
  gap: 12px;
}

.metrics strong {
  display: block;
  font-size: 1.3rem;
}

.metrics article {
  margin: 0;
}

.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 8px;
}

.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.calendar-top p {
  margin: 0;
}

.week {
  display: grid;
  grid-template-columns: repeat(7,minmax(125px,1fr));
  gap: 7px;
  overflow: auto;
  padding-bottom: 8px;
}

.day {
  background: #f6f8f2;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px;
  min-height: 155px;
  min-width: 0;
}

.day.is-today {
  border-color: #76977d;
  background: #eaf2e6;
}

.day h3 {
  padding: 5px 3px;
  margin: 0 0 6px;
  font-size: .88rem;
}

.day h3 span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 400;
}

.day article {
  background: #fff;
  margin: 6px 0;
  padding: 7px;
  font-size: .8rem;
}

.day article a {
  display: block;
  min-height: 35px;
}

.day article.cancelled {
  border-style: dashed;
  background: #fdf4f3;
  color: #734a41;
}

.day article .badge {
  font-size: .68rem;
}

.day-block {
  background: #f4ebdf!important;
}

.day-empty {
  font-size: .77rem;
  color: #50655a;
  margin: 6px 2px;
}

.agenda-form-grid {
  margin-top: 14px;
}

.directory-list {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.directory-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  min-height: 54px;
}

.directory-item:hover {
  background: #eef4ea;
}

.directory-item strong,.directory-item small {
  display: block;
}

.directory-item .mini-arrow {
  margin-left: auto;
}

.patient-jump {
  position: sticky;
  top: 6px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffef9f7;
  padding: 8px;
  margin: 0 0 18px;
}

.patient-jump .button {
  min-height: 42px;
}

.session-lead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-group {
  background: #f9faf4;
  margin: 12px 0;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: .15s ease-in both view-out;
}

::view-transition-new(root) {
  animation: .26s cubic-bezier(.22,.61,.36,1) both view-in;
}

@keyframes view-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports not (view-transition-name:root) {
  .public-content,.work-content {
    animation: .23s ease-out both view-in;
  }
}

@media(prefers-reduced-motion:reduce) {
  @view-transition {
    navigation: none;
  }
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

@media(max-width:1130px) {
  .app-shell {
    grid-template-columns: 197px minmax(0,1fr);
  }
  .sidebar {
    padding-inline: 9px;
  }
  .sidebar-brand strong {
    font-size: 17px;
  }
  .sidebar-brand small {
    font-size: .55rem;
  }
  .work-content {
    padding-inline: 18px;
  }
  .work-top {
    padding-inline: 18px;
  }
  .week {
    grid-template-columns: repeat(7,minmax(115px,1fr));
  }
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:850px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    gap: 11px;
  }
  .sidebar-brand .brand-mark {
    height: 37px;
    width: 37px;
    flex-basis: 37px;
  }
  .side-nav {
    grid-template-columns: repeat(auto-fit,minmax(122px,1fr));
    gap: 4px;
  }
  .side-link {
    min-height: 43px;
    padding: 7px 8px;
    font-size: .82rem;
    gap: 6px;
  }
  .sidebar-foot {
    display: none;
  }
  .work-top {
    min-height: 58px;
  }
  .hero {
    min-height: 370px;
  }
  .hero-copy {
    padding: 27px;
  }
  .hero h1 {
    font-size: clamp(38px,6.7vw,58px);
  }
  .public-body {
    grid-template-columns: minmax(0,1.35fr) minmax(215px,1fr);
    gap: 12px;
  }
}

@media(max-width:620px) {
  html {
    scroll-padding-block: 18px;
  }
  .public-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 13px 0;
  }
  .public-header nav {
    width: 100%;
  }
  .public-header .button {
    min-height: 41px;
    flex: 1 1 auto;
  }
  .brand-mark {
    height: 41px;
    width: 41px;
    flex-basis: 41px;
    border-radius: 12px;
  }
  .public-content {
    margin-top: 7px;
  }
  .hero {
    grid-template-columns: 1fr;
    border-radius: 21px;
    margin-bottom: 14px;
  }
  .hero-copy {
    padding: 23px 19px 18px;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(33px,10vw,51px);
    margin-bottom: 12px;
  }
  .hero-copy>p:not(.eyebrow) {
    margin-bottom: 14px;
  }
  .hero-photo {
    min-height: 206px;
  }
  .hero-photo img {
    object-position: 66% 59%;
  }
  .public-body {
    grid-template-columns: 1fr;
  }
  .hero .eyebrow {
    margin-bottom: 8px;
  }
  .public-footer {
    padding-top: 10px;
  }
  .public-footer .button {
    width: 100%;
  }
  .side-nav {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .work-top {
    padding: 9px 13px;
  }
  .work-location a,.crumb-sep {
    display: none;
  }
  .work-location strong {
    font-size: .79rem;
  }
  .work-content {
    padding-inline: 10px;
  }
  .dash-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dash-hero .button {
    justify-self: start;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .kpi,.dash-box {
    padding: 12px;
  }
  .kpi-head {
    font-size: .76rem;
  }
  .kpi .tile-icon {
    width: 30px;
    height: 30px;
  }
  .kpi-value {
    font-size: clamp(25px,7.3vw,36px);
  }
  .kpi small {
    font-size: .71rem;
  }
  .week {
    grid-template-columns: repeat(2,minmax(0,1fr));
    overflow: visible;
  }
  .day {
    min-height: 103px;
  }
  .top-new {
    padding: 8px 9px;
    min-height: 42px;
    font-size: .75rem;
  }
  .patient-jump {
    position: relative;
    top: 0;
  }
  .patient-jump .button {
    flex: 1 1 40%;
  }
}

@media(max-width:620px) {
  .public-header .button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: .84rem;
    gap: 5px;
  }
  summary {
    min-height: 44px;
  }
}
