/* MAUZOO interface: WhatsApp-inspired green, light and dark. Pure CSS: no images, no fonts, no scripts. */
:root{
  color-scheme:light dark;
  --brand:#008069;--brand-d:#006b58;--accent:#25d366;
  --bg:#f0f2f5;--card:#fff;--text:#111b21;--muted:#667781;--border:#e1e5e8;--field:#fff;
  --head:#008069;--nav:#fff;--row-hover:#f5f6f6;
  --bubble:#d9fdd3;--chat:#efeae2;
  --danger:#d93025;--danger-bg:#fdecea;--ok:#067647;--ok-bg:#e7f8ee;--info:#175cd3;--info-bg:#e8f1fe;--warn:#b54708;--warn-bg:#fff4e5;
  --shadow:0 1px 2px rgba(11,20,26,.1)
}
@media (prefers-color-scheme:dark){
  :root{
    --brand:#00a884;--brand-d:#008f72;--accent:#25d366;
    --bg:#0b141a;--card:#111b21;--text:#e9edef;--muted:#8696a0;--border:#222d34;--field:#202c33;
    --head:#202c33;--nav:#202c33;--row-hover:#1a252c;
    --bubble:#005c4b;--chat:#0b141a;
    --danger:#f4707f;--danger-bg:#3a1d22;--ok:#58d68d;--ok-bg:#12312a;--info:#7ab3ff;--info-bg:#16283f;--warn:#f5b461;--warn-bg:#3b2a12;
    --shadow:none
  }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--brand)}
h1{font-size:1.4rem;margin:0 0 .5rem}
h2{font-size:1.05rem;margin:1.1rem 0 .5rem}

