/* =====================================================================
   LeadLocate Live Training — two-pane shell + coaching panel
   LIGHT THEME, depth pass (rebuilt 2026-06-28)

   Goal: the same crafted, balanced feel as the CRM. Not flat white. A real
   tonal range built from a gray ramp, soft brand-green and blue washes, a
   faint dot texture, layered shadows, an animated gradient ring on the Jax
   avatar, and small motion details. Still light and easy on the eyes for
   long voice/chat sessions, with AA contrast and reduced-motion support.

   Fully scoped under #llt-app / .llt-*. Retheme via the :root tokens.
   The fixed 1440x900 #llt-screen sizing (14px bezel each side) is
   load-bearing for training.js fitMonitor; do not change those numbers.
   ===================================================================== */

:root {
    color-scheme: light;

    /* Brand */
    --green:         #259457;
    --green-dark:    #1e7a47;
    --green-deep:    #08752d;        /* CRM brand green / LOGIN button */
    --green-deeper:  #065c24;
    --mint:          #e8f5ee;
    --gold:          #ce970d;
    --gold-dark:     #bc8908;
    --blue:          #3b82f6;        /* cool accent (ties in the Jax gif) */
    --teal:          #2bb3a3;

    /* Neutral ramp (the missing shades of gray) */
    --gray-50:       #f6f8fb;
    --gray-100:      #eef1f6;
    --gray-200:      #e4e9ef;
    --gray-300:      #d6dde5;
    --gray-400:      #aeb9c6;
    --gray-500:      #8593a2;
    --gray-600:      #586676;
    --gray-700:      #3b4654;
    --gray-800:      #28323f;
    --gray-900:      #1f2a37;

    /* Roles */
    --canvas:        #e7ecf2;        /* desk behind the framed CRM */
    --surface:       #ffffff;        /* cards, header, composer */
    --surface-2:     var(--gray-50); /* transcript, inputs, insets */
    --line:          var(--gray-200);
    --line-strong:   var(--gray-300);
    --ink:           var(--gray-900);
    --ink-soft:      var(--gray-600);
    --ink-faint:     var(--gray-500);
    --on-green:      #ffffff;

    --ok:            #1e8a4c;
    --warn:          #b5810a;
    --err:           #d6453d;

    /* Layered shadows (soft, light, crisp) */
    --shadow-sm:     0 1px 2px rgba(16,24,40,.05), 0 2px 4px rgba(16,24,40,.06);
    --shadow-md:     0 4px 14px rgba(16,24,40,.09);
    --shadow-lg:     0 20px 50px rgba(16,24,40,.18);

    --radius:        14px;
    --radius-sm:     10px;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; height: 100%; width: 100%;
    background: var(--canvas);
    font: 14.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#llt-app {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ---- Left: CRM framed inside a scaled fixed-size monitor ----------- */
/* Textured light "desk": a soft top-down brand wash over a faint dot grid,
   so the framed CRM sits on a surface with detail instead of flat color. */
#llt-left {
    position: relative;
    flex: 1 1 auto;
    min-width: 320px;
    background-color: var(--canvas);
    background-image:
        radial-gradient(rgba(31,42,55,.045) 1px, transparent 1px),
        radial-gradient(135% 125% at 50% -12%, #f2fbf6 0%, #eaf0f6 52%, var(--canvas) 100%);
    background-size: 22px 22px, auto;
    overflow: hidden;
}
#llt-stage {
    position: absolute; inset: 0;
    overflow: hidden;
    --llt-k: 1;
}
#llt-monitor {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(var(--llt-k));
    transform-origin: center center;
    will-change: transform;
}
/* Clean silver "monitor" bezel that lifts the CRM screen off the desk.
   14px border each side is load-bearing (training.js MONITOR_BEZEL = 28). */
#llt-screen {
    position: relative;
    width: 1440px;
    height: 900px;
    background: #ffffff;
    /* Dark-gray frame so the CRM screen reads as a defined element, matching the
       darker chrome inside the CRM itself. */
    border: 14px solid var(--gray-700);
    border-radius: 20px;
    box-shadow:
        var(--shadow-lg),
        0 2px 6px rgba(16,24,40,.18),
        inset 0 0 0 1px rgba(0,0,0,.25);
    overflow: hidden;
}
#llt-frame { border: 0; width: 100%; height: 100%; display: block; background: #fff; }

