/* Easier sending (Nov 15, 2026). Switches: EASY_* at the top of the script in index.html.
   Every rule here is scoped under html.easy, html.easy-rows or html.easy-steps, or the viewer itself,
   so turning the switches off gives the old page back. */

/* EASY_ROWS: each group is one sideways row you swipe */
.easy-rows .pgrid:not(.three){display:flex;grid-template-columns:none;overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;gap:10px;padding:2px 2px 10px;margin:0 -2px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.easy-rows .pgrid:not(.three) > .ptile{flex:0 0 44%;min-width:0;scroll-snap-align:start}
@media (min-width:640px){.easy-rows .pgrid:not(.three) > .ptile{flex-basis:31%}}

/* a row may be wider than the screen; the page never is */
.easy fieldset{min-inline-size:0;min-width:0}
.easy .picker,.easy .pgroup{min-width:0;max-width:100%}

/* EASY_PRICES: the price is the tag, no lock */
.easy-prices .ptile.locked .sw::after{content:none}
.easy-prices .ptile.locked :is(.sw-to,.sw-ty,.sw-hl){margin-left:0}
.easy .sw-badge.t-price{letter-spacing:.02em;font-size:10px}

/* EASY_WALL: the wall switch right above Send */
.easy .wall-row{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--surface)}
.easy .wall-row > span{display:flex;flex-direction:column;gap:2px}
.easy .wall-row small{font-weight:400;color:var(--muted);font-size:13px;line-height:1.4}
.easy .wall-row.off strong{opacity:.55}

/* EASY_VIEWER: the big card */
html.vw-open,html.vw-open body{overflow:hidden}
.viewer{position:fixed;inset:0;z-index:50;background:rgba(23,16,29,.62);display:flex;align-items:center;justify-content:center;
  padding:max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}
.viewer[hidden]{display:none}
.vw-box{background:var(--paper);color:var(--ink);border-radius:22px;width:100%;max-width:440px;max-height:100%;overflow:hidden;
  display:flex;flex-direction:column;gap:12px;padding:14px 14px 16px;box-shadow:0 20px 50px -20px rgba(0,0,0,.6)}
