/* The Architecture jam's canvas inside the Agreements page (17 November 2026). It wears the map's stage (style.css: .ax-stage,
   .ax-viewport, .ax-zoom, .ax-minimap, .ax-dock, .ax-results) and the panel's colours and type, so only the boxes are its own. */
.jam {
  --ax-rail: 0px;
  --jam-scope-ink: #422565;
  --jam-scope-muted: #684d84;
  --jam-scope-accent: #7549b2;
  --jam-scope-edge: #b59cdb;
  --jam-scope-light: #f3eafb;
}
.jam-bar .ax-crumbs { flex-shrink: 0; }
.jam-bar .ax-crumbs i { font-style: normal; }
/* The search starts narrower than the map's, so the bar's buttons, Quiz among them (AGENTIC-253), keep it to one line down to
   about 1100px; it still grows to its widest wherever there is room. */
.jam-bar .ax-search { flex-basis: 170px; max-width: 560px; }
.jam-read-filter { min-height: 40px; cursor: pointer; }
.jam-reading-list { margin: 12px 0 0; padding: 0; list-style: none; }
.jam-reading-list button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.jam-reading-list button:hover, .jam-reading-list button:focus-visible { background: var(--blue-pale); }
.jam-reading-list strong { overflow-wrap: anywhere; }
.jam-reading-list small { flex: none; color: var(--muted-strong); }
.jam-comments-toggle b { display: inline-block; min-width: 18px; margin-left: 2px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font: 700 10.5px/18px var(--mono); text-align: center; }
.jam-mentions-toggle b { color: var(--blue-dark); background: var(--blue-pale); }
html[data-theme="dark"] .ax-bar.jam-bar { color: var(--ink); background: var(--paper); border-color: var(--line); }
.jam-comments-toggle[aria-pressed="true"] { color: var(--blue-dark); border-color: #b9cdf0; background: var(--blue-pale); }
.jam-decisions-toggle b { background: var(--nav); }
.jam-mobile-views, .jam-mobile-outline, .jam-mobile-nav, .jam-doc-more { display: none; }
/* View only, or editing (AGENTIC-254, JAM_MODES in jam.js). Edit is the bar's one primary button and reads Done while the canvas is
   edited, which wears a blue frame and a blue line at its foot. A view-only canvas shows a pointer over what a click opens, never the
   hand that picks a box up. */
.jam-mode, .jam-edit-on { flex: none; }
.jam-mode svg, .jam-edit-on svg { flex: none; }
.jam.is-editing .jam-viewport { box-shadow: inset 0 0 0 2px var(--blue); }
.jam.is-editing .jam-legend .jam-hint { color: var(--blue-dark); font-weight: 600; }
.jam:not(.is-editing) .jam-viewport:not(.is-dragging, .is-panning) :is(.jam-box, .jam-note, .jam-pill, .jam-title, .jam-lane > .jam-head, .jam-group > .jam-head) { cursor: pointer; }

.jam-viewport { inset: 0; }
.jam-viewport.is-panning { cursor: grab; }
.jam-viewport.is-panning .jam-item, .jam-viewport.is-panning .jam-head { cursor: grab; }
.jam-viewport.is-dragging, .jam-viewport.is-dragging .jam-item, .jam-viewport.is-dragging .jam-head { cursor: grabbing; }
.jam-world { --jam-ik: 1; --jam-lk: 1; }
.jam-empty { position: absolute; inset: 38% 0 auto; margin: 0; padding: 0 24px; text-align: center; pointer-events: none; }
.jam-guides { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.jam-guides i { position: absolute; background: var(--blue); box-shadow: 0 0 0 .5px rgb(255 255 255 / 70%); }
.jam-marquee { position: absolute; z-index: 1; border: 1px solid var(--blue); border-radius: 3px; background: rgb(50 104 220 / 9%); pointer-events: none; }

/* A box. Its tone sets the accent, the tint of a layer and the dark colour of its name. These are the first canvas's colours, put back
   after the paler ones that came with the embedding (Praful, 17 November 2026: "why do the colors look so dull and faded"). */
.jam-item { --t: #64748b; --tint: #eef1f5; --name: #334155; --edge: color-mix(in srgb, var(--t) 28%, transparent); position: absolute; color: var(--ink); }
.jam-t-play { --t: #7c3aed; --tint: #f3eefe; --name: #4c1d95; }
.jam-t-verify { --t: #0d9488; --tint: #e6f6f4; --name: #115e59; }
.jam-t-money { --t: #d97706; --tint: #fdf2e0; --name: #92400e; }
.jam-t-apps { --t: #db2777; --tint: #fdedf5; --name: #9d174d; }
.jam-t-rules { --t: #2563eb; --tint: #e8f0ff; --name: #1e3a8a; }
.jam-t-shared { --t: #64748b; --tint: #edf0f5; --name: #334155; }
.jam-t-core { --t: #3b82f6; --tint: #0f1f3d; --name: #fff; --edge: #0f1f3d; }
.jam-t-parked { --t: #94a3b8; --tint: #f1f3f6; --name: #64748b; }
.jam-head { display: block; min-width: 0; }
.jam-head strong, .jam-head span { display: block; }
.jam-item.is-dim { opacity: .28; }
.jam-item:is(.jam-lane, .jam-group).is-dim { opacity: 1; }
.jam-item:is(.jam-lane, .jam-group).is-dim > .jam-head { opacity: .28; }
.jam-item.is-remote { transition: left .38s cubic-bezier(.2, .8, .2, 1), top .38s cubic-bezier(.2, .8, .2, 1); }
.jam-item.is-remote:not(.jam-lane, .jam-group) { animation: jam-arrive .9s ease-out; }
@keyframes jam-arrive { 0%, 55% { box-shadow: 0 0 0 4px rgb(50 104 220 / 30%), 0 8px 22px rgb(20 42 68 / 12%); } 100% { box-shadow: 0 0 0 0 rgb(50 104 220 / 0%); } }

.jam-lane { z-index: 1; border-radius: 20px; border: 1.5px solid var(--edge); background: var(--tint); }
.jam-lane > .jam-head { padding: 15px 22px 0; cursor: grab; }
.jam-lane > .jam-head strong { font: 800 calc(22px * var(--jam-lk))/1.2 Manrope, sans-serif; letter-spacing: -.03em; color: var(--name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-lane > .jam-head span { margin-top: 3px; max-width: 150ch; color: color-mix(in srgb, var(--name) 74%, transparent); font-size: 12.5px; line-height: 1.42; }
.jam-world.is-far .jam-lane > .jam-head span { display: none; }
.jam-lane.jam-t-core { box-shadow: none; }
.jam-lane.jam-t-core > .jam-head span { color: #a9b8d8; }
.jam-lane.jam-t-parked { border-style: dashed; }
.jam-lane.is-selected, .jam-group.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(50 104 220 / 16%); }

/* The scope frame surrounds the pillar and can rise behind the journey above it. */
.jam-lane.has-scope { isolation: isolate; }
.jam-lane.has-scope::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(-1 * var(--jam-scope-rise, 0px) - 8px) -6px -5px;
  border: 2px solid var(--jam-scope-edge); border-radius: 25px;
  background: linear-gradient(180deg, #eee3fe 0, #f4ebff var(--jam-scope-rise, 0px), transparent calc(var(--jam-scope-rise, 0px) + 18px));
  box-shadow: 0 0 0 3px rgb(117 73 178 / 13%);
}
.jam-lane.has-scope > .jam-head { max-width: var(--jam-scope-header-width, 100%); }

.jam-group { z-index: 2; border-radius: 13px; border: 1px solid rgb(16 32 62 / 9%); background: rgb(255 255 255 / 62%); }
.jam-group > .jam-head { padding: 10px 14px 0; cursor: grab; }
.jam-group > .jam-head strong { font: 800 10.5px/1.35 Manrope, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: color-mix(in srgb, var(--name) 82%, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-group > .jam-head span { margin-top: 1px; color: #5a6a80; font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-group.jam-t-core { background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 16%); }
.jam-group.jam-t-core > .jam-head strong { color: #c6d3ee; }
.jam-group.jam-t-core > .jam-head span { color: #91a2c6; }

.jam-box, .jam-note, .jam-pill, .jam-title { z-index: 3; cursor: grab; user-select: none; -webkit-user-select: none; }
.jam-box { padding: 8px 11px 8px 16px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: inset 5px 0 0 var(--t), 0 1px 2px rgb(16 32 62 / 6%), 0 6px 14px -8px rgb(16 32 62 / 18%); transition: border-color .15s, box-shadow .15s; }
.jam-box .jam-head strong { font: 700 13px/1.28 Manrope, sans-serif; letter-spacing: -.015em; color: #10203e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-box .jam-head span { margin-top: 2px; color: #5a6a80; font-size: 11px; line-height: 1.36; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jam-box:hover { border-color: color-mix(in srgb, var(--t) 55%, #e1e7ef); box-shadow: inset 5px 0 0 var(--t), 0 8px 20px -6px rgb(16 32 62 / 22%); }
.jam-box.is-selected { border-color: var(--blue); box-shadow: inset 5px 0 0 var(--t), 0 0 0 3px rgb(50 104 220 / 22%), 0 8px 22px rgb(16 32 62 / 14%); }

/* Current work sits inside the feature card so activity on adjacent cards stays distinct at every zoom. */
.jam-box:has(> .jam-activity) { padding-top: 5px; }
.jam-box:has(> .jam-activity) .jam-head span { line-height: 1.18; -webkit-line-clamp: 1; }
.jam-box:has(> .jam-activity) > .jam-marks { bottom: 24px; }
.jam-activity { position: absolute; left: 15px; right: 7px; bottom: 4px; display: flex; align-items: center; gap: 4px; }
.jam-box.is-selected:has(> .jam-link) > .jam-activity { right: calc(8px + 22px * min(var(--jam-ik), 2)); }
.jam-activity-chip { display: block; min-width: 0; padding: 0 5px; overflow: hidden; border: 1px solid transparent; border-radius: 5px;
  background: #eef2f8; color: #374b64; font: 750 10.5px/14px "DM Sans", sans-serif; font-variant-numeric: tabular-nums; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.jam-activity-chip.is-running { background: #2058bc; color: #fff; }
.jam-activity-chip:is(.is-research, .is-open) { border-color: #c2d8eb; background: #e8f2ff; color: #19467b; }
.jam-activity-chip.is-queued { border-color: #e0d7bd; background: #f7f1e2; color: #624a17; }
.jam-activity-chip:is(a, button) { cursor: pointer; }
.jam-activity-chip:is(a, button):hover { box-shadow: inset 0 0 0 1px currentColor; }
.jam-activity-chip:focus-visible { outline: 2px solid #2058bc; outline-offset: 1px; }

.jam-review-pin { display: inline-grid; place-items: center; min-width: 34px; min-height: 24px; padding: 0 5px;
  border-radius: 8px; background: #ba2038; color: #fff; font: 800 17px/1.2 "DM Sans", sans-serif;
  font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
a.jam-review-pin:hover { background: #94172a; color: #fff; }
a.jam-review-pin:focus-visible { outline: 2px solid #94172a; outline-offset: 2px; }
.jam-box:has(> .jam-review-pin) { --jam-review-scale: min(var(--jam-ik), 2); --jam-review-space: calc(38px * var(--jam-review-scale)); }
.jam-box > .jam-review-pin { position: absolute; z-index: 2; top: 5px; right: 6px; transform: scale(var(--jam-review-scale)); transform-origin: 100% 0; }
.jam-box:has(> .jam-review-pin) .jam-head { padding-right: var(--jam-review-space); }
.jam-box:has(> .jam-review-pin) > .jam-tag { right: calc(7px + var(--jam-review-space)); }
.jam-world.is-far .jam-box:has(> .jam-review-pin) > .jam-activity { right: calc(7px + var(--jam-review-space)); }

.jam-note { padding: 10px 12px; border: 1px solid #ecd97a; border-radius: 4px 16px 4px 4px; background: #fff3b8; overflow: hidden; box-shadow: 0 1px 2px rgb(92 74 0 / 10%), 0 8px 16px -10px rgb(92 74 0 / 35%); transition: border-color .15s, box-shadow .15s; }
.jam-note .jam-head strong { font: 750 12.5px/1.3 Manrope, sans-serif; letter-spacing: -.015em; color: #5c4a00; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jam-note .jam-head span { margin-top: 4px; color: #6b5a12; font-size: 11px; line-height: 1.38; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.jam-note:hover { border-color: #d9bf45; box-shadow: 0 2px 4px rgb(92 74 0 / 12%), 0 12px 22px -10px rgb(92 74 0 / 45%); }
.jam-note.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(50 104 220 / 22%), 0 8px 22px rgb(92 74 0 / 18%); }

.jam-note.is-scope {
  display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 18px;
  padding: 7px 12px 7px 16px; border: 1px solid #d8c5ee; border-radius: 12px;
  background: linear-gradient(105deg, var(--jam-scope-light), #fdfaff 46%, #fff 90%);
  box-shadow: inset 3px 0 0 var(--jam-scope-accent), 0 2px 7px rgb(73 40 112 / 8%);
}
.jam-note.is-scope:hover { border-color: var(--jam-scope-edge); }
.jam-note.is-scope.is-selected {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--jam-scope-accent), 0 0 0 3px rgb(50 104 220 / 22%);
}
.jam-scope-heading { display: grid; gap: 2px; white-space: nowrap; }
.jam-scope-heading strong { color: var(--jam-scope-ink); font: 800 19px/1.08 Manrope, sans-serif; letter-spacing: -.035em; }
.jam-scope-heading small { color: var(--jam-scope-muted); font: 650 11px/1.25 "DM Sans", sans-serif; }
.jam-scope-items { display: flex; min-width: 0; list-style: none; margin: 0; padding: 0; }
.jam-scope-items li {
  position: relative; padding: 3px 15px 3px 16px; min-width: 0;
  color: var(--jam-scope-ink); font: 680 13px/1.36 "DM Sans", sans-serif;
}
.jam-scope-items li::before {
  content: ''; position: absolute; inset: 8px auto auto 2px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--jam-scope-accent); box-shadow: 0 0 0 2px #e4d5f5;
}
.jam-note.is-scope .jam-scope-items li { flex: 1 1 auto; }
.jam-note.is-scope .jam-scope-items li + li { border-inline-start: 1px solid #e3d6f3; margin-inline-start: 1px; padding-inline-start: 21px; }
.jam-note.is-scope .jam-scope-items li + li::before { inset-inline-start: 7px; }
.jam-scope-items li.has-document { display: flex; padding: 0 8px; }
.jam-scope-items li.has-document::before { display: none; }
.jam-note.is-scope .jam-scope-items li.has-document + li.has-document { padding-inline-start: 8px; }
.jam-scope-scenario {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px;
  padding: 4px 8px; border: 1px solid transparent; border-radius: 7px;
  color: var(--jam-scope-ink); line-height: 1.2; text-decoration: underline; text-underline-offset: .18em;
}
.jam-scope-scenario-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jam-scope-scenario [aria-hidden] { flex: none; color: var(--jam-scope-accent); font-size: 1.12em; }
.jam-scope-scenario:hover { border-color: #dbc8f0; background: var(--jam-scope-light); color: var(--jam-scope-ink); }
.jam-scope-scenario:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.jam-scope-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px;
  padding: 5px 10px; border: 1px solid #d8c5ee; border-radius: 7px;
  background: #fff; color: var(--jam-scope-ink); font: 750 11.5px/1.2 "DM Sans", sans-serif;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.jam-scope-action:hover { background: var(--jam-scope-light); color: var(--jam-scope-ink); }
.jam-scope-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.jam-scope-action span { color: var(--jam-scope-accent); font-size: 1.1em; }
.jam-world.is-far .jam-note.is-scope:not(:has(.jam-scope-scenario)) { grid-template-columns: repeat(2, max-content); }
.jam-world.is-far .jam-note.is-scope :is(.jam-scope-items:not(:has(.jam-scope-scenario)), .jam-scope-heading small) { display: none; }
.jam-world.is-far .jam-scope-heading strong { font-size: min(38px, calc(20px * var(--jam-lk))); }
.jam-world.is-far .jam-scope-scenario { padding-block: 2px; font-size: min(17px, calc(13px * var(--jam-lk))); line-height: 1.1; }
.jam-world.is-far .jam-note.is-scope .jam-scope-action { min-height: 40px; font-size: min(22px, calc(12px * var(--jam-lk))); }

.jam-pill { display: flex; align-items: center; justify-content: center; padding: 0 16px; border: 0; border-radius: 999px; background: var(--t); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--t) 80%, #000); transition: box-shadow .15s, filter .15s; }
.jam-pill .jam-head { display: flex; align-items: center; }
.jam-pill .jam-head strong { font: 750 12.5px/1.2 Manrope, sans-serif; letter-spacing: -.01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-pill .jam-head span { display: none; }
.jam-pill:hover { filter: brightness(1.08); }
.jam-pill.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgb(50 104 220 / 60%); }

.jam-title .jam-head strong { font: 800 calc(30px * var(--jam-lk))/1.1 Manrope, sans-serif; letter-spacing: -.035em; color: #10203e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-title .jam-head span { margin-top: 6px; max-width: 110ch; color: #5a6a80; font-size: 13px; line-height: 1.42; }
.jam-world.is-far .jam-title .jam-head span { display: none; }
.jam-title.is-selected { border-radius: 8px; box-shadow: 0 0 0 3px rgb(50 104 220 / 16%); }
.jam-item.is-drag { z-index: 6; box-shadow: 0 18px 40px rgb(20 42 68 / 24%) !important; transition: none; }
.jam-lane.is-drag, .jam-group.is-drag { z-index: auto; box-shadow: 0 0 0 2px rgb(50 104 220 / 45%) !important; }

.jam-tag { font-style: normal; padding: 1px 6px; border-radius: 6px; background: #eef2f8; color: #475569; font: 800 9.5px/1.45 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.jam-item > .jam-tag { position: absolute; right: 7px; top: 7px; }
.jam-box:has(> .jam-tag) .jam-head strong { padding-right: 46px; }
.jam-tag-new { background: #dcfce7; color: #166534; }
.jam-tag-open { background: #fef3c7; color: #92400e; }
.jam-tag-moved { background: #dbeafe; color: #1e40af; }
.jam-tag-split { background: #ede9fe; color: #5b21b6; }
/* How many comments wait on a box: it keeps its size on screen however far the canvas is zoomed out. */
.jam-pin { position: absolute; z-index: 5; left: calc(100% - 11px); bottom: calc(100% - 9px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px 10px 10px 3px; background: #f97316; color: #fff; font: 700 11px/20px var(--mono); text-align: center;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgb(194 65 12 / 35%); transform: scale(var(--jam-ik)); transform-origin: 0 100%; cursor: pointer; }
/* On a layer or a group it sits inside the corner, clear of the neighbour. */
.jam-lane > .jam-pin, .jam-group > .jam-pin { left: auto; bottom: auto; right: 14px; top: 12px; transform-origin: 100% 0; }
.jam-box:has(> .jam-pin), .jam-note:has(> .jam-pin) { overflow: visible; }
.jam-box-questions { list-style: none; padding: 0; margin: 0; }
.jam-box-questions li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.jam-box-questions li.is-lit { padding-inline: 12px; background: var(--paper-soft); }
.jam-box-questions p { margin: 4px 0; }
.jam-question-editor { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; }
/* A box's link button, on the box a person has selected: it keeps its size on screen until the box itself is too small to hold it. */
.jam-link { position: absolute; z-index: 4; right: 5px; bottom: 5px; display: none; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid #cfdaea; border-radius: 7px; background: #fff; color: var(--blue);
  box-shadow: 0 2px 6px rgb(16 32 62 / 16%); transform: scale(min(var(--jam-ik), 2)); transform-origin: 100% 100%; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.jam-item.is-selected > .jam-link { display: grid; }
.jam-link:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.jam-viewport.is-dragging .jam-link { display: none; }

.jam-results { top: 8px; max-height: min(72dvh, 640px, calc(100% - 24px)); padding: 0; overflow: hidden auto; border-radius: 14px; box-shadow: 0 18px 48px rgb(16 36 62 / 18%), 0 2px 6px rgb(16 36 62 / 8%); }
/* The search's results (Praful, 18 November 2026: "make htis a sota search experience"): rows grouped by what they are, the words found
   marked, the row the keys are on lit, and the keys said at the foot. */
.jam-results > p.jam-find-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 11px 16px 9px; border-bottom: 1px solid #edf1f5; background: rgb(255 255 255 / 96%); backdrop-filter: blur(8px); color: #52697f; font-size: 12px; }
.jam-find-head b { color: #1b3550; font-weight: 650; }
.jam-find-head small { margin-left: auto; color: #8195a8; font-size: 11px; }
.jam-find-list { padding: 4px 6px 6px; }
.jam-find-g { display: flex; align-items: baseline; gap: 8px; margin: 8px 10px 4px; color: #7a8ea1; font: 600 10px/1.4 "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.jam-find-g small { color: #9aabbb; font-weight: 500; letter-spacing: 0; text-transform: none; }
.jam-results button.jam-find-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.jam-results button.jam-find-row:hover, .jam-results button.jam-find-row.is-active { background: #eef4fd; }
.jam-results button.jam-find-row.is-active { box-shadow: inset 3px 0 0 var(--blue); }
.jam-find-kind { padding-top: 2px; color: #7a8ea1; font: 600 9.5px/1.5 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-find-main { display: grid; gap: 2px; min-width: 0; }
.jam-results .jam-find-main strong { color: #1b3550; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jam-results .jam-find-main small { color: #6c7f93; font: 400 11px/1.4 "DM Sans", sans-serif; text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jam-results .jam-find-main em { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 1px 0 0; color: #3f566c; font: 400 12px/1.45 "DM Sans", sans-serif; font-style: normal; overflow: hidden; }
.jam-find-main mark { padding: 0 1px; border-radius: 3px; background: #ffe58a; color: #1b2a3a; font-weight: 600; }
.jam-find-n { align-self: center; padding: 2px 7px; border-radius: 999px; background: #eef2f7; color: #52697f; font: 600 10.5px/1.4 var(--mono); }
.jam-find-none { margin: 0; padding: 18px 16px 20px; color: #52697f; font-size: 13px; }
.jam-find-keys { position: sticky; bottom: 0; display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 16px; border-top: 1px solid #edf1f5; background: rgb(250 252 254 / 96%); color: #8195a8; font-size: 11px; }
.jam-find-keys kbd { min-width: 18px; padding: 1px 5px; border: 1px solid #d8e1ea; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: #405870; font: 600 10.5px/1.4 var(--mono); text-align: center; }
.jam-find-keys kbd + kbd { margin-left: -2px; }
.jam-find-keys kbd:not(:first-child):not(kbd + kbd) { margin-left: 8px; }
/* The search's words in an open doc, and the bar that steps through them. */
mark.jam-find { padding: 0 1px; border-radius: 3px; background: #fff0a8; color: inherit; box-shadow: 0 0 0 1px #f2d65c inset; }
mark.jam-find.is-current { background: #ffc94a; box-shadow: 0 0 0 2px #e2a20f; }
.jam-findbar { position: absolute; z-index: 30; top: 82px; right: 28px; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border: 1px solid #dbe3ec; border-radius: 12px; background: rgb(255 255 255 / 97%); box-shadow: 0 10px 30px rgb(16 36 62 / 16%); color: #405870; font-size: 12.5px; }
.jam-findbar[hidden] { display: none; }
.jam-findbar span { margin-right: 6px; white-space: nowrap; }
.jam-findbar b { color: #1b3550; }
.jam-findbar q { color: #1b3550; font-weight: 600; quotes: '“' '”'; }
.jam-findbar button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #405870; font-size: 15px; cursor: pointer; }
.jam-findbar button:hover:not(:disabled) { background: #eef4fd; color: var(--blue); }
.jam-findbar button:disabled { opacity: .4; cursor: default; }
.jam-c.is-lit { box-shadow: 0 0 0 2px #ffc94a; border-radius: 10px; }
.jam-legend { left: 68px; bottom: 16px; gap: 12px; padding: 7px 12px; border: 1px solid #dfe6ed; border-radius: 10px; background: rgb(255 255 255 / 88%); backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgb(20 42 68 / 8%); pointer-events: none; }
.jam-legend [data-jam-status] { color: #52697f; font-weight: 600; }
.jam-legend [data-jam-status]:empty { display: none; }
.jam-legend [data-jam-status].is-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgb(24 128 92 / 16%); }
.jam-legend [data-jam-status].is-error { color: var(--down); }
.jam-legend .jam-hint { color: #7a8ea1; }
.jam-minimap { cursor: pointer; touch-action: none; }
.jam-minimap .jam-mini-lane { fill: #e3e8ef; stroke: #c5cfdb; stroke-width: 6; }
.jam-minimap .jam-mini-lane.jam-t-play { fill: #e4d9fb; stroke: #c9b5f5; }
.jam-minimap .jam-mini-lane.jam-t-verify { fill: #cdeee9; stroke: #9ed8cf; }
.jam-minimap .jam-mini-lane.jam-t-money { fill: #fbe3bd; stroke: #efc57f; }
.jam-minimap .jam-mini-lane.jam-t-apps { fill: #fbd9ea; stroke: #f3a9cb; }
.jam-minimap .jam-mini-lane.jam-t-rules { fill: #d5e3ff; stroke: #a9c3f7; }
.jam-minimap .jam-mini-lane.jam-t-core { fill: #0f1f3d; stroke: #0f1f3d; }
.jam-minimap .jam-mini-box { fill: rgb(255 255 255 / 85%); stroke: #c3d0de; stroke-width: 4; }
.jam-minimap .jam-mini-note { fill: #f3d24e; }
.jam-toast { position: absolute; left: 50%; bottom: 22px; z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 320px)); padding: 9px 14px; border-radius: 10px; background: var(--nav); color: #fff; font-size: 12.5px; line-height: 1.4; box-shadow: 0 12px 32px rgb(20 42 68 / 28%); animation: jam-toast .18s ease-out; }
.jam-toast[hidden] { display: none; }
.jam-toast.is-error { background: #8f2f35; }
.jam-toast button { flex: none; border: 0; padding: 3px 9px; border-radius: 6px; background: rgb(255 255 255 / 14%); color: #fff; font: 650 12px "DM Sans", sans-serif; cursor: pointer; }
.jam-toast button:hover { background: rgb(255 255 255 / 24%); }
@keyframes jam-toast { from { opacity: 0; transform: translate(-50%, 6px); } }

/* The side panel: the map's dock with every comment on the canvas. */
.jam-dock { width: min(420px, calc(100% - 24px)); display: block; }
/* It is a list, and a list never covers the canvas it points at: at most half of it and 640px, whatever width was remembered. Below
   761px the panel is the sheet along the bottom, as wide as the page. */
@media (min-width: 761px) { .jam-dock { max-width: min(50%, 640px); } }
.jam-dock[hidden] { display: none; }
.jam-dock .overline { display: flex; align-items: center; gap: 8px; padding-right: 34px; }
.jam-dock-title { margin: 6px 0 0; padding-right: 30px; font: 800 20px/1.25 Manrope, sans-serif; letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.jam-dock-sub { margin: 6px 0 0; color: var(--muted-strong); font-size: 13.5px; line-height: 1.5; }
.jam-dock-from { margin: 10px 0 0; color: var(--muted-strong); font-size: 12.5px; line-height: 1.5; }
.jam-dock-from span { margin-right: 8px; color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.jam-dock-actions { display: flex; gap: 8px; margin: 14px 0 0; }
.jam-dock-actions .jam-copy { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.jam-dock-h { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); font: 700 13px Manrope, sans-serif; letter-spacing: -.01em; color: var(--ink); }
.jam-dock-h span { color: var(--muted); font: 500 11px "DM Sans", sans-serif; letter-spacing: 0; }
.jam-filter { display: inline-flex; gap: 2px; margin: 14px 0 12px; padding: 3px; border-radius: 9px; background: #eef2f6; }
.jam-filter button { display: inline-flex; align-items: baseline; gap: 6px; border: 0; padding: 6px 12px; border-radius: 7px; background: none; color: #52697f; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.jam-filter button small { font: 500 10.5px var(--mono); color: var(--muted); }
.jam-filter button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(20 42 68 / 10%); }
.jam-thread { display: grid; gap: 4px; }
.jam-none { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.jam-c { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 8px; margin: 0 -8px; border-radius: 9px; }
.jam-c:hover { background: var(--paper-soft); }
.jam-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #7c94b2; color: #fff; font: 700 12px Manrope, sans-serif; }
.jam-p-adi { background: #3268dc; } .jam-p-praful { background: #dd7a2b; } .jam-p-tabitha { background: #18805c; } .jam-p-anand { background: #6a51c9; } .jam-p-dbot { background: var(--nav); }
.jam-c header { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.jam-c header b { color: var(--ink); font-size: 13px; font-weight: 650; }
.jam-c header time { color: var(--muted); font-size: 11.5px; }
.jam-c header button { margin-left: auto; border: 0; padding: 2px 6px; border-radius: 5px; background: none; color: var(--blue-dark); font-size: 11.5px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .12s; }
.jam-c:hover header button, .jam-c header button:focus-visible, .jam-c.is-done header button { opacity: 1; }
.jam-c header button:hover { background: var(--blue-pale); }
.jam-c p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.jam-c.is-done .jam-avatar { opacity: .45; }
.jam-c.is-done p { color: var(--muted); text-decoration: line-through; text-decoration-color: #c5d0db; }
.jam-c.is-researching p { color: var(--ink-soft); text-decoration: none; }
.jam-c.is-research a, .jam-research-brief summary { color: var(--blue-dark); }
.jam-research-brief { margin-top: 4px; }
.jam-research-brief summary { width: fit-content; max-width: 100%; font-size: 13px; font-weight: 650; cursor: pointer; }
.jam-research-brief[open] > p { margin-top: 6px; }
.jam-research-task-group { display: grid; gap: 3px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; }
.jam-research-task-group > .jam-c + .jam-c { border-top: 1px solid var(--line); }
.jam-c-box { display: block; max-width: 100%; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--blue-dark); font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jam-c-box:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.jam-c-box:disabled { color: var(--muted); cursor: default; }
.jam-compose { position: sticky; bottom: -28px; margin: 14px -8px -10px; padding: 10px 8px 14px; background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 14px); }
.jam-compose textarea { display: block; width: 100%; font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; min-height: 76px; padding: 10px 12px; border: 1px solid #d3dfe9; border-radius: 9px; background: #f3f6fa; color: var(--ink); font-size: 13.5px; line-height: 1.45; resize: vertical; }
.jam-compose textarea:focus { background: #fff; border-color: #6f93b8; outline: 2px solid #c8dbee; outline-offset: 0; }
.jam-compose div { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.jam-compose div span { color: var(--muted); font: 500 10.5px var(--mono); }
.jam-compose .jam-compose-buttons { display: inline-flex; gap: 6px; font: inherit; color: inherit; }
.jam-compose[data-jam-doc-actions] .jam-compose-row { flex-wrap: wrap; gap: 6px 10px; }
.jam-compose[data-jam-doc-actions] .jam-compose-buttons { flex-wrap: wrap; }
.jam-compose .jam-research-hint { margin: 7px 0 0; color: var(--muted-strong); font-size: 12px; line-height: 1.4; }
.jam-research-header { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.jam-research-header .jam-doc-by { margin: 0; }
.jam-term-review { display: grid; gap: 8px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.jam-term-review button { justify-self: start; }
.jam-term-change { display: grid; gap: 3px; }
.jam-term-change .jam-review-diff { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.jam-research-header .jam-part-h { margin: 0; }
.jam-research-browser.oq-browser { grid-template-columns: clamp(250px, 34%, 410px) minmax(0, 1fr); height: auto; min-height: 300px; overflow: visible; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.jam-research-browser > .oq-results { overflow: hidden; background: var(--paper-soft); border-radius: 11px 0 0 11px; }
.jam-research-browser .oq-list-body { max-height: 65dvh; }
.jam-research-browser .oq-results-head { padding: 12px; gap: 9px; border-top-left-radius: 11px; }
.jam-research-browser .oq-results-title { margin: 0; font-size: 15px; }
.jam-research-search { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font: inherit; font-size: 13px; }
.jam-research-filters { display: flex; gap: 5px; }
.jam-research-filters button { min-height: 36px; border: 1px solid transparent; border-radius: 6px; padding: 5px 9px; background: transparent; color: var(--muted-strong); font-size: 12px; font-weight: 700; cursor: pointer; }
.jam-research-filters button[aria-pressed="true"] { background: var(--blue-pale); color: var(--blue-dark); }
.jam-research-filters button span { margin-inline-start: 2px; font: 650 11px var(--mono); }
.jam-research-browser:has(.oq-row[data-jam-research-pending]) [data-jam-research-filter="review"],
.jam-research-filters [data-jam-research-filter="review"][aria-pressed="true"] {
  border-color: var(--jam-review-edge);
  background: var(--jam-review-wash);
  color: var(--jam-review-ink);
}
.jam-research-filters [data-jam-research-filter="review"][aria-pressed="true"] {
  background: var(--jam-review-action);
  color: var(--jam-review-action-ink);
}
.jam-research-detail.oq-detail { overflow: visible; padding: clamp(14px, 2vw, 26px); border-radius: 0 11px 11px 0; }
.jam-research-detail.is-index > .jam-none { max-width: 58ch; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-soft); }
.jam-research-detail > article > .jam-part-h { margin-top: 0; }
.jam-research-browser.oq-browser.is-reviewing { display: block; min-height: 0; border: 0; }
.jam-research-browser.is-reviewing > .jam-research-detail { padding-inline: 0; }
.jam-proposal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 30%); align-items: start; gap: clamp(12px, 2vw, 24px); margin-top: 12px; }
.jam-proposal-main, .jam-proposal-evidence { min-width: 0; overflow-wrap: anywhere; }
.jam-proposal-layout .jam-review.is-focused { margin-top: 0; }
.jam-proposal-layout .jam-review-footer { top: auto; bottom: 0; z-index: 3; margin-bottom: 0; padding: 10px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 -4px 16px rgb(0 0 0 / 8%); }
.jam-proposal-evidence, .jam-proposal-terms { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-soft); }
.jam-proposal-evidence h4, .jam-proposal-evidence h5 { margin: 0 0 6px; line-height: 1.35; }
.jam-proposal-evidence h5 { color: var(--muted-strong); font-size: 13px; }
.jam-proposal-evidence section { margin: 12px 0; }
.jam-proposal-evidence ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jam-proposal-evidence li > a { display: block; font-size: 13px; }
.jam-proposal-evidence li > a span { display: block; color: var(--ink); font-weight: 500; }
.jam-proposal-evidence > details { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.jam-proposal-evidence summary, .jam-proposal-terms summary { color: var(--blue-dark); font-size: 13px; font-weight: 700; cursor: pointer; }
.jam-proposal-evidence .jam-md { max-height: 60dvh; overflow: auto; }
.jam-proposal-terms { margin-top: 12px; }
.jam-proposal-comparison, .jam-review-alternatives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jam-proposal-comparison { margin-top: 8px; }
.jam-proposal-evidence-jump { display: none; }
.jam-proposal-comparison > div, .jam-review-alternative { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow-wrap: anywhere; }
@container (max-width: 780px) {
  .jam-proposal-layout { grid-template-columns: minmax(0, 1fr); }
  .jam-proposal-evidence-jump { display: inline-block; }
}
@container (max-width: 480px) {
  .jam-review-alternatives { grid-template-columns: minmax(0, 1fr); }
}
.jam-research-requester { margin: 8px 0 18px; color: var(--muted-strong); font-size: 13px; }
.jam-question-recovery { margin: 8px 0; padding: 8px 10px; border: 1px solid #e3c69c; border-inline-start-width: 2px; border-radius: 6px; background: #fffaf2; color: var(--ink); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.jam-question-recovery > p { margin: 3px 0 0; }
.jam-question-recovery > details { margin-top: 4px; }
.jam-question-recovery summary { width: fit-content; max-width: 100%; cursor: pointer; color: var(--blue-dark); }
.jam-research-browser .oq-row { gap: 4px; padding: 9px 12px; }
.jam-research-browser .oq-row[data-jam-research-pending] { border-inline-start-color: var(--jam-review-edge); background: var(--jam-review-row); }
.jam-research-browser .oq-row[data-jam-research-pending]:is(:hover, [aria-current]) { background: var(--jam-review-wash); }
.jam-research-browser .jam-research-review-flag { margin-inline-start: 0; }
.jam-research-browser .jam-none { padding: 8px 12px; font-size: 13px; }
@media (max-width: 830px) {
  .jam-research-browser.oq-browser { display: block; min-height: 0; }
  .jam-research-browser > .oq-results { border-right: 0; border-radius: 10px; }
  .jam-research-browser .oq-results-head { border-top-right-radius: 11px; }
  .jam-research-detail.oq-detail { border-radius: 11px; }
  .jam-research-browser.has-question > .oq-results { display: none; }
  .jam-research-browser .oq-list-body { max-height: none; }
  .jam-research-filters button { min-height: 44px; }
  .jam-research-detail.is-index > .jam-none { display: none; }
}
/* The Research tab's requests stand over its documents (AGENTIC-263); the documents have their own heading under them. */
.jam-research > .jam-stream { margin: 0 0 12px; }
.jam-research > .jam-stream :is(.jam-stream-h, .jam-none) { margin-block: 4px; }
.jam-research > .jam-stream .jam-resolved { margin-top: 4px; }
.jam-research-request-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 16px; }
.jam-research-request-summary > .jam-resolved[open] { flex-basis: 100%; min-width: 0; }
.jam-research .jam-research-docs-h { margin: 30px 0 12px; }
.jam-md .jam-research-list { list-style: none; margin: 0; padding: 0; max-width: none; border-top: 1px solid var(--line-soft); }
.jam-md .jam-research-list > li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.jam-research-record { display: flex; gap: 12px; align-items: baseline; min-width: 0; padding: 14px 8px; overflow-wrap: anywhere; }
.jam-research-record:hover { background: var(--paper-soft); }
.jam-research-record .jam-tag { flex: none; }
.jam-research-review-flag {
  flex: none; margin-inline-start: auto; padding: 2px 8px; border: 1px solid var(--jam-review-edge); border-radius: 6px;
  background: var(--jam-review-wash); color: var(--jam-review-ink); font-size: 11.5px; font-weight: 800; line-height: 1.35; white-space: nowrap;
}
.jam-research-list details > div { padding: 0 8px 14px; }
.jam-research article, .jam-research .jam-table { max-width: 100%; min-width: 0; }
.jam-research .jam-md :is(p, li, th, td, a) { overflow-wrap: anywhere; }
.jam-research .jam-md .jam-table :is(th, td) { white-space: normal; }
.jam-research .jam-md .jam-table :is(th, td):first-child { min-width: 0; }
.jam-research-run { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 12px 0 18px; font-size: 13px; line-height: 1.5; }
.jam-research-run-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.jam-research-run-actions > .button, .jam-research-direction-buttons > .button { min-height: 44px; border-radius: 8px; font-size: 14px; }
.jam-research-run-actions[hidden], .jam-research-run-actions > button[hidden], .jam-research-direction[hidden] { display: none; }
.jam-research-progress { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--blue-pale); color: var(--blue-dark); font-weight: 650; }
.jam-research-progress::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.jam-research-run-status { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--muted-strong); font-size: 13px; }
.jam-research-run-status:empty { display: none; }
.jam-research-run-status:has(.jam-research-progress):not(:has(.jam-research-conflict)) { order: -1; }
.jam-research-run-status .jam-task { margin: 0; padding: 0; border: 0; }
.jam-research-request .jam-task-row { min-height: 24px; padding: 0; }
/* A rerun's direction (AGENTIC-262): the original question in view, the person's own words, and each request saying which it uses. */
.jam-research-direction { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: #f8fafc; }
.jam-research-run .jam-research-question { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; max-width: none; margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.jam-research-question span, .jam-research-direction label, .jam-research-said > span { color: var(--muted-strong); font-size: 12px; font-weight: 600; }
.jam-research-question q { color: var(--ink); font-weight: 600; }
.jam-research-direction label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 6px; }
.jam-research-direction label small { color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.jam-research-direction textarea { display: block; width: 100%; min-height: 92px; padding: 10px 12px; border: 1px solid #d3dfe9; border-radius: 9px; background: #fff; color: var(--ink); font: 400 14px/1.5 "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; resize: vertical; }
.jam-research-direction textarea:focus { border-color: #6f93b8; outline: 2px solid #c8dbee; outline-offset: 0; }
.jam-research-run .jam-research-direction-hint { max-width: none; margin: 8px 0 12px; color: var(--muted-strong); font-size: 12.5px; line-height: 1.5; }
.jam-research-direction-buttons, .jam-research-run .jam-research-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.jam-research-request { display: flex; flex-direction: column; gap: 6px; align-self: stretch; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fff; }
.jam-research-request[data-jam-research-tone='working'] { border-left: 4px solid var(--busy); background: var(--blue-pale); }
.jam-research-request[data-jam-research-tone='backlog'] { border-left: 4px solid #7a4fc2; background: #f1ebfb; }
.jam-research-request[data-jam-research-tone='paused'] { border-left: 4px solid var(--faint); background: var(--surface); }
.jam-research-request-task { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.jam-research-said blockquote { max-height: 9.5em; margin: 4px 0 0; padding: 6px 10px; overflow: auto; border-left: 3px solid #9bb7d4; border-radius: 0 6px 6px 0; background: #f3f6fa; color: var(--ink); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.jam-research-said.is-plain > span { font-weight: 500; }
.jam-research-conflict { align-self: stretch; padding: 12px 14px; border: 1px solid #ecc45d; border-radius: 10px; background: #fff8e5; color: var(--ink); }
.jam-research-run .jam-research-conflict p { max-width: none; margin: 0 0 8px; line-height: 1.5; }
@media print { .jam-research-run, .jam-research-review-flag { display: none !important; } }
/* A research article's suggested edits, reviewed as tracked changes (jam-review.js; AGENTIC-268): the part once, its edits listed
   under it in a line each, the redline in the PRD's own type, choices and the count beside Accept and Reject, settled edits as
   receipts. Added words are underlined and removed ones struck through, so the marks read without their colour. */
.jam-review { margin-top: 24px; padding: 16px 18px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #f8fafc; }
.jam-research .jam-review > h4.jam-review-title { margin: 0 0 4px; font: 800 15px/1.35 Manrope, sans-serif; letter-spacing: -.01em; outline: none; }
.jam-review-title small { margin-left: 6px; color: var(--muted-strong); font: 500 12.5px "DM Sans", sans-serif; letter-spacing: 0; }
.jam-research-review-hint, .jam-research-review-status, .jam-review-legend, .jam-review-next, .jam-review-note, .jam-review-empty, .jam-review-conflict { max-width: 570px; margin: 6px 0 10px; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.jam-research-review-status { margin-bottom: 0; }
.jam-research-review-status[hidden] { display: none; }
.jam-review-conflict { color: #a3361d; }
.jam-review-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 4px; }
.jam-review-filters, .jam-review-views { display: inline-flex; padding: 2px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
.jam-review-filter, .jam-review-view { padding: 4px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted-strong); font: 600 12.5px "DM Sans", sans-serif; cursor: pointer; }
.jam-review-filter span { color: var(--muted); font: 500 11px var(--mono); }
.jam-review-filter[aria-selected="true"], .jam-review-view[aria-pressed="true"] { background: var(--blue-pale); color: var(--blue-dark); }
.jam-review-filter:disabled, .jam-review-view:disabled { opacity: .45; cursor: default; }
.jam-review-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 8px -6px; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); background: #f8fafc; }
.jam-review-feedback { display: grid; flex: 1 0 100%; gap: 4px; min-width: 0; margin: 4px 0; }
.jam-review-bar > .jam-review-feedback { margin: 0; }
.jam-review-feedback:not(:has(> :not([hidden]))), .jam-review-bar:not(:has(> :not([hidden], .jam-review-feedback), .jam-review-feedback > :not([hidden]))) { display: none; }
.jam-review-feedback :is(.jam-research-review-status, .jam-review-next) { max-width: none; margin: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); overflow-wrap: anywhere; }
.jam-review-feedback .jam-review-next { border-color: var(--jam-review-edge, var(--line)); background: var(--jam-review-row, var(--amber-pale)); color: var(--jam-review-ink, var(--ink)); }
.jam-review .jam-research-review-status[data-tone="error"] { padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--red) 40%, var(--line)); border-radius: 6px; background: var(--red-pale); color: var(--red); overflow-wrap: anywhere; }
.jam-review-all { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-strong); font-size: 13px; cursor: pointer; }
.jam-review-count { margin-right: auto; color: var(--ink); font: 600 13px "DM Sans", sans-serif; font-variant-numeric: tabular-nums; }
.jam-review-all input, .jam-review-row input { margin: 0; accent-color: var(--blue); }
.jam-review-part { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.jam-research .jam-review-part > h5 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; font: 700 14px/1.35 Manrope, sans-serif; }
.jam-review-part > h5 small { color: var(--muted-strong); font: 500 12px "DM Sans", sans-serif; }
.jam-review-whole, .jam-review-link, .jam-redline-more { padding: 0; border: 0; background: none; color: #2b5fb8; font: 500 12.5px "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.jam-review-whole { margin-left: auto; }
.jam-review .jam-review-list { max-width: 640px; margin: 0 0 10px; padding: 0; list-style: none; }
.jam-review .jam-review-list li + li, .jam-review .jam-review-receipts li + li { margin-top: 0; }
.jam-review-edit { border-radius: 6px; }
.jam-review-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 6px; font-size: 13.5px; line-height: 1.45; }
label.jam-review-row { cursor: pointer; }
label.jam-review-row:has(input:disabled) { cursor: default; }
.jam-review-n, .jam-redline-chip { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e7edf5; color: var(--muted-strong); font: 700 11px/20px var(--mono); }
.jam-review-row :is(input, .jam-review-n) { flex: none; }
.jam-review-what { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.jam-review-row-message { display: block; margin: 2px 0 0; color: var(--jam-review-ink, var(--amber)); font-size: 12.5px; }
.jam-review-original { max-width: 100%; font-size: 13px; }
.jam-review-original[open] { flex: 1 0 100%; min-width: 0; }
.jam-review-original summary { width: fit-content; color: var(--blue-dark); cursor: pointer; }
.jam-review-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 0 6px 6px 34px; }
:is(.jam-review-row-actions button, .jam-review-feedback button, .jam-question-recovery summary, .jam-review-original summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.jam-review-decided { display: inline-block; margin-left: 4px; color: var(--muted-strong); font-size: 12px; }
.jam-review-edit.is-selected, .jam-review-receipt.is-selected { background: var(--blue-pale); }
.jam-review-edit.is-selected .jam-review-n, .jam-redline-chip.is-selected { background: var(--blue); color: #fff; }
.jam-redline, .jam-review-clean { margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; font-size: 15px; }
.jam-redline-chip { margin-right: 6px; border: 0; vertical-align: 1px; cursor: pointer; }
.jam-redline-ins, .jam-redline-del { border-radius: 3px; padding: 0 1px; }
.jam-redline-ins { background: #def7e8; color: #0f5132; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.jam-redline-del { background: #fde4e1; color: #8a1c12; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.jam-redline-del + .jam-redline-ins { margin-left: 2px; }
.jam-redline-ins.is-selected, .jam-redline-del.is-selected { box-shadow: 0 0 0 1.5px var(--blue); }
.jam-redline-badge { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font: 700 10.5px/18px "DM Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.jam-redline-badge.is-added, .jam-redline-block.is-added .jam-redline-badge { background: #c9f0d8; color: #0f5132; }
.jam-redline-badge.is-removed, .jam-redline-block.is-removed .jam-redline-badge { background: #fbd3cd; color: #8a1c12; }
.jam-redline-block { margin: 10px 0 6px; color: var(--muted-strong); font-size: 12.5px; }
.jam-redline-fold { margin: 6px 0; color: var(--muted); }
.jam-md tr.jam-redline-fold td { padding: 4px 10px; background: var(--paper-soft); text-align: center; }
.jam-review .jam-review-receipts { max-width: 640px; margin: 12px 0 0; padding: 0; list-style: none; }
.jam-review-receipt:first-child { border-top: 0; }
.jam-review-receipt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.45; }
.jam-review-receipt > span { color: var(--muted-strong); }
.jam-review-receipt strong { color: var(--ink); }
.jam-review-receipt.is-applied strong::before { content: '✓ '; color: #187348; }
.jam-review-receipt .jam-review-source { flex-basis: 100%; margin: 0; }
.jam-review-source { margin: 12px 0 4px; font-size: 13px; }
.jam-review-source > summary { width: fit-content; color: #2b5fb8; cursor: pointer; }
.jam-review-source h6 { margin: 10px 0 4px; color: var(--muted-strong); font: 700 11.5px "DM Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.jam-review-diff { margin: 0; padding: 8px 10px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 6px; background: #fff; font: 400 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.jam-review-diff .is-added { display: block; background: #def7e8; color: #0f5132; }
.jam-review-diff .is-removed { display: block; background: #fde4e1; color: #8a1c12; }
.jam-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .jam-review { padding: 12px 10px 10px; }
  .jam-review-bar { margin: 8px -4px; padding: 8px 4px; }
  .jam-review-row-actions button, .jam-review-feedback button, .jam-review-bar [data-jam-review-rebuild-questions] { min-height: 44px; }
  .jam-review-original summary { line-height: 44px; }
  .jam-redline, .jam-review-clean { padding: 10px; font-size: 14.5px; }
  .jam-review-whole { margin-left: 0; }
  .jam-sheet-head { position: relative; }
  .jam-sheet-id { flex-basis: 100%; padding-right: 40px; }
  .jam-sheet-tools { width: 100%; flex-wrap: wrap; }
  .jam-sheet-close { position: absolute; top: 14px; right: 14px; margin: 0; }
}
@media (max-width: 1100px) { .jam-toast { max-width: calc(100% - 32px); bottom: 70px; } }
@media (prefers-reduced-motion: reduce) { .jam-item.is-remote, .jam-toast { transition: none; animation: none; } }

/* The words of a box's doc (Praful, 18 November 2026, of the page before this one: "yout hink is conducive to me reading a prd? it
   looks liek random text", "there is no formatting ofr h1 h2 bold etc"). They are set as a page is: text in ink at 16px, headings
   in Manrope at three sizes, code in DM Mono. Words keep a measure a line can be read at, 76ch of the text's own face (570px, said
   in px so a heading in Manrope ends where the text does); a table, a gallery, a diagram and a code block take the whole column,
   and every one of them starts on the same left edge. */
.jam-md { color: var(--ink); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.jam-md > p, .jam-md > ul, .jam-md > ol, .jam-md > h4, .jam-md > h5, .jam-md > h6, .jam-md > .jam-callout, .jam-doc-lead, .jam-sheet-main .jam-none, .jam-field-hint, .jam-doc-hint { max-width: 570px; }
.jam-md p, .jam-md ul, .jam-md ol { margin: 0 0 14px; }
.jam-md ul, .jam-md ol { padding-left: 24px; }
.jam-md li + li { margin-top: 6px; }
.jam-md li::marker { color: var(--muted-strong); }
.jam-md h4, .jam-md h5, .jam-md h6 { color: var(--ink); scroll-margin-top: 18px; }
.jam-md h4 { margin: 30px 0 8px; font: 800 18px/1.3 Manrope, sans-serif; letter-spacing: -.02em; }
.jam-md h5 { margin: 24px 0 6px; font: 700 15.5px/1.35 Manrope, sans-serif; letter-spacing: -.01em; }
.jam-md h6 { margin: 22px 0 6px; color: var(--muted-strong); font: 700 12px/1.4 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.jam-md hr { margin: 26px 0; border: 0; border-top: 1px solid var(--line-soft); }
.jam-md strong { color: var(--ink); font-weight: 700; }
.jam-md a { color: #2b5fb8; text-decoration: underline; text-underline-offset: 2px; }
.jam-md code { padding: 1px 5px; border-radius: 5px; background: #eef2f6; font: 500 .86em var(--mono); }
.jam-md > :first-child { margin-top: 0; }
.jam-md > :last-child { margin-bottom: 0; }
/* A table's frame. The PRD jamming page's table wears these eight rules too (prd-jamming-view.js: `an-table jam-table`), so they
   stay as they are; a doc's own tables are set under .jam-md, below. */
.jam-table { margin: 4px 0 11px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 9px; }
.jam-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.4; }
.jam-table th, .jam-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; overflow-wrap: normal; }
.jam-table th { background: var(--paper-soft); color: var(--muted-strong); font: 650 11.5px "DM Sans", sans-serif; white-space: nowrap; }
.jam-table tr:last-child td { border-bottom: 0; }
.jam-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jam-table td.is-tight { white-space: nowrap; }
.jam-table th:first-child, .jam-table td:first-child { min-width: 136px; }
/* A table in a doc: its head row in ink on a tint of the box's colour, its numbers on the right; one too wide for the column
   scrolls inside its frame. A first column of words keeps room to be read; one of numbers or IDs is as narrow as they are. */
.jam-md .jam-table { margin: 6px 0 20px; border-color: var(--line); scrollbar-width: thin; }
.jam-md .jam-table table { font-size: 14px; line-height: 1.5; }
.jam-md .jam-table th, .jam-md .jam-table td { padding: 9px 12px; }
.jam-md .jam-table th { border-bottom-color: color-mix(in srgb, var(--t) 34%, #fff); background: color-mix(in srgb, var(--t) 20%, #fff); color: var(--ink); font: 650 14px/1.4 "DM Sans", sans-serif; }
.jam-md .jam-table th:first-child, .jam-md .jam-table td:first-child.is-num, .jam-md .jam-table td:first-child.is-tight { min-width: 0; }
/* Code, drawn as it is written: it scrolls sideways and never wraps. */
.jam-code { margin: 6px 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-soft); color: var(--ink); font: 400 13px/1.6 var(--mono); white-space: pre; overflow-x: auto; tab-size: 2; scrollbar-width: thin; }
.jam-md .jam-code code { padding: 0; border-radius: 0; background: none; font: inherit; }
/* A callout: the lines written after >, on a tint of the box's colour behind a bar of it. */
.jam-callout { margin: 6px 0 20px; padding: 13px 18px 13px 22px; border-radius: 0 9px 9px 0; background: color-mix(in srgb, var(--t) 20%, #fff); box-shadow: inset 4px 0 0 var(--t); }
.jam-md .jam-callout > :last-child { margin-bottom: 0; }
/* The fields a person writes a PRD in: each part under its name, with what to put in it. The words are markup (tables, fences,
   image lines), so the fields are mono. */
.jam-form-h { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--ink); font: 800 24px/1.2 Manrope, sans-serif; letter-spacing: -.025em; }
.jam-form-h span { color: var(--muted-strong); font: 500 13px "DM Sans", sans-serif; letter-spacing: 0; }
.jam-field { display: block; margin: 24px 0 0; }
.jam-field-name { display: block; color: var(--ink); font: 700 15.5px/1.3 Manrope, sans-serif; letter-spacing: -.01em; }
.jam-field-hint { display: block; margin-top: 3px; color: var(--muted-strong); font: 400 13px/1.5 "DM Sans", sans-serif; }
.jam-doc-edit textarea, .jam-doc-edit input { display: block; width: 100%; margin-top: 8px; padding: 11px 13px; border: 1px solid #d3dfe9; border-radius: 9px; background: #f3f6fa; color: var(--ink); font: 400 13px/1.6 var(--mono); letter-spacing: 0; resize: vertical; tab-size: 2; }
.jam-doc-edit textarea[data-jam-part="math"] { white-space: pre; overflow-x: auto; }
.jam-doc-edit input { font: 400 14.5px/1.4 "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; }
.jam-doc-edit textarea:focus, .jam-doc-edit input:focus { background: #fff; border-color: #6f93b8; outline: 2px solid #c8dbee; outline-offset: 0; }
.jam-doc-hint { margin: 18px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.jam-doc-error { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: #fdecec; color: #8f2f35; font-size: 13px; line-height: 1.45; }
.jam-doc-actions { position: sticky; bottom: -28px; display: flex; align-items: center; gap: 8px; margin: 12px -8px -10px; padding: 10px 8px 14px; background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 14px); }
.jam-doc-actions span { margin-right: auto; color: var(--muted); font: 500 10.5px var(--mono); }

/* A box's doc: a full-page modal over the canvas (Praful, 17 November 2026: "make sure the prd doc opens in a full page modal vs a
   slider from right"). It is the browser's own dialog, so it lies over the whole panel, in full screen too, and keeps the keys inside
   it. Its head stays in place; under it one scroller holds the contents list, the doc at a readable width and, beside it, the
   comments with their field. The box's tone is its accent. */
.jam-sheet { --t: #64748b; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.jam-sheet[open] { display: grid; place-items: center; }
.jam-sheet::backdrop { background: rgb(19 36 58 / 55%); backdrop-filter: blur(3px); }
.jam-sheet-frame { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; border-radius: 0; background: #fff; box-shadow: 0 30px 80px rgb(16 32 62 / 35%); overflow: hidden; animation: jam-sheet .18s ease-out; }
@keyframes jam-sheet { from { opacity: 0; transform: translateY(8px); } }
.jam-sheet-head { display: flex; align-items: flex-start; gap: 16px; flex: none; padding: 18px 16px 14px 26px; border-bottom: 1px solid var(--line-soft); box-shadow: inset 0 5px 0 var(--t); }
.jam-sheet, .jam-research {
  --jam-review-action: #854909;
  --jam-review-action-hover: #6c3805;
  --jam-review-action-ink: #fff9ed;
  --jam-review-edge: #aa6d30;
  --jam-review-wash: #ffedcf;
  --jam-review-ink: #623806;
  --jam-review-row: #fff7e8;
}
.jam-sheet-id { flex: 1; min-width: 0; }
.jam-sheet-id .overline { display: flex; align-items: center; gap: 8px; margin: 0; }
.jam-sheet-layer { color: color-mix(in srgb, var(--t) 78%, #10203e); font-weight: 600; }
.jam-sheet-title { margin: 5px 0 0; font: 800 24px/1.2 Manrope, sans-serif; letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.jam-sheet-sub { margin: 5px 0 0; max-width: 100ch; color: var(--muted-strong); font-size: 14px; line-height: 1.5; }
.jam-sheet-id .jam-pending-review {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; max-width: 100%; margin-top: 9px;
  padding: 6px 12px; border: 1px solid var(--jam-review-edge); border-radius: 7px; background: var(--jam-review-action);
  color: var(--jam-review-action-ink); font: 800 13px/1.25 "DM Sans", sans-serif; cursor: pointer;
}
.jam-sheet-id .jam-research-running { margin: 9px 0 0 0; min-height: 40px; padding: 6px 12px; border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.jam-sheet-id .jam-pending-review + .jam-research-running { margin-inline-start: 6px; }
.jam-sheet-id .jam-research-running:hover { border-color: var(--blue-dark); }
.jam-sheet-id .jam-research-running:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
html[data-theme="dark"] .jam-sheet-id .jam-research-running { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dark); }
.jam-sheet-id .jam-pending-review:hover { background: var(--jam-review-action-hover); color: var(--jam-review-action-ink); }
.jam-sheet-id .jam-pending-review:focus-visible, .jam-research-filters button:focus-visible { outline: 2px solid var(--jam-review-edge); outline-offset: 2px; }
.jam-sheet-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.jam-sheet-tools .jam-copy { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.jam-sheet-close { width: 34px; height: 34px; margin-left: 4px; border: 0; border-radius: 8px; background: none; color: #5b7390; font-size: 22px; line-height: 1; cursor: pointer; }
.jam-sheet-close:hover { background: #f1f5f9; color: #172638; }
.jam-sheet-close:focus-visible, .jam-toc button:focus-visible { outline: 3px solid #77a4ff; outline-offset: 1px; }
.jam-sheet-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; overflow: auto; overscroll-behavior: contain; container-type: size; scrollbar-width: thin; outline: none; }
.jam-sheet-body.has-toc { grid-template-columns: 236px minmax(0, 1fr); }
/* A doc with a contents list keeps the list's column on a tab that has none, so its words never move from tab to tab. */
.jam-sheet-body.has-toc > .jam-sheet-col { grid-column: 2; }
/* The contents list stays in view while the doc scrolls beside it; it is as tall as the scroller. */
.jam-toc { position: sticky; top: 0; max-height: calc(100dvh - 150px); max-height: 100cqh; }
/* The doc's column: the tab in view, then the comment field (AGENTIC-263: comments are a tab, not a panel beside every tab), which
   stays at the foot of the view while the words scroll above it and stands under them when they are short. It is never out of sight
   once it shows. */
.jam-sheet-col { display: flex; flex-direction: column; min-width: 0; min-height: calc(100dvh - 150px); min-height: 100cqh; }
.jam-sheet-col > .jam-sheet-main { flex: 1 0 auto; }
.jam-sheet-compose { position: sticky; bottom: 0; z-index: 4; padding: 10px clamp(20px, 3.2vw, 48px) 12px; border-top: 1px solid var(--line-soft); background: rgb(255 255 255 / 97%); box-shadow: 0 -10px 22px rgb(16 32 62 / 6%); }
.jam-sheet-compose[hidden] { display: none; }
.jam-sheet-compose > .jam-compose { position: static; box-sizing: border-box; max-width: 960px; margin: 0 auto; padding: 0 0 0 40px; background: none; }
.jam-sheet-compose textarea { min-height: 52px; background: #fff; }
.jam-sheet-compose textarea:focus { min-height: 76px; }
/* Over a tab that is read the field can be put away again; on its own tabs it stays. */
.jam-compose-hide { display: none; }
.jam-sheet-compose.is-floating .jam-compose-hide { position: absolute; top: 6px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted-strong); font-size: 19px; line-height: 1; cursor: pointer; }
.jam-sheet-compose.is-floating .jam-compose-hide:hover { background: #f1f5f9; color: var(--ink); }
.jam-sheet-compose.is-floating .jam-compose-hide:focus-visible { outline: 3px solid #77a4ff; outline-offset: 1px; }
.jam-sheet-compose.is-floating > .jam-compose { padding-right: 30px; }
.jam-toc { overflow: auto; padding: 22px 8px 22px 18px; scrollbar-width: thin; }
.jam-toc[hidden] { display: none; }
.jam-toc-h { margin: 0 0 8px 8px; color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.jam-toc button { display: block; width: 100%; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); font: 600 12.5px/1.4 "DM Sans", sans-serif; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jam-toc button:hover { background: var(--paper-soft); color: var(--ink); }
.jam-toc-g { margin: 10px 0 2px; padding: 0 8px 0 18px; color: var(--muted); font: 500 9.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.jam-toc .jam-toc-d1 { padding-left: 18px; font-weight: 500; color: var(--muted-strong); }
.jam-toc .jam-toc-d2 { padding-left: 30px; font-weight: 400; font-size: 12px; color: var(--muted-strong); }
.jam-toc .jam-toc-d3 { padding-left: 42px; font-weight: 400; font-size: 12px; color: var(--muted); }
.jam-toc button small { margin-left: 6px; padding: 0 5px; border-radius: 8px; background: #f97316; color: #fff; font: 700 10px/16px var(--mono); }
/* The main column holds the tab in view. Whatever the tab, its content starts 40px in: that gutter is where a PRD's sections hang
   their numbers, so names, words, tables and pictures share one left edge on every tab. */
.jam-sheet-main { min-width: 0; padding: 26px clamp(20px, 3.2vw, 48px) 72px; }
.jam-sheet-main > * { max-width: 960px; margin-inline: auto; padding-left: 40px; }
/* Research uses its available document column; it has no numbered-section gutter. Keep print's page measure separate. */
.jam-sheet-main > .jam-research { max-width: none; padding-left: 0; }
.jam-sheet-main .jam-none { color: var(--muted-strong); font-size: 15px; line-height: 1.6; }
.jam-doc-lead { margin: 0 0 22px; color: var(--muted-strong); font-size: 13.5px; line-height: 1.55; }
/* The doc's tabs, as the panel's own are: a line under the one in view, here in the box's colour. The count of decisions wears
   that colour whole. */
.jam-tabs { display: flex; gap: 2px; flex: none; padding: 0 14px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.jam-tabs[hidden] { display: none; }
.jam-sheet-head:has(+ .jam-tabs:not([hidden])) { padding-bottom: 8px; border-bottom-color: transparent; }
.jam-tab { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 10px 12px 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted-strong); font: 650 13.5px/1.3 "DM Sans", sans-serif; white-space: nowrap; cursor: pointer; }
.jam-tab:hover { color: var(--ink); }
.jam-tab[aria-selected="true"] { border-bottom-color: var(--t); color: var(--ink); }
.jam-tab:focus-visible { border-radius: 6px; outline: 3px solid #77a4ff; outline-offset: -3px; }
.jam-tab small { padding: 1px 7px; border-radius: 9px; background: #e9eef4; color: var(--muted-strong); font: 600 11px/1.5 var(--mono); }
.jam-tab small.is-tone { background: var(--t); color: #fff; }
.jam-tab small.jam-tab-pending { background: var(--blue-pale); color: var(--blue-dark); }
/* An earlier version in view says so on a bar in the box's colour, with the way to bring it back and the way out. */
.jam-sheet-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; flex: none; padding: 9px 20px 9px 26px; background: color-mix(in srgb, var(--t) 22%, #fff); box-shadow: inset 5px 0 0 var(--t); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.jam-sheet-banner[hidden] { display: none; }
.jam-sheet-banner p { flex: 1 1 260px; margin: 0; }
.jam-sheet-banner strong { font-weight: 700; }
.jam-banner-actions { display: flex; gap: 8px; }
/* A box's PRD: one quiet line on which version it is, then each part under a real heading, numbered 1, 2, 3 … in the box's colour.
   The number hangs in the gutter. A rule parts one section from the next. */
.jam-doc-by { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.jam-doc-history { padding: 0; border: 0; background: none; color: var(--blue-dark); font: 600 13px/1.5 "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jam-doc-history:hover { color: var(--ink); }
.jam-doc-history:focus-visible { border-radius: 4px; outline: 3px solid #77a4ff; outline-offset: 2px; }
.jam-part { scroll-margin-top: -16px; }
.jam-part + .jam-part { margin-top: 34px; border-top: 1px solid var(--line-soft); }
.jam-part-h { position: relative; margin: 0 0 14px; padding-top: 44px; color: var(--ink); font: 800 24px/1.2 Manrope, sans-serif; letter-spacing: -.025em; }
.jam-doc-by + .jam-part > .jam-part-h { padding-top: 22px; }
.jam-part-n { position: absolute; right: 100%; bottom: 0; margin-right: 14px; color: var(--t); font-variant-numeric: tabular-nums; }
/* The story leads the page: the people, what they want and how they move through what the item holds, read before the PRD's parts. */
.jam-story > .jam-md { padding: 18px 22px; border: 1px solid var(--line-soft); border-left: 4px solid var(--t, #2563eb); border-radius: 10px; background: color-mix(in srgb, var(--t, #2563eb) 6%, transparent); }
.jam-story > .jam-md > p:first-child { font-size: 16px; line-height: 1.6; color: var(--ink); }
/* Its linked docs, the last section: a list of them reads as rows, one doc a row. */
.jam-linked > ul { padding-left: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.jam-linked > ul > li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.jam-linked a { font-weight: 600; }
/* Launch pages keep the Jam sheet's navigation and devote its document column to reading and scenario selection. */
.jam-sheet-main > :is(.jam-launch-outline, .jam-launch-announcement) { max-width: 1060px; padding-inline-start: 0; }
:is(.jam-launch-outline, .jam-launch-announcement) {
  --launch-ink: #282145;
  --launch-accent: #573c8d;
  --launch-muted: #554d69;
  --launch-edge: #dfd8ee;
  --launch-wash: #f7f4fc;
}
.jam-launch-overview {
  padding: clamp(23px, 4.3vw, 56px);
  border: 1px solid var(--launch-edge);
  border-radius: 22px;
  background: linear-gradient(118deg, #eee8fa, #f9f6fc 60%, #f0f5fb);
  color: var(--launch-ink);
}
.jam-launch-kicker {
  margin: 0 0 12px;
  color: var(--launch-accent);
  font: 750 11px/1.45 "DM Sans", sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.jam-launch-title {
  max-width: 25ch;
  margin: 0;
  color: var(--launch-ink);
  font: 800 clamp(29px, 4.6vw, 52px)/1.08 Manrope, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.jam-launch-overview > .jam-launch-lede {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--launch-muted);
  font: 500 clamp(15px, 1.9vw, 19px)/1.58 "DM Sans", sans-serif;
}
.jam-launch-lede p { margin-bottom: 0; }
.jam-launch-lede p + p { margin-top: 10px; }
.jam-launch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.jam-launch-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #cdc0e2;
  border-radius: 8px;
  background: #fff;
  color: var(--launch-accent);
  font: 700 13px/1.4 "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.jam-launch-actions :is(a, button):first-child { border-color: var(--launch-accent); background: var(--launch-accent); color: #fff; }
.jam-launch-actions :is(a, button):hover { box-shadow: 0 0 0 2px #d2c2ec; }
.jam-launch-actions :is(a, button):focus-visible, :is(a.jam-launch-card, .jam-launch-card > a):focus-visible {
  outline: 3px solid #6151aa;
  outline-offset: 3px;
}
.jam-launch-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 18px 0 32px;
  padding: 0;
  list-style: none;
}
.jam-launch-card {
  --card-stripe: #7861b5;
  min-width: 0;
  border: 1px solid var(--launch-edge);
  border-top: 3px solid var(--card-stripe);
  border-radius: 12px;
  background: #fff;
  color: var(--launch-ink);
}
.jam-launch-card:nth-child(2) { --card-stripe: #287b77; }
.jam-launch-card:nth-child(3) { --card-stripe: #3e67ad; }
.jam-launch-card:not(:has(a)) { padding: 16px; }
:is(a.jam-launch-card, .jam-launch-card > a) {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  min-height: 132px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.jam-launch-card > a { border-radius: inherit; }
:is(a.jam-launch-card, .jam-launch-card > a):hover { background: var(--launch-wash); }
.jam-launch-card .jam-launch-kicker { margin: 0 0 6px; }
.jam-launch-card :is(h3, h4) { margin: 0; font: 800 18px/1.28 Manrope, sans-serif; letter-spacing: -.025em; }
.jam-launch-card p { margin: 6px 0 12px; color: var(--launch-muted); font: 500 13.5px/1.5 "DM Sans", sans-serif; }
.jam-launch-card-action { display: block; margin-top: auto; color: var(--launch-accent); font-size: 13px; font-weight: 750; }
:is(a.jam-launch-card, .jam-launch-card > a):hover .jam-launch-card-action { text-decoration: underline; text-underline-offset: 3px; }
.jam-launch-journey .jam-md > :is(ol, ul) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
  gap: 8px;
  max-width: none;
  margin: 15px 0 24px;
  padding: 0;
}
.jam-launch-journey .jam-md > :is(ol, ul) > li {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--launch-edge);
  border-radius: 7px;
  color: var(--launch-ink);
  background: var(--launch-wash);
  font: 650 13px/1.4 "DM Sans", sans-serif;
  list-style-position: inside;
}
.jam-launch-outline-body { padding-top: 20px; border-top: 1px solid var(--launch-edge); }
.jam-launch-outline-body .jam-part-h, .jam-launch-outline > .jam-part > .jam-part-h { padding-top: 16px; }
.jam-launch-outline-body .jam-part + .jam-part { margin-top: 24px; }
.jam-launch-outline-body .jam-md > :is(p, h4, h5), .jam-launch-article > :is(p, ul, ol, h4, h5, h6, .jam-callout) { max-width: 68ch; }
.jam-launch-article { max-width: 760px; margin: 0 auto 30px; font-size: 17px; line-height: 1.72; }
.jam-release-heading { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.jam-release-heading .jam-release-status { margin: 0 0 12px; color: var(--launch-accent); font: 750 11px/1.4 "DM Sans", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.jam-release-heading .jam-release-title { margin: 0; padding: 0; max-width: 26ch; font: 800 clamp(27px, 3.6vw, 44px)/1.11 Manrope, sans-serif; letter-spacing: -.042em; text-wrap: balance; }
.jam-release-heading .jam-release-deck { margin: 12px 0 0; color: var(--ink-soft); font: 500 clamp(16px, 2vw, 20px)/1.5 "DM Sans", sans-serif; }
.jam-release-links { display: flex; flex-wrap: wrap; gap: 5px 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.jam-release-links button { border: 0; padding: 7px 0; background: transparent; color: var(--launch-accent); font: 700 14px/1.4 "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jam-launch-article > p { margin-bottom: 17px; }
.jam-launch-article > h4 { margin-top: 30px; font-size: clamp(22px, 2.7vw, 30px); }
.jam-launch-article > h5 { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 21px; }
.jam-launch-article > .jam-callout { background: var(--paper-soft); box-shadow: inset 2px 0 0 var(--launch-accent); }
.jam-launch-mockups { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--launch-edge); }
.jam-launch-mockups > h3 { margin: 0 0 12px; padding: 0; font: 800 24px/1.2 Manrope, sans-serif; letter-spacing: -.025em; }
@media (max-width: 620px) {
  .jam-launch-overview { border-radius: 14px; }
  .jam-sheet-frame:has(.jam-launch-announcement) [data-jam-mobile-tab]:not([hidden]) { width: 57%; }
  .jam-sheet-frame:has(.jam-launch-announcement) [data-jam-mobile-jump]:not([hidden]) { width: 43%; }
  .jam-launch-scenarios { margin-top: 12px; }
  :is(a.jam-launch-card, .jam-launch-card > a) { min-height: 105px; }
  .jam-launch-article { font-size: 16px; }
}
@media print {
  .jam-launch-overview { padding: 5mm; border-radius: 0; background: #fff; }
  .jam-launch-title { font-size: 24pt; }
  .jam-launch-actions, .jam-release-links { display: none; }
  .jam-launch-scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jam-launch-card, .jam-launch-overview { break-inside: avoid; }
}
/* A note in its doc wears the canvas note's yellow, as a panel that hugs its words: here they are read, selected and copied. */
.jam-doc-note { box-sizing: border-box; max-width: 624px; padding: 18px 26px 20px; border: 1px solid #ecd97a; border-radius: 12px; background: #fff3b8; }
.jam-notes .jam-dock-from { margin-top: 18px; }
/* A spec is a PRD's own words: its headings are a page's, and a unit carried from a PRD starts under a rule. */
.jam-spec h4 { margin: 34px 0 10px; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; font-weight: 800; }
.jam-spec h5 { margin: 30px 0 8px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 18px; line-height: 1.3; letter-spacing: -.02em; font-weight: 800; }
.jam-spec h6 { margin: 20px 0 6px; color: var(--ink); font: 700 14.5px/1.4 Manrope, sans-serif; letter-spacing: -.01em; text-transform: none; }
.jam-spec > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.jam-spec hr + h4, .jam-spec hr + h5 { margin-top: 18px; padding-top: 0; border-top: 0; }
/* A picture in a doc: it is asked for when it comes into view, its caption beneath; a press opens it full size. */
.jam-fig { position: relative; margin: 8px 0 22px; }
/* A picture's or a diagram's Comment at its top corner, and beside it the count of open comments about it, which leads to them
   (Praful, 18 November 2026: "how do we comment on images it just fullscreens it"). */
/* It stays in view at the top of a picture taller than the doc's window while any of the picture is in view, taking no room of its own. */
.jam-fig-tools { position: sticky; top: 8px; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-start; gap: 6px; height: 0; padding-right: 8px; transform: translateY(8px); }
.jam-fig-talk, .jam-fig-count { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border: 1px solid #cfd9e6; border-radius: 999px; background: rgb(255 255 255 / 95%);
  color: #2352bd; font: 600 12.5px/1 "DM Sans", sans-serif; box-shadow: 0 1px 3px rgb(16 24 40 / 14%); cursor: pointer; }
.jam-fig-talk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.jam-fig-talk:hover { background: #eaf0ff; border-color: #b9cdf0; }
.jam-fig-count { min-width: 28px; justify-content: center; padding: 0 9px; border-color: #f2c46b; background: #fff4d6; color: #6b4a07; font-weight: 700; }
.jam-fig-count[hidden] { display: none; }
.jam-fig-count:hover { background: #ffeab0; }
.jam-fig-talk:focus-visible, .jam-fig-count:focus-visible { outline: 3px solid #77a4ff; outline-offset: 2px; }
.jam-fig.is-commented > .jam-fig-frame { border-color: #f2c46b; box-shadow: 0 0 0 1px #f2c46b; }
.jam-fig.is-quoting > .jam-fig-frame { border-color: #77a4ff; box-shadow: 0 0 0 2px #77a4ff; }
.jam-fig.is-lit > .jam-fig-frame { border-color: #f59e0b; box-shadow: 0 0 0 3px #f59e0b; transition: box-shadow .2s ease; }
.jam-lightbox .wk-lightbox-comment { padding: 6px 14px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 999px; background: rgb(255 255 255 / 14%); color: #fff; font: 600 13px/1 "DM Sans", sans-serif; cursor: pointer; }
.jam-lightbox .wk-lightbox-comment:hover { background: rgb(255 255 255 / 26%); }
.jam-lightbox .wk-lightbox-comment:focus-visible { outline: 3px solid #77a4ff; outline-offset: 2px; }
.jam-fig-frame { display: grid; place-items: center; width: 100%; min-height: 170px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fb; color: inherit; cursor: zoom-in; overflow: hidden; }
.jam-fig-frame img { display: block; max-width: 100%; height: auto; }
/* In a PRD's own parts a tall picture, a phone's screen, keeps to the height of a page in view; a spec's pictures are as they were carried. */
.jam-prd .jam-fig-frame img { width: auto; max-height: min(72vh, 680px); }
.jam-fig-frame:hover { border-color: #b9cdf0; }
.jam-fig-frame:focus-visible { outline: 3px solid #77a4ff; outline-offset: 2px; }
.jam-fig-wait { display: grid; gap: 4px; padding: 26px 18px; color: var(--muted-strong); font: 400 13.5px/1.45 "DM Sans", sans-serif; text-align: center; }
.jam-fig-wait small { font-size: 12.5px; }
.jam-fig.is-missing .jam-fig-frame { border-style: dashed; background: #fff8f1; cursor: pointer; }
.jam-fig.is-missing .jam-fig-wait { color: #8a4b12; }
.jam-fig figcaption { margin-top: 8px; color: var(--muted-strong); font-size: 13.5px; line-height: 1.45; text-align: center; }
/* The Terminology projection uses the PRD's own type and spacing; long IDs wrap on a narrow doc. */
.jam-term-version, .jam-term-id, .jam-term-where { color: var(--muted-strong); font-size: 13px; overflow-wrap: anywhere; }
.jam-term-heading { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; font-size: 20px; }
.jam-term-heading span { color: var(--muted-strong); font-size: 13px; font-weight: 500; }
.jam-term { padding: 18px 0; border-top: 1px solid var(--line); break-inside: avoid; overflow-wrap: anywhere; }
.jam-term h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; }
.jam-term a, .jam-term-review a { color: var(--t); text-underline-offset: 3px; }
.jam-term a:focus-visible, .jam-term-review a:focus-visible { outline: 3px solid #77a4ff; outline-offset: 3px; }
.jam-term dl { margin: 12px 0 0; }
.jam-term dt { margin-top: 10px; color: var(--muted-strong); font-size: 12px; font-weight: 650; }
.jam-term dd { margin: 3px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.jam-term-id { margin: 0; }
.jam-term-review { margin: 0; padding: 0; list-style: none; }
.jam-term-review li { margin: 0 0 12px; padding: 14px 16px; border-left: 3px solid #b9842c; background: #fff9ef; overflow-wrap: anywhere; break-inside: avoid; }
.jam-term-review p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.jam-file { margin: 0 0 14px; }
/* Mock-ups side by side: a sheet of cards a person can scan. Every picture sits in a frame of one height, its caption and the line
   on what it shows beneath it, on the left. A picture wider than it is tall takes two cells where the sheet has two. */
.jam-gallery { container-type: inline-size; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 18px; margin: 8px 0 24px; }
.jam-gallery .jam-card { min-width: 0; margin: 0; }
.jam-mockup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); align-items: start; gap: 16px; margin: 12px 0 28px; }
.jam-mockup-grid .jam-mockup { min-width: 0; margin: 0; break-inside: avoid; }
.jam-mockup-screen { --screen-accent: #23397a; --screen-fill: #edf1fb; overflow: hidden; color: #172339; background: #fff; border: 1px solid #dbe2ee; border-radius: 17px; box-shadow: 0 6px 18px rgb(24 43 78 / 9%); }
.jam-mockup-screen.is-violet { --screen-accent: #52278e; --screen-fill: #f1eafb; }
.jam-mockup-screen.is-teal { --screen-accent: #08635d; --screen-fill: #e6f4f0; }
.jam-mockup-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; background: var(--screen-fill); color: var(--screen-accent); font-size: 11px; font-weight: 760; }
.jam-mockup-status { padding: 3px 7px; border-radius: 10px; background: #fff; text-align: end; }
.jam-mockup-content { padding: 18px 16px 16px; }
.jam-mockup-content > strong { display: block; font: 800 19px/1.25 Manrope, sans-serif; }
.jam-md .jam-mockup-content p { margin: 7px 0 12px; color: #475570; font-size: 12px; line-height: 1.45; }
.jam-mockup-content dl { margin: 12px 0 14px; font-size: 11px; }
.jam-mockup-content dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #e8edf5; }
.jam-mockup-content dt { color: #475570; }
.jam-mockup-content dd { margin: 0; text-align: end; font-weight: 700; }
.jam-mockup-action { display: block; border-radius: 7px; padding: 8px 10px; background: var(--screen-accent); color: #fff; text-align: center; font-size: 12px; font-weight: 690; }
.jam-mockup-grid figcaption { margin-top: 8px; color: var(--muted-strong); font-size: 12px; line-height: 1.4; }
/* The frame's one cell is as tall as the frame, so a picture is held whole inside it, never cut. */
.jam-card .jam-fig-frame { grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 340px; min-height: 0; }
.jam-card .jam-fig-frame img { width: auto; max-height: 100%; }
.jam-card figcaption { margin-top: 10px; color: var(--ink); font: 650 14.5px/1.4 "DM Sans", sans-serif; text-align: left; }
.jam-card-note { display: block; margin-top: 3px; color: var(--muted-strong); font-weight: 400; font-size: 13.5px; line-height: 1.5; }
@container (min-width: 596px) { .jam-card.is-wide { grid-column: span 2; } }
/* A diagram: Mermaid's drawing on white, in the box's colour, at the size it was drawn and never wider than the column, so a long
   flow is read down the page like a long table; a press opens it large. One it could not draw shows its source under a line
   saying so. */
.jam-diagram-frame { min-height: 120px; padding: 22px 18px; background: #fff; }
.jam-diagram-frame svg { display: block; max-width: 100%; height: auto; }
.jam-diagram-error { margin: 0 0 8px; padding: 9px 12px; border-radius: 8px; background: #fff8f1; color: #8a4b12; font-size: 13.5px; line-height: 1.5; }
.jam-diagram.is-failed .jam-code { margin-bottom: 0; }
.jam-diagram-large { max-width: 100%; max-height: 100%; padding: 28px; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 50%); overflow: auto; }
.jam-diagram-large svg { display: block; }
/* A doc's history: its versions, the newest first, a rule between them. Each says its number, who wrote it and when, what it
   changed and, in the writer's own words, why. */
.jam-versions { margin: 0; padding: 0; border-top: 1px solid var(--line-soft); list-style: none; }
.jam-version { border-bottom: 1px solid var(--line-soft); }
.jam-version-row { display: flex; align-items: flex-start; gap: 18px; padding: 18px 0; }
.jam-version-what { flex: 1; min-width: 0; }
.jam-version-id { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin: 0; }
.jam-version-id strong { color: var(--ink); font: 800 18px/1.3 Manrope, sans-serif; letter-spacing: -.02em; }
.jam-version-id em { padding: 1px 8px; border-radius: 9px; background: var(--t); color: #fff; font: 700 11px/1.6 "DM Sans", sans-serif; }
.jam-version-id em.is-reading { background: none; box-shadow: inset 0 0 0 1.5px var(--t); color: color-mix(in srgb, var(--t) 78%, #10203e); }
.jam-version-by { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 3px 0 0; color: var(--muted-strong); font-size: 13.5px; line-height: 1.5; }
.jam-version-by b { color: var(--ink); font-weight: 600; }
.jam-version-parts { margin: 9px 0 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.jam-version-why { margin: 3px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.jam-version-why::before { content: "“"; }
.jam-version-why::after { content: "”"; }
.jam-version-actions { display: flex; flex: none; gap: 6px; }
.jam-version-diff { margin: 0 0 20px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 10px; }
.jam-diff + .jam-diff { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.jam-diff > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.jam-diff-part { margin: 0; color: var(--ink); font: 800 16px/1.3 Manrope, sans-serif; letter-spacing: -.015em; }
.jam-history-proposals { margin-top: 14px; }
.jam-history-proposals h5 { margin: 0 0 6px; font: 750 14px/1.4 Manrope, sans-serif; }
.jam-history-proposal { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.jam-history-proposal summary { color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.jam-history-proposal summary span { color: var(--muted-strong); font-size: 13px; }
.jam-history-suggestion { margin: 10px 0; }
.jam-history-suggestion h6 { margin: 0; color: var(--ink-soft); font: 700 13.5px/1.4 "DM Sans", sans-serif; overflow-wrap: anywhere; }
.jam-history-previous > summary { color: var(--muted-strong); font-size: 13.5px; }
/* The contents list of a PRD: each section under its number, its own headings beneath it; the one being read is marked. */
.jam-toc-n { display: inline-block; min-width: 16px; margin-right: 7px; color: color-mix(in srgb, var(--t) 78%, #10203e); font: 800 12px/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.jam-toc .jam-toc-ds { padding-left: 31px; font-weight: 500; color: var(--muted-strong); }
.jam-toc button[aria-current="true"] { background: color-mix(in srgb, var(--t) 20%, #fff); box-shadow: inset 3px 0 0 var(--t); color: var(--ink); }
/* A doc's Tasks, Research and Comments tabs (AGENTIC-263): each its own stream of the item's comments, by the intent saved with them,
   under a heading with how many are open, the resolved ones folded under one line. A request wears its kind as a label, says where its
   Task stands, and links what it found or wrote. */
.jam-stream-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 30px 0 10px; color: var(--ink); font: 700 15px/1.3 Manrope, sans-serif; letter-spacing: -.01em; }
.jam-stream > .jam-stream-h:first-child, .jam-tasks > .jam-stream > .jam-stream-h:first-child { margin-top: 0; }
.jam-stream-h span { color: var(--muted); font: 500 12px/1.3 "DM Sans", sans-serif; letter-spacing: 0; }
.jam-stream .jam-thread { gap: 6px; }
.jam-stream .jam-none { font-size: 14px; }
.jam-resolved { margin-top: 12px; }
.jam-resolved > summary { display: inline-flex; align-items: baseline; gap: 7px; margin-left: -8px; padding: 5px 9px; border-radius: 7px; color: var(--muted-strong); font: 600 13px/1.3 "DM Sans", sans-serif; cursor: pointer; list-style: none; }
.jam-resolved > summary::-webkit-details-marker { display: none; }
.jam-resolved > summary::before { content: ""; width: 5px; height: 5px; margin-right: 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(-45deg); transition: transform .12s; }
.jam-resolved[open] > summary::before { transform: translateY(-3px) rotate(45deg); }
.jam-resolved > summary:hover { background: var(--paper-soft); color: var(--ink); }
.jam-resolved > summary:focus-visible { outline: 3px solid #77a4ff; outline-offset: 1px; }
.jam-resolved > summary small { color: var(--muted); font: 500 11px var(--mono); }
.jam-resolved > summary span { color: var(--muted); font-weight: 500; }
.jam-resolved > .jam-thread { margin-top: 6px; }
.jam-stream .jam-c header { flex-wrap: wrap; row-gap: 2px; }
.jam-stream .jam-c header button { opacity: 1; }
.jam-c-kind { flex: none; align-self: center; padding: 0 7px; border-radius: 9px; font: 650 10.5px/18px "DM Sans", Inter, sans-serif; letter-spacing: .01em; white-space: nowrap; }
.jam-c-kind.is-research { background: #efe9fb; color: #5b3fb0; }
.jam-c-kind.is-task { background: #e6effd; color: #24529c; }
.jam-c-kind.is-prd { background: #e3f4ee; color: #146749; }
.jam-c-kind.is-note { background: #fbf0c4; color: #6f5208; }
.jam-c p.jam-c-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin: 7px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; white-space: normal; text-decoration: none; }
.jam-c.is-done p.jam-c-result { color: var(--ink-soft); text-decoration: none; }
.jam-c-result b { color: var(--muted-strong); font: 700 10px/1.4 "DM Sans", Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.jam-c-result.is-shared b { text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.jam-c-result span { color: var(--muted); }
.jam-c-link { padding: 0; border: 0; background: none; color: var(--blue-dark); font: 600 12.5px/1.45 "DM Sans", Inter, sans-serif; text-decoration: none; cursor: pointer; }
.jam-c-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.jam-c-link:focus-visible { outline: 2px solid #77a4ff; outline-offset: 2px; border-radius: 4px; }
.jam-c .jam-task-result { display: inline-block; margin-right: 8px; }
/* The card's note heads the Comments tab: its words as written, on the note's own yellow, saying what it is and where it came from. */
.jam-box-note { margin: 0 0 24px; }
.jam-box-note > header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin: 0 0 9px; }
.jam-box-note > header b { color: var(--muted-strong); font-size: 12.5px; font-weight: 600; }
.jam-box-note .jam-dock-from { margin-top: 12px; }
/* A run that failed says so in red; its why is under Activity. */
.jam-task .ticket-lozenge.is-failed { background: var(--red-pale); color: #8f2f35; }
.jam-task.is-failed { border-color: #eccbcb; }
.jam-task-say.is-failed b { color: #8f2f35; }
.jam-sheet .jam-doc-actions { bottom: 0; margin: 14px 0 0; padding: 12px 0 14px; background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 12px); }
.jam-sheet-toast { bottom: 22px; z-index: 6; max-width: min(560px, calc(100% - 48px)); }
/* Opened large, a picture is held whole in the window: the stage's one cell is as tall as the stage, so a phone's tall screen is
   scaled to it and never cut. */
.jam-lightbox .wk-lightbox-stage { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.jam-lightbox figcaption strong { max-width: 90ch; }
/* How many decisions are placed on a box and how many pictures its doc carries, on its card; they make room for the link button of
   a selected box. The decisions' count wears the box's own colour. */
.jam-marks { position: absolute; z-index: 3; right: 7px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; }
.jam-item.is-selected > .jam-marks { right: 32px; }
.jam-marks.is-inline { position: static; flex: none; margin-left: 2px; }
.jam-head strong.has-marks { display: flex; align-items: center; gap: 7px; overflow: visible; }
.jam-head strong.has-marks b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: inherit; letter-spacing: inherit; }
.jam-figs, .jam-decs { display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 6px; background: #eef2f8; color: #52697f; font: 700 9.5px/1.5 var(--mono); font-style: normal; }
.jam-decs { background: var(--t); color: #fff; }
/* The side panel as the list of decisions (Praful, 17 November 2026: "decisions can you elevate them in the jam board"): where they
   come from, the field that filters them, which stays in view, and each decision as a row that opens where it is. */
.jam-dec-read { margin: 4px 0 0; padding-right: 30px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.jam-dec-read:empty { display: none; }
.jam-dec-filter { position: sticky; top: 0; z-index: 1; display: block; margin: 0 -8px; padding: 12px 38px 10px 8px; background: linear-gradient(to bottom, #fff calc(100% - 8px), rgb(255 255 255 / 0%)); }
/* In this list the panel's top padding is its body's, so the filter that stays in view lies against the panel's top edge with nothing showing above it. */
.jam-dock.is-decisions { padding-top: 0; }
.jam-dock.is-decisions .ax-dock-body { padding-top: 18px; }
.jam-dock.is-decisions .ax-dock-close { top: 14px; margin-top: 14px; z-index: 2; }
.jam-dec-filter input { width: 100%; height: 36px; padding: 7px 12px; border: 1px solid #d3dfe9; border-radius: 9px; background: #f3f6fa; color: var(--ink); font: 400 13px "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; }
.jam-dec-filter input:focus { background: #fff; border-color: #6f93b8; outline: 2px solid #c8dbee; outline-offset: 0; }
.jam-dec-list { margin-top: -4px; }
.jam-dec-g { display: flex; align-items: baseline; gap: 7px; margin: 16px 0 4px; color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.jam-dec-g small { color: var(--muted); font: 500 10px var(--mono); letter-spacing: 0; }
.jam-dec-n { margin: 8px 0 -6px; color: var(--muted); font-size: 12px; }
.jam-dec { position: relative; margin: 0 -8px 1px; border-radius: 9px; scroll-margin-top: 66px; }
.jam-dec-row { display: block; width: 100%; padding: 8px 36px 8px 8px; border: 0; border-radius: 9px; background: none; color: inherit; text-align: left; cursor: pointer; }
.jam-dec-row:hover { background: var(--paper-soft); }
.jam-dec-row:focus-visible, .jam-dec-link:focus-visible, .jam-dec-box:focus-visible, .jam-dec-more:focus-visible, .jam-dec-also:focus-visible { outline: 2px solid #77a4ff; outline-offset: 1px; }
.jam-dec-top { display: flex; align-items: center; gap: 7px; min-height: 20px; }
.jam-dec-code { color: var(--ink); font: 700 11.5px/1 var(--mono); }
.jam-dec-top .ticket-lozenge, .jam-decision header .ticket-lozenge { flex: none; min-height: 19px; padding: 0 6px; font-size: 10px; }
.jam-dec-top small { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.jam-dec-row strong { display: block; margin-top: 3px; color: var(--ink); font: 650 13.5px/1.4 "DM Sans", Inter, sans-serif; overflow-wrap: anywhere; }
.jam-dec-row em { display: block; margin-top: 1px; color: var(--muted); font-size: 11.5px; font-style: normal; }
.jam-dec-link { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--blue); cursor: pointer; opacity: 0; transition: opacity .12s; }
.jam-dec:hover .jam-dec-link, .jam-dec-link:focus-visible, .jam-dec.is-chosen .jam-dec-link { opacity: 1; }
.jam-dec-link:hover { background: var(--blue-pale); }
.jam-dec.is-chosen { margin-top: 4px; margin-bottom: 6px; background: #f5f8ff; box-shadow: inset 0 0 0 1px #c3d5f5; }
.jam-dec.is-chosen .jam-dec-row:hover { background: none; }
.jam-dec-body { padding: 0 12px 10px 8px; }
.jam-dec-text { margin: 2px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.jam-dec-more, .jam-dec-also { margin: 4px 0 0; border: 0; padding: 2px 0; background: none; color: var(--blue-dark); font-size: 12px; font-weight: 600; cursor: pointer; }
.jam-dec-more:hover, .jam-dec-also:hover { text-decoration: underline; text-underline-offset: 3px; }
.jam-dec-by { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.jam-dec-on { margin: 12px 0 6px; color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.jam-dec-box { display: block; width: 100%; margin: 0 0 6px; padding: 8px 10px 8px 15px; border: 1px solid #e1e7ef; border-radius: 9px; background: #fff; box-shadow: inset 5px 0 0 var(--t, #64748b); color: inherit; text-align: left; cursor: pointer; transition: border-color .12s; }
.jam-dec-box:last-child { margin-bottom: 0; }
.jam-dec-box:hover:not(:disabled) { border-color: color-mix(in srgb, var(--t, #64748b) 55%, #e1e7ef); }
.jam-dec-box:disabled { cursor: default; opacity: .6; }
.jam-dec-box strong { color: #10203e; font: 700 13px/1.3 Manrope, sans-serif; letter-spacing: -.015em; }
.jam-dec-box span { margin-left: 8px; color: var(--muted); font-size: 11.5px; }
.jam-dec-box em { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 12.5px; font-style: normal; line-height: 1.45; overflow-wrap: anywhere; }
.jam-dec-box small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
/* A box's decisions, on their own tab of its doc: each on a card edged in the box's colour, an open one in amber. */
.jam-decision { margin: 0 0 10px; padding: 12px 16px 12px 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; box-shadow: inset 5px 0 0 var(--t); }
.jam-decision:last-child { margin-bottom: 0; }
.jam-decision.is-open { border-color: #efdcb6; background: #fffbf3; box-shadow: inset 5px 0 0 #d9942b; }
.jam-decision header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.jam-decision header strong { color: var(--ink); font: 700 15px/1.35 Manrope, sans-serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.jam-decision header .ticket-lozenge { align-self: center; }
.jam-decision .jam-dec-code { font-size: 12.5px; }
.jam-decision .jam-dec-by { margin-top: 3px; }
.jam-decision .jam-dec-text { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }
.jam-dec-why { margin: 11px 0 0; padding-top: 9px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.jam-dec-why b { display: block; margin-bottom: 2px; color: var(--muted-strong); font: 700 10px/1.4 "DM Sans", Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.jam-dec-why small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.jam-decision .jam-dec-also { display: block; margin-top: 8px; }
.jam-toc button small.is-quiet { background: #e7edf4; color: #52697f; }
@media (prefers-reduced-motion: reduce) { .jam-dec-link, .jam-dec-box { transition: none; } }
/* The Task that handles a comment, under it: its ID, its state as the Tasks pages colour it, its latest step and its Log. A resolved
   comment's words are struck through; its Task never is. */
.jam-task { margin: 7px 0 1px; border: 1px solid #dfe7f0; border-radius: 8px; background: #fff; }
.jam-task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; min-height: 30px; padding: 3px 4px 3px 9px; }
.jam-task-result { color: var(--blue-dark); font-size: 12px; font-weight: 700; text-underline-offset: 2px; }
.jam-task-id { flex: none; color: var(--blue-dark); font: 500 11.5px/1 var(--mono); text-decoration: none; }
.jam-task-id:hover { text-decoration: underline; text-underline-offset: 3px; }
.jam-task-id:focus-visible, .jam-task-toggle:focus-visible { outline: 2px solid #77a4ff; outline-offset: 2px; border-radius: 4px; }
.jam-task-row .ticket-lozenge { flex: none; min-height: 19px; padding: 0 6px; font-size: 10px; }
.jam-task-step { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0 9px 8px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.jam-task-wait { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.jam-task-row small, .jam-task-say small { flex: none; color: var(--muted); font-size: 11px; white-space: nowrap; }
.jam-task-toggle { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; border: 0; padding: 5px 7px; border-radius: 5px; background: none; color: var(--blue-dark); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.jam-task-toggle::after { content: ""; width: 5px; height: 5px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .12s; }
.jam-task-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.jam-task-toggle:hover { background: var(--blue-pale); }
.jam-task.is-error { border-color: #eccbcb; background: var(--red-pale); }
.jam-task.is-error .jam-task-row { align-items: baseline; padding-right: 9px; }
.jam-task.is-error .jam-task-wait { padding: 5px 0; color: #883b3e; }
.jam-task.is-plain { border: 0; background: none; }
.jam-task.is-plain .jam-task-row { min-height: 0; padding: 0; }
.jam-ask { min-height: 26px; }
.jam-task-log { padding: 9px 10px 10px 11px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.jam-task-log .timeline-event { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; }
.jam-task-log .timeline-event::before { top: 9px; }
.jam-task-log .timeline-meta { display: block; margin: 0; overflow-wrap: anywhere; }
.jam-task-log .timeline-words { overflow-wrap: anywhere; }
.jam-task-note { margin: 0 0 6px; color: var(--muted); }
.jam-task-say { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.jam-task-say b { display: block; margin-bottom: 2px; color: var(--muted-strong); font: 700 10px/1.4 "DM Sans", Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.jam-task-say.is-proof b { color: var(--green); }
.jam-task-say small { margin-left: 6px; }
/* A run's words keep the marks it wrote them with (AGENTIC-247): bold, code and a link look as they do in a box's description. */
.jam-task-step strong, .jam-task-say strong, .jam-task-log .timeline-words strong { color: var(--ink); font-weight: 650; }
.jam-task-step code, .jam-task-say code, .jam-task-log .timeline-words code { padding: 0 4px; border-radius: 4px; background: #eef2f6; font: 500 11.5px var(--mono); }
.jam-task-step a, .jam-task-say a, .jam-task-log .timeline-words a { color: #2b5fb8; text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .jam-task-toggle::after { transition: none; } }
/* The side panel's comment field stays at its foot while the list scrolls. */
.jam-dock [data-jam-list-compose] { position: sticky; bottom: -28px; }
.jam-dock .jam-compose { position: static; }
@media (max-width: 1180px) {
  .jam-sheet-head { flex-wrap: wrap; padding-left: 18px; }
  .jam-tabs { padding: 0 6px; }
  .jam-sheet-banner { padding-left: 18px; }
  .jam-sheet-body, .jam-sheet-body.has-toc { grid-template-columns: minmax(0, 1fr); }
  .jam-sheet-body.has-toc > .jam-sheet-col { grid-column: auto; }
  .jam-toc { display: none; }
  /* With no room for a gutter, a section's number sits before its name. */
  .jam-sheet-main > *, .jam-sheet-compose > .jam-compose { padding-left: 0; }
  .jam-part-n { position: static; margin-right: 10px; }
  .jam-version-row { flex-direction: column; gap: 12px; }
}
@media (max-width: 760px), (max-width: 926px) and (max-height: 500px) and (pointer: coarse) {
  .jam-bar { gap: 6px; padding: 6px 10px; }
  .jam-bar .ax-crumbs { display: none; }
  .jam-bar .agd-tabs { margin: 0; }
  .jam-bar .ax-search { flex-basis: 100%; max-width: none; order: 1; }
  .jam-bar .ax-search input { font-size: 16px; }
  .jam-bar > .button, .jam-bar .agd-tabs button { min-height: 40px; }
  .jam[data-jam-mobile-view] > .jam-viewport { top: 48px; }
  .jam[data-jam-mobile-view] > .jam-mobile-views {
    position: absolute; inset: 0 0 auto; z-index: 1; display: flex; gap: 4px;
    height: 48px; padding: 4px 10px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .jam-mobile-views button {
    min-width: 70px; min-height: 40px; padding-inline: 12px; border: 0; border-radius: 6px;
    background: transparent; color: var(--muted-strong); font-weight: 700;
  }
  .jam-mobile-views button[aria-pressed="true"] { background: var(--blue-pale); color: var(--blue-dark); }
  .jam[data-jam-mobile-view="outline"] > .jam-mobile-outline {
    position: absolute; inset: 48px 0 0; display: block; overflow: auto; overscroll-behavior: contain;
    padding: 12px 10px max(16px, env(safe-area-inset-bottom)); background: var(--surface);
  }
  .jam[data-jam-mobile-view="outline"] > :is(.jam-viewport, .ax-zoom, [data-jam-mini]) { visibility: hidden; }
  .jam[data-jam-mobile-view] .jam-minimap { display: none; }
  .jam .ax-zoom button { width: 44px; height: 44px; }
  .jam[data-jam-mobile-view] .jam-results { top: 48px; }
  .jam .jam-toast { pointer-events: none; }
  .jam .jam-toast button { pointer-events: auto; }
  .jam-outline-pillar {
    margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px;
    box-shadow: inset 3px 0 0 var(--t, var(--line-strong)); background: #fff;
  }
  .jam-outline-pillar summary {
    display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 2px;
    cursor: pointer; color: var(--ink); overflow-wrap: anywhere;
  }
  .jam-outline-pillar summary::-webkit-details-marker { display: none; }
  .jam-outline-pillar summary::before {
    content: ''; flex: 0 0 6px; width: 6px; height: 6px; border: solid var(--muted-strong); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg);
  }
  .jam-outline-pillar[open] summary::before { transform: rotate(45deg); }
  .jam-outline-pillar summary strong { flex: 1; }
  .jam-outline-pillar summary small { flex: none; color: var(--muted-strong); }
  .jam-outline-pillar.has-scope {
    border-color: var(--jam-scope-edge);
    box-shadow: inset 3px 0 0 var(--t, var(--jam-scope-accent)), 0 0 0 2px rgb(117 73 178 / 10%);
  }
  .jam-outline-pillar.has-scope summary { flex-wrap: wrap; row-gap: 4px; }
  .jam-outline-pillar.has-scope summary strong { flex: 1 1 124px; }
  .jam-scope-label {
    flex: none; padding: 3px 8px; border: 1px solid #dbc8f0; border-radius: 999px; background: var(--jam-scope-light);
    color: var(--jam-scope-ink); font: 750 11.5px/1.2 "DM Sans", sans-serif; white-space: nowrap;
  }
  .jam-outline-badge { border-radius: 999px; padding: 2px 7px; background: var(--amber-pale); color: #814b0b; font-size: 11px; white-space: nowrap; }
  .jam-outline-pillar ul { margin: 0; padding: 0 0 8px; list-style: none; }
  .jam-outline-pillar a, .jam-outline-pillar button {
    display: flex; align-items: center; width: 100%; min-height: 44px; padding: 7px 10px;
    border: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--ink); text-align: left;
    text-decoration: none; overflow-wrap: anywhere;
  }
  .jam-outline-pillar > a, .jam-outline-pillar > button, .jam-outline-story h3 { color: var(--blue-dark); font: 700 14px/1.35 "DM Sans", sans-serif; }
  .jam-outline-story h3 a, .jam-outline-story h3 button { color: inherit; background: var(--paper-soft); }
  .jam-outline-story ul a, .jam-outline-story ul button { padding-inline-start: 18px; }
  .jam-outline-pillar li:has(> .jam-review-pin) { display: flex; align-items: center; gap: 6px; padding-right: 8px; }
  .jam-outline-pillar li > :first-child { min-width: 0; }
  .jam-outline-pillar li > .jam-review-pin { display: grid; flex: none; width: auto; min-height: 28px;
    padding: 2px 8px; border: 0; background: #ba2038; color: #fff; font-size: 12px; }
  .jam-scope-outline {
    margin: 0 1px 8px; padding: 11px; border: 1px solid #dbc8f0; border-radius: 8px;
    background: linear-gradient(150deg, var(--jam-scope-light), #fcf9ff 68%);
  }
  .jam-scope-outline p { margin: 0 0 3px; color: var(--jam-scope-muted); font: 700 12px/1.3 "DM Sans", sans-serif; }
  .jam-scope-outline .jam-scope-items { display: grid; gap: 2px; padding: 0 0 8px; }
  .jam-scope-outline .jam-scope-items li { padding-inline-end: 0; }
  .jam-scope-outline .jam-scope-items li.has-document { padding: 0; }
  .jam-outline-pillar .jam-scope-outline .jam-scope-scenario {
    display: flex; min-height: 44px; padding: 8px 10px; border: 1px solid #dbc8f0; border-radius: 7px;
    background: #fff; color: var(--jam-scope-ink); text-decoration: underline;
  }
  .jam-outline-pillar .jam-scope-outline .jam-scope-scenario:hover { background: var(--jam-scope-light); }
  .jam-scope-outline .jam-scope-action {
    display: flex; justify-content: flex-start; align-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid #dbc8f0;
    border-radius: 7px; background: #fff; color: var(--jam-scope-ink); font-size: 13px;
  }
  .jam-scope-outline .jam-scope-action:hover { background: var(--jam-scope-light); }
  .jam-sheet { position: fixed; inset: var(--jam-reader-top, 0) 0 auto; height: var(--jam-reader-height, 100dvh); }
  .jam-sheet-head { position: relative; display: block; padding: 12px 52px 4px 12px; }
  .jam-sheet-id { padding: 0; }
  .jam-sheet-id .jam-pending-review { min-height: 44px; }
  .jam-sheet-id .overline { font-size: 11px; }
  .jam-sheet-title { margin-top: 3px; font-size: 20px; }
  .jam-sheet-tools { width: auto; gap: 5px; margin: 4px -40px 0 0; flex-wrap: wrap; }
  .jam-sheet-tools .button { min-height: 40px; padding-inline: 8px; font-size: 12.5px; }
  .jam-sheet-close { position: absolute; inset: 6px 5px auto auto; width: 44px; height: 44px; margin: 0; }
  .jam-sheet-tools .jam-doc-more { display: inline-flex; align-items: center; }
  .jam-sheet-head:not(:has([data-jam-doc-more][aria-expanded="true"])) :is(.jam-sheet-sub, .jam-reviewers),
  .jam-sheet-tools:not(:has([data-jam-doc-more][aria-expanded="true"])) > :is([data-jam-show], [data-jam-edit], [data-jam-edit-on], [data-jam-pdf]) { display: none; }
  .jam-sheet-head .jam-reviewers { margin-top: 8px; }
  .jam-tabs { position: relative; padding-inline: 6px; scrollbar-width: thin; }
  .jam-tab { min-height: 42px; padding: 8px 9px 6px; }
  .jam-mobile-nav { display: flex; flex: none; gap: 6px; padding: 5px 10px; border-bottom: 1px solid var(--line-soft); }
  .jam-mobile-nav select {
    width: 50%; min-height: 38px; min-width: 0; padding: 5px 6px; border: 1px solid var(--line);
    border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 16px; text-overflow: ellipsis;
  }
  .jam-mobile-nav select:only-of-type, .jam-mobile-nav select[hidden] + select { width: 100%; }
  .jam-sheet-body, .jam-sheet-body.has-toc { grid-template-columns: minmax(0, 1fr); align-content: start; overflow-x: hidden; scroll-padding-block: 12px 48px; }
  .jam-sheet-main { padding: 14px 12px 28px; }
  /* On a phone the field is short until it is written in, and its buttons wrap under it, so it covers little of the words. */
  .jam-sheet-col { min-height: 100cqh; }
  .jam-sheet-compose { padding: 8px 12px max(10px, env(safe-area-inset-bottom)); }
  .jam-sheet-compose textarea { min-height: 40px; }
  .jam-sheet-compose .jam-compose-row, .jam-sheet-compose .jam-compose div, .jam-doc-actions { flex-wrap: wrap; gap: 8px; }
  .jam-sheet-compose [data-jam-compose-hint] { display: none; }
  .jam-sheet :is(input:not([type="checkbox"]), textarea, select) { font-size: 16px; }
  .jam-sheet .jam-c header button { opacity: 1; min-height: 32px; }
  .jam-sheet .jam-table, .jam-sheet .jam-code, .jam-sheet .jam-diagram-frame { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .jam-sheet .jam-diagram-frame { display: block; padding: 10px; }
  .jam-sheet .jam-diagram-frame svg { width: max(100%, 440px); max-width: none; }
  .jam-sheet .jam-in-list { grid-template-columns: minmax(0, 1fr); }
  .jam-sheet.jam-keyboard .jam-sheet-head :is(.overline, .jam-sheet-sub, .jam-reviewers),
  .jam-sheet.jam-keyboard:has(textarea:focus) :is(.jam-tabs, .jam-mobile-nav) { display: none; }
}
@media (min-width: 680px) and (max-width: 926px) and (max-height: 500px) and (pointer: coarse) {
  .jam-sheet-head { display: flex; flex-wrap: nowrap; align-items: center; }
  .jam-sheet-tools { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .jam-sheet-frame { animation: none; } }
/* Who has read an item's words as they stand (Praful, 18 November 2026: "show an 4 person icons on each card with a color filled in
   for read and a grey for not read"). Each reviewer's colour is theirs everywhere on the canvas. */
.jam-rt-orange { --rt: #dd7a2b; } .jam-rt-blue { --rt: #3268dc; } .jam-rt-green { --rt: #18805c; } .jam-rt-violet { --rt: #6a51c9; } .jam-rt-none { --rt: #53677e; }
/* On a card they are icons and nothing else: never pressed, so they take no pointer and no hover of their own. */
.jam-readers { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 7px; background: rgb(255 255 255 / 88%); }
.jam-reader { display: inline-flex; color: #b2bcc8; font-style: normal; line-height: 0; }
/* A box's second line of words runs under its marks: it fades out there instead of being cut mid-word. */
.jam-box > .jam-marks { padding-left: 16px; background: linear-gradient(to right, rgb(255 255 255 / 0%), #fff 13px); }
.jam-reader.is-read { color: var(--rt); }
/* In a doc's head: the same reviewers by name. A reviewer who has read wears their colour; one who has not is grey. Only the
   reader's own is a button. */
.jam-reviewers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 11px 0 0; }
.jam-reviewers-h { margin-right: 4px; color: var(--muted-strong); font-size: 12.5px; font-weight: 600; }
.jam-reviewer { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px 0 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted-strong); font: 600 12.5px/1 "DM Sans", Inter, sans-serif; }
.jam-reviewer svg { flex: none; width: 13px; height: 13px; color: #b2bcc8; }
.jam-reviewer b { font-weight: 600; }
.jam-reviewer.is-read { border-color: color-mix(in srgb, var(--rt) 55%, #fff); background: color-mix(in srgb, var(--rt) 11%, #fff); color: var(--ink); }
.jam-reviewer.is-read svg { color: var(--rt); }
button.jam-reviewer { cursor: pointer; border-color: var(--rt); transition: background .12s, box-shadow .12s; }
button.jam-reviewer small { margin-left: 3px; padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--rt) 40%, #fff); color: color-mix(in srgb, var(--rt) 72%, #10203e); font-size: 12px; font-weight: 700; }
button.jam-reviewer:hover { background: color-mix(in srgb, var(--rt) 16%, #fff); }
button.jam-reviewer.is-read small::before { content: "✓ "; }
button.jam-reviewer:focus-visible { outline: 3px solid #77a4ff; outline-offset: 2px; }
button.jam-reviewer[aria-busy="true"] { opacity: .7; }
/* Who read each version, in a doc's history. */
.jam-version-reads { display: flex; align-items: center; gap: 8px; margin: 9px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.4; }
.jam-version-reads .jam-readers { padding: 0; background: none; gap: 3px; }
.jam-version-reads .jam-reader svg { width: 14px; height: 14px; }
/* A layer's or a group's name wears a small doc mark once it has a doc. The name is cut where it runs out of room; the mark stays. */
.jam-head strong.has-doc { display: flex; align-items: center; gap: 7px; overflow: visible; }
.jam-head strong.has-doc b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: inherit; letter-spacing: inherit; }
.jam-doc-mark { flex: none; display: inline-flex; font-style: normal; line-height: 0; opacity: .82; }
.jam-lane > .jam-head strong.has-doc .jam-doc-mark svg { width: calc(17px * var(--jam-lk)); height: calc(17px * var(--jam-lk)); }
/* A comment its writer held: saved, and asking d_bot for nothing until somebody presses Ask d_bot. */
.jam-task.is-held .jam-task-row { flex-wrap: wrap; gap: 6px 8px; }
.jam-held { padding: 3px 8px; border-radius: 6px; background: var(--amber-pale); color: var(--amber); font-size: 11.5px; font-weight: 700; line-height: 1.4; }
/* The held comments come first in the list, under their own heading, with the way to ask d_bot for all of them at once. */
.jam-held-list { margin: 0 -8px 10px; padding: 9px 8px 3px; border-radius: 10px; box-shadow: inset 3px 0 0 var(--warn); background: color-mix(in srgb, var(--amber-pale) 55%, #fff); }
.jam-held-list > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 4px 6px; }
.jam-held-list h3 { margin: 0; color: var(--amber); font: 800 13px/1.3 Manrope, sans-serif; letter-spacing: -.01em; }
.jam-held-list .jam-c { margin: 0; }
.jam-held-list .jam-c:hover { background: rgb(255 255 255 / 70%); }
/* A PRD that is not whole yet says so in one quiet line under the line that names its version: the parts still to come, and the
   Task that is writing them when the box's work lists one. The first section then sits as close under it as under that line. */
.jam-doc-short { max-width: 570px; margin: 5px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.65; }
.jam-doc-short[hidden] { display: none; }
.jam-doc-short b { color: var(--ink); font-weight: 700; }
.jam-short-task .jam-task-id { font-size: 12.5px; }
.jam-short-task .ticket-lozenge { min-height: 19px; margin-left: 2px; padding: 0 6px; font-size: 10px; vertical-align: 1px; }
.jam-doc-short + .jam-part > .jam-part-h { padding-top: 22px; }
/* A doc's Work tab: the Tasks its words rest on, a row each. The ID is the way to the Task's own page; its state wears the Tasks
   pages' colours; a Task that is running says its latest step under its title. */
.jam-work-rows { margin: 0; padding: 0; border-top: 1px solid var(--line-soft); list-style: none; }
.jam-work-row { padding: 15px 0 16px; border-bottom: 1px solid var(--line-soft); }
.jam-work-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.jam-work-top .jam-task-id { font-size: 13.5px; }
.jam-work-top .ticket-lozenge { flex: none; }
.jam-work-did { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.jam-work-top time { color: var(--muted-strong); font-size: 13px; }
.jam-work-lost { color: #883b3e; font-size: 13px; }
.jam-work-title { max-width: 660px; margin: 6px 0 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.jam-work-step { max-width: 660px; margin: 9px 0 0; padding: 9px 12px 10px 14px; border-radius: 8px; background: var(--blue-pale); box-shadow: inset 3px 0 0 var(--blue); color: var(--ink); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.jam-work-step b { display: block; margin-bottom: 2px; color: var(--blue-dark); font: 700 10.5px/1.5 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.jam-work-step strong { font-weight: 650; }
.jam-work-step code { padding: 0 4px; border-radius: 4px; background: rgb(255 255 255 / 70%); font: 500 12px var(--mono); }
.jam-work-step a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.jam-work-step small { margin-left: 8px; color: var(--muted-strong); font-size: 12px; white-space: nowrap; }
/* What lies in a section, under its doc's words: a layer's groups and boxes, a group's boxes. Each box is a row that opens its doc,
   wearing its colour on its left edge as its card on the canvas does, with who has read it. A group's name opens the group's doc. */
.jam-inside { margin-top: 34px; border-top: 1px solid var(--line-soft); }
.jam-inside-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; padding-top: 30px; color: var(--ink); font: 800 20px/1.25 Manrope, sans-serif; letter-spacing: -.02em; scroll-margin-top: -8px; }
.jam-inside-h small, .jam-in-g small { color: var(--muted-strong); font: 500 12.5px/1.4 "DM Sans", sans-serif; letter-spacing: 0; }
.jam-in-group + .jam-in-group { margin-top: 24px; }
.jam-in-g { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin: 0; color: var(--ink); font: 700 15.5px/1.35 Manrope, sans-serif; letter-spacing: -.01em; }
.jam-in-g button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--t) 65%, #fff); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.jam-in-g button:hover { color: color-mix(in srgb, var(--t) 78%, #10203e); }
.jam-in-g button:focus-visible, .jam-in:focus-visible { border-radius: 6px; outline: 3px solid #77a4ff; outline-offset: 2px; }
.jam-in-g .jam-doc-mark { color: var(--muted-strong); }
.jam-in-sub { max-width: 570px; margin: 2px 0 0; color: var(--muted-strong); font-size: 13.5px; line-height: 1.5; }
.jam-in-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.jam-in-list > li { display: flex; min-width: 0; }
.jam-in { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; min-width: 0; min-height: 78px; padding: 10px 12px 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: inset 4px 0 0 var(--t); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
button.jam-in:hover { border-color: color-mix(in srgb, var(--t) 55%, #fff); box-shadow: inset 4px 0 0 var(--t), 0 4px 14px rgb(20 42 68 / 9%); }
.jam-in-name { display: block; min-width: 0; }
.jam-in-name strong { display: block; color: var(--ink); font: 700 14.5px/1.3 Manrope, sans-serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.jam-in-name span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 2px; color: var(--muted-strong); font-size: 12.5px; line-height: 1.4; }
.jam-in-marks { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 18px; }
.jam-in-marks .jam-readers { margin-left: auto; padding: 0; background: none; gap: 3px; }
.jam-in-marks .jam-reader svg { width: 14px; height: 14px; }
.jam-in-none { padding: 1px 7px; border-radius: 6px; background: #eef2f6; color: var(--muted-strong); font: 600 11px/1.5 "DM Sans", sans-serif; }
@media (prefers-reduced-motion: reduce) { button.jam-reviewer, .jam-in { transition: none; } }
/* Words a comment is about (Praful, 18 November 2026: "can you allow selected text based commments so i slect parts of the text and
   then do a comment"). In the doc they are marked in the colour of whoever commented, the colour their avatar wears beside the
   comment: a wash behind the words and a line of the colour itself under them, so the mark is seen and the words still read. Words
   several people commented on, and anybody else's, are the yellow of a marker. The same words stand over the comment as a quoted
   line with that colour's bar, and over the comment field while a comment on them is written. `--m` is that colour. */
.jam-by-adi { --m: #3268dc; } .jam-by-praful { --m: #dd7a2b; } .jam-by-tabitha { --m: #18805c; } .jam-by-anand { --m: #6a51c9; }
mark.jam-mark { padding: 1px 0; border-radius: 2px; background: color-mix(in srgb, var(--m, #dcae00) 26%, #fff); box-shadow: inset 0 -2px 0 var(--m, #dcae00); color: inherit; cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background .2s ease, box-shadow .2s ease; }
mark.jam-mark:hover, mark.jam-mark:focus-visible { background: color-mix(in srgb, var(--m, #dcae00) 42%, #fff); }
mark.jam-mark:focus-visible { outline: 3px solid #77a4ff; outline-offset: 1px; }
/* Shown from its comment: stronger for a moment, with a ring of its colour. */
mark.jam-mark.is-lit { background: color-mix(in srgb, var(--m, #dcae00) 55%, #fff); box-shadow: inset 0 -2px 0 var(--m, #dcae00), 0 0 0 3px color-mix(in srgb, var(--m, #dcae00) 30%, transparent); }
/* The words of a comment still being written: a broken line under them, and nothing to press. */
mark.jam-mark.is-new { box-shadow: none; border-bottom: 2px dashed var(--m, #dcae00); cursor: text; }
mark.jam-mark.is-new[data-jam-mark]:not([data-jam-mark=""]) { cursor: pointer; }
/* Comment, at the end of the words a person has selected: it lies in the doc where they end and moves with them. */
.jam-sheet-body { position: relative; }
.jam-take { position: absolute; z-index: 5; left: 0; top: 0; white-space: nowrap; box-shadow: 0 8px 22px rgb(16 32 62 / 30%); }
.jam-take[hidden] { display: none; }
/* The quoted line over a comment's own words, and the comment lit when its words were pressed in the doc. */
.jam-c-quote { display: block; width: 100%; margin: 5px 0 1px; padding: 6px 10px 7px 12px; border: 0; border-radius: 0 7px 7px 0; background: color-mix(in srgb, var(--m, #dcae00) 14%, #fff); box-shadow: inset 3px 0 0 var(--m, #dcae00); color: var(--ink-soft); font: 400 12.5px/1.45 "DM Sans", sans-serif; text-align: left; }
button.jam-c-quote { cursor: pointer; transition: background .15s ease; }
button.jam-c-quote:hover { background: color-mix(in srgb, var(--m, #dcae00) 26%, #fff); }
button.jam-c-quote:focus-visible, .jam-compose-quote button:focus-visible { outline: 3px solid #77a4ff; outline-offset: 1px; }
.jam-c-quote small, .jam-compose .jam-compose-quote small { display: block; color: var(--muted-strong); font: 600 11px/1.4 "DM Sans", sans-serif; }
.jam-c-quote span, .jam-compose .jam-compose-quote span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin-top: 1px; color: var(--ink-soft); font: 400 12.5px/1.45 "DM Sans", sans-serif; overflow-wrap: anywhere; }
.jam-c.is-done .jam-c-quote { opacity: .62; }
.jam-c { transition: background .2s ease, box-shadow .2s ease; }
.jam-c.is-lit, .jam-c.is-lit:hover { background: color-mix(in srgb, var(--m, #dcae00) 16%, #fff); box-shadow: inset 3px 0 0 var(--m, #dcae00); }
/* The words over the comment field, with the way to let go of them. */
.jam-compose .jam-compose-quote { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin: 0 0 8px; padding: 7px 4px 8px 12px; border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--m, #dcae00) 14%, #fff); box-shadow: inset 3px 0 0 var(--m, #dcae00); }
.jam-compose .jam-compose-quote[hidden] { display: none; }
.jam-compose-quote p { flex: 1; min-width: 0; margin: 0; }
.jam-compose-quote button { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted-strong); font-size: 17px; line-height: 1; cursor: pointer; }
.jam-compose-quote button:hover { background: rgb(255 255 255 / 75%); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { mark.jam-mark, .jam-c, button.jam-c-quote { transition: none; } }
/* A tab of a doc as pages (Praful, 18 November 2026: "have a download as pdf button per prd view"). The reader's own browser makes
   the PDF. While it prints, a copy of the tab lies directly under the body and everything else is put away, so none of the
   panel's fixed shells and scrollers can cut a page; the page's margins and its running foot are written for that one print
   (jamPrintCss in jam.js). On paper nothing scrolls: a wide table and a long line of code wrap to the page. */
.jam-print { display: none; }
@media print {
  html.jam-printing, html.jam-printing body { height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; }
  html.jam-printing body > :not(.jam-print) { display: none !important; }
  html.jam-printing .jam-print { display: block; color: #172638; font: 400 10.5pt/1.55 "DM Sans", sans-serif; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  /* The title block: what the pages are, under a bar of the box's colour. */
  .jam-print-head { margin: 0 0 9mm; padding-top: 5mm; border-top: 1.4mm solid var(--t); break-inside: avoid; break-after: avoid; }
  .jam-print-kind { margin: 0; color: color-mix(in srgb, var(--t) 78%, #10203e); font: 700 9pt/1.4 "DM Sans", sans-serif; }
  .jam-print-head h1 { margin: 1.5mm 0 0; color: #172638; font: 800 25pt/1.12 Manrope, sans-serif; letter-spacing: -.03em; }
  .jam-print-sub { max-width: 152mm; margin: 2.5mm 0 0; color: #33475e; font-size: 11.5pt; line-height: 1.45; }
  .jam-print-meta { margin: 5mm 0 0; color: #172638; font: 600 9.5pt/1.4 "DM Sans", sans-serif; }
  .jam-print-link { margin: 1mm 0 0; color: #53677e; font: 400 8pt/1.4 var(--mono); overflow-wrap: anywhere; }
  /* The words, at a page's sizes. A section's number sits before its name. */
  .jam-print .jam-md { font-size: 10.5pt; line-height: 1.55; }
  .jam-print .jam-md > p, .jam-print .jam-md > ul, .jam-print .jam-md > ol, .jam-print .jam-md > h4, .jam-print .jam-md > h5, .jam-print .jam-md > h6, .jam-print .jam-md > .jam-callout, .jam-print .jam-doc-lead, .jam-print .jam-none { max-width: 152mm; }
  .jam-print .jam-md p, .jam-print .jam-md ul, .jam-print .jam-md ol { margin-bottom: 3.2mm; }
  .jam-print .jam-md li + li { margin-top: 1.2mm; }
  .jam-print .jam-doc-by, .jam-print .jam-doc-lead { font-size: 9pt; }
  .jam-print .jam-part + .jam-part { margin-top: 7mm; }
  .jam-print .jam-part-h { margin-bottom: 3mm; padding-top: 8mm; font-size: 17pt; }
  .jam-print .jam-doc-by + .jam-part > .jam-part-h { padding-top: 5mm; }
  .jam-print .jam-part-n { position: static; margin-right: 3mm; }
  .jam-print .jam-md h4 { margin: 6mm 0 2mm; font-size: 13pt; }
  .jam-print .jam-md h5 { margin: 5mm 0 1.5mm; font-size: 11.5pt; }
  .jam-print .jam-md h6 { margin: 4.5mm 0 1.5mm; font-size: 8.5pt; }
  .jam-print .jam-spec h4 { font-size: 16pt; }
  .jam-print .jam-spec h5 { font-size: 13pt; }
  .jam-print .jam-spec h6 { font-size: 11pt; }
  /* A heading never ends a page, and a line is never left alone on one. */
  .jam-print h3, .jam-print h4, .jam-print h5, .jam-print h6, .jam-print .jam-doc-by, .jam-print .jam-doc-lead, .jam-print .jam-diagram-error { break-after: avoid; }
  .jam-print p, .jam-print li { orphans: 3; widows: 3; }
  /* A figure, a diagram, a table's row, a callout, a decision and a version are never split, and a table's head row is said again on each page. */
  .jam-print figure, .jam-print .jam-callout, .jam-print tr, .jam-print .jam-decision, .jam-print .jam-version-row, .jam-print .jam-print-lost { break-inside: avoid; }
  .jam-print thead { display: table-header-group; }
  .jam-print .jam-table { margin-bottom: 5mm; overflow: visible; }
  .jam-print .jam-md .jam-table table { font-size: 8.5pt; line-height: 1.45; }
  .jam-print .jam-md .jam-table th, .jam-print .jam-md .jam-table td { padding: 1.6mm 2.2mm; overflow-wrap: anywhere; }
  .jam-print .jam-md .jam-table th { font-size: 8.5pt; white-space: normal; overflow-wrap: normal; }
  /* A cell keeps whole the words the page has room for (jamPrintTable in jam.js): only a longer word breaks, at its hints first,
     and a number or an ID stays on its one line only where there is room. A table too wide even for its heads lets them break too. */
  .jam-print .jam-md .jam-table td.is-num, .jam-print .jam-md .jam-table td.is-tight { white-space: normal; }
  .jam-print .jam-md .jam-table td.is-whole { overflow-wrap: break-word; }
  .jam-print .jam-md .jam-table td.is-whole.is-num, .jam-print .jam-md .jam-table td.is-whole.is-tight { white-space: nowrap; }
  .jam-print .jam-md .jam-table.is-cramped th { overflow-wrap: anywhere; }
  .jam-print .jam-doc-note { max-width: 166mm; padding: 5mm 7mm; }
  /* A table of many columns is set smaller, so a head's words stay whole. */
  .jam-print .jam-md .jam-table.is-wide table, .jam-print .jam-md .jam-table.is-wide th { font-size: 7.5pt; }
  .jam-print .jam-md .jam-table.is-wider table, .jam-print .jam-md .jam-table.is-wider th { font-size: 6.5pt; }
  .jam-print .jam-md .jam-table.is-wide th, .jam-print .jam-md .jam-table.is-wide td, .jam-print .jam-md .jam-table.is-wider th, .jam-print .jam-md .jam-table.is-wider td { padding: 1.4mm 1.5mm; }
  .jam-print .jam-md .jam-table td:first-child { min-width: 0; }
  .jam-print .jam-code { margin-bottom: 5mm; padding: 3mm 3.6mm; font-size: 8.5pt; white-space: pre-wrap; overflow: visible; overflow-wrap: anywhere; }
  .jam-print .jam-callout { margin-bottom: 5mm; padding: 3mm 4mm 3mm 5mm; }
  /* A link prints as its words. */
  .jam-print a { color: inherit; font-weight: inherit; text-decoration: none; }
  .jam-print .jam-fig { margin: 2mm 0 5.5mm; }
  .jam-print .jam-fig-tools, .jam-print [data-jam-research-start] { display: none; }
  .jam-print .jam-research-browser { display: block; height: auto; min-height: 0; border: 0; box-shadow: none; }
  .jam-print .jam-research-browser.has-question > .oq-results, .jam-print .jam-research-search, .jam-print .jam-research-filters { display: none; }
  .jam-print .jam-research-browser :is(.oq-list-body, .oq-detail) { height: auto; max-height: none; overflow: visible; padding: 0; }
  .jam-print .jam-research-browser .oq-row strong { display: block; }
  .jam-print .jam-review-bar, .jam-print .jam-review-tools, .jam-print .jam-review-row-actions, .jam-print .jam-review-feedback, .jam-print [data-jam-review-choice], .jam-print .jam-research-review-status, .jam-print .jam-redline-more, .jam-print .jam-review-whole { display: none; }
  .jam-print .jam-review { padding: 4mm; break-inside: auto; }
  .jam-print .jam-review-diff { font-size: 8.5pt; }
  .jam-print .jam-fig-frame { min-height: 0; cursor: auto; }
  .jam-print .jam-fig-frame img { width: auto; max-height: 180mm; }
  .jam-print .jam-fig figcaption { font-size: 9pt; }
  /* Mock-ups two to a row, tall enough for a phone's screen to be read; a wide one takes the row. */
  .jam-print .jam-gallery { container-type: normal; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6mm 6mm; margin: 2mm 0 6mm; }
  .jam-print .jam-card { break-inside: avoid; }
  .jam-print .jam-card.is-wide { grid-column: span 2; }
  .jam-print .jam-card .jam-fig-frame { height: 92mm; }
  .jam-print .jam-card .jam-fig-frame img { max-height: 100%; }
  .jam-print .jam-card figcaption { font-size: 9.5pt; }
  .jam-print .jam-card-note { font-size: 9pt; }
  .jam-print .jam-diagram-frame { padding: 5mm 4mm; }
  .jam-print .jam-diagram-frame svg { max-height: 200mm; }
  .jam-print-lost { margin: 2mm 0 5mm; padding: 3mm 4mm; border: .3mm dashed #cbd6e1; border-radius: 2mm; color: #53677e; font-size: 9.5pt; }
  .jam-print .jam-gallery .jam-print-lost { align-self: start; margin: 0; }
  .jam-print .jam-decision { margin-bottom: 3.5mm; }
  .jam-print .jam-decision .jam-dec-text { font-size: 10pt; }
  .jam-print .jam-version-row { padding: 4mm 0; }
  .jam-print .jam-version-id strong { font-size: 13pt; }
  .jam-print .jam-version-by, .jam-print .jam-version-parts, .jam-print .jam-version-why { font-size: 9.5pt; }
  .jam-print .jam-version-diff { margin-bottom: 5mm; padding: 4mm; }
  /* The line that says a PRD is not whole yet, a Task of its work and a box of a section are each kept on one page. */
  .jam-print .jam-doc-short { max-width: 152mm; margin: 0; font-size: 9pt; break-after: avoid; }
  .jam-print .jam-doc-short + .jam-part > .jam-part-h { padding-top: 5mm; }
  .jam-print .jam-work-row { padding: 3.5mm 0; break-inside: avoid; }
  .jam-print .jam-work-did, .jam-print .jam-work-top time { font-size: 9.5pt; }
  .jam-print .jam-work-title { max-width: 152mm; font-size: 10.5pt; }
  .jam-print .jam-work-step { max-width: 152mm; font-size: 9.5pt; }
  .jam-print .jam-inside { margin-top: 7mm; }
  .jam-print .jam-inside-h { padding-top: 6mm; font-size: 15pt; }
  .jam-print .jam-in-g { font-size: 11.5pt; }
  .jam-print .jam-in-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5mm; }
  .jam-print .jam-in { min-height: 0; padding: 2.5mm 3mm 2.5mm 4.5mm; break-inside: avoid; cursor: auto; }
  .jam-print .jam-in-name strong { font-size: 10pt; }
  .jam-print .jam-in-name span { font-size: 8.5pt; }
  /* The words comments are about are words like the others on paper. */
  .jam-print mark.jam-mark { padding: 0; border: 0; background: none; box-shadow: none; }
}

/* The canvas's product tabs while which products have a canvas is checked (AGENTIC-269): the tabs are there at once, and the line that
   says they are being checked, or could not be, hangs under them outside the bar's row, so the bar never changes shape as it goes. */
.jam-bar .jam-boards { position: relative; display: flex; flex-shrink: 0; }
.jam-bar .jam-boards[hidden] { display: none; }
.jam-bar .agd-tabs[aria-busy="true"] button { cursor: progress; }
.jam-bar .jam-boards-wait { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); color: var(--muted-strong); font-size: 12px; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.jam-bar .jam-boards-wait.is-failed { color: var(--red); background: var(--red-pale); border-color: #efc9ca; }
/* An open question's or a box decision's own link (AGENTIC-269): its ID chooses it, the link button beside it copies its address. */
.jam-item-anchor { color: inherit; text-decoration: none; border-radius: 4px; }
.jam-item-anchor:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.jam-item-anchor:focus-visible, .jam-item-link:focus-visible { outline: 2px solid #77a4ff; outline-offset: 1px; }
.jam-item-link { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; padding: 0; vertical-align: middle; border: 0; border-radius: 6px; background: none; color: var(--blue); cursor: pointer; opacity: .55; transition: opacity .12s; }
.jam-box-questions li:hover .jam-item-link, .jam-decision:hover .jam-item-link, .jam-item-link:focus-visible, .is-lit .jam-item-link { opacity: 1; }
.jam-item-link:hover { background: var(--blue-pale); }
.jam-decision.is-lit { box-shadow: inset 5px 0 0 var(--t), 0 0 0 2px #ffc94a; }
@media (prefers-reduced-motion: reduce) { .jam-item-link { transition: none; } }

/* Keep the contents next to the PRD. Prose has a reading measure and figures and tables can use the full column. */
.jam-sheet-body:has(.jam-prd) {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  column-gap: clamp(20px, 3vw, 42px);
  padding-inline: clamp(20px, 3vw, 46px);
}
.jam-sheet-body:has(.jam-prd) > .jam-sheet-col { grid-column: auto; }
.jam-sheet-body:has(.jam-prd, .jam-questions-workspace) .jam-sheet-main { padding-top: 20px; }
.jam-sheet-main > .jam-prd { max-width: none; padding-inline-start: 0; }
.jam-sheet-body:has(.jam-prd) .jam-sheet-main { padding-inline: 0; }
.jam-sheet-body:has(.jam-prd) .jam-toc { padding: 20px 12px 20px 0; }
.jam-sheet-body:has(.jam-prd) .jam-toc button { min-height: 29px; white-space: normal; overflow-wrap: anywhere; }
.jam-sheet-body:has(.jam-prd) .jam-toc button.jam-toc-ds { min-height: 25px; }
.jam-sheet-body:has(.jam-prd) .jam-toc-n { margin-inline-end: 3px; }
.jam-sheet .jam-prd > .jam-part { scroll-margin-top: 16px; }
.jam-sheet .jam-prd > .jam-part:not(.jam-part ~ .jam-part) { margin-top: 20px; }
.jam-sheet .jam-prd > .jam-part + .jam-part { margin-top: 26px; padding-top: 23px; }
.jam-sheet .jam-prd > .jam-part > .jam-part-h { margin-bottom: 10px; padding-top: 0; font-size: 22px; }
.jam-sheet .jam-prd .jam-part-n {
  position: static;
  display: inline-block;
  min-width: 20px;
  margin-inline-end: 7px;
  color: color-mix(in srgb, var(--t) 75%, var(--ink));
  font-size: 13px;
  letter-spacing: 0;
  vertical-align: .15em;
}
.jam-sheet .jam-prd > .jam-part > .jam-md { line-height: 1.62; }
.jam-sheet .jam-prd :is(.jam-doc-short, .jam-part > .jam-md > :is(p, ul, ol, h4, h5, h6, .jam-callout)) { max-width: 70ch; }
.jam-sheet .jam-prd > .jam-part > .jam-md > :is(p, ul, ol):not(:last-child) { margin-bottom: 12px; }
.jam-sheet .jam-prd > .jam-part > .jam-md > h4:not(:first-child) { margin-top: 23px; }
.jam-sheet .jam-prd > .jam-part > .jam-md > h5:not(:first-child) { margin-top: 18px; }
.jam-sheet .jam-prd .jam-gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.jam-prd-workflow {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  margin: 10px 0 0;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--t) 13%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--t) 4%, var(--paper));
}
.jam-prd-workflow-route {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--blue-dark);
  font-size: 13px;
  line-height: 1.3;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.jam-prd-workflow-route:hover { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.jam-prd-workflow-route strong { font-weight: 750; }
.jam-prd-workflow-route small {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 650;
}
.jam-prd-workflow-action { flex: none; min-height: 34px; margin-inline-start: auto; }

/* Questions and Research are adjacent views of the same box. Keep the switch above either workspace. */
.jam-question-research-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper-soft);
}
.jam-question-research-modes button {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.jam-question-research-modes button:hover { color: var(--ink); }
.jam-question-research-modes button[aria-current="page"] { border-color: var(--line); background: var(--paper); color: var(--blue-dark); }
:is(.jam-prd-workflow-route, .jam-prd-workflow-action, .jam-question-research-modes button, .jam-question-actions a):focus-visible {
  outline: 3px solid #77a4ff;
  outline-offset: 1px;
}
.jam-research > .jam-question-research-modes ~ .jam-research-header .jam-part-h,
.jam-research-detail article > .jam-part-h { padding-top: 0; }
.jam-research-origin { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.jam-research-origin a { color: var(--blue-dark); font-weight: 650; text-underline-offset: 2px; }
.jam-research-origin + .jam-research-requester { margin-top: 4px; }
.jam-question-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.jam-question-tools > p { margin: 0; }
.jam-question-tools > .jam-question-editor { flex: 1 1 100%; min-width: 0; margin: 3px 0 0; }
.jam-question-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}
.jam-question-filter select {
  min-width: 0;
  min-height: 32px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}
.jam-questions-workspace .jam-box-questions > li { border-bottom-color: var(--line-soft); }
.jam-question-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px; }
.jam-question-actions > a { color: var(--blue-dark); font-size: 13px; font-weight: 650; text-underline-offset: 2px; }

.jam-sheet-body:has(.jam-prd):has(.jam-toc:not([hidden])) { grid-template-columns: minmax(146px, 186px) minmax(0, 920px); }
.jam-sheet-body:has(.jam-prd) > .jam-toc:not([hidden]) { display: block; }
@media (max-width: 760px), (max-width: 926px) and (max-height: 500px) and (pointer: coarse) {
  .jam-sheet-frame:has(.jam-prd, .jam-question-research-modes) > .jam-tabs { display: none; }
  .jam-sheet-frame:has(.jam-prd, .jam-question-research-modes) .jam-mobile-nav[hidden] { display: none; }
  .jam-sheet-frame:has(.jam-question-research-modes) [data-jam-mobile-tab]:not([hidden]) { width: 100%; }
  .jam-sheet-frame:has(.jam-question-research-modes) [data-jam-mobile-jump] { display: none; }
  .jam-sheet-body:has(.jam-prd), .jam-sheet-body:has(.jam-prd):has(.jam-toc:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 14px;
  }
  .jam-sheet-body:has(.jam-prd) > .jam-toc:not([hidden]) { display: none; }
  .jam-sheet-body:has(.jam-prd, .jam-questions-workspace) .jam-sheet-main { padding-top: 14px; }
  .jam-sheet .jam-prd > .jam-part:not(.jam-part ~ .jam-part) { margin-top: 17px; }
  .jam-sheet .jam-prd > .jam-part + .jam-part { margin-top: 21px; padding-top: 18px; }
  .jam-sheet .jam-prd > .jam-part > .jam-part-h { font-size: 20px; }
  .jam-prd-workflow-route, .jam-prd-workflow-action, .jam-question-research-modes button,
  .jam-question-tools button, .jam-question-filter select { min-height: 44px; }
  .jam-question-actions > a { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 510px) {
  .jam-prd-workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jam-prd-workflow-action { justify-self: start; margin-inline-start: 9px; }
  .jam-prd-workflow-route { align-content: center; justify-content: flex-start; }
}
@media print {
  .jam-prd-workflow, .jam-question-research-modes, .jam-question-tools, .jam-question-actions, .jam-pending-review { display: none !important; }
}

/* Keep the board's protocol colors and the reader's paper layout in the screen theme. */
@media screen {
  html[data-theme="dark"] .jam {
    --jam-scope-ink: #e1d4fa;
    --jam-scope-muted: #c0addf;
    --jam-scope-accent: #b697ee;
    --jam-scope-edge: #79639b;
    --jam-scope-light: #302646;
  }
  html[data-theme="dark"] .jam-viewport {
    background-color: var(--surface);
    background-image: radial-gradient(var(--line) 1px, transparent 1px);
  }
  html[data-theme="dark"] :is(.jam-item, .jam-mini-lane) {
    --tint: color-mix(in srgb, var(--t, #64748b) 17%, var(--paper));
    --name: color-mix(in srgb, var(--t, #64748b) 34%, var(--ink));
    --edge: color-mix(in srgb, var(--t, #64748b) 50%, var(--line));
  }
  html[data-theme="dark"] .jam-group { border-color: var(--edge); background: color-mix(in srgb, var(--paper) 60%, var(--tint)); }
  html[data-theme="dark"] .jam-group > .jam-head strong { color: var(--name); }
  html[data-theme="dark"] :is(.jam-group, .jam-box, .jam-title) .jam-head span { color: var(--muted-strong); }
  html[data-theme="dark"] :is(.jam-box, .jam-title) .jam-head strong { color: var(--ink); }
  html[data-theme="dark"] .jam-box { border-color: var(--line); background: var(--paper); }
  html[data-theme="dark"] .jam-box:hover { border-color: var(--edge); }
  html[data-theme="dark"] :is(.jam-box, .jam-group, .jam-note).is-selected { border-color: var(--blue); }
  html[data-theme="dark"] .jam-box > .jam-marks { background: linear-gradient(to right, transparent, var(--paper) 13px); }
  html[data-theme="dark"] .jam-pill { background: color-mix(in srgb, var(--t) 46%, var(--paper)); box-shadow: inset 0 0 0 1px var(--edge); }
  html[data-theme="dark"] .jam-pill .jam-head strong { color: var(--ink); }
  html[data-theme="dark"] .jam-pill.is-selected { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--blue); }
  html[data-theme="dark"] :is(.jam-note:not(.is-scope), .jam-doc-note) { border-color: #6b5430; background: var(--amber-pale); color: var(--ink); }
  html[data-theme="dark"] .jam-note:not(.is-scope) .jam-head strong { color: var(--amber); }
  html[data-theme="dark"] .jam-note:not(.is-scope) .jam-head span { color: var(--ink-soft); }
  html[data-theme="dark"] .jam-lane.has-scope::before {
    background: linear-gradient(180deg, var(--jam-scope-light) 0, var(--jam-scope-light) var(--jam-scope-rise, 0px), transparent calc(var(--jam-scope-rise, 0px) + 18px));
  }
  html[data-theme="dark"] :is(.jam-note.is-scope, .jam-scope-outline) { border-color: var(--jam-scope-edge); background: linear-gradient(105deg, var(--jam-scope-light), var(--paper) 95%); }
  html[data-theme="dark"] :is(.jam-scope-action, .jam-scope-outline .jam-scope-scenario) { border-color: var(--jam-scope-edge); background: var(--paper); }
  html[data-theme="dark"] :is(.jam-scope-action, .jam-scope-scenario):hover { border-color: var(--jam-scope-accent); background: var(--jam-scope-light); }
  html[data-theme="dark"] .jam-note.is-scope .jam-scope-items li + li { border-color: var(--jam-scope-edge); }
  html[data-theme="dark"] .jam-scope-items li::before { box-shadow: 0 0 0 2px var(--jam-scope-light); }

  /* Canvas controls and search, including the mobile outline. */
  html[data-theme="dark"] .jam :is(.ax-zoom, .ax-minimap, .jam-results, .jam-dock, .jam-legend, .jam-link, .jam-mobile-views, .jam-outline-pillar) {
    border-color: var(--line);
    background: var(--paper);
  }
  html[data-theme="dark"] .jam :is(.ax-zoom button, .ax-zoom output, .jam-legend .jam-hint, .jam-legend [data-jam-status]) { color: var(--muted-strong); }
  html[data-theme="dark"] .jam .ax-zoom button:hover { background: var(--paper-soft); color: var(--ink); }
  html[data-theme="dark"] .jam-legend [data-jam-status].is-error { color: var(--red); }
  html[data-theme="dark"] .jam-minimap .jam-mini-lane { fill: var(--tint); stroke: var(--edge); }
  html[data-theme="dark"] .jam-minimap .jam-mini-box { fill: var(--paper-soft); stroke: var(--line-strong); }
  html[data-theme="dark"] .jam-minimap .ax-mini-view { fill: rgb(100 155 255 / 10%); stroke: var(--blue); }
  html[data-theme="dark"] .jam .ax-dock-close { background: var(--paper); color: var(--muted-strong); }
  html[data-theme="dark"] .jam .ax-dock-close:hover { background: var(--paper-soft); color: var(--ink); }
  html[data-theme="dark"] .jam-results > :is(p.jam-find-head, p.jam-find-keys) { border-color: var(--line-soft); background: var(--paper); color: var(--muted-strong); }
  html[data-theme="dark"] :is(.jam-find-head b, .jam-results .jam-find-main strong, .jam-findbar b, .jam-findbar q) { color: var(--ink); }
  html[data-theme="dark"] :is(.jam-find-head small, .jam-find-g, .jam-find-g small, .jam-find-kind, .jam-find-none, .jam-results .jam-find-main small, .jam-results .jam-find-main em) { color: var(--muted-strong); }
  html[data-theme="dark"] .jam-results button.jam-find-row:is(:hover, .is-active),
  html[data-theme="dark"] .jam-findbar button:hover:not(:disabled) { background: var(--blue-pale); }
  html[data-theme="dark"] :is(.jam-findbar, .jam-find-keys kbd) { border-color: var(--line); background: var(--paper-soft); color: var(--ink-soft); }
  html[data-theme="dark"] .jam-findbar button { color: var(--ink-soft); }
  html[data-theme="dark"] mark.jam-find { background: #5a4720; box-shadow: 0 0 0 1px #99773c inset; }
  html[data-theme="dark"] mark.jam-find.is-current { background: #74591f; box-shadow: 0 0 0 2px var(--amber); }

  /* Document and research surfaces, disclosure controls, and tracked changes. */
  html[data-theme="dark"] :is(.jam-sheet-frame, .jam-sheet-compose, .jam-redline, .jam-review-clean, .jam-review-diff, .jam-review-filters, .jam-review-views,
    .jam-in, .jam-decision, .jam-filter button[aria-pressed="true"], .jam-launch-card, .jam-launch-actions :is(a, button), .jam-mockup-status) {
    background: var(--paper);
  }
  html[data-theme="dark"] :is(.jam-sheet-banner, .jam-callout, .jam-toc button[aria-current="true"]) { background: color-mix(in srgb, var(--t, #64748b) 16%, var(--paper)); }
  html[data-theme="dark"] .jam-sheet-close { color: var(--muted-strong); }
  html[data-theme="dark"] :is(.jam-sheet-close:hover, .jam-sheet-compose.is-floating .jam-compose-hide:hover, .jam-compose-quote button:hover) { background: var(--paper-soft); color: var(--ink); }
  html[data-theme="dark"] :is(.jam-sheet-layer, .jam-toc-n, .jam-version-id em.is-reading, .jam-term a, .jam-term-review a, .jam-in-g button:hover) { color: color-mix(in srgb, var(--t, #64748b) 44%, var(--ink)); }
  html[data-theme="dark"] :is(.jam-md a, .jam-review-whole, .jam-review-link, .jam-redline-more, .jam-review-source > summary,
    .jam-task-step a, .jam-task-say a, .jam-task-log .timeline-words a, .jam-fig-talk) { color: var(--blue-dark); }
  html[data-theme="dark"] :is(.jam-review, .jam-review-bar, .jam-research-direction, .jam-research-request, .jam-task, .jam-dec-box,
    .jam-filter, .jam-tag, .jam-figs, .jam-in-none, .jam-review-n, .jam-redline-chip, .jam-find-n, .jam-activity-chip) { background: var(--paper-soft); }
  html[data-theme="dark"] :is(.jam-tag, .jam-figs, .jam-find-n, .jam-activity-chip) { color: var(--muted-strong); }
  html[data-theme="dark"] :is(.jam-research-said blockquote, .jam-md :not(pre) > code, .jam-task-step code, .jam-task-say code, .jam-task-log .timeline-words code) {
    background: var(--paper-soft);
    color: var(--ink);
  }
  html[data-theme="dark"] :is(.jam-tab small:not(.is-tone, .jam-tab-pending), .jam-toc button small.is-quiet) { background: var(--paper-soft); color: var(--muted-strong); }
  html[data-theme="dark"] .jam-md :not(pre) > code { color: var(--ink); }
  html[data-theme="dark"] :is(.jam-tab small.is-tone, .jam-decs, .jam-version-id em:not(.is-reading)) {
    background: color-mix(in srgb, var(--t, #64748b) 39%, var(--paper));
    color: var(--ink);
  }
  html[data-theme="dark"] :is(.jam-task, .jam-dec-box) { border-color: var(--line); }
  html[data-theme="dark"] :is(.jam-dec-box strong, .jam-filter button[aria-pressed="true"]) { color: var(--ink); }
  html[data-theme="dark"] :is(.jam-filter button, .jam-findbar) { color: var(--muted-strong); }
  html[data-theme="dark"] :is(.jam-research-search, .jam-research-direction textarea, .jam-compose textarea, .jam-doc-edit :is(textarea, input), .jam-dec-filter input) {
    border-color: var(--line);
    background: var(--paper-soft);
    color: var(--ink);
  }
  html[data-theme="dark"] :is(.jam-research-search, .jam-research-direction textarea, .jam-compose textarea, .jam-doc-edit :is(textarea, input), .jam-dec-filter input):focus {
    border-color: var(--blue);
    outline: 2px solid var(--blue);
    outline-offset: 0;
  }
  html[data-theme="dark"] :is(.jam-compose, .jam-doc-actions) { background: linear-gradient(to bottom, transparent, var(--paper) 14px); }
  html[data-theme="dark"] .jam-sheet-compose > .jam-compose { background: none; }
  html[data-theme="dark"] .jam-dec-filter { background: linear-gradient(to bottom, var(--paper) calc(100% - 8px), transparent); }
  html[data-theme="dark"] .jam-md .jam-table { scrollbar-color: var(--line-strong) var(--paper); }
  html[data-theme="dark"] .jam-md .jam-table th {
    border-bottom-color: color-mix(in srgb, var(--t, #64748b) 26%, var(--line));
    background: color-mix(in srgb, var(--t, #64748b) 16%, var(--paper-soft));
  }
  html[data-theme="dark"] :is(.jam-redline-ins, .jam-redline-badge.is-added, .jam-redline-block.is-added .jam-redline-badge, .jam-review-diff .is-added,
    .jam-c-kind.is-prd, .jam-tag-new) { background: var(--green-pale); color: var(--green); }
  html[data-theme="dark"] :is(.jam-redline-del, .jam-redline-badge.is-removed, .jam-redline-block.is-removed .jam-redline-badge, .jam-review-diff .is-removed,
    .jam-doc-error, .jam-task .ticket-lozenge.is-failed, .jam-task.is-error) { background: var(--red-pale); color: var(--red); }
  html[data-theme="dark"] :is(.jam-review-conflict, .jam-work-lost, .jam-task-say.is-failed b, .jam-task.is-error .jam-task-wait) { color: var(--red); }
  html[data-theme="dark"] :is(.jam-task.is-error, .jam-task.is-failed) { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
  html[data-theme="dark"] .jam-review-receipt.is-applied strong::before { color: var(--green); }
  html[data-theme="dark"] :is(.jam-fig.is-missing .jam-fig-wait, .jam-outline-badge) { color: var(--amber); }
  html[data-theme="dark"] :is(.jam-decision.is-open, .jam-question-recovery, .jam-research-conflict, .jam-term-review li, .jam-held-list,
    .jam-diagram-error, .jam-fig.is-missing .jam-fig-frame, .jam-fig-count, .jam-tag-open, .jam-c-kind.is-note, .jam-activity-chip.is-queued) {
    border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
    background: var(--amber-pale);
    color: var(--amber);
  }
  html[data-theme="dark"] :is(.jam-decision.is-open, .jam-question-recovery, .jam-research-conflict, .jam-term-review li) { color: var(--ink); }
  html[data-theme="dark"] .jam-fig-count:hover { background: color-mix(in srgb, var(--amber) 15%, var(--amber-pale)); }
  html[data-theme="dark"] :is(.jam-dec.is-chosen, .jam-c-kind.is-task, .jam-tag-moved, .jam-tag-split, .jam-activity-chip:is(.is-research, .is-open),
    .jam-research-request[data-jam-research-tone="working"], .jam-review-edit.is-selected) { border-color: var(--line); background: var(--blue-pale); color: var(--blue-dark); }
  html[data-theme="dark"] :is(.jam-c-kind.is-research, .jam-research-request[data-jam-research-tone="backlog"]) { background: #302646; color: #e1d4fa; }
  html[data-theme="dark"] .jam-research-request[data-jam-research-tone="paused"] { background: var(--surface); }
  html[data-theme="dark"] .jam-dec.is-chosen { box-shadow: inset 0 0 0 1px var(--line); }
  html[data-theme="dark"] :is(.jam-review-edit.is-selected .jam-review-n, .jam-redline-chip.is-selected) { background: var(--blue); color: var(--surface); }

  /* Gold marks unfinished review. Research keeps its controls, document list
     and reading area on three separate surfaces. */
  html[data-theme="dark"] :is(.jam-sheet, .jam-research) {
    --jam-review-action: #f4b962;
    --jam-review-action-hover: #ffcd86;
    --jam-review-action-ink: #2b1908;
    --jam-review-edge: #c7924e;
    --jam-review-wash: #46321b;
    --jam-review-ink: #ffda9c;
    --jam-review-row: #33291e;
  }
  html[data-theme="dark"] .jam-research {
    --jam-research-nav: #152232;
    --jam-research-reading: #202c3b;
    --jam-research-control: #101a28;
    --jam-research-edge: #50627a;
    --jam-research-field-edge: #586e88;
  }
  html[data-theme="dark"] .jam-research-browser.oq-browser { border-color: var(--jam-research-edge); background: var(--jam-research-reading); }
  html[data-theme="dark"] .jam-research-browser > .oq-results { border-color: var(--jam-research-edge); background: var(--jam-research-nav); }
  html[data-theme="dark"] .jam-research-browser .oq-results-head,
  html[data-theme="dark"] .jam-research > .jam-question-research-modes { border-color: var(--jam-research-edge); background: var(--jam-research-control); }
  html[data-theme="dark"] .jam-research :is(.jam-research-search, .jam-research-direction textarea) { border-color: var(--jam-research-field-edge); background: var(--jam-research-nav); }
  html[data-theme="dark"] .jam-research :is(.jam-research-detail.is-index > .jam-none, .jam-research-direction, .jam-review) {
    border-color: var(--jam-research-edge); background: var(--jam-research-nav);
  }
  html[data-theme="dark"] .jam-research .jam-review-bar { background: var(--jam-research-nav); }
  html[data-theme="dark"] .jam-research-browser .oq-row:not([data-jam-research-pending]):hover { background: #273b52; }
  html[data-theme="dark"] .jam-research-browser .oq-row:not([data-jam-research-pending])[aria-current] { background: #2a405b; }
  html[data-theme="dark"] .jam-research-browser .oq-row[data-jam-research-pending][aria-current] {
    border-inline-start-color: var(--jam-review-edge); background: var(--jam-review-wash);
  }

  html[data-theme="dark"] .jam-reviewer { background: var(--paper); }
  html[data-theme="dark"] .jam-reviewer.is-read {
    border-color: color-mix(in srgb, var(--rt) 64%, var(--line));
    background: color-mix(in srgb, var(--rt) 15%, var(--paper));
  }
  html[data-theme="dark"] button.jam-reviewer small { border-color: var(--line); color: color-mix(in srgb, var(--rt) 48%, var(--ink)); }
  html[data-theme="dark"] button.jam-reviewer:hover { background: color-mix(in srgb, var(--rt) 22%, var(--paper)); }
  html[data-theme="dark"] :is(mark.jam-mark, .jam-c-quote, .jam-compose .jam-compose-quote, .jam-c.is-lit, .jam-c.is-lit:hover) { background: color-mix(in srgb, var(--m, #dcae00) 19%, var(--paper)); }
  html[data-theme="dark"] :is(mark.jam-mark:hover, mark.jam-mark:focus-visible, mark.jam-mark.is-lit, button.jam-c-quote:hover) { background: color-mix(in srgb, var(--m, #dcae00) 30%, var(--paper)); }

  /* Release previews and generated mockups use their own accent on the same reader paper. */
  html[data-theme="dark"] :is(.jam-launch-outline, .jam-launch-announcement) {
    --launch-ink: var(--ink);
    --launch-accent: #c4a9f8;
    --launch-muted: var(--ink-soft);
    --launch-edge: #584571;
    --launch-wash: #251f36;
  }
  html[data-theme="dark"] .jam-launch-overview { background: linear-gradient(118deg, #302646, var(--paper) 74%); }
  html[data-theme="dark"] .jam-launch-actions :is(a, button) { border-color: var(--launch-edge); }
  html[data-theme="dark"] .jam-launch-actions :is(a, button):first-child { border-color: var(--launch-accent); background: #563c83; color: #fff; }
  html[data-theme="dark"] .jam-launch-actions :is(a, button):hover { box-shadow: 0 0 0 2px var(--launch-edge); }
  html[data-theme="dark"] .jam-mockup-screen {
    --screen-accent: #a7bbfa;
    --screen-fill: #252f48;
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
  }
  html[data-theme="dark"] .jam-mockup-screen.is-violet { --screen-accent: #c8aaf6; --screen-fill: #302646; }
  html[data-theme="dark"] .jam-mockup-screen.is-teal { --screen-accent: #9adad1; --screen-fill: #183732; }
  html[data-theme="dark"] .jam-mockup-action { color: #151824; }
  html[data-theme="dark"] :is(.jam-md .jam-mockup-content p, .jam-mockup-content dt) { color: var(--ink-soft); }
  html[data-theme="dark"] .jam-mockup-content dl div { border-color: var(--line-soft); }
  html[data-theme="dark"] :is(.jam-fig-frame, .jam-diagram-large, .jam-fig-talk) { border-color: var(--line); background: var(--paper-soft); }
  html[data-theme="dark"] .jam-fig.is-missing .jam-fig-frame { background: var(--amber-pale); }
  html[data-theme="dark"] .jam-fig-talk:hover { border-color: var(--line-strong); background: var(--blue-pale); }
  /* Mermaid specifies its node and label colors in the drawing. Preserve their original contrast. */
  html[data-theme="dark"] :is(.jam-diagram-frame, .jam-diagram-large) svg { background: #fff; border-radius: 5px; }
}

.jam-mention-options { max-height: 190px; overflow: auto; margin: 5px 0 0; padding: 4px; list-style: none; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.jam-mention-options li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 7px 9px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.jam-mention-options li[aria-selected="true"], .jam-mention-options li:hover { background: var(--blue-pale); color: var(--blue-dark); }
.jam-mention-options small { color: var(--muted-strong); font: 500 11px/1.4 var(--mono); }

.jam-mentions-inbox { min-width: 0; color: var(--ink); }
.jam-mentions-controls, .jam-mentions-controls nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jam-mentions-controls { justify-content: space-between; margin: 0 0 10px; }
.jam-mentions-controls button[aria-pressed="true"] { color: var(--blue-dark); border-color: var(--blue); background: var(--blue-pale); }
.jam-mentions-inbox ul { list-style: none; padding: 0; margin: 0; }
.jam-mentions-inbox li + li { border-top: 1px solid var(--line); }
.jam-mentions-inbox [data-jam-mention-open] { display: grid; width: 100%; gap: 3px; padding: 10px; border: 0; border-radius: 6px; text-align: start; text-decoration: none; color: var(--ink); background: none; overflow-wrap: anywhere; }
.jam-mentions-inbox [data-jam-mention-open]:hover { background: var(--paper-soft); }
.jam-mentions-inbox [data-jam-mention-open]:focus-visible { outline-offset: -2px; }
.jam-mentions-inbox [data-jam-mention-open] > span, .jam-mentions-inbox small, .jam-mentions-message { color: var(--muted-strong); }
.jam-mention-unseen, [data-jam-mentions-count] { display: inline-block; margin-inline-start: 5px; padding: 1px 5px; border-radius: 4px; background: var(--blue-pale); color: var(--blue-dark); font-size: 11px; font-weight: 700; vertical-align: middle; }
