/* =============================================================================
 * signing/signing.css — Signing Paperwork (island-map hub + full-screen scenes)
 * Reuses the battery tool's :root CSS variables (--ink, --blue, --green, …).
 * ========================================================================== */

#viewSign.sign { display: none; }
#viewSign.sign.show { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app.signing .answer { display: none !important; }

:root {
  --sgn-green: #54e08a;
  --sgn-green-deep: #1fae5f;
}

.sgn-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 18px 22px;
}

/* ---- hub header ---- */
.sgn-head { display: flex; align-items: center; gap: 14px; padding: 4px 2px 10px; }
.sgn-head .sgn-back {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(120,135,150,.35); background: rgba(255,255,255,.55);
  color: #5b6571; display: grid; place-items: center; cursor: pointer; transition: all .18s;
}
.sgn-head .sgn-back:hover { background: #fff; box-shadow: var(--shadow); }
.sgn-head h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0; }
.sgn-head .sgn-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---- hub scene (island map) ---- */
.sgn-scene { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 2048 / 950; }
.sgn-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }

/* ---- island hotspots: the painted buildings ARE the targets — NO boxes ---- */
.sgn-hotspot {
  position: absolute; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; cursor: pointer; z-index: 5;
  transition: transform .18s ease, filter .18s ease;
}
.sgn-hotspot:hover { transform: translate(-50%, -50%) scale(1.05); filter: drop-shadow(0 10px 22px rgba(30,70,130,.35)); }
.sgn-hotspot:active { transform: translate(-50%, -50%) scale(1.02); }
/* discovery beacon — a small "tap me" pulse at the building base */
.sgn-hotspot .hint {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: sgnPing 1.9s ease-out infinite; pointer-events: none;
}
@keyframes sgnPing {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70% { box-shadow: 0 0 0 13px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.sgn-hotspot.done .hint { display: none; }
.sgn-hotspot .badge {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sgn-green); color: #06351c; display: none; place-items: center;
  font-size: 16px; font-weight: 800;
  box-shadow: 0 0 0 4px rgba(84,224,138,.35), 0 6px 16px rgba(40,160,90,.5); border: 2px solid #fff;
}
.sgn-hotspot.done .badge { display: grid; animation: sgnGlow 2.6s ease-in-out infinite; }
@keyframes sgnGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(84,224,138,.3), 0 6px 14px rgba(40,160,90,.4); }
  50% { box-shadow: 0 0 0 6px rgba(84,224,138,.5), 0 8px 20px rgba(50,200,110,.6); }
}

