@charset "UTF-8";
.mhc-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  line-height: 0;
}
.mhc-icon img,
.mhc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mhc-icon--sm {
  width: 1.375rem;
  height: 1.375rem;
}

.mhc-icon--md {
  width: 2.5rem;
  height: 2.5rem;
}

.mhc-icon--lg {
  width: 4rem;
  height: 4rem;
}

/* ── Greeting / Dashboard ── */
.greeting,
.page-greeting {
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .greeting,
  .page-greeting {
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 375px) {
  .greeting,
  .page-greeting {
    margin-bottom: 0.875rem;
  }
}

.greeting__title,
.page-greeting__title {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 133%;
  color: #000;
}
@media (max-width: 768px) {
  .greeting__title,
  .page-greeting__title {
    font-size: 1.25rem;
  }
}
@media (max-width: 375px) {
  .greeting__title,
  .page-greeting__title {
    font-size: 1rem;
  }
}

.greeting__subtitle {
  line-height: 150%;
}
@media (max-width: 375px) {
  .greeting__subtitle {
    font-size: 0.75rem;
  }
}

.dashboard__stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 1440px) {
  .dashboard__stats,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .dashboard__stats,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .dashboard__stats,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 375px) {
  .dashboard__stats,
  .stats-grid {
    grid-template-columns: none;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
}

.dashboard__stats--family {
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}

.dashboard__stats .appointments-stat {
  min-width: 0;
  border-color: transparent;
}
.dashboard__stats .appointments-stat .appointments-stat__value {
  font-size: 1.875rem;
}
.dashboard__stats .appointments-stat .appointments-stat__label {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #767676;
}
@media (max-width: 768px) {
  .dashboard__stats .appointments-stat {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
  }
  .dashboard__stats .appointments-stat .appointments-stat__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .dashboard__stats .appointments-stat .appointments-stat__value {
    font-size: 1.5rem;
  }
  .dashboard__stats .appointments-stat .appointments-stat__label {
    font-size: 0.75rem;
  }
}
@media (max-width: 375px) {
  .dashboard__stats .appointments-stat {
    padding: 0.625rem 0.75rem;
    gap: 0.625rem;
  }
  .dashboard__stats .appointments-stat .appointments-stat__icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  .dashboard__stats .appointments-stat .appointments-stat__value {
    font-size: 1.25rem;
  }
  .dashboard__stats .appointments-stat .appointments-stat__label {
    font-size: 0.75rem;
    line-height: 1.25;
    hyphens: none;
  }
  .dashboard__stats .appointments-stat .appointments-stat__content {
    gap: 0.5rem;
  }
}

.dashboard__stats .appointments-stat--pending {
  background: #fff8e7;
}
.dashboard__stats .appointments-stat--pending .appointments-stat__icon {
  background: #ffffff;
}
.dashboard__stats .appointments-stat--pending .appointments-stat__value {
  color: #15200e;
}

.dashboard__stats .appointments-stat--mint {
  background: #f0faf4;
}

.dashboard__stats .appointments-stat__icon--mint {
  background: #e9f5f5;
}

.dashboard,
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 33.6875rem;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1440px) {
  .dashboard,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .dashboard,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard__main,
.dashboard-grid__main {
  min-width: 0;
}

.dashboard__side,
.dashboard-grid__side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .dashboard__side,
  .dashboard-grid__side {
    order: 2;
  }
}

.layout__content--home {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.home-board {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.home-board .dashboard {
  align-items: stretch;
  padding-bottom: 2rem;
}
.home-board .dashboard__main,
.home-board .dashboard__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-board .dashboard__main > .card,
.home-board .dashboard__side > .card:first-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-board .dashboard__main .card__body,
.home-board .dashboard__main .tab-panel--active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.home-board .dashboard__main .card__footer {
  margin-top: auto;
}
@media (max-width: 1440px) {
  .home-board {
    flex: none;
    height: auto;
    min-height: 0;
  }
  .home-board .dashboard {
    flex: none;
    height: auto;
    min-height: 0;
    align-items: start;
  }
  .home-board .dashboard__main > .card,
  .home-board .dashboard__side > .card:first-child {
    flex: none;
    height: auto;
    min-height: 0;
  }
  .home-board .dashboard__main .card__body,
  .home-board .dashboard__main .tab-panel--active {
    flex: none;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .stat-card__value {
    font-size: 1.5rem;
  }
}
@media (max-width: 375px) {
  .stat-card__value {
    font-size: 1.25rem;
    line-height: 60%;
  }
}

@media (max-width: 768px) {
  .stat-card__body {
    padding: 1rem;
  }
}
@media (max-width: 375px) {
  .stat-card__body {
    padding: 0.75rem 0.875rem 0;
  }
}

@media (max-width: 375px) {
  .stat-card__img {
    display: none;
  }
}

@media (max-width: 375px) {
  .stat-card__label {
    font-size: 0.75rem;
    hyphens: none;
    word-break: normal;
  }
}

@media (max-width: 375px) {
  .stat-card__start {
    gap: 0.75rem;
    flex: 1;
  }
}

@media (max-width: 375px) {
  .stat-card__content {
    gap: 0.25rem;
    padding-top: 0.25rem;
  }
}

@media (max-width: 375px) {
  .stat-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 375px) {
  .stat-card__footer {
    font-size: 0.75rem;
    padding: 0.625rem 0.875rem;
  }
}

/* ── Doc list ── */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-list__item--static {
  cursor: default;
  pointer-events: none;
}

.doc-list__item--static:hover {
  box-shadow: 0 0 0.15625rem 0 rgba(0, 0, 0, 0.08);
}

.doc-list__item--unread {
  border-left: 0.1875rem solid #1a9b9a;
}

.doc-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1.25rem;
}

.doc-list__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms ease;
}

.doc-list__tile:hover {
  box-shadow: 0 0 0.15625rem 0 rgba(0, 0, 0, 0.08);
}

.doc-list__tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: #e9f5f5;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
}

.doc-list__tile-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.doc-list__tile-meta {
  text-align: center;
}

/* ── Documents page ── */
.documents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.documents-header__family {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}
@media (max-width: 480px) {
  .documents-header__family {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 1rem;
  }
}

.documents-header__label {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #156b6a;
}

.tabs--family-cards {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  height: 3rem;
  padding: 0.125rem;
  box-sizing: border-box;
  background: #e9f5f5;
  border-radius: 0.5rem;
  color: #15200e;
}
.tabs--family-cards .tab {
  width: 100%;
  border-radius: 0.375rem;
  border-bottom: none;
  background: transparent;
  color: #15200e;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  box-sizing: border-box;
  padding-left: 0.375rem;
  padding-right: 0.25rem;
}
.tabs--family-cards .tab--active {
  background: #156b6a;
  color: #ffffff;
  border-bottom: none;
}
.tabs--family-cards .tab--active .tab__label-muted {
  color: rgba(255, 255, 255, 0.85);
}
.tabs--family-cards .tab:hover:not(:disabled):not(.tab--active) {
  background: rgba(21, 107, 106, 0.06);
  color: #15200e;
}
.tabs--family-cards .tab:active:not(:disabled):not(.tab--active) {
  background: transparent;
  color: #15200e;
}
.tabs--family-cards .tab__label-muted {
  color: #767676;
}
.tabs--family-cards__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 8.5625rem;
  width: 8.5625rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #15200e;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 150ms ease;
}
.tabs--family-cards__add:hover {
  background: rgb(98%, 98%, 98%);
}

.tabs--family-cards--fluid {
  display: flex;
  width: 100%;
  height: auto;
}
.tabs--family-cards--fluid .tab {
  width: 100%;
  padding: 0.5625rem 0 0.5rem;
}

.documents-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.documents-toolbar__search {
  flex: 0 0 auto;
  width: 25rem;
  max-width: 100%;
}

.documents-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.documents-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  padding: 0.8125rem 1.25rem;
  background: #ffffff;
  border: 0.0625rem solid #d5d5d5;
  border-radius: 0.5rem;
  box-sizing: border-box;
}
.documents-search__icon {
  display: flex;
  flex-shrink: 0;
  color: #424242;
}
.documents-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #15200e;
}
.documents-search__input::placeholder {
  color: #767676;
}
.documents-search__input:focus {
  outline: none;
}

.documents-card {
  overflow: hidden;
  background-color: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 1rem;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
}

