:root{
  --g:#1f7a3a; --g2:#2e9e50; --gl:#e7f4ea; --ink:#1d2b20; --mut:#6b7a6f; --line:#e3e8e3;
  --bg:#f5f7f4; --warn:#c97a00; --warnbg:#fff4e0; --red:#c0392b; --redbg:#fdecea; --blue:#1f5fbf; --bluebg:#e8f0fc;
  --pro:#0f3d24;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;background:linear-gradient(160deg,#eaf3ea,#dfe9e2);color:var(--ink);font-size:14px}
button{font:inherit;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}

.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 28px;background:#fff;border-bottom:1px solid var(--line)}
.tb-title{font-weight:700;font-size:17px}
.tb-sub{color:var(--mut);font-size:13px;margin-top:3px}
.tb-right{display:flex;gap:10px;align-items:center;flex-shrink:0}
.tb-reset{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 12px}
.switch-side{display:none;background:#eef2ee;border-radius:9px;padding:3px}
.switch-side button{border:0;background:transparent;padding:6px 12px;border-radius:7px;color:var(--mut)}
body[data-show=customer] .switch-side [data-side=customer],
body[data-show=pro] .switch-side [data-side=pro]{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}

.stage{display:flex;justify-content:center;gap:56px;padding:26px 20px 40px;flex-wrap:wrap}
.phone-label{text-align:center;font-weight:600;color:var(--mut);margin-bottom:10px;letter-spacing:.3px}
.phone{position:relative;width:390px;height:810px;background:var(--bg);border:11px solid #111;border-radius:48px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 60px rgba(20,50,30,.18)}
.statusbar{display:flex;justify-content:space-between;padding:10px 26px 4px;font-size:12px;font-weight:600;background:#fff}
.phone.pro .statusbar{background:var(--pro);color:#fff}
.app{flex:1;display:flex;flex-direction:column;min-height:0}

@media (max-width:900px){
  body{display:flex;flex-direction:column;height:100vh;height:100dvh}
  .topbar{padding:8px 12px;flex-wrap:nowrap}
  .tb-title{font-size:15px}
  .tb-sub{display:none}
  .tb-reset{padding:6px 9px;font-size:12px}
  .switch-side{display:flex}
  .stage{padding:0;gap:0;flex:1;min-height:0;flex-wrap:nowrap}
  .phone-label{display:none}
  .phone-wrap{width:100%;height:100%}
  body[data-show=customer] .phone-wrap[data-side=pro],
  body[data-show=pro] .phone-wrap[data-side=customer]{display:none}
  .phone{width:100%;height:100%;border:0;border-radius:0;box-shadow:none}
  .statusbar{display:none}
}

/* app chrome */
.hdr{display:flex;align-items:center;justify-content:space-between;padding:10px 16px 12px;background:#fff;border-bottom:1px solid var(--line);min-height:52px}
.pro .hdr{background:var(--pro);color:#fff;border-bottom:0}
.hdr h1{font-size:18px;margin:0;font-weight:700}
.hdr .back{border:0;background:none;font-size:15px;color:var(--g);padding:4px 0}
.pro .hdr .back{color:#9fe0b3}
.brand{display:flex;align-items:center;gap:6px;font-weight:800;font-size:18px}
.brand small{font-weight:600;font-size:11px;background:#9fe0b3;color:var(--pro);padding:2px 6px;border-radius:5px}
.screen{flex:1;overflow-y:auto;padding:14px 14px 24px}
.nav{display:flex;border-top:1px solid var(--line);background:#fff;padding-bottom:10px}
.nav button{flex:1;border:0;background:none;padding:9px 0 4px;color:var(--mut);font-size:11px;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative}
.nav button .ic{font-size:19px;filter:grayscale(1);opacity:.6}
.nav button.on{color:var(--g);font-weight:600}
.nav button.on .ic{filter:none;opacity:1}
.nav .badge{position:absolute;top:4px;left:56%;background:var(--red);color:#fff;font-size:10px;border-radius:9px;padding:0 5px;line-height:16px}

/* generic */
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}
.sec-t{font-size:12px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.5px;margin:18px 2px 8px}
.sec-t:first-child{margin-top:4px}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mut{color:var(--mut)}
.small{font-size:12px}
.b{font-weight:700}
.btn{border:0;border-radius:11px;padding:12px 14px;font-weight:600;background:#eef2ee;color:var(--ink);width:100%;margin-top:8px}
.btn.primary{background:var(--g);color:#fff}
.btn.primary:disabled{background:#a9c7b2;cursor:not-allowed}
.btn.ghost{background:#fff;border:1px solid var(--line)}
.btn.danger{background:#fff;color:var(--red);border:1px solid #f1c9c4}
.btn.sm{width:auto;padding:8px 12px;margin:0;font-size:13px}
.btns{display:flex;gap:8px}
.btns .btn{flex:1}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:3px 8px;border-radius:20px;background:#eef2ee;color:var(--mut);white-space:nowrap}
.chip.card{background:var(--bluebg);color:var(--blue)}
.chip.cash{background:var(--warnbg);color:var(--warn)}
.chip.st-open{background:var(--warnbg);color:var(--warn)}
.chip.st-accepted,.chip.st-in_progress{background:var(--bluebg);color:var(--blue)}
.chip.st-pending_confirm{background:#f3e8fd;color:#7b3fb8}
.chip.st-completed{background:var(--gl);color:var(--g)}
.chip.st-disputed,.chip.st-cancelled{background:var(--redbg);color:var(--red)}
.note{border-radius:10px;padding:10px 12px;font-size:12.5px;margin:10px 0;line-height:1.45}
.note.info{background:var(--bluebg);color:#1b4a8f}
.note.warn{background:var(--warnbg);color:#8a5600}
.note.ok{background:var(--gl);color:var(--g)}
.note.err{background:var(--redbg);color:var(--red)}
.empty{text-align:center;color:var(--mut);padding:30px 10px}
.empty .big{font-size:38px;margin-bottom:6px}
hr{border:0;border-top:1px solid var(--line);margin:12px 0}
.kv{display:flex;justify-content:space-between;padding:5px 0;font-size:13px}
.kv span:first-child{color:var(--mut)}

/* form */
.field{margin-bottom:14px}
.field label.lb{display:block;font-weight:600;font-size:13px;margin-bottom:6px}
.inp{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;outline:none}
.inp:focus{border-color:var(--g2);box-shadow:0 0 0 3px rgba(46,158,80,.15)}
textarea.inp{resize:none;height:64px}
.seg{display:flex;background:#eef2ee;border-radius:10px;padding:3px}
.seg label{flex:1;text-align:center;padding:8px 4px;border-radius:8px;font-size:13px;cursor:pointer;color:var(--mut)}
.seg input{display:none}
.seg label:has(input:checked){background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.svc{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;background:#fff;cursor:pointer}
.svc:has(input:checked){border-color:var(--g2);background:#f4fbf5}
.svc input{accent-color:var(--g);width:17px;height:17px;margin-right:8px}
.svc .l{display:flex;align-items:center}
.inline{display:flex;gap:8px}
.inline > *{flex:1}
.check{display:flex;align-items:center;gap:8px;font-size:13px}
.check input{accent-color:var(--g);width:17px;height:17px}
.photos{display:flex;gap:8px}
.ph-add{width:72px;height:72px;border:1.5px dashed #b9c7bc;border-radius:10px;display:grid;place-items:center;color:var(--mut);font-size:22px;background:#fff}
.pay-opt{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;margin-bottom:6px;background:#fff;cursor:pointer}
.pay-opt:has(input:checked){border-color:var(--g2);background:#f4fbf5}
.pay-opt input{accent-color:var(--g);width:17px;height:17px}
.pay-opt .ic{font-size:20px}

.price-box{background:#fff;border:1.5px solid var(--g2);border-radius:14px;padding:14px}
.price-in{display:flex;align-items:center;font-size:30px;font-weight:800;border-bottom:2px solid var(--line);padding-bottom:4px}
.price-in input{border:0;outline:none;font-size:30px;font-weight:800;width:100%;background:transparent}
.suggest{font-size:12.5px;color:var(--mut);margin-top:8px}
.meter{height:6px;border-radius:4px;background:linear-gradient(90deg,#e74c3c 0 20%,#f0ad4e 20% 45%,#2e9e50 45% 100%);margin-top:10px;position:relative}
.meter i{position:absolute;top:-4px;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--ink);transform:translateX(-50%);transition:left .2s}
.quick{display:flex;gap:6px;margin-top:10px}
.quick button{flex:1;border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 0;font-size:12px}

/* home */
.hero{background:linear-gradient(135deg,#1f7a3a,#3cb35f);color:#fff;border-radius:18px;padding:18px;margin-bottom:6px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;right:-30px;bottom:-40px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.1)}
.hero .hello{opacity:.85;font-size:13px}
.hero .t{font-size:21px;font-weight:800;margin:4px 0 12px;line-height:1.25}
.hero .btn{background:#fff;color:var(--g);width:auto;padding:10px 18px}
.steps3{display:flex;gap:8px}
.steps3 div{flex:1;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;font-size:12px;text-align:center}
.steps3 b{display:block;font-size:20px;margin-bottom:3px}

/* order list */
.ord{cursor:pointer}
.ord .top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.ord .price{font-size:20px;font-weight:800}
.ord .meta{font-size:12.5px;color:var(--mut);margin-top:4px;line-height:1.5}

/* progress */
.prog{display:flex;justify-content:space-between;position:relative;margin:6px 4px 4px}
.prog:before{content:"";position:absolute;top:10px;left:10px;right:10px;height:3px;background:var(--line)}
.prog .bar{position:absolute;top:10px;left:10px;height:3px;background:var(--g2);transition:width .3s}
.prog .s{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10.5px;color:var(--mut);width:52px;text-align:center}
.prog .s i{width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid var(--line);display:grid;place-items:center;font-style:normal;font-size:11px}
.prog .s.done i{background:var(--g2);border-color:var(--g2);color:#fff}
.prog .s.cur{color:var(--ink);font-weight:600}
.prog .s.cur i{border-color:var(--g2)}

.pro-card{display:flex;align-items:center;gap:12px}
.avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#f6c27a,#e08a3c);display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px;flex-shrink:0}
.avatar.c{background:linear-gradient(135deg,#7aa8f6,#3c6ee0)}
.verified{color:var(--g);font-size:11.5px;font-weight:600}

.lawn{height:110px;border-radius:10px;position:relative;overflow:hidden;flex:1}
.lawn.before{background:
  repeating-linear-gradient(75deg,rgba(0,0,0,.08) 0 2px,transparent 2px 7px),
  repeating-linear-gradient(105deg,rgba(255,255,255,.08) 0 3px,transparent 3px 9px),
  radial-gradient(circle at 30% 40%,#8aa640,#5f7d2a 70%)}
.lawn.after{background:repeating-linear-gradient(90deg,#4caf50 0 22px,#3d9b42 22px 44px)}
.lawn.thumb{height:72px;width:72px;flex:none}
.lawn span{position:absolute;left:6px;bottom:6px;background:rgba(0,0,0,.55);color:#fff;font-size:10.5px;padding:2px 6px;border-radius:5px}
.lawn-pair{display:flex;gap:8px}

.stars{display:flex;gap:6px;font-size:30px;justify-content:center;margin:6px 0}
.stars button{border:0;background:none;padding:0;color:#d5dbd6;font-size:30px;line-height:1}
.stars button.on{color:#f5b301}
.tips{display:flex;gap:6px}
.tips button{flex:1;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 0;font-weight:600}
.tips button.on{border-color:var(--g2);background:var(--gl);color:var(--g)}

/* pro */
.online{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.tgl{width:46px;height:26px;border-radius:20px;background:#5b6b60;position:relative;border:0;padding:0}
.tgl:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .2s}
.tgl.on{background:#3cd070}
.tgl.on:after{left:23px}
.pro-stats{display:flex;gap:8px;margin-bottom:12px}
.pro-stats div{flex:1;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;text-align:center}
.pro-stats b{display:block;font-size:17px}
.pro-stats span{font-size:11px;color:var(--mut)}
.filters{display:flex;gap:6px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.filters button{border:1px solid var(--line);background:#fff;border-radius:20px;padding:6px 12px;font-size:12.5px}
.filters button.on{background:var(--pro);color:#fff;border-color:var(--pro)}
.filters select{margin-left:auto;border:1px solid var(--line);border-radius:20px;padding:6px 10px;font-size:12.5px;background:#fff}
.job .top{display:flex;gap:12px}
.job .price{font-size:24px;font-weight:800;color:var(--pro)}
.job .info{flex:1;min-width:0}
.job .line{font-size:12.5px;color:var(--mut);margin-top:3px;line-height:1.45}
.job .acts{display:flex;gap:8px;margin-top:10px}
.job .acts .btn{margin:0}
.pro .btn.primary{background:var(--pro)}
.pro .btn.primary:disabled{background:#9db3a5}
.tag{display:inline-block;font-size:11px;padding:2px 7px;border-radius:5px;background:#f0f3f0;color:#4d5b51;margin:4px 4px 0 0}
.tag.alert{background:var(--redbg);color:var(--red)}
.wallet-hero{background:linear-gradient(135deg,#0f3d24,#1f7a3a);color:#fff;border-radius:18px;padding:18px;margin-bottom:12px}
.wallet-hero .amt{font-size:34px;font-weight:800;margin:4px 0 10px}
.wallet-hero .btn{background:#fff;color:var(--pro);margin:0}
.tx{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.tx:last-child{border:0}
.tx .plus{color:var(--g);font-weight:700}
.tx .minus{color:var(--red);font-weight:700}

/* toast */
.toasts{position:absolute;top:44px;left:12px;right:12px;z-index:20;display:flex;flex-direction:column;gap:6px;pointer-events:none}
@media (max-width:900px){.toasts{top:8px}}
.toast{background:rgba(25,35,28,.94);color:#fff;border-radius:14px;padding:11px 14px;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.2);animation:tin .25s ease;line-height:1.4}
.toast b{display:block;font-size:12px;color:#9fe0b3;margin-bottom:1px}
.toast.out{animation:tout .3s ease forwards}
@keyframes tin{from{opacity:0;transform:translateY(-10px)}}
@keyframes tout{to{opacity:0;transform:translateY(-10px)}}
@media (max-width:420px){.tb-hide{display:none}}
.tb-lang{font-weight:700;color:var(--g);border-color:#bfe0c8;min-width:48px}
@media (max-width:900px){.topbar{gap:8px}.tb-right{gap:6px}.switch-side button{padding:6px 10px}}
@media (max-width:400px){.tb-brand{display:none}}
