/* SPEC-SS-SHAPE-PARITY-01 (Nov 9, 2026): the on-page draw for the
   generator-variant pages. One shared stylesheet for every variant;
   colors ride the host page's own variables, with fallbacks for the
   pages that carry a reduced variable set. */

/* SPEC-SS-HIERARCHY-01 (Nov 20, 2026): the color + weight rule for
   every button in this module — berry = start a draw; pine =
   send/share/manage; one filled button per decision point;
   secondaries outline/smaller; rare paths text-style; every tap
   target >=44px. (Decided by Billy, Nov 20, 2026.) */
.vdraw{margin-top:26px;text-align:left}
.vd-card{
  background:var(--card,#fff);border:2px solid var(--line,#e5ddc8);border-radius:16px;
  padding:20px 16px 22px;
}
.vd-prefillnote{font-size:15px;line-height:1.5;background:var(--soft,#f3ead3);border:1px solid var(--line,#e5ddc8);border-radius:12px;padding:10px 12px;margin:0 0 14px;color:var(--ink,#20242a)}
.vd-h{font-size:23px;margin:0 0 6px;letter-spacing:-0.01em;color:var(--ink,#20242a)}
.vd-sub{font-size:16px;line-height:1.5;color:var(--muted,#5c6650);margin:0 0 16px}
.vd-label{display:block;font-size:14px;font-weight:800;margin:16px 0 7px;color:var(--ink,#20242a)}
.vd-label:first-child{margin-top:0}
.vd-input,.vd-select{
  width:100%;box-sizing:border-box;font:inherit;font-size:17px;min-height:48px;
  padding:11px 12px;border:2px solid var(--line,#e5ddc8);border-radius:12px;
  background:#fff;color:var(--ink,#20242a);
}
.vd-chips{display:flex;gap:8px;flex-wrap:wrap}
/* Budget chips deal in two tidy rows — three bands, then $100+
   beside Other amount — at any width (Nov 21, 2026). Every chip is
   exactly one row-third wide (container minus the two 8px gaps,
   divided by three) and never grows, so row 2's two chips match
   row 1's width and the third slot stays empty (Billy's flag,
   Nov 21, 2026, later: the $100+ chip rendered wider than row 1).
   Every chip is also exactly the same height (48px, border-box)
   with its label flex-centered: "Other amount" wraps to two lines
   at phone widths, and before this the wrap stretched its whole
   row to 67.5px, so $100+ floated in a pill 19.5px taller than
   $50-$100's and read as sitting higher (Billy's flag, Nov 21,
   2026, later still). The fixed height absorbs the two-line label
   (line-height 1.25 keeps it inside the 44px content box). */
.vd-chips .vd-chip{flex:0 1 calc((100% - 16px)/3);box-sizing:border-box;height:48px;padding:0 10px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.25}
.vd-chip{
  font:inherit;font-size:15px;font-weight:700;min-height:48px;padding:10px 14px;
  border-radius:999px;border:2px solid var(--pine,#166534);background:#fff;
  color:var(--pine-dark,#14532d);cursor:pointer;
}
.vd-chip[aria-pressed="true"]{background:var(--pine,#166534);color:#fff}
.vd-person{display:flex;gap:8px;margin-bottom:8px}
.vd-person .vd-name{flex:1 1 auto;min-width:0}
.vd-person .vd-interest{flex:0 1 42%;min-width:0}
.vd-remove{
  flex:0 0 auto;width:48px;min-height:48px;border-radius:12px;border:2px solid var(--line,#e5ddc8);
  background:var(--soft,#f3efe2);font-size:19px;font-weight:800;color:var(--berry,#c1272d);cursor:pointer;
}
/* SPEC-SS-HIERARCHY-01: adding a person (or opening the paste
   panel) is a repeat secondary action, never a rival to Draw —
   compact outline, content width, 48px. */
.vd-add{
  font:inherit;font-size:15px;font-weight:700;min-height:48px;padding:10px 16px;width:auto;
  border-radius:12px;border:2px dashed var(--pine,#166534);background:#fff;
  color:var(--pine-dark,#14532d);cursor:pointer;margin-top:2px;
}
.vd-err{
  margin:12px 0 0;font-size:15px;line-height:1.45;font-weight:700;
  color:var(--berry,#c1272d);
}
.vd-pairs{margin-top:16px;border-top:2px solid var(--line,#e5ddc8);padding-top:6px}
.vd-pairs summary{
  font-size:15px;font-weight:800;cursor:pointer;min-height:44px;
  display:flex;align-items:center;color:var(--ink,#20242a);
}
.vd-pairs p{font-size:14px;color:var(--muted,#5c6650);line-height:1.45;margin:4px 0 10px}
.vd-pairrow{display:flex;gap:8px}
.vd-pairrow .vd-select{flex:1 1 0;min-width:0}
.vd-pairadd{
  /* SPEC-SS-HIERARCHY-01: a minor add action — outline, not filled. */
  flex:0 0 auto;font:inherit;font-size:15px;font-weight:800;min-height:48px;padding:10px 14px;
  border-radius:12px;border:2px solid var(--pine,#166534);background:#fff;color:var(--pine-dark,#14532d);cursor:pointer;
}
.vd-pairchips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.vd-pairchip{
  font:inherit;font-size:14px;font-weight:700;min-height:44px;padding:8px 12px;border-radius:999px;
  border:2px solid var(--line,#e5ddc8);background:var(--soft,#f3efe2);color:var(--ink,#20242a);cursor:pointer;
}
.vd-draw{
  display:block;width:100%;margin-top:20px;font:inherit;font-size:19px;font-weight:800;
  min-height:56px;padding:16px 20px;border:0;border-radius:14px;cursor:pointer;
  background:var(--berry,#c1272d);color:#fff;box-shadow:0 3px 0 var(--berry-dark,#8f1d21);
}
.vd-draw:active{transform:translateY(2px);box-shadow:0 1px 0 var(--berry-dark,#8f1d21)}
.vd-draw[disabled]{opacity:.55;cursor:wait}
.vd-note{font-size:13px;color:var(--muted,#5c6650);line-height:1.5;margin:12px 0 0;text-align:center}
.vd-draftbar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px 0 0;font-size:13px;color:var(--muted,#5c6650)}
.vd-h[hidden],.vd-sub[hidden],.vd-prefillnote[hidden]{display:none}
.vd-draftbar[hidden]{display:none}
.vd-draftclear{font:inherit;font-size:13px;font-weight:700;min-height:44px;padding:6px 12px;border-radius:10px;border:2px solid var(--line,#e5ddc8);background:#fff;color:var(--ink,#20242a);cursor:pointer}
.vd-pastebtn{margin-top:8px}
.vd-pastepanel{margin-top:10px}
.vd-pastepanel[hidden]{display:none}
.vd-pastearea{resize:vertical;min-height:120px;line-height:1.45}
.vd-pasterow{display:flex;gap:8px;margin-top:8px}
.vd-pasteadd{
  /* SPEC-SS-HIERARCHY-01: the paste panel is a sub-decision — its
     submit is outline, so berry Draw stays the form's only fill. */
  flex:1 1 auto;font:inherit;font-size:16px;font-weight:800;min-height:52px;padding:12px 18px;
  border-radius:12px;border:2px solid var(--pine,#166534);background:#fff;color:var(--pine-dark,#14532d);cursor:pointer;
}
.vd-pastecancel{
  flex:0 0 auto;font:inherit;font-size:15px;font-weight:700;min-height:52px;padding:12px 16px;
  border-radius:12px;border:2px solid var(--line,#e5ddc8);background:#fff;color:var(--ink,#20242a);cursor:pointer;
}
.vd-pastenote{font-size:14px;line-height:1.45;font-weight:700;color:var(--pine-dark,#14532d);margin:10px 0 0}
.vd-pastenote[hidden]{display:none}
.vd-h3{font-size:20px;margin:0 0 6px;color:var(--ink,#20242a)}
.vd-sub2{font-size:15px;line-height:1.5;color:var(--muted,#5c6650);margin:0 0 14px}
.vd-explainer{font-size:15px;line-height:1.5;color:var(--muted,#5c6650);margin:0 0 4px}
.vd-groupnote{font-size:14px;line-height:1.5;color:var(--muted,#5c6650);margin:14px 0 0}
.vd-redraw{
  font-size:14px;line-height:1.5;font-weight:700;margin:0 0 12px;
  background:var(--soft,#f3efe2);border-radius:12px;padding:10px 12px;color:var(--ink,#20242a);
}
.vd-fallback{
  font-size:14px;line-height:1.5;font-weight:700;margin:0 0 12px;
  background:var(--soft,#f3efe2);border-radius:12px;padding:10px 12px;color:var(--ink,#20242a);
}
.vd-link{
  display:flex;align-items:center;gap:10px;border:2px solid var(--line,#e5ddc8);
  border-radius:12px;padding:10px 12px;margin-bottom:8px;background:#fff;
}
.vd-link .vd-who{flex:1 1 auto;min-width:0}
.vd-link .vd-who b{display:block;font-size:16px;color:var(--ink,#20242a)}
.vd-link .vd-url{
  display:block;font-size:13px;color:var(--muted,#5c6650);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.vd-copy{
  flex:0 0 auto;font:inherit;font-size:15px;font-weight:800;min-height:48px;padding:10px 16px;
  border-radius:12px;border:0;background:var(--pine,#166534);color:#fff;cursor:pointer;
}
/* SPEC-SS-HIERARCHY-01: inside a person's kit row, Copy is the
   secondary — outline, mirroring the app.js kit's one-green rule.
   The row's one filled button is the next person's Share
   (.vd-link.vd-next .vd-sharebtn, below); handed-off rows carry
   no fill at all. (The manage strip's Copy keeps the base fill:
   it is that strip's single action.) */
.vd-link .vd-copy{
  border:2px solid var(--pine,#166534);background:#fff;color:var(--pine-dark,#14532d);
}
.vd-msg{
  display:block;width:100%;margin-top:12px;font:inherit;font-size:16px;font-weight:800;
  min-height:52px;padding:13px 18px;border-radius:12px;cursor:pointer;
  border:2px solid var(--pine,#166534);background:#fff;color:var(--pine-dark,#14532d);
}
.vd-manage{margin-top:18px;border-top:2px solid var(--line,#e5ddc8);padding-top:4px}
.vd-manage-url{
  font-size:14px;font-weight:700;color:var(--pine-dark,#14532d);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 10px;
}
.vd-manage-btns{display:flex;gap:8px;flex-wrap:wrap}
.vd-manage-open{
  display:inline-flex;align-items:center;font-size:15px;font-weight:800;min-height:48px;
  padding:10px 16px;border-radius:12px;border:2px solid var(--pine,#166534);
  color:var(--pine-dark,#14532d);text-decoration:none;background:#fff;
}
.vd-again{
  display:block;margin:20px auto 0;font:inherit;font-size:15px;font-weight:700;min-height:48px;
  padding:10px 18px;border-radius:12px;border:2px solid var(--line,#e5ddc8);
  background:var(--soft,#f3efe2);color:var(--ink,#20242a);cursor:pointer;
}

/* Release B share kit (P1-1): per-person actions under each name —
   Copy / Share / WhatsApp / SMS, all >=48px targets. */
.vd-link{flex-direction:column;align-items:stretch}
/* SPEC-SS-KITGRID-01 (Nov 20, 2026): the per-person Share/Copy
   pair is a uniform two-column grid — equal width and height on
   every row, whatever the name length. The old flex row sized
   each button to its label (flex:0 0 auto on Share, content
   width on Copy), so widths wandered with the name and the pair
   wrapped into a stack whenever the two labels together outgrew
   the row (Billy's Nov 20 screenshots). Labels wrap inside the
   button and step down on long names (renderShare tags btn-l2 /
   btn-l3 from the real label length). Scoped to .vd-actions so
   the manage strip's lone Copy and the exit guard's full-width
   buttons keep their own geometry. */
.vd-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.vd-actions>*{min-width:0}
.vd-actions>*:only-child{grid-column:1/-1}
.vd-actions .vd-sharebtn,.vd-actions .vd-copy,.vd-actions .vd-alink{
  display:flex;align-items:center;justify-content:center;text-align:center;
  width:100%;min-height:52px;line-height:1.15;padding:6px 8px;box-sizing:border-box;overflow-wrap:anywhere;
}
.vd-actions .btn-l2{font-size:13.5px}
.vd-actions .btn-l3{font-size:12px}
.vd-actions .btn-l4{font-size:10.5px}
.vd-sharebtn{
  flex:0 0 auto;font:inherit;font-size:15px;font-weight:800;min-height:48px;padding:10px 16px;
  border-radius:12px;border:2px solid var(--pine,#166534);background:#fff;
  color:var(--pine-dark,#14532d);cursor:pointer;
}
.vd-alink{
  display:inline-flex;align-items:center;font-size:15px;font-weight:800;min-height:48px;
  padding:10px 16px;border-radius:12px;border:2px solid var(--line,#e5ddc8);
  background:#fff;color:var(--pine-dark,#14532d);text-decoration:none;box-sizing:border-box;
}
/* Release B: keep the last kit actions clear of the fixed Ask pill
   at max scroll on short variant pages. */
.vd-share{padding-bottom:88px}

/* Guided send sequence (SPEC-SS-SENDSEQ-01, Nov 18, 2026):
   progress line on top of the kit, the next not-yet-handed-off
   person outlined with a filled Share button, handed-off rows
   compact with the device mark in place of the ready line.
   Every action stays >=48px, done rows included (re-share). */
.vd-progress{font-size:16px;font-weight:800;margin:0 0 10px;color:var(--ink,#20242a)}
/* SPEC-SS-SHAREKIT-01 (Nov 20, 2026): the share-the-tool line
   under the progress line, visible only at all-handed-off.
   Text-style, never a button; the link keeps a 44px tap target. */
.vd-sharetool{font-size:15px;margin:0 0 10px;color:var(--ink,#20242a)}
.vd-sharetool a{color:var(--pine,#166534);font-weight:700;display:inline-block;padding:12px 4px;margin:-12px -4px;min-height:44px}
.vd-link.vd-next{border-color:var(--pine,#166534);box-shadow:0 0 0 2px var(--pine,#166534)}
.vd-link.vd-next .vd-sharebtn{background:var(--pine,#166534);color:#fff}
.vd-link.vd-done{background:var(--soft,#f3efe2);padding-top:6px;padding-bottom:6px}
.vd-link.vd-done .vd-url{color:var(--pine-dark,#14532d);font-weight:700}
.vd-yours{display:inline-block;background:var(--soft,#f3efe2);border:1px solid var(--line,#e3ddc8);border-radius:999px;font-size:13px;font-weight:700;padding:2px 9px;margin-left:8px;vertical-align:1px}

/* Exit guard (SPEC-SS-EXITGUARD-01, Nov 18, 2026): one bottom
   sheet over the results screen — the line, the first unshared
   person's Share/Copy button, a dismiss. Shown at most once
   per draw per device, only at zero handed off. */
.vd-guard{position:fixed;inset:0;background:rgba(20,24,20,.55);display:flex;align-items:flex-end;justify-content:center;z-index:80}
.vd-guard-card{background:var(--card,#fff);color:var(--ink,#20242a);border-radius:16px 16px 0 0;padding:20px 18px calc(18px + env(safe-area-inset-bottom));width:100%;max-width:520px;box-shadow:0 -8px 30px rgba(0,0,0,.25);box-sizing:border-box}
.vd-guard-line{font-size:19px;font-weight:800;line-height:1.35;margin:0 0 14px;color:var(--ink,#20242a)}
.vd-guard-share{width:100%;min-height:48px;font-size:17px;margin:0 0 10px;box-sizing:border-box}
.vd-guard-later{width:100%;min-height:48px;background:#fff;border:2px solid var(--line,#e5ddc8);border-radius:12px;font-size:16px;font-weight:700;color:var(--ink,#20242a);box-sizing:border-box}
@media(min-width:640px){.vd-guard{align-items:center;padding:20px}.vd-guard-card{border-radius:16px}}

/* SPEC-SS-SLIPS-01 (Nov 20, 2026): printable fold-over slips.
   The results-screen entry card (variant kit; the app.js kit
   reuses its own sharecard classes), the preview overlay, the
   sheet, and the print rules. Button weights follow
   SPEC-SS-HIERARCHY-01: the entry is a secondary (outline);
   inside the preview, Print is the one filled action of that
   decision point. The print design is borders and type only —
   nothing here depends on a printed background fill. */
.vd-slips{margin-top:18px;border-top:2px solid var(--line,#e5ddc8);padding-top:14px}
.vd-slips-title{font-size:16px;font-weight:800;margin:0 0 4px;color:var(--ink,#20242a)}
.vd-slips-line{font-size:15px;line-height:1.45;margin:0 0 10px;color:var(--muted,#5c6650)}
.vd-slips-btn{
  display:inline-block;font:inherit;font-size:15px;font-weight:700;min-height:48px;
  padding:10px 18px;border-radius:12px;border:2px solid var(--line,#e5ddc8);
  background:#fff;color:var(--ink,#20242a);cursor:pointer;
}
@media screen{
  body.ss-slips-open{overflow:hidden}
  .slips-root{
    position:fixed;inset:0;z-index:2000;overflow:auto;
    background:rgba(32,36,42,.55);padding:18px 10px 40px;box-sizing:border-box;
  }
  .slips-panel{max-width:8.2in;margin:0 auto}
  .slips-screenonly{
    background:var(--card,#fff);color:var(--ink,#20242a);border-radius:14px;
    padding:14px 16px;margin-bottom:14px;font-size:15px;line-height:1.5;
  }
  .slips-sheet{background:#fff;border-radius:6px;padding:.35in .3in;box-shadow:0 8px 30px rgba(0,0,0,.3)}
}
.slips-instructions{margin:0 0 8px}
.slips-warning{margin:0 0 8px;font-weight:700;color:var(--berry,#c1272d)}
.slips-dupnote{margin:0 0 8px;font-weight:700}
.slips-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.slips-printbtn{
  font:inherit;font-size:16px;font-weight:800;min-height:48px;padding:10px 22px;
  border-radius:12px;border:2px solid var(--pine,#166534);
  background:var(--pine,#166534);color:#fff;cursor:pointer;
}
.slips-backbtn{
  font:inherit;font-size:16px;font-weight:700;min-height:48px;padding:10px 18px;
  border-radius:12px;border:2px solid var(--line,#e5ddc8);
  background:#fff;color:var(--ink,#20242a);cursor:pointer;
}
.slips-phead{margin:0 0 .08in}
.slips-phead-line{font-size:9pt;margin:0}
.slips-phead-warn{font-size:9pt;font-weight:700;margin:2px 0 0}
.slips-page{break-inside:avoid;page-break-inside:avoid}
.slips-pfoot{font-size:8pt;text-align:center;margin:.06in 0 0;color:#000}
.slip{
  height:2.3in;box-sizing:border-box;border-top:2px dashed #000;
  display:flex;flex-direction:column;break-inside:avoid;page-break-inside:avoid;
}
.slip:last-of-type{border-bottom:2px dashed #000}
.slip-out{
  height:1.09in;box-sizing:border-box;display:flex;flex-direction:column;
  justify-content:center;text-align:center;padding:.04in .2in;color:#000;
}
.slip-fold{height:.12in;box-sizing:border-box;border-top:2px dotted #000;position:relative}
.slip-fold-label{
  position:absolute;top:-.085in;left:50%;transform:translateX(-50%);
  background:#fff;padding:0 6px;font-size:8pt;color:#000;white-space:nowrap;
}
.slip-in{height:1.09in;box-sizing:border-box}
.slip-in-rot{
  transform:rotate(180deg);height:100%;box-sizing:border-box;
  display:flex;flex-direction:column;justify-content:center;
  text-align:center;padding:.04in .2in;color:#000;
}
.slip-kicker{font-size:9pt;letter-spacing:.08em;text-transform:uppercase;margin:0}
.slip-name{font-weight:800;line-height:1.1;margin:2px 0}
.slip-budget{font-size:10.5pt;margin:0}
.slip-outnote{font-size:9pt;margin:2px 0 0}
.slip-lead{font-size:10pt;margin:0}
.slip-match{font-weight:800;line-height:1.1;margin:2px 0}
.slip-gift{font-size:10pt;margin:0}
.slip-url{overflow-wrap:anywhere}
.slip-keep{font-size:8.5pt;margin:2px 0 0}
.slip .fit1{font-size:30pt}
.slip .fit2{font-size:26pt}
.slip .fit3{font-size:22pt}
.slip .fit4{font-size:18pt}
@media print{
  @page{size:auto;margin:.5in}
  body.ss-slips-open>*:not(#ss-slips-root){display:none!important}
  .slips-root{position:static;overflow:visible;background:#fff;padding:0}
  .slips-panel{max-width:none;margin:0}
  .slips-screenonly{display:none!important}
  .slips-sheet{background:#fff;padding:0;box-shadow:none;border-radius:0}
  .slip,.slip-out,.slip-in,.slip-in-rot,.slip-kicker,.slip-name,
  .slip-budget,.slip-outnote,.slip-lead,.slip-match,.slip-gift,
  .slip-keep,.slips-phead-line,.slips-phead-warn{color:#000!important}
  .slips-phead-line,.slips-phead-warn{line-height:1.3}
  .slips-phead{line-height:1.3}
}

/* Phone landscape (Nov 21, 2026, friend-visit fix): name rows and
   kit link cards use the extra width in two columns wherever the
   form itself is wide enough — auto-fit keeps a narrow setting (a
   landscape hero split) at one column instead of crushing rows.
   Portrait untouched: every rule lives inside this one query. */
@media (orientation:landscape) and (max-height:500px) and (max-width:1023px){
  .vd-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:8px 10px}
  .vd-people .vd-person{margin-bottom:0}
  .vd-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:10px}
  .vd-links .vd-link{margin-bottom:0}
}
