/* Portal profesional: reutiliza el lenguaje visual del panel administrativo
   (../admin/admin.css debe estar publicado junto a /pro/) y añade lo propio. */
@import url('../admin/admin.css');

.days { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.day { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.day-head strong { font-size: .95rem; }
.day-head strong::first-letter { text-transform: uppercase; }
.day-empty { color: var(--muted); font-size: .85rem; }
.meal { margin: 8px 0 0; }
.meal h4 { margin: 0 0 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: .86rem; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.entry:last-child { border-bottom: 0; }
.entry .macros { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.micros { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bar-line { display: grid; grid-template-columns: 100px 1fr 180px; gap: 8px; align-items: center; font-size: .8rem; }
.bar-line .dist-bar > span.over { background: var(--err); }
.invite { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--orange-soft); }
.invite-code { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; color: var(--orange-dark); }
.notes { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notes li { border-left: 3px solid var(--orange); padding: 4px 12px; font-size: .88rem; white-space: pre-wrap; }
.notes .meta { display: block; color: var(--muted); font-size: .76rem; }
.trend-down { color: var(--ok); }
.trend-up { color: var(--warn); }

.steps { margin: 0 0 4px; padding-left: 20px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.who strong { word-break: break-all; }
#view-denied h1 { font-size: 1.3rem; margin: 4px 0 0; }
#view-denied textarea { width: 100%; resize: vertical; font: inherit; }
#request-form { display: flex; flex-direction: column; gap: 10px; }
#request-done { margin: 0; line-height: 1.5; }

@media (max-width: 900px) {
  .bar-line { grid-template-columns: 84px 1fr 130px; }
  #diary-form { width: 100%; }
}

/* Selector de idioma ES | EN */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: .8rem; color: var(--muted); }
.lang-switch button { background: none; border: 0; padding: 4px 6px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 6px; }
.lang-switch button:hover { color: var(--orange-dark); }
.lang-switch button[aria-current] { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.lang-host { display: flex; justify-content: flex-end; margin: -6px -6px -10px 0; }
