/* ═══════════════════════════════════════════════════════════════
   TRATOK LABS: styles for the parts added in December 2026
   (sign-up, dashboard, staff page, try-it boxes, help and status pages, widgets page).
   Loaded after tratok-design.css. Phone rules are kept last.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Small helpers ─── */
.lx-muted  { color: var(--mist); font-size: 0.9rem; line-height: 1.6; }
.lx-center { text-align: center; }
.lx-email  { color: var(--snow); word-break: break-all; }
.lx-dot    { color: var(--ghost); margin: 0 4px; }
.lx-note   { margin-bottom: 20px; }
.lx-k      { display: inline-block; min-width: 0; margin-right: 6px; color: var(--ghost); font-family: 'Sora', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* The box people never see or fill (robots do). Off-screen, not display:none, which robots skip. */
.lx-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ─── Sign-up and sign-in ─── */
.auth-card .lx-tid { margin: 4px 0 8px; }
.auth-card .lx-tid + .lx-muted { margin: 0 0 4px; font-size: 0.84rem; }
.lx-suggest { margin: 8px 0 0; font-size: 0.88rem; color: var(--amber-glow); text-align: left; }
.lx-linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 700; color: var(--teal-glow); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; word-break: break-all; }
.lx-linkbtn:hover { color: var(--white); }
.lx-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; text-align: left; font-size: 0.9rem; color: var(--mist); line-height: 1.5; cursor: pointer; }
.lx-check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ember); cursor: pointer; }
.lx-pw { position: relative; }
.lx-pw input { padding-right: 76px; }
.lx-pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-width: 60px; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--teal-glow); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.lx-pw-eye:hover, .lx-pw-eye:focus-visible { background: var(--glass-hover); color: var(--white); outline: none; }
[dir="rtl"] .lx-pw input { padding-right: 16px; padding-left: 76px; }
[dir="rtl"] .lx-pw-eye { right: auto; left: 6px; }
.lx-inline-form { margin: 0; }
.lx-inline-form .lx-muted { margin: 0 0 12px; }
.lx-hero-tid { margin: 18px 0 0; font-size: 0.92rem; color: var(--mist); }
.lx-hero-tid a { color: var(--teal-glow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Dashboard: getting started ─── */
.lx-checklist { margin-bottom: 24px; }
.lx-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lx-step { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: var(--glass); color: var(--mist); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.lx-step-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; border: 2px solid var(--ghost); color: transparent; }
.lx-step.done { color: var(--snow); border-color: rgba(34, 197, 94, 0.3); }
.lx-step.done .lx-step-dot { background: var(--success); border-color: var(--success); color: #06210f; }
.lx-step.next { color: var(--white); border-color: rgba(232, 93, 58, 0.55); background: rgba(232, 93, 58, 0.08); }
.lx-step.next .lx-step-dot { border-color: var(--ember); }
.lx-checklist > .lx-muted { margin: 0 0 14px; }

/* ─── Dashboard: this month's free calls ─── */
.lx-meter-card { margin-bottom: 24px; }
.lx-meter { height: 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 2px 0 12px; }
.lx-meter-fill { height: 100%; min-width: 0; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--teal), var(--teal-glow)); transition: width 0.4s ease; }
.lx-meter-high .lx-meter-fill { background: linear-gradient(90deg, var(--amber), var(--amber-glow)); }
.lx-meter-full .lx-meter-fill { background: linear-gradient(90deg, var(--ember), var(--danger)); }
.lx-meter-line { margin: 0 0 6px; color: var(--snow); font-size: 0.98rem; }
.lx-meter-card .lx-muted { margin: 0; }

/* ─── Dashboard: the apps ─── */
.lx-app { margin-top: 16px; }
.lx-app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.lx-app-head h3 { margin: 0; word-break: break-word; }
.lx-app-url { margin: 0 0 10px; color: var(--ghost); font-size: 0.86rem; word-break: break-all; }
.lx-app-line { margin: 0 0 12px; color: var(--snow); font-size: 0.95rem; line-height: 1.6; }
.lx-app-line.lx-muted { color: var(--mist); }
.lx-app-line a { color: var(--teal-glow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lx-keys { display: grid; gap: 8px; margin: 4px 0 12px; }
.lx-key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--glass-border); }
.lx-key-label { flex: none; min-width: 64px; color: var(--mist); font-family: 'Sora', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.lx-key-val { flex: 1 1 160px; min-width: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.86rem; color: var(--snow); word-break: break-all; background: none; padding: 0; }
.lx-copy, .lx-reveal { flex: none; min-height: 36px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: var(--glass); color: var(--snow); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.lx-copy:hover, .lx-reveal:hover { background: var(--glass-hover); color: var(--white); }
.lx-app-actions { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.lx-replace { flex: 1 1 260px; min-width: 0; }
.lx-replace summary { cursor: pointer; color: var(--mist); font-size: 0.86rem; font-weight: 600; padding: 8px 0; }
.lx-replace summary:hover { color: var(--white); }
.lx-replace .lx-muted { margin: 4px 0 10px; }

/* ─── Dashboard: forms in a row ─── */
.lx-row-form label { display: block; margin-bottom: 8px; color: var(--snow); font-size: 0.95rem; }
.lx-row-inputs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lx-row-inputs input[type="number"] { width: 150px; max-width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: var(--glass); color: var(--snow); font: inherit; font-size: 0.95rem; }
.lx-row-inputs input[type="number"]:focus { outline: none; border-color: var(--teal); }
.lx-unit { color: var(--mist); font-weight: 700; font-size: 0.85rem; }

/* ─── Staff ─── */
.lx-table td, .lx-table th { vertical-align: middle; }
.lx-pct { color: var(--ghost); font-size: 0.8rem; margin-left: 4px; }
.lx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.lx-h4 { margin: 0 0 10px; font-size: 0.8rem; font-family: 'Sora', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mist); }
.lx-list { list-style: none; margin: 0; padding: 0; }
.lx-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--glass-border); font-size: 0.92rem; color: var(--snow); }
.lx-list li:last-child { border-bottom: 0; }
.lx-list li strong { flex: none; }
.lx-req { padding: 18px 0; border-top: 1px solid var(--glass-border); }
.lx-req:first-of-type { border-top: 0; }
.lx-req-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; font-size: 1.02rem; color: var(--white); }
.lx-req-wait { font-size: 0.82rem; color: var(--mist); font-weight: 600; }
.lx-req-late .lx-req-wait { color: var(--amber-glow); }
.lx-req-line { margin: 0 0 6px; font-size: 0.9rem; color: var(--mist); word-break: break-word; }
.lx-req-text { margin: 0 0 8px; font-size: 0.95rem; color: var(--snow); line-height: 1.6; word-break: break-word; }
.lx-req-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.lx-req-actions form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.lx-req-actions .lx-check { margin: 0; font-size: 0.86rem; align-items: center; }

