/* /agent daytime view: compact hero counter card over full-bleed Juji backdrop, followed by warm-paper frameless dealer-tells stage below the hero. */

:root {
  color-scheme: light;
  --hl-paper: #F0EBE2;
  --hl-stage-light: #FAF6EE;
  --hl-card: #FFFDF9;
  --hl-well: #F6F1E8;
  --hl-well-deep: #EDE6DA;
  --hl-ink: #0B0814;
  --hl-body: #2B2723;
  --hl-muted: #5C544B;
  --hl-ink-warm: #F5EEE4;
  --hl-line: rgba(11, 8, 20, 0.10);
  --hl-line-strong: rgba(11, 8, 20, 0.18);
  --hl-counter: #16120F;
  --hl-copper: #D96A1C;
  --hl-copper-hover: #E57A2E;
  --hl-copper-ink: #9A4706;
  --hl-pass-ink: #116239;
  --hl-risk-ink: #B01818;
  --ja-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ja-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--hl-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.juji-agent-page {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--hl-paper);
  color: var(--hl-body);
  font-family: var(--ja-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 1. Shared header styling aligned with homepage juji-home-light.css */
body.juji-agent-page #juji-site-header {
  color: var(--hl-ink);
  background: var(--hl-card);
  border-bottom: 1px solid rgba(11, 8, 20, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-family: var(--ja-sans);
}

body.juji-agent-page #juji-site-header .site-brand {
  color: var(--hl-ink);
  font-family: var(--ja-sans);
}

body.juji-agent-page #juji-site-header .site-brand img {
  content: url("/brand/fs-r5/r9d-j-mark.day1.png");
  content: image-set(
    url("/brand/fs-r5/r9d-j-mark.day1.webp") type("image/webp"),
    url("/brand/fs-r5/r9d-j-mark.day1.png") type("image/png")
  );
  filter: none;
}

body.juji-agent-page #juji-site-header #juji-site-script,
body.juji-agent-page #juji-site-header #juji-site-lang,
body.juji-agent-page #juji-site-header #juji-site-more > summary,
body.juji-agent-page #juji-site-header .site-signin,
body.juji-agent-page #juji-site-header #juji-acct-trigger {
  color: var(--hl-ink);
  background: var(--hl-card);
  border: 1px solid var(--hl-line-strong);
  font-family: var(--ja-sans);
}

body.juji-agent-page #juji-site-header #juji-site-script:hover,
body.juji-agent-page #juji-site-header #juji-site-lang:hover,
body.juji-agent-page #juji-site-header #juji-site-more > summary:hover,
body.juji-agent-page #juji-site-header .site-signin:hover,
body.juji-agent-page #juji-site-header #juji-acct-trigger:hover {
  background: var(--hl-well);
}

body.juji-agent-page #juji-site-header a:focus-visible,
body.juji-agent-page #juji-site-header button:focus-visible,
body.juji-agent-page #juji-site-header summary:focus-visible {
  outline-color: var(--hl-ink);
}

body.juji-agent-page #juji-site-nav > a {
  color: var(--hl-muted);
  font-family: var(--ja-sans);
}

body.juji-agent-page #juji-site-nav > a:hover {
  color: var(--hl-ink);
  background: rgba(11, 8, 20, 0.04);
}

body.juji-agent-page #juji-site-nav > a[aria-current="page"] {
  color: var(--hl-ink);
  border-bottom-color: var(--hl-ink);
  background: transparent;
}

body.juji-agent-page #juji-site-more-menu {
  border: 1px solid var(--hl-line-strong);
  color: var(--hl-ink);
  background: var(--hl-card);
  box-shadow: 0 18px 36px -18px rgba(11, 8, 20, 0.24);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.juji-agent-page #juji-site-more-menu > a,
body.juji-agent-page #juji-site-more-menu > button {
  color: var(--hl-ink);
  font-family: var(--ja-sans);
}

body.juji-agent-page #juji-site-more-menu > a:hover,
body.juji-agent-page #juji-site-more-menu > button:hover {
  background: rgba(11, 8, 20, 0.06);
}

body.juji-agent-page #juji-site-status {
  border-bottom-color: var(--hl-line);
}

body.juji-agent-page #juji-site-status .r6c-air-pill,
body.juji-agent-page #juji-site-status .r6c-quota-pill {
  color: var(--hl-muted);
  font-family: var(--ja-sans);
}

body.juji-agent-page #juji-site-status .r6c-air-pill {
  background: var(--hl-well);
}

body.juji-agent-page #juji-site-more-menu .site-menu-divider {
  border-top-color: var(--hl-line);
}

