:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f6f9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f6f9;
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 5vw, 42px);
}

.hero p {
  margin: 0;
  color: #5b6475;
}

.card {
  background: white;
  border: 1px solid #dde2ea;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .05);
}

.field label, .selector-block h2 {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input[type="search"] {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #cfd6e2;
  padding: 0 14px;
  font-size: 16px;
}

button {
  cursor: pointer;
}

#searchButton {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  background: #172033;
  color: white;
  font-weight: 700;
}

.selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.selector-block h2 {
  margin: 0 0 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  border: 1px solid #cfd6e2;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-size: 14px;
  user-select: none;
}

.chip input:checked + span {
  border-color: #172033;
  background: #172033;
  color: white;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: #4f596b;
  font-size: 14px;
}

.disclaimer {
  margin: 18px 0 0;
  color: #6a7280;
  font-size: 13px;
  line-height: 1.45;
}

.results-section {
  margin-top: 28px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.results-header h2 {
  margin: 0 0 14px;
}

#resultCount {
  color: #6a7280;
  font-size: 14px;
}

.results {
  display: grid;
  gap: 12px;
}

.result {
  background: white;
  border: 1px solid #dde2ea;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.result h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.meta {
  color: #687181;
  font-size: 13px;
}

.status {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.match_detected {
  background: #fde6e7;
  color: #9f1d25;
}

.status.no_match_detected {
  background: #e6f4ea;
  color: #236b37;
}

.status.information_incomplete {
  background: #fff1d6;
  color: #8b5a00;
}

.result-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.result-actions button, .saved-list button {
  border: 0;
  background: transparent;
  color: #293b69;
  padding: 0;
  font-weight: 700;
}

.favorite-button.is-favorite { color: #8b5a00; }

.message {
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 14px;
  padding: 16px;
  color: #5d6676;
}

.hidden { display: none; }

.badge {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: #e6f4ea;
  color: #236b37;
}

.badge.neutral {
  background: #e9edf3;
  color: #566070;
}

dialog {
  width: min(720px, calc(100% - 24px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

dialog::backdrop {
  background: rgba(18, 25, 40, .55);
}

.dialog-shell {
  position: relative;
  padding: 24px;
}

.close-button {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #667080;
}

.detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-item {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 12px;
}

.detail-item strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 720px) {
  .hero { flex-direction: column; }
  .selectors { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .status { justify-self: start; }
}


.profile-card {
  margin-bottom: 14px;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.profile-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.profile-head p {
  margin: 0;
  color: #697283;
  font-size: 13px;
}

.profile-status {
  color: #697283;
  font-size: 13px;
  white-space: nowrap;
}

.profile-status.saved {
  color: #236b37;
  font-weight: 700;
}

.profile-status.dirty {
  color: #8b5a00;
  font-weight: 700;
}

.profile-name-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 220px) auto minmax(150px, 230px) auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.profile-name-row label {
  font-size: 14px;
  font-weight: 700;
}

.profile-name-row input, .profile-name-row select {
  min-height: 40px;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
}

.secondary-button {
  min-height: 40px;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  background: white;
  padding: 0 14px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .profile-head { flex-direction: column; }
  .profile-name-row { grid-template-columns: 1fr; }
}


.dynamic-constraints { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:18px; }
.dynamic-block > label { display:block; font-size:14px; font-weight:700; margin-bottom:8px; }
.add-row { display:grid; grid-template-columns:1fr auto; gap:8px; }
.add-row input { min-height:40px; border:1px solid #cfd6e2; border-radius:10px; padding:0 12px; min-width:0; }
.saved-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.saved-tag { display:inline-flex; align-items:center; gap:7px; background:#edf1f6; border-radius:999px; padding:6px 9px; font-size:13px; }
.saved-tag button { border:0; background:transparent; padding:0; font-weight:800; color:#5c6575; }
@media (max-width:720px) { .dynamic-constraints { grid-template-columns:1fr; } }


.selector-help {
  margin: -3px 0 10px;
  color: #6a7280;
  font-size: 12px;
  line-height: 1.4;
}


.saved-section {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.saved-card { padding:18px; }
.saved-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.saved-header h2 { margin:0; font-size:17px; }
.saved-list { display:grid; gap:8px; }
.saved-item { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; background:#f7f8fa; padding:10px 12px; border-radius:11px; }
.saved-item strong { display:block; font-size:14px; }
.saved-actions { display:flex; gap:10px; align-items:center; }
.secondary-button.compact { min-height:32px; padding:0 10px; font-size:12px; }
.empty-small { color:#6a7280; font-size:13px; padding:4px 0; }
@media (max-width:820px) { .saved-section { grid-template-columns:1fr; } }


.profile-selectors { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e7eaf0; }
.interactions-card { margin-top: 16px; }
.interaction-map { display: grid; gap: 10px; margin-top: 12px; }
.interaction-pair { border: 1px solid #dde2ea; border-radius: 14px; padding: 14px; background: #fafbfc; }
.interaction-pair h3 { margin: 0 0 8px; font-size: 15px; }
.interaction-pair details { margin-top: 8px; }
.interaction-pair summary { cursor: pointer; font-weight: 700; color: #33466f; }
.interaction-status { display: inline-block; border-radius: 999px; padding: 5px 8px; font-size: 12px; font-weight: 800; }
.interaction-status.official_mention { background: #fde6e7; color: #9f1d25; }
.interaction-status.no_cross_mention_found { background: #eef1f5; color: #4f596b; }
.interaction-status.information_incomplete { background: #fff1d6; color: #8b5a00; }
.interaction-evidence { margin: 8px 0 0; padding: 10px; background: white; border-left: 3px solid #cfd6e2; font-size: 13px; line-height: 1.45; }
.interaction-evidence.warning { border-left-color: #b3261e; }
.app-footer { width: min(1100px, calc(100% - 32px)); margin: -36px auto 30px; font-size: 13px; color: #687181; }
.app-footer a { color: inherit; }
.legal-page { max-width: 900px; }
.legal-page > h1 { margin-bottom: 18px; }
.legal-section { margin-bottom: 14px; line-height: 1.6; }
.legal-section h2 { margin-top: 0; font-size: 19px; }
.legal-warning { background: #fff1d6; color: #684600; border: 1px solid #f0d496; border-radius: 14px; padding: 14px; margin-bottom: 18px; line-height: 1.45; }


.favorite-button {
  color: #6a5a00;
  border: 1px solid #d7c98a;
  background: #fffaf0;
  border-radius: 10px;
  padding: 8px 12px;
}
.favorite-button:hover { background: #fff3cf; }

.hero-badges { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }


.badge.warning {
  background: #fff1d6;
  color: #8b5a00;
}

.badge.error {
  background: #fde6e7;
  color: #9f1d25;
}

.error-inline {
  display: block;
  border: 1px solid #f0c8cb;
  background: #fff6f7;
  color: #8d2028;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}


/* v0.13: interfaz más clara y accesible */
body {
  font-size: 17px;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 46px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.collapsible-card {
  padding: 0;
  overflow: hidden;
}

.section-toggle {
  width: 100%;
  border: 0;
  background: white;
  color: #172033;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 20px 22px;
  min-height: 78px;
}

.section-toggle:hover {
  background: #f7f8fa;
}

.section-toggle strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.section-toggle small {
  display: block;
  color: #606a7b;
  font-size: 14px;
  font-weight: 500;
}

.toggle-symbol {
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}

.collapsible-panel {
  border-top: 1px solid #e1e5eb;
  padding: 18px 22px 22px;
}

.collapsible-panel[hidden] {
  display: none;
}

.panel-explanation {
  color: #515b6c;
  line-height: 1.5;
  margin-bottom: 14px;
}

.history-actions {
  margin-bottom: 14px;
}

.primary-secondary-button {
  border: 0;
  border-radius: 12px;
  background: #172033;
  color: white;
  font-weight: 800;
  padding: 10px 18px;
  min-height: 48px;
}

.interaction-header {
  align-items: center;
}

.interactions-card h2 {
  line-height: 1.25;
}

.plain-warning {
  background: #fff8e8;
  border: 1px solid #ead7a0;
  border-radius: 12px;
  padding: 13px 14px;
  line-height: 1.45;
  color: #6f5200;
}

.interaction-summary {
  margin: 14px 0;
  font-weight: 700;
  color: #424b5b;
}

.medicine-summary {
  background: #f6f7f9;
  border-radius: 12px;
  padding: 13px 14px;
  margin: 10px 0 14px;
  line-height: 1.5;
}

.overall-message {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 14px;
  margin: 14px 0 20px;
  line-height: 1.45;
}

.overall-message.match_detected {
  background: #fdebed;
  border: 1px solid #efc1c5;
  color: #8b1d25;
}

.overall-message.no_match_detected {
  background: #eaf5ed;
  border: 1px solid #c5e1cc;
  color: #265d35;
}

.overall-message.information_incomplete {
  background: #fff6df;
  border: 1px solid #ead7a0;
  color: #755600;
}

.detail-section-title {
  font-size: 17px;
  margin: 0 0 10px;
}

.detail-check {
  border-radius: 12px;
  padding: 13px 14px;
  border: 1px solid #dde2ea;
}

.detail-check-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.detail-check-main span {
  font-weight: 700;
  text-align: right;
}

.detail-check.match_detected {
  border-color: #efc1c5;
  background: #fff7f7;
}

.detail-check.information_incomplete {
  border-color: #ead7a0;
  background: #fffaf0;
}

.technical-details {
  margin-top: 18px;
  border-top: 1px solid #e0e4ea;
  padding-top: 14px;
}

.technical-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #4b5668;
  padding: 8px 0;
}

.technical-details-body {
  display: grid;
  gap: 8px;
  padding: 8px 0 2px;
}

.technical-source {
  margin-top: 8px;
  color: #6a7280;
  font-size: 12px;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .interaction-header {
    align-items: stretch;
  }

  .interaction-header,
  .detail-check-main {
    flex-direction: column;
  }

  .detail-check-main span {
    text-align: left;
  }

  .primary-secondary-button {
    width: 100%;
  }
}


/* v0.14 - alergias e intolerancias organizadas */
.safety-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.safety-panel {
  border: 1px solid #d9dfe8;
  border-radius: 16px;
  background: #fafbfc;
  padding: 20px;
  min-width: 0;
}

.safety-panel-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e7ed;
}

.safety-panel-heading h3 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.25;
}

.safety-panel-heading p {
  margin: 0;
  color: #596475;
  font-size: 14px;
  line-height: 1.45;
}

.safety-number {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #172033;
  color: white;
  font-size: 17px;
  font-weight: 800;
}

.selection-summary {
  display: grid;
  gap: 3px;
  margin: 14px 0 18px;
  padding: 11px 13px;
  border: 1px solid #dfe4eb;
  border-radius: 11px;
  background: white;
  color: #596475;
  font-size: 13px;
  line-height: 1.4;
}

.selection-summary strong { color: #3d4758; }

.selection-summary.has-selection {
  border-color: #aeb9c9;
  background: #f2f5f8;
  color: #172033;
}

.safety-search-block {
  padding-bottom: 18px;
  border-bottom: 1px solid #e3e7ed;
}

.safety-search-block > label {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 800;
}

.field-help {
  margin: 0 0 10px;
  color: #667181;
  font-size: 13px;
  line-height: 1.45;
}

.safety-choice-block { padding-top: 18px; }

.safety-choice-block > h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.grouped-options {
  display: grid;
  gap: 16px;
  margin-top: 15px;
}

.option-category {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.option-category + .option-category {
  border-top: 1px solid #e6e9ee;
  padding-top: 14px;
}

.option-category h5 {
  margin: 0;
  color: #4f5a6c;
  font-size: 13px;
  font-weight: 800;
}

.option-category .chips {
  gap: 7px;
}

.option-category .chip span {
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.25;
}

.option-category .chip input:checked + span::before {
  content: "✓ ";
  font-weight: 900;
}

.direct-selection-tags:empty { display: none; }

.direct-selection-tags:not(:empty) { margin-top: 10px; }

.safety-panel .add-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 900px) {
  .safety-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .safety-panel { padding: 16px; }

  .safety-panel .add-row {
    grid-template-columns: 1fr;
  }

  .safety-panel .add-row button {
    width: 100%;
  }

  .option-category .chip {
    flex: 1 1 auto;
  }

  .option-category .chip span {
    width: 100%;
    text-align: center;
  }
}


/* v0.15 - comprobación directa de dos medicamentos */
.quick-interaction-card {
  margin-top: 18px;
}

.quick-interaction-heading h2 {
  margin: 3px 0 6px;
  font-size: 22px;
}

.quick-interaction-heading p {
  margin: 0;
  color: #596475;
  line-height: 1.5;
}

.section-kicker {
  display: inline-block;
  color: #4f5a6c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.quick-interaction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 20px;
}

.interaction-medicine-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.interaction-medicine-field input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #cfd6e2;
  padding: 0 13px;
  font-size: 15px;
}

.interaction-pair-symbol {
  align-self: center;
  margin-top: 31px;
  font-size: 28px;
  font-weight: 700;
  color: #6b7483;
}

.interaction-selected {
  min-height: 42px;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f6f7f9;
  color: #697283;
  font-size: 12px;
  line-height: 1.4;
}

.interaction-selected.selected {
  background: #edf4ef;
  color: #285d38;
}

.interaction-selected span {
  display: block;
  margin-top: 2px;
}

.quick-interaction-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.quick-interaction-actions button {
  min-width: min(100%, 320px);
}

.compact-warning {
  margin-bottom: 0;
  font-size: 13px;
}

.direct-interaction-result {
  margin-top: 18px;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #dfe3e9;
  background: #f8f9fb;
}

.direct-interaction-result.possible_interaction {
  border-color: #eabcc1;
  background: #fff5f6;
}

.direct-interaction-result.no_interaction_found {
  border-color: #bfdcc6;
  background: #f3faf5;
}

.direct-interaction-result.information_incomplete {
  border-color: #e2d09b;
  background: #fffaf0;
}

.direct-interaction-medicines {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #394355;
}

.direct-interaction-result h3 {
  margin: 12px 0 6px;
  font-size: 19px;
}

.direct-interaction-result p {
  line-height: 1.5;
}

.direct-result-caution {
  margin-bottom: 0;
  font-weight: 700;
}

.direct-interaction-evidence {
  margin-top: 14px;
}

.direct-interaction-evidence summary {
  cursor: pointer;
  font-weight: 800;
  padding: 7px 0;
}

.direct-evidence-list {
  display: grid;
  gap: 9px;
  margin-top: 7px;
}

#resultsSection {
  scroll-margin-top: 18px;
}

@media (max-width: 760px) {
  .quick-interaction-grid {
    grid-template-columns: 1fr;
  }

  .interaction-pair-symbol {
    margin: -2px 0;
    text-align: center;
  }

  .quick-interaction-actions button {
    width: 100%;
  }
}


/* v0.16 - navegación principal por apartados */
.main-tab-nav { position: sticky; top: 0; z-index: 30; margin: 0 0 18px; padding: 8px 0 10px; background: rgba(244,246,249,.96); backdrop-filter: blur(8px); }
.main-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.main-tab-button { min-height: 62px; border: 1px solid #d4dbe5; border-radius: 13px; background: white; color: #344054; padding: 9px 12px; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.main-tab-button:hover { background: #f7f8fa; border-color: #adb8c8; }
.main-tab-button[aria-selected="true"] { background: #172033; border-color: #172033; color: white; }
.main-tab-label { font-size: 16px; line-height: 1.2; font-weight: 850; }
.main-tab-description { font-size: 11px; line-height: 1.2; opacity: .78; font-weight: 500; }
.main-tab-panel { display: block; scroll-margin-top: 92px; }
.main-tab-panel[hidden] { display: none !important; }
.tab-page-heading { margin: 4px 0 16px; }
.tab-page-heading h2 { margin: 0 0 5px; font-size: clamp(24px,4vw,32px); line-height: 1.2; }
.tab-page-heading p { margin: 0; color: #5d6777; line-height: 1.5; max-width: 800px; }
#mainPanel-search .results-section { margin-top: 22px; }
@media (max-width: 760px) {
  .shell { padding-bottom: 108px; }
  .main-tab-nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 80; margin: 0; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid #dce1e8; box-shadow: 0 -10px 30px rgba(23,32,51,.10); backdrop-filter: blur(10px); }
  .main-tabs { gap: 5px; }
  .main-tab-button { min-height: 58px; border: 0; border-radius: 10px; padding: 7px 4px; text-align: center; align-items: center; }
  .main-tab-label { font-size: 12.5px; line-height: 1.12; }
  .main-tab-description { display: none; }
  .main-tab-panel { scroll-margin-top: 12px; }
  .hero { margin-bottom: 14px; }
  .app-footer { padding-bottom: 96px; }
}
@media (max-width: 410px) { .main-tab-label { font-size: 11.5px; } }


/* v0.17 - subpestañas, autoguardado y resultados vacíos */
.interaction-subtabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: 0 0 18px;
  border: 1px solid #d9dfe7;
  border-radius: 13px;
  background: #eef1f5;
}

.interaction-subtab-button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  padding: 8px 16px;
  background: transparent;
  color: #4a5567;
  font-weight: 800;
}

.interaction-subtab-button[aria-selected="true"] {
  background: white;
  color: #172033;
  box-shadow: 0 1px 4px rgba(23, 32, 51, .10);
}

.interaction-subpanel[hidden] {
  display: none !important;
}

.autosave-hint {
  margin: 8px 0 0;
  color: #617083;
  font-size: 12px;
  line-height: 1.4;
}

.results-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 190px;
  padding: 28px 20px;
  border: 1px dashed #cbd3df;
  border-radius: 15px;
  background: #fafbfc;
  color: #596475;
}

.results-empty-state[hidden] {
  display: none !important;
}

.results-empty-state h3 {
  margin: 0 0 7px;
  color: #293446;
  font-size: 19px;
}

.results-empty-state p {
  max-width: 600px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .interaction-subtabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .interaction-subtab-button {
    padding: 8px 7px;
    font-size: 13px;
  }
}


/* v0.18 - responsive/accessibility + interaction signals */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: #172033;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

input,
select,
textarea {
  max-width: 100%;
}

button,
[role="tab"],
input,
select {
  min-height: 44px;
}

.interaction-signal-label {
  margin-bottom: 7px;
  font-weight: 850;
}

.interaction-evidence.avoid_or_not_recommended,
.interaction-status.avoid_or_not_recommended {
  border-color: #d89ba2;
  background: #fff0f1;
  color: #8a1822;
}

.interaction-evidence.review,
.interaction-status.review {
  border-color: #dcc47e;
  background: #fff8e5;
  color: #6c5100;
}

.interaction-evidence.mention,
.interaction-status.mention {
  border-color: #bac6d6;
  background: #f4f7fa;
  color: #344054;
}

@media (max-width: 900px) {
  .hero {
    gap: 12px;
  }

  .hero-badges {
    flex-wrap: wrap;
  }

  .card {
    padding: 18px;
  }

  .result {
    align-items: start;
  }
}

@media (max-width: 600px) {
  input[type="search"],
  input[type="text"],
  select {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 20px, 1100px);
  }

  .card {
    border-radius: 14px;
    padding: 15px;
  }

  .search-row,
  .profile-name-row {
    grid-template-columns: 1fr;
  }

  .search-row button,
  .profile-name-row button {
    width: 100%;
  }

  dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .card,
  .safety-panel,
  .result,
  .results-empty-state {
    border-width: 2px;
  }

  .meta,
  .field-help,
  .selector-help {
    color: #3d4655;
  }
}


/* v0.19 - trazabilidad visible */
.traceability-details summary {
  font-size: 15px;
}

.traceability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 8px 0 12px;
}

.traceability-item {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #e0e5eb;
  border-radius: 10px;
  background: #f8fafc;
}

.traceability-item span {
  color: #687386;
  font-size: 12px;
}

.traceability-item strong {
  color: #2f3a4c;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.traceability-note {
  margin: 9px 0;
  color: #626d7e;
  font-size: 12px;
  line-height: 1.5;
}

.technical-id {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e6ec;
}

@media (max-width: 560px) {
  .traceability-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.20 - explicación explícita de cada comprobación */
.check-explanation-why {
  margin: 8px 0 0;
  color: #505b6d;
  font-size: 13px;
  line-height: 1.5;
}

.check-evidence-row {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr);
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(80, 91, 109, .14);
  font-size: 12px;
  line-height: 1.4;
}

.check-evidence-row span {
  color: #687386;
}

.check-evidence-row strong {
  overflow-wrap: anywhere;
}

.detail-check.match_detected .check-explanation-why {
  color: #711b23;
}

@media (max-width: 560px) {
  .check-evidence-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}


/* v0.21 - privacidad */
.privacy-controls { margin-top:22px; padding:16px; border:1px solid #dce2ea; border-radius:13px; background:#f7f9fb; }
.privacy-controls h3 { margin:0 0 5px; font-size:17px; }
.privacy-controls p { margin:0 0 12px; color:#5d6879; font-size:13px; line-height:1.5; }
.danger-outline { border-color:#c79a9f; color:#7a2730; background:white; }
.legal-page { width:min(100% - 28px,820px); margin:32px auto 64px; line-height:1.65; color:#303b4c; }
.legal-page h1 { font-size:clamp(28px,5vw,40px); line-height:1.15; }
.legal-page h2 { margin-top:28px; font-size:20px; }
.legal-lead { font-size:18px; color:#586477; }
.legal-warning { padding:12px 14px; border:1px solid #dfc582; border-radius:10px; background:#fff8e7; color:#684f0b; }
.legal-note { margin-top:34px; padding-top:16px; border-top:1px solid #e1e5eb; color:#697386; font-size:12px; }
.back-link { display:inline-block; margin-bottom:14px; font-weight:750; }


/* v0.22 - estado del perfil aplicado y estabilización */
.applied-profile-summary {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.applied-profile-summary.empty {
  border: 1px solid #dfe4eb;
  background: #f8f9fb;
  color: #637083;
}
.applied-profile-summary.active {
  border: 1px solid #b8d3c0;
  background: #f0f8f2;
  color: #285d38;
}


/* v0.24 - capa pública de producto */
.product-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 0 15px;
  border-bottom: 1px solid #e1e5eb;
}

.product-brand-small {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #172033;
  font-weight: 900;
  text-decoration: none;
}

.product-brand-small img {
  display: block;
  border-radius: 9px;
}

.product-topbar nav {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-topbar nav a {
  color: #536074;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.product-topbar nav a:hover,
.product-topbar nav a:focus-visible {
  color: #172033;
  text-decoration: underline;
}

.hero-brand-line {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 6px;
}

.hero-brand-line img {
  flex: 0 0 auto;
  border-radius: 12px;
}

.hero-brand-line h1 {
  margin: 0;
}

.public-info-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 5%, rgba(159,216,192,.25), transparent 26rem),
    #f4f6f9;
}

.public-page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 54px;
}

.public-site-header {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding: 10px 0 18px;
  border-bottom: 1px solid #dfe4eb;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  margin-right: auto;
}

.public-brand img {
  border-radius: 10px;
}

.public-site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-site-nav a {
  color: #526074;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.public-site-nav a:hover,
.public-site-nav a:focus-visible {
  color: #172033;
  text-decoration: underline;
}

.public-app-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 11px;
  background: #172033;
  color: white;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.public-content {
  padding: 52px 0 20px;
}

.public-page-hero {
  max-width: 820px;
  margin-bottom: 42px;
}

.public-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #38634f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -.025em;
}

.public-page-hero p {
  margin: 0;
  max-width: 760px;
  color: #5b6678;
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.55;
}

.public-prose-section,
.public-callout {
  max-width: 850px;
  margin: 0 0 34px;
}

.public-prose-section h2,
.public-callout h2,
.public-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 30px);
}

.public-prose-section p,
.public-callout p {
  color: #4e5a6c;
  line-height: 1.75;
}

.public-prose-section a,
.public-method-grid a {
  color: #285844;
  font-weight: 750;
}

.public-feature-grid,
.public-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 30px 0 42px;
}

.public-feature-grid article,
.public-method-grid article {
  padding: 22px;
  border: 1px solid #dde2ea;
  border-radius: 17px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 22px rgba(23,32,51,.035);
}

.public-feature-grid h3,
.public-method-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.public-feature-grid p,
.public-method-grid p {
  margin: 0;
  color: #5b6678;
  line-height: 1.6;
}

.public-method-grid p + p {
  margin-top: 10px;
}

.public-step-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-bottom: 38px;
}

.public-step-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 19px;
  border: 1px solid #dde2ea;
  border-radius: 16px;
  background: white;
}

.public-step-list article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #e4f2ec;
  color: #285844;
  font-weight: 900;
}

.public-step-list h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.public-step-list p {
  margin: 0;
  color: #5b6678;
  line-height: 1.6;
}

.public-callout {
  padding: 22px 24px;
  border-left: 5px solid #9fd8c0;
  border-radius: 0 15px 15px 0;
  background: #edf6f2;
}

.public-cta {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 42px;
  padding: 24px;
  border-radius: 18px;
  background: #172033;
  color: white;
}

.public-cta h2 {
  color: white;
}

.public-cta p {
  margin: 0;
  color: #d8deea;
}

.public-cta a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 12px;
  background: white;
  color: #172033;
  font-weight: 900;
  text-decoration: none;
}

.public-definition-list {
  display: grid;
  gap: 12px;
}

.public-definition-list > div {
  padding: 15px 17px;
  border: 1px solid #dde2ea;
  border-radius: 13px;
  background: white;
}

.public-definition-list dt {
  font-weight: 900;
}

.public-definition-list dd {
  margin: 5px 0 0;
  color: #596577;
  line-height: 1.55;
}

.public-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #dfe4eb;
  color: #6a7484;
  font-size: 12px;
}

.public-page-footer > div {
  display: grid;
  gap: 3px;
}

.public-page-footer strong {
  color: #172033;
}

.public-page-footer nav {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.public-page-footer a {
  color: #596678;
}

@media (max-width: 760px) {
  .product-topbar {
    align-items: flex-start;
  }

  .product-topbar nav {
    gap: 9px 13px;
  }

  .public-site-header {
    flex-wrap: wrap;
  }

  .public-site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .public-site-nav a {
    white-space: nowrap;
  }

  .public-feature-grid,
  .public-method-grid {
    grid-template-columns: 1fr;
  }

  .public-cta,
  .public-page-footer {
    flex-direction: column;
  }

  .public-page-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .product-topbar {
    flex-direction: column;
  }

  .product-topbar nav {
    justify-content: flex-start;
  }

  .public-app-link {
    width: 100%;
    justify-content: center;
  }
}


/* v0.25 - PWA y acceso beta */
.product-utility-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.connection-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.connection-status.online {
  background: #e6f3ed;
  color: #285844;
}

.connection-status.offline {
  background: #fbe9e9;
  color: #8f2d31;
}

.product-install-button {
  min-height: 34px;
  border: 1px solid #cdd5df;
  border-radius: 9px;
  padding: 0 10px;
  background: white;
  color: #172033;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.account-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding-left: 8px;
  border-left: 1px solid #d8dee7;
  color: #596577;
  font-size: 12px;
}

.account-area[hidden] {
  display: none;
}

.account-area a {
  color: #285844;
  font-weight: 800;
}

.account-area button {
  min-height: 32px;
  border: 1px solid #d5dbe4;
  border-radius: 8px;
  background: #fff;
  padding: 0 9px;
  color: #4d596b;
  font-weight: 750;
  cursor: pointer;
}

.pwa-profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.pwa-profile-card h2 {
  margin: 0 0 6px;
}

.pwa-profile-card p {
  margin: 0;
  color: #5e697b;
  line-height: 1.55;
}

.offline-body,
.login-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 85% 8%, rgba(159,216,192,.25), transparent 26rem),
    #f4f6f9;
}

.offline-card,
.login-card {
  width: min(620px, calc(100% - 32px));
  box-sizing: border-box;
  padding: clamp(24px, 6vw, 46px);
  border: 1px solid #dde3ea;
  border-radius: 22px;
  background: white;
  box-shadow: 0 20px 60px rgba(23,32,51,.08);
}

.offline-card h1,
.login-card h1 {
  margin: 7px 0 12px;
  font-size: clamp(28px, 6vw, 42px);
}

.offline-card p,
.login-intro,
.login-privacy {
  color: #5a6678;
  line-height: 1.65;
}

.offline-card button,
.login-card form button {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  padding: 0 18px;
  background: #172033;
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.login-shell {
  width: 100%;
  display: grid;
  place-items: center;
}

.login-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #172033;
  text-decoration: none;
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 22px;
}

.login-brand img {
  border-radius: 13px;
}

.login-card form {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.login-card form label {
  margin-top: 8px;
  font-weight: 800;
  font-size: 13px;
}

.login-card form input {
  min-height: 46px;
  border: 1px solid #cfd7e2;
  border-radius: 11px;
  padding: 0 12px;
  font-size: 16px;
}

.login-card form button {
  margin-top: 12px;
}

.login-message {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13px;
}

.login-message.error {
  color: #9f1d25;
  font-weight: 800;
}

.login-privacy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e1e6ec;
  font-size: 12px;
}

@media (max-width: 820px) {
  .product-topbar {
    flex-wrap: wrap;
  }

  .product-utility-actions {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .pwa-profile-card {
    flex-direction: column;
    align-items: stretch;
  }

  .account-area {
    width: 100%;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid #d8dee7;
  }
}


/* v0.25.1 — refinamiento visual Aclaria */
:root {
  --aclaria-ink: #172033;
  --aclaria-teal: #1f8f79;
  --aclaria-teal-soft: #e5f4ef;
  --aclaria-blue: #2f80c9;
  --aclaria-blue-soft: #e8f2fb;
  --aclaria-violet: #7256b8;
  --aclaria-violet-soft: #eee9fb;
  --aclaria-amber: #c9861c;
  --aclaria-amber-soft: #fff2da;
  --aclaria-rose: #b84f61;
  --aclaria-rose-soft: #fbe9ed;
  --aclaria-border: #dbe3ec;
  --aclaria-shadow: 0 14px 34px rgba(23,32,51,.08);
}

body {
  background:
    radial-gradient(circle at 8% 2%, rgba(47,128,201,.10), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(31,143,121,.10), transparent 30rem),
    linear-gradient(180deg, #f9fbff 0%, #f4f7fb 55%, #f7f9fc 100%);
  color: var(--aclaria-ink);
}

.product-topbar {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 14px;
  border: 1px solid var(--aclaria-border);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255,255,255,.98), rgba(244,249,255,.96));
  box-shadow: 0 6px 20px rgba(23,32,51,.06);
}

.product-topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--aclaria-blue), var(--aclaria-teal), var(--aclaria-violet));
}

.product-topbar nav a {
  padding: 7px 9px;
  border-radius: 9px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.product-topbar nav a:hover,
.product-topbar nav a:focus-visible {
  background: var(--aclaria-blue-soft);
  color: #245e95;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #d3dfeb;
  background:
    linear-gradient(135deg, rgba(255,255,255,.99), rgba(236,247,244,.98) 56%, rgba(238,244,252,.98));
  box-shadow: var(--aclaria-shadow);
}

.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -58px;
  top: -80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47,128,201,.18), rgba(114,86,184,.12));
  pointer-events: none;
}

.hero-brand-line img {
  box-shadow: 0 8px 22px rgba(23,32,51,.16);
}

.main-nav {
  gap: 9px;
  padding: 7px;
  border: 1px solid var(--aclaria-border);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 5px 18px rgba(23,32,51,.055);
}

.main-tab {
  border-radius: 11px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.main-tab:hover,
.main-tab:focus-visible {
  background: #eef4fb;
  transform: translateY(-1px);
}

.main-tab.active,
.main-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #244b82, #356e9f);
  color: white;
  box-shadow: 0 7px 17px rgba(47,128,201,.24);
}

.card,
.result-card,
.profile-panel,
.interaction-card,
.favorite-card {
  border-color: var(--aclaria-border);
  background: rgba(255,255,255,.97);
  box-shadow: 0 6px 19px rgba(23,32,51,.055);
}

#mainPanel-search .card:first-of-type { border-top: 4px solid var(--aclaria-blue); }
#mainPanel-profile .card:nth-of-type(1) { border-top: 4px solid var(--aclaria-violet); }
#mainPanel-profile .card:nth-of-type(2) { border-top: 4px solid var(--aclaria-teal); }
#mainPanel-medications .card:first-of-type,
#mainPanel-interactions .card:first-of-type { border-top: 4px solid var(--aclaria-teal); }

input,
select,
textarea {
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--aclaria-blue);
  box-shadow: 0 0 0 4px rgba(47,128,201,.12);
}

.search-row button,
#directInteractionButton,
#betaLoginButton {
  border: 0;
  background: linear-gradient(135deg, #245f9e, #1f8f79);
  color: white;
  box-shadow: 0 8px 18px rgba(35,106,137,.22);
}

.search-row button:hover,
#directInteractionButton:hover,
#betaLoginButton:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.secondary-button {
  border-color: #c8d3df;
  background: linear-gradient(180deg, #fff, #f4f7fa);
}

.chip.selected,
.option-chip.selected,
.group-chip.selected,
.chip[aria-pressed="true"],
.option-chip[aria-pressed="true"],
.group-chip[aria-pressed="true"] {
  border-color: #6bb9a6;
  background: var(--aclaria-teal-soft);
  color: #205c50;
}

.applied-profile-summary.active {
  border-color: #bddfd4;
  background: linear-gradient(135deg, #e8f6f1, #eef8f6);
  color: #245d50;
  box-shadow: inset 4px 0 0 var(--aclaria-teal);
}

.status-badge,
.badge {
  border-radius: 999px;
  font-weight: 850;
}

.status-badge.match-detected,
.badge.danger,
.badge.review {
  background: var(--aclaria-rose-soft);
  color: #8f3042;
  border-color: #ecc2ca;
}

.status-badge.no-match-detected,
.badge.success {
  background: var(--aclaria-teal-soft);
  color: #286253;
  border-color: #b9ddcf;
}

.status-badge.information-incomplete,
.badge.warning {
  background: var(--aclaria-amber-soft);
  color: #815713;
  border-color: #ead19f;
}

.interaction-subtabs {
  padding: 6px;
  border-radius: 13px;
  background: #f0f4f8;
}

.interaction-subtab.active,
.interaction-subtab[aria-selected="true"] {
  background: linear-gradient(135deg, #6951a9, #7d62c1);
  color: white;
  box-shadow: 0 5px 13px rgba(114,86,184,.18);
}

.connection-status.online {
  border: 1px solid #bee1d5;
  background: linear-gradient(180deg, #edf9f5, #e2f4ed);
}

.connection-status.offline {
  border: 1px solid #efc2c9;
  background: linear-gradient(180deg, #fff2f4, #fbe8eb);
}

.product-install-button {
  border-color: #c9c1e9;
  background: var(--aclaria-violet-soft);
  color: #5d469a;
}

.login-body {
  background:
    radial-gradient(circle at 15% 13%, rgba(47,128,201,.20), transparent 26rem),
    radial-gradient(circle at 88% 80%, rgba(114,86,184,.16), transparent 28rem),
    radial-gradient(circle at 72% 12%, rgba(31,143,121,.15), transparent 22rem),
    #f5f7fb;
}

.login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #cdd9e6;
  box-shadow: 0 28px 70px rgba(23,32,51,.14);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--aclaria-blue), var(--aclaria-teal), var(--aclaria-violet), var(--aclaria-amber));
}

.login-brand span {
  background: linear-gradient(90deg, #1f557f, #1f8f79, #7256b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.public-page-hero::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aclaria-blue), var(--aclaria-teal), var(--aclaria-violet));
}

.public-feature-grid article:nth-child(4n+1),
.public-method-grid article:nth-child(4n+1) { border-top: 4px solid var(--aclaria-blue); }
.public-feature-grid article:nth-child(4n+2),
.public-method-grid article:nth-child(4n+2) { border-top: 4px solid var(--aclaria-teal); }
.public-feature-grid article:nth-child(4n+3),
.public-method-grid article:nth-child(4n+3) { border-top: 4px solid var(--aclaria-violet); }
.public-feature-grid article:nth-child(4n+4),
.public-method-grid article:nth-child(4n+4) { border-top: 4px solid var(--aclaria-amber); }

.public-cta {
  background: linear-gradient(125deg, #172033 0%, #234b77 52%, #276b65 100%);
  box-shadow: 0 16px 34px rgba(23,32,51,.16);
}

.admin-stat:nth-child(4n+1) { border-top: 4px solid var(--aclaria-blue); }
.admin-stat:nth-child(4n+2) { border-top: 4px solid var(--aclaria-teal); }
.admin-stat:nth-child(4n+3) { border-top: 4px solid var(--aclaria-violet); }
.admin-stat:nth-child(4n+4) { border-top: 4px solid var(--aclaria-amber); }

@media (prefers-reduced-motion: reduce) {
  .product-topbar nav a,
  .main-tab,
  button,
  .chip,
  .option-chip,
  .group-chip {
    transition: none !important;
    transform: none !important;
  }
}
