/* Overflow beta layer. Every rule is scoped to html.beta, so the brand page is untouched
   unless beta.js switches beta mode on. */

/* ---------- the phone fills the screen ---------- */
html.beta,html.beta body{height:100%;background:#0B0B0B;overflow:hidden;overscroll-behavior:none}
html.beta .brand,html.beta .demo,html.beta .note{display:none}
html.beta .wrap{display:block;max-width:none;margin:0;padding:0}
html.beta .stage{position:static;display:flex;flex-direction:column;align-items:center;gap:0;height:100vh;height:100dvh}
html.beta .phone{flex:1 1 auto;width:100%;max-width:none;height:auto;min-height:0;border:0;border-radius:0;-webkit-tap-highlight-color:transparent}
/* no system "save image / copy" bubble when a tester presses and holds */
html.beta .phone,html.beta .phone *{-webkit-touch-callout:none}
html.beta .phone input,html.beta .phone textarea{-webkit-user-select:text;user-select:text}

/* on a laptop, keep a phone-sized frame in the middle */
@media (min-width:521px) and (min-height:600px){
  html.beta .stage{padding:12px 0 16px}
  html.beta .phone{max-width:390px;border:1px solid #2B2B2B;border-radius:38px}
  html.beta .ovf-bar{max-width:390px}
}

/* app mode (the standalone demo): the app is the whole viewport at every width, no phone frame */
html.app .stage{padding:0}
html.app .phone{max-width:none;border:0;border-radius:0}
html.app .ovf-bar{max-width:none}

/* ---------- sample-content label ---------- */
/* the bar above the phone carries the label here, so the prototype's own chip on the video steps aside */
html.beta .ph{display:none}
.ovf-bar{flex:none;width:100%;padding:5px 12px 6px;font-family:var(--body);font-size:11px;font-weight:600;line-height:1.3;letter-spacing:.2px;color:#A6A6A6;background:#0B0B0B;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- cards (note card and first-run card) ---------- */
.ovf-scrim{position:absolute;inset:0;z-index:28;background:rgba(0,0,0,.6)}
.ovf-scrim[hidden],.ovf-pin[hidden],.ovf-card[hidden]{display:none}
.ovf-pin{position:absolute;z-index:29;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;border:2px solid #FFFFFF;background:rgba(255,255,255,.25);pointer-events:none}
/* pinned to the top so the on-screen keyboard never covers it */
.ovf-card{position:absolute;z-index:30;left:12px;right:12px;top:12px;max-height:calc(100% - 24px);overflow-y:auto;padding:18px 16px 16px;border-radius:22px;background:#FFFFFF;color:#0B0B0B;color-scheme:light;font-family:var(--body);font-size:15px;line-height:1.45;display:flex;flex-direction:column;gap:12px;-webkit-user-select:text;user-select:text}
.ovf-card h2{margin:0;font-family:var(--display);font-weight:900;font-size:30px;line-height:1;text-transform:uppercase}
.ovf-card p{margin:0;font-size:14px;color:#3A3A3A}
.ovf-card label{font-size:13px;font-weight:700}
.ovf-ctx{font-size:13px !important;color:#5E5E5E !important;overflow-wrap:anywhere}
.ovf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ovf-tags{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ovf-tags button{min-height:46px;border-radius:12px;border:2px solid #E2E2E2;background:#FFFFFF;color:#0B0B0B;font-family:var(--display);font-weight:700;font-size:18px;letter-spacing:.5px;text-transform:uppercase}
.ovf-tags button[aria-pressed="true"]{border-color:#0B0B0B;background:#0B0B0B;color:#FFFFFF}
.ovf-card textarea,.ovf-card input{width:100%;border-radius:14px;border:1px solid #C9C9C9;background:#F4F4F4;color:#0B0B0B;font:inherit;font-size:16px;padding:12px}  /* 16px stops iOS zooming on focus */
.ovf-card textarea{resize:none;min-height:88px}
.ovf-card input{height:48px}
.ovf-err{min-height:0;font-size:13px !important;font-weight:600;color:#0B0B0B !important}
.ovf-err:empty{display:none}
.ovf-row{display:flex;gap:8px}
.ovf-solid,.ovf-ghost{flex:1;min-height:50px;border-radius:14px;border:2px solid #0B0B0B;font-family:var(--display);font-weight:900;font-size:20px;letter-spacing:.6px;text-transform:uppercase}
.ovf-solid{background:#0B0B0B;color:#FFFFFF}
.ovf-ghost{background:#FFFFFF;color:#0B0B0B}
.ovf-card :focus-visible{outline:2px solid #0B0B0B;outline-offset:2px}
.ovf-fb.ovf-done>*:not(h2){display:none}
.ovf-intro{top:50%;transform:translateY(-50%)}
