/* public/owner.css: what the 13 standalone owner pages (accounts, payments, onboarding-admin,
   instagram-setup, tn-*, winning-collect, inspiration-collect, format-refs, video-backfill,
   genjutsu-test, reels) share. They used to carry their own dark palette (#090B12); they now
   read the app tokens, so light and dark follow the account menu like /app and /admin.
   Each page keeps its own layout in its inline <style>. Design audit, batch 7.

   styles.css comes in as a cascade layer for its tokens, keyframes and reduced-motion rule
   only: its class rules (.card, .run, .steps, .msg...) share names with these pages, so
   everything it would set inside <main> is undone (layer base). Load this file before the page's
   inline <style>. */
@import url('/styles.css') layer(app);
@layer app, base;

/* back to the browser defaults inside <main>, as before this file existed; the page's
   unlayered inline rules win over both layers, whatever their specificity */
@layer base { main, main * { all: revert; } }

/* styles.css locks the app shell to the viewport; these are plain scrolling pages. */
html, body { height: auto; }
body { min-height: 100vh; overflow: auto; }
a { color: var(--accent-ink); }

/* the same press and focus as the app's buttons */
main button { transition: transform var(--dur-press) var(--ease-out), filter var(--dur-1) ease, background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease; }
main button:active:not(:disabled) { transform: scale(.97); }
main button:focus-visible, main a:focus-visible, main input:focus-visible, main select:focus-visible, main textarea:focus-visible { outline: none; box-shadow: var(--focus); }

/* a message card appears instead of jumping in */
#msg:not([hidden]) { animation: mo-rise var(--dur-2) var(--spring) both; }

/* in-page confirm (owner.mjs ask), in place of the browser's grey box */
.op-dlg {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg);
}
.op-dlg::backdrop { background: var(--scrim); }
.op-dlg[open] { animation: mo-pop-in var(--dur-3) var(--spring) both; }
.op-dlg[open]::backdrop { animation: mo-fade-in var(--dur-1) ease both; }
.op-dlg.is-leaving { animation: mo-pop-out var(--dur-1) var(--ease-out) forwards; }
.op-dlg.is-leaving::backdrop { animation: mo-fade-out var(--dur-1) ease forwards; }
.op-dlg form { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); margin: 0; }
.op-dlg p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.op-dlg-foot { display: flex; justify-content: flex-end; gap: var(--s2); }
.op-dlg-foot button {
  min-height: 38px; padding: 8px 16px; border-radius: var(--r-sm); font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-2); background: transparent; color: var(--text);
  transition: transform var(--dur-press) var(--ease-out), filter var(--dur-1) ease;
}
.op-dlg-foot button:active { transform: scale(.97); }
.op-dlg-foot button:focus-visible { outline: none; box-shadow: var(--focus); }
.op-dlg-foot .is-ok { border-color: var(--accent-btn); background: var(--accent-btn); color: var(--accent-fg); }
.op-dlg-foot .is-ok.is-danger { border-color: var(--danger); background: var(--danger); color: var(--danger-fg); }
