Korrespond: add Refine pass with jurisdiction-scoped formal citations

After the first draft is rendered, a "Refine with citations" panel offers a
3rd-pass rewrite scoped to the user's choice of Norwegian law, ECHR (EMK +
HUDOC case law), or both. Refine pulls fresh corpus chunks limited to the
chosen jurisdiction's slices, rewrites inline cites in formal style ("jf.
forvaltningsloven § 17", "jf. Strand Lobben m.fl. mot Norge, EMD-37283/13,
§§ 207–214"), and appends a Rettskilder block listing every authority.
Hard-RAG grounding carries through — refine cannot cite anything that
wasn't retrieved. Costs 1 additional credit; the original draft stays in
place and the refined version appears below it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 11:50:36 +02:00
parent b78a49e060
commit 5d8ae6b447
4 changed files with 696 additions and 3 deletions
+41
View File
@@ -7136,3 +7136,44 @@ body.lt-landing {
/* Required hint */
.required-hint { color: var(--dbn-red, #ba0c2f); font-size: 0.78rem; font-weight: 500; }
/* Korrespond — refine panel */
.korr-refine-panel {
margin-top: 22px;
padding: 16px 18px;
background: rgba(0, 32, 91, 0.04);
border: 1px dashed rgba(0, 32, 91, 0.35);
border-radius: 10px;
}
.korr-refine-panel h3 {
margin: 0 0 6px;
font-size: 1rem;
color: var(--dbn-blue, #00205b);
}
.korr-refine-panel h3 small {
font-size: 0.75rem;
font-weight: 400;
color: rgba(0, 0, 0, 0.55);
}
.korr-refine-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 14px;
margin: 10px 0 4px;
}
.korr-refine-controls label {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.88rem;
cursor: pointer;
}
.korr-refine-controls button {
margin-left: auto;
}
.korr-refined {
margin-top: 18px;
padding-top: 18px;
border-top: 1px solid rgba(0, 32, 91, 0.18);
}