/* heykubi.ai v2 visual language for the portal (app.heykubi.ai).
   Loaded after portal.css and changes the look only: tokens, type, buttons,
   cards, header, chips. Every layout (the app shell, the project page, the
   business console) stays the one portal.css draws; this file re-colours and
   re-types it so the portal reads like the public site (#3644).
   Midnight ink + periwinkle from the Kubi mark, a porcelain ground, one warm
   "sun" accent. Display: Secular One; text: Rubik. Both self-hosted (CSP
   font-src stays 'self'). */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/rubik-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/rubik-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Secular One"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/secular-one-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Secular One"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/secular-one-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f4f0; --ink: #141e40; --ink-soft: #4f566e; --line: #dcdce6; --card: #fff;
  --accent: #4655a6; --peri: #a8b5ff; --peri-2: #c9d1ff; --peri-3: #e9eaff;
  --night-soft: #c9cee3; --sun: #ffcf5a; --sun-ink: #5a3f00; --wa: #e7f6dd;
  --ok: #1f7a4d; --due: #b0371f; --err: #a8261b;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --display: "Secular One", "Rubik", system-ui, sans-serif;
  --text: "Rubik", system-ui, "Noto Sans Hebrew", Arial, sans-serif;
  /* portal.css names (master) */
  --blue: var(--accent); --muted: var(--ink-soft); --border: var(--line);
  --brand-midnight: var(--ink); --brand-ivory: var(--bg);
  /* the "Crisp" shell names (#4155), so its layout takes these colours */
  --c-frame: var(--bg); --c-sheet: var(--card); --c-ink: var(--ink); --c-ink-2: var(--ink-soft); --c-ink-3: var(--ink-soft);
  --c-line: var(--line); --c-line-2: #c9cbd8; --c-hover: var(--peri-3);
  --c-teal: var(--accent); --c-teal-ink: var(--ink); --c-teal-tint: var(--peri-3);
  --c-open: var(--due); --c-bad: var(--err); --c-paid: var(--ok);
  font-family: var(--text);
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
  caret-color: var(--accent);
}
body { font-family: var(--text); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: var(--peri); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .22em; }
a, button, select, input, label, summary { -webkit-tap-highlight-color: rgba(168, 181, 255, .35); }
:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* ── Type ── */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
html[lang="he"] h1, html[lang="he"] h2 { letter-spacing: 0; }
h3 { font-family: var(--text); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3vw, 3.6rem); line-height: 1.05; }
h1 em, .v2-mark {
  font-style: normal; color: var(--accent); white-space: nowrap; padding-bottom: .06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15c50-9 95-12 147-8 52 4 98 3 147-6' fill='none' stroke='%23ffcf5a' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 100% / 100% .32em;
}
.muted, .hint, #catalog-note { color: var(--ink-soft); }
.message { color: var(--err); }

/* The eyebrow is a sticker: a small rotated chip, like the ones on the site. */
.eyebrow {
  display: inline-flex; align-items: center; width: fit-content; min-height: 30px; padding: 2px 14px;
  font-family: var(--text); font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--peri-2); border: 2px solid var(--ink); border-radius: 999px; transform: rotate(-2deg);
}
html[dir="ltr"] .eyebrow { transform: rotate(2deg); }
label.eyebrow { transform: none; background: transparent; border: 0; padding: 0; min-height: 0; color: var(--ink-soft); }
.step { display: inline-block; font-weight: 700; font-size: 13px; color: var(--sun-ink); background: var(--sun); border-radius: 999px; padding: 3px 12px; }

/* ── Buttons: pills, ink fill ── */
.primary, .secondary, .quiet, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--text); font-size: 16px; font-weight: 700;
  text-decoration: none; transition: transform .16s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.primary:active, .secondary:active, .quiet:active, a.button:active { transform: scale(.97); }
