/* Crew Up — หาเพื่อนร่วมทีม (สไตล์แอป /crewup)
   มือถือ: แถบเมนูล่าง · แท็บเล็ต / คอม: เมนูบน + ฟีดแบบแถบกรองด้านซ้าย + รายละเอียดประกาศสองคอลัมน์ */
.cu-body {
  --cu-ink: #18181b; --cu-muted: #71717a; --cu-line: #e7e5e4; --cu-soft: #f4f4f5; --cu-bg: #f6f6f7; --cu-card: #fff;
  --cu-accent: #522abe; --cu-accent-ink: #560da6; --cu-accent-soft: #fff1e6;
  --cu-ok: #15803d; --cu-ok-soft: #dcfce7; --cu-bad: #b91c1c; --cu-bad-soft: #fee2e2;
  --cu-radius: 16px; --cu-shadow: 0 1px 2px rgba(24,24,27,.04), 0 4px 16px rgba(24,24,27,.04);
  --cu-tabbar-h: 62px; --cu-top-h: 60px; --cu-max: 1320px;
}
.cu-root { font-family: "Noto Sans Thai", system-ui, sans-serif; color: var(--cu-ink); min-height: 70vh; background: var(--cu-bg); }
.cu-root .btn { border-radius: 10px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cu-root .btn-lg { font-size: 1rem; padding: 11px 16px; border-radius: 12px; }
.cu-root .form-control, .cu-root .form-select { border-radius: 10px; font-size: 16px; border-color: #e4e4e7; } /* 16px กัน iOS ซูมตอนแตะช่องกรอก */
.cu-root .form-control:focus, .cu-root .form-select:focus { border-color: var(--cu-ink); box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
.cu-boot { display: flex; justify-content: center; padding: 80px 0; }
/* ทุกอย่างที่กดได้ให้เป็นรูปมือเสมอ (กันสไตล์ธีมหลักหรือไลบรารีอื่นทับ) */
.cu-root a[href], .cu-root button:not(:disabled), .cu-root [role="button"], .cu-root summary, .cu-root select, .cu-root label:has(input[type="checkbox"]),
.swal2-container a[href], .swal2-container button:not(:disabled) { cursor: pointer; }
.cu-root a[href] *, .cu-root button:not(:disabled) * { cursor: inherit; }
.cu-gimg, .cu-av-zoom { cursor: zoom-in !important; }
.cu-imgs.sortable .cu-img[data-idx] { cursor: grab !important; }

/* หน้านี้ใช้แถบบนของแอปแทน: Nav หลักของเว็บไม่ลอยติดบน */
.cu-body .header-nav-sticky.is-fixed { position: relative; box-shadow: none; }

/* Wordmark / logo */
.cu-wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--cu-ink); line-height: 1; white-space: nowrap; }
.cu-wordmark span { color: var(--cu-accent); }
.cu-wordmark-lg { font-size: 2.6rem; text-align: center; display: block; margin-bottom: 6px; }
.cu-logo-lg { display: flex; justify-content: center; margin-bottom: 8px; }
.cu-logo-lg img { width: 100%; max-width: 280px; max-height: 100px; object-fit: contain; }

/* Gate */
.cu-gate { display: flex; justify-content: center; padding: 40px 16px 64px; }
.cu-gate-card { background: #fff; border: 1px solid var(--cu-line); border-radius: 20px; padding: 28px 22px; width: 100%; max-width: 460px; box-shadow: var(--cu-shadow); }
.cu-gate-sub { text-align: center; color: var(--cu-muted); margin-bottom: 18px; }
.cu-gate-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.cu-gate-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.cu-gate-list i { color: var(--cu-accent); font-size: 1.15rem; flex: 0 0 auto; }
/* การ์ดเชิญชวนจากลิงก์แชร์ /crewup/p/{id} (ยังไม่เข้าสู่ระบบ) */
.cu-invite { border: 1px solid var(--cu-line); border-radius: 14px; padding: 16px; margin-bottom: 14px; display: grid; gap: 8px; background: var(--cu-bg); }
.cu-invite-k { font-size: .78rem; font-weight: 600; color: var(--cu-accent-ink); display: flex; gap: 6px; align-items: center; }
.cu-invite h2 { font-size: 1.2rem; font-weight: 800; margin: 0; line-height: 1.35; word-break: break-word; }
.cu-invite-dl { font-size: .84rem; color: var(--cu-muted); display: flex; gap: 6px; align-items: center; }
.cu-gate-sub.small { font-size: .84rem; }

/* ── Top bar ── */
.cu-top { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--cu-line); position: sticky; top: 0; z-index: 30; }
.cu-top-in { max-width: var(--cu-max); margin: 0 auto; padding: 0 16px; height: var(--cu-top-h); display: flex; align-items: center; gap: 16px; }
.cu-brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; min-width: 0; flex: 0 0 auto; }
.cu-brand img { height: 30px; width: auto; max-width: 170px; object-fit: contain; }
.cu-me { margin-left: auto; text-decoration: none; line-height: 0; border-radius: 50%; }
.cu-me:hover .cu-av { box-shadow: 0 0 0 3px var(--cu-soft); }
.cu-nav-desk { display: none; }

