.pe-lb {
  --lb-ink: #f5f5ed;
  --lb-muted: #a9b8b6;
  --lb-accent: #d5f3a1;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(580px, calc(100vw - 24px));
  max-width: 580px;
  max-height: min(820px, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  border: 1px solid #44615c;
  border-radius: 24px;
  background: #142a2b;
  color: var(--lb-ink);
  box-shadow: 0 24px 100px #0009;
  font: 400 15px/1.5 'Space Grotesk', Inter, Arial, sans-serif;
  text-align: left;
  overflow: hidden;
  overscroll-behavior: contain;
  color-scheme: dark;
  z-index: 2147483647;
}
.pe-lb[open] { display: flex; flex-direction: column; }
.pe-lb::backdrop { background: #041416c9; backdrop-filter: blur(8px); }
.pe-lb *, .pe-lb *::before, .pe-lb *::after { box-sizing: border-box; }
.pe-lb [hidden] { display: none !important; }
.pe-lb p { font-family: inherit; font-weight: 400; text-shadow: none; letter-spacing: normal; }
.pe-lb label, .pe-lb input, .pe-lb select { text-shadow: none; text-transform: none; letter-spacing: normal; }
.pe-lb button, .pe-lb input, .pe-lb select { font: inherit; }
.pe-lb button { cursor: pointer; touch-action: manipulation; text-transform: none; letter-spacing: 0; text-shadow: none; }
.pe-lb button:focus-visible, .pe-lb input:focus-visible, .pe-lb select:focus-visible, .pe-lb a:focus-visible, .pe-lb summary:focus-visible { outline: 3px solid var(--lb-accent); outline-offset: 3px; }
.pe-lb h2 { margin: 0; color: var(--lb-ink); font-family: 'Space Grotesk', Inter, Arial, sans-serif; font-weight: 500; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.16; letter-spacing: -.035em; text-shadow: none; text-transform: none; -webkit-text-stroke: 0; }
.pe-lb h3 { margin: 0 0 12px; color: var(--lb-ink); font: 500 17px/1.3 'Space Grotesk', Inter, Arial, sans-serif; letter-spacing: -.02em; text-shadow: none; text-transform: none; -webkit-text-stroke: 0; }
.pe-lb-header { position: static; inset: auto; z-index: auto; pointer-events: auto; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 24px 26px 18px; flex-shrink: 0; }
.pe-lb-kicker { margin: 0 0 6px; font: 600 10px/1.4 Arial, sans-serif !important; letter-spacing: .18em !important; color: var(--lb-accent); }
.pe-lb-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 11px; border: 1px solid #ffffff24; border-radius: 50%; color: var(--lb-ink); background: transparent; box-shadow: none; }
.pe-lb-close:hover { background: #ffffff10; }
.pe-lb-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pe-lb-tabs { display: flex; flex-shrink: 0; gap: 4px; padding: 0 22px 14px; border-bottom: 1px solid #ffffff18; }
.pe-lb-tab { display: block; flex: 1; min-width: 0; min-height: 44px; padding: 8px 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #b3c6bf; font-size: 12px !important; font-weight: 500 !important; line-height: 1.2; box-shadow: none; white-space: nowrap; }
.pe-lb-tab:hover { background: #ffffff08; }
.pe-lb-tab[aria-selected=true] { border-color: #d5f3a166; background: #d5f3a112; color: var(--lb-accent); }
.pe-lb-scroll { flex: 1 1 auto; min-height: 80px; padding: 20px 26px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #49655e transparent; -webkit-overflow-scrolling: touch; }
.pe-lb-description { margin: 0 0 20px; font-size: 12px; line-height: 1.55; color: var(--lb-muted); }
.pe-lb-form { margin: 0 0 24px; padding: 20px; border: 1px solid #65866866; border-radius: 16px; background: #243d36; }
.pe-lb-your-score { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.pe-lb-your-score > span { font-size: 10px; letter-spacing: .12em; color: var(--lb-accent); }
.pe-lb-your-score strong { font: 500 clamp(24px, 6vw, 30px)/1.15 'Space Grotesk', Inter, Arial, sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--lb-ink); }
.pe-lb-label { display: block; margin: 0 0 7px; font-size: 12px; color: var(--lb-ink); }
.pe-lb-fields { display: flex; gap: 8px; }
.pe-lb-input { display: block; flex: 1; min-width: 0; width: 100%; min-height: 44px; margin: 0; padding: 11px 12px; border: 1px solid #ffffff30; border-radius: 9px; color: var(--lb-ink); background: #132a25; font-size: 16px !important; line-height: 1.3; box-shadow: none; }
.pe-lb-input::placeholder { color: #9cac9e; }
.pe-lb-save, .pe-lb-retry, .pe-lb-daily-link { display: block; flex-shrink: 0; min-height: 44px; padding: 12px 16px; border: 0; border-radius: 9px; color: #172b23; background: var(--lb-accent); font-size: 12px !important; font-weight: 600 !important; line-height: 1.3; box-shadow: none; white-space: nowrap; text-align: center; text-decoration: none; }
.pe-lb-save:hover, .pe-lb-retry:hover, .pe-lb-daily-link:hover { background: #e4ffc0; }
.pe-lb button:disabled, .pe-lb-input:disabled { opacity: .6; cursor: default; }
.pe-lb-status { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #ffc5b6; }
.pe-lb-status:empty { display: none; }
.pe-lb-status.pe-lb-success { color: var(--lb-accent); }
.pe-lb-help { margin: 10px 0 12px; font-size: 11px; line-height: 1.6; color: var(--lb-muted); }
.pe-lb-quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; margin: 8px 0 0; padding: 10px 13px; border: 1px solid #ffffff30; border-radius: 9px; background: transparent; color: var(--lb-ink); font-size: 12px !important; line-height: 1.35; box-shadow: none; }
.pe-lb-quiet:hover { border-color: #d5f3a180; background: #d5f3a108; }
.pe-lb-small-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 14px 0; }
.pe-lb-small-form .pe-lb-input { flex: 1 1 180px; }
.pe-lb-small-form .pe-lb-status { flex: 0 0 100%; margin-top: 0; }
.pe-lb-team { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #ffffff18; }
.pe-lb-team-scopes { display: flex; gap: 6px; margin: 16px 0 0; }
.pe-lb-chip { min-height: 44px; padding: 8px 14px; border: 1px solid #ffffff25; border-radius: 24px; background: transparent; color: var(--lb-muted); font-size: 12px !important; box-shadow: none; }
.pe-lb-chip[aria-pressed=true] { border-color: #d5f3a166; background: #d5f3a112; color: var(--lb-accent); }
.pe-lb-team-join { margin: 18px 0 0; }
.pe-lb-team-join summary { min-height: 44px; padding-block: 11px; cursor: pointer; color: var(--lb-ink); font-size: 12px; }
.pe-lb-board-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 14px; }
.pe-lb-board-meta:empty { display: none; }
.pe-lb-period { margin: 0; color: var(--lb-ink); font-size: 12px; }
.pe-lb-reset { color: var(--lb-muted); font-size: 10px; }
.pe-lb-daily-link { flex: 0 0 100%; margin: 8px 0 0; }
.pe-lb-table-heading { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid #ffffff20; font: 500 10px/1.5 Arial, sans-serif; letter-spacing: .11em; color: var(--lb-muted); }
.pe-lb-list { margin: 0; padding: 0; list-style: none; }
.pe-lb-row { display: flex; align-items: center; gap: 14px; min-height: 54px; margin: 0; padding: 10px 8px; border-bottom: 1px solid #ffffff0c; border-radius: 5px; }
.pe-lb-row:last-child { border-bottom: 0; }
.pe-lb-you { background: #d5f3a10e; }
.pe-lb-rank { display: grid; place-items: center; flex: 0 0 25px; min-height: 26px; font-size: 12px; color: var(--lb-muted); font-variant-numeric: tabular-nums; }
.pe-lb-podium { border-radius: 50%; border: 1px solid #d5f3a139; color: var(--lb-accent); }
.pe-lb-name { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--lb-ink); font-size: 14px; }
.pe-lb-name small { display: inline-block; vertical-align: middle; margin-left: 8px; font: 500 8px/1.4 Arial, sans-serif; letter-spacing: .08em; color: var(--lb-accent); }
.pe-lb-points { flex-shrink: 0; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--lb-ink); }
.pe-lb-empty { margin: 0; padding: 24px 10px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--lb-muted); }
.pe-lb-error { margin: 15px 0; font-size: 13px; color: #ffc5b6; }
.pe-lb-retry { margin: 0 0 10px; }
.pe-lb-profile { margin-top: 26px; padding-top: 22px; border-top: 1px solid #ffffff24; }
.pe-lb-profile h3:not(:first-child) { margin-top: 26px; }
.pe-lb-transfer-code { font-family: ui-monospace, monospace !important; font-size: 17px !important; letter-spacing: .06em !important; text-align: center; }
.pe-lb-transfer-output { margin-top: 14px; }
.pe-lb-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; flex-shrink: 0; gap: 5px 10px; padding: 8px 20px; border-top: 1px solid #ffffff18; }
.pe-lb-footnote { flex: 1; margin: 0; font-size: 10px; line-height: 1.5; color: var(--lb-muted); }
.pe-lb-profile-toggle { min-height: 44px; padding: 6px 0 6px 10px; border: 0; background: transparent; color: var(--lb-accent); font-size: 11px !important; box-shadow: none; }
.pe-lb-copy-buffer { position: fixed; left: -9999px; top: 0; }
@media (max-width: 420px) {
  .pe-lb-header { padding: 21px 18px 17px; }
  .pe-lb-tabs { padding: 0 12px 12px; gap: 2px; }
  .pe-lb-tab { padding-inline: 4px; font-size: 11px !important; }
  .pe-lb-scroll { padding: 16px 16px 20px; }
  .pe-lb-form { padding: 15px; }
  .pe-lb-fields { flex-direction: column; }
  .pe-lb-row { gap: 9px; padding-inline: 4px; }
  .pe-lb-footer { padding: 8px 16px; }
  .pe-lb-small-form .pe-lb-input { flex-basis: 150px; }
}
@media (max-height: 520px) {
  .pe-lb-header { padding: 14px 20px 12px; }
  .pe-lb-kicker { display: none; }
  .pe-lb-tabs { padding-bottom: 8px; }
  .pe-lb-tab { min-height: 40px; }
  .pe-lb-scroll { padding-top: 12px; }
  .pe-lb-description { margin-bottom: 12px; }
}
.pe-lb-invite-trigger { position: fixed; z-index: 10000; top: calc(68px + env(safe-area-inset-top, 0px)); right: 12px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 8px 10px 8px 14px; border: 1px solid #8bab9a; border-radius: 12px; background: #173831; color: #f5f5ed; box-shadow: 0 8px 24px #001b2a55; font: 500 11px/1.4 Arial, sans-serif; }
.pe-lb-invite-trigger button { flex: none; min-height: 44px; border: 0; border-radius: 8px; font: 600 11px/1.3 Arial, sans-serif; text-transform: none; text-shadow: none; letter-spacing: 0; box-shadow: none; cursor: pointer; }
.pe-lb-invite-view { padding: 8px 12px; background: #d5f3a1; color: #172b23; }
.pe-lb-invite-dismiss { width: 44px; padding: 0; background: transparent; color: #d5f3a1; font-size: 22px !important; }
