/**
 * Route5 desk branding — Mercedes pink (#ff1493) accents + Linear purple kill.
 * Stronger visual distance from stock Linear (rail, radius, wash, type).
 */
:root {
  --r5-pink: #ff1493;
  --r5-pink-soft: rgba(255, 20, 147, 0.18);
  --r5-pink-glow: rgba(255, 20, 147, 0.28);
  --r5-pink-tint: rgba(255, 20, 147, 0.08);
  --r5-accent: #ff1493;
  --r5-canvas: #0b0a0d;
  --color-accent: #ff1493 !important;
  --color-accent-tint: rgba(255, 20, 147, 0.12) !important;
  --color-brand-accent: #ff1493 !important;
  --color-focus: #ff1493 !important;
  --focus-color: #ff1493 !important;
  --color-purple: #ff1493 !important;
  --color-indigo: #ff1493 !important;
  --color-violet: #ff1493 !important;
  --sx-color-accent: #ff1493 !important;
  --control-border-radius: 8px !important;
}

html[data-theme="dark"],
html.dark {
  color-scheme: dark;
  background-color: var(--r5-canvas) !important;
}

/* The desk theme is the boot skeleton's pink corner glow, matched exactly so the app
   fades in over the skeleton with no colour jump. Painted on the content surface because
   Linear covers the page with its own opaque base colour, and repeated on the layout
   child so the two stay seamless. `fixed` keeps both layers aligned to the viewport. */
html[data-theme="dark"] main,
html.dark main,
html[data-theme="dark"] main > div:first-child,
html.dark main > div:first-child {
  background-color: var(--r5-canvas) !important;
  background-image:
    radial-gradient(1400px 720px at 8% -12%, rgba(255, 20, 147, 0.16), transparent 58%),
    radial-gradient(1000px 560px at 100% -4%, rgba(255, 20, 147, 0.1), transparent 52%),
    radial-gradient(800px 400px at 50% 100%, rgba(255, 20, 147, 0.05), transparent 55%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

html[data-theme="dark"] body,
html.dark body,
html[data-theme="dark"] #root,
html.dark #root {
  background: transparent !important;
}

/* Hide leftover third-party brand artwork in the desk SPA — logos only, not illustrations */
img[src*="notion"][src*="logo"],
img[src*="linear.app"][src*="logo"],
img[src*="linear.app"][src*="favicon"],
img[alt="Notion"],
img[alt="Linear"],
img[alt*="Notion logo" i],
img[alt*="Linear logo" i] {
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}
/* Keep Linear empty-state illustrations — light Route5 tint only (never blank the page) */
[data-r5-empty] svg[data-r5-linear-art="1"],
svg[data-r5-linear-art="1"] {
  opacity: 0.94 !important;
  filter: hue-rotate(305deg) saturate(1.2) !important;
  visibility: visible !important;
  display: inline-block !important;
  pointer-events: none !important;
}

/* Selection tint */
::selection {
  background: rgba(255, 20, 147, 0.22) !important;
  color: #fff !important;
}

#preloader #logo svg,
#preloaderContent #logo svg,
svg:has(path[d*="M37.3833"]),
svg:has(path[d*="M34.6753"]),
svg:has(path[d*="M28.2357"]),
svg:has(path[d*="M19.2493"]),
/* Goals empty state — Linear's mark sits inside each pill of the illustration */
svg:has(path[d*="m8.1 12.01"]) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* Insights — live digest when analytics API is wired; hide empty Linear error card */
[data-r5-insights-hidden="1"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}
#route5-insights-live {
  margin: 0 0 24px;
  padding: 28px 28px 22px;
  border-radius: 16px;
  background: var(--r5-craft-elev, #141416);
  border: 1px solid var(--r5-craft-line, rgba(255, 255, 255, 0.08));
  color: var(--r5-craft-text, #f5f5f7);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", ui-sans-serif, system-ui, sans-serif;
  animation: r5-agent-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#route5-insights-live .r5-ins-head h1 {
  margin: 0 0 6px;
  font: 600 22px/1.2 inherit;
  letter-spacing: -0.03em;
}
#route5-insights-live .r5-ins-head p {
  margin: 0 0 18px;
  color: rgba(245, 245, 247, 0.52);
  font: 450 13.5px/1.45 inherit;
  max-width: 520px;
}
#route5-insights-live .r5-ins-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
#route5-insights-live .r5-ins-stats > div {
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#route5-insights-live .r5-ins-stats strong {
  font: 600 22px/1.1 inherit;
  letter-spacing: -0.03em;
}
#route5-insights-live .r5-ins-stats span {
  font: 450 12px/1 inherit;
  color: rgba(245, 245, 247, 0.45);
}
#route5-insights-live .r5-ins-chart-wrap {
  padding: 8px 4px 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
#route5-insights-live .r5-ins-chart {
  width: 100%;
  height: auto;
  display: block;
}
#route5-insights-live .r5-ins-bar {
  fill: rgba(255, 255, 255, 0.72);
  transition: fill 160ms ease;
}
#route5-insights-live .r5-ins-bar:hover {
  fill: #ff1493;
}
#route5-insights-live .r5-ins-label {
  fill: rgba(245, 245, 247, 0.4);
  font-size: 11px;
}
#route5-insights-live .r5-ins-note {
  margin: 12px 0 0;
  font: 450 12px/1.4 inherit;
  color: rgba(245, 245, 247, 0.4);
}
html.light #route5-insights-live,
html[data-theme="light"] #route5-insights-live {
  background: #fff;
  border-color: #e5e5ea;
  color: #1d1d1f;
}
html.light #route5-insights-live .r5-ins-head p,
html[data-theme="light"] #route5-insights-live .r5-ins-head p {
  color: #6e6e73;
}
html.light #route5-insights-live .r5-ins-stats > div,
html[data-theme="light"] #route5-insights-live .r5-ins-stats > div {
  background: #f5f5f7;
  border-color: #e5e5ea;
}
html.light #route5-insights-live .r5-ins-bar,
html[data-theme="light"] #route5-insights-live .r5-ins-bar {
  fill: #1d1d1f;
}
@media (max-width: 720px) {
  #route5-insights-live .r5-ins-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sidebar mark — website /icon.png, no nested purple frame */
[data-testid="sidebar-logo"],
#logo,
[data-route5-mark="1"] {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
}
[data-route5-mark="1"]::before {
  background: transparent url(/icon.png?v=r5-5r-v8) center / contain no-repeat !important;
  border-radius: 22% !important;
  box-shadow: none !important;
}
img[data-route5-logo="1"],
[data-testid="sidebar-logo"] img,
#logo img,
[role="menu"] img[src*="icon.png"],
[role="menuitem"] img[src*="icon.png"] {
  border-radius: 22% !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
}
[data-r5-insights-note] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  text-align: center;
}
[data-r5-insights-note] strong {
  font-size: 14px;
  font-weight: 600;
  color: #ff6bb5;
}
[data-r5-insights-note] span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

/* "Try" is Route5-owned: three real actions, no Linear upsell placeholder. */
[data-r5-try-flexes="1"] {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 4px;
}
[data-r5-try-flexes="1"] > button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px !important;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font: 500 12px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-align: left;
  cursor: pointer;
}
[data-r5-try-flexes="1"] > button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.94);
}
[data-r5-try-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  min-width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1;
}

#preloaderContent {
  background: url(/icon.png) center / contain no-repeat !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto;
}

/* Sidebar / org mark — permanent Route5 R5 mark, larger, never letter avatars */
[data-route5-mark="1"] {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
}
[data-route5-custom-logo="1"]::before {
  display: none !important;
  content: none !important;
}
[data-route5-custom-logo="1"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
[data-route5-custom-logo="1"] > img,
[data-route5-custom-logo="1"] img[data-route5-logo="1"] {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: none !important;
  background: #0a0a0a;
}
[data-route5-mark="1"] > svg,
[data-route5-mark="1"] img:not([data-route5-logo]) {
  display: none !important;
}
[data-route5-mark="1"]::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000 url(/icon.png) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
[data-route5-mark="1"] img[data-route5-logo="1"] {
  display: block !important;
}
[data-route5-mark="1"]:has(img[data-route5-logo="1"])::before {
  display: none !important;
}
[data-route5-mark-size="hero"]::before {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}
img[data-route5-logo="1"] {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: none !important;
  background: #0a0a0a;
}

/* Workspace switcher / org menu chips — match sidebar mark size */
[role="menu"] img[src*="icon.png"],
[role="menuitem"] img[src*="icon.png"],
[role="menu"] img[src*="/api/r5e/desk-mirror/"],
[role="menuitem"] img[src*="/api/r5e/desk-mirror/"],
[role="dialog"] img[src*="/api/r5e/desk-mirror/"],
[data-testid="sidebar-logo"] img,
#logo img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Settings workspace logo preview */
[data-testid="workspace-logo"] img,
button[aria-label="Logo"] img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
  object-fit: cover !important;
}

/* Primary CTAs → Mercedes pink (#ff1493) */
button[data-route5-pink],
a[data-route5-pink],
[data-route5-accent="1"],
button[class*="primary" i]:not([data-r5-beta]):not([data-r5-soon]),
a[class*="primary" i]:not([data-r5-beta]):not([data-r5-soon]) {
  background-color: #ff1493 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

button[style*="5e6ad2" i],
button[style*="7156d2" i],
button[style*="6e56cf" i],
button[style*="6366f1" i],
button[style*="7c3aed" i],
button[style*="8b5cf6" i],
button[style*="5856d6" i],
button[style*="4f46e5" i],
a[style*="5e6ad2" i],
a[style*="7156d2" i],
button[style*="rgb(94, 106, 210)" i],
button[style*="rgb(94,106,210)" i],
button[style*="rgb(113, 86, 210)" i],
button[style*="rgb(113,86,210)" i] {
  background-color: #ff1493 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Focus rings */
:focus-visible {
  outline-color: #ff1493 !important;
}

/* Coming soon / beta rows */
[data-r5-light-soon="1"],
[data-r5-beta="1"],
[data-r5-soon="1"] {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  filter: grayscale(0.25);
}

/* Hide deletion dialogs + cancel toasts without flashing */
[role="dialog"][data-r5-deletion-hide="1"],
[role="alertdialog"][data-r5-deletion-hide="1"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
[data-r5-toast-hide="1"],
.r5-hide-deletion-toast {
  display: none !important;
}


/* Floating Ask Cleo panel retired — Chat is a sidebar page */
#route5-cleo-panel,
#route5-cleo-home,
#route5-cleo-dock,
.r5-ask-cleo-fab,
[data-r5-ask-cleo-dock] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
/* No decorative brand marks / Linear splash glyphs inside Chat page */
.r5n-agent img.r5-cleo-mark,
.r5n-agent .r5-cleo-mark,
.r5n-agent-empty::before,
.r5n-agent-empty::after,
.r5n-agent-stage::after,
.r5n-agent [data-r5-agent-splash],
#route5-chat-hub svg[class*="Decorative"],
#route5-chat-hub .r5n-agent-empty > svg:first-child {
  display: none !important;
}
/* Purge nested purple/black frames around sidebar mark — clean 5R only */
[data-testid="sidebar-logo"],
#logo,
[data-route5-mark="1"],
[data-testid="sidebar-logo"]::before,
[data-route5-mark="1"]::before,
#logo::before {
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  filter: none !important;
}
/* Ask Cleo — small Linear Agent “New chat” panel (does not replace full hub) */
#route5-cleo-panel {
  display: none;
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  top: auto !important;
  width: min(420px, calc(100vw - 24px)) !important;
  height: min(560px, calc(100vh - 56px)) !important;
  z-index: 2147483600 !important;
  flex-direction: column !important;
  background: #1a1a1c !important;
  color: #f5f5f7 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui,
    sans-serif !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  isolation: isolate;
  animation: r5-cleo-pop 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#route5-cleo-panel.is-open {
  display: flex !important;
}
#route5-cleo-panel.is-min {
  height: 44px !important;
  width: min(280px, calc(100vw - 24px)) !important;
}
#route5-cleo-panel.is-min .r5-cleo-stage,
#route5-cleo-panel.is-min .r5-cleo-form {
  display: none !important;
}
@keyframes r5-cleo-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#route5-cleo-home,
#route5-cleo-home.is-open {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
#route5-home-shell ~ #route5-cleo-panel.is-open,
html:has(#route5-home-shell) #route5-cleo-panel.is-open {
  display: flex !important;
}
html[data-r5-cleo-open="1"] [data-r5-agent-hide="1"],
[data-r5-agent-hide="1"] {
  display: none !important;
}
#route5-cleo-panel .r5-cleo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  min-height: 40px;
  position: relative;
  z-index: 5;
  background: #1a1a1c;
}
#route5-cleo-panel .r5-cleo-title {
  font: 550 13px/1.2 inherit;
  color: rgba(245, 245, 247, 0.88);
  letter-spacing: -0.01em;
}
#route5-cleo-panel .r5-cleo-head-acts {
  display: inline-flex;
  gap: 1px;
  position: relative;
  z-index: 6;
}
#route5-cleo-panel .r5-cleo-x,
#route5-cleo-panel .r5-cleo-expand,
#route5-cleo-panel .r5-cleo-min {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(245, 245, 247, 0.55) !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 7 !important;
  padding: 0 !important;
}
#route5-cleo-panel .r5-cleo-x:hover,
#route5-cleo-panel .r5-cleo-expand:hover,
#route5-cleo-panel .r5-cleo-min:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
#route5-cleo-panel .r5-cleo-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0) 0 0 / 28px 28px;
}
#route5-cleo-panel .r5-cleo-thread {
  flex: 1;
  overflow: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
#route5-cleo-panel .r5-cleo-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 12px;
  gap: 10px;
  min-height: 0;
}
#route5-cleo-panel .r5-cleo-empty[hidden],
#route5-cleo-panel .r5-cleo-thread[hidden] {
  display: none !important;
}
#route5-cleo-panel .r5-cleo-mark {
  width: 36px;
  height: 36px;
  opacity: 0.9;
  margin-bottom: 4px;
}
#route5-cleo-panel .r5-cleo-empty h1 {
  margin: 0;
  font: 600 18px/1.25 inherit;
  letter-spacing: -0.02em;
  color: #fff;
}
#route5-cleo-panel .r5-cleo-empty p {
  margin: 0 0 8px;
  font: 450 13px/1.4 inherit;
  color: rgba(245, 245, 247, 0.5);
  max-width: 280px;
}
#route5-cleo-panel .r5-cleo-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 340px;
}
#route5-cleo-panel .r5-cleo-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 245, 247, 0.88);
  border-radius: 999px;
  padding: 7px 12px;
  font: 500 12.5px/1.2 inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
#route5-cleo-panel .r5-cleo-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}
#route5-cleo-panel .r5-cleo-chip svg {
  opacity: 0.7;
  flex-shrink: 0;
}
#route5-cleo-panel .r5-cleo-bubble {
  max-width: 92%;
  font: 450 13.5px/1.45 inherit;
  color: rgba(245, 245, 247, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
}
#route5-cleo-panel .r5-cleo-bubble.is-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 4px 12px;
  padding: 8px 12px;
  color: #fff;
}
#route5-cleo-panel .r5-cleo-bubble.is-ai {
  align-self: flex-start;
  padding: 2px 0;
}
#route5-cleo-panel .r5-cleo-bubble.is-thinking {
  color: rgba(245, 245, 247, 0.4);
  font-style: italic;
}
#route5-cleo-panel .r5-cleo-form {
  flex-shrink: 0;
  margin: 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121214;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 3;
}
#route5-cleo-panel #route5-cleo-input {
  width: 100%;
  border: 0 !important;
  resize: none;
  background: transparent !important;
  color: #fff !important;
  border-radius: 0 !important;
  padding: 2px 4px !important;
  font: 450 13.5px/1.4 inherit !important;
  outline: none !important;
  min-height: 40px !important;
  max-height: 120px;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
#route5-cleo-panel #route5-cleo-input::placeholder {
  color: rgba(244, 244, 245, 0.38);
}
#route5-cleo-panel .r5-cleo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#route5-cleo-panel .r5-cleo-toolbar-left,
#route5-cleo-panel .r5-cleo-toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
#route5-cleo-panel .r5-cleo-skills {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.55);
  border-radius: 8px;
  padding: 5px 8px;
  font: 500 12px/1 inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#route5-cleo-panel .r5-cleo-skills:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#route5-cleo-panel .r5-cleo-skills-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 200px;
  padding: 6px;
  border-radius: 10px;
  background: #222226;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#route5-cleo-panel .r5-cleo-skills-menu[hidden] {
  display: none !important;
}
#route5-cleo-panel .r5-cleo-skills-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f5f5f7;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  font: 450 12.5px/1.2 inherit;
  cursor: pointer;
}
#route5-cleo-panel .r5-cleo-skills-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}
#route5-cleo-panel .r5-cleo-attach,
#route5-cleo-panel .r5-cleo-send {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
#route5-cleo-panel .r5-cleo-attach:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#route5-cleo-panel .r5-cleo-send {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}
#route5-cleo-panel .r5-cleo-form[data-empty="0"] .r5-cleo-send {
  background: #fff;
  color: #0c0c0e;
}
#route5-cleo-panel .r5-cleo-send:disabled {
  opacity: 0.45;
  cursor: default;
}
#route5-cleo-home {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e8e8ea;
}
#route5-cleo-home.is-open { display: flex; }
#route5-cleo-home .r5-cleo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
#route5-cleo-home .r5-cleo-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  height: min(560px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141415;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: r5-cleo-dialog-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes r5-cleo-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#route5-cleo-home:not([data-r5-cleo-mode="full"]) .r5-cleo-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}
#route5-cleo-home .r5-cleo-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
#route5-cleo-home .r5-cleo-dialog-title {
  border: 0;
  background: transparent;
  color: #f2f2f4;
  font: 500 13px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  padding: 4px 2px;
}
#route5-cleo-home .r5-cleo-win {
  border: 0;
  background: transparent;
  color: rgba(232, 232, 234, 0.55);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