body.juji-agent-page #juji-site-more-menu .site-menu-address {
  color: var(--hl-muted);
  font-family: var(--ja-mono);
}

/* 2. Stage layout: Band 1 = Hero Zone (compact black card + full Juji red-ponytail hero), Band 2 = Warm-white proof stage */
.ja-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ja-hero-zone {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background-color: var(--hl-paper);
}

.ja-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ja-backdrop-desktop,
.ja-backdrop-mobile {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 821px) {
  .ja-hero-zone {
    min-height: 782px;
    padding: 16px 16px 368px;
  }
  .ja-backdrop-mobile {
    display: none;
  }
  .ja-backdrop-desktop {
    left: 50%;
    top: 118px;
    height: 740px;
    width: auto;
    transform: translateX(-45.52%);
    opacity: 0.96;
  }
  .ja-backdrop-veil {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg,
        rgba(240, 235, 226, 1) 0px,
        rgba(240, 235, 226, 0.94) 144px,
        rgba(240, 235, 226, 0.12) 268px,
        rgba(240, 235, 226, 0.06) calc(100% - 88px),
        rgba(240, 235, 226, 0.94) calc(100% - 18px),
        rgba(240, 235, 226, 1) 100%),
      radial-gradient(ellipse 68% 74% at 50% 62%,
        rgba(240, 235, 226, 0) 38%,
        rgba(240, 235, 226, 0.90) 88%,
        rgba(240, 235, 226, 1) 100%);
  }
}

@media (max-width: 820px) {
  .ja-hero-zone {
    min-height: 696px;
    padding: 12px 12px 294px;
  }
  .ja-backdrop-desktop {
    display: none;
  }
  .ja-backdrop-mobile {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 308px;
    object-fit: cover;
    object-position: center 18%;
    opacity: 0.96;
  }
  .ja-backdrop-veil {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg,
        rgba(240, 235, 226, 1) 0%,
        rgba(240, 235, 226, 1) calc(100% - 308px),
        rgba(240, 235, 226, 0.16) calc(100% - 256px),
        rgba(240, 235, 226, 0.08) calc(100% - 58px),
        rgba(240, 235, 226, 0.95) 100%);
  }
}

/* 3. Compact top hero black card (strictly <= 430px height, never covering Juji's head) */
.ja-counter {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  padding: 14px 17px 11px;
  border-radius: 16px;
  color: var(--hl-ink-warm);
  background: var(--hl-counter);
  box-shadow: 0 12px 26px -18px rgba(22, 18, 15, 0.58);
}

.ja-counter-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
}

.ja-counter-mark {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  object-fit: contain;
}

.ja-counter-title {
  margin: 0;
  font-family: var(--ja-sans);
  font-size: 19.5px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--hl-ink-warm);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.ja-counter-lede {
  margin: 0 0 8px;
  font-family: var(--ja-sans);
  font-size: 12.5px;
  line-height: 1.44;
  color: rgba(245, 238, 228, 0.86);
  text-wrap: pretty;
}

.ja-prompt-well {
  margin: 0 0 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--hl-card);
  color: var(--hl-ink);
}

.ja-prompt-pre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  font-family: var(--ja-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.44;
  color: var(--hl-ink);
}

.ja-prompt-pre code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
}

.ja-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--hl-copper);
  color: var(--hl-counter);
  font-family: var(--ja-sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition-property: background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.ja-copy-btn:hover {
  background: var(--hl-copper-hover);
}

.ja-copy-btn:active {
  transform: scale(0.96);
}

.ja-copy-btn:focus-visible {
  outline: 2px solid var(--hl-ink-warm);
  outline-offset: 2px;
}

.ja-copy-btn.is-copied {
  background: #157347;
  color: var(--hl-ink-warm);
}

.ja-risk-note {
  margin: 6px 0 0;
  font-family: var(--ja-sans);
  font-size: 11px;
  line-height: 1.38;
  color: rgba(245, 238, 228, 0.78);
}

/* 3b. Band 2: Clean light warm-white stage below Juji hero backdrop (frameless two-column dealer-tells ledger) */
.ja-proof {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--hl-stage-light);
  border-top: 1px solid rgba(11, 8, 20, 0.12);
  border-bottom: 1px solid rgba(11, 8, 20, 0.12);
}

.ja-proof-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 20px;
}

.ja-proof-title {
  margin: 0 0 14px;
  font-family: var(--ja-sans);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--hl-ink);
}

.ja-proof-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 24px;
  align-items: start;
}

.ja-proof-col.is-juji {
  padding-left: 24px;
  border-left: 1px solid rgba(11, 8, 20, 0.12);
}

.ja-proof-col-head {
  margin: 0 0 6px;
  font-family: var(--ja-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hl-muted);
}