/* ─── "Try it now" box (public pages) ─── */
.lx-try { text-align: left; }
.lx-try-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.lx-try-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lx-try-field > span { color: var(--mist); font-family: 'Sora', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.lx-try-field select, .lx-try-field input { width: 100%; min-height: 48px; padding: 12px 12px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: #131a2a; color: var(--snow); font: inherit; font-size: 0.95rem; }
.lx-try-field select:focus, .lx-try-field input:focus { outline: none; border-color: var(--teal); }
.lx-try-field-wide { grid-column: span 4; }
.lx-try-run { min-height: 48px; white-space: nowrap; }
.lx-try-out { margin-top: 20px; }
.lx-try-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--glass-border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.lx-try-tabs::-webkit-scrollbar { display: none; }
.lx-try-tab { flex: none; min-height: 44px; padding: 10px 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mist); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lx-try-tab:hover { color: var(--snow); }
.lx-try-tab.active { color: var(--white); border-bottom-color: var(--ember); }
.lx-try-panel pre, .lx-con-result pre { margin: 0 0 10px; padding: 16px; max-height: 440px; overflow: auto; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: #0D1220; font-size: 0.8rem; line-height: 1.6; }
.lx-try-panel pre code, .lx-con-result pre code { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; color: var(--snow); background: none; padding: 0; white-space: pre; }
.lx-try-count { margin: 0 0 12px; color: var(--snow); font-weight: 600; font-size: 0.95rem; }
.lx-res { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: var(--glass); color: inherit; text-decoration: none; }
a.lx-res:hover { background: var(--glass-hover); border-color: var(--glass-strong); }
.lx-res-img { flex: none; width: 96px; height: 64px; object-fit: cover; border-radius: 8px; background: #1E293B; }
.lx-res-noimg { background: linear-gradient(135deg, #1a3550, #12263c); }
.lx-res-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lx-res-body strong { color: var(--white); font-size: 0.98rem; overflow-wrap: anywhere; }
.lx-res-body span { color: var(--mist); font-size: 0.86rem; line-height: 1.45; overflow-wrap: anywhere; }
.lx-res-body .lx-res-price { color: var(--teal-glow); font-weight: 700; }
.lx-try-note { margin: 12px 0 0; font-size: 0.84rem; }
.lx-try-msg { margin: 16px 0 0; }
.lx-try-msg a { color: var(--teal-glow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lx-busy .lx-try-run, .lx-busy .lx-con-run { opacity: 0.6; pointer-events: none; }
.lx-try-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: var(--glass); }

/* ─── Dashboard: try a call ─── */
.lx-con-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lx-console .field select { width: 100%; min-height: 48px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: #131a2a; color: var(--snow); font: inherit; font-size: 0.95rem; }
.lx-console .field textarea { min-height: 84px; }
.lx-con-desc { margin: 0 0 16px; }
.lx-con-warn { margin: 4px 0 14px; color: var(--amber-glow); }
.lx-con-meta { margin: 18px 0 10px; color: var(--mist); font-size: 0.88rem; line-height: 1.8; }
.lx-con-http { display: inline-block; padding: 2px 10px; border-radius: var(--radius-full); font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 0.82rem; }
.lx-con-http.ok  { background: rgba(34, 197, 94, 0.14); color: var(--success); }
.lx-con-http.bad { background: rgba(239, 68, 68, 0.14); color: var(--danger); }
.lx-opt { text-transform: none; letter-spacing: 0; color: var(--ghost); font-weight: 500; }
.lx-con-langs { margin-top: 10px; }
.lx-con-code pre { max-height: 420px; }
.endpoint-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.endpoint-try { font-size: 0.8rem; font-weight: 700; color: var(--teal-glow); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Public pages: quick start, help, status, what's new, module pages, widgets ─── */
.lx-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
.lx-page { padding-top: 56px; padding-bottom: 72px; }   /* the side gutters stay the container's own */
.lx-page-head { max-width: 760px; margin: 0 0 36px; }
.lx-page-head .eyebrow { margin-bottom: 16px; }
.lx-page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 0 0 14px; text-wrap: balance; }
.lx-page-head p { font-size: 1.06rem; color: var(--mist); margin: 0; line-height: 1.7; }
.lx-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.lx-block { margin-bottom: 44px; }
.lx-block > h2 { font-size: 1.5rem; margin: 0 0 8px; }
.lx-block > .lx-muted { margin: 0 0 18px; max-width: 760px; }
.lx-prose { max-width: 760px; }
.lx-prose p { color: var(--mist); line-height: 1.75; margin: 0 0 14px; }
.lx-prose h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.lx-prose h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.lx-prose ul, .lx-prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--mist); line-height: 1.75; }
.lx-prose a, .lx-block a.lx-a { color: var(--teal-glow); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lx-prose code, .lx-inline-code { font-family: 'JetBrains Mono', monospace; font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--snow); }
.lx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lx-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-card { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: var(--glass); }
.lx-card h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--white); }
.lx-card p { margin: 0; color: var(--mist); font-size: 0.93rem; line-height: 1.65; }
.lx-card p + p { margin-top: 10px; }
/* The code libraries page: a file's name, size and version on one line, and its check sum below the button. */
.lx-lib { display: flex; flex-direction: column; min-width: 0; }
.lx-lib .lx-cta-row { margin: 14px 0 12px; }
.lx-lib .lx-lib-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 0.84rem; }
.lx-lib-meta code { font-family: 'JetBrains Mono', monospace; color: var(--snow); font-size: 0.92em; overflow-wrap: anywhere; }
.lx-lib .lx-lib-sum { margin-top: auto; font-size: 0.72rem; line-height: 1.5; color: var(--mist); }
.lx-lib-sum code { display: block; font-family: 'JetBrains Mono', monospace; overflow-wrap: anywhere; word-break: break-all; color: var(--mist); }
.lx-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 8px; }
.lx-fig { padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: var(--glass); text-align: center; }
.lx-fig strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.55rem; color: var(--white); line-height: 1.2; }
.lx-fig span { display: block; margin-top: 4px; color: var(--mist); font-size: 0.8rem; }
.lx-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lx-methods a { display: inline-block; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: #0D1220; color: var(--snow); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; text-decoration: none; }
.lx-methods a:hover { border-color: var(--teal); color: var(--white); }
.lx-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.lx-faq details { border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: var(--glass); }
.lx-faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: 'Sora', sans-serif; font-weight: 600; color: var(--snow); }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq details p { margin: 0; padding: 0 20px 18px; color: var(--mist); line-height: 1.7; }
.lx-faq details a { color: var(--teal-glow); text-decoration: underline; text-underline-offset: 3px; }

/* quick start */
.lx-qs { counter-reset: qs; max-width: 860px; }
.lx-qs-step { position: relative; padding: 0 0 30px 58px; }
.lx-qs-step::before { counter-increment: qs; content: counter(qs); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 800; color: var(--white); background: linear-gradient(135deg, var(--ember), var(--ember-deep)); }
.lx-qs-step::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 6px; width: 2px; background: var(--glass-border); }
.lx-qs-step:last-child::after { display: none; }
.lx-qs-step h2 { font-size: 1.2rem; margin: 4px 0 8px; }
.lx-qs-step p { color: var(--mist); line-height: 1.7; margin: 0 0 12px; }
.lx-qs-step .btn { margin: 2px 8px 8px 0; }
.lx-qs-done { color: var(--success); font-weight: 700; }
[dir="rtl"] .lx-qs-step { padding: 0 58px 30px 0; }
[dir="rtl"] .lx-qs-step::before { left: auto; right: 0; }
[dir="rtl"] .lx-qs-step::after { left: auto; right: 18px; }
.lx-code { position: relative; margin: 0 0 14px; min-width: 0; max-width: 100%; }
.lx-code .code-tabs { margin: 0; }
.lx-code pre { margin: 0; padding: 16px 16px; max-height: 420px; overflow: auto; border-radius: 0 0 var(--radius-sm) var(--radius-sm); border: 1px solid var(--glass-border); border-top: 0; background: #0D1220; font-size: 0.8rem; line-height: 1.65; }
.lx-code pre code { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; color: var(--snow); white-space: pre; background: none; padding: 0; }
.lx-code-plain pre { border-top: 1px solid var(--glass-border); border-radius: var(--radius-sm); }
.lx-table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); }
.lx-codes { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.lx-codes th, .lx-codes td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--glass-border); vertical-align: top; color: var(--mist); }
.lx-codes th { color: var(--snow); font-family: 'Sora', sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.03); }
.lx-codes tr:last-child td { border-bottom: 0; }
.lx-codes code { font-family: 'JetBrains Mono', monospace; font-size: 0.84em; color: var(--snow); }
[dir="rtl"] .lx-codes th, [dir="rtl"] .lx-codes td { text-align: right; }

