/* Chatbaz — one stylesheet, right-to-left, logical properties only. Messenger layout: rail, chat list, chat. */
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn.f6d31671339d.woff2") format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --brand: #2688eb; --brand-dark: #1a72cf; --brand-soft: #e9f3ff; --accent: #ffb020;
  --surface: #fff; --surface-alt: #f5f7fa; --bg: #edf2f7; --line: #e8ecf1;
  --text: #243348; --muted: #7d8a9a; --chat: #dfe9f1; --dots: #8aa3b833;
  --theirs: #fff; --mine: #dcf7d2; --mine-meta: #4fae4e; --danger: #db5260; --online: #3fc56b;
  --shadow: 0 10px 40px #18324d1c; --radius: 14px; color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #5daaf0; --brand-dark: #4a98e0; --brand-soft: #243d54; --surface: #17212b; --surface-alt: #202d39;
  --bg: #0e1621; --line: #263541; --text: #e8eff5; --muted: #8b9cad; --chat: #0f1b26; --dots: #ffffff08;
  --theirs: #1f2f3d; --mine: #2b5278; --mine-meta: #8fc4f5; --danger: #ee7a83; --shadow: 0 10px 40px #0007;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #5daaf0; --brand-dark: #4a98e0; --brand-soft: #243d54; --surface: #17212b; --surface-alt: #202d39;
    --bg: #0e1621; --line: #263541; --text: #e8eff5; --muted: #8b9cad; --chat: #0f1b26; --dots: #ffffff08;
    --theirs: #1f2f3d; --mine: #2b5278; --mine-meta: #8fc4f5; --danger: #ee7a83; --shadow: 0 10px 40px #0007;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Vazirmatn, Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 15px;
  -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
svg { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }
input, select, textarea { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .55rem .75rem; inline-size: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 0; border-color: var(--brand); }
input[type=radio], input[type=checkbox] { inline-size: auto; accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 14px;
  background: var(--brand); color: #fff; padding: .6rem 1.3rem; font-weight: 600; min-block-size: 46px;
  transition: background .15s, transform .1s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn svg { inline-size: 20px; block-size: 20px; }
/* Outline buttons in the style of the owner's Chatnoosh app: a thin neutral border, brand-coloured text. */
.btn.ghost { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface-alt); }
.btn.small { min-block-size: 34px; padding: .2rem .8rem; font-size: .85rem; border-radius: 10px; }
.btn.big { min-block-size: 52px; font-size: 1.05rem; }
.btn.wide { inline-size: 100%; }
.btn.danger-btn { background: var(--danger); }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--brand); padding: 0; display: inline-flex; align-items: center; gap: .3rem; }
.danger, .link.danger { color: var(--danger); }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; background: none; border: 0; color: var(--muted); inline-size: 40px;
  block-size: 40px; border-radius: 50%; flex: none; }
.icon-btn:hover { background: var(--surface-alt); color: var(--brand); }

/* ---------- public pages (home, sign-up, rules) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem;
  background: var(--surface); border-block-end: 1px solid var(--line); }
.topbar nav { display: flex; align-items: center; gap: 1rem; }
.topbar nav form { display: inline; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.hero { max-inline-size: 760px; margin: 3rem auto; padding: 0 1rem; text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 0 0 .6rem; line-height: 1.35; }
.lead { color: var(--muted); font-size: 1.05rem; }
.cta { display: flex; gap: .8rem; justify-content: center; margin: 1.6rem 0 2.2rem; flex-wrap: wrap; }
.points { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: start; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.points b { display: block; color: var(--brand); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin: 2rem auto; max-inline-size: 760px; }
main.card { margin-inline: max(1rem, calc((100% - 760px) / 2)); }
main.card.narrow { margin-inline: max(1rem, calc((100% - 430px) / 2)); }
.card h1 { margin-block-start: 0; font-size: 1.4rem; }
.field { display: block; margin-block-end: 1rem; font-weight: 600; border: 0; padding: 0; }
.field label, .field .label { display: block; font-weight: 600; margin-block-end: .25rem; }
.field.check { font-weight: 500; align-items: center; }
.tg { margin-block-start: 1.2rem; }
.field input, .field textarea, .field select { margin-block-start: .25rem; font-weight: 400; }
.field small { color: var(--muted); font-weight: 400; }
.field legend { padding: 0; margin-block-end: .4rem; }
.field.check { display: flex; gap: .5rem; align-items: flex-start; }
.field.check label { font-weight: 500; }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; }
.error, .errors { color: var(--danger); }
.errors ul { margin: 0; padding-inline-start: 1rem; }
.flash { max-inline-size: 760px; margin: 1rem auto 0; padding: 0 1rem; color: var(--brand); }
.prose li { margin-block-end: .5rem; }
.foot { text-align: center; color: var(--muted); padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom)); font-size: .9rem; }

/* ---------- avatars */
.avatar { display: inline-grid; place-items: center; inline-size: 50px; block-size: 50px; border-radius: 50%; color: #fff;
  font-weight: 700; font-size: 1.15rem; flex: none; position: relative; background: var(--brand); overflow: visible; }