/* ── Bottom tab bar (มือถือ) ── */
/* sticky (ไม่ใช่ fixed): บาร์อยู่ท้าย .cu-app จึงลอยติดขอบล่างจอเฉพาะตอนเลื่อนอยู่ในส่วน Crew Up
   พอเลื่อนถึงท้ายแอป บาร์จะหยุดค้างเหนือ footer ของเว็บ ไม่ลอยทับ footer
   .cu-root / .cu-app เป็น flex column ให้บาร์ชิดล่างสุดของพื้นที่แอปแม้เนื้อหาสั้น */
.cu-tabbar { position: sticky; bottom: 0; z-index: 40; display: flex; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cu-line); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--cu-tabbar-h) + env(safe-area-inset-bottom)); }
.cu-tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--cu-muted); text-decoration: none; font-size: .66rem; font-weight: 500; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.cu-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cu-tabbar a i { font-size: 1.3rem; line-height: 1; }
.cu-tabbar a.active { color: var(--cu-ink); font-weight: 700; }
.cu-tabbar .cu-tab-new i { width: 44px; height: 30px; border-radius: 10px; background: var(--cu-ink); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.cu-tabbar .cu-tab-new.active i { background: var(--cu-accent); }
@media (max-width: 767.98px) {
  .cu-has-tabbar .cu-root { display: flex; flex-direction: column; }
  .cu-has-tabbar .cu-app { flex: 1 0 auto; display: flex; flex-direction: column; }
  .cu-has-tabbar .cu-view { flex: 1 0 auto; width: 100%; padding-bottom: 24px; }
}

@media (min-width: 768px) {
  .cu-tabbar { display: none; }
  .cu-has-tabbar .cu-root { padding-bottom: 56px; }
  .cu-nav-desk { display: flex; align-items: center; gap: 2px; min-width: 0; }
  .cu-nav-desk a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; color: var(--cu-muted); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
  .cu-nav-desk a:hover { background: var(--cu-soft); color: var(--cu-ink); }
  .cu-nav-desk a.active { color: var(--cu-ink); background: var(--cu-soft); font-weight: 700; }
  .cu-nav-desk .cu-nav-new { order: 9; margin-left: 8px; background: var(--cu-ink); color: #fff; }
  .cu-nav-desk .cu-nav-new:hover, .cu-nav-desk .cu-nav-new.active { background: var(--cu-accent); color: #fff; }
}
/* แท็บเล็ต: ไอคอนอย่างเดียว ยกเว้นปุ่มสร้างประกาศ */
@media (min-width: 768px) and (max-width: 1023.98px) { .cu-nav-desk a:not(.cu-nav-new) span { display: none; } }

/* ── View container ── */
.cu-view { max-width: var(--cu-max); margin: 0 auto; padding: 0 16px; }
.cu-head { display: flex; align-items: center; gap: 6px; padding: 20px 0 12px; }
.cu-head h1 { font-size: 1.3rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.cu-head-r { margin-left: auto; display: flex; gap: 6px; }
.cu-head-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--cu-line); border-radius: 10px; background: #fff; color: var(--cu-ink); font-size: .88rem; font-weight: 600; }
.cu-head-btn:hover { background: var(--cu-soft); }
.cu-back { width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; color: var(--cu-ink); text-decoration: none; font-size: 1.15rem; flex: 0 0 auto; }
.cu-back:hover { background: #ececee; color: var(--cu-ink); }
.cu-sub { color: var(--cu-muted); font-size: .88rem; margin: -4px 0 14px; }
.cu-hint { color: var(--cu-muted); font-size: .8rem; margin: 6px 0 0; line-height: 1.6; }
.cu-note { color: var(--cu-muted); font-size: .85rem; margin: 10px 0 0; }
.cu-panel { background: var(--cu-card); border: 1px solid var(--cu-line); border-radius: var(--cu-radius); padding: 16px; box-shadow: var(--cu-shadow); }
.cu-panel + .cu-panel { margin-top: 12px; }
.cu-panel-h { font-size: .78rem; font-weight: 700; color: var(--cu-muted); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }

/* Empty state */
.cu-empty { text-align: center; padding: 56px 20px; color: var(--cu-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cu-empty-ic { width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 1px solid var(--cu-line); display: grid; place-items: center; font-size: 1.7rem; color: #a1a1aa; margin-bottom: 10px; }
.cu-empty p { max-width: 380px; margin: 0 0 14px; line-height: 1.6; }
.cu-empty .btn { padding-left: 18px; padding-right: 18px; }

/* Banner */
.cu-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .88rem; }
#cu-banner .cu-banner { max-width: calc(var(--cu-max) - 32px); margin: 12px auto 0; }
@media (max-width: 1271.98px) { #cu-banner .cu-banner { margin: 12px 16px 0; } }
.cu-banner i { font-size: 1.2rem; }
.cu-banner.info { background: #eef2ff; color: #3730a3; align-items: center; }
.cu-banner.info .btn { flex: 0 0 auto; }
.cu-contact-lock { display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed #c7d2fe; background: #f5f7ff; color: #3730a3; text-align: left; }
.cu-contact-lock > .bi { font-size: 1.1rem; margin-top: 2px; }
.cu-contact-lock > div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cu-contact-lock b { font-size: .88rem; }
.cu-contact-lock small { font-size: .78rem; color: #4338ca; line-height: 1.6; }
.cu-contact-lock .btn { margin-top: 4px; }
.cu-banner.warn { background: #fef3c7; color: #92400e; }
.cu-banner.bad { background: var(--cu-bad-soft); color: var(--cu-bad); margin-bottom: 14px; }

/* ── Feed ── */
.cu-hero { padding: 18px 0 4px; }
.cu-hero h1 { font-size: 1.45rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.015em; }
.cu-hero p { margin: 0; color: var(--cu-muted); font-size: .9rem; line-height: 1.6; }
.cu-hero-cta { display: none; }
.cu-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e4e4e7; border-radius: 12px; padding: 0 12px; margin: 14px 0 6px; transition: border-color .15s, box-shadow .15s; }
.cu-search:focus-within { border-color: var(--cu-ink); box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
.cu-search i { color: var(--cu-muted); }
.cu-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 11px 0; background: transparent; }
/* จอเล็ก: ตัวกรองแถวเดียว (ประเภทงาน, ตำแหน่ง, ปุ่มค้นหา) กดแว่นขยายแล้วช่องค้นหาแทนที่แถวนี้ */
.cu-fbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; margin: 14px 0 6px; }
.cu-fbar .form-select { min-width: 0; height: 44px; font-size: 16px; border-color: #e4e4e7; border-radius: 12px; text-overflow: ellipsis; }
.cu-fbar .form-select:focus { border-color: var(--cu-ink); box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
.cu-fsearch { display: grid; place-items: center; height: 44px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; color: var(--cu-ink); font-size: 1.05rem; }
.cu-search-x { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--cu-muted); }
.cu-filter:not(.searching) .cu-search, .cu-filter.searching .cu-fbar { display: none; }
.cu-filter-g { display: none; }
.cu-filter-l { display: none; font-size: .76rem; font-weight: 700; color: var(--cu-muted); margin-bottom: 8px; }
/* มือถือ: ชิปเลื่อนแนวนอน ขอบจางลงให้รู้ว่ายังมีต่อ (ไม่ใช่ขาด) */
.cu-fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
.cu-fchips::-webkit-scrollbar { display: none; }
.cu-fchips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
.cu-fchip { flex: 0 0 auto; border: 1px solid #e4e4e7; background: #fff; color: #3f3f46; border-radius: 999px; padding: 6px 13px; font-size: .82rem; line-height: 1.3; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.cu-fchip:hover { border-color: #a1a1aa; }
.cu-fchip.on { background: var(--cu-ink); border-color: var(--cu-ink); color: #fff; }
.cu-fmore { display: none; }
.cu-main-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin: 10px 0 8px; font-size: .86rem; color: var(--cu-muted); }
.cu-main-h .btn-link { color: var(--cu-accent-ink); text-decoration: none; padding: 0; }

@media (min-width: 992px) {
  .cu-feed { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; }
  .cu-side { position: sticky; top: calc(var(--cu-top-h) + 20px); max-height: calc(100vh - var(--cu-top-h) - 40px); overflow-y: auto; scrollbar-width: thin; display: grid; gap: 12px; padding-bottom: 4px; }
  .cu-hero, .cu-filter { background: var(--cu-card); border: 1px solid var(--cu-line); border-radius: var(--cu-radius); padding: 18px; box-shadow: var(--cu-shadow); }
  .cu-hero h1 { font-size: 1.3rem; }
  .cu-hero p { font-size: .85rem; }
  .cu-hero-cta { display: grid; gap: 8px; margin-top: 14px; }
  .cu-hero-cta small { color: var(--cu-muted); font-size: .76rem; text-align: center; }
  .cu-fbar, .cu-search-x { display: none; }
  .cu-filter:not(.searching) .cu-search, .cu-search { display: flex; margin: 0 0 4px; }
  .cu-filter-g { display: block; margin-top: 16px; }
  .cu-filter-l { display: block; }
  .cu-fchips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .cu-fchip { padding: 5px 11px; font-size: .8rem; }
  .cu-roles-f:not(.open) .cu-extra { display: none; }
  .cu-fmore { display: inline-flex; border: 0; background: transparent; color: var(--cu-accent-ink); font-size: .8rem; font-weight: 600; padding: 5px 4px; }
  .cu-roles-f.open .cu-fmore { font-size: 0; }
  .cu-roles-f.open .cu-fmore::after { content: "แสดงน้อยลง"; font-size: .8rem; }
  .cu-main-h { margin-top: 0; }
}

/* ── Cards ── */
.cu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.cu-grid > .cu-empty, .cu-grid > .cu-boot { grid-column: 1 / -1; }
.cu-card { display: flex; flex-direction: column; background: var(--cu-card); border: 1px solid var(--cu-line); border-radius: var(--cu-radius); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--cu-shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cu-card:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(24,24,27,.08); border-color: #d6d3d1; }
.cu-card:active { transform: scale(.99); }
.cu-card-cover { position: relative; aspect-ratio: 16 / 9; background: var(--cu-soft); overflow: hidden; }
.cu-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .cu-card-cover { aspect-ratio: 2 / 1; } }
.cu-card-cover.ph { --h: 24; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px;
  background: linear-gradient(135deg, hsl(var(--h) 85% 94%), hsl(calc(var(--h) + 30) 80% 86%)); color: hsl(var(--h) 45% 32%); }
.cu-card-cover.ph i { font-size: 2rem; opacity: .8; }
.cu-card-cover.ph span { font-weight: 700; font-size: .9rem; text-align: center; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
.cu-card-b { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.cu-card-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cu-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cu-team { color: #52525b; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -4px; }
.cu-team.lg { font-size: .95rem; white-space: normal; margin-top: 0; }
.cu-type { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--cu-accent-soft); color: var(--cu-accent-ink); }
.cu-badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--cu-soft); color: #52525b; white-space: nowrap; }
.cu-badge.ok { background: var(--cu-ok-soft); color: var(--cu-ok); }
.cu-badge.soon { background: #e0f2fe; color: #0369a1; }
.cu-badge.off { background: #f1f5f9; color: #64748b; }
.cu-badge.bad { background: var(--cu-bad-soft); color: var(--cu-bad); }
.cu-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cu-chips.center { justify-content: center; }
.cu-chip { font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--cu-soft); color: #3f3f46; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-chip.filled { text-decoration: line-through; color: #a1a1aa; }
.cu-chip.more { background: transparent; color: var(--cu-muted); padding-left: 2px; }
.cu-chip.on { background: var(--cu-ink); color: #fff; display: inline-flex; align-items: center; gap: 2px; padding-right: 4px; }
.cu-chip.on button { border: 0; background: transparent; color: #fff; padding: 0 2px; line-height: 1; }
.cu-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--cu-soft); font-size: .78rem; color: var(--cu-muted); }
.cu-owner { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cu-owner > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-dl { white-space: nowrap; flex: 0 0 auto; }
.cu-dl.hot, .cu-meta .hot { color: var(--cu-accent-ink); font-weight: 600; }
.cu-verified { color: #0ea5e9; font-size: .85em; }
.cu-nick { color: var(--cu-muted); font-weight: 400; }
.cu-mbti { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-weight: 800; font-size: .82rem; letter-spacing: .06em; }
.cu-mbti.sm { margin-left: auto; padding: 2px 9px; font-size: .72rem; align-self: center; }
.cu-portfolio { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; text-decoration: none; transition: background .15s, border-color .15s; }
.cu-portfolio:hover { background: #e0e7ff; border-color: #818cf8; color: #312e81; }
.cu-portfolio-ic { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #4f46e5; color: #fff; }
.cu-portfolio-tx { flex: 1; min-width: 0; display: grid; }
.cu-portfolio-tx b { font-size: .9rem; }
.cu-portfolio-tx small { font-size: .74rem; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-pf-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: .82rem; color: #4338ca; text-decoration: none; font-weight: 600; }
.cu-more { display: flex; justify-content: center; padding: 24px 0 8px; }
.cu-more .btn { min-width: 160px; }

/* Avatar */
.cu-av { --h: 210; width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; display: inline-grid; place-items: center; overflow: hidden; font-weight: 700;
  color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 92%); user-select: none; -webkit-touch-callout: none; transition: box-shadow .15s; }
.cu-av img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cu-av-xs { width: 22px; height: 22px; font-size: .66rem; }
.cu-av-sm { width: 36px; height: 36px; font-size: .85rem; }
.cu-av-md { width: 46px; height: 46px; }
.cu-av-xl { width: 104px; height: 104px; font-size: 2.2rem; }

/* ── Post detail: มือถือ = หัว → แผงสรุป → เนื้อหา · คอม = เนื้อหาซ้าย + แผงสรุปขวาติดจอ ── */
.cu-post-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "body"; gap: 14px; }
.cu-post-head { grid-area: head; background: var(--cu-card); border: 1px solid var(--cu-line); border-radius: var(--cu-radius); overflow: hidden; box-shadow: var(--cu-shadow); }
.cu-post-title { padding: 16px; display: grid; gap: 6px; }
.cu-post-title h2 { font-size: 1.4rem; font-weight: 800; margin: 2px 0 0; line-height: 1.35; letter-spacing: -.01em; word-break: break-word; }
.cu-post-side { grid-area: side; min-width: 0; }
.cu-post-body { grid-area: body; background: var(--cu-card); border: 1px solid var(--cu-line); border-radius: var(--cu-radius); padding: 4px 16px 18px; box-shadow: var(--cu-shadow); min-width: 0; }
@media (min-width: 992px) {
  .cu-post-grid { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head side" "body side"; gap: 16px 24px; align-items: start; }
  .cu-post-side { position: sticky; top: calc(var(--cu-top-h) + 20px); }
  .cu-post-title { padding: 20px 24px 22px; }
  .cu-post-title h2 { font-size: 1.7rem; }
  .cu-post-body { padding: 8px 24px 24px; }
}
.cu-carousel { position: relative; background: #18181b; outline: 0; }
.cu-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.cu-gallery::-webkit-scrollbar { display: none; }
.cu-gimg { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; border: 0; padding: 0; background: #18181b; aspect-ratio: 4 / 3; cursor: zoom-in; }
.cu-carousel.one .cu-gimg { aspect-ratio: 16 / 9; }
@media (min-width: 992px) { .cu-gimg { aspect-ratio: 16 / 10; } .cu-carousel.one .cu-gimg { aspect-ratio: 16 / 8; } }
.cu-car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--cu-ink); font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: background .15s, transform .15s; }
.cu-car-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.cu-car-arrow.prev { left: 12px; }
.cu-car-arrow.next { right: 12px; }
.cu-car-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.35); }
.cu-car-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.cu-car-dots button.on { width: 18px; background: #fff; }
.cu-car-count { position: absolute; top: 12px; right: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: .72rem; font-weight: 600; pointer-events: none; }
.cu-carousel:focus-visible { box-shadow: inset 0 0 0 3px var(--cu-accent); }
@media (hover: none) { .cu-car-arrow { width: 32px; height: 32px; font-size: .85rem; background: rgba(255,255,255,.8); } }
.cu-gimg img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-touch-callout: none; user-select: none; }
.cu-zoom { padding: 0 !important; max-width: 94vw; }
.cu-zoom .swal2-image { max-height: 86vh; max-width: 94vw; margin: 0; object-fit: contain; }
.cu-meta { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; font-size: .9rem; }
.cu-meta li { display: flex; gap: 12px; align-items: flex-start; }
.cu-meta li > i { width: 34px; height: 34px; border-radius: 10px; background: var(--cu-soft); display: grid; place-items: center; color: #52525b; flex: 0 0 auto; }
.cu-meta small { display: block; font-size: .72rem; color: var(--cu-muted); }
.cu-actions { display: grid; gap: 8px; }
.cu-actions-row { display: flex; gap: 8px; }
.cu-actions-row .btn { flex: 1; }
.cu-actions-row .cu-btn-ic { flex: 0 0 44px; }
.cu-sticky-act { position: sticky; bottom: calc(var(--cu-tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 5; }
@media (min-width: 768px) { .cu-sticky-act { position: static; } }
.cu-applied-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--cu-soft); border-radius: 12px; padding: 10px 12px; font-size: .88rem; }
.cu-sec { margin-top: 18px; }
.cu-sec h3 { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.cu-sec p { margin: 0; font-size: .94rem; line-height: 1.75; color: #27272a; word-break: break-word; }
.cu-roles { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cu-line); border-radius: 12px; overflow: hidden; }
.cu-roles li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--cu-line); }
.cu-roles li:last-child { border-bottom: 0; }
.cu-roles li > div { flex: 1; min-width: 0; }
.cu-roles b { display: block; font-size: .92rem; }
.cu-roles small { display: block; color: var(--cu-muted); font-size: .8rem; margin-top: 2px; }
.cu-roles li.filled b { text-decoration: line-through; color: #a1a1aa; }
.cu-person { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 6px; margin: 0 -6px; border-radius: 12px; min-width: 0; }
.cu-person:hover { background: var(--cu-soft); color: inherit; }
.cu-person > div { min-width: 0; }
.cu-person b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; }
.cu-person small { display: block; color: var(--cu-muted); font-size: .8rem; }
.cu-contact { border: 1px dashed #86efac; background: #f0fdf4; border-radius: 12px; padding: 10px 12px; margin-top: 10px; display: grid; gap: 6px; font-size: .9rem; }
.cu-contact-h { font-size: .78rem; font-weight: 700; color: var(--cu-ok); }
.cu-contact a { color: var(--cu-ink); text-decoration: none; word-break: break-all; }
.cu-contact a.cu-ig { color: #be185d; font-size: inherit; }
.cu-ig.masked { color: var(--cu-muted); cursor: default; letter-spacing: .02em; }
.cu-ig.masked .bi-lock-fill { font-size: .66rem; opacity: .7; }
.cu-ig { display: inline-flex; align-items: center; gap: 4px; color: #be185d; text-decoration: none; font-size: .88rem; }
.cu-report { text-align: center; margin: 10px 0 6px; }
.cu-legal { margin: 14px 0 0; text-align: center; font-size: .76rem; color: var(--cu-muted); line-height: 1.6; }
.cu-legal a { color: inherit; text-decoration: underline; }

/* ── Applicants ── */
.cu-apps { display: grid; gap: 12px; }
.cu-app-card { background: #fff; border: 1px solid var(--cu-line); border-radius: var(--cu-radius); padding: 14px 16px; display: grid; gap: 10px; box-shadow: var(--cu-shadow); }
.cu-app-card blockquote { margin: 0; padding: 10px 12px; background: var(--cu-soft); border-radius: 10px; font-size: .88rem; line-height: 1.6; }
.cu-contact-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; }
.cu-contact-row a { color: var(--cu-ink); text-decoration: none; }
.cu-phone-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--cu-muted); letter-spacing: .02em; }
.cu-phone-hint .bi-lock-fill { font-size: .7rem; opacity: .7; }
.cu-line { color: #06c755 !important; font-weight: 600; }
.cu-line-ic { color: #06c755; }
.cu-undo { border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; font-weight: 600; }
.cu-undo:hover { background: #fef3c7; color: #78350f; border-color: #f59e0b; }
.cu-undo-t { font-variant-numeric: tabular-nums; background: #f59e0b; color: #fff; border-radius: 999px; padding: 0 7px; font-size: .74rem; margin-left: 2px; }
.cu-locked { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--cu-muted); }
.cu-undo-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .76rem; color: #92400e; }
.cu-phone-guide { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .76rem; color: var(--cu-muted); }
.cu-app-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--cu-soft); }

/* ── Mine / applied ── */
.cu-mine { display: grid; gap: 12px; }
.cu-mine-item { background: #fff; border: 1px solid var(--cu-line); border-radius: var(--cu-radius); padding: 12px; box-shadow: var(--cu-shadow); }
.cu-mine-item.muted { opacity: .6; }
.cu-mine-main { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.cu-mine-main img, .cu-mine-ph { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--cu-soft); display: grid; place-items: center; color: #a1a1aa; font-size: 1.4rem; }
.cu-mine-main > div { min-width: 0; display: grid; gap: 3px; }
.cu-mine-main b { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-mine-main small { color: var(--cu-muted); font-size: .8rem; }
.cu-mine-f { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cu-soft); }
/* ปุ่มดูผู้สมัคร: ปุ่มหลักของรายการ กินพื้นที่ที่เหลือทั้งหมด มีผู้สมัครใหม่จะเป็นสีเข้ม */
.cu-mine-apps { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--cu-soft); border: 1px solid var(--cu-line); color: var(--cu-ink); text-decoration: none; font-size: .9rem; font-weight: 700; transition: background .15s, border-color .15s, transform .1s; }
.cu-mine-apps:hover { background: #e9e9ec; border-color: #d4d4d8; color: var(--cu-ink); }
.cu-mine-apps:active { transform: scale(.98); }
.cu-mine-apps > i:first-child { font-size: 1.05rem; }
.cu-mine-apps b { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: #fff; display: inline-grid; place-items: center; font-size: .78rem; }
.cu-apps-new { background: var(--cu-accent); color: #fff; border-radius: 999px; font-size: .7rem; padding: 2px 8px; white-space: nowrap; }
.cu-apps-go { margin-left: auto; opacity: .6; }
.cu-mine-apps.has-new { background: var(--cu-ink); border-color: var(--cu-ink); color: #fff; }
.cu-mine-apps.has-new:hover { background: #27272a; }
.cu-mine-apps.has-new b { background: rgba(255,255,255,.16); color: #fff; }
.cu-mine-apps.has-new .cu-apps-new { background: #fff; color: var(--cu-accent-ink); }
.cu-mine-btn { height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: .86rem; flex: 0 0 auto; }
@media (max-width: 479.98px) { .cu-mine-btn span { display: none; } }
/* หัวกลุ่มในหน้าประวัติที่เคยสมัคร */
.cu-ap-gh { display: flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 700; margin: 18px 0 10px; }
.cu-ap-gh:first-of-type { margin-top: 0; }
.cu-ap-gh span { background: var(--cu-soft); color: #52525b; border-radius: 999px; font-size: .7rem; padding: 1px 8px; }
.cu-boot.sm { padding: 40px 0; }
.cu-dot { background: var(--cu-accent); color: #fff; border-radius: 999px; font-size: .68rem; padding: 1px 7px; margin-left: 2px; }

/* ── Forms ── */
.cu-fsec { background: #fff; border: 1px solid var(--cu-line); border-radius: var(--cu-radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--cu-shadow); }
@media (min-width: 768px) { .cu-fsec { padding: 20px 22px; } }
.cu-fsec h3 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.cu-fsec h3 small { font-weight: 400; color: var(--cu-muted); font-size: .8rem; }
.cu-field { display: block; margin-bottom: 12px; }
.cu-field > span { display: block; font-size: .8rem; font-weight: 600; color: #3f3f46; margin-bottom: 5px; }
.cu-row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 560px) { .cu-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cu-src, .cu-reset { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; color: var(--cu-muted); margin-top: 5px; }
.cu-reset { border: 0; background: transparent; padding: 0; color: var(--cu-accent-ink); }
.cu-quick { margin: 12px 0 12px; }
.cu-quick small { display: block; color: var(--cu-muted); font-size: .74rem; margin-bottom: 8px; }
.cu-role-ed { border: 1px solid var(--cu-line); border-radius: 12px; padding: 10px; margin-bottom: 8px; display: grid; gap: 8px; background: #fafafa; }
.cu-role-row { display: flex; gap: 6px; align-items: center; }
.cu-role-row .form-control { flex: 1; min-width: 0; background: #fff; }
.cu-role-ed > .form-control { background: #fff; }
.cu-slots { display: inline-flex; align-items: center; border: 1px solid #e4e4e7; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: #fff; }
.cu-slots button { border: 0; background: var(--cu-soft); width: 32px; height: 38px; font-size: 1.1rem; }
.cu-slots span { min-width: 30px; text-align: center; font-weight: 600; font-size: .9rem; }
.cu-x { border: 0; background: transparent; color: var(--cu-muted); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.cu-x:hover { background: #ececee; }
.cu-filled { font-size: .82rem; color: #3f3f46; display: flex; gap: 6px; align-items: center; }
.cu-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.cu-imgs.busy { opacity: .5; pointer-events: none; }
.cu-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cu-soft); }
.cu-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cu-img .cu-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; }
.cu-img.add { border: 1.5px dashed #d4d4d8; background: #fafafa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--cu-muted); font-size: .78rem; }
.cu-img.add:hover { border-color: var(--cu-ink); color: var(--cu-ink); }
.cu-img.add i { font-size: 1.4rem; }
/* ลากเรียงรูป */
.cu-imgs.sortable .cu-img[data-idx] { cursor: grab; touch-action: manipulation; }
.cu-img-n { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; pointer-events: none; }
.cu-img[data-idx="0"] .cu-img-n { background: var(--cu-accent); }
.cu-img[data-idx="0"] .cu-img-n::after { content: " ปก"; margin-left: 2px; }
.cu-img-grip { position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--cu-ink); display: grid; place-items: center; font-size: .9rem; pointer-events: none; }
.cu-img.ghost { opacity: .35; outline: 2px dashed var(--cu-accent); outline-offset: -2px; }
.cu-img.chosen { box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.cu-img.dragging { transform: rotate(2deg); }
#cu-img-hint { margin: -4px 0 10px; }
.cu-agree { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .88rem; margin: 8px 4px 14px; }
.cu-agree a { color: var(--cu-accent-ink); margin-left: 2px; }
.cu-form-f { position: sticky; bottom: calc(var(--cu-tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 5; }
@media (min-width: 768px) { .cu-form-f { position: static; display: flex; justify-content: flex-end; } .cu-form-f .btn { width: auto !important; min-width: 220px; } }

/* ── Profile ── */
.cu-pf-top { display: flex; align-items: center; gap: 18px; margin: 20px 0 12px; }
/* โปรไฟล์ของฉัน: มือถือ = เมนูเป็นแท็บแนวนอนใต้ส่วนหัว / จอใหญ่ = aside ซ้าย + เนื้อหาขวา */
.cu-pf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cu-pf-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--cu-soft); border-radius: 12px; padding: 4px; }
.cu-pf-menu a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 8px 4px; border-radius: 9px; color: var(--cu-muted); text-decoration: none; font-size: .76rem; font-weight: 600; text-align: center; }
.cu-pf-menu a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-pf-menu a i { font-size: 1.1rem; }
.cu-pf-menu a.active { background: #fff; color: var(--cu-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cu-pf-menu2 { display: none; }
.cu-pf-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; }
.cu-pf-h h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.cu-pf-main .cu-sub { margin-top: -6px; }
@media (min-width: 768px) {
  .cu-pf-top { padding: 22px 24px; }
  .cu-pf-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
  .cu-pf-side { position: sticky; top: calc(var(--cu-top-h) + 16px); display: grid; gap: 10px; }
  .cu-pf-menu { grid-template-columns: minmax(0, 1fr); background: var(--cu-card); border: 1px solid var(--cu-line); box-shadow: var(--cu-shadow); padding: 6px; }
  .cu-pf-menu a { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; font-size: .9rem; font-weight: 500; text-align: left; }
  .cu-pf-menu a:hover { background: var(--cu-soft); color: var(--cu-ink); }
  .cu-pf-menu a.active { background: var(--cu-ink); color: #fff; box-shadow: none; font-weight: 700; }
  .cu-pf-menu2 { display: grid; gap: 2px; padding: 0 6px; }
  .cu-pf-menu2 a, .cu-pf-menu2 button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px; color: var(--cu-muted); font-size: .82rem; text-decoration: none; text-align: left; }
  .cu-pf-menu2 a:hover, .cu-pf-menu2 button:hover { color: var(--cu-ink); }
}
.cu-av-edit { position: relative; border: 0; background: transparent; padding: 0; border-radius: 50%; flex: 0 0 auto; }
.cu-av-edit > span:last-child { position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--cu-ink); color: #fff; display: grid; place-items: center; border: 3px solid #fff; font-size: .8rem; }
.cu-av-edit.busy { opacity: .5; }
.cu-av-zoom { position: relative; border: 0; background: transparent; padding: 0; border-radius: 50%; cursor: zoom-in; }
.cu-av-zoom > span:last-child { position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--cu-ink); color: #fff; display: grid; place-items: center; border: 3px solid #fff; font-size: .8rem; transition: transform .15s; }
.cu-av-zoom:hover > span:last-child { transform: scale(1.1); }
.cu-av-zoom:focus-visible { outline: 3px solid var(--cu-accent); outline-offset: 3px; }
.cu-pf-name { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cu-pf-name b { font-size: 1.1rem; }
.cu-pf-name a { color: var(--cu-accent-ink); text-decoration: none; }
.cu-pf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .86rem; }
.cu-av-wrap { flex: 0 0 auto; }
.cu-av-menu { min-width: 200px; padding: 6px; border-radius: 12px; border-color: var(--cu-line); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.cu-av-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.cu-av-menu .dropdown-item:active { background: var(--cu-soft); color: inherit; }
/* MBTI: ช่องเลือกชิดขวาของการ์ด (มือถือลงมาเต็มแถวใต้ชื่อ) */
.cu-pf-mbti { margin: 0 0 0 auto; display: grid; gap: 4px; width: 150px; flex: 0 0 auto; }
.cu-pf-mbti span { font-size: .74rem; font-weight: 700; color: var(--cu-muted); letter-spacing: .04em; }
.cu-pf-mbti .form-select { font-weight: 700; letter-spacing: .04em; }
@media (max-width: 575.98px) {
  .cu-pf-top { flex-wrap: wrap; }
  .cu-pf-mbti { width: 100%; margin: 0; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--cu-soft); }
}
.cu-user-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cu-userhead { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 24px 18px; }
.cu-userhead h2 { font-size: 1.25rem; font-weight: 800; margin: 6px 0 0; }
.cu-userhead .cu-sub { margin: 0; }
.cu-uh-name { display: grid; justify-items: center; gap: 6px; }
.cu-uh-name h2 { margin: 4px 0 0; }
.cu-uh-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; font-size: .88rem; color: var(--cu-muted); }
.cu-uh-nick { color: var(--cu-ink); font-weight: 600; }
.cu-uh-nick::before { content: "ชื่อเล่น "; color: var(--cu-muted); font-weight: 400; }
.cu-uh-meta .cu-mbti.sm { margin: 0; }
.cu-uh-dot { width: 3px; height: 3px; border-radius: 50%; background: #d4d4d8; }
.cu-bio { font-size: .92rem; color: #3f3f46; margin: 4px 0; line-height: 1.7; }
.cu-userhead .cu-contact { text-align: left; width: 100%; }
.cu-user-posts h3 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
@media (min-width: 992px) {
  .cu-user-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
  .cu-user-grid > aside { position: sticky; top: calc(var(--cu-top-h) + 20px); }
}

/* ── SweetAlert forms ── */
.cu-swal-form { text-align: left; display: grid; gap: 6px; font-size: .9rem; }
.cu-swal-form label { font-weight: 600; font-size: .82rem; margin-top: 6px; }
.cu-swal-hint { font-size: .78rem; color: var(--cu-muted); margin: 6px 0 0; }
/* หน้าต่างแชร์ประกาศ (ลิงก์ + QR Code) */
.cu-share-pop { max-width: 420px; }
.cu-share { display: grid; gap: 12px; font-size: .9rem; text-align: left; }
.cu-share-qr { width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--cu-line); border-radius: 14px; background: #fff; overflow: hidden; }
.cu-share-qr svg { width: 100%; height: 100%; display: block; }
.cu-share-link { display: flex; gap: 8px; }
.cu-share-link .form-control { font-size: .85rem; min-width: 0; }
.cu-share-link .btn { flex: 0 0 auto; white-space: nowrap; }
.cu-share-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cu-share-acts .btn { font-size: .86rem; }
.cu-share-acts #cu-sh-dl, .cu-share-acts #cu-sh-native { grid-column: 1 / -1; }
.cu-rules { text-align: left; font-size: .9rem; line-height: 1.75; }
