/* Shared presentation refinements. No search, scoring or entitlement rules. */
@layer ls-profile {
html:root body[data-ls-profile] {
 --ls-control-height:44px;
 --ls-section-gap:32px;
 --ls-panel-space:24px;
}
/* Keep inline examples, remove icons, checkboxes and radios distinct from actions. */
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy,#IFBody,.IFAccountMain) :is(
 input[type=search],input[type=email],input[type=text],input[type=number],input[type=password],input[type=tel],select
) {
 box-sizing:border-box!important;min-height:var(--ls-control-height)!important;height:44px!important;
 padding:8px 12px!important;border-radius:4px!important;font-size:17px!important;line-height:1.5!important;
 background-color:#fff!important;
}
html:root body[data-ls-profile] :is(#remedy-symptom-button,#remedy-run,#remedy-undo,#remedy-edit-context,#remedy-new-search,#remedy-start-case,
 #homeopathy-search-button,#homeopathy-materia-button,#homeopathy-new-search,#homeopathy-show-selected,
 #NewSearchButton,.if-search-button,.if-undo,.if-followups button,.if-mobile-selection button,
 .IFPrimaryButton,.IFSecondaryButton,.IFPrimaryLink,.IFSecondaryLink) {
 box-sizing:border-box!important;min-height:44px!important;height:auto!important;
 padding:10px 19px!important;border:1px solid #b9ced9;border-radius:4px!important;
 font-size:16px!important;font-weight:500!important;line-height:22px!important;
 box-shadow:none!important;text-shadow:none!important;white-space:normal!important;
}
html:root body[data-ls-profile] :is(#remedy-language,#if-language,.fk-nav select,.IFAccountNav select,.wh-language-button) {
 box-sizing:border-box!important;min-height:44px!important;height:44px!important;
 padding:8px 24px 8px 12px!important;font-size:16px!important;line-height:1.35!important;border-radius:4px!important;
}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy,#IFBody,.IFAccountMain) :is(input[type=search],input[type=email],input[type=text],input[type=number],input[type=tel],select):focus-visible {
 outline:2px solid #21629b!important;outline-offset:-1px!important;box-shadow:none!important;
}
/* Workspaces: a quiet selection surface, with open search and result sections. */
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-tool-board {
 gap:var(--ls-section-gap)!important;
}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-tool-board>.legacy-tool-column {
 border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;
}
html:root body[data-ls-profile] #panel-remedy .rf-case-start>.legacy-tool-column {
 border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;
}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-tool-column>.legacy-column-header {
 padding:0!important;margin:0 0 16px!important;border:0!important;background:transparent!important;min-height:0!important;
}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-tool-column>.legacy-column-body {
 padding:0!important;
}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-column-header>strong,
html:root body[data-ls-profile] #IFBody .if-card-heading h2 {
 font-size:24px!important;font-weight:500!important;line-height:1.3!important;margin:0!important;
}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) :is(.homeopathy-selected-column,#remedy-workspace-step-3) {
 padding:var(--ls-panel-space)!important;border:0!important;border-radius:6px!important;background:#f2f7fb!important;align-self:start!important;
}
html:root body[data-ls-profile] #panel-remedy #remedy-workspace-step-4 {
 border-top:1px solid #d5e2e9!important;padding-top:24px!important;
}
html:root body[data-ls-profile] #panel-homeopathy .wh-source-toolbar {
 padding:0 0 24px!important;border:0!important;border-bottom:1px solid #d5e2e9!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
