@charset "UTF-8";
:root {
  --ink: #19382f;
  --text: #32483f;
  --muted: #66736b;
  --green: #087969;
  --green-dark: #075c50;
  --mint: #e0f4ed;
  --accent: #6953ad;
  --accent-soft: #f0ecfb;
  --focus: #b85f16;
  --line: #e3e8e2;
  --paper: #f5f8f7;
  --white: #fff;
  --orange: #d99458;
  --shadow: 0 8px 30px #1c3b2d08;
  --radius: 16px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.22;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin-bottom: 12px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.3px;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 0.9375rem;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--green);
  display: block;
  margin-bottom: 12px;
}
.eyebrow.light {
  color: #b3d4c1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 11px 17px;
  font-weight: 600;
  font-size: 1rem;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: var(--green-dark);
}
.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--paper);
}
.ghost {
  background: transparent;
  color: var(--green);
}
.danger {
  background: #fff1ed;
  color: #a33a31;
  border-color: #f1d6cf;
}
.wide {
  width: 100%;
}
.btn.small {
  font-size: 0.9375rem;
  padding: 7px 12px;
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-weight: 600;
  text-align: left;
}
.icon-button {
  border: 1px solid var(--line);
  background: white;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--mint);
}
.brand {
  font-weight: 650;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -1.1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-dot {
  color: var(--green);
  margin-left: -9px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  border-radius: 11px;
  width: 34px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--green);
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #5b9979;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #e8eee4;
  color: #63734d;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.9375rem;
  background: #e2eadd;
}
.avatar.lg {
  width: 66px;
  height: 66px;
  font-size: 22px;
}
.tone-1 {
  background: #f6e9df;
  color: #a97c59;
}
.tone-2 {
  background: #e8e9f4;
  color: #7c7e9b;
}
.tone-3 {
  background: #e0edef;
  color: #668c90;
}
.tone-4 {
  background: #ececdf;
  color: #8b8d63;
}
label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--ink);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3db;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  min-height: 42px;
}
input::placeholder {
  color: #68766c;
}
input[type="checkbox"] {
  width: auto;
  min-height: 0;
  accent-color: var(--green);
}
input[type="date"],
input[type="time"] {
  min-width: 0;
}
.field {
  margin-bottom: 17px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-help {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 650;
  padding: 4px 9px;
  line-height: 1.4;
  border-radius: 6px;
  white-space: nowrap;
  background: #f0f3ed;
  color: #66715f;
}
.badge:before {
  content: "";
  height: 5px;
  width: 5px;
  background: currentColor;
  border-radius: 50%;
}
.badge.Confirmed {
  color: #287759;
  background: #e8f3ec;
}
.badge.Scheduled {
  color: #9c6a2d;
  background: #fbf1df;
}
.badge.Completed {
  color: #657f9c;
  background: #ebf0f6;
}
.badge.Cancelled {
  color: #99716d;
  background: #f5ebea;
}
.badge.NoShow {
  color: #94616f;
  background: #f4e8ed;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px 16px;
}
.card-head h3 {
  margin: 0;
}
.card-body {
  padding: 0 24px 24px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.inline-note {
  font-size: 0.9375rem;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f3f6ef;
  color: #697962;
}
.inline-note.warning {
  background: #fcf5e7;
  color: #8c6e3f;
}
.inline-error {
  color: #a33a31;
  background: #fff0ec;
  border: 1px solid #f1d5cf;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.empty-state {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-icon {
  font-size: 29px;
  display: block;
  margin-bottom: 10px;
  color: #89a092;
}
.empty-state h3 {
  margin-bottom: 8px;
}
.loading-state {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.welcome {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.welcome-story {
  background: #234e40;
  padding: 45px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  color: #c9dcd0;
}
.welcome-story .brand {
  color: white;
}
.welcome-story .brand-mark {
  background: #5d8972;
}
.welcome-story .brand-dot {
  color: #b8d7a4;
}
.welcome-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
  max-width: 510px;
}
.welcome-copy h1 {
  font-size: 70px;
  color: #f6f4e9;
  letter-spacing: -3px;
  line-height: 1.06;
  font-weight: 450;
  margin: 25px 0;
}
.welcome-copy h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #c8d5b3;
}
.welcome-copy p {
  max-width: 325px;
  font-size: 1.0625rem;
  line-height: 1.9;
}
.welcome-story footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  opacity: 0.75;
  padding-top: 70px;
  position: relative;
  z-index: 1;
}
.welcome-art {
  position: absolute;
  right: -150px;
  bottom: 60px;
  width: 430px;
  height: 350px;
}
.orbit {
  position: absolute;
  border: 1px solid #71937945;
  border-radius: 50%;
  width: 450px;
  height: 450px;
  transform: rotate(-30deg);
}
.orbit-two {
  width: 320px;
  height: 500px;
  left: 70px;
  top: -100px;
}
.art-card {
  position: absolute;
  bottom: 60px;
  right: 170px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 24px;
  background: #f9f8ef;
  border-radius: 15px;
  box-shadow: 0 15px 50px #102d3922;
  transform: rotate(-7deg);
  width: 280px;
  color: var(--ink);
}
.art-card small {
  display: block;
  font-size: 0.875rem;
  margin-top: 3px;
  color: var(--muted);
}
.art-check {
  border-radius: 50%;
  background: #e6f0df;
  color: var(--green);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.welcome-form {
  padding: 80px 13%;
  align-self: center;
  max-width: 720px;
}
.welcome-form h2 {
  font-size: 39px;
  letter-spacing: -1.6px;
  margin: 23px 0 15px;
}
.welcome-form > p {
  font-size: 1rem;
  line-height: 1.8;
}
.role-tabs {
  display: flex;
  background: #e9eee6;
  padding: 5px;
  border-radius: 10px;
  margin: 28px 0;
}
.role-tabs button {
  flex: 1;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 7px;
  border-radius: 7px;
  color: var(--muted);
}
.role-tabs button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 5px #00000008;
}
.role-description {
  font-size: 0.9375rem;
  min-height: 42px;
  margin: 14px 0 23px;
  color: var(--muted);
}
.demo-notice {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin: 32px 0 18px;
  font-size: 0.9375rem;
}
.demo-notice strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.demo-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: #fafbf7;
  border-right: 1px solid var(--line);
  padding: 24px 22px max(22px, env(safe-area-inset-bottom));
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #b5c5b5 transparent;
  scroll-padding-block: 16px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar > * {
  flex-shrink: 0;
}
.sidebar:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.sidebar .brand {
  padding: 0 7px;
  margin-bottom: 18px;
}
.workspace-label {
  font-size: 0.875rem;
  letter-spacing: 1.6px;
  color: #6e7968;
  margin: 0 12px 12px;
  line-height: 1.6;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  color: #718073;
  font-size: 0.9375rem;
  margin: 4px 0;
  transition: background 0.15s;
}
.nav-item > span {
  font-size: 19px;
  line-height: 1;
  width: 21px;
  flex-shrink: 0;
  text-align: center;
  color: #8e9b8e;
}
.nav-item:hover {
  background: #eff3eb;
}
.nav-item.active {
  background: #e7efe4;
  color: #325d41;
  font-weight: 650;
}
.nav-item.active > span {
  color: #52795a;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
}
.sidebar-account-actions {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.sidebar-bottom .switch-user {
  align-items: center;
  width: 100%;
  margin: 2px 0;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.sidebar-bottom .switch-user:hover {
  background: #eff3eb;
  color: var(--ink);
}
.sidebar-bottom .switch-user > span[aria-hidden] {
  width: 21px;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.1875rem;
}
.help-card {
  background: #eef2e7;
  border: 1px solid #e4eadb;
  border-radius: 11px;
  padding: 17px 15px;
  margin-bottom: 18px;
}
.help-card strong {
  display: block;
  font-size: 0.875rem;
  margin: 10px 0 5px;
}
.help-card p {
  color: #819077;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}
.mini-cross {
  color: #748964;
  font-size: 20px;
}
.switch-user {
  display: flex;
  gap: 12px;
  padding: 12px 10px;
  font-size: 0.9375rem;
  color: #6b7d6c;
  margin-bottom: 17px;
}
.sidebar-bottom .demo-label {
  font-size: 0.875rem;
  padding: 12px 14px 0;
  color: #63785d;
}
.main-shell {
  margin-left: 235px;
  width: calc(100% - 235px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 81px;
  border-bottom: 1px solid var(--line);
  background: #fff9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 18px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb {
  font-size: 0.875rem;
  color: #647261;
}
.breadcrumb span {
  margin: 0 13px;
  color: #bac3b7;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4c6150;
}
.zone-label {
  font-size: 0.875rem;
  color: #697665;
  margin-right: 10px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}
.user-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  max-width: 245px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-info small {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1px;
}
.mobile-menu {
  display: none;
}
#main-content {
  padding: 35px 36px 40px;
  flex: 1;
  outline: 0;
}
.app-footer {
  font-size: 0.875rem;
  color: #93a08e;
  padding: 17px 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
.page-heading p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.page-heading .eyebrow {
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.hero-banner {
  border-radius: 16px;
  background: #e9eee0;
  border: 1px solid #e2e7d6;
  padding: 31px 34px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
}
.hero-banner h2 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1px;
  max-width: 420px;
  margin-bottom: 13px;
}
.hero-banner h2 em {
  font-family: Georgia, serif;
  color: #7c8e65;
  font-weight: 400;
}
.hero-banner p {
  font-size: 0.9375rem;
  color: #7f8c70;
  max-width: 370px;
}
.hero-banner .btn {
  font-size: 0.875rem;
  padding: 9px 14px;
}
.hero-visual {
  width: 190px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.hero-visual:before,
.hero-visual:after {
  content: "";
  position: absolute;
  border: 1px solid #c4d0b7;
  width: 170px;
  height: 170px;
  border-radius: 50%;
}
.hero-visual:after {
  width: 125px;
  height: 210px;
  transform: rotate(35deg);
}
.hero-plus {
  font-size: 100px;
  color: #acbb96;
  transform: rotate(-12deg);
  font-weight: 200;
  z-index: 1;
  line-height: 1;
}
.hero-tag {
  z-index: 2;
  font-size: 0.875rem;
  background: #fffffff0;
  padding: 8px 14px;
  border-radius: 8px;
  position: absolute;
  bottom: 17px;
  left: -15px;
  box-shadow: 0 8px 20px #4f683710;
  transform: rotate(-5deg);
  color: #738661;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat-card {
  padding: 19px 21px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  position: relative;
}
.stat-label {
  color: #65745d;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 11px;
}
.stat-value {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 600;
  color: var(--ink);
}
.stat-note {
  font-size: 0.875rem;
  color: #65725c;
  margin-top: 10px;
}
.stat-symbol {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #849774;
  border-radius: 8px;
  background: #f2f5ed;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 22px;
}
.appointment-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 23px;
  border-top: 1px solid #f0f2ec;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
}
.appointment-row:hover {
  background: #fafbf7;
}
.appointment-row .row-info {
  flex: 1;
  min-width: 0;
}
.row-info strong {
  display: block;
  font-size: 0.9375rem;
  color: #3e5744;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-info small {
  display: block;
  font-size: 0.875rem;
  color: #6b795f;
  margin-top: 3px;
}
.row-time {
  font-size: 0.9375rem;
  color: #4d6651;
  white-space: nowrap;
}
.row-time small {
  display: block;
  font-size: 0.875rem;
  color: #69775f;
}
.section-link {
  font-size: 0.875rem;
  color: #758b69;
  background: none;
  border: 0;
  padding: 0;
}
.week-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 175px;
  gap: 14px;
  padding: 22px 8px 0;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  flex: 1;
}
.chart-bar {
  background: #dce8d4;
  width: 100%;
  max-width: 28px;
  border-radius: 5px 5px 2px 2px;
  min-height: 3px;
}
.chart-col.current .chart-bar {
  background: #708968;
}
.chart-col small {
  font-size: 0.875rem;
  color: #64735c;
}
.chart-count {
  font-size: 0.875rem;
  color: #7e9272;
}
.week-chart-caption {
  font-size: 0.875rem;
  color: #69765f;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 13px;
}
.quick-list {
  padding: 0 24px 22px;
}
.quick-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #eef1e9;
  background: none;
  font-size: 0.9375rem;
  text-align: left;
  color: #59764e;
}
.quick-list button:last-child {
  border-bottom: 0;
}
.quick-list small {
  display: block;
  color: #69765e;
  font-size: 0.875rem;
  margin-top: 3px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 190px;
}
.search-field:before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 5px;
  font-size: 23px;
  color: #8a9983;
}
.search-field input {
  padding-left: 40px;
}
.toolbar select {
  width: auto;
  max-width: 330px;
  font-size: 0.9375rem;
}
.results-count {
  font-size: 0.875rem;
  color: #67785f;
  margin: 0 0 18px;
}
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.doctor-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.doctor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #2d432512;
}
.doctor-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.doctor-card h3 {
  font-size: 1rem;
  margin: 0 0 7px;
  line-height: 1.4;
}
.doctor-card .specialty {
  font-size: 0.875rem;
  color: #7f8e77;
  min-height: 34px;
}
.doctor-card-meta {
  font-size: 0.875rem;
  color: #667360;
  margin: 12px 0 20px;
  display: flex;
  gap: 15px;
}
.doctor-card-actions {
  display: flex;
  gap: 9px;
  margin-top: auto;
}
.doctor-card-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  padding: 9px;
}
.profile-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.profile-header h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.profile-header p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.schedule-summary {
  list-style: none;
  margin: 10px 0 20px;
  padding: 0;
}
.schedule-summary li {
  padding: 9px 0;
  border-bottom: 1px solid #eef1ea;
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.schedule-summary strong {
  font-weight: 600;
  color: #56724c;
}
.source-notes {
  font-size: 0.9375rem;
  color: #657159;
  background: var(--paper);
  border-radius: 9px;
  padding: 14px;
  line-height: 1.8;
}
.source-notes p:last-child {
  margin: 0;
}
.chip-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #edf1e8;
  border-radius: 8px;
  width: max-content;
  margin-bottom: 20px;
  max-width: 100%;
}
.chip-tabs button {
  background: none;
  border: 0;
  padding: 7px 15px;
  font-size: 0.875rem;
  border-radius: 5px;
  color: #839078;
}
.chip-tabs .active {
  background: white;
  color: #476638;
  box-shadow: 0 2px 5px #304f2609;
}
.table-wrap {
  position: relative;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 0.875rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  color: #65745d;
  padding: 15px 22px;
  background: #fafbf7;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #edf1e9;
  font-size: 0.875rem;
  color: #6e8262;
}
tr:last-child td {
  border-bottom: 0;
}
.table-person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.table-person .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}
.table-person strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b6540;
}
.table-person small {
  display: block;
  font-size: 0.875rem;
  color: #67775e;
}
.table-date strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #506745;
}
.table-date small {
  font-size: 0.875rem;
  color: #69785f;
}
.table-action {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 6px 10px;
  color: #6a855b;
  font-size: 0.875rem;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  gap: 20px;
}
.calendar-panel {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
}
.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}
.calendar-nav h2 {
  font-size: 1.125rem;
  min-width: 145px;
  margin: 0 8px;
}
.calendar-views {
  display: flex;
  gap: 3px;
  background: #f1f4ed;
  border-radius: 7px;
  padding: 3px;
}
.calendar-views button {
  border: 0;
  border-radius: 5px;
  padding: 6px 11px;
  background: none;
  font-size: 0.875rem;
  color: #819277;
}
.calendar-views button.active {
  background: white;
  color: #466c38;
  box-shadow: 0 1px 4px #00000008;
}
.calendar-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  font-size: 0.875rem;
  color: #6c795f;
}
.calendar-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
}
.calendar-aside .card {
  margin-bottom: 17px;
}
.calendar-aside .card-head {
  padding: 20px 18px 15px;
}
.calendar-aside .card-head h3 {
  font-size: 1rem;
}
.calendar-aside .card-body {
  padding: 0 18px 18px;
}
.calendar-aside p {
  font-size: 0.875rem;
  color: #91a185;
}
.calendar-aside .schedule-summary li {
  font-size: 0.875rem;
  padding: 8px 0;
}
.calendar-aside .avatar {
  margin-bottom: 13px;
}
.calendar-aside h4 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.fc {
  --fc-border-color: #edf1e9;
  --fc-today-bg-color: #f6f9f0;
  --fc-neutral-bg-color: #f7f8f4;
  --fc-page-bg-color: white;
  --fc-now-indicator-color: #b9955c;
  --fc-event-text-color: #45663d;
  font-size: 0.875rem;
}
.fc .fc-col-header-cell-cushion {
  font-size: 0.875rem;
  font-weight: 500;
  color: #849479;
  padding: 11px 3px;
}
.fc .fc-timegrid-slot {
  height: 33px;
}
.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
  font-size: 0.875rem;
  color: #69765e;
}
.fc .fc-timegrid-event {
  box-shadow: none;
  border-radius: 5px;
  margin: 1px 3px;
  border: 0;
  border-left: 3px solid #719d7d;
  background: #e4f0e5;
  padding: 3px 6px;
  cursor: pointer;
}
.fc .fc-timegrid-event .fc-event-main {
  color: #486a40;
}
.fc .fc-event-time {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  opacity: 0.8;
}
.fc .fc-event-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.fc .fc-daygrid-day-number {
  color: #85957c;
  font-size: 0.875rem;
  padding: 8px;
}
.fc .fc-daygrid-event {
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.875rem;
  cursor: pointer;
}
.fc .fc-event.Scheduled {
  background: #faf0db;
  border-color: #cba05b;
}
.fc .fc-event.Scheduled .fc-event-main {
  color: #977744;
}
.fc .fc-event.Completed {
  background: #e9eef4;
  border-color: #94a8bc;
}
.fc .fc-event.Completed .fc-event-main {
  color: #6e8198;
}
.fc .fc-event.Cancelled {
  background: #f4e8e6;
  border-color: #c6a09b;
  opacity: 0.65;
  text-decoration: line-through;
}
.fc .fc-event.NoShow {
  background: #f0e4ea;
  border-color: #c094aa;
}
.fc .fc-bg-event {
  opacity: 0.4;
}
.fc .fc-non-business {
  background: #edf0e9;
  opacity: 0.65;
}
.fc .fc-timegrid-now-indicator-line {
  border-width: 1px;
}
.calendar-load {
  font-size: 0.875rem;
  color: #8c9d7e;
  min-height: 18px;
}
.mobile-calendar-note {
  display: none;
}
.patient-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.patient-card {
  padding: 22px;
}
.patient-card h3 {
  font-size: 1rem;
  margin: 13px 0 6px;
}
.patient-card p {
  font-size: 0.875rem;
  color: #667360;
  margin-bottom: 7px;
  word-break: break-word;
}
.patient-card .btn {
  margin-top: 12px;
}
.schedule-editor {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 23px;
}
.schedule-editor .card {
  padding: 24px;
}
.period-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 34px;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.period-row input,
.period-row select {
  font-size: 0.875rem;
  padding: 7px;
  min-height: 35px;
}
.exception-row {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}
.exception-row strong {
  display: block;
  color: #647c54;
  font-size: 0.875rem;
}
.exception-row small {
  display: block;
  color: #90a080;
}
.reset-panel {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid #e6e9e0;
  border-radius: 12px;
  font-size: 0.9375rem;
}
.reset-panel p {
  margin: 3px 0 0;
  color: #8c9a80;
  font-size: 0.875rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 28px;
  max-width: 610px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 100px #193b3b30;
  color: var(--text);
}
dialog::backdrop {
  background: #163b3259;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
.dialog-header h2 {
  font-size: 24px;
  margin: 0;
}
.dialog-header .eyebrow {
  font-size: 0.875rem;
  margin-bottom: 7px;
}
.dialog-header .icon-button {
  border: 0;
  background: #f1f5ed;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 20px;
}
.dialog-actions.spread {
  justify-content: space-between;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 23px;
}
.step {
  flex: 1;
  font-size: 0.875rem;
  color: #68745d;
  border-bottom: 2px solid #e8ede1;
  padding-bottom: 10px;
}
.step.active {
  border-color: #7e9d6b;
  color: #5f804c;
}
.slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 13px 0 19px;
}
.slot {
  border: 1px solid #dce5d3;
  background: #f8fbf4;
  color: #6a8658;
  border-radius: 7px;
  padding: 9px 4px;
  font-size: 0.875rem;
}
.slot:hover,
.slot.selected {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.slots-label {
  font-size: 0.875rem;
  color: #7e9270;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.booking-context {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  background: #f5f7f0;
  border-radius: 11px;
  margin-bottom: 22px;
}
.booking-context strong {
  display: block;
  font-size: 1rem;
  color: #527340;
}
.booking-context small {
  display: block;
  font-size: 0.875rem;
  color: #6b795f;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 6px 0;
}
.detail-list dt {
  font-size: 0.875rem;
  color: #6d7864;
  margin-bottom: 5px;
}
.detail-list dd {
  margin: 0;
  color: #5a7849;
  font-size: 1rem;
  font-weight: 500;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  background: #e7f2e0;
  color: #6c9855;
  border-radius: 50%;
  font-size: 28px;
  margin: 5px auto 18px;
}
.success-view {
  text-align: center;
  padding: 4px 0 12px;
}
.success-view h3 {
  font-size: 22px;
}
.success-view p {
  font-size: 1rem;
  color: #5f7552;
  line-height: 1.8;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #244d3c;
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  box-shadow: 0 8px 30px #28452e22;
  font-size: 0.9375rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #934739;
}
#confirm-dialog {
  max-width: 420px;
}
#confirm-dialog p {
  color: #879879;
  font-size: 1rem;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
