/* Rules only the single-page front end needs. Everything else is style.css, a copy of meal-planner-backend's
   src/meal_planner/static/style.css (the old app's). */
:root { --warn: #a66300; --warn-soft: #fdf1da; }
@media (prefers-color-scheme: dark) {
  :root { --warn: #f2b84b; --warn-soft: #3a2c12; }
}
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.sign-out {
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 12px;
  font: inherit;
  cursor: pointer;
}
.sign-out:hover { color: var(--text); }
/* The writer status takes the space before Sign out; with nothing to say, Sign out takes it. */
.writer-status[hidden] + .sign-out { margin-left: auto; }
.writer-status + .sign-out { margin-left: 0; }
/* A recipe's notes, edited on its page. */
.notes-form { display: flex; flex-direction: column; gap: 8px; }
.notes-form textarea { width: 100%; resize: vertical; }
/* A dish photo's ✕, over its corner (the old page's was a form). */
.dish-photo .photo-actions { position: absolute; top: 6px; right: 6px; }
.dish-photo > p { margin: 0; padding: 12px; border: 1px dashed var(--border); border-radius: 10px; aspect-ratio: 4 / 3; }
/* Cook mode fills the screen under the banners (the old page had none above it): the screen is a column, and the cook
   screen takes what's left. */
body.duo-screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
body.duo-screen main { flex: 1; min-height: 0; width: 100%; }
body.duo-screen main > div { height: 100%; display: flex; flex-direction: column; }
body.duo-screen .duo-app { flex: 1; min-height: 0; height: auto; }
/* For screen readers only (a timer's "Timer done"). */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
                   white-space: nowrap; border: 0; }
/* A use-soon item whose change went through, until the list is drawn again. */
.use-list li.leaving { opacity: 0.5; }
/* A recent grocery list being deleted, until the list is drawn again. */
.rows li.leaving { opacity: 0.5; }
/* The in-store list's title, on paper only (the page's own h1 is in the cart bar). */
.print-title { margin: 0 0 8px; }
/* busy.js's overlay while Claude works: it covers the page (which is inert meanwhile), with a panel in the middle. */
.busy-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
                padding: 16px; background: rgba(0, 0, 0, 0.45); }
.busy-panel { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
              padding: 24px 28px; max-width: 420px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.busy-panel .busy-message { font-weight: 600; margin: 12px 0 4px; }
.busy-panel p { margin: 4px 0; }
/* The header stays above it and usable (busy.js). */
body.busy-covered .topbar { position: relative; z-index: 1001; }
