/* Onedotworld HQ: Arabic (RTL) layout + language panel + AI Project Manager + audit log (18 Nov 2026) */
html.ar body, html.ar button, html.ar input, html.ar select, html.ar textarea { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }
html.ar { --body: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }
html.ar h1, html.ar h2, html.ar h3, html.ar h4 { letter-spacing: 0; }
/* the office floor keeps its geometry (absolute % positions); text inside follows Arabic direction */
html.ar .floor, html.ar .ticker { direction: ltr; }
html.ar .floor .rlabel, html.ar .floor .tag, html.ar .floor .bub, html.ar .ceo-name, html.ar .ticker-in span { direction: rtl; unicode-bidi: plaintext; }
html.ar .hall .rug { letter-spacing: 0; }
html.ar .bar-tools { margin-left: 0; margin-right: auto; }
html.ar .ask-row .btn, html.ar .coach-top span, html.ar .tipcard button, html.ar .wiz-row .btn:last-child { margin-left: 0; margin-right: auto; }
html.ar .room .rcount { margin-left: 0; margin-right: auto; }
html.ar .dlg-row .left { margin-right: 0; margin-left: auto; }
html.ar .badge { margin-left: 0; margin-right: 3px; }
html.ar .chips button, html.ar .reports li button, html.ar .coach-steps button, html.ar .w-types button, html.ar .ocard.ceo { text-align: right; }
html.ar .feed li { border-left: 0; border-right: 4px solid var(--line); }
html.ar .feed li time { margin-right: 0; margin-left: 6px; }
html.ar .task { border-left: 0; border-right: 4px solid; }
html.ar .coach { border-left: 1px solid var(--line); border-right: 4px solid var(--gold); }
html.ar .cro-card.today { border-left: 1px solid var(--line); border-right: 4px solid var(--gold); }
html.ar .cro-card.today ol, html.ar .cro-ideas, html.ar .rd-list, html.ar .trust ul { padding-left: 0; padding-right: 20px; }
html.ar .tour-name { border-left: 0; padding-left: 0; border-right: 6px solid var(--gold); padding-right: 10px; }
html.ar .cro-draft em.ok, html.ar .tool .lock, html.ar .post .tagsample { margin-left: 0; margin-right: 4px; }
html.ar pre { direction: rtl; unicode-bidi: plaintext; text-align: right; }
html.ar input[type=email], html.ar input[type=url], html.ar input[type=tel] { direction: ltr; text-align: right; }

/* language panel */
.lang-wrap { position: relative; display: inline-flex; gap: 6px; align-items: center; }
.lang-btn { font-weight: 700; white-space: nowrap; }
.lp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg2); border-radius: 12px; padding: 4px; }
.lp-seg button { font: 700 .86rem var(--body); border: 0; border-radius: 9px; padding: 7px 8px; background: transparent; color: var(--ink); cursor: pointer; }
.lp-seg button.on { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.lp-seg button:first-child { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif; }
.lang-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: min(300px, calc(100vw - 32px)); background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.15)); padding: 12px; display: grid; gap: 10px; text-align: start; }
html.ar .lang-pop { left: auto; right: 0; }
.lang-pop[hidden] { display: none; }
.lang-pop label { display: grid; gap: 4px; font: 600 .8rem var(--body); }
.lang-pop select { font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.lp-note { margin: 0; font-size: .74rem; color: var(--ink2); }
.lp-trust { font: 700 .8rem var(--body); color: var(--brand); text-decoration: none; }
@media (max-width: 640px) {
  .bar-tools { flex-wrap: wrap; }
}

/* AI Project Manager */
.pm-av .tag { white-space: nowrap; }
.ocard.pm { border-color: var(--brand); cursor: pointer; }
.pm-proj { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; }
.pm-proj h3 { margin: 0; font-size: .96rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pm-pill { font: 700 .68rem var(--body); border-radius: 99px; padding: 2px 8px; background: var(--bg2); color: var(--ink2); }
.pm-pill.ok { background: rgba(46, 160, 67, .14); color: #1f7a35; } .pm-pill.soon { background: rgba(255, 138, 61, .18); color: #b5520f; } .pm-pill.late { background: rgba(214, 69, 65, .15); color: #b3261e; } .pm-pill.done { background: rgba(10, 127, 191, .14); color: var(--brand); }
.pm-ms { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pm-ms li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: .84rem; }
.pm-ms li.done span { text-decoration: line-through; color: var(--ink2); }
.pm-ms li small { display: block; color: var(--ink2); font-size: .72rem; }
.pm-ms li small.late { color: #b3261e; font-weight: 700; } .pm-ms li small.soon { color: #b5520f; font-weight: 700; }
.pm-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: end; margin: 0 0 12px; }
.pm-form label { display: grid; gap: 4px; font: 600 .78rem var(--body); }
.pm-form input { font: inherit; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; }
@media (max-width: 560px) { .pm-form { grid-template-columns: 1fr 1fr; } .pm-form .btn { grid-column: 1 / -1; } }
.pm-free { font-size: .76rem; color: var(--brand); font-weight: 700; }
.audit-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; font-size: .78rem; color: var(--ink2); }
/* voice (18 Nov 2026): "Talk to your team" label next to the mic + one-time tip */
.mic-label { background: none; border: 0; padding: 4px 2px; font: 700 .82rem var(--body); color: var(--brand); cursor: pointer; white-space: nowrap; }
.mic-label:hover { text-decoration: underline; }
.mic-label[hidden] { display: none; }
.ask-row { flex-wrap: wrap; }
.voice-tip b { color: var(--ink); }
