:root {
  --navy: #122359;
  --sidebar-border: #71318e;
  --bg: #f8f9fa;
  --line: #c9cfd8;
  --text: #1a1a1a;
  --fill-0: #122359;
  --pill-inactive-bg: #eceff3;
  --search-bg: #eceff3;
  --footer-rule: #dde1e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Figtree", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app {
  --sidebar-width: 300px;
  display: flex;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--navy);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.encounter-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.provider-header {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 20px;
}

.provider-header__chevron {
  margin-left: auto;
  font-size: 22px !important;
  opacity: 0.85;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f8f8;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  overflow: hidden;
}

.avatar.large {
  width: 42px;
  height: 42px;
  border: 2px solid var(--navy);
  font-weight: 600;
}

.avatar.bordered {
  width: 28px;
  height: 28px;
  border: 1px solid var(--navy);
  background: #fff;
  font-size: 10px;
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar--photo {
  background: #f8f8f8;
}

.sidebar-label {
  height: 34px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-top: 2px solid var(--sidebar-border);
  border-bottom: 2px solid var(--sidebar-border);
}

.encounter {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #e0e0e0;
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  position: relative;
}

.encounter-active {
  background: rgba(255, 255, 255, 0.15);
}

.encounter-text {
  flex: 1;
  min-width: 0;
}

.encounter-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}

.encounter-meta {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(224, 224, 224, 0.95);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.encounter-meta--alert {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.98);
  -webkit-line-clamp: 1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4b33;
  margin-left: auto;
}

.app--detail .dot {
  display: none;
}

.brand {
  margin-top: auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 24px;
  letter-spacing: 4px;
}

.brand span {
  font-weight: 700;
}

.sidebar-video {
  background: #333;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-video__stage {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.sidebar-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-video__status {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sidebar-video__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-video__avatar {
  width: 40px;
  height: 40px;
  border: 2px solid #122359;
}

.sidebar-video__identity-copy {
  min-width: 0;
  color: #fff;
}

.sidebar-video__identity-copy strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
}

.sidebar-video__identity-copy span {
  display: block;
  margin-top: -2px;
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar-video__expand {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-video__expand .material-icons {
  font-size: 20px !important;
}

.sidebar-video__pip {
  display: none;
}

.sidebar-video__pip .avatar {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.sidebar-video__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.sidebar-video__control-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-video__control-btn .material-icons {
  font-size: 30px !important;
}

.sidebar-video__control-btn--end {
  width: 58px;
  height: 42px;
  background: #eb2722;
}

.sidebar-video__self-preview {
  width: 110px;
  height: 42px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  overflow: hidden;
}

.sidebar-video__preview-icon {
  font-size: 22px !important;
  color: #fff;
}

.sidebar-video__preview-tile {
  width: 46px;
  height: 32px;
  border-radius: 2px;
  overflow: hidden;
  background: #4a4f55;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-right: 0;
  overflow: hidden;
}

.top-nav {
  position: sticky;
  top: 0;
  min-height: 50px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 7;
}

.tabs {
  display: flex;
  height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 0 16px;
  font-size: 16px;
  height: 50px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.tab--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tab__icon {
  font-size: 20px !important;
  width: 20px;
  height: 20px;
}

.tab__label {
  line-height: 1;
}

.tab.active {
  font-weight: 700;
  border-bottom-color: var(--navy);
}

.tab-badge {
  background: #ff4b33;
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  margin-left: 4px;
  min-width: 18px;
  text-align: center;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 16px;
  flex-shrink: 0;
}

.top-icons__btn {
  border: 0;
  background: transparent;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--navy);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-icons__btn:hover {
  background: rgba(18, 35, 89, 0.06);
}

.top-icons__btn .material-icons {
  font-size: 22px;
}

.main-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #fff;
  padding-right: 72px;
}

.screen-chat .main-body {
  background: var(--bg);
  overflow: hidden;
}

.view {
  flex: 1;
  min-height: 0;
}

.view--detail.chat-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.panel--chat {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.is-hidden {
  display: none !important;
}

.view--encounters {
  display: flex;
  flex-direction: column;
}

.encounters-dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 0;
  max-width: 100%;
}

.encounters-toolbar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 20px;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--search-bg);
  border-radius: 4px;
  padding: 0 12px;
  min-height: 44px;
}

.search-field__icon {
  font-size: 22px !important;
  color: rgba(26, 26, 26, 0.55);
}

.search-field__input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  min-width: 0;
}

.search-field__input::placeholder {
  color: rgba(26, 26, 26, 0.45);
}

.search-field__input:focus {
  outline: none;
}

.encounters-filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.encounters-filter-field__label {
  font-size: 14px;
  color: var(--text);
}

.encounters-filter-field__select {
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  min-width: 180px;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.filter-row__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 52px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 0;
  font: inherit;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--pill-inactive-bg);
  color: var(--navy);
}

.filter-pill.is-active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.encounters-empty {
  flex: 1;
  margin: 24px 0 32px;
  text-align: center;
  font-style: italic;
  font-size: 15px;
  color: #5a5a5a;
}

.site-footer {
  margin-top: auto;
  padding: 20px 0 24px;
  border-top: 1px solid var(--footer-rule);
  font-size: 13px;
  color: #4a4a4a;
}

.site-footer__support {
  margin: 0 0 12px;
}

.site-footer__support a {
  color: var(--navy);
}

.site-footer__legal {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.site-footer__legal a {
  color: var(--navy);
}

.placeholder-view {
  padding: 48px 24px;
  text-align: center;
}

.placeholder-view__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.placeholder-view__hint {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.providers-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #fff;
}

.providers-toolbar {
  padding: 10px 16px 6px;
}

.providers-search {
  height: 36px;
  border: 1px solid #d8dde5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #fff;
}

.providers-search__icon {
  font-size: 18px !important;
  color: #7b8496;
}

.providers-search__input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  color: #1a1a1a;
}

.providers-search__input::placeholder {
  color: #8a92a2;
}

.providers-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 8px;
}

.providers-filters__label {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #000;
}

.providers-filter-pills {
  display: flex;
  gap: 10px;
}

.providers-filter-pill {
  border: 1px solid #2c343c;
  background: #e7e7e7;
  color: #2c343c;
  height: 35px;
  padding: 0 9px;
  border-radius: 5px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 24.5px;
  cursor: pointer;
}

.providers-filter-pill.is-active {
  background: #122359;
  border-color: #fff;
  color: #fff;
}