html:root body[data-ls-profile] #panel-homeopathy .legacy-source-option {
 border:0!important;background:#f2f7f8!important;border-radius:4px!important;min-height:44px!important;
}
html:root body[data-ls-profile] #panel-remedy .rf-case-context {margin:16px 0 24px!important;gap:12px!important}
html:root body[data-ls-profile] #panel-remedy .rf-case-context>span {flex:1 1 auto!important}
html:root body[data-ls-profile] #panel-remedy .rf-case-context>.ls-context-info {flex:0 0 44px!important;margin:0!important}
html:root body[data-ls-profile] #panel-remedy .rf-case-context .ls-info-content {left:auto!important;right:0!important}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .search-row {gap:8px!important;align-items:stretch!important}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-search-block {margin:0!important}
html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-search-block>label {margin:0 0 8px!important;line-height:1.5!important}
/* Illnessfinder retains its numbered sections and its own comparison flow. */
html:root body[data-ls-profile] #IFBody :is(.if-grid,.if-side) {gap:var(--ls-section-gap)!important}
html:root body[data-ls-profile] #IFBody .if-card {
 border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;
}
html:root body[data-ls-profile] #IFBody .if-card-heading {
 padding:0!important;margin:0 0 16px!important;border:0!important;background:transparent!important;align-items:center!important;
}
html:root body[data-ls-profile] #IFBody .if-card-body {padding:0!important}
html:root body[data-ls-profile] #IFBody .if-chosen-card {
 background:#f2f7fb!important;border-radius:6px!important;padding:var(--ls-panel-space)!important;
}
html:root body[data-ls-profile] #IFBody .if-basics {
 border-bottom:1px solid #d5e2e9!important;padding-bottom:24px!important;margin-bottom:32px!important;
}
html:root body[data-ls-profile] #IFBody .if-results-card {border-top:1px solid #d5e2e9!important;padding-top:24px!important}
html:root body[data-ls-profile] #IFBody .if-card-heading h2 {align-items:center!important;gap:10px!important}
html:root body[data-ls-profile] #IFBody .if-card-heading .if-step {
 width:28px!important;height:28px!important;min-width:28px!important;line-height:28px!important;font-size:15px!important;
}
html:root body[data-ls-profile] #IFBody .if-card :is(h3,legend) {font-size:21px!important;font-weight:500!important;line-height:1.35!important;margin:0 0 12px!important}
html:root body[data-ls-profile] #IFBody .if-card :is(.if-field>label,.if-sex>legend) {font-size:17px!important;font-weight:500!important;line-height:1.5!important;margin:0 0 8px!important}
html:root body[data-ls-profile] #IFBody .if-choice {box-sizing:border-box!important;min-height:44px!important}
html:root body[data-ls-profile] #IFBody .if-card :is(.if-help,.if-ready-note) {margin:8px 0 16px!important}
html:root body[data-ls-profile] #IFBody .if-search-button {background:#2674af!important;color:#fff!important;border-color:#2674af!important}
html:root body[data-ls-profile] #IFBody .if-search-button:hover {background:#1d5b8b!important;border-color:#1d5b8b!important}
/* Optional help stays beside its label and opens in the reading flow. */
html:root body[data-ls-profile] #IFBody .ls-field-label {
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:0 6px!important;margin:0 0 8px!important;
}
html:root body[data-ls-profile] #IFBody .ls-field-label>label {margin:0!important;font-size:17px!important;line-height:1.5!important}
html:root body[data-ls-profile] #IFBody details.ls-field-help {display:contents!important}
html:root body[data-ls-profile] #IFBody details.ls-field-help>summary {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;list-style:none!important;
 width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;
 background:transparent!important;color:#246da5!important;cursor:pointer!important;
}
html:root body[data-ls-profile] #IFBody details.ls-field-help>summary::-webkit-details-marker {display:none!important}
html:root body[data-ls-profile] #IFBody details.ls-field-help>summary::before,
html:root body[data-ls-profile] #IFBody details.ls-field-help>summary::after {content:none!important}
html:root body[data-ls-profile] #IFBody .ls-field-help-copy {
 flex:1 0 100%!important;box-sizing:border-box!important;padding:12px 16px!important;
 border-left:3px solid #b9d0df!important;background:#f2f7fb!important;border-radius:4px!important;
}
html:root body[data-ls-profile] #IFBody .ls-field-help-copy p {font-size:16px!important;line-height:1.55!important;margin:0 0 6px!important}
html:root body[data-ls-profile] #IFBody .ls-field-help-copy p:last-child {margin-bottom:0!important}
html:root body[data-ls-profile] #IFBody details.ls-field-help:not([open])>.ls-field-help-copy {display:none!important}
html:root body[data-ls-profile] #IFBody .ls-field-help>summary:focus-visible {outline:2px solid #21629b!important;outline-offset:2px!important;border-radius:4px!important}
@media(max-width:640px) {
 html:root body[data-ls-profile] {--ls-section-gap:24px;--ls-panel-space:16px}
 html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .legacy-column-header>strong,
 html:root body[data-ls-profile] #IFBody .if-card-heading h2 {font-size:21px!important}
 html:root body[data-ls-profile] :is(#panel-remedy,#panel-homeopathy) .search-row {min-width:0!important}
 html:root body[data-ls-profile] #IFBody .if-card-heading {flex-wrap:wrap!important}
 html:root body[data-ls-profile] #IFBody .if-basics {margin-bottom:24px!important}
 html:root body[data-ls-profile] #panel-remedy .rf-case-context .ls-info-content {left:16px!important;right:16px!important}
}
}
