:root{
  --bg:#f3f6f4;--surface:#fff;--sub:#f8faf9;--line:#e1e7e3;--line2:#edf1ee;--line3:#ccd5cf;--chip:#eef2ef;
  --ink:#122019;--ink2:#34433b;--mute:#5f6d65;--faint:#76837b;
  --acc:#0f7a45;--acc-bg:#e7f4ec;--acc-t:#0d6e3e;--brown:#8a4a1c;--brown-bg:#f7eee6;
  --pos:#0f7a45;--pos-bg:#e7f4ec;--neg:#b42318;--neg-bg:#fdeceb;--warn:#a15c07;--warn-bg:#fdf4e4;
  --mark:#0f7a45;--pri:#0f7a45;--r:10px;
  --sh:0 1px 2px rgba(18,32,25,.05);--sh2:0 2px 4px rgba(18,32,25,.06),0 10px 24px -6px rgba(18,32,25,.14);--tip:#122019;
}
.live{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--ink2);border:1px solid var(--line);border-radius:6px;padding:3px 9px;background:#fff}
.live i{width:7px;height:7px;border-radius:50%;background:var(--acc)}
.wrap{display:grid;grid-template-columns:352px minmax(0,1fr);gap:24px;align-items:start}
.phone-col{position:sticky;top:78px}
.phone-cap{display:flex;justify-content:space-between;font-size:12px;font-weight:600;color:var(--ink2);margin:2px 6px 8px}
.phone{width:340px;height:720px;border-radius:46px;background:#fff;border:10px solid #18211c;box-shadow:0 0 0 1px #2c3530,0 24px 48px -18px rgba(18,32,25,.35),0 2px 6px rgba(18,32,25,.12);display:flex;flex-direction:column;overflow:hidden;margin:0 auto}
.ph-status{display:flex;justify-content:space-between;align-items:center;padding:10px 24px 4px;font-size:13px;font-weight:700}
.ph-ind{display:flex;gap:2px;align-items:flex-end}
.ph-ind i{width:3px;background:var(--ink);border-radius:1px}
.ph-ind i:nth-child(1){height:5px}.ph-ind i:nth-child(2){height:7px}.ph-ind i:nth-child(3){height:9px}
.ph-ind b{width:20px;height:9px;border:1.5px solid var(--ink);border-radius:3px;margin-left:5px;position:relative}
.ph-ind b::after{content:"";position:absolute;inset:1px 5px 1px 1px;background:var(--ink);border-radius:1px}
.ph-head{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid var(--line2)}
.ph-head>div{flex:1;text-align:center;display:grid;line-height:1.3}
.ph-head b{font-size:13.5px}.ph-head span{font-size:10.5px;color:var(--mute)}
.ph-head svg{width:18px;height:18px;color:var(--ink2)}
.ph-body{flex:1;overflow:hidden;background:#f6f7f5;position:relative}
.ph-scr{padding:14px;display:none;flex-direction:column;gap:12px;height:100%}
.ph-scr.on{display:flex;animation:fade .2s ease-out}
.mcard{border-radius:14px;padding:16px 16px 14px;color:#fbf6ef;background:#3a2618;position:relative;overflow:hidden;box-shadow:0 8px 18px -10px rgba(58,38,24,.6)}
.mcard::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 7px)}
.mcard>*{position:relative}
.mc-top{display:flex;justify-content:space-between;align-items:center}
.mc-brand{display:flex;align-items:center;gap:6px;font-weight:700;font-size:13.5px;letter-spacing:.04em}
.mc-brand svg{width:18px;height:18px;color:#e2b97f}
.mc-rank{font:700 10.5px "Inter",system-ui;letter-spacing:.14em;color:#3a2618;background:#e2b97f;border-radius:4px;padding:2px 7px}
.mc-name{font-size:12px;color:#e6d9c8;margin-top:16px}
.mc-pt{font:700 32px/1.1 "Inter",system-ui;margin-top:2px;letter-spacing:-.02em}
.mc-pt small{font-size:14px;margin-left:3px;color:#e6d9c8}
.mc-next{display:flex;justify-content:space-between;font-size:10.5px;color:#e6d9c8;margin-top:10px}
.mc-bar{height:4px;border-radius:2px;background:rgba(255,255,255,.18);margin-top:5px;overflow:hidden}
.mc-bar b{display:block;width:79%;height:100%;background:#e2b97f;border-radius:2px}
.barcode{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 10px 8px;display:grid;justify-items:center;gap:4px}
.barcode span{font-size:12px;letter-spacing:.14em;color:var(--ink2)}
.ph-help{font-size:11.5px;color:var(--mute);text-align:center}
.ph-list{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ph-item{display:flex;align-items:center;gap:10px;padding:10px 12px}
.ph-item+.ph-item{border-top:1px solid var(--line2)}
.ph-item>div{flex:1;display:grid;line-height:1.4}
.ph-item b{font-size:12.5px}.ph-item span{font-size:11px;color:var(--mute)}
.ph-item>svg{color:var(--faint)}
.pi-ic{width:30px;height:30px;border-radius:8px;background:var(--acc-bg);color:var(--acc);display:grid;place-items:center}
.st-head{display:flex;justify-content:space-between;align-items:baseline}
.st-head b{font-size:15px}.st-head span{font:600 13px "Inter",system-ui;color:var(--mute)}
.stamps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 12px}
.stamps span{aspect-ratio:1;border-radius:50%;border:1.5px dashed var(--line3);display:grid;place-items:center;font:600 11px "Inter",system-ui;color:var(--faint)}
.stamps span.on{border:0;background:var(--brown-bg);color:var(--brown);box-shadow:inset 0 0 0 1.5px #d9b99c}
.stamps span.on svg{width:22px;height:22px}
.stamps span.goal{border:1.5px solid var(--acc);color:var(--acc)}
.stamps span.goal svg{width:18px;height:18px}
.st-goal{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--acc-bg);color:var(--acc-t)}
.st-goal div{display:grid;line-height:1.45}
.st-goal b{font-size:13px}.st-goal span{font-size:11px;color:var(--ink2)}
.st-hist{background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px 12px}
.sh-h{font-size:11.5px;font-weight:700;color:var(--mute);padding:6px 0 2px}
.sh{display:grid;grid-template-columns:44px 1fr auto 30px;gap:8px;font-size:12px;padding:7px 0;border-top:1px solid var(--line2)}
.sh-h+.sh{border-top:0}
.sh b{color:var(--brown);text-align:right}
.cp{display:grid;grid-template-columns:78px 1fr;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.cp-l{display:grid;place-items:center;align-content:center;background:var(--acc);color:#fff;font-size:11px;font-weight:700;border-right:1.5px dashed rgba(255,255,255,.6);padding:12px 0}
.cp-v{font:800 24px/1 "Inter",system-ui}
.cp-v small{font-size:13px}
.cp-v.sm{font-size:17px;font-family:inherit}
.cp-r{padding:10px 12px;display:grid;line-height:1.45;align-content:center}
.cp-r b{font-size:13px}.cp-r span{font-size:11px;color:var(--mute)}
.cp-tag{justify-self:start;font-size:10px!important;font-weight:700;color:var(--neg)!important;margin-bottom:1px}
.cp.used{opacity:1}
.cp.used .cp-l{background:#7c8a82}
.cp:nth-of-type(3) .cp-l{background:var(--brown)}
.ph-btn{margin-top:auto;height:44px;border:0;border-radius:12px;background:var(--acc);color:#fff;font-weight:700;font-size:14px}
.ph-tab{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:#fff;padding:6px 6px 14px}
.ph-tab button{border:0;background:none;display:grid;justify-items:center;gap:2px;font-size:10.5px;font-weight:600;color:var(--faint);padding:4px 0}
.ph-tab button svg{width:20px;height:20px}
.ph-tab button[aria-selected="true"]{color:var(--acc)}
.admin{min-width:0}
.lg-m{--k:var(--acc)}.lg-n{--k:#c9d3cd}.lg-b{--k:var(--brown)}
.h210{height:210px}.h170{height:160px}
.g2{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.g2b{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
.g2s{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.g2c{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}
.freq{display:grid;gap:12px;margin-top:6px}
.fq{display:grid;grid-template-columns:62px 1fr 96px;gap:10px;align-items:center;font-size:12.5px}
.fq .b{height:18px;background:var(--line2);border-radius:3px;overflow:hidden}
.fq .b b{display:block;height:100%;background:#9bcbb0;border-radius:3px}
.fq:nth-child(n+3) .b b{background:var(--acc)}
.fq .v{text-align:right;color:var(--ink2);white-space:nowrap}
.fnote{margin-top:14px;font-size:12px;color:var(--ink2);padding:8px 10px;background:var(--sub);border:1px solid var(--line2);border-radius:7px}
.hm{display:grid;grid-template-columns:22px repeat(13,minmax(0,1fr));gap:3px;font-size:10.5px}
.hm .cl{text-align:center;color:var(--faint);font-family:"Inter",system-ui}
.hm .rl{color:var(--ink2);display:flex;align-items:center}
.hm .c{height:20px;border-radius:3px}
.q0{background:#eef2ef}.q1{background:#cfe8d9}.q2{background:#93cbab}.q3{background:#4fa475}.q4{background:#0f7a45}
.who{display:flex;align-items:center;gap:8px}
.av{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;background:var(--chip);color:var(--ink2)}
.rk{font:700 9.5px "Inter",system-ui;letter-spacing:.08em;border-radius:3px;padding:1px 5px;border:1px solid}
.rk.g{color:#8a5a12;border-color:#e3c792;background:#fbf4e6}
.rk.s{color:#56626b;border-color:#cfd6db;background:#f4f6f7}
.rk.b{color:#8a4a1c;border-color:#e2c3ab;background:#f8efe7}
.pt{color:var(--acc-t);font-weight:600}
.funnel{display:grid;gap:8px;margin-top:4px}
.fn{display:grid;grid-template-columns:120px 1fr 90px;gap:12px;align-items:center;font-size:13px}
.fn .nm{font-weight:600;color:var(--ink2)}
.fn .b{height:30px;background:var(--line2);border-radius:4px;position:relative;overflow:hidden}
.fn .b b{display:block;height:100%;background:var(--acc);border-radius:4px}
.fn:nth-child(1) .b b{background:#9bcbb0}.fn:nth-child(2) .b b{background:#5fae83}.fn:nth-child(4) .b b{background:var(--brown)}
.fn .v{text-align:right;display:grid;line-height:1.3}
.fn .v b{font:700 15px "Inter",system-ui}.fn .v span{font-size:11px;color:var(--mute)}
.set{margin:10px 0 0;border-top:1px solid var(--line)}
.set>div{display:grid;grid-template-columns:96px 1fr;gap:12px;padding:11px 16px;border-bottom:1px solid var(--line2);font-size:13px}
.set>div:last-child{border-bottom:0}
.set dt{color:var(--mute);font-size:12.5px}
.set dd{margin:0;font-weight:600;display:grid}
.set dd span{font-size:11.5px;font-weight:400;color:var(--mute)}
.form{padding:12px 16px 16px;display:grid;gap:14px}
.fl{display:grid;gap:6px;min-width:0}
.lb{font-size:12px;font-weight:600;color:var(--ink2)}
.fr{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.inp{height:36px;border:1px solid var(--line);border-radius:7px;padding:0 11px;display:flex;align-items:center;gap:8px;font-size:13px;background:#fff;white-space:nowrap;overflow:hidden}
.inp svg{color:var(--faint)}
.segs{display:grid;gap:6px}
.segs button{display:grid;grid-template-columns:18px 1fr auto;gap:10px;align-items:center;text-align:left;border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px}
.segs button .rd{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line3)}
.segs button[aria-pressed="true"]{border-color:var(--acc);box-shadow:0 0 0 1px var(--acc);background:#fbfefc}
.segs button[aria-pressed="true"] .rd{border:5px solid var(--acc)}
.segs b{font-size:13px;display:block}.segs .sub{font-size:11.5px}
.segs .n{font:700 14px "Inter",system-ui}
.est{display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:center;gap:0;border:1px solid var(--line2);border-radius:8px;padding:4px 6px 4px 0;background:var(--sub)}
.est>div{padding:6px 12px;display:grid}
.est>div+div{border-left:1px solid var(--line2)}
.est b{font:700 17px/1.3 "Inter",system-ui}
.rate{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.rate .mbar{width:56px}
@media (max-width:1240px){.wrap{grid-template-columns:320px minmax(0,1fr)}.phone{width:310px;height:680px}}
@media (max-width:1100px){.g2,.g2b,.g2s,.g2c{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){.wrap{grid-template-columns:minmax(0,1fr)}.phone-col{position:static}}
@media (max-width:760px){
  .tabs button{font-size:12.5px;padding:0 8px;gap:5px}
  .phone{width:320px;height:660px;border-width:8px}
  .fr{grid-template-columns:1fr}
  .est{grid-template-columns:1fr 1fr 1fr;padding:0}
  .est .btn{grid-column:1/-1;margin:6px;justify-content:center}
  .est b{font-size:15px}
  .fn{grid-template-columns:86px 1fr 70px;gap:8px;font-size:12px}
  .hm{grid-template-columns:18px repeat(13,minmax(0,1fr));gap:2px}
  .hm .cl{font-size:9px}
}
