:root {
  --navy: #1b2640; --navy-2: #26355a; --gold: #b0852f; --gold-2: #d8b467; --ivory: #faf6ee; --paper: #fffdf8;
  --ink: #1f2330; --muted: #5d6273; --line: #e7dfcd; --ok: #1f7a4d; --wa: #1fa855;
  --serif: 'Cormorant Garamond', 'Frank Ruhl Libre', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Hebrew', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.5; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
.he { font-family: 'Frank Ruhl Libre', serif; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250,246,238,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--navy); letter-spacing: .01em; }
.logo-mark { width: 30px; height: 30px; }
.logo b { color: var(--gold); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a.plain { text-decoration: none; color: var(--muted); }
.nav a.plain:hover { color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 16px/1 var(--sans); padding: 14px 22px; border-radius: 999px; background: var(--navy); color: #fff; min-height: 48px; transition: transform .15s, background .15s; }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(180deg, #c99a3c, #a87b28); color: #fff; box-shadow: 0 6px 18px -6px rgba(168,123,40,.6); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.wa { background: var(--wa); }
.btn.sm { padding: 10px 16px; min-height: 40px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 30%, rgba(216,180,103,.22), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(27,38,64,.07), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 66px); letter-spacing: -.01em; }
h1 em { color: var(--gold); font-style: italic; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 18px 0 26px; }
.he-tag { font-family: 'Frank Ruhl Libre', serif; font-size: 20px; color: var(--navy); margin: 0 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.trust span::before { content: '✓'; color: var(--gold); font-weight: 700; margin-right: 6px; }
.hero-cards { position: relative; height: 560px; }
.hero-cards .fc-wrap { position: absolute; width: 310px; }
.hero-cards .c1 { right: -10px; top: 0; transform: rotate(4deg); z-index: 2; }
.hero-cards .c2 { left: -30px; top: 60px; transform: rotate(-7deg); }

/* sections */
section { padding: 72px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 46px); }
.sec-head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.type:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(27,38,64,.45); border-color: var(--gold-2); }
.type .t-he { font-family: 'Frank Ruhl Libre', serif; font-size: 30px; color: var(--gold); font-weight: 700; line-height: 1.1; }
.type .t-en { font-family: var(--serif); font-size: 26px; color: var(--navy); font-weight: 600; margin-top: 6px; }
.type .t-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.band { background: var(--navy); color: #e9e4d6; }
.band h2 { color: #fff; }
.band .sec-head p { color: #c9c4b4; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(216,180,103,.25); border-radius: 18px; padding: 26px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold-2); color: var(--gold-2); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.step h3 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.step p { margin: 0; color: #cfcab9; }
.guests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.g-item .ic { width: 44px; height: 44px; border-radius: 12px; background: #f3ead6; display: grid; place-items: center; margin-bottom: 12px; color: var(--gold); }
.g-item .ic svg { width: 24px; height: 24px; }
.g-item h3 { font-size: 22px; margin-bottom: 4px; }
.g-item p { margin: 0; color: var(--muted); font-size: 15px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.final-cta { text-align: center; padding: 70px 0 80px; }
.final-cta h2 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 12px; }
.final-cta p { color: var(--muted); margin: 0 0 24px; font-size: 18px; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* maker */
.maker { padding: 28px 0 120px; }
.maker-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.maker h1 { font-size: clamp(34px, 4.5vw, 46px); }
.maker .sub { color: var(--muted); margin: 8px 0 22px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.panel h2 { font-size: 24px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 14px/28px var(--sans); text-align: center; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font: 600 15px var(--sans); color: var(--navy); cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; min-height: 44px; }
.chip .he { color: var(--gold); font-weight: 700; }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip[aria-pressed="true"] .he { color: var(--gold-2); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatch { border: 2px solid transparent; background: none; padding: 3px; border-radius: 12px; cursor: pointer; text-align: center; font: 600 12px var(--sans); color: var(--muted); }
.swatch .fc-wrap { pointer-events: none; }
.swatch[aria-pressed="true"] { border-color: var(--gold); color: var(--navy); }
.swatch span { display: block; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: 16px var(--sans); padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,180,103,.3); }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.linkbtn { border: 0; background: none; color: var(--gold); font: 700 13px var(--sans); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.seg { display: inline-flex; background: #f1ebdc; border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--sans); color: var(--navy); cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.preview-col { position: sticky; top: 76px; max-height: calc(100vh - 86px); overflow-y: auto; padding: 4px 6px 10px; }
.preview-col .fc-wrap { max-width: 330px; margin: 0 auto; }
.preview-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.share-box { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.share-box[hidden] { display: none; }
.share-box h3 { font-size: 24px; margin-bottom: 4px; }
.share-box p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.linkout { display: flex; gap: 8px; margin-bottom: 12px; }
.linkout input { flex: 1; min-width: 0; font: 13px ui-monospace, Menlo, monospace; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbf8f1; color: var(--muted); }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btns .btn { width: 100%; }
.mobile-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* viewer */
.viewer { background: radial-gradient(80% 50% at 50% 0%, #fff8e8, var(--ivory) 70%); min-height: 100vh; }
.v-top { display: flex; justify-content: center; padding: 16px 0 6px; }
.v-top .logo { font-size: 20px; }
.v-top .logo-mark { width: 24px; height: 24px; }
.v-main { width: min(460px, 100% - 28px); margin: 0 auto; padding-bottom: 40px; }
.env-stage { position: relative; margin-top: 8px; }
.envelope { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; background: none; padding: 0; width: 100%; transition: opacity .6s ease .35s, visibility 0s linear 1s; }
.envelope .env { width: 100%; aspect-ratio: 5/7; border-radius: 10px; position: relative; background: linear-gradient(160deg, #24345a, #172340); box-shadow: 0 20px 40px -14px rgba(0,0,0,.45); overflow: hidden; }
.envelope .flap { position: absolute; left: 0; right: 0; top: 0; height: 52%; background: linear-gradient(180deg, #2c3e69, #1f2d4f); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s ease; border-bottom: 0; }
.envelope .seal { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e5c37a, #b0852f 70%); display: grid; place-items: center; color: #fff8e6; font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 18px; box-shadow: 0 6px 14px rgba(0,0,0,.35); line-height: 1.05; text-align: center; transition: opacity .3s; }
.envelope .tap { position: absolute; bottom: 9%; left: 0; right: 0; text-align: center; color: #e9dcbb; font: 600 15px var(--sans); letter-spacing: .06em; }
.envelope .to { position: absolute; top: 68%; left: 0; right: 0; text-align: center; color: #f3e6c4; font-family: var(--serif); font-size: 24px; }
.env-stage.open .envelope .flap { transform: rotateX(180deg); }
.env-stage.open .envelope .seal { opacity: 0; }
.env-stage.open .envelope { opacity: 0; visibility: hidden; pointer-events: none; }
.env-stage .fc-wrap { transition: transform .8s cubic-bezier(.2,.8,.2,1) .2s, opacity .5s .2s; }
.env-stage:not(.open) .fc-wrap { transform: translateY(14px) scale(.97); opacity: 0; }
.actions { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.act { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.act h2 { font-size: 24px; margin-bottom: 4px; }
.act p.small { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row.three { grid-template-columns: 1fr 1fr 1fr; }
.btn-row .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
.rsvp-q { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.rsvp-q button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; font: 600 15px var(--sans); color: var(--navy); cursor: pointer; min-height: 48px; }
.rsvp-q button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.count { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; font-weight: 600; color: var(--navy); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 22px; color: var(--navy); cursor: pointer; }
.stepper output { min-width: 36px; text-align: center; font-weight: 700; }
.v-error { text-align: center; padding: 60px 10px; }
.v-error h1 { font-size: 34px; margin-bottom: 10px; }
.v-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.v-foot a { color: var(--gold); font-weight: 700; }

@media (max-width: 1080px) {
  .types { grid-template-columns: repeat(2, 1fr); }
  .guests { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 10px; }
  .hero-cards { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-cards .fc-wrap { width: 270px; }
  .hero-cards .c1 { right: 0; }
  .maker-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; max-height: none; overflow: visible; }
  .preview-col .fc-wrap { max-width: 420px; margin: 0 auto; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,253,248,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav a.plain { display: none; }
  .hero { padding: 34px 0 10px; }
  .lede { font-size: 17px; }
  .hero-cards { height: 410px; }
  .hero-cards .fc-wrap { width: 230px; }
  .hero-cards .c2 { top: 50px; }
  section { padding: 52px 0; }
  .types { grid-template-columns: 1fr 1fr; gap: 10px; }
  .type { padding: 18px 16px; border-radius: 16px; }
  .type .t-he { font-size: 24px; }
  .type .t-en { font-size: 21px; }
  .type .t-sub { font-size: 13px; }
  .steps { grid-template-columns: 1fr; }
  .guests { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-item { padding: 16px; }
  .g-item h3 { font-size: 19px; }
  .g-item p { font-size: 14px; }
  .fields { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 18px 16px; }
  .btn-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .btn-row.three .btn { font-size: 14px; padding: 10px 6px; }
}

[hidden] { display: none !important; }

.sw-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.more-designs { margin-top: 12px; }
.more-designs summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 8px 0; }
.more-designs .swatches { margin-top: 8px; }
.seg { flex-wrap: wrap; }
#fontSeg { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; width: 100%; max-width: 420px; box-sizing: border-box; }
#fontSeg button { white-space: nowrap; }
.seg .font-script { font-family: 'Great Vibes', 'Frank Ruhl Libre', cursive; font-size: 19px; font-weight: 400; }
.seg .font-script .he { font-family: 'Frank Ruhl Libre', serif; font-size: 15px; font-weight: 700; }
.seg .font-serif { font-family: 'Bellefair', serif; font-size: 16px; font-weight: 400; letter-spacing: .04em; }
.seg .font-bold { font-family: 'Suez One', serif; font-weight: 400; }
.seg .font-modern { font-family: 'Heebo', sans-serif; font-weight: 700; }
.seg [class^=font-] .he { margin-inline-start: 6px; font-family: inherit; }
.seg .font-script .he { font-family: 'Frank Ruhl Libre', serif; }
.tok-chips { display: inline; }
.tok { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 7px; margin: 3px 2px 0 0; font: 600 12px var(--sans); color: var(--navy); cursor: pointer; }
.tok:hover { border-color: var(--gold); }
.field textarea#f-x { min-height: 260px; line-height: 1.5; font-size: 16px; }
.panel h2 .opt { font: 600 13px var(--sans); color: var(--muted); }
.prev-actions { margin-top: 16px; display: flex; justify-content: center; }
.dl-row { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.btn:disabled { opacity: .6; cursor: progress; }
.personal { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.personal summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 6px 0; }
.personal p { margin: 6px 0 10px; }
.personal textarea { width: 100%; font: 15px var(--sans); padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.personal-out { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.personal-out li { display: flex; align-items: center; gap: 8px; }
.personal-out li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.countdown { text-align: center; margin-top: 16px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.envelope .to { display: flex; flex-direction: column; gap: 2px; padding: 0 12%; }
.envelope .to .for { font-family: 'Frank Ruhl Libre', serif; font-size: 16px; color: #d8b467; }
.envelope .to .for:empty { display: none; }

.addr-line { display: block; unicode-bidi: plaintext; }

/* ---------- saved cards, RSVP, wall, host page ---------- */
[hidden] { display: none !important; }
.check { display: flex; gap: 12px; align-items: flex-start; grid-column: 1 / -1; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; margin: 2px 0 0; }
.check small { color: var(--muted); font-size: 13px; }
.opt { font: 500 12px var(--sans); color: var(--muted); letter-spacing: 0; text-transform: none; }
.edit-banner { background: #fff7e3; border: 1px solid #ecd9a8; color: var(--navy); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.edit-banner a { color: var(--gold); font-weight: 700; white-space: nowrap; }
.save-state { font-size: 13px !important; margin: -4px 0 10px !important; color: var(--muted); min-height: 1em; }
.save-state.ok { color: var(--ok) !important; }
.save-state.err { color: #b3261e !important; }
.host-box { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fff; border: 1.5px dashed var(--gold-2); }
.host-box h4 { margin: 0 0 4px; font: 700 15px var(--sans); color: var(--navy); }
.host-box p { margin: 0 0 10px; font-size: 13.5px; }
.host-box .btn-row .btn { width: 100%; }
.btn.wide { width: 100%; margin-top: 6px; }
details.split { margin: 0 0 12px; }
details.split summary { cursor: pointer; font-size: 14px; color: var(--navy); font-weight: 600; padding: 4px 0; }
details.split.gone { display: none; }
.split-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.split-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--navy); }
.split-row input { width: 100%; font: 16px var(--sans); padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; min-height: 44px; text-align: center; }
#rsvpBox .field, #wallBox .field { margin-bottom: 10px; }
#waRow.extra { margin-top: 10px; }
#waRow.extra .btn { min-height: 40px; font-size: 14px; padding: 9px 10px; }
#waRow.extra .btn.wa { background: transparent; color: var(--wa); box-shadow: inset 0 0 0 1.5px var(--wa); }
#waRow.extra .btn:not(.wa) { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.rsvp-done { text-align: center; padding: 8px 0 4px; }
.rsvp-done .tick { width: 46px; height: 46px; border-radius: 50%; background: var(--ok); color: #fff; font: 700 24px/46px var(--sans); margin: 0 auto 8px; }
.rsvp-done p { margin: 0 0 8px; color: var(--ink); }
.rsvp-done .linkbtn { align-self: center; }
.wall { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wall li { background: #fbf7ee; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.wall .w-msg { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.wall .w-by { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.wall .w-by b { color: var(--navy); }
.wall .w-by .linkbtn { margin-left: auto; }
.wall li.is-hidden { opacity: .55; }
.wall-empty { margin: 12px 0 0 !important; text-align: center; }
.host-bar { background: var(--navy); color: #fff; text-align: center; font-size: 14px; padding: 9px 12px; }
.host-bar a { color: var(--gold-2); font-weight: 700; }
.linkbtn.red { color: #b3261e; }
/* host page */
.h-main { width: min(720px, 100% - 28px); margin: 0 auto; padding: 8px 0 60px; }
.h-main section { padding: 0; }
.h-main .h-card { padding: 16px; }
.eyebrow-s { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 10px 0 4px; }
.h-main h1 { font-size: 32px; overflow-wrap: anywhere; }
.h-sub { color: var(--muted); margin: 6px 0 14px; font-size: 14.5px; }
.h-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.h-card h2 { font-size: 24px; }
.h-card .small { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.h-card textarea { width: 100%; font: 16px var(--sans); padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; resize: vertical; }
.h-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.h-btns .btn { flex: 1 1 auto; }
.h-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.h-tools { display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font: 700 28px/1.15 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat.big { background: var(--navy); border-color: var(--navy); }
.stat.big b { color: var(--gold-2); font-size: 36px; }
.stat.big span { color: #dfe3ee; }
.split-tot { text-align: center; color: var(--navy); font-size: 14px; margin: 4px 0 14px; font-weight: 600; }
.glist { list-style: none; margin: 0; padding: 0; }
.glist li { border-top: 1px solid var(--line); padding: 11px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.glist li:first-child { border-top: 0; }
.glist .g-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; grid-column: 1; }
.glist .g-name { color: var(--navy); font-size: 16px; }
.glist .g-chip { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e3f2e9; color: var(--ok); }
.glist li.no .g-chip { background: #f6e4e2; color: #9a2d24; }
.glist .g-meta { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.glist .g-note { grid-column: 1; font-size: 14px; color: var(--ink); font-style: italic; }
.glist .linkbtn { grid-column: 2; grid-row: 1; align-self: center; }
.empty { color: var(--muted); font-size: 14px; text-align: center; margin: 10px 0; }
details.removed { margin-top: 10px; }
details.removed summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.plist { list-style: none; margin: 10px 0 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 9px 0; }
.plist .p-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plist .p-info b { color: var(--navy); overflow-wrap: anywhere; }
.p-st { font-size: 12.5px; color: var(--muted); }
.p-st.yes { color: var(--ok); font-weight: 700; } .p-st.no { color: #9a2d24; font-weight: 700; } .p-st.seen { color: var(--gold); font-weight: 700; }
.p-sum { font-weight: 600; color: var(--navy) !important; }
.mine { margin-top: 20px; } .mine h2 { font-size: 22px; margin-bottom: 8px; } .mine ul { padding-left: 18px; } .mine a { color: var(--navy); }
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat.big { grid-column: 1 / -1; }
  .h-main h1 { font-size: 28px; }
}

/* site language picker */
.langpick { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; gap: 2px; flex: none; }
.langpick button { border: 0; background: none; font: 600 12.5px var(--sans); padding: 5px 9px; border-radius: 999px; color: var(--muted); min-height: 30px; cursor: pointer; }
.langpick button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.v-top.has-lang { justify-content: space-between; align-items: center; width: min(460px, 100% - 28px); margin: 0 auto; }
.hostpage .v-top.has-lang { width: min(720px, 100% - 28px); }
html[dir="rtl"] .fc-wrap { direction: ltr; }
html[dir="rtl"] .linkout input { direction: ltr; text-align: left; }
html[dir="rtl"] .wall .w-by .linkbtn { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .eyebrow-s, html[dir="rtl"] .eyebrow { letter-spacing: 0; }
@media (max-width: 440px) { .top .nav .btn { display: none; } .langpick button { padding: 5px 7px; } }
html[dir="rtl"] h1 em { font-style: normal; }

/* download-only maker: the two files are the goal */
.dl-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin: 16px auto 0; }
.btn.dl-big { width: 100%; min-height: 56px; font-size: 16px; font-weight: 700; padding: 12px 8px; gap: 6px; border-radius: 14px; white-space: nowrap; }
.btn.dl-big svg { width: 22px; height: 22px; }
.dl-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
@media (max-width: 520px) { .dl-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .mobile-bar .btn { padding-left: 8px; padding-right: 8px; }
  .mobile-bar .btn.see { flex: .8; }
}

/* ===== More options panel, print options, Hebrew keyboard (2026-10-26) ===== */
.more-opts > summary { list-style: none; cursor: pointer; }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary h2 { margin-bottom: 0; }
.more-opts > summary h2::after { content: '+'; margin-left: auto; color: var(--gold); font: 400 26px/1 var(--sans); }
.more-opts[open] > summary h2::after { content: '–'; }
.more-opts[open] > summary h2 { margin-bottom: 14px; }
.panel h2 .opt { font: 500 13px var(--sans); color: #8a8070; }
.mo-grid { display: grid; gap: 14px; }
.mo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mo-row.col { flex-direction: column; align-items: stretch; }
.mo-l { font-weight: 700; color: var(--navy); font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: none; font: 700 16px var(--sans); color: var(--navy); min-width: 48px; min-height: 44px; cursor: pointer; }
.stepper button:hover { background: #f3ead6; }
.stepper output { min-width: 56px; text-align: center; font: 600 15px var(--sans); color: var(--navy); }
.colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cdot { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px #fff; }
.cdot.cdef { width: auto; padding: 0 12px; border-radius: 999px; background: #fff; font: 600 13px var(--sans); color: var(--navy); box-shadow: none; }
.cdot[aria-pressed="true"] { outline: 3px solid var(--navy); outline-offset: 2px; }
.cpick { width: 40px; height: 36px; border: 1.5px dashed var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 2px; }
.cpick.on { outline: 3px solid var(--navy); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy); font-size: 15px; cursor: pointer; flex-wrap: wrap; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.check .hint { flex-basis: 100%; margin: -4px 0 0 30px; font-weight: 400; }
.draft-note { font-size: 14px; color: #6f6656; margin: -4px 0 14px; }
.print-opts { margin: 10px auto 0; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.print-opts summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 0; }
.po-in { display: grid; gap: 10px; padding: 0 0 12px; }
.po-in label[for] { font-weight: 700; color: var(--navy); font-size: 14px; }
.po-in select { font: 500 15px var(--sans); padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; min-height: 44px; }
#card.fc-bw { filter: grayscale(1); }
/* On-screen keyboard, English + Hebrew (v20261029e) */
.field { position: relative; }
.kb-x { border: 0; background: none; color: #fff; font-size: 20px; cursor: pointer; padding: 4px 10px; min-height: 36px; }
.vkb-wrap { position: relative; display: block; width: 100%; }
.vkb-wrap > input.vkb-f { padding-right: 46px; }
.ui-rtl .vkb-wrap > input.vkb-f { padding-right: 13px; padding-left: 46px; }
.vkb-wrap > textarea.vkb-f { padding-right: 46px; }
.ui-rtl .vkb-wrap > textarea.vkb-f { padding-right: 12px; padding-left: 46px; }
.vkb-ico { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #8b8170; cursor: pointer; padding: 0; z-index: 1; }
.ui-rtl .vkb-ico { right: auto; left: 6px; }
.vkb-ta > .vkb-ico { top: 6px; transform: none; }
.vkb-ico:hover { background: #f3ead6; color: var(--navy); }
.vkb-ico.on { background: #efe4cb; color: var(--navy); box-shadow: inset 0 0 0 1px #d9c9a3; }
.vkb { margin: 8px 0 2px; background: #f4efe4; border: 1px solid #e3d9c4; border-radius: 16px; padding: 6px 6px 8px; box-shadow: 0 10px 26px -14px rgba(27,38,64,.35); color: var(--navy); user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; max-width: 640px; box-sizing: border-box; width: 100%; }
.vkb[hidden] { display: none; }
.vkb.vkb-pop { position: relative; z-index: 3; max-width: none; }
.vkb.vkb-float { position: fixed; z-index: 950; margin: 0; max-width: calc(100vw - 8px); box-shadow: 0 18px 40px -12px rgba(27,38,64,.45); }
.vkb-top { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; min-height: 30px; }
.vkb-grip { border: 0; background: none; color: #9a8f7a; font: 700 16px/1 var(--sans); letter-spacing: -3px; padding: 6px 12px 6px 6px; cursor: grab; touch-action: none; border-radius: 8px; min-height: 30px; }
.vkb-grip:active { cursor: grabbing; background: #e9e0cc; }
.vkb-lab { flex: 1; min-width: 0; text-align: center; font: 600 12.5px var(--sans); color: #7b725f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vkb-x { border: 0; background: none; color: #6f6656; font: 400 26px/1 var(--sans); cursor: pointer; padding: 0 8px 2px; min-width: 36px; min-height: 32px; border-radius: 8px; }
.vkb-x:hover, .vkb-grip:hover { background: #e9e0cc; }
.vkb-words { display: flex; gap: 5px; overflow-x: auto; padding: 1px 1px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vkb-words::-webkit-scrollbar { display: none; }
.vkb-words[hidden] { display: none; }
.vkb-r { display: flex; gap: 5px; justify-content: center; margin: 0 0 6px; }
.vkb-r:last-child { margin-bottom: 0; }
.vkb-k { flex: 1 1 0; min-width: 0; max-width: 58px; height: 44px; border: 0; border-radius: 9px; background: #fffdf8; color: #1b2640; box-shadow: 0 1px 0 #d6cbb4, 0 1px 2px rgba(27,38,64,.08); font: 500 20px/1 var(--sans); cursor: pointer; padding: 0; display: grid; place-items: center; }
.vkb-he .vkb-k { font-family: 'Frank Ruhl Libre', 'Heebo', var(--sans); font-weight: 600; }
.vkb-he .vkb-p .vkb-k, .vkb-he .vkb-last .vkb-k, .vkb-num .vkb-k { font-family: var(--sans); font-weight: 500; }
.vkb-k:active, .vkb-k.down { background: #e8d6a8; }
.vkb-p .vkb-k { height: 36px; font-size: 18px; background: #fbf7ee; }
.vkb-k.vkb-w { flex: 0 0 auto; max-width: none; height: 32px; padding: 0 11px; font-size: 15px; background: #ebe2cf; box-shadow: none; white-space: nowrap; }
.vkb-k.vkb-fn { flex: 1.5 1 0; max-width: 84px; background: #e6dcc6; font: 600 15px var(--sans); color: #3a3426; }
.vkb-k.vkb-shift.on { background: #1b2640; color: #fff; }
.vkb-k.vkb-shift.lock { box-shadow: inset 0 -3px 0 #d8b467; }
.vkb-k.vkb-space { flex: 5 1 0; max-width: none; font: 500 15px var(--sans); color: #6f6656; }
.vkb-gap { flex: 1.5 1 0; max-width: 84px; }
body.vkb-open .mobile-bar { display: none; }
.pe-sheet .vkb { margin: 6px 0 8px; max-width: none; }
.pe-sheet.vkb-in { max-height: min(78vh, 640px); }
@media (max-width: 520px) {
  .vkb { padding: 5px 4px 6px; border-radius: 14px; }
  .vkb-r { gap: 4px; margin-bottom: 5px; }
  .vkb-k { height: 42px; font-size: 19px; border-radius: 7px; }
  .vkb-p .vkb-k { height: 34px; font-size: 17px; }
  .vkb-k.vkb-fn { font-size: 14px; }
}
@media (min-width: 900px) { .vkb.vkb-pop { position: relative; z-index: 3; max-width: none; }
.vkb.vkb-float { width: 560px; } }

.mo-grid, .mo-row, .mo-row > * { min-width: 0; }
.more-opts input[type=file] { width: 100%; max-width: 100%; box-sizing: border-box; font-size: 14px; }

/* "New" tag on the newer designs */
.swatch { position: relative; }
.swatch .nb { position: absolute; top: 6px; left: 6px; z-index: 1; font: 700 10px/1 var(--sans); font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  background: #1c2b4a; color: #f3dfa6; padding: 3px 6px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.2); pointer-events: none; }

/* lettering picker: each font shown in its own letters */
.fontgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; min-width: 0; }
.ftile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 108px; min-width: 0; overflow: hidden; padding: 19px 6px 9px; border: 1.5px solid var(--line, #e6dcc6); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; font-size: 26px; line-height: 1.15; transition: border-color .15s, box-shadow .15s, transform .1s; }
.ftile:hover { border-color: #c9a85c; }
.ftile:active { transform: scale(.98); }
.ftile:focus-visible { outline: 3px solid #c9a85c; outline-offset: 2px; }
.ftile[aria-pressed="true"] { border-color: #b08a3c; box-shadow: 0 0 0 2px #b08a3c inset, 0 4px 14px -6px rgba(120,90,20,.45); background: #fffaf0; }
.ftile[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 5px; left: 7px; font: 700 13px/1 var(--sans); color: #fff; background: #b08a3c; border-radius: 50%; width: 19px; height: 19px; display: grid; place-items: center; }
.ftile .ft-he { white-space: nowrap; }
.ftile .ft-en { white-space: nowrap; font-size: 17px; color: #5a4a2a; }
.ftile .ft-name { font: 600 12.5px/1.2 var(--sans); color: var(--muted, #6b6457); margin-top: 4px; letter-spacing: .02em; }
.ftile .nb { position: absolute; top: 4px; right: 5px; font: 700 9px/1 var(--sans); font-style: normal; letter-spacing: .04em; color: #8a6419; background: #f6ecd2; border-radius: 6px; padding: 3px 5px; }
.ftile .ft-en .ft-he { font-size: inherit; }
.nf-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.nf-row label { font-weight: 700; font-size: 14px; color: var(--navy); }
.nf-row select { font: 15px var(--sans); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #e6dcc6); background: #fff; min-height: 40px; min-width: 190px; }
.nf-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted, #6b6457); }
/* quick lettering switch right under the preview */
.fontbar { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px auto 0; max-width: 330px; }
.fontbar button { border: 1px solid var(--line, #e6dcc6); background: #fff; color: var(--navy); border-radius: 999px; cursor: pointer; min-height: 40px; }
.fontbar .fb-arrow { width: 40px; font: 700 22px/1 var(--sans); padding: 0 0 3px; }
.fontbar .fb-cur { flex: 1; font: 600 14px var(--sans); padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontbar .fb-l { color: var(--muted, #6b6457); font-weight: 600; }
.fontbar button:hover { border-color: #c9a85c; }
@media (max-width: 520px) {
  .fontgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ftile { min-height: 96px; font-size: 22px; padding: 17px 3px 8px; }
  .ftile .ft-en { font-size: 14.5px; }
  .ftile .ft-name { font-size: 11.5px; }
}

/* ===== simcha chips grouped (v20261027a) ===== */
.chips.grouped { display: block; }
.chips.grouped .chipset + .chipset { margin-top: 10px; }
.chips.grouped .chipgrp { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 2px 6px; }
.ui-rtl .chips.grouped .chipgrp { letter-spacing: 0; font-size: 13px; }
.chips.grouped .chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .maker-grid > div, #form, #form .panel, .chips.grouped, .chips.grouped .chipset { min-width: 0; max-width: 100%; }
  .chips.grouped .chiprow { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-padding: 0 14px; }
  .chips.grouped .chiprow::-webkit-scrollbar { display: none; }
  .chips.grouped .chip { flex: 0 0 auto; white-space: nowrap; }
}

/* ===== extra downloads: animated GIF and Status size (v20261027b) ===== */
.dl-more { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px auto 0; max-width: 360px; }
.btn.dl-sm { flex: 1 1 0; min-height: 44px; font-size: 14.5px; padding: 8px 10px; gap: 6px; border-radius: 12px; white-space: nowrap; }
.btn.dl-sm svg { width: 18px; height: 18px; }

/* ===== photo shape chips, small chips (v20261027d) ===== */
.pshape { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.stepper.sty output { min-width: 3.2em; }

/* ===== my cards (v20261027d) ===== */
.mycards { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 14px; margin: 0 0 16px; }
.mc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mc-top .kb-x { margin-inline-start: auto; }
.mc-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.mc-i { flex: 1; min-width: 0; }
.mc-t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-d { font-size: 12.5px; color: var(--muted); }
.btn.mc-b { min-height: 38px; padding: 6px 12px; font-size: 14px; }

/* wording style chips (v20261027e) */
.wstyle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 2px; }
.wstyle .pshape { margin-top: 0; }

/* font for each part (v20261028) */
.parts { margin-top: 16px; padding: 12px 12px 10px; border: 1px solid var(--line, #e6dcc6); border-radius: 14px; background: #fffdf8; }
.parts-h { font-weight: 700; color: var(--navy); font-size: 15px; }
.parts-h .opt { font-weight: 500; color: var(--muted, #6b6457); font-size: 13px; margin-inline-start: 4px; }
.parts .nf-hint { margin: 2px 0 8px; }
.part-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed #eadfca; }
.part-l { font-weight: 700; font-size: 14px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.part-ic { width: 12px; height: 17px; color: #b48a3c; flex: none; }
.part-sel { font: 15px var(--sans); padding: 8px 8px; border-radius: 10px; border: 1px solid var(--line, #e6dcc6); background: #fff; min-height: 44px; width: 100%; min-width: 0; }
.part-row .stepper button { min-width: 40px; }
.part-row .stepper output { min-width: 46px; font-size: 13px; }
#partsReset { margin-top: 6px; font-size: 14px; }
@media (max-width: 420px) {
  .part-row { grid-template-columns: 1fr auto; }
  .part-row .part-l { grid-column: 1 / -1; }
}

/* matching set (v20261028c) */
.set-hint { margin: 0 0 10px; }
.pieces { margin-bottom: 10px; }
.table-opts { border: 1px solid var(--line, #e6dcc6); border-radius: 14px; padding: 10px 12px; margin: 4px 0 12px; background: #fffdf8; }
.tn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.tn-row label, .tn-l { font-weight: 700; font-size: 14px; color: var(--navy); }
.tn-row input { width: 76px; min-height: 44px; font: 16px var(--sans); padding: 6px 8px; border: 1px solid var(--line, #e6dcc6); border-radius: 10px; }
.tn-dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tn-dl .btn { flex: 1 1 160px; min-height: 46px; }
.pw-l { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin: 4px 0 6px; }
#f-pw { width: 100%; box-sizing: border-box; font: 15px/1.45 var(--sans); padding: 10px; border: 1px solid var(--line, #e6dcc6); border-radius: 12px; min-height: 120px; }
.set-link { display: block; margin: 10px auto 2px; font-size: 14px; text-align: center; }
.preview-label .pl-piece { color: var(--gold); font-weight: 700; }

/* ===== tap a part of the card to change it (v20261028d) ===== */
#card { position: relative; }
#card .fc-card [data-pe] { cursor: pointer; }
@media (hover: hover) { #card .fc-card [data-pe]:hover { outline: 1.5px dashed rgba(176,133,47,.75); outline-offset: 2px; } }
body.pe-open #card .fc-card [data-pe]:hover { outline-color: rgba(27,38,64,.35); }
.pe-tip { margin: -4px auto 10px; max-width: 330px; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.pe-tip .linkbtn { font-size: 13px; }
.pe-box { position: absolute; z-index: 5; pointer-events: none; border: 2px solid #c8962e; border-radius: 6px; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 0 5px rgba(27,38,64,.28); transition: left .12s, top .12s, width .12s, height .12s; }
.pe-box[hidden] { display: none; }
.pe-sheet { position: fixed; z-index: 40; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); max-height: min(56vh, 460px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 34px rgba(27,38,64,.18);
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); }
.pe-sheet[hidden] { display: none; }
.pe-top { display: flex; align-items: center; gap: 6px; position: sticky; top: -8px; background: var(--paper); padding: 4px 0 8px; z-index: 1; }
.pe-name { flex: 1; min-width: 0; text-align: center; font: 600 15px var(--sans); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.pe-nav { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font: 700 22px/1 var(--sans); color: var(--navy); cursor: pointer; }
.ui-rtl .pe-nav { transform: scaleX(-1); }
.pe-done { flex: none; min-height: 40px; padding: 8px 18px; }
.pe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0; }
.pe-words { display: block; }
.pe-words textarea { width: 100%; min-height: 44px; resize: vertical; font: 17px/1.4 var(--sans); padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.pe-words textarea:focus { border-color: var(--gold-2); outline: none; }
.pe-hint { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.pe-hint[hidden] { display: none; }
/* v20261030c: a small "Font" label above the per-line font menu */
.pe-fontrow { align-items: flex-end; }
.pe-fontwrap { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pe-flab { font: 600 13px/1.2 var(--sans); color: var(--muted); padding-inline-start: 4px; }
.pe-fontwrap .pe-font { flex: none; width: 100%; }
.pe-font { flex: 1 1 140px; min-width: 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0 10px; font: 15px var(--sans); color: var(--ink); }
.pe-st button { min-width: 44px; }
.pe-st output { min-width: 50px; }
.pe-tg { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 800 19px var(--serif); color: var(--navy); cursor: pointer; }
.pe-tg[aria-pressed="true"], .pe-seg button[aria-pressed="true"], .pe-shapes .chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pe-colors { gap: 7px; }
.pe-colors .cdot { width: 32px; height: 32px; }
.pe-colors .cdot.cdef { width: auto; }
.pe-colors .cpick { width: 38px; height: 34px; padding: 0; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.pe-seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pe-seg button { width: 46px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.pe-seg button + button { border-inline-start: 1px solid var(--line); }
.pe-ls output { min-width: 30px; font-size: 18px; }
.pe-ls button { display: grid; place-items: center; }
.pe-lab { font: 600 14px var(--sans); color: var(--muted); }
.pe-move { display: inline-flex; gap: 6px; }
.pe-move button { width: 48px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pe-move button:active, .pe-nav:active, .pe-tg:active { background: #f3ead6; }
.pe-move .r90 svg { transform: rotate(90deg); } .pe-move .r180 svg { transform: rotate(180deg); } .pe-move .r270 svg { transform: rotate(270deg); }
.pe-reset { margin-inline-start: auto; font-size: 14px; }
.pe-reset:disabled { opacity: .45; cursor: default; }
.pe-shapes { display: flex; flex-wrap: wrap; gap: 6px; }
body.pe-open .mobile-bar { display: none; }
body.pe-open { padding-bottom: 340px; }
@media (min-width: 901px) {
  .pe-sheet { left: 24px; bottom: 20px; transform: none; width: 440px; max-height: calc(100vh - 110px); border-radius: 18px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 44px rgba(27,38,64,.22); }
  body.pe-open { padding-bottom: 0; }
}
@media (max-width: 380px) { .pe-move button { width: 42px; } .pe-seg button { width: 40px; } }

/* long design names never widen the design grid on a phone (v20261028e) */
.swatches > .swatch { min-width: 0; }

/* v20261028f: AI-made background credit (Canva) */
.swatch .ai-note { display: block; font: 600 9.5px/1.2 var(--sans); color: #8a6d2f; letter-spacing: .02em; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-credit { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
footer.site .ai-credit { margin: 0; font-size: 13px; }

/* v20261029a: the longer "AI art · Leonardo.ai" credit wraps under the design name instead of being cut off on a phone */
.swatch .ai-note { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* v20261029b: bigger design tiles that show the whole card (picture, colors and wording) before you tap.
   Two to a row on a phone, more on a wide screen; each tile is drawn only when it scrolls into view. */
.swatches { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.swatch { padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(28,43,74,.04); transition: border-color .15s, box-shadow .15s; }
.swatch:hover { box-shadow: 0 4px 14px rgba(28,43,74,.12); }
.swatch:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.swatch .sw-card { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(28,43,74,.18); }
.swatch .sw-card .fc-card { border-radius: 0; }
.swatch span.sw-name { margin-top: 7px; font: 600 13px/1.25 var(--sans); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; overflow-wrap: anywhere; }
.swatch .ai-note { font-size: 10.5px; margin-top: 2px; }
.swatch .nb { top: 10px; left: 10px; font-size: 10.5px; padding: 4px 7px; }
[dir="rtl"] .swatch .nb { left: auto; right: 10px; }
@media (max-width: 640px) {
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
}

/* ===== v20261102b: tap a design → enlarged preview with the tools laid out beside it ===== */
.ed-head { display: none; }
body.ed-mode .ed-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.ed-back { border: 1px solid var(--line); background: #fff; color: var(--ink, #1b2640); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ed-back:hover { border-color: #b0852f; }
.ed-name { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ed-strip { margin: 10px 0 6px; }
.ed-strip-l { font-size: .8rem; color: var(--muted, #6b6455); margin: 0 2px 6px; }
.ed-row { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.ed-row > .swatch.ed-tile { flex: 0 0 78px; width: 78px; min-width: 0; padding: 3px; scroll-snap-align: start; }
.ed-row > .swatch.ed-tile .sw-card, .preview-col .ed-row .fc-wrap { max-width: none; width: 100%; margin: 0; }
.ed-row > .swatch.ed-tile .sw-name { font-size: .66rem; line-height: 1.15; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-row > .swatch.ed-tile .ai-note, .ed-row > .swatch.ed-tile .nb { display: none; }
@media (min-width: 901px) {
  body.ed-mode .maker-grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 32px; }
  body.ed-mode .maker-grid > .preview-col { order: 1; grid-column: 1; grid-row: 1; padding: 6px 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
  body.ed-mode .maker-grid > div:not(.preview-col) { order: 2; grid-column: 2; grid-row: 1; }
  body.ed-mode .preview-col .preview-label { display: none; }
  body.ed-mode .preview-col > #card.fc-wrap { max-width: min(560px, calc((100vh - 330px) * .6667)); }
  body.ed-mode .ed-row > .swatch.ed-tile { flex-basis: 72px; width: 72px; }
  body.ed-mode .ed-row > .swatch.ed-tile .sw-name { display: none; }
}
@media (max-width: 900px) {
  body.ed-mode .ed-stage { max-width: none; min-width: 0; width: auto; position: sticky; top: 62px; z-index: 12; background: rgba(250,246,238,.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: 0 -16px; padding: 8px 16px 2px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(27,38,64,.08); }
  body.ed-mode .ed-stage > #card.fc-wrap { max-width: calc(34vh * .6667); margin: 0 auto; }
  body.ed-mode .ed-head { margin-bottom: 6px; }
  body.ed-mode .ed-strip { margin: 6px 0 0; }
  body.ed-mode .ed-strip-l { display: none; }
  body.ed-mode .ed-row { padding-bottom: 6px; }
  body.ed-mode .ed-row > .swatch.ed-tile { flex-basis: 58px; width: 58px; padding: 2px; }
  body.ed-mode .ed-row > .swatch.ed-tile .sw-name { display: none; }
  body.ed-mode .maker-grid > div:not(.preview-col):not(.ed-stage) h1, body.ed-mode .maker-grid > div:not(.preview-col):not(.ed-stage) > .sub { display: none; }
}

.ftile .ft-name.ft-own { font-size: .92rem; letter-spacing: 0; }
.ftile .ft-enonly { opacity: .7; }

/* v20261102g: in the editor only the editing tools sit beside the card; the words, details and photo open in a drawer */
.ed-tools-head, .ed-drawer { display: none; }
body.ed-mode .ed-tools-head { display: block; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
body.ed-mode .ed-details-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink, #1c2b4a); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--gold, #a8802c); background: #fbf6ea; cursor: pointer; }
body.ed-mode .ed-details-btn:hover { background: #f6edd6; }
body.ed-mode .ed-details-btn[aria-expanded="true"] { background: #f1e4c2; }
body.ed-mode .ed-tip { margin: 8px 2px 0; font-size: .82rem; color: var(--muted, #6b6455); text-align: center; }
body.ed-mode #form > .panel.p-type, body.ed-mode #form > .panel.p-design, body.ed-mode #form > .panel.p-words,
body.ed-mode #form > .panel.p-details, body.ed-mode #form > .panel.p-photo { display: none; }
body.ed-mode .ed-drawer:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 70; top: 0; bottom: 0; inset-inline-end: 0; width: min(470px, 100vw); background: #faf6ee; box-shadow: 0 0 34px rgba(20,25,40,.22); }
.ed-dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.ed-dr-head strong { font-size: 1.05rem; }
.ed-dr-done { font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--ink, #1c2b4a); color: #fff; cursor: pointer; }
.ed-dr-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 14px 28px; }
.ed-dr-body > .panel { display: block; margin-bottom: 12px; }
@media (max-width: 900px) {
  body.ed-mode .ed-drawer:not([hidden]) { top: auto; left: 0; right: 0; width: auto; max-height: 50vh; border-radius: 18px 18px 0 0; }
  body.ed-mode.ed-dr-open .ed-strip { display: none; }
  body.ed-mode .ed-tools-head { margin-top: 4px; }
}

/* v20261102h: the "Tap any line" hint is big and clear on every screen; one-tap delete in the part panel */
.pe-tip { font-size: 1.2rem; font-weight: 700; color: #1b2640; max-width: 560px; line-height: 1.35; margin: 4px auto 14px; }
.pe-tip > span[aria-hidden] { font-size: 1.3em; }
.pe-tip .linkbtn { font-size: 14px; font-weight: 600; }
body.ed-mode .ed-tip { font-size: 1.15rem; font-weight: 700; color: #1b2640; line-height: 1.35; margin: 10px 2px 2px; }
@media (max-width: 640px) { .pe-tip { font-size: 1.12rem; padding: 0 6px; } body.ed-mode .ed-tip { font-size: 1.08rem; } }
.pe-delrow { justify-content: center; }
.pe-sheet .btn.pe-del { background: #fff; color: #9b1c1c; border: 1.5px solid #e2b4b4; font-weight: 700; padding: 8px 16px; border-radius: 10px; font-size: .95rem; cursor: pointer; }
.pe-sheet .btn.pe-del:hover { background: #fdf2f2; }

/* ===== v20261103f: compact font list (fontpick.js) ===== */
.fp-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; clip: rect(0 0 0 0); }
.fp-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; text-align: start; font: 600 14px var(--sans); }
.fp-btn:hover, .fp-btn[aria-expanded="true"] { border-color: #c9a85c; }
.fp-btn:focus-visible { outline: 3px solid #c9a85c; outline-offset: 2px; }
.fp-btn .fp-bs { flex: 0 0 auto; max-width: 52%; white-space: nowrap; overflow: hidden; color: #3a2a10; line-height: 1.25; }
.fp-btn .fp-bn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.fp-btn .fp-chev { flex: 0 0 auto; color: #8a6419; font-size: 13px; }
.fp-btn.fp-main { min-height: 56px; padding: 6px 14px; background: #fffaf0; border-color: #d9c595; }
.fp-btn.fp-main .fp-bn { color: var(--navy); font-size: 15px; }
.part-row .fp-btn { flex: 1; min-height: 40px; padding: 4px 10px; gap: 8px; }
.part-row .fp-btn .fp-bn { font-size: 13px; }
.pe-fontwrap .fp-btn { min-height: 38px; padding: 3px 9px; gap: 6px; }
.fp-catch { position: fixed; inset: 0; z-index: 990; background: transparent; }
.fp-catch.fp-dim { background: rgba(20,24,36,.18); }
.fp-pop { position: fixed; z-index: 991; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px -10px rgba(27,38,64,.4); overflow: hidden; }
.fp-pop.fp-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: min(52vh, 460px); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 641px) { .fp-pop.fp-sheet { left: 50%; right: auto; width: 460px; transform: translateX(-50%); bottom: 16px; border-radius: 16px; } }
.fp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); font: 600 13px var(--sans); color: var(--muted); flex: 0 0 auto; }
.fp-x { border: 0; background: #f3ecdc; color: var(--navy); border-radius: 999px; min-width: 40px; min-height: 36px; padding: 0 14px; font: 700 14px var(--sans); cursor: pointer; }
.fp-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; padding: 0 0 6px; }
.fp-gh { position: sticky; top: 0; z-index: 1; background: #faf6ee; padding: 5px 14px; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #8a6419; border-bottom: 1px solid #f0e8d6; }
.fp-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 5px 14px; cursor: pointer; border-bottom: 1px solid #f4efe4; }
.fp-row:hover, .fp-row:focus { background: #fdf8ee; outline: none; }
.fp-row.on { background: #fff4dc; box-shadow: inset 4px 0 0 #b08a3c; }
.fp-row .fp-s { flex: 0 0 44%; max-width: 44%; white-space: nowrap; overflow: hidden; font-size: 23px; line-height: 1.3; color: #2e2410; text-align: center; }
.fp-row .fp-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.fp-row .fp-nm b { font: 600 14px var(--sans); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-row .fp-nm small { font: 400 12px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; direction: rtl; unicode-bidi: plaintext; }
.fp-row.fp-same .fp-s { flex-basis: 0; }
.fp-row .nb { font: 700 9px/1 var(--sans); font-style: normal; letter-spacing: .04em; color: #8a6419; background: #f6ecd2; border-radius: 6px; padding: 3px 5px; flex: 0 0 auto; }
.fp-row.on::after { content: '✓'; position: absolute; right: 8px; top: 6px; font: 700 12px var(--sans); color: #b08a3c; }
body.fp-open { overscroll-behavior: contain; }
/* ===== v20261103f: + Add line, Clear all text, plain backgrounds, empty-line marks ===== */
.line-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn.addline { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; }
.btn.addline span[aria-hidden] { font-weight: 700; }
.pe-add { border: 1px solid #d9c595; background: #fffaf0; color: var(--navy); border-radius: 999px; min-height: 36px; padding: 0 12px; font: 700 13px var(--sans); cursor: pointer; white-space: nowrap; }
.plain-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.plain-l { font: 600 13px var(--sans); color: var(--muted); }
.plain-dots { display: flex; gap: 10px; }
.plain-dot { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #d7ccb2; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px #fff; }
.plain-dot[aria-pressed="true"] { border-color: #b08a3c; box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px #b08a3c; }
.fc-blank-hint { position: absolute; z-index: 4; pointer-events: none; display: flex; align-items: center; justify-content: center; border: 1.5px dashed rgba(176,138,60,.85); border-radius: 6px; background: rgba(255,250,238,.55); color: #8a6419; font: 600 12px var(--sans); }

/* v20261103g: text layout panel in the line editor (small "Layout" button, opens below) */
.pe-lobtn { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font: 600 14px var(--sans); cursor: pointer; }
.pe-lobtn[aria-expanded="true"] { border-color: var(--navy); }
.pe-lobtn.on { background: #f3ead6; }
.pe-lo { margin: 2px 0 8px; padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdf8; }
.pe-lo[hidden], .pe-lo .pe-row[hidden] { display: none; }
.pe-lomodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pe-lomodes button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 2px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font: 600 12.5px/1.15 var(--sans); cursor: pointer; overflow: hidden; }
.pe-lomodes button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-lomodes button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pe-lo .pe-row { margin: 8px 0 0; }
.pe-loarc input[type=range] { flex: 1; min-width: 120px; height: 34px; accent-color: var(--navy); }
.pe-loarc .pe-lab { font-size: 20px; }
.pe-ldseg button { width: 56px; font: 700 18px var(--sans); }
.pe-divtg { display: grid; place-items: center; width: 44px; height: 44px; }
.pe-lo .pe-st button:disabled, .pe-lo .pe-tg:disabled { opacity: .4; cursor: default; }
.pe-lo .pe-hint { margin-top: 6px; }
.pe-lo .stepper { flex: none; min-height: 40px; }
.pe-lo .stepper button { min-width: 38px; width: 38px; height: 40px; min-height: 40px; padding: 0; }
.pe-lo .stepper output { min-width: 26px; width: 26px; }
.pe-lo #peLoCols { gap: 6px 8px; }

/* v20261103i: the Words list — add a line exactly where you want it */
.line-list { margin: 6px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.line-list[hidden] { display: none; }
.ll-head { font-size: 14px; color: #5b5446; line-height: 1.35; }
.ll-head b { color: #1b2640; font-size: 15px; }
.ll-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1.5px solid #ddd2bb; border-radius: 10px; background: #fffdf8; }
.ll-row.on { border-color: #c8962e; box-shadow: 0 0 0 2px rgba(200,150,46,.25); background: #fff8e8; }
.ll-row .ll-t { flex: 1 1 200px; min-width: 0; min-height: 38px; font-size: 16px; padding: 6px 9px; border: 1px solid #e3d9c4; border-radius: 7px; background: #fff; color: #1b2640; }
.ll-row.ll-title .ll-t { font-weight: 700; }
.ll-btns { display: flex; gap: 4px; flex: 0 0 auto; }
.ll-b { min-width: 38px; min-height: 36px; padding: 4px 8px; border: 1px solid #d3c6a8; border-radius: 8px; background: #fff; color: #1b2640; font: 600 13px/1 var(--sans, system-ui, sans-serif); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.ll-b:hover, .ll-b:focus-visible { border-color: #c8962e; background: #fbf3df; }
.ll-b.ll-del { color: #9b2c2c; }
.ll-none { margin: 0; font-size: 14px; color: #7a7262; }
@media (max-width: 520px) { .ll-row .ll-t { flex-basis: 100%; } .ll-btns { width: 100%; justify-content: space-between; } .ll-b { flex: 1 1 0; } }
.pe-box.pe-soft { border-style: dashed; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.ll-b.ll-up, .ll-b.ll-dn { font-size: 19px; font-weight: 700; }
