.tiles{gap:14px}.tile.tile-3d{position:relative;overflow:hidden;color:#fff;min-height:150px;gap:6px;padding:14px 10px 18px;background:radial-gradient(120% 90% at 50% 30%,#1d3a6e,#14284b 55%,#0c1a33);border:1px solid transparent;border-radius:18px;background-clip:padding-box;box-shadow:0 0 0 1px #d0d8e68c,0 0 0 3px #14284be6,0 0 0 4px #aab6cc73,0 10px 22px #0c1a3359,inset 0 1px #ffffff38,inset 0 -10px 18px #00000040;transition:transform .12s ease,box-shadow .12s ease}.tile.tile-3d:before{content:"";position:absolute;inset:0 0 auto 0;height:46%;background:linear-gradient(180deg,#ffffff1f,#fff0);pointer-events:none}.tile.tile-3d:active{transform:translateY(1px) scale(.97);box-shadow:0 0 0 1px #d0d8e68c,0 4px 10px #0c1a3359}.tile-img{width:88px;height:88px;object-fit:cover;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 58%,transparent 71%);mask-image:radial-gradient(circle,#000 58%,transparent 71%);filter:drop-shadow(0 4px 6px rgba(0,0,0,.35))}.tile-label{font-size:17px;font-weight:600;letter-spacing:.2px;text-shadow:0 1px 2px rgba(0,0,0,.45);position:relative;padding-bottom:6px}.tile-label:after{content:"";position:absolute;left:50%;bottom:0;width:28px;height:3px;margin-left:-14px;border-radius:2px;background:linear-gradient(90deg,#d7263d,#ff5a6e)}.tile.tile-hot{box-shadow:0 0 0 1px #d7263dbf,0 0 0 3px #14284be6,0 0 0 4px #d7263d59,0 10px 22px #d7263d40,inset 0 1px #ffffff38,inset 0 -10px 18px #00000040}.shop{--sn: #14284B;--sn2: #0c1a33;--si: #2F3E9E;--sr: #D7263D;--sbg: #EEF1F5;--sline: #DDE3EE;--stext: #1B2333;--smuted: #5B6478;display:grid;grid-template-columns:220px 1fr;min-height:100vh;background:var(--sbg);color:var(--stext);font-family:Sarabun,system-ui,sans-serif}.shop h1,.shop h2,.shop h3,.shop-brand,.shop-col-head,.sbtn,.shop-plate,.shop-time b{font-family:Kanit,Sarabun,sans-serif}.shop-side{background:linear-gradient(180deg,#1d3a6e,var(--sn) 45%,var(--sn2));color:#fff;display:flex;flex-direction:column;gap:18px;padding:18px 12px;position:sticky;top:0;height:100vh;box-shadow:inset -3px 0 0 var(--sr)}.shop-brand{font-size:22px;font-weight:700;letter-spacing:.3px;display:flex;flex-direction:column;padding:0 6px}.shop-brand-a{color:var(--sr)}.shop-brand small{font-family:Sarabun,sans-serif;font-weight:400;font-size:12px;color:#b9c3d6;margin-top:2px}.shop-side nav{display:flex;flex-direction:column;gap:4px}.shop-side nav button{background:transparent;border:0;color:#dce3f0;font:inherit;font-size:15px;text-align:left;padding:11px 12px;border-radius:10px;cursor:pointer;display:flex;align-items:center;gap:6px}.shop-side nav button:hover{background:#ffffff12}.shop-side nav button.on{background:#ffffff24;color:#fff;box-shadow:inset 3px 0 0 var(--sr);font-weight:600}.shop-pill{margin-left:auto;background:var(--sr);color:#fff;border-radius:999px;font-size:12px;padding:1px 8px;font-weight:700}.shop-pill-ghost{background:#ffffff2e}.shop-me{margin-top:auto;font-size:14px;padding:10px 8px;border-top:1px solid rgba(255,255,255,.15);display:flex;flex-direction:column}.shop-me small{color:#b9c3d6}.shop-main{min-width:0}.shop-board{display:flex;gap:12px;padding:14px;overflow-x:auto;align-items:flex-start;min-height:100vh}.shop-col{flex:0 0 272px;background:#e3e8f0;border-radius:14px;display:flex;flex-direction:column;max-height:calc(100vh - 28px)}.shop-col-head{background:linear-gradient(180deg,#3646b4,var(--si));color:#fff;border-radius:14px 14px 0 0;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:15px}.shop-col-head b{background:#fff;color:var(--sr);border-radius:8px;min-width:30px;text-align:center;padding:1px 6px;font-size:16px}.shop-col-urgent .shop-col-head{background:linear-gradient(180deg,#e2384e,#a81c2e)}.shop-col-urgent .shop-col-head b{color:#a81c2e}.shop-col-body{padding:8px;display:flex;flex-direction:column;gap:8px;overflow-y:auto}.shop-empty{text-align:center;color:#9aa3b5;padding:18px 0}.shop-card{all:unset;box-sizing:border-box;cursor:pointer;background:#fff;border-radius:12px;border:1px solid var(--sline);box-shadow:0 2px 6px #14284b12;display:grid;grid-template-columns:64px 1fr;grid-template-rows:auto auto;gap:8px;padding:8px;position:relative}.shop-card:hover{border-color:#aeb8cc;box-shadow:0 4px 12px #14284b1f}.shop-card:focus-visible{outline:3px solid var(--si);outline-offset:2px}.shop-card.is-urgent{border-left:4px solid var(--sr)}.shop-card.is-fresh{animation:shopPulse 1.2s ease-in-out infinite;border-color:var(--sr)}@keyframes shopPulse{50%{box-shadow:0 0 0 4px #d7263d40}}.shop-card-photo{width:64px;height:64px;border-radius:10px;overflow:hidden;background:linear-gradient(160deg,#1d3a6e,#0c1a33);display:flex;align-items:center;justify-content:center;font-size:28px}.shop-card-photo img{width:100%;height:100%;object-fit:cover}.shop-card-body{min-width:0;display:flex;flex-direction:column;gap:2px}.shop-card-top{display:flex;justify-content:space-between;gap:6px;align-items:baseline}.shop-plate{font-weight:600;font-size:16px;color:var(--sn);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shop-jobno{font-size:11px;color:var(--smuted);white-space:nowrap}.shop-card-veh,.shop-card-cust{font-size:13px;color:var(--smuted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shop-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.shop-chip{font-size:12px;border-radius:999px;padding:2px 8px;font-weight:600}.shop-chip-warn{background:#fff1d6;color:#7a4f00}.shop-chip-plain{background:#eef1f5;color:var(--smuted);font-weight:500}.shop-time{grid-column:1 / -1;display:flex;gap:10px;align-items:baseline;background:#f3f5f9;border-radius:8px;padding:4px 8px;font-size:12px;color:var(--smuted)}.shop-time b{color:var(--sn);font-size:14px}.shop-time.is-late{background:#fde4e4}.shop-time.is-late b{color:var(--sr)}.shop-list{padding:18px}.shop-h1{margin:0 0 14px;font-size:22px;display:flex;gap:10px;align-items:center}.shop-count{background:var(--si);color:#fff;border-radius:8px;padding:0 10px;font-size:16px}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}.shop-drawer-wrap{position:fixed;top:0;right:0;bottom:0;left:0;background:#0c1a3359;display:flex;justify-content:flex-end;z-index:20}.shop-drawer{width:min(520px,100%);height:100%;overflow-y:auto;background:#fff;box-shadow:-8px 0 24px #0c1a3340;padding:18px 20px 40px;display:flex;flex-direction:column;gap:14px}.shop-drawer-head{display:flex;justify-content:space-between;gap:10px;border-bottom:3px solid var(--sr);padding-bottom:10px}.shop-drawer-head h2{margin:2px 0;font-size:24px;color:var(--sn)}.shop-status-now{background:#eef1fb;color:var(--si);border-radius:10px;padding:8px 12px}.shop-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.shop-msg{border-radius:10px;padding:8px 12px;font-size:14px}.shop-msg.ok{background:#e3f5ea;color:#1e6b3a}.shop-msg.err{background:#fde4e4;color:#a12828}.shop-sec h3,.shop-quote h3{margin:0 0 6px;font-size:16px;padding-left:10px;border-left:4px solid var(--sr)}.shop-sec p{margin:4px 0}.shop-cust{display:flex;gap:10px;align-items:center}.shop-cust img{width:48px;height:48px;border-radius:50%;object-fit:cover}.shop-link{color:var(--si);font-weight:600;text-decoration:none;display:inline-block;margin-top:2px}.shop-warn{color:#7a4f00;background:#fff1d6;border-radius:8px;padding:4px 8px;display:inline-block}.shop-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.shop-photos figure{margin:0;display:flex;flex-direction:column;gap:3px}.shop-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;box-shadow:0 0 0 1px var(--sline)}.shop-photos figcaption{font-size:12px;color:var(--smuted)}.shop-photo-drive{aspect-ratio:1;border-radius:10px;background:#eef1f5;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--si);text-decoration:none}.shop-log{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:14px}.shop-log time{color:var(--smuted);margin-right:6px}.shop-log small{color:var(--smuted)}.shop-log .is-undone{text-decoration:line-through;opacity:.6}.shop-quote{background:#f6f8fb;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px}.shop-qrow{display:grid;grid-template-columns:1fr 70px 100px 40px;gap:6px}.shop-qrow input{font:inherit;font-size:15px;border:1px solid #CBD3E1;border-radius:8px;padding:8px;min-width:0}.shop-qtotal{font-size:15px}.shop-qtotal b{color:var(--sr);font-size:18px}.sbtn{font:inherit;font-size:15px;font-weight:500;border-radius:10px;min-height:42px;padding:0 14px;border:0;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:4px}.sbtn:disabled{opacity:.55;cursor:default}.sbtn-primary{background:linear-gradient(180deg,#1d3a6e,#0c1a33);color:#fff;box-shadow:0 3px 10px #0c1a334d}.sbtn-outline{background:#fff;color:var(--sn, #14284B);border:1.5px solid currentColor}.sbtn-ghost{background:#eef1f5;color:#1b2333}.sbtn-danger-ghost{background:transparent;color:#a12828;border:1px solid #F0B8B8}.shop-muted{color:#5b6478;font-size:14px}.shop-splash{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;background:linear-gradient(160deg,#1d3a6e,#14284b 55%,#0c1a33);color:#fff;font-family:Sarabun,system-ui,sans-serif}.shop-splash .shop-muted{color:#c9d2e6}.shop-logo{font-family:Kanit,sans-serif;font-size:30px;font-weight:700}.shop-code{background:#ffffff1f;border:1px solid rgba(255,255,255,.3);padding:8px 12px;border-radius:8px;font-size:14px;-webkit-user-select:all;user-select:all}@media (max-width: 760px){.shop{grid-template-columns:1fr}.shop-side{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;box-shadow:inset 0 -3px #d7263d}.shop-side nav{flex-direction:row;flex-wrap:wrap}.shop-me{display:none}.shop-board{min-height:auto}}:root{--navy: #1B2A4A;--indigo: #2F3E9E;--bg: #EEF1F5;--card: #FFFFFF;--line: #DDE3EE;--text: #1B2333;--muted: #5B6478;--red: #C62F2F;--green: #1E6B3A;--amber: #7A4F00;font-family:Sarabun,system-ui,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;-webkit-text-size-adjust:100%}h1,h2,h3,.brand,.btn,.tile,.badge,legend,.seg button{font-family:Kanit,Sarabun,sans-serif}.page{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:5;background:var(--navy);color:#fff;display:flex;align-items:center;gap:8px;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top))}.topbar h1{font-size:19px;font-weight:500;margin:0}.back{color:#fff;text-decoration:none;font-size:30px;line-height:1;width:44px;height:44px;display:flex;align-items:center;justify-content:center}.back-spacer{width:8px}.content{padding:16px;display:flex;flex-direction:column;gap:14px;max-width:560px;width:100%;margin:0 auto;padding-bottom:max(24px,env(safe-area-inset-bottom))}.hero{background:var(--navy);color:#fff;padding:28px 18px 22px;padding-top:max(28px,env(safe-area-inset-top))}.hero h1{margin:6px 0 2px;font-size:24px;font-weight:600}.hero p{margin:0;color:#c9d2e6}.brand{font-weight:700;letter-spacing:.5px;color:#c9d2e6}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text);text-decoration:none;font-size:17px;font-weight:500;min-height:110px;justify-content:center}.tile-icon{font-size:30px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}.card.vehicle{flex-direction:row;align-items:center;justify-content:space-between}.form{gap:12px}.field{display:flex;flex-direction:column;gap:4px}.field-label{font-size:14px;color:var(--muted)}.field-hint{font-size:12px;color:var(--muted)}input,select,textarea{font:inherit;font-size:16px;border:1px solid #CBD3E1;border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);width:100%;min-height:44px}textarea{resize:vertical}.group{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}legend{font-weight:500;font-size:16px;margin-bottom:6px;padding:0}.btn{font-size:16px;font-weight:500;border-radius:12px;min-height:48px;padding:0 16px;border:0;cursor:pointer}.btn:disabled{opacity:.6}.btn-primary{background:var(--indigo);color:#fff}.btn-danger{background:var(--red);color:#fff}.btn-outline{background:#fff;color:var(--indigo);border:1px solid var(--indigo)}.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.btn-big{min-height:56px;font-size:18px}.seg{display:flex;background:#e6eaf2;border-radius:12px;padding:4px;gap:4px}.seg button{flex:1;border:0;background:transparent;min-height:40px;border-radius:9px;font-size:15px;color:var(--text)}.seg button.on{background:#fff;color:var(--indigo);font-weight:600;box-shadow:0 1px 2px #00000014}.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.row3{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px}.check{display:flex;align-items:center;gap:8px;font-size:15px}.check input{width:22px;min-height:22px}.choices{display:flex;flex-direction:column;gap:8px}.choice{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}.choice input{width:20px;min-height:20px;grid-row:span 2}.choice.on{border-color:var(--indigo);box-shadow:0 0 0 1px var(--indigo)}.plate{font-weight:600;font-size:17px}.muted{color:var(--muted);font-size:14px;margin:0}.small-link{font-size:14px;color:var(--indigo)}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.photo-cell{aspect-ratio:1;border-radius:12px;overflow:hidden;position:relative;background:#fff;border:1px dashed #AEB8CC}.photo-cell img{width:100%;height:100%;object-fit:cover}.photo-add{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px;color:var(--muted);cursor:pointer}.photo-plus{font-size:24px;color:var(--indigo)}.photo-remove{position:absolute;top:4px;right:4px;width:32px;height:32px;border-radius:50%;border:0;background:#0009;color:#fff;font-size:20px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #CBD3E1;background:#fff;border-radius:999px;min-height:44px;padding:0 16px;font:inherit;font-size:15px}.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}.notice{border-radius:12px;padding:10px 12px;font-size:15px;background:#e6eafb;color:var(--indigo)}.notice-ok{background:#e3f5ea;color:var(--green)}.notice-warn{background:#fff1d6;color:var(--amber)}.notice-error{background:#fde4e4;color:#a12828}.ok-text{color:var(--green);margin:0;font-size:14px}.warn-text{color:var(--amber);margin:0;font-size:14px}.lead{margin:0;color:var(--muted)}.section{font-size:17px;margin:6px 0 0}.job-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.badge{color:#fff;border-radius:999px;padding:4px 10px;font-size:13px;font-weight:500}.job.highlight{border-color:var(--indigo);box-shadow:0 0 0 2px #c9d0f5}.quote{background:#f6f8fb;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px}.quote h3{margin:0 0 4px;font-size:16px}.quote-row{display:flex;justify-content:space-between;font-size:15px}.quote-row.total{font-weight:700;font-size:18px;color:var(--red);border-top:1px solid var(--line);padding-top:6px}details summary{cursor:pointer;color:var(--indigo);font-size:14px;min-height:32px}.timeline{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:14px}.timeline li span{margin-right:8px}.timeline time{color:var(--muted)}.pay-amount strong{font-size:24px;color:var(--red)}.splash{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:var(--navy);color:#fff;padding:24px;text-align:center}.splash .brand{font-size:28px;color:#fff}:root{--navy-1: #1d3a6e;--navy-2: #14284B;--navy-3: #0c1a33;--chrome: rgba(208, 216, 230, .55);--race: #D7263D}body{background:linear-gradient(180deg,#e9edf4,#f3f5f9 260px,#eef1f5)}.topbar,.hero{background:linear-gradient(160deg,var(--navy-1) 0%,var(--navy-2) 55%,var(--navy-3) 100%);box-shadow:inset 0 -3px 0 var(--race),0 4px 14px #0c1a3347}.topbar{padding-bottom:13px}.topbar h1{font-weight:600;letter-spacing:.2px;text-shadow:0 1px 2px rgba(0,0,0,.4)}.back{border-radius:12px}.back:active{background:#ffffff1f}.hero{padding-bottom:26px}.hero h1{text-shadow:0 1px 3px rgba(0,0,0,.45)}.brand{background:linear-gradient(180deg,#fff,#b9c3d6);-webkit-background-clip:text;background-clip:text;color:transparent}.card{border:1px solid #D5DCE8;border-radius:16px;box-shadow:0 1px #fff inset,0 4px 14px #14284b14;position:relative}.card:before{content:"";position:absolute;left:14px;right:14px;top:0;height:2px;border-radius:0 0 2px 2px;background:linear-gradient(90deg,transparent,rgba(20,40,75,.25),transparent)}.job.highlight{border-color:var(--race);box-shadow:0 0 0 2px #d7263d40,0 4px 14px #14284b14}legend,.section{position:relative;padding-left:10px}legend:before,.section:before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:4px;border-radius:2px;background:var(--race)}.plate{font-family:Kanit,Sarabun,sans-serif;color:var(--navy-2)}.btn{transition:transform .1s ease,box-shadow .1s ease}.btn:active:not(:disabled){transform:scale(.98)}.btn-primary{background:linear-gradient(180deg,var(--navy-1),var(--navy-3));box-shadow:0 0 0 1px var(--chrome),0 4px 12px #0c1a334d,inset 0 1px #ffffff2e}.btn-danger{background:linear-gradient(180deg,#e2384e,#a81c2e);box-shadow:0 4px 12px #a81c2e4d,inset 0 1px #fff3}.btn-outline{color:var(--navy-2);border:1.5px solid var(--navy-2);background:#fff;box-shadow:0 2px 6px #14284b14}.link-btn{background:none;border:0;padding:6px 0;text-align:left;font:inherit;font-size:15px;color:var(--navy-1);cursor:pointer;min-height:36px}.seg{background:#dde3ee}.seg button.on{color:var(--navy-2);box-shadow:inset 0 -3px 0 var(--race),0 1px 3px #0000001f}.chip.on{background:linear-gradient(180deg,var(--navy-1),var(--navy-3));border-color:var(--navy-3);box-shadow:0 2px 6px #0c1a3340}.choice.on{border-color:var(--navy-2);box-shadow:0 0 0 1px var(--navy-2),inset 4px 0 0 var(--race)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--navy-1);box-shadow:0 0 0 3px #1d3a6e2e}.photo-cell{border-color:#9aa7bf;background:linear-gradient(180deg,#fff,#f2f5fa)}.photo-plus,.quote-row.total{color:var(--race)}.vphotos{display:flex;flex-direction:column;gap:8px;border-top:1px dashed var(--line);padding-top:10px}.vphoto-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.vphoto{margin:0;flex:0 0 74px;display:flex;flex-direction:column;gap:3px;align-items:center}.vphoto img,.vphoto-stored{width:74px;height:74px;border-radius:10px;object-fit:cover;box-shadow:0 0 0 1px #cbd3e1}.vphoto-stored{display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,var(--navy-1),var(--navy-3));color:#fff;font-size:22px}.vphoto figcaption{font-size:12px;color:var(--muted)}.pay-qr{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}.pay-qr img{width:240px;height:240px;max-width:100%}
