/* Núcleo — a light, rounded interface. The established green stays unchanged. */
:root {
  --canvas: #f2f7f5;
  --surface: #fff;
  --teal: #177c72;
  --teal-dark: #10685f;
  --teal-soft: #e6f3ee;
  --ink: #173e38;
  --body: #46615b;
  --muted: #526d62;
  --line: #e3ede8;
  --line-strong: #c9dbd3;
  --radius: 25px;
  --shadow: 0 10px 32px rgb(34 88 68 / 4%);
}
body {
  background: radial-gradient(ellipse at 85% 0, #e2efea 0, transparent 45%), var(--canvas);
}
.sidebar {
  background: #fff;
  border-right: 1px solid #e4eee9;
  color: var(--body);
  padding: 32px 18px 22px;
  scrollbar-color: #c6dcd2 transparent;
}
.brand {
  padding-bottom: 32px;
}
.brand-name {
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -1.4px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 15px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 5px 15px #177c7220;
}
.brand-caption {
  color: var(--muted);
  font-size: 9px;
}
.sidebar > .workspace-card {
  border: 1px solid #e4eee8;
  background: #f5f9f7;
  border-radius: 18px;
  padding: 13px 11px;
}
.workspace-card {
  border-color: var(--line);
}
.workspace-card strong,
.user-meta strong {
  color: var(--ink);
  font-size: 12px;
}
.workspace-card small,
.user-meta,
.sidebar-bottom > p,
.sidebar-bottom > .small {
  color: var(--muted);
}
.workspace-card .avatar {
  background: #e1eee7;
  color: #326b5c;
}
.nav-label {
  color: #526d62;
  margin-top: 14px;
  font-size: 9px;
}
.nav-item {
  min-height: 48px;
  margin: 7px 0;
  padding: 13px 15px;
  border-radius: 16px;
  color: #597269;
  font-size: 13px;
}
.nav-item:hover {
  background: #edf6f1;
  color: var(--teal-dark);
}
.nav-item.active {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 7px 18px #177c721b;
}
.nav-icon {
  opacity: 1;
}
.nav-count {
  background: #e4eee8;
  color: #456a5d;
  border-radius: 7px;
}
.nav-item.active .nav-count {
  color: #fff;
  background: #ffffff24;
}
.sidebar-bottom {
  padding: 24px 9px 0;
}
.sidebar-bottom .avatar {
  width: 40px;
  height: 40px;
  background: #eaf1ed;
  color: #4b6d5f;
}
.topbar {
  background: transparent;
  min-height: 88px;
  border: 0;
  padding: 22px 36px 16px;
}
.breadcrumb strong {
  color: var(--ink);
}
.search-box {
  border-color: transparent;
  background: #fff;
  border-radius: 100px;
  padding: 0 16px;
  box-shadow: 0 3px 15px #173e3804;
}
.search-box input {
  padding: 12px 0;
}
.topbar-actions > .avatar {
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  background: #d8ece1;
  color: #326b5c;
}
.demo-banner {
  margin: 0 36px;
  padding: 8px 16px;
  min-height: 0;
  justify-content: space-between;
  background: #e6f0eb;
  border: 0;
  border-radius: 12px;
  color: #516e60;
  font-size: 10px;
}
.demo-banner .btn {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 10px;
}
.page {
  padding-top: 28px;
}
.page-header {
  margin-bottom: 28px;
}
.page-title {
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 650;
  letter-spacing: -1.5px;
}
.page-subtitle {
  font-size: 14px;
}
.eyebrow {
  color: var(--teal-dark);
  letter-spacing: 1.8px;
}
.btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 12px;
}
.btn-primary {
  box-shadow: 0 5px 12px #177c7215;
}
.btn-secondary {
  border-color: #dce8e1;
  color: #375e50;
  background: #fff;
}
.btn-secondary:hover {
  background: #f1f8f4;
}
.btn-sm {
  min-height: 36px;
  padding: 8px 13px;
}
.icon-btn,
.date-control .icon-btn,
.modal-header .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border-color: #e1ece5;
  color: #587669;
}
.stat-card {
  padding: 24px;
  border: 1px solid #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.stat-label {
  color: #516e60;
  font-size: 12px;
  margin-bottom: 19px;
}
.stat-value {
  font-size: clamp(26px, 2.1vw, 34px);
  font-weight: 600;
  letter-spacing: -1px;
}
.stat-foot {
  color: #647b71;
  font-size: 11px;
  line-height: 1.6;
}
.stat-icon {
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9f4ee;
  color: #3f7b66;
}
.stat-card:nth-child(2) .stat-icon {
  background: #e8f2f1;
  color: #437b76;
}
.stat-card:nth-child(3) .stat-icon {
  background: #f8f0e2;
  color: #947246;
}
.stat-card:nth-child(4) .stat-icon {
  background: #f1edf5;
  color: #78658d;
}
.panel {
  border-color: #ffffff;
  border-radius: 25px;
  box-shadow: var(--shadow);
}
.panel-header {
  padding: 24px;
  border-bottom-color: #edf3ef;
}
.panel-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
.panel-subtitle {
  font-size: 12px;
}
.panel-body {
  padding: 24px;
}
.panel-footer {
  background: #fcfefd;
}
.data-table th {
  color: #62786e;
  background: #f7faf8;
  font-size: 10px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.table-wrap {
  position: relative;
}
.data-table td {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom-color: #edf3ef;
}
.person-name {
  color: var(--ink);
  font-weight: 600;
}
.person .muted,
.person .small {
  font-size: 11px;
}
.avatar {
  width: 40px;
  height: 40px;
  font-size: 11px;
  background: #eaf1ed;
  color: #4f7263;
}
.avatar.teal {
  background: #e2f0e8;
  color: #37715a;
}
.avatar.purple {
  background: #f0eaf4;
  color: #765886;
}
.badge {
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  color: #52665d;
}
.badge[data-status='confirmed'],
.badge[data-status='approved'],
.badge[data-status='paid'],
.badge-success {
  color: #29684e;
  background: #e5f3ea;
}
.badge[data-status='booked'],
.badge[data-status='proposed'],
.badge[data-status='open'] {
  color: #3b607d;
  background: #eaf1f8;
}
.badge[data-status='arrived'] {
  color: #70528c;
  background: #f0eaf6;
}
.badge[data-status='completed'] {
  color: #37654f;
  background: #eaf3ed;
}
.badge[data-status='overdue'],
.badge[data-status='missed'],
.badge[data-status='declined'] {
  color: #92503c;
  background: #fceee7;
}
.badge[data-status='cancelled'],
.badge-neutral {
  color: #586a61;
  background: #eff4f1;
}
.badge-warning {
  color: #836327;
  background: #fff4df;
}
.toolbar {
  margin-bottom: 22px;
}
.field-inline input,
.field-inline select,
.filters > input,
.filters > select,
.toolbar > input,
.toolbar > select,
.date-control input {
  min-height: 44px;
  border-radius: 14px;
  border-color: #dce8e1;
  color: #375e50;
  padding: 11px 14px;
}
.segmented {
  background: #e5eee9;
  border-radius: 100px;
  padding: 5px;
}
.chip,
.segmented button {
  border-radius: 100px;
  min-height: 38px;
  color: #526e5f;
  padding: 9px 18px;
}
.chip.active,
.segmented button.active {
  background: var(--teal);
  color: white;
  box-shadow: 0 3px 8px #177c7215;
}
.tabs {
  border-color: var(--line);
}
.tab {
  color: #667f73;
}
.schedule-list {
  padding: 14px;
  gap: 10px;
}
.appointment-card {
  padding: 22px;
  border: 1px solid #e4eee7;
  border-radius: 20px;
  background: #fcfefd;
  gap: 20px;
}
.appointment-card:last-child {
  border-bottom: 1px solid #e4eee7;
}
.appointment-time {
  padding: 12px 8px;
  flex-basis: 72px;
  text-align: center;
  border-radius: 15px;
  background: #eaf4ee;
}
.appointment-time strong {
  font-size: 15px;
}
.appointment-time small {
  color: #5a7b69;
}
.appointment-meta {
  color: #5f7a6c;
  font-size: 11px;
}
.kanban {
  gap: 20px;
}
.kanban-column {
  padding: 16px;
  border-color: #e0ebe3;
  border-radius: 24px;
  background: #eaf2ed;
}
.kanban-head,
.kanban-head h2 {
  color: #506f5d;
}
.treatment-card {
  border-color: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 18px #173e3804;
}
.treatment-card h3 {
  font-size: 15px;
}
.treatment-amount {
  font-size: 26px;
  font-weight: 600;
}
.treatment-card .person .avatar {
  width: 32px;
  height: 32px;
}
.treatment-card .person-name {
  font-size: 12px;
}
.treatment-footer {
  border-color: #edf3ef;
}
.progress {
  height: 6px;
  border-radius: 8px;
  background: #eaf1ec;
}
.progress-bar {
  background: var(--teal);
}
button.activity-item {
  padding: 18px 0;
  gap: 12px;
}
button.activity-item strong {
  font-size: 12px;
  color: #375a48;
}
button.activity-item small {
  color: #637b6c;
  font-size: 11px;
}
button.activity-item .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.mini-treatment strong {
  color: var(--ink);
  font-size: 13px;
}
.welcome-card {
  background: #dfede4;
  border: 0;
  padding: 28px;
  border-radius: 26px;
}
.welcome-card .eyebrow {
  color: #4a745b;
}
.welcome-card h3 {
  font-size: 25px;
  font-weight: 500;
  color: #244c38;
}
.welcome-card p {
  color: #526e5b;
  font-size: 12px;
}
.welcome-card .btn {
  min-height: 44px;
  font-size: 11px;
  background: #fff;
  color: #356248;
  border: 0;
}
.bar-row,
.bar-row > span,
.bar-chart + p {
  color: #647b6c;
}
.bar-track {
  background: #eef4f0;
}
.bar-fill {
  background: #a6cdbb;
}
.detail-card,
.settings-card {
  border-radius: 24px;
  border-color: #e8f0eb;
  background: #fff;
  box-shadow: var(--shadow);
}
.settings-card {
  padding: 28px;
}
.settings-card > p {
  font-size: 13px;
  line-height: 1.8;
}
.feature-list li {
  padding: 14px 0;
}
.integration-note {
  color: #53725d;
  border-radius: 16px;
  background: #edf5ef;
}
.note {
  border-radius: 18px;
  background: #f8fbf9;
}
.note-meta,
.definition-list dt {
  color: #647d70;
}
dialog.modal {
  border-radius: 28px;
  border: 1px solid #f1f6f2;
  box-shadow: 0 30px 110px #153d3530;
}
dialog::backdrop {
  background: #163d354a;
  backdrop-filter: blur(5px);
}
.modal-header {
  padding: 25px 28px;
  align-items: center;
}
.modal-header h2 {
  font-size: 23px;
}
.modal-body {
  padding: 25px 28px;
}
.modal-footer {
  padding: 20px 28px;
  background: #f8fbf9;
}
.form-field input,
.form-field select,
.form-field textarea,
.line-item input,
.line-item select {
  border-radius: 14px;
  background: #f8fbf9;
  border-color: #d9e7de;
  min-height: 46px;
  color: var(--ink);
}
.form-field label {
  color: #436a55;
}
.form-hint {
  font-size: 11px;
  color: #647d70;
}
.line-item {
  border-radius: 18px;
  background: #f4f8f5;
}
.line-item label,
.step-info small {
  color: #647d70;
}
.step-info strong {
  color: #375b48;
}
.step-number {
  width: 34px;
  height: 34px;
}
.step-number.done {
  background: #e2f0e7;
  color: #2b7152;
}
.empty-icon {
  background: #e8f3ec;
  color: var(--teal);
  border-radius: 50%;
}
.empty-state p {
  color: #647d70;
}
.toast {
  border-radius: 20px;
}
.app-footer {
  color: #657e70;
  padding-top: 12px;
}

/* The home screen introduces the same clinical data through a calmer hierarchy. */
.overview-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
  padding: 10px 0 32px;
}
.overview-welcome {
  padding: 4px 8px;
}
.overview-welcome h1 {
  font-size: clamp(40px, 3.8vw, 60px);
  font-weight: 550;
  letter-spacing: -2.8px;
  line-height: 1.07;
  margin: 16px 0;
}
.overview-welcome h1 span {
  color: var(--teal);
}
.overview-welcome > p {
  color: #60796a;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.overview-specialties {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}
.overview-specialties span {
  background: #e5eee8;
  border: 1px solid #dbe8df;
  padding: 5px 12px;
  border-radius: 100px;
  color: #4d6e59;
  font-size: 10px;
}
.featured-appointment {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 27px;
  border-radius: 30px;
  background: var(--teal);
  color: white;
  box-shadow: 0 14px 35px #177c7222;
  overflow: hidden;
}
.featured-appointment::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 35px solid #ffffff05;
  border-radius: 50%;
  width: 260px;
  height: 260px;
  right: -180px;
  top: -100px;
  pointer-events: none;
}
.featured-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.featured-heading > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.featured-heading svg {
  width: 17px;
}
.featured-day {
  white-space: nowrap;
  padding: 5px 11px;
  border: 1px solid #ffffff45;
  border-radius: 100px;
  font-size: 11px;
}
.featured-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 29px 0;
}
.featured-person .avatar {
  width: 57px;
  height: 57px;
  background: #dfefe6;
  border: 4px solid #ffffff2b;
  color: #236151;
  font-size: 17px;
}
.featured-person > div {
  min-width: 0;
}
.featured-person h2 {
  color: #fff;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 550;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.featured-person p {
  font-size: 12px;
  color: #fff;
  margin: 0;
}
.featured-details {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 15px;
  padding: 22px 0;
  border-top: 1px solid #ffffff30;
  border-bottom: 1px solid #ffffff30;
}
.featured-details > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.featured-details > div > svg {
  width: 18px;
}
.featured-details small {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
  color: #fff;
}
.featured-details strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 550;
}
.featured-details strong span {
  font-size: 10px;
  font-weight: 400;
}
.featured-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 21px;
}
.featured-actions .badge {
  background: #fff;
  color: #21684e;
}
.featured-appointment .btn-secondary {
  background: #fff;
  border-color: #fff;
  color: var(--teal-dark);
}
.featured-appointment .btn-secondary:hover {
  background: #eaf5ef;
}
.featured-empty {
  padding: 27px 0 16px;
}
.featured-empty h2 {
  color: #fff;
  font-size: 25px;
  margin: 13px 0 6px;
}
.featured-empty p {
  color: #fff;
  font-size: 13px;
}
.featured-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
}
.overview-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin: 0 0 17px;
}
.overview-section-title h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
}
.overview-section-title > span {
  font-size: 11px;
  color: #617b6c;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.week-day {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 13px 6px;
  min-width: 0;
  border: 1px solid #fff;
  border-radius: 20px;
  background: #fff;
  color: #60786a;
  box-shadow: 0 4px 15px #173e3803;
}
.week-day:hover {
  border-color: #94c4ad;
}
.week-day > span:first-child {
  font-size: 11px;
  text-transform: capitalize;
}
.week-day strong {
  font-size: 23px;
  font-weight: 550;
  color: inherit;
}
.week-day.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px #177c7220;
}
.week-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}
.week-dot.occupied {
  background: var(--teal);
}
.week-day.selected .week-dot.occupied {
  background: #fff;
}
.mobile-dock {
  display: none;
}