/* status */
.lx-status-top { display: flex; align-items: center; gap: 14px; padding: 22px 24px; margin-bottom: 22px; border-radius: var(--radius-lg); border: 1px solid rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.07); }
.lx-status-top.warn { border-color: rgba(234, 179, 8, 0.35); background: rgba(234, 179, 8, 0.07); }
.lx-status-top.down { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.07); }
.lx-status-top.unknown { border-color: var(--glass-border); background: var(--glass); }
.lx-status-top strong { font-family: 'Sora', sans-serif; font-size: 1.2rem; color: var(--white); }
.lx-status-top span { display: block; color: var(--mist); font-size: 0.88rem; margin-top: 2px; }
.lx-lamp { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); }
.lx-lamp.warn { background: var(--warning); box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.18); }
.lx-lamp.down { background: var(--danger); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18); }
.lx-lamp.unknown { background: var(--ghost); box-shadow: none; }
.lx-parts { list-style: none; margin: 0 0 28px; padding: 0; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: var(--glass); }
.lx-parts li { padding: 15px 20px; border-bottom: 1px solid var(--glass-border); }
.lx-parts li:last-child { border-bottom: 0; }
.lx-part-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lx-part-name { color: var(--snow); font-weight: 600; }
.lx-part-name small { display: block; color: var(--ghost); font-weight: 400; font-size: 0.8rem; margin-top: 2px; }
.lx-part-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; white-space: nowrap; color: var(--success); }
.lx-part-state.warn { color: var(--warning); }
.lx-part-state.down { color: var(--danger); }
.lx-part-state.unknown { color: var(--ghost); }
.lx-part-state .lx-lamp { width: 10px; height: 10px; box-shadow: none; }
.lx-days { display: flex; gap: 3px; align-items: stretch; height: 30px; margin: 12px 0 4px; }
.lx-days i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--success); opacity: 0.85; }
.lx-days i.warn { background: var(--warning); }
.lx-days i.down { background: var(--danger); }
.lx-days i.none { background: rgba(255, 255, 255, 0.1); }
.lx-days-cap { display: flex; justify-content: space-between; color: var(--ghost); font-size: 0.74rem; }

