:root {
  --ink: #3a2220;
  --panel: #e23b3b;
  --mint: #ffe4dc;
  --leaf: #ff4f4f;
  --bubble: #ffede8;
  --mine: #ff4f4f;
  --line: #f0d6d0;
  --muted: #8a6e6a;
  --bg: #fff7f5; --surface: #fff; --soft: #fff3ef;
  color: var(--ink);
  font-family: "Geeza Pro", "SF Arabic", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
#app { min-height: 100vh; }

.auth, .shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.auth { display: flex; flex-direction: column; justify-content: center; padding: 32px 24px 16px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { color: var(--leaf); font-weight: 800; letter-spacing: -0.03em; }
.brand .lead { padding: 0; }
.mark {
  width: 52px; height: 52px; border-radius: 16px; background: var(--leaf); color: white;
  display: block; object-fit: cover;
}
h1 { margin: 0; font-size: 32px; }
p.lead, p.lead { margin: 0; color: var(--muted); padding: 12px 16px 0; }
.settings { padding: 8px 16px 28px; }
.settings h2.lead { margin: 22px 0 0; padding: 0; }
.settings p.lead,
.settings .check-line,
.settings .social-row,
.settings .subhead,
.settings .error { padding-left: 0; padding-right: 0; }
.stack { display: grid; gap: 10px; }
.settings .stack { margin: 12px 0; }
.settings .stack button, .auth .stack button { width: 100%; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 72px; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface);
}
.primary, .ghost {
  border: 0; border-radius: 12px; padding: 12px 16px;
}
.primary { background: var(--leaf); color: white; }
.ghost { background: var(--mint); color: var(--ink); }
.google-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
.google-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 160px; }
.google-act[disabled] { opacity: 0.65; }
.google-g { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; }
.google-g svg { width: 18px; height: 18px; display: block; }
.error { color: #9d2c2c; min-height: 1.2em; }

.top {
  position: sticky; top: 0; z-index: 4;
  background: var(--panel); color: white; padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 56px;
}
.top-title { flex: 1; min-width: 0; font-size: 18px; }
.shell { display: flex; flex-direction: column; }
.stage { flex: 1; min-height: 0; overflow: auto; }
.stage-ads { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.shell:has(.stage-ads) { height: 100dvh; max-height: 100dvh; overflow: hidden; }
.icon-plain { width: 40px; height: 40px; border: 0; background: transparent; color: white; display: grid; place-items: center; padding: 0; }
.icon-plain svg { width: 22px; height: 22px; }
.compose-menu { position: absolute; top: 52px; inset-inline-end: 12px; z-index: 5; display: grid; gap: 6px; min-width: 180px; padding: 8px; background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: 0 10px 24px #3a222033; }
.compose-menu button { border: 0; border-radius: 10px; background: var(--mint); color: var(--ink); padding: 10px 12px; text-align: start; }
.dock {
  position: sticky; bottom: 0; z-index: 4;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 4px 2px calc(6px + env(safe-area-inset-bottom));
}
.dock button { border: 0; background: transparent; color: #a08985; display: grid; justify-items: center; gap: 2px; font-size: 10px; padding: 4px 0; }
.dock button.on { color: #ff4f4f; }
.dock svg { width: 24px; height: 24px; }
.nav-sheet { position: fixed; inset: 0; z-index: 7; background: #3a222066; display: flex; align-items: flex-end; justify-content: center; }
.nav-card { width: min(480px, 100%); background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 16px 22px; max-height: 80vh; overflow: auto; }
.nav-handle { width: 42px; height: 4px; border-radius: 99px; background: #f0d6d0; margin: 6px auto 4px; }
.nav-card .lead { padding: 4px 4px 10px; color: var(--ink); font-weight: 700; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 96px; border: 0; border-radius: 18px; background: var(--soft); color: var(--ink); padding: 12px 8px; box-shadow: 0 8px 18px #e23b3b14; }
.more-tile strong { font-size: 14px; }
.more-icon { width: 42px; height: 42px; border-radius: 14px; background: #ff4f4f; color: white; display: grid; place-items: center; position: relative; }
.more-icon svg { width: 22px; height: 22px; }
.more-icon b { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 16px; height: 16px; border-radius: 99px; background: #c0392b; color: white; font-size: 10px; line-height: 16px; }
.compose-sheet { position: fixed; inset: 0; z-index: 8; background: #3a222066; display: flex; justify-content: center; align-items: flex-start; padding: 76px 12px 12px; }
.compose-card { width: min(440px, 100%); max-height: 74vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 22px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 16px 40px #3a222044; }
.compose-card .lead { padding: 0; color: var(--ink); }
.compose-card input { width: 100%; margin: 0; }
.compose-people { display: grid; gap: 6px; }
.compose-person { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 14px; background: var(--soft); color: var(--ink); padding: 8px 10px; text-align: start; }
.profile-screen { background: var(--soft); min-height: 100%; }
.profile-card { display: grid; justify-items: center; gap: 8px; padding: 0 16px 12px; background: var(--surface); }
.profile-banner { height: 168px; width: calc(100% + 32px); margin: 0 -16px; border-radius: 0 0 28px 28px; background: linear-gradient(160deg, #ff6b6b, #c53636); overflow: hidden; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-tool.on .more-icon { outline: 2px solid #c53636; }
.app-sheet,
.profile-settings-sheet,
.chat-settings-sheet,
.report-sheet {
  position: fixed; inset: 0; z-index: 16; background: #3a222066;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 48px 12px 16px;
}
.app-sheet-card,
.profile-settings-card,
.chat-settings-card,
.report-card {
  width: min(480px, 100%); max-height: 86vh; overflow: auto;
  background: var(--surface); color: var(--ink); border-radius: 22px; padding: 14px 16px 20px;
  display: grid; gap: 10px; box-shadow: 0 16px 40px #3a222044;
}
.app-sheet-card .sheet-head,
.profile-settings-card .sheet-head,
.chat-settings-card .sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.app-sheet-card .sheet-head strong,
.profile-settings-card .sheet-head strong,
.chat-settings-card .sheet-head strong { font-size: 18px; }
.app-sheet-card .sheet-head .ghost,
.profile-settings-card .sheet-head .ghost,
.chat-settings-card .sheet-head .ghost { width: auto; min-height: 0; padding: 8px 12px; }
.app-sheet .plus-menu { flex: none; width: 100%; }
.app-sheet .emoji-panel { flex: none; }
.photo-controls { display: grid; gap: 8px; }
.photo-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.photo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-tile {
  min-height: 84px; border: 0; border-radius: 16px; background: var(--soft); color: var(--ink);
  display: grid; justify-items: center; align-content: center; gap: 6px; padding: 10px 8px;
}
.photo-tile .more-icon { background: #ff4f4f; }
.photo-tile small { font-size: 12px; color: var(--muted); }
.photo-tile.danger .more-icon { background: #9d2c2c; }
.profile-card > .avatar { width: 112px; height: 112px; margin-top: -58px; border: 4px solid white; font-size: 36px; box-shadow: 0 8px 18px #e23b3b22; }
.profile-card > strong { font-size: 22px; }
.follow-box { width: 100%; display: grid; gap: 8px; }
.follow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.follow-row.with-action { grid-template-columns: 1fr 1fr 1fr; }
.follow-row button { min-width: 0; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.follower-list { display: grid; gap: 6px; }
.follower-list button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; background: var(--soft); color: var(--ink); padding: 8px 12px; text-align: start; font-size: 16px; line-height: 1; }
.follower-list .avatar { width: 1em; height: 1em; margin: 0; border: 0; box-shadow: none; font-size: 1em; }
.follower-list strong { font-size: 1em; line-height: 1; font-weight: 700; }
.profile-meta { margin: 0; color: var(--muted); text-align: center; font-size: 13px; }
.profile-stats { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.profile-stats > .stat, .profile-stats .folder-btn { min-height: 74px; border: 0; border-radius: 16px; background: var(--soft); color: var(--ink); display: grid; justify-items: center; align-content: center; gap: 2px; padding: 8px 2px; box-shadow: none; font-size: 11px; }
.profile-stats .folder-btn.primary, .profile-stats .stat.on { background: #ff4f4f; color: white; }
.profile-stats .folder-btn span, .profile-stats .stat span { color: inherit; font-size: 11px; }
.profile-stats .folder-btn svg, .profile-stats .stat svg { width: 22px; height: 22px; }
.profile-stats b { font-size: 15px; color: inherit; }
.profile-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.profile-tool { width: 76px; border: 0; background: transparent; color: var(--ink); display: grid; justify-items: center; gap: 4px; padding: 0; }
.profile-tool small { font-size: 12px; color: var(--muted); }
.profile-compose { display: grid; gap: 8px; padding: 12px 16px; background: var(--surface); }
.explore .person { flex-wrap: wrap; align-items: center; }
.explore .person .grow { flex: 1 1 140px; min-width: 120px; }
.hit-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.hit-actions button, .hit-actions .friend-state { width: auto; }
.wallet-card { margin: 12px 16px; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, #ff4f4f, #c53636); color: white; display: grid; gap: 4px; }
.wallet-card span, .wallet-card small { color: #ffede8; }
.wallet-card strong { font-size: 32px; }

.ads-screen { display: flex; flex-direction: column; flex: 1; height: 100%; min-height: 0; background: #000; }
.explore-screen { position: relative; display: flex; flex-direction: column; flex: 1; height: 100%; min-height: 0; background: #000; }
.explore-screen .explore-input {
  position: absolute; top: 10px; left: 12px; right: 12px; z-index: 6; width: auto; margin: 0;
  background: #ffffffd8; border-color: transparent;
}
.explore-screen .empty { color: #ffede8; padding: 48px 16px; }
.explore-pager {
  flex: 1; min-height: 0; height: 100%; overflow: hidden; position: relative;
  background: #000; touch-action: none; container-type: size;
}
.explore-track { height: 100%; will-change: transform; }
.explore-pager .ad-slide,
.explore-pager .explore-slide {
  height: 100cqh; min-height: 100cqh; max-height: 100cqh; overflow: hidden;
}
.explore-slide { height: 100%; min-height: 100%; max-height: 100%; overflow: hidden; }
.explore-screen .ad-overlay { padding: 12px 72px 12px 12px; }
[dir="rtl"] .explore-screen .ad-overlay { padding: 12px 72px 12px 12px; }
.explore-rail {
  position: absolute; right: 8px; left: auto; bottom: 88px; z-index: 3;
  display: grid; justify-items: center; gap: 10px;
}
.explore-rail .ad-icon-btn { flex-direction: column; color: white; min-height: 0; }
.explore-rail .social-count, .explore-views .social-count { color: white; }
.explore-views { pointer-events: none; }
.feed-rail {
  position: absolute; right: 8px; left: auto; bottom: 88px; z-index: 3;
  display: grid; justify-items: center; gap: 12px;
}
.feed-rail .ad-icon-btn {
  flex-direction: column; color: white; min-height: 0; gap: 2px;
  transition: transform 0.15s ease;
}
.feed-rail .ad-icon-btn:active { transform: scale(0.92); }
.feed-rail .ad-icon {
  width: 34px; height: 34px;
  filter: drop-shadow(0 2px 5px #000a);
}
.feed-rail .social-count, .feed-rail .explore-views .social-count {
  color: white; font-size: 12px; font-weight: 700;
  text-shadow: 0 1px 3px #0009;
}
.feed-rail .explore-views { pointer-events: none; }
.ad-toast { position: absolute; left: 12px; right: 72px; bottom: 16px; z-index: 4; color: #fff; }
.share-sheet {
  position: fixed; inset: 0; z-index: 16;
  display: flex; align-items: flex-end; justify-content: center;
  background: #0007; padding: 0;
}
.share-card {
  width: min(420px, 100%);
  background: #1c1c1e; color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 6px 10px 12px;
  display: grid; gap: 2px;
}
.share-handle { width: 36px; height: 3px; border-radius: 99px; background: #5a5a5e; margin: 4px auto 6px; }
.share-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px; }
.share-head strong { font-size: 14px; font-weight: 700; color: #fff; }
.share-x {
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: #2c2c2e; color: #fff; font-size: 18px; line-height: 1; padding: 0;
}
.share-note { margin: 0 4px 4px; font-size: 12px; color: #bdbdbd; }
.share-empty { margin: 8px; font-size: 12px; color: #8e8e93; }
.share-row {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 8px;
  border-bottom: 1px solid #2c2c2e;
}
.share-row.last { border-bottom: 0; padding-bottom: 2px; }
.share-act {
  flex: 0 0 auto; width: 62px; border: 0; background: transparent; padding: 0;
  display: grid; justify-items: center; gap: 4px; color: #eee; font-size: 10px;
}
.share-act .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; font-size: 16px; }
.share-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
}
.share-icon svg { width: 22px; height: 22px; display: block; }
.share-icon.full svg { width: 48px; height: 48px; }
.share-act small {
  max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ddd;
}
.share-report { display: grid; gap: 6px; padding: 6px 4px 4px; }
.share-report select { background: #2c2c2e; color: #fff; border-color: #3a3a3c; }
.explore-who {
  display: flex; align-items: center; gap: 10px; border: 0; background: transparent;
  color: white; text-align: start; padding: 0; max-width: 100%;
  min-width: 0; flex: 1;
}
.explore-byline {
  display: flex; align-items: center; gap: 8px; max-width: 100%;
}
.person-actions {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
}
.action-icon {
  width: 42px; min-width: 42px; min-height: 42px; padding: 0;
  display: grid; place-items: center;
}
.action-icon svg { width: 22px; height: 22px; display: block; }
.action-icon.on { outline: 2px solid var(--coral, #ff4f4f); }
.action-pop, .clip-more {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
}
.action-pop-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; right: auto;
  z-index: 12; min-width: 180px; max-width: min(260px, 70vw);
  background: var(--surface); color: var(--ink); border-radius: 12px;
  box-shadow: 0 10px 28px #0004; padding: 6px; display: grid; gap: 2px;
}
.action-pop-item {
  border: 0; background: transparent; text-align: start;
  padding: 9px 10px; border-radius: 8px; font-size: 13px; color: inherit;
}
.action-pop-item:hover, .action-pop-item:focus { background: var(--soft); }
.action-pop-item.muted { color: var(--muted); }
.clip-more-pop {
  position: absolute; bottom: calc(100% + 8px); right: 0; left: auto;
  z-index: 12; display: flex; gap: 6px; align-items: stretch;
  background: #1c1c1e; color: #fff; border-radius: 14px;
  box-shadow: 0 10px 28px #0008; padding: 8px;
}
.clip-more-pop.reasons {
  flex-direction: column; min-width: 180px; max-width: min(260px, 70vw); gap: 2px;
}
.clip-more-pop .action-pop-item {
  color: #fff; white-space: nowrap;
}
.clip-more-pop .action-pop-item:hover, .clip-more-pop .action-pop-item:focus { background: #2c2c2e; }
.clip-more-pop .action-pop-item.muted { color: #9a9a9e; }
.clip-more-act {
  width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: #2c2c2e; color: #fff;
  display: grid; place-items: center; padding: 0;
}
.clip-more-act svg { width: 22px; height: 22px; display: block; }
.clip-more-act:active { transform: scale(0.94); }
.ad-head .clip-more { flex: 0 0 auto; }
.ad-overlay .clip-more-pop, .explore-byline .clip-more-pop { pointer-events: auto; }
.explore-who .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; background: #ff4f4f; display: grid; place-items: center; }
.explore-who span { display: grid; gap: 2px; min-width: 0; }
.explore-who strong, .explore-who small { color: white; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-who small { font-weight: 500; color: #ffede8; }
.ad-tools { display: flex; gap: 8px; padding: 8px 12px; background: #111; }
.top .icon-plain.on { background: #ff4f4f; border-radius: 12px; }
.explore { background: transparent; }
.explore h3 { margin: 14px 16px 8px; font-size: 16px; }
.explore-input { width: calc(100% - 24px); margin: 10px 12px; border: 1px solid var(--line); border-radius: 999px; padding: 14px 16px; background: var(--surface); }
.explore-input::placeholder { color: rgba(16, 33, 28, 0.38); }
.explore .lead, .explore .empty, .explore .error { color: var(--muted); }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px 8px; }
.explore-card { border: 0; padding: 0; background: var(--bubble); border-radius: 12px; overflow: hidden; display: grid; text-align: start; color: var(--ink); }
.explore-card img, .explore-card video { width: 100%; height: 110px; object-fit: cover; display: block; background: #ffd8ce; }
.explore-card b { height: 110px; display: grid; place-items: center; font-size: 28px; color: #ff4f4f; }
.explore-card span { font-size: 11px; padding: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-state { color: var(--leaf); font-weight: 700; white-space: nowrap; }
.source-tag { font-size: 12px; font-weight: 700; color: #c53636; background: var(--mint); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
button.primary.pressed { background: #c53636; }
.ad-feed { flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; background: #000; container-type: size; }
.ad-slide {
  height: 100%; min-height: 100%; max-height: 100%;
  height: 100cqh; min-height: 100cqh; max-height: 100cqh;
  scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; background: #111; overflow: hidden; flex-shrink: 0;
}
.ad-stage { position: relative; height: 100%; overflow: hidden; }
.ad-stage .ad-photo, .ad-stage video.ad-photo { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.ad-stage .video-wrap { height: 100%; }
.ad-fallback { height: 100%; display: grid; align-content: center; gap: 8px; padding: 24px; color: white; }
.ad-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 72px 12px 12px; background: linear-gradient(transparent 42%, #000000cc); color: white; pointer-events: none; }
[dir="rtl"] .ad-overlay { padding: 12px 12px 12px 72px; }
.ad-overlay > * { pointer-events: auto; }
.ad-overlay .ad-head, .ad-overlay .lead, .ad-overlay .social-count, .ad-overlay .photo-views { color: white; }
.ad-overlay .ad-dots { color: white; }
.ad-rail { position: absolute; right: 8px; left: auto; bottom: 88px; display: grid; justify-items: center; gap: 12px; z-index: 3; }
.ad-rail .ad-icon-btn { flex-direction: column; color: white; min-height: 0; }
.ad-rail .ad-icon { width: 34px; height: 34px; filter: drop-shadow(0 2px 5px #000a); }
.ad-rail .social-count, .ad-rail .photo-views { color: white; }
.ad-slide .comment-thread { max-height: 26vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px; }
.ad-slide .comment-thread .social-count, .ad-slide .comment-thread p { color: var(--ink); }
.settings h2.lead { margin: 18px 16px 0; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.top button { background: transparent; color: white; border: 0; }
.top button.gear, .top button.lang {
  width: 46px; height: 36px; border: 2px solid #fff; border-radius: 12px;
  display: grid; place-items: center; padding: 0; font-size: 18px;
}
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 4px 12px 14px; background: var(--panel); }
.tabs button {
  min-width: 92px; height: 54px; border: 2px solid #ffc8be; border-radius: 14px;
  background: transparent; color: #ffd8d0; padding: 6px 10px;
  display: grid; place-items: center; align-content: center; gap: 1px; text-align: center; line-height: 1.1;
}
.tabs button b { font-size: 18px; font-weight: 500; }
.tabs button span { font-size: 10px; }
.tabs button.active { color: white; background: #ff4f4f; border-color: white; }
.save-ok { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--mint); color: var(--leaf); font-weight: 700; }
.powered {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
  padding: 10px 16px 8px;
  text-align: center;
  background: var(--surface);
}
.powered strong {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: #6b4f4b;
}
.powered span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #a08985;
}
.powered a {
  color: #a08985;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.auth .powered { margin-top: auto; padding-top: 28px; padding-bottom: 8px; }
.profile-settings-card .powered,
.chat-settings-card .powered { margin-top: 10px; padding: 8px 0 2px; }
.contact-mail { color: var(--leaf); text-decoration: none; font-weight: 700; }
.contact-us { margin: 18px 0 8px; display: grid; gap: 6px; }
.cover-adjust {
  position: fixed; inset: 0; z-index: 24; background: #3a2220e6;
  display: grid; align-content: center; gap: 12px; padding: 24px 16px;
}
.cover-adjust strong { color: white; text-align: center; font-size: 22px; }
.cover-adjust .lead { color: #ffd8d0; text-align: center; padding: 0; }
.cover-stage {
  width: min(480px, 100%); height: 168px; margin: 0 auto; overflow: hidden;
  border-radius: 0 0 28px 28px; background: #c53636; touch-action: none; cursor: grab;
}
.cover-stage:active { cursor: grabbing; }
.cover-stage img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.ad-reel { display: grid; gap: 10px; min-height: 70vh; }
.review-photo { width: min(100%, 420px); max-height: 360px; object-fit: contain; border-radius: 12px; background: var(--bubble); display: block; }
.specs p { margin: 4px 0; }
.emoji-panel { flex: 1 0 100%; background: var(--surface); border-radius: 12px; padding: 8px; }
.emoji-label { flex: 1 0 100%; margin: 8px 4px 2px; font-size: 12px; color: var(--muted); }
.face-grid { display: flex; flex-wrap: wrap; gap: 4px; max-height: 220px; overflow: auto; }
.face-grid button { border: 0; background: transparent; font-size: 22px; width: 36px; height: 36px; }
.face-grid img, .sticker { width: 72px; height: 72px; object-fit: contain; }
.sticker-hit { border: 0; background: transparent; padding: 0; }
.sticker-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sticker-tile { width: 96px; display: grid; gap: 4px; justify-items: center; }
.sticker-tile .ghost, .sticker-tile .danger { font-size: 12px; padding: 4px 8px; }
.sticker-studio { display: grid; gap: 8px; }
.sticker-stage { position: relative; width: 220px; height: 220px; overflow: hidden; border-radius: 16px; background: var(--bubble); }
.sticker-stage img { width: 100%; height: 100%; object-fit: cover; }
.sticker-caption { position: absolute; left: 8px; right: 8px; bottom: 12px; text-align: center; font-weight: 700; color: #3a2220; -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
.sticker-stage.live img { animation: sticker-bob 1s ease-in-out infinite; }
@keyframes sticker-bob { 50% { transform: translateY(-12px) scale(1.05); } }
.reactions { display: flex; gap: 4px; margin-top: 4px; }
.reactions button { border: 0; background: var(--surface); border-radius: 99px; padding: 2px 6px; }
.ops-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.ops-nav button {
  min-height: 64px; border-radius: 16px; border: 0; padding: 12px 10px;
  background: var(--surface); color: #c53636; font-weight: 700; line-height: 1.3;
  box-shadow: 0 6px 0 #ffd0c8, 0 10px 18px #e23b3b14;
}
.ops-nav button.primary {
  background: linear-gradient(180deg, #ff6b6b, #e23b3b); color: white;
  box-shadow: 0 6px 0 #c53636, 0 10px 18px #ff4f4f40;
}
.ops-nav button.brand-nav { padding: 8px 12px; }
.nav-lockup { display: block; width: min(100%, 240px); height: 42px; margin: 0 auto; object-fit: contain; pointer-events: none; }
button.staff-link { width: 100%; text-align: start; color: inherit; background: var(--surface); border: 1px solid var(--line); }
.pair { display: flex; gap: 8px; }
.pair button { flex: 1; width: auto; }
button.staff-link.open { border-color: var(--leaf); }
.hobby-picks button { border: 0; background: transparent; width: auto; min-height: 0; padding: 0 0 0 8px; box-shadow: none; }
.profile-head { position: relative; display: grid; justify-items: center; gap: 6px; padding: 16px; }
.profile-head .avatar { width: 112px; height: 112px; font-size: 36px; }
.profile-gear { position: absolute; top: 8px; inset-inline-start: 8px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--mint); color: var(--ink); font-size: 20px; }
.profile-bell { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--mint); color: var(--ink); }
.profile-bell svg { width: 22px; height: 22px; }
.profile-bell b { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 16px; height: 16px; border-radius: 99px; background: #c0392b; color: white; font-size: 10px; line-height: 16px; }
.store-bar { display: flex; justify-content: center; gap: 8px; padding: 8px 12px; }
.bill-stack { display: grid; gap: 8px; }
.file-hidden, .campaign-form input.file-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; display: none !important; }
.ad-card { display: grid; gap: 8px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ad-post { display: grid; gap: 10px; margin: 12px 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ad-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ad-head div { display: grid; gap: 2px; min-width: 0; }
.ad-head strong { font-size: 16px; }
.ad-head small { color: var(--muted); }
.ad-dots { width: 40px; height: 40px; border: 0; background: transparent; font-size: 24px; line-height: 1; }
.ad-menu { display: grid; gap: 8px; }
.ad-icons { display: flex; align-items: center; gap: 8px; }
.ad-icon-btn { width: auto; min-height: 42px; border: 0; background: transparent; padding: 4px 6px; display: inline-flex; align-items: center; gap: 5px; }
.social-count { font-size: 13px; font-weight: 600; line-height: 1; color: #5a3d3a; font-variant-numeric: tabular-nums; }
.ad-icon { width: 28px; height: 28px; }
.clip-card {
  display: grid; justify-items: start; gap: 4px; border: 0; background: transparent;
  padding: 0; color: inherit; text-align: start; max-width: 220px;
}
.clip-photo { width: 180px; max-height: 180px; object-fit: cover; border-radius: 12px; display: block; background: #111; }
.clip-card strong, .clip-card span { font-size: 13px; }
.ad-chat-photo { width: 180px; max-height: 140px; object-fit: cover; border-radius: 10px; }
.ad-comment { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; padding: 6px 0; border-bottom: 1px solid #ece7e1; }
.ad-comment:last-child { border-bottom: 0; }
.ad-comment p, .ad-comment .comment-body { margin: 0; line-height: 1.25; font-size: 14px; }
.ad-comment .grow { display: grid; gap: 2px; min-width: 0; }
.ad-comment .reply-name { font-size: 11px; line-height: 1.2; }
.comment-edit { display: grid; gap: 6px; }
.comment-confirm { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.comment-confirm .danger, .comment-confirm .ghost, .comment-reply {
  min-height: 28px; padding: 2px 8px; font-size: 12px;
}
.ad-photo { width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: #111; display: block; }
.ad-post video.ad-photo { width: 100%; max-height: 420px; }
.ad-open { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 16px; background: var(--bubble); display: block; }
.row.campaign-line, .campaign-line { display: flex; direction: ltr; flex-direction: row-reverse; text-align: start; justify-content: space-between; align-items: center; gap: 12px; }
.campaign-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.campaign-actions input { width: 140px; }
.pay-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.pay-choices button { width: auto; min-height: 0; box-shadow: none; }
.rail-row { display: flex; gap: 8px; }
.rail { display: grid; justify-items: center; gap: 4px; width: 88px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); padding: 8px; }
.rail.picked { border-color: var(--leaf); background: var(--bubble); }
.rail-mark { width: 44px; height: 44px; }
.rail-account { display: grid; gap: 2px; margin: 8px 0; }
.topup-sheet { display: grid; gap: 8px; }
.campaign-edit { display: grid; gap: 8px; }
.campaign-edit label { display: grid; gap: 4px; }
.campaign-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; flex: 0 0 52px; background: var(--mint); display: grid; place-items: center; color: var(--leaf); }
.campaign-thumb.horn svg { width: 28px; height: 28px; }
.campaign-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.campaign-head .lead { margin: 0; padding: 0; }
.campaign-mark { width: 44px; height: 44px; border-radius: 14px; background: #ff4f4f; color: white; display: grid; place-items: center; flex: 0 0 44px; }
.campaign-mark svg { width: 26px; height: 26px; }
.campaign-meta { display: grid; gap: 2px; min-width: 0; }
.campaign-meta small { color: var(--muted); }
.ad-card .row { flex-wrap: wrap; }
.ad-card p, .ad-card span, .ad-card strong { white-space: normal; overflow-wrap: anywhere; }
.danger { background: #9d2c2c; color: white; }
.campaign-form { display: grid; gap: 12px; }
.campaign-form select,
.campaign-form input,
.campaign-form textarea { width: 100%; display: block; }
.campaign-form .hobby-picks { padding: 0; }
.campaign-form h2.lead { margin: 8px 0 0; }
.campaign-form p.lead { padding: 0; }
.inbox { display: grid; gap: 8px; padding: 8px 16px 16px; }
.report-line { display: flex; gap: 6px; align-items: center; }
.report-line select { width: auto; }
.profile-media { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; }
.profile-media img, .profile-media video, .profile-shot { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; }
.profile-post { display: grid; gap: 8px; padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.post-top { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.post-more { border: 0; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; padding: 0 6px; }
.post-menu-shade { position: fixed; inset: 0; z-index: 7; border: 0; padding: 0; background: transparent; }
.post-menu {
  position: absolute; top: 34px; inset-inline-end: 0; z-index: 8;
  display: grid; gap: 6px; width: 52px; padding: 6px;
  background: var(--surface); border-radius: 16px; box-shadow: 0 10px 24px #3a222028;
}
.post-tool {
  width: 40px; height: 40px; border: 0; border-radius: 12px; padding: 0;
  background: var(--mint); color: var(--ink); display: grid; place-items: center;
}
.post-tool svg { width: 20px; height: 20px; }
.post-tool.trash { color: #9d2c2c; background: var(--soft); }
.post-tool.wide { width: auto; min-width: 40px; padding: 0 12px; justify-self: end; white-space: nowrap; font-size: 13px; font-weight: 700; }
.post-tool.wide.on { background: var(--leaf); color: #fff; }
.video-wrap { position: relative; display: grid; }
.video-wrap video { width: 100%; display: block; }
.video-mute {
  position: absolute; inset-inline-start: 10px; top: 10px; z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0;
  background: #3a2220cc; color: white; display: grid; place-items: center;
}
.video-mute svg { width: 20px; height: 20px; }
.video-mute.on { background: #9d2c2ccc; }
.ad-stage .video-mute { z-index: 6; }
.post-caption, .post-tags { margin: 0; }
.post-tags { color: var(--leaf); }
.post-actions { display: flex; gap: 2px; align-items: center; }
.post-icon { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--ink); padding: 4px 8px; }
.post-icon svg { width: 26px; height: 26px; }
.post-icon b { font-size: 13px; font-weight: 600; }
.post-icon.on { color: #c0392b; }
.post-icon.share.on { color: #1a7fd4; }
.post-icon.retweet.on { color: #1c8c4a; }
.comment-thread { display: grid; gap: 8px; }
.comment-line { display: flex; gap: 8px; align-items: baseline; }
.photo-views { display: inline-flex; align-items: center; gap: 5px; }
.view-icon { width: 22px; height: 22px; }
.comment-fold { display: grid; gap: 8px; }
.comment-hands { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.comment-hands .ad-icon-btn { min-height: 28px; padding: 0 2px; }
.comment-hands .ad-icon { width: 18px; height: 18px; }
.comment-hands .social-count { font-size: 11px; }
.comment-ico {
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink);
  display: grid; place-items: center; padding: 0; flex: 0 0 auto;
}
.comment-ico svg { width: 15px; height: 15px; display: block; }
.comment-ico.danger-ico { color: #c0392b; }
.ad-comment .comment-when,
.comment-thread .comment-when {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  color: var(--muted);
  margin: 0;
}
.hand-icon { width: 18px; height: 18px; }
.reply-name, .reply-target strong { color: #c53636; }
.reply-target { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-sheet-card .sheet-head .sheet-x {
  width: 34px; height: 34px; min-height: 34px; padding: 0;
  border: 0; border-radius: 10px; background: var(--mint, #f3e9e4);
  color: var(--ink); display: grid; place-items: center;
}
.app-sheet-card .sheet-head .sheet-x svg { width: 16px; height: 16px; display: block; }
.comment-box { display: grid; gap: 6px; }
.comment-compose { display: flex; gap: 8px; align-items: center; }
.comment-compose .comment-input, .comment-compose input { flex: 1; min-width: 0; }
.comment-send {
  width: 42px; min-width: 42px; min-height: 42px; padding: 0;
  display: grid; place-items: center; border-radius: 12px;
}
.comment-send svg { width: 18px; height: 18px; display: block; color: #fff; stroke: #fff; }
.comment-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; }
.comment-toggle svg { width: 18px; height: 18px; display: block; }
.comment-toggle.on { background: var(--soft); }
.reply-target { display: flex; align-items: center; gap: 6px; }
.folder-panel { margin: 8px 12px 0; padding: 8px 0 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.folder-btn { display: inline-flex; align-items: center; gap: 6px; }
.folder-btn svg { width: 22px; height: 22px; }
.hobby-picks { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
.hobby-picks span { background: var(--mint); border-radius: 999px; padding: 6px 10px; }
.list { display: grid; }
.row, .person {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface); text-align: right; width: 100%; border-left: 0; border-right: 0; border-top: 0;
}
.chat-tools { display: grid; gap: 8px; padding: 12px 16px 0; }
.chat-search { width: 100%; }
.chat-filters { display: flex; gap: 6px; overflow-x: auto; }
.chat-filters button { flex: 0 0 auto; min-height: 36px; border-radius: 999px; padding: 0 12px; }
.row.chat-line { flex-direction: row; text-align: start; align-items: center; gap: 8px; }
.chat-open { display: flex; flex: 1; flex-direction: row; gap: 12px; align-items: center; min-width: 0; border: 0; background: transparent; color: inherit; text-align: start; padding: 0; }
.chat-open .grow { display: grid; justify-items: start; min-width: 0; }
.chat-open .grow span, .chat-open .grow strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-flag { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #a08985; display: grid; place-items: center; padding: 0; }
.icon-flag svg { width: 18px; height: 18px; }
.icon-flag.on { color: #ff4f4f; background: var(--bubble); }
.chat-side .icon-flag.star-on { color: #e6a800; background: #fff4cc; }
.chat-side .icon-flag.star-on svg path { fill: currentColor; }
.chat-side .icon-flag.pin-on { color: #ff4f4f; background: var(--bubble); }
.chat-side .icon-flag.pin-on svg path { fill: currentColor; }
.chat-side .icon-flag.chat-delete { color: #9d2c2c; }
.unread-count { min-width: 22px; height: 22px; border-radius: 11px; background: #ff4f4f; color: white; display: grid; place-items: center; font-size: 12px; }
.voice-cancel { min-height: 40px; }
.friend-step { margin-top: 8px; }
.friend-step button, .friend-step .friend-state { width: 100%; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; flex: 0 0 auto; object-fit: cover;
}
.face-button { background: transparent; border: 0; padding: 0; }
.choice { position: fixed; inset: 0; background: #3a2220cc; display: grid; align-content: center; gap: 10px; padding: 24px; z-index: 20; }
.choice p { color: white; text-align: center; font-size: 18px; }
.profile-photo { width: min(100%, 360px); margin: 24px auto; display: block; border-radius: 16px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.social-row { display: flex; justify-content: center; gap: 28px; padding: 8px 16px 16px; }
.social-account { display: grid; justify-items: center; gap: 8px; width: 140px; }
.social-face { position: relative; width: 72px; height: 72px; border: 0; background: transparent; padding: 0; }
.social-face .avatar { width: 72px; height: 72px; }
.social-logo { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid white; background: #fff center / 16px 16px no-repeat; }
.social-logo.facebook { background-color: #1877f2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M15.1 8.5h-2V7.2c0-.5.3-.6.6-.6H15V4.5h-2.1C10.6 4.5 10 5.8 10 7.1v1.4H8.4V11H10v8.5h3.1V11h2l.4-2.5z'/%3E%3C/svg%3E"); }
.social-logo.instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23f9ce34'/%3E%3Cstop offset='.5' stop-color='%23ee2a7b'/%3E%3Cstop offset='1' stop-color='%236228d7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='6' fill='url(%23g)'/%3E%3Crect x='6' y='6' width='12' height='12' rx='3.5' fill='none' stroke='%23fff' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='12' r='2.6' fill='none' stroke='%23fff' stroke-width='1.7'/%3E%3Ccircle cx='16.3' cy='7.7' r='.9' fill='%23fff'/%3E%3C/svg%3E"); }
.profile-side { position: relative; display: grid; justify-items: center; gap: 8px; }
.presence-select { width: 78px; max-width: 78px; font-size: 10px; padding: 1px 2px; border-radius: 6px; color: var(--ink); }
.book-btn { display: inline-flex; align-items: center; gap: 8px; }
.book-btn svg { width: 22px; height: 22px; }
.check-line { display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--ink); }
.check-line input { width: auto; flex: 0 0 auto; }
.check-line span { flex: 0 1 auto; }
.incoming { width: 100%; border: 0; background: #b45309; color: white; padding: 12px; }
.call-view { min-height: 100vh; background: #1a0c0c; color: white; display: grid; align-content: center; gap: 12px; padding: 24px; }
.call-view video { width: 100%; border-radius: 16px; background: black; max-height: 46vh; }
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.call-tile { display: grid; justify-items: center; gap: 4px; }
.call-tile video { max-height: 28vh; }
.call-voice { width: 72px; height: 72px; border-radius: 50%; background: var(--bubble); color: #c53636; display: grid; place-items: center; font-size: 28px; }
#local-video { max-height: 24vh; }
.avatar.ring { box-shadow: 0 0 0 3px #ffede8, 0 0 0 6px #ff8a8a, 0 0 16px 2px #ffb4b4; }
.status-pip { width: 40px; height: 52px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: transparent; }
.status-pip img { width: 40px; height: 52px; object-fit: cover; display: block; }
.profile-ask { position: absolute; z-index: 6; top: 78px; inset-inline-start: 0; width: 220px; display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 24px #3a222033; }
.profile-ask p { margin: 0; color: var(--ink); padding: 0; }
.top .profile-ask button { width: 100%; background: var(--mint); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 10px; }
.story-shot { width: 52px; height: 68px; object-fit: cover; border-radius: 10px; display: block; }
.grow { flex: 1; min-width: 0; }
.grow strong, .grow span { display: block; }
.grow span, .muted { color: var(--muted); font-size: 13px; }
.badge { background: var(--leaf); color: white; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.ad-shot { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.story-row { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px; background: var(--surface); }
.story { position: relative; min-width: 72px; }
.story > button { border: 0; background: transparent; display: grid; justify-items: center; gap: 6px; width: 100%; color: inherit; }
.story span { font-size: 12px; color: var(--muted); }
.story-ask { position: static; width: min(280px, calc(100% - 32px)); margin: 8px 16px 0; }
.status-video { width: min(100%, 280px); max-height: 220px; margin: 8px 16px; border-radius: 12px; background: black; }
.clip-box { margin: 8px 16px; }
.chat-settings-card .set-line {
  width: 100%; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink);
  padding: 12px 14px; text-align: start; font-weight: 700;
}
.chat-settings-card .contact-us { margin: 0; }
.chat-settings-card .contact-us h2 { margin: 0; padding: 0; border: 0; }
.chat-icons { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.chat-icons .icon-flag { width: 42px; height: 42px; background: var(--mint); color: var(--ink); }
.chat-icons .icon-flag svg { width: 22px; height: 22px; }
.chat-icons .icon-flag.on { color: white; background: var(--leaf); }
.chat-icons .icon-flag.star-on { color: #e6a800; background: #fff4cc; }
.chat-icons .icon-flag.star-on svg path { fill: currentColor; }
.chat-icons .icon-flag.save-on { color: #ff4f4f; background: var(--bubble); }
.chat-icons .icon-flag.save-off { color: #9d2c2c; background: var(--soft); }
.chat-icons .icon-flag.block-off { color: var(--ink); background: var(--mint); }
.chat-icons .icon-flag.block-on { color: white; background: #9d2c2c; }
.save-note { margin: 0; color: var(--muted); font-size: 13px; }
.save-note.blocked { color: #9d2c2c; font-weight: 700; }
.chat-settings-card .shot, .chat-settings-card video.shot { width: 120px; height: 90px; object-fit: cover; }
.chat-name, .profile-name { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; padding: 0; text-align: start; }
.profile-name { font-size: 22px; }
.chat-head .avatar { width: 40px; height: 40px; }
.choice select, .choice button { width: 100%; }
.sub-count strong { font-size: 32px; }
.sheet-bar { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.sheet-bar .sheet-search { flex: 1; width: auto; }
.sheet-shown { margin: 0 0 8px; }
.sheet-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet th, .sheet td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: start; white-space: nowrap; vertical-align: middle; }
.sheet thead th { background: var(--bubble); }
.sheet select { width: 100%; min-width: 72px; font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.sheet button { padding: 4px 8px; border-radius: 8px; min-height: 0; box-shadow: none; }
.sheet-tools { flex-wrap: nowrap; }
.status-previews { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; }
.status-previews img { width: 92px; height: 120px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.upload-bar { margin: 0 16px 12px; }
.upload-bar b { display: block; height: 8px; background: #ff4f4f; border-radius: 99px; }
.upload-bar span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.back-arrow { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; }
.back-arrow svg { width: 22px; height: 22px; }
[dir="rtl"] .back-arrow svg { transform: scaleX(-1); }
.chat-head, .composer, .subhead {
  display: flex; gap: 8px; align-items: center; padding: 12px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.chat-head {
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(to left, #c53636, #ff4f4f 42%, #ff7a6e);
  color: white;
  border-bottom: 0;
}
.chat-head .chat-name { color: white; }
.chat-head .muted { color: #ffede8; }
.messages { min-height: calc(100vh - 150px); padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bubble); }
.message-row { display: flex; align-items: flex-end; gap: 6px; max-width: 88%; }
.message-row.mine { align-self: flex-start; }
.bubble { position: relative; padding: 10px 28px 10px 12px; border-radius: 14px; background: var(--surface); }
.bubble.mine { background: var(--bubble); }
.msg-arrow, .msg-more { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; padding: 0; font-size: 18px; }
.msg-more { position: absolute; top: 4px; inset-inline-end: 4px; display: none; }
.msg-menu { display: grid; gap: 6px; margin-top: 8px; }
.msg-menu.msg-icons { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.msg-menu.msg-icons button.msg-del { color: #c0392b; }
.reply-quote { display: grid; gap: 2px; border-inline-start: 3px solid var(--accent, #2a9d8f); background: rgba(0,0,0,.05); border-radius: 8px; padding: 4px 8px; margin-bottom: 4px; font-size: .86em; }
.reply-quote span { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.reply-bar { display: flex; align-items: center; gap: 6px; width: 100%; }
.reply-bar .reply-quote { flex: 1; margin: 0; }
.msg-info { margin-top: 8px; background: var(--surface); border-radius: 12px; padding: 8px 10px; min-width: 220px; color: inherit; }
.msg-info-head { display: flex; justify-content: space-between; align-items: center; }
.msg-info h4 { margin: 8px 0 4px; font-size: .9em; }
.msg-info ul { margin: 0; padding-inline-start: 18px; }
.msg-info li { display: flex; justify-content: space-between; gap: 8px; }
.chat-side .icon-flag.mute-on, .chat-side .icon-flag.archive-on { color: #7a5af8; }
.archive-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; white-space: nowrap; width: fit-content; }
.status-views small { opacity: .85; }
.msg-menu button { border: 0; border-radius: 10px; background: var(--surface); padding: 8px 10px; text-align: start; }
.msg-menu button.icon-flag { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
.msg-menu button.icon-flag.star-on { color: #e6a800; background: #fff4cc; }
.msg-menu button.icon-flag.star-on svg path,
.line-star svg path { fill: currentColor; }
.line-star { display: inline-flex; vertical-align: middle; margin-inline-end: 4px; color: #e6a800; }
.line-star svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .msg-more { display: grid; place-items: center; }
}
.composer { position: sticky; bottom: 0; border-top: 1px solid var(--line); border-bottom: 0; flex-wrap: wrap; }
.field { flex: 1; display: flex; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.field input { border: 0; background: transparent; min-width: 0; }
.field-cam { width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.live-cam { position: fixed; inset: 0; z-index: 6; background: #1a0c0c; display: grid; align-content: end; gap: 12px; padding: 16px; }
.live-cam video, .live-cam img { width: 100%; max-height: 70vh; background: black; border-radius: 16px; object-fit: cover; }
.live-cam.preview video, .live-cam.preview img { object-fit: contain; min-height: 40vh; }
.live-cam .subhead { background: transparent; border: 0; flex-wrap: wrap; justify-content: center; padding: 0; }
.field-cam svg, .plus-menu.icons svg, .call-slot svg { width: 24px; height: 24px; }
.call-slot { position: relative; z-index: 6; margin-inline-start: auto; }
.call-shade { position: fixed; inset: 0; z-index: 5; border: 0; padding: 0; background: transparent; }
.call-pick { position: absolute; top: 46px; inset-inline-end: 0; z-index: 4; display: flex; flex-direction: row; gap: 8px; padding: 8px; background: var(--surface); border-radius: 12px; box-shadow: 0 8px 24px #3a222033; }
.call-pick button { width: 46px; height: 46px; border: 0; border-radius: 12px; padding: 0; display: grid; place-items: center; }
.call-pick .call-voice { color: #ff4f4f; background: var(--bubble); }
.call-pick .call-video { color: #d64545; background: var(--soft); }
.call-pick svg { width: 24px; height: 24px; }
.icon-btn { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--mint); font-size: 22px; }
.plus-menu { flex: 1 0 100%; display: grid; gap: 6px; }
.plus-menu button { border: 0; border-radius: 12px; background: var(--mint); padding: 10px 12px; text-align: start; }
.plus-menu.icons { display: flex; justify-content: space-around; }
.plus-menu.icons button { width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 24px; text-align: center; }
.composer input.recording { color: #9d2c2c; }
.icon-btn.mic { touch-action: none; }
.composer input, .subhead input { flex: 1; }
.checks { display: grid; gap: 0; }
.status-view { position: relative; min-height: 100vh; background: #000; color: white; overflow: hidden; }
.status-view .shot { width: 100%; height: 100vh; max-height: none; object-fit: contain; background: #000; border-radius: 0; }
.status-view .video-wrap { height: 100%; }
.status-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.status-bars b { flex: 1; height: 3px; background: #ffffff55; border-radius: 99px; overflow: hidden; }
.status-bars i { display: block; height: 100%; background: var(--surface); }
.status-top, .status-actions { position: absolute; left: 12px; right: 12px; z-index: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-top { top: 20px; }
.status-actions { bottom: 16px; }
.status-view .status-top button, .status-view .status-actions button { background: #ffffff2e; color: white; border: 0; border-radius: 999px; padding: 8px 12px; }
.status-view .status-actions .ad-icon-btn { background: transparent; padding: 4px; }
.status-view .status-actions .social-count { color: white; }
.status-prev, .status-next { position: absolute; top: 0; bottom: 72px; width: 32%; background: transparent; border: 0; z-index: 2; padding: 0; }
.status-prev { left: 0; }
.status-next { right: 0; }
.status-view p { font-size: 28px; line-height: 1.5; margin: 0; padding: 80px 24px; }
.terms { max-height: 180px; overflow: auto; background: var(--bg); border-radius: 12px; padding: 8px 12px; }
.terms p { margin: 0 0 8px; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
select { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.shot { width: 180px; border-radius: 12px; display: block; }
.shot-hit { border: 0; padding: 0; background: transparent; display: block; }
.photo-view { position: fixed; inset: 0; z-index: 30; background: #3a2220e6; display: grid; place-items: center; }
.photo-frame { position: relative; width: min(480px, 100%); height: 100%; display: grid; place-items: center; }
.photo-view img { max-width: calc(100% - 96px); max-height: 88vh; object-fit: contain; border-radius: 12px; }
.photo-close, .photo-nav { position: absolute; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 28px; line-height: 1; }
.photo-close { top: 16px; inset-inline-end: 16px; }
.photo-nav { top: 50%; transform: translateY(-50%); }
.photo-nav.prev { inset-inline-start: 12px; }
.photo-nav.next { inset-inline-end: 12px; }
[dir="rtl"] .photo-nav { transform: translateY(-50%) scaleX(-1); }

.icon-tip {
  position: fixed; z-index: 80; background: #3a2220; color: white;
  font-size: 12px; font-weight: 700; line-height: 1.35;
  padding: 6px 10px; border-radius: 10px;
  max-width: min(240px, calc(100vw - 16px));
  text-align: center; pointer-events: none;
  box-shadow: 0 8px 20px #3a222044;
}
.report-sheet {
  position: fixed; inset: 0; z-index: 22; background: #3a222066;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 72px 12px 16px;
}
.report-card {
  width: min(420px, 100%); background: var(--surface); color: var(--ink);
  border-radius: 22px; padding: 14px 16px 18px;
  box-shadow: 0 16px 40px #3a222044;
}
.report-form { display: grid; gap: 10px; }
.report-form .who { margin: 0; color: var(--muted); }
.report-form select, .report-form button { width: 100%; }
.report-form .hobby-picks { padding: 0; }
.chat-settings-card .report-form {
  padding: 12px; border-radius: 16px; background: var(--bg);
}

/* Campaign date range (optional start/end beside day count) */
.date-range { display: grid; gap: 8px; }
.date-range input[type="date"] { width: 100%; }

/* Phase 1 (Oct 7 2026): dark mode. Light values above stay the default. */
html[data-theme="dark"] {
  --ink: #f3e6e3; --muted: #b8a19c; --line: #3b2c2a; --bg: #121011; --surface: #1c1819;
  --bubble: #2a2020; --mint: #3a2523; --soft: #241c1c; --panel: #e23b3b; --leaf: #ff5c5c; --mine: #c53636;
  color-scheme: dark;
}
html[data-theme="dark"] body, html[data-theme="dark"] :root { color: var(--ink); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: var(--muted); }
html[data-theme="dark"] .ghost, html[data-theme="dark"] button.ghost { color: var(--ink); }
html[data-theme="dark"] svg { color: inherit; }
html[data-theme="dark"] .bubble.mine { color: #fff; }
.typing-line { color: var(--leaf); font-size: 13px; font-weight: 600; }
.typing-line[hidden] { display: none; }
.is-typing > .preview-text, .is-typing > .peer-wrap { display: none; }
.chat-head .typing-line.head { display: block; }
.theme-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-row button { padding: 6px 10px; border-radius: 999px; }
.disappear-set { margin: 10px 0; }
.poll-card { display: grid; gap: 6px; min-width: 220px; max-width: 320px; }
.poll-option { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); color: var(--ink); overflow: hidden; text-align: start; }
.poll-option.voted { border-color: var(--leaf); }
.poll-bar { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--mint); z-index: 0; transition: width .2s; }
.poll-text, .poll-option b { position: relative; z-index: 1; }
.poll-who { font-size: 13px; padding: 6px 8px; }
.poll-voters { display: grid; gap: 6px; font-size: 13px; }
.poll-voters div { display: grid; }
.wallet-security { margin-top: 18px; }
/* Phase 2 (Oct 7 2026): analytics, moderation, metrics */
.an-card { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 10px 0; background: var(--surface, #fff); }
.an-chart { width: 100%; height: auto; }
.an-views { fill: var(--leaf); opacity: .35; }
.an-clicks { fill: var(--leaf); }
.an-label { font-size: 9px; fill: var(--muted); }
.an-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.an-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--leaf); display: inline-block; }
.an-dot.views { opacity: .35; }
.an-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.an-tile { display: grid; gap: 2px; background: var(--soft, #fff3ef); border-radius: 10px; padding: 6px 8px; }
.an-tile small { color: var(--muted); font-size: 11px; }
.metrics-card { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0; padding: 12px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid var(--line); }
.metric { display: grid; gap: 2px; text-align: center; }
.metric strong { font-size: 22px; color: var(--leaf); }
.metric-at { grid-column: 1 / -1; text-align: center; }
.mod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mod-chip { font-size: 12px; border-radius: 999px; padding: 2px 8px; background: var(--mint, #ffe4dc); }
.mod-chip.hot { background: #9d2c2c; color: #fff; }
.mod-text { margin: 0; padding: 8px 10px; border-inline-start: 3px solid var(--leaf); background: var(--soft, #fff3ef); border-radius: 8px; white-space: pre-wrap; }
.mod-actions { flex-wrap: wrap; }
.mod-actions button { flex: 0 1 auto; }
.mod-appeal { border-color: #e6a800; }
.lvl-escalated, .lvl-severe { border-color: #9d2c2c; }
.mod-resolved, .mod-dismissed { opacity: .75; }
.ban-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ban-form > input, .ban-form > .pair { grid-column: 1 / -1; }
.mod-history { display: grid; gap: 4px; font-size: 13px; }
.mod-legacy { margin: 12px 0; }
.mod-tabs { flex-wrap: wrap; }
.audit-log { font-size: 13px; }
@media (max-width: 520px) { .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics-card { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ban-form { grid-template-columns: 1fr; } }
.status-fx { margin: 8px 16px; }
.fx-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.fx-row label { display: grid; gap: 4px; font-size: 13px; }
.fx-preview, .fx-wrap { position: relative; overflow: hidden; border-radius: 14px; }
.fx-preview { min-height: 120px; background: #222; display: grid; place-items: center; }
.fx-preview img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.fx-wrap { width: 100%; height: 100%; display: grid; place-items: center; }
.fx-warm img, .fx-warm video { filter: sepia(.25) saturate(1.3) hue-rotate(-10deg); }
.fx-cool img, .fx-cool video { filter: saturate(1.1) hue-rotate(15deg) brightness(1.05); }
.fx-mono img, .fx-mono video { filter: grayscale(1) contrast(1.1); }
.fx-vivid img, .fx-vivid video { filter: saturate(1.7) contrast(1.1); }
.fx-fade img, .fx-fade video { filter: contrast(.85) brightness(1.1) saturate(.8); }
.fx-sepia img, .fx-sepia video { filter: sepia(.8); }
.fx-text { position: absolute; inset-inline: 8%; bottom: 14%; text-align: center; font-size: 26px; font-weight: 800; line-height: 1.25; pointer-events: none; }
.fx-preview .fx-text { position: absolute; }
.fx-text-neon { text-shadow: 0 0 6px currentColor, 0 0 14px currentColor, 0 0 28px #ff4f4f; }
.fx-text-outline { -webkit-text-stroke: 1.5px #000; }
.fx-text-shadow { text-shadow: 2px 3px 0 #000a, 0 0 12px #000a; }
.fx-text-banner { background: #000a; padding: 6px 10px; border-radius: 10px; }
.fx-text-typewriter { font-family: "Courier New", monospace; overflow: hidden; white-space: nowrap; animation: fx-type 2.2s steps(30, end) 1 both; }
@keyframes fx-type { from { max-width: 0; } to { max-width: 100%; } }
.fx-text-only { min-height: 60vh; }
.fx-music { position: absolute; top: 10px; inset-inline-start: 10px; border: 0; border-radius: 999px; padding: 4px 10px; background: #000a; color: #fff; font-size: 13px; }
.hashtag-hit { width: 100%; text-align: start; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; }
.hashtag-hit strong { color: var(--leaf); flex: 1; }
/* Phase 3 */
.p3-card { border: 1px solid rgba(127,127,127,.25); border-radius: 14px; padding: 12px; margin: 10px 0; }
.wallet-card.ad-credit { background: linear-gradient(135deg, #0e8f86, #1b2a4a); }
.toggle-row { display: flex; align-items: center; gap: 10px; }
.tfa-qr { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 6px; }
.tfa-secret { direction: ltr; font-family: ui-monospace, monospace; letter-spacing: 1px; word-break: break-all; }
.recovery pre { direction: ltr; font-family: ui-monospace, monospace; font-size: 15px; background: rgba(127,127,127,.12); padding: 8px; border-radius: 8px; }
/* Sign-up redesign + small links (Oct 7 2026) */
.link-button { background: none; border: 0; color: var(--muted, #8a6f6a); text-decoration: underline; cursor: pointer; padding: 2px 0; font: inherit; font-size: 13px; align-self: flex-start; width: auto; min-height: 0; box-shadow: none; }
.reg-dots { display: flex; gap: 8px; justify-content: center; margin: 4px 0 10px; }
.reg-dots .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(127,127,127,.18); }
.reg-dots .dot.on { background: #ff4f4f; color: #fff; }
.reg-dots .dot.done { background: #0e8f86; color: #fff; }
.reg-note { margin-top: -4px; font-size: 13px; }
.subhead.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255,79,79,.12); font-size: 14px; }
.chip-x { background: none; border: 0; padding: 0 2px; font-size: 16px; line-height: 1; cursor: pointer; min-height: 0; width: auto; color: inherit; }
.terms-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.terms-card { background: var(--surface, var(--panel, #fff)); color: var(--ink, inherit); border-radius: 16px; padding: 16px; max-width: 520px; width: 100%; max-height: 85vh; overflow: auto; }
.terms-card .terms { max-height: 55vh; overflow: auto; }
/* Market + publish banner (Oct 7 2026) */
.market-soon { display: grid; justify-items: center; gap: 6px; padding: 80px 16px; text-align: center; }
.market-soon .market-icon svg { width: 64px; height: 64px; color: #ff4f4f; }
.market-soon .lead { font-size: 20px; }
.update-banner { position: fixed; top: 0; inset-inline: 0; z-index: 100; background: #1b2a4a; color: #fff; text-align: center; padding: 10px; font-size: 15px; }
/* Centered menus (Oct 7 2026) */
.center-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(20,10,10,.45); }
.center-card { width: min(360px, 100%); max-height: 80vh; overflow: auto; background: var(--surface, #fff); border-radius: 20px; padding: 14px 14px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.power-modal .center-card { width: min(280px, 100%); }
.power-tile .power-glyph { font-size: 22px; line-height: 1; color: #fff; }
.power-who { position: relative; display: grid; justify-items: center; gap: 4px; padding: 6px 0 4px; }
.power-photo { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.power-avatar { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.power-avatar.letter { display: grid; place-items: center; background: #ff4f4f; color: #fff; font-size: 30px; font-weight: 700; }
.power-who small { color: var(--muted, #777); }
.power-pop { display: grid; margin-top: 8px; min-width: 150px; padding: 4px; background: var(--surface, #fff); border: 1px solid var(--line, #eee); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.power-pop button { padding: 8px 12px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-align: start; border-radius: 6px; }
.power-pop button:hover { background: rgba(255,79,79,.08); }
.power-pop button:first-child { color: #c0392b; }
.center-card .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.center-card .sheet-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: #ffe3dc; color: #c0392b; }
.center-card .sheet-x svg { width: 18px; height: 18px; }
/* Region phone field (Oct 7 2026) */
.phone-field { display: flex; gap: 6px; align-items: stretch; }
.phone-field .phone-cc { flex: 0 0 auto; width: 96px; padding-inline: 6px; font-size: 15px; text-overflow: ellipsis; }
.phone-field input { flex: 1 1 auto; min-width: 0; }
.phone-hint { display: block; min-height: 1em; margin-top: 4px; color: var(--muted, #777); font-size: 12px; }
.phone-hint.bad { color: #c0392b; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--muted, #8a7a78); font-size: 13px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #ead9d6); }
.brand.brand-stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-row h1 { margin: 0; line-height: 1; }
.tfa-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tfa-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #ffe3dc; color: #c0392b; font-size: 16px; }
.tfa-confirm { border: 1px solid #f3c3b8; }
.tfa-head h2 { flex: 1 1 auto; margin: 0; }
.tfa-head .tfa-x { flex: 0 0 34px !important; width: 34px !important; min-width: 0 !important; height: 34px !important; padding: 0 !important; display: grid; place-items: center; }
/* Photo chooser (Oct 7 2026) */
.pick-card { display: grid; gap: 8px; width: min(320px, 100%); }
.pick-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line, #f0dcd8); border-radius: 12px; background: #fff7f5; color: inherit; font: inherit; font-weight: 600; text-align: start; }
.pick-ico { font-size: 20px; }
.pick-hint { margin: 4px 0 0; color: var(--muted, #8a7a78); font-size: 12px; line-height: 1.5; }
.name-msg.ok { color: #1e7a4f; }
.twofa-row input { font-size: 22px; letter-spacing: .2em; text-align: center; }
.reset-row { display: flex; gap: 8px; } .reset-row input { flex: 1; min-width: 0; }
/* Number lookup (Oct 7 2026) */
.number-lookup { display: grid; gap: 8px; margin: 10px 0; }
.number-lookup .phone-box { flex: 1; min-width: 0; }
.number-lookup .lookup-go { flex: 0 0 auto; width: auto; padding-inline: 16px; }
.lookup-hit .has-app { display: block; color: #1e7a4f; font-weight: 700; font-size: 12px; }
.lookup-hit { flex-wrap: wrap; } /* #209 */
.lookup-hit .grow { min-width: 0; } .lookup-hit .grow strong { display: block; } .lookup-hit .grow span { display: inline-block; white-space: nowrap; }
.lookup-hit .person-actions { flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
.lookup-hit .grow { flex: 1 1 140px; text-align: start; } .lookup-hit .has-app { white-space: nowrap; display: inline-block; }
@media (max-width: 480px) { .lookup-hit .person-actions { flex-basis: 100%; } }
.soft-note { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: #fff4e5; color: #7a5a1e; font-size: 13px; }
/* Contact sync (Oct 7 2026) */
.sync-card { margin-bottom: 12px; }
.sync-card .pay-choices button { flex: 1 1 auto; }
.synced-list .person { align-items: center; }
.has-app { display: inline-block; font-size: 12px; font-weight: 700; color: #1e7a4f; background: #e3f6ec; border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; }
.person-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.person-actions button { width: auto; padding: 6px 10px; font-size: 13px; }
/* Documents, app files, drop & paste (Oct 7 2026) */
.chat-drop-zone { position: relative; }
.drop-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(255, 79, 79, .12); border: 3px dashed #ff4f4f; border-radius: 16px; pointer-events: none; }
.drop-overlay > div { display: grid; gap: 4px; text-align: center; background: #fff; padding: 18px 22px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.drop-overlay strong { font-size: 18px; color: #d93025; }
.file-bubble, .app-card { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 300px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.05); color: inherit; text-decoration: none; }
.file-ico { flex: 0 0 42px; height: 50px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.file-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.file-meta strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { font-size: 12px; opacity: .75; }
.file-dl { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #ff4f4f; color: #fff; }
.file-dl svg { width: 20px; height: 20px; } .file-dl svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-menu { display: grid !important; gap: 8px; min-width: 260px; }
.app-menu input { width: 100%; }
.resend-line { align-self: flex-start; min-height: 20px; }
.resend-wait { color: var(--muted, #8a6f6a); font-size: 12px; }
/* Optimistic upload bubbles with progress ring (Oct 7 2026) */
.up-bubble { opacity: .96; }
.up-thumb { position: relative; display: inline-block; }
.up-thumb .shot { filter: brightness(.8); display: block; }
.up-thumb .up-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; }
.up-ico { position: relative; flex: 0 0 42px; display: grid; place-items: center; }
.up-ico .file-ico { opacity: .55; }
.up-ico .up-ring { position: absolute; }
.up-ring { --p: 0; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: conic-gradient(#ff4f4f calc(var(--p) * 1%), rgba(255,255,255,.55) 0); transition: background .2s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.up-ring span { width: calc(100% - 7px); height: calc(100% - 7px); border-radius: 50%; background: rgba(30,20,20,.75); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.up-ring.fail { background: #d93025; color: #fff; font-size: 20px; font-weight: 800; }
.up-note { font-size: 11px; margin-top: 2px; }
.up-note.error { color: #d93025; }
/* Chat fixes (Oct 7 2026) */
.ad-pill { width: auto; display: inline-block; padding: 2px 10px; font-size: 11px; line-height: 1.5; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.22); color: inherit; white-space: nowrap; min-height: 0; margin-top: 2px; }
.avatar.letter { display: grid; place-items: center; background: #ffd9d2; color: #b3261e; font-weight: 800; }
.message-row.peer { align-items: flex-end; }
.message-row.peer > .avatar { width: 28px; height: 28px; flex: 0 0 28px; font-size: 12px; align-self: flex-start; margin-top: 2px; }
.row-face-gap { flex: 0 0 28px; }
.new-chip { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 30; width: auto; padding: 6px 14px; font-size: 13px; border-radius: 999px; background: #ff4f4f; color: #fff; border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.rec-hidden { display: none !important; }
.rec-bar { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid #f0dcd8; min-width: 0; }
.rec-cancel { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #eee; color: #333; }
.rec-send { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 16px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #d93025; animation: recBlink 1s infinite; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 36px; }
.rec-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; overflow: hidden; }
.rec-wave i { flex: 1; max-width: 4px; background: #ff4f4f; border-radius: 2px; height: 30%; animation: recWave .8s ease-in-out infinite alternate; }
@keyframes recBlink { 50% { opacity: .2; } }
@keyframes recWave { to { height: 95%; } }
.voice-bubble { --vp: 0; display: flex; align-items: center; gap: 8px; min-width: 210px; max-width: 280px; }
.v-play { width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border-radius: 50%; background: #ff4f4f; color: #fff; font-size: 14px; }
.v-wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; direction: ltr; }
.v-wave i { flex: 1; background: #c9b3ae; border-radius: 2px; min-height: 3px; }
.v-wave i.on { background: #ff4f4f; }
.v-time { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; min-width: 32px; }
.voice-bubble.v-error .v-play { background: #999; }
.voice-bubble.uploading .up-ico { flex: 0 0 38px; height: 38px; }
.voice-bubble.uploading .v-wave i { background: #e3cfca; }
/* Merged chat header + profile overlay (Oct 7 2026) */
.chat-who { display: flex; align-items: center; gap: 10px; min-width: 0; background: none; border: 0; padding: 2px 4px; color: inherit; text-align: start; cursor: pointer; width: auto; }
.chat-who .avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.chat-who-text { display: grid; min-width: 0; line-height: 1.25; }
.chat-who-text .chat-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who-text .muted { font-size: 12px; color: inherit; opacity: .85; white-space: nowrap; }
.row-face { background: none; border: 0; padding: 0; width: auto; align-self: flex-start; margin-top: 2px; }
.row-face .avatar { width: 28px; height: 28px; font-size: 12px; }
.list-face { display: inline-flex; }
.chat-settings-card .ad-pill { justify-self: start; align-self: flex-start; width: auto !important; color: #b3261e; border-color: #f0c7c0; background: #fff3f0; margin: 2px 0 6px; }
.view-profile { display: flex; align-items: center; gap: 8px; }
.view-profile svg { width: 20px; height: 20px; }
.peer-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(20,10,10,.45); display: grid; place-items: center; padding: 14px; }
.po-card { position: relative; width: min(420px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 0 16px 16px; text-align: center; box-shadow: 0 16px 50px rgba(0,0,0,.3); }
.po-x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; }
.po-cover { display: block; width: calc(100% + 32px); margin: 0 -16px; height: 110px; object-fit: cover; }
.po-cover.blank { background: linear-gradient(135deg, #ff4f4f, #ff9a7a); }
.po-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; margin: -58px auto 6px; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.po-photo.letter { display: grid; place-items: center; background: #ffd9d2; color: #b3261e; font-size: 40px; font-weight: 800; }
.po-card h2 { margin: 4px 0 0; }
.po-phone { margin: 2px 0; font-weight: 600; }
.po-section { text-align: start; margin-top: 12px; display: grid; gap: 6px; }
.po-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .po-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.po-shared { display: flex; gap: 6px; overflow-x: auto; } .po-item { flex: 0 0 auto; max-width: 230px; } .po-item .shot { max-height: 90px; width: auto; }
.po-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-top: 14px; }
.po-actions button { width: 100%; padding: 8px; font-size: 14px; }
.danger-text { color: #d93025 !important; }
/* Details inside Profile > Settings (Oct 7 2026) */
.details-card { margin-bottom: 12px; text-align: start; }
.name-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.mode-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid #f0c7c0; background: #fff; font-size: 13px; cursor: pointer; }
.mode-pill input { width: auto; margin: 0; accent-color: #ff4f4f; }
.mode-pill.on { background: #ff4f4f; color: #fff; border-color: #ff4f4f; }
.hidden-box { display: none; }
.name-preview { font-size: 12px; margin: 0; }
/* #29: contact summary under the alias (light + dark via variables) */
.contact-summary { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.contact-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.contact-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.contact-value { flex: 1 1 auto; display: block; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; unicode-bidi: isolate; }
.contact-summary button.contact-edit, .settings .stack .contact-summary button.contact-edit { flex: 0 0 auto; width: auto; min-width: 0; margin: 0; padding: 2px 10px; font-size: 12px; }
.detail-row { display: flex; align-items: flex-end; gap: 8px; }
.detail-row > label:first-child { flex: 1; display: grid; gap: 4px; }
.show-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; padding-bottom: 10px; }
.show-toggle input { width: auto; margin: 0; accent-color: #ff4f4f; }
.profile-details { display: grid; gap: 6px; justify-items: center; margin: 2px 0 6px; }
.profile-shown-name { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted, #8a6f6a); }
.detail-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.detail-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #fff3f0; border: 1px solid #f6d9d3; }
.detail-chip small { opacity: .7; }

.rail-mark { width: 48px; height: 48px; display: inline-block; }
.rail-mark img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; display: block; }
.rail.picked .rail-mark img { outline: 3px solid var(--accent, #0e8f86); outline-offset: 2px; }
.wallet-section { border-top: 1px solid rgba(127,127,127,.35); margin: 18px 0 6px; padding-top: 12px; }
.wallet-section h3 { margin: 0; font-size: 1.05rem; }
.wallet-section .soon { display: block; opacity: .65; font-size: .8rem; margin-top: 2px; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-inline-end: 44px; }
.pw-eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.15rem; padding: 6px; cursor: pointer; }
/* p41: ".settings .stack button { width: 100% }" is more specific than .pw-eye, so the eye stretched over the whole wallet password field and every tap on the field toggled show/hide instead of focusing it. Keep the eye a small icon at the edge. */
.settings .stack .pw-wrap button.pw-eye, .auth .stack .pw-wrap button.pw-eye, .pw-wrap button.pw-eye { width: auto; min-width: 0; height: auto; margin: 0; padding: 6px; background: none; border: 0; box-shadow: none; color: inherit; line-height: 1; z-index: 1; }
.pending-receipts { font-weight: 600; color: #b45309; }

/* ---- Oct 7 2026: theme-safe chips/pills + dark fixes for new elements ---- */
.detail-chip { background: var(--soft, #fff3ef); color: var(--ink); border-color: var(--line, #f6d9d3); }
.detail-chip small { color: var(--muted, #8a6f6a); opacity: 1; }
.mode-pill { background: var(--surface, #fff); color: var(--ink); border-color: var(--line, #f0c7c0); }
.mode-pill.on { background: #ff4f4f; color: #fff; border-color: #ff4f4f; }
html[data-theme="dark"] .detail-chip { background: #2a2122; border-color: #4a3634; color: #f3e6e3; }
html[data-theme="dark"] .detail-chip small { color: #c9b1ac; }
html[data-theme="dark"] .details-card, html[data-theme="dark"] .po-card, html[data-theme="dark"] .drop-overlay > div, html[data-theme="dark"] .rec-bar { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .chat-settings-card .ad-pill { background: var(--soft); color: #ff8a80; border-color: var(--line); }
html[data-theme="dark"] .soft-note { background: #3a2d14; color: #f2d79b; }
html[data-theme="dark"] .pick-item { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .wallet-section { border-top-color: #4a3634; }
html[data-theme="dark"] .pending-receipts { color: #fbbf24; }
html[data-theme="dark"] .show-toggle, html[data-theme="dark"] .profile-shown-name { color: var(--muted); }
/* campaign images */
.camp-media { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line, #f0c7c0); border-radius: 14px; background: var(--soft, #fff3ef); color: var(--ink); }
.camp-media h3 { margin: 0; font-size: 1rem; }
.camp-media-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.camp-media-btns button { width: auto; }
.camp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.camp-thumb { position: relative; flex: 0 0 96px; }
.camp-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.camp-cover { position: absolute; top: 4px; inset-inline-start: 4px; background: #ff4f4f; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; }
.camp-thumb-tools { display: flex; justify-content: space-between; margin-top: 4px; }
.camp-thumb-tools button { width: 28px; height: 26px; padding: 0; border-radius: 8px; border: 1px solid var(--line, #f0c7c0); background: var(--surface, #fff); color: var(--ink); font-size: 13px; }
.camp-thumb-tools button.x { color: #e23b3b; }
.camp-thumb-tools button[disabled] { opacity: .35; }
.camp-picker { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #f0c7c0); }
.camp-picker .row { display: flex; justify-content: space-between; align-items: center; }
.camp-picker .row button { width: auto; }
.camp-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 300px; overflow-y: auto; }
.camp-pick { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; aspect-ratio: 1; }
.camp-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camp-pick.on { border-color: #ff4f4f; }
.camp-tick { position: absolute; top: 4px; inset-inline-end: 4px; background: #ff4f4f; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.from-post-note { background: var(--soft, #fff3ef); border-radius: 10px; padding: 8px 10px; }
.ad-gallery-wrap { position: relative; }
.ad-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ad-gallery::-webkit-scrollbar { display: none; }
.ad-gallery > img { flex: 0 0 100%; scroll-snap-align: center; }
.ad-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.ad-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.ad-dots span.on { background: #fff; }
.review-gallery { display: flex; gap: 6px; overflow-x: auto; align-items: flex-end; }
.review-gallery .review-photo { width: 140px; height: 140px; object-fit: cover; }

/* ---- Oct 7 2026: profile toolbar order, photo viewer, status ring, statuses ---- */
.profile-tools.ltr-order { direction: ltr; }
.profile-tools.ltr-order > * { direction: rtl; }
html[dir="ltr"] .profile-tools.ltr-order > * { direction: ltr; }
.profile-tools.ltr-order { justify-content: flex-start; }
.profile-tools.ltr-order > .profile-tool.gear { margin-left: auto; }
.profile-face-wrap { position: relative; display: flex; justify-content: center; }
.profile-face-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.face-ask { position: absolute; top: 100%; z-index: 30; display: grid; gap: 6px; min-width: 200px; }
.contact-gear { display: grid; gap: 6px; margin: 6px auto 0; max-width: 260px; }
.contact-gear .danger { color: #e23b3b; }
.photo-viewer { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.94); display: grid; place-items: center; }
.photo-viewer img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.pv-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; }
.profile-statuses { margin: 10px 0; text-align: start; }
.profile-statuses h3 { margin: 0 0 6px; font-size: 1rem; }
.ps-row { display: flex; gap: 8px; overflow-x: auto; }
.ps-item { flex: 0 0 76px; display: grid; gap: 3px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
.ps-item img, .ps-text { width: 76px; height: 110px; object-fit: cover; border-radius: 12px; border: 3px solid #25d366; display: grid; place-items: center; font-size: 11px; background: var(--soft); overflow: hidden; box-sizing: border-box; }
.ps-item.seen img, .ps-item.seen .ps-text { border-color: var(--line, #ccc); }
.ps-item small { font-size: 10px; color: var(--muted); }
.profile-tool .more-icon { position: relative; }

.live-cam video.mirror { transform: scaleX(-1); }
.cam-flip { width: auto; }

.mini-face { display: inline-block; vertical-align: middle; margin-inline-end: 4px; }
.mini-face .avatar { width: 18px !important; height: 18px !important; min-width: 18px; font-size: 8px; box-shadow: none !important; }
.auth-divider { border: 0; border-top: 1px solid var(--line, #f0c7c0); margin: 16px 0 8px; width: 100%; }
.auth-section-title { margin: 0 0 4px; font-weight: 700; color: var(--muted); font-size: 13px; }
.mgr-login .stack { display: grid; gap: 8px; margin-top: 8px; }
.auth-divider { border: 0; border-top: 1px solid var(--line, #f0c7c0); margin: 16px 0 8px; width: 100%; }
.auth-section-title { margin: 0 0 4px; font-weight: 700; color: var(--muted); font-size: 13px; }
.mgr-login .stack { display: grid; gap: 8px; margin-top: 8px; }
.chat-head .nudge-bell, .nudge-bell { color: #ffd400 !important; } .chat-head .nudge-bell svg { fill: #ffd400; stroke: #8a6d00; filter: drop-shadow(0 0 1px rgba(0,0,0,.35)); }
.system-bubble.nudge-bubble { align-self: center; margin: 8px auto; padding: 6px 12px; border-radius: 14px; background: #fff4c2; color: #6b5200; font-size: 13px; text-align: center; max-width: 85%; }
html[data-theme="dark"] .system-bubble.nudge-bubble, body.dark .system-bubble.nudge-bubble { background: #3b3200; color: #ffe27a; }
.fwd-back { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 14px; }
.fwd-card { background: var(--surface, #fff); color: var(--ink, #1b1b1b); border: 1px solid var(--line, transparent); width: min(440px, 100%); max-height: 86vh; display: flex; flex-direction: column; gap: 10px; border-radius: 18px; padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.fwd-head { display: flex; align-items: center; justify-content: space-between; }
.fwd-x { background: transparent; border: 0; font-size: 20px; color: inherit; width: 36px; height: 36px; }
.fwd-search { width: 100%; background: var(--field, transparent); color: inherit; }
.fwd-list { overflow-y: auto; display: grid; gap: 4px; min-height: 120px; }
.fwd-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; }
.fwd-row.on { background: rgba(229, 57, 53, .12); }
.fwd-row .avatar { width: 40px; height: 40px; min-width: 40px; }
.fwd-name { flex: 1; display: grid; text-align: start; }
.fwd-name small { color: var(--muted); }
.fwd-row input[type=checkbox] { width: 22px; height: 22px; accent-color: #e53935; }
.fwd-send:disabled { opacity: .5; }
.map-bubble { display: block; width: 240px; max-width: 100%; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; position: relative; }
.map-tiles { position: relative; width: 240px; height: 140px; overflow: hidden; background: #dfe7df; }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 28px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.map-cap { padding: 6px 8px; font-size: 13px; font-weight: 600; }
.map-attrib { position: absolute; right: 4px; top: 122px; font-size: 9px; background: rgba(255,255,255,.75); color: #333; padding: 0 3px; border-radius: 3px; }
.map-picker { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 12px; }
.map-card { background: var(--surface, #fff); color: var(--ink, #222); border: 1px solid var(--line, transparent); width: min(520px, 100%); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.map-head { display: flex; justify-content: space-between; align-items: center; }
.map-x { background: transparent; border: 0; font-size: 20px; color: inherit; width: 36px; height: 36px; }
#map-pick { height: 55vh; min-height: 260px; border-radius: 12px; }
.map-actions { display: flex; gap: 8px; justify-content: space-between; }
.map-note { margin: 0; font-size: 13px; }
.call-slot { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.chat-head .nudge-wait { color: #ffd400 !important; font-weight: 800; font-size: 16px; opacity: .9; cursor: default; font-variant-numeric: tabular-nums; }
.nudge-bubble.tappable { cursor: pointer; position: relative; }
.nudge-bubble .nudge-ico { font-size: 16px; }
.nudge-menu { display: grid; gap: 4px; margin-top: 8px; background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.nudge-menu button { background: transparent; border: 0; color: inherit; text-align: start; padding: 10px; border-radius: 8px; font-size: 14px; }
.nudge-menu button:hover { background: var(--soft); }
.nudge-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; }
.nudge-toggle-row .ntr-text { display: grid; gap: 2px; text-align: start; }
.nudge-toggle-row small { color: var(--muted); font-size: 12px; }
.nudge-toggle-row input.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; min-width: 46px; border-radius: 13px; background: #bbb; position: relative; margin: 0; padding: 0; border: 0; transition: background .2s; }
.nudge-toggle-row input.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.nudge-toggle-row input.switch:checked { background: #e53935; }
.nudge-toggle-row input.switch:checked::after { transform: translateX(20px); }
html[dir="rtl"] .nudge-toggle-row input.switch:checked::after { transform: translateX(-20px); }
.bijanco { display: grid; gap: 10px; margin-bottom: 18px; }
.bijanco .bj-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bijanco .bj-head h2 { margin: 0; flex: 1; }
.bj-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.bj-pill.ok { background: #d9f7e4; color: #11612f; } .bj-pill.off { background: #fff1c2; color: #6b5200; }
.bj-sub { margin: 0; font-size: 12px; } .bj-note { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--soft, #fff0ee); }
.bj-table-wrap { overflow-x: auto; border: 1px solid var(--line, #ddd); border-radius: 12px; }
.bj-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.bj-table th, .bj-table td { padding: 8px; border-bottom: 1px solid var(--line, #eee); text-align: start; vertical-align: top; }
.bj-table td b, .bj-table td small { display: block; } .bj-table td small { color: var(--muted, #777); margin-top: 2px; }
.bj-table tr.on { background: var(--soft, #fff4f2); }
.bj-table pre { white-space: pre-wrap; font: inherit; margin: 4px 0; }
.bj-acts { display: grid; gap: 4px; min-width: 96px; } .bj-acts button { padding: 6px 8px; font-size: 12px; }
.bj-prio, .bj-st { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--soft, #eee); white-space: nowrap; }
.bj-prio.high { background: #ffd9d6; color: #8a1a12; } .bj-prio.medium { background: #fff1c2; color: #6b5200; } .bj-prio.low { background: #e5eefc; color: #1d3f78; }
.bj-st.published { background: #d9f7e4; color: #11612f; } .bj-st.failed { background: #ffd9d6; color: #8a1a12; } .bj-st.executing { background: #e5eefc; color: #1d3f78; }
.bj-chat { border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 10px; display: grid; gap: 8px; background: var(--surface, #fff); color: var(--ink, #222); }
.bj-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bj-chat-log { max-height: 260px; overflow-y: auto; display: grid; gap: 6px; }
.bj-msg { padding: 8px 10px; border-radius: 12px; white-space: pre-wrap; max-width: 92%; font-size: 13px; }
.bj-msg.user { background: var(--mine, #c53636); color: #fff; justify-self: end; } .bj-msg.bot { background: var(--soft, #f3f3f3); justify-self: start; }
.bj-chat-send { display: flex; gap: 8px; align-items: end; } .bj-input { flex: 1; resize: vertical; background: transparent; color: inherit; }
@media (max-width: 700px) {
  .bj-table { min-width: 0; } .bj-table thead { display: none; }
  .bj-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line, #eee); }
  .bj-table td { border: 0; padding: 0; } .bj-table td:first-child, .bj-table td.bj-acts { grid-column: 1 / -1; }
  .bj-table td[data-k]::before { content: attr(data-k); display: block; font-size: 11px; color: var(--muted, #777); }
  .bj-acts { grid-template-columns: repeat(4, 1fr); }
}
.bj-acts button:disabled { opacity: .4; cursor: not-allowed; }

/* p42 (Oct 14 2026): settings sheets keep their header (title + Close) pinned while scrolling (#65) */
.app-sheet-card .sheet-head, .profile-settings-card .sheet-head, .chat-settings-card .sheet-head { position: sticky; top: -14px; z-index: 3; background: var(--surface); margin: -14px -16px 0; padding: 14px 16px 8px; border-bottom: 1px solid var(--line); }
/* p42: report/block icons next to the name in a profile (#62) */
.profile-name-row { display: inline-flex; align-items: center; gap: 6px; justify-content: center; flex-wrap: wrap; }
.profile-name-row .profile-name-act { border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 999px; width: 34px; height: 34px; min-height: 0; padding: 0; font-size: 16px; line-height: 1; cursor: pointer; }
.status-empty-note { text-align: center; margin: 6px 0; }

/* AdSense (browser version only): small responsive slots, cookie notice, legal viewer */
.ad-slot { margin: 14px 12px 18px; text-align: center; overflow: hidden; border-radius: 10px; background: var(--soft, #fff3ef); }
.ad-slot .ad-tag { display: block; font-size: 10px; opacity: .55; padding-top: 4px; }
.ad-slot.ad-off { display: none; }
.cookie-note { position: fixed; inset-inline: 8px; bottom: 8px; z-index: 60; background: var(--surface, #fff); color: var(--ink, #3a2220); border: 1px solid var(--line, #f0d6d0); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 13px; max-width: 560px; margin-inline: auto; }
.cookie-note p { margin: 0 0 4px; }
.cookie-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.cookie-row button { padding: 6px 12px; font-size: 13px; }
.cookie-row .linklike { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; opacity: .8; }
.legal-modal { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 12px; }
.legal-card { background: var(--surface, #fff); color: var(--ink, #3a2220); border-radius: 14px; max-width: 640px; width: 100%; max-height: 86dvh; overflow: auto; padding: 14px 16px; }
.legal-card > button { float: inline-end; }
.legal-sec { border-top: 1px solid var(--line, #f0d6d0); margin-top: 10px; padding-top: 6px; font-size: 14px; }
.legal-sec h3 { margin: 4px 0; font-size: 15px; }
html[data-theme="dark"] .ad-slot { background: #2a1c1b; }
.sponsor-slide { background: #111; }
.sponsor-body { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px 16px 84px; }
.sponsor-body .ad-slot { margin: 0; width: min(100%, 480px); }
.sponsor-hint { color: #ffede8; opacity: .6; font-size: 12px; }

/* Oct 15 2026: one tidy row of message actions (react, reply, forward, star, delete); own avatar beside own messages */
.msg-menu.msg-icons button.icon-flag { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); border-radius: 50%; flex: 0 0 auto; }
.msg-menu.msg-icons button.icon-flag.on { background: var(--bubble); color: #ff4f4f; }
.row-face.mine-face { display: inline-flex; align-self: flex-start; margin-top: 2px; }
.row-face.mine-face .avatar { width: 28px; height: 28px; font-size: 12px; }
.msg-menu.msg-icons { flex-wrap: nowrap; gap: 4px; width: max-content; max-width: calc(100vw - 80px); overflow-x: auto; }
.msg-menu.msg-icons button.icon-flag { width: 32px; height: 32px; }
.msg-menu.msg-icons button.icon-flag svg { width: 17px; height: 17px; }

/* Oct 15 2026: Options popup anchored above the gear button; X close buttons */
.gear-pop { position: fixed; z-index: 60; visibility: hidden; width: 270px; box-sizing: border-box; padding: 10px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 30px #3a222040; border: 1px solid #00000012; }
.gear-pop-body { display: grid; gap: 8px; overflow: auto; max-height: 70vh; }
.gear-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gear-pop-head strong { font-size: 15px; }
.gear-pop-body > button { width: 100%; background: var(--mint); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 10px; }
.gear-pop-body > button.danger { color: #e23b3b; }
.gear-pop-arrow { position: absolute; left: var(--arrow-x, 50%); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: var(--surface); transform: rotate(45deg); border-right: 1px solid #00000012; border-bottom: 1px solid #00000012; pointer-events: none; }
.gear-pop.below .gear-pop-arrow { bottom: auto; top: -7px; transform: rotate(225deg); }
button.close-x, .gear-pop-head > button.close-x { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 10px; background: var(--mint, #f3e9e4); color: var(--ink); display: inline-grid; place-items: center; flex: none; }
button.close-x svg { width: 16px; height: 16px; display: block; }
.app-sheet-card .sheet-head .close-x, .profile-settings-card .sheet-head .close-x, .chat-settings-card .sheet-head .close-x { width: 34px; padding: 0; }
/* Oct 15 2026: chat list long-press selection */
.row.chat-line { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.row.chat-line.selected { background: color-mix(in srgb, #ff4f4f 14%, var(--surface, #fff)); border-radius: 12px; outline: 2px solid #ff4f4f55; }
.chat-sel-bar { position: fixed; top: 0; inset-inline: 0; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #c53636; color: #fff; box-shadow: 0 4px 14px #0003; }
.chat-sel-bar .sel-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.chat-sel-bar button { background: #ffffff26; color: #fff; border: 0; width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 10px; display: inline-grid; place-items: center; }
.chat-sel-bar button svg { width: 20px; height: 20px; }
.chat-sel-bar .icon-flag.chat-delete { color: #fff; background: #00000030; }

/* Oct 15 2026 (#70): group/broadcast picker rows (RTL-safe, dark-mode via theme vars) */
.picker-row { cursor: pointer; text-align: start; }
.picker-row[hidden], .checks .empty[hidden] { display: none; }
.picker-row input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.picker-row .avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.picker-row .grow { display: grid; gap: 2px; min-width: 0; }
.picker-row .grow small { unicode-bidi: plaintext; }
.picker-search { width: 100%; }
.picker-count { display: block; padding-top: 4px; }

/* Oct 15 2026 (#89): group settings inside the chat-info sheet (logical properties = RTL-correct; theme vars = dark mode) */
.group-settings { display: grid; gap: 10px; }
.group-head { display: flex; gap: 12px; align-items: center; }
.group-face .avatar { width: 64px; height: 64px; font-size: 24px; }
.group-edit { display: grid; gap: 8px; flex: 1; min-width: 0; }
.group-rename { display: flex; gap: 6px; align-items: center; }
.group-rename input { flex: 1; min-width: 0; margin: 0; }
.group-photo-row { display: flex; flex-wrap: wrap; gap: 6px; }
button.mini { width: auto; min-height: 34px; padding: 4px 12px; font-size: 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
button.mini svg { width: 16px; height: 16px; }
.group-members-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.group-member-list { display: grid; }
.group-member { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.group-member .avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.group-member .grow { min-width: 0; display: grid; gap: 2px; flex: 1 1 120px; }
.group-badge { justify-self: start; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.group-add-panel { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.group-add-list { display: grid; max-height: 240px; overflow: auto; }

/* Oct 15 2026 (#73): mutual groups section */
.mutual-groups { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); text-align: start; }
.mutual-groups p { margin: 0; }
.mutual-list { display: grid; gap: 4px; }
.mutual-row { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 14px; background: var(--soft); color: var(--ink); padding: 8px 10px; text-align: start; }
.mutual-row .avatar { width: 36px; height: 36px; flex: 0 0 36px; }
.mutual-row .grow { display: grid; gap: 1px; min-width: 0; }

/* Oct 15 2026 (#80): "+" menu - close X, podcast "coming soon" tile (theme vars = dark mode, logical props = RTL) */
.compose-card .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.compose-card .sheet-head strong { font-size: 18px; }
.more-tile.soon-tile { opacity: .75; position: relative; }
.more-tile .soon-badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px dashed var(--line); }
.compose-card .soft-note { margin: 0; }

/* Oct 19 2026 (B): nudge sender name, nudge toast, notifications prompt */
.nudge-who { font-weight: 700; }
.nudge-toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9000; max-width: calc(100vw - 24px); padding: 10px 16px; border: 0; border-radius: 14px; background: #ff4f4f; color: #fff; font: inherit; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); cursor: pointer; }
.push-ask { position: fixed; inset: auto 0 0 0; z-index: 8900; display: flex; justify-content: center; padding: 12px; pointer-events: none; }
.push-ask-card { pointer-events: auto; width: min(420px, 100%); background: var(--surface, var(--panel, #fff)); color: var(--ink, inherit); border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); display: grid; gap: 8px; }
.push-ask-card p { margin: 0; font-size: 14px; }
.push-ask-card .row { display: flex; gap: 8px; }

/* Oct 19 2026 (A): chat info library title */
.chat-library .library-title { display: block; margin: 6px 0 2px; }
.save-note.save-on-note { color: var(--leaf, #ff4f4f); font-weight: 600; }
.chat-icons { flex-wrap: wrap; justify-content: center; }

/* Oct 19 2026 (C): chat wallpaper + cover, profile-gate tag, tappable sender name in groups */
.messages.has-wallpaper { background-image: var(--chat-wallpaper); background-size: cover; background-position: center; background-attachment: local; }
.chat-head.has-cover { background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), var(--chat-cover); background-size: cover; background-position: center; color: #fff; }
.chat-head.has-cover .chat-name, .chat-head.has-cover .muted, .chat-head.has-cover button { color: #fff; }
.gate-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 8px; background: var(--mint); color: var(--muted); font-size: 11px; font-weight: 500; vertical-align: middle; }
.sender-name { display: block; padding: 0; border: 0; background: none; color: var(--leaf, #ff4f4f); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: start; }
.chat-look { display: grid; gap: 6px; margin: 8px 0; }
.chat-look-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Oct 19 2026: Leave group — "X left" line and the read-only notice that replaces the composer (RTL-safe, theme vars) */
.system-bubble.left-bubble { align-self: center; margin: 8px auto; padding: 6px 12px; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 13px; text-align: center; max-width: 85%; }
.composer.left-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.composer.left-notice p { margin: 0; color: var(--ink); font-weight: 600; }
.composer.left-notice .ghost { width: auto; }

/* Oct 19 2026: reply quote thumbnail (photo / video first frame) like WhatsApp; logical grid columns = correct in RTL and LTR */
.reply-quote.has-thumb { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.reply-quote.has-thumb > b, .reply-quote.has-thumb > span:not(.reply-thumb) { grid-column: 1; }
.reply-quote .reply-thumb { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 44px; height: 44px; max-width: none; opacity: 1; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,.08); }
.reply-quote .reply-thumb img, .reply-quote .reply-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.reply-quote .reply-play { position: absolute; inset: 0; display: grid; place-items: center; max-width: none; opacity: 1; color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.reply-quote.jump { cursor: pointer; }
.message-row.flash .bubble { animation: reply-flash 1.4s ease; }
@keyframes reply-flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent, #2a9d8f); } 100% { box-shadow: none; } }

/* Oct 19 2026: Podcast phase 1 (public/podcast.js) */
.pod-switch { display: inline-flex; gap: 4px; margin: 10px 12px 0; padding: 3px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.pod-switch button { border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; }
.pod-switch button.on { background: var(--leaf); color: #fff; }
.explore-screen .pod-switch { position: absolute; top: 62px; inset-inline-start: 12px; z-index: 6; margin: 0; background: #ffffffd8; border-color: transparent; }
.pod { padding: 0 0 24px; }
.pod > .pod-switch { margin-bottom: 4px; }
.pod-back { display: block; border: 0; background: transparent; color: var(--panel); font-weight: 700; padding: 10px 14px 0; }
.pod-notice { margin: 10px 12px; padding: 10px 12px; border-radius: 12px; background: var(--mint); }
.pod .error { margin: 10px 12px; }
.pod-actions { display: flex; gap: 8px; padding: 12px 12px 0; }
.pod-actions .pod-new { flex: 1; }
.pod-new { font-size: 16px; padding: 12px 16px; }
.pod-section { padding: 6px 12px; }
.pod-section h3 { margin: 12px 0 8px; font-size: 16px; }
.pod-list { display: grid; gap: 8px; }
.pod-card { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.pod-card-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; color: inherit; text-align: start; padding: 0; }
.pod-card-text { min-width: 0; display: grid; gap: 2px; }
.pod-card-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-card-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-cover { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; background: var(--soft); }
.pod-thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: var(--soft); }
.pod-hero { width: min(260px, 70vw); height: min(260px, 70vw); border-radius: 18px; object-fit: cover; display: block; margin: 12px auto; background: var(--soft); }
.pod-blank { display: grid; place-items: center; font-size: 26px; }
.pod-hero.pod-blank { font-size: 72px; }
.pod-play { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 16px; }
.pod-meta { color: var(--muted); font-size: 13px; }
.pod-progress { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pod-progress > span { display: block; height: 100%; background: var(--leaf); }
.pod-progress.big { height: 10px; margin: 6px 0; }
.pod-progress.warn > span { background: #d97706; }
.pod-show { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 8px; text-align: start; color: inherit; }
.pod-show strong { flex: 1; }
.pod-show small { color: var(--muted); }
.pod-show-cover { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.pod-dot { position: absolute; top: 6px; inset-inline-start: 46px; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 2px var(--surface); }
.pod-detail, .pod-form, .pod-studio { padding: 0 12px; display: grid; gap: 10px; }
.pod-detail h2, .pod-form h2, .pod-studio h2 { margin: 12px 0 0; }
.pod-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pod-row textarea { flex: 1; min-width: 0; }
.pod-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.pod-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pod-badge { padding: 8px 12px; border-radius: 12px; background: var(--mint); margin: 0; }
.pod-badge.warn { background: #fde7c7; }
.pod-desc { white-space: pre-wrap; }
.pod-comment { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pod-comment .link { justify-self: start; border: 0; background: transparent; color: var(--panel); padding: 0; font-size: 13px; }
.pod-form input, .pod-form textarea, .pod-form select, .pod-studio input, .pod-studio textarea, .pod-studio select { width: 100%; box-sizing: border-box; }
.pod-field { display: grid; gap: 4px; }
.pod-field span { font-weight: 700; font-size: 14px; }
.pod-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.pod-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pod-rec.on { background: #b91c1c; }
.pod-preview { width: 100%; }
.pod-stat { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pod-stat small { display: block; color: var(--muted); }
.pod-status.s-published { color: #15803d; }
.pod-status.s-rejected, .pod-status.s-hidden { color: #b91c1c; }
.pod-status.s-review, .pod-status.s-pending { color: #b45309; }
.pod-terms ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.pod-mini { position: fixed; z-index: 6; inset-inline: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 16px; background: #2b1a19; color: #fff; box-shadow: 0 6px 18px #0004; overflow: hidden; max-width: 560px; margin-inline: auto; }
.pod-mini.top { top: calc(62px + env(safe-area-inset-top)); bottom: auto; }
.pod-mini-line { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; background: var(--leaf); }
.pod-mini [hidden] { display: none !important; }
.pod-mini-cover { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; background: #ffffff22; }
.pod-mini-text { flex: 1; min-width: 0; display: grid; border: 0; background: transparent; color: #fff; text-align: start; padding: 0; }
.pod-mini-text strong, .pod-mini-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-mini-text small { opacity: 0.75; font-size: 12px; }
.pod-mini-btn { flex: none; min-width: 36px; height: 36px; border: 0; border-radius: 999px; background: #ffffff1f; color: #fff; font-size: 13px; font-weight: 700; padding: 0 8px; }
.pod-mini-btn.speed { min-width: 44px; }
body.pod-playing .stage:not(.stage-ads) { padding-bottom: 64px; }

/* Oct 19 2026: podcast promotion */
.pod-sponsored h3 { display: flex; align-items: center; gap: 6px; }
.pod-sp { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; margin: 0 0 4px; }
.pod-promo-state { margin: 4px 0 0; }

.post-menu:has(.post-tool.wide) { width: auto; }

/* Oct 19 2026: Explore overlay pills (search + Explore | Podcast switch) sit on a light glass background over
   the photo. In the dark theme the text colour (--ink) turns light, which made the "Podcast" label and the
   search text invisible (white on white). Give the glass its own colours in each theme. */
.explore-screen .pod-switch button:not(.on) { color: #3a2220; }
.explore-screen .explore-input { color: #3a2220; }
html[data-theme="dark"] .explore-screen .pod-switch { background: #1c1819e0; }
html[data-theme="dark"] .explore-screen .pod-switch button:not(.on) { color: #f3e6e3; }
html[data-theme="dark"] .explore-screen .explore-input { background: #1c1819e0; color: #f3e6e3; }
html[data-theme="dark"] .explore-screen .explore-input::placeholder { color: #c9b1ac; }
.explore-screen > .empty { padding-top: 120px; }

/* Oct 19 2026: Explore | Podcast switch - the Podcast tab shows its icon with the name label under it. */
.pod-switch { align-items: center; }
.pod-switch button.pod-tab { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 3px 14px 4px; line-height: 1.05; }
.pod-switch .pod-tab-ic { font-size: 18px; line-height: 1; }
.pod-switch .pod-tab-name { font-size: 11px; font-weight: 700; white-space: nowrap; }

/* #194: password fields (owner «حسابي», owner/manager sign-in) reuse .pw-wrap; labels above inputs; code input. */
.pw-field, .owner-account label, .mgr-login label { display: grid; gap: 4px; width: 100%; }
.pw-field > span, .owner-account label > span, .mgr-login label > span { font-size: .9rem; color: var(--muted, #6b5b57); }
.pw-wrap input, .settings .pw-wrap > input, .p3-card .pw-wrap > input, .centerModal .pw-wrap > input { width: 100%; min-width: 0; padding-inline-end: 46px !important; box-sizing: border-box; }
.pw-wrap button.pw-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); }
.owner-account .pw-wrap button.pw-eye, .mgr-login .pw-wrap button.pw-eye, .admin-signin-modal .pw-wrap button.pw-eye { width: auto; min-width: 0; height: auto; margin: 0; padding: 6px; background: none; border: 0; box-shadow: none; color: inherit; line-height: 1; }
input.code-input { letter-spacing: .35em; text-align: center; font-size: 1.2rem; direction: ltr; }
.field-hint { display: block; font-size: .85rem; }
.field-hint[hidden] { display: none; }

/* #194: WhatsApp link button (new tab) + desktop QR */
a.button.wa-open { display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none; font-size: 1.15em; padding: 14px; border-radius: 999px; }
.wa-open-wrap { display: grid; gap: 12px; justify-items: center; }
.wa-qr-box { display: grid; justify-items: center; gap: 6px; text-align: center; }
.wa-qr svg { display: block; width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 10px; }
/* #194: subscriber thumbnails + row menu */
.sub-name { display: inline-flex; align-items: center; gap: 8px; }
.sub-thumb { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: #eee; font-weight: 700; }
.row-menu { position: relative; }
.row-menu > summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-list { position: static; margin-top: 4px; z-index: 20; display: grid; min-width: 190px; background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 4px; }
.row-menu-list .menu-item { justify-content: flex-start; text-align: start; width: 100%; }
.row-menu-list .menu-item, .row-menu-list button.menu-item.danger { background: transparent !important; color: inherit; border: 0; box-shadow: none; gap: 8px; display: flex; align-items: center; padding: 8px 10px; border-radius: 8px; }
.row-menu-list .menu-item:hover { background: #fdecea !important; }
.row-menu-list button.menu-item.danger { color: #b00020 !important; }
.pill.danger-pill { background: #fde7ea; color: #b00020; font-size: .75rem; padding: 1px 6px; border-radius: 999px; }
/* #194: single-tab overlay */
.tab-taken { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(255,255,255,.97); padding: 24px; text-align: center; }
.tab-taken .card { max-width: 420px; display: grid; gap: 14px; }

/* #195: call screens — other person's photo, name, +number; full incoming-call screen */
.call-person { display: grid; justify-items: center; gap: 6px; margin: 14px 0; text-align: center; }
.call-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #fde3df; display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; color: #c43c3c; }
.call-name { font-size: 1.35rem; }
.call-phone { direction: ltr; unicode-bidi: isolate; color: #7a6560; }
.call-end-btn { min-width: 160px; margin-top: 18px; }
.incoming-call, .quick-reply { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; background: rgba(30, 18, 16, .72); padding: 20px; }
.incoming-card, .quick-reply .incoming-card { background: #fff; border-radius: 22px; padding: 26px 22px; width: min(380px, 100%); display: grid; justify-items: center; gap: 6px; text-align: center; box-shadow: 0 18px 48px rgba(0,0,0,.3); animation: call-pulse 1.6s ease-in-out infinite; }
.incoming-actions { display: flex; gap: 14px; width: 100%; margin-top: 12px; }
.incoming-actions button { flex: 1; padding: 14px; font-size: 1.05rem; border-radius: 999px; }
@keyframes call-pulse { 0%, 100% { box-shadow: 0 18px 48px rgba(0,0,0,.3); } 50% { box-shadow: 0 18px 48px rgba(46, 160, 67, .45); } }

/* #196: control-panel tile count badges + «حسابي» button */
.ops-nav button, .admin-nav button { position: relative; }
.nav-badge { display: inline-block; margin-inline-start: 6px; min-width: 1.4em; padding: 1px 7px; border-radius: 999px; font-size: 0.78em; font-weight: 700; line-height: 1.5; background: rgba(127,127,127,.18); color: inherit; vertical-align: middle; }
.nav-badge.hot { background: #e5484d; color: #fff; box-shadow: 0 0 0 2px rgba(229,72,77,.25); }
.me-btn { letter-spacing: .2px; }

/* #196: wallet PIN */
.pin-field { display: grid; gap: 4px; }
.pin-input { font-size: 1.4rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.bio-offer { display: grid; gap: 6px; margin-bottom: 10px; }
.bio-offer .row-actions { display: flex; gap: 8px; }
.wallet-lock .link-button { background: none; border: 0; color: var(--accent, #0a84ff); text-decoration: underline; cursor: pointer; padding: 6px; justify-self: center; }
.wallet-lock .bio-unlock { width: 100%; margin-bottom: 8px; }

/* #197: «حسابي والمدراء» — two separated sections */
.acct-managers { display: grid; gap: 16px; }
.acct-managers > section.card { padding: 14px; border-radius: 14px; }
.acct-managers .sec-head { margin-top: 0; }

/* #199: the 1:1 call screen stays inside the app frame (like other screens) with a round red end button */
.call-view { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; justify-items: center; text-align: center; }
.call-view .call-status { min-height: 1.4em; margin: 0; opacity: .9; }
.call-end-wrap { display: grid; justify-items: center; gap: 6px; margin-top: 22px; }
.call-view .call-end-btn { width: 72px; height: 72px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #e5484d; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(229,72,77,.45); cursor: pointer; }
.call-view .call-end-btn:active { transform: scale(.96); }
.call-end-icon { font-size: 30px; transform: rotate(135deg); display: inline-block; filter: grayscale(1) brightness(10); }
.call-end-label { font-size: .95rem; opacity: .9; }
.ring-tap { margin: 6px auto; }

/* #199: round handset buttons + quick replies */
.incoming-actions { display: flex; justify-content: center; gap: 48px; }
.call-btn-wrap { display: grid; justify-items: center; gap: 6px; }
.call-round { width: 72px; height: 72px; min-width: 0; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; }
.call-round.call-accept { background: #30a46c; box-shadow: 0 6px 18px rgba(48,164,108,.45); }
.call-round.call-decline, .call-view .call-end-btn { background: #e5484d; box-shadow: 0 6px 18px rgba(229,72,77,.45); }
.call-round.call-decline svg, .call-view .call-end-btn svg { transform: rotate(135deg); }
.call-view .call-end-btn svg { color: #fff; }
.quick-reply .qr-list { display: grid; gap: 8px; width: 100%; }
.quick-reply .qr-form { display: flex; gap: 8px; width: 100%; }
.quick-reply .qr-form input { flex: 1; min-width: 0; }
/* #200 in-call controls (round, beside the red handset) */
.call-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 18px; margin-top: 18px; }
.call-controls .call-end-wrap { margin-top: 0; }
.call-ctl-wrap { display: grid; justify-items: center; gap: 6px; font-size: .8em; max-width: 84px; text-align: center; }
.call-ctl { width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgba(255,255,255,.16); color: inherit; cursor: pointer; margin-top: 8px; }
.call-view .call-ctl { background: #eef1f4; color: #1f2328; }
.call-view .call-ctl.on { background: #1f2328; color: #fff; }
.call-ctl svg { width: 26px; height: 26px; }
.call-note { text-align: center; max-width: 320px; margin: 8px auto 0; font-size: .85em; }
.call-name-num { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-size: 1.3em; }
.call-photo-letter svg, .avatar.letter svg { width: 60%; height: 60%; }
#local-video.cam-off { opacity: .15; }
#remote-audio { display: none; }
/* #200 video call: remote video fills, own camera as a small corner tile, controls stay on screen */
.call-view.call-video-mode { position: relative; }
.call-video-mode .call-person { margin: 6px 0; gap: 2px; }
.call-video-mode .call-photo { display: none; }
.call-video-mode #remote-video { width: 100%; max-height: calc(100dvh - 300px); min-height: 200px; object-fit: cover; background: #000; border-radius: 16px; }
.call-video-mode #local-video { position: absolute; top: 12px; inset-inline-end: 12px; width: 96px; height: 128px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255,255,255,.7); z-index: 2; background: #111; }
.call-video-mode .call-controls { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
/* #202 video call on phones: one fixed screen, no scrolling. Remote video fills, own camera a fixed corner tile, controls overlaid. */
html.in-video-call, html.in-video-call body { overflow: hidden; overscroll-behavior: none; height: 100%; touch-action: none; }
.call-view.call-video-mode { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100vw, 480px); max-width: none; height: 100dvh; margin: 0; padding: 0; overflow: hidden; background: #000; z-index: 50; display: block; }
.call-view.call-video-mode > strong, .call-video-mode .call-person, .call-video-mode .call-status { position: relative; z-index: 2; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.8); color: #fff; }
.call-view.call-video-mode > strong { display: block; padding-top: calc(14px + env(safe-area-inset-top)); }
.call-video-mode .call-person { margin: 4px 0 0; }
.call-video-mode .call-status { margin: 2px 0 0; color: #fff; opacity: .9; }
.call-view.call-video-mode #remote-video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: cover; border-radius: 0; z-index: 0; }
.call-view.call-video-mode #local-video { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; width: 92px; height: 124px; z-index: 3; }
.call-view.call-video-mode .call-controls { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; z-index: 3; padding: 28px 8px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0,0,0,.65), transparent); flex-wrap: nowrap; gap: 10px; }
.call-view.call-video-mode .call-ctl { width: 52px; height: 52px; }
.call-view.call-video-mode .call-end-btn { width: 64px; height: 64px; }
.call-view.call-video-mode .call-ctl-wrap span, .call-view.call-video-mode .call-end-label { color: #fff; font-size: .72em; text-shadow: 0 1px 2px #000; }
.call-view.call-video-mode .call-note { position: absolute; left: 50%; transform: translateX(-50%); bottom: 130px; z-index: 4; background: rgba(0,0,0,.7); color: #fff; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
/* #200 phone contacts */
.pbook-modal .center-card { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.pbook .person-actions { display: flex; gap: 6px; align-items: center; }
.pbook a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line, #d0d7de); color: inherit; font-weight: 600; font-size: .9em; }
.pbook a.pbook-wa { color: #128c4b; border-color: #25d366; }
.pbook .pbook-call { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #1a9b4b; }
.pbook .pbook-call svg { width: 20px; height: 20px; }
.pbook-num { direction: ltr; unicode-bidi: isolate; display: block; }
.pbook-consent { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.pbook-consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.pbook-h { margin: 10px 0 2px; font-size: 1em; }
.pbook-actions { flex-wrap: wrap; }
.pbook-num { white-space: nowrap; }
/* #203 video call: title, name/number and timer at the top over the picture, subtle gradient */
.call-top { display: contents; }
.call-view.call-video-mode .call-top { display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: calc(12px + env(safe-area-inset-top)) 112px 26px; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0)); text-align: center; }
.call-view.call-video-mode .call-top > strong { padding-top: 0; font-size: .9em; opacity: .9; }
.call-view.call-video-mode .call-top .call-name { font-size: 1.15em; }
/* #204 sync-contacts card at the top of Chats */
.sync-banner { display: flex; align-items: center; gap: 8px; margin: 10px 12px 4px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #fff3ef; border: 1px solid #ffd2c7; }
.sync-banner-main { display: flex; align-items: center; gap: 12px; flex: 1; background: none; border: 0; padding: 0; text-align: start; color: inherit; cursor: pointer; }
.sync-banner-main strong { display: block; font-size: .98em; line-height: 1.35; }
.sync-banner-main small { display: block; opacity: .75; margin-top: 2px; }
.sync-banner-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #ff5a4f; color: #fff; display: grid; place-items: center; }
.sync-banner-icon svg { width: 24px; height: 24px; }
.pbook-invite-ways { display: inline-flex; gap: 6px; }
.pbook-auto { border: 1px dashed #ffb4a6; border-radius: 14px; padding: 10px 12px; background: #fffaf8; }
.auto-sync-row { display: flex; gap: 12px; align-items: flex-start; }
.auto-sync-row input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.auto-sync-row small { display: block; }
.new-joins .person { padding: 6px 0; }
@media (max-width: 440px) { header .icon-plain { width: 34px; } } /* #204: room for the sync icon next to the title */
/* #205: Chats header at phone width — title never touches the icons */
.top-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-inline-end: 10px; }
@media (max-width: 440px) { .top-actions { gap: 4px; } header .icon-plain { width: 36px; } .top-title { font-size: 17px; } }

/* #207: friend count under the profile name */
.profile-friends { display: inline-flex; align-items: center; gap: 6px; margin: 2px auto 8px; padding: 6px 14px; border: 1px solid var(--line, #f1d5d0); border-radius: 999px; background: var(--card, #fff); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.profile-friends b { font-size: 16px; }
.profile-friends svg { width: 18px; height: 18px; }
.profile-friends:disabled { cursor: default; opacity: .8; }
.chat-head .chat-name[title] { cursor: pointer; }
/* #208: profile card actions as an even grid (3 on top, 2 below), full-page link clearly under them */
.po-card .po-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; }
.po-card .po-actions > * { grid-column: span 2; min-height: 44px; margin: 0; width: 100%; box-sizing: border-box; }
.po-card .po-actions > :nth-last-child(-n+2):nth-child(n+4) { grid-column: span 3; }
.po-card .po-actions .nudge-toggle-row, .po-card .po-actions label { grid-column: 1 / -1; }
.po-card .po-full { display: block; margin: 16px auto 4px; }

/* #209: media waiting for a tap (auto-download off) */
.media-gate { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 12px 14px; border: 1px dashed var(--line, #e8c9c3); border-radius: 14px; background: var(--soft, #fff2ef); color: var(--ink); font: inherit; cursor: pointer; text-align: start; }
.media-gate .mg-icon svg { width: 26px; height: 26px; }
.media-gate .mg-text { display: grid; flex: 1; }
.media-gate .mg-text small { color: var(--muted, #8a6f6a); }
.media-gate .mg-down { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ff4f4f; color: #fff; font-size: 16px; }
/* #209: unknown sender bar */
.unknown-bar { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: #fff7e0; border: 1px solid #f2c94c; color: #4a3500; }
.unknown-bar p { margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: #4a3500; }
.unknown-bar p b { color: #3a2a00; }
/* #223: compact single row */
.unknown-actions { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; }
.unknown-actions button { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 4px 8px; margin: 0; font-size: 13px; white-space: nowrap; width: auto; }
html[data-theme="dark"] .unknown-bar { background: #3a2f12; border-color: #8a6d1f; color: #fbe7b0; }
html[data-theme="dark"] .unknown-bar p, html[data-theme="dark"] .unknown-bar p b { color: #fbe7b0; }
.lookup-title { margin: 12px 0 0; font-weight: 700; font-size: 14px; }
/* #210 statuses */
.quick-status .compose-card { display: flex; flex-direction: column; gap: 10px; }
.quick-status input:not([type]) { width: 100%; }
.quick-status-actions { display: flex; gap: 8px; justify-content: flex-end; }
.top-status-tip .sync-banner-icon { font-size: 20px; }
.top-status-go { flex: none; padding: 8px 14px; }
.quick-status-done { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 60; background: #1e7a4f; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; }
/* #211 contact form */
.contact-form-open { margin: 6px 0; }
.inquiry-sheet .compose-card { max-height: 90vh; overflow: auto; }
.inq-form { display: grid; gap: 10px; }
.inq-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.inq-form input, .inq-form select, .inq-form textarea { width: 100%; font: inherit; }
.inq-done { display: grid; gap: 12px; }
/* #212 withdrawal decline reason */
.wd-why-btn { justify-self: start; margin-top: 4px; padding: 6px 12px; }
.wd-why .compose-card { display: grid; gap: 12px; }
.wd-why-reason { margin: 0; padding: 12px; border-radius: 12px; background: #fff3ef; border: 1px solid #ffd2c7; font-weight: 600; line-height: 1.6; white-space: pre-wrap; }
.wd-why-facts { display: grid; gap: 4px; font-size: 14px; color: #6b4b45; }
.wd-why-refund { margin: 0; color: #1e7a4f; font-weight: 700; }
.wd-why .sheet-head { display: flex; align-items: center; gap: 10px; } .wd-why .sheet-head strong { flex: 1; } .wd-why .sheet-head .close-x { width: 40px; min-width: 40px; height: 40px; padding: 0; flex: none; }
/* #213 store update */
.store-force { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(40, 10, 10, .55); padding: 20px; }
.store-force-card { background: #fff; border-radius: 22px; padding: 26px 22px; max-width: 380px; width: 100%; display: grid; gap: 12px; justify-items: center; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.store-force-card h2 { margin: 0; } .store-force-card p { margin: 0; line-height: 1.6; color: #6b4b45; } .store-force-card .primary { width: 100%; }

/* #222: message ticks + full emoji picker */
.ticks { letter-spacing: -3px; margin-inline-start: 3px; font-weight: 700; }
.ticks.t-sent, .ticks.t-delivered { color: #8a8f98; }
.ticks.t-read { color: #22b14c; }
.emo-browser { display: grid; gap: 6px; }
.emo-search { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #ddd); background: var(--soft, #f4f4f4); color: inherit; }
.emo-cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.emo-cats button { flex: 0 0 auto; border: 0; background: transparent; font-size: 20px; width: 40px; height: 36px; border-radius: 8px; opacity: .55; }
.emo-cats button.on { opacity: 1; background: var(--soft, #eee); box-shadow: inset 0 -2px 0 var(--brand, #e53935); }
.emo-grid { max-height: 240px; overscroll-behavior: contain; }
.emo-grid button { font-size: 24px; width: 40px; height: 40px; }

/* #223: phone numbers stay left-to-right inside Arabic text */
bdi.ph { direction: ltr; unicode-bidi: isolate; }

/* #224 contact sync: file import is a small secondary link */
.link-btn.pbook-file-link { background: none; border: 0; padding: 4px 0; min-height: 0; color: var(--muted, #6b7280); font-size: 13px; text-decoration: underline; cursor: pointer; box-shadow: none; width: auto; align-self: flex-start; }
.pbook-app-note { font-size: 14px; }

/* #225: composer textarea grows 1–5 lines, then scrolls; follows the caret */
.composer textarea.composer-input { flex: 1; min-height: 0; height: auto; resize: none; overflow-y: hidden; line-height: 1.45; padding: 10px 14px; border-radius: 20px; max-height: calc(1.45em * 5 + 22px); white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; width: auto; }
/* #225: notification settings */
.notif-settings, .peer-tones { gap: 10px; }
.notif-row { display: grid; gap: 6px; }
.tone-picker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tone-picker select { flex: 1 1 200px; }
.tone-try { white-space: nowrap; }
