
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}
body {
  position: fixed;
  inset: 0;
  max-width: 100%;
  max-height: 100dvh;
  background: #070708;
  color: #eceae6;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}
button, input, select, textarea { font-family: inherit; font-style: normal; }
html, body, button, input, select, textarea, h1, h2, p, label, a, span, div {
  font-style: normal;
  font-synthesis: none;
  }
.phone {
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  background: #101114;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.in-app .phone { padding-top: calc(var(--rn-header, 120px) + env(safe-area-inset-top, 0px)); }
body.tabs-on .phone { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
.screen { display: none; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.screen.on { display: flex; }
.pad { padding: 22px 18px 8px; }
.kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8a83;
}
h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: max-content;
}
.brand-logo {
  display: block;
  width: 80px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* auth-account-center: outside sign-in page only */
#auth > .pad > .kicker,
#auth > .pad > .app-title {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#auth > .pad > .app-title {
  align-items: center;
}

.header-logo {
  display: block;
  width: 72px;
  height: auto;
  flex: 0 0 auto;
  margin: 8px 0 4px 12px;
  object-fit: contain;
}
.logo-roll {
  font-family: "Times New Roman", Times, serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3efe6;
  line-height: 1;
}
.logo-rule {
  display: block;
  width: 72%;
  height: 1px;
  margin: 7px auto 6px;
  background: #d4af37;
}
.logo-now {
  align-self: stretch;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #d4af37;
  line-height: 1;
  padding-left: 0.42em;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  line-height: 1;
  font-family: "Cairo", sans-serif;
}
.wordmark-main {
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #eceae6;
}
.wordmark-now {
  font-weight: 600;
  font-size: 0.42em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7b3aa;
  padding-bottom: 0.22em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: 0 0 auto;
  display: block;
}
.lede {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.5;
  color: #b7b3aa;
}
.note {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.45;
  color: #8d8a83;
}
.search-box { padding: 8px 18px 0; }
.search-input,
.pf input,
.pf select,
.pf textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #2c2e36;
  background: #181a1f;
  color: #eceae6;
  font-size: 16px;
  font-weight: 500;
}
.search-input,
.pf input,
.pf select,
select { height: 40px; }
.search-input { padding: 0 12px; }
.search-input::placeholder,
.pf input::placeholder,
.pf textarea::placeholder { color: #6f6c66; }
.search-input:focus,
.pf input:focus,
.pf select:focus,
.pf textarea:focus,
select:focus {
  outline: 1px solid rgba(255,255,255,.85);
  outline-offset: 0;
  border-color: rgba(255,255,255,.85);
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 18px 0;
}
label.field { display: flex; flex-direction: column; gap: 4px; }
label.field span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8d8a83;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 32px 0 12px;
  color-scheme: dark;
  background-color: #181a1f;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238d8a83' d='M1 1.2l5 5 5-5' stroke='%238d8a83' stroke-width='0' /></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-weight: 600;
}
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 18px 8px;
  color: #8d8a83;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rows { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: #16181d;
  border: 1px solid #2a2c33;
  border-radius: 14px;
  color: inherit;
  cursor: pointer;
}
.row:hover, .row:focus-visible { background: #1c1e24; }
.row:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 1px; }
.mono {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #23262e;
  color: #e7e2d8;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
}
.mono img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.verified-badge {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-inline-start: 5px;
  border-radius: 50%;
  background: #1877F2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.05em;
}
.verified-label {
  display: block;
  margin-top: 1px;
  color: #8d8a83;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}
.badge {
  flex: 0 0 auto;
  border: 1px solid #3a3d46;
  color: #b7b3aa;
  border-radius: 999px;
  padding: 1px 8px 2px;
  font-size: 11px;
  font-weight: 600;
}
.meta, .works, .lang {
  font-size: 13px;
  line-height: 1.4;
  color: #a7a39b;
  font-weight: 450;
}
.works { color: #8a867e; }
.row.admin-full, .crew-hit.admin-full, .crew-member.admin-full { align-items: flex-start; }
.admin-line {
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
  color: #a7a39b;
  font-weight: 450;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.empty {
  display: none;
  margin: 12px 16px;
  padding: 28px 12px;
  text-align: center;
  color: #b7b3aa;
  font-size: 14px;
  font-weight: 600;
}
.empty.on { display: block; }
.foot {
  margin-top: auto;
  padding: 12px 18px 24px;
  color: #6f6c66;
  font-size: 12px;
  line-height: 1.5;
}
.detail { padding: 14px 16px 20px; }
.back {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: #c8c4bb;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0 10px;
  cursor: pointer;
}
.back:focus-visible { outline: 1px solid rgba(255,255,255,.85); }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.who .mono { width: 56px; height: 56px; flex-basis: 56px; font-size: 22px; }
.who h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.facts {
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2c33;
  border-radius: 14px;
  background: #16181d;
  padding: 0 12px;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #26282f;
  font-size: 14px;
}
.facts .fact:last-child { border-bottom: 0; }
.fact b { font-weight: 600; color: #8d8a83; font-size: 12px; }
.fact span { font-weight: 600; overflow-wrap: anywhere; }
.fact-value { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.fact.multiline { display: block; }
.fact.multiline b, .fact.multiline span { display: block; }
.fact.multiline b { margin-bottom: 4px; }
.fact.multiline span {
  display: block;
  margin: 0;
  font-size: 14px;
  white-space: pre-line;
  font-weight: 500;
  line-height: 1.45;
}
.text-link {
  margin: 0;
  background: none;
  border: 0;
  padding: 0;
  color: #c8c4bb;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
.text-link:hover { color: #eceae6; }
.text-link:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
.profile { padding: 4px 18px 16px; }
.auth-help { margin: 10px 0 0; text-align: center; }
.profile .back { padding: 2px 0 0; }
.profile-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mine-title { color: #d4af37; font-style: normal; }
.pf-verify { margin-top: 12px; }
.pf-verify-card {
  display: block;
  margin: 12px 0 14px;
  padding: 12px 14px 14px;
  border: 1px solid #d4af37;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
}
.pf-verify-card { scroll-margin-top: calc(110px + env(safe-area-inset-top, 0px)); }
.pf-verify-card[hidden] { display: none !important; }
.pf-verify-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #d4af37; display: flex; align-items: center; gap: 6px; }
.pf-verify-sub { margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: #a7a39b; }
.pf-verify-card .contact-share { display: block; width: 100%; min-height: 44px; margin-top: 0; font-weight: 700; font-size: 15px; }
.pf-verify-card .contact-share[hidden] { display: none !important; }
.pf-verify-works-hint { margin: 6px 0 10px; font-size: 13px; color: #e7c2b8; }
.pf-verify-works-hint .text-link { padding: 0; color: #d4af37; font-weight: 700; text-decoration: underline; }
.own-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.own-actions[hidden] { display: none !important; }
.own-actions .contact-share { margin-top: 0; }
.own-actions .own-verify { border-color: #d4af37; color: #d4af37; font-weight: 700; }
.own-actions .own-verify[hidden] { display: none !important; }
.own-actions .own-verify-pending { margin: 0; align-self: center; font-size: 13px; color: #d4af37; }
.rev .rev-name-link {
  color: #d4af37;
  cursor: pointer;
}
.rev .rev-name-link:hover { text-decoration: underline; text-underline-offset: 2px; }

.pf-verify .contact-share {
  width: 100%;
  border-color: #d4af37;
  color: #d4af37;
}
.pf-verify .contact-share:disabled {
  opacity: 0.55;
  cursor: default;
}
.pf-verify-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #a7a39b;
}
.pf-verify-note.warn { color: #e7c2b8; font-weight: 650; }
.pf-verify-note.ok { color: #d4af37; font-weight: 650; }

#profile .screen-head .contact-share { margin-top: 0; }

.me-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 16px 8px;
  background: transparent;
  color: #eceae6;
  border: 0;
  text-align: start;
  cursor: pointer;
  font: inherit;
}
.me-bar[hidden] { display: none; }
.me-bar .mono { width: 40px; height: 40px; flex: 0 0 auto; font-size: 16px; }
.me-bar .name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header {
  display: flex;
  align-items: center;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 40;
  flex: 0 0 auto;
  padding-right: 6px;
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(var(--rn-header, 120px) + env(safe-area-inset-top, 0px));
  background: #101114;
}
.app-header[hidden] { display: none !important; }
.app-header .me-bar { flex: 1 1 auto; min-width: 0; width: auto; }
.more-wrap { position: relative; flex: 0 0 auto; }
.more-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #eceae6;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.more-btn svg { width: 20px; height: 20px; fill: #eceae6; display: block; }
.more-btn:focus-visible, .support-x:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
.more-menu {
  position: fixed;
  top: calc(var(--rn-header, 120px) + env(safe-area-inset-top, 0px));
  right: 8px;
  left: auto;
  bottom: auto;
  min-width: 168px;
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border: 1px solid #2a2c33;
  border-radius: 12px;
  background: #16181d;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  z-index: 200;
  overflow: visible;
}
.more-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eceae6;
  font: inherit;
  font-style: normal;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.more-menu button:hover { background: #1c1e24; }
.support-sheet {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  background: #101114;
}
.support-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.support-x {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eceae6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.support-sheet .composer { margin-top: 16px; }
.support-sheet .text-link { margin-top: 8px; }

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.photo-label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #8d8a83;
}
.photo-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 4px 0 8px;
  padding: 0;
  background: none;
  border: 0;
  color: #b7b3aa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.photo-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid #2a2c33;
  background: #181a1f center / cover no-repeat;
}
.pf {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #8d8a83;
}
.pf textarea {
  height: 72px;
  min-height: 72px;
  max-height: 120px;
  resize: none;
  padding: 8px 12px;
  line-height: 1.4;
}
.pf input { padding: 0 12px; }
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-list {
  min-height: 64px;
  border-radius: 10px;
  border: 1px solid #2c2e36;
  background: #181a1f;
  padding: 4px 12px;
}
.work-line { height: 20px; border-bottom: 1px solid #26282f; }
.work-line:last-child { border-bottom: 0; }
.send {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  background: #eceae6;
  color: #121316;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.send:disabled { opacity: 0.4; cursor: default; }
.review {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 450;
  color: #8d8a83;
}
.home-links { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.home-links .text-link { margin: 0; }
.pf select {
  padding: 0 28px 0 12px;
  font-weight: 600;
}
.pf textarea.tall {
  height: 84px;
  min-height: 84px;
  max-height: 84px;
}
.photo-circle.has-photo { background-size: cover; background-position: center; }
.confirm {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  color: #eceae6;
}
.rev {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid #2a2c33;
  border-radius: 14px;
  background: #16181d;
}
.rev .row-main { flex: 1; }
.rev.rev-certify-row { flex-wrap: wrap; justify-content: flex-end; row-gap: 10px; }
.rev.rev-certify-row > .row-main { flex: 1 1 100%; }
.rev.rev-certify-row > .certify-field { flex: 1 1 100%; }
.rev.rev-certify-row > .rev-btn { padding: 8px 16px; font-size: 13px; }
.certify-field { display: block; width: 100%; box-sizing: border-box; }
.certify-title { display: block; font-size: 12px; font-weight: 650; color: #d4af37; letter-spacing: .01em; margin: 0 0 6px; }
.certify-box {
  display: flex; align-items: center; gap: 6px;
  width: 100%; box-sizing: border-box;
  height: 44px; padding: 0 12px;
  border: 1px solid #2a2c33; border-radius: 12px;
  background: #101114; color: #eceae6;
  cursor: text;
}
.certify-box:focus-within { border-color: rgba(255,255,255,.85); }
.certify-prefix { flex: 0 0 auto; color: #9a9a9a; font-weight: 600; white-space: nowrap; font-size: 15px; }
.certify-box input, .certify-box input[type="text"] {
  flex: 1; min-width: 0; width: auto; height: 100%;
  margin: 0; padding: 0; border: 0 !important; outline: 0; box-shadow: none !important;
  background: transparent !important; color: #eceae6; font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.certify-box input::placeholder { color: #5f6168; }
.certify-field.certify-bad .certify-box { border-color: #c45c4a; }
.certify-err { display: block; margin-top: 6px; font-size: 12px; color: #e07a66; }
.certify-err[hidden] { display: none; }
.rev-btn {
  flex: 0 0 auto;
  border: 1px solid #3a3d46;
  background: transparent;
  color: #eceae6;
  font-size: 12px;
  font-weight: 650;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
}
.rev-btn.ok { background: #eceae6; color: #121316; border-color: #eceae6; }
.rev-btn:focus-visible, .send:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
#review .empty { margin-top: 8px; }
.form-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  color: #e7c2b8;
}
.contact-share {
  margin-top: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #3a3424;
  background: transparent;
  color: #eceae6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.contact-share[aria-pressed="true"] { border-color: #d4af37; color: #d4af37; }
.contact-share.delete-soft { color: rgba(196, 54, 44, 0.72); border-color: rgba(196, 54, 44, 0.45); }
.contact-share.delete-solid { background: #c4362c; color: #fff; border-color: #c4362c; }
#delete-account-ask .contact-share { display: block; width: 100%; }
.terms-check { display: flex; align-items: center; gap: 8px; }
.terms-check .text-link { margin: 0; }
.terms-ar { margin-top: 28px; text-align: right; }
#terms p, #terms h2 { margin: 10px 0 0; color: #ffffff; }

.oauth-row { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.oauth-btn.contact-share {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  min-height: 40px;
  height: auto;
  padding: 8px 14px;
  border-color: #d4af37;
  color: #eceae6;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  text-align: center;
}
.oauth-btn svg { width: 18px; height: 18px; flex: 0 0 auto; display: block; }
.oauth-btn.not-ready { color: #8d8a83; border-color: #3a3424; }

.compose-plus {
  margin: 22px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #d4af37;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.compose-plus svg { width: 18px; height: 18px; stroke: #1a1404; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.compose-plus.open svg { display: none; }
.compose-plus.open::after { content: ""; width: 12px; height: 2px; background: #1a1404; border-radius: 1px; }
.compose-plus[aria-expanded="true"] { border-color: #d4af37; }
.composer {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #2a2c33;
  border-radius: 14px;
  background: #16181d;
}
.composer .pf:last-of-type { margin-bottom: 8px; }
.feed-post {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #2a2c33;
  border-radius: 14px;
  background: #16181d;
}
.feed-post .meta { display: block; }
.post-actions { display: flex; gap: 8px; margin-top: 10px; }
.post-actions .rev-btn { margin: 0; }
.react-box,
.react-box * {
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
}
.react-box { margin-top: 12px; overflow: visible; }
.react-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px;
  width: 100%;
  padding: 6px 4px 2px;
  overflow: visible;
}
.react-form { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; width: 100%; }
.react-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #3a3d46;
  background: transparent;
  color: #eceae6;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  overflow-wrap: normal;
  cursor: pointer;
}
.react-btn.on { color: #d4af37; border-color: #d4af37; }
.react-btn:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
.react-btn:disabled { opacity: 0.6; cursor: default; }
.react-panel { margin-top: 8px; }
.react-list { max-height: 168px; overflow-y: auto; scrollbar-width: none; }
.react-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.react-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: #c8c4bb;
}
.react-line .mono {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 12px;
  font-weight: 400;
}
.react-copy { min-width: 0; flex: 1; font-weight: 400; }
.react-name { display: block; color: #eceae6; font-weight: 400; font-style: normal; }
.react-text { display: block; font-weight: 400; font-style: normal; overflow-wrap: anywhere; }
.react-form { margin-top: 8px; }
.react-form input {
  flex: 1 1 140px;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #2c2e36;
  background: #181a1f;
  color: #eceae6;
  padding: 8px 10px;
  font-size: 14px;
}
.react-empty, .react-error { margin: 8px 0 0; font-size: 13px; }
.react-empty { color: #8d8a83; }
.react-error { color: #e15b5b; }
.feed-text.editing {
  outline: 1px solid #d4af37;
  border-radius: 8px;
  padding: 8px;
  white-space: pre-wrap;
}
.feed-who { display: flex; align-items: center; gap: 10px; }
.feed-who .mono { width: 36px; height: 36px; flex: 0 0 auto; font-size: 14px; }
.mine-name { cursor: pointer; }
.feed-who .name.author-tap,
.feed-who .mono.author-tap { cursor: pointer; }
.feed-who .name.author-tap:hover,
.feed-who .mono.author-tap:hover { color: #d4af37; }
.profile-feed-wrap {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid rgba(212,175,55,.16);
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.profile-feed-wrap .section-label { margin-top: 4px; margin-bottom: 8px; }
#d-posts { display: flex; flex-direction: column; gap: 0; width: 100%; min-width: 0; }
#d-posts .feed-post { margin-top: 12px; }
#d-posts-empty { margin-top: 8px; }
#d-posts-empty.on { display: block; }
.feed-photo,
.feed-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 10px;
  margin-top: 10px;
  background: #101114;
  display: block;
  object-fit: contain;
  min-width: 0;
}
.feed-photo { object-fit: contain; height: auto; max-height: 60vh; }
.feed-link {
  display: block;
  margin-top: 10px;
  color: #c8c4bb;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.feed-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  margin-top: 10px;
  background: #101114;
}
.feed-tools { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.msg-list-btn, #msg-list .crew-hit {
  width: 100%;
  color: #eceae6;
  text-align: start;
  cursor: pointer;
}
#msg-list .name, #msg-who { color: #eceae6; }
#msg-who { display: flex; align-items: center; gap: 10px; }
#msg-who .mono { width: 34px; height: 34px; flex: 0 0 34px; font-size: 14px; }
.group-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  background: #1b1910; border: 1.5px solid #d4af37; color: #d4af37;
  display: grid; place-items: center; overflow: hidden;
}
.group-icon.has-photo {
  border-radius: 12px;
  border: 1.5px solid rgba(212,175,55,.55);
  background: #23262e;
  color: #e7e2d8;
}
.group-icon svg { width: 60%; height: 60%; }
.group-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
#msg-who .group-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.group-av { position: relative; flex: 0 0 42px; width: 42px; height: 42px; display: block; }
.group-av .group-icon { width: 42px; height: 42px; }
.group-badge {
  position: absolute; right: -5px; bottom: -5px;
  width: 20px; height: 20px; border-radius: 7px;
  background: #d4af37; color: #15130c;
  border: 2px solid #16181d;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
  pointer-events: none;
}
.group-badge svg { width: 13px; height: 13px; display: block; }
[dir="rtl"] .group-badge { right: auto; left: -5px; }
.msg-unread { background: #e41e3f; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; margin-inline-start: 8px; }
.msg-top .name.msg-name-unread { color: #d4af37 !important; font-weight: 700; }
.msg-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; width: 100%; }
.msg-top .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-when { flex: 0 0 auto; font-size: 12px; line-height: 1.3; color: #8d8a83; font-weight: 500; }
#festivals.screen.on, #funds.screen.on { display: flex; flex-direction: column; }
.fest-head { flex: 0 0 auto; padding: 14px 16px 10px; background: rgba(16,17,20,.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(212,175,55,.14); position: relative; z-index: 2; }
.fest-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.fest-title { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; color: #f3efe6; }
.fest-sub { margin: 4px 0 0; font-size: 13px; color: #bfb9ad; display: flex; align-items: center; gap: 7px; }
.fest-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.18); }
.fest-tools { display: flex; gap: 8px; margin-top: 12px; }
.fest-tools input, .fest-tools select { min-width: 0; height: 40px; border-radius: 12px; border: 1px solid #2c2e35; background: rgba(255,255,255,.04); color: #eceae6; font: inherit; font-size: 14px; padding: 0 12px; }
.fest-tools input { flex: 1; }
.fest-tools select { flex: 0 0 auto; max-width: 42%; }
.fest-tools input:focus, .fest-tools select:focus { outline: none; border-color: rgba(255,255,255,.6); }
.fest-chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 2px; scrollbar-width: none; touch-action: pan-x; }
.fest-region-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fest-region-bar > span, .fest-region-bar > label { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: #bfb9ad; letter-spacing: .01em; }
.fest-region-bar select {
  flex: 1 1 auto; min-width: 0; height: 36px; border-radius: 12px;
  border: 1px solid #2c2e35; background: rgba(255,255,255,.04); color: #eceae6;
  font: inherit; font-size: 14px; padding: 0 36px 0 12px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' d='M1 1.2l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.fest-region-bar select:focus { outline: none; border-color: rgba(255,255,255,.6); }
.fest-region-bar select.active-filter { border-color: rgba(212,175,55,.55); color: #f3efe6; }
.fest-chips + .fest-chips { margin-top: 8px; }
.fest-chips::-webkit-scrollbar { display: none; }
.fest-chip { flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid #2f3139; background: transparent; color: #cfc9bd; font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.fest-chip:active { transform: scale(.96); }
.fest-chip.on { background: #d4af37; border-color: #d4af37; color: #15130c; font-weight: 700; }
.fest-pane { padding: 14px 16px 24px; }
.fest-list { display: flex; flex-direction: column; gap: 14px; }
.fest-card { position: relative; display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #1a1b20 0%, #131418 100%); border: 1px solid rgba(212,175,55,.18); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03); cursor: pointer; opacity: 0; transform: translateY(8px); animation: festIn .45s cubic-bezier(.2,.7,.2,1) forwards; transition: border-color .2s, box-shadow .2s, transform .2s; }
.fest-card:active { transform: scale(.985); }
.fest-card:hover { border-color: rgba(212,175,55,.45); box-shadow: 0 12px 34px rgba(0,0,0,.4), 0 0 0 1px rgba(212,175,55,.12), 0 0 24px rgba(212,175,55,.08); }
@keyframes festIn { to { opacity: 1; transform: none; } }
.fest-logo { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: #0e0f12; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.06); }
.fest-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fest-logo.white img { object-fit: contain; background: #fff; }
.fest-initials { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2a2414, #14120b 70%); color: #d4af37; font-weight: 700; font-size: 24px; letter-spacing: .04em; }
.fest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fest-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fest-pill { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.fest-pill.open { background: rgba(62,207,142,.14); color: #5fe0a5; }
.fest-pill.final { border: 1px solid rgba(212,175,55,.6); color: #e6c65c; }
.fest-pill.upcoming { background: rgba(120,160,255,.14); color: #9db8ff; }
.fest-name { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: #f3efe6; }
.fest-meta { margin: 0; font-size: 13px; color: #aaa498; line-height: 1.45; }
.fest-meta b { color: #e3ddd0; font-weight: 600; }
.fest-deadline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #d9d3c6; }
.fest-left { font-size: 12px; font-weight: 700; color: #d4af37; }
.fest-left.soon { color: #ff7a7a; }
.fest-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fest-cat { font-size: 11px; color: #c9c2b4; border: 1px solid #30323a; border-radius: 999px; padding: 2px 9px; background: rgba(255,255,255,.02); }
.fest-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.fest-submit { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border-radius: 12px; background: linear-gradient(180deg, #e2c158 0%, #c99f2a 100%); color: #15130c; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(212,175,55,.25), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s, box-shadow .2s; }
.fest-submit:active { transform: scale(.97); }
.fest-link { color: #d4af37; font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(212,175,55,.35); }
.fest-admin { display: flex; gap: 6px; margin-inline-start: auto; }
.fest-admin .tbtn { padding: 4px 10px; font-size: 12px; }
.fest-form { background: #16181d; border: 1px solid rgba(212,175,55,.25); border-radius: 16px; padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.fest-form h3 { margin: 0 0 6px; color: #d4af37; font-size: 16px; }
.fest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fest-cat-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fest-detail-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-top: 10px; }
.fest-detail-top .fest-logo { width: 120px; height: 120px; flex-basis: 120px; border-radius: 22px; }
.fest-detail-top .fest-name { font-size: 22px; text-align: center; width: 100%; }
.fest-detail-top .fest-meta { text-align: center; }
.fest-section { margin-top: 18px; padding: 14px; border-radius: 16px; background: #15161b; border: 1px solid rgba(255,255,255,.05); }
.fest-section h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #d4af37; }
.fest-section p { margin: 0; font-size: 14px; line-height: 1.55; color: #d6d0c3; }
.fest-dl-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 14px; color: #d6d0c3; }
.fest-dl-row:first-of-type { border-top: 0; }
.fest-dl-row.past { color: #6f6a61; text-decoration: line-through; }
.fest-dl-row.next { color: #f3efe6; font-weight: 700; }
.fest-detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.fest-detail-actions .fest-submit { height: 46px; font-size: 16px; }
.fest-detail-actions .fest-site { display: inline-flex; justify-content: center; align-items: center; height: 44px; border-radius: 12px; border: 1px solid rgba(212,175,55,.45); color: #d4af37; text-decoration: none; font-weight: 700; }
.fest-source { margin-top: 14px; font-size: 11px; color: #77726a; text-align: center; }
.fest-source a { color: #9b9486; }
@media (prefers-reduced-motion: reduce) { .fest-card { animation: none; opacity: 1; transform: none; } }
.thread-head { display: flex; flex-direction: column; gap: 8px; }
.thread-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tbtn { border: 1px solid #3a3d46; background: #1a1c22; color: #eceae6; font: inherit; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 7px 14px; cursor: pointer; }
.tbtn:active { background: #23262e; }
.tbtn.danger { color: #ff6b6b; border-color: #5a2a2a; }
.tbtn.gold { background: #d4af37; border-color: #d4af37; color: #111; }
.tbtn.red { background: #e41e3f; border-color: #e41e3f; color: #fff; }
#msg-who .group-icon.tappable { cursor: pointer; }
.member-list .crew-hit .mono { width: 34px; height: 34px; flex: 0 0 34px; font-size: 14px; }
.member-tag { font-size: 11px; font-weight: 700; border-radius: 8px; padding: 1px 7px; margin-inline-start: 6px; }
.member-tag.admin { background: #d4af37; color: #111; }
.member-tag.invited { border: 1px solid #555; color: #aaa; }
  .pf.pick-disabled { opacity: 0.65; pointer-events: none; color: #8d8a83; }
.app-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.app-sheet[hidden] { display: none; }
.app-sheet-card { width: 100%; max-width: 420px; background: #16181d; border: 1px solid #2a2c33; border-radius: 16px; padding: 16px; }
.app-sheet-text { margin: 0 0 12px; color: #eceae6; font-size: 15px; font-weight: 700; text-align: center; }
.app-sheet-buttons { display: flex; flex-direction: column; gap: 8px; }
.app-sheet-buttons .tbtn { width: 100%; padding: 11px; font-size: 15px; }
.voice-rec { display: flex; align-items: center; gap: 8px; margin-top: 0; margin-bottom: 4px; padding: 8px 10px; border: 1px solid #5a4a1a; border-radius: 14px; background: #1a1810; flex: 1 0 100%; width: 100%; box-sizing: border-box; }
.voice-rec[hidden] { display: none; }
.voice-rec canvas { flex: 1; min-width: 0; height: 32px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #d4af37; flex: 0 0 auto; animation: recPulse 1s ease-in-out infinite; }
@keyframes recblink { 50% { opacity: .3; } }
#voice-rec-time { color: #eceae6; font-variant-numeric: tabular-nums; font-size: 13px; min-width: 34px; }
.vplayer { display: flex; align-items: center; gap: 8px; margin-top: 4px; width: 230px; max-width: 100%; }
.vplayer .vplay { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #d4af37; color: #111; display: grid; place-items: center; flex: 0 0 auto; cursor: pointer; }
.vplayer .vplay svg { width: 16px; height: 16px; }
.vplayer canvas { flex: 1; min-width: 0; height: 28px; cursor: pointer; }
.vplayer .vtime { font-size: 11px; color: #bdb8ae; font-variant-numeric: tabular-nums; min-width: 30px; }
.vplayer .vspeed { border: 1px solid #555; background: transparent; color: #d4af37; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; cursor: pointer; flex: 0 0 auto; min-width: 4.5em; text-align: center; }
.group-photo-pick { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
#msg-thread .screen-head { flex-wrap: wrap; }
#msg-who.group-title {
  flex: 1 0 100%;
  margin: 10px 0 4px;
  color: #d4af37;
  font-style: normal;
  font-weight: 700;
}
.crew-hit, .crew-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid #2a2c33;
  border-radius: 14px;
  background: #16181d;
}
.crew-hit .row-main, .crew-member .row-main { flex: 1; }
.section-label {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8a83;
}
.pending-tag {
  font-size: 12px;
  font-weight: 600;
  color: #8d8a83;
}
.feed-text {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feed-text.rm-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.feed-text[lang="ar"].rm-clamp { padding-bottom: 6px; }
.feed-readmore { background: none; border: 0; padding: 4px 0 0; margin: 0; font: inherit; font-size: 15px; font-weight: 700; color: #b8892b; cursor: pointer; display: block; }
#home { overflow: hidden; }
#home .home-header {
  flex: 0 0 auto;
  background: #101114;
  border-bottom: 1px solid #2a2c33;
}
#home > .home-list,
#profile > .profile,
#review > .detail,
#feed > .detail,
#friends > .detail,
#detail > .detail,
#terms > .detail,
#messages > .detail,
#festivals > .detail,
#funds > .detail,
#admin > .detail,
#hold > .detail {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
}
#home > .home-list::-webkit-scrollbar,
#profile > .profile::-webkit-scrollbar,
#review > .detail::-webkit-scrollbar,
#feed > .detail::-webkit-scrollbar,
#friends > .detail::-webkit-scrollbar,
#detail > .detail::-webkit-scrollbar,
#terms > .detail::-webkit-scrollbar,
#messages > .detail::-webkit-scrollbar,
#funds > .detail::-webkit-scrollbar,
#admin > .detail::-webkit-scrollbar,
#hold > .detail::-webkit-scrollbar,
#auth.screen.on::-webkit-scrollbar { display: none; width: 0; height: 0; }
#auth.screen.on {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
}
.auth-support {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 18px 16px;
  text-align: center;
  background: #101114;
  flex: 0 0 auto;
}
.auth-support .text-link {
  color: #d4af37;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}
.tabs {
  display: flex;
  flex: 0 0 auto;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 40;
  border-top: 1px solid #2a2c33;
  background: #101114;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs button {
  flex: 1;
  height: 48px;
  background: transparent;
  border: 0;
  color: #8d8a83;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.msg-log { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.msg-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.msg-line { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.msg-line.mine { flex-direction: row-reverse; }
.msg-line .mono { width: 28px; height: 28px; flex: 0 0 auto; font-size: 12px; }
.msg-bubble.mine { background: #1c1e24; border: 1px solid #d4af37; }
.msg-bubble.theirs { background: #16181d; border: 1px solid #2a2c33; }
.msg-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.msg-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #2a2c33;
  border-radius: 12px;
  background: #101114;
  color: #eceae6;
  font: inherit;
}
.msg-form .send, .msg-form .icon-btn {
  width: 40px; height: 40px; padding: 0; flex: 0 0 auto;
  border-radius: 50%; display: grid; place-items: center;
}
.msg-form .send svg, .msg-form .icon-btn svg { width: 20px; height: 20px; display: block; }
.msg-form .icon-btn.rec { background: #2a2416; border-color: #d4af37; color: #d4af37; }
.msg-bubble audio { display: block; max-width: 220px; width: 220px; margin-top: 6px; }
.msg-bubble img.msg-thumb {
  display: block;
  max-width: 180px !important;
  width: auto;
  height: auto;
  margin-top: 6px;
  border-radius: 10px;
  cursor: pointer;
}
.msg-lightbox {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  z-index: 400;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  /* Stay out of .phone flex layout even if fixed is flaky */
  flex: 0 0 auto;
  pointer-events: auto;
}
.msg-lightbox[hidden] { display: none !important; }
.msg-lightbox img {
  max-width: min(100%, 920px) !important;
  max-height: 88dvh !important;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}
.msg-lightbox-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 30, 36, 0.9);
  color: #eceae6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.msg-bubble { position: relative; }
.msg-del {
  display: none;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #e15b5b;
  font-size: 12px;
}
.msg-menu { display: none; margin-top: 8px; }
.msg-bubble.open .msg-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.msg-menu button { padding: 0; border: 0; background: none; color: #eceae6; font-size: 13px; }
.msg-menu .danger { color: #e15b5b; }
.msg-menu input { width: 180px; height: 32px; margin-top: 6px; }
.msg-del svg { width: 12px; height: 12px; display: block; }
.tabs button.on { color: #eceae6; box-shadow: inset 0 2px 0 #d4af37; }
.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  padding: 3px;
  border: 1px solid #2a2c33;
  border-radius: 12px;
  background: #0c0d10;
}
.auth-switch .text-link {
  height: 34px;
  border-radius: 9px;
  color: #8d8a83;
  font-size: 13px;
  font-weight: 650;
}
.auth-switch .text-link.on {
  background: #1c1e24;
  color: #eceae6;
  box-shadow: inset 0 -2px 0 #d4af37;
}
.feed-attach-row { display: flex; gap: 12px; margin: 0 0 10px; }
.feed-attach-row .feed-attach { width: auto; flex: 1; margin: 0; }
.feed-attach { flex-direction: row; justify-content: flex-start; gap: 10px; margin: 0 0 10px; }
.feed-attach .photo-circle { width: 44px; height: 44px; font-size: 14px; display: grid; place-items: center; }
.attach-icon { width: 22px; height: 22px; stroke: #d4af37; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-circle.has-photo .attach-icon, .photo-circle.has-video .attach-icon { display: none; }
.photo-circle.has-video { box-shadow: inset 0 0 0 1px #d4af37; }

.media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.media-btn {
  flex: 1 1 140px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #3a3d46;
  background: #101114;
  color: #d4af37;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  cursor: pointer;
}
.media-btn:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
.edit-photo-actions { margin-top: 8px; }
@media (max-width: 800px) {
  #home { height: 100%; max-height: 100%; min-height: 0; min-width: 0; overflow: hidden; }
  #home .home-header { flex: 0 0 auto; max-width: 100%; min-width: 0; }
  #home .home-list {
    flex: 1 1 0%;
    height: 0;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
}
@media (max-width: 430px) {
  body { padding: 0; background: #101114; }
  .phone {
    width: 100%;
    height: 100%;
    height: 100dvh;
    height: 100svh;
    min-height: 0;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.multi-role { position: relative; }
.multi-role-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #2c2e36;
  background: #181a1f url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23d4af37' d='M1 1.2l5 5 5-5'/></svg>") no-repeat right 12px center;
  color: #8d8a83;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  text-align: left;
  padding: 0 32px 0 12px;
  cursor: pointer;
  line-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multi-role-btn.has-value { color: #d4af37; font-style: normal; }
.multi-role-btn:focus,
.multi-role.open .multi-role-btn {
  outline: 1px solid rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.85);
}
.multi-role-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 44px;
  max-height: 240px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #d4af37;
  background: #101114;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.multi-role-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 8px;
  color: #eceae6;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}
.multi-role-opt input {
  accent-color: #d4af37;
  width: 16px;
  height: 16px;
  margin: 0;
}
.multi-role-opt.on { color: #d4af37; font-style: normal; }
.nbadge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #e0245e; color: #fff; font-family: "Cairo", sans-serif; font-weight: 400; font-size: 11px; line-height: 18px; text-align: center; vertical-align: middle; box-sizing: border-box; }
.nbadge[hidden] { display: none !important; }
#more-btn, #tab-feed, #tab-friends, #tab-messages { position: relative; }
#more-btn .nbadge { position: absolute; top: -2px; right: -2px; margin-left: 0; }
.tabs button { display: flex; align-items: center; justify-content: center; color: #a9a59d; position: relative; }
.tabs button::before { content: ""; position: absolute; inset: 5px 10%; border-radius: 999px; background: transparent; transition: background .15s; }
.tabs button.on { color: #d4af37; box-shadow: none; }
.tabs button.on::before { background: rgba(212, 175, 55, 0.14); }
.tabs .tab-ico { position: relative; display: block; width: 26px; height: 26px; }
.tabs .tab-ico svg { width: 26px; height: 26px; display: block; }
.tabs .tab-ico .nbadge { position: absolute; top: -7px; left: 15px; right: auto; margin: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e41e3f; color: #fff; font-weight: 700; font-size: 12px; line-height: 20px; border: 2px solid #101114; box-sizing: border-box; z-index: 1; pointer-events: none; }
.pf-progress { margin: 12px 0 14px; padding: 12px 14px; border: 1px solid #d4af37; border-radius: 14px; background: rgba(212,175,55,0.08); }
.pf-progress[hidden] { display: none !important; }
.pf-progress-row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.pf-progress-pct { color: #d4af37; }
.pf-progress-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.12); margin-top: 8px; overflow: hidden; }
.pf-progress-fill { height: 100%; width: 0; background: #d4af37; border-radius: 6px; transition: width .25s; }
html[dir="rtl"] .pf-progress-fill { margin-left: auto; }
.pf-hint { display: block; font-size: 12px; color: #9a9a9a; margin-top: 4px; }
.rev-detail { display: block; font-size: 12px; color: #b9b9b9; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.rev-kind { color: #d4af37; }
.code-input { letter-spacing: 6px; font-size: 22px; text-align: center; }

.app-header .compose-plus { margin: 0 2px 0 0; }
#detail #back.contact-share { margin: 0 0 14px; align-self: flex-start; }
.feed-post { position: relative; }
.feed-who { padding-right: 36px; }
.post-menu { position: absolute; top: 8px; right: 8px; z-index: 4; }
.post-more {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #eceae6;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.post-more svg { width: 18px; height: 18px; fill: #eceae6; display: block; }
.post-more:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
.post-menu-pop {
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid #2a2c33;
  border-radius: 12px;
  background: #16181d;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.post-menu-pop .rev-btn {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eceae6;
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  padding: 10px 12px;
}
.post-menu-pop .rev-btn.danger { color: #e15b5b; }
.post-menu-pop .rev-btn:hover { background: #1c1e24; }
.admin-tools { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.admin-tools .contact-share { margin-top: 0; }
.admin-tools textarea {
  width: 100%;
  min-height: 84px;
  border-radius: 10px;
  border: 1px solid #2c2e36;
  background: #181a1f;
  color: #eceae6;
  padding: 8px 12px;
  font: inherit;
  font-style: normal;
}
.about-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.about-edit textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 10px;
  border: 1px solid #2c2e36;
  background: #181a1f;
  color: #eceae6;
  padding: 8px 12px;
  font: inherit;
  font-style: normal;
  resize: vertical;
}
.about-edit .contact-share { align-self: flex-start; margin-top: 0; }
#f-about.about-editing #d-about { display: none; }
.phone, .screen, .detail, .profile, .home-list, img, video { max-width: 100%; }
.multi-role-panel { scrollbar-width: none; }
.multi-role-panel::-webkit-scrollbar { display: none; }

/* viewport-lock: the document never scrolls or grows; only a screen pane scrolls */
html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
body {
  justify-content: flex-start;
  align-items: stretch;
}
.phone {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 auto;
  transform: none;
  filter: none;
}
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 60;
}
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  z-index: 60;
}
.screen {
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}
.screen.on {
  flex: 1 1 0%;
  height: 0;
  min-height: 0;
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
}
#home {
  height: 0;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
#home > .home-header,
.screen-head,
.pad,
.composer,
.feed-post,
.detail,
.profile,
.home-list {
  min-width: 0;
  max-width: 100%;
}
#home > .home-list,
#profile > .profile,
#review > .detail,
#feed > .detail,
#friends > .detail,
#detail > .detail,
#terms > .detail,
#messages > .detail,
#admin > .detail,
#hold > .detail {
  flex: 1 1 0%;
  height: 0;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}
#auth.screen.on {
  flex: 1 1 0%;
  height: 0;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  touch-action: pan-y;
}
#home > .home-list::-webkit-scrollbar,
#profile > .profile::-webkit-scrollbar,
#review > .detail::-webkit-scrollbar,
#feed > .detail::-webkit-scrollbar,
#friends > .detail::-webkit-scrollbar,
#detail > .detail::-webkit-scrollbar,
#terms > .detail::-webkit-scrollbar,
#messages > .detail::-webkit-scrollbar,
#admin > .detail::-webkit-scrollbar,
#hold > .detail::-webkit-scrollbar,
#auth.screen.on::-webkit-scrollbar,
.phone::-webkit-scrollbar,
.screen::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
html, body, .phone, .screen, .detail, .profile, .home-list, .feed-post {
  scrollbar-width: none;
}
.profile-title,
#signed-line {
  max-width: 100%;
  overflow: visible;
  line-height: 1.3;
}
#feed > .detail,
#friends > .detail,
#messages > .detail,
#profile > .profile,
#detail > .detail,
#review > .detail,
#terms > .detail,
#admin > .detail,
#hold > .detail {
  padding-top: 18px;
}
img, video {
  max-width: 100%;
  height: auto;
}
img.feed-photo,
video.feed-video,
.feed-post > img,
.feed-post > video {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}
.feed-attach .photo-circle {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
}

/* phone-fit: stop WebView horizontal pan and keep every screen below the fixed header */
:root {
  --rn-header: 120px;
  --rn-tabs: 48px;
}
html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
.phone {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-x: hidden;
  touch-action: pan-y;
}
.phone * {
  min-width: 0;
  max-width: 100%;
}
.phone, .screen, .detail, .profile, .home-list, .feed-post, .pad, .home-header, .composer, .facts, .who, .row {
  overflow-x: hidden;
  overflow-x: clip;
}
.detail, .profile, .home-list, .feed-post, .screen, .app-header {
  contain: inline-size;
}
.more-menu, .post-menu-pop {
  min-width: 148px;
}
#app-header,
#more-wrap {
  overflow: visible;
}
#more-menu {
  position: fixed;
  top: calc(var(--rn-header, 120px) + env(safe-area-inset-top, 0px));
  right: 8px;
  left: auto;
  bottom: auto;
  min-width: 168px;
  width: max-content;
  max-width: calc(100vw - 16px);
  z-index: 200;
  background: #16181d;
  color: #eceae6;
  overflow: visible;
}
#more-menu button {
  min-width: 148px;
  max-width: none;
  color: #eceae6;
}

img, video {
  max-width: 100% !important;
  height: auto;
  min-width: 0;
}
img, video, iframe, canvas, svg, table, pre {
  max-width: 100% !important;
  min-width: 0 !important;
}
table {
  display: block;
  width: 100% !important;
  table-layout: fixed;
  overflow-x: auto;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
iframe, .feed-embed {
  max-width: 100% !important;
  width: 100%;
}
body, .phone, .screen, .detail, .profile, .home-list, .feed-post, .fact, .fact span, p, h1, h2, a, td, th, pre, .feed-text, .admin-line {
  overflow-wrap: anywhere;
}
.me-bar .name,
.multi-role-btn,
.row,
.row-top,
.fact,
.who,
.feed-who,
.screen-head,
.home-links,
.msg-line,
.msg-form,
.app-header,
.tabs,
.filters,
.loc,
.oauth-row,
.filters > *,
.loc > * {
  max-width: 100%;
  min-width: 0;
}
.me-bar .name,
.multi-role-btn,
.row-top,
.feed-who,
.who,
.fact,
.screen-head,
.home-links {
  overflow-x: hidden;
  overflow-x: clip;
}
.me-bar .name,
.multi-role-btn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fact {
  flex-wrap: wrap;
}
.fact > span,
.fact-value {
  min-width: 0;
  max-width: 100%;
}
.home-links,
.screen-head {
  flex-wrap: wrap;
}
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  z-index: 80;
  overflow: hidden;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
.app-header .me-bar {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
}
.header-logo {
  display: block;
  flex: 0 1 110px;
  width: auto !important;
  max-width: 110px !important;
  height: auto !important;
  max-height: 48px !important;
  min-width: 0 !important;
  margin: 4px 0 4px 8px;
  object-fit: contain;
  object-position: left center;
}
.brand-logo {
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  max-height: 88px !important;
  object-fit: contain;
}
.mono img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  z-index: 80;
  overflow: hidden;
}
body.in-app .phone {
  padding-top: 0;
}
body.tabs-on .phone {
  padding-bottom: 0;
}
body.in-app .screen.on {
  box-sizing: border-box;
  padding-top: var(--rn-header);
  padding-top: calc(var(--rn-header) + env(safe-area-inset-top, 0px));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
body.tabs-on .screen.on {
  box-sizing: border-box;
  padding-bottom: var(--rn-tabs);
  padding-bottom: calc(var(--rn-tabs) + env(safe-area-inset-bottom, 0px));
}
body.in-app .screen.on > .detail,
body.in-app .screen.on > .profile,
body.in-app #home > .home-list,
body.in-app #auth.screen.on {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* post-photo: intrinsic image width must not grow the WKWebView layout viewport */
html {
  overflow: hidden;
  width: 100%;
}
img {
  max-width: 100vw !important;
}
.feed-photo-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}
.feed-photo-wrap > img.feed-photo {
  width: 100%;
  max-width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
  display: block;
}
/* ios-viewport: composer is an overlay so opening it cannot grow document scroll height */
html, body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
}
input, textarea, select,
.search-input,
.pf input,
.pf select,
.pf textarea,
.admin-tools textarea,
.about-edit textarea,
.msg-form input {
  font-size: 16px;
}
#feed {
  position: relative;
}
#feed > .detail {
  position: relative;
}
#composer-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: calc(100dvh - 160px);
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 50;
  box-sizing: border-box;
}
#feed-photo-circle > img.feed-photo-preview {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* reactions: line icons stay separate; focused composers sit on the visual viewport */
.phone .react-bar .react-btn {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
}
.react-ico {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  flex: 0 0 18px;
  display: block;
}
.react-count {
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: inherit;
}
.phone .react-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.phone .react-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
}
.phone .react-form .react-send {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  max-width: none;
  white-space: nowrap;
  color: #eceae6;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
}
.kb-pin {
  position: fixed;
  z-index: 300;
  left: 10px;
  right: 10px;
  top: auto;
  bottom: calc(var(--rn-tabs) + env(safe-area-inset-bottom, 0px));
  width: auto !important;
  max-width: none !important;
  margin: 0;
  box-sizing: border-box;
  background: #16181d;
  border: 1px solid #3a3d46;
  border-radius: 14px;
  padding: 8px;
}
.react-form.kb-pin {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
/* Chat composer pin: never become a body flex sibling (that splits the screen). */
#msg-form.kb-pin,
.msg-form.kb-pin {
  position: fixed !important;
  z-index: 300 !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0 !important;
  background: #16181d;
  border: 1px solid #3a3d46;
  border-radius: 14px;
  padding: 8px;
  /* bottom set by JS from visualViewport */
}
.msg-form.kb-pin input {
  flex: 1;
  min-width: 0;
}
.msg-attach-preview {
  display: none;
  position: relative;
  width: 100%;
  flex: 1 0 100%;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #101114;
  border: 1px solid #2a2c33;
}
.msg-attach-preview:not([hidden]) { display: block; }
.msg-attach-preview img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  vertical-align: top;
}
.msg-attach-preview .msg-attach-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #eceae6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.msg-form { flex-wrap: wrap; }
.about-edit.kb-pin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.about-edit.kb-pin textarea {
  flex: 1 1 auto;
  min-height: 72px;
  width: 100%;
  max-width: 100%;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
}
.about-edit.kb-pin .contact-share {
  flex: 0 0 auto;
  align-self: flex-end;
}
/* person profile is one full-width column; the admin bio editor must not
   leave #f-about. body is a row flex, so a fixed/static #d-about-edit on
   body (via .kb-pin / pinAboveKeyboard) becomes the right half of the screen. */
#detail > .detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#detail > .detail > * {
  flex-shrink: 0;
}
#detail > .detail > .contact-share {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}
#detail .who,
#detail .facts,
#detail .admin-tools {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#detail .admin-tools {
  align-items: flex-start;
}
#detail .admin-tools .contact-share {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}
#detail .facts,
#detail #f-about,
#detail #f-about.about-editing {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#d-about-edit,
.about-edit,
.about-edit.kb-pin {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  align-self: stretch !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0;
  margin-right: 0;
  transform: none !important;
}
.about-edit textarea,
.about-edit.kb-pin textarea,
#d-about-edit textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box;
}
.about-edit .contact-share,
.about-edit.kb-pin .contact-share,
#d-about-edit .contact-share {
  position: static !important;
  align-self: flex-start !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: 100% !important;
}

/* admin bio editor: full-screen sheet sized to the visual viewport (above the iOS keyboard).
   #bio-sheet is position:fixed, so it is out of body's flex flow and never splits the layout. */
#f-about .about-text { display: block; width: 100%; }
#f-about .about-text.admin-tap { cursor: pointer; }
#f-about .about-empty { color: #8d8a83; font-weight: 400; }
#f-about .bio-edit-btn,
#d-about-edit-btn {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  margin-top: 10px;
  font-family: "Cairo", sans-serif;
  font-weight: 400;
}
#bio-sheet {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: 100%;
  width: 100% !important;
  max-width: none !important;
  z-index: 400;
  display: block;
  margin: 0;
  padding: 0;
  background: #101114;
  box-sizing: border-box;
  overflow: hidden;
  font-family: "Cairo", sans-serif;
  font-weight: 400;
  transform: none;
}
#bio-sheet[hidden] { display: none !important; }
#bio-sheet .bio-sheet-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
#bio-sheet .bio-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 6px 10px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid #2c2e36;
  background: #16181d;
  box-sizing: border-box;
}
#bio-sheet .bio-sheet-title {
  flex: 1 1 auto;
  text-align: center;
  font-family: "Cairo", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #eceae6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bio-sheet .bio-sheet-btn {
  flex: 0 0 auto;
  height: 40px;
  min-width: 72px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #3a3424;
  background: transparent;
  color: #eceae6;
  font-family: "Cairo", sans-serif;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
}
#bio-sheet .bio-sheet-save { border-color: #d4af37; color: #d4af37; }
#bio-sheet .bio-sheet-btn:disabled { opacity: 0.5; }
#bio-sheet .bio-sheet-error {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 400;
}
#bio-sheet textarea {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  background: #101114;
  color: #eceae6;
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
/* Bidi: user-written text (posts, comments, bios, chat, group names) follows its own
   direction: Arabic shows right-to-left, Latin left-to-right. Page layout/chrome stays LTR. */
[dir="auto"] { text-align: start; unicode-bidi: plaintext; }
.msg-body { display: block; }
#open-review[hidden] { display: none !important; }
.nbadge { display: inline-flex !important; align-items: center; justify-content: center; line-height: 1 !important; padding: 0 5px 1px !important; font-variant-numeric: tabular-nums; }
/* name-under-logo: header brand column (logo on top, signed-in name below), all in-app pages */
.app-header { align-items: center; }
.app-header .header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 6px 0 6px 12px;
  box-sizing: border-box;
}
.app-header .header-brand .header-logo {
  flex: 0 0 auto;
  margin: 0;
  max-width: 96px !important;
  max-height: 42px !important;
  object-position: left center;
}
.app-header .header-brand .me-bar {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
  padding: 2px 6px 2px 0;
  border-radius: 999px;
  align-items: center;
  margin-top: 0.5mm;
}
.app-header .header-brand .me-bar .mono { width: 56px; height: 56px; flex: 0 0 56px; font-size: 22px; }
.app-header .header-brand .me-bar .name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #d4af37;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-header .header-brand .me-bar .verified-badge {
  width: 12px;
  height: 12px;
  font-size: 8px;
  margin-inline-start: 4px;
  vertical-align: 0.08em;
  background: #1877F2;
  color: #fff;
  flex-shrink: 0;
}
.app-header .header-brand .me-bar:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
.app-header .compose-plus, .app-header .more-wrap { align-self: center; }

/* eight-tabs */
.tabs { gap: 0; }
.tabs button { min-width: 0; padding: 0 2px; }
.tabs .tab-ico { width: 24px; height: 24px; }
.tabs .tab-ico svg { width: 24px; height: 24px; }
/* Language switch: GB / FR flags (active = full opacity + thin gold ring) */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; line-height: 0; }
.lang-switch button,
#more-menu .lang-switch button {
  display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 0; max-width: none;
  margin: 0; padding: 4px; border: 0; border-radius: 5px; background: transparent; cursor: pointer;
  opacity: 0.4; filter: saturate(0.6); transition: opacity 0.15s ease, filter 0.15s ease;
}
.lang-switch button svg { display: block; width: 22px; height: 15px; border-radius: 2px; }
.lang-switch button:hover,
#more-menu .lang-switch button:hover { background: transparent; opacity: 0.75; }
.lang-switch button.on,
#more-menu .lang-switch button.on { opacity: 1; filter: none; }
.lang-switch button.on svg { box-shadow: 0 0 0 1.5px #121316, 0 0 0 2.5px #d4af37; }
.lang-switch button:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
.auth-support .lang-switch { margin-inline-start: 14px; vertical-align: middle; }
.menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 6px 6px 2px 12px; border-top: 1px solid #2a2c33; color: #8d8a83; font-size: 13px; }
/* friend rows: let the buttons drop under the name when labels are long (FR) */
.crew-member { flex-wrap: wrap; }
.crew-member .row-main { flex: 1 1 150px; }
.friend-tools { margin-inline-start: auto; }
.friend-tools .rev-btn { white-space: nowrap; }
/* Crew filters: Role and Country each on their own full-width row (wider iOS picker) */
#home .filters { grid-template-columns: minmax(0, 1fr); }
#home .filters select { width: 100%; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Shared page header (all pages, all languages): one-line title, optional subtitle, action button on its own row */
.fest-title, .screen-head > .profile-title, .profile-title.mine-title {
  font-size: clamp(22px, 6.4vw, 26px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: #f3efe6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; min-width: 0;
}
.fest-hero { flex-direction: column; align-items: stretch; gap: 10px; }
.fest-head { padding-top: 18px; }
#home .home-header .pad, #home .search-box, #home .filters, #home .list-head { padding-left: 16px; padding-right: 16px; }
#home .home-header h1 { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.15; white-space: nowrap; }
.screen > .detail > .screen-head + .note, .fest-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #bfb9ad; }
.screen > .detail > .screen-head + .note { margin-bottom: 12px; }
.fest-hero > div { min-width: 0; }
#msg-list-head { flex-direction: column; align-items: stretch; gap: 10px; }
.fest-hero > .tbtn, #msg-list-head > #new-group {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; height: 34px; margin: 0; padding: 0 14px;
  border: 1px solid #d4af37; border-radius: 10px; background: #d4af37; color: #111; font: inherit; font-size: 13px; font-weight: 700;
  white-space: nowrap; text-decoration: none; box-shadow: none;
}
.fest-hero > .tbtn[hidden], #msg-list-head > #new-group[hidden] { display: none; }
.profile-lang { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 8px; color: #8d8a83; font-size: 12px; }

/* Arabic switch button (text badge, same footprint as the flags) */
.lang-switch .lang-ar { display: block; min-width: 30px; height: 15px; padding: 0 3px; border-radius: 2px; background: #1f6f4a; color: #fff; font: 700 11px/15px "Cairo", sans-serif; text-align: center; letter-spacing: 0; }
.lang-switch button.on .lang-ar { box-shadow: 0 0 0 1.5px #121316, 0 0 0 2.5px #d4af37; }
/* ---------- Arabic: whole page right-to-left (html[dir=rtl]) ---------- */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .row, html[dir="rtl"] .multi-role-btn { text-align: right; }
html[dir="rtl"] select, html[dir="rtl"] .fest-region-bar select { padding-left: 32px; padding-right: 12px; background-position: left 12px center; }
html[dir="rtl"] .fest-region-bar select { padding-left: 36px; }
html[dir="rtl"] .multi-role-btn { padding: 0 12px 0 32px; background-position: left 12px center; }
html[dir="rtl"] .app-header { padding-right: 0; padding-left: 6px; }
html[dir="rtl"] .app-header .header-brand { padding: 6px 12px 6px 0; }
html[dir="rtl"] .app-header .header-brand .header-logo, html[dir="rtl"] .header-logo { object-position: right center; }
html[dir="rtl"] .app-header .compose-plus { margin: 0 0 0 2px; }
html[dir="rtl"] .more-menu, html[dir="rtl"] #more-menu { right: auto; left: 8px; }
html[dir="rtl"] .menu-lang { padding: 6px 12px 2px 6px; }
html[dir="rtl"] #more-btn .nbadge { right: auto; left: -2px; }
html[dir="rtl"] .tabs .tab-ico .nbadge { left: auto; right: 15px; }
html[dir="rtl"] .nbadge { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .feed-who { padding-right: 0; padding-left: 36px; }
html[dir="rtl"] .post-menu { right: auto; left: 8px; }
html[dir="rtl"] .post-menu-pop { right: auto; left: 0; }
html[dir="rtl"] .msg-lightbox-close { right: auto !important; left: 12px !important; }
html[dir="rtl"] .msg-attach-preview .msg-attach-clear { right: auto; left: 6px; }
html[dir="rtl"] .auth-support .lang-switch { margin-inline-start: 14px; }
/* icons that point somewhere: mirror */
html[dir="rtl"] .msg-form .send svg, html[dir="rtl"] .react-send svg, html[dir="rtl"] .feed-send svg { transform: scaleX(-1); }
/* LTR islands: emails, phone numbers, links, codes, passwords */
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="url"], html[dir="rtl"] input[type="password"], html[dir="rtl"] .code-input { direction: ltr; text-align: right; }
html[dir="rtl"] input[type="email"]::placeholder, html[dir="rtl"] input[type="url"]::placeholder { direction: rtl; text-align: right; }
html[dir="rtl"] .code-input { text-align: center; }
html[dir="rtl"] #d-phone, html[dir="rtl"] #d-email { direction: ltr; unicode-bidi: isolate; }
/* inputs and text areas type right-to-left (Latin text still shows in its own direction) */
html[dir="rtl"] input:not([type="email"]):not([type="tel"]):not([type="url"]):not([type="password"]), html[dir="rtl"] textarea { text-align: right; }
html[dir="rtl"] .lang-switch { direction: ltr; }
/* user-written text keeps its own reading direction (unicode-bidi: plaintext) but lines up on the right like the rest of the page */
html[dir="rtl"] [dir="auto"] { text-align: right !important; }
/* empty dir=auto fields (search boxes, forms): lay the Arabic placeholder out right-to-left */
html[dir="rtl"] input[dir="auto"]:placeholder-shown, html[dir="rtl"] textarea[dir="auto"]:placeholder-shown { direction: rtl; text-align: right !important; }

/* ---------- Category chip rows (Festival / Fund / Industry): one-line finger-swipe scroller ---------- */
.fest-head .fest-chips, .fest-chips {
  display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 8px;
  width: calc(100% + 32px); max-width: none; min-width: 0; margin: 12px -16px 0; padding: 2px 16px 4px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  touch-action: pan-x; scroll-padding-inline: 16px;
  scrollbar-width: none; -ms-overflow-style: none;
  --chip-fade-s: 0px; --chip-fade-e: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--chip-fade-s), #000 calc(100% - var(--chip-fade-e)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--chip-fade-s), #000 calc(100% - var(--chip-fade-e)), transparent 100%);
}
.fest-chips::-webkit-scrollbar { display: none; width: 0; height: 0; }
.fest-chips > .fest-chip { flex: 0 0 auto; flex-shrink: 0; max-width: none; white-space: nowrap; }
.fest-chips.chip-more-start { --chip-fade-s: 28px; }
.fest-chips.chip-more-end { --chip-fade-e: 44px; }
html[dir="rtl"] .fest-chips {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--chip-fade-s), #000 calc(100% - var(--chip-fade-e)), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 var(--chip-fade-s), #000 calc(100% - var(--chip-fade-e)), transparent 100%);
}
/* ---------- Dropdowns: same app font everywhere; Arabic = right-to-left, arrow on the left ---------- */
.fest-tools select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' d='M1 1.2l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
select, option, optgroup, input, button, textarea { font-family: inherit; }
select, option, optgroup { font-family: "Cairo", sans-serif; }
html[dir="rtl"] select, html[dir="rtl"] option, html[dir="rtl"] optgroup { direction: rtl; text-align: right; text-align-last: right; }
html[dir="rtl"] select, html[dir="rtl"] .fest-region-bar select, html[dir="rtl"] .fest-tools select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' d='M1 1.2l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: left 12px center; padding-left: 34px; padding-right: 12px;
}
html[dir="rtl"] #home .filters select, html[dir="rtl"] .pf select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238d8a83' d='M1 1.2l5 5 5-5'/></svg>"); }
html[dir="rtl"] .multi-role-btn { direction: rtl; text-align: right; font-family: "Cairo", sans-serif; }
html[dir="rtl"] .multi-role-panel, html[dir="rtl"] .multi-role-opt { direction: rtl; text-align: right; font-family: "Cairo", sans-serif; }
/* Support link / Language label vs. language switcher: real gap in LTR and RTL (the switcher itself is direction:ltr, so no inline margins) */
.auth-support { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.auth-support .lang-switch, html[dir="rtl"] .auth-support .lang-switch { margin: 0; }
.menu-lang { gap: 12px; }
.profile-lang { gap: 12px; }
/* Page titles: Cairo's Arabic glyphs are taller than Latin, and the one-line titles clip (overflow hidden for the ellipsis).
   Taller clip box (line-height 1.5 + vertical padding); the negative margins give back the extra height so headers do not move. */
.fest-title, .screen-head > .profile-title, .profile-title.mine-title, #home .home-header h1 {
  line-height: 1.5; padding-top: 0.2em; padding-bottom: 0.2em; margin-top: -0.375em; margin-bottom: -0.375em;
}
html[dir="rtl"] .fest-title, html[dir="rtl"] .screen-head > .profile-title, html[dir="rtl"] .profile-title.mine-title, html[dir="rtl"] #home .home-header h1 { line-height: 1.5; }
/* one-line names with overflow hidden (header, inbox, crew rows): room for Arabic names without moving anything */
.me-bar .name, .msg-top .name { padding-top: 0.35em; padding-bottom: 0.35em; margin-top: -0.35em; margin-bottom: -0.35em; }
/* Messages thread header: the other person's name / photo opens their profile */
#msg-who.msg-who-link { width: fit-content; max-width: 100%; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
#msg-who.msg-who-link > span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .15s ease; }
#msg-who.msg-who-link:hover > span, #msg-who.msg-who-link:focus-visible > span { text-decoration-color: rgba(212,175,55,.6); }
#msg-who.msg-who-link:active { background-color: rgba(212,175,55,.10); }
#msg-who.msg-who-link:focus-visible { outline: 1px solid rgba(255,255,255,.85); outline-offset: 2px; }
/* ---------- In-app dropdown (replaces the iOS system picker for every <select>) ---------- */
.rn-dd { position: relative; display: block; width: 100%; min-width: 0; max-width: 100%; }
.rn-dd > select { pointer-events: none; }
.rn-dd > button.rn-dd-btn {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; display: block;
  width: 100%; height: 100%; min-width: 0; max-width: none; margin: 0; padding: 0;
  border: 0; border-radius: 12px; background: transparent; box-shadow: none; opacity: 1;
  color: transparent; font-size: 0; line-height: 0; cursor: pointer; outline: none;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.rn-dd > button.rn-dd-btn:disabled { cursor: default; }
.rn-dd > button.rn-dd-btn.rn-dd-kb:focus { outline: 1px solid rgba(255,255,255,.85); outline-offset: 0; }
.rn-dd.rn-dd-open > select { border-color: rgba(212,175,55,.6); }
.fest-tools > .rn-dd { flex: 0 0 42%; width: 42%; max-width: 42%; }
.fest-tools .rn-dd > select { width: 100%; max-width: 100%; }
.fest-region-bar > .rn-dd { flex: 1 1 auto; width: auto; min-width: 0; }
.fest-region-bar .rn-dd > select { width: 100%; }
.rn-dd-pop {
  position: fixed; z-index: 2147483000; box-sizing: border-box; margin: 0; padding: 5px;
  border: 1px solid #2c2e35; border-radius: 14px; background: #1b1d22; color: #eceae6;
  box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(212,175,55,.06);
  font-family: "Cairo", sans-serif; font-style: normal; letter-spacing: 0; text-transform: none;
  -webkit-text-size-adjust: 100%; animation: rn-dd-in .12s ease-out;
}
.rn-dd-pop[hidden], .rn-dd-scrim[hidden] { display: none; }
.rn-dd-scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147482999; background: rgba(6,7,9,.55); -webkit-tap-highlight-color: transparent; animation: rn-dd-fade .12s ease-out; }
@keyframes rn-dd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rn-dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rn-dd-pop.rn-dd-up { animation-name: rn-dd-in-up; }
@keyframes rn-dd-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rn-dd-list {
  list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; scrollbar-width: thin; scrollbar-color: #3a3c44 transparent;
}
.rn-dd-opt {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 44px; margin: 0; padding: 8px 12px;
  border-radius: 10px; color: #eceae6; font: 500 15px/1.35 "Cairo", sans-serif; text-align: start; cursor: pointer;
  outline: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.rn-dd-opt + .rn-dd-opt { margin-top: 1px; }
.rn-dd-check { flex: 0 0 16px; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; color: #d4af37; }
.rn-dd-check svg { display: block; }
.rn-dd-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; unicode-bidi: isolate; }
.rn-dd-text.rn-dd-empty { color: #8d8a83; }
.rn-dd-opt.on { color: #d4af37; font-weight: 700; background: rgba(212,175,55,.10); }
.rn-dd-opt:active { background: rgba(255,255,255,.07); }
.rn-dd-opt.on:active { background: rgba(212,175,55,.16); }
@media (hover: hover) {
  .rn-dd-opt:hover { background: rgba(255,255,255,.06); }
  .rn-dd-opt.on:hover { background: rgba(212,175,55,.15); }
}
.rn-dd-pop.rn-dd-kb .rn-dd-opt:focus { box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.rn-dd-opt[aria-disabled="true"] { opacity: .45; cursor: default; }
.rn-dd-pop[dir="rtl"], .rn-dd-pop[dir="rtl"] .rn-dd-opt { direction: rtl; text-align: right; }
.rn-dd-pop[dir="ltr"], .rn-dd-pop[dir="ltr"] .rn-dd-opt { direction: ltr; text-align: left; }

.msg-sys-src { display: block; margin-top: 6px; font-size: 13px; opacity: .8; }
/* ---- Desktop web (2026-10-07): progressive enhancement for wide screens with a mouse.
   Never applies inside the iOS app (touch / coarse pointer), so phones and iPads are unchanged. ---- */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  :root { --rn-rail: 240px; --rn-col: 860px; --rn-head: 118px; --rn-header: 118px; }
  .app-header .header-brand .me-bar .mono { width: 52px; height: 52px; flex-basis: 52px; font-size: 20px; }
  body { background: #0b0c0e; }
  .phone { background: #0b0c0e; }
  .phone { padding-inline-start: var(--rn-rail) !important; box-sizing: border-box; }
  body:not(.tabs-on) .phone { padding-inline-start: 0 !important; }
  .screen.on { width: 100%; max-width: var(--rn-col) !important; margin-inline: auto; background: #101114; border-inline: 1px solid #1d1f25; }
  #auth.screen.on { border-inline: 0; background: transparent; }
  body.tabs-on .screen.on { padding-bottom: 0 !important; }
  .app-header { background: rgba(11, 12, 14, .92) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid #1d1f25; padding-inline-end: 24px !important; }
  .app-header .header-brand { padding-inline-start: 26px !important; }
  .tabs {
    top: var(--rn-head) !important; bottom: 0 !important; left: 0 !important; right: auto !important;
    width: var(--rn-rail) !important; max-width: var(--rn-rail) !important;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px !important;
    padding: 18px 14px 24px !important; overflow-y: auto !important;
    border-top: 0 !important; border-inline-end: 1px solid #1d1f25; background: #0b0c0e !important;
  }
  html[dir="rtl"] .tabs { left: auto !important; right: 0 !important; }
  .tabs button { flex: 0 0 auto !important; height: 48px !important; justify-content: flex-start !important; gap: 14px; padding: 0 14px !important; border-radius: 12px; }
  .tabs button::before { inset: 0 !important; border-radius: 12px !important; }
  .tabs button:hover::before { background: rgba(255, 255, 255, .05); }
  .tabs button.on:hover::before { background: rgba(212, 175, 55, .16); }
  .tabs button::after { content: attr(aria-label); position: relative; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
  .tabs .tab-ico, .tabs .tab-ico svg { width: 22px !important; height: 22px !important; flex: 0 0 auto; }
  .tabs .tab-ico .nbadge { top: -8px; left: 12px; }
  html[dir="rtl"] .tabs .tab-ico .nbadge { left: auto; right: 12px; }
  .feed-post { border-radius: 16px; }
  .app-sheet .sheet-card, .app-sheet > div { max-width: 520px; margin-inline: auto; }
  /* Support: a proper centered panel above the side rail (it used to sit under the rail with its text clipped) */
  .support-sheet:not([hidden]) {
    position: fixed !important; inset: 0 !important; z-index: 450 !important; display: flex; flex-direction: column;
    padding: 72px max(24px, calc((100vw - 520px) / 2)) 24px !important; background: rgba(11, 12, 14, .97) !important; overflow-y: auto;
  }
  .support-sheet .composer { max-width: 100%; }
  .support-sheet textarea.tall { min-height: 160px; }
  ::-webkit-scrollbar { width: 0; height: 0; }
}
@media (min-width: 1400px) and (hover: hover) and (pointer: fine) {
  :root { --rn-rail: 270px; --rn-col: 920px; }
}

.app-sheet { z-index: 400; } /* sheets (report/block, group photo) must sit above the pinned chat composer (z 300) */
.safety-actions { display: flex; gap: 8px; margin-top: 10px; }
.safety-actions .contact-share { flex: 1; margin: 0; }
.safety-actions .safety-block { color: #e15b5b; }
.thread-safety { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.thread-safety[hidden] { display: none; }
.react-report { background: none; border: 0; color: #7d7b75; padding: 4px; margin-inline-start: auto; cursor: pointer; align-self: flex-start; flex: 0 0 auto; }
.react-report svg { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.blocked-wrap { margin: 16px 0 6px; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #22242a; }
.blocked-row .rev-btn { margin: 0; }
.legal-links { margin: 26px 0 10px; font-size: 13px; color: #9a988f; text-align: center; }
.legal-links a { color: #9a988f; text-decoration: underline; }

.react-form { position: static !important; }
.react-panel .react-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.react-form input { height: auto !important; min-height: 42px; line-height: 1.6; padding: 8px 12px; font-size: 16px; font-family: "Cairo", sans-serif; }
.react-form input:focus { outline: none; border-color: rgba(255,255,255,.85); }
html[dir="rtl"] .react-form input, .react-form input:dir(rtl) { line-height: 1.85; }
.react-form .react-send { min-height: 42px; padding: 0 16px; }
.react-text { line-height: 1.6; }
.react-text:dir(rtl) { line-height: 1.9; }

/* Chat column: the thread fills the panel so the composer sits at the bottom; the composer is in the normal
   flow after the last message (so it never covers it) and sticks to the bottom of the panel while scrolling. */
#msg-thread:not([hidden]) { display: flex; flex-direction: column; min-height: 100%; }
#msg-thread > .msg-log { flex: 1 0 auto; padding-bottom: calc(18px + var(--rn-msg-kb, 0px)); }
#msg-thread #msg-form, #msg-thread #msg-form.kb-pin {
  position: sticky !important; bottom: var(--rn-msg-kb, 0px) !important; top: auto !important; left: auto !important; right: auto !important;
  z-index: 6 !important; width: auto !important; max-width: 100% !important; box-sizing: border-box !important;
  margin: 0 !important; padding: 10px 0 12px !important; display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #101114 !important; border: 0 !important; border-radius: 0 !important; box-shadow: 0 -14px 18px -6px rgba(16,17,20,.95) !important;
}
#msg-thread #msg-form input#msg-text { flex: 1 1 160px; min-width: 0; line-height: 1.6; }
html[dir="rtl"] #msg-thread #msg-form input#msg-text { line-height: 1.85; }
#msg-thread #msg-form .voice-rec, #msg-thread #msg-form .msg-attach-preview { flex: 1 0 100%; }
#msg-thread > .kb-pin-spacer { display: none !important; }

.msg-swipe { position: relative; overflow: hidden; border-radius: 12px; }
.msg-swipe > .crew-hit { position: relative; z-index: 1; width: 100%; background: #101114; transition: transform .22s ease; touch-action: pan-y; }
.msg-swipe.dragging > .crew-hit { transition: none; }
.msg-del { position: absolute; z-index: 0; top: 0; bottom: 0; inset-inline-end: 0; width: 88px; border: 0; margin: 0; padding: 0;
  background: #d64545; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 600 12px/1.3 "Cairo", sans-serif; cursor: pointer; }
.msg-del svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .msg-del { z-index: 2; top: 50%; bottom: auto; inset-inline-end: 10px; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
    background: #23252c; color: #e15b5b; border: 1px solid #3a3d46; opacity: 0; transition: opacity .15s; }
  .msg-del span { display: none; }
  .msg-del svg { width: 17px; height: 17px; }
  .msg-swipe:hover .msg-del, .msg-del:focus-visible { opacity: 1; }
  .msg-del:hover { background: #d64545; color: #fff; border-color: #d64545; }
  .msg-swipe:hover > .crew-hit .msg-when { visibility: hidden; }
}
.thread-del { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 6px; }
.thread-safety[hidden] + .thread-del { margin-inline-start: auto; }
.thread-del svg { width: 15px; height: 15px; }

.fest-logo, .fest-detail-top .fest-logo { position: relative; aspect-ratio: 1 / 1; box-sizing: border-box; overflow: hidden; background: #f4f4f2; }
.fest-logo img, .fest-logo.white img { position: absolute; top: 9%; left: 9%; width: 82%; height: 82%; max-width: 82%; max-height: 82%; object-fit: contain; object-position: center; display: block; background: transparent; }
.fest-logo.white { background: #fff; }
.fest-logo.dark-tile { background: #0e0f12; }
.fest-logo.no-logo { padding: 0; background: #0e0f12; }

/* Region: one compact button at the start edge (left in EN/FR, right in AR), label = chosen region */
.fest-region-bar { justify-content: flex-start; margin-top: 10px; }
.fest-region-bar > .rn-dd { flex: 0 0 auto; width: auto; max-width: 100%; }
.fest-region-bar select.region-dd { flex: 0 0 auto; width: auto; max-width: 100%; height: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
/* Phone: the region list opens as a bottom sheet */
.rn-dd-pop.rn-dd-sheet { border-radius: 18px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); animation: rn-dd-sheet-in .18s ease-out; }
.rn-dd-pop.rn-dd-sheet::before { content: attr(data-title); display: block; padding: 14px 14px 8px; color: #bfb9ad; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-align: start; border-top: 0; background: linear-gradient(#4a4c53, #4a4c53) center 4px / 36px 4px no-repeat; }
.rn-dd-pop.rn-dd-sheet .rn-dd-opt { min-height: 46px; font-size: 16px; }
@keyframes rn-dd-sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.tri-editor { display: grid; gap: 8px; margin: 0 0 10px; }
.tri-field { display: grid; gap: 4px; margin: 0; font-size: 12px; color: #9a988f; font-weight: 600; }
.tri-field textarea { display: block; box-sizing: border-box; width: 100%; min-height: 84px; max-height: 220px; resize: vertical; border-radius: 10px; border: 1px solid #2c2e36; background: #181a1f; color: #eceae6; padding: 8px 12px; font-family: "Cairo", sans-serif; font-size: 16px; font-weight: 400; line-height: 1.55; }
.tri-field textarea:focus { outline: none; border-color: rgba(255,255,255,.85); }
.tri-field textarea[lang="en"], .tri-field textarea[lang="fr"] { direction: ltr; text-align: left !important; }
.tri-field textarea[lang="ar"] { direction: rtl; text-align: right; line-height: 1.95; padding-top: 8px; padding-bottom: 8px; }
.tri-field .tri-label[lang="ar"] { direction: rtl; text-align: right; }
.tri-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tri-translate { border: 1px solid #d4af37; color: #d4af37; background: transparent; border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.tri-translate:disabled { opacity: .5; cursor: default; }
.tri-status { font-size: 12px; color: #9a988f; }
.tri-status.err { color: #e15b5b; }
.feed-post .tri-editor { margin-top: 8px; }
.feed-text[lang="ar"] { line-height: 2; padding-top: 2px; padding-bottom: 2px; }
.feed-filter { display: flex; gap: 8px; margin: 2px 0 10px; }
.feed-chip { border: 1px solid #2c2b28; background: #121214; color: #cfcdc6; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.feed-chip[aria-pressed="true"] { border-color: #d4af37; color: #0b0b0c; background: #d4af37; }
/* ---- Colour-only: white instead of yellow for nav and buttons (logo and category/toggle chips stay yellow) ---- */
.tabs button { color: #e4e5e8; }
.tabs button.on { color: #fff; }
.tabs button.on::before { background: rgba(255,255,255,.14); }
.tabs button.on:hover::before { background: rgba(255,255,255,.2) !important; }
.auth-switch .text-link.on { box-shadow: inset 0 -2px 0 #fff; }
.fest-tools input:focus, .fest-tools select:focus, .fest-region-bar select:focus, .rn-dd.rn-dd-open > select { border-color: rgba(255,255,255,.6); }
.fest-region-bar select.active-filter { border-color: rgba(255,255,255,.7); color: #fff; }
.rn-dd-opt.on { color: #fff; background: rgba(255,255,255,.14); }
.rn-dd-check { color: #fff; }
.rn-dd-pop.rn-dd-kb .rn-dd-opt:focus { box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.fest-submit { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.fest-detail-actions .fest-site { border-color: rgba(255,255,255,.45); color: #fff; }
.fest-link { color: #fff; border-bottom-color: rgba(255,255,255,.35); }
.fest-head { border-bottom-color: rgba(255,255,255,.12); }
.fest-card { border-color: rgba(255,255,255,.14); }
.fest-card:hover { border-color: rgba(255,255,255,.4); box-shadow: 0 12px 34px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1); }
.fest-section h4, .fest-form h3 { color: #fff; }
.tbtn.gold { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
/* Card action buttons: AI Studio mode-tab look (.aiv-tabs button). Shape and colours only, fonts untouched */
:is(#festivals, #industry, #funds) :is(.fest-actions .tbtn, .fest-detail-actions .fest-site, .fest-detail-actions .tbtn, .fest-actions .fest-submit, .fest-detail-actions .fest-submit) { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; box-sizing: border-box; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #e6e7ea; box-shadow: none; text-decoration: none; }
:is(#festivals, #industry, #funds) .fest-actions .tbtn { padding: 0 12px; min-height: 34px; }
:is(#festivals, #industry, #funds) :is(.fest-actions .tbtn, .fest-detail-actions .fest-site, .fest-detail-actions .tbtn, .fest-actions .fest-submit, .fest-detail-actions .fest-submit):hover { color: #fff; }
:is(#festivals, #industry, #funds) :is(.fest-actions .fest-submit, .fest-detail-actions .fest-submit) { border-color: #fff; background: #fff; color: #07080a; }
:is(#festivals, #industry, #funds) :is(.fest-actions .fest-submit, .fest-detail-actions .fest-submit):hover { color: #07080a; }
:is(#festivals, #industry, #funds) .fest-actions .tbtn.danger { color: #ff6b6b; }
/* Festival Calendar 'View festival' (a.fest-submit in #festivals-calendar): solid white primary like Apply now; colours/shape only */
body #festivals-calendar .fest-actions a.fest-submit { display: inline-flex !important; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; box-sizing: border-box; border: 1px solid #fff !important; border-radius: 10px !important; background: #fff !important; background-image: none !important; color: #07080a !important; box-shadow: none !important; text-decoration: none !important; }
body #festivals-calendar .fest-actions a.fest-submit:hover, body #festivals-calendar .fest-actions a.fest-submit:focus-visible { background: #fff !important; color: #07080a !important; }
/* ===== Admin-only AI video generator: desktop web only (hidden on phones and in the iOS app) ===== */
#tab-ai, #ai-video-page { display: none !important; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #tab-ai:not([hidden]) { display: flex !important; }
  #ai-video-page:not([hidden]) {
    display: block !important; position: fixed; z-index: 45; top: var(--rn-head); bottom: 0; inset-inline-start: var(--rn-rail); inset-inline-end: 0;
    overflow-y: auto; background: #07080a; padding: 0; box-sizing: border-box; color: #eceae6;
  }
  body:not(.tabs-on) #ai-video-page { display: none !important; }
}
/* ===== AI Studio for approved visitors (desktop web only; never in the iOS app) ===== */
#ai-visitor-page { display: none !important; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #ai-visitor-page:not([hidden]) {
    display: block !important; position: fixed; z-index: 45; top: var(--rn-head); bottom: 0; inset-inline-start: var(--rn-rail); inset-inline-end: 0;
    overflow-y: auto; background: #07080a; padding: 0; box-sizing: border-box; color: #eceae6;
  }
  body:not(.tabs-on) #ai-visitor-page { display: none !important; }
}
html[dir="rtl"] #ai-visitor-page, html[dir="rtl"] #ai-visitor-page * { font-family: "Cairo", sans-serif; }
#ai-visitor-page .avs-gate { text-align: center; max-width: 560px; margin: 70px auto; }
#ai-visitor-page .avs-gate h3 { font-size: 22px; margin: 0 0 12px; line-height: 1.5; }
#ai-visitor-page .avs-gate p { color: #9a988f; line-height: 1.8; margin: 0 0 18px; }
#ai-visitor-page textarea { display: block; width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical; background: rgba(255,255,255,.04); color: #f4f4f5; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.7; }
#ai-visitor-page textarea:focus { outline: none; border-color: rgba(255,255,255,.7); }
#ai-visitor-page .avs-tos { text-align: start; white-space: pre-line; max-height: 300px; overflow-y: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.8; color: #cfcdc6; margin-bottom: 14px; }
#ai-visitor-page .avs-links { margin: 0 0 14px; font-size: 14px; }
#ai-visitor-page .avs-links a, .aiv-legal a { color: #cfcdc6; }
.aiv-legal.aiv-engine { margin: 8px auto 0; max-width: 720px; font-size: 12px; }
.aiv-legal { margin: 34px 0 0; font-size: 13px; color: #8f8d85; text-align: center; line-height: 1.8; }
.avs-buy { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.avs-buy:hover { border-color: #fff; }
.avs-pay-bg { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; }
.avs-pay { background: #0f1013; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 24px; width: min(460px, 92vw); color: #eceae6; }
.avs-pay h3 { margin: 0 0 14px; font-size: 20px; }
.avs-pay .pk { display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.avs-pay .pk:hover { border-color: #fff; }
.avs-pay .pk b { font-size: 18px; }
.avs-pay p { margin: 10px 0 0; font-size: 13px; color: #9a988f; line-height: 1.7; }
.avs-pay a { color: #cfcdc6; }
#avs-storage { font-size: 13px; color: #9a988f; white-space: nowrap; }
#ai-visitor-page .avs-chk { display: flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }
#ai-visitor-page .avs-row { margin-bottom: 18px; }
#ai-visitor-page .avs-err { color: #ff9b9b; font-size: 13.5px; margin-top: 12px; min-height: 1.5em; line-height: 1.7; }
#ai-visitor-page .avs-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
#ai-visitor-page .avs-imgs button { padding: 0; width: 84px; height: 56px; border-radius: 10px; border: 2px solid transparent; overflow: hidden; background: #111; cursor: pointer; }
#ai-visitor-page .avs-imgs button[aria-pressed="true"] { border-color: #fff; }
#ai-visitor-page .avs-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ai-visitor-page .aiv-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#ai-visitor-page .aiv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.admin-ai { margin-top: 28px; }
.admin-ai h3 { font-size: 16px; margin: 18px 0 8px; }
.admin-ai .avad-row { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.admin-ai .avad-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-ai .avad-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-ai .avad-btns input { width: 150px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: inherit; font: inherit; font-size: 13px; }
.admin-ai .avad-led { font-size: 12px; opacity: .8; line-height: 1.7; white-space: pre-wrap; }
.aiv-col { max-width: 1120px; min-height: 100%; margin: 0 auto; box-sizing: border-box; padding: 28px 32px 72px; }
.aiv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.aiv-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; line-height: 1.5; }
.aiv-head-end { display: flex; align-items: center; gap: 12px; }
.aiv-credits { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #cfcdc6; background: #14151a; border: 1px solid #2c2b28; border-radius: 999px; padding: 7px 16px 7px 12px; line-height: 1.6; white-space: nowrap; }
.aiv-credits::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8d9097); flex: 0 0 auto; }
.aiv-credits b { color: #fff; font-weight: 700; font-size: 15px; }
.aiv-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 22px; margin-bottom: 34px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05); }
.aiv-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 20px; }
.aiv-tabs button { border: 0; background: transparent; color: #a9abb0; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 10px; cursor: pointer; line-height: 1.5; }
.aiv-tabs button:hover { color: #fff; }
.aiv-tabs button[aria-selected="true"] { background: #fff; color: #07080a; }
.aiv-top { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: stretch; }
.aiv-top.solo { grid-template-columns: minmax(0, 1fr); }
.aiv-top.two { grid-template-columns: minmax(0, 1fr) 420px; }
.aiv-media { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: 1fr; align-content: start; }
.aiv-media[hidden] { display: none; }
.aiv-slot .aiv-lbl { margin-bottom: 8px; }
.aiv-slot .aiv-drop { min-height: 168px; }
.aiv-refs-wrap { margin-top: 16px; }
.aiv-refs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.aiv-refs-head .aiv-lbl { margin: 0; }
.aiv-ref i { position: absolute; bottom: 4px; inset-inline-start: 4px; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(8, 9, 11, .8); color: #fff; border-radius: 6px; padding: 0 6px; line-height: 1.6; }
.aiv-snd-list { display: flex; gap: 8px; flex-wrap: wrap; }
.aiv-snd { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 5px 10px 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #dcdde0; line-height: 1.6; }
.aiv-snd button { border: 0; background: transparent; color: #fff; font-size: 15px; cursor: pointer; padding: 0 2px; }
.aiv-helper-box { margin-top: 14px; }
.aiv-helper-box .aiv-lbl { margin-bottom: 8px; }
.aiv-helper { display: flex; gap: 8px; flex-wrap: wrap; }
.aiv-chip { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 14px; cursor: pointer; line-height: 1.6; direction: ltr; }
.aiv-chip:hover { background: #fff; color: #07080a; }
.aiv-full { grid-column: 1 / -1; }
.aiv-in { width: 100%; box-sizing: border-box; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #f4f4f5; font: inherit; font-size: 14px; padding: 0 14px; }
.aiv-in:focus { outline: none; border-color: rgba(255, 255, 255, .7); }
.aiv-toggle[hidden], .aiv-g[hidden], .aiv-refs-wrap[hidden] { display: none; }
.aiv-prompt-wrap { display: flex; flex-direction: column; }
.aiv-lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8f8d85; margin: 0 0 8px; line-height: 1.7; }
html[dir="rtl"] .aiv-lbl { letter-spacing: 0; text-transform: none; font-size: 13px; line-height: 1.9; }
.aiv-card textarea { display: block; width: 100%; box-sizing: border-box; flex: 1 1 auto; min-height: 168px; resize: vertical; background: rgba(255, 255, 255, .04); color: #f4f4f5; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; font: inherit; font-size: 16px; line-height: 1.65; padding: 16px 18px; }
.aiv-card textarea:focus { outline: none; border-color: rgba(255, 255, 255, .7); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
html[dir="rtl"] .aiv-card textarea { line-height: 2; }
.aiv-drop { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 168px; border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: 16px; background: #0b0c0e; color: #a9a79f; text-align: center; padding: 14px; cursor: pointer; overflow: hidden; box-sizing: border-box; transition: border-color .15s, background .15s; }
.aiv-drop::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 12, .0), rgba(8, 9, 12, .6)), var(--aiv-art, url(/ai/ref-scene.webp)) center / cover no-repeat; opacity: 1; transition: transform .6s ease, filter .3s; }
.aiv-drop::after { content: ""; position: absolute; inset: 10px; pointer-events: none; border-radius: 6px; background: linear-gradient(#fff,#fff) top left/16px 2px no-repeat, linear-gradient(#fff,#fff) top left/2px 16px no-repeat, linear-gradient(#fff,#fff) top right/16px 2px no-repeat, linear-gradient(#fff,#fff) top right/2px 16px no-repeat, linear-gradient(#fff,#fff) bottom left/16px 2px no-repeat, linear-gradient(#fff,#fff) bottom left/2px 16px no-repeat, linear-gradient(#fff,#fff) bottom right/16px 2px no-repeat, linear-gradient(#fff,#fff) bottom right/2px 16px no-repeat; opacity: .75; box-shadow: inset 0 0 60px rgba(0,0,0,.35); transition: inset .25s, opacity .25s; }
.aiv-drop:hover::after { inset: 6px; opacity: 1; }
.aiv-drop:hover::before { transform: scale(1.06); }
.aiv-drop.has::after { display: none; }
.aiv-drop-t, .aiv-drop-sub { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.aiv-drop > * { position: relative; }
.aiv-drop > svg, .aiv-drop > .aiv-drop-t, .aiv-drop > .aiv-drop-sub { z-index: 1; color: #e4e2da; }
.aiv-drop:hover, .aiv-drop.over { border-color: #fff; color: #fff; }
.aiv-drop.over::before { transform: scale(1.06); }
.aiv-drop.has::before { display: none; }
.aiv-drop svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.aiv-drop-t { font-size: 13px; font-weight: 600; line-height: 1.6; }
html[dir="rtl"] .aiv-drop-t { line-height: 1.9; }
.aiv-drop-sub { font-size: 11.5px; color: #b5b2a8 !important; line-height: 1.6; }
.aiv-drop.has { border-style: solid; border-color: #3a3c46; padding: 0; }
.aiv-drop.has > svg, .aiv-drop.has > .aiv-drop-t, .aiv-drop.has > .aiv-drop-sub { display: none; }
.aiv-drop .aiv-img-thumb { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.aiv-drop .aiv-x { position: absolute !important; top: 8px; inset-inline-end: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(10, 10, 12, .78); color: #fff; font-size: 17px; line-height: 28px; padding: 0; cursor: pointer; }
.aiv-drop .aiv-x:hover { background: #fff; color: #07080a; }
.aiv-drop .aiv-drop-open { position: absolute !important; inset: 0; opacity: 0; cursor: pointer; border: 0; background: none; font-size: 0; z-index: 1; }
.aiv-note { margin: 10px 0 0; font-size: 12.5px; color: #9a988f; line-height: 1.7; }
.aiv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 22px; }

.aiv-g > .aiv-lbl { margin-bottom: 9px; }
.aiv-mwrap { display: block; }
.aiv-hint { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.6; color: #9a988f; max-width: 520px; }
.aiv-msum { margin: 10px 2px 0; font-size: 13.5px; font-weight: 700; color: #fff; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.aiv-msum .k { color: #8f8d85; font-weight: 700; }
.aiv-msum .n { color: #07080a; background: #fff; border-radius: 999px; padding: 1px 10px; }
.aiv-mnote { margin: 8px 2px 0; padding: 8px 12px; font-size: 13px; line-height: 1.6; color: #ffe2a8; background: rgba(255, 184, 61, .1); border: 1px solid rgba(255, 184, 61, .35); border-radius: 12px; }
.aiv-mcard.off { opacity: .55; border-style: dashed; }
.aiv-mc-name { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aiv-mc-model { display: inline-block; margin-inline-start: 0; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #07080a; background: #e9e6dc; direction: ltr; unicode-bidi: isolate; }
.aiv-seg button.alt { opacity: .6; border-style: dashed; }
.aiv-mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .aiv-mcards { grid-template-columns: 1fr; } }
.aiv-mcard { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; text-align: start; min-height: 132px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #cfd0d3; font: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.aiv-mcard:hover { border-color: rgba(255, 255, 255, .4); }
.aiv-mcard[aria-pressed="true"] { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 0 0 1px #fff inset; }
.aiv-mc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aiv-mc-name { font-size: 15px; font-weight: 800; color: #fff; }
.aiv-mc-price { font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; unicode-bidi: isolate; }
.aiv-mc-price small { font-weight: 600; opacity: .7; }
.aiv-mc-desc { font-size: 12.5px; line-height: 1.45; color: #aeb0b4; }
.aiv-mc-bdg { display: flex; flex-wrap: wrap; gap: 6px; }
.aiv-b { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; border: 1px solid transparent; direction: ltr; unicode-bidi: isolate; }
.aiv-b.r-4k { background: rgba(168, 85, 247, .18); color: #cf9bff; border-color: rgba(168, 85, 247, .5); }
.aiv-b.r-2k { background: rgba(96, 120, 255, .18); color: #a3b2ff; border-color: rgba(96, 120, 255, .5); }
.aiv-b.r-1080p { background: rgba(52, 211, 153, .16); color: #5ee0b0; border-color: rgba(52, 211, 153, .45); }
.aiv-b.r-720p { background: rgba(45, 212, 191, .14); color: #5fe0d2; border-color: rgba(45, 212, 191, .4); }
.aiv-b.r-540p, .aiv-b.r-other { background: rgba(251, 146, 60, .15); color: #fdab6b; border-color: rgba(251, 146, 60, .4); }
.aiv-b.d { background: rgba(255, 255, 255, .08); color: #d8d9dc; border-color: rgba(255, 255, 255, .2); }
.aiv-b.a { background: rgba(244, 114, 182, .16); color: #f79bc8; border-color: rgba(244, 114, 182, .45); }
.aiv-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.aiv-seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #cfd0d3; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.aiv-seg button:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.aiv-seg button[aria-pressed="true"] { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
.aiv-seg.dis button { opacity: .4; pointer-events: none; }
.aiv-seg.num button { min-width: 38px; padding: 0 10px; justify-content: center; }
.aiv-ratio { display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; flex: 0 0 auto; opacity: .9; }
.aiv-sel-hidden { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.aiv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.aiv-refs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.aiv-ref { position: relative; width: 60px; height: 60px; }
.aiv-ref img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; border: 1px solid #2c2e36; display: block; }
.aiv-ref button { position: absolute; top: -6px; inset-inline-end: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #fff; color: #07080a; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
.aiv-btn { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #eceae6; border-radius: 12px; padding: 9px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.5; text-decoration: none; display: inline-block; }
.aiv-btn:hover { border-color: #fff; }
.aiv-btn[disabled] { opacity: .45; cursor: default; }
.aiv-gold { background: #fff; color: #07080a; border-color: #fff; }
.aiv-gold:hover { background: #d9dbdf; }
.aiv-toggles { display: flex; gap: 12px; flex-wrap: wrap; }
.aiv-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.6; cursor: pointer; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 8px 14px; background: rgba(255, 255, 255, .04); }
.aiv-toggle input { width: 18px; height: 18px; accent-color: #fff; flex: 0 0 auto; margin: 0; }
.aiv-toggle small { display: block; color: #8f8d85; font-size: 12px; }
.aiv-est { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #23252c; padding-top: 20px; margin-top: 22px; }
.aiv-est-n { font-size: 13.5px; color: #9a988f; line-height: 1.7; }
.aiv-est-n b { color: #fff; font-size: 15px; }
.aiv-go { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 12px 0 28px; border-radius: 16px; border: 0; background: linear-gradient(180deg, #fff, #d4d6da); color: #07080a; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 30px rgba(255, 255, 255, .14); transition: transform .12s, box-shadow .12s, opacity .12s; }
html[dir="rtl"] .aiv-go { padding: 0 28px 0 12px; }
.aiv-go:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(255, 255, 255, .24); }
.aiv-go[disabled] { opacity: .4; cursor: default; box-shadow: none; }
.aiv-go-cost { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; background: rgba(7, 8, 10, .12); font-size: 14px; font-weight: 800; white-space: nowrap; }
.aiv-warn { color: #d6d7da; font-size: 13px; line-height: 1.7; margin: 12px 0 0; }
.aiv-confirm { margin-top: 16px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.aiv-confirm p { margin: 0 0 12px; line-height: 1.7; font-size: 15px; }
.aiv-confirm .aiv-row { margin: 0; }
.aiv-list h3 { font-size: 18px; margin: 0 0 16px; line-height: 1.6; font-weight: 700; }
.aiv-grid-v { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.aiv-job { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.aiv-job:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.aiv-cover { position: relative; aspect-ratio: 16 / 9; background: #08090b; overflow: hidden; cursor: default; }
.aiv-job.is-done .aiv-cover { cursor: pointer; }
.aiv-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #08090b; }
.aiv-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity .15s; }
.aiv-play i { width: 48px; height: 48px; border-radius: 50%; background: rgba(10, 10, 12, .62); border: 1px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; }
.aiv-play i::after { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-inline-start: 3px; }
html[dir="rtl"] .aiv-play i::after { border-width: 8px 13px 8px 0; border-color: transparent #fff transparent transparent; }
.aiv-cover.playing .aiv-play { opacity: 0; }
.aiv-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; line-height: 1.6; background: rgba(12, 12, 14, .78); color: #cfcdc6; backdrop-filter: blur(4px); }
.aiv-badge.processing, .aiv-badge.queued { color: #fff; }
.aiv-badge.done { color: #e8e9eb; }
.aiv-badge.failed { color: #b9bbc0; }
.aiv-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, rgba(7, 8, 11, .45), rgba(7, 8, 11, .8)), var(--aiv-bg, url(/ai/ref-scene.webp)) center / cover no-repeat; color: #e4e2da; font-size: 13px; font-weight: 600; animation: aivpulse 2.6s ease-in-out infinite; }
@keyframes aivpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.aiv-prog { display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(78%, 220px); font-size: 12px; font-weight: 700; color: #fff; text-align: center; }
.aiv-prog-bar { width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.aiv-prog-bar i { display: block; height: 100%; background: #fff; border-radius: 99px; transition: width .9s linear; }
html[dir="rtl"] .aiv-prog-bar i { margin-inline-start: 0; }
.aiv-prog-s { font-weight: 600; opacity: .8; font-size: 11.5px; unicode-bidi: plaintext; }
.aiv-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .22); border-top-color: #fff; animation: aivspin 0.9s linear infinite; }
@keyframes aivspin { to { transform: rotate(360deg); } }
.aiv-fail { position: absolute; inset: 0; background-image: linear-gradient(rgba(8, 9, 11, .86), rgba(8, 9, 11, .94)), url(/ai/ref-video.webp); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; color: #c9cbd0; font-size: 13px; line-height: 1.7; }
.aiv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.aiv-prompt { margin: 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aiv-meta { font-size: 12px; color: #8f8d85; line-height: 1.7; }
.aiv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 4px; }
.aiv-actions .aiv-btn { padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.aiv-empty { grid-column: 1 / -1; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: #cfcdc6; font-size: 14px; line-height: 1.8; padding: 84px 24px; min-height: 260px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: linear-gradient(180deg, rgba(8, 9, 12, .2), rgba(8, 9, 12, .75)), url(/ai/empty-gallery.webp) center / cover no-repeat; }
.aiv-empty b { font-size: 20px; color: #f3f1ea; }
.aiv-empty span { max-width: 460px; }
.aiv-err { color: #c9cbd0; font-size: 13px; line-height: 1.7; margin: 0; }

/* ---- AI Studio: Finishing ---- */
.aix-src { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.aix-src-prev { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .22); background: #08090b; display: flex; align-items: center; justify-content: center; color: #8f8d85; font-size: 13px; overflow: hidden; }
.aix-src-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; color-scheme: dark; }
.aix-src-side { display: flex; flex-direction: column; gap: 10px; }
.aix-secs { display: flex; align-items: center; gap: 12px; }
.aix-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; }
.aix-strip[hidden] { display: none; }
.aix-strip button { flex: 0 0 150px; padding: 0; border: 1px solid rgba(255, 255, 255, .14); background: #0b0c0e; border-radius: 12px; overflow: hidden; cursor: pointer; color: #fff; font: inherit; font-size: 12px; text-align: start; }
.aix-strip button:hover, .aix-strip button[aria-pressed="true"] { border-color: #fff; }
.aix-strip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; pointer-events: none; }
.aix-strip button.snd { flex-basis: 190px; padding: 10px 12px; line-height: 1.6; }
.aix-strip small { display: block; padding: 6px 10px 8px; color: #a9abb0; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aix-vid { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; color-scheme: dark; }
@media (max-width: 900px) { .aix-src { grid-template-columns: 1fr; } .aiv-hub-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[dir="rtl"] #ai-video-page, html[dir="rtl"] #ai-video-page * { font-family: "Cairo", sans-serif; }
html[dir="rtl"] .aiv-prompt, html[dir="rtl"] .aiv-meta, html[dir="rtl"] .aiv-est-n, html[dir="rtl"] .aiv-toggle, html[dir="rtl"] .aiv-confirm p, html[dir="rtl"] .aiv-note { line-height: 1.95; }
html[dir="rtl"] .aiv-head h2 { line-height: 1.8; }
.aiv-lb { position: fixed; inset: 0; z-index: 400; background: rgba(4, 4, 6, .88); display: flex; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(6px); }
.aiv-lb-in { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; }
.aiv-lb video { width: 100%; max-height: calc(100vh - 220px); background: #000; border-radius: 16px; display: block; }
.aiv-lb-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.aiv-lb-bar p { margin: 0; color: #dcd9d1; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; max-height: 5.2em; overflow: auto; }
.aiv-lb-x { position: absolute; top: 18px; inset-inline-end: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #3a3c46; background: #14151a; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* uniform cards: fixed cover ratio, fixed text slots, buttons pinned to the bottom */
.aiv-job { transform: none !important; }
.aiv-all .aiv-grid-v .aiv-job { align-self: stretch; }
.aiv-grid-v { align-items: stretch; }
.aiv-job .aiv-cover { aspect-ratio: 16 / 10 !important; flex: none; }
.aiv-job .aiv-cover > img, .aiv-job .aiv-cover > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aiv-job .aiv-cover > .aix-wave { position: absolute; inset: 0; height: 100%; border: 0; }
.aiv-job .aiv-cover > .aix-player { position: absolute; bottom: 8px; inset-inline: 10px; width: calc(100% - 20px); z-index: 3; }
.aiv-job .aiv-body { gap: 6px; }
.aiv-job .aiv-s-title { margin: 0; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.5; height: 3em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.aiv-job .aiv-s-title.pr { font-size: 14px; font-weight: 400; color: inherit; line-height: 1.65; height: 3.3em; }
.aiv-job .aiv-s-desc { margin: 0; font-size: 14px; line-height: 1.65; height: 4.95em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; color: #cfcdc6; }
.aiv-job .aiv-s-meta { font-size: 12px; color: #8f8d85; line-height: 1.7; height: 1.7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.aiv-job .aiv-s-tags { height: 26px; overflow: hidden; display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.aiv-job .aiv-s-tags .plib-tag { flex: none; }
.aiv-job .aiv-s-tags .aiv-meta { white-space: nowrap; }
.aiv-job .aiv-act2 { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.aiv-act2 .aiv-arow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aiv-act2 .aiv-arow > :only-child { grid-column: 1 / -1; }
.aiv-act2 .aiv-arow2 { display: flex; gap: 8px; min-height: 36px; }
.aiv-act2 .aiv-btn { height: 36px; padding: 0 10px; font-size: 13px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; min-width: 0; }
.aiv-act2 .aiv-more-b { flex: 1 1 auto; }
.aiv-act2 .aiv-more-b::after { content: ""; width: 6px; height: 6px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.aiv-act2 .aiv-del-ic { flex: none; width: 36px; padding: 0; color: #ff8d8d; border-color: rgba(255, 120, 120, .35); }
.aiv-act2 .aiv-del-ic:hover { border-color: #ff8d8d; background: rgba(255, 90, 90, .12); }
.aiv-act2 .aiv-del-ic svg { width: 16px; height: 16px; flex: none; }
.aiv-act2 .aiv-del-ic .lbl { display: none; }
.aiv-act2 .aiv-del-ic.armed { width: auto; padding: 0 12px; background: rgba(255, 90, 90, .18); border-color: #ff8d8d; }
.aiv-act2 .aiv-del-ic.armed .lbl { display: inline; }
.aiv-more { position: fixed; z-index: 450; display: none; flex-direction: column; gap: 6px; padding: 8px; background: #14151a; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); min-width: 190px; max-width: 280px; }
.aiv-more.open { display: flex; }
.aiv-more .aiv-btn { width: 100%; height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; justify-content: flex-start; text-align: start; display: flex; align-items: center; }
.aiv-lb img { width: auto; max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; align-self: center; background: #000; border-radius: 16px; display: block; }
.aiv-lb-bar .aiv-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; align-self: flex-start; }
.aiv-lb-bar .aiv-btn svg { width: 16px; height: 16px; flex: none; }
.aiv-dl { display: inline-flex; align-items: center; gap: 8px; }
.aiv-dl svg { width: 15px; height: 15px; flex: none; }
.aiv-lb-x:hover { border-color: #fff; }
@media (max-width: 1280px) { .aiv-top { grid-template-columns: minmax(0, 1fr) 200px; } }

/* ---- AI Studio: category tiles, images, audio ---- */
.aiv-head-t h2 { margin: 0; }
.aiv-head-t p.aiv-powered { margin: 0; font-size: 12px; color: #8f8d85; line-height: 1.6; letter-spacing: .01em; }
.aiv-head-t p { margin: 4px 0 0; font-size: 14px; color: #8f8d85; line-height: 1.7; }
.plib-head { margin-bottom: 20px; display: flex; flex-direction: column; gap: 14px; }
.plib-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.plib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.plib-bar .aiv-seg { flex-wrap: nowrap; gap: 8px; }
.plib-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .16); }
.plib-search { height: 32px; font-size: 13px; width: 260px; flex: 0 1 260px; margin-inline-start: auto; }
@media (max-width: 900px) { .plib-bar .aiv-seg { flex-wrap: wrap; } .plib-sep { display: none; } .plib-search { flex: 1 1 100%; width: 100%; margin-inline-start: 0; } }
.plib-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.5; }
.plib-card .aiv-prompt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.plib-notes { display: block; white-space: pre-wrap; margin-top: 6px; }
.plib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plib-tag { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #cfd0d3; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.plib-tag:hover { border-color: #fff; color: #fff; }
.plib-danger { border-color: #e5484d !important; color: #ff8a8e !important; }
.plib-noprev { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #8f8d85; font-size: 15px; background: linear-gradient(135deg, #15161a, #23242a); }
.plib-lb .aiv-lb-in { overflow: auto; }
.plib-lb-bar { display: flex; flex-direction: column; gap: 8px; color: #dcd9d1; }
.plib-lb-title { margin: 0; font-size: 16px; color: #fff; }
.plib-lb-prompt { margin: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; max-height: 7.5em; overflow: auto; white-space: pre-wrap; }
.plib-aw { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 24px; background: #131419; border-radius: 16px; }
.plib-aw img { max-height: 40vh; border-radius: 12px; }
.plib-card .aiv-cover:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.plib-md { position: fixed; inset: 0; z-index: 420; background: rgba(4, 4, 6, .78); display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(5px); }
.plib-box { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: #131419; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.plib-box h3 { margin: 0; font-size: 18px; }
html[dir="rtl"] .plib-box, html[dir="rtl"] .plib-head { text-align: right; }
.aiv-hub { margin-bottom: 30px; }
.aiv-hub-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aiv-hub-soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.aiv-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; min-height: 178px; padding: 22px 22px 20px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .12); color: #f4f4f5; font: inherit; cursor: pointer; background: #0b0c0e; isolation: isolate; box-sizing: border-box; transition: border-color .18s, transform .18s, box-shadow .18s; }
.aiv-tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--tile-art) center / cover no-repeat; filter: saturate(1.1) contrast(1.04); opacity: .95; transition: opacity .25s, transform .5s; }
.aiv-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 10, .05) 0%, rgba(7, 8, 10, .8) 100%); }
html[dir="rtl"] .aiv-tile::after { background: linear-gradient(180deg, rgba(7, 8, 10, .05) 0%, rgba(7, 8, 10, .8) 100%); }
button.aiv-tile:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
button.aiv-tile:hover::before { opacity: .8; transform: scale(1.04); }
.aiv-tile[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 22px 60px rgba(0, 0, 0, .6); }
.aiv-tile[aria-pressed="true"]::before { opacity: .85; }
.aiv-tile-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); margin-bottom: 10px; }
.aiv-tile-ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* coloured tool icons: one colour per tool, dark glass chip behind it */
.aiv-tile { --ic: 255 255 255; }
.aiv-tile[data-cat="video"] { --ic: 255 123 107; }
.aiv-tile[data-cat="images"] { --ic: 76 201 240; }
.aiv-tile[data-cat="audio"] { --ic: 179 136 255; }
.aiv-tile[data-cat="avatar"] { --ic: 255 143 199; }
.aiv-tile[data-cat="studio"] { --ic: 255 159 104; }
.aiv-tile[data-cat="templates"] { --ic: 139 212 80; }
.aiv-tile[data-cat="finish"] { --ic: 124 156 255; }
.aiv-tile[data-cat="library"] { --ic: 70 214 168; }
.aiv-tile .aiv-tile-ico { background: rgb(var(--ic) / .22); border: 1px solid rgb(var(--ic) / .65); box-shadow: 0 0 18px rgb(var(--ic) / .25); }
.aiv-tile .aiv-tile-ico svg { stroke: rgb(var(--ic)); stroke-width: 1.9; filter: drop-shadow(0 0 4px rgb(var(--ic) / .45)); }
.aiv-tile[aria-pressed="true"] .aiv-tile-ico { background: rgb(var(--ic) / .34); border-color: rgb(var(--ic)); }
/* header chips (Buy credits, credits, storage): same height, border, radius, type */
#ai-video-page .aiv-head-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#ai-video-page .aiv-head-end > .avs-buy, #ai-video-page .aiv-head-end > .aiv-credits, #ai-video-page .aiv-head-end > #avs-storage { height: 38px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); font: inherit; font-size: 13px; line-height: 1; color: #cfcdc6; white-space: nowrap; }
#ai-video-page .aiv-head-end > .avs-buy { color: #fff; font-weight: 700; cursor: pointer; }
#ai-video-page .aiv-head-end > .avs-buy:hover { border-color: #fff; }
#ai-video-page .aiv-head-end > #avs-storage { color: #9a988f; }
#ai-video-page .aiv-head-end > .aiv-credits:empty { display: none; }
#ai-video-page .aiv-credits::before { width: 18px; height: 18px; border-radius: 0; background: rgb(70 214 168); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9.5 9.5c0-1.2 1.1-2 2.5-2s2.5.8 2.5 2c0 2.7-5 1.8-5 4.5 0 1.2 1.1 2 2.5 2s2.5-.8 2.5-2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9.5 9.5c0-1.2 1.1-2 2.5-2s2.5.8 2.5 2c0 2.7-5 1.8-5 4.5 0 1.2 1.1 2 2.5 2s2.5-.8 2.5-2'/%3E%3C/svg%3E") center / contain no-repeat; }
.aiv-tile-t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.4; }
.aiv-tile-d { font-size: 13.5px; color: #c4c5c8; line-height: 1.65; }
.aiv-tile-c { margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px 12px; line-height: 1.7; }
.aiv-tile-check { position: absolute; top: 18px; inset-inline-end: 18px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); }
.aiv-tile[aria-pressed="true"] .aiv-tile-check { background: #fff; border-color: #fff; }
.aiv-tile[aria-pressed="true"] .aiv-tile-check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #07080a; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.aiv-tile.soon { min-height: 0; cursor: default; flex-direction: column; padding: 16px 18px; border-style: dashed; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .02); opacity: .72; }
.aiv-tile.soon::before, .aiv-tile.soon::after { display: none; }
.aiv-tile.soon .aiv-tile-ico { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 4px; }
.aiv-tile.soon .aiv-tile-ico svg { width: 19px; height: 19px; opacity: .8; }
.aiv-tile.soon .aiv-tile-t { font-size: 16px; padding-inline-end: 90px; }
.aiv-tile.soon .aiv-tile-d { font-size: 12.5px; }
.aiv-soon-pill { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 11.5px; font-weight: 700; padding: 2px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #cfd0d3; line-height: 1.7; }
/* ---- AI Studio: Templates, Music videos and ads ---- */
.aiv-hub-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .aiv-hub-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aixb-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.aixb-bar .aiv-in { width: auto; }
.aixb-q { flex: 1 1 220px; min-width: 0; }
.aixb-sort { flex: 0 1 190px; min-width: 0; }
.aixb-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.aixb-chip { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff; cursor: pointer; }
.aixb-chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.aixb-count { margin: 4px 0 10px; }
.aixb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 560px; overflow-y: auto; padding: 2px; }
.aixb-card { aspect-ratio: auto; padding: 0; gap: 0; background: #0b0c0e; justify-content: flex-start; }
.aixb-card::before, .aixb-card::after { display: none; }
.aixb-thumb { display: block; width: 100%; aspect-ratio: 3 / 4; background: #14161a center / cover no-repeat; }
.aixb-info { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px 10px; }
.aixb-info .aixt-name { font-size: 13px; line-height: 1.35; }
.aixb-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.aixb-imgs { font-size: 11px; opacity: .75; }
.aixb-more { margin: 12px auto 0; display: block; }
.aixb-sel { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.aixt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.aixt-card { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; text-align: start; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: #0b0c0e; color: #fff; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.aixt-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art) center / cover no-repeat; transition: transform .5s; }
.aixt-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 10, 0) 35%, rgba(7, 8, 10, .88) 100%); }
.aixt-card:hover { border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }
.aixt-card:hover::before { transform: scale(1.06); }
.aixt-card[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 14px 40px rgba(0, 0, 0, .55); }
.aixt-name { font-size: 15px; font-weight: 800; line-height: 1.45; }
.aixt-price { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); line-height: 1.7; }
.aixs-frame { border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.aiv-sug { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aiv-sug-list { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.aiv-sug-item { text-align: start; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: inherit; font: inherit; line-height: 1.6; cursor: pointer; }
.aiv-sug-item:hover { border-color: rgba(255,255,255,.4); }
.aixs-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.aixs-th { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); }
.aixs-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aixs-th button { position: absolute; top: 5px; inset-inline-end: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(10, 10, 12, .78); color: #fff; font-size: 16px; line-height: 24px; padding: 0; cursor: pointer; }
.aixs-th button:hover { background: #fff; color: #07080a; }
.aixs-add { width: 96px; height: 96px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); color: #d9dadd; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 11.5px; cursor: pointer; padding: 6px; line-height: 1.4; }
.aixs-add b { font-size: 26px; font-weight: 300; line-height: 1; }
.aixs-add:hover { border-color: #fff; color: #fff; }
.aixs-src { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.aixs-vid { width: min(420px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; color-scheme: dark; }
.aixs-ta { width: 100%; box-sizing: border-box; }
/* ===== DCP service (web only; hidden in the iOS app) ===== */
#tab-dcp[hidden] { display: none !important; }
#dcp-page { display: none; }
#dcp-page:not([hidden]) { display: block; position: fixed; z-index: 45; top: calc(var(--rn-header, 120px) + env(safe-area-inset-top, 0px)); bottom: calc(48px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 0; inset-inline-end: 0; width: auto; overflow-y: auto; background: #07080a; color: #eceae6; -webkit-overflow-scrolling: touch; }
body:not(.tabs-on) #dcp-page { display: none !important; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #dcp-page:not([hidden]) { top: var(--rn-head); bottom: 0; inset-inline-start: var(--rn-rail); inset-inline-end: 0; }
}
html[dir="rtl"] #dcp-page, html[dir="rtl"] #dcp-page * { font-family: "Cairo", sans-serif; }
#dcp-page .dcp-wrap { max-width: 980px; margin: 0 auto; padding: 22px 18px 60px; box-sizing: border-box; }
#dcp-page h1 { margin: 0 0 4px; font-size: 26px; color: #fff; }
#dcp-page h2 { margin: 30px 0 12px; font-size: 18px; color: #fff; }
#dcp-page .dcp-sub { margin: 0 0 14px; color: #9a988f; font-size: 14px; line-height: 1.6; }
#dcp-page .dcp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
#dcp-page .dcp-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); font-size: 13px; color: #cfcdc6; white-space: nowrap; box-sizing: border-box; }
#dcp-page .dcp-card { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .035); border-radius: 18px; padding: 18px; box-sizing: border-box; }
#dcp-page .dcp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#dcp-page .dcp-full { grid-column: 1 / -1; }
#dcp-page .dcp-g { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#dcp-page .dcp-lbl { font-size: 12.5px; color: #a9a59d; }
#dcp-page .dcp-lbl.dcp-lock { color: #7d7b74; }
#dcp-page input[type=text], #dcp-page input[type=email], #dcp-page input[type=number], #dcp-page input[type=url], #dcp-page input[type=password], #dcp-page select, #dcp-page textarea { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 14px; color-scheme: dark; }
#dcp-page textarea { height: 84px; padding: 10px 12px; resize: vertical; }
#dcp-page select option { background: #14151a; color: #fff; }
#dcp-page input:focus, #dcp-page select:focus, #dcp-page textarea:focus { outline: 0; border-color: #fff; }
#dcp-page input.dcp-bad, #dcp-page select.dcp-bad { border-color: #ff6b6b; }
#dcp-page .dcp-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.55; color: #d9dadd; }
#dcp-page .dcp-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #fff; }
#dcp-page .dcp-check a { color: #fff; }
#dcp-page .dcp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; box-sizing: border-box; white-space: nowrap; }
#dcp-page .dcp-btn:hover { border-color: #fff; }
#dcp-page .dcp-btn.dcp-main { background: #fff; border-color: #fff; color: #07080a; }
#dcp-page .dcp-btn[disabled] { opacity: .5; cursor: default; }
#dcp-page .dcp-btn.dcp-danger { color: #ff6b6b; }
#dcp-page .dcp-msg { font-size: 13.5px; color: #ff9b8f; min-height: 20px; margin: 0; }
#dcp-page .dcp-msg.ok { color: #6fe3b4; }
#dcp-page .dcp-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
#dcp-page .dcp-order { display: grid; grid-template-rows: 28px 46px 22px 22px 1fr 44px; gap: 8px; min-height: 270px; padding: 16px; }
#dcp-page .dcp-order .dcp-ot { font-weight: 700; font-size: 15px; color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
#dcp-page .dcp-order .dcp-st { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .1); color: #fff; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dcp-page .dcp-order .dcp-st.s-paid, #dcp-page .dcp-order .dcp-st.s-link_received, #dcp-page .dcp-order .dcp-st.s-processing { background: rgba(76, 201, 240, .18); color: #7fdcf5; }
#dcp-page .dcp-order .dcp-st.s-delivered { background: rgba(111, 227, 180, .18); color: #6fe3b4; }
#dcp-page .dcp-order .dcp-st.s-failed, #dcp-page .dcp-order .dcp-st.s-expired { background: rgba(255, 107, 107, .16); color: #ff9b8f; }
#dcp-page .dcp-order .dcp-ometa { font-size: 12.5px; color: #9a988f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dcp-page .dcp-order .dcp-obody { font-size: 13px; color: #cfcdc6; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
#dcp-page .dcp-order .dcp-obody input { height: 36px; }
#dcp-page .dcp-order .dcp-oact { display: flex; gap: 8px; align-items: end; }
#dcp-page .dcp-order .dcp-oact .dcp-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
#dcp-page .dcp-order .dcp-oact .dcp-btn.dcp-danger { flex: 0 0 44px; }
#dcp-page .dcp-lockbox { border: 1px dashed rgba(255, 255, 255, .22); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #8f8d86; }
#dcp-page .dcp-none { color: #8f8d86; font-size: 14px; }
@media (max-width: 700px) { #dcp-page .dcp-grid { grid-template-columns: minmax(0, 1fr); } #dcp-page .dcp-wrap { padding: 16px 14px 40px; } #dcp-page h1 { font-size: 22px; } #dcp-page .dcp-orders { grid-template-columns: minmax(0, 1fr); } }
.new-members { margin-top: 28px; }
.new-members #nm-search { width: 100%; box-sizing: border-box; background: #15161a; color: #fff; border: 1px solid #2a2c33; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; margin: 8px 0 12px; }
.new-members .nm-row { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px; margin: 10px 0; background: rgba(255,255,255,.03); }
.new-members .nm-name { font-weight: 600; }
.new-members .nm-link { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.new-members .nm-link:hover span:last-child { text-decoration: underline; text-underline-offset: 2px; }
.new-members .nm-av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #3a3a3a center/cover no-repeat; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.rev-btn.delete-solid { background: #c4362c; color: #fff; border-color: #c4362c; }
.new-members .nm-status { display: inline-block; margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 1.6; font-family: inherit; white-space: nowrap; }
.new-members .nm-st-incomplete { background: rgba(232,93,74,.16); color: #f2a093; border: 1px solid rgba(232,93,74,.45); }
.new-members .nm-st-pending { background: rgba(212,175,55,.16); color: #e8cf7a; border: 1px solid rgba(212,175,55,.5); }
.new-members .nm-st-approved { background: rgba(76,175,110,.16); color: #9bdcae; border: 1px solid rgba(76,175,110,.45); }
.new-members .nm-meta { font-size: 12.5px; color: #cfcdc6; line-height: 1.7; word-break: break-word; margin: 6px 0; }
.new-members .nm-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-dcp { margin-top: 28px; }
.admin-dcp .dcp-arow { border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px; margin: 10px 0; background: rgba(255, 255, 255, .03); }
.admin-dcp .dcp-atop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.admin-dcp .dcp-det { font-size: 12.5px; color: #cfcdc6; line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
.admin-dcp .dcp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.admin-dcp input, .admin-dcp select, .admin-dcp textarea { background: #15161a; color: #fff; border: 1px solid #2a2c33; border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; color-scheme: dark; box-sizing: border-box; }
.admin-dcp input.wide { flex: 1 1 260px; }
/* DCP is desktop web only for now: never on phones, tablets or in the iOS app */
#tab-dcp, #dcp-page { display: none !important; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #tab-dcp:not([hidden]) { display: flex !important; }
  #dcp-page:not([hidden]) { display: block !important; }
}
/* the sidebar label of the AI Studio entry is one line like the others; the full approved name stays in the tooltip and on the Studio page */
html[lang="ar"] #tab-ai::after { content: "استوديو الذكاء الاصطناعي"; }
html[lang="fr"] #tab-ai::after { content: "Rolling Now Studio IA"; }
.aiv-cat[hidden] { display: none; }

.aixr-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.aixr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; font-size: 13px; line-height: 1.5; cursor: pointer; }
html[dir="rtl"] .aixr-chip { padding: 4px 4px 4px 6px; }
.aixr-chip:hover { border-color: #fff; }
.aixr-chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: block; }
.aixr-chip b { font-weight: 700; direction: ltr; }
.aixr-chip button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 15px; padding: 0 4px; line-height: 1; }
.aixr-cube { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.aixr-lib { margin-top: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.03); padding: 14px; }
.aixr-lib-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.aixr-h { margin: 0 !important; margin-inline-end: auto !important; }
.aixr-lib-head { justify-content: flex-start; }
.aixr-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.05); }
.aixr-tabs button { border: 0; background: transparent; color: #a9abb0; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 9px; cursor: pointer; }
.aixr-tabs button[aria-selected="true"] { background: #fff; color: #07080a; }
.aixr-tabs button[disabled] { opacity: .4; cursor: default; }
.aixr-card .star { position: absolute; z-index: 2; top: 8px; inset-inline-end: 8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.92); color: #07080a; }
.aixr-card:hover .star, .aixr-card:focus-within .star { display: none; }
.aixr-tabs small { font-size: 10px; margin-inline-start: 6px; opacity: .8; }
.aixr-search { flex: 1 1 180px; max-width: 320px; height: 34px; }
.aixr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; max-height: 300px; overflow: auto; }
.aixr-card { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #0b0c0e; cursor: pointer; padding: 0; color: #fff; font: inherit; }
.aixr-card:hover { border-color: #fff; }
.aixr-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.aixr-card:hover img { transform: scale(1.07); }
.aixr-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85)); }
.aixr-card .aixr-cube { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; width: 18px; height: 18px; padding: 4px; border-radius: 8px; background: rgba(8,9,11,.7); box-sizing: content-box; }
.aixr-card span.n { position: absolute; z-index: 2; inset-inline: 8px; bottom: 6px; font-size: 13px; font-weight: 700; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aixr-card .acts { position: absolute; z-index: 3; top: 6px; inset-inline-end: 6px; display: none; gap: 4px; }
.aixr-card:hover .acts, .aixr-card:focus-within .acts { display: flex; }
.aixr-card .acts i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: rgba(8,9,11,.85); border: 1px solid rgba(255,255,255,.3); font-size: 12px; line-height: 22px; text-align: center; cursor: pointer; }
.aixr-card .acts i:hover { background: #fff; color: #07080a; }
.aixr-card.plus { display: flex; align-items: center; justify-content: center; border-style: dashed; background: linear-gradient(180deg, rgba(8,9,12,.15), rgba(8,9,12,.6)), url(/ai/ref-scene.webp) center / cover no-repeat; text-shadow: 0 1px 8px rgba(0,0,0,.8); color: #fff; transition: transform .25s; font-size: 34px; color: #cfd0d3; }
.aixr-card.plus::after { display: none; }
.aixr-card.plus:hover { transform: scale(1.04); }
.aixr-empty { grid-column: 1 / -1; color: #8f8d85; font-size: 13px; padding: 10px 2px; line-height: 1.7; }
.aixr-styles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.aixr-modal { position: fixed; inset: 0; z-index: 450; background: rgba(4,4,6,.86); display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); }
.aixr-box { width: min(560px, 100%); max-height: 100%; overflow: auto; background: #121317; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 24px 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.7); position: relative; color: #f4f4f5; }
.aixr-box h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; line-height: 1.5; }
.aixr-x { position: absolute; top: 16px; inset-inline-end: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #3a3c46; background: #1a1b21; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.aixr-steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: #8f8d85; }
.aixr-steps .on { color: #fff; }
.aixr-steps b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: #3a3c46; color: #fff; font-size: 12px; margin-inline-end: 6px; }
.aixr-steps .on b { background: #fff; color: #07080a; }
.aixr-steps hr { width: 40px; border: 0; border-top: 1px solid #4a4c56; margin: 0; }
.aixr-slots { display: grid; grid-template-columns: 1fr 1px 120px; gap: 16px; align-items: stretch; margin-bottom: 18px; }
.aixr-slots .sep { background: rgba(255,255,255,.14); }
.aixr-slot { position: relative; border-radius: 16px; border: 1.5px dashed rgba(255,255,255,.25); background: #0b0c0e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #cfd0d3; cursor: pointer; overflow: hidden; font-size: 12px; text-align: center; padding: 0; font-family: inherit; }
.aixr-slot:hover { border-color: #fff; }
.aixr-slot.main { aspect-ratio: 1; }
.aixr-slot:not(.has) { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.85); transition: border-color .2s, transform .25s; }
.aixr-slot:not(.has).main { background: linear-gradient(180deg, rgba(8,9,12,0), rgba(8,9,12,.65)), url(/ai/ref-character.webp) center / cover no-repeat; }
.aixr-slot:not(.has).sm { background: linear-gradient(180deg, rgba(8,9,12,0), rgba(8,9,12,.65)), url(/ai/ref-object.webp) center / cover no-repeat; }
.aixr-slot:not(.has):hover { transform: scale(1.03); }
.aixr-side .aixr-slot:not(.has).sm:nth-child(2) { background: linear-gradient(180deg, rgba(8,9,12,0), rgba(8,9,12,.65)), url(/ai/ref-scene.webp) center / cover no-repeat; }
.aixr-slot .pl { background: rgba(8,9,12,.55); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.aixr-slot:not(.has)::after { content: ""; position: absolute; inset: 8px; pointer-events: none; background: linear-gradient(#fff,#fff) top left/14px 2px no-repeat, linear-gradient(#fff,#fff) top left/2px 14px no-repeat, linear-gradient(#fff,#fff) top right/14px 2px no-repeat, linear-gradient(#fff,#fff) top right/2px 14px no-repeat, linear-gradient(#fff,#fff) bottom left/14px 2px no-repeat, linear-gradient(#fff,#fff) bottom left/2px 14px no-repeat, linear-gradient(#fff,#fff) bottom right/14px 2px no-repeat, linear-gradient(#fff,#fff) bottom right/2px 14px no-repeat; opacity: .7; }
.aixr-slot.sm { aspect-ratio: 1; }
.aixr-slot .pl { font-size: 26px; line-height: 1; }
.aixr-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aixr-slot.has { border-style: solid; border-color: #3a3c46; }
.aixr-slot .rm { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(10,10,12,.8); color: #fff; cursor: pointer; line-height: 24px; padding: 0; font-size: 15px; }
.aixr-side { display: grid; gap: 12px; align-content: start; }
.aixr-f { margin-bottom: 14px; position: relative; }
.aixr-f .aiv-in, .aixr-f select.aiv-in { height: 44px; }
.aixr-f .cnt { position: absolute; inset-inline-end: 14px; top: 35px; font-size: 13px; font-weight: 700; color: #cfd0d3; }
.aixr-hintx { margin: 6px 2px 0; font-size: 12px; color: #8f8d85; line-height: 1.6; }
.aixr-foot { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.aixr-foot .aiv-btn { min-width: 150px; text-align: center; }
.aixr-prev { display: flex; gap: 10px; margin-bottom: 14px; }
.aixr-prev img { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; border: 1px solid #2c2e36; }
.aixr-info { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.7; margin-bottom: 14px; color: #dcdde0; }
.aixr-box textarea { display: block; width: 100%; box-sizing: border-box; background: rgba(255,255,255,.04); color: #f4f4f5; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; font: inherit; line-height: 1.65; resize: vertical; min-height: 120px !important; flex: none !important; font-size: 14px !important; padding: 12px 14px !important; }
.aixr-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.aixr-pick button { padding: 0; border: 1px solid rgba(255,255,255,.14); background: #0b0c0e; border-radius: 12px; overflow: hidden; cursor: pointer; color: #fff; font: inherit; font-size: 12px; text-align: start; }
.aixr-pick button:hover { border-color: #fff; }
.aixr-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.aixr-pick button.snd { padding: 10px 12px; line-height: 1.6; }
@media (max-width: 1280px) { .aixr-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }

.aix-lead { margin: 0 0 16px; font-size: 13.5px; color: #a9abb0; line-height: 1.75; }
html[dir="rtl"] .aix-lead { line-height: 2; }
.aix-count { display: block; margin-top: 6px; text-align: end; }
.aix-voices { display: flex; flex-direction: column; gap: 12px; }
.aix-tl { margin-top: 14px; }
.aix-tl-track { position: relative; direction: ltr; background: #0b0c0e; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 24px 10px 8px; touch-action: none; }
.aix-tl-ruler { position: absolute; top: 5px; left: 10px; right: 10px; height: 14px; font-size: 10.5px; color: #8f8d85; pointer-events: none; }
.aix-tl-ruler span { position: absolute; transform: translateX(-50%); line-height: 14px; }
.aix-tl-lane { position: relative; height: 28px; margin: 4px 0; background: rgba(255, 255, 255, .035); border-radius: 8px; }
.aix-tl-bar { position: absolute; top: 2px; bottom: 2px; box-sizing: border-box; min-width: 8px; border-radius: 6px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .75); color: #fff; font-size: 11.5px; line-height: 22px; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: grab; user-select: none; }
.aix-tl-bar:active { cursor: grabbing; background: rgba(255, 255, 255, .3); }
.aix-tl-bar i { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.aix-tl-bar i.l { left: 0; } .aix-tl-bar i.r { right: 0; }
.aix-tl-bar i::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 4px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.aix-tl-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.aix-tl-row { display: grid; grid-template-columns: 74px 74px minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.aix-tl-row .aiv-in { height: 40px; padding: 0 10px; }
.aix-tl-row .num { text-align: center; direction: ltr; }
.aix-tl-del { height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; font-size: 18px; cursor: pointer; }
.aix-tl-del:hover { border-color: #fff; }
.aix-tl-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 560px) { .aix-tl-row { grid-template-columns: 1fr 1fr 40px; } .aix-tl-row .tx { grid-column: 1 / -1; grid-row: 2; } .aix-tl-row .aix-tl-del { grid-column: 3; grid-row: 1; } }
.aix-cat-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.aix-cat-row select { max-width: 230px; }
.aix-cat-row input { flex: 1 1 180px; max-width: 320px; }
.aiv-sublib { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.aiv-sublib[hidden] { display: none; }
.aiv-wm-opts { display: flex; flex-direction: column; gap: 10px; }
.aiv-wm-opts[hidden] { display: none; }
.aix-vgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aix-vgroup > b { min-width: 86px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #8f8d85; font-weight: 700; line-height: 1.7; }
html[dir="rtl"] .aix-vgroup > b { letter-spacing: 0; text-transform: none; font-size: 13px; }
.aix-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.aix-list-head h3 { margin: 0 !important; }
.aiv-all { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.aiv-all .aix-list-head { margin-bottom: 18px; }
.aiv-all-more { justify-content: center; margin-top: 18px; }
.aiv-all .aiv-grid-v .aiv-job { align-self: start; }
.aix-filter button { min-height: 32px; font-size: 13px; padding: 0 14px; }
.aix-grid-i { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aix-grid-a { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.aix-cover { position: relative; background: #08090b; overflow: hidden; cursor: default; }
.aix-cover.img { cursor: pointer; }
.aix-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.aix-cover.img:hover img { transform: scale(1.03); }
.aix-wave { height: 96px; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 22px; background: linear-gradient(180deg, #0d0e11, #08090b); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.aix-wave i { display: block; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #fff, #7d8088); opacity: .85; }
.aix-wave.wait i { opacity: .25; animation: aivpulse 1.6s ease-in-out infinite; }
.aix-player { width: 100%; height: 40px; color-scheme: dark; display: block; }
.aix-sub { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px; background: rgba(255, 255, 255, .92); color: #07080a; line-height: 1.6; }
.aix-menu { position: relative; }
.aix-pop { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 0; z-index: 20; min-width: 210px; padding: 6px; border-radius: 14px; background: #14151a; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 50px rgba(0, 0, 0, .7); display: flex; flex-direction: column; }
.aix-pop[hidden] { display: none; }
.aix-pop button { border: 0; background: transparent; color: #eceae6; font: inherit; font-size: 13px; font-weight: 600; text-align: start; padding: 8px 12px; border-radius: 9px; cursor: pointer; line-height: 1.6; }
.aix-pop button:hover { background: #fff; color: #07080a; }
.aix-toast { position: fixed; bottom: 28px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 500; background: #fff; color: #07080a; font-size: 14px; font-weight: 700; padding: 10px 22px; border-radius: 999px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); line-height: 1.6; }
.aiv-lb img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; border-radius: 16px; display: block; margin: 0 auto; background: #000; }
@media (max-width: 1280px) { .aiv-tile { min-height: 160px; } .aiv-tile-t { font-size: 20px; } }

/* credi18n: AI Studio header never overlaps the title; pills drop to their own row when space runs out */
#ai-video-page .aiv-head { flex-wrap: wrap; align-items: flex-start; row-gap: 12px; }
#ai-video-page .aiv-head-t { flex: 1 1 auto; min-width: 0; }
@media (min-width: 600px) { #ai-video-page .aiv-head-t { flex-basis: 320px; } }
#ai-video-page .aiv-head-t h2 { white-space: normal; overflow-wrap: anywhere; }
#ai-video-page .aiv-head-end { flex: 0 1 auto; max-width: 100%; justify-content: flex-end; min-width: 0; }
#ai-video-page .aiv-head-end > * { white-space: nowrap; }
@media (max-width: 1100px) { #ai-video-page .aiv-head-end { flex: 1 1 100%; justify-content: flex-start; } }

/* otherrole: free-text profession under the profession picker */
.role-other-in { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 14px; }
.role-other-in[hidden] { display: none; }
