
/* one two-pane card, same as the humanizer / generic tool widget (.jdh-hz / .jdh-tt) */
.jdh-pg { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); text-align:left; background:#fff; border-radius:24px;
  border:1px solid rgba(24,27,41,.06); box-shadow:0 40px 90px -50px rgba(24,27,41,.45), 0 2px 8px rgba(24,27,41,.04); }
.jdh-pg-pane { display:flex; flex-direction:column; min-width:0; min-height:480px; padding:22px 24px 16px; }
.jdh-pg-pane:first-child { border-right:1px solid var(--jd-line); border-radius:24px 0 0 24px; }
.jdh-pg-pane .jdh-tt-label { font-size:17px; line-height:24px; }
.jdh-pg-input { flex:1; width:100%; margin-top:12px; min-height:300px; border:0; resize:none; outline:none; font:inherit; font-size:16px; line-height:26px; color:var(--jd-ink); background:transparent; }
.jdh-pg-input::placeholder { color:#9CA3AF; }
.jdh-pg-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; border-top:1px solid var(--jd-line); }
.jdh-pg-hint { font-size:13px; color:var(--jd-muted); }
.jdh-pg-go { flex:none; display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 22px; border:0; border-radius:999px; background:var(--jd-teal); color:#fff; font:inherit; font-size:15px; font-weight:600; cursor:pointer; transition:background .2s ease, box-shadow .2s ease, opacity .2s ease; }
.jdh-pg-go:hover:not(:disabled) { background:var(--jd-teal-deep); box-shadow:0 12px 26px -14px rgba(2,79,95,.7); }
.jdh-pg-go:focus-visible, .jdh-pg-upload:focus-within { outline:2px solid var(--jd-teal); outline-offset:2px; }
.jdh-pg-go:disabled { opacity:.5; cursor:not-allowed; }
.jdh-pg-out { overflow:auto; max-height:640px; }
.jdh-pg-mock { margin-top:12px; padding:10px 12px; border-radius:12px; background:var(--jd-plag-bg); color:#7A4A12; font-size:13px; line-height:20px; }
.jdh-pg-score { display:flex; align-items:center; gap:16px; margin-top:16px; }
.jdh-pg-num { font-size:44px; line-height:48px; font-weight:700; color:var(--jd-mint); }
.jdh-pg-num--hit { color:var(--jd-plag); }
.jdh-pg-score-t { display:flex; flex-direction:column; gap:2px; font-size:14px; line-height:20px; color:var(--jd-muted); }
.jdh-pg-score-t b { color:var(--jd-ink); font-size:15px; }
.jdh-pg-clean { margin-top:16px; color:var(--jd-body); font-size:15px; line-height:24px; }
.jdh-pg-text { margin-top:16px; white-space:pre-wrap; font-size:15px; line-height:26px; color:var(--jd-body); }
.jdh-pg-mark { background:var(--jd-plag-bg); color:var(--jd-ink); border-radius:4px; padding:1px 2px; }
.jdh-pg-mark sup { margin-left:2px; font-size:10px; font-weight:700; color:var(--jd-plag); }
.jdh-pg-sub { margin-top:20px; font-size:15px; font-weight:600; color:var(--jd-ink); }
.jdh-pg-src { margin-top:10px; padding-left:20px; list-style:decimal; display:flex; flex-direction:column; gap:10px; }
.jdh-pg-src li { font-size:14px; line-height:20px; color:var(--jd-muted); }
.jdh-pg-src a { display:inline-flex; align-items:center; gap:4px; color:var(--jd-teal-deep); font-weight:600; word-break:break-word; }
.jdh-pg-src span { display:block; }
.jdh-pg-src a.jdh-pg-fix { margin-top:6px; height:30px; padding:0 12px; border:1px solid var(--jd-line); border-radius:999px; background:#fff; font-size:13px; color:var(--jd-ink); }
.jdh-pg-src a.jdh-pg-fix:hover { border-color:var(--jd-teal); color:var(--jd-teal-deep); }
.jdh-pg-drop { position:relative; }
.jdh-pg-drop.is-over { background:#F3FBFA; }
.jdh-pg-overlay { position:absolute; inset:10px; display:flex; align-items:center; justify-content:center; text-align:center; padding:16px; border:2px dashed var(--jd-teal); border-radius:16px; background:rgba(255,255,255,.9); color:var(--jd-teal-deep); font-size:15px; font-weight:600; pointer-events:none; }
.jdh-pg-file { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 0; }
.jdh-pg-upload { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px; border:1px solid var(--jd-line); border-radius:999px; font-size:14px; font-weight:500; color:var(--jd-ink); cursor:pointer; background:#fff; transition:border-color .15s ease, color .15s ease; }
.jdh-pg-upload:hover { border-color:rgba(46,116,131,.45); color:var(--jd-teal-deep); }
.jdh-pg-file-t { min-width:0; font-size:12px; color:var(--jd-muted); overflow-wrap:anywhere; }
.jdh-pg-file-t.is-error, .jdh-pg-hint.is-error { color:var(--jd-plag); }
.jdh-pg-opt { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; min-height:32px; padding-bottom:8px; font-size:13px; font-weight:500; color:var(--jd-ink); cursor:pointer; }
/* drawn checkbox (the native one ignores the rounded, teal language of the card) */
.jdh-pg-opt input { appearance:none; -webkit-appearance:none; flex:none; width:18px; height:18px; margin:0; border:1.5px solid #C5CCD6; border-radius:6px; background:#fff;
  display:inline-grid; place-content:center; cursor:pointer; transition:background .15s ease, border-color .15s ease; }
.jdh-pg-opt input::before { content:""; width:10px; height:10px; transform:scale(0); transition:transform .12s ease; background:#fff;
  clip-path:polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.jdh-pg-opt input:checked { background:var(--jd-teal); border-color:var(--jd-teal); }
.jdh-pg-opt input:checked::before { transform:scale(1); }
.jdh-pg-opt input:hover { border-color:var(--jd-teal); }
.jdh-pg-opt input:focus-visible { outline:2px solid var(--jd-teal); outline-offset:2px; }
.jdh-pg-cost { display:block; margin-top:2px; font-size:12px; }
.jdh-pg-out .jdh-rate { align-self:flex-start; }
.jdh-pg-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.jdh-pg-actions .jdh-tt-ghostbtn:disabled { opacity:.6; cursor:progress; }
.jdh-pg-tabs { display:inline-flex; gap:2px; margin-top:16px; padding:3px; border-radius:999px; background:#F1F3F6; align-self:flex-start; }
.jdh-pg-tabs button { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 14px; border:0; border-radius:999px; background:transparent; font:inherit; font-size:13px; font-weight:600; color:var(--jd-muted); cursor:pointer; }
.jdh-pg-tabs button.is-on { background:#fff; color:var(--jd-teal-deep); box-shadow:0 1px 3px rgba(16,24,40,.12); }
.jdh-pg-tab-n { min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--jd-plag-bg); color:var(--jd-plag); font-size:11px; line-height:18px; text-align:center; }
.jdh-pg-cards { margin-top:14px; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.jdh-pg-card { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border:1px solid var(--jd-line); border-radius:14px; font-size:13px; line-height:19px; color:var(--jd-muted); }
.jdh-pg-card-t { display:inline-flex; align-items:center; gap:4px; color:var(--jd-teal-deep); font-weight:600; font-size:14px; word-break:break-word; }
.jdh-pg-card-host { font-size:12px; }
.jdh-pg-card-bar { height:6px; margin-top:4px; border-radius:999px; background:#EEF0F3; overflow:hidden; }
.jdh-pg-card-bar i { display:block; height:100%; border-radius:inherit; background:var(--jd-plag); }
.jdh-pg-card-pct { color:var(--jd-ink); font-weight:600; }
.jdh-pg-card-refs { font-size:12px; color:var(--jd-plag); font-weight:600; }
.jdh-pg-ai { margin-top:20px; padding-top:14px; border-top:1px solid var(--jd-line); display:flex; flex-direction:column; gap:8px; }
.jdh-pg-ai .jdh-pg-sub { margin-top:0; }
.jdh-pg-ai-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.jdh-pg-ai-row .jdh-pg-cost { margin-top:0; }
.jdh-pg-ai-score { margin:0; display:flex; flex-direction:column; gap:2px; font-size:14px; line-height:20px; color:var(--jd-muted); }
.jdh-pg-ai-score b { color:var(--jd-ink); }
.jdh-pg-ai .jdh-tt-ghostbtn { align-self:flex-start; }
.jdh-pg-excl { color:var(--jd-muted); opacity:.75; text-decoration:underline dotted; text-underline-offset:3px; }
@media (max-width: 900px) {
  .jdh-pg { grid-template-columns:1fr; border-radius:20px; } .jdh-pg-pane { min-height:0; padding:18px 16px 14px; }
  .jdh-pg-pane:first-child { border-right:0; border-bottom:1px solid var(--jd-line); border-radius:20px 20px 0 0; }
  .jdh-pg-out { min-height:220px; }
  /* phones: a 300 px empty box pushed Upload / Try a sample below the first screen (audit loop round 6) */
  .jdh-pg-input { min-height:180px; }
  .jdh-pg-upload, .jdh-pg-src a.jdh-pg-fix, .jdh-pg-actions .jdh-tt-ghostbtn, .jdh-pg-tabs button, .jdh-pg-ai .jdh-tt-ghostbtn { height:40px; }
  .jdh-pg-opt { min-height:40px; }
}