#route5-cleo-home .r5-cleo-win:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#route5-cleo-home .r5-cleo-dialog-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(40, 40, 44, 0.55), transparent 70%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.015) 10px,
      rgba(255, 255, 255, 0.015) 11px
    );
}
#route5-cleo-home .r5-cleo-dialog-body[hidden] { display: none !important; }
#route5-cleo-home .r5-cleo-welcome {
  text-align: center;
  max-width: 320px;
}
#route5-cleo-home .r5-cleo-mark {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: rotate(0deg);
  background: transparent;
  box-sizing: border-box;
}
#route5-cleo-home .r5-cleo-welcome h1 {
  margin: 0 0 8px;
  font: 600 20px/1.25 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}
#route5-cleo-home .r5-cleo-welcome p {
  margin: 0 0 18px;
  font: 400 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  color: rgba(232, 232, 234, 0.5);
}
#route5-cleo-home .r5-cleo-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
#route5-cleo-home .r5-cleo-pills button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8ea;
  border-radius: 999px;
  padding: 8px 12px;
  font: 500 12.5px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
#route5-cleo-home .r5-cleo-pills button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}
#route5-cleo-home .r5-cleo-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px;
}
#route5-cleo-home .r5-cleo-thread[hidden] { display: none !important; }
#route5-cleo-home .r5-cleo-composer {
  position: relative;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
#route5-cleo-home .r5-cleo-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1a1a1c;
  overflow: hidden;
}
#route5-cleo-home .r5-cleo-box:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
}
#route5-cleo-home .r5-cleo-composer textarea {
  width: 100%;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: 400 13px/1.45 ui-sans-serif, system-ui, sans-serif;
  padding: 12px 12px 4px;
  box-sizing: border-box;
}
#route5-cleo-home .r5-cleo-composer textarea::placeholder {
  color: rgba(232, 232, 234, 0.35);
}
#route5-cleo-home .r5-cleo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 8px;
}
#route5-cleo-home .r5-cleo-toolbar-left,
#route5-cleo-home .r5-cleo-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
#route5-cleo-home .r5-cleo-skills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(232, 232, 234, 0.7);
  border-radius: 8px;
  padding: 5px 9px;
  font: 500 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
#route5-cleo-home .r5-cleo-skills:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
#route5-cleo-home .r5-cleo-send {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
#route5-cleo-home .r5-cleo-box:focus-within .r5-cleo-send {
  background: #ff1493;
}
#route5-cleo-home .r5-cleo-skills-menu {
  position: absolute;
  z-index: 5;
  min-width: 200px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1c1e;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#route5-cleo-home .r5-cleo-skills-menu[hidden] { display: none !important; }
#route5-cleo-home .r5-cleo-skills-menu button {
  border: 0;
  background: transparent;
  color: #e8e8ea;
  text-align: left;
  border-radius: 7px;
  padding: 8px 10px;
  font: 500 12.5px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
#route5-cleo-home .r5-cleo-skills-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.r5-cleo-msg {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 12px;
  width: fit-content;
  max-width: 92%;
  white-space: pre-wrap;
  font: 400 13px/1.45 ui-sans-serif, system-ui, sans-serif;
}
.r5-cleo-msg.is-user {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
}
.r5-cleo-msg.is-assistant {
  background: transparent;
  padding-left: 0;
}
.r5-cleo-msg.is-thinking {
  opacity: 0.55;
  font-style: italic;
}
/* Sidebar Chat — one Linear-density row; do not force custom chrome that looks out of place */
[data-r5-sidebar-cleo="1"],
#route5-sidebar-chat {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  appearance: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
}
#route5-sidebar-chat .r5-sidebar-chat-ico {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
  align-items: center;
  justify-content: center;
}
#route5-cleo-dock,
#route5-inbox-plus,
[data-r5-fake-fab="1"] {
  display: none !important;
}
/* Hide stray create FABs while Chat fills main */
html[data-r5-cleo-open="1"] #route5-inbox-plus,
html[data-r5-cleo-open="1"] [data-r5-fake-fab="1"],
html[data-r5-cleo-open="1"] button[aria-label="New commitment"][style*="fixed"],
html[data-r5-cleo-open="1"] button[aria-label="Create new issue"][style*="position: fixed"] {
  display: none !important;
}

/* Create confirmation modal inside Chat */
#route5-cleo-action-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
#route5-cleo-action-modal .r5-cleo-action-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
#route5-cleo-action-modal .r5-cleo-action-card {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100% - 32px));
  padding: 20px 22px;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color: #f4f4f5;
}
#route5-cleo-action-modal .r5-cleo-action-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}
#route5-cleo-action-modal .r5-cleo-action-card p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
#route5-cleo-action-modal .r5-cleo-action-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
#route5-cleo-action-modal .r5-cleo-action-view,
#route5-cleo-action-modal .r5-cleo-action-dismiss {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#route5-cleo-action-modal .r5-cleo-action-view {
  background: #ec4899;
  color: #fff;
}
#route5-cleo-action-modal .r5-cleo-action-dismiss {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

/* Rail hidden in modal; shown in full Chat */
.r5-cleo-rail {
  display: none;
}
.r5-cleo-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

/* Docked in sidebar flow — never position:fixed overlay (that floated over settings) */
#route5-desk-navstrip {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  max-height: 40px !important;
  min-height: 40px !important;
  flex: 0 0 auto !important;
  z-index: 1 !important;
  transform: none !important;
  float: none !important;
  box-sizing: border-box !important;
  padding: 4px 6px 6px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#route5-desk-navstrip::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
#route5-desk-navstrip .r5-desk-nav-main {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
#route5-desk-navstrip .r5-desk-nav {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.62) !important;
  height: 30px !important;
  min-width: 0 !important;
  width: auto !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  padding: 0 8px !important;
  position: relative;
  flex: 0 0 auto !important;
  pointer-events: auto !important;
  z-index: 2 !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 120ms ease,
    color 120ms ease,
    transform 80ms ease;
}
#route5-desk-navstrip .r5-desk-nav svg {
  flex-shrink: 0;
  width: 15px !important;
  height: 15px !important;
  stroke-width: 1.7 !important;
}
#route5-desk-navstrip .r5-desk-nav-label {
  display: inline !important;
  font: 550 12px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif,
    system-ui, sans-serif !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.92;
}
#route5-desk-navstrip .r5-desk-nav.is-home.is-active {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 10px 0 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f5f5f7 !important;
  gap: 6px !important;
}
#route5-desk-navstrip .r5-desk-nav.is-home.is-active .r5-desk-nav-label {
  display: inline !important;
  font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif,
    system-ui, sans-serif !important;
  letter-spacing: -0.01em;
  max-width: none !important;
  opacity: 1 !important;
  overflow: visible;
  white-space: nowrap;
}
#route5-desk-navstrip .r5-desk-nav:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}
#route5-desk-navstrip .r5-desk-nav:active,
#route5-desk-navstrip .r5-desk-nav.is-press {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  transform: scale(0.96);
}
#route5-desk-navstrip .r5-desk-nav.is-active:not(.is-home) {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
#route5-desk-navstrip .r5-desk-nav-search {
  margin-left: 4px !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
}
#route5-desk-navstrip .r5-desk-nav-search .r5-desk-nav-label {
  display: none !important;
}
html.light #route5-desk-navstrip,
html[data-theme="light"] #route5-desk-navstrip {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
html.light #route5-desk-navstrip .r5-desk-nav,
html[data-theme="light"] #route5-desk-navstrip .r5-desk-nav {
  color: rgba(55, 53, 47, 0.55) !important;
}
html.light #route5-desk-navstrip .r5-desk-nav.is-home.is-active,
html[data-theme="light"] #route5-desk-navstrip .r5-desk-nav.is-home.is-active {
  background: rgba(55, 53, 47, 0.08) !important;
  color: #37352f !important;
}
html.light #route5-desk-navstrip .r5-desk-nav:hover,
html[data-theme="light"] #route5-desk-navstrip .r5-desk-nav:hover {
  background: rgba(55, 53, 47, 0.06) !important;
  color: #37352f !important;
}
/* Allow Linear sidebar to collapse — never lock a fat min-width.
   Also make the rail a column flex so the getting-started card can pin to the bottom. */
html.route5-desk-ready [data-testid="sidebar"],
html.route5-desk-ready aside {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
html.route5-desk-ready [data-testid="sidebar"] *,
html.route5-desk-ready aside #route5-desk-navstrip,
html.route5-desk-ready aside #route5-desk-navstrip * {
  min-width: 0;
}
/* Collapsed icon rail */
html[data-r5-sidebar-collapsed="1"] #route5-desk-navstrip,
#route5-desk-navstrip[data-collapsed="1"] {
  flex-direction: column !important;
  align-items: center !important;
  max-width: 56px !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 8px 4px !important;
  gap: 4px !important;
  overflow: visible !important;
}
html[data-r5-sidebar-collapsed="1"] #route5-desk-navstrip .r5-desk-nav-label,
#route5-desk-navstrip[data-collapsed="1"] .r5-desk-nav-label {
  display: none !important;
}
html[data-r5-sidebar-collapsed="1"] #route5-desk-navstrip .r5-desk-nav,
#route5-desk-navstrip[data-collapsed="1"] .r5-desk-nav {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  justify-content: center !important;
}
/* Never leave a flex:1 empty sibling eating the rail */
[data-r5-nav-ghost="1"] {
  display: none !important;
  height: 0 !important;
  flex: 0 0 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
/* Hide strip on settings / auth only — NOT when Ask Cleo is open.
   Cleo used to be role=dialog which nuked the Home/Chat/New strip. */
html[data-r5-settings="1"] #route5-desk-navstrip,
html[data-r5-nav-hidden="1"] #route5-desk-navstrip,
body[data-r5-settings="1"] #route5-desk-navstrip {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
/* Keep strip visible while our Cleo panel is open — beat leftover inline display:none */
html[data-r5-cleo-open="1"] #route5-desk-navstrip {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: 40px !important;
  max-height: 44px !important;
  overflow: hidden !important;
}
html[data-r5-cleo-open="1"][data-r5-nav-hidden="1"] #route5-desk-navstrip {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* Kill legacy spacer gap */
#route5-desk-nav-spacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
/* Releases stay visible in the sidebar — only bury Linear “Add to release” menus */
[data-r5-releases-hidden="1"],
a[href*="/settings/releases"],
button[aria-label*="Add to release" i],
[role="menuitem"][aria-label*="Add to release" i],
[aria-label*="Add to release" i],
[aria-label*="New release" i],
[aria-label*="Create release" i],
[data-r5-release-menu="1"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
/* Plain circle mark for Releases nav (no Linear triangle) */
a[href*="/releases"]:not([href*="/settings/releases"]) [data-r5-release-circle],
[data-r5-releases-nav="1"] [data-r5-release-circle] {
  display: inline-flex !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}
a[href*="/releases"]:not([href*="/settings/releases"]) svg:not([data-r5-release-circle]),
[data-r5-releases-nav="1"] svg:not([data-r5-release-circle]) {
  display: none !important;
}
/* Hide Linear Try header chrome only — keep our Try action buttons */
#sidebarTry [data-r5-try-hidden="1"],
[data-r5-dup-nav-hidden="1"] {
  display: none !important;
}
#sidebarTry,
[aria-controls="sidebarTry"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
[data-r5-try-flexes="1"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
}
#route5-desk-navstrip .r5-desk-nav:focus-visible {
  outline: 2px solid rgba(255, 20, 147, 0.55);
  outline-offset: 1px;
}
#route5-desk-navstrip .r5-desk-nav-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: 700 9px/14px ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  font-style: normal;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(20, 20, 24, 0.9);
}
#route5-desk-navstrip .r5-desk-nav-badge[hidden] {
  display: none !important;
}

/* Full-pane CLEO — normal ChatGPT-style chat (desk stays owner of Notion icons) */
html[data-r5-cleo-mode="full"] main,
html[data-r5-cleo-mode="full"] [role="main"] {
  position: relative !important;
}
#route5-cleo-home[data-r5-cleo-mode="full"] {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #0f0f10;
  display: none;
  color: #ececef;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
