/* generated from packages/platform/src/{account-menu,bar}.css — do not edit */
/* AccountMenu — self-contained, works on light and dark apps. */
.sj-account { position: relative; display: inline-flex; align-items: center; min-width: 32px; min-height: 28px; }
.sj-signin {
  font-size: 12.5px; text-decoration: none; color: inherit;
  padding: 5px 11px; border: 1px solid rgba(128,128,128,.45); border-radius: 6px; white-space: nowrap;
}
.sj-signin:hover { border-color: #2563eb; color: #2563eb; }
.sj-avatar {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; padding: 0; overflow: hidden;
  display: grid; place-items: center;
}
/* The three avatar forms (shared with the account page's picker). */
.sj-avatar-img { border-radius: 50%; display: block; object-fit: cover; background: #fff; }
.sj-avatar-initials {
  border-radius: 50%; background: #2563eb; color: #fff;
  font-family: system-ui, sans-serif; font-weight: 600; letter-spacing: .02em;
  display: grid; place-items: center;
}
.sj-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 90;
  width: 240px; padding: 12px; border-radius: 12px;
  background: Canvas; color: CanvasText;
  border: 1px solid rgba(128,128,128,.35);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  display: grid; gap: 10px; font-size: 13px; text-align: left;
}
.sj-menu-head { display: grid; gap: 1px; }
.sj-menu-head span { opacity: .6; font-size: 12px; }
.sj-menu form { display: grid; gap: 8px; }
.sj-menu label { display: grid; gap: 3px; font-size: 11.5px; opacity: .85; }
.sj-menu input {
  font: inherit; color: inherit; background: transparent;
  border: 1px solid rgba(128,128,128,.4); border-radius: 6px; padding: 6px 8px;
}
.sj-menu-link {
  display: block; text-decoration: none; color: inherit; font-size: 12.5px;
  padding: 7px 10px; border: 1px solid rgba(128,128,128,.4); border-radius: 6px; text-align: center;
}
.sj-menu-link:hover { border-color: #2563eb; color: #2563eb; }
.sj-menu button {
  font: inherit; font-size: 12.5px; cursor: pointer; border-radius: 6px; padding: 7px 10px;
  border: 1px solid rgba(128,128,128,.4); background: transparent; color: inherit;
}
.sj-menu form button { background: #2563eb; border-color: #2563eb; color: #fff; }
.sj-menu .sj-signout:hover { border-color: #ef4444; color: #ef4444; }
.sj-error { color: #ef4444; font-size: 12px; }
.sj-suspended { font-size: 12px; color: #f59e0b; }
/* Deletion pending (grace window): amber ring on the avatar + a cancel link in the menu. */
.sj-avatar-warn { box-shadow: 0 0 0 2px #f59e0b; }
.sj-deletion { font-size: 12px; color: #f59e0b; text-decoration: none; }
.sj-deletion:hover { text-decoration: underline; }

/* PlatformBar — the shared chrome for every tool and site (React PlatformBar /
   PlatformFooter and the static bar.mjs). Split into ordered parts (refactor
   2026-11-09, docs/REFACTOR-2026-11.md): the cascade is this import order.
   static/bar.mjs inlines these imports into /_sj/chrome.css. */
/* PlatformBar chrome — the palette, wordmark, tool sub-nav and tool tabs. Part of bar.css (imported in order). */
/* PlatformBar — the persistent strip across every tool and site.
   Light by default; dark via the OS preference or an explicit html.dark
   class (Cartoon Set toggles html.dark/html.light itself). */

/* The --sjb-* palette lives on :root (not .sj-bar) because the footer, the
   feedback panel, and the waitlist modal render through portals on <body>. */
:root {
  --sjb-bg: #fafafa;
  --sjb-fg: #111;
  --sjb-dim: #666;
  --sjb-line: #e4e4e7;
  --sjb-card: #fff;
}
@media (prefers-color-scheme: dark) {
  html:not(.light) {
    --sjb-bg: #141519;
    --sjb-fg: #e7e8ea;
    --sjb-dim: #9aa0a8;
    --sjb-line: #2a2d33;
    --sjb-card: #1b1d21;
  }
}
html.dark {
  --sjb-bg: #141519;
  --sjb-fg: #e7e8ea;
  --sjb-dim: #9aa0a8;
  --sjb-line: #2a2d33;
  --sjb-card: #1b1d21;
}
html.lightsout {
  --sjb-bg: #000;
  --sjb-line: #212327;
  --sjb-card: #0c0d10;
}

.sj-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  flex: none;
  position: relative;
  z-index: 95;
  background: var(--sjb-bg);
  color: var(--sjb-fg);
  border-bottom: 1px solid var(--sjb-line);
  font: 13px system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The wordmark: lowercase, code-set (system monospace — zero font requests),
   tinted the current tool's identity color inside a tool. Built as one span
   so a future "superjumbo × archoverflow" lockup can extend it. */
.sj-bar-wordmark {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sj-tool, inherit);
  text-decoration: none;
  white-space: nowrap;
}
.sj-bar-wordmark:hover { opacity: 0.75; }

/* Outside a tool (account, admin) the wordmark wanders through the tool
   colors, like the www hero — inside a tool, --sj-tool pins it. */
.sj-bar-home .sj-bar-wordmark {
  color: #2563eb;
  animation: sj-tool-hue 36s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sj-bar-home .sj-bar-wordmark { animation: none; color: inherit; }
}

/* The current tool's color, carried into the chrome: a hairline under the
   bar, the wordmark, and a ring on the account avatar. */
.sj-bar { box-shadow: inset 0 -2px 0 var(--sj-tool, transparent); }
.sj-bar .sj-avatar { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--sj-tool, var(--sjb-line)); }

/* ---- the standard tool sub-nav: TOOLS › ⌂ <Tool>, then the tool's tabs ---- */
.sj-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  flex: none;
  background: var(--sjb-bg);
  border-bottom: 1px solid var(--sjb-line);
  font-size: 12px;
}
.sj-subnav-tools {
  color: var(--sjb-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 11px;
  font-weight: 600;
}
.sj-subnav-tools:hover { color: var(--sjb-fg); }
.sj-subnav-sep { color: var(--sjb-dim); opacity: 0.7; }
.sj-subnav-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sj-tool, var(--sjb-fg));
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  margin-left: -6px;
  border-radius: 7px;
}
.sj-subnav-tool:hover { background: color-mix(in srgb, var(--sj-tool, #888) 12%, transparent); }
.sj-subnav-tool svg { flex: none; }
.sj-subnav-spacer { flex: 1; }
.sj-subnav-right { color: var(--sjb-dim); font-size: 11.5px; }
/* Tool tabs inside the sub-nav (apps pass buttons with these classes). */
.sj-subnav-tab {
  font: inherit;
  font-size: 12.5px;
  padding: 9px 13px;
  border: none;
  background: transparent;
  color: var(--sjb-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  align-self: stretch;
}
.sj-subnav-tab:first-of-type { margin-left: 10px; border-left: 1px solid var(--sjb-line); }
.sj-subnav-tab.on { color: var(--sjb-fg); border-bottom-color: var(--sj-tool, currentColor); font-weight: 600; }
.sj-subnav-tab:hover:not(:disabled):not(.on) { color: var(--sjb-fg); }
.sj-subnav-tab:disabled { opacity: 0.4; cursor: default; }

.sj-bar-tool { position: relative; display: inline-flex; }
.sj-bar-switcher {
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid var(--sjb-line);
  border-radius: 7px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.sj-bar-switcher:hover { border-color: #2563eb; }
.sj-bar-caret { font-size: 10px; opacity: 0.6; }

.sj-bar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 96;
  width: 250px;
  padding: 6px;
  border-radius: 12px;
  background: var(--sjb-card);
  color: var(--sjb-fg);
  border: 1px solid var(--sjb-line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
  display: grid;
}

.sj-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.sj-bar-item:hover { background: rgba(128, 128, 128, 0.12); }
/* Tools menu row: the tool (its home, here) + "open in a new window" at the right. */
.sj-bar-menu:has(> .sj-bar-row) { width: 250px; }
.sj-bar-row { display: flex; align-items: stretch; gap: 2px; }
.sj-bar-row > .sj-bar-item { flex: 1; min-width: 0; }
.sj-bar-newwin {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; border-radius: 8px; color: var(--sjb-dim); text-decoration: none;
}
.sj-bar-newwin:hover, .sj-bar-newwin:focus-visible { background: rgba(128, 128, 128, 0.12); color: var(--sjb-fg); }
.sj-bar-row > .sj-bar-item { padding-top: 6px; padding-bottom: 6px; }
.sj-bar-fav { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; border: none; border-radius: 8px;
  background: transparent; color: var(--sjb-dim); cursor: pointer; opacity: 0; }
.sj-bar-row:hover .sj-bar-fav, .sj-bar-fav:focus-visible, .sj-bar-fav.on { opacity: 1; }
.sj-bar-fav:hover { background: rgba(128, 128, 128, 0.12); color: var(--sjb-fg); }
.sj-bar-fav.on { color: #f59e0b; }
.sj-bar-fav.on svg { fill: currentColor; }
.sj-bar-row-lastfav { border-bottom: 1px solid var(--sjb-line); padding-bottom: 3px; margin-bottom: 3px; }
@media (hover: none) { .sj-bar-fav { opacity: 1; } }
.sj-bar-item.current { background: rgba(37, 99, 235, 0.1); }
.sj-bar-item-label { display: grid; line-height: 1.25; font-weight: 500; }
.sj-bar-item-label small { font-weight: 400; font-size: 11px; color: var(--sjb-dim); }
.sj-bar-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sj-bar-sep { height: 1px; margin: 5px 4px; background: var(--sjb-line); }

.sj-bar-context {
  color: var(--sjb-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sj-bar-context b { color: var(--sjb-fg); font-weight: 600; }

.sj-bar-spacer { flex: 1; }

/* PlatformBar chrome — the floating bug reporter. Part of bar.css (imported in order). */
/* ---- bug reporter (floating, bottom-left; rendered by the bar so it
   inherits the --sjb-* theme variables) ---------------------------------- */

.sj-fb-btns {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 97;
  display: flex;
  gap: 8px;
}
.sj-fb-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--sjb-line);
  background: var(--sjb-card);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}
.sj-fb-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24); }
.sj-fb-bug { color: #dc2626; }
.sj-fb-idea { color: #f59e0b; }
.sj-fb-bug:hover, .sj-fb-bug.open { border-color: #dc2626; }
.sj-fb-idea:hover, .sj-fb-idea.open { border-color: #f59e0b; }

.sj-fb-tabs { display: flex; gap: 4px; }
.sj-fb-tabs button {
  font: inherit;
  font-weight: 600;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sjb-dim);
  cursor: pointer;
}
.sj-fb-tabs button:hover { color: var(--sjb-fg); }
.sj-fb-tabs button.sel {
  border-color: var(--sjb-line);
  background: rgba(128, 128, 128, 0.1);
  color: var(--sjb-fg);
}

.sj-bug-panel {
  position: fixed;
  left: 14px;
  bottom: 62px;
  z-index: 98;
  width: min(330px, calc(100vw - 28px));
  border-radius: 14px;
  background: var(--sjb-card);
  color: var(--sjb-fg);
  border: 1px solid var(--sjb-line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  font: 13px system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sj-bug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sjb-line);
}
.sj-bug-close {
  font: inherit;
  font-size: 16px;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--sjb-dim);
  cursor: pointer;
  padding: 2px 6px;
}
.sj-bug-close:hover { color: var(--sjb-fg); }

.sj-bug-body { padding: 12px; display: grid; gap: 10px; }
.sj-bug-body p { margin: 0; line-height: 1.5; }

.sj-bug-where {
  font-size: 12px;
  color: var(--sjb-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sj-bug-where b { color: var(--sjb-fg); font-weight: 600; }

.sj-bug-text {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--sjb-line);
  background: var(--sjb-bg);
  color: var(--sjb-fg);
}
.sj-bug-text:focus { outline: none; border-color: #2563eb; }

.sj-bug-sev { display: grid; gap: 4px; }
.sj-bug-sev-opt {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.sj-bug-sev-opt:hover { background: rgba(128, 128, 128, 0.1); }
.sj-bug-sev-opt.sel { border-color: var(--sjb-line); background: rgba(128, 128, 128, 0.08); }
.sj-bug-sev-opt input { margin: 0; accent-color: #2563eb; }
.sj-bug-sev-opt small { color: var(--sjb-dim); }
.sj-bug-sev-opt.sev-blocker.sel b { color: #dc2626; }
.sj-bug-sev-opt.sev-critical.sel b { color: #d97706; }

.sj-bug-error { color: #dc2626; font-size: 12px; }

.sj-bug-send {
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
}
html.dark .sj-bug-send { background: #e7e8ea; color: #111; }
@media (prefers-color-scheme: dark) {
  html:not(.light) .sj-bug-send { background: #e7e8ea; color: #111; }
}
.sj-bug-send:disabled { opacity: 0.45; cursor: default; }

.sj-bug-foot { font-size: 11px; color: var(--sjb-dim); }

.sj-bug-signin {
  display: inline-block;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  justify-self: start;
}

.sj-bug-sent p + p { color: var(--sjb-dim); }

/* PlatformBar chrome — the bottom strip, tool menu, NO PROJECT chip, waitlist modal, tool request. Part of bar.css (imported in order). */
/* ---- the persistent bottom strip (PlatformFooter) ------------------------ */

/*
 * Bottom-of-screen space is owned HERE, never by a tool (docs/FOOTER.md):
 * body pads for the footer plus the tool strip when one is showing. A tool's
 * root sizes to 100% of that and adds no bottom padding of its own.
 */
:root { --sj-foot-h: 38px; --sj-strip-h: 0px; }
html.sj-stripped { --sj-strip-h: 42px; }
@media (max-width: 899px) { html.sj-stripped-phone { --sj-strip-h: 42px; } }
html.sj-footed body { box-sizing: border-box; padding-bottom: calc(var(--sj-foot-h) + var(--sj-strip-h)) !important; }

/* ---- the tool strip (ToolStrip): the one sanctioned second bottom bar ---- */
.sj-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--sj-foot-h);
  z-index: 95;
  height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  background: var(--sjb-bg);
  color: var(--sjb-fg);
  border-top: 1px solid var(--sjb-line);
  font: 600 13px system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sj-strip-phone { display: none; }
@media (max-width: 899px) { .sj-strip-phone { display: flex; } }
.sj-strip > button { flex: 1; border: 0; background: transparent; font: inherit; color: var(--sjb-dim); cursor: pointer; }
.sj-strip > button:hover { color: var(--sjb-fg); }
.sj-strip > button.on { color: var(--sjb-fg); box-shadow: inset 0 2px 0 currentColor; }
/* Print: no footer, no strip, and no space reserved for them (it pushed a blank page out of tall sheets). */
@media print {
  .sj-foot, .sj-strip { display: none !important; }
  html.sj-footed body { padding-bottom: 0 !important; }
}

.sj-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  background: var(--sjb-bg);
  color: var(--sjb-fg);
  border-top: 1px solid var(--sjb-line);
  font: 12.5px system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sj-foot-fb { display: flex; gap: 6px; }
.sj-foot-fb[hidden] { display: none; }
.sj-foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--sjb-line);
  background: var(--sjb-card);
  color: var(--sjb-fg);
  cursor: pointer;
}
.sj-foot-bug svg { color: #dc2626; }
.sj-foot-idea svg { color: #f59e0b; }
.sj-foot-bug:hover, .sj-foot-bug.sel { border-color: #dc2626; }
.sj-foot-idea:hover, .sj-foot-idea.sel { border-color: #f59e0b; }

.sj-foot-beta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sj-tool, #2563eb) 45%, transparent);
  background: color-mix(in srgb, var(--sj-tool, #2563eb) 12%, var(--sjb-card));
  color: var(--sjb-fg);
  cursor: pointer;
  white-space: nowrap;
  animation: sj-beta-bounce 5.2s ease-in-out infinite;
}
.sj-foot-beta:hover { border-color: var(--sj-tool, #2563eb); animation-play-state: paused; }
.sj-foot-lock { display: inline-flex; color: var(--sj-tool, #2563eb); }
/* Outside a tool the pill drifts through the tool colors, like the wordmark. */
.sj-foot-home .sj-foot-beta { animation: sj-beta-bounce 5.2s ease-in-out infinite, sj-tool-hue 36s linear infinite; }
.sj-foot-note svg { vertical-align: -2px; margin-right: 2px; }
.sj-foot-theme button svg { display: block; }
@keyframes sj-beta-bounce {
  0%, 82%, 100% { transform: translateY(0); }
  88% { transform: translateY(-3px); }
  94% { transform: translateY(0); }
  97% { transform: translateY(-1.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .sj-foot-beta { animation: none; }
}

.sj-foot-note {
  color: var(--sjb-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sj-foot-spacer { flex: 1; }

.sj-foot-theme {
  display: inline-flex;
  border: 1px solid var(--sjb-line);
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.sj-foot-theme button {
  font: inherit;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: none;
  background: transparent;
  color: var(--sjb-dim);
  cursor: pointer;
}
.sj-foot-theme button + button { border-left: 1px solid var(--sjb-line); }
.sj-foot-theme button:hover { color: var(--sjb-fg); }
.sj-foot-theme button.sel { background: rgba(128, 128, 128, 0.14); color: var(--sjb-fg); font-weight: 600; }
@media (max-width: 760px) {
  .sj-foot-theme-label { display: none; }
  .sj-foot-note { display: none; }
}
.sj-foot-fx {
  font: inherit; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 3px 10px; border: 1px solid var(--sjb-line); border-radius: 8px;
  background: transparent; color: var(--sjb-dim); cursor: pointer; white-space: nowrap;
}
.sj-foot-fx:hover { color: var(--sjb-fg); }
.sj-foot-fx.sel { color: var(--sjb-fg); }
/* Effects off: the decorative motion stops everywhere (functional spinners stay). */
html.fx-off .sj-bar-wordmark,
html.fx-off .sj-foot-beta,
html.fx-off .sj-pulse,
html.fx-off .sj-modal::before { animation: none !important; }

/* The feedback panel now opens above the footer. */
.sj-bug-panel { bottom: 50px; }

/* ---- tool icons / menu ---------------------------------------------------- */

.sj-bar-ico { display: grid; place-items: center; width: 22px; flex: none; }
.sj-bar-switcher { display: inline-flex; align-items: center; gap: 7px; }

/* ---- the NO PROJECT chip --------------------------------------------------- */

.sj-noproject {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px dashed var(--sjb-line);
  background: transparent;
  color: var(--sjb-dim);
  cursor: pointer;
  vertical-align: 1px;
}
.sj-noproject:hover { border-color: #2563eb; color: var(--sjb-fg); }

/* ---- waitlist modal -------------------------------------------------------- */

.sj-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}
.sj-modal {
  position: relative;
  width: min(440px, 94vw);
  border-radius: 18px;
  background: var(--sjb-card);
  color: var(--sjb-fg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font: 13.5px system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* The flare: a ring that cycles through the tool colors. */
.sj-modal::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(from 20deg, #8b5cf6, #0ea5e9, #06b6d4, #10b981, #f59e0b, #f97316, #ef4444, #ec4899, #8b5cf6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sj-tool-hue 18s linear infinite;
  pointer-events: none;
}
@keyframes sj-tool-hue {
  to { filter: hue-rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sj-modal::before { animation: none; }
}
.sj-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font: inherit;
  font-size: 18px;
  border: none;
  background: transparent;
  color: var(--sjb-dim);
  cursor: pointer;
}
.sj-modal-body { display: grid; gap: 13px; padding: 28px 26px 24px; }
.sj-modal-body h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.sj-modal-eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.14em; color: #2563eb;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; }
.sj-modal-eyebrow::before { content: "// "; }
.sj-modal-body p { margin: 0; color: var(--sjb-dim); line-height: 1.5; }
.sj-modal-body label { display: grid; gap: 4px; font-weight: 600; font-size: 12.5px; }
.sj-modal-body label small { font-weight: 400; color: var(--sjb-dim); }
.sj-modal-body input {
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--sjb-line);
  background: var(--sjb-bg);
  color: inherit;
}
.sj-modal-body input:focus { outline: none; border-color: #2563eb; }
.sj-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sj-modal-error { color: #dc2626; font-size: 12.5px; }
.sj-modal-send {
  font: inherit;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
.sj-modal-send:disabled { opacity: 0.45; cursor: default; }
.sj-modal-foot { font-size: 12px; }
.sj-modal-foot a { color: #2563eb; text-decoration: none; }

/* Tool-access request: which tools + why (tool-request.tsx). */
.sj-modal-scrim { overflow-y: auto; align-items: safe center; }
.sj-req-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 4px 10px; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--sjb-line); border-radius: 8px; }
.sj-req-tools legend { padding: 0 4px; font-weight: 600; font-size: 12.5px; }
.sj-modal-body .sj-req-tools label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12.5px; }
.sj-modal-body .sj-req-tools input { padding: 0; margin: 0; }
.sj-req-tools .sj-req-all { grid-column: 1 / -1; font-weight: 600; }
.sj-req-reason { font: inherit; font-weight: 400; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--sjb-line); background: var(--sjb-bg); color: inherit; resize: vertical; }
.sj-req-reason:focus { outline: none; border-color: #2563eb; }

/* PlatformBar chrome — ToolHome, split view, undo, sync badge, scrollbars, beta marker, share window. Part of bar.css (imported in order). */
/* ---- ToolHome — the launcher every tool opens on (home.tsx) -------------- */
/* The quiet dot grid: engineering paper, one dot per 22px. */
:root { --sj-home-dot: rgba(17, 24, 39, 0.11); }
@media (prefers-color-scheme: dark) {
  html:not(.light) { --sj-home-dot: rgba(148, 163, 184, 0.14); }
}
html.dark { --sj-home-dot: rgba(148, 163, 184, 0.14); }
html.lightsout { --sj-home-dot: rgba(148, 163, 184, 0.10); }

.sj-home {
  flex: 1;
  min-height: calc(100vh - 78px); /* bar 40 + footer 38 */
  overflow: auto;
  color: var(--sjb-fg);
  background:
    radial-gradient(var(--sj-home-dot) 1px, transparent 1.45px) -11px -11px / 22px 22px,
    var(--sjb-bg);
}
.sj-home-wrap { max-width: 980px; margin: 0 auto; padding: 40px 20px 80px; }
.sj-home-head { display: flex; align-items: center; gap: 14px; }
.sj-home-ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--sjb-line); border-radius: 12px;
  background: var(--sjb-card); color: var(--sj-tool, #2563eb);
}
.sj-home-head h1 {
  margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}
.sj-home-sub { color: var(--sjb-dim); margin: 8px 0 4px; font-size: 13.5px; max-width: 64ch; line-height: 1.5; }
.sj-home-sec { margin-top: 28px; }
.sj-home-sec h2 {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--sjb-dim); margin: 0 0 10px;
}
.sj-home-sec h2::before { content: "// "; color: var(--sj-tool, #2563eb); }
.sj-home-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sj-home-card {
  font: inherit; text-align: left; display: grid; gap: 5px; align-content: start;
  background: var(--sjb-card); border: 1px solid var(--sjb-line); border-radius: 12px;
  padding: 14px; cursor: pointer; color: var(--sjb-fg);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.sj-home-card:hover { border-color: var(--sj-tool, #2563eb); transform: translateY(-1px); }
.sj-home-card b { font-size: 14px; }
.sj-home-card small { color: var(--sjb-dim); font-size: 12px; line-height: 1.45; }
.sj-home-card.new { border-style: dashed; background: transparent; }

/* Signed-out: the padlocked "Blank" card, and the pulsing invitation on the
   first template — a slow color breath + the beta pill's occasional bounce. */
.sj-locked-card { cursor: default; color: var(--sjb-dim); }
.sj-locked-card:hover { border-color: var(--sjb-line); transform: none; }
.sj-locked-card b { display: inline-flex; align-items: center; gap: 6px; }
.sj-locked-card svg { color: var(--sj-tool, #2563eb); }
.sj-locked-card a { color: var(--sj-tool, #2563eb); text-decoration: none; }
/* A button that reads as an inline link ("Request access"). */
.sj-linkbtn { font: inherit; padding: 0; border: none; background: none; color: var(--sj-tool, #2563eb); cursor: pointer; font-weight: 600; }
.sj-linkbtn:hover { text-decoration: underline; }
.sj-pulse { animation: sj-beta-bounce 5.2s ease-in-out infinite, sj-card-breathe 5.2s ease-in-out infinite; }
.sj-pulse:hover { animation-play-state: paused, paused; }
@keyframes sj-card-breathe {
  0%, 70%, 100% { border-color: var(--sjb-line); box-shadow: none; }
  85% {
    border-color: var(--sj-tool, #2563eb);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sj-tool, #2563eb) 18%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sj-pulse { animation: none; border-color: var(--sj-tool, #2563eb); }
}
.sj-home-note { color: var(--sjb-dim); font-size: 13px; margin: 0; }
.sj-home-note a { color: #2563eb; text-decoration: none; }
.sj-home-proj { margin: 12px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--sjb-dim); }

/* ---- split view (packages/platform/src/split.tsx) -------------------------
   One document, two views: full screen either way or both at once, divider
   wherever the user drags it. The toggle is a segmented control; .on takes
   the tool color. */
.sj-seg { display: inline-flex; border: 1px solid var(--sjb-line); border-radius: 8px; overflow: hidden; flex: none; }
.sj-seg button {
  font: inherit; font-size: 12.5px; padding: 6px 12px; border: none; border-radius: 0;
  background: transparent; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.sj-seg button + button { border-left: 1px solid var(--sjb-line); }
.sj-seg button:hover { background: color-mix(in srgb, var(--sj-tool, #2563eb) 10%, transparent); }
.sj-seg button.on { background: var(--sj-tool, #2563eb); color: #fff; }

.sj-split { flex: 1; min-height: 0; min-width: 0; display: grid; }
.sj-split-one { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.sj-split-pane { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; position: relative; }
.sj-split-pane > * { flex: 1; min-height: 0; }
.sj-split-bar { background: var(--sjb-line); transition: background 0.15s; touch-action: none; }
.sj-split-bar:hover, .sj-split-bar:active { background: var(--sj-tool, #2563eb); }
.sj-split-cols > .sj-split-bar { cursor: col-resize; }
.sj-split-rows > .sj-split-bar { cursor: row-resize; }

/* ---- undo/redo + session history (packages/platform/src/undo.tsx) --------- */
.sj-undo { position: relative; display: inline-flex; gap: 2px; }
.sj-undo > button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border: none; border-radius: 7px;
  background: transparent; color: var(--sjb-dim); cursor: pointer;
}
.sj-undo > button:hover:not(:disabled) { color: var(--sjb-fg); background: color-mix(in srgb, var(--sj-tool, #2563eb) 12%, transparent); }
.sj-undo > button.on { color: var(--sjb-fg); background: color-mix(in srgb, var(--sj-tool, #2563eb) 14%, transparent); }
.sj-undo > button:disabled { opacity: 0.35; cursor: default; }
.sj-undo-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 96;
  width: 240px;
  max-height: 340px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  background: var(--sjb-card);
  color: var(--sjb-fg);
  border: 1px solid var(--sjb-line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 2px;
}
.sj-undo-head { font-size: 11px; color: var(--sjb-dim); padding: 6px 8px 4px; }
.sj-undo-empty { font-size: 12px; color: var(--sjb-dim); padding: 4px 8px 8px; }
.sj-undo-menu > button {
  font: inherit; font-size: 12px; text-align: left;
  display: grid; gap: 1px;
  padding: 5px 8px; border: none; border-radius: 7px;
  background: transparent; color: inherit; cursor: pointer;
}
.sj-undo-menu > button:hover { background: color-mix(in srgb, var(--sj-tool, #2563eb) 12%, transparent); }
.sj-undo-menu > button b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sj-undo-menu > button small { color: var(--sjb-dim); }

/* ---- cloud-sync badge (packages/platform/src/sync.tsx) --------------------- */
.sj-sync {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border: none; border-radius: 7px;
  background: transparent; cursor: default;
}
.sj-sync-local { color: var(--sjb-dim); }
.sj-sync-dirty, .sj-sync-saving { color: var(--sjb-dim); }
.sj-sync-synced { color: var(--sj-tool, #2563eb); }
.sj-sync-error { color: #ef4444; cursor: pointer; }
.sj-sync-spin { transform-box: fill-box; transform-origin: center; animation: sj-spin 0.9s linear infinite; }
@keyframes sj-spin { to { transform: rotate(360deg); } }
/* A project viewer's read-only marker beside the breadcrumb (sync.tsx ViewOnlyPill). */
.sj-view-only {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  border: 1px solid var(--sjb-line); border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--sjb-dim); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .sj-sync-spin { animation: none; }
}

/* ---- scrollbars + form-control scheme, platform-wide -----------------------
   Native scrollbars follow color-scheme; the theme toggle sets html classes,
   so pin the scheme to them (sheets' Tailwind base never did, which left light
   scrollbars in lights-out). This gives every tool the Gantt's look. */
:root { color-scheme: light dark; }
html.light { color-scheme: light; }
html.dark, html.lightsout { color-scheme: dark; }

/* Section label beside the wordmark (TOOLS here, RESOURCES on the library):
   the wordmark always goes home, the label goes to the section. */
.sj-bar-section {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-decoration: none;
  color: var(--sjb-dim); border: 1px solid var(--sjb-line); border-radius: 999px; padding: 2px 8px; flex: none;
}
.sj-bar-section:hover { color: var(--sjb-fg); border-color: var(--sj-tool, #2563eb); }
/* The persistent PRIVATE BETA marker, right side by the account menu. */
.sj-bar-beta {
  font: inherit; font-size: 9.5px; font-weight: 700; letter-spacing: 0.13em; white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: #2563eb;
  animation: sj-tool-hue 36s linear infinite;
}
button.sj-bar-beta { cursor: pointer; }
button.sj-bar-beta:hover { background: rgba(37, 99, 235, 0.1); }
.sj-bar-beta-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: sj-dot-pulse 2.2s ease-in-out infinite; }
@keyframes sj-dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.72); } }
@media (prefers-reduced-motion: reduce) { .sj-bar-beta, .sj-bar-beta-dot { animation: none; } }
html.fx-off .sj-bar-beta, html.fx-off .sj-bar-beta-dot { animation: none !important; }
@media (max-width: 640px) { .sj-bar-section { display: none; } }

/* ---- share window (share.tsx) ----------------------------------------------- */
.sj-share-modal { width: min(560px, 94vw); max-height: 88vh; overflow: auto; }
.sj-share { display: grid; gap: 14px; }
.sj-share-sec { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--sjb-fg) 14%, transparent); }
.sj-share-live { border-color: color-mix(in srgb, #f59e0b 55%, transparent); background: color-mix(in srgb, #f59e0b 7%, transparent); }
.sj-share-head { display: grid; gap: 2px; }
.sj-share-head small, .sj-share-what small { color: var(--sjb-dim); line-height: 1.4; }
.sj-share-row { display: flex; align-items: center; gap: 12px; }
.sj-share-what { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sj-share-warn { font-size: 11.5px; font-weight: 700; color: #d97706; }
.sj-share-item { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--sjb-fg) 10%, transparent); }
.sj-share-linkbox { display: grid; grid-template-columns: 1fr auto; gap: 4px 6px; }
.sj-share-linkbox input {
  font: 12.5px ui-monospace, "Cascadia Code", Consolas, monospace; padding: 6px 8px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--sjb-fg) 20%, transparent); background: transparent; color: inherit; min-width: 0;
}
.sj-share-linkbox small { grid-column: 1 / -1; color: var(--sjb-dim); font-size: 11.5px; }
.sj-share-cal { margin-top: 10px; }
.sj-share-cal > b { grid-column: 1 / -1; font-size: 12.5px; }
.sj-share-ptonames { display: grid; gap: 4px; margin-top: 10px; font-size: 12.5px; }
.sj-share-ptonames > span { font-weight: 600; }
.sj-share-ptonames select { font: inherit; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--sjb-line); background: var(--sjb-card); color: var(--sjb-fg); max-width: 320px; }
.sj-share-ptonames small { color: var(--sjb-dim); font-size: 11.5px; }
.sj-share-copy, .sj-share-new {
  font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--sjb-fg) 22%, transparent); background: transparent; color: inherit;
}
.sj-share-new { justify-self: start; }
.sj-share-copy:hover, .sj-share-new:hover { border-color: #2563eb; }
.sj-share-note, .sj-share-foot { font-size: 12px; color: var(--sjb-dim); margin: 0; line-height: 1.5; }
.sj-share-err { font-size: 12px; color: #dc2626; margin: 0; }
/* Saved view on a link (Schedule, 2026-11-04). */
.sj-share-view { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; }
.sj-share-view small { color: var(--sjb-dim); flex: 1 1 180px; line-height: 1.4; }
.sj-share-view-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sj-share-view-btns button {
  font: inherit; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--sjb-fg) 22%, transparent); background: transparent; color: inherit;
}
.sj-share-view-btns button:hover { border-color: #2563eb; }
.sj-share-view-btns button:disabled { opacity: 0.5; cursor: default; }
.sj-switch {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 99px; cursor: pointer;
  font: 600 11.5px system-ui, sans-serif; border: 1px solid color-mix(in srgb, var(--sjb-fg) 25%, transparent);
  background: transparent; color: var(--sjb-dim);
}
.sj-switch-knob { width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--sjb-fg) 30%, transparent); transition: background 0.15s; }
.sj-switch.on { color: #16a34a; border-color: #16a34a; }
.sj-switch.on .sj-switch-knob { background: #16a34a; }
.sj-switch:disabled { opacity: 0.5; cursor: default; }

/* PlatformBar chrome — one chrome, the two-half pills, ToolHome list, share links. Part of bar.css (imported in order). */
/* ---- one chrome (platform.md B4) ---------------------------------------------
   The static pages (www home, resources library) render this same bar and
   bottom strip from static/bar.mjs; these rules cover the pieces both share. */
.sj-bar-menu[hidden], .sj-menu[hidden] { display: none; }
a.sj-bar-beta { text-decoration: none; }
/* Legal is a page link, so it sits apart at the far right, past the switches. */
.sj-foot-legal {
  color: var(--sjb-dim); text-decoration: none; font-size: 12px; flex: none;
  align-self: stretch; display: inline-flex; align-items: center;
  padding: 0 2px 0 12px; border-left: 1px solid var(--sjb-line);
}
.sj-foot-legal:hover { color: var(--sjb-fg); }
/* A tool's own segmented control in the bottom bar (PlatformBar
   footerControls), drawn like the theme switch: e.g. Schedule's − 100% +. */
.sj-foot-seg { display: inline-flex; flex: none; border: 1px solid var(--sjb-line); border-radius: 8px; overflow: hidden; }
.sj-foot-seg button {
  font: inherit; font-size: 11.5px; min-width: 26px; padding: 3px 8px; border: none;
  background: transparent; color: var(--sjb-dim); cursor: pointer; font-variant-numeric: tabular-nums;
}
.sj-foot-seg button + button { border-left: 1px solid var(--sjb-line); }
.sj-foot-seg button:hover:not(:disabled) { color: var(--sjb-fg); }
.sj-foot-seg button:disabled { opacity: 0.4; cursor: default; }
/* A tool's own extra line in the bottom bar (PlatformBar footerExtra), e.g. a
   "verify with an engineer" note or a trademark line. Stays visible on phones,
   truncated; the full text rides the title attribute. */
.sj-foot-extra { flex: 0 1 auto; }
@media (max-width: 760px) {
  .sj-foot .sj-foot-extra { display: block; font-size: 11px; }
  .sj-foot { gap: 8px; }
  .sj-foot-fx .sj-foot-fx-label { display: none; }
}
@media (max-width: 520px) {
  .sj-bar { gap: 8px; padding: 0 8px; }
  .sj-bar-beta { font-size: 8.5px; padding: 2px 7px; letter-spacing: 0.08em; }
  /* No room for the breadcrumb beside the switcher on a phone — it only
     ever showed a clipped letter or two. The tool's own header names it. */
  .sj-bar-context { display: none; }
}

/* ---- the two-half pills: [Tools | <tool> ▾] [Projects | <project> ▾] -------
   Kyle, 2026-11-04. The left half goes somewhere (the tool's front door, the
   projects list); the right half opens the dropdown. One joined pill. */
.sj-bar-pills { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sj-pill {
  position: relative; display: inline-flex; align-items: stretch; flex: 0 1 auto; min-width: 0;
  height: 28px; border: 1px solid var(--sjb-line); border-radius: 999px; background: var(--sjb-card);
  color: var(--sjb-fg); text-decoration: none;
}
.sj-pill svg { flex: none; }
.sj-pill-r[hidden] { display: none; }
.sj-pill-tools { flex: none; border-color: color-mix(in srgb, var(--sj-tool, var(--sjb-line)) 50%, var(--sjb-line)); }
.sj-pill-l, .sj-pill-r {
  font: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; min-width: 0;
  border: none; background: transparent; color: inherit; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.sj-pill-l {
  flex: none; color: var(--sjb-dim); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px 0 0 999px;
}
.sj-pill-r { font-weight: 600; border-left: 1px solid var(--sjb-line); border-radius: 0 999px 999px 0; padding-left: 9px; }
.sj-pill-l:hover, .sj-pill-r:hover, .sj-pill-r[aria-expanded="true"] {
  color: var(--sjb-fg); background: color-mix(in srgb, var(--sj-tool, #2563eb) 10%, transparent);
}
.sj-pill-tools .sj-pill-l { color: var(--sj-tool, var(--sjb-dim)); }
.sj-pill-name { overflow: hidden; text-overflow: ellipsis; max-width: 200px; min-width: 0; }
.sj-pill-none { color: var(--sjb-dim); font-size: 11px; letter-spacing: 0.04em; }
.sj-pill-glyph { display: none; flex: none; }
.sj-pill-off { opacity: 0.6; }
.sj-pill-off .sj-pill-l { border-radius: 999px; }
.sj-pill-off:hover { opacity: 1; }
.sj-pill .sj-bar-menu { top: calc(100% + 7px); }
.sj-projects-menu { width: 270px; max-height: min(70vh, 460px); overflow: auto; }
button.sj-bar-item { font: inherit; width: 100%; text-align: left; border: none; background: transparent; cursor: pointer; }
.sj-bar-note { font-size: 12px; color: var(--sjb-dim); padding: 6px 10px; }
.sj-bar-break { display: none; }
@media (max-width: 760px) {
  .sj-pill-name { max-width: 130px; }
}
/* Phones: two rows — wordmark, beta, account; then the pills (+ undo/sync).
   The pills' left halves shrink to their marks; the tool name stays in the
   menu and the tool's own header, the project name truncates. */
@media (max-width: 520px) {
  .sj-bar { flex-wrap: wrap; height: auto; min-height: 40px; padding: 4px 8px 5px; row-gap: 4px; }
  .sj-bar > * { order: 1; }
  .sj-bar-wordmark { order: 0; }
  .sj-bar-break { display: block; order: 2; flex-basis: 100%; height: 0; }
  .sj-bar-pills { order: 3; flex: 1 1 0; gap: 6px; }
  .sj-bar > .sj-undo, .sj-bar > .sj-sync { order: 4; }
  .sj-bar-wordmark, .sj-bar-beta, .sj-account { align-self: center; }
  .sj-pill { height: 34px; }
  .sj-pill-l { padding: 0 11px; min-width: 40px; justify-content: center; }
  .sj-pill-r { padding: 0 10px; }
  .sj-pill-glyph { display: block; }
  .sj-pill-word, .sj-pill-toolname { display: none; }
  .sj-pill-off .sj-pill-word { display: inline; }
  .sj-pill-projects { flex: 1 1 auto; }
  .sj-pill-projects.sj-pill-off { flex: none; }
  .sj-pill-projects .sj-pill-r { flex: 1 1 auto; justify-content: space-between; }
  .sj-pill-name { max-width: none; }
}


/* ---- ToolHome list (promoted from Schedule's launcher, schedule.md B7) ----
   One row per openable thing: thumbnail, name, project, edited, remove. */
.sj-home-listhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sj-home-listhead h2 { margin: 0 !important; }
.sj-home-sort { display: flex; gap: 4px; margin-left: auto; }
.sj-home-sort button {
  font: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--sjb-line); background: transparent; color: var(--sjb-dim);
}
.sj-home-sort button.on { color: var(--sjb-fg); border-color: var(--sj-tool, #2563eb); }
.sj-home-list { border: 1px solid var(--sjb-line); border-radius: 12px; overflow: hidden; background: var(--sjb-card); margin-bottom: 6px; }
.sj-home-row {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(0, 220px) 110px 34px; gap: 14px; align-items: center;
  padding: 8px 12px; border-top: 1px solid var(--sjb-line); cursor: pointer; color: var(--sjb-fg);
}
.sj-home-list > div:first-child, .sj-home-list > div > .sj-home-row:first-child { border-top: none; }
.sj-home-row:hover { background: color-mix(in srgb, var(--sj-tool, #2563eb) 7%, transparent); }
.sj-home-row:focus-visible { outline: 2px solid var(--sj-tool, #2563eb); outline-offset: -2px; }
.sj-home-cols { cursor: default; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sjb-dim); padding-top: 7px; padding-bottom: 7px; }
.sj-home-cols:hover { background: none; }
.sj-home-thumb { display: grid; place-items: center; width: 84px; height: 34px; border-radius: 5px; overflow: hidden;
  background: color-mix(in srgb, var(--sjb-fg) 5%, transparent); color: var(--sj-tool, var(--sjb-dim)); }
.sj-home-thumb > svg:not(.sj-tool-icon) { width: 100%; height: 100%; display: block; }
.sj-home-thumb-cloud { color: var(--sjb-dim); }
.sj-home-name { display: grid; min-width: 0; }
.sj-home-name b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-home-name small, .sj-home-edited { color: var(--sjb-dim); font-size: 12px; }
.sj-home-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-home-project { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-home-project.device { color: var(--sjb-dim); font-style: italic; }
.sj-home-remove { border: none; background: transparent; color: var(--sjb-dim); cursor: pointer; font-size: 13px; padding: 4px; }
.sj-home-remove:hover { color: #ef4444; }
.sj-home-group {
  margin: 0; padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--sjb-dim); border-top: 1px solid var(--sjb-line);
}
@media (max-width: 700px) {
  .sj-home-row { grid-template-columns: 60px minmax(0, 1fr) 30px; }
  .sj-home-project, .sj-home-edited, .sj-home-cols { display: none; }
  .sj-home-thumb { width: 60px; }
}

/* Share links (/s/<code>) in every tool — packages/platform/src/sharedview.tsx (B7). */
.sj-shared-banner {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
  padding: 7px 16px; border-bottom: 1px solid var(--sjb-line);
  background: var(--sjb-card); color: var(--sjb-fg);
  font: 12.5px system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sj-shared-banner span { color: var(--sjb-dim); }
.sj-shared-banner a { color: inherit; font-weight: 600; margin-left: auto; }

/* PlatformBar chrome — LinkGone and the share screens, snapshot rows. Part of bar.css (imported in order). */
/* ---- LinkGone — the one "link turned off" page (linkgone.tsx) ------------
   The home page's backdrop (apps/www .bg-art: 22px grid + arch-wave lines,
   lobby pace), a pointer glow on the grid, the message card, and a
   "While you're here" film strip. Sits under the PlatformBar (z 95) and
   footer (z 96); everything decorative goes quiet for reduced motion and
   Effects off (html.fx-off). */
:root {
  --sj-gone-line: #2563eb;
  --sj-gone-grid: rgba(37, 99, 235, 0.035);
  --sj-gone-lit: rgba(37, 99, 235, 0.32);
  --sj-gone-hole: rgba(17, 24, 39, 0.10);
}
@media (prefers-color-scheme: dark) {
  html:not(.light) { --sj-gone-grid: rgba(96, 165, 250, 0.0325); --sj-gone-lit: rgba(96, 165, 250, 0.3); --sj-gone-hole: rgba(148, 163, 184, 0.16); }
}
html.dark { --sj-gone-grid: rgba(96, 165, 250, 0.0325); --sj-gone-lit: rgba(96, 165, 250, 0.3); --sj-gone-hole: rgba(148, 163, 184, 0.16); }
html.lightsout { --sj-gone-grid: rgba(96, 165, 250, 0.0225); --sj-gone-lit: rgba(96, 165, 250, 0.24); --sj-gone-hole: rgba(148, 163, 184, 0.12); }

.sj-gone {
  position: fixed; inset: 0; z-index: 90;
  overflow-x: hidden; overflow-y: auto;
  padding: 40px 0 38px; /* bar + footer */
  background: var(--sjb-bg); color: var(--sjb-fg);
  font: 14px system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sj-gone-art {
  position: fixed; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--sj-gone-grid) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--sj-gone-grid) 1px, transparent 1px) 0 0 / 22px 22px;
  /* Grid tint, glow and lines wander through the tool colors together. */
  animation: sj-tool-hue 90s linear infinite;
}
.sj-gone-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--sj-gone-line); }
.sj-gone-art path {
  fill: none; stroke: currentColor; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sj-snake-draw var(--life, 44s) linear forwards;
}
@keyframes sj-snake-draw {
  /* Lobby pace: a slow ease into and out of the trace, never a dash. */
  0%   { stroke-dashoffset: 1; opacity: var(--op, 0.2); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  40%  { stroke-dashoffset: 0; opacity: var(--op, 0.2); }
  72%  { opacity: var(--op, 0.2); }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
/* The glow: the same grid, brighter, only in a soft circle under the pointer. */
.sj-gone-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  background:
    linear-gradient(var(--sj-gone-lit) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--sj-gone-lit) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(circle 200px at var(--sj-mx, -999px) var(--sj-my, -999px), #000, transparent 75%);
  mask-image: radial-gradient(circle 200px at var(--sj-mx, -999px) var(--sj-my, -999px), #000, transparent 75%);
}
.sj-gone-art.lit .sj-gone-glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sj-gone-art { animation: none; }
  .sj-gone-art svg, .sj-gone-glow { display: none; }
  .sj-gone-frame { transition: none; }
}
html.fx-off .sj-gone-art { animation: none; }
html.fx-off .sj-gone-art svg, html.fx-off .sj-gone-glow { display: none; }

.sj-gone-body {
  position: relative; min-height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 7vh 0 44px;
}
.sj-gone-card {
  position: relative; overflow: hidden;
  width: min(500px, calc(100% - 32px)); margin: 0 auto; padding: 30px 28px 26px;
  text-align: center;
  background: color-mix(in srgb, var(--sjb-card) 90%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--sjb-line); border-radius: 16px;
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.35);
}
/* A hairline of every tool color across the top. */
.sj-gone-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #0ea5e9, #06b6d4, #10b981, #84cc16, #f59e0b, #f97316, #ef4444, #ec4899);
}
.sj-gone-mark {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border: 1px solid var(--sjb-line); border-radius: 12px; color: var(--sjb-dim);
  background: var(--sjb-bg);
}
.sj-gone-eyebrow {
  display: block; margin-bottom: 6px;
  font: 600 11px ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sjb-dim);
}
.sj-gone-card h1 { margin: 0 0 10px; font-size: 25px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.sj-gone-card p { margin: 0 auto; max-width: 40ch; color: var(--sjb-dim); line-height: 1.55; font-size: 14.5px; }
/* The share screens' "opening…" / "couldn't load" card (SharedScreen): same
   card, smaller; while opening, the color hairline sweeps across. */
.sj-gone-card-slim { width: min(420px, calc(100% - 32px)); padding: 22px 24px 20px; }
.sj-gone-card-slim p { color: var(--sjb-fg); }
.sj-gone-card-slim .sj-share-err { color: #dc2626; }
.sj-gone-card-slim .sj-gone-back { margin-top: 10px; }
/* A PIN link (any tool, 2026-11-09; sharepin.tsx): the PIN before anything shows. */
.sj-pin-form { display: grid; gap: 12px; justify-items: center; text-align: center; }
.sj-pin-form .sj-pin-mark { margin-bottom: 0; }
.sj-pin-form input { font: 600 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.3em; width: min(9em, 100%); box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--sjb-line, #cbd5e1); border-radius: 8px; background: var(--sjb-bg, #fff); color: var(--sjb-fg); text-align: center; }
/* A pause after too many wrong PINs: calm, not an error. */
.sj-gone-card-slim .sj-pin-wait { color: var(--sjb-dim); font-size: 13.5px; max-width: 36ch; }
.sj-pin-wait svg { vertical-align: -2px; margin-right: 2px; }
.sj-pin-form input::placeholder { letter-spacing: normal; font-weight: 400; font-size: 16px; color: var(--sjb-dim); }
.sj-pin-form button { font: inherit; padding: 7px 18px; border-radius: 8px; border: 1px solid transparent; background: #2563eb; color: #fff; cursor: pointer; }
.sj-pin-form button:disabled { opacity: 0.5; cursor: default; }
.sj-share-pin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.sj-share-pin b { font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.25em; }
.sj-share-pin small { flex-basis: 100%; color: var(--sjb-dim); font-size: 11.5px; }
/* The Share panel's "Require a PIN" row under each link that's on. */
.sj-share-pinrow { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--sjb-fg) 14%, transparent); }
.sj-share-pinrow .sj-share-what b { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.sj-share-pinedit input { font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.2em; width: 9.5em; max-width: 100%; box-sizing: border-box; padding: 6px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--sjb-fg) 22%, transparent); background: transparent; color: inherit; }
.sj-share-pinedit input::placeholder { letter-spacing: normal; font-weight: 400; font-size: 12px; }
.sj-gone-card-slim .sj-gone-back a { color: inherit; font-weight: 600; }
.sj-gone-busy::before {
  /* Half-width tiles that end where they start, slid one tile per loop: seamless. */
  background-image: linear-gradient(90deg, #8b5cf6, #0ea5e9, #10b981, #84cc16, #f59e0b, #ef4444, #ec4899, #8b5cf6);
  background-size: 50% 100%;
  animation: sj-gone-sweep 2.4s linear infinite;
}
@keyframes sj-gone-sweep { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .sj-gone-busy::before { animation: none; } }

.sj-gone-more { width: min(1080px, 100%); margin: 0 auto; }
.sj-gone-more-head { display: flex; align-items: center; gap: 10px; padding: 0 16px; margin-bottom: 10px; }
.sj-gone-more h2 {
  margin: 0; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sjb-dim);
}
.sj-gone-more h2::before { content: "// "; color: var(--sj-gone-line); }
.sj-gone-nav { margin-left: auto; display: inline-flex; gap: 6px; }
.sj-gone-nav button {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--sjb-line); background: var(--sjb-card); color: var(--sjb-fg);
  font: 18px/1 system-ui, sans-serif; display: grid; place-items: center; padding: 0 0 2px;
}
.sj-gone-nav button:hover { border-color: var(--sjb-fg); }
/* The film strip: sprocket holes along both edges, frames that snap. */
.sj-gone-reel {
  position: relative; padding: 16px 0;
  background:
    linear-gradient(90deg, var(--sj-gone-hole) 0 10px, transparent 10px) 6px 4px / 22px 6px repeat-x,
    linear-gradient(90deg, var(--sj-gone-hole) 0 10px, transparent 10px) 6px calc(100% - 4px) / 22px 6px repeat-x,
    color-mix(in srgb, var(--sjb-card) 55%, transparent);
  border-top: 1px solid var(--sjb-line); border-bottom: 1px solid var(--sjb-line);
}
@media (min-width: 1081px) { .sj-gone-reel { border: 1px solid var(--sjb-line); border-radius: 14px; } }
.sj-gone-strip {
  display: flex; gap: 12px; padding: 4px 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.sj-gone-strip::-webkit-scrollbar { display: none; }
.sj-gone-frame {
  flex: 0 0 212px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 5px; padding: 14px;
  background: var(--sjb-card); color: var(--sjb-fg); text-decoration: none;
  border: 1px solid var(--sjb-line); border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.sj-gone-frame:hover, .sj-gone-frame:focus-visible {
  outline: none; border-color: var(--sj-tool); transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px var(--sj-tool);
}
.sj-gone-ico {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 10px;
  color: var(--sj-tool); background: color-mix(in srgb, var(--sj-tool) 12%, transparent);
}
.sj-gone-frame b { font-size: 14px; }
.sj-gone-frame small { color: var(--sjb-dim); font-size: 12.5px; line-height: 1.45; }
.sj-gone-host {
  margin-top: auto; padding-top: 8px; color: var(--sjb-dim);
  font: 11px ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sj-gone-frame:hover .sj-gone-host { color: var(--sj-tool); }
@media (max-width: 520px) {
  .sj-gone { padding-top: 84px; } /* the bar is two rows on phones */
  .sj-gone-body { gap: 28px; padding-top: 4vh; justify-content: flex-start; }
  .sj-gone-card { padding: 24px 18px 20px; }
  .sj-gone-card h1 { font-size: 22px; }
  .sj-gone-frame { flex-basis: min(230px, 68vw); }
  .sj-gone-nav { display: none; }
}
/* SnapshotsAndShare rows (packages/platform/src/snapshots.tsx) inside a tool's .menu. */
.sj-snap-row { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; cursor: default; }
.sj-snap-row small { color: var(--sjb-dim); font-size: 11px; }
.sj-snap-actions { display: inline-flex; gap: 6px; align-items: center; flex: none; }
.sj-snap-take { display: flex !important; flex-direction: column !important; align-items: stretch; gap: 6px; cursor: default; }
.sj-snap-take input[type="text"], .sj-snap-take input:not([type]) { font: inherit; padding: 4px 6px; border: 1px solid var(--sjb-line); border-radius: 6px; background: transparent; color: inherit; }
.sj-snap-take label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sj-snap-take small { color: var(--sjb-dim); }
.sj-snap-banner-actions { display: inline-flex; gap: 6px; align-items: center; }
.sj-snap-banner-actions button { font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--sjb-line); background: transparent; color: inherit; cursor: pointer; }
.sj-snap-banner-actions button:disabled { opacity: 0.5; cursor: default; }
.sj-snap-actions a, .sj-snap-actions button {
  font: inherit; font-size: 11.5px; padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--sjb-line); background: transparent; color: inherit; text-decoration: none; cursor: pointer;
}

/* PlatformBar chrome — phone density, stage tags, Share/Snapshots, glyphs, local-only, snap window, squiggle, export tiers. Part of bar.css (imported in order). */
/* ---- phone density (Kyle, 2026-11-04: "slightly too large… maybe the
   padding") — tighter spacing, same type sizes for reading text (≥ 13.5px)
   and rows/cards that stay ≥ 44px tall to tap. Pages (www home, library)
   carry their own matching rules. */
@media (max-width: 600px) {
  .sj-home-wrap { padding: 16px 14px 40px; }
  .sj-home-head { gap: 10px; }
  .sj-home-ico { width: 34px; height: 34px; border-radius: 9px; }
  .sj-home-ico svg { width: 20px; height: 20px; }
  .sj-home-head h1 { font-size: 21px; }
  .sj-home-sub { margin: 6px 0 0; }
  .sj-home-sec { margin-top: 18px; }
  .sj-home-sec h2 { margin-bottom: 8px; }
  .sj-home-grid { gap: 8px; }
  .sj-home-card { padding: 10px 12px; gap: 3px; border-radius: 10px; }
  .sj-home-card b { font-size: 13.5px; }
  .sj-home-listhead { gap: 8px; margin-bottom: 8px; }
  .sj-home-row { gap: 10px; padding: 6px 10px; min-height: 48px; }
  .sj-home-list { border-radius: 10px; }
}

/* "AI: connected" — a small live dot beside the label (tool switcher,
   account menu, and the static chrome's same menus). */
.sj-ai-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 25%, transparent); margin-right: 6px; vertical-align: 1px; }

/* Alpha tools (2026-11-05): a tag beside the tool's name in the bar, a small
   mark in the tool menus, and a one-time notice under the bar. */
.sj-stage-tag { flex: none; align-self: center; margin: 0 6px 0 -2px; padding: 2px 6px; border-radius: 5px;
  font: 700 9.5px/1.2 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .12em; text-decoration: none;
  color: #b45309; background: color-mix(in srgb, #f59e0b 16%, transparent); border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); }
.sj-stage-tag:hover { background: color-mix(in srgb, #f59e0b 26%, transparent); }
html.dark .sj-stage-tag { color: #fbbf24; }
/* Beta: the same tag and one-time notice in blue (2026-11-05). */
.sj-stage-tag.beta { color: #1d4ed8; background: color-mix(in srgb, #3b82f6 14%, transparent); border-color: color-mix(in srgb, #3b82f6 45%, transparent); }
.sj-stage-tag.beta:hover { background: color-mix(in srgb, #3b82f6 24%, transparent); }
html.dark .sj-stage-tag.beta { color: #93c5fd; }
.sj-alpha-note.beta { border-bottom-color: color-mix(in srgb, #3b82f6 40%, var(--sjb-line)); background: color-mix(in srgb, #3b82f6 8%, var(--sjb-card)); }
.sj-alpha-note.beta b { color: #1d4ed8; }
html.dark .sj-alpha-note.beta b { color: #93c5fd; }
.sj-alpha-note.beta .sj-alpha-x { border-color: color-mix(in srgb, #3b82f6 45%, var(--sjb-line)); }
.sj-stage-mini { margin-left: 6px; padding: 0 5px; border-radius: 4px; font: 700 9px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: #b45309; background: color-mix(in srgb, #f59e0b 16%, transparent); vertical-align: 1px; }
html.dark .sj-stage-mini { color: #fbbf24; }
/* A standalone product (EXTERNAL_TOOLS) in the switcher: neutral, not a stage. */
.sj-stage-mini.sj-standalone-mini { text-transform: none; letter-spacing: .04em; color: var(--sjb-dim); background: color-mix(in srgb, #64748b 14%, transparent); }
html.dark .sj-stage-mini.sj-standalone-mini { color: var(--sjb-dim); }
.sj-alpha-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 7px 16px; font-size: 12.5px;
  border-bottom: 1px solid color-mix(in srgb, #f59e0b 40%, var(--sjb-line)); background: color-mix(in srgb, #f59e0b 9%, var(--sjb-card)); color: var(--sjb-fg); }
.sj-alpha-note b { color: #b45309; }
html.dark .sj-alpha-note b { color: #fbbf24; }
.sj-alpha-note a { color: inherit; text-decoration: underline; }
.sj-alpha-x { margin-left: auto; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--sjb-line)); background: transparent; color: inherit; }

/* After "Got it" the alpha notice travels down into the bottom bar and stays
   as one light italic line (Kyle, 2026-11-05). */
.sj-foot-alpha { color: var(--sjb-dim); font-size: 11.5px; font-weight: 300; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; padding: 2px 8px; border-radius: 10px; opacity: 0.9; transition: opacity 0.3s; }
.sj-foot-alpha i { font-style: italic; }
.sj-foot-alpha:hover { color: var(--sjb-fg); text-decoration: underline; }
.sj-foot-alpha-short { display: none; }
.sj-foot-alpha.arriving { opacity: 0; }
.sj-foot-alpha.landed { animation: sj-alpha-land 1.8s ease-out; }
@keyframes sj-alpha-land {
  0% { background: color-mix(in srgb, #f59e0b 38%, transparent); color: var(--sjb-fg); }
  100% { background: transparent; }
}
.sj-alpha-ghost { position: fixed; z-index: 400; pointer-events: none; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap;
  font: italic 12px system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--sjb-fg); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--sjb-line)); background: color-mix(in srgb, #f59e0b 16%, var(--sjb-card)); }
/* Beta flies down the same way, in the beta blue (Kyle, 2026-11-06). */
.sj-alpha-ghost.beta { border-color: color-mix(in srgb, #3b82f6 45%, var(--sjb-line)); background: color-mix(in srgb, #3b82f6 14%, var(--sjb-card)); }
.sj-foot-alpha.beta.landed { animation-name: sj-beta-land; }
@keyframes sj-beta-land {
  0% { background: color-mix(in srgb, #3b82f6 32%, transparent); color: var(--sjb-fg); }
  100% { background: transparent; }
}
@media (max-width: 520px) {
  .sj-foot-alpha-long { display: none; }
  .sj-foot-alpha-short { display: inline; }
}


/* ---- Share / Snapshots — one button, one two-column panel (sharesnaps.tsx).
   The same look as Schedule's (apps/schedule/src/styles.css, .wide-panel /
   .menu-snapshot), so a snapshot reads the same in every tool (2026-11-06). */
.sj-ss { position: relative; display: inline-block; }
.sj-ss-btn {
  font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px; border: 1px solid #2563eb; background: #2563eb; color: #fff; cursor: pointer;
}
.sj-ss-btn:hover, .sj-ss-btn.open { background: #1d4ed8; border-color: #1d4ed8; }
.sj-snap-icon { vertical-align: -2px; flex: none; }
.sj-ss-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 90;
  width: min(780px, calc(100vw - 32px)); max-height: 72vh; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 10px;
  background: var(--sjb-card); color: var(--sjb-fg); border: 1px solid var(--sjb-line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font: 13px system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left;
}
.sj-ss-panel.sj-ss-solo { width: min(420px, calc(100vw - 32px)); grid-template-columns: minmax(0, 1fr); }
.sj-ss-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sj-ss-col + .sj-ss-col { border-left: 1px solid var(--sjb-line); padding-left: 14px; }
.sj-ss-head { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sjb-dim); padding: 2px 9px 6px; }
.sj-ss-note { font-size: 12px; color: var(--sjb-dim); padding: 8px 12px; display: block; line-height: 1.5; white-space: normal; }
.sj-ss-item {
  font: inherit; text-align: left; background: transparent; border: none; color: inherit; padding: 7px 9px; border-radius: 7px;
  cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.sj-ss-item small { color: var(--sjb-dim); font-size: 11px; }
.sj-ss-item:hover:not(:disabled) { background: color-mix(in srgb, var(--sjb-fg) 6%, transparent); }
.sj-ss-item:disabled { opacity: 0.5; cursor: default; }
.sj-ss-live.current { background: color-mix(in srgb, #2563eb 8%, transparent); }
.sj-ss-row-head { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sj-ss-row-head em { font-style: normal; font-weight: 700; color: #2563eb; font-size: 11px; letter-spacing: 0.04em; }
.sj-ss-with-view { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sjb-dim); padding: 2px 9px 6px; cursor: pointer; }
.sj-ss-with-view input { accent-color: #2563eb; }
.sj-ss-sep { height: 1px; background: var(--sjb-line); margin: 4px 2px; }
.sj-ss-snap { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 9px; border-radius: 7px; }
.sj-ss-snap:hover { background: color-mix(in srgb, var(--sjb-fg) 6%, transparent); }
.sj-ss-label { display: flex; flex-direction: column; font-size: 12.5px; min-width: 0; }
.sj-ss-label small { display: block; color: var(--sjb-dim); font-size: 11px; white-space: normal; }
.sj-ss-view-tag { color: #2563eb !important; }
.sj-ss-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.sj-ss-actions button, .sj-ss-actions a {
  font: inherit; font-size: 11px; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--sjb-line);
  background: transparent; color: inherit; cursor: pointer; text-decoration: none;
}
.sj-ss-actions button:hover, .sj-ss-actions a:hover { border-color: #2563eb; }
.sj-ss-actions .sj-ss-view { border-color: #2563eb; color: #2563eb; font-weight: 700; }
.sj-ss-share .sj-share, .sj-ss-share .sj-share-note { padding: 0 6px; }
@media (max-width: 720px) {
  .sj-ss-panel { grid-template-columns: minmax(0, 1fr); }
  .sj-ss-col + .sj-ss-col { border-left: none; padding-left: 0; border-top: 1px solid var(--sjb-line); padding-top: 8px; }
}
@media print { .sj-ss { display: none !important; } }

/* Monoline UI glyphs (icons.tsx Glyph): sit on the text baseline like a letter. */
.sj-glyph { display: inline-block; vertical-align: -0.14em; flex: none; }

/* Offline on this computer's license (license.ts). */
.sj-bar-offline { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, #0ea5e9 45%, var(--sjb-line)); color: var(--sjb-fg); background: color-mix(in srgb, #0ea5e9 12%, transparent); }
.sj-bar-offline.expired { border-color: color-mix(in srgb, #f59e0b 50%, var(--sjb-line)); background: color-mix(in srgb, #f59e0b 14%, transparent); }

/* Local only (localonly-ui.tsx): the chip beside a scheme name and the "no copy yet" reminder. */
.sj-lo-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap;
  color: #0f766e; border: 1px solid color-mix(in srgb, #14b8a6 50%, transparent); background: color-mix(in srgb, #14b8a6 10%, transparent); }
html.dark .sj-lo-chip, html.lightsout .sj-lo-chip { color: #5eead4; }
.sj-lo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 16px; font-size: 12.5px;
  background: color-mix(in srgb, #14b8a6 13%, var(--sjb-card)); border-bottom: 1px solid color-mix(in srgb, #14b8a6 45%, transparent); color: var(--sjb-fg); }
.sj-lo-banner > span { flex: 1 1 320px; }
.sj-lo-banner b { color: #0f766e; }
html.dark .sj-lo-banner b, html.lightsout .sj-lo-banner b { color: #5eead4; }
.sj-lo-banner button { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 8px; cursor: pointer; color: inherit; background: transparent;
  border: 1px solid color-mix(in srgb, #14b8a6 55%, transparent); }

/* A double-clicked project file handed to this tool (projectfolder-ui.tsx). */
.sj-handoff { position: fixed; z-index: 450; left: 50%; bottom: 56px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px;
  background: var(--sjb-card); color: var(--sjb-fg); border: 1px solid color-mix(in srgb, #14b8a6 50%, var(--sjb-line)); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.sj-handoff > span { flex: 1 1 260px; }
.sj-handoff button { font: inherit; font-size: 12.5px; padding: 5px 12px; border-radius: 9px; cursor: pointer; color: inherit; background: transparent; border: 1px solid var(--sjb-line); }
.sj-handoff .sj-handoff-go { background: #0d9488; border-color: #0d9488; color: #fff; }

/* The big Snapshots & links window (snapwindow.tsx): a flyout over the right side. */
.sj-snapwin-scrim { position: fixed; inset: 0; z-index: 420; background: rgba(0, 0, 0, 0.35); display: flex; align-items: flex-start; justify-content: center; padding: 28px 24px; overflow-y: auto; }
.sj-snapwin { --sj-tool: #2563eb; box-sizing: border-box; width: min(1150px, 100%); max-height: calc(100vh - 56px); overflow-y: auto; background: var(--sjb-card); color: var(--sjb-fg);
  border: 1px solid var(--sjb-line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); padding: 18px 22px 16px; display: flex; flex-direction: column; gap: 12px; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.sj-snapwin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sj-snapwin-head h2 { margin: 0; font-size: 19px; }
.sj-snapwin-eyebrow { margin: 0 0 2px; font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sj-tool); }
.sj-snapwin .sj-snapwin-x { border: none; color: var(--sjb-dim); padding: 4px; }
.sj-snapwin .sj-snapwin-x:hover { color: var(--sjb-fg); }
.sj-snapwin-dim { color: var(--sjb-dim); }
.sj-snapwin-pad { padding: 8px 10px; margin: 0; }
.sj-snapwin input, .sj-snapwin select, .sj-snapwin button, .sj-snapwin a { font: inherit; font-size: 12.5px; }
.sj-snapwin input, .sj-snapwin select { padding: 4px 8px; border-radius: 7px; border: 1px solid var(--sjb-line); background: var(--sjb-card); color: inherit; }
.sj-snapwin button:not(.sj-switch), .sj-snapwin-actions a { padding: 4px 10px; border-radius: 7px; border: 1px solid var(--sjb-line); background: transparent; color: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.sj-snapwin button:not(.sj-switch):hover, .sj-snapwin-actions a:hover { border-color: var(--sj-tool); }
.sj-snapwin button:disabled { opacity: 0.5; cursor: default; }
.sj-snapwin .sj-snapwin-quiet { border-color: transparent; color: var(--sjb-dim); padding: 3px 6px; }
.sj-snapwin .sj-snapwin-quiet:hover { color: var(--sjb-fg); }
.sj-snapwin .sj-snapwin-primary { background: var(--sj-tool); border-color: var(--sj-tool); color: #fff; font-weight: 600; }
.sj-snapwin-sec { border: 1px solid var(--sjb-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.sj-snapwin-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sj-snapwin-what { display: inline-flex; align-items: center; gap: 6px; min-width: 190px; }
.sj-snapwin-what > svg { color: var(--sj-tool); }
.sj-snapwin-sechead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sj-snapwin-sechead b { font-size: 13.5px; }
.sj-snapwin-warn { display: inline-flex; align-items: center; gap: 4px; color: #b45309; font-size: 11.5px; }
.sj-snapwin-url { display: inline-flex; gap: 6px; align-items: center; flex: 1 1 300px; min-width: 0; }
.sj-snapwin-url input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--sjb-dim); }
.sj-snapwin-names { display: inline-flex; align-items: center; gap: 6px; }
.sj-snapwin-viewctl { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sj-snapwin-pin { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; }
.sj-snapwin-pinedit { display: inline-flex; align-items: center; gap: 4px; }
.sj-snapwin-pinedit input { width: 110px; }
.sj-snapwin-take { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sj-snapwin-take > input { flex: 1 1 260px; }
.sj-snapwin-check { display: inline-flex; align-items: center; gap: 5px; color: var(--sjb-dim); }
.sj-snapwin-check input { padding: 0; }
.sj-snapwin-table { display: grid; border: 1px solid var(--sjb-line); border-radius: 10px; overflow: hidden; }
.sj-snapwin-row { display: grid; gap: 4px 12px; align-items: center; padding: 7px 10px; }
.sj-snapwin-table.has-link .sj-snapwin-row { grid-template-columns: minmax(180px, 1fr) 140px 130px 80px 290px; }
.sj-snapwin-table.no-link .sj-snapwin-row { grid-template-columns: minmax(180px, 1fr) 140px 130px 290px; }
.sj-snapwin-row:not(.sj-snapwin-th):nth-child(odd) { background: color-mix(in srgb, var(--sj-tool) 6%, transparent); }
.sj-snapwin-row.viewing { box-shadow: inset 3px 0 0 var(--sj-tool); }
.sj-snapwin-th { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sjb-dim); padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--sjb-line); }
.sj-snapwin-th > span { display: inline-flex; align-items: center; gap: 4px; }
.sj-snapwin-namecell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sj-snapwin .sj-snapwin-name { width: 100%; font-weight: 600; border-color: transparent; background: transparent; padding-left: 4px; }
.sj-snapwin .sj-snapwin-name:hover, .sj-snapwin .sj-snapwin-name:focus { border-color: var(--sjb-line); background: var(--sjb-card); }
.sj-snapwin-namecell small { padding-left: 5px; font-size: 11px; }
.sj-snapwin-tag { color: var(--sj-tool); font-weight: 600; }
.sj-snapwin-when { display: flex; flex-direction: column; line-height: 1.25; }
.sj-snapwin-when small { color: var(--sjb-dim); font-size: 11px; }
.sj-snapwin-link, .sj-snapwin-actions { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.sj-snapwin-actions { justify-content: flex-end; }
.sj-snapwin-sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 0 2px 4px; }
.sj-snapwin-sec > .sj-snapwin-sub { padding-left: 0; }
.sj-snapwin-sub small { font-size: 11px; }
.sj-snapwin-more { position: relative; display: inline-flex; }
.sj-snapwin .sj-snapwin-more > button { padding: 4px 6px; }
.sj-snapwin-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 190px; padding: 5px; border-radius: 10px; background: var(--sjb-card);
  border: 1px solid var(--sjb-line); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22); display: grid; gap: 2px; }
.sj-snapwin .sj-snapwin-menu button { border-color: transparent; justify-content: flex-start; width: 100%; }
.sj-snapwin .sj-snapwin-menu button:hover { background: color-mix(in srgb, var(--sj-tool) 10%, transparent); }
.sj-snapwin .sj-snapwin-del { color: #dc2626; }
.sj-snapwin-local { display: grid; gap: 6px; margin-top: 4px; }
.sj-snapwin-empty { display: grid; gap: 8px; justify-items: start; }
.sj-snapwin-empty p { margin: 0; }
.sj-snapwin-foot { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--sjb-dim); font-size: 11.5px; }
.sj-snapwin-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.sj-snapwin-msg { color: var(--sjb-dim); margin: 0; }
@media (max-width: 760px) {
  .sj-snapwin-scrim { padding: 10px; }
  .sj-snapwin { max-height: calc(100vh - 20px); padding: 14px; }
  .sj-snapwin-table.has-link .sj-snapwin-row, .sj-snapwin-table.no-link .sj-snapwin-row { grid-template-columns: 1fr auto; }
  .sj-snapwin-th { display: none; }
  .sj-snapwin-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---- hover tips (tip.tsx): (i) + short text + "Learn more" into the docs ---- */
.sj-tip { display: inline-flex; vertical-align: middle; }
.sj-tip-mark { display: inline-flex; color: var(--sjb-dim, #888); cursor: help; border-radius: 50%; }
.sj-tip-mark:hover, .sj-tip-mark:focus-visible { color: var(--sjb-fg, inherit); outline: none; }
.sj-tip-pop { position: fixed; z-index: 1000; padding: 8px 10px; border-radius: 9px; font: 400 12px/1.4 system-ui, sans-serif; letter-spacing: 0; text-transform: none;
  background: #1f2430; color: #f1f3f7; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.sj-tip-pop.up { transform: translateY(-100%); }
.sj-tip-pop a { color: #93c5fd; font-weight: 600; white-space: nowrap; }

/* ---- the squiggle (squiggle.tsx): connection line in the beta pill + flow loader ---- */
.sj-sq { display: inline-flex; align-items: center; line-height: 0; }
.sj-sq path, .sj-flow path { fill: none; stroke-linecap: round; }
.sj-sq path { stroke-width: 8; }
.sj-sq-busy .sj-sq-base { opacity: 0.4; }
.sj-sq-busy .sj-sq-run { stroke: currentColor; stroke-dasharray: 24 100; animation: sj-sq-run 1.1s linear infinite; }
@keyframes sj-sq-run { from { stroke-dashoffset: 24; } to { stroke-dashoffset: -100; } }
/* Not connected: red, swaying slowly back and forth — retrying, not working. */
.sj-sq-off .sj-sq-base, .sj-sq-err .sj-sq-base { stroke: #ef4444; opacity: 0.28; }
.sj-sq-off .sj-sq-run, .sj-sq-err .sj-sq-run { stroke: #ef4444; stroke-dasharray: 30 100; animation: sj-sq-sway 3.2s ease-in-out infinite alternate; }
@keyframes sj-sq-sway { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -70; } }
.sj-flow { display: grid; justify-items: center; gap: 10px; font-size: 13px; color: var(--sjb-dim); }
.sj-flow-track { stroke: var(--sjb-line); stroke-width: 5; }
.sj-flow-draw { stroke-width: 5; stroke-dasharray: 100; animation: sj-flow-draw 1.7s ease-in-out infinite; }
@keyframes sj-flow-draw { 0% { stroke-dashoffset: 100; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
.sj-flow-overlay { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; pointer-events: none;
  background: color-mix(in srgb, var(--sjb-bg) 55%, transparent); }
.sj-flow-overlay .sj-flow { background: var(--sjb-card); border: 1px solid var(--sjb-line); border-radius: 14px; padding: 22px 28px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.sj-gone-busy .sj-flow { margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .sj-sq-run, .sj-flow-draw { animation: none !important; } .sj-flow-draw { stroke-dasharray: none; } }
/* ---- export tiers (exporttier.ts, EXPORTS.md §6) ---- */
/* While the visitor can't take this as data (a share link, a snapshot, a project viewer),
   the data views a tool marks .sj-data aren't selectable. Friction, not a lock. */
html.sj-shared .sj-data, html.sj-shared .sj-data * { -webkit-user-select: none; user-select: none; }
html.sj-shared .sj-data input, html.sj-shared .sj-data textarea { -webkit-user-select: none; user-select: none; }
/* The note atop an Export ▾ while some items are off, and a disabled item's hint. */
.sj-export-note { display: block; max-width: 300px; white-space: normal; }
.sj-export-note a { color: inherit; font-weight: 600; text-decoration: underline; }
.sj-export-hint { display: block; opacity: 0.8; white-space: normal; }