.providers-list {
  border-top: 1px solid #e6eaf0;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.provider-row {
  position: relative;
  min-height: 80px;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 21px;
  background: #fff;
  overflow: hidden;
}

.provider-row__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.provider-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #122359;
  background: #f8f8f8;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.provider-row__meta {
  min-width: 0;
}

.provider-row__name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 24px;
}

.provider-row__sub {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 19.5px;
}

.provider-row__status {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 24px;
  white-space: nowrap;
  text-align: right;
}

.provider-row__edge {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 5px;
  background: #666;
}

.provider-row--on-call .provider-row__edge {
  background: #1f8f57;
}

.provider-row--on-call .provider-row__status {
  color: #1f8f57;
}

.provider-row--on-duty .provider-row__edge {
  background: #1f8f57;
}

.provider-row--on-duty .provider-row__status {
  color: #1f8f57;
}

.reminders-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #fff;
  padding: 0 10px 14px;
}

.reminders-toolbar {
  padding: 0 0 8px;
}

.reminders-toolbar__label {
  display: block;
  font-size: 12px;
  color: #1a1a1a;
  margin: 2px 0 4px;
}

.reminders-search {
  border: 1px solid #d9dde4;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #fff;
}

.reminders-search__icon {
  font-size: 18px !important;
  color: #7a8291;
}

.reminders-search__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: #1a1a1a;
}

.reminders-clear {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 24px;
  line-height: 1.2;
  padding: 4px 0 10px;
  cursor: pointer;
}

.reminders-table-wrap {
  overflow: auto;
  border: 1px solid #efefef;
  border-left: 0;
  border-right: 0;
}

.reminders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.reminders-table th {
  background: #efefef;
  color: #1a1a1a;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  padding: 10px 10px;
}

.reminders-table td {
  border-bottom: 1px solid #ececec;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.25;
  color: #1a1a1a;
  vertical-align: top;
}

.reminders-table__date {
  color: #ff0000;
  font-weight: 700;
}

.reminders-table__patient,
.reminders-table__assigned {
  font-weight: 700;
}

.reminders-table__icon {
  width: 36px;
  text-align: center;
}

.reminders-table__icon .material-icons {
  font-size: 17px !important;
  color: #122359;
}

.medical-documents-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  background: #fff;
  padding: 8px 10px 14px;
}

.medical-documents-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.medical-documents-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  max-width: 820px;
}

.medical-documents-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.medical-documents-field__label {
  font-size: 12px;
  color: #1a1a1a;
}

.medical-documents-field input,
.medical-documents-field select {
  height: 40px;
  border: 1px solid #d8dde5;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: #1a1a1a;
  padding: 0 10px;
}

.medical-documents-field input::placeholder {
  color: #7a8495;
}

.medical-documents-search-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 820px;
}

.medical-documents-field--wide {
  flex: 1;
}

.medical-documents-search-btn {
  height: 40px;
  border: 1px solid #122359;
  background: #122359;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.medical-documents-table-wrap {
  overflow: auto;
  max-width: 1280px;
}

.medical-documents-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.medical-documents-table th {
  background: #efefef;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  padding: 8px 10px;
}

.medical-documents-table td {
  border-bottom: 1px solid #ececec;
  padding: 8px 10px;
  font-size: 14px;
  color: #1a1a1a;
}

.medical-documents-table__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  border-radius: 999px;
  background: #ff4b33;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0 5px;
}

.phrases-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #fff;
  padding: 8px 10px 14px;
}

.phrases-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}

.phrases-search {
  flex: 1;
  min-width: 220px;
  height: 34px;
  border: 1px solid #d8dde5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.phrases-search__icon {
  font-size: 18px !important;
  color: #7a8291;
}

.phrases-search__input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 13px;
}

.phrases-filter {
  height: 34px;
  border: 1px solid #d8dde5;
  background: #fff;
  font: inherit;
  font-size: 13px;
  padding: 0 8px;
}

.phrases-add-btn {
  height: 34px;
  border: 1px solid #122359;
  background: #122359;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
}

.phrases-table-wrap {
  border: 1px solid #ececec;
  border-left: 0;
  border-right: 0;
  overflow: auto;
}

.phrases-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.phrases-table th {
  background: #efefef;
  color: #1a1a1a;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
}

.phrases-table td {
  border-bottom: 1px solid #efefef;
  padding: 7px 10px;
  font-size: 12px;
  color: #1a1a1a;
  vertical-align: middle;
}

.phrases-table__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phrases-table__status--active {
  background: #4da95e;
  color: #fff;
}

.phrases-table__status--inactive {
  background: #4f8bd7;
  color: #fff;
}

.phrases-table__name {
  font-weight: 700;
}

.phrases-table__action {
  width: 30px;
  text-align: center;
}

.phrases-table__action .material-icons {
  font-size: 16px !important;
  color: #122359;
}

.settings-view {
  height: 100%;
  overflow: auto;
  background: #fff;
  padding: 8px 12px 24px;
}

.settings-section {
  border-bottom: 1px solid #e8ebf0;
  padding: 8px 0 14px;
}

.settings-title {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.2;
}

.settings-subtitle {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  color: #1a1a1a;
}

.settings-mini-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1a1a1a;
}

.settings-copy {
  margin: 0 0 10px;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.4;
}

.settings-profile-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.settings-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.settings-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #122359;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #1a1a1a;
  background: #fff;
}

.settings-edit-avatar {
  border: 0;
  background: transparent;
  color: #122359;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.settings-fields-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 8px 10px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-field span {
  font-size: 11px;
  color: #1a1a1a;
}

.settings-field input,
.settings-field textarea {
  border: 1px solid #dde2e9;
  height: 34px;
  font: inherit;
  font-size: 13px;
  padding: 0 8px;
  color: #1a1a1a;
}

.settings-field textarea {
  min-height: 110px;
  padding: 8px;
  resize: vertical;
}

.settings-field--textarea {
  grid-row: span 2;
}

.settings-field--full {
  grid-column: 1 / -1;
}

.settings-preview {
  margin-top: 12px;
}

.settings-preview-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

.settings-preview-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #122359;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.settings-account-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
}

.settings-mini-btn {
  border: 1px solid #cad3e0;
  background: #fff;
  color: #122359;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  height: 34px;
  padding: 0 10px;
  cursor: pointer;
}

.settings-field--phone {
  max-width: 320px;
}

.settings-preferences-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px;
}

.settings-toggle,
.settings-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13px;
}