.tabs--documents {
  display: flex;
  gap: 0.875rem;
  padding-left: 1.875rem;
  padding-top: 0.5625rem;
}
@media (max-width: 1280px) {
  .tabs--documents {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .tabs--documents {
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.tabs--documents .tab {
  width: 100%;
  max-width: 10rem;
}
@media (max-width: 480px) {
  .tabs--documents .tab {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.625rem;
}

.doc-card[hidden],
.doc-list__item[hidden] {
  display: none !important;
}

.doc-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #ffffff;
  border: 0.0625rem solid #1a9b9a;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms ease;
}
.doc-card:hover {
  box-shadow: 0 0 0.15625rem 0 rgba(0, 0, 0, 0.08);
}
.doc-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.doc-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #e9f5f5;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-card__icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}
.doc-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #156b6a;
  line-height: 1.3;
  margin-bottom: 0.375rem;
}
.doc-card__meta {
  font-size: 0.75rem;
  color: #15200e;
  line-height: 1.35;
}
.doc-card__body {
  flex: 1;
  min-width: 0;
}
.doc-card__footer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.625rem;
  color: #767676;
  line-height: 1.4;
}
.doc-card__footer-icon {
  flex-shrink: 0;
  display: block;
}
.doc-card__footer--alert {
  color: #fb963e;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-badge--success {
  background: #e9f5f5;
  color: #156b6a;
}
.status-badge--danger {
  background: #ffd7d7;
  color: #c86262;
}
.status-badge--warning {
  background: #fff0e0;
  color: #d9790a;
}
.status-badge--info {
  background: #e3f4ff;
  color: #1a7fb9;
}

/* responsive collocated */
@media (max-width: 768px) {
  .documents-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 375px) {
  .documents-toolbar {
    margin-bottom: 1rem;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .documents-toolbar__search {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .documents-toolbar__filters {
    width: 100%;
  }
  .documents-toolbar__filters .btn {
    flex: 1;
  }
}

@media (max-width: 375px) {
  .documents-search {
    height: 2.5rem;
    padding: 0 0.875rem;
  }
  .documents-search__input {
    font-size: 0.875rem;
  }
}

/* doc-grid responsive */
@media (max-width: 1280px) {
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Document view (patient) — fixed shell + scrollable workspace ── */
body:has(.layout__content--doc-view) {
  overflow: hidden;
}

.layout:has(.layout__content--doc-view) {
  height: 100vh;
  overflow: hidden;
}

.layout:has(.layout__content--doc-view) .layout__main {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding-left: 3.25rem;
}

.layout:has(.layout__content--doc-view) .layout__content-bg {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.layout:has(.layout__content--doc-view) .header {
  position: relative;
  top: auto;
  flex-shrink: 0;
}

.layout__content--doc-view {
  padding: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.doc-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #156b6a;
}
.doc-view__hero {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem 1.5rem;
  color: #ffffff;
}
.doc-view__hero-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}
.doc-view__back {
  flex-shrink: 0;
  margin-top: 0.25rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
}
.doc-view__back:hover {
  color: #ffffff;
}
.doc-view__hero-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.12);
}
.doc-view__hero-icon img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.doc-view__hero-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.doc-view__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.doc-view__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 62.4375rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
}
.doc-view__tag--status {
  background: rgba(255, 255, 255, 0.16);
}
.doc-view__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}
.doc-view__meta {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}
.doc-view__hero-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
  max-width: 20rem;
  text-align: right;
}
.doc-view__access-btn {
  line-height: 114%;
}
.doc-view__access-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}
.doc-view__workspace {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #fafbfc;
  border-radius: 1rem 1rem 0 0;
  padding: 2rem;
}
.doc-view__toolbar {
  display: flex;
  justify-content: flex-end;
  max-width: calc(93.5625rem + 2 * 3rem);
  margin: 0 auto 1rem;
}
.doc-view__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.doc-view__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23.75rem;
  gap: 1.5rem;
  align-items: start;
  max-width: calc(93.5625rem + 2 * 3rem);
  margin-inline: auto;
}
.doc-view__split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: start;
  max-width: calc(93.5625rem + 2 * 3rem);
  margin-inline: auto;
}
.doc-view__secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: calc(93.5625rem + 2 * 3rem);
  margin-inline: auto;
  margin-top: 1.5rem;
}
.doc-view__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.doc-view__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.doc-view__viewer-panel {
  min-width: 0;
  position: sticky;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #e9f5f5;
}
.doc-view__viewer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.doc-view__viewer-heading {
  min-width: 0;
}
.doc-view__viewer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.doc-view__page-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.doc-view__page-label {
  font-size: 0.75rem;
  color: #767676;
  min-width: 3.5rem;
  text-align: center;
}
.doc-view__viewer-stage {
  position: relative;
  width: 100%;
  min-height: 17.5rem;
  border-radius: 0.625rem;
  background: #ffffff;
  overflow: auto;
}
.doc-view__viewer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 17.5rem;
  color: #156b6a;
}
.doc-view__viewer-empty[hidden] {
  display: none !important;
}
.doc-view__viewer-canvas-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.doc-view__viewer-canvas-wrap[hidden] {
  display: none !important;
}
.doc-view__viewer-canvas-wrap canvas,
.doc-view__viewer-canvas-wrap img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.doc-view__highlight {
  position: absolute;
  pointer-events: none;
  border: 0.125rem solid rgba(21, 107, 106, 0.95);
  background: rgba(26, 155, 154, 0.22);
  border-radius: 0.25rem;
  box-shadow: 0 0 0 0.125rem rgba(26, 155, 154, 0.18);
  z-index: 2;
  transition: inset-inline-start 0.15s ease, top 0.15s ease, width 0.15s ease, height 0.15s ease;
}
.doc-view__pdf {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
.doc-view__pdf-icon {
  display: flex;
  color: #156b6a;
}
.doc-view__pdf-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #15200e;
}
.doc-view__pdf-meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #767676;
}
.doc-view__indicators {
  min-width: 0;
}
.doc-view__indicator-item {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-view__indicators-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #15200e;
}
.doc-view__indicators-hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
}
.doc-view__indicator-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.doc-view__indicator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 0.0625rem solid #e0ebf5;
  border-left-width: 0.25rem;
  border-left-color: #156b6a;
  border-radius: 1rem;
  text-align: start;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: default;
}
.doc-view__indicator--clickable {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
}
.doc-view__indicator--clickable:hover, .doc-view__indicator--clickable:focus-visible {
  border-color: rgba(21, 107, 106, 0.45);
  outline: none;
  box-shadow: 0 0 0 0.125rem rgba(26, 155, 154, 0.2);
}
.doc-view__indicator--active {
  border-color: #156b6a;
  box-shadow: 0 0 0 0.125rem rgba(26, 155, 154, 0.28);
}
.doc-view__indicator--success {
  border-left-color: #156b6a;
}
.doc-view__indicator--warning {
  border-left-color: #fb963e;
}
.doc-view__indicator--danger {
  border-left-color: #c86262;
}
.doc-view__indicator-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.doc-view__indicator-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #15200e;
  line-height: 1.3;
}
.doc-view__indicator-norm {
  margin: 0;
  font-size: 0.75rem;
  color: #767676;
  line-height: 1.35;
}
.doc-view__indicator-value-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.doc-view__indicator-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #15200e;
  line-height: 1;
}
.doc-view__indicator-unit {
  font-size: 0.75rem;
  color: #767676;
  line-height: 1;
}
.doc-view__indicator-status {
  display: flex;
  flex-shrink: 0;
  color: #1a9b9a;
}
.doc-view__indicator-status--warning {
  color: #fb963e;
}
.doc-view__indicator-status--danger {
  color: #c86262;
}
.doc-view__panel {
  padding: 1rem;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 0.75rem;
}
.doc-view__panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.doc-view__panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #15200e;
}
.doc-view__panel-icon {
  display: flex;
  flex-shrink: 0;
  color: #156b6a;
}
.doc-view__ai-card {
  padding: 0.75rem;
  background: #fafbfc;
  border-radius: 0.625rem;
}
.doc-view__ai-card-title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #15200e;
}
.doc-view__ai-card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #15200e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-view__ai-card-text--expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.doc-view__ai-expand {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a9b9a;
  cursor: pointer;
}
.doc-view__ai-expand:hover {
  color: #156b6a;
}
.doc-view__ai-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #ffd7d7;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #c86262;
}
.doc-view__ai-warning-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.doc-view__ai-action {
  width: 100%;
  gap: 0.5rem;
}
.doc-view__viewer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.doc-view__viewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.doc-view__viewer-avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #ededed;
  color: #767676;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-view__viewer-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.doc-view__viewer-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
  line-height: 1.3;
}
.doc-view__viewer-date {
  margin: 0;
  font-size: 0.75rem;
  color: #767676;
  line-height: 1.35;
}
.doc-view__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #767676;
}
.doc-view__privacy-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #767676;
}

/* doc-view responsive */
@media (max-width: 1024px) {
  .doc-view__grid,
  .doc-view__split,
  .doc-view__secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .doc-view__viewer-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .doc-view__hero {
    flex-direction: column;
    padding-inline: 1rem;
  }
}

@media (max-width: 768px) {
  .doc-view__hero-aside {
    align-items: flex-start;
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .doc-view__workspace {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .doc-view__indicator {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
}

@media (max-width: 768px) {
  .doc-view__indicator-value-wrap {
    grid-column: 1;
  }
}

.doc-view__blob-notice {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 150%;
  color: #767676;
}

.doc-view__pdf [data-action=doc-open-preview][hidden],
.toolbar__actions .btn--download[hidden],
.toolbar__actions [data-action=doc-download][hidden] {
  display: none !important;
}

/* ── Document upload (patient) — Figma 137:4781 ── */
.document-upload-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.document-upload-card {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
}
.document-upload-card .card__body {
  border-top: none;
  padding: 1.5rem 1.5625rem 1.5625rem;
  gap: 1.25rem;
}
.document-upload-card__intro {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.document-upload-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 150%;
  color: #15200e;
}
.document-upload-card__subtitle {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 150%;
  color: #767676;
}
.document-upload-card__dropzone.card__dropzone {
  width: 100%;
  max-width: none;
  min-height: 17rem;
  margin-inline: 0;
  border: 0.125rem dashed #156b6a;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #e9f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.document-upload-card__dropzone.card__dropzone svg {
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.document-upload-card__dropzone.card__dropzone--dragover {
  border-color: #1a9b9a;
  background: rgba(21, 107, 106, 0.06);
}
.document-upload-card__dropzone.card__dropzone--has-file {
  border-style: solid;
  background: #ffffff;
}
.document-upload-card__dropzone.card__dropzone--has-file .card__dropzone-title {
  word-break: break-word;
}
.document-upload-card__pick-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border: 0.0625rem solid #d5d5d5;
  border-radius: 0.5rem;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 114%;
  color: #15200e;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.document-upload-card__pick-btn:hover {
  border-color: #156b6a;
  background: #ffffff;
}
.document-upload-card__submit {
  width: 100%;
  min-height: 3rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 150%;
  color: #15200e;
}

.document-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.document-upload-form__file {
  display: none;
}

.document-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.document-upload-field__label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 150%;
  color: #15200e;
}
.document-upload-field--checkbox {
  gap: 0.375rem;
  cursor: pointer;
}
.document-upload-field--checkbox .document-upload-field__label {
  font-weight: 400;
  cursor: pointer;
}
.document-upload-field__check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.document-upload-field__check-row input[type=checkbox] {
  margin-top: 0.125rem;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  accent-color: #156b6a;
  cursor: pointer;
}
.document-upload-field__hint {
  margin: 0 0 0 1.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 150%;
  color: #767676;
}
.document-upload-field .tabs {
  padding: 0.125rem;
}
.document-upload-field .tabs--family-cards {
  width: 100%;
  height: auto;
  padding: 0.125rem;
}

.card__dropzone-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 150%;
  text-align: center;
  color: #15200e;
}

.card__dropzone-hint {
  margin: 0;
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 150%;
  text-align: center;
  color: #767676;
}

/* ── Appointments page ── */
.appointments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.appointments-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.appointments-header__actions .btn--primary-pink {
  width: 15.4375rem;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  background-color: #f7aeae;
  color: #ffffff;
  border-color: transparent;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.appointments-header__actions .btn--primary-pink:hover:not(:disabled) {
  background-color: #f99;
}

.appointments-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 0.0625rem solid #f7aeae;
  border-radius: 1rem;
}

.appointments-stat__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.625rem;
  background: #f0faf4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appointments-stat__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.appointments-stat__value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #156b6a;
}

.appointments-stat__label {
  font-size: 0.875rem;
  line-height: 1.35;
  color: #15200e;
}

.appointments-card {
  overflow: hidden;
}

