/* MAJE KARO — full site stylesheet (extracted from the entry page
   so the shell document stays light; loaded via <link> in <head>). */
      :root{
        color-scheme: light;
        --red:#3A8505; --red-dark:#2C6603; --red-deep:#1E4702;
        --bg:#FFFEF3; --surface:#ffffff; --surface-2:#F7FBEA;
        --ink:#22330F; --muted:#5A6B45; --faint:#8A9A72;
        --line:#E4EECB; --line-strong:#CBDC9F;
        --tint:#EFF9DC; --tint-ink:#2C6603;
        --alt-bg:#FFF6D8; --alt-line:#F0DFA0;
        --sun:#FFB020;
        --wa:#1FA855; --wa-bg:#EAF7EF;
        --shadow:0 1px 2px rgba(38,54,10,.05),0 8px 24px -12px rgba(38,54,10,.14);
        --head-h:60px;
      }
      @media (prefers-color-scheme: dark){
        :root{
          color-scheme: dark;
          --red:#93DC3F; --red-dark:#6FB81F; --red-deep:#4C8A0E;
          --bg:#101408; --surface:#1A2110; --surface-2:#161D0C;
          --ink:#F2F7E4; --muted:#B3C096; --faint:#82936B;
          --line:#2C3818; --line-strong:#41521F;
          --tint:#22330F; --tint-ink:#B9EC7E;
          --alt-bg:#211C0C; --alt-line:#3A3115;
          --sun:#FFC94D;
          --wa:#3ECF74; --wa-bg:#14281B;
          --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 26px -12px rgba(0,0,0,.55);
        }
      }
      *{ box-sizing:border-box; }
      html{ scroll-behavior:smooth; }
      body{
        margin:0; background:var(--bg); color:var(--ink);
        font-family:"Poppins","Noto Sans Devanagari","Noto Sans Bengali",system-ui,-apple-system,"Segoe UI",sans-serif;
        font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;
        display:flex; flex-direction:column; min-height:100vh;
      }
      button,[role="button"],select,summary,input{ min-height:2.25rem; }
      button{ font:inherit; cursor:pointer; background:none; border:none; color:inherit; }
      a{ color:var(--red); text-decoration:none; }
      a:hover{ text-decoration:underline; }
      :focus-visible{ outline:3px solid rgba(58,133,5,.55); outline-offset:2px; border-radius:6px; }
      svg.ic{ width:22px; height:22px; flex:none; }

      /* ---------- Header (red bar: menu | title | language) ---------- */
      .site-head{
        position:sticky; top:0; z-index:60;
        background:linear-gradient(180deg,#9AE52B 0%,#63BC0E 52%,#4CA607 100%);
        color:#173D05; box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 2px 14px rgba(46,84,4,.35);
      }
      .head-inner{
        position:relative;
        max-width:1180px; margin:0 auto; height:var(--head-h);
        display:grid; grid-template-columns:48px 1fr auto auto; align-items:center;
        gap:6px; padding:0 10px;
      }
      /* The clock chip and language switcher take fixed grid
         columns so the absolutely-centred brand block (below)
         is never pushed off the header's true centre. The
         mobile media queries later in this sheet re-place both. */
      .head-inner .clock-chip{ grid-column:3; }
      .head-inner .lang-wrap{ grid-column:4; }
      .head-btn{
        width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
        border-radius:10px; color:#173D05;
      }
      .head-btn:hover{ background:rgba(255,255,255,.35); }
      /* Brand block: absolutely centred on the header itself, so
         the logo + title sit at the exact horizontal centre at
         every width, whatever the menu, clock and language
         controls around it weigh. max-width keeps it clear of
         the side controls on narrow screens. */
      .site-name{
        position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
        z-index:2; max-width:min(54vw,480px);
        display:flex; align-items:center; justify-content:center;
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        text-align:center; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
        font-size:clamp(1.05rem,4.4vw,1.5rem); line-height:1.15; white-space:nowrap;
        overflow:hidden; text-overflow:ellipsis; padding:0 2px;
        text-shadow:0 2px 0 rgba(23,61,5,.22),0 3px 10px rgba(23,61,5,.30);
      }
      .site-name a{ color:#fff; display:inline-flex; align-items:center; justify-content:center; gap:10px; }
      .site-name a:hover{ text-decoration:none; }
      .site-name .amp{ color:#FFE93D; }
      .brand-logo{
        width:40px; height:40px; border-radius:11px; object-fit:cover; flex:none;
        border:2px solid rgba(255,255,255,.9); background:#fff;
        box-shadow:0 3px 10px rgba(3,40,26,.35);
      }
      .drawer-brand{ display:flex; align-items:center; gap:11px; min-width:0; }
      @media (prefers-color-scheme: dark){
        .site-head{ background:linear-gradient(180deg,#3E7D0C 0%,#2A5606 100%); color:#F5FBEA; box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 2px 14px rgba(0,0,0,.45); }
        .site-head .head-btn{ color:#F5FBEA; }
        .site-head .head-btn:hover{ background:rgba(255,255,255,.16); }
        .site-head .lang-btn{ border-color:rgba(255,233,61,.5); color:#fff; background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -12px 18px -12px rgba(0,0,0,.6), 0 6px 18px -6px rgba(0,0,0,.65), 0 0 16px rgba(255,217,77,.18); }
        .site-head .lang-btn:hover{ filter:brightness(1.12); }
        .drawer-head{ background:linear-gradient(180deg,#3E7D0C,#2A5606); color:#F5FBEA; }
        .drawer-close{ color:#F5FBEA; }
        .btn-red{ background:#41750C; }
        .btn-red:hover{ background:#355F09; }
        .lang-note span.on{ background:#41750C; border-color:#41750C; color:#fff; }
      }
      .lang-wrap{ position:relative; }
      /* Language switcher: matched pair with the clock chip —
         same pill shape, same deep-emerald glossy gradient,
         same gold-tinted rim, shadow and text treatment, so
         the two header chips read as one premium set. */
      .lang-btn{
        display:inline-flex; align-items:center; gap:7px; min-height:46px;
        padding:6px 16px; border:1px solid rgba(255,233,61,.45); border-radius:999px;
        color:#fff; font-weight:700; font-size:.92rem; letter-spacing:.01em;
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -12px 18px -12px rgba(0,0,0,.5), inset 0 10px 14px -10px rgba(255,255,255,.35), 0 6px 18px -6px rgba(10,61,32,.65), 0 0 16px rgba(255,217,77,.16);
        text-shadow:0 1px 4px rgba(0,0,0,.35);
        transition:filter .15s ease, box-shadow .15s ease;
      }
      .lang-btn:hover{ filter:brightness(1.1); box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -12px 18px -12px rgba(0,0,0,.5), 0 6px 20px -6px rgba(10,61,32,.7), 0 0 20px rgba(255,217,77,.28); }
      .lang-btn svg{ width:18px; height:18px; color:#FFD94D; flex:none; }
      .lang-menu{
        position:absolute; right:0; top:calc(100% + 8px); min-width:190px;
        background:var(--surface); color:var(--ink); border:1px solid var(--line);
        border-radius:12px; box-shadow:var(--shadow); padding:6px; z-index:70;
      }
      .lang-menu[hidden]{ display:none; }
      .lang-menu button{
        display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px;
        padding:10px 12px; min-height:44px; border-radius:8px; font-weight:500; text-align:left;
      }
      .lang-menu button:hover{ background:var(--surface-2); }
      .lang-menu button[aria-checked="true"]{ color:var(--red); font-weight:700; }
      .lang-menu .tick{ width:18px; height:18px; visibility:hidden; }
      .lang-menu button[aria-checked="true"] .tick{ visibility:visible; }

      /* ---------- Live clock chip (header, every page) ----------
         A premium glossy pill in the Maka family: deep emerald
         gradient with a gold-tinted rim and glow, white date text
         and the time in warm gold — no plain-black text. The
         language button beside it shares this exact style so the
         two read as a matched pair. Date on
         the top line (weekday + date, in the site's language),
         live time with seconds below in tabular numerals so the
         chip never jitters as the seconds tick. Its space is
         reserved with min-width/min-height, so nothing shifts
         when the first tick lands. */
      .clock-chip{
        display:flex; align-items:center; gap:9px; flex:none;
        min-width:216px; min-height:46px; padding:6px 15px 6px 8px; border-radius:999px;
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1px solid rgba(255,233,61,.45);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -12px 18px -12px rgba(0,0,0,.5), inset 0 10px 14px -10px rgba(255,255,255,.35), 0 6px 18px -6px rgba(10,61,32,.65), 0 0 16px rgba(255,217,77,.16);
        color:#fff; line-height:1.2;
      }
      .clock-ic{
        width:30px; height:30px; flex:none; border-radius:50%;
        display:flex; align-items:center; justify-content:center; color:#FFD94D;
        background:rgba(255,217,77,.20); box-shadow:inset 0 0 0 1px rgba(255,217,77,.45), inset 0 1px 0 rgba(255,255,255,.35);
      }
      .clock-ic svg{ width:17px; height:17px; }
      .clock-txt{ display:flex; flex-direction:column; min-width:0; }
      .clock-date{
        font-size:.67rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em;
        color:rgba(255,255,255,.94); white-space:nowrap; min-height:.82rem;
        text-shadow:0 1px 3px rgba(0,0,0,.35);
      }
      .clock-date .cd-short{ display:none; }
      .clock-sep{ display:none; }
      .clock-time{
        font-size:.98rem; font-weight:800; letter-spacing:.02em; color:#FFD94D;
        font-variant-numeric:tabular-nums; white-space:nowrap; min-width:11ch; min-height:1.2em;
        text-shadow:0 1px 6px rgba(0,0,0,.4), 0 0 12px rgba(255,185,32,.35);
      }
      .clock-time .ap{ font-size:.66rem; font-weight:700; letter-spacing:.06em; margin-left:4px; vertical-align:.18em; }
      @media (prefers-color-scheme: dark){
        .clock-chip{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
          border-color:rgba(255,233,61,.5); color:#fff;
          box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -12px 18px -12px rgba(0,0,0,.6), 0 6px 18px -6px rgba(0,0,0,.65), 0 0 16px rgba(255,217,77,.18);
        }
        .clock-ic{ background:rgba(255,217,77,.20); box-shadow:inset 0 0 0 1px rgba(255,217,77,.5), inset 0 1px 0 rgba(255,255,255,.25); color:#FFD94D; }
        .clock-date{ color:rgba(255,255,255,.94); }
        .clock-time{ color:#FFD94D; }
      }
      @media (max-width:900px){
        .clock-chip{ min-width:0; padding:5px 12px 5px 7px; gap:7px; }
        .clock-ic{ width:26px; height:26px; }
        .clock-ic svg{ width:15px; height:15px; }
        .clock-date .cd-full{ display:none; }
        .clock-date .cd-short{ display:inline; }
        .clock-time{ font-size:.9rem; }
      }
      @media (max-width:760px){
        /* The chip leaves the crowded top row and becomes a slim
           centred line inside the header's second row — still in
           the sticky header, still on every page. --head-h grows
           to match so sticky offsets below stay exact. The 760px
           breakpoint (widened in Polish Pass 1) also guarantees
           the centred brand block never touches the clock chip
           on narrow tablets. */
        :root{ --head-h:104px; }
        .head-inner{
          grid-template-columns:48px 1fr auto; grid-template-rows:54px auto;
          height:auto; padding:0 10px 9px; row-gap:3px;
        }
        .lang-wrap{ grid-column:3; grid-row:1; }
        .clock-chip{
          grid-column:1 / -1; grid-row:2; justify-self:center;
          min-width:0; min-height:0; padding:5px 14px 5px 8px;
        }
        .clock-txt{ flex-direction:row; align-items:baseline; gap:8px; }
        .clock-date{ font-size:.72rem; min-height:0; }
        .clock-sep{ display:inline; font-size:.72rem; font-weight:700; color:rgba(255,255,255,.85); }
        .clock-time{ font-size:.88rem; min-height:0; }
      }
      @media (prefers-color-scheme: dark) and (max-width:760px){
        .clock-sep{ color:rgba(255,255,255,.85); }
      }

      /* ---------- Drawer ---------- */
      .scrim{
        position:fixed; inset:0; background:rgba(10,5,5,.5); z-index:80;
        opacity:0; pointer-events:none; transition:opacity .25s ease;
      }
      .scrim.open{ opacity:1; pointer-events:auto; }
      .drawer{
        position:fixed; top:0; left:0; bottom:0; width:min(320px,86vw); z-index:90;
        background:var(--surface); color:var(--ink); overflow-y:auto;
        transform:translateX(-105%); pointer-events:none;
        transition:transform .28s ease;
        box-shadow:8px 0 30px rgba(0,0,0,.25); display:flex; flex-direction:column;
      }
      .drawer.open{ transform:translateX(0); pointer-events:auto; transition:transform .28s ease; }
      .drawer-head{
        background:linear-gradient(180deg,#9AE52B,#5FB80D); color:#173D05;
        padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:10px;
      }
      .drawer-head .t{ font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:800; font-size:1.1rem; line-height:1.25; letter-spacing:.04em; }
      .drawer-head .s{ font-size:.78rem; opacity:.85; font-weight:500; }
      .drawer-close{ width:40px; height:40px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; color:#173D05; flex:none; }
      .drawer-close:hover{ background:rgba(255,255,255,.35); }
      .drawer nav{ padding:10px 10px 18px; }
      .drawer a{
        display:flex; align-items:center; gap:11px; color:var(--ink);
        padding:11px 12px; min-height:46px; border-radius:9px; font-weight:500;
      }
      .drawer a:hover{ background:var(--surface-2); text-decoration:none; }
      .drawer a svg{ width:20px; height:20px; color:var(--red); }
      .drawer .cat-link{ font-weight:700; }
      .drawer .sub-link{ padding-left:43px; font-size:.93rem; color:var(--muted); min-height:42px; }
      .drawer .sep{ border-top:1px solid var(--line); margin:10px 6px; }
      .drawer .menu-label{
        padding:12px 12px 4px; font-size:.72rem; font-weight:700; letter-spacing:.14em;
        text-transform:uppercase; color:var(--faint);
      }

      /* ---------- Showcase display strip (under the header) ---------- */
      .showcase{
        background:linear-gradient(180deg,var(--surface-2),var(--bg));
        border-bottom:1px solid var(--line);
        padding:22px 0 18px; overflow:hidden;
      }
      .sc-head{
        max-width:1180px; margin:0 auto 14px; padding:0 16px;
        display:flex; align-items:baseline; gap:14px; flex-wrap:wrap;
      }
      .sc-head .t{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-size:.86rem; font-weight:800;
        letter-spacing:.18em; text-transform:uppercase; color:var(--red);
        display:inline-flex; align-items:center; gap:10px;
      }
      .sc-head .t::before{
        content:""; width:26px; height:3px; border-radius:99px; background:var(--red); flex:none;
      }
      .sc-head .s{ font-size:.88rem; color:var(--muted); font-weight:500; }
      .sc-stage{ position:relative; max-width:1180px; margin:0 auto; }
      .sc-viewport{
        overflow-x:auto; overflow-y:hidden; scroll-snap-type:x proximity;
        scroll-behavior:smooth; scrollbar-width:none; touch-action:pan-y;
      }
      .sc-viewport::-webkit-scrollbar{ display:none; }
      .sc-track{ display:flex; }
      .sc-slide{
        flex:0 0 50%; display:flex; justify-content:center; padding:6px 7px;
        scroll-snap-align:start;
      }
      @media (min-width:640px){ .sc-slide{ flex-basis:33.3333%; } }
      @media (min-width:1024px){ .sc-slide{ flex-basis:25%; } }
      .sc-slide:hover{ text-decoration:none; }
      .art-card.sc-card{
        aspect-ratio:3/4; width:100%; flex:none; cursor:pointer;
        padding:22px 20px 18px;
      }
      .art-card.sc-card .art-text{ font-size:calc(.95rem * var(--fscale,1)); overflow:hidden; }
      .art-card.sc-card .art-brand{ margin-bottom:6px; font-size:.68rem; }
      .sc-arrow{
        position:absolute; top:50%; transform:translateY(-50%); z-index:5;
        width:42px; height:42px; min-height:42px; border-radius:50%;
        background:var(--surface); color:var(--ink); box-shadow:var(--shadow);
        border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
      }
      .sc-arrow:hover{ color:var(--red); border-color:var(--red); }
      .sc-arrow svg{ width:20px; height:20px; }
      .sc-prev{ left:12px; }
      .sc-next{ right:12px; }
      @media (max-width:600px){ .sc-arrow{ display:none; } }
      .sc-dots{ display:flex; gap:7px; justify-content:center; margin-top:14px; }
      .sc-dot{
        width:8px; height:8px; min-height:0; padding:0; border-radius:99px;
        background:var(--line-strong); transition:width .3s ease,background .3s ease;
      }
      .sc-dot.on{ width:24px; background:var(--red); }

      /* ---------- Layout ---------- */
      main{ flex:1; width:100%; }
      .wrap{ max-width:1180px; margin:0 auto; padding:0 16px 56px; }
      .crumbs{
        display:flex; flex-wrap:wrap; align-items:center; gap:6px;
        font-size:.86rem; color:var(--muted); padding:18px 0 4px; font-weight:500;
      }
      .crumbs a{ color:var(--muted); }
      .crumbs a:hover{ color:var(--red); }
      .crumbs .here{ color:var(--ink); font-weight:600; }
      .crumbs svg{ width:14px; height:14px; color:var(--faint); }

      /* ---------- Hero ---------- */
      .hero{
        text-align:center; padding:52px 0 14px; position:relative;
      }
      .hero::before{
        content:""; position:absolute; inset:-8px -16px auto; height:230px; z-index:-1;
        background:radial-gradient(560px 190px at 50% 0%, var(--tint) 0%, rgba(0,0,0,0) 70%);
        pointer-events:none;
      }
      .hero h1{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        margin:0 auto 14px; max-width:820px; font-weight:800;
        font-size:clamp(1.9rem,5.6vw,2.95rem); line-height:1.14; letter-spacing:0;
      }
      .hero h1 .hl{ color:var(--red); }
      .hero p{ margin:0 auto; max-width:660px; color:var(--muted); font-size:clamp(.97rem,2.6vw,1.07rem); line-height:1.65; }
      .hero-rule{
        width:56px; height:3px; border-radius:99px; background:var(--red);
        margin:22px auto 0;
      }
      .lang-note{
        display:inline-flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:18px;
      }
      .lang-note span{
        border:1px solid var(--line-strong); border-radius:999px; padding:6px 14px;
        font-size:.84rem; font-weight:600; color:var(--muted); background:var(--surface);
      }
      .lang-note span.on{ background:var(--red); border-color:var(--red); color:#fff; }
      .searchbar{
        display:flex; gap:8px; max-width:620px; margin:26px auto 0;
        background:var(--surface); border:1.5px solid var(--line-strong); border-radius:14px;
        padding:6px; box-shadow:var(--shadow);
        position:relative; z-index:3;
        scroll-margin-top:calc(var(--head-h) + 16px);
        scroll-margin-bottom:120px;
      }
      .searchbar input,.searchbar button{ position:relative; z-index:3; pointer-events:auto; }
      .searchbar input{
        flex:1; min-width:0; border:none; background:none; color:var(--ink);
        font:inherit; font-size:1rem; padding:8px 10px; min-height:44px;
      }
      .searchbar input:focus{ outline:none; }
      .searchbar:focus-within{ border-color:var(--red); }
      /* The input and button themselves need the header clearance
         when scrolled into view (e.g. a tap-focus jump), not just
         the form — otherwise the sticky header covers them. */
      .searchbar input,.searchbar button{ scroll-margin-top:calc(var(--head-h) + 16px); scroll-margin-bottom:120px; }
      .btn{
        display:inline-flex; align-items:center; justify-content:center; gap:8px;
        min-height:44px; padding:10px 18px; border-radius:11px; font-weight:600;
        font-size:.95rem; border:1.5px solid transparent; transition:background .15s ease,border-color .15s ease;
      }
      .btn svg{ width:18px; height:18px; }
      .btn-red{ background:var(--red); color:#fff; }
      .btn-red:hover{ background:var(--red-dark); }
      .btn-ghost{ border-color:var(--line-strong); color:var(--ink); background:var(--surface); }
      .btn-ghost:hover{ border-color:var(--red); color:var(--red); }
      .btn-wa{ background:var(--wa-bg); color:var(--wa); border-color:transparent; }
      .btn-wa:hover{ filter:brightness(.97); }
      .btn-sm{ min-height:40px; padding:8px 13px; font-size:.88rem; border-radius:9px; }

      /* ---------- Sections & tiles ---------- */
      .section{ margin-top:48px; }
      .section-head{
        display:flex; align-items:baseline; justify-content:space-between; gap:14px;
        margin-bottom:20px; padding-bottom:13px; border-bottom:1px solid var(--line);
      }
      .section-head h2{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif; margin:0; position:relative;
        font-size:clamp(1.35rem,3.4vw,1.7rem); font-weight:800; letter-spacing:0;
      }
      .section-head h2::after{
        content:""; position:absolute; left:1px; bottom:-14px;
        width:46px; height:3px; border-radius:99px; background:var(--red);
      }
      .section-head a{ font-weight:600; font-size:.92rem; white-space:nowrap; }
      .tile-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
      @media (min-width:720px){ .tile-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; } }
      @media (min-width:1024px){ .tile-grid.cols4{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
      @media (min-width:1024px){ .tile-grid.cols5{ grid-template-columns:repeat(5,minmax(0,1fr)); } }
      .tile{
        display:flex; flex-direction:column; gap:10px; text-align:left; min-width:0;
        background:var(--surface); border:1px solid var(--line); border-radius:14px;
        padding:20px; min-height:118px;
        box-shadow:0 1px 2px rgba(38,54,10,.04),0 6px 18px -12px rgba(38,54,10,.12);
        color:var(--ink); width:100%;
        transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
      }
      .tile:hover{
        border-color:var(--red); text-decoration:none; transform:translateY(-2px);
        box-shadow:0 2px 4px rgba(38,54,10,.06),0 16px 30px -14px rgba(58,133,5,.30);
      }
      .tile .chip{
        width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
        background:var(--tint); color:var(--red);
      }
      .tile .chip svg{ width:24px; height:24px; }
      .tile .tt{ font-weight:700; font-size:1.02rem; line-height:1.3; }
      .tile .td{ font-size:.85rem; color:var(--muted); line-height:1.45; }
      .tile .tc{ margin-top:auto; font-size:.8rem; font-weight:600; color:var(--red); display:inline-flex; align-items:center; gap:5px; }
      .tile .tc svg{ width:15px; height:15px; }
      .tile-btn{
        flex-direction:row; align-items:center; min-height:64px; padding:14px 16px; gap:12px;
        font-weight:600;
      }
      .tile-btn .chip{ width:40px; height:40px; border-radius:10px; }
      .tile-btn .chip svg{ width:21px; height:21px; }
      .tile-btn .tt{ font-size:.99rem; }
      .tile-btn .go{ margin-left:auto; color:var(--faint); display:inline-flex; }
      .tile-btn .go svg{ width:18px; height:18px; }

      /* ---------- Page head ---------- */
      .page-head{ padding:26px 0 6px; }
      .page-head h1{ font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif; margin:0 0 8px; font-size:clamp(1.6rem,4.6vw,2.25rem); font-weight:800; line-height:1.18; }
      .page-head p{ margin:0; color:var(--muted); max-width:680px; }
      .page-head .count-line{ margin-top:10px; font-size:.88rem; font-weight:600; color:var(--red); }

      /* ---------- Collection pages (separate-page structure) ---------- */
      .back-home{
        display:inline-flex; align-items:center; gap:7px; margin-top:18px;
        font-weight:600; font-size:.92rem; color:var(--muted);
      }
      .back-home:hover{ color:var(--red); }
      .back-home svg{ width:16px; height:16px; }
      .pair-block{ scroll-margin-top:calc(var(--head-h) + 16px); border-radius:18px; }
      .pair-block.flash{ outline:3px solid transparent; outline-offset:5px; animation:cardFlash 2.4s ease forwards; }
      @keyframes cardFlash{ 0%,55%{ outline-color:var(--sun); } 100%{ outline-color:transparent; } }
      @media (prefers-reduced-motion: reduce){ .pair-block.flash{ animation:none; outline-color:var(--sun); } }
      a.type-tag{ cursor:pointer; transition:background .15s ease,border-color .15s ease; }
      a.type-tag:hover{ text-decoration:none; border-color:var(--red); }
      a.img-link{ display:block; }
      a.img-link:hover{ text-decoration:none; }
      .prev-next{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:44px; }
      @media (min-width:640px){ .prev-next{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
      .pn{
        display:flex; flex-direction:column; gap:3px; padding:16px 18px;
        background:var(--surface); border:1px solid var(--line); border-radius:14px;
        color:var(--ink); box-shadow:var(--shadow);
        transition:border-color .18s ease, transform .18s ease;
      }
      .pn:hover{ border-color:var(--red); text-decoration:none; transform:translateY(-2px); }
      .pn .pn-k{ font-size:.74rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--red); }
      .pn .pn-t{ font-weight:700; font-size:1.02rem; }
      .pn.next{ text-align:right; }
      span.pn.off{ opacity:.55; box-shadow:none; }
      /* POST-page navigation only: two clean circular arrow
         buttons, no words at all (owner, 2026-11-28 — the
         collection page keeps its labelled .pn cards above). */
      .prev-next.pn-arrows{ display:flex; justify-content:space-between; align-items:center; margin-top:40px; }
      .pn-arrows .pn{
        display:inline-flex; align-items:center; justify-content:center;
        width:54px; height:54px; padding:0; border-radius:50%;
        border:1.5px solid var(--line-strong);
        color:var(--red-dark);
        transition:border-color .18s ease, transform .18s ease, color .18s ease;
      }
      .pn-arrows .pn svg{ width:23px; height:23px; }
      .pn-arrows a.pn:hover{ border-color:var(--red); color:var(--red); transform:translateY(-2px); }
      .pn-arrows span.pn.off{ opacity:.38; box-shadow:none; }
      /* ---------- Numbered pagination (Point 1) ----------
         6 posts per collection page — for Hindi/Bengali each post
         is a native + Roman pair, so a full page shows 12 cards.
         Numbered buttons sit at the foot of the page; the current
         page is filled, the rest are tappable links. Wraps on
         phones instead of scrolling sideways. */
      .pagination{
        display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
        gap:8px; margin-top:40px;
      }
      .pagination .pg-lab{
        width:100%; text-align:center; font-size:.8rem; font-weight:700;
        letter-spacing:.12em; text-transform:uppercase; color:var(--faint); margin-bottom:2px;
      }
      .pg-btn{
        display:inline-flex; align-items:center; justify-content:center;
        min-width:46px; min-height:46px; padding:8px 14px; border-radius:12px;
        background:var(--surface); border:1.5px solid var(--line-strong);
        color:var(--ink); font-weight:700; font-size:.95rem; box-shadow:var(--shadow);
        transition:border-color .15s ease, background .15s ease, color .15s ease;
      }
      .pg-btn:hover{ border-color:var(--red); color:var(--red); text-decoration:none; }
      .pg-btn.on{ background:var(--red); border-color:var(--red); color:#fff; pointer-events:none; }
      .pg-btn.pg-nav{ font-weight:600; font-size:.9rem; }
      .pg-btn.off{ opacity:.45; pointer-events:none; }
      /* Clickable card visuals on listing pages: either side of a
         pair (native or Roman, image or text) opens the pair's one
         shared post page. The action buttons below stay separate. */
      a.card-open{ display:block; border-radius:18px; }
      a.card-open:hover{ text-decoration:none; }
      a.card-open:focus-visible{ outline:3px solid rgba(58,133,5,.55); outline-offset:3px; }
      .open-hint{
        display:inline-flex; align-items:center; gap:6px; margin-top:10px;
        font-size:.82rem; font-weight:600; color:var(--red);
      }
      .open-hint svg{ width:15px; height:15px; }
      /* ---------- Reserved ad slots (owner rule, 2026-11-28,
         LOCKED_RULES §M) ----------
         Structural anchors for future AdSense units, designed
         into the layout NOW so ads later drop in without
         breaking or redesigning anything. Today every slot is
         EMPTY and invisible — no fake ads, no placeholder text,
         nothing rendered before AdSense approval; the element
         simply holds the placement. When activated, a slot
         takes the standard responsive sizes (max-width 970px;
         leaderboard 970×250 / 728×90 on desktop, 320×100 on
         phones, in-feed fluid). Placements are restrained and
         quality-only: Home after the hero + once mid-feed,
         collection pages after the 2nd and 4th posts, post
         page below the post. */
      /* Collapsed to no box at all today (display:contents), so
         not even a grid gap betrays it. ACTIVATION, when ads are
         approved: replace display:contents with display:block,
         width:100%, max-width:970px, margin:26px auto, and the
         standard min-height for the placement — nothing else in
         the layout needs to move. */
      .ad-slot{ display:contents; }
      /* ---------- Shared post page (Point 1) ---------- */
      .post-wrap{ max-width:920px; margin:0 auto; }
      .post-actions-row{
        display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:26px;
      }

      /* ---------- Item cards (side-by-side share-card pairs) ---------- */
      .cards{ display:grid; grid-template-columns:minmax(0,1fr); gap:34px; margin-top:22px; }
      .pair{ display:grid; grid-template-columns:minmax(0,1fr); gap:20px; min-width:0; width:100%; }
      @media (min-width:680px){ .pair{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
      .art-wrap{ min-width:0; display:flex; flex-direction:column; }
      .pair .art-wrap:only-child{ max-width:560px; width:100%; margin:0 auto; }
      @media (min-width:680px){ .pair .art-wrap:only-child{ grid-column:1 / -1; } }
      /* Type label: page furniture above each pair — names the
         collection so a visitor knows at a glance what the item is.
         It lives in the page layout only: never on the card itself
         and never in downloaded images. */
      .pair-block{ min-width:0; }
      .type-tag{
        display:inline-flex; align-items:center; gap:7px;
        margin:0 0 11px 2px; padding:5px 12px 5px 10px;
        background:var(--tint); color:var(--tint-ink);
        border:1px solid var(--line); border-radius:999px;
        font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
        line-height:1.2; white-space:nowrap;
      }
      .type-tag .dot{ width:7px; height:7px; border-radius:50%; background:var(--sun); flex:none; box-shadow:0 0 0 1.5px rgba(58,133,5,.35); }
      .art-card{
        position:relative; aspect-ratio:1/1; border-radius:18px; overflow:hidden;
        background-color:#2F5D06;
        background-size:auto,22px 22px,22px 22px,auto;
        background-position:0 0,0 0,11px 11px,0 0;
        box-shadow:var(--card-sh,0 20px 40px -16px rgba(46,84,4,.42)), var(--shadow);
        color:var(--ink,#fff);
        display:flex; flex-direction:column; align-items:center; text-align:center;
        padding:32px 36px 28px;
      }
      .art-card.grow{ aspect-ratio:auto; min-height:340px; }
      .art-card::before{
        content:""; position:absolute; inset:20px; border:1px solid var(--fr-b,rgba(255,255,255,.30));
        border-radius:5px; pointer-events:none;
      }
      .art-card::after{
        content:""; position:absolute; inset:13px; border:1.5px solid var(--fr-a,rgba(255,255,255,.6));
        border-radius:8px; pointer-events:none;
      }
      .art-text{
        flex:1; display:flex; align-items:center; justify-content:center;
        font-family:var(--ff,"Poppins",sans-serif); font-weight:var(--fw,500); font-style:var(--fst,normal);
        font-size:calc(clamp(1.05rem,1.1vw + .84rem,1.32rem) * var(--fscale,1));
        line-height:var(--flh,1.6); letter-spacing:.01em;
        white-space:pre-line; padding:12px 4px; max-width:100%;
        color:var(--ink,#fff);
        text-shadow:var(--tsh,0 2px 12px rgba(74,2,14,.45),0 1px 2px rgba(74,2,14,.55));
      }
      .art-text.alt{ color:var(--alt-ink,rgba(255,255,255,.96)); }
      .art-text.long{ font-size:calc(.94rem * var(--fscale,1)); }
      .art-brand{
        font-size:.78rem; font-weight:600; letter-spacing:.12em; text-transform:lowercase;
        color:var(--brand,#FFD9DE); margin-bottom:10px; opacity:.92;
      }
      /* Designed image cards (locked house style, 3:4): the real
         finished card image is the item's visual; its exact text
         stays beside it as real copyable text. */
      .img-card{
        position:relative; aspect-ratio:3/4; border-radius:18px; overflow:hidden;
        background:#2F5D06;
        box-shadow:0 20px 40px -16px rgba(46,84,4,.42), var(--shadow);
      }
      .img-card img{ width:100%; height:100%; display:block; object-fit:cover; }
      .img-card.sc-img{ width:100%; flex:none; }
      .art-actions{ display:flex; flex-wrap:wrap; gap:10px 14px; justify-content:center; align-items:center; margin-top:12px; }
      .share-group{ display:inline-flex; align-items:center; gap:7px; }
      .share-label{ font-size:.9rem; font-weight:600; color:var(--muted); margin-right:1px; }
      .soc{
        width:40px; height:40px; min-height:40px; padding:0; border-radius:50%;
        display:inline-flex; align-items:center; justify-content:center; color:#fff;
        box-shadow:0 2px 8px rgba(20,10,5,.18); transition:filter .12s ease, transform .12s ease;
      }
      .soc svg{ width:20px; height:20px; }
      .soc:hover{ filter:brightness(1.08); }
      .soc:active{ transform:scale(.94); }
      .soc-wa{ background:#25D366; }
      .soc-fb{ background:#1877F2; }
      .soc-ig{ background:linear-gradient(45deg,#FEDA75 0%,#FA7E1E 30%,#D62976 58%,#962FBF 82%,#4F5BD5 100%); }

      /* ---------- Quote of the day ---------- */
      .qotd-head{ text-align:center; margin-bottom:20px; }
      .qotd-head .k{
        font-size:.74rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red);
        position:relative; display:inline-block; padding-bottom:11px;
      }
      .qotd-head .k::after{
        content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:0;
        width:40px; height:3px; border-radius:99px; background:var(--red);
      }
      .qotd-head .sub{ margin-top:6px; font-size:.88rem; font-weight:600; color:var(--muted); }
      .qotd-wrap{ max-width:920px; margin:0 auto; }

      .empty{
        border:1.5px dashed var(--line-strong); border-radius:16px; padding:38px 20px;
        text-align:center; color:var(--muted); margin-top:22px;
      }
      .empty strong{ color:var(--ink); display:block; font-size:1.05rem; margin-bottom:6px; }
      .prose{ max-width:760px; padding-top:10px; }
      .prose h2{ font-size:1.2rem; margin:26px 0 8px; }
      .prose p{ color:var(--muted); margin:0 0 12px; }
      .prose p strong{ color:var(--ink); }

      /* ---------- Footer (dark bar) ---------- */
      .site-foot{ background:#16260B; color:#D8D5D0; margin-top:auto; border-top:3px solid var(--red); }
      .foot-brand{ display:flex; align-items:center; gap:11px; margin-bottom:10px; }
      .foot-brand img{
        width:40px; height:40px; border-radius:11px; object-fit:cover; flex:none;
        border:2px solid rgba(255,255,255,.25); background:#fff;
      }
      .foot-brand .n{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:800;
        font-size:1.15rem; color:#fff; letter-spacing:.05em; line-height:1.1;
      }
      .foot-brand .n span{ color:#FFE93D; }
      .foot-inner{
        max-width:1180px; margin:0 auto; padding:30px 16px 0;
        display:grid; grid-template-columns:minmax(0,1fr); gap:24px;
      }
      @media (min-width:760px){ .foot-inner{ grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); } }
      .site-foot h3{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; margin:0 0 10px; color:#fff;
        font-size:.95rem; font-weight:800; letter-spacing:.03em; position:relative; padding-bottom:7px;
      }
      .site-foot h3::after{
        content:""; position:absolute; left:0; bottom:0;
        width:26px; height:2px; border-radius:99px; background:var(--red);
      }
      .site-foot p{ margin:0; font-size:.86rem; line-height:1.55; color:#A9A59E; max-width:400px; }
      .site-foot ul{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
      .site-foot ul a{
        color:#CFCBC4; display:inline-flex; align-items:center; min-height:30px; font-size:.88rem;
      }
      /* Touch keeps a comfortable ≥40px effective tap height
         even though the visual rows are tighter. */
      @media (pointer:coarse){ .site-foot ul a{ min-height:40px; } }
      .site-foot ul a:hover{ color:#fff; }
      .foot-bar{
        border-top:1px solid #2A3D16; margin-top:22px; padding:12px 16px;
        text-align:center; font-size:.8rem; color:#8F8B84;
      }
      .foot-bar .wrap-in{ max-width:1180px; margin:0 auto; }

      /* ---------- Premium motion, popular badge, rails, card maker ---------- */
      .wrap{ animation:pageIn .45s cubic-bezier(.22,.7,.3,1) both; }
      @keyframes pageIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
      .rv{ opacity:0; transform:translateY(18px); transition:opacity .6s ease,transform .6s ease; transition-delay:var(--d,0s); }
      .rv.in{ opacity:1; transform:none; }
      .btn{ transition:background .15s ease,border-color .15s ease,color .15s ease,transform .12s ease; }
      .btn:active{ transform:scale(.96); }
      .art-card,.img-card{ transition:transform .28s ease,box-shadow .28s ease; }
      .art-card:hover,.img-card:hover{ transform:translateY(-4px); box-shadow:0 30px 54px -18px rgba(20,30,5,.45), var(--shadow); }
      .img-card img{ opacity:0; transition:opacity .55s ease; }
      .img-card img.ld{ opacity:1; }
      .tag-row{ display:flex; align-items:flex-start; gap:8px; flex-wrap:wrap; }
      .pop-badge{
        display:inline-flex; align-items:center; gap:5px; margin-bottom:11px;
        padding:5px 12px; border-radius:999px; line-height:1.2; white-space:nowrap;
        background:linear-gradient(180deg,#FFD94D,#FFB020); color:#5A3B00;
        font-size:.72rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
        box-shadow:0 4px 12px -4px rgba(255,176,32,.7);
      }
      .rail-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
      @media (min-width:720px){ .rail-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; } }
      @media (min-width:1024px){ .rail-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
      .rail-card{ display:block; color:var(--ink); min-width:0; }
      .rail-card:hover{ text-decoration:none; }
      .rail-card .img-card{ display:block; aspect-ratio:3/4; }
      .rail-card .art-card{ aspect-ratio:3/4; padding:18px 16px 14px; }
      .rail-card .art-text{ font-size:.8rem; line-height:1.5; overflow:hidden; }
      .rail-card .art-brand{ font-size:.58rem; margin-bottom:2px; }
      .rail-cap{ display:block; margin-top:9px; font-weight:600; font-size:.9rem; line-height:1.3; }
      .rail-cap small{ color:var(--muted); font-weight:500; }
      .section-head h2 .h2-alt{ font-size:.62em; color:var(--muted); font-weight:600; }
      /* ---------- Card Maker page: heading, category row,
         two-column studio, template strip ---------- */
      .cm-head{ text-align:center; padding:30px 0 4px; display:flex; flex-direction:column; align-items:center; }
      .cm-head h1{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif; font-weight:800;
        font-size:clamp(2rem,6vw,3rem); line-height:1.15; margin:0 0 8px; color:var(--red-dark);
        text-align:center;
      }
      @supports ((-webkit-background-clip:text) or (background-clip:text)){
        .cm-head h1{
          background:linear-gradient(180deg,#9AE52B 0%,#63BC0E 52%,#4CA607 100%);
          -webkit-background-clip:text; background-clip:text;
          -webkit-text-fill-color:transparent; color:transparent;
        }
        .cm-head h1 .cm-star{ -webkit-text-fill-color:var(--sun); }
      }
      .cm-head h1 .cm-star{ color:var(--sun); text-shadow:0 2px 10px rgba(255,176,32,.45); }
      .cm-head .cm-sub{
        margin:0 auto 8px; text-align:center; font-family:"Baloo Da 2","Baloo 2",sans-serif; font-weight:700;
        font-size:clamp(1.02rem,3vw,1.25rem); color:var(--red);
      }
      .cm-head p{ margin:0 auto; color:var(--muted); max-width:640px; }
      .pz-box{
        background:var(--surface); border:1px solid var(--line); border-radius:18px;
        box-shadow:var(--shadow); padding:20px; display:grid; gap:22px;
      }
      @media (min-width:840px){ .pz-box{ padding:26px; } }
      .pz-catrow{
        display:flex; flex-wrap:nowrap; gap:8px; overflow-x:auto;
        padding:2px 2px 9px; scrollbar-width:thin; -webkit-overflow-scrolling:touch;
      }
      .pz-catrow button{ flex:0 0 auto; white-space:nowrap; }
      .pz-main{ display:grid; gap:22px; min-width:0; }
      @media (min-width:840px){ .pz-main{ grid-template-columns:380px 1fr; align-items:start; } }
      .pz-strip{ border-top:1.5px dashed var(--line-strong); padding-top:16px; }
      .pz-strip-head{
        display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:11px;
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:700; font-size:1.06rem; color:var(--ink);
      }
      .pz-strip-head .pz-strip-cat{ color:var(--red); }
      .pz-strip-head small{ font-family:"Poppins",sans-serif; font-weight:500; font-size:.78rem; color:var(--muted); }
      .pz-strip .pz-thumb{ flex-basis:88px; }
      .pz-canvas{
        width:100%; height:auto; display:block; border-radius:14px; background:#2F5D06;
        box-shadow:0 20px 40px -16px rgba(46,84,4,.42);
        touch-action:none; cursor:grab;
      }
      .pz-canvas:active{ cursor:grabbing; }
      /* Photo adjust strip under the canvas: three live sliders
         (blur, brightness, colour/saturation) for the template
         background, so visitors can tune the photo until their
         text pops against it. Wired straight into the canvas
         render, so the preview and the downloaded card match. */
      .pz-photo{
        margin-top:12px; padding:11px 13px 12px; border:1.5px solid var(--line);
        border-radius:12px; background:var(--surface);
      }
      .pz-photo-head{
        display:flex; align-items:center; justify-content:space-between; gap:8px;
        margin-bottom:2px;
      }
      .pz-photo-lab{
        font-size:.74rem; font-weight:700; letter-spacing:.12em;
        text-transform:uppercase; color:var(--red); white-space:nowrap;
      }
      .pz-photo-reset{ min-height:2rem; padding:4px 11px; }
      .pz-photo-row{ display:flex; align-items:center; gap:10px; margin-top:7px; }
      .pz-photo-row .pz-range-lab{
        font-size:.82rem; font-weight:600; color:var(--muted);
        white-space:nowrap; min-width:78px;
      }
      /* Sticky preview: the card stays pinned just under the site
         header while the visitor scrolls down through the editing
         tools (name, style presets, letter spacing, elements), so
         they can watch the photo change as they adjust — the photo
         never scrolls up and out of sight mid-edit. */
      .pz-preview{ position:sticky; top:calc(var(--head-h) + 10px); z-index:5; }
      @media (max-width:839px){
        /* On phones the pinned card shrinks and centres so the
           tools below it stay reachable while it remains on screen. */
        .pz-preview .pz-stage{ max-width:236px; margin:0 auto; }
      }
      .pz-controls{ display:flex; flex-direction:column; gap:20px; min-width:0; }
      .pz-label{
        display:block; font-size:.78rem; font-weight:700; letter-spacing:.12em;
        text-transform:uppercase; color:var(--red); margin-bottom:9px;
      }
      .pz-tabs,.pz-occ{ display:flex; flex-wrap:wrap; gap:8px; }
      .pz-tabs button,.pz-occ button,.pz-catrow button{
        padding:9px 15px; min-height:42px; border:1.5px solid var(--line-strong);
        border-radius:999px; background:var(--surface); font-weight:600; font-size:.9rem;
        color:var(--ink); transition:background .15s ease,border-color .15s ease,color .15s ease,transform .12s ease;
      }
      .pz-tabs button:hover,.pz-occ button:hover,.pz-catrow button:hover{ border-color:var(--red); color:var(--red); }
      .pz-tabs button:active,.pz-occ button:active,.pz-catrow button:active{ transform:scale(.96); }
      .pz-tabs button.on,.pz-occ button.on,.pz-catrow button.on{ background:var(--red); border-color:var(--red); color:#fff; }
      .pz-gallery{ display:grid; gap:17px; }
      .pz-gal-head{
        display:flex; align-items:baseline; gap:8px; margin-bottom:8px;
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:700; font-size:.98rem; color:var(--ink);
      }
      .pz-gal-head small{ font-family:"Poppins",sans-serif; font-weight:500; font-size:.76rem; color:var(--muted); }
      .pz-gal-row{
        display:flex; gap:9px; overflow-x:auto; padding:2px 2px 7px;
        scroll-snap-type:x proximity; scrollbar-width:thin;
      }
      .pz-gal-area{ border-top:1.5px dashed var(--line-strong); padding-top:15px; display:grid; gap:17px; }
      .pz-gal-area-head{
        font-size:.76rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--red);
        display:flex; align-items:center; gap:9px;
      }
      .pz-gal-area-head::after{ content:""; flex:1; height:1px; background:var(--line); }
      .pz-thumb{
        flex:0 0 70px; scroll-snap-align:start;
        padding:0; min-height:0; border:2.5px solid var(--line); border-radius:11px; overflow:hidden;
        background:var(--surface-2); line-height:0; transition:border-color .15s ease, transform .12s ease;
      }
      .pz-thumb img{ width:100%; aspect-ratio:3/4; object-fit:cover; display:block; }
      .pz-thumb:hover{ border-color:var(--line-strong); }
      .pz-thumb:active{ transform:scale(.96); }
      .pz-thumb.on{ border-color:var(--sun); box-shadow:0 6px 16px -6px rgba(255,176,32,.65); }
      .pz-fields{ display:grid; gap:9px; }
      .pz-name{
        width:100%; border:1.5px solid var(--line-strong); border-radius:12px;
        background:var(--surface); color:var(--ink); font:inherit; font-size:1.02rem;
        padding:11px 14px; min-height:48px;
      }
      .pz-name:focus{ outline:none; border-color:var(--red); }
      .pz-head-in{ font-weight:700; }
      .pz-range-row{ display:flex; align-items:center; gap:12px; margin-top:11px; }
      .pz-range-row .pz-range-lab{ font-size:.85rem; font-weight:600; color:var(--muted); white-space:nowrap; }
      .pz-range{ flex:1; accent-color:var(--red); min-height:28px; cursor:pointer; min-width:0; }
      .pz-elem-grid{ display:flex; flex-wrap:wrap; gap:8px; }
      .pz-elem-groups{ display:grid; gap:13px; max-height:358px; overflow-y:auto; padding:2px 4px 4px 2px; scrollbar-width:thin; }
      .pz-elem-group{ display:grid; gap:7px; }
      .pz-elem-group-lab{ font-size:.7rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--faint); }
      .pz-elem-btn{
        width:52px; height:52px; min-height:52px; padding:0; border:1.5px solid var(--line-strong);
        border-radius:13px; background:var(--surface); color:var(--red);
        display:inline-flex; align-items:center; justify-content:center;
        transition:border-color .15s ease, background .15s ease, transform .12s ease;
      }
      .pz-elem-btn svg{ width:27px; height:27px; }
      .pz-elem-btn:hover{ border-color:var(--red); background:var(--tint); }
      .pz-elem-btn:active{ transform:scale(.93); }
      .pz-sel{
        margin-top:13px; border:1px dashed var(--line-strong); border-radius:13px;
        padding:13px 14px; display:grid; gap:11px; background:var(--surface-2);
      }
      .pz-sel[hidden]{ display:none; }
      .pz-sel .pz-sel-t{ font-size:.85rem; font-weight:700; color:var(--ink); }
      .pz-sel-row{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
      .pz-sel-row .pz-range-lab{ font-size:.85rem; font-weight:600; color:var(--muted); white-space:nowrap; }
      .pz-mini{
        min-height:38px; padding:7px 13px; border:1.5px solid var(--line-strong); border-radius:9px;
        background:var(--surface); font-weight:600; font-size:.88rem; color:var(--ink);
      }
      .pz-mini:hover{ border-color:var(--red); color:var(--red); }
      .pz-mini.danger:hover{ border-color:#C0392B; color:#C0392B; }
      .pz-swatch{
        width:31px; height:31px; min-height:31px; padding:0; border-radius:50%;
        border:2.5px solid var(--surface); box-shadow:0 0 0 1.5px var(--line-strong);
      }
      .pz-swatch.on{ box-shadow:0 0 0 2.5px var(--red); }
      .pz-actions{ display:flex; flex-wrap:wrap; gap:10px; }
      .pz-note{ margin:0; font-size:.9rem; color:var(--muted); line-height:1.6; }

      /* ---------- Designer protection + text-object panel ---------- */
      /* The clean templates are never exposed as files: they load
         only as bytes (fetch → Blob → canvas) under unguessable
         hashed names referenced solely inside the script, gallery
         thumbnails are small canvas renders of them, and the whole
         designer area refuses context menus, dragging and
         long-press save. No watermark anywhere — the backgrounds
         stay completely clean; the only downloadable image is the
         finished designed card. */
      .pz-box{ -webkit-touch-callout:none; }
      .pz-box canvas{ -webkit-user-drag:none; }
      /* Protection layer (LOCKED_RULES section G): card & post
         visuals cannot be dragged, long-pressed or text-selected,
         so casual saving/copying of the artwork is deterred. This
         is scoped to visuals ONLY — form inputs, text fields and
         the info-page prose keep normal selection, and every
         Copy / Share / Download / Sticker button works exactly
         as before (they act programmatically, never via selection). */
      img{ -webkit-user-drag:none; }
      .img-card,.art-card,.pair-block,.rail-card,.sc-slide,.st-card{
        -webkit-user-select:none; user-select:none; -webkit-touch-callout:none;
      }
      .img-card img{ -webkit-user-drag:none; -webkit-touch-callout:none; }
      input,textarea,select,[contenteditable="true"]{
        -webkit-user-select:text; user-select:text; -webkit-touch-callout:default;
      }
      .pz-stage{ position:relative; }
      .pz-thumb canvas{ width:100%; aspect-ratio:3/4; display:block; pointer-events:none; }
      /* Text Style properties panel: always rendered OPEN in the
         control column, directly under the Text section — no
         collapse header, no hidden state. Its controls act on
         the text selected on the canvas, or on the whole card
         when nothing is selected. */
      .pz-tsel{
        margin-top:13px; min-width:0; border:1.5px solid var(--line-strong); border-radius:14px;
        background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
        padding:13px 14px; display:grid; gap:11px;
        box-shadow:0 12px 24px -16px rgba(38,54,10,.3), inset 0 1px 0 rgba(255,255,255,.6);
      }
      /* "Editing: …" — the one live status line of the Text Style
         panel: it names what the controls will change (the tapped
         text, or the whole card), and updates on every canvas tap. */
      .pz-tsel-for{ font-size:.85rem; font-weight:600; color:var(--muted); }
      .pz-tsel-for b{ color:var(--red-dark); font-weight:800; }
      /* ---------- Audio tool ---------- */
      .pz-audio{ display:grid; gap:10px; min-width:0; }
      .pz-au-note{ margin:0; font-size:.84rem; color:var(--muted); line-height:1.55; }
      .pz-au-have{ display:grid; gap:9px; min-width:0; }
      .pz-au-have[hidden]{ display:none; }
      .pz-au-fileline{ display:flex; align-items:baseline; gap:8px; min-width:0; }
      .pz-au-name{ font-weight:700; font-size:.92rem; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
      .pz-au-dur{ font-size:.82rem; font-weight:700; color:var(--red); flex:none; }
      /* ---------- Audio trimmer (owner, 2026-11-28): the video
         may use at most 30 seconds of the song, so once a file is
         added a timeline appears — the visitor drags the gold
         window (or its edges) to choose WHICH part of the song
         the video gets, up to 30s, less if they want. ---------- */
      .pz-au-trim{ display:grid; gap:8px; min-width:0; border:1.5px solid var(--line-strong); border-radius:14px; padding:11px 12px 12px;
        background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
        box-shadow:0 12px 24px -16px rgba(38,54,10,.3), inset 0 1px 0 rgba(255,255,255,.6); }
      .pz-au-trim[hidden]{ display:none; }
      .pz-au-trim-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
      .pz-au-trim-t{ font-size:.86rem; font-weight:800; color:var(--ink); }
      .pz-au-trim-cap{ font-size:.76rem; font-weight:700; color:var(--red); white-space:nowrap; }
      /* Zoomable timeline (owner, 2026-11-28, CapCut-style):
         the track lives in a horizontally scrolling view; zoom
         stretches the track so a long song's seconds spread out
         wide enough to place the window precisely. A ruler with
         second marks sits on top and re-marks itself per zoom. */
      .pz-au-tl-view{ overflow:hidden; min-width:0; border-radius:10px; background:#0d2b1d;
        box-shadow:inset 0 0 0 1.5px rgba(233,201,121,.35), inset 0 2px 10px rgba(0,0,0,.45); }
      .pz-au-tl-track{ width:100%; max-width:100%; }
      .pz-au-ruler{ display:block; width:100%; height:19px; pointer-events:none; }
      .pz-au-wave{ display:block; width:100%; height:58px; touch-action:none; cursor:grab; }
      .pz-au-wave:active{ cursor:grabbing; }
      .pz-au-zoomrow{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; min-width:0; }
      .pz-au-zbtn{ min-width:38px; padding-left:0; padding-right:0; font-size:1.05rem; font-weight:800; line-height:1; }
      .pz-au-zrange{ flex:1; min-width:40px; accent-color:var(--red); height:28px; margin:0; }
      .pz-au-zfit{ font-size:.8rem; white-space:nowrap; }
      .pz-au-zlab{ font-size:.78rem; font-weight:700; color:var(--muted); white-space:nowrap; min-width:0; text-align:right; font-variant-numeric:tabular-nums; }
      /* Generate: the panel's primary action — builds the video
         (progress shows in the panel), then downloads it. */
      .pz-au-gen{ background:linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); border-color:var(--red-dark); color:#fff; font-weight:800; }
      .pz-au-gen:hover{ color:#fff; border-color:var(--red-deep); filter:brightness(1.07); }
      .pz-au-gen:disabled{ opacity:.55; }
      .pz-au-times{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; font-size:.84rem; color:var(--muted); font-weight:600; }
      .pz-au-times b{ color:var(--ink); font-weight:800; font-variant-numeric:tabular-nums; }
      .pz-au-times .pz-au-tlen{ margin-left:auto; color:var(--red-dark); font-weight:800; font-variant-numeric:tabular-nums; }
      .pz-au-trim-row{ display:flex; align-items:center; gap:8px; }
      .pz-au-tplay{ flex:1 1 100%; margin-top:3px; min-height:34px; font-weight:700; }
      .pz-au-row{ display:flex; gap:8px; flex-wrap:wrap; min-width:0; }
      .pz-au-prog[hidden]{ display:none; }
      .pz-au-bar{ height:8px; border-radius:99px; background:var(--line); overflow:hidden; }
      .pz-au-bar i{ display:block; height:100%; width:0%; background:linear-gradient(90deg, var(--sun), var(--red)); border-radius:99px; transition:width .3s linear; }
      .pz-au-prow{ display:flex; align-items:center; justify-content:space-between; gap:9px; margin-top:7px; }
      .pz-au-pt{ font-size:.85rem; font-weight:600; color:var(--muted); }
      .pz-tsel-head{
        width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
        padding:12px 14px; min-height:46px; text-align:left; border-radius:12px;
      }
      .pz-tsel-head:hover .pz-sel-t{ color:var(--red); }
      .pz-tsel-head .pz-sel-t{ font-size:.85rem; font-weight:700; color:var(--ink); }
      .pz-tsel-head svg{
        width:18px; height:18px; flex:none; color:var(--muted);
        transition:transform .2s ease;
      }
      .pz-tsel-head[aria-expanded="true"] svg{ transform:rotate(180deg); }
      .pz-tsel-body{ padding:2px 14px 13px; display:grid; gap:11px; }
      .pz-tsel-body[hidden]{ display:none; }
      .pz-tsel-none{ margin:0; font-size:.88rem; color:var(--muted); line-height:1.55; }
      .pz-tsel-controls{ display:grid; gap:11px; }
      .pz-tsel-controls[hidden]{ display:none; }
      .pz-tsel-row{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
      .pz-tsel-row .pz-range-lab{ font-size:.85rem; font-weight:600; color:var(--muted); white-space:nowrap; min-width:86px; }
      .pz-font-row{ display:flex; flex-wrap:wrap; gap:8px; }
      .pz-mini.on{ background:var(--red); border-color:var(--red); color:#fff; }
      .pz-swatch.grad{
        background:linear-gradient(180deg,#FBEFB0 0%,#E9C979 45%,#C9962E 100%);
      }
      .pz-preset-row{ display:flex; flex-wrap:wrap; gap:8px; }
      .pz-preset{
        display:inline-flex; align-items:center; gap:7px; min-height:38px;
        padding:7px 12px; border:1.5px solid var(--line-strong); border-radius:999px;
        background:var(--surface); font-weight:600; font-size:.85rem; color:var(--ink);
        transition:border-color .15s ease, color .15s ease, transform .12s ease;
      }
      .pz-preset:hover{ border-color:var(--red); }
      .pz-preset:active{ transform:scale(.96); }
      .pz-preset.on{ border-color:var(--red); color:var(--red); box-shadow:0 0 0 1.5px var(--red); }
      .pz-preset .dot{
        width:18px; height:18px; border-radius:50%; flex:none;
        box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.18);
      }
      /* Name-field label (localizes with the language tab) and the
         custom colour picker in the text properties panel. */
      .pz-field-lab{
        display:block; font-size:.85rem; font-weight:700; color:var(--ink);
        margin:3px 0 -3px;
      }
      .pz-translit{ display:flex; align-items:center; gap:8px; font-size:.84rem; font-weight:600; color:var(--muted); cursor:pointer; line-height:1.4; min-width:0; }
      .pz-translit-lab{ min-width:0; overflow-wrap:anywhere; }
      .pz-translit[hidden]{ display:none; }
      .pz-translit input{ width:19px; height:19px; min-height:0; accent-color:var(--red); flex:none; cursor:pointer; margin:0; }
      .pz-colorpick{
        width:44px; height:31px; min-height:31px; padding:0; cursor:pointer;
        border:2.5px solid var(--surface); border-radius:999px; background:none;
        box-shadow:0 0 0 1.5px var(--line-strong); flex:none;
      }
      .pz-colorpick::-webkit-color-swatch-wrapper{ padding:2px; }
      .pz-colorpick::-webkit-color-swatch{ border:none; border-radius:999px; }
      .pz-colorpick::-moz-color-swatch{ border:none; border-radius:999px; }

      /* ---------- WhatsApp sticker button (on every post) ----------
         A compact extra action after Download: exports the card as a
         512×512 WebP, ready to add to WhatsApp as a sticker. */
      .btn-sticker{ border-color:var(--alt-line); background:var(--alt-bg); color:var(--ink); }
      .btn-sticker:hover{ border-color:var(--sun); color:var(--ink); }
      .btn-sticker svg{ color:#B97E04; }

      /* ---------- DP Maker (#/dp-maker) ----------
         Name-art profile pictures: reuses the Card Maker studio
         shell (.pz-box / .pz-main / .pz-controls) with a square
         1080×1080 canvas. Circle shape previews (and exports) the
         artwork clipped to a circle, the way chat apps show DPs. */
      .dp-canvas{
        width:100%; height:auto; aspect-ratio:1/1; display:block; border-radius:14px;
        background:#141428; box-shadow:0 20px 40px -16px rgba(20,20,40,.45);
      }
      .dp-canvas.circle{ border-radius:50%; }
      .dp-style-note{ font-size:.82rem; color:var(--faint); margin-top:7px; line-height:1.5; }
      /* DP Designer — own-photo premium mode: upload control,
         frame picker, zoom slider and drag-to-position on the
         preview canvas. The photo is painted by the same canvas
         engine, so preview and download always match. */
      .dp-file-lab{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; justify-self:start; }
      .dp-file-lab svg{ width:18px; height:18px; }
      .dp-photo-tools{ display:grid; gap:10px; margin-top:11px; }
      .dp-photo-tools[hidden]{ display:none; }
      .dp-zoom-row{ display:flex; align-items:center; gap:12px; }
      .dp-zoom-row .pz-range-lab{ font-size:.85rem; font-weight:600; color:var(--muted); white-space:nowrap; }
      .dp-canvas.has-photo{ cursor:grab; touch-action:none; }
      .dp-canvas.has-photo:active{ cursor:grabbing; }
      .dp-frames button{ display:inline-flex; align-items:center; gap:8px; }
      .dp-fdot{ width:15px; height:15px; border-radius:50%; flex:none; box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.25); }
      .dp-fdot.gold{ background:linear-gradient(135deg,#FBEFB0,#E9C979 45%,#C9962E); }
      .dp-fdot.emerald{ background:linear-gradient(135deg,#0E5C36,#1E8A52 45%,#E9C979); }
      .dp-fdot.rose{ background:linear-gradient(135deg,#FFD3DE,#F2789F 55%,#C2437A); }
      .dp-fdot.studio{ background:linear-gradient(135deg,#FFFFFF,#E8E8EC); }
      .dp-fdot.none{ background:var(--surface-2); box-shadow:inset 0 0 0 1.5px var(--line-strong); }

      /* ---------- Story Maker (#/story-maker) ----------
         Vertical 1080×1920 WhatsApp-status videos made entirely
         in the visitor's browser: our own canvas-drawn templates,
         the visitor's photos as Ken Burns slides, their own music
         (uploaded by them, never sent anywhere), an in-page
         preview, and a MediaRecorder WebM export. Reuses the Card
         Maker studio shell (.pz-box / .pz-main / .pz-controls). */
      .sm-canvas{
        width:100%; height:auto; aspect-ratio:9/16; display:block; border-radius:14px;
        background:#0B1526; box-shadow:0 20px 40px -16px rgba(20,20,40,.45);
      }
      .sm-tpl-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
      .sm-tpl{
        padding:6px; border:1.5px solid var(--line-strong); border-radius:12px;
        background:var(--surface); display:grid; gap:5px; min-height:0; cursor:pointer;
        transition:border-color .15s ease, transform .12s ease, box-shadow .15s ease;
      }
      .sm-tpl canvas{ width:100%; height:auto; aspect-ratio:9/16; display:block; border-radius:7px; pointer-events:none; }
      .sm-tpl-lab{ font-size:.78rem; font-weight:600; color:var(--ink); text-align:center; line-height:1.25; }
      .sm-tpl:hover{ border-color:var(--red); }
      .sm-tpl:active{ transform:scale(.97); }
      .sm-tpl.on{ border-color:var(--red); box-shadow:0 0 0 1.5px var(--red); }
      .sm-file-lab{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; justify-self:start; }
      .sm-file-lab svg{ width:18px; height:18px; }
      .sm-photo-list{ display:grid; gap:8px; margin-top:11px; }
      .sm-photo-list:empty{ margin-top:0; }
      .sm-photo-row{
        display:flex; align-items:center; gap:10px; padding:7px 9px;
        border:1.5px solid var(--line); border-radius:12px; background:var(--surface);
      }
      .sm-photo-row img{ width:40px; height:54px; object-fit:cover; border-radius:7px; flex:none; background:var(--surface-2); }
      .sm-photo-name{ flex:1; min-width:0; font-size:.85rem; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .sm-mini{
        width:38px; height:38px; min-height:38px; padding:0; flex:none; display:grid; place-items:center;
        border:1.5px solid var(--line-strong); border-radius:10px; background:var(--surface); color:var(--ink); cursor:pointer;
      }
      .sm-mini svg{ width:17px; height:17px; }
      .sm-mini:hover{ border-color:var(--red); color:var(--red); }
      .sm-mini:disabled{ opacity:.35; cursor:default; }
      .sm-mini:disabled:hover{ border-color:var(--line-strong); color:var(--ink); }
      /* Preview transport (owner, 2026-11-29): the old fat
         Play/Restart pills under the preview are gone — one slim
         premium control bar now hugs the TOP EDGE of the timeline
         block: deep-emerald glass, a hairline gold border along
         its foot, a thin gold Play/Pause toggle, a ghost Restart,
         and the clock in tabular numerals at the right. */
      .sm-transport{
        position:relative;
        display:flex; align-items:center; justify-content:center; gap:7px; height:37px;
        margin:-7px -10px 8px; padding:0 10px;
        background:linear-gradient(180deg, rgba(31,66,9,.97), rgba(18,43,4,.98));
        border-bottom:1px solid rgba(255,201,77,.45);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 10px 18px -14px rgba(10,24,2,.8);
      }
      .sm-transport .sm-play, .sm-transport .sm-restart{
        display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 11px;
        border-radius:999px; font:inherit; font-size:.76rem; font-weight:800; letter-spacing:.01em;
        cursor:pointer; transition:transform .12s ease, background .15s ease, box-shadow .15s ease;
      }
      .sm-transport .sm-play{
        border:1px solid rgba(255,233,157,.85); color:#2A1D02;
        background:linear-gradient(180deg,#FFE066,#FFC531);
        box-shadow:0 3px 8px -2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.75);
      }
      .sm-transport .sm-play.playing{
        color:#FFF6D8; background:linear-gradient(180deg,#3E7D0E,#2A5C06);
        border-color:rgba(255,201,77,.6);
      }
      .sm-transport .sm-restart{
        border:1px solid rgba(245,239,224,.35); color:#F5EFE0; background:rgba(255,255,255,.06);
      }
      .sm-transport .sm-play:active, .sm-transport .sm-restart:active{ transform:scale(.95); }
      .sm-transport .sm-play svg, .sm-transport .sm-restart svg{ width:13px; height:13px; }
      .sm-transport .sm-play-ic{ display:inline-flex; }
      /* Play/Restart sit at the bar's centre (owner,
         2026-11-29); the clock stays small at the right edge,
         pinned there so the centred pair never shifts. */
      .sm-transport .sm-time{
        position:absolute; right:10px; top:50%; transform:translateY(-50%);
        font-weight:700; font-size:.76rem; color:#F5EFE0;
        font-variant-numeric:tabular-nums; letter-spacing:.03em; white-space:nowrap;
      }
      .sm-progress{ height:12px; border-radius:999px; background:var(--surface-2); overflow:hidden; box-shadow:inset 0 0 0 1.5px var(--line); }
      .sm-progress-bar{ height:100%; width:0%; border-radius:999px; background:linear-gradient(90deg,#63BC0E,#9AE52B); transition:width .2s linear; }
      /* Preset mode, slots still missing: Create stays tappable
         (tapping explains what is needed) but reads as locked. */
      .sm-create.sm-locked{ opacity:.55; filter:saturate(.55); }
      .sm-result video{ width:100%; height:auto; aspect-ratio:9/16; display:block; border-radius:14px; background:#000; }
      .sm-unsupported{
        padding:22px; border:1.5px dashed var(--line-strong); border-radius:14px;
        background:var(--surface-2); color:var(--muted); line-height:1.6; font-size:.95rem;
      }
      /* ---------- Story Maker demo presets ----------
         Five ready-made recipes in front of the manual builder:
         each card runs a small auto-playing demo painted by the
         real engine with our own sample card photos; choosing one
         locks the builder to that recipe with exact photo slots. */
      .sm-modebar{ display:flex; justify-content:center; margin-top:20px; }
      .sm-preset-wrap{ margin-top:20px; }
      .sm-preset-h{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-size:1.25rem; font-weight:700;
        color:var(--ink); text-align:center; margin:0 0 14px; line-height:1.3;
      }
      .sm-preset-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
      @media (min-width:720px){ .sm-preset-grid{ grid-template-columns:repeat(3,1fr); } }
      @media (min-width:1100px){ .sm-preset-grid{ grid-template-columns:repeat(5,1fr); } }
      .sm-preset-card{
        background:var(--surface); border:1.5px solid var(--line); border-radius:16px;
        padding:10px; display:grid; gap:8px; align-content:start;
        box-shadow:0 12px 26px -14px rgba(20,30,20,.28);
      }
      .sm-demo-wrap{ position:relative; border-radius:10px; overflow:hidden; }
      .sm-demo{ width:100%; height:auto; aspect-ratio:9/16; display:block; background:#0B1526; }
      .sm-badge{
        position:absolute; top:8px; left:8px; z-index:2;
        background:linear-gradient(135deg,#F6D47C,#C9962E); color:#2B1A02;
        font-weight:700; font-size:.72rem; padding:4px 9px; border-radius:999px;
        box-shadow:0 4px 10px rgba(0,0,0,.3);
      }
      .sm-preset-name{ font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:700; font-size:1.02rem; color:var(--ink); line-height:1.2; }
      .sm-preset-meta{ display:flex; flex-wrap:wrap; gap:6px; }
      .sm-chip{
        font-size:.7rem; font-weight:600; padding:3px 8px; border-radius:999px;
        background:var(--surface-2); border:1px solid var(--line); color:var(--muted);
      }
      .sm-chip.gold{ background:rgba(242,193,78,.16); border-color:rgba(201,150,46,.55); color:var(--ink); }
      .sm-preset-feel{ font-size:.78rem; color:var(--muted); line-height:1.45; margin:0; }
      .sm-use{ width:100%; justify-content:center; }
      .sm-lock{
        display:inline-flex; align-items:center; gap:6px; font-size:.76rem; font-weight:600;
        padding:5px 10px; border-radius:999px; background:var(--surface-2);
        border:1.5px solid var(--line-strong); color:var(--ink);
      }
      .sm-lock svg{ width:13px; height:13px; color:#B97E04; }
      .sm-slot-list{ display:grid; gap:8px; margin-top:11px; }
      .sm-slot-list:empty{ margin-top:0; }
      .sm-slot-empty{
        display:flex; align-items:center; justify-content:space-between; gap:10px;
        padding:10px 12px; min-height:44px; border:1.5px dashed var(--line-strong);
        border-radius:12px; background:var(--surface-2); cursor:pointer;
      }
      .sm-slot-num{ font-weight:700; font-size:.85rem; color:var(--ink); }
      .sm-slot-add{ display:inline-flex; align-items:center; gap:7px; font-size:.82rem; font-weight:600; color:var(--red); }
      .sm-slot-add svg{ width:17px; height:17px; }
      /* Preset slot Replace pill (owner, 2026-11-29): sits
         where the ✕ used to be — a clear word, not an icon,
         so nobody mistakes it for delete. */
      .sm-slot-replace{
        margin-left:auto; flex:none; cursor:pointer; user-select:none;
        font-size:.78rem; font-weight:700; letter-spacing:.01em;
        color:var(--brand-ink, #14532D);
        background:linear-gradient(180deg, #F4FBF3, #E2F2DF);
        border:1.5px solid rgba(21,101,52,.45); border-radius:999px;
        padding:7px 14px;
      }
      .sm-slot-replace:active{ transform:scale(.97); }
      .sm-tl-clip.dragging{ box-shadow:0 6px 18px rgba(0,0,0,.45); z-index:3; }
      .sm-create:disabled{ opacity:.45; cursor:not-allowed; }
      /* ---------- Story Maker gallery + CapCut-style studio ----------
         The landing page is a gallery (category chips + big visual
         cards). Every preset and Manual opens its OWN editor page:
         a fixed one-screen studio — slim top bar, icon rail with
         flyout panels, a big 9:16 preview and a real timeline
         (filmstrip + transition markers + audio waveform). */
      /* The studio lock class is sm-lockon — NEVER sm-lock: the
         preset badge pill above is also called .sm-lock
         (border-radius:999px + background + border), and the
         router toggles the lock class on <body> too, so a class
         named sm-lock turned the whole <body> into a giant pill
         and the lock's overflow:hidden clipped the entire page
         into an ellipse (the "oval frame" bug, owner screenshot
         2026-11-28; root cause found by bisection 2026-11-29:
         class present = ellipse, class absent = clean, in every
         configuration; Card Maker never collided because no
         .cm-lock badge class exists). The lock itself is the
         standard Card Maker pattern: root height lock + flex
         chain from <main>. */
      html.sm-lockon, html.sm-lockon body{ height:100dvh; overflow:hidden; }
      html.sm-lockon body{ min-height:0; }
      html.sm-lockon main{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      html.sm-lockon .site-foot, html.sm-lockon .showcase{ display:none; }
      html.sm-lockon .to-top{ display:none !important; }
      @media (max-width:760px){
        html.sm-lockon body{ padding-bottom:0; }
        html.sm-lockon .sm-shell{ padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
      }
      .sm-shell{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }

      /* Filter chips get the FULL row width on their own line —
         no sideways scroll and nothing beside them, so no chip
         can ever be half-hidden (the old row shared its line
         with the Manual button and the 4th chip slid under it).
         Chips share the row equally (flex:1) at a compact size,
         so all six fit one line at 360px and 390px alike.
         Manual is a mode, not a category: it sits BELOW the
         chips as its own full-width premium button. */
      .sm-chips-row{ margin:16px 0 18px; }
      .sm-chips{ display:flex; flex-wrap:nowrap; gap:6px; }
      .sm-chip-f{
        flex:1 1 0; min-width:0; padding:7px 4px; min-height:38px; border-radius:999px; cursor:pointer;
        border:1.5px solid var(--line-strong); background:var(--surface);
        font-family:inherit; font-weight:600; font-size:.84rem; color:var(--ink);
        white-space:nowrap; text-align:center;
      }
      .sm-chip-f.on{ background:var(--red); border-color:var(--red); color:#fff; }
      @media (max-width:480px){
        .sm-chips{ gap:5px; }
        .sm-chip-f{ font-size:.76rem; padding:6px 2px; min-height:36px; letter-spacing:-.01em; }
      }
      .sm-manual-btn{
        display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
        margin-top:10px; min-height:46px; padding:9px 16px; border-radius:14px; text-decoration:none;
        font-weight:800; font-size:.95rem; color:#FFE9A8; white-space:nowrap;
        background:linear-gradient(160deg,#0B3D24,#14632A); border:1.5px solid #C9962E;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 10px 22px -10px rgba(10,61,32,.6);
      }
      .sm-manual-btn:hover{ text-decoration:none; filter:brightness(1.08); }
      .sm-manual-btn svg{ width:18px; height:18px; flex:none; }
      .sm-manual-btn .sm-manual-sub{ font-weight:600; font-size:.8rem; color:rgba(255,233,168,.78); }
      .sm-ggrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
      @media (min-width:720px){ .sm-ggrid{ grid-template-columns:repeat(4,1fr); gap:12px; } }
      @media (min-width:1100px){ .sm-ggrid{ grid-template-columns:repeat(5,1fr); } }
      .sm-gcard{
        display:block; text-decoration:none; background:var(--surface);
        border:1.5px solid var(--line); border-radius:16px; overflow:hidden; color:var(--ink);
      }
      .sm-gcard:hover{ border-color:var(--red); }
      .sm-gcard .sm-demo-wrap{ border-radius:0; }
      .sm-gbody{ padding:9px 10px 11px; }
      .sm-gbody .sm-preset-name{ font-size:.92rem; text-align:center; }
      .sm-gmanual-v{
        aspect-ratio:9/16; display:grid; place-items:center; align-content:center; gap:10px;
        background:linear-gradient(160deg,#0B3D24,#0B1526); color:#F2C14E; text-align:center; padding:16px;
      }
      .sm-gmanual-v svg{ width:52px; height:52px; }
      .sm-gmanual-v span{ font-weight:700; font-size:.95rem; color:#F5EFE0; line-height:1.35; }
      /* Studio frame */
      .pz-box.sm-box{
        flex:1 1 auto; min-height:0; display:flex; flex-direction:column;
        border:none; border-radius:0; box-shadow:none; background:var(--surface-2); padding:0; margin:0;
      }
      .sm-top{
        flex:none; display:flex; align-items:center; gap:10px;
        padding:5px 10px; background:var(--surface); border-bottom:1px solid var(--line);
      }
      .sm-top .mk-wsback{ width:36px; height:36px; min-height:36px; flex:none; }
      .sm-top-name{ font-size:1.08rem; font-weight:800; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; }
      .sm-top-right{ margin-left:auto; display:flex; align-items:center; gap:8px; flex:none; }
      .sm-top .sm-create{ min-height:36px; padding:6px 14px; }
      .sm-status{ flex:none; background:var(--surface); padding:0 12px; }
      .sm-status:empty{ display:none; }
      .sm-status .dp-style-note{ margin:7px 0; }
      .sm-status .sm-prog-wrap{ margin:8px 0; }
      .sm-main{ flex:1 1 auto; min-height:0; display:flex; position:relative; }
      .sm-rail{
        flex:none; width:62px; display:flex; flex-direction:column; gap:2px;
        padding:5px 6px; background:var(--surface); border-right:1px solid var(--line); z-index:32;
        min-height:0; overflow-y:auto; scrollbar-width:none;
      }
      .sm-rail::-webkit-scrollbar{ display:none; }
      .sm-rail button{
        display:flex; flex-direction:column; align-items:center; gap:1px; flex:none;
        padding:5px 2px; min-height:43px; border:none; border-radius:11px; cursor:pointer;
        background:transparent; color:var(--muted); font-family:inherit; font-size:.6rem; font-weight:700;
      }
      .sm-rail button svg{ width:18px; height:18px; }
      .sm-rail button.on{ background:var(--surface-2); color:var(--red); box-shadow:inset 0 0 0 1.5px var(--red); }
      .sm-rail button .sm-rail-lock{ font-size:.52rem; color:#B97E04; }
      .sm-panel{
        flex:none; width:308px; overflow-y:auto; overscroll-behavior:contain;
        background:var(--surface); border-right:1px solid var(--line); padding:14px;
      }
      .sm-psec{ display:none; }
      .sm-psec.on{ display:block; }
      .sm-psec > div + div{ margin-top:16px; }
      @media (max-width:860px){
        .sm-panel{
          position:absolute; left:62px; top:0; bottom:0; z-index:31;
          width:min(300px,78vw); box-shadow:14px 0 30px rgba(0,0,0,.18);
        }
        .sm-panel.closed{ display:none; }
      }
      .sm-stage{
        flex:1 1 auto; min-width:0; min-height:0; position:relative;
        display:flex; flex-direction:column; align-items:center; gap:9px; padding:12px;
        background:radial-gradient(120% 90% at 50% 0%, #0E4D2E 0%, #0B3D24 55%, #082C1A 100%);
      }
      .sm-cvwrap{ flex:1 1 auto; min-height:0; width:100%; display:flex; align-items:center; justify-content:center; }
      .sm-canvas{
        display:block; max-width:100%; max-height:100%; width:auto; height:auto;
        aspect-ratio:9/16; border-radius:14px; background:#0B1526;
        box-shadow:0 18px 44px rgba(0,0,0,.45);
      }
      .sm-transport{ flex:none; }
      .sm-result{
        position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:20;
        width:min(320px,88%); background:var(--surface); border-radius:16px; padding:14px;
        box-shadow:0 24px 60px rgba(0,0,0,.5); display:grid; gap:10px; justify-items:center;
      }
      .sm-result[hidden]{ display:none; }
      .sm-result-video{ width:100%; max-height:46dvh; border-radius:10px; background:#000; }
      /* Result popup chrome (owner, 2026-11-29): a dim backdrop
         over the stage and a premium close button — one tap
         (or backdrop tap, or Escape) returns to the untouched
         editor, downloaded or not. */
      .sm-result-backdrop{
        position:absolute; inset:0; z-index:19; border-radius:14px;
        background:rgba(4,12,7,.55); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px);
      }
      .sm-result-backdrop[hidden]{ display:none; }
      .sm-result-x{
        position:absolute; top:-12px; right:-12px; z-index:2;
        width:36px; height:36px; min-height:36px; padding:0; display:grid; place-items:center;
        border-radius:50%; cursor:pointer; color:#FFF7E0;
        background:linear-gradient(180deg, rgba(38,77,14,.98), rgba(20,46,6,.98));
        border:1.5px solid rgba(255,201,77,.75);
        box-shadow:0 8px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.22);
      }
      .sm-result-x svg{ width:16px; height:16px; }
      .sm-result-x:active{ transform:scale(.93); }
      /* Timeline */
      .sm-tl{ flex:none; background:var(--surface); border-top:1px solid var(--line); padding:7px 10px 9px; }
      .sm-tl-head{ display:flex; align-items:center; gap:8px; margin-bottom:5px; }
      /* The head row now carries only the selected-clip
         stepper (the Timeline word lives in the left rail);
         with no clip selected the row is not there at all. */
      .sm-tl-head.off{ display:none; }
      .sm-tl-title{ font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
      .sm-tl-zoom{ margin-left:auto; display:flex; align-items:center; gap:5px; }
      .sm-tl-zb{
        width:30px; height:30px; min-height:30px; padding:0; display:grid; place-items:center;
        border:1.5px solid var(--line-strong); border-radius:9px; background:var(--surface);
        color:var(--ink); cursor:pointer; font-family:inherit; font-weight:800; font-size:.8rem;
      }
      .sm-tl-zb.fit{ width:auto; padding:0 10px; font-size:.72rem; }
      .sm-tl-scroll{ overflow-x:auto; overflow-y:hidden; overscroll-behavior:contain; scrollbar-width:none; }
      .sm-tl-scroll::-webkit-scrollbar{ display:none; }
      /* (The black end-stopper bar that used to live here was
         removed at the owner's word, 2026-11-30: on the fixed
         30s axis it sat mid-track and read as a black bar
         stuck in the image timeline. Nothing is painted at
         the sequence end any more.) */
      /* Left rail (owner, 2026-11-29, from their timeline
         screenshot): one slim dark rail at the timeline's
         left carries the TIMELINE label at the ruler's
         height, the video strip's "− Fit +" centred on the
         filmstrip line, and the MP3 strip's "− Fit +" at the
         waveform line's start; ruler, clips and waveform run
         to the right of the rail. The rail is a flex sibling
         of the scroll area, so it never scrolls away. Its
         rows mirror the scroll content's own heights (ruler
         17px, film 66px with 6px gaps) so each group lines
         up with its strip. */
      .sm-tl-main{ display:flex; gap:6px; align-items:stretch; }
      .sm-tl-rail{
        flex:none; display:flex; flex-direction:column; padding:0 6px;
        border-radius:10px; border:1px solid rgba(255,201,77,.35);
        background:linear-gradient(180deg, rgba(31,66,9,.97), rgba(18,43,4,.98));
        box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
      }
      .sm-tl-rail-lab{
        height:17px; flex:none; display:flex; align-items:center; justify-content:center;
        background:#FFF7E0; color:#22300A; border-radius:0 0 5px 5px;
        font-size:.6rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
        padding:0 5px; white-space:nowrap;
      }
      .sm-tl-zgrp{ display:flex; gap:4px; align-items:center; height:66px; margin-top:6px; flex:none; }
      .sm-tl-rail .sm-tl-zb{
        width:27px; height:27px; min-height:27px; border-radius:8px; font-size:.78rem;
        background:rgba(255,255,255,.07); border-color:rgba(245,239,224,.4); color:#F5EFE0;
      }
      .sm-tl-rail .sm-tl-zb.fit{ width:auto; padding:0 8px; font-size:.68rem; color:#FFD23E; border-color:rgba(255,201,77,.55); }
      @media (max-width:560px){
        .sm-tl-rail{ padding:0 4px; }
        .sm-tl-rail .sm-tl-zb{ width:24px; height:24px; min-height:24px; font-size:.72rem; }
        .sm-tl-rail .sm-tl-zb.fit{ padding:0 6px; font-size:.64rem; }
        .sm-tl-rail-lab{ font-size:.54rem; padding:0 3px; }
      }
      .sm-tl-main .sm-tl-scroll{ flex:1; min-width:0; }
      /* The timeline's right column: the scrolling photo
         track on top, the MP3 strip fixed under it. The strip
         never scrolls sideways and never grows — it is a
         fixed-size window onto the song, however long the
         song is (owner, 2026-11-30). */
      .sm-tl-right{ flex:1; min-width:0; display:flex; flex-direction:column; position:relative; }
      .sm-tl-right .sm-tl-scroll{ flex:none; }
      .sm-tl-inner{ position:relative; min-width:100%; }
      .sm-tl-ruler{ position:relative; height:17px; border-bottom:1px solid var(--line); cursor:pointer; touch-action:none; }
      .sm-tl-tick{ position:absolute; bottom:0; transform:translateX(1px); font-size:.6rem; color:var(--muted); font-variant-numeric:tabular-nums; }
      .sm-tl-tick::after{ content:""; position:absolute; left:0; bottom:-1px; width:1px; height:5px; background:var(--line-strong); }
      .sm-tl-film{ position:relative; height:66px; margin-top:6px; cursor:pointer; touch-action:none; }
      /* Premiere model: clips are absolutely placed at their
         own start second — the track is not a flex row, so a
         gap between clips is real empty track. */
      .sm-tl-clip{ position:absolute; top:0; height:66px; overflow:hidden; background:#0B1526; touch-action:none; cursor:pointer; border-radius:9px; }
      .sm-tl-clip img{ width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; -webkit-user-drag:none; }
      .sm-tl-clip span{
        position:absolute; left:5px; bottom:4px; font-size:.62rem; font-weight:700; color:#fff;
        background:rgba(5,10,8,.72); padding:2px 6px; border-radius:999px; font-variant-numeric:tabular-nums;
      }
      .sm-tl-empty{
        flex:1; display:grid; place-items:center; height:66px; border:1.5px dashed var(--line-strong);
        border-radius:9px; color:var(--muted); font-size:.8rem; font-weight:600;
      }
      .sm-tl-mark{
        position:absolute; top:56px; width:19px; height:26px; z-index:4;
        margin:0; padding:0; box-sizing:border-box;
        transform:translate(-50%,-50%); border-radius:6px;
        display:grid; place-items:center; font-size:11px; font-weight:900; line-height:1;
        box-shadow:0 1px 5px rgba(0,0,0,.3);
      }
      .sm-tl-mark.is-set{ background:#F2C14E; border:2px solid var(--surface); color:#231303; }
      .sm-tl-mark.is-gap{ background:#12233A; border:1.5px dashed rgba(242,193,78,.85); color:#F2C14E; }
      /* The audio strip (owner, 2026-11-29; plain block,
         2026-11-30): the timeline's audio track — a slim top
         row (song name) when there is no block, the plain
         audio block when a song is loaded, and the standing
         red ✕ at the end. */
      .sm-tl-audio{
        position:relative; margin-top:6px; border-radius:8px; overflow:hidden;
        background:#0B3D24; cursor:pointer; padding:0 0 2px;
      }
      .sm-tl-au-top{ display:flex; align-items:center; gap:8px; min-height:30px; padding:0 7px; }
      .sm-tl-au-name{
        font-size:.66rem; font-weight:700; color:#D9F2E2; white-space:nowrap;
        overflow:hidden; text-overflow:ellipsis; pointer-events:none;
      }
      .sm-tl-audio.none{ background:var(--surface-2); }
      .sm-tl-audio.none .sm-tl-au-name{ color:var(--muted); }
      /* ONE playhead (owner, 2026-11-30, final word): there
         is exactly ONE line element for the whole timeline —
         .sm-tl-play, a child of the timeline's right column,
         stretched from the column's top to its bottom, so it
         runs in one unbroken stroke from the ruler, across
         the photo strip and the MP3 strip's head row, and
         through the waveform view itself, always at one x.
         There is no second line, segment or continuation
         anywhere: no canvas paints one and no other element
         carries one, so the line can never appear cut in
         two at two different places — half over the photos,
         half over the MP3. The line is RED (owner,
         2026-11-30: not the brand green the --red variable
         happens to hold), parked where playback stopped,
         never vanished. */
      .sm-tl-play{
        position:absolute; top:0; bottom:0; width:2px; background:#E5322D; z-index:8; pointer-events:none;
        box-shadow:1px 0 0 rgba(0,0,0,.28), -1px 0 0 rgba(255,255,255,.22);
      }
      .sm-tl-play::before{
        content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
        border:5px solid transparent; border-top:7px solid #E5322D;
      }
      /* Per-clip timing (owner, 2026-11-29): a selected clip is
         outlined; BOTH edges carry a drag grip (ew-resize cursor,
         touch-action:none so a touch-drag resizes instead of
         scrolling the timeline); the head row shows the length
         with −/+ steppers; junction markers are tappable and
         draggable and highlight when targeted. */
      /* The selected clip's yellow frame (owner, 2026-11-30,
         video report — "the yellow frame is not working"):
         it used to be an INSET box-shadow, which paints
         UNDER the clip's photo — and the photo fills the
         whole clip, so the frame never showed at all. The
         frame is now an overlay ring painted ABOVE the
         photo and the edge grips, impossible to miss, on
         the selected clip and on a clip being dragged. */
      .sm-tl-clip.sel{ box-shadow:0 2px 10px rgba(0,0,0,.35); }
      .sm-tl-clip.sel::after, .sm-tl-clip.dragging::after{
        content:""; position:absolute; inset:0; z-index:4; pointer-events:none;
        border:3px solid #FFC531; border-radius:9px;
        box-shadow:inset 0 0 0 1.5px rgba(24,18,0,.45);
      }
      /* The selected clip's own delete ✕ (owner, 2026-11-30):
         a standing red chip on the clip itself — select a
         photo on the timeline, tap the ✕, it is gone. */
      .sm-tl-clipdel{
        position:absolute; top:4px; right:4px; z-index:5; width:22px; height:22px; min-height:22px;
        padding:0; border:none; border-radius:50%; background:#D93636; color:#fff;
        font-size:.68rem; font-weight:900; line-height:1; display:grid; place-items:center;
        cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,.45);
      }
      .sm-tl-handle{
        position:absolute; top:0; width:16px; height:100%; cursor:ew-resize; touch-action:none; z-index:3;
      }
      .sm-tl-handle.R{ right:0; background:linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.38)); }
      .sm-tl-handle.L{ left:0; background:linear-gradient(270deg, rgba(0,0,0,0), rgba(0,0,0,.38)); }
      .sm-tl-handle::after{
        content:""; position:absolute; top:50%; transform:translateY(-50%);
        width:3px; height:22px; border-radius:2px; background:rgba(255,255,255,.85);
      }
      .sm-tl-handle.R::after{ right:5px; box-shadow:4px 0 0 rgba(255,255,255,.55); }
      .sm-tl-handle.L::after{ left:5px; box-shadow:-4px 0 0 rgba(255,255,255,.55); }
      .sm-tl-mark{ cursor:ew-resize; touch-action:none; }
      /* Audio block on the timeline (owner, 2026-11-30): a
         plain gold-rimmed block at the photo track's own
         scale — its left edge is where the song starts in
         the video, its width is the chosen part's length,
         and dragging its body moves that placement. WHICH
         part plays is chosen in the MP3 panel directly
         under this timeline (the .sm-pk styles below),
         never on this strip. */
      .sm-tl-audio{ height:42px; }
      .sm-tl-audio.has-au .sm-tl-au-top{ display:none; }
      .sm-tl-aublock{
        position:absolute; top:4px; height:34px; z-index:2;
        border:2px solid #FFD23E; border-radius:7px; cursor:grab; touch-action:none;
        background:linear-gradient(180deg, rgba(31,90,44,.94), rgba(14,54,28,.96));
        box-shadow:inset 0 0 0 1px rgba(0,0,0,.35), 0 1px 5px rgba(0,0,0,.35);
        display:flex; align-items:center; gap:6px; padding:0 8px; overflow:hidden;
      }
      .sm-tl-aublock:active{ cursor:grabbing; }
      .sm-tl-aublock[hidden]{ display:none; }
      .sm-tl-aublock-name{
        font-size:.64rem; font-weight:700; color:#FFE9A8; white-space:nowrap;
        overflow:hidden; text-overflow:ellipsis; pointer-events:none;
      }
      .sm-tl-aublock-len{
        font-size:.62rem; font-weight:800; color:#fff; background:rgba(5,10,8,.55);
        padding:1px 6px; border-radius:999px; pointer-events:none; flex:none;
        font-variant-numeric:tabular-nums;
      }
      /* The MP3 picker under the timeline (owner,
         2026-11-30): the Card Maker's audio panel — big
         waveform under a fixed gold frame, zoom row with a
         slider, Start/End/Length readout, Play this part,
         Replace/Remove — placed directly under the photo
         strip at the full width of the editing surface, so
         the song is edited where the photos are and its
         Play runs the synced preview. It used to sit in
         the Audio side panel; playing it there moved
         nothing on the timeline. Same component in Manual
         and Preset, for uploads and built-in beats alike.
         The bottom zone (photo strip + this panel) is
         deliberately taller now so both stay readable;
         the stage above keeps the rest of the height. */
      .sm-pk{ display:grid; gap:8px; min-width:0; border:1.5px solid var(--line-strong); border-radius:14px; padding:11px 12px 12px; background:var(--surface); margin-top:10px; }
      .sm-pk[hidden]{ display:none; }
      .sm-pk-fileline{ display:flex; align-items:baseline; gap:8px; min-width:0; }
      .sm-pk-name{ font-weight:700; font-size:.92rem; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
      .sm-pk-dur{ font-size:.82rem; font-weight:700; color:var(--red); flex:none; font-variant-numeric:tabular-nums; }
      .sm-pk-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
      .sm-pk-t{ font-size:.86rem; font-weight:800; color:var(--ink); }
      .sm-pk-cap{ font-size:.76rem; font-weight:700; color:var(--red); white-space:nowrap; }
      .sm-pk-view{ overflow:hidden; min-width:0; border-radius:10px; background:#0d2b1d; touch-action:none; }
      .sm-pk-track{ width:100%; max-width:100%; }
      .sm-pk-ruler{ display:block; width:100%; height:15px; pointer-events:none; }
      .sm-pk-wave{ display:block; width:100%; height:50px; touch-action:none; cursor:grab; }
      .sm-pk-wave:active{ cursor:grabbing; }
      .sm-pk-zoomrow{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; min-width:0; }
      .sm-pk-zbtn{ min-width:38px; padding-left:0; padding-right:0; font-size:1.05rem; font-weight:800; line-height:1; }
      .sm-pk-zrange{ flex:1; min-width:40px; accent-color:var(--red); height:28px; margin:0; }
      .sm-pk-zlab{ font-size:.78rem; font-weight:700; color:var(--muted); white-space:nowrap; min-width:0; text-align:right; font-variant-numeric:tabular-nums; }
      .sm-pk-times{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; font-size:.84rem; color:var(--muted); font-weight:600; }
      .sm-pk-times b{ color:var(--ink); font-weight:800; font-variant-numeric:tabular-nums; }
      .sm-pk-times .sm-pk-tlen{ margin-left:auto; color:var(--red-dark); font-weight:800; font-variant-numeric:tabular-nums; }
      .sm-pk-tplay{ flex:1 1 100%; margin-top:3px; min-height:34px; font-weight:700; }
      .sm-pk-row{ display:flex; gap:8px; flex-wrap:wrap; min-width:0; }
      /* The MP3 strip (owner, 2026-11-30, final model): the
         ONE MP3 panel, sitting directly under the photo strip
         inside the timeline. A slim head row (song name,
         placement + Start/End readout, zoom readout — no
         play button inside the strip; playback is the
         transport's — drag the row to move where the song
         starts in the video) over the waveform view (the
         strip's own ruler + the song under its gold frame,
         painted by the strip's canvas code). The frame runs
         flush from the strip's left edge to its right edge;
         the slim ending bar at the timeline's end carries
         the standing red ✕. The strip's height is fixed: a
         longer song changes nothing here, it only slides
         inside the frame. */
      .sm-tl-zgrp-au{ height:93px; }
      .sm-au-strip{
        position:relative; margin-top:6px; border-radius:8px; overflow:hidden;
        background:#0B3D24; touch-action:none; user-select:none; -webkit-user-select:none;
      }
      .sm-au-strip.none{ background:var(--surface-2); }
      .sm-au-head{
        display:flex; align-items:center; gap:8px; height:28px;
        padding:0 7px; cursor:grab; touch-action:none; user-select:none;
      }
      .sm-au-head:active{ cursor:grabbing; }
      /* The head row's drag grip (owner, 2026-11-30): the
         row is the MP3's handle — dragging it moves where
         the song starts in the video — so it carries a
         visible grip, and the row is a little taller than
         the old 22px to be grabbable by a thumb (the strip
         total grows 87px → 93px; the rail groups mirror
         it). Hidden in the empty state, when there is no
         song to move. */
      .sm-au-grip{
        flex:none; display:grid; place-items:center; pointer-events:none;
        color:rgba(255,210,62,.9);
      }
      .sm-au-grip svg{ width:10px; height:16px; display:block; }
      .sm-au-strip.none .sm-au-grip{ display:none; }
      .sm-au-name{
        font-size:.66rem; font-weight:700; color:#D9F2E2; white-space:nowrap;
        overflow:hidden; text-overflow:ellipsis; pointer-events:none; min-width:0;
      }
      .sm-au-strip.none .sm-au-name{ color:var(--muted); }
      .sm-au-times{
        font-size:.63rem; font-weight:600; color:rgba(233,240,225,.78);
        white-space:nowrap; pointer-events:none; font-variant-numeric:tabular-nums;
      }
      .sm-au-times b{ color:#FFE9A8; font-weight:800; }
      .sm-au-times .sm-pk-tlen{ color:#FFD23E; font-weight:800; }
      .sm-au-strip .sm-pk-zlab{
        margin-left:auto; font-size:.64rem; font-weight:700; white-space:nowrap;
        color:rgba(233,240,225,.72); font-variant-numeric:tabular-nums; pointer-events:none;
      }
      .sm-au-strip.none .sm-au-times,
      .sm-au-strip.none .sm-pk-zlab,
      .sm-au-strip.none .sm-au-view{ display:none; }
      .sm-au-strip.none .sm-au-head{ cursor:default; }
      .sm-au-view{ border-radius:0; position:relative; }
      /* Ending bar (owner, 2026-11-30): the timeline's end
         piece — the left rail's own dark-green style, but
         SLIMMER (the customer's correction: same look, less
         width), spanning the ruler, the photo strip and the
         MP3 strip in one column. Its rows mirror the strips'
         heights (ruler 17, film 66, MP3 strip 93, 6px gaps)
         so the red ✕ it carries sits exactly at the MP3
         strip's height. The strips run flush into it: no
         stopper and no gap inside either strip any more. */
      .sm-tl-rail-end{
        flex:none; width:36px; display:flex; flex-direction:column; padding:0 4px;
        border-radius:10px; border:1px solid rgba(255,201,77,.35);
        background:linear-gradient(180deg, rgba(31,66,9,.97), rgba(18,43,4,.98));
        box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
      }
      .sm-tl-railend-top{ height:17px; flex:none; }
      .sm-tl-railend-mid{ height:66px; margin-top:6px; flex:none; }
      .sm-tl-railend-bot{ height:93px; margin-top:6px; flex:none; display:grid; place-items:center; }
      .sm-tl-rail-end .sm-tl-audel.sm-au-x{
        position:static; right:auto; top:auto; transform:none;
        width:22px; height:22px; min-height:22px; padding:0;
        display:grid; place-items:center; font-size:.62rem; line-height:1;
      }
      .sm-tl-clip span{ pointer-events:none; }
      /* Trim tooltip + body-drag reorder (owner, 2026-11-29,
         from the Premiere Pro reference video): while an edge
         is dragged a dark tooltip rides the boundary showing
         the change and the new length; while a clip body is
         dragged the clip lifts and follows the pointer, its
         neighbours slide aside and a gold line marks the
         landing slot. */
      .sm-tl-tip{
        position:absolute; z-index:9; transform:translate(-50%,-100%);
        background:#10151C; color:#fff; font-size:.68rem; font-weight:800;
        padding:4px 9px; border-radius:7px; pointer-events:none; white-space:nowrap;
        font-variant-numeric:tabular-nums; box-shadow:0 4px 14px rgba(0,0,0,.45);
      }
      .sm-tl-tip[hidden]{ display:none; }
      .sm-tl-inner.reordering .sm-tl-mark{ opacity:0; }
      .sm-tl-film.reordering .sm-tl-clip{ transition:transform .13s ease; }
      .sm-tl-film.reordering .sm-tl-clip.dragging{ transition:none; }
      .sm-tl-clip.dragging{
        z-index:5; opacity:.94; cursor:grabbing;
        box-shadow:0 8px 20px rgba(0,0,0,.5);
      }
      .sm-tl-insert{
        position:absolute; top:-3px; bottom:-3px; width:3px; border-radius:2px;
        transform:translateX(-50%);
        background:#F2C14E; box-shadow:0 0 0 1px rgba(0,0,0,.4), 0 0 10px rgba(242,193,78,.8);
        z-index:6; pointer-events:none;
      }
      .sm-tl-insert[hidden]{ display:none; }
      /* The audio clip under the filmstrip, selected: a gold
         inset ring, and its own ✕ Remove chip on the bar. */
      .sm-tl-audio.sel{ box-shadow:inset 0 0 0 2px #F2C14E; }
      .sm-tl-audel{
        position:absolute; right:6px; top:50%; transform:translateY(-50%); z-index:3;
        min-height:24px; padding:3px 10px; border:none; border-radius:999px;
        background:#D93636; color:#fff; font:inherit; font-size:.68rem; font-weight:800;
        cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.35); white-space:nowrap;
      }
      /* The audio strip's standing ✕ (owner, 2026-11-29):
         ONE chip for the whole strip, always on screen —
         song or no song — capped onto the very end of the
         strip where the black end stopper sits, its right
         edge flush with the stopper's right edge so the two
         read as one end piece. Its left is painted by
         smAuXPaint (the sequence end, at the photo scale). */
      .sm-tl-audio .sm-tl-audel.sm-au-x{
        right:auto; width:22px; height:22px; min-height:22px; padding:0;
        display:grid; place-items:center; font-size:.62rem; line-height:1;
        transform:translate(-100%,-50%); z-index:6;
      }
      /* The MP3 right-click / long-press menu (shared by the
         Story Maker and Card Maker audio areas). */
      .mk-au-menu{
        position:fixed; z-index:9999; min-width:168px; padding:5px;
        background:var(--surface, #fff); border:1.5px solid var(--line-strong, #ccc);
        border-radius:12px; box-shadow:0 16px 40px rgba(0,0,0,.35); display:grid; gap:2px;
      }
      .mk-au-menu button{
        min-height:40px; padding:8px 12px; border:none; border-radius:8px; background:transparent;
        color:var(--ink, #222); font:inherit; font-size:.85rem; font-weight:700; text-align:left; cursor:pointer;
      }
      .mk-au-menu button:hover{ background:var(--surface-2, #f0f0e8); }
      .mk-au-menu button.danger{ color:#C62828; }
      /* Photo rows carry no file name any more, so the row's
         action buttons pin to the right edge on their own. */
      .sm-photo-row > button:first-of-type{ margin-left:auto; }
      .sm-photo-row{ flex-wrap:wrap; }
      /* Sequence badge (owner, 2026-11-29): the photo's number
         sits ON its thumbnail corner — gold, ringed, unmissable
         — in the Photos list, the preset slots and (as
         .sm-tl-num) on every timeline clip. Numbers are baked
         into the render, so a reorder re-renders and every
         badge instantly shows the new order. */
      .sm-thumb{ position:relative; flex:none; display:block; }
      .sm-photo-num{
        position:absolute; top:-7px; left:-7px; z-index:2;
        min-width:21px; height:21px; padding:0 4px; display:grid; place-items:center;
        border-radius:999px; font-size:.72rem; font-weight:800; color:#2A1D02;
        background:linear-gradient(180deg,#FFE066,#FFC531);
        border:1.5px solid #FFF7E0;
        box-shadow:0 2px 6px rgba(20,20,10,.45);
      }
      .sm-tl-num{
        position:absolute; top:3px; left:3px; z-index:3;
        min-width:17px; height:17px; padding:0 3px; display:grid; place-items:center;
        border-radius:999px; font-size:.6rem; font-weight:800; color:#2A1D02;
        background:linear-gradient(180deg,#FFE066,#FFC531);
        border:1.2px solid #FFF7E0;
        box-shadow:0 1px 4px rgba(0,0,0,.5);
      }
      .sm-photo-full{
        display:none; flex-basis:100%; padding:2px 2px 2px 50px;
        font-size:.78rem; color:var(--muted); word-break:break-all; line-height:1.45;
      }
      .sm-photo-row.sel{ border-color:var(--gold); }
      .sm-photo-row.sel .sm-photo-full{ display:block; }
      .sm-audio-note:empty{ display:none; }
      .sm-audio-note{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .sm-tl-mark.sel{ background:var(--red); box-shadow:0 0 0 3px rgba(242,193,78,.75), 0 1px 5px rgba(0,0,0,.3); }
      .sm-tl-edit{ display:flex; align-items:center; gap:6px; }
      .sm-tl-edit[hidden]{ display:none; }
      .sm-tl-edit-lab{ font-size:.74rem; font-weight:800; color:var(--ink); white-space:nowrap; }
      .sm-tl-edit-val{ font-size:.76rem; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; min-width:34px; text-align:center; }
      .sm-tl-edit-tr{
        min-height:30px; padding:4px 10px; border:1.5px solid var(--line-strong); border-radius:9px;
        background:var(--surface-2); color:var(--ink); cursor:pointer; font:inherit; font-weight:700; font-size:.72rem;
      }
      /* Delete in the selected clip's editor row (owner,
         2026-11-30): a plain red Delete button beside
         Transition — removing a photo never requires leaving
         the timeline for the Photos panel. */
      .sm-tl-edit-del{
        min-height:30px; padding:4px 11px; border:none; border-radius:9px;
        background:#D93636; color:#fff; cursor:pointer; font:inherit; font-weight:800; font-size:.72rem;
        white-space:nowrap; box-shadow:0 1px 5px rgba(0,0,0,.25);
      }
      .sm-canvas.wide{ aspect-ratio:16/9; }
      /* Transition tiles with live previews (owner, 2026-11-29) */
      .sm-trans-target{
        margin:9px 0 0; padding:7px 10px; border-radius:9px; cursor:pointer;
        background:var(--surface-2); border:1.5px dashed var(--line-strong);
        font-size:.78rem; font-weight:700; color:var(--ink);
      }
      .sm-tr-grid{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
      .sm-tr-tile{
        padding:0; overflow:hidden; border:1.5px solid var(--line); border-radius:12px;
        background:#0B1526; cursor:pointer; font:inherit; text-align:left;
      }
      .sm-tr-tile canvas{ display:block; width:100%; height:auto; }
      .sm-tr-tile span{
        display:block; padding:6px 9px; font-size:.76rem; font-weight:700; color:var(--ink);
        background:var(--surface); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
      }
      .sm-tr-tile.on{ border-color:var(--red); box-shadow:0 0 0 1.5px var(--red); }
      /* ---------- Story Maker premium upgrade ----------
         Free Beats list (built-in looping beats with preview),
         the transitions picker chips, and the premium template
         backdrops painted by the engine itself. */
      .sm-fb-list{ display:grid; gap:7px; margin-bottom:11px; }
      .sm-fb-row{
        display:flex; align-items:center; gap:10px; padding:8px 10px;
        border:1.5px solid var(--line); border-radius:12px; background:var(--surface);
        cursor:pointer; transition:border-color .15s ease, box-shadow .15s ease;
      }
      .sm-fb-row:hover{ border-color:var(--red); }
      .sm-fb-row.on{ border-color:var(--red); box-shadow:0 0 0 1.5px var(--red); }
      .sm-fb-play{
        width:36px; height:36px; min-height:36px; padding:0; flex:none; display:grid; place-items:center;
        border:1.5px solid var(--line-strong); border-radius:50%; background:var(--surface-2);
        color:var(--ink); cursor:pointer;
      }
      .sm-fb-play svg{ width:16px; height:16px; }
      .sm-fb-play:hover{ border-color:var(--red); color:var(--red); }
      .sm-fb-play.playing{ background:var(--red); border-color:var(--red); color:#fff; }
      .sm-fb-name{ flex:1; min-width:0; font-weight:600; font-size:.88rem; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .sm-fb-dur{ font-size:.76rem; font-weight:600; color:var(--muted); flex:none; }
      .sm-fb-tag{
        display:none; flex:none; font-size:.68rem; font-weight:700; letter-spacing:.04em;
        padding:3px 8px; border-radius:999px; background:var(--red); color:#fff;
      }
      .sm-fb-row.on .sm-fb-tag{ display:inline-block; }
      .sm-trans-tabs{ display:flex; flex-wrap:wrap; gap:7px; }
      .sm-sec-trans[hidden]{ display:none; }
      /* The Maker Studio grid grows to six tiles with Story
         Maker: three-across rows on desktop, six-across only on
         very wide screens, so no tile is ever left stranded. */
      @media (min-width:1024px){ .tile-grid.cols6{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
      @media (min-width:1440px){ .tile-grid.cols6{ grid-template-columns:repeat(6,minmax(0,1fr)); } }

      /* ---------- Shared font library + picker (all makers) ----------
         One curated library, one browser popup for every tool
         that sets text. Icon-first and almost prose-free inside —
         people come to edit, not to read (LOCKED_RULES §N). */
      .mk-font-btn{ display:flex; align-items:center; gap:10px; width:100%; padding:11px 13px; min-width:0;
        background:var(--surface); border:1.5px solid var(--line-strong); border-radius:12px;
        color:var(--ink); cursor:pointer; font:inherit; text-align:left; }
      .mk-font-btn .mk-fb-cur{ min-width:0; }
      .mk-font-btn:hover{ border-color:var(--red); }
      .mk-font-btn .mk-fb-ic{ flex:0 0 auto; width:22px; height:22px; color:var(--red-dark); }
      .mk-font-btn .mk-fb-lab{ font-weight:700; font-size:.9rem; white-space:nowrap; }
      .mk-font-btn .mk-fb-cur{ margin-left:auto; font-size:1.05rem; line-height:1.2; color:var(--ink);
        white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52%; }
      .mk-font-btn .mk-fb-ch{ flex:0 0 auto; color:var(--faint); font-weight:800; }
      /* Shared font picker — INLINE accordion (owner,
         2026-11-29): it expands inside the tool's own panel,
         directly under the "Text Style" button; it is never a
         modal or full-screen popup, and the preview is never
         covered. The tile area scrolls inside the panel. */
      .mkfp-wrap{ margin-top:8px; }
      .mkfp{ background:var(--surface); color:var(--ink); width:100%;
        border:1.5px solid var(--line-strong); border-radius:14px;
        display:flex; flex-direction:column; overflow:hidden; }
      .mkfp-head{ display:flex; align-items:center; gap:8px; padding:8px 12px 6px; }
      .mkfp-head h2{ margin:0; font-family:"Baloo 2","Baloo Da 2",sans-serif; font-size:.95rem; font-weight:800; }
      .mkfp-count{ color:var(--muted); font-size:.78rem; font-weight:600; }
      .mkfp-x{ margin-left:auto; width:28px; height:28px; border-radius:50%; border:1.5px solid var(--line-strong);
        background:var(--surface); color:var(--ink); font-size:.8rem; cursor:pointer; line-height:1; flex:0 0 auto; }
      .mkfp-tiles{ overflow-y:auto; max-height:240px; padding:8px; display:grid; grid-template-columns:repeat(auto-fill,minmax(118px,1fr));
        gap:7px; align-content:start; background:var(--surface-2); }
      .mkfp-tile{ background:var(--surface); border:1.5px solid var(--line); border-radius:11px; padding:8px 6px 7px;
        cursor:pointer; text-align:center; color:var(--ink); font:inherit; display:flex; flex-direction:column; gap:4px;
        min-height:60px; justify-content:center; }
      .mkfp-tile:hover{ border-color:var(--red); }
      .mkfp-tile.on{ border-color:var(--red); box-shadow:0 0 0 1.5px var(--red); }
      .mkfp-sample{ font-size:1.12rem; line-height:1.18; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .mkfp-name{ font-family:"Poppins",sans-serif; font-size:.66rem; font-weight:600; color:var(--muted); letter-spacing:.02em; }
      .mkfp-foot{ display:flex; align-items:center; gap:10px; padding:6px 12px; border-top:1px solid var(--line); }
      .mkfp-cur{ font-size:.85rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .mkfp-cancel{ margin-left:auto; padding:7px 16px; border-radius:10px; border:1.5px solid var(--line-strong);
        background:var(--surface); color:var(--ink); font:inherit; font-weight:700; cursor:pointer; flex:0 0 auto; }
      .mk-font-btn .mk-fb-ch{ display:inline-block; transition:transform .18s ease; }
      .mk-font-btn.mk-open .mk-fb-ch{ transform:rotate(90deg); }

      /* ---------- Collapsible option groups (owner, 2026-11-29) ----------
         Every long option list inside a tool panel lives in ONE
         group: a premium header line in the font picker's dress
         (name · current choice · chevron). Tapping the header
         expands the options below it; tapping again closes the
         group. Inside one panel only one group stays open at a
         time (accordion), so panels stay compact instead of
         eating the screen with spread-out chips and swatches. */
      .mk-group{ border:1.5px solid var(--line-strong); border-radius:13px; background:var(--surface); overflow:hidden; flex:none; }
      .mk-group:hover{ border-color:var(--red); }
      .mk-group-head{ display:flex; align-items:center; gap:10px; width:100%; padding:11px 13px; min-width:0;
        background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
        border:0; color:var(--ink); cursor:pointer; font:inherit; text-align:left; }
      .mk-group-name{ font-weight:700; font-size:.9rem; white-space:nowrap; }
      .mk-group-val{ margin-left:auto; font-size:.82rem; font-weight:600; color:var(--muted);
        white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:55%; }
      .mk-group-ch{ flex:0 0 auto; color:var(--faint); font-weight:800; display:inline-block; transition:transform .18s ease; }
      .mk-group.open .mk-group-ch{ transform:rotate(90deg); }
      .mk-group-body{ display:none; padding:11px 12px 12px; border-top:1px solid var(--line); }
      .mk-group.open .mk-group-body{ display:block; }
      .mk-group-body .tmf-grid{ margin-top:0; }
      /* Text Maker gallery group title (owner, 2026-11-30):
         the same head layout as .mk-group-head but a plain
         title bar, not a button — gallery groups never fold,
         so there is no chevron and no pointer affordance. */
      .tmf-group-head{ display:flex; align-items:center; gap:10px; width:100%; padding:11px 13px; min-width:0;
        background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); color:var(--ink); }

      /* ---------- Text Maker (#/text-maker) ----------
         FlamingText-style stylish-text studio: reuses the Card
         Maker studio shell (.pz-box / .pz-main / .pz-controls)
         with a wide 1280×720 canvas. The style-picker chips are
         small canvases that re-render LIVE with the visitor's own
         typed text. Transparent mode shows the classic
         checkerboard behind the artwork; the download is a 2×
         PNG with the transparency preserved. No watermark. */
      .tm-canvas{
        width:100%; height:auto; aspect-ratio:16/9; display:block; border-radius:14px;
        box-shadow:0 20px 40px -16px rgba(20,20,40,.45);
      }
      .tm-stage{ border-radius:14px; }
      .tm-stage.checker{
        background-color:var(--surface-2);
        background-image:conic-gradient(rgba(128,128,128,.30) 25%, transparent 0 50%, rgba(128,128,128,.30) 0 75%, transparent 0);
        background-size:22px 22px;
      }
      .tm-stage.checker .tm-canvas{ box-shadow:none; }
      .tm-textarea{ resize:vertical; min-height:68px; line-height:1.5; }
      .tm-groups{ display:grid; gap:16px; max-height:452px; overflow-y:auto; padding:2px 4px 4px 2px; scrollbar-width:thin; }
      .tm-group{ display:grid; gap:8px; }
      .tm-chip-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:9px; }
      .tm-chip{
        padding:6px; border:1.5px solid var(--line-strong); border-radius:12px;
        background:var(--surface); display:grid; gap:5px; min-height:0;
        transition:border-color .15s ease, transform .12s ease, box-shadow .15s ease;
      }
      .tm-chip canvas{ width:100%; height:auto; aspect-ratio:10/3; display:block; border-radius:7px; pointer-events:none; }
      .tm-chip-lab{ font-size:.8rem; font-weight:600; color:var(--ink); text-align:center; line-height:1.25; }
      .tm-chip:hover{ border-color:var(--red); }
      .tm-chip:active{ transform:scale(.97); }
      .tm-chip.on{ border-color:var(--red); box-shadow:0 0 0 1.5px var(--red); }
      .tm-bgpanel{ margin-top:11px; display:grid; gap:10px; }
      .tm-bgpanel[hidden]{ display:none; }
      .tm-swatchrow{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
      .tm-tpl-row{ display:flex; gap:9px; overflow-x:auto; padding:2px 2px 7px; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
      .tm-tpl-row .pz-thumb{ flex-basis:70px; }
      .tm-file-lab{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; justify-self:start; }
      .tm-file-lab svg{ width:18px; height:18px; }

      /* ---------- Text Maker flow (owner rebuild, 2026-11-28) ----------
         The Cool-Text three-step flow in the site's own Maka
         studio dress: (1) a gallery of big style tiles with the
         text box + Get Started on top, (2) the same gallery
         rendered in the visitor's own words, (3) the chosen
         style's editor — big preview pinned on top on desktop
         while the tabbed options scroll beneath it. Phones keep
         the documented fix: the preview sits in the flow and
         only the slim tab bar sticks, so no control is ever
         trapped under a pinned canvas. */
      .tmf-top{
        display:flex; align-items:center; gap:10px; flex-wrap:wrap;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 160%);
        border:1px solid var(--line); border-radius:14px; padding:6px 10px;
        box-shadow:0 2px 4px rgba(38,54,10,.05), 0 18px 34px -22px rgba(38,54,10,.35), inset 0 1px 0 rgba(255,255,255,.6);
      }
      .tmf-back{
        display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:6px 13px 6px 10px;
        border-radius:999px; border:1.5px solid #2F7204; cursor:pointer; font:inherit; font-weight:700; font-size:.9rem;
        color:#fff; background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%);
        box-shadow:0 6px 14px -6px rgba(46,84,4,.55), inset 0 1px 0 rgba(255,255,255,.35);
        transition:transform .12s var(--ease), filter .15s var(--ease);
      }
      .tmf-back svg{ width:15px; height:15px; }
      .tmf-back:active{ transform:scale(.97); }
      .tmf-title{ flex:1 1 180px; min-width:0; }
      .tmf-title h1{
        margin:0; font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:800;
        font-size:1.15rem; line-height:1.15; color:var(--ink);
      }
      /* Slim-bar rule: no subtitle line inside the top bar. */
      .tmf-title p{ display:none; }
      .tmf-top-actions{ display:flex; gap:8px; flex-wrap:wrap; }
      .tmf-top-actions[hidden]{ display:none; }
      .tmf-top-actions .btn{ min-height:36px; }
      .tmf-steps{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
      .tmf-stepchip{
        display:inline-flex; align-items:center; gap:8px; padding:7px 14px 7px 8px;
        border-radius:999px; border:1px solid var(--line); background:var(--surface);
        font-size:.88rem; font-weight:600; color:var(--muted);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
      }
      .tmf-stepchip i{
        font-style:normal; width:22px; height:22px; border-radius:99px; display:grid; place-items:center;
        background:var(--tint); color:var(--tint-ink); font-size:.8rem; font-weight:800;
      }
      .tmf-stepchip.on{ color:var(--ink); border-color:rgba(201,150,46,.65); }
      .tmf-stepchip.on i{ background:linear-gradient(180deg,#FFD94D,#E9A820); color:#4A3205; }
      .tmf-step[hidden]{ display:none; }
      .tmf-hero{
        margin-top:16px; padding:16px; border:1px solid var(--line); border-radius:18px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 170%);
        box-shadow:0 2px 4px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.6);
        display:grid; gap:12px;
      }
      .tmf-hero-row{ display:flex; gap:10px; flex-wrap:wrap; }
      .tmf-hero-row .pz-name{ flex:1 1 240px; font-size:1.05rem; }
      .tmf-start{
        min-height:50px; padding:10px 24px; border-radius:13px; border:1.5px solid #2F7204; cursor:pointer;
        font:inherit; font-weight:800; font-size:1rem; color:#fff;
        background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%);
        box-shadow:0 10px 20px -8px rgba(46,84,4,.6), inset 0 1px 0 rgba(255,255,255,.35);
        transition:transform .12s var(--ease), filter .15s var(--ease);
      }
      .tmf-start:active{ transform:scale(.97); }
      .tmf-h2{
        margin:20px 0 4px; font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:800;
        font-size:1.5rem; line-height:1.2; color:var(--ink);
      }
      .tmf-lede{ margin:0 0 6px; color:var(--muted); font-size:.96rem; line-height:1.55; max-width:68ch; }
      .tmf-group{ margin-top:20px; }
      .tmf-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(228px,1fr)); gap:12px; margin-top:10px; }
      @media (max-width:560px){ .tmf-grid{ grid-template-columns:1fr 1fr; gap:9px; } }
      .tmf-tile{
        padding:0; border:1.5px solid var(--line-strong); border-radius:14px; overflow:hidden;
        background:var(--surface); cursor:pointer; text-align:left; font:inherit;
        display:flex; flex-direction:column; min-height:0;
        box-shadow:0 1px 3px rgba(38,54,10,.07);
        transition:border-color .15s ease, transform .12s ease, box-shadow .15s ease;
      }
      .tmf-tile canvas{ width:100%; height:auto; aspect-ratio:24/11; display:block; pointer-events:none; }
      .tmf-tile-lab{
        display:flex; align-items:center; justify-content:space-between; gap:8px;
        padding:8px 11px; font-size:.86rem; font-weight:700; color:var(--ink); line-height:1.25;
        border-top:1px solid var(--line); background:linear-gradient(180deg,var(--surface),var(--surface-2) 190%);
      }
      .tmf-tile-lab em{ font-style:normal; font-weight:600; font-size:.74rem; color:var(--gold-ink,#8A6420); white-space:nowrap; }
      .tmf-tile:hover{ border-color:var(--red); box-shadow:0 12px 22px -12px rgba(58,133,5,.5); transform:translateY(-1px); }
      .tmf-tile:active{ transform:scale(.98); }
      .tmf-tile.on{ border-color:#C9962E; box-shadow:0 0 0 1.5px #C9962E; }
      /* Editor step */
      .tmf-ed-preview{
        margin-top:16px; padding:14px; border:1px solid var(--line); border-radius:18px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 170%);
        box-shadow:0 2px 4px rgba(38,54,10,.05), 0 18px 34px -22px rgba(38,54,10,.35), inset 0 1px 0 rgba(255,255,255,.6);
      }
      @media (min-width:840px){
        .tmf-ed-preview{ position:sticky; top:calc(var(--head-h) + 10px); z-index:6; }
      }
      .tmf-ed-preview .tm-stage{ max-width:860px; margin:0 auto; }
      .tmf-ed-meta{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; max-width:860px; margin:11px auto 0; }
      .tmf-ed-meta .dp-style-note{ flex:1 1 220px; margin:0; }
      .tmf-change{ white-space:nowrap; }
      .tmf-tabs{
        display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; padding:8px;
        border:1px solid var(--line); border-radius:14px; background:var(--surface);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
      }
      @media (max-width:839px){
        .tmf-tabs{ position:sticky; top:6px; z-index:6; }
      }
      .tmf-tabs button{
        flex:1 1 auto; min-height:42px; padding:8px 14px; border-radius:10px; cursor:pointer; font:inherit;
        font-weight:700; font-size:.94rem; color:var(--muted);
        background:var(--surface-2); border:1.5px solid var(--line);
        box-shadow:0 1px 2px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.6);
        transition:background .15s ease, color .15s ease, border-color .15s ease;
      }
      .tmf-tabs button.on{
        color:#fff; border-color:#2F7204;
        background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%);
        box-shadow:0 6px 14px -6px rgba(46,84,4,.55), inset 0 1px 0 rgba(255,255,255,.3);
      }
      .tmf-panel{
        margin-top:14px; padding:16px; border:1px solid var(--line); border-radius:16px;
        background:var(--surface); display:grid; gap:16px; align-content:start;
        box-shadow:0 2px 4px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.55);
      }
      .tmf-panel[hidden]{ display:none; }
      .tmf-sizeval{
        min-width:44px; text-align:center; font-weight:800; color:var(--ink);
        background:var(--tint); border:1px solid var(--line); border-radius:9px; padding:5px 8px; font-size:.92rem;
      }
      .tmf-adv{ border-top:1px dashed var(--line-strong); padding-top:12px; display:grid; gap:12px; }
      .tmf-adv summary{ cursor:pointer; font-weight:700; color:var(--ink); font-size:.95rem; }
      .tmf-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
      .tmf-actions .btn{ min-height:50px; font-size:1rem; }
      @media (prefers-reduced-motion: reduce){
        .tmf-tile:hover,.tmf-back:active,.tmf-start:active{ transform:none; }
      }

      /* ---------- Text Maker editor studio (owner, 2026-11-28) ----------
         Step 3 is a fixed one-screen workspace in the Card Maker
         studio pattern: entering it locks the page (html.tm-lock,
         removed again on any other step or route), the flow's top
         bar becomes the studio top bar with Back / Download /
         WhatsApp always visible, a slim icon toolbar docks at the
         left (the bottom on phones), each tool's controls pop out
         in a panel beside it, and the stage in the middle shows
         the design FITTED to the text — the canvas hugs the
         artwork plus the chosen background padding instead of a
         giant fixed frame with the words lost in the middle. */
      html.tm-lock, html.tm-lock body{ height:100dvh; overflow:hidden; }
      html.tm-lock body{ min-height:0; }
      html.tm-lock main{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      html.tm-lock .site-foot, html.tm-lock .showcase{ display:none; }
      html.tm-lock .to-top{ display:none !important; }
      html.tm-lock .wrap{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; max-width:none; width:100%; padding:0; }
      html.tm-lock .wrap .crumbs{ display:none; }
      html.tm-lock .wrap > div{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; margin-top:0 !important; }
      html.tm-lock .tm-wrap{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      html.tm-lock .tmf-steps{ display:none; }
      html.tm-lock .tmf-top{
        border:none; border-bottom:2px solid var(--sun); border-radius:0;
        box-shadow:0 12px 26px -16px rgba(30,50,5,.4);
      }
      @media (max-width:760px){
        html.tm-lock body{ padding-bottom:0; }
        html.tm-lock .wrap{ padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
      }
      @media (max-width:560px){
        html.tm-lock .tmf-top-actions .btn{ padding:8px 10px; font-size:.85rem; }
        html.tm-lock .tmf-title h1{ font-size:1.12rem; }
        html.tm-lock .tmf-title p{ display:none; }
      }
      html.tm-lock .tmf-step[data-tmfstep="3"]:not([hidden]){ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      .tmf-work{ flex:1 1 auto; min-height:0; display:flex; position:relative; }
      /* Icon toolbar — deep emerald rail, gold-ringed active tool */
      .tmf-tools{
        flex:0 0 auto; width:84px; display:flex; flex-direction:column; align-items:stretch;
        gap:6px; padding:10px 7px; z-index:6;
        background:linear-gradient(180deg,#2E5708 0%,#1E4702 100%);
        border-right:1px solid #122A01;
        box-shadow:inset -1px 0 0 rgba(255,255,255,.06), 8px 0 20px -12px rgba(10,24,2,.55);
      }
      .tmf-tool{
        display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
        min-height:54px; padding:7px 2px; border-radius:13px; border:1.5px solid transparent;
        background:transparent; cursor:pointer; color:#C9DEA4; font:inherit;
        font-size:.62rem; font-weight:700; letter-spacing:.02em; line-height:1.1; text-align:center;
        transition:background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
      }
      .tmf-tool svg{ width:23px; height:23px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
      .tmf-tool span{ max-width:100%; min-width:0; overflow-wrap:break-word; }
      .tmf-tool:hover{ color:#fff; background:rgba(255,255,255,.09); }
      .tmf-tool:active{ transform:scale(.94); }
      .tmf-tool.on{
        color:#fff; background:linear-gradient(180deg,#55A00F,#3A8505);
        border-color:rgba(255,201,77,.65);
        box-shadow:0 8px 16px -7px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35);
      }
      /* Pop-out panel column: only its inside scrolls */
      .tmf-fly{
        flex:0 0 auto; width:274px; min-height:0; display:flex; flex-direction:column;
        background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
        border-right:1.5px solid var(--line); z-index:5;
        box-shadow:12px 0 26px -20px rgba(20,35,4,.45);
      }
      .tmf-fly.tmf-fly-off{ display:none; }
      .tmf-studio .tmf-panel:not([hidden]){
        flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain;
        margin:0; padding:13px 13px 16px; display:flex; flex-direction:column; gap:14px;
        border:none; border-radius:0; box-shadow:none; background:transparent;
        scrollbar-width:thin; -webkit-overflow-scrolling:touch;
      }
      .tmf-panel-head{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:700; font-size:1.02rem; color:var(--ink);
        padding-bottom:9px; border-bottom:1px solid var(--line);
        background:linear-gradient(var(--sun),var(--sun)) left bottom/36px 3px no-repeat;
      }
      .tmf-panel-head small{
        display:block; font-family:"Poppins",sans-serif; font-weight:500;
        font-size:.76rem; color:var(--muted); margin-top:2px;
      }
      .tmf-studio .pz-label{
        margin-bottom:7px; font-size:.72rem; padding-left:11px;
        background:linear-gradient(var(--sun),var(--sun)) left center/3.5px 13px no-repeat;
      }
      .tmf-studio .pz-tabs button{ padding:7px 11px; min-height:36px; font-size:.85rem; }
      .tmf-studio .pz-tabs:has(> button[data-tmlang]){ flex-wrap:nowrap; }
      .tmf-studio .pz-tabs:has(> button[data-tmlang]) button{
        flex:1 1 0; min-width:0; padding-left:5px; padding-right:5px;
        overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
      }
      .tmf-studio .pz-name{ min-height:42px; padding:9px 11px; font-size:.95rem; border-radius:10px; }
      .tmf-studio .pz-note{ font-size:.84rem; }
      .tmf-studio .tm-tpl-row{ flex-wrap:wrap; overflow:visible; }
      .tmf-studio .tm-tpl-row .pz-thumb{ flex:1 1 29%; }
      .tmf-bgpadval{ min-width:44px; text-align:center; font-weight:800; color:var(--ink); }
      /* Stage: emerald well, the fitted canvas centred, with the
         style note and the view-zoom as quiet overlays */
      .tmf-stage-area{
        flex:1 1 auto; min-width:0; min-height:0; position:relative; overflow:hidden;
        background:radial-gradient(130% 95% at 50% -10%, #3E7010 0%, #2E5708 46%, #1B3D02 100%);
        box-shadow:inset 0 0 130px rgba(5,16,1,.5), inset 0 1px 0 rgba(255,255,255,.07);
      }
      @media (prefers-color-scheme: dark){
        .tmf-stage-area{ background:radial-gradient(130% 95% at 50% -10%, #22380C 0%, #16260A 50%, #0A1502 100%); }
      }
      .tmf-holder{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(860px,82%); }
      .tmf-holder .tm-stage{ width:100%; height:100%; }
      .tmf-studio .tm-canvas{
        width:100%; height:100%; aspect-ratio:auto; display:block; border-radius:10px;
        outline:3px solid var(--sun); outline-offset:3px;
        box-shadow:0 24px 48px -18px rgba(10,24,2,.6);
      }
      .tmf-stage-meta{
        position:absolute; left:12px; bottom:12px; z-index:4;
        display:flex; align-items:center; gap:9px; max-width:min(52%,440px);
        background:var(--surface); border:1.5px solid var(--line-strong); border-radius:12px;
        padding:7px 8px 7px 12px; box-shadow:0 10px 22px -10px rgba(10,24,2,.5);
      }
      .tmf-stage-meta .dp-style-note{
        flex:1 1 auto; margin:0; font-size:.82rem; line-height:1.35; overflow:hidden;
        display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
      }
      .tmf-stage-meta .tmf-change{ flex:0 0 auto; white-space:nowrap; }
      .tmf-zoom{
        position:absolute; right:12px; bottom:12px; z-index:4;
        display:flex; align-items:center; gap:2px;
        background:var(--surface); border:1.5px solid var(--line-strong); border-radius:999px;
        padding:3px; box-shadow:0 10px 22px -10px rgba(10,24,2,.55);
      }
      .tmf-zbtn{
        min-width:34px; height:34px; padding:0 9px; border:none; border-radius:999px;
        background:transparent; color:var(--ink); font:inherit; font-weight:800; font-size:.95rem; cursor:pointer;
        transition:background .15s ease, transform .12s ease;
      }
      .tmf-zbtn:hover{ background:var(--tint); }
      .tmf-zbtn:active{ transform:scale(.94); }
      .tmf-zval{ min-width:47px; text-align:center; font-size:.82rem; font-weight:700; color:var(--muted); }
      /* Phones: toolbar along the bottom, panels open as sheets */
      @media (max-width:839px){
        .tmf-work{ flex-direction:column; }
        .tmf-stage-area{ order:1; }
        .tmf-tools{
          order:2; width:auto; flex-direction:row; justify-content:space-around;
          border-right:none; border-top:1px solid #122A01; padding:6px 8px;
          background:linear-gradient(90deg,#2E5708,#1E4702);
          box-shadow:0 -10px 22px -12px rgba(10,24,2,.55);
        }
        .tmf-tool{ flex:1 1 0; min-height:50px; }
        .tmf-fly{
          position:absolute; left:8px; right:8px; bottom:72px; width:auto; max-height:57%;
          border:1.5px solid var(--line-strong); border-radius:16px;
          box-shadow:0 26px 48px -16px rgba(15,26,3,.55); z-index:8;
        }
        .tmf-stage-meta{ max-width:calc(100% - 190px); }
      }
      @media (prefers-reduced-motion: reduce){
        .tmf-tool:active,.tmf-zbtn:active{ transform:none; }
      }

      /* ---------- WhatsApp Status (#/status) ---------- */
      .status-box{ display:grid; gap:16px; margin-top:6px; }
      .status-cats{ margin-top:-4px; }
      .st-group{ display:grid; gap:12px; }
      .st-group + .st-group{ margin-top:8px; }
      .st-group-head{
        display:flex; align-items:center; gap:9px; margin:4px 0 0;
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:700; font-size:1.08rem; color:var(--ink);
      }
      .st-group-head svg{ width:20px; height:20px; color:var(--red); }
      .st-group-head::after{ content:""; flex:1; height:1px; background:var(--line); }
      .st-list{ display:grid; gap:12px; }
      @media (min-width:720px){ .st-list{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
      .st-card{
        background:var(--surface); border:1px solid var(--line); border-radius:14px;
        box-shadow:var(--shadow); padding:16px 16px 12px; display:grid; gap:10px; align-content:start;
      }
      .st-text{ margin:0; font-size:1.06rem; line-height:1.65; font-weight:500; color:var(--ink); }
      .st-actions{ display:flex; align-items:center; gap:10px; }

      /* ---------- Toast ---------- */
      .toast{
        position:fixed; left:50%; bottom:22px; transform:translate(-50%,80px); z-index:120;
        background:#1D1D20; color:#fff; padding:12px 20px; border-radius:999px;
        font-size:.92rem; font-weight:600; box-shadow:0 12px 30px rgba(0,0,0,.3);
        transition:transform .3s ease; pointer-events:none; max-width:calc(100vw - 32px); text-align:center;
      }
      .toast.show{ transform:translate(-50%,0); }

      /* ---------- Save sheet (mobile file delivery) ----------
         Every maker and post finishes by handing the visitor a
         file. On phones — above all inside in-app browsers, which
         routinely swallow programmatic blob downloads without a
         word — the file is instead presented in this sheet: the
         finished picture itself (a long-press saves it anywhere),
         a real Download link the visitor taps themselves, and a
         Share button carrying the file. Desktop keeps the plain
         instant download; only touch devices see the sheet. */
      .mk-save-scrim{
        position:fixed; inset:0; z-index:190; background:rgba(10,18,2,.55);
        opacity:0; pointer-events:none; transition:opacity .25s ease;
      }
      .mk-save-scrim.open{ opacity:1; pointer-events:auto; }
      .mk-save{
        position:fixed; left:0; right:0; bottom:0; z-index:191;
        background:var(--surface); color:var(--ink);
        border-radius:20px 20px 0 0; border-top:1px solid var(--line);
        padding:16px 16px calc(14px + env(safe-area-inset-bottom));
        box-shadow:0 -18px 44px rgba(10,25,2,.35);
        transform:translateY(105%); transition:transform .3s ease;
        max-height:88vh; overflow-y:auto; -webkit-overflow-scrolling:touch;
      }
      .mk-save.open{ transform:translateY(0); }
      .mk-save h3{ margin:0 0 4px; font-family:"Baloo 2","Baloo Da 2",sans-serif; font-size:1.14rem; font-weight:700; }
      .mk-save p{ margin:0 0 12px; font-size:.88rem; line-height:1.55; color:var(--muted); }
      .mk-save-media{ display:flex; justify-content:center; margin:0 0 12px; }
      .mk-save-media img{ max-width:100%; max-height:44vh; border-radius:12px; box-shadow:0 10px 26px rgba(20,35,5,.28); }
      .mk-save-media video{ max-width:100%; max-height:44vh; border-radius:12px; background:#000; }
      .mk-save-row{ display:flex; gap:10px; }
      .mk-save-row a,.mk-save-row button{
        flex:1 1 0; display:inline-flex; align-items:center; justify-content:center; gap:8px;
        min-height:48px; padding:10px 12px; border-radius:12px; cursor:pointer;
        font:inherit; font-weight:700; font-size:.95rem; text-decoration:none; text-align:center;
      }
      .mk-save-row svg{ width:19px; height:19px; }
      .mk-save-dl{ background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%); color:#fff; border:1.5px solid #2F7204; }
      .mk-save-share{ background:var(--surface-2); color:var(--ink); border:1.5px solid var(--line-strong); }
      .mk-save-close{
        display:block; width:100%; margin-top:8px; min-height:44px; padding:8px;
        background:none; border:none; cursor:pointer;
        font:inherit; font-weight:600; font-size:.92rem; color:var(--muted);
      }
      @media (prefers-reduced-motion: reduce){
        .mk-save,.mk-save-scrim{ transition:none; }
      }
      @media (max-width:520px){
        .site-name{ font-size:1rem; line-height:1.18; }
        .lang-btn{ padding:6px 12px; font-size:.86rem; }
      }
      @media (prefers-reduced-motion: reduce){
        html{ scroll-behavior:auto; }
        .drawer,.scrim,.toast,.sc-dot,.tile{ transition:none; }
        .tile:hover{ transform:none; }
        .sc-viewport{ scroll-behavior:auto; }
      }

      /* ==========================================================
         PREMIUM POLISH PASS 1 — one uniformly glossy Maka finish
         across every surface: deeper, softer shadows; gradient
         buttons and icon chips; pill action bars; refined type
         hierarchy; smoother hover/tap states. Presentation only —
         no layout structure, content or behaviour changes.
         ========================================================== */
      ::selection{ background:rgba(58,133,5,.30); }
      body{ text-rendering:optimizeLegibility; }

      /* Header: richer depth under the green bar, crisper logo,
         and the brand centred on the header's first row on phones
         (where the clock chip takes the second row). */
      .site-head{
        box-shadow:inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(23,61,5,.16), 0 12px 30px -12px rgba(46,84,4,.55);
      }
      .brand-logo{ box-shadow:0 4px 14px rgba(3,40,26,.42), 0 0 0 1px rgba(255,255,255,.35); }
      .head-btn{ transition:background .15s ease, transform .12s ease; }
      .head-btn:active{ transform:scale(.92); }
      .lang-btn{ box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -12px 18px -12px rgba(0,0,0,.5), inset 0 10px 14px -10px rgba(255,255,255,.35), 0 6px 18px -6px rgba(10,61,32,.65), 0 0 16px rgba(255,217,77,.16); transition:filter .15s ease, box-shadow .15s ease, transform .12s ease; }
      .lang-btn:active{ transform:scale(.96); }
      .lang-menu{ border-radius:14px; box-shadow:0 2px 4px rgba(38,54,10,.06), 0 24px 44px -16px rgba(38,54,10,.35); }
      @media (max-width:760px){
        .site-head .site-name{ top:0; height:54px; transform:translateX(-50%); max-width:52vw; }
        /* Higher-specificity restatement of the mobile placement,
           so the desktop grid-column pins above never leak into
           the two-row phone header. */
        .site-head .head-inner .clock-chip{ grid-column:1 / -1; grid-row:2; }
        .site-head .head-inner .lang-wrap{ grid-column:3; grid-row:1; }
      }

      /* Buttons: glossy gradient primary, lifted ghost buttons,
         pill-shaped card action bars. */
      .btn-red{
        background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(58,133,5,.65);
      }
      .btn-red:hover{ background:linear-gradient(180deg,#4C9A0B 0%,#2F7204 100%); }
      @media (prefers-color-scheme: dark){
        .btn-red{ background:linear-gradient(180deg,#4C8A0E 0%,#38660A 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px -8px rgba(0,0,0,.7); }
        .btn-red:hover{ background:linear-gradient(180deg,#41750C 0%,#2F5708 100%); }
      }
      .btn-ghost{ box-shadow:0 1px 2px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.6); }
      .btn-ghost:hover{ box-shadow:0 8px 16px -10px rgba(58,133,5,.5); }
      .btn-wa{ box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 4px 10px -6px rgba(31,168,85,.6); }
      .btn-sticker{ box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 4px 10px -6px rgba(185,126,4,.55); }
      .art-actions .btn{ border-radius:999px; padding-left:15px; padding-right:15px; }
      .soc{ box-shadow:0 5px 12px -4px rgba(20,10,5,.45), inset 0 1px 0 rgba(255,255,255,.35); }

      /* Hero & search: tighter display type, a search bar that
         glows softly when focused. */
      .hero h1{ letter-spacing:-.012em; }
      .searchbar{ box-shadow:0 2px 4px rgba(38,54,10,.05), 0 18px 34px -18px rgba(38,54,10,.28); transition:border-color .18s ease, box-shadow .18s ease; }
      .searchbar:focus-within{ box-shadow:0 0 0 4px rgba(58,133,5,.16), 0 18px 34px -18px rgba(38,54,10,.30); }
      .lang-note span{ box-shadow:0 1px 2px rgba(38,54,10,.05); }
      .lang-note span.on{ box-shadow:0 6px 14px -6px rgba(58,133,5,.6), inset 0 1px 0 rgba(255,255,255,.3); }

      /* Tiles & rails: gradient surfaces, jewel icon chips,
         captions that pick up the brand colour on hover. */
      .tile{ background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 130%); border-radius:16px; }
      .tile .chip{
        background:linear-gradient(145deg,#F7FDE9 0%,var(--tint) 100%);
        box-shadow:inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.8), 0 5px 12px -6px rgba(58,133,5,.45);
      }
      @media (prefers-color-scheme: dark){
        .tile .chip{ background:linear-gradient(145deg,#2A3D16 0%,var(--tint) 100%); box-shadow:inset 0 0 0 1px var(--line-strong), 0 5px 12px -6px rgba(0,0,0,.6); }
      }
      .tile-btn{ border-radius:14px; }
      .rail-card .rail-cap{ transition:color .15s ease; }
      .rail-card:hover .rail-cap{ color:var(--red); }
      .rail-card .img-card,.rail-card .art-card{ box-shadow:0 14px 30px -14px rgba(46,84,4,.40), var(--shadow); }
      .pn{ background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 140%); }
      .pop-badge{ box-shadow:0 6px 14px -6px rgba(255,176,32,.8), inset 0 1px 0 rgba(255,255,255,.6); }
      .type-tag{ box-shadow:0 1px 2px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.5); }

      /* Showcase arrows & dots: floating glass controls. */
      .sc-arrow{ box-shadow:0 2px 4px rgba(38,54,10,.06), 0 14px 28px -12px rgba(38,54,10,.35); transition:color .15s ease, border-color .15s ease, transform .12s ease; }
      .sc-arrow:active{ transform:translateY(-50%) scale(.92); }
      .sc-dot{ box-shadow:inset 0 1px 1px rgba(38,54,10,.25); }

      /* Status cards & info prose: same card finish, clearer
         section hierarchy on the About/Privacy-style pages. */
      .st-card{ background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 160%); transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
      .st-card:hover{ border-color:var(--line-strong); transform:translateY(-2px); box-shadow:0 2px 4px rgba(38,54,10,.06), 0 18px 32px -16px rgba(38,54,10,.30); }
      .prose h2{ font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif; font-size:1.32rem; font-weight:800; color:var(--ink); }
      .empty{ background:var(--surface-2); box-shadow:inset 0 1px 0 rgba(255,255,255,.5); }

      /* Studios (Card Maker / Text Maker / DP Studio): one deep,
         soft studio shadow; chips and thumbnails get the same
         tactile press states as the rest of the site. */
      .pz-box{ border-radius:20px; box-shadow:0 2px 4px rgba(38,54,10,.05), 0 28px 50px -24px rgba(38,54,10,.35); }
      .tm-chip{ box-shadow:0 1px 3px rgba(38,54,10,.07); }
      .tm-chip:hover{ box-shadow:0 10px 20px -12px rgba(58,133,5,.5); transform:translateY(-1px); }
      .pz-canvas,.dp-canvas,.tm-canvas{ box-shadow:0 24px 46px -18px rgba(20,30,5,.5); }
      .pz-name{ box-shadow:inset 0 1px 3px rgba(38,54,10,.06); transition:border-color .15s ease, box-shadow .15s ease; }
      .pz-name:focus{ box-shadow:0 0 0 4px rgba(58,133,5,.15); }

      /* Drawer & footer: softer menu rows, a graded dark foot. */
      .drawer a{ transition:background .15s ease, color .15s ease; }
      .drawer a:active{ background:var(--tint); }
      .site-foot{ background:linear-gradient(180deg,#1C2E0D 0%,#111D07 100%); }
      .site-foot ul a{ transition:color .15s ease; }
      .foot-brand img{ box-shadow:0 4px 12px rgba(0,0,0,.45); }

      /* Toast: deep-green pill to match the brand. */
      .toast{
        background:linear-gradient(180deg,#2C4712,#1D3009); border:1px solid rgba(255,255,255,.16);
        box-shadow:0 16px 34px -10px rgba(10,20,2,.55), inset 0 1px 0 rgba(255,255,255,.18);
      }
      @media (prefers-reduced-motion: reduce){
        .st-card:hover,.tm-chip:hover{ transform:none; }
        .head-btn:active,.lang-btn:active,.sc-arrow:active{ transform:none; }
        .sc-arrow:active{ transform:translateY(-50%); }
      }

      /* ==========================================================
         PREMIUM POLISH PASS 2 — a deeper pass, page by page:
         framed showcase and Quote of the Day, richer page heads,
         pill action bars, custom sliders and chip gradients in
         the studios, global scrollbar / selection / focus finish,
         a graded footer rule and polished empty states.
         Presentation only — no content, route or behaviour
         changes; the centred header brand and the matched
         clock / language chips are untouched.
         ========================================================== */

      /* ---------- Global finish ---------- */
      ::selection{ background:rgba(255,185,32,.42); color:#22330F; }
      html{ scrollbar-color:#7CB342 #EFF5DF; scrollbar-width:thin; }
      ::-webkit-scrollbar{ width:10px; height:10px; }
      ::-webkit-scrollbar-track{ background:transparent; }
      ::-webkit-scrollbar-thumb{
        background:linear-gradient(180deg,#7CB342,#4C8A0E); border-radius:99px;
        border:2px solid var(--bg);
      }
      ::-webkit-scrollbar-thumb:hover{ background:linear-gradient(180deg,#8CC94F,#57A50D); }
      @media (prefers-color-scheme: dark){
        html{ scrollbar-color:#4C8A0E #161D0C; }
        ::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,#4C8A0E,#2C5608); }
      }
      :focus-visible{ box-shadow:0 0 0 4px rgba(58,133,5,.16); }
      .tile:focus-visible,.rail-card:focus-visible,.pn:focus-visible,.sc-slide:focus-visible{ outline-offset:3px; }
      main .wrap{ animation-duration:.55s; }

      /* Image cards get a soft shimmer bed while photos load, so
         frames never flash hollow; loaded images ease in (the
         fade itself is driven by the existing .ld hook). */
      .img-card{
        background:linear-gradient(120deg,#2F5D06 30%,#3E7A0B 50%,#2F5D06 70%);
        background-size:220% 100%;
      }
      .img-card img{ transition:opacity .55s ease, transform .6s cubic-bezier(.22,.7,.3,1); }
      .rail-card:hover .img-card img,.sc-slide:hover .img-card img{ transform:scale(1.045); }

      /* ---------- Home: rhythm, showcase, Quote of the Day ---------- */
      .section{ margin-top:54px; }
      .section-head{ padding-bottom:14px; }
      .showcase{
        background:linear-gradient(180deg,var(--surface-2) 0%,var(--bg) 88%);
        box-shadow:inset 0 -1px 0 var(--line), inset 0 14px 24px -22px rgba(46,84,4,.5);
        padding:26px 0 20px;
      }
      .sc-head .t{ letter-spacing:.2em; }
      .sc-slide .img-card,.sc-slide .art-card{
        box-shadow:0 18px 36px -14px rgba(46,84,4,.48), 0 2px 4px rgba(38,54,10,.06);
        border-radius:20px;
      }
      .sc-dots{ flex-wrap:nowrap; row-gap:2px; padding:0 10px; }
      .sc-dot{ width:9px; height:9px; min-width:20px; min-height:20px; background:transparent; box-shadow:none; position:relative; }
      .sc-dot::after{
        content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
        width:8px; height:8px; border-radius:99px; background:var(--line-strong);
        box-shadow:inset 0 1px 1px rgba(38,54,10,.25);
        transition:width .3s ease, background .3s ease;
      }
      .sc-dot.on{ width:9px; background:transparent; }
      .sc-dot.on::after{ width:24px; background:linear-gradient(90deg,var(--red),#57A50D); }
      .qotd-head .k{
        padding:7px 16px 8px; border:1px solid var(--line); border-radius:999px;
        background:var(--surface); box-shadow:0 1px 2px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.6);
      }
      .qotd-head .k::after{ display:none; }
      .qotd-head .sub{ margin-top:11px; }
      .qotd-wrap{
        padding:clamp(12px,2.6vw,22px); border:1px solid var(--line); border-radius:26px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 150%);
        box-shadow:0 2px 4px rgba(38,54,10,.05), 0 30px 54px -26px rgba(46,84,4,.40), inset 0 1px 0 rgba(255,255,255,.65);
      }
      @media (prefers-color-scheme: dark){
        .qotd-wrap{ box-shadow:0 2px 4px rgba(0,0,0,.4), 0 30px 54px -26px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); }
      }

      /* ---------- Collection pages: page head, labels, action bars ---------- */
      .page-head{ position:relative; padding-bottom:16px; border-bottom:1px solid var(--line); }
      .page-head::after{
        content:""; position:absolute; left:1px; bottom:-1.5px;
        width:58px; height:3px; border-radius:99px;
        background:linear-gradient(90deg,var(--red),var(--sun));
      }
      .page-head .count-line{
        display:inline-flex; align-items:center; padding:5px 13px;
        background:var(--tint); border:1px solid var(--line); border-radius:999px;
        color:var(--tint-ink); box-shadow:inset 0 1px 0 rgba(255,255,255,.5);
      }
      .type-tag{
        background:linear-gradient(180deg,var(--surface) 0%,var(--tint) 130%);
        padding:6px 13px 6px 11px;
      }
      .type-tag .dot{ box-shadow:0 0 0 1.5px rgba(58,133,5,.35), 0 0 8px rgba(255,176,32,.8); }
      .art-actions{
        background:var(--surface); border:1px solid var(--line); border-radius:16px;
        padding:10px 12px; margin-top:14px;
        box-shadow:0 1px 2px rgba(38,54,10,.05), 0 14px 28px -18px rgba(38,54,10,.28), inset 0 1px 0 rgba(255,255,255,.6);
      }
      @media (prefers-color-scheme: dark){
        .art-actions{ box-shadow:0 1px 2px rgba(0,0,0,.4), 0 14px 28px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }
      }
      .art-actions .btn:active{ transform:scale(.94); }
      .back-home{
        padding:7px 13px 7px 10px; border:1px solid var(--line); border-radius:999px;
        background:var(--surface); box-shadow:0 1px 2px rgba(38,54,10,.05);
        transition:border-color .15s ease, color .15s ease, transform .12s ease;
      }
      .back-home:hover{ text-decoration:none; }
      .back-home:active{ transform:scale(.96); }
      .crumbs{ padding-top:20px; }

      /* ---------- Studios: panel headings, chips, sliders, preview frame ---------- */
      .pz-label{ display:flex; align-items:center; gap:9px; letter-spacing:.13em; }
      .pz-label::after{ content:""; flex:1; height:1px; background:linear-gradient(90deg,var(--line-strong),transparent); }
      .pz-tabs button.on,.pz-occ button.on,.pz-catrow button.on{
        background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%); border-color:#2F7204;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 8px 16px -8px rgba(58,133,5,.65);
      }
      @media (prefers-color-scheme: dark){
        .pz-tabs button.on,.pz-occ button.on,.pz-catrow button.on{
          background:linear-gradient(180deg,#4C8A0E 0%,#38660A 100%); border-color:#2F5708;
          box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 8px 16px -8px rgba(0,0,0,.7);
        }
      }
      .pz-stage{
        padding:10px; border:1px solid var(--line); border-radius:22px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 150%);
        box-shadow:0 2px 4px rgba(38,54,10,.05), 0 24px 44px -22px rgba(38,54,10,.35), inset 0 1px 0 rgba(255,255,255,.65);
      }
      .tm-stage.checker{ border-radius:22px; }
      /* ---------- Shared premium slider (owner, 2026-11-29) ----------
         ONE slider design for every tool on the site: the track
         is FILLED up to the knob with the site's emerald-to-gold
         premium gradient and muted past it, so the set amount
         reads at a glance. The fill rides the --mkp custom
         property (percent), kept in sync by the small shared
         helper in the main script — it updates on the input
         event itself, so the fill follows the knob with no lag.
         The knob is glossy with a gold ring and a soft shadow,
         sized for a fingertip. Applies to every range input,
         whatever class the owning tool gave it. */
      input[type="range"]{
        -webkit-appearance:none; appearance:none; height:28px; background:transparent;
        --mkp:50%; cursor:pointer;
      }
      input[type="range"]::-webkit-slider-runnable-track{
        height:8px; border-radius:99px;
        background:
          linear-gradient(90deg,#2E7D1E 0%,#55A00F 52%,#FFC94D 100%) left/var(--mkp) 100% no-repeat,
          linear-gradient(180deg,#DFE5D0,#CBD6B6);
        box-shadow:inset 0 1px 3px rgba(38,54,10,.35), inset 0 -1px 0 rgba(255,255,255,.5);
      }
      input[type="range"]::-webkit-slider-thumb{
        -webkit-appearance:none; appearance:none; width:24px; height:24px; margin-top:-8px;
        border-radius:50%;
        background:radial-gradient(circle at 32% 27%,#FFFFFF 0%,#FFF3C4 52%,#FFD93D 100%);
        border:3px solid #C98F0A;
        box-shadow:0 4px 11px rgba(38,54,10,.42), 0 0 0 4px rgba(255,201,77,.22), inset 0 1px 2px rgba(255,255,255,.95);
        cursor:grab; transition:transform .12s ease, box-shadow .15s ease;
      }
      input[type="range"]::-webkit-slider-thumb:hover{ transform:scale(1.1); }
      input[type="range"]:active::-webkit-slider-thumb{
        cursor:grabbing; transform:scale(1.06);
        box-shadow:0 5px 14px rgba(38,54,10,.5), 0 0 0 6px rgba(255,201,77,.3), inset 0 1px 2px rgba(255,255,255,.95);
      }
      input[type="range"]::-moz-range-track{
        height:8px; border-radius:99px;
        background:linear-gradient(180deg,#DFE5D0,#CBD6B6);
        box-shadow:inset 0 1px 3px rgba(38,54,10,.35), inset 0 -1px 0 rgba(255,255,255,.5);
      }
      input[type="range"]::-moz-range-progress{
        height:8px; border-radius:99px;
        background:linear-gradient(90deg,#2E7D1E 0%,#55A00F 52%,#FFC94D 100%);
      }
      input[type="range"]::-moz-range-thumb{
        width:19px; height:19px; border-radius:50%;
        background:radial-gradient(circle at 32% 27%,#FFFFFF 0%,#FFF3C4 52%,#FFD93D 100%);
        border:3px solid #C98F0A;
        box-shadow:0 4px 11px rgba(38,54,10,.42), 0 0 0 4px rgba(255,201,77,.22), inset 0 1px 2px rgba(255,255,255,.95);
        cursor:grab;
      }
      input[type="range"]:focus-visible{ box-shadow:none; outline-offset:4px; }
      .pz-actions .btn-red{ min-height:48px; padding:12px 22px; font-size:1rem; }
      .pz-thumb{ border-radius:13px; box-shadow:0 4px 10px -6px rgba(38,54,10,.35); }
      .pz-thumb.on{ box-shadow:0 8px 18px -6px rgba(255,176,32,.75), 0 0 0 1px var(--sun); }
      .pz-elem-btn{ box-shadow:0 1px 2px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.6); }
      .pz-photo{
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 160%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
      }
      .tm-chip.on{ box-shadow:0 0 0 1.5px var(--red), 0 10px 20px -12px rgba(58,133,5,.55); }
      .cm-head h1{ text-shadow:none; }

      /* ---------- Status page ---------- */
      .st-card{ position:relative; overflow:hidden; border-radius:16px; }
      .st-card::before{
        content:""; position:absolute; top:0; left:0; right:0; height:3px;
        background:linear-gradient(90deg,var(--red),var(--sun),transparent 85%);
        opacity:.85;
      }
      .st-actions .btn:active{ transform:scale(.94); }
      .st-group-head{ letter-spacing:.01em; }

      /* ---------- Toast, empty states, footer ---------- */
      .toast{ display:flex; align-items:center; gap:9px; padding:12px 20px 12px 16px; }
      .toast::before{
        content:""; width:8px; height:8px; border-radius:50%; flex:none;
        background:#FFD94D; box-shadow:0 0 10px rgba(255,217,77,.9);
      }
      .empty{ border-radius:18px; padding:44px 20px; }
      .empty::before{
        content:"✦"; display:flex; align-items:center; justify-content:center;
        width:46px; height:46px; margin:0 auto 13px; border-radius:50%;
        background:linear-gradient(145deg,#F7FDE9,var(--tint)); color:var(--red);
        font-size:1.15rem; box-shadow:inset 0 0 0 1px var(--line), 0 6px 14px -6px rgba(58,133,5,.5);
      }
      @media (prefers-color-scheme: dark){
        .empty::before{ background:linear-gradient(145deg,#2A3D16,var(--tint)); box-shadow:inset 0 0 0 1px var(--line-strong), 0 6px 14px -6px rgba(0,0,0,.6); }
      }
      .site-foot{ position:relative; border-top:none; }
      .site-foot::before{
        content:""; position:absolute; top:0; left:0; right:0; height:3px;
        background:linear-gradient(90deg,var(--red-deep),var(--red) 30%,var(--sun) 50%,var(--red) 70%,var(--red-deep));
      }
      .foot-inner{ padding-top:30px; }
      .site-foot ul a{ transition:color .15s ease, transform .15s ease; }
      .site-foot ul a:hover{ transform:translateX(3px); }
      .foot-bar{ letter-spacing:.01em; }
      @media (prefers-reduced-motion: reduce){
        .rail-card:hover .img-card img,.sc-slide:hover .img-card img{ transform:none; }
        .img-card img{ transition:opacity .55s ease; }
        .site-foot ul a:hover{ transform:none; }
        .back-home:active,.art-actions .btn:active,.st-actions .btn:active{ transform:none; }
      }

      /* ==========================================================
         PREMIUM POLISH PASS 3 — motion, typography, iconography,
         makers' first-run states, contrast and micro-details.
         One premium easing curve everywhere; taller line rhythm
         for the Indic scripts; the last text glyphs replaced by
         the Maka SVG sparkle; designed empty states in the three
         studios; weak contrast spots tuned in both modes.
         Presentation only — no content, route, locked behaviour,
         protection or filename changes; the centred header brand
         and the matched clock / language chips are untouched.
         ========================================================== */
      :root{ --ease:cubic-bezier(.22,.7,.25,1); }

      /* ---------- Contrast tune-ups (both modes) ---------- */
      :root{ --faint:#68784E; }
      @media (prefers-color-scheme: dark){
        :root{ --faint:#97AB7E; }
        .foot-bar{ color:#A3A099; }
        .site-foot p{ color:#B5B1AA; }
      }

      /* ---------- Motion: one curve, everywhere ---------- */
      .wrap{ animation:pageIn .55s var(--ease) both; }
      @keyframes pageIn{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
      .rv{ transition:opacity .7s var(--ease),transform .7s var(--ease); }
      .drawer{ transition:transform .34s var(--ease); }
      .drawer.open{ transition:transform .34s var(--ease); }
      .scrim{ transition:opacity .3s var(--ease); }
      .toast{ transition:transform .38s var(--ease); }
      .tile,.pn,.st-card,.tm-chip,.pz-thumb,.pz-elem-btn,.back-home,.sc-arrow,.soc,.rail-card .img-card,.rail-card .art-card{
        transition-timing-function:var(--ease);
      }
      /* Press feedback on every tappable surface, one depth. */
      .soc:active,.pz-elem-btn:active,.pz-thumb:active,.tm-chip:active{ transform:scale(.94); }
      .tile:active{ transform:translateY(0) scale(.985); }
      .pn:active{ transform:translateY(0) scale(.985); }
      /* Showcase depth: cards lift toward the viewer on hover,
         with a deeper two-layer shadow for parallax feel. */
      .sc-slide .img-card,.sc-slide .art-card{
        transition:transform .45s var(--ease),box-shadow .45s var(--ease);
      }
      .sc-slide:hover .img-card,.sc-slide:hover .art-card{
        transform:translateY(-5px);
        box-shadow:0 30px 48px -16px rgba(46,84,4,.55), 0 3px 6px rgba(38,54,10,.08);
      }
      @media (prefers-reduced-motion: reduce){
        .wrap{ animation:none; }
        .rv{ transition:none; opacity:1; transform:none; }
        .tile:active,.pn:active,.soc:active,.pz-elem-btn:active,.pz-thumb:active,.tm-chip:active{ transform:none; }
        .sc-slide:hover .img-card,.sc-slide:hover .art-card{ transform:none; }
      }

      /* ---------- Typography rhythm ---------- */
      .hero h1{ line-height:1.13; text-wrap:balance; }
      .page-head h1{ line-height:1.16; letter-spacing:-.008em; text-wrap:balance; }
      .cm-head h1{ line-height:1.13; text-wrap:balance; }
      .section-head h2{ letter-spacing:-.008em; line-height:1.22; }
      .hero p{ line-height:1.7; }
      .prose p{ line-height:1.75; }
      .st-text{ line-height:1.72; }
      .tile .tt{ line-height:1.32; letter-spacing:-.004em; }
      .tile .td{ line-height:1.55; }
      .rail-cap{ line-height:1.35; }
      .pz-note{ line-height:1.65; }
      /* Tall-script balance: Bengali and Devanagari glyphs stack
         ascenders and vowel signs above the baseline, so card
         text and Indic headings breathe a little more than Latin. */
      .art-text{ line-height:var(--flh,1.68); }
      .pz-name{ line-height:1.5; }
      .tm-textarea{ line-height:1.55; }

      /* ---------- Iconography: one SVG set, one stroke voice ---------- */
      .drawer a svg,.tile .chip svg,.st-group-head svg,.pz-strip-head svg{
        stroke-linecap:round; stroke-linejoin:round;
      }
      /* The empty state's plain ✦ glyph becomes the Maka sparkle
         as a real inline SVG (gold core, green ring). */
      .empty::before{
        content:""; font-size:0;
        background:
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.1 9.9 21.5 12 14.1 14.1 12 21.5 9.9 14.1 2.5 12 9.9 9.9Z' fill='%23FFB020' stroke='%233A8505' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E")
          center / 22px 22px no-repeat,
          linear-gradient(145deg,#F7FDE9,var(--tint));
      }
      @media (prefers-color-scheme: dark){
        .empty::before{
          background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.1 9.9 21.5 12 14.1 14.1 12 21.5 9.9 14.1 2.5 12 9.9 9.9Z' fill='%23FFC94D' stroke='%2393DC3F' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E")
            center / 22px 22px no-repeat,
            linear-gradient(145deg,#2A3D16,var(--tint));
        }
      }
      .cm-head h1 .cm-star{
        display:inline-flex; width:.56em; height:.56em; flex:none;
        transform:translateY(-.16em); color:var(--sun);
      }
      .cm-head h1 .cm-star svg{
        width:100%; height:100%;
        filter:drop-shadow(0 2px 6px rgba(255,176,32,.55));
      }
      .mk-star{
        display:inline-flex; width:.58em; height:.58em; flex:none;
        transform:translateY(-.14em); color:var(--sun);
      }
      .mk-star svg{ width:100%; height:100%; filter:drop-shadow(0 2px 6px rgba(255,176,32,.5)); }
      .pop-badge svg{ flex:none; }

      /* ---------- Makers' first-run / guidance states ---------- */
      .pz-tsel-none{
        padding:12px 13px; border:1px dashed var(--line-strong); border-radius:11px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--tint) 160%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
      }
      .pz-note{
        padding:12px 14px; border:1px solid var(--line); border-radius:12px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 150%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
      }
      .dp-style-note{
        padding:9px 12px; border:1px solid var(--line); border-radius:10px;
        background:var(--surface-2); color:var(--muted); font-size:.84rem;
      }
      /* Text Maker's first-run guidance line gets the same
         designed panel treatment as the other two studios, and
         its background-mode notes sit in matching tinted panels. */
      .tm-note{
        padding:10px 13px; border:1px solid var(--line); border-radius:11px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--tint) 170%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
        color:var(--muted); font-size:.86rem; line-height:1.55;
      }
      .tm-bgpanel .pz-note{
        padding:10px 13px; border:1px solid var(--line); border-radius:11px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 150%);
      }
      .tm-groups{
        border:1px solid var(--line); border-radius:14px; padding:10px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 160%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
      }
      .pz-photo{
        border-style:solid;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 160%);
      }
      /* Studio canvases sit in their frame with a soft inner
         edge, so a fresh untouched preview already looks set. */
      .pz-canvas,.dp-canvas,.tm-canvas{
        box-shadow:0 24px 46px -18px rgba(20,30,5,.5), inset 0 0 0 1px rgba(255,255,255,.14);
      }
      .pz-tsel{ box-shadow:0 1px 2px rgba(38,54,10,.04), inset 0 1px 0 rgba(255,255,255,.55); }
      .pz-sel{ box-shadow:inset 0 1px 0 rgba(255,255,255,.55); }

      /* ---------- Micro-details ---------- */
      /* Badges speak one language: same pill geometry, tracking
         and gold family for Popular and type labels. */
      .pop-badge,.type-tag{ letter-spacing:.12em; border-radius:999px; }
      .pop-badge{ box-shadow:0 6px 14px -6px rgba(255,176,32,.8), inset 0 1px 0 rgba(255,255,255,.65), inset 0 0 0 1px rgba(185,126,4,.28); }
      /* Dividers graduate instead of cutting: section rules and
         studio separators fade at the ends. */
      .section-head{ border-bottom-color:transparent; background:linear-gradient(90deg,var(--line),var(--line) 55%,transparent) bottom / 100% 1px no-repeat; }
      .pz-strip,.pz-gal-area{ border-top-style:solid; border-top-color:transparent; background:linear-gradient(90deg,transparent,var(--line-strong) 18%,var(--line-strong) 82%,transparent) top / 100% 1.5px no-repeat; }
      /* Corner consistency: every photo/card surface at 18px,
         framed studio previews at 22px, chips fully round. */
      .art-card,.img-card{ border-radius:18px; }
      /* Image edge treatment: a hairline inner ring so photos
         end crisply against any page background. */
      .img-card::after{
        content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
        box-shadow:inset 0 0 0 1px rgba(255,255,255,.22), inset 0 -28px 34px -30px rgba(10,25,2,.5);
      }
      /* Footer links get a gold underline sweep on hover. */
      .site-foot ul a{
        background:linear-gradient(currentColor,currentColor) left calc(100% - 5px) / 0% 1.5px no-repeat;
        transition:color .18s var(--ease), transform .18s var(--ease), background-size .25s var(--ease);
      }
      .site-foot ul a:hover{ background-size:26px 1.5px; text-decoration:none; }
      @media (prefers-reduced-motion: reduce){
        .site-foot ul a{ transition:none; }
      }

      /* ---------- Back to top ---------- */
      .to-top{
        position:fixed; right:16px; bottom:18px; z-index:75;
        width:46px; height:46px; min-height:46px; padding:0; border-radius:50%;
        display:flex; align-items:center; justify-content:center; color:#FFD94D;
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1px solid rgba(255,233,61,.45);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.4), 0 12px 26px -10px rgba(10,61,32,.7), 0 0 14px rgba(255,217,77,.16);
        opacity:1; transform:none; pointer-events:auto;
        transition:transform .3s var(--ease), filter .15s ease;
      }
      .to-top svg{ width:20px; height:20px; }
      .to-top.show{ opacity:1; transform:none; pointer-events:auto; }
      .to-top:hover{ filter:brightness(1.12); }
      .to-top:active{ transform:scale(.92); }
      @media (prefers-color-scheme: dark){
        .to-top{ background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%); }
      }
      @media (prefers-reduced-motion: reduce){
        .to-top{ transition:opacity .3s ease; transform:none; }
        .to-top:active{ transform:none; }
      }

      /* ==========================================================
         PREMIUM POLISH PASS 4 — wide-screen rhythm, the search
         experience, one feedback language for every action,
         a tap & focus audit, unified image presentation, and
         the footer / info-page prose finish. Presentation only —
         no content, route, locked behaviour, protection or
         filename changes; the centred header brand and the
         matched clock / language chips are untouched.
         ========================================================== */

      /* ---------- Wide-screen rhythm ---------- */
      @media (min-width:1280px){
        .wrap,.head-inner,.sc-head,.sc-stage,.foot-inner{ max-width:1240px; }
        .foot-bar .wrap-in{ max-width:1240px; }
        .cards{ gap:42px; }
        .section{ margin-top:60px; }
        .pair .art-wrap:only-child{ max-width:600px; }
      }
      @media (min-width:1440px){ .hero{ padding-top:64px; } }
      /* Native / Roman pairs top-align, so a tall image card and
         a shorter text card never stretch each other. */
      @media (min-width:680px){ .pair{ align-items:start; } }
      /* Maker balance on wide screens: a slightly roomier
         control column beside the framed preview. */
      @media (min-width:1100px){ .pz-main{ grid-template-columns:400px 1fr; } }

      /* ---------- Search experience ---------- */
      .searchbar input{ letter-spacing:.01em; }
      .searchbar input::placeholder{ color:var(--faint); opacity:1; }
      /* Search-again bar on the results page: same premium bar,
         left-aligned under the page head. */
      .sr-bar{ margin:22px 0 2px; max-width:640px; }
      .sr-browse{ margin-top:16px; }
      /* Matched text, highlighted tastefully: a warm gold wash
         inside card text (display only — the stored card text,
         copies and downloads are untouched), a softer tint in
         the small type labels. */
      .art-text mark{
        background:rgba(255,185,32,.88); color:#2A1A00; border-radius:4px;
        padding:0 3px; text-shadow:none;
        box-decoration-break:clone; -webkit-box-decoration-break:clone;
      }
      .type-tag mark{
        background:rgba(255,185,32,.55); color:inherit; border-radius:3px; padding:0 2px;
      }

      /* ---------- Feedback consistency: busy + done ---------- */
      @keyframes mkSpin{ to{ transform:rotate(360deg); } }
      @keyframes mkPulse{ from{ opacity:.45; } to{ opacity:.85; } }
      button.busy{ pointer-events:none; opacity:.82; }
      .btn.busy::after{
        content:""; width:15px; height:15px; flex:none; border-radius:50%;
        border:2px solid currentColor; border-top-color:transparent;
        animation:mkSpin .65s linear infinite;
      }
      .soc.busy{ position:relative; }
      .soc.busy svg{ opacity:0; }
      .soc.busy::after{
        content:""; position:absolute; inset:0; margin:auto;
        width:16px; height:16px; border-radius:50%;
        border:2px solid #fff; border-top-color:transparent;
        animation:mkSpin .65s linear infinite;
      }
      .btn.done{
        border-color:var(--red); color:var(--red); background:var(--tint);
        box-shadow:0 0 0 3px rgba(58,133,5,.14);
      }
      /* The one toast, finished: a gentle scale as it lands. */
      .toast{ transform:translate(-50%,80px) scale(.96); letter-spacing:.01em; }
      .toast.show{ transform:translate(-50%,0) scale(1); }
      @media (prefers-reduced-motion: reduce){
        .btn.busy::after,.soc.busy::after{ animation:mkPulse 1.2s ease-in-out infinite alternate; }
        .toast{ transform:translate(-50%,80px); }
        .toast.show{ transform:translate(-50%,0); }
      }

      /* ---------- Tap & focus audit ---------- */
      .btn-sm{ min-height:44px; }
      .soc{ width:44px; height:44px; min-height:44px; }
      .soc svg{ width:21px; height:21px; }
      .drawer-close{ width:44px; height:44px; }
      .pz-swatch{ width:34px; height:34px; min-height:34px; }
      .pz-mini{ min-height:42px; }
      .pz-photo-reset{ min-height:42px; }
      .pz-colorpick{ height:36px; min-height:36px; }
      .sc-dot{ min-width:24px; min-height:24px; }
      .site-foot ul a{ min-height:36px; }
      /* Gold focus rings on the brand-coloured surfaces, where
         the green ring would disappear. */
      .soc:focus-visible,.lang-btn:focus-visible,.to-top:focus-visible,
      .head-btn:focus-visible,.sc-arrow:focus-visible{
        outline:3px solid #FFD94D; outline-offset:2px;
        box-shadow:0 0 0 6px rgba(255,185,32,.28);
      }
      .pz-name:focus-visible,.tm-textarea:focus-visible{
        box-shadow:0 0 0 4px rgba(58,133,5,.15);
      }

      /* ---------- Image presentation, unified ---------- */
      /* Template-strip thumbnails get the same inner ring and
         soft bottom shade as the photo cards. */
      .pz-thumb{ position:relative; }
      /* Upload-your-own background (owner, 2026-11-29): the
         first tile of every Designs gallery — dashed, clearly
         an action rather than a design. Once a photo is in,
         it sits beside the tile as a normal selectable design
         marked "Yours". The photo is cover-fit by the same
         painter as every preset background, takes the same
         Photo Adjust, and the locked BR5 border stays on top
         exactly as always. */
      .pz-thumb-up{
        flex:0 0 70px; scroll-snap-align:start; cursor:pointer;
        display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
        min-height:96px; padding:8px 4px; text-align:center;
        border:2.5px dashed var(--line-strong); border-radius:11px; background:var(--surface);
        color:var(--brand); transition:border-color .15s ease, transform .12s ease;
      }
      .pz-thumb-up:active{ transform:scale(.96); }
      .pz-thumb-up svg{ width:22px; height:22px; }
      .pz-thumb-up-lab{ font-size:.68rem; font-weight:800; line-height:1.15; color:var(--ink); }
      .pz-thumb-up-sub{ font-size:.6rem; font-weight:700; color:var(--brand); }
      .pz-strip .pz-thumb-up{ flex-basis:88px; }
      .pz-studio .pz-thumb-up{ flex:1 1 29%; }
      .pz-thumb-own{
        position:absolute; left:0; right:0; bottom:0; z-index:2;
        padding:2px 0; font-size:.58rem; font-weight:800; letter-spacing:.05em; text-align:center;
        color:#2A1D02; background:linear-gradient(180deg,#FFE066,#FFC531); line-height:1.3;
      }
      .pz-thumb::after{
        content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
        box-shadow:inset 0 0 0 1px rgba(255,255,255,.25), inset 0 -18px 22px -20px rgba(10,25,2,.45);
      }
      .tm-chip canvas{ border:1px solid var(--line); }
      .rail-card .img-card,.sc-slide .img-card{ border-radius:18px; }

      /* ---------- Footer & info-page prose ---------- */
      .prose{ max-width:730px; font-size:1.01rem; }
      .prose h2{ margin:36px 0 10px; line-height:1.3; }
      .prose h2:first-of-type{ margin-top:28px; }
      .prose p{ margin-bottom:14px; }
      .prose p:first-of-type{ font-size:1.07rem; line-height:1.7; color:var(--ink); }
      .prose a{
        font-weight:600; text-decoration:underline;
        text-decoration-color:rgba(58,133,5,.45); text-decoration-thickness:1.5px;
        text-underline-offset:3px; transition:text-decoration-color .15s ease;
      }
      .prose a:hover{ text-decoration-color:var(--red); }
      @media (prefers-color-scheme: dark){
        .prose a{ text-decoration-color:rgba(147,220,63,.5); }
        .prose a:hover{ text-decoration-color:var(--red); }
      }
      .site-foot p{ line-height:1.7; }
      @media (min-width:760px){ .foot-inner{ gap:34px 48px; } }
      .foot-bar{ padding:18px 16px; }

      /* ==========================================================
         PREMIUM POLISH PASS 5 — an app-style mobile bottom
         navigation, delight details (heading sheen, the Quote
         of the Day motif, sparkle dividers), the last
         consistency sweep, and one unified loading feel.
         Presentation only — no content, route, locked
         behaviour, protection or filename changes; the centred
         header brand and the matched clock / language chips
         are untouched.
         ========================================================== */

      /* ---------- Mobile bottom navigation (≤760px) ---------- */
      .mnav{ display:none; }
      @media (max-width:760px){
        .mnav{
          display:flex; align-items:stretch; gap:2px;
          position:fixed; left:0; right:0; bottom:0; z-index:78;
          padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));
          background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
          border-top:1px solid rgba(255,233,61,.45);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 -12px 28px -12px rgba(6,40,20,.55), 0 0 18px rgba(255,217,77,.10);
        }
        .mnav-item{
          flex:1 1 0; min-width:0; min-height:60px; padding:5px 2px 4px;
          display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
          border-radius:13px; color:#EAF7E4; background:none; border:none; cursor:pointer;
          font-size:.64rem; font-weight:600; letter-spacing:.01em; line-height:1.18; text-align:center;
          transition:background .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
        }
        /* Full maker names on the bar (Story Maker, Card Maker,
           Text Maker, DP Maker) so every tool is identifiable at
           a glance — the word "Maker" wraps to a second line. */
        .mnav-item span{ max-width:100%; pointer-events:none; }
        .mnav-item svg{ width:22px; height:22px; flex:none; }
        .mnav-item:hover{ text-decoration:none; }
        .mnav-item:active{ transform:scale(.94); }
        .mnav-item.on{
          color:#FFD94D; background:rgba(255,217,77,.14);
          box-shadow:inset 0 0 0 1px rgba(255,217,77,.4), inset 0 1px 0 rgba(255,255,255,.18);
        }
        .mnav-item:focus-visible{
          outline:3px solid #FFD94D; outline-offset:-3px;
          box-shadow:0 0 0 3px rgba(255,185,32,.3);
        }
        /* Room for the bar: no content, card action bar or maker
           sticky preview ever slides underneath it, and the
           Back-to-Top button and toast float above it. */
        body{ padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
        /* Scroll stops keep the same clearance: any control
           scrolled into view (the hero search included) lands
           above the bar, never underneath it. */
        html{ scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom,0px)); }
        main a, main button, main input, main select, main textarea{
          scroll-margin-bottom:calc(92px + env(safe-area-inset-bottom,0px));
        }
        .to-top{ bottom:calc(92px + env(safe-area-inset-bottom,0px)); }
        .toast{ bottom:calc(98px + env(safe-area-inset-bottom,0px)); }
        /* The hero sits a little higher on phones, so its search
           bar rests fully above the bottom bar in the first
           screenful instead of sliding behind it. */
        .hero{ padding-top:14px; }
      }
      @media (max-width:760px) and (prefers-color-scheme: dark){
        .mnav{ background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%); }
      }

      /* ---------- Delight: heading sheen ---------- */
      /* A slow gold glint sweeps the section and page headings.
         Guarded by @supports: without background-clip:text the
         headings simply keep their normal ink colour. */
      @keyframes mkSheen{ 0%{ background-position:115% 0; } 45%,100%{ background-position:-115% 0; } }
      @supports ((-webkit-background-clip:text) or (background-clip:text)){
        .section-head h2,.page-head h1{
          background-image:linear-gradient(100deg,var(--ink) 0%,var(--ink) 40%,#D9A514 50%,var(--ink) 60%,var(--ink) 100%);
          background-size:230% 100%; background-position:115% 0;
          -webkit-background-clip:text; background-clip:text;
          -webkit-text-fill-color:transparent; color:transparent;
          animation:mkSheen 7.5s ease-in-out infinite;
        }
        .section-head h2 .h2-alt{ -webkit-text-fill-color:var(--muted); }
        @media (prefers-color-scheme: dark){
          .section-head h2,.page-head h1{
            background-image:linear-gradient(100deg,var(--ink) 0%,var(--ink) 40%,#FFE93D 50%,var(--ink) 60%,var(--ink) 100%);
          }
        }
      }
      @media (prefers-reduced-motion: reduce){
        .section-head h2,.page-head h1{ animation:none; }
      }

      /* ---------- Delight: Quote of the Day motif ---------- */
      /* An emerald medallion with a gold quote mark rides the
         panel's top edge; a large ghost quote mark watermarks
         the panel's corner behind the card. */
      .qotd-wrap{ position:relative; }
      .qotd-wrap::before{
        content:""; position:absolute; top:-16px; left:24px; z-index:2;
        width:34px; height:34px; border-radius:50%;
        background:
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.2 6.5H7a4 4 0 0 0-4 4V17h6.5v-6.5H6.6c0-2 1.5-3.6 3.6-4zm10 0h-3.2a4 4 0 0 0-4 4V17h6.5v-6.5h-2.9c0-2 1.5-3.6 3.6-4z' fill='%23FFD94D'/%3E%3C/svg%3E")
          center / 19px 19px no-repeat,
          linear-gradient(135deg,#2E9E33 0%,#14632A 48%,#0A3D20 100%);
        border:1px solid rgba(255,233,61,.5);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.4), 0 10px 20px -8px rgba(10,61,32,.65), 0 0 12px rgba(255,217,77,.2);
      }
      .qotd-wrap::after{
        content:""; position:absolute; top:8px; right:14px; z-index:0;
        width:104px; height:104px; pointer-events:none; opacity:.06;
        background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.2 6.5H7a4 4 0 0 0-4 4V17h6.5v-6.5H6.6c0-2 1.5-3.6 3.6-4zm10 0h-3.2a4 4 0 0 0-4 4V17h6.5v-6.5h-2.9c0-2 1.5-3.6 3.6-4z' fill='%233A8505'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      @media (prefers-color-scheme: dark){
        .qotd-wrap::after{
          opacity:.09;
          background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.2 6.5H7a4 4 0 0 0-4 4V17h6.5v-6.5H6.6c0-2 1.5-3.6 3.6-4zm10 0h-3.2a4 4 0 0 0-4 4V17h6.5v-6.5h-2.9c0-2 1.5-3.6 3.6-4z' fill='%2393DC3F'/%3E%3C/svg%3E");
        }
      }

      /* ---------- Delight: sparkle dividers ---------- */
      /* The Maka sparkle rests at the centre of the section
         rule (the Pass 3 fading gradient line is kept as the
         second layer) and on every drawer separator. */
      .section-head{
        background:
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.1 9.9 21.5 12 14.1 14.1 12 21.5 9.9 14.1 2.5 12 9.9 9.9Z' fill='%23FFB020' stroke='%233A8505' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E")
          center bottom / 15px 15px no-repeat,
          linear-gradient(90deg,var(--line),var(--line) 55%,transparent) bottom / 100% 1px no-repeat;
      }
      @media (prefers-color-scheme: dark){
        .section-head{
          background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.1 9.9 21.5 12 14.1 14.1 12 21.5 9.9 14.1 2.5 12 9.9 9.9Z' fill='%23FFC94D' stroke='%2393DC3F' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E")
            center bottom / 15px 15px no-repeat,
            linear-gradient(90deg,var(--line),var(--line) 55%,transparent) bottom / 100% 1px no-repeat;
        }
      }
      .drawer .sep{ position:relative; }
      .drawer .sep::after{
        content:""; position:absolute; left:50%; top:0; transform:translate(-50%,-50%);
        width:26px; height:13px;
        background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.1 9.9 21.5 12 14.1 14.1 12 21.5 9.9 14.1 2.5 12 9.9 9.9Z' fill='%23FFB020' stroke='%233A8505' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
      }

      /* ---------- Consistency sweep: the last outliers ---------- */
      /* Any native select joins the one control language:
         surface fill, strong line, 10px radius, 44px tall. */
      select{
        font:inherit; color:var(--ink); background:var(--surface);
        border:1px solid var(--line-strong); border-radius:10px;
        padding:8px 10px; min-height:44px;
      }
      /* Remaining sub-44px tap targets brought to the standard. */
      .lang-menu button{ min-height:44px; }
      .drawer a{ min-height:44px; }
      .crumbs a{ display:inline-flex; align-items:center; min-height:44px; }
      /* Colour pickers in every studio share the swatch geometry. */
      input[type="color"]{
        border:1px solid var(--line-strong); border-radius:10px;
        background:var(--surface); padding:3px; cursor:pointer;
      }

      /* ---------- Loading feel: one shimmer, everywhere ---------- */
      /* Collection and showcase frames share a single animated
         skeleton shimmer until their image lands (the existing
         .ld hook stops it); the Pass 2 static bed remains the
         reduced-motion / no-:has fallback. */
      @keyframes mkShimmer{ from{ background-position:120% 0; } to{ background-position:-120% 0; } }
      .img-card{
        background:linear-gradient(115deg,#2F5D06 32%,#477F10 50%,#2F5D06 68%);
        background-size:220% 100%;
        animation:mkShimmer 1.6s linear infinite;
      }
      .img-card:has(img.ld){ animation:none; }
      @media (prefers-reduced-motion: reduce){
        .img-card{ animation:none; }
      }
      /* Font swap (verified): the Google Fonts request already
         carries display=swap and every heading stack falls back
         through Baloo Da 2 → Poppins → system-ui, so a swapped
         heading keeps near-identical metrics and does not jump. */

      /* ==========================================================
         PREMIUM POLISH PASS 7 — speed feel, image robustness
         and route focus. Presentation/robustness only — no
         content, route, locked behaviour, protection or
         filename changes.
         ========================================================== */

      /* Route focus lands on the page heading programmatically;
         it must never flash a visible outline when it does. */
      [data-pfocus]:focus{ outline:none !important; }
      /* The router adds this for one frame so a page change
         resets scroll instantly instead of gliding under the
         stylesheet's smooth scrolling. */
      html.no-smooth{ scroll-behavior:auto !important; }

      /* Branded image fallback: when a content image cannot
         load, its frame keeps the emerald brand gradient and
         shows the Maka sparkle + site name instead of a broken
         image icon. The shimmer is stopped by the same .ld hook
         the load path uses, so the two never fight. */
      .img-card.fb-on{
        animation:none;
        background:linear-gradient(150deg,#2E9E33 0%,#14632A 52%,#0A3D20 100%);
      }
      .img-card img.img-broken{ display:none; }
      .img-fb{
        position:absolute; inset:0; z-index:1;
        display:flex; flex-direction:column; align-items:center; justify-content:center;
        gap:10px; padding:18px; text-align:center; color:#fff;
      }
      .img-fb svg{
        width:44px; height:44px; color:#FFD94D; flex:none;
        filter:drop-shadow(0 3px 8px rgba(0,0,0,.35));
      }
      .img-fb .fb-name{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        font-weight:800; letter-spacing:.14em; font-size:1.05rem; line-height:1.2;
        text-shadow:0 2px 8px rgba(0,0,0,.4);
      }
      .img-fb .fb-sub{
        font-size:.78rem; font-weight:600; letter-spacing:.04em;
        color:rgba(255,255,255,.88); line-height:1.45;
      }

      /* ==========================================================
         INTRO SPLASH — once per browser session (see the gate
         script in <head>). A fixed emerald brand screen in the
         style of the YouTube / WhatsApp app splash: the Maka
         logo springs in with gold sparkles, "MAJE KARO" staggers
         in letter by letter in the header brand's own colours
         (white + #FFE93D), the ΜΔҜΔ line fades under it, then
         the whole screen fades/slides away at ~2.2s to
         reveal the site already rendered underneath. It is
         display:none unless <html> carries .mk-intro-on, so a
         returning visitor in the same session never sees a
         flash of it. Identical in light and dark mode — it is
         the brand screen in both. Sits above header (60),
         drawer (90) and toast (120).
         ========================================================== */
      .mk-intro{
        display:none;
        position:fixed; inset:0; z-index:200;
        flex-direction:column; align-items:center; justify-content:center;
        gap:0; padding:24px; text-align:center; overflow:hidden;
        color:#fff; cursor:pointer; -webkit-tap-highlight-color:transparent;
        background:
          radial-gradient(560px 380px at 50% 30%, rgba(255,201,77,.20) 0%, rgba(255,201,77,0) 62%),
          radial-gradient(900px 620px at 85% 110%, rgba(46,158,51,.35) 0%, rgba(46,158,51,0) 60%),
          linear-gradient(160deg,#2E9E33 0%,#14632A 46%,#0A3D20 78%,#062E16 100%);
        transition:opacity .38s ease, transform .38s ease, visibility .38s;
        /* CSS-only failsafe: even if the controller script were
           ever blocked, the splash clears itself shortly after
           the intended run and stops intercepting taps. */
        animation:mkIntroFailsafe .45s ease 3.1s forwards;
      }
      html.mk-intro-on .mk-intro{ display:flex; }
      /* The splash's inner stage (logo, letter spans, skip
         label) is purely decorative: taps anywhere must land on the
         overlay itself, whose click handler skips the intro. Without
         this, the centred letter spans sit on top of the page's
         mid-screen hit area while the splash is up. */
      .mk-intro-stage, .mk-intro-stage *, .mk-intro-skip{ pointer-events:none; }
      @keyframes mkIntroFailsafe{ to{ opacity:0; visibility:hidden; pointer-events:none; } }
      .mk-intro.mk-intro-out{
        opacity:0; visibility:hidden; pointer-events:none !important;
        transform:translateY(-16px);
      }
      .mk-intro-stage{ position:relative; display:flex; flex-direction:column; align-items:center; }
      .mk-intro-logo-wrap{ position:relative; margin-bottom:26px; }
      .mk-intro-logo{
        width:118px; height:118px; border-radius:28px; object-fit:cover; display:block;
        background:#fff;
        border:3px solid rgba(255,217,77,.85);
        box-shadow:0 24px 50px -14px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.10), 0 0 44px rgba(255,201,77,.35), inset 0 1px 0 rgba(255,255,255,.6);
        opacity:0; transform:scale(.55);
        animation:mkLogoIn .78s cubic-bezier(.34,1.56,.5,1) .08s forwards;
      }
      @keyframes mkLogoIn{
        0%{ opacity:0; transform:scale(.55) translateY(14px); }
        60%{ opacity:1; transform:scale(1.06) translateY(-2px); }
        100%{ opacity:1; transform:scale(1) translateY(0); }
      }
      .mk-spark{
        position:absolute; color:#FFD94D; opacity:0; pointer-events:none;
        filter:drop-shadow(0 2px 6px rgba(255,176,32,.65));
        animation:mkSpark 1.15s ease-in-out forwards;
      }
      .mk-spark svg{ display:block; width:100%; height:100%; }
      .mk-spark.s1{ width:26px; height:26px; top:-16px; right:-24px; animation-delay:.45s; }
      .mk-spark.s2{ width:17px; height:17px; top:6px; left:-28px; animation-delay:.62s; }
      .mk-spark.s3{ width:14px; height:14px; bottom:-10px; right:-12px; animation-delay:.8s; }
      .mk-spark.s4{ width:11px; height:11px; bottom:14px; left:-16px; animation-delay:.95s; }
      .mk-spark.s5{ width:19px; height:19px; top:-22px; left:8px; animation-delay:1.1s; }
      @keyframes mkSpark{
        0%{ opacity:0; transform:scale(.3) rotate(0deg); }
        45%{ opacity:1; transform:scale(1.15) rotate(35deg); }
        100%{ opacity:.15; transform:scale(.85) rotate(70deg); }
      }
      /* The splash name wears the header brand's exact dress
         (owner, 2026-11-28): same Baloo stack, weight, spacing
         and colour split — "MAJE" in white, "KARO" in the
         header's #FFE93D — with the header's own green-shade
         text shadow. Only the size and the letter-stagger
         entrance are the splash's own. */
      .mk-intro-name{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        font-weight:800; letter-spacing:.06em; line-height:1.1; text-transform:uppercase;
        font-size:clamp(2.3rem,9.5vw,3.4rem); color:#fff;
        display:flex; justify-content:center; flex-wrap:nowrap;
        text-shadow:0 2px 0 rgba(23,61,5,.22),0 3px 10px rgba(23,61,5,.30);
      }
      .mk-intro-name .mk-l{
        display:inline-block; opacity:0; transform:translateY(16px) scale(.85);
        animation:mkLetterIn .5s cubic-bezier(.3,1.4,.5,1) forwards;
        animation-delay:calc(.55s + var(--i) * .07s);
      }
      .mk-intro-name .mk-l.g{ color:#FFE93D; }
      .mk-intro-name .mk-sp{ width:.45em; flex:none; }
      @keyframes mkLetterIn{ to{ opacity:1; transform:translateY(0) scale(1); } }
      .mk-intro-sub{
        margin-top:10px; font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        font-size:clamp(1.35rem,5.4vw,1.7rem); font-weight:700; letter-spacing:.38em;
        margin-right:-.38em; line-height:1.15; text-shadow:0 2px 8px rgba(0,0,0,.35);
        opacity:0; transform:translateY(8px);
        animation:mkTagIn .55s ease 1.14s forwards;
      }
      .mk-intro-sub .w{ color:#fff; }
      .mk-intro-sub .g{ color:#FFE93D; }
      @keyframes mkTagIn{ to{ opacity:1; transform:none; } }
      .mk-intro-bar{
        margin-top:34px; width:148px; height:4px; border-radius:99px;
        background:rgba(255,255,255,.22); overflow:hidden;
        opacity:0; animation:mkTagIn .4s ease .9s forwards;
      }
      .mk-intro-bar i{
        display:block; height:100%; width:0; border-radius:99px;
        background:linear-gradient(90deg,#FFE93D,#FFB020);
        box-shadow:0 0 10px rgba(255,201,77,.8);
        animation:mkBarFill 1.25s cubic-bezier(.3,.6,.4,1) .95s forwards;
      }
      @keyframes mkBarFill{ to{ width:100%; } }
      .mk-intro-skip{
        position:absolute; left:0; right:0; bottom:calc(20px + env(safe-area-inset-bottom,0px));
        font-size:.76rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
        color:rgba(255,255,255,.55);
        opacity:0; animation:mkTagIn .5s ease 1.5s forwards;
      }
      @media (prefers-reduced-motion: reduce){
        /* Reduced motion: no spring, stagger or sparkles — the
           static brand screen simply fades out fast (the
           controller script dismisses it within ~500ms). */
        .mk-intro{ animation:mkIntroFailsafe .3s ease .6s forwards; }
        .mk-intro-logo,.mk-intro-name .mk-l,.mk-intro-sub,.mk-intro-bar,.mk-intro-skip{
          animation:none; opacity:1; transform:none;
        }
        .mk-intro-bar i{ animation:none; width:100%; }
        .mk-spark{ display:none; }
      }

      /* ==========================================================
         SIDE MENU PREMIUM RESTYLE — the drawer raised to the
         site's top standard: an emerald-gold gradient header
         band with the Maka logo, grouped sections under small
         gold uppercase headings, a jewel icon chip on every
         main row, generous ≥48px rows, a gold active-page
         highlight, a staggered item fade as it opens, a soft
         deep shadow with a rounded inner edge, an elegant
         circular close button and a tidy copyright footer
         strip. Presentation only — no route, link or behaviour
         changes; the scrim and the bottom-nav Menu button keep
         working exactly as before, in light and dark alike.
         ========================================================== */
      .scrim{ background:rgba(8,20,4,.52); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
      .drawer{
        width:min(344px,88vw); overflow:hidden;
        border-radius:0 22px 22px 0;
        box-shadow:24px 0 60px -18px rgba(6,30,10,.5), 8px 0 30px rgba(0,0,0,.22);
      }
      .drawer nav{
        flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain;
        padding:12px 12px 16px; scrollbar-width:thin;
      }
      .drawer nav::-webkit-scrollbar{ width:6px; }
      .drawer nav::-webkit-scrollbar-thumb{ background:var(--line-strong); border-radius:99px; }

      /* Header band: the matched emerald-gold family of the
         clock / language chips, with the logo ringed in gold
         and the brand name two-tone like the header & footer. */
      .drawer-head{
        flex:none; padding:18px 16px 16px 18px; color:#fff;
        background:
          radial-gradient(320px 150px at 88% -30%, rgba(255,201,77,.28) 0%, rgba(255,201,77,0) 60%),
          linear-gradient(135deg,#2E9E33 0%,#14632A 46%,#0A3D20 100%);
        border-bottom:1px solid rgba(255,233,61,.45);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -14px 22px -16px rgba(0,0,0,.55);
      }
      .drawer-head .brand-logo{
        width:44px; height:44px; border-radius:12px;
        border:2px solid rgba(255,217,77,.85); background:#fff;
        box-shadow:0 6px 16px rgba(0,0,0,.4), 0 0 14px rgba(255,201,77,.25);
      }
      .drawer-head .t{ color:#fff; font-size:1.22rem; line-height:1.15; letter-spacing:.07em; text-shadow:0 2px 8px rgba(0,0,0,.35); }
      .drawer-head .t .amp{ color:#FFE93D; }
      /* Tagline sits on ONE line under the wordmark with a clear
         breathing gap — never wraps or hugs the name (owner,
         2026-11-30). Slightly smaller and letter-spaced so the
         header block reads premium and balanced. */
      .drawer-brand{ gap:13px; }
      .drawer-brand > div{ min-width:0; }
      .drawer-head .s{ color:rgba(255,255,255,.88); opacity:1; font-size:.72rem; font-weight:600; letter-spacing:.09em; margin-top:5px; white-space:nowrap; }
      .drawer-close{
        width:44px; height:44px; border-radius:50%; color:#FFD94D;
        background:rgba(255,255,255,.12);
        box-shadow:inset 0 0 0 1px rgba(255,217,77,.45), inset 0 1px 0 rgba(255,255,255,.3);
        transition:background .15s ease, transform .12s ease;
      }
      .drawer-close:hover{ background:rgba(255,255,255,.22); }
      .drawer-close:active{ transform:scale(.92); }
      .drawer-close svg{ width:19px; height:19px; }
      .drawer-close:focus-visible{ outline:3px solid #FFD94D; outline-offset:2px; box-shadow:0 0 0 6px rgba(255,185,32,.28); }

      /* Group headings: small, gold, uppercase, with a fading
         gold rule running to the drawer's edge. */
      .drawer .menu-label{
        display:flex; align-items:center; gap:9px;
        padding:16px 10px 7px; font-size:.7rem; font-weight:800; letter-spacing:.17em;
        color:#7A5800;
      }
      .drawer .menu-label::after{
        content:""; flex:1; height:1px;
        background:linear-gradient(90deg, rgba(185,126,4,.45), transparent);
      }
      .drawer .menu-label:first-child{ padding-top:4px; }

      /* Rows: jewel icon chips on the main links, a gold dot
         leading the collection sub-links, one radius family. */
      .drawer a{ gap:12px; padding:8px 10px; min-height:52px; border-radius:13px; font-size:.97rem; }
      .drawer a:hover{ background:var(--tint); }
      /* Icon chips: the pale jewel chip the owner approved —
         a soft light-green rounded square with the brand-green
         glyph. (The 38px emerald-disc restyle of 2026-11-30 was
         reverted at the owner's word the same night; only the
         per-maker distinct symbols from that round stay.) */
      .drawer a .d-ic{
        width:36px; height:36px; flex:none; border-radius:11px;
        display:inline-flex; align-items:center; justify-content:center;
        background:linear-gradient(145deg,#F7FDE9 0%,var(--tint) 100%); color:var(--red);
        box-shadow:inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.8), 0 4px 10px -5px rgba(58,133,5,.5);
      }
      .drawer a .d-ic svg{ width:19px; height:19px; }
      .drawer a .d-tx{ flex:1; min-width:0; line-height:1.3; }
      .drawer .cat-link{ font-weight:700; font-size:1rem; }
      .drawer .sub-link{ min-height:48px; padding:6px 10px 6px 30px; gap:10px; font-size:.93rem; }
      .drawer .sub-link .d-dot{
        width:6px; height:6px; border-radius:50%; background:var(--sun); flex:none;
        box-shadow:0 0 0 3px rgba(255,176,32,.18); margin-left:4px;
      }
      .drawer .sub-link:hover{ color:var(--ink); }

      /* Active page: a warm gold wash, a gold icon chip and a
         gold bar at the row's leading edge. */
      .drawer a.on{
        background:linear-gradient(90deg, rgba(255,185,32,.20), rgba(255,185,32,.07));
        box-shadow:inset 0 0 0 1px rgba(185,126,4,.35);
        font-weight:700;
      }
      .drawer a.on::before{
        content:""; position:absolute; left:0; top:10px; bottom:10px; width:3.5px;
        border-radius:99px; background:linear-gradient(180deg,#FFD94D,#FFB020);
      }
      .drawer a{ position:relative; }
      .drawer a.on .d-ic{
        background:linear-gradient(145deg,#FFE93D,#FFB020); color:#5A3B00;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.65), inset 0 0 0 1px rgba(185,126,4,.35), 0 4px 10px -4px rgba(255,176,32,.7);
      }
      .drawer .sub-link.on{ color:#7A5800; }

      /* Separators: a soft graduated line (the Pass 5 sparkle
         chip still rests at its centre). */
      .drawer .sep{ border-top:none; height:1px; margin:13px 14px; background:linear-gradient(90deg,transparent,var(--line-strong),transparent); }

      /* Footer strip: the site footer's own copyright line. */
      .drawer-foot{
        flex:none; text-align:center; line-height:1.55;
        padding:13px 18px calc(13px + env(safe-area-inset-bottom,0px));
        border-top:1px solid var(--line);
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 140%);
        font-size:.76rem; font-weight:600; color:var(--muted);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.5);
      }

      /* Opening cascade: rows settle in one after another. */
      @keyframes drawerItemIn{ from{ opacity:0; transform:translateX(-10px); } to{ opacity:1; transform:none; } }
      .drawer.open nav a,.drawer.open nav .menu-label{
        animation:drawerItemIn .38s var(--ease) both;
        animation-delay:min(calc(var(--di,0) * 22ms), 300ms);
      }
      @media (prefers-reduced-motion: reduce){
        .drawer.open nav a,.drawer.open nav .menu-label{ animation:none; }
        .drawer-close:active{ transform:none; }
      }
      @media (prefers-color-scheme: dark){
        .drawer-head{
          background:
            radial-gradient(320px 150px at 88% -30%, rgba(255,201,77,.20) 0%, rgba(255,201,77,0) 60%),
            linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -14px 22px -16px rgba(0,0,0,.65);
        }
        .drawer .menu-label{ color:#FFD94D; }
        .drawer .menu-label::after{ background:linear-gradient(90deg, rgba(255,217,77,.4), transparent); }
        .drawer a .d-ic{
          background:linear-gradient(145deg,#2A3D16 0%,var(--tint) 100%);
          box-shadow:inset 0 0 0 1px var(--line-strong), 0 4px 10px -5px rgba(0,0,0,.6);
        }
        .drawer a.on{ box-shadow:inset 0 0 0 1px rgba(255,217,77,.4); }
        .drawer .sub-link.on{ color:#FFD94D; }
        .drawer-foot{ box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
      }

      /* ==========================================================
         HEADER + FOOTER SLIM PASS — the sticky bar and the foot
         made visibly slimmer and more premium, at the owner's
         request: a shorter header (52px desktop, a compact
         two-row 89px on phones), a slightly smaller centred
         brand, the clock / language chips trimmed to a 40px
         visual height while keeping a full 44px tap area, the
         menu button rebuilt as a glossy emerald-gold disc with
         refined gold bars, a fine gold hairline under the bar
         with a softer app-bar shadow, and a tighter, more
         elegant footer under a thinner gold rule. Presentation
         only — the brand stays absolutely centred, the clock
         behaves identically, the drawer opens exactly as
         before, and every footer link and line is unchanged.
         ========================================================== */

      /* ---------- Header: slimmer bar, finer finish ---------- */
      :root{ --head-h:52px; }
      .site-head{
        box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(23,61,5,.10), 0 10px 26px -12px rgba(46,84,4,.48);
      }
      /* Fine gold hairline along the bar's bottom edge. */
      .site-head::after{
        content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
        pointer-events:none;
        background:linear-gradient(90deg, rgba(255,217,77,0) 0%, rgba(255,217,77,.65) 16%, #FFD94D 38%, #FFB020 50%, #FFD94D 62%, rgba(255,217,77,.65) 84%, rgba(255,217,77,0) 100%);
        box-shadow:0 1px 6px rgba(255,185,32,.35);
      }
      @media (prefers-color-scheme: dark){
        .site-head{ box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 12px 28px -12px rgba(0,0,0,.6); }
      }
      /* Brand: a touch smaller, still pinned to the true centre. */
      .site-name{ font-size:clamp(.98rem,4vw,1.32rem); letter-spacing:.05em; }
      .site-name a{ gap:8px; }
      .site-name .brand-logo{ width:34px; height:34px; border-radius:9px; border-width:1.5px; }

      /* Chips: 40px visual height, full 44px tap area on the
         language button via an invisible hit extension. */
      .lang-btn{
        position:relative; min-height:40px; padding:4px 14px;
        font-size:.87rem; gap:6px;
      }
      .lang-btn::after{ content:""; position:absolute; left:0; right:0; top:-2px; bottom:-2px; }
      .lang-btn svg{ width:16px; height:16px; }
      .clock-chip{ min-width:204px; min-height:40px; padding:4px 13px 4px 6px; gap:8px; }
      .clock-ic{ width:26px; height:26px; }
      .clock-ic svg{ width:15px; height:15px; }
      .clock-date{ font-size:.63rem; min-height:.78rem; }
      .clock-time{ font-size:.9rem; }
      @media (max-width:900px){
        .clock-chip{ min-width:0; padding:4px 12px 4px 6px; gap:7px; }
        .clock-ic{ width:24px; height:24px; }
        .clock-ic svg{ width:14px; height:14px; }
        .clock-time{ font-size:.86rem; }
      }

      /* ---------- Menu button: glossy emerald-gold disc ---------- */
      #menuBtn{
        width:44px; height:44px; min-height:44px; border-radius:50%;
        color:#FFD94D;
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1px solid rgba(255,233,61,.55);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -10px 14px -10px rgba(0,0,0,.55), inset 0 8px 12px -8px rgba(255,255,255,.3), 0 5px 14px -5px rgba(10,61,32,.6), 0 0 12px rgba(255,217,77,.22);
        transition:filter .15s ease, box-shadow .15s ease, transform .12s ease;
      }
      #menuBtn:hover{ background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%); filter:brightness(1.12); }
      #menuBtn:active{ transform:scale(.92); }
      #menuBtn .menu-ic{ width:20px; height:20px; filter:drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
      @media (prefers-color-scheme: dark){
        #menuBtn{ background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -10px 14px -10px rgba(0,0,0,.65), 0 5px 14px -5px rgba(0,0,0,.65), 0 0 12px rgba(255,217,77,.2); }
        #menuBtn:hover{ background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%); }
      }
      @media (prefers-reduced-motion: reduce){
        #menuBtn:active{ transform:none; }
      }

      /* Phones: the two rows stay, but compact — 48px brand row,
         a slim one-line clock row, 89px total (--head-h follows
         so every sticky offset stays exact). */
      @media (max-width:760px){
        :root{ --head-h:89px; }
        .head-inner{ grid-template-rows:48px auto; padding:0 10px 7px; row-gap:2px; }
        .site-head .site-name{ height:48px; }
        .site-name .brand-logo{ width:30px; height:30px; border-radius:8px; }
        .clock-chip{ min-width:0; min-height:0; padding:4px 12px 4px 7px; }
        .clock-ic{ width:22px; height:22px; }
        .clock-ic svg{ width:13px; height:13px; }
        .clock-date{ font-size:.7rem; min-height:0; }
        .clock-time{ font-size:.86rem; }
        .lang-btn{ padding:4px 12px; font-size:.84rem; }
      }

      /* ---------- Footer: tighter, finer, same content ---------- */
      .site-foot::before{
        height:2px;
        background:linear-gradient(90deg, transparent 0%, rgba(255,217,77,.5) 20%, #FFD94D 50%, rgba(255,217,77,.5) 80%, transparent 100%);
      }
      .foot-inner{ padding:26px 16px 0; gap:20px; }
      @media (min-width:760px){ .foot-inner{ gap:22px 36px; } }
      .foot-brand{ gap:10px; margin-bottom:8px; }
      .foot-brand img{ width:36px; height:36px; border-radius:10px; }
      .foot-brand .n{ font-size:1.08rem; }
      .site-foot h3{ margin-bottom:8px; padding-bottom:6px; font-size:.92rem; letter-spacing:.05em; }
      .site-foot h3::after{ width:26px; }
      .site-foot p{ font-size:.86rem; line-height:1.55; max-width:400px; }
      .site-foot ul{ gap:2px; }
      .site-foot ul a{ min-height:27px; font-size:.85rem; letter-spacing:.01em; font-weight:500; }
      /* On touch the rows stay compact visually but every link
         keeps a ≥40px effective tap height. This rule sits after
         every other footer-link rule so it actually wins. */
      @media (pointer:coarse){ .site-foot ul a{ min-height:40px; } }
      .foot-bar{ margin-top:18px; padding:11px 16px; font-size:.8rem; }

      /* ==========================================================
         MAKERS NAV ROW — a slim, always-visible strip inside the
         sticky header, directly under the brand bar, on EVERY
         route and at every width, so no maker (above all the
         Text Maker, which the owner could not find on desktop)
         ever has to be hunted for. Locked order: Story Maker |
         Card Maker | Text Maker | Craze Card | DP Designer |
         WhatsApp Status.
         Deep-emerald glossy family matched to the header chips,
         gold text and jewel icons, the current maker lit with a
         gold pill. Because the row lives inside .site-head it
         sticks for free; --head-h grows by the row's height so
         every sticky offset and scroll-margin that keys off it
         (card anchors, the designer preview) stays exact, and
         .head-inner is pinned to the bar's own height so the
         brand row itself does not grow.
         ========================================================== */
      :root{ --makers-h:42px; --head-h:calc(52px + var(--makers-h)); }
      .head-inner{ height:52px; }
      @media (max-width:760px){
        :root{ --head-h:calc(89px + var(--makers-h)); }
        .head-inner{ height:auto; }
      }
      .makers-nav{
        height:var(--makers-h);
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        box-shadow:inset 0 1px 0 rgba(255,233,61,.35), inset 0 -10px 16px -12px rgba(0,0,0,.55);
      }
      .makers-nav-in{
        max-width:1180px; margin:0 auto; height:100%;
        display:flex; align-items:center; gap:4px; padding:0 8px;
        overflow-x:auto; overflow-y:hidden; flex-wrap:nowrap;
        scrollbar-width:none; -webkit-overflow-scrolling:touch;
      }
      .makers-nav-in::-webkit-scrollbar{ display:none; }
      .makers-item{
        display:inline-flex; align-items:center; gap:7px; flex:none;
        min-height:34px; padding:5px 13px; border-radius:999px;
        color:#FFE9A8; font-size:.83rem; font-weight:600; letter-spacing:.01em;
        white-space:nowrap; text-shadow:0 1px 3px rgba(0,0,0,.35);
        transition:background .15s ease, color .15s ease;
      }
      .makers-item:hover{ background:rgba(255,217,77,.16); color:#FFF3C4; text-decoration:none; }
      .makers-item svg{ width:17px; height:17px; color:#FFD94D; flex:none; filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
      .makers-item.on{
        background:linear-gradient(180deg,#FFE066 0%,#FFB020 100%);
        color:#173D05; text-shadow:none;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.65), 0 4px 12px -4px rgba(0,0,0,.5), 0 0 14px rgba(255,185,32,.35);
      }
      .makers-item.on svg{ color:#173D05; filter:none; }
      @media (min-width:900px){
        .makers-nav-in{ justify-content:space-evenly; }
      }
      /* Phones: the six maker tools wrap onto two centred rows
         instead of hiding half of them off the right edge of a
         sideways scroller — every tool stays visible and tappable
         at once. --makers-h grows to match, so the sticky-header
         offsets that build on it stay exact. */
      @media (max-width:760px){
        :root{ --makers-h:78px; }
        .makers-nav{ height:auto; }
        .makers-nav-in{
          height:auto; flex-wrap:wrap; overflow:visible;
          justify-content:center; align-content:center;
          padding:5px 6px; row-gap:3px;
        }
        .makers-item{ min-height:32px; padding:4px 10px; font-size:.79rem; gap:6px; }
        .makers-item svg{ width:15px; height:15px; }
      }
      @media (prefers-color-scheme: dark){
        .makers-nav{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#052712 100%);
          box-shadow:inset 0 1px 0 rgba(255,233,61,.28), inset 0 -10px 16px -12px rgba(0,0,0,.7);
        }
      }
      @media (prefers-reduced-motion: reduce){
        .makers-item{ transition:none; }
      }

      /* ==========================================================
         PREMIUM HERO (Home, owner request 2026-11-27) — presentation
         only: same words, same language pills, same search form and
         behaviour. The flat cream becomes a contained emerald panel:
         layered lime glow behind the headline, deep-emerald vignette
         at the edges, faint gold sparkles, a gold hairline rim and
         real depth. The language pills become a glossy segmented
         control; the search bar becomes a floating glossy card with
         a gold focus ring. Light + dark, compact on phones.
         ========================================================== */
      .hero{
        isolation:isolate; overflow:hidden;
        margin-top:14px; padding:46px 22px 30px;
        border-radius:26px;
        border:1px solid rgba(217,165,20,.38);
        background:
          radial-gradient(680px 320px at 50% -60px, rgba(154,229,43,.34) 0%, rgba(154,229,43,0) 68%),
          radial-gradient(340px 220px at 4% 0%, rgba(255,185,32,.16) 0%, rgba(255,185,32,0) 70%),
          radial-gradient(340px 240px at 96% 6%, rgba(20,99,42,.14) 0%, rgba(20,99,42,0) 70%),
          radial-gradient(130% 135% at 50% 38%, rgba(10,61,32,0) 56%, rgba(10,61,32,.10) 100%),
          linear-gradient(180deg,#F6FCE7 0%,#EFF9DC 46%,#FCFAEC 100%);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.75),
          inset 0 -22px 34px -26px rgba(10,61,32,.28),
          0 26px 50px -26px rgba(30,71,2,.38),
          0 3px 10px -4px rgba(30,71,2,.14);
      }
      .hero::before{
        inset:0; height:auto; z-index:0; border-radius:inherit;
        background:
          radial-gradient(560px 240px at 50% 0%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 70%);
      }
      /* Gold sparkles: tiny soft dots scattered in the quiet zones
         (corners and edges), never behind the text block. */
      .hero::after{
        content:""; position:absolute; inset:0; z-index:0; border-radius:inherit;
        pointer-events:none; opacity:.85;
        background:
          radial-gradient(3px 3px at 7% 18%, rgba(217,165,20,.85) 50%, rgba(217,165,20,0) 100%),
          radial-gradient(2px 2px at 12% 64%, rgba(217,165,20,.6) 50%, rgba(217,165,20,0) 100%),
          radial-gradient(2.5px 2.5px at 17% 34%, rgba(255,185,32,.7) 50%, rgba(255,185,32,0) 100%),
          radial-gradient(2px 2px at 88% 22%, rgba(217,165,20,.75) 50%, rgba(217,165,20,0) 100%),
          radial-gradient(3px 3px at 93% 58%, rgba(255,185,32,.6) 50%, rgba(255,185,32,0) 100%),
          radial-gradient(2px 2px at 82% 78%, rgba(217,165,20,.55) 50%, rgba(217,165,20,0) 100%),
          radial-gradient(2px 2px at 5% 86%, rgba(255,185,32,.55) 50%, rgba(255,185,32,0) 100%),
          radial-gradient(2.5px 2.5px at 95% 88%, rgba(217,165,20,.6) 50%, rgba(217,165,20,0) 100%);
      }
      .hero>*{ position:relative; z-index:1; }
      .hero h1{
        letter-spacing:-.018em;
        text-shadow:0 1px 0 rgba(255,255,255,.65), 0 12px 30px rgba(46,84,4,.16);
      }
      @supports ((-webkit-background-clip:text) or (background-clip:text)){
        .hero h1 .hl{
          background:linear-gradient(100deg,#1D5704 0%,#2E7A06 32%,#5C8A0C 55%,#8A6508 78%,#A87B0B 100%);
          -webkit-background-clip:text; background-clip:text;
          -webkit-text-fill-color:transparent; color:transparent;
          filter:drop-shadow(0 2px 7px rgba(122,94,8,.32));
        }
      }
      .hero p{ color:#4C5E36; font-weight:500; }
      .hero p strong{ color:var(--red-deep); font-weight:700; }
      .hero-rule{
        width:76px; height:4px;
        background:linear-gradient(90deg,#63BC0E 0%,#C79A12 55%,#FFB020 100%);
        box-shadow:0 2px 8px rgba(255,176,32,.45), inset 0 1px 0 rgba(255,255,255,.5);
      }
      /* Language pills -> glossy segmented control on a glassy track */
      .hero .lang-note{
        gap:4px; margin-top:20px; padding:5px;
        border-radius:999px;
        background:rgba(255,255,255,.55);
        -webkit-backdrop-filter:blur(8px) saturate(1.25); backdrop-filter:blur(8px) saturate(1.25);
        border:1px solid rgba(217,165,20,.35);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.8), inset 0 -8px 14px -10px rgba(30,71,2,.18), 0 10px 22px -12px rgba(30,71,2,.30);
      }
      .hero .lang-note span{
        border:none; background:transparent; box-shadow:none;
        padding:8px 19px; border-radius:999px;
        color:#43552B; font-weight:600;
        transition:background .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease;
      }
      .hero .lang-note span:active{ transform:scale(.96); }
      .hero .lang-note span.on{
        color:#fff;
        background:linear-gradient(135deg,#7CC414 0%,#3A8505 52%,#1E5B04 100%);
        text-shadow:0 1px 3px rgba(0,0,0,.3);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.55),
          inset 0 -9px 13px -9px rgba(0,0,0,.45),
          0 7px 16px -6px rgba(30,71,2,.60),
          0 0 0 1px rgba(255,185,32,.40),
          0 0 15px rgba(255,185,32,.28);
      }
      /* Search -> floating glossy card, gold hairline + gold focus ring */
      .hero .searchbar{
        margin-top:24px; border-radius:18px; padding:7px;
        border:1px solid rgba(217,165,20,.45);
        background:linear-gradient(180deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.86) 100%);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.9),
          0 2px 6px rgba(38,54,10,.06),
          0 26px 46px -20px rgba(30,71,2,.40);
        transition:border-color .18s ease, box-shadow .18s ease;
      }
      .hero .searchbar:focus-within{
        border-color:rgba(255,176,32,.85);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.9),
          0 0 0 4px rgba(255,185,32,.30),
          0 0 22px rgba(255,185,32,.22),
          0 26px 46px -20px rgba(30,71,2,.42);
      }
      .hero .searchbar .btn-red{
        border-radius:13px; color:#fff;
        background:linear-gradient(135deg,#7CC414 0%,#3A8505 55%,#2C6603 100%);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.5),
          inset 0 -9px 13px -9px rgba(0,0,0,.4),
          0 9px 19px -8px rgba(30,71,2,.70),
          0 0 13px rgba(255,185,32,.25);
        transition:filter .15s ease, box-shadow .15s ease, transform .12s ease;
      }
      .hero .searchbar .btn-red:hover{ filter:brightness(1.08); background:linear-gradient(135deg,#7CC414 0%,#3A8505 55%,#2C6603 100%); }
      /* One-time entrance: gentle fade/rise, staggered. */
      @media (prefers-reduced-motion: no-preference){
        @keyframes heroIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
        .hero h1{ animation:heroIn .55s cubic-bezier(.22,.7,.3,1) both; }
        .hero p{ animation:heroIn .55s cubic-bezier(.22,.7,.3,1) .07s both; }
        .hero .hero-rule{ animation:heroIn .55s cubic-bezier(.22,.7,.3,1) .13s both; }
        .hero .lang-note{ animation:heroIn .55s cubic-bezier(.22,.7,.3,1) .19s both; }
        .hero .searchbar{ animation:heroIn .55s cubic-bezier(.22,.7,.3,1) .25s both; }
      }
      @media (max-width:760px){
        .hero{ margin-top:8px; padding:28px 15px 24px; border-radius:22px; }
        .hero .lang-note span{ padding:8px 15px; }
      }
      @media (prefers-color-scheme: dark){
        .hero{
          border-color:rgba(255,217,77,.30);
          background:
            radial-gradient(680px 320px at 50% -60px, rgba(147,220,63,.20) 0%, rgba(147,220,63,0) 68%),
            radial-gradient(340px 220px at 4% 0%, rgba(255,201,77,.12) 0%, rgba(255,201,77,0) 70%),
            radial-gradient(340px 240px at 96% 6%, rgba(46,158,51,.16) 0%, rgba(46,158,51,0) 70%),
            radial-gradient(130% 135% at 50% 38%, rgba(0,0,0,0) 52%, rgba(0,0,0,.42) 100%),
            linear-gradient(180deg,#1D2A10 0%,#16220B 52%,#101806 100%);
          box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14),
            inset 0 -22px 34px -26px rgba(0,0,0,.7),
            0 26px 50px -26px rgba(0,0,0,.75),
            0 3px 10px -4px rgba(0,0,0,.5);
        }
        .hero::before{
          background:radial-gradient(560px 240px at 50% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
        }
        .hero h1{ text-shadow:0 1px 0 rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.45); }
        @supports ((-webkit-background-clip:text) or (background-clip:text)){
          .hero h1 .hl{
            background:linear-gradient(100deg,#B9EC7E 0%,#93DC3F 34%,#E9BE3C 68%,#FFC94D 100%);
            -webkit-background-clip:text; background-clip:text;
            filter:drop-shadow(0 2px 7px rgba(255,201,77,.30));
          }
        }
        .hero p{ color:#B9C69B; }
        .hero p strong{ color:#FFD94D; }
        .hero .lang-note{
          background:rgba(255,255,255,.07);
          border-color:rgba(255,217,77,.32);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.16), inset 0 -8px 14px -10px rgba(0,0,0,.6), 0 10px 22px -12px rgba(0,0,0,.7);
        }
        .hero .lang-note span{ color:#C9D6AC; box-shadow:none; }
        .hero .lang-note span.on{
          color:#fff;
          background:linear-gradient(135deg,#4C9A1B 0%,#2A6B0A 52%,#173F04 100%);
          box-shadow:
            inset 0 1px 0 rgba(255,255,255,.35),
            inset 0 -9px 13px -9px rgba(0,0,0,.6),
            0 7px 16px -6px rgba(0,0,0,.75),
            0 0 0 1px rgba(255,217,77,.45),
            0 0 15px rgba(255,201,77,.25);
        }
        .hero .searchbar{
          border-color:rgba(255,217,77,.38);
          background:linear-gradient(180deg,rgba(38,50,22,.96) 0%,rgba(26,33,16,.92) 100%);
          box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14),
            0 2px 6px rgba(0,0,0,.4),
            0 26px 46px -20px rgba(0,0,0,.8);
        }
        .hero .searchbar:focus-within{
          border-color:rgba(255,201,77,.8);
          box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14),
            0 0 0 4px rgba(255,201,77,.26),
            0 0 22px rgba(255,201,77,.20),
            0 26px 46px -20px rgba(0,0,0,.85);
        }
        .hero .searchbar .btn-red{
          background:linear-gradient(135deg,#4C9A1B 0%,#2A6B0A 55%,#1D4D06 100%);
          box-shadow:
            inset 0 1px 0 rgba(255,255,255,.35),
            inset 0 -9px 13px -9px rgba(0,0,0,.55),
            0 9px 19px -8px rgba(0,0,0,.8),
            0 0 13px rgba(255,201,77,.22);
        }
        .hero .searchbar .btn-red:hover{ background:linear-gradient(135deg,#4C9A1B 0%,#2A6B0A 55%,#1D4D06 100%); }
      }

      /* ==========================================================
         TEXT MAKER PREMIUM UPGRADE — the style gallery becomes a
         wall of premium preview cards in the glossy Maka finish:
         jewel group headings with a gold rule, cards that lift
         on hover, and a selected state with a gold ring, a warm
         glow and a gold tick medallion. The preview stage gets a
         fine gold rim, and the studio controls (tabs, swatches,
         presets, textarea) are tuned to the same standard as
         the other makers. Presentation only — every chip still
         renders live with the visitor's own text, and all
         wording, backgrounds and downloads are unchanged.
         ========================================================== */
      .tm-wrap .pz-stage{
        border:1px solid rgba(201,150,46,.38); border-radius:24px;
        box-shadow:0 2px 4px rgba(38,54,10,.05), 0 30px 54px -24px rgba(38,54,10,.45), inset 0 1px 0 rgba(255,255,255,.7), 0 0 22px -6px rgba(255,185,32,.35);
      }
      @media (prefers-color-scheme: dark){
        .tm-wrap .pz-stage{
          border-color:rgba(255,217,77,.32);
          box-shadow:0 2px 4px rgba(0,0,0,.4), 0 30px 54px -24px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.08), 0 0 22px -6px rgba(255,201,77,.28);
        }
      }
      .tm-wrap .tm-note{ border-color:rgba(201,150,46,.42); }
      .tm-groups{
        max-height:568px; gap:21px; padding:15px; border-radius:18px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 140%);
      }
      .tm-group{ gap:10px; }
      .tm-group .pz-elem-group-lab{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-size:1.04rem; font-weight:800;
        letter-spacing:.02em; text-transform:none; color:var(--ink);
        display:flex; align-items:center; gap:10px;
      }
      .tm-group .pz-elem-group-lab::before{
        content:""; width:9px; height:9px; flex:none; border-radius:2px; transform:rotate(45deg);
        background:linear-gradient(135deg,#FFD94D,#E9A820);
        box-shadow:0 0 0 1.5px rgba(185,126,4,.35), 0 2px 6px rgba(255,176,32,.55);
      }
      .tm-group .pz-elem-group-lab::after{
        content:""; flex:1; height:1px;
        background:linear-gradient(90deg, rgba(201,150,46,.55), var(--line) 55%, transparent);
      }
      .tm-chip-grid{ gap:11px; }
      .tm-chip{
        position:relative; padding:7px 7px 8px; border-radius:15px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 150%);
        box-shadow:0 1px 2px rgba(38,54,10,.05), 0 10px 20px -14px rgba(38,54,10,.35), inset 0 1px 0 rgba(255,255,255,.65);
        transition:transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
      }
      .tm-chip canvas{
        border:none; border-radius:9px;
        box-shadow:inset 0 0 0 1px rgba(255,255,255,.14), 0 2px 6px rgba(10,16,6,.18);
      }
      .tm-chip-lab{ font-size:.82rem; font-weight:700; letter-spacing:.01em; padding-top:1px; }
      .tm-chip:hover{
        transform:translateY(-2px); border-color:rgba(201,150,46,.75);
        box-shadow:0 2px 4px rgba(38,54,10,.06), 0 16px 28px -14px rgba(185,126,4,.5), inset 0 1px 0 rgba(255,255,255,.7);
      }
      .tm-chip.on{
        border-color:#D99A16;
        background:linear-gradient(180deg,#FFFDF4 0%,#FFF6D8 160%);
        box-shadow:0 0 0 2px rgba(255,185,32,.85), 0 0 18px rgba(255,185,32,.45), 0 14px 26px -12px rgba(185,126,4,.55), inset 0 1px 0 rgba(255,255,255,.8);
      }
      .tm-chip.on .tm-chip-lab{ color:#7A5200; }
      .tm-chip.on::after{
        content:""; position:absolute; top:6px; right:6px; width:18px; height:18px; border-radius:50%;
        background:
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17.5 19 7' fill='none' stroke='%237A5200' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
          center / 11px 11px no-repeat,
          linear-gradient(180deg,#FFD94D,#E9A820);
        box-shadow:0 2px 6px rgba(122,82,0,.45), inset 0 1px 0 rgba(255,255,255,.7);
      }
      @media (prefers-color-scheme: dark){
        .tm-chip.on{ background:linear-gradient(180deg,#2A2410 0%,#1E1A0C 160%); }
        .tm-chip.on .tm-chip-lab{ color:#FFD970; }
      }
      /* Studio controls inside the Text Maker only: glossy tabs,
         jewel swatches and preset pills, a softer textarea. */
      .tm-box .pz-tabs button,.tm-box .pz-occ button{
        box-shadow:0 1px 2px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.6);
      }
      .tm-box .pz-swatch{
        box-shadow:0 3px 8px -3px rgba(20,30,5,.45), inset 0 1px 0 rgba(255,255,255,.5);
        transition:transform .14s var(--ease), box-shadow .14s var(--ease);
      }
      .tm-box .pz-swatch:hover{ transform:translateY(-1px) scale(1.06); }
      .tm-box .pz-preset{
        box-shadow:0 1px 2px rgba(38,54,10,.05), inset 0 1px 0 rgba(255,255,255,.55);
      }
      .tm-wrap .tm-textarea{ border-radius:14px; }
      .tm-box .pz-actions .btn{ border-radius:13px; }
      @media (prefers-reduced-motion: reduce){
        .tm-chip:hover,.tm-box .pz-swatch:hover{ transform:none; }
      }

      /* ==========================================================
         FINAL PREMIUM PASS — presentation only, no content or
         behaviour change. Footer compaction on phones (the link
         lists run two abreast so the footer stops sprawling),
         tighter showcase-dot rhythm, a jewel scrollbar for the
         Text Maker style library, and one shared press/gloss
         finish so every tappable surface answers the same way.
         ========================================================== */
      @media (max-width:759px){
        .foot-inner{ gap:18px; padding-top:22px; }
        .site-foot ul{ grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:22px; }
        .foot-bar{ margin-top:14px; }
      }
      .foot-bar{ border-top:1px solid rgba(255,217,77,.13); }
      .sc-dots{ margin-top:10px; }
      @media (max-width:760px){
        .sc-dots{ gap:5px; row-gap:0; margin-top:8px; padding:0 14px; }
      }
      .tm-groups{ scrollbar-color:rgba(201,150,46,.55) transparent; }
      .tm-groups::-webkit-scrollbar{ width:8px; }
      .tm-groups::-webkit-scrollbar-track{ background:transparent; }
      .tm-groups::-webkit-scrollbar-thumb{
        border-radius:99px;
        background:linear-gradient(180deg,#E9C979,#C9962E);
        border:2px solid transparent; background-clip:padding-box;
      }
      .tm-groups::-webkit-scrollbar-thumb:hover{ background:linear-gradient(180deg,#FFD970,#D99A16); background-clip:padding-box; }
      @media (prefers-color-scheme: dark){
        .foot-bar{ border-top-color:rgba(255,217,77,.18); }
      }
      @media (pointer:coarse) and (prefers-reduced-motion: no-preference){
        .tm-chip:active,.pz-thumb:active,.pz-elem-btn:active{ transform:scale(.96); }
      }

      /* ==========================================================
         ROYAL FINISH PASS — the site-wide premium sweep the owner
         asked for: a richer footer (gold-ruled headings, gold
         link hovers, a settled bar over a deeper ground), a
         gentle lift on the makers rail and collection rails, and
         one shared button press so every control answers with
         the same weight. Presentation only — no content, link or
         behaviour changes, in light and dark alike (the footer
         is a fixed dark ground in both schemes).
         ========================================================== */
      .site-foot{ background:linear-gradient(180deg,#1E320D 0%,#131F06 55%,#0D1804 100%); }
      .site-foot h3::after{
        width:34px;
        background:linear-gradient(90deg,var(--sun),#E9C979 55%,rgba(233,201,121,.15));
      }
      .site-foot ul a:hover{ color:#FFE93D; }
      .foot-brand .n{ letter-spacing:.045em; }
      .foot-brand img{ outline:1px solid rgba(255,217,77,.35); outline-offset:2px; }
      .foot-bar{
        background:rgba(0,0,0,.20);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
        padding-top:13px; padding-bottom:13px;
      }
      @media (hover:hover) and (pointer:fine){
        .makers-item{ transition:background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
        .makers-item:hover{
          transform:translateY(-1px);
          box-shadow:0 6px 14px -8px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,217,77,.35);
        }
        .rail-card{ transition:transform .22s var(--ease); }
        .rail-card:hover{ transform:translateY(-3px); }
      }
      .btn{ transition:transform .12s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), filter .18s var(--ease); }
      @media (prefers-reduced-motion: no-preference){
        .btn:active{ transform:scale(.98); }
      }
      @media (prefers-reduced-motion: reduce){
        .makers-item:hover,.rail-card:hover{ transform:none; }
      }

      /* ==========================================================
         MOBILE REACHABILITY FIX — the hero search row must never
         rest underneath the fixed bottom navigation. On phones
         the showcase slides run slightly narrower (a sliver of
         the next card peeks in — the usual carousel cue, and the
         swipe/scroll behaviour is unchanged) and the hero's own
         top spacing tightens, so the search bar sits fully above
         the bottom bar's band in the first screenfuls. Phones
         only; desktop layout untouched.
         ========================================================== */
      @media (max-width:639px){
        .sc-slide{ flex-basis:44%; }
      }
      @media (max-width:760px){
        .sc-dots{ margin-top:6px; }
        .hero{ margin-top:6px; padding-top:22px; }
        .hero h1{ margin-bottom:8px; }
        .hero p{ line-height:1.6; }
        .hero .lang-note{ margin-top:10px; }
        .hero .searchbar{ margin-top:12px; }
      }

      /* ==========================================================
         MOBILE EDITING FIX (owner report 2026-11-27: "the header
         plus all the tool makers have problems — editing cannot
         be done on mobile"). Two confirmed causes, both phones
         only; the desktop studio is untouched.

         1) THE PINNED PREVIEW ATE THE EDITOR. Every canvas maker
         (Card Maker, Text Maker, DP Designer, Story Maker) wraps
         its preview in .pz-preview, which is position:sticky. In
         the single-column phone layout that block — the canvas
         plus, in the Card Maker, the photo-adjust strip, about
         465px tall; the Story Maker's 9:16 canvas about 420px —
         stayed glued under the sticky header for the WHOLE
         controls column, leaving a ~100px sliver of usable
         screen and sliding over the controls as they scrolled
         beneath it, so taps landed on the preview instead of
         the sliders, inputs and element buttons under it. On
         phones the preview now sits in the normal flow at a
         generous, tappable size and scrolls away like any
         other content: every control gets the full screen.

         2) THE HEADER WAS TALLER THAN ITS OWN MEASURE. The
         makers nav was budgeted as two rows (--makers-h:78px),
         but at real phone widths "WhatsApp Status" wrapped onto
         a third row (~112px), so the sticky header stood ~200px
         tall while --head-h said 167px — the sticky preview and
         every scroll-anchored heading slid ~33px up underneath
         the header. The phone items are trimmed a touch so the
         six tools truly fit two rows at 375px and up; very
         narrow phones (<=374px) keep three rows and --makers-h
         grows to the true 112px, so --head-h is exact again at
         every width.

         Plus: slider thumbs grow under coarse pointers (the
         21px thumb was the fiddliest part of phone editing),
         and the makers' inner scroll panels get momentum
         scrolling so a thumb-drag inside them scrolls the
         panel instead of fighting the page.
         ========================================================== */
      @media (max-width:839px){
        .pz-preview{ position:static; }
        .pz-preview .pz-stage{ max-width:320px; margin:0 auto; }
        .pz-preview .pz-stage:has(> .sm-canvas){ max-width:264px; }
        .pz-elem-groups,.tm-groups{ -webkit-overflow-scrolling:touch; }
      }
      @media (max-width:760px){
        .makers-nav-in{ padding:5px 4px; gap:3px; }
        .makers-item{ min-height:32px; padding:4px 9px; font-size:.78rem; gap:6px; }
        .makers-item svg{ width:15px; height:15px; }
      }
      @media (max-width:374px){
        :root{ --makers-h:112px; }
        .makers-item{ padding:4px 8px; font-size:.76rem; }
      }
      @media (pointer:coarse){
        input[type="range"]{ height:34px; min-height:34px; }
        input[type="range"]::-webkit-slider-thumb{ width:28px; height:28px; margin-top:-10px; }
        input[type="range"]::-moz-range-thumb{ width:23px; height:23px; }
      }

      /* ==========================================================
         MOBILE HEADER UNBLOCK (owner report 2026-11-27, repeated:
         "the menu under the header blocks the whole site with it
         — there is almost no room left on the site"). Trimming
         the sticky header's rows was not enough: pinned to the
         top of the phone for the ENTIRE visit were the brand
         row, the clock row AND the two-row makers menu — about
         167px of the viewport (over 200px on narrow phones,
         where the menu takes three rows), with the fixed bottom
         bar taking ~76px more from the other end. On a phone
         barely a third of the screen was ever the site's.
         So on phones the header stops being sticky altogether
         and scrolls away with the page like ordinary content:
         the brand, clock and all six maker links still sit at
         the top when a page opens, but the moment the visitor
         scrolls, the full screen belongs to the content. The
         fixed bottom nav (Home · Story · Card · Text · DP ·
         Menu, with the drawer carrying Craze Card and WhatsApp
         Status as well) remains the always-there navigation.
         --head-h drops to a small offset because nothing is
         pinned at the top any more, so anchored headings and
         the search bar no longer leave a header-sized empty
         gap above themselves after a jump. Desktop keeps its
         sticky header exactly as before.
         ========================================================== */
      @media (max-width:760px){
        .site-head{ position:relative; }
        :root{ --head-h:10px; }
      }
      /* ---------- Craze Card (#/craze-card): scratch-to-reveal game.
         The hidden card face is a canvas painted by the script in
         the approved premium design system — each category has its
         OWN blurred artwork world under the locked BR5 border, with
         gold-gradient display type (LOCKED_RULES section L). The
         foil above it is a second canvas, also painted by the
         script. Only layout, the progress bar, the action row and
         the reveal burst live here. */
      .cz-main{ flex:1 1 auto; min-height:0; display:flex; }
      .cz-box{ flex:1 1 auto; min-width:0; min-height:0; display:flex; flex-direction:column; align-items:center; }
      /* Premium heading (owner, 2026-11-29): the open space
         above the card carries the game's name — "ভাগ্য
         পরীক্ষা" in whichever of the three languages is
         active — set in the card's own gold-foil display
         lettering (the LOCKED_RULES L gold system) with a
         fine gold rule and diamond under it. No box, no
         border around it: the lettering is the decoration.
         The back bar keeps Back only, so the name appears
         exactly once, here. */
      .cz-hero{ flex:none; text-align:center; padding:14px 16px 0; }
      .cz-hero-t{
        margin:0; font-weight:400; line-height:1.3;
        font-size:clamp(1.85rem, 6vw, 2.55rem);
        color:#A87408;
        text-shadow:0 1px 0 rgba(255,246,214,.6), 0 12px 26px rgba(146,96,8,.16);
      }
      @supports ((-webkit-background-clip:text) or (background-clip:text)){
        .cz-hero-t{
          background:linear-gradient(180deg,#8A5A06 0%,#C9962E 32%,#F6D67C 52%,#D9A62E 72%,#96690B 100%);
          -webkit-background-clip:text; background-clip:text;
          -webkit-text-fill-color:transparent; color:transparent;
          text-shadow:none;
          filter:drop-shadow(0 2px 3px rgba(96,62,4,.30)) drop-shadow(0 14px 22px rgba(146,96,8,.14));
        }
      }
      .cz-hero-rule{ display:flex; align-items:center; justify-content:center; gap:10px; margin-top:8px; }
      .cz-hero-rule i{ display:block; height:1.5px; width:min(96px, 24vw); background:linear-gradient(90deg, rgba(201,150,46,0), #C9962E); }
      .cz-hero-rule i:last-child{ background:linear-gradient(90deg, #C9962E, rgba(201,150,46,0)); }
      .cz-hero-rule b{ width:8px; height:8px; flex:none; transform:rotate(45deg); background:linear-gradient(135deg,#F6D67C,#C9962E); box-shadow:0 0 0 1.5px rgba(201,150,46,.35); }
      /* A whisper of warm gold light at the top of the page
         behind the heading — the page's premium backdrop. */
      .cz-wrap{ background:radial-gradient(115% 44% at 50% 0%, rgba(255,176,32,.13), rgba(255,176,32,0) 70%); }
      .cz-stage-area{ flex:1 1 auto; min-height:0; width:100%; display:flex; container-type:size; padding:8px 0 4px; }
      .cz-stage{
        position:relative; aspect-ratio:4/5; border-radius:20px; overflow:hidden;
        box-shadow:0 24px 48px -18px rgba(30,20,4,.45), 0 0 0 1px rgba(233,201,121,.5), 0 0 70px -14px rgba(233,185,73,.45);
        background:#2A1240; margin:auto;
        width:min(392px, 90%, calc((100dvh - 410px) * .8));
        width:min(392px, 90cqw, 63cqh);
      }
      .cz-face{ position:absolute; inset:0; width:100%; height:100%; display:block; }
      .cz-cover{
        position:absolute; inset:0; width:100%; height:100%; display:block;
        touch-action:none; cursor:crosshair; transition:opacity .55s ease;
      }
      .cz-cover.gone{ opacity:0; pointer-events:none; }
      .cz-progress{
        flex:none; width:min(392px, 92%);
        height:9px; border-radius:99px; overflow:hidden; margin-top:14px;
        background:rgba(127,127,127,.28);
      }
      .cz-progress i{
        display:block; height:100%; width:0%;
        background:linear-gradient(90deg,#E9B949,#D97706);
        transition:width .18s ease;
      }
      .cz-hint{ text-align:center; color:var(--muted); margin:12px 0 0; font-size:.93rem; }
      .cz-actions{ flex:none; display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:14px; padding-bottom:8px; }
      .cz-actions[hidden]{ display:none; }
      .cz-confetti{
        position:absolute; left:50%; top:46%; width:9px; height:14px; border-radius:2px;
        pointer-events:none; z-index:6; animation:cz-pop 1s ease-out forwards;
      }
      @keyframes cz-pop{
        0%{ transform:translate(0,0) rotate(0deg); opacity:1; }
        100%{ transform:translate(var(--dx),var(--dy)) rotate(var(--rot)); opacity:0; }
      }
      @media (prefers-reduced-motion: reduce){
        .cz-cover{ transition:none; }
        .cz-confetti{ animation:none; opacity:0; }
        .cz-progress i{ transition:none; }
      }
      /* Craze Card fixed workspace (owner rule 2026-11-29):
         one screen, no page scroll — the router adds .cz-lock
         on the Craze route only. The card is sized by the space
         left between the slim back bar and the progress/actions
         row, centred with breathing room around it. */
      html.cz-lock, html.cz-lock body{ height:100dvh; overflow:hidden; }
      html.cz-lock body{ min-height:0; }
      html.cz-lock main{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      html.cz-lock .site-foot, html.cz-lock .showcase{ display:none; }
      html.cz-lock .to-top{ display:none !important; }
      html.cz-lock .cz-wrap{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; width:100%; padding-bottom:10px; }
      @media (max-width:760px){
        html.cz-lock body{ padding-bottom:0; }
        html.cz-lock .cz-wrap{ padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
      }
      /* DP Designer fixed workspace (owner rule 2026-11-29):
         one screen, no page scroll in any direction — the
         router adds .dp-lock on the DP route only; the preview
         stays put and only the controls column scrolls. */
      html.dp-lock, html.dp-lock body{ height:100dvh; overflow:hidden; }
      html.dp-lock body{ min-height:0; }
      html.dp-lock main{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      html.dp-lock .site-foot, html.dp-lock .showcase{ display:none; }
      html.dp-lock .to-top{ display:none !important; }
      html.dp-lock .dp-wrap{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; width:100%; padding-bottom:10px; }
      html.dp-lock .dp-box{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      html.dp-lock .dp-box .pz-main{ flex:1 1 auto; min-height:0; }
      @media (min-width:840px){
        html.dp-lock .dp-box .pz-main{ grid-template-rows:minmax(0,1fr); align-items:stretch; }
        html.dp-lock .dp-box .pz-preview{ position:static; display:flex; align-items:center; justify-content:center; min-height:0; }
        html.dp-lock .dp-box .pz-controls{ overflow-y:auto; min-height:0; padding-right:4px; }
      }
      @media (max-width:839px){
        html.dp-lock .dp-box .pz-main{ display:flex; flex-direction:column; overflow:hidden; }
        html.dp-lock .dp-box .pz-preview{ position:static; flex:none; }
        html.dp-lock .dp-box .pz-controls{ flex:1 1 auto; min-height:0; overflow-y:auto; padding-bottom:150px; }
        html.dp-lock .dp-box{ padding-bottom:0; }
      }
      @media (max-width:760px){
        html.dp-lock body{ padding-bottom:0; }
        html.dp-lock .dp-wrap{ padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
      }
      /* ---------- Maker workspace mode (standing rule,
         LOCKED_RULES section M, owner 2026-11-28, corrected
         same day) ----------
         On every maker route (Story Maker, Card Maker, Text
         Maker, Craze Card, DP Designer, WhatsApp Status) the
         site's brand header — logo, MAJE KARO, clock, language,
         hamburger — STAYS visible exactly as everywhere else;
         only the makers menu strip inside it (the Story Maker /
         Card Maker / Text Maker / Craze Card / DP Designer /
         WhatsApp Status row) steps aside, since the visitor is
         already inside a tool. The router toggles html.mk-ws on
         maker routes only; the mobile bottom nav stays, and
         each tool keeps its own Back button, which returns to
         the exact previous place. Breadcrumbs and the home
         showcase stay hidden on maker routes as before.
         Fixed-workspace tools (Card Maker, the Text Maker
         editor) keep their own screen locks on top of this. */
      html.mk-ws .makers-nav{ display:none; }
      html.mk-ws .crumbs{ display:none; }
      html.mk-ws .showcase{ display:none; }
      /* The shared top bar for page-style makers: sticky, so
         Back is always one tap away however far the tool's
         own content scrolls. */
      .mk-wsbar{
        position:sticky; top:0; z-index:40;
        display:flex; align-items:center; gap:10px;
        margin:0 -16px 10px; padding:5px 12px;
        background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 160%);
        border-bottom:2px solid var(--sun);
        box-shadow:0 12px 26px -16px rgba(30,50,5,.4);
      }
      .mk-wsback{
        display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:6px 13px 6px 10px;
        border-radius:999px; border:1.5px solid #2F7204; cursor:pointer; font:inherit; font-weight:700; font-size:.9rem;
        color:#fff; background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%);
        box-shadow:0 6px 14px -6px rgba(46,84,4,.55), inset 0 1px 0 rgba(255,255,255,.35);
        transition:transform .12s var(--ease), filter .15s var(--ease);
      }
      .mk-wsback svg{ width:15px; height:15px; }
      .mk-wsback:active{ transform:scale(.97); }
      .mk-wsbar-t{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:800;
        font-size:1.08rem; line-height:1.15; color:var(--ink);
        white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
      }
      /* ==========================================================
         CARD MAKER STUDIO (owner spec 2026-11-28, from their
         Photoshop example screenshot): the Card Maker page is a
         FIXED workspace — exactly one screen tall, the page itself
         never scrolls; only the inside of a panel scrolls. A slim
         icon toolbar sits on the left; tapping a tool pops its
         panel out beside it (Designs / Elements / Photo), which
         leaves the big canvas area free for editing. The text box
         stays on the right side like before, only compact. A Back
         button in the studio top bar returns to the exact place
         the visitor came from. Colours are the site's own Maka
         theme (lime / emerald / gold) — the screenshot's grey was
         layout example only. Active only on #/personalize (the
         router adds .cm-lock to <html> and <body>); the designer
         embedded on the home page keeps the classic layout.
         ========================================================== */
      html.cm-lock, html.cm-lock body{ height:100dvh; overflow:hidden; }
      html.cm-lock body{ min-height:0; }
      html.cm-lock main{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      html.cm-lock .site-foot, html.cm-lock .showcase{ display:none; }
      /* the floating back-to-top button is useless inside the locked
         studio and on phones it covers the rail's last tool (Audio) */
      html.cm-lock .to-top{ display:none !important; }
      @media (max-width:760px){
        /* The fixed bottom nav overlays the studio's foot; give
           the studio page the same clearance inside the lock
           instead of the body's usual bottom padding. */
        html.cm-lock body{ padding-bottom:0; }
        html.cm-lock .pz-page{ padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
      }
      .pz-page{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
      .pz-box.pz-studio{
        flex:1 1 auto; min-height:0; display:flex; flex-direction:column;
        padding:0; gap:0; border:none; border-radius:0; box-shadow:none;
        background:var(--surface); overflow:hidden;
      }
      /* ---------- Studio top bar: Back | title | actions ---------- */
      .pz-topbar{
        flex:0 0 auto; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px;
        padding:5px 10px; background:var(--surface);
        border-bottom:1.5px solid var(--line); z-index:7;
      }
      .pz-back{
        display:inline-flex; align-items:center; gap:6px; min-height:36px;
        padding:6px 13px 6px 10px; border:1.5px solid var(--line-strong); border-radius:999px;
        background:var(--surface); color:var(--ink); font-weight:700; font-size:.9rem;
        transition:border-color .15s ease, color .15s ease, transform .12s ease;
      }
      .pz-back:hover{ border-color:var(--red); color:var(--red); }
      .pz-back:active{ transform:scale(.96); }
      .pz-back svg{ width:17px; height:17px; }
      .pz-top-titles{ display:flex; flex-direction:column; min-width:0; margin-right:auto; line-height:1.2; }
      .pz-top-name{
        margin:0; font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif; font-weight:800;
        font-size:1.08rem; color:var(--red-dark); white-space:nowrap;
      }
      /* Slim-bar rule (owner, 2026-11-28): no subtitle line in a
         tool's top bar — one compact row: Back · name · actions. */
      .pz-studio .pz-sub{ display:none; }
      .pz-top-actions{ flex-wrap:nowrap; margin-left:auto; }
      .pz-top-actions .btn{ min-height:36px; padding:6px 12px; font-size:.9rem; white-space:nowrap; }
      @media (max-width:560px){
        .pz-top-actions .btn{ padding:6px 9px; font-size:.84rem; }
        .pz-top-name{ font-size:1rem; }
      }
      /* ---------- Work area: toolbar | flyout | canvas | side ---------- */
      .pz-work{ flex:1 1 auto; min-height:0; display:flex; position:relative; }
      .pz-tools{
        flex:0 0 auto; width:62px; display:flex; flex-direction:column; align-items:stretch;
        gap:4px; padding:9px 6px; background:var(--surface);
        border-right:1.5px solid var(--line); z-index:6;
      }
      .pz-tool{
        display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
        min-height:54px; padding:7px 2px; border-radius:11px; border:1.5px solid transparent;
        color:var(--muted); font-size:.62rem; font-weight:700; letter-spacing:.02em; line-height:1.1;
        transition:background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
      }
      .pz-tool svg{ width:23px; height:23px; }
      .pz-tool:hover{ color:var(--red); background:var(--tint); }
      .pz-tool:active{ transform:scale(.94); }
      .pz-tool.on{ color:var(--red-dark); background:var(--tint); border-color:var(--line-strong); }
      .pz-fly{
        flex:0 0 auto; width:270px; min-height:0; display:flex; flex-direction:column;
        background:var(--surface); border-right:1.5px solid var(--line); z-index:5;
      }
      .pz-fly.pz-fly-off{ display:none; }
      .pz-panel{
        flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
        padding:13px 13px 16px; display:flex; flex-direction:column; gap:11px;
        scrollbar-width:thin; -webkit-overflow-scrolling:touch;
      }
      .pz-panel[hidden]{ display:none; }
      .pz-panel-head{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:700; font-size:1.02rem; color:var(--ink);
      }
      .pz-panel-head .pz-strip-cat{ color:var(--red); }
      .pz-panel-head small{ display:block; font-family:"Poppins",sans-serif; font-weight:500; font-size:.76rem; color:var(--muted); margin-top:2px; }
      /* Canvas well: deep emerald from the site palette, the card
         centred with a selection-style outline, like the example. */
      .pz-stage-area{
        flex:1 1 auto; min-width:0; min-height:0; display:flex; container-type:size;
        background:linear-gradient(180deg,#2E5708 0%,#1E4702 78%);
      }
      @media (prefers-color-scheme: dark){
        .pz-stage-area{ background:linear-gradient(180deg,#16260A 0%,#0C1803 78%); }
      }
      .pz-studio .pz-preview{ position:static; margin:auto; z-index:auto; }
      .pz-studio .pz-stage{
        width:100%; max-width:430px; aspect-ratio:3/4;
        width:min(calc(100cqw - 26px), calc(75cqh - 20px)); max-width:none;
      }
      .pz-studio .pz-canvas{
        width:100%; height:100%; border-radius:10px;
        outline:3px solid var(--sun); outline-offset:3px;
        box-shadow:0 24px 48px -18px rgba(10,24,2,.6);
      }
      /* Right side: the compact text box + selected-style panel */
      .pz-side{
        flex:0 0 auto; width:254px; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
        background:var(--surface); border-left:1.5px solid var(--line);
        padding:13px 13px 24px; display:flex; flex-direction:column; gap:17px;
        scrollbar-width:thin; -webkit-overflow-scrolling:touch; z-index:5;
      }
      .pz-studio.pz-side-off .pz-side{ display:none; }
      .pz-side-sec{ display:flex; flex-direction:column; min-width:0; }
      /* Exclusive side modes (owner, 2026-11-29): the side is
         either the Text panel or the Text Style panel, never
         both stacked — the rail entry chooses which. */
      .pz-side.pz-mode-text .pz-tsel-sec{ display:none; }
      .pz-side.pz-mode-style .pz-text-sec{ display:none; }
      .pz-studio .pz-label{ margin-bottom:7px; font-size:.72rem; }
      .pz-studio .pz-tabs button, .pz-studio .pz-catrow button{
        padding:7px 11px; min-height:36px; font-size:.85rem;
      }
      .pz-studio .pz-name{ min-height:42px; padding:9px 11px; font-size:.95rem; border-radius:10px; }
      .pz-studio .pz-fields{ gap:7px; }
      .pz-studio .pz-range-row{ margin-top:9px; }
      .pz-studio .pz-tsel{ margin-top:2px; }
      .pz-studio .pz-sel{ margin-top:0; }
      .pz-studio .pz-note{ font-size:.84rem; }
      /* Panels reuse the classic controls, reflowed for a column:
         category chips wrap, template thumbs become a grid, the
         element groups scroll with the panel (not their own box),
         and the photo strip loses its card chrome. */
      .pz-studio .pz-catrow{ flex-wrap:wrap; overflow:visible; padding:0; }
      .pz-studio .pz-gallery{ display:block; }
      .pz-studio .pz-gal-row{ flex-wrap:wrap; overflow:visible; padding:0; }
      .pz-studio .pz-thumb{ flex:1 1 29%; }
      .pz-studio .pz-elem-groups{ max-height:none; overflow:visible; padding:0; }
      .pz-studio .pz-photo{ margin-top:0; border:none; border-radius:0; padding:0; background:none; }
      /* ---------- Phones & small tablets: toolbar along the bottom,
         panels open as sheets over the canvas ---------- */
      @media (max-width:839px){
        .pz-work{ flex-direction:column; }
        .pz-stage-area{ order:1; }
        .pz-tools{
          order:2; width:auto; flex-direction:row; justify-content:space-around;
          border-right:none; border-top:1.5px solid var(--line); padding:6px 8px;
        }
        .pz-tool{ flex:1 1 0; min-height:50px; }
        .pz-fly, .pz-side{
          position:absolute; left:8px; right:8px; bottom:72px; width:auto;
          max-height:57%; border:1.5px solid var(--line-strong); border-radius:16px;
          box-shadow:0 22px 44px -14px rgba(20,30,5,.5); z-index:8;
        }
        .pz-fly{ border-right:1.5px solid var(--line-strong); }
        .pz-side{ border-left:1.5px solid var(--line-strong); }
        .pz-panel{ max-height:100%; }
      }
      /* ---------- Premium finish (owner, 2026-11-28): the studio
         should read as a real professional tool — glossy panels,
         a deep emerald tool rail like a desktop editor, careful
         gold accents, polished states. All inside the fixed
         one-screen frame; colours stay the Maka theme's. ------ */
      .pz-box.pz-studio{ background:var(--surface-2); }
      .pz-studio .pz-topbar{
        background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
        border-bottom:2px solid var(--sun);
        box-shadow:0 12px 26px -16px rgba(30,50,5,.4);
      }
      .pz-studio .pz-back{
        background:linear-gradient(180deg, var(--surface), var(--surface-2));
        box-shadow:0 6px 14px -7px rgba(30,50,5,.4), inset 0 1px 0 rgba(255,255,255,.65);
      }
      .pz-studio .pz-back:hover{ box-shadow:0 9px 18px -7px rgba(30,50,5,.48), inset 0 1px 0 rgba(255,255,255,.65); }
      .pz-studio .pz-top-name{ letter-spacing:.01em; text-shadow:0 1px 0 rgba(255,255,255,.5); }
      .pz-studio .pz-top-actions .btn{
        border-radius:12px;
        box-shadow:0 9px 18px -9px rgba(30,50,5,.5), inset 0 1px 0 rgba(255,255,255,.25);
      }
      .pz-tools{
        background:linear-gradient(180deg,#2E5708 0%,#1E4702 100%);
        border-right:1px solid #122A01;
        box-shadow:inset -1px 0 0 rgba(255,255,255,.06), 8px 0 20px -12px rgba(10,24,2,.55);
        gap:6px; padding:10px 7px;
      }
      .pz-tool{ color:#C9DEA4; border-radius:13px; text-align:center; }
      .pz-tool svg{ filter:drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
      .pz-tool:hover{ color:#fff; background:rgba(255,255,255,.09); }
      .pz-tool.on{
        color:#fff; background:linear-gradient(180deg,#55A00F,#3A8505);
        border-color:rgba(255,201,77,.65);
        box-shadow:0 8px 16px -7px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35);
      }
      .pz-fly, .pz-side{ background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
      .pz-fly{ box-shadow:12px 0 26px -20px rgba(20,35,4,.45); }
      .pz-side{ box-shadow:-12px 0 26px -20px rgba(20,35,4,.45); }
      .pz-studio .pz-panel-head{
        padding-bottom:9px;
        background:linear-gradient(var(--sun),var(--sun)) left bottom/36px 3px no-repeat;
        border-bottom:1px solid var(--line);
      }
      .pz-studio .pz-label{
        padding-left:11px;
        background:linear-gradient(var(--sun),var(--sun)) left center/3.5px 13px no-repeat;
      }
      .pz-studio .pz-name{
        background:linear-gradient(180deg, var(--surface), var(--surface-2));
        box-shadow:inset 0 1px 3px rgba(38,54,10,.07);
      }
      .pz-studio .pz-name:focus{
        border-color:var(--red);
        box-shadow:0 0 0 3.5px rgba(255,176,32,.28), inset 0 1px 3px rgba(38,54,10,.05);
      }
      /* Language row: Hindi / Bengali / English always share ONE
         line at equal widths — never wrap (owner screenshot fix,
         2026-11-28). */
      .pz-studio .pz-tabs{ flex-wrap:nowrap; }
      .pz-studio .pz-tabs button{
        flex:1 1 0; min-width:0; padding-left:5px; padding-right:5px;
        overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
      }
      .pz-studio .pz-tabs button.on, .pz-studio .pz-catrow button.on{
        background:linear-gradient(180deg,#55A00F,#3A8505); border-color:#2C6603; color:#fff;
        box-shadow:0 7px 15px -7px rgba(44,102,3,.6), inset 0 1px 0 rgba(255,255,255,.35);
      }
      .pz-studio .pz-sel{
        border:1.5px solid var(--line-strong);
        background:linear-gradient(180deg, var(--surface), var(--surface-2));
        box-shadow:0 12px 24px -16px rgba(38,54,10,.3), inset 0 1px 0 rgba(255,255,255,.6);
      }
      .pz-studio .pz-elem-btn{ box-shadow:0 5px 12px -7px rgba(38,54,10,.35), inset 0 1px 0 rgba(255,255,255,.55); }
      .pz-studio .pz-preset{ box-shadow:0 4px 10px -6px rgba(38,54,10,.3); }
      .pz-studio .pz-preset.on{ border-color:var(--sun); color:var(--red-dark); box-shadow:0 0 0 2px var(--sun), 0 4px 10px -6px rgba(38,54,10,.3); }
      .pz-studio .pz-swatch{ box-shadow:0 0 0 1.5px var(--line-strong), 0 4px 9px -4px rgba(38,54,10,.4); }
      .pz-studio .pz-swatch.on{ box-shadow:0 0 0 2.5px var(--sun), 0 4px 9px -4px rgba(38,54,10,.4); }
      .pz-stage-area{
        background:radial-gradient(130% 95% at 50% -10%, #3E7010 0%, #2E5708 46%, #1B3D02 100%);
        box-shadow:inset 0 0 130px rgba(5,16,1,.5), inset 0 1px 0 rgba(255,255,255,.07);
      }
      @media (prefers-color-scheme: dark){
        .pz-stage-area{ background:radial-gradient(130% 95% at 50% -10%, #22380C 0%, #16260A 50%, #0A1502 100%); }
      }
      .pz-studio .pz-canvas{
        border-radius:12px;
        box-shadow:0 34px 60px -20px rgba(5,16,1,.75), 0 12px 22px -10px rgba(5,16,1,.5);
      }
      @media (max-width:839px){
        .pz-tools{
          background:linear-gradient(90deg,#2E5708,#1E4702);
          border-top:1px solid #122A01;
          box-shadow:0 -10px 22px -12px rgba(10,24,2,.55);
        }
        .pz-fly, .pz-side{ box-shadow:0 26px 48px -16px rgba(15,26,3,.55); }
      }
      /* ==========================================================
         MOBILE STUDIO PATTERN (owner, 2026-11-29, from their
         reference video — LAYOUT TYPE ONLY: slim top action bar,
         the canvas as the hero in the middle, ONE horizontally
         scrollable tool row at the very bottom, and each tool's
         panel opening as a bottom-half sheet whose foot is a
         fixed mini bar: ✕ (left) · panel name (centre) · ✓
         (right). No tool or feature comes from the reference —
         every maker keeps its own functions exactly as they
         were; only the phone arrangement changes, in MAJE
         KARO's own premium emerald–gold finish. Desktop is
         untouched: everything below lives inside phone media
         queries, and the sheet bar is display:none elsewhere.)
         ========================================================== */
      .mk-sheetbar{ display:none; }
      .mk-dp-tools{ display:none; }
      @media (max-width:860px){
        /* ---- Shared sheet foot bar ---- */
        .mk-sheetbar{
          display:flex; align-items:center; gap:8px; flex:none;
          padding:6px 10px; border-top:1.5px solid var(--line-strong);
          background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
          box-shadow:0 -10px 22px -14px rgba(20,35,4,.45);
        }
        .mk-sb-x,.mk-sb-ok{
          width:46px; height:46px; min-height:46px; padding:0; flex:none;
          display:grid; place-items:center; border-radius:50%; cursor:pointer;
          transition:transform .12s ease, filter .15s ease;
        }
        .mk-sb-x svg,.mk-sb-ok svg{ width:19px; height:19px; }
        .mk-sb-x{
          color:var(--ink); background:var(--surface);
          border:1.5px solid var(--line-strong);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
        }
        .mk-sb-ok{
          color:#fff; border:1.5px solid #C9962E;
          background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%);
          box-shadow:0 8px 16px -8px rgba(46,84,4,.7), inset 0 1px 0 rgba(255,255,255,.35);
        }
        .mk-sb-x:active,.mk-sb-ok:active{ transform:scale(.92); }
        .mk-sb-name{
          flex:1 1 auto; min-width:0; text-align:center;
          font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:800; font-size:1rem;
          color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
        }

        /* ---- Story Maker: contents-flattened column —
           stage (2) · timeline (3) · sheet (4) · tool row (5).
           The timeline stays glued under the preview, above
           the tool row, exactly as the owner asked. ---- */
        .pz-box.sm-box{ position:relative; }
        .sm-main{ display:contents; }
        .sm-top{ order:0; }
        .sm-status{ order:1; }
        .sm-stage{ order:2; flex:1 1 auto; min-height:0; width:100%; }
        .sm-tl{ order:3; flex:none; }
        .sm-panel{
          order:4; position:static; left:auto; right:auto; top:auto; bottom:auto;
          flex:0 1 44%; width:auto; max-height:none; min-height:0;
          display:flex; flex-direction:column; overflow:hidden;
          border-right:none; border-top:2px solid var(--sun);
          box-shadow:0 -14px 30px -18px rgba(10,24,2,.5); padding:0; z-index:6;
        }
        .sm-panel.closed{ display:none; }
        .sm-panel .sm-psec.on{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:14px; -webkit-overflow-scrolling:touch; }
        .sm-rail{
          order:5; flex:none; flex-direction:row; width:auto; height:auto;
          overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch;
          border-right:none; border-top:1.5px solid var(--line);
          padding:6px 8px; gap:6px; align-items:stretch; justify-content:flex-start;
        }
        .sm-rail button{
          flex:0 0 auto; min-width:70px; min-height:58px; padding:6px 8px;
          font-size:.68rem; gap:3px; border-radius:13px;
        }
        .sm-rail button svg{ width:24px; height:24px; }
      }
      @media (max-width:839px){
        /* ---- Card Maker studio: stage (1) · sheet (2) · row (3) ---- */
        .pz-work{ flex-direction:column; }
        .pz-stage-area{ order:1; flex:1 1 auto; min-height:0; }
        .pz-fly{
          order:2; position:static; left:auto; right:auto; bottom:auto;
          flex:0 1 46%; width:auto; max-height:none; min-height:0;
          border:1.5px solid var(--line-strong); border-left:none; border-right:none; border-bottom:none;
          border-top:2px solid var(--sun); border-radius:0;
          box-shadow:none; z-index:6;
        }
        .pz-side{
          order:2; position:static; left:auto; right:auto; bottom:auto;
          flex:0 1 46%; width:auto; max-height:none; min-height:0;
          border:1.5px solid var(--line-strong); border-left:none; border-right:none; border-bottom:none;
          border-top:2px solid var(--sun); border-radius:0;
          box-shadow:none; z-index:6;
        }
        .pz-side .mk-sheetbar{ position:sticky; bottom:0; margin:13px -13px -13px; }
        .pz-tools{
          order:3; width:auto; flex:none; flex-direction:row; justify-content:flex-start;
          overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch;
          scrollbar-width:none; gap:6px; padding:6px 8px;
          border-right:none; border-top:1px solid #122A01;
        }
        .pz-tools::-webkit-scrollbar{ display:none; }
        .pz-tool{ flex:0 0 auto; min-width:70px; min-height:58px; padding:6px 8px; font-size:.68rem; gap:3px; border-radius:13px; }
        .pz-tool svg{ width:24px; height:24px; }
        /* Slim top bar: Back + name + icon actions on one row */
        .pz-studio .pz-topbar{ flex-wrap:nowrap; }
        .pz-top-titles{ flex:1 1 auto; min-width:0; }
        .pz-top-name{ overflow:hidden; text-overflow:ellipsis; }
        .pz-top-actions .btn{ font-size:0; gap:0; padding:8px 11px; min-height:40px; border-radius:12px; }
        .pz-top-actions .btn svg{ width:20px; height:20px; }

        /* ---- Text Maker editor: stage (1) · sheet (2) · row (3) ---- */
        .tmf-work{ flex-direction:column; }
        .tmf-stage-area{ order:1; flex:1 1 auto; min-height:0; }
        .tmf-fly{
          order:2; position:static; left:auto; right:auto; bottom:auto;
          flex:0 1 46%; width:auto; max-height:none; min-height:0;
          border-left:none; border-right:none; border-bottom:none; border-radius:0;
          border-top:2px solid var(--sun);
          box-shadow:none; z-index:6;
        }
        .tmf-tools{
          order:3; width:auto; flex:none; flex-direction:row; justify-content:flex-start;
          overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch;
          scrollbar-width:none; gap:6px; padding:6px 8px;
          border-right:none; border-top:1px solid #122A01;
        }
        .tmf-tools::-webkit-scrollbar{ display:none; }
        .tmf-tool{ flex:0 0 auto; min-width:70px; min-height:58px; padding:6px 8px; font-size:.68rem; gap:3px; border-radius:13px; }
        .tmf-tool svg{ width:24px; height:24px; }
        html.tm-lock .tmf-top-actions .btn{ font-size:0; gap:0; padding:8px 11px; min-height:40px; }
        html.tm-lock .tmf-top-actions .btn svg{ width:20px; height:20px; }

        /* ---- DP Designer: sticky canvas hero + bottom tool row ---- */
        .dp-box .pz-preview{
          position:sticky; top:6px; z-index:6;
          background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
          border:1px solid var(--line); border-radius:22px; padding:10px;
          box-shadow:0 16px 32px -18px rgba(38,54,10,.4);
        }
        .dp-box .pz-preview .pz-stage{ max-width:264px; margin:0 auto; padding:0; border:none; box-shadow:none; background:none; }
        .dp-box [data-dpsec]{ scroll-margin-top:308px; }
        .mk-dp-tools{
          display:flex; align-items:stretch; gap:6px;
          position:fixed; left:8px; right:8px; z-index:65;
          bottom:calc(72px + env(safe-area-inset-bottom,0px));
          padding:6px; border-radius:18px; overflow-x:auto; overflow-y:hidden;
          -webkit-overflow-scrolling:touch; scrollbar-width:none;
          background:linear-gradient(180deg,#2E5708 0%,#1E4702 100%);
          border:1px solid #122A01;
          box-shadow:0 18px 36px -14px rgba(10,24,2,.65), inset 0 1px 0 rgba(255,255,255,.08);
        }
        .mk-dp-tools::-webkit-scrollbar{ display:none; }
        .mk-dp-tools button{
          flex:0 0 auto; min-width:66px; min-height:56px; padding:6px 8px;
          display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
          border-radius:13px; border:1.5px solid transparent; background:transparent;
          color:#C9DEA4; font:inherit; font-size:.68rem; font-weight:700; cursor:pointer;
        }
        .mk-dp-tools button svg{ width:24px; height:24px; }
        .mk-dp-tools button:active{ transform:scale(.94); background:rgba(255,255,255,.09); color:#fff; }
        .mk-dp-tools .mk-dp-dl{
          color:#fff; margin-left:auto;
          background:linear-gradient(180deg,#57A50D 0%,#3A8505 100%);
          border-color:rgba(255,201,77,.65);
          box-shadow:0 8px 16px -7px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35);
        }
        .dp-box{ padding-bottom:86px; }
      }
      @media (min-width:761px) and (max-width:839px){
        .mk-dp-tools{ bottom:calc(12px + env(safe-area-inset-bottom,0px)); }
      }
      @media (max-width:760px){
        /* ---- Craze Card & WhatsApp Status: their own chip rows
           become the one scrollable row under the slim bar ---- */
        .cz-cats{ flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; padding-bottom:8px; }
        .cz-cats button{ flex:0 0 auto; }
        .status-box .pz-tabs{ flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; padding-bottom:6px; }
        .status-box .pz-tabs button{ flex:0 0 auto; }
      }
      @media (prefers-reduced-motion: reduce){
        .mk-sb-x:active,.mk-sb-ok:active,.mk-dp-tools button:active{ transform:none; }
      }
      /* ==========================================================
         MOBILE EDITING PERFECTION PASS (owner phone screenshots,
         2026-11-29: "on mobile nobody can edit — the display is
         small, so everything must be perfect"). Fixes, phones
         only, desktop untouched:
         1. Header: the absolutely-centred brand block collided
            with the language pill (MAJE KARO running under
            "Bengali"/"English"). On small phones the brand sits
            in its own grid column, smaller, and the language
            pill compacts — nothing overlaps, ever.
         2. Inside a fixed one-screen editor (Card / Story /
            Text / DP / Craze locks) the clock row steps aside
            on phones: menu, logo, name and language stay, and
            the reclaimed ~48px goes to the canvas. The clock is
            untouched on every other page.
         3. Story Maker: the canvas now fills the stage height
            instead of collapsing to a tiny pill; the sheet
            yields before the stage does (stage keeps a real
            minimum height); transport slims; and under 560px
            the timeline's zoom box stops eating a third of the
            width — it becomes one slim strip ABOVE the tracks,
            so ruler, filmstrip and waveform run full width.
         4. Card / Text Makers: sheets yield a little more
            (42%), stages keep a minimum height, the card grows
            to fill its well, and the Text Maker's Change-style /
            zoom controls move into a reserved strip under the
            artwork instead of floating over it.
         5. Tool rows: narrower buttons under 560px so more
            tools fit without sideways hunting; panel filler
            sub-lines are gone from the Text Maker sheets.
         6. Toasts inside locked editors float above the tool
            row instead of covering it.
         ========================================================== */

      /* ---- 1 · Header brand / language overlap ---- */
      @media (max-width:640px){
        .site-name{
          position:relative; left:auto; top:auto; transform:none;
          grid-column:2; grid-row:1; justify-self:center;
          max-width:100%; font-size:.98rem; letter-spacing:.03em;
        }
        .site-name a{ gap:7px; }
        .brand-logo{ width:32px; height:32px; border-radius:9px; }
        .lang-btn{ min-height:40px; padding:5px 11px; font-size:.84rem; gap:5px; }
        .lang-btn svg{ width:16px; height:16px; }
      }
      @media (max-width:374px){
        .site-name{ font-size:.88rem; }
        .brand-logo{ width:29px; height:29px; }
        .lang-btn{ padding:5px 9px; font-size:.8rem; }
      }

      /* ---- 2 · Slimmer header inside fixed editors ---- */
      @media (max-width:760px){
        html.mk-ws .clock-chip{ padding:3px 10px 3px 6px; gap:6px; }
        html.mk-ws .clock-ic{ width:24px; height:24px; }
        html.mk-ws .clock-ic svg{ width:13px; height:13px; }
        html.mk-ws .clock-date{ font-size:.66rem; }
        html.mk-ws .clock-time{ font-size:.8rem; }
        html.mk-ws .head-inner{ row-gap:0; padding-bottom:6px; grid-template-rows:50px auto; }
        html.cm-lock .clock-chip, html.sm-lockon .clock-chip,
        html.tm-lock .clock-chip, html.dp-lock .clock-chip,
        html.cz-lock .clock-chip{ display:none; }
        html.cm-lock .head-inner, html.sm-lockon .head-inner,
        html.tm-lock .head-inner, html.dp-lock .head-inner,
        html.cz-lock .head-inner{ grid-template-rows:52px; }
      }

      @media (max-width:860px){
        /* ---- 3 · Story Maker stage & timeline ---- */
        .sm-stage{ padding:8px; gap:6px; min-height:150px; }
        .sm-canvas{ height:100%; }
        .sm-play,.sm-restart{ min-height:38px; padding:5px 14px; }
        .sm-panel{ flex:0 1 40%; }
        /* ---- 4 · Card & Text Maker stages and sheets ---- */
        .pz-fly,.pz-side{ flex:0 1 42%; }
        .pz-stage-area{ min-height:180px; }
        .pz-studio .pz-stage{ width:min(calc(100cqw - 16px), calc(75cqh - 8px)); }
        .tmf-fly{ flex:0 1 42%; }
        .tmf-stage-area{ min-height:180px; }
        .tmf-holder{ top:calc(50% - 27px); }
        .tmf-stage-meta{ left:8px; bottom:8px; padding:5px 6px 5px 8px; }
        .tmf-zoom{ right:8px; bottom:8px; }
        .tmf-studio .tmf-panel-head small{ display:none; }
        /* ---- Toasts clear the tool row inside editors ---- */
        html.sm-lockon .toast, html.cm-lock .toast, html.tm-lock .toast,
        html.dp-lock .toast, html.cz-lock .toast{
          bottom:calc(156px + env(safe-area-inset-bottom,0px));
        }
      }
      @media (max-width:839px){
        /* ---- DP preview: use the width the phone offers ---- */
        .dp-box .pz-preview .pz-stage{ max-width:min(320px,84vw); }
        .dp-box [data-dpsec]{ scroll-margin-top:356px; }
        /* ---- Card top bar: the name never truncates ---- */
        .pz-topbar{ gap:6px; padding:5px 8px; }
        .pz-top-name{ font-size:.95rem; }
        .pz-back{ padding:6px 10px; font-size:.84rem; min-height:34px; }
        .pz-top-actions{ gap:6px; }
      }
      @media (max-width:560px){
        /* ---- 3b · Timeline zoom box becomes a top strip ---- */
        .sm-tl{ padding:6px 6px 8px; }
        .sm-tl-main{ flex-direction:column; gap:4px; }
        .sm-tl-rail{
          flex-direction:row; align-items:center; gap:8px;
          padding:4px 6px;
        }
        .sm-tl-rail-lab{ height:auto; border-radius:5px; padding:3px 7px; font-size:.58rem; }
        .sm-tl-zgrp{ height:auto; margin-top:0; }
        .sm-tl-film,.sm-tl-clip,.sm-tl-empty{ height:58px; }
        .sm-tl-mark{ top:52px; }
        .sm-pk-wave{ height:54px; }
        /* The one playhead spans the right column top to
           bottom at every size — no fixed height. */
        .sm-tl-play{ height:auto; }
        /* Ending bar on phones: the timeline stacks, so the
           slim bar becomes one slim row under both strips,
           its ✕ at the row's right end. */
        .sm-tl-rail-end{ flex-direction:row; width:auto; height:30px; align-items:center; padding:2px 6px; }
        .sm-tl-railend-top,.sm-tl-railend-mid{ display:none; }
        .sm-tl-railend-bot{ height:auto; margin-top:0; flex:1; display:flex; justify-content:flex-end; }
        /* ---- 5 · Tool rows: more tools visible at once ---- */
        .pz-tools,.tmf-tools,.sm-rail{ gap:4px; padding:6px; }
        .pz-tool,.tmf-tool{ min-width:56px; min-height:54px; padding:5px 4px; font-size:.64rem; }
        .sm-rail button{ min-width:56px; min-height:54px; padding:5px 4px; font-size:.64rem; }
      }
      @media (prefers-reduced-motion: reduce){
        .sm-play:active,.sm-restart:active{ transform:none; }
      }
      /* ==========================================================
         MOBILE SLIM HEADER + PANEL-SWAP PASS (owner, 2026-11-29:
         "the mobile header is far too big"; "when a tool opens,
         the bottom toolbar moves away and the panel takes its
         place — the total bottom height must not grow, so the
         canvas keeps its space"). Phones only; desktop is
         untouched. Three moves:
         1. The site header slims: the brand row drops to 48px,
            the clock line compacts, the makers strip trims —
            on general pages too, not just inside tools. Inside
            a locked editor the header is the one 48px row.
         2. Panel-swap: while any maker's sheet is open, that
            maker's bottom tool row hides — the sheet (with its
            ✕ · name · ✓ foot bar) sits at the bottom alone in
            the row's place; closing the sheet brings the row
            back. The freed height goes to the stage.
         3. DP and Craze canvases take more of the phone width.
         ========================================================== */
      @media (max-width:760px){
        :root{ --makers-h:70px; }
        .head-inner{ grid-template-rows:48px auto; row-gap:2px; padding:0 10px 6px; }
        .clock-chip{ padding:3px 12px 3px 6px; gap:6px; }
        .clock-ic{ width:23px; height:23px; }
        .clock-ic svg{ width:13px; height:13px; }
        .clock-date{ font-size:.68rem; }
        .clock-time{ font-size:.84rem; }
        .lang-btn{ min-height:38px; padding:5px 13px; }
        .makers-nav-in{ padding:4px; row-gap:2px; }
        .makers-item{ min-height:29px; padding:3px 9px; }
        html.mk-ws .head-inner{ grid-template-rows:48px auto; }
        html.cm-lock .head-inner, html.sm-lockon .head-inner,
        html.tm-lock .head-inner, html.dp-lock .head-inner,
        html.cz-lock .head-inner{ grid-template-rows:48px; }
      }
      @media (max-width:374px){
        :root{ --makers-h:104px; }
      }
      /* ---- 2 · Panel-swap: sheet open ⇒ tool row steps aside ---- */
      @media (max-width:860px){
        .sm-box:has(.sm-panel:not(.closed)) .sm-rail{ display:none; }
        /* The shared .pz-box base rule carries gap:22px, which
           the Story Maker's flattened phone column inherited —
           22px of dead space between every row (44px above the
           stage, where the empty status line sits). Gone: the
           rows sit flush and the stage takes the height. */
        .pz-box.sm-box{ gap:0; }
      }
      @media (max-width:839px){
        .pz-studio:has(.pz-fly:not(.pz-fly-off)) .pz-tools{ display:none; }
        .pz-studio:not(.pz-side-off) .pz-tools{ display:none; }
        .tmf-work:has(.tmf-fly:not(.tmf-fly-off)) .tmf-tools{ display:none; }
        /* Text Maker step-3 top bar: one row on phones too —
           Back · name · icon actions, never a second row eating
           stage height (the Card Maker bar already does this). */
        html.tm-lock .tmf-top{ flex-wrap:nowrap; }
        html.tm-lock .tmf-title{ flex:1 1 auto; }
        html.tm-lock .tmf-title h1{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        html.tm-lock .tmf-top-actions{ flex-wrap:nowrap; flex:none; }
        /* ---- 3 · Bigger phone canvases ---- */
        .dp-box .pz-preview .pz-stage{ max-width:min(352px,90vw); }
        .cz-stage{ width:min(392px, 90cqw, 74cqh); }
        /* DP Designer: the floating tool bar (fixed, bottom:72px,
           ~70px tall) used to overlap the controls scroll area —
           the name input sat hidden behind it. End the editor box
           above the bar instead; the controls scroll inside their
           own fully-visible window. */
        html.dp-lock .dp-wrap{ padding-bottom:calc(152px + env(safe-area-inset-bottom,0px)); }
      }
      /* ==========================================================
         MOBILE ONE-BAR TOOL PASS (owner, 2026-11-29, from their
         before/after screenshot pairs D1/DA1 Card Maker and
         D2/DA2 Story Maker — "সব টুল এরকমই হবে"): inside a
         maker tool on a phone there is exactly ONE slim top
         bar and nothing else stacked around the canvas:
           · the site header (brand row + clock row + makers
             strip) steps aside completely;
           · the app bottom nav steps aside completely, and
             every bottom padding that reserved its 76px is
             released, so the canvas takes the freed height;
           · each tool's OWN top bar becomes the one bar, in
             the site header's own green: a circular back arrow
             on the left, the logo + MAJE KARO in the middle,
             and the tool's main action(s) on the right, exactly
             where they already live (Card Maker Download /
             Sticker / WhatsApp, Story Maker Create Video,
             Text Maker Download / WhatsApp). The tool's name
             text stays in the DOM for readers and search; the
             bar shows the brand instead, like the owner's
             AFTER screenshots.
           · the bar is a three-zone grid with equal side
             tracks (owner, 2026-11-29 18:52, screenshot A11):
             the brand sits in the bar's TRUE middle and always
             reads in full — never "MAJE KAR…" — and the right
             actions are small and professional: Story Maker's
             button shortens to just "Create" (a compact pill),
             Card / Text Maker keep compact icon buttons, so no
             button ever covers the bar or the name.
         Two flaws visible in the owner's AFTER mock-ups are
         NOT carried over: the Story Maker clock now sits in
         the transport flow at the right (never absolute, never
         pushed off-screen — "0:00 / 0:15" always reads in
         full), and tool-row buttons size to their labels with
         nowrap text, so "Text Style" and "Elements" are never
         clipped. Phones only (≤760px); desktop is untouched,
         and leaving a tool restores the header + bottom nav
         because the router drops html.mk-ws.
         The dark oval with the yellow dot in the owner's
         screenshots WAS a site element after all — the empty
         toast. The toast is a deep-green pill
         (linear-gradient #2C4712 → #1D3009, radius 999px)
         whose ::before is an 8px gold dot with a glow; with
         no message text it collapses to a ~53×34px dark oval
         carrying only that dot. It was meant to hide below
         the screen via translateY(80px), but on phones its
         bottom offset is 98px (156px inside locked editors) —
         larger than the 80px hide distance — so the "hidden"
         pill stayed on screen at the bottom centre, over the
         tool row, covering "Text Style" / "Elements" /
         "Audio" in every screenshot (desktop's 22px offset
         hid it correctly, which is why it was phone-only).
         The fix is below, outside the media query: the toast
         now also hides with opacity + visibility, so no
         bottom offset can ever leave it peeking again; a
         real message still slides in exactly as before.
         ========================================================== */
      /* ---- The peeking-toast fix (the owner's "dot") ---- */
      .toast{
        opacity:0; visibility:hidden;
        transition:transform .3s ease, opacity .25s ease, visibility 0s linear .3s;
      }
      .toast.show{
        opacity:1; visibility:visible;
        transition:transform .3s ease, opacity .25s ease, visibility 0s;
      }
      @media (max-width:760px){
        /* ---- The stacked bars and the bottom nav step aside ---- */
        html.mk-ws .site-head{ display:none; }
        html.mk-ws .mnav{ display:none; }
        html.mk-ws body{ padding-bottom:0; }
        html.mk-ws .to-top{ display:none !important; }
        /* Bottom reservations that existed only for the bottom
           nav are released to the canvas / controls. */
        html.cm-lock .pz-page{ padding-bottom:env(safe-area-inset-bottom,0px); }
        html.sm-lockon .sm-shell{ padding-bottom:env(safe-area-inset-bottom,0px); }
        html.tm-lock .wrap{ padding-bottom:env(safe-area-inset-bottom,0px); }
        html.cz-lock .cz-wrap{ padding-bottom:env(safe-area-inset-bottom,0px); }
        /* DP keeps room only for its own floating tool row,
           which itself drops to the foot of the screen. */
        html.dp-lock .dp-wrap{ padding-bottom:calc(90px + env(safe-area-inset-bottom,0px)); }
        .mk-dp-tools{ bottom:calc(8px + env(safe-area-inset-bottom,0px)); }
        html.sm-lockon .toast, html.cm-lock .toast, html.tm-lock .toast,
        html.dp-lock .toast, html.cz-lock .toast{
          bottom:calc(88px + env(safe-area-inset-bottom,0px));
        }

        /* ---- The one slim bar: every tool's own top bar ---- */
        html.mk-ws .mk-wsbar,
        html.mk-ws .pz-topbar,
        html.mk-ws .sm-top,
        html.mk-ws .tmf-top{
          background:linear-gradient(180deg,#9AE52B 0%,#63BC0E 52%,#4CA607 100%);
          border-bottom:1px solid rgba(23,61,5,.28);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 2px 12px rgba(46,84,4,.35);
          min-height:52px; padding:6px 8px; gap:6px; flex-wrap:nowrap;
          /* Three zones with exactly equal side tracks, so the
             brand zone sits in the bar's true middle (owner,
             2026-11-29 18:52: the name must stay centred and
             whole, and the action buttons small). */
          display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
          align-items:center;
        }
        html.mk-ws .mk-wsbar{ margin:0 -16px 0; }
        html.mk-ws .tmf-top{
          position:sticky; top:0; z-index:40; border:none; border-radius:0;
          margin:-22px -16px 12px;
        }
        html.tm-lock .tmf-top{ margin:0; }
        /* Back becomes the circular arrow of the AFTER shots;
           its "Back" word steps aside (the aria-label stays). */
        html.mk-ws .mk-wsback,
        html.mk-ws .pz-back,
        html.mk-ws .tmf-back{
          width:40px; height:40px; min-height:40px; flex:none; padding:0;
          display:grid; place-items:center; border-radius:50%;
          font-size:0; gap:0; color:#fff;
          background:rgba(6,46,22,.32);
          border:1.5px solid rgba(255,255,255,.55);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px -4px rgba(10,40,5,.5);
        }
        html.mk-ws .mk-wsback svg,
        html.mk-ws .pz-back svg,
        html.mk-ws .tmf-back svg{ width:20px; height:20px; }
        html.mk-ws .pz-back span{ display:none; }
        /* The bar's middle carries the brand: logo + MAJE KARO.
           The tool name remains the element's text (readers,
           search, focus order); only its paint changes. */
        html.mk-ws .mk-wsbar-t,
        html.mk-ws .pz-top-name,
        html.mk-ws .sm-top-name,
        html.mk-ws .tmf-title h1{
          display:flex; align-items:center; gap:6px;
          font-size:0; line-height:1; color:transparent;
          overflow:visible; text-overflow:clip; white-space:nowrap;
        }
        html.mk-ws .mk-wsbar-t::before,
        html.mk-ws .pz-top-name::before,
        html.mk-ws .sm-top-name::before,
        html.mk-ws .tmf-title h1::before{
          content:""; width:28px; height:28px; flex:none; border-radius:8px;
          background:#fff url("logo.webp") center / cover no-repeat;
          border:2px solid rgba(255,255,255,.9);
          box-shadow:0 3px 8px rgba(3,40,26,.35);
        }
        html.mk-ws .mk-wsbar-t::after,
        html.mk-ws .pz-top-name::after,
        html.mk-ws .sm-top-name::after,
        html.mk-ws .tmf-title h1::after{
          content:"MAJE KARO";
          font-family:"Baloo 2","Baloo Da 2",sans-serif;
          font-size:.94rem; font-weight:800; letter-spacing:.02em; color:#fff;
          text-shadow:0 2px 0 rgba(23,61,5,.22), 0 2px 8px rgba(23,61,5,.3);
        }
        /* Zone placement: back at the left edge, brand in the
           middle track, actions at the right edge. The brand
           track is content-sized and never shrinks, so
           "MAJE KARO" always reads in full — the old layout let
           the wide Create Video button squeeze it to
           "MAJE KAR…" (owner's screenshot A11, 2026-11-29). */
        html.mk-ws .mk-wsback,
        html.mk-ws .pz-back,
        html.mk-ws .tmf-back{ justify-self:start; }
        html.mk-ws .mk-wsbar-t,
        html.mk-ws .pz-top-titles,
        html.mk-ws .sm-top-name,
        html.mk-ws .tmf-title{ justify-self:center; margin:0; }
        html.mk-ws .sm-top-right,
        html.mk-ws .pz-top-actions,
        html.mk-ws .tmf-top-actions{ justify-self:end; margin-left:0; flex:none; }
        /* Story Maker: "Create Video" shortens to just
           "Create" on the phone bar — a small professional
           pill that can never cover the bar. The word "Video"
           stays in the markup, so the desktop label is
           unchanged; only its phone paint steps aside. */
        html.mk-ws .sm-create{
          white-space:nowrap; min-height:34px; padding:5px 13px;
          font-size:.88rem; font-weight:700; border-radius:999px; gap:6px;
        }
        html.mk-ws .sm-create svg{ width:16px; height:16px; }
        html.mk-ws .sm-create-x{ display:none; }
        /* Card / Text Maker: the bar actions become compact
           icon buttons, sized to sit inside their own track. */
        html.mk-ws .pz-top-actions,
        html.mk-ws .tmf-top-actions{ gap:4px; flex-wrap:nowrap; }
        html.mk-ws .pz-top-actions .btn,
        html.mk-ws .tmf-top-actions .btn{
          min-height:36px; padding:6px 6px; border-radius:11px;
        }
        html.mk-ws .pz-top-actions .btn svg,
        html.mk-ws .tmf-top-actions .btn svg{ width:16px; height:16px; }

        /* ---- Story transport: the clock can never be cut ---- */
        .pz-box.sm-box{ overflow-x:clip; }
        .sm-transport{ margin:0 0 8px; padding:0 8px; }
        .sm-transport .sm-play{ margin-left:auto; }
        .sm-transport .sm-time{
          position:static; transform:none; flex:none; margin-left:auto;
        }

        /* ---- Tool rows: buttons fit their full labels ---- */
        .tmf-tool{ min-width:68px; padding:6px 9px; }
        .sm-rail button{ min-width:68px; padding:6px 9px; }
        /* Card Maker has exactly six tools and the owner's
           AFTER shot shows all six labels across the phone
           width at once — so its row is not scrolled at all:
           six equal buttons, each sized to its label. */
        .pz-tools{ justify-content:flex-start; }
        .pz-tool{ flex:1 1 0; min-width:0; padding:6px 2px; font-size:.62rem; }
        .pz-tool span,.tmf-tool span,.sm-rail button span,.mk-dp-tools button span{
          white-space:nowrap; overflow:visible; text-overflow:clip;
        }
        .mk-dp-tools button{ min-width:70px; }
      }
      @media (max-width:760px) and (prefers-color-scheme: dark){
        html.mk-ws .mk-wsbar,
        html.mk-ws .pz-topbar,
        html.mk-ws .sm-top,
        html.mk-ws .tmf-top{
          background:linear-gradient(180deg,#3E7D0C 0%,#2A5606 100%);
          border-bottom-color:rgba(0,0,0,.4);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 2px 12px rgba(0,0,0,.45);
        }
      }
      @media (max-width:560px){
        .tmf-tool{ min-width:66px; }
        .sm-rail button{ min-width:66px; }
      }
      /* ==========================================================
         DP DESIGNER STUDIO (owner, 2026-11-29, screenshot DM-1):
         the DP Maker is rebuilt as a Photoshop-style fixed
         studio in the Card Maker's exact mould. The old layout —
         preview left, one long controls column right, scrolling
         under the browser's thick green scrollbar — is gone:
         NO scrollbar shows anywhere on the side. The studio is
         one fixed screen (html.dp-lock): a slim top bar (Back ·
         DP Designer · Download / WhatsApp), a slim emerald icon
         rail on the left carrying the DP's own six sections
         (Text · Photo · Frame · Style · Font · Shape), each
         popping its panel out beside the rail, and the big
         square canvas centred in the emerald well. A panel
         scrolls inside itself only when it must, with its
         scrollbar hidden. On phones the studio follows the
         shared mobile pattern of the other makers: the one
         slim green top bar (site header aside under html.mk-ws),
         the canvas as the hero, ONE tool row at the bottom, and
         a panel opening in the row's place with the
         ✕ · name · ✓ sheet bar while the canvas stays visible
         above — the old sticky-preview + scrolling-controls +
         floating tool row arrangement is retired. Every DP
         function is unchanged; only the furniture moved. The
         chrome is the Card Maker's .pz-studio wholesale; the
         rules below are only the DP differences and the
         neutralisers for the retired layout's rules above. */
      /* Square stage in the well (the Card Maker's is a 3:4
         card; the DP is 1:1) and a clean preview box — the
         retired sticky-card paint never applies. */
      .pz-box.pz-studio.dp-studio .pz-preview{
        position:static; margin:auto; display:block;
        background:none; border:none; border-radius:0;
        padding:0; box-shadow:none;
      }
      .pz-box.pz-studio.dp-studio .pz-preview .pz-stage{
        width:min(calc(100cqw - 26px), calc(100cqh - 20px));
        max-width:none; aspect-ratio:1/1;
        margin:0; padding:0; border:none; box-shadow:none; background:none;
      }
      .dp-studio .dp-canvas{
        outline:3px solid var(--sun); outline-offset:3px;
      }
      /* Panels scroll inside themselves with NO visible
         scrollbar — the owner's headline ask. */
      .dp-studio .pz-panel{ scrollbar-width:none; }
      .dp-studio .pz-panel::-webkit-scrollbar{ display:none; width:0; height:0; }
      /* Panel tab rows wrap to fit the 270px flyout (the Card
         Maker's nowrap squeeze is for its three short language
         labels); the DP's own language row keeps the equal
         one-line split, and Shape's two choices split evenly. */
      .dp-studio .pz-panel .pz-tabs{ flex-wrap:wrap; }
      .dp-studio .pz-panel .pz-tabs button{
        flex:0 1 auto; min-width:0;
        overflow:visible; text-overflow:clip; white-space:normal;
      }
      .dp-studio .pz-panel .dp-langtabs{ flex-wrap:nowrap; }
      .dp-studio .pz-panel .dp-langtabs button{
        flex:1 1 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
        padding-left:5px; padding-right:5px;
      }
      .dp-studio .pz-panel .dp-shapes button{ flex:1 1 0; }
      /* The photo tools sit tight under the upload label. */
      .dp-studio .dp-photo-tools{ margin-top:11px; }
      /* ==========================================================
         HOME HEADER SPLIT + THIN MAKERS STRIP + PLAIN-TEXT
         CLOCK (owner, 2026-11-29 19:13 IST, screenshots A2/A22
         and A25):
         1) The makers menu under the header is no longer a tall
            wrapped "menu card" — two/three uneven rows, texts
            sitting up and down, ~70–112px of the phone. It is
            ONE thin strip, 40px tall, a single row the visitor
            scrolls sideways, on phones and desktop alike; it
            takes little room and stays slim.
         2) The header bar itself (menu button · MAJE KARO ·
            clock line · language) stays FIXED at the top on
            phones too. The makers strip now lives OUTSIDE the
            header in the markup, so it is not fixed: it scrolls
            away with the page, exactly as asked.
         3) On phones the clock is no longer a pill: no
            background, no border, no icon — the full date and
            the time sit as one line of plain white text under
            the brand row, on Home, every page and every post
            (A25). The desktop glossy chip is untouched.
         --head-h again measures only what truly sticks: the
         52px brand bar on desktop; brand row + clock line
         (48 + 2 + ~20 + 6 ≈ 76px) on phones, so anchored
         headings and scroll offsets stay exact.
         ========================================================== */
      :root{ --makers-h:40px; --head-h:52px; }
      .makers-nav{ height:40px; }
      .makers-nav-in{
        height:100%; flex-wrap:nowrap;
        overflow-x:auto; overflow-y:hidden;
        justify-content:flex-start; align-content:center;
      }
      .makers-item{ min-height:32px; padding:4px 12px; font-size:.82rem; }
      @media (min-width:1180px){
        /* Wide screens fit all six tools at once: spread them
           evenly, as before — no sideways scroll is needed. */
        .makers-nav-in{ justify-content:space-evenly; }
      }
      @media (max-width:760px){
        :root{ --head-h:76px; }
        /* The header bar stays fixed; only the strip below it
           (now outside the header) scrolls away. */
        .site-head{ position:sticky; top:0; }
        /* Plain-text clock: the pill dress steps aside. */
        .clock-chip{
          background:none; border:none; box-shadow:none; border-radius:0;
          min-width:0; min-height:0; padding:1px 4px 0; gap:0;
        }
        .clock-ic{ display:none; }
        .clock-txt{ flex-direction:row; align-items:baseline; gap:7px; }
        .clock-date{
          color:#fff; font-size:.79rem; font-weight:600;
          text-transform:none; letter-spacing:.01em; min-height:0;
          text-shadow:0 1px 3px rgba(23,61,5,.35);
        }
        .clock-date .cd-full{ display:inline; }
        .clock-date .cd-short{ display:none; }
        .clock-sep{ display:inline; color:rgba(255,255,255,.8); font-size:.79rem; }
        .clock-time{
          color:#fff; font-size:.84rem; font-weight:700;
          min-width:0; min-height:0;
          text-shadow:0 1px 3px rgba(23,61,5,.35);
        }
      }
      @media (max-width:374px){
        /* Very narrow phones keep the short date so the one
           white line never has to clip. */
        .clock-date .cd-full{ display:none; }
        .clock-date .cd-short{ display:inline; }
      }
      /* ==========================================================
         PHONE HEADER: BRAND AT THE TRUE CENTRE (owner,
         2026-11-29 19:18 IST, from their Home screenshot: "the
         name has slid to one side — it must stay in the
         middle"). The true cause, found by measuring the
         rendered header: the brand WAS being centred in its
         grid track all along, but Polish Pass 1's phone rule
         (.site-head .site-name, specificity 0-2-0) sets
         transform:translateX(-50%) — a leftover from the
         absolutely-centred era — and the later pass that
         moved the brand into the grid set transform:none at
         lower specificity (0-1-0), so the -50% shift survived
         and dragged the centred brand left by half its own
         width (~64px), huddling it against the menu disc.
         Two fixes, phones only:
         1. transform:none (plus left/top:auto) restated at
            .site-head .site-name specificity, so the leftover
            shift is really gone.
         2. The header grid gets the same three-zone geometry
            the maker tool bars already use — equal flexible
            side tracks (minmax(0,1fr)) around a content-sized
            centre track — so the centre track itself sits at
            the header's true centre (before, the 48px menu
            column and the ~112px language-pill column left
            the middle column's own centre ~30px off). Menu
            disc pinned to the left edge, language pill to the
            right edge, logo + MAJE KARO exactly between them,
            always in full: where space is tight the LOGO and
            the PILL give a little, never the name.
         The plain-white clock line below stays centred
         exactly as it is. Above 640px nothing changes: the
         641–760px brand keeps its absolute centring (where
         translateX(-50%) is correct and needed), and the
         desktop header is untouched.
         ========================================================== */
      @media (max-width:640px){
        .head-inner{
          grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
        }
        #menuBtn{ justify-self:start; }
        .head-inner .lang-wrap{ grid-column:3; grid-row:1; justify-self:end; }
        .site-head .site-name{
          grid-column:2; grid-row:1; justify-self:center; align-self:center;
          transform:none; left:auto; top:auto;
          max-width:none; overflow:visible;
        }
        /* The logo and the pill yield a little so the centred
           name never has to: a 28px logo and a trimmer pill
           keep even the longest language label ("English" /
           "Bengali") clear of the brand at 360–390px. */
        .site-name .brand-logo{ width:28px; height:28px; border-radius:8px; }
        .lang-btn{ padding:5px 8px; gap:4px; }
        .lang-btn svg{ width:15px; height:15px; }
      }
      @media (max-width:374px){
        .site-name .brand-logo{ width:26px; height:26px; border-radius:8px; }
        .lang-btn{ padding:5px 7px; }
        .lang-btn svg{ width:14px; height:14px; }
      }
      /* ==========================================================
         PHONE CLOCK LINE: DATE · CLOCK · TIME (owner's exact
         reference A1D, 2026-11-29 19:32 IST): under the brand
         row, one centred line of plain white text — the date,
         then a SMALL CLOCK MARK, then the time; no pill, no
         bar, no background. Ours read "date • time" with a
         bullet; the bullet now steps aside for a small clock
         glyph drawn in the brand's gold with a soft glow —
         the reference's arrangement, finished a step more
         premium (the owner's standing premium directive):
         the glyph is the site's own clock outline (the same
         paths as the desktop chip's icon), and the header
         logo gains a fine gold rim to sit with the disc and
         the pill. Phones only; the desktop chip keeps its
         own dress, and no measured geometry above changes —
         the line stays exactly as wide and centred as it was.
         ========================================================== */
      @media (max-width:760px){
        .clock-txt{ align-items:center; }
        .clock-sep{
          font-size:0; line-height:0; flex:none; align-self:center;
          width:14px; height:14px; display:inline-block;
          background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD94D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
          filter:drop-shadow(0 1px 2px rgba(23,61,5,.5)) drop-shadow(0 0 5px rgba(255,185,32,.45));
        }
        .clock-date,.clock-time{
          text-shadow:0 1px 3px rgba(23,61,5,.4), 0 0 10px rgba(255,255,255,.14);
        }
      }
      @media (max-width:640px){
        .site-name .brand-logo{
          box-shadow:0 3px 10px rgba(3,40,26,.4), 0 0 0 1.5px rgba(255,217,77,.55), 0 0 12px rgba(255,185,32,.3);
        }
      }
      /* ---- The line's three parts, clearly separated ----
         Weekday ◆ date 🕐 time (owner, 2026-11-29 19:34 IST):
         the weekday and the date are separate segments, split
         by a small gold diamond on phones; the gold clock
         glyph (above) splits the date from the time. The
         weekday's long/short forms swap at exactly the
         breakpoints the date's do, and everywhere above the
         phone line the separator is the plain ", " it always
         was, so the desktop chip's date line is unchanged. */
      .clock-wd .cwd-short{ display:none; }
      @media (max-width:900px){
        .clock-wd .cwd-full{ display:none; }
        .clock-wd .cwd-short{ display:inline; }
      }
      @media (max-width:760px){
        .clock-wd .cwd-full{ display:inline; }
        .clock-wd .cwd-short{ display:none; }
        .clock-dot{
          font-size:0; line-height:0; display:inline-block; vertical-align:middle;
          width:6px; height:6px; margin:0 5px; border-radius:1.5px;
          transform:rotate(45deg);
          background:linear-gradient(135deg,#FFE066 0%,#FFB020 100%);
          box-shadow:0 0 6px rgba(255,185,32,.55), 0 1px 2px rgba(23,61,5,.4);
        }
      }
      @media (max-width:374px){
        .clock-wd .cwd-full{ display:none; }
        .clock-wd .cwd-short{ display:inline; }
      }
      /* ==========================================================
         PHONE HEADER REBALANCE (owner, 2026-11-29 19:42 IST,
         comparing their own edited header A1D against the
         built one A2D and naming the differences):
         1. The round menu disc on the left grows clearly —
            44px → 50px, its gold bars growing with it.
         2. The logo beside MAJE KARO grows too — 28px → 36px
            (33px on the narrowest phones) — so the brand
            block reads at the weight the owner's edit gives it.
         3. The language pill on the right SHRINKS to a compact
            chip — 38px → 32px tall, tighter padding, smaller
            type and globe. It was the heaviest object in the
            bar; now it yields its room to the disc and logo.
         4. The clock line stays exactly where the owner put
            it: its own slim row DIRECTLY under the brand
            block, centred on the name (weekday ◆ date, gold
            clock glyph, time — plain white text, no pill, no
            bar), with the padding above it removed so it hugs
            the brand row.
         5. The header does not get fat to pay for 1+2: the
            brand row rises only 48px → 52px while the clock
            row's padding and the row gap tighten, so the
            measured total stays ~76px and --head-h keeps its
            value — every sticky offset below stays exact.
         The name stays centred in full between the two side
         tracks, as fixed in the previous pass. Desktop is
         untouched: nothing here applies above 760px, and the
         centred-name rule there stands as it was.
         ========================================================== */
      @media (max-width:760px){
        :root{ --head-h:76px; }
        .head-inner{ grid-template-rows:52px auto; row-gap:1px; padding:0 10px 5px; }
        #menuBtn{ width:50px; height:50px; min-height:50px; }
        #menuBtn .menu-ic{ width:23px; height:23px; }
        .site-head .site-name .brand-logo{ width:36px; height:36px; border-radius:10px; }
        .site-head .lang-btn{
          min-height:32px; padding:4px 11px; gap:5px;
          font-size:.8rem; letter-spacing:0;
        }
        .site-head .lang-btn svg{ width:14px; height:14px; }
        .clock-chip{ padding:0 4px; }
      }
      @media (max-width:374px){
        .site-head .site-name .brand-logo{ width:33px; height:33px; border-radius:9px; }
        .site-head .lang-btn{ padding:4px 9px; font-size:.78rem; }
      }
      /* ==========================================================
         PHONE CARDS: TWO LARGE PER ROW (owner's A25 reference,
         restated 2026-11-29 19:44 IST): on Home and collection
         listings the pair's two versions no longer stack into
         two full-width cards (~358×477px each at 390px, one
         per row). They sit SIDE BY SIDE at about half width
         each — the A25 arrangement — still large, the whole
         card readable at a glance, never small thumbnails.
         The pair's own dress shrinks to fit the half width:
         slimmer padding and frames, type stepped down in
         proportion (the template's --fscale still applies),
         so nothing overflows the narrower card. Scoped to
         .cards (every listing: Home sections, collection
         pages, search results) and to Home's framed Quote of
         the Day pair (.qotd-wrap) — the single post page keeps
         its stacked full-width pair with the full Copy /
         Share / Download bars, and the Craze Card stage is
         untouched: it keeps its professional capped size
         (min 392px / 90cqw / 63cqh) and never fills the page.
         Desktop is untouched: at 680px the pair already sits
         two-across, exactly as before.
         ========================================================== */
      @media (max-width:679px){
        .cards{ gap:24px; }
        .cards .pair, .qotd-wrap .pair{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
        .cards .pair .art-wrap:only-child, .qotd-wrap .pair .art-wrap:only-child{
          grid-column:1 / -1; max-width:236px; width:100%; margin:0 auto;
        }
        .cards .pair .art-card, .qotd-wrap .pair .art-card{ padding:18px 13px 14px; border-radius:14px; }
        .cards .pair .art-card::before, .qotd-wrap .pair .art-card::before{ inset:10px; }
        .cards .pair .art-card::after, .qotd-wrap .pair .art-card::after{ inset:6px; }
        .cards .pair .art-card.grow, .qotd-wrap .pair .art-card.grow{ min-height:248px; }
        .cards .pair .art-text, .qotd-wrap .pair .art-text{
          font-size:calc(.78rem * var(--fscale,1)); line-height:1.55; padding:8px 2px;
        }
        .cards .pair .art-text.long, .qotd-wrap .pair .art-text.long{ font-size:calc(.7rem * var(--fscale,1)); }
        .cards .pair .art-brand, .qotd-wrap .pair .art-brand{ font-size:.58rem; letter-spacing:.08em; margin-bottom:5px; }
        .cards .pair .img-card, .qotd-wrap .pair .img-card{ border-radius:14px; }
      }
      /* ==========================================================
         ONE NAME · PREMIUM BUTTONS · COMPACT PHONE CONTROLS
         (owner, 2026-11-29 20:00–20:02 IST, screenshot MK1 —
         Text Maker with the top bar and the stage controls
         ringed in red):
         1. ONE NAME, ONE STYLE, ONE SIZE: the brand in every
            maker tool's phone bar now wears the Home header's
            exact treatment — same face ("Baloo 2" stack), same
            800 weight, same .03em tracking, same size (.98rem,
            .88rem on the narrowest phones), same 36px logo
            with the same gold rim and glow, and the same two
            tones (MAJE white, KARO gold #FFE93D) the header's
            .amp span paints. The two tones come from a hard-
            stop gradient clipped to the glyphs; the stop sits
            inside the word space (48%), so no letter is ever
            split. Where background-clip:text is unavailable
            the name simply stays white, as before.
         2. EVERY BUTTON PREMIUM, BOTH VERSIONS: a shared
            finish for the site's surfaced buttons on desktop
            AND phones — a gloss highlight along the top edge,
            a soft shade along the bottom, a fine rim and a
            lifted drop shadow, so nothing reads flat or cheap.
            Rail tool buttons (transparent on their dark rails)
            get the same gloss in a lighter hand; their .on
            rings keep their own higher-specificity shadow.
         3. COMPACT PHONE CONTROLS: the ringed "Change style"
            button and the "− 100% + Fit" zoom pill — and
            .pz-mini buttons across every tool — shrink to a
            compact visual size on phones, each keeping a full
            ~44px effective tap height through the site's own
            invisible hit-extension pattern (::after), the same
            trick the language chip already uses.
         ========================================================== */

      /* ---- 2 · Premium button finish (all widths) ---- */
      .btn, .pz-mini, .pz-preset, .pz-elem-btn, .pg-btn, .sm-tl-zb,
      .pz-photo-reset, .back-home, .mk-sb-x, .mk-sb-ok,
      .sm-play, .sm-restart, .pz-tabs button, .pz-catrow button{
        box-shadow:inset 0 1px 0 rgba(255,255,255,.55),
                   inset 0 -2px 5px rgba(23,61,5,.10),
                   0 5px 14px -6px rgba(23,61,5,.32);
      }
      .soc{
        box-shadow:inset 0 1px 0 rgba(255,255,255,.4),
                   inset 0 -2px 5px rgba(0,0,0,.18),
                   0 4px 10px -3px rgba(20,10,5,.35);
      }
      .sc-arrow{
        box-shadow:inset 0 1px 0 rgba(255,255,255,.6),
                   0 2px 4px rgba(38,54,10,.06),
                   0 14px 28px -12px rgba(38,54,10,.35);
      }
      .pz-tool, .tmf-tool, .sm-rail button, .mk-dp-tools button{
        box-shadow:inset 0 1px 0 rgba(255,255,255,.14),
                   inset 0 -1px 0 rgba(0,0,0,.10);
      }
      .btn{ transition:background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease, filter .15s ease; }
      @media (prefers-color-scheme: dark){
        .btn, .pz-mini, .pz-preset, .pz-elem-btn, .pg-btn, .sm-tl-zb,
        .pz-photo-reset, .back-home, .mk-sb-x, .mk-sb-ok,
        .sm-play, .sm-restart, .pz-tabs button, .pz-catrow button{
          box-shadow:inset 0 1px 0 rgba(255,255,255,.16),
                     inset 0 -2px 5px rgba(0,0,0,.35),
                     0 5px 14px -6px rgba(0,0,0,.6);
        }
        .sc-arrow{
          box-shadow:inset 0 1px 0 rgba(255,255,255,.16),
                     0 14px 28px -12px rgba(0,0,0,.6);
        }
      }

      /* ---- 1 · The tool bars' brand = the Home brand ---- */
      @media (max-width:760px){
        html.mk-ws .mk-wsbar-t,
        html.mk-ws .pz-top-name,
        html.mk-ws .sm-top-name,
        html.mk-ws .tmf-title h1{ gap:7px; }
        html.mk-ws .mk-wsbar-t::before,
        html.mk-ws .pz-top-name::before,
        html.mk-ws .sm-top-name::before,
        html.mk-ws .tmf-title h1::before{
          width:36px; height:36px; border-radius:10px;
          box-shadow:0 3px 10px rgba(3,40,26,.4), 0 0 0 1.5px rgba(255,217,77,.55), 0 0 12px rgba(255,185,32,.3);
        }
        html.mk-ws .mk-wsbar-t::after,
        html.mk-ws .pz-top-name::after,
        html.mk-ws .sm-top-name::after,
        html.mk-ws .tmf-title h1::after{
          font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
          font-size:.98rem; font-weight:800; letter-spacing:.03em;
        }
        @supports ((-webkit-background-clip:text) or (background-clip:text)){
          html.mk-ws .mk-wsbar-t::after,
          html.mk-ws .pz-top-name::after,
          html.mk-ws .sm-top-name::after,
          html.mk-ws .tmf-title h1::after{
            color:transparent; text-shadow:none;
            background:linear-gradient(90deg,#fff 0%,#fff 48%,#FFE93D 48%,#FFE93D 100%);
            -webkit-background-clip:text; background-clip:text;
            filter:drop-shadow(0 2px 3px rgba(23,61,5,.35));
          }
        }
        /* The bar's round back button and icon actions take
           the premium finish too. */
        html.mk-ws .mk-wsback,
        html.mk-ws .pz-back,
        html.mk-ws .tmf-back{
          box-shadow:inset 0 1px 0 rgba(255,255,255,.45),
                     inset 0 -2px 5px rgba(0,0,0,.22),
                     0 5px 12px -4px rgba(10,40,5,.55);
        }
        html.mk-ws .pz-top-actions .btn,
        html.mk-ws .tmf-top-actions .btn,
        html.mk-ws .sm-create{
          box-shadow:inset 0 1px 0 rgba(255,255,255,.5),
                     inset 0 -2px 5px rgba(23,61,5,.18),
                     0 5px 12px -5px rgba(10,40,5,.5);
        }
      }
      @media (max-width:374px){
        html.mk-ws .mk-wsbar-t::before,
        html.mk-ws .pz-top-name::before,
        html.mk-ws .sm-top-name::before,
        html.mk-ws .tmf-title h1::before{ width:33px; height:33px; border-radius:9px; }
        html.mk-ws .mk-wsbar-t::after,
        html.mk-ws .pz-top-name::after,
        html.mk-ws .sm-top-name::after,
        html.mk-ws .tmf-title h1::after{ font-size:.88rem; }
      }

      /* ---- 3 · Compact phone controls, full tap height ---- */
      @media (max-width:760px){
        .pz-mini{
          position:relative; min-height:34px; padding:5px 11px;
          font-size:.82rem; border-radius:8px;
        }
        .pz-mini::after{
          content:""; position:absolute; left:0; right:0; top:-5px; bottom:-5px;
        }
        .tmf-stage-meta{ padding:4px 5px; gap:6px; border-radius:10px; }
        .tmf-stage-meta .tmf-change{
          min-height:32px; padding:4px 10px; font-size:.8rem;
        }
        .tmf-stage-meta .tmf-change::after{ top:-6px; bottom:-6px; }
        .tmf-zoom{ padding:2px; gap:1px; }
        .tmf-zbtn{
          position:relative; min-width:28px; height:28px;
          padding:0 6px; font-size:.85rem;
        }
        .tmf-zbtn::after{
          content:""; position:absolute; left:0; right:0; top:-8px; bottom:-8px;
        }
        .tmf-zval{ min-width:40px; font-size:.76rem; }
      }

      /* ---- 4 · Compact premium buttons + single-line UI text
         (owner rule, 2026-11-29, screenshots TM1/TM2: on phones
         NO button — Create, Get Started, Download, any of them —
         is oversized, and NO heading, section label, button text,
         step pill or tile caption ever wraps to a second line.
         Labels were shortened at the source; these sizes keep
         every line on one line at 360px. The premium finish —
         gradients, rims, shadows — is untouched; only the bulk
         goes. Desktop layout unchanged.) ---- */
      /* Tile captions: name left, group tag right, one slim
         single-line bar at every width. */
      .tmf-tile-lab{ flex-wrap:nowrap; }
      .tmf-tile-name{
        flex:1 1 auto; min-width:0; white-space:nowrap;
        overflow:hidden; text-overflow:ellipsis;
      }
      .tmf-tile-lab em{ flex:0 0 auto; }
      @media (max-width:760px){
        /* Compact buttons, premium finish kept */
        .btn{ min-height:40px; padding:8px 15px; font-size:.9rem; border-radius:10px; white-space:nowrap; }
        .btn svg{ width:16px; height:16px; }
        .btn-sm{ min-height:36px; padding:7px 12px; font-size:.85rem; }
        .tmf-start{
          min-height:40px; padding:8px 18px; font-size:.93rem; border-radius:11px;
          white-space:nowrap; flex:0 0 auto;
        }
        .tmf-actions .btn{ min-height:42px; font-size:.93rem; }
        .pz-actions .btn-red{ min-height:42px; padding:9px 18px; font-size:.93rem; }
        .mk-save-row a,.mk-save-row button{ min-height:42px; padding:8px 10px; font-size:.9rem; white-space:nowrap; }
        .mk-save-close{ min-height:38px; }
        .pz-tabs button,.pz-occ button,.pz-catrow button{
          min-height:38px; padding:7px 13px; font-size:.86rem; white-space:nowrap;
        }
        .tmf-tabs button{ min-height:38px; padding:7px 10px; font-size:.87rem; white-space:nowrap; }
        .tmf-back{ min-height:34px; padding:5px 12px 5px 9px; font-size:.86rem; white-space:nowrap; }
        .pz-preset{ white-space:nowrap; }
        /* Step pills: all three on ONE row, even at 360px */
        .tmf-steps{ flex-wrap:nowrap; gap:6px; margin-top:10px; }
        .tmf-stepchip{
          flex:1 1 0; min-width:0; justify-content:center; gap:5px;
          padding:5px 6px 5px 5px; font-size:.76rem;
          white-space:nowrap; overflow:hidden;
        }
        .tmf-stepchip i{ width:18px; height:18px; font-size:.7rem; flex:0 0 auto; }
        /* Single-line UI text, premium display face */
        .pz-label{
          font-family:"Baloo 2","Baloo Da 2",sans-serif; font-size:.82rem;
          letter-spacing:.09em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
        }
        .tmf-h2{ font-size:1.16rem; margin-top:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .section-head h2{ font-size:1.14rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .page-head h1{ font-size:1.34rem; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .st-group-head{ white-space:nowrap; overflow:hidden; }
        .pz-gal-head{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .sm-preset-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .tile .tt{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .tmf-panel-head{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .tmf-panel-head small{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        /* Tile caption becomes a slimmer bar on phones */
        .tmf-tile-lab{ padding:6px 9px; font-size:.79rem; gap:6px; }
        .tmf-tile-lab em{ font-size:.66rem; }
        /* Home hero heading: ONE line at phone widths (owner
           single-line rule, 2026-11-29). The wording was
           shortened at the source to "Shayari, Jokes, Wishes &
           Quotes"; the size scales with the viewport so the
           whole line fits inside the hero card at 360px and
           390px alike, still in the premium Baloo display face.
           Desktop keeps the large clamp size above. */
        .hero h1{
          white-space:nowrap; text-wrap:nowrap;
          font-size:clamp(1.02rem,4.85vw,1.32rem);
          letter-spacing:-.022em; max-width:100%;
        }
      }

      /* ---- 5 · Compact phone UI scale (owner, 2026-11-29
         20:28 IST): on phones the SURROUNDING UI — headings,
         section titles, labels, tiles, blocks and spacing —
         steps down to compact proportions on every page. Two
         sizes are LOCKED and deliberately untouched here: the
         post/listing card size itself (the A25 two-across
         pair) and every maker tool's editing canvas. ---- */
      @media (max-width:760px){
        .section{ margin-top:32px; }
        .section-head{ margin-bottom:14px; padding-bottom:10px; }
        .page-head{ padding:18px 0 4px; }
        .page-head p{ font-size:.92rem; line-height:1.55; }
        .crumbs{ padding:12px 0 2px; font-size:.8rem; }
        .hero{ padding:22px 13px 18px; }
        .hero p{ font-size:.93rem; line-height:1.58; }
        .hero .lang-note{ margin-top:14px; }
        .hero .searchbar{ margin-top:16px; }
        .showcase{ padding:14px 0 10px; }
        .sc-head{ margin-bottom:8px; }
        .tile{ padding:14px; min-height:0; gap:7px; border-radius:12px; }
        .tile .chip{ width:38px; height:38px; border-radius:10px; }
        .tile .chip svg{ width:20px; height:20px; }
        .tile .tt{ font-size:.94rem; }
        .tile .td{ font-size:.8rem; line-height:1.4; }
        .tile-btn{ min-height:54px; padding:11px 13px; }
        .rail-cap{ font-size:.84rem; margin-top:7px; }
        .cm-head{ padding:22px 0 2px; }
        .cm-head h1{ font-size:1.52rem; margin-bottom:5px; }
        .cm-head .cm-sub{ font-size:.98rem; margin-bottom:5px; }
        .cm-head p{ font-size:.9rem; }
        .pz-box{ padding:14px; gap:16px; border-radius:14px; }
        .cards{ margin-top:16px; }
        .qotd-head{ margin-bottom:14px; }
        .post-actions-row{ margin-top:18px; }
        .prev-next{ margin-top:30px; }
        .pagination{ margin-top:28px; }
        .empty{ padding:26px 16px; }
        .foot-inner{ padding:22px 16px 0; gap:18px; }
        .site-foot h3{ font-size:.88rem; }
        .open-hint{ margin-top:8px; font-size:.78rem; }
      }

      /* ---- 6 · Post page pair: two-across on phones too
         (owner, 2026-11-29 20:28 IST). On the single post
         page the pair no longer stacks on phones — native
         and Roman sit side by side at the same A25 pair size
         the listings use, and each card keeps its OWN Copy /
         Share / Download / Sticker bar directly beneath it
         (the bars were always per-card in the markup; they
         were only ever stacked because the pair was). The
         bars compact to fit the half width: smaller social
         discs and small buttons, centred, no text wrapping.
         Collection/category listings are unchanged — still
         Open-only, no action bars (owner rule, 2026-11-28). ---- */
      @media (max-width:679px){
        .post-wrap .pair{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
        .post-wrap .pair .art-wrap:only-child{
          grid-column:1 / -1; max-width:236px; width:100%; margin:0 auto;
        }
        .post-wrap .pair .art-card{ padding:18px 13px 14px; border-radius:14px; }
        .post-wrap .pair .art-card::before{ inset:10px; }
        .post-wrap .pair .art-card::after{ inset:6px; }
        .post-wrap .pair .art-card.grow{ min-height:248px; }
        .post-wrap .pair .art-text{ font-size:calc(.78rem * var(--fscale,1)); line-height:1.55; padding:8px 2px; }
        .post-wrap .pair .art-text.long{ font-size:calc(.7rem * var(--fscale,1)); }
        .post-wrap .pair .art-brand{ font-size:.58rem; letter-spacing:.08em; margin-bottom:5px; }
        .post-wrap .pair .img-card{ border-radius:14px; }
        .post-wrap .art-actions{ gap:6px 7px; margin-top:8px; }
        .post-wrap .art-actions .btn-sm{
          min-height:32px; padding:5px 9px; font-size:.76rem; border-radius:8px; gap:5px;
        }
        .post-wrap .art-actions .btn-sm svg{ width:13px; height:13px; }
        .post-wrap .art-actions .share-group{ gap:5px; }
        .post-wrap .art-actions .share-label{ font-size:.78rem; }
        .post-wrap .art-actions .soc{ width:32px; height:32px; min-height:32px; }
        .post-wrap .art-actions .soc svg{ width:16px; height:16px; }
      }

      /* ---- 7 · Card Maker bar overlap fix (sweep finding,
         2026-11-29): in the workspace bar the Download button's
         text label crept back (a later compact rule restored
         its font size), widening the actions zone until the
         "Download Card" pill painted OVER the centred brand.
         The bar's actions are icon-only by design — restore
         that with the specificity to hold it. The button's
         aria-label and the full label in the sheet below are
         unchanged. ---- */
      @media (max-width:760px){
        html.mk-ws .pz-top-actions .btn{
          font-size:0; gap:0; padding:6px 9px; min-height:36px;
        }
        html.mk-ws .pz-top-actions .btn svg{ width:18px; height:18px; }
      }

      /* ---- 8 · Sub-collection tiles fit their line (sweep
         finding, 2026-11-29): at half width the chip + arrow
         left ~60px for the name, so titles hard-cut mid-word
         ("Sad Sha…", "Attitud…"). The chip shrinks, the name
         gets the full remaining width with a clean ellipsis
         where a full name still cannot fit, and short-labelled
         tiles (category pages) drop the arrow entirely so
         their whole name shows. ---- */
      @media (max-width:760px){
        .tile-btn{ gap:8px; padding:11px 12px; }
        .tile-btn .chip{ width:30px; height:30px; border-radius:9px; }
        .tile-btn .chip svg{ width:16px; height:16px; }
        .tile-btn .tt{ flex:1 1 auto; min-width:0; font-size:.85rem; }
        .tile-btn.tile-short .go{ display:none; }
      }

      /* ---- 9 · Phone header rebalance (owner, 2026-11-29
         20:34 IST, screenshot H1): the header reads as ONE
         composed unit on a single level —
         1. The menu disc (left) and the language pill (right)
            are now the SAME height (46px), the same visual
            weight, in mirror positions at the two edges, their
            centres on one horizontal line. Before, the disc
            stood 50px against a 32px pill, so the bar looked
            lopsided no matter how it was centred.
         2. Logo + MAJE KARO stay at the exact centre between
            them (three equal-zone geometry restated for the
            whole phone range, not just ≤640px).
         3. The date-time line sits directly under the brand
            on the same centre axis, hugging the brand row
            (1px gap, no padding of its own) so it reads as
            part of the same unit, not a dropped second bar.
         4. The line NEVER clips again: the short weekday /
            short date swap on narrow phones is retired — the
            FULL weekday ◆ full date 🕐 time shows at every
            phone width, in a slightly smaller clock size so
            the whole line fits 360px with room to spare. The
            format itself is unchanged.
         Total height stays ~76px (--head-h unchanged), so
         every sticky offset below stays exact. Desktop and
         the tool bars are untouched. ---- */
      @media (max-width:760px){
        .head-inner{
          grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
          grid-template-rows:52px auto; row-gap:1px;
          padding:0 10px 5px; align-items:center;
        }
        #menuBtn{
          justify-self:start; align-self:center;
          width:46px; height:46px; min-height:46px;
        }
        #menuBtn .menu-ic{ width:21px; height:21px; }
        .head-inner .lang-wrap{ grid-column:3; grid-row:1; justify-self:end; align-self:center; }
        .site-head .lang-btn{
          height:46px; min-height:46px; padding:0 13px;
          font-size:.84rem; gap:5px; align-items:center;
        }
        .site-head .lang-btn svg{ width:15px; height:15px; }
        .head-inner .clock-chip{
          grid-column:1 / -1; grid-row:2; justify-self:center; align-self:center;
          padding:0 4px;
        }
        .clock-txt{ flex-wrap:nowrap; }
        .clock-date{
          font-size:.75rem; white-space:nowrap;
        }
        .clock-date .cd-full{ display:inline; }
        .clock-date .cd-short{ display:none; }
        .clock-wd .cwd-full{ display:inline; }
        .clock-wd .cwd-short{ display:none; }
        .clock-time{ font-size:.8rem; white-space:nowrap; }
      }

      /* ---- 10 · Back & Share buttons: the real premium
         finish (owner, 2026-11-29 20:37 IST — the earlier
         premium pass did not reach these; they still read
         low quality). Every Back button and every Share
         button on the site and in the tools now wears ONE
         design language — the header family's own: a deep
         emerald gloss gradient, a fine gold-tinted rim, an
         inset top highlight with a shaded foot, a deep soft
         shadow, and a crisp icon with its own drop shadow.
         Sizes stay compact per the standing rule; only the
         finish rises. Applies at every width. ---- */
      /* Back: page-level (collection pages, info pages) */
      .back-home{
        padding:8px 15px 8px 11px; border-radius:999px;
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1px solid rgba(255,217,77,.5); color:#fff;
        font-size:.88rem; text-shadow:0 1px 3px rgba(0,0,0,.3);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -9px 13px -9px rgba(0,0,0,.5), 0 7px 16px -6px rgba(10,61,32,.55), 0 0 12px rgba(255,185,32,.14);
        transition:filter .15s ease, box-shadow .15s ease, transform .12s ease;
      }
      .back-home svg{ color:#FFD94D; filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
      .back-home:hover{ color:#fff; filter:brightness(1.1); text-decoration:none; }
      .back-home:active{ transform:scale(.96); }
      /* Back: the post page's "Back to …" button */
      .post-actions-row .btn-ghost{
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1px solid rgba(255,217,77,.5); color:#fff;
        text-shadow:0 1px 3px rgba(0,0,0,.3);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -9px 13px -9px rgba(0,0,0,.5), 0 7px 16px -6px rgba(10,61,32,.55), 0 0 12px rgba(255,185,32,.14);
      }
      .post-actions-row .btn-ghost svg{ color:#FFD94D; filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
      .post-actions-row .btn-ghost:hover{ color:#fff; filter:brightness(1.1); }
      /* Back/forward: the post page's circular arrow discs */
      .pn-arrows .pn{
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1px solid rgba(255,217,77,.5); color:#fff;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -9px 13px -9px rgba(0,0,0,.5), 0 8px 18px -6px rgba(10,61,32,.55), 0 0 12px rgba(255,185,32,.14);
      }
      .pn-arrows .pn svg{ filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
      .pn-arrows a.pn:hover{ color:#FFD94D; filter:brightness(1.1); }
      .pn-arrows span.pn.off{
        background:var(--surface); border-color:var(--line-strong);
        color:var(--faint); box-shadow:none;
      }
      /* Back: every tool's bar back (Card / Text / DP / Story) */
      html.mk-ws .pz-back,
      html.mk-ws .tmf-back,
      html.mk-ws .mk-wsback{
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1.5px solid rgba(255,217,77,.55);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -8px 12px -8px rgba(0,0,0,.55), 0 7px 15px -5px rgba(10,40,5,.6), 0 0 12px rgba(255,185,32,.18);
      }
      html.mk-ws .pz-back svg,
      html.mk-ws .tmf-back svg,
      html.mk-ws .mk-wsback svg{ filter:drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
      /* Share: the social discs (post cards, status lines) */
      .soc{
        box-shadow:inset 0 1px 0 rgba(255,255,255,.55), inset 0 -7px 12px -7px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.30), 0 7px 16px -6px rgba(20,35,5,.55);
      }
      .soc svg{ filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
      .soc-wa,.soc-fb{ background-image:linear-gradient(180deg,rgba(255,255,255,.38) 0%,rgba(255,255,255,0) 55%); }
      .soc-ig{
        background:linear-gradient(180deg,rgba(255,255,255,.38) 0%,rgba(255,255,255,0) 55%), linear-gradient(45deg,#FEDA75 0%,#FA7E1E 30%,#D62976 58%,#962FBF 82%,#4F5BD5 100%);
      }
      /* Share: the WhatsApp share buttons in the tools */
      .btn-wa{
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1px solid rgba(255,217,77,.5); color:#fff;
        text-shadow:0 1px 3px rgba(0,0,0,.3);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -9px 13px -9px rgba(0,0,0,.5), 0 7px 16px -6px rgba(10,61,32,.55), 0 0 12px rgba(255,185,32,.14);
      }
      .btn-wa svg{ color:#FFD94D; filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
      .btn-wa:hover{ filter:brightness(1.1); }
      @media (prefers-color-scheme: dark){
        .back-home,.post-actions-row .btn-ghost,.pn-arrows .pn,.btn-wa{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
          border-color:rgba(255,233,61,.5);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -9px 13px -9px rgba(0,0,0,.6), 0 7px 16px -6px rgba(0,0,0,.65), 0 0 12px rgba(255,217,77,.16);
        }
        html.mk-ws .pz-back, html.mk-ws .tmf-back, html.mk-ws .mk-wsback{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
        }
      }
      /* Footer tail: on phones the copyright line drops its
         " — All rights reserved" tail (see section 11), so it
         ends long before the floating back-to-top disc and
         never slides under it. */

      /* ---- 11 · Compact footer, both widths (owner,
         2026-11-29 20:40 IST, screenshot FUT1): the footer
         stood far too tall and empty — a long paragraph, one
         10-link column towering over 4-link columns, and
         generous padding left a big dark void. Now: the
         paragraph is one short line (the no-filler rule),
         the links split into balanced columns (Categories 4
         · Maker Tools 6 · Information 4), type steps down a
         premium notch, and padding/gaps tighten everywhere.
         On phones the link columns pair up two-across
         instead of one long stack. ---- */
      .foot-inner{ padding:18px 16px 0; gap:18px; align-items:start; }
      .foot-brand{ margin-bottom:7px; }
      .foot-brand img{ width:34px; height:34px; border-radius:9px; }
      .foot-brand .n{ font-size:1.02rem; }
      .site-foot p{ font-size:.82rem; line-height:1.5; max-width:290px; }
      .site-foot h3{ font-size:.86rem; margin-bottom:6px; padding-bottom:5px; }
      .site-foot ul{ gap:0; }
      .site-foot ul a{ min-height:26px; font-size:.84rem; }
      .foot-bar{ margin-top:14px; padding:9px 16px; font-size:.76rem; }
      @media (min-width:761px){
        .foot-inner{ grid-template-columns:minmax(0,1.15fr) minmax(0,.75fr) minmax(0,1.05fr) minmax(0,.75fr); }
      }
      @media (max-width:760px){
        .foot-inner{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; padding:16px 16px 0; }
        .foot-inner>div:first-child{ grid-column:1 / -1; }
        .foot-inner>div:nth-child(4){ grid-column:1 / -1; }
        /* The old two-abreast link lists were designed for a
           full-width footer column; inside the new half-width
           columns they crushed every label to ~85px and wrapped
           it over three lines. Lists run single-file again —
           with the short labels above, every link fits its
           column on one line. */
        .site-foot ul{ grid-template-columns:minmax(0,1fr); }
        .foot-bar .fb-tail{ display:none; }
      }
      /* ==========================================================
         DESKTOP HEADER: FULL-WIDTH ROW (owner, 2026-11-29
         21:12 IST, desktop screenshot with both top corners
         ringed in red): the green bar always spanned the full
         width, but its inner row sat inside the 1180px content
         container, so on wide screens the bar's two ends stood
         empty and the controls huddled in the middle. On
         desktop the row now spans the bar itself, with a
         comfortable edge inset:
         1. The menu disc moves out to the left corner.
         2. The clock chip + language pill group moves out to
            the right corner, with a small breathing gap
            between the two chips.
         3. The brand block is absolutely centred on the row,
            so it now sits at the bar's true centre — unchanged
            in size and dress, just truly central.
         Phones are untouched: nothing here applies at or
         below 760px, where the balanced two-row header stands
         exactly as it was.
         ========================================================== */
      @media (min-width:761px){
        .head-inner{
          max-width:none; width:100%; margin:0;
          padding:0 clamp(20px,2.4vw,36px);
          column-gap:14px;
        }
        #menuBtn{ justify-self:start; }
        .head-inner .clock-chip{ justify-self:end; }
        .head-inner .lang-wrap{ justify-self:end; }
      }
      /* ==========================================================
         PHONE HEADER: ONE COMPOSED BAND, THREE EQUAL HEIGHTS
         (owner, 2026-11-29 21:33 + 21:36 IST, edited target
         A3D against phone shot H2 — this sizing rule overrides
         every earlier phone-header size rule):
         1. THREE HEIGHTS, EXACTLY EQUAL: the menu disc (left),
            the language pill (right) and the site logo are all
            one fixed height — 50px. Only their WIDTHS differ,
            each sized by its own content: the disc is a slim
            tall oval, the pill as wide as its language label,
            the logo square.
         2. ONE BAND, NOT TWO ROWS: the brand block in the
            middle is a single unit in the A3D arrangement —
            the 50px logo on the left, "MAJE KARO" beside it,
            and the date-time line directly under the name,
            inside the same block, spanning its foot as small
            plain white text (weekday ◆ date 🕐 time — the full
            format at every phone width, in a size that never
            clips at 360px). The old second clock row is gone.
         3. Disc, pill and brand block all centre on the one
            horizontal axis of the band, so nothing reads as
            raised or dropped; the disc and pill keep the
            header family's deep-emerald gloss, gold rim and
            glow at their new tall proportions, and the logo
            keeps its gold rim — a premium finish on the A3D
            arrangement.
         Phones only (≤760px): the desktop header and its
         glossy clock chip are untouched (the .brand-block
         wrapper is display:contents there, so the desktop
         grid and absolute centring behave exactly as before).
         --head-h becomes the band's true height (50 logo +
         2 gap + ~14 clock + 7 + 7 padding = 80px), so sticky
         offsets stay exact.
         ========================================================== */
      .brand-block{ display:contents; }
      @media (max-width:760px){
        :root{ --head-h:80px; }
        .head-inner{
          grid-template-columns:auto minmax(0,1fr) auto;
          grid-template-rows:1fr; height:auto;
          padding:7px 8px; column-gap:6px; row-gap:0;
          align-items:center;
        }
        /* (1) The three equal heights: disc = pill = logo = 50px */
        #menuBtn{
          grid-column:1; grid-row:1; justify-self:start; align-self:center;
          width:44px; height:50px; min-height:50px; border-radius:999px;
        }
        #menuBtn .menu-ic{ width:21px; height:21px; }
        .head-inner .lang-wrap{ grid-column:3; grid-row:1; justify-self:end; align-self:center; }
        .site-head .lang-btn{
          height:50px; min-height:50px; padding:0 12px;
          border-radius:999px; font-size:.82rem; gap:5px; align-items:center;
        }
        .site-head .lang-btn svg{ width:15px; height:15px; }
        /* (2) The brand block: logo | name, clock across the foot.
           The .site-name and its link step aside (display:
           contents) so the logo, the name and the clock place
           themselves directly in the block's grid — the link
           still wraps them all and stays fully clickable. */
        .brand-block{
          grid-column:2; grid-row:1; justify-self:center; align-self:center;
          display:grid; grid-template-columns:auto auto;
          grid-template-areas:"logo name" "clock clock";
          column-gap:8px; row-gap:2px; align-items:center;
        }
        .brand-block .site-name{ display:contents; font-size:1rem; }
        .brand-block .site-name a{ display:contents; }
        .site-head .brand-block .brand-logo{
          grid-area:logo; width:50px; height:50px; border-radius:12px;
        }
        .brand-block .site-name a > span{
          grid-area:name; justify-self:start; white-space:nowrap; line-height:1.1;
        }
        .brand-block .site-name a:focus-visible > span{
          outline:3px solid rgba(255,255,255,.85); outline-offset:2px; border-radius:6px;
        }
        /* The clock inside the block: plain white text, one
           line, the full format, never clipped. */
        .brand-block .clock-chip{
          grid-area:clock; justify-self:center;
          background:none; border:none; box-shadow:none; border-radius:0;
          min-width:0; min-height:0; padding:0; gap:0;
        }
        .clock-ic{ display:none; }
        .clock-txt{ flex-direction:row; align-items:center; gap:5px; flex-wrap:nowrap; }
        .clock-date{
          color:#fff; font-size:.6rem; font-weight:600; text-transform:none;
          letter-spacing:.01em; min-height:0; white-space:nowrap;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
        .clock-date .cd-full{ display:inline; }
        .clock-date .cd-short{ display:none; }
        .clock-wd .cwd-full{ display:inline; }
        .clock-wd .cwd-short{ display:none; }
        .clock-sep{ width:13px; height:13px; }
        .clock-time{
          color:#fff; font-size:.62rem; font-weight:700;
          min-width:0; min-height:0; white-space:nowrap;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
      }
      @media (max-width:374px){
        #menuBtn{ width:41px; }
        #menuBtn .menu-ic{ width:19px; height:19px; }
        .brand-block .site-name{ font-size:.93rem; }
        .site-head .lang-btn{ padding:0 10px; font-size:.78rem; }
        .clock-date{ font-size:.57rem; }
        .clock-time{ font-size:.59rem; }
      }
      /* ==========================================================
         TOOL BARS: ONE ACTION BUTTON + TIDY POPOVER, AND ONE
         STYLE LANGUAGE EVERYWHERE (owner, 2026-11-29
         21:38–21:40 IST, screenshot SM1 + the standing
         one-style rule):
         1. SM1: in the Card Maker's phone bar the Download
            button sat ON the last letter of MAJE KARO, and the
            three action buttons (Download · Sticker ·
            WhatsApp) were a crowded, mixed-quality cluster.
            The cluster is gone: each maker bar now carries
            ONE premium action button (emerald gloss gradient,
            gold rim, deep shadow — the site header's own
            finish, at the bar's one control height, 40px, the
            same as the back disc). Tapping it opens a small
            tidy popover anchored under the bar — never a
            full-screen modal — listing that tool's actions in
            order, each an icon + a small label on ONE line,
            every row in the same premium family (the pale
            cream Sticker button included). With the cluster
            gone the brand (logo + MAJE KARO, the same
            treatment as the site header) sits at the bar's
            true centre with a guaranteed gap on both sides —
            overlap is impossible. Applied wherever a bar's
            actions crowded: Card Maker, DP Designer and Text
            Maker (all .pz-top-actions / .tmf-top-actions).
            Story Maker's single "Create" primary stays as it
            was, raised to the same finish and height.
         2. Desktop bars are unchanged: above 760px the
            popover wrapper steps aside (display:contents) and
            the buttons render inline exactly as before, and
            the action button never appears.
         The popover's buttons are the bars' own buttons,
         moved by the small script before the closing body tag — their
         handlers, labels and order are untouched.
         ========================================================== */
      .mk-act-btn{ display:none; }
      @media (min-width:761px){
        .mk-act-pop{ display:contents; }
      }
      @media (max-width:760px){
        html.mk-ws .pz-top-actions.mk-act-host,
        html.mk-ws .tmf-top-actions.mk-act-host{ position:relative; overflow:visible; }
        .mk-act-btn{
          display:inline-flex; align-items:center; justify-content:center;
          width:46px; height:40px; min-height:40px; padding:0; border-radius:999px;
          color:#FFD94D;
          background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
          border:1px solid rgba(255,217,77,.55);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -9px 13px -9px rgba(0,0,0,.5), 0 7px 16px -6px rgba(10,61,32,.55), 0 0 12px rgba(255,185,32,.16);
          transition:filter .15s ease, transform .12s ease;
        }
        .mk-act-btn svg{ width:20px; height:20px; filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
        .mk-act-btn:hover{ filter:brightness(1.1); }
        .mk-act-btn:active{ transform:scale(.94); }
        .mk-act-pop{
          position:absolute; top:calc(100% + 9px); right:0; z-index:90;
          min-width:218px; padding:6px;
          display:flex; flex-direction:column; gap:4px;
          background:var(--surface); border:1px solid var(--line); border-radius:14px;
          box-shadow:0 2px 4px rgba(38,54,10,.06), 0 24px 44px -16px rgba(38,54,10,.35);
          opacity:0; visibility:hidden; transform:translateY(-5px);
          transition:opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
        }
        .mk-act-host.open .mk-act-pop{
          opacity:1; visibility:visible; transform:none;
          transition:opacity .18s ease, transform .18s ease, visibility 0s;
        }
        /* Every option row: one premium family — emerald
           gloss, gold rim, gold icon, icon + label, one line. */
        html.mk-ws .pz-top-actions .mk-act-pop .btn,
        html.mk-ws .tmf-top-actions .mk-act-pop .btn{
          width:100%; justify-content:flex-start; gap:9px;
          min-height:44px; padding:9px 13px; border-radius:10px;
          font-size:.88rem; font-weight:600; white-space:nowrap;
          background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
          border:1px solid rgba(255,217,77,.5); color:#fff;
          text-shadow:0 1px 3px rgba(0,0,0,.3);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -9px 13px -9px rgba(0,0,0,.5), 0 5px 12px -5px rgba(10,61,32,.5);
        }
        html.mk-ws .pz-top-actions .mk-act-pop .btn svg,
        html.mk-ws .tmf-top-actions .mk-act-pop .btn svg{
          width:18px; height:18px; color:#FFD94D; flex:none;
          filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));
        }
        html.mk-ws .pz-top-actions .mk-act-pop .btn:active,
        html.mk-ws .tmf-top-actions .mk-act-pop .btn:active{ transform:scale(.98); }
        /* Story Maker's single primary action: same finish,
           same 40px control height as its bar's back disc. */
        html.mk-ws .sm-create{
          min-height:40px; border:1px solid rgba(255,217,77,.5);
          text-shadow:0 1px 3px rgba(0,0,0,.3);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -9px 13px -9px rgba(0,0,0,.5), 0 7px 16px -6px rgba(10,61,32,.55), 0 0 12px rgba(255,185,32,.14);
        }
        html.mk-ws .sm-create svg{ color:#FFD94D; }
      }
      @media (max-width:760px) and (prefers-color-scheme: dark){
        .mk-act-btn{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
          border-color:rgba(255,233,61,.5);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -9px 13px -9px rgba(0,0,0,.6), 0 7px 16px -6px rgba(0,0,0,.65), 0 0 12px rgba(255,217,77,.16);
        }
        html.mk-ws .pz-top-actions .mk-act-pop .btn,
        html.mk-ws .tmf-top-actions .mk-act-pop .btn,
        html.mk-ws .sm-create{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
          border-color:rgba(255,233,61,.5);
        }
        .mk-act-pop{ box-shadow:0 24px 44px -16px rgba(0,0,0,.7); }
      }
      /* ==========================================================
         BACK BUTTONS: THE READABLE PREMIUM STANDARD (owner,
         2026-11-29 21:42 IST, screenshot DP1 — the DP studio's
         desktop "← Back" pill had become a black blob: the
         premium pass painted the tool backs with the deep
         emerald gradient but the Card/DP back kept its dark
         ink text, so on desktop it was dark-on-dark and the
         word "Back" could not be read at all; the phone disc
         survived only because the one-bar pass sets its icon
         white). Site-wide audit of every Back and every
         low-contrast button, desktop + mobile:
         · .pz-back (Card Maker + DP Designer bars) — FIXED:
           bright emerald gloss gradient, WHITE arrow + word,
           gold-tinted rim and the family shadow, at every
           width, in and out of the workspace lock.
         · .tmf-back / .mk-wsback (Text Maker, WhatsApp Status
           + Craze bars) — already white on bright emerald in
           their base dress; their white is restated against
           the deep-emerald workspace finish so the pairing
           can never drift apart again.
         · .back-home, the post page's Back pill and its arrow
           discs — already emerald + white (previous pass) and
           verified readable; unchanged.
         · Sheet ✕ (ink on white) and ✓ (white on bright
           green), the back-to-top disc (gold on emerald), the
           drawer close and the showcase arrows — all checked,
         all readable; unchanged.
         ========================================================== */
      .pz-studio .pz-back,
      html.mk-ws .pz-back{
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1.5px solid rgba(255,217,77,.55); color:#fff;
        text-shadow:0 1px 3px rgba(0,0,0,.3);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -8px 12px -8px rgba(0,0,0,.55), 0 7px 15px -5px rgba(10,40,5,.6), 0 0 12px rgba(255,185,32,.18);
      }
      .pz-studio .pz-back svg,
      html.mk-ws .pz-back svg{ color:#fff; filter:drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
      .pz-studio .pz-back:hover,
      html.mk-ws .pz-back:hover{
        color:#fff; border-color:rgba(255,217,77,.75); filter:brightness(1.1);
      }
      html.mk-ws .tmf-back,
      html.mk-ws .mk-wsback{ color:#fff; }
      html.mk-ws .tmf-back svg,
      html.mk-ws .mk-wsback svg{ color:#fff; }
      @media (prefers-color-scheme: dark){
        .pz-studio .pz-back,
        html.mk-ws .pz-back{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
          border-color:rgba(255,233,61,.5); color:#fff;
          box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 12px -8px rgba(0,0,0,.6), 0 7px 15px -5px rgba(0,0,0,.65), 0 0 12px rgba(255,217,77,.16);
        }
      }
      /* ==========================================================
         FONT MAKER (#/font-maker) + WORDMARK LOCK
         (owner, 2026-11-29)
         Font Maker: one text input + Generate; the styled
         results list below it, 12 first, then Load More adds
         10 at a time until the library ends. No categories.
         Wordmark lock: the site name had drifted from its
         locked dress in places — everywhere "MAJE KARO"
         appears (site header, drawer head, footer brand,
         intro splash, and the maker tool bars' brand) it is
         pinned here, last in the cascade, to the one locked
         standard of the owner's reference crop: Baloo 2,
         weight 800, chunky rounded, uppercase — "MAJE" in
         white, "KARO" in gold #FFE93D.
         ========================================================== */
      .site-head .site-name,
      .drawer-head .t,
      .foot-brand .n,
      .mk-intro-name{
        font-family:"Baloo 2",sans-serif; font-weight:800; text-transform:uppercase;
      }
      .site-head .site-name{ letter-spacing:.06em; }
      .site-head .site-name a{ color:#fff; }
      .site-head .site-name .amp,
      .drawer-head .t .amp{ color:#FFE93D; }
      .foot-brand .n{ color:#fff; letter-spacing:.06em; }
      .foot-brand .n span{ color:#FFE93D; }
      html.mk-ws .mk-wsbar-t::after,
      html.mk-ws .pz-top-name::after,
      html.mk-ws .sm-top-name::after,
      html.mk-ws .tmf-title h1::after{
        font-family:"Baloo 2",sans-serif; font-weight:800; text-transform:uppercase;
      }
      /* ---------- Font Maker ---------- */
      .fm-box{ display:grid; gap:14px; margin-top:6px; }
      .fm-sample-note{
        margin:0; font-size:.8rem; font-weight:600; color:var(--muted);
        letter-spacing:.01em;
      }
      .fm-sample-note[hidden]{ display:none; }
      .fm-form{
        display:flex; gap:8px; background:var(--surface);
        border:1.5px solid var(--line-strong); border-radius:14px;
        padding:6px; box-shadow:var(--shadow);
      }
      .fm-form:focus-within{ border-color:var(--red); }
      .fm-input{
        flex:1; min-width:0; border:none; background:none; color:var(--ink);
        font:inherit; font-size:1.05rem; padding:8px 10px; min-height:46px;
      }
      .fm-input:focus{ outline:none; }
      .fm-gen{ flex:none; }
      .fm-list{ display:grid; gap:10px; }
      .fm-list:empty{ display:none; }
      .fm-row{
        display:flex; align-items:center; gap:12px;
        background:var(--surface); border:1px solid var(--line); border-radius:14px;
        box-shadow:var(--shadow); padding:12px 14px;
      }
      .fm-row-main{ flex:1; min-width:0; display:grid; gap:2px; }
      .fm-name{
        font-size:.7rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
        color:var(--red); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
      }
      /* The styled text is Unicode symbol alphabets (math
         bold/script/fraktur, circled letters): phones whose
         system font lacks those glyphs showed BLANK rows
         (owner's screenshot, 2026-11-30 — only the Copy
         buttons rendered). The stack therefore names the
         coverage faces explicitly, and initFontMaker loads
         Noto Sans Math + Noto Sans Symbols 2 as webfonts
         when the tool opens, so the glyphs arrive with the
         page instead of depending on the device font. */
      .fm-text{
        font-size:1.22rem; line-height:1.5; color:var(--ink);
        font-family:"Poppins","Noto Sans Math","Noto Sans Symbols 2","Noto Sans Symbols","Noto Sans","Segoe UI Symbol",sans-serif;
        overflow-wrap:anywhere; word-break:break-word; min-width:0;
      }
      .fm-box, .fm-form, .fm-list, .fm-row{ max-width:100%; }
      .fm-row-main{ min-width:0; }
      .fm-copy{ flex:none; }
      .fm-more-wrap{ display:flex; justify-content:center; padding:2px 0 10px; }
      .fm-more-wrap[hidden]{ display:none; }
      .fm-more{ min-width:min(220px,100%); }
      @media (max-width:560px){
        .fm-text{ font-size:1.07rem; }
        .fm-row{ padding:10px 12px; gap:10px; }
        .fm-gen{ padding:10px 14px; }
      }
      /* ==========================================================
         PHONE HEADER: OWNER'S MARKED LAYOUT (owner, 2026-11-29
         23:10 IST, annotated screenshot home-mobile2 — a red
         box around the whole header band and a white bar drawn
         under the name; this block sits last in the cascade
         and overrides every earlier phone-header arrangement):
         1. ONE SIZE, ONE LEVEL: the header's three controls —
            the menu disc (left), the site logo and the language
            pill (right) — are all exactly 46px tall, tops and
            centres on one level line. Before, the logo stood
            50px against a 44×50 oval disc, and the brand unit
            centred itself as a two-line stack, so the logo
            rode higher than both buttons and the levels never
            matched however the band was centred.
         2. THE NAME IN THE MIDDLE, BESIDE THE LOGO: "MAJE
            KARO" sits immediately right of the logo with a
            small 6px gap — no wide gap — the brand unit
            centred in the middle of the band between the disc
            and the pill.
         3. DATE-TIME AT THE WHITE MARK: the date-time line
            sits directly under the MAJE KARO name, centred
            under the brand unit in the middle of the band —
            plain white text, the full format (weekday ◆ date
            🕐 time) on one line, per the standing mobile clock
            rule. Before, the line began under the logo at the
            block's left edge and ran from there.
         The band is a flex row aligned to the top so the
         three controls share the one level; the brand unit is
         a centred column (logo + name row, clock line under
         it). --head-h is the band's true height (7 + 46 + 2
         + ~13 + 8 = 76px), so sticky offsets stay exact.
         Phones only (≤760px): the desktop header, its glossy
         clock chip and the tool bars are untouched.
         ========================================================== */
      @media (max-width:760px){
        :root{ --head-h:76px; }
        .site-head .head-inner{
          display:flex; align-items:flex-start;
          height:auto; padding:7px 10px 8px; gap:8px;
        }
        /* (1) The three controls: one size (46px), one level */
        .site-head #menuBtn{
          flex:none; align-self:flex-start;
          width:46px; height:46px; min-height:46px; border-radius:50%;
        }
        .site-head #menuBtn .menu-ic{ width:21px; height:21px; }
        .site-head .lang-wrap{ flex:none; align-self:flex-start; }
        .site-head .lang-btn{
          height:46px; min-height:46px; padding:0 12px;
          border-radius:999px; font-size:.82rem; gap:5px; align-items:center;
        }
        .site-head .lang-btn svg{ width:15px; height:15px; }
        /* (2) The brand unit: a centred column in the middle —
           logo + name on the level line, the clock under it */
        .site-head .brand-block{
          flex:1 1 auto; min-width:0;
          display:flex; flex-direction:column; align-items:center; gap:2px;
        }
        .site-head .brand-block .site-name{
          position:static; transform:none; height:auto; max-width:none;
          display:flex; align-items:center; justify-content:center;
          font-size:1rem; line-height:1.1; overflow:visible;
        }
        .site-head .brand-block .site-name a{
          display:inline-flex; align-items:center; gap:6px;
        }
        .site-head .brand-block .brand-logo{
          width:46px; height:46px; border-radius:12px; flex:none;
        }
        .site-head .brand-block .site-name a > span{
          line-height:1.1; white-space:nowrap;
        }
        /* (3) The date-time line at the white mark: directly
           under the name, centred ON THE NAME (the white bar
           in the marked screenshot is centred on the name,
           not on the whole logo+name unit — measured: the
           bar's centre matches the name's centre), plain
           white text. The line sits on its own row below the
           46px controls, so shifting it half the logo+gap
           (52px ÷ 2 = 26px) right to the name's centre can
           never touch the disc or the pill. */
        .site-head .brand-block .clock-chip{
          background:none; border:none; box-shadow:none; border-radius:0;
          min-width:0; min-height:0; padding:0; gap:0;
          display:flex; align-items:center; justify-content:center;
          transform:translateX(26px);
        }
        .site-head .clock-ic{ display:none; }
        .site-head .clock-txt{
          flex-direction:row; align-items:center; gap:5px; flex-wrap:nowrap;
        }
        .site-head .clock-date{
          color:#fff; font-size:.6rem; font-weight:600; text-transform:none;
          letter-spacing:.01em; min-height:0; white-space:nowrap;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
        .site-head .clock-date .cd-full{ display:inline; }
        .site-head .clock-date .cd-short{ display:none; }
        .site-head .clock-wd .cwd-full{ display:inline; }
        .site-head .clock-wd .cwd-short{ display:none; }
        .site-head .clock-time{
          color:#fff; font-size:.62rem; font-weight:700;
          min-width:0; min-height:0; white-space:nowrap;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
      }
      @media (max-width:374px){
        /* Very narrow phones: the same one-size rule at 42px,
           the clock a step smaller so the one white line
           still never clips. */
        .site-head #menuBtn{ width:42px; height:42px; min-height:42px; }
        .site-head #menuBtn .menu-ic{ width:19px; height:19px; }
        .site-head .brand-block .brand-logo{ width:42px; height:42px; border-radius:11px; }
        .site-head .brand-block .site-name{ font-size:.92rem; }
        .site-head .lang-btn{ height:42px; min-height:42px; padding:0 10px; font-size:.78rem; }
        /* The clock keeps the name's centre at this size too:
           half the 42px logo + 6px gap = 24px. */
        .site-head .brand-block .clock-chip{ transform:translateX(24px); }
        .site-head .clock-date{ font-size:.56rem; }
        .site-head .clock-time{ font-size:.58rem; }
      }

      /* ==========================================================
         MOBILE HOME OVERFLOW FIX (owner phone screenshots,
         2026-11-30 00:31 IST): on the phone the whole Home page
         could be dragged sideways — the All Collections tiles
         were wider than the screen (the right column half cut,
         "Sad Shayari" showing only "Sa..."), and because the
         document itself was too wide, the sticky header slid
         and cut with it (logo / hamburger off-frame).

         ROOT CAUSE: a grid track written as plain 1fr is really
         minmax(auto, 1fr) — a track may never shrink below its
         content's min-content size. Tile names are single-line
         (white-space:nowrap) by the standing one-line rule, so
         a long name ("Motivational Shayari") forced its track
         — and with it the whole two-column grid, the page and
         the header — wider than the viewport, worse at larger
         phone font sizes. The ellipsis could never engage
         because the track grew instead of the text clipping.

         FIX: every content grid in this sheet now uses
         minmax(0, 1fr) tracks (tile grids incl. cols4/cols5/
         cols6, rail grid, card pairs, prev-next, status list,
         footer) and .tile carries min-width:0, so columns are
         truly fluid: two columns + gap always total exactly
         the container width at 360px and 390px alike, and long
         names clip with an ellipsis inside their own tile.
         The rules below restate the phone case last so no
         earlier phone block can reintroduce an auto-minimum
         track, and the page-level clip is the final guard:
         overflow-x:clip (not hidden) never creates a scroll
         container, so the sticky header keeps sticking, while
         no stray element can ever widen the document again.
         Intentional inner scrollers (makers strip, showcase,
         gallery rows) keep scrolling inside their own boxes —
         they were never the leak. Desktop layout unchanged.
         ========================================================== */
      html, body{ overflow-x:clip; }
      @media (max-width:760px){
        .tile-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
        .rail-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
        .tile{ min-width:0; }
        .tile .tt{ min-width:0; }
        .section-head h2{ min-width:0; flex:1 1 auto; }
        .section-head a{ flex:none; }
        .hero h1{ overflow:hidden; text-overflow:ellipsis; }
      }

      /* ==========================================================
         WORDMARK + BACK STANDARD + ROW MARGINS (owner,
         2026-11-30 00:36 IST, Font Maker phone screenshot):
         three drifts closed in one final pass, stated last so
         no earlier variant can outrank them.

         1 · WORDMARK: in the Font Maker bar the brand had
         drifted off its locked dress. Every tool bar's brand
         (the shared .mk-wsbar, Card/DP .pz-top-name, Story
         .sm-top-name, Text Maker .tmf-title) is re-pinned at
         EVERY width to the site header's own standard: Baloo 2,
         weight 800, uppercase — "MAJE" white, "KARO" gold
         #FFE93D. The two tones ride one background gradient
         clipped to the text (the split sits in the word gap);
         where background-clip:text is unavailable the wordmark
         stays plain white — visible, never transparent.

         2 · BACK, SITE-WIDE, ONE STANDARD: every Back control
         on the site — the tool bars (.mk-wsback, .pz-back,
         .tmf-back), the page-level .back-home, the post page's
         Back pill and the error page's Back link — now wears
         exactly one finish: the deep emerald gloss gradient,
         a gold-tinted rim, the family shadow, white arrow and
         word, and one height (40px) everywhere. In the phone
         tool bars the standard takes the disc form (40px
         circle, word in the aria-label, as locked by the
         one-slim-bar rule); on pages and desktop bars it is
         the same finish as a pill with its word showing. The
         flat bright-green variant (.mk-wsback / .tmf-back
         base dress) and the Story bar's 36px disc are retired.
         The post page's prev/next arrow pair keeps the same
         finish (it is a navigation pair, not a Back button)
         and its matched 54px size. Close (x) buttons are not
         Back buttons and are untouched.

         3 · ROW MARGINS: Font Maker's result rows reached the
         screen's right edge — the Copy button sat ~1px from
         the viewport while the left gap was 16px. Cause: the
         same auto-track family as the tile grids — .fm-box
         and .fm-list are single-column grids with no explicit
         template, so their column sized to the widest row's
         max-content and pushed the rows past the wrap's right
         padding. Both now use minmax(0, 1fr) tracks, so each
         row spans exactly the wrap's content box: the left
         gap and the right gap are the same 16px, and inside
         the row the Copy button keeps its 12px inset from
         the row's edge. The same one-line fix is applied to
         the WhatsApp Status row lists (.status-box / .st-group
         / .st-list), the only other page-flow row grids built
         the same way; studio-internal panel grids live inside
         min-width:0 shells and were verified unaffected.
         ========================================================== */
      .fm-box, .fm-list, .status-box, .st-group, .st-list{
        grid-template-columns:minmax(0,1fr);
      }
      .fm-row{ min-width:0; }
      /* 1 · Wordmark lock (tool bars, every width) */
      html.mk-ws .mk-wsbar-t::after,
      html.mk-ws .pz-top-name::after,
      html.mk-ws .sm-top-name::after,
      html.mk-ws .tmf-title h1::after{
        font-family:"Baloo 2","Baloo Da 2",sans-serif; font-weight:800;
        letter-spacing:.03em; text-transform:uppercase; color:#fff;
      }
      @supports ((-webkit-background-clip:text) or (background-clip:text)){
        html.mk-ws .mk-wsbar-t::after,
        html.mk-ws .pz-top-name::after,
        html.mk-ws .sm-top-name::after,
        html.mk-ws .tmf-title h1::after{
          color:transparent; text-shadow:none;
          background:linear-gradient(90deg,#fff 0%,#fff 48.5%,#FFE93D 48.5%,#FFE93D 100%);
          -webkit-background-clip:text; background-clip:text;
          filter:drop-shadow(0 2px 3px rgba(23,61,5,.35));
        }
      }
      /* 2 · The one Back standard (every width) */
      .mk-wsback, .tmf-back,
      .pz-studio .pz-back, html.mk-ws .pz-back,
      .back-home, .post-actions-row .btn-ghost, .mk-backhome{
        background:linear-gradient(135deg,#2E9E33 0%,#14632A 44%,#0A3D20 100%);
        border:1.5px solid rgba(255,217,77,.55);
        color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.3);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -8px 12px -8px rgba(0,0,0,.55), 0 7px 15px -5px rgba(10,40,5,.6), 0 0 12px rgba(255,185,32,.18);
        height:40px; min-height:40px;
      }
      .mk-wsback svg, .tmf-back svg, .pz-back svg, .back-home svg,
      .post-actions-row .btn-ghost svg, .mk-backhome svg{
        color:#fff; filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));
      }
      .mk-wsback:hover, .tmf-back:hover, .pz-back:hover,
      .pz-studio .pz-back:hover, .back-home:hover,
      .post-actions-row .btn-ghost:hover, .mk-backhome:hover{
        color:#fff; border-color:rgba(255,217,77,.8);
        filter:brightness(1.1); text-decoration:none;
      }
      .mk-wsback:active, .tmf-back:active, .pz-back:active,
      .back-home:active{ transform:scale(.96); }
      /* Phone tool bars: the standard as a 40px disc — the
         Story bar's 36px variant is unified to the same 40px. */
      @media (max-width:760px){
        html.mk-ws .mk-wsback, html.mk-ws .tmf-back, html.mk-ws .pz-back,
        .sm-top .mk-wsback{
          width:40px; height:40px; min-height:40px; border-radius:50%;
        }
      }
      @media (prefers-color-scheme: dark){
        .mk-wsback, .tmf-back,
        .pz-studio .pz-back, html.mk-ws .pz-back,
        .back-home, .post-actions-row .btn-ghost, .mk-backhome{
          background:linear-gradient(135deg,#227A28 0%,#0E4D22 48%,#062E16 100%);
          border-color:rgba(255,233,61,.5);
          box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 12px -8px rgba(0,0,0,.6), 0 7px 15px -5px rgba(0,0,0,.65), 0 0 12px rgba(255,217,77,.16);
        }
      }

      /* ==========================================================
         PHONE HEADER: TRUE CENTRE + PM BASELINE + ONE WORDMARK
         (owner, 2026-11-30 01:52 IST, edited comparison image
         header-compare + four spoken points; this block sits
         last in the cascade and overrides every earlier
         phone-header arrangement):
         1. EQUAL GAPS, ONE LEVEL: measured on the previous
            build at 390px — band 80px tall, content top gap
            7px but bottom gap about 16px, because the three
            controls were top-aligned in a flex row while the
            clock line hung under the brand block. The band is
            now an explicit two-row grid: row 1 is the 46px
            level line (menu disc, logo + name, language pill
            — all exactly 46px tall, all tops at the same 9px),
            row 2 is the 17px date-time line. Band padding is
            9px top AND 9px bottom, so the whole content block
            sits at the band's true centre: top gap = bottom
            gap = 9px, exactly as marked.
         2. PM NO LONGER RIDES UP: the base clock style raises
            the AM/PM span with a positive vertical-align, so
            on the small mobile line PM floated above the
            digits and its top clipped. On phones the span now
            sits on the same baseline as the digits, in a
            generous 1.6 line box with visible overflow —
            nothing in the date-time line can clip again.
         3. ONE WORDMARK FONT EVERYWHERE: the name had drifted
            — the header lock named only one face while other
            blocks named a three-face stack, so MAJE KARO could
            render in a different face on desktop and mobile
            (and again in the drawer, footer and tool bars).
            Every wordmark is pinned below, last in the
            cascade, to ONE identical stack, weight and
            spacing at every width.
         Phones only for the band (760px and under): the
         desktop header layout is untouched apart from the
         shared wordmark stack. In the locked tool workspaces
         the site header is display:none on phones, so the
         grid below can never disturb a tool bar.
         ========================================================== */
      .site-head .site-name,
      .drawer-head .t,
      .foot-brand .n,
      .mk-intro-name,
      html.mk-ws .mk-wsbar-t::after,
      html.mk-ws .pz-top-name::after,
      html.mk-ws .sm-top-name::after,
      html.mk-ws .tmf-title h1::after{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        font-weight:800; text-transform:uppercase;
      }
      .site-head .site-name{ letter-spacing:.06em; }
      @media (max-width:760px){
        :root{ --head-h:84px; }
        .site-head .head-inner{
          display:grid;
          grid-template-columns:46px minmax(0,1fr) auto;
          grid-template-rows:46px 17px;
          column-gap:8px; row-gap:3px;
          align-items:center;
          height:auto; padding:9px 10px; gap:3px 8px;
        }
        /* Row 1: the one level line — disc, logo, pill all
           46px tall, all centred on the same axis. */
        .site-head #menuBtn{
          grid-column:1; grid-row:1; align-self:center; justify-self:start;
          flex:none; width:46px; height:46px; min-height:46px; border-radius:50%;
        }
        .site-head #menuBtn .menu-ic{ width:21px; height:21px; }
        .site-head .lang-wrap{
          grid-column:3; grid-row:1; align-self:center; justify-self:end; flex:none;
        }
        .site-head .lang-btn{
          height:46px; min-height:46px; padding:0 12px;
          border-radius:999px; font-size:.82rem; gap:5px; align-items:center;
        }
        .site-head .lang-btn svg{ width:15px; height:15px; }
        /* The brand unit spans both rows in the middle
           column: logo + name on the level line, the
           date-time line directly under the name. Its total
           height (46 + 3 + 17 = 66px) exactly fills the two
           grid rows, so with the band's equal 9px padding
           the block is centred in the band by construction. */
        .site-head .brand-block{
          grid-column:2; grid-row:1 / 3; align-self:center; justify-self:center;
          display:flex; flex-direction:column; align-items:center; gap:3px;
          min-width:0;
        }
        .site-head .brand-block .site-name{
          position:static; transform:none; max-width:none;
          height:46px; flex:none;
          display:flex; align-items:center; justify-content:center;
          font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
          font-size:1rem; line-height:1.1; overflow:visible;
        }
        .site-head .brand-block .site-name a{
          display:inline-flex; align-items:center; gap:6px;
        }
        .site-head .brand-block .brand-logo{
          width:46px; height:46px; border-radius:12px; flex:none;
        }
        .site-head .brand-block .site-name a > span{
          line-height:1.1; white-space:nowrap;
        }
        /* Row 2: the date-time line — plain white text, full
           format, centred on the name, in a line box tall
           enough that no glyph (PM included) can clip. */
        .site-head .brand-block .clock-chip{
          background:none; border:none; box-shadow:none; border-radius:0;
          min-width:0; min-height:0; height:17px; flex:none;
          padding:0; gap:0; overflow:visible;
          display:flex; align-items:center; justify-content:center;
          transform:translateX(26px);
        }
        .site-head .clock-ic{ display:none; }
        .site-head .clock-txt{
          flex-direction:row; align-items:baseline; gap:5px; flex-wrap:nowrap;
          line-height:1.6; overflow:visible;
        }
        .site-head .clock-date{
          color:#fff; font-size:.6rem; font-weight:600; text-transform:none;
          letter-spacing:.01em; min-height:0; white-space:nowrap;
          line-height:1.6; overflow:visible;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
        .site-head .clock-date .cd-full{ display:inline; }
        .site-head .clock-date .cd-short{ display:none; }
        .site-head .clock-wd .cwd-full{ display:inline; }
        .site-head .clock-wd .cwd-short{ display:none; }
        .site-head .clock-time{
          color:#fff; font-size:.62rem; font-weight:700;
          min-width:0; min-height:0; white-space:nowrap;
          line-height:1.6; overflow:visible;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
        /* PM on the digits' own baseline — never raised,
           never clipped. */
        .site-head .clock-time .ap{
          vertical-align:baseline; font-size:.58rem; font-weight:700;
          letter-spacing:.03em; margin-left:3px; line-height:1.6;
        }
      }
      @media (max-width:374px){
        /* Very narrow phones: the same centred construction
           at 42px — band 9 + 42 + 3 + 17 + 9 = 80px. */
        :root{ --head-h:80px; }
        .site-head .head-inner{
          grid-template-columns:42px minmax(0,1fr) auto;
          grid-template-rows:42px 17px;
        }
        .site-head #menuBtn{ width:42px; height:42px; min-height:42px; }
        .site-head #menuBtn .menu-ic{ width:19px; height:19px; }
        .site-head .brand-block .site-name{ height:42px; font-size:.92rem; }
        .site-head .brand-block .brand-logo{ width:42px; height:42px; border-radius:11px; }
        .site-head .lang-btn{ height:42px; min-height:42px; padding:0 10px; font-size:.78rem; }
        .site-head .brand-block .clock-chip{ transform:translateX(24px); }
        .site-head .clock-date{ font-size:.56rem; }
        .site-head .clock-time{ font-size:.58rem; }
      }

      /* ==========================================================
         LOGO SWAP + ONE PALE-GOLD RIM EVERYWHERE (owner,
         2026-11-30): the owner's new MAKA file is now the site's
         only logo (assets/logo.webp and every icon regenerated
         from it), and wherever that logo displays it wears the
         SAME pale-gold rounded rim — the gold the drawer and the
         intro splash already carried (255,217,77). Never a raw
         edge, never a white rim, and no per-place variant: this
         one pass covers the header, the drawer, the footer and
         every maker tool bar, on desktop and mobile alike (no
         media query below splits it). The splash logo already
         wears this exact gold, so it is deliberately untouched.
         ========================================================== */
      .brand-logo{
        border:2px solid rgba(255,217,77,.92);
        box-shadow:0 3px 10px rgba(3,40,26,.35), 0 0 0 1px rgba(255,217,77,.30), 0 0 12px rgba(255,185,32,.22);
      }
      .foot-brand img{
        border:2px solid rgba(255,217,77,.92);
        outline:none;
      }
      html.mk-ws .mk-wsbar-t::before,
      html.mk-ws .pz-top-name::before,
      html.mk-ws .sm-top-name::before,
      html.mk-ws .tmf-title h1::before{
        border-color:rgba(255,217,77,.92);
      }

      /* ==========================================================
         PHONE HEADER: THE SLIM BAND + ONE WORDMARK FONT
         (owner, 2026-11-30 02:14 IST, own edited target laid
         side by side with the current build in
         header-target-vs-current.png; this block sits last in
         the cascade and overrides every earlier phone-header
         arrangement):
         1. SLIM BAND: the date-time line no longer hangs in a
            second row under the disc, logo and pill, stretching
            the menubar. In the target it lives INSIDE the one
            band, in the column beside the logo: MAJE KARO on
            top, the date-time line directly under the name,
            hugging it, left-aligned on the name's own left
            edge, and its foot never drops below the bottom
            line of the disc, logo and pill. The brand block is
            therefore a two-row grid whose logo spans both
            rows: name row + clock row together are exactly
            the one control height, 46px.
         2. THE FOUR EARLIER POINTS STAND: disc, logo and pill
            are all exactly 46px tall on one level line; the
            band padding is 7px above AND 7px below, so the
            top gap equals the bottom gap; the PM span stays
            on the digits' own baseline in a tall line box, so
            nothing in the line can clip. Band total is now
            7 + 46 + 7 = 60px, and --head-h says so, so every
            sticky offset below stays exact.
         3. ONE WORDMARK FONT, MEASURED THE SAME EVERYWHERE:
            the name had still drifted because earlier locks
            named different stacks in different places (one
            block named a single face, others a three-face
            stack, one reversed the first two faces), so the
            fallback chain could pick a different face on
            desktop and on mobile. Below, EVERY carrier of the
            wordmark — site header (name span included),
            drawer head, footer brand, intro splash, the image
            fallback name, and every maker tool bar's brand
            pseudo — is pinned to ONE identical stack, weight
            and spacing. The head of the document also loads
            that one face first, as its own small
            render-blocking stylesheet, and warms the exact
            800 face through the Font Loading API, so the
            wordmark paints in Baloo 2 itself on desktop and
            mobile alike instead of in whichever fallback a
            device happens to offer.
         Phones only for the band (760px and under): the
         desktop header layout is untouched apart from the
         shared wordmark stack. In the locked tool workspaces
         the site header is not displayed on phones, so the
         grid below can never disturb a tool bar.
         ========================================================== */
      /* 3 · The one wordmark stack (every width, every place) */
      .site-head .site-name,
      .site-head .brand-block .site-name a > span,
      .drawer-head .t,
      .foot-brand .n,
      .mk-intro-name,
      .img-fb .fb-name,
      html.mk-ws .mk-wsbar-t::after,
      html.mk-ws .pz-top-name::after,
      html.mk-ws .sm-top-name::after,
      html.mk-ws .tmf-title h1::after{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        font-weight:800; text-transform:uppercase; letter-spacing:.06em;
      }
      .site-head .site-name a{ color:#fff; }
      .site-head .site-name .amp,
      .drawer-head .t .amp{ color:#FFE93D; }
      .foot-brand .n{ color:#fff; }
      .foot-brand .n span{ color:#FFE93D; }
      /* The tool bars' own titles ride the same face and
         weight (their wording and case are their own). */
      .pz-top-name, .sm-top-name, .tmf-title h1, .mk-wsbar-t{
        font-family:"Baloo 2","Baloo Da 2","Poppins",sans-serif;
        font-weight:800;
      }
      /* 1 + 2 · The slim band */
      @media (max-width:760px){
        :root{ --head-h:60px; }
        .site-head .head-inner{
          display:grid;
          grid-template-columns:46px minmax(0,1fr) auto;
          grid-template-rows:46px;
          column-gap:6px; row-gap:0;
          align-items:center;
          height:auto; padding:7px 8px; gap:0 6px;
        }
        /* Row 1 is the only row: disc and pill at 46px,
           centred on the band's one axis. */
        .site-head #menuBtn{
          grid-column:1; grid-row:1; align-self:center; justify-self:start;
          flex:none; width:46px; height:46px; min-height:46px; border-radius:50%;
        }
        .site-head #menuBtn .menu-ic{ width:21px; height:21px; }
        .site-head .lang-wrap{
          grid-column:3; grid-row:1; align-self:center; justify-self:end; flex:none;
        }
        .site-head .lang-btn{
          height:46px; min-height:46px; padding:0 11px;
          border-radius:999px; font-size:.8rem; gap:5px; align-items:center;
        }
        .site-head .lang-btn svg{ width:15px; height:15px; }
        /* The brand unit: logo spanning both inner rows,
           name above, date-time directly under the name —
           the whole unit is 46px tall, the same as the disc,
           the logo and the pill beside it. The site-name and
           its link step aside (display:contents) so the logo,
           the name span and the clock place themselves in
           the unit's grid; the link still wraps them all and
           stays fully clickable. */
        .site-head .brand-block{
          grid-column:2; grid-row:1; align-self:center; justify-self:center;
          display:grid;
          grid-template-columns:auto minmax(0,auto);
          grid-template-areas:"logo name" "logo clock";
          column-gap:6px; row-gap:1px;
          align-items:center; align-content:center;
          height:46px; min-width:0;
        }
        .site-head .brand-block .site-name{ display:contents; }
        .site-head .brand-block .site-name a{ display:contents; }
        .site-head .brand-block .brand-logo{
          grid-area:logo; align-self:center;
          width:46px; height:46px; border-radius:12px; flex:none;
        }
        .site-head .brand-block .site-name a > span{
          grid-area:name; justify-self:start; align-self:end;
          font-size:1rem; line-height:1.12; white-space:nowrap;
        }
        .site-head .brand-block .site-name a:focus-visible > span{
          outline:3px solid rgba(255,255,255,.85); outline-offset:2px; border-radius:6px;
        }
        /* The date-time line: plain white text, the full
           format on one line, left-aligned on the name's
           left edge, inside the band — never a second row,
           never below the controls' bottom line. Its line
           box is tall and its overflow visible, and PM sits
           on the digits' baseline, so no glyph can clip. */
        .site-head .brand-block .clock-chip{
          grid-area:clock; justify-self:start; align-self:start;
          background:none; border:none; box-shadow:none; border-radius:0;
          min-width:0; min-height:0; height:auto; flex:none;
          padding:0; gap:0; overflow:visible; transform:none;
          display:flex; align-items:center; justify-content:flex-start;
        }
        .site-head .clock-ic{ display:none; }
        .site-head .clock-txt{
          flex-direction:row; align-items:center; gap:4px; flex-wrap:nowrap;
          line-height:1.5; overflow:visible;
        }
        .site-head .clock-date{
          color:#fff; font-size:.54rem; font-weight:600; text-transform:none;
          letter-spacing:0; min-height:0; white-space:nowrap;
          line-height:1.5; overflow:visible;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
        .site-head .clock-date .cd-full{ display:inline; }
        .site-head .clock-date .cd-short{ display:none; }
        .site-head .clock-wd .cwd-full{ display:inline; }
        .site-head .clock-wd .cwd-short{ display:none; }
        .site-head .clock-dot{ margin:0 4px; }
        .site-head .clock-sep{ width:11px; height:11px; }
        .site-head .clock-time{
          color:#fff; font-size:.56rem; font-weight:700;
          min-width:0; min-height:0; white-space:nowrap;
          line-height:1.5; overflow:visible;
          text-shadow:0 1px 3px rgba(23,61,5,.4);
        }
        .site-head .clock-time .ap{
          vertical-align:baseline; font-size:.52rem; font-weight:700;
          letter-spacing:.03em; margin-left:3px; line-height:1.5;
        }
      }
      @media (max-width:374px){
        /* Very narrow phones: the same slim construction at
           42px — band 7 + 42 + 7 = 56px — with the short
           weekday so the one white line still never clips;
           the full date stays. */
        :root{ --head-h:56px; }
        .site-head .head-inner{
          grid-template-columns:42px minmax(0,1fr) auto;
          grid-template-rows:42px;
        }
        .site-head #menuBtn{ width:42px; height:42px; min-height:42px; }
        .site-head #menuBtn .menu-ic{ width:19px; height:19px; }
        .site-head .brand-block{ height:42px; }
        .site-head .brand-block .brand-logo{ width:42px; height:42px; border-radius:11px; }
        .site-head .brand-block .site-name a > span{ font-size:.9rem; }
        .site-head .lang-btn{ height:42px; min-height:42px; padding:0 9px; font-size:.76rem; }
        .site-head .clock-wd .cwd-full{ display:none; }
        .site-head .clock-wd .cwd-short{ display:inline; }
        .site-head .clock-date{ font-size:.5rem; }
        .site-head .clock-time{ font-size:.52rem; }
        .site-head .clock-time .ap{ font-size:.48rem; }
      }