#route5-cleo-home[data-r5-cleo-mode="full"].is-open {
  display: flex !important;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-backdrop {
  display: none;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-dialog {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #0f0f10;
  box-shadow: none;
  overflow: hidden;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px 12px;
  background: #141416;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 0;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-brand .r5-cleo-agent-face {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-brand .r5-cleo-agent-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-brand span {
  display: block;
  font-size: 11px;
  color: rgba(236, 236, 239, 0.5);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-new,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-close {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 10px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-new {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-new:hover,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent:hover {
  background: rgba(255, 255, 255, 0.07);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-recents {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 0;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-recents h3 {
  margin: 0 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(236, 236, 239, 0.4);
  text-transform: none;
  letter-spacing: 0.02em;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent-row {
  display: flex;
  align-items: center;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recents-empty {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(236, 236, 239, 0.4);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-close {
  margin-top: auto;
  color: rgba(236, 236, 239, 0.55);
  font-size: 13px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0f0f10;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-dialog-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: transparent;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-welcome {
  width: min(640px, 100%);
  text-align: center;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-welcome h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #f5f5f6;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-welcome > p {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(236, 236, 239, 0.55);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-pills button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 236, 239, 0.85);
  border-radius: 999px;
  padding: 8px 12px;
  font: 500 12px/1 inherit;
  cursor: pointer;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-pills button:hover {
  background: rgba(255, 255, 255, 0.08);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 12px;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-msg {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-msg.is-user {
  background: rgba(255, 255, 255, 0.06);
  margin-left: 16%;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-msg.is-assistant {
  background: transparent;
  padding-left: 2px;
  color: rgba(236, 236, 239, 0.92);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-composer {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 18px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1d;
  padding: 10px 12px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-box:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-attach {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-composer textarea {
  flex: 1;
  min-height: 28px;
  max-height: 140px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #f2f2f4;
  font: 400 15px/1.4 inherit;
  padding: 6px 0;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-send {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #ec4899;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
#route5-cleo-home[data-r5-cleo-mode="full"].has-thread .r5-cleo-dialog-body {
  display: none !important;
}
@media (max-width: 860px) {
  #route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail {
    display: none;
  }
  #route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-dialog-head {
    display: flex;
  }
}


.r5-cleo-thread-menu {
  position: fixed;
  z-index: 2147483000;
  min-width: 140px;
  padding: 6px;
  border-radius: 10px;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.r5-cleo-thread-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f2f2f4;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.r5-cleo-thread-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-brand span {
  display: block;
  font-size: 11px;
  color: rgba(236, 236, 239, 0.55);
  font-weight: 500;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-new,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-nav button,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-close {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 10px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-new {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-new:hover,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-nav button:hover,
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent:hover {
  background: rgba(255, 255, 255, 0.07);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-recents {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-top: 8px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-recents h3 {
  margin: 0 8px 6px;
  font: 600 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(236, 236, 239, 0.45);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recent {
  color: rgba(236, 236, 239, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 450;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-recents-empty {
  margin: 8px;
  color: rgba(236, 236, 239, 0.35);
  font-size: 12px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-close {
  margin-top: auto;
  color: rgba(236, 236, 239, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding-top: 12px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail-close:hover {
  color: #fff;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, #1a1a1c 0%, #0f0f10 65%, #0c0c0d 100%);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-dialog-head {
  display: none;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-dialog-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  min-height: 0;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-welcome {
  max-width: 640px;
  width: 100%;
  text-align: center;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-welcome h1 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  font-weight: 560;
  margin: 0 0 10px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-welcome p {
  margin: 0 auto 22px;
  max-width: 420px;
  color: rgba(242, 242, 244, 0.62);
  font-size: 15px;
  line-height: 1.45;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-pills {
  justify-content: center;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-composer {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  border-top: 0;
  padding: 0 24px 28px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-box {
  border-radius: 28px;
  padding: 12px 14px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-composer textarea {
  font-size: 15px;
  min-height: 28px;
}
#route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-thread {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 12px;
  overflow: auto;
}
#route5-cleo-home[data-r5-cleo-mode="full"].has-thread .r5-cleo-dialog-body {
  display: none;
}
#route5-cleo-home[data-r5-cleo-mode="full"].has-thread .r5-cleo-thread {
  display: block;
}
@media (max-width: 820px) {
  #route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail {
    width: 220px;
  }
}
@media (max-width: 640px) {
  #route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-rail {
    display: none;
  }
  #route5-cleo-home[data-r5-cleo-mode="full"] .r5-cleo-dialog-head {
    display: flex;
  }
}

/* Billing — Free + Classic only */
#route5-billing-plans {
  position: relative;
  z-index: 5;
  margin: 12px 0 24px;
  padding: 20px 22px 24px;
  border-radius: 14px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f2f4;
  font: 400 13px/1.45 ui-sans-serif, system-ui, sans-serif;
}
#route5-billing-plans h2 {
  margin: 0 0 6px;
  font: 600 18px/1.25 ui-sans-serif, system-ui, sans-serif;
}
#route5-billing-plans .r5-bill-lead {
  margin: 0 0 16px;
  color: rgba(242, 242, 244, 0.72);
}
.r5-bill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) {
  .r5-bill-grid {
    grid-template-columns: 1fr;
  }
}
.r5-bill-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.r5-bill-card--classic {
  border-color: rgba(255, 255, 255, 0.18);
}
.r5-bill-card strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.r5-bill-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 20, 147, 0.95);
}
.r5-bill-per {
  color: rgba(242, 242, 244, 0.6);
  font-size: 12px;
}
.r5-bill-card ul {
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  color: rgba(242, 242, 244, 0.82);
}
.r5-bill-cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ff1493 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}
html[data-r5-billing="1"] [data-r5-linear-plans="1"] {
  display: none !important;
}

/* Developer panels — API keys, webhooks, audit, insights */
.r5-dev-panel {
  position: relative;
  z-index: 5;
  margin: 12px 0 24px;
  padding: 20px 22px 24px;
  border-radius: 14px;
  background: rgba(20, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f2f4;
  font: 400 13px/1.45 ui-sans-serif, system-ui, sans-serif;
}
.r5-dev-panel h2 {
  margin: 0 0 6px;
  font: 600 18px/1.25 ui-sans-serif, system-ui, sans-serif;
}
.r5-dev-lead {
  margin: 0 0 16px;
  color: rgba(242, 242, 244, 0.72);
}
.r5-dev-cta {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 12px 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #ff1493;
  color: #fff !important;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.r5-dev-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.r5-dev-row input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #f2f2f4;
}
.r5-dev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r5-dev-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.r5-dev-list li span {
  color: rgba(242, 242, 244, 0.55);
  font-size: 12px;
}
.r5-dev-empty {
  color: rgba(242, 242, 244, 0.55) !important;
}
.r5-dev-note {
  margin: 14px 0 0;
  color: rgba(242, 242, 244, 0.45);
  font-size: 12px;
}
.r5-dev-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .r5-dev-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.r5-dev-stats div {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.r5-dev-stats strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.r5-dev-stats span {
  color: rgba(242, 242, 244, 0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-r5-insights-note] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-align: center;
}
[data-r5-insights-note] strong {
  font-size: 16px;
}
[data-r5-insights-note] span {
  color: rgba(242, 242, 244, 0.65);
  font-size: 13px;
}

/* ── First-run AHA coach ── */
#route5-aha-coach {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  font-family: "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.r5-aha-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(6px);
}
.r5-aha-sheet {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  padding: 28px 26px 22px;
  border-radius: 18px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #f4f4f6;
}
.r5-aha-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  cursor: pointer;
}
.r5-aha-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff1493;
  font-weight: 600;
}
.r5-aha-sheet h2 {
  margin: 0 0 8px;
  font: 650 22px/1.25 "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.r5-aha-lead {
  margin: 0 0 16px;
  color: rgba(244, 244, 246, 0.7);
  font-size: 14px;
}
.r5-aha-steps {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  color: rgba(244, 244, 246, 0.88);
  font-size: 14px;
  line-height: 1.55;
}
.r5-aha-steps li {
  margin-bottom: 8px;
}
.r5-aha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.r5-aha-primary {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ff1493 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
}
.r5-aha-secondary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.r5-aha-ghost {
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: rgba(244, 244, 246, 0.55);
  font-size: 13px;
  cursor: pointer;
}
.r5-aha-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(244, 244, 246, 0.45);
  line-height: 1.4;
}
.r5-aha-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
}

/* Easy tip chip — bottom left */
#route5-easy-tip {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482000;
  max-width: min(280px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(18, 18, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f2f4;
  font: 500 12px/1.4 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
#route5-easy-tip button {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #ff1493;
  cursor: pointer;
  font: inherit;
}

html.route5-desk-ready [data-testid="sidebar"],
html.route5-desk-ready aside {
  border-top-right-radius: 12px;
}
html.route5-desk-ready {
  --font-display: "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-regular: "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
/* Visual distance from stock Linear — softer list rows + pink focus */
html.route5-desk-ready #root [class*="IssueList"] > *,
html.route5-desk-ready #root [class*="ListRow"] {
  border-radius: 6px;
}
html.route5-desk-ready body,
html.route5-desk-ready #root {
  font-family: var(--font-regular) !important;
  letter-spacing: -0.011em;
}
html.route5-desk-ready button,
html.route5-desk-ready [role="button"] {
  border-radius: 8px !important;
}

#route5-desk-foot,
#route5-product-rail,
#route5-chatgpt-shell,
#route5-chat-work-canvas {
  display: none !important;
}
/* Keep aha coach — do not hide #route5-aha-coach */
#route5-onboarding-tour {
  display: none !important;
}

.r5-hide-deletion-toast,
[data-r5-toast-hide="1"],
[data-r5-deletion-hide="1"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Never leave the desk as a black void */
html #root {
  opacity: 1 !important;
  min-height: 100vh;
}
/* Only boot-done retires the skeleton — reveal alone exposed an unpainted #root. */
html.route5-boot-done #route5-boot-skeleton {
  display: none !important;
}

/* Desk motion — GPU-only, Tesla-energy, never blocks paint */
@keyframes r5RowIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes r5PanelIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes r5SideIn {
  from { opacity: 0; transform: translate3d(-8px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes r5Ambient {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
html.route5-desk-ready main [role="row"],
html.route5-desk-ready main a[href*="/issue"],
html.route5-desk-ready [data-r5-try-flexes] button {
  animation: r5RowIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.route5-desk-ready [data-r5-try-flexes] button:nth-child(2) { animation-delay: 0.04s; }
html.route5-desk-ready [data-r5-try-flexes] button:nth-child(3) { animation-delay: 0.08s; }
html.route5-desk-ready aside,
html.route5-desk-ready nav[aria-label],
html.route5-desk-ready [role="navigation"] {
  animation: r5SideIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.route5-desk-ready main > *,
html.route5-desk-ready [role="main"] > * {
  animation: r5PanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.route5-desk-ready button:not([disabled]):hover,
html.route5-desk-ready a:hover {
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}
html.route5-desk-ready button:not([disabled]):active {
  transform: scale(0.985);
}
/* Soft pink ambient pulse on the desk canvas — CSS only */
html.route5-desk-ready body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 8% 12%, rgba(255, 20, 147, 0.07), transparent 60%),
    radial-gradient(ellipse 45% 35% at 92% 88%, rgba(255, 20, 147, 0.05), transparent 55%);
  animation: r5Ambient 5.5s ease-in-out infinite;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  html.route5-desk-ready main [role="row"],
  html.route5-desk-ready main a[href*="/issue"],
  html.route5-desk-ready [data-r5-try-flexes] button,
  html.route5-desk-ready aside,
  html.route5-desk-ready nav[aria-label],
  html.route5-desk-ready [role="navigation"],
  html.route5-desk-ready main > *,
  html.route5-desk-ready [role="main"] > *,
  html.route5-desk-ready body::before,
  #route5-boot-skeleton .r5w,
  #route5-boot-skeleton .r5w-bar i {
    animation: none !important;
  }
}

a[href*="section=releases"],
a[href*="/settings/releases"],
[href*="section=releases"] {
  display: none !important;
  pointer-events: none !important;
}
/* Keep sidebar Releases — only hide Add-to-release / ship-notes menus */
[aria-label="Ship notes"],
[aria-label="Add to release"],
[aria-label*="Add to release" i],
[aria-label*="New release" i],
[aria-label*="Create release" i],
[role="menuitem"]:is([aria-label*="Add to release" i]),
[data-r5-release-menu="1"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Hard-disable Light / System / Pure Light — not clickable */
[data-r5-theme-disabled="1"],
button[data-r5-theme-disabled="1"],
[role="menuitem"][data-r5-theme-disabled="1"],
[role="option"][data-r5-theme-disabled="1"],
[role="radio"][data-r5-theme-disabled="1"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Real light theme — calm Apple-like surfaces */
html.light,
html[data-theme="light"] {
  color-scheme: light !important;
  background: #f5f5f7 !important;
  --bg-color: #ffffff !important;
  --bg-sidebar-color: #f5f5f7 !important;
  --bg-base-color: #ffffff !important;
  --color-bg-primary: #ffffff !important;
  --color-bg-secondary: #f5f5f7 !important;
  --color-bg-tertiary: #ebebed !important;
  --color-text-primary: #1d1d1f !important;
  --color-text-secondary: #424245 !important;
  --color-text-tertiary: #6e6e73 !important;
  --color-border-primary: #e5e5ea !important;
  --color-accent: #ff1493 !important;
  --color-purple: #ff1493 !important;
}
html.light body,
html[data-theme="light"] body,
html.light #root,
html[data-theme="light"] #root,
html.light aside,
html[data-theme="light"] aside {
  background: transparent !important;
  color: #1d1d1f !important;
}

/* Join welcome catch-up */
#route5-join-welcome {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#route5-join-welcome.is-open {
  opacity: 1;
  pointer-events: auto;
}
#route5-join-welcome .r5-join-card {
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  color: #f2f2f4;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
html[data-theme="light"] #route5-join-welcome .r5-join-card,
html.light #route5-join-welcome .r5-join-card {
  background: #141416;
  color: #f2f2f4;
  border-color: rgba(255, 255, 255, 0.1);
}
#route5-join-welcome .r5-join-kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ff1493;
  margin-bottom: 8px;
}
#route5-join-welcome h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
#route5-join-welcome p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.75;
}
#route5-join-welcome .r5-join-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#route5-join-welcome .r5-join-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#route5-join-welcome .r5-join-list button {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 8px;
  padding: 10px 12px;
  font: 560 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
html[data-theme="light"] #route5-join-welcome .r5-join-list button {
  border-color: #e8e8ec;
  background: #f7f7f8;
}
#route5-join-welcome .r5-join-list span {
  font-size: 11px;
  opacity: 0.5;
  padding-left: 2px;
}
#route5-join-welcome .r5-join-x {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: #ff1493;
  color: #fff;
  font: 560 13px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

/* ── Success feedback: small toast vs calm milestone (payments / firsts) ── */
.r5-success-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 2147483646;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 10px;
  background: #16161a;
  color: #f2f2f4;
  font: 550 13px/1.35 ui-sans-serif, system-ui, sans-serif;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}
.r5-success-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.r5-success-toast.is-out {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}
.r5-success-toast-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
  font: 700 12px/1 ui-sans-serif, system-ui, sans-serif;
  flex-shrink: 0;
}
.r5-success-milestone {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.r5-success-milestone.is-in {
  opacity: 1;
  pointer-events: auto;
}
.r5-success-milestone.is-out {
  opacity: 0;
  pointer-events: none;
}
.r5-success-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.r5-success-card {
  position: relative;
  width: min(380px, 100%);
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  color: #f4f4f5;
}
.r5-success-check {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  font: 700 20px/1 ui-sans-serif, system-ui, sans-serif;
}
.r5-success-card h2 {
  margin: 0 0 8px;
  font: 650 20px/1.25 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.r5-success-body {
  margin: 0 0 16px;
  font: 450 14px/1.45 ui-sans-serif, system-ui, sans-serif;
  color: rgba(244, 244, 245, 0.72);
}
.r5-success-ach {
  margin: 0 0 16px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid rgba(255, 20, 147, 0.22);
  font: 500 12px/1.35 ui-sans-serif, system-ui, sans-serif;
  color: #f9a8d4;
}
.r5-success-ach span {
  display: inline-block;
  margin-right: 6px;
  opacity: 0.7;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.r5-success-cta {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  width: 100%;
  background: #ff1493;
  color: #fff;
  font: 600 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-success-cta:hover {
  filter: brightness(1.06);
}
.r5-success-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}
.r5-success-sparkles i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f9a8d4;
  opacity: 0;
  animation: r5-spark 900ms ease-out forwards;
}
.r5-success-sparkles i:nth-child(1) {
  left: 18%;
  top: 22%;
  animation-delay: 40ms;
}
.r5-success-sparkles i:nth-child(2) {
  left: 72%;
  top: 18%;
  background: #6ee7b7;
  animation-delay: 120ms;
}
.r5-success-sparkles i:nth-child(3) {
  left: 30%;
  top: 70%;
  animation-delay: 180ms;
}
.r5-success-sparkles i:nth-child(4) {
  left: 80%;
  top: 58%;
  background: #fde68a;
  animation-delay: 90ms;
}
.r5-success-sparkles i:nth-child(5) {
  left: 12%;
  top: 48%;
  animation-delay: 200ms;
}
.r5-success-sparkles i:nth-child(6) {
  left: 55%;
  top: 12%;
  background: #6ee7b7;
  animation-delay: 160ms;
}
@keyframes r5-spark {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.4);
  }
  35% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1);
  }
}

/* ── Notion-quality rooms + checklist + tokens ── */
:root {
  --r5n-bg: #111111;
  --r5n-rail: #191919;
  --r5n-elev: #202020;
  --r5n-border: rgba(255, 255, 255, 0.06);
  --r5n-text: #f4f4f5;
  --r5n-muted: rgba(244, 244, 245, 0.55);
  --r5n-pink: #ff1493;
  --r5n-pink-2: #ff4db8;
}
/* Fullscreen rooms (legacy) — hide Linear under overlay */
html[data-r5-room]:not([data-r5-room-dock="1"]) #root > * {
  visibility: hidden !important;
  pointer-events: none !important;
}
html[data-r5-room]:not([data-r5-room-dock="1"]) .r5n-room,
html[data-r5-room]:not([data-r5-room-dock="1"]) .r5n-room * {
  visibility: visible !important;
  pointer-events: auto;
}
/* Docked rooms — keep Linear sidebar; fill main stage only */
html[data-r5-room-dock="1"] #root > * {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* While Chat page is open — hide Linear's native agent overlay / splash mark */
html[data-r5-room="route5-chat-hub"] [data-r5-agent-hide="1"],
html[data-r5-room="route5-chat-hub"] #route5-cleo-home,
html[data-r5-room="route5-chat-hub"] [class*="LinearAgent"],
html[data-r5-room="route5-chat-hub"] button[aria-label="Close"][class*="IconButton"] {
  /* don't blanket-hide all IconButtons — only splash */
}
html[data-r5-room="route5-chat-hub"] .r5n-room--dock {
  z-index: 60 !important;
  background: #0c0c0e !important;
}

.r5n-room--dock {
  position: absolute !important;
  inset: 0 !important;
  z-index: 40 !important;
  background: #111114 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
}
.r5n-room--dock .r5n-shell {
  height: 100%;
  min-height: 100%;
}
.r5n-room--dock .r5n-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.r5n-room--dock .r5n-top strong {
  font: 600 14px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
/* ── Route5 craft tokens (owned surfaces only) ── */
.r5n-agent,
#route5-insights-live,
#route5-desk-checklist,
[data-r5-try-flexes="1"] {
  --r5-craft-bg: #0c0c0e;
  --r5-craft-elev: #141416;
  --r5-craft-elev2: #1a1a1d;
  --r5-craft-line: rgba(255, 255, 255, 0.08);
  --r5-craft-line-strong: rgba(255, 255, 255, 0.14);
  --r5-craft-text: #f5f5f7;
  --r5-craft-muted: rgba(245, 245, 247, 0.52);
  --r5-craft-muted2: rgba(245, 245, 247, 0.36);
  --r5-craft-accent: #ff1493;
  --r5-craft-radius: 12px;
  --r5-craft-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.r5n-agent {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--r5-craft-bg);
  color: var(--r5-craft-text);
  font-family: var(--r5-craft-font);
  animation: r5-agent-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes r5-agent-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.r5n-agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  min-height: 44px;
  border-bottom: 1px solid var(--r5-craft-line);
  flex-shrink: 0;
}
.r5n-agent-new {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--r5-craft-text);
  font: 550 13px/1 var(--r5-craft-font);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 8px;
}
.r5n-agent-new:hover { background: rgba(255, 255, 255, 0.05); }
.r5n-agent--page .r5n-agent-top { position: relative; z-index: 5; }
.r5n-agent-top-left { position: relative; }
.r5n-agent-top-right { display: inline-flex; align-items: center; gap: 8px; }
.r5n-agent-model select {
  appearance: none;
  border: 1px solid var(--r5-craft-line);
  background: var(--r5-craft-elev);
  color: var(--r5-craft-text);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font: 500 12px/1 var(--r5-craft-font);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.r5n-agent-history {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, 72vw);
  max-height: min(420px, 60vh);
  overflow: auto;
  background: #1a1a1d;
  border: 1px solid var(--r5-craft-line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  padding: 8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.r5n-agent-history[hidden] { display: none !important; }
.r5n-hist-new {
  appearance: none; border: 0; background: rgba(255,255,255,0.06);
  color: #fff; border-radius: 8px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  font: 550 13px/1 var(--r5-craft-font); cursor: pointer; text-align: left;
}
.r5n-hist-new:hover { background: rgba(255,255,255,0.1); }
.r5n-hist-list { display: flex; flex-direction: column; gap: 2px; }
.r5n-hist-empty { padding: 14px 10px; color: var(--r5-craft-muted); font: 450 12.5px/1.3 var(--r5-craft-font); }
.r5n-hist-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 2px; align-items: center;
  border-radius: 8px; padding: 2px;
}
.r5n-hist-row.is-active { background: rgba(255,255,255,0.06); }
.r5n-hist-open {
  appearance: none; border: 0; background: transparent; color: var(--r5-craft-text);
  text-align: left; padding: 8px 10px; border-radius: 7px; cursor: pointer;
  font: 450 12.5px/1.25 var(--r5-craft-font);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.r5n-hist-open:hover { background: rgba(255,255,255,0.05); }
.r5n-hist-act {
  appearance: none; border: 0; background: transparent; color: var(--r5-craft-muted2);
  width: 28px; height: 28px; border-radius: 7px; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.r5n-hist-act:hover, .r5n-hist-act.is-on { color: #fff; background: rgba(255,255,255,0.06); }
.r5n-hist-act.is-on { color: #ffb020; }
.r5n-agent-sub {
  margin: 0 0 8px; text-align: center; color: var(--r5-craft-muted);
  font: 450 13px/1.4 var(--r5-craft-font);
}
.r5n-agent-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 6px; }
.r5n-file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 999px; font: 500 11.5px/1 var(--r5-craft-font);
  background: rgba(255,255,255,0.06); color: var(--r5-craft-text);
  border: 1px solid var(--r5-craft-line);
}
.r5n-file-chip button {
  appearance: none; border: 0; background: transparent; color: var(--r5-craft-muted);
  cursor: pointer; font-size: 14px; line-height: 1; padding: 0;
}
.r5n-agent-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.r5n-agent-card {
  appearance: none; border: 1px solid var(--r5-craft-line); background: rgba(255,255,255,0.03);
  color: var(--r5-craft-text); border-radius: 999px; padding: 8px 14px;
  font: 500 12.5px/1.2 var(--r5-craft-font); cursor: pointer;
}
.r5n-agent-card:hover { background: rgba(255,255,255,0.07); border-color: var(--r5-craft-line-strong); }
.r5n-agent-card strong { font-weight: 550; }
/* Chat page fills main — no modal X chrome */
.r5n-agent--page .r5n-iconbtn[data-r5n-close],
#route5-chat-hub [data-r5n-close] { display: none !important; }

.r5n-agent-banner {
  align-self: center;
  margin: 12px 16px 0;
  padding: 6px 8px 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--r5-craft-elev2);
  border: 1px solid var(--r5-craft-line);
  font: 450 12.5px/1.2 var(--r5-craft-font);
  color: var(--r5-craft-text);
  max-width: calc(100% - 32px);
}
.r5n-agent-banner-acts { display: inline-flex; align-items: center; gap: 4px; }
.r5n-agent-banner-acts button {
  appearance: none; border: 0; background: transparent;
  color: var(--r5-craft-muted); font: 550 12px/1 var(--r5-craft-font);
  cursor: pointer; padding: 6px 10px; border-radius: 999px;
}
.r5n-agent-banner-acts button.is-keep {
  background: rgba(255, 255, 255, 0.1); color: var(--r5-craft-text);
}
.r5n-agent-stage {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 24px 24px 20px; display: flex; flex-direction: column; min-height: 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.r5n-agent-stage::-webkit-scrollbar { width: 6px; }
.r5n-agent-stage::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14); border-radius: 999px;
}
.r5n-agent-empty {
  margin: auto 0; width: min(720px, 100%); align-self: center;
  display: flex; flex-direction: column; align-items: stretch; gap: 20px;
  padding: 32px 0 12px;
}
.r5n-agent-title {
  margin: 0; text-align: center;
  font: 500 clamp(22px, 3vw, 28px)/1.2 var(--r5-craft-font);
  letter-spacing: -0.03em; color: var(--r5-craft-muted);
}
.r5n-agent-composer-wrap { width: 100%; }
.r5n-agent-box {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--r5-craft-elev);
  border: 1px solid var(--r5-craft-line-strong);
  border-radius: 14px; padding: 14px 14px 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.r5n-agent-box:focus-within {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.r5n-agent-box textarea {
  width: 100%; border: 0; background: transparent; color: var(--r5-craft-text);
  font: 450 15px/1.45 var(--r5-craft-font); resize: none; outline: none;
  min-height: 44px; max-height: 160px; padding: 0 2px;
}
.r5n-agent-box textarea::placeholder { color: var(--r5-craft-muted2); }
.r5n-agent-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.r5n-agent-toolbar-left, .r5n-agent-toolbar-right {
  display: inline-flex; align-items: center; gap: 4px; position: relative;
}
.r5n-agent-skills {
  appearance: none; border: 0; background: transparent; color: var(--r5-craft-muted);
  font: 550 12.5px/1 var(--r5-craft-font); display: inline-flex; align-items: center;
  gap: 6px; cursor: pointer; padding: 7px 10px; border-radius: 8px; min-height: 32px;
}
.r5n-agent-skills:hover { background: rgba(255,255,255,0.06); color: var(--r5-craft-text); }
.r5n-agent-skills-menu {
  position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 180px; padding: 6px;
  border-radius: 10px; background: #1c1c1f; border: 1px solid var(--r5-craft-line-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45); z-index: 5;
}
.r5n-agent-skills-menu[hidden] { display: none !important; }
.r5n-agent-skills-menu button {
  appearance: none; border: 0; background: transparent; color: var(--r5-craft-text);
  width: 100%; text-align: left; font: 450 13px/1.3 var(--r5-craft-font);
  padding: 9px 10px; border-radius: 7px; cursor: pointer;
}
.r5n-agent-skills-menu button:hover { background: rgba(255,255,255,0.06); }
.r5n-agent-attach {
  appearance: none; border: 0; background: transparent; color: var(--r5-craft-muted);
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
}
.r5n-agent-attach:hover { background: rgba(255,255,255,0.06); color: var(--r5-craft-text); }
.r5n-agent-send {
  appearance: none; border: 0; background: rgba(255,255,255,0.12); color: #fff;
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  cursor: pointer; transition: background 140ms ease, opacity 140ms ease;
}
.r5n-agent-box[data-empty="0"] .r5n-agent-send { background: #fff; color: #0c0c0e; }
.r5n-agent-send:disabled { opacity: 0.35; cursor: default; }
.r5n-agent-examples { margin-top: 4px; }
.r5n-agent-examples-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
  color: var(--r5-craft-muted2); font: 450 12.5px/1 var(--r5-craft-font);
}
.r5n-agent-examples-x {
  appearance: none; border: 0; background: transparent; color: var(--r5-craft-muted2);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.r5n-agent-examples-x:hover { color: var(--r5-craft-text); background: rgba(255,255,255,0.05); }
.r5n-agent-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.r5n-agent-card {
  appearance: none; border: 1px solid var(--r5-craft-line); background: transparent;
  color: var(--r5-craft-text); text-align: left; border-radius: var(--r5-craft-radius);
  padding: 14px 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  min-height: 108px; transition: border-color 140ms ease, background 140ms ease;
}
.r5n-agent-card:hover { border-color: var(--r5-craft-line-strong); background: rgba(255,255,255,0.03); }
.r5n-agent-card-icon { color: var(--r5-craft-muted); margin-bottom: 4px; }
.r5n-agent-card strong { font: 550 13.5px/1.3 var(--r5-craft-font); letter-spacing: -0.01em; }
.r5n-agent-card > span:last-child { font: 450 12.5px/1.4 var(--r5-craft-font); color: var(--r5-craft-muted2); }
.r5n-agent-thread {
  width: min(720px, 100%); margin: 0 auto; display: flex; flex-direction: column;
  gap: 16px; padding: 12px 0 24px;
}
.r5n-agent-bubble {
  max-width: 92%; font: 450 15px/1.55 var(--r5-craft-font);
  white-space: pre-wrap; word-break: break-word; color: var(--r5-craft-text);
}
.r5n-agent-bubble.is-user {
  align-self: flex-end; background: rgba(255,255,255,0.08);
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
}
.r5n-agent-bubble.is-ai { align-self: flex-start; padding: 2px 0; }
.r5n-agent-bubble.is-thinking { color: var(--r5-craft-muted2); font-style: italic; }
.r5n-agent.has-thread .r5n-agent-empty { display: none !important; }
.r5n-agent.has-thread .r5n-agent-composer-wrap {
  position: sticky; bottom: 0; margin-top: auto; padding-top: 12px;
  background: linear-gradient(to top, var(--r5-craft-bg) 70%, transparent);
}
@media (max-width: 820px) {
  .r5n-agent-cards { grid-template-columns: 1fr; }
}
.r5n-grok, .r5n-grok-msgs, .r5n-grok-hello, .r5n-grok-composer, .r5n-grok-chips { display: contents; }
.r5n-grok-hello, .r5n-grok-composer, .r5n-grok-chips { display: none !important; }

#route5-welcome-strip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(520px, calc(100% - 48px));
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 20, 147, 0.28);
  color: #f4f4f5;
  font: 500 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
#route5-welcome-strip button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(244, 244, 245, 0.55);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}
#route5-welcome-strip strong {
  color: #ff6bb5;
  font-weight: 600;
}
/* Shell stage mode — cover Linear main when an explicit shell overlay is open.
   Never shift #root with a phantom rail margin — that collapsed the desk to ~360px. */
html[data-r5-shell="1"] #root {
  visibility: hidden !important;
  pointer-events: none !important;
}
html[data-r5-linear="1"] #root {
  visibility: visible !important;
  pointer-events: auto !important;
  margin-left: 0 !important;
}
/* Route5 rail replaces Linear’s left sidebar while shell chrome is mounted */
html:has(#route5-home-shell) #root [data-testid="sidebar"] {
  display: none !important;
}
.r5n-room {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  background: #111111;
  color: #f4f4f5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  font: 450 14px/1.45 ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.r5n-room.is-open {
  opacity: 1;
  pointer-events: auto;
}
.r5n-room--embed {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: transparent;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.r5n-shell--embed {
  height: 100%;
}
.r5n-shell--embed .r5n-main {
  width: 100%;
}
.r5n-shell {
  display: flex;
  height: 100%;
  min-height: 0;
}
.r5n-shell--single {
  flex-direction: column;
}
.r5n-rail {
  width: 248px;
  flex-shrink: 0;
  background: var(--r5n-rail);
  border-right: 1px solid var(--r5n-border);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 8px;
}
.r5n-rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
}
.r5n-rail-brand img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}
.r5n-rail-brand strong {
  display: block;
  font-size: 13px;
}
.r5n-rail-brand span {
  font-size: 11px;
  color: var(--r5n-muted);
}
.r5n-rail-label {
  font-size: 11px;
  color: var(--r5n-muted);
  padding: 8px 6px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.r5n-rail-link,
.r5n-thread {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--r5n-text);
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  width: 100%;
}
.r5n-thread {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.r5n-thread span {
  font-size: 12px;
  color: var(--r5n-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.r5n-thread:hover,
.r5n-rail-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
.r5n-dot {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e11d48;
}
.r5n-thread-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.r5n-rail-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.r5n-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--r5n-bg);
}
.r5n-main--pad {
  padding: 32px 24px 48px;
  overflow: auto;
}
.r5n-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--r5n-border);
}
.r5n-center {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 16px 32px;
  text-align: center;
}
.r5n-center--list {
  text-align: left;
}
.r5n-hero-face {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px var(--r5n-border);
}
.r5n-center h1,
.r5n-center h2 {
  margin: 0 0 10px;
  font: 650 28px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.r5n-sub,
.r5n-muted {
  color: var(--r5n-muted);
}
.r5n-sub {
  margin: 0 0 22px;
  font-size: 14px;
}
.r5n-chooser {
  display: grid;
  gap: 8px;
  text-align: left;
}
.r5n-chooser button,
.r5n-pick-list button {
  appearance: none;
  border: 1px solid var(--r5n-border);
  background: var(--r5n-elev);
  color: var(--r5n-text);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.r5n-chooser button strong,
.r5n-pick-list button strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.r5n-chooser button span,
.r5n-pick-list button span {
  font-size: 12px;
  color: var(--r5n-muted);
}
.r5n-chooser button:hover,
.r5n-pick-list button:hover {
  border-color: rgba(255, 20, 147, 0.35);
}
.r5n-composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 8px;
}
.r5n-composer--fat {
  flex-direction: column;
  align-items: stretch;
  background: var(--r5n-elev);
  border: 1px solid var(--r5n-border);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 20, 147, 0.08), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.r5n-composer--fat:focus-within {
  border-color: rgba(255, 20, 147, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 77, 184, 0.25), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.r5n-composer textarea,
.r5n-textarea,
.r5n-input {
  width: 100%;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--r5n-text);
  font: inherit;
  outline: none;
}
.r5n-textarea,
.r5n-input {
  background: var(--r5n-elev);
  border: 1px solid var(--r5n-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.r5n-composer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.r5n-pill,
.r5n-send {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: 600 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--r5n-pink), var(--r5n-pink-2));
}
.r5n-pill--ghost {
  background: transparent;
  border: 1px solid var(--r5n-border);
  color: var(--r5n-text);
}
.r5n-iconbtn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--r5n-text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}
.r5n-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.r5n-quick button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--r5n-muted);
  font: 500 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.r5n-quick button:hover {
  color: var(--r5n-text);
  background: rgba(255, 255, 255, 0.05);
}
.r5n-thread-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.r5n-msgs {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r5n-msg {
  max-width: 72%;
  align-self: flex-start;
  background: var(--r5n-elev);
  border: 1px solid var(--r5n-border);
  border-radius: 14px;
  padding: 10px 12px;
}
.r5n-msg.is-mine {
  align-self: flex-end;
  background: rgba(255, 20, 147, 0.12);
  border-color: rgba(255, 20, 147, 0.25);
}
.r5n-msg p {
  margin: 0;
}
.r5n-thread-view .r5n-composer {
  padding: 12px 16px 18px;
  border-top: 1px solid var(--r5n-border);
}
.r5n-thread-view .r5n-composer textarea {
  background: var(--r5n-elev);
  border: 1px solid var(--r5n-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.r5n-pick-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  max-height: 360px;
  overflow: auto;
}
.r5n-check {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  color: var(--r5n-text);
}
.r5n-propose {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}
.r5n-propose li {
  padding: 10px 0;
  border-bottom: 1px solid var(--r5n-border);
}
.r5n-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.r5n-meet-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--r5n-border);
  text-align: left;
}
.r5n-firstrun {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.r5n-firstrun-card {
  width: min(400px, 100%);
  background: var(--r5n-elev);
  border: 1px solid var(--r5n-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.r5n-firstrun-card h1 {
  margin: 12px 0 6px;
  font: 650 22px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5n-firstrun-card p {
  color: var(--r5n-muted);
  margin: 0 0 14px;
}

/* In-desk checklist — Notion getting-started card, docked in sidebar */
#route5-desk-checklist {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  width: auto !important;
  max-width: none !important;
  margin: auto 8px 8px !important;
  flex: 0 0 auto !important;
  pointer-events: auto !important;
}
#route5-desk-checklist[data-r5-check-orphan="1"] {
  position: fixed !important;
  left: 12px !important;
  bottom: 12px !important;
  width: min(240px, calc(100vw - 24px)) !important;
  z-index: 2147482200 !important;
}
#route5-desk-checklist[data-collapsed="1"],
html[data-r5-sidebar-collapsed="1"] #route5-desk-checklist,
html[data-r5-nav-hidden="1"] #route5-desk-checklist,
html[data-r5-settings="1"] #route5-desk-checklist {
  display: none !important;
}
#route5-desk-checklist .r5-check-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: rgba(245, 245, 247, 0.92);
  font: 450 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif,
    system-ui, sans-serif;
}
#route5-desk-checklist .r5-check-x {
  appearance: none;
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.35);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#route5-desk-checklist .r5-check-x:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#route5-desk-checklist .r5-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2px;
}
#route5-desk-checklist .r5-check-list button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
#route5-desk-checklist .r5-check-list button:hover {
  background: rgba(255, 255, 255, 0.05);
}
#route5-desk-checklist .r5-check-face {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
#route5-desk-checklist .r5-check-ring {
  flex-shrink: 0;
  display: block;
}
#route5-desk-checklist .r5-check-done {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(91, 141, 239, 0.2);
  color: #8eb6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
#route5-desk-checklist .r5-check-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#route5-desk-checklist .r5-check-list li.is-done:not(.is-welcome) button span {
  color: rgba(245, 245, 247, 0.4);
}
#route5-desk-checklist .r5-check-see {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.4);
  font: 450 12.5px/1.2 inherit;
  padding: 6px 8px 4px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border-radius: 6px;
}
#route5-desk-checklist .r5-check-see:hover {
  color: rgba(245, 245, 247, 0.7);
  background: rgba(255, 255, 255, 0.04);
}
html.light #route5-desk-checklist .r5-check-card,
html[data-theme="light"] #route5-desk-checklist .r5-check-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #37352f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
html.light #route5-desk-checklist .r5-check-list button:hover,
html[data-theme="light"] #route5-desk-checklist .r5-check-list button:hover {
  background: rgba(55, 53, 47, 0.06);
}
html.light #route5-desk-checklist .r5-check-see,
html[data-theme="light"] #route5-desk-checklist .r5-check-see {
  color: #9b9a97;
}
html.light #route5-desk-checklist .r5-check-x,
html[data-theme="light"] #route5-desk-checklist .r5-check-x {
  color: #9b9a97;
}
.r5-check-list li.is-done i {
  background: rgba(52, 211, 153, 0.15);
  border-color: transparent;
}
.r5-check-prog {
  margin: 0;
  font-size: 11px;
  color: var(--r5n-muted);
}
#route5-aha-coach {
  display: none !important;
}

