/* FN Sokoni — zambarau (deep autumn), nyeupe, dark blue */
:root {
  --plum: #5A2A6E;
  --plum-deep: #3B1748;
  --plum-soft: #F3EDF6;
  --plum-line: #E2D7E8;
  --navy: #13234A;
  --navy-2: #1E3263;
  --ink: #18203A;
  --muted: #646B83;
  --line: #E7E3EC;
  --bg: #FFFFFF;
  --bg-2: #F7F5FA;
  --amber: #C8892B;
  --good: #1F7A4D;
  --bad: #B3261E;
  --warn-bg: #FFF4E0;
  --r-sm: 8px;
  --r: 14px;
  --font-head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --tabbar: 64px;
  --header: 60px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--plum) 55%, white); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
main { padding-bottom: calc(var(--tabbar) + 24px); }
@media (min-width: 900px) { main { padding-bottom: 48px; } }

/* ---------- icons ---------- */
.ic { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.25em; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; cursor: pointer; background: var(--plum); color: #fff;
  transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--plum-deep); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-navy { background: var(--navy); } .btn-navy:hover { background: var(--navy-2); }
.btn-line { background: #fff; color: var(--plum); border-color: var(--plum-line); }
.btn-line:hover { background: var(--plum-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { background: #fff; color: var(--bad); border-color: #F0C9C6; } .btn-danger:hover { background: #FDF1F0; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; position: relative; color: var(--ink); }
.icon-btn:hover { background: var(--bg-2); }
.badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--plum); color: #fff;
  font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .82rem; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; outline: none; transition: border-color .15s; }
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--plum); }
.field.err .input, .field.err .select, .field.err .textarea { border-color: var(--bad); }
.field .err-msg { color: var(--bad); font-size: .82rem; margin-top: 4px; display: block; }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318203A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 40px; }
.row { display: flex; gap: 12px; } .row > * { flex: 1; min-width: 0; }
@media (max-width: 520px) { .row.stack-sm { flex-direction: column; gap: 0; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--plum); margin-top: 2px; flex: none; }