.primary, a.button { background: var(--ink); color: #fff; border: 0; }
.primary:hover, a.button:hover { background: #26346a; }
.secondary { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.secondary:hover { background: var(--ink); color: #fff; }
.quiet { background: transparent; color: var(--ink); border: 0; text-decoration: underline; text-decoration-color: var(--peri); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.quiet:hover { background: transparent; color: var(--ink); text-decoration-color: var(--ink); }
.primary.full, .quiet.full, .secondary.full { display: flex; width: 100%; }
.connection-card button { color: var(--err); }
.connection-card button.primary { color: #fff; }
.connection-card button.secondary { color: var(--ink); }
.connection-card button.secondary:hover { color: #fff; }
#app-catalog .connection-card button.primary { padding: 0 20px; min-height: 44px; }

/* ── Fields ── */
input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])), select, textarea {
  min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--ink); font-family: var(--text); font-size: 16px;
}
input:hover, select:hover, textarea:hover { border-color: #b9bccd; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(70, 85, 166, .18); outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; vertical-align: -3px; }
label:not(.channel, .phone-screen label, .eyebrow, .hint) { color: var(--ink); font-weight: 600; font-size: 14px; }
.code { font-family: var(--display); letter-spacing: 12px; font-size: 30px; }
.language-switch { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; width: auto; }
.language-switch:hover { border-color: var(--ink); }

/* ── Cards ── */
.login-card, .connection-card, .identity, .approval-card, dialog, .pj-card, .pj-bento, .pj-task, .empty, .pj-empty, .pj-none {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; box-shadow: none;
}
.connection-card { padding: 18px 20px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.connection-card h2, #vault-items .connection-card h2 { font-family: var(--text); font-weight: 700; font-size: 16px; letter-spacing: 0; }
a.project-card:hover, .pj-card:hover { border-color: var(--ink); }
@media (hover: hover) { a.project-card:hover, .pj-card:hover { transform: translateY(-2px); } }
.identity { padding: 16px 20px; }
.avatar { background: var(--peri-2); color: var(--ink); font-weight: 700; border: 2px solid var(--ink); }
.approval-card { border-inline-start: 6px solid var(--sun); }
.approval-card.focused { box-shadow: 0 0 0 4px rgba(70, 85, 166, .22); }
.badge, .pj-badge { background: var(--peri-3); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 600; }
.pj-badge.is-invite { background: var(--sun); color: var(--ink); }
.service-tag { color: var(--accent); font-weight: 700; }
.empty, .pj-empty, .pj-none { border-style: dashed; border-color: #b9bccd; background: transparent; }
.empty-symbol { background: var(--sun); color: var(--ink); border-radius: 50%; border: 2px solid var(--ink); }
dialog { border-radius: 24px; }
dialog::backdrop { background: rgba(20, 30, 64, .45); }
.nav-count { background: var(--sun); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ── Header ── */
body > header { background: transparent; border-bottom: 0; }
.header-note { color: var(--ink-soft); }
.brand-lockup { object-fit: contain; }
#logout { min-height: 40px; }

/* ── Sign in ── */
.intro h1 { margin-top: 18px; }
.intro p { color: var(--ink-soft); font-size: 18px; }
.intro .v2-kubi {
  display: block; width: clamp(112px, 14vw, 168px); aspect-ratio: 1; margin: 28px 0 0; border-radius: 50%;
  background: var(--peri-2); border: 2px solid var(--ink); object-fit: cover;
}
.login-card { border: 2px solid var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 40px); box-shadow: 8px 8px 0 var(--peri); }
html[dir="rtl"] .login-card { box-shadow: -8px 8px 0 var(--peri); }
.login-card h2 { font-size: 30px; margin: 14px 0 8px; }
.card-footer { border-top: 1.5px dashed var(--line); color: var(--ink-soft); }
.card-footer span { color: var(--accent); }
.creating-spinner { border-color: var(--peri-3); border-top-color: var(--ink); }

/* ── Signed in: the workspace ── */
.workspace-top h1 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.6rem); margin: 10px 0 6px; }
#workspace h2 { font-family: var(--display); font-weight: 400; }
#nav a { font-family: var(--text); color: var(--ink-soft); font-weight: 600; min-height: 44px; }
#nav a:hover { color: var(--ink); }
#nav a.on { color: var(--ink); border-bottom-color: var(--sun); border-bottom-width: 3px; }

/* The same, over the Crisp shell (#4155): a porcelain frame, the menu on it,
   one white sheet with a hairline. Same selectors as that shell so the order
   (this file loads last) decides, not weight. */
body:has(#workspace:not([hidden])):not(.biz-console) main { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
body:has(#workspace:not([hidden])):not(.biz-console) > header { background: var(--bg); }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top { border-bottom: 1.5px solid var(--line); }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 4px; letter-spacing: 0; }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top .eyebrow { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top .muted { font-size: 15px; }
body:has(#workspace:not([hidden])):not(.biz-console) #workspace h2 { font-size: 20px; font-weight: 400; }
body:has(#workspace:not([hidden])):not(.biz-console) #workspace .connection-card h2 { font-family: var(--text); font-size: 16px; font-weight: 700; }
body:has(#workspace:not([hidden])):not(.biz-console) #nav a { color: var(--ink-soft); font-weight: 600; }
@media (min-width: 1024px) {
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a { height: 44px; border-radius: 999px; padding: 0 16px; font-size: 15px; }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a:hover { background: var(--peri-3); color: var(--ink); }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a.on { background: var(--ink); color: #fff; }
  body:has(#workspace:not([hidden])):not(.biz-console) main { border-radius: 28px; }
}
@media (max-width: 1023px) {
  body:has(#workspace:not([hidden])):not(.biz-console) main { border-radius: 24px; }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav { background: var(--card); border-bottom: 1.5px solid var(--line); }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a.on { background: var(--ink); color: #fff; box-shadow: none; }
}

/* ── Projects (#4163 layout, re-coloured) ── */
.pj-card { padding: 18px 20px; }
.pj-card h2 { font-family: var(--display); font-weight: 400; font-size: 20px; }
.pj-meter { background: var(--peri-3); }
.pj-meter i { background: var(--accent); }
.pj-stat strong { font-family: var(--display); font-weight: 400; }
.pj-bento { border-radius: 20px; }
.pj-stat { border-inline-start-color: var(--line); }
.pj-switch { background: var(--peri-3); border-radius: 999px; padding: 4px; }
.pj-switch button { border-radius: 999px; min-height: 40px; color: var(--ink-soft); }
.pj-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.pj-col { background: var(--bg); border: 1.5px solid var(--line); border-radius: 20px; }
.pj-col.is-over { background: var(--peri-3); box-shadow: inset 0 0 0 2px var(--accent); }
.pj-task { border-radius: 14px; }
.pj-task:hover { border-color: var(--ink); }
.s-in_progress > h3::before, .s-in_progress > summary::before { background: var(--accent); }
.s-blocked > h3::before, .s-blocked > summary::before { background: var(--sun); box-shadow: 0 0 0 1.5px var(--ink); }
.s-done > h3::before, .s-done > summary::before { background: var(--ok); }
.pj-invite { background: var(--peri-3); border-radius: 20px; border: 1.5px solid var(--peri-2); }
.pj-orphans { border-radius: 20px; background: #fff8e6; border-color: #f3dc9a; }
.pj-take { border-radius: 999px; background: var(--ink); color: #fff; min-height: 40px; }
.pj-flag { background: #fde7e5; color: var(--due); }
.pj-linkish:hover { color: var(--accent); }
dialog.pj-panel { border-radius: 0; border: 0; }
html[dir="rtl"] dialog.pj-panel { border-radius: 0 24px 24px 0; }
html[dir="ltr"] dialog.pj-panel { border-radius: 24px 0 0 24px; }

/* ── The business console (.bz, #4070): its own tokens, re-pointed ── */
.bz {
  --frame: var(--bg); --sheet: var(--card); --ink: #141e40; --ink-2: var(--ink-soft); --ink-3: var(--ink-soft);
  --line: var(--line); --line-2: #c9cbd8; --hover: var(--peri-3);
  --teal: var(--accent); --teal-ink: #141e40; --teal-tint: var(--peri-3);
  --paid: var(--ok); --open: var(--due); --claim: var(--accent); --claim-t: var(--peri-3);
  font-family: var(--text);
}
.bz h1, .bz h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.bz ::selection { background: var(--peri); color: #141e40; }
.bz :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.bz .bz-btn { border-radius: 999px; padding: 0 16px; }
.bz .bz-btn.is-pri { background: var(--ink); border-color: var(--ink); color: #fff; }
.bz .bz-btn.is-pri:hover { background: var(--accent); border-color: var(--accent); }
.bz-mark { background: var(--ink); border-radius: 999px; }
.bz .bz-nav { border-radius: 999px; height: 38px; }
.bz .bz-nav[aria-current] { background: var(--ink); color: #fff; }
.bz .bz-nav[aria-current] .bz-c { color: var(--night-soft); }
.bz-seg { border-radius: 999px; }
.bz .bz-seg button { border-radius: 999px; }
.bz .bz-seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
body.biz-console #business-message { background: var(--ink); font-family: var(--text); border-radius: 999px; padding: 12px 20px; }

/* ── Footer ── */
footer { color: var(--ink-soft); }
footer a { color: var(--ink); }

@media (max-width: 760px) {
  .login-card { box-shadow: none; }
  html[dir="rtl"] .login-card { box-shadow: none; }
  .intro .v2-kubi { width: 96px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary, .secondary, .quiet, a.button, .connection-card, .pj-card { transition: none; }
  a.project-card:hover, .pj-card:hover { transform: none; }
}

/* ── Web chat: bubbles, like the site's WhatsApp mock ── */
.web-chat-log { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.web-chat-log li { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); }
.web-chat-log li p { margin: 2px 0 0; color: var(--ink); }
.web-chat-log li strong { font-size: 12px; color: var(--ink-soft); }
.web-chat-log .web-chat-you { align-self: flex-start; background: var(--wa); border-color: #cfe8bf; border-end-start-radius: 6px; }
.web-chat-log .web-chat-kubi { align-self: flex-end; border-end-end-radius: 6px; }

/* ── Call page: the phone in ink, the screen in the site's night ── */
.phone { background: var(--ink); border-radius: 44px; box-shadow: 10px 12px 0 var(--peri), inset 0 0 0 2px #2a3563; }
html[dir="rtl"] .phone { box-shadow: -10px 12px 0 var(--peri), inset 0 0 0 2px #2a3563; }
.phone-notch { background: #0b1230; }
.phone-screen { background: linear-gradient(180deg, var(--accent) 0%, var(--ink) 78%); font-family: var(--text); }
.phone-screen label { color: var(--night-soft); }
.phone-screen select { border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.phone-screen select option { color: var(--ink); }
.call-avatar { background: var(--peri); color: var(--ink); border: 3px solid #fff; }
.call-name { font-family: var(--display); font-weight: 400; font-size: 1.9rem; }
.call-button { background: var(--ok); box-shadow: 0 0 0 6px rgba(255,255,255,.14); }
.phone[data-state="live"] .call-button, .phone[data-state="connecting"] .call-button { background: var(--err); }
.call-button:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.call-transcript-box summary { font-weight: 600; cursor: pointer; }
.call-transcript li { border-radius: 14px; background: var(--wa); }
.call-transcript li.agent { background: var(--card); border: 1.5px solid var(--line); }
.call-transcript li.checking { border: 0; background: transparent; color: var(--ink-soft); }

/* ── Vault fill: same card as the login, the lock chip in sun ── */
#vault-fill #vault-fill-site { color: var(--ink); background: var(--peri-3); border-radius: 999px; padding: 6px 14px; display: inline-block; }
/* The vault-fill submit is built in portal.js without a class, so it gets the ink pill here */
#vault-fill-form button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-family: var(--text); font-size: 16px; font-weight: 700; margin-top: 8px; transition: transform .16s var(--ease), background-color .2s var(--ease); }
#vault-fill-form button:hover { background: #26346a; }
#vault-fill-form button:active { transform: scale(.97); }

/* ── A user review of the portal (#4279) ── */
/* Toasts: what a button says back ("Saved.", an error) shows here and goes
   away by itself; the in-page status line stays for screen readers only. */
.toast-source { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.toast-stack { position: fixed; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; max-width: min(460px, 100%); padding-block: 12px; padding-inline: 16px 8px; border-radius: 14px; background: var(--ink); color: #fff; font: 500 15px/1.45 var(--text); box-shadow: 0 10px 30px rgba(20, 30, 64, .22); border-inline-start: 4px solid var(--peri); animation: toast-in .22s var(--ease); overflow-wrap: anywhere; }
.toast[data-tone="error"] { border-inline-start-color: #ff8a7a; }
.toast-text { flex: 1; padding-block: 2px; }
.toast-close { flex: none; inline-size: 28px; block-size: 28px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.75); font-size: 20px; line-height: 1; cursor: pointer; }
.toast-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.toast-leaving { opacity: 0; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast-leaving { transition: none; } }

/* A form's own submit button never touches the field above it. */
#workspace form > button[type="submit"], #workspace form > button.primary { margin-block-start: 16px; }
#family-section form > button { justify-self: start; }
/* Native select arrows sat on the border: one chevron, inset from the end
   edge in both directions. */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none;
  padding-inline-end: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141e40' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 12px 8px !important;
  background-position: right 16px center !important;
}
[dir="rtl"] select:not([multiple]):not([size]) { background-position: left 16px center !important; }
.phone-screen select:not([multiple]):not([size]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
.language-switch:not([multiple]) { padding-inline-end: 34px !important; background-position: right 12px center !important; }
[dir="rtl"] .language-switch:not([multiple]) { background-position: left 12px center !important; }
/* A connected account and its remove button: side by side when there is room,
   and on a phone the button gets its own line instead of crowding the address. */
.app-account { justify-content: space-between; row-gap: 6px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .app-account { flex-direction: column; align-items: flex-start; }
}
/* "Stay signed in": one real control, a full-width tappable row with its box
   (the pill above the headline that said the same thing was not clickable). */
.login-card .check-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 15px; font-weight: 500; cursor: pointer; }
.login-card .check-row:hover { border-color: var(--ink); }
.login-card .check-row:has(input:checked) { border-color: var(--accent); background: var(--peri-3); }
.login-card .check-row input { flex: none; margin: 0; width: 20px; height: 20px; cursor: pointer; }

/* #4279 item 13: phone, participant circles clear of the divider */
@media (max-width: 760px) { .pj-people { padding-block: 10px; } }

/* #4279: connected agents card, "What was said" and "Disconnect" side by side with a gap. */
#people-items .people-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 12px; }
#people-items .people-actions button { margin-top: 0; }
#people-items .people-actions button.people-log { color: var(--ink); }
#people-items .connection-log { margin-top: 8px; }