/* Softer Cleo chrome — less cheap-AI glow */
#route5-cleo-home .r5-cleo-box:focus-within {
  border-color: rgba(255, 20, 147, 0.4) !important;
  box-shadow: 0 0 0 1px rgba(255, 77, 184, 0.2) !important;
}

/* ═══ Tabbed Home command shell ═══ */
#route5-home-shell.r5-shell {
  --r5s-rail: #191919;
  --r5s-bg: #0f0f0f;
  --r5s-elev: #1e1e1e;
  --r5s-border: rgba(255, 255, 255, 0.07);
  --r5s-text: #f4f4f5;
  --r5s-muted: rgba(244, 244, 245, 0.55);
  --r5s-pink: #ff1493;
  position: fixed;
  inset: 0;
  z-index: 2147482200;
  display: flex;
  pointer-events: none;
  font: 450 13px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--r5s-text);
}
.r5-shell-rail {
  width: 244px;
  flex-shrink: 0;
  background: #191919;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  height: 100%;
  z-index: 2;
}
html.r5-shell-collapsed .r5-shell-rail {
  width: 64px;
}
html.r5-shell-collapsed .r5-shell-space-name,
html.r5-shell-collapsed .r5-shell-tab-label,
html.r5-shell-collapsed .r5-shell-pane,
html.r5-shell-collapsed .r5-shell-newchat span,
html.r5-shell-collapsed .r5-shell-newchat {
  font-size: 0;
}
html.r5-shell-collapsed .r5-shell-pane {
  display: none;
}
html.r5-shell-collapsed .r5-shell-newchat {
  width: 40px;
  padding: 0;
  justify-content: center;
}
.r5-shell-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
}
.r5-shell-space {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--r5s-text);
  font: 650 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: left;
}
.r5-shell-space:hover {
  background: rgba(255, 255, 255, 0.05);
}
.r5-shell-space-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.r5-shell-space-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r5-shell-collapse {
  border: 0;
  background: transparent;
  color: var(--r5s-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.r5-shell-collapse:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.r5-shell-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.r5-shell-tabs::-webkit-scrollbar {
  display: none;
}
.r5-notes-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.r5-auto-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r5-auto-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.r5-auto-rule strong {
  display: block;
  font: 600 13px/1.3 ui-sans-serif, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.92);
}
.r5-auto-rule .r5-shell-muted {
  font-size: 12px;
}
.r5-auto-toggle {
  appearance: none;
  border: 0;
  min-width: 52px;
  height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}
.r5-auto-toggle.is-on {
  background: #5e6ad2;
  color: #fff;
}
.r5-import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .r5-import-grid {
    grid-template-columns: 1fr;
  }
}
.r5-import-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r5-import-card h2 {
  margin: 0;
  font: 650 15px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-import-select {
  appearance: none;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font: 500 13px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-digest-sec {
  margin: 16px 0;
}
.r5-digest-sec h3 {
  margin: 0 0 8px;
  font: 650 14px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-digest-sec ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 13px/1.45 ui-sans-serif, system-ui, sans-serif;
}
.r5-digest-text {
  white-space: pre-wrap;
  font: 500 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.55);
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}
.r5-digest-metrics {
  margin-bottom: 16px;
}
.r5-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .r5-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.r5-metric {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.r5-metric strong {
  display: block;
  font: 700 18px/1.1 ui-sans-serif, system-ui, sans-serif;
  color: #fff;
}
.r5-metric span {
  font: 500 11px/1.3 ui-sans-serif, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.55);
}
.r5-digest-trust {
  margin-bottom: 16px;
}
.r5-digest-trust h3 {
  margin: 0 0 8px;
  font: 650 14px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r5-people-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.r5-people-row strong {
  display: block;
  font: 600 13px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-people-role-pill {
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(94, 106, 210, 0.25);
  color: rgba(255, 255, 255, 0.85);
}
.r5-people-invite {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
.r5-people-invite input[type="email"] {
  flex: 1 1 180px;
  min-width: 160px;
  appearance: none;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font: 500 13px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-roles-table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.r5-roles-table {
  width: 100%;
  border-collapse: collapse;
  font: 500 12px/1.35 ui-sans-serif, system-ui, sans-serif;
}
.r5-roles-table th,
.r5-roles-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.r5-roles-table th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}
.r5-roles-table td.is-yes {
  color: #8ddea0;
}
.r5-roles-table td.is-no {
  color: rgba(255, 255, 255, 0.28);
}
.r5-forms-link {
  font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #9aa3ff;
  word-break: break-all;
}
.r5-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: default;
}
.r5-ng-task-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r5-ng-task {
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
}
.r5-ng-task.is-done {
  opacity: 0.35;
  transform: translateX(8px);
}
.r5-ng-task-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.r5-ng-task-main > div {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}
.r5-ng-task-acts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.r5-ng-act {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 242, 244, 0.88);
  border-radius: 7px;
  padding: 4px 8px;
  font: 600 10px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.r5-ng-act:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.r5-ng-act--done {
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.r5-ng-act--done:hover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.55);
}
.r5-ng-act:disabled {
  opacity: 0.45;
  cursor: wait;
}
.r5-ng-approve-hint {
  margin: 0 0 8px;
  font-size: 12px;
}
.r5-propose--ng .r5-ng-propose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}
.r5-ng-propose-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.r5-ng-propose-body {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(242, 242, 244, 0.92);
}
.r5-ng-owner-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 22px;
  font-size: 11px;
  color: rgba(242, 242, 244, 0.55);
}
.r5-ng-owner-input {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #f2f2f4;
  border-radius: 8px;
  padding: 6px 10px;
  font: 500 12px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-ng-owner-input:focus {
  outline: none;
  border-color: rgba(255, 20, 147, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 20, 147, 0.15);
}
.r5-ng-owner-input.is-invalid {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
}
.r5-api-eps {
  margin: 0;
  padding-left: 18px;
  font: 500 12px/1.5 ui-sans-serif, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.78);
}
.r5-api-eps code {
  font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #c5caff;
}
.r5-notes.r5-trust {
  position: relative;
  animation: r5-desk-trust-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.r5-notes.r5-trust::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -8px -8px auto -8px;
  height: 140px;
  border-radius: 16px;
  background: radial-gradient(ellipse 70% 90% at 8% 0%, rgba(255, 20, 147, 0.12), transparent 62%);
  z-index: 0;
  animation: r5-desk-trust-wash 8s ease-in-out infinite alternate;
}
.r5-notes.r5-trust > * {
  position: relative;
  z-index: 1;
}
.r5-notes.r5-trust .r5-pro-head h1 {
  letter-spacing: -0.02em;
}
.r5-notes.r5-trust .r5-home-pill {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.3s ease;
}
.r5-notes.r5-trust .r5-home-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.r5-notes.r5-trust .r5-home-pill:active {
  transform: translateY(0) scale(0.98);
}
@keyframes r5-desk-trust-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes r5-desk-trust-wash {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .r5-notes.r5-trust,
  .r5-notes.r5-trust::before {
    animation: none !important;
  }
  .r5-notes.r5-trust .r5-home-pill:hover {
    transform: none !important;
  }
}
.r5-trust-gov,
.r5-trust-preview,
.r5-trust-matrix {
  margin-top: 18px;
}
.r5-trust-gov h3,
.r5-trust-preview h3,
.r5-trust-matrix h3,
.r5-boards h3,
.r5-packs h3,
.r5-packs-policy h3 {
  margin: 0 0 10px;
  font: 650 14px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.r5-trust-matrix-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r5-trust-enc {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 20, 147, 0.22);
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(255, 20, 147, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.03);
  transition:
    border-color 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease;
}
.r5-trust-enc:hover {
  border-color: rgba(255, 20, 147, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}
.r5-trust-matrix-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.15);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease;
  animation: r5-desk-trust-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.r5-trust-matrix-row:nth-child(1) { animation-delay: 0.04s; }