.panel {
  padding: 10px 12px 0;
  max-width: 610px;
}

.patient-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.patient-header .avatar.large {
  width: 55px;
  height: 55px;
  border-width: 2px;
}

.patient-header__content {
  min-width: 0;
}

.patient-header__top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.patient-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 45px;
  color: #000;
  white-space: nowrap;
}

.patient-header__demographic {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #000;
  white-space: nowrap;
}

.patient-header p {
  margin: -3px 0 0;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 19.5px;
  color: #000;
  text-transform: uppercase;
}

.card {
  border: 1px solid #7485a9;
  border-left: 5px solid var(--navy);
  border-radius: 3px;
  background: #fff;
  padding: 22px 24px;
  max-width: 565px;
  margin: 12px 0;
  font-size: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.card p {
  margin: 0;
  line-height: 1.45;
}

/* Patient Request reference layout */
.card--patient-request {
  /* Base .card now carries the shared visual treatment. */
}

.card--patient-request .card__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.card--patient-request .card__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

.card--patient-request .card__patient-name {
  font-weight: 700;
  margin-right: 0.35em;
}

.card--patient-request .card__timestamp {
  font-weight: 400;
}

.card--patient-request .card__block {
  margin-top: 18px;
}

.card--patient-request .card__block:first-of-type {
  margin-top: 16px;
}

.card--patient-request .card__label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 4px;
}

.card--patient-request .card__value {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
}

.card ul {
  margin: 0 0 10px 14px;
  padding: 0;
}

.small-copy {
  font-size: 10px;
  margin: 8px 0;
}

.timeline-date {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #2e2e2e;
  margin: 10px 0;
  max-width: 565px;
}

.message {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 48px;
  max-width: 586px;
  margin: 12px 0;
  padding-left: 60px;
  color: #1a1a1a;
}

.message .avatar.bordered {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border: 2px solid var(--navy);
  background: #f8f8f8;
  font-size: 17px;
  font-weight: 400;
}

.message--patient .avatar.bordered.avatar--photo {
  border-color: #8b96ab;
}

.message__content {
  width: 100%;
  min-height: 48px;
}

.message__meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.message__meta strong {
  font-weight: 700;
}

.message__time {
  font-weight: 400;
}

