/* Build 230 — Maxx Designs: big, picture-first, for phones */
body.gr { margin: 0; background: var(--g50) linear-gradient(180deg, var(--g100), var(--g50) 260px) no-repeat; font-family: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif; font-size: 18px; color: var(--g900); }
.gr-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(120deg, var(--g800), var(--g700) 45%, var(--ga)); color: #fff; box-shadow: 0 6px 20px var(--gsh); }
.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 var(--gsh); 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 var(--g700); background: #fff; color: var(--g700); font-size: 20px; font-weight: 700; padding: 8px 14px; cursor: pointer; text-decoration: none; }
.gr-green { background: linear-gradient(135deg, var(--g600), var(--g700)); color: #fff; border-color: var(--g600); box-shadow: 0 4px 14px var(--gsh); }
.gr-ghost { border-color: var(--g200); background: var(--g50); 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: var(--g100); 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 var(--g100); background: #fff; font-size: 19px; font-weight: 700; color: var(--g900); }
.gr-tile.on { border-color: var(--g600); background: var(--g100); }
.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 var(--g200); width: 100%; box-sizing: border-box; }
.gr-pin { display: flex; gap: 14px; justify-content: center; padding: 12px; border-radius: 12px; border: 2px solid var(--g200); background: #fff; }
.gr-pin.on { border-color: var(--g600); box-shadow: 0 0 0 3px var(--g200); }
.gr-pin i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--g600); }
.gr-pin i.on { background: var(--g600); }
.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: var(--g100); color: var(--g900); }
.gr-key.ok { background: var(--g600); color: #fff; }
.gr-dots { display: flex; gap: 6px; justify-content: center; } .gr-dots i { width: 34px; height: 8px; border-radius: 4px; background: var(--g100); } .gr-dots i.on { background: var(--g600); }
.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 var(--g300); }
.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: var(--g600); background: var(--g50); } .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 var(--g200); background: #fff; font-size: 20px; font-weight: 700; color: var(--g900); }
.gr-cat.on { background: var(--g600); color: #fff; border-color: var(--g600); }
.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: var(--g600); } .gr-wa2 { background: var(--g700); } .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: var(--g800); 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 var(--g200); background: #fff; font-size: 26px; font-weight: 800; color: var(--g900); 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: var(--g50); 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 var(--g200); 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 var(--g100); 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 var(--g200); 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: var(--g100); 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: var(--g700); 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 var(--g300); 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: var(--g100); color: var(--g900); 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: var(--g600); 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 var(--g200); border-radius: 14px; background: var(--g50); min-height: 64px; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--g900); }
.gr-al span { font-size: 26px; line-height: 1; }
.gr-al.on { background: var(--g600); border-color: var(--g600); color: #fff; }
.gr-fmode { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 4px; } .gr-fmode .gr-al { min-height: 54px; font-size: 13px; line-height: 1.15; padding: 4px; } /* build 269 · 280: inside the frame / frame on the picture / 🖼 look */ /* build 269: inside the frame / frame on the picture */
.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: var(--g700); 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: var(--g600); }
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, var(--g300) 10%, var(--g700) 50%, var(--g300) 90%, transparent); opacity: .85; }
.gr-slot { flex-wrap: wrap; row-gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--g100); }
.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 var(--g200); 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: var(--g900); }
.gr-sd.on { border-color: var(--g600); box-shadow: 0 0 0 3px var(--g200); }
.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, var(--g300) 10%, var(--g700) 50%, var(--g300) 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: var(--g900); }
.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: var(--g100); color: var(--g800); 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 var(--g700); border-radius: 3px; background: var(--g100); 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: var(--g900); 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: var(--g700); font-weight: 800; }