/* segmented choice (radio pills) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span, .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.pill input:checked + span, .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--plum-line); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { height: var(--header); display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .wm { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.brand.white .wm { color: #fff; }
.brand.white img { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.loc-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; cursor: pointer; padding: 6px 8px; border-radius: 10px; max-width: 46vw; }
.loc-btn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-btn:hover { background: var(--bg-2); }
.top-nav { display: none; gap: 4px; margin-left: 8px; }
.top-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.top-nav a:hover, .top-nav a.on { color: var(--ink); background: var(--bg-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .8rem; cursor: pointer; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--plum-soft); color: var(--plum); display: inline-grid; place-items: center; font-weight: 800; font-family: var(--font-head); flex: none; overflow: hidden; }
.avatar.lg { width: 76px; height: 76px; font-size: 1.6rem; }
.avatar.md { width: 48px; height: 48px; font-size: 1.1rem; }
.top .post-btn { display: none; }
@media (min-width: 900px) {
  .top-nav { display: flex; }
  .top .post-btn { display: inline-flex; }
}

/* ---------- bottom tab bar (simu) ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); position: relative; }
.tabbar a .ic { width: 24px; height: 24px; }
.tabbar a.on { color: var(--navy); }
.tabbar a.on .ic { color: var(--plum); }
.tabbar .plus .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--plum); color: #fff; box-shadow: 0 6px 16px rgba(90,42,110,.35); margin-top: -18px; }
.tabbar .plus { color: var(--plum); }
.tabbar .badge { top: 6px; right: calc(50% - 22px); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #C9D0E4; padding: 36px 0 calc(var(--tabbar) + 30px); margin-top: 48px; font-size: .92rem; }
.foot .brand { margin-bottom: 12px; }
.foot a { color: #fff; }
.foot .cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
.foot h4 { color: #fff; margin: 0 0 8px; font-family: var(--font-head); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (min-width: 900px) { .foot { padding-bottom: 36px; } .foot .cols { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- home feed ---------- */
.searchbar { position: relative; margin: 14px 0 10px; }
.searchbar .input { padding-left: 44px; border-radius: 999px; background: var(--bg-2); border-color: transparent; }
.searchbar .input:focus { background: #fff; border-color: var(--plum); }
.searchbar .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tabs-type { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabs-type button { border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs-type button.on { color: var(--navy); border-color: var(--plum); }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip .chip .ic { width: 18px; height: 18px; }
.filters { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin-bottom: 6px; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters .select { flex: none; }
.filters .select { width: auto; min-height: 38px; padding: 6px 36px 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }

.feed { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .feed { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.lrow { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
.lrow .thumb { width: 112px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--bg-2); flex: none; position: relative; }
.lrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lrow .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--plum); }
.lrow .thumb .ph .ic { width: 40px; height: 40px; opacity: .55; }
.lrow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrow .title { font-size: 1rem; font-weight: 600; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lrow .meta { font-size: .84rem; color: var(--muted); }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; color: var(--ink); }
.price.free { color: var(--plum); }
.price small { font-family: var(--font); font-weight: 600; font-size: .78rem; color: var(--muted); }
.lrow .counts { margin-top: auto; display: flex; gap: 10px; justify-content: flex-end; font-size: .82rem; color: var(--muted); }
.lrow .counts span { display: inline-flex; align-items: center; gap: 3px; }
.lrow .counts .ic { width: 15px; height: 15px; }
.lrow:hover .title { color: var(--plum); }
.st { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.st-reserved { background: var(--navy); color: #fff; }
.st-sold { background: #E9E9EE; color: #4A4F63; }
.st-review { background: var(--warn-bg); color: #8A5300; }
.st-hidden { background: #EEE; color: #555; }
.st-service { background: var(--plum-soft); color: var(--plum); }
.st-provider { background: var(--plum); color: #fff; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .ic { width: 56px; height: 56px; color: var(--plum-line); margin: 0 auto 10px; }
.empty h3 { color: var(--ink); }
.skel { background: linear-gradient(90deg, var(--bg-2), #EEEAF2, var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } * { scroll-behavior: auto !important; } }

.fab { position: fixed; right: 18px; bottom: calc(var(--tabbar) + 18px); z-index: 30; display: none; }

/* ---------- item page ---------- */
.item-grid { display: grid; gap: 24px; padding-top: 16px; }
@media (min-width: 900px) { .item-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; } }
.gallery { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 1 / 1; margin: 0 -16px; border-radius: 0; }
@media (min-width: 640px) { .gallery { margin: 0; border-radius: var(--r); } }
.gallery .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .slides::-webkit-scrollbar { display: none; }
.gallery .slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; background: #111827; }
.gallery .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.gallery .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.gallery .dots i.on { background: #fff; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); }
.gallery .nav.prev { left: 10px; } .gallery .nav.next { right: 10px; }
.gallery .count { position: absolute; top: 12px; right: 12px; background: rgba(19,35,74,.75); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.seller-card { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.seller-card .who { flex: 1; min-width: 0; }
.seller-card .who b { display: block; }
.rating-box { text-align: right; }
.stars { color: var(--amber); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #DCD6E2; }
.rating-num { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.item-title { font-size: 1.45rem; margin: 18px 0 4px; }
.item-meta { color: var(--muted); font-size: .88rem; }
.item-desc { white-space: pre-wrap; word-wrap: break-word; margin: 16px 0; font-size: 1.02rem; line-height: 1.65; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .94rem; margin: 12px 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.action-bar { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); padding: 12px 0; display: flex; align-items: center; gap: 12px; z-index: 20; }
@media (min-width: 900px) { .action-bar { position: static; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 16px; } }
.action-bar .price { font-size: 1.35rem; flex: 1; }
.fav-btn { border: 1.5px solid var(--line); }
.fav-btn.on { color: var(--plum); border-color: var(--plum-line); background: var(--plum-soft); }
.safety { background: var(--plum-soft); border-radius: var(--r); padding: 14px 16px; font-size: .9rem; margin: 18px 0; }
.safety h3 { font-size: .98rem; color: var(--plum-deep); display: flex; align-items: center; gap: 6px; }
.safety ul { margin: 0; padding-left: 18px; }
.owner-panel { border: 1.5px solid var(--plum-line); border-radius: var(--r); padding: 14px 16px; margin: 16px 0; }
.owner-panel .stats { display: flex; gap: 18px; font-size: .9rem; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.owner-panel .stats b { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
.owner-panel .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 6px; }
.section-h a { color: var(--plum); font-weight: 600; font-size: .92rem; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; font-size: .92rem; margin: 12px 0; background: var(--warn-bg); color: #6B4200; }
.notice.info { background: var(--plum-soft); color: var(--plum-deep); }
.notice.bad { background: #FDF1F0; color: var(--bad); }

/* ---------- post form ---------- */
.form-card { padding: 20px 0; }
.photo-grid { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.photo-add, .photo { flex: 0 0 92px; height: 92px; border-radius: 12px; position: relative; }
.photo-add { border: 2px dashed var(--plum-line); display: grid; place-items: center; text-align: center; color: var(--plum); cursor: pointer; font-size: .78rem; font-weight: 700; background: var(--plum-soft); }
.photo-add .ic { width: 26px; height: 26px; margin: 0 auto 2px; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.photo .x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; border: 2px solid #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.photo .x .ic { width: 14px; height: 14px; }
.photo .cover-tag { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(19,35,74,.8); color: #fff; font-size: .7rem; text-align: center; border-radius: 0 0 12px 12px; padding: 2px; }
.photo .mv { position: absolute; bottom: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; padding: 0; }
.photo .mv .ic { width: 14px; height: 14px; }
.money-input { position: relative; }
.money-input .input { padding-left: 52px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.money-input::before { content: 'TSh'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.sticky-submit { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); background: #fff; padding: 12px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sticky-submit { bottom: 0; } }

/* ---------- chats ---------- */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--header) - var(--tabbar)); height: calc(100dvh - var(--header) - var(--tabbar)); }
@media (min-width: 900px) { .chat-layout { grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - var(--header)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.chat-list { overflow-y: auto; border-right: 1px solid var(--line); }
.chat-list h1 { font-size: 1.3rem; padding: 16px 16px 6px; margin: 0; }
.citem { display: flex; gap: 12px; padding: 14px 16px; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.citem:hover, .citem.on { background: var(--bg-2); }
.citem .mid { flex: 1; min-width: 0; }
.citem .mid b { display: block; font-size: .95rem; }
.citem .mid .last { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .mid .sub { color: var(--muted); font-size: .78rem; }
.citem .lthumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bg-2); flex: none; }
.citem .dot { min-width: 20px; height: 20px; border-radius: 10px; background: var(--plum); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); }
@media (max-width: 899px) { .chat-layout.open .chat-list { display: none; } .chat-layout:not(.open) .chat-pane { display: none; } }
.chat-head { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-listing { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.chat-listing img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.chat-listing .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 18px; background: #fff; align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; border: 1px solid var(--line); }
.msg.mine { align-self: flex-end; background: var(--plum); color: #fff; border-color: var(--plum); }
.msg .tm { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; text-align: right; }
.msg.img { padding: 4px; } .msg.img img { border-radius: 14px; max-height: 280px; cursor: zoom-in; }
.msg.flag { border: 2px solid #E9A23B; }
.flag-note { align-self: flex-start; max-width: 85%; font-size: .8rem; color: #6B4200; background: var(--warn-bg); padding: 6px 10px; border-radius: 10px; }
.sys { max-width: 92%; align-self: center; font-size: .8rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 4px 12px; border: 1px solid var(--line); text-align: center; }
.day-sep { align-self: center; font-size: .75rem; color: var(--muted); margin: 8px 0; }
.card-msg { align-self: flex-start; background: #fff; border: 1.5px solid var(--plum-line); border-radius: 16px; padding: 12px 14px; max-width: 290px; width: 100%; }
.card-msg.mine { align-self: flex-end; }
.card-msg .k { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card-msg .v { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); margin: 2px 0 6px; }
.card-msg .v.place { font-size: 1.05rem; }
.card-msg .acts { display: flex; gap: 8px; margin-top: 8px; }
.card-msg .state { font-size: .82rem; font-weight: 700; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; background: #fff; scrollbar-width: none; }
.quick button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .84rem; cursor: pointer; }
.composer { background: #fff; padding: 8px 10px; display: flex; gap: 6px; align-items: flex-end; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 22px; padding: 10px 14px; min-height: 44px; max-height: 120px; outline: none; }
.composer textarea:focus { border-color: var(--plum); }
.composer .send { background: var(--plum); color: #fff; }
.composer .send:hover { background: var(--plum-deep); }
.blocked-bar { background: #fff; padding: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; padding: 20px 0 12px; }
.profile-head h1 { font-size: 1.5rem; margin: 0; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); margin: 12px 0; }
.trust > div { padding: 12px; text-align: center; border-right: 1px solid var(--line); }
.trust > div:last-child { border-right: 0; }
.trust b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.trust span { font-size: .78rem; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--plum-soft); color: var(--plum-deep); border-radius: 999px; padding: 4px 12px; font-size: .84rem; font-weight: 600; }
.tag.bad { background: #FDF1F0; color: var(--bad); }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.review .b { flex: 1; min-width: 0; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; scrollbar-width: none; }

/* ---------- account / lists ---------- */
.menu-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-list a, .menu-list button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 0; text-align: left; cursor: pointer; font-weight: 600; }
.menu-list a:hover, .menu-list button:hover { background: var(--bg-2); }
.menu-list .ic { color: var(--plum); }
.menu-list .end { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .88rem; }
.ulist .urow { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ulist .urow .grow { flex: 1; min-width: 0; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif.unread { background: var(--plum-soft); }
.notif .ic-wrap { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--plum-line); display: grid; place-items: center; color: var(--plum); flex: none; }
.notif b { display: block; }

/* ---------- review page ---------- */
.star-pick { display: flex; gap: 6px; justify-content: center; margin: 12px 0 4px; }
.star-pick button { border: 0; background: none; cursor: pointer; padding: 2px; color: #DCD6E2; }
.star-pick button .ic { width: 44px; height: 44px; }
.star-pick button.on { color: var(--amber); }
.star-label { text-align: center; font-weight: 700; min-height: 1.5em; color: var(--navy); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; background: var(--plum); color: #fff; padding: 48px; position: relative; overflow: hidden; }

.auth-side h2 { font-size: 2.4rem; font-weight: 800; margin-top: 18vh; max-width: 12em; }
.auth-side p { opacity: .85; max-width: 26em; }
.auth-side::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); }
@media (min-width: 900px) { .auth-side { display: block; } }
.auth-main { padding: 28px 18px 48px; display: flex; justify-content: center; }
.auth-box { width: 100%; max-width: 420px; }


/* ---------- modal / sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(19,35,74,.45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .overlay { align-items: center; padding: 20px; } }
.sheet { background: #fff; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@media (min-width: 640px) { .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-h h2 { margin: 0; }
.sheet .acts { display: flex; gap: 10px; margin-top: 18px; }
.sheet .acts > * { flex: 1; }
.opt-list { display: grid; gap: 8px; }
.opt-list button { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.opt-list button:hover { border-color: var(--plum); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 90; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 92vh; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + 16px); z-index: 99; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 24px rgba(19,35,74,.25); max-width: 480px; }
.toast.bad { background: var(--bad); }
.toast.good { background: var(--good); }

/* ---------- admin ---------- */
.admin { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1fr); align-content: start; background: var(--bg-2); }
@media (min-width: 1000px) { .admin { grid-template-columns: 240px minmax(0, 1fr); align-content: stretch; } }
@media (max-width: 999px) { .aside { position: sticky; top: 0; z-index: 30; padding: 10px 8px; } .aside-brand { display: none; } }
.aside-brand { margin: 4px 8px 20px; }
.tbl .thumb { min-width: 44px; }
.aside { background: var(--navy); color: #C9D0E4; padding: 18px 12px; }

.aside nav { display: flex; gap: 4px; overflow-x: auto; }
.aside nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.aside nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.aside nav a.on { background: var(--plum); color: #fff; }
.aside nav a .n { margin-left: auto; background: rgba(255,255,255,.18); border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
@media (min-width: 1000px) { .aside nav { flex-direction: column; } .aside { position: sticky; top: 0; height: 100vh; } }
.admin-main { padding: 20px 16px 60px; min-width: 0; }
@media (min-width: 1000px) { .admin-main { padding: 28px 32px; } }
.admin-main h1 { font-size: 1.6rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 800px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi b { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .86rem; }
.kpi em { font-style: normal; color: var(--good); font-size: .8rem; font-weight: 700; }
.kpi.alert b { color: var(--plum); }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #FBFAFD; }
.tbl .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.toolbar .input, .toolbar .select { width: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: var(--plum); border-radius: 6px 6px 0 0; min-height: 2px; position: relative; }
.bars div span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--muted); }
.bar-labels { display: flex; gap: 6px; font-size: .68rem; color: var(--muted); }
.bar-labels span { flex: 1; text-align: center; }
.hbar { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: .9rem; }
.hbar .n { width: 120px; flex: none; }
.hbar .b { height: 10px; background: var(--navy); border-radius: 5px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CFCBD8; border-radius: 12px; cursor: pointer; transition: .15s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--plum); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--plum-line); }
.split { display: grid; gap: 16px; }
@media (min-width: 1100px) { .split { grid-template-columns: 1fr 1fr; } }
.chat-log { max-height: 420px; overflow-y: auto; background: var(--bg-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column-reverse; gap: 6px; }

.show-sm { display: none; }
@media (max-width: 899px) { .hide-sm { display: none; } .show-sm { display: block; } }
#mlist { display: flex; flex-direction: column; gap: 6px; }
.chat-head .who > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar a.plus .ic, .tabbar a.plus.on .ic { color: #fff; }
