/* Build 230 — MDFAST Grow: big, picture-first, for phones */
body.gr { margin: 0; background: #f0fdf4; font-family: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif; font-size: 18px; color: #14532d; }
.gr-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #15803d; color: #fff; }
.gr-brand { font-size: 22px; flex: 1; }
.gr-ic { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.15); color: #fff; font-size: 20px; padding: 0; overflow: hidden; display: grid; place-items: center; }
.gr-ic img { width: 100%; height: 100%; object-fit: cover; }
.gr-main { max-width: 720px; margin: 0 auto; padding: 14px 16px 60px; }
.gr-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 4px 18px rgba(21,128,61,.12); display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.gr-card h2, .gr-main > h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gr-hero { text-align: center; } .gr-hero-pic { font-size: 64px; }
.gr-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border-radius: 14px; border: 2px solid #15803d; background: #fff; color: #15803d; font-size: 20px; font-weight: 700; padding: 8px 14px; cursor: pointer; text-decoration: none; }
.gr-green { background: #16a34a; color: #fff; border-color: #16a34a; }
.gr-ghost { border-color: #bbf7d0; background: #f0fdf4; min-height: 50px; font-size: 17px; }
.gr-install { width: 100%; margin-bottom: 10px; background: #fef9c3; border-color: #eab308; color: #713f12; }
.gr-row { display: flex; gap: 10px; flex-wrap: wrap; } .gr-row > .gr-btn { flex: 1; }
.gr-spk { border: 0; background: #dcfce7; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; flex: none; }
.gr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gr-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 16px; border: 3px solid #dcfce7; background: #fff; font-size: 19px; font-weight: 700; color: #14532d; }
.gr-tile.on { border-color: #16a34a; background: #dcfce7; }
.gr-big { font-size: 40px; line-height: 1; }
.gr-f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 17px; }
.gr-f input, .gr-card input:not([type=checkbox]) { font-size: 22px; padding: 12px; border-radius: 12px; border: 2px solid #bbf7d0; width: 100%; box-sizing: border-box; }
.gr-pin { display: flex; gap: 14px; justify-content: center; padding: 12px; border-radius: 12px; border: 2px solid #bbf7d0; background: #fff; }
.gr-pin.on { border-color: #16a34a; box-shadow: 0 0 0 3px #bbf7d0; }
.gr-pin i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #16a34a; }
.gr-pin i.on { background: #16a34a; }
.gr-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gr-key { min-height: 64px; font-size: 30px; font-weight: 700; border-radius: 16px; border: 0; background: #dcfce7; color: #14532d; }
.gr-key.ok { background: #16a34a; color: #fff; }
.gr-dots { display: flex; gap: 6px; justify-content: center; } .gr-dots i { width: 34px; height: 8px; border-radius: 4px; background: #dcfce7; } .gr-dots i.on { background: #16a34a; }
.gr-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gr-ph { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 2px dashed #86efac; }
.gr-ph img { width: 100%; height: 100%; object-fit: contain; }
.gr-ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 6px; font-weight: 700; cursor: pointer; }
.gr-ph-b { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; } .gr-ph-b button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.gr-shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gr-show { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 2px solid #e5e7eb; font-weight: 600; overflow: hidden; }
.gr-show.on { border-color: #16a34a; background: #f0fdf4; } .gr-show input { width: 26px; height: 26px; flex: none; } .gr-show .gr-big { font-size: 26px; }
.gr-show span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-prev { width: 100%; border-radius: 10px; }
.gr-status { text-align: center; font-weight: 700; margin-bottom: 6px; }
.gr-cats { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.gr-cat { flex: none; min-height: 48px; padding: 6px 16px; border-radius: 24px; border: 2px solid #bbf7d0; background: #fff; font-size: 20px; font-weight: 700; color: #14532d; }
.gr-cat.on { background: #16a34a; color: #fff; border-color: #16a34a; }
.gr-tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .gr-tgrid { grid-template-columns: repeat(3, 1fr); } }
.gr-tpl { padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.14); min-height: 120px; font-size: 40px; }
.gr-tpl img { width: 100%; display: block; }
.gr-ed { display: flex; flex-direction: column; gap: 12px; }
.gr-cv { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 22px rgba(0,0,0,.2); touch-action: none; }
.gr-share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gr-sh { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 92px; border-radius: 16px; border: 0; color: #fff; font-size: 18px; font-weight: 800; }
.gr-wa { background: #16a34a; } .gr-wa2 { background: #15803d; } .gr-ig { background: linear-gradient(45deg, #f59e0b, #db2777, #7c3aed); } .gr-fb { background: #1d4ed8; }
.gr-p { font-size: 19px; margin: 0; } .gr-small { font-size: 15px; color: #166534; margin: 0; }
.gr-price { font-size: 44px; font-weight: 800; text-align: center; margin: 0; } .gr-price small { font-size: 18px; }
.gr-menu { display: flex; flex-direction: column; gap: 8px; }
body.gr #toast { position: fixed; left: 50%; bottom: 20px; top: auto; right: auto; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 6px; pointer-events: none; width: max-content; max-width: 92vw; }
body.gr #toast .t { font-size: 18px; padding: 12px 18px; border-radius: 12px; }
/* build 230 — Advanced mode, birthdays, plan */
.gr-adv { border: 2px solid #fde047; }
.gr-lays, .gr-addrow { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.gr-lay, .gr-add { flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; border: 2px solid #bbf7d0; background: #fff; font-size: 26px; font-weight: 800; color: #14532d; cursor: pointer; }
.gr-lay.on { border-color: #2563eb; box-shadow: 0 0 0 2px #93c5fd; }
.gr-lay img, .gr-add img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.gr-lay span { width: 56px; height: 56px; display: grid; place-items: center; background: #f0fdf4; border-radius: 10px; }
.gr-lay small, .gr-add small { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.15; }
.gr-chk { display: flex; align-items: center; gap: 6px; font-weight: 700; } .gr-chk input { width: 24px; height: 24px; }
.gr-today { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.08); font-size: 28px; }
.gr-today img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.gr-today span { flex: 1; font-size: 17px; } .gr-today .gr-btn { min-height: 46px; font-size: 16px; }
.gr-fest { background: #fef9c3; }
.gr-bday-add { display: flex; gap: 10px; align-items: center; } .gr-bday-add select { font-size: 20px; padding: 10px; border-radius: 10px; border: 2px solid #bbf7d0; flex: 1; }
.gr-plan { background: #fefce8; border: 2px solid #fde047; border-radius: 14px; padding: 10px 14px; } .gr-plan ul { margin: 6px 0 0; padding-left: 20px; font-size: 16px; } .gr-plan li { margin: 3px 0; }
.gr-menu hr { border: 0; border-top: 1px solid #dcfce7; width: 100%; }
/* build 233 — designers' market */
.gr-mk { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px; }
.gr-mkc { flex: none; width: 140px; position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.14); font-size: 36px; display: flex; flex-direction: column; }
.gr-mkc img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.gr-mkp { position: absolute; top: 6px; right: 6px; background: #7c3aed; color: #fff; font-size: 15px; font-weight: 800; padding: 2px 8px; border-radius: 10px; }
.gr-mkc small { font-size: 12px; padding: 4px 6px; text-align: left; color: #4c1d95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-helpbtn { width: 100%; margin-top: 16px; }
/* build 236 — photos in the template's windows */
.gr-slots { border: 2px solid #93c5fd; gap: 8px; }
.gr-slot { display: flex; align-items: center; gap: 8px; }
.gr-sn { width: 34px; height: 34px; border-radius: 50%; background: #2563eb; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.gr-sth { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #eff6ff; display: grid; place-items: center; font-size: 28px; flex: none; border: 2px dashed #93c5fd; }
.gr-sth img { width: 100%; height: 100%; object-fit: cover; }
.gr-sinfo { flex: 1; display: flex; flex-direction: column; min-width: 0; } .gr-sinfo small { color: #64748b; }
.gr-sbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; min-height: 56px; border-radius: 12px; border: 2px solid #bbf7d0; background: #fff; font-size: 22px; cursor: pointer; padding: 2px; }
.gr-sbtn small { font-size: 10px; font-weight: 700; }
.gr-swap { display: flex; justify-content: center; } .gr-swap .gr-btn { min-height: 44px; font-size: 16px; }
.gr-slots-done { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #dcfce7; border-radius: 12px; padding: 6px 12px; font-weight: 700; }

/* build 238: ↶ Undo / ↷ Redo — two big buttons that stay at the top of the screen while the page is scrolled */
.gr-hist { position: sticky; top: 6px; z-index: 5; margin: 0; gap: 10px; }
.gr-hist button { flex: 1; justify-content: center; min-height: 52px; font-size: 18px; font-weight: 800; border: 0; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.gr-hist button span { font-size: 26px; }
.gr-hist button:disabled { opacity: .45; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* build 241 */
.gr-build { text-align: center; color: #64748b; font-size: 13px; margin: 6px 0 0; }

/* build 242 — 👁 the live picture while editing (peek.js) and picture-left / tools-right on wide screens */
.gr-peek { position: fixed; z-index: 60; padding: 4px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.35); line-height: 0; cursor: pointer; touch-action: none; opacity: 0; pointer-events: none; transform: scale(.85); transition: opacity .18s, transform .18s, box-shadow .25s; }
.gr-peek.on { opacity: 1; pointer-events: auto; transform: none; }
.gr-peek.drag { transition: none; opacity: .85; }
.gr-peek canvas { display: block; border-radius: 10px; }
.gr-peek-i { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: #15803d; color: #fff; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.gr-peek.glow { box-shadow: 0 0 0 4px #22c55e, 0 8px 26px rgba(0,0,0,.35); }
.gr-peek[data-pos="br"] { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
.gr-peek[data-pos="bl"] { left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
.gr-peek[data-pos="tr"] { right: 12px; top: 128px; }
.gr-peek[data-pos="tl"] { left: 12px; top: 128px; }
.gr-peek-big { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.gr-peek-big canvas { border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.gr-peek-big .gr-btn { min-width: 140px; }
@media (min-width: 960px) {
  .gr-main:has(.gr-ed) { max-width: 1180px; }
  .gr-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); column-gap: 22px; row-gap: 0; align-items: start; }
  .gr-ed > * { grid-column: 2; margin-bottom: 12px; }
  .gr-ed > .gr-cv { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 70px; margin: 0; }
}
.gr-hist { top: calc(var(--gr-top-h, 60px) + 6px); }
@media (min-width: 960px) { .gr-ed > .gr-cv { top: calc(var(--gr-top-h, 60px) + 12px); justify-self: center; } }

/* build 243 — move / align controls under the picture, the ⇕ scroll bar, the picture scrolls with a slide (adjust.js) */
.gr-adj { background: #fff; border: 2px solid #86efac; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.gr-adj-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gr-adj-h b { font-size: 17px; }
.gr-adj-ok { width: auto; min-height: 44px; padding: 6px 16px; margin: 0; }
.gr-adj-b { display: flex; align-items: center; justify-content: space-around; gap: 12px; flex-wrap: wrap; }
.gr-pad { display: grid; grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(3, 62px); gap: 6px; }
.gr-pb { border: 0; border-radius: 14px; background: #dcfce7; color: #14532d; font-size: 26px; font-weight: 800; min-width: 56px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.gr-pb:active { background: #16a34a; color: #fff; transform: scale(.95); }
.gr-pb small { font-size: 11px; font-weight: 700; }
.gr-pc { background: #fef9c3; color: #713f12; }
.gr-zm { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gr-zm small { font-weight: 700; color: #475569; }
.gr-zv { font-size: 16px; }
.gr-tsz { flex-direction: row; justify-content: center; }
.gr-als { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gr-al { border: 2px solid #bbf7d0; border-radius: 14px; background: #f0fdf4; min-height: 64px; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #14532d; }
.gr-al span { font-size: 26px; line-height: 1; }
.gr-al.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.gr-adj-tip { text-align: center; margin-top: -4px; }
.gr-rail { position: fixed; right: 0; top: calc(var(--gr-top-h, 60px) + 70px); bottom: 90px; width: 30px; z-index: 55; touch-action: none; border-radius: 15px 0 0 15px; background: rgba(15,23,42,.06); }
.gr-rail i { position: absolute; left: 3px; right: 3px; top: 0; height: 64px; border-radius: 12px; background: #15803d; color: #fff; font-style: normal; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.3); opacity: .75; }
.gr-rail.drag i { opacity: 1; background: #16a34a; }
body.gr-railon .gr-main { padding-right: 34px; }
body.gr-railon .gr-peek[data-pos$="r"] { right: 40px; }
.gr-hist button:disabled { opacity: 1; background: #f1f5f9; color: #94a3b8; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* build 250 — a clear line between the sections (home and editor), and the window rows no longer squeezed */
.gr-main > h2:not(:first-child), .gr-main > .gr-helpbtn, .gr-main > .gr-card:not(:first-child),
.gr-ed > .gr-slots, .gr-ed > .gr-slots-done, .gr-ed > .gr-vid, .gr-ed > .gr-share, .gr-ed > .gr-adv, .gr-ed > .gr-row, .gr-ed > .gr-card { position: relative; margin-top: 26px; }
.gr-main > h2:not(:first-child)::before, .gr-main > .gr-helpbtn::before, .gr-main > .gr-card:not(:first-child)::before,
.gr-ed > .gr-slots::before, .gr-ed > .gr-slots-done::before, .gr-ed > .gr-vid::before, .gr-ed > .gr-share::before, .gr-ed > .gr-adv::before, .gr-ed > .gr-row::before, .gr-ed > .gr-card::before {
  content: ""; position: absolute; left: 2%; right: 2%; top: -15px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #86efac 10%, #15803d 50%, #86efac 90%, transparent); opacity: .85; }
.gr-slot { flex-wrap: wrap; row-gap: 6px; padding: 8px 0; border-bottom: 1px dashed #d1fae5; }
.gr-slot:last-of-type { border-bottom: 0; }
.gr-sinfo { flex: 1 1 110px; min-width: 110px; }
@media (min-width: 960px) { .gr-ed > .gr-slots, .gr-ed > .gr-slots-done, .gr-ed > .gr-vid, .gr-ed > .gr-share, .gr-ed > .gr-adv, .gr-ed > .gr-row, .gr-ed > .gr-card { margin-top: 18px; } }
/* build 251 — 🎨 strip design choices */
.gr-stripd { gap: 8px; }
.gr-stripc { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.gr-sd { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 12px; border: 2px solid #bbf7d0; background: #fff; cursor: pointer; }
.gr-sd svg { width: 64px; height: 43px; display: block; border-radius: 6px; }
.gr-sd small { font-weight: 700; font-size: 12px; color: #14532d; }
.gr-sd.on { border-color: #16a34a; box-shadow: 0 0 0 3px #bbf7d0; }
.gr-ed > .gr-stripd { position: relative; margin-top: 26px; }
.gr-ed > .gr-stripd::before { content: ""; position: absolute; left: 2%; right: 2%; top: -15px; height: 2px; border-radius: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, #86efac 10%, #15803d 50%, #86efac 90%, transparent); opacity: .85; }
/* build 252 — templates in rows of the same shape: equal tiles, pictures lined up */
.gr-shape { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-weight: 800; font-size: 15px; color: #14532d; }
.gr-shape span { font-size: 18px; line-height: 1; width: 24px; text-align: center; }
.gr-shape small { margin-left: auto; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 11px; background: #dcfce7; color: #166534; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.gr-tgrid { align-items: start; }
.gr-tpl { min-height: 0; display: flex; align-items: center; justify-content: center; }
.gr-tpl img { width: 100%; height: 100%; object-fit: cover; }
.gr-tg-wide { grid-template-columns: 1fr; }
@media (min-width: 560px) { .gr-tg-wide { grid-template-columns: repeat(2, 1fr); } .gr-tg-story { grid-template-columns: repeat(4, 1fr); } }
.gr-shape { min-height: 26px; }
.gr-shp { display: inline-block; flex: none; border: 2.5px solid #15803d; border-radius: 3px; background: #dcfce7; margin: 0 4px; }
/* build 253 — the editor in two sections: the picture (photos / video in the design) and the strip (name and photo) */
.gr-sec { margin: 22px 0 -2px; padding: 8px 12px; border-radius: 10px; background: #14532d; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .2px; display: flex; align-items: center; gap: 6px; }
.gr-ed > .gr-sec + * { margin-top: 0 !important; }
.gr-ed > .gr-sec + *::before { display: none; }
.gr-stripd > b { margin-top: 4px; }
/* build 255 — the small bar next to the tapped photo / words */
.gr-ctxbar { position: fixed; z-index: 58; display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: #0f172a; box-shadow: 0 10px 26px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform: translateY(6px) scale(.96); transition: opacity .15s, transform .15s; }
.gr-ctxbar.on { opacity: 1; pointer-events: auto; transform: none; }
.gr-ctxbar button { border: 0; border-radius: 12px; background: #1e293b; color: #fff; min-width: 58px; min-height: 48px; padding: 4px 8px; font-size: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; touch-action: manipulation; }
.gr-ctxbar button small { font-size: 11px; font-weight: 700; color: #cbd5e1; }
.gr-ctxbar .gr-ctx-del { background: #7f1d1d; } .gr-ctxbar .gr-ctx-del small { color: #fecaca; }
.gr-ctxbar button:last-child { min-width: 44px; background: #15803d; font-weight: 800; }
