/* LEVELUP client • native dark/gold design • isolated TEST-only overlay.
   Inspired by LevelUp current palette: #08090c, #f4f1e8, #c9a85b.
   No close action — mandatory completion for selected onboarding surveys. */
.lu-pr-shade,
.lu-pr-shade * { box-sizing: border-box; }
.lu-pr-shade {
  --lu-pr-bg: #0f1115;
  --lu-pr-panel: #14161b;
  --lu-pr-panel-soft: #191c21;
  --lu-pr-line: rgba(237,226,200,.105);
  --lu-pr-muted: #a1a4ad;
  --lu-pr-text: #f4f1e8;
  --lu-pr-gold: #c9a85b;
  --lu-pr-gold-bright: #e7c77b;
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; justify-content: center; align-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(4,5,7,.84); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  color: var(--lu-pr-text); font: 400 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lu-pr-dialog {
  position: relative; isolation: isolate;
  width: min(100%, 540px); max-height: min(90dvh, 800px); overflow-y: auto;
  background: var(--lu-pr-bg); border: 1px solid rgba(222,198,144,.19);
  border-radius: 22px; padding: 28px;
  box-shadow: 0 25px 85px rgba(0,0,0,.65), 0 2px 0 rgba(255,255,255,.02) inset;
  scrollbar-width: thin; scrollbar-color: #444 #111;
}
.lu-pr-dialog::before {
  content: ""; display: block; position: absolute; height: 3px;
  top: 0; left: 28px; right: 28px; border-radius: 0 0 8px 8px;
  background: var(--lu-pr-gold); opacity: .88;
}
.lu-pr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lu-pr-heading { min-width: 0; flex: 1; }
.lu-pr-branding { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.lu-pr-brand-icon {
  display: inline-flex; width: 29px; height: 29px; flex: none;
  align-items: center; justify-content: center; border-radius: 8px;
  background: var(--lu-pr-gold); color: #0a0b0d; font-size: 17px; font-weight: 950; letter-spacing: -.1em;
}
.lu-pr-brand-name { color: var(--lu-pr-text); font-size: 13px; font-weight: 850; letter-spacing: .105em; }
.lu-pr-eyebrow { font-size: 10px; letter-spacing: .09em; font-weight: 700; color: var(--lu-pr-gold); }
.lu-pr-eyebrow::before { content: "·"; padding-right: 8px; opacity: .75; }
.lu-pr-title { color: var(--lu-pr-text) !important; font-size: clamp(23px,4.5vw,28px) !important; line-height: 1.18 !important; margin: 0 0 10px !important; font-weight: 800 !important; letter-spacing: -.033em; }
.lu-pr-lead { margin: 0 0 22px !important; max-width: 450px; color: #b7b5b1; font-size: 13.5px; line-height: 1.62; }
.lu-pr-required-tag { position: absolute; right: 27px; top: 23px; padding: 5px 9px; background: rgba(201,168,91,.095); border: 1px solid rgba(201,168,91,.2); color: #e0c17e; border-radius: 20px; white-space: nowrap; font-size: 10px; font-weight: 700; }
.lu-pr-form { margin: 0; }
.lu-pr-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.lu-pr-tile {
  display: flex; flex-direction: column; position: relative; align-items: flex-start;
  gap: 6px; min-width: 0; min-height: 155px; padding: 15px;
  overflow: hidden; cursor: pointer;
  border-radius: 15px; background: var(--lu-pr-panel);
  border: 1px dashed rgba(201,168,91,.33);
  transition: border-color .16s ease,background .16s ease;
}
.lu-pr-tile:hover { border-color: rgba(222,194,128,.7); background: var(--lu-pr-panel-soft); }
.lu-pr-tile:focus-within { outline: 2px solid var(--lu-pr-gold-bright); outline-offset: 2px; }
.lu-pr-tile.lu-pr-selected { border: 1px solid var(--lu-pr-gold); background: #1b1915; }
.lu-pr-tile-title { position: relative; z-index: 1; color: #eee9df; font-size: 13px; font-weight: 750; }
.lu-pr-tile-icon { display: flex; justify-content: center; align-items: center; align-self: center; margin: auto; color: #c1a163; opacity: .9; }
.lu-pr-tile-icon svg { width: 30px; height: 30px; }
.lu-pr-tile.lu-pr-selected .lu-pr-tile-icon { display: none; }
.lu-pr-preview { width: 100%; height: 92px; margin: 2px auto 0; object-fit: cover; border-radius: 9px; border: 1px solid var(--lu-pr-line); }
.lu-pr-preview[hidden] { display: none; }
.lu-pr-prompt { display: block; position: relative; z-index: 1; align-self: center; max-width: 100%; text-align: center; overflow-wrap: anywhere; color: var(--lu-pr-muted); font-size: 11px; font-weight: 550; }
.lu-pr-tile.lu-pr-selected .lu-pr-prompt { color: var(--lu-pr-gold-bright); }
.lu-pr-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.lu-pr-input:disabled { cursor: default; }
.lu-pr-note { color: #9fa1a5; font-size: 11px; line-height: 1.55; margin: 15px 0 4px; }
.lu-pr-status { color: #a5d6b6; font-size: 12px; line-height: 1.5; min-height: 18px; margin: 5px 0 8px; }
.lu-pr-status[data-error="true"] { color: #ffbdad; }
.lu-pr-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--lu-pr-line); padding-top: 18px; margin-top: 4px; }
.lu-pr-secure-hint { color: #9a9a9b; font-size: 11px; line-height: 1.45; max-width: 200px; margin: 0; }
.lu-pr-submit {
  flex: 0 0 auto; min-height: 44px; max-width: 100%;
  padding: 11px 19px; border: 1px solid #cfac5c; border-radius: 11px;
  color: #16120b; background: #d7b774; font: inherit; font-size: 12px; font-weight: 800;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.lu-pr-submit:hover:not(:disabled) { background: #e7c780; }
.lu-pr-submit:active:not(:disabled) { transform: scale(.985); }
.lu-pr-submit:focus-visible { outline: 2px solid #f7e1b5; outline-offset: 3px; }
.lu-pr-submit:disabled { opacity: .48; cursor: progress; }
@media (max-width: 540px) {
  .lu-pr-shade { padding: max(10px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left)); }
  .lu-pr-dialog { border-radius: 18px; max-height: calc(100dvh - max(22px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom))); padding: 19px 16px 17px; width: 100%; }
  .lu-pr-dialog::before { left: 17px; right: 17px; }
  .lu-pr-required-tag { top: 19px; right: 16px; font-size: 9px; }
  .lu-pr-branding { margin-bottom: 22px; gap: 7px; padding-right: 104px; }
  .lu-pr-brand-icon { width: 26px; height: 26px; font-size: 15px; }
  .lu-pr-brand-name { font-size: 11px; }
  .lu-pr-eyebrow { font-size: 9px; }
  .lu-pr-title { font-size: 23px !important; }
  .lu-pr-lead { font-size: 12.5px; margin-bottom: 18px !important; }
  .lu-pr-grid { gap: 9px; }
  .lu-pr-tile { min-height: 131px; padding: 11px; border-radius: 12px; }
  .lu-pr-tile-title { font-size: 12px; }
  .lu-pr-tile-icon svg { width: 25px; height: 25px; }
  .lu-pr-preview { height: 82px; }
  .lu-pr-prompt { font-size: 10px; }
  .lu-pr-actions { flex-direction: column; align-items: stretch; gap: 13px; }
  .lu-pr-secure-hint { max-width: none; text-align: center; }
  .lu-pr-submit { width: 100%; }
}
@media (prefers-reduced-motion:reduce) { .lu-pr-shade { backdrop-filter: none; } .lu-pr-tile, .lu-pr-submit { transition: none; } }