.message__text {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.composer {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.composer input {
  flex: 1;
  border: 1px solid #d5dae1;
  border-radius: 3px;
  padding: 6px 10px;
  color: #666;
  font-size: 12px;
}

.composer button {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 7px 14px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
}

.composer--rich {
  align-items: stretch;
  gap: 0;
  padding: 12px 0 0;
  margin-top: 14px;
}

.composer__menu {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 50px;
  min-height: 50px;
  border: 1px solid #1a1a1a;
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: #f8f9fa;
  color: #1a1a1a;
  cursor: pointer;
}

.composer__menu:hover {
  background: #eef1f4;
}

.composer__menu .material-icons {
  font-size: 24px;
}

.composer--rich input {
  flex: 1;
  min-width: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 16px;
}

.composer__send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--navy);
  color: #fff;
  padding: 0 16px 0 18px;
  border-radius: 0 5px 5px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.composer__send .material-icons {
  font-size: 20px;
}

.utility-rail {
  position: fixed;
  right: 0;
  top: 50px;
  width: 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border-radius: 0 0 0 4px;
  padding: 10px;
  box-shadow: -3px 3px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.utility-rail__btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.utility-rail__btn:hover {
  background: rgba(18, 35, 89, 0.06);
}

.utility-rail__btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.utility-rail__icon {
  display: block;
  flex-shrink: 0;
}

.utility-rail__icon--playbook {
  transform: scale(0.9);
}

.patient-info-panel {
  position: fixed;
  top: 50px;
  right: 60px;
  bottom: 0;
  width: 360px;
  background: #f8f9fa;
  border-left: 1px solid #ccc;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 240ms ease;
}

.patient-info-panel[hidden] {
  display: none !important;
}

.patient-info-panel.is-open {
  transform: translateX(0);
}

.patient-info-panel__header {
  min-height: 50px;
  background: #122359;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 14px;
}

.patient-info-panel__header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.patient-info-panel__close {
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.patient-info-panel__close .material-icons {
  font-size: 18px;
}

.patient-info-tabs {
  min-height: 48px;
  border-bottom: 1px solid #ccc;
  background: #fff;
  display: grid;
  grid-template-columns: 40px repeat(3, 1fr) 40px;
  align-items: center;
}

.patient-info-tabs__nav,
.patient-info-tabs__tab {
  border: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12px;
  font-weight: 700;
  height: 100%;
  cursor: pointer;
}

.patient-info-tabs__nav {
  color: rgba(0, 0, 0, 0.35);
}

.patient-info-tabs__nav .material-icons {
  font-size: 20px;
}

.patient-info-tabs__tab {
  color: rgba(0, 0, 0, 0.58);
  border-bottom: 2px solid transparent;
}

.patient-info-tabs__tab.is-active {
  color: #122359;
  border-bottom-color: #122359;
}

.patient-info-panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-padding-bottom: 56px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

.patient-info-panel__pane {
  min-height: 100%;
}

.patient-info-row {
  min-height: 40px;
  border-bottom: 1px solid #ccc;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 21px;
  color: #1a1a1a;
}

.patient-info-row:first-child {
  min-height: 48px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.patient-info-row__label {
  font-weight: 700;
}

.patient-info-row__value {
  font-weight: 400;
}

.patient-info-row--icons .patient-info-row__value {
  flex: 1;
}

.patient-info-row__icon {
  font-size: 21px;
  color: #122359;
}

.patient-info-section {
  padding: 8px 14px;
}

.patient-info-section h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: #1a1a1a;
}

.patient-info-textarea {
  min-height: 96px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  padding: 9px;
  font-size: 16px;
  line-height: 20.8px;
  color: #1a1a1a;
}

.patient-info-textarea--danger {
  border-color: #eb2722;
}

.patient-info-textarea--safe {
  border-color: #2f8968;
}

.patient-info-updated {
  margin: 8px 0 0;
  text-align: right;
  font-size: 13px;
  line-height: 19.5px;
  color: #1a1a1a;
}

.patient-info-section__meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.patient-info-section__actions {
  position: relative;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.patient-care-plan-verify-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.patient-care-plan-verify-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.patient-care-plan-verify-btn.is-pending {
  background: #eb2722;
  border-color: #eb2722;
  color: #fff;
}

.patient-care-plan-verify-btn.is-pending:hover {
  background: #cc211d;
  border-color: #cc211d;
}

.patient-care-plan-verify-btn.is-verified {
  background: #2f8968;
  border-color: #2f8968;
  color: #fff;
}

.patient-care-plan-verify-btn.is-verified:hover {
  background: #267358;
  border-color: #267358;
}

.patient-care-plan-verify-meta {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: #1a1a1a;
  text-align: right;
}

.patient-care-plan-history-kebab {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 5px;
  background: #fff;
  color: #122359;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.patient-care-plan-history-kebab .material-icons {
  font-size: 20px;
}

.patient-care-plan-history-kebab:hover {
  background: #f4f6fb;
}

.patient-care-plan-history-menu {
  width: 320px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
}

.patient-care-plan-history-menu__title {
  margin: 0;
  padding: 0 12px 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: #4f4f4f;
}

.patient-care-plan-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.patient-care-plan-history-list li {
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.patient-care-plan-history-list strong {
  font-size: 13px;
  line-height: 19px;
  color: #1a1a1a;
}

.patient-care-plan-history-list span {
  font-size: 12px;
  line-height: 18px;
  color: #4f4f4f;
}

.patient-info-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 18px;
  color: #1a1a1a;
}

.patient-info-check input {
  width: 16px;
  height: 16px;
  accent-color: #122359;
}

/* Problem list + Rx + Allergies (patient info) — collapsible blocks, Figma Patient-Info-Panel-redesign */
.patient-problem-list,
.patient-rx-block,
.patient-allergy-block {
  padding-top: 0;
}

.patient-problem-list__header,
.patient-rx-block__header,
.patient-allergy-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
  padding: 0 14px;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.patient-problem-list__header:hover,
.patient-rx-block__header:hover,
.patient-allergy-block__header:hover {
  background: #f4f6f8;
}

.patient-problem-list__title,
.patient-rx-block__title,
.patient-allergy-block__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.patient-problem-list__header-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.patient-problem-list__new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #ff4b33;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.patient-problem-list__new-badge.is-hidden {
  display: none;
}

.patient-problem-list__chevron,
.patient-rx-block__chevron,
.patient-allergy-block__chevron {
  font-size: 22px !important;
  color: rgba(26, 26, 26, 0.55);
  transition: transform 180ms ease;
}

.patient-problem-list.is-collapsed .patient-problem-list__chevron,
.patient-rx-block.is-collapsed .patient-rx-block__chevron,
.patient-allergy-block.is-collapsed .patient-allergy-block__chevron {
  transform: rotate(180deg);
}

.patient-problem-list.is-collapsed .patient-problem-list__inner,
.patient-rx-block.is-collapsed .patient-rx-block__inner,
.patient-allergy-block.is-collapsed .patient-allergy-block__inner {
  display: none;
}

.patient-problem-list__inner,
.patient-rx-block__inner,
.patient-allergy-block__inner {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patient-rx-block__add,
.patient-allergy-block__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  cursor: pointer;
}

.patient-rx-block__add .material-icons,
.patient-allergy-block__add .material-icons {
  font-size: 18px;
  color: rgba(26, 26, 26, 0.65);
}

.patient-rx-block__add:hover,
.patient-allergy-block__add:hover {
  background: #f4f6f8;
}

.patient-rx-block__cards,
.patient-allergy-block__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patient-rx-block__filters,
.patient-allergy-block__filters {
  margin: 10px 0 12px;
}

/* Figma nodes 908:5576 / 908:5602 — outlined fields (Figtree 12px labels, #ccc border, 24px gap) */
.patient-outlined-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.patient-outlined-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.patient-outlined-field label {
  font-size: 12px;
  font-weight: 700;
  line-height: 17.25px;
  color: var(--text);
}

.patient-outlined-field input,
.patient-outlined-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 17.25px;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.patient-outlined-field textarea {
  min-height: 61px;
  resize: vertical;
}

.patient-outlined-field input::placeholder,
.patient-outlined-field textarea::placeholder {
  color: #999;
}

/* Rx / Allergy cards */
.rx-card,
.allergy-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.rx-card__top,
.allergy-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rx-card__main,
.allergy-card__main {
  flex: 1;
  min-width: 0;
}

.rx-card__actions,
.allergy-card__actions {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.rx-card__title,
.allergy-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text);
}

.rx-card__meta,
.allergy-card__meta {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: rgba(0, 0, 0, 0.55);
}

.rx-card__toggle-details,
.allergy-card__toggle-details {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.rx-card__toggle-details:hover,
.allergy-card__toggle-details:hover {
  text-decoration: underline;
}

.rx-card__details,
.allergy-card__details {
  margin-top: 12px;
  padding: 10px 10px 12px;
  border-radius: 5px;
  background: #f5f5f5;
}

.rx-card__details.is-hidden,
.allergy-card__details.is-hidden {
  display: none;
}

.rx-card__detail-row,
.allergy-card__detail-row {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text);
}

.rx-card__detail-row:last-child,
.allergy-card__detail-row:last-child {
  margin-bottom: 0;
}

.rx-card__detail-label,
.allergy-card__detail-label {
  font-weight: 700;
  margin-right: 6px;
}

.rx-card__menu-wrap,
.allergy-card__menu-wrap {
  position: relative;
}

.rx-card__kebab,
.allergy-card__kebab {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 5px;
  background: #fff;
  color: #122359;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rx-card__kebab .material-icons,
.allergy-card__kebab .material-icons {
  font-size: 20px;
}

.rx-card__kebab:hover,
.allergy-card__kebab:hover {
  background: #f4f6fb;
}

.rx-card__menu,
.allergy-card__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 144px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 10;
  overflow: hidden;
}

.rx-card__menu[hidden],
.allergy-card__menu[hidden] {
  display: none;
}

.rx-card__menu-item,
.allergy-card__menu-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  cursor: pointer;
}

.rx-card__menu-item:hover,
.rx-card__menu-item:focus-visible,
.allergy-card__menu-item:hover,
.allergy-card__menu-item:focus-visible {
  background: #f4f6f8;
}

.rx-card[data-rx-status="historical"] .rx-card__menu-item[data-rx-menu-action="resolve"],
.allergy-card[data-allergy-status="historical"] .allergy-card__menu-item[data-allergy-menu-action="resolve"] {
  display: none;
}

.patient-problem-list__toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patient-problem-list__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.patient-problem-list__filter {
  height: 36px;
  padding: 0 13px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.patient-problem-list__filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.patient-problem-list__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  cursor: pointer;
}

.patient-problem-list__add .material-icons {
  font-size: 18px;
  color: rgba(26, 26, 26, 0.65);
}

.patient-problem-list__add:hover {
  background: #f4f6f8;
}

.patient-problem-list__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.patient-problem-list__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.patient-problem-list__field input,
.patient-problem-list__field textarea,
.patient-problem-list__field select {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

.patient-problem-list__field select {
  padding-right: 36px;
  min-height: 36px;
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234a4a4a' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 22px 22px;
}

.patient-problem-list__field textarea {
  resize: vertical;
  min-height: 52px;
}

.patient-problem-list__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.patient-problem-list__btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.patient-problem-list__btn--ghost {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.23);
  color: var(--text);
}

.patient-problem-list__btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.patient-problem-list__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.problem-card.is-filter-hidden {
  display: none !important;
}

.rx-card.is-filter-hidden,
.allergy-card.is-filter-hidden {
  display: none !important;
}

.problem-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.problem-card__main {
  flex: 1;
  min-width: 0;
}

.problem-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.problem-card__patient-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4b33;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.problem-card[data-problem-new="true"] .problem-card__patient-dot {
  display: block;
}

.problem-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text);
}