.appointment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.appointment-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 0.75rem;
}
@media (max-width: 480px) {
  .appointment-item {
    padding: 0.5rem 1rem;
  }
}
.appointment-item__date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  padding: 0.625rem 0.5rem;
  border-radius: 0.625rem;
  background: #e9f5f5;
  height: 4rem;
}
.appointment-item__date--past {
  background: #ededed;
}
.appointment-item__date--past .appointment-item__day {
  color: #15200e;
}
.appointment-item__date--past .appointment-item__month {
  color: #767676;
}
.appointment-item__day {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  color: #156b6a;
}
.appointment-item__month {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: #156b6a;
}
.appointment-item__body {
  flex: 1;
  min-width: 0;
}
.appointment-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.appointment-item__doctor {
  font-size: 1rem;
  font-weight: 600;
  color: #15200e;
  line-height: 1.3;
}
.appointment-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.appointment-item__patient {
  font-size: 0.875rem;
  color: #767676;
}
.appointment-item__patient--accent {
  color: #c86262;
}
.appointment-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #767676;
}
.appointment-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.appointment-item__meta .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}
.appointment-item__reason {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #767676;
}
.appointment-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.appointment-item__actions .btn--primary {
  width: auto;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 133%;
  text-align: center;
  color: #ffffff;
}
.appointment-item__actions .btn--action {
  width: auto;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 133%;
  text-align: center;
  background-color: #ffffff;
  border: 0.0625rem solid #d5d5d5;
  color: #15200e;
}
.appointment-item__actions .appointment-item__btn--repeat {
  color: #156b6a;
}

.status-badge--upcoming {
  background: #e9f5f5;
  color: #156b6a;
}

.status-badge--past {
  background: #ededed;
  color: #767676;
}

/* ── Visit cards ── */
.visit-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visit-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #e9f5f5;
  border-radius: 0.625rem;
  padding: 1rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
  border: none;
  width: 100%;
  text-align: left;
}
.visit-card:hover {
  background: #1a9b9a;
}
.visit-card:hover .visit-card__doctor {
  color: #ffffff;
}
.visit-card:hover .visit-card__patient {
  color: #f7aeae;
}
.visit-card:hover .visit-card__meta {
  color: #ededed;
}
.visit-card:active {
  background: #156b6a;
}
.visit-card:active .visit-card__doctor {
  color: #ffffff;
}
.visit-card:active .visit-card__patient {
  color: #c86262;
}
.visit-card:active .visit-card__meta {
  color: #ededed;
}
.visit-card:disabled, .visit-card[aria-disabled=true], .visit-card.is-disabled {
  background-color: #d5d5d5;
}
.visit-card:disabled .visit-card__doctor,
.visit-card:disabled .visit-card__patient,
.visit-card:disabled .visit-card__meta, .visit-card[aria-disabled=true] .visit-card__doctor,
.visit-card[aria-disabled=true] .visit-card__patient,
.visit-card[aria-disabled=true] .visit-card__meta, .visit-card.is-disabled .visit-card__doctor,
.visit-card.is-disabled .visit-card__patient,
.visit-card.is-disabled .visit-card__meta {
  color: #767676;
}
.visit-card__lead {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.visit-card__doctor {
  font-size: 1rem;
  font-weight: 500;
  color: #15200e;
}
.visit-card__meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #767676;
  font-size: 0.875rem;
  line-height: 143%;
  min-width: 0;
}
.visit-card__meta svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}
.visit-card__meta path {
  fill: currentColor;
}
.visit-card__patient {
  flex-shrink: 0;
}

/* ── Toolbar ── */
.toolbar,
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .toolbar,
  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

.toolbar__search,
.page-toolbar__search {
  flex: 1;
  max-width: 25rem;
}

.toolbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 768px) {
  .toolbar__actions {
    width: 100%;
  }
  .toolbar__actions .btn {
    flex: 1;
  }
}

/* appointment-item responsive */
@media (max-width: 768px) {
  .appointment-item {
    flex-direction: column;
    gap: 1rem;
  }
  .appointment-item__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .appointment-item__aside {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* ── Settings ── */
.settings-layout {
  width: 100%;
}

.settings {
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 1.5rem;
}

.settings-layout .card > .tabs {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0.875rem;
  padding-top: 0.5625rem;
}

.settings-layout .card > .card__body {
  gap: 0;
}

.settings-layout .tab-panel--active {
  gap: 0.75rem;
}

.settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #ededed;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.08);
  padding: 22px 20px 22px 28px;
  border-radius: 0.625rem;
}

.settings__row:last-child {
  border-bottom: none;
}

.settings__row > .checkbox,
.settings__row > .switch {
  flex-shrink: 0;
}

.settings__row--nav {
  width: 100%;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: #ffffff;
  transition: background-color 150ms ease;
}
.settings__row--nav:hover {
  background: #e9f5f5;
}
.settings__row--nav:focus-visible {
  outline: 0.125rem solid #1a9b9a;
  outline-offset: 0.125rem;
}

button.settings__row--nav {
  appearance: none;
  font: inherit;
  text-align: inherit;
}

.settings__row__chevron {
  width: 1.0625rem;
  height: 1.0625rem;
  flex-shrink: 0;
  color: #424242;
}

.settings__group + .settings__group {
  margin-top: 0.25rem;
}

.settings__group-label {
  margin: 0;
  padding: 0.25rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #767676;
}

.settings__row--toggle .settings__label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: #15200e;
}

.settings__row--action {
  justify-content: flex-end;
  border-bottom: none;
  padding-top: 0.5rem;
}

.settings__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.settings__info h3,
.settings__info h4 {
  margin-bottom: 0;
}

.settings__lead {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.settings__profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 0.0625rem solid #ededed;
}

.settings__profile-header .btn {
  margin-left: auto;
  width: auto;
}

.settings__session,
.session-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8125rem;
  border: 0.0625rem solid #ededed;
  border-radius: 0.5rem;
}

.tab-panel--active:has(.settings__session),
.tab-panel--active:has(.session-row) {
  gap: 0.5rem;
}

.settings__session + .settings__session,
.session-row + .session-row {
  margin-top: 0;
}

.settings__session-icon,
.session-row__icon {
  width: 2.25rem;
  height: 2.25rem;
  background: #e9f5f5;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings__session-info,
.session-row__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.settings__session-name,
.session-row__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
}

.settings__session-date--current {
  color: #1a9b9a;
}

.settings-language-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-language-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.9375rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #f8f8f8;
  color: #424242;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.settings-language-option--active {
  color: #1a9b9a;
}
.settings-language-option:hover:not(.settings-language-option--active) {
  background: #e9f5f5;
}

.settings__faq {
  padding: 1rem 0;
  border-bottom: 0.0625rem solid #ededed;
}

.settings__faq summary {
  cursor: pointer;
  list-style: none;
}

.settings__faq summary::-webkit-details-marker {
  display: none;
}

.settings__faq p {
  margin-top: 0.75rem;
}

/* responsive collocated */
@media (max-width: 1024px) {
  .settings-layout .card__body {
    padding: 1.5rem 1.25rem;
  }
  .settings-layout .card > .tabs .tab {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.625rem 0.375rem;
  }
}
@media (max-width: 768px) {
  .settings-layout .card__body {
    padding: 1rem 0.875rem;
  }
  .settings-layout .card > .tabs {
    flex-direction: column;
  }
  .settings-layout .card > .tabs .tab {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.625rem 0.75rem;
  }
}
@media (max-width: 375px) {
  .settings-layout .card__body {
    padding: 0.75rem 0.625rem;
  }
  .settings-layout .card > .tabs .tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.625rem;
  }
  .settings-layout .settings__session .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }
}

@media (max-width: 1024px) {
  .settings__row {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    gap: 0.75rem;
  }
}
@media (max-width: 768px) {
  .settings__row {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    gap: 0.625rem;
  }
}
@media (max-width: 375px) {
  .settings__row {
    padding: 0.5rem 0;
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) {
  .settings__profile-header {
    padding-bottom: 1rem;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
  }
}
@media (max-width: 768px) {
  .settings__profile-header {
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    gap: 0.625rem;
    margin-bottom: 0;
  }
  .settings__profile-header .btn {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 375px) {
  .settings__profile-header {
    padding-bottom: 0.625rem;
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) {
  .settings__lead {
    margin-bottom: 1rem;
    font-size: 0.75rem;
  }
}
@media (max-width: 768px) {
  .settings__lead {
    margin-bottom: 0.875rem;
    font-size: 0.75rem;
  }
}
@media (max-width: 375px) {
  .settings__lead {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .settings__row--toggle .settings__label {
    font-size: 0.875rem;
  }
}
@media (max-width: 768px) {
  .settings__row--toggle .settings__label {
    font-size: 0.75rem;
  }
}
@media (max-width: 375px) {
  .settings__row--toggle .settings__label {
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .settings__info .text {
    font-size: 0.75rem;
  }
}
@media (max-width: 768px) {
  .settings__info h3,
  .settings__info h4,
  .settings__info .title--h4 {
    font-size: 0.75rem;
  }
  .settings__info .text {
    font-size: 0.75rem;
  }
}
@media (max-width: 375px) {
  .settings__info h3,
  .settings__info h4,
  .settings__info .title--h4 {
    font-size: 0.75rem;
  }
  .settings__info .text {
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .settings__group-label {
    font-size: 0.75rem;
    padding: 0.125rem 0 0.5rem;
  }
}
@media (max-width: 768px) {
  .settings__group-label {
    font-size: 0.75rem;
    padding: 0.125rem 0 0.375rem;
  }
}
@media (max-width: 375px) {
  .settings__group-label {
    font-size: 0.75rem;
    padding: 0 0 0.25rem;
  }
}

@media (max-width: 768px) {
  .settings__row--action {
    padding-top: 0.25rem;
  }
}

@media (max-width: 768px) {
  .settings__group + .settings__group {
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .tabs--settings {
    flex-direction: column;
  }
  .tabs--settings .tab {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    text-align: center;
  }
}
@media (max-width: 375px) {
  .tabs--settings .tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .modal--settings {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .modal--settings .modal__header {
    margin-bottom: 1.25rem;
  }
  .modal--settings .modal__body {
    gap: 1.25rem;
  }
  .modal--settings .modal__footer {
    padding-top: 1.25rem;
  }
  .modal--settings.modal--settings-confirm .modal__illustration {
    width: 6rem;
    height: 6rem;
  }
}

/* ── Summary stat (family + access) ── */
.summary-stat {
  padding: 1.1875rem 1.375rem 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 1rem;
  width: 100%;
}
.summary-stat__icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #1a9b9a;
  flex-shrink: 0;
}
.summary-stat__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
}
.summary-stat__number {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
}
.summary-stat__text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 150%;
}
.summary-stat--family {
  max-width: 13.25rem;
  color: #ffffff;
  background-color: #1a9b9a;
}
@media (max-width: 768px) {
  .summary-stat--family {
    max-width: none;
  }
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1875rem;
}
@media (max-width: 1440px) {
  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .family-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
}

.family-card {
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 0.75rem;
}

.family-card {
  cursor: pointer;
  transition: box-shadow 150ms ease;
  min-width: 0;
}
.family-card:hover {
  box-shadow: 0 0 0.15625rem 0 rgba(0, 0, 0, 0.08);
}
.family-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem 2.5rem 1.5rem;
  border-radius: 0.75rem 0.75rem 0 0;
  background-color: #156b6a;
}
@media (max-width: 991px) {
  .family-card__header {
    padding: 0.5rem 1.25rem 0.5rem 1.5rem;
  }
}
.family-card__header .title--h2 {
  color: #ffffff;
}
.family-card__header .text--color {
  color: #f8f8f8;
}
.family-card__header .header--row-logo svg path {
  stroke: #156b6a;
}
.family-card__header--active {
  background-color: #f7aeae;
}
.family-card__header--active .title--h2 {
  color: #15200e;
}
.family-card__header--active .text--color {
  color: #767676;
}
.family-card__header--active .header--row-logo svg path {
  stroke: #f7aeae;
}
.family-card__name {
  font-size: 1rem;
  font-weight: 600;
}
.family-card__relation {
  font-size: 0.75rem;
  color: #767676;
}
.family-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  color: #767676;
  padding-top: 1.4375rem;
}
@media (max-width: 768px) {
  .family-card__stats {
    grid-template-columns: 1fr 1fr;
  }
}
.family-card__wrapper {
  padding: 1.5rem 1.4375rem 1.75rem 1.25rem;
}
.family-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.0625rem solid #ededed;
}
.family-card__footer {
  padding-top: 2.3125rem;
}
.family-card__btn {
  border: 0.0625rem solid #d5d5d5;
  border-radius: 0.5rem;
  width: 100%;
  padding: 0.5625rem 0;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  color: #15200e;
  cursor: pointer;
}

.info-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header--row-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #156b6a;
  flex-shrink: 0;
}

.stats-block {
  background-color: #f8f8f8;
  border-radius: 0.5rem;
  width: 100%;
  min-width: 0;
}
.stats-block__content {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 768px) {
  .stats-block__content {
    padding: 1rem 0.5rem;
  }
}
.stats-block__text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.toolbar-hint {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #e9f5f5;
  border-radius: 0.5rem;
}
.toolbar-hint__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 150%;
  color: #15200e;
}
.toolbar-hint__text {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 150%;
  color: #767676;
}

