/* The jury app (/check, /r/<id>, /truth, /dashboard): form, running state, record, truth layer, my checks. */
:root { --ok: #0F6B47; --ok-soft: #DDF1E7; --bad: #A3152E; --bad-soft: #FBE5E8; --warn: #9A4A12; --warn-soft: #F8EADB; --line: #DDE5EB; --line-2: #C8D2DA; }
.jt-card > div { padding: 40px 48px 48px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; letter-spacing: 0; }
.up { text-transform: uppercase; letter-spacing: .08em; }

/* ---------- form ---------- */
.jt-form { display: flex; flex-direction: column; gap: 28px; }
.jt-form-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); }
.jt-limits { font-size: 13px; color: var(--muted); }
.jt-limits.is-out { color: var(--bad); }
.jt-field { display: flex; flex-direction: column; gap: 10px; position: relative; }
.jt-label { font-size: 15px; font-weight: 500; letter-spacing: -.2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.jt-label small { font-size: 13px; font-weight: 400; color: var(--muted); }
.jt-in { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 14px 16px; font: 400 16px/1.45 inherit; font-family: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.jt-in::placeholder { color: #8C959C; }
.jt-in:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(190, 226, 250, .6); }
.jt-claim-in { font-size: 19px; letter-spacing: -.3px; min-height: 110px; }
.jt-count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); pointer-events: none; }
.jt-templates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: -14px; }
.jt-templates .t-micro { margin-right: 4px; }
.jt-chip { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font: 500 13px/1 inherit; font-family: inherit; color: var(--ink); cursor: pointer; transition: background .25s, border-color .25s; }
.jt-chip:hover, .jt-chip:focus-visible { background: var(--accent); border-color: var(--accent); }
.jt-srcs { display: flex; flex-direction: column; gap: 10px; }
.jt-src { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.jt-src-n { width: 32px; height: 32px; margin-top: 10px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.jt-src-main { display: flex; flex-direction: column; gap: 8px; }
.jt-paste { min-height: 120px; font-size: 15px; }
.jt-src-tools { display: flex; gap: 16px; }
.jt-link { background: none; border: 0; padding: 0; font: 500 13px/1.4 inherit; font-family: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.jt-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.jt-add { align-self: flex-start; margin-left: 44px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--line-2); background: transparent; font: 500 14px/1 inherit; font-family: inherit; color: var(--ink); cursor: pointer; transition: background .25s, border-color .25s; }
.jt-add:hover { background: var(--paper); border-color: var(--ink); }
.jt-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.jt-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.jt-err { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; line-height: 1.5; }
.jt-err ul { margin: 8px 0 0; padding-left: 18px; }
.jt-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.jt-submit .btn { border: 0; cursor: pointer; }

/* ---------- running ---------- */
.jt-running { display: flex; flex-direction: column; gap: 22px; padding: 8px 0; color: var(--muted); }
.jt-run-claim { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.6px; color: var(--ink); }
.jt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.jt-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #8C959C; transition: color .4s; }
.jt-steps i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; transition: background .4s, border-color .4s; }
.jt-steps li.now { color: var(--ink); }
.jt-steps li.now i { border-color: var(--ink); border-top-color: transparent; animation: jt-spin .9s linear infinite; }
.jt-steps li.done { color: var(--muted); }
.jt-steps li.done i { background: var(--ink); border-color: var(--ink); }
.jt-steps li.done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
@keyframes jt-spin { to { transform: rotate(360deg); } }
.jt-seats { display: flex; gap: 10px; }
.jt-seat { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-weight: 600; position: relative; }
.jt-seat::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: jt-pulse 2.4s var(--e-out) infinite; }
.jt-seat:nth-child(2)::after { animation-delay: .8s; }
.jt-seat:nth-child(3)::after { animation-delay: 1.6s; }
@keyframes jt-pulse { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }

/* ---------- outcome badge ---------- */
.jt-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.jt-badge.sm { height: 24px; font-size: 12px; }
.jt-ok.jt-badge { background: var(--ok-soft); color: var(--ok); }
.jt-bad.jt-badge { background: var(--bad-soft); color: var(--bad); }
.jt-warn.jt-badge { background: var(--warn-soft); color: var(--warn); }
.jt-mute.jt-badge { background: var(--surface); color: var(--ink); }
.jt-hung.jt-badge { background: var(--navy); color: var(--accent); }

