/* ===== หมีTalk — ธีมมือถือยุค 2014: ปุ่มมันวาว ไล่สี เงาเยอะ ๆ ===== */
:root {
  --honey: #FFC83D;
  --honey2: #F5A623;
  --honey3: #D9820F;
  --brown: #4A2C14;
  --brown2: #7A4E2A;
  --cream: #FFF8E7;
  --paper: #FFFDF6;
  --line: #E9D9B6;
  --muted: #8C7458;
  --sky: #BFE6FF;
  --red: #E8466A;
  --green: #36B37E;
  --font: Tahoma, "Leelawadee UI", "Leelawadee", "Thonburi", "Sukhumvit Set", "Noto Sans Thai", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.45 var(--font);
  color: var(--brown);
  background:
    radial-gradient(circle at 20% 10%, #fff3c4 0, transparent 40%),
    repeating-linear-gradient(60deg, #f7d77e 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-60deg, #f7d77e 0 2px, transparent 2px 28px),
    #f9e4a6;
  display: flex; justify-content: center; align-items: stretch;
}
a { color: var(--honey3); }
button, input, select, textarea { font: inherit; color: inherit; }

/* กรอบมือถือ (บนจอคอม) */
#phone {
  position: relative; width: 100%; max-width: 440px; height: 100dvh; overflow: hidden;
  background: var(--cream);
  display: flex; flex-direction: column;
}
@media (min-width: 600px) {
  #phone { height: min(860px, calc(100dvh - 40px)); margin: 20px 0; border-radius: 34px;
           border: 10px solid #2b1a0c; box-shadow: 0 20px 60px rgba(74, 44, 20, .45), inset 0 0 0 2px #6b4524; }
}

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--cream); }
.screen.center { align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pad { padding: 14px 16px 24px; }
.pad-x { padding: 0 16px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.err { color: var(--red); min-height: 1.2em; font-size: 14px; margin: 6px 0; }

/* ----- โลโก้ ----- */
.logo { font-size: 44px; margin: 0; letter-spacing: -1px; color: var(--brown);
        text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(0, 0, 0, .08); font-weight: 900; }
.logo span { color: var(--honey2); text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(0, 0, 0, .12); }
.logo.small { font-size: 22px; }
.tagline { margin: 0 0 14px; font-weight: bold; color: var(--brown2); }
.logo-bear { width: 64px; height: 64px; flex: none; }
.logo-bear svg { width: 100%; height: 100%; display: block; }
.logo-bear.big { width: 150px; height: 150px; filter: drop-shadow(0 6px 0 rgba(74, 44, 20, .15)); }
.logo-bear.tiny { width: 34px; height: 34px; }
.wobble { animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
.honeycomb { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle at 50% 30%, #fff 0, transparent 60%); }
#scr-login { background: linear-gradient(#fff6d8, #ffe9a8); }

/* ----- ปุ่มสไตล์มันวาว ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; min-height: 44px; border-radius: 12px; border: 1px solid #c9b48a;
  background: linear-gradient(#fff, #f1e6cc); color: var(--brown); font-weight: bold; cursor: pointer;
  box-shadow: 0 3px 0 #cdb88c, inset 0 1px 0 #fff; text-decoration: none; text-shadow: 0 1px 0 #fff;
  transition: transform .05s;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #cdb88c, inset 0 1px 0 #fff; }
.btn.honey { background: linear-gradient(#ffe07a, #ffc83d 45%, #f5a623); border-color: #c97f0b;
             box-shadow: 0 3px 0 #b8700a, inset 0 1px 0 #fff6c8; text-shadow: 0 1px 0 #ffe9a6; }
.btn.honey:active { box-shadow: 0 1px 0 #b8700a, inset 0 1px 0 #fff6c8; }
.btn.danger { background: linear-gradient(#ff8fa3, #e8466a); border-color: #b62a4b; color: #fff;
              text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); box-shadow: 0 3px 0 #9e2240, inset 0 1px 0 #ffc0cc; }
.btn.green { background: linear-gradient(#8de6b7, #36b37e); border-color: #23855b; color: #fff;
             text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); box-shadow: 0 3px 0 #1f7650, inset 0 1px 0 #c6f5dc; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.big { font-size: 18px; padding: 14px 24px; min-height: 54px; border-radius: 16px; }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .g { background: #fff; color: #4285F4; border-radius: 50%; width: 26px; height: 26px; display: inline-grid; place-items: center; font-family: Arial, sans-serif; text-shadow: none; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.icon-btn { background: none; border: 0; font-size: 22px; min-width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: inherit; }
.icon-btn:active { background: rgba(0, 0, 0, .08); }

/* ----- แถบหัว ----- */
.bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px;
       background: linear-gradient(#ffd765, #f5a623); border-bottom: 1px solid #c97f0b;
       box-shadow: 0 2px 6px rgba(74, 44, 20, .2), inset 0 1px 0 #fff2bd; color: var(--brown); position: relative; z-index: 2; }
.bar h2 { margin: 0 auto; font-size: 18px; text-shadow: 0 1px 0 #ffeaa0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #bbb; box-shadow: inset 0 1px 1px rgba(0,0,0,.3); }
.status-dot.on { background: #3ad37f; }

/* ----- แท็บล่าง ----- */
.tab-pane { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tabbar { display: flex; background: linear-gradient(#5b391c, #3a2310); padding-bottom: var(--safe-b);
          border-top: 1px solid #2a180a; box-shadow: inset 0 1px 0 #7d5530; }
.tabbar button { flex: 1; background: none; border: 0; color: #e9d4b0; padding: 6px 2px 7px; font-size: 11.5px; position: relative; cursor: pointer; }
.tabbar button i { display: block; font-style: normal; font-size: 21px; line-height: 1.2; filter: grayscale(.5); }
.tabbar button.on { color: var(--honey); background: linear-gradient(rgba(255,255,255,.12), transparent); }
.tabbar button.on i { filter: none; }
.badge { position: absolute; top: 3px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
         background: linear-gradient(#ff7b93, #e01f4b); color: #fff; font-size: 11px; line-height: 18px; font-style: normal;
         box-shadow: 0 1px 2px rgba(0,0,0,.4); border: 1px solid #fff; }

/* ----- การ์ด / รายการ ----- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
        box-shadow: 0 2px 0 rgba(74, 44, 20, .08), inset 0 1px 0 #fff; padding: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 16px; }
.sec { margin: 14px 16px 10px; font-size: 16px; }
.empty { text-align: center; color: var(--muted); padding: 30px 20px; }
.empty .logo-bear { margin: 0 auto 8px; width: 90px; height: 90px; opacity: .85; }

.person { display: flex; gap: 12px; align-items: flex-start; }
.person .logo-bear { width: 58px; height: 58px; background: radial-gradient(#fff, #fff1cc); border-radius: 50%; border: 2px solid #f0d58e; padding: 2px; }
.person .name { font-weight: bold; font-size: 16px; }
.person .meta { font-size: 12.5px; color: var(--muted); }
.person .bio { margin: 4px 0 6px; font-size: 14px; word-break: break-word; }
.person .acts { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.dist { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: #fff0c2; border: 1px solid #f0d58e; color: var(--brown2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.chips.pick .chip { font-size: 14px; padding: 5px 12px; cursor: pointer; user-select: none; }
.chips.pick .chip.on { background: linear-gradient(#ffe07a, #ffc83d); border-color: #c97f0b; font-weight: bold; }
.honey-msg { background: #fff7d9; border: 1px dashed #f0c45a; border-radius: 10px; padding: 7px 10px; margin: 6px 0; font-size: 14px; word-break: break-word; }

.chat-row { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.chat-row .logo-bear { width: 50px; height: 50px; }
.chat-row .last { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .when { font-size: 11.5px; color: var(--muted); text-align: right; }
.chat-row .unread { display: inline-block; margin-top: 4px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; text-align: center; }

/* ----- เขย่า ----- */
.shake-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px 14px; text-align: center; }
.shake-phone { width: 130px; height: 200px; border-radius: 24px; background: linear-gradient(#3b2614, #1d1209); padding: 14px 10px 26px;
               box-shadow: 0 10px 0 rgba(74,44,20,.15), inset 0 0 0 2px #6b4524; position: relative; display: grid; place-items: center; }
.shake-phone::before { content: ''; position: absolute; inset: 14px 10px 26px; border-radius: 6px; background: linear-gradient(#fff3c4, #ffd765); }
.shake-phone::after { content: ''; position: absolute; bottom: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #6b4524; }
.shake-phone .logo-bear { position: relative; width: 90px; height: 90px; }
.shake-phone.shaking { animation: shake .12s linear infinite; }
@keyframes shake { 0% { transform: rotate(-12deg) translateX(-6px); } 50% { transform: rotate(12deg) translateX(6px); } 100% { transform: rotate(-12deg) translateX(-6px); } }
.shake-hint { margin: 0; font-weight: bold; color: var(--brown2); }

/* ----- ฟอร์มตั้งโปรไฟล์ ----- */
.lbl { display: block; font-weight: bold; margin: 14px 0 6px; font-size: 14px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid #d9c49a; background: #fff;
                          box-shadow: inset 0 2px 3px rgba(74, 44, 20, .08); font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--honey2); border-color: var(--honey3); }
textarea { resize: none; }
.check { display: flex; gap: 8px; align-items: center; margin: 16px 0 4px; font-size: 14px; }
.check input { width: 20px; height: 20px; flex: none; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatar-grid button { aspect-ratio: 1; padding: 3px; border-radius: 14px; border: 2px solid transparent; background: #fff; cursor: pointer; }
.avatar-grid button.on { border-color: var(--honey3); background: #fff0c2; box-shadow: 0 0 0 3px rgba(245,166,35,.3); }
.seg { display: flex; border: 1px solid #c9b48a; border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; padding: 9px 4px; border: 0; background: linear-gradient(#fff, #f1e6cc); cursor: pointer; border-left: 1px solid #e0cfa8; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: linear-gradient(#ffd765, #f5a623); font-weight: bold; box-shadow: inset 0 2px 3px rgba(0,0,0,.15); }
.small-select { width: auto; padding: 5px 8px; font-size: 13px; }

/* ----- บ้านหมี ----- */
.me-card { text-align: center; }
.me-card .logo-bear { width: 110px; height: 110px; margin: 0 auto; }
.me-card .name { font-size: 22px; font-weight: bold; margin-top: 4px; }
.menu { margin-top: 14px; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.menu > * { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; width: 100%; font-size: 15px; }
.menu > *:first-child { border-top: 0; }
.menu .sw { margin-left: auto; width: 46px; height: 26px; border-radius: 13px; background: #d6c8a8; position: relative; transition: .2s; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.menu .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(#fff, #eee); box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: .2s; }
.menu .sw.on { background: var(--green); }
.menu .sw.on::after { left: 23px; }
.menu .danger-txt { color: var(--red); }

/* ----- ห้องแชท ----- */
#scr-chat { background: #f4ead2 repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 10px, transparent 10px 20px); }
.chat-nick { font-weight: bold; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 8px 12px; border-radius: 16px; background: #fff; border: 1px solid #e3d3b0; word-break: break-word; white-space: pre-wrap;
               box-shadow: 0 1px 0 rgba(74,44,20,.1); border-bottom-left-radius: 4px; }
.msg.me .bubble { background: linear-gradient(#ffe48f, #ffcf4d); border-color: #e2a92c; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.msg .t { font-size: 10.5px; color: var(--muted); margin: 1px 6px; }
.msg.sticker .bubble { background: none; border: 0; box-shadow: none; padding: 0; }
.sticker-img { width: 110px; text-align: center; }
.sticker-img .logo-bear { width: 96px; height: 96px; margin: 0 auto; }
.sticker-img .cap { display: inline-block; margin-top: -6px; background: #fff; border: 2px solid var(--brown); border-radius: 12px; padding: 0 8px; font-weight: bold; font-size: 13px; }
.sys { align-self: center; font-size: 12.5px; color: var(--brown2); background: rgba(255,255,255,.7); padding: 3px 12px; border-radius: 12px; text-align: center; }
.day { align-self: center; font-size: 11.5px; color: var(--muted); margin: 6px 0; }
.bubble a.link { color: #1a6fb5; text-decoration: underline; cursor: pointer; }
.composer { display: flex; gap: 6px; align-items: center; padding: 8px 8px calc(8px + var(--safe-b)); background: linear-gradient(#fffaf0, #f3e6c6); border-top: 1px solid #d9c49a; }
.composer input { padding: 10px 12px; border-radius: 20px; }
.sticker-tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; background: #fffaf0; border-top: 1px solid #d9c49a; max-height: 42vh; overflow-y: auto; }
.sticker-tray button { background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 10px; }
.sticker-tray button:active { background: #fff0c2; }
.sticker-tray .sticker-img { width: auto; }
.sticker-tray .sticker-img .logo-bear { width: 62px; height: 62px; }
.sticker-tray .cap { font-size: 11px; }

/* ----- modal / toast ----- */
.modal-back { position: absolute; inset: 0; background: rgba(43, 26, 12, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 20; padding: 12px; }
.modal { width: 100%; max-height: 88%; overflow-y: auto; padding: 18px 16px calc(16px + var(--safe-b)); animation: up .18s ease-out; }
@media (min-height: 560px) { .modal-back { align-items: center; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal h3 { margin: 0 0 10px; }
.modal .acts { display: flex; gap: 8px; margin-top: 14px; }
.modal .acts .btn { flex: 1; }
.modal ol, .modal ul { padding-left: 20px; margin: 6px 0; }
.modal li { margin: 4px 0; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.radio-list input { width: 20px; height: 20px; flex: none; }
.quick { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.quick button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 14px; }
.toast { position: absolute; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); z-index: 30; max-width: 90%;
         background: rgba(43, 26, 12, .92); color: #fff; padding: 10px 16px; border-radius: 22px; font-size: 14px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.match-fx { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(255, 200, 61, .92); text-align: center; animation: pop .3s; cursor: pointer; }
.match-fx .logo-bear { width: 170px; height: 170px; margin: 0 auto; animation: wobble 1.2s infinite; }
.match-fx h2 { font-size: 30px; margin: 10px 0 4px; text-shadow: 0 2px 0 #fff; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.steps { text-align: left; max-width: 340px; }
.steps ol { margin: 0; padding-left: 20px; }

/* ----- แอดมิน ----- */
.report .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.report .ev { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 13px; margin: 8px 0; max-height: 180px; overflow-y: auto; }
.report .ev div { padding: 2px 0; border-bottom: 1px dotted var(--line); word-break: break-word; }
.ai-box { background: #eef7ff; border: 1px solid #b9dcf7; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; margin: 6px 0; }
.ai-box b { color: #1a6fb5; }
.pill { font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: #eee; }
.pill.open { background: #ffe1e8; color: #b62a4b; }
.pill.done { background: #dff6ea; color: #1f7650; }
.acts.wrap { flex-wrap: wrap; }

/* fixes */
.bar .logo span { color: #fff; text-shadow: 0 1px 0 #c97f0b, 0 2px 2px rgba(0,0,0,.15); }
.avatar-grid button { min-width: 0; }
.avatar-grid button svg { width: 100%; height: 100%; display: block; }
.me-card .chips { justify-content: center; }
.center-txt { text-align: center; }

/* ===== ไอคอนวาดเอง (js/icons.js) ===== */
.ic { --ink: #4A2C14; --fill: #FFC83D; --fill2: #FFF4DC; display: inline-flex; width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.28em; }
.ic svg { width: 100%; height: 100%; overflow: visible; }
.ic svg * { stroke-linecap: round; stroke-linejoin: round; }
.ic .k, .ic .kr, .ic .kw { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.ic .kr { stroke: #E8466A; }
.ic .kw { stroke: #fff; }
.ic .thick { stroke-width: 2.5; }
.ic .thin { stroke-width: 1.3; }
.ic .a, .ic .b, .ic .w, .ic .r, .ic .g, .ic .s { stroke: var(--ink); stroke-width: 1.6; }
.ic .a { fill: var(--fill); }
.ic .b { fill: var(--fill2); }
.ic .w { fill: #fff; }
.ic .r { fill: #FF7B93; }
.ic .g { fill: #36B37E; }
.ic .s { fill: #A9D8F5; }
.ic .d { fill: var(--ink); }
.ic .o2 { fill: none; stroke: #E39B12; stroke-width: 1.6; }
.ic .w0 { fill: none; stroke: #fff; stroke-width: 1.3; opacity: .8; }
.ic.lg { width: 1.6em; height: 1.6em; }
.ic.xl { width: 2.2em; height: 2.2em; }

/* แท็บล่าง: ไอคอนบนพื้นน้ำตาล */
.tabbar .ic { --ink: #E9D4B0; --fill: #6E4826; --fill2: #5A3A1E; width: 28px; height: 28px; display: block; margin: 0 auto 1px; transition: transform .15s; }
.tabbar .ic .d { fill: #E9D4B0; }
.tabbar .ic .r, .tabbar .ic .s, .tabbar .ic .w { fill: #6E4826; }
.tabbar button.on .ic { --ink: #2a180a; --fill: #FFC83D; --fill2: #FFF4DC; transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.tabbar button.on .ic .d { fill: #2a180a; }
.tabbar button.on { background: radial-gradient(ellipse at 50% 40%, rgba(255, 200, 61, .28), transparent 70%); }
.tabbar button i:not(.ic) { display: none; }

/* ปุ่ม: ไอคอน + ข้อความ */
.btn .ic { width: 1.35em; height: 1.35em; }
.btn.danger .ic, .btn.green .ic { --ink: #fff; --fill: rgba(255,255,255,.35); }
.icon-btn .ic { width: 26px; height: 26px; vertical-align: middle; }
.bar .icon-btn .ic { --ink: #4A2C14; }
.menu > * .ic { width: 26px; height: 26px; }
.menu > * > span:not(.sw) { flex: 1; }
.sec .ic { width: 24px; height: 24px; margin-right: 4px; }
.dist .ic { width: 13px; height: 13px; vertical-align: -2px; }
.gender .ic { width: 15px; height: 15px; vertical-align: -2px; margin-left: 2px; }
.honey-msg .ic { width: 18px; height: 18px; margin-right: 4px; }
.ai-box .ic { width: 16px; height: 16px; margin-right: 2px; }
.toast .ic { width: 20px; height: 20px; margin-right: 6px; --ink: #2a180a; }
.toast { display: flex; align-items: center; }
.toast[hidden] { display: none; }
.name .ic { width: 15px; height: 15px; vertical-align: -2px; }
.modal h3 .ic { width: 26px; height: 26px; margin-right: 4px; }
.steps .ic { width: 16px; height: 16px; }

/* ===== รูปโปรไฟล์ ===== */
.face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.face.has-photo { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f0c45a, 0 3px 6px rgba(74,44,20,.25); }
.person .face.has-photo { padding: 0; border: 0; }
.me-face { position: relative; width: 110px; margin: 0 auto; }
.photo-badge { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #fff0c2; border: 1px solid #f0c45a; }
.photo-pick { display: flex; gap: 14px; align-items: center; }
.photo-pick .face { width: 84px; height: 84px; }
.photo-st { margin: 0 0 8px; }
.photo-st.pending { color: var(--honey3); }
.photo-st.approved { color: var(--green); }
.photo-st.rejected { color: var(--red); }
#photo-pick-btn.busy { opacity: .6; pointer-events: none; }
.admin-photo { width: 96px; height: 96px; align-self: flex-start; }
#chat-avatar.has-photo { box-shadow: 0 0 0 2px #fff; }