.r5-trust-matrix-row:nth-child(2) { animation-delay: 0.08s; }
.r5-trust-matrix-row:nth-child(3) { animation-delay: 0.12s; }
.r5-trust-matrix-row:nth-child(4) { animation-delay: 0.16s; }
.r5-trust-matrix-row:nth-child(5) { animation-delay: 0.2s; }
.r5-trust-matrix-row:nth-child(6) { animation-delay: 0.24s; }
.r5-trust-matrix-row:nth-child(7) { animation-delay: 0.28s; }
.r5-trust-matrix-row:nth-child(8) { animation-delay: 0.32s; }
.r5-trust-matrix-row:hover {
  border-color: rgba(255, 20, 147, 0.28);
  background: rgba(255, 20, 147, 0.04);
  transform: translateY(-2px) translateX(2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.r5-trust-matrix-row:hover .r5-trust-badge {
  transform: scale(1.06);
}
.r5-trust-matrix-row strong {
  display: block;
  font: 600 13px/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.r5-trust-matrix-row .r5-shell-muted {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}
.r5-trust-badge {
  flex-shrink: 0;
  font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.r5-trust-skel {
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 20, 147, 0.08) 45%,
    rgba(255, 255, 255, 0.03) 90%
  );
  background-size: 200% 100%;
  animation: r5-trust-skel 1.2s ease-in-out infinite;
}
@keyframes r5-trust-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.r5-trust-success-flash {
  animation: r5-trust-success 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes r5-trust-success {
  0% { box-shadow: inset 0 0 0 0 rgba(255, 20, 147, 0); }
  35% { box-shadow: inset 0 0 0 1px rgba(255, 20, 147, 0.45), 0 0 40px rgba(255, 20, 147, 0.12); }
  100% { box-shadow: inset 0 0 0 0 rgba(255, 20, 147, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .r5-trust-skel,
  .r5-trust-success-flash {
    animation: none !important;
  }
}
.r5-trust-badge--live {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}
.r5-trust-badge--configure {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}
.r5-trust-badge--roadmap {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}
.r5-packs-policy {
  margin: 14px 0 18px;
}
#r5-tasks-rollups .r5-metric {
  cursor: pointer;
  text-align: left;
  appearance: none;
  color: inherit;
  width: 100%;
}
#r5-tasks-rollups .r5-metric:hover {
  border-color: rgba(94, 106, 210, 0.45);
}
.r5-shell-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  height: 32px;
  min-width: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  padding: 0 8px;
  position: relative;
  flex-shrink: 0;
}
.r5-shell-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.r5-shell-tab-label {
  display: none;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  margin-left: 6px;
}
.r5-shell-tab.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 12px;
}
.r5-shell-tab.is-active .r5-shell-tab-label {
  display: inline;
}
.r5-shell-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.r5-shell-tab-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: 700 9px/14px ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
}
.r5-shell-tab-badge[hidden] {
  display: none !important;
}
.r5-shell-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 10px 16px;
}
.r5-shell-foot {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--r5s-border);
}
.r5-shell-newchat {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 13px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-shell-newchat:hover {
  background: rgba(255, 255, 255, 0.12);
}
.r5-shell-compose {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.r5-shell-stage {
  flex: 1;
  min-width: 0;
  background: var(--r5s-bg);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.r5-shell-stage[hidden] {
  display: none !important;
}
.r5-shell-stage-host {
  position: absolute;
  inset: 0;
  overflow: auto;
}
.r5-shell-muted {
  color: var(--r5s-muted);
  font-size: 12px;
  margin: 8px 4px;
}

/* Pane content */
.r5-pane-card {
  background: var(--r5s-elev);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--r5s-border);
}
.r5-pane-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font: 650 13px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-pane-card-head img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
}
.r5-pane-check,
.r5-pane-row,
.r5-pane-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--r5s-text);
  text-align: left;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  font: 450 13px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-pane-more {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--r5s-muted);
  cursor: pointer;
  letter-spacing: 0.08em;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
}
.r5-pane-more:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.r5-ring {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  box-sizing: border-box;
}
.r5-ring.is-partial {
  border-color: transparent;
  background: conic-gradient(#60a5fa 0 130deg, rgba(255, 255, 255, 0.14) 130deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.r5-ring.is-done {
  border-color: transparent;
  background: #3b82f6;
  position: relative;
}
.r5-ring.is-done::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: #191919;
  box-shadow: inset 0 0 0 1.5px #3b82f6;
}
.r5-pane-check span {
  flex: 1;
}
.r5-pane-row.is-muted {
  color: var(--r5s-muted);
}
.r5-pane-label-acts {
  display: inline-flex;
  gap: 2px;
}
.r5-pane-thread {
  position: relative;
}
.r5-pane-thread-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r5-pane-meta {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--r5s-muted);
  flex-shrink: 0;
}
.r5-pane-dot-unread {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  flex-shrink: 0;
}
.r5-pane-agent-face {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: block;
  background: #2a2a2c;
}
.r5-pane-agent-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0 !important;
}
/* Colored teamspace / private icons */
.r5-ico-notes,
.r5-ico-hq,
.r5-ico-projects,
.r5-ico-tasks,
.r5-ico-meetings,
.r5-ico-docs,
.r5-ico-welcome,
.r5-ico-chatline,
.r5-ico-inbox,
.r5-ico-mail,
.r5-ico-bolt {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  border-radius: 4px;
  background: center / contain no-repeat;
}
.r5-ico-notes {
  background-image: linear-gradient(#f5d76e, #e6b800);
  border-radius: 3px;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12);
}
.r5-ico-hq {
  background: transparent;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  background-color: #f4f4f5;
}
.r5-ico-meetings {
  background:
    linear-gradient(#fff 0 26%, transparent 26%),
    linear-gradient(#f43f5e, #e11d48);
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.r5-ico-meetings::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  top: 9px;
  border-radius: 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px) 0 0 / 5px 5px,
    linear-gradient(rgba(255, 255, 255, 0.35) 0 2px, transparent 2px) 0 0 / 5px 5px;
  opacity: 0.9;
}
.r5-ico-projects {
  background:
    radial-gradient(circle, transparent 32%, #a1a1aa 33%, #a1a1aa 46%, transparent 47%),
    radial-gradient(circle, #d4d4d8 0 20%, transparent 21%);
  border-radius: 999px;
}
.r5-ico-tasks {
  background-color: #34d399;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.r5-ico-docs {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  border-radius: 3px;
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.25);
}
.r5-ico-welcome {
  background: radial-gradient(circle at 50% 40%, #fbbf24 0 28%, transparent 29%),
    radial-gradient(circle at 50% 70%, #f59e0b 0 40%, transparent 41%), #292524;
  border-radius: 6px;
}
.r5-ico-chatline {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.r5-ico-inbox {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
.r5-ico-mail {
  background: #f43f5e;
  border-radius: 4px;
}
.r5-ico-bolt {
  background: #fbbf24;
  border-radius: 4px;
}
.r5-pane-check:hover,
.r5-pane-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.r5-pane-link {
  color: var(--r5s-muted);
  font-size: 12px;
  padding-top: 4px;
}
.r5-pane-label,
.r5-pane-label-row {
  color: var(--r5s-muted);
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
  padding: 12px 8px 6px;
  text-transform: none;
}
.r5-pane-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.r5-pane-mini {
  border: 0;
  background: transparent;
  color: var(--r5s-muted);
  cursor: pointer;
  font-size: 16px;
}
.r5-pane-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #f5d76e;
  flex-shrink: 0;
}
.r5-pane-plus {
  width: 18px;
  color: var(--r5s-muted);
  text-align: center;
}
.r5-pane-ico {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.r5-pane-ico.is-blue {
  color: #7dd3fc;
}
.r5-pane-ico.is-green {
  color: #6ee7b7;
}
.r5-pane-ico.is-red {
  color: #fb7185;
}
.r5-pane-agents {
  display: flex;
  gap: 12px;
  padding: 4px 8px 10px;
}
.r5-pane-agent {
  border: 0;
  background: transparent;
  color: var(--r5s-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 ui-sans-serif, system-ui, sans-serif;
  width: 64px;
}
.r5-pane-agent-plus {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 20px;
}
.r5-pane-agent.is-on span {
  color: #fff;
}
.r5-pane-skel .r5-skel-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
}
.r5-skel-row i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.r5-skel-row b {
  flex: 1;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.r5-pane-checksq {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}
.r5-pane-row.is-static {
  cursor: default;
}
.r5-pane-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
}

/* Home stage — next-gen Cleo hub */
.r5-home {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
}
.r5-home--nexgen {
  padding-top: 56px;
}
.r5-home--notion {
  padding-top: 64px;
  gap: 0;
}
.r5-home--notion .r5-home-hero {
  margin-bottom: 28px;
}
.r5-home--notion .r5-home-face,
.r5-chat-empty .r5-home-face {
  width: 96px !important;
  height: 96px !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 20, 147, 0.12);
}

.r5-chat-empty h1 {
  font-size: clamp(26px, 3.8vw, 36px);
  letter-spacing: -0.045em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.r5-chat-empty .r5-home-quick--notion {
  margin-top: 20px;
}
.r5-home--notion .r5-home-hero h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.048em;
  line-height: 1.08;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.r5-home--notion .r5-home-greet {
  margin-bottom: 12px;
  opacity: 0.72;
}
.r5-home--notion .r5-home-box {
  width: min(680px, 100%);
  border-radius: 24px;
  background: rgba(32, 32, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.09);
}
.r5-home--notion .r5-home-box textarea {
  min-height: 84px;
  padding: 22px 22px 12px;
  font-size: 16.5px;
}
.r5-home--notion .r5-home-ribbon {
  padding: 10px 14px 12px;
  gap: 10px;
}
.r5-home--notion .r5-home-apps {
  max-width: 68% !important;
  gap: 6px !important;
}
.r5-home--notion .r5-home-app {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    box-shadow 0.3s ease;
}
.r5-home--notion .r5-home-app img {
  width: 16px;
  height: 16px;
}
.r5-home--notion .r5-home-app:hover {
  transform: translateY(-2px) scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}
.r5-home-quick--notion {
  margin-top: 18px;
  gap: 6px 4px;
}
.r5-home-quick--notion button {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
}
.r5-home-quick--notion button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.r5-home-aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255, 20, 147, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 30%, rgba(99, 102, 241, 0.1), transparent 65%),
    radial-gradient(ellipse 35% 45% at 80% 20%, rgba(56, 189, 248, 0.08), transparent 60%);
  filter: blur(2px);
  animation: r5Aurora 14s ease-in-out infinite alternate;
}
@keyframes r5Aurora {
  from {
    opacity: 0.7;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 1;
    transform: translateY(12px) scale(1.04);
  }
}
.r5-home-hero,
.r5-home-box,
.r5-home-pulse,
.r5-home-smart,
.r5-home-quick,
.r5-home-thread {
  position: relative;
  z-index: 1;
}
.r5-home-hero {
  text-align: center;
  margin-bottom: 22px;
  max-width: 40rem;
}
.r5-home-face-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.r5-home-face-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 20, 147, 0.22);
  animation: r5-cleo-ring 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes r5-cleo-ring {
  0% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.r5-home-face {
  width: 72px !important;
  height: 72px !important;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 0;
  background: #2a2a2e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.45);
  animation: r5FaceIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes r5FaceIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.r5-home-pulse-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px #111;
  animation: r5Live 2.2s ease-in-out infinite;
}
@keyframes r5Live {
  0%,
  100% {
    box-shadow: 0 0 0 3px #111, 0 0 0 3px rgba(52, 211, 153, 0);
  }
  50% {
    box-shadow: 0 0 0 3px #111, 0 0 0 8px rgba(52, 211, 153, 0.2);
  }
}
.r5-home-greet {
  margin: 0 0 10px;
  font: 500 12px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.48);
}
.r5-home-hero h1 {
  margin: 0;
  font: 600 34px/1.12 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.042em;
  color: #fff;
  font-weight: 600;
  animation: r5StageIn 420ms ease both;
}
.r5-home-sub {
  margin: 12px auto 0;
  max-width: 28rem;
  font: 450 14px/1.45 ui-sans-serif, system-ui, sans-serif;
  color: rgba(244, 244, 245, 0.55);
  text-align: center;
}
.r5-home-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 18px;
  width: min(640px, 100%);
}
.r5-home-pulse[hidden] {
  display: none !important;
}
.r5-pulse-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(244, 244, 245, 0.78);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 88px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.r5-pulse-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.r5-pulse-pill strong {
  font: 650 18px/1.1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
}
.r5-pulse-pill span {
  font: 500 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  color: rgba(244, 244, 245, 0.5);
}
.r5-pulse-pill.is-warn strong {
  color: #fbbf24;
}
.r5-pulse-pill.is-hot strong {
  color: #fb7185;
}
.r5-home-box {
  width: min(640px, 100%);
  background: rgba(37, 37, 37, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
.r5-home-box textarea {
  width: 100%;
  border: 0;
  resize: none;
  background: transparent;
  color: #fff;
  padding: 20px 20px 10px;
  font: 450 16px/1.45 ui-sans-serif, system-ui, -apple-system, sans-serif;
  outline: none;
  box-sizing: border-box;
  min-height: 72px;
}
.r5-home-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
  transition: color 200ms ease;
}
.r5-home-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px;
}
.r5-home-tools-left,
.r5-home-tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.r5-home-ico,
.r5-home-auto,
.r5-home-send {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-radius: 999px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 13px/1 ui-sans-serif, system-ui, sans-serif;
}
.r5-home-ico:hover,
.r5-home-auto:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.r5-home-send {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
}
.r5-home-send:disabled {
  opacity: 0.35;
  cursor: default;
}
.r5-home-send:not(:disabled) {
  background: #fff;
  color: #111;
}
.r5-home-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--r5s-muted);
  font-size: 12px;
}
.r5-home-ribbon[hidden] {
  display: none !important;
}
.r5-home-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  max-width: 55%;
  justify-content: flex-end;
}
.r5-home-app {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.r5-home-app img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}
.r5-home-app.is-connected {
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.55);
}
.r5-home-apps {
  max-width: 62% !important;
  gap: 5px !important;
}
.r5-home-ribbon-x {
  border: 0;
  background: transparent;
  color: var(--r5s-muted);
  cursor: pointer;
  padding: 4px;
}
.r5-home-smart {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  width: min(640px, 100%);
}
.r5-smart-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 245, 0.82);
  font: 500 12.5px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease,
    color 150ms ease;
}
.r5-smart-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}
.r5-home-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  width: min(720px, 100%);
}
.r5-home-quick button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: 500 13px/1 ui-sans-serif, system-ui, sans-serif;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 150ms ease,
    color 150ms ease;
}
.r5-home-quick button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.r5-pane-prog {
  margin-left: auto;
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif;
  color: rgba(244, 244, 245, 0.45);
  letter-spacing: 0.02em;
}
.r5-pane-card--path {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent) !important;
}
.r5-pane-studio {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}
.r5-pane-studio > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(244, 244, 245, 0.45);
  font: 650 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 8px;
  user-select: none;
}
.r5-pane-studio > summary::-webkit-details-marker {
  display: none;
}
.r5-pane-studio > summary:hover {
  color: rgba(244, 244, 245, 0.75);
  background: rgba(255, 255, 255, 0.04);
}
.r5-pane-studio[open] > summary {
  color: rgba(244, 244, 245, 0.7);
  margin-bottom: 2px;
}
.r5-home-quick i {
  font-style: normal;
  width: 14px;
  height: 14px;
  display: inline-block;
  opacity: 0.85;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.r5-qa-slides {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='6' height='6' rx='1' fill='black'/%3E%3Crect x='9' y='1' width='6' height='6' rx='1' fill='black'/%3E%3Crect x='1' y='9' width='6' height='6' rx='1' fill='black'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='6' height='6' rx='1' fill='black'/%3E%3Crect x='9' y='1' width='6' height='6' rx='1' fill='black'/%3E%3Crect x='1' y='9' width='6' height='6' rx='1' fill='black'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1' fill='black'/%3E%3C/svg%3E");
}
.r5-qa-sheets {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='2' width='14' height='12' rx='1' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M1 6h14M1 10h14M6 2v12' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='2' width='14' height='12' rx='1' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M1 6h14M1 10h14M6 2v12' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E");
}
.r5-qa-research {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='m10.5 10.5 3 3' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='m10.5 10.5 3 3' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.r5-qa-viz {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l1.2 4.2L13.5 6 9.2 7.2 8 11.5 6.8 7.2 2.5 6l4.3-.8L8 1z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l1.2 4.2L13.5 6 9.2 7.2 8 11.5 6.8 7.2 2.5 6l4.3-.8L8 1z' fill='black'/%3E%3C/svg%3E");
}
.r5-shell-spark {
  flex-shrink: 0;
}
.r5-home-send svg {
  display: block;
}
.r5-pane-card {
  background: #202020 !important;
  border-radius: 10px !important;
  padding: 10px 10px 8px !important;
}
.r5-pane-card-head img {
  width: 18px !important;
  height: 18px !important;
}
.r5-home-thread {
  width: min(720px, 100%);
  margin-top: 28px;
  max-height: 40vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r5-home-thread[hidden] {
  display: none !important;
}
.r5-home-msg {
  padding: 12px 14px;
  border-radius: 14px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
}
.r5-home-msg.is-mine {
  background: rgba(255, 20, 147, 0.12);
  border-color: rgba(255, 20, 147, 0.25);
  align-self: flex-end;
  max-width: 85%;
}
.r5-home-msg.is-thinking {
  color: var(--r5s-muted);
}
.r5-home-center {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
.r5-home-center h1 {
  margin: 0 0 8px;
  font: 650 26px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 24px;
}
.r5-home-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--r5s-pink);
  color: #fff;
  font: 600 13px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-home-pill--ghost {
  background: rgba(255, 255, 255, 0.08);
}
.r5-inbox-body {
  width: min(560px, 100%);
  text-align: left;
}
.r5-inbox-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.r5-inbox-body li {
  padding: 10px 0;
  border-bottom: 1px solid var(--r5s-border);
}

/* Search modal */
.r5-shell-search {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
  pointer-events: auto;
}
.r5-shell-search[hidden] {
  display: none !important;
}
.r5-shell-search-card {
  width: min(720px, 100%);
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.r5-shell-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--r5s-border);
}
.r5-shell-search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font: 450 15px/1.3 ui-sans-serif, system-ui, sans-serif;
  outline: none;
}
.r5-shell-search-ico {
  color: var(--r5s-muted);
  display: inline-flex;
}
.r5-shell-search-x {
  border: 0;
  background: transparent;
  color: var(--r5s-muted);
  cursor: pointer;
}
.r5-shell-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--r5s-border);
}
.r5-shell-search-filters button {
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--r5s-muted);
  border-radius: 8px;
  padding: 6px 10px;
  font: 500 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-shell-search-filters button.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.r5-shell-search-results {
  min-height: 180px;
  max-height: 48vh;
  overflow: auto;
  padding: 8px;
}
.r5-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: 450 13px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-search-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.r5-search-ask {
  color: #ff8cc8;
}