/* ---------- record ---------- */
.jt-record { display: flex; flex-direction: column; gap: 28px; --tone: var(--ink); --tone-soft: var(--surface); }
.jt-record.jt-ok { --tone: var(--ok); --tone-soft: var(--ok-soft); }
.jt-record.jt-bad { --tone: var(--bad); --tone-soft: var(--bad-soft); }
.jt-record.jt-warn { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.jt-record.jt-hung { --tone: var(--navy); --tone-soft: var(--accent); }
.jt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: 20px; background: var(--tone-soft); color: var(--tone); }
.jt-head .t-label { opacity: .8; }
.jt-outcome { margin: 8px 0 6px; font-size: 56px; line-height: 1; letter-spacing: -2.6px; font-weight: 500; }
.jt-line { margin: 0; font-size: 16px; color: var(--ink); opacity: .8; }
.jt-agree { display: flex; align-items: center; gap: 6px; }
.jt-agree i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; }
.jt-agree i.on { background: currentColor; }
.jt-agree span { margin-left: 6px; font-size: 14px; font-weight: 500; }
.jt-claim { margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--tone); display: flex; flex-direction: column; gap: 6px; }
.jt-claim .t-label { color: var(--muted); }
.jt-claim p { margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -.8px; }
.jt-reason { margin: -8px 0 0; font-size: 15px; color: var(--muted); }
.jt-jurors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jt-juror { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jt-juror header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.jt-juror header b { font-size: 15px; font-weight: 600; }
.jt-juror header small { font-size: 12px; color: var(--muted); }
.jt-juror.is-void, .jt-juror.is-off { background: transparent; border-style: dashed; }
.jt-j-state { margin: 0; display: flex; gap: 8px; align-items: center; }
.jt-void { font-size: 12px; font-weight: 600; color: var(--bad); }
.jt-j-text { margin: 0; font-size: 14.5px; line-height: 1.5; }
.jt-j-why { margin: 0; font-size: 13px; color: var(--bad); }
.jt-j-none { margin: 0; font-size: 13px; color: var(--muted); }
.jt-quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jt-quotes li { padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.jt-quotes q { quotes: "“" "”"; }
.jt-q-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ok); }
.jt-q-meta svg { width: 14px; height: 14px; }
.jt-quotes li.is-missing .jt-q-meta { color: var(--bad); }
.jt-sources ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jt-sources li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.jt-sources li.is-err { background: transparent; border-style: dashed; }
.jt-s-n { width: 28px; height: 28px; border-radius: 7px; background: var(--surface); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }
.jt-s-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jt-s-body b { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.jt-s-body small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.jt-s-body small a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.jt-sources li.is-err small { color: var(--bad); }
.jt-s-text summary { cursor: pointer; font-size: 13px; font-weight: 500; margin-top: 4px; width: max-content; }
.jt-s-text pre { margin: 10px 0 6px; max-height: 320px; overflow: auto; padding: 14px; border-radius: 10px; background: var(--bg); font: 400 13px/1.55 inherit; font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.jt-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.jt-foot dl { margin: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.jt-foot dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.jt-foot dd { margin: 0; font-size: 14px; }
.jt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jt-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 14px/1 inherit; font-family: inherit; cursor: pointer; transition: background .25s, border-color .25s, color .25s; white-space: nowrap; }
.jt-btn:hover, .jt-btn:focus-visible { background: var(--accent); border-color: var(--accent); }
.jt-btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jt-btn-dark:hover { color: var(--navy); }
.jt-btn-ghost { background: transparent; color: var(--bad); border-color: transparent; }
.jt-btn-ghost:hover { background: var(--bad-soft); border-color: var(--bad-soft); }
.jt-btn:disabled { opacity: .5; cursor: default; }
.jt-fine { margin: -8px 0 0; font-size: 12.5px; color: var(--muted); }
.jt-again { display: flex; justify-content: center; margin-top: 32px; }
.jt-again .btn { border: 0; cursor: pointer; }
.jt-empty { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 12px 0; }
.jt-empty h2 { margin: 0; }
.jt-empty p { margin: 0; }
.jt-toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; transition: opacity .3s, transform .4s var(--e-out); }
.jt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- truth layer ---------- */
.tl { display: flex; flex-direction: column; gap: 64px; }
.tl-sec { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 110px; }
.tl-sec > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tl-sec > header h2 { margin: 6px 0 0; }
.tl-sec > header p { margin: 0; max-width: 520px; color: var(--muted); font-size: 15px; }
.tl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tl-stat { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tl-stat b { font-size: 44px; line-height: 1; letter-spacing: -2px; font-weight: 500; }
.tl-stat span { font-size: 13px; color: var(--muted); }
.tl-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.tl-bar i { display: block; height: 100%; }
.tl-bar .ok { background: var(--ok); } .tl-bar .bad { background: var(--bad); } .tl-bar .warn { background: var(--warn); } .tl-bar .mute { background: #8C959C; } .tl-bar .hung { background: var(--navy); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tl-note { margin: 0; font-size: 13px; color: var(--muted); }
.tl-canaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl-canary { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tl-canary q { font-size: 16px; line-height: 1.4; letter-spacing: -.2px; }
.tl-canary .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tl-pass { font-weight: 600; color: var(--ok); } .tl-fail { font-weight: 600; color: var(--bad); }
.tl-runs { display: flex; gap: 6px; align-items: flex-end; height: 72px; }
.tl-runs i { flex: 1; border-radius: 4px; background: var(--ink); min-height: 6px; }
.tl-runs i.miss { background: var(--bad); }
.tl-runs i.none { background: var(--surface); height: 6px; }
.tl-markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-market { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tl-market h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.4px; font-weight: 500; }
.tl-market .meta { font-size: 13px; color: var(--muted); }
.tl-market .claim { margin: 0; font-size: 14.5px; line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--line-2); }
.tl-market .res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-market .res > div { border-radius: 12px; background: var(--bg); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.tl-market .res b { font-size: 15px; color: var(--ink); font-weight: 600; }
.tl-market details { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tl-market summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.tl-market details p { margin: 8px 0 0; }
.tl-market .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tl-code { position: relative; border-radius: 16px; background: var(--navy); color: #D6E3EE; padding: 20px 22px; overflow: auto; }
.tl-code pre { margin: 0; font: 400 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; }
.tl-code .jt-btn { position: absolute; top: 12px; right: 12px; height: 32px; font-size: 12.5px; background: rgba(250, 250, 250, .08); border-color: transparent; color: var(--paper); }
.tl-code .jt-btn:hover { background: var(--accent); color: var(--navy); }
.tl-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-tabs button { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font: 500 13px/1 inherit; font-family: inherit; cursor: pointer; }
.tl-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tl-endpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-endpoints > div { border-radius: 14px; background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.tl-endpoints b { color: var(--ink); font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }

/* ---------- my checks ---------- */
.mc { display: flex; flex-direction: column; gap: 24px; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mc-open { display: flex; gap: 8px; flex: 1; max-width: 520px; }
.mc-open .jt-in { padding: 10px 14px; font-size: 14px; }
.mc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mc-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.mc-list a.claim { font-size: 15.5px; line-height: 1.4; letter-spacing: -.2px; overflow-wrap: anywhere; }
.mc-list a.claim:hover { text-decoration: underline; text-underline-offset: 3px; }
.mc-list small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .jt-card > div { padding: 24px 18px 28px; }
  .jt-jurors, .tl-canaries, .tl-markets, .tl-endpoints { grid-template-columns: 1fr; }
  .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jt-outcome { font-size: 40px; letter-spacing: -1.6px; }
  .jt-claim p { font-size: 20px; }
  .jt-head { padding: 22px; }
  .jt-run-claim { font-size: 19px; }
  .mc-list li { grid-template-columns: 1fr; gap: 8px; }
  .jt-add { margin-left: 0; }
  .tl-stat b { font-size: 34px; }
}
