/* Keep the existing case flow and tri-state answers. Reduce unused space only. */
@layer finder-readable-workspace {
  body.ue-illness:has(#IFBody:not(.if-information)) {background:#f4f7f3!important;color:#17364b!important}
  body.ue-illness #IFBody:not(.if-information) {padding-top:16px!important}
  #IFBody .if-toolbar {margin-bottom:8px!important}
  #IFBody .ls-method-summary {margin-block:6px 12px!important}
  #IFBody .if-case-nav {gap:8px!important;margin-block:8px 16px!important;padding:0!important}
  #IFBody .if-card {border-radius:6px!important;border-color:#d4dfda!important;background:#fff!important;padding:0!important}
  #IFBody .if-card-heading {padding:14px 16px!important;margin:0!important;min-height:0!important;align-items:start!important}
  #IFBody .if-card-heading h2 {font-size:21px!important;font-weight:500!important;line-height:1.25!important;margin:0!important}
  #IFBody .if-card-heading .if-help {font-size:16px!important;line-height:1.4!important;margin:6px 0 0!important}
  #IFBody .if-card-body {padding:12px 16px!important}
  #IFBody .if-basics {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(380px,1fr)!important;align-items:center!important;margin-bottom:16px!important}
  #IFBody .if-basics .if-card-heading {border:0!important}
  #IFBody .if-basics .if-card-body {padding-block:12px!important}
  #IFBody .if-basics #FormConfigSearch {display:flex!important;align-items:end!important;gap:24px!important;flex-wrap:wrap!important}
  #IFBody .if-basics :is(fieldset,.if-field) {margin:0!important;padding:0!important;border:0!important;flex:0 1 auto!important}
  #IFBody .if-basics legend, #IFBody .if-basics .if-field > label {margin-bottom:6px!important}
  #IFBody .if-choice {min-height:44px!important;padding:8px 12px!important;gap:8px!important}
  #IFBody .if-choice input {position:static!important;opacity:1!important;clip-path:none!important;width:18px!important;height:18px!important;margin:0!important;accent-color:#356c66!important}
  #IFBody .if-grid {gap:16px!important;align-items:start!important}
  #IFBody .if-remove {width:auto!important;min-width:72px!important;min-height:44px!important;padding:6px 10px!important;font-size:0!important;border-radius:6px!important}
  #IFBody .if-remove::after {content:'Remove';font:500 16px/1.25 "Source Sans 3",sans-serif;white-space:nowrap}
  html[lang="sv"] #IFBody .if-remove::after {content:'Ta bort'}
  #IFBody :is(.if-search-card,.if-chosen-card) > .if-card-heading {min-height:82px!important}
  #IFBody :is(.if-ready-note,.if-search-explanation) {margin:0 0 10px!important;font-size:16px!important;line-height:1.4!important}
  #IFBody :is(button,a,input,select,textarea):focus-visible {outline:3px solid #356c66!important;outline-offset:2px!important}
  #IFBody .if-operation-status:empty {margin:0!important;padding:0!important;min-height:0!important}
  @media(max-width:760px) {
    #IFBody .if-basics {grid-template-columns:minmax(0,1fr)!important}
    #IFBody .if-basics .if-card-heading {padding-bottom:0!important}
    #IFBody .if-basics #FormConfigSearch {gap:16px!important}
    #IFBody :is(.if-search-card,.if-chosen-card) > .if-card-heading {min-height:0!important}
    #IFBody .if-card-heading, #IFBody .if-card-body {padding-inline:12px!important}
  }
}

/* Overview: comparison is beside selection instead of below the question guide. */
@layer finder-readable-workspace {
  #IFBody.if-overview-layout {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;align-items:start!important}
  #IFBody.if-overview-layout > *, #IFBody.if-overview-layout .if-explained > * {grid-column:1/-1;min-width:0}
  #IFBody.if-overview-layout :is(.if-grid,.if-side), #IFBody.if-overview-layout .if-results-card:not([hidden]), #IFBody.if-overview-layout .if-results-card > .if-card-body, #IFBody.if-overview-layout #IFIllness:not([hidden]), #IFBody.if-overview-layout #IFIllness > .if-explained {display:contents!important}
  #IFBody.if-overview-layout .if-toolbar,
  #IFBody.if-overview-layout .if-basics > .if-card-heading,
  #IFBody.if-overview-layout .if-results-card > .if-card-heading {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
  #IFBody.if-overview-layout .ls-method-summary {order:0;margin:0!important}
  #IFBody.if-overview-layout .if-case-nav {order:1;margin:0!important;flex-wrap:nowrap!important;overflow-x:auto!important}
  #IFBody.if-overview-layout .if-basics {display:block!important;order:2;margin:0!important}
  #IFBody.if-overview-layout .if-basics > .if-card-body {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
  #IFBody.if-overview-layout .if-basics #FormConfigSearch {flex:1 1 auto!important;gap:20px!important}
  #IFBody.if-overview-layout .if-basics #IFNewSerach {margin:0!important}
  #IFBody.if-overview-layout .if-search-card {order:3;min-width:0}
  #IFBody.if-overview-layout .if-chosen-card {order:4;min-width:0}
  #IFBody.if-overview-layout :is(.if-search-card,.if-chosen-card) > .if-card-heading {min-height:0!important;padding-bottom:8px!important}
  #IFBody.if-overview-layout .if-chosen-card .if-card-heading .if-help,
  #IFBody.if-overview-layout .if-ux-input-example,
  #IFBody.if-overview-layout:has(#entersymptom:not(:disabled)) .if-ready-note,
  body[data-result-access="allowed"] #IFBody.if-overview-layout [data-access-note] {display:none!important}
  #IFBody.if-overview-layout #entersymptom {min-height:52px!important;height:52px!important;resize:vertical!important}
  #IFBody.if-overview-layout .if-search-line {align-items:stretch!important}
  #IFBody.if-overview-layout .if-undo {min-height:44px!important;margin:0 16px 8px!important}
  #IFBody.if-overview-layout #if-ranked-results {order:5;padding:14px 16px!important;border:1px solid #d4dfda!important;border-radius:6px!important;background:#fff!important;min-width:0!important}
  #IFBody.if-overview-layout #if-ranked-heading {font-size:21px!important;line-height:1.25!important;font-weight:500!important;margin:0 0 10px!important}
  #IFBody.if-overview-layout .if-score-boundary {font-size:15px!important;line-height:1.4!important;margin:0 0 12px!important}
  #IFBody.if-overview-layout .if-result-table {width:100%!important;table-layout:fixed!important;margin:0!important;font-size:16px!important}
  #IFBody.if-overview-layout .if-result-table th:first-child, #IFBody.if-overview-layout .if-result-table td:first-child {width:24px!important}
  #IFBody.if-overview-layout .if-result-table th:last-child, #IFBody.if-overview-layout .if-result-table td:last-child {width:70px!important;text-align:right!important}
  #IFBody.if-overview-layout .if-result-table :is(th,td) {padding:7px 5px!important;overflow-wrap:anywhere!important;vertical-align:top!important}
  #IFBody.if-overview-layout .if-row-source {font-size:13px!important;line-height:1.35!important;margin-top:3px!important}
  #IFBody.if-overview-layout .if-score-label {display:none!important}
  #IFBody.if-overview-layout .if-more-results, #IFBody.if-overview-layout .if-overview-reading {margin-top:10px!important}
  #IFBody.if-overview-layout :is(.if-more-results,.if-overview-reading) > summary {min-height:44px!important;display:flex!important;align-items:center!important;font-size:16px!important;cursor:pointer!important}
  #IFBody.if-overview-layout .if-explained > .if-followups {order:6;grid-column:1/-1;padding:16px!important;background:#fff!important;border:1px solid #d4dfda!important;border-radius:6px!important}
  #IFBody.if-overview-layout .if-explained > :not(#if-ranked-results):not(.if-followups) {order:7;grid-column:1/-1}
  #IFBody.if-overview-layout .if-result-basis {order:8;grid-column:1/-1}
  #IFBody.if-overview-layout .if-case-overview {order:9;grid-column:1/-1}
  #IFBody.if-overview-layout .if-safety {order:10;grid-column:1/-1}
  #IFBody.if-overview-layout .if-recovery:not([hidden]) {order:0;grid-column:1/-1}
  @media(min-width:1100px) {
    #IFBody.if-overview-layout {grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,1.35fr)!important}
    #IFBody.if-overview-layout .if-case-nav {display:none!important}
    #IFBody.if-overview-layout .if-search-card {grid-column:1;grid-row:3}
    #IFBody.if-overview-layout .if-chosen-card {grid-column:2;grid-row:3}
    #IFBody.if-overview-layout #if-ranked-results {grid-column:3;grid-row:3}
    #IFBody.if-overview-layout:has(#if-ranked-results) #IFSearchSymptom {max-height:440px!important;overflow-y:auto!important}
  }
  @media(max-width:760px) {
    #IFBody.if-overview-layout {gap:10px!important}
    #IFBody.if-overview-layout #if-ranked-results {padding:12px!important}
    #IFBody.if-overview-layout .if-basics #FormConfigSearch {gap:12px!important}
    #IFBody.if-overview-layout #IFSearchSymptom {max-height:200px!important;overflow-y:auto!important}
  }
}

@layer finder-readable-workspace {
 #IFBody.if-overview-layout .if-step, #IFBody.if-overview-layout .if-current-question-action {display:none!important}
 #IFBody.if-overview-layout .if-result-table th {white-space:normal!important}
 #IFBody.if-overview-layout #IFIllness > :not(.if-explained) {grid-column:1/-1;order:5}
}

@layer finder-readable-workspace {
 #IFBody.if-overview-layout .if-search-form .ls-field-label {display:contents!important}
 #IFBody.if-overview-layout .if-search-form label[for="entersymptom"] {position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important}
 #IFBody.if-overview-layout .if-search-card > .if-card-heading {justify-content:space-between!important}
}

@layer finder-readable-workspace {
 #IFBody.if-overview-layout .if-selection-target {display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;cursor:pointer!important}
 #IFBody.if-overview-layout input.if-selection-check {appearance:auto!important;position:static!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important;opacity:1!important;accent-color:#356c66!important}
 #IFBody.if-overview-layout input.if-selection-check::after {display:none!important;content:none!important}
 #IFBody.if-overview-layout #IFChosenSymptoms td:first-child {width:44px!important;padding:0!important}
}