.llt-frame-loading {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
    background: var(--surface-2); color: var(--ink-soft);
    z-index: 2;
    transition: opacity .35s ease;
    font-size: 20px; font-weight: 500;
}
.llt-frame-loading.llt-gone { opacity: 0; pointer-events: none; }
.llt-spinner {
    width: 38px; height: 38px; border-radius: 50%;
    border: 3px solid rgba(8,117,45,.16); border-top-color: var(--green);
    animation: llt-spin .9s linear infinite;
}
@keyframes llt-spin { to { transform: rotate(360deg); } }

/* ---- Resizer (with a subtle grip detail) --------------------------- */
#llt-resizer {
    position: relative;
    flex: 0 0 7px;
    cursor: col-resize;
    /* Dark gray to match the #llt-screen frame, so the divider blends with it. */
    background: var(--gray-700);
    border-left: 1px solid var(--gray-800);
    border-right: 1px solid var(--gray-800);
    transition: background .15s ease;
}
#llt-resizer::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 3px; height: 34px; border-radius: 3px;
    background: rgba(255,255,255,.55); transition: background .15s ease;
}
#llt-resizer:hover, #llt-resizer:focus { background: var(--gray-600); outline: none; }
#llt-resizer:hover::before, #llt-resizer:focus::before { background: rgba(255,255,255,.85); }

/* ---- Right: coaching panel ----------------------------------------- */
#llt-right {
    flex: 0 0 410px;
    max-width: 92vw;
    height: 100vh;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line-strong);
    box-shadow: -16px 0 44px rgba(16,24,40,.07);
    position: relative;
}

/* Header: elevated white-to-gray with a thin brand accent line. */
.llt-head {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(16,24,40,.05);
}
.llt-head::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--green) 0%, var(--teal) 28%, transparent 62%);
    opacity: .55;
}

/* Animated gradient ring around the Siri-style Jax avatar. */
.llt-avatar-wrap {
    position: relative; flex: 0 0 auto;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
}
.llt-avatar-wrap::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--green), var(--teal), var(--blue), var(--teal), var(--green));
    animation: llt-ring 4.5s linear infinite;
    box-shadow: 0 2px 10px rgba(8,117,45,.20);
}
@keyframes llt-ring { to { transform: rotate(360deg); } }
.llt-avatar-wrap { z-index: 1; }
.llt-avatar, img.llt-avatar, #taskbar-jax-gif {
    position: relative; z-index: 1;
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid var(--surface); box-sizing: border-box;
    object-fit: cover; background: var(--mint);
}
/* Ripple "listening" rings around the avatar, like the mobile orb. [LLT 2026-06-30] */
.llt-avatar-ripple {
    position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 50%; border: 2px solid rgba(37,148,87,.45); opacity: 0; z-index: 0; pointer-events: none;
    animation: llt-avatar-ripple 2.2s ease-out infinite;
}
.llt-avatar-ripple:nth-of-type(2) { animation-delay: 1.1s; }
@keyframes llt-avatar-ripple {
    0%   { transform: scale(.85); opacity: .55; }
    100% { transform: scale(1.75); opacity: 0; }
}
.llt-head-text .llt-title { font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: .1px; }
.llt-head-text .llt-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.llt-grow { flex: 1 1 auto; }
.llt-statuswrap {
    display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-soft);
    background: var(--gray-100); border: 1px solid var(--line);
    padding: 4px 9px; border-radius: 999px;
}
.llt-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); flex: 0 0 auto; }
.llt-status-dot.llt-live { background: var(--ok); box-shadow: 0 0 0 0 rgba(30,138,76,.55); animation: llt-pulse 1.6s infinite; }
.llt-status-dot.llt-connecting { background: var(--gold); animation: llt-blink 1s ease-in-out infinite; }
.llt-status-dot.llt-error { background: var(--err); }
@keyframes llt-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(30,138,76,.5); }
    70%  { box-shadow: 0 0 0 7px rgba(30,138,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,138,76,0); }
}
@keyframes llt-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.llt-countdown { font-variant-numeric: tabular-nums; color: var(--ink-faint); }

/* Transcript: gray-50 base with a faint dot grid + soft green/blue corner
   washes, so even an empty panel has texture and never reads as blank. */
.llt-transcript {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex; flex-direction: column; gap: 12px;
    /* Clean WHITE conversation area (no dotted texture — it read like the CRM
       desk bleeding through). [LLT 2026-06-30] */
    background: #ffffff;
}