/* ── Patient access page (1497 shell / ~1393 content like documents) ── */
.toolbar--access {
  display: flex;
  align-items: stretch;
  gap: 1.125rem;
  width: 100%;
  margin-bottom: 1.125rem;
}
.toolbar--access .summary-stat--family {
  flex-shrink: 0;
}
.toolbar--access .toolbar-hint {
  flex: 1 1 auto;
  min-width: 0;
}
.toolbar--access .toolbar__actions {
  flex-shrink: 0;
  align-self: center;
}

.access-page-card {
  overflow: hidden;
  background-color: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 1rem;
  width: 100%;
}
.access-page-card > .card__body {
  padding: 1.25rem 0 1.5rem;
}

.access-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.access-grant-card {
  position: relative;
  width: 100%;
  padding: 1rem 1.25rem 1.25rem;
  background: #ffffff;
  border: 0.0625rem solid #f7aeae;
  border-radius: 0.625rem;
  box-sizing: border-box;
}
.access-grant-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.access-grant-card__lead {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}
.access-grant-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: #e9f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #156b6a;
}
.access-grant-card__identity {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  min-width: 0;
}
.access-grant-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.access-grant-card__doctor {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 150%;
  color: #15200e;
}
.access-grant-card__status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  background: #156b6a;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 150%;
  white-space: nowrap;
}
.access-grant-card__status--waiting {
  background: #fff0e0;
  color: #d9790a;
}
.access-grant-card__status--expired {
  background: #ededed;
  color: #767676;
}
.access-grant-card__note, .access-grant-card__view {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 150%;
  color: #767676;
}
.access-grant-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.access-grant-card__view svg {
  color: #767676;
}
.access-grant-card__period, .access-grant-card__docs {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  min-width: 0;
}
.access-grant-card__docs {
  gap: 0.375rem;
  max-width: 14rem;
}
.access-grant-card__label {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 150%;
  color: #767676;
}
.access-grant-card__date {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 150%;
  color: #15200e;
}
.access-grant-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.access-grant-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-left: 3.75rem;
}
.access-grant-card--incoming {
  border-color: #fb963e;
}

/* access responsive */
@media (max-width: 1024px) {
  .toolbar--access {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .access-grant-card .access-grant-card__row {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .access-grant-card {
    padding: 1rem;
  }
  .access-grant-card .access-grant-card__row {
    flex-direction: column;
    gap: 1rem;
  }
  .access-grant-card .access-grant-card__actions {
    padding-left: 0;
    width: 100%;
  }
  .access-grant-card .access-grant-card__actions .btn {
    flex: 1 1 auto;
  }
}

/* ── Help / Support ── */
.documents-search--help {
  margin-bottom: 1.5rem;
}

.support-section {
  margin-top: 2rem;
}
.support-section__lead {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.875rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1024px) {
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms ease;
}
.support-card:hover {
  box-shadow: 0 0 0.15625rem 0 rgba(0, 0, 0, 0.08);
}
.support-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #e9f5f5;
  color: #156b6a;
}
.support-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.support-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
}
.support-card__meta {
  font-size: 0.75rem;
}

.toolbar--notifications {
  margin-bottom: 1.5rem;
}

/* ── Notifications page ── */
.notifications-page__actions {
  margin-bottom: 1.5rem;
}

.notifications-card {
  overflow: hidden;
}
.notifications-card .tabs--access-doctor .tab:not(.tab--active) {
  background: #f0faf4;
  color: #15200e;
}

.notifications-card__body {
  padding: 1.5rem 1.875rem 1.875rem;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 0.625rem;
}
.notification-item--access {
  background: #e9f5f5;
  border-color: #e9f5f5;
}
.notification-item--request {
  background: #fff0f0;
  border-color: #fff0f0;
}
.notification-item__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: #e9f5f5;
  color: #156b6a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-item__icon--white {
  background: #ffffff;
}
.notification-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.notification-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: #15200e;
}
.notification-item__meta {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #767676;
}
.notification-item__time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #767676;
}
.notification-item__time svg {
  flex-shrink: 0;
  color: #767676;
}
.notification-item__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.notification-item__actions .btn--primary,
.notification-item__actions .btn--outline {
  width: auto;
  min-height: 2rem;
  box-sizing: border-box;
  padding: 0.4375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 133%;
  border-radius: 0.5rem;
  border: 0.0625rem solid transparent;
}
.notification-item__actions .btn--primary {
  background-color: #1a9b9a;
  color: #ffffff;
  border-color: #1a9b9a;
}
.notification-item__actions .btn--outline {
  background-color: #ffffff;
  color: #15200e;
  border-color: #d5d5d5;
}

.layout__content-bg:has(.layout__content--flush) {
  min-height: calc(100vh - 4.375rem);
}

/* responsive collocated */
@media (max-width: 768px) {
  .toolbar--notifications .btn,
  .notifications-page__actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .notification-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .notification-item__actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0.25rem;
  }
}
@media (max-width: 375px) {
  .notification-item {
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
  }
  .notification-item__title {
    font-size: 0.875rem;
  }
  .notification-item__meta {
    font-size: 0.75rem;
  }
}

@media (max-width: 375px) {
  .notifications-card__body {
    padding: 1rem 0.75rem;
  }
}

/* ── AI assistant shell + history ── */
.ai-shell {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 4.375rem);
  gap: 0;
}

.ai-shell.is-history-open {
  gap: 2rem;
}

.ai-history {
  display: none;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  max-width: 20.875rem;
  min-width: 0;
  min-height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.ai-shell.is-history-open .ai-history {
  display: flex;
}

.ai-history__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  background: #ffffff;
}

.ai-history__icon {
  flex-shrink: 0;
  display: block;
}

.ai-history__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 150%;
  color: #15200e;
}

.ai-history__clear {
  flex-shrink: 0;
  margin-inline-start: auto;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: #c86262;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.ai-history__clear:hover {
  background: rgba(200, 98, 98, 0.08);
}
.ai-history__clear:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.ai-history__clear[hidden] {
  display: none !important;
}

.ai-history__body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 1.125rem 1rem 0;
  background: #e9f5f5;
  overflow: hidden;
}

.ai-history__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  min-width: 0;
}

.ai-history__group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ai-history__date {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 133%;
  color: #767676;
}

.ai-history__items {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-history__row {
  display: flex;
  align-items: stretch;
  gap: 0.375rem;
  min-width: 0;
}

.ai-history__item {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 0.625rem 0.5625rem;
  border: none;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #15200e;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 133%;
  text-align: start;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.ai-history__item:hover {
  background: #ffffff;
  filter: brightness(0.98);
}
.ai-history__item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.ai-history__item-delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #767676;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.ai-history__item-delete:hover {
  color: #c86262;
  background: rgba(200, 98, 98, 0.08);
}
.ai-history__item-delete:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.ai-history__item-delete-icon {
  display: block;
}

.ai-history__dna {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 14.625rem;
  max-width: 70%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* ── AI assistant ── */
.ai-assistant {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 4.375rem);
  background: #ffffff;
}

.ai-assistant__action-btn.is-active {
  background: #e9f5f5;
  border-color: #156b6a;
  color: #156b6a;
}

.ai-assistant__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8125rem 1rem;
  background: #f8f8f8;
}
@media (max-width: 1280px) {
  .ai-assistant__header {
    flex-direction: column;
  }
}

.ai-assistant__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #156b6a;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.ai-assistant__back:hover {
  background: #e9f5f5;
}

.ai-assistant__heading {
  flex: 1;
  min-width: 0;
  padding-top: 0.1875rem;
}

.ai-assistant__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #15200e;
  line-height: 1.3;
}

.ai-assistant__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0;
  max-width: 31.5rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #767676;
}

.ai-assistant__disclaimer-icon {
  flex-shrink: 0;
  margin-top: 0.0625rem;
  color: #767676;
}

