/* หน้าแรก (home) ตามต้นแบบ home-rich-v2 ที่ประธานต้าอนุมัติ 21 พ.ย. 2026 — ใช้ร่วมกับ info.css ไม่ใช้ app.css */
:root {
  --bg: #FBF7EE; --surface: #fff; --ink: #3F5A4A; --muted: #57725F; --line: #E3E9DF; --line-2: #CFDDD2;
  --mint: #E3F1E6; --mist: #EEF6EE; --leaf: #6FB58A; --green: #4C8C66; --green-deep: #3E7A56; --green-ink: #2F6B4C;
  --warn: #8A5A12; --warn-bg: #FBF0DC;
  --display: "Kanit", "Sarabun", system-ui, sans-serif;
  --body: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(63, 90, 74, .06), 0 3px 10px rgba(63, 90, 74, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); overflow-x: hidden; overflow-x: clip; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.demo { margin: 0; background: var(--warn-bg); color: var(--warn); font-size: 14px; text-align: center; padding: 6px 16px; }
.nw { white-space: nowrap; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 0 10px; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 18px/1.2 var(--display); color: var(--green-deep); text-decoration: none; }
.brand::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6FB58A, #4C8C66); color: #fff; font-size: 22px; font-weight: 500; line-height: 1; }
.hr { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--green-deep); background: transparent; color: var(--green-deep); font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; }
.btn.pri { background: var(--green-deep); color: #fff; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.lg { min-height: 46px; padding: 0 24px; font-size: 16px; }
.btn.white { background: #fff; border-color: #fff; color: var(--green-ink); }
.top .info-btn { width: 40px; height: 40px; color: var(--green-deep); background: #fff; border-color: var(--line-2); opacity: 1; }
@media (max-width: 560px) { .hr { gap: 6px; } .btn.sm { padding: 0 11px; font-size: 13px; } }
@media (max-width: 340px) { .hide-m { display: none; } }

/* toast "ยังไม่เปิดให้ใช้" */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 14px; background: var(--green-ink); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 6px 20px rgba(23, 34, 29, .3); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; z-index: 20; text-align: center; }
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* hero: banner + map teaser */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 6px; }
.ban { position: relative; min-width: 0; }
.track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; overscroll-behavior-x: contain; border-radius: 24px; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 88%; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 24px; min-height: 236px; padding: 24px 22px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #E3F1E6 0%, #D3EAD9 100%); }
.slide.s0 { background: linear-gradient(135deg, #D3EAD9 0%, #BFE2CA 100%); }
.slide.s0 .sub { margin-bottom: 16px; }
.slide.s0 .btn { box-shadow: 0 2px 6px rgba(47, 107, 76, .25); }
.slide.s1 .sub { margin-bottom: 16px; }
.slide.s1 { background: linear-gradient(135deg, #EEF6EE 0%, #E3F1E6 100%); }
.slide.s2 { background: linear-gradient(135deg, #FFF3D6, #F6E6BC); color: #5d4410; }
.slide .tx { position: relative; z-index: 2; max-width: 60%; }
.slide h1, .slide h2 { font: 600 26px/1.25 var(--display); color: var(--green-ink); text-wrap: balance; }
.slide.s2 h2 { color: #6b4d0f; }
.slide .sub { margin: 8px 0 16px; color: var(--muted); font-size: 15px; }
.slide.s2 .sub { color: #7a5d1d; }
.slide.s2 .btn { border-color: #6b4d0f; color: #6b4d0f; }
.slide .art { position: absolute; right: -14px; bottom: -6px; width: 58%; max-width: 380px; height: auto; z-index: 1; }
.ctl { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; }
.dots { display: flex; align-items: center; }
.dots button { width: 24px; height: 28px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; border-radius: 8px; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: width .2s, background .2s; }
.dots button[aria-current="true"]::before { width: 24px; border-radius: 99px; background: var(--green-deep); }
.dots button[aria-current="true"] { width: 32px; }
.nav { display: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); color: var(--green-ink); font-size: 20px; line-height: 1; padding: 0 0 3px; place-items: center; }
.pp { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.pp .i-play, .pp[aria-pressed="true"] .i-pause { display: none; }
.pp[aria-pressed="true"] .i-play { display: block; }
.teaser { position: relative; display: block; height: 240px; border-radius: 22px; overflow: hidden; background: #17221D; border: 2px solid #0a1020; box-shadow: 0 6px 18px rgba(23, 34, 29, .28); text-decoration: none; color: #fff; -webkit-tap-highlight-color: transparent; }
.teaser:focus-visible { outline-color: var(--green-deep); outline-offset: 3px; }
.mapsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.legend { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.legend span { display: inline-flex; align-items: center; gap: 4px; background: rgba(10, 16, 32, .72); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 2px 9px 2px 7px; font-size: 12px; font-weight: 700; line-height: 1.5; color: #fff; }
.lsq { width: 11px; height: 11px; border-radius: 3px; background: #fff; border: 2px solid #0a1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.lrd { width: 10px; height: 10px; border-radius: 50%; background: #2ee66b; border: 1.5px solid #0a1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); margin-right: -1px; }
.lrd.y { background: #ffe14d; }
.lrd.v { background: #b794f6; margin-right: 3px; }
.bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 48px; border-radius: 14px; background: var(--green-deep); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; z-index: 2; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); border: 1.5px solid rgba(255, 255, 255, .25); }
.bar b { font: 500 17px/1 var(--display); flex: 1; white-space: nowrap; }
.go { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; transition: transform .2s; }
.teaser:hover .go { transform: translateX(3px); }
.pin { transform-box: fill-box; transform-origin: 50% 100%; animation: pop .55s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-14px) scale(.2); } to { opacity: 1; transform: none; } }
.ring { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
.ring.r2 { animation-delay: 1s; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin, .ring { animation: none; } .ring { opacity: .3; } .go, .toast, .dots button::before { transition: none; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; height: 320px; }
  .ban { display: flex; flex-direction: column; }
  .track { flex: 1; min-height: 0; }
  .slide { min-height: 0; flex-basis: 100%; padding: 32px 40px; }
  .slide h1, .slide h2 { font-size: 36px; }
  .slide .sub { font-size: 17px; margin: 8px 0 0; }
  .slide .sub { margin-bottom: 18px; }
  .slide .tx { max-width: 54%; }
  .slide.s1 .tx { max-width: 52%; }
  .slide .art { width: 50%; right: 8px; }
  .ctl { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; z-index: 3; }
  .nav { display: grid; }
  .teaser { height: 100%; border-radius: 24px; }
  .bar b { font-size: 18px; }
}
@media (max-width: 380px) {
  .slide h1, .slide h2 { font-size: 24px; }
  .bar b { font-size: 16px; }
  .legend { left: 8px; top: 8px; gap: 4px; }
  .legend span { font-size: 11.5px; padding: 2px 7px 2px 6px; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.stats li { background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; text-align: center; min-width: 0; }
.stats b { display: block; font: 600 18px/1.2 var(--display); color: var(--muted); }
.stats span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }
.stats-h { display: flex; justify-content: flex-end; margin-top: 8px; }
.stats-h:has(.pill[hidden]) { display: none; }
.pill { display: inline-block; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 9px; line-height: 1.6; }

/* layout + ad rail */
.cols { display: block; }
.rail { display: none; }
@media (min-width: 1100px) {
  .wrap { padding: 0 24px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  .rail { display: block; position: sticky; top: 16px; margin-top: 22px; }
}
.ad { position: relative; border: 2px dashed var(--line-2); border-radius: 16px; background: repeating-linear-gradient(45deg, #f6f3ea 0 10px, #f1eee3 10px 20px); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.ad b { font: 500 16px/1.4 var(--display); }
.ad small { font-size: 13px; }
.ad .sp { position: absolute; top: 8px; right: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.6; }
.ad.mob { height: 100px; max-width: 320px; margin: 18px auto 0; }
.ad.desk { display: none; height: 90px; max-width: 728px; margin: 18px auto 0; }
.ad.rect { height: 250px; width: 300px; }
@media (min-width: 900px) { .ad.mob { display: none; } .ad.desk { display: flex; } }

/* feed panels */
.sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.sec-h .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.sec-h h2 { font: 600 21px/1.3 var(--display); color: var(--ink); }
.sec-h .more { color: var(--green-deep); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; padding: 10px 0 10px 6px; }
.sec-h .more:hover { text-decoration: underline; }
.mk { flex: none; display: grid; place-items: center; background: #fff; border: 2px solid #17221D; box-shadow: 0 1px 0 rgba(23, 34, 29, .25); }
.sq { width: 40px; height: 40px; border-radius: 10px; }
.rdm { width: 40px; height: 40px; border-radius: 50%; background: #2ee66b; }
.tagb { font-size: 12px; font-weight: 700; line-height: 1.5; padding: 0 9px; }
.tagb.j { border: 1.5px solid #17221D; border-radius: 6px; background: #fff; color: #17221D; }
.tagb.s { border: 1.5px solid var(--green-deep); border-radius: 999px; background: #fff; color: var(--green-deep); }
.panel { border-radius: 22px; padding: 16px 14px 14px; margin-top: 22px; min-width: 0; }
.panel.jobs-panel { background: #FFFDF7; border: 1px solid #EADFC4; border-radius: 14px; }
.panel.ps { background: var(--mint); border: 1px solid #CFE5D5; }
@media (min-width: 600px) { .panel { padding: 20px 20px 18px; } }
.feed-msg { padding: 14px 4px; color: var(--muted); }
.rowj { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -14px; padding: 2px 14px 10px; scrollbar-width: none; }
.rowj::-webkit-scrollbar { display: none; }
.rowj > .feed-msg { flex: 1; }
.job { position: relative; flex: 0 0 244px; scroll-snap-align: start; background: #fff; border: 1px solid #E6DCC3; border-radius: 10px; box-shadow: 0 1px 2px rgba(63, 90, 74, .06); padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job.collected { border: 1.5px dashed #CDBF9B; background: #FFFEFA; }
.jt { display: flex; align-items: center; gap: 10px; padding-right: 40px; min-height: 40px; }
.jt .mk { width: 40px; height: 40px; border-radius: 9px; }
.jn { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.store { font-size: 13px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.vtick { color: #c9a400; font-weight: 700; margin-left: 3px; }
.bd { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 5px; line-height: 1.5; }
.bd.off { background: var(--green-deep); color: #fff; }
.bd.col { background: #fff; color: var(--muted); border: 1px dashed #BDAE86; }
.job h3, .seek h3 { font: 500 18px/1.35 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.job h3 { margin-top: 8px; }
.seek h3 { font-size: 17px; }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.job:hover, .seek:hover { box-shadow: 0 2px 4px rgba(63, 90, 74, .1), 0 6px 16px rgba(63, 90, 74, .12); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
.etag { display: inline-block; padding: 1px 9px; border-radius: 6px; background: #F4EEDC; color: #5d5230; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.seek .etag { border-radius: 999px; background: #fff; border: 1px solid #CFE5D5; color: var(--green-ink); }
.loc { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.loc svg { flex: none; color: var(--green); }
.sal { font-weight: 700; font-size: 14px; color: var(--green-ink); margin-top: 2px; }
.date { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.bm { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 9px; border: 0; background: #F4EEDC; color: var(--green-deep); display: grid; place-items: center; padding: 0; z-index: 2; }
.bm svg { fill: none; }
.bm[aria-pressed="true"] { background: var(--green-deep); color: #fff; }
.bm[aria-pressed="true"] svg { fill: currentColor; }
@media (min-width: 900px) {
  .rowj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; margin: 0; padding: 0; }
  .job { flex: none; }
  .rowj > .feed-msg { grid-column: 1 / -1; }
}
.sgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .sgrid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); } }
.seek { position: relative; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #CFE5D5; border-radius: 36px; padding: 10px 62px 10px 10px; box-shadow: 0 1px 2px rgba(63, 90, 74, .06); min-width: 0; }
.seek .bm { top: 50%; right: 10px; margin-top: -20px; border-radius: 50%; background: var(--mist); }
.seek .bm[aria-pressed="true"] { background: var(--green-deep); }
.av { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3.5px solid #1f9d4f; background: #E6F6EC; color: #1f9d4f; display: grid; place-items: center; }
.av.r-assistant { border-color: #c9a400; background: #FFF6CC; color: #c9a400; }
.av.r-other { border-color: #8b5cf6; background: #F0EAFE; color: #8b5cf6; }
.sb { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.seek .tags { margin: 2px 0 0; }
.seek .date { padding-top: 2px; margin: 0; }
@media (max-width: 380px) {
  .sec-h { gap: 8px; }
  .sec-h h2 { font-size: 19px; }
  .sq, .rdm { width: 34px; height: 34px; }
  .sec-h .more { font-size: 14px; }
  .panel { padding: 14px 12px 12px; }
  .rowj { margin: 0 -12px; padding: 2px 12px 10px; }
}

/* CTA + footer */
.cta { margin: 30px 0 0; background: linear-gradient(135deg, #2F6B4C, #4C8C66); border-radius: 24px; padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font: 600 24px/1.3 var(--display); color: #fff; }
.cta p { color: #dcefe3; margin: 4px 0 18px; font-size: 15px; }
.cta .bs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta .bl { position: absolute; border-radius: 50%; background: #fff; opacity: .12; }
.cta .b1 { width: 120px; height: 120px; left: -30px; bottom: -40px; }
.cta .b2 { width: 80px; height: 80px; right: -16px; top: -24px; }
.cta .btn { background: transparent; border-color: #fff; color: #fff; }
.cta .btn.pri { background: #fff; color: var(--green-ink); }
.cta :focus-visible, .teaser:focus-visible { outline-color: #fff; }
.teaser:focus-visible { outline-color: var(--green-deep); }
.foot { padding: 20px 0 28px; text-align: center; font-size: 13px; color: var(--muted); }

/* ===== คนหางานเด่นกว่า (ประธานต้า t88u 21 พ.ย. 2026): แถบมิ้นต์ใหญ่ขึ้นก่อน ร้านประกาศเงียบลง ===== */
.panel.band { margin-top: 20px; padding: 20px 14px 18px; border-radius: 26px; background: linear-gradient(180deg, #D3EAD9 0%, var(--mint) 100%); border: 1px solid #B9DEC4; box-shadow: 0 6px 20px rgba(76, 140, 102, .14); }
.band .sec-h { margin-bottom: 16px; gap: 12px; }
.band .rdm { width: 52px; height: 52px; border-width: 2.5px; }
.band .rdm svg { width: 30px; height: 30px; }
.band .sec-h h2 { font-size: 27px; line-height: 1.2; color: var(--green-ink); }
.band .sec-h .more { font-size: 16px; }
.band .sgrid { gap: 12px; }
.band .seek { padding: 12px 66px 12px 12px; gap: 14px; border-radius: 40px; box-shadow: 0 1px 3px rgba(63, 90, 74, .1); }
.band .av { width: 62px; height: 62px; }
.band .seek h3 { font-size: 19px; }
.panel.jobs-panel.quiet { margin-top: 22px; padding: 12px 12px 8px; background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; }
.quiet .sec-h { margin-bottom: 8px; gap: 8px; }
.quiet .sq { width: 30px; height: 30px; border-width: 1.5px; border-radius: 8px; }
.quiet .sq svg { width: 18px; height: 18px; }
.quiet .sec-h h2 { font-size: 17px; color: var(--muted); }
.quiet .sec-h .more { font-size: 14px; padding: 10px 0 10px 6px; }
.quiet .tagb { display: none; }
@media (max-width: 599px) {
  .panel.band { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 20px 16px 18px; }
  .panel.jobs-panel.quiet { padding-left: 0; padding-right: 0; }
}
@media (min-width: 600px) { .panel.band { padding: 26px 24px 24px; } .panel.jobs-panel.quiet { padding: 14px 4px 8px; } .band .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .band .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1099px) { .band .sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .band .seek { padding-right: 62px; } }
@media (max-width: 380px) {
  .panel.band { margin-left: -12px; margin-right: -12px; padding: 16px 12px 14px; }
  .band .sec-h h2 { font-size: 23px; }
  .band .rdm { width: 44px; height: 44px; }
  .band .sec-h .more { font-size: 15px; }
  .band .seek { padding-right: 60px; gap: 10px; }
  .band .av { width: 54px; height: 54px; }
  .band .seek h3 { font-size: 18px; }
}
@media (max-width: 899px) { .panel.jobs-panel.quiet { padding-left: 0; padding-right: 0; } .panel.jobs-panel.quiet .rowj { margin: 0 -16px; padding: 2px 16px 10px; } }

/* ===== t88u รอบ 2: ปุ่มดูทั้งหมดของคนหางาน, แถวร้านแนวนอนกะทัดรัดทุกขนาด, มือถือโชว์คนหางาน 6 ใบ ===== */
.band .sec-h .more { min-height: 44px; padding: 0 18px; font-size: 16px; color: #fff; }
.band .sec-h .more:hover { text-decoration: none; background: var(--green-ink); }
@media (max-width: 899px) { .band .seek:nth-child(n+7) { display: none; } }
@media (min-width: 900px) {
  .panel.jobs-panel.quiet .rowj { display: flex; overflow-x: auto; margin: 0 -4px; padding: 2px 4px 10px; }
  .panel.jobs-panel.quiet .job { flex: 0 0 236px; }
}
@media (min-width: 1500px) { .band .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .band .sec-h .more { padding: 0 12px; font-size: 14px; } }

/* ระบบสมาชิก (t92u): ป้ายความสด, ประกาศเก่าจาง, รูปประจำตัว */
.fresh { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #2F6B4C; }
.fresh.is-stale { color: #6b6f6c; font-weight: 500; }
.job.is-stale, .seek.is-stale { opacity: .66; }
.avatar-img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.av.has-photo { overflow: hidden; padding: 0; }

/* ===== หน้าแรกปรับลำดับตามจำนวนคนหางาน (t94u): data-layout บน <main> ตั้งโดย home.js =====
   seeker-first = ด้านบนทั้งหมด (.band คนหางานเด่น + .quiet ร้านเงียบ)
   jobs-first (และ pending) = .lead ร้านกำลังหาคนเป็นหัวข้อหลัก + .compact คนหางานกะทัดรัด + การ์ดเชิญ */
main[data-layout="pending"] #sec-seekers { display: none; }
main[data-layout="pending"] .ban .track { opacity: 0; }
.ban .track { transition: opacity .15s; }

.panel.jobs-panel.lead { margin-top: 20px; padding: 20px 14px 18px; border-radius: 26px; background: linear-gradient(180deg, #FFF3D6 0%, #FFFDF7 100%); border: 1px solid #EADFC4; box-shadow: 0 6px 20px rgba(138, 110, 40, .12); }
.lead .sec-h { margin-bottom: 16px; gap: 12px; }
.lead .sq { width: 52px; height: 52px; border-radius: 14px; border-width: 2.5px; }
.lead .sq svg { width: 30px; height: 30px; }
.lead .sec-h h2 { font-size: 27px; line-height: 1.2; color: #17221D; }
.lead .sec-h .more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--green-deep); color: #fff; font-size: 16px; }
.lead .sec-h .more:hover { text-decoration: none; background: var(--green-ink); }
.lead .rowj { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; overflow: visible; margin: 0; padding: 0; }
.lead .job { flex: none; padding: 14px; }
.lead .job h3 { font-size: 19px; }
@media (max-width: 899px) { .lead .job:nth-child(n+7) { display: none; } }
@media (min-width: 600px) { .panel.jobs-panel.lead { padding: 26px 24px 24px; } .lead .rowj { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .panel.jobs-panel.lead { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 20px 16px 18px; } }
@media (max-width: 380px) {
  .panel.jobs-panel.lead { margin-left: -12px; margin-right: -12px; padding: 16px 12px 14px; }
  .lead .sec-h h2 { font-size: 23px; }
  .lead .sq { width: 44px; height: 44px; }
  .lead .sec-h .more { padding: 0 12px; font-size: 14px; }
}

.panel.ps.compact { margin-top: 22px; padding: 14px 14px 14px; border-radius: 22px; }
.compact .sec-h { margin-bottom: 10px; gap: 10px; }
.compact .rdm { width: 34px; height: 34px; }
.compact .rdm svg { width: 20px; height: 20px; }
.compact .sec-h h2 { font-size: 18px; color: var(--green-ink); }
.compact .sec-h .more { background: transparent; color: var(--green-deep); border: 0; min-height: 40px; padding: 0 0 0 6px; font-size: 14px; }
.compact .sec-h .more:hover { text-decoration: underline; background: transparent; }
.compact .sgrid:empty { display: none; }
.compact .sgrid { margin-bottom: 10px; }
.invite { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px 10px 10px; border: 2px dashed #6FB58A; border-radius: 36px; background: #fff; color: var(--green-ink); text-align: left; }
.invite:hover { background: #F4FAF5; }
.inv-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #E6F6EC; border: 3px solid #1f9d4f; color: #1f9d4f; display: grid; place-items: center; }
.inv-ic svg { width: 22px; height: 22px; }
.inv-tx { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.inv-tx b { font: 600 17px/1.35 var(--display); display: block; }
.inv-go { flex: none; font-size: 26px; line-height: 1; color: var(--green-deep); }
@media (min-width: 600px) { .panel.ps.compact { padding: 18px 20px; } .invite { max-width: 520px; } }
@media (max-width: 599px) { .panel.ps.compact { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; } }
@media (max-width: 380px) { .panel.ps.compact { margin-left: -12px; margin-right: -12px; } }

/* สถานะว่าง (Supabase ตอบ 0 แถว) — ไม่ใช่ข้อมูลตัวอย่าง */
.empty-card { flex: 1; grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--mist); }
.empty-card .empty-title { margin: 0; font: 600 17px/1.3 var(--display); color: var(--ink); }
.empty-card .empty-text { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
/* t122u: ป้าย "พร้อมเริ่มงานทันที" (ตัวอักษรเขียวเข้มบนพื้นมิ้นต์ ขอบเขียว) */
.etag.rtag, .seek .etag.rtag { background: #E3F4E8; border: 1px solid #8CCB9F; color: #145A2E; }
.tags { max-width: 100%; }
.etag { max-width: 100%; white-space: normal; }