/* Chat bubbles --------------------------------------------------------- */
.llt-msg {
    position: relative;
    max-width: 86%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: llt-msg-in .26s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes llt-msg-in {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Jax (the coach) — primary reading surface: white card, dark text, green
   identity edge, layered shadow with a faint top highlight. */
.llt-msg.llt-jax {
    align-self: flex-start;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-bottom-left-radius: 5px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #ffffff;
}
/* The rep — brand green with a subtle inner sheen, right aligned. */
.llt-msg.llt-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    color: var(--on-green);
    border-bottom-right-radius: 5px;
    box-shadow: 0 5px 16px rgba(8,117,45,.24), inset 0 1px 0 rgba(255,255,255,.18);
}
/* System / status notes — quiet centered pill. */
.llt-msg.llt-sys {
    align-self: center;
    max-width: 94%;
    background: var(--gray-100);
    color: var(--ink-soft);
    font-size: 11.5px; line-height: 1.45;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 12px;
}
.llt-transcript::-webkit-scrollbar { width: 9px; }
.llt-transcript::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 8px; border: 2px solid var(--gray-50); }
.llt-transcript::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Persistent "don't leave" notice ------------------------------------- */
.llt-warnbar {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 14px;
    background: linear-gradient(180deg, #fdf6e3, #fbf0d2);
    border-bottom: 1px solid #f0e0ad;
    color: #8a6a0e;
    font-size: 11.5px; line-height: 1.4;
}
.llt-warnbar svg { flex: 0 0 auto; color: var(--gold); }

/* ---- Gate overlay (pre-login instruction -> Start button) ---------- */
.llt-gate {
    position: absolute;
    left: 0; right: 0;
    top: 67px;
    bottom: 120px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 50% 30%, rgba(37,148,87,.05), transparent 60%),
        rgba(255,255,255,.94);
    backdrop-filter: blur(2px);
    z-index: 3;
    transition: opacity .3s ease;
    padding: 24px;
    text-align: center;
}
.llt-gate.llt-gone { opacity: 0; pointer-events: none; }
.llt-gate-instruct { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 320px; }
.llt-gate-arrow { font-size: 30px; color: var(--green); animation: llt-nudge 1.3s ease-in-out infinite; }
@keyframes llt-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-7px); } }
.llt-gate-title { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .1px; }
.llt-gate-text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.llt-start-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 10px;
    border: 0; border-radius: 999px; cursor: pointer;
    padding: 15px 28px; font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    box-shadow: 0 10px 28px rgba(8,117,45,.30), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    animation: llt-breathe 2.6s ease-in-out infinite;
}
.llt-start-btn::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 38%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.40), transparent);
    transform: skewX(-18deg);
    animation: llt-sheen 4s ease-in-out infinite;
}
.llt-start-btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 36px rgba(8,117,45,.42); }
.llt-start-btn:active { transform: translateY(0); }
@keyframes llt-breathe {
    0%,100% { box-shadow: 0 10px 28px rgba(8,117,45,.30), inset 0 1px 0 rgba(255,255,255,.22); }
    50%     { box-shadow: 0 12px 36px rgba(37,148,87,.46), inset 0 1px 0 rgba(255,255,255,.22); }
}
@keyframes llt-sheen { 0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; } }