/* Full Chat software stage */
.r5-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: #111111;
}
.r5-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.r5-chat-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.r5-chat-top-left img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}
.r5-chat-top-left strong {
  display: block;
  font: 650 13px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-chat-top-left span {
  display: block;
  font-size: 11px;
  color: var(--r5s-muted, rgba(244, 244, 245, 0.55));
}
.r5-chat-top-right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.r5-chat-top-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-chat-top-btn.is-primary {
  background: rgba(255, 255, 255, 0.12);
}
.r5-chat-top-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.r5-chat-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.r5-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 24px;
}
.r5-chat-empty[hidden] {
  display: none !important;
}
.r5-chat-empty h1 {
  margin: 0 0 8px;
  font: 650 26px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.r5-chat-seeds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  max-width: 560px;
}
.r5-chat-seeds button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c1e;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 14px;
  font: 500 12px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-chat-seeds button:hover {
  border-color: rgba(255, 20, 147, 0.35);
  color: #fff;
}
.r5-chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px 12px;
  width: min(760px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}
.r5-chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  align-self: flex-start;
}
.r5-chat-bubble.is-mine {
  align-self: flex-end;
  background: rgba(255, 20, 147, 0.12);
  border-color: rgba(255, 20, 147, 0.28);
}
.r5-chat-bubble.is-thinking {
  color: rgba(244, 244, 245, 0.55);
}
.r5-chat-bubble-meta {
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif;
  color: rgba(244, 244, 245, 0.5);
  margin-bottom: 6px;
}
.r5-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  font: 450 14px/1.45 ui-sans-serif, system-ui, sans-serif;
}
.r5-chat-composer {
  flex-shrink: 0;
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, transparent, #111 28%);
}
.r5-chat-box {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.r5-chat-box:focus-within {
  border-color: rgba(255, 20, 147, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.12);
}
.r5-chat-box textarea {
  width: 100%;
  border: 0;
  resize: none;
  background: transparent;
  color: #fff;
  padding: 14px 16px 6px;
  font: 450 15px/1.45 ui-sans-serif, system-ui, sans-serif;
  outline: none;
  box-sizing: border-box;
  min-height: 44px;
  max-height: 140px;
}
.r5-chat-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Checklist sits in sidebar — kill old floating tuck rules */
#route5-desk-checklist.r5-check-tucked {
  transform: none !important;
  opacity: 1 !important;
  right: auto !important;
  bottom: auto !important;
  max-width: none !important;
}
#route5-desk-checklist.r5-check-tucked .r5-check-lead {
  display: none;
}

.r5-tools-menu {
  position: fixed;
  z-index: 2147483700;
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r5-tools-menu button {
  border: 0;
  background: transparent;
  color: #f4f4f5;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font: 500 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-tools-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.r5-chat-picker {
  margin: 16px auto;
  width: min(480px, 92%);
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}
.r5-chat-picker h2 {
  margin: 0 0 10px;
  font: 650 18px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-picker-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 40vh;
  overflow: auto;
  margin: 10px 0;
}
.r5-picker-row,
.r5-picker-check {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: 450 13px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-picker-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.r5-picker-row:hover,
.r5-picker-check:hover {
  background: rgba(255, 255, 255, 0.06);
}
.r5-picker-row span {
  color: rgba(244, 244, 245, 0.5);
  font-size: 12px;
}
.r5-picker-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: 450 13px/1.3 ui-sans-serif, system-ui, sans-serif;
}

.r5-inbox-pro,
.r5-meet-pro,
.r5-notes {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
  box-sizing: border-box;
}
.r5-pro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.r5-pro-head h1 {
  margin: 0 0 4px;
  font: 650 24px/1.15 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.r5-pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.r5-inbox-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 12px;
}
.r5-inbox-list,
.r5-inbox-detail {
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: auto;
  min-height: 280px;
}
.r5-inbox-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  font: 450 13px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-inbox-item span {
  color: rgba(244, 244, 245, 0.5);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r5-inbox-item.is-on,
.r5-inbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.r5-inbox-msgs {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r5-empty-card {
  padding: 28px 20px;
  text-align: center;
}
.r5-empty-card strong {
  display: block;
  margin-bottom: 6px;
}
.r5-meet-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px);
  gap: 12px;
}
.r5-meet-main,
.r5-meet-side {
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  overflow: auto;
}
.r5-meet-ta,
.r5-notes-ta {
  width: 100%;
  min-height: 220px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font: 450 14px/1.45 ui-sans-serif, system-ui, sans-serif;
  resize: vertical;
  outline: none;
}
.r5-notes-ta {
  flex: 1;
  min-height: 60vh;
}
.r5-propose {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.r5-propose li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.r5-listen-banner {
  background: rgba(255, 20, 147, 0.12);
  border: 1px solid rgba(255, 20, 147, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.r5-listen-live {
  display: none;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 20, 147, 0.28);
  background: linear-gradient(180deg, rgba(255, 20, 147, 0.1), rgba(26, 26, 28, 0.9));
  border-radius: 14px;
  padding: 12px 14px;
  max-height: 220px;
  overflow: auto;
}
.r5-listen-live.is-on,
.r5-listen-live:not([hidden]) {
  display: block;
}
.r5-listen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.r5-listen-bar strong {
  font: 650 13px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.r5-listen-bar em {
  color: rgba(244, 244, 245, 0.55);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}
.r5-listen-pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.r5-listen-pulse.is-on {
  background: #ff1493;
  box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.55);
  animation: r5Pulse 1.2s ease-out infinite;
}
@keyframes r5Pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(255, 20, 147, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 20, 147, 0);
  }
}
.r5-listen-stream {
  font: 450 14px/1.5 ui-sans-serif, system-ui, sans-serif;
  color: #f4f4f5;
  white-space: pre-wrap;
  min-height: 48px;
}
.r5-listen-interim {
  margin-top: 6px;
  color: rgba(244, 244, 245, 0.45);
  font: 450 13px/1.45 ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
}
.r5-meet-live-actions {
  min-height: 72px;
  margin-bottom: 16px;
}
.r5-propose--live li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.r5-live-tag {
  flex-shrink: 0;
  font: 700 9px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff1493;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 20, 147, 0.12);
}
.r5-home-pill.is-danger {
  background: rgba(255, 20, 147, 0.22) !important;
  color: #fff !important;
}
.r5-conn-grid {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.r5-conn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.r5-conn-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1c;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  font: 450 13px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-conn-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #222;
}
.r5-conn-card.is-connected {
  border-color: rgba(52, 211, 153, 0.45);
}
.r5-conn-card strong {
  font-weight: 650;
}
.r5-conn-card span {
  color: rgba(244, 244, 245, 0.5);
  font-size: 12px;
}
.r5-shell-search-filters button.is-on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Stage enter feel */
.r5-shell-stage-host > * {
  animation: r5StageIn 180ms ease;
}
@keyframes r5StageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.r5-shell-tab {
  transition:
    background 160ms ease,
    color 160ms ease,
    padding 160ms ease !important;
}
.r5-home-box:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 20, 147, 0.18),
    0 22px 56px rgba(0, 0, 0, 0.48);
  transform: translateY(-1px);
}
.r5-home-app {
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}
.r5-home-app:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.12);
}
.r5-home-app.is-connected {
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.65), 0 0 10px rgba(52, 211, 153, 0.25);
}
.r5-home-msg.is-thinking {
  animation: r5Think 1.4s ease-in-out infinite;
}
@keyframes r5Think {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.r5-shell-search-results kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(244, 244, 245, 0.7);
}
.r5-home-thread {
  margin-top: 20px;
  width: min(720px, 100%);
  max-height: 42vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 24px;
}
.r5-home-msg {
  align-self: flex-start;
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font: 450 14px/1.45 ui-sans-serif, system-ui, sans-serif;
  white-space: pre-wrap;
}
.r5-home-msg.is-mine {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
}
.r5-home-msg.is-thinking {
  color: rgba(244, 244, 245, 0.55);
  font-style: italic;
}
.r5-home-app.is-connected {
  outline: 1.5px solid rgba(52, 211, 153, 0.65);
  outline-offset: 1px;
}
.r5-pane-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 4px 6px;
  color: var(--r5s-muted);
  font: 600 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0.01em;
}
.r5-pane-label-row > span:first-child {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .r5-inbox-split,
  .r5-meet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .r5-shell-rail {
    width: 68px;
  }
  .r5-shell-space-name,
  .r5-shell-pane {
    display: none !important;
  }
  .r5-shell-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .r5-shell-tab {
    flex-direction: column;
    gap: 3px;
    padding: 8px 4px;
    min-height: 48px;
  }
  .r5-shell-tab-label {
    display: block !important;
    font-size: 9px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.72;
  }
  .r5-shell-tab[aria-selected="true"] .r5-shell-tab-label {
    opacity: 1;
    color: #fff;
  }
  .r5-shell-newchat span {
    display: none;
  }
  .r5-ng-task {
    flex-wrap: wrap;
  }
  .r5-ng-task-acts {
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
  }
}

