/* AreaGlimpse prototype skin: light, clean, modern. No em dashes in copy. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #1c2733;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --orange: #f06423;
  --orange-dark: #d9531a;
  --bg: #f7f8f9;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 39, 51, .10);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
img { display: block; }

/* ---------------- brand ---------------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand svg { flex: none; }
/* The lockup is orange mark, near-black wordmark (2026-10-26: orange and black, a basic logo). The glimpse
   span stays in the markup; it no longer takes the orange. */
.brand .glimpse { color: inherit; }

/* ---------------- page 1 ---------------- */
.page { max-width: 1080px; margin: 0 auto; padding: 26px 24px 70px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; }
header.top .tag { color: var(--muted); font-size: 13.5px; }
.hero { text-align: center; padding: 44px 0 8px; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 720px; margin: 0 auto; }
.hero p.sub { color: var(--muted); font-size: 18.5px; margin: 16px auto 0; max-width: 560px; line-height: 1.5; }
.pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pill { background: #fff; border: 1px solid var(--line); color: #475569; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.builder-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); max-width: 620px; margin: 30px auto 0; padding: 26px; text-align: left;
}
.builder-card label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 9px; }
.addr-wrap { position: relative; }
input[type=text].addr {
  width: 100%; font-size: 16.5px; padding: 14px 16px; border: 1.5px solid #cbd5e1;
  border-radius: 12px; color: var(--ink); background: #fff; outline: none;
}
input[type=text].addr:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.autocomplete {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; z-index: 40;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: none;
}
.autocomplete.open { display: block; }
.autocomplete button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 11px 16px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid #f1f5f9;
}
.autocomplete button:last-child { border-bottom: none; }
.autocomplete button:hover { background: #f8fafc; }
.autocomplete button small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
/* the photo upload, in the standard dropzone pattern: a big
   dashed target, a photo glyph, one plain instruction line,
   and hover and drag-over states that answer the pointer. */
.dropzone {
  margin-top: 20px; border: 2px dashed #b7c7d9; border-radius: 16px; padding: 40px 26px 36px;
  text-align: center; color: var(--muted); font-size: 14.5px; cursor: pointer;
  background: linear-gradient(180deg, #fcfeff, #f2f8fd);
  transition: border-color .15s, background .15s, color .15s;
}
.dropzone:hover { border-color: var(--blue); background: #eef5fe; color: var(--ink); }
.dropzone.drag { border-color: var(--blue); background: #e2edfc; color: var(--ink); }
.dropzone .dz-icon { display: block; margin: 0 auto 12px; color: #7d93ab; transition: color .15s; }
.dropzone:hover .dz-icon, .dropzone.drag .dz-icon { color: var(--blue); }
.dropzone .dz-title { font-weight: 700; color: var(--ink); font-size: 16.5px; }
.dropzone .dz-sub { margin-top: 5px; font-size: 13.5px; }
.dropzone .dz-file { display: none; align-items: center; gap: 14px; text-align: left; }
.dropzone .dz-file img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; }
.dropzone .dz-file .nm { font-weight: 600; color: var(--ink); font-size: 14px; word-break: break-all; }
.dropzone .dz-file .rm { color: #dc2626; font-size: 13px; font-weight: 600; background: none; border: none; padding: 2px 0; }
.form-err { display: none; margin-top: calc(var(--u, 1px) * 14); background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 11) calc(var(--u, 1px) * 14); font-size: calc(var(--u, 1px) * 14); }
button.makemap {
  width: 100%; margin-top: 20px; background: var(--blue); color: #fff; border: none;
  font-size: 17px; font-weight: 700; padding: 15px; border-radius: 12px;
}
button.makemap:hover { background: var(--blue-dark); }
button.makemap:disabled { opacity: .6; cursor: wait; }
.fineprint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; }

.companies { margin: 64px auto 0; text-align: center; }
.companies .cap { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #94a3b8; }
.companies .logo-banner {
  margin-top: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 4px 14px rgba(28,39,51,.05);
  overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.companies .logo-track { display: flex; width: max-content; animation: ag-logo-scroll 72s linear infinite; }
.companies .logo-banner:hover .logo-track { animation-play-state: paused; }
.companies .logo-set { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.companies .logo-set img { height: 48px; width: auto; flex: none; }
@keyframes ag-logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .companies .logo-banner { -webkit-mask-image: none; mask-image: none; }
  .companies .logo-track { animation: none; width: auto; }
  .companies .logo-set { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 20px; }
  .companies .logo-set.dup { display: none; }
}

.section { margin-top: 74px; }
.section h2 { font-size: 27px; letter-spacing: -.02em; font-weight: 800; text-align: center; }
.section .lede { color: var(--muted); text-align: center; margin-top: 8px; font-size: 15.5px; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.examples figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(28,39,51,.05); }
.examples img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.examples figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: #eff6ff; color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.step h3 { font-size: 16.5px; margin-top: 13px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 6px; }
.faq { max-width: 720px; margin: 28px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 9px; }
.benefits { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px; box-shadow: 0 4px 14px rgba(28,39,51,.05); }
.benefits h2 { text-align: left; }
.benefits-intro { color: var(--muted); font-size: 16.5px; line-height: 1.55; margin-top: 14px; max-width: 780px; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 44px; margin-top: 28px; }
.benefits-grid p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.benefits-grid strong { color: var(--ink); font-weight: 700; }
footer.bot { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; color: #94a3b8; font-size: 13px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .hero h1 { font-size: 34px; }
  .examples, .examples.two, .steps, .benefits-grid { grid-template-columns: 1fr; }
  .benefits { padding: 26px 22px; }
}

/* ---------------- landing 2.0 ----------------
   The homepage in the map's own visual language (2026-10-24): deeper blacks, gentle contrast, richer but
   not oversaturated color, the photographic sky over the
   page and a warm cast of light behind the builder, the
   deep navy the map page's primary button wears. The
   brand orange stays where it already lives: the pin and
   the wordmark. Scoped to the landing body so the auth,
   account and owner pages keep their skin, and nothing on
   the map page moves. */
body.landing { background: linear-gradient(180deg, #d7e8f5 0, #e9f2f9 320px, var(--bg) 720px); }
/* The homepage lockup runs a step larger than the inner
   pages' brand: the refined mark at 36px (in the markup)
   with the wordmark up from the shared 21px. */
body.landing header.top .brand { font-size: 23px; }
body.landing .hero { position: relative; isolation: isolate; }
body.landing .hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 150px; transform: translateX(-50%);
  width: min(760px, 96%); height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 240, 196, .55), rgba(255, 240, 196, 0) 70%);
}
body.landing .hero h1 { color: #141e28; }
body.landing .pill { border-color: #cfdce9; color: #3c4c5e; box-shadow: 0 1px 3px rgba(28, 39, 51, .07); }
body.landing .builder-card {
  border-color: #d3dfec; border-radius: 20px;
  box-shadow: 0 26px 55px rgba(2, 12, 27, .17), 0 4px 14px rgba(2, 12, 27, .06);
}
body.landing .builder-card .seg button.active { background: #22314a; }
body.landing .builder-card button.makemap { background: #22314a; }
body.landing .builder-card button.makemap:hover { background: #2d405f; }
body.landing .companies .cap { color: #7e93a9; }
body.landing .companies .logo-banner { border-color: #d3dfec; box-shadow: 0 10px 26px rgba(2, 12, 27, .07); }
body.landing .section .lede { color: #5b6b7b; }
/* Landing polish pass (2026-11-28):
   one motion language for every control, a sheen across
   the header logo on load, and finished example maps
   flanking the builder card so the proof is on screen
   without scrolling. The card itself stays narrow. */
body.landing header.top .brand { position: relative; overflow: hidden; }
body.landing header.top .brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.38) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: ag-sheen 1.5s ease .35s 1 forwards;
}
@keyframes ag-sheen { to { transform: translateX(130%); } }
body.landing .demo-cta, body.landing .authbox .cta-mini, body.landing .builder-card .seg button,
body.landing input.addr, body.landing .dropzone, body.landing .pill {
  transition: background-color .16s ease, border-color .16s ease, box-shadow .2s ease, transform .16s ease, color .16s ease;
}
body.landing .builder-card button.makemap { transition: background-color .16s ease, box-shadow .2s ease, transform .16s ease; }
body.landing .builder-card button.makemap:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(2,12,27,.22); }
body.landing .builder-card button.makemap:active { transform: translateY(0); box-shadow: none; }
body.landing .demo-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(240,100,35,.35); }
body.landing .dropzone:hover { border-color: var(--blue); background: #f2f7fd; }
.builder-wrap { position: relative; }
.builder-wrap .builder-card { position: relative; z-index: 1; }
.flank { position: absolute; top: 48px; width: 198px; aspect-ratio: 3 / 2; margin: 0; z-index: 0; }
.flank img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid #d3dfec; box-shadow: 0 18px 34px rgba(2,12,27,.18); opacity: 0; animation-fill-mode: backwards; }
/* each main card runs its own cycle sized to its frame
   count, so the two sides may hold different numbers of
   graphics (five left, four right as of 2026-11-29) */
.flank-left img { animation: flank-cycle-5 25s linear infinite; }
.flank-right img { animation: flank-cycle-4 20s linear infinite; }
.flank-left img:nth-child(1) { animation-delay: 0s; }
.flank-left img:nth-child(2) { animation-delay: -20s; }
.flank-left img:nth-child(3) { animation-delay: -15s; }
.flank-left img:nth-child(4) { animation-delay: -10s; }
.flank-left img:nth-child(5) { animation-delay: -5s; }
.flank-right img:nth-child(1) { animation-delay: 2.5s; }
.flank-right img:nth-child(2) { animation-delay: -12.5s; }
.flank-right img:nth-child(3) { animation-delay: -7.5s; }
.flank-right img:nth-child(4) { animation-delay: -2.5s; }
@keyframes flank-cycle-4 { 0% { opacity: 1; } 20% { opacity: 1; } 25% { opacity: 0; } 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes flank-cycle-5 { 0% { opacity: 1; } 16% { opacity: 1; } 20% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; } }
.flank::before { content: ""; position: absolute; inset: 0; background: #fff; border: 1px solid #d3dfec; border-radius: 12px; }
.flank-left { left: 2px; transform: rotate(-4deg); }
.flank-left::before { transform: rotate(3deg) translate(7px, 5px); }
.flank-right { right: 2px; transform: rotate(4deg); }
.flank-right::before { transform: rotate(-3deg) translate(-7px, 5px); }
@media (max-width: 1150px) { .flank { display: none; } }
@media (prefers-reduced-motion: reduce) {
  body.landing header.top .brand::after { animation: none; }
  body.landing .builder-card button.makemap:hover, body.landing .demo-cta:hover { transform: none; }
  .flank img { animation: none; opacity: 0; }
  .flank img:first-child { opacity: 1; }
}
.examples.two { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin-left: auto; margin-right: auto; }
/* Homepage showcase (2026-10-26): the examples
   section under the brokerage banner. A banner crop of
   the in-town example leads, chosen on its marker field
   (the markers are what resonates); under it one large
   static example anchors comprehension, a row of boxes
   rotates through the newer examples and the
   in-a-real-listing proof shots, and a row of video
   boxes plays short snippets of the video version.
   Slots whose files have not been produced yet render
   nothing (the showcase script at the foot of
   index.html holds the convention). */
.examples.showcase { display: block; margin-top: 22px; }
.examples .ex-shot { position: relative; }
.examples video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #101c2a; }
/* The banner: a wide crop of the Glenwood graphic. The
   image is set by the showcase script only when the
   section nears the viewport, and the crop position is
   picked on the marker band (the emblems run through
   the map's middle), so the markers read at full size
   while the photo card and the sky stay out of frame. */
.ex-banner { position: relative; overflow: hidden; border-radius: 16px; height: clamp(170px, 24vw, 280px); margin-top: 28px; background: #dfe9f2; box-shadow: 0 10px 26px rgba(2, 12, 27, .07); }
.ex-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.ex-banner-text { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 34px; background: linear-gradient(90deg, rgba(247, 250, 252, .93) 0, rgba(247, 250, 252, .78) 34%, rgba(247, 250, 252, 0) 62%); }
.ex-banner-text h2 { text-align: left; }
.ex-banner-text .lede { text-align: left; max-width: 430px; }
.ex-statics { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.ex-clips { display: none; }
.ex-clips.on { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-top: 18px; }
.ex-clips video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid #d3dfec; box-shadow: 0 10px 26px rgba(2, 12, 27, .07); background: #0b1526; }
.ex-rotators, .ex-videos { display: none; }
.ex-rotators.on, .ex-videos.on { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 18px; }
.ex-rotator .ex-shot { aspect-ratio: 3 / 2; overflow: hidden; }
.ex-rotator img.rot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.ex-rotator img.rot.on { opacity: 1; }
.ex-rotator figcaption { transition: opacity .24s ease; }
.ex-rotator figcaption.swap { opacity: 0; }
@media (max-width: 760px) {
  .ex-statics { grid-template-columns: 1fr; }
  .ex-banner-text { padding: 0 20px; background: linear-gradient(90deg, rgba(247, 250, 252, .94) 0, rgba(247, 250, 252, .82) 55%, rgba(247, 250, 252, .25) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ex-rotator img.rot, .ex-rotator figcaption { transition: none; }
}
/* The line draw: an outline over the parcel in each
   graded example's satellite card that draws itself each
   time the card scrolls into view, the product's
   signature motion in miniature. It starts undrawn, runs
   once per entry (about 1.5s) when the showcase script
   adds .in-view, and resets when the card leaves, so the
   next entry draws it again. Reduced motion gets the
   finished outline, statically. */
.ex-draw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ex-draw-line {
  fill: rgba(0, 128, 255, .10); fill-opacity: 0;
  stroke: #3391ff; stroke-width: 8; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 2px 5px rgba(2, 12, 27, .35));
}
.ex-anim.in-view .ex-draw-line { animation: exDraw 1.5s ease-in-out forwards; }
@keyframes exDraw {
  0% { stroke-dashoffset: 100; fill-opacity: 0; }
  70% { fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-anim .ex-draw-line, .ex-anim.in-view .ex-draw-line {
    stroke-dashoffset: 0; fill-opacity: 1; animation: none;
  }
}
body.landing .examples figure {
  border-color: #d3dfec; border-radius: 16px;
  box-shadow: 0 16px 34px rgba(2, 12, 27, .13);
}
body.landing .examples figcaption { color: #3c4c5e; }
body.landing .step { border-color: #d3dfec; box-shadow: 0 6px 18px rgba(2, 12, 27, .06); }
body.landing .benefits { border-color: #d3dfec; box-shadow: 0 6px 18px rgba(2, 12, 27, .06); }
body.landing .step .n { background: #22314a; color: #fff; }
body.landing .faq details { border-color: #d3dfec; }
body.landing footer.bot { border-top-color: #d3dfec; display: block; }
body.landing .foot-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, 220px)); gap: 24px; margin-bottom: 26px; }
body.landing .foot-col h4 { color: var(--blue); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
body.landing .foot-col a { display: block; padding: 4px 0; font-size: 14.5px; }
body.landing .foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 640px) { body.landing .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------------- map page ----------------
   Layout per the original product's Canvas component (see
   original-code REVIEW.md Section 2): a fixed full-viewport stage
   centers one 3:2 frame sized by viewport math; inside the frame's
   wrapper, a photographic sky band (44%) fades over a map band
   (80% of height, 100% in top view), popup cards at 40% of frame
   height with 4/3 aspect, and the radius pill on the bottom edge.

   The fixed stage (2026-10-25): the composition is
   designed once at 1500x1000 and scaled uniformly to the frame.
   #frame is a size container; #wrapper defines --u, one stage
   px = frame width / 1500 (1cqw is 1% of the frame, so
   --u = 1cqw / 15), and every length inside the frame is
   written calc(var(--u, 1px) * N) in stage px. Mapbox itself
   is untouched: its canvas stays native resolution in a
   container sized exactly as before, only the DOM furniture
   and the JS geometry (map.js runs the declutter in stage
   coordinates) follow the scale. The 1px fallback keeps any
   page where --u is never defined (every non-map page that
   shares a rule below) pixel-identical to before. */
html.mapdoc, body.mapdoc { height: 100%; overflow: hidden; background: #fff; }
#mappage {
  position: fixed; inset: 0; height: 100dvh;
  display: flex; justify-content: center; align-items: center; background: #fff;
}
#frame {
  width: min(calc(100vw - 32px), calc(3 * (100vh - 56px) / 2 + 24px));
  height: min(calc(100vh - 32px), calc(2 * (100vw - 56px) / 3 + 24px));
  margin: 1rem; position: relative; overflow: hidden; background: #fff;
  container-type: size;
  border-radius: 1rem; border: 4px double rgba(183, 183, 183, 0.45);
  box-shadow: rgba(0, 0, 0, 0.12) 0 1px 1px 0px,
              rgba(64, 68, 82, 0.16) 0 0 0 1px,
              rgba(64, 68, 82, 0.08) 0 2px 5px 0px;
}
#wrapper {
  --u: calc(1cqw / 15);
  position: absolute; inset: calc(var(--u, 1px) * 8);
  border-radius: calc(var(--u, 1px) * 8); overflow: hidden;
}
#map-band { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; }
body.topview #map-band { height: 100%; }
#map { position: absolute; inset: 0; }
#sky-band { position: absolute; left: 0; right: 0; top: 0; height: 44%; z-index: 100; pointer-events: none; }
body.topview #sky-band { display: none; }
/* Stage C top-down mode: both popup cards tucked away; the map
   itself, the radius pill and the controls stay. */
body.topdown .popup-card { display: none; }
/* The lines box option (a per project choice in Settings):
   the parcel card alone comes back in the top-down mode.
   The photo card stays tucked away either way. */
body.topdown.topdown-sat #popup-sat { display: flex; }
#sky-band img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(to bottom, white 0%, white calc(100% - calc(var(--u, 1px) * 100)), transparent 100%);
  mask-image: linear-gradient(to bottom, white 0%, white 85%, transparent 100%);
}
#watermark { position: absolute; inset: calc(var(--u, 1px) * -40); z-index: 140; pointer-events: none; background-repeat: repeat; }
.map-ui { position: absolute; z-index: 150; }

/* popup cards: 4/3 aspect, 40% of frame height, caption row 56 stage px */
.popup-card {
  background: #fff; border-radius: calc(var(--u, 1px) * 16);
  box-shadow: 0 calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 15) calc(var(--u, 1px) * -3) rgba(0,0,0,.12),
              0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 6) calc(var(--u, 1px) * -4) rgba(0,0,0,.1);
  padding: calc(var(--u, 1px) * 8); height: 40%; aspect-ratio: 4 / 3; display: flex; flex-direction: column;
}
#popup-photo { top: calc(var(--u, 1px) * 16); left: calc(var(--u, 1px) * 16); }
#popup-sat { top: calc(var(--u, 1px) * 16); right: calc(var(--u, 1px) * 16); }
.popup-card .imgwrap {
  height: calc(100% - calc(var(--u, 1px) * 48)); flex: none; border-radius: calc(var(--u, 1px) * 12); overflow: hidden;
  position: relative; background: #e2e8f0;
}
.popup-card .imgwrap img.ph { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#sat-map { position: absolute; inset: 0; }
#lines-toggle {
  position: absolute; left: calc(var(--u, 1px) * 8); top: calc(var(--u, 1px) * 8); z-index: 5; display: flex; align-items: center; gap: calc(var(--u, 1px) * 8);
  background: #fff; border-radius: calc(var(--u, 1px) * 8); padding: calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 10); font-size: calc(var(--u, 1px) * 12); font-weight: 500;
  box-shadow: 0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 12) rgba(2,12,27,.18); cursor: pointer;
}
/* The honest no-parcel note: shown under the lines toggle on
   the parcel card when resolution settled with no parcel for
   this county. Page UI only, like the toggle itself: it is
   hidden while a video play owns the frame and never enters
   an export, which are composed from the maps, not the DOM. */
#parcel-note {
  position: absolute; left: calc(var(--u, 1px) * 8); top: calc(var(--u, 1px) * 48); z-index: 5; max-width: calc(100% - calc(var(--u, 1px) * 16));
  background: rgba(28, 39, 51, .88); color: #fff; border-radius: calc(var(--u, 1px) * 8); padding: calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 10);
  font-size: calc(var(--u, 1px) * 12); font-weight: 500; line-height: 1.35;
  box-shadow: 0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 12) rgba(2,12,27,.18);
}
/* Adjacent lots (2026-11-09): the add control sits on the
   parcel card beside the lines toggle's row, and the panel
   under the card holds the added lots' rows, the address
   fallback, and the lookup's plain answers. Page UI only,
   like the toggle: hidden while a video play owns the frame,
   and never part of an export, which composes the parcel
   from the same geometry data, not from this DOM. */
#lot-add-btn {
  position: absolute; left: calc(var(--u, 1px) * 8); bottom: calc(var(--u, 1px) * 8); z-index: 5;
  background: #fff; border: none; border-radius: calc(var(--u, 1px) * 8); padding: calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 10);
  font-size: calc(var(--u, 1px) * 12); font-weight: 600; color: var(--ink); font-family: inherit;
  box-shadow: 0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 12) rgba(2,12,27,.18); cursor: pointer;
}
#lot-panel {
  position: absolute; right: calc(var(--u, 1px) * 16); top: calc(40% + calc(var(--u, 1px) * 28)); z-index: 150;
  width: calc(var(--u, 1px) * 525); background: #fff; border-radius: calc(var(--u, 1px) * 12);
  /* the right padding keeps every control clear of the
     rotate stack riding the same right edge (z 160) */
  padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 60) calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 12);
  box-shadow: 0 calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 24) rgba(2,12,27,.22);
  font-size: calc(var(--u, 1px) * 13); color: var(--ink);
}
body.topdown #lot-panel { display: none; }
body.topdown.topdown-sat #lot-panel { display: block; }
#lot-panel[hidden] { display: none; }
.lot-row {
  display: flex; align-items: center; gap: calc(var(--u, 1px) * 8);
  padding: calc(var(--u, 1px) * 4) 0;
}
.lot-row .lot-label { flex: 1 1 auto; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-row .lot-ac { flex: none; color: #5b6b7b; font-weight: 500; }
.lot-row .lot-remove {
  flex: none; background: none; border: none; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0;
}
#lot-addr-row { position: relative; margin-top: calc(var(--u, 1px) * 6); }
#lot-addr {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink);
  border: 1px solid #cbd5e1; border-radius: calc(var(--u, 1px) * 8);
  padding: calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 10);
}
#lot-addr-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 160; background: #fff; }
#lot-note { margin: calc(var(--u, 1px) * 8) 0 0; color: #5b6b7b; font-weight: 500; line-height: 1.35; }
#lot-banner {
  position: absolute; top: calc(var(--u, 1px) * 16); left: 50%; transform: translateX(-50%); z-index: 170;
  display: flex; align-items: center; gap: calc(var(--u, 1px) * 12);
  background: rgba(28, 39, 51, .92); color: #fff; border-radius: 999px;
  padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 18);
  font-size: calc(var(--u, 1px) * 14); font-weight: 600;
  box-shadow: 0 calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 24) rgba(2,12,27,.3);
}
#lot-banner button {
  background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; font: inherit; font-weight: 600;
  border-radius: 999px; padding: calc(var(--u, 1px) * 2) calc(var(--u, 1px) * 10); cursor: pointer;
}
#lot-banner[hidden] { display: none; }
.popup-card .cap {
  height: calc(var(--u, 1px) * 56); flex: none; display: flex; align-items: center; justify-content: center;
  gap: calc(var(--u, 1px) * 8); text-align: center; font-weight: 700; color: var(--ink);
  font-size: calc(var(--u, 1px) * 21); overflow: hidden; padding: 0 calc(var(--u, 1px) * 4);
}
/* photo caption: two glance lines, the street big and bold,
   city and state smaller, lighter, muted, and no ZIP */
