/* medlearn.css — learned medicines (28-Nov-2026, Part B; medlearn.js): the "Did you mean …?" line, the "New — added" note, the My medicines tab.
   U15: every rule with a background names its text colour too, light and dark. UX-M1: 44 px taps at <= 1024 px. */
.mlnote { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: #fff7e0; color: #4a3a00; border: 1px solid #e3c766; }
.mltoast { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 640px); display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 14px; border-radius: 10px; background: #1f2a37; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.mltoast[hidden], .mlnote[hidden] { display: none; }
.mltoast .mllink { color: #cfe3ff; background: transparent; }
.mltoast .err { color: #ffd2d2; background: transparent; }
.mlbtn { background: #1f5fbf; color: #fff; border: 1px solid transparent; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.mlbtn.ghost { background: #fff; color: #1f2a37; border-color: #b8c2cc; }
.mlbtn:hover, .mlbtn:focus-visible { background: #174ea6; color: #fff; }
.mlbtn.ghost:hover, .mlbtn.ghost:focus-visible { background: #eef2f6; color: #1f2a37; }
.rxmedtag { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #eef2f6; color: #3b4a5a; margin-left: 4px; }
.mlpage .mltable { overflow-x: auto; }
.mlpage table { border-collapse: collapse; width: 100%; }
.mlpage th, .mlpage td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3e8ee; vertical-align: top; }
.mlpage .mlhid li { margin: 4px 0; }
.mlpage #mlren { min-width: 12em; }
@media (max-width: 1024px) { .mlbtn { min-height: 44px; min-width: 44px; margin: 4px 0; } .mltoast .mllink { display: inline-block; padding: 12px 4px; } }
@media (prefers-color-scheme: dark) {
  .mlnote { background: #3a3000; color: #fff1c2; border-color: #8a7420; }
  .mlbtn.ghost { background: #1f2a37; color: #e8eef5; border-color: #4a5a6a; }
  .mlbtn.ghost:hover, .mlbtn.ghost:focus-visible { background: #2c3a4a; color: #fff; }
  .rxmedtag { background: #2c3a4a; color: #dbe4ee; }
  .mlpage th, .mlpage td { border-color: #33414f; }
}