/* build 265 — 🎨 colour themes (⚙ Settings → Colour theme). Every Maxx Designs colour comes from these; the pictures are not changed. */
body.gr { --g50: #f0fdf4; --g100: #dcfce7; --g200: #bbf7d0; --g300: #86efac; --g600: #16a34a; --g700: #15803d; --g800: #166534; --g900: #14532d; --ga: #0d9488; --gsh: rgba(21,128,61,.14); }
body.gr[data-grt="indigo"] { --g50: #eef2ff; --g100: #e0e7ff; --g200: #c7d2fe; --g300: #a5b4fc; --g600: #4f46e5; --g700: #4338ca; --g800: #3730a3; --g900: #312e81; --ga: #7c3aed; --gsh: rgba(67,56,202,.16); }
body.gr[data-grt="saffron"] { --g50: #fff7ed; --g100: #ffedd5; --g200: #fed7aa; --g300: #fdba74; --g600: #ea580c; --g700: #c2410c; --g800: #9a3412; --g900: #7c2d12; --ga: #e11d48; --gsh: rgba(194,65,12,.16); }
body.gr[data-grt="ocean"] { --g50: #f0f9ff; --g100: #e0f2fe; --g200: #bae6fd; --g300: #7dd3fc; --g600: #0284c7; --g700: #0369a1; --g800: #075985; --g900: #0c4a6e; --ga: #2563eb; --gsh: rgba(3,105,161,.16); }
body.gr[data-grt="maroon"] { --g50: #fff1f2; --g100: #ffe4e6; --g200: #fecdd3; --g300: #fda4af; --g600: #e11d48; --g700: #be123c; --g800: #9f1239; --g900: #881337; --ga: #c026d3; --gsh: rgba(190,18,60,.16); }
body.gr[data-grt="purple"] { --g50: #faf5ff; --g100: #f3e8ff; --g200: #e9d5ff; --g300: #d8b4fe; --g600: #9333ea; --g700: #7e22ce; --g800: #6b21a8; --g900: #581c87; --ga: #db2777; --gsh: rgba(126,34,206,.16); }
body.gr[data-grt="slate"] { --g50: #f8fafc; --g100: #f1f5f9; --g200: #e2e8f0; --g300: #cbd5e1; --g600: #334155; --g700: #1e293b; --g800: #0f172a; --g900: #0f172a; --ga: #b45309; --gsh: rgba(15,23,42,.16); }
.gr-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.gr-theme { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border-radius: 14px; border: 2px solid #e5e7eb; background: #fff; font-size: 14px; font-weight: 700; color: #1f2937; cursor: pointer; }
.gr-theme.on { border-color: var(--g600); box-shadow: 0 0 0 3px var(--g200); }
.gr-theme i { display: block; height: 34px; border-radius: 10px; }
.gr-theme b { display: flex; gap: 4px; } .gr-theme b span { flex: 1; height: 8px; border-radius: 4px; }
.gr-numbox { display: flex; flex-direction: column; gap: 10px; }
.gr-warn { padding: 10px 12px; border-radius: 12px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 16px; }


/* build 270 — the picture groups: one even grid with lines between them (4 × 3 on a phone, 6 × 2 on a wide screen) */
.gr-cats2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 14px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 16px var(--gsh); border: 1px solid var(--g200); }
@media (min-width: 600px) { .gr-cats2 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gr-cat2 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 8px 4px; border: 0; border-right: 1px solid var(--g200); border-bottom: 1px solid var(--g200); background: #fff; color: var(--g900); font: inherit; cursor: pointer; position: relative; }
.gr-cats2 .gr-cat2:nth-child(4n) { border-right: 0; } .gr-cats2 .gr-cat2:nth-last-child(-n+4) { border-bottom: 0; }
@media (min-width: 600px) { .gr-cats2 .gr-cat2:nth-child(4n) { border-right: 1px solid var(--g200); } .gr-cats2 .gr-cat2:nth-child(6n) { border-right: 0; } .gr-cats2 .gr-cat2:nth-last-child(-n+4) { border-bottom: 1px solid var(--g200); } .gr-cats2 .gr-cat2:nth-last-child(-n+6) { border-bottom: 0; } }
[dir=rtl] .gr-cat2 { border-right: 0; border-left: 1px solid var(--g200); } [dir=rtl] .gr-cats2 .gr-cat2:nth-child(4n) { border-left: 0; }
@media (min-width: 600px) { [dir=rtl] .gr-cats2 .gr-cat2:nth-child(4n) { border-left: 1px solid var(--g200); } [dir=rtl] .gr-cats2 .gr-cat2:nth-child(6n) { border-left: 0; } }
.gr-cat2 .gr-cic { font-size: 28px; line-height: 1.1; }
.gr-cat2 .gr-cl { white-space: normal; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
:is(:lang(ta), :lang(ml), :lang(te), :lang(kn)) .gr-cat2 .gr-cl { font-size: 12.5px; } /* long words: a little smaller, two lines */
.gr-cat2.on { background: var(--g600); color: #fff; }
.gr-cat2.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--ga); }
.gr-cat-loc:not(.on) { background: linear-gradient(180deg, #fff7ed, #fff); } .gr-cat-loc .gr-cl { color: inherit; }
.gr-cat-prem:not(.on) { background: linear-gradient(180deg, #fefce8, #fff); }
.gr-catbody { min-height: 120px; }
.gr-sep { height: 1px; background: var(--g200); margin: 22px 0 14px; }
/* 📍 your city */
.gr-lhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); font-size: 18px; }
.gr-lhead .gr-btn { min-height: 42px; font-size: 16px; flex: 0 0 auto; }
.gr-lsec { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--g200); } .gr-lsec:last-child { border-bottom: 0; }
.gr-lsec h3 { margin: 4px 0 10px; font-size: 19px; } .gr-lsec h3 small { display: block; font-size: 14px; font-weight: 500; color: var(--g800); }
.gr-tpl { position: relative; }
.gr-tbadge { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 9px; border-radius: 12px; background: rgba(15,23,42,.78); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-tbadge.on { background: #dc2626; } .gr-tbadge.hot { background: linear-gradient(90deg, #ea580c, #db2777); }
[dir=rtl] .gr-tbadge { left: auto; right: 6px; }
.gr-loc { background: linear-gradient(90deg, #fff7ed, #fff); border: 1px solid #fed7aa; } .gr-loc .gr-btn { flex: 0 0 auto; }
.gr-x { border: 0; background: transparent; font-size: 18px; width: 36px; height: 36px; flex: none; color: var(--g800); }
.gr-cityrow > .gr-f { flex: 1 1 160px; }
.gr-empty { text-align: center; padding: 24px 8px; color: var(--g800); }
/* the languages: one per row */
.gr-langl { display: flex; flex-direction: column; gap: 8px; }
.gr-l3 { display: flex; flex-direction: column; flex: 1; gap: 2px; line-height: 1.25; } /* build 285: no language yet — मराठी, हिंदी, English, one per line */
.gr-lrow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--g100); background: #fff; color: var(--g900); font: inherit; text-align: start; cursor: pointer; }
.gr-lrow.on { border-color: var(--g600); background: var(--g100); }
.gr-lb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g100); color: var(--g800); font-size: 20px; font-weight: 800; flex: none; }
.gr-lrow.on .gr-lb { background: var(--g600); color: #fff; }
.gr-ln { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .gr-ln b { font-size: 22px; } .gr-ln small { font-size: 14px; color: var(--g800); }
.gr-lph { font-size: 20px; } .gr-lok { font-size: 22px; color: var(--g600); font-weight: 800; }
/* the first screen */
.gr-land { display: flex; flex-direction: column; gap: 16px; }
.gr-land-hero { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; background: linear-gradient(140deg, var(--g800), var(--g700) 55%, var(--ga)); color: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 10px 30px var(--gsh); overflow: hidden; }
@media (min-width: 640px) { .gr-land-hero { grid-template-columns: 1.15fr 0.85fr; padding: 28px; } }
.gr-land-tag { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.18); }
.gr-land-txt h1 { font-size: 30px; line-height: 1.15; margin: 12px 0 8px; } .gr-land-txt p { font-size: 18px; line-height: 1.45; margin: 0 0 16px; opacity: .95; }
.gr-land-cta { display: flex; flex-direction: column; gap: 10px; } .gr-land-cta .gr-btn:not(.gr-green) { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.gr-land-cta .gr-green { background: #fff; color: var(--g800); border-color: #fff; }
.gr-land-trial { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 16px; } .gr-land-trial b { background: #facc15; color: #422006; padding: 4px 12px; border-radius: 20px; } .gr-land-trial .gr-spk { width: 40px; height: 40px; font-size: 18px; margin-inline-start: auto; }
.gr-land-ph { position: relative; display: flex; justify-content: center; padding: 6px 0 10px; }
.gr-phone { width: min(230px, 62vw); border-radius: 28px; padding: 9px; background: #0f172a; box-shadow: 0 18px 40px rgba(0,0,0,.4); transform: rotate(-3deg); }
.gr-phone img { width: 100%; display: block; border-radius: 20px; }
.gr-phone-bar { display: flex; justify-content: space-around; padding: 7px 4px 2px; font-size: 13px; font-weight: 700; color: #fff; }
.gr-land-bub { position: absolute; top: 18%; inset-inline-start: 4%; background: #fff; color: #db2777; font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.25); animation: grBub 3s ease-in-out infinite; }
.gr-land-bub.b2 { top: auto; bottom: 16%; inset-inline-start: auto; inset-inline-end: 2%; color: #2563eb; animation-delay: 1.5s; }
@keyframes grBub { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .gr-land-bub { animation: none; } }
.gr-land-ben { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .gr-land-ben { grid-template-columns: repeat(3, 1fr); } }
.gr-ben { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border-radius: 16px; padding: 14px 10px; box-shadow: 0 3px 12px var(--gsh); }
.gr-ben span { font-size: 32px; } .gr-ben b { font-size: 16px; line-height: 1.3; }
.gr-land-how { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 4px 18px var(--gsh); display: flex; flex-direction: column; gap: 12px; }
.gr-land-how h3 { margin: 0; font-size: 20px; } .gr-land-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .gr-land-how ol { grid-template-columns: repeat(3, 1fr); } }
.gr-land-how li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; } .gr-land-how li span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--g600); color: #fff; font-weight: 800; flex: none; }
.gr-loc { position: relative; flex-wrap: wrap; padding-inline-end: 42px; } .gr-loc > span { flex: 1 1 55%; min-width: 0; } .gr-loc .gr-x { position: absolute; top: 4px; inset-inline-end: 4px; } /* build 270: long words — the ✕ stays in the corner */
.gr-cat2, .gr-lrow, .gr-loc .gr-btn { white-space: normal; } /* build 270: style.css keeps buttons on one line — these wrap */
/* build 271: style.css keeps every button on one line — in Maxx Designs the words wrap inside their button (only the sliding chips stay on one line) */
body.gr button { white-space: normal; overflow-wrap: anywhere; }
body.gr .gr-cat, body.gr .tp-g, body.gr .gr-ic { white-space: nowrap; overflow-wrap: normal; }
body.gr .gr-cat.wo-c { white-space: normal; overflow-wrap: anywhere; max-width: 100%; height: auto; text-align: center; line-height: 1.25; } /* the offer presets: long ones on two lines */
.gr-sh { padding: 12px 8px 10px; justify-content: center; text-align: center; line-height: 1.2; } .gr-sh .gr-big { line-height: 1.15; } /* the big icon never touches the edge */
/* build 271: the Maxx Designs logo — the top bar and the first screen */
.gr-brand { display: flex; align-items: center; gap: 10px; } .gr-logo { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.25); flex: none; }
.gr-land-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .gr-land-brand img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.3); flex: none; }
/* build 272: a designer's design — the price or launch offer (top right), 🆕 / 🔥 (top left), its label (bottom of the picture) */
.gr-mkl { position: absolute; left: 6px; bottom: 30px; max-width: calc(100% - 12px); font-size: 12px; font-weight: 800; color: #fff; padding: 2px 8px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.gr-mkl.free { background: #15803d; } .gr-mkl.paid { background: linear-gradient(90deg, #7c3aed, #c026d3); } .gr-mkl.inl { position: static; display: inline-block; max-width: none; vertical-align: 1px; box-shadow: none; }
.gr-mkp { max-width: calc(100% - 46px); white-space: nowrap; } .gr-mkp.offer { background: #facc15; color: #422006; } .gr-mkp s { font-weight: 600; opacity: .7; font-size: 12px; }
.gr-mka { position: absolute; left: 6px; top: 6px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
[dir=rtl] .gr-mkl:not(.inl), [dir=rtl] .gr-mka { left: auto; right: 6px; } [dir=rtl] .gr-mkp { right: auto; left: 6px; }
.gr-price s { font-size: .6em; color: #94a3b8; font-weight: 600; } .gr-offer { margin: -4px 0 6px; font-weight: 800; color: #b45309; }

/* build 280 — 🖼 Look: the window's shape and frame, little pictures of the user's own photo */
.gr-lk-idea { width: 100%; margin: 6px 0 4px; background: linear-gradient(135deg, var(--g500, #16a34a), #f59e0b); color: #fff; font-weight: 800; min-height: 48px; border: 0; border-radius: 14px; font-size: 16px; }
.gr-lks { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.gr-lk { border: 2px solid var(--g200); border-radius: 14px; background: #fff; padding: 5px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; min-width: 0; }
.gr-lk canvas { width: 64px; height: 64px; display: block; } .gr-lk small { font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; white-space: normal; color: var(--g900); }
.gr-lk.on { border-color: var(--g600, #16a34a); background: var(--g50); box-shadow: 0 0 0 3px var(--g200); }
@keyframes grFlash { 0% { box-shadow: 0 0 0 4px #f59e0b; } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } } .gr-flash { animation: grFlash 1.6s ease-out; } /* build 281: 🖼 Look — where it opened */
/* build 282 — a plain background: the product / shop photo card; an added photo's ✥ / 🖼 buttons */
.gr-fmode2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gr-prods { display: flex; flex-wrap: wrap; gap: 8px; } .gr-prod { width: 84px; border: 2px solid var(--g200); border-radius: 14px; background: #fff; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.gr-prod img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; } .gr-prod small { font-size: 12px; font-weight: 800; color: var(--g900); } .gr-prod-add { width: 84px; min-height: 100px; }
.gr-lks4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .gr-lks4 .gr-lk canvas { width: 56px; height: 56px; } /* build 282: the 4 brush frames in one row */
/* build 296 — 🎂 the birthday & anniversary diary */
.gr-dkind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gr-dkind .gr-btn { min-height: 50px; font-size: 17px; }
.gr-hon { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-hon button { border: 1.5px solid var(--g200); background: var(--g50); color: var(--g700); border-radius: 99px; padding: 5px 12px; font-size: 15px; font-weight: 700; min-height: 34px; }
.gr-ddate select { flex: 1; font-size: 20px; padding: 10px; border-radius: 10px; border: 2px solid var(--g200); min-height: 52px; }
.gr-card input[data-grb="phone"], .gr-card input[data-grd-find] { font-size: 18px; padding: 12px; border-radius: 12px; border: 2px solid var(--g200); width: 100%; box-sizing: border-box; }
.gr-dcount { background: var(--g700); color: #fff; border-radius: 99px; padding: 1px 10px; font-size: 14px; vertical-align: middle; }
.gr-dh { margin: 8px 0 4px; font-size: 16px; color: var(--g700); } .gr-dh small { color: #64748b; font-weight: 400; }
.gr-drow small { font-size: 13px; color: #475569; } .gr-drow .gr-btn { flex: 0 0 auto; min-width: 48px; padding: 6px 10px; }
.gr-dq { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--g100, #e2e8f0); } .gr-dq small { color: #475569; }
.gr-dq select { flex: 1; font-size: 18px; padding: 8px; border-radius: 10px; border: 2px solid var(--g200); min-height: 46px; }
.gr-dline { display: block; width: 100%; text-align: left; border: 0; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: 16px; font-weight: 700; padding: 12px 14px; margin-bottom: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.gr-dline.gr-dinvite { background: linear-gradient(135deg, #fef3c7, #fce7f3); color: #831843; }
.gr-dtoday { border: 2px solid #f59e0b; } .gr-dsent { border-color: var(--g600); opacity: .85; }
.gr-dsend { background: #fff7ed; border: 2px solid #fdba74; border-radius: 16px; padding: 12px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; } .gr-dsend b { font-size: 17px; color: #9a3412; }
.gr-dsend .gr-btn { min-height: 52px; font-size: 17px; text-decoration: none; }
/* build 297: while a window (modal) is open, the small picture preview and the bar next to a photo stay out of its way */
body:has(#modal:not(.hidden)) .gr-peek, body:has(#modal:not(.hidden)) .gr-ctxbar { display: none !important; }

/* build 306: the trademark note under the share buttons */
.gr-tm { font-size: 10.5px; line-height: 1.4; color: #64748b; text-align: center; margin: 8px 6px 0; font-weight: 500; }

/* build 312: 🌈 Maxx Designs — the longer name stays on one line in the top bar */
.gr-top .gr-brand { white-space: nowrap; font-size: clamp(14px, 3.8vw, 22px); min-width: 0; gap: 8px; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.gr-top .gr-ic { flex-shrink: 0; }