#popup-photo .imgwrap { height: calc(100% - calc(var(--u, 1px) * 64)); }
#photo-cap { flex-direction: column; gap: calc(var(--u, 1px) * 2); height: calc(var(--u, 1px) * 72); }
#photo-cap-street, #photo-cap-city {
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#photo-cap-street { font-size: calc(var(--u, 1px) * 28); font-weight: 800; }
#photo-cap-city { font-size: calc(var(--u, 1px) * 16); font-weight: 500; color: #5b6b7b; }
/* the acreage is the parcel caption's prominent element;
   "approx." is a quiet qualifier, smaller and muted */
#sat-cap .approx { font-weight: 500; font-size: 0.74em; color: #5b6b7b; }
#acreage-val { cursor: text; text-decoration: underline dotted; text-underline-offset: calc(var(--u, 1px) * 4); outline: none; white-space: nowrap; }
#acreage-val:focus { text-decoration-color: var(--blue); }
/* the edit badge beside the acreage figure: a small soft
   blue pill that reads as part of the caption row and says
   the number can be changed. Live card only; the export
   composes its caption from data and never sees it. */
.acreage-badge {
  font: inherit; font-size: 0.58em; font-weight: 600; line-height: 1;
  color: var(--blue); background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 999px; padding: 0.45em 0.8em; white-space: nowrap;
  cursor: pointer; flex: none;
}
.acreage-badge:hover { background: #dbeafe; }
#county-chip {
  border: 1px solid #d1d5db; border-radius: calc(var(--u, 1px) * 12); padding: calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 8);
  box-shadow: 0 calc(var(--u, 1px) * 1) calc(var(--u, 1px) * 2) rgba(0,0,0,.08); white-space: nowrap; font-weight: 700;
}