.error-page {
  text-align: center;
  margin: 15vh auto;
  max-width: 650px;
  padding: 25px;
}
.error-page .brand-mark {
  margin-bottom: 25px;
}
.error-page p {
  color: var(--muted);
}
.error-page .btn {
  margin: 6px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1550px) {
  #main-content {
    padding-left: 50px;
    padding-right: 50px;
  }
  .doctor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
  }
  .stats-grid {
    gap: 22px;
  }
  .overview-grid {
    grid-template-columns: 1.7fr 1fr;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .main-shell {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  #main-content {
    padding: 27px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-aside {
    display: none;
  }
  .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-story {
    padding: 40px;
  }
  .welcome-copy h1 {
    font-size: 60px;
  }
  .welcome-form {
    padding: 60px 10%;
  }
  .welcome-art {
    right: -190px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-symbol {
    right: 12px;
    top: 13px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 180px;
    padding: 25px 12px max(25px, env(safe-area-inset-bottom));
  }
  .sidebar .brand {
    font-size: 23px;
  }
  .main-shell {
    margin-left: 180px;
    width: calc(100% - 180px);
  }
  .workspace-label {
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-left: 8px;
  }
  .nav-item {
    font-size: 0.875rem;
    padding: 11px 10px;
    gap: 9px;
  }
  #main-content {
    padding: 25px 20px;
  }
  .topbar {
    padding: 0 20px;
    height: 70px;
  }
  .zone-label {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .patient-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .schedule-editor {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    padding: 25px;
  }
  .hero-visual {
    width: 130px;
  }
  .hero-tag {
    left: -45px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .welcome-copy h1 {
    font-size: 50px;
  }
  .welcome-story {
    padding: 30px;
  }
  .welcome-art {
    display: none;
  }
  .welcome-form h2 {
    font-size: 33px;
  }
  .welcome-story footer {
    display: block;
  }
  .welcome-story footer span {
    display: block;
    margin-top: 8px;
  }
  .welcome-form {
    padding: 50px 10%;
  }
  .topbar .user-info strong {
    max-width: 150px;
  }
  .app-footer {
    padding: 17px 20px;
  }
  .app-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 650px) {
  .welcome {
    display: block;
  }
  .welcome-story {
    min-height: 0;
    padding: 27px;
  }
  .welcome-copy {
    padding: 42px 0 15px;
  }
  .welcome-copy h1 {
    font-size: 46px;
    margin: 15px 0;
  }
  .welcome-copy h1 br:nth-child(2) {
    display: none;
  }
  .welcome-copy p {
    display: none;
  }
  .welcome-story footer {
    display: none;
  }
  .welcome-form {
    padding: 35px 27px 45px;
  }
  .welcome-form h2 {
    font-size: 30px;
  }
  .welcome-form h2 br {
    display: none;
  }
  .demo-notice {
    margin-top: 25px;
  }
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s, visibility 0.2s;
    width: 225px;
    box-shadow: 15px 0 50px #23432825;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar .brand {
    font-size: 28px;
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fafbf7f5;
    backdrop-filter: blur(10px);
  }
  .breadcrumb {
    display: none;
  }
  .user-info strong {
    font-size: 0.875rem;
    max-width: 205px !important;
  }
  .topbar-right .avatar {
    width: 31px;
    height: 31px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 0.875rem;
    max-width: 245px;
  }
  .page-heading > .btn {
    padding: 9px 11px;
    font-size: 0.875rem;
    margin-top: 19px;
  }
  .page-heading .eyebrow {
    font-size: 0.875rem;
  }
  #main-content {
    padding: 25px 16px;
  }
  .hero-banner {
    padding: 24px;
  }
  .hero-banner h2 {
    font-size: 25px;
  }
  .hero-visual {
    display: none;
  }
  .hero-banner p {
    max-width: none;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-label {
    font-size: 0.875rem;
    max-width: 110px;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-note {
    font-size: 0.875rem;
  }
  .stat-symbol {
    width: 23px;
    height: 23px;
    font-size: 0.875rem;
    right: 10px;
    top: 11px;
  }
  .stats-grid {
    gap: 10px;
  }
  .doctor-grid,
  .patient-card-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .doctor-card {
    padding: 21px;
  }
  .doctor-card .specialty {
    min-height: 0;
  }
  .toolbar {
    gap: 9px;
  }
  .toolbar select {
    max-width: 100%;
    flex: 1;
    min-width: 0;
  }
  .toolbar .search-field {
    flex-basis: 100%;
  }
  .calendar-panel {
    padding: 12px 8px;
  }
  .calendar-top {
    padding: 5px 4px;
    gap: 13px;
  }
  .calendar-nav {
    gap: 5px;
    width: 100%;
  }
  .calendar-nav h2 {
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    margin: 0 4px;
  }
  .calendar-nav .icon-button {
    width: 28px;
    height: 29px;
    font-size: 1.0625rem;
  }
  .calendar-top .calendar-views {
    width: 100%;
  }
  .calendar-views button {
    flex: 1;
  }
  .fc .fc-timegrid-slot {
    height: 38px;
  }
  .fc .fc-col-header-cell-cushion {
    font-size: 0.875rem;
  }
  .calendar-legend {
    font-size: 0.875rem;
    gap: 9px;
  }
  .mobile-calendar-note {
    display: block;
    color: #98a38d;
    font-size: 0.875rem;
    padding: 10px 5px 0;
  }
  .appointment-row {
    padding: 16px;
    gap: 10px;
  }
  .appointment-row .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
  }
  .row-info strong {
    font-size: 0.875rem;
  }
  .row-info small {
    font-size: 0.875rem;
  }
  .appointment-row .badge {
    display: none;
  }
  .card-head {
    padding: 20px 18px 15px;
  }
  .card-head h3 {
    font-size: 1.0625rem;
  }
  .card-body {
    padding: 0 18px 20px;
  }
  .row-time {
    font-size: 0.875rem;
  }
  .schedule-editor .card {
    padding: 18px;
  }
  .period-row {
    gap: 5px;
    grid-template-columns: 1.1fr 1fr 1fr 28px;
  }
  .period-row input,
  .period-row select {
    padding: 6px 4px;
    font-size: 0.875rem;
  }
  .period-row .icon-button {
    width: 27px;
    height: 32px;
    font-size: 1.125rem;
  }
  .reset-panel {
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
  }
  .reset-panel .btn {
    font-size: 0.875rem;
    padding: 8px 11px;
  }
  .form-row {
    gap: 12px;
  }
  .slots {
    grid-template-columns: repeat(4, 1fr);
  }
  dialog {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .dialog-header h2 {
    font-size: 21px;
  }
  .detail-list {
    gap: 18px 14px;
  }
  .detail-list dd {
    font-size: 0.9375rem;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .btn {
    font-size: 0.9375rem;
  }
  .chip-tabs button {
    padding: 7px 11px;
    font-size: 0.875rem;
  }
  .source-notes {
    font-size: 0.875rem;
  }
  .schedule-summary li {
    font-size: 0.875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Account pages reuse the workspace palette and controls. */
.account-page{max-width:640px;margin:50px auto;padding:24px}.account-card{padding:32px;margin-top:28px}.account-admin{max-width:1180px;margin:30px auto;padding:24px}.account-admin .page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:32px 0}.account-section{padding:28px;margin:24px 0}.account-section>p{margin:12px 0 24px;font-size:1rem;line-height:1.7}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}.account-row{display:flex;justify-content:space-between;gap:24px;padding:22px 0;border-top:1px solid var(--border,#e3eae7)}.account-row p{font-size:0.9375rem;color:var(--muted);margin:8px 0}.account-actions{width:340px;max-width:100%}.account-actions details{margin-top:14px;font-size:1rem}.account-actions summary{cursor:pointer;margin-bottom:12px}.logout-button{background:transparent;border:0;cursor:pointer;font:inherit}.account-card .field{margin-top:20px}@media(max-width:650px){.account-grid{grid-template-columns:1fr}.account-row,.account-admin .page-heading{flex-direction:column;align-items:stretch}.account-admin{padding:14px}.account-section{padding:20px}}

/* Spacious calendar and reporting workspace. */
.calendar-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.calendar-panel { padding: 24px; min-width: 0; }
.calendar-panel .fc-timegrid-slot { height: 46px; }
.calendar-panel .fc-col-header-cell { padding: 9px 0; background: #f5f8f2; }
.calendar-panel .fc-day-today { background: #f3f8ec !important; }
.calendar-panel .fc-event { border-radius: 6px; padding: 3px 5px; }
.calendar-range { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.calendar-range label, .report-filter-grid label { display: grid; gap: 7px; font-size: 0.9375rem; color: var(--muted); }
.calendar-range input { width: 165px; }
#calendar-range-error { color: #a02d2d; font-size: 0.9375rem; }
.calendar-context { overflow: hidden; }
.calendar-context summary, .report-definitions summary { cursor: pointer; font-size: 1rem; font-weight: 600; }
.calendar-context .calendar-aside { display: block; padding: 0 24px 24px; }
.calendar-context .calendar-aside .card { margin: 0; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.calendar-context .calendar-aside .card-head { padding: 20px 0 12px; }
.calendar-context .calendar-aside .card-body { padding: 0; max-width: 680px; }
.calendar-context .calendar-aside p { color: var(--muted); font-size: 1rem; }
.calendar-context .calendar-aside .schedule-summary li { font-size: 1rem; }
.workspace-filters { margin-bottom: 24px; }
.report-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.report-filter-grid input, .report-filter-grid select { width: 100%; min-width: 0; }
.report-presets { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.report-presets .primary { margin-left: auto; }
.report-stats { margin: 16px 0; }
.report-stats .stat-card { min-width: 0; }
.report-stats .stat-label { white-space: normal; }
.report-definitions { margin: 20px 0 12px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.report-definitions p { font-size: 0.9375rem; line-height: 1.8; margin-top: 10px; max-width: 1000px; }
.report-caveat { margin-bottom: 20px; }
.report-chart-card, .report-table-card { margin-top: 20px; min-width: 0; }
.report-chart { display: flex; align-items: end; gap: 10px; padding: 24px; overflow-x: auto; }
.report-bar { flex: 1 0 24px; min-width: 24px; max-width: 110px; display: flex; align-items: center; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.report-bar i { display: block; width: 65%; background: linear-gradient(#84a575, #3f735e); border-radius: 5px 5px 0 0; }
.report-bar small { height: 36px; text-align: center; }
.report-table-card .card-head { flex-wrap: wrap; gap: 10px; }
.report-table-card .chip-tabs { flex-wrap: wrap; margin: 0; }
.report-table-card table { min-width: 1080px; font-variant-numeric: tabular-nums; }
.report-table-card tbody th { text-align: left; padding: 16px; font-size: 0.9375rem; font-weight: 500; max-width: 230px; }
@media (max-width: 650px) {
  .calendar-panel { padding: 12px; }
  .calendar-range { gap: 10px; }
  .calendar-range input { width: 145px; }
  .report-filter-grid { grid-template-columns: minmax(0, 1fr); }

  .report-presets .primary { margin-left: 0; }
}

.calendar-scroll { overflow-x: auto; }
.custom-range #calendar { min-width: var(--range-width); }

.report-table-card .table-wrap { max-height: 620px; }
.report-table-card thead th { position: sticky; top: 0; background: #f5f8f2; z-index: 1; }

/* Shared filter cards use the workspace's typography, spacing and palette. */
.filter-description { margin: 5px 0 0; color: var(--muted); font-size: 0.9375rem; }
.calendar-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.calendar-filter-grid label, .filter-provider { display: grid; gap: 7px; font-size: 0.9375rem; color: var(--muted); }
.calendar-filter-grid select, .calendar-range input { min-width: 0; width: 100%; }
.calendar-range label { flex: 0 1 180px; }
.filter-provider strong { color: var(--ink); font-size: 1rem; align-self: center; }
.filter-hint { margin-left: auto; align-self: center; color: var(--muted); font-size: 0.9375rem; }
#calendar-range-error:not(:empty) { flex-basis: 100%; }
.report-presets { padding-top: 20px; border-top: 1px solid var(--line); }
.calendar-context > summary { display: flex; align-items: center; gap: 14px; padding: 22px 24px; list-style: none; color: var(--ink); }
.calendar-context > summary::-webkit-details-marker { display: none; }
.calendar-context > summary small { display: block; color: var(--muted); font-size: 0.9375rem; font-weight: 400; margin-top: 4px; }
.schedule-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: var(--mint); color: var(--green); border-radius: 12px; font-size: 25px; }
.disclosure-chevron { margin-left: auto; font-size: 22px; transition: transform .2s; }
.calendar-context[open] .disclosure-chevron { transform: rotate(180deg); }
.calendar-context > summary:hover { background: var(--paper); }
.calendar-context > summary:focus-visible, .report-definitions > summary:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; border-radius: 12px; }
@media (max-width: 1100px) {
  .calendar-filter-grid, .report-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .workspace-filters .card-head { align-items: flex-start; padding: 20px 16px 16px; }
  .workspace-filters .card-body { padding: 0 16px 20px; }
  .workspace-filters .card-head > .btn { flex-shrink: 0; }
  .calendar-filter-grid, .report-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-range label { flex: 1 1 120px; }
  .filter-hint { margin-left: 0; flex-basis: 100%; }
  .calendar-context > summary { padding: 18px 16px; gap: 10px; }
  .calendar-context .calendar-aside { padding: 0 16px 20px; }
  .report-presets .primary { width: 100%; }
}

.catalogue-subtext { display: block; margin-top: 5px; color: var(--muted); }
.catalogue-assignments { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 22px 0; max-height: 260px; overflow-y: auto; }
.catalogue-assignments legend { font-size: 1rem; padding: 0 8px; }
.catalogue-assignments label, .catalogue-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 1rem; }
.catalogue-assignments input, .catalogue-toggle input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--green); }
.catalogue-assignments small { display: block; color: var(--muted); }
#catalogue-error { color: #a02d2d; margin-top: 14px; }

/* Appointment filtering and history follow the existing workspace cards. */
.filter-error:not(:empty) { margin-top: 16px; color: #a02d2d; font-size: 1rem; }
.appointment-history { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.history-heading h3 { margin: 0; }
.history-heading > span { font-size: 0.875rem; }
.history-timeline { margin: 18px 0 0; padding: 6px 8px; list-style: none; max-height: 340px; overflow-y: auto; }
.history-timeline > li { position: relative; padding: 0 0 24px 23px; border-left: 1px solid var(--line); }
.history-timeline > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.history-timeline > li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.history-event-head { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.history-author { margin: 5px 0 0; font-size: 0.9375rem; overflow-wrap: anywhere; }
.history-timeline time { color: var(--muted); font-size: 0.875rem; }
.history-changes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 14px; margin: 10px 0 0; border-radius: 10px; background: var(--paper); font-size: 0.9375rem; }
.history-changes dt { color: var(--muted); margin-bottom: 5px; }
.history-changes dd { margin: 0; color: var(--ink); }
@media (max-width: 650px) { .history-changes { grid-template-columns: 1fr; } }

/* Clinic context follows the existing workspace card palette and spacing. */
.clinic-badge { margin: 0 0 22px; padding: 16px 17px; border: 1px solid #d6e7dd; border-left: 3px solid #79ae98; border-radius: 14px; background: linear-gradient(125deg, #e7f2eb, #f4f7ef); box-shadow: 0 5px 16px #19382f04; }
.clinic-badge .eyebrow { display: block; margin-bottom: 7px; font-size: 0.8125rem; letter-spacing: 1.8px; color: #597b69; }
.clinic-badge strong { display: block; color: var(--green-dark); font-size: 1.125rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.clinic-context { color: var(--muted); margin: 12px 0 24px; }

/* Patient profiles extend the shared workspace cards, filters and dialogs. */
.patient-summary { padding: 24px; margin-bottom: 24px; }
.patient-summary-main { display: flex; align-items: center; gap: 18px; }
.patient-summary-main h2 { margin: 0 0 8px; overflow-wrap: anywhere; }
.patient-summary-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.patient-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); margin: 24px 0 16px; padding-top: 20px; }
.patient-contacts dt { font-size: 0.9375rem; color: var(--muted); margin-bottom: 6px; }
.patient-contacts dd { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.patient-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.patient-summary .avatar { flex-shrink: 0; }
@media (max-width: 1100px) {
  .patient-summary-main { flex-wrap: wrap; }
  .patient-summary-actions { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 650px) {
  .patient-summary { padding: 20px 16px; }
  .patient-contacts { grid-template-columns: minmax(0, 1fr); }
  .patient-summary-actions .btn { flex: 1 1 auto; }
}

/* Shared accents and public/company surfaces use the existing component system. */
.nav-group > summary { list-style: none; cursor: pointer; position: relative; padding-right: 30px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary { padding-right: 44px; }
.nav-group-icon { width: 21px; height: 21px; flex-shrink: 0; color: #8e9b8e; }
.nav-chevron { position: absolute; right: 12px; width: 23px; height: 23px; padding: 4px; border: 1px solid #dbe5dd; border-radius: 7px; color: #647e6d; background: #f3f7f2; transition: transform .2s ease, background .2s ease; }
.nav-group[open] > summary .nav-chevron { transform: rotate(90deg); background: #e1eee5; }
.nav-group.active .nav-group-icon { color: var(--green-dark); }
@media (prefers-reduced-motion: reduce) { .nav-chevron { transition: none; } }
.nav-group.active > summary { color: var(--green-dark); background: var(--mint); }
.nav-submenu { margin: 5px 0 10px 22px; padding-left: 10px; border-left: 2px solid var(--line); }
.nav-child { font-size: 1rem; min-height: 40px; }
.nav-item.active { box-shadow: inset 3px 0 var(--green); }
summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.doctor-card-actions { flex-wrap: wrap; }
.availability-back { display: inline-block; margin-bottom: 20px; font-weight: 600; }
.public-header { max-width: 1280px; margin: auto; padding: 25px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-header .brand { margin: 0; }
.public-header nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-weight: 600; }
.public-header form { margin: 0; }
.public-main { max-width: 1280px; margin: auto; padding: 15px 36px 48px; }
.public-hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 60px; padding: 50px 0 65px; align-items: center; }
.public-hero h1 { max-width: 700px; font-size: clamp(32px,4.2vw,54px); line-height: 1.12; letter-spacing: -1.5px; margin: 16px 0 24px; }
.public-hero p { font-size: 1.125rem; max-width: 600px; }
.public-intro { padding: 34px; background: var(--mint); border-radius: 24px; border: 1px solid #c6e6d9; }
.public-intro h2 { font-size: 25px; }
.public-symbol { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; font-size: 32px; color: white; background: var(--green); border-radius: 18px; margin-bottom: 22px; }
.public-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 22px; }
.public-section-heading h2 { margin: 8px 0 0; font-size: 27px; }
.chip-tabs a { padding: 9px 16px; border-radius: 8px; display: inline-block; }
.chip-tabs a.active { background: var(--green); color: white; }
.public-filters { padding: 24px; display: flex; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.public-filters .field { flex: 1; margin: 0; min-width: 0; }
.public-grid { margin-bottom: 30px; }
.public-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; overflow-wrap: anywhere; }
.public-card h3 { font-size: 20px; margin: 18px 0 8px; }
.public-card .btn { margin-top: auto; }
.public-clinic-link { margin-top: 16px; font-size: 0.9375rem; font-weight: 600; }
.public-pagination { display: flex; justify-content: center; gap: 16px; margin: 30px 0; }
.public-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 45px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.public-profile { max-width: 960px; }
.public-profile-card { padding: 32px; margin: 25px 0; }
.public-profile-card .eyebrow { display: block; margin: 18px 0 10px; }
.public-profile-card h1 { font-size: 34px; }
.public-profile-card h2 { margin-bottom: 20px; }
.public-profile-card summary { cursor: pointer; font-weight: 600; }
.public-profile-card details form, .public-profile-card summary + form { margin-top: 24px; }
.public-services { padding: 0; list-style: none; }
.public-services li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.public-services span { color: var(--muted); white-space: nowrap; }
.platform-form { max-width: 900px; }
.platform-form textarea { min-height: 100px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.platform-options { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0 28px; }
.platform-options label { display: flex; align-items: center; gap: 8px; }
.platform-options input { width: auto; }
@media(max-width: 760px) {
 .public-header { padding: 20px; align-items: flex-start; gap: 15px; }
 .public-header nav { justify-content: flex-end; gap: 10px 16px; font-size: 0.9375rem; }
 .public-header .brand { font-size: 24px; }
 .public-main { padding: 10px 20px 32px; }
 .public-hero { grid-template-columns: 1fr; gap: 24px; padding: 26px 0 40px; }
 .public-intro { padding: 24px; }
 .public-filters { flex-wrap: wrap; padding: 20px; }
 .public-filters .field { flex-basis: 100%; }
 .public-filters .btn { width: 100%; }
 .public-section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
 .platform-form .form-row { grid-template-columns: minmax(0, 1fr); }
 .public-profile-card { padding: 22px; }
 .public-profile-card h1 { font-size: 28px; }
}

/* Booking selects retain their IDs, with a searchable, keyboard-friendly surface. */
.booking-combobox { position: relative; min-width: 0; }
.booking-combobox > input { width: 100%; padding-right: 48px; }
.booking-combobox > input:disabled { cursor: not-allowed; background: #f1f4f0; color: #66736b; opacity: 1; }
.booking-combobox-toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 0 9px 9px 0; color: var(--green-dark); }
.booking-combobox-toggle:disabled { cursor: not-allowed; opacity: .45; }
.booking-combobox-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; padding: 5px; border: 1px solid #cadfd4; border-radius: 10px; background: #fff; box-shadow: 0 8px 22px #19382f0d; }
.booking-combobox-list.opens-up { top: auto; bottom: calc(100% + 6px); margin-top: 0; }
.booking-combobox-list[hidden] { display: none; }
.booking-combobox-option { padding: 11px 12px; min-height: 44px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.booking-combobox-option[aria-selected="true"] { font-weight: 600; color: var(--green-dark); }
.booking-combobox-option.highlighted, .booking-combobox-option:hover { background: var(--mint); color: var(--green-dark); }
.booking-combobox-empty { padding: 13px 12px; color: var(--muted); font-size: 0.9375rem; }

.password-control { position: relative; width: 100%; min-width: 0; }
.password-control > input { width: 100%; padding-right: 52px; }
.password-visibility-toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; border-radius: 0 9px 9px 0; color: #567265; background: transparent; cursor: pointer; }
.password-visibility-toggle:hover { color: var(--green-dark); background: #08796909; }
.password-visibility-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.password-visibility-toggle:disabled { cursor: not-allowed; opacity: .45; }
.password-control > input::-ms-reveal { display: none; }

/* A compact calendar accent keeps the overview date distinct from the greeting. */
.page-heading .overview-date { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; margin-top: 13px; }
.overview-date-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 11px; border: 1px solid #d9e8de; border-radius: 10px; background: #edf5ef; color: var(--green-dark); font-size: 0.9375rem; font-weight: 500; line-height: 1.5; }
.overview-date-chip svg { width: 18px; height: 18px; flex-shrink: 0; color: #43866d; }
.overview-date-chip time { min-width: 0; }
.overview-day-note { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

/* The supplied company symbol replaces the former cross; the wordmark stays text. */
img.brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; border-radius: 0; background: transparent; }
.welcome-story img.brand-mark { background: transparent; }
.hero-plus img { display: block; width: 100px; height: 100px; }

/* Account creation adapts the profile choice to the selected role. */
.account-create-section { border: 1px solid #dce7df; border-radius: 22px; box-shadow: 0 12px 35px #19382f04; }
.account-create-heading { margin-bottom: 26px; }
.account-create-heading .eyebrow { font-size: 0.75rem; letter-spacing: 1.7px; }
.account-create-heading h2 { margin: 10px 0 12px; font-size: 23px; letter-spacing: -.6px; font-weight: 600; }
.account-create-heading p { font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 0; }
.account-create-section .field { margin: 0; min-width: 0; }
.account-create-section :is(input, select) { min-height: 46px; border-radius: 10px; }
.account-role-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding: 21px; border: 1px solid #dce9df; border-radius: 15px; background: #f1f7f2; }
.account-role-panel [hidden] { display: none; }
.account-role-panel select { background-color: white; }
.account-role-help { grid-column: 1 / -1; margin: 0; color: #567462; font-size: 0.9375rem; line-height: 1.7; }
.account-initial-password { grid-column: 1 / -1; max-width: 520px; width: 100%; }
.account-initial-password small { display: block; margin-top: 9px; color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.account-create-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 21px; margin-top: 3px; border-top: 1px solid var(--line); }
.account-create-footer p { max-width: 560px; font-size: 0.875rem; line-height: 1.8; color: var(--muted); margin: 0; }
.account-create-footer .btn { gap: 16px; flex-shrink: 0; border-radius: 10px; min-height: 46px; }
@media (max-width: 650px) { .account-role-panel { grid-template-columns: minmax(0, 1fr); padding: 17px; } .account-create-footer { flex-direction: column; align-items: stretch; gap: 18px; } }

.agreed-booking { padding: 16px 18px; margin: 20px 0; border: 1px solid #d8e7dc; border-radius: 13px; background: #f1f7f2; }
.agreed-booking .catalogue-toggle { margin: 0; }
.agreed-booking [hidden] { display: none; }
#agreed-time-field { margin-top: 18px; }
#booking-agreed-time { max-width: 180px; background: white; }
.agreed-booking p { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; margin: 12px 0 0; }

.records-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.records-heading .results-count { margin: 0; }
.view-switch { display: inline-flex; gap: 3px; padding: 4px; border-radius: 11px; background: #eaf1ec; border: 1px solid #dde7df; }
.view-switch button { display: flex; gap: 7px; align-items: center; border: 0; background: transparent; color: #62776a; border-radius: 8px; padding: 8px 11px; font-size: 0.875rem; }
.view-switch button.active { background: white; color: var(--green-dark); box-shadow: 0 2px 6px #19382f0a; }
.view-switch svg { width: 16px; height: 16px; }
.view-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.records-table { max-width: 100%; overflow-x: auto; }
.records-table table { min-width: 640px; }
.records-table td small { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 7px; }
.record-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.records-table .record-actions { min-width: 200px; margin-top: 0; }
.record-actions .btn { white-space: normal; }
.catalogue-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.catalogue-record { padding: 24px; min-width: 0; }
.catalogue-record h3 { font-size: 1.1875rem; margin: 0 0 14px; overflow-wrap: anywhere; }
.catalogue-record p { color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.catalogue-record .record-actions { margin-top: 20px; }
@media(max-width:1000px) { .catalogue-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .catalogue-card-grid { grid-template-columns: minmax(0,1fr); } }

/* Reading hierarchy: larger navigation and labels, with comfortable wrapping. */
.nav-item { font-size: 1rem; font-weight: 550; color: #455c4e; line-height: 1.5; gap: 10px; padding: 12px 10px; }
.nav-item.active, .nav-group.active > summary { font-weight: 650; }
.nav-group .nav-item { font-size: .9375rem; }
label, .field > label, th { font-weight: 600; }
.field-help, .filter-hint, .muted { line-height: 1.65; }
.nav-group > summary { padding-right: 40px; }

/* Consistent, compact actions for management cards and lists. */
.nav-calendar-icon { width: 21px; height: 21px; flex: 0 0 21px; color: #8e9b8e; }
.nav-item.active .nav-calendar-icon { color: var(--green-dark); }
.doctor-actions, .patient-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.records-table .doctor-actions { min-width: 0; max-width: 360px; }
.records-table .patient-actions { min-width: 0; max-width: 300px; }
.record-action { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid #dce7df; border-radius: 10px; color: #39564a; background: white; font-size: .875rem; font-weight: 600; line-height: 1.45; text-align: left; transition: background .16s, border-color .16s, box-shadow .16s; }
.record-action svg { width: 17px; height: 17px; flex: 0 0 17px; }
.record-action span { min-width: 0; }
.record-action:hover { background: #f1f6f2; border-color: #b1cabc; box-shadow: 0 2px 7px #19382f08; }
.record-action-primary { color: white; background: var(--green); border-color: var(--green); }
.record-action-primary:hover { color: white; background: var(--green-dark); border-color: var(--green-dark); }
.record-action-accent { color: #68548e; background: #f3eff9; border-color: #e3dbef; }
.record-action-accent:hover { background: #eae3f4; border-color: #cbbce0; }
.patient-card-actions { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .record-action { transition: none; } }

#doctor-results .records-table table, #patient-results .records-table table { table-layout: fixed; min-width: 840px; white-space: normal; }
#doctor-results .records-table td, #patient-results .records-table td { overflow-wrap: anywhere; }
#doctor-results .records-table th:nth-child(1) { width: 25%; }
#doctor-results .records-table th:nth-child(2) { width: 21%; }
#doctor-results .records-table th:nth-child(3) { width: 20%; }
#doctor-results .records-table th:nth-child(4) { width: 34%; }
#patient-results .records-table th:nth-child(1) { width: 24%; }
#patient-results .records-table th:nth-child(2) { width: 26%; }
#patient-results .records-table th:nth-child(3) { width: 18%; }
#patient-results .records-table th:nth-child(4) { width: 32%; }
.records-table .badge { white-space: normal; }
.record-action span { overflow-wrap: normal; }

/* Keep the longer МедТермин wordmark readable within navigation widths. */
.sidebar .brand { font-size: 24px; gap: 8px; padding-inline: 0; }
@media (max-width: 1200px) { .sidebar .brand { font-size: 22px; } }
@media (max-width: 480px) {
 .public-header { flex-wrap: wrap; align-items: center; }
 .public-header nav { width: 100%; justify-content: space-between; gap: 12px; }
 .public-header .brand { font-size: 26px; }
}