/* what's new */
.lx-news { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.lx-news li { padding: 20px 0; border-bottom: 1px solid var(--glass-border); }
.lx-news li:last-child { border-bottom: 0; }
.lx-news time { display: inline-block; margin-bottom: 6px; color: var(--teal); font-family: 'Sora', sans-serif; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.lx-news h2 { font-size: 1.12rem; margin: 0 0 6px; }
.lx-news p { margin: 0; color: var(--mist); line-height: 1.7; }

/* widgets: the picker, the two lines to paste, the live preview */
.lx-wb-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.lx-wb-auto { grid-column: 1 / -1; margin: 0; }
.lx-wb .lx-h4 { margin-top: 4px; }
.lx-wb-code { margin: 0 0 20px; }
.lx-wb-code pre { margin: 0; padding: 16px; padding-right: 84px; overflow-x: auto; }
.lx-wb-code pre code { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; font-size: 0.8rem; line-height: 1.7; color: var(--snow); white-space: pre; }
[dir="rtl"] .lx-wb-code pre { padding-right: 16px; padding-left: 84px; }
.lx-wb-preview { margin: 0 0 10px; min-height: 120px; }
.lx-wb > .lx-muted { margin: 0; }
.lx-wd-app .lx-row-inputs input[type="url"] { flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: #0D1220; color: var(--white); font: inherit; }
.lx-wd-app .lx-row-inputs input[type="url"]:focus { outline: none; border-color: var(--teal); }
.lx-wd-app > .lx-muted { margin: 0 0 16px; }
.lx-wd-app form { margin: 0 0 6px; }

/* docs page: the line under the address */
.lx-docs-addr { margin: 12px 0 0; }
.docs-head .lx-cta-row { margin-top: 16px; }
.docs-basic .lx-a { color: var(--teal-glow); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* booking test mode (dashboard) */
.lx-tm-list { margin: 0 0 18px; padding-left: 22px; color: var(--mist); line-height: 1.75; font-size: 0.93rem; }
[dir="rtl"] .lx-tm-list { padding-left: 0; padding-right: 22px; }
#test-mode .lx-h4 { margin-top: 18px; }
#test-mode .lx-key-row .lx-inline-form { margin: 0; }

/* top menu: links stay on one line; the two added ones wait for a screen wide enough for them */
.nav-desktop .nav-link { white-space: nowrap; }
@media (min-width: 969px) and (max-width: 1239px) { .nav-desktop .lx-nav-wide { display: none; } }

/* ═══ Narrower screens and phones (kept last) ═══ */
@media (max-width: 968px) {
    .lx-try-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-try-field-wide { grid-column: span 2; }
    .lx-try-run { grid-column: span 2; justify-content: center; }
    .lx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-wb-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .lx-steps { grid-template-columns: minmax(0, 1fr); }
    .lx-two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .lx-app-actions .btn { width: 100%; justify-content: center; }
    .lx-req-actions form, .lx-req-actions .btn { width: 100%; }
    .lx-req-actions .btn { justify-content: center; }
    .lx-footer-grid { grid-template-columns: minmax(0, 1fr); }
    .lx-con-top { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .lx-cards, .lx-cards-2 { grid-template-columns: minmax(0, 1fr); }
    .lx-page { padding-top: 36px; padding-bottom: 52px; }
    .lx-try-card { padding: 18px; }
    .lx-qs-step { padding-left: 50px; }
    [dir="rtl"] .lx-qs-step { padding: 0 50px 30px 0; }
    .lx-parts li { padding: 14px 16px; }
    .lx-cta-row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 600px) {
    /* 16px stops phones from zooming the page when a box is tapped. */
    .field input, .field textarea, .field select, .lx-row-inputs input[type="number"],
    .lx-try-field select, .lx-try-field input, .lx-console .field select, .lx-wd-app .lx-row-inputs input[type="url"] { font-size: 16px; }
    .lx-wb-form { grid-template-columns: minmax(0, 1fr); }
    .lx-wb-code pre { padding-right: 16px; padding-top: 48px; }
    [dir="rtl"] .lx-wb-code pre { padding-left: 16px; }
    .lx-key-label { min-width: 0; flex-basis: 100%; }
    .lx-row-inputs input[type="number"] { width: 100%; flex: 1 1 120px; }
    .lx-try-form { grid-template-columns: minmax(0, 1fr); }
    .lx-try-field-wide, .lx-try-run { grid-column: auto; }
    .lx-res-img { width: 72px; height: 54px; }
    .lx-figs { gap: 10px; }
    .lx-fig { padding: 14px 10px; }
    .lx-fig strong { font-size: 1.25rem; }
    .lx-status-top { padding: 18px; }
}