/* bottom pill: rounded top corners only, per the original;
   its padding is the old vw padding struck at the canonical
   desktop width, now a stage size like everything else */
#radius-pill {
  left: 50%; bottom: 0; transform: translateX(-50%); width: fit-content;
  background: #fff; border-radius: calc(var(--u, 1px) * 12) calc(var(--u, 1px) * 12) 0 0;
  box-shadow: 0 calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 15) calc(var(--u, 1px) * -3) rgba(0,0,0,.12);
  padding: calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 19); font-size: calc(var(--u, 1px) * 18); white-space: nowrap; color: var(--ink);
}
#radius-pill .r { font-weight: 600; font-style: italic; }

/* account access on the map page: the shared header widget
   (#authbox, static/auth-widget.js) as a white pill top center
   of the stage, in the gap between the two popup cards. It is
   live page chrome only: the export composes its canvas from
   project data and never sees it, and the video play mode hides
   it with the rest of the furniture. The email truncates so a
   long address can never push the pill into either card. */
#wrapper .map-authbox {
  position: absolute; z-index: 165;
  top: calc(var(--u, 1px) * 16); left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, .96); border-radius: 999px;
  padding: calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 16);
  box-shadow: 0 calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 24) rgba(2,12,27,.3);
  font-size: calc(var(--u, 1px) * 14); gap: calc(var(--u, 1px) * 12);
  white-space: nowrap;
}
#wrapper .map-authbox .who {
  max-width: calc(var(--u, 1px) * 180); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(var(--u, 1px) * 13.5);
}
#wrapper .map-authbox .linklike { font-size: calc(var(--u, 1px) * 14); }
#wrapper .map-authbox .cta-mini {
  padding: calc(var(--u, 1px) * 7) calc(var(--u, 1px) * 13);
  border-radius: calc(var(--u, 1px) * 9);
}
#frame.vp-playing #authbox { visibility: hidden; }

.map-btn {
  background: #fff; border: none; border-radius: calc(var(--u, 1px) * 12); box-shadow: 0 calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 24) rgba(2,12,27,.3);
  font-size: calc(var(--u, 1px) * 15); font-weight: 700; padding: calc(var(--u, 1px) * 12) calc(var(--u, 1px) * 18); color: var(--ink);
  display: inline-flex; align-items: center; gap: calc(var(--u, 1px) * 8); z-index: 160;
}
.map-btn.primary { background: #22314a; color: #fff; }
.map-btn.primary:hover { background: #2d405f; }
#btn-settings svg { width: calc(var(--u, 1px) * 18); height: calc(var(--u, 1px) * 18); }
#btn-download svg, #btn-video svg, #btn-startover svg { width: calc(var(--u, 1px) * 18); height: calc(var(--u, 1px) * 18); }

/* the bottom right action stack (2026-10-31): Download
   graphic over Generate video, one column at the anchor the
   lone Download button used to hold. Download was too easy
   to miss as a plain navy pill, so it is now the loudest
   control on the page: a full pill in the brand orange,
   slightly larger than the other map buttons, and it lands
   with a choreographed entrance as the intro settles (the
   stack-wait / stack-enter / stack-fade states are driven
   from the intro section of map.js) so the user's eye files
   it away the first time they look at the map. Generate
   video rides directly below it at the same width in a
   quieter ghost treatment and enters a beat later. */
#action-stack {
  right: calc(var(--u, 1px) * 16); bottom: calc(var(--u, 1px) * 16);
  display: flex; flex-direction: column; gap: calc(var(--u, 1px) * 10);
}
.action-btn {
  border-radius: 999px; justify-content: center; white-space: nowrap;
}
#btn-download {
  background: var(--orange); color: #fff; border: none;
  font-size: calc(var(--u, 1px) * 16.5);
  padding: calc(var(--u, 1px) * 15) calc(var(--u, 1px) * 26);
  box-shadow: 0 calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 26) rgba(240, 100, 35, .42);
}
#btn-download:hover { background: #d9551c; }
#btn-video {
  background: rgba(255, 255, 255, .94); color: var(--ink);
  border: calc(var(--u, 1px) * 1.5) solid rgba(28, 39, 51, .28);
  font-size: calc(var(--u, 1px) * 15.5);
  padding: calc(var(--u, 1px) * 13) calc(var(--u, 1px) * 26);
}
#btn-video:hover { background: #fff; border-color: rgba(28, 39, 51, .5); }
#action-stack.stack-wait .action-btn { opacity: 0; pointer-events: none; }
#action-stack.stack-enter .action-btn {
  animation: actionIn .55s cubic-bezier(.22, .8, .3, 1) backwards;
}
#action-stack.stack-enter #btn-video { animation-delay: .16s; }
#action-stack.stack-fade .action-btn {
  animation: actionFade .3s ease-out backwards;
}
#action-stack.stack-fade #btn-video { animation-delay: .06s; }
@keyframes actionIn {
  0% { opacity: 0; transform: translateY(calc(var(--u, 1px) * 14)) scale(.94); }
  70% { opacity: 1; transform: translateY(calc(var(--u, 1px) * -2)) scale(1.012); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes actionFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #action-stack .action-btn { animation: none !important; }
}

/* the bottom left button column (2026-10-25): All
   Settings and Start over at the bottom, then the Radius
   card directly above Start over, then Top down and the Non
   branded toggle (the quick controls he called critical,
   each a second view of the same state All Settings holds),
   all stacked in the one button language instead of a bar
   across the map. column-reverse puts the first child at
   the bottom, so the markup lists the column from the
   bottom up; the Play video button (play mode only) is
   appended by the play section of map.js, which lands it
   at the visually topmost spot. The stack's footprint is a
   declutter keep-out (STACK_KEEPOUT in map.js). */
#quick-stack {
  left: calc(var(--u, 1px) * 16); bottom: calc(var(--u, 1px) * 16); z-index: 160;
  display: flex; flex-direction: column-reverse; align-items: flex-start;
  gap: calc(var(--u, 1px) * 16);
}
#quick-topdown.active, #quick-brand.active { background: var(--blue); color: #fff; }
#quick-stack .qcard {
  background: #fff; border-radius: calc(var(--u, 1px) * 12);
  box-shadow: 0 calc(var(--u, 1px) * 8) calc(var(--u, 1px) * 24) rgba(2,12,27,.3);
  padding: calc(var(--u, 1px) * 6);
}
#quick-stack #quick-radius-card { padding: calc(var(--u, 1px) * 6) calc(var(--u, 1px) * 10); }
#quick-stack .q-radius {
  display: inline-flex; align-items: center; gap: calc(var(--u, 1px) * 6);
  font-size: calc(var(--u, 1px) * 14); font-weight: 600; color: var(--ink);
}
#quick-stack select {
  font: inherit; font-size: calc(var(--u, 1px) * 14); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: calc(var(--u, 1px) * 8);
  padding: calc(var(--u, 1px) * 6) calc(var(--u, 1px) * 8);
}
.mapboxgl-ctrl-bottom-right { bottom: calc(var(--u, 1px) * 136); right: calc(var(--u, 1px) * 10); }

