/* NOTE: this file still has !important rules on purpose. Removing them changes how pages look (checked page by page with admin/tests/tools/css_check.php) because they override older rules; merge the overlapping rules before removing them. */
:root { --ch-bg1: var(--msg-bar); --ch-bg2: var(--msg-bar); --ch-text: var(--msg-on-bar); --ch-pct-on: var(--msg-bar); }
/* The site header, the account menu, the phone menu and the phone footer bar (live/lib/Chrome.php). Colours: the site colours (Msg\SiteTheme) for the bar,
   the admin theme (--msg-*) for everything else. */
.ch, .ch * { box-sizing: border-box; }
:root { --ch-h: calc(54px + env(safe-area-inset-top, 0px)); } /* the header's height: 54px, plus the phone's top safe area (the clock and the notch) when the app uses the see-through status bar; zero everywhere else */
.ch { position: fixed; top: 0; left: 0; right: 0; z-index: 1010; box-sizing: border-box; height: var(--ch-h, 54px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: env(safe-area-inset-top, 0px) 12px 0; color: var(--ch-text); background-image: linear-gradient(var(--ch-bg1), var(--ch-bg2)); box-shadow: rgba(0, 0, 0, .12) 0 4px 12px; font-family: inherit; }
body.acct-bn-on .ch { top: var(--acct-bn); }
.ch a:not(.ch-msgp a) { color: inherit; text-decoration: none; } /* (not inside the messages panel, which lives in the header but has its own link styles) */
.ch-l, .ch-r { display: flex; align-items: center; gap: 18px; min-width: 0; flex: none; }
.ch-r { gap: 10px; }
.ch-c { flex: 1 1 200px; min-width: 160px; max-width: 460px; margin: 0 auto; } /* between the left and the right part: it can never run over them */
.ch-c .msrch-header { position: relative; left: auto; top: auto; transform: none; width: 100%; }
.ch-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ch-ic { flex: none; display: block; }
.ch-burger[hidden] { display: none; }
.ch-logo img { display: block; height: 34px; width: auto; }
.ch-live { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ch-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--msg-live); display: inline-block; }
.ch-top { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.ch-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; min-height: 44px; }
.ch-join, .ch-add { display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border-radius: var(--btn-r, 999px); border: 0; background: var(--msg-accent); color: var(--msg-on-accent) !important; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ch-join-s { display: none; }
.ch-tokens { display: inline-flex; align-items: center; gap: 8px; }
.ch-bal { font-weight: 700; font-size: 15px; }
.ch-bal small { font-weight: 500; opacity: .85; }
.ch-sale { color: var(--msg-live) !important; width: 40px; height: 40px; }
.ch-sale svg { width: 34px; height: 34px; }
.ch-bell { display: inline-flex; align-items: center; }
.ch-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit !important; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.ch-dots, .ch-searchbtn { display: none; }
/* the account menu */
.ch-acct { position: fixed; top: 60px; right: 10px; z-index: 1300; width: 340px; max-height: calc(100vh - 76px); max-height: calc(var(--dvh, 100dvh) - 76px); overflow-y: auto; padding: 12px 12px 10px; border-radius: 14px; border: 1px solid var(--msg-border); background: var(--msg-surface-2); color: var(--msg-text); box-shadow: 0 18px 50px color-mix(in srgb, var(--msg-black) 55%, transparent); }
body.acct-bn-on .ch-acct { top: calc(60px + var(--acct-bn)); max-height: calc(100vh - 76px - var(--acct-bn)); max-height: calc(var(--dvh, 100dvh) - 76px - var(--acct-bn)); }
.ch-acct[hidden], .ch-drawer[hidden], .ch-scrim[hidden] { display: none; }
.ch-acct a { color: var(--msg-text); text-decoration: none; }
.ch-who { display: flex; align-items: center; gap: 14px; padding: 6px 6px 12px; font-size: 18px; }
.ch-who-av { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--msg-border); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.ch-avatar, .ch-who-av { padding: 0; overflow: hidden; flex: none; }
.ch-avatar { display: inline-flex; align-items: center; justify-content: center; }
.ch-av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 4px 8px; font-size: 16px; }
.ch-row > span:first-of-type { flex: 1; }
.ch-buy { min-height: 40px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--msg-text); color: var(--msg-bg) !important; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ch-item { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 4px 8px; border-radius: 10px; font-size: 16px; }
.ch-item .ch-ic, .ch-row .ch-ic { width: 24px; height: 24px; color: var(--msg-muted); }
@media (hover: hover) { .ch-item:hover { background: var(--msg-hover); } }
/* the role switch (one person, two roles) is a form button that looks like the menu's links */
.ch-switch { margin: 0; }
button.ch-item { width: 100%; border: 0; background: none; color: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.ch-sep { height: 1px; margin: 8px 6px; background: var(--msg-border); }
.ch-card { padding: 14px; border-radius: 14px; border: 1px solid var(--msg-border); background: var(--msg-surface); margin-bottom: 12px; }
.ch-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--msg-accent); color: var(--msg-on-accent) !important; font-size: 17px; font-weight: 700; }
.ch-perks { list-style: none; margin: 12px 0 0; padding: 0; }
.ch-perks li { display: flex; align-items: center; gap: 14px; min-height: 40px; color: var(--msg-muted); font-size: 15px; }
.ch-ghost { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 4px 0 10px; border-radius: 999px; border: 1px solid var(--msg-text); font-size: 16px; }
.ch-lang-w { flex: none; }
/* the phone menu */
.ch-scrim { position: fixed; top: var(--ch-h, 54px); right: 0; bottom: 0; left: 0; z-index: 1004; background: color-mix(in srgb, var(--msg-black) 60%, transparent); }
.ch-drawer { position: fixed; top: var(--ch-h, 54px); bottom: 0; left: 0; z-index: 1005; width: min(72vw, 310px); display: flex; flex-direction: column; background: var(--msg-surface); color: var(--msg-text); box-shadow: 8px 0 40px color-mix(in srgb, var(--msg-black) 50%, transparent); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: normal; text-align: left; } /* (its own text size, like the left menu: never the page's) */
.ch-drawer-b { flex: 1; overflow-y: auto; padding: 8px 8px 90px; }
.ch-drawer-b .sections { padding: 14px 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--msg-muted); }
.ch-drawer-b .collection-item { display: flex; align-items: center; min-height: 44px; padding: 4px 10px; border-radius: 8px; color: var(--msg-text) !important; font-size: 16px; text-decoration: none; }
.ch-drawer-b .collection-item .count { margin-left: auto; float: none; color: var(--msg-muted); }
.ch-drawer-b .collection-item.second-nv-active { background: var(--msg-hover); font-weight: 700; }
.ch-drawer-b .side-row { font-weight: 600; }
.ch-drawer .browse-show-btn { position: absolute; display: block; left: 12px; right: 12px; bottom: 12px; width: auto; margin: 0; min-height: 48px; border: 0; border-radius: var(--btn-r, 999px); background: var(--msg-accent); color: var(--msg-on-accent) !important; font-size: 16px; font-weight: 700; }
/* the bar at the bottom of a phone: popups sit above it (a window is drawn above everything, the other panels have a higher layer) */
.ch-bar { display: none; }
@media (max-width: 1299px) { .ch-top span { display: none; } .ch-l { gap: 14px; } }
@media (max-width: 899px) {
  .ch { padding: 0 4px 0 6px; gap: 4px; }
  .ch-l { gap: 2px; flex: 0 1 auto; }
  .ch-r { gap: 0; flex: none; }
  .ch-btn { width: 40px; }
  .ch-l { min-width: 0; }
  .ch-logo { min-width: 0; flex: 0 1 auto; }
  .ch-logo img { height: 30px; max-width: 100%; object-fit: contain; object-position: left center; } /* on a narrow phone the logo gives way instead of running under Log in */
  .ch-login, .ch-join, .ch-dots, .ch-searchbtn { flex: none; }
  .ch-bal { font-size: 14px; padding: 0 4px; }
  .ch-top, .ch-live, .ch-c, .ch-avatar, .ch-add, .ch-join-l { display: none !important; }
  .ch-join-s { display: inline; }
  .ch-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; white-space: nowrap; } /* a visitor sees Log in beside Join Free on a phone */
  .ch-login svg { display: none; }
  .ch-join { padding: 0 16px; }
  .ch-dots, .ch-searchbtn { display: inline-flex; }
  body:has(.browse-tabs) .ch-searchbtn { display: none; } /* the browse pages have the search button in their strip */
  .ch-tokens { gap: 2px; }
  .ch-acct { top: var(--ch-h, 54px); right: 0; width: min(90vw, 390px); max-height: calc(var(--dvh, 100dvh) - var(--ch-h, 54px)); border-radius: 0 0 0 16px; padding: 14px 14px 18px; }
  body.acct-bn-on .ch-acct { top: calc(var(--ch-h, 54px) + var(--acct-bn)); max-height: calc(var(--dvh, 100dvh) - var(--ch-h, 54px) - var(--acct-bn)); }
  .ch-item { min-height: 54px; font-size: 18px; }
  .ch-row { font-size: 18px; }
  .ch-bar { position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 900; height: 66px; display: flex; align-items: stretch; justify-content: space-around; border-radius: 33px; border: 1px solid var(--msg-border); background: color-mix(in srgb, var(--msg-surface-2) 94%, transparent); backdrop-filter: blur(12px); box-shadow: 0 8px 28px color-mix(in srgb, var(--msg-black) 45%, transparent); }
  .ch-bar-i { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--msg-muted) !important; font-size: 12px; text-decoration: none; }
  .ch-bar-i { position: relative; }
  .ch-bar-i .msg-nav-badge { position: absolute; top: 6px; left: calc(50% + 4px); margin: 0; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }
  .ch-bar-i .ch-ic { width: 26px; height: 26px; }
  .ch-bar-i > span:last-child { max-width: calc(100% - 6px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* a translated label (German "Nachrichten") is cut with ... inside its own slot, never runs into the next one or off the bar (owner 2026-11-11) */
  .ch-bar-i.on { color: var(--msg-text) !important; font-weight: 700; }
  body:has(.ch-bar) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
/* the old pages (their own page body) start right under the 54px header; the panels and the live pages add their own space */
body.ch-on:not(.pnl-body):not(.lv-page):not(.lv-room) { margin-top: var(--ch-h, 54px) !important; }
body.ch-on.acct-bn-on:not(.pnl-body):not(.lv-page):not(.lv-room) { margin-top: calc(var(--ch-h, 54px) + var(--acct-bn)) !important; }

/* the left menu's last block: the site's links and the language accordion */
.side-foot { padding: 6px 10px 120px; }
.side-foot-links { display: flex; flex-direction: column; border-top: 1px solid var(--msg-border); border-bottom: 1px solid var(--msg-border); padding: 12px 0; margin-bottom: 8px; }
.side-foot-apps { display: flex; gap: 8px; margin: 0 0 10px; }
.side-foot-apps a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 1px solid var(--msg-border); border-radius: var(--btn-r, 10px); color: var(--msg-text) !important; font-size: 14px; text-decoration: none; }
.side-foot-apps i { font-size: 20px; }
@media (hover: hover) { .side-foot-apps a:hover { border-color: var(--msg-accent); } }
.side-foot-links a { padding: 6px 10px; color: var(--msg-muted) !important; font-size: 14px; text-decoration: none; }
@media (hover: hover) { .side-foot-links a:hover { color: var(--msg-text) !important; } }
.lang-acc { padding: 0; }
.lang-acc-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 4px 10px; border: 0; background: none; color: var(--msg-muted) !important; font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.lang-acc-h .ch-ic { width: 22px; height: 22px; }
.lang-acc-h .lang-cur { flex: 1; }
.lang-acc-h .lang-chev { transition: transform .15s; }
.lang-acc-h[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-acc-list { display: flex; flex-direction: column; padding: 2px 0 8px; }
.lang-acc-list[hidden] { display: none; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 4px 10px 4px 44px; border: 0; background: none; color: var(--msg-text) !important; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.lang-opt svg { visibility: hidden; color: var(--msg-live); }
.lang-opt.on { color: var(--msg-live) !important; }
.lang-opt.on svg { visibility: visible; }
@media (hover: hover) { .lang-opt:hover { background: var(--msg-hover); } }
.ch-acct .lang-acc-h { color: var(--msg-text) !important; font-size: 16px; }
.ch-acct .lang-opt { padding-left: 46px; }
/* the same letters on every page (the panels' own system font made the header and the left menu wider than on the home page) */
.ch, .ch-acct, .ch-drawer, .ch-bar, .ch-scrim, .msrch, .msrch-pop, .msrch-filters, .acct-bell-pop, .ch-sidebar { font-family: Arial, "Liberation Sans", Helvetica, sans-serif; }

.ch-item .pnl-lockmark { margin-left: auto; opacity: .65; display: inline-flex; }
.ch-item .pnl-lockmark .ch-ic { width: 16px; height: 16px; }

/* the messages icon and its panel (the whole messaging app, filled in by chrome.js the first time): a floating card with a little room around it, like the big sites */
.ch-msgbtn { position: relative; }
.ch-msgbtn .msg-nav-badge { position: absolute; top: 2px; right: 0; margin: 0; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }
.ch-msgp { position: fixed; z-index: 1008; top: 64px; right: 10px; bottom: 10px; width: min(430px, calc(100vw - 20px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--msg-surface); color: var(--msg-text); border: 1px solid var(--msg-border); box-shadow: 0 10px 40px color-mix(in srgb, var(--msg-black) 55%, transparent); font: 15px/1.4 Arial, "Liberation Sans", Helvetica, sans-serif; }
body.acct-bn-on .ch-msgp { top: calc(64px + var(--acct-bn)); }
.ch-msgp[hidden] { display: none; }
.ch-msgp-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.ch-msgp-body > .msg-app { flex: 1; min-height: 0; height: 100%; margin: 0; }
.msg-threads:empty { flex: 0 0 auto; }
@media (max-width: 899px) {
  .ch-msgp { top: 0 !important; left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border: 0; box-shadow: none; z-index: 1500; } /* a phone: the whole screen, no frame */
  body.ch-sheet-open, body.ch-sheet-open .ch { background: var(--msg-surface); } /* a full-screen panel is open (chrome.js): the strip behind the phone's clock takes its colour */
  body.ch-sheet-open .ch { background-image: none; box-shadow: none; z-index: 1500; } /* the panel lives in the header: lift it above the install bar and other floating bars, as before */
}
.ch-msgp .msg-new, .ch-msgp .msg-search { padding: 8px 10px 4px; } /* room above the fields: their focus ring is not cut off by the panel */
.ch-msgp .msg-list-pane { overflow: visible; border-right: 0; } /* one column in the panel: no line beside the list */
.ch-add { gap: 6px; }
.ch-add svg { width: 18px; height: 18px; flex: none; }

/* Admin viewing as a member or model: the way back */
.ch-viewing { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2147483000; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--msg-bar); color: var(--msg-on-bar); border: 1px solid var(--msg-bar-line); box-shadow: 0 6px 24px var(--msg-scrim); font-size: .9rem; }
.ch-viewing-go { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--msg-accent); color: var(--msg-on-accent); font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .ch-viewing { bottom: 70px; border-radius: 16px; width: calc(100vw - 24px); justify-content: space-between; } }

/* the page-translation engine's own widget stays hidden (our language list is the control) */
.gtranslate_wrapper, .gt_container--hich1m { display: none !important; }
/* a 320 px phone: the logo, Log in and Join Free must not touch each other */
@media (max-width: 359px) {
  .ch { padding: 0 2px 0 4px; }
  .ch-btn { width: 36px; }
  .ch-logo img { height: 24px; }
  .ch-login { padding: 0 4px; font-size: 13px; }
  .ch-join { padding: 0 12px; font-size: 14px; }
}

/* the page's own scrollbar on a computer (a mouse or trackpad, never a phone or tablet): slim, in the site's colours, always visible so it is clear the page goes on (the boxes inside the page, like the chat, use the lighter hover-only look) */
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--msg-text) 34%, transparent) var(--msg-bg); }
  html::-webkit-scrollbar { width: 10px; height: 10px; }
  html::-webkit-scrollbar-track { background: var(--msg-bg); }
  html::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--msg-text) 34%, transparent); border: 2px solid var(--msg-bg); border-radius: 8px; }
  html::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--msg-text) 58%, transparent); }
}