/* The study reader keeps its content and reading scale, within the new theme. */
.study-hero {
  background: #e0eee5;
  color: #42644f;
  border: 1px solid #d4e6da;
  border-radius: 30px;
}
.study-kicker {
  color: #427356;
}
.study-date {
  color: #526d62;
}
.study-hero h1 {
  color: var(--ink);
  font-weight: 550;
  letter-spacing: -1.8px;
}
.study-lead {
  color: #3d604a;
}
.study-lead span {
  color: var(--teal);
}
.study-hero-description {
  color: #52705d;
}
.study-hero-bottom {
  border-color: #c1d8c9;
}
.study-metrics strong {
  color: var(--teal-dark);
}
.study-download {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.study-download:hover {
  background: var(--teal-dark);
}
.study-tools,
.study-section {
  border-color: #fff;
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.study-search-row input {
  border-radius: 100px;
  border-color: #d9e7de;
  background: #f5f9f6;
}
.study-index button {
  border-radius: 12px;
}
.study-index-number,
.study-route b {
  color: #527762;
}
.study-sidebar {
  border-radius: 20px;
}
.study-intro p + p {
  color: #597264;
}
.study-table-wrap {
  border-radius: 16px;
}
.study-table th {
  background: #edf5ef;
}
.study-section h2 {
  font-weight: 600;
}
.study-top {
  padding: 12px 0;
  min-height: 44px;
}
.study-empty {
  border-radius: 24px;
}

@media (min-width: 1600px) {
  .overview-hero {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 38px;
  }
  .featured-appointment {
    padding: 34px;
  }
}
@media (max-width: 1199px) {
  .topbar {
    padding-left: 25px;
    padding-right: 25px;
  }
  .demo-banner {
    margin: 0 25px;
  }
  .overview-hero {
    gap: 24px;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .overview-welcome h1 {
    font-size: 44px;
  }
  .featured-appointment {
    padding: 23px;
  }
  .featured-details {
    grid-template-columns: 1fr;
    padding: 17px 0;
    gap: 12px;
  }
  .featured-details > div > span {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }
  .featured-actions {
    gap: 8px;
  }
  .featured-actions .btn {
    font-size: 11px;
    padding: 10px 14px;
  }
  .stat-card {
    padding: 21px;
  }
  .stat-icon {
    right: 16px;
    top: 16px;
  }
  .stat-label {
    font-size: 11px;
    margin-right: 25px;
  }
  .panel-header,
  .panel-body {
    padding: 20px;
  }
}
@media (max-width: 1023px) {
  .appointment-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .appointment-main {
    flex-basis: calc(100% - 92px);
  }
  .appointment-actions {
    margin-left: 92px;
    justify-content: flex-start;
  }
  .overview-hero {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-welcome {
    position: relative;
  }
  .overview-welcome h1 br {
    display: none;
  }
  .overview-welcome h1 {
    font-size: 43px;
  }
  .overview-welcome h1 span::before {
    content: ' ';
  }
  .overview-welcome > p br {
    display: none;
  }
  .overview-specialties {
    margin-bottom: 18px;
  }
  .featured-details {
    grid-template-columns: 1fr 1.2fr;
  }
  .featured-details > div > span {
    display: block;
  }
  .featured-person {
    margin: 24px 0;
  }
  .dashboard-grid > div:not(.panel) {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 767px) {
  .sidebar {
    width: 270px;
    padding: 26px 18px;
  }
  .topbar {
    min-height: 78px;
    padding: 16px 20px;
  }
  .topbar-actions {
    display: none;
  }
  .topbar > div:first-child {
    width: 100%;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .demo-banner {
    margin: 0 18px;
    padding: 10px 12px;
    text-align: left;
    font-size: 10px;
    gap: 5px;
  }
  .demo-banner .btn {
    min-height: 36px;
  }
  .page {
    padding: 25px 18px 30px;
  }
  .page-title {
    font-size: 34px;
  }
  .page-subtitle {
    font-size: 13px;
  }
  .page-actions {
    gap: 9px;
  }
  .page-actions .btn {
    padding: 11px 18px;
  }
  .overview-hero {
    padding: 0 0 27px;
    gap: 23px;
  }
  .overview-welcome {
    padding: 0 4px;
  }
  .overview-welcome h1 {
    font-size: 43px;
    letter-spacing: -2px;
    margin: 13px 0;
  }
  .overview-welcome > p {
    font-size: 13px;
  }
  .featured-appointment {
    border-radius: 27px;
    padding: 23px;
  }
  .featured-person h2 {
    font-size: 23px;
  }
  .featured-actions .btn {
    min-height: 44px;
  }
  .overview-section-title h2 {
    font-size: 18px;
  }
  .stats-grid {
    gap: 12px;
    margin-bottom: 23px;
  }
  .stat-card {
    padding: 19px 16px;
    border-radius: 22px;
  }
  .stat-label {
    margin-right: 0;
    max-width: none;
    font-size: 11px;
    min-height: 30px;
    padding-right: 28px;
    margin-bottom: 12px;
  }
  .stat-icon {
    width: 27px;
    height: 27px;
    top: 15px;
    right: 12px;
  }
  .stat-icon svg {
    width: 14px;
    height: 14px;
  }
  .stat-value {
    font-size: clamp(20px, 5.5vw, 29px);
    letter-spacing: -0.8px;
  }
  .stat-foot {
    font-size: 10px;
    margin-top: 10px;
    min-height: 0;
  }
  .panel {
    border-radius: 23px;
  }
  .panel-header {
    padding: 20px 18px;
  }
  .panel-title {
    font-size: 15px;
  }
  .panel-subtitle {
    font-size: 11px;
  }
  .panel-header > .btn {
    padding: 10px 12px;
  }
  .panel-body {
    padding: 21px;
  }
  .btn-sm,
  .chip,
  .segmented button {
    min-height: 44px;
  }
  .date-control {
    gap: 5px;
    flex-wrap: wrap;
  }
  .date-control input {
    max-width: 165px;
    padding: 10px;
  }
  .date-control .btn {
    padding: 10px;
  }
  .date-control .icon-btn {
    width: 44px;
    height: 44px;
  }
  .field-inline input,
  .field-inline select,
  .filters > input,
  .filters > select,
  .toolbar > input,
  .toolbar > select,
  .date-control input,
  .form-field input,
  .form-field select,
  .form-field textarea,
  .line-item input,
  .line-item select,
  .search-box input,
  .study-search-row input {
    font-size: 16px;
  }
  .week-strip {
    gap: 6px;
    margin-bottom: 21px;
  }
  .week-day {
    padding: 12px 2px;
    border-radius: 17px;
    gap: 6px;
  }
  .week-day > span:first-child {
    font-size: 10px;
  }
  .week-day strong {
    font-size: 21px;
  }
  .schedule-list {
    padding: 11px;
    gap: 11px;
  }
  .appointment-card {
    padding: 17px 13px;
    gap: 12px;
  }
  .appointment-time {
    flex-basis: 59px;
    padding: 12px 4px;
  }
  .appointment-time strong {
    font-size: 14px;
  }
  .appointment-main {
    flex-basis: calc(100% - 71px);
  }
  .appointment-main .person {
    gap: 9px;
    min-width: 0;
    align-items: flex-start;
  }
  .appointment-main .person .avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .appointment-main .person-name {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .appointment-meta {
    margin: 9px 0 0 0;
    font-size: 10px;
  }
  .appointment-actions {
    margin-left: 71px;
  }
  .kanban-column {
    padding: 15px;
  }
  .treatment-card {
    padding: 21px;
  }
  .treatment-card .icon-btn {
    width: 44px;
    height: 44px;
  }
  .detail-card,
  .settings-card {
    padding: 21px;
    border-radius: 22px;
  }
  dialog.modal {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 25px;
  }
  .modal-header,
  .modal-body {
    padding: 21px;
  }
  .modal-header h2 {
    font-size: 21px;
  }
  .modal-footer {
    padding: 18px 21px;
    gap: 9px;
  }
  .modal-footer .btn {
    white-space: normal;
  }
  .mobile-dock {
    position: fixed;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    max-width: 500px;
    margin: auto;
    padding: 8px;
    border-radius: 26px;
    border: 1px solid #fff;
    background: #ffffffed;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 40px #244f3825;
  }
  .dock-item {
    display: grid;
    place-items: center;
    gap: 5px;
    border: 0;
    padding: 10px 1px;
    min-height: 55px;
    min-width: 0;
    border-radius: 19px;
    background: transparent;
    color: #60796b;
  }
  .dock-item svg {
    width: 20px;
    height: 20px;
  }
  .dock-item span {
    font-size: 9px;
  }
  .dock-item.active {
    background: var(--teal);
    color: #fff;
  }
  body.menu-open .mobile-dock {
    visibility: hidden;
  }
  .main-shell {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .app-footer {
    padding: 0 21px 20px;
    font-size: 10px;
  }
  .study-hero {
    padding: 26px 23px;
    border-radius: 27px;
  }
  .study-tools,
  .study-section {
    border-radius: 22px;
  }
  .study-search-row input {
    min-height: 46px;
  }
}
@media (max-width: 374px) {
  .page {
    padding-left: 13px;
    padding-right: 13px;
  }
  .overview-welcome h1 {
    font-size: 37px;
  }
  .featured-appointment {
    padding: 20px;
  }
  .featured-details {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .stat-card {
    padding: 17px 12px;
  }
  .stat-icon {
    width: 24px;
    height: 24px;
    right: 9px;
  }
  .stat-label {
    font-size: 10px;
  }
  .mobile-dock {
    left: 8px;
    right: 8px;
  }
  .dock-item span {
    font-size: 8px;
  }
}
@media (max-width: 479px) {
  .line-item {
    grid-template-columns: minmax(0, 1fr) 85px 44px;
  }
}
@media print {
  .mobile-dock,
  .week-strip {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .main-shell {
    padding-bottom: 0;
  }
  .overview-hero {
    grid-template-columns: 1fr 1fr;
  }
  .featured-appointment {
    background: #fff;
    color: #173e38;
    border: 1px solid #c5dace;
    box-shadow: none;
  }
  .featured-appointment h2,
  .featured-appointment strong,
  .featured-appointment p,
  .featured-details small {
    color: #173e38;
  }
  .study-hero {
    background: #fff;
  }
  .study-section {
    box-shadow: none;
    padding: 20px 0;
  }
}
