/* 2026-12-02 v3.17.0 LIVE PHONE (3D) — the page's look (features/livephone/livephone.js). The stage is a dark, cinematic space whatever the
   dashboard's light / dark choice (it is a studio for a projector); its tools are smoked glass. The phone itself is drawn by the 3D engine
   (engine/lp3d.min.js); the lpf-* rules at the end are the plain CSS phone used only when that engine is missing. */

/* ---------- the page takes the whole work area (no page scroll; the menu stays) */
body.lp-page { overflow: hidden; }
html.lp-page { overflow: hidden; }   /* 2026-12-03 (performance judge): the page itself never scrolls sideways (the header at 842 px wide) */
body.lp-page main { padding: 0 !important; max-width: none !important; margin: 0 !important; }
body.lp-page #v-livephone { margin: 0; }
.lp-root {
  --lp-ink: #f4f6f8; --lp-ink2: rgba(236,240,244,.72); --lp-ink3: rgba(236,240,244,.5);
  --lp-glass: rgba(20,23,28,.58); --lp-glass2: rgba(28,32,38,.78); --lp-edge: rgba(255,255,255,.12); --lp-edge2: rgba(255,255,255,.2);
  --lp-hi: #f5a524; --lp-green: #12b76a; --lp-green2: #0b8f52; --lp-red: #d92d20; --lp-red2: #a8170e; --lp-amber: #f79009;
  --lp-r: 16px; --lp-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  position: relative; height: calc(100dvh - var(--lp-top, 52px)); min-height: 360px; background: #07090c; color: var(--lp-ink); font-family: var(--lp-font);
}
.lp-stage {
  container: lpstage / size;
  position: relative; width: 100%; height: 100%; overflow: hidden; contain: strict; isolation: isolate; outline: none;
  background: radial-gradient(120% 90% at 50% 38%, #2a2f36 0%, #15181d 48%, #08090b 100%);
  -webkit-user-select: none; user-select: none; color-scheme: dark;
}
.lp-stage:fullscreen { width: 100vw; height: 100vh; }
.lp-stage::backdrop { background: #000; }
.lp-stage.lp-fake-fs { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2147480000; }
.lp-stage.lp-idle { cursor: none; }
.lp-scene { position: absolute; inset: 0; z-index: 0; }

/* ---------- the screen element (E): the real app in its frame, and the cover */
.lp-screen { position: relative; overflow: hidden; background: #000; }
.lp-frame { display: block; width: 440px; height: 956px; border: 0; margin: 0; background: #fff; color-scheme: light; }
.lp-cover {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 86px 34px 60px; text-align: center; color: #f4f6f8;
  background: radial-gradient(130% 80% at 50% 30%, #154f50 0%, #0f3d3e 38%, #071d1e 100%); font: 17px/1.45 var(--lp-font, system-ui);
}
.lp-cover[hidden] { display: none; }
.lp-cover-in { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 360px; }
.lp-cover p { margin: 0; color: rgba(244,246,248,.86); }
.lp-cover h3 { margin: 0 0 4px; font-size: 26px; font-weight: 650; letter-spacing: -.2px; }
.lp-cv-logo { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-weight: 800; font-size: 26px; letter-spacing: 1px; color: #0f3d3e;
  background: linear-gradient(160deg, #ffd27a, #f5a524 60%, #d98a0b); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5); margin-bottom: 10px; }
.lp-cv-spin { width: 46px; height: 46px; border-radius: 50%; border: 3.5px solid rgba(255,255,255,.18); border-top-color: #f5a524; animation: lpSpin .9s linear infinite; }
.lp-cv-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: rgba(255,255,255,.1); }
.lp-cv-btn { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.lp-cv-btn b { font-size: 19px; }
.lp-cv-btn span { font-size: 14px; color: rgba(255,255,255,.72); }
.lp-cv-btn:hover:not(:disabled) { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.lp-cv-btn:disabled { opacity: .45; cursor: not-allowed; }
.lp-cv-btn.g { border-color: rgba(18,183,106,.6); } .lp-cv-btn.g b::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-green, #12b76a); margin-right: 9px; }
.lp-cv-btn.r { border-color: rgba(217,45,32,.6); } .lp-cv-btn.r b::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-red, #d92d20); margin-right: 9px; }
.lp-cv-btn[data-cv="retry"] { align-items: center; }
.lp-cover[data-state="unknown"] { background: repeating-linear-gradient(135deg, #111 0 26px, #1d1a12 26px 52px); }
.lp-cover[data-state="unknown"] .lp-cv-ic { background: #f79009; color: #111; }
.lp-cover[data-state="error"] .lp-cv-ic, .lp-cover[data-state="signedout"] .lp-cv-ic { background: rgba(255,255,255,.14); }
@keyframes lpSpin { to { transform: rotate(360deg); } }

/* ---------- the ribbon: always on top, full screen included (never hidden by the spotlight, the caption or a box) */
.lp-ribbon {
  position: absolute; z-index: 100; top: 0; left: 0; display: flex; align-items: center; gap: .62em; pointer-events: none;
  padding: .74em 1.35em .74em 1.05em; border-bottom-right-radius: .95em; color: #fff;
  font: 750 clamp(12px, .45vw + 8.5px, 21px)/1 var(--lp-font); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
  transition: font-size .2s, padding .2s;
  background: linear-gradient(180deg, #4b5563, #374151); box-shadow: 0 6px 22px rgba(0,0,0,.35), inset 0 -1px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.18);
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.lp-ribbon i { width: .72em; height: .72em; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 0 .22em rgba(255,255,255,.22); flex: none; }
.lp-ribbon[data-tone="practice"] { background: linear-gradient(180deg, #17c779, #0e9d5a); }
/* 2026-12-03 (realism judge): in PRACTICE the corner is a small status chip — the pill under the phone is the label the audience reads */
.lp-ribbon[data-tone="practice"], .lp-ribbon[data-tone="none"] { top: 10px; left: 10px; padding: .55em .9em; border-radius: 999px; font-size: clamp(10px, .25vw + 7px, 13px); letter-spacing: .1em; }
.lp-ribbon[data-tone="live"] { background: linear-gradient(180deg, #e8372b, #b5180d); }
.lp-ribbon[data-tone="live"] i { animation: lpPulse 2s ease-in-out infinite; }
.lp-ribbon[data-tone="unknown"] { background: repeating-linear-gradient(135deg, #111 0 14px, #2a2208 14px 28px); color: #fdb022; box-shadow: 0 0 0 2px #f79009 inset, 0 6px 22px rgba(0,0,0,.4); }
.lp-ribbon[data-tone="unknown"] i { background: #f79009; }
@keyframes lpPulse { 0%, 100% { box-shadow: 0 0 0 .18em rgba(255,255,255,.28); opacity: 1; } 50% { box-shadow: 0 0 0 .5em rgba(255,255,255,0); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .lp-ribbon[data-tone="live"] i, .lp-cv-spin { animation: none; } }

/* ---------- smoked-glass tools; they fade while the mouse rests in full screen */
.lp-chrome { transition: opacity .35s ease, transform .35s ease; }
.lp-stage.lp-idle .lp-chrome { opacity: 0; pointer-events: none; }
.lp-stage.lp-idle .lp-rail { transform: translate(-12px, -50%); }
/* 2026-12-03 (performance judge): NO backdrop-filter on anything over the stage — even panels that do not overlap the phone made Chrome
   draw the isolated stage as a render surface WITHOUT LCD (sub-pixel) text: the phone's text scored 0.888 of native; without, 0.987.
   The glass look is kept with a near-opaque smoked fill, a fine top highlight and a soft shadow. */
.lp-glass, .lp-rail, .lp-modebox, .lp-pop, .lp-toast, .lp-help-in, .lp-dl {
  background: linear-gradient(180deg, rgba(30,34,41,.92), rgba(16,19,24,.9)); border: 1px solid var(--lp-edge);
  box-shadow: 0 18px 50px rgba(0,0,0,.42), 0 2px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.09);
}

/* the mode switch (top right) */
.lp-modebox { position: absolute; z-index: 40; top: 14px; right: 14px; display: flex; align-items: center; gap: 12px; padding: 6px 7px 6px 7px; border-radius: 999px; max-width: calc(100% - 340px); }
.lp-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.lp-seg button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 104px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
  background: none; color: var(--lp-ink2); font: 650 14px/1 var(--lp-font); letter-spacing: .2px; cursor: pointer; transition: color .2s; }
.lp-seg button[aria-checked="true"] { color: #fff; }
.lp-seg button:disabled { opacity: .4; cursor: not-allowed; }
.lp-seg button:not(:disabled):not([aria-checked="true"]):hover { color: #fff; }
.lp-seg .lp-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; opacity: 0; transition: transform .32s cubic-bezier(.3,.9,.3,1), background-color .3s, opacity .2s; }
.lp-seg[data-m="practice"] .lp-thumb { opacity: 1; background: linear-gradient(180deg, #17c779, #0e9d5a); box-shadow: 0 4px 14px rgba(18,183,106,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.lp-seg[data-m="live"] .lp-thumb { opacity: 1; transform: translateX(100%); background: linear-gradient(180deg, #e8372b, #b5180d); box-shadow: 0 4px 14px rgba(217,45,32,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.lp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lp-dot.g { background: #32d583; } .lp-dot.r { background: #f97066; }
.lp-seg button[aria-checked="true"] .lp-dot { background: #fff; }
.lp-meta { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--lp-ink2); min-width: 0; padding-right: 6px; }
.lp-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.lp-meta span:first-child { color: var(--lp-ink); font-weight: 600; }
.lp-endlive { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(249,112,102,.55); background: rgba(217,45,32,.18); color: #fecdca; font: 650 13px/1 var(--lp-font); cursor: pointer; }
.lp-endlive:hover { background: rgba(217,45,32,.32); color: #fff; }

/* the rail (left, vertically centred) */
.lp-rail { position: absolute; z-index: 40; left: 14px; top: calc(50% + 18px); transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 20px; overflow: visible; }
.lp-rg { display: flex; flex-direction: column; gap: 2px; }
.lp-rg + .lp-rg { padding-top: 6px; border-top: 1px solid var(--lp-edge); }
.lp-rb { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--lp-ink2); cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.lp-rb svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-rb:hover { background: rgba(255,255,255,.09); color: #fff; }
.lp-rb:active { transform: scale(.94); }
.lp-rb.on { background: rgba(245,165,36,.18); color: #ffc65c; box-shadow: inset 0 0 0 1px rgba(245,165,36,.35); }
.lp-rb.warn { background: rgba(217,45,32,.22); color: #fda29b; box-shadow: inset 0 0 0 1px rgba(249,112,102,.5); }
.lp-rb:focus-visible { outline: 2px solid #ffc65c; outline-offset: 1px; }
/* 2026-12-03 (realism judge): a tooltip never stays on the projected stage — hover, or keyboard focus only while the presenter is tabbing
   (.lp-quiet is set when a popover / dialog closes or a shortcut is used, and cleared by the next Tab) */
.lp-rb[data-tip]:hover::after, .lp-rail:not(.lp-quiet) .lp-rb[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  padding: 7px 11px; border-radius: 9px; background: rgba(12,14,18,.94); border: 1px solid var(--lp-edge); color: #fff; font: 550 12.5px/1 var(--lp-font); box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.lp-stage.lp-idle .lp-rb[data-tip]::after { display: none; }
.lp-rail.lp-quiet .lp-rb:focus-visible { outline-color: transparent; }
.lp-stage[data-engine="css"] #lpPose_hand, .lp-stage[data-engine="css"] #lpPose_desk { opacity: .45; }
.lp-rb .lp-beta { position: absolute; right: 1px; top: 1px; padding: 1px 3px; border-radius: 4px; background: #f5a524; color: #1d1300; font: 800 7.5px/1 var(--lp-font); letter-spacing: .04em; pointer-events: none; }

/* popovers (background chooser, more settings) */
.lp-pop { position: absolute; z-index: 45; width: 336px; max-height: calc(100% - 24px); overflow: auto; padding: 14px 16px 16px; border-radius: 18px; background: var(--lp-glass2); scrollbar-width: thin; }
.lp-pop h4 { margin: 12px 0 8px; font: 650 11.5px/1 var(--lp-font); letter-spacing: .12em; text-transform: uppercase; color: var(--lp-ink3); display: flex; justify-content: space-between; }
.lp-pop h4:first-child { margin-top: 2px; }
.lp-pop h4 small { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--lp-ink2); }
.lp-bgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-bgc { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--lp-edge); background: rgba(255,255,255,.04); color: var(--lp-ink); font: 550 12.5px/1.2 var(--lp-font); text-align: left; cursor: pointer; }
.lp-bgc:hover { border-color: var(--lp-edge2); background: rgba(255,255,255,.08); }
.lp-bgc.on { border-color: #f5a524; box-shadow: 0 0 0 1px #f5a524; }
.lp-sw { display: block; height: 58px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); background-size: cover; background-position: center; }
.lp-sw-studio { background-image: radial-gradient(70% 90% at 50% 35%, #f2f3f5 0%, #d9dbe0 45%, #a4a9b2 100%); }
.lp-sw-studiodark { background-image: radial-gradient(70% 90% at 50% 35%, #1d3a5f 0%, #0f2a4a 45%, #04070d 100%); }
.lp-sw-office { background-image: linear-gradient(180deg, #d8cbb8 0%, #b9a68d 55%, #7b5a3a 56%, #5e4128 100%); }
.lp-sw-field { background-image: linear-gradient(180deg, #a9c9e6 0%, #e6dcc6 48%, #c79b62 49%, #a5603a 100%); }
.lp-sw-control { background-image: radial-gradient(80% 90% at 50% 30%, #1f4b7a 0%, #0d1b2e 55%, #05080d 100%); }
.lp-plains { display: flex; gap: 8px; }
.lp-pc { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; }
.lp-pc.on { border-color: #f5a524; box-shadow: 0 0 0 2px rgba(245,165,36,.4); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.lp-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--lp-edge); background: rgba(255,255,255,.04); color: var(--lp-ink); font: 550 12.5px/1 var(--lp-font); cursor: pointer; }
.lp-chip:hover { background: rgba(255,255,255,.09); }
.lp-chip.on { border-color: #f5a524; background: rgba(245,165,36,.16); color: #ffd58a; }
.lp-fin { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.lp-fin-natural { background: linear-gradient(135deg, #b4afa7, #77736d); } .lp-fin-black { background: linear-gradient(135deg, #5a5a5e, #252527); }
.lp-fin-white { background: linear-gradient(135deg, #f4f2ee, #cfccc5); } .lp-fin-desert { background: linear-gradient(135deg, #d8bfa4, #a88b6c); }
.lp-tone { width: 14px; height: 14px; border-radius: 50%; }
.lp-tone-1 { background: #5b3a26; } .lp-tone-2 { background: #8a5a3c; } .lp-tone-3 { background: #c08e6a; } .lp-tone-4 { background: #e7c3a3; }
.lp-sw2 { display: flex; align-items: flex-start; gap: 10px; padding: 7px 2px; font-size: 13px; color: var(--lp-ink); cursor: pointer; }
.lp-sw2 input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: #f5a524; }
.lp-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lp-edge); }
.lp-pop-v { font-size: 11px; color: var(--lp-ink3); }
.lp-sess { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-sess li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(217,45,32,.1); border: 1px solid rgba(249,112,102,.3); }
.lp-sess b { display: block; font-size: 13px; } .lp-sess small { display: block; font-size: 11.5px; color: var(--lp-ink2); }
.lp-pop-note { margin: 0; font-size: 12.5px; color: var(--lp-ink3); }

/* buttons in the stage's boxes */
.lp-btn { height: 38px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--lp-edge2); background: rgba(255,255,255,.07); color: #fff; font: 650 14px/1 var(--lp-font); cursor: pointer; }
.lp-btn:hover:not(:disabled) { background: rgba(255,255,255,.13); }
.lp-btn:disabled { opacity: .4; cursor: not-allowed; }
.lp-btn.small { height: 30px; padding: 0 12px; font-size: 12.5px; }
.lp-btn.primary { background: linear-gradient(180deg, #ffb53d, #f09a12); border-color: #f5a524; color: #1d1300; }
.lp-btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffc35c, #f5a524); }
.lp-btn.danger { background: linear-gradient(180deg, #e8372b, #b5180d); border-color: #d92d20; }
.lp-btn.danger:hover:not(:disabled) { background: linear-gradient(180deg, #f04438, #c11d12); }

/* dialogs (inside the stage, so they also work in full screen) */
.lp-dlg { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(3,4,6,.68); animation: lpFade .18s ease; }
.lp-dlg[hidden] { display: none; }
.lp-dl { width: min(520px, 100%); max-height: calc(100% - 20px); overflow: auto; padding: 22px 24px 20px; border-radius: 20px; background: rgba(22,25,30,.92); color: var(--lp-ink); animation: lpRise .22s cubic-bezier(.2,.9,.3,1); user-select: text; }
.lp-dl h2 { margin: 0 0 12px; font: 680 20px/1.25 var(--lp-font); letter-spacing: -.1px; display: flex; align-items: center; gap: 10px; color: #fff; }
.lp-dl h2 .lp-dot { width: 11px; height: 11px; box-shadow: 0 0 0 4px rgba(249,112,102,.25); }
.lp-dl-live { border-color: rgba(249,112,102,.4); box-shadow: 0 0 0 1px rgba(217,45,32,.35), 0 24px 60px rgba(0,0,0,.55); }
.lp-dl-body { font-size: 14.5px; line-height: 1.55; color: var(--lp-ink2); }
.lp-dl-body p { margin: 0 0 10px; }
.lp-dl-body b { color: #fff; }
.lp-dl-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.lp-dl-list li { position: relative; padding-left: 22px; }
.lp-dl-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #f5a524; }
.lp-dl-sub { font-size: 12.5px; color: var(--lp-ink3); }
.lp-dl-l { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 13px; font-weight: 600; color: var(--lp-ink); }
.lp-dl-l input, .lp-dl-l textarea { font: 15px/1.4 var(--lp-font); color: #fff; background: rgba(0,0,0,.35); border: 1px solid var(--lp-edge2); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.lp-dl-l input:focus, .lp-dl-l textarea:focus { outline: 2px solid #f5a524; outline-offset: 0; border-color: transparent; }
.lp-dl-tick { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--lp-edge); font-weight: 600; font-size: 14px; cursor: pointer; }
.lp-dl-tick input { width: 19px; height: 19px; margin: 0; accent-color: #d92d20; flex: none; }
.lp-dl-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@keyframes lpFade { from { opacity: 0; } }
@keyframes lpRise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* toasts (top right, under the mode switch: never over the phone or its ribbon) */
.lp-toasts { position: absolute; z-index: 50; right: 16px; top: 74px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; width: min(420px, 38%); }
.lp-toast { padding: 10px 16px; border-radius: 12px; font-size: 13.5px; color: #fff; background: rgba(18,20,24,.88); animation: lpRise .2s ease; transition: opacity .35s, transform .35s; text-align: left; }
@container lpstage (max-height: 470px) { .lp-toasts { top: 52px; } }
.lp-toast.bad { background: rgba(122,24,16,.92); border-color: rgba(249,112,102,.5); }
.lp-toast.out { opacity: 0; transform: translateY(6px); }

/* keyboard shortcuts */
.lp-help { position: absolute; inset: 0; z-index: 58; display: grid; place-items: center; background: rgba(3,4,6,.45); }
.lp-help[hidden] { display: none; }
.lp-help-in { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 22px 24px; border-radius: 20px; background: rgba(22,25,30,.93); }
.lp-help h3 { margin: 0 0 4px; font: 680 19px/1.2 var(--lp-font); }
.lp-help-sub { margin: 0 0 14px; font-size: 13px; color: var(--lp-ink2); }
.lp-help dl { display: grid; grid-template-columns: 9.5em 1fr; gap: 9px 18px; margin: 0 0 18px; font-size: 14px; align-items: center; }
.lp-help dt { display: flex; justify-content: flex-end; align-items: center; gap: 5px; color: var(--lp-ink3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-help dd { margin: 0; color: var(--lp-ink); }
.lp-root kbd, .lp-stage kbd { display: inline-block; min-width: 24px; padding: 3px 7px; border-radius: 7px; background: linear-gradient(180deg, #3a3f47, #2a2e34); border: 1px solid rgba(255,255,255,.14); border-bottom-width: 2px;
  color: #fff; font: 650 12px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; text-align: center; }

/* ---------- caption: a lower third beside the phone, or the big text area of the "phone left" size */
.lp-caption { position: absolute; z-index: 20; bottom: 7%; display: flex; gap: 16px; align-items: stretch; padding: 18px 26px 18px 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, rgba(14,17,22,.9), rgba(14,17,22,.78)); border: 1px solid var(--lp-edge);
  box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: lpRise .35s cubic-bezier(.2,.9,.3,1); cursor: text; }
.lp-caption[hidden] { display: none; }
.lp-cap-bar { flex: none; width: 5px; border-radius: 3px; background: linear-gradient(180deg, #ffc35c, #f09a12); }
.lp-caption b { display: block; font: 720 clamp(18px, 1.2vw + 10px, 40px)/1.15 var(--lp-font); letter-spacing: -.3px; }
.lp-caption span { display: block; margin-top: 6px; font: 450 clamp(13px, .55vw + 8px, 22px)/1.4 var(--lp-font); color: var(--lp-ink2); }
.lp-capzone { position: absolute; z-index: 20; top: 0; bottom: 0; right: 0; width: 60%; display: flex; align-items: center; padding: 6% 7% 6% 3%; pointer-events: auto; cursor: text; }
.lp-capzone[hidden] { display: none; }
.lp-capbig h2 { margin: 0; font: 760 clamp(26px, 3.1vw, 76px)/1.06 var(--lp-font); letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.lp-capbig h2::before { content: ""; display: block; width: 64px; height: 6px; border-radius: 3px; margin-bottom: .45em; background: linear-gradient(90deg, #ffc35c, #f09a12); }
.lp-capbig p { margin: .8em 0 0; max-width: 32em; font: 450 clamp(15px, 1.15vw, 30px)/1.45 var(--lp-font); color: var(--lp-ink2); white-space: pre-line; }

/* ---------- spotlight */
.lp-spot { position: absolute; inset: 0; z-index: 30; pointer-events: none; transition: background .25s ease; }
.lp-spot[hidden] { display: none; }
.lp-place { position: absolute; inset: 0; z-index: 35; cursor: crosshair; background: rgba(0,0,0,.18); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 80px; }
.lp-place[hidden] { display: none; }
.lp-place span { padding: 10px 16px; border-radius: 12px; background: rgba(12,14,18,.9); border: 1px solid var(--lp-edge); font-size: 13.5px; }

/* ---------- the rail follows the STAGE's height (container queries): smaller buttons, then two columns */
@container lpstage (max-height: 790px) {
  .lp-rb { width: 36px; height: 36px; border-radius: 10px; }
  .lp-rb svg { width: 19px; height: 19px; }
  .lp-rail { gap: 4px; padding: 5px; border-radius: 16px; }
  .lp-rg + .lp-rg { padding-top: 4px; }
}
@container lpstage (max-height: 640px) {
  .lp-rail { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; }
  .lp-rg { display: contents; }
  .lp-rg + .lp-rg { padding-top: 0; border: 0; }
}
@container lpstage (max-height: 470px) {
  .lp-rb { width: 31px; height: 31px; border-radius: 9px; }
  .lp-rb svg { width: 17px; height: 17px; }
  .lp-modebox { top: 8px; right: 8px; padding: 4px; }
  .lp-seg button { height: 28px; min-width: 74px; font-size: 13px; }
  .lp-meta { display: none; }
}
/* ---------- narrow screens: smaller tools */
@media (max-width: 1100px) {
  .lp-modebox { max-width: calc(100% - 250px); gap: 8px; }
  .lp-meta { display: none; }
  .lp-seg button { min-width: 84px; padding: 0 12px; }
}

/* ---------- the plain CSS phone (only when the 3D engine is missing) */
.lpf-scene { background: radial-gradient(110% 85% at 50% 30%, #3a4048 0%, #1b1f25 50%, #0a0b0d 100%); }
.lpf-scene[data-bg="office"] { background: radial-gradient(90% 70% at 50% 35%, #6c5a48 0%, #3a2c20 55%, #1b130d 100%); }
.lpf-scene[data-bg="field"] { background: linear-gradient(180deg, #7fb6e3 0%, #cfe3f1 52%, #c8995c 53%, #8f4a2a 100%); }
.lpf-scene[data-bg="control"] { background: radial-gradient(80% 70% at 50% 30%, #173b62 0%, #0b1626 55%, #04070b 100%); }
.lpf-scene[data-bg="plain"] { background: var(--lpf-plain, #00b140); }
.lpf-wrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; perspective: 2400px; }
.lpf-phone { position: absolute; inset: 0; border-radius: 81px; transform-style: flat;
  background: linear-gradient(135deg, #c9c5be 0%, #8e8a84 18%, #e2ded7 34%, #7d7973 52%, #b2aea7 72%, #6f6b65 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.35), inset 0 0 0 5px #1c1c1e, 0 40px 90px rgba(0,0,0,.55), 0 12px 30px rgba(0,0,0,.35); }
.lpf-phone[data-finish="black"] { background: linear-gradient(135deg, #5c5c60 0%, #2a2a2c 22%, #6a6a6e 40%, #232325 60%, #4a4a4e 100%); }
.lpf-phone[data-finish="white"] { background: linear-gradient(135deg, #ffffff 0%, #d9d6cf 22%, #f7f5f1 40%, #c9c5bd 60%, #ecebe7 100%); }
.lpf-phone[data-finish="desert"] { background: linear-gradient(135deg, #e3cbb0 0%, #a98c6d 22%, #e8d3bb 40%, #9b7e60 60%, #cdb293 100%); }
.lpf-phone::before { content: ""; position: absolute; inset: 5px; border-radius: 76px; background: #050506; }
.lpf-phone.lpf-turn { animation: lpfTurn 9s ease-in-out infinite; }
.lpf-phone.lpf-paused { animation-play-state: paused; }
@keyframes lpfTurn { 0%, 100% { transform: rotateY(-12deg) rotateX(2deg); } 50% { transform: rotateY(12deg) rotateX(-2deg); } }
.lpf-glass { position: absolute; border-radius: 62px; overflow: hidden; background: #000; }
.lpf-glass .lp-screen { border-radius: 62px; }
.lpf-status { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 14px 34px 0 50px; pointer-events: none; color: #101828; font: 650 17px/1 -apple-system, "Segoe UI", system-ui, sans-serif; }
.lpf-icons { display: flex; gap: 6px; align-items: center; }
.lpf-icons i { display: block; width: 18px; height: 11px; border-radius: 3px; background: currentColor; opacity: .9; }
.lpf-icons i:last-child { width: 25px; border-radius: 4px; }
.lpf-island { position: absolute; z-index: 4; width: 126px; height: 37px; border-radius: 20px; background: #000; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.lpf-home { position: absolute; z-index: 4; width: 134px; height: 5px; border-radius: 3px; background: rgba(16,24,40,.85); pointer-events: none; }
.lpf-btn { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #6f6b65, #c9c5be); }
.lpf-b1 { left: -4px; top: 190px; height: 38px; } .lpf-b2 { left: -4px; top: 260px; height: 68px; } .lpf-b3 { left: -4px; top: 345px; height: 68px; } .lpf-b4 { right: -4px; top: 300px; height: 104px; }
.lpf-ribbon { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); padding: 8px 18px; border-radius: 999px; color: #fff; font: 750 15px/1 var(--lp-font, system-ui); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.lpf-ribbon[data-tone="practice"] { background: #12b76a; } .lpf-ribbon[data-tone="live"] { background: #d92d20; } .lpf-ribbon[data-tone="unknown"] { background: #111; color: #fdb022; }

/* ---------- outside the page (integrator, v3.17.0): the "3D" chip on Visits and the "Live Phone (3D)" badge on Phones */
.tag.lp3d-tag { color: #4e3fd6; background: rgba(105, 86, 255, .12); letter-spacing: .02em; }
:root[data-theme="dark"] .tag.lp3d-tag { color: #b8acff; background: rgba(140, 120, 255, .18); }

/* 2026-12-03 no rail tooltip under an open popover, dialog or help (it showed faintly through the popover's heading) */
.lp-stage:has(#lpPop:not([hidden])) .lp-rb[data-tip]::after, .lp-stage:has(#lpDlg:not([hidden])) .lp-rb[data-tip]::after,
.lp-stage:has(#lpHelp:not([hidden])) .lp-rb[data-tip]::after { display: none; }
