/* Shared by all directions. Part 1 is the fixed mockup harness. Part 2 is product plumbing:
   which region shows in which state, with no look of its own. Each a/b/c.css sets its own
   tokens and places and styles the product's regions. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #d9d6d0; font-family: system-ui, sans-serif; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

/* ===== 1. Harness (fixed) ===== */

/* mockup controls: clearly not part of the design */
.mock-controls { position: sticky; top: 0; z-index: 100; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 16px; background: #1b1b1b; color: #eee; font: 12px/1.2 ui-monospace, Menlo, monospace; }
.mock-controls strong { font-weight: 600; margin-right: 6px; }
.mock-controls .seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: #2c2c2c; border-radius: 8px; padding: 2px; }
.mock-controls button { border: 0; background: transparent; color: #ccc; padding: 6px 10px; border-radius: 6px; font: inherit; }
.mock-controls button:hover { background: #3a3a3a; color: #fff; }
.mock-controls button.on { background: #f2f2f2; color: #111; }
.mock-controls .others { margin-left: auto; }
.mock-controls a { color: #9fd0ff; }
.stage { display: grid; place-items: center; padding: 28px 16px 48px; min-height: calc(100vh - 46px); }
@media (max-width: 700px) { .stage { padding: 12px 0 24px; } }

/* device frame */
.device { position: relative; overflow: hidden; width: min(1240px, 100%); height: min(780px, calc(100vh - 120px)); min-height: 560px; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.08); }
.device.vp-phone { width: min(390px, calc(100% - 24px)); height: min(800px, calc(100vh - 80px)); border-radius: 44px; padding-top: 44px; padding-bottom: 16px; /* status bar and home indicator */ box-shadow: 0 30px 80px -20px rgba(0,0,0,.45), 0 0 0 10px #161616, 0 0 0 11px #333; }

/* toast */
.toast { position: absolute; z-index: 40; left: 50%; top: 16px; transform: translate(-50%, -30px); opacity: 0; pointer-events: none; transition: .35s cubic-bezier(.2,.8,.2,1); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.vp-phone .toast { top: 52px; white-space: normal; width: max-content; max-width: calc(100% - 40px); text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== 2. Product plumbing (no look) =====
   Which region is on screen in which state. Everything visual is in a.css, b.css and c.css. */
.app { position: relative; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.view { flex: 1; min-height: 0; overflow: auto; }
.device[data-view=home] .board, .device[data-view=board] .home { display: none; }
.net:empty, .dialog:empty { display: none; }
.scrim { display: none; position: absolute; inset: 0; z-index: 20; }
.dialog { position: absolute; z-index: 21; }
.device[data-dialog] .scrim { display: block; }
/* :where() keeps these resets at zero specificity, so any rule in a skin wins. */
:where(.device h1, .device h2, .device p, .device ol) { margin: 0; }
:where(.device button) { color: inherit; }
