
@media(max-width:600px){input,textarea,select{font-size:16px !important}}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html,body{overflow-x:hidden;max-width:100vw}html{scrollbar-gutter:stable}
body{font-family:-apple-system,BlinkMacSystemFont,'Inter','Noto Sans Thai',sans-serif;background:#f5f5f7;color:#1d1d1f;-webkit-font-smoothing:antialiased;min-height:100vh}
a{color:inherit}
.g-nav{background:#111;height:calc(64px + env(safe-area-inset-top,0px));position:sticky;top:0;z-index:300;padding:env(safe-area-inset-top,0px) 18px 0;display:flex;align-items:center}
.g-nav-inner{max-width:840px;margin:0 auto;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}
.g-nav-logo img{height:32px;filter:brightness(0) invert(1);display:block}
.nav-back{color:rgba(255,255,255,.8);text-decoration:none;font-size:13px;display:flex;align-items:center;gap:5px}
.page-head{background:radial-gradient(ellipse 85% 120% at 50% 0%, rgba(245,179,64,0.16), transparent 70%), #1d1d1f;color:#fff;padding:34px 20px 26px;text-align:center}
.page-head h1{font-size:24px;font-weight:800;margin-bottom:6px}
.page-head p{font-size:14px;color:rgba(255,255,255,.65)}
.wrap{max-width:840px;margin:0 auto;padding:16px}
.bar{display:flex;align-items:center;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.tabs{display:flex;gap:7px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex:1}
.tabs::-webkit-scrollbar{display:none}
.tab{background:#fff;border:1px solid #e5e5ea;border-radius:99px;padding:7px 14px;font-family:inherit;font-size:13px;font-weight:600;color:#3a3a3c;white-space:nowrap;cursor:pointer}
.tab.active{background:#1d1d1f;color:#fff;border-color:#1d1d1f}
.btn-post{background:#1d1d1f;color:#fff;border:none;border-radius:99px;padding:9px 16px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;display:flex;align-items:center;gap:5px;flex-shrink:0}
.card{background:#fff;border-radius:14px;box-shadow:0 1px 6px rgba(0,0,0,.07);padding:14px;display:flex;gap:12px;align-items:center;margin-bottom:12px}
.card-img{width:48px;height:64px;border-radius:8px;background:#f0f0f5;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:22px;object-fit:cover;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-info{flex:1;min-width:0}
.card-name{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-meta{font-size:12px;color:#6e6e73;margin-top:2px}
.card-budget{font-size:13px;font-weight:700;color:#1d1d1f;margin-top:5px}
.resp{font-size:11px;color:#0f766e;background:#e1f5ee;padding:2px 8px;border-radius:99px;margin-left:6px}
.card-by{font-size:11px;color:#aeaeb2;margin-top:3px}
.btn-have{background:#06C755;color:#fff;border:none;border-radius:99px;padding:8px 12px;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap;flex-shrink:0}
.btn-mine{background:#f5f5f7;color:#6e6e73;border:none;border-radius:99px;padding:7px 11px;font-family:inherit;font-size:12px;cursor:pointer;flex-shrink:0}
.state{text-align:center;padding:60px 20px;color:#6e6e73}
.state .ico{font-size:44px;margin-bottom:12px}

.ov{position:fixed;inset:0;background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:500;display:none;align-items:center;justify-content:center;padding:20px;overflow-y:auto}
.ov.open{display:flex}
.modal{background:#fff;width:100%;max-width:440px;max-height:92vh;display:flex;flex-direction:column;border-radius:20px;overflow:hidden;position:relative}
.modal-h{padding:16px 20px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.modal-h h3{font-size:16px;font-weight:800}
.modal-x{background:none;border:none;font-size:20px;color:#6e6e73;cursor:pointer}
.modal-b{padding:18px 20px;overflow-y:auto;flex:0 1 auto;min-height:0}
.fg{margin-bottom:13px}
.fg label{display:block;font-size:13px;font-weight:600;color:#3a3a3c;margin-bottom:5px}
.fg input,.fg select,.fg textarea{width:100%;padding:10px 13px;border:1.5px solid #e5e5ea;border-radius:10px;background:#f5f5f7;font-family:inherit;font-size:14px;outline:none}
.fg .hint{font-size:11.5px;color:#aeaeb2;margin-top:4px}
.err{display:none;background:#fff0f0;color:#e63946;border-radius:10px;padding:10px 13px;font-size:13px;margin-bottom:12px}
.submit{width:100%;background:#1d1d1f;color:#fff;border:none;border-radius:12px;padding:14px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
@media(max-width:480px){.ov{padding:0;align-items:flex-end}.modal{max-width:100%;max-height:90vh;border-radius:20px 20px 0 0}}
.toast{position:fixed;bottom:max(24px, calc(24px + env(safe-area-inset-bottom)));left:50%;transform:translateX(-50%) translateY(80px);background:#1d1d1f;color:#fff;border-radius:99px;padding:11px 20px;font-size:13px;z-index:9000;transition:transform .3s;pointer-events:none;max-width:90%;text-align:center}
.toast.show{transform:translateX(-50%) translateY(0)}

.name-dd{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid #e5e5ea;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.15);max-height:300px;overflow:auto;z-index:20;margin-top:4px}
.name-dd-item{display:flex;gap:9px;align-items:center;padding:8px 10px;cursor:pointer;border-bottom:1px solid #f5f5f7}
.name-dd-item.focused{background:#f5f7ff}
.name-dd-thumb{width:34px;height:48px;object-fit:cover;border-radius:5px;flex-shrink:0;background:#f0f0f5}
.name-dd-thumb-ph{width:34px;height:48px;border-radius:5px;background:#f0f0f5;flex-shrink:0}
.name-dd-info{min-width:0}
.name-dd-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.name-dd-sub{font-size:11px;color:#aeaeb2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.name-dd-msg{padding:12px;text-align:center;color:#aeaeb2;font-size:13px}

.offer{background:#fff;border:1px solid #eee;border-radius:14px;padding:12px;display:flex;gap:12px;margin-bottom:10px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.offer-img{width:66px;height:90px;object-fit:cover;border-radius:9px;flex-shrink:0;cursor:zoom-in;background:#f0f0f5}
.offer-ph{width:66px;height:90px;border-radius:9px;background:#f0f0f5;display:flex;align-items:center;justify-content:center;font-size:26px;flex-shrink:0}
.offer-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.offer-name{font-size:14px;font-weight:700}
.offer-price{font-size:17px;font-weight:800;color:#0f766e}
.offer-note{font-size:13px;color:#3a3a3c;margin-top:4px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.offer-actions{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap;align-items:center}
.offer-actions a,.offer-actions button{font-family:inherit;font-size:12px;font-weight:700;border-radius:99px;padding:6px 13px;text-decoration:none;border:none;cursor:pointer}
.a-chat{background:#0866ff;color:#fff}

.a-alt{align-self:center}
.a-alt summary{list-style:none;cursor:pointer;background:#f0f0f5;color:#6e6e73;font-family:inherit;font-size:12px;font-weight:700;border-radius:99px;padding:6px 13px;display:inline-block;user-select:none}
.a-alt summary::-webkit-details-marker{display:none}
.a-alt summary::after{content:' ▾'}
.a-alt[open] summary::after{content:' ▴'}
.a-alt-row{display:flex;gap:7px;flex-wrap:wrap;width:100%;margin-top:7px}
.a-line{background:#06C755;color:#fff}
.a-fb{background:#1877f2;color:#fff}
.a-tel{background:#0ea5e9;color:#fff}
.a-card{background:#1d1d1f;color:#fff}
.a-del{background:#fff;color:#e63946;border:1px solid #f3c6c9!important}

.lb{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:9999;display:none;align-items:center;justify-content:center;padding:20px;cursor:zoom-out}
.lb.open{display:flex}
.lb img{max-width:100%;max-height:100%;border-radius:10px}



input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}


@media(max-width:600px){
  .tab,.btn-have,.btn-mine{min-height:40px}
  .offer-actions a,.offer-actions button{min-height:40px;display:inline-flex;align-items:center}
}