.problem-card__meta {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.38);
}

.problem-card__verified-by {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: #2f8968;
}

.problem-card__actions {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.problem-card__verify {
  height: 36px;
  padding: 0 13px;
  border-radius: 5px;
  border: 1px solid #2f8968;
  background: #2f8968;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}

.problem-card__verify:hover {
  background: #267358;
  border-color: #267358;
}

.problem-card__menu-wrap {
  position: relative;
}

.problem-card__kebab {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 5px;
  background: #fff;
  color: #122359;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.problem-card__kebab .material-icons {
  font-size: 20px;
}

.problem-card__kebab:hover {
  background: #f4f6fb;
}

.problem-card__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 144px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 10;
  overflow: hidden;
}

.problem-card__menu[hidden] {
  display: none;
}

.problem-card__menu-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  cursor: pointer;
}

.problem-card__menu-item:hover,
.problem-card__menu-item:focus-visible {
  background: #f4f6f8;
}

.problem-card[data-problem-status="historical"] .problem-card__menu-item[data-problem-menu-action="resolve"] {
  display: none;
}

.problem-card__toggle-details {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.problem-card__toggle-details:hover {
  text-decoration: underline;
}

.problem-card__details {
  margin-top: 12px;
  padding: 10px 8px 10px;
  border-radius: 5px;
  background: #f5f5f5;
}

.problem-card__notes-always {
  margin-top: 10px;
  padding: 10px 8px 10px;
  border-radius: 5px;
  background: #f5f5f5;
}

.problem-card__details.is-hidden {
  display: none;
}

.problem-card__notes-label {
  display: block;
  font-size: 16px;
  line-height: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

.problem-card__notes-text {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

.complete-panel {
  position: fixed;
  top: 50px;
  right: 60px;
  bottom: 0;
  width: 360px;
  background: #f8f9fa;
  border-left: 1px solid #ccc;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 6;
  display: flex;
  flex-direction: column;
}

.complete-panel[hidden] {
  display: none !important;
}

.complete-panel__header {
  min-height: 50px;
  background: #122359;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 14px;
}

.complete-panel__header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.complete-panel__close {
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.complete-panel__body {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.complete-section {
  margin-bottom: 18px;
}

.complete-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 27px;
  color: #1a1a1a;
}

.complete-field label,
.complete-mini-label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
  color: #1a1a1a;
}

.complete-field textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 23px;
  color: #1a1a1a;
  resize: vertical;
  min-height: 330px;
}

.complete-switch-row,
.complete-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 24px;
  color: #1a1a1a;
}

.complete-switch-row input,
.complete-radio-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.complete-switch {
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: rgba(102, 102, 102, 0.38);
  position: relative;
  flex-shrink: 0;
}

.complete-switch::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.complete-switch-row input:checked + .complete-switch {
  background: #122359;
}

.complete-switch-row input:checked + .complete-switch::after {
  left: 19px;
}

.complete-radio-row input + span {
  position: relative;
  padding-left: 30px;
}

.complete-radio-row input + span::before,
.complete-radio-row input + span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.complete-radio-row input + span::before {
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #122359;
  transform: translateY(-50%);
}

.complete-radio-row input + span::after {
  left: 5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #122359;
  transform: translateY(-50%);
}

.complete-ai-btn {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  background: #2f8968;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 17px;
  cursor: pointer;
}

.complete-select-row {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 8px;
}

.complete-select-row--muted {
  color: rgba(0, 0, 0, 0.42);
}

.complete-panel__footer {
  border-top: 1px solid #d9d9d9;
  background: #f8f9fa;
  padding: 12px 14px 14px;
}

.complete-panel__footer p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 24px;
  color: #1a1a1a;
  font-weight: 700;
}

.complete-panel__actions {
  display: flex;
  gap: 10px;
}

.complete-btn {
  border-radius: 5px;
  border: 1px solid;
  padding: 6px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.complete-btn--cancel {
  background: #fff;
  border-color: rgba(18, 35, 89, 0.5);
  color: #122359;
  cursor: pointer;
}

.complete-btn--primary {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.26);
}

.playbook-panel {
  position: fixed;
  top: 50px;
  right: 60px;
  bottom: 0;
  width: 360px;
  background: #f8f9fa;
  border-left: 1px solid #ccc;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 6;
  display: flex;
  flex-direction: column;
}

.playbook-panel[hidden] {
  display: none !important;
}

.playbook-panel__header {
  min-height: 50px;
  background: #122359;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 14px;
}

.playbook-panel__header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.playbook-panel__close {
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.playbook-panel__search {
  margin: 14px;
  min-height: 56px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.playbook-panel__search .material-icons {
  color: #122359;
  font-size: 24px;
}

.playbook-panel__search input {
  border: 0;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
}

.playbook-panel__search input:focus {
  outline: none;
}

.playbook-panel__body {
  flex: 1;
  overflow: auto;
  border-top: 1px solid #ccc;
  padding: 24px 14px;
}

.playbook-panel__body h3 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #1a1a1a;
}

.playbook-panel__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  font-weight: 700;
}

.playbook-panel__body a {
  color: #1a1a1a;
  text-decoration: underline;
}