/* the phone menu slides in from the left and the dark scrim fades in (quickly, like an app); closing is the same backwards. The [hidden] attribute is kept for the script, but the elements stay laid out so the move can be seen. */
.ch-drawer { transition: transform .24s cubic-bezier(.2, .85, .25, 1); will-change: transform; }
.ch-drawer[hidden] { display: flex; visibility: hidden; pointer-events: none; transform: translateX(-104%); transition: transform .2s ease-in, visibility 0s linear .2s; }
.ch-scrim { transition: opacity .22s ease; }
.ch-scrim[hidden] { display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
@media (prefers-reduced-motion: reduce) { .ch-drawer, .ch-drawer[hidden], .ch-scrim, .ch-scrim[hidden] { transition: none; } }

/* a phone must not enlarge the text on its own (iOS / Android text autosizing); the person's own font-size setting still applies */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Sign up FREE / Login at the top of the phone menu (visitors; an admin switch) */
.ch-dr-auth { display: grid; gap: 10px; padding: 10px 6px 14px; }
.ch-dr-join, .ch-dr-login { display: flex; align-items: center; justify-content: center; min-height: calc(var(--btn-h, 36px) + 14px); border-radius: var(--btn-r, 10px); font-size: 17px; font-weight: 700; text-decoration: none; }
.ch-dr-join { background: linear-gradient(135deg, var(--msg-accent), var(--msg-accent-2)); color: var(--msg-on-accent) !important; }
.ch-dr-login { background: var(--msg-surface-2); color: var(--msg-text) !important; border: 1px solid var(--msg-border); }
.ch-dr-or { display: flex; align-items: center; gap: 12px; color: var(--msg-muted); font-size: 13px; }
.ch-dr-or::before, .ch-dr-or::after { content: ""; flex: 1; height: 1px; background: var(--msg-border); }

/* the phone menu slides out UNDER the header (which stays); while it is open the header's one button is the X, like the big sites */
body.acct-bn-on .ch-drawer, body.acct-bn-on .ch-scrim { top: calc(var(--ch-h, 54px) + var(--acct-bn)); }
.ch-drawer-b { scrollbar-width: none; }
.ch-drawer-b::-webkit-scrollbar { display: none; }
.ch-hx { display: none; }
body.ch-menu-open .ch-r > :not(.ch-hx), body.mp-open .ch-r > :not(.ch-hx) { display: none !important; } /* hides things that set their own display */
body.ch-menu-open .ch-hx, body.mp-open .ch-hx { display: inline-flex; }
body.ch-menu-open .ch-c, body.mp-open .ch-c { visibility: hidden; }
body.ch-menu-open .appbar { display: none; } /* the install / alerts bar never sits over the open menu */
.ch-drawer-b .collection-item { min-height: calc(var(--mp-h, 36px) + 6px); font-size: var(--mp-fs, 14px); }
@media (max-width: 899px) { .ch:not(.ch-bar-auth) .ch-login, .ch:not(.ch-bar-auth) .ch-join { display: none; } } /* Login and Join are in the side menu instead of the top bar (an admin choice) */

/* a model's or studio's balance in the header: tokens and money (on a phone only the tokens: both are in the account menu) */
.ch-earn { color: inherit; text-decoration: none; gap: 10px; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--ch-text, var(--msg-text)) 22%, transparent); border-radius: var(--btn-r, 999px); }
.ch-earn .ch-bal-m { font-weight: 500; opacity: .85; }
@media (max-width: 899px) { .ch-earn { padding: 2px 8px; } .ch-earn .ch-bal-m { display: none; } }
/* a public demo copy (Msg\DemoMode): one line at the bottom, closable for the visit */
.ch-demo { position: fixed; left: 12px; bottom: 12px; z-index: 2147482000; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 24px)); padding: 8px 8px 8px 14px; border-radius: var(--btn-r, 14px); background: var(--msg-bar); color: var(--msg-on-bar); border: 1px solid var(--msg-bar-line); box-shadow: 0 6px 24px var(--msg-scrim); font-size: 14px; line-height: 1.4; }
.ch-demo b { color: var(--msg-accent); }
.ch-demo-buy { flex: none; display: inline-flex; align-items: center; min-height: var(--btn-h, 36px); padding: 0 16px; border-radius: var(--btn-r, 999px); background: var(--msg-accent); color: var(--msg-on-accent) !important; font-weight: 700; text-decoration: none; white-space: nowrap; } /* (!important: links inside the site's text areas get the link colour) */
.ch-demo-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: var(--btn-rc, 50%); background: transparent; color: var(--msg-on-bar); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 640px) { .ch-demo { left: 10px; right: 10px; max-width: none; bottom: calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; row-gap: 8px; padding: 10px 8px 10px 14px; font-size: 13px; } .ch-demo > span { flex: 1 1 calc(100% - 60px); } .ch-demo-x { order: 2; } .ch-demo-in, .ch-demo-buy { order: 3; } .ch-demo-buy { margin-right: auto; } }
@media (max-width: 640px) { body:has(.lv-join-bar) .ch-demo { flex-wrap: nowrap; padding: 6px 6px 6px 12px; } body:has(.lv-join-bar) .ch-demo > span { flex: 0 1 auto; white-space: nowrap; } body:has(.lv-join-bar) .ch-demo-t { display: none; } body:has(.lv-join-bar) .ch-demo-in, body:has(.lv-join-bar) .ch-demo-buy { order: 0; } body:has(.lv-join-bar) .ch-demo-buy { margin-right: 0; } body:has(.lv-join-bar) .ch-demo-x { order: 4; } } /* in a room on a phone: one short row, so the chat stays readable */
@media (max-width: 899px) { body:has(.ch-bar) .ch-demo { bottom: calc(86px + env(safe-area-inset-bottom)); } } /* on a phone the note sits ABOVE the bottom menu bar (66px + 8px + the iPhone's home strip), never over it */
body:has(.lv-join-bar) .ch-demo { bottom: 76px; }
@media (max-width: 899px) { body:has(#lv) .ch-demo, body.rl-page .ch-demo, body:has(.appbar.is-in) .ch-demo { display: none; } } /* a phone in the live room / Studio: the note would lie over the room's own buttons (Private, tip menu); visitors see it on every other page and the demo logins are on every login form (owner 2026-11-11); also on Reels (it lay on the reel buttons) and while the install / alerts bar is up (the two sat on each other) */
body:has(#agBox:not([hidden])) .ch-demo { display: none; } /* it waits until the 18+ notice is answered */ /* a room's Join bar stays visible under the note */
.ch-demo[hidden] { display: none; }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) and (min-aspect-ratio: 3/2) { .ch-demo { display: none; } } /* a phone held sideways: no room for the demo note (owner 2026-11-07) */ /* [hidden] must win over the flex above */

/* headings in any language (owner 2026-11-11): a word longer than the phone is wide (German "Datenschutzrichtlinie", a domain name) breaks with a hyphen instead of running off the screen */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
/* the header, the phone menu and the phone footer bar have their own text size and spacing: a page's own (legal pages 16px / 1.65, account pages 16px / 1.5)
   must never change them, and buttons in them use the header's font, not the browser's default (owner 2026-11-11: the menus looked different on the legal pages) */
.ch, .ch-bar { font-size: 14px; line-height: 20px; letter-spacing: normal; }
.ch button, .ch-bar button, .ch-drawer button, .ch-sidebar button { font-family: inherit; }
/* the header, menus and footer bar size their boxes the same way on every page (the legal pages have no page-wide border-box rule: the footer bar came out 2px smaller there) */
.ch, .ch *, .ch-bar, .ch-bar *, .ch-drawer, .ch-drawer *, .ch-sidebar, .ch-sidebar *, .ch-acct, .ch-acct * { box-sizing: border-box; }
