/* Guided sequence. One column, one action per screen.
 * A non-expert stalls on a menu, so nothing here offers a choice that the
 * sequence can make for them. Depth is always one click away, never required. */
.jy-wrap { max-width: 680px; margin: 0 auto; padding: 0 20px 80px; }

/* Progress. Named stages, not a bare bar: "step 2 of 5" tells you nothing about
 * what is happening, and this sequence is the explanation. */
.jy-rail { display: flex; gap: 4px; margin: 26px 0 30px; }
.jy-rail-step { flex: 1; min-width: 0; }
/* A step already reached is a way back, not decoration. */
button.jy-rail-step { background: none; border: 0; padding: 0; font: inherit; text-align: left; }
button.jy-rail-step.go { cursor: pointer; }
button.jy-rail-step.go:hover .jy-rail-label { color: var(--text); }
button.jy-rail-step.go:hover .jy-rail-bar { opacity: .75; }
button.jy-rail-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.jy-rail-bar { height: 3px; border-radius: 999px; background: var(--border); transition: background .3s ease; }
.jy-rail-step.done .jy-rail-bar { background: var(--accent); }
.jy-rail-step.now .jy-rail-bar { background: var(--accent); animation: jy-pulse 1.6s ease-in-out infinite; }
.jy-rail-label { font-size:0.75rem; font-weight: 700;
  color: var(--text-3); margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jy-rail-step.now .jy-rail-label, .jy-rail-step.done .jy-rail-label { color: var(--text-2); }
@keyframes jy-pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

.jy-step { animation: jy-in .34s ease both; }
@keyframes jy-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

.jy-h { font-size:1.6875rem; font-weight: 900; letter-spacing: -.025em; color: var(--text); margin: 0 0 10px; line-height: 1.2; }
.jy-sub { font-size:1.0625rem; line-height: 1.6; color: var(--text-2); margin: 0 0 24px; }
.jy-sub b { color: var(--text); font-weight: 700; }

.jy-field { width: 100%; box-sizing: border-box; padding: 13px 15px; font-size:1.0625rem; font-family: inherit;
  color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.jy-field:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.jy-field::placeholder { color: var(--text-3); }
.jy-label { display: block; font-size:0.9375rem; font-weight: 700; color: var(--text); margin: 0 0 7px; }
.jy-hint { font-size:0.875rem; color: var(--text-3); margin: 7px 0 0; line-height: 1.5; }

.jy-go { width: 100%; margin-top: 18px; padding: 14px; font-size:1.0625rem; font-weight: 800; font-family: inherit;
  color: #fff; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; transition: opacity .15s; }
.jy-go:hover:not(:disabled) { opacity: .9; }
.jy-go:disabled { opacity: .5; cursor: default; }
.jy-go.secondary { background: transparent; color: var(--text-2); border: 1px solid var(--border); }

/* The questions, resolving one at a time. */
.jy-q { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-card); margin-bottom: 9px; transition: border-color .25s; }
.jy-q.checking { border-color: var(--accent); }
.jy-q.win { border-color: rgba(52,211,153,.4); }
.jy-q.loss { border-color: rgba(248,113,113,.35); }
.jy-q-mark { width: 21px; height: 21px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size:0.8125rem; font-weight: 900; margin-top: 1px;
  background: var(--border); color: var(--text-3); }
.jy-q.win .jy-q-mark { background: rgba(52,211,153,.16); color: var(--green); }
.jy-q.loss .jy-q-mark { background: rgba(248,113,113,.14); color: var(--red); }
.jy-q.checking .jy-q-mark { background: rgba(95,124,248,.16); color: var(--accent); animation: jy-pulse 1.1s infinite; }
.jy-q-body { flex: 1; min-width: 0; }
.jy-q-text { font-size:1rem; color: var(--text); line-height: 1.5; font-weight: 600; }
.jy-q-meta { font-size:0.875rem; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.jy-q-meta b { color: var(--text-2); font-weight: 700; }
.jy-q-meta .rival { color: var(--red); font-weight: 700; }

/* The number. */
.jy-score { text-align: center; padding: 26px 0 20px; }
.jy-score-n { font-size:3.75rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--text);
  font-variant-numeric: tabular-nums; }
.jy-score-n.bad { color: var(--red); }
.jy-score-n.good { color: var(--green); }
.jy-score-cap { font-size:1rem; font-weight: 400; color: var(--text-2); margin: 9px 0 0; line-height: 1.5; }
.jy-score-cap b { color: var(--text); font-weight: 700; }

/* Who is winning instead. Named, because an abstraction does not motivate. */
.jy-rivals { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 20px 0; }
.jy-rival { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--border); font-size:1rem; }
.jy-rival:last-child { border-bottom: 0; }
.jy-rival-dom { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jy-rival-n { color: var(--text-3); font-size:0.875rem; white-space: nowrap; }

/* The one thing. */
.jy-focus { border: 1px solid var(--accent); border-radius: 12px; padding: 20px; background: var(--bg-card); margin: 22px 0; }
.jy-focus-tag { font-size:0.75rem; font-weight: 800;
  color: var(--accent); margin-bottom: 9px; }
.jy-focus-q { font-size:1.125rem; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 9px; }
.jy-focus-why { font-size:1rem; color: var(--text-2); line-height: 1.6; }

/* Depth on demand. Present on every step, required on none. */
.jy-deeper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jy-deeper a { font-size:0.875rem; font-weight: 700; color: var(--text-2); text-decoration: none;
  padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; transition: color .15s, border-color .15s; }
.jy-deeper a:hover { color: var(--text); border-color: var(--border-strong, var(--text-3)); }

/* The proof. */
.jy-delta { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0; flex-wrap: wrap; }
.jy-delta-box { text-align: center; min-width: 96px; }
.jy-delta-n { font-size:2rem; font-weight: 900; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1; }
.jy-delta-box.up .jy-delta-n { color: var(--green); }
.jy-delta-box.down .jy-delta-n { color: var(--red); }
.jy-delta-box.flat .jy-delta-n { color: var(--text); }
.jy-verdict { text-align: center; font-size:1rem; font-weight: 700; color: var(--text-2); margin: 0 0 22px; }
.jy-verdict.up { color: var(--green); }
.jy-verdict.down { color: var(--red); }
.jy-delta-l { font-size:0.8125rem; font-weight: 700; color: var(--text-3); margin-top: 6px; }
.jy-delta-arrow { font-size:1.375rem; color: var(--text-3); }

.jy-err { font-size:1rem; color: var(--red); line-height: 1.55; margin-top: 12px; }

@media (max-width: 560px) {
  .jy-h { font-size:1.4375rem; }
  .jy-rail-label { font-size:0.6875rem; }
  .jy-score-n { font-size:3rem; }
}

/* The instruction, not a report.
 * This step used to be a link into another tool. A non-expert who leaves the
 * sequence here does not come back, so the answer lives inline and the button
 * does the thing rather than opening a form. */
.jy-why { border-left: 3px solid var(--accent); padding: 2px 0 2px 15px; margin: 22px 0 20px; }
.jy-why-h { font-size:0.75rem; font-weight: 800;
  color: var(--text-3); margin-bottom: 7px; }
.jy-why-p { font-size:1rem; line-height: 1.65; color: var(--text); margin: 0; }

.jy-todo-h { font-size:0.75rem; font-weight: 800;
  color: var(--text-3); margin: 0 0 10px; }
.jy-todo { list-style: none; counter-reset: jy; margin: 0 0 20px; padding: 0; }
.jy-todo li { counter-increment: jy; display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 0; border-bottom: 1px solid var(--border); }
.jy-todo li:last-child { border-bottom: 0; }
.jy-todo li::before { content: counter(jy); flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size:0.8125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.jy-todo-t { flex: 1; font-size:1rem; line-height: 1.55; color: var(--text); }
.jy-todo-time { flex-shrink: 0; font-size:0.8125rem; font-weight: 700; color: var(--text-3);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* Platforms, reported as context rather than as competitors. */
.jy-note { font-size:0.9375rem; line-height: 1.6; color: var(--text-3); margin: 14px 0 0;
  padding: 12px 14px; border: 1px dashed var(--border); border-radius: 8px; }

/* The chooser. Three questions someone actually arrives with, each a button
 * rather than a card with a link inside it: the whole tile is the target, which
 * is the difference between one tap and a missed one on a phone. */
.jy-paths { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.jy-path { display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; transition: border-color .15s, transform .12s; }
.jy-path:hover { border-color: var(--accent); transform: translateY(-1px); }
.jy-path:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jy-path-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.jy-path-title { font-size:1.125rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.jy-path-mins { font-size:0.8125rem; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.jy-path-badge { font-size:0.75rem; font-weight: 800;
  color: var(--accent); background: rgba(95,124,248,.12); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.jy-path-blurb { display: block; font-size:1rem; line-height: 1.6; color: var(--text-2); margin-bottom: 11px; }
.jy-path-cta { font-size:0.9375rem; font-weight: 800; color: var(--accent-ink, var(--accent)); }

/* What changed. */
.jy-change { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px;
  background: var(--bg-card); }
.jy-change.up { border-color: rgba(52,211,153,.4); }
.jy-change.down { border-color: rgba(248,113,113,.35); }
.jy-change-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.jy-change-dom { font-size:1rem; font-weight: 800; color: var(--text); }
.jy-change-kind { font-size:0.75rem; font-weight: 700; color: var(--text-3); }
.jy-change-n { font-size:1.4375rem; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.jy-change-arrow { color: var(--text-3); font-weight: 400; }
.jy-change-delta { font-size:0.875rem; font-weight: 800; color: var(--text-3); }
.jy-change.up .jy-change-delta { color: var(--green); }
.jy-change.down .jy-change-delta { color: var(--red); }
.jy-change-list { font-size:0.875rem; line-height: 1.55; margin-top: 9px; color: var(--text-2); }
.jy-change-list.lost { color: var(--red); }
.jy-change-list.won { color: var(--green); }

/* The way out. A guided path is an offer, not a cage. */
.jy-escape { font-size:0.9375rem; color: var(--text-3); text-align: center; margin: 20px 0 0; line-height: 1.6; }
.jy-escape a { color: var(--text-2); }

/* Cycling the ranked list. Showing one question and stopping left someone who
 * fixed it with nowhere to go and no idea five more were waiting. */
.jy-cycle { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.jy-cycle-at { font-size:0.875rem; color: var(--text-3); text-align: center; flex: 1; min-width: 140px; }
.jy-cycle-btn { font: inherit; font-size:0.875rem; font-weight: 700; cursor: pointer;
  color: var(--text-2); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; }
.jy-cycle-btn:hover:not(:disabled) { color: var(--text); }
.jy-cycle-btn:disabled { opacity: .35; cursor: default; }
.jy-cycle-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The artifact: copy to publish, not a description of copy. */
.jy-art { border: 1px solid var(--accent); border-radius: 12px; padding: 20px; margin: 16px 0;
  background: var(--bg-card); }
.jy-art-h { font-size:0.9375rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.jy-art-h a { color: var(--accent); }
.jy-art-note { font-size:0.875rem; color: var(--text-3); line-height: 1.6; margin: 6px 0 0; }
.jy-art-note b { color: var(--text-2); }
.jy-art-diag { font-size:1rem; line-height: 1.65; color: var(--text); margin: 12px 0 4px; }
.jy-art-block { margin-top: 16px; }
.jy-art-label { font-size:0.75rem; font-weight: 800;
  color: var(--text-3); margin-bottom: 6px; }
.jy-art-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:0.9375rem; line-height: 1.65;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.jy-art-code.small { font-size:0.875rem; line-height: 1.55; }
.jy-art-why { font-size:0.875rem; color: var(--text-2); line-height: 1.6; margin: 14px 0 0;
  padding-left: 12px; border-left: 2px solid var(--border); }
.jy-art-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jy-copy { font: inherit; font-size:0.875rem; font-weight: 700; cursor: pointer; color: var(--text-2);
  background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; }
.jy-copy:hover { color: var(--text); }
.jy-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Batch mode. One fix per visit is fine for a first-timer and useless for
 * anyone with a real site. */
.jy-batch-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.jy-batch-count { font-size:0.875rem; color: var(--text-3); margin-left: auto; }
.jy-batch-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.jy-brow { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px;
  border-bottom: 1px solid var(--border); cursor: pointer; }
.jy-brow:last-child { border-bottom: 0; }
.jy-brow:hover { background: var(--bg-hover, rgba(127,127,127,.05)); }
.jy-cb { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.jy-cb:disabled { cursor: default; }
.jy-brow-body { flex: 1; min-width: 0; }
.jy-brow-q { display: block; font-size:1rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.jy-brow-why { display: block; font-size:0.875rem; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.jy-brow-state { font-size:0.875rem; font-weight: 700; color: var(--accent); white-space: nowrap; flex-shrink: 0; }

.jy-bout { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--bg-card); }
.jy-bout-sum { padding: 13px 15px; cursor: pointer; font-size:1rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.jy-bout-sum::-webkit-details-marker { display: none; }
.jy-bout-sum::after { content: '+'; color: var(--text-3); font-weight: 400; font-size:1.125rem; }
.jy-bout[open] .jy-bout-sum::after { content: '–'; }
.jy-bout-tag { font-size:0.8125rem; font-weight: 600; color: var(--text-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.jy-bout-body { padding: 0 15px 16px; }

/* Editing. A draft from a model is a starting point, and nobody should have to
 * paste it into a text editor to change one word before deploying. */
.jy-art-edit { font-size:0.6875rem; font-weight: 700; color: var(--accent);
  background: rgba(95,124,248,.12); border-radius: 999px; padding: 2px 7px; margin-left: 7px; vertical-align: 1px; }
.jy-art-code[contenteditable="true"] { cursor: text; }
.jy-art-code[contenteditable="true"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.jy-art-meta { font-size:0.875rem; margin-top: 6px; color: var(--text-3); }
.jy-art-meta.ok { color: var(--green); }
.jy-art-meta.warn { color: var(--yellow, #d9a441); }

/* Editing and removing suggested questions. */
.jy-edit { cursor: text; border-radius: 4px; padding: 1px 3px; margin: -1px -3px; }
.jy-edit:hover { background: rgba(127,127,127,.1); }
.jy-edit:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: transparent; }
.jy-row-x { font: inherit; font-size:1.125rem; line-height: 1; cursor: pointer; color: var(--text-3);
  background: none; border: 0; padding: 0 2px; flex-shrink: 0; }
.jy-row-x:hover { color: var(--red); }
.jy-row-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.jy-add { display: flex; gap: 8px; margin: 12px 0 0; }
.jy-add .jy-field { flex: 1; padding: 10px 12px; font-size:1rem; }

/* Sub-scores, so a composite number is explainable rather than a verdict.
 * "24 out of 100" tells nobody which afternoon to spend. */
.jy-parts { display: flex; flex-direction: column; gap: 11px; margin: 6px 0 0; }
.jy-part-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.jy-part-l { font-size:0.9375rem; font-weight: 600; color: var(--text-2); }
.jy-part-n { font-size:0.875rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-3); }
.jy-part-n.good { color: var(--green); }
.jy-part-n.bad { color: var(--red); }
.jy-part-bar { height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.jy-part-bar i { display: block; height: 100%; border-radius: 999px; background: var(--text-3); transition: width .5s ease; }
.jy-part-bar i.good { background: var(--green); }
.jy-part-bar i.mid { background: var(--accent); }
.jy-part-bar i.bad { background: var(--red); }
.jy-todo-area { display: block; font-size:0.8125rem; color: var(--text-3); margin-top: 2px; font-weight: 600; }

/* Starting a second site. An agency runs this for twenty clients, and the
 * chooser only ever offered to resume the first one. */
.jy-path-new { display: block; width: 100%; font: inherit; font-size:0.875rem; font-weight: 700;
  cursor: pointer; color: var(--text-3); background: none; border: 0;
  padding: 8px 20px 2px; text-align: left; }
.jy-path-new:hover { color: var(--accent); }
.jy-path-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Group headings. Six flat cards is the tool grid again at smaller scale, which
 * is exactly what this was built to escape. */
.jy-group { font-size:0.75rem; font-weight: 800;
  color: var(--text-3); margin: 26px 0 10px; }
.jy-group:first-of-type { margin-top: 18px; }

/* Scheduling, folded in from the agents. */
.jy-sched { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 0;
  font-size:0.875rem; color: var(--text-3); }
.jy-cycle-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.jy-sched-note { font-size:0.875rem; color: var(--text-3); }

/* The quotes. On the brand workflow this is the artifact: the screen someone
 * forwards to their boss, in the engine's own words rather than our summary. */
.jy-quote { margin: 0 0 10px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-left-width: 3px; }
.jy-quote.good { border-left-color: var(--green); }
.jy-quote.bad  { border-left-color: var(--red); }
.jy-quote-q { font-size:0.8125rem; font-weight: 700; color: var(--text-3); margin-bottom: 7px;
  text-transform: none; letter-spacing: 0; }
.jy-quote p { margin: 0; font-size:1rem; line-height: 1.65; color: var(--text); }
.jy-quote-tag { display: inline-block; margin-top: 8px; font-size:0.75rem; font-weight: 700; color: var(--yellow, #d9a441); }

/* ── Agentic protocols on the readiness result ─────────────────────────────
 *
 * These four are the only findings this workflow can fix and publish itself,
 * so they get their own block rather than sitting as rows nine through twelve
 * of a worst-first list. "No SearchAction" as a line of text is a fact; with a
 * button beside it, it is a job someone finishes in a minute. */
.jy-proto { margin-top: 22px; }
.jy-proto-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.jy-proto-row:last-of-type { border-bottom: 0; }
.jy-proto-main { flex: 1; min-width: 0; }
.jy-proto-name { font-weight: 700; font-size:1rem; color: var(--text); }
.jy-proto-blurb { font-size:0.875rem; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.jy-proto-state {
  flex-shrink: 0; font-size:0.75rem; font-weight: 800; padding: 3px 9px; border-radius: 4px; margin-top: 2px;
}
.jy-proto-state.live { background: rgba(52,211,153,.12); color: var(--green, #34d399); }
.jy-proto-state.part { background: rgba(249,115,22,.12); color: #f97316; }
.jy-proto-state.gone { background: rgba(248,113,113,.1); color: var(--red, #f87171); }
.jy-proto-btn {
  flex-shrink: 0; font-size:0.875rem; font-weight: 700; cursor: pointer;
  background: var(--accent-bg, rgba(95,124,248,.1)); color: var(--accent-ink, var(--accent));
  border: 1px solid var(--accent-border, rgba(95,124,248,.25));
  border-radius: 6px; padding: 7px 13px; margin-top: 1px;
}
.jy-proto-btn:disabled { opacity: .55; cursor: default; }
.jy-proto-out { margin-top: 10px; }