/* Not found / crash — Notify team bar */
.r5-nf-bar {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 10, 0.72);
  pointer-events: auto;
}
.r5-nf-card {
  width: min(420px, 100%);
  padding: 28px 26px 22px;
  border-radius: 14px;
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.r5-nf-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.r5-nf-card > p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(244, 244, 245, 0.62);
}
.r5-nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.r5-nf-primary,
.r5-nf-secondary {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  font: 600 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-nf-primary {
  background: #ff1493;
  color: #fff;
}
.r5-nf-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
.r5-nf-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.r5-nf-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 12px;
  color: rgba(244, 244, 245, 0.55);
}
.r5-nf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483700;
  padding: 10px 16px;
  border-radius: 8px;
  background: #1a1a1e;
  color: #f2f2f4;
  font: 500 13px/1.3 ui-sans-serif, system-ui, sans-serif;
  border: 1px solid rgba(255, 20, 147, 0.35);
}

/* Apple CalDAV + publish email (desk shell) */
.r5-apple-cal {
  margin: 20px 12px 28px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.r5-apple-cal h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.r5-apple-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-width: 360px;
}
.r5-apple-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(244, 244, 245, 0.65);
}
.r5-apple-form input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #f4f4f5;
  font-size: 13px;
}
.r5-pub-emails {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 12px;
  color: rgba(244, 244, 245, 0.65);
}
.r5-pub-emails input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #f4f4f5;
  font-size: 13px;
  max-width: 420px;
}
.r5-briefing-summary {
  margin: 0 0 14px;
  max-width: 52rem;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(244, 244, 245, 0.82);
}

.r5-bp-attest-bar {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  max-width: 520px;
}
.r5-bp-attest-bar label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(244, 244, 245, 0.65);
}
.r5-bp-attest-bar select,
.r5-bp-attest-bar input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #f4f4f5;
  font-size: 13px;
}
.r5-bp-preview {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.r5-mkt-wait {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 0 0 14px;
}
.r5-mkt-wait label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(244, 244, 245, 0.65);
}
.r5-mkt-wait input {
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #f4f4f5;
  font-size: 13px;
}
.r5-sales-stage select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #f4f4f5;
  font-size: 12px;
}
.r5-metric.is-on {
  outline: 1px solid rgba(94, 106, 210, 0.55);
}

/* ═══ Final-touch polish wave ═══ */
.r5-chat {
  color: #f4f4f5;
}
.r5-chat-empty h1 {
  color: #fff;
}
.r5-chat-empty .r5-home-greet {
  margin-bottom: 10px;
}
.r5-chat-empty .r5-home-sub {
  margin-top: 10px;
}
.r5-pulse-pill.is-muted strong {
  color: rgba(244, 244, 245, 0.4);
}
.r5-pane-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(244, 244, 245, 0.55);
  line-height: 1.4;
}
.r5-pane-empty .r5-pane-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: #ff8cc8;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.r5-empty-card {
  padding: 28px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  max-width: 420px;
  margin: 24px auto;
}
.r5-empty-card strong {
  display: block;
  font: 650 15px/1.3 ui-sans-serif, system-ui, sans-serif;
  color: #fff;
  margin-bottom: 8px;
}
.r5-empty-card .r5-home-pill {
  margin-top: 14px;
}
.r5-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 4px 0 24px;
}
.r5-proj-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f4f4f5;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}
.r5-proj-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.r5-proj-card strong {
  font: 650 14px/1.25 ui-sans-serif, system-ui, sans-serif;
}
.r5-pack-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin: 0 0 16px;
}
.r5-pack-card h3 {
  margin: 0 0 8px;
  font: 650 16px/1.25 ui-sans-serif, system-ui, sans-serif;
  color: #fff;
}
.r5-pack-card h4 {
  margin: 14px 0 6px;
  font: 650 12px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.5);
}
.r5-pack-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(244, 244, 245, 0.78);
  font-size: 13px;
  line-height: 1.45;
}
.r5-pack-metrics {
  justify-content: flex-start;
  margin: 12px 0;
}
.r5-raw-details {
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
}
.r5-raw-details > summary {
  cursor: pointer;
  color: rgba(244, 244, 245, 0.55);
  font-size: 12px;
  user-select: none;
}
.r5-raw-details[open] > summary {
  margin-bottom: 8px;
  color: rgba(244, 244, 245, 0.75);
}
.r5-sf-menu {
  position: absolute;
  z-index: 40;
  margin-top: 6px;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1c1e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 2px;
}
.r5-shell-search-filters {
  position: relative;
}
.r5-sf-menu button {
  border: 0;
  background: transparent;
  color: rgba(244, 244, 245, 0.85);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: 500 12px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-sf-menu button:hover,
.r5-sf-menu button.is-on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.r5-stage-fallback {
  color: #f4f4f5;
}
.r5-stage-fallback h1 {
  color: #fff;
}
.r5-notes,
.r5-meet-pro,
.r5-market,
.r5-boards,
.r5-publish,
.r5-projects {
  color: #f4f4f5;
  min-height: 100%;
  box-sizing: border-box;
}
.r5-notes h1,
.r5-meet-pro h1,
.r5-pro-head h1 {
  color: #fff;
}
.r5-pro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.r5-pro-head h1 {
  margin: 0 0 6px;
  font: 650 22px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: -0.03em;
}
.r5-home-pill:active,
.r5-smart-chip:active,
.r5-pulse-pill:active,
.r5-proj-card:active {
  transform: translateY(0) scale(0.98);
}
.r5-home-pill:focus-visible,
.r5-smart-chip:focus-visible,
.r5-pulse-pill:focus-visible,
.r5-shell-tab:focus-visible,
.r5-pane-row:focus-visible,
.r5-home-send:focus-visible,
.r5-home-ico:focus-visible {
  outline: 2px solid rgba(255, 20, 147, 0.65);
  outline-offset: 2px;
}
.r5-shell-pane {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.r5-shell-pane::-webkit-scrollbar,
.r5-shell-stage-host::-webkit-scrollbar {
  width: 8px;
}
.r5-shell-pane::-webkit-scrollbar-thumb,
.r5-shell-stage-host::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
/* Kill leftover ASK Cleo docks under the panel */
html[data-r5-cleo-open="1"] [data-r5-ask-cleo-dock],
html[data-r5-cleo-open="1"] #route5-cleo-dock,
html[data-r5-cleo-open="1"] .r5-ask-cleo-fab {
  display: none !important;
}
.r5-home-msg,
.r5-chat-bubble {
  color: #f4f4f5;
}
.r5-digest-text {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 450 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(244, 244, 245, 0.72);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
@media (prefers-reduced-motion: reduce) {
  .r5-home-aurora,
  .r5-home-face,
  .r5-home-pulse-dot,
  .r5-home-msg.is-thinking,
  .r5-shell-stage-host > *,
  .r5-skel-row i,
  .r5-skel-row b,
  .r5-desk-toast {
    animation: none !important;
  }
}

/* Meaningful micro-touches */
.r5-desk-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 2147483000;
  background: #1a191f;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font: 600 13px/1.3 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  max-width: min(92vw, 420px);
  text-align: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}
.r5-desk-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.r5-desk-toast.is-ok {
  border-color: rgba(52, 211, 153, 0.35);
}
.r5-desk-toast.is-warn {
  border-color: rgba(251, 113, 133, 0.4);
}
.r5-desk-toast.is-info {
  border-color: rgba(125, 211, 252, 0.35);
}
.r5-mode-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  font: 650 10px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.r5-mode-chip.is-live {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(16, 185, 129, 0.12);
}
.r5-mode-chip.is-demo {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(245, 158, 11, 0.1);
}
.r5-home-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: min(640px, 100%);
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(244, 244, 245, 0.42);
  font-size: 11px;
}
.r5-kbd-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.r5-kbd-row kbd,
.r5-stage-hint kbd,
.r5-shell-search-results kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font: 600 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(244, 244, 245, 0.7);
}
.r5-stage-hint {
  margin: 6px 0 0;
  font: 450 12px/1.4 ui-sans-serif, system-ui, sans-serif;
  color: rgba(244, 244, 245, 0.48);
  max-width: 36rem;
}
.r5-home-msg-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 4px;
  align-self: flex-start;
}
.r5-home-msg-acts button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 245, 0.8);
  border-radius: 999px;
  padding: 5px 10px;
  font: 500 11px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5-home-msg-acts button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.r5-task-row.is-overdue {
  border-left: 2px solid #fb7185;
  padding-left: 10px;
}
.r5-pane-meta.is-hot {
  color: #fb7185 !important;
}
.r5-home-pill.is-flash {
  background: rgba(52, 211, 153, 0.25) !important;
  color: #ecfdf5 !important;
}
.r5-skel-row i,
.r5-skel-row b {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  background-size: 200% 100%;
  animation: r5Shimmer 1.2s ease-in-out infinite;
  animation-delay: var(--d, 0ms);
}
@keyframes r5Shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.r5-shell-head {
  position: relative;
}
.r5-pane-meta {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: rgba(244, 244, 245, 0.42);
  margin-top: 2px;
}

/* RTL mirrored directional icons */
[dir="rtl"] .r5-icon-mirror,
html[dir="rtl"] .r5-icon-mirror {
  transform: scaleX(-1);
}

/* ═══════════════════════════════════════════════════════════
   Beat Notion — Welcome feature deck + glowing dock composer
   ═══════════════════════════════════════════════════════════ */
