/* 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 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); }
.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; }

/* ---- 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); }

/* ---- the persistent bottom strip (PlatformFooter) ------------------------ */

html.sj-footed body { box-sizing: border-box; padding-bottom: 38px !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; }

/* ---- 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-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; }

/* ---- 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; }

/* ---- LinkGone — the one "link turned off" page (linkgone.tsx) ------------
   The home page's backdrop (apps/www .bg-art: 44px 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 / 44px 44px,
    linear-gradient(90deg, var(--sj-gone-grid) 1px, transparent 1px) 0 0 / 44px 44px;
  /* 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 / 44px 44px,
    linear-gradient(90deg, var(--sj-gone-lit) 1px, transparent 1px) 0 0 / 44px 44px;
  -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; }
.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-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;
}

/* ---- 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; }
}
