/* LSR Module Styling — restrained, desktop-first legal workbench */
:root {
    --lsr-ink: #172033;
    --lsr-muted: #5f6b7a;
    --lsr-border: #d9e0ea;
    --lsr-surface: #ffffff;
    --lsr-subtle: #f5f7fb;
    --lsr-accent: #4338ca;
    --lsr-accent-soft: #eef2ff;
    --lsr-success: #047857;
}

body.bg-light {
    color: var(--lsr-ink);
    background: #f4f6f9 !important;
}

/* Custom scrollbars across all workbench panels */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

nav.navbar.bg-white { background: #fff !important; }
nav.navbar.bg-white .navbar-brand { color: #111827 !important; }
.lsr-main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; }
/* Cropping is a precision task: the source document owns the viewport. */
body.lsr-crop-mode { overflow: hidden; }
body.lsr-crop-mode .lsr-main { max-width: none; height: calc(100vh - 57px); padding: 12px 14px; }
body.lsr-crop-mode .lsr-stage-switcher { display: none; }
body.lsr-crop-mode #sectionManualOCRWorkspace { height: 100%; margin: 0 !important; display: flex; flex-direction: column; overflow: hidden; }
body.lsr-crop-mode #sectionManualOCRWorkspace > .card-header { flex: 0 0 auto; }
body.lsr-crop-mode #sectionManualOCRWorkspace > .card-body { flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }
body.lsr-crop-mode .lsr-crop-workspace { flex: 1 1 auto; height: auto; min-height: 0 !important; }
body.lsr-crop-mode .lsr-crop-workspace > .col-md-1 { flex: 0 0 11%; max-width: 11%; height: 100% !important; min-height: 0; max-height: none !important; overflow: hidden !important; }
body.lsr-crop-mode .lsr-crop-workspace > .col-md-8 { flex: 0 0 68%; max-width: 68%; }
body.lsr-crop-mode .lsr-crop-workspace > .col-md-3 { flex: 0 0 21%; max-width: 21%; height: 100% !important; min-height: 0; max-height: none !important; overflow-y: auto !important; }
body.lsr-crop-mode #canvasStage { flex: 1 1 0 !important; min-height: 0 !important; max-height: none !important; overflow: auto !important; display: flex !important; }
body.lsr-crop-mode #thumbnailSidebar { flex: 1 1 auto; min-height: 0; overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; gap: 6px !important; padding-right: 4px; }
body.lsr-crop-mode #selectedRegionsContainer { min-height: 0 !important; }
.lsr-stage-switcher { display:flex; align-items:center; gap:6px; margin-bottom:22px; }
.lsr-stage { border:0; background:transparent; color:#64748b; font-size:.8rem; font-weight:700; padding:7px 10px; border-radius:7px; }
.lsr-stage.active { background:#e8eefc; color:#1d4ed8; }
.lsr-stage.completed { color:#047857; }
.lsr-intake-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.lsr-intake-layout > .card { min-height:620px; margin:0; border-radius:10px; box-shadow:0 3px 14px rgba(15,23,42,.07) !important; }
#sectionSetup .card-header, #sectionUpload .card-header { padding:18px 20px !important; }
#sectionSetup .card-header h5, #sectionUpload .card-header h5 { color:#111827 !important; font-size:1.02rem; }
#sectionSetup .card-body, #sectionUpload .card-body { padding:20px; }
#sectionSetup .col-md-4, #sectionSetup .col-md-6 { width:100%; }
#sectionSetup .card { box-shadow:none !important; border:1px solid #dbe3ef !important; }
#sectionSetup #btnSaveSetup { width:100%; margin-top:2px; }
#sectionUpload .row > .col-md-5, #sectionUpload .row > .col-md-7 { width:100%; }
#sectionUpload .row { gap:14px 0 !important; }
#sectionUpload .dropzone-box { padding:42px 18px; border-color:#94a3b8; background:#f8fafc; }
#sectionUpload #templateMatchNotice { display:none; }
#sectionUpload .table-responsive { max-height:230px; overflow:auto; }
#sectionUpload .table { font-size:.82rem; }

.lsr-stepper:focus-visible,
.lsr-step:focus-visible,
.dropzone-box:focus-visible,
.lsr-card :is(button, a, input, select, textarea):focus-visible,
#sectionSetup :is(button, a, input, select, textarea):focus-visible,
#sectionUpload :is(button, a, input, select, textarea):focus-visible,
#sectionReview :is(button, a, input, select, textarea):focus-visible {
    outline: 3px solid rgba(67, 56, 202, .28);
    outline-offset: 2px;
}

.card {
    border-color: var(--lsr-border) !important;
}

.card-header {
    border-bottom-color: var(--lsr-border);
}

.form-label {
    color: var(--lsr-ink);
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    border-color: #cbd5e1;
    min-height: 2.65rem;
}

.form-control::placeholder {
    color: #718096;
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--lsr-accent);
    box-shadow: 0 0 0 .2rem rgba(67, 56, 202, .14);
}

.btn {
    min-height: 2.5rem;
}
.btn-sm, .btn-xs { min-height: auto; }

.btn-primary,
.btn-indigo {
    background-color: var(--lsr-accent);
    border-color: var(--lsr-accent);
}

.btn-primary:hover,
.btn-indigo:hover {
    background-color: #3730a3;
    border-color: #3730a3;
}

.badge-type-lsr {
    background-color: #E0E7FF;
    color: #3730A3;
    font-weight: 600;
}

.lsr-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lsr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.lsr-header-accent {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: #FFFFFF;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.lsr-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: .75rem;
}

.lsr-step {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-bottom: 3px solid #E2E8F0;
    color: #64748B;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
    border-radius: 6px 6px 0 0;
}

.lsr-step.active {
    border-bottom-color: #4F46E5;
    color: #4F46E5;
}

.lsr-step.completed {
    border-bottom-color: #10B981;
    color: #10B981;
}

.lsr-step:hover {
    color: var(--lsr-accent);
    background: var(--lsr-accent-soft);
}

.dropzone-box {
    border: 2px dashed #6366F1;
    border-radius: 12px;
    background: #F8FAFC;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropzone-box:hover {
    background: #EEF2FF;
}

.dropzone-box:focus-within,
.dropzone-box.is-dragover {
    background: var(--lsr-accent-soft);
    border-color: var(--lsr-accent);
}

.provenance-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #F1F5F9;
    color: #475569;
    font-family: monospace;
}

@media (max-width: 767.98px) {
    .container-fluid.px-4 {
        padding-left: .85rem !important;
        padding-right: .85rem !important;
    }

    .lsr-stepper {
        gap: .25rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: .25rem;
    }

    .lsr-step {
        flex: 0 0 auto;
        min-width: 9.5rem;
        font-size: .78rem;
    }

    #sectionManualOCRWorkspace .col-md-2,
    #sectionManualOCRWorkspace .col-md-7,
    #sectionManualOCRWorkspace .col-md-3 {
        max-height: none !important;
    }

    #canvasStage {
        min-height: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
/* Document-local extraction review */
.legacy-template-preset, .legacy-document-guidance { display: none; }
.extraction-progress { border: 1px solid #dbe3ef; border-radius: 10px; padding: .65rem .8rem; background: #fff; }
.extraction-progress-head { display:flex; justify-content:space-between; font-size:.75rem; color:#475569; margin-bottom:.35rem; }
.extraction-progress .progress { height: 7px; background:#e2e8f0; }
.extraction-progress .progress-bar { background:#4f46e5; transition:width .2s ease-out; }
.document-review-strip { border: 1px solid #dbe3ef; border-radius: 12px; background: #f8fafc; overflow: hidden; }
.document-review-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid #dbe3ef; color: #334155; }
.document-review-header strong { color: #0f172a; }
.document-review-header span, .document-review-note { font-size: .78rem; color: #64748b; margin-left: .5rem; }
.document-review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .65rem; padding: .65rem; }
.document-review-item { border: 1px solid #dbe3ef; border-radius: 9px; background: #fff; }
.document-review-item summary { cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .35rem .5rem; padding: .7rem .75rem; list-style: none; }
.document-review-item summary::-webkit-details-marker { display: none; }
.document-review-type { font-size: .78rem; font-weight: 700; color: #1e3a5f; letter-spacing: .015em; }
.document-review-status { justify-self: end; border-radius: 999px; padding: .1rem .45rem; font-size: .65rem; font-weight: 700; background: #e0e7ff; color: #3730a3; }
.status-review_required { background: #fef3c7; color: #92400e; }
.document-review-count { grid-column: 1 / -1; color: #64748b; font-size: .72rem; }
.document-review-facts { border-top: 1px solid #e2e8f0; padding: .35rem; }
.document-proof-row { display: grid; width: 100%; grid-template-columns: .85fr 1.15fr; gap: .25rem .5rem; text-align: left; border: 0; border-radius: 6px; background: transparent; padding: .45rem; color: #334155; }
.document-proof-row:hover, .document-proof-row:focus-visible { background: #eef6ff; outline: 2px solid #93c5fd; outline-offset: -2px; }
.document-proof-row span { font-size: .68rem; text-transform: uppercase; color: #64748b; }
.document-proof-row strong { font-size: .8rem; font-weight: 600; }
.document-proof-row small { grid-column: 1 / -1; color: #64748b; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.document-review-unresolved { display:flex; justify-content:space-between; padding: .45rem; font-size: .75rem; color:#92400e; background:#fffbeb; border-radius:6px; margin:.2rem; }
.document-review-empty { padding: .5rem; margin: 0; color: #64748b; font-size: .75rem; }
.review-workbench-grid { display:grid; grid-template-columns:minmax(280px, 34%) minmax(0, 1fr); gap:1rem; align-items:start; }
.review-source-pane { position:sticky; top:1rem; border:1px solid #dbe3ef; border-radius:12px; background:#f8fafc; padding:.8rem; min-height:620px; }
.review-source-head { display:flex; justify-content:space-between; align-items:flex-start; gap:.65rem; margin-bottom:.7rem; }
.review-source-head h6 { color:#0f172a; font-weight:700; margin-top:.18rem; }
.eyebrow { display:block; color:#64748b; font-size:.62rem; font-weight:800; letter-spacing:.1em; }
.review-source-frame-wrap { position:relative; height:520px; overflow:hidden; border:1px solid #cbd5e1; border-radius:8px; background:#fff; }
#reviewDocumentPreview { width:100%; height:100%; border:0; background:#fff; }
.review-source-empty { position:absolute; inset:0; display:grid; place-items:center; padding:1rem; text-align:center; color:#64748b; font-size:.8rem; }
.review-source-hint { color:#64748b; font-size:.72rem; line-height:1.4; margin-top:.65rem; }
.document-discrepancy-card { margin:.45rem .2rem; padding:.55rem; border:1px solid #fbbf24; border-radius:8px; background:#fffbeb; }
.document-discrepancy-head { display:flex; justify-content:space-between; gap:.5rem; color:#92400e; font-size:.72rem; }
.document-discrepancy-head span { color:#a16207; font-size:.65rem; }
.document-discrepancy-values { display:grid; grid-template-columns:1fr 1fr; gap:.4rem; margin-top:.4rem; }
.discrepancy-choice { display:flex; flex-direction:column; align-items:flex-start; gap:.15rem; padding:.45rem; border:1px solid #fcd34d; border-radius:6px; background:#fff; text-align:left; }
.discrepancy-choice:hover, .discrepancy-choice.selected { border-color:#b45309; background:#fef3c7; }
.discrepancy-choice small { color:#92400e; font-size:.63rem; }
.discrepancy-choice strong { color:#1f2937; font-size:.75rem; word-break:break-word; }
.chain-findings-panel { padding:.75rem; border:1px solid #fbbf24; border-radius:9px; background:#fffbeb; }
.chain-findings-title { display:flex; gap:.4rem; align-items:center; color:#92400e; font-weight:700; font-size:.8rem; margin-bottom:.35rem; }
.chain-findings-title span { min-width:1.2rem; padding:.05rem .3rem; border-radius:999px; background:#f59e0b; color:#fff; font-size:.65rem; text-align:center; }
.chain-finding-row { display:flex; gap:.5rem; padding:.35rem 0; border-top:1px solid #fde68a; color:#78350f; font-size:.72rem; }
.chain-finding-row strong { flex:0 0 auto; text-transform:uppercase; font-size:.65rem; }
.review-workbench-main { min-width:0; }
@media (max-width: 768px) { .document-review-header { align-items: flex-start; flex-direction: column; gap: .2rem; } .document-review-note { margin-left: 0; } }
@media (max-width: 992px) { .review-workbench-grid { grid-template-columns:1fr; } .review-source-pane { position:static; min-height:0; } .review-source-frame-wrap { height:420px; } }

/* Two-screen LSR workspace: intake first, source-led review second. */
.lsr-review-screen { position:fixed; inset:0; z-index:30; display:flex; flex-direction:column; background:#f8fafc; }
.lsr-review-screen.d-none { display:none !important; }
.lsr-review-topbar { height:54px; flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding:0 16px; background:#fff; border-bottom:1px solid #d9e0ea; }
.lsr-review-topbar strong { color:#111827; font-size:.9rem; }
.lsr-review-topbar span { display:block; color:#64748b; font-size:.7rem; }
.lsr-review-screen .review-workbench-grid { flex:1; min-height:0; display:grid; grid-template-columns:50% 50%; gap:0; height:calc(100vh - 54px); overflow:hidden; }
.lsr-review-screen .review-source-pane { position:static; min-height:0; height:100%; border:0; border-radius:0; border-right:1px solid #d9e0ea; padding:10px 12px; background:#fff; display:flex; flex-direction:column; }
.lsr-review-screen .review-source-head { margin-bottom:6px; }
.lsr-review-screen .review-source-head h6 { font-size:.78rem; }
.lsr-review-screen .eyebrow { display:none; }
.lsr-review-screen .review-source-frame-wrap { flex:1; height:auto; min-height:0; border-radius:6px; border:1px solid #cbd5e1; overflow:hidden; position:relative; background:#1e293b; outline:none; }
.lsr-review-screen .review-source-frame-wrap:focus { border-color:#3b82f6; box-shadow:0 0 0 2px rgba(59,130,246,0.25); }

/* Review Thumbnail Filmstrip */
.review-thumbnail-strip { display:flex; gap:6px; overflow-x:auto; padding:4px; max-height:82px; border:1px solid #e2e8f0; border-radius:6px; background:#f8fafc; scrollbar-width:thin; scrollbar-gutter:stable; }
.review-thumbnail-strip.d-none { display:none !important; }
.review-thumb-card { flex:0 0 52px; height:70px; border:1px solid #cbd5e1; border-radius:4px; background:#fff; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:space-between; overflow:hidden; position:relative; transition:all 0.12s ease; user-select:none; }
.review-thumb-card:hover { border-color:#3b82f6; transform:translateY(-1px); box-shadow:0 2px 6px rgba(0,0,0,0.12); }
.review-thumb-card.active-thumb { border:2px solid #2563eb; background:#eff6ff; box-shadow:0 0 0 2px rgba(37,99,235,0.25); transform:scale(1.02); }
.review-thumb-img { width:100%; height:48px; object-fit:cover; background:#f1f5f9; }
.review-thumb-num { font-size:0.65rem; font-weight:700; color:#334155; line-height:1.2; padding:1px 2px; background:#f1f5f9; width:100%; text-align:center; border-top:1px solid #e2e8f0; }
.review-thumb-card.active-thumb .review-thumb-num { background:#2563eb; color:#fff; }
.review-thumb-badge { position:absolute; top:2px; right:2px; font-size:0.55rem; font-weight:700; padding:1px 3px; border-radius:3px; background:rgba(30,41,59,0.85); color:#fff; line-height:1; }

/* Segment Bookmark Chips */
.review-segment-chip { font-size:0.68rem; font-weight:600; padding:2px 8px; border-radius:12px; border:1px solid #cbd5e1; background:#fff; color:#334155; cursor:pointer; transition:all 0.12s ease; }
.review-segment-chip:hover { background:#eff6ff; color:#1d4ed8; border-color:#93c5fd; }
.review-segment-chip.active-segment { background:#1d4ed8; color:#fff; border-color:#1d4ed8; }

/* Page Jump Input */
#reviewPageInput::-webkit-outer-spin-button, #reviewPageInput::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
#reviewPageInput { -moz-appearance:textfield; }
#reviewPageInput:focus { outline:none; background:#fff; border-radius:3px; }

/* Review Stage & Zoom */
.review-image-scroll-stage { width:100%; height:100%; min-height:0; overflow:auto; padding:12px; display:flex; justify-content:center; align-items:flex-start; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#64748b #1e293b; }
.review-image-scroll-stage::-webkit-scrollbar { width:8px; height:8px; }
.review-image-scroll-stage::-webkit-scrollbar-track { background:#1e293b; }
.review-image-scroll-stage::-webkit-scrollbar-thumb { background:#64748b; border-radius:4px; }
.review-image-scroll-stage::-webkit-scrollbar-thumb:hover { background:#94a3b8; }
.review-page-wrapper { transition:transform 0.15s ease-out; transform-origin:top center; }
.review-page-img { max-width:100%; height:auto; display:block; border-radius:4px; box-shadow:0 6px 18px rgba(0,0,0,0.35); background:#fff; margin:auto; }

/* Continuous Scroll Mode */
.review-continuous-scroll-stage { width:100%; height:100%; min-height:0; overflow-y:auto; overflow-x:hidden; padding:16px 12px; display:flex; flex-direction:column; align-items:center; gap:16px; background:#1e293b; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#64748b #1e293b; }
.continuous-page-item { position:relative; width:100%; max-width:680px; display:flex; flex-direction:column; align-items:center; }
.continuous-page-item .continuous-page-badge { position:sticky; top:8px; align-self:flex-start; z-index:5; font-size:0.68rem; font-weight:700; background:rgba(15,23,42,0.85); color:#fff; padding:2px 8px; border-radius:12px; backdrop-filter:blur(4px); box-shadow:0 2px 5px rgba(0,0,0,0.25); }
.continuous-page-item img { width:100%; height:auto; display:block; border-radius:4px; box-shadow:0 6px 18px rgba(0,0,0,0.35); background:#fff; }

.lsr-review-screen .review-source-hint { margin-top:5px; font-size:.7rem; color:#64748b; }
.lsr-review-screen .preview-scroll-container { display:flex; gap:6px; overflow-x:auto; padding:1px 0 6px; scrollbar-width:thin; }
.lsr-review-screen .file-preview-btn { flex:0 0 auto; border-color:#cbd5e1; color:#475569; background:#fff; font-size:.72rem; }
.lsr-review-screen .file-preview-btn.active-preview { color:#1d4ed8; border-color:#2563eb; background:#eff6ff; font-weight:700; }
.lsr-review-screen .file-preview-btn:hover { background:#f1f5f9; }
.lsr-review-screen .review-workbench-main { height:100%; min-height:0; overflow-y:auto; overflow-x:hidden; padding:0 0 30px 0; background:#fff; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#94a3b8 #f1f5f9; }
.lsr-review-screen .review-workbench-main::-webkit-scrollbar { width:8px; }
.lsr-review-screen .review-workbench-main::-webkit-scrollbar-track { background:#f1f5f9; }
.lsr-review-screen .review-workbench-main::-webkit-scrollbar-thumb { background:#94a3b8; border-radius:4px; }
.lsr-review-screen .review-workbench-main::-webkit-scrollbar-thumb:hover { background:#64748b; }
.review-editor-bar { height:50px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 14px; border-bottom:1px solid #d9e0ea; position:sticky; top:0; background:#fff; z-index:10; }
.review-editor-bar > strong { font-size:.88rem; color:#111827; }
.lsr-review-screen .document-review-strip,
.lsr-review-screen .extraction-progress { display:none; }
.review-field-table { margin:12px; border:1px solid #d9e0ea; border-radius:6px; overflow:hidden; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.04); }
.review-field-table-head { display:grid; grid-template-columns:28% 44% 28%; gap:0; background:#f8fafc; border-bottom:1px solid #d9e0ea; }
.review-field-table-head span { padding:8px 12px; font-size:.73rem; font-weight:700; color:#334155; border-right:1px solid #e2e8f0; text-transform:uppercase; letter-spacing:0.02em; }
.review-field-table-head span:last-child { border-right:0; }
#reviewTabContent { padding:0; border:0; border-radius:0; }
#reviewTabContent .row { margin:0; }
#reviewTabContent .row > [class*="col-"] { width:100%; padding:0; display:grid; grid-template-columns:28% 44% 28%; align-items:center; min-height:46px; border-bottom:1px solid #f1f5f9; }
#reviewTabContent .row > [class*="col-"]:hover { background:#fbfdff; }
#reviewTabContent .row > [class*="col-"]:has(textarea) { align-items:start; padding-top:4px; padding-bottom:4px; }
#reviewTabContent .row > .col-12 { display:block; width:100%; min-height:0; padding:8px 12px; background:#f1f5f9; border-bottom:1px solid #e2e8f0; }
#reviewTabContent .row > .col-12 h6 { margin:0 !important; padding:0 !important; border:0 !important; font-size:.76rem; font-weight:700; color:#1e293b !important; }
#reviewTabContent label { grid-column:1; margin:0; padding:8px 12px; font-size:.76rem !important; font-weight:600; color:#334155; }
#reviewTabContent .row > [class*="col-"]:has(textarea) label { padding-top:10px; }
#reviewTabContent .review-input-col { grid-column:2; padding:6px 10px; }
#reviewTabContent .review-input-col .form-control { min-height:30px; font-size:.78rem; border-color:#cbd5e1; border-radius:5px; }
#reviewTabContent .review-input-col textarea.form-control { min-height:72px; font-size:.78rem; line-height:1.45; resize:vertical; }
#reviewTabContent .review-input-col .form-control:focus { border-color:#3b82f6; box-shadow:0 0 0 2px rgba(59,130,246,0.15); }
#reviewTabContent .review-proof-col { grid-column:3; padding:6px 10px; display:flex; flex-direction:column; justify-content:center; gap:2px; font-size:.7rem; }
#reviewTabContent .row > [class*="col-"]:has(textarea) .review-proof-col { padding-top:8px; justify-content:flex-start; }
#reviewTabContent .provenance-tag { display:inline; font-weight:600; color:#2563eb; }
#reviewTabContent #chainDocsMasterContainer { padding:12px; }
#reviewTabContent #documentExtractionReview { padding:12px; }
#reviewTabContent #documentExtractionReview .document-review-list { display:block; padding:0; }
#reviewTabContent #documentExtractionReview .document-review-item { margin-bottom:8px; }
#reviewTabContent .proof-jump { border:0; background:transparent; color:#475569; padding:0; text-align:left; font-size:.68rem; line-height:1.3; cursor:pointer; }
#reviewTabContent .proof-jump:hover { color:#1d4ed8; text-decoration:underline; }
.lsr-review-screen .mt-4.pt-3.border-top { position:sticky; bottom:0; margin:0 !important; padding:12px 16px !important; background:#fff; border-top:1px solid #d9e0ea !important; z-index:10; box-shadow:0 -2px 8px rgba(0,0,0,0.05); }
@media (max-width: 900px) {
  .lsr-intake-layout { grid-template-columns:1fr; }
  .lsr-intake-layout > .card { min-height:0; }
  .lsr-review-screen { position:static; min-height:100vh; height:auto; }
  .lsr-review-screen .review-workbench-grid { grid-template-columns:1fr; height:auto; overflow:visible; }
  .lsr-review-screen .review-source-pane { min-height:55vh; border-right:0; border-bottom:1px solid #d9e0ea; }
  .lsr-review-screen .review-workbench-main { height:auto; overflow:visible; }
}
@media (max-width: 992px) {
  body.lsr-crop-mode { overflow: auto; }
  body.lsr-crop-mode .lsr-main { height: auto; padding: 10px; }
  body.lsr-crop-mode #sectionManualOCRWorkspace,
  body.lsr-crop-mode #sectionManualOCRWorkspace > .card-body,
  body.lsr-crop-mode .lsr-crop-workspace { height: auto; overflow: visible; }
  body.lsr-crop-mode .lsr-crop-workspace > .col-md-1,
  body.lsr-crop-mode .lsr-crop-workspace > .col-md-8,
  body.lsr-crop-mode .lsr-crop-workspace > .col-md-3 { flex: 0 0 100%; max-width: 100%; }
  body.lsr-crop-mode #canvasStage { min-height: 62vh; }
}