.ja-proof-col-head.is-accent {
  color: var(--hl-copper-ink);
}

.ja-proof-free-verdict {
  margin: 0 0 8px;
  font-family: var(--ja-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--hl-pass-ink);
}

.ja-proof-free-note {
  margin: 0;
  font-family: var(--ja-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--hl-body);
  text-wrap: pretty;
}

.ja-proof-ledger {
  margin: 0;
  padding: 0;
}

.ja-proof-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-top: 1px solid rgba(11, 8, 20, 0.09);
  font-variant-numeric: tabular-nums;
}

.ja-proof-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ja-proof-row:last-child {
  padding-bottom: 0;
}

.ja-proof-row dt {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--ja-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hl-body);
}

.ja-proof-row dd {
  margin: 0;
  text-align: right;
  font-family: var(--ja-sans);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--hl-risk-ink);
}

.ja-cross-links {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(11, 8, 20, 0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-family: var(--ja-sans);
  font-size: 13px;
  line-height: 1.45;
}

.ja-cross-link {
  color: var(--hl-copper-ink);
  font-weight: 700;
  text-decoration: none;
}

.ja-cross-link:hover,
.ja-cross-link:focus-visible {
  color: var(--hl-ink);
}

.ja-cross-sep {
  color: var(--hl-muted);
}

/* 4. Footer single-line disclosure and machine spec links */
.ja-footer {
  width: 100%;
  max-width: 960px;
  padding: 14px 12px 16px;
  text-align: center;
}

.ja-footer-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  font-family: var(--ja-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--hl-body);
}

.ja-footer-label {
  color: var(--hl-muted);
}

.ja-footer-sep {
  color: var(--hl-muted);
}

.ja-footer-link,
.ja-inline-link {
  color: var(--hl-ink);
  text-decoration: underline;
  text-decoration-color: rgba(11, 8, 20, 0.32);
  text-underline-offset: 3px;
}

.ja-footer-link:hover,
.ja-inline-link:hover {
  color: var(--hl-copper-ink);
  text-decoration-color: currentColor;
}

@media (max-width: 820px) {
  .ja-counter {
    padding: 11px 13px 9px;
    border-radius: 14px;
  }
  .ja-counter-head {
    align-items: flex-start;
    margin-bottom: 3px;
  }
  .ja-counter-mark {
    margin-top: 2px;
  }
  .ja-counter-title {
    font-size: 16.5px;
    line-height: 1.22;
  }
  .ja-counter-lede {
    font-size: 11.75px;
    line-height: 1.38;
    margin-bottom: 7px;
  }
  .ja-prompt-well {
    padding: 8px 10px;
    margin-bottom: 7px;
  }
  .ja-prompt-pre {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .ja-copy-btn {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 13.5px;
  }
  .ja-risk-note {
    margin-top: 5px;
    font-size: 10.5px;
    line-height: 1.32;
  }
  .ja-proof-inner {
    padding: 20px 16px 18px;
  }
  .ja-proof-title {
    font-size: 16.5px;
  }
  .ja-proof-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .ja-proof-col.is-juji {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid rgba(11, 8, 20, 0.12);
  }
  .ja-proof-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .ja-proof-row dd {
    text-align: left;
  }
  .ja-cross-links {
    margin-top: 14px;
    padding-top: 10px;
    flex-wrap: nowrap;
    gap: 4px 8px;
    font-size: 11.5px;
    white-space: nowrap;
  }
}

@media (max-width: 355px) {
  .ja-cross-links {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    white-space: normal;
    gap: 4px;
  }
  .ja-cross-sep {
    display: none;
  }
}

/* 5. Standalone disclosure page (/agent/disclosure.html) */
.ja-disclosure-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.ja-back-row {
  margin: 0 0 16px;
  font-size: 14px;
}

.ja-disc-title {
  margin: 0 0 24px;
  font-family: var(--ja-sans);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--hl-ink);
}

.ja-disc-section {
  padding: 18px 0;
  border-top: 1px solid var(--hl-line);
}

.ja-disc-h2 {
  margin: 0 0 10px;
  font-family: var(--ja-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--hl-ink);
}

.ja-disc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hl-body);
}

.ja-disc-list li + li {
  margin-top: 10px;
}

.ja-disc-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hl-body);
}

.ja-disclosure-wrap code {
  font-family: var(--ja-mono);
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--hl-well);
  color: var(--hl-ink);
  word-break: break-all;
}

.ja-en {
  display: none;
}

html[lang^="en"] .ja-en {
  display: inline;
}

html[lang^="en"] .ja-zh {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .ja-copy-btn {
    transition: none;
  }
}
