/* RimoRosh in a browser — website/web/app.js draws the pages  [08.11.2026] */
:root {
  --bg: #0B0F14;
  --bg2: #15191F;
  --bg3: #1C1C1E;
  --line: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.58);
  --muted2: #B4B4BA;
  --yellow: #FFC107;
  --follow: #FFD54F;
  --tag: #7FC0FF;
  --link: #6FB6F5;
  --badge: #2A3440;
  --top-h: 64px;
  --head-h: 92px;
  --act-h: 46px;
  --seek-h: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", Tahoma, Arial, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #9CCBF8; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
svg { display: block; flex: none; }
img { display: block; }

.app { height: 100%; height: 100dvh; display: flex; flex-direction: column; }

/* ---------- top bar ---------- */
.top {
  flex: none; height: var(--top-h); display: flex; align-items: center; gap: 14px;
  padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 21px; font-weight: 700; letter-spacing: .2px; }
.search { position: relative; flex: 1 1 280px; max-width: 520px; margin-inline: auto; }
.search label {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--bg3); color: #A0A0A6;
}
.search input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text);
  font: inherit; font-size: 15px;
}
.search-results {
  position: absolute; top: 50px; inset-inline: 0; background: #1A1D22; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); padding: 6px; max-height: 70vh; overflow-y: auto;
}
.person { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.person:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.person .who { min-width: 0; display: flex; flex-direction: column; }
.person .nm { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.person .un { color: var(--muted); font-size: 13px; }
.search-empty { padding: 14px; color: var(--muted); text-align: center; }
.btn-y {
  height: 40px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 20px; background: var(--yellow); color: #111 !important; font-size: 15px; font-weight: 700; white-space: nowrap; flex: none;
}
.btn-y:hover { background: #FFCB2E; }
.btn-o {
  height: 40px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .22); color: var(--text) !important; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.btn-o:hover { background: rgba(255, 255, 255, .06); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); flex: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.only-phone { display: none !important; }

/* ---------- body: side menu + view ---------- */
.body { flex: 1; min-height: 0; display: flex; }
.side {
  flex: none; width: 250px; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px;
  border-inline-end: 1px solid var(--line); overflow-y: auto;
}
.side a.item {
  display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 12px;
  color: var(--text); font-size: 17px; font-weight: 500;
}
.side a.item:hover { background: rgba(255, 255, 255, .05); }
.side a.item.on { background: rgba(255, 193, 7, .12); color: var(--yellow); font-weight: 700; }
.side .sep { height: 1px; background: var(--line); margin: 14px 4px; }
.side p { margin: 0 6px; color: var(--muted2); font-size: 14px; line-height: 1.7; }
.side .btn-y { margin: 12px 6px 0; height: 44px; border-radius: 12px; }
.side .stores { display: flex; gap: 8px; margin: 10px 6px 0; }
.store {
  flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--bg3); color: var(--text) !important; font-size: 13px; font-weight: 600; padding: 0 10px;
}
.store:hover { background: #26262A; }
.side .foot { padding: 12px 6px 0; color: #8E8E95; font-size: 12px; line-height: 2; }
/* [08.11.2026] a computer has no top bar: logo, search, language and
   signing out live in the side menu, the post gets the whole height */
.side .side-brand { flex: none; padding: 2px 8px 14px; }
.side .search { flex: none; max-width: none; margin: 0 0 12px; }
.side .search label { height: 42px; padding: 0 14px; }
.side .search-results { position: fixed; z-index: 30; inset: auto; }
.side .side-end { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.side button.item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  color: var(--muted2); font-size: 15px; font-weight: 500; text-align: start;
}
.side button.item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.side .lang-btn .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.langs { text-align: start; }
.modal.langs h2 { text-align: center; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 0 14px;
  border-radius: 12px; background: #24272D; color: var(--text); font-size: 15px; font-weight: 600; text-align: start;
  border: 1px solid transparent;
}
.lang:hover { background: #2C3037; }
.lang.on { border-color: var(--yellow); color: var(--yellow); background: rgba(255, 193, 7, .1); }
@media (min-width: 900px) { .top { display: none; } }
.side .foot a { color: #8E8E95; }
.side .foot a:hover { color: var(--text); }

.view { flex: 1; min-width: 0; position: relative; overflow: hidden; }
.screen { position: absolute; inset: 0; }
.screen[hidden] { display: none; }
.page { position: absolute; inset: 0; overflow-y: auto; }

/* ---------- the feed ---------- */
.feed {
  position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }
.with-panel .feed { inset-inline-end: 400px; }
.slide {
  height: 100%; scroll-snap-align: start; scroll-snap-stop: always; container-type: size;
  display: flex; justify-content: center; padding: 12px 16px;
}
.post {
  --chrome: calc(var(--head-h) + var(--act-h) + var(--seek-h) + 24px);
  width: min(100%, 620px, max(360px, calc((100cqh - var(--chrome)) * var(--ar, .5625))));
  height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.post-head { flex: none; height: var(--head-h); display: flex; align-items: flex-end; gap: 10px; }
.post-head .av { align-self: flex-end; margin-bottom: 2px; }
.head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; max-height: 100%; }
.head-text.solo .name-row { min-height: 44px; }
.name-row { display: flex; align-items: center; gap: 6px; min-height: 24px; min-width: 0; }
.name-row .nm { color: var(--text); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.name-row .tm { color: var(--muted); font-size: 12px; white-space: nowrap; }
.follow-plus {
  width: 22px; height: 22px; border-radius: 11px; background: var(--follow); color: #111;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.caption {
  position: relative; margin: 0; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .95);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.more-btn {
  position: absolute; bottom: 0; inset-inline-end: 0; padding-inline-start: 26px; color: var(--muted2); font-size: 14px; line-height: 20px;
  background: linear-gradient(to var(--end-side, right), rgba(11, 15, 20, 0), var(--bg) 22px);
}
[dir="rtl"] .more-btn { --end-side: left; }
.place {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 10px;
  background: rgba(33, 150, 243, .2); color: var(--tag); font-size: 12px; vertical-align: 1px; margin-inline-end: 6px;
}
.tag { color: var(--tag); }
.mention { color: var(--tag); }
.head-end { flex: none; display: flex; align-items: center; gap: 6px; align-self: flex-end; margin-bottom: 4px; }
.music-btn {
  width: 30px; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .12);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.av { border-radius: 50%; background: #2A2F38; flex: none; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.av img { width: 100%; height: 100%; object-fit: cover; }

/* photo + name + text, the card and the buttons stay together in the middle */
.area { flex: none; display: flex; justify-content: center; }
.card {
  position: relative; width: min(100%, calc((100cqh - var(--chrome)) * var(--ar, .5625)));
  aspect-ratio: var(--ar, .5625); border-radius: 18px; overflow: hidden;
  background: #000; border: 1px solid rgba(255, 255, 255, .1); user-select: none; -webkit-user-select: none;
}
.card video, .card .img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.card .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.card .poster.gone { opacity: 0; }
.card-btn {
  position: absolute; z-index: 4; width: 38px; height: 38px; border-radius: 19px; background: rgba(0, 0, 0, .45);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.card-btn.snd { top: 12px; inset-inline-end: 12px; }
.paused {
  position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.paused span { width: 68px; height: 68px; border-radius: 34px; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; }
.waiting {
  position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.in-app {
  position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(0, 0, 0, .55); padding: 20px; text-align: center; font-weight: 600;
}

/* several photos */
.strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > div { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.strip img { width: 100%; height: 100%; object-fit: contain; }
.counter {
  position: absolute; z-index: 4; top: 12px; inset-inline-start: 12px; padding: 2px 9px; border-radius: 11px;
  background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 600; unicode-bidi: isolate;
}
.dots { position: absolute; z-index: 4; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.dots i.on { background: #fff; }
.strip-nav {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 16px;
  background: rgba(0, 0, 0, .5); color: #fff; display: flex; align-items: center; justify-content: center;
}
.strip-nav.prev { inset-inline-start: 8px; }
.strip-nav.next { inset-inline-end: 8px; }
.strip-nav[disabled] { opacity: 0; pointer-events: none; }

/* the camera text */
.ov-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ov {
  position: absolute; transform: translate(-50%, -50%); text-align: center; white-space: pre-wrap; overflow-wrap: break-word;
  width: max-content; line-height: 1.2;
}

/* text posts */
.tp { position: absolute; inset: 0; overflow: hidden; }
.tp-pages { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tp-pages::-webkit-scrollbar { display: none; }
.tp-page { flex: 0 0 100%; height: 100%; position: relative; scroll-snap-align: center; overflow: hidden; }
.tp-box {
  position: absolute; top: 0; left: 0; width: 360px; height: 480px; transform-origin: 0 0;
  padding: 46px 28px 38px 28px; display: flex; flex-direction: column;
}
.tp-box.center { justify-content: center; text-align: center; }
.tp-text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* fixed: never makes the page wider (an RTL page would scroll sideways) */
.tp-measure { position: fixed; visibility: hidden; pointer-events: none; left: 0; top: 0; z-index: -1; width: 304px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* buttons under the post */
.actions { flex: none; height: var(--act-h); display: flex; justify-content: space-around; align-items: center; direction: ltr; }
.act { position: relative; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 21px; }
.act:hover { background: rgba(255, 255, 255, .07); }
.act.off { color: rgba(255, 255, 255, .35); cursor: default; }
.act.off:hover { background: none; }
.badge {
  position: absolute; top: -7px; left: 30px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--badge); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 16px; text-align: center; white-space: nowrap; font-family: system-ui, sans-serif;
}
.seek { flex: none; height: var(--seek-h); position: relative; margin: 0 6px; direction: ltr; touch-action: none; }
.seek.on { cursor: pointer; }
.seek .track { position: absolute; left: 0; right: 0; top: 5px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.seek .fill { height: 100%; width: 0; border-radius: 2px; background: #fff; }
.seek.drag .track { height: 5px; top: 4px; }
.seek .time {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 8px;
  background: rgba(0, 0, 0, .7); font-size: 12px; white-space: nowrap; display: none;
}
.seek.drag .time { display: block; }

.feed-nav { position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 6; }
.with-panel .feed-nav { inset-inline-end: 422px; }
.feed-nav button { width: 46px; height: 46px; border-radius: 23px; background: var(--bg3); color: #fff; display: flex; align-items: center; justify-content: center; }
.feed-nav button:hover { background: #2A2A2E; }
.feed-nav button[disabled] { opacity: .35; cursor: default; }

.skeleton .card, .skeleton .ln { background: #1A1E24; animation: pulse 1.2s ease-in-out infinite; }
.skeleton .ln { height: 12px; border-radius: 6px; }
@keyframes pulse { 50% { opacity: .55; } }

.note-line {
  position: absolute; z-index: 15; top: 14px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 12px;
  background: #2A2F38; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); font-weight: 600; max-width: calc(100% - 32px); text-align: center;
}
.center-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted2); }

/* ---------- comments ---------- */
.panel {
  position: absolute; z-index: 12; top: 0; bottom: 0; inset-inline-end: 0; width: 400px; background: #111419;
  border-inline-start: 1px solid var(--line); display: flex; flex-direction: column;
}
.panel-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.panel-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 12px; overscroll-behavior: contain; }
.panel-foot { flex: none; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.fake-input {
  width: 100%; height: 44px; border-radius: 22px; background: var(--bg3); color: #8E8E95; display: flex; align-items: center;
  padding: 0 16px; font-size: 14px; text-align: start;
}
.cm { display: flex; gap: 11px; padding: 11px 0; }
.cm .body2 { flex: 1; min-width: 0; }
.cm .who { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted2); flex-wrap: wrap; }
.cm .who a { color: var(--muted2); font-weight: 600; }
.cm .who a:hover { color: var(--text); }
.cm .when { color: #7C7C83; font-size: 12px; }
.cm .txt { font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.cm .stars { flex: none; display: flex; flex-direction: column; align-items: center; color: var(--muted2); font-size: 12px; gap: 1px; padding-top: 4px; min-width: 26px; }
.cm .pin { display: inline-flex; align-items: center; gap: 3px; color: var(--yellow); font-size: 12px; font-weight: 600; }
.cm .gift { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 193, 7, .1); color: var(--yellow); font-weight: 600; }
.cm .cimg { margin-top: 6px; border-radius: 12px; overflow: hidden; max-width: 180px; max-height: 220px; background: #1A1E24; }
.cm .cimg img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.cm audio { margin-top: 6px; width: 100%; max-width: 260px; height: 36px; }
.cm.reply { padding-inline-start: 46px; }
.replies-btn { margin-inline-start: 47px; color: var(--muted2); font-size: 13px; font-weight: 600; padding: 2px 0 8px; display: flex; align-items: center; gap: 8px; }
.replies-btn::before { content: ""; width: 22px; height: 1px; background: #5A5A60; }
.more-cm { display: block; margin: 8px auto; padding: 8px 16px; border-radius: 18px; background: var(--bg3); font-size: 14px; font-weight: 600; }
.panel .empty { padding: 40px 10px; text-align: center; color: var(--muted); }
.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); }

/* [08.11 Raad] the day's limit for visitors without an account */
.slide.walled { position: relative; }
.slide.walled .post { visibility: hidden; }
.guest-wall { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wall-card {
  width: 400px; max-width: 100%; border-radius: 20px; background: var(--bg3); padding: 28px 24px 22px;
  display: flex; flex-direction: column; gap: 12px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.wall-card .logo { width: 56px; height: 56px; border-radius: 15px; margin: 0 auto; }
.wall-card h2 { margin: 4px 0 0; font-size: 21px; }
.wall-card p { margin: 0; color: var(--muted2); line-height: 1.6; }
.wall-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.wall-btns .btn-y, .wall-btns .btn-o { width: 100%; height: 48px; border-radius: 12px; font-size: 16px; }

/* the full caption over the card */
.cap-sheet {
  position: absolute; z-index: 6; inset: 0; background: rgba(8, 10, 14, .9); padding: 18px; overflow-y: auto;
  font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; cursor: pointer;
}

/* ---------- the window "continue in the app" ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .68); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal {
  position: relative; width: 420px; max-width: 100%; max-height: 100%; overflow-y: auto; border-radius: 20px; background: var(--bg3);
  padding: 28px 26px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); text-align: center;
}
.modal .x { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 19px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.modal .logo { width: 56px; height: 56px; border-radius: 15px; margin: 0 auto; }
.modal h2 { margin: 4px 0 0; font-size: 21px; }
.modal p { margin: 0; color: var(--muted2); }
.qr-box { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; background: #111113; text-align: start; margin-top: 6px; }
.qr { flex: none; width: 112px; height: 112px; background: #fff; border-radius: 10px; padding: 6px; }
.qr svg { width: 100%; height: 100%; }
.modal .stores { display: flex; gap: 8px; }
.modal .btn-y { height: 48px; border-radius: 12px; font-size: 16px; }
.modal .store { background: #2A2A2E; }

.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 10px 18px; border-radius: 12px;
  background: #2A2F38; color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); pointer-events: none;
}

/* ---------- step 2: signed in ---------- */
.acct { position: relative; flex: none; display: flex; align-items: center; }
.acct-btn { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.acct-btn:hover { background: rgba(255, 255, 255, .08); }
.signin-btn { height: 40px; }
.acct-menu {
  position: absolute; top: 48px; inset-inline-end: 0; z-index: 30; min-width: 220px; padding: 6px; border-radius: 14px;
  background: #1A1D22; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column;
}
.acct-menu .who { padding: 10px 12px 8px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu .who span { color: var(--muted); font-size: 13px; }
.acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--text); font-size: 15px; text-align: start;
}
.acct-menu a:hover, .acct-menu button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.side .btn-o.wide { margin: 8px 6px 0; height: 44px; border-radius: 12px; width: calc(100% - 12px); }
.side .side-prompt .btn-y { width: calc(100% - 12px); }
.side a.item .av { width: 24px; height: 24px; font-size: 11px; }

.modal > * { flex-shrink: 0; }
.modal.signin { text-align: start; gap: 10px; }
.modal.signin h2, .modal.signin .logo { text-align: center; }
.modal.busy { opacity: .85; }
.btn-g {
  height: 48px; border-radius: 12px; background: #fff; color: #1F1F1F; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
}
.btn-g:hover { background: #F1F1F1; }
.btn-g[disabled] { opacity: .55; cursor: default; }
.modal .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.modal .or::before, .modal .or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #111113; }
.seg button { flex: 1; height: 36px; border-radius: 9px; color: var(--muted2); font-weight: 600; }
.seg button.on { background: #2A2A2E; color: var(--text); }
.sform { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; align-items: center; height: 48px; border-radius: 12px; background: #111113; border: 1px solid rgba(255, 255, 255, .1); padding: 0 6px 0 14px; }
.field:focus-within { border-color: var(--yellow); }
.field input, .field select { flex: 1; min-width: 0; height: 100%; background: transparent; border: none; outline: none; color: var(--text); font: inherit; font-size: 16px; }
.field select { padding-inline-end: 8px; }
.field select option { background: #1C1C1E; color: #fff; }
.field .eye { width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; color: var(--muted2); }
.field .eye[aria-pressed="true"] { color: var(--yellow); }
.link-btn { align-self: flex-start; color: var(--link); font-size: 14px; padding: 2px 0; }
.modal .msg { padding: 10px 12px; border-radius: 10px; background: rgba(255, 82, 82, .14); color: #FF8A80; font-size: 14px; text-align: start; }
.modal .msg.good { background: rgba(76, 175, 80, .15); color: #A5D6A7; }
.modal .small { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.modal .pre { white-space: pre-line; }
.modal .row2 { display: flex; gap: 10px; margin-top: 6px; }
.modal .row2 > * { flex: 1; height: 46px; border-radius: 12px; }
.btn-y.danger { background: #FF5252; color: #fff !important; }
.btn-y.danger:hover { background: #FF6B6B; }
.btn-y[disabled], .btn-o[disabled] { opacity: .6; cursor: default; }
.lock-mark { display: inline-flex; }

.big-star {
  position: absolute; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); animation: bigstar .75s ease-out forwards;
}
@keyframes bigstar {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

button.stars { cursor: pointer; border-radius: 10px; padding: 4px 2px; }
button.stars:hover { background: rgba(255, 255, 255, .06); }
.cm-acts { display: flex; gap: 16px; margin-top: 4px; }
.cm-acts button { color: var(--muted2); font-size: 13px; font-weight: 600; }
.cm-acts button:hover { color: var(--text); }
.cm-acts .del { color: #FF8A80; }
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 120px; resize: none; border-radius: 22px; background: var(--bg3); color: var(--text);
  border: 1px solid transparent; padding: 11px 16px; font: inherit; font-size: 15px; line-height: 20px; outline: none;
}
.composer textarea:focus { border-color: rgba(255, 193, 7, .6); }
.send-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--yellow); color: #111; display: flex; align-items: center; justify-content: center; flex: none; }
[dir="rtl"] .send-btn svg { transform: scaleX(-1); }
.send-btn[disabled] { background: #2A2A2E; color: #6A6A70; cursor: default; }
.reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 8px 6px; color: var(--muted2); font-size: 13px; }
.reply-bar button { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }

/* ---------- profile / explore pages ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 32px 24px 60px; }
.prof { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.prof .av { width: 116px; height: 116px; font-size: 44px; }
.prof-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.prof h1 { margin: 0; font-size: 26px; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.prof .un { color: var(--muted2); font-size: 16px; }
.counts { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.counts b { margin-inline-end: 5px; }
.counts span span { color: var(--muted2); }
.bio { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.prof-btns { display: flex; gap: 10px; margin-top: 4px; }
.prof-btns .btn-y { height: 44px; border-radius: 12px; padding: 0 34px; }
.prof-btns .btn-o { height: 44px; border-radius: 12px; border: none; background: var(--bg3); }
.tabs { margin: 28px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; }
.tabs span { padding: 12px 6px; border-bottom: 2px solid var(--yellow); font-weight: 700; }
.private-box { margin: 40px auto; max-width: 360px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #1A1E24; color: #fff; }
.tile:hover { color: #fff; filter: brightness(1.08); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .shade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.tile .meta { position: absolute; bottom: 8px; inset-inline-start: 10px; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.tile .kind { position: absolute; top: 8px; inset-inline-end: 8px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.tile .tt { position: absolute; inset: 0; padding: 14px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; font-size: 14px; line-height: 1.45; overflow: hidden; }
.tile .tt span { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sentinel { height: 40px; display: flex; align-items: center; justify-content: center; margin-top: 14px; }

/* phone bottom bar */
.getbar {
  flex: none; margin: 8px 10px calc(8px + env(safe-area-inset-bottom)); height: 60px; border-radius: 16px; background: var(--bg3);
  display: none; align-items: center; gap: 12px; padding: 0 12px;
}
.getbar img { width: 38px; height: 38px; border-radius: 10px; }
.getbar .tx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.getbar .tx small { color: var(--muted2); font-size: 12px; display: block; }
.getbar .btn-y { height: 38px; border-radius: 12px; padding: 0 18px; font-size: 14px; }

/* full-screen search on the phone */
.search-full { position: fixed; inset: 0; z-index: 35; background: var(--bg); display: flex; flex-direction: column; }
.search-full .bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.search-full .bar label { flex: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 21px; background: var(--bg3); color: #A0A0A6; }
.search-full .bar input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; font: inherit; font-size: 16px; }
.search-full .list { flex: 1; overflow-y: auto; padding: 8px; }

/* ---------- phone ---------- */
@media (max-width: 899px) {
  :root { --top-h: 54px; --head-h: 84px; }
  .top { padding: 0 12px; gap: 6px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .brand span { font-size: 18px; }
  .search, .side, .feed-nav, .only-desk { display: none !important; }
  .only-phone { display: inline-flex !important; }
  .top .brand { margin-inline-end: auto; }
  .top .btn-y, .top .signin-btn { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 17px; }
  .acct-menu { position: fixed; top: 58px; inset-inline-end: 10px; }
  .getbar { display: flex; }
  .slide { padding: 8px 12px 4px; }
  .post { width: 100%; }
  .panel {
    position: fixed; z-index: 31; top: auto; inset-inline: 0; bottom: 0; width: auto; height: 72dvh; height: 72vh;
    border-radius: 18px 18px 0 0; border: none;
  }
  .with-panel .feed { inset-inline-end: 0; }
  .wrap { padding: 20px 14px 40px; }
  .prof { gap: 18px; }
  .prof .av { width: 86px; height: 86px; font-size: 34px; }
  .prof h1 { font-size: 21px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .tile { border-radius: 4px; }
  .tile .tt { font-size: 11px; padding: 8px; }
  .toast { bottom: 90px; }
}