.ai-assistant__header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-top: 0.4375rem;
}

.ai-assistant__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.875rem;
  padding: 0.4375rem 1.625rem;
  border: 0.0625rem solid #d5d5d5;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #15200e;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 133%;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.ai-assistant__action-btn:hover {
  background: #e9f5f5;
}

.ai-mode-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0 0 0.625rem;
  padding: 0 0.125rem;
}

.ai-mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.625rem;
  padding: 0.2rem 0.625rem;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  background: #ffffff;
  color: #767676;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.ai-mode-chip:hover {
  border-color: rgba(21, 107, 106, 0.35);
  color: #15200e;
}
.ai-mode-chip.is-active {
  border-color: #156b6a;
  background: #e9f5f5;
  color: #156b6a;
}
.ai-mode-chip:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.ai-assistant__body {
  flex: 1;
  min-height: 0;
  padding-top: 1rem;
  background: #f8f8f8;
  overflow: hidden;
}

.ai-assistant__messages {
  height: 100%;
  max-height: none;
  padding: 1.3125rem 0 1rem;
}

.ai-assistant__message {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 45.5625rem;
}

.ai-assistant__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 0.0625rem solid #156b6a;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #156b6a;
}

.ai-assistant__bubble {
  flex: 1;
  min-width: 0;
  padding: 0.8125rem 1.0625rem 0.96rem;
  background: #ffffff;
  border-radius: 0 0.5rem 0.5rem 0.5rem;
}

.ai-assistant__bubble-content {
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
}

.ai-assistant__bubble-title {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 170%;
  color: #15200e;
}
.ai-assistant__bubble-title span {
  font-weight: 700;
}

.ai-assistant__bubble-text {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 143%;
  color: #15200e;
}

.ai-assistant__time {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.625rem;
  line-height: 1.7;
  color: #424242;
}

.ai-assistant__composer {
  padding: 0.8125rem 0.75rem 0;
  background: #ffffff;
  border-top: 0.0625rem solid #ededed;
}
@media (max-width: 767px) {
  .ai-assistant__composer {
    display: flex;
    gap: 1rem;
    flex-direction: column;
  }
}

.ai-assistant__form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
@media (max-width: 767px) {
  .ai-assistant__form {
    flex-direction: column;
    align-items: stretch;
  }
}

.ai-assistant__input {
  flex: 1;
  min-width: 0;
  min-height: 2.625rem;
  max-height: 7.5rem;
  padding: 0.625rem 1rem;
  border: 0.0625rem solid #d5d5d5;
  border-radius: 0.5rem;
  background: #ffffff;
  resize: none;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #767676;
}
@media (max-width: 767px) {
  .ai-assistant__input {
    width: 100%;
    min-height: 4rem;
    max-height: none;
  }
}
.ai-assistant__input::placeholder {
  color: #767676;
}
.ai-assistant__input:focus {
  outline: none;
  border-color: #1a9b9a;
  box-shadow: var(--focus-ring);
}

.ai-assistant__action-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.5625rem;
  border: none;
  border-radius: 0.5rem;
  background: #156b6a;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.ai-assistant__action-slot:hover {
  background: #1a9b9a;
}
.ai-assistant__action-slot:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ai-assistant__action-slot.is-listening {
  background: #c86262;
  box-shadow: 0 0 0 3px rgba(200, 98, 98, 0.25);
}
.ai-assistant__action-slot:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.ai-assistant__icon-mic,
.ai-assistant__icon-send {
  display: block;
}

.ai-assistant__hint {
  margin: 0.3125rem 0 0.75rem;
  font-size: 0.625rem;
  line-height: 1.5;
  color: #767676;
  text-align: center;
}

.ai-assistant__messages .chat__message {
  max-width: 45.5625rem;
  margin-left: 2.75rem;
}

.ai-assistant__messages .chat__message--bot {
  background: #ffffff;
  border-radius: 0;
  padding: 0.8125rem 1.0625rem;
}

.ai-assistant__messages .chat__message--user {
  margin-left: auto;
  margin-right: 0;
  border-radius: 0.5rem;
}

.ai-assistant__messages .chat__message .text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-assistant__messages .chat__message--pending {
  opacity: 0.72;
  font-style: italic;
  color: #767676;
}

.ai-context {
  margin: 0.5rem 0 0.5rem;
  padding: 0.5rem 1rem 0.35rem;
}

.ai-context--quiet {
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #ededed;
}

.ai-context__used,
.ai-context__facts-status {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: #767676;
}

.ai-context__controls,
.ai-context__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0;
  align-items: end;
}

.ai-context__facts {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #d5d5d5;
}

.ai-context__field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 8rem;
  font-size: 0.6875rem;
  color: #767676;
}

.ai-context__field--wide {
  flex: 1 1 12rem;
}

.ai-context__field select,
.ai-context__field input {
  min-height: 1.875rem;
  border: 1px solid #d5d5d5;
  border-radius: 0.25rem;
  padding: 0.2rem 0.45rem;
  background: #ffffff;
  color: #15200e;
  font-size: 0.75rem;
}

.ai-context__facts-link {
  align-self: end;
  margin: 0;
  padding: 0.2rem 0;
  border: none;
  background: transparent;
  color: #767676;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ai-context__facts-link:hover {
  color: #156b6a;
}
.ai-context__facts-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.ai-assistant__triage {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ai-assistant__triage--emergency {
  color: #b42318;
}

.ai-assistant__triage--urgent {
  color: #b54708;
}

.ai-assistant__sources {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(21, 107, 106, 0.12);
}

.ai-assistant__sources-title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ai-assistant__sources ul {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.ai-assistant__sources a {
  color: #1a9b9a;
  text-decoration: underline;
}

.ai-assistant__source-lang {
  margin-inline-start: 0.25rem;
  color: rgba(31, 43, 43, 0.62);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

[dir=rtl] .ai-assistant__sources ul {
  padding-inline-start: 0;
  padding-inline-end: 1.1rem;
}

/* ── Chat ── */
.chat,
.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4.375rem - 5rem);
  max-width: 56.25rem;
}

.chat__messages,
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat__message,
.chat-message {
  max-width: 75%;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  line-height: 1.5;
}

.chat__message--bot,
.chat-message--bot {
  background: #e9f5f5;
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}

.chat__message--user,
.chat-message--user {
  background: #1a9b9a;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}

.chat__message--user .text {
  color: #ffffff;
}

.chat__form,
.chat-input-bar {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid #ededed;
}

.chat__form .field__input,
.chat__form .form-input,
.chat-input-bar .form-input {
  flex: 1;
}

.chat__form .btn {
  width: auto;
}

/* ── Card modifiers ── */
.card__header--active {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 0.0625rem solid #ededed;
  background-color: #f7aeae;
}

.card__preview {
  text-align: center;
  padding: 2rem;
  background: #e9f5f5;
  border-radius: 0.625rem;
  margin-bottom: 1.5rem;
}

.card__preview img {
  margin-bottom: 1rem;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card__actions .btn {
  width: auto;
}

/* ── Badge ── */
.badge {
  font-size: 0.75rem;
  color: #767676;
}

.badge--dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 0.375rem;
  height: 0.375rem;
  background-color: #c86262;
  border-radius: 50%;
}

.badge--muted {
  opacity: 0.7;
}

.avatar--xl {
  width: 5rem;
  height: 5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

/* ── Utilities ── */
.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-container .alert {
  box-shadow: shadow-modal;
}

/* Author display rules override UA [hidden] — force hide. */
.tab[hidden],
.doctor-access-card__tabs .tab[hidden],
.stat-card[hidden],
.dashboard__stats .stat-card[hidden] {
  display: none !important;
}

/* ── Doctor access request page ── */
.doctor-access-request-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.doctor-access-request-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #156b6a;
  text-decoration: none;
}
.doctor-access-request-page__back .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.doctor-access-request-page__back:hover {
  color: #156b6a;
}

.doctor-access-request {
  width: 100%;
  padding: 1.75rem 2.5rem 2.5rem;
  border: 0.0625rem solid #ededed;
  box-shadow: 0 0 0.15625rem 0 rgba(0, 0, 0, 0.08);
}
.doctor-access-request__accent {
  display: block;
  width: 3rem;
  height: 0.25rem;
  margin: 0 auto 1.75rem;
  border-radius: 62.4375rem;
  background: #f7aeae;
}
.doctor-access-request__header {
  margin-bottom: 1.75rem;
}
.doctor-access-request__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: #15200e;
}
.doctor-access-request__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.doctor-access-request__doc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0.0625rem solid transparent;
  border-radius: 0.5rem;
  background: #ededed;
  color: #15200e;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.doctor-access-request__doc-btn:hover {
  background: #e9f5f5;
  border-color: #1a9b9a;
  color: #156b6a;
}
.doctor-access-request__submit {
  align-self: stretch;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
}

/* ── Doctor access page ── */
.doctor-access-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.doctor-access-toolbar__search {
  min-width: 0;
}
.doctor-access-toolbar__hint {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: #767676;
  background: #e9f5f5;
  border-radius: 0.5rem;
  line-height: 150%;
  margin-right: 3.125rem;
}
.doctor-access-toolbar__hint-icon {
  flex-shrink: 0;
  color: #156b6a;
}
.doctor-access-toolbar__action {
  justify-self: end;
}

.doctor-access-card-wrap {
  height: 100vh;
}
@media (max-width: 767px) {
  .doctor-access-card-wrap {
    height: auto;
  }
}

.doctor-access-card__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding: 0.5625rem 0 0 1.875rem;
}
@media (max-width: 767px) {
  .doctor-access-card__tabs {
    margin-left: 0;
    flex-wrap: nowrap;
    overflow: auto;
    max-width: 100%;
  }
}
.doctor-access-card__tabs .tab {
  flex: 0 1 auto;
  width: auto;
  min-width: 8.75rem;
  max-width: 10rem;
  padding: 0.75rem 1.25rem;
}

.doctor-access-card__body {
  padding: 1.5rem 1.875rem 1.875rem;
}

