:root {
  --bg: #F6F8FC;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #ffffff;
  --ink: #17233B;
  --muted: #64748B;
  --line: #E2E8F0;
  --brand: #2563EB;
  --brand-2: #10B981;
  --green: #10B981;
  --green-dark: #047857;
  --pad: #102447;
  --pad-key: #12304c;
  --pad-fn: #1b4668;
  --gold: #9a6b12;
  --gold-bg: #fbf3df;
  --red: #c4362c;
  --red-bg: #fdeceb;
  --info: #1d4e89;
  --info-bg: #e7f1fb;
  --shadow: 0 18px 46px rgba(16, 42, 84, .12);
  --nav-bg: rgba(255, 255, 255, .94);
  --top-bg: rgba(231, 238, 248, .86);
  --chip: #ffffff;
  --bar: #e3edf7;
  --ok-bg: #e5f6ee;
  --muted-bg: #eef2f7;
  --overlay: rgba(7, 18, 36, .55);
  --glow: rgba(22, 87, 214, .22);
  --font: "Inter", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav: calc(64px + env(safe-area-inset-bottom));
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #070d16;
  --surface: rgba(16, 26, 42, .9);
  --surface-solid: #121c2c;
  --ink: #e8f1fb;
  --muted: #93a6bf;
  --line: #24344c;
  --brand: #4b93ff;
  --brand-2: #2ad4be;
  --green: #2ad4be;
  --green-dark: #8ff3e4;
  --pad: #102447;
  --pad-key: #14324e;
  --pad-fn: #1d4a6e;
  --gold: #f0c14a;
  --gold-bg: #3a2e12;
  --red: #ff8d86;
  --red-bg: #3a1c1c;
  --info: #9ec7ff;
  --info-bg: #15283f;
  --shadow: 0 18px 46px rgba(0, 0, 0, .38);
  --nav-bg: rgba(10, 16, 28, .94);
  --top-bg: rgba(7, 13, 22, .82);
  --chip: #152234;
  --bar: #1c2c42;
  --ok-bg: #12352e;
  --muted-bg: #1a2636;
  --overlay: rgba(0, 0, 0, .64);
  --glow: rgba(42, 212, 190, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
body.lp-body, .lp-body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, var(--glow), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(20, 179, 160, .16), transparent 50%),
    var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
img { max-width: 100%; }

.lp-boot {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; align-content: center;
  text-align: center; color: #d5e2f2; gap: 8px; padding: 24px;
  background: radial-gradient(520px 280px at 50% 38%, rgba(37, 99, 235, .28), transparent 70%), #000;
}
.lp-logo {
  display: block; width: auto; height: auto; max-width: 100%; object-fit: contain;
  background: transparent; border-radius: 0; box-shadow: none;
}
.lp-logo-boot { width: min(156px, 48vw); margin: 0 auto; }
.lp-logo-login { width: min(156px, 42vw); margin: 0 auto; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .35)); }
.lp-mark {
  width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex: 0 0 auto;
  display: block; background: #05070c; box-shadow: 0 6px 14px rgba(5, 7, 12, .28);
}
.lp-mark .lp-logo { width: 62px; height: 62px; max-width: none; margin: -2px 0 0 -14px; object-fit: cover; object-position: center 10%; }
.lp-logo-side { width: min(112px, 76%); margin: 0 auto 6px; }
.lp-logo-ticket { width: min(118px, 48%); margin: 0 auto 6px; }
.lp-kicker {
  margin: 10px 0 0; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 13px;
  background: linear-gradient(100deg, #1d4ed8, #0ea5b7 48%, #12b38a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lp-login {
  --lp-kb: 0px;
  min-height: 100svh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + var(--lp-kb) + env(safe-area-inset-bottom));
  overflow-x: hidden; overflow-y: auto; position: relative;
  background: #07111f; color: #17233b;
}
.lp-login-stage {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 340px at 50% 46%, rgba(37, 99, 235, .42), transparent 68%),
    radial-gradient(280px 180px at 50% 62%, rgba(16, 185, 129, .16), transparent 72%),
    #07111f;
}
.lp-login-panel {
  position: relative; z-index: 1; width: min(420px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.lp-login-logo { display: grid; place-items: center; margin: 0; }
.lp-login-card {
  width: 100%; text-align: center; margin: 0; padding: 28px 24px 18px;
  color: #17233b; background: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
  animation: lp-rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.lp-login-card h1 { margin: 0 0 6px; font-size: clamp(30px, 8vw, 36px); line-height: 1.05; letter-spacing: -.03em; color: #102447; }
.lp-login-card .lp-soft { margin: 0 0 18px; color: #64748b; font-size: 15px; }
.lp-login-card .lp-form { gap: 14px; }
.lp-login-card .lp-form label { color: #475569; font-size: 13px; font-weight: 600; text-align: left; gap: 6px; }
.lp-login-card input {
  background: #f8fafc; color: #17233b; border: 1px solid #e2e8f0; border-radius: 14px;
  min-height: 54px; padding: 12px 14px; scroll-margin: 28vh;
}
.lp-login-card input[name="usuario"] {
  padding-left: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8'><circle cx='12' cy='8' r='3.2'/><path d='M5 19c1.4-3 3.8-4.5 7-4.5S17.6 16 19 19'/></svg>");
  background-repeat: no-repeat; background-position: 14px 50%; background-size: 18px;
}
.lp-login-card input::placeholder { color: #94a3b8; }
.lp-login-card input:focus { border-color: #102447; box-shadow: 0 0 0 4px rgba(16, 36, 71, .1); background-color: #fff; }
.lp-field { position: relative; display: block; }
.lp-field input { padding-right: 72px; padding-left: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); background-repeat: no-repeat; background-position: 14px 50%; background-size: 18px; }
.lp-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 6px 8px; border: 0; background: transparent; color: #475569; font-weight: 600; font-size: 13px; }
.lp-alert { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 14px; font-weight: 600; text-align: left; }
.lp-login-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #eef2f7; color: #94a3b8; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.lp-login .lp-theme { box-shadow: none; }
.lp-login .lp-btn.primary { min-height: 54px; font-size: 17px; margin-top: 4px; letter-spacing: .01em; }
.lp-login.is-keyboard { align-items: flex-start; justify-content: flex-start; }
.lp-login.is-keyboard h1, .lp-login.is-keyboard .lp-soft, .lp-login.is-keyboard .lp-login-foot { display: none; }
.lp-login.is-keyboard .lp-logo-login { width: min(96px, 28vw); }
.lp-login.is-keyboard .lp-login-panel { gap: 10px; margin-top: 4px; }
.lp-login.is-keyboard .lp-login-card { padding-top: 16px; }
@media (max-width: 720px) {
  .lp-login { padding-left: 16px; padding-right: 16px; }
  .lp-login-card { padding: 22px 16px 14px; border-radius: 24px; }
  .lp-login-card h1 { font-size: 28px; }
}
@media (min-width: 980px) {
  .lp-login-panel { width: min(440px, 100%); gap: 28px; }
  .lp-logo-login { width: 172px; }
  .lp-login-card { padding: 32px 28px 20px; }
}
.lp-card, .lp-paper, .lp-side, .lp-sheet, .lp-modal {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.lp-card { padding: 22px; }

.lp-form, .lp-page { display: flex; flex-direction: column; gap: 12px; }
.lp-page { padding: 8px 14px calc(118px + env(safe-area-inset-bottom)); max-width: 980px; margin: 0 auto; width: 100%; min-width: 0; }
.lp-form label, .lp-cliente { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
input, select, textarea {
  width: 100%; max-width: 100%; border: 1px solid var(--line); background: var(--chip); color: var(--ink);
  border-radius: 14px; padding: 12px 14px; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22, 87, 214, .16); }
textarea { min-height: 74px; resize: vertical; }
.lp-btn, .lp-link {
  border-radius: 14px; padding: 12px 14px; font-weight: 700;
  background: var(--chip); color: var(--ink); text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.lp-btn:hover, .lp-link:hover { transform: translateY(-1px); }
.lp-btn:active, .lp-link:active { transform: translateY(0) scale(.98); }
.lp-btn.primary, .lp-cobrar {
  background: linear-gradient(120deg, #1456d6, #0e97b8 58%, #12b38a);
  color: white; border-color: transparent;
  box-shadow: 0 10px 22px rgba(20, 90, 180, .28);
}
.lp-login-card .lp-btn.primary { background-size: 180% 180%; animation: lp-gradient 7s ease infinite; }
.lp-btn.ghost { background: transparent; }
.lp-btn.danger { background: var(--red); color: white; border-color: transparent; }
.lp-btn.gold { background: var(--gold); color: white; border-color: transparent; }
.lp-btn:disabled { opacity: .45; transform: none; }
.lp-btn-block { width: 100%; }
.lp-link { padding: 8px 12px; border-radius: 999px; }
.lp-linkbtn { border: 0; background: transparent; color: var(--green-dark); font-weight: 800; padding: 0; text-align: left; }

.lp-theme {
  display: inline-flex; align-items: center; gap: 2px; width: auto; height: 40px; flex: 0 0 auto;
  padding: 3px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.lp-theme-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 32px; padding: 0 10px; border-radius: 999px; color: #64748b;
  font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.lp-theme-opt svg { display: block; flex: 0 0 auto; }
html:not([data-theme="dark"]) .lp-theme-opt.is-day { background: #102447; color: #fff; box-shadow: 0 4px 10px rgba(16, 36, 71, .18); }
html[data-theme="dark"] .lp-theme { background: #0f1728; border-color: #24344c; box-shadow: none; }
html[data-theme="dark"] .lp-theme-opt { color: #93a6bf; }
html[data-theme="dark"] .lp-theme-opt.is-night { background: #e8eef8; color: #102447; }
.lp-theme-float { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 60; box-shadow: 0 10px 24px rgba(16, 36, 71, .12); }

.lp-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap;
  padding: calc(10px + env(safe-area-inset-top)) 14px 12px;
  position: sticky; top: 0; z-index: 12;
  background: var(--top-bg); backdrop-filter: blur(16px);
}
.lp-top::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, #1657d6, #14b3a0, transparent);
  background-size: 200% 100%; animation: lp-slide 5s linear infinite;
}
.lp-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 180px; }
.lp-id > div { min-width: 0; }
.lp-id strong, .lp-id span, .lp-top strong, .lp-top span { display: block; }
.lp-id strong, .lp-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-id span, .lp-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lp-top span, .lp-soft, .lp-help li, .lp-sys { color: var(--muted); }
.lp-soft { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.lp-top span { font-size: 13px; color: var(--muted); }
.lp-where { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.lp-where-ico {
  width: 42px; height: 42px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; background: #102447; color: #fff;
}
.lp-where-ico svg { width: 20px; height: 20px; display: block; }
.lp-top .lp-where span {
  display: block; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #64748b; line-height: 1.2;
}
.lp-top .lp-where strong { display: block; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
.lp-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 42px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-solid); color: var(--pad); flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(16, 36, 71, .08);
}
.lp-back[hidden] { display: none !important; }
.lp-back svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.lp-top .lp-back span {
  display: inline; overflow: visible; max-width: none; margin: 0;
  font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: none;
  color: var(--pad); line-height: 1; white-space: nowrap;
}
.lp-back:hover { transform: translateY(-1px); }
.lp-back:active { transform: translateY(0) scale(.98); }
html[data-theme="dark"] .lp-back { box-shadow: none; }
html[data-theme="dark"] .lp-top .lp-back span { color: var(--ink); }
.lp-top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; }
.lp-top .lp-top-user {
  display: inline-flex; align-items: center; height: 36px; max-width: 140px; padding: 0 12px;
  border-radius: 999px; background: #102447; color: #fff; font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-session {
  width: 100%; margin: 14px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
}
.lp-session span { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9fb0c3; }
.lp-session strong { font-size: 15px; color: #fff; font-weight: 700; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-top .lp-theme { overflow: visible; }
.lp-top .lp-theme .lp-theme-opt {
  display: inline-flex; overflow: visible; max-width: none; text-overflow: clip;
  white-space: nowrap; font-size: 13px; color: #64748b;
}
html:not([data-theme="dark"]) .lp-top .lp-theme .lp-theme-opt.is-day { color: #fff; }
html[data-theme="dark"] .lp-top .lp-theme .lp-theme-opt { color: #93a6bf; }
html[data-theme="dark"] .lp-top .lp-theme .lp-theme-opt.is-night { color: #102447; }

.lp-printer-pill, .lp-status-line {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--chip);
  border-radius: 999px; padding: 8px 12px; font-weight: 700; color: var(--ink); max-width: 100%;
}
.lp-live { width: 9px; height: 9px; border-radius: 99px; background: #c4cfc8; display: inline-block; flex: 0 0 auto; }
.lp-live.is-on { background: #14b86a; box-shadow: 0 0 0 4px rgba(20, 184, 106, .18); animation: lp-pulse 1.6s ease infinite; }

.lp-filters, .lp-print-actions, .lp-row, .lp-inline, .lp-split, .lp-pager, .lp-range { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lp-inline input { flex: 1; min-width: 0; }
.lp-split { justify-content: space-between; }
.lp-range input { width: auto; flex: 1 1 140px; min-width: 0; }
.lp-range .lp-btn.primary { flex: 0 0 auto; min-height: 44px; padding: 0 18px; }
.lp-num-list { display: flex; flex-direction: column; gap: 8px; }
.lp-num {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-solid);
}
.lp-num > span { display: flex; flex-direction: column; min-width: 0; }
.lp-num small { color: var(--muted); }
.lp-num-ball {
  min-width: 64px; padding: 10px 8px; border-radius: 16px; text-align: center;
  background: #102447; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .03em;
}
.lp-num-side { align-items: flex-end; gap: 6px; }
.lp-num.is-win {
  background: linear-gradient(135deg, #fffbeb 0%, #fde68a 48%, #f59e0b 100%);
  border-color: #d97706; box-shadow: 0 12px 24px rgba(217, 119, 6, .22);
  color: #3f2d08;
}
.lp-num.is-win strong,
.lp-num.is-win small,
.lp-num.is-win .lp-num-side { color: #3f2d08; }
.lp-num.is-win .lp-num-ball { background: #7c2d12; color: #fff; }
.lp-num.is-win .lp-pill { background: #7c2d12; color: #fff; }
.lp-num.is-wait { border-style: dashed; }
.lp-table div.is-win { background: linear-gradient(90deg, #fffbeb, #fde68a); color: #3f2d08; }
.lp-table div.is-win span,
.lp-table div.is-win b,
.lp-table div.is-win strong { color: #3f2d08; }
.lp-close-list { display: flex; flex-direction: column; gap: 10px; }
.lp-close {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface-solid);
  box-shadow: 0 8px 20px rgba(16, 42, 84, .05);
}
.lp-close-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lp-close-top > span { display: flex; flex-direction: column; min-width: 0; }
.lp-close-top small { color: var(--muted); }
.lp-close-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-close-money div { padding: 10px; border-radius: 14px; background: var(--muted-bg); }
.lp-close-money span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-close-money b { font-variant-numeric: tabular-nums; }
.lp-close.is-ok { border-color: #a7f3d0; }
.lp-close.is-ok .lp-close-money b.is-diff { color: #047857; }
.lp-close.is-short { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fff7f7); }
.lp-close.is-short .lp-close-money b.is-diff { color: #b91c1c; }
.lp-close.is-over { border-color: #fde68a; }
.lp-close.is-over .lp-close-money b.is-diff { color: #b45309; }
.lp-close-note { margin: 0; color: var(--muted); font-size: 13px; }
html[data-theme="dark"] .lp-close.is-short { background: #2a1518; color: #fee2e2; }
html[data-theme="dark"] .lp-close.is-ok .lp-close-money b.is-diff { color: #6ee7b7; }
html[data-theme="dark"] .lp-close.is-short .lp-close-money b.is-diff { color: #fecaca; }
html[data-theme="dark"] .lp-close.is-over .lp-close-money b.is-diff { color: #fcd34d; }
html[data-theme="dark"] .lp-close.is-short .lp-close-top b,
html[data-theme="dark"] .lp-close.is-short .lp-close-money b,
html[data-theme="dark"] .lp-close.is-short .lp-close-money span,
html[data-theme="dark"] .lp-close.is-short small { color: #fee2e2; }
html[data-theme="dark"] .lp-top .lp-where span { color: #c5d4e8; }
html[data-theme="dark"] .lp-top .lp-where strong { color: #f8fafc; }
html[data-theme="dark"] .lp-bottomnav .lp-navitem { color: #d5e2f2; }
html[data-theme="dark"] .lp-bottomnav .lp-navitem.is-on { background: #2563eb; color: #fff; }
.lp-chip, .lp-type {
  border: 1px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px;
  padding: 8px 12px; font-weight: 700;
  transition: transform .18s, background .2s, color .2s;
}
.lp-chip:active, .lp-type:active { transform: scale(.96); }
.lp-chip.is-on, .lp-type.is-on, .lp-bottomnav .is-on, .lp-sidenav .is-on, .lp-tabs .is-on {
  background: linear-gradient(120deg, #123056, #0e6e86); color: white; border-color: transparent;
}
.lp-search { margin: 2px 0 8px; }

.lp-lots { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; max-width: 100%; scroll-snap-type: x proximity; }
.lp-lot {
  min-width: 128px; max-width: 70vw; text-align: left; border: 1px solid var(--line); background: var(--chip); color: var(--ink);
  border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start;
  animation: lp-rise .4s both; transition: transform .18s, background .2s, color .2s;
}
.lp-lot:nth-child(2) { animation-delay: .04s; }
.lp-lot:nth-child(3) { animation-delay: .08s; }
.lp-lot:nth-child(4) { animation-delay: .12s; }
.lp-lot:nth-child(5) { animation-delay: .16s; }
.lp-lot:nth-child(6) { animation-delay: .2s; }
.lp-lot:active { transform: scale(.97); }
.lp-lot i, .lp-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.lp-lot b { font-size: 14px; }
.lp-lot small { color: var(--muted); font-size: 12px; }
.lp-lot.is-on { background: var(--pad); color: white; border-color: var(--pad); }
.lp-lot.is-on small { color: #c9ddd2; }
.lp-lot.is-soon { border-color: #d97706; }
.lp-lot.is-soon small { color: #9a3412; font-weight: 700; }
.lp-lot.is-on.is-soon small { color: #ffedd5; }
.lp-lot.is-closed small { color: #9f2d28; font-weight: 700; }
.lp-lot.is-on.is-closed small { color: #fecaca; }
.lp-cline.is-closed span { color: #9f2d28; font-weight: 700; }
html[data-theme="dark"] .lp-lot.is-soon small { color: #fdba74; }
html[data-theme="dark"] .lp-lot.is-closed small,
html[data-theme="dark"] .lp-cline.is-closed span { color: #fca5a5; }
#lp-cierre { margin: 8px 0 4px; }

.lp-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.lp-type { border-radius: 14px; padding: 12px 6px; min-width: 0; }

.lp-display { text-align: center; padding: 8px 0 12px; }
.lp-digits { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.lp-digits span {
  width: 44px; height: 56px; border-radius: 14px; background: var(--chip); border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center; font-family: var(--mono); font-size: 26px; font-weight: 700;
}
.lp-digits span.is-on { border-color: var(--brand-2); animation: lp-pop .28s cubic-bezier(.2, .8, .2, 1); }
.lp-digits em { font-style: normal; color: var(--muted); font-weight: 800; }
.lp-riesgo { font-weight: 700; color: var(--green-dark); overflow-wrap: anywhere; }
.lp-riesgo.is-warn { color: var(--gold); }
.lp-riesgo.is-bad { color: var(--red); }

.lp-pad {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  background: radial-gradient(420px 180px at 20% 0%, rgba(20, 140, 180, .28), transparent 60%), var(--pad);
  padding: 12px; border-radius: 24px;
}
.lp-key {
  height: 58px; border: 0; border-radius: 16px; background: var(--pad-key); color: white;
  font-size: 24px; font-weight: 700; transition: transform .12s;
}
.lp-key.fn { font-size: 14px; background: var(--pad-fn); }
.lp-key:active { transform: scale(.94); }
.lp-amounts { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; max-width: 100%; }
.lp-otro { display: flex; gap: 8px; min-width: 0; }
.lp-otro input { min-width: 0; }

.lp-entry { padding: 0 14px 160px; min-width: 0; animation: lp-rise .4s both; }
.lp-cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 18; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: linear-gradient(120deg, #0c2344, #0d6d86); color: white; border: 0; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 12px 28px rgba(8, 24, 48, .32); animation: lp-up .35s cubic-bezier(.2, .8, .2, 1);
}
.lp-cart-bar em { font-style: normal; color: #b7f0d2; }
.lp-side {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 32;
  background: var(--surface-solid); border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(110%); max-height: 86dvh; overflow: auto;
  transition: transform .4s cubic-bezier(.2, .85, .2, 1);
}
.lp-side.is-open { transform: none; }
.lp-side-head, .lp-cline, .lp-rline-top, .lp-rtotal, .lp-meta div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lp-cline { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lp-cline span, .lp-cline small { display: block; color: var(--muted); }
.lp-x { border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--ink); }
.lp-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 28; }
.lp-backdrop[hidden], .lp-backdrop.is-hidden { display: none !important; }
.lp-side:not(.is-open) { pointer-events: none; }
.lp-tabs { display: none; gap: 8px; padding: 0 14px 8px; flex-wrap: wrap; }

.lp-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 16;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--nav-bg); border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  backdrop-filter: blur(16px);
}
.lp-bottomnav button { border: 0; background: transparent; font-weight: 700; font-size: 12px; color: var(--muted); padding: 10px 4px; border-radius: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-bottomnav .is-on { color: white; }

.lp-shell { min-height: 100dvh; }
.lp-sidenav { display: none; }
.lp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-kpi { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); min-width: 0; animation: lp-rise .45s both; }
.lp-kpi:nth-child(2) { animation-delay: .05s; }
.lp-kpi:nth-child(3) { animation-delay: .1s; }
.lp-kpi:nth-child(4) { animation-delay: .15s; }
.lp-kpi span, .lp-kpi small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.lp-kpi strong { display: block; font-size: clamp(18px, 4.5vw, 22px); margin-top: 4px; overflow-wrap: anywhere; }
.lp-bars { display: flex; flex-direction: column; gap: 8px; }
.lp-bar { display: grid; grid-template-columns: minmax(72px, 92px) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; min-width: 0; }
.lp-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-bar div { background: var(--bar); border-radius: 99px; height: 8px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1657d6, #14b3a0); border-radius: 99px; }
.lp-bar b { font-family: var(--mono); font-size: 12px; }
.lp-ticket-card, .lp-activity {
  width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  background: var(--chip); border: 1px solid var(--line); border-radius: 16px; padding: 12px; color: var(--ink); min-width: 0;
  animation: lp-rise .35s both;
}
.lp-ticket-card span, .lp-activity { display: flex; flex-direction: column; min-width: 0; }
.lp-ticket-card small, .lp-activity small { color: var(--muted); }
.lp-ticket-card strong { font-family: var(--mono); font-size: 14px; }
.lp-pill { border-radius: 999px; padding: 4px 8px; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.lp-pill.ok { background: var(--ok-bg); color: var(--green-dark); }
.lp-pill.bad, .is-bad { background: var(--red-bg); color: var(--red); }
.lp-pill.gold { background: var(--gold-bg); color: var(--gold); }
.lp-pill.info { background: var(--info-bg); color: var(--info); }
.lp-pill.muted { background: var(--muted-bg); color: var(--muted); }
.lp-table { display: flex; flex-direction: column; gap: 8px; }
.lp-table div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--chip); border-radius: 14px; padding: 10px; }
.lp-table small { grid-column: 2 / -1; color: var(--muted); }
.lp-mono { font-family: var(--mono); overflow-wrap: anywhere; }
.lp-alert { width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 12px; background: var(--info-bg); color: var(--info); font-weight: 700; }
.lp-alert.gold { background: var(--gold-bg); color: var(--gold); }
.lp-res { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.lp-res input { text-align: center; }
.lp-res small { display: block; color: var(--muted); }
.lp-res-meter { height: 8px; border-radius: 99px; background: var(--bar); overflow: hidden; }
.lp-res-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #123056, #0e97b8 60%, #12b38a); }
.lp-res-tools { display: grid; gap: 10px; }
.lp-res-card { padding: 16px; border-radius: 22px; border: 1px solid var(--line); border-top: 5px solid var(--lot, #123056); background: var(--surface-solid); box-shadow: var(--shadow); }
.lp-res-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-res-card header b { display: block; font-size: 18px; }
.lp-res-card header small { color: var(--muted); }
.lp-balls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.lp-balls label { align-items: center; text-align: center; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.lp-ball-in {
  height: 84px; padding: 0; border-radius: 22px; text-align: center;
  font-size: 32px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.lp-res-board, .lp-res-wait { display: flex; flex-direction: column; gap: 8px; }
.lp-res-wait { flex-direction: row; }
.lp-res-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--ink);
}
.lp-res-row.is-on { border-color: #0e6e86; box-shadow: inset 0 0 0 1px #0e6e86; }
.lp-res-row span { display: flex; flex-direction: column; min-width: 0; }
.lp-res-row small { color: var(--muted); }
.lp-mini-balls { flex-direction: row !important; gap: 6px; }
.lp-mini-balls b {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #102447; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums;
}
.lp-mini-balls b:nth-child(1) { background: #b45309; }
.lp-mini-balls b:nth-child(2) { background: #334155; }
.lp-mini-balls b:nth-child(3) { background: #9a3412; }
.lp-results h2 { margin: 8px 0 0; font-size: 16px; }
.lp-lot-card { padding: 16px; border-radius: 22px; border: 1px solid var(--line); border-top: 5px solid var(--lot, #123056); background: var(--surface-solid); box-shadow: var(--shadow); }
.lp-lot-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lp-lot-card header b { display: block; font-size: 18px; }
.lp-lot-card header small { color: var(--muted); }
.lp-lot-x { width: 36px; height: 36px; border: 0; border-radius: 12px; background: var(--muted-bg); color: var(--ink); font-size: 22px; line-height: 1; }
.lp-lot-preview { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; padding: 14px 16px; border-radius: 16px; background: var(--lot, #123056); color: #fff; }
.lp-lot-preview b { font-size: 18px; }
.lp-lot-preview small { color: rgba(255,255,255,.82); }
.lp-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-swatch { width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 14px; }
.lp-swatch.is-on { box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 4px var(--lot, #123056); }
.lp-lot-form { gap: 14px; }
.lp-lot-card { display: flex; flex-direction: column; gap: 14px; }
.lp-lot-card header small { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; }
.lp-lot-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lp-lot-form select { min-height: 48px; }
.lp-color-field { display: grid; gap: 8px; }
.lp-color-field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.lp-grupo-otro[hidden] { display: none; }
.lp-lot-delete {
  margin-top: 14px;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 48%, #9f1239 100%);
  color: #fff; border: 0; box-shadow: 0 10px 20px rgba(225, 29, 72, .28);
}
@media (max-width: 420px) {
  .lp-lot-pair { grid-template-columns: 1fr; }
}
.lp-lot-group { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lp-lot-group em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--muted-bg); color: var(--ink); font-size: 12px; letter-spacing: 0; }
@media (min-width: 720px) {
  .lp-res-tools { grid-template-columns: 180px minmax(0, 1fr); align-items: end; }
}
.lp-grid-2 { display: grid; gap: 10px; }
.lp-check { flex-direction: row !important; align-items: center; font-size: 15px !important; color: var(--ink) !important; }
.lp-check input { width: auto; }
.lp-note, .lp-help, .lp-sys { background: var(--chip); border-radius: 16px; padding: 12px 14px; overflow-wrap: anywhere; }
.lp-help ol { margin: 8px 0 0; padding-left: 18px; }
.lp-empty, .lp-loading { color: var(--muted); background: var(--chip); border-radius: 16px; padding: 16px; }
.lp-hoy { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; flex-wrap: wrap; }
.lp-viewfinder { position: relative; background: #0b1220; border-radius: 22px; overflow: hidden; min-height: 280px; }
.lp-viewfinder video { width: 100%; height: min(58dvh, 420px); object-fit: cover; display: block; background: #0b1220; }
.lp-scan-frame { position: absolute; left: 50%; top: 44%; width: min(230px, 70%); aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.92); border-radius: 28px; box-shadow: 0 0 0 200vmax rgba(5, 10, 18, .42); pointer-events: none; }
.lp-scan-status { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; text-align: center; color: #fff; background: rgba(8, 16, 28, .78); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.lp-scan-desk { padding: 22px 18px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-scan-desk strong { display: block; font-size: 18px; margin-bottom: 6px; }
.lp-scan-desk p { margin: 0; color: var(--muted); }
.lp-scan-form { display: grid; gap: 10px; margin-top: 14px; }
.lp-scan-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.lp-scan-form input { width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); padding: 0 14px; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; background: var(--surface-solid); }
#lp-scan-go { margin-top: 10px; }
.lp-acts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-act { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; }
.lp-act svg { width: 20px; height: 20px; flex: none; }
.lp-act.is-wide { grid-column: 1 / -1; }
.lp-act.is-brand { background: linear-gradient(120deg, #1456d6, #0e97b8 58%, #12b38a); color: #fff; border: 0; box-shadow: 0 10px 22px rgba(20, 90, 180, .28); }
.lp-act.is-wa { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; border: 0; box-shadow: 0 10px 22px rgba(18, 140, 126, .32); }
.lp-act.is-gold { background: linear-gradient(135deg, #f8e7a2, #d4a017); color: #3f2d08; border: 0; }
.lp-act.is-danger { background: linear-gradient(135deg, #fb7185 0%, #e11d48 48%, #9f1239 100%); color: #fff; border: 0; box-shadow: 0 10px 20px rgba(225, 29, 72, .28); }
.lp-nueva {
  min-height: 52px; margin-top: 4px; border: 0; border-radius: 16px; font-weight: 800;
  background: #102447; color: #fff;
}
html[data-theme="dark"] .lp-nueva { background: #e8eef8; color: #102447; }

.lp-overlay { position: fixed; inset: 0; z-index: 50; background: var(--overlay); overflow: auto; padding: 18px 12px 28px; animation: lp-fade .25s both; }
.lp-sheet { width: min(460px, 100%); margin: 12px auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; animation: lp-pop .4s cubic-bezier(.2, .8, .2, 1); }
.lp-saved { text-align: center; font-weight: 800; color: var(--green-dark); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.lp-modal { width: min(420px, 100%); margin: 18vh auto; padding: 18px; animation: lp-pop .3s cubic-bezier(.2, .8, .2, 1); }
#lp-confirm { position: fixed; inset: 0; z-index: 70; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
#lp-confirm[hidden] { display: none !important; }
#lp-confirm .lp-modal { width: min(400px, 100%); margin: 0; padding: 28px 22px 20px; text-align: center; border-radius: 28px; }
#lp-confirm .lp-modal h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.03em; }
#lp-confirm .lp-modal p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
#lp-confirm .lp-row { display: flex; gap: 10px; margin-top: 22px; }
#lp-confirm .lp-row .lp-btn { flex: 1; min-height: 50px; }
#lp-toast {
  position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top)); z-index: 80;
  transform: translateX(-50%); width: max-content; max-width: min(280px, calc(100% - 32px));
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.lp-toast {
  display: block; width: auto; max-width: 100%; background: #102447; color: #fff;
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; line-height: 1.3;
  text-align: center; box-shadow: 0 8px 18px rgba(16, 36, 71, .16);
  animation: lp-drop .25s both; pointer-events: auto;
}
.lp-toast.is-ok { background: #047857; }
.lp-toast.is-bad { background: #9f2d28; }
.lp-toast.is-warn { background: #9a3412; }
.lp-toast.is-out { opacity: 0; transition: opacity .2s; }

.lp-paper { position: relative; overflow: hidden; padding: 22px 18px 18px; background: #fff; color: #172033; border-color: #e6edf5; }
.lp-paper-head { background: #fff; color: #172033; text-align: center; padding: 0 8px 12px; border-bottom: 0; }
.lp-paper-head h2 { margin: 2px 0 0; font-size: 26px; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; color: #111827; }
.lp-paper-head p { margin: 0; color: #172033; }
.lp-logo-ticket { width: min(78px, 36%); margin: 0 auto 8px; display: block; }
.lp-slogan { margin: 0 0 2px !important; color: #64748b !important; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lp-seller { margin-top: 12px !important; font-size: 15px; font-weight: 700; }
.lp-when, .lp-cliente-line { margin-top: 4px !important; color: #475569 !important; font-size: 13px; }
.lp-ticketno { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed #cbd5e1; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.lp-rlines { margin-top: 8px; }
.lp-rgroup { padding-top: 12px; }
.lp-rgroup h3 { margin: 0; font-size: 15px; letter-spacing: .04em; }
.lp-rgroup p { margin: 2px 0 6px; color: #64748b; font-size: 12px; }
.lp-rhead, .lp-rplay {
  display: grid; grid-template-columns: minmax(0, 1fr) 3.2rem 5.6rem;
  column-gap: 8px; align-items: baseline;
}
.lp-rhead { margin: 8px 0 0; padding: 0 0 6px; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lp-rhead span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-rplay { padding: 7px 0; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
.lp-rhead span:nth-child(2), .lp-rplay b { text-align: center; }
.lp-rhead span:nth-child(3), .lp-rplay span:last-child { text-align: right; }
.lp-rplay b { font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 15px; }
.lp-rplay span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.lp-paper .lp-rtotal {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0; padding: 12px 0 0; border-top: 2px solid #111827; border-bottom: 0;
  font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none;
}
.lp-paper .lp-rtotal span { min-width: 0; }
.lp-paper .lp-rtotal strong { flex: 0 0 auto; font-size: 16px; text-align: right; }
.lp-paper .lp-notes { margin-top: 14px; }
.lp-rvoid { margin: 12px 0 0; text-align: center; font-weight: 800; letter-spacing: .12em; color: #991b1b; }
.lp-qr { display: flex; justify-content: center; margin-top: 8px; padding: 12px 8px 4px; }
.lp-qr svg, .lp-qr table { width: min(240px, 78%); height: auto; }
.lp-pie { margin: 2px 0 0; text-align: center; font-size: 13px; color: #475569; overflow-wrap: anywhere; }
.lp-center { text-align: center; }
.lp-side .lp-rtotal { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 10px; font-size: 20px; }
.lp-product {
  display: inline-block;
  background: linear-gradient(100deg, #1d4ed8, #0ea5b7 48%, #12b38a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.03em;
}
.lp-stamp {
  position: relative; display: table; margin: 14px 16px 0 auto; top: auto; right: auto;
  border: 2px solid currentColor; color: var(--green);
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px;
  padding: 4px 8px; border-radius: 8px; transform: rotate(-6deg); animation: lp-pop .45s .15s both;
  max-width: 70%; text-align: center;
}
.lp-stamp.bad { color: var(--red); }
.lp-stamp.gold { color: var(--gold); }
.lp-stamp.muted, .lp-stamp.info { color: var(--info); }
.lp-meta, .lp-rlines, .lp-pie, .lp-code, .lp-prize { padding-left: 0; padding-right: 0; }
.lp-code { text-align: center; font-family: var(--mono); font-size: clamp(16px, 5vw, 20px); font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.lp-prize { background: var(--gold-bg); color: var(--gold); border-radius: 12px; padding: 10px 12px; margin: 8px 16px; font-weight: 800; }
.lp-verify { background: var(--bg); }
.lp-verify-wrap { width: min(460px, 100%); margin: 0 auto; padding: calc(64px + env(safe-area-inset-top)) 12px 40px; }
.lp-verify-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lp-verify-actions .lp-btn { flex: 1 1 140px; }

h1 { font-size: clamp(24px, 6vw, 28px); margin: 0; overflow-wrap: anywhere; }
h2 { font-size: 18px; margin: 8px 0 0; }
.lp-sidenav button, .lp-sidenav a, .lp-tabs button {
  border: 0; background: transparent; text-align: left; font-weight: 700; color: var(--muted);
  border-radius: 12px; padding: 10px 12px; text-decoration: none;
}
#lp-outlet.lp-enter > * { animation: lp-rise .42s cubic-bezier(.2, .8, .2, 1) both; }

@media (max-width: 380px) {
  .lp-digits span { width: 36px; height: 48px; font-size: 20px; }
  .lp-key { height: 52px; font-size: 22px; }
  .lp-mark { width: 32px; height: 32px; }
  .lp-printer-pill span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 640px) {
  .lp-res { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 72px)); }
}

@media (min-width: 980px) {
  .lp-bottomnav, .lp-cart-bar, .lp-backdrop, .lp-side .lp-x { display: none !important; }
  .lp-tabs { display: flex; }
  .lp-pos-layout.is-split {
    display: grid; grid-template-columns: minmax(320px, 480px) minmax(300px, 420px);
    gap: 18px; justify-content: center; align-items: start; padding: 8px 16px 24px;
  }
  .lp-entry { padding-bottom: 24px; }
  .lp-side {
    position: sticky; top: 12px; transform: none; max-height: calc(100dvh - 24px);
    border-radius: 22px; box-shadow: var(--shadow); pointer-events: auto;
  }
  .lp-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .lp-sidenav {
    display: flex; flex-direction: column; gap: 4px; padding: 18px 12px;
    position: sticky; top: 0; height: 100dvh; overflow: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    background: linear-gradient(180deg, #0b1c38, #071526 46%, #06343a); color: white;
  }
  .lp-sidenav .lp-brand { display: flex; flex-direction: column; align-items: center; padding: 6px 8px 16px; text-align: center; }
  .lp-sidenav .lp-product { font-size: 26px; }
  .lp-sidenav .lp-brand span { color: #b7c9c4; font-size: 13px; display: block; }
  .lp-sidenav .lp-session span { color: #9fb0c3; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
  .lp-sidenav .lp-session strong { color: #fff; font-size: 15px; }
  .lp-sidenav button, .lp-sidenav a { color: #d5e6dc; }
  .lp-sidenav .is-on { background: rgba(255,255,255,.12); color: white; }
  .lp-page { padding-bottom: 40px; }
  .lp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-kpi:hover { transform: translateY(-3px); transition: transform .2s; }
  .lp-grid-2 { grid-template-columns: 1fr 1fr; }
  .lp-main { min-width: 0; }
  .lp-main .lp-top { background: transparent; }
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes lp-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes lp-pop {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes lp-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, 16px, 0); }
}
@keyframes lp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 106, .45); }
  100% { box-shadow: 0 0 0 8px rgba(20, 184, 106, 0); }
}
@keyframes lp-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes lp-slide {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}
@keyframes lp-glow {
  0%, 100% { transform: scale(.94); opacity: .65; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes lp-shake {
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.lp-num, .lp-kpi strong, .lp-rtotal strong, .lp-code, .lp-digits span, .lp-ticket-card strong, .lp-bar b { font-variant-numeric: tabular-nums; }
.lp-step { margin: 14px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lp-btn, .lp-chip, .lp-type, .lp-key, .lp-bottomnav button, .lp-link { min-height: 44px; }
.lp-btn.primary, .lp-cobrar { background: #2563EB; background-image: none; box-shadow: 0 8px 18px rgba(37, 99, 235, .22); }
.lp-login .lp-btn.primary { color: #fff; border-color: transparent; background: #102447; background-image: none; animation: none; box-shadow: 0 8px 18px rgba(16, 36, 71, .16); }
.lp-login .lp-btn.primary:active { background: #0b1a33; }
.lp-btn.primary:active, .lp-cobrar:active { background: #1D4ED8; }
.lp-entry, .lp-kpi, .lp-lot, .lp-ticket-card, .lp-sheet, #lp-outlet.lp-enter > * { animation-duration: .2s; animation-delay: 0s; }
.lp-lot.is-on, .lp-chip.is-on, .lp-type.is-on { box-shadow: inset 0 0 0 2px #10B981; }
.lp-pos .lp-entry { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
.lp-pos .lp-page { padding-bottom: 32px; }
.lp-pos .lp-cart-bar { bottom: calc(12px + env(safe-area-inset-bottom)); }
.lp-pos .lp-top-actions .lp-link, .lp-pos .lp-printer-pill { min-height: 40px; padding: 8px 10px; }
.lp-bottomnav .is-on { box-shadow: inset 0 3px 0 #10B981; }
.lp-kpi { position: relative; overflow: hidden; }
.lp-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #2563EB; }
.lp-kpi:nth-child(3)::before, .lp-kpi:nth-child(5)::before { background: #10B981; }
.lp-paper-head { background: #fff; color: #102447; }
.lp-saved::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: #10B981 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'><path d='M5 12.5 10 17 19 7'/></svg>") center / 26px no-repeat; }
.lp-loading { color: transparent; min-height: 64px; background: linear-gradient(90deg, var(--muted-bg) 25%, var(--chip) 50%, var(--muted-bg) 75%); background-size: 200% 100%; animation: lp-slide 1.1s linear infinite; }
.lp-empty { border: 1px dashed var(--line); }
.lp-cart-bar[hidden] { display: none !important; }
.lp-pos-layout, .lp-main, .lp-page, .lp-entry { overflow-x: hidden; }
.lp-ver { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #DBEAFE; color: #1D4ED8; font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0; }
html[data-theme="dark"] .lp-ver { background: #1E3A8A; color: #DBEAFE; }
.lp-lots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
.lp-lot { min-width: 0; max-width: none; }
.lp-pad { background: #FFFFFF; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-key { background: #F8FAFC; color: #102447; border: 1px solid #E2E8F0; }
.lp-key.fn { background: #EFF6FF; color: #1D4ED8; font-size: 13px; }
html[data-theme="dark"] .lp-pad { background: #0F1C33; }
html[data-theme="dark"] .lp-key { background: #17233B; color: #F8FAFC; border-color: #24344C; }
html[data-theme="dark"] .lp-key.fn { background: #1E3A8A; color: #DBEAFE; }
.lp-navitem { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; font-weight: 600; text-align: left; }
.lp-navitem svg { width: 22px; height: 22px; flex: 0 0 auto; }
.lp-bottomnav {
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  width: auto; border-radius: 24px; border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 16px 40px rgba(16, 36, 71, .18);
  padding: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lp-bottomnav .lp-navitem {
  flex-direction: column; justify-content: center; gap: 3px;
  min-height: 54px; border-radius: 18px; color: #64748B;
  font-size: 11px; font-weight: 700; padding: 6px 2px; overflow: visible; white-space: normal;
}
.lp-bottomnav .lp-navitem.is-on {
  background: #102447; color: #fff; box-shadow: none;
}
.lp-cart-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
.lp-page { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
#lp-more .lp-sheet { display: flex; flex-direction: column; gap: 8px; width: min(520px, 100%); max-height: min(88dvh, 760px); overflow: auto; scrollbar-width: none; }
#lp-more .lp-sheet::-webkit-scrollbar { width: 0; height: 0; display: none; }
#lp-more .lp-split, #lp-more .lp-btn, #lp-more a.lp-btn { grid-column: auto; }
.lp-menurow {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 64px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--chip); color: var(--ink);
}
.lp-menurow span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-menurow b { font-size: 16px; }
.lp-menurow small { color: var(--muted); font-weight: 500; font-size: 13px; }
.lp-menurow svg { width: 22px; height: 22px; flex: 0 0 auto; color: #2563EB; }
.lp-menurow.is-on { border-color: #102447; box-shadow: inset 0 0 0 1px #102447; }
.lp-navlabel { margin: 14px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9fb0c3; }
.lp-sidenav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.lp-sidenav .lp-menurow { min-height: 0; padding: 7px 10px; background: transparent; border-color: transparent; color: #d7e4f5; }
.lp-sidenav .lp-menurow small { color: #9fb0c3; }
.lp-sidenav .lp-menurow svg { color: #9ec7ff; }
.lp-sidenav .lp-menurow.is-on { background: rgba(255,255,255,.12); color: #fff; }
.lp-narrow { max-width: 520px; }
.lp-roles { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-roles legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.lp-form .lp-role { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--chip); font-size: 16px; color: var(--ink); }
.lp-role input { width: 22px; height: 22px; flex: 0 0 auto; }
.lp-role span { display: flex; flex-direction: column; gap: 2px; }
.lp-role small { color: var(--muted); font-weight: 500; }
.lp-role:has(input:checked) { border-color: #2563EB; box-shadow: inset 0 0 0 1px #2563EB; background: #EFF6FF; }
html[data-theme="dark"] .lp-role:has(input:checked) { background: #172554; }
.lp-sidenav .lp-navlist { display: flex; flex-direction: column; gap: 4px; }
.lp-sidenav .lp-navitem { width: 100%; border-radius: 12px; padding: 10px 12px; color: #d7e4f5; }
.lp-sidenav .lp-navitem.is-on { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.lp-sidenav .lp-product { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.lp-top .lp-top-user { display: none !important; }
.lp-sidenav .lp-brand { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lp-sidenav .lp-session { width: 100%; }
.lp-sidenav .lp-navfoot { margin-top: auto; display: flex; flex-direction: column; padding-top: 12px; }
.lp-users { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lp-user {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--ink);
  box-shadow: 0 8px 20px rgba(16, 42, 84, .05);
}
.lp-user svg { width: 18px; height: 18px; color: var(--muted); }
.lp-user.is-off { opacity: .72; }
.lp-avatar {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #123056, #0e6e86); color: #fff;
  font-weight: 800; font-size: 16px; letter-spacing: 0;
}
.lp-user-main { display: flex; flex-direction: column; min-width: 0; }
.lp-user-main b, .lp-user-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-user-main small { color: var(--muted); font-weight: 600; }
.lp-user-search { margin: 12px 0 8px; }
.lp-user-range { margin-top: 10px; }
.lp-pages {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin: 16px 0 4px; padding: 10px; border-radius: 18px;
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(16, 42, 84, .06);
}
.lp-pagebtn {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--chip); color: var(--ink);
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.lp-pagebtn.is-on {
  background: linear-gradient(135deg, #123056, #0e6e86); color: #fff; border-color: transparent;
  box-shadow: 0 8px 16px rgba(14, 110, 134, .28);
}
.lp-pagebtn:disabled { opacity: .35; }
.lp-pagegap { min-width: 18px; text-align: center; color: var(--muted); font-weight: 800; }
.lp-filters .lp-chip small {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px;
  padding: 0 5px; border-radius: 999px; background: rgba(16, 36, 71, .08);
  font-size: 11px; font-weight: 800;
}
.lp-chip.is-on small { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 720px) {
  .lp-top { padding: calc(8px + env(safe-area-inset-top)) 12px 8px; gap: 8px; }
  .lp-where { gap: 8px; }
  .lp-where-ico { width: 32px; height: 32px; border-radius: 11px; }
  .lp-where-ico svg { width: 16px; height: 16px; }
  .lp-top .lp-where span { font-size: 9px; letter-spacing: .08em; }
  .lp-top .lp-where strong { font-size: 15px; }
  .lp-back, .lp-top .lp-back { height: 32px; width: 32px; padding: 0; }
  .lp-top .lp-back span, .lp-theme-label { display: none !important; }
  .lp-theme { height: 32px; padding: 2px; }
  .lp-top .lp-theme .lp-theme-opt, .lp-theme-opt { width: 28px; height: 26px; padding: 0; gap: 0; }
  h1 { font-size: 20px; }
  .lp-kicker { font-size: 10px; }
}
.lp-audit-sum { margin-top: 2px; }
.lp-sidenav .lp-logout,
button.lp-logout {
  width: 100%; min-height: 48px; margin-top: 8px; border: 0; border-radius: 14px;
  color: #fff; font-weight: 800; letter-spacing: .01em; text-align: center;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 42%, #9f1239 100%);
  box-shadow: 0 12px 24px rgba(225, 29, 72, .35);
}
.lp-sidenav .lp-logout:hover, button.lp-logout:hover { filter: brightness(1.06); }
.lp-sidenav .lp-logout:active, button.lp-logout:active { transform: translateY(1px); }
.lp-tabs { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: fit-content; margin: 0 14px 10px; }
.lp-tabs button { border-radius: 999px; padding: 8px 14px; }
.lp-tabs .is-on { background: #102447; color: #fff; box-shadow: none; }
.lp-top-sell { min-height: 56px; padding: 8px 16px; }
.lp-top-sell .lp-id strong { font-size: 16px; }
.lp-top-sell .lp-panel-go {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px;
  border-radius: 999px; background: linear-gradient(135deg, #123056, #0e6e86); color: #fff;
  font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 16px rgba(14, 110, 134, .28);
}
.lp-pos .lp-mark { width: 32px; height: 32px; background: transparent; box-shadow: none; }
.lp-sell { display: flex; flex-direction: column; gap: 14px; }
.lp-sell .lp-step { margin-top: 8px; }
.lp-sell .lp-btn-block { min-height: 52px; }
.lp-sell-tools {
  display: flex; flex-direction: column; margin-top: 36px;
}
.lp-sell .lp-logout { margin-top: 0; }
.lp-guide[hidden] { display: none !important; }
.lp-guide { margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.lp-guide.is-warn { background: #fff7ed; color: #9a3412; }
.lp-guide.is-ok { background: #ecfdf5; color: #047857; }
.lp-guide.is-bad { background: #fef2f2; color: #991b1b; }
html[data-theme="dark"] .lp-guide.is-warn { background: #3a2e12; color: #fdba74; }
html[data-theme="dark"] .lp-guide.is-ok { background: #12352e; color: #6ee7b7; }
html[data-theme="dark"] .lp-guide.is-bad { background: #3a1c1c; color: #fca5a5; }
.lp-fieldmsg { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.lp-fieldmsg:empty { display: none; }
.lp-fieldmsg.is-bad { color: #b91c1c; }
.lp-fieldmsg.is-warn { color: #c2410c; }
.lp-fieldmsg.is-ok { color: #047857; }
.lp-fieldmsg.is-info { color: #64748b; }
html[data-theme="dark"] .lp-fieldmsg.is-bad { color: #fca5a5; }
html[data-theme="dark"] .lp-fieldmsg.is-warn { color: #fdba74; }
html[data-theme="dark"] .lp-fieldmsg.is-ok { color: #6ee7b7; }
html[data-theme="dark"] .lp-fieldmsg.is-info { color: #cbd5e1; }
input.is-bad, textarea.is-bad { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
input.is-warn { border-color: #d97706 !important; }
input.is-ok { border-color: #059669 !important; }
html[data-theme="dark"] .lp-login {
  background: #07111f;
  color: #e8eef8;
}
html[data-theme="dark"] .lp-login-card {
  background: #121a2b; color: #e8eef8; border-color: rgba(255,255,255,.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .lp-login-card h1 { color: #f8fafc; }
html[data-theme="dark"] .lp-login-card .lp-soft,
html[data-theme="dark"] .lp-login-card .lp-form label { color: #94a3b8; }
html[data-theme="dark"] .lp-login-card input { background-color: #0f1728; color: #f8fafc; border-color: #24344c; }
html[data-theme="dark"] .lp-login-card input:focus { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(147, 197, 253, .16); }
html[data-theme="dark"] .lp-eye { color: #cbd5e1; }
html[data-theme="dark"] .lp-login-foot { border-top-color: #24344c; color: #64748b; }
html[data-theme="dark"] .lp-login .lp-btn.primary { background: #f8fafc; color: #102447; }
html[data-theme="dark"] .lp-login .lp-btn.primary:active { background: #fff; }

.lp-dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lp-dash-head h1 { margin-top: 2px; }
.lp-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #2563eb; }
.lp-delta { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.lp-delta.is-up { color: #047857; }
.lp-delta.is-down { color: #b91c1c; }
.lp-dash-grid { display: grid; gap: 12px; }
.lp-panel-card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.lp-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lp-card-head h2 { margin: 0; font-size: 16px; }
.lp-card-head span { color: var(--muted); font-size: 12px; font-weight: 700; }
.lp-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.lp-chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.lp-chart .lp-grid { stroke: var(--line); stroke-width: 1; }
.lp-chart .lp-axis { font-size: 12px; font-weight: 700; }
.lp-scale { margin: 8px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.lp-chart .lp-area { fill: url(#lpArea); }
.lp-chart .lp-line { fill: none; stroke: #2563eb; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.lp-chart .lp-dot { fill: #102447; stroke: #fff; stroke-width: 1.6; }
.lp-shares { display: flex; flex-direction: column; gap: 12px; }
.lp-share-top, .lp-rank { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lp-share-top b, .lp-rank b { font-size: 14px; }
.lp-share-track { height: 8px; margin-top: 6px; border-radius: 99px; background: var(--bar); overflow: hidden; }
.lp-share-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1d4ed8, #14b8a6); }
.lp-share small, .lp-rank small { color: var(--muted); font-size: 12px; }
.lp-rank { width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.lp-rank:first-child { border-top: 0; padding-top: 0; }
.lp-hourstrip, .lp-filters-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.lp-hourstrip .lp-chip, .lp-filters-scroll .lp-chip { flex: 0 0 auto; }
.lp-hourstrip .lp-chip small { display: block; font-size: 11px; opacity: .75; }
.lp-audit-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lp-audit-group h3 { margin: 16px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-audit { display: grid; grid-template-columns: 76px auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.lp-audit time { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.lp-audit .lp-pill { justify-self: start; white-space: nowrap; }
.lp-audit b, .lp-audit small { display: block; }
.lp-audit small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.lp-audit .lp-linkbtn { margin-top: 4px; }
html[data-theme="dark"] .lp-chart .lp-dot { fill: #bfdbfe; stroke: #0f172a; }
html[data-theme="dark"] .lp-delta.is-up { color: #6ee7b7; }
html[data-theme="dark"] .lp-delta.is-down { color: #fca5a5; }
@media (min-width: 860px) {
  .lp-dash-grid { grid-template-columns: 1.35fr .85fr; align-items: start; }
  .lp-audit-form { grid-template-columns: 220px minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