.avatar img { inline-size: 100%; block-size: 100%; border-radius: 50%; object-fit: cover; }
.avatar.small { inline-size: 36px; block-size: 36px; font-size: .9rem; }
.avatar.big { inline-size: 84px; block-size: 84px; font-size: 2rem; }
.avatar.huge { inline-size: 110px; block-size: 110px; font-size: 2.6rem; }
.avatar.online::after { content: ''; position: absolute; inset-block-end: 1px; inset-inline-start: 1px; inline-size: 13px;
  block-size: 13px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2.5px var(--surface); }

/* ---------- app shell */
/* The app fills the window and only its inner lists scroll. position: fixed (not 100dvh, which older iPhones do not
   know: there the page grew taller than the screen and nothing could scroll). */
body.app { overflow: hidden; }
.shell { position: fixed; inset: 0; display: grid; grid-template-columns: 76px minmax(300px, 370px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr); inline-size: 100%; max-inline-size: 1720px; margin-inline: auto;
  background: var(--surface); box-shadow: var(--shadow); }
.list, .messages, .page-body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
dialog { max-block-size: 90vh; overflow-y: auto; }
.rail { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .3rem; background: var(--surface-alt);
  border-inline-end: 1px solid var(--line); }
.rail-brand { margin-block-end: .7rem; }
.rail button { position: relative; inline-size: 62px; min-block-size: 58px; border: 0; border-radius: 14px; background: none;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; font-size: .68rem; }
.rail button:hover { color: var(--brand); }
.rail button.on { background: var(--brand-soft); color: var(--brand); }
.rail .rail-me { margin-block-start: auto; }
.dot-badge { position: absolute; inset-block-start: 8px; inset-inline-end: 12px; inline-size: 10px; block-size: 10px;
  border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface-alt); }
.count { display: inline-grid; place-items: center; min-inline-size: 1.25rem; block-size: 1.25rem; padding: 0 .35rem; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; }
.count.muted-count { background: var(--muted); }

.sidebar { display: flex; flex-direction: column; min-block-size: 0; min-inline-size: 0; border-inline-end: 1px solid var(--line); background: var(--surface); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem .4rem; }
.side-head h1 { font-size: 1.25rem; margin: 0; }
.search-box { display: flex; align-items: center; gap: .5rem; background: var(--surface-alt); color: var(--muted); border-radius: 12px;
  margin: .3rem 1rem .6rem; padding: 0 .8rem; min-block-size: 42px; }
.search-box svg { inline-size: 18px; block-size: 18px; }
.search-box input { background: none; border: 0; padding: .5rem 0; outline: none; }
.chips { display: flex; gap: .4rem; padding: 0 1rem .6rem; overflow-x: auto; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; padding: 0; overflow: visible; }
.chips.center { justify-content: center; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 99px; padding: .25rem .95rem;
  font-size: .87rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; min-block-size: 34px; }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); font-weight: 600; }