.patient-goals-panel {
  position: fixed;
  top: 50px;
  right: 60px;
  bottom: 0;
  width: 360px;
  background: #f8f9fa;
  border-left: 1px solid #ccc;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 6;
  display: flex;
  flex-direction: column;
}

.patient-goals-panel[hidden] {
  display: none !important;
}

.patient-goals-panel__header {
  min-height: 50px;
  background: #122359;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 14px;
}

.patient-goals-panel__header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.patient-goals-panel__close {
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.patient-goals-panel__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #ccc;
  background: #fff;
}

.patient-goals-panel__tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  min-height: 38px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.patient-goals-panel__tab.is-active {
  color: #122359;
  border-bottom-color: #122359;
}

.patient-goals-panel__body {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.patient-goals-panel__create {
  width: 100%;
  border: 0;
  background: transparent;
  color: #122359;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.patient-goals-panel__create .material-icons {
  font-size: 22px;
}

.patient-goals-panel__status {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.patient-goals-panel__status strong {
  font-weight: 700;
  color: #1a1a1a;
}

.patient-goals-chip {
  min-width: 98px;
  height: 42px;
  border: 1px solid #808080;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.patient-goals-chip.is-active {
  background: #122359;
  color: #fff;
  border-color: #122359;
}

.patient-goals-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.patient-goals-panel.is-creating .patient-goals-panel__create,
.patient-goals-panel.is-creating .patient-goals-panel__status,
.patient-goals-panel.is-creating .patient-goals-list {
  display: none;
}

.patient-goals-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.patient-goals-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-goals-form__field span {
  font-size: 16px;
  line-height: 23px;
  font-weight: 700;
  color: #1a1a1a;
}

.patient-goals-form__field--small span {
  font-size: 12px;
  line-height: 18px;
}

.patient-goals-form__field input,
.patient-goals-form__field select,
.patient-goals-form__field textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f8f9fa;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: #1a1a1a;
}

.patient-goals-form__field textarea {
  resize: vertical;
}

.patient-goals-form__btn {
  width: 100%;
  min-height: 37px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.patient-goals-form__btn--cancel {
  border: 1px solid rgba(18, 35, 89, 0.5);
  background: #fff;
  color: #122359;
}

.patient-goals-form__btn--primary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #122359;
  color: #fff;
}

.patient-goals-item {
  position: relative;
  border: 2px solid #ff9f69;
  border-radius: 4px;
  background: #fff;
  padding: 12px 46px 10px 12px;
}

.patient-goals-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #1a1a1a;
}

.patient-goals-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #1a1a1a;
}

.patient-goals-item__icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #122359;
  font-size: 26px;
}

.patient-scores {
  background: #fff;
  min-height: 100%;
  padding: 14px 16px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.2);
}

.patient-scores__header {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 33px;
  line-height: 1;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
  padding: 0 0 6px;
}

.patient-scores__header .material-icons {
  font-size: 24px;
  color: #122359;
}

.patient-scores__group {
  border-bottom: 2px solid #808080;
  padding: 28px 0 20px;
}

.patient-scores__group h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
}

.patient-scores__group-head {
  position: relative;
  margin: -8px -8px 2px;
  padding: 8px 44px 8px 8px;
  border-radius: 2px;
}

.patient-scores__group--menu:hover .patient-scores__group-head,
.patient-scores__group--menu:focus-within .patient-scores__group-head {
  background: #c8c8c8;
}

.patient-scores__group--menu .patient-scores__group-head h3 {
  margin: 0;
}

.patient-scores__kebab {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #122359;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.patient-scores__group--menu:hover .patient-scores__kebab,
.patient-scores__group--menu:focus-within .patient-scores__kebab {
  opacity: 1;
  pointer-events: auto;
}

.patient-scores__kebab .material-icons {
  font-size: 22px;
}

.patient-scores__menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  width: 290px;
  background: #fff;
  border: 1px solid #d7d7d7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 20;
}

.patient-scores__menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 18px;
  font-size: 20px;
  line-height: 30px;
  color: #111;
  cursor: pointer;
}

.patient-scores__menu-item:hover,
.patient-scores__menu-item:focus-visible {
  background: #c8c8c8;
  outline: none;
}

.patient-scores__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 21px;
  padding: 4px 0;
}

.patient-scores__row span {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

.patient-scores__row strong {
  min-width: 36px;
  text-align: right;
  color: rgba(0, 0, 0, 0.87);
  font-weight: 700;
}

.patient-scores__manual-entry {
  padding-top: 8px;
}

.patient-scores__manual-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
}

.patient-scores__manual-input {
  width: 100%;
  height: 52px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 23px;
  color: rgba(0, 0, 0, 0.87);
}

.patient-scores__manual-input::placeholder {
  color: rgba(0, 0, 0, 0.32);
}