/* the on-map rotate cluster (2026-11-01): rotate left,
   north reset, rotate right, in the map button language at
   ctl size, stacked on the right edge at the stage's middle,
   clear of the parcel card above and the action stack
   below. It drives the same bearing the drawer's Camera
   row drives (one state, two doors, wired in map.js). */
#rotate-stack {
  right: calc(var(--u, 1px) * 16); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: calc(var(--u, 1px) * 8);
  z-index: 160;
}
#rotate-stack .rot-btn {
  width: calc(var(--u, 1px) * 44); height: calc(var(--u, 1px) * 44);
  padding: 0; justify-content: center; border-radius: 50%;
  font-size: calc(var(--u, 1px) * 17); font-weight: 700;
}

/* home marker: the bullseye from the shared spec in map.js
   (HOME_MARKER_RINGS): white, survey navy, white, brand gold
   over a soft shadow. The resting composition is the only
   composition: nothing here animates on a loop, and the
   export draws these same rings, so what the customer sees
   resting is what the graphic carries. The one motion is
   the intro ring, a single gentle ripple fired by the load
   intro and the video play's pulse beat (.intro-ring). */
/* The pointer-events: none here states the design (the
   bullseye is click-through), but on its own it never
   took effect in the browser: the marker library writes
   pointer-events: auto inline onto every marker element
   and re-applies it on camera updates, which beats any
   stylesheet rule and any one-time inline fix. The
   click-through is therefore completed where the clicks
   are read: the adjacent-lot pick's ground test in map.js
   treats a hit on the bullseye as a hit on the ground it
   marks. The rule stays as the statement of intent. */
.home-marker { width: calc(var(--u, 1px) * 32); height: calc(var(--u, 1px) * 32); position: relative; pointer-events: none;
  filter: drop-shadow(0 calc(var(--u, 1px) * 2) calc(var(--u, 1px) * 3) rgba(10, 22, 38, 0.35)); }
/* The rings and the glyph carry pointer-events: none in
   their own right, not just by inheritance from the parent:
   a hit test in the browser reached the outer ring span
   itself. With the children click-through, a hit anywhere
   on the bullseye resolves to the marker element itself,
   one deterministic target for the ground test in map.js
   to recognize. */
.home-marker .hm-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.home-marker .hm-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* POI markers: the Emblem anatomy from the original code, in
   stage px since the fixed stage build.
   Rectangle family (place photo, or School / Park / Hospital):
   a 96 wide box at 5/3 aspect, the image filling it under a 4
   category border, a 24 category tab straddling the bottom edge
   (16 glyph), and the name pill 64 below the marker top,
   max-width 120, truncated until hover.
   Circle family (other categories with a logo): a 44 circle with
   the same border and tab; its pill stays hidden until hover.
   Non branded mode, and the branded fallback for a place with
   neither a logo nor a photo: the badge unit from badges_gen. */
.poi-marker { position: absolute; display: flex; flex-direction: column; align-items: center; width: max-content; cursor: pointer; }
.poi-box { position: relative; width: calc(var(--u, 1px) * 96); height: calc(var(--u, 1px) * 58); flex: none; }
.poi-box.circle { width: calc(var(--u, 1px) * 44); height: calc(var(--u, 1px) * 44); }
.poi-box img.main {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #fff;
  border: calc(var(--u, 1px) * 4) solid #94a3b8; border-radius: calc(var(--u, 1px) * 6); box-sizing: border-box;
  box-shadow: 0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 10) rgba(2,12,27,.25); transition: opacity .15s, border-color .15s;
}
.poi-box.circle img.main { border-radius: 50%; }
.poi-marker:hover .poi-box img.main { border-color: #b91c1c; opacity: .75; }
.poi-tab {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  width: calc(var(--u, 1px) * 24); height: calc(var(--u, 1px) * 24); border-radius: calc(var(--u, 1px) * 6); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 10) rgba(2,12,27,.3); transition: opacity .15s;
}
.poi-tab img { width: calc(var(--u, 1px) * 16); height: calc(var(--u, 1px) * 16); display: block; }
.poi-marker:hover .poi-tab { opacity: 0; }
.poi-name {
  margin-top: calc(var(--u, 1px) * 7); max-width: calc(var(--u, 1px) * 120); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #fff; border-radius: 999px; padding: calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 12); text-align: center;
  font-size: calc(var(--u, 1px) * 12); font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  box-shadow: 0 calc(var(--u, 1px) * 2) calc(var(--u, 1px) * 6) rgba(2,12,27,.25);
}
.poi-marker:hover .poi-name { max-width: none; overflow: visible; background: #ef4444; position: relative; z-index: 50; }
.poi-name.circle-label { display: none; margin-top: calc(var(--u, 1px) * 16); }
.poi-marker:hover .poi-name.circle-label { display: block; }
.poi-marker img.badge-img { width: calc(var(--u, 1px) * 96); display: block; filter: drop-shadow(0 calc(var(--u, 1px) * 5) calc(var(--u, 1px) * 12) rgba(2,12,27,.3)); }
.poi-x-wrap {
  position: absolute; left: 0; right: 0; top: calc(var(--u, 1px) * 14); z-index: 5;
  display: flex; justify-content: center; opacity: 0; transition: opacity .15s; pointer-events: none;
}
.poi-marker:hover .poi-x-wrap { opacity: 1; }
.poi-x {
  pointer-events: auto; width: calc(var(--u, 1px) * 32); height: calc(var(--u, 1px) * 32); border-radius: calc(var(--u, 1px) * 4); border: none; padding: 0;
  background: #dc2626; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 10) rgba(2,12,27,.35);
}
.poi-x:hover { background: #b91c1c; }
.poi-x svg { width: calc(var(--u, 1px) * 24); height: calc(var(--u, 1px) * 24); display: block; }

/* the look: the grade (2026-10-24). The live map
   canvas and the sky image run through the SVG filters
   map.js builds from the same LUTs the export pixel pass
   uses. Nothing else is filtered: not the popup cards (the
   satellite mini map inside the right card is a different
   canvas and stays clean), not the markers, which are DOM
   above the canvas. The satellite and top-down styles take
   the same grade by decision, flagged for a possible
   later split. */
#map .mapboxgl-canvas { filter: url("#ag-grade-map"); }
#sky-band img { filter: url("#ag-grade-sky"); }

/* the light cast: two backdrop overlays in the map band,
   driven by the disc's projected geometry (map.js sets the
   custom properties and the ellipse box). cast-out dims
   beyond the disc, its mask opening across the soft edge;
   cast-in lifts the disc's interior. Both rest at opacity
   1; when the intro will play they start clear and the
   light beat fades them in as the bloom settles. */
#cast-out {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  backdrop-filter: brightness(0.93) saturate(0.92);
  -webkit-backdrop-filter: brightness(0.93) saturate(0.92);
  -webkit-mask-image: radial-gradient(ellipse var(--crx, calc(var(--u, 1px) * 600)) var(--cry, calc(var(--u, 1px) * 300)) at var(--ccx, 50%) var(--ccy, 50%), transparent 70%, black 102%);
  mask-image: radial-gradient(ellipse var(--crx, calc(var(--u, 1px) * 600)) var(--cry, calc(var(--u, 1px) * 300)) at var(--ccx, 50%) var(--ccy, 50%), transparent 70%, black 102%);
  opacity: 0; transition: opacity 0.8s ease;
}
#cast-in {
  position: absolute; z-index: 2; pointer-events: none; border-radius: 50%;
  backdrop-filter: brightness(1.045);
  -webkit-backdrop-filter: brightness(1.045);
  -webkit-mask-image: radial-gradient(ellipse at center, black 62%, transparent 98%);
  mask-image: radial-gradient(ellipse at center, black 62%, transparent 98%);
  opacity: 0; transition: opacity 0.8s ease;
}
#cast-out.cast-on, #cast-in.cast-on { opacity: 1; }

/* intro animation: "bloom and settle" (2026-10-24).
   Live page only; the export never sees these classes. The
   marker cascade animates the inner wrapper because Mapbox
   owns the root element's transform. The intro-wait states
   are the resting pre-states, applied only when the
   sequence will play, and cleanup strips every class and
   delay so the page afterwards is exactly the page. */
.poi-inner {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.poi-inner.intro-wait { opacity: 0; }
.poi-inner.intro-drop { animation: poiDrop 0.38s ease-out backwards; }
@keyframes poiDrop {
  0% { opacity: 0; transform: translateY(calc(var(--u, 1px) * -14)); }
  55% { opacity: 1; transform: translateY(calc(var(--u, 1px) * 2)); }
  78% { transform: translateY(calc(var(--u, 1px) * -1)); }
  100% { opacity: 1; transform: translateY(0); }
}
#intro-light {
  position: absolute; z-index: 3; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,214,0.55) 0%, rgba(255,246,214,0.22) 38%, rgba(255,246,214,0) 68%);
  opacity: 0; animation: introBloom 1.5s ease-out both;
}
@keyframes introBloom {
  0% { opacity: 0; transform: scale(0.55); }
  33% { opacity: 1; transform: scale(1.03); }
  70% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}
.home-marker .intro-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: calc(var(--u, 1px) * 2) solid rgba(23, 69, 107, 0.75); pointer-events: none;
  animation: introRing 2.2s cubic-bezier(.2, .6, .3, 1) both;
}
@keyframes introRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.3); opacity: 0; }
}
.popup-card.intro-wait { opacity: 0; }
.popup-card.intro-card { animation: cardIn 0.25s ease-out backwards; }
@keyframes cardIn {
  0% { opacity: 0; transform: translateY(calc(var(--u, 1px) * 10)) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Video play mode (Stage D): the Play video control and
   its overlays exist only on videoplay=1 opens; the
   elements are created by the play section of map.js and
   removed whole when a play ends or is stopped. Sizes are
   stage units, matching the example render's end card. */
/* the button rides in the bottom left stack (inserted
   below the radius card by the play section of map.js), so
   it carries no position of its own; during a play the
   column sits under the play overlays like the rest of the
   page chrome, and the click shield takes the stop clicks */
#vp-play-btn.vp-live { z-index: 330; }
#vp-shield {
  position: absolute; inset: 0; z-index: 305;
}
#vp-splash {
  position: absolute; inset: 0; z-index: 310; overflow: hidden;
  background: #22314a; pointer-events: none;
}
#vp-splash img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* the sheen band the play sweeps across the settling
   photo: a soft diagonal light pass, parked invisible,
   its travel and strength driven inline per frame */
#vp-sheen {
  position: absolute; top: -12%; bottom: -12%; left: 0; width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%);
  opacity: 0; pointer-events: none;
}
#vp-endcard {
  position: absolute; inset: 0; z-index: 320;
  background: #22314a;
  background-image: radial-gradient(circle at 50% 42%, rgba(255,240,196,0.10), rgba(255,240,196,0) 62%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
#vp-endcard .vp-pin svg {
  width: calc(var(--u, 1px) * 96); height: calc(var(--u, 1px) * 96); display: block;
}
#vp-endcard .vp-credit {
  margin-top: calc(var(--u, 1px) * 24); color: rgba(255,255,255,0.88);
  font-weight: 500; font-size: calc(var(--u, 1px) * 34); line-height: 1.2;
}
/* While a play runs, the frame carries vp-playing and the
   live-only controls on it hide, so the preview is the
   graphic alone, the way a rendered video is: the lines
   checkbox and the acreage Edit badge on the parcel card,
   the quick stack, the download button, and the map's own
   zoom control. Visibility, not display, so nothing on the
   composed frame moves; the play's reset removes the class
   and every control returns exactly. */