.chip.on .count { background: var(--brand); color: #fff; }
.tag-chip { background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: .1rem .7rem; font-size: .8rem; }
.conn { margin: 0 1rem .4rem; font-size: .85rem; color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0 .5rem .6rem; overflow-y: auto; flex: 1; }
.list:empty { flex: 0; }
.item { display: flex; gap: .75rem; padding: .55rem .6rem; border-radius: 12px; cursor: pointer; align-items: center; }
.item:hover { background: var(--surface-alt); }
.item.on { background: var(--brand); color: #fff; }
.item.on .preview, .item.on small, .item.on .sub, .item.on .flags { color: #ffffffd0; }
.item.on b { color: #fff; }
.item.on small svg { color: #fff; }
.item.on .count { background: #fff; color: var(--brand); }
.item.on .tag { background: #ffffff33; color: #fff; }
.item .body { flex: 1; min-inline-size: 0; }
.item .top, .item .bottom { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.item .top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.item small { color: var(--muted); font-size: .75rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .15rem; }
.item small svg { inline-size: 15px; block-size: 15px; color: var(--mine-meta); }
.item .flags { display: inline-flex; gap: .2rem; color: var(--muted); }
.item .flags svg { inline-size: 15px; block-size: 15px; }
.preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .typing-text, .typing-text { color: var(--brand); }
.item.on .typing-text { color: #fff; }
.tag { border-radius: 6px; font-size: .7rem; padding: 0 .4rem; white-space: nowrap; background: color-mix(in srgb, var(--accent) 20%, transparent); color: #b87400; }
.tag.req { background: var(--brand-soft); color: var(--brand); }
.section-title { margin: .6rem .7rem .2rem; font-size: .8rem; color: var(--muted); }
.list-empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.list-empty svg { inline-size: 48px; block-size: 48px; stroke-width: 1.4; }
.list-empty .row { justify-content: center; }

.main { position: relative; min-inline-size: 0; min-block-size: 0; display: flex; background: var(--surface-alt); }
.view { flex: 1; min-inline-size: 0; min-block-size: 0; display: flex; flex-direction: column; }
.v-empty { align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 2rem; gap: .3rem;
  background-color: var(--chat); background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 18px 18px; }
.v-empty h2 { color: var(--text); margin: .8rem 0 0; font-size: 1.2rem; }
.v-empty p { max-inline-size: 360px; }

/* chat */
.chat-head { display: flex; align-items: center; gap: .4rem; padding: .45rem .8rem; background: var(--surface); border-block-end: 1px solid var(--line); min-block-size: 62px; }
.back { display: none; }
.peer { flex: 1; min-inline-size: 0; display: flex; align-items: center; gap: .7rem; background: none; border: 0; padding: 0; text-align: start; }
.peer .avatar { inline-size: 44px; block-size: 44px; font-size: 1rem; }
.who { display: flex; flex-direction: column; line-height: 1.45; min-inline-size: 0; }
.who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small.live { color: var(--brand); }
.head-tools { display: flex; align-items: center; gap: .3rem; }
.menu-wrap { position: relative; }
.menu { position: absolute; inset-block-start: calc(100% + 4px); inset-inline-end: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 20; min-inline-size: 200px; padding: .35rem; }
.menu button { background: none; border: 0; text-align: start; padding: .6rem .8rem; border-radius: 10px; display: flex; align-items: center; gap: .7rem; }
.menu button:hover { background: var(--surface-alt); }
.menu svg { inline-size: 19px; block-size: 19px; color: var(--muted); }
.menu .danger svg { color: var(--danger); }
.chat-search { display: flex; align-items: center; gap: .5rem; padding: .35rem .9rem; background: var(--surface); border-block-end: 1px solid var(--line); color: var(--muted); }
.chat-search input { border: 0; background: none; outline: none; }
.banner { margin: 0; padding: .45rem 1rem; font-size: .83rem; text-align: center; background: var(--surface); color: var(--muted); border-block-end: 1px solid var(--line); }
.messages-wrap { position: relative; flex: 1; min-block-size: 0; display: flex; }
.messages { list-style: none; margin: 0; padding: 1rem 6% 1.2rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .2rem;
  background-color: var(--chat); background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 18px 18px; overscroll-behavior: contain; }
.day { align-self: center; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--muted); font-size: .75rem;
  border-radius: 99px; padding: .1rem .8rem; margin: .6rem 0 .3rem; backdrop-filter: blur(4px); }
.note-line { align-self: center; color: var(--muted); font-size: .8rem; margin: .4rem 0; text-align: center; }
.msg { max-inline-size: min(78%, 560px); min-inline-size: 84px; align-self: flex-end; background: var(--theirs);
  border-radius: 16px 16px 16px 4px; padding: .38rem .7rem .2rem; box-shadow: 0 1px 1.5px #10233a18; position: relative;
  margin-block-start: .15rem; }
.msg.mine { align-self: flex-start; background: var(--mine); border-radius: 16px 16px 4px 16px; }
.msg.cont { border-radius: 16px; }
.msg.flash { animation: flash 1.2s; }
@keyframes flash { 30% { box-shadow: 0 0 0 3px var(--brand); } }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: .25rem; color: var(--muted); font-size: .7rem; margin-block-start: .05rem; }
.msg.mine .meta { color: var(--mine-meta); }
.msg .meta svg { inline-size: 15px; block-size: 15px; }
.msg.deleted p { color: var(--muted); font-style: italic; font-size: .9rem; }
.msg .quote { display: block; inline-size: 100%; text-align: start; border: 0; border-inline-start: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent);
  border-radius: 6px; padding: .15rem .55rem; margin-block: .15rem .3rem; font-size: .82rem; line-height: 1.5; }
.msg.mine .quote { border-color: var(--mine-meta); background: color-mix(in srgb, var(--mine-meta) 12%, transparent); }
.msg .quote b { display: block; color: var(--brand); font-weight: 600; }
.msg.mine .quote b { color: var(--mine-meta); }
.msg .quote span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .photo { display: block; border: 0; padding: 0; background: none; margin: .1rem -.4rem .2rem; border-radius: 12px; overflow: hidden; }
.msg .photo img { display: block; inline-size: 100%; max-inline-size: 320px; max-block-size: 360px; object-fit: cover; }
.msg-tools { position: absolute; inset-block-start: 2px; inset-inline-start: calc(100% + 2px); opacity: 0; transition: opacity .15s; }
.msg.mine .msg-tools { inset-inline-start: auto; inset-inline-end: calc(100% + 2px); }
.msg:hover .msg-tools, .msg-tools:focus-within { opacity: 1; }
.msg-tools .icon-btn { inline-size: 30px; block-size: 30px; background: var(--surface); box-shadow: 0 1px 3px #0002; }
.msg-tools svg { inline-size: 16px; block-size: 16px; }
.voice { display: flex; align-items: center; gap: .6rem; min-inline-size: 200px; padding-block: .2rem; }
.voice .play { inline-size: 42px; block-size: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.msg.mine .voice .play { background: var(--mine-meta); }
.voice .play svg { inline-size: 18px; block-size: 18px; fill: currentColor; stroke: none; }
.voice .bar { flex: 1; block-size: 4px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 35%, transparent); position: relative; overflow: hidden; }
.voice .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 0; background: var(--brand); }
.msg.mine .voice .bar i { background: var(--mine-meta); }
.voice small { color: var(--muted); font-size: .75rem; min-inline-size: 2.4rem; }
.to-bottom { position: absolute; inset-block-end: 1rem; inset-inline-end: 1.2rem; inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--muted); box-shadow: var(--shadow); display: grid; place-items: center; }
.to-bottom svg { transform: rotate(90deg); }
.to-bottom .count { position: absolute; inset-block-start: -6px; inset-inline-end: -4px; }
.request-box { background: var(--surface); padding: 1rem; text-align: center; border-block-start: 1px solid var(--line); }
.request-box p { margin: 0 0 .7rem; }
.request-box .row { justify-content: center; }
.composer-wrap { background: var(--surface); border-block-start: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); }
.composer { display: flex; gap: .35rem; padding: .45rem .7rem; align-items: flex-end; }
.composer textarea { resize: none; border: 0; background: none; border-radius: 0; max-block-size: 140px; padding: .55rem .2rem; outline: none !important; min-block-size: 44px; line-height: 1.6; }
.send { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.send svg { transform: scaleX(-1); inline-size: 20px; block-size: 20px; }
.send.mic { background: none; color: var(--muted); }
.send.mic:hover { color: var(--brand); background: var(--surface-alt); }
.send.mic svg { transform: none; }
.quote-bar { display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem 0; }
.quote-bar > div { flex: 1; min-inline-size: 0; border-inline-start: 3px solid var(--brand); padding-inline-start: .6rem; line-height: 1.5; }
.quote-bar b { display: block; color: var(--brand); font-size: .85rem; }
.quote-bar small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-icon { color: var(--brand); }
.recorder { display: flex; align-items: center; gap: .7rem; padding: .45rem .9rem; }
.recorder .muted { flex: 1; }
.rec-dot { inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--danger); animation: pulse .9s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }

/* pages: people, random, settings */
.view.page { background: var(--surface-alt); overflow: hidden; }   /* not body.page (ordinary pages must scroll) */
.page-head { display: flex; align-items: center; gap: .4rem; padding: .5rem 1rem; min-block-size: 62px; background: var(--surface); border-block-end: 1px solid var(--line); }
.page-head h2 { margin: 0; font-size: 1.15rem; }
.page-body { flex: 1; overflow-y: auto; padding: 1.2rem clamp(1rem, 4vw, 2.2rem) 2rem; }
.page-body.narrow > * { max-inline-size: 620px; margin-inline: auto; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); margin: 1.2rem 0; }
.or::before, .or::after { content: ''; flex: 1; border-block-start: 1px solid var(--line); }
.enter .note { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: .5rem .8rem; }
.enter .small { font-size: .85rem; margin-block-start: .8rem; }
.old-login summary { cursor: pointer; color: var(--brand); text-align: center; padding: .4rem; }
.old-login[open] summary { margin-block-end: .8rem; }
.keep input { margin-block-end: .2rem; }
.small { font-size: .82rem; }
.install-btn { margin-block-end: 1rem; }
#install-steps ol { padding-inline-start: 1.2rem; }
#install-steps li { margin-block-end: .5rem; }
.kinds { display: flex; flex-wrap: wrap; gap: .4rem; }
#pd-like.liked { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.filters { display: flex; flex-direction: column; gap: .7rem; margin-block-end: 1.1rem; }
.filters .search-box { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .9rem; }
.filter-row label { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.filter-row input[type=number] { inline-size: 4.5rem; }
.filter-row select { inline-size: auto; min-inline-size: 9rem; flex: 1; }
.filter-row .check { color: var(--muted); }
.segmented { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: .35rem .5rem; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: .9rem; }
.segmented input:checked + span { background: var(--brand); color: #fff; font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.person-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem .9rem; min-inline-size: 0; transition: transform .15s, border-color .15s; }
.person-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.person-card .avatar { inline-size: 70px; block-size: 70px; font-size: 1.6rem; margin-block-end: .3rem; }
.person-card b { font-weight: 600; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card small { color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: .2rem; }
.person-card small svg { inline-size: 13px; block-size: 13px; }
.person-card p { font-size: .82rem; color: var(--muted); margin: .2rem 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-block-size: 2.8em; line-height: 1.4; }
.person-card .chips { justify-content: center; margin-block-end: .5rem; }
.person-card .btn { margin-block-start: auto; }
.list-note { text-align: center; color: var(--muted); }
.random-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem 1.3rem; text-align: center; display: flex; flex-direction: column; gap: .9rem; align-items: stretch; }
.random-card h3 { margin: 0; font-size: 1.2rem; }
.random-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.random-icon { align-self: center; inline-size: 76px; block-size: 76px; border-radius: 24px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #3ba0f5, #1f74d6); box-shadow: 0 10px 30px #2688eb55; }
.random-icon svg { inline-size: 36px; block-size: 36px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--brand); }
.pulse { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--brand); animation: ring 1.2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 #2688eb88; } 100% { box-shadow: 0 0 0 14px #2688eb00; } }
.tips { color: var(--muted); font-size: .88rem; padding-inline-start: 1.2rem; margin-block-start: 1.3rem; }
.tips li { margin-block-end: .4rem; }
.me-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; margin-block-end: 1rem; }
.me-card h3 { margin: 0; font-size: 1.2rem; }
.me-card p { margin: 0; }
.me-photo { position: relative; }
.photo-btn { position: absolute; inset-block-end: -2px; inset-inline-start: -2px; inline-size: 34px; block-size: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 3px var(--surface); }
.photo-btn svg { inline-size: 17px; block-size: 17px; }
.hold-note { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-radius: 12px; padding: .7rem 1rem; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; margin-block-end: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.group h4 { margin: .2rem 0; display: flex; align-items: center; gap: .5rem; color: var(--brand); font-size: .95rem; }
.group h4 svg { inline-size: 19px; block-size: 19px; }
.group .field { margin: 0; }
.group.links { flex-direction: row; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.group.links form { display: inline; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; border-radius: 99px; padding: .2rem .8rem; background: var(--surface-alt); color: var(--muted); font-size: .85rem; cursor: pointer; font-weight: 400; }
.chip-check input:checked + span { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.chip-check input:focus-visible + span { outline: 2px solid var(--brand); }
.toggle { display: flex; align-items: center; gap: .8rem; cursor: pointer; padding-block: .2rem; }
.toggle > span { flex: 1; display: flex; flex-direction: column; line-height: 1.5; }
.toggle b { font-weight: 500; }
.toggle small { color: var(--muted); font-size: .78rem; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { inline-size: 44px; block-size: 26px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 45%, transparent); position: relative; flex: none; transition: background .2s; }
.toggle i::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 20px; block-size: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 2px #0003; }
.toggle input:checked + i { background: var(--brand); }
.toggle input:checked + i::after { inset-inline-start: 21px; }
.toggle input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; }
.mini-list li span.name { flex: 1; }
.tickets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tickets li { background: var(--surface-alt); border-radius: 12px; padding: .6rem .8rem; font-size: .88rem; }
.tickets li b { color: var(--muted); font-weight: 500; font-size: .78rem; display: block; }
.tickets li .answer { margin-block-start: .4rem; color: var(--brand); }

/* tab bar (phones) */
.tabbar { display: none; }

/* dialogs */
dialog { border: 0; border-radius: 20px; padding: 1.3rem; inline-size: min(94vw, 400px); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(8 16 26 / .45); }
dialog h2 { margin-block-start: 0; font-size: 1.1rem; }
dialog textarea, dialog input { margin-block: .5rem; }
.radio { display: flex; gap: .5rem; align-items: center; margin-block-end: .3rem; }
.close { position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem; }
.person-detail { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.person-detail h2 { margin: .4rem 0 0; font-size: 1.3rem; }
.person-detail p { margin: 0; }
.person-detail #pd-bio { margin-block: .4rem; }
.person-detail > div, .person-detail > .btn { inline-size: 100%; }
.person-detail .row { margin-block-start: .6rem; gap: 1.5rem; }
.sheet.actions { padding: .5rem; inline-size: min(94vw, 320px); }
.sheet.actions form { display: flex; flex-direction: column; }
.sheet.actions button { background: none; border: 0; padding: .75rem 1rem; text-align: start; border-radius: 12px; display: flex; gap: .8rem; align-items: center; }
.sheet.actions button:hover { background: var(--surface-alt); }
.viewer { padding: 0; background: transparent; box-shadow: none; inline-size: auto; max-inline-size: 96vw; }
.viewer img { display: block; max-inline-size: 96vw; max-block-size: 88vh; border-radius: 12px; }
.viewer .close { background: #0008; color: #fff; z-index: 2; }
.viewer::backdrop { background: rgb(0 0 0 / .85); }
.toasts { position: fixed; inset-block-end: 1.2rem; inset-inline: 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 50; pointer-events: none; }
.toast { background: #1d2733; color: #fff; padding: .65rem 1.1rem; border-radius: 12px; max-inline-size: 440px; text-align: center; box-shadow: var(--shadow); }

/* ---------- phones and small tablets */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; box-shadow: none; }
  .rail { display: none; }
  .sidebar, .main { grid-column: 1; grid-row: 1; border: 0; }
  .main { display: none; }
  body[data-view="chat"] .main, body[data-view="people"] .main, body[data-view="random"] .main, body[data-view="settings"] .main { display: flex; }
  body:not([data-view="list"]) .sidebar { display: none; }
  .back { display: inline-grid; }
  .tabbar { display: flex; grid-row: 2; background: var(--surface); border-block-start: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); }
  body[data-view="chat"] .tabbar { display: none; }
  .tabbar button { flex: 1; border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .05rem;
    padding: .45rem 0 .35rem; font-size: .7rem; position: relative; min-block-size: 56px; }
  .tabbar button.on { color: var(--brand); }
  .tabbar .count { position: absolute; inset-block-start: 3px; inset-inline-end: calc(50% - 26px); }
  .page-head .back { display: none; }
  .messages { padding-inline: .6rem; }
  .msg { max-inline-size: 86%; }
  .msg-tools { display: none; }
  .head-tools .btn.small { padding-inline: .55rem; }
  .head-tools #search-toggle { display: none; }
  .filter-row select { min-inline-size: 0; inline-size: calc(50% - .3rem); flex: none; }
}
@media (max-width: 380px) {
  .head-tools #next { display: none; }
}


/* ---------- people: filter chips (Dentivar-style) and bottom sheet */
.filter-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .1rem 0 .3rem; margin-block-end: 1rem; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: .35rem; flex: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 99px; padding: .35rem .9rem; min-block-size: 38px; font-size: .9rem; white-space: nowrap; }
.fchip svg { inline-size: 16px; block-size: 16px; }
.fchip:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.fchip.on { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); font-weight: 600; }
.fchip.lead { color: var(--brand); }
.fchip.active { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.fchip.sort svg { order: 2; }
.icon-tile { display: grid; place-items: center; inline-size: 52px; block-size: 52px; border-radius: 16px; flex: none;
  background: var(--brand-soft); color: var(--brand); }
.icon-tile svg { inline-size: 26px; block-size: 26px; }
.icon-tile.big { inline-size: 76px; block-size: 76px; border-radius: 22px; }
.icon-tile.big svg { inline-size: 36px; block-size: 36px; }
.random-strip { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 1rem; margin-block-end: 1.2rem; }
.random-strip > div { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; line-height: 1.6; }
.random-strip small { color: var(--muted); }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: .7rem; }
.list-head b { font-size: 1rem; }
.list-head .link svg { inline-size: 18px; block-size: 18px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 2.5rem 1rem; }
.empty-state small { color: var(--muted); max-inline-size: 340px; }
dialog.bottom-sheet { padding: 0; inline-size: min(100vw, 520px); max-block-size: 85vh; display: none; flex-direction: column;
  border-radius: 22px; overflow: hidden; }
dialog.bottom-sheet[open] { display: flex; }
.bottom-sheet .sheet-handle { inline-size: 42px; block-size: 4px; border-radius: 4px; background: var(--line); margin: .6rem auto 0; }
.bottom-sheet header { display: flex; align-items: center; justify-content: space-between; padding: .4rem 1rem .6rem; border-block-end: 1px solid var(--line); }
.bottom-sheet header h2 { margin: 0; font-size: 1.05rem; }
.bottom-sheet .sheet-body { overflow-y: auto; padding: .8rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.bottom-sheet footer { padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); }
.sheet-section h3 { margin: 0 0 .5rem; font-size: .92rem; color: var(--muted); font-weight: 600; }
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-block-end: .6rem; }
.sheet-list { display: flex; flex-direction: column; gap: .4rem; }
.sheet-option { display: flex; align-items: center; justify-content: space-between; border: 0; background: var(--surface-alt);
  border-radius: 12px; padding: .75rem 1rem; text-align: start; min-block-size: 48px; }
.sheet-option.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sheet-option svg { inline-size: 18px; block-size: 18px; }
.sheet-clear { align-self: center; }
@media (max-width: 860px) {
  dialog.bottom-sheet { inline-size: 100vw; max-inline-size: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; }
}


/* ---------- owner's panel (/ops/panel/) */
.ops-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 1rem; background: var(--surface); border-block-end: 1px solid var(--line); }
.ops-tabs a { white-space: nowrap; padding: .35rem .9rem; border-radius: 99px; border: 1px solid var(--line); color: var(--text); }
.ops-tabs a.on { background: var(--brand-soft); color: var(--brand); border-color: transparent; font-weight: 600; }
.ops-main { max-inline-size: 900px; margin: 0 auto; padding: 1rem; }
.ops-main h1 { font-size: 1.3rem; margin: .3rem 0 .8rem; }
.ops-main h2 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.ops-flash { background: var(--brand-soft); color: var(--brand); padding: .6rem .9rem; border-radius: 12px; }
.ops-search { display: flex; gap: .5rem; margin-block-end: 1rem; flex-wrap: wrap; }
.ops-search input { flex: 1; min-inline-size: 12rem; }
.ops-search select { inline-size: auto; }
.ops-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.ops-numbers div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .9rem; display: flex; flex-direction: column; }
.ops-numbers b { font-size: 1.6rem; color: var(--brand); }
.ops-numbers span { color: var(--muted); font-size: .85rem; }
.ops-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.ops-list li > a, .ops-list li > div { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; color: var(--text); }
.ops-list small { color: var(--muted); }
.ops-list .row { margin-block-start: .4rem; }
.ops-list form { display: inline; }
.ops main em, .ops-main em { font-style: normal; font-size: .78rem; border-radius: 6px; padding: 0 .4rem; background: var(--surface-alt); color: var(--muted); }
.ops-main em.warn { background: color-mix(in srgb, var(--accent) 20%, transparent); color: #b87400; }
.ops-main em.bad { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.ops-main em.ok { background: color-mix(in srgb, var(--online) 18%, transparent); color: #2a8a4b; }
.dot-on { color: var(--online); font-size: .8rem; }
.ops-actions { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .8rem; display: flex; flex-direction: column; gap: .6rem; }
.ops-chat { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ops-chat li { max-inline-size: 80%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .4rem .7rem; }
.ops-chat li.right { align-self: flex-end; background: var(--mine); }
.ops-chat li p { margin: .1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-chat small { color: var(--muted); font-size: .72rem; }
.ops-chat img { max-inline-size: 240px; border-radius: 10px; display: block; }
.ops-pages { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; }
.ops-reply { display: flex; flex-direction: column; gap: .4rem; margin-block-start: .4rem; }
.ops-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .4rem 1rem .8rem; margin-block-end: 1rem; }
.ops-box h2 { margin-block-start: .6rem; }
.ops-box p { margin: .35rem 0; overflow-wrap: anywhere; }
.ops-avatar { inline-size: 96px; block-size: 96px; border-radius: 16px; object-fit: cover; }
.ops-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; }
.ops-photos.big { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ops-photos img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.ops-photos figure { margin: 0; display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; }
.ops-photos figcaption { color: var(--muted); }

/* coins */
.coin-line { margin-block-start: .6rem; }
.coins h5 { margin: .8rem 0 .3rem; }
.coin-spend { display: flex; flex-wrap: wrap; gap: .4rem; }
.coin-packs { display: grid; gap: .4rem; margin-block-end: .6rem; }
.coin-pack { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; }
.coin-pack:has(input:checked) { border-color: var(--brand); }
#coin-earn li.done { color: var(--muted); }
.coins details summary { list-style: none; cursor: pointer; }
.coins details summary::-webkit-details-marker { display: none; }

.tag-chip.goal { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.goal-toggle { margin-block-start: .4rem; text-align: start; }
.install-box { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.install-box[hidden] { display: none; }
.install-note { color: var(--muted); font-size: .85rem; }

/* owner stats */
.ops-table-wrap { overflow-x: auto; margin-block: .5rem 1rem; }
.ops-table { border-collapse: collapse; inline-size: 100%; font-size: .85rem; white-space: nowrap; }
.ops-table th, .ops-table td { border-block-end: 1px solid var(--line); padding: .4rem .5rem; text-align: start; }
.ops-table th { color: var(--muted); font-weight: 600; }
.ops-bar { display: inline-block; block-size: .5rem; background: var(--brand); border-radius: 4px; margin-inline-end: .35rem; max-inline-size: 60px; vertical-align: middle; }
.ops-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.ops-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; block-size: 120px; align-items: end; margin-block: .5rem 1rem; direction: ltr; }
.ops-hours div { display: flex; flex-direction: column; justify-content: flex-end; block-size: 100%; align-items: center; }
.ops-hours i { display: block; inline-size: 100%; background: var(--brand); border-radius: 3px 3px 0 0; min-block-size: 1px; }
.ops-hours small { font-size: .6rem; color: var(--muted); }

/* settings as a tidy menu (owner 2026-11-20: «شلوغ و نامرتب») */
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-block-end: 1rem; overflow: hidden; }
.scard .srow { border-block-start: 1px solid var(--line); }
.scard > .srow:first-child { border-block-start: 0; }
.srow > summary, .srow-btn { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; cursor: pointer; list-style: none;
  inline-size: 100%; background: none; border: 0; font: inherit; color: var(--text); text-align: start; text-decoration: none; }
.srow > summary::-webkit-details-marker { display: none; }
.srow > summary::after { content: '‹'; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .15s; }
.srow[open] > summary::after { transform: rotate(-90deg); }
.srow > summary b, .srow-btn b { font-weight: 600; }
.srow .ico { inline-size: 32px; block-size: 32px; border-radius: 9px; background: var(--c, var(--brand)); color: #fff; display: grid;
  place-items: center; font-style: normal; font-size: 1rem; flex: none; }
.srow .ico svg { inline-size: 18px; block-size: 18px; stroke: #fff; }
.srow .val { margin-inline-start: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-inline-size: 45%; }
.srow-btn .val { margin-inline-start: auto; }
.sbody { padding: .2rem 1rem 1rem; display: flex; flex-direction: column; gap: .7rem; }
.sbody h5 { margin: .3rem 0 0; color: var(--muted); font-size: .8rem; }
.sbody .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sbody .field { margin: 0; }
.srow.plain form, form.srow.plain { margin: 0; }
.srow.install-box { display: block; align-items: stretch; }
.srow.install-box[hidden] { display: none; }
.details-more summary, .sbody details.more > summary { cursor: pointer; }
.srow > summary > b, .srow-btn > b { flex: 1; }
.srow > summary .val, .srow-btn .val { margin-inline-start: 0; }

#coin-out .pre { white-space: pre-line; line-height: 1.9; }
.coin-out-actions { display: flex; flex-direction: column; gap: .6rem; margin-block: .8rem; }
#coin-out [data-close-coin-out] { display: block; margin-inline: auto; }

/* people as compact rows: about three times as many on one screen */
.people-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .5rem; }
.person-card { flex-direction: row; align-items: center; text-align: start; gap: .7rem; padding: .6rem .75rem; border-radius: 14px; cursor: pointer; }
.person-card:hover { transform: none; }
.person-card .avatar { inline-size: 50px; block-size: 50px; font-size: 1.2rem; margin: 0; flex: none; }
.pc-info { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: .1rem; }
.pc-info b { font-size: .95rem; }
.pc-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.pc-info .pc-seen.on { color: var(--online); }
.pc-info .chips { flex-wrap: nowrap; overflow: hidden; justify-content: flex-start; margin: .15rem 0 0; gap: .3rem; }
.pc-info .chips .tag-chip { font-size: .7rem; padding: .05rem .45rem; white-space: nowrap; }
.pc-info p { margin: .1rem 0 0; min-block-size: 0; -webkit-line-clamp: 1; font-size: .78rem; }
.person-card > .btn { margin: 0; flex: none; padding-inline: .9rem; }
@media (max-width: 400px) { .people-grid { grid-template-columns: 1fr; } }
.pc-info .pc-seen.busy { color: #f59e0b; }
.pc-top { display: flex; align-items: baseline; gap: .5rem; min-inline-size: 0; }
.pc-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-inline-size: 0; }
.pc-top .pc-seen { margin-inline-start: auto; flex: none; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.pc-top .pc-seen.on { color: var(--online); }
.pc-top .pc-seen.busy { color: #f59e0b; }
.pc-info .pc-goal { color: var(--brand); font-size: .76rem; }
.pd-goal { inline-size: 100%; margin: 0 0 .3rem; color: var(--brand); font-size: .9rem; text-align: center; }
