:root{--navy:#16305c;--navy2:#0f2447;--gold:#d9ab3f;--bg:#f6f1e6;--card:#fffdf8;--muted:#5b6478;--line:#ebe4d4;--soft:#f3ede0;--green:#2e7d5b;--red:#b4483f}*{box-sizing:border-box}html,body{margin:0}body{color:var(--navy2);-webkit-font-smoothing:antialiased;background:#ebe4d4;font-family:Anuphan,Noto Sans Thai,sans-serif;font-size:16px;line-height:1.55}.phone{background:var(--bg);max-width:440px;min-height:100dvh;margin:0 auto;padding-bottom:96px;position:relative}h1,h2,h3{margin:0;font-weight:600}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0}a{color:inherit}.head{padding:18px 18px 8px}.fam{justify-content:space-between;align-items:center;gap:8px;display:flex}.fam h1{font-size:20px}.fam small{color:var(--muted);font-size:13px;display:block}.avatars{scrollbar-width:none;gap:10px;padding:12px 18px 8px;display:flex;overflow-x:auto}.av{flex-direction:column;align-items:center;gap:4px;min-width:62px;font-size:13px;font-weight:600;display:flex}.face{color:#fff;background-position:50%;background-size:cover;border:3px solid #fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:56px;height:56px;font-size:20px;font-weight:700;display:flex;position:relative;box-shadow:0 4px 12px #16305c1f}.face .cam{width:22px;height:22px;color:var(--navy);background:#fff;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;bottom:-4px;right:-4px;box-shadow:0 2px 6px #0003}.card{background:var(--card);border:1px solid #efe8d9;border-radius:24px;margin:0 14px 14px;padding:18px;box-shadow:0 8px 24px #16305c12}.card h2{margin-bottom:10px;font-size:18px}.big{font-size:34px;font-weight:700;line-height:1.15}.muted{color:var(--muted);font-size:14px}.row{justify-content:space-between;align-items:center;gap:8px;display:flex}.seg{background:var(--soft);border-radius:16px;gap:4px;padding:4px;display:flex}.seg button{white-space:nowrap;min-height:44px;color:var(--muted);border-radius:12px;flex:1;padding:0 10px;font-weight:600}.seg button.on{color:var(--navy2);background:#fff;box-shadow:0 2px 8px #16305c1f}.grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.cat{background:var(--bg);text-align:center;border:2px solid #0000;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:84px;padding:6px;font-size:13px;font-weight:600;line-height:1.3;display:flex}.cat .ic{border-radius:12px;justify-content:center;align-items:center;width:36px;height:36px;transition:background .15s;display:flex}.cat.on{border-color:var(--navy);background:#fff;box-shadow:0 4px 12px #16305c1a}.pills{flex-wrap:wrap;gap:8px;display:flex}.pill{background:var(--soft);border:2px solid #0000;border-radius:999px;align-items:center;gap:6px;min-height:44px;padding:4px 14px 4px 4px;font-size:14px;font-weight:600;display:flex}.pill.on{border-color:var(--navy);background:#fff}.mini{color:#fff;background-position:50%;background-size:cover;border-radius:50%;flex:none;justify-content:center;align-items:center;width:32px;height:32px;font-size:13px;font-weight:700;display:flex}.amount{border:2px solid var(--line);text-align:right;background:#fff;border-radius:18px;width:100%;padding:8px 14px;font-size:34px;font-weight:700}.input{border:2px solid var(--line);background:#fff;border-radius:14px;width:100%;min-height:48px;padding:10px 14px}.amount:focus,.input:focus{outline:3px solid var(--gold);outline-offset:1px}.cta{background:var(--navy);color:#fff;border-radius:18px;width:100%;min-height:56px;font-size:18px;font-weight:600}.cta:disabled{opacity:.6}.ghost{border:1.5px solid var(--line);background:#fff;border-radius:14px;min-height:44px;padding:0 16px;font-weight:600}.label{margin:16px 0 8px;font-size:14px;font-weight:600}.err{color:#9a3a32;background:#f8e9e7;border-radius:12px;margin-top:12px;padding:10px 14px;font-size:14px}.it{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:10px 0;display:flex}.it:last-child{border-bottom:0}.it .grow{flex:1;min-width:0}.it .grow b{text-overflow:ellipsis;white-space:nowrap;font-weight:600;display:block;overflow:hidden}.tag{background:var(--soft);color:var(--muted);border-radius:8px;padding:1px 8px;font-size:12px;font-weight:600}.bar{background:var(--soft);border-radius:999px;height:10px;overflow:hidden}.bar span{border-radius:999px;height:100%;display:block}.splitbar{background:var(--soft);border-radius:999px;height:16px;margin:10px 0 6px;display:flex;overflow:hidden}.kids{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.kid{text-align:center;background:var(--soft);border-radius:20px;flex-direction:column;align-items:center;gap:6px;padding:12px 8px;display:flex}.nav{border-top:1px solid var(--line);width:100%;max-width:440px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:5;background:#fff;border-radius:20px 20px 0 0;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.nav a{min-height:56px;color:var(--muted);border-radius:14px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.nav a.on{color:var(--navy2);background:var(--soft)}.nav svg{width:22px;height:22px}.toggle{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.sw{background:#c9c2b2;border-radius:999px;flex:none;width:52px;height:30px;position:relative}.sw:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:all .2s;position:absolute;top:3px;left:3px}.sw.on{background:var(--green)}.sw.on:after{left:25px}.modal{z-index:9;background:#0f244780;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:#fff;border-radius:26px 26px 0 0;width:100%;max-width:440px;padding:22px 18px 28px}.sheet h3{margin-bottom:8px;font-size:20px}.toast{background:var(--navy2);color:#fff;z-index:10;border-radius:14px;padding:10px 16px;font-weight:600;position:fixed;bottom:104px;left:50%;transform:translate(-50%)}.hide{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.code{letter-spacing:.15em;text-align:center;background:var(--soft);border-radius:16px;padding:12px;font-size:30px;font-weight:700}:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
