/* 3.9.22 (T713) account unlock: approve-from-another-device, passkey, sign-out guard, save-recovery sheet.
   Surface: Configure / Operate. One lime primary per view; everything else is a measured secondary.
   No inline style attributes (CSP). Colours follow account3915.css: lime #c4ff4d on ink #0a1400,
   secondary #eef3fb on #202733, danger #ffd9d4 on #4a1a1d, muted #a0abbd. */
.ul-root [hidden],.ul-dialog [hidden],.ul-nudge[hidden],.ul-locked [hidden]{display:none!important}

/* ---- shared buttons --------------------------------------------------------------------------------------- */
.ul-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;
  border-radius:12px;border:1px solid #303a4b;background:#202733;color:#eef3fb;font:inherit;font-size:15px;
  font-weight:750;line-height:1.25;text-decoration:none;cursor:pointer;text-align:center}
.ul-btn:hover:not(:disabled){background:#2a3342}
.ul-btn:disabled{opacity:.5;cursor:not-allowed}
.ul-btn:focus-visible,.ul-choice:focus-visible,.ul-link:focus-visible,.ul-dialog input:focus-visible{outline:3px solid #fff;outline-offset:3px}
.ul-btn-primary{background:var(--lime,#c4ff4d);border-color:var(--lime,#c4ff4d);color:#0a1400;font-weight:850}
.ul-btn-primary:hover:not(:disabled){background:#d2ff73}
.ul-btn-danger{background:#4a1a1d;border-color:#8a3a40;color:#ffd9d4}
.ul-btn-danger:hover:not(:disabled){background:#5a2125}
.ul-link{background:none;border:0;padding:10px 2px;min-height:44px;color:#a0abbd;font:inherit;font-size:14px;font-weight:600;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ul-link:hover{color:#eef3fb}
.ul-link-danger{color:#ffb5aa}
.ul-link-danger:hover{color:#ffd9d4}
.ul-eyebrow{margin:0 0 8px;color:var(--lime,#c4ff4d);font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.ul-status,.ul-dialog .ul-status,.ul-wait .ul-status{min-height:1.5em;margin:14px 0 0;font-weight:700;color:#a0abbd;font-size:14px;line-height:1.5}
.ul-status[data-state=error],.ul-dialog .ul-status[data-state=error]{color:#ffb5aa}
.ul-status[data-state=ready],.ul-dialog .ul-status[data-state=ready]{color:var(--lime,#c4ff4d)}

/* ---- locked device: ways back in ---------------------------------------------------------------------------- */
.ul-locked{display:grid;gap:0;margin:12px 0;padding:0;border:1px solid #2b3545;border-radius:16px;background:#0e131b;overflow:hidden}
.ul-locked-head{padding:20px 20px 16px}
.ul-locked-head h2{text-wrap:balance;margin:0 0 8px;font-size:22px;line-height:1.2;letter-spacing:-.01em;color:#f5f7fb}
.ul-locked-head p{margin:0;color:#a0abbd;line-height:1.55}
.ul-methods{list-style:none;margin:0;padding:0}
.ul-method{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;padding:16px 20px;border-top:1px solid #222b38}
.ul-method h3{margin:0;font-size:16px;line-height:1.3;color:#f5f7fb}
.ul-method p{margin:2px 0 0;color:#a0abbd;font-size:14px;line-height:1.5}
.ul-method .ul-btn{min-width:148px}
.ul-method-wide{grid-template-columns:1fr}
.ul-method form{display:grid;gap:8px;margin-top:8px}
.ul-method label{font-size:13px;font-weight:700;color:#c9d2e0}
.ul-method input[type=password],.ul-method input[type=email],.ul-method input[type=text]{width:100%;box-sizing:border-box;min-height:48px;
  border:1px solid #3c4658;border-radius:10px;background:#080b11;color:#eef3fb;padding:12px;font:14px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}
.ul-method-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ul-foot{padding:14px 20px 18px;border-top:1px solid #222b38;color:#8f9aac;font-size:13px;line-height:1.5}
.ul-foot p{margin:0}

/* Waiting for approval: the number the other device must match. */
.ul-wait{padding:20px;border-top:1px solid #222b38;background:#0a0f16}
.ul-wait h3{margin:0 0 6px;font-size:17px;color:#f5f7fb}
.ul-wait p{margin:0;color:#a0abbd;line-height:1.55;font-size:14px}
.ul-code{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 12px repeat(3,minmax(0,1fr));gap:8px;max-width:520px;margin:16px 0 12px;font:800 clamp(32px,9vw,52px)/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.04em;color:#f5f7fb;font-variant-numeric:tabular-nums}
.ul-code span{display:grid;place-items:center;padding:.28em 0;border:1px solid #303a4b;border-radius:10px;background:#141a24}
.ul-code span:nth-child(4){grid-column:5}
.ul-wait .ul-note{margin-top:10px;color:#ffe9a8}
.ul-timer{display:block;height:4px;margin:14px 0 10px;border-radius:99px;background:#222b38;overflow:hidden}
.ul-timer i{display:block;height:100%;width:100%;background:var(--lime,#c4ff4d);transform-origin:left center}

/* ---- dialogs (approval prompt, sign-out guard, save recovery) --------------------------------------------- */
.ul-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:0;border:1px solid #344054;
  border-radius:20px;color:#f5f7fb;background:#10151e;box-shadow:0 24px 80px rgba(0,0,0,.65)}
.ul-dialog::backdrop{background:rgba(3,5,9,.78)}
.ul-dialog-body{padding:24px}
.ul-dialog h2{text-wrap:balance;margin:0 0 10px;font-size:24px;line-height:1.2;letter-spacing:-.015em}
.ul-dialog p{margin:0 0 12px;color:#a8b3c4;line-height:1.55;text-wrap:pretty}
.ul-dialog p strong{color:#f5f7fb}
.ul-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.ul-actions .ul-btn{flex:1 1 180px}
.ul-actions-end{justify-content:flex-end}
.ul-actions-end .ul-btn{flex:0 1 auto}

/* Who is asking: the facts PatchTV measured, biggest first. */
.ul-who{margin:14px 0 18px;padding:0;border:1px solid #2b3545;border-radius:14px;background:#0a0f16;overflow:hidden}
.ul-who div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:12px 16px;border-top:1px solid #1d2531}
.ul-who div:first-child{border-top:0}
.ul-who dt{color:#8f9aac;font-size:13px;font-weight:700}
.ul-who dd{margin:0;color:#f5f7fb;font-weight:700;overflow-wrap:anywhere}
.ul-who dd small{text-wrap:pretty;display:block;color:#8f9aac;font-weight:500;font-size:13px}
.ul-dialog .ul-ask{margin:0 0 10px;font-weight:750;color:#f5f7fb}
.ul-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ul-choice{min-height:64px;padding:10px 6px;border:1px solid #3a4558;border-radius:12px;background:#1a212d;color:#f5f7fb;
  font:800 clamp(18px,5.2vw,24px)/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;letter-spacing:.03em;white-space:nowrap;cursor:pointer}
.ul-choice:hover:not(:disabled){background:#243044;border-color:#5a6a85}
.ul-choice:disabled{opacity:.45;cursor:not-allowed}
.ul-warn,.ul-dialog .ul-warn{margin:16px 0 0;padding:12px 14px;border:1px solid #6b5a1e;border-radius:12px;background:#201a08;color:#ffe9a8;text-wrap:pretty;font-size:14px;line-height:1.5}
.ul-deny-row{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin-top:16px}

/* Save-recovery options (sheet + sign-out guard share the list). */
.ul-options{list-style:none;margin:14px 0 0;padding:0;border:1px solid #2b3545;border-radius:14px;overflow:hidden}
.ul-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;align-items:center;padding:14px 16px;border-top:1px solid #222b38;background:#0c1119}
.ul-option:first-child{border-top:0}
.ul-option h3{margin:0;font-size:16px;color:#f5f7fb}
.ul-dialog .ul-option p,.ul-option p{margin:2px 0 0;font-size:14px;color:#a0abbd}
.ul-option .ul-btn{min-width:140px;min-height:44px;padding:10px 14px;font-size:14px}
.ul-option[data-done=true] h3::after{content:"Saved";margin-left:10px;padding:2px 8px;border-radius:99px;background:#1d3110;color:var(--lime,#c4ff4d);
  font-size:12px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;vertical-align:1px}
.ul-option[data-unavailable=true] h3,.ul-option[data-unavailable=true] p{color:#6f7a8c}
.ul-confirm{display:flex;gap:10px;align-items:flex-start;margin:16px 0 0;color:#c9d2e0;font-size:14px;line-height:1.5}
.ul-confirm input{width:22px;height:22px;margin:0;flex:0 0 auto;accent-color:var(--lime,#c4ff4d)}
.ul-manager{display:grid;gap:8px;margin:14px 0 0;padding:14px;border:1px solid #2b3545;border-radius:14px;background:#0a0f16}
.ul-manager label{font-size:13px;font-weight:700;color:#c9d2e0}
.ul-manager input{width:100%;box-sizing:border-box;min-height:46px;border:1px solid #3c4658;border-radius:10px;background:#080b11;color:#eef3fb;padding:10px 12px;
  font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}

/* ---- nudge for people who never saved a way back in -------------------------------------------------------- */
.ul-nudge{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;align-items:center;margin:0 0 18px;padding:16px 20px;
  border:1px solid #6b5a1e;border-radius:16px;background:#1a1608}
.ul-nudge h2{margin:0 0 4px;font-size:18px;line-height:1.3;color:#fff3c9}
.ul-nudge p{text-wrap:pretty;margin:0;color:#d9cfa6;font-size:14px;line-height:1.5}
.ul-nudge-actions{display:flex;gap:10px;align-items:center}
.ul-nudge .ul-link{color:#d9cfa6}
.ul-toast{position:fixed;left:50%;bottom:24px;z-index:60;transform:translateX(-50%);width:min(520px,calc(100vw - 24px));display:grid;
  grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px;border:1px solid #6b5a1e;border-radius:14px;
  background:#1a1608;color:#fff3c9;box-shadow:0 16px 48px rgba(0,0,0,.55);font-size:14px;line-height:1.45}
.ul-toast b{display:block;color:#fff3c9}
.ul-toast span{color:#d9cfa6}

/* ---- printable recovery sheet ------------------------------------------------------------------------------ */
.ul-print{display:none}
.ul-qr{display:block;width:232px;height:232px;margin:14px auto 6px;padding:10px;border-radius:12px;background:#fff;box-sizing:border-box}
.ul-qr svg{display:block;width:100%;height:100%}
@media print{
  body.ul-printing>*:not(.ul-print){display:none!important}
  body.ul-printing{background:#fff!important;color:#000!important}
  body.ul-printing .ul-print{display:block;padding:18mm;color:#000;font:12pt/1.5 Georgia,"Times New Roman",serif}
  .ul-print h1{font:700 22pt/1.2 Arial,Helvetica,sans-serif;margin:0 0 4mm}
  .ul-print p{margin:0 0 4mm;font-size:12pt}
  .ul-print .ul-print-qr{width:70mm;height:70mm;margin:8mm 0}
  .ul-print .ul-print-qr svg{width:100%;height:100%}
  .ul-print code{display:block;padding:4mm;border:.4mm solid #000;font:11pt/1.5 "Courier New",monospace;overflow-wrap:anywhere;word-break:break-all}
}

/* ---- television (10-foot) approval prompt: 1920x1080, D-pad ------------------------------------------------ */
.ul-tv{position:fixed;inset:0;z-index:2147483000;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:0;
  background:#06080c;color:#f5f7fb;font-size:28px;line-height:1.4}
.ul-tv-who{display:flex;flex-direction:column;justify-content:flex-start;padding:7vh 4.5vw 4vh 6vw;border-right:1px solid #1d2531;background:#0a0e15}
.ul-tv-who .ul-eyebrow{font-size:24px;letter-spacing:.18em;margin-bottom:22px}
.ul-tv-who h2{text-wrap:balance;margin:0 0 40px;font-size:72px;line-height:1.04;letter-spacing:-.03em}
.ul-tv-facts{margin:0;padding:0}
.ul-tv-facts div{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;padding:26px 0;border-top:1px solid #222b38}
.ul-tv-facts dt{color:#b6c0d0;font-size:30px;font-weight:700}
.ul-tv-facts dd{margin:0;font-size:42px;font-weight:800;line-height:1.2}
.ul-tv-facts dd small{display:block;margin-top:6px;color:#b6c0d0;font-size:30px;font-weight:500}
.ul-tv-act{display:flex;flex-direction:column;justify-content:flex-start;padding:7vh 6vw 4vh 4.5vw}
.ul-tv-act p{margin:0 0 24px;color:#dbe2ee;font-size:36px;line-height:1.35}
.ul-tv-act p strong{color:#fff}
.ul-tv-choices{display:grid;gap:16px;margin:0 0 24px}
.ul-tv .ul-choice{min-height:100px;border-width:3px;border-radius:18px;font-size:60px;letter-spacing:.08em;background:#141b26}
.ul-tv .ul-choice:focus,.ul-tv .ul-btn:focus{outline:0;border-color:var(--lime,#c4ff4d);background:#1e2a12;box-shadow:0 0 0 6px rgba(196,255,77,.28);transform:scale(1.02)}
.ul-tv .ul-btn{min-height:92px;border-width:3px;border-radius:18px;font-size:34px;padding:18px 28px}
.ul-tv .ul-btn-danger:focus{border-color:#ffb5aa;background:#5a2125;box-shadow:0 0 0 6px rgba(255,181,170,.28)}
.ul-tv .ul-timer{height:8px;margin:28px 0 12px}
.ul-tv-hint{display:block;color:#c9d2e0;font-size:30px;line-height:1.45}
.ul-tv-hint b{display:block;color:#fff;font-weight:800}
.ul-tv .ul-status{font-size:30px}
.ul-tv .ul-status:empty{display:none}
html.ul-tv-open{overflow:hidden;scrollbar-gutter:auto}

@media(max-width:620px){
  .ul-method{grid-template-columns:1fr}
  .ul-method .ul-btn{width:100%}
  .ul-dialog-body{padding:20px 18px}
  .ul-dialog h2{font-size:22px}
  .ul-option{padding:12px 14px}
  .ul-option .ul-btn{min-width:104px;padding:10px 12px}
  .ul-choices{grid-template-columns:1fr}
  .ul-choice{min-height:56px;font-size:24px}
  .ul-nudge{grid-template-columns:1fr;padding:16px}
  .ul-nudge-actions{flex-wrap:wrap}
  .ul-nudge-actions .ul-btn{flex:1 1 auto}
  .ul-who div{grid-template-columns:78px minmax(0,1fr)}
  .ul-toast{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:no-preference){
  .ul-tv .ul-choice,.ul-tv .ul-btn{transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
}
