.cr-workspace {
  min-width:0
}
.cr-workspace .page-heading {
  margin-bottom:14px
}
.cr-workspace .page-heading h1 {
  font-size:var(--ui-text-title-small);
  margin:0
}
.cr-workspace h2 {
  font-size:var(--ui-text-section);
  margin:0 0 14px
}
.cr-workspace .card-title h2 {
  margin:0
}
.cr-workspace .card-title {gap:16px}
.cr-customer-identity .cr-page-kind {font-size:var(--ui-text-caption);color:#657468;line-height:var(--ui-leading-compact);margin:0 0 5px}
.cr-name-line {display:flex;align-items:center;gap:12px;min-width:0}
.cr-name-line h1 {overflow-wrap:anywhere;min-width:0;line-height:var(--ui-leading-compact)}
.cr-customer-identity .cr-customer-reading {margin:5px 0 0;font-size:var(--ui-text-body);color:#526358;line-height:var(--ui-leading-compact)}
.cr-detail-heading {align-items:center;gap:20px;margin-bottom:20px!important}
.cr-detail-heading .heading-actions {flex:0 1 auto;min-width:0;max-width:100%;gap:10px;flex-wrap:wrap}
.cr-detail-heading .action-feedback__buttons {gap:10px}
.cr-profile-footer>span {font-size:var(--ui-text-body);color:#5b685f}
.cr-profile-footer strong {font-weight:var(--ui-weight-strong);color:#294f3f;margin-left:4px}
.cr-basic-fields {max-width:960px}
.cr-field-wide {grid-column:1/-1;min-width:0}
.cr-panel>h2 {padding-left:12px;border-left:3px solid #789258;line-height:var(--ui-leading-compact);margin-bottom:24px}
.cr-profile-summary .ui-summary-item {margin:0}
.cr-panel .ui-form-group .field-grid {gap:12px 20px}
.cr-panel .ui-form-group .field-hint {margin:0 0 14px}
.cr-panel .ui-form-group .field {margin-bottom:0}
.cr-panel .ui-form-group input,.cr-panel .ui-form-group select {min-height:44px}
.cr-workspace .cr-record-text dt {font-size:var(--ui-text-body);color:#59685f;font-weight:var(--ui-weight-medium)}
.cr-workspace .cr-record-text dd {font-size:var(--ui-text-input);line-height:var(--ui-leading-body)}
.cr-workspace .cr-record-text>div {margin-bottom:16px}
@media(max-width:720px){
 .cr-detail-heading {align-items:start;gap:14px}
 .cr-name-line {gap:10px}
 .cr-customer-detail>.card-title {align-items:center;flex-wrap:wrap}
 .cr-customer-detail>.card-title .button {font-size:var(--ui-text-body);padding:9px 12px}
 .cr-profile-footer {gap:16px}
 .cr-panel .ui-form-group .field-grid {grid-template-columns:minmax(0,1fr);gap:14px}
 .cr-panel .ui-form-group input,.cr-panel .ui-form-group select {font-size:var(--ui-text-input)}
}
.cr-workspace .button,.cr-workspace summary {
  min-height:44px
}
.cr-workspace button:focus-visible,.cr-workspace summary:focus-visible {
  outline:3px solid #947435;
  outline-offset:3px
}
.cr-search {
  display:flex;
  gap:12px;
  align-items:end
}
.cr-search .field {
  flex:1;
  margin:0
}
.cr-search>.button {
  flex:none
}
.cr-list,.cr-record-list {
  margin-top:14px
}
.cr-customer-row,.cr-record-row {
  width:100%;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  border:0;
  border-top:1px solid var(--border,#dde4db);
  background:transparent;
  padding:16px 6px;
  text-align:left;
  color:inherit;
  cursor:pointer;
  min-height:72px
}
.cr-customer-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 12rem auto
}
.cr-customer-row:hover,.cr-record-row:hover {
  background:#f4f7f3
}
.cr-customer-name,.cr-record-row>span:first-child {
  min-width:0;
  flex:1;
  display:grid;
  gap:4px
}
.cr-customer-name strong,.cr-record-row strong {
  font-size:var(--ui-text-input)
}
.cr-customer-name span,.cr-customer-name small,.cr-record-row span,.cr-profile-summary {
  overflow-wrap:anywhere
}
.cr-customer-meta {
  display:grid;
  gap:6px;
  justify-items:start
}
.cr-customer-meta small,.cr-workspace small {
  color:#56635b
}
.cr-pagination {
  display:flex;
  gap:12px;
  justify-content:flex-end;
  align-items:center;
  margin-top:12px
}
.cr-panel {
  margin-top:14px;
  margin-bottom:14px
}
.cr-detail-heading>div:first-child {
  display:block;
  min-width:0
}
.cr-detail-heading p {
  margin:0
}
.cr-profile-summary {
  display:block;
  margin-top:20px
}
.cr-profile-summary>div {
  display:grid;
  gap:5px
}
.cr-profile-summary small {
  font-size:var(--ui-text-caption)
}
.cr-profile-footer {
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid var(--border,#dde4db);
  display:flex;
  gap:12px;
  justify-content:flex-start;
  align-items:center;
  flex-wrap:wrap
}
.cr-detail-tabs {display:flex;gap:4px;margin-top:22px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--mist)}
.cr-detail-tabs .button {flex:1;min-width:0;min-height:46px;padding:10px 12px;border:0;background:transparent;color:var(--muted);font-size:var(--ui-text-body);white-space:normal;line-height:var(--ui-leading-compact)}
.cr-detail-tabs [aria-selected="true"] {background:var(--green);color:#fff;box-shadow:0 2px 5px #193d2f15}
.cr-tab-panel {min-width:0;margin-top:16px}
.cr-tab-panel[hidden] {display:none}
.cr-tab-panel>.card {margin:0 0 16px}
.cr-tab-panel .card-title {min-height:44px;flex-wrap:wrap;gap:12px}
.cr-profile-accounts {margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.cr-profile-accounts h3 {font-size:var(--ui-text-body);margin:0 0 10px}
.cr-account-heading {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.cr-account-heading h3 {margin:0}
.cr-account-status {color:var(--muted);font-size:var(--ui-text-body)}
.cr-account-heading+.cr-account {margin-top:10px}
.cr-profile-accounts .cr-account:first-of-type {border-top:0;padding-top:0}
.cr-profile-accounts .cr-link-history {margin-top:12px}
.cr-link-dialog {max-width:780px}
.cr-link-dialog .modal-header {position:sticky;top:0;background:var(--paper);z-index:2}
.cr-link-dialog .modal-header h2 {margin:0}
.cr-link-dialog .cr-panel {margin:0}
.cr-link-customer {font-weight:var(--ui-weight-strong);margin:0 0 14px}
.cr-history-filter {margin:0;gap:8px;align-items:center;min-height:44px;font-size:var(--ui-text-body)}
.cr-appointment-card>.card-title {gap:12px}
@media(max-width:390px){.cr-detail-tabs{gap:2px;padding:3px}.cr-detail-tabs .button{font-size:var(--ui-text-caption);padding:9px 5px;word-break:keep-all}.cr-detail-tabs [data-tab="appointments"]{flex:1.4}}
.cr-appointment {
  padding:12px 0;
  border-top:1px solid var(--border,#dde4db)
}
.cr-appointment>div:first-child {
  display:grid;
  gap:5px
}
.cr-appointment strong {
  font-size:var(--ui-text-input)
}
.cr-appointment span,.cr-appointment small {
  font-size:var(--ui-text-body)
}
.cr-row-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px
}
.cr-row-actions .button {
  padding:8px 12px;
  font-size:var(--ui-text-body)
}
.cr-account {
  border-top:1px solid var(--border,#dde4db);
  padding-top:12px;
  margin-top:12px;
  display:grid;
  gap:6px;
  overflow-wrap:anywhere
}
.cr-account small {
  font-size:var(--ui-text-caption)
}
.cr-secondary .card-title {
  align-items:center;
  flex-wrap:wrap
}
.cr-secondary .card-title .button {
  font-size:var(--ui-text-body);
  padding:8px 12px
}
.cr-editor .field {
  margin-bottom:14px
}
.cr-editor textarea {
  line-height:var(--ui-leading-body);
  resize:vertical;
  min-height:86px
}
.cr-record-actions {
  flex-wrap:wrap;
  gap:8px
}
.cr-workspace .actions .button {
  min-width:0
}
.cr-record-row>span:first-child>span {
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  max-width:100%;
  font-size:var(--ui-text-body)
}
.cr-record-row small {
  font-size:var(--ui-text-caption)
}
.cr-workspace details summary {
  cursor:pointer;
  display:flex;
  align-items:center;
  line-height:var(--ui-leading-compact);
  padding:8px 0;
  overflow-wrap:anywhere
}
.cr-workspace details summary::before {
  content:'›';
  margin-right:8px;
  flex:none
}
.cr-workspace details[open]>summary::before {
  content:'⌄'
}
.cr-record-text {
  margin:10px 0 18px
}
.cr-record-text>div {
  margin-bottom:14px
}
.cr-record-text dt {
  font-size:var(--ui-text-body);
  color:#56635b;
  margin-bottom:4px
}
.cr-record-text dd {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0;
  line-height:var(--ui-leading-body)
}
.cr-conflict,.cr-invalidate {
  padding:14px;
  border:1px solid #c78468;
  background:#fff9f5;
  margin:14px 0;
  border-radius:8px
}
.cr-error {
  margin:0 0 14px;
  white-space:pre-wrap
}
.cr-save-state {
  min-height:22px;
  font-size:var(--ui-text-body);
  color:#815b22
}
.cr-candidates {
  display:grid;
  gap:8px;
  margin-top:12px;
  max-height:380px;
  overflow:auto
}
.cr-candidates .button {
  display:grid;
  justify-content:stretch;
  gap:4px;
  text-align:left
}
.cr-candidates .button small {
  display:block;
  font-weight:var(--ui-weight-normal);
  overflow-wrap:anywhere
}
.cr-link-selection {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  background:#f4f7f3;
  padding:12px 16px;
  margin:14px 0;
  border-radius:8px;
  overflow-wrap:anywhere
}
.cr-link-selection p {
  margin:4px 0 12px
}
.cr-link-selection p:last-child {
  margin-bottom:0
}
.cr-link-selection h3 {
  margin-bottom:10px
}
.cr-link-selection .cr-record-text {
  margin:0
}
.cr-link-selection .cr-record-text>div {
  margin-bottom:8px
}
.cr-management {
  font-size:var(--ui-text-body);
  overflow-wrap:anywhere
}
.cr-management>div {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 10px;
  padding:10px 0
}
.cr-management code {
  font:inherit;
  user-select:all;
  overflow-wrap:anywhere;
  min-width:0
}
.cr-management .button {
  min-width:44px;
  padding:6px 10px
}
.cr-record-navigation {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0
}
.cr-record-navigation .button {
  padding:8px 12px
}
#cr-edit-context {
  scroll-margin-block:16px
}
@media (max-width:640px) {
  .cr-link-selection {
    grid-template-columns:minmax(0,1fr)
  }
}
.cr-grants {
  padding:0;
  border:0;
  margin:18px 0
}
.cr-grants legend {
  font-weight:var(--ui-weight-strong)
}
.cr-grants .checkbox-field {
  margin:0
}
.cr-link-history article {
  padding:12px 0;
  border-top:1px solid var(--border,#dde4db);
  font-size:var(--ui-text-body)
}
.cr-link-history p {
  margin:6px 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.cr-identifiers {
  font-size:var(--ui-text-caption)
}
.cr-booking-picker {
  padding:14px;
  border:1px solid var(--border,#dde4db);
  border-radius:8px;
  margin-bottom:16px
}
.cr-booking-picker .cr-search {
  margin:10px 0
}
.cr-booking-selection {
  display:flex;
  width:100%;
  margin-top:12px;
  text-align:left;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  overflow-wrap:anywhere
}
.cr-booking-selection>span {min-width:0}
.cr-booking-selection strong,.cr-booking-selection small {display:block}
.cr-booking-selection small {font-weight:var(--ui-weight-normal);margin-top:4px}
.cr-booking-selection svg {flex-shrink:0}
.cr-booking-picker .cr-candidates {
  max-height:260px
}
.cr-booking-link-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0
}
.cr-booking-link-actions .button {
  flex:1
}
@media(max-width:1100px) {
  .cr-link-history {
    grid-column:1/-1
  }
}
@media(max-width:720px) {
  .cr-workspace input,.cr-workspace textarea,.cr-workspace select,.cr-booking-picker input {
    font-size:var(--ui-text-input)
  }
  .cr-workspace .page-heading {
    align-items:flex-start;
    gap:10px;
    flex-wrap:wrap
  }
  .cr-search {
    align-items:stretch;
    flex-direction:column;
    gap:8px
  }
  .cr-search>.button {
    align-self:flex-end
  }
  .cr-customer-row {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    padding:14px 0
  }
  .cr-customer-name {
    flex-basis:100%
  }
  .cr-customer-row>span:last-child {
    margin-left:auto
  }
  .cr-customer-meta {
    grid-template-columns:auto;
    gap:4px
  }
  .cr-pagination {
    justify-content:space-between;
    gap:8px
  }
  .cr-profile-summary {
    flex-direction:column
  }
  .cr-profile-summary .button {
    align-self:flex-end
  }
  .cr-detail-heading>div:first-child {
    gap:8px
  }
  .cr-detail-heading h1 {
    font-size:var(--ui-text-title-small)
  }
  .cr-detail-heading .heading-actions {
    width:100%;
    justify-content:flex-end
  }
  .cr-record-actions .button {
    flex:1
  }
  .cr-editor .field-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .cr-booking-selection {
    align-items:center;
    flex-wrap:nowrap
  }
  .cr-editor textarea {
    min-height:112px
  }
  .cr-record-row {
    gap:8px
  }
  .cr-grants .cr-row-actions {
    display:block
  }
}
.cr-busy-boundary {
  padding:0;
  border:0;
  margin:0;
  min-width:0;
  width:100%
}
.cr-busy-boundary:disabled {
  opacity:.82
}

/* Structured consultation records: one primary workspace, quiet reference column. */
.cr-profile-tools {
  display:flex;
  align-items:flex-start;
  gap:8px;
  flex-wrap:wrap
}
.cr-editor>.card-title {margin-bottom:12px}
.cr-editor .cr-entry-section {
  margin-top:16px;
  border:1px solid #d8e1d8;
  border-radius:10px;
  background:#fff;
  overflow:clip
}
.cr-editor .cr-entry-section>summary {
  padding:15px 18px;
  background:#f5f7f3;
  color:#244b3d;
  gap:6px
}
.cr-entry-section>summary>span {display:grid;gap:2px}
.cr-entry-section>summary strong {font-size:var(--ui-text-input);letter-spacing:.03em}
.cr-entry-section>summary small {font-size:var(--ui-text-caption);font-weight:var(--ui-weight-normal);color:#52635a}
.cr-entry-section[open]>summary {border-bottom:1px solid #e0e7dd}
.cr-section-content {padding:18px}
.cr-section-content>.field:last-child {margin-bottom:0}
.cr-choice-group {margin:0 0 20px}
.cr-choice-group legend {font-size:var(--ui-text-body);margin-bottom:8px;display:flex;gap:12px;align-items:baseline}
.cr-choice-group legend small {font-size:var(--ui-text-caption);font-weight:var(--ui-weight-normal)}
.cr-choice-chips {display:flex;flex-wrap:wrap;gap:8px}
.cr-choice {position:relative;display:flex;cursor:pointer;max-width:100%}
.cr-choice input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  inset:50% auto auto 50%;
  margin:0
}
.cr-choice span {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 12px;
  border:1px solid #c8d2c7;
  border-radius:7px;
  color:#384f43;
  background:#fff;
  font-size:var(--ui-text-body);
  line-height:var(--ui-leading-compact)
}
.cr-choice span::before {
  content:'';
  flex:none;
  width:15px;
  height:15px;
  border:1px solid #8b9e8a;
  border-radius:3px;
  background:#fff
}
.cr-choice input:checked+span {background:#e7f0e2;border-color:#527145;color:#244b3d;font-weight:var(--ui-weight-strong)}
.cr-choice input:checked+span::before {content:'✓';background:#315840;border-color:#315840;color:#fff;display:grid;place-items:center;font-size:var(--ui-text-caption);line-height:1}
.cr-choice input:focus-visible+span {outline:3px solid #947435;outline-offset:3px}
.cr-choice input:disabled+span {opacity:.65;cursor:not-allowed}
.cr-concern-layout {display:grid;grid-template-columns:minmax(236px,.9fr) minmax(0,1.2fr);gap:22px;align-items:start;margin:6px 0 22px}
.cr-body-picker {min-width:0;border:1px solid #e1e6db;border-radius:9px;padding:12px;background:#fafbf7}
.cr-body-toolbar {display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.cr-body-tabs {display:flex;background:#e7ede1;border:1px solid #d6dfcf;border-radius:7px;padding:3px;gap:3px}
.cr-body-tabs .button {min-width:65px;border:0;box-shadow:none;padding:7px 14px;background:transparent;font-size:var(--ui-text-body)}
.cr-body-tabs .button[aria-pressed=true] {background:#244b3d;color:#fff}
.cr-selection-count {font-size:var(--ui-text-caption);color:#486342;font-variant-numeric:tabular-nums}
.cr-body-hint {font-size:var(--ui-text-caption);line-height:var(--ui-leading-body);color:#52635a;margin:10px 0 6px}
.cr-body-stage {height:620px;width:100%;max-width:280px;margin:14px auto 0;position:relative}
.cr-body-stage>svg {display:block;width:100%;height:100%;overflow:visible}
.cr-body-silhouette {fill:#edf0e7;stroke:#849580;stroke-width:1.5}
.cr-body-guides {fill:none;stroke:#b1bea9;stroke-width:1.2;stroke-linecap:round}
.cr-body-side {position:absolute;top:3px;color:#51644b;font-weight:var(--ui-weight-strong);font-size:var(--ui-text-caption)}
.cr-body-side.is-left {left:4px}.cr-body-side.is-right {right:4px}
.cr-body-spot {
  position:absolute;
  transform:translate(-50%,-50%);
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:transparent;
  touch-action:manipulation;
  z-index:1
}
.cr-body-spot>span {width:25px;height:25px;display:grid;place-items:center;background:#fffffff0;border:1px solid #8e9f86;color:#4b6342;border-radius:50%;font-size:var(--ui-text-section);line-height:1;box-shadow:0 1px 3px #244b3d0c}
.cr-body-spot[aria-pressed=true]>span {background:#315840;border-color:#315840;color:#fff;box-shadow:0 0 0 5px #517a3c24;font-size:var(--ui-text-body);font-weight:var(--ui-weight-strong)}
.cr-body-spot:focus-visible {outline:3px solid #947435;outline-offset:0;z-index:3}
.cr-body-spot:hover>span {border-color:#315840;box-shadow:0 0 0 5px #517a3c20}
.cr-region-alternative {border-top:1px solid #dde5d6;font-size:var(--ui-text-caption)}
.cr-region-alternative summary {font-weight:var(--ui-weight-strong)}
.cr-region-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}
.cr-region-list .checkbox-field {min-height:44px;padding:4px 0;margin:0;gap:6px;font-size:var(--ui-text-caption);line-height:var(--ui-leading-compact);min-width:0}
.cr-region-list input {width:18px;height:18px;flex:none;accent-color:#315840}
.cr-concerns {min-width:0}
.cr-concerns-heading {display:flex;gap:8px;justify-content:space-between;align-items:center;padding-bottom:10px;border-bottom:1px solid #dce4d7;margin-bottom:12px}
.cr-concerns-heading h3 {font-size:var(--ui-text-body)}
.cr-concerns-heading>span {font-size:var(--ui-text-caption);color:#52634b}
.cr-concern-empty {display:grid;justify-items:center;text-align:center;gap:10px;padding:34px 18px;border:1px dashed #b9c8b2;border-radius:9px;background:#fafbf8;color:#52634b}
.cr-concern-empty svg {width:38px;height:38px;stroke:#6f8a63;stroke-width:1.5;fill:none}
.cr-concern-empty strong {font-size:var(--ui-text-body)}
.cr-concern-empty p {font-size:var(--ui-text-caption);line-height:var(--ui-leading-body)}
.cr-concern {border:1px solid #d6e0d2;border-radius:8px;margin-bottom:12px;overflow:clip}
.cr-concern>summary {padding:12px!important;background:#f0f5eb}
.cr-concern>summary>span {display:grid;gap:2px;min-width:0}
.cr-concern>summary strong {font-size:var(--ui-text-body)}
.cr-concern>summary small {font-size:var(--ui-text-caption);font-weight:var(--ui-weight-normal)}
.cr-concern-content {padding:14px 12px}
.cr-concern .cr-choice-group {margin-bottom:16px}
.cr-concern .cr-choice span {font-size:var(--ui-text-caption);padding:7px 9px}
.cr-concern .cr-choice-chips {gap:6px}
.cr-score-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cr-score-grid .field {margin-bottom:0}
.cr-score-hint {margin:7px 0 14px;font-size:var(--ui-text-caption)!important}
.cr-concern .button {width:100%;font-size:var(--ui-text-caption);padding:8px 12px}
.cr-editor textarea {font-size:var(--ui-text-body);min-height:84px}
.cr-carry-forward {display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;padding:14px 16px;border:1px solid #d8dfd2;background:#fafbf7;border-radius:8px;margin-top:18px}
.cr-carry-forward>div {display:grid;gap:3px;flex:1;min-width:130px}
.cr-carry-forward strong {font-size:var(--ui-text-body)}
.cr-carry-forward small {font-size:var(--ui-text-caption)}
.cr-carry-forward .button {font-size:var(--ui-text-caption);padding:8px 12px}
.cr-carry-forward p {font-size:var(--ui-text-caption);color:#52634b;flex-basis:100%}
.cr-intake-divider {border-top:1px solid #dde5d8;padding-top:18px;margin-top:18px}
.cr-intake-divider h3 {font-size:var(--ui-text-body);margin-bottom:14px}

.cr-editor input,.cr-editor select,.cr-editor textarea {scroll-margin-block:70px 155px}
.cr-structured-readonly {border-bottom:1px solid #dce5d7;padding-bottom:2px;margin-bottom:20px}
.cr-readonly-concern {padding:12px 14px;background:#f5f8f1;border:1px solid #dbe5d4;border-radius:8px;margin-bottom:12px}
.cr-readonly-concern h3 {font-size:var(--ui-text-body)}
.cr-readonly-concern .cr-record-text {margin-bottom:0}
.cr-readonly-concern .cr-record-text>div:last-child {margin-bottom:0}
@media(min-width:1101px) and (max-width:1280px) {
  .cr-concern-layout {gap:14px;grid-template-columns:minmax(224px,.85fr) minmax(0,1.1fr)}
  .cr-section-content {padding:14px}
}
@media(max-width:1100px) {
}
@media(max-width:720px) {
  .cr-profile-tools {width:100%;justify-content:flex-end}
  .cr-editor.card {padding:14px 12px}
  .cr-editor .cr-entry-section {margin-top:12px}
  .cr-editor .cr-entry-section>summary {padding:12px}
  .cr-section-content {padding:12px 10px}
  .cr-concern-layout {grid-template-columns:minmax(0,1fr);gap:18px}
  .cr-body-picker {padding:10px 8px}
  .cr-body-stage {margin-top:14px}
  .cr-editor textarea,.cr-editor input,.cr-editor select {font-size:var(--ui-text-input)}
  .cr-editor textarea {min-height:84px}
  .cr-choice-group legend {flex-wrap:wrap;gap:4px 12px}
  .cr-choice span {font-size:var(--ui-text-body)}
  .cr-concern .cr-choice span {font-size:var(--ui-text-body)}
  .cr-carry-forward {padding:12px;gap:8px}
  .cr-carry-forward>.button {width:100%}
  .cr-record-actions {gap:7px;flex-wrap:wrap}
  .cr-record-actions .button {padding:9px 10px;font-size:var(--ui-text-body);flex:1 1 auto}
  .cr-score-grid {gap:8px}
  .cr-score-grid .field-label {font-size:var(--ui-text-caption)}
}
@media(prefers-reduced-motion:reduce) {
  .cr-workspace * {scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
.cr-prior-context {padding:14px 16px;margin-top:16px;border:1px solid #ddcfab;background:#fffcf3;border-radius:8px}
.cr-prior-context>strong {display:flex;align-items:baseline;gap:5px 12px;flex-wrap:wrap;font-size:var(--ui-text-body);color:#6b552b}
.cr-prior-precautions>p {white-space:pre-wrap;overflow-wrap:anywhere;line-height:var(--ui-leading-body);font-size:var(--ui-text-body);margin-top:6px}
.cr-prior-context {background:#fafbf7;border-color:#d6dfce}
.cr-prior-context>strong {color:#3d5438}
.cr-prior-context>small {display:block;font-size:var(--ui-text-caption);line-height:var(--ui-leading-body);margin-top:9px}
.cr-prior-context summary {font-size:var(--ui-text-caption);font-weight:var(--ui-weight-strong)}
.cr-prior-precautions {margin-top:9px}
.cr-prior-precautions>span {font-size:var(--ui-text-caption);color:#52634b}
.cr-editor [data-action],.cr-editor summary,.cr-editor .cr-choice {scroll-margin-block:70px 165px}

/* Fixed body-map positions remain external so production style-src self is enforced. */
.cr-body-position-front-head {left:50%;top:27px}
.cr-body-position-front-neck {left:50%;top:75px}
.cr-body-position-front-chest {left:50%;top:171px}
.cr-body-position-front-abdomen {left:50%;top:237px}
.cr-body-position-back-head {left:50%;top:27px}
.cr-body-position-back-neck {left:50%;top:75px}
.cr-body-position-back-upperBack {left:50%;top:171px}
.cr-body-position-back-lowerBack {left:50%;top:219px}
.cr-body-position-back-sacrum {left:50%;top:267px}
.cr-body-position-front-right-shoulder,.cr-body-position-back-left-shoulder {left:31.07142857%;top:123px}
.cr-body-position-front-left-shoulder,.cr-body-position-back-right-shoulder {left:68.92857143%;top:123px}
.cr-body-position-front-right-upperArm,.cr-body-position-back-left-upperArm {left:21.78571429%;top:184px}
.cr-body-position-front-left-upperArm,.cr-body-position-back-right-upperArm {left:78.21428571%;top:184px}
.cr-body-position-front-right-elbow,.cr-body-position-back-left-elbow {left:16.07142857%;top:238px}
.cr-body-position-front-left-elbow,.cr-body-position-back-right-elbow {left:83.92857143%;top:238px}
.cr-body-position-front-right-forearm,.cr-body-position-back-left-forearm {left:12.14285714%;top:291px}
.cr-body-position-front-left-forearm,.cr-body-position-back-right-forearm {left:87.85714286%;top:291px}
.cr-body-position-front-right-hand,.cr-body-position-back-left-hand {left:9.64285714%;top:349px}
.cr-body-position-front-left-hand,.cr-body-position-back-right-hand {left:90.35714286%;top:349px}
.cr-body-position-front-right-hip,.cr-body-position-back-left-hip {left:35.71428571%;top:314px}
.cr-body-position-front-left-hip,.cr-body-position-back-right-hip {left:64.28571429%;top:314px}
.cr-body-position-front-right-thigh,.cr-body-position-back-left-thigh {left:36.78571429%;top:360px}
.cr-body-position-front-left-thigh,.cr-body-position-back-right-thigh {left:63.21428571%;top:360px}
.cr-body-position-front-right-knee,.cr-body-position-back-left-knee {left:36.42857143%;top:414px}
.cr-body-position-front-left-knee,.cr-body-position-back-right-knee {left:63.57142857%;top:414px}
.cr-body-position-front-right-shin,.cr-body-position-back-left-shin {left:35.35714286%;top:469px}
.cr-body-position-front-left-shin,.cr-body-position-back-right-shin {left:64.64285714%;top:469px}
.cr-body-position-front-right-ankle,.cr-body-position-back-left-ankle {left:33.92857143%;top:524px}
.cr-body-position-front-left-ankle,.cr-body-position-back-right-ankle {left:66.07142857%;top:524px}
.cr-body-position-front-right-foot,.cr-body-position-back-left-foot {left:30%;top:580px}
.cr-body-position-front-left-foot,.cr-body-position-back-right-foot {left:70%;top:580px}

/* Revisions remain readable without an extra open/close interaction. */
.cr-revision + .cr-revision{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}
.cr-revision header{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.cr-revision h3{font-size:var(--ui-text-input)}.cr-revision time,.cr-revision-meta{font-size:var(--ui-text-caption);color:var(--muted)}
.cr-revision>p{margin-top:10px;overflow-wrap:anywhere}.cr-revision .cr-record-text{margin-top:16px}

/* Secondary reference sections share a full-width disclosure control. */
.cr-disclosure-heading {margin:0}
.cr-disclosure {display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 0;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.cr-disclosure .ui-section-heading {flex:1;font-size:var(--ui-text-input);font-weight:var(--ui-weight-strong)}
.cr-disclosure small {color:var(--muted);font-size:var(--ui-text-caption);font-weight:var(--ui-weight-normal)}
.cr-disclosure svg {width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .16s ease}
.cr-disclosure[aria-expanded=true] svg {transform:rotate(180deg)}
.cr-disclosure:hover {color:var(--green);background:var(--paper,#f6f8f2)}
.cr-disclosure:focus-visible {outline:3px solid #947435;outline-offset:4px;border-radius:4px}
.cr-disclosure-panel:not([hidden]) {padding-top:16px;border-top:1px solid var(--line);margin-top:8px}
.cr-single-choice .cr-choice span::before {border-radius:50%}
.cr-single-choice input:checked+span::before {content:'';background:#315840;box-shadow:inset 0 0 0 3px #e7f0e2}
.cr-revision header>span {font-size:var(--ui-text-caption);color:var(--muted)}
@media (max-width:480px) {.cr-disclosure {gap:8px}.cr-disclosure .ui-section-heading {font-size:var(--ui-text-body)}}
@media (prefers-reduced-motion:reduce) {.cr-disclosure svg {transition:none}}

/* The saved record owns one compact action row on desktop and mobile. */
#cr-record-form-actions {--action-content-gap:var(--ui-space-4);padding-block:var(--ui-space-3) max(var(--ui-space-3),env(safe-area-inset-bottom))}
#cr-record-form-actions .cr-record-actions {gap:var(--ui-space-2)}
#cr-record-form-actions .button {flex:0 1 auto;min-height:var(--ui-control-height);padding:10px 16px}
@media(max-width:720px) {
  #cr-record-form-actions {padding-block:var(--ui-space-2) max(var(--ui-space-2),env(safe-area-inset-bottom))}
  #cr-record-form-actions .button {flex:1 1 0;padding:10px 8px}
  #cr-record-form-actions .cr-record-actions>:first-child {margin-inline-end:0}
}

.cr-current-precautions {margin-top:var(--ui-space-4)}
.cr-current-precautions>.field {margin:0}
.cr-appointment-value {font-size:var(--ui-text-input);line-height:var(--ui-leading-compact);overflow-wrap:anywhere;padding-block:11px}
