/* static/phone/ybar.css - v818 THE PHONE'S BOTTOM BAR (owner, 2026-11-01: "yes build it for phone"; drawn /artifact/4TNwH4rtqcfydqiqwTuSZL).
   A phone (<= 768 px) on Home only: OHM's floating bar at the foot, nothing at the top. Desktop untouched (every rule hangs off html.yb-on,
   which ybar.js sets on a phone's Home alone). */

/* Home: no top bar, no Ask box at the foot (+ starts a chat), no asks under the greeting (they are in the Bell) */
html.yb-on #home-view .home-brand,
html.yb-on #home-view .yhs-bar,
html.yb-on #home-view #yhs-asks { display: none !important; }
html.yb-on #home-view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
html.yb-on #home-view .yhs-hello { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.yhs-quip { margin: 4px 0 0; font-size: 15px; color: #5B6470; }

/* v826 THE BAR, WHATSAPP'S WAY (owner, 2026-11-02: "make the bottom navigation bar of yantrai home like that of whatsapp ... look and feel") -
   full width on white with a hairline above, five tabs each with its word under the icon, the open one's icon in a soft pill (our light
   blue where WhatsApp has light green) and its word bold; counts in WhatsApp's green. Was OHM's floating frosted pill (v818). */
#yb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10100; display: flex; justify-content: space-around; gap: 0;
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #E9EDEF; }
#yb-bar[hidden] { display: none; }
#yb-bar button { position: relative; flex: 1; min-width: 0; height: auto; min-height: 0; border: 0; border-radius: 0; background: none; color: #111B21;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#yb-bar .ic { position: relative; width: 58px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .15s ease; }
#yb-bar button.on .ic { background: rgba(155, 204, 242, .55); }
#yb-bar .l { font: 500 12.5px/1.2 Inter, system-ui, sans-serif; color: #111B21; white-space: nowrap; }
#yb-bar button.on .l { font-weight: 700; }
#yb-bar button:focus-visible { outline: 2px solid #1F4E9C; outline-offset: 2px; }
#yb-bar .b { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #25D366; color: #fff;
  font: 700 11px/18px Inter, system-ui, sans-serif; text-align: center; border: 2px solid #fff; }
#yb-bar .b[hidden] { display: none; }
/* v829 (owner, 2026-11-02: "share menu is hiding behind the bottom bar") - the Invite sheet and its dim sit above the bar */
#hb-share-dim { z-index: 100002; }   /* v955 - the invite window's dim: above a business window (#mgw-panel, 100001); a Manager dialog (.gm-veil, 100002, opened after) stays above it */
#hb-share-menu.sheet, #hb-share-menu.drop, #hb-share-caret { z-index: 10140; }   /* v836 - it drops from its button now (_hbShareMenu) */
#hb-share-menu.hb-iw { z-index: 100002; }   /* v954 - the invite window above its dim (drawn after it); v955 - and above a business window it was opened from */

/* v827 - New chat on the chats list, bottom right above the bar (WhatsApp's), light blue with black ink */
#yb-fab { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 10105; width: 56px; height: 56px; min-height: 0; padding: 0;
  border: 0; border-radius: 16px; background: #9BCCF2; color: #111827; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(15, 23, 42, .22); cursor: pointer; }
#yb-fab svg { width: 26px; height: 26px; }
#yb-fab:focus-visible { outline: 2px solid #1F4E9C; outline-offset: 2px; }
html.kb-open #yb-fab { display: none; }

/* v819 THE CHAT FIRST (owner, 2026-11-01: "1A 2A 3A 4A 5A 6A, build it" on /artifact/RxS3d1JayGMXNXTHMMEZJu) - the bar stands on the chat too,
   under its composer (hidden while the keyboard is up); the head shows who the chat is with, a face and "typing…" (2A); its pen goes, + in the
   bar starts a chat (5A); Invite and the Bell sit at the top right of the chat and of Agents (#yb-top, 5A). */