.r5-home--beat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 28px 28px !important;
  gap: 0;
  box-sizing: border-box;
}
.r5-home--beat .r5-home-aurora {
  inset: -10% -20% auto;
  height: 42%;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(35, 131, 226, 0.1), transparent 68%),
    radial-gradient(ellipse 40% 50% at 15% 40%, rgba(255, 20, 147, 0.07), transparent 65%),
    radial-gradient(ellipse 35% 45% at 85% 30%, rgba(99, 102, 241, 0.08), transparent 60%);
}
.r5-home--beat .r5-home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}
.r5-home--beat .r5-home-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 2px;
  font: 500 13px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.01em;
}
.r5-home-crumb-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.r5-home--beat .r5-home-crumb i {
  font-style: normal;
  opacity: 0.35;
  margin: 0 1px;
}
.r5-home--beat .r5-home-crumb strong {
  font-weight: 550;
  color: rgba(255, 255, 255, 0.88);
}
.r5-home-crumb-chev {
  opacity: 0.4;
  margin-left: 2px;
}
.r5-home--beat .r5-home-bubble {
  margin: 0;
  padding: 10px 14px;
  max-width: 240px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(40, 40, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  font: 500 13.5px/1.35 ui-sans-serif, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.015em;
  animation: r5BubbleIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes r5BubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Feature deck */
.r5-home--beat .r5-home-feat {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.r5-feat-heading {
  margin: 0 0 18px;
  font: 650 clamp(22px, 2.6vw, 28px)/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: -0.035em;
  color: #fff;
  text-align: left;
}
.r5-feat-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 18px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  width: fit-content;
}
.r5-feat-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: 550 13px/1 ui-sans-serif, system-ui, sans-serif;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.r5-feat-tabs button:hover {
  color: rgba(255, 255, 255, 0.78);
}
.r5-feat-tabs button.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.r5-feat-body {
  width: 100%;
}
.r5-feat-shell {
  border-radius: 18px;
  background: rgba(28, 28, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  padding: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.r5-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.r5-feat-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(42, 42, 46, 0.95), rgba(32, 32, 36, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  min-height: 280px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.3s ease;
  animation: r5FeatIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.r5-feat-card:nth-child(2) {
  animation-delay: 60ms;
}
.r5-feat-card:nth-child(3) {
  animation-delay: 120ms;
}
.r5-feat-card:nth-child(n + 4) {
  animation-delay: 160ms;
}
@keyframes r5FeatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.r5-feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(35, 131, 226, 0.15);
}
.r5-feat-card.is-done {
  opacity: 0.72;
}
.r5-feat-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 148px;
  margin: 10px 10px 0;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 30%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(160deg, rgba(55, 55, 62, 0.9), rgba(24, 24, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.r5-feat-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.r5-feat-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.r5-feat-card h3 {
  margin: 0;
  font: 600 15px/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}
.r5-feat-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 8px;
  background: #2383e2;
  color: #fff;
  font: 600 13.5px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 16px rgba(35, 131, 226, 0.28);
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.r5-feat-cta:hover {
  background: #1a73d0;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 22px rgba(35, 131, 226, 0.38);
}
.r5-feat-cta:active {
  transform: translateY(0);
}
.r5-feat-empty {
  padding: 48px 24px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ── Card mock visuals ── */
.r5-fv-org {
  position: relative;
  width: 78%;
  height: 72%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  align-items: center;
  z-index: 1;
}
.r5-fv-org-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r5-fv-org-lines span {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}
.r5-fv-org-lines span:nth-child(1) {
  width: 92%;
}
.r5-fv-org-lines span:nth-child(2) {
  width: 78%;
}
.r5-fv-org-lines span:nth-child(3) {
  width: 64%;
}
.r5-fv-org-icos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.r5-fv-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: r5IcoFloat 3.2s ease-in-out infinite;
}
.r5-fv-ico--target {
  background:
    radial-gradient(circle, transparent 28%, #fbbf24 29%, #fbbf24 42%, transparent 43%),
    radial-gradient(circle, #f59e0b 0 18%, transparent 19%),
    #3a3420;
  animation-delay: 0s;
}
.r5-fv-ico--cal {
  background:
    linear-gradient(#fff 0 22%, transparent 22%),
    linear-gradient(#f43f5e, #e11d48);
  background-size: 100% 100%;
  animation-delay: 0.35s;
}
.r5-fv-ico--vid {
  background:
    radial-gradient(circle at 40% 50%, #c4b5fd 0 18%, transparent 19%),
    linear-gradient(135deg, #7c3aed, #4c1d95);
  animation-delay: 0.7s;
}
@keyframes r5IcoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.r5-fv-glow {
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.r5-fv-listen {
  position: relative;
  z-index: 1;
  width: 86%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.r5-fv-wave-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  position: relative;
  width: 100%;
}
.r5-fv-wave {
  width: 4px;
  height: calc(var(--h, 24) * 1px);
  border-radius: 999px;
  background: linear-gradient(180deg, #e4e4e7, #71717a);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
  animation: r5Wave 1.1s ease-in-out infinite;
}
.r5-fv-wave:nth-child(odd) {
  animation-delay: 0.15s;
}
.r5-fv-wave:nth-child(3n) {
  animation-delay: 0.35s;
}
@keyframes r5Wave {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
.r5-fv-rec {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #ef4444;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.25),
    0 6px 16px rgba(239, 68, 68, 0.4);
  animation: r5RecPulse 1.6s ease-in-out infinite;
}
.r5-fv-rec::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: #fff;
  opacity: 0.95;
}
@keyframes r5RecPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(239, 68, 68, 0.2),
      0 6px 16px rgba(239, 68, 68, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(239, 68, 68, 0.12),
      0 8px 20px rgba(239, 68, 68, 0.5);
  }
}
.r5-fv-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.r5-fv-tags i {
  font-style: normal;
  font: 550 11px/1 ui-sans-serif, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: -0.01em;
}

.r5-fv-inbox {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.r5-fv-inbox-bg {
  position: absolute;
  inset: 8%;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 28%, transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
    rgba(20, 20, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.r5-fv-tray {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 40px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #3f3f46, #27272a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.r5-fv-tray::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: -8px;
  height: 10px;
  border-radius: 4px 4px 0 0;
  background: #52525b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
}
.r5-fv-badge {
  position: absolute;
  z-index: 2;
  top: 28%;
  right: 28%;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: 700 12px/22px ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  font-style: normal;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.r5-fv-docs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 70%;
}
.r5-fv-docs span {
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.r5-fv-docs span.is-check::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid #34d399;
  border-bottom: 2px solid #34d399;
  transform: translateY(-60%) rotate(-45deg);
}
.r5-fv-apps {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}
.r5-fv-apps img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}
.r5-fv-digest {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 64px;
}
.r5-fv-digest b {
  display: block;
  width: 22px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
}
.r5-fv-digest b:nth-child(1) {
  height: 36%;
  opacity: 0.7;
}
.r5-fv-digest b:nth-child(2) {
  height: 68%;
}
.r5-fv-digest b:nth-child(3) {
  height: 48%;
  opacity: 0.85;
}

/* Dock + blue glow composer */
.r5-home--beat .r5-home-dock {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: auto;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, transparent, rgba(18, 18, 20, 0.92) 28%);
}
.r5-home--beat .r5-home-react {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
}
.r5-home-react-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  width: 32px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.r5-home-react-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}
.r5-home--beat .r5-home-box,
.r5-home--beat .r5-home-box--glow {
  width: min(720px, 100%);
  border-radius: 20px;
  background: rgba(32, 32, 36, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition:
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}
.r5-home--beat .r5-home-box--glow.is-focused,
.r5-home--beat .r5-home-box--glow:focus-within {
  border-color: rgba(35, 131, 226, 0.85) !important;
  box-shadow:
    0 0 0 1px rgba(35, 131, 226, 0.55),
    0 0 0 4px rgba(35, 131, 226, 0.18),
    0 0 28px rgba(35, 131, 226, 0.28),
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}
.r5-home--beat .r5-home-box textarea {
  min-height: 56px;
  padding: 16px 18px 8px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.92);
}
.r5-home--beat .r5-home-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.r5-home--beat .r5-home-quick {
  margin-top: 4px;
  margin-bottom: 2px;
  opacity: 0.9;
}
.r5-home--beat .r5-home-pulse,
.r5-home--beat .r5-home-smart {
  display: none !important;
}
.r5-home--beat .r5-home-foot {
  margin-top: 8px;
  opacity: 0.55;
}

@media (max-width: 860px) {
  .r5-feat-grid {
    grid-template-columns: 1fr;
  }
  .r5-feat-card {
    min-height: 220px;
    flex-direction: row;
  }
  .r5-feat-visual {
    width: 42%;
    min-height: 160px;
    margin: 10px 0 10px 10px;
    flex: 0 0 42%;
  }
  .r5-feat-meta {
    flex: 1;
    justify-content: center;
  }
  .r5-home--beat .r5-home-top {
    flex-direction: column;
    align-items: stretch;
  }
  .r5-home--beat .r5-home-bubble {
    align-self: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .r5-feat-card,
  .r5-home--beat .r5-home-bubble,
  .r5-fv-wave,
  .r5-fv-ico,
  .r5-fv-rec {
    animation: none !important;
  }
}

/* ═══ Route5 combined desk (pages + commitments) ═══ */
html[data-r5-desk="combined"],
html[data-r5-desk="combined"] body {
  background: #111111 !important;
  color: #f4f4f5;
}
#route5-home-shell.r5-shell--combined {
  --r5s-rail: #191919;
  --r5s-bg: #111111;
  --r5s-elev: #1e1e1e;
  --r5s-border: rgba(255,255,255,.08);
  --r5s-text: #f4f4f5;
  --r5s-muted: rgba(244,244,245,.55);
  --r5s-pink: #ff1493;
  position: fixed;
  inset: 0;
  z-index: 2147482200;
  display: flex;
  pointer-events: none;
  font: 450 13px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--r5s-text);
}
.r5-shell--combined .r5-shell-rail,
.r5-shell--combined .r5-shell-stage {
  pointer-events: auto;
}
.r5-shell--combined .r5-shell-rail {
  width: 260px;
  flex-shrink: 0;
  background: #191919;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.r5-shell--combined .r5-shell-stage {
  flex: 1;
  min-width: 0;
  background: #111;
  position: relative;
}
.r5-shell--combined .r5-shell-stage-host {
  position: absolute;
  inset: 0;
  overflow: auto;
}
.r5-shell-space-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}
.r5-c-iconbtn {
  border: 0;
  background: transparent;
  color: var(--r5s-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}
.r5-c-iconbtn:hover { background: rgba(255,255,255,.06); color: #fff; }
.r5-c-search,
.r5-c-newpage {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 0 8px 4px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font: 450 14px/1.2 ui-sans-serif, system-ui, sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}
.r5-c-search:hover,
.r5-c-newpage:hover { background: rgba(255,255,255,.055); color: #fff; }
.r5-c-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 4px;
}
.r5-c-pages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 8px 12px;
}
.r5-c-sec { margin-bottom: 6px; }
.r5-c-sec-toggle {
  display: flex;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.4);
  font: 550 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}
.r5-c-tree { display: flex; flex-direction: column; gap: 1px; }
.r5-c-page {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: 450 14px/1.25 ui-sans-serif, system-ui, sans-serif;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}
.r5-c-page:hover { background: rgba(255,255,255,.055); }
.r5-c-page.is-on { background: rgba(255,255,255,.09); color: #fff; }
.r5-c-emoji { width: 18px; text-align: center; flex-shrink: 0; }
.r5-c-doc { min-height: 100%; }
.r5-c-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 48px 0;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.r5-c-chip {
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(255,255,255,.75);
  font: 450 12px/1.2 ui-sans-serif, system-ui, sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.r5-c-chip:hover { background: rgba(255,255,255,.05); color: #fff; }
.r5-c-chip--pink { border-color: rgba(255,20,147,.35); color: #ff6bb5; }
.r5-c-canvas {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px 120px;
  box-sizing: border-box;
}
.r5-c-emoji-lg {
  border: 0;
  background: transparent;
  font-size: 40px;
  line-height: 1;
  padding: 0;
  margin: 0 0 8px;
  cursor: pointer;
  display: block;
}
.r5-c-title {
  margin: 0 0 12px;
  font: 700 36px/1.15 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.02em;
  outline: none;
  min-height: 1.15em;
}
.r5-c-editor {
  outline: none;
  min-height: 240px;
  color: rgba(255,255,255,.88);
  font: 450 16px/1.65 ui-sans-serif, system-ui, sans-serif;
}
.r5-c-hint { color: rgba(255,255,255,.38); font-size: 13px; margin-top: 24px; }
.r5-c-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 12px;
  max-width: 960px;
  margin: 0 auto;
}
.r5-c-head h1 { margin: 0 0 4px; font: 700 28px/1.2 ui-sans-serif, system-ui, sans-serif; }
.r5-c-task-list { max-width: 960px; margin: 0 auto; padding: 8px 32px 80px; }
.r5-c-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.r5-c-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .55;
  min-width: 72px;
}
.r5-c-task-title { flex: 1; min-width: 0; }
.r5-c-create {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 32px;
  display: flex;
  gap: 8px;
}
.r5-c-create input,
.r5-c-cleo-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.12);
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font: 450 14px/1.3 ui-sans-serif, system-ui, sans-serif;
}
.r5-c-cleo { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.r5-c-cleo-thread { padding: 8px 32px 16px; min-height: 200px; }
.r5-c-msg { padding: 10px 12px; border-radius: 10px; margin: 0 0 8px; max-width: 90%; }
.r5-c-msg--user { background: rgba(255,20,147,.18); margin-left: auto; }
.r5-c-msg--bot { background: rgba(255,255,255,.06); }
.r5-c-cleo-form { display: flex; gap: 8px; padding: 0 32px; }
.r5-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 2147483646;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  font-size: 13px;
}
.r5-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
html.r5-shell-collapsed .r5-c-search,
html.r5-shell-collapsed .r5-c-newpage,
html.r5-shell-collapsed .r5-c-pages,
html.r5-shell-collapsed .r5-c-shortcuts .r5-shell-tab-label {
  display: none !important;
}
@media (max-width: 720px) {
  .r5-c-canvas, .r5-c-top { padding-left: 20px; padding-right: 20px; }
  .r5-c-title { font-size: 28px; }
}

/* While bouncing Linear login → Clerk, hide the floating strip + Back chrome */
html[data-r5-nav-hidden="1"] #route5-desk-navstrip,
html[data-r5-bounching-clerk="1"] #route5-desk-navstrip {
  display: none !important;
}
/* ── Desk density: slightly larger chrome (Linear default reads tiny) ── */
html.route5-desk-ready {
  --r5-desk-scale: 1.06;
}
html.route5-desk-ready body {
  font-size: 14px !important;
}
html.route5-desk-ready #route5-desk-navstrip .r5-desk-nav {
  height: 36px !important;
  min-width: 36px !important;
}
html.route5-desk-ready #route5-desk-navstrip .r5-desk-nav svg {
  width: 20px !important;
  height: 20px !important;
}
html.route5-desk-ready #route5-desk-navstrip .r5-desk-nav-label {
  font-size: 12px !important;
}

/* Video blocks — fill width, no giant empty player chrome */
html.route5-desk-ready video,
html.route5-desk-ready [data-r5-video-fixed="1"] {
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 12px !important;
  background: #0a0a0a !important;
}
html.route5-desk-ready [data-r5-video-fix="1"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 160px !important;
  max-height: 420px !important;
  padding: 20px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(244, 244, 245, 0.7) !important;
  font: 450 14px/1.4 ui-sans-serif, system-ui, sans-serif !important;
  text-align: center !important;
}

/* Mobile / PWA — larger tap targets, no canyon sidebar */
@media (max-width: 820px) {
  html.route5-desk-ready {
    --r5-desk-scale: 1.1;
  }
  html.route5-desk-ready body {
    font-size: 15px !important;
  }
  html.route5-desk-ready #route5-desk-navstrip {
    max-height: 56px !important;
    padding: 8px 10px 12px !important;
    gap: 4px !important;
  }
  html.route5-desk-ready #route5-desk-navstrip .r5-desk-nav {
    height: 40px !important;
    min-width: 40px !important;
  }
  html.route5-desk-ready #route5-desk-navstrip .r5-desk-nav-label {
    display: none !important;
  }
  html.route5-desk-ready aside,
  html.route5-desk-ready [data-testid="sidebar"],
  html.route5-desk-ready nav {
    min-width: 0 !important;
  }
  /* Prefer content width; avoid microscopic toolbar icons — don't force every button tall */
  html.route5-desk-ready #route5-desk-navstrip .r5-desk-nav,
  html.route5-desk-ready [data-testid="sidebar"] a,
  html.route5-desk-ready [data-testid="sidebar"] button {
    min-height: 36px;
  }
}
@media (max-width: 640px) {
  html.route5-desk-ready #route5-cleo-panel {
    width: min(100vw - 16px, 400px) !important;
    right: 8px !important;
    bottom: 8px !important;
  }
  html.route5-desk-ready .r5n-room--dock {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
}


/* ── Chat Work UI (Cursor-style light command bar) ── */
.r5n-agent--workui {
  --r5-craft-bg: #f3f3f3;
  --r5-craft-elev: #ffffff;
  --r5-craft-elev2: #ececec;
  --r5-craft-line: rgba(0, 0, 0, 0.06);
  --r5-craft-line-strong: rgba(0, 0, 0, 0.1);
  --r5-craft-text: #1a1a1a;
  --r5-craft-muted: rgba(26, 26, 26, 0.55);
  --r5-craft-muted2: rgba(26, 26, 26, 0.38);
  background: #f3f3f3 !important;
  color: #1a1a1a !important;
}
.r5n-room--dock:has(.r5n-agent--workui),
html[data-r5-room="route5-chat-hub"] .r5n-room--dock:has(.r5n-agent--workui) {
  background: #f3f3f3 !important;
}
.r5n-agent--workui .r5n-agent-top {
  border-bottom: 0;
  background: transparent;
  padding: 10px 14px;
  min-height: 44px;
}
.r5n-agent--workui .r5n-agent-histbtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(26, 26, 26, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font: 500 12.5px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.r5n-agent--workui .r5n-agent-histbtn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}
.r5n-agent--workui .r5n-agent-hist-label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r5n-agent--workui .r5n-agent-history {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.r5n-agent--workui .r5n-hist-new {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}
.r5n-agent--workui .r5n-hist-open { color: #1a1a1a; }
.r5n-agent--workui .r5n-hist-empty { color: rgba(26, 26, 26, 0.4); }
.r5n-agent--workui .r5n-hist-row.is-active { background: rgba(0, 0, 0, 0.04); }
.r5n-agent--workui .r5n-agent-stage {
  padding: 12px 20px 28px;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
.r5n-agent--workui .r5n-agent-empty {
  width: min(640px, 100%);
  gap: 18px;
  padding: 48px 0 20px;
  align-items: center;
}
.r5n-agent--workui .r5n-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.r5n-agent--workui .r5n-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(26, 26, 26, 0.5);
  font: 550 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.r5n-agent--workui .r5n-mode-btn.is-on {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.r5n-agent--workui .r5n-agent-title {
  color: #2a2a2a;
  font: 500 clamp(26px, 3.2vw, 32px)/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.035em;
  margin: 8px 0 4px;
}
.r5n-agent--workui .r5n-agent-composer-wrap {
  width: 100%;
}
.r5n-agent--workui .r5n-agent-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  gap: 0;
}
.r5n-agent--workui .r5n-agent-box:focus-within {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}
.r5n-agent--workui .r5n-agent-files {
  padding: 10px 14px 0;
}
.r5n-agent--workui .r5n-file-chip {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.08);
}
.r5n-agent--workui .r5n-agent-inputrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 8px;
}
.r5n-agent--workui .r5n-agent-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.r5n-agent--workui .r5n-agent-avatar-dash {
  width: 9px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}
.r5n-agent--workui .r5n-agent-box textarea {
  color: #1a1a1a;
  font: 450 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  min-height: 28px;
  padding: 0;
}
.r5n-agent--workui .r5n-agent-box textarea::placeholder {
  color: rgba(26, 26, 26, 0.35);
}
.r5n-agent--workui .r5n-agent-toolbar {
  padding: 4px 10px 10px;
}
.r5n-agent--workui .r5n-agent-plus,
.r5n-agent--workui .r5n-agent-mic {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(26, 26, 26, 0.45);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.r5n-agent--workui .r5n-agent-plus:hover,
.r5n-agent--workui .r5n-agent-mic:hover,
.r5n-agent--workui .r5n-agent-mic.is-on {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}
.r5n-agent--workui .r5n-agent-modelbtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(26, 26, 26, 0.55);
  font: 500 12.5px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.r5n-agent--workui .r5n-agent-modelbtn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}
.r5n-agent--workui .r5n-agent-modelmenu,
.r5n-agent--workui .r5n-agent-skills-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r5n-agent--workui .r5n-agent-skills-menu {
  left: 0;
  right: auto;
}
.r5n-agent--workui .r5n-agent-modelmenu[hidden],
.r5n-agent--workui .r5n-agent-skills-menu[hidden] {
  display: none !important;
}
.r5n-agent--workui .r5n-agent-modelmenu button,
.r5n-agent--workui .r5n-agent-skills-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  font: 450 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.r5n-agent--workui .r5n-agent-modelmenu button:hover,
.r5n-agent--workui .r5n-agent-skills-menu button:hover,
.r5n-agent--workui .r5n-agent-modelmenu button.is-on {
  background: rgba(0, 0, 0, 0.05);
}
.r5n-agent--workui .r5n-agent-send {
  background: #bdbdbd;
  color: #fff;
  width: 34px;
  height: 34px;
}
.r5n-agent--workui .r5n-agent-box[data-empty="0"] .r5n-agent-send {
  background: #2f2f2f;
  color: #fff;
}
.r5n-agent--workui .r5n-agent-utils {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 14px 12px;
  background: #efefef;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.r5n-agent--workui .r5n-util {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(26, 26, 26, 0.5);
  font: 500 12.5px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  cursor: pointer;
  border-radius: 6px;
}
.r5n-agent--workui .r5n-util:hover { color: #1a1a1a; }
.r5n-agent--workui .r5n-util--right { margin-left: auto; }
.r5n-agent--workui .r5n-agent-examples {
  width: 100%;
  margin-top: 6px;
}
.r5n-agent--workui .r5n-agent-cards {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}
.r5n-agent--workui .r5n-agent-card {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(26, 26, 26, 0.48);
  text-align: left;
  border-radius: 10px;
  padding: 9px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  min-height: 0;
  font: 450 13.5px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.r5n-agent--workui .r5n-agent-card:hover {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(26, 26, 26, 0.75);
  border-color: transparent;
}
.r5n-agent--workui .r5n-agent-card-dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(26, 26, 26, 0.55);
}
.r5n-agent--workui .r5n-agent-card-text {
  flex: 1;
  min-width: 0;
}
.r5n-agent--workui.has-thread .r5n-mode-toggle,
.r5n-agent--workui.has-thread .r5n-agent-utils {
  display: none !important;
}
.r5n-agent--workui .r5n-agent-thread {
  width: min(640px, 100%);
}
.r5n-agent--workui .r5n-agent-bubble.is-user {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.r5n-agent--workui .r5n-agent-bubble.is-ai {
  color: #1a1a1a;
}
.r5n-agent--workui.has-thread .r5n-agent-composer-wrap {
  margin-top: auto;
  padding-top: 12px;
}
.r5n-agent--workui .r5n-agent-toolbar-right {
  position: relative;
}


/* Grok.com/chat mirror — Chat tab only */
.r5n-agent--workui.is-grok-chat .r5n-agent-top {
  display: none !important;
}
.r5n-agent--workui.is-grok-chat .r5n-agent-stage {
  padding: 0 !important;
  overflow: hidden !important;
}
.r5n-agent--workui.is-grok-chat #r5n-grok-hello {
  display: none !important;
}
.r5n-grok-mirror-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: #fff;
}
.r5n-grok-mirror-host[hidden] { display: none !important; }
.r5n-grok-mirror-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.r5n-agent--workui .r5n-agent-stage {
  position: relative;
}
/* Mode toggle stays above mirror when switching */
.r5n-agent--workui.is-grok-chat .r5n-mode-toggle-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.r5n-agent--workui.is-grok-chat #r5n-grok-hello.is-mirror-chrome {
  display: flex !important;
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  width: 100%;
  align-items: center;
  pointer-events: none;
  background: transparent;
}
.r5n-agent--workui.is-grok-chat #r5n-grok-hello.is-mirror-chrome .r5n-mode-toggle {
  pointer-events: auto;
}
.r5n-agent--workui.is-grok-chat #r5n-grok-hello.is-mirror-chrome #r5n-work-surface,
.r5n-agent--workui.is-grok-chat #r5n-grok-hello.is-mirror-chrome .r5n-agent-title,
.r5n-agent--workui.is-grok-chat #r5n-grok-hello.is-mirror-chrome .r5n-agent-composer-wrap,
.r5n-agent--workui.is-grok-chat #r5n-grok-hello.is-mirror-chrome .r5n-agent-examples {
  display: none !important;
}
.r5n-agent--workui.is-grok-chat .r5n-agent-top { display: none !important; }
