.cl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(380px, 100%);
  flex: 1;
}
.cl-search svg {
  width: 18px;
  flex: none;
}
.cl-search input {
  width: 100%;
}
.cl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cl-help {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #66756d);
}
.cl-info,
.cl-alert {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid #d6e4dd;
  border-radius: 15px;
  background: #eef5f0;
  font-size: 13px;
  line-height: 1.6;
}
.cl-alert {
  background: #fff7e9;
  border-color: #f0ddad;
}
.cl-alert svg {
  width: 20px;
  flex: none;
}
.cl-alert p {
  margin: 4px 0 0;
}
.cl-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cl-facts div {
  min-width: 0;
}
.cl-facts dt {
  font-size: 12px;
  color: var(--muted, #66756d);
  margin-bottom: 5px;
}
.cl-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.cl-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.cl-timeline article {
  position: relative;
  margin-left: 10px;
  padding: 0 0 25px 24px;
  border-left: 1px solid #cadad0;
}
.cl-timeline article:before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: #416957;
  border: 4px solid #edf4ef;
  border-radius: 50%;
  left: -8px;
  top: 0;
}
.cl-timeline h3 {
  font-size: 15px;
  margin: 10px 0 5px;
}
.cl-timeline p,
.cl-notes p {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cl-notes article {
  padding: 18px 0;
  border-top: 1px solid #e4ebe7;
}
.cl-encounter-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 18px;
}
.cl-patient-tabs,
.cl-encounter-tabs {
  overflow-x: auto;
  flex-wrap: nowrap !important;
  padding-bottom: 10px !important;
}
.cl-patient-tabs .btn,
.cl-encounter-tabs .btn {
  white-space: nowrap;
  flex: none;
}
.cl-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.cl-enc-section[hidden] {
  display: none;
}
.cl-fieldset textarea {
  resize: vertical;
  min-height: 100px;
  width: 100%;
  padding: 13px 14px;
  line-height: 1.6;
  border: 1px solid #dbe5de;
  border-radius: 12px;
  background: white;
  color: #25372d;
}
.cl-fieldset:disabled input,
.cl-fieldset:disabled textarea,
.cl-fieldset:disabled select {
  opacity: 1;
  color: #45574c;
  background: #f5f8f6;
}
.cl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.cl-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: #416957;
}
.cl-surfaces {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cl-odontogram {
  overflow-x: auto;
  padding: 22px 10px;
  background: #f4f8f5;
  border-radius: 16px;
  margin: 16px 0 24px;
}
.cl-tooth-row {
  display: flex;
  justify-content: center;
  min-width: 640px;
  gap: 4px;
}
.cl-tooth {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  width: 38px;
  flex: none;
  padding: 5px 1px;
  color: white;
  cursor: pointer;
}
.cl-tooth span {
  font-size: 11px;
  color: #607b6c;
  display: block;
}
.cl-tooth small {
  display: block;
  color: #607b6c;
  font-size: 10px;
}
.cl-tooth svg {
  display: block;
  width: 32px;
  height: 49px;
  margin: auto;
}
.cl-tooth:hover,
.cl-tooth:focus-visible {
  border-color: #416957;
  outline: none;
  background: #e2ede6;
}
.cl-tooth.has-record {
  color: #9ac4a9;
  background: #e1eee6;
}
.cl-jaw-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #82988a;
  max-width: 670px;
  min-width: 640px;
  margin: 10px auto;
  padding: 8px;
}
.cl-injection-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  min-width: 0;
}
.cl-injection-layout > div {
  min-width: 0;
}
.cl-face-map {
  width: 100%;
  max-width: 290px;
  display: block;
  margin: auto;
  cursor: crosshair;
  background: #f5f8f6;
  border-radius: 22px;
}
.cl-fieldset:disabled .cl-face-map {
  cursor: default;
}
.cl-injection-layout td small {
  display: block;
  margin-top: 4px;
}
.cl-file-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cl-file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cl-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.cl-image-grid article {
  border: 1px solid #dbe6de;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.cl-image-grid article > button {
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  height: 190px;
  cursor: pointer;
  background: #eef3ef;
}
.cl-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cl-image-grid article > div {
  padding: 12px;
}
.cl-image-grid p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cl-image-large {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin: auto;
}
.cl-plan {
  padding: 14px 0 24px;
  border-top: 1px solid #e4ebe7;
}
.cl-plan:first-child {
  border-top: 0;
  padding-top: 0;
}
.cl-plan h3,
.cl-response h3 {
  font-size: 15px;
  margin: 7px 0 14px;
}
.cl-plan p {
  font-size: 12px;
  color: #66756d;
}
.cl-response {
  border: 1px solid #e2eae5;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 18px;
}
.cl-question-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 16px 0;
  border-top: 1px solid #e4ebe7;
}
.cl-question-row .cl-check {
  padding-bottom: 10px;
}
.cl-question-row .btn {
  margin-bottom: 2px;
}
.cl-encounter-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg, #f4f7f5);
  padding-top: 8px !important;
}
.cl-fieldset:disabled button {
  opacity: 0.6;
  cursor: default;
}
#cl-encounter-form .panel {
  margin-bottom: 22px;
}
.cl-question-row input[name='qlabel'] {
  width: 100%;
}
@media (max-width: 1000px) {
  .cl-injection-layout {
    grid-template-columns: 1fr;
  }
  .cl-injection-layout > div:first-child {
    max-width: 400px;
    margin: auto;
  }
  .cl-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cl-question-row {
    grid-template-columns: 1fr 1fr;
  }
  .cl-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .cl-summary-grid,
  .cl-facts {
    grid-template-columns: 1fr;
  }
  .cl-search {
    min-width: 100%;
  }
  .cl-info,
  .cl-alert {
    padding: 13px 15px;
  }
  .cl-image-grid {
    grid-template-columns: 1fr;
  }
  .cl-encounter-strip {
    gap: 8px;
  }
  .cl-tooth-row {
    justify-content: flex-start;
  }
  .cl-question-row {
    grid-template-columns: 1fr;
  }
  .cl-response {
    padding: 15px;
  }
  .cl-patient-tabs,
  .cl-encounter-tabs {
    margin-right: -4px;
  }
  .cl-jaw-label {
    padding-right: 30px;
  }
}
.cl-workspace {
  --cl-green: #416957;
  --cl-ink: #253b30;
  --cl-muted: #849188;
  --cl-line: #e4eae6;
  color: var(--cl-ink);
  padding-bottom: 105px;
  max-width: 1640px;
  margin: auto;
}
.cl-workspace .icon {
  flex: none;
}
.cl-patient-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 5px 2px 25px;
}
.cl-patient-identity {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
.cl-patient-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e3ece5, #c8d9cd);
  border: 5px solid #fff;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -1px;
  color: #52775f;
  box-shadow: 0 4px 14px #28473209;
  flex: none;
}
.cl-context-label {
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #91a095;
  letter-spacing: 0.03em;
}
.cl-context-label svg {
  width: 13px;
  height: 13px;
}
.cl-patient-header h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin: 5px 0 8px;
  font-weight: 600;
  color: #24392d;
}
.cl-patient-header p {
  margin: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7e8c82;
}
.cl-patient-header p span {
  color: #bac4bd;
}
.cl-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cl-header-actions .badge {
  font-size: 10px;
  white-space: nowrap;
}
.cl-header-actions .btn {
  font-size: 11px;
}
.cl-encounter-nav {
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 0 0 0;
  border-bottom: 1px solid #dce6df;
  margin-bottom: 25px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7d6cb transparent;
  white-space: nowrap;
}
.cl-nav-tab {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #86948b;
  padding: 15px 12px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  position: relative;
  transition:
    color 0.16s,
    background 0.16s,
    border-color 0.16s;
  flex: none;
}
.cl-nav-tab svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}
.cl-nav-tab.is-active {
  color: #416957;
  border-bottom-color: #416957;
  font-weight: 650;
}
.cl-nav-tab:hover {
  color: #416957;
  background: #eaf1ec66;
}
.cl-nav-tab:focus-visible,
.cl-tooth:focus-visible,
.cl-point-record button:focus-visible {
  outline: 2px solid #416957;
  outline-offset: -3px;
  border-radius: 8px;
}
.cl-tab-count {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  background: #e7efe9;
  border-radius: 5px;
  font-size: 9px;
  color: #5d7c68;
}
.cl-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 234px;
  gap: 24px;
  align-items: start;
}
.cl-work-main {
  min-width: 0;
}
.cl-workspace .panel {
  border: 1px solid #e3eae5;
  box-shadow: 0 5px 24px #263d2d03;
  border-radius: 19px;
  overflow: hidden;
  padding: 26px !important;
  background: #fff;
}
.cl-workspace .panel-header {
  padding: 0 0 24px !important;
  border: 0;
  margin: 0;
  align-items: flex-start;
  gap: 15px;
}
.cl-workspace .panel-title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.45px;
  font-weight: 600;
}
.cl-workspace .panel-subtitle {
  font-size: 11px;
  line-height: 1.65;
  margin-top: 7px;
  color: #9aa39c;
  max-width: 530px;
}
.cl-workspace .panel-header > .btn {
  font-size: 11px;
  min-height: 35px;
  padding: 9px 12px;
}
.cl-workspace .form-field label {
  font-size: 11px;
  font-weight: 500;
  color: #63766a;
  display: block;
}
.cl-workspace .form-field input,
.cl-workspace .form-field select,
.cl-workspace .form-field textarea {
  font: inherit;
  font-size: 12px;
  color: #334e3e;
  margin-top: 9px;
  border-radius: 10px;
  border: 1px solid #e1e8e2;
  background: #fbfcfb;
  box-shadow: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  min-height: 42px;
}
.cl-workspace .form-field textarea {
  padding: 15px;
  line-height: 1.85;
  min-height: 125px;
  resize: vertical;
}
.cl-workspace .form-field input:focus,
.cl-workspace .form-field select:focus,
.cl-workspace .form-field textarea:focus {
  outline: none;
  border-color: #8ba892;
  box-shadow: 0 0 0 3px #41695708;
  background: #fff;
}
.cl-workspace input::placeholder,
.cl-workspace textarea::placeholder {
  color: #b0b9b2;
  font-size: 12px;
}
.cl-spacious-form {
  gap: 25px 24px !important;
}
.cl-work-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 126px;
}
.cl-side-card {
  padding: 20px;
  background: #fff;
  border: 1px solid #e3eae5;
  border-radius: 17px;
}
.cl-side-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #6f8676;
}
.cl-side-title svg {
  width: 17px;
  height: 17px;
}
.cl-side-title h2 {
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  color: #56715f;
}
.cl-side-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #839187;
  margin: 0 0 12px;
}
.cl-side-card .btn {
  font-size: 10px;
  padding: 8px 9px;
  min-height: 32px;
}
.cl-side-card .cl-muted {
  color: #a2aca5;
}
.cl-side-alert {
  background: #fffbf2;
  border-color: #f0e9d9;
}
.cl-side-alert .cl-side-title {
  color: #b59553;
}
.cl-side-alert .cl-side-title h2 {
  color: #987e48;
}
.cl-progress-overview {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 9px;
  color: #a1ada4;
}
.cl-progress-overview > strong {
  font-size: 25px;
  letter-spacing: -1px;
  color: #416957;
  font-weight: 600;
}
.cl-progress-overview strong span {
  font-size: 14px;
  color: #bcc9be;
  font-weight: 400;
}
.cl-progress-track {
  height: 4px;
  background: #eef3ef;
  border-radius: 3px;
  margin: 12px 0 19px;
  overflow: hidden;
}
.cl-progress-track span {
  display: block;
  height: 100%;
  background: #64886e;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.cl-progress-list {
  display: grid;
  gap: 16px;
}
.cl-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  width: 100%;
  color: #a4b1a7;
}
.cl-progress-step > svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: #b9c4bc;
}
.cl-step-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f2;
  flex: none;
}
.cl-step-mark svg {
  width: 13px;
  height: 13px;
}
.cl-progress-step.is-complete .cl-step-mark {
  background: #e7f1e9;
  color: #5f856c;
}
.cl-progress-step strong {
  font-size: 10px;
  font-weight: 500;
  color: #788c7e;
  display: block;
  margin-bottom: 4px;
}
.cl-progress-step small {
  font-size: 9px;
  color: #a8b3aa;
  line-height: 1.35;
  display: block;
}
.cl-progress-note {
  font-size: 9px !important;
  color: #b3bdb5 !important;
  margin: 18px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid #edf2ee;
}
.cl-appointment-card > strong {
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 500;
}
.cl-appointment-card > p {
  margin: 7px 0 12px;
  font-size: 10px;
}
.cl-appointment-card > .badge {
  font-size: 9px;
}
.cl-appointment-card > .btn {
  display: flex;
  margin-top: 13px;
}
.cl-work-footer {
  position: fixed;
  z-index: 20;
  left: var(--clinical-footer-left, 0px);
  right: 0;
  bottom: 0;
  min-height: 80px;
  border-top: 1px solid #e5ece7;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 32px;
  gap: 24px;
  box-shadow: 0 -8px 30px #21372703;
}
.cl-footer-state {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cl-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #95a399;
}
.cl-time svg {
  width: 17px;
  height: 17px;
  color: #7f9787;
}
.cl-time strong {
  font-size: 16px;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  color: #416957;
  font-weight: 550;
}
.cl-time > span {
  padding-left: 4px;
}
.cl-save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9ba99f;
}
.cl-save-state svg {
  width: 13px;
  height: 13px;
}
.cl-save-state[data-state='pending'] {
  color: #839876;
}
.cl-save-state[data-state='pending'] svg {
  animation: cl-save-pulse 1s ease infinite;
}
.cl-save-state[data-state='error'] {
  color: #ad634c;
}
.cl-footer-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.cl-footer-actions .btn {
  font-size: 12px;
  min-height: 41px;
  border-radius: 10px;
  padding: 11px 18px;
  gap: 9px;
}
.cl-footer-actions .btn svg {
  width: 16px;
  height: 16px;
}
.cl-footer-actions .btn-primary {
  background: #416957;
  box-shadow: 0 4px 12px #41695718;
}
.cl-footer-actions .btn-secondary {
  background: #fff;
  border: 1px solid #dee7e0;
  color: #7e9384;
}
.cl-overview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(115deg, #f0f5ef, #f8faf7);
  border-radius: 13px;
  padding: 24px 26px;
  margin-bottom: 29px;
}
.cl-overview-hero > div:first-child {
  max-width: 440px;
}
.cl-section-kicker {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #91a392;
}
.cl-overview-hero h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 10px 0 9px;
  color: #466b51;
}
.cl-overview-hero p {
  font-size: 11px;
  line-height: 1.8;
  color: #95a293;
  margin: 0;
}
.cl-overview-illustration {
  width: 120px;
  height: 110px;
  flex: none;
  display: grid;
  place-items: center;
}
.cl-overview-illustration svg {
  max-width: 125px;
  max-height: 115px;
  width: 100%;
  height: 100%;
}
.cl-quick-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.cl-quick-cards > button {
  appearance: none;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 17px 12px;
  background: #fff;
  border: 1px solid #e5ece6;
  border-radius: 12px;
  color: #70917b;
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.cl-quick-cards > button:hover {
  transform: translateY(-2px);
  border-color: #a5bbaa;
}
.cl-quick-cards > button > svg:first-child {
  width: 23px;
  height: 23px;
}
.cl-quick-cards > button > svg:last-child {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: #bac9be;
}
.cl-quick-cards strong {
  display: block;
  font: 500 10px inherit;
  font-size: 10px;
  color: #63806c;
  margin-bottom: 5px;
}
.cl-quick-cards small {
  font-size: 9px;
  color: #a3b0a7;
}
.cl-consent-check {
  grid-column: 1/-1;
  background: #f3f7f3;
  padding: 16px;
  border: 1px solid #e7eee8;
  border-radius: 11px;
  gap: 12px;
  color: #7f9485;
  font-size: 11px;
}
.cl-consent-check svg {
  width: 17px;
  height: 17px;
}
.cl-editor-toolbar {
  border: 1px solid #e3ebe5;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  background: #f6f9f6;
  gap: 15px;
  font-size: 10px;
  color: #a1b0a5;
}
.cl-editor-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7e9486;
}
.cl-editor-toolbar svg {
  width: 15px;
  height: 15px;
}
.cl-writing-area {
  background: #fff;
  border: 1px solid #e3ebe5;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.cl-writing-area .form-field > label {
  font-size: 0 !important;
}
.cl-workspace .cl-writing-area textarea {
  border: 0;
  border-radius: 0;
  margin: 0;
  background: #fff;
  min-height: 390px;
  font-size: 13px;
  line-height: 2.05;
  padding: 23px !important;
  box-shadow: none !important;
  color: #536c5b;
}
.cl-workspace .cl-writing-area textarea::placeholder {
  color: #b1bcb3;
}
.cl-editor-footnote {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a5b1a8;
  margin-top: 16px;
}
.cl-editor-footnote svg {
  width: 12px;
  height: 12px;
}
.cl-subtle-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 15px;
  background: #f5f8f5;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.7;
  color: #9ca99f;
  margin-bottom: 20px;
}
.cl-subtle-note svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.cl-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cl-segmented {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #e5ede7;
  background: #f6f9f6;
  padding: 4px;
  border-radius: 10px;
}
.cl-segmented .btn {
  font-size: 10px;
  min-height: 30px;
  padding: 8px 13px;
  white-space: nowrap;
}
.cl-segmented .btn-primary {
  background: #fff;
  color: #53755e;
  border: 1px solid #e0e9e2;
  box-shadow: 0 2px 5px #31533f0a;
}
.cl-segmented .btn-ghost {
  color: #a4b1a8;
  border-color: transparent;
}
.cl-map-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 9px;
  color: #a7b3a9;
}
.cl-map-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cl-map-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #d0dcd1;
  border-radius: 50%;
  background: #fff;
}
.cl-map-legend i.planned {
  background: #dbcbaa;
  border-color: #cfbd95;
}
.cl-map-legend i.executed {
  background: #81a88f;
  border-color: #7a9f87;
}
.cl-dental-canvas {
  border: 1px solid #e8eee8;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 50%, #fff 15%, #f6f9f4 75%);
  padding: 18px 15px 13px;
  overflow: hidden;
}
.cl-arch-caption {
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aabcac;
}
.cl-workspace .cl-odontogram {
  background: transparent;
  margin: 0;
  padding: 15px 0 8px;
  border-radius: 0;
  overflow: auto;
}
.cl-workspace .cl-tooth-row {
  gap: 3px;
  min-width: 590px;
  width: 100%;
  justify-content: center;
  padding: 0 4px;
}
.cl-workspace .cl-tooth {
  width: calc((100% - 45px) / 16);
  min-width: 31px;
  max-width: 52px;
  padding: 6px 1px 5px;
  border-radius: 11px;
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  background: transparent;
  color: #698873;
}
.cl-workspace .cl-tooth:nth-child(8) {
  margin-right: 12px;
}
.cl-workspace .cl-tooth-number {
  font-size: 9px;
  color: #a7b5a9;
  font-weight: 500;
  margin-bottom: 4px;
}
.cl-workspace .cl-tooth svg {
  display: block;
  width: 100%;
  height: 73px;
  margin: 0 auto;
}
.cl-workspace .cl-tooth.has-record {
  background: #f0f4e7;
}
.cl-workspace .cl-tooth.is-selected {
  background: #e8f0e7;
  border-color: #9cbca3;
  box-shadow: 0 0 0 3px #41695704;
}
.cl-workspace .cl-tooth.is-selected .cl-tooth-number {
  color: #557b60;
  font-weight: 650;
}
.cl-workspace .cl-tooth:hover {
  transform: translateY(-3px);
  background: #edf4ea;
  border-color: #becfbf;
}
.cl-tooth-dot {
  width: 12px;
  height: 12px;
  background: transparent;
  color: transparent;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
  font-size: 8px !important;
  margin: 4px auto 0;
}
.cl-tooth.has-record .cl-tooth-dot {
  background: #d6c8ab;
  color: #fff;
}
.cl-tooth.has-record .cl-tooth-dot.is-executed {
  background: #80a68c;
}
.cl-workspace .cl-jaw-label {
  min-width: 590px;
  max-width: none;
  margin: 5px auto;
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  padding: 0 8px;
  font-size: 8px;
  color: #b4c0b6;
}
.cl-jaw-label > span:last-child {
  text-align: right;
}
.cl-jaw-center {
  display: grid;
  place-items: center;
}
.cl-jaw-center svg {
  width: 16px;
  height: 16px;
  opacity: 0.3;
}
.cl-map-keyboard {
  text-align: center;
  font-size: 9px;
  color: #b0bcb3;
  margin: 15px 0 0;
}
.cl-selected-tooth {
  margin-top: 20px;
  border: 1px solid #e4ece6;
  border-radius: 14px;
  overflow: hidden;
}
.cl-tooth-selection-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  background: #f9fbf8;
  border-bottom: 1px solid #edf2ed;
}
.cl-tooth-selection-title > span {
  width: 35px;
  height: 40px;
  border: 1px solid #e2ece4;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #7d9d85;
}
.cl-tooth-selection-title > span svg {
  width: 20px;
  height: 20px;
}
.cl-tooth-selection-title small {
  font-size: 7px;
  color: #a5b8aa;
  letter-spacing: 0.7px;
}
.cl-tooth-selection-title h3 {
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 3px 0 0;
  color: #63826b;
  font-weight: 550;
}
.cl-tooth-selection-title .btn {
  margin-left: auto;
  font-size: 10px;
  min-height: 33px;
  padding: 8px 12px;
}
.cl-tooth-selection-meta {
  font-size: 10px;
  color: #89a191;
  padding-left: 15px;
  border-left: 1px solid #e6ede7;
  margin-left: 8px;
}
.cl-tooth-selection-meta small {
  display: block;
  letter-spacing: 0;
  font-size: 9px;
  margin-top: 6px;
}
.cl-tooth-detail-content {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 23px;
  padding: 22px;
}
.cl-surface-preview {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.cl-surface-preview svg {
  width: 140px;
  max-height: 135px;
}
.cl-surface-preview > small {
  font-size: 8px;
  color: #b6c2b9;
}
.cl-inline-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
}
.cl-inline-empty h4 {
  font-size: 12px;
  font-weight: 500;
  color: #819b88;
  margin: 0 0 9px;
}
.cl-inline-empty p {
  font-size: 10px;
  line-height: 1.8;
  color: #aebbb2;
  margin: 0;
  max-width: 370px;
}
.cl-dental-records {
  min-width: 0;
}
.cl-dental-record {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2ee;
  padding: 13px 0;
}
.cl-dental-record:first-child {
  padding-top: 0;
}
.cl-dental-record:last-child {
  border: 0;
  padding-bottom: 0;
}
.cl-record-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #b49769;
  margin-bottom: 8px;
}
.cl-record-status.is-executed {
  color: #729781;
}
.cl-record-status svg {
  width: 11px;
  height: 11px;
}
.cl-dental-record h4 {
  font-size: 11px;
  font-weight: 550;
  color: #6b8674;
  margin: 0 0 7px;
}
.cl-dental-record p {
  font-size: 10px;
  line-height: 1.7;
  color: #a4b2a8;
  margin: 0;
  white-space: pre-wrap;
}
.cl-surface-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}
.cl-surface-tags > span {
  background: #f1f6f1;
  border: 1px solid #e9f0e9;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 7px;
  color: #90a696;
}
.cl-record-actions {
  display: flex;
  align-items: flex-start;
  gap: 1px;
}
.cl-record-actions .btn {
  font-size: 0;
  padding: 7px;
  min-height: 28px;
  gap: 0;
}
.cl-record-actions .btn svg {
  width: 13px;
  height: 13px;
}
.cl-record-summary {
  border: 1px solid #e6ede7;
  border-radius: 12px;
  margin-top: 20px;
  overflow: hidden;
}
.cl-record-summary summary {
  padding: 16px 18px;
  cursor: pointer;
  font-size: 10px;
  color: #8aa291;
  font-weight: 500;
}
.cl-record-summary summary > span {
  float: right;
  background: #edf4ed;
  border-radius: 5px;
  padding: 2px 6px;
  color: #75977f;
  font-size: 8px;
}
.cl-workspace .cl-record-summary .data-table {
  font-size: 10px;
}
.cl-surface-editor {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 25px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e8eee9;
  margin-bottom: 8px;
}
.cl-surface-editor svg {
  width: 185px;
  max-height: 180px;
}
.cl-surface-editor > div > strong {
  font-size: 13px;
  color: #637d6c;
}
.cl-surface-editor .cl-surfaces {
  display: grid;
  gap: 8px;
}
.cl-surface-editor .cl-check {
  font-size: 11px;
  color: #82988a;
}
.cl-material-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}
.cl-material-chip {
  appearance: none;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #e9eee9;
  border-radius: 11px;
  padding: 12px 10px;
  background: #fff;
  color: #829389;
  cursor: pointer;
  font-size: 10px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.cl-material-chip > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--material-color);
  display: block;
  margin-top: 3px;
  flex: none;
  opacity: 0.72;
}
.cl-material-chip small {
  display: block;
  font-size: 8px;
  color: #adb9b0;
  margin-top: 6px;
}
.cl-material-chip.is-active {
  border-color: var(--material-color);
  background: #f7faf7;
}
.cl-map-options {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cl-map-options .btn {
  font-size: 9px;
  min-height: 30px;
  padding: 7px;
}
.cl-workspace .cl-injection-layout {
  grid-template-columns: minmax(260px, 1.15fr) minmax(210px, 1fr);
  gap: 20px;
  align-items: start;
}
.cl-face-board {
  border: 1px solid #e8eee8;
  border-radius: 15px;
  background: radial-gradient(ellipse at 48% 38%, #fff 20%, #f7f9f5 85%);
  overflow: hidden;
}
.cl-face-board-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #a1b6a7;
}
.cl-face-board-label .badge {
  font-size: 8px;
  letter-spacing: 0;
  background: #eef5ee;
  color: #9ab29f;
  padding: 4px 6px;
}
.cl-workspace .cl-face-map {
  max-width: 370px;
  width: 100%;
  background: transparent;
  border-radius: 0;
  display: block;
  margin: -2px auto 0;
  min-height: 300px;
}
.cl-face-map .cl-map-point {
  cursor: pointer;
  outline: none;
}
.cl-point-halo {
  fill: #41695700;
  stroke: transparent;
  transition:
    fill 0.2s,
    stroke 0.2s;
}
.cl-map-point.is-selected .cl-point-halo,
.cl-map-point:focus-visible .cl-point-halo {
  fill: #41695718;
  stroke: #41695735;
  stroke-width: 1;
}
.cl-map-point:hover .cl-point-halo {
  fill: #41695718;
}
.cl-point-quantity {
  fill: #76917e;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
  font-weight: 500;
}
.cl-face-board-footer {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 13px 15px;
  border-top: 1px solid #edf2ed;
  font-size: 8px;
  line-height: 1.7;
  color: #b2beb4;
}
.cl-face-board-footer svg {
  width: 12px;
  height: 12px;
  flex: none;
}
.cl-point-inspector {
  min-width: 0;
}
.cl-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.cl-inspector-header h3 {
  font-size: 10px;
  color: #839c8b;
  font-weight: 550;
  margin: 0;
}
.cl-inspector-header .btn {
  font-size: 8px;
  padding: 7px 9px;
  gap: 5px;
  min-height: 27px;
}
.cl-inspector-header .btn svg {
  width: 11px;
  height: 11px;
}
.cl-point-list {
  display: grid;
  gap: 9px;
}
.cl-point-record {
  border: 1px solid #e5ede6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.cl-point-record.is-selected {
  border-color: #bbd0bd;
  box-shadow: 0 3px 10px #41695704;
}
.cl-point-record > button {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 11px;
  font: inherit;
  cursor: pointer;
}
.cl-point-number {
  width: 21px;
  height: 21px;
  border: 1px solid color-mix(in srgb, var(--material-color) 25%, white);
  background: color-mix(in srgb, var(--material-color) 8%, white);
  color: var(--material-color);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 9px;
  flex: none;
}
.cl-point-record > button strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
  color: #74907d;
  margin-bottom: 5px;
}
.cl-point-record > button small {
  display: block;
  font-size: 8px;
  color: #a9b8ac;
  overflow-wrap: anywhere;
}
.cl-point-record > button > b {
  font-size: 11px;
  color: #6a8973;
  margin-left: auto;
  text-align: right;
  font-weight: 550;
}
.cl-point-record > button > b small {
  margin-top: 4px;
  font-weight: 400;
}
.cl-point-detail {
  padding: 0 13px 12px;
  border-top: 1px solid #eef3ee;
  background: #fafcf9;
}
.cl-point-detail dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 13px 0 11px;
}
.cl-point-detail dt {
  font-size: 7px;
  color: #b0bfb3;
  margin-bottom: 4px;
}
.cl-point-detail dd {
  font-size: 9px;
  color: #8ca493;
  margin: 0;
  overflow-wrap: anywhere;
}
.cl-point-detail > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid #edf3ee;
  padding-top: 9px;
}
.cl-point-detail .btn {
  font-size: 8px;
  min-height: 24px;
  padding: 5px;
  gap: 5px;
  color: #8ca494;
}
.cl-point-detail .btn svg {
  width: 10px;
  height: 10px;
}
.cl-inspector-empty {
  border: 1px dashed #dfe9df;
  background: #fbfdf9;
  border-radius: 13px;
  text-align: center;
  padding: 40px 22px;
  color: #a2b7a5;
}
.cl-inspector-empty > svg {
  width: 36px;
  height: 36px;
  color: #a0b7a5;
  margin-bottom: 14px;
}
.cl-inspector-empty h4 {
  font-size: 12px;
  font-weight: 500;
  color: #87a18e;
  margin: 0 0 9px;
}
.cl-inspector-empty p {
  font-size: 10px;
  line-height: 1.8;
  color: #b0bdb2;
  margin: 0;
}
.cl-history-list {
  display: grid;
  gap: 14px;
}
.cl-history-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e6ede6;
  border-radius: 13px;
  padding: 18px;
  cursor: pointer;
  font: inherit;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.cl-history-card:hover {
  border-color: #b5caba;
  transform: translateX(2px);
}
.cl-history-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  background: #f0f5ef;
  color: #95ad9b;
  border-radius: 12px;
  flex: none;
}
.cl-history-symbol svg {
  width: 19px;
  height: 19px;
}
.cl-history-content {
  flex: 1;
  min-width: 0;
}
.cl-history-content > small {
  display: block;
  font-size: 9px;
  color: #a5b5a9;
  margin-bottom: 7px;
}
.cl-history-content > strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #718e7a;
  margin-bottom: 7px;
}
.cl-history-content > span {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #a0b0a4;
  overflow-wrap: anywhere;
}
.cl-history-card > .badge {
  font-size: 8px;
  align-self: flex-start;
  flex: none;
}
.cl-history-card > svg {
  width: 14px;
  height: 14px;
  color: #b3c3b7;
  flex: none;
}
.cl-history-note {
  display: flex;
  gap: 14px;
  padding: 19px;
  background: #f8fbf6;
  border: 1px solid #eaf0e8;
  border-radius: 13px;
}
.cl-history-note > span {
  color: #aec0b2;
}
.cl-history-note svg {
  width: 18px;
  height: 18px;
}
.cl-history-note small {
  font-size: 9px;
  color: #9caf9f;
}
.cl-history-note p {
  font-size: 11px;
  line-height: 1.85;
  color: #91a595;
  white-space: pre-wrap;
  margin: 7px 0 0;
}
.cl-history-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 3px 0 25px;
}
.cl-history-modal-head p {
  font-size: 11px;
  color: #9aab9f;
  margin: 8px 0 0;
}
.cl-history-document h3 {
  font-size: 13px;
  color: #6b8973;
  margin: 24px 0 10px;
}
.cl-history-document p {
  font-size: 12px;
  line-height: 1.9;
  color: #8aa18f;
  white-space: pre-wrap;
}
.cl-illustrated-empty {
  text-align: center;
  padding: 28px 20px 35px;
}
.cl-illustrated-empty > svg {
  width: 170px;
  height: 130px;
  margin-bottom: 20px;
}
.cl-illustrated-empty h3 {
  font-size: 15px;
  color: #7e9985;
  font-weight: 500;
  margin: 0 0 10px;
}
.cl-illustrated-empty p {
  font-size: 11px;
  color: #a5b6a9;
  line-height: 1.8;
  max-width: 360px;
  margin: auto;
}
.cl-workspace .cl-image-grid article {
  border-color: #e8efe8;
  border-radius: 14px;
}
.cl-workspace .cl-plan h3 {
  font-size: 13px;
  color: #688773;
}
.cl-workspace .cl-fieldset[data-readonly] input,
.cl-workspace .cl-fieldset[data-readonly] textarea,
.cl-workspace .cl-fieldset[data-readonly] select {
  opacity: 1;
  background: #fafcf9;
  color: #7d9485;
}
.cl-workspace .cl-fieldset[data-readonly] button:disabled {
  opacity: 0.35;
  cursor: default;
}
.cl-enc-section:not([hidden]) {
  animation: cl-section-in 0.23s ease-out;
}
.cl-workspace .btn {
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.cl-workspace .btn:active {
  transform: translateY(1px);
}
@keyframes cl-section-in {
  from {
    opacity: 0.45;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cl-save-pulse {
  50% {
    opacity: 0.4;
  }
}
@media (min-width: 1600px) {
  .cl-work-grid {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 30px;
  }
  .cl-workspace .panel {
    padding: 30px !important;
  }
  .cl-workspace .cl-tooth {
    max-width: 60px;
  }
  .cl-workspace .cl-tooth svg {
    height: 85px;
  }
  .cl-patient-header h1 {
    font-size: 30px;
  }
  .cl-nav-tab {
    font-size: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .cl-side-card {
    padding: 23px;
  }
  .cl-side-title h2 {
    font-size: 12px;
  }
  .cl-progress-step strong {
    font-size: 11px;
  }
  .cl-progress-step small {
    font-size: 10px;
  }
}
@media (max-width: 1190px) {
  .cl-work-grid {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
  }
  .cl-workspace .panel {
    padding: 22px !important;
  }
  .cl-workspace .cl-injection-layout {
    grid-template-columns: 1fr;
  }
  .cl-workspace .cl-injection-layout > div:first-child {
    max-width: none;
    margin: 0;
  }
  .cl-workspace .cl-face-map {
    max-width: 310px;
  }
  .cl-point-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cl-material-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cl-side-card {
    padding: 17px;
  }
  .cl-footer-state {
    gap: 16px;
  }
  .cl-time > span {
    display: none;
  }
  .cl-quick-cards {
    grid-template-columns: 1fr;
  }
  .cl-quick-cards > button {
    padding: 14px;
  }
  .cl-tooth-selection-meta {
    display: none;
  }
  .cl-tooth-detail-content {
    grid-template-columns: 110px 1fr;
    gap: 17px;
    padding: 18px;
  }
  .cl-surface-preview svg {
    width: 110px;
  }
}
@media (max-width: 950px) {
  .cl-work-grid {
    grid-template-columns: 1fr;
  }
  .cl-work-aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }
  .cl-workspace .panel {
    padding: 23px !important;
  }
  .cl-workspace .cl-injection-layout {
    grid-template-columns: minmax(250px, 1fr) minmax(230px, 1fr);
  }
  .cl-point-list {
    grid-template-columns: 1fr;
  }
  .cl-material-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cl-quick-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cl-work-footer {
    padding: 15px 22px;
    left: 0;
  }
  .cl-workspace {
    padding-bottom: 100px;
  }
  .cl-encounter-nav {
    margin-bottom: 20px;
  }
  .cl-workspace .cl-tooth svg {
    height: 80px;
  }
}
@media (max-width: 650px) {
  .cl-patient-header {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
  }
  .cl-patient-avatar {
    width: 49px;
    height: 49px;
    border-width: 3px;
    border-radius: 16px;
    font-size: 17px;
  }
  .cl-patient-identity {
    gap: 11px;
  }
  .cl-patient-header h1 {
    font-size: 21px;
    margin-top: 4px;
    margin-bottom: 7px;
  }
  .cl-patient-header p {
    font-size: 9px;
    gap: 6px;
  }
  .cl-patient-header p span:last-of-type,
  .cl-patient-header p span:last-of-type + span {
    display: none;
  }
  .cl-context-label {
    font-size: 8px;
    gap: 5px;
  }
  .cl-context-label svg {
    width: 11px;
    height: 11px;
  }
  .cl-header-actions {
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
  }
  .cl-header-actions .btn {
    font-size: 0;
    padding: 6px;
    min-height: 27px;
    gap: 0;
  }
  .cl-header-actions .btn svg {
    width: 14px;
    height: 14px;
  }
  .cl-header-actions .badge {
    font-size: 7px;
    padding: 5px 6px;
  }
  .cl-nav-tab {
    font-size: 10px;
    padding: 13px 11px;
    gap: 7px;
  }
  .cl-nav-tab svg {
    width: 15px;
    height: 15px;
  }
  .cl-workspace .panel {
    padding: 19px !important;
    border-radius: 16px;
  }
  .cl-workspace .panel-title {
    font-size: 17px;
  }
  .cl-workspace .panel-subtitle {
    font-size: 10px;
    line-height: 1.8;
  }
  .cl-workspace .panel-header {
    padding-bottom: 20px !important;
    flex-direction: column;
  }
  .cl-work-aside {
    grid-template-columns: 1fr;
  }
  .cl-work-aside .cl-side-card:first-child {
    display: none;
  }
  .cl-side-card {
    padding: 18px;
  }
  .cl-workspace .cl-injection-layout {
    grid-template-columns: 1fr;
  }
  .cl-material-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cl-overview-hero {
    padding: 20px;
    gap: 8px;
  }
  .cl-overview-hero h3 {
    font-size: 18px;
  }
  .cl-overview-hero p {
    font-size: 10px;
  }
  .cl-overview-illustration {
    width: 72px;
    height: 87px;
  }
  .cl-quick-cards {
    grid-template-columns: 1fr;
  }
  .cl-quick-cards strong {
    font-size: 11px;
  }
  .cl-quick-cards small {
    font-size: 10px;
  }
  .cl-work-footer {
    padding: 11px 15px;
    gap: 8px;
    min-height: 100px;
    flex-wrap: wrap;
    bottom: var(--clinical-footer-bottom, 0px);
  }
  .cl-footer-state {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .cl-time strong {
    font-size: 13px;
  }
  .cl-time svg {
    width: 14px;
    height: 14px;
  }
  .cl-save-state {
    font-size: 9px;
  }
  .cl-save-state svg {
    width: 11px;
    height: 11px;
  }
  .cl-footer-actions {
    width: 100%;
    gap: 7px;
  }
  .cl-footer-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 10px;
    padding: 10px 8px;
    min-height: 36px;
  }
  .cl-footer-actions .btn svg {
    width: 14px;
    height: 14px;
  }
  .cl-workspace {
    padding-bottom: 165px;
  }
  .cl-workspace .cl-tooth-row {
    min-width: 590px;
    justify-content: flex-start;
  }
  .cl-workspace .cl-tooth svg {
    height: 67px;
  }
  .cl-dental-canvas {
    padding: 15px 8px 13px;
  }
  .cl-map-toolbar {
    gap: 12px;
  }
  .cl-map-legend {
    font-size: 8px;
    gap: 10px;
  }
  .cl-map-keyboard {
    font-size: 8px;
    line-height: 1.7;
    max-width: 200px;
    margin: 12px auto 0;
  }
  .cl-tooth-selection-title {
    padding: 14px 12px;
    gap: 9px;
  }
  .cl-tooth-selection-title > span {
    width: 29px;
    height: 34px;
  }
  .cl-tooth-selection-title h3 {
    font-size: 19px;
  }
  .cl-tooth-selection-title small {
    font-size: 6px;
  }
  .cl-tooth-selection-title .btn {
    font-size: 8px;
    padding: 8px;
    gap: 5px;
  }
  .cl-tooth-selection-title .btn svg {
    width: 11px;
    height: 11px;
  }
  .cl-tooth-detail-content {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .cl-surface-preview {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
  }
  .cl-surface-preview svg {
    width: 93px;
    height: 83px;
  }
  .cl-surface-preview > small {
    font-size: 9px;
  }
  .cl-inline-empty {
    min-height: 0;
  }
  .cl-inline-empty h4 {
    font-size: 11px;
  }
  .cl-dental-record {
    gap: 9px;
  }
  .cl-record-actions {
    flex-direction: column;
  }
  .cl-surface-editor {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cl-surface-editor > div:first-child {
    text-align: center;
  }
  .cl-surface-editor svg {
    height: 160px;
  }
  .cl-surface-editor .cl-surfaces {
    grid-template-columns: 1fr 1fr;
  }
  .cl-history-card {
    padding: 13px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cl-history-content {
    flex-basis: calc(100% - 65px);
  }
  .cl-history-card > .badge {
    margin-left: 49px;
  }
  .cl-history-card > svg {
    margin-left: auto;
  }
  .cl-writing-area textarea {
    min-height: 320px !important;
  }
  .cl-editor-toolbar {
    font-size: 8px;
    padding: 11px 12px;
  }
  .cl-history-modal-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cl-workspace *,
  .cl-workspace *:before,
  .cl-workspace *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .cl-workspace button:hover {
    transform: none !important;
  }
}
/* Facial assessment and patient photography */
.cl-patient-avatar {
  overflow: hidden;
}
.cl-patient-avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.cl-photo-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 24px 0;
}
.cl-photo-source {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.cl-photo-source label {
  font-size: 14px;
  font-weight: 650;
  color: #344c45;
}
.cl-photo-source select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bacdc7;
  border-radius: 11px;
  background: #fff;
  padding: 9px 36px 9px 12px;
  font-size: 16px;
  color: #253d35;
}
.cl-photo-controls > .cl-file-label {
  min-height: 46px;
  font-size: 14px;
  white-space: nowrap;
  gap: 8px;
  cursor: pointer;
}
.cl-photo-controls .is-disabled {
  opacity: 0.55;
  cursor: default;
}
.cl-photo-hint {
  margin: 10px 24px 20px;
  font-size: 13px !important;
  line-height: 1.55;
  color: #53665f;
}
.cl-face-board.has-photo {
  background: #e9eeeb;
}
.cl-face-board.has-photo .cl-face-map {
  background: #e9eeeb;
}
.cl-map-photo {
  pointer-events: none;
}
.cl-facial-workspace {
  font-size: 16px;
}
.cl-facial-workspace > .panel {
  margin-bottom: 20px;
}
.cl-facial-workspace .panel-title {
  font-size: 22px;
}
.cl-facial-workspace .panel-subtitle {
  font-size: 15px;
  line-height: 1.55;
}
.cl-facial-workspace .cl-map-toolbar {
  padding-bottom: 0;
}
.cl-facial-workspace .cl-segmented {
  flex-wrap: wrap;
}
.cl-facial-workspace .cl-segmented .btn {
  min-height: 44px;
  font-size: 14px;
}
.cl-facial-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: 24px;
  padding: 0 24px 24px;
  align-items: start;
}
.cl-facial-layout .cl-face-board {
  min-width: 0;
  border: 1px solid #d6e1db;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #f4f7f3, #e8eeeb);
}
.cl-facial-layout .cl-face-map {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 300/330;
  min-height: 300px;
  max-height: 650px;
  margin: 0 auto;
  cursor: crosshair;
}
.cl-facial-layout .cl-face-board-label {
  padding: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.cl-facial-layout .cl-face-board-footer {
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  background: #fff;
  border-top: 1px solid #dbe4de;
}
.cl-facial-grid {
  stroke: #1e5d52;
  stroke-width: 0.6;
  stroke-dasharray: 4 4;
  opacity: 0.7;
  pointer-events: none;
}
.cl-facial-inspector {
  border: 1px solid #d4e1da;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.cl-facial-inspector .cl-inspector-header {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-direction: column;
  background: #f6f9f6;
  border-bottom: 1px solid #e1e9e3;
}
.cl-facial-inspector h3 {
  font-size: 18px;
  line-height: 1.4;
}
.cl-facial-inspector .btn {
  min-height: 44px;
  font-size: 14px;
}
.cl-facial-record {
  padding: 16px 18px;
  border-bottom: 1px solid #e0e8e2;
  transition: background 0.15s ease;
}
.cl-facial-record:last-child {
  border-bottom: 0;
}
.cl-facial-record.is-selected {
  background: #eef6f2;
  border-left: 3px solid #177c72;
  padding-left: 15px;
}
.cl-facial-record > button {
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: #253b34;
  min-height: 44px;
}
.cl-facial-record strong {
  font-size: 16px;
  font-weight: 650;
}
.cl-facial-record p {
  font-size: 15px;
  line-height: 1.65;
  color: #52685f;
  white-space: pre-wrap;
  margin: 8px 0;
}
.cl-facial-record > div {
  display: flex;
  gap: 8px;
}
.cl-facial-empty {
  padding: 36px 24px;
  text-align: center;
}
.cl-facial-empty > .icon {
  width: 40px;
  height: 40px;
  color: #177c72;
  margin-bottom: 15px;
}
.cl-facial-empty h4 {
  font-size: 17px;
  margin-bottom: 10px;
}
.cl-facial-empty p {
  font-size: 15px;
  line-height: 1.65;
  color: #596b63;
}
.cl-facial-point:focus {
  outline: none;
}
.cl-facial-point:focus > .cl-point-halo {
  fill: #a6e0cf;
  opacity: 1;
}
.cl-assessment {
  margin: 0 0 18px;
  border: 1px solid #d4e0d8;
  border-radius: 18px;
  background: white;
  overflow: hidden;
}
.cl-assessment > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 22px 24px;
  min-height: 72px;
  font-size: 18px;
  font-weight: 650;
  list-style: none;
  color: #254239;
}
.cl-assessment > summary::-webkit-details-marker {
  display: none;
}
.cl-assessment > summary::after {
  content: '+';
  font-size: 25px;
  font-weight: 400;
  color: #177c72;
  margin-left: auto;
}
.cl-assessment[open] > summary::after {
  content: '−';
}
.cl-assessment > summary > .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #177c72;
}
.cl-assessment > summary > span {
  font-weight: 400;
  font-size: 13px;
  color: #63776c;
  margin-left: auto;
}
.cl-assessment > summary > span + * {
  margin-left: 0;
}
.cl-assessment[open] > summary {
  border-bottom: 1px solid #e0e9e3;
  background: #f6f9f6;
}
.cl-assessment-body {
  padding: 24px;
}
.cl-assessment-body p {
  font-size: 15px;
  line-height: 1.65;
  color: #52665a;
  margin: 0 0 20px;
}
.cl-assessment-body.form-grid,
.cl-assessment-body .form-grid {
  gap: 22px;
}
.cl-facial-workspace .form-field label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #3f5549;
}
.cl-facial-workspace .form-field input,
.cl-facial-workspace .form-field select,
.cl-facial-workspace .form-field textarea {
  font-size: 16px;
  min-height: 46px;
  padding: 12px;
  line-height: 1.6;
  border-color: #bfd1c6;
}
.cl-facial-workspace .form-field textarea {
  min-height: 110px;
  resize: vertical;
}
.cl-facial-workspace .form-field input:focus,
.cl-facial-workspace .form-field select:focus,
.cl-facial-workspace .form-field textarea:focus {
  border-color: #177c72;
  box-shadow: 0 0 0 3px #177c7218;
  outline: 0;
}
.cl-assessment-note {
  padding: 14px 16px;
  background: #f0f6f1;
  border-radius: 10px;
  border-left: 3px solid #177c72;
}
.cl-facial-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.cl-facial-photo-grid > button {
  border: 1px solid #cddbd2;
  border-radius: 13px;
  background: #fff;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}
.cl-facial-photo-grid > button.is-selected {
  border: 2px solid #177c72;
  padding: 7px;
}
.cl-facial-photo-grid img,
.cl-facial-photo-grid button > span {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3ef;
  display: grid;
  place-items: center;
}
.cl-facial-photo-grid button > span > .icon {
  width: 34px;
  height: 34px;
  color: #688f7d;
}
.cl-facial-photo-grid strong {
  font-size: 14px;
}
.cl-facial-photo-grid small {
  font-size: 12px;
  color: #62766b;
}
.cl-facial-workspace fieldset[data-readonly] .cl-face-map {
  cursor: default;
}
@media (max-width: 1250px) {
  .cl-facial-layout {
    grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.85fr);
    gap: 16px;
    padding: 0 18px 18px;
  }
  .cl-facial-layout .cl-face-map {
    max-height: 560px;
  }
  .cl-assessment-body {
    padding: 20px;
  }
}
@media (max-width: 1000px) {
  .cl-facial-layout {
    grid-template-columns: 1fr;
  }
  .cl-facial-layout .cl-face-map {
    max-width: 500px;
    max-height: none;
  }
  .cl-facial-inspector .cl-inspector-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cl-facial-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .cl-photo-controls {
    padding: 16px 14px 0;
    flex-direction: column;
    align-items: stretch;
  }
  .cl-photo-controls > .cl-file-label {
    justify-content: center;
  }
  .cl-photo-hint {
    margin: 10px 14px 16px;
  }
  .cl-facial-layout {
    padding: 0 10px 12px;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
  }
  .cl-facial-layout .cl-face-map {
    min-height: 300px;
    max-height: none;
  }
  .cl-facial-inspector .cl-inspector-header {
    flex-direction: column;
    align-items: stretch;
  }
  .cl-assessment > summary {
    padding: 18px 16px;
    font-size: 17px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cl-assessment > summary > span {
    display: none;
  }
  .cl-assessment-body {
    padding: 18px 16px;
  }
  .cl-facial-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cl-facial-workspace .cl-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .cl-facial-workspace .cl-map-toolbar {
    padding: 14px;
  }
  .cl-facial-workspace .panel-title {
    font-size: 21px;
  }
}
.cl-selected-photo-preview {
  display: flex;
  justify-content: center;
  background: #eff4ef;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
}
.cl-selected-photo-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 9px;
}
.cl-file-label:focus-within {
  outline: 3px solid #177c7244;
  outline-offset: 3px;
}
.cl-face-board.has-photo .cl-face-map {
  min-height: 300px;
}
.cl-facial-workspace .cl-assessment summary:focus-visible,
.cl-facial-record > button:focus-visible,
.cl-facial-photo-grid > button:focus-visible {
  outline: 3px solid #177c7277;
  outline-offset: -3px;
}
