/* R³ CORE on the web — the shell around the shared views.
   Tokens only (/r3-tokens.css); docs/design-system.md. The bar, the tool
   title bars, the rail and the overlay follow the light/dark mode, as in
   Electron (owner's call, 2026-09-26): everything inherits data-theme and
   color-scheme from <html> (wm.js applyShellMode). */

@font-face { font-family: 'R3'; src: url('/fonts/R3-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'R3'; src: url('/fonts/R3-ExtraLight.otf') format('opentype'); font-weight: 200 300; font-display: swap; }

:root {
  --bar-w: 80px;
  --shell-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

/* `clip`, not `hidden`: a hidden box can still be scrolled by a script — and
   scrollIntoView inside a framed tool (CHAT's message list) scrolls every
   ancestor, which slid the whole shell up and aside. On <html>/<body> the
   browser treats clip as hidden, so wm.js also snaps the page back. */
html, body {
  margin: 0;
  height: 100%;
  overflow: clip;
}

body {
  background: var(--r3-bg-deep);
  color: var(--r3-text-primary);
  font-family: var(--r3-font-hebrew);
  -webkit-font-smoothing: antialiased;
}

/* ── the bar ─────────────────────────────────────────────────────────────── */
#bar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--bar-w);
  height: 100%;
  border: 0;
  display: none;
  z-index: 30;
  background: var(--r3-bg-deep);
}
body.bar-left #bar { right: auto; left: 0; }
body.signed-in #bar { display: block; }

/* ── the stage: everything beside the bar ────────────────────────────────── */
#stage {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: clip;
}
body.signed-in #stage { right: var(--bar-w); }
body.signed-in.bar-left #stage { right: 0; left: var(--bar-w); }

/* ── login ───────────────────────────────────────────────────────────────── */
#connect {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 50;
  background: var(--r3-bg-deep);
}
#connect[hidden] { display: none; }

/* Google's sign-in button, rendered by the shell over the connect view's
   #googleWrap (connect.html's CSP keeps Google out of the view itself). */
.r3-gis-slot {
  position: fixed;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
}
.r3-gis-slot[hidden] { display: none; }

/* ── tool windows ────────────────────────────────────────────────────────── */
.r3-win {
  position: absolute;
  overflow: clip;
  border-radius: 8px;
  border: 1px solid var(--r3-border);
  background: var(--r3-bg);
  box-shadow: var(--r3-shadow-card, 0 12px 34px rgb(0 0 0 / .30));
}
.r3-win.maximized { border-radius: 0; border: 0; }
.r3-win-chrome,
.r3-drawer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.r3-win-host { position: absolute; }
.r3-win-tool {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--r3-bg);
}
.r3-win-tool[hidden] { display: none; }

/* Project switch (wm.js crossfade): the next project's page sits on top,
   transparent, until it is ready — then fades in over the one on screen. */
.r3-win-tool { transition: opacity .22s ease; }
.r3-win-tool.r3-view-enter { opacity: 0; z-index: 1; }
.r3-win-tool.r3-view-in { z-index: 1; }
/* Meanwhile, a thin mint sweep along the top says the switch is under way. */
.r3-win.r3-switching .r3-win-host::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 2px;
  z-index: 2;
  background: var(--r3-mint);
  animation: r3-switch-sweep 1s ease-in-out infinite;
}
@keyframes r3-switch-sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) {
  .r3-win-tool { transition: none; }
  .r3-win.r3-switching .r3-win-host::after { animation-duration: 2.4s; }
}

/* Drag handle over the brand half of tool-frame.html's 32px title bar; the
   three buttons (3 × 46px, physical right) stay clickable. */
.r3-win-veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 138px;
  height: 32px;
  cursor: grab;
}
body.r3-dragging .r3-win-veil { cursor: grabbing; }

