/* llb-popup.css: the LLamacoid Builder's popup over the solar wizard
   (2026-11-06). Tatem: canvas #3b3b3b, hairline #606060, Inter 400 at
   13/16/20, 6px controls, 16px on the sheet, no shadows (the scrim does the
   lifting). A dialog on a desktop, a full-screen sheet at 640px and under. */

html.llb-open,html.llb-open body{overflow:hidden!important;overscroll-behavior:none}
html.llb-open .w-body{overflow:hidden!important}

.llb-pop{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px;
  font:400 16px/1.5 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.007em;color:#fff}
.llb-pop *{box-sizing:border-box;font-family:inherit;font-weight:400;letter-spacing:inherit;box-shadow:none;text-shadow:none}
.llb-scrim{position:absolute;inset:0;background:rgba(24,24,24,.78)}
.llb-sheet{position:relative;display:flex;flex-direction:column;width:min(1240px,100%);height:min(900px,100%);
  background:#3b3b3b;border:1px solid #606060;border-radius:16px;overflow:hidden}
.llb-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.llb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:20px 32px 16px;border-bottom:1px solid #606060}
.llb-head h2{margin:0;font-size:20px;line-height:1.4;color:#fff;outline:0}
.llb-head p{margin:2px 0 0;font-size:16px;line-height:1.5;color:#c2c2c2;max-width:64ch}
.llb-leave{flex:none;min-height:44px;padding:10px 0;font-size:16px;color:#fff;background:none;border:0;text-decoration:underline;text-underline-offset:4px;cursor:pointer}

.llb-body{position:relative;flex:1 1 auto;min-height:0;background:#3b3b3b}
.llb-frame{display:block;width:100%;height:100%;border:0;background:#3b3b3b;color-scheme:dark}
.llb-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;font-size:16px;color:#c2c2c2;pointer-events:none}
.llb-pop.ready .llb-wait{display:none}
.llb-pop:not(.ready) .llb-frame{visibility:hidden}

.llb-foot{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:16px 32px;border-top:1px solid #606060;background:#3b3b3b}
.llb-msg{flex:1 1 100%;margin:0;font-size:16px;line-height:1.5;color:#fff}
.llb-msg:empty{display:none}
.llb-msg:not(:empty)::before{content:'';display:inline-block;width:8px;height:8px;margin-right:10px;border-radius:2px;background:#ff9b8f;vertical-align:1px}
.llb-status{margin-left:auto;font-size:13px;line-height:1.5;color:#c2c2c2;text-align:right}
.llb-cancel{min-height:48px;padding:10px 16px;font-size:16px;color:#fff;background:transparent;border:1px solid transparent;border-radius:6px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.llb-cancel:hover{border-color:#606060;text-decoration:none}
.llb-done{min-width:160px;min-height:48px;padding:10px 32px;font-size:16px;color:#3b3b3b;background:#fff;border:1px solid #fff;border-radius:6px;cursor:pointer;transition:background .2s,border-color .2s}
.llb-done:hover:not(:disabled){background:#e6e6e6;border-color:#e6e6e6}
.llb-done:disabled{cursor:not-allowed;opacity:.45}
.llb-pop button:focus-visible,.llb-pop h2:focus-visible,.llb-frame:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* a quiet arrival; none at all under reduced motion */
@media (prefers-reduced-motion:no-preference){
  .llb-scrim{opacity:0;transition:opacity .18s ease-out}
  .llb-sheet{opacity:0;transform:translateY(8px);transition:opacity .2s ease-out,transform .2s ease-out}
  .llb-pop.in .llb-scrim{opacity:1}
  .llb-pop.in .llb-sheet{opacity:1;transform:none}
}

/* a phone: the whole screen, buttons where the thumb is */
@media (max-width:640px){
  .llb-pop{padding:0}
  .llb-sheet{width:100%;height:100%;height:100dvh;border:0;border-radius:0}
  .llb-head{flex-direction:column;align-items:stretch;padding:calc(12px + env(safe-area-inset-top)) 16px 8px;gap:0}
  .llb-head h2{font-size:20px}
  .llb-head p{font-size:13px}
  .llb-leave{align-self:flex-start;font-size:13px;min-height:44px;padding:8px 0}
  .llb-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:8px 12px;flex-wrap:wrap}
  .llb-msg{position:absolute;left:0;right:0;bottom:100%;padding:12px 16px;background:#464646;border-top:1px solid #606060}
  /* why Done is off (or what it will hand back), on its own line above the
     buttons; nothing when there is nothing to say */
  .llb-status{order:-1;flex:1 1 100%;margin:0;text-align:left}
  .llb-status:empty,.llb-pop.ok .llb-status{display:none}
  .llb-cancel{flex:0 0 auto;padding:10px 12px}
  .llb-done{flex:1 1 auto;min-width:0;margin-left:auto}
}
@media (max-width:640px) and (max-height:520px){.llb-head p{display:none}}
/* a 320px phone: the lab's hint is said again by its own screen, so it gives
   its lines to the typing room (council round LAB-1, item 9) */
@media (max-width:360px){
  .llb-lab .llb-head p{display:none}
  .llb-head{padding-bottom:4px}
}

/* ---------------------------------------------------------------- the wizard's step 7
   The diagram step opens on one card: what the plate is, what it was drawn
   from (rows, as Tatem lists are), and the way in. */
#sl-wiz .w-ol-start .w-group-head{margin:20px 0 8px}
#sl-wiz .w-ol-facts{list-style:none;margin:0 0 24px;padding:0;border-top:1px solid #606060}
#sl-wiz .w-ol-facts li{padding:10px 0;font-size:16px;line-height:1.5;color:#fff;border-bottom:1px solid #606060}
#sl-wiz .w-ol-start .w-btn,#sl-wiz .w-ol-done .w-btn{margin-top:8px}
/* round LAB-1: the card's own button went (the footer's "Check my diagram"
   is the one way in), so the list ends the card */
#sl-wiz .w-ol-start .w-ol-facts:last-child{margin-bottom:0}