#frame.vp-playing #lines-toggle,
#frame.vp-playing #parcel-note,
#frame.vp-playing #lot-add-btn,
#frame.vp-playing #lot-panel,
#frame.vp-playing #lot-banner,
#frame.vp-playing #acreage-edit-badge,
#frame.vp-playing #quick-stack,
#frame.vp-playing #rotate-stack,
#frame.vp-playing #btn-download,
#frame.vp-playing #btn-video,
#frame.vp-playing .mapboxgl-ctrl-group { visibility: hidden; }

/* settings drawer */
#settings {
  position: absolute; z-index: 300; top: 0; left: 0; bottom: 0; width: calc(var(--u, 1px) * 500); max-width: 94%;
  background: #fff; box-shadow: calc(var(--u, 1px) * 16) 0 calc(var(--u, 1px) * 40) rgba(2,12,27,.3); transform: translateX(-105%);
  transition: transform .25s ease; display: flex; flex-direction: column;
}
#settings.open { transform: translateX(0); }

/* The drawer push (2026-11-01): with the drawer open the
   page splits into two sections, the drawer at its own
   width on the left and the stage rescaled into what
   remains, instead of the drawer lying over the map.
   --drawer-w is the drawer's standing width expressed
   without the stage unit: 500 stage px of the unshrunk
   frame, and 500 of 1500 stage px is a third of the frame
   width, so it is the frame formula over 3. The frame
   takes the same 3:2 fit it always takes, computed
   against the reduced width, and the page pads itself by
   the drawer's width so the frame centers in its own
   section. The map container's new size reaches the
   framing through the same container watch and settled
   refit a window resize uses; nothing here touches a
   camera or a framing formula, and the export and video
   stages compose from their canonical constants outside
   this frame entirely. The drawer's own unit is pinned
   to its pushed width (500 stage px by construction), so
   its content keeps exactly the size it has today while
   the stage beside it rescales. The width and height
   transition only while push-anim is on the page (the
   beat around a toggle, set in map.js), so dragging the
   window itself never trails. */