/* Resize grip on the corner away from the bar. */
.r3-win-resize {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 14px;
  height: 14px;
  cursor: nesw-resize;
  z-index: 2;
}
body.bar-left .r3-win-resize { left: auto; right: 0; cursor: nwse-resize; }
.r3-win.maximized .r3-win-resize { display: none; }

/* While dragging or resizing, no iframe may swallow the pointer. */
body.r3-dragging iframe { pointer-events: none; }
body.r3-dragging { user-select: none; }

/* ── loading: a window opens at once, and this covers it until the tool's
   page has loaded (wm.js watchLoad) — instead of an invisible wait. ───────── */
.r3-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--r3-bg);
  pointer-events: none;
  transition: opacity .22s ease;
}
.r3-loader.out { opacity: 0; }
/* Where the title bar will be — skipped for skip-frame tools. */
.r3-loader-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  border-bottom: 1px solid var(--r3-border-subtle, var(--r3-border));
  background: linear-gradient(90deg, var(--r3-bg-elevated) 30%, color-mix(in srgb, var(--r3-text-tertiary) 14%, var(--r3-bg-elevated)) 50%, var(--r3-bg-elevated) 70%) 0 0 / 200% 100%;
  animation: r3-shimmer 1.3s linear infinite;
}
.r3-win.skip-frame .r3-loader-bar,
.r3-drawer .r3-loader-bar { display: none; }
.r3-loader-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--r3-border);
  border-top-color: var(--r3-mint);
  animation: r3-spin .8s linear infinite;
}
.r3-loader-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--r3-text-tertiary);
}
@keyframes r3-spin { to { transform: rotate(360deg); } }
/* MIND's frame while its page loads (handlers/globe.js createMind): the box is there at once, breathing softly, so a
   click on פרויקטים / a tile never looks like nothing happened */