.patient-scores__manual-save {
  margin-top: 10px;
  width: 104px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: #dfdfdf;
  color: rgba(0, 0, 0, 0.28);
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.patient-scores__manual-save:disabled {
  cursor: default;
}

@media (max-width: 1200px) {
  .app {
    --sidebar-width: 240px;
  }

  .sidebar {
    width: var(--sidebar-width);
  }

  .encounter-meta {
    display: none;
  }

  .brand {
    font-size: 19px;
    letter-spacing: 3px;
  }

  .panel {
    max-width: 100%;
    padding-right: 12px;
  }
}

@media (max-width: 900px) {
  .app {
    --sidebar-width: 100%;
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .provider-header {
    width: 100%;
  }

  .sidebar-label {
    width: 100%;
  }

  .encounter-list {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .encounter {
    width: 50%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .brand {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .utility-rail {
    display: none;
  }

  .patient-info-panel {
    display: none;
  }

  .complete-panel {
    display: none;
  }

  .playbook-panel {
    display: none;
  }

  .patient-goals-panel {
    display: none;
  }

  .content {
    padding-right: 0;
  }

  .main-body {
    padding-right: 0;
  }

  .app--detail .brand,
  .app--detail .chat-footer {
    position: static;
    width: auto;
  }

  .sidebar-video {
    display: none;
  }

  .app--detail .encounter-list,
  .app--detail .chat-scroll {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .encounter {
    width: 100%;
    border-right: 0;
  }

  h1 {
    font-size: 32px;
  }

  .card h3 {
    font-size: 20px;
  }

  .message {
    font-size: 13px;
  }

  .top-icons {
    display: none;
  }
}

/* ─── Chat layout (demo) ─────────────────────────────────── */

.chat-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.app--detail .brand {
  position: fixed;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  margin-top: 0;
  background: var(--navy);
  z-index: 6;
}

.app--detail .sidebar-video {
  position: fixed;
  left: 0;
  bottom: 65px;
  width: var(--sidebar-width);
  z-index: 5;
}

.app--detail .encounter-list {
  padding-bottom: 436px;
}

.app--detail .chat-footer {
  position: fixed;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  z-index: 6;
}

.app--detail .chat-scroll {
  padding-bottom: 76px;
}

.panel--composer {
  max-width: none;
  width: 100%;
  padding: 0 12px;
  overflow: visible;
}

.panel--composer .composer {
  border-top: none;
  margin-top: 0;
  padding: 8px 0;
}

.composer--rich {
  position: relative;
}

.composer-action-menu {
  position: fixed;
  left: calc(var(--sidebar-width) + 12px);
  bottom: 66px;
  width: 272px;
  max-width: calc(100vw - var(--sidebar-width) - 24px);
  background: #fff !important;
  border: 1px solid #ccc;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  z-index: 12;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
}

.composer-action-menu[hidden] {
  display: none !important;
}

.composer-action-menu__item {
  width: 100%;
  display: flex;
  border: 0;
  border-bottom: 0;
  background: #fff !important;
  color: #1a1a1a !important;
  min-height: 45px;
  padding: 0 16px;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 24px;
  text-transform: uppercase;
  cursor: pointer;
}

.composer-action-menu__item[data-menu-action="release"] {
  padding-left: 56px;
}

.composer-action-menu__item:last-child {
  border-bottom: 0;
}

.composer-action-menu__item:hover {
  background: #f0f3f8 !important;
  color: #122359 !important;
}

.composer-action-menu__icon {
  font-size: 24px !important;
  color: #122359 !important;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.composer-action-menu__hint {
  margin-left: auto;
  color: rgba(18, 35, 89, 0.65) !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  text-transform: none;
}

@media (max-width: 900px) {
  .composer-action-menu {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    bottom: 62px;
  }
}

/* ─── Queue card (encounters dashboard) ─────────────────── */

.queue-cards {
  margin: 8px 0 20px;
}

.queue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 4px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: box-shadow 0.15s;
}

.queue-card:hover {
  box-shadow: 0 2px 10px rgba(18, 35, 89, 0.12);
}

.queue-card__avatar {
  flex-shrink: 0;
}

.queue-card__info {
  flex: 1;
  min-width: 0;
}

.queue-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.queue-card__pronoun {
  font-weight: 400;
  font-size: 13px;
  color: #555;
}

.queue-card__age {
  font-weight: 400;
  font-size: 13px;
  color: #555;
  margin-left: 4px;
}

.queue-card__meta {
  font-size: 12px;
  color: #555;
  margin-top: 3px;
}

.queue-card__reason {
  font-size: 13px;
  color: #333;
  margin-top: 5px;
  font-style: italic;
}

.queue-card__actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.queue-card__wait {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.btn-claim {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ─── Video call card ────────────────────────────────────── */

.video-call-card {
  border-radius: 4px;
  overflow: hidden;
  width: 300px;
  margin: 12px 0;
  background: #122359;
}

.video-call-card--ended {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.video-call-card__stage {
  position: relative;
  height: 300px;
  background: #333;
}

.video-call-card__status {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}

.video-call-card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
}

.video-status-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid #122359;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.video-call-card__identity-text {
  color: #fff;
  line-height: 1;
}

.video-call-card__identity-text strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.video-call-card__identity-text span {
  display: block;
  margin-top: -1px;
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.video-call-card__expand {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-call-card__expand .material-icons {
  font-size: 20px !important;
}

.video-feed--pip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 75px;
  height: 42px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 0;
  background: #555;
  overflow: hidden;
}

.video-call-card__brand {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  letter-spacing: 0.18em;
  font-size: 16px;
}

.video-call-card__brand span:last-child {
  font-weight: 700;
}

/* ─── Video ended banner ─────────────────────────────────── */

.video-ended-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  color: #555;
  max-width: 480px;
  margin: 8px 0;
}

.video-ended-banner .material-icons {
  font-size: 17px;
  color: #888;
}

.video-invite-card {
  max-width: 565px;
}

.video-invite-card__title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.video-invite-card__meta {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

.video-invite-card__meta strong {
  font-weight: 700;
  margin-right: 10px;
}

.video-invite-card__copy {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

.video-invite-card__actions {
  display: flex;
  justify-content: flex-end;
}

.video-invite-card__join {
  border: 1px solid #5f8773;
  background: #2a8c69;
  color: #fff;
  border-radius: 6px;
  min-width: 150px;
  height: 40px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.prescription-info-card {
  border: 1px solid #7485a9;
  border-left: 5px solid var(--navy);
  border-radius: 3px;
  max-width: 565px;
}

.prescription-info-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.prescription-info-card__meta {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

.prescription-info-card__meta strong {
  font-weight: 700;
  margin-right: 10px;
}

.prescription-info-card--detailed {
  max-width: 565px;
}

.prescription-info-card__body {
  margin-top: 16px;
}

.prescription-info-card__block {
  margin-bottom: 16px;
}

.prescription-info-card__label,
.prescription-info-card__value {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

.prescription-info-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.prescription-info-card__open-erx {
  min-width: 150px;
  height: 40px;
  border: 1px solid #5f8773;
  border-radius: 6px;
  background: #2a8c69;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 18px;
  cursor: pointer;
}

/* ─── Assessment / questionnaire card ───────────────────── */

.assessment-card {
  border: 1px solid #c7d0e0;
  border-radius: 6px;
  background: #fff;
  max-width: 580px;
  margin: 10px 0;
  overflow: hidden;
}

.assessment-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.assessment-card__abbr {
  font-size: 15px;
  font-weight: 700;
}

.assessment-card__title {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
  flex: 1;
}

.assessment-card__badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.assessment-card__badge--moderate {
  background: #f59e0b;
  color: #1a1a1a;
}

.assessment-card__badge--mild {
  background: #86efac;
  color: #1a1a1a;
}

.assessment-card__badge--severe {
  background: #f87171;
  color: #fff;
}

.assessment-card__period {
  font-size: 12px;
  color: #555;
  margin: 8px 16px 4px;
  font-style: italic;
}

.q-table {
  width: 100%;
  border-collapse: collapse;
}

.q-row {
  border-bottom: 1px solid #eef0f3;
}

.q-row:last-child {
  border-bottom: none;
}

.q-num {
  width: 28px;
  padding: 7px 6px 7px 14px;
  font-size: 11px;
  color: #888;
  vertical-align: top;
}

.q-text {
  padding: 7px 8px;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}

.q-answer {
  padding: 7px 8px;
  white-space: nowrap;
}

.q-score {
  padding: 7px 14px 7px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
}

.q-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.q-chip--none { background: #f3f4f6; color: #6b7280; }
.q-chip--low  { background: #fef9c3; color: #854d0e; }
.q-chip--mod  { background: #fed7aa; color: #9a3412; }
.q-chip--high { background: #fecaca; color: #991b1b; }

.assessment-card__total {
  padding: 8px 16px;
  font-size: 12px;
  color: #444;
  background: #f8f9fb;
  border-top: 1px solid #eef0f3;
}

/* ─── Scores panel ───────────────────────────────────────── */

.scores-panel {
  border: 1px solid #c7d0e0;
  border-radius: 6px;
  background: #fff;
  max-width: 480px;
  margin: 10px 0;
  overflow: hidden;
}

.scores-panel__header {
  background: #1e3a6e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}

.scores-panel__items {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.score-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.score-item__label small {
  font-weight: 400;
  color: #666;
}

.score-item__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-bar {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 999px;
}

.score-badge {
  font-size: 16px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-badge--moderate {
  background: #fef3c7;
  color: #92400e;
}

.score-severity {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.score-severity--moderate { color: #b45309; }

.scores-panel__note {
  padding: 8px 16px 12px;
  font-size: 11px;
  color: #888;
  font-style: italic;
  border-top: 1px solid #eef0f3;
}

/* ─── RX card ────────────────────────────────────────────── */

.rx-card {
  border: 1px solid #c7d0e0;
  border-radius: 6px;
  background: #fff;
  max-width: 480px;
  margin: 10px 0;
  overflow: hidden;
}

.rx-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e3a6e;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.rx-card__header .material-icons {
  font-size: 18px;
}

.rx-card__form {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rx-field {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.rx-field__label {
  font-weight: 600;
  color: #555;
  min-width: 110px;
  flex-shrink: 0;
}

.rx-field__value {
  color: var(--text);
}

.rx-field__value.input-placeholder {
  color: #999;
  font-style: italic;
}

/* ─── Integration card (DoseSpot) ───────────────────────── */

.integration-card {
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  background: #f0fdf4;
  max-width: 480px;
  margin: 10px 0;
  overflow: hidden;
}

.integration-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.integration-card__header .material-icons {
  font-size: 18px;
}

.integration-card__body {
  padding: 12px 16px;
  font-size: 13px;
  color: #333;
}

.integration-card__body p {
  margin: 0 0 10px;
}

.integration-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #065f46;
}

.status-icon--success {
  color: #059669;
  font-size: 18px !important;
}

/* ─── Resource card (Insomnia Coach) ────────────────────── */

.resource-card {
  border: 1px solid #c7d0e0;
  border-radius: 6px;
  background: #fff;
  max-width: 480px;
  margin: 10px 0;
  overflow: hidden;
}

.resource-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.resource-card__header .material-icons {
  font-size: 18px;
}

.resource-card__body {
  padding: 12px 16px;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.resource-card__body p {
  margin: 0 0 12px;
}

.resource-card__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 3px;
  text-decoration: none;
}

.resource-link .material-icons {
  font-size: 15px;
}

/* ─── Scheduler card ─────────────────────────────────────── */

.scheduler-card {
  border: 1px solid #c7d0e0;
  border-radius: 6px;
  background: #fff;
  max-width: 480px;
  margin: 10px 0;
  overflow: hidden;
}

.scheduler-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.scheduler-card__header .material-icons {
  font-size: 18px;
}

.scheduler-card__body {
  padding: 12px 16px;
  font-size: 13px;
  color: #333;
}

.scheduler-card__hint {
  margin: 0 0 12px;
  color: #666;
  font-size: 12px;
  font-style: italic;
}

.scheduler-slots {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.slot-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.slot-times {
  display: flex;
  gap: 6px;
}

.slot {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
}

.slot--selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.scheduler-confirmed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #065f46;
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 8px 12px;
}

.scheduler-confirmed .material-icons {
  font-size: 17px;
  color: #059669;
}

/* ─── Goal card ──────────────────────────────────────────── */

.goal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #c7d0e0;
  border-left: 4px solid #7c3aed;
  border-radius: 4px;
  background: #fff;
  max-width: 480px;
  margin: 8px 0;
  padding: 12px 14px;
}

.goal-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.goal-card__icon .material-icons {
  font-size: 18px;
  color: #7c3aed;
}

.goal-card__content {
  flex: 1;
  min-width: 0;
}

.goal-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.goal-card__due {
  font-size: 11px;
  color: #666;
  margin-top: 3px;
}

.goal-card__status {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── Progress note ──────────────────────────────────────── */

.progress-note {
  border: 1px solid #c7d0e0;
  border-radius: 6px;
  background: #fff;
  max-width: 580px;
  margin: 12px 0 20px;
  overflow: hidden;
}

.progress-note__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #1e3a6e;
  color: #fff;
  padding: 12px 16px;
}

.progress-note__header .material-icons {
  font-size: 20px;
  margin-top: 1px;
  flex-shrink: 0;
}

.progress-note__header strong {
  display: block;
  font-size: 14px;
}

.progress-note__header span {
  font-size: 11px;
  opacity: 0.85;
}

.progress-note__body {
  padding: 14px 16px;
}

.note-fields {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.note-fields dt {
  font-weight: 700;
  color: #555;
}

.note-fields dd {
  margin: 0;
  color: var(--text);
}

.note-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-code {
  font-size: 11px;
  font-weight: 600;
  background: #f0f2f5;
  color: var(--navy);
  padding: 3px 9px;
  border-radius: 3px;
}

/* ─── Playbook glow (utility rail) ──────────────────────── */

#playbook-btn.playbook-glow {
  background: rgba(16, 185, 129, 0.15);
  border-radius: 40px;
  animation: playbook-pulse 1s ease-in-out infinite alternate;
}

#playbook-btn.playbook-ready {
  background: #2a8c69;
  border-radius: 40px;
}

#playbook-btn.playbook-ready .utility-rail__icon--playbook {
  filter: brightness(0) invert(1);
}

@keyframes playbook-pulse {
  from { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  to   { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* ─── Demo step fade-in ──────────────────────────────────── */

.demo-item-enter {
  animation: demo-fade-in 0.3s ease-out;
}

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