#mappage {
  --drawer-w: calc(min(calc(100vw - 32px), calc(3 * (100vh - 56px) / 2 + 24px)) / 3);
}
#mappage.drawer-push { box-sizing: border-box; padding-left: var(--drawer-w); }
#mappage.drawer-push #frame {
  width: min(calc(100vw - 32px - var(--drawer-w)), calc(3 * (100vh - 56px) / 2 + 24px));
  height: min(calc(100vh - 32px), calc(2 * (100vw - 56px - var(--drawer-w)) / 3 + 24px));
}
#mappage.push-anim #frame { transition: width .25s ease, height .25s ease; }
#mappage.drawer-push #settings {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--drawer-w); max-width: none;
  --u: calc(var(--drawer-w) / 500);
}
#settings .s-head { padding: calc(var(--u, 1px) * 22) calc(var(--u, 1px) * 24) calc(var(--u, 1px) * 16); border-bottom: 1px solid var(--line); }
#settings .s-head h2 { font-size: calc(var(--u, 1px) * 21); letter-spacing: -.01em; }
#settings .s-head p { color: var(--muted); font-size: calc(var(--u, 1px) * 14); line-height: 1.5; margin-top: calc(var(--u, 1px) * 6); }
#settings .s-body { overflow-y: auto; padding: calc(var(--u, 1px) * 6) calc(var(--u, 1px) * 24) calc(var(--u, 1px) * 26); flex: 1; }
#settings h3 { font-size: calc(var(--u, 1px) * 12.5); letter-spacing: .12em; color: var(--muted); margin: calc(var(--u, 1px) * 22) 0 calc(var(--u, 1px) * 11); font-weight: 700; }
#settings h3.add-place-h { font-size: calc(var(--u, 1px) * 15); letter-spacing: .04em; color: var(--ink); font-weight: 800; }
#settings .close-x { position: absolute; top: calc(var(--u, 1px) * 14); right: calc(var(--u, 1px) * 14); width: calc(var(--u, 1px) * 34); height: calc(var(--u, 1px) * 34); border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: calc(var(--u, 1px) * 16); }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u, 1px) * 8); }
.radio-grid label, .check-list label {
  display: flex; align-items: center; gap: calc(var(--u, 1px) * 9); font-size: calc(var(--u, 1px) * 14.5); font-weight: 500;
  border: 1px solid var(--line); border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 12); cursor: pointer;
}
.radio-grid label:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u, 1px) * 8); }
.check-list label:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.ctl-row { display: flex; gap: calc(var(--u, 1px) * 8); flex-wrap: wrap; align-items: center; }
.ctl-row select {
  font-size: calc(var(--u, 1px) * 14.5); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 11); border: 1px solid var(--line); border-radius: calc(var(--u, 1px) * 10); background: #fff; color: var(--ink);
}
.ctl-btn { border: 1px solid var(--line); background: #fff; border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 14); font-size: calc(var(--u, 1px) * 14); font-weight: 600; min-width: calc(var(--u, 1px) * 48); min-height: calc(var(--u, 1px) * 48); }
.ctl-btn.active { border-color: var(--blue); background: #eff6ff; color: var(--blue-dark); }
.ctl-btn:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: flex; border: 1px solid var(--line); border-radius: calc(var(--u, 1px) * 10); overflow: hidden; }
.seg button { flex: 1; border: none; background: #fff; padding: calc(var(--u, 1px) * 10) 0; font-size: calc(var(--u, 1px) * 14); font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--blue); color: #fff; }
.hint { font-size: calc(var(--u, 1px) * 13); color: var(--muted); margin-top: calc(var(--u, 1px) * 8); line-height: 1.45; }
#overlap-note { font-size: calc(var(--u, 1px) * 13.5); color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 13); margin-top: calc(var(--u, 1px) * 13); display: none; }
.poi-list { margin-top: calc(var(--u, 1px) * 4); }
/* category sections in the drawer list: a large header over
   each alphabetically organized group (2026-10-24).
   The header sticks at the top of its own section while the
   drawer scrolls, on the panel's white so rows pass under
   it cleanly. */
.poi-cat-head { font-size: calc(var(--u, 1px) * 17); font-weight: 800; color: var(--ink); letter-spacing: .01em; padding: calc(var(--u, 1px) * 13) calc(var(--u, 1px) * 2) calc(var(--u, 1px) * 6); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.poi-cat-group:first-child .poi-cat-head { padding-top: calc(var(--u, 1px) * 5); }
.poi-row { display: flex; align-items: center; gap: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 2); border-bottom: 1px solid #f1f5f9; }
.poi-row .dotc { width: calc(var(--u, 1px) * 10); height: calc(var(--u, 1px) * 10); border-radius: 50%; flex: none; }
.poi-row .info { flex: 1; min-width: 0; }
.poi-row .nm { font-size: calc(var(--u, 1px) * 14); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poi-row .meta { font-size: calc(var(--u, 1px) * 12.5); color: var(--muted); }
.poi-row .st { font-size: calc(var(--u, 1px) * 11); font-weight: 700; padding: calc(var(--u, 1px) * 3) calc(var(--u, 1px) * 9); border-radius: 999px; white-space: nowrap; }
.st.shown { background: #ecfdf5; color: #065f46; }
.st.removed { background: #fef2f2; color: #991b1b; }
.st.overlap { background: #fffbeb; color: #92400e; }
.st.catoff { background: #f1f5f9; color: #64748b; }
.st.aside { background: #eef2ff; color: #3730a3; }
/* add a place (map page settings) */
#addq { flex: 1; min-width: calc(var(--u, 1px) * 180); border: 1px solid var(--line); border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 12); font-size: calc(var(--u, 1px) * 14); background: #fff; }
#addq:focus { border-color: var(--blue); box-shadow: 0 0 0 calc(var(--u, 1px) * 3) rgba(37, 99, 235, .15); outline: none; }
#radius-custom { width: calc(var(--u, 1px) * 110); border: 1px solid var(--line); border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 12); font-size: calc(var(--u, 1px) * 14); background: #fff; }
#radius-custom:focus { border-color: var(--blue); box-shadow: 0 0 0 calc(var(--u, 1px) * 3) rgba(37, 99, 235, .15); outline: none; }
#add-results { margin-top: calc(var(--u, 1px) * 8); }
#add-results .res { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 9) calc(var(--u, 1px) * 12); margin-bottom: calc(var(--u, 1px) * 6); font-size: calc(var(--u, 1px) * 13.5); }
#add-results .res .nm { font-weight: 700; }
#add-results .res .ad { color: var(--muted); font-size: calc(var(--u, 1px) * 12.5); }
.builder-card .seg { margin-bottom: 20px; }
.pin-row { display: flex; gap: 12px; margin-top: 16px; }
.pin-row > div { flex: 1; }
.pin-note { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 12px; }
#pin-block { margin-bottom: 4px; }
.poi-row button.act { border: 1px solid var(--line); background: #fff; border-radius: calc(var(--u, 1px) * 8); font-size: calc(var(--u, 1px) * 12.5); font-weight: 700; padding: calc(var(--u, 1px) * 6) calc(var(--u, 1px) * 10); white-space: nowrap; }
/* The load cover (2026-11-10): a screen stands over the
   map page from the first paint while the page assembles
   behind it (map load, emblem settle, the first placement
   verdict), and pointer interaction with the half built page
   is locked while it stands. When the assembly is ready the
   cover lifts and the load intro plays from its first beat,
   so every open gets the warm refresh sequence. map.js
   owns when it lifts (readiness, with a hard cap); the
   .lifted class is the fade.
   The face (fourth, and deliberately plain): preview
   variant F, the generic holding screen, worn as an
   interim face while the cover art hunt is parked.
   The owner parked the hunt on 2026-11-11: the haze
   face E and the tilted full bleed G both read fine
   but neither is final, iterating the exact look is
   a full night he is not spending now, and a generic
   load may be the wiser ship choice anyway; F goes
   in so he can evaluate it in the real product. F is
   a pale warm white field, a pure CSS radial
   gradient with no image asset at all, and nothing
   on it but the wordblock, centered: the home
   marker's bullseye blinks calmly (never fully gone)
   over the work steps at twice the old status size
   in quiet dark type, his five steps in his order,
   crossfading: Finding POIs, Drawing Property
   Lines, Setting Radius, Placing Markers, Building
   Map. They sound like work being done, which is
   the point. E's haze face (the baked Pittsburgh
   still, the rightward pan, the floating emblems,
   the haze banks and the seam breath) is retired
   whole, asset and all; G never left the preview
   file. And the page arrives through black (also
   his, from the night E was approved: first written
   700ms, he cut it to 400ms within the hour, worried
   a longer fade would snap black and then stage a
   moment, then asked to try 700ms after all on
   2026-11-11, where it stands at his trial; the
   fade only softens the cut after Make map into one
   polished through black transition into the pale
   field): a black veil over the face dissolves over
   700ms; the veil is visual only and never touches
   the lock or the lift. Pure CSS animation, moving
   at first paint, looping for as long as the cover
   stands. */
#load-cover {
  position: absolute; inset: 0; z-index: 600;
  background: radial-gradient(ellipse 90% 75% at 50% 42%, #fffdf9 0%, #faf7f1 58%, #f2eee6 100%);
  overflow: hidden;
  transition: opacity .3s ease;
}
#load-cover.lifted { opacity: 0; pointer-events: none; }
#load-cover .cover-fade {
  position: absolute; inset: 0; z-index: 7;
  background: #000; pointer-events: none;
  animation: cover-fade-in .7s ease-out both;
}
@keyframes cover-fade-in {
  from { opacity: 1; }
  to { opacity: 0; }
}
/* The wordblock, centered on the plain field: the home
   marker's bullseye in its own rings (white, survey
   navy, white, gold), blinking calmly over the steps.
   The steps share one grid cell and crossfade in turn,
   so the block never changes size as the words do. */
#load-cover .cover-wordblock {
  position: absolute; z-index: 6; left: 50%; top: 47%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  gap: calc(var(--u, 1px) * 16); pointer-events: none;
}
#load-cover .cover-mark {
  line-height: 0;
  filter: drop-shadow(0 3px 8px rgba(31,45,61,.28));
  animation: cover-mark-blink 1.6s ease-in-out infinite;
}
@keyframes cover-mark-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .32; }
}
#load-cover .cover-steps {
  display: inline-grid; text-align: center;
  font-size: calc(var(--u, 1px) * 33); font-weight: 550;
  letter-spacing: .01em; color: #26344a; white-space: nowrap;
  text-shadow: 0 0 14px rgba(255,255,255,.85), 0 0 4px rgba(255,255,255,.9);
}
#load-cover .cover-step {
  grid-area: 1 / 1; opacity: 0;
  animation: cover-step-cycle 9s linear infinite;
}
#load-cover .cover-step:nth-child(2) { animation-delay: 1.8s; }
#load-cover .cover-step:nth-child(3) { animation-delay: 3.6s; }
#load-cover .cover-step:nth-child(4) { animation-delay: 5.4s; }
#load-cover .cover-step:nth-child(5) { animation-delay: 7.2s; }
@keyframes cover-step-cycle {
  0% { opacity: 0; }
  4.8% { opacity: 1; }
  20% { opacity: 1; }
  24.8% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #load-cover .cover-mark, #load-cover .cover-fade { animation: none; }
  #load-cover .cover-fade { opacity: 0; }
  #load-cover .cover-step { animation: none; }
  #load-cover .cover-step:first-child { opacity: 1; }
}
#loading-pois { position: absolute; z-index: 150; left: 50%; bottom: calc(var(--u, 1px) * 84); transform: translateX(-50%); background: rgba(28,39,51,.88); color: #fff; font-size: calc(var(--u, 1px) * 13.5); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 17); border-radius: 999px; display: none; white-space: nowrap; }

/* ---------------- accounts, my maps, owner ---------------- */
.page.narrow { max-width: 640px; }
.authbox { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.authbox a { color: var(--blue); text-decoration: none; font-weight: 600; }
.authbox a:hover { text-decoration: underline; }
.authbox .who { color: var(--muted); font-size: 13.5px; }
.authbox .linklike { background: none; border: none; color: var(--blue); font-weight: 600; font-size: 14px; padding: 0; }
.authbox .cta-mini { background: var(--blue); color: #fff; padding: 7px 13px; border-radius: 9px; }
.authbox .cta-mini:hover { background: var(--blue-dark); text-decoration: none; }
.authbox .credits-pill { background: #fff7ed; border: 1px solid #fed7aa; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.authbox .credits-pill:hover { border-color: var(--orange); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.demo-cta { background: var(--orange); color: #fff; font-weight: 600; font-size: 14px; padding: 7px 13px; border-radius: 9px; text-decoration: none; white-space: nowrap; }
.demo-cta:hover { background: #d9551c; }
/* Mobile header (2026-11-29): the row cannot hold
   the wordmark, the demo button and the account buttons at
   phone width, and the wordmark was the part getting cut.
   On small screens the demo button drops to its own full
   width row under the header line, and the wordmark is
   never allowed to shrink. */
@media (max-width: 760px) {
  body.landing header.top { flex-wrap: wrap; }
  body.landing header.top .brand { flex-shrink: 0; white-space: nowrap; }
  body.landing .top-actions { display: contents; }
  body.landing header.top .authbox { margin-left: auto; }
  body.landing header.top .demo-cta { order: 3; flex: 1 0 100%; text-align: center; margin-top: 10px; padding: 10px 13px; }
}
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 520px; margin: 34px auto 0; padding: 28px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.55; }
.auth-card label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin: 16px 0 8px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text], .auth-card input[type=search], .auth-card select {
  width: 100%; font-size: 16px; padding: 13px 15px; border: 1.5px solid #cbd5e1;
  border-radius: 12px; color: var(--ink); background: #fff; outline: none;
}
.auth-card input[type=email]:focus, .auth-card input[type=password]:focus, .auth-card input[type=text]:focus, .auth-card input[type=search]:focus, .auth-card select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.auth-card .makemap { width: 100%; margin-top: 20px; }
/* The account page's video closing card profile (2026-11-01):
   three plain fields under the account's own headings, in the
   auth form's visual language. */
#agent-card { margin-top: 38px; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.brand-row input[type="file"] { width: auto; border: none; padding: 4px 0; font-size: 14px; }
.brand-thumb { width: 56px; height: 56px; object-fit: contain; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 10px; }
.brand-thumb.round { object-fit: cover; border-radius: 50%; }
.brand-state { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); text-transform: none; }
.profile-form { display: grid; gap: 12px; max-width: 520px; margin-top: 14px; }
.profile-form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.profile-form input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cbd5e1; border-radius: 12px; color: var(--ink); background: #fff; outline: none; margin-top: 6px; }
.profile-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 20px; padding: 13px; border: 1.5px solid #cbd5e1;
  border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700;
  font-size: 15.5px; text-decoration: none;
}
.google-btn:hover { background: #f8fafc; }
.google-btn.disabled { opacity: .55; }
.google-note { color: var(--muted); font-size: 13px; margin-top: 9px; text-align: center; line-height: 1.45; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px; color: var(--muted); font-size: 12.5px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.switch-line { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.switch-line a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.cta-link { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; text-decoration: none; }
.cta-link:hover { background: var(--blue-dark); }
.ghost-btn { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 12px; }
.ghost-btn:hover { background: #f8fafc; }
.list-wrap { max-width: 820px; margin: 26px auto 0; }
.list-wrap h1 { font-size: 32px; letter-spacing: -.02em; }
.list-wrap .sub { color: var(--muted); font-size: 15.5px; margin-top: 8px; line-height: 1.55; max-width: 560px; }
.map-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 12px; box-shadow: 0 2px 8px rgba(28,39,51,.04); }
.map-row .map-main { flex: 1; min-width: 0; }
.map-row .map-thumb { width: 68px; height: 51px; object-fit: cover; border-radius: 9px; flex: none; background: #f1f5f9; }
.map-row .map-addr { font-weight: 700; font-size: 16.5px; }
.map-row .map-meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.badge-paid { background: #dcfce7; color: #166534; font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge-unpaid { background: #f1f5f9; color: #64748b; font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.mini-btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.mini-btn:hover { background: #0f172a; }
.mini-btn.danger { background: #b91c1c; }
.mini-btn.danger:hover { background: #991b1b; }
.mini-btn:disabled { opacity: .5; }
.map-row .map-actions { display: flex; gap: 8px; flex: none; align-items: center; }
.map-row .map-check { width: 19px; height: 19px; flex: none; accent-color: var(--orange); margin: 0; }

/* My graphics: clearing out the library. A Select maps
   toggle opens selection mode (a checkbox per row, select
   all, a live count, delete behind one confirmation that
   names the count), and every row carries its own Delete
   behind the same confirmation. Deleting is permanent, so
   the confirmation bar is unmistakably a warning. */
#maps-toolbar { margin-top: 18px; align-items: center; gap: 12px; flex-wrap: wrap; }
#maps-select-tools { align-items: center; gap: 12px; flex-wrap: wrap; }
.maps-selall { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.maps-selall input { width: 17px; height: 17px; accent-color: var(--orange); margin: 0; }
#maps-sel-count { color: var(--muted); font-size: 14px; font-weight: 600; }
#maps-confirm { margin-top: 14px; background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; border-radius: 12px; padding: 13px 16px; font-size: 14.5px; font-weight: 600; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.maps-confirm-btns { display: inline-flex; gap: 8px; flex: none; }
#maps-note { margin-top: 12px; }
#maps-err { margin-top: 12px; }
.empty-box { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 30px; margin-top: 18px; text-align: center; }
.empty-box h2 { font-size: 20px; }
.empty-box p { color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* My graphics: tabs segment the library from buying. My
   graphics is the default tab; Credits & plans is the door to
   buying credits and subscribing without starting a new map:
   balance with its bucket split, the active subscription, one
   card per pack and per subscription plan, all rendered from
   /api/me. The cards follow the purchase vocabulary of
   the owner's other apps: credit count headline, plain
   descriptor, large price, per credit price, a green savings
   line against the single graphic price, a Best value badge
   overlapping the top edge, and a full width buy button.
   Scoped to the list wrap so the map page's own plan rows
   (.opt) stay untouched. */
.maps-tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1.5px solid var(--line); }
.maps-tab { background: none; border: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); padding: 9px 14px; cursor: pointer; }
.maps-tab:hover { color: var(--ink); }
.maps-tab.active { color: var(--ink); border-bottom-color: var(--orange); }
.tab-panel .sub { color: var(--muted); font-size: 15px; margin-top: 14px; line-height: 1.55; }
#purchase-note { margin-top: 18px; border-radius: 12px; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; }
#purchase-note.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
#purchase-note.plain { background: #f8fafc; border: 1px solid var(--line); color: var(--muted); }
#account-plans { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 2px 8px rgba(28,39,51,.04); }
#account-plans .balance-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
#account-plans .balance-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
#account-plans .balance-detail { color: var(--muted); font-size: 14px; margin-top: 5px; line-height: 1.5; }
#account-plans .plans-h { font-size: 19px; margin-top: 28px; letter-spacing: -.01em; }
#account-plans .stripe-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 14px; margin-top: 22px; }
.plan-card { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 16px 16px; background: #fff; }
.plan-card.current { border-color: var(--blue); background: #eff6ff; }
.plan-card .plan-badge.best-value { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; padding: 4px 11px; border-radius: 999px; white-space: nowrap; box-shadow: 0 3px 8px rgba(240, 100, 35, .35); }
.plan-card .plan-name { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-card.current .plan-name { padding-right: 92px; }
.plan-card .badge-paid { position: absolute; top: 12px; right: 12px; margin: 0; }
.plan-card .plan-headline { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 7px; }
.plan-card .plan-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; line-height: 1.45; }
.plan-card .plan-price { font-size: 31px; font-weight: 800; letter-spacing: -.02em; margin-top: 13px; }
.plan-card .plan-unit { color: var(--muted); font-size: 13px; margin-top: 1px; }
.plan-card .plan-save { color: #15803d; font-size: 13px; font-weight: 700; margin-top: 7px; }
.plan-card .plan-truth { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 9px; padding-bottom: 14px; }
.plan-card .plan-buy { border: none; width: 100%; margin-top: auto; padding-top: 11px; padding-bottom: 11px; text-align: center; font-size: 14.5px; }
.plan-card .plan-buy:disabled { opacity: .55; cursor: not-allowed; }
#account-signin { margin-top: 22px; }
.owner-table-wrap { overflow-x: auto; margin-top: 16px; }
.owner-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.owner-table th { text-align: left; color: var(--muted); font-size: 12px; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.owner-table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; }
.modal .demo-note { margin-top: calc(var(--u, 1px) * 13); background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 10) calc(var(--u, 1px) * 13); font-size: calc(var(--u, 1px) * 13.5); line-height: 1.5; }

/* purchase modal. The panel is bounded by the backdrop's
   content box and scrolls internally: the full option list
   (single, packs, subscriptions, video, plus the credit and
   demo rows) is taller than the fixed stage at ordinary
   window sizes, and an unbounded centered modal was clipped
   symmetrically by the stage wrapper, taking the title and
   close control off the top and the action buttons off the
   bottom with no way to reach them (2026-10-29). */
.modal-back { position: absolute; inset: 0; z-index: 400; background: rgba(10, 20, 35, .55); display: none; align-items: center; justify-content: center; padding: calc(var(--u, 1px) * 20); }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: calc(var(--u, 1px) * 18); max-width: calc(var(--u, 1px) * 480); width: 100%; max-height: 100%; overflow-y: auto; padding: calc(var(--u, 1px) * 28); box-shadow: 0 calc(var(--u, 1px) * 24) calc(var(--u, 1px) * 60) rgba(2,12,27,.45); position: relative; }
.modal h2 { font-size: calc(var(--u, 1px) * 22); letter-spacing: -.01em; }
.modal .sub { color: var(--muted); font-size: calc(var(--u, 1px) * 14.5); margin-top: calc(var(--u, 1px) * 7); line-height: 1.5; }
/* The map panel's purchase return note shares the account
   page's #purchase-note colors; inside the scaled modal its
   geometry follows the stage unit like the rest of the panel. */
.modal #purchase-note { margin-top: calc(var(--u, 1px) * 13); border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 11) calc(var(--u, 1px) * 14); font-size: calc(var(--u, 1px) * 14); }
.modal .acct-balance { margin-top: calc(var(--u, 1px) * 14); font-size: calc(var(--u, 1px) * 16.5); font-weight: 700; }
.opt { display: flex; gap: calc(var(--u, 1px) * 12); align-items: flex-start; border: calc(var(--u, 1px) * 1.5) solid var(--line); border-radius: calc(var(--u, 1px) * 13); padding: calc(var(--u, 1px) * 15) calc(var(--u, 1px) * 16); margin-top: calc(var(--u, 1px) * 13); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.opt.disabled { opacity: .55; cursor: not-allowed; }
.opt .t { font-weight: 700; font-size: calc(var(--u, 1px) * 15.5); }
.opt .d { color: var(--muted); font-size: calc(var(--u, 1px) * 13); margin-top: calc(var(--u, 1px) * 2); line-height: 1.45; }
.opt .price { margin-left: auto; font-weight: 800; font-size: calc(var(--u, 1px) * 15.5); white-space: nowrap; }
.tag-soon { font-size: calc(var(--u, 1px) * 11); font-weight: 800; letter-spacing: .06em; background: #f1f5f9; color: #64748b; border-radius: 999px; padding: calc(var(--u, 1px) * 3) calc(var(--u, 1px) * 8); margin-left: calc(var(--u, 1px) * 7); vertical-align: calc(var(--u, 1px) * 2); }
.modal .cta { width: 100%; margin-top: calc(var(--u, 1px) * 18); background: var(--blue); color: #fff; border: none; font-size: calc(var(--u, 1px) * 16); font-weight: 700; padding: calc(var(--u, 1px) * 14); border-radius: calc(var(--u, 1px) * 12); }
.modal .cta:hover { background: var(--blue-dark); }
.modal .demo { display: block; text-align: center; margin-top: calc(var(--u, 1px) * 13); font-size: calc(var(--u, 1px) * 13); color: var(--muted); background: none; border: none; width: 100%; text-decoration: underline; }
.modal .close-x { position: absolute; top: calc(var(--u, 1px) * 12); right: calc(var(--u, 1px) * 12); width: calc(var(--u, 1px) * 32); height: calc(var(--u, 1px) * 32); border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: calc(var(--u, 1px) * 15); }
/* the brief highlight the Generate video button lands on
   its row of the panel with: an orange ring and a warm wash
   that hold for a beat, then release. */
.video-flash { animation: videoFlash 1.4s ease-out; border-radius: calc(var(--u, 1px) * 10); }
@keyframes videoFlash {
  0%, 55% { background: #fff7ed; box-shadow: 0 0 0 calc(var(--u, 1px) * 2) var(--orange); }
  100% { background: transparent; box-shadow: 0 0 0 0 rgba(240, 100, 35, 0); }
}
.dl-btns { display: grid; gap: calc(var(--u, 1px) * 10); margin-top: calc(var(--u, 1px) * 18); }
.dl-btns button { border: none; border-radius: calc(var(--u, 1px) * 12); padding: calc(var(--u, 1px) * 14); font-size: calc(var(--u, 1px) * 15); font-weight: 700; }
.dl-btns .b1 { background: var(--ink); color: #fff; }
.dl-btns .b2 { background: #fff; color: var(--ink); border: calc(var(--u, 1px) * 1.5) solid var(--line); }
.dl-btns .d { display: block; font-weight: 500; font-size: calc(var(--u, 1px) * 12.5); opacity: .75; margin-top: calc(var(--u, 1px) * 3); }
/* The download step's selectable rows (2026-11-01): each item
   carries a clickable circle beside it. The checkbox is the
   state but is visually hidden; the circle is what the eye
   reads, filling with the brand blue inside a white ring when
   its row is picked. The two graphics ride the one unlock, so
   the rows are independent picks rather than a one-of choice,
   and the video row sits in the same step reminding the buyer
   it exists, priced at its 1 credit. */
.dl-opt { position: relative; align-items: center; }
.dl-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dl-circle { flex: none; width: calc(var(--u, 1px) * 22); height: calc(var(--u, 1px) * 22); border-radius: 50%; border: calc(var(--u, 1px) * 2) solid #94a3b8; background: #fff; }
.dl-opt:has(input:checked) .dl-circle { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 calc(var(--u, 1px) * 3.5) #fff; }
.dl-opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.dl-opt:has(input:disabled) .dl-circle { border-color: var(--line); box-shadow: none; background: #fff; }
/* The download step's video charge stands on its own line
   above the options, so the price is unmistakable where the
   choices are; the line names the video only, never the
   included JPEGs. */
.modal .dl-video-cost { margin-top: calc(var(--u, 1px) * 14); font-weight: 700; font-size: calc(var(--u, 1px) * 15); }
/* No video yet: the generate invite is one button and
   nothing else. It wears the product's orange action
   treatment (the same fill, weight and shadow as the
   generation modal's own primary) so it reads as
   pressable at a glance, not as flat text in an outline. */
#video-gen-row { margin-top: calc(var(--u, 1px) * 13); }
.modal .dl-gen-btn { width: 100%; background: var(--orange); color: #fff; border: none; font-size: calc(var(--u, 1px) * 15); font-weight: 700; padding: calc(var(--u, 1px) * 12) calc(var(--u, 1px) * 18); border-radius: calc(var(--u, 1px) * 12); box-shadow: 0 calc(var(--u, 1px) * 6) calc(var(--u, 1px) * 16) rgba(240, 100, 35, .35); }
.modal .dl-gen-btn:hover { background: var(--orange-dark); }
.modal .dl-gen-btn:disabled { opacity: .55; box-shadow: none; }
/* The twilight section under the video rows: the sample (or
   the finished twilight) as a full width thumb, then the
   action buttons stacked with a small gap. */
#twilight-thumb { width: 100%; display: block; border-radius: calc(var(--u, 1px) * 10); margin-top: calc(var(--u, 1px) * 10); }
#twilight-section .dl-gen-btn { margin-top: calc(var(--u, 1px) * 8); }
/* The video preview player and the generation stage: both sit
   over the map and the purchase panel, under the export
   toast. The preview is the free play, so it never runs past
   the hold into the closing card; the render stage shows the
   very canvas being recorded. */
#video-pop, #video-gen { position: absolute; inset: 0; z-index: 450; background: rgba(10, 20, 35, .62); align-items: center; justify-content: center; padding: calc(var(--u, 1px) * 20); }
.video-pop-card { position: relative; background: #0e1622; border-radius: calc(var(--u, 1px) * 16); padding: calc(var(--u, 1px) * 14); width: min(calc(var(--u, 1px) * 880), 100%); box-shadow: 0 calc(var(--u, 1px) * 24) calc(var(--u, 1px) * 60) rgba(2,12,27,.5); }
.video-pop-card .sub { color: rgba(255,255,255,.75); margin-top: calc(var(--u, 1px) * 10); }
.video-pop-card .close-x, .video-gen-card .close-x { position: absolute; top: calc(var(--u, 1px) * 10); right: calc(var(--u, 1px) * 10); width: calc(var(--u, 1px) * 32); height: calc(var(--u, 1px) * 32); border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: calc(var(--u, 1px) * 15); z-index: 2; }
#video-el { width: 100%; display: block; border-radius: calc(var(--u, 1px) * 10); background: #000; aspect-ratio: 3 / 2; }
#video-el.agv-tall { aspect-ratio: 9 / 16; width: auto; max-width: 100%; max-height: 64vh; margin: 0 auto; }
.video-gen-card { position: relative; background: #fff; border-radius: calc(var(--u, 1px) * 18); border-top: calc(var(--u, 1px) * 5) solid var(--orange); padding: calc(var(--u, 1px) * 24); width: min(calc(var(--u, 1px) * 760), 100%); box-shadow: 0 calc(var(--u, 1px) * 24) calc(var(--u, 1px) * 60) rgba(2,12,27,.45); overflow: hidden; }
/* the setup phase reads as a finished card, in the download
   panel's own language: a branded head (the pin mark and the
   title under the card's orange accent), the two choice
   groups as bordered selectable rows whose circles fill
   when picked (the .dl-circle the panel's rows carry), the
   saved branding summary as a quiet info strip, and a real
   brand orange primary action. */
.vg-head { display: flex; align-items: center; gap: calc(var(--u, 1px) * 12); margin-bottom: calc(var(--u, 1px) * 18); }
.vg-head .vg-logo { width: calc(var(--u, 1px) * 34); height: calc(var(--u, 1px) * 34); flex: none; }
.vg-head h2 { margin: 0; font-size: calc(var(--u, 1px) * 23); letter-spacing: -.01em; }
#video-gen-setup .vg-q { font-weight: 700; font-size: calc(var(--u, 1px) * 15.5); margin: 0 0 calc(var(--u, 1px) * 4); }
.vg-opt { position: relative; display: flex; gap: calc(var(--u, 1px) * 12); align-items: center; border: calc(var(--u, 1px) * 1.5) solid var(--line); border-radius: calc(var(--u, 1px) * 13); padding: calc(var(--u, 1px) * 12) calc(var(--u, 1px) * 15); margin-top: calc(var(--u, 1px) * 9); cursor: pointer; font-size: calc(var(--u, 1px) * 14.5); font-weight: 600; background: #fff; }
.vg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vg-opt:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.vg-opt:has(input:checked) .dl-circle { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 calc(var(--u, 1px) * 3.5) #fff; }
.vg-opt .vg-sub { margin-left: auto; color: var(--muted); font-size: calc(var(--u, 1px) * 12.5); font-weight: 500; text-align: right; }
#vg-brand-summary { background: #f8fafc; border: 1px solid var(--line); border-radius: calc(var(--u, 1px) * 10); padding: calc(var(--u, 1px) * 9) calc(var(--u, 1px) * 12); margin-bottom: calc(var(--u, 1px) * 4); }
#vg-brand-form { margin-top: calc(var(--u, 1px) * 10); }
#vg-brand-form .profile-form { max-width: none; }
.vg-brand-save-row { margin-top: calc(var(--u, 1px) * 14); }
#vg-brand-save:disabled { opacity: .55; cursor: default; }
#vg-brand-note { margin-left: calc(var(--u, 1px) * 6); }
.vg-remove { font-size: calc(var(--u, 1px) * 13); font-weight: 500; letter-spacing: 0; color: var(--muted); text-transform: none; white-space: nowrap; }
#video-gen-go { width: 100%; margin-top: calc(var(--u, 1px) * 18); background: var(--orange); color: #fff; border: none; font-size: calc(var(--u, 1px) * 16); font-weight: 700; padding: calc(var(--u, 1px) * 14); border-radius: calc(var(--u, 1px) * 12); box-shadow: 0 calc(var(--u, 1px) * 6) calc(var(--u, 1px) * 16) rgba(240, 100, 35, .35); }
#video-gen-go:hover { background: var(--orange-dark); }
#video-gen-go:disabled { opacity: .55; box-shadow: none; cursor: default; }
.vg-orient { margin-top: calc(var(--u, 1px) * 20); border-top: 1px solid var(--line); padding-top: calc(var(--u, 1px) * 16); }
#video-pop-orient { justify-content: center; gap: calc(var(--u, 1px) * 8); margin-top: calc(var(--u, 1px) * 10); }
#video-pop-orient .vpo { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: calc(var(--u, 1px) * 6) calc(var(--u, 1px) * 16); font-size: calc(var(--u, 1px) * 13.5); font-weight: 600; cursor: pointer; }
#video-pop-orient .vpo.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* The unpaid video surfaces carry the map preview's own
   watermark tile as a paint-only overlay (pointer events
   pass through): over the preview player until the video
   unlocks, and over the generation stage's canvas while a
   video builds. The masters themselves stay clean; the
   clean file is what the paid download delivers. */
#video-wm { position: absolute; display: none; z-index: 1; pointer-events: none; background-repeat: repeat; border-radius: calc(var(--u, 1px) * 10); }
/* The keep-open banner over the generation stage: the
   build lives in this tab and a hidden tab cannot paint
   it, so the one instruction the user must not miss is
   set in display type on a tinted, bordered panel for
   the whole build, with the live percentage beside it. */
#video-gen-keepopen { background: #fff4e8; border: calc(var(--u, 1px) * 2) solid var(--orange); border-radius: calc(var(--u, 1px) * 13); padding: calc(var(--u, 1px) * 14) calc(var(--u, 1px) * 16); margin-bottom: calc(var(--u, 1px) * 14); }
#video-gen-keep-title { font-size: calc(var(--u, 1px) * 20); font-weight: 800; line-height: 1.25; margin: 0; }
#video-gen-keep-sub { font-size: calc(var(--u, 1px) * 14.5); margin: calc(var(--u, 1px) * 6) 0 0; }
#video-gen-pct { font-weight: 800; }
#video-gen-resumed { font-size: calc(var(--u, 1px) * 14); font-weight: 700; margin: calc(var(--u, 1px) * 8) 0 0; }
#video-gen-stage { position: relative; }
#video-gen-wm { position: absolute; display: none; z-index: 1; pointer-events: none; background-repeat: repeat; border-radius: calc(var(--u, 1px) * 10); }
#video-gen-stage canvas { width: 100%; display: block; border-radius: calc(var(--u, 1px) * 10); background: #22314a; }
#video-gen-stage canvas.agv-tall { width: auto; height: calc(var(--u, 1px) * 400); max-width: 100%; margin: 0 auto; }
.gen-bar { height: calc(var(--u, 1px) * 8); background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: calc(var(--u, 1px) * 14); }
#video-gen-fill { height: 100%; width: 0%; background: var(--orange); transition: width .25s linear; }
.video-gen-card .demo { display: block; text-align: center; margin: calc(var(--u, 1px) * 12) auto 0; font-size: calc(var(--u, 1px) * 13); color: var(--muted); background: none; border: none; text-decoration: underline; }
#export-toast {
  position: absolute; z-index: 500; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(28,39,51,.92); color: #fff; padding: calc(var(--u, 1px) * 16) calc(var(--u, 1px) * 24); border-radius: calc(var(--u, 1px) * 13);
  font-size: calc(var(--u, 1px) * 15); font-weight: 600; display: none;
}
/* The download confirmation: the download panel closes the
   moment every picked file has been dispatched, and this
   pill is what says so, in the loading pill's own dress.
   Without it the closed panel read as nothing happening. */
#dl-toast {
  position: absolute; z-index: 500; left: 50%; bottom: calc(var(--u, 1px) * 84); transform: translateX(-50%);
  background: rgba(28,39,51,.92); color: #fff; padding: calc(var(--u, 1px) * 11) calc(var(--u, 1px) * 20); border-radius: 999px;
  font-size: calc(var(--u, 1px) * 14); font-weight: 600; display: none; white-space: nowrap;
}
#export-stage { position: fixed; left: -12000px; top: 0; }
.mapboxgl-ctrl-attrib { font-size: calc(var(--u, 1px) * 10); }

/* ---------------- first run hints ----------------
   The walkthrough overlay lives on the body, above every
   page layer, positioned in viewport coordinates off the
   anchor's own rect, so it tracks the fixed stage as it
   scales. The ring does the dimming (a shadow the size of
   the screen around a clear hole), which keeps the ringed
   control itself fully visible. Page chrome only: exports
   and video renders are canvas composites and never see
   it. The .hint-still variant (prefers-reduced-motion)
   drops every transition. */
#hint-overlay { position: fixed; inset: 0; z-index: 9999; }
#hint-overlay .hint-ring {
  position: fixed; pointer-events: none;
  border: 3px solid #f06423; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(10, 20, 35, .55);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
#hint-overlay .hint-card {
  position: fixed; width: 280px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 20, 35, .28);
  padding: 14px 16px;
  transition: left .25s ease, top .25s ease;
}
#hint-overlay .hint-text { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--ink, #1c2733); }
#hint-overlay .hint-btns { display: flex; gap: 10px; align-items: center; }
#hint-overlay .hint-next {
  background: #f06423; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 16px; font-size: 14px; font-weight: 700;
}
#hint-overlay .hint-skip {
  background: none; border: 0; padding: 8px 4px;
  color: #5b6b7c; font-size: 14px; text-decoration: underline;
}
#hint-overlay.hint-still .hint-ring,
#hint-overlay.hint-still .hint-card { transition: none; }

/* ---------------- homepage (/home) and legal pages ----------------
   Added with the launch homepage. Reuses the palette and card
   language above; new classes are prefixed so nothing existing
   changes behavior. */
.top-actions { display: flex; align-items: center; gap: 16px; }
.signin-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.signin-link:hover { text-decoration: underline; }
.btn-demo {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 700;
  font-size: 14.5px; padding: 11px 18px; border-radius: 12px; text-decoration: none;
}
.btn-demo:hover { background: var(--orange-dark); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.btn-primary {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700;
  font-size: 16px; padding: 14px 26px; border-radius: 12px; text-decoration: none;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  display: inline-block; background: #fff; color: var(--ink); font-weight: 700;
  font-size: 16px; padding: 14px 26px; border-radius: 12px; text-decoration: none;
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { background: #f8fafc; }
.hero-shot { max-width: 880px; margin: 38px auto 0; }
.hero-shot img {
  width: 100%; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-shot figcaption { color: var(--muted); font-size: 13.5px; margin-top: 12px; text-align: center; }
.examples-note { color: var(--muted); text-align: center; font-size: 15px; line-height: 1.6; max-width: 680px; margin: 22px auto 0; }
.video-line { color: var(--muted); text-align: center; font-size: 15.5px; line-height: 1.6; max-width: 680px; margin: 26px auto 0; }
.video-line strong { color: var(--ink); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 14px rgba(28,39,51,.05); }
.price-card h3 { font-size: 16.5px; }
.price-card .amt { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.price-card .amt span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card p, .price-card li { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.price-card ul { list-style: none; margin-top: 12px; }
.price-card li { padding: 5px 0; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; gap: 10px; }
.price-card li b { color: var(--ink); white-space: nowrap; }
.price-card p { margin-top: 10px; }
.pricing-note { color: var(--muted); text-align: center; font-size: 14.5px; line-height: 1.6; max-width: 720px; margin: 24px auto 0; }
.demo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 38px 40px; box-shadow: 0 4px 14px rgba(28,39,51,.05);
  text-align: center; margin-top: 28px;
}
.demo-card h2 { text-align: center; }
.demo-card p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 620px; margin: 12px auto 0; }
.demo-card .hero-ctas { margin-top: 22px; }
footer.bot a { color: #64748b; text-decoration: none; font-weight: 600; }
footer.bot a:hover { text-decoration: underline; }
footer.bot .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal { max-width: 760px; margin: 10px auto 0; }
.legal h1 { font-size: 32px; letter-spacing: -.02em; font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.legal h2 { font-size: 19px; font-weight: 800; margin-top: 30px; }
.legal h3 { font-size: 16.5px; font-weight: 700; margin-top: 22px; }
.legal p, .legal li { color: #334155; font-size: 15.5px; line-height: 1.65; margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--blue); }
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .demo-card { padding: 28px 22px; }
  .top-actions { gap: 10px; }
}