html.yb-ask .ask-foot { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
html.yb-ask.kb-open .ask-foot { padding-bottom: 12px; }
html.yb-on.kb-open #yb-bar { display: none; }
html.yb-ask .ask-head { gap: 6px; padding-right: 6px; }
html.yb-ask .ask-head .ask-newm { display: none; }
html.yb-ask .ask-head .ask-av { display: grid; width: 34px; height: 34px; }
html.yb-ask .ask-head .ask-av .ask-mark { width: 34px; height: 34px; }
html.yb-ask .ask-who { justify-items: start; min-width: 0; overflow: hidden; }
html.yb-ask .ask-who > b { display: block; font-size: 15.5px; font-weight: 600; color: #0B1F3A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html.yb-ask .ask-who > span { justify-content: flex-start; max-width: 100%; }
html.yb-ask .ask-who .pp-hn { display: none; }
html.yb-ask .ask-head .ask-book { height: 20px; max-width: 100%; font-size: 12.5px; font-weight: 500; color: #5B6470; }
html.yb-ask .ask-who.typing > span > * { display: none; }
html.yb-ask .ask-who.typing > span::before { content: "typing…"; font-size: 12.5px; color: #5B6470; }

#yb-top { display: flex; align-items: center; gap: 4px; flex: none; }
#yb-top.on-page { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 50; }
#yb-top .inv { height: 40px; min-height: 0; padding: 0 14px 0 11px;   /* v861 (survey step 4) - 40 px to the thumb (was 34) */ border: 0; border-radius: 999px; background: #9BCCF2; color: #111827;
  font: 600 13.5px Inter, system-ui, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
#yb-top .inv svg { width: 17px; height: 17px; }
#yb-top .bel { position: relative; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #1E293B;
  display: grid; place-items: center; cursor: pointer; }
#yb-top button:focus-visible { outline: 2px solid #1F4E9C; outline-offset: 2px; }
#yb-top .b { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #D92D20; color: #fff;
  font: 700 10.5px/17px Inter, system-ui, sans-serif; text-align: center; border: 2px solid #fff; }
#yb-top .b[hidden] { display: none; }
html.yb-home #home-view .yhs-hello h1 { padding-right: 140px; }
@media (max-width: 370px) { #yb-top.in-head .inv { padding: 0 10px; } #yb-top.in-head .inv span { display: none; } }

/* v822 Help at the right of a phone's slim line on every platform page (step 4) */
#m-skill-bar .msb-help { margin-left: auto; flex: none; height: 30px; min-height: 0; padding: 0 12px; border: 0; border-radius: 999px; background: #9BCCF2;
  color: #111827; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }

/* Chats: the pane (#cf-chats) as a page; its All | Agents | People toggle under the thumb, as the old switch looked (v803) */
html.yb-chats #cf-chats { left: 0; right: 0; width: 100%; animation: none; }
html.yb-chats #cf-dback { display: none; }
html.yb-chats #cf-chats .cf-top, html.yb-chats #cf-chats .cf-homer, html.yb-chats #cf-chats #cf-new, html.yb-chats #cf-chats #cf-find,
html.yb-chats #cf-chats .cf-ft, html.yb-chats #cf-chats .cf-vab { display: none !important; }
/* v824 (owner, 2026-11-02: "there should be a chat search bar at the top like in whatsapp") - Chats, then search, then All | Agents | People */
html.yb-chats #cf-chats .cf-sec { order: 1; } html.yb-chats #cf-chats .cf-findbox { order: 2; } html.yb-chats #cf-chats .cf-chips { order: 3; }
html.yb-chats #cf-chats .cf-list { order: 4; }
html.yb-chats #cf-chats .cf-findbox { margin: 0 16px 10px; }
html.yb-chats #cf-chats .cf-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 10px; }
html.yb-chats #cf-chats .cf-findbox input { height: 44px; padding: 0 16px 0 42px; border: 0; border-radius: 22px; background: #F0F2F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235B6470' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center;
  font: 400 16px Inter, system-ui, sans-serif; color: #111827; box-shadow: none; }
html.yb-chats #cf-chats .cf-findbox input:focus { box-shadow: 0 0 0 2px #9BCCF2; }
html.yb-chats #cf-chats .cf-sec { padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 10px; font: 700 22px Inter, system-ui, sans-serif; color: #0B1F3A;
  letter-spacing: 0; text-transform: none; }
html.yb-chats #cf-chats .cf-list { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
/* v823 (owner, 2026-11-02: "the all, agents and people should move above like in whatsapp") - under "Chats", at the top */
/* v862 (owner, 2026-11-02: "make it look like whatsapp, rounded button is ok like whatsapp") - three separate round pills on the page, the chosen one filled
   light blue with black ink (WhatsApp's light green), the others light grey; 40 px tall for the thumb */
html.yb-chats #cf-chats .cf-chips { position: static; align-self: flex-start; width: max-content; margin: 0 16px 10px; gap: 8px; padding: 0; border-radius: 0; background: none; box-shadow: none; touch-action: manipulation; }
html.yb-chats .cf-chip { min-height: 40px; border-radius: 999px; padding: 8px 16px; background: #F0F2F5; color: #54656F; font: 500 14.5px Inter, system-ui, sans-serif; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.yb-chats .cf-chip.on { background: #9BCCF2; color: #111827; font-weight: 600; box-shadow: none; }
html.yb-chats .cf-chip:active { filter: brightness(.95); }
html.yb-chats #cf-chats .cf-chips-old { position: static; align-self: flex-start; width: max-content; margin: 0 16px 10px; gap: 2px; padding: 4px; border-radius: 14px;
  background: #ECECEC; box-shadow: none; }
html.yb-chats #cf-chats .cf-ntb { display: none !important; }
html.yb-chats .cf-chip { border: 0; }

/* v825 (owner, 2026-11-02: "each chat vertical size and look and feel should be like whatsapp, indian customers are accustomed to whatsapp so
   use whatsapp as fallback") - a phone's chat rows as WhatsApp draws them: 72 px tall, a 50 px round face, the name then the last line, the
   time top right (green when unread), the green unread count or the pin under it; no "Pinned" heading - the pin says it */
html.yb-chats #cf-chats .cf-row.pp2 { display: flex; align-items: center; gap: 14px; width: 100%; height: auto; min-height: 72px; margin: 0; padding: 10px 16px;
  border-radius: 0; background: none; box-shadow: none; }
html.yb-chats #cf-chats .cf-row.pp2:active { background: #F0F2F5; }
html.yb-chats #cf-chats .cf-row.pp2 .av { width: 50px; height: 50px; font-size: 17px; }
html.yb-chats #cf-chats .cf-row.pp2 .av.app > *, html.yb-chats #cf-chats .cf-row.pp2 .av.ai > * { width: 50px; height: 50px; }
html.yb-chats #cf-chats .cf-row.pp2 .av.app > * { border-radius: 50%; }
html.yb-chats #cf-chats .cf-row.pp2 .tx { gap: 3px; line-height: 1.3; }
html.yb-chats #cf-chats .cf-row.pp2 .tx b { font-size: 16.5px; font-weight: 600; color: #111B21; }
html.yb-chats #cf-chats .cf-row.pp2 .tx small { font-size: 14.5px; color: #667781; }
html.yb-chats #cf-chats .cf-row.pp2 .rt { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 6px; padding-top: 4px; }
html.yb-chats #cf-chats .cf-row.pp2 time { font-size: 12.5px; color: #667781; }
html.yb-chats #cf-chats .cf-row.pp2 time.new { color: #1DAA61; font-weight: 600; }
html.yb-chats #cf-chats .cf-row.pp2 .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #25D366; color: #fff; font: 700 12px/22px Inter, system-ui, sans-serif; }
html.yb-chats #cf-chats .cf-row.pp2 .rt.pin { justify-content: flex-end; padding: 0 0 6px; }
html.yb-chats #cf-chats .cf-pinh, html.yb-chats #cf-chats .cf-pinsep { display: none; }

/* Bell: a page of its own */
#yb-page { position: fixed; inset: 0; z-index: 10090; background: #fff; overflow: auto; font-family: Inter, system-ui, sans-serif;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(110px + env(safe-area-inset-bottom, 0px)); }
#yb-page .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
#yb-page .hd b { font-size: 22px; font-weight: 700; color: #0B1F3A; }
#yb-page .hd button { border: 0; background: none; color: #1F4E9C; font: 600 13.5px Inter, system-ui, sans-serif; min-height: 36px; padding: 6px 4px; }   /* v861 - 36 px (was 28) */
#yb-page .gp { margin: 14px 2px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8A94A6; }
#yb-page .gp.r { color: #B42318; }
#yb-page .it { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #F1F3F7; cursor: pointer; }
#yb-page .it.imp { background: #FFF6ED; border-radius: 12px; border-bottom: 0; margin-bottom: 6px; padding: 10px 8px; }
#yb-page .av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #DCE7F7; color: #1E3A6E; display: grid; place-items: center; font: 700 13px Inter, system-ui, sans-serif; }
#yb-page .it.imp .av { background: #FEE4C7; color: #93370D; }
#yb-page .tx { min-width: 0; flex: 1; display: grid; }
#yb-page .tx b { font-size: 15px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#yb-page .tx span { font-size: 13.5px; color: #5B6470; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#yb-page .rt { flex: none; display: grid; justify-items: end; gap: 3px; font-size: 12px; color: #8A94A6; }
#yb-page .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #2563EB; color: #fff; font: 700 11px/20px Inter, system-ui, sans-serif; text-align: center; }
#yb-page .go { flex: none; height: 34px; min-height: 0; padding: 0 14px; border-radius: 999px; border: 0; background: #9BCCF2; color: #111827; font: 600 13px Inter, system-ui, sans-serif; }
#yb-page .none { padding: 30px 4px; color: #8A94A6; font-size: 14px; }
#yb-page .err { color: #B42318; font-size: 12.5px; }
#yb-page .pn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 12px 4px; border: 0; border-top: 1px solid #F1F3F7; background: none;
  color: #1B2432; font: 400 15px Inter, system-ui, sans-serif; text-align: left; cursor: pointer; min-height: 0; }
#yb-page .pn svg { color: #4B5563; flex: none; } #yb-page .pn small { margin-left: auto; color: #8A94A6; font-size: 13px; } #yb-page .pn small b { color: #1F4E9C; font-weight: 600; }
#yb-page .pn.on small { color: #15803D; font-weight: 600; }

/* Menu: every item of the profile menu, in a panel from the right (the ≡ sits on the right) */
#yb-dim { position: fixed; inset: 0; z-index: 10110; background: rgba(15, 23, 42, .42); }
#yb-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 84vw); z-index: 10120; background: #F8F9FB; box-shadow: -18px 0 40px rgba(16, 24, 40, .18);
  border-radius: 0;   /* v849 (owner, 2026-11-02: "i am not liking the rounded edges, remove roundness") - square, as it was before v836 */
  display: flex; flex-direction: column; overflow: auto; font-family: Inter, system-ui, sans-serif;
  touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;   /* v882 (owner, 2026-11-02: "not able to scroll it") - the list moves under a finger, and only the list */
  padding: calc(22px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: no-preference) { #yb-menu { animation: ybright .18s ease-out; } }
@keyframes ybright { from { transform: translateX(100%); } to { transform: none; } }
#yb-menu .me { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; margin-bottom: 8px; border: 0; border-bottom: 1px solid #E6E9EF; background: none;
  text-align: left; cursor: pointer; min-height: 0; }
#yb-menu .me .av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #DCE7F7; color: #1E3A6E; display: grid; place-items: center; font: 700 15px Inter, system-ui, sans-serif; }
#yb-menu .me b { display: block; font-size: 16px; color: #0B1F3A; }
#yb-menu .me small { font-size: 13px; color: #5B6470; }
/* v858 (owner, 2026-11-02: "menu not coming proper on phone", screenshot: the Books label cropped, OHM's rows crushed, its label over "Your account") -
   a row never shrinks when the list is taller than the pane; the pane scrolls instead. Menu pressed: a quiet pressed look, the open tab stays lit */
#yb-menu > *, #yb-menu .secs > * { flex-shrink: 0; }
#yb-bar button.press .ic { background: #ECEFF3; }
#yb-menu .mi { display: flex; align-items: center; gap: 14px; padding: 11px 8px; border: 0; border-radius: 12px; background: none; color: #1B2432; font: 400 15.5px Inter, system-ui, sans-serif;
  text-align: left; cursor: pointer; min-height: 0; }
#yb-menu .mi svg { flex: none; color: #4B5563; }
#yb-menu .mi:active { background: #EEF1F6; }
#yb-menu .sp { flex: 1; min-height: 12px; }
/* v836 (owner, 2026-11-02: "options inside can start from bottom instead of top"; "1A 2A 3A 4A, build it") - the pane stops at the bar (its height,
   ybar.js), the name at the top and every option at the foot; the other agents first, as a row of tiles - one tap opens that agent */
#yb-menu .me { border-bottom: 0; margin-bottom: 0; }
/* v843 ONE PANE (A), step 1 (owner: "agent options must be horizontal text like ohm menu"; "agents must also be horizontal, give separate section
   for clarity to user") - rows in labelled sections: the open agent's, Agents, OHM; the agent's label opens its own menu (its book) */
#yb-menu .lab { display: block; width: 100%; margin: 10px 0 2px; padding: 4px 8px; border: 0; background: none; text-align: left; font: 600 11.5px Inter, system-ui, sans-serif;
  letter-spacing: .06em; text-transform: uppercase; color: #8A94A6; min-height: 0; }
#yb-menu .lab.lb { cursor: pointer; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #yb-menu .lab.lb:active { background: #EEF1F6; }
#yb-menu .secs { display: grid; padding-bottom: 6px; border-bottom: 1px solid #E6E9EF; }
#yb-menu .mi.sr.on { background: #EAF2FC; font-weight: 600; color: #0B1F3A; }
#yb-menu .mi .n { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #D92D20; color: #fff; font: 700 11px/20px Inter, system-ui, sans-serif;
  font-style: normal; text-align: center; }
#yb-menu .mi .ai { display: grid; flex: none; } #yb-menu .mi .ai > * { width: 20px; height: 20px; border-radius: 5px; }
/* v843 (1A) - once per agent: where its menu is, above Menu */
#yb-hint { position: fixed; z-index: 10125; max-width: 70vw; padding: 9px 12px; border-radius: 12px; background: #0B1F3A; color: #fff; font: 600 13px Inter, system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .25); cursor: pointer; }
#yb-hint::after { content: ""; position: absolute; bottom: -6px; right: calc(var(--hx, 30px) - 6px); width: 12px; height: 12px; background: #0B1F3A; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { #yb-hint { animation: ybhint .3s ease-out; } }
@keyframes ybhint { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#yb-menu .ag { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0; margin-bottom: 6px; border-top: 1px solid #E6E9EF; border-bottom: 1px solid #E6E9EF; }
#yb-menu .ag button { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; border-radius: 12px; background: none;
  color: #1B2432; font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; min-height: 0; }
#yb-menu .ag button:active { background: #EEF1F6; }
#yb-menu .ag .ai { display: grid; } #yb-menu .ag .ai > * { width: 44px; height: 44px; border-radius: 13px; }
#yb-menu .ag span:last-child { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#yb-bar button[hidden] { display: none; }
html.yb-partner #users-view { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
/* v863 (owner, 2026-11-02: "the left pane of partner app needs to be merged with menu of ohm like we did with books") - on a phone the Partner app's own
   rail and ☰ go: its sections are the first section of OHM's Menu */
html.yb-partner #users-view .mg-rail, html.yb-partner #users-view .mg-ham { display: none !important; }
/* v859 - the platform's own pages under the bar: their foot clears it; no slim line above them (index.html _renderMobileSkillBar) */
html.yb-plat #billing-view, html.yb-plat #account-view, html.yb-plat #settings-view, html.yb-plat #store-view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
html.yb-plat #tasks-view .tk-main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
/* v839 (step 3) - inside Books the bar stands under the app: its frame ends above the bar (the full height again while typing, the bar hidden) */
/* v840 - "html.yb-app body": above body.agent-chromeless #agent-remote-view (style.css); v842 - the frame is a flex item of the page, so the
   layout set its height and the height rule alone changed nothing (the check measured it to the screen's foot): it is held to that height */
html.yb-app body #agent-remote-view { flex: 0 0 auto !important; height: calc(var(--app-height, 100dvh) - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(var(--app-height, 100dvh) - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important; }
html.yb-app.kb-open body #agent-remote-view { height: calc(var(--app-height, 100dvh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  max-height: none !important; }
#yb-menu .mi.out, #yb-menu .mi.out svg { color: #B42318; }
/* v879 (fix 13; owner, 2026-11-02: "menu should contain version no of ohm and version no of agent clicked so that i can verify, keep it small subtle somwhere") - one grey line at the foot: OHM vNNN · Books v1.0.NNNN */
#yb-menu .ver { padding: 12px 8px 0; font: 400 11px Inter, system-ui, sans-serif; color: #98A2B3; letter-spacing: .02em; user-select: all; }
/* v880 PINS (owner, 2026-11-02: "Chat > Accountant > Audit > Dashboard are basically pinned from menu bar which a user can always undo or pin again"; "1A 2A 3B, build it") - Menu lists every line with its pin; the pinned ones are the bar.
   Five in the bar at most (four pins + Menu), so the words sit a touch smaller */
#yb-bar .l { font-size: 11.5px; }
#yb-menu .mi.ln { padding: 0; gap: 0; }
#yb-menu .mi.ln .go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 9px 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer; min-height: 0; }
#yb-menu .mi.ln .go:active { background: #EEF1F6; }
#yb-menu .mi.ln.on .go { background: #EAF2FC; font-weight: 600; color: #0B1F3A; }
#yb-menu .mi.ln .go .n { margin-left: auto; }
#yb-menu .pin { flex: none; width: 34px; height: 34px; margin-right: 2px; border: 0; border-radius: 10px; background: none; color: #B8C0CC; display: grid; place-items: center; cursor: pointer; min-height: 0; }
#yb-menu .pin svg { width: 17px; height: 17px; }
#yb-menu .pin.on { background: rgba(155, 204, 242, .55); color: #0B1F3A; }
#yb-menu .pin.let { background: #FEE4E2; color: #B42318; }
#yb-menu .pin.ask { outline: 2px solid #1F4E9C; outline-offset: -2px; }
#yb-menu .note { padding: 2px 8px 4px; font: 500 12.5px Inter, system-ui, sans-serif; color: #B42318; }
/* v885 THE CASCADE - an agent's options under its line (one out at a time); the chevron folds; the Books line's book name opens the list of books */
#yb-menu .chev { flex: none; width: 30px; height: 34px; border: 0; background: none; color: #8A94A6; display: grid; place-items: center; cursor: pointer; min-height: 0; }
#yb-menu .chev svg { width: 16px; height: 16px; transition: transform .15s ease; } #yb-menu .chev.open svg { transform: rotate(180deg); }
#yb-menu .mi.ln .go em.bk { font-style: normal; font-size: 13px; color: #5B6470; margin-left: 4px; white-space: nowrap; } #yb-menu .mi.ln .go em.bk.open { color: #0B1F3A; font-weight: 600; }
#yb-menu .cas { border-left: 2px solid #E6E9EF; margin: 0 0 4px 22px; padding-left: 4px; }
#yb-menu .cas .mi.sub .go { padding: 7px 8px; font-size: 14px; } #yb-menu .cas .mi.sub svg { width: 18px; height: 18px; }
#yb-menu .cas.books { border-left: 0; margin-left: 12px; padding: 4px 6px; border-radius: 10px; background: #F2F6FB; }
#yb-menu .bkr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 8px; border: 0; border-radius: 8px; background: none; color: #1B2432; font: 400 14px Inter, system-ui, sans-serif; text-align: left; cursor: pointer; min-height: 0; }
#yb-menu .bkr svg { flex: none; width: 18px; height: 18px; color: #4B5563; } #yb-menu .bkr:active { background: #E6EEF8; } #yb-menu .bkr.cur span { font-weight: 600; color: #0B1F3A; }
#yb-menu .bkr .ok { margin-left: auto; color: #1F7A4D; font-style: normal; font-weight: 700; } #yb-menu .bkr .tg { margin-left: auto; font: 500 11px Inter, system-ui, sans-serif; color: #B54708; font-style: normal; }
#yb-menu .cas .none { padding: 8px; font: 400 13.5px Inter, system-ui, sans-serif; color: #8A94A6; }
/* v837 - a computer: the pane opens beside the strip (left set by ybar.js), full height, from the left; the strip is not dimmed */
#yb-menu.at-strip { right: auto; border-radius: 0; box-shadow: 18px 0 40px rgba(16, 24, 40, .12); border-right: 1px solid #E9EDEF;
  padding: 22px 14px 18px; }
@media (prefers-reduced-motion: no-preference) { #yb-menu.at-strip { animation: ybleft .18s ease-out; } }
@keyframes ybleft { from { transform: translateX(-100%); } to { transform: none; } }
/* v837 - a computer: Notifications as a card at the Bell */
#yb-page.card { inset: auto; width: 380px; max-height: 70vh; border-radius: 14px; border: 1px solid #E5E7EB; box-shadow: 0 16px 40px rgba(17, 24, 39, .16);
  padding: 14px 16px 16px; z-index: 10140; }

/* v890 CHAT'S HEADING, CALL H1 (owner, 2026-11-03: "correct this chat heading, it looks super clutter, invite can stay on the main chat screen" -> "H1, build it"
   on /artifact/TLwFwBesxuJykmpy6rgYB6) - inside a chat, a phone shows the book's name and the Bell. Invite stays on the list of chats, Aa is in Menu. */
html.yb-ask #ask-aa { display: none; }
html.yb-ask #yb-top.in-head .inv { display: none; }
html.yb-ask .ask-head.one .ask-who > b { display: none; }
html.yb-ask .ask-head.one .ask-book { height: 26px; font-size: 16px; font-weight: 650; color: #0B1F3A; }

/* v896 THE BAR RULE + THE PANE (owner, 2026-11-03: "Chat ... stays fixated in the left of bottom pane and then three features of any other agent are pinnable ...
   he cant pin an agent but its feature"; "all 5 calls yes, build the menu" on /artifact/RJ8MgVddCGteDwBd3PyxpK) - Menu's pane: the person (the account's door,
   the business under the name), each agent a labelled section (the label opens it, the chevron folds it), under BOOKS the open book on its own line, each
   feature one row with a small pin (filled when pinned), a one-screen agent one row after the sections, then OHM's rows. No Chat row, no spacer, no label
   wider than the pane, nothing under a pin. At the end of the file so these rules win. */
#yb-menu .me { border-bottom: 1px solid #E6E9EF; margin-bottom: 4px; padding: 6px 6px 14px; }
#yb-menu .me > span:nth-child(2) { min-width: 0; } #yb-menu .me b, #yb-menu .me small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#yb-menu .me .arr { flex: none; margin-left: auto; color: #8A94A6; display: grid; } #yb-menu .me .arr svg { width: 16px; height: 16px; transform: rotate(-90deg); }
#yb-menu .sp { display: none; }
#yb-menu .pins, #yb-menu .pins > *, #yb-menu .lab, #yb-menu .mi, #yb-menu .pa, #yb-menu .bk { box-sizing: border-box; width: auto; max-width: 100%; }
#yb-menu .lab { margin: 14px 0 2px; }
#yb-menu .pa { display: flex; align-items: center; padding: 10px 0 2px; }
#yb-menu .pa .lb { flex: 1; min-width: 0; border: 0; border-radius: 8px; background: none; text-align: left; padding: 4px 8px; font: 600 11.5px Inter, system-ui, sans-serif;
  letter-spacing: .06em; text-transform: uppercase; color: #8A94A6; min-height: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#yb-menu .pa .lb:active { background: #EEF1F6; } #yb-menu .pa.on .lb { color: #0B1F3A; }
#yb-menu .bk { display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0 4px; padding: 8px 10px; border: 0; border-radius: 10px; background: #F2F6FB; color: #0B1F3A;
  font: 500 13.5px Inter, system-ui, sans-serif; text-align: left; min-height: 0; cursor: pointer; }
#yb-menu .bk svg { flex: none; width: 18px; height: 18px; color: #4B5563; } #yb-menu .bk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#yb-menu .bk i { flex: none; font-style: normal; color: #5B6470; font-size: 12px; } #yb-menu .bk.open i { transform: rotate(180deg); }
#yb-menu .cas { border-left: 0; margin: 0; padding: 0; }
#yb-menu .mi.ln .go { padding: 10px 8px; } #yb-menu .mi.ln .go svg { flex: none; width: 20px; height: 20px; }   /* Partner's rail draws its icons unsized */
#yb-menu .mi.ln .go > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#yb-menu .mi.ln.solo { border-top: 1px solid #E6E9EF; margin-top: 10px; padding-top: 6px; }
#yb-menu .pin { width: 40px; height: 40px; margin-right: 0; border-radius: 10px; color: #B8C0CC; } #yb-menu .pin svg { width: 18px; height: 18px; }
#yb-menu .pin.on { background: none; color: #0B1F3A; } #yb-menu .pin.on svg { fill: currentColor; }
#yb-menu .pin.let { background: none; color: #B42318; } #yb-menu .pin.let svg { fill: currentColor; }
#yb-menu .pin.ask { color: #1F4E9C; outline: 2px solid #1F4E9C; outline-offset: -2px; }
/* v909 (owner, 2026-11-04: "open all menu options for books and partner just like in computer version ... except pinning things should be like similar" -> "B, build it" on /artifact/9SeMkxTVDMEvx65BnATdup; "keep changes in phone separate from computer") - everything open, the lines scrolling inside the pane, Invite and you fixed at the foot. Under #yb-menu only: a computer never draws this pane. */
#yb-menu.yb-all { overflow: hidden; padding-bottom: 0; }
#yb-menu.yb-all .pins { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
#yb-menu.yb-all .lab.sec { margin: 14px 0 2px; } #yb-menu.yb-all .pins > .lab.sec:first-child { margin-top: 0; }
#yb-menu.yb-all .cas .mi.ln .go svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#yb-menu.yb-all .selw { position: relative; margin: 3px 0 5px; }
#yb-menu.yb-all .bk.sel { min-height: 44px; margin: 0; padding: 0 10px 0 8px; gap: 10px; background: #fff; border: 1px solid #C4CEDB; border-radius: 10px; box-shadow: 0 1px 2px rgba(17, 24, 39, .06); font: 500 14.5px Inter, system-ui, sans-serif; }
#yb-menu.yb-all .bk.sel svg { width: 20px; height: 20px; } #yb-menu.yb-all .bk.sel svg:last-child { width: 16px; height: 16px; margin-left: auto; color: #475569; }
#yb-menu.yb-all .bk.sel.open { border-color: #1F4E9C; } #yb-menu.yb-all .bk.sel.open svg:last-child { transform: rotate(180deg); }
#yb-menu.yb-all .selw .cas.books { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 6px); max-height: 50vh; overflow-y: auto; padding: 6px 0; background: #fff; border: 1px solid #E3E7EE; box-shadow: 0 18px 44px rgba(16, 24, 40, .18); }
#yb-menu.yb-all .selw .cas.books .mi { width: 100%; min-height: 44px; padding: 10px 12px; }
#yb-menu.yb-all .mi.ln.fnd { margin-top: 4px; } #yb-menu.yb-all .mi.ln.fnd .go { flex: 1; min-width: 0; border-radius: 22px; background: #F0F2F5; color: #667781; }
#yb-menu.yb-all .yfoot { position: relative; flex: none; display: flex; flex-direction: column; margin: 6px -14px 0; padding: 4px 14px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #E6E9EF; background: #F8F9FB; }
#yb-menu.yb-all .yfoot > .me { width: 100%; margin: 0; padding: 8px 6px; border-bottom: 0; text-align: left; }
#yb-menu.yb-all .yprof { position: absolute; left: 14px; right: 14px; bottom: calc(100% + 6px); z-index: 6; display: flex; flex-direction: column; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); overflow-y: auto; padding: 6px 0; background: #fff; border: 1px solid #E3E7EE; box-shadow: 0 18px 44px rgba(16, 24, 40, .18); }
#yb-menu.yb-all .yprof[hidden] { display: none; } #yb-menu.yb-all .yprof .mi { padding-left: 14px; } #yb-menu.yb-all .yprof .ver { padding: 6px 14px 4px; }
#yb-menu.yb-all.prof-open .yfoot > .me .arr svg { transform: rotate(180deg); }