.doctor-access-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doctor-access-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 0.625rem;
}
.doctor-access-row--incoming {
  border-color: #fb963e;
}
.doctor-access-row--expired .doctor-access-row__tag--direction {
  background: #ededed;
  color: #767676;
}
.doctor-access-row__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.doctor-access-row__lead {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}
.doctor-access-row__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: #e9f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #156b6a;
}
.doctor-access-row__identity {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.doctor-access-row__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.doctor-access-row__name {
  font-size: 1rem;
  font-weight: 600;
  color: #15200e;
}
.doctor-access-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  min-width: 0;
}
.doctor-access-row__meta .doctor-access-row__desc, .doctor-access-row__meta .doctor-access-row__period-date {
  margin: 0;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 150%;
  color: #767676;
}
.doctor-access-row__desc {
  font-size: 0.875rem;
  color: #15200e;
  margin: 0;
  line-height: 1.35;
}
.doctor-access-row__period {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  min-width: 0;
}
.doctor-access-row__period-label {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 150%;
  color: #767676;
}
.doctor-access-row__period-date {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 150%;
  color: #15200e;
}
.doctor-access-row__docs {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  min-width: 0;
  max-width: 14rem;
}
@media (max-width: 991px) {
  .doctor-access-row__docs {
    align-items: center;
  }
}
@media (max-width: 767px) {
  .doctor-access-row__docs {
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .doctor-access-row__docs {
    align-items: center;
  }
}
.doctor-access-row__docs-label {
  margin: 0;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 150%;
  color: #767676;
}
.doctor-access-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.doctor-access-row__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.doctor-access-row__tag--direction {
  background: #156b6a;
  color: #ffffff;
}
.doctor-access-row__tag--waiting, .doctor-access-row__tag--review {
  background: #fef3c7;
  color: #fb963e;
}
.doctor-access-row__tag--expired {
  background: #ededed;
  color: #767676;
}
.doctor-access-row__tag--doc {
  background: #ffead8;
  color: #15200e;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 150%;
}
.doctor-access-row__tag--doc-muted {
  background: #ededed;
  color: #767676;
}
.doctor-access-row__days {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 133%;
  white-space: nowrap;
  border-radius: 0.1875rem;
  padding: 0.25rem 0.3125rem 0.1875rem;
}
.doctor-access-row__days--warning {
  background: #fff0f0;
  color: #c86262;
}
.doctor-access-row__days--ok {
  background: #e9f5f5;
  color: #156b6a;
}
.doctor-access-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.625rem;
  align-self: stretch;
}
@media (max-width: 991px) {
  .doctor-access-row__aside {
    align-items: flex-start;
    align-self: center;
  }
}
.doctor-access-row__aside:not(:has(.doctor-access-row__days)) {
  justify-content: flex-end;
}
.doctor-access-row__aside .btn--outline {
  border-radius: 0.5rem;
  border: 0.0625rem solid #d5d5d5;
}
.doctor-access-row__actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.doctor-access-row__actions-row .btn--outline {
  border-radius: 0.5rem;
  border: 0.0625rem solid #d5d5d5;
}
.doctor-access-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.doctor-access-row--history {
  padding: 0.875rem 1.25rem 1.25rem;
}
.doctor-access-row__note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
  max-width: 11.25rem;
}
.doctor-access-row {
  /* Legacy flat grid (sessions.html без __row) */
}
.doctor-access-row:not(:has(> .doctor-access-row__row)) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(8.75rem, 11.25rem) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
}
@media (max-width: 991px) {
  .doctor-access-row:not(:has(> .doctor-access-row__row)) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
  }
}
.doctor-access-row:not(:has(> .doctor-access-row__row)) > .doctor-access-row__icon {
  grid-column: 1;
  grid-row: 1/-1;
}
.doctor-access-row:not(:has(> .doctor-access-row__row)) > .doctor-access-row__main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
@media (max-width: 991px) {
  .doctor-access-row:not(:has(> .doctor-access-row__row)) > .doctor-access-row__main {
    align-items: center;
  }
}
.doctor-access-row:not(:has(> .doctor-access-row__row)) > .doctor-access-row__docs {
  grid-column: 3;
}
.doctor-access-row:not(:has(> .doctor-access-row__row)) > .doctor-access-row__aside {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.625rem;
  margin-left: 0;
}
@media (max-width: 991px) {
  .doctor-access-row:not(:has(> .doctor-access-row__row)) > .doctor-access-row__aside {
    align-items: center;
  }
}
.doctor-access-row:not(:has(> .doctor-access-row__row)) > .doctor-access-row__days {
  margin-left: 0;
}
.doctor-access-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.doctor-access-row__dates {
  font-size: -size-base;
  color: -text-muted;
  margin: 0;
  line-height: 1.35;
}

/* ── Doctor home ── */
.tabs--doctor-home.tabs--fixed-width .tab {
  flex: 0 0 auto;
  width: 100%;
  max-width: 14.25rem;
}

.access-request {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 0.0625rem solid #fb963e;
  border-radius: 0.625rem;
}
@media (max-width: 767px) {
  .access-request {
    flex-wrap: wrap;
  }
}
.access-request__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: #e9f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #156b6a;
}
.access-request__body {
  flex: 1;
  min-width: 0;
}
.access-request__name {
  font-size: 1rem;
  font-weight: 500;
  color: #15200e;
  margin-bottom: 0.25rem;
}
.access-request__meta {
  font-size: 0.875rem;
  color: #767676;
  line-height: 1.35;
}
.access-request__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 767px) {
  .access-request__actions {
    width: 100%;
  }
}
.access-request__actions .btn--primary,
.access-request__actions .btn--outline {
  width: auto;
  box-sizing: border-box;
  padding: 0.4375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 133%;
  border-radius: 0.5rem;
  border: 0.0625rem solid #1a9b9a;
}
.access-request__actions .btn--primary {
  background-color: #1a9b9a;
  color: #ffffff;
  border-color: #1a9b9a;
}
.access-request__actions .btn--outline {
  background-color: #ffffff;
  color: #1a9b9a;
}

.access-request-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doctor-data-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.doctor-data-list__item {
  text-decoration: none;
  color: inherit;
}
.doctor-data-list__status {
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}
.doctor-data-list__status--done {
  color: #156b6a;
}
.doctor-data-list__status--progress {
  color: #767676;
}

.doctor-access-panel {
  background: linear-gradient(138deg, #f7aeae 0%, #ffd7d7 100%);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.doctor-access-panel__title {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  font-weight: 600;
  color: #15200e;
  align-self: flex-start;
}
.doctor-access-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.doctor-access-panel__link {
  align-self: flex-end;
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
  text-decoration: none;
}
.doctor-access-panel__link:hover {
  color: #156b6a;
}

.doctor-access-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.625rem;
}
.doctor-access-item__body {
  min-width: 0;
}
.doctor-access-item__name {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #15200e;
  margin-bottom: 0.25rem;
}
.doctor-access-item__meta {
  display: block;
  font-size: 0.875rem;
  color: #767676;
  line-height: 1.35;
}
.doctor-access-item__days {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #156b6a;
  white-space: nowrap;
}

/* responsive collocated */
@media (max-width: 1024px) {
  .doctor-access-toolbar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .doctor-access-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .doctor-access-toolbar__action {
    justify-self: stretch;
  }
}
@media (max-width: 768px) {
  .doctor-access-toolbar__action {
    justify-self: stretch;
  }
}

@media (max-width: 768px) {
  .doctor-access-request {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

@media (max-width: 768px) {
  .doctor-access-request-page__back {
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .doctor-access-row .doctor-access-row__row {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .doctor-access-row .doctor-access-row__row {
    flex-direction: column;
    gap: 1rem;
  }
  .doctor-access-row .doctor-access-row__actions-row {
    padding-left: 0;
    width: 100%;
  }
  .doctor-access-row .doctor-access-row__actions-row .btn {
    flex: 1 1 auto;
  }
  .doctor-access-row .doctor-access-row__note {
    max-width: none;
    text-align: left;
  }
}
@media (max-width: 375px) {
  .doctor-access-row {
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
  }
  .doctor-access-row__name {
    font-size: 0.875rem;
  }
  .doctor-access-row__desc, .doctor-access-row__dates {
    font-size: 0.75rem;
  }
}

@media (max-width: 375px) {
  .tabs--access-doctor,
  .doctor-access-card__tabs {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0.5rem;
  }
  .tabs--access-doctor .tab,
  .doctor-access-card__tabs .tab {
    min-width: 0;
    max-width: none;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 375px) {
  .doctor-access-card__body {
    padding: 1rem 0.75rem;
  }
}

/* ── Doctor active session (medcard) ── */
.doctor-session__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #767676;
  text-decoration: none;
}
.doctor-session__back:hover {
  color: #156b6a;
}

.doctor-session {
  display: grid;
  grid-template-columns: minmax(0, 21.5rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1440px) {
  .doctor-session {
    grid-template-columns: 1fr;
  }
}

.doctor-session-patient {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
}
@media (max-width: 375px) {
  .doctor-session-patient {
    padding: 1rem;
    gap: 1rem;
  }
}

.doctor-session-patient__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doctor-session-patient__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.625rem;
  background: #e9f5f5;
  color: #156b6a;
}

.doctor-session-patient__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.doctor-session-patient__meta {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25;
}

.doctor-session-vitals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 375px) {
  .doctor-session-vitals {
    grid-template-columns: 1fr;
  }
}

.doctor-session-vital {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 0.625rem;
  background: #156b6a;
  color: #ffffff;
}
.doctor-session-vital__icon {
  display: flex;
  color: #ffffff;
}
.doctor-session-vital__value {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  padding-top: 1.125rem;
}
.doctor-session-vital__label, .doctor-session-vital__date {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2;
  opacity: 0.85;
}
.doctor-session-vital__date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.doctor-session-vital__date-icon {
  flex-shrink: 0;
}

.doctor-session-summary {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
  border-radius: 0.625rem;
  background: #e9f5f5;
}
.doctor-session-summary__row {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #15200e;
}
.doctor-session-summary__label {
  color: #767676;
}
.doctor-session-summary__value {
  font-weight: 500;
}
.doctor-session-summary__heading {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #767676;
}
.doctor-session-summary__diag {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #15200e;
}

.doctor-session-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.doctor-session-notes__title {
  margin: 0;
}
.doctor-session-notes__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.doctor-session-notes__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0.0625rem solid #ededed;
  border-radius: 0.625rem;
  font-family: "Inter", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #15200e;
  resize: vertical;
  box-sizing: border-box;
}
.doctor-session-notes__textarea::placeholder {
  color: #767676;
}
.doctor-session-notes__textarea:focus {
  outline: none;
  border-color: #1a9b9a;
}
.doctor-session-notes__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.doctor-session-notes__hint {
  font-size: 0.75rem;
}

.doctor-session-note {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
}
.doctor-session-note__text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #15200e;
}
.doctor-session-note__time {
  margin: 0;
  font-size: 0.75rem;
}

.doctor-session-docs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doctor-session-docs__search {
  width: 100%;
}

.doctor-session-docs__card {
  overflow: hidden;
}

.doctor-session-docs__tabs {
  padding-left: 1.875rem;
  padding-top: 0.5625rem;
}
@media (max-width: 768px) {
  .doctor-session-docs__tabs {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-around;
  }
}

.doctor-session-docs__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doctor-session-docs__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doctor-session-docs__extra {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.doctor-session-docs__extra[hidden] {
  display: none;
}

.doctor-session-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 0.625rem;
  background: #ffffff;
  box-shadow: 0 0 0.3125rem rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.doctor-session-doc--locked {
  background: #ededed;
  box-shadow: none;
}
@media (max-width: 768px) {
  .doctor-session-doc {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
  }
}

.doctor-session-doc__lead {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
@media (max-width: 768px) {
  .doctor-session-doc__lead {
    gap: 1rem;
  }
}

.doctor-session-doc__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: #ededed;
}
.doctor-session-doc__icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.doctor-session-doc__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.doctor-session-doc__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #15200e;
  line-height: 1.5rem;
}

.doctor-session-doc__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #767676;
  line-height: 1.25rem;
}

