/* Self Service Center. Every size is measured from the 1080px-wide original and scaled with --u. */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
:root{
  --u:calc(min(100vw, 430px) / 1080);
  --text:#1D212F;
  --bg:#F5F6FD;
  --sub:#6F748E;
  --ph:#C5C8D6;
  --salmon:#FB7871;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
html,body{background:#E6E9F0;font-family:var(--font);color:var(--text);-webkit-text-size-adjust:100%}
body{display:flex;justify-content:center;min-height:100vh;overflow-x:hidden}
.screen{position:relative;width:100%;max-width:430px;min-height:100vh;background:var(--bg);overflow-x:hidden}
.view{display:none;min-height:100vh}
.view.active{display:block}
button,input,textarea{font-family:inherit;border:none;background:none;outline:none;color:inherit}
button{cursor:pointer}
img{-webkit-user-select:none;user-select:none}

/* ---------- header ---------- */
.hdr{position:sticky;top:0;z-index:20;height:calc(130 * var(--u) + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);background:var(--bg);border-bottom:1px solid #E8EAF3;display:flex;align-items:center;justify-content:center}
.hdr h1{font-size:calc(50 * var(--u));font-weight:400;line-height:1;color:var(--text);white-space:nowrap}
.hdr h1.clip{max-width:calc(640 * var(--u));overflow:hidden;text-overflow:ellipsis}
.back{position:absolute;left:calc(26 * var(--u));bottom:0;width:calc(110 * var(--u));height:calc(130 * var(--u));display:flex;align-items:center;justify-content:center}
.back svg{width:calc(58 * var(--u));height:calc(58 * var(--u));stroke:var(--text);stroke-width:1.9}
.hdr-home{position:absolute;left:calc(30 * var(--u));bottom:0;width:calc(100 * var(--u));height:calc(130 * var(--u));display:flex;align-items:center;justify-content:center}
.hdr-home svg{width:calc(54 * var(--u));height:calc(54 * var(--u))}
.hdr-lang{position:absolute;right:calc(34 * var(--u));bottom:0;height:calc(130 * var(--u));display:flex;align-items:center;gap:calc(12 * var(--u))}
.hdr-lang img{width:calc(65 * var(--u));height:calc(65 * var(--u));border-radius:50%}
.hdr-lang span{font-size:calc(40 * var(--u));color:var(--text)}

/* ---------- home ---------- */
.banner{display:block;width:100%;height:auto;aspect-ratio:1080/372}
.sec-title{font-size:calc(46 * var(--u));font-weight:400;line-height:1;color:var(--text);padding:0 calc(30 * var(--u));margin-top:calc(53 * var(--u))}
.menu{margin:calc(37 * var(--u)) calc(30 * var(--u)) 0;background:#fff;border-radius:calc(26 * var(--u));overflow:hidden}
.menu-row{position:relative;display:flex;align-items:center;height:calc(172.5 * var(--u));padding:0 calc(56 * var(--u)) 0 calc(28 * var(--u));cursor:pointer}
.menu-row+.menu-row::before{content:"";position:absolute;top:0;left:calc(27 * var(--u));right:calc(28 * var(--u));height:1px;background:#EEF0F6}
.menu-row:active{background:#FAFAFD}
.menu-ico{width:calc(106 * var(--u));height:calc(106 * var(--u));margin-right:calc(19 * var(--u));flex-shrink:0;object-fit:contain}
.menu-label{font-size:calc(42 * var(--u));color:var(--text);line-height:1.2;flex:1;min-width:0}
.chev{width:calc(26 * var(--u));height:calc(44 * var(--u));flex-shrink:0;stroke:#9AA0B0;stroke-width:2.6;margin-left:calc(12 * var(--u))}
.tips-title{margin-top:calc(59 * var(--u))}
.tips{padding:0 calc(30 * var(--u)) calc(120 * var(--u));margin-top:calc(32 * var(--u));font-size:calc(36 * var(--u));line-height:calc(40 * var(--u));color:#70758A}

/* ---------- history lists ---------- */
.hist{padding:calc(23 * var(--u)) calc(29 * var(--u)) calc(60 * var(--u))}
.card{background:#fff;border-radius:calc(24 * var(--u));margin-bottom:calc(30 * var(--u));padding-bottom:calc(63 * var(--u))}
.card.has-act{padding-bottom:calc(34 * var(--u))}
.card-head{display:flex;align-items:center;justify-content:space-between;height:calc(133 * var(--u));padding:0 calc(15 * var(--u)) 0 calc(28 * var(--u));border-bottom:1px solid #EEF0F6;margin:0 calc(14 * var(--u));padding-left:calc(14 * var(--u));padding-right:calc(1 * var(--u))}
.badge{display:flex;align-items:center;justify-content:center;height:calc(72 * var(--u));min-width:calc(216 * var(--u));padding:0 calc(14 * var(--u));border-radius:calc(12 * var(--u));color:#fff;font-size:calc(44 * var(--u));line-height:1}
.badge.dep{background:#1DB35C}
.badge.wd{background:#FA5A5A}
.st{font-size:calc(44 * var(--u));line-height:1;color:var(--text)}
.st.bad{color:#F66}
.rows{padding:calc(4 * var(--u)) calc(43 * var(--u)) 0}
.row{display:flex;align-items:center;justify-content:space-between;min-height:calc(90 * var(--u));font-size:calc(42 * var(--u));line-height:1.2}
.row .k{color:#4D5266;flex-shrink:0;margin-right:calc(20 * var(--u))}
.row .val{color:var(--sub);text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:nowrap;min-width:0}
.row .val.ord{font-size:calc(40 * var(--u));letter-spacing:-.01em}
.row .val.amt{color:#F3A25B}
.copy{width:calc(34 * var(--u));height:calc(38 * var(--u));margin-left:calc(28 * var(--u));padding:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.copy svg{width:100%;height:100%}
.row.remarks{min-height:calc(90 * var(--u))}
.btn-act{display:block;width:calc(994 * var(--u));height:calc(92 * var(--u));margin:calc(33 * var(--u)) calc(14 * var(--u)) 0;border-radius:calc(46 * var(--u));background:var(--salmon);color:#fff;font-size:calc(38 * var(--u))}
.card.wd-card .btn-act{margin-top:calc(79 * var(--u))}
.btn-act:active{opacity:.92}
.tagrow{display:flex;align-items:center;margin:calc(23 * var(--u)) 0 0;padding-left:calc(69 * var(--u))}
.tag{display:flex;align-items:center;justify-content:center;height:calc(56 * var(--u));padding:0 calc(24 * var(--u));border-radius:calc(28 * var(--u));font-size:calc(38 * var(--u));line-height:1;background:#F3E6FD;color:#C36BF0;white-space:nowrap}
.tag.pending{background:#FFF1DD;color:#F0A04B}
.tag.completed{background:#DDF5E7;color:#1DB35C}
.past{margin-left:calc(46 * var(--u));font-size:calc(38 * var(--u));color:#5B9BE8;white-space:nowrap;cursor:pointer}
.nomore{text-align:center;font-size:calc(42 * var(--u));line-height:1;color:#9A9EAD;margin-top:calc(95 * var(--u))}
.empty-top{margin-top:calc(150 * var(--u))}
.note{margin:calc(30 * var(--u)) calc(28 * var(--u)) 0 calc(28 * var(--u));background:#F2F2F2;border-radius:calc(20 * var(--u));padding:calc(20 * var(--u)) calc(18 * var(--u)) calc(22 * var(--u));font-size:calc(38 * var(--u));line-height:calc(55 * var(--u));color:#6B6B6B;min-height:calc(177 * var(--u))}
.sub-title{padding:0 calc(43 * var(--u));margin-top:calc(14 * var(--u));font-size:calc(36 * var(--u));color:#9A9EAD}

/* ---------- forms ---------- */
.form{padding:calc(36 * var(--u)) calc(46 * var(--u)) calc(59 * var(--u) + env(safe-area-inset-bottom,0px))}
.field{margin-top:calc(70 * var(--u))}
.form>.field:first-child{margin-top:0}
.lbl{display:block;font-size:calc(40 * var(--u));line-height:calc(48 * var(--u));color:var(--text);margin-bottom:calc(23 * var(--u))}
.lbl2{line-height:calc(69 * var(--u))}
.req{font-style:normal;color:#F76D7A;font-size:calc(40 * var(--u));position:relative;top:calc(-4 * var(--u));margin-left:calc(2 * var(--u))}
.inp{position:relative;display:flex;align-items:center;width:100%;height:calc(126 * var(--u));background:#fff;border-radius:calc(20 * var(--u));box-shadow:0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(40,50,100,.06);padding:0 calc(46 * var(--u)) 0 calc(59 * var(--u))}
.inp input,.inp textarea{width:100%;height:100%;font-size:calc(40 * var(--u));color:var(--text)}
.inp input::placeholder,.inp textarea::placeholder{color:var(--ph);opacity:1}
.inp.ta{height:calc(345 * var(--u));align-items:flex-start;padding:calc(9 * var(--u)) calc(46 * var(--u)) calc(14 * var(--u)) calc(59 * var(--u))}
.inp textarea{resize:none;line-height:calc(48 * var(--u))}
.inp.ro input{color:var(--sub)}
.counter{margin-top:calc(17 * var(--u));margin-bottom:calc(5 * var(--u));text-align:right;font-size:calc(36 * var(--u));line-height:calc(36 * var(--u));color:#6D7182}
.counter+.field,.field:has(.counter)+.field{margin-top:calc(75 * var(--u))}
.sel{cursor:pointer;justify-content:space-between}
.sel-text{font-size:calc(40 * var(--u));color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sel-text.ph{color:var(--ph)}
.sel .chev{margin-left:calc(20 * var(--u));width:calc(24 * var(--u));height:calc(40 * var(--u));stroke:#8E94A8;margin-right:calc(-8 * var(--u))}
.eye{width:calc(70 * var(--u));height:calc(70 * var(--u));margin-right:calc(-14 * var(--u));display:flex;align-items:center;justify-content:center;color:#A5A9B8;flex-shrink:0}
.eye svg{width:calc(52 * var(--u));height:calc(52 * var(--u))}
.eye.on{color:#FA5D56}
.inp.send{padding-right:calc(57 * var(--u))}
.inp.send input{flex:1;min-width:0;text-overflow:clip}
.btn-blue{flex-shrink:0;width:calc(427 * var(--u));height:calc(92 * var(--u));margin-left:calc(20 * var(--u));border-radius:calc(14 * var(--u));background:#1989FA;color:#fff;font-size:calc(38 * var(--u));line-height:1;white-space:nowrap}
.btn-blue[disabled]{background:#9CC9FA}
.btn-confirm{display:block;width:calc(964 * var(--u));height:calc(113 * var(--u));margin:calc(144 * var(--u)) auto 0;border-radius:calc(57 * var(--u));background:var(--salmon);color:#fff;font-size:calc(46 * var(--u));line-height:1;border:1px solid rgba(0,0,0,.05)}
.btn-confirm:active{opacity:.92}
.btn-confirm[disabled]{opacity:.65}
.pwd-confirm{margin-top:calc(140 * var(--u))}
.field.bad .inp,.field.bad .tile{box-shadow:0 0 0 calc(3 * var(--u)) #FA5D56}

.tile{position:relative;width:calc(287 * var(--u));height:calc(287 * var(--u));background:#fff;border-radius:calc(22 * var(--u));box-shadow:0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(40,50,100,.06);cursor:pointer;overflow:hidden}
.tile-empty{display:flex;flex-direction:column;align-items:center;padding-top:calc(76 * var(--u));height:100%}
.tile-empty svg{width:calc(74 * var(--u));height:calc(68 * var(--u))}
.tile-empty span{margin-top:calc(22 * var(--u));font-size:calc(42 * var(--u));line-height:1;color:#8C8F9C}
.tile-prev{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tile-vid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(20 * var(--u));text-align:center;font-size:calc(32 * var(--u));color:#555;word-break:break-all}
.tile-vid .vsize{margin-top:calc(10 * var(--u));color:#9A9EAD}
.tile.has .tile-empty{display:none}
.tile-x{position:absolute;top:calc(8 * var(--u));right:calc(8 * var(--u));width:calc(56 * var(--u));height:calc(56 * var(--u));border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:calc(40 * var(--u));line-height:calc(52 * var(--u));text-align:center;padding:0}
.hint{margin-top:calc(13 * var(--u));font-size:calc(38 * var(--u));line-height:calc(52 * var(--u));color:#4F5366}

/* ---------- dialog ---------- */
.dlg-mask{position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.7)}
.dlg-mask[hidden]{display:none}
.dlg{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:calc(920 * var(--u));background:#fff;border-radius:calc(56 * var(--u));overflow:hidden}
.dlg-body{height:calc(299 * var(--u));display:flex;align-items:center;justify-content:center;text-align:center;padding:0 calc(40 * var(--u));font-size:calc(42 * var(--u));color:var(--text)}
.dlg-btns{display:flex;height:calc(137 * var(--u));border-top:1px solid #EBEDF0}
.dlg-btns button{flex:1;font-size:calc(44 * var(--u));color:#1989FA}
.dlg-btns button+button{border-left:1px solid #EBEDF0}

/* ---------- picker sheet ---------- */
.sheet-mask{position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.5);display:flex;align-items:flex-end;justify-content:center}
.sheet-mask[hidden]{display:none}
.sheet{width:min(100vw,430px);background:#fff;border-radius:calc(40 * var(--u)) calc(40 * var(--u)) 0 0;overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px)}
.sheet-list button{display:block;width:100%;height:calc(150 * var(--u));font-size:calc(44 * var(--u));color:var(--text);border-bottom:1px solid #F0F1F6}
.sheet-list button.on{color:#FA5D56}
.sheet-cancel{display:block;width:100%;height:calc(150 * var(--u));font-size:calc(44 * var(--u));color:#8C8F9C;border-top:calc(14 * var(--u)) solid #F5F6FD}

/* ---------- toast ---------- */
.toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:99999;min-width:calc(330 * var(--u));max-width:78%;min-height:calc(330 * var(--u));background:rgba(74,74,76,.96);border-radius:calc(40 * var(--u));padding:calc(30 * var(--u)) calc(30 * var(--u));display:none;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.toast.show{display:flex}
.toast-ico{height:calc(110 * var(--u));display:flex;align-items:center;justify-content:center;margin-bottom:calc(10 * var(--u))}
.toast-ico svg{height:100%;width:auto}
.toast-text{color:#fff;font-size:calc(40 * var(--u));line-height:1.35;white-space:pre-line}