/* ---- central HUD + launch ---- */
.sgn-hud { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; z-index: 6; pointer-events: none; color: #fff; }
.sgn-hud .togo { font-size: 30px; font-weight: 300; line-height: 1; text-shadow: 0 2px 8px rgba(20,30,45,.8); }
.sgn-hud .togo b { font-weight: 700; }
.sgn-hud .mins { font-size: 11.5px; letter-spacing: .4px; margin-top: 5px; text-shadow: 0 2px 6px rgba(20,30,45,.8); opacity: .95; }
.sgn-hud .tap { font-size: 10.5px; letter-spacing: 1px; margin-top: 8px; opacity: .8; text-transform: uppercase; }
.sgn-launch-wrap { display: none; flex-direction: column; align-items: center; gap: 8px; pointer-events: auto; }
.sgn-scene.ready .sgn-hud .togo, .sgn-scene.ready .sgn-hud .mins, .sgn-scene.ready .sgn-hud .tap { display: none; }
.sgn-scene.ready .sgn-launch-wrap { display: flex; }
.sgn-launch {
  border: 0; cursor: pointer; background: linear-gradient(180deg, #ff7a59, #ef5b39);
  color: #fff; font-weight: 800; letter-spacing: 1.5px; font-size: 15px; padding: 14px 34px; border-radius: 30px;
  box-shadow: 0 10px 28px rgba(239,91,57,.5); animation: sgnPulseBtn 1.8s ease-in-out infinite;
}
@keyframes sgnPulseBtn { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
.sgn-rocket { position: absolute; left: 50%; bottom: 0; width: 64px; transform: translate(-50%, 0); z-index: 8; pointer-events: none; opacity: 0; }
.sgn-scene.launching .sgn-rocket { animation: sgnLiftoff 2.4s cubic-bezier(.5,0,.7,1) forwards; }
@keyframes sgnLiftoff {
  0% { opacity: 1; transform: translate(-50%, 0) scale(.7); }
  20% { transform: translate(-50%, -10%) scale(.75); }
  100% { opacity: 1; transform: translate(-50%, -160%) scale(1.05); }
}

/* =============================================================================
 * FULL-SCREEN SCENE  (one per island: chrome + title + 3D hero + step rail)
 * ========================================================================== */
.sgn-sceneview, .sgn-stepview {
  position: absolute; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 50% 18%, #f4f6f7 0%, #e7eaed 55%, #dde1e5 100%);
  opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease;
  overflow: hidden;
}
.sgn-sceneview.in, .sgn-stepview.in { opacity: 1; transform: none; }
.sgn-stepview { z-index: 45; background: radial-gradient(120% 90% at 50% 12%, #f6f7f8 0%, #eaedf0 60%, #e0e4e8 100%); }

/* top chrome bar: (‹)  ✎ SIGNING PROCESS  (≡) */
.sgn-sv-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 6px; }
.sgn-sv-back, .sgn-sv-menu {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 22px; transition: transform .12s, background .15s, box-shadow .15s;
}
.sgn-sv-back { justify-self: start; background: #2b3036; color: #fff; box-shadow: 0 6px 16px rgba(20,28,38,.3); }
.sgn-sv-back:hover { background: #1f242a; transform: scale(1.05); }
.sgn-sv-menu { justify-self: end; background: #e9ecef; color: #444b52; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.sgn-sv-menu:hover { background: #dfe3e7; }
.sgn-sv-brand { display: inline-flex; align-items: center; gap: 9px; color: #2c3137; font-weight: 600; letter-spacing: 2.5px; font-size: 17px; white-space: nowrap; }
.sgn-sv-logo { display: inline-grid; place-items: center; width: 26px; height: 26px; color: #2c3137; }
.sgn-sv-logo svg { width: 24px; height: 24px; }

/* middle: title + subtitle + hero */
.sgn-sv-mid { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 20px 0; }
.sgn-sv-title { margin: 6px 0 0; font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: 1px; color: #20252a; }
.sgn-sv-sub { margin: 6px 0 0; font-size: clamp(14px, 1.8vw, 18px); color: #6c757d; font-weight: 500; }
.sgn-sv-stage { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; }
/* the zoom render/video is the scene — it fills the whole stage edge-to-edge and
   feathers into the page so it reads as a live backdrop, not a framed picture */
.sgn-sv-hero {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center 50%;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  -webkit-mask-image: radial-gradient(140% 140% at 50% 50%, #000 82%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(140% 140% at 50% 50%, #000 82%, rgba(0,0,0,0) 100%);
}
/* effect loop (smoke / ticker) composited over the filled hero */
.sgn-sv-vid {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  pointer-events: none; object-fit: contain; border-radius: 10px;
}
.sgn-sv-vid.blend { mix-blend-mode: screen; border-radius: 0; }

/* hub-overview looping videos: central rocket + small per-island loops */
.sgn-rocket-vid, .sgn-isl-vid {
  position: absolute; transform: translate(-50%, -50%); z-index: 7;
  pointer-events: none; object-fit: contain;
}
.sgn-isl-vid.blend, .sgn-rocket-vid.blend { mix-blend-mode: screen; }

/* bottom: the step rail of circular icons */
.sgn-sv-rail {
  position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap;
  gap: clamp(14px, 4vw, 56px); padding: 10px 22px 30px;
}
.sgn-step-node {
  position: relative; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 9px; width: 96px;
  transition: transform .14s ease;
}
.sgn-step-node:hover { transform: translateY(-4px); }
.sgn-step-circle {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.82); color: #5a636b;
  box-shadow: 0 8px 20px rgba(40,55,75,.14), inset 0 0 0 1px rgba(0,0,0,.04); transition: all .18s ease;
}
.sgn-step-circle .sgn-step-ic svg { width: 34px; height: 34px; display: block; }
.sgn-step-node:hover .sgn-step-circle { background: #fff; box-shadow: 0 12px 26px rgba(40,55,75,.2); color: #2c3137; }
.sgn-step-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #5a636b; text-transform: uppercase; line-height: 1.2; max-width: 100px; }
.sgn-step-sub { font-size: 9.5px; font-weight: 700; letter-spacing: .6px; color: #aab1b8; text-transform: uppercase; margin-top: -4px; }
.sgn-step-check {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) scale(0);
  color: #2fa463; font-size: 26px; font-weight: 900; text-shadow: 0 2px 4px rgba(40,160,90,.3); transition: transform .2s ease;
}
/* completed step: green fill + glow + check */
.sgn-step-node.done .sgn-step-circle {
  background: linear-gradient(180deg, #6cf0a0, #3fce7e); color: #07371f;
  box-shadow: 0 0 0 6px rgba(84,224,138,.22), 0 12px 26px rgba(40,180,100,.45);
}
.sgn-step-node.done .sgn-step-label { color: #2c3137; }
.sgn-step-node.done .sgn-step-check { transform: translateX(-50%) scale(1); }

/* =============================================================================
 * STEP screen (question / scheduler / uploader / document-sign)
 * ========================================================================== */
.sgn-sv-stephead { text-align: center; padding: 4px 24px 0; }
.sgn-sv-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2.5px; color: #9aa2a9; text-transform: uppercase; }
.sgn-sv-steptitle { margin: 6px auto 0; font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; color: #20252a; max-width: 880px; line-height: 1.12; }
.sgn-sv-prompt { margin: 8px auto 0; font-size: 15px; color: #6c757d; max-width: 640px; }
.sgn-sv-stepbody { flex: 1; min-height: 0; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; align-items: center; }
/* question screens centre their hero + options in the tall step area */
.sgn-sv-stepbody.sgn-choices { justify-content: center; gap: 18px; padding: 22px 22px 40px; }

/* a centered white working panel for scheduler / uploads / forms */
.sgn-sv-panel { width: 100%; max-width: 620px; }

/* image-choice question grid */
.sgn-choice-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: clamp(14px, 2.5vw, 26px); margin-top: 8px; width: 100%; max-width: 920px;
}
.sgn-choice {
  flex: 0 1 240px; min-height: 118px; cursor: pointer;
  background: transparent; border: none; border-radius: 22px;
  box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding: 8px 12px 0;
  transition: transform .14s ease;
}
.sgn-choice.has-img { min-height: 240px; }
.sgn-choice:hover { transform: translateY(-4px); }
.sgn-choice-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: #eef1f4; color: #4a525a; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.sgn-choice-ic .emoji { font-size: 40px; line-height: 1; }
.sgn-choice-ic .sgn-ic-lg svg { width: 42px; height: 42px; }
.sgn-choice-desc { font-size: 13px; line-height: 1.35; color: #6c757d; text-align: center; max-width: 200px; }
/* the label now lives inside a pill button at the foot of each card */
.sgn-choice-btn {
  margin-top: auto; width: 100%; padding: 13px 20px; border-radius: 999px;
  background: #fff; border: 1.5px solid #e2e7ec;
  font-size: 14px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #20252a;
  box-shadow: 0 8px 18px rgba(40,55,75,.14);
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.sgn-choice:hover .sgn-choice-btn { box-shadow: 0 12px 24px rgba(40,55,75,.2); border-color: #cfd6dc; }
.sgn-choice.good:hover .sgn-choice-btn { border-color: var(--sgn-green); }
.sgn-choice.warn:hover .sgn-choice-btn { border-color: #efb23c; }
.sgn-choice.sel .sgn-choice-btn { background: var(--sgn-green); border-color: transparent; color: #07371f; box-shadow: 0 12px 26px rgba(40,180,100,.32); }
/* image renders sit transparent above the pill */
.sgn-choice.has-img .sgn-choice-ic { width: 150px; height: 150px; border-radius: 18px; background: transparent; box-shadow: none; overflow: visible; }
.sgn-choice-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(40,55,75,.25)); }
.sgn-choice.good .sgn-choice-ic { background: rgba(84,224,138,.16); color: #1fae5f; }
.sgn-choice.warn .sgn-choice-ic { background: rgba(239,178,60,.18); color: #c8861f; }
.sgn-choice.has-img .sgn-choice-ic { background: transparent; }
/* image-only cards (battery placement) — the photo carries its own baked caption,
   so show it large with no redundant pill, and ring it when selected */
.sgn-choice.has-img:not(:has(.sgn-choice-btn)) { min-height: 0; padding-bottom: 8px; }
.sgn-choice.has-img:not(:has(.sgn-choice-btn)) .sgn-choice-ic {
  width: clamp(190px, 27vw, 250px); height: auto; aspect-ratio: 49 / 53; border-radius: 24px;
}
.sgn-choice.has-img:not(:has(.sgn-choice-btn)) .sgn-choice-img {
  border-radius: 24px; filter: drop-shadow(0 12px 22px rgba(40,55,75,.28));
  transition: transform .14s ease;
}
.sgn-choice.has-img.sel:not(:has(.sgn-choice-btn)) .sgn-choice-ic {
  outline: 3px solid var(--sgn-green); outline-offset: 3px;
}
/* shared single hero render (Gates) shown once above the options */
.sgn-choice-hero { position: relative; display: inline-grid; place-items: center; margin: 0 auto 4px; }
.sgn-choice-hero img, .sgn-choice-herovid { max-height: min(42vh, 360px); max-width: min(86vw, 540px); width: auto; object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(40,55,75,.3)); }
/* feather the baked grey backdrop of still renders so they bleed into the page */
.sgn-choice-hero img {
  -webkit-mask-image: radial-gradient(120% 116% at 50% 48%, #000 66%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(120% 116% at 50% 48%, #000 66%, rgba(0,0,0,0) 100%);
}
.sgn-choice-herovid { border-radius: 18px; }
/* black-bg effect loop (steam/smoke) — screen blend drops the black to transparent */
.sgn-choice-herofx { position: absolute; mix-blend-mode: screen; pointer-events: none;
  width: 40%; left: 4%; bottom: 2%; }
.sgn-choice-note { margin: 22px auto 0; max-width: 560px; text-align: center; font-size: 13px; color: #8a929a; }

/* =============================================================================
 * HOA — bespoke two-neighborhood chooser (gated = YES, open = NO)
 * Two large clickable renders laid out diagonally: YES sits high-left with its
 * pill on top, NO sits low-right with its pill below — echoing the original.
 * ========================================================================== */
.sgn-hoa-body { display: flex; flex-direction: column; min-height: 0; align-items: stretch; }
.sgn-hoa {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: stretch; justify-content: center;
  gap: clamp(8px, 3vw, 40px); padding: 4px clamp(10px, 4vw, 44px) 0;
}
.sgn-hoa-col {
  appearance: none; background: none; border: 0; cursor: pointer;
  flex: 1 1 0; max-width: 50%; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 0; transition: transform .15s ease;
}
.sgn-hoa-col.yes { justify-content: flex-start; align-items: flex-start; }   /* high-left */
.sgn-hoa-col.no  { justify-content: flex-end;   align-items: flex-end;  }    /* low-right */
.sgn-hoa-col:hover { transform: translateY(-3px); }
.sgn-hoa-img {
  width: 100%; max-height: 46vh; object-fit: contain; display: block;
  filter: drop-shadow(0 16px 26px rgba(40,55,75,.3));
  transition: transform .15s ease, filter .15s ease;
}
.sgn-hoa-col:hover .sgn-hoa-img { transform: scale(1.02); }
.sgn-hoa-col.sel .sgn-hoa-img { filter: drop-shadow(0 10px 18px rgba(40,180,100,.45)); }
.sgn-hoa-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 132px; padding: 12px 26px; border-radius: 999px;
  background: #fff; box-shadow: 0 10px 22px rgba(40,55,75,.18), inset 0 0 0 1px rgba(0,0,0,.05);
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.sgn-hoa-pill b { font-size: 19px; font-weight: 800; letter-spacing: 2px; color: #2c3137; }
.sgn-hoa-pill small { font-size: 11px; font-weight: 600; letter-spacing: .3px; color: #8a929a; }
.sgn-hoa-col:hover .sgn-hoa-pill { box-shadow: 0 14px 28px rgba(40,55,75,.24); }
.sgn-hoa-col.sel .sgn-hoa-pill { background: var(--sgn-green); box-shadow: 0 14px 28px rgba(40,180,100,.34); }
.sgn-hoa-col.sel .sgn-hoa-pill b { color: #07371f; }
.sgn-hoa-col.sel .sgn-hoa-pill small { color: #0a5b32; }
.sgn-hoa-note { flex: 0 0 auto; margin: 8px auto 12px; max-width: 560px; text-align: center; font-size: 13px; color: #8a929a; }
@media (max-width: 640px) {
  .sgn-hoa { flex-direction: column; align-items: center; gap: 10px; }
  .sgn-hoa-col, .sgn-hoa-col.yes, .sgn-hoa-col.no { max-width: 86%; align-items: center; }
  .sgn-hoa-img { max-height: 30vh; }
}

/* =============================================================================
 * SCHEDULE SURVEY — Unity day→night timeline
 * ========================================================================== */
/* Sky scene: the survey-sky image spans the whole step view so it bleeds up
   through the top chrome bar; the body and bar sit transparent on top of it. */
.sgn-stepview.sgn-sky {
  background:
    linear-gradient(180deg, rgba(14,26,42,.5) 0%, rgba(14,26,42,.3) 42%, rgba(14,26,42,.5) 100%),
    #1a2b3a url("../assets/signing/survey-sky.jpg") center top / cover no-repeat;
}
.sgn-stepview.sgn-sky .sgn-sv-stepbody {
  padding: 0; align-items: stretch; overflow: hidden; background: transparent;
}
.sgn-stepview.sgn-sky .sgn-sv-menu { background: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.sgn-stepview.sgn-sky .sgn-sv-menu:hover { background: rgba(255,255,255,.34); }
.sgn-survey { position: relative; flex: 1; min-height: 0; overflow-y: auto; color: #fff;
  display: flex; flex-direction: column; padding: 20px clamp(16px, 4vw, 52px) 28px; }

/* header */
.sgn-survey-head { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 14px; }
.sgn-survey-id { display: flex; align-items: center; gap: 12px; }
.sgn-survey-avatar { position: relative; width: 60px; height: 60px; flex: 0 0 auto; }
.sgn-survey-avatar img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
.sgn-survey-clock { position: absolute; right: -6px; bottom: -2px; width: 25px; height: 25px; background: #fff;
  border-radius: 50%; display: grid; place-items: center; color: #2a3a6b; box-shadow: 0 3px 9px rgba(0,0,0,.35); }
.sgn-survey-clock svg { width: 16px; height: 16px; display: block; }
.sgn-survey-idlabel { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; }
.sgn-survey-range { text-align: center; font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3); white-space: nowrap; }
.sgn-survey-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sgn-survey-arrow, .sgn-survey-today { border: none; cursor: pointer; color: #fff; font-weight: 800;
  letter-spacing: 1px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; transition: background .15s; }
.sgn-survey-arrow { width: 40px; height: 40px; font-size: 20px; line-height: 1; }
.sgn-survey-today { height: 40px; padding: 0 20px; font-size: 13px; }
.sgn-survey-arrow:hover, .sgn-survey-today:hover { background: rgba(255,255,255,.34); }
.sgn-survey-sub { position: relative; z-index: 2; text-align: center; margin: 10px 0 16px;
  font-size: 14px; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(20,40,70,.45); }

/* grid: time gutter | 7 day columns | time gutter */
.sgn-survey-grid { position: relative; z-index: 2; display: grid;
  grid-template-columns: auto repeat(7, minmax(0, 1fr)) auto; gap: 10px; align-items: start; }
.sgn-survey-col { display: flex; flex-direction: column; gap: 10px; }
.sgn-survey-colhead { text-align: center; line-height: 1.1; padding-bottom: 4px; min-height: 34px;
  text-shadow: 0 1px 6px rgba(15,30,50,.5); }
.sgn-survey-colhead .dn { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; opacity: .82; }
.sgn-survey-colhead .dd { display: block; font-size: 20px; font-weight: 800; }
.sgn-survey-col.weekend .sgn-survey-colhead { opacity: .5; }
.sgn-slot-card { width: 100%; min-height: 58px; cursor: pointer; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 14px; background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 6px;
  transition: transform .14s ease, background .16s ease, box-shadow .16s ease; }
.sgn-slot-card:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); }
.sgn-survey-col.weekend .sgn-slot-card { background: rgba(255,255,255,.07); }
.sgn-survey-col.weekend .sgn-slot-card:hover { background: rgba(255,255,255,.2); }
.sgn-slot-name { font-size: 13px; font-weight: 700; }
.sgn-slot-win { font-size: 11px; opacity: .8; }
.sgn-slot-card.booked { background: linear-gradient(180deg, #6cf0a0, #38c578); border-color: #38c578; color: #06371f;
  box-shadow: 0 0 0 3px rgba(84,224,138,.3), 0 10px 22px rgba(40,180,100,.35); }
.sgn-slot-booked { font-size: 12px; font-weight: 800; letter-spacing: .5px; }

/* sunrise/sunset time gutters */
.sgn-survey-axis { display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 44px;
  color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(15,30,50,.55); }
.sgn-survey-axhead, .sgn-survey-axmoon { min-height: 34px; display: grid; place-items: center; }
.sgn-survey-axhead svg, .sgn-survey-axmoon svg { width: 22px; height: 22px; display: block; }
.sgn-survey-axrow { min-height: 58px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  letter-spacing: .3px; white-space: nowrap; }

/* scheduler */
.sgn-sched-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sgn-sched-head { font-weight: 800; color: #2c3137; letter-spacing: .6px; }
.sgn-sched-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.sgn-day { flex: 0 0 auto; width: 58px; border-radius: 14px; border: 1.5px solid #e1e6ea; background: #fff; padding: 9px 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .14s; }
.sgn-day .dn { font-size: 11px; color: #8a929a; font-weight: 700; }
.sgn-day .dd { font-size: 18px; font-weight: 800; color: #2c3137; }
.sgn-day:hover { border-color: var(--sgn-green); }
.sgn-day.sel { border-color: var(--sgn-green); background: rgba(84,224,138,.12); box-shadow: inset 0 0 0 1px var(--sgn-green); }
.sgn-day.off { opacity: .45; cursor: not-allowed; background: #f3f5f7; }
.sgn-sched-label { font-size: 12px; font-weight: 700; letter-spacing: .3px; color: #8a929a; margin-bottom: 8px; text-transform: uppercase; }
.sgn-slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sgn-slot { border-radius: 14px; border: 1.5px solid #e1e6ea; background: #fff; padding: 13px; cursor: pointer; font-weight: 800; color: #2c3137; font-size: 14px; transition: all .14s; }
.sgn-slot:hover { border-color: var(--sgn-green); }
.sgn-slot.sel { border-color: var(--sgn-green); background: rgba(84,224,138,.12); box-shadow: inset 0 0 0 1px var(--sgn-green); }
.sgn-booked { margin-top: 4px; padding: 16px; border-radius: 16px; background: rgba(84,224,138,.12); border: 1.5px solid var(--sgn-green); }
.sgn-booked .t { font-weight: 800; color: #20252a; }
.sgn-booked .s { font-size: 13.5px; color: #5a636b; margin-top: 3px; }

/* document-sign step */
.sgn-sv-signwrap { width: 100%; max-width: 720px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.sgn-doc {
  background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(40,55,75,.18); padding: 26px 26px 30px; position: relative; overflow: hidden;
  min-height: 320px;
}
.sgn-doc-band { position: absolute; left: 0; top: 0; height: 8px; width: 100%; background: linear-gradient(90deg, var(--blue, #5b9bd5), var(--sgn-green)); }
.sgn-doc-title { font-size: 18px; font-weight: 800; color: #20252a; margin-top: 8px; }
.sgn-doc-blurb { font-size: 13px; color: #6c757d; margin-top: 8px; line-height: 1.5; }
.sgn-doc-lines { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.sgn-doc-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px dashed #e7ebee; padding-bottom: 7px; }
.sgn-doc-line .k { color: #8a929a; }
.sgn-doc-line .v { color: #20252a; font-weight: 700; text-align: right; }
.sgn-doc-sigline { margin-top: 34px; border-top: 2px solid #20252a; padding-top: 6px; font-size: 11px; color: #8a929a; text-transform: uppercase; letter-spacing: .5px; }
.sgn-sign-card { background: rgba(255,255,255,.92); border-radius: 16px; box-shadow: 0 12px 30px rgba(40,55,75,.12); padding: 18px; }
.sgn-sign-label { font-size: 13px; font-weight: 700; color: #4a525a; margin-bottom: 10px; }

/* key/value table (design confirm) */
.sgn-kv { background: rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 12px 30px rgba(40,55,75,.12); padding: 18px 20px; }
.sgn-kv-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; border-bottom: 1px dashed #e7ebee; }
.sgn-kv-row:last-child { border-bottom: 0; }
.sgn-kv-row .k { color: #8a929a; }
.sgn-kv-row .v { color: #20252a; font-weight: 700; text-align: right; }

@media (max-width: 760px) {
  .sgn-sv-signwrap { grid-template-columns: 1fr; }
  .sgn-sv-brand { font-size: 13px; letter-spacing: 1.5px; }
  .sgn-sv-back, .sgn-sv-menu { width: 44px; height: 44px; font-size: 18px; }
  .sgn-step-node { width: 80px; }
  .sgn-step-circle { width: 66px; height: 66px; }
}

/* =============================================================================
 * shared form primitives (cards / options / fields / buttons / uploads)
 * ========================================================================== */
.sgn-card { background: var(--glass-solid, rgba(255,255,255,.92)); border-radius: 18px; box-shadow: var(--shadow, 0 10px 30px rgba(40,55,75,.14)); padding: 20px; margin-bottom: 16px; }
.sgn-card h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.sgn-card .hint { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }

.sgn-opts { display: flex; flex-direction: column; gap: 10px; }
.sgn-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid #e3e8ed; border-radius: 14px; background: #fff; padding: 13px 15px; cursor: pointer; transition: all .15s; font-size: 14.5px; color: var(--ink); }
.sgn-opt .oic { font-size: 22px; }
.sgn-opt .oic-img { display: inline-flex; width: 34px; height: 34px; }
.sgn-opt .oic-img img { width: 100%; height: 100%; object-fit: contain; }
.sgn-opt:hover { border-color: var(--blue, #5b9bd5); }
.sgn-opt.sel { border-color: var(--blue, #5b9bd5); background: rgba(91,155,213,.1); box-shadow: inset 0 0 0 1px var(--blue, #5b9bd5); }
.sgn-opt .ok { margin-left: auto; color: var(--sgn-green); font-weight: 700; opacity: 0; }
.sgn-opt.sel .ok { opacity: 1; }

.sgn-field { margin-bottom: 14px; }
.sgn-field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; }
.sgn-field input, .sgn-field textarea, .sgn-field select { width: 100%; box-sizing: border-box; border: 1.5px solid #e3e8ed; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--ink); background: #fff; font-family: inherit; }
.sgn-field input:focus, .sgn-field textarea:focus, .sgn-field select:focus { outline: none; border-color: var(--blue, #5b9bd5); }
.sgn-field textarea { min-height: 104px; resize: vertical; }

.sgn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-family: inherit; background: var(--blue-deep, #3f7cb5); color: #fff; font-weight: 700; font-size: 14.5px; letter-spacing: .3px; padding: 13px 22px; border-radius: 24px; box-shadow: 0 8px 20px rgba(63,124,181,.32); transition: filter .15s, transform .1s; }
.sgn-btn:hover { filter: brightness(1.06); }
.sgn-btn:active { transform: translateY(1px); }
.sgn-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sgn-btn.ghost { background: rgba(255,255,255,.85); color: var(--ink); box-shadow: inset 0 0 0 1.5px #d8dee4; }
.sgn-btn.green { background: linear-gradient(180deg, #5fe093, #2fbf6e); box-shadow: 0 8px 20px rgba(60,200,110,.35); }
.sgn-btn-row { display: flex; gap: 10px; align-items: center; margin-top: 4px; flex-wrap: wrap; }

.sgn-check { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid #e3e8ed; border-radius: 14px; padding: 14px 15px; cursor: pointer; background: #fff; font-size: 14px; color: var(--ink); margin-bottom: 10px; transition: all .15s; }
.sgn-check:hover { border-color: var(--blue, #5b9bd5); }
.sgn-check .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid #c4ccd3; display: grid; place-items: center; color: #fff; font-size: 15px; transition: all .15s; }
.sgn-check.on { border-color: var(--sgn-green); background: rgba(84,224,138,.08); }
.sgn-check.on .box { background: var(--sgn-green); border-color: var(--sgn-green); }

.sgn-uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.sgn-up { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eef1f4 center/cover no-repeat; border: 1px solid #e0e5ea; display: grid; place-items: center; font-size: 26px; color: #9aa3ac; }
.sgn-up .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(40,55,75,.7); color: #fff; border: 0; cursor: pointer; font-size: 12px; display: grid; place-items: center; }
.sgn-add-up { aspect-ratio: 1; border-radius: 12px; border: 2px dashed #c4ccd3; background: #fafbfc; display: grid; place-items: center; cursor: pointer; color: var(--blue, #5b9bd5); font-size: 30px; }
.sgn-add-up:hover { border-color: var(--blue, #5b9bd5); background: rgba(91,155,213,.06); }

.sgn-note { font-size: 12px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.sgn-note.warn { color: #c8761f; }

/* ---- Compliance island (Callpilot) -------------------------------------- */
.sgn-cp-intro p { font-size: 14px; color: var(--ink); line-height: 1.55; margin: 0 0 12px; }
.sgn-cp-list { margin: 0 0 6px; padding-left: 18px; }
.sgn-cp-list li { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 5px; }
.sgn-cp-langlabel { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.sgn-seg { display: inline-flex; background: #eef1f4; border-radius: 12px; padding: 4px; gap: 4px; }
.sgn-seg-btn { border: 0; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: transparent; padding: 8px 18px; border-radius: 9px; transition: all .14s; }
.sgn-seg-btn.sel { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(40,55,75,.14); }
.sgn-cp-done { display: flex; align-items: center; gap: 14px; background: rgba(84,224,138,.1); border: 1.5px solid rgba(84,224,138,.5); border-radius: 16px; padding: 16px 18px; }
.sgn-cp-done h4 { margin: 0 0 3px; font-size: 15px; color: var(--ink); }
.sgn-cp-done .hint { font-size: 12.5px; color: var(--ink-soft); }
.sgn-cp-badge { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sgn-green); color: #06351c; display: grid; place-items: center; font-size: 20px; font-weight: 800; box-shadow: 0 6px 16px rgba(40,160,90,.4); }
.sgn-cp-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--blue-deep, #3f7cb5); }

/* =========================================================================
 * In-document lease signer — full scroll-through, anchored signatures
 * ===================================================================== */
.lease-signer { display: flex; flex-direction: column; min-height: 0; }

/* sticky action toolbar */
.lease-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; margin: -6px -4px 14px;
  background: rgba(248, 250, 251, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e1e6ea;
}
.lease-bar-mid { display: flex; flex-direction: column; gap: 1px; margin-right: auto; }
.lease-bar-mid strong { font-size: 14px; color: var(--ink); }
.lease-prog { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lease-bar-actions { display: flex; align-items: center; gap: 8px; }
.lease-bar-actions .sgn-btn { white-space: nowrap; }
.lease-bar-actions .sgn-btn.ready { animation: leasePulseBtn 1.6s ease-in-out infinite; }
@keyframes leasePulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 174, 95, .45); }
  50% { box-shadow: 0 0 0 6px rgba(31, 174, 95, 0); }
}

.lease-status { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 22px 10px; }
.lease-status.warn { color: #c8443a; }

/* the page stack */
.lease-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 40px; }
.lease-page {
  position: relative; width: 100%; max-width: 760px;
  background: #fff; border-radius: 4px;
  box-shadow: 0 2px 10px rgba(30, 45, 65, .14), 0 0 0 1px rgba(30, 45, 65, .05);
  overflow: hidden;
}
.lease-canvas { display: block; width: 100%; height: auto; }
.lease-overlay { position: absolute; inset: 0; }

/* anchor hit targets */
.lease-anchor {
  position: absolute; box-sizing: border-box;
  border: 1.5px dashed #f0a13a; border-radius: 6px;
  background: rgba(255, 196, 92, .18);
  cursor: pointer; padding: 0; margin: 0;
  display: grid; place-items: center; overflow: visible;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.lease-anchor:hover { background: rgba(255, 196, 92, .34); }
.lease-anchor[data-type="sig"] { border-color: #2f8de0; background: rgba(91, 155, 213, .16); }
.lease-anchor[data-type="sig"]:hover { background: rgba(91, 155, 213, .3); }
.lease-anchor[data-type="date"] { border-color: #8a6fd0; background: rgba(138, 111, 208, .16); }
.lease-anchor-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: #6a4a12; pointer-events: none; user-select: none; white-space: nowrap;
}
.lease-anchor[data-type="sig"] .lease-anchor-tag { color: #1d557f; }
.lease-anchor[data-type="date"] .lease-anchor-tag { color: #4a3a82; }
.lease-anchor.pulse { animation: leaseAnchorPulse 1.4s ease-in-out; }
@keyframes leaseAnchorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 141, 224, 0); }
  30% { box-shadow: 0 0 0 4px rgba(47, 141, 224, .5); }
}
.lease-anchor.done {
  border-style: solid; border-color: rgba(31, 174, 95, .55);
  background: transparent; cursor: default;
}
.lease-anchor.done:hover { background: rgba(31, 174, 95, .06); }
.lease-stamp-img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.lease-stamp-date {
  font-size: clamp(9px, 1.4vw, 13px); color: #15233a; font-weight: 600;
  pointer-events: none; white-space: nowrap;
}

/* adopt-signature modal */
.lease-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(18, 28, 40, .52); backdrop-filter: blur(3px);
}
.lease-modal-card {
  width: 100%; max-width: 520px; box-sizing: border-box;
  background: #fff; border-radius: 18px; padding: 22px 22px 20px;
  box-shadow: 0 24px 60px rgba(15, 25, 40, .4);
  max-height: 92vh; overflow: auto;
}
.lease-modal-h { font-size: 19px; font-weight: 700; color: var(--ink); }
.lease-modal-sub { font-size: 13px; color: var(--ink-soft); margin: 4px 0 16px; line-height: 1.5; }
.lease-lab { display: block; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--ink-soft); margin: 14px 0 6px; text-transform: uppercase; }
.lease-init-row { display: flex; gap: 8px; margin-bottom: 8px; }

@media (max-width: 640px) {
  .lease-bar { flex-wrap: wrap; gap: 8px; }
  .lease-bar-actions { width: 100%; }
  .lease-bar-actions .sgn-btn { flex: 1 1 auto; font-size: 12.5px; }
}