.vw-top,.vw-dots,.vw-info,.vw-note,.vw-actions{flex:none}
.vw-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vw-head{display:flex;flex-direction:column;min-width:0}
.vw-head b{font-family:var(--display);font-weight:400;font-size:20px;line-height:1.2}
.vw-head span{font-size:13px;color:var(--muted)}
.vw-x{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:24px;line-height:1;cursor:pointer}
.vw-stage{position:relative;touch-action:pan-y;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.vw-card{flex:1 1 auto;min-height:0;overflow-y:auto;border-radius:16px;overscroll-behavior:contain}
.vw-card .pat{margin:0;max-width:100%}
.vw-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:38px;height:38px;border-radius:50%;border:0;
  background:rgba(255,255,255,.92);color:#2A1838;font-size:24px;line-height:1;font-weight:700;box-shadow:0 2px 10px rgba(0,0,0,.25);cursor:pointer}
.vw-arrow.prev{left:-6px}.vw-arrow.next{right:-6px}
.vw-arrow:disabled{opacity:0;pointer-events:none}
.vw-dots{display:flex;justify-content:center;gap:6px;min-height:8px}
.vw-dots i{width:7px;height:7px;border-radius:50%;background:var(--line)}
.vw-dots i.on{background:var(--accent)}
.vw-info{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vw-info b{font-size:17px}
.vw-price{font-weight:800;font-size:14px;padding:4px 12px;border-radius:999px;background:#2A1838;color:#F6D98E;white-space:nowrap}
.vw-price.free{background:#E6F4EA;color:#1E5631}
.vw-note{margin:0;font-size:13px;color:var(--muted)}
.vw-note:empty{display:none}
.vw-actions{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.vw-actions .linkbtn{align-self:center}
@media (prefers-reduced-motion: no-preference){.vw-box{animation:vw-in .18s ease-out}@keyframes vw-in{from{transform:translateY(12px);opacity:.6}}}

/* EASY_STEPS: three short steps */
.easy-steps #form[data-step="1"] [data-steps]:not([data-steps~="1"]),
.easy-steps #form[data-step="2"] [data-steps]:not([data-steps~="2"]),
.easy-steps #form[data-step="3"] [data-steps]:not([data-steps~="3"]){display:none !important}
.steps-bar{list-style:none;margin:0 0 4px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;counter-reset:st}
.steps-bar li{counter-increment:st}
.steps-bar button{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:flex;flex-direction:column;gap:6px;
  font-size:13px;font-weight:700;color:var(--muted);text-align:left}
.steps-bar button::before{content:"";display:block;height:5px;border-radius:3px;background:var(--line)}
.steps-bar button::after{content:none}
.steps-bar li.done button{color:var(--ink)}
.steps-bar li.done button::before{background:var(--gold)}
.steps-bar li[aria-current] button{color:var(--accent)}
.steps-bar li[aria-current] button::before{background:var(--accent)}
.steps-bar button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.step-nav{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.step-nav .linkbtn{align-self:center}
.step-pick{margin:0;font-size:14px;color:var(--muted);text-align:center}
.step-pick b{color:var(--ink)}

/* ---- Round 2 (Nov 15, 2026) ---- */
/* EASY_KIND: "What are you sending?" as one row of small buttons */
.easy-kind #kind-row .kind.v2{display:flex;flex-wrap:wrap;gap:8px}
.easy-kind #kind-row .kind.v2 button{min-height:40px;padding:8px 14px;border-radius:999px;font-size:15px;flex:0 0 auto;grid-column:auto}
.easy-kind #kind-row .kind.v2 button em{display:none}

/* "More people" / "Show all" chip */
.easy .chips .chip-more{background:transparent;border-style:dashed;color:var(--accent)}

/* EASY_ONE_STD: the one free Standard card, wide, above the designs */
.easy .std-strip{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.easy .std-title{margin:0;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.easy .std-strip .ptile{display:grid;grid-template-columns:42% 1fr;grid-template-rows:auto auto;column-gap:12px;row-gap:2px}
.easy .std-strip .ptile .sw{grid-row:1 / 3;grid-column:1;min-width:0}
.easy .std-strip .ptile .pt-name{grid-column:2;align-self:end}
.easy .std-strip .ptile .pt-sub{grid-column:2;align-self:start}

/* EASY_WORDS: tap-to-use lines under "What are you thanking them for?" */
.word-ideas{display:flex;flex-wrap:wrap;gap:6px;margin-top:-4px}
.word-ideas[hidden]{display:none}
.word-ideas .wi-label{flex-basis:100%;font-size:13px;color:var(--muted);margin-top:2px}
.word-ideas button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:7px 12px;font:500 13px var(--body);cursor:pointer;text-align:left}
.word-ideas .wi-own{flex-basis:100%;border-color:var(--accent);color:var(--accent);font-weight:700;text-align:center}
.easy .pt-sub:empty{display:none}

/* ---- Round 3 (Nov 15, 2026) ---- */
/* EASY_SLIM: on Send PAT and sign-in the header is one short line, so the cards start higher */
.slim-head header{gap:0}
.slim-head header .tag{display:none}
.slim-head header .seal{width:34px;height:34px;font-size:13px}
.slim-head header h1{font-size:clamp(19px,5.2vw,24px);white-space:nowrap}
.slim-head header .brand{gap:9px}

/* Picked "What are you sending?" button looks like the picked person chip */
.easy-kind #kind-row .kind.v2 button[aria-pressed="true"],.easy-kind #kind-row .kind.v2 button[aria-pressed="true"]:hover{
  border-color:transparent;color:#fff;background:linear-gradient(180deg,var(--btn-hi),var(--btn-lo));
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .28),inset 0 0 0 1px var(--btn-ring),0 4px 12px -4px rgb(var(--btn-glow) / .45)}
:root[data-theme="dark"] .easy-kind #kind-row .kind.v2 button[aria-pressed="true"]{color:#1A0E14}

/* Desktop: rows become a grid (no swiping with a mouse) */
@media (min-width:760px) and (hover:hover){
  .easy-rows .pgrid:not(.three){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;padding:2px}
  .easy-rows .pgrid:not(.three) > .ptile{flex:none}
}

/* ---- Round 4 (Nov 15, 2026) ---- */
/* EASY_CALM: no empty gap under the share buttons after sending */
.easy-calm #sent-status:empty{display:none}
.easy-calm #kind-note{font-size:13px}
.easy-calm #signin-later{text-align:center;background:none;border:0;padding:0;font-size:13px}
/* small phones: a tighter viewer so more of the card shows */
@media (max-height:640px){.vw-box{gap:8px;padding:10px 10px 12px}.vw-head b{font-size:18px}}
.easy-calm #status:empty{display:none}
/* EASY_CODE (Nov 16): once the code is emailed, the sign-in screen shows only the code box */
.si-sent{display:none}
#view-signin.code-sent .si-sent{display:block;margin:0 0 14px}
#view-signin.code-sent #signin-form > :not(#si-status){display:none !important}
#view-signin.code-sent .panel > p:not(.si-draft){display:none}
#view-signin.code-sent #si-status:empty{display:none}
#si-again{display:block;margin:12px auto 0}
#view-signin.code-sent .si-code{border-top:0;margin-top:0;padding-top:0}
.easy-kind #kind-row .kind.v2 .kind-more{background:transparent;border-style:dashed;color:var(--accent)}   /* EASY_MORE */

/* THUMB_FIX (Nov 17, 2026): the one free card shows its words, not a cut-off "I love you · Partner" label; Love Letter thumbnail words in a light ink on its dark red */
.thumb-fix .std-strip .ptile.plain .sw-plain{display:none}
.thumb-fix .ptile[data-style="ly_letter"] .sw-to,.thumb-fix .ptile[data-style="ly_letter"] .sw-hl{color:#F6E3D6!important}