/* ---- Audio chooser (post-login) [LLT-AUDIO-CHOOSER 2026-06-29] ------ */
.llt-choose { display: flex; flex-direction: column; align-items: stretch; gap: 11px; width: 100%; max-width: 360px; }
.llt-choose-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.llt-choice {
    display: flex; align-items: center; gap: 13px; text-align: left;
    width: 100%; cursor: pointer;
    padding: 14px 14px; border-radius: var(--radius-md, 14px);
    border: 1px solid var(--line-strong); background: var(--surface);
    box-shadow: 0 2px 8px rgba(31,42,55,.05);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.llt-choice:hover { transform: translateY(-1px); border-color: var(--green); box-shadow: 0 10px 24px rgba(8,117,45,.16); }
.llt-choice:active { transform: translateY(0); }
.llt-choice:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; border-color: var(--line); }
.llt-choice-ico {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px; color: var(--green-deep);
    background: var(--mint); border: 1px solid rgba(8,117,45,.14);
}
.llt-choice-tx { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.llt-choice-h { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.llt-choice-s { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.llt-choice-go { flex: 0 0 auto; color: var(--gray-400); font-size: 18px; font-weight: 700; }
.llt-choice:hover .llt-choice-go { color: var(--green); }
.llt-soon-tag { font-size: 10px; font-weight: 700; color: var(--gold-dark); background: rgba(206,151,13,.12); border-radius: 999px; padding: 2px 7px; align-self: center; }

/* "Online Now" status pill (a notice, NOT a button) [LLT-ONLINE 2026-06-29] */
.llt-online {
    display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%;
    padding: 13px 18px; border-radius: 14px;
    background: var(--mint); border: 1px solid rgba(8,117,45,.22);
    box-shadow: 0 3px 14px rgba(8,117,45,.12);
    margin-top: 10px; cursor: default; user-select: none;
}
.llt-online-dot {
    width: 14px; height: 14px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 0 rgba(37,148,87,.55); animation: llt-blink 1.3s ease-in-out infinite;
    flex: 0 0 auto;
}
@keyframes llt-blink {
    0%      { opacity: 1; box-shadow: 0 0 0 0 rgba(37,148,87,.55); }
    50%     { opacity: .4; box-shadow: 0 0 0 8px rgba(37,148,87,0); }
    100%    { opacity: 1; box-shadow: 0 0 0 0 rgba(37,148,87,0); }
}
.llt-online-tx { display: flex; flex-direction: column; line-height: 1.2; text-align: center; gap: 1px; }
.llt-online-label { font-size: 15.5px; font-weight: 800; color: var(--green-deep); letter-spacing: .1px; }
.llt-online-sub { font-size: 12.5px; color: var(--ink-soft); }

/* Primary choice: DEFAULT computer-mic start (big, green, the obvious path). */
.llt-primary-choice {
    display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; cursor: pointer;
    padding: 16px 18px; border: 0; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    box-shadow: 0 10px 26px rgba(8,117,45,.30), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
    animation: llt-breathe 2.6s ease-in-out infinite;
}
.llt-primary-choice:hover { transform: translateY(-1px); filter: brightness(1.04); }
.llt-primary-choice:active { transform: translateY(0); }
.llt-pc-ico { flex: 0 0 auto; opacity: .95; }
.llt-pc-tx { display: flex; flex-direction: column; gap: 2px; }
.llt-pc-h { font-size: 16px; font-weight: 800; letter-spacing: .1px; }
.llt-pc-s { font-size: 12px; opacity: .92; line-height: 1.3; }

/* Secondary: the "no mic/speakers" escape hatch (quiet, clearly not the default). */
.llt-text-choice {
    width: 100%; border: 0; background: none; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
    text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px;
}
.llt-text-choice:hover { color: var(--green-deep); }

/* Alternative-methods view (phone options behind the secondary button). */
.llt-alt { display: flex; flex-direction: column; align-items: stretch; gap: 11px; width: 100%; max-width: 360px; }

/* Starting-point intent buttons (shown first, before the audio chooser). [LLT-INTENT 2026-06-30] */
.llt-intent { display: flex; flex-direction: column; align-items: stretch; gap: 11px; width: 100%; max-width: 360px; }
.llt-intent-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; text-align: center; }
.llt-intent-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; width: 100%; cursor: pointer;
    padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
    box-shadow: 0 2px 8px rgba(31,42,55,.05);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.llt-intent-btn:hover { transform: translateY(-1px); border-color: var(--green); box-shadow: 0 10px 24px rgba(8,117,45,.16); }
.llt-intent-btn:active { transform: translateY(0); }
.llt-intent-h { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.llt-intent-s { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }

/* Stepped chooser: Step 1 numbered box + Step 2 yellow share warning. [LLT-STEPS 2026-06-30] */
.llt-stepbox {
    display: flex; gap: 12px; align-items: flex-start; width: 100%;
    padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface);
}
.llt-stepnum {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--green); color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 2px 6px rgba(8,117,45,.3);
}
.llt-stepbody { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.llt-warnbox {
    display: flex; gap: 11px; align-items: center; width: 100%;
    padding: 12px 14px; border-radius: 14px;
    background: #fff8e6; border: 1.5px solid var(--gold);
}
.llt-warnico { flex: 0 0 auto; color: var(--gold-dark); display: inline-flex; }
.llt-warntx { font-size: 12.5px; color: #7a5b06; line-height: 1.4; text-align: left; }
.llt-warntx b { color: var(--gold-dark); }

/* Chooser sub-panels (call-in / phone-as-mic) ------------------------ */
.llt-subpanel { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 340px; }
.llt-back {
    align-self: flex-start; border: 0; background: none; cursor: pointer;
    color: var(--ink-soft); font-size: 12.5px; font-weight: 600; padding: 2px 0;
}
.llt-back:hover { color: var(--green-deep); }
.llt-subpanel-h { font-size: 16px; font-weight: 800; color: var(--ink); }
.llt-subpanel-s { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
/* Prominent, pulsing call-in card so the rep clearly sees they must dial in. */
.llt-callin-panel {
    border: 2px solid var(--err);
    border-radius: 16px;
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, #fff5f4 0%, #ffffff 72%);
    animation: llt-callin-pulse 1.5s ease-in-out infinite;
}
@keyframes llt-callin-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(214,69,61,.40), 0 8px 24px rgba(214,69,61,.14); }
    50%     { box-shadow: 0 0 0 9px rgba(214,69,61,0), 0 10px 30px rgba(214,69,61,.22); }
}
.llt-bigblock { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.llt-biglabel { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--err); }
.llt-bignum {
    font-size: 31px; font-weight: 800; letter-spacing: .5px; color: var(--err);
    text-decoration: none; line-height: 1.05;
}
.llt-bignum:hover { text-decoration: underline; }
.llt-bigid {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--ink);
    background: #fff; border: 2px dashed var(--line-strong); border-radius: 12px;
    padding: 8px 18px;
}
.llt-waitrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.llt-spinner-sm { width: 15px; height: 15px; border-width: 2px; }
.llt-qrbox {
    width: 188px; height: 188px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px;
}
.llt-qrbox img, .llt-qrbox canvas, .llt-qrbox svg { width: 100%; height: 100%; image-rendering: pixelated; }
.llt-qr-soon { font-size: 12px; color: var(--ink-faint); }
.llt-pinrow { font-size: 13px; color: var(--ink-soft); }
.llt-pin {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 20px; font-weight: 700; letter-spacing: 4px; color: var(--ink); margin-left: 4px;
}

/* ---- Controls ------------------------------------------------------ */
.llt-controls {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    display: flex; flex-direction: column; gap: 11px;
}

/* Phone dial-in panel ------------------------------------------------- */
.llt-callin {
    background: linear-gradient(180deg, var(--mint) 0%, #ffffff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 12px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.llt-callin-head {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; color: var(--ink-soft);
}
.llt-callin-ico { color: var(--green); display: inline-flex; }
.llt-callin-head a { color: var(--green-deep); font-weight: 700; text-decoration: none; }
.llt-callin-head a:hover { text-decoration: underline; }
.llt-callin-id {
    margin-top: 5px;
    font: 800 22px/1 "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: 2px;
    color: var(--ink);
}
.llt-callin-hint { font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; }
.llt-ctl-row { display: flex; align-items: center; gap: 8px; }
.llt-btn {
    border: 0; border-radius: var(--radius-sm); cursor: pointer;
    padding: 10px 12px; font-size: 13px; font-weight: 600;
    color: #fff; background: var(--green);
    transition: filter .15s ease, background .15s ease, transform .12s ease;
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
.llt-btn:hover { filter: brightness(1.05); }
.llt-btn-primary { width: 100%; background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.llt-btn-ghost {
    background: var(--surface); color: var(--ink-soft); flex: 0 0 auto;
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.llt-btn-ghost:hover { background: var(--gray-50); color: var(--ink); }
.llt-btn-ghost.llt-active { background: var(--err); border-color: var(--err); color: #fff; box-shadow: 0 4px 12px rgba(214,69,61,.28); }
.llt-hidden { display: none !important; }

.llt-lang {
    display: inline-flex; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--line-strong); flex: 0 0 auto; background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.llt-lang button {
    border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
    padding: 7px 13px; font-size: 12px; font-weight: 700;
    transition: background .15s ease, color .15s ease;
}
.llt-lang button:hover { color: var(--ink); background: var(--gray-50); }
.llt-lang button.llt-active { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; }

/* End-session button (standalone; the mic/EN-ES row was removed). [LLT 2026-06-30] */
.llt-end-btn {
    align-self: flex-start; border: 1px solid var(--line-strong); background: var(--surface); color: var(--err);
    border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: background .15s ease, border-color .15s ease;
}
.llt-end-btn:hover { background: #fdecea; border-color: #f0b4ad; }

/* Composer ------------------------------------------------------------- */
.llt-chat { display: flex; align-items: flex-end; gap: 9px; }
.llt-chat textarea {
    flex: 1 1 auto; resize: none; height: 46px; min-height: 46px; max-height: 120px;
    border-radius: 14px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink); padding: 12px 16px; font: inherit; line-height: 1.4;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.llt-chat textarea::placeholder { color: var(--ink-faint); }
.llt-chat textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(37,148,87,.16);
}
.llt-chat textarea:disabled { background: var(--gray-100); color: var(--ink-faint); cursor: not-allowed; box-shadow: none; }
.llt-chat .llt-send {
    flex: 0 0 auto; width: 46px; height: 46px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(8,117,45,.30), inset 0 1px 0 rgba(255,255,255,.20);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.llt-chat .llt-send:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 9px 20px rgba(8,117,45,.40); }
.llt-chat .llt-send:active { transform: translateY(0) scale(.96); }

/* ---- Pre-login lockdown -------------------------------------------- */
/* Before sign-in the right pane shows ONLY the "Log in to begin" message:
   no header, no warn bar, no composer, nothing typeable. training.js
   removes .llt-prelogin (and enables the composer) on login. */
body.llt-prelogin .llt-head,
body.llt-prelogin .llt-controls,
body.llt-prelogin .llt-warnbar { display: none !important; }
body.llt-prelogin .llt-gate {
    top: 0; bottom: 0;
    background:
        radial-gradient(circle at 50% 32%, rgba(37,148,87,.06), transparent 58%),
        radial-gradient(circle at 80% 85%, rgba(59,130,246,.05), transparent 55%),
        #ffffff;
}

/* ---- Desktop-required block screen --------------------------------- */
#llt-blockscreen { display: none; }
body.llt-blocked #llt-blockscreen,
body.llt-show-block #llt-blockscreen {
    display: flex;
    position: fixed; inset: 0;
    z-index: 2147483000;
    align-items: center; justify-content: center;
    padding: 24px;
    background-color: var(--canvas);
    background-image:
        radial-gradient(rgba(31,42,55,.05) 1px, transparent 1px),
        radial-gradient(130% 90% at 50% 0%, #f2fbf6 0%, #eaf0f6 58%, var(--canvas) 100%);
    background-size: 22px 22px, auto;
}
.llt-block-card {
    max-width: 460px; width: 100%;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 34px 28px 30px;
    box-shadow: var(--shadow-lg);
}
.llt-block-icon {
    width: 92px; height: 92px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--green);
    background: radial-gradient(circle at 50% 40%, rgba(37,148,87,.16), rgba(37,148,87,.04) 70%);
    border: 1px solid rgba(37,148,87,.30);
}
.llt-block-card h1 { margin: 0 0 12px; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: .2px; }
.llt-block-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.llt-block-strong { color: var(--ink) !important; font-weight: 600; margin-bottom: 8px !important; }
.llt-block-url {
    display: inline-block;
    margin: 2px auto 14px;
    padding: 11px 18px;
    font-size: 16px; font-weight: 800; letter-spacing: .3px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(8,117,45,.30);
    user-select: all;
}
.llt-block-foot { font-size: 12.5px !important; color: var(--ink-faint) !important; margin-bottom: 0 !important; }

/* ---- Accessibility: respect reduced-motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
    .llt-status-dot.llt-live,
    .llt-status-dot.llt-connecting,
    .llt-avatar-wrap::before,
    .llt-avatar-ripple,
    .llt-online-dot,
    .llt-start-btn,
    .llt-start-btn::after,
    .llt-gate-arrow,
    .llt-msg { animation: none !important; }
    .llt-spinner { animation-duration: 1.4s; }
    * { scroll-behavior: auto !important; }
}

/* ---- Mobile / narrow: stack the panel under the CRM ---------------- */
@media (max-width: 820px) {
    #llt-app { flex-direction: column; }
    #llt-resizer { display: none; }
    #llt-left { flex: 1 1 60%; min-height: 0; }
    #llt-right { flex: 1 1 40%; width: 100%; max-width: 100%; height: auto; min-height: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
}
/* NOTE: the device gate (training.js deviceTooSmall < 1024px) covers the app
   with the desktop-required block screen well before this 820px breakpoint,
   so this stacking rule is a defensive fallback only. */