.doctor-session-doc__aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .doctor-session-doc__aside {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.doctor-session-doc__access {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #156b6a;
  font-family: "Inter", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
}
.doctor-session-doc__access:hover {
  color: #1a9b9a;
}

.doctor-session-docs__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 0.25rem auto 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #767676;
  font-family: "Inter", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.doctor-session-docs__more:hover {
  color: #156b6a;
}
.doctor-session-docs__more[aria-expanded=true] svg {
  transform: rotate(180deg);
}
.doctor-session-docs__more svg {
  transition: transform 150ms ease;
}

.doctor-session-docs__privacy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: left;
}

.doctor-session-docs__privacy-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.doctor-session-docs__finish {
  width: 100%;
}

.doctor-verify-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(21, 107, 106, 0.25);
  border-radius: 12px;
  background: rgba(21, 107, 106, 0.06);
}

.doctor-verify-gate__text {
  margin: 0;
  flex: 1 1 16rem;
}

.doctor-verification-card {
  margin-top: 1rem;
}

.doctor-verification-upload {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.doctor-access-request__lookup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doctor-access-request__lookup .field__input {
  flex: 1 1 12rem;
}

.doctor-session-confidential {
  grid-column: 1/-1;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: repeating-linear-gradient(-45deg, rgba(251, 150, 62, 0.12), rgba(251, 150, 62, 0.12) 8px, rgba(251, 150, 62, 0.05) 8px, rgba(251, 150, 62, 0.05) 16px);
  border: 1px solid rgba(251, 150, 62, 0.35);
}

.doctor-session-confidential p {
  margin: 0;
  font-size: 0.875rem;
}

.doctor-session-scope {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(21, 32, 14, 0.04);
}

.doctor-session-scope__label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text-muted, #6b7280);
}

.doctor-session-scope__value {
  margin: 0;
  font-weight: 600;
}

.doctor-session-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.doctor-session-audit {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

a.is-disabled {
  pointer-events: auto;
  opacity: 0.55;
}

.appointment-new-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 1.625rem;
  padding-top: 5.9675rem;
}

.appointment-new__back {
  align-self: flex-start;
}

.appointment-new-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.appointment-new-card__header {
  border-bottom: none;
  padding-bottom: 0;
}

.appointment-new-card__body {
  padding: 0;
  background-color: #ffffff;
  border-top: none;
}

.appointment-new__top {
  padding: 1rem 1rem 0;
}

.appointment-new__map {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.appointment-new__map-label {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #156b6a;
}

.appointment-wizard {
  padding: 0 1rem 1rem;
}

.appointment-wizard__panels {
  border: 0.125rem solid #f7aeae;
  border-radius: 0.5rem;
  background: #ffffff;
  min-width: 0;
  overflow: hidden;
}

.appointment-wizard__panels .appointment-step {
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 1.5rem 1.5625rem;
}

.appointment-step__field {
  margin-top: 1rem;
  max-width: 25rem;
}

.appointment-step__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.appointment-step__actions .btn-primary {
  width: none;
}

.appointment-step--confirm .appointment-step__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #15200e;
  line-height: 1.35;
}

.appointment-confirm-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1rem 1.75rem;
  background: #ffffff;
  border: 0.0625rem solid #1a9b9a;
  border-radius: 0.5rem;
}
.appointment-confirm-card__doctor {
  grid-column: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #15200e;
  line-height: 1.5;
}
.appointment-confirm-card__meta {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #767676;
}
.appointment-confirm-card__patient {
  grid-column: 2;
  grid-row: 1/-1;
  justify-self: end;
  align-self: start;
}

.appointment-confirm-reason {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
}
.appointment-confirm-reason__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
  line-height: 1.85;
}
.appointment-confirm-reason__input {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.75rem 1.3125rem;
  border: 0.0625rem solid #d5d5d5;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #15200e;
}
.appointment-confirm-reason__input::placeholder {
  color: #767676;
}

.appointment-step__actions--center {
  justify-content: center;
  margin-top: 1.5rem;
}

.appointment-success-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 1.625rem;
  padding-top: 5.9675rem;
}

.appointment-success-card {
  width: 100%;
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 3.75rem 1.5rem;
}

.appointment-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.appointment-success__illustration {
  display: block;
  width: 15.5625rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 6.25rem;
}
.appointment-success__title {
  margin: 0 0 2.1875rem;
  font-weight: 500;
  font-size: 2rem;
  line-height: 0.84;
  color: #15200e;
}
.appointment-success__text {
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.22;
  text-align: center;
  color: #767676;
  width: 100%;
  max-width: 25rem;
}

.appointment-step__search {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.appointment-step__search .documents-search__input {
  font-size: 0.875rem;
  color: #15200e;
}
.appointment-step__search .documents-search__input::placeholder {
  font-size: 0.875rem;
  color: #767676;
}

.appointment-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.appointment-facility-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 0.625rem;
  background: #ffffff;
  border: 0.0625rem solid #d5d5d5;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 150%;
  color: #15200e;
  cursor: pointer;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.appointment-facility-chip:hover {
  background: #ffffff;
}
.appointment-facility-chip:active {
  background: #f0faf4;
}
.appointment-facility-chip--selected {
  background: #e9f5f5;
  border-color: #156b6a;
  color: #156b6a;
}

.appointment-step--datetime .appointment-step__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #15200e;
  line-height: 1.35;
}
.appointment-step--datetime .appointment-step__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #767676;
}

.appointment-datetime {
  display: grid;
  grid-template-columns: minmax(0, 21.5rem) minmax(0, 1fr);
  gap: 3.3125rem;
  margin-top: 1.5rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.appointment-calendar {
  width: 100%;
  max-width: 21.5rem;
  border: 0.0625rem solid #1a9b9a;
  border-radius: 1.125rem;
  background: #ffffff;
  padding: 1.4375rem 1.5rem 1.5rem;
}

.appointment-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.375rem;
}

.appointment-calendar__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
  text-align: center;
  flex: 1;
}

.appointment-calendar__nav {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  padding: 0;
}

.appointment-calendar__nav-icon--prev {
  transform: rotate(180deg);
}

.appointment-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0.75rem;
}
.appointment-calendar__weekdays span {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #767676;
  line-height: 1.25rem;
}

.appointment-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.appointment-calendar__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.appointment-calendar__day:hover:not(:disabled):not(.appointment-calendar__day--selected) {
  background: #ffffff;
}
.appointment-calendar__day--outside {
  color: #767676;
}
.appointment-calendar__day--today {
  font-weight: 700;
}
.appointment-calendar__day--disabled, .appointment-calendar__day:disabled {
  color: #ededed;
  cursor: not-allowed;
  background: transparent;
}
.appointment-calendar__day--selected {
  background: #1a9b9a;
  color: #ffffff;
  font-weight: 500;
}
.appointment-calendar__day:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.appointment-datetime__booking {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  min-width: 0;
  width: 100%;
}

.appointment-datetime__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.appointment-datetime__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #15200e;
  line-height: 1.4;
}

.appointment-datetime__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 12.375rem;
  min-width: 0;
  max-width: 100%;
  height: 2.0625rem;
  padding: 0 0.75rem;
  border: 0.0625rem solid #156b6a;
  border-radius: 0.5rem;
  background: #ffffff;
  font-family: "Inter", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 139%;
  text-align: center;
  color: #156b6a;
  cursor: pointer;
}
.appointment-datetime__date::placeholder {
  color: rgba(21, 107, 106, 0.45);
  text-align: center;
}

.appointment-datetime__times {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.appointment-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.appointment-time-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.0625rem;
  padding: 0 0.5rem;
  border: 0.0625rem solid #ededed;
  border-radius: 0.5rem;
  background: #ffffff;
  font-size: 0.8125rem;
  line-height: 150%;
  font-weight: 500;
  color: #15200e;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.appointment-time-slot:hover:not(:disabled):not(.appointment-time-slot--active) {
  border-color: #156b6a;
}
.appointment-time-slot--active {
  border-color: #156b6a;
  color: #156b6a;
}