.r3-mind-drawer.loading { animation: r3-mind-wait .9s ease-in-out infinite alternate; }
@keyframes r3-mind-wait { to { background-color: color-mix(in srgb, var(--r3-color-bg, #F4F3EF) 88%, var(--r3-color-text-primary, #060910)); } }
@media (prefers-reduced-motion: reduce) { .r3-mind-drawer.loading { animation: none; } }
@keyframes r3-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  .r3-loader-ring { animation-duration: 2.4s; }
  .r3-loader-bar { animation: none; }
}

/* ── drawers and panels ──────────────────────────────────────────────────── */
.r3-drawer {
  position: absolute;
  overflow: clip;
  background: var(--r3-bg);
  box-shadow: var(--r3-shadow-card, 0 12px 34px rgb(0 0 0 / .30));
}
.r3-drawer[data-drawer="user-panel"],
.r3-drawer[data-drawer="info"],
.r3-drawer[data-drawer="projects"],
.r3-drawer[data-drawer="news"],
.r3-drawer[data-drawer="sums"],
.r3-drawer[data-drawer="sums-preview"],
.r3-drawer[data-drawer="tick"],
.r3-drawer[data-drawer="trns"] {
  /* Transparent-window views draw their own card. */
  background: transparent;
  box-shadow: none;
}

/* ── overlay: tooltip, restore popup, toast ──────────────────────────────── */
#overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
#overlay > * { pointer-events: auto; }

.r3-tip {
  position: fixed;
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid var(--shell-accent, var(--r3-mint));
  background: var(--r3-bg);
  color: var(--r3-text-primary);
  font: 600 12px/1.4 var(--r3-font-hebrew);
  letter-spacing: .2px;
  white-space: nowrap;
  pointer-events: none !important;
  box-shadow: 0 4px 16px rgb(0 0 0 / .5);
  opacity: 1;
  transition: opacity 300ms ease;
}
.r3-tip[hidden], .r3-restore[hidden], .r3-toast[hidden], .r3-offline[hidden], .r3-narrow[hidden] { display: none; }
.r3-tip.fading { opacity: 0; }

.r3-restore {
  position: fixed;
  width: 210px;
  max-height: 380px;
  overflow-y: auto;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--shell-accent, var(--r3-mint));
  background: var(--r3-bg);
  box-shadow: 0 12px 34px rgb(0 0 0 / .62);
}
.r3-restore.in { animation: r3-restore-in .17s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes r3-restore-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
body.bar-left .r3-restore.in { animation-name: r3-restore-in-left; }
@keyframes r3-restore-in-left { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.r3-restore .hdr {
  font: 500 9px/1 var(--shell-font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--r3-text-tertiary);
  padding: 5px 9px 6px;
}
.r3-restore .row {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--r3-text-secondary);
  font: 500 12.5px/1.2 var(--r3-font-hebrew);
  white-space: nowrap;
}
.r3-restore .row:hover,
.r3-restore .row:focus-visible { background: var(--r3-mint-muted); color: var(--r3-text-primary); }
.r3-restore .sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--shell-accent, var(--r3-mint));
}
.r3-restore .nm { overflow: hidden; text-overflow: ellipsis; }

/* the place pack's run card, free on the canvas (runcard.js; Ron, 2026-11-11) */
.r3-runcard {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 300px;
  max-width: calc(100vw - 32px);
  display: grid;
  gap: 9px;
  padding: 14px 16px 12px;
  border-radius: 4px;
  border: 1px solid var(--r3-border);
  background: var(--r3-bg-elevated);
  color: var(--r3-text-primary);
  font: 400 12px/1.4 var(--r3-font-hebrew);
  box-shadow: 0 18px 50px rgb(6 9 16 / .30), 0 2px 6px rgb(6 9 16 / .16);
  cursor: grab;
  user-select: none;
  touch-action: none;
  animation: r3-runcard-in .32s cubic-bezier(.2, .9, .3, 1.25) both;
}
.r3-runcard.held { cursor: grabbing; box-shadow: 0 24px 60px rgb(6 9 16 / .36); }
.r3-runcard.out { opacity: 0; transition: opacity .2s ease; }
@keyframes r3-runcard-in { from { opacity: 0; translate: 0 14px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .r3-runcard { animation: none; } }
.r3-runcard .rc-top, .r3-runcard .rc-mid, .r3-runcard .rc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.r3-runcard .rc-t { color: var(--r3-text-secondary); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r3-runcard .rc-t em { font-style: normal; color: var(--r3-text-primary); }
.r3-runcard .rc-pc { font: 600 12px var(--shell-font-mono); font-variant-numeric: tabular-nums; color: var(--shell-accent, var(--r3-mint)); }
.r3-runcard .rc-bar { height: 3px; border-radius: 2px; background: var(--r3-border); overflow: hidden; }
.r3-runcard .rc-bar i { display: block; height: 100%; background: var(--shell-accent, var(--r3-mint)); transition: width .6s ease; }
.r3-runcard .rc-n { display: flex; align-items: baseline; gap: 6px; }
.r3-runcard .rc-n b { font: 600 22px var(--shell-font-mono); font-variant-numeric: tabular-nums; }
.r3-runcard .rc-n span, .r3-runcard .rc-sub { color: var(--r3-text-tertiary); font-size: 11px; }
.r3-runcard bdi { font-family: var(--shell-font-mono); font-variant-numeric: tabular-nums; }
.r3-runcard .rc-foot { align-items: center; padding-top: 8px; border-top: 1px solid var(--r3-border); }
.r3-runcard .rc-step { color: var(--r3-text-secondary); font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r3-runcard .rc-stop { all: unset; flex: none; padding: 0 4px; cursor: pointer; color: var(--r3-text-tertiary); font: 600 11px var(--r3-font-hebrew); }
.r3-runcard .rc-stop:hover { color: #FF5A75; }
.r3-runcard .rc-stop:focus-visible { outline: 2px solid var(--shell-accent, var(--r3-mint)); outline-offset: 2px; }

.r3-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--r3-border);
  background: var(--r3-bg-elevated);
  color: var(--r3-text-primary);
  font: 500 13px/1.3 var(--r3-font-hebrew);
  box-shadow: 0 12px 34px rgb(0 0 0 / .45);
}
.r3-toast.in { animation: r3-toast-in .32s cubic-bezier(0.33, 1, 0.68, 1) both; }
@keyframes r3-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.r3-toast .lbl {
  font: 500 11px/1 var(--shell-font-mono);
  letter-spacing: .08em;
  color: var(--r3-text-tertiary);
}
.r3-toast a {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--r3-mint);
  color: var(--r3-mint-text);
  font-weight: 600;
  text-decoration: none;
}
.r3-toast a:hover { background: var(--r3-mint-hover); }
.r3-toast a:focus-visible { outline: 2px solid var(--r3-border-focus); outline-offset: 2px; }

/* The server did not answer — a quiet pill at the top of the stage. */
.r3-offline {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--r3-border);
  background: var(--r3-bg-elevated);
  color: var(--r3-text-secondary);
  font: 500 12px/1.3 var(--r3-font-hebrew);
  box-shadow: 0 6px 20px rgb(0 0 0 / .3);
}

/* Phone-size screens only: one line, dismissable. */
.r3-narrow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--r3-bg-elevated);
  border-bottom: 1px solid var(--r3-border);
  color: var(--r3-text-primary);
  font: 500 13px/1.4 var(--r3-font-hebrew);
}
.r3-narrow span { flex: 1; }
.r3-narrow button {
  border: 0;
  background: none;
  color: var(--r3-text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.r3-narrow button:focus-visible { outline: 2px solid var(--r3-border-focus); border-radius: 4px; }
@media (max-width: 600px) {
  .r3-narrow { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .r3-restore.in, .r3-toast.in { animation: none; }
  .r3-tip { transition: none; }
}

/* ── the stage's own surface ─────────────────────────────────────────────
   A window that is not maximized leaves the stage showing around it. Give that
   ground a designed surface (design-system: bg-deep + the ambient glow, with a
   fine grid like PIXL's) so it reads as the workspace, not as a gap. With
   nothing open, a faint RTPT wordmark and a hint sit in the middle and fade out as a
   window or drawer comes in. Tokens only; follows data-theme. */
#stage {
  background:
    var(--r3-gradient-glow),
    linear-gradient(var(--r3-border-subtle) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--r3-border-subtle) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--r3-bg-deep);
}
#stage::before {
  /* slow breathing accent light, low enough to never compete with a tool */
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side at 50% 45%, var(--r3-mint-glow), transparent 70%);
  opacity: .12;
  pointer-events: none;
  animation: r3-stage-breathe 14s ease-in-out infinite alternate;
}
#stage::after {
  /* the empty state: the RTPT wordmark (the real R3 face, rendered to a PNG)
     as a tinted silhouette + one line of hint */
  content: 'בחרו כלי מהסרגל';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding-top: 48px;
  width: 280px;
  text-align: center;
  font: 500 13px/1.4 var(--r3-font-hebrew);
  letter-spacing: .02em;
  color: var(--r3-text-tertiary);
  background: linear-gradient(var(--r3-text-tertiary), var(--r3-text-tertiary)) top center / 200px 32px no-repeat;
  -webkit-mask: url('/email/rtpt-mark.png') top center / 200px 32px no-repeat, linear-gradient(#000, #000) bottom / 100% 24px no-repeat;
          mask: url('/email/rtpt-mark.png') top center / 200px 32px no-repeat, linear-gradient(#000, #000) bottom / 100% 24px no-repeat;
  opacity: .55;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.33, 1, 0.68, 1), transform 320ms cubic-bezier(0.33, 1, 0.68, 1);
}
#stage:has(.r3-win[data-visible="1"], .r3-drawer[data-visible="1"])::after {
  opacity: 0;
  transform: translate(-50%, -46%);
}
body:not(.signed-in) #stage::after { opacity: 0; }
@keyframes r3-stage-breathe {
  from { transform: translate(-3%, -2%) scale(1); }
  to   { transform: translate(3%, 2%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  #stage::before { animation: none; }
  #stage::after { transition: none; }
}

/* ── the first-run tour (tour.js) ────────────────────────── */
.r3-tour-offer, .r3-tour-banner {
  position: fixed;
  border: 1px solid var(--r3-border);
  border-radius: 4px;
  background: var(--r3-bg-elevated);
  color: var(--r3-text-primary);
  font: 500 13px/1.35 var(--r3-font-hebrew);
  animation: r3-tour-in .22s ease both;
}
.r3-tour-offer {
  top: 0;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0 0 16px 16px;
  background: var(--r3-mint);
  overflow: hidden;
  animation: r3-tour-drop .55s cubic-bezier(0.22, 1, 0.36, 1) .25s both;
}
.r3-tour-offer .r3-tour-cta {
  height: 38px;
  padding: 0 20px 0 12px;
  background: transparent;
  font-size: 14px;
}
.r3-tour-offer .r3-tour-dl {
  padding: 0 16px;
  border-radius: 0;
  border-inline-start: 1px solid color-mix(in srgb, var(--r3-mint-text) 28%, transparent);
}
.r3-tour-offer .r3-tour-x {
  width: 34px;
  height: 38px;
  border-radius: 0;
  color: var(--r3-mint-text);
  opacity: .7;
}
.r3-tour-offer .r3-tour-x:hover { background: transparent; color: var(--r3-mint-text); opacity: 1; }
.r3-tour-offer .r3-tour-cta:focus-visible, .r3-tour-offer .r3-tour-x:focus-visible {
  outline-color: var(--r3-mint-text);
  outline-offset: -3px;
}
.r3-tour-cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  background: var(--r3-mint);
  color: var(--r3-mint-text);
  font: 600 13px/1 var(--r3-font-hebrew);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.r3-tour-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--r3-text-secondary);
  cursor: pointer;
}
.r3-tour-x:hover { background: var(--r3-bg-hover); color: var(--r3-text-primary); }
.r3-tour-cta:focus-visible, .r3-tour-x:focus-visible, .r3-tour-link:focus-visible {
  outline: 2px solid var(--r3-mint);
  outline-offset: 2px;
}
.r3-tour-mind {
  position: fixed;
  z-index: 0;
  border: 0;
  background: transparent;
  pointer-events: none !important;
}
.r3-tour-pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  transform-origin: 0 0;
  pointer-events: none !important;
}
.r3-tour-pointer svg {
  display: block;
  fill: var(--r3-mint);
  stroke: var(--r3-bg);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform-origin: 3px 2px;
}
/* Drawn, not a tooltip: an ink outline and a hard offset shadow in the accent. */
.r3-tour-bubble {
  position: fixed;
  z-index: 2;
  display: grid;
  gap: 0;
  padding: 5px 10px 7px;
  border: 1.5px solid var(--r3-text-primary);
  border-radius: 4px;
  background: var(--r3-bg-elevated);
  color: var(--r3-text-primary);
  font: 500 13px/1.3 var(--r3-font-hebrew);
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--r3-mint);
  rotate: var(--tilt, 0deg);
  pointer-events: none !important;
  animation: r3-tour-pop .34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.r3-tour-bubble { text-align: center; }
