:root {
  --stone: #eef0ec; --stone-2: #e2e7e4; --paper: #fbfcfa;
  --ink: #102a30; --ink-2: #4a5f63; --ink-3: #7b8c8f;
  --teal: #0d6b66; --teal-2: #0a524e; --teal-soft: #d8ebe8;
  --saffron: #e3a13b; --saffron-soft: #f8ead2;
  --alert: #b4372f; --ok: #2f7d4f;
  --line: rgba(16, 42, 48, .12);
  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --panel-w: 440px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #dfe6e3; color: var(--ink); font: 15px/1.6 var(--body); }
body { -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }

#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#labels > * { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; }

.room-label { display: grid; justify-items: center; padding: 6px 12px 7px; background: rgba(251, 252, 250, .92); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px -10px rgba(16, 42, 48, .5); transition: background .2s; }
.room-label .ar { font: 600 14px/1.3 var(--display); }
.room-label .en { font-size: 11px; line-height: 1.3; color: var(--ink-3); letter-spacing: .02em; }
.room-label:hover { background: #fff; }
.partner-label { display: grid; justify-items: center; text-align: center; padding: 6px 12px; border-radius: var(--r-m); cursor: pointer;
  background: var(--saffron-soft); border: 1px solid rgba(227, 161, 59, .5); max-width: 220px; }
.partner-label b { font: 600 13px/1.35 var(--display); }
.partner-label small { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.item-pin { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 500 13px/1.3 var(--display); white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.item-pin::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(227, 161, 59, .3); }
.item-pin:hover { background: var(--teal); }

/* top bar */
.topbar { position: fixed; inset-inline: 16px; top: 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 9; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 6px 14px 6px 8px; background: rgba(251, 252, 250, .9);
  border-radius: 999px; border: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand span { display: grid; line-height: 1.2; }
.brand b { font: 700 18px/1.3 var(--display); }
.brand small { font-size: 11px; color: var(--ink-3); letter-spacing: .14em; }
.top-actions { display: flex; gap: 8px; }
.persona { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; background: rgba(251, 252, 250, .92); border-radius: 999px; border: 1px solid var(--line); backdrop-filter: blur(10px); }
.persona .who { display: grid; text-align: start; line-height: 1.3; }
.persona .who b { font: 600 13px/1.35 var(--display); }
.persona .who small { font-size: 11.5px; color: var(--ink-3); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 14px/1 var(--display); flex: none; }
.chip-btn { padding: 8px 14px; border-radius: 999px; background: rgba(251, 252, 250, .92); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.persona-menu { position: absolute; top: 56px; inset-inline-end: 52px; width: 280px; background: var(--paper); border-radius: var(--r-m); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(16, 42, 48, .45); padding: 8px; display: grid; gap: 2px; }
.persona-menu p { font-size: 12.5px; color: var(--ink-3); padding: 6px 10px 4px; }
.persona-menu button { display: flex; gap: 10px; align-items: center; text-align: start; padding: 8px 10px; border-radius: var(--r-s); }
.persona-menu button:hover, .persona-menu button[aria-checked='true'] { background: var(--teal-soft); }
.persona-menu button span { display: grid; line-height: 1.35; }
.persona-menu button small { color: var(--ink-3); font-size: 12px; }
.persona-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.persona-menu .reset { color: var(--alert); font-size: 13px; }

/* room dock */
.dock { position: fixed; bottom: calc(16px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px;
  background: rgba(16, 42, 48, .92); border-radius: 999px; z-index: 4; max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.dock button { color: #dfe9e7; padding: 8px 14px; border-radius: 999px; font: 500 13.5px/1.3 var(--display); white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.dock button svg { width: 17px; height: 17px; flex: none; }
.dock button:hover { background: rgba(255, 255, 255, .08); }
.dock button[aria-current='true'] { background: var(--paper); color: var(--ink); }
.dock button.home { color: var(--saffron); }

/* panel */
.panel { position: fixed; top: 74px; bottom: calc(80px + var(--safe-b)); inset-inline-end: 16px; width: var(--panel-w); z-index: 6;
  background: var(--paper); border-radius: var(--r-l); box-shadow: 0 30px 70px -30px rgba(16, 42, 48, .55), 0 0 0 1px var(--line);
  display: flex; flex-direction: column; overflow: hidden; animation: panelIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateX(-18px); } }
.panel-grip { display: none; }
.panel-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 2; background: var(--stone); }
.panel-close:hover { background: var(--stone-2); }
.panel-body { overflow-y: auto; padding: 22px 22px 28px; overscroll-behavior: contain; }
body.journey-on .panel { bottom: calc(150px + var(--safe-b)); }

.kicker { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.p-title { font-size: 23px; margin-bottom: 8px; padding-inline-end: 40px; }
.p-lead { color: var(--ink-2); margin-bottom: 18px; }
.section { margin-top: 22px; }
.section > h3 { font-size: 15.5px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section > h3 small { font: 400 12.5px var(--body); color: var(--ink-3); }
.muted { color: var(--ink-3); font-size: 13px; }

.primary, .ghost, .soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 600 14px/1.3 var(--display); }
.primary { background: var(--teal); color: #fff; }
.primary:hover { background: var(--teal-2); }
.primary:disabled { background: var(--ink-3); cursor: default; }
.ghost { border: 1.5px solid var(--line); background: var(--paper); }
.ghost:hover { border-color: var(--teal); }
.soft { background: var(--teal-soft); color: var(--teal-2); }
.big { padding: 14px 26px; font-size: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 10px; }

/* list rows: people, services, requests */
.line-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .grow { flex: 1; min-width: 0; }
.line-item b { font: 600 14.5px/1.4 var(--display); display: block; }
.line-item small { color: var(--ink-3); font-size: 12.5px; display: block; line-height: 1.5; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--stone); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: #dcefe3; color: var(--ok); }
.tag.new { background: var(--saffron-soft); color: #8a5a10; }
.tag.prog { background: var(--teal-soft); color: var(--teal-2); }
.tag.rec { background: var(--saffron-soft); color: #8a5a10; }

/* object card */
.obj-hero { margin: -22px -22px 16px; background: radial-gradient(120% 90% at 50% 100%, #dbe9e6 0%, var(--stone) 60%); display: grid; place-items: center; min-height: 210px; position: relative; }
.obj-hero img { max-height: 220px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(16, 42, 48, .25)); }
.wow { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-m); background: var(--saffron-soft); display: flex; gap: 10px; }
.wow svg { flex: none; color: #b37515; margin-top: 2px; }

/* services inside a room */
.svc { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-m); background: var(--stone); text-align: start; width: 100%; transition: background .2s; }
.svc:hover { background: var(--teal-soft); }
.svc .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--teal); flex: none; }
.svc b { font: 600 15px/1.4 var(--display); display: block; }
.svc span { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; display: block; }

/* booking */
.mentor-pick { display: grid; gap: 8px; }
.mentor-pick label { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); border: 1.5px solid var(--line); cursor: pointer; }
.mentor-pick input { position: absolute; opacity: 0; }
.mentor-pick .grow { flex: 1; min-width: 0; }
.mentor-pick b { font: 600 14.5px/1.4 var(--display); display: block; }
.mentor-pick small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.mentor-pick label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.mentor-pick label:has(input:focus-visible) { outline: 3px solid var(--saffron); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.days button { padding: 8px 0; border-radius: var(--r-s); background: var(--stone); display: grid; line-height: 1.3; }
.days button small { font-size: 11.5px; color: var(--ink-3); }
.days button b { font: 600 16px/1.3 var(--display); }
.days button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.days button[aria-pressed='true'] small { color: #b9c9cb; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.slots button { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; }
.slots button[aria-pressed='true'] { border-color: var(--teal); background: var(--teal); color: #fff; }
.slots button:disabled { opacity: .4; text-decoration: line-through; cursor: default; }

/* video room */
.call { background: #0d1f23; border-radius: var(--r-l); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.tile { aspect-ratio: 4/3; border-radius: var(--r-m); background: #1a3237; display: grid; place-items: center; position: relative; overflow: hidden; color: #fff; }
.tile video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.tile .avatar { width: 64px; height: 64px; font-size: 24px; }
.tile .name { position: absolute; bottom: 6px; inset-inline-start: 8px; font-size: 12px; background: rgba(0, 0, 0, .45); padding: 1px 8px; border-radius: 999px; }
.tile.speaking { box-shadow: inset 0 0 0 3px var(--saffron); }
.call-bar { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding-top: 4px; }
.call-bar button { width: 42px; height: 42px; border-radius: 50%; background: #23434a; color: #fff; display: grid; place-items: center; }
.call-bar button.end { background: var(--alert); width: auto; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; }
textarea, input[type=text], select { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; background: #fff; color: var(--ink); resize: vertical; }
textarea:focus, input:focus, select:focus { border-color: var(--teal); outline: none; }

/* experiment */
.exp { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.beaker { width: 150px; height: 190px; }
.beaker .liquid { transition: fill 1.2s ease; }
.drop { animation: drip .7s ease-in forwards; }
@keyframes drip { from { transform: translateY(-40px); opacity: 1; } to { transform: translateY(70px); opacity: 0; } }
.ph-scale { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #d0234d, #b4359a 25%, #6b3fa0 45%, #3a5bc7 60%, #2f9e6e 78%, #c8c53a); position: relative; margin: 26px 0 6px; direction: ltr; }
.ph-needle { position: absolute; top: -26px; transform: translateX(-50%); transition: left 1.2s cubic-bezier(.3, .9, .3, 1); font: 700 13px var(--display); background: var(--ink); color: #fff; padding: 1px 7px; border-radius: 6px; }
.ph-needle::after { content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.ph-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.ingredients { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ingredients button { padding: 10px; border-radius: var(--r-m); background: var(--stone); display: flex; align-items: center; gap: 8px; text-align: start; font-weight: 500; font-size: 14px; }
.ingredients button:hover { background: var(--teal-soft); }
.ingredients i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.verdict { margin-top: 14px; padding: 14px; border-radius: var(--r-m); background: var(--stone); }
.verdict b { font: 600 17px/1.4 var(--display); }

/* project workspace */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 14px 0 6px; }
.stepper div { text-align: center; font-size: 12px; color: var(--ink-3); }
.stepper div::before { content: ''; display: block; height: 6px; border-radius: 999px; background: var(--stone-2); margin-bottom: 6px; }
.stepper .done::before { background: var(--teal); }
.stepper .now::before { background: linear-gradient(90deg, var(--saffron), var(--teal)); }
.stepper .now { color: var(--ink); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 16px -22px 0; padding: 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 12px; font: 500 14px var(--display); color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--ink); border-color: var(--teal); }
.check { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.check:has(input:checked) span { color: var(--ink-3); text-decoration: line-through; }
.note { padding: 12px 14px; border-radius: var(--r-m); background: var(--stone); margin-bottom: 8px; }
.note.rec { background: var(--saffron-soft); }
.note header { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.note header .avatar { width: 26px; height: 26px; font-size: 11px; }
.note header b { font-family: var(--display); font-weight: 600; }
.drop-zone { display: grid; place-items: center; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--r-m); color: var(--ink-3); cursor: pointer; font-size: 14px; text-align: center; }
.drop-zone:hover { border-color: var(--teal); color: var(--teal); }

/* assistant */
.chat { display: grid; gap: 10px; }
.msg { scroll-margin-top: 8px; max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.65; }
.msg.me { background: var(--teal); color: #fff; justify-self: start; border-end-start-radius: 4px; }
.msg.bot { background: var(--stone); justify-self: end; border-end-end-radius: 4px; }
.msg.bot .typing { display: inline-flex; gap: 4px; }
.msg.bot .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.msg.bot .typing i:nth-child(2) { animation-delay: .15s; } .msg.bot .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest button { padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-size: 13.5px; text-align: start; }
.suggest button:hover { border-color: var(--teal); }
.chat-form { display: flex; gap: 8px; margin-top: 12px; position: sticky; bottom: -28px; background: var(--paper); padding: 10px 0 0; }
.oversight { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; padding: 9px 12px; border-radius: var(--r-s); background: var(--saffron-soft); }

/* scores + admin */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 90px 1fr 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar i { display: block; height: 10px; border-radius: 999px; background: var(--stone-2); overflow: hidden; }
.bar i::after { content: ''; display: block; height: 100%; width: var(--v); background: var(--teal); border-radius: inherit; }
.bar b { font-family: var(--display); text-align: end; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-m); overflow: hidden; }
.kpis div { background: var(--paper); padding: 14px; }
.kpis b { font: 600 28px/1.2 var(--display); display: block; }
.kpis small { color: var(--ink-3); font-size: 12.5px; }
.kpis em { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.funnel { display: grid; gap: 6px; }
.funnel div { display: grid; grid-template-columns: 80px 1fr 24px; gap: 10px; align-items: center; font-size: 13.5px; }
.funnel span.f { height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--teal), #3c958f); min-width: 6px; }
.feed li { list-style: none; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; display: flex; gap: 10px; }
.feed { padding: 0; margin: 0; }
.feed time { color: var(--ink-3); font-size: 12px; white-space: nowrap; margin-inline-start: auto; }
.gal { display: grid; gap: 12px; }
.gal article { border-radius: var(--r-m); overflow: hidden; background: var(--stone); }
.gal .cover { height: 90px; display: grid; place-items: center; font: 600 34px var(--display); color: rgba(255, 255, 255, .9); }
.gal .txt { padding: 12px 14px; }
.gal b { font: 600 15px/1.4 var(--display); display: block; }
.slider { display: grid; grid-template-columns: 90px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 6px; }
.slider input { accent-color: var(--teal); width: 100%; }
.remote { padding: 14px; border-radius: var(--r-m); border: 1.5px dashed rgba(13, 107, 102, .4); }
.remote ol { margin: 8px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 13.5px; }

/* journey */
.journey { position: fixed; inset-inline: 0; margin-inline: auto; bottom: calc(76px + var(--safe-b)); width: min(720px, calc(100vw - 32px)); z-index: 7;
  background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 12px 14px 12px 12px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); }
.journey-track { display: flex; gap: 4px; margin-bottom: 10px; }
.journey-track i { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.journey-track i.on { background: var(--saffron); }
.journey-row { display: flex; gap: 14px; align-items: center; }
.journey-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.journey-text b { font: 600 16px/1.4 var(--display); }
.journey-text span { color: #c4d3d5; font-size: 14px; line-height: 1.55; }
.journey-nav { display: flex; gap: 6px; flex: none; }
.journey .ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.journey .primary { background: var(--saffron); color: var(--ink); }
.journey .primary:hover { background: #f0b555; }
.pulse-target { animation: pulseT 1.4s ease-in-out infinite; }
@keyframes pulseT { 50% { box-shadow: 0 0 0 6px rgba(227, 161, 59, .45); } }

.ask { position: fixed; inset-inline-start: 16px; bottom: calc(16px + var(--safe-b)); z-index: 5; display: flex; gap: 10px; align-items: center;
  padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 600 14px var(--display);
  box-shadow: 0 14px 30px -16px rgba(16, 42, 48, .6); }
.ask-dot { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--teal), var(--saffron), var(--teal)); animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* intro */
.intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(80% 70% at 50% 40%, rgba(238, 240, 236, .78), rgba(223, 230, 227, .95)); transition: opacity .8s, visibility .8s; }
.intro.gone { opacity: 0; visibility: hidden; }
.intro-inner { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.intro-logo { border-radius: 20px; box-shadow: 0 20px 40px -18px rgba(13, 107, 102, .7); }
.intro h1 { font-size: clamp(54px, 12vw, 96px); font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.intro-lead { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 46ch; }
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.intro-hint { font-size: 13px; color: var(--ink-3); }

.toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 30; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; display: flex; gap: 8px; align-items: center; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); animation: toastIn .3s ease; max-width: calc(100vw - 32px); }
.toast::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } }

html[lang=en] { direction: ltr; }
html[lang=en] .room-label .ar, html[lang=en] .partner-label .ar { display: none; }
html[lang=ar] .partner-label .en { display: none; }
html[lang=en] .room-label .en { display: block; font: 600 13px/1.3 var(--display); color: var(--ink); }

/* ---------- live rooms ---------- */
body.live-on .room-label, body.live-on .partner-label { display: none !important; }
.link-btn { flex-basis: 100%; padding: 8px; font: 600 14px/1.4 var(--display); color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.live-name { display: grid; gap: 6px; font: 600 14px/1.4 var(--display); margin-top: 4px; }
.live-pick { border-radius: var(--r-m); padding: 10px 10px !important; border: 1.5px solid transparent !important; margin-bottom: 4px; }
.live-pick[aria-pressed='true'] { border-color: var(--teal) !important; background: var(--teal-soft); }
.live-pick:disabled { opacity: .55; }
.live-pick .ic { color: var(--teal); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #d94a3a; box-shadow: 0 0 0 0 rgba(217, 74, 58, .5); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(217, 74, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 74, 58, 0); } }
.live-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.live-controls button { padding: 9px 15px; }
.live-hint { margin-top: 8px; }
.live-person.speaking .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--teal); }
.live-tag { position: absolute; left: 0; top: 0; pointer-events: none; padding: 3px 10px; border-radius: 999px; background: rgba(251, 252, 250, .94); border: 1px solid var(--line);
  font: 600 13px/1.35 var(--display); white-space: nowrap; color: var(--ink); max-width: 150px; overflow: hidden; text-overflow: ellipsis; will-change: transform; }
.live-tag.me { background: var(--teal); color: #fff; border-color: transparent; }
.live-tag.speaking { box-shadow: 0 0 0 3px var(--teal-soft), 0 0 0 4px var(--teal); }
.live-big { position: fixed; inset: 0; z-index: 30; background: rgba(10, 30, 34, .94); display: grid; grid-template-rows: 1fr auto; gap: 14px; padding: 16px 16px calc(16px + var(--safe-b)); place-items: center; }
.live-big video { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-m); background: #000; }

@media (max-width: 760px) {
  :root { --panel-w: 100vw; }
  body { font-size: 15px; }
  .topbar { top: 10px; inset-inline: 10px; }
  .brand { padding: 4px 10px 4px 6px; }
  .brand small { display: none; }
  .persona .who small { display: none; }
  .persona { padding: 4px 4px 4px 10px; }
  .persona .who b { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .persona-menu { inset-inline-end: 0; top: 52px; }
  .panel { inset: auto 0 0 0; width: 100%; top: auto; height: min(72vh, 640px); border-radius: var(--r-l) var(--r-l) 0 0; animation: sheetIn .35s cubic-bezier(.2, .8, .2, 1); }
  .panel.min { height: 132px; }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
  .panel-grip { display: block; width: 100%; height: 46px; flex: none; cursor: grab; position: relative; }
  .panel-grip::after { content: ''; position: absolute; left: 50%; top: 9px; width: 42px; height: 5px; border-radius: 99px; background: var(--stone-2); transform: translateX(-50%); }
  .panel-body { padding: 0 18px calc(24px + var(--safe-b)); }
  .obj-hero { margin: -4px -18px 14px; min-height: 170px; }
  .tabs { margin: 14px -18px 0; padding: 0 12px; -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
  html[dir=ltr] .tabs { -webkit-mask-image: linear-gradient(to left, transparent, #000 36px); mask-image: linear-gradient(to left, transparent, #000 36px); }
  .panel-close { top: 5px; }
  .tabs button { padding: 10px 7px; font-size: 13px; }
  body.panel-open .dock, body.panel-open .ask { display: none; }
  body.journey-on .panel { bottom: 0; height: min(54vh, 540px); }
  body.journey-on.panel-open .journey { bottom: calc(min(54vh, 540px) + 8px); padding: 8px 10px; }
  body.journey-on.panel-open .journey-track { margin-bottom: 6px; }
  body.journey-on.panel-open .journey-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.journey-on.panel-open .journey-nav { flex-direction: row-reverse; }
  body.journey-on.panel-open .journey-row { align-items: center; }
  html[lang=ar] .room-label .en { display: none; }
  .room-label { padding: 4px 10px 5px; }
  .partner-label small { display: none; }
  .journey { bottom: calc(68px + var(--safe-b)); padding: 10px; }
  .journey-text span { font-size: 13px; }
  .journey-row { align-items: flex-end; }
  .journey-nav { flex-direction: column-reverse; }
  .journey .ghost { padding: 6px 12px; font-size: 13px; }
  .dock { bottom: calc(10px + var(--safe-b)); }
  .ask { bottom: calc(68px + var(--safe-b)); padding: 10px 16px 10px 12px; min-height: 44px; font-size: 13.5px; }
  .dock button { padding: 0; width: 44px; height: 40px; justify-content: center; flex: none; }
  .dock button span { display: none; }
  .dock button[aria-current='true'] { width: auto; padding: 0 12px; }
  .dock button[aria-current='true'] span { display: inline; }
  .panel.peek, body.journey-on .panel.peek { height: 36vh; }
  body:not(.started) #labels { visibility: hidden; }
  .intro { background: rgba(238, 240, 236, .97); }
  .item-pin { font-size: 12px; padding: 4px 9px 4px 10px; gap: 5px; }
  .item-pin::before { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(227, 161, 59, .3); }
  .room-label .ar { font-size: 13px; }
  .journey-text b { font-size: 14px; }
  .journey-text span { font-size: 12.5px; line-height: 1.5; }
  .journey .primary, .journey .ghost { padding: 7px 14px; font-size: 13px; }
  .toast { top: 64px; font-size: 13px; padding: 8px 14px; }
  .topbar { gap: 6px; }
  .p-title { font-size: 20px; }
  .line-item { gap: 10px; }
  body.journey-on.panel-open .panel.peek ~ .journey { bottom: calc(36vh + 8px); }
  body.journey-on .ask { display: none; }
  .exp { grid-template-columns: 110px 1fr; }
  .beaker { width: 110px; height: 140px; }
  .intro-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
