/* Scoped styles for the progressive mobile companion. */
.mc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #b4e2d0;
  border-radius: 18px;
  background: linear-gradient(120deg, #e6f7ef 0%, #f8fcfa 58%, #edf7f5 100%);
  color: #17372f;
  box-shadow: 0 8px 24px rgb(28 88 70 / .08);
}
.mc-copy h2, .mc-dialog h2 { margin: 2px 0 5px; font-size: 1.28rem; }
.mc-copy p { margin: 0; color: #45645b; font-size: .9rem; }
.mc-eyebrow { color: #27775e; font-size: .69rem; font-weight: 800; letter-spacing: .12em; }
.mc-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.mc-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 9px 15px; border: 1px solid #a9d7c5; border-radius: 999px;
  background: #fff; color: #174938; font: 650 .88rem var(--font); cursor: pointer;
}
.mc-button:hover { background: #f1fbf6; }
.mc-button-primary { background: #1d7155; color: #fff; border-color: #1d7155; }
.mc-button-primary:hover { background: #155a43; }
.mc-status { grid-column: 1 / -1; min-height: 0; margin: -8px 0 0; color: #45645b; font-size: .82rem; }
.mc-status:empty { display: none; }
.mc-dialog {
  width: min(560px, calc(100% - 24px)); max-height: min(88vh, 820px); overflow: auto;
  padding: 22px; border: 1px solid #c9e4d9; border-radius: 20px; background: #f8fcfa; color: #17372f;
  box-shadow: 0 20px 70px rgb(0 0 0 / .28);
}
.mc-dialog::backdrop { background: rgb(9 25 21 / .66); backdrop-filter: blur(3px); }
.mc-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.mc-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e5f3ec; color: #174938; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.mc-intro, .mc-subtle, .mc-privacy { color: #526b62; font-size: .85rem; }
.mc-dialog > .mc-button { margin: 2px 0 0; }
.mc-hydration, .mc-supplements { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d8e9e1; }
.mc-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.mc-check input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: #1d7155; }
.mc-check span { display: grid; gap: 2px; }
.mc-check small { color: #526b62; font-size: .82rem; }
.mc-field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; color: #28483e; font-size: .86rem; font-weight: 650; }
.mc-field input, .mc-field select { min-height: 42px; padding: 9px 11px; border: 1px solid #b9d5c9; border-radius: 10px; background: #fff; color: #17372f; font: 1rem var(--font); }
.mc-dialog h3 { margin: 0 0 4px; font-size: 1rem; }
.mc-subtle { margin-bottom: 10px; }
.mc-add-form { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: end; }
.mc-add-form .mc-field { margin: 0; }
.mc-add-form .mc-button { margin-bottom: 0; }
.mc-reminder-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }
.mc-reminder-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #d8e9e1; border-radius: 11px; background: #fff; }
.mc-reminder-list li > span { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 12px; }
.mc-reminder-list time { color: #526b62; font-variant-numeric: tabular-nums; }
.mc-remove { border: 0; background: transparent; color: #8b3b36; text-decoration: underline; font: 600 .8rem var(--font); cursor: pointer; }
.mc-empty { padding: 12px; border: 1px dashed #b9d5c9; border-radius: 11px; color: #526b62; font-size: .85rem; }
.mc-privacy { margin: 18px 0 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mc-panel, :root:not([data-theme="light"]) .mc-dialog { background: linear-gradient(130deg, #172f29, #1d2623); color: #e4f5ed; border-color: #386754; }
  :root:not([data-theme="light"]) .mc-copy p, :root:not([data-theme="light"]) .mc-intro,
  :root:not([data-theme="light"]) .mc-subtle, :root:not([data-theme="light"]) .mc-privacy,
  :root:not([data-theme="light"]) .mc-check small, :root:not([data-theme="light"]) .mc-reminder-list time { color: #b5cec3; }
  :root:not([data-theme="light"]) .mc-eyebrow { color: #82d1af; }
  :root:not([data-theme="light"]) .mc-button, :root:not([data-theme="light"]) .mc-reminder-list li { background: #243c33; color: #e4f5ed; border-color: #426858; }
  :root:not([data-theme="light"]) .mc-button-primary { background: #4eaa82; color: #10251c; border-color: #4eaa82; }
  :root:not([data-theme="light"]) .mc-field { color: #d3e9df; }
  :root:not([data-theme="light"]) .mc-field input, :root:not([data-theme="light"]) .mc-field select { background: #172b24; color: #e4f5ed; border-color: #426858; }
  :root:not([data-theme="light"]) .mc-empty { color: #b5cec3; border-color: #426858; }
}
:root[data-theme="dark"] .mc-panel, :root[data-theme="dark"] .mc-dialog { background: linear-gradient(130deg, #172f29, #1d2623); color: #e4f5ed; border-color: #386754; }
:root[data-theme="dark"] .mc-copy p, :root[data-theme="dark"] .mc-intro, :root[data-theme="dark"] .mc-subtle,
:root[data-theme="dark"] .mc-privacy, :root[data-theme="dark"] .mc-check small, :root[data-theme="dark"] .mc-reminder-list time { color: #b5cec3; }
:root[data-theme="dark"] .mc-eyebrow { color: #82d1af; }
:root[data-theme="dark"] .mc-button, :root[data-theme="dark"] .mc-reminder-list li { background: #243c33; color: #e4f5ed; border-color: #426858; }
:root[data-theme="dark"] .mc-button-primary { background: #4eaa82; color: #10251c; border-color: #4eaa82; }
:root[data-theme="dark"] .mc-field { color: #d3e9df; }
:root[data-theme="dark"] .mc-field input, :root[data-theme="dark"] .mc-field select { background: #172b24; color: #e4f5ed; border-color: #426858; }
:root[data-theme="dark"] .mc-empty { color: #b5cec3; border-color: #426858; }
@media (max-width: 560px) {
  .mc-panel { grid-template-columns: 1fr; padding: 17px; }
  .mc-actions { justify-content: flex-start; }
  .mc-actions .mc-button { flex: 1; }
  .mc-add-form { grid-template-columns: 1fr 110px; }
  .mc-add-form .mc-button { grid-column: 1 / -1; }
  .mc-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .mc-dialog::backdrop { backdrop-filter: none; } }