/* responsive collocated */
@media (max-width: 768px) {
  .appointment-new-layout {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .appointment-success-card {
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .appointment-success__illustration {
    width: min(15.5625rem, 60vw);
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .appointment-success__title {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .appointment-success__text {
    font-size: 0.875rem;
  }
}

/* facility/datetime responsive */
@media (max-width: 1024px) {
  .appointment-facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 375px) {
  .appointment-facility-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .appointment-datetime {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .appointment-calendar {
    max-width: 21.5rem;
  }
}

@media (max-width: 375px) {
  .appointment-datetime__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 375px) {
  .appointment-datetime__date {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 375px) {
  .appointment-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-page {
  width: 100%;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 1rem;
}

.profile-hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-hero__camera {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  line-height: 0;
}
.profile-hero__camera img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-hero__body {
  flex: 1;
  min-width: 0;
}

.profile-hero__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.profile-hero__name {
  margin-bottom: 0;
}

.profile-hero__role {
  margin-bottom: 0.25rem;
}

.profile-hero__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.25rem 0.625rem;
  border-radius: 62.4375rem;
  background-color: #e9f5f5;
  color: #1a9b9a;
  font-size: 0.6875rem;
  line-height: 150%;
  font-weight: 600;
}

.profile-hero__edit {
  margin-left: auto;
  flex-shrink: 0;
  border: 0.0625rem solid #d5d5d5;
}

.tabs--profile {
  padding: 0.5625rem 2rem 0;
  gap: 0.875rem;
}

.profile-panel {
  background: #ffffff;
  border: 0.0625rem solid #ededed;
  border-radius: 1rem;
  padding: 2rem;
}

.profile-card .tabs--profile {
  padding-left: 2rem;
}
.profile-card .profile-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 0.0625rem solid #ededed;
  padding: 2rem;
}

.profile-data__row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 0.0625rem solid #ededed;
}
.profile-data__row:last-child {
  border-bottom: none;
}

.profile-data__row > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.profile-data__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-data__value {
  font-size: 0.9375rem;
  color: #15200e;
}

.profile-data__value--multiline {
  white-space: normal;
  line-height: 1.5;
}

.profile-data__row--with-badge {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-data__row--with-badge > div {
  flex: 1;
  min-width: 0;
}

.profile-data__badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0.25rem 0.625rem;
  border-radius: 62.4375rem;
  background-color: #e9f5f5;
  color: #1a9b9a;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-data--professional .profile-data__row {
  padding-left: 0;
}

.profile-medical__grid {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.profile-medical__title {
  margin-bottom: 1rem;
}

.profile-vitals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.profile-vital {
  padding: 0.75rem;
  background: #fafbfc;
  border-radius: 0.5rem;
}
.profile-vital__label {
  font-size: 0.75rem;
  color: #767676;
  margin-bottom: 0.25rem;
}
.profile-vital__value {
  font-size: 0.875rem;
  font-weight: 600;
}

.profile-tags {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-tags__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.profile-tags__label {
  font-size: 0.75rem;
  color: #767676;
  width: 100%;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.profile-tag--warning {
  background: #fff3e6;
  color: #b45309;
}
.profile-tag--info {
  background: #e8f4fc;
  color: #1d6fa5;
}

.profile-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fafbfc;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}
.profile-metric__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #e9f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-metric__body {
  flex: 1;
  min-width: 0;
}
.profile-metric__label {
  font-size: 0.75rem;
  color: #767676;
}
.profile-metric__value {
  font-weight: 600;
}
.profile-metric__trend {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.profile-metric__trend--down {
  color: #156b6a;
}
.profile-metric__trend--up {
  color: #1d6fa5;
}
.profile-metric__trend--stable {
  color: #767676;
}

.profile-insight {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #e9f5f5;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #15200e;
}
.profile-insight__icon {
  flex-shrink: 0;
  color: #1a9b9a;
}

.profile-emergency__hint {
  margin: 1.5rem 0 1rem;
  font-size: 0.75rem;
  color: #767676;
}

.profile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: #e9f5f5;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.profile-contact__name {
  font-weight: 600;
}
.profile-contact__meta {
  font-size: 0.75rem;
  color: #767676;
}

.profile-edit {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.profile-edit[hidden] {
  display: none;
}
.profile-edit .field {
  width: 100%;
}
.profile-edit .profile-edit__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.profile-edit .profile-edit__control,
.profile-edit .form-input-wrap {
  width: 100%;
  max-width: 100%;
}
.profile-edit .form-input-wrap__icon,
.profile-edit .field__icon {
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #767676;
}
.profile-edit .form-input-wrap__icon svg,
.profile-edit .field__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.profile-edit .form-input-wrap__icon svg path,
.profile-edit .form-input-wrap__icon svg circle,
.profile-edit .form-input-wrap__icon svg rect,
.profile-edit .field__icon svg path,
.profile-edit .field__icon svg circle,
.profile-edit .field__icon svg rect {
  fill: none;
  stroke: currentColor;
}
.profile-edit .form-input--icon-left,
.profile-edit .field__input.form-input--icon-left {
  padding-left: 3.0625rem;
  width: 100%;
}

.profile-edit__submit {
  margin-top: 0.5rem;
  width: 100%;
}

.modal--profile-edit {
  max-width: 64.4375rem;
}

.profile-edit__avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.profile-edit__avatar-img {
  width: 6rem;
  height: 6rem;
  font-size: 1.75rem;
}

.profile-edit__camera {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

/* responsive collocated */
@media (max-width: 768px) {
  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.25rem 1rem;
  }
  .profile-hero .profile-hero__edit {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .profile-vitals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .profile-panel {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 768px) {
  .profile-card .profile-panel {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 1024px) {
  .profile-medical__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tabs--profile {
    flex-direction: column;
  }
  .tabs--profile .tab {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .modal--profile-edit {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .modal--profile-edit .profile-edit__avatar-img {
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
  }
}

/* Surveys list + pack banner */
.survey-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.survey-list__item {
  border-bottom: 1px solid var(--color-border, #e8eef5);
}

.survey-list__item:last-child {
  border-bottom: none;
}

.survey-list__link {
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  min-height: 3.25rem;
}

.survey-list__link:hover {
  background: rgba(21, 107, 106, 0.04);
}

.survey-list__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.survey-list__main {
  min-width: 0;
  flex: 1;
}

.survey-list__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
}

.survey-list__title {
  font-weight: 600;
  line-height: 1.3;
}

.survey-list__desc {
  margin: 0;
  font-size: 0.9em;
}

.survey-list__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  text-align: right;
}

.survey-list__reward {
  white-space: nowrap;
  font-weight: 600;
}

.survey-list__cta {
  font-size: 0.85em;
  color: var(--color-primary, #156b6a);
  font-weight: 500;
}

.survey-pack {
  margin-bottom: 1.5rem;
}

.survey-pack--ready {
  border-color: #b9ddd9;
  background: #f3faf9;
}

.survey-pack__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.survey-pack__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.survey-form__success {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: #e9f5f5;
  color: #156b6a;
}

.survey-form__success[hidden] {
  display: none !important;
}

.survey-form__success-actions {
  margin-top: 0.75rem;
}

.survey-reward-note {
  margin: 0.5rem 0 0;
}

@media (max-width: 768px) {
  .survey-list__row {
    flex-direction: column;
    gap: 0.65rem;
  }
  .survey-list__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }
  .survey-list__link {
    padding: 1.05rem 1rem;
  }
}
/* Devices & apps catalog (Phase 0 stubs) */
.devices-section {
  margin-bottom: 2rem;
}

.devices-section__title {
  margin: 0 0 0.75rem;
}

.devices-section__lead {
  margin: 0 0 1rem;
  max-width: 52rem;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}

.devices-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem 0.85rem;
  margin: 0;
  border: 1px solid var(--color-border, #e8eef5);
  border-radius: 12px;
  background: var(--color-surface, #fff);
  color: inherit;
  cursor: pointer;
  text-align: center;
  min-height: 7.25rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.devices-tile:hover,
.devices-tile:focus-visible {
  border-color: var(--color-primary, #156b6a);
  background: rgba(21, 107, 106, 0.04);
  outline: none;
}

.devices-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(21, 107, 106, 0.1);
  color: var(--color-primary, #156b6a);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.devices-tile__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.devices-tile__badge {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.devices-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.devices-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  margin: 0;
  border: 1px solid var(--color-border, #e8eef5);
  border-radius: 8px;
  background: var(--color-surface, #fff);
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.devices-chip:hover,
.devices-chip:focus-visible {
  border-color: var(--color-primary, #156b6a);
  background: rgba(21, 107, 106, 0.04);
  outline: none;
}

.devices-chip__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-primary, #156b6a);
  flex-shrink: 0;
}

.devices-cta {
  margin-bottom: 2rem;
}

.devices-cta__body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.devices-cta__block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 12rem;
}

.devices-cta__block .title {
  margin: 0;
}

[dir=rtl] .devices-cta__body {
  flex-direction: row-reverse;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --color-text: #e8ecef;
  --color-text-muted: #9aa3ab;
  --color-text-label: #e8ecef;
  --color-text-link: #c5cdd4;
  --color-surface: #2a343c;
  --color-surface-soft: #1e2a30;
  --color-border: #3a454d;
  --color-white: #1a2228;
  --color-bg-page: #0f1419;
  --color-hover-overlay: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 0 0.1563rem rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
}
:root[data-theme=dark] .layout__content-bg {
  background: var(--color-bg-page);
}
:root[data-theme=dark] .header {
  background: var(--color-white);
  border-bottom-color: var(--color-surface);
}
:root[data-theme=dark] .header__notify path {
  fill: var(--color-text);
}
:root[data-theme=dark] .settings,
:root[data-theme=dark] .card,
:root[data-theme=dark] .stat-card,
:root[data-theme=dark] .notifications-card,
:root[data-theme=dark] .doctor-access-card,
:root[data-theme=dark] .list-item,
:root[data-theme=dark] .list-item--static,
:root[data-theme=dark] .notification-item,
:root[data-theme=dark] .doc-list__item,
:root[data-theme=dark] .access-request,
:root[data-theme=dark] .doctor-access-row,
:root[data-theme=dark] .modal,
:root[data-theme=dark] .documents-search,
:root[data-theme=dark] .form-input,
:root[data-theme=dark] .field__input {
  background-color: var(--color-white);
  border-color: var(--color-surface);
  color: var(--color-text);
}
:root[data-theme=dark] .stat-card__footer {
  background-color: var(--color-surface);
}
:root[data-theme=dark] .settings__row,
:root[data-theme=dark] .settings__profile-header,
:root[data-theme=dark] .settings__faq,
:root[data-theme=dark] .card__header {
  border-color: var(--color-surface);
}
:root[data-theme=dark] .tab:not(.tab--active) {
  background: var(--color-white);
  border-color: var(--color-surface);
  color: var(--color-text-muted);
}
:root[data-theme=dark] .tabs--settings .tab--active {
  background: var(--color-primary);
  color: var(--color-white);
}
:root[data-theme=dark] .checkbox__box {
  border-color: #6b7780;
}
:root[data-theme=dark] .switch__track {
  background-color: rgba(255, 255, 255, 0.16);
}
:root[data-theme=dark] .switch__track::after {
  background-color: #ffffff;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.35);
}
:root[data-theme=dark] .switch__input:checked + .switch__track {
  background-color: var(--color-primary);
}
:root[data-theme=dark] .btn--delete {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(247, 174, 174, 0.55);
  color: #f7aeae;
}
:root[data-theme=dark] .btn--delete:hover:not(:disabled) {
  background-color: rgba(255, 80, 80, 0.12);
}
:root[data-theme=dark] .btn--outline {
  border-color: var(--color-surface);
  color: var(--color-text);
}
:root[data-theme=dark] .text--muted {
  color: var(--color-text-muted);
}
:root[data-theme=dark] .title {
  color: var(--color-text);
}
:root[data-theme=dark] .greeting__title,
:root[data-theme=dark] .page-greeting__title,
:root[data-theme=dark] .header__title {
  color: #5ec4c3;
}

/*# sourceMappingURL=app.css.map */