.r3-tour-title { color: var(--r3-text-secondary); font-size: calc(12px * var(--r3-tour-size, 1)); line-height: 1.2; }
.r3-tour-title b { font-size: 14px; font-weight: 700; color: var(--r3-mint); }
.r3-tour-bubble > span { font-size: 14px; font-weight: 500; }
.r3-tour-title b.r3-tour-brand { font-size: calc(23px * var(--r3-tour-size, 1)); line-height: 1; margin-inline-start: 2px; vertical-align: -2px; }
.r3-tour-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--r3-text-secondary);
  font-size: calc(12px * var(--r3-tour-size, 1));
}
.r3-tour-chips i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--r3-text-primary);
  font: 600 calc(13px * var(--r3-tour-size, 1))/1.2 var(--r3-font-hebrew);
  white-space: nowrap;
}
.r3-tour-chips svg { flex: none; width: 1.08em; height: 1.08em; }
/* AI is alive: the one word that moves, in our face and in no colour of its own. */
.r3-tour-chips b {
  display: inline-block;
  font-family: var(--r3-font-brand);
  font-size: calc(15px * var(--r3-tour-size, 1));
  font-weight: 400;
  color: var(--r3-text-primary);
  animation: r3-tour-ai 1.5s ease-in-out infinite;
}
@keyframes r3-tour-ai {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  25% { transform: translateY(-3px) rotate(-7deg) scale(1.12); }
  60% { transform: translateY(1px) rotate(6deg) scale(.98); }
}
.r3-tour-brand {
  font-family: var(--r3-font-brand);
  font-style: normal;
  font-weight: 400 !important;
  letter-spacing: .04em;
}
.r3-tour-line {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none !important;
}
.r3-tour-line path {
  fill: none;
  stroke: var(--r3-text-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: r3-tour-draw .26s ease-out both;
}
.r3-tour-skip {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
}
.r3-tour-link {
  padding: 6px 10px;
  border: 1px solid var(--r3-border);
  border-radius: 3px;
  background: var(--r3-bg-elevated);
  color: var(--r3-text-secondary);
  font: 500 12px/1 var(--r3-font-hebrew);
  cursor: pointer;
}
.r3-tour-banner {
  top: 0;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  white-space: nowrap;
  border-color: var(--r3-mint);
  animation: r3-tour-spring .8s linear both;
}
/* The spring overshoots: this keeps the banner joined to the top of the screen. */
.r3-tour-banner::before {
  content: '';
  position: absolute;
  inset: -40px 0 100% 0;
  background: inherit;
}
.r3-tour-mark {
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--r3-mint);
  -webkit-mask: url('/r3-logo.svg') center / contain no-repeat;
  mask: url('/r3-logo.svg') center / contain no-repeat;
}
.r3-tour-words { display: grid; gap: 4px; }
.r3-tour-words b { font: 700 19px/1.2 var(--r3-font-hebrew); }
.r3-tour-words span { font-size: 13px; color: var(--r3-text-secondary); }
.r3-tour-stay {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--r3-border);
  border-radius: 3px;
  background: transparent;
  color: var(--r3-text-primary);
  font: 500 15px/1 var(--r3-font-hebrew);
  white-space: nowrap;
  cursor: pointer;
}
.r3-tour-stay:hover { background: var(--r3-bg-hover); }
.r3-tour-stay:focus-visible {
  outline: 2px solid var(--r3-mint);
  outline-offset: 2px;
}
.r3-tour-banner .r3-tour-cta {
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.r3-tour-square {
  position: fixed;
  top: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 2px;
  background: var(--r3-mint);
  opacity: 0;
  pointer-events: none !important;
  animation: r3-tour-fall var(--time) cubic-bezier(0.3, 0.6, 0.5, 1) var(--wait) both;
}
@keyframes r3-tour-spring {
  0%   { transform: translateY(-100%); }
  45%  { transform: translateY(14px); }
  70%  { transform: translateY(-5px); }
  85%  { transform: translateY(2px); }
  100% { transform: none; }
}
@keyframes r3-tour-fall {
  0%   { opacity: 0; transform: translate(0, 40px) rotate(0); }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift), var(--fall)) rotate(var(--turn)); }
}
@keyframes r3-tour-pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes r3-tour-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes r3-tour-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes r3-tour-drop { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .r3-tour-offer, .r3-tour-banner, .r3-tour-bubble, .r3-tour-line path, .r3-tour-chips b { animation: none; }
  .r3-tour-square { display: none; }
}
