/* First layer: confined to the existing comparison workspaces. */
@layer finder-readable-workspace {
  body.pc-classic, body:has(#remedy-method) {background:#f4f7f3!important;color:#17364b!important}
  body.pc-classic #MainMenu {padding-block:8px!important;row-gap:8px!important}
  body.pc-classic #MainMenu .rl-brand-cell {height:auto!important;min-height:44px!important}
  body.pc-classic #MainMenu .fk-brand {min-height:44px!important;height:auto!important;padding-block:0!important}
  body.pc-classic #MainMenu .ls-nav-row {min-height:44px!important;height:auto!important}
  body.pc-classic #MainMenu .rf-brand-symbol {height:44px!important;width:auto!important}
  body.pc-classic #MainMenu #classic-version-nav {margin:0!important}
  body.pc-classic #MainMenu .rf-version-switch {height:auto!important;min-height:44px!important;padding:0!important}
  body.pc-classic #MainMenu .rf-version-buttons a {box-sizing:border-box!important;min-height:40px!important;height:auto!important;padding-block:8px!important}
  body.pc-classic #MainBody {gap:16px!important}
  body.pc-classic .rs-panel {border:1px solid #d4dfda!important;border-radius:6px!important;background:#fff!important;padding:16px!important}
  body.pc-classic .rs-panel-heading {min-height:86px!important;margin:0 0 12px!important}
  body.pc-classic .rs-panel-heading h2, #remedy-method h2, #remedy-method .legacy-column-header strong[role="heading"] {font-size:21px!important;line-height:1.25!important;font-weight:500!important;color:#17364b!important;margin-top:0!important}
  body.pc-classic .rs-panel-heading p {font-size:16px!important;line-height:1.4!important;margin:6px 0 0!important}
  body.pc-classic .rs-profile .rs-panel-heading {min-height:0!important;margin:0!important}
  body.pc-classic .rs-profile {gap:16px!important;align-items:center!important}
  body.pc-classic :is(.rs-choice,.rf-profile-choice) input {position:static!important;display:inline-block!important;width:18px!important;height:18px!important;min-height:18px!important;min-width:18px!important;margin:0!important;padding:0!important;opacity:1!important;clip:auto!important;clip-path:none!important;flex:0 0 18px!important;accent-color:#356c66!important}
  body.pc-classic .rs-choice-mark, body.pc-classic .rf-profile-choice::before {display:none!important;content:none!important}
  body.pc-classic .rf-profile-choice {gap:8px!important;padding:8px 12px!important;min-width:92px!important;min-height:44px!important}
  body.pc-classic .rs-choice {min-height:44px!important;padding-block:9px!important;gap:10px!important;line-height:1.4!important;font-size:17px!important}
  body.pc-classic .rs-choice:has(input:checked), body.pc-classic .rf-profile-choice:has(input:checked) {background:#edf4ef!important;border-color:#8aaba0!important;color:#17364b!important}
  body.pc-classic .cf-selection-icon {font-size:16px!important;flex:0 0 auto!important;width:auto!important;min-width:44px!important;min-height:44px!important;padding:8px 10px!important;white-space:nowrap!important}
  body.pc-classic .cf-selection-icon::before {display:none!important;content:none!important}
  body.pc-classic .rs-selection-tools {gap:6px!important;margin-bottom:8px!important;flex-wrap:wrap!important}
  body.pc-classic .rs-results-jump {display:none!important}
  body.pc-classic #RFRemedy td {line-height:1.4!important;padding-block:8px!important}
  body.pc-classic #RFRemedy :is(table,tbody) {height:auto!important;min-height:0!important}
  body.pc-classic #RFRemedy > table, body.pc-classic #RFRemedy > table > tbody {display:block!important}
  body.pc-classic #RFRemedy > table > tbody > tr:not([hidden]) {display:grid!important;grid-template-columns:36px minmax(0,1fr) 52px!important;min-height:44px!important;height:auto!important;align-items:start!important}
  body.pc-classic #RFRemedy > table > tbody > tr > td {height:auto!important;min-height:0!important}
  body.pc-classic #RFRemedy > table > tbody > tr > td[colspan] {grid-column:1/-1!important;padding:0!important}
  body.pc-classic #RFRemedy > table > tbody > tr:has(>td:nth-child(4)) > td:first-child:empty {display:none!important}
  body.pc-classic #RFRemedy > table > tbody > tr:has(>td:nth-child(4)) > td:nth-child(2) {white-space:nowrap!important}
  #remedy-method :is(.rf-search-input,.rf-search-selected,.rf-search-results) {min-width:0!important;border:1px solid #d4dfda!important;border-radius:6px!important;background:#fff!important;padding:16px!important}
  #remedy-method .rf-search-layout {gap:16px!important;align-items:start!important}
  #remedy-method .rf-method-filters {gap:6px 14px!important;padding:10px 0!important;margin:0!important}
  #remedy-method .rf-search-pick[data-multi-key] {min-height:44px!important;gap:10px!important;padding:10px!important;font-size:17px!important;line-height:1.4!important}
  #remedy-method .rf-search-pick[data-multi-key]::before {content:''!important;box-sizing:border-box!important;display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important;border:1.5px solid #658078!important;border-radius:2px!important;background:#fff!important;line-height:15px!important;font-size:16px!important;text-align:center!important}
  #remedy-method .rf-search-pick[data-multi-key][aria-checked="true"]::before {content:'✓'!important;background:#356c66!important;border-color:#356c66!important;color:#fff!important}
  #remedy-method .rf-search-pick[data-multi-key][aria-checked="true"] {background:#edf4ef!important}
  #remedy-method :is(button,a,input):focus-visible, body.pc-classic #MainBody :is(button,a,input,select):focus-visible {outline:3px solid #356c66!important;outline-offset:2px!important}
  #remedy-method .chip button {width:auto!important;flex:0 0 auto!important;min-width:72px!important;min-height:44px!important;padding:6px 10px!important;font-size:16px!important;line-height:1.25!important;white-space:nowrap!important}
  @media(min-width:1100px) {
    body.pc-classic .rs-profile {grid-template-columns:minmax(220px,1fr) minmax(380px,1.4fr) auto!important}
    #remedy-method .rf-search-layout {grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.1fr)!important}
    #remedy-method .rf-search-column, #remedy-method .rf-summary-column {display:contents!important}
    #remedy-method .rf-method-filters {grid-column:1/-1!important;grid-row:1!important}
    #remedy-method .rf-search-input {grid-column:1!important;grid-row:2!important}
    #remedy-method .rf-search-selected {grid-column:2!important;grid-row:2!important}
    #remedy-method #remedy-output {margin-top:0!important}
    #remedy-method .rf-overview-heading {align-items:flex-start!important}
    #remedy-method .rf-search-results {grid-column:3!important;grid-row:2!important;margin-top:0!important}
    #remedy-method .rf-search-column > :not(.rf-search-input) {grid-column:1/-1!important}
  }
  @media(max-width:760px) {
    #remedy-method .rf-search-layout {align-items:stretch!important}
    body.pc-classic .rs-results-jump {display:inline-flex!important;min-height:44px!important;align-items:center!important;margin-top:8px!important;color:#356c66!important;font-weight:500!important;text-decoration:none!important}
    body.pc-classic .rs-panel, #remedy-method :is(.rf-search-input,.rf-search-selected,.rf-search-results) {padding:12px!important}
    body.pc-classic .rs-panel-heading {min-height:0!important}
    body.pc-classic .rs-profile {gap:12px!important}
  }
}

@layer finder-readable-workspace {
 body.pc-classic .rs-search .rs-panel-heading {min-height:0!important}
 body.pc-classic .rs-search .rs-panel-heading p {display:none!important}
 body.pc-classic #RFEnterSymptom .rs-search-label {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
 body.pc-classic .rs-visible-groups:not([hidden]) {grid-column:1/-1!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px 16px!important;border:1px solid #d4dfda!important;border-radius:6px!important;padding:8px 12px!important;margin:0!important;background:#fff!important;min-width:0!important}
 body.pc-classic .rs-visible-groups legend {font-size:16px!important;font-weight:500!important;padding:0 4px!important}
 body.pc-classic .rs-group-options {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:0 16px!important;flex:1 1 700px!important}
 body.pc-classic .rs-group-choice {display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:44px!important;font-size:16px!important;font-weight:400!important;cursor:pointer!important}
 body.pc-classic .rs-group-choice input {appearance:auto!important;position:static!important;width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;opacity:1!important;accent-color:#356c66!important}
 body.pc-classic .rs-group-actions {display:flex!important;gap:6px!important}
 body.pc-classic #RFRemedy > table > tbody > tr[data-rs-group-hidden], body.pc-classic #RFRemedy > table > tbody > tr[data-rs-native-filter] {display:none!important}
}

/* A checked box consistently means included in the selection. */
#remedy-method .chip .rf-selection-target{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;min-height:44px;cursor:pointer;margin:0;padding:0}
#remedy-method .chip .rf-selection-check{appearance:auto;width:18px;height:18px;min-width:18px;min-height:18px;margin:0;padding:0;accent-color:#397eaf;cursor:pointer}
#remedy-method .chip [role="button"]:focus-visible{outline:2px solid #216da4;outline-offset:3px;border-radius:2px}

/* Preserve a full-width readable row when the native mobile rule uses chips. */
html body.fk-page #panel-remedy #remedy-method.rf-search-flow .rf-search-selected :is(#remedy-selected-symptoms,#remedy-selected-illness,#remedy-selected-risks){display:flex!important;flex-direction:column!important;align-items:stretch!important}
html body.fk-page #panel-remedy #remedy-method.rf-search-flow .rf-search-selected .chip{width:100%!important;box-sizing:border-box!important;flex:0 0 auto!important;flex-wrap:nowrap!important}
html body.fk-page #panel-remedy #remedy-method.rf-search-flow .rf-search-selected .chip>span{flex:1 1 auto!important;min-width:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}

/* Inclusion and ordering have separate controls in Classic. */
@layer finder-readable-workspace {
 body.pc-classic .rs-selection-tools [hidden] {display:none!important}
 body.pc-classic #RFChosenSymptoms .rs-choice-cell {display:flex!important;align-items:center!important;gap:4px!important;flex-wrap:wrap!important}
 body.pc-classic #RFChosenSymptoms .rs-choice {flex:1 1 140px!important;min-width:0!important}
 body.pc-classic #RFChosenSymptoms .rs-source-info {position:static!important;transform:none!important;flex:0 0 28px!important;margin:0!important}
 body.pc-classic .rs-row-order {display:inline-flex!important;gap:2px!important;margin-left:auto!important}
 body.pc-classic .rs-order-action {width:44px!important;min-width:44px!important;min-height:44px!important;padding:6px!important;font-size:20px!important;line-height:1!important}
 body.pc-classic .rs-order-action:disabled {opacity:.4!important;cursor:default!important}
 body.pc-classic .rs-choice-row[aria-busy="true"] {opacity:.65!important}
}