/* Header */
.top{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;height:3.25rem;padding:0 1rem;background:var(--head);color:#fff}
.brand{color:#fff;font-weight:700;font-size:1.1rem;letter-spacing:.06em;text-decoration:none}
.link{background:none;border:0;color:#fff;font-size:.95rem;cursor:pointer;text-decoration:underline;padding:0}
.inline{display:inline;margin:0}

/* Layout */
.wrap{max-width:46rem;margin:0 auto;padding:1rem}
.card{background:var(--card);border:1px solid var(--border);border-radius:.9rem;padding:1.1rem;box-shadow:var(--shadow)}
.card+.card{margin-top:1rem}
.narrow{max-width:26rem;margin:1rem auto}
.center{text-align:center}
.muted{color:var(--muted)}
.head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}
.scroll{overflow-x:auto}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Forms */
label{display:block;margin:.9rem 0 .25rem;font-weight:600;font-size:.92rem}
input,textarea,select{width:100%;padding:.7rem .8rem;font:inherit;color:var(--text);background:var(--field);border:1px solid var(--border);border-radius:.6rem}
input:focus,textarea:focus,select:focus{outline:2px solid var(--brand);outline-offset:1px}
.check{display:flex;align-items:center;gap:.5rem;font-weight:600}
.check input{width:auto}
.field-err{color:var(--danger);font-size:.85rem;margin-top:.25rem}
.search{display:flex;gap:.5rem;margin:.75rem 0}
.search input{flex:1}

/* Buttons */
.btn{display:block;width:100%;margin-top:1.1rem;padding:.8rem 1rem;font-size:1rem;font-weight:600;text-align:center;text-decoration:none;color:#fff;background:var(--brand);border:0;border-radius:2rem;cursor:pointer}
.btn:hover{background:var(--brand-d)}
.btn.danger,.btn-sm.danger{background:var(--danger)}
.btn-sm{display:inline-block;padding:.45rem .9rem;font-size:.9rem;font-weight:600;text-decoration:none;color:#fff;background:var(--brand);border:0;border-radius:2rem;cursor:pointer;margin:.15rem 0}
.btn-sm.alt{background:transparent;color:var(--brand);border:1px solid var(--brand)}
.fab{position:fixed;right:1rem;bottom:calc(5rem + env(safe-area-inset-bottom,0px));z-index:25;display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;border-radius:1rem;background:var(--accent);color:#fff;box-shadow:0 3px 8px rgba(0,0,0,.3);text-decoration:none}
.fab svg{width:1.6rem;height:1.6rem}

/* Alerts and badges */
.alert{padding:.75rem 1rem;border-radius:.6rem;margin:1rem 0;font-size:.95rem}
.alert.err{background:var(--danger-bg);color:var(--danger)}
.alert.ok{background:var(--ok-bg);color:var(--ok)}
.alert.info{background:var(--info-bg);color:var(--info)}
.alert.block{display:block;text-decoration:none}
.badge{align-self:flex-start;display:inline-block;padding:.1rem .55rem;border-radius:1rem;font-size:.75rem;font-weight:600;background:var(--info-bg);color:var(--info)}
.badge.won,.badge.consent-granted{background:var(--ok-bg);color:var(--ok)}
.badge.lost,.badge.consent-revoked{background:var(--danger-bg);color:var(--danger)}
.badge.consent-unknown{background:var(--border);color:var(--muted)}
.badge.pass{background:var(--ok-bg);color:var(--ok)}
.badge.fail{background:var(--danger-bg);color:var(--danger)}
.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.info{background:var(--info-bg);color:var(--info)}

/* Lists (chat-list look) */
.item,.chat-row{display:flex;flex-direction:column;gap:.15rem;padding:.8rem 1rem;margin:.5rem 0;background:var(--card);border:1px solid var(--border);border-radius:.8rem;text-decoration:none;color:var(--text)}
a.item:hover,a.chat-row:hover{background:var(--row-hover)}
.item input{margin:.25rem 0}
.item form{margin-top:.5rem}
.item form input{margin-bottom:.4rem}
.chat-row{flex-direction:row;align-items:center;gap:.8rem}
.chat-row .body{display:flex;flex-direction:column;min-width:0;flex:1}
.chat-row .body>*{overflow-wrap:anywhere}
.chat-row .body a{text-decoration:none;color:var(--text)}
.chat-row .badge{align-self:center}
.avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;width:2.8rem;height:2.8rem;border-radius:50%;font-weight:700;color:#fff;font-size:1rem}
.avatar.c1{background:#00a884}.avatar.c2{background:#53bdeb}.avatar.c3{background:#e8a317}
.avatar.c4{background:#ef6c85}.avatar.c5{background:#8c7ae6}.avatar.c6{background:#f07b4f}
.profile{display:flex;align-items:center;gap:.8rem;margin-bottom:.5rem}
.profile h1{margin:0}
.row{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.6rem 0;border-top:1px solid var(--border)}
.pager{display:flex;justify-content:space-between;align-items:center;margin:1rem 0}

/* Notes as chat bubbles */
.chat{display:flex;flex-direction:column;gap:.45rem;margin-top:.75rem;padding:.75rem;background:var(--chat);border-radius:.8rem}
.chat:empty{display:none}
.bubble{align-self:flex-end;max-width:92%;padding:.45rem .7rem .3rem;background:var(--bubble);color:var(--text);border-radius:.7rem .7rem .15rem .7rem;box-shadow:0 1px 1px rgba(0,0,0,.12);overflow-wrap:anywhere}
.bubble .time{display:block;text-align:right;font-size:.7rem;color:var(--muted)}

/* Dashboard cards */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin:1rem 0}
.stat,a.stat{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:.9rem;padding:1rem;text-decoration:none;color:inherit;box-shadow:var(--shadow)}
.stat .num{font-size:1.75rem;font-weight:700}
.stat .num.money{font-size:1.2rem;word-break:break-word}
.stat .lbl{color:var(--muted);font-size:.9rem}
.hero{display:flex;flex-direction:column;gap:.25rem;margin:.75rem 0;padding:1.25rem;border-radius:1rem;color:#fff;background:linear-gradient(135deg,#008069,#00a884)}
.hero-lbl{font-size:.9rem;opacity:.9}
.hero-num{font-size:2rem;font-weight:800;line-height:1.15;word-break:break-word}
.hero-sub{font-size:.85rem;opacity:.95}

/* Pipeline stage cards, filters */
.stage-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem;margin:.75rem 0}
.stage-card{display:flex;flex-direction:column;padding:.7rem .85rem;border:1px solid var(--border);border-radius:.9rem;background:var(--card);text-decoration:none;color:var(--text)}
.stage-card .num{font-size:1.5rem;font-weight:700;line-height:1.1}
.stage-card .lbl{font-size:.85rem;color:var(--muted)}
.stage-card.active{border-color:var(--brand);box-shadow:inset 0 0 0 2px var(--brand)}
.stage-card.won .num{color:var(--ok)}
.stage-card.lost .num{color:var(--danger)}
.segmented{display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem;margin:.75rem 0}
.segmented a{padding:.6rem .5rem;text-align:center;border:1px solid var(--border);border-radius:2rem;text-decoration:none;color:var(--text);background:var(--card);font-weight:600;font-size:.9rem}
.segmented a.active{background:var(--brand);border-color:var(--brand);color:#fff}

/* Usage, plans */
.usage{margin:.6rem 0}
.usage-head{display:flex;justify-content:space-between;gap:.5rem;font-size:.95rem}
progress{width:100%;height:.6rem;margin-top:.25rem;accent-color:var(--brand)}
.plan .price{font-size:1.4rem;font-weight:700;margin:.25rem 0}
.plan-limits{margin:.5rem 0;padding-left:1.2rem;color:var(--muted);font-size:.9rem}

/* Bottom navigation (phones) and sidebar (wide screens) */
.nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);background:var(--nav);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom,0)}
.nav a{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.5rem .25rem;font-size:.72rem;font-weight:600;color:var(--muted);text-decoration:none}
.nav a.active{color:var(--brand)}
.nav svg{width:1.45rem;height:1.45rem}
body.has-nav .wrap{padding-bottom:5.5rem}
@media (min-width:900px){
  .nav{top:3.25rem;right:auto;bottom:0;width:13rem;grid-template-columns:1fr;grid-auto-rows:min-content;border-top:0;border-right:1px solid var(--border);padding:.5rem}
  .nav a{flex-direction:row;gap:.7rem;padding:.7rem .8rem;font-size:.95rem;border-radius:.5rem}
  .nav a.active{background:var(--row-hover)}
  .nav svg{width:1.25rem;height:1.25rem}
  body.has-nav .wrap{margin-left:13rem;margin-right:auto;max-width:46rem;padding-bottom:1rem}
  .fab{right:1.5rem;bottom:1.5rem}
}

/* WhatsApp conversation */
.bubble.in{align-self:flex-start;background:var(--card);border-radius:.7rem .7rem .7rem .15rem}
.badge.reply{background:var(--brand);color:#fff}

/* Chats (Phase 2) */
@media (max-width:899.98px){.nav.six{grid-template-columns:repeat(6,1fr)}.nav.six a{font-size:.64rem;padding:.5rem .1rem}}
.nav a{position:relative}
.nav-badge{position:absolute;top:.2rem;left:calc(50% + .35rem);min-width:1.1rem;height:1.1rem;padding:0 .3rem;border-radius:.6rem;background:var(--accent);color:#fff;font-size:.65rem;line-height:1.1rem;text-align:center}
.nav-badge[hidden]{display:none}
@media (min-width:900px){.nav-badge{position:static;margin-left:auto}}
.chat-search{margin:.25rem 0 .6rem}
.chat-row .line1,.chat-row .line2{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.chat-row .prev{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;flex:1}
.chat-row .when{font-size:.75rem;color:var(--muted);flex:none}
.chat-row .when.new{color:var(--accent);font-weight:700}
.unread-pill{flex:none;min-width:1.4rem;padding:0 .4rem;border-radius:.8rem;background:var(--accent);color:#fff;font-size:.75rem;font-weight:700;text-align:center;line-height:1.4rem}
.chat-head{display:flex;align-items:center;gap:.6rem;padding:.5rem .6rem;margin:0 0 .6rem;background:var(--card);border:1px solid var(--border);border-radius:.8rem;position:sticky;top:3.4rem;z-index:10}
.chat-head .back{font-size:1.4rem;text-decoration:none;padding:0 .3rem}
.chat-head .who{display:flex;flex-direction:column;min-width:0;flex:1;overflow-wrap:anywhere}
.chat-screen{display:flex;flex-direction:column;gap:.3rem;padding:.7rem;background:var(--chat);border-radius:.8rem;min-height:40vh}
.day-sep{align-self:center;margin:.4rem 0}
.day-sep span{padding:.15rem .7rem;border-radius:.6rem;background:var(--card);color:var(--muted);font-size:.75rem;box-shadow:0 1px 1px rgba(0,0,0,.1)}
.tick{font-size:.75rem;color:var(--muted);letter-spacing:-.15em}
.tick.read{color:#53bdeb}.tick.fail{color:#d93025;font-weight:700}
.composer{position:sticky;bottom:calc(3.9rem + env(safe-area-inset-bottom,0px));margin-top:.6rem;padding:.4rem 0;background:var(--bg)}
.composer form{display:flex;align-items:flex-end;gap:.5rem}
.composer textarea{resize:none;border-radius:1.2rem;max-height:140px}
.composer .send{flex:none;width:2.8rem;height:2.8rem;border:0;border-radius:50%;background:var(--brand);color:#fff;font-size:1.2rem;cursor:pointer}
@media (min-width:900px){.composer{bottom:0}}
.chat-page{min-width:0}

/* Top-right menu (opens like WhatsApp's three-dot menu) and a 4-tab bottom bar */
@media (max-width:899.98px){.nav.n4{grid-template-columns:repeat(4,1fr)}.nav.n3{grid-template-columns:repeat(3,1fr)}}
.menu{position:relative}
.menu-btn{text-decoration:none;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;margin-right:-.6rem;border-radius:50%;cursor:pointer;list-style:none;color:#fff;-webkit-tap-highlight-color:transparent}
.menu-btn svg{width:1.5rem;height:1.5rem}
.menu.open .menu-btn,.menu-btn:active{background:rgba(255,255,255,.18)}
.menu.open::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:29}
.menu-panel{position:absolute;right:-.35rem;top:calc(100% + .35rem);z-index:30;width:min(17rem,calc(100vw - 1.5rem));max-height:calc(100vh - 5.5rem);max-height:calc(100dvh - 5.5rem);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:.35rem 0;background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:.8rem;box-shadow:0 8px 28px rgba(0,0,0,.25)}
.menu-who{display:flex;flex-direction:column;padding:.55rem 1rem .6rem;border-bottom:1px solid var(--border);line-height:1.25}
.menu-who span{font-size:.8rem;color:var(--muted)}
.menu-sep{padding:.65rem 1rem .15rem;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.menu-item{display:block;width:100%;padding:.7rem 1rem;color:var(--text);text-decoration:none;font:inherit;font-size:.95rem;text-align:left;background:none;border:0;cursor:pointer}
.menu-item:hover,.menu-item:active{background:var(--bg)}
.menu-item.active{color:var(--brand);font-weight:600}
.menu-item.out{margin-top:.25rem;border-top:1px solid var(--border);color:#d93025}
.menu-logout{margin:0}
.top{z-index:40}
.menu-logout{position:sticky;bottom:0;background:var(--card);padding-top:.1rem}
@media (min-width:900px){.menu-panel{max-height:calc(100vh - 5rem)}}

/* Files customers send */
.bubble img,.bubble video{display:block;max-width:100%;max-height:60vh;border-radius:.5rem}
.bubble audio{display:block;width:min(16rem,100%);height:2.4rem}
.bubble .file{display:inline-block;padding:.2rem 0;color:var(--brand);font-weight:600;overflow-wrap:anywhere}

/* ===== Dashboard, bubbles, folders (design system) =====
   Spacing scale: .25 / .5 / .75 / 1 / 1.25rem. Cards radius .9rem. One accent (brand green). Numbers are the loudest thing. */
.dash{display:flex;flex-direction:column;gap:.9rem}
.dash-head h1{margin:0}
.dash-head p{margin:.1rem 0 0}
.dash .hero{margin:0;gap:.3rem;padding:1.15rem 1.25rem}
.hero-label{font-size:.85rem;opacity:.9;letter-spacing:.02em}
.hero-amount{font-size:2rem;font-weight:800;line-height:1.1;word-break:break-word}
.hero-amount small{font-size:.9rem;font-weight:600;opacity:.85;margin-right:.2rem}
.hero-delta{font-size:.85rem;opacity:.95}
.hero-delta.up{color:#b7f5cf}
.hero-delta.down{color:#ffd0d0}
.dash .progress{height:.55rem;margin-top:.55rem;border-radius:1rem;background:rgba(255,255,255,.28);overflow:hidden}
.progress>span,.bar-track>span{display:block;height:100%;border-radius:inherit;background:#fff}
.bar-track>span{background:var(--brand)}
.hero-goal{display:flex;justify-content:space-between;font-size:.85rem;opacity:.95}
.hero-note{font-size:.8rem;opacity:.9}
.hero-link{align-self:flex-start;margin-top:.45rem;padding:.3rem .8rem;border-radius:2rem;background:rgba(255,255,255,.18);color:#fff;font-size:.85rem;font-weight:600;text-decoration:none}
.panel{padding:.9rem 1rem;background:var(--card);border:1px solid var(--border);border-radius:.9rem;box-shadow:var(--shadow)}
.panel h2{margin:0 0 .5rem;font-size:.95rem;color:var(--muted);font-weight:600;letter-spacing:.02em}
.panel p{margin:.15rem 0 .5rem}
.panel.flush{padding:0;overflow:hidden}
.list-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem 0;color:var(--text);text-decoration:none;border-top:1px solid var(--border)}
.list-row:first-of-type{border-top:0}
.panel.flush .list-row{padding:.8rem 1rem}
.panel.flush .list-row:active{background:var(--row-hover)}
.count-pill{min-width:1.6rem;padding:.05rem .5rem;border-radius:1rem;background:var(--accent);color:#06251a;font-size:.8rem;font-weight:700;text-align:center}
.count-pill.soft{background:var(--row-hover);color:var(--muted)}
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.kpi{display:flex;flex-direction:column;gap:.1rem;padding:.85rem 1rem;background:var(--card);border:1px solid var(--border);border-radius:.9rem;text-decoration:none;color:var(--text);box-shadow:var(--shadow)}
.kpi-num{font-size:1.5rem;font-weight:700;line-height:1.15}
.kpi-lbl{font-size:.8rem;color:var(--muted)}
.bar-row{display:grid;grid-template-columns:minmax(4rem,30%) 1fr auto;align-items:center;gap:.6rem;padding:.25rem 0}
.bar-name{font-size:.85rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bar-track{height:.55rem;border-radius:1rem;background:var(--row-hover);overflow:hidden}
.bar-val{font-size:.85rem;font-weight:600;min-width:1.5rem;text-align:right}
.columns{display:grid;grid-template-columns:repeat(6,1fr);gap:.4rem;align-items:end}
.column{display:flex;flex-direction:column;align-items:center;gap:.2rem;min-width:0}
.column-val{font-size:.7rem;color:var(--muted);min-height:1rem;white-space:nowrap}
.column-bar{display:flex;align-items:flex-end;width:100%;height:6rem;border-radius:.4rem .4rem 0 0}
.column-bar>span{display:block;width:100%;border-radius:.4rem .4rem 0 0;background:var(--brand)}
.column:last-child .column-bar>span{background:var(--accent)}
.column-lbl{font-size:.75rem;color:var(--muted)}
.dash-actions{display:flex;flex-wrap:wrap;gap:.5rem;padding-bottom:.5rem}
.back-link{text-decoration:none;font-size:.9rem}

/* notification bubbles: one per feature, shown on the feature itself */
.menu-count{margin-left:auto;min-width:1.35rem;padding:0 .4rem;border-radius:1rem;background:var(--accent);color:#06251a;font-size:.75rem;font-weight:700;line-height:1.35rem;text-align:center}
.menu-count[hidden]{display:none}
.menu-item{display:flex;align-items:center;gap:.5rem}
.menu-item.out{display:block}
.menu-btn{position:relative}
.menu-dot{position:absolute;top:.55rem;right:.55rem;width:.7rem;height:.7rem;border-radius:50%;background:var(--accent);border:2px solid var(--head)}
.menu-dot[hidden]{display:none}

/* template folders and the "Templates" button */
.folder{gap:.75rem}
.folder-icon{font-size:1.3rem}
.folder-name{flex:1;font-weight:600}
.tpl-row{align-items:flex-start}
.tpl-main{display:flex;flex-direction:column;min-width:0;flex:1}
.tpl-prev{font-size:.85rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tpl-btn{flex:none;display:flex;align-items:center;justify-content:center;width:2.8rem;height:2.8rem;border:0;border-radius:50%;background:var(--row-hover);color:var(--muted);cursor:pointer}
.tpl-panel{position:absolute;left:0;right:0;bottom:calc(100% + .4rem);z-index:25;max-height:55vh;overflow-y:auto;overscroll-behavior:contain;background:var(--card);border:1px solid var(--border);border-radius:.9rem;box-shadow:0 8px 28px rgba(0,0,0,.22)}
.tpl-head{position:sticky;top:0;display:flex;align-items:center;gap:.5rem;padding:.6rem 1rem;background:var(--card);border-bottom:1px solid var(--border)}
.tpl-back{border:0;background:none;color:var(--brand);font-size:1.2rem;cursor:pointer;padding:0 .3rem}
.tpl-item{display:flex;flex-direction:column;align-items:flex-start;gap:.1rem;width:100%;padding:.75rem 1rem;border:0;border-top:1px solid var(--border);background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.tpl-item:first-child{border-top:0}
.tpl-item:active{background:var(--row-hover)}
.tpl-item .muted{font-size:.85rem}
.tpl-empty{padding:.8rem 1rem}
.composer-row{display:flex;align-items:flex-start;gap:.5rem}
.composer-row textarea{flex:1}
.composer-row .tpl{position:relative}
.composer-row .tpl-panel{right:auto;width:min(20rem,calc(100vw - 3rem));top:calc(100% + .3rem);bottom:auto}
.pw-0{width:0%}.pw-1{width:1%}.pw-2{width:2%}.pw-3{width:3%}.pw-4{width:4%}.pw-5{width:5%}.pw-6{width:6%}.pw-7{width:7%}.pw-8{width:8%}.pw-9{width:9%}.pw-10{width:10%}.pw-11{width:11%}.pw-12{width:12%}.pw-13{width:13%}.pw-14{width:14%}.pw-15{width:15%}.pw-16{width:16%}.pw-17{width:17%}.pw-18{width:18%}.pw-19{width:19%}.pw-20{width:20%}.pw-21{width:21%}.pw-22{width:22%}.pw-23{width:23%}.pw-24{width:24%}.pw-25{width:25%}.pw-26{width:26%}.pw-27{width:27%}.pw-28{width:28%}.pw-29{width:29%}.pw-30{width:30%}.pw-31{width:31%}.pw-32{width:32%}.pw-33{width:33%}.pw-34{width:34%}.pw-35{width:35%}.pw-36{width:36%}.pw-37{width:37%}.pw-38{width:38%}.pw-39{width:39%}.pw-40{width:40%}.pw-41{width:41%}.pw-42{width:42%}.pw-43{width:43%}.pw-44{width:44%}.pw-45{width:45%}.pw-46{width:46%}.pw-47{width:47%}.pw-48{width:48%}.pw-49{width:49%}.pw-50{width:50%}.pw-51{width:51%}.pw-52{width:52%}.pw-53{width:53%}.pw-54{width:54%}.pw-55{width:55%}.pw-56{width:56%}.pw-57{width:57%}.pw-58{width:58%}.pw-59{width:59%}.pw-60{width:60%}.pw-61{width:61%}.pw-62{width:62%}.pw-63{width:63%}.pw-64{width:64%}.pw-65{width:65%}.pw-66{width:66%}.pw-67{width:67%}.pw-68{width:68%}.pw-69{width:69%}.pw-70{width:70%}.pw-71{width:71%}.pw-72{width:72%}.pw-73{width:73%}.pw-74{width:74%}.pw-75{width:75%}.pw-76{width:76%}.pw-77{width:77%}.pw-78{width:78%}.pw-79{width:79%}.pw-80{width:80%}.pw-81{width:81%}.pw-82{width:82%}.pw-83{width:83%}.pw-84{width:84%}.pw-85{width:85%}.pw-86{width:86%}.pw-87{width:87%}.pw-88{width:88%}.pw-89{width:89%}.pw-90{width:90%}.pw-91{width:91%}.pw-92{width:92%}.pw-93{width:93%}.pw-94{width:94%}.pw-95{width:95%}.pw-96{width:96%}.pw-97{width:97%}.pw-98{width:98%}.pw-99{width:99%}.pw-100{width:100%}
.ph-0{height:0%}.ph-1{height:1%}.ph-2{height:2%}.ph-3{height:3%}.ph-4{height:4%}.ph-5{height:5%}.ph-6{height:6%}.ph-7{height:7%}.ph-8{height:8%}.ph-9{height:9%}.ph-10{height:10%}.ph-11{height:11%}.ph-12{height:12%}.ph-13{height:13%}.ph-14{height:14%}.ph-15{height:15%}.ph-16{height:16%}.ph-17{height:17%}.ph-18{height:18%}.ph-19{height:19%}.ph-20{height:20%}.ph-21{height:21%}.ph-22{height:22%}.ph-23{height:23%}.ph-24{height:24%}.ph-25{height:25%}.ph-26{height:26%}.ph-27{height:27%}.ph-28{height:28%}.ph-29{height:29%}.ph-30{height:30%}.ph-31{height:31%}.ph-32{height:32%}.ph-33{height:33%}.ph-34{height:34%}.ph-35{height:35%}.ph-36{height:36%}.ph-37{height:37%}.ph-38{height:38%}.ph-39{height:39%}.ph-40{height:40%}.ph-41{height:41%}.ph-42{height:42%}.ph-43{height:43%}.ph-44{height:44%}.ph-45{height:45%}.ph-46{height:46%}.ph-47{height:47%}.ph-48{height:48%}.ph-49{height:49%}.ph-50{height:50%}.ph-51{height:51%}.ph-52{height:52%}.ph-53{height:53%}.ph-54{height:54%}.ph-55{height:55%}.ph-56{height:56%}.ph-57{height:57%}.ph-58{height:58%}.ph-59{height:59%}.ph-60{height:60%}.ph-61{height:61%}.ph-62{height:62%}.ph-63{height:63%}.ph-64{height:64%}.ph-65{height:65%}.ph-66{height:66%}.ph-67{height:67%}.ph-68{height:68%}.ph-69{height:69%}.ph-70{height:70%}.ph-71{height:71%}.ph-72{height:72%}.ph-73{height:73%}.ph-74{height:74%}.ph-75{height:75%}.ph-76{height:76%}.ph-77{height:77%}.ph-78{height:78%}.ph-79{height:79%}.ph-80{height:80%}.ph-81{height:81%}.ph-82{height:82%}.ph-83{height:83%}.ph-84{height:84%}.ph-85{height:85%}.ph-86{height:86%}.ph-87{height:87%}.ph-88{height:88%}.ph-89{height:89%}.ph-90{height:90%}.ph-91{height:91%}.ph-92{height:92%}.ph-93{height:93%}.ph-94{height:94%}.ph-95{height:95%}.ph-96{height:96%}.ph-97{height:97%}.ph-98{height:98%}.ph-99{height:99%}.ph-100{height:100%}
.tpl-list{display:block}

/* Customer journey, payments, timeline */
.journey{display:flex;overflow-x:auto;padding:.4rem 0 .7rem;margin:.2rem -.25rem 0;scrollbar-width:none}
.journey::-webkit-scrollbar{display:none}
.step{position:relative;flex:1 0 4.6rem;min-width:4.6rem;display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:0 .15rem;text-align:center}
.step::before{content:"";position:absolute;top:.85rem;left:-50%;width:100%;height:2px;background:var(--border);z-index:0}
.step:first-child::before{display:none}
.step.done::before,.step.current::before{background:var(--brand)}
.step-dot{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;border-radius:50%;background:var(--card);border:2px solid var(--border);color:var(--muted);font-size:.8rem;font-weight:700}
.step.done .step-dot{background:var(--brand);border-color:var(--brand);color:#fff}
.step.current .step-dot{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 3px rgba(0,128,108,.2)}
.step-name{font-size:.72rem;line-height:1.15;color:var(--muted)}
.step.current .step-name{color:var(--text);font-weight:700}
.next-card{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .75rem;margin:.3rem 0 .9rem;padding:.8rem 1rem;border-radius:.9rem}
.next-card.act{background:var(--brand);color:#fff}
.next-card.calm{background:var(--row-hover);color:var(--text)}
.next-kicker{flex-basis:100%;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;opacity:.85}
.next-title{flex:1;font-size:1rem;line-height:1.3}
.next-card.act .btn-sm{background:#fff;color:var(--brand)}
.pay-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.6rem}
.pay-summary div{display:flex;flex-direction:column;gap:.1rem;font-size:.9rem}
.pay-summary .muted{font-size:.75rem}
.paid{color:var(--brand)}
.timeline{margin:0;padding:0;list-style:none}
.tl-item{display:flex;gap:.7rem;padding:.55rem 0;border-top:1px solid var(--border)}
.tl-item:first-child{border-top:0}
.tl-dot{flex:none;display:flex;align-items:center;justify-content:center;width:1.8rem;height:1.8rem;border-radius:50%;background:var(--row-hover);font-size:.9rem}
.tl-body{display:flex;flex-direction:column;min-width:0}
.tl-text{overflow-wrap:anywhere}
.tl-time{font-size:.75rem}
.retry{display:inline;margin-left:.4rem}
.quick{border:1px solid var(--brand)}
.won-row .bar-track>span{background:var(--accent)}
.done,.current,.todo,.calm,.act{--journey-state:1}

/* Getting started guide */
.guide-card{border-left:4px solid var(--brand)}
.guide-card .bar-row{grid-template-columns:1fr auto}
.bar-track.wide{display:block}
.guide-step{display:flex;align-items:center;gap:.75rem;padding:.7rem 0;border-top:1px solid var(--border)}
.guide-dot{flex:none;display:flex;align-items:center;justify-content:center;width:1.8rem;height:1.8rem;border-radius:50%;border:2px solid var(--border);color:var(--muted);font-size:.85rem;font-weight:700}
.guide-step.finished .guide-dot{background:var(--brand);border-color:var(--brand);color:#fff}
.guide-step.finished .guide-text strong{color:var(--muted);text-decoration:line-through}
.guide-text{flex:1;display:flex;flex-direction:column;min-width:0;gap:.1rem}
.guide-text .muted{font-size:.85rem}
.section-title{margin:1.2rem 0 .5rem;font-size:1rem}
.features{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem;margin-bottom:1rem}
.feature{display:flex;flex-direction:column;gap:.15rem;padding:.8rem;background:var(--card);border:1px solid var(--border);border-radius:.9rem;text-decoration:none;color:var(--text);box-shadow:var(--shadow)}
.feature-icon{font-size:1.4rem}
.feature .muted{font-size:.8rem;line-height:1.3}
.finished{--state:done}

/* AI assistant */
.ai-bar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.2rem 0 .4rem}
.ai-out{margin:.6rem 0 0;padding:.7rem .9rem;border-radius:.7rem;background:var(--row-hover);white-space:pre-line}
.ai-out[hidden]{display:none}

.provider{display:flex;flex-direction:column;gap:.3rem;cursor:pointer}
.provider-head{display:flex;align-items:center;gap:.5rem}
.provider-head input{width:auto}

.menu-item[hidden]{display:none}

/* Follow-up messages */
.fu-fields{display:flex;flex-direction:column;gap:.35rem;margin:.4rem 0}
.fu-saved{max-width:100%}
.fu-message{min-height:5rem}
.fu-ai{align-self:flex-start}
.fu-msg{display:block;margin-top:.3rem;padding:.4rem .6rem;border-radius:.6rem;background:var(--row-hover);font-size:.9rem;overflow-wrap:anywhere}

.verify-code{margin:.5rem 0;padding:.8rem 1rem;border-radius:.8rem;background:var(--row-hover);font-size:1.3rem;font-weight:800;letter-spacing:.06em;text-align:center}

/* MAUZOO templates v2 (start) */
/* MAUZOO: WhatsApp Templates (Hai design). Uses the app's colour tokens, so light and dark both work.
   Phone: one column, bottom-menu friendly. Desktop (900px+): wide page, 2 to 3 card columns. */
.wt{padding-bottom:4.5rem}
.wt-hero{margin:0 0 1rem;padding:1rem 1rem 1.05rem;border-radius:1.4rem;background:linear-gradient(160deg,#00453a 0%,#007a64 55%,#14b88a 100%);color:#fff}
.wt-hero-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.9rem}
.wt-hero h1{margin:0;font-size:1.55rem;line-height:1.15;color:#fff}
.wt-sub{margin:.3rem 0 0;color:rgba(255,255,255,.9);font-size:.95rem}
.wt-hero-actions{display:flex;flex-wrap:wrap;gap:.6rem;width:100%}
.wt-hero-actions form{margin:0}
.wt-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.75rem;padding:0 1.2rem;border-radius:1.5rem;border:1.5px solid rgba(255,255,255,.8);font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.wt-btn.ghost{background:rgba(255,255,255,.12);color:#fff}
.wt-btn.solid{background:#fff;border-color:#fff;color:#00604f}
.wt-btn:focus-visible,.wt-fab:focus-visible{outline:3px solid #fff;outline-offset:2px}
.wt-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:1rem}
.wt-stat{padding:.5rem .15rem;text-align:center;border-radius:1rem;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24)}
.wt-stat b{display:block;font-size:1.35rem;line-height:1.05}
.wt-stat span{display:block;margin-top:.15rem;font-size:.66rem;font-weight:600;line-height:1.2;opacity:.95}

.wt-how{margin:0 0 1rem;background:var(--card);border:1px solid var(--border);border-radius:1rem;box-shadow:var(--shadow)}
.wt-how summary{display:flex;align-items:center;justify-content:space-between;min-height:3rem;padding:0 1rem;font-weight:600;cursor:pointer;list-style:none}
.wt-how summary::-webkit-details-marker{display:none}
.wt-how summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--brand)}
.wt-how[open] summary::after{content:"\2013"}
.wt-how summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:1rem}
.wt-how-body{padding:0 1rem 1rem;color:var(--muted);font-size:.93rem}
.wt-how-body p{margin:.5rem 0 0}
.wt-steps{counter-reset:s;list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.wt-steps li{counter-increment:s;display:flex;align-items:center;gap:.65rem;color:var(--text);font-weight:600}
.wt-steps li::before{content:counter(s);flex:none;display:inline-flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;border-radius:50%;background:var(--ok-bg);color:var(--ok);font-size:.85rem;font-weight:700}

.wt-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin:0 0 1rem;padding:.9rem 1rem;background:var(--warn-bg);color:var(--warn);border-radius:1rem}
.wt-notice p{margin:0;font-weight:600;flex:1 1 12rem}

.wt-empty{text-align:center;margin:0 0 1rem;padding:2rem 1.25rem;background:var(--card);border:1.5px dashed var(--border);border-radius:1.2rem}
.wt-empty-ic{display:flex;align-items:center;justify-content:center;width:4.25rem;height:4.25rem;margin:0 auto .75rem;border-radius:50%;background:var(--ok-bg);color:var(--ok)}
.wt-empty h2{margin:.2rem 0 .35rem;font-size:1.2rem}
.wt-empty p{margin:0 auto 1rem;max-width:22rem;color:var(--muted)}
.wt-empty .btn{display:inline-block;width:auto;margin-top:0;padding:.8rem 1.5rem}

.wt-filter[hidden],.wt-none[hidden],.wt-toggle[hidden],.wt-tools[hidden],.wt-preview[hidden],.wt-card[hidden]{display:none}
.wt-search input{width:100%;min-height:2.9rem;margin:0;border-radius:.9rem}
.wt-tabs{display:flex;gap:.4rem;overflow-x:auto;margin:.6rem -1rem .8rem;padding:0 1rem .2rem;scrollbar-width:none}
.wt-tabs::-webkit-scrollbar{display:none}
.wt-tab{flex:none;display:inline-flex;align-items:center;gap:.4rem;min-height:2.75rem;padding:0 .95rem;border:1.5px solid var(--border);border-radius:1.4rem;background:var(--card);color:var(--text);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer}
.wt-tab b{padding:0 .45rem;border-radius:.6rem;background:var(--bg);color:var(--muted);font-size:.75rem}
.wt-tab.is-on{background:var(--brand);border-color:var(--brand);color:#fff}
.wt-tab.is-on b{background:rgba(255,255,255,.25);color:#fff}
.wt-tab:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.wt-none{margin:1rem 0;text-align:center;color:var(--muted)}

.wt-list{display:grid;gap:.85rem}
.wt-card{position:relative;overflow:hidden;padding:.95rem 1rem .95rem 1.25rem;background:var(--card);border:1px solid var(--border);border-radius:1.1rem;box-shadow:var(--shadow)}
.wt-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:.4rem;background:var(--ok)}
.wt-card.is-wait::before{background:var(--warn)}
.wt-card.is-bad::before{background:var(--danger)}
.wt-card.is-draft::before{background:var(--info)}
.wt-top{display:flex;align-items:flex-start;gap:.5rem}
.wt-id{flex:1;min-width:0}
.wt-name{margin:0;font-size:1.02rem;overflow-wrap:anywhere}
.wt-badge{display:inline-block;margin-left:.45rem;padding:.1rem .5rem;border-radius:.5rem;background:var(--info-bg);color:var(--info);font-size:.68rem;font-weight:800;vertical-align:middle}
.wt-meta{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}
.wt-chip{padding:.1rem .6rem;border-radius:.5rem;background:var(--bg);color:var(--muted);font-size:.75rem;font-weight:600}
.wt-chip.q-green{background:var(--ok-bg);color:var(--ok)}
.wt-chip.q-yellow{background:var(--warn-bg);color:var(--warn)}
.wt-chip.q-red{background:var(--danger-bg);color:var(--danger)}
.wt-status{flex:none;display:inline-flex;align-items:center;gap:.3rem;padding:.25rem .65rem;border-radius:1rem;font-size:.75rem;font-weight:700;white-space:nowrap}
.wt-status.is-ok{background:var(--ok-bg);color:var(--ok)}
.wt-status.is-wait{background:var(--warn-bg);color:var(--warn)}
.wt-status.is-bad{background:var(--danger-bg);color:var(--danger)}
.wt-status.is-draft{background:var(--info-bg);color:var(--info)}
.wt-toggle{flex:none;width:2.75rem;height:2.75rem;margin:-.4rem -.4rem -.4rem 0;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:1.1rem;cursor:pointer}
.wt-toggle span{display:inline-block}
.wt-card.is-open .wt-toggle span{transform:rotate(180deg)}
.wt-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.wt-js .wt-card:not(.is-open) .wt-more{display:none}
.wt-js .wt-top{cursor:pointer}
.wt-more{margin-top:.7rem}
.wt-chatbg{padding:.6rem;border-radius:.8rem;background:var(--chat)}
.wt-bubble{max-width:100%;padding:.65rem .85rem;border-radius:.2rem .85rem .85rem .85rem;background:var(--bubble);color:var(--text);font-size:.95rem;line-height:1.45;overflow-wrap:anywhere}
.wt-bubble.is-empty{opacity:.7;font-style:italic}
.wt-bh{margin-bottom:.25rem;font-weight:700}
.wt-bh.is-media{font-size:.78rem;font-weight:700;letter-spacing:.04em;opacity:.75}
.wt-bf{margin-top:.35rem;color:var(--muted);font-size:.78rem}
.wt-btnrow{margin-top:.3rem;padding:.55rem .8rem;border-radius:.7rem;background:var(--card);color:#0a7cff;text-align:center;font-size:.9rem;font-weight:700}
.wt-var{padding:0 .25rem;border-radius:.3rem;background:rgba(0,128,105,.2);color:inherit;font-weight:600}
.wt-warn{margin:.6rem 0 0;padding:.55rem .75rem;border-radius:.6rem;background:var(--info-bg);color:var(--info);font-size:.85rem}
.wt-note{margin:.6rem 0 0;padding:.55rem .75rem;border-radius:.6rem;background:var(--warn-bg);color:var(--warn);font-size:.85rem}
.wt-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem}
.wt-actions form{margin:0}
.wt-actions .btn-sm{display:inline-flex;align-items:center;min-height:2.75rem;padding:.45rem 1rem}

.wt-form{margin:1.25rem 0 1rem;max-width:44rem;padding:1.1rem;background:var(--card);border:1px solid var(--border);border-radius:1.2rem;box-shadow:var(--shadow);scroll-margin-top:4rem}
.wt-form h2{margin:0;font-size:1.2rem}
.wt-form-sub{margin:.2rem 0 0;color:var(--muted);font-size:.9rem}
.wt-field{margin-top:1rem}
.wt-field>label,.wt-legend{display:block;margin:0 0 .35rem;padding:0;font-size:.92rem;font-weight:600}
.wt-hint{margin:.3rem 0 0;color:var(--muted);font-size:.82rem}
.wt-form fieldset{margin:1rem 0 0;padding:0;border:0;min-width:0}
.wt-form input[type=text],.wt-form textarea{min-height:2.9rem}
.wt-seg{display:flex;flex-wrap:wrap;gap:.5rem}
.wt-pill{position:relative;flex:1 1 8rem;margin:0;font-weight:600}
.wt-seg.stack .wt-pill{flex-basis:100%}
.wt-pill input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.wt-pill span{display:flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.9rem;padding:.4rem .8rem;border:1.5px solid var(--border);border-radius:.8rem;background:var(--field);font-size:.92rem;text-align:center}
.wt-pill input:checked+span{border-color:var(--brand);background:var(--ok-bg);color:var(--brand)}
.wt-pill input:checked+span::before{content:"\2713";font-weight:700}
.wt-pill input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.wt-tools{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .5rem}
.wt-tool{min-height:2.75rem;padding:0 .9rem;border:1.5px dashed var(--brand);border-radius:.8rem;background:transparent;color:var(--brand);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer}
.wt-tool:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.wt-count{margin-top:.25rem;text-align:right;color:var(--muted);font-size:.8rem}
.wt-preview{margin-top:1rem}

.wt-fab{position:fixed;right:1rem;bottom:5.4rem;z-index:20;display:inline-flex;align-items:center;gap:.4rem;min-height:3.4rem;padding:0 1.3rem;border-radius:1.7rem;background:linear-gradient(135deg,#14b88a,#007a64);color:#fff;font-weight:800;text-decoration:none;box-shadow:0 10px 24px rgba(0,122,100,.45)}

@media (min-width:900px){
  body.has-nav .wrap:has(.wt){max-width:none;margin-right:0;padding-left:1.5rem;padding-right:1.5rem}
  .wt{max-width:82rem;padding-bottom:1rem}
  .wt-hero{padding:1.6rem 1.8rem 1.7rem}
  .wt-hero h1{font-size:2rem}
  .wt-hero-actions{width:auto}
  .wt-stats{max-width:42rem}
  .wt-stat b{font-size:1.9rem}
  .wt-tabs{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
  .wt-search{max-width:28rem}
  .wt-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wt-js .wt-card:not(.is-open) .wt-more,.wt-js .wt-card .wt-more{display:block}
  .wt-toggle{display:none}
  .wt-js .wt-top{cursor:default}
  .wt-fab{display:none}
}
@media (min-width:1500px){.wt-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-color-scheme:dark){.wt-actions .btn-sm.danger{background:#b3261e;color:#fff}}
@media (prefers-reduced-motion:no-preference){.wt-pill span,.wt-tab{transition:background-color .15s,border-color .15s}}

@media (max-width:899.98px){.wt-btn.solid{display:none}.wt-hero-actions form{width:100%}.wt-hero-actions .wt-btn.ghost{width:100%}.wt-hero-top{gap:.7rem}.wt-stats{margin-top:.8rem}}
/* MAUZOO templates v2 (end) */
