/* dual-pane viewer layout */ .left-pane { flex: 2 1 0; min-width: 420px; } .right-pane { flex: 1 1 0; position: static; max-height: 80vh; overflow: auto; } #viewer_row { align-items: stretch; } #left_pane, #right_pane { display: block; } /* paragraph card: compact, borderless, lightly indented with spacing */ .para-box { border: 0; padding: 4px 0 10px 8px; margin: 12px 0; background: transparent; box-shadow: none; } .para-head { display: none; } .para-inner { line-height: 1.45; } /* claim spans */ .hl { position: relative; padding: 0 3px; border-radius: 5px; cursor: pointer; } .hl:hover { outline: 1px dashed #888; } /* NLI colors — keep them faint */ .hl.entailment { background: rgba(34, 197, 94, 0.18); } .hl.neutral { background: rgba(59, 130, 246, 0.18); } .hl.addition { background: rgba(59, 130, 246, 0.18); } /* blue */ .hl.contradiction { background: rgba(244, 63, 94, 0.18); } /* When an addition is shown with delta tokens, we softly wash it green (entailment feel) */ .hl.as-entailment { background: rgba(34, 197, 94, 0.18) !important; } /* contradiction term highlight */ .contra-term { background: #fff59a; padding: 0 2px; border-radius: 3px; } /* selected state */ .hl.selected { outline: 2px solid #000; } /* mute tooltip artifacts — but keep ::after available for anchors */ .hl:not(.anchor-hl)::after { display: none !important; } /* Force-anchor highlight (keeps existing background; add colored brackets) */ .hl.anchor-hl { outline: 2px solid var(--anchor-color, #16a34a) !important; } .hl.anchor-hl::before { content: "["; color: var(--anchor-color, #16a34a); font-weight: 700; } .hl.anchor-hl::after { content: "]"; color: var(--anchor-color, #16a34a); font-weight: 700; display: inline; } .mirror-box { border: 1px solid #adb5bd; padding: 12px; border-radius: 12px; background: #fafafa; min-height: 140px; margin: 12px 0; } .left-pane .para-box:first-child, .right-pane .mirror-box:first-child { margin-top: 0; } .viewer-wrap { display: flex; gap: 16px; align-items: stretch; } .anch { font-size: 11px; opacity: 0.8; margin-left: 4px; text-decoration: none; } /* legend + confidence UI */ .toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0; } .legend { display: flex; gap: 12px; align-items: center; font-size: 12px; color: #475569; } .legend .key { display: inline-flex; align-items: center; gap: 6px; } .legend .dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; } .legend .dot.ent { background: #22c55e; } .legend .dot.con { background: #f43f5e; } .legend .dot.neu { background: #3b82f6; } .para-box { min-height: unset; } .mirror-box { min-height: unset; } #right_pane { position: static; max-height: 80vh; overflow-y: auto; } /* reasoning panel */ .reason-wrap { margin-top: 4px; display: flex; flex-direction: column; gap: 8px; } .reason-title { font-weight: 800; margin: 3px 0 3px; font-size: 16px; } .reason-card { border: 2px solid #334155; background: #ffffff; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); } /* contradiction focus box (kept for future use) */ .contra-box { margin-top: 10px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; } .contra-head { font-weight: 600; margin-bottom: 6px; } .contra-row { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; } .side-tag { font-size: 12px; color: #6b7280; padding: 2px 6px; border: 1px solid #e5e7eb; border-radius: 9999px; } .side-pills { display: flex; gap: 6px; flex-wrap: wrap; } .pill { display: inline-block; padding: 2px 8px; border: 1px solid #d1d5db; border-radius: 9999px; background: white; font-size: 12px; } .contra-src { margin-top: 8px; font-size: 12px; color: #6b7280; display: grid; gap: 2px; } .src-tag { font-weight: 600; color: #4b5563; } /* Make the left pane feel like a single “big box” of Document A */ .left-pane { border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px; background: #fff; max-height: 80vh; overflow-y: auto; } .left-pane .para-box { margin: 8px 0; } .left-title { font-weight: 700; font-size: 14px; color: #334155; margin: 4px 4px 10px 4px; opacity: 0.9; } .right-title { font-weight: 700; font-size: 14px; color: #334155; margin: 4px 4px 10px 4px; opacity: 0.9; } .left-pane .para-box.para-focus { outline: 2px solid #334155; } .left-pane .para-box.para-dim { opacity: 0.55; filter: saturate(0.6); } #topline_row { align-items: flex-end; gap: 12px; } #topline_row .gr-accordion { margin: 0; } #legend_row { align-items: center; justify-content: space-between; margin-top: 6px; } #swap_button { min-width: 140px; }