html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #0b102a;
    color: #f5f6f9;
    font-family: "DM Sans", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* A booth screen is not a document: nothing here should rubber-band or pinch-zoom under a
   visitor's thumb. */
body {
    overscroll-behavior: none;
    touch-action: manipulation;
}

#app { height: 100%; }

.startup-splash { position:fixed; inset:0; z-index:10000; display:grid; place-content:center; justify-items:center; gap:11px; overflow:hidden; background:#0b102a; color:#fff; text-align:center; font-family:"DM Sans",system-ui,sans-serif; }
.startup-splash__glow { position:absolute; width:min(72vw,720px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,#5068ff38 0%,#24377b1f 38%,transparent 70%); filter:blur(8px); animation:splash-breathe 2.2s ease-in-out infinite alternate; }
.startup-splash img { position:relative; width:74px; height:74px; filter:drop-shadow(0 18px 34px #586dff50); }
.startup-splash strong { position:relative; margin-top:8px; font-size:clamp(24px,4vw,38px); font-weight:800; letter-spacing:-.035em; }
.startup-splash__corevar { display:inline-flex; font-family:"Courier New",ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:-.075em!important; }
.startup-splash__corevar em { color:#9aa6ff; font-style:normal; }
.startup-splash--leaving { opacity:0; transition:opacity .18s ease-out; }
@keyframes splash-breathe { from { opacity:.72; transform:scale(.96); } to { opacity:1; transform:scale(1.04); } }
@media (prefers-reduced-motion:reduce) { .startup-splash img,.startup-splash__glow { animation:none; } }

/* ---------- Screen role ---------- */

.screen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

/* The sandbox fills the surface. Everything the viewer sees inside it is generated. */
.fragment-host {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.screen__diagnostics {
    position: fixed;
    left: 16px;
    bottom: 16px;
    max-width: 520px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(176, 42, 55, 0.92);
    color: #fff;
    font-size: 13px;
    z-index: 110;
}

.screen__diagnostics ul { margin: 6px 0 0 0; padding-left: 18px; }

.screen__idle {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.screen__mark {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: linear-gradient(135deg, #5768ff, #58d4ff);
    margin-bottom: 18px;
}

.screen__idle h1 {
    margin: 0;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.screen__idle p { margin: 0; color: #9aa3bd; font-size: 16px; }
.screen__install { position: fixed; z-index: 40; top: 14px; right: 16px; min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; background: rgba(8,11,31,.82); color: #fff; box-shadow: 0 8px 28px rgba(8,11,31,.28); backdrop-filter: blur(12px); font: 700 12px "DM Sans",sans-serif; cursor: pointer; }
.screen__install:hover { background: rgba(24,30,67,.94); }
.install-gate { position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:32px; overflow:auto; background:radial-gradient(circle at 50% 34%,#233675 0,#0c1433 35%,#070b1d 72%); color:#fff; text-align:center; font-family:"DM Sans",sans-serif; }
.install-gate__mark { display:grid; place-items:center; width:82px; height:82px; margin-bottom:22px; overflow:hidden; border:1px solid #ffffff20; border-radius:22px; background:#ffffff0d; box-shadow:0 20px 70px #5670ff36; }
.install-gate__mark img { width:100%; height:100%; object-fit:cover; }
.install-gate__eyebrow { color:#8ea0ff; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.install-gate h1 { max-width:600px; margin:8px 0 10px; font-size:clamp(28px,5vw,48px); letter-spacing:-.04em; }
.install-gate > p { max-width:560px; margin:0 0 24px; color:#b9c3df; font-size:15px; line-height:1.6; }
.install-gate__primary { min-width:190px; min-height:48px; padding:0 22px; border:0; border-radius:11px; background:#6578ff; color:#fff; box-shadow:0 14px 35px #425cff4f; font-weight:800; cursor:pointer; }
.install-gate__instructions { width:min(100%,520px); margin-top:18px; padding:15px 17px; border:1px solid #ffffff17; border-radius:12px; background:#ffffff0a; text-align:left; }
.install-gate__instructions strong { font-size:12px; }
.install-gate__instructions p { margin:5px 0 0; color:#b9c3df; font-size:12px; line-height:1.55; }
.install-gate > small { margin-top:15px; color:#7f8aa8; font-size:10px; }

.screen__code { margin-top: 20px !important; }
.screen__code strong { color: #58d4ff; font-size: 26px; letter-spacing: 0.14em; }

.screen__overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 20, 0.74);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.screen__sheet {
    background: #10142f;
    border: 1px solid rgba(245, 246, 249, 0.14);
    border-radius: 20px;
    padding: 28px;
    max-width: 560px;
}

.screen__close {
    min-height: 48px;
    padding: 0 24px;
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid rgba(245, 246, 249, 0.22);
    background: transparent;
    color: #f5f6f9;
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.screen__attribution {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #38405b;
    z-index: 8000;
    pointer-events: none;
    user-select: none;
    padding: 10px 14px;
    isolation: isolate;
}
.screen__attribution::before { content:""; position:absolute; z-index:-1; width:520px; height:220px; pointer-events:none; background:radial-gradient(ellipse 100% 100% at var(--glow-x) var(--glow-y),rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 25%,rgba(255,255,255,.7) 40%,rgba(255,255,255,.26) 56%,transparent 74%); }
.screen__attribution picture { display:flex; width:23px; height:23px; }
.screen__attribution img { width:23px; height:23px; }
.screen__attribution .corevar-wordmark { display:inline-flex; color:#10142f; font-family:"Courier New",ui-monospace,SFMono-Regular,Consolas,monospace; font-size:15px; font-weight:700; line-height:1; letter-spacing:-.075em; }
.screen__attribution .corevar-wordmark em { color:#5768ff; font-style:normal; }
.screen__attribution--topleft { top:14px; left:16px; }.screen__attribution--topleft::before { --glow-x:0%;--glow-y:0%;top:-14px;left:-16px; }
.screen__attribution--topcenter { top:14px; left:50%; transform:translateX(-50%); }.screen__attribution--topcenter::before { --glow-x:50%;--glow-y:0%;top:-14px;left:50%;transform:translateX(-50%);width:640px;height:108px;background:radial-gradient(ellipse 72% 100% at var(--glow-x) var(--glow-y),rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 25%,rgba(255,255,255,.7) 40%,rgba(255,255,255,.26) 56%,transparent 74%); }
.screen__attribution--topright { top:14px; right:16px; }.screen__attribution--topright::before { --glow-x:100%;--glow-y:0%;top:-14px;right:-16px; }
.screen__attribution--bottomleft { bottom:7px; left:12px; }.screen__attribution--bottomleft::before { --glow-x:0%;--glow-y:100%;bottom:-7px;left:-12px; }
.screen__attribution--bottomcenter { bottom:7px; left:50%; transform:translateX(-50%); }.screen__attribution--bottomcenter::before { --glow-x:50%;--glow-y:100%;bottom:-7px;left:50%;transform:translateX(-50%);width:640px;height:108px;background:radial-gradient(ellipse 72% 100% at var(--glow-x) var(--glow-y),rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 25%,rgba(255,255,255,.7) 40%,rgba(255,255,255,.26) 56%,transparent 74%); }
.screen__attribution--bottomright { right:12px; bottom:7px; }.screen__attribution--bottomright::before { --glow-x:100%;--glow-y:100%;right:-12px;bottom:-7px; }
@media (prefers-color-scheme: light) {
    .screen__attribution { color:#38405b; }
    .screen__attribution .corevar-wordmark { color:#10142f; }
    .screen__attribution .corevar-wordmark em { color:#5768ff; }
}

.operator-hotspot { position: fixed; z-index: 9000; width: 56px; height: 56px; padding: 0; border: 0; background: transparent; touch-action: none; }
.operator-hotspot--topleft { top: 0; left: 0; }
.operator-hotspot--topright { top: 0; right: 0; }
.operator-hotspot--bottomleft { bottom: 0; left: 0; }
.operator-hotspot--bottomright { right: 0; bottom: 0; }
.operator-menu { position: fixed; z-index: 12000; inset: 0; display: grid; align-items: end; font-family: system-ui, sans-serif; }
.operator-menu__backdrop { position: absolute; inset: 0; border: 0; background: #070a18b8; backdrop-filter: blur(7px); }
.operator-menu__sheet { position: relative; width: min(460px, 100%); max-height: min(82vh, 700px); box-sizing: border-box; margin: 0 auto; padding: 18px; overflow: auto; border: 1px solid #ffffff1f; border-radius: 22px 22px 0 0; background: #10142f; color: #f5f6f9; box-shadow: 0 -24px 70px #0008; }
.operator-menu__sheet header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.operator-menu__sheet header span { color: #58d4ff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.operator-menu__sheet h2 { margin: 3px 0 0; font-size: 22px; }
.operator-menu__sheet header > button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #ffffff12; color: #fff; font-size: 24px; }
.operator-menu__download { display:grid; gap:7px; margin-bottom:10px; padding:12px; border:1px solid #ffffff14; border-radius:12px; background:#ffffff09; }
.operator-menu__download-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.operator-menu__download-heading > div { display:grid; gap:2px; }
.operator-menu__download-heading span { color:#9aa3bd; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.operator-menu__download-heading strong { font-size:12px; }
.operator-menu__download-heading em { color:#9aa3bd; font-size:11px; font-style:normal; font-weight:800; }
.operator-menu__progress { height:5px; overflow:hidden; border-radius:99px; background:#050817; }
.operator-menu__progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#6878ff,#58d4ff); transition:width .2s ease; }
.operator-menu__download > small { color:#9aa3bd; font-size:9px; }
.operator-menu__download--complete .operator-menu__progress i { background:#4ee3a2; }
.operator-menu__download--error .operator-menu__progress i { background:#ff7288; }
.operator-menu__download details { padding-top:4px; border-top:1px solid #ffffff12; color:#ff9aaa; font-size:9px; }
.operator-menu__download summary { cursor:pointer; font-weight:800; }
.operator-menu__download ul { display:grid; gap:6px; margin:8px 0 0; padding:0; list-style:none; }
.operator-menu__download li { display:grid; gap:2px; }
.operator-menu__download li code { color:#f5f6f9; font-size:9px; }
.operator-menu__download li span { overflow-wrap:anywhere; color:#b9c0d4; }
.operator-menu__status { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 12px; background: #ffffff0a; }
.operator-menu__status > span { width: 9px; height: 9px; border-radius: 50%; background: #4ee3a2; box-shadow: 0 0 12px #4ee3a2; }
.operator-menu__status div, .operator-menu__row div { display: grid; gap: 2px; }
.operator-menu__status small, .operator-menu__row small { color: #9aa3bd; }
.operator-menu__version { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; padding:10px 11px; border-radius:10px; background:#ffffff08; }
.operator-menu__version div { display:flex; align-items:center; gap:8px; }
.operator-menu__version span { color:#9aa3bd; font-size:11px; }
.operator-menu__version em { padding:3px 7px; border-radius:99px; background:#58d4ff1f; color:#58d4ff; font-size:9px; font-style:normal; font-weight:800; text-transform:uppercase; }
.operator-menu__versions { display:flex; gap:7px; margin:10px 0; padding-bottom:3px; overflow-x:auto; }
.operator-menu__versions button { flex:0 0 142px; display:grid; gap:3px; min-height:58px; padding:8px 9px; border:1px solid #ffffff17; border-radius:9px; background:#ffffff08; color:#f5f6f9; text-align:left; }
.operator-menu__versions button.active { border-color:#6878ff; background:#5768ff26; }
.operator-menu__versions button span { font-size:11px; font-weight:800; }
.operator-menu__versions button small { overflow:hidden; color:#9aa3bd; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.operator-menu__about { margin:10px 0; padding:14px; border:1px solid #ffffff17; border-radius:12px; background:#ffffff08; }
.operator-menu__about > strong { font-size:14px; }
.operator-menu__about p { margin:7px 0 12px; color:#b9c0d4; font-size:11px; line-height:1.5; }
.operator-menu__about button { width:100%; padding:10px 12px; border:0; border-radius:8px; background:#6475ff; color:white; font-weight:750; }
.operator-menu__about small { color:#9aa3bd; }
.operator-menu__showcases { display:grid; gap:8px; }
.operator-menu__showcases button + button { background:#ffffff12; color:#d8def5; box-shadow:inset 0 0 0 1px #ffffff1d; }
.operator-menu__mode { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin:9px 0; padding:3px; border-radius:9px; background:#050817; }
.operator-menu__mode button { padding:7px 5px; border:0; border-radius:6px; background:transparent; color:#8f99b6; font-size:9px; font-weight:800; cursor:pointer; }
.operator-menu__mode button.active { background:#29335d; color:#fff; }
.operator-menu__theme { margin:12px 0; }
.operator-menu__theme>span { display:block; margin-bottom:6px; color:#7f89a8; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.operator-menu__theme>div { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:3px; border-radius:9px; background:#050817; }
.operator-menu__theme button { padding:7px 5px; border:0; border-radius:6px; background:transparent; color:#8f99b6; font-size:9px; font-weight:800; cursor:pointer; }
.operator-menu__theme button.active { background:#29335d; color:#fff; }
.gesture-demo { --gx:24px; --gy:24px; position:fixed; z-index:95; inset:0; pointer-events:none; background:#05081724; font-family:"DM Sans",sans-serif; }
.gesture-demo--topleft { --gx:24px; --gy:24px; --dx:100px; --dy:100px; --angle:45deg; }
.gesture-demo--topright { --gx:calc(100% - 24px); --gy:24px; --dx:-100px; --dy:100px; --angle:135deg; }
.gesture-demo--bottomleft { --gx:24px; --gy:calc(100% - 24px); --dx:100px; --dy:-100px; --angle:-45deg; }
.gesture-demo--bottomright { --gx:calc(100% - 24px); --gy:calc(100% - 24px); --dx:-100px; --dy:-100px; --angle:-135deg; }
.gesture-demo__corner { position:absolute; left:var(--gx); top:var(--gy); width:82px; height:82px; transform:translate(-50%,-50%); border:3px solid #7d8cff; border-radius:50%; background:#6878ff24; box-shadow:0 0 0 12px #6878ff14,0 0 44px #6878ffb8; animation:gesture-corner 1s ease-in-out 3; }
.gesture-demo__hand { position:absolute; left:var(--gx); top:var(--gy); transform:translate(-35%,-20%); color:#fff; filter:drop-shadow(0 5px 12px #000a); font-size:42px; animation:gesture-tap 1s ease-in-out 3; }
.gesture-demo__trail { display:none; position:absolute; left:var(--gx); top:var(--gy); width:140px; height:3px; transform-origin:left center; background:linear-gradient(90deg,#8c99ff,transparent); }
.gesture-demo--diagonalswipe .gesture-demo__hand { animation:gesture-swipe 1.5s ease-in-out 2; }
.gesture-demo--diagonalswipe .gesture-demo__trail { display:block; transform:rotate(var(--angle)); opacity:.8; }
.gesture-demo--longpress .gesture-demo__hand { animation:gesture-hold 2.4s ease-in-out 1; }
.gesture-demo__label { position:absolute; left:50%; bottom:38px; transform:translateX(-50%); display:grid; gap:3px; min-width:250px; padding:12px 16px; border:1px solid #ffffff24; border-radius:12px; background:#080c22e8; color:#fff; box-shadow:0 15px 45px #0008; text-align:center; }
.gesture-demo__label strong { font-size:13px; }.gesture-demo__label span { color:#b9c2de; font-size:10px; }
@keyframes gesture-corner { 0%,100%{opacity:.55;transform:translate(-50%,-50%) scale(.82)} 50%{opacity:1;transform:translate(-50%,-50%) scale(1)} }
@keyframes gesture-tap { 0%,100%{transform:translate(-35%,-15%) scale(1)} 35%,55%{transform:translate(-35%,-10%) scale(.78)} }
@keyframes gesture-hold { 0%,100%{transform:translate(-35%,-15%) scale(1)} 20%,75%{transform:translate(-35%,-10%) scale(.78)} }
@keyframes gesture-swipe { 0%,15%{transform:translate(-35%,-20%)} 75%,100%{transform:translate(calc(-35% + var(--dx)),calc(-20% + var(--dy)))} }
@media(prefers-reduced-motion:reduce){.gesture-demo__corner,.gesture-demo__hand{animation:none}}
.operator-menu__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.operator-menu__actions button, .operator-menu__return { min-height: 46px; border: 1px solid #ffffff1f; border-radius: 10px; background: #ffffff0c; color: #f5f6f9; font-weight: 700; }
.operator-menu__row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 58px; padding: 9px 5px; border: 0; border-bottom: 1px solid #ffffff12; background: transparent; color: #f5f6f9; text-align: left; }
.operator-menu__row > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #5768ff24; color: #7f8bff; font-size: 18px; }
.operator-menu__return { width: 100%; margin-top: 16px; background: #5768ff; border-color: #5768ff; }

.asset-toast { position:fixed; z-index:11000; top:max(16px,env(safe-area-inset-top)); right:16px; display:flex; align-items:center; gap:10px; width:min(360px,calc(100vw - 32px)); box-sizing:border-box; padding:12px 13px; border:1px solid var(--toast-border); border-radius:12px; background:var(--toast-surface); color:var(--toast-text); box-shadow:0 16px 48px #05081759; font-family:"DM Sans",system-ui,sans-serif; animation:asset-toast-in .2s ease-out; }
.asset-toast__icon { display:grid; place-items:center; flex:0 0 auto; width:30px; height:30px; border-radius:9px; background:color-mix(in srgb,var(--toast-primary) 18%,transparent); color:var(--toast-primary); font-weight:900; }
.asset-toast--working .asset-toast__icon { animation:asset-download 1.1s ease-in-out infinite; }
.asset-toast--success .asset-toast__icon { background:#27b77724; color:#27b777; }
.asset-toast--error .asset-toast__icon { background:#e5485f24; color:#e5485f; }
.asset-toast > div { display:grid; flex:1; gap:2px; min-width:0; }
.asset-toast strong { font-size:12px; }
.asset-toast small { color:var(--toast-muted); font-size:10px; line-height:1.4; }
.asset-toast button { border:0; background:transparent; color:var(--toast-muted); font-size:20px; cursor:pointer; }
@keyframes asset-toast-in { from { opacity:0; transform:translateY(-8px); } }
@keyframes asset-download { 50% { transform:translateY(3px); } }
@media(prefers-reduced-motion:reduce){.asset-toast,.asset-toast--working .asset-toast__icon{animation:none}}

.screen__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5768ff, #58d4ff);
}

/* ---------- Remote role ---------- */

.remote {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 20px 40px 20px;
    /* Keeps the controls clear of a phone's home indicator. */
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.remote h1 {
    margin: 0;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.remote__join { display: flex; flex-direction: column; gap: 10px; padding-top: 40px; }
.remote__join p { margin: 0; color: #9aa3bd; }

.remote__join label {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9aa3bd;
}

.remote__join input {
    min-height: 56px;
    font-size: 26px;
    letter-spacing: 0.22em;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(245, 246, 249, 0.22);
    background: #10142f;
    color: #f5f6f9;
}

.remote__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.remote__label {
    margin: 0 0 4px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f7899;
}

.remote__progress { color: #9aa3bd; font-size: 14px; }

.remote__note {
    margin: 16px 0;
    padding: 16px;
    border-radius: 14px;
    background: rgba(87, 104, 255, 0.12);
    border: 1px solid rgba(87, 104, 255, 0.34);
    font-size: 15px;
    line-height: 1.5;
}

.remote__controls {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    margin-top: 20px;
}

.remote__row { margin-top: 12px; }
.remote__row .remote__btn { width: 100%; }

.remote__btn {
    /* Driven one-handed, often in a noisy room, sometimes in the dark. Targets are large. */
    min-height: 56px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid rgba(245, 246, 249, 0.22);
    background: #10142f;
    color: #f5f6f9;
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.remote__btn--big { min-height: 88px; font-size: 20px; }

.remote__btn--primary {
    background: #5768ff;
    border-color: #5768ff;
    color: #ffffff;
}

.remote__btn:disabled { opacity: 0.4; }

.remote__hint { margin-top: 24px; color: #6f7899; font-size: 13px; }

/* Hidden until something actually fails. This rule ships in the project template and was lost
   when this file was rewritten — without it the error bar is permanently visible, which on a
   booth screen is a yellow band across someone's demo. */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Preview watermark. Deliberately unmissable while it is up and gone again shortly after —
   see PreviewWatermark.razor for why it is intermittent rather than permanent. */
.watermark {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 130;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(16, 20, 47, 0.94);
    border: 1px solid rgba(245, 246, 249, 0.16);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    animation: watermark-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.watermark div { display: flex; flex-direction: column; line-height: 1.3; }
.watermark strong { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #58d4ff; }
.watermark span { font-size: 14px; color: #f5f6f9; }

.watermark__mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #5768ff, #58d4ff);
    flex-shrink: 0;
}

@keyframes watermark-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .watermark { animation: none; }
}

/* Installed screens: pairing, presenter control and blanking. */
.install-gate__secondary { margin-top:14px; min-height:40px; padding:0 18px; border:1px solid #ffffff2e; border-radius:10px; background:transparent; color:#dfe4ff; font-weight:700; cursor:pointer; }
.install-gate__error { margin-top:14px; max-width:520px; color:#ffb4b4; font-size:13px; line-height:1.5; }
.pairing-code { margin:14px 0 10px; font-family:"Courier New",ui-monospace,SFMono-Regular,Consolas,monospace; font-size:clamp(48px,12vw,140px); font-weight:800; letter-spacing:.08em; }
.screen__blank { position:fixed; inset:0; z-index:90; background:#000; }
.operator-menu__presenter { display:grid; gap:4px; margin-top:10px; padding:10px 11px; border-radius:10px; background:#5768ff1f; }
.operator-menu__presenter span { color:#9aa3bd; font-size:11px; }
.operator-menu__presenter strong { font-family:"Courier New",ui-monospace,monospace; font-size:26px; letter-spacing:.12em; }
.operator-menu__presenter small { color:#b9c0d4; font-size:10px; }
.operator-menu__presenter button { justify-self:start; min-height:34px; padding:0 12px; border:1px solid #6878ff; border-radius:8px; background:transparent; color:#fff; font-weight:700; }
.remote__error { margin-top: 12px; color: #ffb4b4; font-size: 14px; }
/* Pro's small mark: the symbol alone, smaller and quieter, never hidden. */
.screen__attribution--compact { padding: 6px 8px; opacity: .78; }
.screen__attribution--compact img { width: 16px; height: 16px; }
.screen__attribution--compact::before { width: 120px; height: 72px; }
/* Sales demo controls: trusted host UI above the generated scene. */
.share-bar { position:fixed; z-index:95; top:12px; right:12px; display:flex; gap:8px; }
.share-bar__claim, .share-bar__remove { display:inline-flex; align-items:center; min-height:36px; padding:0 14px; border-radius:99px; font:700 12px "DM Sans",system-ui,sans-serif; text-decoration:none; cursor:pointer; backdrop-filter:blur(8px); }
.share-bar__claim { border:0; background:#6578ff; color:#fff; box-shadow:0 8px 24px #425cff4f; }
.share-bar__remove { border:1px solid #ffffff38; background:#0b102acc; color:#e6e9f5; }

.startup-splash--customer img{width:220px;height:220px;border-radius:28px;filter:none;object-fit:contain}.startup-splash--customer p{position:relative;max-width:32rem;margin:0 24px;font-size:17px;opacity:.75}.startup-splash--customer .startup-splash__glow{background:radial-gradient(circle,#00b7d51c,transparent 70%)}

.startup-splash--boot img,.startup-splash--boot strong{visibility:hidden}
